',
+ i = function () {
+ var e,
+ t = arguments,
+ i = ++Ft,
+ o = jt(r + ' - runid: ' + i + ' - init', n).apply(this, t),
+ a = void 0,
+ s = new Promise(function (t, n) {
+ var s = 0;
+ function l(e) {
+ var t;
+ a = void 0;
+ try {
+ t = jt(r + ' - runid: ' + i + ' - yield ' + s++, o.next).call(o, e);
+ } catch (e) {
+ return n(e);
+ }
+ u(t);
+ }
+ function c(e) {
+ var t;
+ a = void 0;
+ try {
+ t = jt(r + ' - runid: ' + i + ' - yield ' + s++, o.throw).call(o, e);
+ } catch (e) {
+ return n(e);
+ }
+ u(t);
+ }
+ function u(e) {
+ if (!x(null == e ? void 0 : e.then))
+ return e.done ? t(e.value) : (a = Promise.resolve(e.value)).then(l, c);
+ e.then(u, n);
+ }
+ (e = n), l(void 0);
+ });
+ return (
+ (s.cancel = jt(r + ' - runid: ' + i + ' - cancel', function () {
+ try {
+ a && Vt(a);
+ var t = o.return(void 0),
+ n = Promise.resolve(t.value);
+ n.then(b, b), Vt(n), e(new zt());
+ } catch (t) {
+ e(t);
+ }
+ })),
+ s
+ );
+ };
+ return (i.isMobXFlow = !0), i;
+ }, Ut);
+ function Vt(e) {
+ x(e.cancel) && e.cancel();
+ }
+ function Wt(e) {
+ return !0 === (null == e ? void 0 : e.isMobXFlow);
+ }
+ function Ht(e) {
+ return (function (e, t) {
+ return (
+ !!e &&
+ (void 0 !== t
+ ? !!$n(e) && e[W].values_.has(t)
+ : $n(e) || !!e[W] || Y(e) || xt(e) || Ye(e))
+ );
+ })(e);
+ }
+ function Yt(e, t) {
+ void 0 === t && (t = void 0), pt();
+ try {
+ return e.apply(t);
+ } finally {
+ dt();
+ }
+ }
+ function Qt(e) {
+ return e[W];
+ }
+ qt.bound = q(Bt);
+ var Gt = {
+ has: function (e, t) {
+ return Qt(e).has_(t);
+ },
+ get: function (e, t) {
+ return Qt(e).get_(t);
+ },
+ set: function (e, t, n) {
+ var r;
+ return !!w(t) && (null == (r = Qt(e).set_(t, n, !0)) || r);
+ },
+ deleteProperty: function (e, t) {
+ var n;
+ return !!w(t) && (null == (n = Qt(e).delete_(t, !0)) || n);
+ },
+ defineProperty: function (e, t, n) {
+ var r;
+ return null == (r = Qt(e).defineProperty_(t, n)) || r;
+ },
+ ownKeys: function (e) {
+ return Qt(e).ownKeys_();
+ },
+ preventExtensions: function (e) {
+ a(13);
+ },
+ };
+ function Xt(e) {
+ return void 0 !== e.interceptors_ && e.interceptors_.length > 0;
+ }
+ function Kt(e, t) {
+ var n = e.interceptors_ || (e.interceptors_ = []);
+ return (
+ n.push(t),
+ v(function () {
+ var e = n.indexOf(t);
+ -1 !== e && n.splice(e, 1);
+ })
+ );
+ }
+ function Zt(e, t) {
+ var n = et();
+ try {
+ for (
+ var r = [].concat(e.interceptors_ || []), i = 0, o = r.length;
+ i < o && ((t = r[i](t)) && !t.type && a(14), t);
+ i++
+ );
+ return t;
+ } finally {
+ tt(n);
+ }
+ }
+ function Jt(e) {
+ return void 0 !== e.changeListeners_ && e.changeListeners_.length > 0;
+ }
+ function en(e, t) {
+ var n = e.changeListeners_ || (e.changeListeners_ = []);
+ return (
+ n.push(t),
+ v(function () {
+ var e = n.indexOf(t);
+ -1 !== e && n.splice(e, 1);
+ })
+ );
+ }
+ function tn(e, t) {
+ var n = et(),
+ r = e.changeListeners_;
+ if (r) {
+ for (var i = 0, o = (r = r.slice()).length; i < o; i++) r[i](t);
+ tt(n);
+ }
+ }
+ function nn(e, t, n) {
+ var r = Tn(e, n)[W];
+ pt();
+ try {
+ null != t ||
+ (t = (function (e) {
+ return I(e, B) || E(e, B, D({}, e[B])), e[B];
+ })(e)),
+ T(t).forEach(function (e) {
+ return r.make_(e, t[e]);
+ });
+ } finally {
+ dt();
+ }
+ return e;
+ }
+ var rn = 'splice',
+ on = 'update',
+ an = {
+ get: function (e, t) {
+ var n = e[W];
+ return t === W
+ ? n
+ : 'length' === t
+ ? n.getArrayLength_()
+ : 'string' != typeof t || isNaN(t)
+ ? I(cn, t)
+ ? cn[t]
+ : e[t]
+ : n.get_(parseInt(t));
+ },
+ set: function (e, t, n) {
+ var r = e[W];
+ return (
+ 'length' === t && r.setArrayLength_(n),
+ 'symbol' == typeof t || isNaN(t) ? (e[t] = n) : r.set_(parseInt(t), n),
+ !0
+ );
+ },
+ preventExtensions: function () {
+ a(15);
+ },
+ },
+ sn = (function () {
+ function e(e, t, n, r) {
+ void 0 === e && (e = 'ObservableArray'),
+ (this.owned_ = void 0),
+ (this.legacyMode_ = void 0),
+ (this.atom_ = void 0),
+ (this.values_ = []),
+ (this.interceptors_ = void 0),
+ (this.changeListeners_ = void 0),
+ (this.enhancer_ = void 0),
+ (this.dehancer = void 0),
+ (this.proxy_ = void 0),
+ (this.lastKnownLength_ = 0),
+ (this.owned_ = n),
+ (this.legacyMode_ = r),
+ (this.atom_ = new H(e)),
+ (this.enhancer_ = function (e, n) {
+ return t(e, n, 'ObservableArray[..]');
+ });
+ }
+ var t = e.prototype;
+ return (
+ (t.dehanceValue_ = function (e) {
+ return void 0 !== this.dehancer ? this.dehancer(e) : e;
+ }),
+ (t.dehanceValues_ = function (e) {
+ return void 0 !== this.dehancer && e.length > 0 ? e.map(this.dehancer) : e;
+ }),
+ (t.intercept_ = function (e) {
+ return Kt(this, e);
+ }),
+ (t.observe_ = function (e, t) {
+ return (
+ void 0 === t && (t = !1),
+ t &&
+ e({
+ observableKind: 'array',
+ object: this.proxy_,
+ debugObjectName: this.atom_.name_,
+ type: 'splice',
+ index: 0,
+ added: this.values_.slice(),
+ addedCount: this.values_.length,
+ removed: [],
+ removedCount: 0,
+ }),
+ en(this, e)
+ );
+ }),
+ (t.getArrayLength_ = function () {
+ return this.atom_.reportObserved(), this.values_.length;
+ }),
+ (t.setArrayLength_ = function (e) {
+ ('number' != typeof e || e < 0) && a('Out of range: ' + e);
+ var t = this.values_.length;
+ if (e !== t)
+ if (e > t) {
+ for (var n = new Array(e - t), r = 0; r < e - t; r++) n[r] = void 0;
+ this.spliceWithArray_(t, 0, n);
+ } else this.spliceWithArray_(e, t - e);
+ }),
+ (t.updateArrayLength_ = function (e, t) {
+ e !== this.lastKnownLength_ && a(16),
+ (this.lastKnownLength_ += t),
+ this.legacyMode_ && t > 0 && Bn(e + t + 1);
+ }),
+ (t.spliceWithArray_ = function (e, t, n) {
+ var r = this;
+ this.atom_;
+ var i = this.values_.length;
+ if (
+ (void 0 === e ? (e = 0) : e > i ? (e = i) : e < 0 && (e = Math.max(0, i + e)),
+ (t =
+ 1 === arguments.length
+ ? i - e
+ : null == t
+ ? 0
+ : Math.max(0, Math.min(t, i - e))),
+ void 0 === n && (n = f),
+ Xt(this))
+ ) {
+ var o = Zt(this, {
+ object: this.proxy_,
+ type: rn,
+ index: e,
+ removedCount: t,
+ added: n,
+ });
+ if (!o) return f;
+ (t = o.removedCount), (n = o.added);
+ }
+ if (
+ ((n =
+ 0 === n.length
+ ? n
+ : n.map(function (e) {
+ return r.enhancer_(e, void 0);
+ })),
+ this.legacyMode_)
+ ) {
+ var a = n.length - t;
+ this.updateArrayLength_(i, a);
+ }
+ var s = this.spliceItemsIntoValues_(e, t, n);
+ return (
+ (0 === t && 0 === n.length) || this.notifyArraySplice_(e, n, s),
+ this.dehanceValues_(s)
+ );
+ }),
+ (t.spliceItemsIntoValues_ = function (e, t, n) {
+ var r;
+ if (n.length < 1e4) return (r = this.values_).splice.apply(r, [e, t].concat(n));
+ var i = this.values_.slice(e, e + t),
+ o = this.values_.slice(e + t);
+ this.values_.length = e + n.length - t;
+ for (var a = 0; a < n.length; a++) this.values_[e + a] = n[a];
+ for (var s = 0; s < o.length; s++) this.values_[e + n.length + s] = o[s];
+ return i;
+ }),
+ (t.notifyArrayChildUpdate_ = function (e, t, n) {
+ var r = !this.owned_ && !1,
+ i = Jt(this),
+ o =
+ i || r
+ ? {
+ observableKind: 'array',
+ object: this.proxy_,
+ type: on,
+ debugObjectName: this.atom_.name_,
+ index: e,
+ newValue: t,
+ oldValue: n,
+ }
+ : null;
+ this.atom_.reportChanged(), i && tn(this, o);
+ }),
+ (t.notifyArraySplice_ = function (e, t, n) {
+ var r = !this.owned_ && !1,
+ i = Jt(this),
+ o =
+ i || r
+ ? {
+ observableKind: 'array',
+ object: this.proxy_,
+ debugObjectName: this.atom_.name_,
+ type: rn,
+ index: e,
+ removed: n,
+ added: t,
+ removedCount: n.length,
+ addedCount: t.length,
+ }
+ : null;
+ this.atom_.reportChanged(), i && tn(this, o);
+ }),
+ (t.get_ = function (e) {
+ if (e < this.values_.length)
+ return this.atom_.reportObserved(), this.dehanceValue_(this.values_[e]);
+ console.warn(
+ '[mobx.array] Attempt to read an array index (' +
+ e +
+ ') that is out of bounds (' +
+ this.values_.length +
+ '). Please check length first. Out of bound indices will not be tracked by MobX',
+ );
+ }),
+ (t.set_ = function (e, t) {
+ var n = this.values_;
+ if (e < n.length) {
+ this.atom_;
+ var r = n[e];
+ if (Xt(this)) {
+ var i = Zt(this, { type: on, object: this.proxy_, index: e, newValue: t });
+ if (!i) return;
+ t = i.newValue;
+ }
+ (t = this.enhancer_(t, r)) !== r &&
+ ((n[e] = t), this.notifyArrayChildUpdate_(e, t, r));
+ } else e === n.length ? this.spliceWithArray_(e, 0, [t]) : a(17, e, n.length);
+ }),
+ e
+ );
+ })();
+ function ln(e, t, n, r) {
+ void 0 === n && (n = 'ObservableArray'), void 0 === r && (r = !1), y();
+ var i = new sn(n, t, r, !1);
+ _(i.values_, W, i);
+ var o = new Proxy(i.values_, an);
+ if (((i.proxy_ = o), e && e.length)) {
+ var a = ze(!0);
+ i.spliceWithArray_(0, 0, e), Ue(a);
+ }
+ return o;
+ }
+ var cn = {
+ clear: function () {
+ return this.splice(0);
+ },
+ replace: function (e) {
+ var t = this[W];
+ return t.spliceWithArray_(0, t.values_.length, e);
+ },
+ toJSON: function () {
+ return this.slice();
+ },
+ splice: function (e, t) {
+ for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
+ r[i - 2] = arguments[i];
+ var o = this[W];
+ switch (arguments.length) {
+ case 0:
+ return [];
+ case 1:
+ return o.spliceWithArray_(e);
+ case 2:
+ return o.spliceWithArray_(e, t);
+ }
+ return o.spliceWithArray_(e, t, r);
+ },
+ spliceWithArray: function (e, t, n) {
+ return this[W].spliceWithArray_(e, t, n);
+ },
+ push: function () {
+ for (var e = this[W], t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r];
+ return e.spliceWithArray_(e.values_.length, 0, n), e.values_.length;
+ },
+ pop: function () {
+ return this.splice(Math.max(this[W].values_.length - 1, 0), 1)[0];
+ },
+ shift: function () {
+ return this.splice(0, 1)[0];
+ },
+ unshift: function () {
+ for (var e = this[W], t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r];
+ return e.spliceWithArray_(0, 0, n), e.values_.length;
+ },
+ reverse: function () {
+ return (
+ lt.trackingDerivation && a(37, 'reverse'), this.replace(this.slice().reverse()), this
+ );
+ },
+ sort: function () {
+ lt.trackingDerivation && a(37, 'sort');
+ var e = this.slice();
+ return e.sort.apply(e, arguments), this.replace(e), this;
+ },
+ remove: function (e) {
+ var t = this[W],
+ n = t.dehanceValues_(t.values_).indexOf(e);
+ return n > -1 && (this.splice(n, 1), !0);
+ },
+ };
+ function un(e, t) {
+ 'function' == typeof Array.prototype[e] && (cn[e] = t(e));
+ }
+ function pn(e) {
+ return function () {
+ var t = this[W];
+ t.atom_.reportObserved();
+ var n = t.dehanceValues_(t.values_);
+ return n[e].apply(n, arguments);
+ };
+ }
+ function dn(e) {
+ return function (t, n) {
+ var r = this,
+ i = this[W];
+ return (
+ i.atom_.reportObserved(),
+ i.dehanceValues_(i.values_)[e](function (e, i) {
+ return t.call(n, e, i, r);
+ })
+ );
+ };
+ }
+ function fn(e) {
+ return function () {
+ var t = this,
+ n = this[W];
+ n.atom_.reportObserved();
+ var r = n.dehanceValues_(n.values_),
+ i = arguments[0];
+ return (
+ (arguments[0] = function (e, n, r) {
+ return i(e, n, r, t);
+ }),
+ r[e].apply(r, arguments)
+ );
+ };
+ }
+ un('concat', pn),
+ un('flat', pn),
+ un('includes', pn),
+ un('indexOf', pn),
+ un('join', pn),
+ un('lastIndexOf', pn),
+ un('slice', pn),
+ un('toString', pn),
+ un('toLocaleString', pn),
+ un('every', dn),
+ un('filter', dn),
+ un('find', dn),
+ un('findIndex', dn),
+ un('flatMap', dn),
+ un('forEach', dn),
+ un('map', dn),
+ un('some', dn),
+ un('reduce', fn),
+ un('reduceRight', fn);
+ var hn,
+ mn,
+ gn = A('ObservableArrayAdministration', sn);
+ function yn(e) {
+ return k(e) && gn(e[W]);
+ }
+ var vn = {},
+ bn = 'add',
+ xn = 'delete';
+ (hn = Symbol.iterator), (mn = Symbol.toStringTag);
+ var wn,
+ kn,
+ On = (function () {
+ function e(e, t, n) {
+ void 0 === t && (t = X),
+ void 0 === n && (n = 'ObservableMap'),
+ (this.enhancer_ = void 0),
+ (this.name_ = void 0),
+ (this[W] = vn),
+ (this.data_ = void 0),
+ (this.hasMap_ = void 0),
+ (this.keysAtom_ = void 0),
+ (this.interceptors_ = void 0),
+ (this.changeListeners_ = void 0),
+ (this.dehancer = void 0),
+ (this.enhancer_ = t),
+ (this.name_ = n),
+ x(Map) || a(18),
+ (this.keysAtom_ = Q('ObservableMap.keys()')),
+ (this.data_ = new Map()),
+ (this.hasMap_ = new Map()),
+ this.merge(e);
+ }
+ var t = e.prototype;
+ return (
+ (t.has_ = function (e) {
+ return this.data_.has(e);
+ }),
+ (t.has = function (e) {
+ var t = this;
+ if (!lt.trackingDerivation) return this.has_(e);
+ var n = this.hasMap_.get(e);
+ if (!n) {
+ var r = (n = new qe(this.has_(e), K, 'ObservableMap.key?', !1));
+ this.hasMap_.set(e, r),
+ $t(r, function () {
+ return t.hasMap_.delete(e);
+ });
+ }
+ return n.get();
+ }),
+ (t.set = function (e, t) {
+ var n = this.has_(e);
+ if (Xt(this)) {
+ var r = Zt(this, { type: n ? on : bn, object: this, newValue: t, name: e });
+ if (!r) return this;
+ t = r.newValue;
+ }
+ return n ? this.updateValue_(e, t) : this.addValue_(e, t), this;
+ }),
+ (t.delete = function (e) {
+ var t = this;
+ if ((this.keysAtom_, Xt(this) && !Zt(this, { type: xn, object: this, name: e })))
+ return !1;
+ if (this.has_(e)) {
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: xn,
+ object: this,
+ oldValue: this.data_.get(e).value_,
+ name: e,
+ }
+ : null;
+ return (
+ Yt(function () {
+ t.keysAtom_.reportChanged(),
+ t.updateHasMapEntry_(e, !1),
+ t.data_.get(e).setNewValue_(void 0),
+ t.data_.delete(e);
+ }),
+ n && tn(this, r),
+ !0
+ );
+ }
+ return !1;
+ }),
+ (t.updateHasMapEntry_ = function (e, t) {
+ var n = this.hasMap_.get(e);
+ n && n.setNewValue_(t);
+ }),
+ (t.updateValue_ = function (e, t) {
+ var n = this.data_.get(e);
+ if ((t = n.prepareNewValue_(t)) !== lt.UNCHANGED) {
+ var r = Jt(this),
+ i = r
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: on,
+ object: this,
+ oldValue: n.value_,
+ name: e,
+ newValue: t,
+ }
+ : null;
+ n.setNewValue_(t), r && tn(this, i);
+ }
+ }),
+ (t.addValue_ = function (e, t) {
+ var n = this;
+ this.keysAtom_,
+ Yt(function () {
+ var r = new qe(t, n.enhancer_, 'ObservableMap.key', !1);
+ n.data_.set(e, r),
+ (t = r.value_),
+ n.updateHasMapEntry_(e, !0),
+ n.keysAtom_.reportChanged();
+ });
+ var r = Jt(this),
+ i = r
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: bn,
+ object: this,
+ name: e,
+ newValue: t,
+ }
+ : null;
+ r && tn(this, i);
+ }),
+ (t.get = function (e) {
+ return this.has(e)
+ ? this.dehanceValue_(this.data_.get(e).get())
+ : this.dehanceValue_(void 0);
+ }),
+ (t.dehanceValue_ = function (e) {
+ return void 0 !== this.dehancer ? this.dehancer(e) : e;
+ }),
+ (t.keys = function () {
+ return this.keysAtom_.reportObserved(), this.data_.keys();
+ }),
+ (t.values = function () {
+ var e = this,
+ t = this.keys();
+ return Kn({
+ next: function () {
+ var n = t.next(),
+ r = n.done,
+ i = n.value;
+ return { done: r, value: r ? void 0 : e.get(i) };
+ },
+ });
+ }),
+ (t.entries = function () {
+ var e = this,
+ t = this.keys();
+ return Kn({
+ next: function () {
+ var n = t.next(),
+ r = n.done,
+ i = n.value;
+ return { done: r, value: r ? void 0 : [i, e.get(i)] };
+ },
+ });
+ }),
+ (t[hn] = function () {
+ return this.entries();
+ }),
+ (t.forEach = function (e, t) {
+ for (var n, r = U(this); !(n = r()).done; ) {
+ var i = n.value,
+ o = i[0],
+ a = i[1];
+ e.call(t, a, o, this);
+ }
+ }),
+ (t.merge = function (e) {
+ var t = this;
+ return (
+ Sn(e) && (e = new Map(e)),
+ Yt(function () {
+ O(e)
+ ? (function (e) {
+ var t = Object.keys(e);
+ if (!P) return t;
+ var n = Object.getOwnPropertySymbols(e);
+ return n.length
+ ? [].concat(
+ t,
+ n.filter(function (t) {
+ return d.propertyIsEnumerable.call(e, t);
+ }),
+ )
+ : t;
+ })(e).forEach(function (n) {
+ return t.set(n, e[n]);
+ })
+ : Array.isArray(e)
+ ? e.forEach(function (e) {
+ var n = e[0],
+ r = e[1];
+ return t.set(n, r);
+ })
+ : j(e)
+ ? (e.constructor !== Map && a(19, e),
+ e.forEach(function (e, n) {
+ return t.set(n, e);
+ }))
+ : null != e && a(20, e);
+ }),
+ this
+ );
+ }),
+ (t.clear = function () {
+ var e = this;
+ Yt(function () {
+ Je(function () {
+ for (var t, n = U(e.keys()); !(t = n()).done; ) {
+ var r = t.value;
+ e.delete(r);
+ }
+ });
+ });
+ }),
+ (t.replace = function (e) {
+ var t = this;
+ return (
+ Yt(function () {
+ for (
+ var n,
+ r = (function (e) {
+ if (j(e) || Sn(e)) return e;
+ if (Array.isArray(e)) return new Map(e);
+ if (O(e)) {
+ var t = new Map();
+ for (var n in e) t.set(n, e[n]);
+ return t;
+ }
+ return a(21, e);
+ })(e),
+ i = new Map(),
+ o = !1,
+ s = U(t.data_.keys());
+ !(n = s()).done;
+
+ ) {
+ var l = n.value;
+ if (!r.has(l))
+ if (t.delete(l)) o = !0;
+ else {
+ var c = t.data_.get(l);
+ i.set(l, c);
+ }
+ }
+ for (var u, p = U(r.entries()); !(u = p()).done; ) {
+ var d = u.value,
+ f = d[0],
+ h = d[1],
+ m = t.data_.has(f);
+ if ((t.set(f, h), t.data_.has(f))) {
+ var g = t.data_.get(f);
+ i.set(f, g), m || (o = !0);
+ }
+ }
+ if (!o)
+ if (t.data_.size !== i.size) t.keysAtom_.reportChanged();
+ else
+ for (
+ var y = t.data_.keys(), v = i.keys(), b = y.next(), x = v.next();
+ !b.done;
+
+ ) {
+ if (b.value !== x.value) {
+ t.keysAtom_.reportChanged();
+ break;
+ }
+ (b = y.next()), (x = v.next());
+ }
+ t.data_ = i;
+ }),
+ this
+ );
+ }),
+ (t.toString = function () {
+ return '[object ObservableMap]';
+ }),
+ (t.toJSON = function () {
+ return Array.from(this);
+ }),
+ (t.observe_ = function (e, t) {
+ return en(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Kt(this, e);
+ }),
+ L(e, [
+ {
+ key: 'size',
+ get: function () {
+ return this.keysAtom_.reportObserved(), this.data_.size;
+ },
+ },
+ {
+ key: mn,
+ get: function () {
+ return 'Map';
+ },
+ },
+ ]),
+ e
+ );
+ })(),
+ Sn = A('ObservableMap', On),
+ En = {};
+ (wn = Symbol.iterator), (kn = Symbol.toStringTag);
+ var _n = (function () {
+ function e(e, t, n) {
+ void 0 === t && (t = X),
+ void 0 === n && (n = 'ObservableSet'),
+ (this.name_ = void 0),
+ (this[W] = En),
+ (this.data_ = new Set()),
+ (this.atom_ = void 0),
+ (this.changeListeners_ = void 0),
+ (this.interceptors_ = void 0),
+ (this.dehancer = void 0),
+ (this.enhancer_ = void 0),
+ (this.name_ = n),
+ x(Set) || a(22),
+ (this.atom_ = Q(this.name_)),
+ (this.enhancer_ = function (e, r) {
+ return t(e, r, n);
+ }),
+ e && this.replace(e);
+ }
+ var t = e.prototype;
+ return (
+ (t.dehanceValue_ = function (e) {
+ return void 0 !== this.dehancer ? this.dehancer(e) : e;
+ }),
+ (t.clear = function () {
+ var e = this;
+ Yt(function () {
+ Je(function () {
+ for (var t, n = U(e.data_.values()); !(t = n()).done; ) {
+ var r = t.value;
+ e.delete(r);
+ }
+ });
+ });
+ }),
+ (t.forEach = function (e, t) {
+ for (var n, r = U(this); !(n = r()).done; ) {
+ var i = n.value;
+ e.call(t, i, i, this);
+ }
+ }),
+ (t.add = function (e) {
+ var t = this;
+ if ((this.atom_, Xt(this) && !Zt(this, { type: bn, object: this, newValue: e })))
+ return this;
+ if (!this.has(e)) {
+ Yt(function () {
+ t.data_.add(t.enhancer_(e, void 0)), t.atom_.reportChanged();
+ });
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'set',
+ debugObjectName: this.name_,
+ type: bn,
+ object: this,
+ newValue: e,
+ }
+ : null;
+ n && tn(this, r);
+ }
+ return this;
+ }),
+ (t.delete = function (e) {
+ var t = this;
+ if (Xt(this) && !Zt(this, { type: xn, object: this, oldValue: e })) return !1;
+ if (this.has(e)) {
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'set',
+ debugObjectName: this.name_,
+ type: xn,
+ object: this,
+ oldValue: e,
+ }
+ : null;
+ return (
+ Yt(function () {
+ t.atom_.reportChanged(), t.data_.delete(e);
+ }),
+ n && tn(this, r),
+ !0
+ );
+ }
+ return !1;
+ }),
+ (t.has = function (e) {
+ return this.atom_.reportObserved(), this.data_.has(this.dehanceValue_(e));
+ }),
+ (t.entries = function () {
+ var e = 0,
+ t = Array.from(this.keys()),
+ n = Array.from(this.values());
+ return Kn({
+ next: function () {
+ var r = e;
+ return (
+ (e += 1), r < n.length ? { value: [t[r], n[r]], done: !1 } : { done: !0 }
+ );
+ },
+ });
+ }),
+ (t.keys = function () {
+ return this.values();
+ }),
+ (t.values = function () {
+ this.atom_.reportObserved();
+ var e = this,
+ t = 0,
+ n = Array.from(this.data_.values());
+ return Kn({
+ next: function () {
+ return t < n.length
+ ? { value: e.dehanceValue_(n[t++]), done: !1 }
+ : { done: !0 };
+ },
+ });
+ }),
+ (t.replace = function (e) {
+ var t = this;
+ return (
+ An(e) && (e = new Set(e)),
+ Yt(function () {
+ Array.isArray(e) || C(e)
+ ? (t.clear(),
+ e.forEach(function (e) {
+ return t.add(e);
+ }))
+ : null != e && a('Cannot initialize set from ' + e);
+ }),
+ this
+ );
+ }),
+ (t.observe_ = function (e, t) {
+ return en(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Kt(this, e);
+ }),
+ (t.toJSON = function () {
+ return Array.from(this);
+ }),
+ (t.toString = function () {
+ return '[object ObservableSet]';
+ }),
+ (t[wn] = function () {
+ return this.values();
+ }),
+ L(e, [
+ {
+ key: 'size',
+ get: function () {
+ return this.atom_.reportObserved(), this.data_.size;
+ },
+ },
+ {
+ key: kn,
+ get: function () {
+ return 'Set';
+ },
+ },
+ ]),
+ e
+ );
+ })(),
+ An = A('ObservableSet', _n),
+ jn = Object.create(null),
+ Cn = 'remove',
+ Pn = (function () {
+ function e(e, t, n, r) {
+ void 0 === t && (t = new Map()),
+ void 0 === r && (r = he),
+ (this.target_ = void 0),
+ (this.values_ = void 0),
+ (this.name_ = void 0),
+ (this.defaultAnnotation_ = void 0),
+ (this.keysAtom_ = void 0),
+ (this.changeListeners_ = void 0),
+ (this.interceptors_ = void 0),
+ (this.proxy_ = void 0),
+ (this.isPlainObject_ = void 0),
+ (this.appliedAnnotations_ = void 0),
+ (this.pendingKeys_ = void 0),
+ (this.target_ = e),
+ (this.values_ = t),
+ (this.name_ = n),
+ (this.defaultAnnotation_ = r),
+ (this.keysAtom_ = new H('ObservableObject.keys')),
+ (this.isPlainObject_ = O(this.target_));
+ }
+ var t = e.prototype;
+ return (
+ (t.getObservablePropValue_ = function (e) {
+ return this.values_.get(e).get();
+ }),
+ (t.setObservablePropValue_ = function (e, t) {
+ var n = this.values_.get(e);
+ if (n instanceof He) return n.set(t), !0;
+ if (Xt(this)) {
+ var r = Zt(this, {
+ type: on,
+ object: this.proxy_ || this.target_,
+ name: e,
+ newValue: t,
+ });
+ if (!r) return null;
+ t = r.newValue;
+ }
+ if ((t = n.prepareNewValue_(t)) !== lt.UNCHANGED) {
+ var i = Jt(this),
+ o = i
+ ? {
+ type: on,
+ observableKind: 'object',
+ debugObjectName: this.name_,
+ object: this.proxy_ || this.target_,
+ oldValue: n.value_,
+ name: e,
+ newValue: t,
+ }
+ : null;
+ n.setNewValue_(t), i && tn(this, o);
+ }
+ return !0;
+ }),
+ (t.get_ = function (e) {
+ return (
+ lt.trackingDerivation && !I(this.target_, e) && this.has_(e), this.target_[e]
+ );
+ }),
+ (t.set_ = function (e, t, n) {
+ return (
+ void 0 === n && (n = !1),
+ I(this.target_, e)
+ ? this.values_.has(e)
+ ? this.setObservablePropValue_(e, t)
+ : n
+ ? Reflect.set(this.target_, e, t)
+ : ((this.target_[e] = t), !0)
+ : this.extend_(
+ e,
+ { value: t, enumerable: !0, writable: !0, configurable: !0 },
+ this.defaultAnnotation_,
+ n,
+ )
+ );
+ }),
+ (t.has_ = function (e) {
+ if (!lt.trackingDerivation) return e in this.target_;
+ this.pendingKeys_ || (this.pendingKeys_ = new Map());
+ var t = this.pendingKeys_.get(e);
+ return (
+ t ||
+ ((t = new qe(e in this.target_, K, 'ObservableObject.key?', !1)),
+ this.pendingKeys_.set(e, t)),
+ t.get()
+ );
+ }),
+ (t.make_ = function (e, t) {
+ if ((!0 === t && (t = this.defaultAnnotation_), !1 !== t)) {
+ if (!(e in this.target_)) {
+ var n;
+ if (null == (n = this.target_[B]) ? void 0 : n[e]) return;
+ a(1, t.annotationType_, this.name_ + '.' + e.toString());
+ }
+ for (var r = this.target_; r && r !== d; ) {
+ var i = u(r, e);
+ if (i) {
+ var o = t.make_(this, e, i, r);
+ if (0 === o) return;
+ if (1 === o) break;
+ }
+ r = Object.getPrototypeOf(r);
+ }
+ Nn(this, 0, e);
+ }
+ }),
+ (t.extend_ = function (e, t, n, r) {
+ if ((void 0 === r && (r = !1), !0 === n && (n = this.defaultAnnotation_), !1 === n))
+ return this.defineProperty_(e, t, r);
+ var i = n.extend_(this, e, t, r);
+ return i && Nn(this, 0, e), i;
+ }),
+ (t.defineProperty_ = function (e, t, n) {
+ void 0 === n && (n = !1);
+ try {
+ pt();
+ var r = this.delete_(e);
+ if (!r) return r;
+ if (Xt(this)) {
+ var i = Zt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: bn,
+ newValue: t.value,
+ });
+ if (!i) return null;
+ var o = i.newValue;
+ t.value !== o && (t = D({}, t, { value: o }));
+ }
+ if (n) {
+ if (!Reflect.defineProperty(this.target_, e, t)) return !1;
+ } else p(this.target_, e, t);
+ this.notifyPropertyAddition_(e, t.value);
+ } finally {
+ dt();
+ }
+ return !0;
+ }),
+ (t.defineObservableProperty_ = function (e, t, n, r) {
+ void 0 === r && (r = !1);
+ try {
+ pt();
+ var i = this.delete_(e);
+ if (!i) return i;
+ if (Xt(this)) {
+ var o = Zt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: bn,
+ newValue: t,
+ });
+ if (!o) return null;
+ t = o.newValue;
+ }
+ var a = In(e),
+ s = {
+ configurable: !lt.safeDescriptors || this.isPlainObject_,
+ enumerable: !0,
+ get: a.get,
+ set: a.set,
+ };
+ if (r) {
+ if (!Reflect.defineProperty(this.target_, e, s)) return !1;
+ } else p(this.target_, e, s);
+ var l = new qe(t, n, 'ObservableObject.key', !1);
+ this.values_.set(e, l), this.notifyPropertyAddition_(e, l.value_);
+ } finally {
+ dt();
+ }
+ return !0;
+ }),
+ (t.defineComputedProperty_ = function (e, t, n) {
+ void 0 === n && (n = !1);
+ try {
+ pt();
+ var r = this.delete_(e);
+ if (!r) return r;
+ if (
+ Xt(this) &&
+ !Zt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: bn,
+ newValue: void 0,
+ })
+ )
+ return null;
+ t.name || (t.name = 'ObservableObject.key'),
+ (t.context = this.proxy_ || this.target_);
+ var i = In(e),
+ o = {
+ configurable: !lt.safeDescriptors || this.isPlainObject_,
+ enumerable: !1,
+ get: i.get,
+ set: i.set,
+ };
+ if (n) {
+ if (!Reflect.defineProperty(this.target_, e, o)) return !1;
+ } else p(this.target_, e, o);
+ this.values_.set(e, new He(t)), this.notifyPropertyAddition_(e, void 0);
+ } finally {
+ dt();
+ }
+ return !0;
+ }),
+ (t.delete_ = function (e, t) {
+ if ((void 0 === t && (t = !1), !I(this.target_, e))) return !0;
+ if (
+ Xt(this) &&
+ !Zt(this, { object: this.proxy_ || this.target_, name: e, type: Cn })
+ )
+ return null;
+ try {
+ var n, r;
+ pt();
+ var i,
+ o = Jt(this),
+ a = this.values_.get(e),
+ s = void 0;
+ if ((!a && o && (s = null == (i = u(this.target_, e)) ? void 0 : i.value), t)) {
+ if (!Reflect.deleteProperty(this.target_, e)) return !1;
+ } else delete this.target_[e];
+ if (
+ (a && (this.values_.delete(e), a instanceof qe && (s = a.value_), ht(a)),
+ this.keysAtom_.reportChanged(),
+ null == (n = this.pendingKeys_) ||
+ null == (r = n.get(e)) ||
+ r.set(e in this.target_),
+ o)
+ ) {
+ var l = {
+ type: Cn,
+ observableKind: 'object',
+ object: this.proxy_ || this.target_,
+ debugObjectName: this.name_,
+ oldValue: s,
+ name: e,
+ };
+ o && tn(this, l);
+ }
+ } finally {
+ dt();
+ }
+ return !0;
+ }),
+ (t.observe_ = function (e, t) {
+ return en(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Kt(this, e);
+ }),
+ (t.notifyPropertyAddition_ = function (e, t) {
+ var n,
+ r,
+ i = Jt(this);
+ if (i) {
+ var o = i
+ ? {
+ type: bn,
+ observableKind: 'object',
+ debugObjectName: this.name_,
+ object: this.proxy_ || this.target_,
+ name: e,
+ newValue: t,
+ }
+ : null;
+ i && tn(this, o);
+ }
+ null == (n = this.pendingKeys_) || null == (r = n.get(e)) || r.set(!0),
+ this.keysAtom_.reportChanged();
+ }),
+ (t.ownKeys_ = function () {
+ return this.keysAtom_.reportObserved(), T(this.target_);
+ }),
+ (t.keys_ = function () {
+ return this.keysAtom_.reportObserved(), Object.keys(this.target_);
+ }),
+ e
+ );
+ })();
+ function Tn(e, t) {
+ var n;
+ if (I(e, W)) return e;
+ var r = null != (n = null == t ? void 0 : t.name) ? n : 'ObservableObject',
+ i = new Pn(
+ e,
+ new Map(),
+ String(r),
+ (function (e) {
+ var t;
+ return e ? (null != (t = e.defaultDecorator) ? t : me(e)) : void 0;
+ })(t),
+ );
+ return E(e, W, i), e;
+ }
+ var Rn = A('ObservableObjectAdministration', Pn);
+ function In(e) {
+ return (
+ jn[e] ||
+ (jn[e] = {
+ get: function () {
+ return this[W].getObservablePropValue_(e);
+ },
+ set: function (t) {
+ return this[W].setObservablePropValue_(e, t);
+ },
+ })
+ );
+ }
+ function $n(e) {
+ return !!k(e) && Rn(e[W]);
+ }
+ function Nn(e, t, n) {
+ var r;
+ null == (r = e.target_[B]) || delete r[n];
+ }
+ var Ln,
+ Dn,
+ Mn = 0,
+ Fn = function () {};
+ (Ln = Fn),
+ (Dn = Array.prototype),
+ Object.setPrototypeOf
+ ? Object.setPrototypeOf(Ln.prototype, Dn)
+ : void 0 !== Ln.prototype.__proto__
+ ? (Ln.prototype.__proto__ = Dn)
+ : (Ln.prototype = Dn);
+ var zn = (function (e) {
+ function t(t, n, r, i) {
+ var o;
+ void 0 === r && (r = 'ObservableArray'),
+ void 0 === i && (i = !1),
+ (o = e.call(this) || this);
+ var a = new sn(r, n, i, !0);
+ if (((a.proxy_ = F(o)), _(F(o), W, a), t && t.length)) {
+ var s = ze(!0);
+ o.spliceWithArray(0, 0, t), Ue(s);
+ }
+ return o;
+ }
+ M(t, e);
+ var n = t.prototype;
+ return (
+ (n.concat = function () {
+ this[W].atom_.reportObserved();
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
+ t[n] = arguments[n];
+ return Array.prototype.concat.apply(
+ this.slice(),
+ t.map(function (e) {
+ return yn(e) ? e.slice() : e;
+ }),
+ );
+ }),
+ (n[Symbol.iterator] = function () {
+ var e = this,
+ t = 0;
+ return Kn({
+ next: function () {
+ return t < e.length ? { value: e[t++], done: !1 } : { done: !0, value: void 0 };
+ },
+ });
+ }),
+ L(t, [
+ {
+ key: 'length',
+ get: function () {
+ return this[W].getArrayLength_();
+ },
+ set: function (e) {
+ this[W].setArrayLength_(e);
+ },
+ },
+ {
+ key: Symbol.toStringTag,
+ get: function () {
+ return 'Array';
+ },
+ },
+ ]),
+ t
+ );
+ })(Fn);
+ function Un(e) {
+ p(
+ zn.prototype,
+ '' + e,
+ (function (e) {
+ return {
+ enumerable: !1,
+ configurable: !0,
+ get: function () {
+ return this[W].get_(e);
+ },
+ set: function (t) {
+ this[W].set_(e, t);
+ },
+ };
+ })(e),
+ );
+ }
+ function Bn(e) {
+ if (e > Mn) {
+ for (var t = Mn; t < e + 100; t++) Un(t);
+ Mn = e;
+ }
+ }
+ function qn(e, t, n) {
+ return new zn(e, t, n);
+ }
+ function Vn(e, t) {
+ if ('object' == typeof e && null !== e) {
+ if (yn(e)) return void 0 !== t && a(23), e[W].atom_;
+ if (An(e)) return e[W];
+ if (Sn(e)) {
+ if (void 0 === t) return e.keysAtom_;
+ var n = e.data_.get(t) || e.hasMap_.get(t);
+ return n || a(25, t, Hn(e)), n;
+ }
+ if ($n(e)) {
+ if (!t) return a(26);
+ var r = e[W].values_.get(t);
+ return r || a(27, t, Hn(e)), r;
+ }
+ if (Y(e) || Ye(e) || xt(e)) return e;
+ } else if (x(e) && xt(e[W])) return e[W];
+ a(28);
+ }
+ function Wn(e, t) {
+ return (
+ e || a(29),
+ void 0 !== t
+ ? Wn(Vn(e, t))
+ : Y(e) || Ye(e) || xt(e) || Sn(e) || An(e)
+ ? e
+ : e[W]
+ ? e[W]
+ : void a(24, e)
+ );
+ }
+ function Hn(e, t) {
+ var n;
+ if (void 0 !== t) n = Vn(e, t);
+ else {
+ if (Pt(e)) return e.name;
+ n = $n(e) || Sn(e) || An(e) ? Wn(e) : Vn(e);
+ }
+ return n.name_;
+ }
+ Object.entries(cn).forEach(function (e) {
+ var t = e[0],
+ n = e[1];
+ 'concat' !== t && E(zn.prototype, t, n);
+ }),
+ Bn(1e3);
+ var Yn = d.toString;
+ function Qn(e, t, n) {
+ return void 0 === n && (n = -1), Gn(e, t, n);
+ }
+ function Gn(e, t, n, r, i) {
+ if (e === t) return 0 !== e || 1 / e == 1 / t;
+ if (null == e || null == t) return !1;
+ if (e != e) return t != t;
+ var o = typeof e;
+ if (!x(o) && 'object' !== o && 'object' != typeof t) return !1;
+ var a = Yn.call(e);
+ if (a !== Yn.call(t)) return !1;
+ switch (a) {
+ case '[object RegExp]':
+ case '[object String]':
+ return '' + e == '' + t;
+ case '[object Number]':
+ return +e != +e ? +t != +t : 0 == +e ? 1 / +e == 1 / t : +e == +t;
+ case '[object Date]':
+ case '[object Boolean]':
+ return +e == +t;
+ case '[object Symbol]':
+ return (
+ 'undefined' != typeof Symbol && Symbol.valueOf.call(e) === Symbol.valueOf.call(t)
+ );
+ case '[object Map]':
+ case '[object Set]':
+ n >= 0 && n++;
+ }
+ (e = Xn(e)), (t = Xn(t));
+ var s = '[object Array]' === a;
+ if (!s) {
+ if ('object' != typeof e || 'object' != typeof t) return !1;
+ var l = e.constructor,
+ c = t.constructor;
+ if (
+ l !== c &&
+ !(x(l) && l instanceof l && x(c) && c instanceof c) &&
+ 'constructor' in e &&
+ 'constructor' in t
+ )
+ return !1;
+ }
+ if (0 === n) return !1;
+ n < 0 && (n = -1), (i = i || []);
+ for (var u = (r = r || []).length; u--; ) if (r[u] === e) return i[u] === t;
+ if ((r.push(e), i.push(t), s)) {
+ if ((u = e.length) !== t.length) return !1;
+ for (; u--; ) if (!Gn(e[u], t[u], n - 1, r, i)) return !1;
+ } else {
+ var p,
+ d = Object.keys(e);
+ if (((u = d.length), Object.keys(t).length !== u)) return !1;
+ for (; u--; ) if (!I(t, (p = d[u])) || !Gn(e[p], t[p], n - 1, r, i)) return !1;
+ }
+ return r.pop(), i.pop(), !0;
+ }
+ function Xn(e) {
+ return yn(e) ? e.slice() : j(e) || Sn(e) || C(e) || An(e) ? Array.from(e.entries()) : e;
+ }
+ function Kn(e) {
+ return (e[Symbol.iterator] = Zn), e;
+ }
+ function Zn() {
+ return this;
+ }
+ function Jn() {
+ return (
+ (Jn =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ Jn.apply(this, arguments)
+ );
+ }
+ function er(e, t) {
+ return (
+ (er =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ er(e, t)
+ );
+ }
+ function tr(e) {
+ return (
+ (tr = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e);
+ }),
+ tr(e)
+ );
+ }
+ function nr(e, t, n) {
+ return (
+ (nr = (function () {
+ if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
+ if (Reflect.construct.sham) return !1;
+ if ('function' == typeof Proxy) return !0;
+ try {
+ return (
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0
+ );
+ } catch (e) {
+ return !1;
+ }
+ })()
+ ? Reflect.construct
+ : function (e, t, n) {
+ var r = [null];
+ r.push.apply(r, t);
+ var i = new (Function.bind.apply(e, r))();
+ return n && er(i, n.prototype), i;
+ }),
+ nr.apply(null, arguments)
+ );
+ }
+ function rr(e) {
+ var t = 'function' == typeof Map ? new Map() : void 0;
+ return (
+ (rr = function (e) {
+ if (
+ null === e ||
+ ((n = e), -1 === Function.toString.call(n).indexOf('[native code]'))
+ )
+ return e;
+ var n;
+ if ('function' != typeof e)
+ throw new TypeError('Super expression must either be null or a function');
+ if (void 0 !== t) {
+ if (t.has(e)) return t.get(e);
+ t.set(e, r);
+ }
+ function r() {
+ return nr(e, arguments, tr(this).constructor);
+ }
+ return (
+ (r.prototype = Object.create(e.prototype, {
+ constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 },
+ })),
+ er(r, e)
+ );
+ }),
+ rr(e)
+ );
+ }
+ ['Symbol', 'Map', 'Set', 'Symbol'].forEach(function (e) {
+ void 0 === l()[e] && a("MobX requires global '" + e + "' to be available or polyfilled");
+ }),
+ 'object' == typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ &&
+ __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
+ spy: function (e) {
+ return console.warn('[mobx.spy] Is a no-op in production builds'), function () {};
+ },
+ extras: { getDebugName: Hn },
+ $mobx: W,
+ });
+ var ir = (function (e) {
+ var t, n;
+ function r(t) {
+ return (function (e) {
+ if (void 0 === e)
+ throw new ReferenceError(
+ "this hasn't been initialised - super() hasn't been called",
+ );
+ return e;
+ })(
+ e.call(
+ this,
+ 'An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#' +
+ t +
+ ' for more information.',
+ ) || this,
+ );
+ }
+ return (
+ (n = e),
+ ((t = r).prototype = Object.create(n.prototype)),
+ (t.prototype.constructor = t),
+ er(t, n),
+ r
+ );
+ })(rr(Error));
+ function or(e) {
+ return Math.round(255 * e);
+ }
+ function ar(e, t, n) {
+ return or(e) + ',' + or(t) + ',' + or(n);
+ }
+ function sr(e, t, n, r) {
+ if ((void 0 === r && (r = ar), 0 === t)) return r(n, n, n);
+ var i = (((e % 360) + 360) % 360) / 60,
+ o = (1 - Math.abs(2 * n - 1)) * t,
+ a = o * (1 - Math.abs((i % 2) - 1)),
+ s = 0,
+ l = 0,
+ c = 0;
+ i >= 0 && i < 1
+ ? ((s = o), (l = a))
+ : i >= 1 && i < 2
+ ? ((s = a), (l = o))
+ : i >= 2 && i < 3
+ ? ((l = o), (c = a))
+ : i >= 3 && i < 4
+ ? ((l = a), (c = o))
+ : i >= 4 && i < 5
+ ? ((s = a), (c = o))
+ : i >= 5 && i < 6 && ((s = o), (c = a));
+ var u = n - o / 2;
+ return r(s + u, l + u, c + u);
+ }
+ var lr = {
+ aliceblue: 'f0f8ff',
+ antiquewhite: 'faebd7',
+ aqua: '00ffff',
+ aquamarine: '7fffd4',
+ azure: 'f0ffff',
+ beige: 'f5f5dc',
+ bisque: 'ffe4c4',
+ black: '000',
+ blanchedalmond: 'ffebcd',
+ blue: '0000ff',
+ blueviolet: '8a2be2',
+ brown: 'a52a2a',
+ burlywood: 'deb887',
+ cadetblue: '5f9ea0',
+ chartreuse: '7fff00',
+ chocolate: 'd2691e',
+ coral: 'ff7f50',
+ cornflowerblue: '6495ed',
+ cornsilk: 'fff8dc',
+ crimson: 'dc143c',
+ cyan: '00ffff',
+ darkblue: '00008b',
+ darkcyan: '008b8b',
+ darkgoldenrod: 'b8860b',
+ darkgray: 'a9a9a9',
+ darkgreen: '006400',
+ darkgrey: 'a9a9a9',
+ darkkhaki: 'bdb76b',
+ darkmagenta: '8b008b',
+ darkolivegreen: '556b2f',
+ darkorange: 'ff8c00',
+ darkorchid: '9932cc',
+ darkred: '8b0000',
+ darksalmon: 'e9967a',
+ darkseagreen: '8fbc8f',
+ darkslateblue: '483d8b',
+ darkslategray: '2f4f4f',
+ darkslategrey: '2f4f4f',
+ darkturquoise: '00ced1',
+ darkviolet: '9400d3',
+ deeppink: 'ff1493',
+ deepskyblue: '00bfff',
+ dimgray: '696969',
+ dimgrey: '696969',
+ dodgerblue: '1e90ff',
+ firebrick: 'b22222',
+ floralwhite: 'fffaf0',
+ forestgreen: '228b22',
+ fuchsia: 'ff00ff',
+ gainsboro: 'dcdcdc',
+ ghostwhite: 'f8f8ff',
+ gold: 'ffd700',
+ goldenrod: 'daa520',
+ gray: '808080',
+ green: '008000',
+ greenyellow: 'adff2f',
+ grey: '808080',
+ honeydew: 'f0fff0',
+ hotpink: 'ff69b4',
+ indianred: 'cd5c5c',
+ indigo: '4b0082',
+ ivory: 'fffff0',
+ khaki: 'f0e68c',
+ lavender: 'e6e6fa',
+ lavenderblush: 'fff0f5',
+ lawngreen: '7cfc00',
+ lemonchiffon: 'fffacd',
+ lightblue: 'add8e6',
+ lightcoral: 'f08080',
+ lightcyan: 'e0ffff',
+ lightgoldenrodyellow: 'fafad2',
+ lightgray: 'd3d3d3',
+ lightgreen: '90ee90',
+ lightgrey: 'd3d3d3',
+ lightpink: 'ffb6c1',
+ lightsalmon: 'ffa07a',
+ lightseagreen: '20b2aa',
+ lightskyblue: '87cefa',
+ lightslategray: '789',
+ lightslategrey: '789',
+ lightsteelblue: 'b0c4de',
+ lightyellow: 'ffffe0',
+ lime: '0f0',
+ limegreen: '32cd32',
+ linen: 'faf0e6',
+ magenta: 'f0f',
+ maroon: '800000',
+ mediumaquamarine: '66cdaa',
+ mediumblue: '0000cd',
+ mediumorchid: 'ba55d3',
+ mediumpurple: '9370db',
+ mediumseagreen: '3cb371',
+ mediumslateblue: '7b68ee',
+ mediumspringgreen: '00fa9a',
+ mediumturquoise: '48d1cc',
+ mediumvioletred: 'c71585',
+ midnightblue: '191970',
+ mintcream: 'f5fffa',
+ mistyrose: 'ffe4e1',
+ moccasin: 'ffe4b5',
+ navajowhite: 'ffdead',
+ navy: '000080',
+ oldlace: 'fdf5e6',
+ olive: '808000',
+ olivedrab: '6b8e23',
+ orange: 'ffa500',
+ orangered: 'ff4500',
+ orchid: 'da70d6',
+ palegoldenrod: 'eee8aa',
+ palegreen: '98fb98',
+ paleturquoise: 'afeeee',
+ palevioletred: 'db7093',
+ papayawhip: 'ffefd5',
+ peachpuff: 'ffdab9',
+ peru: 'cd853f',
+ pink: 'ffc0cb',
+ plum: 'dda0dd',
+ powderblue: 'b0e0e6',
+ purple: '800080',
+ rebeccapurple: '639',
+ red: 'f00',
+ rosybrown: 'bc8f8f',
+ royalblue: '4169e1',
+ saddlebrown: '8b4513',
+ salmon: 'fa8072',
+ sandybrown: 'f4a460',
+ seagreen: '2e8b57',
+ seashell: 'fff5ee',
+ sienna: 'a0522d',
+ silver: 'c0c0c0',
+ skyblue: '87ceeb',
+ slateblue: '6a5acd',
+ slategray: '708090',
+ slategrey: '708090',
+ snow: 'fffafa',
+ springgreen: '00ff7f',
+ steelblue: '4682b4',
+ tan: 'd2b48c',
+ teal: '008080',
+ thistle: 'd8bfd8',
+ tomato: 'ff6347',
+ turquoise: '40e0d0',
+ violet: 'ee82ee',
+ wheat: 'f5deb3',
+ white: 'fff',
+ whitesmoke: 'f5f5f5',
+ yellow: 'ff0',
+ yellowgreen: '9acd32',
+ },
+ cr = /^#[a-fA-F0-9]{6}$/,
+ ur = /^#[a-fA-F0-9]{8}$/,
+ pr = /^#[a-fA-F0-9]{3}$/,
+ dr = /^#[a-fA-F0-9]{4}$/,
+ fr = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,
+ hr =
+ /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,
+ mr =
+ /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
+ gr =
+ /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
+ function yr(e) {
+ if ('string' != typeof e) throw new ir(3);
+ var t = (function (e) {
+ if ('string' != typeof e) return e;
+ var t = e.toLowerCase();
+ return lr[t] ? '#' + lr[t] : e;
+ })(e);
+ if (t.match(cr))
+ return {
+ red: parseInt('' + t[1] + t[2], 16),
+ green: parseInt('' + t[3] + t[4], 16),
+ blue: parseInt('' + t[5] + t[6], 16),
+ };
+ if (t.match(ur)) {
+ var n = parseFloat((parseInt('' + t[7] + t[8], 16) / 255).toFixed(2));
+ return {
+ red: parseInt('' + t[1] + t[2], 16),
+ green: parseInt('' + t[3] + t[4], 16),
+ blue: parseInt('' + t[5] + t[6], 16),
+ alpha: n,
+ };
+ }
+ if (t.match(pr))
+ return {
+ red: parseInt('' + t[1] + t[1], 16),
+ green: parseInt('' + t[2] + t[2], 16),
+ blue: parseInt('' + t[3] + t[3], 16),
+ };
+ if (t.match(dr)) {
+ var r = parseFloat((parseInt('' + t[4] + t[4], 16) / 255).toFixed(2));
+ return {
+ red: parseInt('' + t[1] + t[1], 16),
+ green: parseInt('' + t[2] + t[2], 16),
+ blue: parseInt('' + t[3] + t[3], 16),
+ alpha: r,
+ };
+ }
+ var i = fr.exec(t);
+ if (i)
+ return {
+ red: parseInt('' + i[1], 10),
+ green: parseInt('' + i[2], 10),
+ blue: parseInt('' + i[3], 10),
+ };
+ var o = hr.exec(t.substring(0, 50));
+ if (o)
+ return {
+ red: parseInt('' + o[1], 10),
+ green: parseInt('' + o[2], 10),
+ blue: parseInt('' + o[3], 10),
+ alpha: parseFloat('' + o[4]),
+ };
+ var a = mr.exec(t);
+ if (a) {
+ var s =
+ 'rgb(' +
+ sr(
+ parseInt('' + a[1], 10),
+ parseInt('' + a[2], 10) / 100,
+ parseInt('' + a[3], 10) / 100,
+ ) +
+ ')',
+ l = fr.exec(s);
+ if (!l) throw new ir(4, t, s);
+ return {
+ red: parseInt('' + l[1], 10),
+ green: parseInt('' + l[2], 10),
+ blue: parseInt('' + l[3], 10),
+ };
+ }
+ var c = gr.exec(t.substring(0, 50));
+ if (c) {
+ var u =
+ 'rgb(' +
+ sr(
+ parseInt('' + c[1], 10),
+ parseInt('' + c[2], 10) / 100,
+ parseInt('' + c[3], 10) / 100,
+ ) +
+ ')',
+ p = fr.exec(u);
+ if (!p) throw new ir(4, t, u);
+ return {
+ red: parseInt('' + p[1], 10),
+ green: parseInt('' + p[2], 10),
+ blue: parseInt('' + p[3], 10),
+ alpha: parseFloat('' + c[4]),
+ };
+ }
+ throw new ir(5);
+ }
+ function vr(e) {
+ return (function (e) {
+ var t,
+ n = e.red / 255,
+ r = e.green / 255,
+ i = e.blue / 255,
+ o = Math.max(n, r, i),
+ a = Math.min(n, r, i),
+ s = (o + a) / 2;
+ if (o === a)
+ return void 0 !== e.alpha
+ ? { hue: 0, saturation: 0, lightness: s, alpha: e.alpha }
+ : { hue: 0, saturation: 0, lightness: s };
+ var l = o - a,
+ c = s > 0.5 ? l / (2 - o - a) : l / (o + a);
+ switch (o) {
+ case n:
+ t = (r - i) / l + (r < i ? 6 : 0);
+ break;
+ case r:
+ t = (i - n) / l + 2;
+ break;
+ default:
+ t = (n - r) / l + 4;
+ }
+ return (
+ (t *= 60),
+ void 0 !== e.alpha
+ ? { hue: t, saturation: c, lightness: s, alpha: e.alpha }
+ : { hue: t, saturation: c, lightness: s }
+ );
+ })(yr(e));
+ }
+ var br = function (e) {
+ return 7 === e.length && e[1] === e[2] && e[3] === e[4] && e[5] === e[6]
+ ? '#' + e[1] + e[3] + e[5]
+ : e;
+ };
+ function xr(e) {
+ var t = e.toString(16);
+ return 1 === t.length ? '0' + t : t;
+ }
+ function wr(e) {
+ return xr(Math.round(255 * e));
+ }
+ function kr(e, t, n) {
+ return br('#' + wr(e) + wr(t) + wr(n));
+ }
+ function Or(e, t, n) {
+ return sr(e, t, n, kr);
+ }
+ function Sr(e, t, n) {
+ if ('number' == typeof e && 'number' == typeof t && 'number' == typeof n)
+ return br('#' + xr(e) + xr(t) + xr(n));
+ if ('object' == typeof e && void 0 === t && void 0 === n)
+ return br('#' + xr(e.red) + xr(e.green) + xr(e.blue));
+ throw new ir(6);
+ }
+ function Er(e, t, n, r) {
+ if ('string' == typeof e && 'number' == typeof t) {
+ var i = yr(e);
+ return 'rgba(' + i.red + ',' + i.green + ',' + i.blue + ',' + t + ')';
+ }
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n &&
+ 'number' == typeof r
+ )
+ return r >= 1 ? Sr(e, t, n) : 'rgba(' + e + ',' + t + ',' + n + ',' + r + ')';
+ if ('object' == typeof e && void 0 === t && void 0 === n && void 0 === r)
+ return e.alpha >= 1
+ ? Sr(e.red, e.green, e.blue)
+ : 'rgba(' + e.red + ',' + e.green + ',' + e.blue + ',' + e.alpha + ')';
+ throw new ir(7);
+ }
+ var _r = function (e) {
+ return (
+ 'number' == typeof e.red &&
+ 'number' == typeof e.green &&
+ 'number' == typeof e.blue &&
+ ('number' != typeof e.alpha || void 0 === e.alpha)
+ );
+ },
+ Ar = function (e) {
+ return (
+ 'number' == typeof e.red &&
+ 'number' == typeof e.green &&
+ 'number' == typeof e.blue &&
+ 'number' == typeof e.alpha
+ );
+ },
+ jr = function (e) {
+ return (
+ 'number' == typeof e.hue &&
+ 'number' == typeof e.saturation &&
+ 'number' == typeof e.lightness &&
+ ('number' != typeof e.alpha || void 0 === e.alpha)
+ );
+ },
+ Cr = function (e) {
+ return (
+ 'number' == typeof e.hue &&
+ 'number' == typeof e.saturation &&
+ 'number' == typeof e.lightness &&
+ 'number' == typeof e.alpha
+ );
+ };
+ function Pr(e) {
+ if ('object' != typeof e) throw new ir(8);
+ if (Ar(e)) return Er(e);
+ if (_r(e)) return Sr(e);
+ if (Cr(e))
+ return (function (e, t, n, r) {
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n &&
+ 'number' == typeof r
+ )
+ return r >= 1 ? Or(e, t, n) : 'rgba(' + sr(e, t, n) + ',' + r + ')';
+ if ('object' == typeof e && void 0 === t && void 0 === n && void 0 === r)
+ return e.alpha >= 1
+ ? Or(e.hue, e.saturation, e.lightness)
+ : 'rgba(' + sr(e.hue, e.saturation, e.lightness) + ',' + e.alpha + ')';
+ throw new ir(2);
+ })(e);
+ if (jr(e))
+ return (function (e, t, n) {
+ if ('number' == typeof e && 'number' == typeof t && 'number' == typeof n)
+ return Or(e, t, n);
+ if ('object' == typeof e && void 0 === t && void 0 === n)
+ return Or(e.hue, e.saturation, e.lightness);
+ throw new ir(1);
+ })(e);
+ throw new ir(8);
+ }
+ function Tr(e, t, n) {
+ return function () {
+ var r = n.concat(Array.prototype.slice.call(arguments));
+ return r.length >= t ? e.apply(this, r) : Tr(e, t, r);
+ };
+ }
+ function Rr(e) {
+ return Tr(e, e.length, []);
+ }
+ function Ir(e, t, n) {
+ return Math.max(e, Math.min(t, n));
+ }
+ function $r(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Pr(Jn({}, n, { lightness: Ir(0, 1, n.lightness - parseFloat(e)) }));
+ }
+ var Nr = Rr($r);
+ function Lr(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Pr(Jn({}, n, { saturation: Ir(0, 1, n.saturation - parseFloat(e)) }));
+ }
+ var Dr = Rr(Lr);
+ function Mr(e) {
+ if ('transparent' === e) return 0;
+ var t = yr(e),
+ n = Object.keys(t).map(function (e) {
+ var n = t[e] / 255;
+ return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
+ }),
+ r = n[0],
+ i = n[1],
+ o = n[2];
+ return parseFloat((0.2126 * r + 0.7152 * i + 0.0722 * o).toFixed(3));
+ }
+ function Fr(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Pr(Jn({}, n, { lightness: Ir(0, 1, n.lightness + parseFloat(e)) }));
+ }
+ var zr = Rr(Fr),
+ Ur = '#000',
+ Br = '#fff';
+ function qr(e, t, n, r) {
+ void 0 === t && (t = Ur), void 0 === n && (n = Br), void 0 === r && (r = !0);
+ var i,
+ o,
+ a,
+ s = Mr(e) > 0.179,
+ l = s ? t : n;
+ return !r ||
+ ((i = l),
+ (o = Mr(e)),
+ (a = Mr(i)),
+ parseFloat((o > a ? (o + 0.05) / (a + 0.05) : (a + 0.05) / (o + 0.05)).toFixed(2)) >=
+ 4.5)
+ ? l
+ : s
+ ? Ur
+ : Br;
+ }
+ function Vr(e, t) {
+ if ('transparent' === t) return t;
+ var n = yr(t);
+ return Er(
+ Jn({}, n, {
+ alpha: Ir(
+ 0,
+ 1,
+ +(100 * ('number' == typeof n.alpha ? n.alpha : 1) - 100 * parseFloat(e)).toFixed(
+ 2,
+ ) / 100,
+ ),
+ }),
+ );
+ }
+ var Wr = Rr(Vr);
+ const Hr = {
+ spacing: {
+ unit: 5,
+ sectionHorizontal: ({ spacing: e }) => 8 * e.unit,
+ sectionVertical: ({ spacing: e }) => 8 * e.unit,
+ },
+ breakpoints: { small: '50rem', medium: '75rem', large: '105rem' },
+ colors: {
+ tonalOffset: 0.2,
+ primary: {
+ main: '#32329f',
+ light: ({ colors: e }) => zr(e.tonalOffset, e.primary.main),
+ dark: ({ colors: e }) => Nr(e.tonalOffset, e.primary.main),
+ contrastText: ({ colors: e }) => qr(e.primary.main),
+ },
+ success: {
+ main: '#1d8127',
+ light: ({ colors: e }) => zr(2 * e.tonalOffset, e.success.main),
+ dark: ({ colors: e }) => Nr(e.tonalOffset, e.success.main),
+ contrastText: ({ colors: e }) => qr(e.success.main),
+ },
+ warning: {
+ main: '#ffa500',
+ light: ({ colors: e }) => zr(e.tonalOffset, e.warning.main),
+ dark: ({ colors: e }) => Nr(e.tonalOffset, e.warning.main),
+ contrastText: '#ffffff',
+ },
+ error: {
+ main: '#d41f1c',
+ light: ({ colors: e }) => zr(e.tonalOffset, e.error.main),
+ dark: ({ colors: e }) => Nr(e.tonalOffset, e.error.main),
+ contrastText: ({ colors: e }) => qr(e.error.main),
+ },
+ gray: { 50: '#FAFAFA', 100: '#F5F5F5' },
+ text: {
+ primary: '#333333',
+ secondary: ({ colors: e }) => zr(e.tonalOffset, e.text.primary),
+ },
+ border: { dark: 'rgba(0,0,0, 0.1)', light: '#ffffff' },
+ responses: {
+ success: {
+ color: ({ colors: e }) => e.success.main,
+ backgroundColor: ({ colors: e }) => Wr(0.93, e.success.main),
+ tabTextColor: ({ colors: e }) => e.responses.success.color,
+ },
+ error: {
+ color: ({ colors: e }) => e.error.main,
+ backgroundColor: ({ colors: e }) => Wr(0.93, e.error.main),
+ tabTextColor: ({ colors: e }) => e.responses.error.color,
+ },
+ redirect: {
+ color: ({ colors: e }) => e.warning.main,
+ backgroundColor: ({ colors: e }) => Wr(0.9, e.responses.redirect.color),
+ tabTextColor: ({ colors: e }) => e.responses.redirect.color,
+ },
+ info: {
+ color: '#87ceeb',
+ backgroundColor: ({ colors: e }) => Wr(0.9, e.responses.info.color),
+ tabTextColor: ({ colors: e }) => e.responses.info.color,
+ },
+ },
+ http: {
+ get: '#2F8132',
+ post: '#186FAF',
+ put: '#95507c',
+ options: '#947014',
+ patch: '#bf581d',
+ delete: '#cc3333',
+ basic: '#707070',
+ link: '#07818F',
+ head: '#A23DAD',
+ },
+ },
+ schema: {
+ linesColor: e =>
+ zr(e.colors.tonalOffset, Dr(e.colors.tonalOffset, e.colors.primary.main)),
+ defaultDetailsWidth: '75%',
+ typeNameColor: e => e.colors.text.secondary,
+ typeTitleColor: e => e.schema.typeNameColor,
+ requireLabelColor: e => e.colors.error.main,
+ labelsTextSize: '0.9em',
+ nestingSpacing: '1em',
+ nestedBackground: '#fafafa',
+ arrow: { size: '1.1em', color: e => e.colors.text.secondary },
+ },
+ typography: {
+ fontSize: '14px',
+ lineHeight: '1.5em',
+ fontWeightRegular: '400',
+ fontWeightBold: '600',
+ fontWeightLight: '300',
+ fontFamily: 'Roboto, sans-serif',
+ smoothing: 'antialiased',
+ optimizeSpeed: !0,
+ headings: {
+ fontFamily: 'Montserrat, sans-serif',
+ fontWeight: '400',
+ lineHeight: '1.6em',
+ },
+ code: {
+ fontSize: '13px',
+ fontFamily: 'Courier, monospace',
+ lineHeight: ({ typography: e }) => e.lineHeight,
+ fontWeight: ({ typography: e }) => e.fontWeightRegular,
+ color: '#e53935',
+ backgroundColor: 'rgba(38, 50, 56, 0.05)',
+ wrap: !1,
+ },
+ links: {
+ color: ({ colors: e }) => e.primary.main,
+ visited: ({ typography: e }) => e.links.color,
+ hover: ({ typography: e }) => zr(0.2, e.links.color),
+ textDecoration: 'auto',
+ hoverTextDecoration: 'auto',
+ },
+ },
+ sidebar: {
+ width: '260px',
+ backgroundColor: '#fafafa',
+ textColor: '#333333',
+ activeTextColor: e =>
+ e.sidebar.textColor !== Hr.sidebar.textColor
+ ? e.sidebar.textColor
+ : e.colors.primary.main,
+ groupItems: {
+ activeBackgroundColor: e => Nr(0.1, e.sidebar.backgroundColor),
+ activeTextColor: e => e.sidebar.activeTextColor,
+ textTransform: 'uppercase',
+ },
+ level1Items: {
+ activeBackgroundColor: e => Nr(0.05, e.sidebar.backgroundColor),
+ activeTextColor: e => e.sidebar.activeTextColor,
+ textTransform: 'none',
+ },
+ arrow: { size: '1.5em', color: e => e.sidebar.textColor },
+ },
+ logo: {
+ maxHeight: ({ sidebar: e }) => e.width,
+ maxWidth: ({ sidebar: e }) => e.width,
+ gutter: '2px',
+ },
+ rightPanel: {
+ backgroundColor: '#263238',
+ width: '40%',
+ textColor: '#ffffff',
+ servers: {
+ overlay: { backgroundColor: '#fafafa', textColor: '#263238' },
+ url: { backgroundColor: '#fff' },
+ },
+ },
+ codeBlock: { backgroundColor: ({ rightPanel: e }) => Nr(0.1, e.backgroundColor) },
+ fab: { backgroundColor: '#f2f2f2', color: '#0065FB' },
+ };
+ var Yr = Hr;
+ const Qr = 'undefined' != typeof window && 'HTMLElement' in window;
+ function Gr(e) {
+ return 'undefined' != typeof document ? document.querySelector(e) : null;
+ }
+ function Xr(e, t = !0) {
+ const n = e.parentNode;
+ if (!n) return;
+ const r = window.getComputedStyle(n, void 0),
+ i = parseInt(r.getPropertyValue('border-top-width'), 10),
+ o = parseInt(r.getPropertyValue('border-left-width'), 10),
+ a = e.offsetTop - n.offsetTop < n.scrollTop,
+ s = e.offsetTop - n.offsetTop + e.clientHeight - i > n.scrollTop + n.clientHeight,
+ l = e.offsetLeft - n.offsetLeft < n.scrollLeft,
+ c = e.offsetLeft - n.offsetLeft + e.clientWidth - o > n.scrollLeft + n.clientWidth,
+ u = a && !s;
+ (a || s) &&
+ t &&
+ (n.scrollTop = e.offsetTop - n.offsetTop - n.clientHeight / 2 - i + e.clientHeight / 2),
+ (l || c) &&
+ t &&
+ (n.scrollLeft =
+ e.offsetLeft - n.offsetLeft - n.clientWidth / 2 - o + e.clientWidth / 2),
+ (a || s || l || c) && !t && e.scrollIntoView(u);
+ }
+ var Kr = r(1304),
+ Zr = r.n(Kr);
+ function Jr(e, t) {
+ const n = [];
+ for (let r = 0; r < e.length - 1; r++) n.push(t(e[r], !1));
+ return 0 !== e.length && n.push(t(e[e.length - 1], !0)), n;
+ }
+ function ei(e, t) {
+ const n = {};
+ for (const r in e) e.hasOwnProperty(r) && (n[r] = t(e[r], r, e));
+ return n;
+ }
+ function ti(e) {
+ return e.endsWith('/') ? e.substring(0, e.length - 1) : e;
+ }
+ function ni(e) {
+ return !isNaN(parseFloat(e)) && isFinite(e);
+ }
+ const ri = (e, ...t) => {
+ if (!t.length) return e;
+ const n = t.shift();
+ return void 0 === n
+ ? e
+ : (oi(e) &&
+ oi(n) &&
+ Object.keys(n).forEach(t => {
+ oi(n[t]) ? (e[t] || (e[t] = {}), ri(e[t], n[t])) : (e[t] = n[t]);
+ }),
+ ri(e, ...t));
+ },
+ ii = e => null !== e && 'object' == typeof e,
+ oi = e => ii(e) && !ci(e);
+ function ai(e) {
+ return (
+ Zr()(e) ||
+ e
+ .toString()
+ .toLowerCase()
+ .replace(/\s+/g, '-')
+ .replace(/&/g, '-and-')
+ .replace(/\--+/g, '-')
+ .replace(/^-+/, '')
+ .replace(/-+$/, '')
+ );
+ }
+ function si(e) {
+ return 'undefined' == typeof URL ? new (r(8150).URL)(e) : new URL(e);
+ }
+ function li(e) {
+ return e.replace(/["\\]/g, '\\$&');
+ }
+ function ci(e) {
+ return Array.isArray(e);
+ }
+ function ui(e) {
+ return 'boolean' == typeof e;
+ }
+ const pi = {
+ enum: 'Enum',
+ enumSingleValue: 'Value',
+ enumArray: 'Items',
+ default: 'Default',
+ deprecated: 'Deprecated',
+ example: 'Example',
+ examples: 'Examples',
+ recursive: 'Recursive',
+ arrayOf: 'Array of ',
+ webhook: 'Event',
+ const: 'Value',
+ noResultsFound: 'No results found',
+ download: 'Download',
+ downloadSpecification: 'Download OpenAPI specification',
+ responses: 'Responses',
+ callbackResponses: 'Callback responses',
+ requestSamples: 'Request samples',
+ responseSamples: 'Response samples',
+ };
+ function di(e, t) {
+ const n = pi[e];
+ return void 0 !== t ? n[t] : n;
+ }
+ var fi = (e => (
+ (e.SummaryOnly = 'summary-only'), (e.PathOnly = 'path-only'), (e.IdOnly = 'id-only'), e
+ ))(fi || {}),
+ hi = Object.defineProperty,
+ mi = Object.defineProperties,
+ gi = Object.getOwnPropertyDescriptors,
+ yi = Object.getOwnPropertySymbols,
+ vi = Object.prototype.hasOwnProperty,
+ bi = Object.prototype.propertyIsEnumerable,
+ xi = (e, t, n) =>
+ t in e
+ ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ wi = (e, t) => {
+ for (var n in t || (t = {})) vi.call(t, n) && xi(e, n, t[n]);
+ if (yi) for (var n of yi(t)) bi.call(t, n) && xi(e, n, t[n]);
+ return e;
+ };
+ function ki(e, t) {
+ return void 0 === e ? t || !1 : 'string' == typeof e ? 'false' !== e : e;
+ }
+ function Oi(e) {
+ return 'string' == typeof e ? parseInt(e, 10) : 'number' == typeof e ? e : void 0;
+ }
+ class Si {
+ static normalizeExpandResponses(e) {
+ if ('all' === e) return 'all';
+ if ('string' == typeof e) {
+ const t = {};
+ return (
+ e.split(',').forEach(e => {
+ t[e.trim()] = !0;
+ }),
+ t
+ );
+ }
+ return (
+ void 0 !== e &&
+ console.warn(
+ `expandResponses must be a string but received value "${e}" of type ${typeof e}`,
+ ),
+ {}
+ );
+ }
+ static normalizeHideHostname(e) {
+ return !!e;
+ }
+ static normalizeScrollYOffset(e) {
+ if ('string' == typeof e && !ni(e)) {
+ const t = Gr(e);
+ t ||
+ console.warn(
+ 'scrollYOffset value is a selector to non-existing element. Using offset 0 by default',
+ );
+ const n = (t && t.getBoundingClientRect().bottom) || 0;
+ return () => n;
+ }
+ return 'number' == typeof e || ni(e)
+ ? () => ('number' == typeof e ? e : parseFloat(e))
+ : 'function' == typeof e
+ ? () => {
+ const t = e();
+ return (
+ 'number' != typeof t &&
+ console.warn(
+ `scrollYOffset should return number but returned value "${t}" of type ${typeof t}`,
+ ),
+ t
+ );
+ }
+ : (void 0 !== e &&
+ console.warn(
+ 'Wrong value for scrollYOffset ReDoc option: should be string, number or function',
+ ),
+ () => 0);
+ }
+ static normalizeShowExtensions(e) {
+ if (void 0 === e) return !1;
+ if ('' === e) return !0;
+ if ('string' != typeof e) return e;
+ switch (e) {
+ case 'true':
+ return !0;
+ case 'false':
+ return !1;
+ default:
+ return e.split(',').map(e => e.trim());
+ }
+ }
+ static normalizeSideNavStyle(e) {
+ const t = fi.SummaryOnly;
+ if ('string' != typeof e) return t;
+ switch (e) {
+ case t:
+ return e;
+ case fi.PathOnly:
+ return fi.PathOnly;
+ case fi.IdOnly:
+ return fi.IdOnly;
+ default:
+ return t;
+ }
+ }
+ static normalizePayloadSampleIdx(e) {
+ return 'number' == typeof e
+ ? Math.max(0, e)
+ : 'string' == typeof e && isFinite(e)
+ ? parseInt(e, 10)
+ : 0;
+ }
+ static normalizeJsonSampleExpandLevel(e) {
+ return 'all' === e ? 1 / 0 : isNaN(Number(e)) ? 2 : Math.ceil(Number(e));
+ }
+ static normalizeGeneratedPayloadSamplesMaxDepth(e) {
+ return isNaN(Number(e)) ? 10 : Math.max(0, Number(e));
+ }
+ constructor(e, t = {}) {
+ var n, r, i, o, a;
+ const s = (e = wi(wi({}, t), e)).theme && e.theme.extensionsHook;
+ var l, c;
+ (null == (n = e.theme) ? void 0 : n.menu) &&
+ !(null == (r = e.theme) ? void 0 : r.sidebar) &&
+ (console.warn('Theme setting "menu" is deprecated. Rename to "sidebar"'),
+ (e.theme.sidebar = e.theme.menu)),
+ (null == (i = e.theme) ? void 0 : i.codeSample) &&
+ !(null == (o = e.theme) ? void 0 : o.codeBlock) &&
+ (console.warn('Theme setting "codeSample" is deprecated. Rename to "codeBlock"'),
+ (e.theme.codeBlock = e.theme.codeSample)),
+ (this.theme = (function (e) {
+ const t = {};
+ let n = 0;
+ const r = (i, o) => {
+ Object.keys(i).forEach(a => {
+ const s = (o ? o + '.' : '') + a,
+ l = i[a];
+ 'function' == typeof l
+ ? Object.defineProperty(i, a, {
+ get() {
+ if (!t[s]) {
+ if ((n++, n > 1e3))
+ throw new Error(
+ `Theme probably contains circular dependency at ${s}: ${l.toString()}`,
+ );
+ t[s] = l(e);
+ }
+ return t[s];
+ },
+ enumerable: !0,
+ })
+ : 'object' == typeof l && r(l, s);
+ });
+ };
+ return r(e, ''), JSON.parse(JSON.stringify(e));
+ })(ri({}, Yr, ((c = wi({}, e.theme)), mi(c, gi({ extensionsHook: void 0 })))))),
+ (this.theme.extensionsHook = s),
+ (l = e.labels),
+ Object.assign(pi, l),
+ (this.scrollYOffset = Si.normalizeScrollYOffset(e.scrollYOffset)),
+ (this.hideHostname = Si.normalizeHideHostname(e.hideHostname)),
+ (this.expandResponses = Si.normalizeExpandResponses(e.expandResponses)),
+ (this.requiredPropsFirst = ki(e.requiredPropsFirst)),
+ (this.sortPropsAlphabetically = ki(e.sortPropsAlphabetically)),
+ (this.sortEnumValuesAlphabetically = ki(e.sortEnumValuesAlphabetically)),
+ (this.sortOperationsAlphabetically = ki(e.sortOperationsAlphabetically)),
+ (this.sortTagsAlphabetically = ki(e.sortTagsAlphabetically)),
+ (this.nativeScrollbars = ki(e.nativeScrollbars)),
+ (this.pathInMiddlePanel = ki(e.pathInMiddlePanel)),
+ (this.untrustedSpec = ki(e.untrustedSpec)),
+ (this.hideDownloadButton = ki(e.hideDownloadButton)),
+ (this.downloadFileName = e.downloadFileName),
+ (this.downloadDefinitionUrl = e.downloadDefinitionUrl),
+ (this.disableSearch = ki(e.disableSearch)),
+ (this.onlyRequiredInSamples = ki(e.onlyRequiredInSamples)),
+ (this.showExtensions = Si.normalizeShowExtensions(e.showExtensions)),
+ (this.sideNavStyle = Si.normalizeSideNavStyle(e.sideNavStyle)),
+ (this.hideSingleRequestSampleTab = ki(e.hideSingleRequestSampleTab)),
+ (this.hideRequestPayloadSample = ki(e.hideRequestPayloadSample)),
+ (this.menuToggle = ki(e.menuToggle, !0)),
+ (this.jsonSampleExpandLevel = Si.normalizeJsonSampleExpandLevel(
+ e.jsonSampleExpandLevel,
+ )),
+ (this.enumSkipQuotes = ki(e.enumSkipQuotes)),
+ (this.hideSchemaTitles = ki(e.hideSchemaTitles)),
+ (this.simpleOneOfTypeLabel = ki(e.simpleOneOfTypeLabel)),
+ (this.payloadSampleIdx = Si.normalizePayloadSampleIdx(e.payloadSampleIdx)),
+ (this.expandSingleSchemaField = ki(e.expandSingleSchemaField)),
+ (this.schemaExpansionLevel = (function (e, t = 0) {
+ return 'all' === e ? 1 / 0 : Oi(e) || t;
+ })(e.schemaExpansionLevel)),
+ (this.showObjectSchemaExamples = ki(e.showObjectSchemaExamples)),
+ (this.showSecuritySchemeType = ki(e.showSecuritySchemeType)),
+ (this.hideSecuritySection = ki(e.hideSecuritySection)),
+ (this.unstable_ignoreMimeParameters = ki(e.unstable_ignoreMimeParameters)),
+ (this.allowedMdComponents = e.allowedMdComponents || {}),
+ (this.expandDefaultServerVariables = ki(e.expandDefaultServerVariables)),
+ (this.maxDisplayedEnumValues = Oi(e.maxDisplayedEnumValues));
+ const u = ci(e.ignoreNamedSchemas)
+ ? e.ignoreNamedSchemas
+ : null == (a = e.ignoreNamedSchemas)
+ ? void 0
+ : a.split(',').map(e => e.trim());
+ (this.ignoreNamedSchemas = new Set(u)),
+ (this.hideSchemaPattern = ki(e.hideSchemaPattern)),
+ (this.generatedPayloadSamplesMaxDepth = Si.normalizeGeneratedPayloadSamplesMaxDepth(
+ e.generatedPayloadSamplesMaxDepth,
+ )),
+ (this.nonce = e.nonce),
+ (this.hideFab = ki(e.hideFab)),
+ (this.minCharacterLengthToInitSearch = Oi(e.minCharacterLengthToInitSearch) || 3),
+ (this.showWebhookVerb = ki(e.showWebhookVerb)),
+ (this.putDownScheme = ki(e.putDownScheme, !1));
+ }
+ }
+ var Ei = r(9864),
+ _i = r(6774),
+ Ai = r.n(_i),
+ ji = function (e) {
+ function t(e, r, l, c, d) {
+ for (
+ var f,
+ h,
+ m,
+ g,
+ x,
+ k = 0,
+ O = 0,
+ S = 0,
+ E = 0,
+ _ = 0,
+ R = 0,
+ $ = (m = f = 0),
+ L = 0,
+ D = 0,
+ M = 0,
+ F = 0,
+ z = l.length,
+ U = z - 1,
+ B = '',
+ q = '',
+ V = '',
+ W = '';
+ L < z;
+
+ ) {
+ if (
+ ((h = l.charCodeAt(L)),
+ L === U &&
+ 0 !== O + E + S + k &&
+ (0 !== O && (h = 47 === O ? 10 : 47), (E = S = k = 0), z++, U++),
+ 0 === O + E + S + k)
+ ) {
+ if (L === U && (0 < D && (B = B.replace(p, '')), 0 < B.trim().length)) {
+ switch (h) {
+ case 32:
+ case 9:
+ case 59:
+ case 13:
+ case 10:
+ break;
+ default:
+ B += l.charAt(L);
+ }
+ h = 59;
+ }
+ switch (h) {
+ case 123:
+ for (f = (B = B.trim()).charCodeAt(0), m = 1, F = ++L; L < z; ) {
+ switch ((h = l.charCodeAt(L))) {
+ case 123:
+ m++;
+ break;
+ case 125:
+ m--;
+ break;
+ case 47:
+ switch ((h = l.charCodeAt(L + 1))) {
+ case 42:
+ case 47:
+ e: {
+ for ($ = L + 1; $ < U; ++$)
+ switch (l.charCodeAt($)) {
+ case 47:
+ if (42 === h && 42 === l.charCodeAt($ - 1) && L + 2 !== $) {
+ L = $ + 1;
+ break e;
+ }
+ break;
+ case 10:
+ if (47 === h) {
+ L = $ + 1;
+ break e;
+ }
+ }
+ L = $;
+ }
+ }
+ break;
+ case 91:
+ h++;
+ case 40:
+ h++;
+ case 34:
+ case 39:
+ for (; L++ < U && l.charCodeAt(L) !== h; );
+ }
+ if (0 === m) break;
+ L++;
+ }
+ if (
+ ((m = l.substring(F, L)),
+ 0 === f && (f = (B = B.replace(u, '').trim()).charCodeAt(0)),
+ 64 === f)
+ ) {
+ switch ((0 < D && (B = B.replace(p, '')), (h = B.charCodeAt(1)))) {
+ case 100:
+ case 109:
+ case 115:
+ case 45:
+ D = r;
+ break;
+ default:
+ D = T;
+ }
+ if (
+ ((F = (m = t(r, D, m, h, d + 1)).length),
+ 0 < I &&
+ ((x = s(3, m, (D = n(T, B, M)), r, j, A, F, h, d, c)),
+ (B = D.join('')),
+ void 0 !== x &&
+ 0 === (F = (m = x.trim()).length) &&
+ ((h = 0), (m = ''))),
+ 0 < F)
+ )
+ switch (h) {
+ case 115:
+ B = B.replace(w, a);
+ case 100:
+ case 109:
+ case 45:
+ m = B + '{' + m + '}';
+ break;
+ case 107:
+ (m = (B = B.replace(y, '$1 $2')) + '{' + m + '}'),
+ (m =
+ 1 === P || (2 === P && o('@' + m, 3))
+ ? '@-webkit-' + m + '@' + m
+ : '@' + m);
+ break;
+ default:
+ (m = B + m), 112 === c && ((q += m), (m = ''));
+ }
+ else m = '';
+ } else m = t(r, n(r, B, M), m, c, d + 1);
+ (V += m), (m = M = D = $ = f = 0), (B = ''), (h = l.charCodeAt(++L));
+ break;
+ case 125:
+ case 59:
+ if (1 < (F = (B = (0 < D ? B.replace(p, '') : B).trim()).length))
+ switch (
+ (0 === $ &&
+ ((f = B.charCodeAt(0)), 45 === f || (96 < f && 123 > f)) &&
+ (F = (B = B.replace(' ', ':')).length),
+ 0 < I &&
+ void 0 !== (x = s(1, B, r, e, j, A, q.length, c, d, c)) &&
+ 0 === (F = (B = x.trim()).length) &&
+ (B = '\0\0'),
+ (f = B.charCodeAt(0)),
+ (h = B.charCodeAt(1)),
+ f)
+ ) {
+ case 0:
+ break;
+ case 64:
+ if (105 === h || 99 === h) {
+ W += B + l.charAt(L);
+ break;
+ }
+ default:
+ 58 !== B.charCodeAt(F - 1) && (q += i(B, f, h, B.charCodeAt(2)));
+ }
+ (M = D = $ = f = 0), (B = ''), (h = l.charCodeAt(++L));
+ }
+ }
+ switch (h) {
+ case 13:
+ case 10:
+ 47 === O
+ ? (O = 0)
+ : 0 === 1 + f && 107 !== c && 0 < B.length && ((D = 1), (B += '\0')),
+ 0 < I * N && s(0, B, r, e, j, A, q.length, c, d, c),
+ (A = 1),
+ j++;
+ break;
+ case 59:
+ case 125:
+ if (0 === O + E + S + k) {
+ A++;
+ break;
+ }
+ default:
+ switch ((A++, (g = l.charAt(L)), h)) {
+ case 9:
+ case 32:
+ if (0 === E + k + O)
+ switch (_) {
+ case 44:
+ case 58:
+ case 9:
+ case 32:
+ g = '';
+ break;
+ default:
+ 32 !== h && (g = ' ');
+ }
+ break;
+ case 0:
+ g = '\\0';
+ break;
+ case 12:
+ g = '\\f';
+ break;
+ case 11:
+ g = '\\v';
+ break;
+ case 38:
+ 0 === E + O + k && ((D = M = 1), (g = '\f' + g));
+ break;
+ case 108:
+ if (0 === E + O + k + C && 0 < $)
+ switch (L - $) {
+ case 2:
+ 112 === _ && 58 === l.charCodeAt(L - 3) && (C = _);
+ case 8:
+ 111 === R && (C = R);
+ }
+ break;
+ case 58:
+ 0 === E + O + k && ($ = L);
+ break;
+ case 44:
+ 0 === O + S + E + k && ((D = 1), (g += '\r'));
+ break;
+ case 34:
+ case 39:
+ 0 === O && (E = E === h ? 0 : 0 === E ? h : E);
+ break;
+ case 91:
+ 0 === E + O + S && k++;
+ break;
+ case 93:
+ 0 === E + O + S && k--;
+ break;
+ case 41:
+ 0 === E + O + k && S--;
+ break;
+ case 40:
+ 0 === E + O + k && (0 === f && (2 * _ + 3 * R == 533 || (f = 1)), S++);
+ break;
+ case 64:
+ 0 === O + S + E + k + $ + m && (m = 1);
+ break;
+ case 42:
+ case 47:
+ if (!(0 < E + k + S))
+ switch (O) {
+ case 0:
+ switch (2 * h + 3 * l.charCodeAt(L + 1)) {
+ case 235:
+ O = 47;
+ break;
+ case 220:
+ (F = L), (O = 42);
+ }
+ break;
+ case 42:
+ 47 === h &&
+ 42 === _ &&
+ F + 2 !== L &&
+ (33 === l.charCodeAt(F + 2) && (q += l.substring(F, L + 1)),
+ (g = ''),
+ (O = 0));
+ }
+ }
+ 0 === O && (B += g);
+ }
+ (R = _), (_ = h), L++;
+ }
+ if (0 < (F = q.length)) {
+ if (
+ ((D = r),
+ 0 < I && void 0 !== (x = s(2, q, D, e, j, A, F, c, d, c)) && 0 === (q = x).length)
+ )
+ return W + q + V;
+ if (((q = D.join(',') + '{' + q + '}'), 0 != P * C)) {
+ switch ((2 !== P || o(q, 2) || (C = 0), C)) {
+ case 111:
+ q = q.replace(b, ':-moz-$1') + q;
+ break;
+ case 112:
+ q =
+ q.replace(v, '::-webkit-input-$1') +
+ q.replace(v, '::-moz-$1') +
+ q.replace(v, ':-ms-input-$1') +
+ q;
+ }
+ C = 0;
+ }
+ }
+ return W + q + V;
+ }
+ function n(e, t, n) {
+ var i = t.trim().split(m);
+ t = i;
+ var o = i.length,
+ a = e.length;
+ switch (a) {
+ case 0:
+ case 1:
+ var s = 0;
+ for (e = 0 === a ? '' : e[0] + ' '; s < o; ++s) t[s] = r(e, t[s], n).trim();
+ break;
+ default:
+ var l = (s = 0);
+ for (t = []; s < o; ++s)
+ for (var c = 0; c < a; ++c) t[l++] = r(e[c] + ' ', i[s], n).trim();
+ }
+ return t;
+ }
+ function r(e, t, n) {
+ var r = t.charCodeAt(0);
+ switch ((33 > r && (r = (t = t.trim()).charCodeAt(0)), r)) {
+ case 38:
+ return t.replace(g, '$1' + e.trim());
+ case 58:
+ return e.trim() + t.replace(g, '$1' + e.trim());
+ default:
+ if (0 < 1 * n && 0 < t.indexOf('\f'))
+ return t.replace(g, (58 === e.charCodeAt(0) ? '' : '$1') + e.trim());
+ }
+ return e + t;
+ }
+ function i(e, t, n, r) {
+ var a = e + ';',
+ s = 2 * t + 3 * n + 4 * r;
+ if (944 === s) {
+ e = a.indexOf(':', 9) + 1;
+ var l = a.substring(e, a.length - 1).trim();
+ return (
+ (l = a.substring(0, e).trim() + l + ';'),
+ 1 === P || (2 === P && o(l, 1)) ? '-webkit-' + l + l : l
+ );
+ }
+ if (0 === P || (2 === P && !o(a, 1))) return a;
+ switch (s) {
+ case 1015:
+ return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
+ case 951:
+ return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
+ case 963:
+ return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
+ case 1009:
+ if (100 !== a.charCodeAt(4)) break;
+ case 969:
+ case 942:
+ return '-webkit-' + a + a;
+ case 978:
+ return '-webkit-' + a + '-moz-' + a + a;
+ case 1019:
+ case 983:
+ return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
+ case 883:
+ if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
+ if (0 < a.indexOf('image-set(', 11)) return a.replace(_, '$1-webkit-$2') + a;
+ break;
+ case 932:
+ if (45 === a.charCodeAt(4))
+ switch (a.charCodeAt(5)) {
+ case 103:
+ return (
+ '-webkit-box-' +
+ a.replace('-grow', '') +
+ '-webkit-' +
+ a +
+ '-ms-' +
+ a.replace('grow', 'positive') +
+ a
+ );
+ case 115:
+ return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
+ case 98:
+ return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
+ }
+ return '-webkit-' + a + '-ms-' + a + a;
+ case 964:
+ return '-webkit-' + a + '-ms-flex-' + a + a;
+ case 1023:
+ if (99 !== a.charCodeAt(8)) break;
+ return (
+ '-webkit-box-pack' +
+ (l = a
+ .substring(a.indexOf(':', 15))
+ .replace('flex-', '')
+ .replace('space-between', 'justify')) +
+ '-webkit-' +
+ a +
+ '-ms-flex-pack' +
+ l +
+ a
+ );
+ case 1005:
+ return f.test(a) ? a.replace(d, ':-webkit-') + a.replace(d, ':-moz-') + a : a;
+ case 1e3:
+ switch (
+ ((t = (l = a.substring(13).trim()).indexOf('-') + 1),
+ l.charCodeAt(0) + l.charCodeAt(t))
+ ) {
+ case 226:
+ l = a.replace(x, 'tb');
+ break;
+ case 232:
+ l = a.replace(x, 'tb-rl');
+ break;
+ case 220:
+ l = a.replace(x, 'lr');
+ break;
+ default:
+ return a;
+ }
+ return '-webkit-' + a + '-ms-' + l + a;
+ case 1017:
+ if (-1 === a.indexOf('sticky', 9)) break;
+ case 975:
+ switch (
+ ((t = (a = e).length - 10),
+ (s =
+ (l = (33 === a.charCodeAt(t) ? a.substring(0, t) : a)
+ .substring(e.indexOf(':', 7) + 1)
+ .trim()).charCodeAt(0) +
+ (0 | l.charCodeAt(7))))
+ ) {
+ case 203:
+ if (111 > l.charCodeAt(8)) break;
+ case 115:
+ a = a.replace(l, '-webkit-' + l) + ';' + a;
+ break;
+ case 207:
+ case 102:
+ a =
+ a.replace(l, '-webkit-' + (102 < s ? 'inline-' : '') + 'box') +
+ ';' +
+ a.replace(l, '-webkit-' + l) +
+ ';' +
+ a.replace(l, '-ms-' + l + 'box') +
+ ';' +
+ a;
+ }
+ return a + ';';
+ case 938:
+ if (45 === a.charCodeAt(5))
+ switch (a.charCodeAt(6)) {
+ case 105:
+ return (
+ (l = a.replace('-items', '')),
+ '-webkit-' + a + '-webkit-box-' + l + '-ms-flex-' + l + a
+ );
+ case 115:
+ return '-webkit-' + a + '-ms-flex-item-' + a.replace(O, '') + a;
+ default:
+ return (
+ '-webkit-' +
+ a +
+ '-ms-flex-line-pack' +
+ a.replace('align-content', '').replace(O, '') +
+ a
+ );
+ }
+ break;
+ case 973:
+ case 989:
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
+ case 931:
+ case 953:
+ if (!0 === E.test(e))
+ return 115 === (l = e.substring(e.indexOf(':') + 1)).charCodeAt(0)
+ ? i(e.replace('stretch', 'fill-available'), t, n, r).replace(
+ ':fill-available',
+ ':stretch',
+ )
+ : a.replace(l, '-webkit-' + l) +
+ a.replace(l, '-moz-' + l.replace('fill-', '')) +
+ a;
+ break;
+ case 962:
+ if (
+ ((a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a),
+ 211 === n + r && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10))
+ )
+ return a.substring(0, a.indexOf(';', 27) + 1).replace(h, '$1-webkit-$2') + a;
+ }
+ return a;
+ }
+ function o(e, t) {
+ var n = e.indexOf(1 === t ? ':' : '{'),
+ r = e.substring(0, 3 !== t ? n : 10);
+ return (
+ (n = e.substring(n + 1, e.length - 1)), $(2 !== t ? r : r.replace(S, '$1'), n, t)
+ );
+ }
+ function a(e, t) {
+ var n = i(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2));
+ return n !== t + ';' ? n.replace(k, ' or ($1)').substring(4) : '(' + t + ')';
+ }
+ function s(e, t, n, r, i, o, a, s, l, u) {
+ for (var p, d = 0, f = t; d < I; ++d)
+ switch ((p = R[d].call(c, e, f, n, r, i, o, a, s, l, u))) {
+ case void 0:
+ case !1:
+ case !0:
+ case null:
+ break;
+ default:
+ f = p;
+ }
+ if (f !== t) return f;
+ }
+ function l(e) {
+ return (
+ void 0 !== (e = e.prefix) &&
+ (($ = null),
+ e ? ('function' != typeof e ? (P = 1) : ((P = 2), ($ = e))) : (P = 0)),
+ l
+ );
+ }
+ function c(e, n) {
+ var r = e;
+ if ((33 > r.charCodeAt(0) && (r = r.trim()), (r = [r]), 0 < I)) {
+ var i = s(-1, n, r, r, j, A, 0, 0, 0, 0);
+ void 0 !== i && 'string' == typeof i && (n = i);
+ }
+ var o = t(T, r, n, 0, 0);
+ return (
+ 0 < I && void 0 !== (i = s(-2, o, r, r, j, A, o.length, 0, 0, 0)) && (o = i),
+ (C = 0),
+ (A = j = 1),
+ o
+ );
+ }
+ var u = /^\0+/g,
+ p = /[\0\r\f]/g,
+ d = /: */g,
+ f = /zoo|gra/,
+ h = /([,: ])(transform)/g,
+ m = /,\r+?/g,
+ g = /([\t\r\n ])*\f?&/g,
+ y = /@(k\w+)\s*(\S*)\s*/,
+ v = /::(place)/g,
+ b = /:(read-only)/g,
+ x = /[svh]\w+-[tblr]{2}/,
+ w = /\(\s*(.*)\s*\)/g,
+ k = /([\s\S]*?);/g,
+ O = /-self|flex-/g,
+ S = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
+ E = /stretch|:\s*\w+\-(?:conte|avail)/,
+ _ = /([^-])(image-set\()/,
+ A = 1,
+ j = 1,
+ C = 0,
+ P = 1,
+ T = [],
+ R = [],
+ I = 0,
+ $ = null,
+ N = 0;
+ return (
+ (c.use = function e(t) {
+ switch (t) {
+ case void 0:
+ case null:
+ I = R.length = 0;
+ break;
+ default:
+ if ('function' == typeof t) R[I++] = t;
+ else if ('object' == typeof t)
+ for (var n = 0, r = t.length; n < r; ++n) e(t[n]);
+ else N = 0 | !!t;
+ }
+ return e;
+ }),
+ (c.set = l),
+ void 0 !== e && l(e),
+ c
+ );
+ },
+ Ci = {
+ animationIterationCount: 1,
+ borderImageOutset: 1,
+ borderImageSlice: 1,
+ borderImageWidth: 1,
+ boxFlex: 1,
+ boxFlexGroup: 1,
+ boxOrdinalGroup: 1,
+ columnCount: 1,
+ columns: 1,
+ flex: 1,
+ flexGrow: 1,
+ flexPositive: 1,
+ flexShrink: 1,
+ flexNegative: 1,
+ flexOrder: 1,
+ gridRow: 1,
+ gridRowEnd: 1,
+ gridRowSpan: 1,
+ gridRowStart: 1,
+ gridColumn: 1,
+ gridColumnEnd: 1,
+ gridColumnSpan: 1,
+ gridColumnStart: 1,
+ msGridRow: 1,
+ msGridRowSpan: 1,
+ msGridColumn: 1,
+ msGridColumnSpan: 1,
+ fontWeight: 1,
+ lineHeight: 1,
+ opacity: 1,
+ order: 1,
+ orphans: 1,
+ tabSize: 1,
+ widows: 1,
+ zIndex: 1,
+ zoom: 1,
+ WebkitLineClamp: 1,
+ fillOpacity: 1,
+ floodOpacity: 1,
+ stopOpacity: 1,
+ strokeDasharray: 1,
+ strokeDashoffset: 1,
+ strokeMiterlimit: 1,
+ strokeOpacity: 1,
+ strokeWidth: 1,
+ };
+ function Pi(e) {
+ var t = Object.create(null);
+ return function (n) {
+ return void 0 === t[n] && (t[n] = e(n)), t[n];
+ };
+ }
+ var Ti =
+ /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
+ Ri = Pi(function (e) {
+ return (
+ Ti.test(e) ||
+ (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91)
+ );
+ }),
+ Ii = r(8679),
+ $i = r.n(Ii);
+ function Ni() {
+ return (Ni =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }).apply(this, arguments);
+ }
+ var Li = function (e, t) {
+ for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]);
+ return n;
+ },
+ Di = function (e) {
+ return (
+ null !== e &&
+ 'object' == typeof e &&
+ '[object Object]' ===
+ (e.toString ? e.toString() : Object.prototype.toString.call(e)) &&
+ !(0, Ei.typeOf)(e)
+ );
+ },
+ Mi = Object.freeze([]),
+ Fi = Object.freeze({});
+ function zi(e) {
+ return 'function' == typeof e;
+ }
+ function Ui(e) {
+ return e.displayName || e.name || 'Component';
+ }
+ function Bi(e) {
+ return e && 'string' == typeof e.styledComponentId;
+ }
+ var qi =
+ ('undefined' != typeof process &&
+ void 0 !== {} &&
+ ({}.REACT_APP_SC_ATTR || {}.SC_ATTR)) ||
+ 'data-styled',
+ Vi = 'undefined' != typeof window && 'HTMLElement' in window,
+ Wi = Boolean(
+ 'boolean' == typeof SC_DISABLE_SPEEDY
+ ? SC_DISABLE_SPEEDY
+ : 'undefined' != typeof process &&
+ void 0 !== {} &&
+ (void 0 !== {}.REACT_APP_SC_DISABLE_SPEEDY &&
+ '' !== {}.REACT_APP_SC_DISABLE_SPEEDY
+ ? 'false' !== {}.REACT_APP_SC_DISABLE_SPEEDY && {}.REACT_APP_SC_DISABLE_SPEEDY
+ : void 0 !== {}.SC_DISABLE_SPEEDY &&
+ '' !== {}.SC_DISABLE_SPEEDY &&
+ 'false' !== {}.SC_DISABLE_SPEEDY &&
+ {}.SC_DISABLE_SPEEDY),
+ ),
+ Hi = {};
+ function Yi(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ throw new Error(
+ 'An error occurred. See https://git.io/JUIaE#' +
+ e +
+ ' for more information.' +
+ (n.length > 0 ? ' Args: ' + n.join(', ') : ''),
+ );
+ }
+ var Qi = (function () {
+ function e(e) {
+ (this.groupSizes = new Uint32Array(512)), (this.length = 512), (this.tag = e);
+ }
+ var t = e.prototype;
+ return (
+ (t.indexOfGroup = function (e) {
+ for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
+ return t;
+ }),
+ (t.insertRules = function (e, t) {
+ if (e >= this.groupSizes.length) {
+ for (var n = this.groupSizes, r = n.length, i = r; e >= i; )
+ (i <<= 1) < 0 && Yi(16, '' + e);
+ (this.groupSizes = new Uint32Array(i)), this.groupSizes.set(n), (this.length = i);
+ for (var o = r; o < i; o++) this.groupSizes[o] = 0;
+ }
+ for (var a = this.indexOfGroup(e + 1), s = 0, l = t.length; s < l; s++)
+ this.tag.insertRule(a, t[s]) && (this.groupSizes[e]++, a++);
+ }),
+ (t.clearGroup = function (e) {
+ if (e < this.length) {
+ var t = this.groupSizes[e],
+ n = this.indexOfGroup(e),
+ r = n + t;
+ this.groupSizes[e] = 0;
+ for (var i = n; i < r; i++) this.tag.deleteRule(n);
+ }
+ }),
+ (t.getGroup = function (e) {
+ var t = '';
+ if (e >= this.length || 0 === this.groupSizes[e]) return t;
+ for (
+ var n = this.groupSizes[e], r = this.indexOfGroup(e), i = r + n, o = r;
+ o < i;
+ o++
+ )
+ t += this.tag.getRule(o) + '/*!sc*/\n';
+ return t;
+ }),
+ e
+ );
+ })(),
+ Gi = new Map(),
+ Xi = new Map(),
+ Ki = 1,
+ Zi = function (e) {
+ if (Gi.has(e)) return Gi.get(e);
+ for (; Xi.has(Ki); ) Ki++;
+ var t = Ki++;
+ return Gi.set(e, t), Xi.set(t, e), t;
+ },
+ Ji = function (e) {
+ return Xi.get(e);
+ },
+ eo = function (e, t) {
+ t >= Ki && (Ki = t + 1), Gi.set(e, t), Xi.set(t, e);
+ },
+ to = 'style[' + qi + '][data-styled-version="5.3.11"]',
+ no = new RegExp('^' + qi + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
+ ro = function (e, t, n) {
+ for (var r, i = n.split(','), o = 0, a = i.length; o < a; o++)
+ (r = i[o]) && e.registerName(t, r);
+ },
+ io = function (e, t) {
+ for (
+ var n = (t.textContent || '').split('/*!sc*/\n'), r = [], i = 0, o = n.length;
+ i < o;
+ i++
+ ) {
+ var a = n[i].trim();
+ if (a) {
+ var s = a.match(no);
+ if (s) {
+ var l = 0 | parseInt(s[1], 10),
+ c = s[2];
+ 0 !== l && (eo(c, l), ro(e, c, s[3]), e.getTag().insertRules(l, r)),
+ (r.length = 0);
+ } else r.push(a);
+ }
+ }
+ },
+ oo = function () {
+ return r.nc;
+ },
+ ao = function (e) {
+ var t = document.head,
+ n = e || t,
+ r = document.createElement('style'),
+ i = (function (e) {
+ for (var t = e.childNodes, n = t.length; n >= 0; n--) {
+ var r = t[n];
+ if (r && 1 === r.nodeType && r.hasAttribute(qi)) return r;
+ }
+ })(n),
+ o = void 0 !== i ? i.nextSibling : null;
+ r.setAttribute(qi, 'active'), r.setAttribute('data-styled-version', '5.3.11');
+ var a = oo();
+ return a && r.setAttribute('nonce', a), n.insertBefore(r, o), r;
+ },
+ so = (function () {
+ function e(e) {
+ var t = (this.element = ao(e));
+ t.appendChild(document.createTextNode('')),
+ (this.sheet = (function (e) {
+ if (e.sheet) return e.sheet;
+ for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
+ var i = t[n];
+ if (i.ownerNode === e) return i;
+ }
+ Yi(17);
+ })(t)),
+ (this.length = 0);
+ }
+ var t = e.prototype;
+ return (
+ (t.insertRule = function (e, t) {
+ try {
+ return this.sheet.insertRule(t, e), this.length++, !0;
+ } catch (e) {
+ return !1;
+ }
+ }),
+ (t.deleteRule = function (e) {
+ this.sheet.deleteRule(e), this.length--;
+ }),
+ (t.getRule = function (e) {
+ var t = this.sheet.cssRules[e];
+ return void 0 !== t && 'string' == typeof t.cssText ? t.cssText : '';
+ }),
+ e
+ );
+ })(),
+ lo = (function () {
+ function e(e) {
+ var t = (this.element = ao(e));
+ (this.nodes = t.childNodes), (this.length = 0);
+ }
+ var t = e.prototype;
+ return (
+ (t.insertRule = function (e, t) {
+ if (e <= this.length && e >= 0) {
+ var n = document.createTextNode(t),
+ r = this.nodes[e];
+ return this.element.insertBefore(n, r || null), this.length++, !0;
+ }
+ return !1;
+ }),
+ (t.deleteRule = function (e) {
+ this.element.removeChild(this.nodes[e]), this.length--;
+ }),
+ (t.getRule = function (e) {
+ return e < this.length ? this.nodes[e].textContent : '';
+ }),
+ e
+ );
+ })(),
+ co = (function () {
+ function e(e) {
+ (this.rules = []), (this.length = 0);
+ }
+ var t = e.prototype;
+ return (
+ (t.insertRule = function (e, t) {
+ return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
+ }),
+ (t.deleteRule = function (e) {
+ this.rules.splice(e, 1), this.length--;
+ }),
+ (t.getRule = function (e) {
+ return e < this.length ? this.rules[e] : '';
+ }),
+ e
+ );
+ })(),
+ uo = Vi,
+ po = { isServer: !Vi, useCSSOMInjection: !Wi },
+ fo = (function () {
+ function e(e, t, n) {
+ void 0 === e && (e = Fi),
+ void 0 === t && (t = {}),
+ (this.options = Ni({}, po, {}, e)),
+ (this.gs = t),
+ (this.names = new Map(n)),
+ (this.server = !!e.isServer),
+ !this.server &&
+ Vi &&
+ uo &&
+ ((uo = !1),
+ (function (e) {
+ for (var t = document.querySelectorAll(to), n = 0, r = t.length; n < r; n++) {
+ var i = t[n];
+ i &&
+ 'active' !== i.getAttribute(qi) &&
+ (io(e, i), i.parentNode && i.parentNode.removeChild(i));
+ }
+ })(this));
+ }
+ e.registerId = function (e) {
+ return Zi(e);
+ };
+ var t = e.prototype;
+ return (
+ (t.reconstructWithOptions = function (t, n) {
+ return (
+ void 0 === n && (n = !0),
+ new e(Ni({}, this.options, {}, t), this.gs, (n && this.names) || void 0)
+ );
+ }),
+ (t.allocateGSInstance = function (e) {
+ return (this.gs[e] = (this.gs[e] || 0) + 1);
+ }),
+ (t.getTag = function () {
+ return (
+ this.tag ||
+ (this.tag =
+ ((n = (t = this.options).isServer),
+ (r = t.useCSSOMInjection),
+ (i = t.target),
+ (e = n ? new co(i) : r ? new so(i) : new lo(i)),
+ new Qi(e)))
+ );
+ var e, t, n, r, i;
+ }),
+ (t.hasNameForId = function (e, t) {
+ return this.names.has(e) && this.names.get(e).has(t);
+ }),
+ (t.registerName = function (e, t) {
+ if ((Zi(e), this.names.has(e))) this.names.get(e).add(t);
+ else {
+ var n = new Set();
+ n.add(t), this.names.set(e, n);
+ }
+ }),
+ (t.insertRules = function (e, t, n) {
+ this.registerName(e, t), this.getTag().insertRules(Zi(e), n);
+ }),
+ (t.clearNames = function (e) {
+ this.names.has(e) && this.names.get(e).clear();
+ }),
+ (t.clearRules = function (e) {
+ this.getTag().clearGroup(Zi(e)), this.clearNames(e);
+ }),
+ (t.clearTag = function () {
+ this.tag = void 0;
+ }),
+ (t.toString = function () {
+ return (function (e) {
+ for (var t = e.getTag(), n = t.length, r = '', i = 0; i < n; i++) {
+ var o = Ji(i);
+ if (void 0 !== o) {
+ var a = e.names.get(o),
+ s = t.getGroup(i);
+ if (a && s && a.size) {
+ var l = qi + '.g' + i + '[id="' + o + '"]',
+ c = '';
+ void 0 !== a &&
+ a.forEach(function (e) {
+ e.length > 0 && (c += e + ',');
+ }),
+ (r += '' + s + l + '{content:"' + c + '"}/*!sc*/\n');
+ }
+ }
+ }
+ return r;
+ })(this);
+ }),
+ e
+ );
+ })(),
+ ho = /(a)(d)/gi,
+ mo = function (e) {
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
+ };
+ function go(e) {
+ var t,
+ n = '';
+ for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = mo(t % 52) + n;
+ return (mo(t % 52) + n).replace(ho, '$1-$2');
+ }
+ var yo = function (e, t) {
+ for (var n = t.length; n; ) e = (33 * e) ^ t.charCodeAt(--n);
+ return e;
+ },
+ vo = function (e) {
+ return yo(5381, e);
+ };
+ function bo(e) {
+ for (var t = 0; t < e.length; t += 1) {
+ var n = e[t];
+ if (zi(n) && !Bi(n)) return !1;
+ }
+ return !0;
+ }
+ var xo = vo('5.3.11'),
+ wo = (function () {
+ function e(e, t, n) {
+ (this.rules = e),
+ (this.staticRulesId = ''),
+ (this.isStatic = (void 0 === n || n.isStatic) && bo(e)),
+ (this.componentId = t),
+ (this.baseHash = yo(xo, t)),
+ (this.baseStyle = n),
+ fo.registerId(t);
+ }
+ return (
+ (e.prototype.generateAndInjectStyles = function (e, t, n) {
+ var r = this.componentId,
+ i = [];
+ if (
+ (this.baseStyle && i.push(this.baseStyle.generateAndInjectStyles(e, t, n)),
+ this.isStatic && !n.hash)
+ )
+ if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId))
+ i.push(this.staticRulesId);
+ else {
+ var o = Fo(this.rules, e, t, n).join(''),
+ a = go(yo(this.baseHash, o) >>> 0);
+ if (!t.hasNameForId(r, a)) {
+ var s = n(o, '.' + a, void 0, r);
+ t.insertRules(r, a, s);
+ }
+ i.push(a), (this.staticRulesId = a);
+ }
+ else {
+ for (
+ var l = this.rules.length, c = yo(this.baseHash, n.hash), u = '', p = 0;
+ p < l;
+ p++
+ ) {
+ var d = this.rules[p];
+ if ('string' == typeof d) u += d;
+ else if (d) {
+ var f = Fo(d, e, t, n),
+ h = Array.isArray(f) ? f.join('') : f;
+ (c = yo(c, h + p)), (u += h);
+ }
+ }
+ if (u) {
+ var m = go(c >>> 0);
+ if (!t.hasNameForId(r, m)) {
+ var g = n(u, '.' + m, void 0, r);
+ t.insertRules(r, m, g);
+ }
+ i.push(m);
+ }
+ }
+ return i.join(' ');
+ }),
+ e
+ );
+ })(),
+ ko = /^\s*\/\/.*$/gm,
+ Oo = [':', '[', '.', '#'];
+ function So(e) {
+ var t,
+ n,
+ r,
+ i,
+ o = void 0 === e ? Fi : e,
+ a = o.options,
+ s = void 0 === a ? Fi : a,
+ l = o.plugins,
+ c = void 0 === l ? Mi : l,
+ u = new ji(s),
+ p = [],
+ d = (function (e) {
+ function t(t) {
+ if (t)
+ try {
+ e(t + '}');
+ } catch (e) {}
+ }
+ return function (n, r, i, o, a, s, l, c, u, p) {
+ switch (n) {
+ case 1:
+ if (0 === u && 64 === r.charCodeAt(0)) return e(r + ';'), '';
+ break;
+ case 2:
+ if (0 === c) return r + '/*|*/';
+ break;
+ case 3:
+ switch (c) {
+ case 102:
+ case 112:
+ return e(i[0] + r), '';
+ default:
+ return r + (0 === p ? '/*|*/' : '');
+ }
+ case -2:
+ r.split('/*|*/}').forEach(t);
+ }
+ };
+ })(function (e) {
+ p.push(e);
+ }),
+ f = function (e, r, o) {
+ return (0 === r && -1 !== Oo.indexOf(o[n.length])) || o.match(i) ? e : '.' + t;
+ };
+ function h(e, o, a, s) {
+ void 0 === s && (s = '&');
+ var l = e.replace(ko, ''),
+ c = o && a ? a + ' ' + o + ' { ' + l + ' }' : l;
+ return (
+ (t = s),
+ (n = o),
+ (r = new RegExp('\\' + n + '\\b', 'g')),
+ (i = new RegExp('(\\' + n + '\\b){2,}')),
+ u(a || !o ? '' : o, c)
+ );
+ }
+ return (
+ u.use(
+ [].concat(c, [
+ function (e, t, i) {
+ 2 === e && i.length && i[0].lastIndexOf(n) > 0 && (i[0] = i[0].replace(r, f));
+ },
+ d,
+ function (e) {
+ if (-2 === e) {
+ var t = p;
+ return (p = []), t;
+ }
+ },
+ ]),
+ ),
+ (h.hash = c.length
+ ? c
+ .reduce(function (e, t) {
+ return t.name || Yi(15), yo(e, t.name);
+ }, 5381)
+ .toString()
+ : ''),
+ h
+ );
+ }
+ var Eo = n.createContext(),
+ _o = (Eo.Consumer, n.createContext()),
+ Ao = (_o.Consumer, new fo()),
+ jo = So();
+ function Co() {
+ return (0, n.useContext)(Eo) || Ao;
+ }
+ function Po() {
+ return (0, n.useContext)(_o) || jo;
+ }
+ function To(e) {
+ var t = (0, n.useState)(e.stylisPlugins),
+ r = t[0],
+ i = t[1],
+ o = Co(),
+ a = (0, n.useMemo)(
+ function () {
+ var t = o;
+ return (
+ e.sheet
+ ? (t = e.sheet)
+ : e.target && (t = t.reconstructWithOptions({ target: e.target }, !1)),
+ e.disableCSSOMInjection &&
+ (t = t.reconstructWithOptions({ useCSSOMInjection: !1 })),
+ t
+ );
+ },
+ [e.disableCSSOMInjection, e.sheet, e.target],
+ ),
+ s = (0, n.useMemo)(
+ function () {
+ return So({ options: { prefix: !e.disableVendorPrefixes }, plugins: r });
+ },
+ [e.disableVendorPrefixes, r],
+ );
+ return (
+ (0, n.useEffect)(
+ function () {
+ Ai()(r, e.stylisPlugins) || i(e.stylisPlugins);
+ },
+ [e.stylisPlugins],
+ ),
+ n.createElement(
+ Eo.Provider,
+ { value: a },
+ n.createElement(_o.Provider, { value: s }, e.children),
+ )
+ );
+ }
+ var Ro = (function () {
+ function e(e, t) {
+ var n = this;
+ (this.inject = function (e, t) {
+ void 0 === t && (t = jo);
+ var r = n.name + t.hash;
+ e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, '@keyframes'));
+ }),
+ (this.toString = function () {
+ return Yi(12, String(n.name));
+ }),
+ (this.name = e),
+ (this.id = 'sc-keyframes-' + e),
+ (this.rules = t);
+ }
+ return (
+ (e.prototype.getName = function (e) {
+ return void 0 === e && (e = jo), this.name + e.hash;
+ }),
+ e
+ );
+ })(),
+ Io = /([A-Z])/,
+ $o = /([A-Z])/g,
+ No = /^ms-/,
+ Lo = function (e) {
+ return '-' + e.toLowerCase();
+ };
+ function Do(e) {
+ return Io.test(e) ? e.replace($o, Lo).replace(No, '-ms-') : e;
+ }
+ var Mo = function (e) {
+ return null == e || !1 === e || '' === e;
+ };
+ function Fo(e, t, n, r) {
+ if (Array.isArray(e)) {
+ for (var i, o = [], a = 0, s = e.length; a < s; a += 1)
+ '' !== (i = Fo(e[a], t, n, r)) && (Array.isArray(i) ? o.push.apply(o, i) : o.push(i));
+ return o;
+ }
+ return Mo(e)
+ ? ''
+ : Bi(e)
+ ? '.' + e.styledComponentId
+ : zi(e)
+ ? 'function' != typeof (l = e) || (l.prototype && l.prototype.isReactComponent) || !t
+ ? e
+ : Fo(e(t), t, n, r)
+ : e instanceof Ro
+ ? n
+ ? (e.inject(n, r), e.getName(r))
+ : e
+ : Di(e)
+ ? (function e(t, n) {
+ var r,
+ i,
+ o = [];
+ for (var a in t)
+ t.hasOwnProperty(a) &&
+ !Mo(t[a]) &&
+ ((Array.isArray(t[a]) && t[a].isCss) || zi(t[a])
+ ? o.push(Do(a) + ':', t[a], ';')
+ : Di(t[a])
+ ? o.push.apply(o, e(t[a], a))
+ : o.push(
+ Do(a) +
+ ': ' +
+ ((r = a),
+ (null == (i = t[a]) || 'boolean' == typeof i || '' === i
+ ? ''
+ : 'number' != typeof i || 0 === i || r in Ci || r.startsWith('--')
+ ? String(i).trim()
+ : i + 'px') + ';'),
+ ));
+ return n ? [n + ' {'].concat(o, ['}']) : o;
+ })(e)
+ : e.toString();
+ var l;
+ }
+ var zo = function (e) {
+ return Array.isArray(e) && (e.isCss = !0), e;
+ };
+ function Uo(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ return zi(e) || Di(e)
+ ? zo(Fo(Li(Mi, [e].concat(n))))
+ : 0 === n.length && 1 === e.length && 'string' == typeof e[0]
+ ? e
+ : zo(Fo(Li(e, n)));
+ }
+ new Set();
+ var Bo = function (e, t, n) {
+ return void 0 === n && (n = Fi), (e.theme !== n.theme && e.theme) || t || n.theme;
+ },
+ qo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
+ Vo = /(^-|-$)/g;
+ function Wo(e) {
+ return e.replace(qo, '-').replace(Vo, '');
+ }
+ var Ho = function (e) {
+ return go(vo(e) >>> 0);
+ };
+ function Yo(e) {
+ return 'string' == typeof e && !0;
+ }
+ var Qo = function (e) {
+ return (
+ 'function' == typeof e || ('object' == typeof e && null !== e && !Array.isArray(e))
+ );
+ },
+ Go = function (e) {
+ return '__proto__' !== e && 'constructor' !== e && 'prototype' !== e;
+ };
+ function Xo(e, t, n) {
+ var r = e[n];
+ Qo(t) && Qo(r) ? Ko(r, t) : (e[n] = t);
+ }
+ function Ko(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ for (var i = 0, o = n; i < o.length; i++) {
+ var a = o[i];
+ if (Qo(a)) for (var s in a) Go(s) && Xo(e, a[s], s);
+ }
+ return e;
+ }
+ var Zo = n.createContext();
+ function Jo(e) {
+ var t = (0, n.useContext)(Zo),
+ r = (0, n.useMemo)(
+ function () {
+ return (function (e, t) {
+ return e
+ ? zi(e)
+ ? e(t)
+ : Array.isArray(e) || 'object' != typeof e
+ ? Yi(8)
+ : t
+ ? Ni({}, t, {}, e)
+ : e
+ : Yi(14);
+ })(e.theme, t);
+ },
+ [e.theme, t],
+ );
+ return e.children ? n.createElement(Zo.Provider, { value: r }, e.children) : null;
+ }
+ Zo.Consumer;
+ var ea = {};
+ function ta(e, t, r) {
+ var i = Bi(e),
+ o = !Yo(e),
+ a = t.attrs,
+ s = void 0 === a ? Mi : a,
+ l = t.componentId,
+ c =
+ void 0 === l
+ ? (function (e, t) {
+ var n = 'string' != typeof e ? 'sc' : Wo(e);
+ ea[n] = (ea[n] || 0) + 1;
+ var r = n + '-' + Ho('5.3.11' + n + ea[n]);
+ return t ? t + '-' + r : r;
+ })(t.displayName, t.parentComponentId)
+ : l,
+ u = t.displayName,
+ p =
+ void 0 === u
+ ? (function (e) {
+ return Yo(e) ? 'styled.' + e : 'Styled(' + Ui(e) + ')';
+ })(e)
+ : u,
+ d =
+ t.displayName && t.componentId
+ ? Wo(t.displayName) + '-' + t.componentId
+ : t.componentId || c,
+ f = i && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s,
+ h = t.shouldForwardProp;
+ i &&
+ e.shouldForwardProp &&
+ (h = t.shouldForwardProp
+ ? function (n, r, i) {
+ return e.shouldForwardProp(n, r, i) && t.shouldForwardProp(n, r, i);
+ }
+ : e.shouldForwardProp);
+ var m,
+ g = new wo(r, d, i ? e.componentStyle : void 0),
+ y = g.isStatic && 0 === s.length,
+ v = function (e, t) {
+ return (function (e, t, r, i) {
+ var o = e.attrs,
+ a = e.componentStyle,
+ s = e.defaultProps,
+ l = e.foldedComponentIds,
+ c = e.shouldForwardProp,
+ u = e.styledComponentId,
+ p = e.target,
+ d = (function (e, t, n) {
+ void 0 === e && (e = Fi);
+ var r = Ni({}, t, { theme: e }),
+ i = {};
+ return (
+ n.forEach(function (e) {
+ var t,
+ n,
+ o,
+ a = e;
+ for (t in (zi(a) && (a = a(r)), a))
+ r[t] = i[t] =
+ 'className' === t
+ ? ((n = i[t]), (o = a[t]), n && o ? n + ' ' + o : n || o)
+ : a[t];
+ }),
+ [r, i]
+ );
+ })(Bo(t, (0, n.useContext)(Zo), s) || Fi, t, o),
+ f = d[0],
+ h = d[1],
+ m = (function (e, t, n, r) {
+ var i = Co(),
+ o = Po();
+ return t
+ ? e.generateAndInjectStyles(Fi, i, o)
+ : e.generateAndInjectStyles(n, i, o);
+ })(a, i, f),
+ g = r,
+ y = h.$as || t.$as || h.as || t.as || p,
+ v = Yo(y),
+ b = h !== t ? Ni({}, t, {}, h) : t,
+ x = {};
+ for (var w in b)
+ '$' !== w[0] &&
+ 'as' !== w &&
+ ('forwardedAs' === w
+ ? (x.as = b[w])
+ : (c ? c(w, Ri, y) : !v || Ri(w)) && (x[w] = b[w]));
+ return (
+ t.style && h.style !== t.style && (x.style = Ni({}, t.style, {}, h.style)),
+ (x.className = Array.prototype
+ .concat(l, u, m !== u ? m : null, t.className, h.className)
+ .filter(Boolean)
+ .join(' ')),
+ (x.ref = g),
+ (0, n.createElement)(y, x)
+ );
+ })(m, e, t, y);
+ };
+ return (
+ (v.displayName = p),
+ ((m = n.forwardRef(v)).attrs = f),
+ (m.componentStyle = g),
+ (m.displayName = p),
+ (m.shouldForwardProp = h),
+ (m.foldedComponentIds = i
+ ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId)
+ : Mi),
+ (m.styledComponentId = d),
+ (m.target = i ? e.target : e),
+ (m.withComponent = function (e) {
+ var n = t.componentId,
+ i = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ i = {},
+ o = Object.keys(e);
+ for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]);
+ return i;
+ })(t, ['componentId']),
+ o = n && n + '-' + (Yo(e) ? e : Wo(Ui(e)));
+ return ta(e, Ni({}, i, { attrs: f, componentId: o }), r);
+ }),
+ Object.defineProperty(m, 'defaultProps', {
+ get: function () {
+ return this._foldedDefaultProps;
+ },
+ set: function (t) {
+ this._foldedDefaultProps = i ? Ko({}, e.defaultProps, t) : t;
+ },
+ }),
+ Object.defineProperty(m, 'toString', {
+ value: function () {
+ return '.' + m.styledComponentId;
+ },
+ }),
+ o &&
+ $i()(m, e, {
+ attrs: !0,
+ componentStyle: !0,
+ displayName: !0,
+ foldedComponentIds: !0,
+ shouldForwardProp: !0,
+ styledComponentId: !0,
+ target: !0,
+ withComponent: !0,
+ }),
+ m
+ );
+ }
+ var na = function (e) {
+ return (function e(t, n, r) {
+ if ((void 0 === r && (r = Fi), !(0, Ei.isValidElementType)(n))) return Yi(1, String(n));
+ var i = function () {
+ return t(n, r, Uo.apply(void 0, arguments));
+ };
+ return (
+ (i.withConfig = function (i) {
+ return e(t, n, Ni({}, r, {}, i));
+ }),
+ (i.attrs = function (i) {
+ return e(
+ t,
+ n,
+ Ni({}, r, { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }),
+ );
+ }),
+ i
+ );
+ })(ta, e);
+ };
+ [
+ 'a',
+ 'abbr',
+ 'address',
+ 'area',
+ 'article',
+ 'aside',
+ 'audio',
+ 'b',
+ 'base',
+ 'bdi',
+ 'bdo',
+ 'big',
+ 'blockquote',
+ 'body',
+ 'br',
+ 'button',
+ 'canvas',
+ 'caption',
+ 'cite',
+ 'code',
+ 'col',
+ 'colgroup',
+ 'data',
+ 'datalist',
+ 'dd',
+ 'del',
+ 'details',
+ 'dfn',
+ 'dialog',
+ 'div',
+ 'dl',
+ 'dt',
+ 'em',
+ 'embed',
+ 'fieldset',
+ 'figcaption',
+ 'figure',
+ 'footer',
+ 'form',
+ 'h1',
+ 'h2',
+ 'h3',
+ 'h4',
+ 'h5',
+ 'h6',
+ 'head',
+ 'header',
+ 'hgroup',
+ 'hr',
+ 'html',
+ 'i',
+ 'iframe',
+ 'img',
+ 'input',
+ 'ins',
+ 'kbd',
+ 'keygen',
+ 'label',
+ 'legend',
+ 'li',
+ 'link',
+ 'main',
+ 'map',
+ 'mark',
+ 'marquee',
+ 'menu',
+ 'menuitem',
+ 'meta',
+ 'meter',
+ 'nav',
+ 'noscript',
+ 'object',
+ 'ol',
+ 'optgroup',
+ 'option',
+ 'output',
+ 'p',
+ 'param',
+ 'picture',
+ 'pre',
+ 'progress',
+ 'q',
+ 'rp',
+ 'rt',
+ 'ruby',
+ 's',
+ 'samp',
+ 'script',
+ 'section',
+ 'select',
+ 'small',
+ 'source',
+ 'span',
+ 'strong',
+ 'style',
+ 'sub',
+ 'summary',
+ 'sup',
+ 'table',
+ 'tbody',
+ 'td',
+ 'textarea',
+ 'tfoot',
+ 'th',
+ 'thead',
+ 'time',
+ 'title',
+ 'tr',
+ 'track',
+ 'u',
+ 'ul',
+ 'var',
+ 'video',
+ 'wbr',
+ 'circle',
+ 'clipPath',
+ 'defs',
+ 'ellipse',
+ 'foreignObject',
+ 'g',
+ 'image',
+ 'line',
+ 'linearGradient',
+ 'marker',
+ 'mask',
+ 'path',
+ 'pattern',
+ 'polygon',
+ 'polyline',
+ 'radialGradient',
+ 'rect',
+ 'stop',
+ 'svg',
+ 'text',
+ 'textPath',
+ 'tspan',
+ ].forEach(function (e) {
+ na[e] = na(e);
+ });
+ var ra,
+ ia = (function () {
+ function e(e, t) {
+ (this.rules = e),
+ (this.componentId = t),
+ (this.isStatic = bo(e)),
+ fo.registerId(this.componentId + 1);
+ }
+ var t = e.prototype;
+ return (
+ (t.createStyles = function (e, t, n, r) {
+ var i = r(Fo(this.rules, t, n, r).join(''), ''),
+ o = this.componentId + e;
+ n.insertRules(o, o, i);
+ }),
+ (t.removeStyles = function (e, t) {
+ t.clearRules(this.componentId + e);
+ }),
+ (t.renderStyles = function (e, t, n, r) {
+ e > 2 && fo.registerId(this.componentId + e),
+ this.removeStyles(e, n),
+ this.createStyles(e, t, n, r);
+ }),
+ e
+ );
+ })();
+ function oa(e) {
+ for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
+ r[i - 1] = arguments[i];
+ var o = Uo.apply(void 0, [e].concat(r)),
+ a = 'sc-global-' + Ho(JSON.stringify(o)),
+ s = new ia(o, a);
+ function l(e) {
+ var t = Co(),
+ r = Po(),
+ i = (0, n.useContext)(Zo),
+ o = (0, n.useRef)(t.allocateGSInstance(a)).current;
+ return (
+ t.server && c(o, e, t, i, r),
+ (0, n.useLayoutEffect)(
+ function () {
+ if (!t.server)
+ return (
+ c(o, e, t, i, r),
+ function () {
+ return s.removeStyles(o, t);
+ }
+ );
+ },
+ [o, e, t, i, r],
+ ),
+ null
+ );
+ }
+ function c(e, t, n, r, i) {
+ if (s.isStatic) s.renderStyles(e, Hi, n, i);
+ else {
+ var o = Ni({}, t, { theme: Bo(t, r, l.defaultProps) });
+ s.renderStyles(e, o, n, i);
+ }
+ }
+ return n.memo(l);
+ }
+ function aa(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ var i = Uo.apply(void 0, [e].concat(n)).join(''),
+ o = Ho(i);
+ return new Ro(o, i);
+ }
+ ((ra = function () {
+ var e = this;
+ (this._emitSheetCSS = function () {
+ var t = e.instance.toString();
+ if (!t) return '';
+ var n = oo();
+ return (
+ ''
+ );
+ }),
+ (this.getStyleTags = function () {
+ return e.sealed ? Yi(2) : e._emitSheetCSS();
+ }),
+ (this.getStyleElement = function () {
+ var t;
+ if (e.sealed) return Yi(2);
+ var r =
+ (((t = {})[qi] = ''),
+ (t['data-styled-version'] = '5.3.11'),
+ (t.dangerouslySetInnerHTML = { __html: e.instance.toString() }),
+ t),
+ i = oo();
+ return i && (r.nonce = i), [n.createElement('style', Ni({}, r, { key: 'sc-0-0' }))];
+ }),
+ (this.seal = function () {
+ e.sealed = !0;
+ }),
+ (this.instance = new fo({ isServer: !0 })),
+ (this.sealed = !1);
+ }.prototype).collectStyles = function (e) {
+ return this.sealed ? Yi(2) : n.createElement(To, { sheet: this.instance }, e);
+ }),
+ (ra.interleaveWithNodeStream = function (e) {
+ return Yi(3);
+ });
+ var sa = na;
+ const { default: la, css: ca, createGlobalStyle: ua, keyframes: pa, ThemeProvider: da } = e,
+ fa = {
+ lessThan(e, t, n) {
+ return (...r) => ca`
+ @media ${t ? 'print, ' : ''} screen and (max-width: ${t => t.theme.breakpoints[e]}) ${
+ n || ''
+ } {
+ ${ca(...r)};
+ }
+ `;
+ },
+ greaterThan(e) {
+ return (...t) => ca`
+ @media (min-width: ${t => t.theme.breakpoints[e]}) {
+ ${ca(...t)};
+ }
+ `;
+ },
+ between(e, t) {
+ return (...n) => ca`
+ @media (min-width: ${t => t.theme.breakpoints[e]}) and (max-width: ${e =>
+ e.theme.breakpoints[t]}) {
+ ${ca(...n)};
+ }
+ `;
+ },
+ };
+ var ha = la;
+ function ma(e) {
+ return t => {
+ if (t.theme.extensionsHook) return t.theme.extensionsHook(e, t);
+ };
+ }
+ const ga = ha.div`
+ padding: 20px;
+ color: red;
+`;
+ class ya extends n.Component {
+ constructor(e) {
+ super(e), (this.state = { error: void 0 });
+ }
+ componentDidCatch(e) {
+ return this.setState({ error: e }), !1;
+ }
+ render() {
+ return this.state.error
+ ? n.createElement(
+ ga,
+ null,
+ n.createElement('h1', null, 'Something went wrong...'),
+ n.createElement('small', null, ' ', this.state.error.message, ' '),
+ n.createElement(
+ 'p',
+ null,
+ n.createElement(
+ 'details',
+ null,
+ n.createElement('summary', null, 'Stack trace'),
+ n.createElement('pre', null, this.state.error.stack),
+ ),
+ ),
+ n.createElement('small', null, ' ReDoc Version: ', '2.1.3'),
+ ' ',
+ n.createElement('br', null),
+ n.createElement('small', null, ' Commit: ', '64e17dde'),
+ )
+ : n.createElement(n.Fragment, null, n.Children.only(this.props.children));
+ }
+ }
+ const va = pa`
+ 0% {
+ transform: rotate(0deg); }
+ 100% {
+ transform: rotate(360deg);
+ }
+`,
+ ba = ha(e =>
+ n.createElement(
+ 'svg',
+ {
+ className: e.className,
+ version: '1.1',
+ width: '512',
+ height: '512',
+ viewBox: '0 0 512 512',
+ },
+ n.createElement('path', {
+ d: 'M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z',
+ }),
+ n.createElement('path', {
+ d: 'M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z',
+ }),
+ n.createElement('path', {
+ d: 'M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z',
+ }),
+ n.createElement('path', {
+ d: 'M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z',
+ }),
+ n.createElement('path', {
+ d: 'M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z',
+ }),
+ n.createElement('path', {
+ d: 'M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z',
+ }),
+ n.createElement('path', {
+ d: 'M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z',
+ }),
+ n.createElement('path', {
+ d: 'M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z',
+ }),
+ ),
+ )`
+ animation: 2s ${va} linear infinite;
+ width: 50px;
+ height: 50px;
+ content: '';
+ display: inline-block;
+ margin-left: -25px;
+
+ path {
+ fill: ${e => e.color};
+ }
+`,
+ xa = ha.div`
+ font-family: helvetica, sans;
+ width: 100%;
+ text-align: center;
+ font-size: 25px;
+ margin: 30px 0 20px 0;
+ color: ${e => e.color};
+`;
+ class wa extends n.PureComponent {
+ render() {
+ return n.createElement(
+ 'div',
+ { style: { textAlign: 'center' } },
+ n.createElement(xa, { color: this.props.color }, 'Loading ...'),
+ n.createElement(ba, { color: this.props.color }),
+ );
+ }
+ }
+ var ka = r(5697);
+ const Oa = n.createContext(new Si({})),
+ Sa = Oa.Provider,
+ Ea = Oa.Consumer;
+ var _a = r(3675),
+ Aa = r(3777),
+ ja = r(8925),
+ Ca = (e, t, n) =>
+ new Promise((r, i) => {
+ var o = e => {
+ try {
+ s(n.next(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ a = e => {
+ try {
+ s(n.throw(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ s = e => (e.done ? r(e.value) : Promise.resolve(e.value).then(o, a));
+ s((n = n.apply(e, t)).next());
+ });
+ var Pa = r(1851),
+ Ta = r(6729),
+ Ra = r(3573),
+ Ia = r.n(Ra);
+ const $a = Ra.parse;
+ class Na {
+ static baseName(e, t = 1) {
+ const n = Na.parse(e);
+ return n[n.length - t];
+ }
+ static dirName(e, t = 1) {
+ const n = Na.parse(e);
+ return Ra.compile(n.slice(0, n.length - t));
+ }
+ static relative(e, t) {
+ const n = Na.parse(e);
+ return Na.parse(t).slice(n.length);
+ }
+ static parse(e) {
+ let t = e;
+ return '#' === t.charAt(0) && (t = t.substring(1)), $a(t);
+ }
+ static join(e, t) {
+ const n = Na.parse(e).concat(t);
+ return Ra.compile(n);
+ }
+ static get(e, t) {
+ return Ra.get(e, t);
+ }
+ static compile(e) {
+ return Ra.compile(e);
+ }
+ static escape(e) {
+ return Ra.escape(e);
+ }
+ }
+ (Ra.parse = Na.parse), Object.assign(Na, Ra);
+ var La = r(6470),
+ Da = r(3578),
+ Ma = Object.defineProperty,
+ Fa = Object.defineProperties,
+ za = Object.getOwnPropertyDescriptors,
+ Ua = Object.getOwnPropertySymbols,
+ Ba = Object.prototype.hasOwnProperty,
+ qa = Object.prototype.propertyIsEnumerable,
+ Va = (e, t, n) =>
+ t in e
+ ? Ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Wa = (e, t) => {
+ for (var n in t || (t = {})) Ba.call(t, n) && Va(e, n, t[n]);
+ if (Ua) for (var n of Ua(t)) qa.call(t, n) && Va(e, n, t[n]);
+ return e;
+ },
+ Ha = (e, t) => Fa(e, za(t));
+ function Ya(e) {
+ return 'string' == typeof e && /\dxx/i.test(e);
+ }
+ function Qa(e, t = !1) {
+ if ('default' === e) return t ? 'error' : 'success';
+ let n = 'string' == typeof e ? parseInt(e, 10) : e;
+ if ((Ya(e) && (n *= 100), n < 100 || n > 599)) throw new Error('invalid HTTP code');
+ let r = 'success';
+ return (
+ n >= 300 && n < 400
+ ? (r = 'redirect')
+ : n >= 400
+ ? (r = 'error')
+ : n < 200 && (r = 'info'),
+ r
+ );
+ }
+ const Ga = {
+ get: !0,
+ post: !0,
+ put: !0,
+ head: !0,
+ patch: !0,
+ delete: !0,
+ options: !0,
+ $ref: !0,
+ };
+ function Xa(e) {
+ return e in Ga;
+ }
+ const Ka = {
+ multipleOf: 'number',
+ maximum: 'number',
+ exclusiveMaximum: 'number',
+ minimum: 'number',
+ exclusiveMinimum: 'number',
+ maxLength: 'string',
+ minLength: 'string',
+ pattern: 'string',
+ contentEncoding: 'string',
+ contentMediaType: 'string',
+ items: 'array',
+ maxItems: 'array',
+ minItems: 'array',
+ uniqueItems: 'array',
+ maxProperties: 'object',
+ minProperties: 'object',
+ required: 'object',
+ additionalProperties: 'object',
+ unevaluatedProperties: 'object',
+ properties: 'object',
+ patternProperties: 'object',
+ };
+ function Za(e, t = e.type) {
+ if (e['x-circular-ref']) return !0;
+ if (void 0 !== e.oneOf || void 0 !== e.anyOf) return !1;
+ if ((e.if && e.then) || (e.if && e.else)) return !1;
+ let n = !0;
+ const r = ci(t);
+ return (
+ ('object' === t || (r && (null == t ? void 0 : t.includes('object')))) &&
+ (n =
+ void 0 !== e.properties
+ ? 0 === Object.keys(e.properties).length
+ : void 0 === e.additionalProperties &&
+ void 0 === e.unevaluatedProperties &&
+ void 0 === e.patternProperties),
+ !ci(e.items) &&
+ !ci(e.prefixItems) &&
+ (void 0 !== e.items &&
+ !ui(e.items) &&
+ ('array' === t || (r && (null == t ? void 0 : t.includes('array')))) &&
+ (n = Za(e.items, e.items.type)),
+ n)
+ );
+ }
+ function Ja(e) {
+ return -1 !== e.search(/json/i);
+ }
+ function es(e, t, n) {
+ return ci(e)
+ ? e.map(e => e.toString()).join(n)
+ : 'object' == typeof e
+ ? Object.keys(e)
+ .map(t => `${t}${n}${e[t]}`)
+ .join(n)
+ : t + '=' + e.toString();
+ }
+ function ts(e, t) {
+ return ci(e)
+ ? (console.warn('deepObject style cannot be used with array value:' + e.toString()), '')
+ : 'object' == typeof e
+ ? Object.keys(e)
+ .map(n => `${t}[${n}]=${e[n]}`)
+ .join('&')
+ : (console.warn(
+ 'deepObject style cannot be used with non-object value:' + e.toString(),
+ ),
+ '');
+ }
+ function ns(e, t, n) {
+ const r = '__redoc_param_name__',
+ i = t ? '*' : '';
+ return Da.parse(`{?${r}${i}}`)
+ .expand({ [r]: n })
+ .substring(1)
+ .replace(/__redoc_param_name__/g, e);
+ }
+ function rs(e, t) {
+ return Ja(t)
+ ? JSON.stringify(e)
+ : (console.warn(`Parameter serialization as ${t} is not supported`), '');
+ }
+ function is(e, t) {
+ return e.in
+ ? decodeURIComponent(
+ (function (e, t) {
+ const { name: n, style: r, explode: i = !1, serializationMime: o } = e;
+ if (o)
+ switch (e.in) {
+ case 'path':
+ case 'header':
+ return rs(t, o);
+ case 'cookie':
+ case 'query':
+ return `${n}=${rs(t, o)}`;
+ default:
+ return console.warn('Unexpected parameter location: ' + e.in), '';
+ }
+ if (!r)
+ return (
+ console.warn(`Missing style attribute or content for parameter ${n}`), ''
+ );
+ switch (e.in) {
+ case 'path':
+ return (function (e, t, n, r) {
+ const i = n ? '*' : '';
+ let o = '';
+ 'label' === t ? (o = '.') : 'matrix' === t && (o = ';');
+ const a = '__redoc_param_name__';
+ return Da.parse(`{${o}${a}${i}}`)
+ .expand({ [a]: r })
+ .replace(/__redoc_param_name__/g, e);
+ })(n, r, i, t);
+ case 'query':
+ return (function (e, t, n, r) {
+ switch (t) {
+ case 'form':
+ return ns(e, n, r);
+ case 'spaceDelimited':
+ return ci(r)
+ ? n
+ ? ns(e, n, r)
+ : `${e}=${r.join('%20')}`
+ : (console.warn(
+ 'The style spaceDelimited is only applicable to arrays',
+ ),
+ '');
+ case 'pipeDelimited':
+ return ci(r)
+ ? n
+ ? ns(e, n, r)
+ : `${e}=${r.join('|')}`
+ : (console.warn(
+ 'The style pipeDelimited is only applicable to arrays',
+ ),
+ '');
+ case 'deepObject':
+ return !n || ci(r) || 'object' != typeof r
+ ? (console.warn(
+ 'The style deepObject is only applicable for objects with explode=true',
+ ),
+ '')
+ : ts(r, e);
+ default:
+ return console.warn('Unexpected style for query: ' + t), '';
+ }
+ })(n, r, i, t);
+ case 'header':
+ return (function (e, t, n) {
+ if ('simple' === e) {
+ const e = t ? '*' : '',
+ r = '__redoc_param_name__',
+ i = Da.parse(`{${r}${e}}`);
+ return decodeURIComponent(i.expand({ [r]: n }));
+ }
+ return console.warn('Unexpected style for header: ' + e), '';
+ })(r, i, t);
+ case 'cookie':
+ return (function (e, t, n, r) {
+ return 'form' === t
+ ? ns(e, n, r)
+ : (console.warn('Unexpected style for cookie: ' + t), '');
+ })(n, r, i, t);
+ default:
+ return console.warn('Unexpected parameter location: ' + e.in), '';
+ }
+ })(e, t),
+ )
+ : String(t);
+ }
+ const os = /^#\/components\/(schemas|pathItems)\/([^/]+)$/;
+ function as(e) {
+ return os.test(e || '');
+ }
+ function ss(e) {
+ var t;
+ const [n] = (null == (t = null == e ? void 0 : e.match(os)) ? void 0 : t.reverse()) || [];
+ return n;
+ }
+ function ls(e, t, n) {
+ let r;
+ return (
+ void 0 !== t && void 0 !== n
+ ? (r = t === n ? `= ${t} ${e}` : `[ ${t} .. ${n} ] ${e}`)
+ : void 0 !== n
+ ? (r = `<= ${n} ${e}`)
+ : void 0 !== t && (r = 1 === t ? 'non-empty' : `>= ${t} ${e}`),
+ r
+ );
+ }
+ function cs(e) {
+ const t = [],
+ n = ls('characters', e.minLength, e.maxLength);
+ void 0 !== n && t.push(n);
+ const r = ls('items', e.minItems, e.maxItems);
+ void 0 !== r && t.push(r);
+ const i = ls('properties', e.minProperties, e.maxProperties);
+ void 0 !== i && t.push(i);
+ const o = (function (e) {
+ if (void 0 === e) return;
+ const t = e.toString(10);
+ return /^0\.0*1$/.test(t)
+ ? `decimal places <= ${t.split('.')[1].length}`
+ : `multiple of ${t}`;
+ })(e.multipleOf);
+ void 0 !== o && t.push(o);
+ const a = (function (e) {
+ var t, n;
+ const r =
+ 'number' == typeof e.exclusiveMinimum
+ ? Math.min(e.exclusiveMinimum, null != (t = e.minimum) ? t : 1 / 0)
+ : e.minimum,
+ i =
+ 'number' == typeof e.exclusiveMaximum
+ ? Math.max(e.exclusiveMaximum, null != (n = e.maximum) ? n : -1 / 0)
+ : e.maximum,
+ o = 'number' == typeof e.exclusiveMinimum || e.exclusiveMinimum,
+ a = 'number' == typeof e.exclusiveMaximum || e.exclusiveMaximum;
+ return void 0 !== r && void 0 !== i
+ ? `${o ? '( ' : '[ '}${r} .. ${i}${a ? ' )' : ' ]'}`
+ : void 0 !== i
+ ? `${a ? '< ' : '<= '}${i}`
+ : void 0 !== r
+ ? `${o ? '> ' : '>= '}${r}`
+ : void 0;
+ })(e);
+ return void 0 !== a && t.push(a), e.uniqueItems && t.push('unique'), t;
+ }
+ function us(e, t = []) {
+ const n = [],
+ r = [],
+ i = [];
+ return (
+ e.forEach(e => {
+ e.required ? (t.includes(e.name) ? r.push(e) : i.push(e)) : n.push(e);
+ }),
+ r.sort((e, n) => t.indexOf(e.name) - t.indexOf(n.name)),
+ [...r, ...i, ...n]
+ );
+ }
+ function ps(e, t) {
+ return [...e].sort((e, n) => e[t].localeCompare(n[t]));
+ }
+ function ds(e, t) {
+ const n =
+ void 0 === e
+ ? (function (e) {
+ try {
+ const t = si(e);
+ return (t.search = ''), (t.hash = ''), t.toString();
+ } catch (t) {
+ return e;
+ }
+ })(
+ (() => {
+ if (!Qr) return '';
+ const e = window.location.href;
+ return e.endsWith('.html') ? (0, La.dirname)(e) : e;
+ })(),
+ )
+ : (0, La.dirname)(e);
+ return (
+ 0 === t.length && (t = [{ url: '/' }]),
+ t.map(e => {
+ return Ha(Wa({}, e), {
+ url:
+ ((t = e.url),
+ (function (e, t) {
+ let n;
+ if (t.startsWith('//'))
+ try {
+ n = `${new URL(e).protocol || 'https:'}${t}`;
+ } catch (e) {
+ n = `https:${t}`;
+ }
+ else if (
+ (function (e) {
+ return /(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e);
+ })(t)
+ )
+ n = t;
+ else if (t.startsWith('/'))
+ try {
+ const r = new URL(e);
+ (r.pathname = t), (n = r.href);
+ } catch (e) {
+ n = t;
+ }
+ else n = ti(e) + '/' + t;
+ return ti(n);
+ })(n, t)),
+ description: e.description || '',
+ });
+ var t;
+ })
+ );
+ }
+ let fs = 'section/Authentication/';
+ const hs = e => ({ delete: 'del', options: 'opts' }[e] || e);
+ function ms(e, t) {
+ return Object.keys(e)
+ .filter(e =>
+ !0 === t
+ ? e.startsWith('x-') &&
+ !(function (e) {
+ return (
+ e in
+ {
+ 'x-circular-ref': !0,
+ 'x-parentRefs': !0,
+ 'x-refsStack': !0,
+ 'x-code-samples': !0,
+ 'x-codeSamples': !0,
+ 'x-displayName': !0,
+ 'x-examples': !0,
+ 'x-ignoredHeaderParameters': !0,
+ 'x-logo': !0,
+ 'x-nullable': !0,
+ 'x-servers': !0,
+ 'x-tagGroups': !0,
+ 'x-traitTag': !0,
+ 'x-additionalPropertiesName': !0,
+ 'x-explicitMappingOnly': !0,
+ }
+ );
+ })(e)
+ : e.startsWith('x-') && t.indexOf(e) > -1,
+ )
+ .reduce((t, n) => ((t[n] = e[n]), t), {});
+ }
+ var gs = r(5660);
+ r(7874),
+ r(4279),
+ r(5433),
+ r(6213),
+ r(2731),
+ r(9016),
+ r(7046),
+ r(57),
+ r(2503),
+ r(6841),
+ r(6854),
+ r(4335),
+ r(1426),
+ r(8246),
+ r(9945),
+ r(366),
+ r(2939),
+ r(9385),
+ r(2886),
+ r(5266),
+ r(874),
+ r(3358),
+ r(7899);
+ const ys = 'clike';
+ function vs(e, t = ys) {
+ t = t.toLowerCase();
+ let n = gs.languages[t];
+ return (
+ n ||
+ (n =
+ gs.languages[
+ (function (e) {
+ return (
+ {
+ json: 'js',
+ 'c++': 'cpp',
+ 'c#': 'csharp',
+ 'objective-c': 'objectivec',
+ shell: 'bash',
+ viml: 'vim',
+ }[e] || ys
+ );
+ })(t)
+ ]),
+ gs.highlight(e.toString(), n, t)
+ );
+ }
+ gs.languages.insertBefore(
+ 'javascript',
+ 'string',
+ {
+ 'property string': {
+ pattern: /([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,
+ lookbehind: !0,
+ },
+ },
+ void 0,
+ ),
+ gs.languages.insertBefore(
+ 'javascript',
+ 'punctuation',
+ { property: { pattern: /([{,]\s*)[a-z]\w*(?=\s*:)/i, lookbehind: !0 } },
+ void 0,
+ );
+ var bs = Object.defineProperty,
+ xs = Object.defineProperties,
+ ws = Object.getOwnPropertyDescriptors,
+ ks = Object.getOwnPropertySymbols,
+ Os = Object.prototype.hasOwnProperty,
+ Ss = Object.prototype.propertyIsEnumerable,
+ Es = (e, t, n) =>
+ t in e
+ ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ _s = (e, t) => {
+ for (var n in t || (t = {})) Os.call(t, n) && Es(e, n, t[n]);
+ if (ks) for (var n of ks(t)) Ss.call(t, n) && Es(e, n, t[n]);
+ return e;
+ },
+ As = (e, t) => xs(e, ws(t));
+ const js = {};
+ function Cs(e, t, n) {
+ if ('function' == typeof n.value)
+ return (function (e, t, n) {
+ if (!n.value || n.value.length > 0)
+ throw new Error(
+ '@memoize decorator can only be applied to methods of zero arguments',
+ );
+ const r = `_memoized_${t}`,
+ i = n.value;
+ return (
+ (e[r] = js),
+ As(_s({}, n), {
+ value() {
+ return this[r] === js && (this[r] = i.call(this)), this[r];
+ },
+ })
+ );
+ })(e, t, n);
+ if ('function' == typeof n.get)
+ return (function (e, t, n) {
+ const r = `_memoized_${t}`,
+ i = n.get;
+ return (
+ (e[r] = js),
+ As(_s({}, n), {
+ get() {
+ return this[r] === js && (this[r] = i.call(this)), this[r];
+ },
+ })
+ );
+ })(e, t, n);
+ throw new Error(
+ '@memoize decorator can be applied to methods or getters, got ' +
+ String(n.value) +
+ ' instead',
+ );
+ }
+ function Ps(e) {
+ let t = 1;
+ return (
+ '-' === e[0] && ((t = -1), (e = e.substr(1))),
+ (n, r) => (-1 == t ? r[e].localeCompare(n[e]) : n[e].localeCompare(r[e]))
+ );
+ }
+ var Ts = Object.defineProperty,
+ Rs = Object.getOwnPropertyDescriptor;
+ const Is = 'hashchange';
+ class $s {
+ constructor() {
+ (this.emit = () => {
+ this._emiter.emit(Is, this.currentId);
+ }),
+ (this._emiter = new Ta.EventEmitter()),
+ this.bind();
+ }
+ get currentId() {
+ return Qr ? decodeURIComponent(window.location.hash.substring(1)) : '';
+ }
+ linkForId(e) {
+ return e ? '#' + e : '';
+ }
+ subscribe(e) {
+ const t = this._emiter.addListener(Is, e);
+ return () => t.removeListener(Is, e);
+ }
+ bind() {
+ Qr && window.addEventListener('hashchange', this.emit, !1);
+ }
+ dispose() {
+ Qr && window.removeEventListener('hashchange', this.emit);
+ }
+ replace(e, t = !1) {
+ Qr &&
+ null != e &&
+ e !== this.currentId &&
+ (t
+ ? window.history.replaceState(
+ null,
+ '',
+ window.location.href.split('#')[0] + this.linkForId(e),
+ )
+ : (window.history.pushState(
+ null,
+ '',
+ window.location.href.split('#')[0] + this.linkForId(e),
+ ),
+ this.emit()));
+ }
+ }
+ ((e, t, n, r) => {
+ for (var i, o = Rs(t, n), a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = i(t, n, o) || o);
+ o && Ts(t, n, o);
+ })([Pa.bind, Pa.debounce], $s.prototype, 'replace');
+ const Ns = new $s();
+ var Ls = r(813);
+ class Ds {
+ constructor() {
+ (this.map = new Map()), (this.prevTerm = '');
+ }
+ add(e) {
+ this.map.set(e, new Ls(e));
+ }
+ delete(e) {
+ this.map.delete(e);
+ }
+ addOnly(e) {
+ this.map.forEach((t, n) => {
+ -1 === e.indexOf(n) && (t.unmark(), this.map.delete(n));
+ });
+ for (const t of e) this.map.has(t) || this.map.set(t, new Ls(t));
+ }
+ clearAll() {
+ this.unmark(), this.map.clear();
+ }
+ mark(e) {
+ (e || this.prevTerm) &&
+ (this.map.forEach(t => {
+ t.unmark(), t.mark(e || this.prevTerm);
+ }),
+ (this.prevTerm = e || this.prevTerm));
+ }
+ unmark() {
+ this.map.forEach(e => e.unmark()), (this.prevTerm = '');
+ }
+ }
+ let Ms = {
+ baseUrl: null,
+ breaks: !1,
+ extensions: null,
+ gfm: !0,
+ headerIds: !0,
+ headerPrefix: '',
+ highlight: null,
+ langPrefix: 'language-',
+ mangle: !0,
+ pedantic: !1,
+ renderer: null,
+ sanitize: !1,
+ sanitizer: null,
+ silent: !1,
+ smartLists: !1,
+ smartypants: !1,
+ tokenizer: null,
+ walkTokens: null,
+ xhtml: !1,
+ };
+ const Fs = /[&<>"']/,
+ zs = /[&<>"']/g,
+ Us = /[<>"']|&(?!#?\w+;)/,
+ Bs = /[<>"']|&(?!#?\w+;)/g,
+ qs = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' },
+ Vs = e => qs[e];
+ function Ws(e, t) {
+ if (t) {
+ if (Fs.test(e)) return e.replace(zs, Vs);
+ } else if (Us.test(e)) return e.replace(Bs, Vs);
+ return e;
+ }
+ const Hs = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;
+ function Ys(e) {
+ return e.replace(Hs, (e, t) =>
+ 'colon' === (t = t.toLowerCase())
+ ? ':'
+ : '#' === t.charAt(0)
+ ? 'x' === t.charAt(1)
+ ? String.fromCharCode(parseInt(t.substring(2), 16))
+ : String.fromCharCode(+t.substring(1))
+ : '',
+ );
+ }
+ const Qs = /(^|[^\[])\^/g;
+ function Gs(e, t) {
+ (e = 'string' == typeof e ? e : e.source), (t = t || '');
+ const n = {
+ replace: (t, r) => (
+ (r = (r = r.source || r).replace(Qs, '$1')), (e = e.replace(t, r)), n
+ ),
+ getRegex: () => new RegExp(e, t),
+ };
+ return n;
+ }
+ const Xs = /[^\w:]/g,
+ Ks = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
+ function Zs(e, t, n) {
+ if (e) {
+ let e;
+ try {
+ e = decodeURIComponent(Ys(n)).replace(Xs, '').toLowerCase();
+ } catch (e) {
+ return null;
+ }
+ if (
+ 0 === e.indexOf('javascript:') ||
+ 0 === e.indexOf('vbscript:') ||
+ 0 === e.indexOf('data:')
+ )
+ return null;
+ }
+ t &&
+ !Ks.test(n) &&
+ (n = (function (e, t) {
+ Js[' ' + e] ||
+ (el.test(e) ? (Js[' ' + e] = e + '/') : (Js[' ' + e] = al(e, '/', !0)));
+ const n = -1 === (e = Js[' ' + e]).indexOf(':');
+ return '//' === t.substring(0, 2)
+ ? n
+ ? t
+ : e.replace(tl, '$1') + t
+ : '/' === t.charAt(0)
+ ? n
+ ? t
+ : e.replace(nl, '$1') + t
+ : e + t;
+ })(t, n));
+ try {
+ n = encodeURI(n).replace(/%25/g, '%');
+ } catch (e) {
+ return null;
+ }
+ return n;
+ }
+ const Js = {},
+ el = /^[^:]+:\/*[^/]*$/,
+ tl = /^([^:]+:)[\s\S]*$/,
+ nl = /^([^:]+:\/*[^/]*)[\s\S]*$/,
+ rl = { exec: function () {} };
+ function il(e) {
+ let t,
+ n,
+ r = 1;
+ for (; r < arguments.length; r++)
+ for (n in ((t = arguments[r]), t))
+ Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
+ return e;
+ }
+ function ol(e, t) {
+ const n = e
+ .replace(/\|/g, (e, t, n) => {
+ let r = !1,
+ i = t;
+ for (; --i >= 0 && '\\' === n[i]; ) r = !r;
+ return r ? '|' : ' |';
+ })
+ .split(/ \|/);
+ let r = 0;
+ if (
+ (n[0].trim() || n.shift(),
+ n.length > 0 && !n[n.length - 1].trim() && n.pop(),
+ n.length > t)
+ )
+ n.splice(t);
+ else for (; n.length < t; ) n.push('');
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(/\\\|/g, '|');
+ return n;
+ }
+ function al(e, t, n) {
+ const r = e.length;
+ if (0 === r) return '';
+ let i = 0;
+ for (; i < r; ) {
+ const o = e.charAt(r - i - 1);
+ if (o !== t || n) {
+ if (o === t || !n) break;
+ i++;
+ } else i++;
+ }
+ return e.slice(0, r - i);
+ }
+ function sl(e) {
+ e &&
+ e.sanitize &&
+ !e.silent &&
+ console.warn(
+ 'marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options',
+ );
+ }
+ function ll(e, t) {
+ if (t < 1) return '';
+ let n = '';
+ for (; t > 1; ) 1 & t && (n += e), (t >>= 1), (e += e);
+ return n + e;
+ }
+ function cl(e, t, n, r) {
+ const i = t.href,
+ o = t.title ? Ws(t.title) : null,
+ a = e[1].replace(/\\([\[\]])/g, '$1');
+ if ('!' !== e[0].charAt(0)) {
+ r.state.inLink = !0;
+ const e = {
+ type: 'link',
+ raw: n,
+ href: i,
+ title: o,
+ text: a,
+ tokens: r.inlineTokens(a, []),
+ };
+ return (r.state.inLink = !1), e;
+ }
+ return { type: 'image', raw: n, href: i, title: o, text: Ws(a) };
+ }
+ class ul {
+ constructor(e) {
+ this.options = e || Ms;
+ }
+ space(e) {
+ const t = this.rules.block.newline.exec(e);
+ if (t && t[0].length > 0) return { type: 'space', raw: t[0] };
+ }
+ code(e) {
+ const t = this.rules.block.code.exec(e);
+ if (t) {
+ const e = t[0].replace(/^ {1,4}/gm, '');
+ return {
+ type: 'code',
+ raw: t[0],
+ codeBlockStyle: 'indented',
+ text: this.options.pedantic ? e : al(e, '\n'),
+ };
+ }
+ }
+ fences(e) {
+ const t = this.rules.block.fences.exec(e);
+ if (t) {
+ const e = t[0],
+ n = (function (e, t) {
+ const n = e.match(/^(\s+)(?:```)/);
+ if (null === n) return t;
+ const r = n[1];
+ return t
+ .split('\n')
+ .map(e => {
+ const t = e.match(/^\s+/);
+ if (null === t) return e;
+ const [n] = t;
+ return n.length >= r.length ? e.slice(r.length) : e;
+ })
+ .join('\n');
+ })(e, t[3] || '');
+ return { type: 'code', raw: e, lang: t[2] ? t[2].trim() : t[2], text: n };
+ }
+ }
+ heading(e) {
+ const t = this.rules.block.heading.exec(e);
+ if (t) {
+ let e = t[2].trim();
+ if (/#$/.test(e)) {
+ const t = al(e, '#');
+ this.options.pedantic ? (e = t.trim()) : (t && !/ $/.test(t)) || (e = t.trim());
+ }
+ const n = { type: 'heading', raw: t[0], depth: t[1].length, text: e, tokens: [] };
+ return this.lexer.inline(n.text, n.tokens), n;
+ }
+ }
+ hr(e) {
+ const t = this.rules.block.hr.exec(e);
+ if (t) return { type: 'hr', raw: t[0] };
+ }
+ blockquote(e) {
+ const t = this.rules.block.blockquote.exec(e);
+ if (t) {
+ const e = t[0].replace(/^ *>[ \t]?/gm, '');
+ return {
+ type: 'blockquote',
+ raw: t[0],
+ tokens: this.lexer.blockTokens(e, []),
+ text: e,
+ };
+ }
+ }
+ list(e) {
+ let t = this.rules.block.list.exec(e);
+ if (t) {
+ let n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ l,
+ c,
+ u,
+ p,
+ d,
+ f,
+ h = t[1].trim();
+ const m = h.length > 1,
+ g = {
+ type: 'list',
+ raw: '',
+ ordered: m,
+ start: m ? +h.slice(0, -1) : '',
+ loose: !1,
+ items: [],
+ };
+ (h = m ? `\\d{1,9}\\${h.slice(-1)}` : `\\${h}`),
+ this.options.pedantic && (h = m ? h : '[*+-]');
+ const y = new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);
+ for (; e && ((f = !1), (t = y.exec(e))) && !this.rules.block.hr.test(e); ) {
+ if (
+ ((n = t[0]),
+ (e = e.substring(n.length)),
+ (c = t[2].split('\n', 1)[0]),
+ (u = e.split('\n', 1)[0]),
+ this.options.pedantic
+ ? ((o = 2), (d = c.trimLeft()))
+ : ((o = t[2].search(/[^ ]/)),
+ (o = o > 4 ? 1 : o),
+ (d = c.slice(o)),
+ (o += t[1].length)),
+ (s = !1),
+ !c &&
+ /^ *$/.test(u) &&
+ ((n += u + '\n'), (e = e.substring(u.length + 1)), (f = !0)),
+ !f)
+ ) {
+ const t = new RegExp(
+ `^ {0,${Math.min(3, o - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`,
+ ),
+ r = new RegExp(
+ `^ {0,${Math.min(
+ 3,
+ o - 1,
+ )}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`,
+ );
+ for (
+ ;
+ e &&
+ ((p = e.split('\n', 1)[0]),
+ (c = p),
+ this.options.pedantic && (c = c.replace(/^ {1,4}(?=( {4})*[^ ])/g, ' ')),
+ !t.test(c)) &&
+ !r.test(e);
+
+ ) {
+ if (c.search(/[^ ]/) >= o || !c.trim()) d += '\n' + c.slice(o);
+ else {
+ if (s) break;
+ d += '\n' + c;
+ }
+ s || c.trim() || (s = !0), (n += p + '\n'), (e = e.substring(p.length + 1));
+ }
+ }
+ g.loose || (l ? (g.loose = !0) : /\n *\n *$/.test(n) && (l = !0)),
+ this.options.gfm &&
+ ((r = /^\[[ xX]\] /.exec(d)),
+ r && ((i = '[ ] ' !== r[0]), (d = d.replace(/^\[[ xX]\] +/, '')))),
+ g.items.push({
+ type: 'list_item',
+ raw: n,
+ task: !!r,
+ checked: i,
+ loose: !1,
+ text: d,
+ }),
+ (g.raw += n);
+ }
+ (g.items[g.items.length - 1].raw = n.trimRight()),
+ (g.items[g.items.length - 1].text = d.trimRight()),
+ (g.raw = g.raw.trimRight());
+ const v = g.items.length;
+ for (a = 0; a < v; a++) {
+ (this.lexer.state.top = !1),
+ (g.items[a].tokens = this.lexer.blockTokens(g.items[a].text, []));
+ const e = g.items[a].tokens.filter(e => 'space' === e.type),
+ t = e.every(e => {
+ const t = e.raw.split('');
+ let n = 0;
+ for (const e of t) if (('\n' === e && (n += 1), n > 1)) return !0;
+ return !1;
+ });
+ !g.loose && e.length && t && ((g.loose = !0), (g.items[a].loose = !0));
+ }
+ return g;
+ }
+ }
+ html(e) {
+ const t = this.rules.block.html.exec(e);
+ if (t) {
+ const e = {
+ type: 'html',
+ raw: t[0],
+ pre:
+ !this.options.sanitizer &&
+ ('pre' === t[1] || 'script' === t[1] || 'style' === t[1]),
+ text: t[0],
+ };
+ return (
+ this.options.sanitize &&
+ ((e.type = 'paragraph'),
+ (e.text = this.options.sanitizer ? this.options.sanitizer(t[0]) : Ws(t[0])),
+ (e.tokens = []),
+ this.lexer.inline(e.text, e.tokens)),
+ e
+ );
+ }
+ }
+ def(e) {
+ const t = this.rules.block.def.exec(e);
+ if (t)
+ return (
+ t[3] && (t[3] = t[3].substring(1, t[3].length - 1)),
+ {
+ type: 'def',
+ tag: t[1].toLowerCase().replace(/\s+/g, ' '),
+ raw: t[0],
+ href: t[2],
+ title: t[3],
+ }
+ );
+ }
+ table(e) {
+ const t = this.rules.block.table.exec(e);
+ if (t) {
+ const e = {
+ type: 'table',
+ header: ol(t[1]).map(e => ({ text: e })),
+ align: t[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
+ rows: t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, '').split('\n') : [],
+ };
+ if (e.header.length === e.align.length) {
+ e.raw = t[0];
+ let n,
+ r,
+ i,
+ o,
+ a = e.align.length;
+ for (n = 0; n < a; n++)
+ /^ *-+: *$/.test(e.align[n])
+ ? (e.align[n] = 'right')
+ : /^ *:-+: *$/.test(e.align[n])
+ ? (e.align[n] = 'center')
+ : /^ *:-+ *$/.test(e.align[n])
+ ? (e.align[n] = 'left')
+ : (e.align[n] = null);
+ for (a = e.rows.length, n = 0; n < a; n++)
+ e.rows[n] = ol(e.rows[n], e.header.length).map(e => ({ text: e }));
+ for (a = e.header.length, r = 0; r < a; r++)
+ (e.header[r].tokens = []),
+ this.lexer.inlineTokens(e.header[r].text, e.header[r].tokens);
+ for (a = e.rows.length, r = 0; r < a; r++)
+ for (o = e.rows[r], i = 0; i < o.length; i++)
+ (o[i].tokens = []), this.lexer.inlineTokens(o[i].text, o[i].tokens);
+ return e;
+ }
+ }
+ }
+ lheading(e) {
+ const t = this.rules.block.lheading.exec(e);
+ if (t) {
+ const e = {
+ type: 'heading',
+ raw: t[0],
+ depth: '=' === t[2].charAt(0) ? 1 : 2,
+ text: t[1],
+ tokens: [],
+ };
+ return this.lexer.inline(e.text, e.tokens), e;
+ }
+ }
+ paragraph(e) {
+ const t = this.rules.block.paragraph.exec(e);
+ if (t) {
+ const e = {
+ type: 'paragraph',
+ raw: t[0],
+ text: '\n' === t[1].charAt(t[1].length - 1) ? t[1].slice(0, -1) : t[1],
+ tokens: [],
+ };
+ return this.lexer.inline(e.text, e.tokens), e;
+ }
+ }
+ text(e) {
+ const t = this.rules.block.text.exec(e);
+ if (t) {
+ const e = { type: 'text', raw: t[0], text: t[0], tokens: [] };
+ return this.lexer.inline(e.text, e.tokens), e;
+ }
+ }
+ escape(e) {
+ const t = this.rules.inline.escape.exec(e);
+ if (t) return { type: 'escape', raw: t[0], text: Ws(t[1]) };
+ }
+ tag(e) {
+ const t = this.rules.inline.tag.exec(e);
+ if (t)
+ return (
+ !this.lexer.state.inLink && /^/i.test(t[0]) &&
+ (this.lexer.state.inLink = !1),
+ !this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(t[0])
+ ? (this.lexer.state.inRawBlock = !0)
+ : this.lexer.state.inRawBlock &&
+ /^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0]) &&
+ (this.lexer.state.inRawBlock = !1),
+ {
+ type: this.options.sanitize ? 'text' : 'html',
+ raw: t[0],
+ inLink: this.lexer.state.inLink,
+ inRawBlock: this.lexer.state.inRawBlock,
+ text: this.options.sanitize
+ ? this.options.sanitizer
+ ? this.options.sanitizer(t[0])
+ : Ws(t[0])
+ : t[0],
+ }
+ );
+ }
+ link(e) {
+ const t = this.rules.inline.link.exec(e);
+ if (t) {
+ const e = t[2].trim();
+ if (!this.options.pedantic && /^$/.test(e)) return;
+ const t = al(e.slice(0, -1), '\\');
+ if ((e.length - t.length) % 2 == 0) return;
+ } else {
+ const e = (function (e, t) {
+ if (-1 === e.indexOf(t[1])) return -1;
+ const n = e.length;
+ let r = 0,
+ i = 0;
+ for (; i < n; i++)
+ if ('\\' === e[i]) i++;
+ else if (e[i] === t[0]) r++;
+ else if (e[i] === t[1] && (r--, r < 0)) return i;
+ return -1;
+ })(t[2], '()');
+ if (e > -1) {
+ const n = (0 === t[0].indexOf('!') ? 5 : 4) + t[1].length + e;
+ (t[2] = t[2].substring(0, e)), (t[0] = t[0].substring(0, n).trim()), (t[3] = '');
+ }
+ }
+ let n = t[2],
+ r = '';
+ if (this.options.pedantic) {
+ const e = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);
+ e && ((n = e[1]), (r = e[3]));
+ } else r = t[3] ? t[3].slice(1, -1) : '';
+ return (
+ (n = n.trim()),
+ /^$/.test(e) ? n.slice(1) : n.slice(1, -1)),
+ cl(
+ t,
+ {
+ href: n ? n.replace(this.rules.inline._escapes, '$1') : n,
+ title: r ? r.replace(this.rules.inline._escapes, '$1') : r,
+ },
+ t[0],
+ this.lexer,
+ )
+ );
+ }
+ }
+ reflink(e, t) {
+ let n;
+ if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
+ let e = (n[2] || n[1]).replace(/\s+/g, ' ');
+ if (((e = t[e.toLowerCase()]), !e || !e.href)) {
+ const e = n[0].charAt(0);
+ return { type: 'text', raw: e, text: e };
+ }
+ return cl(n, e, n[0], this.lexer);
+ }
+ }
+ emStrong(e, t, n = '') {
+ let r = this.rules.inline.emStrong.lDelim.exec(e);
+ if (!r) return;
+ if (r[3] && n.match(/[\p{L}\p{N}]/u)) return;
+ const i = r[1] || r[2] || '';
+ if (!i || (i && ('' === n || this.rules.inline.punctuation.exec(n)))) {
+ const n = r[0].length - 1;
+ let i,
+ o,
+ a = n,
+ s = 0;
+ const l =
+ '*' === r[0][0]
+ ? this.rules.inline.emStrong.rDelimAst
+ : this.rules.inline.emStrong.rDelimUnd;
+ for (l.lastIndex = 0, t = t.slice(-1 * e.length + n); null != (r = l.exec(t)); ) {
+ if (((i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6]), !i)) continue;
+ if (((o = i.length), r[3] || r[4])) {
+ a += o;
+ continue;
+ }
+ if ((r[5] || r[6]) && n % 3 && !((n + o) % 3)) {
+ s += o;
+ continue;
+ }
+ if (((a -= o), a > 0)) continue;
+ if (((o = Math.min(o, o + a + s)), Math.min(n, o) % 2)) {
+ const t = e.slice(1, n + r.index + o);
+ return {
+ type: 'em',
+ raw: e.slice(0, n + r.index + o + 1),
+ text: t,
+ tokens: this.lexer.inlineTokens(t, []),
+ };
+ }
+ const t = e.slice(2, n + r.index + o - 1);
+ return {
+ type: 'strong',
+ raw: e.slice(0, n + r.index + o + 1),
+ text: t,
+ tokens: this.lexer.inlineTokens(t, []),
+ };
+ }
+ }
+ }
+ codespan(e) {
+ const t = this.rules.inline.code.exec(e);
+ if (t) {
+ let e = t[2].replace(/\n/g, ' ');
+ const n = /[^ ]/.test(e),
+ r = /^ /.test(e) && / $/.test(e);
+ return (
+ n && r && (e = e.substring(1, e.length - 1)),
+ (e = Ws(e, !0)),
+ { type: 'codespan', raw: t[0], text: e }
+ );
+ }
+ }
+ br(e) {
+ const t = this.rules.inline.br.exec(e);
+ if (t) return { type: 'br', raw: t[0] };
+ }
+ del(e) {
+ const t = this.rules.inline.del.exec(e);
+ if (t)
+ return {
+ type: 'del',
+ raw: t[0],
+ text: t[2],
+ tokens: this.lexer.inlineTokens(t[2], []),
+ };
+ }
+ autolink(e, t) {
+ const n = this.rules.inline.autolink.exec(e);
+ if (n) {
+ let e, r;
+ return (
+ '@' === n[2]
+ ? ((e = Ws(this.options.mangle ? t(n[1]) : n[1])), (r = 'mailto:' + e))
+ : ((e = Ws(n[1])), (r = e)),
+ {
+ type: 'link',
+ raw: n[0],
+ text: e,
+ href: r,
+ tokens: [{ type: 'text', raw: e, text: e }],
+ }
+ );
+ }
+ }
+ url(e, t) {
+ let n;
+ if ((n = this.rules.inline.url.exec(e))) {
+ let e, r;
+ if ('@' === n[2]) (e = Ws(this.options.mangle ? t(n[0]) : n[0])), (r = 'mailto:' + e);
+ else {
+ let t;
+ do {
+ (t = n[0]), (n[0] = this.rules.inline._backpedal.exec(n[0])[0]);
+ } while (t !== n[0]);
+ (e = Ws(n[0])), (r = 'www.' === n[1] ? 'http://' + e : e);
+ }
+ return {
+ type: 'link',
+ raw: n[0],
+ text: e,
+ href: r,
+ tokens: [{ type: 'text', raw: e, text: e }],
+ };
+ }
+ }
+ inlineText(e, t) {
+ const n = this.rules.inline.text.exec(e);
+ if (n) {
+ let e;
+ return (
+ (e = this.lexer.state.inRawBlock
+ ? this.options.sanitize
+ ? this.options.sanitizer
+ ? this.options.sanitizer(n[0])
+ : Ws(n[0])
+ : n[0]
+ : Ws(this.options.smartypants ? t(n[0]) : n[0])),
+ { type: 'text', raw: n[0], text: e }
+ );
+ }
+ }
+ }
+ const pl = {
+ newline: /^(?: *(?:\n|$))+/,
+ code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
+ fences:
+ /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
+ hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
+ heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
+ blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
+ list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
+ html: '^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))',
+ def: /^ {0,3}\[(label)\]: *(?:\n *)?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
+ table: rl,
+ lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,
+ _paragraph:
+ /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,
+ text: /^[^\n]+/,
+ _label: /(?!\s*\])(?:\\.|[^\[\]\\])+/,
+ _title: /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,
+ };
+ (pl.def = Gs(pl.def).replace('label', pl._label).replace('title', pl._title).getRegex()),
+ (pl.bullet = /(?:[*+-]|\d{1,9}[.)])/),
+ (pl.listItemStart = Gs(/^( *)(bull) */)
+ .replace('bull', pl.bullet)
+ .getRegex()),
+ (pl.list = Gs(pl.list)
+ .replace(/bull/g, pl.bullet)
+ .replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))')
+ .replace('def', '\\n+(?=' + pl.def.source + ')')
+ .getRegex()),
+ (pl._tag =
+ 'address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul'),
+ (pl._comment = /|$)/),
+ (pl.html = Gs(pl.html, 'i')
+ .replace('comment', pl._comment)
+ .replace('tag', pl._tag)
+ .replace(
+ 'attribute',
+ / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/,
+ )
+ .getRegex()),
+ (pl.paragraph = Gs(pl._paragraph)
+ .replace('hr', pl.hr)
+ .replace('heading', ' {0,3}#{1,6} ')
+ .replace('|lheading', '')
+ .replace('|table', '')
+ .replace('blockquote', ' {0,3}>')
+ .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n')
+ .replace('list', ' {0,3}(?:[*+-]|1[.)]) ')
+ .replace('html', '?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)')
+ .replace('tag', pl._tag)
+ .getRegex()),
+ (pl.blockquote = Gs(pl.blockquote).replace('paragraph', pl.paragraph).getRegex()),
+ (pl.normal = il({}, pl)),
+ (pl.gfm = il({}, pl.normal, {
+ table:
+ '^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)',
+ })),
+ (pl.gfm.table = Gs(pl.gfm.table)
+ .replace('hr', pl.hr)
+ .replace('heading', ' {0,3}#{1,6} ')
+ .replace('blockquote', ' {0,3}>')
+ .replace('code', ' {4}[^\\n]')
+ .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n')
+ .replace('list', ' {0,3}(?:[*+-]|1[.)]) ')
+ .replace('html', '?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)')
+ .replace('tag', pl._tag)
+ .getRegex()),
+ (pl.gfm.paragraph = Gs(pl._paragraph)
+ .replace('hr', pl.hr)
+ .replace('heading', ' {0,3}#{1,6} ')
+ .replace('|lheading', '')
+ .replace('table', pl.gfm.table)
+ .replace('blockquote', ' {0,3}>')
+ .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n')
+ .replace('list', ' {0,3}(?:[*+-]|1[.)]) ')
+ .replace('html', '?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)')
+ .replace('tag', pl._tag)
+ .getRegex()),
+ (pl.pedantic = il({}, pl.normal, {
+ html: Gs(
+ '^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))',
+ )
+ .replace('comment', pl._comment)
+ .replace(
+ /tag/g,
+ '(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b',
+ )
+ .getRegex(),
+ def: /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
+ heading: /^(#{1,6})(.*)(?:\n+|$)/,
+ fences: rl,
+ paragraph: Gs(pl.normal._paragraph)
+ .replace('hr', pl.hr)
+ .replace('heading', ' *#{1,6} *[^\n]')
+ .replace('lheading', pl.lheading)
+ .replace('blockquote', ' {0,3}>')
+ .replace('|fences', '')
+ .replace('|list', '')
+ .replace('|html', '')
+ .getRegex(),
+ }));
+ const dl = {
+ escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
+ autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
+ url: rl,
+ tag: '^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^',
+ link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,
+ reflink: /^!?\[(label)\]\[(ref)\]/,
+ nolink: /^!?\[(ref)\](?:\[\])?/,
+ reflinkSearch: 'reflink|nolink(?!\\()',
+ emStrong: {
+ lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,
+ rDelimAst:
+ /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
+ rDelimUnd:
+ /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/,
+ },
+ code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
+ br: /^( {2,}|\\)\n(?!\s*$)/,
+ del: rl,
+ text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\ 0.5 && (n = 'x' + n.toString(16)),
+ (r += '' + n + ';');
+ return r;
+ }
+ (dl._punctuation = '!"#$%&\'()+\\-.,/:;<=>?@\\[\\]`^{|}~'),
+ (dl.punctuation = Gs(dl.punctuation)
+ .replace(/punctuation/g, dl._punctuation)
+ .getRegex()),
+ (dl.blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g),
+ (dl.escapedEmSt = /\\\*|\\_/g),
+ (dl._comment = Gs(pl._comment).replace('(?:--\x3e|$)', '--\x3e').getRegex()),
+ (dl.emStrong.lDelim = Gs(dl.emStrong.lDelim)
+ .replace(/punct/g, dl._punctuation)
+ .getRegex()),
+ (dl.emStrong.rDelimAst = Gs(dl.emStrong.rDelimAst, 'g')
+ .replace(/punct/g, dl._punctuation)
+ .getRegex()),
+ (dl.emStrong.rDelimUnd = Gs(dl.emStrong.rDelimUnd, 'g')
+ .replace(/punct/g, dl._punctuation)
+ .getRegex()),
+ (dl._escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g),
+ (dl._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/),
+ (dl._email =
+ /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/),
+ (dl.autolink = Gs(dl.autolink)
+ .replace('scheme', dl._scheme)
+ .replace('email', dl._email)
+ .getRegex()),
+ (dl._attribute =
+ /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/),
+ (dl.tag = Gs(dl.tag)
+ .replace('comment', dl._comment)
+ .replace('attribute', dl._attribute)
+ .getRegex()),
+ (dl._label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/),
+ (dl._href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/),
+ (dl._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/),
+ (dl.link = Gs(dl.link)
+ .replace('label', dl._label)
+ .replace('href', dl._href)
+ .replace('title', dl._title)
+ .getRegex()),
+ (dl.reflink = Gs(dl.reflink)
+ .replace('label', dl._label)
+ .replace('ref', pl._label)
+ .getRegex()),
+ (dl.nolink = Gs(dl.nolink).replace('ref', pl._label).getRegex()),
+ (dl.reflinkSearch = Gs(dl.reflinkSearch, 'g')
+ .replace('reflink', dl.reflink)
+ .replace('nolink', dl.nolink)
+ .getRegex()),
+ (dl.normal = il({}, dl)),
+ (dl.pedantic = il({}, dl.normal, {
+ strong: {
+ start: /^__|\*\*/,
+ middle: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
+ endAst: /\*\*(?!\*)/g,
+ endUnd: /__(?!_)/g,
+ },
+ em: {
+ start: /^_|\*/,
+ middle: /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,
+ endAst: /\*(?!\*)/g,
+ endUnd: /_(?!_)/g,
+ },
+ link: Gs(/^!?\[(label)\]\((.*?)\)/)
+ .replace('label', dl._label)
+ .getRegex(),
+ reflink: Gs(/^!?\[(label)\]\s*\[([^\]]*)\]/)
+ .replace('label', dl._label)
+ .getRegex(),
+ })),
+ (dl.gfm = il({}, dl.normal, {
+ escape: Gs(dl.escape).replace('])', '~|])').getRegex(),
+ _extended_email:
+ /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,
+ url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,
+ _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,
+ del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
+ text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ t + ' '.repeat(n.length));
+ e;
+
+ )
+ if (
+ !(
+ this.options.extensions &&
+ this.options.extensions.block &&
+ this.options.extensions.block.some(
+ r =>
+ !!(n = r.call({ lexer: this }, e, t)) &&
+ ((e = e.substring(n.raw.length)), t.push(n), !0),
+ )
+ )
+ )
+ if ((n = this.tokenizer.space(e)))
+ (e = e.substring(n.raw.length)),
+ 1 === n.raw.length && t.length > 0 ? (t[t.length - 1].raw += '\n') : t.push(n);
+ else if ((n = this.tokenizer.code(e)))
+ (e = e.substring(n.raw.length)),
+ (r = t[t.length - 1]),
+ !r || ('paragraph' !== r.type && 'text' !== r.type)
+ ? t.push(n)
+ : ((r.raw += '\n' + n.raw),
+ (r.text += '\n' + n.text),
+ (this.inlineQueue[this.inlineQueue.length - 1].src = r.text));
+ else if ((n = this.tokenizer.fences(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.heading(e)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.hr(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.blockquote(e)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.list(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.html(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.def(e)))
+ (e = e.substring(n.raw.length)),
+ (r = t[t.length - 1]),
+ !r || ('paragraph' !== r.type && 'text' !== r.type)
+ ? this.tokens.links[n.tag] ||
+ (this.tokens.links[n.tag] = { href: n.href, title: n.title })
+ : ((r.raw += '\n' + n.raw),
+ (r.text += '\n' + n.raw),
+ (this.inlineQueue[this.inlineQueue.length - 1].src = r.text));
+ else if ((n = this.tokenizer.table(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.lheading(e)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else {
+ if (((i = e), this.options.extensions && this.options.extensions.startBlock)) {
+ let t = 1 / 0;
+ const n = e.slice(1);
+ let r;
+ this.options.extensions.startBlock.forEach(function (e) {
+ (r = e.call({ lexer: this }, n)),
+ 'number' == typeof r && r >= 0 && (t = Math.min(t, r));
+ }),
+ t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
+ }
+ if (this.state.top && (n = this.tokenizer.paragraph(i)))
+ (r = t[t.length - 1]),
+ o && 'paragraph' === r.type
+ ? ((r.raw += '\n' + n.raw),
+ (r.text += '\n' + n.text),
+ this.inlineQueue.pop(),
+ (this.inlineQueue[this.inlineQueue.length - 1].src = r.text))
+ : t.push(n),
+ (o = i.length !== e.length),
+ (e = e.substring(n.raw.length));
+ else if ((n = this.tokenizer.text(e)))
+ (e = e.substring(n.raw.length)),
+ (r = t[t.length - 1]),
+ r && 'text' === r.type
+ ? ((r.raw += '\n' + n.raw),
+ (r.text += '\n' + n.text),
+ this.inlineQueue.pop(),
+ (this.inlineQueue[this.inlineQueue.length - 1].src = r.text))
+ : t.push(n);
+ else if (e) {
+ const t = 'Infinite loop on byte: ' + e.charCodeAt(0);
+ if (this.options.silent) {
+ console.error(t);
+ break;
+ }
+ throw new Error(t);
+ }
+ }
+ return (this.state.top = !0), t;
+ }
+ inline(e, t) {
+ this.inlineQueue.push({ src: e, tokens: t });
+ }
+ inlineTokens(e, t = []) {
+ let n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ l = e;
+ if (this.tokens.links) {
+ const e = Object.keys(this.tokens.links);
+ if (e.length > 0)
+ for (; null != (o = this.tokenizer.rules.inline.reflinkSearch.exec(l)); )
+ e.includes(o[0].slice(o[0].lastIndexOf('[') + 1, -1)) &&
+ (l =
+ l.slice(0, o.index) +
+ '[' +
+ ll('a', o[0].length - 2) +
+ ']' +
+ l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
+ }
+ for (; null != (o = this.tokenizer.rules.inline.blockSkip.exec(l)); )
+ l =
+ l.slice(0, o.index) +
+ '[' +
+ ll('a', o[0].length - 2) +
+ ']' +
+ l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
+ for (; null != (o = this.tokenizer.rules.inline.escapedEmSt.exec(l)); )
+ l =
+ l.slice(0, o.index) +
+ '++' +
+ l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);
+ for (; e; )
+ if (
+ (a || (s = ''),
+ (a = !1),
+ !(
+ this.options.extensions &&
+ this.options.extensions.inline &&
+ this.options.extensions.inline.some(
+ r =>
+ !!(n = r.call({ lexer: this }, e, t)) &&
+ ((e = e.substring(n.raw.length)), t.push(n), !0),
+ )
+ ))
+ )
+ if ((n = this.tokenizer.escape(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.tag(e)))
+ (e = e.substring(n.raw.length)),
+ (r = t[t.length - 1]),
+ r && 'text' === n.type && 'text' === r.type
+ ? ((r.raw += n.raw), (r.text += n.text))
+ : t.push(n);
+ else if ((n = this.tokenizer.link(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.reflink(e, this.tokens.links)))
+ (e = e.substring(n.raw.length)),
+ (r = t[t.length - 1]),
+ r && 'text' === n.type && 'text' === r.type
+ ? ((r.raw += n.raw), (r.text += n.text))
+ : t.push(n);
+ else if ((n = this.tokenizer.emStrong(e, l, s)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.codespan(e)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.br(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.del(e))) (e = e.substring(n.raw.length)), t.push(n);
+ else if ((n = this.tokenizer.autolink(e, hl)))
+ (e = e.substring(n.raw.length)), t.push(n);
+ else if (this.state.inLink || !(n = this.tokenizer.url(e, hl))) {
+ if (((i = e), this.options.extensions && this.options.extensions.startInline)) {
+ let t = 1 / 0;
+ const n = e.slice(1);
+ let r;
+ this.options.extensions.startInline.forEach(function (e) {
+ (r = e.call({ lexer: this }, n)),
+ 'number' == typeof r && r >= 0 && (t = Math.min(t, r));
+ }),
+ t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
+ }
+ if ((n = this.tokenizer.inlineText(i, fl)))
+ (e = e.substring(n.raw.length)),
+ '_' !== n.raw.slice(-1) && (s = n.raw.slice(-1)),
+ (a = !0),
+ (r = t[t.length - 1]),
+ r && 'text' === r.type ? ((r.raw += n.raw), (r.text += n.text)) : t.push(n);
+ else if (e) {
+ const t = 'Infinite loop on byte: ' + e.charCodeAt(0);
+ if (this.options.silent) {
+ console.error(t);
+ break;
+ }
+ throw new Error(t);
+ }
+ } else (e = e.substring(n.raw.length)), t.push(n);
+ return t;
+ }
+ }
+ class gl {
+ constructor(e) {
+ this.options = e || Ms;
+ }
+ code(e, t, n) {
+ const r = (t || '').match(/\S*/)[0];
+ if (this.options.highlight) {
+ const t = this.options.highlight(e, r);
+ null != t && t !== e && ((n = !0), (e = t));
+ }
+ return (
+ (e = e.replace(/\n$/, '') + '\n'),
+ r
+ ? '' +
+ (n ? e : Ws(e, !0)) +
+ '
\n'
+ : '' + (n ? e : Ws(e, !0)) + '
\n'
+ );
+ }
+ blockquote(e) {
+ return `\n${e}
\n`;
+ }
+ html(e) {
+ return e;
+ }
+ heading(e, t, n, r) {
+ return this.options.headerIds
+ ? `\n`
+ : `${e}\n`;
+ }
+ hr() {
+ return this.options.xhtml ? '
\n' : '
\n';
+ }
+ list(e, t, n) {
+ const r = t ? 'ol' : 'ul';
+ return (
+ '<' + r + (t && 1 !== n ? ' start="' + n + '"' : '') + '>\n' + e + '' + r + '>\n'
+ );
+ }
+ listitem(e) {
+ return `${e}\n`;
+ }
+ checkbox(e) {
+ return (
+ ' '
+ );
+ }
+ paragraph(e) {
+ return `${e}
\n`;
+ }
+ table(e, t) {
+ return (
+ t && (t = `${t}`),
+ '\n'
+ );
+ }
+ tablerow(e) {
+ return `\n${e}
\n`;
+ }
+ tablecell(e, t) {
+ const n = t.header ? 'th' : 'td';
+ return (t.align ? `<${n} align="${t.align}">` : `<${n}>`) + e + `${n}>\n`;
+ }
+ strong(e) {
+ return `${e}`;
+ }
+ em(e) {
+ return `${e}`;
+ }
+ codespan(e) {
+ return `${e}
`;
+ }
+ br() {
+ return this.options.xhtml ? '
' : '
';
+ }
+ del(e) {
+ return `${e}`;
+ }
+ link(e, t, n) {
+ if (null === (e = Zs(this.options.sanitize, this.options.baseUrl, e))) return n;
+ let r = '' + n + ''), r;
+ }
+ image(e, t, n) {
+ if (null === (e = Zs(this.options.sanitize, this.options.baseUrl, e))) return n;
+ let r = `
' : '>'), r;
+ }
+ text(e) {
+ return e;
+ }
+ }
+ class yl {
+ strong(e) {
+ return e;
+ }
+ em(e) {
+ return e;
+ }
+ codespan(e) {
+ return e;
+ }
+ del(e) {
+ return e;
+ }
+ html(e) {
+ return e;
+ }
+ text(e) {
+ return e;
+ }
+ link(e, t, n) {
+ return '' + n;
+ }
+ image(e, t, n) {
+ return '' + n;
+ }
+ br() {
+ return '';
+ }
+ }
+ class vl {
+ constructor() {
+ this.seen = {};
+ }
+ serialize(e) {
+ return e
+ .toLowerCase()
+ .trim()
+ .replace(/<[!\/a-z].*?>/gi, '')
+ .replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g, '')
+ .replace(/\s/g, '-');
+ }
+ getNextSafeSlug(e, t) {
+ let n = e,
+ r = 0;
+ if (this.seen.hasOwnProperty(n)) {
+ r = this.seen[e];
+ do {
+ r++, (n = e + '-' + r);
+ } while (this.seen.hasOwnProperty(n));
+ }
+ return t || ((this.seen[e] = r), (this.seen[n] = 0)), n;
+ }
+ slug(e, t = {}) {
+ const n = this.serialize(e);
+ return this.getNextSafeSlug(n, t.dryrun);
+ }
+ }
+ class bl {
+ constructor(e) {
+ (this.options = e || Ms),
+ (this.options.renderer = this.options.renderer || new gl()),
+ (this.renderer = this.options.renderer),
+ (this.renderer.options = this.options),
+ (this.textRenderer = new yl()),
+ (this.slugger = new vl());
+ }
+ static parse(e, t) {
+ return new bl(t).parse(e);
+ }
+ static parseInline(e, t) {
+ return new bl(t).parseInline(e);
+ }
+ parse(e, t = !0) {
+ let n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ l,
+ c,
+ u,
+ p,
+ d,
+ f,
+ h,
+ m,
+ g,
+ y,
+ v,
+ b,
+ x,
+ w = '';
+ const k = e.length;
+ for (n = 0; n < k; n++)
+ if (
+ ((p = e[n]),
+ this.options.extensions &&
+ this.options.extensions.renderers &&
+ this.options.extensions.renderers[p.type] &&
+ ((x = this.options.extensions.renderers[p.type].call({ parser: this }, p)),
+ !1 !== x ||
+ ![
+ 'space',
+ 'hr',
+ 'heading',
+ 'code',
+ 'table',
+ 'blockquote',
+ 'list',
+ 'html',
+ 'paragraph',
+ 'text',
+ ].includes(p.type)))
+ )
+ w += x || '';
+ else
+ switch (p.type) {
+ case 'space':
+ continue;
+ case 'hr':
+ w += this.renderer.hr();
+ continue;
+ case 'heading':
+ w += this.renderer.heading(
+ this.parseInline(p.tokens),
+ p.depth,
+ Ys(this.parseInline(p.tokens, this.textRenderer)),
+ this.slugger,
+ );
+ continue;
+ case 'code':
+ w += this.renderer.code(p.text, p.lang, p.escaped);
+ continue;
+ case 'table':
+ for (c = '', l = '', o = p.header.length, r = 0; r < o; r++)
+ l += this.renderer.tablecell(this.parseInline(p.header[r].tokens), {
+ header: !0,
+ align: p.align[r],
+ });
+ for (
+ c += this.renderer.tablerow(l), u = '', o = p.rows.length, r = 0;
+ r < o;
+ r++
+ ) {
+ for (s = p.rows[r], l = '', a = s.length, i = 0; i < a; i++)
+ l += this.renderer.tablecell(this.parseInline(s[i].tokens), {
+ header: !1,
+ align: p.align[i],
+ });
+ u += this.renderer.tablerow(l);
+ }
+ w += this.renderer.table(c, u);
+ continue;
+ case 'blockquote':
+ (u = this.parse(p.tokens)), (w += this.renderer.blockquote(u));
+ continue;
+ case 'list':
+ for (
+ d = p.ordered, f = p.start, h = p.loose, o = p.items.length, u = '', r = 0;
+ r < o;
+ r++
+ )
+ (g = p.items[r]),
+ (y = g.checked),
+ (v = g.task),
+ (m = ''),
+ g.task &&
+ ((b = this.renderer.checkbox(y)),
+ h
+ ? g.tokens.length > 0 && 'paragraph' === g.tokens[0].type
+ ? ((g.tokens[0].text = b + ' ' + g.tokens[0].text),
+ g.tokens[0].tokens &&
+ g.tokens[0].tokens.length > 0 &&
+ 'text' === g.tokens[0].tokens[0].type &&
+ (g.tokens[0].tokens[0].text =
+ b + ' ' + g.tokens[0].tokens[0].text))
+ : g.tokens.unshift({ type: 'text', text: b })
+ : (m += b)),
+ (m += this.parse(g.tokens, h)),
+ (u += this.renderer.listitem(m, v, y));
+ w += this.renderer.list(u, d, f);
+ continue;
+ case 'html':
+ w += this.renderer.html(p.text);
+ continue;
+ case 'paragraph':
+ w += this.renderer.paragraph(this.parseInline(p.tokens));
+ continue;
+ case 'text':
+ for (
+ u = p.tokens ? this.parseInline(p.tokens) : p.text;
+ n + 1 < k && 'text' === e[n + 1].type;
+
+ )
+ (p = e[++n]), (u += '\n' + (p.tokens ? this.parseInline(p.tokens) : p.text));
+ w += t ? this.renderer.paragraph(u) : u;
+ continue;
+ default: {
+ const e = 'Token with "' + p.type + '" type was not found.';
+ if (this.options.silent) return void console.error(e);
+ throw new Error(e);
+ }
+ }
+ return w;
+ }
+ parseInline(e, t) {
+ t = t || this.renderer;
+ let n,
+ r,
+ i,
+ o = '';
+ const a = e.length;
+ for (n = 0; n < a; n++)
+ if (
+ ((r = e[n]),
+ this.options.extensions &&
+ this.options.extensions.renderers &&
+ this.options.extensions.renderers[r.type] &&
+ ((i = this.options.extensions.renderers[r.type].call({ parser: this }, r)),
+ !1 !== i ||
+ ![
+ 'escape',
+ 'html',
+ 'link',
+ 'image',
+ 'strong',
+ 'em',
+ 'codespan',
+ 'br',
+ 'del',
+ 'text',
+ ].includes(r.type)))
+ )
+ o += i || '';
+ else
+ switch (r.type) {
+ case 'escape':
+ case 'text':
+ o += t.text(r.text);
+ break;
+ case 'html':
+ o += t.html(r.text);
+ break;
+ case 'link':
+ o += t.link(r.href, r.title, this.parseInline(r.tokens, t));
+ break;
+ case 'image':
+ o += t.image(r.href, r.title, r.text);
+ break;
+ case 'strong':
+ o += t.strong(this.parseInline(r.tokens, t));
+ break;
+ case 'em':
+ o += t.em(this.parseInline(r.tokens, t));
+ break;
+ case 'codespan':
+ o += t.codespan(r.text);
+ break;
+ case 'br':
+ o += t.br();
+ break;
+ case 'del':
+ o += t.del(this.parseInline(r.tokens, t));
+ break;
+ default: {
+ const e = 'Token with "' + r.type + '" type was not found.';
+ if (this.options.silent) return void console.error(e);
+ throw new Error(e);
+ }
+ }
+ return o;
+ }
+ }
+ function xl(e, t, n) {
+ if (null == e) throw new Error('marked(): input parameter is undefined or null');
+ if ('string' != typeof e)
+ throw new Error(
+ 'marked(): input parameter is of type ' +
+ Object.prototype.toString.call(e) +
+ ', string expected',
+ );
+ if (
+ ('function' == typeof t && ((n = t), (t = null)),
+ sl((t = il({}, xl.defaults, t || {}))),
+ n)
+ ) {
+ const r = t.highlight;
+ let i;
+ try {
+ i = ml.lex(e, t);
+ } catch (e) {
+ return n(e);
+ }
+ const o = function (e) {
+ let o;
+ if (!e)
+ try {
+ t.walkTokens && xl.walkTokens(i, t.walkTokens), (o = bl.parse(i, t));
+ } catch (t) {
+ e = t;
+ }
+ return (t.highlight = r), e ? n(e) : n(null, o);
+ };
+ if (!r || r.length < 3) return o();
+ if ((delete t.highlight, !i.length)) return o();
+ let a = 0;
+ return (
+ xl.walkTokens(i, function (e) {
+ 'code' === e.type &&
+ (a++,
+ setTimeout(() => {
+ r(e.text, e.lang, function (t, n) {
+ if (t) return o(t);
+ null != n && n !== e.text && ((e.text = n), (e.escaped = !0)),
+ a--,
+ 0 === a && o();
+ });
+ }, 0));
+ }),
+ void (0 === a && o())
+ );
+ }
+ try {
+ const n = ml.lex(e, t);
+ return t.walkTokens && xl.walkTokens(n, t.walkTokens), bl.parse(n, t);
+ } catch (e) {
+ if (
+ ((e.message += '\nPlease report this to https://github.com/markedjs/marked.'),
+ t.silent)
+ )
+ return 'An error occurred:
' + Ws(e.message + '', !0) + '
';
+ throw e;
+ }
+ }
+ (xl.options = xl.setOptions =
+ function (e) {
+ var t;
+ return il(xl.defaults, e), (t = xl.defaults), (Ms = t), xl;
+ }),
+ (xl.getDefaults = function () {
+ return {
+ baseUrl: null,
+ breaks: !1,
+ extensions: null,
+ gfm: !0,
+ headerIds: !0,
+ headerPrefix: '',
+ highlight: null,
+ langPrefix: 'language-',
+ mangle: !0,
+ pedantic: !1,
+ renderer: null,
+ sanitize: !1,
+ sanitizer: null,
+ silent: !1,
+ smartLists: !1,
+ smartypants: !1,
+ tokenizer: null,
+ walkTokens: null,
+ xhtml: !1,
+ };
+ }),
+ (xl.defaults = Ms),
+ (xl.use = function (...e) {
+ const t = il({}, ...e),
+ n = xl.defaults.extensions || { renderers: {}, childTokens: {} };
+ let r;
+ e.forEach(e => {
+ if (
+ (e.extensions &&
+ ((r = !0),
+ e.extensions.forEach(e => {
+ if (!e.name) throw new Error('extension name required');
+ if (e.renderer) {
+ const t = n.renderers ? n.renderers[e.name] : null;
+ n.renderers[e.name] = t
+ ? function (...n) {
+ let r = e.renderer.apply(this, n);
+ return !1 === r && (r = t.apply(this, n)), r;
+ }
+ : e.renderer;
+ }
+ if (e.tokenizer) {
+ if (!e.level || ('block' !== e.level && 'inline' !== e.level))
+ throw new Error("extension level must be 'block' or 'inline'");
+ n[e.level] ? n[e.level].unshift(e.tokenizer) : (n[e.level] = [e.tokenizer]),
+ e.start &&
+ ('block' === e.level
+ ? n.startBlock
+ ? n.startBlock.push(e.start)
+ : (n.startBlock = [e.start])
+ : 'inline' === e.level &&
+ (n.startInline
+ ? n.startInline.push(e.start)
+ : (n.startInline = [e.start])));
+ }
+ e.childTokens && (n.childTokens[e.name] = e.childTokens);
+ })),
+ e.renderer)
+ ) {
+ const n = xl.defaults.renderer || new gl();
+ for (const t in e.renderer) {
+ const r = n[t];
+ n[t] = (...i) => {
+ let o = e.renderer[t].apply(n, i);
+ return !1 === o && (o = r.apply(n, i)), o;
+ };
+ }
+ t.renderer = n;
+ }
+ if (e.tokenizer) {
+ const n = xl.defaults.tokenizer || new ul();
+ for (const t in e.tokenizer) {
+ const r = n[t];
+ n[t] = (...i) => {
+ let o = e.tokenizer[t].apply(n, i);
+ return !1 === o && (o = r.apply(n, i)), o;
+ };
+ }
+ t.tokenizer = n;
+ }
+ if (e.walkTokens) {
+ const n = xl.defaults.walkTokens;
+ t.walkTokens = function (t) {
+ e.walkTokens.call(this, t), n && n.call(this, t);
+ };
+ }
+ r && (t.extensions = n), xl.setOptions(t);
+ });
+ }),
+ (xl.walkTokens = function (e, t) {
+ for (const n of e)
+ switch ((t.call(xl, n), n.type)) {
+ case 'table':
+ for (const e of n.header) xl.walkTokens(e.tokens, t);
+ for (const e of n.rows) for (const n of e) xl.walkTokens(n.tokens, t);
+ break;
+ case 'list':
+ xl.walkTokens(n.items, t);
+ break;
+ default:
+ xl.defaults.extensions &&
+ xl.defaults.extensions.childTokens &&
+ xl.defaults.extensions.childTokens[n.type]
+ ? xl.defaults.extensions.childTokens[n.type].forEach(function (e) {
+ xl.walkTokens(n[e], t);
+ })
+ : n.tokens && xl.walkTokens(n.tokens, t);
+ }
+ }),
+ (xl.parseInline = function (e, t) {
+ if (null == e)
+ throw new Error('marked.parseInline(): input parameter is undefined or null');
+ if ('string' != typeof e)
+ throw new Error(
+ 'marked.parseInline(): input parameter is of type ' +
+ Object.prototype.toString.call(e) +
+ ', string expected',
+ );
+ sl((t = il({}, xl.defaults, t || {})));
+ try {
+ const n = ml.lexInline(e, t);
+ return t.walkTokens && xl.walkTokens(n, t.walkTokens), bl.parseInline(n, t);
+ } catch (e) {
+ if (
+ ((e.message += '\nPlease report this to https://github.com/markedjs/marked.'),
+ t.silent)
+ )
+ return 'An error occurred:
' + Ws(e.message + '', !0) + '
';
+ throw e;
+ }
+ }),
+ (xl.Parser = bl),
+ (xl.parser = bl.parse),
+ (xl.Renderer = gl),
+ (xl.TextRenderer = yl),
+ (xl.Lexer = ml),
+ (xl.lexer = ml.lex),
+ (xl.Tokenizer = ul),
+ (xl.Slugger = vl),
+ (xl.parse = xl),
+ xl.options,
+ xl.setOptions,
+ xl.use,
+ xl.walkTokens,
+ xl.parseInline,
+ bl.parse,
+ ml.lex;
+ var wl = Object.defineProperty,
+ kl = Object.defineProperties,
+ Ol = Object.getOwnPropertyDescriptors,
+ Sl = Object.getOwnPropertySymbols,
+ El = Object.prototype.hasOwnProperty,
+ _l = Object.prototype.propertyIsEnumerable,
+ Al = (e, t, n) =>
+ t in e
+ ? wl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ jl = (e, t) => {
+ for (var n in t || (t = {})) El.call(t, n) && Al(e, n, t[n]);
+ if (Sl) for (var n of Sl(t)) _l.call(t, n) && Al(e, n, t[n]);
+ return e;
+ },
+ Cl = (e, t) => kl(e, Ol(t));
+ const Pl = new xl.Renderer();
+ xl.setOptions({ renderer: Pl, highlight: (e, t) => vs(e, t) });
+ const Tl =
+ '(?:^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$|(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,})))';
+ class Rl {
+ constructor(e, t) {
+ (this.options = e),
+ (this.parentId = t),
+ (this.headings = []),
+ (this.headingRule = (e, t, n, r) => (
+ 1 === t
+ ? (this.currentTopHeading = this.saveHeading(e, t))
+ : 2 === t &&
+ this.saveHeading(
+ e,
+ t,
+ this.currentTopHeading && this.currentTopHeading.items,
+ this.currentTopHeading && this.currentTopHeading.id,
+ ),
+ this.originalHeadingRule(e, t, n, r)
+ )),
+ (this.parentId = t),
+ (this.parser = new xl.Parser()),
+ (this.headingEnhanceRenderer = new xl.Renderer()),
+ (this.originalHeadingRule = this.headingEnhanceRenderer.heading.bind(
+ this.headingEnhanceRenderer,
+ )),
+ (this.headingEnhanceRenderer.heading = this.headingRule);
+ }
+ static containsComponent(e, t) {
+ return new RegExp(Tl.replace(/{component}/g, t), 'gmi').test(e);
+ }
+ static getTextBeforeHading(e, t) {
+ const n = e.search(new RegExp(`^##?\\s+${t}`, 'm'));
+ return n > -1 ? e.substring(0, n) : e;
+ }
+ saveHeading(e, t, n = this.headings, r) {
+ e = e
+ .replace(/(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10)))
+ .replace(/&/g, '&')
+ .replace(/"/g, '"');
+ const i = {
+ id: r ? `${r}/${ai(e)}` : `${this.parentId || 'section'}/${ai(e)}`,
+ name: e,
+ level: t,
+ items: [],
+ };
+ return n.push(i), i;
+ }
+ flattenHeadings(e) {
+ if (void 0 === e) return [];
+ const t = [];
+ for (const n of e) t.push(n), t.push(...this.flattenHeadings(n.items));
+ return t;
+ }
+ attachHeadingsDescriptions(e) {
+ const t = e =>
+ new RegExp(
+ `##?\\s+${e.name.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')}s*(\n|\r\n|$|s*)`,
+ ),
+ n = this.flattenHeadings(this.headings);
+ if (n.length < 1) return;
+ let r = n[0],
+ i = t(r),
+ o = e.search(i);
+ for (let a = 1; a < n.length; a++) {
+ const s = n[a],
+ l = t(s),
+ c = e.substr(o + 1).search(l) + o + 1;
+ (r.description = e.substring(o, c).replace(i, '').trim()), (r = s), (i = l), (o = c);
+ }
+ r.description = e.substring(o).replace(i, '').trim();
+ }
+ renderMd(e, t = !1) {
+ const n = t ? { renderer: this.headingEnhanceRenderer } : void 0;
+ return xl(e.toString(), n);
+ }
+ extractHeadings(e) {
+ this.renderMd(e, !0), this.attachHeadingsDescriptions(e);
+ const t = this.headings;
+ return (this.headings = []), t;
+ }
+ renderMdWithComponents(e) {
+ const t = this.options && this.options.allowedMdComponents;
+ if (!t || 0 === Object.keys(t).length) return [this.renderMd(e)];
+ const n = Object.keys(t).join('|'),
+ r = new RegExp(Tl.replace(/{component}/g, n), 'mig'),
+ i = [],
+ o = [];
+ let a = r.exec(e),
+ s = 0;
+ for (; a; ) {
+ i.push(e.substring(s, a.index)), (s = r.lastIndex);
+ const n = t[a[1] || a[2] || a[5]],
+ l = a[3] || a[6],
+ c = a[4];
+ n &&
+ o.push({
+ component: n.component,
+ propsSelector: n.propsSelector,
+ props: Cl(jl(jl({}, Il(l)), n.props), { children: c }),
+ }),
+ (a = r.exec(e));
+ }
+ i.push(e.substring(s));
+ const l = [];
+ for (let e = 0; e < i.length; e++) {
+ const t = i[e];
+ t && l.push(this.renderMd(t)), o[e] && l.push(o[e]);
+ }
+ return l;
+ }
+ }
+ function Il(e) {
+ if (!e) return {};
+ const t = /([\w-]+)\s*=\s*(?:{([^}]+?)}|"([^"]+?)")/gim,
+ n = {};
+ let r;
+ for (; null !== (r = t.exec(e)); )
+ if (r[3]) n[r[1]] = r[3];
+ else if (r[2]) {
+ let e;
+ try {
+ e = JSON.parse(r[2]);
+ } catch (e) {}
+ n[r[1]] = e;
+ }
+ return n;
+ }
+ class $l {
+ constructor(e, t = new Si({})) {
+ (this.parser = e),
+ (this.options = t),
+ Object.assign(this, e.spec.info),
+ (this.description = e.spec.info.description || ''),
+ (this.summary = e.spec.info.summary || '');
+ const n = this.description.search(/^\s*##?\s+/m);
+ n > -1 && (this.description = this.description.substring(0, n)),
+ (this.downloadLink = this.getDownloadLink()),
+ (this.downloadFileName = this.getDownloadFileName());
+ }
+ getDownloadLink() {
+ if (this.options.downloadDefinitionUrl) return this.options.downloadDefinitionUrl;
+ if (this.parser.specUrl) return this.parser.specUrl;
+ if (Qr && window.Blob && window.URL && window.URL.createObjectURL) {
+ const e = new Blob([JSON.stringify(this.parser.spec, null, 2)], {
+ type: 'application/json',
+ });
+ return window.URL.createObjectURL(e);
+ }
+ }
+ getDownloadFileName() {
+ return this.parser.specUrl || this.options.downloadDefinitionUrl
+ ? this.options.downloadFileName
+ : this.options.downloadFileName || 'openapi.json';
+ }
+ }
+ var Nl = Object.defineProperty,
+ Ll = Object.defineProperties,
+ Dl = Object.getOwnPropertyDescriptors,
+ Ml = Object.getOwnPropertySymbols,
+ Fl = Object.prototype.hasOwnProperty,
+ zl = Object.prototype.propertyIsEnumerable,
+ Ul = (e, t, n) =>
+ t in e
+ ? Nl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ class Bl {
+ constructor(e, t) {
+ const n = (t.spec.components && t.spec.components.securitySchemes) || {};
+ this.schemes = Object.keys(e || {})
+ .map(r => {
+ const { resolved: i } = t.deref(n[r]),
+ o = e[r] || [];
+ if (!i)
+ return void console.warn(
+ `Non existing security scheme referenced: ${r}. Skipping`,
+ );
+ const a = i['x-displayName'] || r;
+ return ((e, t) => Ll(e, Dl(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {})) Fl.call(t, n) && Ul(e, n, t[n]);
+ if (Ml) for (var n of Ml(t)) zl.call(t, n) && Ul(e, n, t[n]);
+ return e;
+ })({}, i),
+ { id: r, sectionId: r, displayName: a, scopes: o },
+ );
+ })
+ .filter(e => void 0 !== e);
+ }
+ }
+ var ql = Object.defineProperty,
+ Vl = Object.defineProperties,
+ Wl = Object.getOwnPropertyDescriptor,
+ Hl = Object.getOwnPropertyDescriptors,
+ Yl = Object.getOwnPropertySymbols,
+ Ql = Object.prototype.hasOwnProperty,
+ Gl = Object.prototype.propertyIsEnumerable,
+ Xl = (e, t, n) =>
+ t in e
+ ? ql(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Kl = (e, t) => {
+ for (var n in t || (t = {})) Ql.call(t, n) && Xl(e, n, t[n]);
+ if (Yl) for (var n of Yl(t)) Gl.call(t, n) && Xl(e, n, t[n]);
+ return e;
+ },
+ Zl = (e, t) => Vl(e, Hl(t)),
+ Jl = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? Wl(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && ql(t, n, o), o;
+ };
+ class ec {
+ constructor(e, t, n, r, i) {
+ (this.expanded = !1), (this.operations = []), nn(this), (this.name = t);
+ const { resolved: o } = e.deref(n);
+ for (const n of Object.keys(o)) {
+ const a = o[n],
+ s = Object.keys(a).filter(Xa);
+ for (const o of s) {
+ const s = a[o],
+ l = new Ou(
+ e,
+ Zl(Kl({}, s), {
+ pathName: n,
+ pointer: Na.compile([r, t, n, o]),
+ httpVerb: o,
+ pathParameters: a.parameters || [],
+ pathServers: a.servers,
+ }),
+ void 0,
+ i,
+ !0,
+ );
+ this.operations.push(l);
+ }
+ }
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ }
+ Jl([Ce], ec.prototype, 'expanded', 2), Jl([jt], ec.prototype, 'toggle', 1);
+ var tc = Object.defineProperty,
+ nc = Object.defineProperties,
+ rc = Object.getOwnPropertyDescriptors,
+ ic = Object.getOwnPropertySymbols,
+ oc = Object.prototype.hasOwnProperty,
+ ac = Object.prototype.propertyIsEnumerable,
+ sc = (e, t, n) =>
+ t in e
+ ? tc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ lc = (e, t) => {
+ for (var n in t || (t = {})) oc.call(t, n) && sc(e, n, t[n]);
+ if (ic) for (var n of ic(t)) ac.call(t, n) && sc(e, n, t[n]);
+ return e;
+ },
+ cc = (e, t) => nc(e, rc(t)),
+ uc = (e, t) => {
+ var n = {};
+ for (var r in e) oc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && ic)
+ for (var r of ic(e)) t.indexOf(r) < 0 && ac.call(e, r) && (n[r] = e[r]);
+ return n;
+ };
+ function pc(e, t) {
+ return t && e[e.length - 1] !== t ? [...e, t] : e;
+ }
+ function dc(e, t) {
+ return t ? e.concat(t) : e;
+ }
+ class fc {
+ constructor(e, t, n = new Si({})) {
+ (this.options = n),
+ (this.allowMergeRefs = !1),
+ (this.byRef = e => {
+ let t;
+ if (this.spec) {
+ '#' !== e.charAt(0) && (e = '#' + e), (e = decodeURIComponent(e));
+ try {
+ t = Na.get(this.spec, e);
+ } catch (e) {}
+ return t || {};
+ }
+ }),
+ this.validate(e),
+ (this.spec = e),
+ (this.allowMergeRefs = e.openapi.startsWith('3.1'));
+ const r = Qr ? window.location.href : '';
+ 'string' == typeof t && (this.specUrl = r ? new URL(t, r).href : t);
+ }
+ validate(e) {
+ if (void 0 === e.openapi)
+ throw new Error('Document must be valid OpenAPI 3.0.0 definition');
+ }
+ isRef(e) {
+ return !!e && void 0 !== e.$ref && null !== e.$ref;
+ }
+ deref(e, t = [], n = !1) {
+ const r = null == e ? void 0 : e['x-refsStack'];
+ if (((t = dc(t, r)), this.isRef(e))) {
+ const r = ss(e.$ref);
+ if (r && this.options.ignoreNamedSchemas.has(r))
+ return { resolved: { type: 'object', title: r }, refsStack: t };
+ let i = this.byRef(e.$ref);
+ if (!i) throw new Error(`Failed to resolve $ref "${e.$ref}"`);
+ let o = t;
+ if (t.includes(e.$ref) || t.length > 999)
+ i = Object.assign({}, i, { 'x-circular-ref': !0 });
+ else if (this.isRef(i)) {
+ const e = this.deref(i, t, n);
+ (o = e.refsStack), (i = e.resolved);
+ }
+ return (
+ (o = pc(t, e.$ref)),
+ (i = this.allowMergeRefs ? this.mergeRefs(e, i, n) : i),
+ { resolved: i, refsStack: o }
+ );
+ }
+ return { resolved: e, refsStack: dc(t, r) };
+ }
+ mergeRefs(e, t, n) {
+ const r = e,
+ { $ref: i } = r,
+ o = uc(r, ['$ref']),
+ a = Object.keys(o);
+ if (0 === a.length) return t;
+ if (
+ n &&
+ a.some(
+ e =>
+ ![
+ 'description',
+ 'title',
+ 'externalDocs',
+ 'x-refsStack',
+ 'x-parentRefs',
+ 'readOnly',
+ 'writeOnly',
+ ].includes(e),
+ )
+ ) {
+ const e = o,
+ { description: n, title: r, readOnly: i, writeOnly: a } = e;
+ return {
+ allOf: [
+ { description: n, title: r, readOnly: i, writeOnly: a },
+ t,
+ uc(e, ['description', 'title', 'readOnly', 'writeOnly']),
+ ],
+ };
+ }
+ return lc(lc({}, t), o);
+ }
+ mergeAllOf(e, t, n) {
+ var r;
+ if (e['x-circular-ref']) return e;
+ if (void 0 === (e = this.hoistOneOfs(e, n)).allOf) return e;
+ let i = cc(lc({}, e), { 'x-parentRefs': [], allOf: void 0, title: e.title || ss(t) });
+ void 0 !== i.properties &&
+ 'object' == typeof i.properties &&
+ (i.properties = lc({}, i.properties)),
+ void 0 !== i.items && 'object' == typeof i.items && (i.items = lc({}, i.items));
+ const o = (function (e, t) {
+ const n = new Set();
+ return e.filter(e => {
+ const t = e.$ref;
+ return !t || (t && !n.has(t) && n.add(t));
+ });
+ })(
+ e.allOf
+ .map(e => {
+ var t;
+ const { resolved: r, refsStack: o } = this.deref(e, n, !0),
+ a = e.$ref || void 0,
+ s = this.mergeAllOf(r, a, o);
+ if (!s['x-circular-ref'] || !s.allOf)
+ return (
+ a &&
+ (null == (t = i['x-parentRefs']) ||
+ t.push(...(s['x-parentRefs'] || []), a)),
+ { $ref: a, refsStack: pc(o, a), schema: s }
+ );
+ })
+ .filter(e => void 0 !== e),
+ );
+ for (const { schema: e, refsStack: n } of o) {
+ const o = e,
+ {
+ type: a,
+ enum: s,
+ properties: l,
+ items: c,
+ required: u,
+ title: p,
+ description: d,
+ readOnly: f,
+ writeOnly: h,
+ oneOf: m,
+ anyOf: g,
+ 'x-circular-ref': y,
+ } = o,
+ v = uc(o, [
+ 'type',
+ 'enum',
+ 'properties',
+ 'items',
+ 'required',
+ 'title',
+ 'description',
+ 'readOnly',
+ 'writeOnly',
+ 'oneOf',
+ 'anyOf',
+ 'x-circular-ref',
+ ]);
+ if (
+ (i.type !== a &&
+ void 0 !== i.type &&
+ void 0 !== a &&
+ console.warn(`Incompatible types in allOf at "${t}": "${i.type}" and "${a}"`),
+ void 0 !== a &&
+ (Array.isArray(a) && Array.isArray(i.type)
+ ? (i.type = [...a, ...i.type])
+ : (i.type = a)),
+ void 0 !== s &&
+ (Array.isArray(s) && Array.isArray(i.enum)
+ ? (i.enum = Array.from(new Set([...s, ...i.enum])))
+ : (i.enum = s)),
+ void 0 !== l && 'object' == typeof l)
+ ) {
+ i.properties = i.properties || {};
+ for (const e in l) {
+ const o = dc(n, null == (r = l[e]) ? void 0 : r['x-refsStack']);
+ if (i.properties[e]) {
+ if (!y) {
+ const n = this.mergeAllOf(
+ {
+ allOf: [i.properties[e], cc(lc({}, l[e]), { 'x-refsStack': o })],
+ 'x-refsStack': o,
+ },
+ t + '/properties/' + e,
+ o,
+ );
+ i.properties[e] = n;
+ }
+ } else i.properties[e] = cc(lc({}, l[e]), { 'x-refsStack': o });
+ }
+ }
+ if (void 0 !== c && !y) {
+ const r = 'boolean' == typeof i.items ? {} : Object.assign({}, i.items),
+ o = 'boolean' == typeof e.items ? {} : Object.assign({}, e.items);
+ i.items = this.mergeAllOf({ allOf: [r, o] }, t + '/items', n);
+ }
+ void 0 !== m && (i.oneOf = m),
+ void 0 !== g && (i.anyOf = g),
+ void 0 !== u && (i.required = [...(i.required || []), ...u]),
+ (i = lc(
+ cc(lc({}, i), {
+ title: i.title || p,
+ description: i.description || d,
+ readOnly: void 0 !== i.readOnly ? i.readOnly : f,
+ writeOnly: void 0 !== i.writeOnly ? i.writeOnly : h,
+ 'x-circular-ref': i['x-circular-ref'] || y,
+ }),
+ v,
+ ));
+ }
+ return i;
+ }
+ findDerived(e) {
+ const t = {},
+ n = (this.spec.components && this.spec.components.schemas) || {};
+ for (const r in n) {
+ const { resolved: i } = this.deref(n[r]);
+ void 0 !== i.allOf &&
+ i.allOf.find(t => void 0 !== t.$ref && e.indexOf(t.$ref) > -1) &&
+ (t['#/components/schemas/' + r] = [i['x-discriminator-value'] || r]);
+ }
+ return t;
+ }
+ hoistOneOfs(e, t) {
+ if (void 0 === e.allOf) return e;
+ const n = e.allOf;
+ for (let e = 0; e < n.length; e++) {
+ const r = n[e];
+ if (Array.isArray(r.oneOf)) {
+ const i = n.slice(0, e),
+ o = n.slice(e + 1);
+ return { oneOf: r.oneOf.map(e => ({ allOf: [...i, e, ...o], 'x-refsStack': t })) };
+ }
+ }
+ return e;
+ }
+ }
+ var hc = Object.defineProperty,
+ mc = Object.defineProperties,
+ gc = Object.getOwnPropertyDescriptor,
+ yc = Object.getOwnPropertyDescriptors,
+ vc = Object.getOwnPropertySymbols,
+ bc = Object.prototype.hasOwnProperty,
+ xc = Object.prototype.propertyIsEnumerable,
+ wc = (e, t, n) =>
+ t in e
+ ? hc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ kc = (e, t) => {
+ for (var n in t || (t = {})) bc.call(t, n) && wc(e, n, t[n]);
+ if (vc) for (var n of vc(t)) xc.call(t, n) && wc(e, n, t[n]);
+ return e;
+ },
+ Oc = (e, t) => mc(e, yc(t)),
+ Sc = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? gc(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && hc(t, n, o), o;
+ };
+ const Ec = class {
+ constructor(e, t, n, r, i = !1, o = []) {
+ (this.options = r),
+ (this.refsStack = o),
+ (this.typePrefix = ''),
+ (this.isCircular = !1),
+ (this.activeOneOf = 0),
+ nn(this),
+ (this.pointer = t.$ref || n || '');
+ const { resolved: a, refsStack: s } = e.deref(t, o, !0);
+ (this.refsStack = pc(s, this.pointer)),
+ (this.rawSchema = a),
+ (this.schema = e.mergeAllOf(this.rawSchema, this.pointer, this.refsStack)),
+ this.init(e, i),
+ r.showExtensions && (this.extensions = ms(this.schema, r.showExtensions));
+ }
+ activateOneOf(e) {
+ this.activeOneOf = e;
+ }
+ hasType(e) {
+ return this.type === e || (ci(this.type) && this.type.includes(e));
+ }
+ init(e, t) {
+ var n, r, i, o, a, s, l, c;
+ const u = this.schema;
+ if (
+ ((this.isCircular = !!u['x-circular-ref']),
+ (this.title = u.title || (as(this.pointer) && Na.baseName(this.pointer)) || ''),
+ (this.description = u.description || ''),
+ (this.type =
+ u.type ||
+ (function (e) {
+ if (void 0 !== e.type && !ci(e.type)) return e.type;
+ const t = Object.keys(Ka);
+ for (const n of t) {
+ const t = Ka[n];
+ if (void 0 !== e[n]) return t;
+ }
+ return 'any';
+ })(u)),
+ (this.format = u.format),
+ (this.enum = u.enum || []),
+ (this.example = u.example),
+ (this.examples = u.examples),
+ (this.deprecated = !!u.deprecated),
+ (this.pattern = u.pattern),
+ (this.externalDocs = u.externalDocs),
+ (this.constraints = cs(u)),
+ (this.displayFormat = this.format),
+ (this.isPrimitive = Za(u, this.type)),
+ (this.default = u.default),
+ (this.readOnly = !!u.readOnly),
+ (this.writeOnly = !!u.writeOnly),
+ (this.const = u.const || ''),
+ (this.contentEncoding = u.contentEncoding),
+ (this.contentMediaType = u.contentMediaType),
+ (this.minItems = u.minItems),
+ (this.maxItems = u.maxItems),
+ (u.nullable || u['x-nullable']) &&
+ (ci(this.type) && !this.type.some(e => null === e || 'null' === e)
+ ? (this.type = [...this.type, 'null'])
+ : ci(this.type) ||
+ (null === this.type && 'null' === this.type) ||
+ (this.type = [this.type, 'null'])),
+ (this.displayType = ci(this.type)
+ ? this.type.map(e => (null === e ? 'null' : e)).join(' or ')
+ : this.type),
+ !this.isCircular)
+ )
+ if ((u.if && u.then) || (u.if && u.else)) this.initConditionalOperators(u, e);
+ else if (t || void 0 === jc(u)) {
+ if (
+ (t && ci(u.oneOf) && u.oneOf.find(e => e.$ref === this.pointer) && delete u.oneOf,
+ void 0 !== u.oneOf)
+ )
+ return (
+ this.initOneOf(u.oneOf, e),
+ (this.oneOfType = 'One of'),
+ void (
+ void 0 !== u.anyOf &&
+ console.warn(
+ `oneOf and anyOf are not supported on the same level. Skipping anyOf at ${this.pointer}`,
+ )
+ )
+ );
+ if (void 0 !== u.anyOf)
+ return this.initOneOf(u.anyOf, e), void (this.oneOfType = 'Any of');
+ if (this.hasType('object'))
+ this.fields = Ac(e, u, this.pointer, this.options, this.refsStack);
+ else if (
+ this.hasType('array') &&
+ (ci(u.items) || ci(u.prefixItems)
+ ? (this.fields = Ac(e, u, this.pointer, this.options, this.refsStack))
+ : u.items &&
+ (this.items = new Ec(
+ e,
+ u.items,
+ this.pointer + '/items',
+ this.options,
+ !1,
+ this.refsStack,
+ )),
+ (this.displayType =
+ u.prefixItems || ci(u.items)
+ ? 'items'
+ : ((null == (n = this.items) ? void 0 : n.displayType) || this.displayType)
+ .split(' or ')
+ .map(e =>
+ e.replace(
+ /^(string|object|number|integer|array|boolean)s?( ?.*)/,
+ '$1s$2',
+ ),
+ )
+ .join(' or ')),
+ (this.displayFormat = (null == (r = this.items) ? void 0 : r.format) || ''),
+ (this.typePrefix =
+ (null == (i = this.items) ? void 0 : i.typePrefix) || '' + di('arrayOf')),
+ (this.title = this.title || (null == (o = this.items) ? void 0 : o.title) || ''),
+ (this.isPrimitive =
+ void 0 !== (null == (a = this.items) ? void 0 : a.isPrimitive)
+ ? null == (s = this.items)
+ ? void 0
+ : s.isPrimitive
+ : this.isPrimitive),
+ void 0 === this.example &&
+ void 0 !== (null == (l = this.items) ? void 0 : l.example) &&
+ (this.example = [this.items.example]),
+ (null == (c = this.items) ? void 0 : c.isPrimitive) &&
+ (this.enum = this.items.enum),
+ ci(this.type))
+ ) {
+ const e = this.type.filter(e => 'array' !== e);
+ e.length && (this.displayType += ` or ${e.join(' or ')}`);
+ }
+ this.enum.length && this.options.sortEnumValuesAlphabetically && this.enum.sort();
+ } else this.initDiscriminator(u, e);
+ }
+ initOneOf(e, t) {
+ if (
+ ((this.oneOf = e.map((e, n) => {
+ const { resolved: r, refsStack: i } = t.deref(e, this.refsStack, !0),
+ o = t.mergeAllOf(r, this.pointer + '/oneOf/' + n, i),
+ a =
+ as(e.$ref) && !o.title
+ ? Na.baseName(e.$ref)
+ : `${o.title || ''}${(void 0 !== o.const && JSON.stringify(o.const)) || ''}`;
+ return new Ec(
+ t,
+ Oc(kc({}, o), {
+ title: a,
+ allOf: [Oc(kc({}, this.schema), { oneOf: void 0, anyOf: void 0 })],
+ discriminator: r.allOf ? void 0 : o.discriminator,
+ }),
+ e.$ref || this.pointer + '/oneOf/' + n,
+ this.options,
+ !1,
+ i,
+ );
+ })),
+ this.options.simpleOneOfTypeLabel)
+ ) {
+ const e = (function (e) {
+ const t = new Set();
+ return (
+ (function e(n) {
+ for (const r of n.oneOf || []) r.oneOf ? e(r) : r.type && t.add(r.type);
+ })(e),
+ Array.from(t.values())
+ );
+ })(this);
+ this.displayType = e.join(' or ');
+ } else
+ this.displayType = this.oneOf
+ .map(e => {
+ let t =
+ e.typePrefix + (e.title ? `${e.title} (${e.displayType})` : e.displayType);
+ return t.indexOf(' or ') > -1 && (t = `(${t})`), t;
+ })
+ .join(' or ');
+ }
+ initDiscriminator(e, t) {
+ const n = jc(e);
+ this.discriminatorProp = n.propertyName;
+ const r = t.findDerived([...(this.schema['x-parentRefs'] || []), this.pointer]);
+ if (e.oneOf)
+ for (const t of e.oneOf) {
+ if (void 0 === t.$ref) continue;
+ const e = Na.baseName(t.$ref);
+ r[t.$ref] = e;
+ }
+ const i = n.mapping || {};
+ let o = n['x-explicitMappingOnly'] || !1;
+ 0 === Object.keys(i).length && (o = !1);
+ const a = {};
+ for (const e in i) {
+ const t = i[e];
+ ci(a[t]) ? a[t].push(e) : (a[t] = [e]);
+ }
+ const s = kc(o ? {} : kc({}, r), a);
+ let l = [];
+ for (const e of Object.keys(s)) {
+ const t = s[e];
+ if (ci(t)) for (const n of t) l.push({ $ref: e, name: n });
+ else l.push({ $ref: e, name: t });
+ }
+ const c = Object.keys(i);
+ 0 !== c.length &&
+ (l = l.sort((e, t) => {
+ const n = c.indexOf(e.name),
+ r = c.indexOf(t.name);
+ return n < 0 && r < 0
+ ? e.name.localeCompare(t.name)
+ : n < 0
+ ? 1
+ : r < 0
+ ? -1
+ : n - r;
+ })),
+ (this.oneOf = l.map(({ $ref: e, name: n }) => {
+ const r = new Ec(t, { $ref: e }, e, this.options, !0, this.refsStack.slice(0, -1));
+ return (r.title = n), r;
+ }));
+ }
+ initConditionalOperators(e, t) {
+ const n = e,
+ { if: r, else: i = {}, then: o = {} } = n,
+ a = ((e, t) => {
+ var n = {};
+ for (var r in e) bc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && vc)
+ for (var r of vc(e)) t.indexOf(r) < 0 && xc.call(e, r) && (n[r] = e[r]);
+ return n;
+ })(n, ['if', 'else', 'then']),
+ s = [
+ {
+ allOf: [a, o, r],
+ title: (r && r['x-displayName']) || (null == r ? void 0 : r.title) || 'case 1',
+ },
+ {
+ allOf: [a, i],
+ title: (i && i['x-displayName']) || (null == i ? void 0 : i.title) || 'case 2',
+ },
+ ];
+ (this.oneOf = s.map(
+ (e, n) =>
+ new Ec(
+ t,
+ kc({}, e),
+ this.pointer + '/oneOf/' + n,
+ this.options,
+ !1,
+ this.refsStack,
+ ),
+ )),
+ (this.oneOfType = 'One of');
+ }
+ };
+ let _c = Ec;
+ function Ac(e, t, n, r, i) {
+ const o = t.properties || t.prefixItems || t.items || {},
+ a = t.patternProperties || {},
+ s = t.additionalProperties || t.unevaluatedProperties,
+ l = t.prefixItems ? t.items : t.additionalItems,
+ c = t.default;
+ let u = Object.keys(o || []).map(a => {
+ let s = o[a];
+ s ||
+ (console.warn(
+ `Field "${a}" is invalid, skipping.\n Field must be an object but got ${typeof s} at "${n}"`,
+ ),
+ (s = {}));
+ const l = void 0 !== t.required && t.required.indexOf(a) > -1;
+ return new Nc(
+ e,
+ {
+ name: t.properties ? a : `[${a}]`,
+ required: l,
+ schema: Oc(kc({}, s), { default: void 0 === s.default && c ? c[a] : s.default }),
+ },
+ n + '/properties/' + a,
+ r,
+ i,
+ );
+ });
+ return (
+ r.sortPropsAlphabetically && (u = ps(u, 'name')),
+ r.requiredPropsFirst && (u = us(u, r.sortPropsAlphabetically ? void 0 : t.required)),
+ u.push(
+ ...Object.keys(a).map(t => {
+ let o = a[t];
+ return (
+ o ||
+ (console.warn(
+ `Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof o} at "${n}"`,
+ ),
+ (o = {})),
+ new Nc(
+ e,
+ { name: t, required: !1, schema: o, kind: 'patternProperties' },
+ `${n}/patternProperties/${t}`,
+ r,
+ i,
+ )
+ );
+ }),
+ ),
+ ('object' != typeof s && !0 !== s) ||
+ u.push(
+ new Nc(
+ e,
+ {
+ name: (
+ ('object' == typeof s && s['x-additionalPropertiesName']) ||
+ 'property name'
+ ).concat('*'),
+ required: !1,
+ schema: !0 === s ? {} : s,
+ kind: 'additionalProperties',
+ },
+ n + '/additionalProperties',
+ r,
+ i,
+ ),
+ ),
+ u.push(
+ ...(function ({
+ parser: e,
+ schema: t = !1,
+ fieldsCount: n,
+ $ref: r,
+ options: i,
+ refsStack: o,
+ }) {
+ return ui(t)
+ ? t
+ ? [new Nc(e, { name: `[${n}...]`, schema: {} }, `${r}/additionalItems`, i, o)]
+ : []
+ : ci(t)
+ ? [
+ ...t.map(
+ (t, a) =>
+ new Nc(
+ e,
+ { name: `[${n + a}]`, schema: t },
+ `${r}/additionalItems`,
+ i,
+ o,
+ ),
+ ),
+ ]
+ : ii(t)
+ ? [new Nc(e, { name: `[${n}...]`, schema: t }, `${r}/additionalItems`, i, o)]
+ : [];
+ })({
+ parser: e,
+ schema: l,
+ fieldsCount: u.length,
+ $ref: n,
+ options: r,
+ refsStack: i,
+ }),
+ ),
+ u
+ );
+ }
+ function jc(e) {
+ return e.discriminator || e['x-discriminator'];
+ }
+ Sc([Ce], _c.prototype, 'activeOneOf', 2), Sc([jt], _c.prototype, 'activateOneOf', 1);
+ const Cc = {};
+ class Pc {
+ constructor(e, t, n, r) {
+ this.mime = n;
+ const { resolved: i } = e.deref(t);
+ (this.value = i.value),
+ (this.summary = i.summary),
+ (this.description = i.description),
+ i.externalValue && (this.externalValueUrl = new URL(i.externalValue, e.specUrl).href),
+ 'application/x-www-form-urlencoded' === n &&
+ this.value &&
+ 'object' == typeof this.value &&
+ (this.value = (function (e, t = {}) {
+ if (ci(e)) throw new Error('Payload must have fields: ' + e.toString());
+ return Object.keys(e)
+ .map(n => {
+ const r = e[n],
+ { style: i = 'form', explode: o = !0 } = t[n] || {};
+ switch (i) {
+ case 'form':
+ return ns(n, o, r);
+ case 'spaceDelimited':
+ return es(r, n, '%20');
+ case 'pipeDelimited':
+ return es(r, n, '|');
+ case 'deepObject':
+ return ts(r, n);
+ default:
+ return console.warn('Incorrect or unsupported encoding style: ' + i), '';
+ }
+ })
+ .join('&');
+ })(this.value, r));
+ }
+ getExternalValue(e) {
+ return this.externalValueUrl
+ ? (this.externalValueUrl in Cc ||
+ (Cc[this.externalValueUrl] = fetch(this.externalValueUrl).then(t =>
+ t.text().then(n => {
+ if (!t.ok) return Promise.reject(new Error(n));
+ if (!Ja(e)) return n;
+ try {
+ return JSON.parse(n);
+ } catch (e) {
+ return n;
+ }
+ }),
+ )),
+ Cc[this.externalValueUrl])
+ : Promise.resolve(void 0);
+ }
+ }
+ var Tc = Object.defineProperty,
+ Rc = Object.getOwnPropertyDescriptor,
+ Ic = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? Rc(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && Tc(t, n, o), o;
+ };
+ const $c = {
+ path: { style: 'simple', explode: !1 },
+ query: { style: 'form', explode: !0 },
+ header: { style: 'simple', explode: !1 },
+ cookie: { style: 'form', explode: !0 },
+ };
+ class Nc {
+ constructor(e, t, n, r, i) {
+ var o, a, s, l, c;
+ (this.expanded = void 0), nn(this);
+ const { resolved: u } = e.deref(t);
+ (this.kind = t.kind || 'field'),
+ (this.name = t.name || u.name),
+ (this.in = u.in),
+ (this.required = !!u.required);
+ let p = u.schema,
+ d = '';
+ if (
+ (!p &&
+ u.in &&
+ u.content &&
+ ((d = Object.keys(u.content)[0]), (p = u.content[d] && u.content[d].schema)),
+ (this.schema = new _c(e, p || {}, n, r, !1, i)),
+ (this.description =
+ void 0 === u.description ? this.schema.description || '' : u.description),
+ (this.example = u.example || this.schema.example),
+ void 0 !== u.examples || void 0 !== this.schema.examples)
+ ) {
+ const t = u.examples || this.schema.examples;
+ this.examples = ci(t) ? t : ei(t, (t, n) => new Pc(e, t, n, u.encoding));
+ }
+ d
+ ? (this.serializationMime = d)
+ : u.style
+ ? (this.style = u.style)
+ : this.in &&
+ (this.style =
+ null != (a = null == (o = $c[this.in]) ? void 0 : o.style) ? a : 'form'),
+ void 0 === u.explode && this.in
+ ? (this.explode = null == (l = null == (s = $c[this.in]) ? void 0 : s.explode) || l)
+ : (this.explode = !!u.explode),
+ (this.deprecated = void 0 === u.deprecated ? !!this.schema.deprecated : u.deprecated),
+ r.showExtensions && (this.extensions = ms(u, r.showExtensions)),
+ (this.const =
+ (null == (c = this.schema) ? void 0 : c.const) ||
+ (null == u ? void 0 : u.const) ||
+ '');
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ collapse() {
+ this.expanded = !1;
+ }
+ expand() {
+ this.expanded = !0;
+ }
+ }
+ function Lc(e) {
+ return e < 10 ? '0' + e : e;
+ }
+ function Dc(e, t) {
+ return t > e.length ? e.repeat(Math.trunc(t / e.length) + 1).substring(0, t) : e;
+ }
+ function Mc(...e) {
+ const t = e => e && 'object' == typeof e;
+ return e.reduce(
+ (e, n) => (
+ Object.keys(n || {}).forEach(r => {
+ const i = e[r],
+ o = n[r];
+ t(i) && t(o) ? (e[r] = Mc(i, o)) : (e[r] = o);
+ }),
+ e
+ ),
+ Array.isArray(e[e.length - 1]) ? [] : {},
+ );
+ }
+ function Fc(e) {
+ return { value: 'object' === e ? {} : 'array' === e ? [] : void 0 };
+ }
+ function zc(e, t) {
+ t && e.pop();
+ }
+ Ic([Ce], Nc.prototype, 'expanded', 2),
+ Ic([jt], Nc.prototype, 'toggle', 1),
+ Ic([jt], Nc.prototype, 'collapse', 1),
+ Ic([jt], Nc.prototype, 'expand', 1);
+ const Uc = {
+ multipleOf: 'number',
+ maximum: 'number',
+ exclusiveMaximum: 'number',
+ minimum: 'number',
+ exclusiveMinimum: 'number',
+ maxLength: 'string',
+ minLength: 'string',
+ pattern: 'string',
+ items: 'array',
+ maxItems: 'array',
+ minItems: 'array',
+ uniqueItems: 'array',
+ additionalItems: 'array',
+ maxProperties: 'object',
+ minProperties: 'object',
+ required: 'object',
+ additionalProperties: 'object',
+ properties: 'object',
+ patternProperties: 'object',
+ dependencies: 'object',
+ };
+ function Bc(e) {
+ if (void 0 !== e.type)
+ return Array.isArray(e.type) ? (0 === e.type.length ? null : e.type[0]) : e.type;
+ const t = Object.keys(Uc);
+ for (var n = 0; n < t.length; n++) {
+ let r = t[n],
+ i = Uc[r];
+ if (void 0 !== e[r]) return i;
+ }
+ return null;
+ }
+ let qc = {},
+ Vc = [];
+ function Wc(e) {
+ let t;
+ return (
+ void 0 !== e.const
+ ? (t = e.const)
+ : void 0 !== e.examples && e.examples.length
+ ? (t = e.examples[0])
+ : void 0 !== e.enum && e.enum.length
+ ? (t = e.enum[0])
+ : void 0 !== e.default && (t = e.default),
+ t
+ );
+ }
+ function Hc(e) {
+ const t = Wc(e);
+ if (void 0 !== t)
+ return { value: t, readOnly: e.readOnly, writeOnly: e.writeOnly, type: null };
+ }
+ function Yc(e, t, n, r) {
+ if (r) {
+ if (Vc.includes(e)) return Fc(Bc(e));
+ Vc.push(e);
+ }
+ if (r && r.depth > t.maxSampleDepth) return zc(Vc, r), Fc(Bc(e));
+ if (e.$ref) {
+ if (!n)
+ throw new Error(
+ 'Your schema contains $ref. You must provide full specification in the third parameter.',
+ );
+ let i = decodeURIComponent(e.$ref);
+ i.startsWith('#') && (i = i.substring(1));
+ const o = Ia().get(n, i);
+ let a;
+ return (
+ !0 !== qc[i] ? ((qc[i] = !0), (a = Yc(o, t, n, r)), (qc[i] = !1)) : (a = Fc(Bc(o))),
+ zc(Vc, r),
+ a
+ );
+ }
+ if (void 0 !== e.example)
+ return (
+ zc(Vc, r),
+ { value: e.example, readOnly: e.readOnly, writeOnly: e.writeOnly, type: e.type }
+ );
+ if (void 0 !== e.allOf)
+ return (
+ zc(Vc, r),
+ Hc(e) ||
+ (function (e, t, n, r, i) {
+ let o = Yc(e, n, r);
+ const a = [];
+ for (let e of t) {
+ const {
+ type: t,
+ readOnly: s,
+ writeOnly: l,
+ value: c,
+ } = Yc({ type: o.type, ...e }, n, r, i);
+ o.type &&
+ t &&
+ t !== o.type &&
+ (console.warn("allOf: schemas with different types can't be merged"),
+ (o.type = t)),
+ (o.type = o.type || t),
+ (o.readOnly = o.readOnly || s),
+ (o.writeOnly = o.writeOnly || l),
+ null != c && a.push(c);
+ }
+ if ('object' === o.type)
+ return (o.value = Mc(o.value || {}, ...a.filter(e => 'object' == typeof e))), o;
+ {
+ 'array' === o.type &&
+ (n.quiet ||
+ console.warn(
+ 'OpenAPI Sampler: found allOf with "array" type. Result may be incorrect',
+ ));
+ const e = a[a.length - 1];
+ return (o.value = null != e ? e : o.value), o;
+ }
+ })({ ...e, allOf: void 0 }, e.allOf, t, n, r)
+ );
+ if (e.oneOf && e.oneOf.length)
+ return (
+ e.anyOf &&
+ (t.quiet ||
+ console.warn(
+ 'oneOf and anyOf are not supported on the same level. Skipping anyOf',
+ )),
+ zc(Vc, r),
+ a(e, Object.assign({ readOnly: e.readOnly, writeOnly: e.writeOnly }, e.oneOf[0]))
+ );
+ if (e.anyOf && e.anyOf.length)
+ return (
+ zc(Vc, r),
+ a(e, Object.assign({ readOnly: e.readOnly, writeOnly: e.writeOnly }, e.anyOf[0]))
+ );
+ if (e.if && e.then) {
+ zc(Vc, r);
+ const { if: i, then: o, ...a } = e;
+ return Yc(Mc(a, i, o), t, n, r);
+ }
+ let i = Wc(e),
+ o = null;
+ if (void 0 === i) {
+ (i = null),
+ (o = e.type),
+ Array.isArray(o) && e.type.length > 0 && (o = e.type[0]),
+ o || (o = Bc(e));
+ let a = Zc[o];
+ a && (i = a(e, t, n, r));
+ }
+ return zc(Vc, r), { value: i, readOnly: e.readOnly, writeOnly: e.writeOnly, type: o };
+ function a(e, i) {
+ const o = Hc(e);
+ if (void 0 !== o) return o;
+ const a = Yc({ ...e, oneOf: void 0, anyOf: void 0 }, t, n, r),
+ s = Yc(i, t, n, r);
+ if ('object' == typeof a.value && 'object' == typeof s.value) {
+ const e = Mc(a.value, s.value);
+ return { ...s, value: e };
+ }
+ return s;
+ }
+ }
+ function Qc(e) {
+ let t = 0;
+ if ('boolean' == typeof e.exclusiveMinimum || 'boolean' == typeof e.exclusiveMaximum) {
+ if (e.maximum && e.minimum)
+ return (
+ (t = e.exclusiveMinimum ? Math.floor(e.minimum) + 1 : e.minimum),
+ ((e.exclusiveMaximum && t >= e.maximum) ||
+ (!e.exclusiveMaximum && t > e.maximum)) &&
+ (t = (e.maximum + e.minimum) / 2),
+ t
+ );
+ if (e.minimum) return e.exclusiveMinimum ? Math.floor(e.minimum) + 1 : e.minimum;
+ if (e.maximum)
+ return e.exclusiveMaximum
+ ? e.maximum > 0
+ ? 0
+ : Math.floor(e.maximum) - 1
+ : e.maximum > 0
+ ? 0
+ : e.maximum;
+ } else {
+ if (e.minimum) return e.minimum;
+ e.exclusiveMinimum
+ ? ((t = Math.floor(e.exclusiveMinimum) + 1),
+ t === e.exclusiveMaximum && (t = (t + Math.floor(e.exclusiveMaximum) - 1) / 2))
+ : e.exclusiveMaximum
+ ? (t = Math.floor(e.exclusiveMaximum) - 1)
+ : e.maximum && (t = e.maximum);
+ }
+ return t;
+ }
+ function Gc({ min: e, max: t, omitTime: n, omitDate: r }) {
+ let i = (function (e, t, n, r) {
+ var i = n
+ ? ''
+ : e.getUTCFullYear() + '-' + Lc(e.getUTCMonth() + 1) + '-' + Lc(e.getUTCDate());
+ return (
+ t ||
+ (i +=
+ 'T' +
+ Lc(e.getUTCHours()) +
+ ':' +
+ Lc(e.getUTCMinutes()) +
+ ':' +
+ Lc(e.getUTCSeconds()) +
+ 'Z'),
+ i
+ );
+ })(new Date('2019-08-24T14:15:22.123Z'), n, r);
+ return (
+ i.length < e &&
+ console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),
+ t &&
+ i.length > t &&
+ console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),
+ i
+ );
+ }
+ function Xc(e, t) {
+ let n = Dc('string', e);
+ return t && n.length > t && (n = n.substring(0, t)), n;
+ }
+ const Kc = {
+ email: function () {
+ return 'user@example.com';
+ },
+ 'idn-email': function () {
+ return 'пошта@укр.нет';
+ },
+ password: function (e, t) {
+ let n = 'pa$$word';
+ return (
+ e > n.length &&
+ ((n += '_'),
+ (n += Dc('qwerty!@#$%^123456', e - n.length).substring(0, e - n.length))),
+ n
+ );
+ },
+ 'date-time': function (e, t) {
+ return Gc({ min: e, max: t, omitTime: !1, omitDate: !1 });
+ },
+ date: function (e, t) {
+ return Gc({ min: e, max: t, omitTime: !0, omitDate: !1 });
+ },
+ time: function (e, t) {
+ return Gc({ min: e, max: t, omitTime: !1, omitDate: !0 }).slice(1);
+ },
+ ipv4: function () {
+ return '192.168.0.1';
+ },
+ ipv6: function () {
+ return '2001:0db8:85a3:0000:0000:8a2e:0370:7334';
+ },
+ hostname: function () {
+ return 'example.com';
+ },
+ 'idn-hostname': function () {
+ return 'приклад.укр';
+ },
+ iri: function () {
+ return 'http://example.com/entity/1';
+ },
+ 'iri-reference': function () {
+ return '/entity/1';
+ },
+ uri: function () {
+ return 'http://example.com';
+ },
+ 'uri-reference': function () {
+ return '../dictionary';
+ },
+ 'uri-template': function () {
+ return 'http://example.com/{endpoint}';
+ },
+ uuid: function (e, t, n) {
+ return (
+ (r = (function (e) {
+ var t = 0;
+ if (0 == e.length) return t;
+ for (var n = 0; n < e.length; n++) (t = (t << 5) - t + e.charCodeAt(n)), (t &= t);
+ return t;
+ })(n || 'id')),
+ (i = (function (e, t, n, r) {
+ return function () {
+ var i = ((e |= 0) - (((t |= 0) << 27) | (t >>> 5))) | 0;
+ return (
+ (e = t ^ (((n |= 0) << 17) | (n >>> 15))),
+ (t = (n + (r |= 0)) | 0),
+ (n = (r + i) | 0),
+ ((r = (e + i) | 0) >>> 0) / 4294967296
+ );
+ };
+ })(r, r, r, r)),
+ 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, e => {
+ var t = (16 * i()) % 16 | 0;
+ return ('x' == e ? t : (3 & t) | 8).toString(16);
+ })
+ );
+ var r, i;
+ },
+ default: Xc,
+ 'json-pointer': function () {
+ return '/json/pointer';
+ },
+ 'relative-json-pointer': function () {
+ return '1/relative/json/pointer';
+ },
+ regex: function () {
+ return '/regex/';
+ },
+ };
+ var Zc = {};
+ const Jc = { skipReadOnly: !1, maxSampleDepth: 15 };
+ function eu(e, t, n) {
+ let r = Object.assign({}, Jc, t);
+ return (qc = {}), (Vc = []), Yc(e, r, n).value;
+ }
+ function tu(e, t) {
+ Zc[e] = t;
+ }
+ tu('array', function (e, t = {}, n, r) {
+ const i = (r && r.depth) || 1;
+ let o = Math.min(null != e.maxItems ? e.maxItems : 1 / 0, e.minItems || 1);
+ const a = e.prefixItems || e.items || e.contains;
+ Array.isArray(a) && (o = Math.max(o, a.length));
+ let s = [];
+ if (!a) return s;
+ for (let e = 0; e < o; e++) {
+ let r = ((l = e), Array.isArray(a) ? a[l] || {} : a || {}),
+ { value: o } = Yc(r, t, n, { depth: i + 1 });
+ s.push(o);
+ }
+ var l;
+ return s;
+ }),
+ tu('boolean', function (e) {
+ return !0;
+ }),
+ tu('integer', Qc),
+ tu('number', Qc),
+ tu('object', function (e, t = {}, n, r) {
+ let i = {};
+ const o = (r && r.depth) || 1;
+ if (e && 'object' == typeof e.properties) {
+ let r = (Array.isArray(e.required) ? e.required : []).reduce(
+ (e, t) => ((e[t] = !0), e),
+ {},
+ );
+ Object.keys(e.properties).forEach(a => {
+ if (t.skipNonRequired && !r.hasOwnProperty(a)) return;
+ const s = Yc(e.properties[a], t, n, { propertyName: a, depth: o + 1 });
+ (t.skipReadOnly && s.readOnly) ||
+ (t.skipWriteOnly && s.writeOnly) ||
+ (i[a] = s.value);
+ });
+ }
+ if (e && 'object' == typeof e.additionalProperties) {
+ const r = e.additionalProperties['x-additionalPropertiesName'] || 'property';
+ (i[`${String(r)}1`] = Yc(e.additionalProperties, t, n, { depth: o + 1 }).value),
+ (i[`${String(r)}2`] = Yc(e.additionalProperties, t, n, { depth: o + 1 }).value);
+ }
+ return i;
+ }),
+ tu('string', function (e, t, n, r) {
+ let i = e.format || 'default',
+ o = Kc[i] || Xc,
+ a = r && r.propertyName;
+ return o(0 | e.minLength, e.maxLength, a);
+ });
+ class nu {
+ constructor(e, t, n, r, i) {
+ (this.name = t),
+ (this.isRequestType = n),
+ (this.schema = r.schema && new _c(e, r.schema, '', i)),
+ (this.onlyRequiredInSamples = i.onlyRequiredInSamples),
+ (this.generatedPayloadSamplesMaxDepth = i.generatedPayloadSamplesMaxDepth),
+ void 0 !== r.examples
+ ? (this.examples = ei(r.examples, n => new Pc(e, n, t, r.encoding)))
+ : void 0 !== r.example
+ ? (this.examples = {
+ default: new Pc(e, { value: e.deref(r.example).resolved }, t, r.encoding),
+ })
+ : Ja(t) && this.generateExample(e, r);
+ }
+ generateExample(e, t) {
+ const n = {
+ skipReadOnly: this.isRequestType,
+ skipWriteOnly: !this.isRequestType,
+ skipNonRequired: this.isRequestType && this.onlyRequiredInSamples,
+ maxSampleDepth: this.generatedPayloadSamplesMaxDepth,
+ };
+ if (this.schema && this.schema.oneOf) {
+ this.examples = {};
+ for (const r of this.schema.oneOf) {
+ const i = eu(r.rawSchema, n, e.spec);
+ this.schema.discriminatorProp &&
+ 'object' == typeof i &&
+ i &&
+ (i[this.schema.discriminatorProp] = r.title),
+ (this.examples[r.title] = new Pc(e, { value: i }, this.name, t.encoding));
+ }
+ } else
+ this.schema &&
+ (this.examples = {
+ default: new Pc(e, { value: eu(t.schema, n, e.spec) }, this.name, t.encoding),
+ });
+ }
+ }
+ var ru = Object.defineProperty,
+ iu = Object.getOwnPropertyDescriptor,
+ ou = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? iu(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && ru(t, n, o), o;
+ };
+ class au {
+ constructor(e, t, n, r) {
+ (this.isRequestType = n),
+ (this.activeMimeIdx = 0),
+ nn(this),
+ r.unstable_ignoreMimeParameters &&
+ (t = (function (e) {
+ const t = {};
+ return (
+ Object.keys(e).forEach(n => {
+ const r = e[n],
+ i = n.split(';')[0].trim();
+ t[i] ? (t[i] = Wa(Wa({}, t[i]), r)) : (t[i] = r);
+ }),
+ t
+ );
+ })(t)),
+ (this.mediaTypes = Object.keys(t).map(i => {
+ const o = t[i];
+ return new nu(e, i, n, o, r);
+ }));
+ }
+ activate(e) {
+ this.activeMimeIdx = e;
+ }
+ get active() {
+ return this.mediaTypes[this.activeMimeIdx];
+ }
+ get hasSample() {
+ return this.mediaTypes.filter(e => !!e.examples).length > 0;
+ }
+ }
+ ou([Ce], au.prototype, 'activeMimeIdx', 2),
+ ou([jt], au.prototype, 'activate', 1),
+ ou([Ie], au.prototype, 'active', 1);
+ class su {
+ constructor({ parser: e, infoOrRef: t, options: n, isEvent: r }) {
+ const i = !r,
+ { resolved: o } = e.deref(t);
+ (this.description = o.description || ''), (this.required = o.required);
+ const a = (function (e) {
+ let t = e.content;
+ const n = e['x-examples'],
+ r = e['x-example'];
+ if (n) {
+ t = Wa({}, t);
+ for (const e of Object.keys(n)) {
+ const r = n[e];
+ t[e] = Ha(Wa({}, t[e]), { examples: r });
+ }
+ } else if (r) {
+ t = Wa({}, t);
+ for (const e of Object.keys(r)) {
+ const n = r[e];
+ t[e] = Ha(Wa({}, t[e]), { example: n });
+ }
+ }
+ return t;
+ })(o);
+ void 0 !== a && (this.content = new au(e, a, i, n));
+ }
+ }
+ var lu = Object.defineProperty,
+ cu = Object.defineProperties,
+ uu = Object.getOwnPropertyDescriptor,
+ pu = Object.getOwnPropertyDescriptors,
+ du = Object.getOwnPropertySymbols,
+ fu = Object.prototype.hasOwnProperty,
+ hu = Object.prototype.propertyIsEnumerable,
+ mu = (e, t, n) =>
+ t in e
+ ? lu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ gu = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? uu(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && lu(t, n, o), o;
+ };
+ class yu {
+ constructor({
+ parser: e,
+ code: t,
+ defaultAsError: n,
+ infoOrRef: r,
+ options: i,
+ isEvent: o,
+ }) {
+ (this.expanded = !1),
+ (this.headers = []),
+ nn(this),
+ (this.expanded = 'all' === i.expandResponses || i.expandResponses[t]);
+ const { resolved: a } = e.deref(r);
+ (this.code = t),
+ void 0 !== a.content && (this.content = new au(e, a.content, o, i)),
+ void 0 !== a['x-summary']
+ ? ((this.summary = a['x-summary']), (this.description = a.description || ''))
+ : ((this.summary = a.description || ''), (this.description = '')),
+ (this.type = Qa(t, n));
+ const s = a.headers;
+ void 0 !== s &&
+ (this.headers = Object.keys(s).map(t => {
+ const n = s[t];
+ return new Nc(
+ e,
+ ((e, t) => cu(e, pu(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {})) fu.call(t, n) && mu(e, n, t[n]);
+ if (du) for (var n of du(t)) hu.call(t, n) && mu(e, n, t[n]);
+ return e;
+ })({}, n),
+ { name: t },
+ ),
+ '',
+ i,
+ );
+ })),
+ i.showExtensions && (this.extensions = ms(a, i.showExtensions));
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ }
+ gu([Ce], yu.prototype, 'expanded', 2), gu([jt], yu.prototype, 'toggle', 1);
+ var vu = Object.defineProperty,
+ bu = Object.getOwnPropertyDescriptor,
+ xu = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? bu(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && vu(t, n, o), o;
+ };
+ function wu(e) {
+ return 'payload' === e.lang && e.requestBodyContent;
+ }
+ let ku = !1;
+ class Ou {
+ constructor(e, t, n, r, i = !1) {
+ var o;
+ (this.parser = e),
+ (this.operationSpec = t),
+ (this.options = r),
+ (this.type = 'operation'),
+ (this.items = []),
+ (this.ready = !0),
+ (this.active = !1),
+ (this.expanded = !1),
+ nn(this),
+ (this.pointer = t.pointer),
+ (this.description = t.description),
+ (this.parent = n),
+ (this.externalDocs = t.externalDocs),
+ (this.deprecated = !!t.deprecated),
+ (this.httpVerb = t.httpVerb),
+ (this.deprecated = !!t.deprecated),
+ (this.operationId = t.operationId),
+ (this.path = t.pathName),
+ (this.isCallback = i),
+ (this.isWebhook = t.isWebhook),
+ (this.isEvent = this.isCallback || this.isWebhook),
+ (this.name =
+ (o = t).summary ||
+ o.operationId ||
+ (o.description && o.description.substring(0, 50)) ||
+ o.pathName ||
+ ''),
+ (this.sidebarLabel =
+ r.sideNavStyle === fi.IdOnly
+ ? this.operationId || this.path
+ : r.sideNavStyle === fi.PathOnly
+ ? this.path
+ : this.name),
+ this.isCallback
+ ? ((this.security = (t.security || []).map(t => new Bl(t, e))),
+ (this.servers = ds('', t.servers || t.pathServers || [])))
+ : ((this.operationHash = t.operationId && 'operation/' + t.operationId),
+ (this.id =
+ void 0 !== t.operationId
+ ? (n ? n.id + '/' : '') + this.operationHash
+ : void 0 !== n
+ ? n.id + this.pointer
+ : this.pointer),
+ (this.security = (t.security || e.spec.security || []).map(t => new Bl(t, e))),
+ (this.servers = ds(
+ e.specUrl,
+ t.servers || t.pathServers || e.spec.servers || [],
+ ))),
+ r.showExtensions && (this.extensions = ms(t, r.showExtensions));
+ }
+ activate() {
+ this.active = !0;
+ }
+ deactivate() {
+ this.active = !1;
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ expand() {
+ this.parent && this.parent.expand();
+ }
+ collapse() {}
+ get requestBody() {
+ return (
+ this.operationSpec.requestBody &&
+ new su({
+ parser: this.parser,
+ infoOrRef: this.operationSpec.requestBody,
+ options: this.options,
+ isEvent: this.isEvent,
+ })
+ );
+ }
+ get codeSamples() {
+ const { payloadSampleIdx: e, hideRequestPayloadSample: t } = this.options;
+ let n =
+ this.operationSpec['x-codeSamples'] || this.operationSpec['x-code-samples'] || [];
+ this.operationSpec['x-code-samples'] &&
+ !ku &&
+ ((ku = !0),
+ console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead'));
+ const r = this.requestBody && this.requestBody.content;
+ if (r && r.hasSample && !t) {
+ const t = Math.min(n.length, e);
+ n = [
+ ...n.slice(0, t),
+ { lang: 'payload', label: 'Payload', source: '', requestBodyContent: r },
+ ...n.slice(t),
+ ];
+ }
+ return n;
+ }
+ get parameters() {
+ const e = (function (e, t = [], n = []) {
+ const r = {};
+ return (
+ n.forEach(t => {
+ ({ resolved: t } = e.deref(t)), (r[t.name + '_' + t.in] = !0);
+ }),
+ (t = t.filter(
+ t => (({ resolved: t } = e.deref(t)), !r[t.name + '_' + t.in]),
+ )).concat(n)
+ );
+ })(this.parser, this.operationSpec.pathParameters, this.operationSpec.parameters).map(
+ e => new Nc(this.parser, e, this.pointer, this.options),
+ );
+ return this.options.sortPropsAlphabetically
+ ? ps(e, 'name')
+ : this.options.requiredPropsFirst
+ ? us(e)
+ : e;
+ }
+ get responses() {
+ let e = !1;
+ return Object.keys(this.operationSpec.responses || [])
+ .filter(t => {
+ return (
+ 'default' === t ||
+ ('success' === Qa(t) && (e = !0), 'default' === (n = t) || ni(n) || Ya(n))
+ );
+ var n;
+ })
+ .map(
+ t =>
+ new yu({
+ parser: this.parser,
+ code: t,
+ defaultAsError: e,
+ infoOrRef: this.operationSpec.responses[t],
+ options: this.options,
+ isEvent: this.isEvent,
+ }),
+ );
+ }
+ get callbacks() {
+ return Object.keys(this.operationSpec.callbacks || []).map(
+ e =>
+ new ec(this.parser, e, this.operationSpec.callbacks[e], this.pointer, this.options),
+ );
+ }
+ }
+ xu([Ce], Ou.prototype, 'ready', 2),
+ xu([Ce], Ou.prototype, 'active', 2),
+ xu([Ce], Ou.prototype, 'expanded', 2),
+ xu([jt], Ou.prototype, 'activate', 1),
+ xu([jt], Ou.prototype, 'deactivate', 1),
+ xu([jt], Ou.prototype, 'toggle', 1),
+ xu([Cs], Ou.prototype, 'requestBody', 1),
+ xu([Cs], Ou.prototype, 'codeSamples', 1),
+ xu([Cs], Ou.prototype, 'parameters', 1),
+ xu([Cs], Ou.prototype, 'responses', 1),
+ xu([Cs], Ou.prototype, 'callbacks', 1);
+ const Su = ha.div`
+ width: calc(100% - ${e => e.theme.rightPanel.width});
+ padding: 0 ${e => e.theme.spacing.sectionHorizontal}px;
+
+ ${({ $compact: e, theme: t }) => fa.lessThan('medium', !0)`
+ width: 100%;
+ padding: ${`${e ? 0 : t.spacing.sectionVertical}px ${t.spacing.sectionHorizontal}px`};
+ `};
+`,
+ Eu = ha.div.attrs(e => ({ [vf]: e.id }))`
+ padding: ${e => e.theme.spacing.sectionVertical}px 0;
+
+ &:last-child {
+ min-height: calc(100vh + 1px);
+ }
+
+ & > &:last-child {
+ min-height: initial;
+ }
+
+ ${fa.lessThan('medium', !0)`
+ padding: 0;
+ `}
+ ${({ $underlined: e }) =>
+ e
+ ? "\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n "
+ : ''}
+`,
+ _u = ha.div`
+ width: ${e => e.theme.rightPanel.width};
+ color: ${({ theme: e }) => e.rightPanel.textColor};
+ background-color: ${e => e.theme.rightPanel.backgroundColor};
+ padding: 0 ${e => e.theme.spacing.sectionHorizontal}px;
+
+ ${fa.lessThan('medium', !0)`
+ width: 100%;
+ padding: ${e => `${e.theme.spacing.sectionVertical}px ${e.theme.spacing.sectionHorizontal}px`};
+ `};
+`,
+ Au = ha(_u)`
+ background-color: ${e => e.theme.rightPanel.backgroundColor};
+`,
+ ju = ha.div`
+ display: flex;
+ width: 100%;
+ padding: 0;
+
+ ${fa.lessThan('medium', !0)`
+ flex-direction: column;
+ `};
+`,
+ Cu = { 1: '1.85714em', 2: '1.57143em', 3: '1.27em' },
+ Pu = e => ca`
+ font-family: ${({ theme: e }) => e.typography.headings.fontFamily};
+ font-weight: ${({ theme: e }) => e.typography.headings.fontWeight};
+ font-size: ${Cu[e]};
+ line-height: ${({ theme: e }) => e.typography.headings.lineHeight};
+`,
+ Tu = ha.h1`
+ ${Pu(1)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+
+ ${ma('H1')};
+`,
+ Ru = ha.h2`
+ ${Pu(2)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+ margin: 0 0 20px;
+
+ ${ma('H2')};
+`,
+ Iu =
+ (ha.h2`
+ ${Pu(3)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+
+ ${ma('H3')};
+`,
+ ha.h3`
+ color: ${({ theme: e }) => e.rightPanel.textColor};
+
+ ${ma('RightPanelHeader')};
+`),
+ $u = ha.h5`
+ border-bottom: 1px solid rgba(38, 50, 56, 0.3);
+ margin: 1em 0 1em 0;
+ color: rgba(38, 50, 56, 0.5);
+ font-weight: normal;
+ text-transform: uppercase;
+ font-size: 0.929em;
+ line-height: 20px;
+
+ ${ma('UnderlinedHeader')};
+`,
+ Nu = (0, n.createContext)(void 0),
+ { Provider: Lu, Consumer: Du } = Nu;
+ function Mu(e) {
+ const { spec: t, specUrl: i, options: o, onLoaded: a, children: s } = e,
+ [l, c] = n.useState(null),
+ [u, p] = n.useState(null);
+ if (u) throw u;
+ n.useEffect(() => {
+ !(function () {
+ return (
+ (e = this),
+ null,
+ (n = function* () {
+ if (t || i) {
+ c(null);
+ try {
+ const e = yield (function (e) {
+ return Ca(this, null, function* () {
+ const t = new Aa.Config({}),
+ n = { config: t, base: Qr ? window.location.href : process.cwd() };
+ Qr && (t.resolve.http.customFetch = r.g.fetch),
+ 'object' == typeof e && null !== e
+ ? (n.doc = { source: { absoluteRef: '' }, parsed: e })
+ : (n.ref = e);
+ const {
+ bundle: { parsed: i },
+ } = yield (0, _a.bundle)(n);
+ return void 0 !== i.swagger
+ ? ((o = i),
+ console.warn(
+ '[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0',
+ ),
+ new Promise((e, t) =>
+ (0, ja.convertObj)(
+ o,
+ { patch: !0, warnOnly: !0, text: '{}', anchors: !0 },
+ (n, r) => {
+ if (n) return t(n);
+ e(r && r.openapi);
+ },
+ ),
+ ))
+ : i;
+ var o;
+ });
+ })(t || i);
+ c(e);
+ } catch (e) {
+ throw (a && a(e), p(e), e);
+ }
+ }
+ }),
+ new Promise((t, r) => {
+ var i = e => {
+ try {
+ a(n.next(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ o = e => {
+ try {
+ a(n.throw(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ a = e => (e.done ? t(e.value) : Promise.resolve(e.value).then(i, o));
+ a((n = n.apply(e, null)).next());
+ })
+ );
+ var e, n;
+ })();
+ }, [t, i]);
+ const d = n.useMemo(() => {
+ if (!l) return null;
+ try {
+ return new uy(l, i, o);
+ } catch (e) {
+ throw (a && a(e), e);
+ }
+ }, [l, i, o]);
+ return (
+ n.useEffect(() => {
+ d && a && a();
+ }, [d, a]),
+ s({ loading: !d, store: d })
+ );
+ }
+ const Fu = e => ca`
+ ${e} {
+ cursor: pointer;
+ margin-left: -20px;
+ padding: 0;
+ line-height: 1;
+ width: 20px;
+ display: inline-block;
+ outline: 0;
+ }
+ ${e}:before {
+ content: '';
+ width: 15px;
+ height: 15px;
+ background-size: contain;
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');
+ opacity: 0.5;
+ visibility: hidden;
+ display: inline-block;
+ vertical-align: middle;
+ }
+
+ h1:hover > ${e}::before, h2:hover > ${e}::before, ${e}:hover::before {
+ visibility: visible;
+ }
+`,
+ zu = ha(function (e) {
+ const t = n.useContext(Nu),
+ r = n.useCallback(
+ n => {
+ t &&
+ (function (e, t, n) {
+ t.defaultPrevented ||
+ 0 !== t.button ||
+ (e => !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey))(t) ||
+ (t.preventDefault(), e.replace(encodeURI(n)));
+ })(t.menu.history, n, e.to);
+ },
+ [t, e.to],
+ );
+ return t
+ ? n.createElement(
+ 'a',
+ {
+ className: e.className,
+ href: t.menu.history.linkForId(e.to),
+ onClick: r,
+ 'aria-label': e.to,
+ },
+ e.children,
+ )
+ : null;
+ })`
+ ${Fu('&')};
+`;
+ function Uu(e) {
+ return n.createElement(zu, { to: e.to });
+ }
+ const Bu = { left: '90deg', right: '-90deg', up: '-180deg', down: '0' },
+ qu = ha(e =>
+ n.createElement(
+ 'svg',
+ {
+ className: e.className,
+ style: e.style,
+ version: '1.1',
+ viewBox: '0 0 24 24',
+ x: '0',
+ xmlns: 'http://www.w3.org/2000/svg',
+ y: '0',
+ 'aria-hidden': 'true',
+ },
+ n.createElement('polygon', {
+ points: '17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 ',
+ }),
+ ),
+ )`
+ height: ${e => e.size || '18px'};
+ width: ${e => e.size || '18px'};
+ min-width: ${e => e.size || '18px'};
+ vertical-align: middle;
+ float: ${e => e.float || ''};
+ transition: transform 0.2s ease-out;
+ transform: rotateZ(${e => Bu[e.direction || 'down']});
+
+ polygon {
+ fill: ${({ color: e, theme: t }) =>
+ (e && t.colors.responses[e] && t.colors.responses[e].color) || e};
+ }
+`,
+ Vu = ha.span`
+ display: inline-block;
+ padding: 2px 8px;
+ margin: 0;
+ background-color: ${e => e.theme.colors[e.type].main};
+ color: ${e => e.theme.colors[e.type].contrastText};
+ font-size: ${e => e.theme.typography.code.fontSize};
+ vertical-align: middle;
+ line-height: 1.6;
+ border-radius: 4px;
+ font-weight: ${({ theme: e }) => e.typography.fontWeightBold};
+ font-size: 12px;
+ + span[type] {
+ margin-left: 4px;
+ }
+`,
+ Wu = ca`
+ text-decoration: line-through;
+ color: #707070;
+`,
+ Hu = ha.caption`
+ text-align: right;
+ font-size: 0.9em;
+ font-weight: normal;
+ color: ${e => e.theme.colors.text.secondary};
+`,
+ Yu = ha.td`
+ border-left: 1px solid ${e => e.theme.schema.linesColor};
+ box-sizing: border-box;
+ position: relative;
+ padding: 10px 10px 10px 0;
+
+ ${fa.lessThan('small')`
+ display: block;
+ overflow: hidden;
+ `}
+
+ tr:first-of-type > &,
+ tr.last > & {
+ border-left-width: 0;
+ background-position: top left;
+ background-repeat: no-repeat;
+ background-size: 1px 100%;
+ }
+
+ tr:first-of-type > & {
+ background-image: linear-gradient(
+ to bottom,
+ transparent 0%,
+ transparent 22px,
+ ${e => e.theme.schema.linesColor} 22px,
+ ${e => e.theme.schema.linesColor} 100%
+ );
+ }
+
+ tr.last > & {
+ background-image: linear-gradient(
+ to bottom,
+ ${e => e.theme.schema.linesColor} 0%,
+ ${e => e.theme.schema.linesColor} 22px,
+ transparent 22px,
+ transparent 100%
+ );
+ }
+
+ tr.last + tr > & {
+ border-left-color: transparent;
+ }
+
+ tr.last:first-child > & {
+ background: none;
+ border-left-color: transparent;
+ }
+`,
+ Qu = ha(Yu)`
+ padding: 0;
+`,
+ Gu = ha(Yu)`
+ vertical-align: top;
+ line-height: 20px;
+ white-space: nowrap;
+ font-size: 13px;
+ font-family: ${e => e.theme.typography.code.fontFamily};
+
+ &.deprecated {
+ ${Wu};
+ }
+
+ ${({ kind: e }) =>
+ 'patternProperties' === e &&
+ ca`
+ > span.property-name {
+ display: inline-table;
+ white-space: break-spaces;
+ margin-right: 20px;
+
+ ::before,
+ ::after {
+ content: '/';
+ filter: opacity(0.2);
+ }
+ }
+ `}
+
+ ${({ kind: e = '' }) =>
+ ['field', 'additionalProperties', 'patternProperties'].includes(e) ? '' : 'font-style: italic'};
+
+ ${ma('PropertyNameCell')};
+`,
+ Xu = ha.td`
+ border-bottom: 1px solid #9fb4be;
+ padding: 10px 0;
+ width: ${e => e.theme.schema.defaultDetailsWidth};
+ box-sizing: border-box;
+
+ tr.expanded & {
+ border-bottom: none;
+ }
+
+ ${fa.lessThan('small')`
+ padding: 0 20px;
+ border-bottom: none;
+ border-left: 1px solid ${e => e.theme.schema.linesColor};
+
+ tr.last > & {
+ border-left: none;
+ }
+ `}
+
+ ${ma('PropertyDetailsCell')};
+`,
+ Ku = ha.span`
+ color: ${e => e.theme.schema.linesColor};
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ margin-right: 10px;
+
+ &::before {
+ content: '';
+ display: inline-block;
+ vertical-align: middle;
+ width: 10px;
+ height: 1px;
+ background: ${e => e.theme.schema.linesColor};
+ }
+
+ &::after {
+ content: '';
+ display: inline-block;
+ vertical-align: middle;
+ width: 1px;
+ background: ${e => e.theme.schema.linesColor};
+ height: 7px;
+ }
+`,
+ Zu = ha.div`
+ padding: ${({ theme: e }) => e.schema.nestingSpacing};
+`,
+ Ju = ha.table`
+ border-collapse: separate;
+ border-radius: 3px;
+ font-size: ${e => e.theme.typography.fontSize};
+
+ border-spacing: 0;
+ width: 100%;
+
+ > tr {
+ vertical-align: middle;
+ }
+
+ ${fa.lessThan('small')`
+ display: block;
+ > tr, > tbody > tr {
+ display: block;
+ }
+ `}
+
+ ${fa.lessThan('small', !1, ' and (-ms-high-contrast:none)')`
+ td {
+ float: left;
+ width: 100%;
+ }
+ `}
+
+ &
+ ${Zu},
+ &
+ ${Zu}
+ ${Zu}
+ ${Zu},
+ &
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu} {
+ margin: ${({ theme: e }) => e.schema.nestingSpacing};
+ margin-right: 0;
+ background: ${({ theme: e }) => e.schema.nestedBackground};
+ }
+
+ &
+ ${Zu}
+ ${Zu},
+ &
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu},
+ &
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu}
+ ${Zu} {
+ background: #ffffff;
+ }
+`,
+ ep = ha.div`
+ margin: 0 0 3px 0;
+ display: inline-block;
+`,
+ tp = ha.span`
+ font-size: 0.9em;
+ margin-right: 10px;
+ color: ${e => e.theme.colors.primary.main};
+ font-family: ${e => e.theme.typography.headings.fontFamily};
+}
+`,
+ np = ha.button`
+ display: inline-block;
+ margin-right: 10px;
+ margin-bottom: 5px;
+ font-size: 0.8em;
+ cursor: pointer;
+ border: 1px solid ${e => e.theme.colors.primary.main};
+ padding: 2px 10px;
+ line-height: 1.5em;
+ outline: none;
+ &:focus {
+ box-shadow: 0 0 0 1px ${e => e.theme.colors.primary.main};
+ }
+
+ ${({ $deprecated: e }) => (e && Wu) || ''};
+
+ ${e =>
+ e.$active
+ ? `\n color: white;\n background-color: ${
+ e.theme.colors.primary.main
+ };\n &:focus {\n box-shadow: none;\n background-color: ${Nr(
+ 0.15,
+ e.theme.colors.primary.main,
+ )};\n }\n `
+ : `\n color: ${e.theme.colors.primary.main};\n background-color: white;\n `}
+`,
+ rp = ha.div`
+ font-size: 0.9em;
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ &::after {
+ content: ' [';
+ }
+`,
+ ip = ha.div`
+ font-size: 0.9em;
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ &::after {
+ content: ']';
+ }
+`;
+ function op(e) {
+ return function (t) {
+ return !!t.type && t.type.tabsRole === e;
+ };
+ }
+ var ap = op('Tab'),
+ sp = op('TabList'),
+ lp = op('TabPanel');
+ function cp() {
+ return (
+ (cp =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ cp.apply(this, arguments)
+ );
+ }
+ function up(e, t) {
+ return n.Children.map(e, function (e) {
+ return null === e
+ ? null
+ : (function (e) {
+ return ap(e) || sp(e) || lp(e);
+ })(e)
+ ? t(e)
+ : e.props && e.props.children && 'object' == typeof e.props.children
+ ? (0, n.cloneElement)(e, cp({}, e.props, { children: up(e.props.children, t) }))
+ : e;
+ });
+ }
+ function pp(e, t) {
+ return n.Children.forEach(e, function (e) {
+ null !== e &&
+ (ap(e) || lp(e)
+ ? t(e)
+ : e.props &&
+ e.props.children &&
+ 'object' == typeof e.props.children &&
+ (sp(e) && t(e), pp(e.props.children, t)));
+ });
+ }
+ function dp(e) {
+ var t,
+ n,
+ r = '';
+ if ('string' == typeof e || 'number' == typeof e) r += e;
+ else if ('object' == typeof e)
+ if (Array.isArray(e))
+ for (t = 0; t < e.length; t++) e[t] && (n = dp(e[t])) && (r && (r += ' '), (r += n));
+ else for (t in e) e[t] && (r && (r += ' '), (r += t));
+ return r;
+ }
+ function fp() {
+ for (var e, t, n = 0, r = ''; n < arguments.length; )
+ (e = arguments[n++]) && (t = dp(e)) && (r && (r += ' '), (r += t));
+ return r;
+ }
+ var hp = 0;
+ function mp() {
+ return 'react-tabs-' + hp++;
+ }
+ function gp(e) {
+ var t = 0;
+ return (
+ pp(e, function (e) {
+ ap(e) && t++;
+ }),
+ t
+ );
+ }
+ var yp,
+ vp = [
+ 'children',
+ 'className',
+ 'disabledTabClassName',
+ 'domRef',
+ 'focus',
+ 'forceRenderTabPanel',
+ 'onSelect',
+ 'selectedIndex',
+ 'selectedTabClassName',
+ 'selectedTabPanelClassName',
+ 'environment',
+ 'disableUpDownKeys',
+ ];
+ function bp() {
+ return (
+ (bp =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ bp.apply(this, arguments)
+ );
+ }
+ function xp(e) {
+ return e && 'getAttribute' in e;
+ }
+ function wp(e) {
+ return xp(e) && e.getAttribute('data-rttab');
+ }
+ function kp(e) {
+ return xp(e) && 'true' === e.getAttribute('aria-disabled');
+ }
+ var Op = function (e) {
+ var t = (0, n.useRef)([]),
+ r = (0, n.useRef)([]),
+ i = (0, n.useRef)([]),
+ o = (0, n.useRef)();
+ function a(t, n) {
+ t < 0 || t >= c() || (0, e.onSelect)(t, e.selectedIndex, n);
+ }
+ function s(e) {
+ for (var t = c(), n = e + 1; n < t; n++) if (!kp(u(n))) return n;
+ for (var r = 0; r < e; r++) if (!kp(u(r))) return r;
+ return e;
+ }
+ function l(e) {
+ for (var t = e; t--; ) if (!kp(u(t))) return t;
+ for (t = c(); t-- > e; ) if (!kp(u(t))) return t;
+ return e;
+ }
+ function c() {
+ return gp(e.children);
+ }
+ function u(e) {
+ return t.current['tabs-' + e];
+ }
+ function p(e) {
+ var t = e.target;
+ do {
+ if (d(t)) {
+ if (kp(t)) return;
+ return void a([].slice.call(t.parentNode.children).filter(wp).indexOf(t), e);
+ }
+ } while (null != (t = t.parentNode));
+ }
+ function d(e) {
+ if (!wp(e)) return !1;
+ var t = e.parentElement;
+ do {
+ if (t === o.current) return !0;
+ if (t.getAttribute('data-rttabs')) break;
+ t = t.parentElement;
+ } while (t);
+ return !1;
+ }
+ e.children;
+ var f = e.className,
+ h = (e.disabledTabClassName, e.domRef),
+ m =
+ (e.focus,
+ e.forceRenderTabPanel,
+ e.onSelect,
+ e.selectedIndex,
+ e.selectedTabClassName,
+ e.selectedTabPanelClassName,
+ e.environment,
+ e.disableUpDownKeys,
+ (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ i = {},
+ o = Object.keys(e);
+ for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]);
+ return i;
+ })(e, vp));
+ return n.createElement(
+ 'div',
+ bp({}, m, {
+ className: fp(f),
+ onClick: p,
+ onKeyDown: function (t) {
+ var n = e.direction,
+ r = e.disableUpDownKeys;
+ if (d(t.target)) {
+ var i = e.selectedIndex,
+ o = !1,
+ f = !1;
+ ('Space' !== t.code &&
+ 32 !== t.keyCode &&
+ 'Enter' !== t.code &&
+ 13 !== t.keyCode) ||
+ ((o = !0), (f = !1), p(t)),
+ 'ArrowLeft' !== t.code &&
+ 37 !== t.keyCode &&
+ (r || (38 !== t.keyCode && 'ArrowUp' !== t.code))
+ ? 'ArrowRight' !== t.code &&
+ 39 !== t.keyCode &&
+ (r || (40 !== t.keyCode && 'ArrowDown' !== t.code))
+ ? 35 === t.keyCode || 'End' === t.code
+ ? ((i = (function () {
+ for (var e = c(); e--; ) if (!kp(u(e))) return e;
+ return null;
+ })()),
+ (o = !0),
+ (f = !0))
+ : (36 !== t.keyCode && 'Home' !== t.code) ||
+ ((i = (function () {
+ for (var e = c(), t = 0; t < e; t++) if (!kp(u(t))) return t;
+ return null;
+ })()),
+ (o = !0),
+ (f = !0))
+ : ((i = 'rtl' === n ? l(i) : s(i)), (o = !0), (f = !0))
+ : ((i = 'rtl' === n ? s(i) : l(i)), (o = !0), (f = !0)),
+ o && t.preventDefault(),
+ f && a(i, t);
+ }
+ },
+ ref: function (e) {
+ (o.current = e), h && h(e);
+ },
+ 'data-rttabs': !0,
+ }),
+ (function () {
+ var o = 0,
+ a = e.children,
+ s = e.disabledTabClassName,
+ l = e.focus,
+ p = e.forceRenderTabPanel,
+ d = e.selectedIndex,
+ f = e.selectedTabClassName,
+ h = e.selectedTabPanelClassName,
+ m = e.environment;
+ (r.current = r.current || []), (i.current = i.current || []);
+ for (var g = r.current.length - c(); g++ < 0; )
+ r.current.push(mp()), i.current.push(mp());
+ return up(a, function (e) {
+ var a = e;
+ if (sp(e)) {
+ var c = 0,
+ g = !1;
+ null == yp &&
+ (function (e) {
+ var t = e || ('undefined' != typeof window ? window : void 0);
+ try {
+ yp = !(void 0 === t || !t.document || !t.document.activeElement);
+ } catch (e) {
+ yp = !1;
+ }
+ })(m);
+ var y = m || ('undefined' != typeof window ? window : void 0);
+ yp &&
+ y &&
+ (g = n.Children.toArray(e.props.children)
+ .filter(ap)
+ .some(function (e, t) {
+ return y.document.activeElement === u(t);
+ })),
+ (a = (0, n.cloneElement)(e, {
+ children: up(e.props.children, function (e) {
+ var o = 'tabs-' + c,
+ a = d === c,
+ u = {
+ tabRef: function (e) {
+ t.current[o] = e;
+ },
+ id: r.current[c],
+ panelId: i.current[c],
+ selected: a,
+ focus: a && (l || g),
+ };
+ return (
+ f && (u.selectedClassName = f),
+ s && (u.disabledClassName = s),
+ c++,
+ (0, n.cloneElement)(e, u)
+ );
+ }),
+ }));
+ } else if (lp(e)) {
+ var v = { id: i.current[o], tabId: r.current[o], selected: d === o };
+ p && (v.forceRender = p),
+ h && (v.selectedClassName = h),
+ o++,
+ (a = (0, n.cloneElement)(e, v));
+ }
+ return a;
+ });
+ })(),
+ );
+ };
+ (Op.defaultProps = { className: 'react-tabs', focus: !1 }), (Op.propTypes = {});
+ var Sp = Op;
+ function Ep() {
+ return (
+ (Ep =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ Ep.apply(this, arguments)
+ );
+ }
+ var _p = function (e) {
+ var t = e.children,
+ r = e.defaultFocus,
+ i = e.defaultIndex,
+ o = e.focusTabOnClick,
+ a = e.onSelect,
+ s = (0, n.useState)(r),
+ l = s[0],
+ c = s[1],
+ u = (0, n.useState)(
+ (function (e) {
+ return null === e.selectedIndex ? 1 : 0;
+ })(e),
+ ),
+ p = u[0],
+ d = (0, n.useState)(1 === p ? i || 0 : null),
+ f = d[0],
+ h = d[1];
+ if (
+ ((0, n.useEffect)(function () {
+ c(!1);
+ }, []),
+ 1 === p)
+ ) {
+ var m = gp(t);
+ (0, n.useEffect)(
+ function () {
+ if (null != f) {
+ var e = Math.max(0, m - 1);
+ h(Math.min(f, e));
+ }
+ },
+ [m],
+ );
+ }
+ var g = Ep({}, e);
+ return (
+ (g.focus = l),
+ (g.onSelect = function (e, t, n) {
+ ('function' == typeof a && !1 === a(e, t, n)) || (o && c(!0), 1 === p && h(e));
+ }),
+ null != f && (g.selectedIndex = f),
+ delete g.defaultFocus,
+ delete g.defaultIndex,
+ delete g.focusTabOnClick,
+ n.createElement(Sp, g, t)
+ );
+ };
+ (_p.propTypes = {}),
+ (_p.defaultProps = {
+ defaultFocus: !1,
+ focusTabOnClick: !0,
+ forceRenderTabPanel: !1,
+ selectedIndex: null,
+ defaultIndex: null,
+ environment: null,
+ disableUpDownKeys: !1,
+ }),
+ (_p.tabsRole = 'Tabs');
+ var Ap = _p,
+ jp = ['children', 'className'];
+ function Cp() {
+ return (
+ (Cp =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ Cp.apply(this, arguments)
+ );
+ }
+ var Pp = function (e) {
+ var t = e.children,
+ r = e.className,
+ i = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ i = {},
+ o = Object.keys(e);
+ for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]);
+ return i;
+ })(e, jp);
+ return n.createElement('ul', Cp({}, i, { className: fp(r), role: 'tablist' }), t);
+ };
+ (Pp.tabsRole = 'TabList'),
+ (Pp.propTypes = {}),
+ (Pp.defaultProps = { className: 'react-tabs__tab-list' });
+ var Tp = Pp,
+ Rp = [
+ 'children',
+ 'className',
+ 'disabled',
+ 'disabledClassName',
+ 'focus',
+ 'id',
+ 'panelId',
+ 'selected',
+ 'selectedClassName',
+ 'tabIndex',
+ 'tabRef',
+ ];
+ function Ip() {
+ return (
+ (Ip =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ Ip.apply(this, arguments)
+ );
+ }
+ var $p = 'react-tabs__tab',
+ Np = {
+ className: $p,
+ disabledClassName: $p + '--disabled',
+ focus: !1,
+ id: null,
+ panelId: null,
+ selected: !1,
+ selectedClassName: $p + '--selected',
+ },
+ Lp = function (e) {
+ var t,
+ r = (0, n.useRef)(),
+ i = e.children,
+ o = e.className,
+ a = e.disabled,
+ s = e.disabledClassName,
+ l = e.focus,
+ c = e.id,
+ u = e.panelId,
+ p = e.selected,
+ d = e.selectedClassName,
+ f = e.tabIndex,
+ h = e.tabRef,
+ m = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ i = {},
+ o = Object.keys(e);
+ for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]);
+ return i;
+ })(e, Rp);
+ return (
+ (0, n.useEffect)(
+ function () {
+ p && l && r.current.focus();
+ },
+ [p, l],
+ ),
+ n.createElement(
+ 'li',
+ Ip({}, m, {
+ className: fp(o, ((t = {}), (t[d] = p), (t[s] = a), t)),
+ ref: function (e) {
+ (r.current = e), h && h(e);
+ },
+ role: 'tab',
+ id: c,
+ 'aria-selected': p ? 'true' : 'false',
+ 'aria-disabled': a ? 'true' : 'false',
+ 'aria-controls': u,
+ tabIndex: f || (p ? '0' : null),
+ 'data-rttab': !0,
+ }),
+ i,
+ )
+ );
+ };
+ (Lp.propTypes = {}), (Lp.tabsRole = 'Tab'), (Lp.defaultProps = Np);
+ var Dp = Lp,
+ Mp = [
+ 'children',
+ 'className',
+ 'forceRender',
+ 'id',
+ 'selected',
+ 'selectedClassName',
+ 'tabId',
+ ];
+ function Fp() {
+ return (
+ (Fp =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }),
+ Fp.apply(this, arguments)
+ );
+ }
+ var zp = 'react-tabs__tab-panel',
+ Up = { className: zp, forceRender: !1, selectedClassName: zp + '--selected' },
+ Bp = function (e) {
+ var t,
+ r = e.children,
+ i = e.className,
+ o = e.forceRender,
+ a = e.id,
+ s = e.selected,
+ l = e.selectedClassName,
+ c = e.tabId,
+ u = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ i = {},
+ o = Object.keys(e);
+ for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n]);
+ return i;
+ })(e, Mp);
+ return n.createElement(
+ 'div',
+ Fp({}, u, {
+ className: fp(i, ((t = {}), (t[l] = s), t)),
+ role: 'tabpanel',
+ id: a,
+ 'aria-labelledby': c,
+ }),
+ o || s ? r : null,
+ );
+ };
+ (Bp.tabsRole = 'TabPanel'), (Bp.propTypes = {}), (Bp.defaultProps = Up);
+ var qp = Bp;
+ const Vp = ha(Ap)`
+ > ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ margin: 0 -5px;
+
+ > li {
+ padding: 5px 10px;
+ display: inline-block;
+
+ background-color: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ border-bottom: 1px solid rgba(0, 0, 0, 0.5);
+ cursor: pointer;
+ text-align: center;
+ outline: none;
+ color: ${({ theme: e }) => Nr(e.colors.tonalOffset, e.rightPanel.textColor)};
+ margin: 0
+ ${({ theme: e }) => `${e.spacing.unit}px ${e.spacing.unit}px ${e.spacing.unit}px`};
+ border: 1px solid ${({ theme: e }) => Nr(0.05, e.codeBlock.backgroundColor)};
+ border-radius: 5px;
+ min-width: 60px;
+ font-size: 0.9em;
+ font-weight: bold;
+
+ &.react-tabs__tab--selected {
+ color: ${e => e.theme.colors.text.primary};
+ background: ${({ theme: e }) => e.rightPanel.textColor};
+ &:focus {
+ outline: auto;
+ }
+ }
+
+ &:only-child {
+ flex: none;
+ min-width: 100px;
+ }
+
+ &.tab-success {
+ color: ${e => e.theme.colors.responses.success.tabTextColor};
+ }
+
+ &.tab-redirect {
+ color: ${e => e.theme.colors.responses.redirect.tabTextColor};
+ }
+
+ &.tab-info {
+ color: ${e => e.theme.colors.responses.info.tabTextColor};
+ }
+
+ &.tab-error {
+ color: ${e => e.theme.colors.responses.error.tabTextColor};
+ }
+ }
+ }
+ > .react-tabs__tab-panel {
+ background: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ & > div,
+ & > pre {
+ padding: ${e => 4 * e.theme.spacing.unit}px;
+ margin: 0;
+ }
+
+ & > div > pre {
+ padding: 0;
+ }
+ }
+`,
+ Wp =
+ (ha(Vp)`
+ > ul {
+ display: block;
+ > li {
+ padding: 2px 5px;
+ min-width: auto;
+ margin: 0 15px 0 0;
+ font-size: 13px;
+ font-weight: normal;
+ border-bottom: 1px dashed;
+ color: ${({ theme: e }) => Nr(e.colors.tonalOffset, e.rightPanel.textColor)};
+ border-radius: 0;
+ background: none;
+
+ &:last-child {
+ margin-right: 0;
+ }
+
+ &.react-tabs__tab--selected {
+ color: ${({ theme: e }) => e.rightPanel.textColor};
+ background: none;
+ }
+ }
+ }
+ > .react-tabs__tab-panel {
+ & > div,
+ & > pre {
+ padding: ${e => 2 * e.theme.spacing.unit}px 0;
+ }
+ }
+`,
+ ha.div`
+ /**
+ * Based on prism-dark.css
+ */
+
+ code[class*='language-'],
+ pre[class*='language-'] {
+ /* color: white;
+ background: none; */
+ text-shadow: 0 -0.1em 0.2em black;
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+ word-wrap: normal;
+ line-height: 1.5;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+ }
+
+ @media print {
+ code[class*='language-'],
+ pre[class*='language-'] {
+ text-shadow: none;
+ }
+ }
+
+ /* Code blocks */
+ pre[class*='language-'] {
+ padding: 1em;
+ margin: 0.5em 0;
+ overflow: auto;
+ }
+
+ .token.comment,
+ .token.prolog,
+ .token.doctype,
+ .token.cdata {
+ color: hsl(30, 20%, 50%);
+ }
+
+ .token.punctuation {
+ opacity: 0.7;
+ }
+
+ .namespace {
+ opacity: 0.7;
+ }
+
+ .token.property,
+ .token.tag,
+ .token.number,
+ .token.constant,
+ .token.symbol {
+ color: #4a8bb3;
+ }
+
+ .token.boolean {
+ color: #e64441;
+ }
+
+ .token.selector,
+ .token.attr-name,
+ .token.string,
+ .token.char,
+ .token.builtin,
+ .token.inserted {
+ color: #a0fbaa;
+ & + a,
+ & + a:visited {
+ color: #4ed2ba;
+ text-decoration: underline;
+ }
+ }
+
+ .token.property.string {
+ color: white;
+ }
+
+ .token.operator,
+ .token.entity,
+ .token.url,
+ .token.variable {
+ color: hsl(40, 90%, 60%);
+ }
+
+ .token.atrule,
+ .token.attr-value,
+ .token.keyword {
+ color: hsl(350, 40%, 70%);
+ }
+
+ .token.regex,
+ .token.important {
+ color: #e90;
+ }
+
+ .token.important,
+ .token.bold {
+ font-weight: bold;
+ }
+ .token.italic {
+ font-style: italic;
+ }
+
+ .token.entity {
+ cursor: help;
+ }
+
+ .token.deleted {
+ color: red;
+ }
+
+ ${ma('Prism')};
+`),
+ Hp = ha.div`
+ opacity: 0.7;
+ transition: opacity 0.3s ease;
+ text-align: right;
+ &:focus-within {
+ opacity: 1;
+ }
+ > button {
+ background-color: transparent;
+ border: 0;
+ color: inherit;
+ padding: 2px 10px;
+ font-family: ${({ theme: e }) => e.typography.fontFamily};
+ font-size: ${({ theme: e }) => e.typography.fontSize};
+ line-height: ${({ theme: e }) => e.typography.lineHeight};
+ cursor: pointer;
+ outline: 0;
+
+ :hover,
+ :focus {
+ background: rgba(255, 255, 255, 0.1);
+ }
+ }
+`,
+ Yp = ha.div`
+ &:hover ${Hp} {
+ opacity: 1;
+ }
+`,
+ Qp = ha(Wp).attrs({ as: 'pre' })`
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ font-size: ${e => e.theme.typography.code.fontSize};
+ overflow-x: auto;
+ margin: 0;
+
+ white-space: ${({ theme: e }) => (e.typography.code.wrap ? 'pre-wrap' : 'pre')};
+`;
+ function Gp(e) {
+ return getComputedStyle(e);
+ }
+ function Xp(e, t) {
+ for (var n in t) {
+ var r = t[n];
+ 'number' == typeof r && (r += 'px'), (e.style[n] = r);
+ }
+ return e;
+ }
+ function Kp(e) {
+ var t = document.createElement('div');
+ return (t.className = e), t;
+ }
+ var Zp =
+ 'undefined' != typeof Element &&
+ (Element.prototype.matches ||
+ Element.prototype.webkitMatchesSelector ||
+ Element.prototype.mozMatchesSelector ||
+ Element.prototype.msMatchesSelector);
+ function Jp(e, t) {
+ if (!Zp) throw new Error('No element matching method supported');
+ return Zp.call(e, t);
+ }
+ function ed(e) {
+ e.remove ? e.remove() : e.parentNode && e.parentNode.removeChild(e);
+ }
+ function td(e, t) {
+ return Array.prototype.filter.call(e.children, function (e) {
+ return Jp(e, t);
+ });
+ }
+ var nd = {
+ main: 'ps',
+ rtl: 'ps__rtl',
+ element: {
+ thumb: function (e) {
+ return 'ps__thumb-' + e;
+ },
+ rail: function (e) {
+ return 'ps__rail-' + e;
+ },
+ consuming: 'ps__child--consume',
+ },
+ state: {
+ focus: 'ps--focus',
+ clicking: 'ps--clicking',
+ active: function (e) {
+ return 'ps--active-' + e;
+ },
+ scrolling: function (e) {
+ return 'ps--scrolling-' + e;
+ },
+ },
+ },
+ rd = { x: null, y: null };
+ function id(e, t) {
+ var n = e.element.classList,
+ r = nd.state.scrolling(t);
+ n.contains(r) ? clearTimeout(rd[t]) : n.add(r);
+ }
+ function od(e, t) {
+ rd[t] = setTimeout(function () {
+ return e.isAlive && e.element.classList.remove(nd.state.scrolling(t));
+ }, e.settings.scrollingThreshold);
+ }
+ var ad = function (e) {
+ (this.element = e), (this.handlers = {});
+ },
+ sd = { isEmpty: { configurable: !0 } };
+ (ad.prototype.bind = function (e, t) {
+ void 0 === this.handlers[e] && (this.handlers[e] = []),
+ this.handlers[e].push(t),
+ this.element.addEventListener(e, t, !1);
+ }),
+ (ad.prototype.unbind = function (e, t) {
+ var n = this;
+ this.handlers[e] = this.handlers[e].filter(function (r) {
+ return !(!t || r === t) || (n.element.removeEventListener(e, r, !1), !1);
+ });
+ }),
+ (ad.prototype.unbindAll = function () {
+ for (var e in this.handlers) this.unbind(e);
+ }),
+ (sd.isEmpty.get = function () {
+ var e = this;
+ return Object.keys(this.handlers).every(function (t) {
+ return 0 === e.handlers[t].length;
+ });
+ }),
+ Object.defineProperties(ad.prototype, sd);
+ var ld = function () {
+ this.eventElements = [];
+ };
+ function cd(e) {
+ if ('function' == typeof window.CustomEvent) return new CustomEvent(e);
+ var t = document.createEvent('CustomEvent');
+ return t.initCustomEvent(e, !1, !1, void 0), t;
+ }
+ function ud(e, t, n, r, i) {
+ var o;
+ if ((void 0 === r && (r = !0), void 0 === i && (i = !1), 'top' === t))
+ o = ['contentHeight', 'containerHeight', 'scrollTop', 'y', 'up', 'down'];
+ else {
+ if ('left' !== t) throw new Error('A proper axis should be provided');
+ o = ['contentWidth', 'containerWidth', 'scrollLeft', 'x', 'left', 'right'];
+ }
+ !(function (e, t, n, r, i) {
+ var o = n[0],
+ a = n[1],
+ s = n[2],
+ l = n[3],
+ c = n[4],
+ u = n[5];
+ void 0 === r && (r = !0), void 0 === i && (i = !1);
+ var p = e.element;
+ (e.reach[l] = null),
+ p[s] < 1 && (e.reach[l] = 'start'),
+ p[s] > e[o] - e[a] - 1 && (e.reach[l] = 'end'),
+ t &&
+ (p.dispatchEvent(cd('ps-scroll-' + l)),
+ t < 0
+ ? p.dispatchEvent(cd('ps-scroll-' + c))
+ : t > 0 && p.dispatchEvent(cd('ps-scroll-' + u)),
+ r &&
+ (function (e, t) {
+ id(e, t), od(e, t);
+ })(e, l)),
+ e.reach[l] && (t || i) && p.dispatchEvent(cd('ps-' + l + '-reach-' + e.reach[l]));
+ })(e, n, o, r, i);
+ }
+ function pd(e) {
+ return parseInt(e, 10) || 0;
+ }
+ (ld.prototype.eventElement = function (e) {
+ var t = this.eventElements.filter(function (t) {
+ return t.element === e;
+ })[0];
+ return t || ((t = new ad(e)), this.eventElements.push(t)), t;
+ }),
+ (ld.prototype.bind = function (e, t, n) {
+ this.eventElement(e).bind(t, n);
+ }),
+ (ld.prototype.unbind = function (e, t, n) {
+ var r = this.eventElement(e);
+ r.unbind(t, n),
+ r.isEmpty && this.eventElements.splice(this.eventElements.indexOf(r), 1);
+ }),
+ (ld.prototype.unbindAll = function () {
+ this.eventElements.forEach(function (e) {
+ return e.unbindAll();
+ }),
+ (this.eventElements = []);
+ }),
+ (ld.prototype.once = function (e, t, n) {
+ var r = this.eventElement(e),
+ i = function (e) {
+ r.unbind(t, i), n(e);
+ };
+ r.bind(t, i);
+ });
+ var dd = {
+ isWebKit:
+ 'undefined' != typeof document && 'WebkitAppearance' in document.documentElement.style,
+ supportsTouch:
+ 'undefined' != typeof window &&
+ ('ontouchstart' in window ||
+ ('maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints > 0) ||
+ (window.DocumentTouch && document instanceof window.DocumentTouch)),
+ supportsIePointer: 'undefined' != typeof navigator && navigator.msMaxTouchPoints,
+ isChrome:
+ 'undefined' != typeof navigator && /Chrome/i.test(navigator && navigator.userAgent),
+ };
+ function fd(e) {
+ var t = e.element,
+ n = Math.floor(t.scrollTop),
+ r = t.getBoundingClientRect();
+ (e.containerWidth = Math.round(r.width)),
+ (e.containerHeight = Math.round(r.height)),
+ (e.contentWidth = t.scrollWidth),
+ (e.contentHeight = t.scrollHeight),
+ t.contains(e.scrollbarXRail) ||
+ (td(t, nd.element.rail('x')).forEach(function (e) {
+ return ed(e);
+ }),
+ t.appendChild(e.scrollbarXRail)),
+ t.contains(e.scrollbarYRail) ||
+ (td(t, nd.element.rail('y')).forEach(function (e) {
+ return ed(e);
+ }),
+ t.appendChild(e.scrollbarYRail)),
+ !e.settings.suppressScrollX &&
+ e.containerWidth + e.settings.scrollXMarginOffset < e.contentWidth
+ ? ((e.scrollbarXActive = !0),
+ (e.railXWidth = e.containerWidth - e.railXMarginWidth),
+ (e.railXRatio = e.containerWidth / e.railXWidth),
+ (e.scrollbarXWidth = hd(e, pd((e.railXWidth * e.containerWidth) / e.contentWidth))),
+ (e.scrollbarXLeft = pd(
+ ((e.negativeScrollAdjustment + t.scrollLeft) *
+ (e.railXWidth - e.scrollbarXWidth)) /
+ (e.contentWidth - e.containerWidth),
+ )))
+ : (e.scrollbarXActive = !1),
+ !e.settings.suppressScrollY &&
+ e.containerHeight + e.settings.scrollYMarginOffset < e.contentHeight
+ ? ((e.scrollbarYActive = !0),
+ (e.railYHeight = e.containerHeight - e.railYMarginHeight),
+ (e.railYRatio = e.containerHeight / e.railYHeight),
+ (e.scrollbarYHeight = hd(
+ e,
+ pd((e.railYHeight * e.containerHeight) / e.contentHeight),
+ )),
+ (e.scrollbarYTop = pd(
+ (n * (e.railYHeight - e.scrollbarYHeight)) /
+ (e.contentHeight - e.containerHeight),
+ )))
+ : (e.scrollbarYActive = !1),
+ e.scrollbarXLeft >= e.railXWidth - e.scrollbarXWidth &&
+ (e.scrollbarXLeft = e.railXWidth - e.scrollbarXWidth),
+ e.scrollbarYTop >= e.railYHeight - e.scrollbarYHeight &&
+ (e.scrollbarYTop = e.railYHeight - e.scrollbarYHeight),
+ (function (e, t) {
+ var n = { width: t.railXWidth },
+ r = Math.floor(e.scrollTop);
+ t.isRtl
+ ? (n.left =
+ t.negativeScrollAdjustment + e.scrollLeft + t.containerWidth - t.contentWidth)
+ : (n.left = e.scrollLeft),
+ t.isScrollbarXUsingBottom
+ ? (n.bottom = t.scrollbarXBottom - r)
+ : (n.top = t.scrollbarXTop + r),
+ Xp(t.scrollbarXRail, n);
+ var i = { top: r, height: t.railYHeight };
+ t.isScrollbarYUsingRight
+ ? t.isRtl
+ ? (i.right =
+ t.contentWidth -
+ (t.negativeScrollAdjustment + e.scrollLeft) -
+ t.scrollbarYRight -
+ t.scrollbarYOuterWidth -
+ 9)
+ : (i.right = t.scrollbarYRight - e.scrollLeft)
+ : t.isRtl
+ ? (i.left =
+ t.negativeScrollAdjustment +
+ e.scrollLeft +
+ 2 * t.containerWidth -
+ t.contentWidth -
+ t.scrollbarYLeft -
+ t.scrollbarYOuterWidth)
+ : (i.left = t.scrollbarYLeft + e.scrollLeft),
+ Xp(t.scrollbarYRail, i),
+ Xp(t.scrollbarX, {
+ left: t.scrollbarXLeft,
+ width: t.scrollbarXWidth - t.railBorderXWidth,
+ }),
+ Xp(t.scrollbarY, {
+ top: t.scrollbarYTop,
+ height: t.scrollbarYHeight - t.railBorderYWidth,
+ });
+ })(t, e),
+ e.scrollbarXActive
+ ? t.classList.add(nd.state.active('x'))
+ : (t.classList.remove(nd.state.active('x')),
+ (e.scrollbarXWidth = 0),
+ (e.scrollbarXLeft = 0),
+ (t.scrollLeft = !0 === e.isRtl ? e.contentWidth : 0)),
+ e.scrollbarYActive
+ ? t.classList.add(nd.state.active('y'))
+ : (t.classList.remove(nd.state.active('y')),
+ (e.scrollbarYHeight = 0),
+ (e.scrollbarYTop = 0),
+ (t.scrollTop = 0));
+ }
+ function hd(e, t) {
+ return (
+ e.settings.minScrollbarLength && (t = Math.max(t, e.settings.minScrollbarLength)),
+ e.settings.maxScrollbarLength && (t = Math.min(t, e.settings.maxScrollbarLength)),
+ t
+ );
+ }
+ function md(e, t) {
+ var n = t[0],
+ r = t[1],
+ i = t[2],
+ o = t[3],
+ a = t[4],
+ s = t[5],
+ l = t[6],
+ c = t[7],
+ u = t[8],
+ p = e.element,
+ d = null,
+ f = null,
+ h = null;
+ function m(t) {
+ t.touches && t.touches[0] && (t[i] = t.touches[0].pageY),
+ (p[l] = d + h * (t[i] - f)),
+ id(e, c),
+ fd(e),
+ t.stopPropagation(),
+ t.type.startsWith('touch') && t.changedTouches.length > 1 && t.preventDefault();
+ }
+ function g() {
+ od(e, c),
+ e[u].classList.remove(nd.state.clicking),
+ e.event.unbind(e.ownerDocument, 'mousemove', m);
+ }
+ function y(t, a) {
+ (d = p[l]),
+ a && t.touches && (t[i] = t.touches[0].pageY),
+ (f = t[i]),
+ (h = (e[r] - e[n]) / (e[o] - e[s])),
+ a
+ ? e.event.bind(e.ownerDocument, 'touchmove', m)
+ : (e.event.bind(e.ownerDocument, 'mousemove', m),
+ e.event.once(e.ownerDocument, 'mouseup', g),
+ t.preventDefault()),
+ e[u].classList.add(nd.state.clicking),
+ t.stopPropagation();
+ }
+ e.event.bind(e[a], 'mousedown', function (e) {
+ y(e);
+ }),
+ e.event.bind(e[a], 'touchstart', function (e) {
+ y(e, !0);
+ });
+ }
+ var gd = {
+ 'click-rail': function (e) {
+ e.element,
+ e.event.bind(e.scrollbarY, 'mousedown', function (e) {
+ return e.stopPropagation();
+ }),
+ e.event.bind(e.scrollbarYRail, 'mousedown', function (t) {
+ var n =
+ t.pageY - window.pageYOffset - e.scrollbarYRail.getBoundingClientRect().top >
+ e.scrollbarYTop
+ ? 1
+ : -1;
+ (e.element.scrollTop += n * e.containerHeight), fd(e), t.stopPropagation();
+ }),
+ e.event.bind(e.scrollbarX, 'mousedown', function (e) {
+ return e.stopPropagation();
+ }),
+ e.event.bind(e.scrollbarXRail, 'mousedown', function (t) {
+ var n =
+ t.pageX - window.pageXOffset - e.scrollbarXRail.getBoundingClientRect().left >
+ e.scrollbarXLeft
+ ? 1
+ : -1;
+ (e.element.scrollLeft += n * e.containerWidth), fd(e), t.stopPropagation();
+ });
+ },
+ 'drag-thumb': function (e) {
+ md(e, [
+ 'containerWidth',
+ 'contentWidth',
+ 'pageX',
+ 'railXWidth',
+ 'scrollbarX',
+ 'scrollbarXWidth',
+ 'scrollLeft',
+ 'x',
+ 'scrollbarXRail',
+ ]),
+ md(e, [
+ 'containerHeight',
+ 'contentHeight',
+ 'pageY',
+ 'railYHeight',
+ 'scrollbarY',
+ 'scrollbarYHeight',
+ 'scrollTop',
+ 'y',
+ 'scrollbarYRail',
+ ]);
+ },
+ keyboard: function (e) {
+ var t = e.element;
+ e.event.bind(e.ownerDocument, 'keydown', function (n) {
+ if (
+ !((n.isDefaultPrevented && n.isDefaultPrevented()) || n.defaultPrevented) &&
+ (Jp(t, ':hover') || Jp(e.scrollbarX, ':focus') || Jp(e.scrollbarY, ':focus'))
+ ) {
+ var r,
+ i = document.activeElement
+ ? document.activeElement
+ : e.ownerDocument.activeElement;
+ if (i) {
+ if ('IFRAME' === i.tagName) i = i.contentDocument.activeElement;
+ else for (; i.shadowRoot; ) i = i.shadowRoot.activeElement;
+ if (
+ Jp((r = i), 'input,[contenteditable]') ||
+ Jp(r, 'select,[contenteditable]') ||
+ Jp(r, 'textarea,[contenteditable]') ||
+ Jp(r, 'button,[contenteditable]')
+ )
+ return;
+ }
+ var o = 0,
+ a = 0;
+ switch (n.which) {
+ case 37:
+ o = n.metaKey ? -e.contentWidth : n.altKey ? -e.containerWidth : -30;
+ break;
+ case 38:
+ a = n.metaKey ? e.contentHeight : n.altKey ? e.containerHeight : 30;
+ break;
+ case 39:
+ o = n.metaKey ? e.contentWidth : n.altKey ? e.containerWidth : 30;
+ break;
+ case 40:
+ a = n.metaKey ? -e.contentHeight : n.altKey ? -e.containerHeight : -30;
+ break;
+ case 32:
+ a = n.shiftKey ? e.containerHeight : -e.containerHeight;
+ break;
+ case 33:
+ a = e.containerHeight;
+ break;
+ case 34:
+ a = -e.containerHeight;
+ break;
+ case 36:
+ a = e.contentHeight;
+ break;
+ case 35:
+ a = -e.contentHeight;
+ break;
+ default:
+ return;
+ }
+ (e.settings.suppressScrollX && 0 !== o) ||
+ (e.settings.suppressScrollY && 0 !== a) ||
+ ((t.scrollTop -= a),
+ (t.scrollLeft += o),
+ fd(e),
+ (function (n, r) {
+ var i = Math.floor(t.scrollTop);
+ if (0 === n) {
+ if (!e.scrollbarYActive) return !1;
+ if (
+ (0 === i && r > 0) ||
+ (i >= e.contentHeight - e.containerHeight && r < 0)
+ )
+ return !e.settings.wheelPropagation;
+ }
+ var o = t.scrollLeft;
+ if (0 === r) {
+ if (!e.scrollbarXActive) return !1;
+ if ((0 === o && n < 0) || (o >= e.contentWidth - e.containerWidth && n > 0))
+ return !e.settings.wheelPropagation;
+ }
+ return !0;
+ })(o, a) && n.preventDefault());
+ }
+ });
+ },
+ wheel: function (e) {
+ var t = e.element;
+ function n(n) {
+ var r = (function (e) {
+ var t = e.deltaX,
+ n = -1 * e.deltaY;
+ return (
+ (void 0 !== t && void 0 !== n) ||
+ ((t = (-1 * e.wheelDeltaX) / 6), (n = e.wheelDeltaY / 6)),
+ e.deltaMode && 1 === e.deltaMode && ((t *= 10), (n *= 10)),
+ t != t && n != n && ((t = 0), (n = e.wheelDelta)),
+ e.shiftKey ? [-n, -t] : [t, n]
+ );
+ })(n),
+ i = r[0],
+ o = r[1];
+ if (
+ !(function (e, n, r) {
+ if (!dd.isWebKit && t.querySelector('select:focus')) return !0;
+ if (!t.contains(e)) return !1;
+ for (var i = e; i && i !== t; ) {
+ if (i.classList.contains(nd.element.consuming)) return !0;
+ var o = Gp(i);
+ if (r && o.overflowY.match(/(scroll|auto)/)) {
+ var a = i.scrollHeight - i.clientHeight;
+ if (a > 0 && ((i.scrollTop > 0 && r < 0) || (i.scrollTop < a && r > 0)))
+ return !0;
+ }
+ if (n && o.overflowX.match(/(scroll|auto)/)) {
+ var s = i.scrollWidth - i.clientWidth;
+ if (s > 0 && ((i.scrollLeft > 0 && n < 0) || (i.scrollLeft < s && n > 0)))
+ return !0;
+ }
+ i = i.parentNode;
+ }
+ return !1;
+ })(n.target, i, o)
+ ) {
+ var a = !1;
+ e.settings.useBothWheelAxes
+ ? e.scrollbarYActive && !e.scrollbarXActive
+ ? (o
+ ? (t.scrollTop -= o * e.settings.wheelSpeed)
+ : (t.scrollTop += i * e.settings.wheelSpeed),
+ (a = !0))
+ : e.scrollbarXActive &&
+ !e.scrollbarYActive &&
+ (i
+ ? (t.scrollLeft += i * e.settings.wheelSpeed)
+ : (t.scrollLeft -= o * e.settings.wheelSpeed),
+ (a = !0))
+ : ((t.scrollTop -= o * e.settings.wheelSpeed),
+ (t.scrollLeft += i * e.settings.wheelSpeed)),
+ fd(e),
+ (a =
+ a ||
+ (function (n, r) {
+ var i = Math.floor(t.scrollTop),
+ o = 0 === t.scrollTop,
+ a = i + t.offsetHeight === t.scrollHeight,
+ s = 0 === t.scrollLeft,
+ l = t.scrollLeft + t.offsetWidth === t.scrollWidth;
+ return (
+ !(Math.abs(r) > Math.abs(n) ? o || a : s || l) ||
+ !e.settings.wheelPropagation
+ );
+ })(i, o)),
+ a && !n.ctrlKey && (n.stopPropagation(), n.preventDefault());
+ }
+ }
+ void 0 !== window.onwheel
+ ? e.event.bind(t, 'wheel', n)
+ : void 0 !== window.onmousewheel && e.event.bind(t, 'mousewheel', n);
+ },
+ touch: function (e) {
+ if (dd.supportsTouch || dd.supportsIePointer) {
+ var t = e.element,
+ n = {},
+ r = 0,
+ i = {},
+ o = null;
+ dd.supportsTouch
+ ? (e.event.bind(t, 'touchstart', c),
+ e.event.bind(t, 'touchmove', u),
+ e.event.bind(t, 'touchend', p))
+ : dd.supportsIePointer &&
+ (window.PointerEvent
+ ? (e.event.bind(t, 'pointerdown', c),
+ e.event.bind(t, 'pointermove', u),
+ e.event.bind(t, 'pointerup', p))
+ : window.MSPointerEvent &&
+ (e.event.bind(t, 'MSPointerDown', c),
+ e.event.bind(t, 'MSPointerMove', u),
+ e.event.bind(t, 'MSPointerUp', p)));
+ }
+ function a(n, r) {
+ (t.scrollTop -= r), (t.scrollLeft -= n), fd(e);
+ }
+ function s(e) {
+ return e.targetTouches ? e.targetTouches[0] : e;
+ }
+ function l(e) {
+ return !(
+ (e.pointerType && 'pen' === e.pointerType && 0 === e.buttons) ||
+ ((!e.targetTouches || 1 !== e.targetTouches.length) &&
+ (!e.pointerType ||
+ 'mouse' === e.pointerType ||
+ e.pointerType === e.MSPOINTER_TYPE_MOUSE))
+ );
+ }
+ function c(e) {
+ if (l(e)) {
+ var t = s(e);
+ (n.pageX = t.pageX),
+ (n.pageY = t.pageY),
+ (r = new Date().getTime()),
+ null !== o && clearInterval(o);
+ }
+ }
+ function u(o) {
+ if (l(o)) {
+ var c = s(o),
+ u = { pageX: c.pageX, pageY: c.pageY },
+ p = u.pageX - n.pageX,
+ d = u.pageY - n.pageY;
+ if (
+ (function (e, n, r) {
+ if (!t.contains(e)) return !1;
+ for (var i = e; i && i !== t; ) {
+ if (i.classList.contains(nd.element.consuming)) return !0;
+ var o = Gp(i);
+ if (r && o.overflowY.match(/(scroll|auto)/)) {
+ var a = i.scrollHeight - i.clientHeight;
+ if (a > 0 && ((i.scrollTop > 0 && r < 0) || (i.scrollTop < a && r > 0)))
+ return !0;
+ }
+ if (n && o.overflowX.match(/(scroll|auto)/)) {
+ var s = i.scrollWidth - i.clientWidth;
+ if (s > 0 && ((i.scrollLeft > 0 && n < 0) || (i.scrollLeft < s && n > 0)))
+ return !0;
+ }
+ i = i.parentNode;
+ }
+ return !1;
+ })(o.target, p, d)
+ )
+ return;
+ a(p, d), (n = u);
+ var f = new Date().getTime(),
+ h = f - r;
+ h > 0 && ((i.x = p / h), (i.y = d / h), (r = f)),
+ (function (n, r) {
+ var i = Math.floor(t.scrollTop),
+ o = t.scrollLeft,
+ a = Math.abs(n),
+ s = Math.abs(r);
+ if (s > a) {
+ if (
+ (r < 0 && i === e.contentHeight - e.containerHeight) ||
+ (r > 0 && 0 === i)
+ )
+ return 0 === window.scrollY && r > 0 && dd.isChrome;
+ } else if (
+ a > s &&
+ ((n < 0 && o === e.contentWidth - e.containerWidth) || (n > 0 && 0 === o))
+ )
+ return !0;
+ return !0;
+ })(p, d) && o.preventDefault();
+ }
+ }
+ function p() {
+ e.settings.swipeEasing &&
+ (clearInterval(o),
+ (o = setInterval(function () {
+ e.isInitialized
+ ? clearInterval(o)
+ : i.x || i.y
+ ? Math.abs(i.x) < 0.01 && Math.abs(i.y) < 0.01
+ ? clearInterval(o)
+ : e.element
+ ? (a(30 * i.x, 30 * i.y), (i.x *= 0.8), (i.y *= 0.8))
+ : clearInterval(o)
+ : clearInterval(o);
+ }, 10)));
+ }
+ },
+ },
+ yd = function (e, t) {
+ var n = this;
+ if (
+ (void 0 === t && (t = {}),
+ 'string' == typeof e && (e = document.querySelector(e)),
+ !e || !e.nodeName)
+ )
+ throw new Error('no element is specified to initialize PerfectScrollbar');
+ for (var r in ((this.element = e),
+ e.classList.add(nd.main),
+ (this.settings = {
+ handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
+ maxScrollbarLength: null,
+ minScrollbarLength: null,
+ scrollingThreshold: 1e3,
+ scrollXMarginOffset: 0,
+ scrollYMarginOffset: 0,
+ suppressScrollX: !1,
+ suppressScrollY: !1,
+ swipeEasing: !0,
+ useBothWheelAxes: !1,
+ wheelPropagation: !0,
+ wheelSpeed: 1,
+ }),
+ t))
+ this.settings[r] = t[r];
+ (this.containerWidth = null),
+ (this.containerHeight = null),
+ (this.contentWidth = null),
+ (this.contentHeight = null);
+ var i,
+ o,
+ a = function () {
+ return e.classList.add(nd.state.focus);
+ },
+ s = function () {
+ return e.classList.remove(nd.state.focus);
+ };
+ (this.isRtl = 'rtl' === Gp(e).direction),
+ !0 === this.isRtl && e.classList.add(nd.rtl),
+ (this.isNegativeScroll =
+ ((o = e.scrollLeft),
+ (e.scrollLeft = -1),
+ (i = e.scrollLeft < 0),
+ (e.scrollLeft = o),
+ i)),
+ (this.negativeScrollAdjustment = this.isNegativeScroll
+ ? e.scrollWidth - e.clientWidth
+ : 0),
+ (this.event = new ld()),
+ (this.ownerDocument = e.ownerDocument || document),
+ (this.scrollbarXRail = Kp(nd.element.rail('x'))),
+ e.appendChild(this.scrollbarXRail),
+ (this.scrollbarX = Kp(nd.element.thumb('x'))),
+ this.scrollbarXRail.appendChild(this.scrollbarX),
+ this.scrollbarX.setAttribute('tabindex', 0),
+ this.event.bind(this.scrollbarX, 'focus', a),
+ this.event.bind(this.scrollbarX, 'blur', s),
+ (this.scrollbarXActive = null),
+ (this.scrollbarXWidth = null),
+ (this.scrollbarXLeft = null);
+ var l = Gp(this.scrollbarXRail);
+ (this.scrollbarXBottom = parseInt(l.bottom, 10)),
+ isNaN(this.scrollbarXBottom)
+ ? ((this.isScrollbarXUsingBottom = !1), (this.scrollbarXTop = pd(l.top)))
+ : (this.isScrollbarXUsingBottom = !0),
+ (this.railBorderXWidth = pd(l.borderLeftWidth) + pd(l.borderRightWidth)),
+ Xp(this.scrollbarXRail, { display: 'block' }),
+ (this.railXMarginWidth = pd(l.marginLeft) + pd(l.marginRight)),
+ Xp(this.scrollbarXRail, { display: '' }),
+ (this.railXWidth = null),
+ (this.railXRatio = null),
+ (this.scrollbarYRail = Kp(nd.element.rail('y'))),
+ e.appendChild(this.scrollbarYRail),
+ (this.scrollbarY = Kp(nd.element.thumb('y'))),
+ this.scrollbarYRail.appendChild(this.scrollbarY),
+ this.scrollbarY.setAttribute('tabindex', 0),
+ this.event.bind(this.scrollbarY, 'focus', a),
+ this.event.bind(this.scrollbarY, 'blur', s),
+ (this.scrollbarYActive = null),
+ (this.scrollbarYHeight = null),
+ (this.scrollbarYTop = null);
+ var c = Gp(this.scrollbarYRail);
+ (this.scrollbarYRight = parseInt(c.right, 10)),
+ isNaN(this.scrollbarYRight)
+ ? ((this.isScrollbarYUsingRight = !1), (this.scrollbarYLeft = pd(c.left)))
+ : (this.isScrollbarYUsingRight = !0),
+ (this.scrollbarYOuterWidth = this.isRtl
+ ? (function (e) {
+ var t = Gp(e);
+ return (
+ pd(t.width) +
+ pd(t.paddingLeft) +
+ pd(t.paddingRight) +
+ pd(t.borderLeftWidth) +
+ pd(t.borderRightWidth)
+ );
+ })(this.scrollbarY)
+ : null),
+ (this.railBorderYWidth = pd(c.borderTopWidth) + pd(c.borderBottomWidth)),
+ Xp(this.scrollbarYRail, { display: 'block' }),
+ (this.railYMarginHeight = pd(c.marginTop) + pd(c.marginBottom)),
+ Xp(this.scrollbarYRail, { display: '' }),
+ (this.railYHeight = null),
+ (this.railYRatio = null),
+ (this.reach = {
+ x:
+ e.scrollLeft <= 0
+ ? 'start'
+ : e.scrollLeft >= this.contentWidth - this.containerWidth
+ ? 'end'
+ : null,
+ y:
+ e.scrollTop <= 0
+ ? 'start'
+ : e.scrollTop >= this.contentHeight - this.containerHeight
+ ? 'end'
+ : null,
+ }),
+ (this.isAlive = !0),
+ this.settings.handlers.forEach(function (e) {
+ return gd[e](n);
+ }),
+ (this.lastScrollTop = Math.floor(e.scrollTop)),
+ (this.lastScrollLeft = e.scrollLeft),
+ this.event.bind(this.element, 'scroll', function (e) {
+ return n.onScroll(e);
+ }),
+ fd(this);
+ };
+ (yd.prototype.update = function () {
+ this.isAlive &&
+ ((this.negativeScrollAdjustment = this.isNegativeScroll
+ ? this.element.scrollWidth - this.element.clientWidth
+ : 0),
+ Xp(this.scrollbarXRail, { display: 'block' }),
+ Xp(this.scrollbarYRail, { display: 'block' }),
+ (this.railXMarginWidth =
+ pd(Gp(this.scrollbarXRail).marginLeft) + pd(Gp(this.scrollbarXRail).marginRight)),
+ (this.railYMarginHeight =
+ pd(Gp(this.scrollbarYRail).marginTop) + pd(Gp(this.scrollbarYRail).marginBottom)),
+ Xp(this.scrollbarXRail, { display: 'none' }),
+ Xp(this.scrollbarYRail, { display: 'none' }),
+ fd(this),
+ ud(this, 'top', 0, !1, !0),
+ ud(this, 'left', 0, !1, !0),
+ Xp(this.scrollbarXRail, { display: '' }),
+ Xp(this.scrollbarYRail, { display: '' }));
+ }),
+ (yd.prototype.onScroll = function (e) {
+ this.isAlive &&
+ (fd(this),
+ ud(this, 'top', this.element.scrollTop - this.lastScrollTop),
+ ud(this, 'left', this.element.scrollLeft - this.lastScrollLeft),
+ (this.lastScrollTop = Math.floor(this.element.scrollTop)),
+ (this.lastScrollLeft = this.element.scrollLeft));
+ }),
+ (yd.prototype.destroy = function () {
+ this.isAlive &&
+ (this.event.unbindAll(),
+ ed(this.scrollbarX),
+ ed(this.scrollbarY),
+ ed(this.scrollbarXRail),
+ ed(this.scrollbarYRail),
+ this.removePsClasses(),
+ (this.element = null),
+ (this.scrollbarX = null),
+ (this.scrollbarY = null),
+ (this.scrollbarXRail = null),
+ (this.scrollbarYRail = null),
+ (this.isAlive = !1));
+ }),
+ (yd.prototype.removePsClasses = function () {
+ this.element.className = this.element.className
+ .split(' ')
+ .filter(function (e) {
+ return !e.match(/^ps([-_].+|)$/);
+ })
+ .join(' ');
+ });
+ var vd = yd,
+ bd = Object.defineProperty,
+ xd = Object.getOwnPropertySymbols,
+ wd = Object.prototype.hasOwnProperty,
+ kd = Object.prototype.propertyIsEnumerable,
+ Od = (e, t, n) =>
+ t in e
+ ? bd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ const Sd = vd || t;
+ let Ed = '';
+ Qr &&
+ ((Ed = r(6232)),
+ (Ed = ('function' == typeof Ed.toString && Ed.toString()) || ''),
+ (Ed = '[object Object]' === Ed ? '' : Ed));
+ const _d = ua`${Ed}`,
+ Ad = ha.div`
+ position: relative;
+`;
+ class jd extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.handleRef = e => {
+ this._container = e;
+ });
+ }
+ componentDidMount() {
+ const e =
+ (this._container.parentElement && this._container.parentElement.scrollTop) || 0;
+ (this.inst = new Sd(this._container, this.props.options || {})),
+ this._container.scrollTo && this._container.scrollTo(0, e);
+ }
+ componentDidUpdate() {
+ this.inst.update();
+ }
+ componentWillUnmount() {
+ this.inst.destroy();
+ }
+ render() {
+ const { children: e, className: t, updateFn: r } = this.props;
+ return (
+ r && r(this.componentDidUpdate.bind(this)),
+ n.createElement(
+ n.Fragment,
+ null,
+ Ed && n.createElement(_d, null),
+ n.createElement(
+ Ad,
+ { className: `scrollbar-container ${t}`, ref: this.handleRef },
+ e,
+ ),
+ )
+ );
+ }
+ }
+ function Cd(e) {
+ return n.createElement(Oa.Consumer, null, t =>
+ t.nativeScrollbars
+ ? n.createElement(
+ 'div',
+ {
+ style: {
+ overflow: 'auto',
+ overscrollBehavior: 'contain',
+ msOverflowStyle: '-ms-autohiding-scrollbar',
+ },
+ },
+ e.children,
+ )
+ : n.createElement(
+ jd,
+ ((e, t) => {
+ for (var n in t || (t = {})) wd.call(t, n) && Od(e, n, t[n]);
+ if (xd) for (var n of xd(t)) kd.call(t, n) && Od(e, n, t[n]);
+ return e;
+ })({}, e),
+ e.children,
+ ),
+ );
+ }
+ const Pd = ha(({ className: e, style: t }) =>
+ n.createElement(
+ 'svg',
+ {
+ className: e,
+ style: t,
+ xmlns: 'http://www.w3.org/2000/svg',
+ width: '16',
+ height: '16',
+ viewBox: '0 0 24 24',
+ fill: 'none',
+ stroke: 'currentColor',
+ strokeWidth: '2',
+ strokeLinecap: 'round',
+ strokeLinejoin: 'round',
+ },
+ n.createElement('polyline', { points: '6 9 12 15 18 9' }),
+ ),
+ )`
+ position: absolute;
+ pointer-events: none;
+ z-index: 1;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ right: 8px;
+ margin: auto;
+ text-align: center;
+ polyline {
+ color: ${e => 'dark' === e.variant && 'white'};
+ }
+`,
+ Td = n.memo(e => {
+ const {
+ options: t,
+ onChange: r,
+ placeholder: i,
+ value: o = '',
+ variant: a,
+ className: s,
+ } = e;
+ return n.createElement(
+ 'div',
+ { className: s },
+ n.createElement(Pd, { variant: a }),
+ n.createElement(
+ 'select',
+ {
+ onChange: e => {
+ const { selectedIndex: n } = e.target;
+ r(t[i ? n - 1 : n]);
+ },
+ value: o,
+ className: 'dropdown-select',
+ },
+ i && n.createElement('option', { disabled: !0, hidden: !0, value: i }, i),
+ t.map(({ idx: e, value: t, title: r }, i) =>
+ n.createElement('option', { key: e || t + i, value: t }, r || t),
+ ),
+ ),
+ n.createElement('label', null, o),
+ );
+ }),
+ Rd = sa(Td)`
+ label {
+ box-sizing: border-box;
+ min-width: 100px;
+ outline: none;
+ display: inline-block;
+ font-family: ${e => e.theme.typography.headings.fontFamily};
+ color: ${({ theme: e }) => e.colors.text.primary};
+ vertical-align: bottom;
+ width: ${({ fullWidth: e }) => (e ? '100%' : 'auto')};
+ text-transform: none;
+ padding: 0 22px 0 4px;
+
+ font-size: 0.929em;
+ line-height: 1.5em;
+ font-family: inherit;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+ .dropdown-select {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+ border: none;
+ appearance: none;
+ cursor: pointer;
+
+ color: ${({ theme: e }) => e.colors.text.primary};
+ line-height: inherit;
+ font-family: inherit;
+ }
+ box-sizing: border-box;
+ min-width: 100px;
+ outline: none;
+ display: inline-block;
+ border-radius: 2px;
+ border: 1px solid rgba(38, 50, 56, 0.5);
+ vertical-align: bottom;
+ padding: 2px 0px 2px 6px;
+ position: relative;
+ width: auto;
+ background: white;
+ color: #263238;
+ font-family: ${e => e.theme.typography.headings.fontFamily};
+ font-size: 0.929em;
+ line-height: 1.5em;
+ cursor: pointer;
+ transition: border 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
+
+ &:hover,
+ &:focus-within {
+ border: 1px solid ${e => e.theme.colors.primary.main};
+ color: ${e => e.theme.colors.primary.main};
+ box-shadow: 0px 0px 0px 1px ${e => e.theme.colors.primary.main};
+ }
+`,
+ Id = sa(Rd)`
+ margin-left: 10px;
+ text-transform: none;
+ font-size: 0.969em;
+
+ font-size: 1em;
+ border: none;
+ padding: 0 1.2em 0 0;
+ background: transparent;
+
+ &:hover,
+ &:focus-within {
+ border: none;
+ box-shadow: none;
+ label {
+ color: ${e => e.theme.colors.primary.main};
+ text-shadow: 0px 0px 0px ${e => e.theme.colors.primary.main};
+ }
+ }
+`,
+ $d = sa.span`
+ margin-left: 10px;
+ text-transform: none;
+ font-size: 0.929em;
+ color: black;
+`;
+ var Nd = Object.defineProperty,
+ Ld = Object.defineProperties,
+ Dd = Object.getOwnPropertyDescriptors,
+ Md = Object.getOwnPropertySymbols,
+ Fd = Object.prototype.hasOwnProperty,
+ zd = Object.prototype.propertyIsEnumerable,
+ Ud = (e, t, n) =>
+ t in e
+ ? Nd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Bd = (e, t) => {
+ for (var n in t || (t = {})) Fd.call(t, n) && Ud(e, n, t[n]);
+ if (Md) for (var n of Md(t)) zd.call(t, n) && Ud(e, n, t[n]);
+ return e;
+ },
+ qd = (e, t) => Ld(e, Dd(t));
+ class Vd {
+ constructor(e, t, n) {
+ this.operations = [];
+ const { resolved: r } = e.deref(n || {});
+ this.initWebhooks(e, r, t);
+ }
+ initWebhooks(e, t, n) {
+ for (const r of Object.keys(t)) {
+ const i = t[r],
+ o = Object.keys(i).filter(Xa);
+ for (const t of o) {
+ const r = i[t];
+ if (i.$ref) {
+ const r = e.deref(i || {});
+ this.initWebhooks(e, { [t]: r }, n);
+ }
+ if (!r) continue;
+ const o = new Ou(e, qd(Bd({}, r), { httpVerb: t }), void 0, n, !1);
+ this.operations.push(o);
+ }
+ }
+ }
+ }
+ class Wd {
+ constructor(e, t, n) {
+ const { resolved: r } = e.deref(n);
+ (this.id = t),
+ (this.sectionId = fs + t),
+ (this.type = r.type),
+ (this.displayName = r['x-displayName'] || t),
+ (this.description = r.description || ''),
+ 'apiKey' === r.type && (this.apiKey = { name: r.name, in: r.in }),
+ 'http' === r.type && (this.http = { scheme: r.scheme, bearerFormat: r.bearerFormat }),
+ 'openIdConnect' === r.type && (this.openId = { connectUrl: r.openIdConnectUrl }),
+ 'oauth2' === r.type && r.flows && (this.flows = r.flows);
+ }
+ }
+ class Hd {
+ constructor(e) {
+ const t = (e.spec.components && e.spec.components.securitySchemes) || {};
+ this.schemes = Object.keys(t).map(n => new Wd(e, n, t[n]));
+ }
+ }
+ var Yd = Object.defineProperty,
+ Qd = Object.getOwnPropertySymbols,
+ Gd = Object.prototype.hasOwnProperty,
+ Xd = Object.prototype.propertyIsEnumerable,
+ Kd = (e, t, n) =>
+ t in e
+ ? Yd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Zd = (e, t) => {
+ for (var n in t || (t = {})) Gd.call(t, n) && Kd(e, n, t[n]);
+ if (Qd) for (var n of Qd(t)) Xd.call(t, n) && Kd(e, n, t[n]);
+ return e;
+ };
+ class Jd {
+ constructor(e, t, n) {
+ var r, i, o;
+ (this.options = n),
+ (this.parser = new fc(e, t, n)),
+ (this.info = new $l(this.parser, this.options)),
+ (this.externalDocs = this.parser.spec.externalDocs),
+ (this.contentItems = hf.buildStructure(this.parser, this.options)),
+ (this.securitySchemes = new Hd(this.parser));
+ const a = Zd(
+ Zd(
+ {},
+ null == (i = null == (r = this.parser) ? void 0 : r.spec)
+ ? void 0
+ : i['x-webhooks'],
+ ),
+ null == (o = this.parser) ? void 0 : o.spec.webhooks,
+ );
+ this.webhooks = new Vd(this.parser, n, a);
+ }
+ }
+ var ef = Object.defineProperty,
+ tf = Object.getOwnPropertyDescriptor,
+ nf = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? tf(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && ef(t, n, o), o;
+ };
+ class rf {
+ constructor(e, t, n) {
+ (this.items = []),
+ (this.active = !1),
+ (this.expanded = !1),
+ nn(this),
+ (this.id = t.id || e + '/' + ai(t.name)),
+ (this.type = e),
+ (this.name = t['x-displayName'] || t.name),
+ (this.level = t.level || 1),
+ (this.sidebarLabel = this.name),
+ (this.description = t.description || '');
+ const r = t.items;
+ r &&
+ r.length &&
+ (this.description = Rl.getTextBeforeHading(this.description, r[0].name)),
+ (this.parent = n),
+ (this.externalDocs = t.externalDocs),
+ 'group' === this.type && (this.expanded = !0);
+ }
+ activate() {
+ this.active = !0;
+ }
+ expand() {
+ this.parent && this.parent.expand(), (this.expanded = !0);
+ }
+ collapse() {
+ 'group' !== this.type && (this.expanded = !1);
+ }
+ deactivate() {
+ this.active = !1;
+ }
+ }
+ nf([Ce], rf.prototype, 'active', 2),
+ nf([Ce], rf.prototype, 'expanded', 2),
+ nf([jt], rf.prototype, 'activate', 1),
+ nf([jt], rf.prototype, 'expand', 1),
+ nf([jt], rf.prototype, 'collapse', 1),
+ nf([jt], rf.prototype, 'deactivate', 1);
+ var of = Object.defineProperty,
+ af = Object.defineProperties,
+ sf = Object.getOwnPropertyDescriptors,
+ lf = Object.getOwnPropertySymbols,
+ cf = Object.prototype.hasOwnProperty,
+ uf = Object.prototype.propertyIsEnumerable,
+ pf = (e, t, n) =>
+ t in e
+ ? of(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ df = (e, t) => {
+ for (var n in t || (t = {})) cf.call(t, n) && pf(e, n, t[n]);
+ if (lf) for (var n of lf(t)) uf.call(t, n) && pf(e, n, t[n]);
+ return e;
+ },
+ ff = (e, t) => af(e, sf(t));
+ class hf {
+ static buildStructure(e, t) {
+ const n = e.spec,
+ r = [],
+ i = hf.getTagsWithOperations(e, n);
+ return (
+ r.push(...hf.addMarkdownItems(n.info.description || '', void 0, 1, t)),
+ n['x-tagGroups'] && n['x-tagGroups'].length > 0
+ ? r.push(...hf.getTagGroupsItems(e, void 0, n['x-tagGroups'], i, t))
+ : r.push(...hf.getTagsItems(e, i, void 0, void 0, t)),
+ r
+ );
+ }
+ static addMarkdownItems(e, t, n, r) {
+ const i = new Rl(r, null == t ? void 0 : t.id).extractHeadings(e || '');
+ i.length &&
+ t &&
+ t.description &&
+ (t.description = Rl.getTextBeforeHading(t.description, i[0].name));
+ const o = (e, t, n = 1) =>
+ t.map(t => {
+ const r = new rf('section', t, e);
+ return (r.depth = n), t.items && (r.items = o(r, t.items, n + 1)), r;
+ });
+ return o(t, i, n);
+ }
+ static getTagGroupsItems(e, t, n, r, i) {
+ const o = [];
+ for (const a of n) {
+ const n = new rf('group', a, t);
+ (n.depth = 0), (n.items = hf.getTagsItems(e, r, n, a, i)), o.push(n);
+ }
+ return o;
+ }
+ static getTagsItems(e, t, n, r, i) {
+ let o;
+ o = void 0 === r ? Object.keys(t) : r.tags;
+ const a = o.map(e =>
+ t[e]
+ ? ((t[e].used = !0), t[e])
+ : (console.warn(`Non-existing tag "${e}" is added to the group "${r.name}"`),
+ null),
+ ),
+ s = [];
+ for (const t of a) {
+ if (!t) continue;
+ const r = new rf('tag', t, n);
+ if (((r.depth = 1), '' === t.name)) {
+ const n = [
+ ...hf.addMarkdownItems(t.description || '', r, r.depth + 1, i),
+ ...this.getOperationsItems(e, void 0, t, r.depth + 1, i),
+ ];
+ s.push(...n);
+ continue;
+ }
+ const o = this.getTagRelatedSchema({ parser: e, tag: t, parent: r });
+ (r.items = [
+ ...o,
+ ...hf.addMarkdownItems(t.description || '', r, r.depth + 1, i),
+ ...this.getOperationsItems(e, r, t, r.depth + 1, i),
+ ]),
+ s.push(r);
+ }
+ return i.sortTagsAlphabetically && s.sort(Ps('name')), s;
+ }
+ static getOperationsItems(e, t, n, r, i) {
+ if (0 === n.operations.length) return [];
+ const o = [];
+ for (const a of n.operations) {
+ const n = new Ou(e, a, t, i);
+ (n.depth = r), o.push(n);
+ }
+ return i.sortOperationsAlphabetically && o.sort(Ps('name')), o;
+ }
+ static getTagsWithOperations(e, t) {
+ const n = {},
+ r = t['x-webhooks'] || t.webhooks;
+ for (const e of t.tags || []) n[e.name] = ff(df({}, e), { operations: [] });
+ function i(e, t, r) {
+ for (const o of Object.keys(t)) {
+ const a = t[o],
+ s = Object.keys(a).filter(Xa);
+ for (const t of s) {
+ const s = a[t];
+ if (a.$ref) {
+ const { resolved: t } = e.deref(a);
+ i(e, { [o]: t }, r);
+ continue;
+ }
+ let l = null == s ? void 0 : s.tags;
+ (l && l.length) || (l = ['']);
+ for (const e of l) {
+ let i = n[e];
+ void 0 === i && ((i = { name: e, operations: [] }), (n[e] = i)),
+ i['x-traitTag'] ||
+ i.operations.push(
+ ff(df({}, s), {
+ pathName: o,
+ pointer: Na.compile(['paths', o, t]),
+ httpVerb: t,
+ pathParameters: a.parameters || [],
+ pathServers: a.servers,
+ isWebhook: !!r,
+ }),
+ );
+ }
+ }
+ }
+ }
+ return r && i(e, r, !0), t.paths && i(e, t.paths), n;
+ }
+ static getTagRelatedSchema({ parser: e, tag: t, parent: n }) {
+ var r;
+ return Object.entries((null == (r = e.spec.components) ? void 0 : r.schemas) || {})
+ .map(([e, r]) => {
+ const i = r['x-tags'];
+ if (!(null == i ? void 0 : i.includes(t.name))) return null;
+ const o = new rf(
+ 'schema',
+ {
+ name: e,
+ 'x-displayName': `${r.title || e}`,
+ description: ``,
+ },
+ n,
+ );
+ return (o.depth = n.depth + 1), o;
+ })
+ .filter(Boolean);
+ }
+ }
+ var mf = Object.defineProperty,
+ gf = Object.getOwnPropertyDescriptor,
+ yf = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? gf(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && mf(t, n, o), o;
+ };
+ const vf = 'data-section-id';
+ class bf {
+ constructor(e, t, n) {
+ (this.scroll = t),
+ (this.history = n),
+ (this.activeItemIdx = -1),
+ (this.sideBarOpened = !1),
+ (this.updateOnScroll = e => {
+ const t = e ? 1 : -1;
+ let n = this.activeItemIdx;
+ for (; (-1 !== n || e) && !(n >= this.flatItems.length - 1 && e); ) {
+ if (e) {
+ const e = this.getElementAtOrFirstChild(n + 1);
+ if (this.scroll.isElementBellow(e)) break;
+ } else {
+ const e = this.getElementAt(n);
+ if (this.scroll.isElementAbove(e)) break;
+ }
+ n += t;
+ }
+ this.activate(this.flatItems[n], !0, !0);
+ }),
+ (this.updateOnHistory = (e = this.history.currentId) => {
+ if (!e) return;
+ let t;
+ (t = this.flatItems.find(t => t.id === e)),
+ t
+ ? this.activateAndScroll(t, !1)
+ : (e.startsWith(fs) &&
+ ((t = this.flatItems.find(e => fs.startsWith(e.id))),
+ this.activateAndScroll(t, !1)),
+ this.scroll.scrollIntoViewBySelector(`[${vf}="${li(e)}"]`));
+ }),
+ (this.getItemById = e => this.flatItems.find(t => t.id === e)),
+ nn(this),
+ (this.items = e.contentItems),
+ (this.flatItems = (function (e, t) {
+ const n = [],
+ r = e => {
+ for (const i of e) n.push(i), i[t] && r(i[t]);
+ };
+ return r(e), n;
+ })(this.items || [], 'items')),
+ this.flatItems.forEach((e, t) => (e.absoluteIdx = t)),
+ this.subscribe();
+ }
+ static updateOnHistory(e = Ns.currentId, t) {
+ e && t.scrollIntoViewBySelector(`[${vf}="${li(e)}"]`);
+ }
+ subscribe() {
+ (this._unsubscribe = this.scroll.subscribe(this.updateOnScroll)),
+ (this._hashUnsubscribe = this.history.subscribe(this.updateOnHistory));
+ }
+ toggleSidebar() {
+ this.sideBarOpened = !this.sideBarOpened;
+ }
+ closeSidebar() {
+ this.sideBarOpened = !1;
+ }
+ getElementAt(e) {
+ const t = this.flatItems[e];
+ return (t && Gr(`[${vf}="${li(t.id)}"]`)) || null;
+ }
+ getElementAtOrFirstChild(e) {
+ let t = this.flatItems[e];
+ return (
+ t && 'group' === t.type && (t = t.items[0]),
+ (t && Gr(`[${vf}="${li(t.id)}"]`)) || null
+ );
+ }
+ get activeItem() {
+ return this.flatItems[this.activeItemIdx] || void 0;
+ }
+ activate(e, t = !0, n = !1) {
+ if (
+ (this.activeItem && this.activeItem.id) !== (e && e.id) &&
+ (!e || 'group' !== e.type)
+ ) {
+ if ((this.deactivate(this.activeItem), !e))
+ return (this.activeItemIdx = -1), void this.history.replace('', n);
+ e.depth <= 0 ||
+ ((this.activeItemIdx = e.absoluteIdx),
+ t && this.history.replace(encodeURI(e.id), n),
+ e.activate(),
+ e.expand());
+ }
+ }
+ deactivate(e) {
+ if (void 0 !== e) for (e.deactivate(); void 0 !== e; ) e.collapse(), (e = e.parent);
+ }
+ activateAndScroll(e, t, n) {
+ const r = (e && this.getItemById(e.id)) || e;
+ this.activate(r, t, n),
+ this.scrollToActive(),
+ (r && r.items.length) || this.closeSidebar();
+ }
+ scrollToActive() {
+ this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx));
+ }
+ dispose() {
+ this._unsubscribe(), this._hashUnsubscribe();
+ }
+ }
+ yf([Ce], bf.prototype, 'activeItemIdx', 2),
+ yf([Ce], bf.prototype, 'sideBarOpened', 2),
+ yf([jt], bf.prototype, 'toggleSidebar', 1),
+ yf([jt], bf.prototype, 'closeSidebar', 1),
+ yf([jt], bf.prototype, 'activate', 1),
+ yf([jt.bound], bf.prototype, 'activateAndScroll', 1);
+ var xf = Object.defineProperty,
+ wf = Object.getOwnPropertyDescriptor;
+ const kf = 'scroll';
+ class Of {
+ constructor(e) {
+ (this.options = e),
+ (this._prevOffsetY = 0),
+ (this._scrollParent = Qr ? window : void 0),
+ (this._emiter = new Ta()),
+ this.bind();
+ }
+ bind() {
+ (this._prevOffsetY = this.scrollY()),
+ this._scrollParent &&
+ this._scrollParent.addEventListener('scroll', this.handleScroll);
+ }
+ dispose() {
+ this._scrollParent &&
+ this._scrollParent.removeEventListener('scroll', this.handleScroll),
+ this._emiter.removeAllListeners(kf);
+ }
+ scrollY() {
+ return 'undefined' != typeof HTMLElement && this._scrollParent instanceof HTMLElement
+ ? this._scrollParent.scrollTop
+ : void 0 !== this._scrollParent
+ ? this._scrollParent.pageYOffset
+ : 0;
+ }
+ isElementBellow(e) {
+ if (null !== e) return e.getBoundingClientRect().top > this.options.scrollYOffset();
+ }
+ isElementAbove(e) {
+ if (null === e) return;
+ const t = e.getBoundingClientRect().top;
+ return (t > 0 ? Math.floor(t) : Math.ceil(t)) <= this.options.scrollYOffset();
+ }
+ subscribe(e) {
+ const t = this._emiter.addListener(kf, e);
+ return () => t.removeListener(kf, e);
+ }
+ scrollIntoView(e) {
+ null !== e &&
+ (e.scrollIntoView(),
+ this._scrollParent &&
+ this._scrollParent.scrollBy &&
+ this._scrollParent.scrollBy(0, 1 - this.options.scrollYOffset()));
+ }
+ scrollIntoViewBySelector(e) {
+ const t = Gr(e);
+ this.scrollIntoView(t);
+ }
+ handleScroll() {
+ const e = this.scrollY() - this._prevOffsetY > 0;
+ (this._prevOffsetY = this.scrollY()), this._emiter.emit(kf, e);
+ }
+ }
+ ((e, t, n, r) => {
+ for (var i, o = wf(t, n), a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = i(t, n, o) || o);
+ o && xf(t, n, o);
+ })(
+ [
+ Pa.bind,
+ (100,
+ (e, t, n) => {
+ n.value = (function (e, t) {
+ let n,
+ r,
+ i,
+ o = null,
+ a = 0;
+ const s = () => {
+ (a = new Date().getTime()), (o = null), (i = e.apply(n, r)), o || (n = r = null);
+ };
+ return function () {
+ const t = new Date().getTime(),
+ l = 100 - (t - a);
+ return (
+ (n = this),
+ (r = arguments),
+ l <= 0 || l > 100
+ ? (o && (clearTimeout(o), (o = null)),
+ (a = t),
+ (i = e.apply(n, r)),
+ o || (n = r = null))
+ : o || (o = setTimeout(s, l)),
+ i
+ );
+ };
+ })(n.value);
+ }),
+ ],
+ Of.prototype,
+ 'handleScroll',
+ );
+ class Sf {
+ constructor() {
+ this.searchWorker = (function () {
+ let e;
+ if (Qr)
+ try {
+ e = r(6595);
+ } catch (t) {
+ e = r(4798).default;
+ }
+ else e = r(4798).default;
+ return new e();
+ })();
+ }
+ indexItems(e) {
+ const t = e => {
+ e.forEach(e => {
+ 'group' !== e.type &&
+ this.add(e.name, (e.description || '').concat(' ', e.path || ''), e.id),
+ t(e.items);
+ });
+ };
+ t(e), this.searchWorker.done();
+ }
+ add(e, t, n) {
+ this.searchWorker.add(e, t, n);
+ }
+ dispose() {
+ this.searchWorker.terminate(), this.searchWorker.dispose();
+ }
+ search(e) {
+ return this.searchWorker.search(e);
+ }
+ toJS() {
+ return (
+ (e = this),
+ null,
+ (t = function* () {
+ return this.searchWorker.toJS();
+ }),
+ new Promise((n, r) => {
+ var i = e => {
+ try {
+ a(t.next(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ o = e => {
+ try {
+ a(t.throw(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ a = e => (e.done ? n(e.value) : Promise.resolve(e.value).then(i, o));
+ a((t = t.apply(e, null)).next());
+ })
+ );
+ var e, t;
+ }
+ load(e) {
+ this.searchWorker.load(e);
+ }
+ fromExternalJS(e, t) {
+ e && t && this.searchWorker.fromExternalJS(e, t);
+ }
+ }
+ var Ef = Object.defineProperty,
+ _f = Object.getOwnPropertySymbols,
+ Af = Object.prototype.hasOwnProperty,
+ jf = Object.prototype.propertyIsEnumerable,
+ Cf = (e, t, n) =>
+ t in e
+ ? Ef(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Pf = (e, t) => {
+ for (var n in t || (t = {})) Af.call(t, n) && Cf(e, n, t[n]);
+ if (_f) for (var n of _f(t)) jf.call(t, n) && Cf(e, n, t[n]);
+ return e;
+ };
+ function Tf(e) {
+ const { Label: t = $d, Dropdown: r = Id } = e;
+ return 1 === e.options.length
+ ? n.createElement(t, null, e.options[0].value)
+ : n.createElement(r, Pf({}, e));
+ }
+ var Rf = r(7856);
+ const If = ca`
+ a {
+ text-decoration: ${e => e.theme.typography.links.textDecoration};
+ color: ${e => e.theme.typography.links.color};
+
+ &:visited {
+ color: ${e => e.theme.typography.links.visited};
+ }
+
+ &:hover {
+ color: ${e => e.theme.typography.links.hover};
+ text-decoration: ${e => e.theme.typography.links.hoverTextDecoration};
+ }
+ }
+`,
+ $f = ha(Wp)`
+ font-family: ${e => e.theme.typography.fontFamily};
+ font-weight: ${e => e.theme.typography.fontWeightRegular};
+ line-height: ${e => e.theme.typography.lineHeight};
+
+ p {
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+
+ ${({ $compact: e }) =>
+ e &&
+ '\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n '}
+
+ ${({ $inline: e }) => e && ' p {\n display: inline-block;\n }'}
+
+ h1 {
+ ${Pu(1)};
+ color: ${e => e.theme.colors.primary.main};
+ margin-top: 0;
+ }
+
+ h2 {
+ ${Pu(2)};
+ color: ${e => e.theme.colors.text.primary};
+ }
+
+ code {
+ color: ${({ theme: e }) => e.typography.code.color};
+ background-color: ${({ theme: e }) => e.typography.code.backgroundColor};
+
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ border-radius: 2px;
+ border: 1px solid rgba(38, 50, 56, 0.1);
+ padding: 0 ${({ theme: e }) => e.spacing.unit}px;
+ font-size: ${e => e.theme.typography.code.fontSize};
+ font-weight: ${({ theme: e }) => e.typography.code.fontWeight};
+
+ word-break: break-word;
+ }
+
+ pre {
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ white-space: ${({ theme: e }) => (e.typography.code.wrap ? 'pre-wrap' : 'pre')};
+ background-color: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ color: white;
+ padding: ${e => 4 * e.theme.spacing.unit}px;
+ overflow-x: auto;
+ line-height: normal;
+ border-radius: 0;
+ border: 1px solid rgba(38, 50, 56, 0.1);
+
+ code {
+ background-color: transparent;
+ color: white;
+ padding: 0;
+
+ &:before,
+ &:after {
+ content: none;
+ }
+ }
+ }
+
+ blockquote {
+ margin: 0;
+ margin-bottom: 1em;
+ padding: 0 15px;
+ color: #777;
+ border-left: 4px solid #ddd;
+ }
+
+ img {
+ max-width: 100%;
+ box-sizing: content-box;
+ }
+
+ ul,
+ ol {
+ padding-left: 2em;
+ margin: 0;
+ margin-bottom: 1em;
+
+ ul,
+ ol {
+ margin-bottom: 0;
+ margin-top: 0;
+ }
+ }
+
+ table {
+ display: block;
+ width: 100%;
+ overflow: auto;
+ word-break: normal;
+ word-break: keep-all;
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-top: 1.5em;
+ margin-bottom: 1.5em;
+ }
+
+ table tr {
+ background-color: #fff;
+ border-top: 1px solid #ccc;
+
+ &:nth-child(2n) {
+ background-color: ${({ theme: e }) => e.schema.nestedBackground};
+ }
+ }
+
+ table th,
+ table td {
+ padding: 6px 13px;
+ border: 1px solid #ddd;
+ }
+
+ table th {
+ text-align: left;
+ font-weight: bold;
+ }
+
+ ${Fu('.share-link')};
+
+ ${If}
+
+ ${ma('Markdown')};
+`;
+ var Nf = Object.defineProperty,
+ Lf = Object.defineProperties,
+ Df = Object.getOwnPropertyDescriptors,
+ Mf = Object.getOwnPropertySymbols,
+ Ff = Object.prototype.hasOwnProperty,
+ zf = Object.prototype.propertyIsEnumerable,
+ Uf = (e, t, n) =>
+ t in e
+ ? Nf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Bf = (e, t) => {
+ for (var n in t || (t = {})) Ff.call(t, n) && Uf(e, n, t[n]);
+ if (Mf) for (var n of Mf(t)) zf.call(t, n) && Uf(e, n, t[n]);
+ return e;
+ };
+ const qf = sa(e => n.createElement($f, Bf({}, e)))`
+ display: inline;
+`;
+ function Vf(e) {
+ var t = e,
+ { inline: r, compact: i } = t,
+ o = ((e, t) => {
+ var n = {};
+ for (var r in e) Ff.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && Mf)
+ for (var r of Mf(e)) t.indexOf(r) < 0 && zf.call(e, r) && (n[r] = e[r]);
+ return n;
+ })(t, ['inline', 'compact']);
+ const a = r ? qf : $f;
+ return n.createElement(Ea, null, e => {
+ return n.createElement(
+ a,
+ ((e, t) => Lf(e, Df(t)))(
+ Bf(
+ {
+ className: 'redoc-markdown ' + (o.className || ''),
+ dangerouslySetInnerHTML: {
+ __html: ((t = e.untrustedSpec), (s = o.html), t ? Rf.sanitize(s) : s),
+ },
+ 'data-role': o['data-role'],
+ },
+ o,
+ ),
+ { $inline: r, $compact: i },
+ ),
+ );
+ var t, s;
+ });
+ }
+ class Wf extends n.Component {
+ render() {
+ const { source: e, inline: t, compact: r, className: i, 'data-role': o } = this.props,
+ a = new Rl();
+ return n.createElement(Vf, {
+ html: a.renderMd(e),
+ inline: t,
+ compact: r,
+ className: i,
+ 'data-role': o,
+ });
+ }
+ }
+ const Hf = ha.div`
+ position: relative;
+`,
+ Yf = ha.div`
+ position: absolute;
+ min-width: 80px;
+ max-width: 500px;
+ background: #fff;
+ bottom: 100%;
+ left: 50%;
+ margin-bottom: 10px;
+ transform: translateX(-50%);
+
+ border-radius: 4px;
+ padding: 0.3em 0.6em;
+ text-align: center;
+ box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);
+`,
+ Qf = ha.div`
+ background: #fff;
+ color: #000;
+ display: inline;
+ font-size: 0.85em;
+ white-space: nowrap;
+`,
+ Gf = ha.div`
+ position: absolute;
+ width: 0;
+ height: 0;
+ bottom: -5px;
+ left: 50%;
+ margin-left: -5px;
+ border-left: solid transparent 5px;
+ border-right: solid transparent 5px;
+ border-top: solid #fff 5px;
+`,
+ Xf = ha.div`
+ position: absolute;
+ width: 100%;
+ height: 20px;
+ bottom: -20px;
+`;
+ class Kf extends n.Component {
+ render() {
+ const { open: e, title: t, children: r } = this.props;
+ return n.createElement(
+ Hf,
+ null,
+ r,
+ e &&
+ n.createElement(
+ Yf,
+ null,
+ n.createElement(Qf, null, t),
+ n.createElement(Gf, null),
+ n.createElement(Xf, null),
+ ),
+ );
+ }
+ }
+ const Zf =
+ 'undefined' != typeof document &&
+ document.queryCommandSupported &&
+ document.queryCommandSupported('copy');
+ class Jf {
+ static isSupported() {
+ return Zf;
+ }
+ static selectElement(e) {
+ let t, n;
+ document.body.createTextRange
+ ? ((t = document.body.createTextRange()), t.moveToElementText(e), t.select())
+ : document.createRange &&
+ window.getSelection &&
+ ((n = window.getSelection()),
+ (t = document.createRange()),
+ t.selectNodeContents(e),
+ n.removeAllRanges(),
+ n.addRange(t));
+ }
+ static deselect() {
+ if (document.selection) document.selection.empty();
+ else if (window.getSelection) {
+ const e = window.getSelection();
+ e && e.removeAllRanges();
+ }
+ }
+ static copySelected() {
+ let e;
+ try {
+ e = document.execCommand('copy');
+ } catch (t) {
+ e = !1;
+ }
+ return e;
+ }
+ static copyElement(e) {
+ Jf.selectElement(e);
+ const t = Jf.copySelected();
+ return t && Jf.deselect(), t;
+ }
+ static copyCustom(e) {
+ const t = document.createElement('textarea');
+ (t.style.position = 'fixed'),
+ (t.style.top = '0'),
+ (t.style.left = '0'),
+ (t.style.width = '2em'),
+ (t.style.height = '2em'),
+ (t.style.padding = '0'),
+ (t.style.border = 'none'),
+ (t.style.outline = 'none'),
+ (t.style.boxShadow = 'none'),
+ (t.style.background = 'transparent'),
+ (t.value = e),
+ document.body.appendChild(t),
+ t.select();
+ const n = Jf.copySelected();
+ return document.body.removeChild(t), n;
+ }
+ }
+ const eh = e => {
+ const [t, r] = n.useState(!1),
+ i = () => {
+ const t = 'string' == typeof e.data ? e.data : JSON.stringify(e.data, null, 2);
+ Jf.copyCustom(t), o();
+ },
+ o = () => {
+ r(!0),
+ setTimeout(() => {
+ r(!1);
+ }, 1500);
+ };
+ return e.children({
+ renderCopyButton: () =>
+ n.createElement(
+ 'button',
+ { onClick: i },
+ n.createElement(
+ Kf,
+ { title: Jf.isSupported() ? 'Copied' : 'Not supported in your browser', open: t },
+ 'Copy',
+ ),
+ ),
+ });
+ };
+ let th = 1;
+ function nh(e, t) {
+ th = 1;
+ let n = '';
+ return (
+ (n += ''),
+ (n += ''),
+ (n += sh(e, t)),
+ (n += '
'),
+ (n += '
'),
+ n
+ );
+ }
+ function rh(e) {
+ return void 0 !== e
+ ? e
+ .toString()
+ .replace(/&/g, '&')
+ .replace(/"/g, '"')
+ .replace(//g, '>')
+ : '';
+ }
+ function ih(e) {
+ return JSON.stringify(e).slice(1, -1);
+ }
+ function oh(e, t) {
+ return '' + rh(e) + '';
+ }
+ function ah(e) {
+ return '' + e + '';
+ }
+ function sh(e, t) {
+ const n = typeof e;
+ let r = '';
+ return (
+ null == e
+ ? (r += oh('null', 'token keyword'))
+ : e && e.constructor === Array
+ ? (th++,
+ (r += (function (e, t) {
+ const n = th > t ? 'collapsed' : '';
+ let r = `${ah(
+ '[',
+ )}`,
+ i = !1;
+ const o = e.length;
+ for (let a = 0; a < o; a++)
+ (i = !0),
+ (r += ''),
+ (r += sh(e[a], t)),
+ a < o - 1 && (r += ','),
+ (r += '
');
+ return (r += `
${ah(']')}`), i || (r = ah('[ ]')), r;
+ })(e, t)),
+ th--)
+ : e && e.constructor === Date
+ ? (r += oh('"' + e.toISOString() + '"', 'token string'))
+ : 'object' === n
+ ? (th++,
+ (r += (function (e, t) {
+ const n = th > t ? 'collapsed' : '',
+ r = Object.keys(e),
+ i = r.length;
+ let o = `${ah(
+ '{',
+ )}`,
+ a = !1;
+ for (let s = 0; s < i; s++) {
+ const l = r[s];
+ (a = !0),
+ (o += ''),
+ (o += '"' + rh(l) + '": '),
+ (o += sh(e[l], t)),
+ s < i - 1 && (o += ah(',')),
+ (o += '
');
+ }
+ return (o += `
${ah('}')}`), a || (o = ah('{ }')), o;
+ })(e, t)),
+ th--)
+ : 'number' === n
+ ? (r += oh(e, 'token number'))
+ : 'string' === n
+ ? /^(http|https):\/\/[^\s]+$/.test(e)
+ ? (r +=
+ oh('"', 'token string') +
+ '' +
+ rh(ih(e)) +
+ '' +
+ oh('"', 'token string'))
+ : (r += oh('"' + ih(e) + '"', 'token string'))
+ : 'boolean' === n && (r += oh(e, 'token boolean')),
+ r
+ );
+ }
+ const lh = ca`
+ .redoc-json code > .collapser {
+ display: none;
+ pointer-events: none;
+ }
+
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ font-size: ${e => e.theme.typography.code.fontSize};
+
+ white-space: ${({ theme: e }) => (e.typography.code.wrap ? 'pre-wrap' : 'pre')};
+ contain: content;
+ overflow-x: auto;
+
+ .callback-function {
+ color: gray;
+ }
+
+ .collapser:after {
+ content: '-';
+ cursor: pointer;
+ }
+
+ .collapsed > .collapser:after {
+ content: '+';
+ cursor: pointer;
+ }
+
+ .ellipsis:after {
+ content: ' … ';
+ }
+
+ .collapsible {
+ margin-left: 2em;
+ }
+
+ .hoverable {
+ padding-top: 1px;
+ padding-bottom: 1px;
+ padding-left: 2px;
+ padding-right: 2px;
+ border-radius: 2px;
+ }
+
+ .hovered {
+ background-color: rgba(235, 238, 249, 1);
+ }
+
+ .collapser {
+ background-color: transparent;
+ border: 0;
+ color: #fff;
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ font-size: ${e => e.theme.typography.code.fontSize};
+ padding-right: 6px;
+ padding-left: 6px;
+ padding-top: 0;
+ padding-bottom: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 15px;
+ height: 15px;
+ position: absolute;
+ top: 4px;
+ left: -1.5em;
+ cursor: default;
+ user-select: none;
+ -webkit-user-select: none;
+ padding: 2px;
+ &:focus {
+ outline-color: #fff;
+ outline-style: dotted;
+ outline-width: 1px;
+ }
+ }
+
+ ul {
+ list-style-type: none;
+ padding: 0px;
+ margin: 0px 0px 0px 26px;
+ }
+
+ li {
+ position: relative;
+ display: block;
+ }
+
+ .hoverable {
+ display: inline-block;
+ }
+
+ .selected {
+ outline-style: solid;
+ outline-width: 1px;
+ outline-style: dotted;
+ }
+
+ .collapsed > .collapsible {
+ display: none;
+ }
+
+ .ellipsis {
+ display: none;
+ }
+
+ .collapsed > .ellipsis {
+ display: inherit;
+ }
+`,
+ ch = ha.div`
+ &:hover > ${Hp} {
+ opacity: 1;
+ }
+`,
+ uh = ha(e => {
+ const [t, r] = n.useState(),
+ i = ({ renderCopyButton: t }) => {
+ const i =
+ e.data && Object.values(e.data).some(e => 'object' == typeof e && null !== e);
+ return n.createElement(
+ ch,
+ null,
+ n.createElement(
+ Hp,
+ null,
+ t(),
+ i &&
+ n.createElement(
+ n.Fragment,
+ null,
+ n.createElement('button', { onClick: o }, ' Expand all '),
+ n.createElement('button', { onClick: a }, ' Collapse all '),
+ ),
+ ),
+ n.createElement(Oa.Consumer, null, t =>
+ n.createElement(Wp, {
+ className: e.className,
+ ref: e => r(e),
+ dangerouslySetInnerHTML: { __html: nh(e.data, t.jsonSampleExpandLevel) },
+ }),
+ ),
+ );
+ },
+ o = () => {
+ const e = null == t ? void 0 : t.getElementsByClassName('collapsible');
+ for (const t of Array.prototype.slice.call(e)) {
+ const e = t.parentNode;
+ e.classList.remove('collapsed'),
+ e.querySelector('.collapser').setAttribute('aria-label', 'collapse');
+ }
+ },
+ a = () => {
+ const e = null == t ? void 0 : t.getElementsByClassName('collapsible'),
+ n = Array.prototype.slice.call(e, 1);
+ for (const e of n) {
+ const t = e.parentNode;
+ t.classList.add('collapsed'),
+ t.querySelector('.collapser').setAttribute('aria-label', 'expand');
+ }
+ },
+ s = e => {
+ let t;
+ 'collapser' === e.className &&
+ ((t = e.parentElement.getElementsByClassName('collapsible')[0]),
+ t.parentElement.classList.contains('collapsed')
+ ? (t.parentElement.classList.remove('collapsed'),
+ e.setAttribute('aria-label', 'collapse'))
+ : (t.parentElement.classList.add('collapsed'),
+ e.setAttribute('aria-label', 'expand')));
+ },
+ l = n.useCallback(e => {
+ s(e.target);
+ }, []),
+ c = n.useCallback(e => {
+ 'Enter' === e.key && s(e.target);
+ }, []);
+ return (
+ n.useEffect(
+ () => (
+ null == t || t.addEventListener('click', l),
+ null == t || t.addEventListener('focus', c),
+ () => {
+ null == t || t.removeEventListener('click', l),
+ null == t || t.removeEventListener('focus', c);
+ }
+ ),
+ [l, c, t],
+ ),
+ n.createElement(eh, { data: e.data }, i)
+ );
+ })`
+ ${lh};
+`,
+ ph = e => {
+ const { source: t, lang: r } = e;
+ return n.createElement(Qp, { dangerouslySetInnerHTML: { __html: vs(t, r) } });
+ },
+ dh = e => {
+ const { source: t, lang: r } = e;
+ return n.createElement(eh, { data: t }, ({ renderCopyButton: e }) =>
+ n.createElement(
+ Yp,
+ null,
+ n.createElement(Hp, null, e()),
+ n.createElement(ph, { lang: r, source: t }),
+ ),
+ );
+ };
+ function fh({ value: e, mimeType: t }) {
+ return Ja(t)
+ ? n.createElement(uh, { data: e })
+ : ('object' == typeof e && (e = JSON.stringify(e, null, 2)),
+ n.createElement(dh, {
+ lang:
+ ((r = t),
+ -1 !== r.search(/xml/i)
+ ? 'xml'
+ : -1 !== r.search(/csv/i)
+ ? 'csv'
+ : -1 !== r.search(/plain/i)
+ ? 'tex'
+ : 'clike'),
+ source: e,
+ }));
+ var r;
+ }
+ var hh = (e, t, n) =>
+ new Promise((r, i) => {
+ var o = e => {
+ try {
+ s(n.next(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ a = e => {
+ try {
+ s(n.throw(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ s = e => (e.done ? r(e.value) : Promise.resolve(e.value).then(o, a));
+ s((n = n.apply(e, t)).next());
+ });
+ function mh({ example: e, mimeType: t }) {
+ return void 0 === e.value && e.externalValueUrl
+ ? n.createElement(gh, { example: e, mimeType: t })
+ : n.createElement(fh, { value: e.value, mimeType: t });
+ }
+ function gh({ example: e, mimeType: t }) {
+ const r = (function (e, t) {
+ const [, r] = (0, n.useState)(!0),
+ i = (0, n.useRef)(void 0),
+ o = (0, n.useRef)(void 0);
+ return (
+ o.current !== e && (i.current = void 0),
+ (o.current = e),
+ (0, n.useEffect)(() => {
+ (() => {
+ hh(this, null, function* () {
+ r(!0);
+ try {
+ i.current = yield e.getExternalValue(t);
+ } catch (e) {
+ i.current = e;
+ }
+ r(!1);
+ });
+ })();
+ }, [e, t]),
+ i.current
+ );
+ })(e, t);
+ return void 0 === r
+ ? n.createElement('span', null, 'Loading...')
+ : r instanceof Error
+ ? n.createElement(
+ Qp,
+ null,
+ 'Error loading external example: ',
+ n.createElement('br', null),
+ n.createElement(
+ 'a',
+ {
+ className: 'token string',
+ href: e.externalValueUrl,
+ target: '_blank',
+ rel: 'noopener noreferrer',
+ },
+ e.externalValueUrl,
+ ),
+ )
+ : n.createElement(fh, { value: r, mimeType: t });
+ }
+ const yh = ha.div`
+ padding: 0.9em;
+ background-color: ${({ theme: e }) => Wr(0.6, e.rightPanel.backgroundColor)};
+ margin: 0 0 10px 0;
+ display: block;
+ font-family: ${({ theme: e }) => e.typography.headings.fontFamily};
+ font-size: 0.929em;
+ line-height: 1.5em;
+`,
+ vh = ha.span`
+ font-family: ${({ theme: e }) => e.typography.headings.fontFamily};
+ font-size: 12px;
+ position: absolute;
+ z-index: 1;
+ top: -11px;
+ left: 12px;
+ font-weight: ${({ theme: e }) => e.typography.fontWeightBold};
+ color: ${({ theme: e }) => Wr(0.3, e.rightPanel.textColor)};
+`,
+ bh = ha.div`
+ position: relative;
+`,
+ xh = ha(Rd)`
+ label {
+ color: ${({ theme: e }) => e.rightPanel.textColor};
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ font-size: 1em;
+ text-transform: none;
+ border: none;
+ }
+ margin: 0 0 10px 0;
+ display: block;
+ background-color: ${({ theme: e }) => Wr(0.6, e.rightPanel.backgroundColor)};
+ border: none;
+ padding: 0.9em 1.6em 0.9em 0.9em;
+ box-shadow: none;
+ &:hover,
+ &:focus-within {
+ border: none;
+ box-shadow: none;
+ background-color: ${({ theme: e }) => Wr(0.3, e.rightPanel.backgroundColor)};
+ }
+`,
+ wh = ha.div`
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ font-size: 12px;
+ color: #ee807f;
+`;
+ class kh extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.state = { activeIdx: 0 }),
+ (this.switchMedia = ({ idx: e }) => {
+ void 0 !== e && this.setState({ activeIdx: e });
+ });
+ }
+ render() {
+ const { activeIdx: e } = this.state,
+ t = this.props.mediaType.examples || {},
+ r = this.props.mediaType.name,
+ i = n.createElement(wh, null, 'No sample'),
+ o = Object.keys(t);
+ if (0 === o.length) return i;
+ if (o.length > 1) {
+ const i = o.map((e, n) => ({ value: t[e].summary || e, idx: n })),
+ a = t[o[e]],
+ s = a.description;
+ return n.createElement(
+ Oh,
+ null,
+ n.createElement(
+ bh,
+ null,
+ n.createElement(vh, null, 'Example'),
+ this.props.renderDropdown({
+ value: i[e].value,
+ options: i,
+ onChange: this.switchMedia,
+ ariaLabel: 'Example',
+ }),
+ ),
+ n.createElement(
+ 'div',
+ null,
+ s && n.createElement(Wf, { source: s }),
+ n.createElement(mh, { example: a, mimeType: r }),
+ ),
+ );
+ }
+ {
+ const e = t[o[0]];
+ return n.createElement(
+ Oh,
+ null,
+ e.description && n.createElement(Wf, { source: e.description }),
+ n.createElement(mh, { example: e, mimeType: r }),
+ );
+ }
+ }
+ }
+ const Oh = ha.div`
+ margin-top: 15px;
+`;
+ if (!n.useState) throw new Error('mobx-react-lite requires React with Hooks support');
+ if (!nn)
+ throw new Error('mobx-react-lite@3 requires mobx at least version 6 to be available');
+ function Sh(e) {
+ e();
+ }
+ var Eh = function (e, t) {
+ var n = 'function' == typeof Symbol && e[Symbol.iterator];
+ if (!n) return e;
+ var r,
+ i,
+ o = n.call(e),
+ a = [];
+ try {
+ for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value);
+ } catch (e) {
+ i = { error: e };
+ } finally {
+ try {
+ r && !r.done && (n = o.return) && n.call(o);
+ } finally {
+ if (i) throw i.error;
+ }
+ }
+ return a;
+ },
+ _h = [];
+ function Ah(e) {
+ return Mt(Vn(e, t));
+ var t;
+ }
+ var jh = 'undefined' == typeof FinalizationRegistry ? void 0 : FinalizationRegistry;
+ function Ch(e) {
+ return { reaction: e, mounted: !1, changedBeforeMount: !1, cleanAt: Date.now() + Ph };
+ }
+ var Ph = 1e4,
+ Th = jh
+ ? (function (e) {
+ var t = new Map(),
+ n = 1,
+ r = new e(function (e) {
+ var n = t.get(e);
+ n && (n.reaction.dispose(), t.delete(e));
+ });
+ return {
+ addReactionToTrack: function (e, i, o) {
+ var a = n++;
+ return (
+ r.register(o, a, e),
+ (e.current = Ch(i)),
+ (e.current.finalizationRegistryCleanupToken = a),
+ t.set(a, e.current),
+ e.current
+ );
+ },
+ recordReactionAsCommitted: function (e) {
+ r.unregister(e),
+ e.current &&
+ e.current.finalizationRegistryCleanupToken &&
+ t.delete(e.current.finalizationRegistryCleanupToken);
+ },
+ forceCleanupTimerToRunNowForTests: function () {},
+ resetCleanupScheduleForTests: function () {},
+ };
+ })(jh)
+ : (function () {
+ var e,
+ t = new Set();
+ function n() {
+ void 0 === e && (e = setTimeout(r, 1e4));
+ }
+ function r() {
+ e = void 0;
+ var r = Date.now();
+ t.forEach(function (e) {
+ var n = e.current;
+ n && r >= n.cleanAt && (n.reaction.dispose(), (e.current = null), t.delete(e));
+ }),
+ t.size > 0 && n();
+ }
+ return {
+ addReactionToTrack: function (e, r, i) {
+ var o;
+ return (e.current = Ch(r)), (o = e), t.add(o), n(), e.current;
+ },
+ recordReactionAsCommitted: function (e) {
+ t.delete(e);
+ },
+ forceCleanupTimerToRunNowForTests: function () {
+ e && (clearTimeout(e), r());
+ },
+ resetCleanupScheduleForTests: function () {
+ var n, r;
+ if (t.size > 0) {
+ try {
+ for (
+ var i = (function (e) {
+ var t = 'function' == typeof Symbol && Symbol.iterator,
+ n = t && e[t],
+ r = 0;
+ if (n) return n.call(e);
+ if (e && 'number' == typeof e.length)
+ return {
+ next: function () {
+ return (
+ e && r >= e.length && (e = void 0),
+ { value: e && e[r++], done: !e }
+ );
+ },
+ };
+ throw new TypeError(
+ t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.',
+ );
+ })(t),
+ o = i.next();
+ !o.done;
+ o = i.next()
+ ) {
+ var a = o.value,
+ s = a.current;
+ s && (s.reaction.dispose(), (a.current = null));
+ }
+ } catch (e) {
+ n = { error: e };
+ } finally {
+ try {
+ o && !o.done && (r = i.return) && r.call(i);
+ } finally {
+ if (n) throw n.error;
+ }
+ }
+ t.clear();
+ }
+ e && (clearTimeout(e), (e = void 0));
+ },
+ };
+ })(),
+ Rh = Th.addReactionToTrack,
+ Ih = Th.recordReactionAsCommitted,
+ $h = (Th.resetCleanupScheduleForTests, Th.forceCleanupTimerToRunNowForTests, !1);
+ function Nh() {
+ return $h;
+ }
+ var Lh = function (e, t) {
+ var n = 'function' == typeof Symbol && e[Symbol.iterator];
+ if (!n) return e;
+ var r,
+ i,
+ o = n.call(e),
+ a = [];
+ try {
+ for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value);
+ } catch (e) {
+ i = { error: e };
+ } finally {
+ try {
+ r && !r.done && (n = o.return) && n.call(o);
+ } finally {
+ if (i) throw i.error;
+ }
+ }
+ return a;
+ };
+ function Dh(e) {
+ return 'observer' + e;
+ }
+ var Mh = function () {};
+ function Fh(e, t) {
+ if ((void 0 === t && (t = 'observed'), Nh())) return e();
+ var r,
+ i = Lh(n.useState(new Mh()), 1)[0],
+ o =
+ ((r = Eh((0, n.useState)(0), 2)[1]),
+ (0, n.useCallback)(function () {
+ r(function (e) {
+ return e + 1;
+ });
+ }, _h)),
+ a = n.useRef(null);
+ if (!a.current)
+ var s = new mt(Dh(t), function () {
+ l.mounted ? o() : (l.changedBeforeMount = !0);
+ }),
+ l = Rh(a, s, i);
+ var c,
+ u,
+ p = a.current.reaction;
+ if (
+ (n.useDebugValue(p, Ah),
+ n.useEffect(function () {
+ return (
+ Ih(a),
+ a.current
+ ? ((a.current.mounted = !0),
+ a.current.changedBeforeMount && ((a.current.changedBeforeMount = !1), o()))
+ : ((a.current = {
+ reaction: new mt(Dh(t), function () {
+ o();
+ }),
+ mounted: !0,
+ changedBeforeMount: !1,
+ cleanAt: 1 / 0,
+ }),
+ o()),
+ function () {
+ a.current.reaction.dispose(), (a.current = null);
+ }
+ );
+ }, []),
+ p.track(function () {
+ try {
+ c = e();
+ } catch (e) {
+ u = e;
+ }
+ }),
+ u)
+ )
+ throw u;
+ return c;
+ }
+ var zh = function () {
+ return (
+ (zh =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n]))
+ Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }),
+ zh.apply(this, arguments)
+ );
+ };
+ var Uh = { $$typeof: !0, render: !0, compare: !0, type: !0 };
+ function Bh(e) {
+ var t = e.children,
+ n = e.render,
+ r = t || n;
+ return 'function' != typeof r ? null : Fh(r);
+ }
+ (Bh.displayName = 'Observer'),
+ (function (e) {
+ e || (e = Sh), Dt({ reactionScheduler: e });
+ })(o.unstable_batchedUpdates);
+ var qh = 0,
+ Vh = {};
+ function Wh(e) {
+ return (
+ Vh[e] ||
+ (Vh[e] = (function (e) {
+ if ('function' == typeof Symbol) return Symbol(e);
+ var t = '__$mobx-react ' + e + ' (' + qh + ')';
+ return qh++, t;
+ })(e)),
+ Vh[e]
+ );
+ }
+ function Hh(e, t) {
+ if (Yh(e, t)) return !0;
+ if ('object' != typeof e || null === e || 'object' != typeof t || null === t) return !1;
+ var n = Object.keys(e),
+ r = Object.keys(t);
+ if (n.length !== r.length) return !1;
+ for (var i = 0; i < n.length; i++)
+ if (!Object.hasOwnProperty.call(t, n[i]) || !Yh(e[n[i]], t[n[i]])) return !1;
+ return !0;
+ }
+ function Yh(e, t) {
+ return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
+ }
+ function Qh(e, t, n) {
+ Object.hasOwnProperty.call(e, t)
+ ? (e[t] = n)
+ : Object.defineProperty(e, t, {
+ enumerable: !1,
+ configurable: !0,
+ writable: !0,
+ value: n,
+ });
+ }
+ var Gh = Wh('patchMixins'),
+ Xh = Wh('patchedDefinition');
+ function Kh(e, t) {
+ for (
+ var n = this, r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2;
+ o < r;
+ o++
+ )
+ i[o - 2] = arguments[o];
+ t.locks++;
+ try {
+ var a;
+ return null != e && (a = e.apply(this, i)), a;
+ } finally {
+ t.locks--,
+ 0 === t.locks &&
+ t.methods.forEach(function (e) {
+ e.apply(n, i);
+ });
+ }
+ }
+ function Zh(e, t) {
+ return function () {
+ for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i];
+ Kh.call.apply(Kh, [this, e, t].concat(r));
+ };
+ }
+ function Jh(e, t, n) {
+ var r = (function (e, t) {
+ var n = (e[Gh] = e[Gh] || {}),
+ r = (n[t] = n[t] || {});
+ return (r.locks = r.locks || 0), (r.methods = r.methods || []), r;
+ })(e, t);
+ r.methods.indexOf(n) < 0 && r.methods.push(n);
+ var i = Object.getOwnPropertyDescriptor(e, t);
+ if (!i || !i[Xh]) {
+ var o = e[t],
+ a = em(e, t, i ? i.enumerable : void 0, r, o);
+ Object.defineProperty(e, t, a);
+ }
+ }
+ function em(e, t, n, r, i) {
+ var o,
+ a = Zh(i, r);
+ return (
+ ((o = {})[Xh] = !0),
+ (o.get = function () {
+ return a;
+ }),
+ (o.set = function (i) {
+ if (this === e) a = Zh(i, r);
+ else {
+ var o = em(this, t, n, r, i);
+ Object.defineProperty(this, t, o);
+ }
+ }),
+ (o.configurable = !0),
+ (o.enumerable = n),
+ o
+ );
+ }
+ var tm = W || '$mobx',
+ nm = Wh('isMobXReactObserver'),
+ rm = Wh('isUnmounted'),
+ im = Wh('skipRender'),
+ om = Wh('isForcingUpdate');
+ function am(e) {
+ var t = e.prototype;
+ if (e[nm]) {
+ var r = sm(t);
+ console.warn(
+ 'The provided component class (' +
+ r +
+ ') \n has already been declared as an observer component.',
+ );
+ } else e[nm] = !0;
+ if (t.componentWillReact)
+ throw new Error('The componentWillReact life-cycle event is no longer supported');
+ if (e.__proto__ !== n.PureComponent)
+ if (t.shouldComponentUpdate) {
+ if (t.shouldComponentUpdate !== cm)
+ throw new Error(
+ 'It is not allowed to use shouldComponentUpdate in observer based components.',
+ );
+ } else t.shouldComponentUpdate = cm;
+ um(t, 'props'), um(t, 'state');
+ var i = t.render;
+ return (
+ (t.render = function () {
+ return lm.call(this, i);
+ }),
+ Jh(t, 'componentWillUnmount', function () {
+ var e;
+ if (
+ !0 !== Nh() &&
+ (null == (e = this.render[tm]) || e.dispose(), (this[rm] = !0), !this.render[tm])
+ ) {
+ var t = sm(this);
+ console.warn(
+ 'The reactive render of an observer class component (' +
+ t +
+ ') \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.',
+ );
+ }
+ }),
+ e
+ );
+ }
+ function sm(e) {
+ return (
+ e.displayName ||
+ e.name ||
+ (e.constructor && (e.constructor.displayName || e.constructor.name)) ||
+ ''
+ );
+ }
+ function lm(e) {
+ var t = this;
+ if (!0 === Nh()) return e.call(this);
+ Qh(this, im, !1), Qh(this, om, !1);
+ var r = sm(this),
+ i = e.bind(this),
+ o = !1,
+ a = new mt(r + '.render()', function () {
+ if (!o && ((o = !0), !0 !== t[rm])) {
+ var e = !0;
+ try {
+ Qh(t, om, !0), t[im] || n.Component.prototype.forceUpdate.call(t), (e = !1);
+ } finally {
+ Qh(t, om, !1), e && a.dispose();
+ }
+ }
+ });
+ function s() {
+ o = !1;
+ var e = void 0,
+ t = void 0;
+ if (
+ (a.track(function () {
+ try {
+ t = (function (e, t) {
+ var n = ze(e);
+ try {
+ return t();
+ } finally {
+ Ue(n);
+ }
+ })(!1, i);
+ } catch (t) {
+ e = t;
+ }
+ }),
+ e)
+ )
+ throw e;
+ return t;
+ }
+ return (a.reactComponent = this), (s[tm] = a), (this.render = s), s.call(this);
+ }
+ function cm(e, t) {
+ return (
+ Nh() &&
+ console.warn(
+ '[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.',
+ ),
+ this.state !== t || !Hh(this.props, e)
+ );
+ }
+ function um(e, t) {
+ var n = Wh('reactProp_' + t + '_valueHolder'),
+ r = Wh('reactProp_' + t + '_atomHolder');
+ function i() {
+ return this[r] || Qh(this, r, Q('reactive ' + t)), this[r];
+ }
+ Object.defineProperty(e, t, {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var e = !1;
+ return (
+ nt && rt && (e = nt(!0)), i.call(this).reportObserved(), nt && rt && rt(e), this[n]
+ );
+ },
+ set: function (e) {
+ this[om] || Hh(this[n], e)
+ ? Qh(this, n, e)
+ : (Qh(this, n, e),
+ Qh(this, im, !0),
+ i.call(this).reportChanged(),
+ Qh(this, im, !1));
+ },
+ });
+ }
+ var pm = 'function' == typeof Symbol && Symbol.for,
+ dm = pm
+ ? Symbol.for('react.forward_ref')
+ : 'function' == typeof n.forwardRef &&
+ (0, n.forwardRef)(function (e) {
+ return null;
+ }).$$typeof,
+ fm = pm
+ ? Symbol.for('react.memo')
+ : 'function' == typeof n.memo &&
+ (0, n.memo)(function (e) {
+ return null;
+ }).$$typeof;
+ function hm(e) {
+ if (
+ (!0 === e.isMobxInjector &&
+ console.warn(
+ "Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'",
+ ),
+ fm && e.$$typeof === fm)
+ )
+ throw new Error(
+ "Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.",
+ );
+ if (dm && e.$$typeof === dm) {
+ var t = e.render;
+ if ('function' != typeof t)
+ throw new Error('render property of ForwardRef was not a function');
+ return (0, n.forwardRef)(function () {
+ var e = arguments;
+ return (0, n.createElement)(Bh, null, function () {
+ return t.apply(void 0, e);
+ });
+ });
+ }
+ return 'function' != typeof e ||
+ (e.prototype && e.prototype.render) ||
+ e.isReactClass ||
+ Object.prototype.isPrototypeOf.call(n.Component, e)
+ ? am(e)
+ : (function (e, t) {
+ if (Nh()) return e;
+ var r,
+ i,
+ o,
+ a = zh({ forwardRef: !1 }, t),
+ s = e.displayName || e.name,
+ l = function (t, n) {
+ return Fh(function () {
+ return e(t, n);
+ }, s);
+ };
+ return (
+ (l.displayName = s),
+ (r = a.forwardRef ? (0, n.memo)((0, n.forwardRef)(l)) : (0, n.memo)(l)),
+ (i = e),
+ (o = r),
+ Object.keys(i).forEach(function (e) {
+ Uh[e] || Object.defineProperty(o, e, Object.getOwnPropertyDescriptor(i, e));
+ }),
+ (r.displayName = s),
+ r
+ );
+ })(e);
+ }
+ if (!n.Component) throw new Error('mobx-react requires React to be available');
+ if (!Ce) throw new Error('mobx-react requires mobx to be available');
+ const mm = ha(Gu)`
+ button {
+ background-color: transparent;
+ border: 0;
+ outline: 0;
+ font-size: 13px;
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ cursor: pointer;
+ padding: 0;
+ color: ${e => e.theme.colors.text.primary};
+ &:focus {
+ font-weight: ${({ theme: e }) => e.typography.fontWeightBold};
+ }
+ ${({ kind: e }) =>
+ 'patternProperties' === e &&
+ ca`
+ display: inline-flex;
+ margin-right: 20px;
+
+ > span.property-name {
+ white-space: break-spaces;
+ text-align: left;
+
+ ::before,
+ ::after {
+ content: '/';
+ filter: opacity(0.2);
+ }
+ }
+
+ > svg {
+ align-self: center;
+ }
+ `}
+ }
+ ${qu} {
+ height: ${({ theme: e }) => e.schema.arrow.size};
+ width: ${({ theme: e }) => e.schema.arrow.size};
+ polygon {
+ fill: ${({ theme: e }) => e.schema.arrow.color};
+ }
+ }
+`,
+ gm = ha.span`
+ vertical-align: middle;
+ font-size: ${({ theme: e }) => e.typography.code.fontSize};
+ line-height: 20px;
+`,
+ ym = ha(gm)`
+ color: ${e => Wr(0.1, e.theme.schema.typeNameColor)};
+`,
+ vm = ha(gm)`
+ color: ${e => e.theme.schema.typeNameColor};
+`,
+ bm = ha(gm)`
+ color: ${e => e.theme.schema.typeTitleColor};
+ word-break: break-word;
+`,
+ xm = vm,
+ wm = ha(gm).attrs({ as: 'div' })`
+ color: ${e => e.theme.schema.requireLabelColor};
+ font-size: ${e => e.theme.schema.labelsTextSize};
+ font-weight: normal;
+ margin-left: 20px;
+ line-height: 1;
+`,
+ km = ha(wm)`
+ color: ${e => e.theme.colors.primary.light};
+`,
+ Om = ha(gm)`
+ color: ${({ theme: e }) => e.colors.warning.main};
+ font-size: 13px;
+`,
+ Sm = ha(gm)`
+ color: #0e7c86;
+ &::before,
+ &::after {
+ font-weight: bold;
+ }
+`,
+ Em = ha(gm)`
+ border-radius: 2px;
+ word-break: break-word;
+ ${({ theme: e }) =>
+ `\n background-color: ${Wr(0.95, e.colors.text.primary)};\n color: ${Wr(
+ 0.1,
+ e.colors.text.primary,
+ )};\n\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${Wr(
+ 0.9,
+ e.colors.text.primary,
+ )};\n font-family: ${e.typography.code.fontFamily};\n}`};
+ & + & {
+ margin-left: 0;
+ }
+ ${ma('ExampleValue')};
+`,
+ _m = ha(Em)``,
+ Am = ha(gm)`
+ border-radius: 2px;
+ ${({ theme: e }) =>
+ `\n background-color: ${Wr(0.95, e.colors.primary.light)};\n color: ${Wr(
+ 0.1,
+ e.colors.primary.main,
+ )};\n\n margin: 0 ${e.spacing.unit}px;\n padding: 0 ${
+ e.spacing.unit
+ }px;\n border: 1px solid ${Wr(0.9, e.colors.primary.main)};\n}`};
+ & + & {
+ margin-left: 0;
+ }
+ ${ma('ConstraintItem')};
+`,
+ jm = ha.button`
+ background-color: transparent;
+ border: 0;
+ color: ${({ theme: e }) => e.colors.text.secondary};
+ margin-left: ${({ theme: e }) => e.spacing.unit}px;
+ border-radius: 2px;
+ cursor: pointer;
+ outline-color: ${({ theme: e }) => e.colors.text.secondary};
+ font-size: 12px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ const Cm = ha.div`
+ ${If};
+ ${({ $compact: e }) => (e ? '' : 'margin: 1em 0')}
+`;
+ let Pm = class extends n.Component {
+ render() {
+ const { externalDocs: e } = this.props;
+ return e && e.url
+ ? n.createElement(
+ Cm,
+ { $compact: this.props.compact },
+ n.createElement('a', { href: e.url }, e.description || e.url),
+ )
+ : null;
+ }
+ };
+ Pm = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Pm);
+ class Tm extends n.PureComponent {
+ constructor() {
+ super(...arguments), (this.state = { collapsed: !0 });
+ }
+ toggle() {
+ this.setState({ collapsed: !this.state.collapsed });
+ }
+ render() {
+ const { values: e, isArrayType: t } = this.props,
+ { collapsed: r } = this.state,
+ { enumSkipQuotes: i, maxDisplayedEnumValues: o } = this.context;
+ if (!e.length) return null;
+ const a = this.state.collapsed && o ? e.slice(0, o) : e,
+ s = !!o && e.length > o,
+ l = o ? (r ? `… ${e.length - o} more` : 'Hide') : '';
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ gm,
+ null,
+ t ? di('enumArray') : '',
+ ' ',
+ 1 === e.length ? di('enumSingleValue') : di('enum'),
+ ':',
+ ),
+ ' ',
+ a.map((e, t) => {
+ const r = i ? String(e) : JSON.stringify(e);
+ return n.createElement(n.Fragment, { key: t }, n.createElement(Em, null, r), ' ');
+ }),
+ s
+ ? n.createElement(
+ Rm,
+ {
+ onClick: () => {
+ this.toggle();
+ },
+ },
+ l,
+ )
+ : null,
+ );
+ }
+ }
+ Tm.contextType = Oa;
+ const Rm = ha.span`
+ color: ${e => e.theme.colors.primary.main};
+ vertical-align: middle;
+ font-size: 13px;
+ line-height: 20px;
+ padding: 0 5px;
+ cursor: pointer;
+`,
+ Im = ha($f)`
+ margin: 2px 0;
+`;
+ class $m extends n.PureComponent {
+ render() {
+ const e = this.props.extensions;
+ return n.createElement(Oa.Consumer, null, t =>
+ n.createElement(
+ n.Fragment,
+ null,
+ t.showExtensions &&
+ Object.keys(e).map(t =>
+ n.createElement(
+ Im,
+ { key: t },
+ n.createElement(gm, null, ' ', t.substring(2), ': '),
+ ' ',
+ n.createElement(
+ _m,
+ null,
+ 'string' == typeof e[t] ? e[t] : JSON.stringify(e[t]),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ }
+ function Nm({ field: e }) {
+ return e.examples
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(gm, null, ' ', di('examples'), ': '),
+ ci(e.examples)
+ ? e.examples.map((t, r) => {
+ const i = is(e, t),
+ o = e.in ? String(i) : JSON.stringify(i);
+ return n.createElement(
+ n.Fragment,
+ { key: r },
+ n.createElement(Em, null, o),
+ ' ',
+ );
+ })
+ : n.createElement(
+ Lm,
+ null,
+ Object.values(e.examples).map((t, r) =>
+ n.createElement(
+ 'li',
+ { key: r + t.value },
+ n.createElement(Em, null, is(e, t.value)),
+ ' -',
+ ' ',
+ t.summary || t.description,
+ ),
+ ),
+ ),
+ )
+ : null;
+ }
+ const Lm = ha.ul`
+ margin-top: 1em;
+ list-style-position: outside;
+`;
+ class Dm extends n.PureComponent {
+ render() {
+ return 0 === this.props.constraints.length
+ ? null
+ : n.createElement(
+ 'span',
+ null,
+ ' ',
+ this.props.constraints.map(e => n.createElement(Am, { key: e }, ' ', e, ' ')),
+ );
+ }
+ }
+ const Mm = n.memo(function ({ value: e, label: t, raw: r }) {
+ if (void 0 === e) return null;
+ const i = r ? String(e) : JSON.stringify(e);
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(gm, null, ' ', t, ' '),
+ ' ',
+ n.createElement(Em, null, i),
+ );
+ }),
+ Fm = 45;
+ function zm(e) {
+ const t = e.schema.pattern,
+ { hideSchemaPattern: r } = n.useContext(Oa),
+ [i, o] = n.useState(!1),
+ a = n.useCallback(() => o(!i), [i]);
+ return !t || r
+ ? null
+ : n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(Sm, null, i || t.length < Fm ? t : `${t.substr(0, Fm)}...`),
+ t.length > Fm &&
+ n.createElement(jm, { onClick: a }, i ? 'Hide pattern' : 'Show pattern'),
+ );
+ }
+ function Um({ schema: e }) {
+ var t;
+ const { hideSchemaPattern: r } = n.useContext(Oa);
+ return e &&
+ (((null == e ? void 0 : e.pattern) && !r) ||
+ e.items ||
+ e.displayFormat ||
+ (null == (t = e.constraints) ? void 0 : t.length))
+ ? 'string' === e.type && e.pattern
+ ? n.createElement(Bm, null, '[', n.createElement(zm, { schema: e }), ']')
+ : n.createElement(
+ Bm,
+ null,
+ '[ items',
+ e.displayFormat && n.createElement(xm, null, ' <', e.displayFormat, ' >'),
+ n.createElement(Dm, { constraints: e.constraints }),
+ n.createElement(zm, { schema: e }),
+ e.items && n.createElement(Um, { schema: e.items }),
+ ' ]',
+ )
+ : null;
+ }
+ const Bm = ha(ym)`
+ margin: 0 5px;
+ vertical-align: text-top;
+`;
+ var qm = Object.defineProperty,
+ Vm = Object.getOwnPropertySymbols,
+ Wm = Object.prototype.hasOwnProperty,
+ Hm = Object.prototype.propertyIsEnumerable,
+ Ym = (e, t, n) =>
+ t in e
+ ? qm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Qm = (e, t) => {
+ for (var n in t || (t = {})) Wm.call(t, n) && Ym(e, n, t[n]);
+ if (Vm) for (var n of Vm(t)) Hm.call(t, n) && Ym(e, n, t[n]);
+ return e;
+ };
+ const Gm = hm(e => {
+ const { enumSkipQuotes: t, hideSchemaTitles: r } = n.useContext(Oa),
+ { showExamples: i, field: o, renderDiscriminatorSwitch: a } = e,
+ { schema: s, description: l, deprecated: c, extensions: u, in: p, const: d } = o,
+ f = 'array' === s.type,
+ h = t || 'header' === p,
+ m = n.useMemo(
+ () =>
+ !i || (void 0 === o.example && void 0 === o.examples)
+ ? null
+ : void 0 !== o.examples
+ ? n.createElement(Nm, { field: o })
+ : n.createElement(Mm, {
+ label: di('example') + ':',
+ value: is(o, o.example),
+ raw: Boolean(o.in),
+ }),
+ [o, i],
+ ),
+ g = ii(s.default) && o.in ? is(o, s.default).replace(`${o.name}=`, '') : s.default;
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(ym, null, s.typePrefix),
+ n.createElement(vm, null, s.displayType),
+ s.displayFormat && n.createElement(xm, null, ' ', '<', s.displayFormat, '>', ' '),
+ s.contentEncoding &&
+ n.createElement(xm, null, ' ', '<', s.contentEncoding, '>', ' '),
+ s.contentMediaType &&
+ n.createElement(xm, null, ' ', '<', s.contentMediaType, '>', ' '),
+ s.title && !r && n.createElement(bm, null, ' (', s.title, ') '),
+ n.createElement(Dm, { constraints: s.constraints }),
+ n.createElement(zm, { schema: s }),
+ s.isCircular && n.createElement(Om, null, ' ', di('recursive'), ' '),
+ f && s.items && n.createElement(Um, { schema: s.items }),
+ ),
+ c &&
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(Vu, { type: 'warning' }, ' ', di('deprecated'), ' '),
+ ),
+ n.createElement(Mm, { raw: h, label: di('default') + ':', value: g }),
+ !a && n.createElement(Tm, { isArrayType: f, values: s.enum }),
+ ' ',
+ m,
+ n.createElement($m, { extensions: Qm(Qm({}, u), s.extensions) }),
+ n.createElement('div', null, n.createElement(Wf, { compact: !0, source: l })),
+ s.externalDocs && n.createElement(Pm, { externalDocs: s.externalDocs, compact: !0 }),
+ (a && a(e)) || null,
+ (d && n.createElement(Mm, { label: di('const') + ':', value: d })) || null,
+ );
+ }),
+ Xm = n.memo(Gm);
+ var Km = Object.defineProperty,
+ Zm = (Object.getOwnPropertyDescriptor, Object.getOwnPropertySymbols),
+ Jm = Object.prototype.hasOwnProperty,
+ eg = Object.prototype.propertyIsEnumerable,
+ tg = (e, t, n) =>
+ t in e
+ ? Km(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ let ng = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.toggle = () => {
+ void 0 === this.props.field.expanded && this.props.expandByDefault
+ ? this.props.field.collapse()
+ : this.props.field.toggle();
+ }),
+ (this.handleKeyPress = e => {
+ 'Enter' === e.key && (e.preventDefault(), this.toggle());
+ });
+ }
+ render() {
+ const { className: e = '', field: t, isLast: r, expandByDefault: i } = this.props,
+ { name: o, deprecated: a, required: s, kind: l } = t,
+ c = !t.schema.isPrimitive && !t.schema.isCircular,
+ u = void 0 === t.expanded ? i : t.expanded,
+ p = n.createElement(
+ n.Fragment,
+ null,
+ 'additionalProperties' === l && n.createElement(km, null, 'additional property'),
+ 'patternProperties' === l && n.createElement(km, null, 'pattern property'),
+ s && n.createElement(wm, null, 'required'),
+ ),
+ d = c
+ ? n.createElement(
+ mm,
+ { className: a ? 'deprecated' : '', kind: l, title: o },
+ n.createElement(Ku, null),
+ n.createElement(
+ 'button',
+ {
+ onClick: this.toggle,
+ onKeyPress: this.handleKeyPress,
+ 'aria-label': `expand ${o}`,
+ },
+ n.createElement('span', { className: 'property-name' }, o),
+ n.createElement(qu, { direction: u ? 'down' : 'right' }),
+ ),
+ p,
+ )
+ : n.createElement(
+ Gu,
+ { className: a ? 'deprecated' : void 0, kind: l, title: o },
+ n.createElement(Ku, null),
+ n.createElement('span', { className: 'property-name' }, o),
+ p,
+ );
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ 'tr',
+ { className: r ? 'last ' + e : e },
+ d,
+ n.createElement(
+ Xu,
+ null,
+ n.createElement(
+ Xm,
+ ((e, t) => {
+ for (var n in t || (t = {})) Jm.call(t, n) && tg(e, n, t[n]);
+ if (Zm) for (var n of Zm(t)) eg.call(t, n) && tg(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ ),
+ ),
+ ),
+ u &&
+ c &&
+ n.createElement(
+ 'tr',
+ { key: t.name + 'inner' },
+ n.createElement(
+ Qu,
+ { colSpan: 2 },
+ n.createElement(
+ Zu,
+ null,
+ n.createElement(Dg, {
+ schema: t.schema,
+ skipReadOnly: this.props.skipReadOnly,
+ skipWriteOnly: this.props.skipWriteOnly,
+ showTitle: this.props.showTitle,
+ level: this.props.level,
+ }),
+ ),
+ ),
+ ),
+ );
+ }
+ };
+ ng = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], ng);
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let rg = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.changeActiveChild = e => {
+ void 0 !== e.idx && this.props.parent.activateOneOf(e.idx);
+ });
+ }
+ sortOptions(e, t) {
+ if (0 === t.length) return;
+ const n = {};
+ t.forEach((e, t) => {
+ n[e] = t;
+ }),
+ e.sort((e, t) => (n[e.value] > n[t.value] ? 1 : -1));
+ }
+ render() {
+ const { parent: e, enumValues: t } = this.props;
+ if (void 0 === e.oneOf) return null;
+ const r = e.oneOf.map((e, t) => ({ value: e.title, idx: t })),
+ i = r[e.activeOneOf].value;
+ return (
+ this.sortOptions(r, t),
+ n.createElement(Rd, {
+ value: i,
+ options: r,
+ onChange: this.changeActiveChild,
+ ariaLabel: 'Example',
+ })
+ );
+ }
+ };
+ rg = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], rg);
+ const ig = hm(
+ ({
+ schema: { fields: e = [], title: t },
+ showTitle: r,
+ discriminator: i,
+ skipReadOnly: o,
+ skipWriteOnly: a,
+ level: s,
+ }) => {
+ const {
+ expandSingleSchemaField: l,
+ showObjectSchemaExamples: c,
+ schemaExpansionLevel: u,
+ } = n.useContext(Oa),
+ p = n.useMemo(
+ () =>
+ o || a
+ ? e.filter(e => !((o && e.schema.readOnly) || (a && e.schema.writeOnly)))
+ : e,
+ [o, a, e],
+ ),
+ d = (l && 1 === p.length) || u >= s;
+ return n.createElement(
+ Ju,
+ null,
+ r && n.createElement(Hu, null, t),
+ n.createElement(
+ 'tbody',
+ null,
+ Jr(p, (e, t) =>
+ n.createElement(ng, {
+ key: e.name,
+ isLast: t,
+ field: e,
+ expandByDefault: d,
+ renderDiscriminatorSwitch:
+ (null == i ? void 0 : i.fieldName) === e.name
+ ? () =>
+ n.createElement(rg, {
+ parent: i.parentSchema,
+ enumValues: e.schema.enum,
+ })
+ : void 0,
+ className: e.expanded ? 'expanded' : void 0,
+ showExamples: c,
+ skipReadOnly: o,
+ skipWriteOnly: a,
+ showTitle: r,
+ level: s,
+ }),
+ ),
+ ),
+ );
+ },
+ );
+ var og = Object.defineProperty,
+ ag = Object.defineProperties,
+ sg = Object.getOwnPropertyDescriptors,
+ lg = Object.getOwnPropertySymbols,
+ cg = Object.prototype.hasOwnProperty,
+ ug = Object.prototype.propertyIsEnumerable,
+ pg = (e, t, n) =>
+ t in e
+ ? og(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ dg = (e, t) => {
+ for (var n in t || (t = {})) cg.call(t, n) && pg(e, n, t[n]);
+ if (lg) for (var n of lg(t)) ug.call(t, n) && pg(e, n, t[n]);
+ return e;
+ },
+ fg = (e, t) => ag(e, sg(t));
+ const hg = ha.div`
+ padding-left: ${({ theme: e }) => 2 * e.spacing.unit}px;
+`;
+ class mg extends n.PureComponent {
+ render() {
+ const e = this.props.schema,
+ t = e.items,
+ r = void 0 === e.minItems && void 0 === e.maxItems ? '' : `(${cs(e)})`;
+ return e.fields
+ ? n.createElement(ig, fg(dg({}, this.props), { level: this.props.level }))
+ : !e.displayType || t || r.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(rp, null, ' Array ', r),
+ n.createElement(
+ hg,
+ null,
+ n.createElement(Dg, fg(dg({}, this.props), { schema: t })),
+ ),
+ n.createElement(ip, null),
+ )
+ : n.createElement('div', null, n.createElement(vm, null, e.displayType));
+ }
+ }
+ var gg = Object.defineProperty,
+ yg = Object.defineProperties,
+ vg = Object.getOwnPropertyDescriptor,
+ bg = Object.getOwnPropertyDescriptors,
+ xg = Object.getOwnPropertySymbols,
+ wg = Object.prototype.hasOwnProperty,
+ kg = Object.prototype.propertyIsEnumerable,
+ Og = (e, t, n) =>
+ t in e
+ ? gg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Sg = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? vg(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && gg(t, n, o), o;
+ };
+ let Eg = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.activateOneOf = () => {
+ this.props.schema.activateOneOf(this.props.idx);
+ });
+ }
+ render() {
+ const { idx: e, schema: t, subSchema: r } = this.props;
+ return n.createElement(
+ np,
+ {
+ $deprecated: r.deprecated,
+ $active: e === t.activeOneOf,
+ onClick: this.activateOneOf,
+ },
+ r.title || r.typePrefix + r.displayType,
+ );
+ }
+ };
+ Eg = Sg([hm], Eg);
+ let _g = class extends n.Component {
+ render() {
+ const {
+ schema: { oneOf: e },
+ schema: t,
+ } = this.props;
+ if (void 0 === e) return null;
+ const r = e[t.activeOneOf];
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(tp, null, ' ', t.oneOfType, ' '),
+ n.createElement(
+ ep,
+ null,
+ e.map((e, r) =>
+ n.createElement(Eg, { key: e.pointer, schema: t, subSchema: e, idx: r }),
+ ),
+ ),
+ n.createElement(
+ 'div',
+ null,
+ e[t.activeOneOf].deprecated &&
+ n.createElement(Vu, { type: 'warning' }, 'Deprecated'),
+ ),
+ n.createElement(Dm, { constraints: r.constraints }),
+ n.createElement(
+ Dg,
+ ((e, t) => yg(e, bg(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {})) wg.call(t, n) && Og(e, n, t[n]);
+ if (xg) for (var n of xg(t)) kg.call(t, n) && Og(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ { schema: r },
+ ),
+ ),
+ );
+ }
+ };
+ _g = Sg([hm], _g);
+ const Ag = hm(({ schema: e }) =>
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(vm, null, e.displayType),
+ e.title && n.createElement(bm, null, ' ', e.title, ' '),
+ n.createElement(Om, null, ' ', di('recursive'), ' '),
+ ),
+ );
+ var jg = Object.defineProperty,
+ Cg = Object.defineProperties,
+ Pg = (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ Tg = Object.getOwnPropertySymbols,
+ Rg = Object.prototype.hasOwnProperty,
+ Ig = Object.prototype.propertyIsEnumerable,
+ $g = (e, t, n) =>
+ t in e
+ ? jg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Ng = (e, t) => {
+ for (var n in t || (t = {})) Rg.call(t, n) && $g(e, n, t[n]);
+ if (Tg) for (var n of Tg(t)) Ig.call(t, n) && $g(e, n, t[n]);
+ return e;
+ },
+ Lg = (e, t) => Cg(e, Pg(t));
+ let Dg = class extends n.Component {
+ render() {
+ var e;
+ const t = this.props,
+ { schema: r } = t,
+ i = ((e, t) => {
+ var n = {};
+ for (var r in e) Rg.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && Tg)
+ for (var r of Tg(e)) t.indexOf(r) < 0 && Ig.call(e, r) && (n[r] = e[r]);
+ return n;
+ })(t, ['schema']),
+ o = (i.level || 0) + 1;
+ if (!r) return n.createElement('em', null, ' Schema not provided ');
+ const { type: a, oneOf: s, discriminatorProp: l, isCircular: c } = r;
+ if (c) return n.createElement(Ag, { schema: r });
+ if (void 0 !== l) {
+ if (!s || !s.length)
+ return (
+ console.warn(
+ `Looks like you are using discriminator wrong: you don't have any definition inherited from the ${r.title}`,
+ ),
+ null
+ );
+ const e = s[r.activeOneOf];
+ return e.isCircular
+ ? n.createElement(Ag, { schema: e })
+ : n.createElement(
+ ig,
+ Lg(Ng({}, i), {
+ level: o,
+ schema: e,
+ discriminator: { fieldName: l, parentSchema: r },
+ }),
+ );
+ }
+ if (void 0 !== s) return n.createElement(_g, Ng({ schema: r }, i));
+ const u = ci(a) ? a : [a];
+ if (u.includes('object')) {
+ if (null == (e = r.fields) ? void 0 : e.length)
+ return n.createElement(ig, Lg(Ng({}, this.props), { level: o }));
+ } else if (u.includes('array'))
+ return n.createElement(mg, Lg(Ng({}, this.props), { level: o }));
+ const p = {
+ schema: r,
+ name: '',
+ required: !1,
+ description: r.description,
+ externalDocs: r.externalDocs,
+ deprecated: !1,
+ toggle: () => null,
+ expanded: !1,
+ };
+ return n.createElement('div', null, n.createElement(Xm, { field: p }));
+ }
+ };
+ Dg = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Dg);
+ var Mg = Object.defineProperty,
+ Fg = Object.defineProperties,
+ zg = Object.getOwnPropertyDescriptors,
+ Ug = Object.getOwnPropertySymbols,
+ Bg = Object.prototype.hasOwnProperty,
+ qg = Object.prototype.propertyIsEnumerable,
+ Vg = (e, t, n) =>
+ t in e
+ ? Mg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ class Wg extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = e => {
+ return n.createElement(
+ Tf,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {})) Bg.call(t, n) && Vg(e, n, t[n]);
+ if (Ug) for (var n of Ug(t)) qg.call(t, n) && Vg(e, n, t[n]);
+ return e;
+ })({ Label: $d, Dropdown: xh }, e)),
+ Fg(t, zg({ variant: 'dark' }))),
+ );
+ var t;
+ });
+ }
+ static getMediaType(e, t) {
+ if (!e) return {};
+ const n = { schema: { $ref: e } };
+ return t && (n.examples = { example: { $ref: t } }), n;
+ }
+ get mediaModel() {
+ const { parser: e, schemaRef: t, exampleRef: n, options: r } = this.props;
+ return (
+ this._mediaModel ||
+ (this._mediaModel = new nu(e, 'json', !1, Wg.getMediaType(t, n), r)),
+ this._mediaModel
+ );
+ }
+ render() {
+ const { showReadOnly: e = !0, showWriteOnly: t = !1, showExample: r = !0 } = this.props;
+ return n.createElement(
+ Eu,
+ null,
+ n.createElement(
+ ju,
+ null,
+ n.createElement(
+ Su,
+ null,
+ n.createElement(Dg, {
+ skipWriteOnly: !t,
+ skipReadOnly: !e,
+ schema: this.mediaModel.schema,
+ }),
+ ),
+ r &&
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Hg,
+ null,
+ n.createElement(kh, {
+ renderDropdown: this.renderDropdown,
+ mediaType: this.mediaModel,
+ }),
+ ),
+ ),
+ ),
+ );
+ }
+ }
+ const Hg = ha.div`
+ background: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ & > div,
+ & > pre {
+ padding: ${e => 4 * e.theme.spacing.unit}px;
+ margin: 0;
+ }
+
+ & > div > pre {
+ padding: 0;
+ }
+`,
+ Yg =
+ (sa.div`
+ background-color: #e4e7eb;
+`,
+ sa.ul`
+ display: inline;
+ list-style: none;
+ padding: 0;
+
+ li {
+ display: inherit;
+
+ &:after {
+ content: ',';
+ }
+ &:last-child:after {
+ content: none;
+ }
+ }
+`,
+ sa.code`
+ font-size: ${e => e.theme.typography.code.fontSize};
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ margin: 0 3px;
+ padding: 0.2em;
+ display: inline-block;
+ line-height: 1;
+
+ &:after {
+ content: ',';
+ font-weight: normal;
+ }
+
+ &:last-child:after {
+ content: none;
+ }
+`),
+ Qg = sa.span`
+ &:after {
+ content: ' and ';
+ font-weight: normal;
+ }
+
+ &:last-child:after {
+ content: none;
+ }
+
+ ${If};
+`,
+ Gg = sa.span`
+ ${e => !e.$expanded && 'white-space: nowrap;'}
+ &:after {
+ content: ' or ';
+ ${e => e.$expanded && "content: ' or \\a';"}
+ white-space: pre;
+ }
+
+ &:last-child:after,
+ &:only-child:after {
+ content: none;
+ }
+
+ ${If};
+`,
+ Xg = sa.div`
+ flex: 1 1 auto;
+ cursor: pointer;
+`,
+ Kg = sa.div`
+ width: ${e => e.theme.schema.defaultDetailsWidth};
+ text-overflow: ellipsis;
+ border-radius: 4px;
+ overflow: hidden;
+ ${e =>
+ e.$expanded &&
+ `background: ${e.theme.colors.gray[100]};\n padding: 8px 9.6px;\n margin: 20px 0;\n width: 100%;\n `};
+ ${fa.lessThan('small')`
+ margin-top: 10px;
+ `}
+`,
+ Zg = sa($u)`
+ display: inline-block;
+ margin: 0;
+`,
+ Jg = sa.div`
+ width: 100%;
+ display: flex;
+ margin: 1em 0;
+ flex-direction: ${e => (e.$expanded ? 'column' : 'row')};
+ ${fa.lessThan('small')`
+ flex-direction: column;
+ `}
+`,
+ ey = sa.div`
+ margin: 0.5em 0;
+`,
+ ty = sa.div`
+ border-bottom: 1px solid ${({ theme: e }) => e.colors.border.dark};
+ margin-bottom: 1.5em;
+ padding-bottom: 0.7em;
+
+ h5 {
+ line-height: 1em;
+ margin: 0 0 0.6em;
+ font-size: ${({ theme: e }) => e.typography.fontSize};
+ }
+
+ .redoc-markdown p:first-child {
+ display: inline;
+ }
+`;
+ function ny({ children: e, height: t }) {
+ const r = n.createRef(),
+ [i, o] = n.useState(!1),
+ [a, s] = n.useState(!1);
+ return (
+ n.useEffect(() => {
+ r.current && r.current.clientHeight + 20 < r.current.scrollHeight && s(!0);
+ }, [r]),
+ n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ry,
+ { ref: r, className: i ? '' : 'container', style: { height: i ? 'auto' : t } },
+ e,
+ ),
+ n.createElement(
+ iy,
+ { $dimmed: !i },
+ a &&
+ n.createElement(
+ oy,
+ {
+ onClick: () => {
+ o(!i);
+ },
+ },
+ i ? 'See less' : 'See more',
+ ),
+ ),
+ )
+ );
+ }
+ const ry = sa.div`
+ overflow-y: hidden;
+`,
+ iy = sa.div`
+ text-align: center;
+ line-height: 1.5em;
+ ${({ $dimmed: e }) =>
+ e &&
+ 'background-image: linear-gradient(to bottom, transparent,rgb(255 255 255));\n position: relative;\n top: -0.5em;\n padding-top: 0.5em;\n background-position-y: -1em;\n '}
+`,
+ oy = sa.a`
+ cursor: pointer;
+`,
+ ay = n.memo(function (e) {
+ const { type: t, flow: r, RequiredScopes: i } = e,
+ o = Object.keys((null == r ? void 0 : r.scopes) || {});
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ey,
+ null,
+ n.createElement('b', null, 'Flow type: '),
+ n.createElement('code', null, t, ' '),
+ ),
+ ('implicit' === t || 'authorizationCode' === t) &&
+ n.createElement(
+ ey,
+ null,
+ n.createElement('strong', null, ' Authorization URL: '),
+ n.createElement(
+ 'code',
+ null,
+ n.createElement(
+ 'a',
+ { target: '_blank', rel: 'noopener noreferrer', href: r.authorizationUrl },
+ r.authorizationUrl,
+ ),
+ ),
+ ),
+ ('password' === t || 'clientCredentials' === t || 'authorizationCode' === t) &&
+ n.createElement(
+ ey,
+ null,
+ n.createElement('b', null, ' Token URL: '),
+ n.createElement('code', null, r.tokenUrl),
+ ),
+ r.refreshUrl &&
+ n.createElement(
+ ey,
+ null,
+ n.createElement('strong', null, ' Refresh URL: '),
+ n.createElement('code', null, r.refreshUrl),
+ ),
+ !!o.length &&
+ n.createElement(
+ n.Fragment,
+ null,
+ i || null,
+ n.createElement(ey, null, n.createElement('b', null, ' Scopes: ')),
+ n.createElement(
+ ny,
+ { height: '4em' },
+ n.createElement(
+ 'ul',
+ null,
+ o.map(e =>
+ n.createElement(
+ 'li',
+ { key: e },
+ n.createElement('code', null, e),
+ ' -',
+ ' ',
+ n.createElement(Wf, {
+ className: 'redoc-markdown',
+ inline: !0,
+ source: r.scopes[e] || '',
+ }),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ });
+ function sy(e) {
+ const { RequiredScopes: t, scheme: r } = e;
+ return n.createElement(
+ $f,
+ null,
+ r.apiKey
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ey,
+ null,
+ n.createElement(
+ 'b',
+ null,
+ (i = r.apiKey.in || '').charAt(0).toUpperCase() + i.slice(1),
+ ' parameter name: ',
+ ),
+ n.createElement('code', null, r.apiKey.name),
+ ),
+ t,
+ )
+ : r.http
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ey,
+ null,
+ n.createElement('b', null, 'HTTP Authorization Scheme: '),
+ n.createElement('code', null, r.http.scheme),
+ ),
+ n.createElement(
+ ey,
+ null,
+ 'bearer' === r.http.scheme &&
+ r.http.bearerFormat &&
+ n.createElement(
+ n.Fragment,
+ null,
+ n.createElement('b', null, 'Bearer format: '),
+ n.createElement('code', null, r.http.bearerFormat),
+ ),
+ ),
+ t,
+ )
+ : r.openId
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ey,
+ null,
+ n.createElement('b', null, 'Connect URL: '),
+ n.createElement(
+ 'code',
+ null,
+ n.createElement(
+ 'a',
+ { target: '_blank', rel: 'noopener noreferrer', href: r.openId.connectUrl },
+ r.openId.connectUrl,
+ ),
+ ),
+ ),
+ t,
+ )
+ : r.flows
+ ? Object.keys(r.flows).map(e =>
+ n.createElement(ay, { key: e, type: e, RequiredScopes: t, flow: r.flows[e] }),
+ )
+ : null,
+ );
+ var i;
+ }
+ const ly = {
+ oauth2: 'OAuth2',
+ apiKey: 'API Key',
+ http: 'HTTP',
+ openIdConnect: 'OpenID Connect',
+ };
+ class cy extends n.PureComponent {
+ render() {
+ return this.props.securitySchemes.schemes.map(e =>
+ n.createElement(
+ Eu,
+ { id: e.sectionId, key: e.id },
+ n.createElement(
+ ju,
+ null,
+ n.createElement(
+ Su,
+ null,
+ n.createElement(
+ Ru,
+ null,
+ n.createElement(Uu, { to: e.sectionId }),
+ e.displayName,
+ ),
+ n.createElement(Wf, { source: e.description || '' }),
+ n.createElement(
+ ty,
+ null,
+ n.createElement(
+ ey,
+ null,
+ n.createElement('b', null, 'Security Scheme Type: '),
+ n.createElement('span', null, ly[e.type] || e.type),
+ ),
+ n.createElement(sy, { scheme: e }),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ }
+ class uy {
+ constructor(e, t, n = {}, r = !0) {
+ var i, o, a, s;
+ (this.marker = new Ds()),
+ (this.disposer = null),
+ (this.rawOptions = n),
+ (this.options = new Si(n, py)),
+ (this.scroll = new Of(this.options)),
+ bf.updateOnHistory(Ns.currentId, this.scroll),
+ (this.spec = new Jd(e, t, this.options)),
+ (this.menu = new bf(this.spec, this.scroll, Ns)),
+ this.options.disableSearch ||
+ ((this.search = new Sf()),
+ r && this.search.indexItems(this.menu.items),
+ (this.disposer =
+ ((i = this.menu),
+ (o = 'activeItemIdx'),
+ x(
+ (a = e => {
+ this.updateMarkOnMenu(e.newValue);
+ }),
+ )
+ ? (function (e, t, n, r) {
+ return Wn(e, t).observe_(n, r);
+ })(i, o, a, s)
+ : (function (e, t, n) {
+ return Wn(e).observe_(t, n);
+ })(i, o, a))));
+ }
+ static fromJS(e) {
+ const t = new uy(e.spec.data, e.spec.url, e.options, !1);
+ return (
+ (t.menu.activeItemIdx = e.menu.activeItemIdx || 0),
+ t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),
+ t.options.disableSearch || t.search.load(e.searchIndex),
+ t
+ );
+ }
+ onDidMount() {
+ this.menu.updateOnHistory(), this.updateMarkOnMenu(this.menu.activeItemIdx);
+ }
+ dispose() {
+ this.scroll.dispose(),
+ this.menu.dispose(),
+ this.search && this.search.dispose(),
+ null != this.disposer && this.disposer();
+ }
+ toJS() {
+ return (
+ (e = this),
+ (t = null),
+ (n = function* () {
+ return {
+ menu: { activeItemIdx: this.menu.activeItemIdx },
+ spec: { url: this.spec.parser.specUrl, data: this.spec.parser.spec },
+ searchIndex: this.search ? yield this.search.toJS() : void 0,
+ options: this.rawOptions,
+ };
+ }),
+ new Promise((r, i) => {
+ var o = e => {
+ try {
+ s(n.next(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ a = e => {
+ try {
+ s(n.throw(e));
+ } catch (e) {
+ i(e);
+ }
+ },
+ s = e => (e.done ? r(e.value) : Promise.resolve(e.value).then(o, a));
+ s((n = n.apply(e, t)).next());
+ })
+ );
+ var e, t, n;
+ }
+ updateMarkOnMenu(e) {
+ const t = Math.max(0, e),
+ n = Math.min(this.menu.flatItems.length, t + 5),
+ r = [];
+ for (let e = t; e < n; e++) {
+ const t = this.menu.getElementAt(e);
+ t && r.push(t);
+ }
+ if (-1 === e && Qr) {
+ const e = document.querySelector('[data-role="redoc-description"]'),
+ t = document.querySelector('[data-role="redoc-summary"]');
+ e && r.push(e), t && r.push(t);
+ }
+ this.marker.addOnly(r), this.marker.mark();
+ }
+ }
+ const py = {
+ allowedMdComponents: {
+ SecurityDefinitions: {
+ component: cy,
+ propsSelector: e => ({ securitySchemes: e.spec.securitySchemes }),
+ },
+ 'security-definitions': {
+ component: cy,
+ propsSelector: e => ({ securitySchemes: e.spec.securitySchemes }),
+ },
+ SchemaDefinition: {
+ component: Wg,
+ propsSelector: e => ({ parser: e.spec.parser, options: e.options }),
+ },
+ },
+ },
+ dy = ha(Tu)`
+ margin-top: 0;
+ margin-bottom: 0.5em;
+
+ ${ma('ApiHeader')};
+`,
+ fy = ha.a`
+ border: 1px solid ${e => e.theme.colors.primary.main};
+ color: ${e => e.theme.colors.primary.main};
+ font-weight: normal;
+ margin-left: 0.5em;
+ padding: 4px 8px 4px;
+ display: inline-block;
+ text-decoration: none;
+ cursor: pointer;
+
+ ${ma('DownloadButton')};
+`,
+ hy = ha.span`
+ &::before {
+ content: '|';
+ display: inline-block;
+ opacity: 0.5;
+ width: ${15}px;
+ text-align: center;
+ }
+
+ &:last-child::after {
+ display: none;
+ }
+`,
+ my = ha.div`
+ overflow: hidden;
+`,
+ gy = ha.div`
+ display: flex;
+ flex-wrap: wrap;
+ // hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
+ margin-left: -${15}px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let yy = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.handleDownloadClick = e => {
+ e.target.href || (e.target.href = this.props.store.spec.info.downloadLink);
+ });
+ }
+ render() {
+ const { store: e } = this.props,
+ { info: t, externalDocs: r } = e.spec,
+ i = e.options.hideDownloadButton,
+ o = t.downloadFileName,
+ a = t.downloadLink,
+ s =
+ (t.license &&
+ n.createElement(
+ hy,
+ null,
+ 'License:',
+ ' ',
+ t.license.identifier
+ ? t.license.identifier
+ : n.createElement('a', { href: t.license.url }, t.license.name),
+ )) ||
+ null,
+ l =
+ (t.contact &&
+ t.contact.url &&
+ n.createElement(
+ hy,
+ null,
+ 'URL: ',
+ n.createElement('a', { href: t.contact.url }, t.contact.url),
+ )) ||
+ null,
+ c =
+ (t.contact &&
+ t.contact.email &&
+ n.createElement(
+ hy,
+ null,
+ t.contact.name || 'E-mail',
+ ':',
+ ' ',
+ n.createElement('a', { href: 'mailto:' + t.contact.email }, t.contact.email),
+ )) ||
+ null,
+ u =
+ (t.termsOfService &&
+ n.createElement(
+ hy,
+ null,
+ n.createElement('a', { href: t.termsOfService }, 'Terms of Service'),
+ )) ||
+ null,
+ p = (t.version && n.createElement('span', null, '(', t.version, ')')) || null;
+ return n.createElement(
+ Eu,
+ null,
+ n.createElement(
+ ju,
+ null,
+ n.createElement(
+ Su,
+ { className: 'api-info' },
+ n.createElement(dy, null, t.title, ' ', p),
+ !i &&
+ n.createElement(
+ 'p',
+ null,
+ di('downloadSpecification'),
+ ':',
+ n.createElement(
+ fy,
+ {
+ download: o || !0,
+ target: '_blank',
+ href: a,
+ onClick: this.handleDownloadClick,
+ },
+ di('download'),
+ ),
+ ),
+ n.createElement(
+ $f,
+ null,
+ ((t.license || t.contact || t.termsOfService) &&
+ n.createElement(
+ my,
+ null,
+ n.createElement(gy, null, c, ' ', l, ' ', s, ' ', u),
+ )) ||
+ null,
+ ),
+ n.createElement(Wf, {
+ source: e.spec.info.summary,
+ 'data-role': 'redoc-summary',
+ }),
+ n.createElement(Wf, {
+ source: e.spec.info.description,
+ 'data-role': 'redoc-description',
+ }),
+ r && n.createElement(Pm, { externalDocs: r }),
+ ),
+ ),
+ );
+ }
+ };
+ yy = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], yy);
+ const vy = ha.img`
+ max-height: ${e => e.theme.logo.maxHeight};
+ max-width: ${e => e.theme.logo.maxWidth};
+ padding: ${e => e.theme.logo.gutter};
+ width: 100%;
+ display: block;
+`,
+ by = ha.div`
+ text-align: center;
+`,
+ xy = ha.a`
+ display: inline-block;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let wy = class extends n.Component {
+ render() {
+ const { info: e } = this.props,
+ t = e['x-logo'];
+ if (!t || !t.url) return null;
+ const r = t.href || (e.contact && e.contact.url),
+ i = t.altText ? t.altText : 'logo',
+ o = n.createElement(vy, { src: t.url, alt: i });
+ return n.createElement(
+ by,
+ { style: { backgroundColor: t.backgroundColor } },
+ r ? ((a = r), e => n.createElement(xy, { href: a }, e))(o) : o,
+ );
+ var a;
+ }
+ };
+ wy = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], wy);
+ var ky = Object.defineProperty,
+ Oy = Object.getOwnPropertySymbols,
+ Sy = Object.prototype.hasOwnProperty,
+ Ey = Object.prototype.propertyIsEnumerable,
+ _y = (e, t, n) =>
+ t in e
+ ? ky(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Ay = (e, t) => {
+ for (var n in t || (t = {})) Sy.call(t, n) && _y(e, n, t[n]);
+ if (Oy) for (var n of Oy(t)) Ey.call(t, n) && _y(e, n, t[n]);
+ return e;
+ };
+ class jy extends n.Component {
+ render() {
+ return n.createElement(Ea, null, e =>
+ n.createElement(Du, null, t => this.renderWithOptionsAndStore(e, t)),
+ );
+ }
+ renderWithOptionsAndStore(e, t) {
+ const { source: r, htmlWrap: i = e => e } = this.props;
+ if (!t)
+ throw new Error('When using components in markdown, store prop must be provided');
+ const o = new Rl(e, this.props.parentId).renderMdWithComponents(r);
+ return o.length
+ ? o.map((e, r) => {
+ if ('string' == typeof e)
+ return n.cloneElement(
+ i(n.createElement(Vf, { html: e, inline: !1, compact: !1 })),
+ { key: r },
+ );
+ const o = e.component;
+ return n.createElement(
+ o,
+ Ay({ key: r }, Ay(Ay({}, e.props), e.propsSelector(t))),
+ );
+ })
+ : null;
+ }
+ }
+ var Cy = r(4184),
+ Py = r.n(Cy);
+ const Ty = ha.span.attrs(e => ({ className: `operation-type ${e.type}` }))`
+ width: 9ex;
+ display: inline-block;
+ height: ${e => e.theme.typography.code.fontSize};
+ line-height: ${e => e.theme.typography.code.fontSize};
+ background-color: #333;
+ border-radius: 3px;
+ background-repeat: no-repeat;
+ background-position: 6px 4px;
+ font-size: 7px;
+ font-family: Verdana, sans-serif; // web-safe
+ color: white;
+ text-transform: uppercase;
+ text-align: center;
+ font-weight: bold;
+ vertical-align: middle;
+ margin-right: 6px;
+ margin-top: 2px;
+
+ &.get {
+ background-color: ${({ theme: e }) => e.colors.http.get};
+ }
+
+ &.post {
+ background-color: ${({ theme: e }) => e.colors.http.post};
+ }
+
+ &.put {
+ background-color: ${({ theme: e }) => e.colors.http.put};
+ }
+
+ &.options {
+ background-color: ${({ theme: e }) => e.colors.http.options};
+ }
+
+ &.patch {
+ background-color: ${({ theme: e }) => e.colors.http.patch};
+ }
+
+ &.delete {
+ background-color: ${({ theme: e }) => e.colors.http.delete};
+ }
+
+ &.basic {
+ background-color: ${({ theme: e }) => e.colors.http.basic};
+ }
+
+ &.link {
+ background-color: ${({ theme: e }) => e.colors.http.link};
+ }
+
+ &.head {
+ background-color: ${({ theme: e }) => e.colors.http.head};
+ }
+
+ &.hook {
+ background-color: ${({ theme: e }) => e.colors.primary.main};
+ }
+
+ &.schema {
+ background-color: ${({ theme: e }) => e.colors.http.basic};
+ }
+`;
+ function Ry(e, { theme: t }, n) {
+ return e > 1 ? t.sidebar.level1Items[n] : 1 === e ? t.sidebar.groupItems[n] : '';
+ }
+ const Iy = ha.ul`
+ margin: 0;
+ padding: 0;
+
+ &:first-child {
+ padding-bottom: 32px;
+ }
+
+ & & {
+ font-size: 0.929em;
+ }
+
+ ${e => (e.$expanded ? '' : 'display: none;')};
+`,
+ $y = ha.li`
+ list-style: none inside none;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0;
+ ${e => (0 === e.depth ? 'margin-top: 15px' : '')};
+`,
+ Ny = {
+ 0: ca`
+ opacity: 0.7;
+ text-transform: ${({ theme: e }) => e.sidebar.groupItems.textTransform};
+ font-size: 0.8em;
+ padding-bottom: 0;
+ cursor: default;
+ `,
+ 1: ca`
+ font-size: 0.929em;
+ text-transform: ${({ theme: e }) => e.sidebar.level1Items.textTransform};
+ `,
+ },
+ Ly = ha.label.attrs(e => ({
+ className: Py()('-depth' + e.$depth, { active: e.$active }),
+ }))`
+ cursor: pointer;
+ color: ${e => (e.$active ? Ry(e.$depth, e, 'activeTextColor') : e.theme.sidebar.textColor)};
+ margin: 0;
+ padding: 12.5px ${e => 4 * e.theme.spacing.unit}px;
+ ${({ $depth: e, $type: t, theme: n }) =>
+ ('section' === t && e > 1 && 'padding-left: ' + 8 * n.spacing.unit + 'px;') || ''}
+ display: flex;
+ justify-content: space-between;
+ font-family: ${e => e.theme.typography.headings.fontFamily};
+ ${e => Ny[e.$depth]};
+ background-color: ${e =>
+ e.$active ? Ry(e.$depth, e, 'activeBackgroundColor') : e.theme.sidebar.backgroundColor};
+
+ ${e => (e.$deprecated && Wu) || ''};
+
+ &:hover {
+ color: ${e => Ry(e.$depth, e, 'activeTextColor')};
+ background-color: ${e => Ry(e.$depth, e, 'activeBackgroundColor')};
+ }
+
+ ${qu} {
+ height: ${({ theme: e }) => e.sidebar.arrow.size};
+ width: ${({ theme: e }) => e.sidebar.arrow.size};
+ polygon {
+ fill: ${({ theme: e }) => e.sidebar.arrow.color};
+ }
+ }
+`,
+ Dy = ha.span`
+ display: inline-block;
+ vertical-align: middle;
+ width: ${e => (e.width ? e.width : 'auto')};
+ overflow: hidden;
+ text-overflow: ellipsis;
+`,
+ My = ha.div`
+ ${({ theme: e }) => ca`
+ font-size: 0.8em;
+ margin-top: ${2 * e.spacing.unit}px;
+ text-align: center;
+ position: fixed;
+ width: ${e.sidebar.width};
+ bottom: 0;
+ background: ${e.sidebar.backgroundColor};
+
+ a,
+ a:visited,
+ a:hover {
+ color: ${e.sidebar.textColor} !important;
+ padding: ${e.spacing.unit}px 0;
+ border-top: 1px solid ${Nr(0.1, e.sidebar.backgroundColor)};
+ text-decoration: none;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ `};
+ img {
+ width: 15px;
+ margin-right: 5px;
+ }
+
+ ${fa.lessThan('small')`
+ width: 100%;
+ `};
+`,
+ Fy = ha.button`
+ border: 0;
+ width: 100%;
+ text-align: left;
+ & > * {
+ vertical-align: middle;
+ }
+
+ ${qu} {
+ polygon {
+ fill: ${({ theme: e }) => Nr(e.colors.tonalOffset, e.colors.gray[100])};
+ }
+ }
+`,
+ zy = ha.span`
+ text-decoration: ${e => (e.$deprecated ? 'line-through' : 'none')};
+ margin-right: 8px;
+`,
+ Uy = ha(Ty)`
+ margin: 0 5px 0 0;
+`,
+ By = ha(e => {
+ const { name: t, opened: r, className: i, onClick: o, httpVerb: a, deprecated: s } = e;
+ return n.createElement(
+ Fy,
+ { className: i, onClick: o || void 0 },
+ n.createElement(Uy, { type: a }, hs(a)),
+ n.createElement(qu, {
+ size: '1.5em',
+ direction: r ? 'down' : 'right',
+ float: 'left',
+ }),
+ n.createElement(zy, { $deprecated: s }, t),
+ s ? n.createElement(Vu, { type: 'warning' }, ' ', di('deprecated'), ' ') : null,
+ );
+ })`
+ padding: 10px;
+ border-radius: 2px;
+ margin-bottom: 4px;
+ line-height: 1.5em;
+ background-color: ${({ theme: e }) => e.colors.gray[100]};
+ cursor: pointer;
+ outline-color: ${({ theme: e }) => Nr(e.colors.tonalOffset, e.colors.gray[100])};
+`,
+ qy = ha.div`
+ padding: 10px 25px;
+ background-color: ${({ theme: e }) => e.colors.gray[50]};
+ margin-bottom: 5px;
+ margin-top: 5px;
+`;
+ class Vy extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.selectElement = () => {
+ Jf.selectElement(this.child);
+ });
+ }
+ render() {
+ const { children: e } = this.props;
+ return n.createElement(
+ 'div',
+ {
+ ref: e => (this.child = e),
+ onClick: this.selectElement,
+ onFocus: this.selectElement,
+ tabIndex: 0,
+ role: 'button',
+ },
+ e,
+ );
+ }
+ }
+ const Wy = ha.div`
+ cursor: pointer;
+ position: relative;
+ margin-bottom: 5px;
+`,
+ Hy = ha.span`
+ font-family: ${e => e.theme.typography.code.fontFamily};
+ margin-left: 10px;
+ flex: 1;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+`,
+ Yy = ha.button`
+ outline: 0;
+ color: inherit;
+ width: 100%;
+ text-align: left;
+ cursor: pointer;
+ padding: 10px 30px 10px ${e => (e.$inverted ? '10px' : '20px')};
+ border-radius: ${e => (e.$inverted ? '0' : '4px 4px 0 0')};
+ background-color: ${e => (e.$inverted ? 'transparent' : e.theme.codeBlock.backgroundColor)};
+ display: flex;
+ white-space: nowrap;
+ align-items: center;
+ border: ${e => (e.$inverted ? '0' : '1px solid transparent')};
+ border-bottom: ${e => (e.$inverted ? '1px solid #ccc' : '0')};
+ transition: border-color 0.25s ease;
+
+ ${e => (e.$expanded && !e.$inverted && `border-color: ${e.theme.colors.border.dark};`) || ''}
+
+ .${Hy} {
+ color: ${e => (e.$inverted ? e.theme.colors.text.primary : '#ffffff')};
+ }
+ &:focus {
+ box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(128, 128, 128, 0.25);
+ }
+`,
+ Qy = ha.span.attrs(e => ({ className: `http-verb ${e.type}` }))`
+ font-size: ${e => (e.$compact ? '0.8em' : '0.929em')};
+ line-height: ${e => (e.$compact ? '18px' : '20px')};
+ background-color: ${e => e.theme.colors.http[e.type] || '#999999'};
+ color: #ffffff;
+ padding: ${e => (e.$compact ? '2px 8px' : '3px 10px')};
+ text-transform: uppercase;
+ font-family: ${e => e.theme.typography.headings.fontFamily};
+ margin: 0;
+`,
+ Gy = ha.div`
+ position: absolute;
+ width: 100%;
+ z-index: 100;
+ background: ${e => e.theme.rightPanel.servers.overlay.backgroundColor};
+ color: ${e => e.theme.rightPanel.servers.overlay.textColor};
+ box-sizing: border-box;
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.33);
+ overflow: hidden;
+ border-bottom-left-radius: 4px;
+ border-bottom-right-radius: 4px;
+ transition: all 0.25s ease;
+ visibility: hidden;
+ ${e => (e.$expanded ? 'visibility: visible;' : 'transform: translateY(-50%) scaleY(0);')}
+`,
+ Xy = ha.div`
+ padding: 10px;
+`,
+ Ky = ha.div`
+ padding: 5px;
+ border: 1px solid #ccc;
+ background: ${e => e.theme.rightPanel.servers.url.backgroundColor};
+ word-break: break-all;
+ color: ${e => e.theme.colors.primary.main};
+ > span {
+ color: ${e => e.theme.colors.text.primary};
+ }
+`;
+ class Zy extends n.Component {
+ constructor(e) {
+ super(e),
+ (this.toggle = () => {
+ this.setState({ expanded: !this.state.expanded });
+ }),
+ (this.state = { expanded: !1 });
+ }
+ render() {
+ const { operation: e, inverted: t, hideHostname: r } = this.props,
+ { expanded: i } = this.state;
+ return n.createElement(Oa.Consumer, null, o =>
+ n.createElement(
+ Wy,
+ null,
+ n.createElement(
+ Yy,
+ { onClick: this.toggle, $expanded: i, $inverted: t },
+ n.createElement(
+ Qy,
+ { type: e.httpVerb, $compact: this.props.compact },
+ e.httpVerb,
+ ),
+ n.createElement(Hy, null, e.path),
+ n.createElement(qu, {
+ float: 'right',
+ color: t ? 'black' : 'white',
+ size: '20px',
+ direction: i ? 'up' : 'down',
+ style: { marginRight: '-25px' },
+ }),
+ ),
+ n.createElement(
+ Gy,
+ { $expanded: i, 'aria-hidden': !i },
+ e.servers.map(t => {
+ const i = o.expandDefaultServerVariables
+ ? (function (e, t = {}) {
+ return e.replace(
+ /(?:{)([\w-.]+)(?:})/g,
+ (e, n) => (t[n] && t[n].default) || e,
+ );
+ })(t.url, t.variables)
+ : t.url,
+ a = (function (e) {
+ try {
+ return si(e).pathname;
+ } catch (t) {
+ return e;
+ }
+ })(i);
+ return n.createElement(
+ Xy,
+ { key: i },
+ n.createElement(Wf, { source: t.description || '', compact: !0 }),
+ n.createElement(
+ Vy,
+ null,
+ n.createElement(
+ Ky,
+ null,
+ n.createElement(
+ 'span',
+ null,
+ r || o.hideHostname ? ('/' === a ? '' : a) : i,
+ ),
+ e.path,
+ ),
+ ),
+ );
+ }),
+ ),
+ ),
+ );
+ }
+ }
+ class Jy extends n.PureComponent {
+ render() {
+ const { place: e, parameters: t } = this.props;
+ return t && t.length
+ ? n.createElement(
+ 'div',
+ { key: e },
+ n.createElement($u, null, e, ' Parameters'),
+ n.createElement(
+ Ju,
+ null,
+ n.createElement(
+ 'tbody',
+ null,
+ Jr(t, (e, t) =>
+ n.createElement(ng, { key: e.name, isLast: t, field: e, showExamples: !0 }),
+ ),
+ ),
+ ),
+ )
+ : null;
+ }
+ }
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let ev = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.switchMedia = ({ idx: e }) => {
+ this.props.content && void 0 !== e && this.props.content.activate(e);
+ });
+ }
+ render() {
+ const { content: e } = this.props;
+ if (!e || !e.mediaTypes || !e.mediaTypes.length) return null;
+ const t = e.activeMimeIdx,
+ r = e.mediaTypes.map((e, t) => ({ value: e.name, idx: t })),
+ i = ({ children: e }) =>
+ this.props.withLabel
+ ? n.createElement(bh, null, n.createElement(vh, null, 'Content type'), e)
+ : e;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ i,
+ null,
+ this.props.renderDropdown({
+ value: r[t].value,
+ options: r,
+ onChange: this.switchMedia,
+ ariaLabel: 'Content type',
+ }),
+ ),
+ this.props.children(e.active),
+ );
+ }
+ };
+ ev = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], ev);
+ var tv = Object.defineProperty,
+ nv = Object.getOwnPropertySymbols,
+ rv = Object.prototype.hasOwnProperty,
+ iv = Object.prototype.propertyIsEnumerable,
+ ov = (e, t, n) =>
+ t in e
+ ? tv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ av = (e, t) => {
+ for (var n in t || (t = {})) rv.call(t, n) && ov(e, n, t[n]);
+ if (nv) for (var n of nv(t)) iv.call(t, n) && ov(e, n, t[n]);
+ return e;
+ },
+ sv = (e, t) => {
+ var n = {};
+ for (var r in e) rv.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && nv)
+ for (var r of nv(e)) t.indexOf(r) < 0 && iv.call(e, r) && (n[r] = e[r]);
+ return n;
+ };
+ const lv = ['path', 'query', 'cookie', 'header'];
+ class cv extends n.PureComponent {
+ orderParams(e) {
+ const t = {};
+ return (
+ e.forEach(e => {
+ var n, r, i;
+ (i = e), (n = t)[(r = e.in)] || (n[r] = []), n[r].push(i);
+ }),
+ t
+ );
+ }
+ render() {
+ const { body: e, parameters: t = [] } = this.props;
+ if (void 0 === e && void 0 === t) return null;
+ const r = this.orderParams(t),
+ i = t.length > 0 ? lv : [],
+ o = e && e.content,
+ a = e && e.description,
+ s = e && e.required;
+ return n.createElement(
+ n.Fragment,
+ null,
+ i.map(e => n.createElement(Jy, { key: e, place: e, parameters: r[e] })),
+ o && n.createElement(pv, { content: o, description: a, bodyRequired: s }),
+ );
+ }
+ }
+ function uv(e) {
+ var t = e,
+ { bodyRequired: r } = t,
+ i = sv(t, ['bodyRequired']);
+ const o = 'boolean' == typeof r && !!r,
+ a = 'boolean' == typeof r && !r;
+ return n.createElement(
+ $u,
+ { key: 'header' },
+ 'Request Body schema: ',
+ n.createElement(Tf, av({}, i)),
+ o && n.createElement(fv, null, 'required'),
+ a && n.createElement(hv, null, 'optional'),
+ );
+ }
+ function pv(e) {
+ const { content: t, description: r, bodyRequired: i } = e,
+ { isRequestType: o } = t;
+ return n.createElement(
+ ev,
+ { content: t, renderDropdown: e => n.createElement(uv, av({ bodyRequired: i }, e)) },
+ ({ schema: e }) =>
+ n.createElement(
+ n.Fragment,
+ null,
+ void 0 !== r && n.createElement(Wf, { source: r }),
+ 'object' === (null == e ? void 0 : e.type) &&
+ n.createElement(Dm, { constraints: (null == e ? void 0 : e.constraints) || [] }),
+ n.createElement(Dg, {
+ skipReadOnly: o,
+ skipWriteOnly: !o,
+ key: 'schema',
+ schema: e,
+ }),
+ ),
+ );
+ }
+ const dv = '\n text-transform: lowercase;\n margin-left: 0;\n line-height: 1.5em;\n',
+ fv = ha(wm)`
+ ${dv}
+`,
+ hv = ha('div')`
+ ${dv}
+ color: ${({ theme: e }) => e.colors.text.secondary};
+ font-size: ${e => e.theme.schema.labelsTextSize};
+`,
+ mv = ha(
+ n.memo(function ({
+ title: e,
+ type: t,
+ empty: r,
+ code: i,
+ opened: o,
+ className: a,
+ onClick: s,
+ }) {
+ return n.createElement(
+ 'button',
+ { className: a, onClick: (!r && s) || void 0, 'aria-expanded': o, disabled: r },
+ !r &&
+ n.createElement(qu, {
+ size: '1.5em',
+ color: t,
+ direction: o ? 'down' : 'right',
+ float: 'left',
+ }),
+ n.createElement(vv, null, i, ' '),
+ n.createElement(Wf, { compact: !0, inline: !0, source: e }),
+ );
+ }),
+ )`
+ display: block;
+ border: 0;
+ width: 100%;
+ text-align: left;
+ padding: 10px;
+ border-radius: 2px;
+ margin-bottom: 4px;
+ line-height: 1.5em;
+ cursor: pointer;
+
+ color: ${e => e.theme.colors.responses[e.type].color};
+ background-color: ${e => e.theme.colors.responses[e.type].backgroundColor};
+ &:focus {
+ outline: auto ${e => e.theme.colors.responses[e.type].color};
+ }
+ ${e =>
+ e.empty
+ ? '\ncursor: default;\n&::before {\n content: "—";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n}\n&:focus {\n outline: 0;\n}\n'
+ : ''};
+`,
+ gv = ha.div`
+ padding: 10px;
+`,
+ yv = ha($u).attrs({ as: 'caption' })`
+ text-align: left;
+ margin-top: 1em;
+ caption-side: top;
+`,
+ vv = ha.strong`
+ vertical-align: top;
+`;
+ class bv extends n.PureComponent {
+ render() {
+ const { headers: e } = this.props;
+ return void 0 === e || 0 === e.length
+ ? null
+ : n.createElement(
+ Ju,
+ null,
+ n.createElement(yv, null, ' Response Headers '),
+ n.createElement(
+ 'tbody',
+ null,
+ Jr(e, (e, t) =>
+ n.createElement(ng, { isLast: t, key: e.name, field: e, showExamples: !0 }),
+ ),
+ ),
+ );
+ }
+ }
+ var xv = Object.defineProperty,
+ wv = Object.getOwnPropertySymbols,
+ kv = Object.prototype.hasOwnProperty,
+ Ov = Object.prototype.propertyIsEnumerable,
+ Sv = (e, t, n) =>
+ t in e
+ ? xv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ class Ev extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = e =>
+ n.createElement(
+ $u,
+ { key: 'header' },
+ 'Response Schema: ',
+ n.createElement(
+ Tf,
+ ((e, t) => {
+ for (var n in t || (t = {})) kv.call(t, n) && Sv(e, n, t[n]);
+ if (wv) for (var n of wv(t)) Ov.call(t, n) && Sv(e, n, t[n]);
+ return e;
+ })({}, e),
+ ),
+ ));
+ }
+ render() {
+ const { description: e, extensions: t, headers: r, content: i } = this.props.response;
+ return n.createElement(
+ n.Fragment,
+ null,
+ e && n.createElement(Wf, { source: e }),
+ n.createElement($m, { extensions: t }),
+ n.createElement(bv, { headers: r }),
+ n.createElement(
+ ev,
+ { content: i, renderDropdown: this.renderDropdown },
+ ({ schema: e }) =>
+ n.createElement(
+ n.Fragment,
+ null,
+ 'object' === (null == e ? void 0 : e.type) &&
+ n.createElement(Dm, {
+ constraints: (null == e ? void 0 : e.constraints) || [],
+ }),
+ n.createElement(Dg, { skipWriteOnly: !0, key: 'schema', schema: e }),
+ ),
+ ),
+ );
+ }
+ }
+ const _v = hm(({ response: e }) => {
+ const {
+ extensions: t,
+ headers: r,
+ type: i,
+ summary: o,
+ description: a,
+ code: s,
+ expanded: l,
+ content: c,
+ } = e,
+ u = n.useMemo(
+ () => (void 0 === c ? [] : c.mediaTypes.filter(e => void 0 !== e.schema)),
+ [c],
+ ),
+ p = n.useMemo(
+ () =>
+ !((t && 0 !== Object.keys(t).length) || 0 !== r.length || 0 !== u.length || a),
+ [t, r, u, a],
+ );
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(mv, {
+ onClick: () => e.toggle(),
+ type: i,
+ empty: p,
+ title: o || '',
+ code: s,
+ opened: l,
+ }),
+ l && !p && n.createElement(gv, null, n.createElement(Ev, { response: e })),
+ );
+ }),
+ Av = ha.h3`
+ font-size: 1.3em;
+ padding: 0.2em 0;
+ margin: 3em 0 1.1em;
+ color: ${({ theme: e }) => e.colors.text.primary};
+ font-weight: normal;
+`;
+ class jv extends n.PureComponent {
+ render() {
+ const { responses: e, isCallback: t } = this.props;
+ return e && 0 !== e.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(Av, null, di(t ? 'callbackResponses' : 'responses')),
+ e.map(e => n.createElement(_v, { key: e.code, response: e })),
+ )
+ : null;
+ }
+ }
+ function Cv(e) {
+ const { security: t, showSecuritySchemeType: r, expanded: i } = e,
+ o = t.schemes.length > 1;
+ return 0 === t.schemes.length
+ ? n.createElement(Gg, { $expanded: i }, 'None')
+ : n.createElement(
+ Gg,
+ { $expanded: i },
+ o && '(',
+ t.schemes.map(e =>
+ n.createElement(
+ Qg,
+ { key: e.id },
+ r && `${ly[e.type] || e.type}: `,
+ n.createElement('i', null, e.displayName),
+ i && e.scopes.length
+ ? [' (', e.scopes.map(e => n.createElement(Yg, { key: e }, e)), ') ']
+ : null,
+ ),
+ ),
+ o && ') ',
+ );
+ }
+ const Pv = ({ scopes: e }) =>
+ e.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement('b', null, 'Required scopes: '),
+ e.map((e, t) =>
+ n.createElement(n.Fragment, { key: t }, n.createElement('code', null, e), ' '),
+ ),
+ )
+ : null;
+ function Tv(e) {
+ const t = (0, n.useContext)(Nu),
+ r = null == t ? void 0 : t.options.showSecuritySchemeType,
+ [i, o] = (0, n.useState)(!1),
+ { securities: a } = e;
+ if (
+ !(null == a ? void 0 : a.length) ||
+ (null == t ? void 0 : t.options.hideSecuritySection)
+ )
+ return null;
+ const s =
+ null == t
+ ? void 0
+ : t.spec.securitySchemes.schemes.filter(({ id: e }) =>
+ a.find(t => t.schemes.find(t => t.id === e)),
+ );
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ Jg,
+ { $expanded: i },
+ n.createElement(
+ Xg,
+ { onClick: () => o(!i) },
+ n.createElement(Zg, null, 'Authorizations:'),
+ n.createElement(qu, { size: '1.3em', direction: i ? 'down' : 'right' }),
+ ),
+ n.createElement(
+ Kg,
+ { $expanded: i },
+ a.map((e, t) =>
+ n.createElement(Cv, {
+ key: t,
+ expanded: i,
+ showSecuritySchemeType: r,
+ security: e,
+ }),
+ ),
+ ),
+ ),
+ i &&
+ (null == s ? void 0 : s.length) &&
+ s.map((e, t) =>
+ n.createElement(
+ ty,
+ { key: t },
+ n.createElement(
+ 'h5',
+ null,
+ n.createElement(Rv, null),
+ ' ',
+ ly[e.type] || e.type,
+ ': ',
+ e.id,
+ ),
+ n.createElement(Wf, { source: e.description || '' }),
+ n.createElement(sy, {
+ key: e.id,
+ scheme: e,
+ RequiredScopes: n.createElement(Pv, { scopes: Iv(e.id, a) }),
+ }),
+ ),
+ ),
+ );
+ }
+ const Rv = () =>
+ n.createElement(
+ 'svg',
+ {
+ xmlns: 'http://www.w3.org/2000/svg',
+ viewBox: '0 0 24 24',
+ width: '11',
+ height: '11',
+ },
+ n.createElement('path', {
+ fill: 'currentColor',
+ d: 'M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z',
+ }),
+ );
+ function Iv(e, t) {
+ const n = [];
+ let r = t.length;
+ for (; r--; ) {
+ const i = t[r];
+ let o = i.schemes.length;
+ for (; o--; ) {
+ const t = i.schemes[o];
+ t.id === e && Array.isArray(t.scopes) && n.push(...t.scopes);
+ }
+ }
+ return Array.from(new Set(n));
+ }
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let $v = class extends n.Component {
+ render() {
+ const { operation: e } = this.props,
+ { description: t, externalDocs: r } = e,
+ i = !(!t && !r);
+ return n.createElement(
+ qy,
+ null,
+ i &&
+ n.createElement(
+ Nv,
+ null,
+ void 0 !== t && n.createElement(Wf, { source: t }),
+ r && n.createElement(Pm, { externalDocs: r }),
+ ),
+ n.createElement(Zy, { operation: this.props.operation, inverted: !0, compact: !0 }),
+ n.createElement($m, { extensions: e.extensions }),
+ n.createElement(Tv, { securities: e.security }),
+ n.createElement(cv, { parameters: e.parameters, body: e.requestBody }),
+ n.createElement(jv, { responses: e.responses, isCallback: e.isCallback }),
+ );
+ }
+ };
+ $v = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], $v);
+ const Nv = ha.div`
+ margin-bottom: ${({ theme: e }) => 3 * e.spacing.unit}px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Lv = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.toggle = () => {
+ this.props.callbackOperation.toggle();
+ });
+ }
+ render() {
+ const {
+ name: e,
+ expanded: t,
+ httpVerb: r,
+ deprecated: i,
+ } = this.props.callbackOperation;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(By, {
+ onClick: this.toggle,
+ name: e,
+ opened: t,
+ httpVerb: r,
+ deprecated: i,
+ }),
+ t && n.createElement($v, { operation: this.props.callbackOperation }),
+ );
+ }
+ };
+ Lv = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Lv);
+ class Dv extends n.PureComponent {
+ render() {
+ const { callbacks: e } = this.props;
+ return e && 0 !== e.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(Mv, null, ' Callbacks '),
+ e.map(e =>
+ e.operations.map((t, r) =>
+ n.createElement(Lv, { key: `${e.name}_${r}`, callbackOperation: t }),
+ ),
+ ),
+ )
+ : null;
+ }
+ }
+ const Mv = ha.h3`
+ font-size: 1.3em;
+ padding: 0.2em 0;
+ margin: 3em 0 1.1em;
+ color: ${({ theme: e }) => e.colors.text.primary};
+ font-weight: normal;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Fv = class extends n.Component {
+ constructor(e) {
+ super(e),
+ (this.switchItem = ({ idx: e }) => {
+ this.props.items && void 0 !== e && this.setState({ activeItemIdx: e });
+ }),
+ (this.state = { activeItemIdx: 0 });
+ }
+ render() {
+ const { items: e } = this.props;
+ if (!e || !e.length) return null;
+ const t = ({ children: e }) =>
+ this.props.label
+ ? n.createElement(bh, null, n.createElement(vh, null, this.props.label), e)
+ : e;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ t,
+ null,
+ this.props.renderDropdown({
+ value: this.props.options[this.state.activeItemIdx].value,
+ options: this.props.options,
+ onChange: this.switchItem,
+ ariaLabel: this.props.label || 'Callback',
+ }),
+ ),
+ this.props.children(e[this.state.activeItemIdx]),
+ );
+ }
+ };
+ Fv = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Fv);
+ var zv = Object.defineProperty,
+ Uv = Object.defineProperties,
+ Bv = (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ qv = Object.getOwnPropertySymbols,
+ Vv = Object.prototype.hasOwnProperty,
+ Wv = Object.prototype.propertyIsEnumerable,
+ Hv = (e, t, n) =>
+ t in e
+ ? zv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ let Yv = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = e => {
+ return n.createElement(
+ Tf,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {})) Vv.call(t, n) && Hv(e, n, t[n]);
+ if (qv) for (var n of qv(t)) Wv.call(t, n) && Hv(e, n, t[n]);
+ return e;
+ })({ Label: yh, Dropdown: xh }, e)),
+ Uv(t, Bv({ variant: 'dark' }))),
+ );
+ var t;
+ });
+ }
+ render() {
+ const e = this.props.content;
+ return void 0 === e
+ ? null
+ : n.createElement(
+ ev,
+ { content: e, renderDropdown: this.renderDropdown, withLabel: !0 },
+ e =>
+ n.createElement(kh, {
+ key: 'samples',
+ mediaType: e,
+ renderDropdown: this.renderDropdown,
+ }),
+ );
+ }
+ };
+ Yv = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Yv);
+ class Qv extends n.Component {
+ render() {
+ const e = this.props.callback.codeSamples.find(e => wu(e));
+ return e
+ ? n.createElement(Gv, null, n.createElement(Yv, { content: e.requestBodyContent }))
+ : null;
+ }
+ }
+ const Gv = ha.div`
+ margin-top: 15px;
+`;
+ var Xv = Object.defineProperty,
+ Kv = Object.defineProperties,
+ Zv = (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ Jv = Object.getOwnPropertySymbols,
+ eb = Object.prototype.hasOwnProperty,
+ tb = Object.prototype.propertyIsEnumerable,
+ nb = (e, t, n) =>
+ t in e
+ ? Xv(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ let rb = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = e => {
+ return n.createElement(
+ Tf,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {})) eb.call(t, n) && nb(e, n, t[n]);
+ if (Jv) for (var n of Jv(t)) tb.call(t, n) && nb(e, n, t[n]);
+ return e;
+ })({ Label: yh, Dropdown: xh }, e)),
+ Kv(t, Zv({ variant: 'dark' }))),
+ );
+ var t;
+ });
+ }
+ render() {
+ const { callbacks: e } = this.props;
+ if (!e || 0 === e.length) return null;
+ const t = e.map(e => e.operations.map(e => e)).reduce((e, t) => e.concat(t), []);
+ if (!t.some(e => e.codeSamples.length > 0)) return null;
+ const r = t.map((e, t) => ({
+ value: `${e.httpVerb.toUpperCase()}: ${e.name}`,
+ idx: t,
+ }));
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(Iu, null, ' Callback payload samples '),
+ n.createElement(
+ ib,
+ null,
+ n.createElement(
+ Fv,
+ { items: t, renderDropdown: this.renderDropdown, label: 'Callback', options: r },
+ e =>
+ n.createElement(Qv, {
+ key: 'callbackPayloadSample',
+ callback: e,
+ renderDropdown: this.renderDropdown,
+ }),
+ ),
+ ),
+ );
+ }
+ };
+ (rb.contextType = Oa),
+ (rb = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], rb));
+ const ib = ha.div`
+ background: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ padding: ${e => 4 * e.theme.spacing.unit}px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let ob = class extends n.Component {
+ render() {
+ const { operation: e } = this.props,
+ t = e.codeSamples,
+ r = t.length > 0,
+ i = 1 === t.length && this.context.hideSingleRequestSampleTab;
+ return (
+ (r &&
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(Iu, null, ' ', di('requestSamples'), ' '),
+ n.createElement(
+ Vp,
+ { defaultIndex: 0 },
+ n.createElement(
+ Tp,
+ { hidden: i },
+ t.map(e =>
+ n.createElement(
+ Dp,
+ { key: e.lang + '_' + (e.label || '') },
+ void 0 !== e.label ? e.label : e.lang,
+ ),
+ ),
+ ),
+ t.map(e =>
+ n.createElement(
+ qp,
+ { key: e.lang + '_' + (e.label || '') },
+ wu(e)
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(Yv, { content: e.requestBodyContent }),
+ )
+ : n.createElement(dh, { lang: e.lang, source: e.source }),
+ ),
+ ),
+ ),
+ )) ||
+ null
+ );
+ }
+ };
+ (ob.contextType = Oa),
+ (ob = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], ob));
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let ab = class extends n.Component {
+ render() {
+ const { operation: e } = this.props,
+ t = e.responses.filter(e => e.content && e.content.hasSample);
+ return (
+ (t.length > 0 &&
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(Iu, null, ' ', di('responseSamples'), ' '),
+ n.createElement(
+ Vp,
+ { defaultIndex: 0 },
+ n.createElement(
+ Tp,
+ null,
+ t.map(e =>
+ n.createElement(Dp, { className: 'tab-' + e.type, key: e.code }, e.code),
+ ),
+ ),
+ t.map(e =>
+ n.createElement(
+ qp,
+ { key: e.code },
+ n.createElement('div', null, n.createElement(Yv, { content: e.content })),
+ ),
+ ),
+ ),
+ )) ||
+ null
+ );
+ }
+ };
+ ab = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], ab);
+ var sb = Object.defineProperty,
+ lb = Object.defineProperties,
+ cb = Object.getOwnPropertyDescriptors,
+ ub = Object.getOwnPropertySymbols,
+ pb = Object.prototype.hasOwnProperty,
+ db = Object.prototype.propertyIsEnumerable,
+ fb = (e, t, n) =>
+ t in e
+ ? sb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ const hb = ha.div`
+ margin-bottom: ${({ theme: e }) => 6 * e.spacing.unit}px;
+`,
+ mb = hm(({ operation: e }) => {
+ const {
+ name: t,
+ description: r,
+ deprecated: i,
+ externalDocs: o,
+ isWebhook: a,
+ httpVerb: s,
+ } = e,
+ l = !(!r && !o),
+ { showWebhookVerb: c } = n.useContext(Oa);
+ return n.createElement(Oa.Consumer, null, u =>
+ n.createElement(
+ ju,
+ ((e, t) => lb(e, cb(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {})) pb.call(t, n) && fb(e, n, t[n]);
+ if (ub) for (var n of ub(t)) db.call(t, n) && fb(e, n, t[n]);
+ return e;
+ })({}, { [vf]: e.operationHash }),
+ { id: e.operationHash },
+ ),
+ n.createElement(
+ Su,
+ null,
+ n.createElement(
+ Ru,
+ null,
+ n.createElement(Uu, { to: e.id }),
+ t,
+ ' ',
+ i && n.createElement(Vu, { type: 'warning' }, ' Deprecated '),
+ a &&
+ n.createElement(
+ Vu,
+ { type: 'primary' },
+ ' ',
+ 'Webhook ',
+ c && s && '| ' + s.toUpperCase(),
+ ),
+ ),
+ u.pathInMiddlePanel && !a && n.createElement(Zy, { operation: e, inverted: !0 }),
+ l &&
+ n.createElement(
+ hb,
+ null,
+ void 0 !== r && n.createElement(Wf, { source: r }),
+ o && n.createElement(Pm, { externalDocs: o }),
+ ),
+ n.createElement($m, { extensions: e.extensions }),
+ n.createElement(Tv, { securities: e.security }),
+ n.createElement(cv, { parameters: e.parameters, body: e.requestBody }),
+ n.createElement(jv, { responses: e.responses }),
+ n.createElement(Dv, { callbacks: e.callbacks }),
+ ),
+ n.createElement(
+ Au,
+ null,
+ !u.pathInMiddlePanel && !a && n.createElement(Zy, { operation: e }),
+ n.createElement(ob, { operation: e }),
+ n.createElement(ab, { operation: e }),
+ n.createElement(rb, { callbacks: e.callbacks }),
+ ),
+ ),
+ );
+ });
+ var gb = Object.defineProperty,
+ yb = Object.getOwnPropertyDescriptor,
+ vb = Object.getOwnPropertySymbols,
+ bb = Object.prototype.hasOwnProperty,
+ xb = Object.prototype.propertyIsEnumerable,
+ wb = (e, t, n) =>
+ t in e
+ ? gb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ kb = (e, t, n, r) => {
+ for (var i, o = r > 1 ? void 0 : r ? yb(t, n) : t, a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = (r ? i(t, n, o) : i(o)) || o);
+ return r && o && gb(t, n, o), o;
+ };
+ let Ob = class extends n.Component {
+ render() {
+ const e = this.props.items;
+ return 0 === e.length ? null : e.map(e => n.createElement(Sb, { key: e.id, item: e }));
+ }
+ };
+ Ob = kb([hm], Ob);
+ let Sb = class extends n.Component {
+ render() {
+ const e = this.props.item;
+ let t;
+ const { type: r } = e;
+ switch (r) {
+ case 'group':
+ t = null;
+ break;
+ case 'tag':
+ case 'section':
+ default:
+ t = n.createElement(
+ _b,
+ ((e, t) => {
+ for (var n in t || (t = {})) bb.call(t, n) && wb(e, n, t[n]);
+ if (vb) for (var n of vb(t)) xb.call(t, n) && wb(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ );
+ break;
+ case 'operation':
+ t = n.createElement(Ab, { item: e });
+ }
+ return n.createElement(
+ n.Fragment,
+ null,
+ t && n.createElement(Eu, { id: e.id, $underlined: 'operation' === e.type }, t),
+ e.items && n.createElement(Ob, { items: e.items }),
+ );
+ }
+ };
+ Sb = kb([hm], Sb);
+ const Eb = e => n.createElement(Su, { $compact: !0 }, e);
+ let _b = class extends n.Component {
+ render() {
+ const { name: e, description: t, externalDocs: r, level: i } = this.props.item,
+ o = 2 === i ? Ru : Tu;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ ju,
+ null,
+ n.createElement(
+ Su,
+ { $compact: !1 },
+ n.createElement(o, null, n.createElement(Uu, { to: this.props.item.id }), e),
+ ),
+ ),
+ n.createElement(jy, { parentId: this.props.item.id, source: t || '', htmlWrap: Eb }),
+ r &&
+ n.createElement(
+ ju,
+ null,
+ n.createElement(Su, null, n.createElement(Pm, { externalDocs: r })),
+ ),
+ );
+ }
+ };
+ _b = kb([hm], _b);
+ let Ab = class extends n.Component {
+ render() {
+ return n.createElement(mb, { operation: this.props.item });
+ }
+ };
+ Ab = kb([hm], Ab);
+ var jb = Object.defineProperty,
+ Cb = Object.defineProperties,
+ Pb = (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ Tb = Object.getOwnPropertySymbols,
+ Rb = Object.prototype.hasOwnProperty,
+ Ib = Object.prototype.propertyIsEnumerable,
+ $b = (e, t, n) =>
+ t in e
+ ? jb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ let Nb = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.ref = n.createRef()),
+ (this.activate = e => {
+ this.props.onActivate(this.props.item), e.stopPropagation();
+ });
+ }
+ componentDidMount() {
+ this.scrollIntoViewIfActive();
+ }
+ componentDidUpdate() {
+ this.scrollIntoViewIfActive();
+ }
+ scrollIntoViewIfActive() {
+ this.props.item.active && this.ref.current && Xr(this.ref.current);
+ }
+ render() {
+ const { item: e, withoutChildren: t } = this.props;
+ return n.createElement(
+ $y,
+ {
+ tabIndex: 0,
+ onClick: this.activate,
+ depth: e.depth,
+ 'data-item-id': e.id,
+ role: 'menuitem',
+ },
+ 'operation' === e.type
+ ? n.createElement(
+ Lb,
+ ((e, t) => Cb(e, Pb(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {})) Rb.call(t, n) && $b(e, n, t[n]);
+ if (Tb) for (var n of Tb(t)) Ib.call(t, n) && $b(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ { item: e },
+ ),
+ )
+ : n.createElement(
+ Ly,
+ { $depth: e.depth, $active: e.active, $type: e.type, ref: this.ref },
+ 'schema' === e.type && n.createElement(Ty, { type: 'schema' }, 'schema'),
+ n.createElement(
+ Dy,
+ { width: 'calc(100% - 38px)', title: e.sidebarLabel },
+ e.sidebarLabel,
+ this.props.children,
+ ),
+ (e.depth > 0 &&
+ e.items.length > 0 &&
+ n.createElement(qu, {
+ float: 'right',
+ direction: e.expanded ? 'down' : 'right',
+ })) ||
+ null,
+ ),
+ !t &&
+ e.items &&
+ e.items.length > 0 &&
+ n.createElement(Bb, {
+ expanded: e.expanded,
+ items: e.items,
+ onActivate: this.props.onActivate,
+ }),
+ );
+ }
+ };
+ Nb = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Nb);
+ const Lb = hm(e => {
+ const { item: t } = e,
+ r = n.createRef(),
+ { showWebhookVerb: i } = n.useContext(Oa);
+ return (
+ n.useEffect(() => {
+ e.item.active && r.current && Xr(r.current);
+ }, [e.item.active, r]),
+ n.createElement(
+ Ly,
+ { $depth: t.depth, $active: t.active, $deprecated: t.deprecated, ref: r },
+ t.isWebhook
+ ? n.createElement(Ty, { type: 'hook' }, i ? t.httpVerb : di('webhook'))
+ : n.createElement(Ty, { type: t.httpVerb }, hs(t.httpVerb)),
+ n.createElement(
+ Dy,
+ { tabIndex: 0, width: 'calc(100% - 38px)' },
+ t.sidebarLabel,
+ e.children,
+ ),
+ )
+ );
+ });
+ var Db = Object.defineProperty,
+ Mb = (Object.getOwnPropertyDescriptor, Object.getOwnPropertySymbols),
+ Fb = Object.prototype.hasOwnProperty,
+ zb = Object.prototype.propertyIsEnumerable,
+ Ub = (e, t, n) =>
+ t in e
+ ? Db(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n);
+ let Bb = class extends n.Component {
+ render() {
+ const { items: e, root: t, className: r } = this.props,
+ i = null == this.props.expanded || this.props.expanded;
+ return n.createElement(
+ Iy,
+ ((e, t) => {
+ for (var n in t || (t = {})) Fb.call(t, n) && Ub(e, n, t[n]);
+ if (Mb) for (var n of Mb(t)) zb.call(t, n) && Ub(e, n, t[n]);
+ return e;
+ })(
+ { className: r, style: this.props.style, $expanded: i },
+ t ? { role: 'menu' } : {},
+ ),
+ e.map((e, t) =>
+ n.createElement(Nb, { key: t, item: e, onActivate: this.props.onActivate }),
+ ),
+ );
+ }
+ };
+ function qb() {
+ const [e, t] = (0, n.useState)(!1);
+ return (
+ (0, n.useEffect)(() => {
+ t(!0);
+ }, []),
+ e
+ ? n.createElement('img', {
+ alt: 'redocly logo',
+ onError: () => t(!1),
+ src: 'https://cdn.redoc.ly/redoc/logo-mini.svg',
+ })
+ : null
+ );
+ }
+ Bb = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Bb);
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Vb = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.activate = e => {
+ if (e && e.active && this.context.menuToggle)
+ return e.expanded ? e.collapse() : e.expand();
+ this.props.menu.activateAndScroll(e, !0),
+ setTimeout(() => {
+ this._updateScroll && this._updateScroll();
+ });
+ }),
+ (this.saveScrollUpdate = e => {
+ this._updateScroll = e;
+ });
+ }
+ render() {
+ const e = this.props.menu.items;
+ if (this.context.putDownScheme) {
+ const t = e =>
+ 'tag' === e.type
+ ? e.items.sort((e, t) => ('schema' === e.type || 'schema' === t.type ? -1 : 0))
+ : e;
+ e.map(e => ('group' === e.type ? e.items.map(t) : t(e)));
+ }
+ return n.createElement(
+ Cd,
+ {
+ updateFn: this.saveScrollUpdate,
+ className: this.props.className,
+ options: { wheelPropagation: !1 },
+ },
+ n.createElement(Bb, { items: e, onActivate: this.activate, root: !0 }),
+ n.createElement(
+ My,
+ null,
+ n.createElement(
+ 'a',
+ {
+ target: '_blank',
+ rel: 'noopener noreferrer',
+ href: 'https://redocly.com/redoc/',
+ },
+ n.createElement(qb, null),
+ 'API docs by Redocly',
+ ),
+ ),
+ );
+ }
+ };
+ (Vb.contextType = Oa),
+ (Vb = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Vb));
+ const Wb = ({ open: e }) => {
+ const t = e ? 8 : -4;
+ return n.createElement(
+ Yb,
+ null,
+ n.createElement(Hb, {
+ size: 15,
+ style: {
+ transform: `translate(2px, ${t}px) rotate(180deg)`,
+ transition: 'transform 0.2s ease',
+ },
+ }),
+ n.createElement(Hb, {
+ size: 15,
+ style: {
+ transform: `translate(2px, ${0 - t}px)`,
+ transition: 'transform 0.2s ease',
+ },
+ }),
+ );
+ },
+ Hb = ({ size: e = 10, className: t = '', style: r }) =>
+ n.createElement(
+ 'svg',
+ {
+ className: t,
+ style: r || {},
+ viewBox: '0 0 926.23699 573.74994',
+ version: '1.1',
+ x: '0px',
+ y: '0px',
+ width: e,
+ height: e,
+ },
+ n.createElement(
+ 'g',
+ { transform: 'translate(904.92214,-879.1482)' },
+ n.createElement('path', {
+ d: '\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ',
+ fill: 'currentColor',
+ }),
+ ),
+ ),
+ Yb = ha.div`
+ user-select: none;
+ width: 20px;
+ height: 20px;
+ align-self: center;
+ display: flex;
+ flex-direction: column;
+ color: ${e => e.theme.colors.primary.main};
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Qb;
+ Qr && (Qb = r(5114));
+ const Gb = Qb && Qb(),
+ Xb = ha.div`
+ width: ${e => e.theme.sidebar.width};
+ background-color: ${e => e.theme.sidebar.backgroundColor};
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+
+ backface-visibility: hidden;
+ /* contain: strict; TODO: breaks layout since Chrome 80*/
+
+ height: 100vh;
+ position: sticky;
+ position: -webkit-sticky;
+ top: 0;
+
+ ${fa.lessThan('small')`
+ position: fixed;
+ z-index: 20;
+ width: 100%;
+ background: ${({ theme: e }) => e.sidebar.backgroundColor};
+ display: ${e => (e.$open ? 'flex' : 'none')};
+ `};
+
+ @media print {
+ display: none;
+ }
+`,
+ Kb = ha.div`
+ outline: none;
+ user-select: none;
+ background-color: ${({ theme: e }) => e.fab.backgroundColor};
+ color: ${e => e.theme.colors.primary.main};
+ display: none;
+ cursor: pointer;
+ position: fixed;
+ right: 20px;
+ z-index: 100;
+ border-radius: 50%;
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
+ ${fa.lessThan('small')`
+ display: flex;
+ `};
+
+ bottom: 44px;
+
+ width: 60px;
+ height: 60px;
+ padding: 0 20px;
+ svg {
+ color: ${({ theme: e }) => e.fab.color};
+ }
+
+ @media print {
+ display: none;
+ }
+`;
+ let Zb = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.state = { offsetTop: '0px' }),
+ (this.toggleNavMenu = () => {
+ this.props.menu.toggleSidebar();
+ });
+ }
+ componentDidMount() {
+ Gb && Gb.add(this.stickyElement),
+ this.setState({ offsetTop: this.getScrollYOffset(this.context) });
+ }
+ componentWillUnmount() {
+ Gb && Gb.remove(this.stickyElement);
+ }
+ getScrollYOffset(e) {
+ let t;
+ return (
+ (t =
+ void 0 !== this.props.scrollYOffset
+ ? Si.normalizeScrollYOffset(this.props.scrollYOffset)()
+ : e.scrollYOffset()),
+ t + 'px'
+ );
+ }
+ render() {
+ const e = this.props.menu.sideBarOpened,
+ t = this.state.offsetTop;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ Xb,
+ {
+ $open: e,
+ className: this.props.className,
+ style: { top: t, height: `calc(100vh - ${t})` },
+ ref: e => {
+ this.stickyElement = e;
+ },
+ },
+ this.props.children,
+ ),
+ !this.context.hideFab &&
+ n.createElement(
+ Kb,
+ { onClick: this.toggleNavMenu },
+ n.createElement(Wb, { open: e }),
+ ),
+ );
+ }
+ };
+ (Zb.contextType = Oa),
+ (Zb = ((e, t, n, r) => {
+ for (var i, o = t, a = e.length - 1; a >= 0; a--) (i = e[a]) && (o = i(o) || o);
+ return o;
+ })([hm], Zb));
+ const Jb = ha.div`
+ ${({ theme: e }) =>
+ `\n font-family: ${e.typography.fontFamily};\n font-size: ${
+ e.typography.fontSize
+ };\n font-weight: ${e.typography.fontWeightRegular};\n line-height: ${
+ e.typography.lineHeight
+ };\n color: ${
+ e.colors.text.primary
+ };\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: ${
+ e.typography.smoothing
+ };\n font-smoothing: ${e.typography.smoothing};\n ${
+ e.typography.optimizeSpeed ? 'text-rendering: optimizeSpeed !important' : ''
+ };\n\n tap-highlight-color: rgba(0, 0, 0, 0);\n text-size-adjust: 100%;\n\n * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n`};
+`,
+ ex = ha.div`
+ z-index: 1;
+ position: relative;
+ overflow: hidden;
+ width: calc(100% - ${e => e.theme.sidebar.width});
+ ${fa.lessThan('small', !0)`
+ width: 100%;
+ `};
+
+ contain: layout;
+`,
+ tx = ha.div`
+ background: ${({ theme: e }) => e.rightPanel.backgroundColor};
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: ${({ theme: e }) => {
+ if (e.rightPanel.width.endsWith('%')) {
+ const t = parseInt(e.rightPanel.width, 10);
+ return `calc((100% - ${e.sidebar.width}) * ${t / 100})`;
+ }
+ return e.rightPanel.width;
+ }};
+ ${fa.lessThan('medium', !0)`
+ display: none;
+ `};
+`,
+ nx = ha.div`
+ padding: 5px 0;
+`,
+ rx = ha.input.attrs(() => ({ className: 'search-input' }))`
+ width: calc(100% - ${e => 8 * e.theme.spacing.unit}px);
+ box-sizing: border-box;
+ margin: 0 ${e => 4 * e.theme.spacing.unit}px;
+ padding: 5px ${e => 2 * e.theme.spacing.unit}px 5px
+ ${e => 4 * e.theme.spacing.unit}px;
+ border: 0;
+ border-bottom: 1px solid
+ ${({ theme: e }) =>
+ (Mr(e.sidebar.backgroundColor) > 0.5 ? Nr : zr)(0.1, e.sidebar.backgroundColor)};
+ font-family: ${({ theme: e }) => e.typography.fontFamily};
+ font-weight: bold;
+ font-size: 13px;
+ color: ${e => e.theme.sidebar.textColor};
+ background-color: transparent;
+ outline: none;
+`,
+ ix = ha(e =>
+ n.createElement(
+ 'svg',
+ {
+ className: e.className,
+ version: '1.1',
+ viewBox: '0 0 1000 1000',
+ x: '0px',
+ xmlns: 'http://www.w3.org/2000/svg',
+ y: '0px',
+ },
+ n.createElement('path', {
+ d: 'M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z',
+ }),
+ ),
+ ).attrs({ className: 'search-icon' })`
+ position: absolute;
+ left: ${e => 4 * e.theme.spacing.unit}px;
+ height: 1.8em;
+ width: 0.9em;
+
+ path {
+ fill: ${e => e.theme.sidebar.textColor};
+ }
+`,
+ ox = ha.div`
+ padding: ${e => e.theme.spacing.unit}px 0;
+ background-color: ${({ theme: e }) => Nr(0.05, e.sidebar.backgroundColor)}};
+ color: ${e => e.theme.sidebar.textColor};
+ min-height: 150px;
+ max-height: 250px;
+ border-top: ${({ theme: e }) => Nr(0.1, e.sidebar.backgroundColor)}};
+ border-bottom: ${({ theme: e }) => Nr(0.1, e.sidebar.backgroundColor)}};
+ margin-top: 10px;
+ line-height: 1.4;
+ font-size: 0.9em;
+
+ li {
+ background-color: inherit;
+ }
+
+ ${Ly} {
+ padding-top: 6px;
+ padding-bottom: 6px;
+
+ &:hover,
+ &.active {
+ background-color: ${({ theme: e }) => Nr(0.1, e.sidebar.backgroundColor)};
+ }
+
+ > svg {
+ display: none;
+ }
+ }
+`,
+ ax = ha.i`
+ position: absolute;
+ display: inline-block;
+ width: ${e => 2 * e.theme.spacing.unit}px;
+ text-align: center;
+ right: ${e => 4 * e.theme.spacing.unit}px;
+ line-height: 2em;
+ vertical-align: middle;
+ margin-right: 2px;
+ cursor: pointer;
+ font-style: normal;
+ color: '#666';
+`;
+ var sx = Object.defineProperty,
+ lx = Object.getOwnPropertyDescriptor;
+ class cx extends n.PureComponent {
+ constructor(e) {
+ super(e),
+ (this.activeItemRef = null),
+ (this.clear = () => {
+ this.setState({ results: [], noResults: !1, term: '', activeItemIdx: -1 }),
+ this.props.marker.unmark();
+ }),
+ (this.handleKeyDown = e => {
+ if (
+ (27 === e.keyCode && this.clear(),
+ 40 === e.keyCode &&
+ (this.setState({
+ activeItemIdx: Math.min(
+ this.state.activeItemIdx + 1,
+ this.state.results.length - 1,
+ ),
+ }),
+ e.preventDefault()),
+ 38 === e.keyCode &&
+ (this.setState({ activeItemIdx: Math.max(0, this.state.activeItemIdx - 1) }),
+ e.preventDefault()),
+ 13 === e.keyCode)
+ ) {
+ const e = this.state.results[this.state.activeItemIdx];
+ if (e) {
+ const t = this.props.getItemById(e.meta);
+ t && this.props.onActivate(t);
+ }
+ }
+ }),
+ (this.search = e => {
+ const { minCharacterLengthToInitSearch: t } = this.context,
+ n = e.target.value;
+ n.length < t
+ ? this.clearResults(n)
+ : this.setState({ term: n }, () => this.searchCallback(this.state.term));
+ }),
+ (this.state = { results: [], noResults: !1, term: '', activeItemIdx: -1 });
+ }
+ clearResults(e) {
+ this.setState({ results: [], noResults: !1, term: e }), this.props.marker.unmark();
+ }
+ setResults(e, t) {
+ this.setState({ results: e, noResults: 0 === e.length }), this.props.marker.mark(t);
+ }
+ searchCallback(e) {
+ this.props.search.search(e).then(t => {
+ this.setResults(t, e);
+ });
+ }
+ render() {
+ const { activeItemIdx: e } = this.state,
+ t = this.state.results
+ .filter(e => this.props.getItemById(e.meta))
+ .map(e => ({ item: this.props.getItemById(e.meta), score: e.score }))
+ .sort((e, t) => t.score - e.score);
+ return n.createElement(
+ nx,
+ { role: 'search' },
+ this.state.term && n.createElement(ax, { onClick: this.clear }, '×'),
+ n.createElement(ix, null),
+ n.createElement(rx, {
+ value: this.state.term,
+ onKeyDown: this.handleKeyDown,
+ placeholder: 'Search...',
+ 'aria-label': 'Search',
+ type: 'text',
+ onChange: this.search,
+ }),
+ t.length > 0 &&
+ n.createElement(
+ Cd,
+ { options: { wheelPropagation: !1 } },
+ n.createElement(
+ ox,
+ { 'data-role': 'search:results' },
+ t.map((t, r) =>
+ n.createElement(Nb, {
+ item: Object.create(t.item, { active: { value: r === e } }),
+ onActivate: this.props.onActivate,
+ withoutChildren: !0,
+ key: t.item.id,
+ 'data-role': 'search:result',
+ }),
+ ),
+ ),
+ ),
+ this.state.term && this.state.noResults
+ ? n.createElement(ox, { 'data-role': 'search:results' }, di('noResultsFound'))
+ : null,
+ );
+ }
+ }
+ (cx.contextType = Oa),
+ ((e, t, n, r) => {
+ for (var i, o = lx(t, n), a = e.length - 1; a >= 0; a--)
+ (i = e[a]) && (o = i(t, n, o) || o);
+ o && sx(t, n, o);
+ })([Pa.bind, (0, Pa.debounce)(400)], cx.prototype, 'searchCallback');
+ class ux extends n.Component {
+ componentDidMount() {
+ this.props.store.onDidMount();
+ }
+ componentWillUnmount() {
+ this.props.store.dispose();
+ }
+ render() {
+ const {
+ store: { spec: e, menu: t, options: r, search: i, marker: o },
+ } = this.props,
+ a = this.props.store;
+ return n.createElement(
+ da,
+ { theme: r.theme },
+ n.createElement(
+ Lu,
+ { value: a },
+ n.createElement(
+ Sa,
+ { value: r },
+ n.createElement(
+ Jb,
+ { className: 'redoc-wrap' },
+ n.createElement(
+ Zb,
+ { menu: t, className: 'menu-content' },
+ n.createElement(wy, { info: e.info }),
+ (!r.disableSearch &&
+ n.createElement(cx, {
+ search: i,
+ marker: o,
+ getItemById: t.getItemById,
+ onActivate: t.activateAndScroll,
+ })) ||
+ null,
+ n.createElement(Vb, { menu: t }),
+ ),
+ n.createElement(
+ ex,
+ { className: 'api-content' },
+ n.createElement(yy, { store: a }),
+ n.createElement(Ob, { items: t.items }),
+ ),
+ n.createElement(tx, null),
+ ),
+ ),
+ ),
+ );
+ }
+ }
+ ux.propTypes = { store: ka.instanceOf(uy).isRequired };
+ var px = Object.defineProperty,
+ dx = Object.getOwnPropertySymbols,
+ fx = Object.prototype.hasOwnProperty,
+ hx = Object.prototype.propertyIsEnumerable,
+ mx = (e, t, n) =>
+ t in e
+ ? px(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ gx = (e, t) => {
+ for (var n in t || (t = {})) fx.call(t, n) && mx(e, n, t[n]);
+ if (dx) for (var n of dx(t)) hx.call(t, n) && mx(e, n, t[n]);
+ return e;
+ };
+ const yx = function (e) {
+ const { spec: t, specUrl: i, options: o = {}, onLoaded: a } = e,
+ s = ki(o.hideLoading, !1),
+ l = new Si(o);
+ if (void 0 !== l.nonce)
+ try {
+ r.nc = l.nonce;
+ } catch (e) {}
+ return n.createElement(
+ ya,
+ null,
+ n.createElement(
+ Mu,
+ { spec: t ? gx({}, t) : void 0, specUrl: i, options: o, onLoaded: a },
+ ({ loading: e, store: t }) =>
+ e
+ ? s
+ ? null
+ : n.createElement(wa, { color: l.theme.colors.primary.main })
+ : n.createElement(ux, { store: t }),
+ ),
+ );
+ };
+ var vx = Object.defineProperty,
+ bx = Object.getOwnPropertySymbols,
+ xx = Object.prototype.hasOwnProperty,
+ wx = Object.prototype.propertyIsEnumerable,
+ kx = (e, t, n) =>
+ t in e
+ ? vx(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
+ : (e[t] = n),
+ Ox = (e, t) => {
+ for (var n in t || (t = {})) xx.call(t, n) && kx(e, n, t[n]);
+ if (bx) for (var n of bx(t)) wx.call(t, n) && kx(e, n, t[n]);
+ return e;
+ };
+ Dt({ useProxies: 'ifavailable' });
+ const Sx = '2.1.3',
+ Ex = '64e17dde';
+ function _x(e) {
+ const t = (function (e) {
+ const t = {},
+ n = e.attributes;
+ for (let e = 0; e < n.length; e++) {
+ const r = n[e];
+ t[r.name] = r.value;
+ }
+ return t;
+ })(e),
+ n = {};
+ for (const e in t) {
+ const r = e.replace(/-(.)/g, (e, t) => t.toUpperCase()),
+ i = t[e];
+ n[r] = 'theme' === e ? JSON.parse(i) : i;
+ }
+ return n;
+ }
+ function Ax(e, t = {}, r = Gr('redoc'), i) {
+ if (null === r)
+ throw new Error(
+ '"element" argument is not provided and tag is not found on the page',
+ );
+ let a, s;
+ 'string' == typeof e ? (a = e) : 'object' == typeof e && (s = e),
+ (0, o.render)(
+ n.createElement(
+ yx,
+ { spec: s, onLoaded: i, specUrl: a, options: Ox(Ox({}, t), _x(r)) },
+ ['Loading...'],
+ ),
+ r,
+ );
+ }
+ function jx(e = Gr('redoc')) {
+ e && (0, o.unmountComponentAtNode)(e);
+ }
+ function Cx(e, t = Gr('redoc'), r) {
+ const i = uy.fromJS(e);
+ setTimeout(() => {
+ (0, o.hydrate)(n.createElement(ux, { store: i }), t, r);
+ }, 0);
+ }
+ !(function () {
+ const e = Gr('redoc');
+ if (!e) return;
+ const t = e.getAttribute('spec-url');
+ t && Ax(t, {}, e);
+ })();
+ })(),
+ i
+ );
+ })();
+});
+//# sourceMappingURL=redoc.standalone.js.map
diff --git a/bundles/redoc.standalone.js.LICENSE.txt b/bundles/redoc.standalone.js.LICENSE.txt
new file mode 100644
index 00000000..6cb85cb1
--- /dev/null
+++ b/bundles/redoc.standalone.js.LICENSE.txt
@@ -0,0 +1,95 @@
+/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/
+
+/*!
+ Copyright (c) 2018 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+*/
+
+/*!
+ * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
+ * -------------------------------------------------------------
+ * Version: "2.1.3"
+ * Repo: https://github.com/Redocly/redoc
+ */
+
+/*!
+ * Stickyfill -- `position: sticky` polyfill
+ * v. 1.1.1 | https://github.com/wilddeer/stickyfill
+ * Copyright Oleg Korsunsky | http://wd.dizaina.net/
+ *
+ * MIT License
+ */
+
+/*!
+ * perfect-scrollbar v1.5.3
+ * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
+ * Licensed under MIT
+ */
+
+/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
+
+/*!***************************************************
+* mark.js v8.11.1
+* https://markjs.io/
+* Copyright (c) 2014–2018, Julian Kühnel
+* Released under the MIT license https://git.io/vwTVl
+*****************************************************/
+
+/**
+ * Prism: Lightweight, robust, elegant syntax highlighting
+ *
+ * @license MIT
+ * @author Lea Verou
+ * @namespace
+ * @public
+ */
+
+/** @license React v0.20.2
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v16.13.1
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/** @license React v17.0.2
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */