',
+ o = function () {
+ var e,
+ t = this,
+ o = arguments,
+ i = ++Lt,
+ a = Pt(r + ' - runid: ' + i + ' - init', n).apply(t, o),
+ s = void 0,
+ l = new Promise(function (t, n) {
+ var o = 0;
+ function l(e) {
+ var t;
+ s = void 0;
+ try {
+ t = Pt(
+ r + ' - runid: ' + i + ' - yield ' + o++,
+ a.next
+ ).call(a, e);
+ } catch (e) {
+ return n(e);
+ }
+ u(t);
+ }
+ function c(e) {
+ var t;
+ s = void 0;
+ try {
+ t = Pt(
+ r + ' - runid: ' + i + ' - yield ' + o++,
+ a.throw
+ ).call(a, e);
+ } catch (e) {
+ return n(e);
+ }
+ u(t);
+ }
+ function u(e) {
+ if (!w(null == e ? void 0 : e.then))
+ return e.done
+ ? t(e.value)
+ : (s = Promise.resolve(e.value)).then(l, c);
+ e.then(u, n);
+ }
+ (e = n), l(void 0);
+ });
+ return (
+ (l.cancel = Pt(
+ r + ' - runid: ' + i + ' - cancel',
+ function () {
+ try {
+ s && Vt(s);
+ var t = a.return(void 0),
+ n = Promise.resolve(t.value);
+ n.then(b, b), Vt(n), e(new Mt());
+ } catch (t) {
+ e(t);
+ }
+ }
+ )),
+ l
+ );
+ };
+ return (o.isMobXFlow = !0), o;
+ }, Ft);
+ function Vt(e) {
+ w(e.cancel) && e.cancel();
+ }
+ function Bt(e) {
+ return !0 === (null == e ? void 0 : e.isMobXFlow);
+ }
+ function qt(e) {
+ return (function (e, t) {
+ return (
+ !!e &&
+ (void 0 !== t
+ ? !!Tn(e) && e[W].values_.has(t)
+ : Tn(e) || !!e[W] || Y(e) || bt(e) || Ye(e))
+ );
+ })(e);
+ }
+ function Wt(e) {
+ switch (e.length) {
+ case 0:
+ return lt.trackingDerivation;
+ case 1:
+ return Bn(e[0]);
+ case 2:
+ return Bn(e[0], e[1]);
+ }
+ }
+ function Ht(e, t) {
+ void 0 === t && (t = void 0), pt();
+ try {
+ return e.apply(t);
+ } finally {
+ dt();
+ }
+ }
+ function Yt(e) {
+ return e[W];
+ }
+ Ut.bound = B(zt);
+ var Kt = {
+ has: function (e, t) {
+ return Yt(e).has_(t);
+ },
+ get: function (e, t) {
+ return Yt(e).get_(t);
+ },
+ set: function (e, t, n) {
+ var r;
+ return !!x(t) && (null == (r = Yt(e).set_(t, n, !0)) || r);
+ },
+ deleteProperty: function (e, t) {
+ var n;
+ return !!x(t) && (null == (n = Yt(e).delete_(t, !0)) || n);
+ },
+ defineProperty: function (e, t, n) {
+ var r;
+ return null == (r = Yt(e).defineProperty_(t, n)) || r;
+ },
+ ownKeys: function (e) {
+ return Yt(e).ownKeys_();
+ },
+ preventExtensions: function (e) {
+ a(13);
+ }
+ };
+ function Gt(e) {
+ return void 0 !== e.interceptors_ && e.interceptors_.length > 0;
+ }
+ function Qt(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 Xt(e, t) {
+ var n = et();
+ try {
+ for (
+ var r = [].concat(e.interceptors_ || []), o = 0, i = r.length;
+ o < i && ((t = r[o](t)) && !t.type && a(14), t);
+ o++
+ );
+ return t;
+ } finally {
+ tt(n);
+ }
+ }
+ function Jt(e) {
+ return void 0 !== e.changeListeners_ && e.changeListeners_.length > 0;
+ }
+ function Zt(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 en(e, t) {
+ var n = et(),
+ r = e.changeListeners_;
+ if (r) {
+ for (var o = 0, i = (r = r.slice()).length; o < i; o++) r[o](t);
+ tt(n);
+ }
+ }
+ function tn(e, t, n) {
+ var r = Cn(e, n)[W];
+ pt();
+ try {
+ null != t ||
+ (t = (function (e) {
+ return T(e, V) || S(e, V, L({}, e[V])), e[V];
+ })(e)),
+ R(t).forEach(function (e) {
+ return r.make_(e, t[e]);
+ });
+ } finally {
+ dt();
+ }
+ return e;
+ }
+ var nn = 'splice',
+ rn = 'update',
+ on = {
+ get: function (e, t) {
+ var n = e[W];
+ return t === W
+ ? n
+ : 'length' === t
+ ? n.getArrayLength_()
+ : 'string' != typeof t || isNaN(t)
+ ? T(ln, t)
+ ? ln[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);
+ }
+ },
+ an = (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 Qt(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
+ }),
+ Zt(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 && Un(e + t + 1);
+ }),
+ (t.spliceWithArray_ = function (e, t, n) {
+ var r = this;
+ this.atom_;
+ var o = this.values_.length;
+ if (
+ (void 0 === e
+ ? (e = 0)
+ : e > o
+ ? (e = o)
+ : e < 0 && (e = Math.max(0, o + e)),
+ (t =
+ 1 === arguments.length
+ ? o - e
+ : null == t
+ ? 0
+ : Math.max(0, Math.min(t, o - e))),
+ void 0 === n && (n = f),
+ Gt(this))
+ ) {
+ var i = Xt(this, {
+ object: this.proxy_,
+ type: nn,
+ index: e,
+ removedCount: t,
+ added: n
+ });
+ if (!i) return f;
+ (t = i.removedCount), (n = i.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_(o, 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 o = this.values_.slice(e, e + t),
+ i = 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 < i.length; s++)
+ this.values_[e + n.length + s] = i[s];
+ return o;
+ }),
+ (t.notifyArrayChildUpdate_ = function (e, t, n) {
+ var r = !this.owned_ && !1,
+ o = Jt(this),
+ i =
+ o || r
+ ? {
+ observableKind: 'array',
+ object: this.proxy_,
+ type: rn,
+ debugObjectName: this.atom_.name_,
+ index: e,
+ newValue: t,
+ oldValue: n
+ }
+ : null;
+ this.atom_.reportChanged(), o && en(this, i);
+ }),
+ (t.notifyArraySplice_ = function (e, t, n) {
+ var r = !this.owned_ && !1,
+ o = Jt(this),
+ i =
+ o || r
+ ? {
+ observableKind: 'array',
+ object: this.proxy_,
+ debugObjectName: this.atom_.name_,
+ type: nn,
+ index: e,
+ removed: n,
+ added: t,
+ removedCount: n.length,
+ addedCount: t.length
+ }
+ : null;
+ this.atom_.reportChanged(), o && en(this, i);
+ }),
+ (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 (Gt(this)) {
+ var o = Xt(this, {
+ type: rn,
+ object: this.proxy_,
+ index: e,
+ newValue: t
+ });
+ if (!o) return;
+ t = o.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 sn(e, t, n, r) {
+ void 0 === n && (n = 'ObservableArray'),
+ void 0 === r && (r = !1),
+ y();
+ var o = new an(n, t, r, !1);
+ E(o.values_, W, o);
+ var i = new Proxy(o.values_, on);
+ if (((o.proxy_ = i), e && e.length)) {
+ var a = ze(!0);
+ o.spliceWithArray_(0, 0, e), Ue(a);
+ }
+ return i;
+ }
+ var ln = {
+ 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), o = 2;
+ o < n;
+ o++
+ )
+ r[o - 2] = arguments[o];
+ var i = this[W];
+ switch (arguments.length) {
+ case 0:
+ return [];
+ case 1:
+ return i.spliceWithArray_(e);
+ case 2:
+ return i.spliceWithArray_(e, t);
+ }
+ return i.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 cn(e, t) {
+ 'function' == typeof Array.prototype[e] && (ln[e] = t(e));
+ }
+ function un(e) {
+ return function () {
+ var t = this[W];
+ t.atom_.reportObserved();
+ var n = t.dehanceValues_(t.values_);
+ return n[e].apply(n, arguments);
+ };
+ }
+ function pn(e) {
+ return function (t, n) {
+ var r = this,
+ o = this[W];
+ return (
+ o.atom_.reportObserved(),
+ o.dehanceValues_(o.values_)[e](function (e, o) {
+ return t.call(n, e, o, r);
+ })
+ );
+ };
+ }
+ function dn(e) {
+ return function () {
+ var t = this,
+ n = this[W];
+ n.atom_.reportObserved();
+ var r = n.dehanceValues_(n.values_),
+ o = arguments[0];
+ return (
+ (arguments[0] = function (e, n, r) {
+ return o(e, n, r, t);
+ }),
+ r[e].apply(r, arguments)
+ );
+ };
+ }
+ cn('concat', un),
+ cn('flat', un),
+ cn('includes', un),
+ cn('indexOf', un),
+ cn('join', un),
+ cn('lastIndexOf', un),
+ cn('slice', un),
+ cn('toString', un),
+ cn('toLocaleString', un),
+ cn('every', pn),
+ cn('filter', pn),
+ cn('find', pn),
+ cn('findIndex', pn),
+ cn('flatMap', pn),
+ cn('forEach', pn),
+ cn('map', pn),
+ cn('some', pn),
+ cn('reduce', dn),
+ cn('reduceRight', dn);
+ var fn,
+ hn,
+ mn = P('ObservableArrayAdministration', an);
+ function gn(e) {
+ return k(e) && mn(e[W]);
+ }
+ var yn = {},
+ vn = 'add',
+ bn = 'delete';
+ (fn = Symbol.iterator), (hn = Symbol.toStringTag);
+ var wn,
+ xn,
+ kn = (function () {
+ function e(e, t, n) {
+ void 0 === t && (t = Q),
+ void 0 === n && (n = 'ObservableMap'),
+ (this.enhancer_ = void 0),
+ (this.name_ = void 0),
+ (this[W] = yn),
+ (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),
+ w(Map) || a(18),
+ (this.keysAtom_ = K('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 Be(
+ this.has_(e),
+ X,
+ 'ObservableMap.key?',
+ !1
+ ));
+ this.hasMap_.set(e, r),
+ jt(r, function () {
+ return t.hasMap_.delete(e);
+ });
+ }
+ return n.get();
+ }),
+ (t.set = function (e, t) {
+ var n = this.has_(e);
+ if (Gt(this)) {
+ var r = Xt(this, {
+ type: n ? rn : vn,
+ 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_,
+ Gt(this) && !Xt(this, { type: bn, object: this, name: e }))
+ )
+ return !1;
+ if (this.has_(e)) {
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: bn,
+ object: this,
+ oldValue: this.data_.get(e).value_,
+ name: e
+ }
+ : null;
+ return (
+ Ht(function () {
+ t.keysAtom_.reportChanged(),
+ t.updateHasMapEntry_(e, !1),
+ t.data_.get(e).setNewValue_(void 0),
+ t.data_.delete(e);
+ }),
+ n && en(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),
+ o = r
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: rn,
+ object: this,
+ oldValue: n.value_,
+ name: e,
+ newValue: t
+ }
+ : null;
+ n.setNewValue_(t), r && en(this, o);
+ }
+ }),
+ (t.addValue_ = function (e, t) {
+ var n = this;
+ this.keysAtom_,
+ Ht(function () {
+ var r = new Be(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),
+ o = r
+ ? {
+ observableKind: 'map',
+ debugObjectName: this.name_,
+ type: vn,
+ object: this,
+ name: e,
+ newValue: t
+ }
+ : null;
+ r && en(this, o);
+ }),
+ (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 Qn({
+ next: function () {
+ var n = t.next(),
+ r = n.done,
+ o = n.value;
+ return { done: r, value: r ? void 0 : e.get(o) };
+ }
+ });
+ }),
+ (t.entries = function () {
+ var e = this,
+ t = this.keys();
+ return Qn({
+ next: function () {
+ var n = t.next(),
+ r = n.done,
+ o = n.value;
+ return { done: r, value: r ? void 0 : [o, e.get(o)] };
+ }
+ });
+ }),
+ (t[fn] = function () {
+ return this.entries();
+ }),
+ (t.forEach = function (e, t) {
+ for (var n, r = U(this); !(n = r()).done; ) {
+ var o = n.value,
+ i = o[0],
+ a = o[1];
+ e.call(t, a, i, this);
+ }
+ }),
+ (t.merge = function (e) {
+ var t = this;
+ return (
+ _n(e) && (e = new Map(e)),
+ Ht(function () {
+ _(e)
+ ? (function (e) {
+ var t = Object.keys(e);
+ if (!C) 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);
+ })
+ : A(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;
+ Ht(function () {
+ Ze(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 (
+ Ht(function () {
+ for (
+ var n,
+ r = (function (e) {
+ if (A(e) || _n(e)) return e;
+ if (Array.isArray(e)) return new Map(e);
+ if (_(e)) {
+ var t = new Map();
+ for (var n in e) t.set(n, e[n]);
+ return t;
+ }
+ return a(21, e);
+ })(e),
+ o = new Map(),
+ i = !1,
+ s = U(t.data_.keys());
+ !(n = s()).done;
+
+ ) {
+ var l = n.value;
+ if (!r.has(l))
+ if (t.delete(l)) i = !0;
+ else {
+ var c = t.data_.get(l);
+ o.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);
+ o.set(f, g), m || (i = !0);
+ }
+ }
+ if (!i)
+ if (t.data_.size !== o.size) t.keysAtom_.reportChanged();
+ else
+ for (
+ var y = t.data_.keys(),
+ v = o.keys(),
+ b = y.next(),
+ w = v.next();
+ !b.done;
+
+ ) {
+ if (b.value !== w.value) {
+ t.keysAtom_.reportChanged();
+ break;
+ }
+ (b = y.next()), (w = v.next());
+ }
+ t.data_ = o;
+ }),
+ this
+ );
+ }),
+ (t.toString = function () {
+ return '[object ObservableMap]';
+ }),
+ (t.toJSON = function () {
+ return Array.from(this);
+ }),
+ (t.observe_ = function (e, t) {
+ return Zt(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Qt(this, e);
+ }),
+ D(e, [
+ {
+ key: 'size',
+ get: function () {
+ return this.keysAtom_.reportObserved(), this.data_.size;
+ }
+ },
+ {
+ key: hn,
+ get: function () {
+ return 'Map';
+ }
+ }
+ ]),
+ e
+ );
+ })(),
+ _n = P('ObservableMap', kn),
+ On = {};
+ (wn = Symbol.iterator), (xn = Symbol.toStringTag);
+ var Sn = (function () {
+ function e(e, t, n) {
+ void 0 === t && (t = Q),
+ void 0 === n && (n = 'ObservableSet'),
+ (this.name_ = void 0),
+ (this[W] = On),
+ (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),
+ w(Set) || a(22),
+ (this.atom_ = K(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;
+ Ht(function () {
+ Ze(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 o = n.value;
+ e.call(t, o, o, this);
+ }
+ }),
+ (t.add = function (e) {
+ var t = this;
+ if (
+ (this.atom_,
+ Gt(this) &&
+ !Xt(this, { type: vn, object: this, newValue: e }))
+ )
+ return this;
+ if (!this.has(e)) {
+ Ht(function () {
+ t.data_.add(t.enhancer_(e, void 0)),
+ t.atom_.reportChanged();
+ });
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'set',
+ debugObjectName: this.name_,
+ type: vn,
+ object: this,
+ newValue: e
+ }
+ : null;
+ n && en(this, r);
+ }
+ return this;
+ }),
+ (t.delete = function (e) {
+ var t = this;
+ if (
+ Gt(this) &&
+ !Xt(this, { type: bn, object: this, oldValue: e })
+ )
+ return !1;
+ if (this.has(e)) {
+ var n = Jt(this),
+ r = n
+ ? {
+ observableKind: 'set',
+ debugObjectName: this.name_,
+ type: bn,
+ object: this,
+ oldValue: e
+ }
+ : null;
+ return (
+ Ht(function () {
+ t.atom_.reportChanged(), t.data_.delete(e);
+ }),
+ n && en(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 Qn({
+ 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 Qn({
+ next: function () {
+ return t < n.length
+ ? { value: e.dehanceValue_(n[t++]), done: !1 }
+ : { done: !0 };
+ }
+ });
+ }),
+ (t.replace = function (e) {
+ var t = this;
+ return (
+ En(e) && (e = new Set(e)),
+ Ht(function () {
+ Array.isArray(e) || $(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 Zt(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Qt(this, e);
+ }),
+ (t.toJSON = function () {
+ return Array.from(this);
+ }),
+ (t.toString = function () {
+ return '[object ObservableSet]';
+ }),
+ (t[wn] = function () {
+ return this.values();
+ }),
+ D(e, [
+ {
+ key: 'size',
+ get: function () {
+ return this.atom_.reportObserved(), this.data_.size;
+ }
+ },
+ {
+ key: xn,
+ get: function () {
+ return 'Set';
+ }
+ }
+ ]),
+ e
+ );
+ })(),
+ En = P('ObservableSet', Sn),
+ Pn = Object.create(null),
+ An = 'remove',
+ $n = (function () {
+ function e(e, t, n, r) {
+ void 0 === t && (t = new Map()),
+ void 0 === r && (r = fe),
+ (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_ = _(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 (Gt(this)) {
+ var r = Xt(this, {
+ type: rn,
+ object: this.proxy_ || this.target_,
+ name: e,
+ newValue: t
+ });
+ if (!r) return null;
+ t = r.newValue;
+ }
+ if ((t = n.prepareNewValue_(t)) !== lt.UNCHANGED) {
+ var o = Jt(this),
+ i = o
+ ? {
+ type: rn,
+ observableKind: 'object',
+ debugObjectName: this.name_,
+ object: this.proxy_ || this.target_,
+ oldValue: n.value_,
+ name: e,
+ newValue: t
+ }
+ : null;
+ n.setNewValue_(t), o && en(this, i);
+ }
+ return !0;
+ }),
+ (t.get_ = function (e) {
+ return (
+ lt.trackingDerivation && !T(this.target_, e) && this.has_(e),
+ this.target_[e]
+ );
+ }),
+ (t.set_ = function (e, t, n) {
+ return (
+ void 0 === n && (n = !1),
+ T(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 Be(
+ e in this.target_,
+ X,
+ '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_[V]) ? void 0 : n[e]) return;
+ a(1, t.annotationType_, this.name_ + '.' + e.toString());
+ }
+ for (var r = this.target_; r && r !== d; ) {
+ var o = u(r, e);
+ if (o) {
+ var i = t.make_(this, e, o, r);
+ if (0 === i) return;
+ if (1 === i) break;
+ }
+ r = Object.getPrototypeOf(r);
+ }
+ In(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 o = n.extend_(this, e, t, r);
+ return o && In(this, 0, e), o;
+ }),
+ (t.defineProperty_ = function (e, t, n) {
+ void 0 === n && (n = !1);
+ try {
+ pt();
+ var r = this.delete_(e);
+ if (!r) return r;
+ if (Gt(this)) {
+ var o = Xt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: vn,
+ newValue: t.value
+ });
+ if (!o) return null;
+ var i = o.newValue;
+ t.value !== i && (t = L({}, t, { value: i }));
+ }
+ 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 o = this.delete_(e);
+ if (!o) return o;
+ if (Gt(this)) {
+ var i = Xt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: vn,
+ newValue: t
+ });
+ if (!i) return null;
+ t = i.newValue;
+ }
+ var a = jn(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 Be(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 (
+ Gt(this) &&
+ !Xt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: vn,
+ newValue: void 0
+ })
+ )
+ return null;
+ t.name || (t.name = 'ObservableObject.key'),
+ (t.context = this.proxy_ || this.target_);
+ var o = jn(e),
+ i = {
+ configurable: !lt.safeDescriptors || this.isPlainObject_,
+ enumerable: !1,
+ get: o.get,
+ set: o.set
+ };
+ if (n) {
+ if (!Reflect.defineProperty(this.target_, e, i)) return !1;
+ } else p(this.target_, e, i);
+ 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), !T(this.target_, e))) return !0;
+ if (
+ Gt(this) &&
+ !Xt(this, {
+ object: this.proxy_ || this.target_,
+ name: e,
+ type: An
+ })
+ )
+ return null;
+ try {
+ var n, r;
+ pt();
+ var o,
+ i = Jt(this),
+ a = this.values_.get(e),
+ s = void 0;
+ if (
+ (!a &&
+ i &&
+ (s = null == (o = u(this.target_, e)) ? void 0 : o.value),
+ t)
+ ) {
+ if (!Reflect.deleteProperty(this.target_, e)) return !1;
+ } else delete this.target_[e];
+ if (
+ (a &&
+ (this.values_.delete(e),
+ a instanceof Be && (s = a.value_),
+ ht(a)),
+ this.keysAtom_.reportChanged(),
+ null == (n = this.pendingKeys_) ||
+ null == (r = n.get(e)) ||
+ r.set(e in this.target_),
+ i)
+ ) {
+ var l = {
+ type: An,
+ observableKind: 'object',
+ object: this.proxy_ || this.target_,
+ debugObjectName: this.name_,
+ oldValue: s,
+ name: e
+ };
+ i && en(this, l);
+ }
+ } finally {
+ dt();
+ }
+ return !0;
+ }),
+ (t.observe_ = function (e, t) {
+ return Zt(this, e);
+ }),
+ (t.intercept_ = function (e) {
+ return Qt(this, e);
+ }),
+ (t.notifyPropertyAddition_ = function (e, t) {
+ var n,
+ r,
+ o = Jt(this);
+ if (o) {
+ var i = o
+ ? {
+ type: vn,
+ observableKind: 'object',
+ debugObjectName: this.name_,
+ object: this.proxy_ || this.target_,
+ name: e,
+ newValue: t
+ }
+ : null;
+ o && en(this, i);
+ }
+ null == (n = this.pendingKeys_) ||
+ null == (r = n.get(e)) ||
+ r.set(!0),
+ this.keysAtom_.reportChanged();
+ }),
+ (t.ownKeys_ = function () {
+ return this.keysAtom_.reportObserved(), R(this.target_);
+ }),
+ (t.keys_ = function () {
+ return (
+ this.keysAtom_.reportObserved(), Object.keys(this.target_)
+ );
+ }),
+ e
+ );
+ })();
+ function Cn(e, t) {
+ var n;
+ if (T(e, W)) return e;
+ var r =
+ null != (n = null == t ? void 0 : t.name)
+ ? n
+ : 'ObservableObject',
+ o = new $n(
+ e,
+ new Map(),
+ String(r),
+ (function (e) {
+ var t;
+ return e
+ ? null != (t = e.defaultDecorator)
+ ? t
+ : he(e)
+ : void 0;
+ })(t)
+ );
+ return S(e, W, o), e;
+ }
+ var Rn = P('ObservableObjectAdministration', $n);
+ function jn(e) {
+ return (
+ Pn[e] ||
+ (Pn[e] = {
+ get: function () {
+ return this[W].getObservablePropValue_(e);
+ },
+ set: function (t) {
+ return this[W].setObservablePropValue_(e, t);
+ }
+ })
+ );
+ }
+ function Tn(e) {
+ return !!k(e) && Rn(e[W]);
+ }
+ function In(e, t, n) {
+ var r;
+ null == (r = e.target_[V]) || delete r[n];
+ }
+ var Nn,
+ Dn,
+ Ln = 0,
+ Mn = function () {};
+ (Nn = Mn),
+ (Dn = Array.prototype),
+ Object.setPrototypeOf
+ ? Object.setPrototypeOf(Nn.prototype, Dn)
+ : void 0 !== Nn.prototype.__proto__
+ ? (Nn.prototype.__proto__ = Dn)
+ : (Nn.prototype = Dn);
+ var Fn = (function (e) {
+ function t(t, n, r, o) {
+ var i;
+ void 0 === r && (r = 'ObservableArray'),
+ void 0 === o && (o = !1),
+ (i = e.call(this) || this);
+ var a = new an(r, n, o, !0);
+ if (((a.proxy_ = F(i)), E(F(i), W, a), t && t.length)) {
+ var s = ze(!0);
+ i.spliceWithArray(0, 0, t), Ue(s);
+ }
+ return i;
+ }
+ 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 gn(e) ? e.slice() : e;
+ })
+ );
+ }),
+ (n[Symbol.iterator] = function () {
+ var e = this,
+ t = 0;
+ return Qn({
+ next: function () {
+ return t < e.length
+ ? { value: e[t++], done: !1 }
+ : { done: !0, value: void 0 };
+ }
+ });
+ }),
+ D(t, [
+ {
+ key: 'length',
+ get: function () {
+ return this[W].getArrayLength_();
+ },
+ set: function (e) {
+ this[W].setArrayLength_(e);
+ }
+ },
+ {
+ key: Symbol.toStringTag,
+ get: function () {
+ return 'Array';
+ }
+ }
+ ]),
+ t
+ );
+ })(Mn);
+ function zn(e) {
+ p(
+ Fn.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 Un(e) {
+ if (e > Ln) {
+ for (var t = Ln; t < e + 100; t++) zn(t);
+ Ln = e;
+ }
+ }
+ function Vn(e, t, n) {
+ return new Fn(e, t, n);
+ }
+ function Bn(e, t) {
+ if ('object' == typeof e && null !== e) {
+ if (gn(e)) return void 0 !== t && a(23), e[W].atom_;
+ if (En(e)) return e[W];
+ if (_n(e)) {
+ if (void 0 === t) return e.keysAtom_;
+ var n = e.data_.get(t) || e.hasMap_.get(t);
+ return n || a(25, t, Wn(e)), n;
+ }
+ if (Tn(e)) {
+ if (!t) return a(26);
+ var r = e[W].values_.get(t);
+ return r || a(27, t, Wn(e)), r;
+ }
+ if (Y(e) || Ye(e) || bt(e)) return e;
+ } else if (w(e) && bt(e[W])) return e[W];
+ a(28);
+ }
+ function qn(e, t) {
+ return (
+ e || a(29),
+ void 0 !== t
+ ? qn(Bn(e, t))
+ : Y(e) || Ye(e) || bt(e) || _n(e) || En(e)
+ ? e
+ : e[W]
+ ? e[W]
+ : void a(24, e)
+ );
+ }
+ function Wn(e, t) {
+ var n;
+ if (void 0 !== t) n = Bn(e, t);
+ else {
+ if ($t(e)) return e.name;
+ n = Tn(e) || _n(e) || En(e) ? qn(e) : Bn(e);
+ }
+ return n.name_;
+ }
+ Object.entries(ln).forEach(function (e) {
+ var t = e[0],
+ n = e[1];
+ 'concat' !== t && S(Fn.prototype, t, n);
+ }),
+ Un(1e3);
+ var Hn = d.toString;
+ function Yn(e, t, n) {
+ return void 0 === n && (n = -1), Kn(e, t, n);
+ }
+ function Kn(e, t, n, r, o) {
+ if (e === t) return 0 !== e || 1 / e == 1 / t;
+ if (null == e || null == t) return !1;
+ if (e != e) return t != t;
+ var i = typeof e;
+ if (!w(i) && 'object' !== i && 'object' != typeof t) return !1;
+ var a = Hn.call(e);
+ if (a !== Hn.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 = Gn(e)), (t = Gn(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 &&
+ !(w(l) && l instanceof l && w(c) && c instanceof c) &&
+ 'constructor' in e &&
+ 'constructor' in t
+ )
+ return !1;
+ }
+ if (0 === n) return !1;
+ n < 0 && (n = -1), (o = o || []);
+ for (var u = (r = r || []).length; u--; )
+ if (r[u] === e) return o[u] === t;
+ if ((r.push(e), o.push(t), s)) {
+ if ((u = e.length) !== t.length) return !1;
+ for (; u--; ) if (!Kn(e[u], t[u], n - 1, r, o)) return !1;
+ } else {
+ var p,
+ d = Object.keys(e);
+ if (((u = d.length), Object.keys(t).length !== u)) return !1;
+ for (; u--; )
+ if (!T(t, (p = d[u])) || !Kn(e[p], t[p], n - 1, r, o)) return !1;
+ }
+ return r.pop(), o.pop(), !0;
+ }
+ function Gn(e) {
+ return gn(e)
+ ? e.slice()
+ : A(e) || _n(e) || $(e) || En(e)
+ ? Array.from(e.entries())
+ : e;
+ }
+ function Qn(e) {
+ return (e[Symbol.iterator] = Xn), e;
+ }
+ function Xn() {
+ 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 Zn(e, t) {
+ return (
+ (Zn =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ Zn(e, t)
+ );
+ }
+ function er(e) {
+ return (
+ (er = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e);
+ }),
+ er(e)
+ );
+ }
+ function tr() {
+ 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;
+ }
+ }
+ function nr(e, t, n) {
+ return (
+ (nr = tr()
+ ? Reflect.construct
+ : function (e, t, n) {
+ var r = [null];
+ r.push.apply(r, t);
+ var o = new (Function.bind.apply(e, r))();
+ return n && Zn(o, n.prototype), o;
+ }),
+ 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, er(this).constructor);
+ }
+ return (
+ (r.prototype = Object.create(e.prototype, {
+ constructor: {
+ value: r,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ })),
+ Zn(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: Wn },
+ $mobx: W
+ });
+ var or = (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),
+ Zn(t, n),
+ r
+ );
+ })(rr(Error));
+ function ir(e) {
+ return Math.round(255 * e);
+ }
+ function ar(e, t, n) {
+ return ir(e) + ',' + ir(t) + ',' + ir(n);
+ }
+ function sr(e, t, n, r) {
+ if ((void 0 === r && (r = ar), 0 === t)) return r(n, n, n);
+ var o = (((e % 360) + 360) % 360) / 60,
+ i = (1 - Math.abs(2 * n - 1)) * t,
+ a = i * (1 - Math.abs((o % 2) - 1)),
+ s = 0,
+ l = 0,
+ c = 0;
+ o >= 0 && o < 1
+ ? ((s = i), (l = a))
+ : o >= 1 && o < 2
+ ? ((s = a), (l = i))
+ : o >= 2 && o < 3
+ ? ((l = i), (c = a))
+ : o >= 3 && o < 4
+ ? ((l = a), (c = i))
+ : o >= 4 && o < 5
+ ? ((s = a), (c = i))
+ : o >= 5 && o < 6 && ((s = i), (c = a));
+ var u = n - i / 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 or(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 o = fr.exec(t);
+ if (o)
+ return {
+ red: parseInt('' + o[1], 10),
+ green: parseInt('' + o[2], 10),
+ blue: parseInt('' + o[3], 10)
+ };
+ var i = hr.exec(t.substring(0, 50));
+ if (i)
+ return {
+ red: parseInt('' + i[1], 10),
+ green: parseInt('' + i[2], 10),
+ blue: parseInt('' + i[3], 10),
+ alpha: parseFloat('' + i[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 or(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 or(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 or(5);
+ }
+ function vr(e) {
+ return (function (e) {
+ var t,
+ n = e.red / 255,
+ r = e.green / 255,
+ o = e.blue / 255,
+ i = Math.max(n, r, o),
+ a = Math.min(n, r, o),
+ s = (i + a) / 2;
+ if (i === a)
+ return void 0 !== e.alpha
+ ? { hue: 0, saturation: 0, lightness: s, alpha: e.alpha }
+ : { hue: 0, saturation: 0, lightness: s };
+ var l = i - a,
+ c = s > 0.5 ? l / (2 - i - a) : l / (i + a);
+ switch (i) {
+ case n:
+ t = (r - o) / l + (r < o ? 6 : 0);
+ break;
+ case r:
+ t = (o - 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 wr(e) {
+ var t = e.toString(16);
+ return 1 === t.length ? '0' + t : t;
+ }
+ function xr(e) {
+ return wr(Math.round(255 * e));
+ }
+ function kr(e, t, n) {
+ return br('#' + xr(e) + xr(t) + xr(n));
+ }
+ function _r(e, t, n) {
+ return sr(e, t, n, kr);
+ }
+ function Or(e, t, n) {
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n
+ )
+ return br('#' + wr(e) + wr(t) + wr(n));
+ if ('object' == typeof e && void 0 === t && void 0 === n)
+ return br('#' + wr(e.red) + wr(e.green) + wr(e.blue));
+ throw new or(6);
+ }
+ function Sr(e, t, n, r) {
+ if ('string' == typeof e && 'number' == typeof t) {
+ var o = yr(e);
+ return (
+ 'rgba(' + o.red + ',' + o.green + ',' + o.blue + ',' + t + ')'
+ );
+ }
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n &&
+ 'number' == typeof r
+ )
+ return r >= 1
+ ? Or(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
+ ? Or(e.red, e.green, e.blue)
+ : 'rgba(' +
+ e.red +
+ ',' +
+ e.green +
+ ',' +
+ e.blue +
+ ',' +
+ e.alpha +
+ ')';
+ throw new or(7);
+ }
+ function Er(e) {
+ if ('object' != typeof e) throw new or(8);
+ if (
+ (function (e) {
+ return (
+ 'number' == typeof e.red &&
+ 'number' == typeof e.green &&
+ 'number' == typeof e.blue &&
+ 'number' == typeof e.alpha
+ );
+ })(e)
+ )
+ return Sr(e);
+ if (
+ (function (e) {
+ return (
+ 'number' == typeof e.red &&
+ 'number' == typeof e.green &&
+ 'number' == typeof e.blue &&
+ ('number' != typeof e.alpha || void 0 === e.alpha)
+ );
+ })(e)
+ )
+ return Or(e);
+ if (
+ (function (e) {
+ return (
+ 'number' == typeof e.hue &&
+ 'number' == typeof e.saturation &&
+ 'number' == typeof e.lightness &&
+ 'number' == typeof e.alpha
+ );
+ })(e)
+ )
+ return (function (e, t, n, r) {
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n &&
+ 'number' == typeof r
+ )
+ return r >= 1
+ ? _r(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
+ ? _r(e.hue, e.saturation, e.lightness)
+ : 'rgba(' +
+ sr(e.hue, e.saturation, e.lightness) +
+ ',' +
+ e.alpha +
+ ')';
+ throw new or(2);
+ })(e);
+ if (
+ (function (e) {
+ return (
+ 'number' == typeof e.hue &&
+ 'number' == typeof e.saturation &&
+ 'number' == typeof e.lightness &&
+ ('number' != typeof e.alpha || void 0 === e.alpha)
+ );
+ })(e)
+ )
+ return (function (e, t, n) {
+ if (
+ 'number' == typeof e &&
+ 'number' == typeof t &&
+ 'number' == typeof n
+ )
+ return _r(e, t, n);
+ if ('object' == typeof e && void 0 === t && void 0 === n)
+ return _r(e.hue, e.saturation, e.lightness);
+ throw new or(1);
+ })(e);
+ throw new or(8);
+ }
+ function Pr(e, t, n) {
+ return function () {
+ var r = n.concat(Array.prototype.slice.call(arguments));
+ return r.length >= t ? e.apply(this, r) : Pr(e, t, r);
+ };
+ }
+ function Ar(e) {
+ return Pr(e, e.length, []);
+ }
+ function $r(e, t, n) {
+ return Math.max(e, Math.min(t, n));
+ }
+ function Cr(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Er(
+ Jn({}, n, { lightness: $r(0, 1, n.lightness - parseFloat(e)) })
+ );
+ }
+ var Rr = Ar(Cr);
+ function jr(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Er(
+ Jn({}, n, { saturation: $r(0, 1, n.saturation - parseFloat(e)) })
+ );
+ }
+ var Tr = Ar(jr);
+ function Ir(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],
+ o = n[1],
+ i = n[2];
+ return parseFloat((0.2126 * r + 0.7152 * o + 0.0722 * i).toFixed(3));
+ }
+ function Nr(e, t) {
+ if ('transparent' === t) return t;
+ var n = vr(t);
+ return Er(
+ Jn({}, n, { lightness: $r(0, 1, n.lightness + parseFloat(e)) })
+ );
+ }
+ var Dr = Ar(Nr),
+ Lr = '#000',
+ Mr = '#fff';
+ function Fr(e, t, n, r) {
+ void 0 === t && (t = Lr),
+ void 0 === n && (n = Mr),
+ void 0 === r && (r = !0);
+ var o,
+ i,
+ a,
+ s = Ir(e) > 0.179,
+ l = s ? t : n;
+ return !r ||
+ ((o = l),
+ (i = Ir(e)),
+ (a = Ir(o)),
+ parseFloat(
+ (i > a
+ ? (i + 0.05) / (a + 0.05)
+ : (a + 0.05) / (i + 0.05)
+ ).toFixed(2)
+ ) >= 4.5)
+ ? l
+ : s
+ ? Lr
+ : Mr;
+ }
+ function zr(e, t) {
+ if ('transparent' === t) return t;
+ var n = yr(t);
+ return Sr(
+ Jn({}, n, {
+ alpha: $r(
+ 0,
+ 1,
+ +(
+ 100 * ('number' == typeof n.alpha ? n.alpha : 1) -
+ 100 * parseFloat(e)
+ ).toFixed(2) / 100
+ )
+ })
+ );
+ }
+ var Ur = Ar(zr);
+ const Vr = {
+ 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 }) => Dr(e.tonalOffset, e.primary.main),
+ dark: ({ colors: e }) => Rr(e.tonalOffset, e.primary.main),
+ contrastText: ({ colors: e }) => Fr(e.primary.main)
+ },
+ success: {
+ main: '#1d8127',
+ light: ({ colors: e }) => Dr(2 * e.tonalOffset, e.success.main),
+ dark: ({ colors: e }) => Rr(e.tonalOffset, e.success.main),
+ contrastText: ({ colors: e }) => Fr(e.success.main)
+ },
+ warning: {
+ main: '#ffa500',
+ light: ({ colors: e }) => Dr(e.tonalOffset, e.warning.main),
+ dark: ({ colors: e }) => Rr(e.tonalOffset, e.warning.main),
+ contrastText: '#ffffff'
+ },
+ error: {
+ main: '#d41f1c',
+ light: ({ colors: e }) => Dr(e.tonalOffset, e.error.main),
+ dark: ({ colors: e }) => Rr(e.tonalOffset, e.error.main),
+ contrastText: ({ colors: e }) => Fr(e.error.main)
+ },
+ gray: { 50: '#FAFAFA', 100: '#F5F5F5' },
+ text: {
+ primary: '#333333',
+ secondary: ({ colors: e }) => Dr(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 }) => Ur(0.93, e.success.main),
+ tabTextColor: ({ colors: e }) => e.responses.success.color
+ },
+ error: {
+ color: ({ colors: e }) => e.error.main,
+ backgroundColor: ({ colors: e }) => Ur(0.93, e.error.main),
+ tabTextColor: ({ colors: e }) => e.responses.error.color
+ },
+ redirect: {
+ color: ({ colors: e }) => e.warning.main,
+ backgroundColor: ({ colors: e }) =>
+ Ur(0.9, e.responses.redirect.color),
+ tabTextColor: ({ colors: e }) => e.responses.redirect.color
+ },
+ info: {
+ color: '#87ceeb',
+ backgroundColor: ({ colors: e }) =>
+ Ur(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) =>
+ Dr(
+ e.colors.tonalOffset,
+ Tr(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 }) => Dr(0.2, e.links.color),
+ textDecoration: 'auto',
+ hoverTextDecoration: 'auto'
+ }
+ },
+ sidebar: {
+ width: '260px',
+ backgroundColor: '#fafafa',
+ textColor: '#333333',
+ activeTextColor: (e) =>
+ e.sidebar.textColor !== Vr.sidebar.textColor
+ ? e.sidebar.textColor
+ : e.colors.primary.main,
+ groupItems: {
+ activeBackgroundColor: (e) => Rr(0.1, e.sidebar.backgroundColor),
+ activeTextColor: (e) => e.sidebar.activeTextColor,
+ textTransform: 'uppercase'
+ },
+ level1Items: {
+ activeBackgroundColor: (e) => Rr(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 }) => Rr(0.1, e.backgroundColor)
+ },
+ fab: { backgroundColor: '#f2f2f2', color: '#0065FB' }
+ };
+ var Br = Vr;
+ const qr = 'undefined' != typeof window && 'HTMLElement' in window;
+ function Wr(e) {
+ return 'undefined' != typeof document
+ ? document.querySelector(e)
+ : null;
+ }
+ function Hr(e, t = !0) {
+ const n = e.parentNode;
+ if (!n) return;
+ const r = window.getComputedStyle(n, void 0),
+ o = parseInt(r.getPropertyValue('border-top-width'), 10),
+ i = parseInt(r.getPropertyValue('border-left-width'), 10),
+ a = e.offsetTop - n.offsetTop < n.scrollTop,
+ s =
+ e.offsetTop - n.offsetTop + e.clientHeight - o >
+ n.scrollTop + n.clientHeight,
+ l = e.offsetLeft - n.offsetLeft < n.scrollLeft,
+ c =
+ e.offsetLeft - n.offsetLeft + e.clientWidth - i >
+ n.scrollLeft + n.clientWidth,
+ u = a && !s;
+ (a || s) &&
+ t &&
+ (n.scrollTop =
+ e.offsetTop -
+ n.offsetTop -
+ n.clientHeight / 2 -
+ o +
+ e.clientHeight / 2),
+ (l || c) &&
+ t &&
+ (n.scrollLeft =
+ e.offsetLeft -
+ n.offsetLeft -
+ n.clientWidth / 2 -
+ i +
+ e.clientWidth / 2),
+ (a || s || l || c) && !t && e.scrollIntoView(u);
+ }
+ var Yr = r(1304),
+ Kr = r.n(Yr);
+ function Gr(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 Qr(e, t) {
+ const n = {};
+ for (const r in e) e.hasOwnProperty(r) && (n[r] = t(e[r], r, e));
+ return n;
+ }
+ function Xr(e) {
+ return e.endsWith('/') ? e.substring(0, e.length - 1) : e;
+ }
+ function Jr(e) {
+ return !isNaN(parseFloat(e)) && isFinite(e);
+ }
+ const Zr = (e, ...t) => {
+ if (!t.length) return e;
+ const n = t.shift();
+ return void 0 === n
+ ? e
+ : (to(e) &&
+ to(n) &&
+ Object.keys(n).forEach((t) => {
+ to(n[t])
+ ? (e[t] || (e[t] = {}), Zr(e[t], n[t]))
+ : (e[t] = n[t]);
+ }),
+ Zr(e, ...t));
+ },
+ eo = (e) => null !== e && 'object' == typeof e,
+ to = (e) => eo(e) && !io(e);
+ function no(e) {
+ return (
+ Kr()(e) ||
+ e
+ .toString()
+ .toLowerCase()
+ .replace(/\s+/g, '-')
+ .replace(/&/g, '-and-')
+ .replace(/\--+/g, '-')
+ .replace(/^-+/, '')
+ .replace(/-+$/, '')
+ );
+ }
+ function ro(e) {
+ return 'undefined' == typeof URL ? new (r(8150).URL)(e) : new URL(e);
+ }
+ function oo(e) {
+ return e.replace(/["\\]/g, '\\$&');
+ }
+ function io(e) {
+ return Array.isArray(e);
+ }
+ function ao(e) {
+ return 'boolean' == typeof e;
+ }
+ const so = {
+ 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 lo(e, t) {
+ const n = so[e];
+ return void 0 !== t ? n[t] : n;
+ }
+ var co = ((e) => (
+ (e.SummaryOnly = 'summary-only'),
+ (e.PathOnly = 'path-only'),
+ (e.IdOnly = 'id-only'),
+ e
+ ))(co || {}),
+ uo = Object.defineProperty,
+ po = Object.defineProperties,
+ fo = Object.getOwnPropertyDescriptors,
+ ho = Object.getOwnPropertySymbols,
+ mo = Object.prototype.hasOwnProperty,
+ go = Object.prototype.propertyIsEnumerable,
+ yo = (e, t, n) =>
+ t in e
+ ? uo(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ vo = (e, t) => {
+ for (var n in t || (t = {})) mo.call(t, n) && yo(e, n, t[n]);
+ if (ho) for (var n of ho(t)) go.call(t, n) && yo(e, n, t[n]);
+ return e;
+ };
+ function bo(e, t) {
+ return void 0 === e
+ ? t || !1
+ : 'string' == typeof e
+ ? 'false' !== e
+ : e;
+ }
+ function wo(e) {
+ return 'string' == typeof e
+ ? parseInt(e, 10)
+ : 'number' == typeof e
+ ? e
+ : void 0;
+ }
+ class xo {
+ 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 && !Jr(e)) {
+ const t = Wr(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 || Jr(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 = co.SummaryOnly;
+ if ('string' != typeof e) return t;
+ switch (e) {
+ case t:
+ return e;
+ case co.PathOnly:
+ return co.PathOnly;
+ case co.IdOnly:
+ return co.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, o, i, a;
+ const s = (e = vo(vo({}, 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 == (o = e.theme) ? void 0 : o.codeSample) &&
+ !(null == (i = e.theme) ? void 0 : i.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 = (o, i) => {
+ Object.keys(o).forEach((a) => {
+ const s = (i ? i + '.' : '') + a,
+ l = o[a];
+ 'function' == typeof l
+ ? Object.defineProperty(o, 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));
+ })(
+ Zr(
+ {},
+ Br,
+ ((c = vo({}, e.theme)), po(c, fo({ extensionsHook: void 0 })))
+ )
+ )),
+ (this.theme.extensionsHook = s),
+ (l = e.labels),
+ Object.assign(so, l),
+ (this.scrollYOffset = xo.normalizeScrollYOffset(e.scrollYOffset)),
+ (this.hideHostname = xo.normalizeHideHostname(e.hideHostname)),
+ (this.expandResponses = xo.normalizeExpandResponses(
+ e.expandResponses
+ )),
+ (this.requiredPropsFirst = bo(e.requiredPropsFirst)),
+ (this.sortPropsAlphabetically = bo(e.sortPropsAlphabetically)),
+ (this.sortEnumValuesAlphabetically = bo(
+ e.sortEnumValuesAlphabetically
+ )),
+ (this.sortOperationsAlphabetically = bo(
+ e.sortOperationsAlphabetically
+ )),
+ (this.sortTagsAlphabetically = bo(e.sortTagsAlphabetically)),
+ (this.nativeScrollbars = bo(e.nativeScrollbars)),
+ (this.pathInMiddlePanel = bo(e.pathInMiddlePanel)),
+ (this.untrustedSpec = bo(e.untrustedSpec)),
+ (this.hideDownloadButton = bo(e.hideDownloadButton)),
+ (this.downloadFileName = e.downloadFileName),
+ (this.downloadDefinitionUrl = e.downloadDefinitionUrl),
+ (this.disableSearch = bo(e.disableSearch)),
+ (this.onlyRequiredInSamples = bo(e.onlyRequiredInSamples)),
+ (this.showExtensions = xo.normalizeShowExtensions(
+ e.showExtensions
+ )),
+ (this.sideNavStyle = xo.normalizeSideNavStyle(e.sideNavStyle)),
+ (this.hideSingleRequestSampleTab = bo(
+ e.hideSingleRequestSampleTab
+ )),
+ (this.menuToggle = bo(e.menuToggle, !0)),
+ (this.jsonSampleExpandLevel = xo.normalizeJsonSampleExpandLevel(
+ e.jsonSampleExpandLevel
+ )),
+ (this.enumSkipQuotes = bo(e.enumSkipQuotes)),
+ (this.hideSchemaTitles = bo(e.hideSchemaTitles)),
+ (this.simpleOneOfTypeLabel = bo(e.simpleOneOfTypeLabel)),
+ (this.payloadSampleIdx = xo.normalizePayloadSampleIdx(
+ e.payloadSampleIdx
+ )),
+ (this.expandSingleSchemaField = bo(e.expandSingleSchemaField)),
+ (this.schemaExpansionLevel = (function (e, t = 0) {
+ return 'all' === e ? 1 / 0 : wo(e) || t;
+ })(e.schemaExpansionLevel)),
+ (this.showObjectSchemaExamples = bo(e.showObjectSchemaExamples)),
+ (this.showSecuritySchemeType = bo(e.showSecuritySchemeType)),
+ (this.hideSecuritySection = bo(e.hideSecuritySection)),
+ (this.unstable_ignoreMimeParameters = bo(
+ e.unstable_ignoreMimeParameters
+ )),
+ (this.allowedMdComponents = e.allowedMdComponents || {}),
+ (this.expandDefaultServerVariables = bo(
+ e.expandDefaultServerVariables
+ )),
+ (this.maxDisplayedEnumValues = wo(e.maxDisplayedEnumValues));
+ const u = io(e.ignoreNamedSchemas)
+ ? e.ignoreNamedSchemas
+ : null == (a = e.ignoreNamedSchemas)
+ ? void 0
+ : a.split(',').map((e) => e.trim());
+ (this.ignoreNamedSchemas = new Set(u)),
+ (this.hideSchemaPattern = bo(e.hideSchemaPattern)),
+ (this.generatedPayloadSamplesMaxDepth =
+ xo.normalizeGeneratedPayloadSamplesMaxDepth(
+ e.generatedPayloadSamplesMaxDepth
+ )),
+ (this.nonce = e.nonce),
+ (this.hideFab = bo(e.hideFab)),
+ (this.minCharacterLengthToInitSearch =
+ wo(e.minCharacterLengthToInitSearch) || 3),
+ (this.showWebhookVerb = bo(e.showWebhookVerb));
+ }
+ }
+ var ko,
+ _o,
+ Oo = r(9864),
+ So = r(6774),
+ Eo = r.n(So),
+ Po = function (e) {
+ function t(e, r, l, c, d) {
+ for (
+ var f,
+ h,
+ m,
+ g,
+ w,
+ k = 0,
+ _ = 0,
+ O = 0,
+ S = 0,
+ E = 0,
+ j = 0,
+ I = (m = f = 0),
+ D = 0,
+ L = 0,
+ M = 0,
+ F = 0,
+ z = l.length,
+ U = z - 1,
+ V = '',
+ B = '',
+ q = '',
+ W = '';
+ D < z;
+
+ ) {
+ if (
+ ((h = l.charCodeAt(D)),
+ D === U &&
+ 0 !== _ + S + O + k &&
+ (0 !== _ && (h = 47 === _ ? 10 : 47),
+ (S = O = k = 0),
+ z++,
+ U++),
+ 0 === _ + S + O + k)
+ ) {
+ if (
+ D === U &&
+ (0 < L && (V = V.replace(p, '')), 0 < V.trim().length)
+ ) {
+ switch (h) {
+ case 32:
+ case 9:
+ case 59:
+ case 13:
+ case 10:
+ break;
+ default:
+ V += l.charAt(D);
+ }
+ h = 59;
+ }
+ switch (h) {
+ case 123:
+ for (
+ f = (V = V.trim()).charCodeAt(0), m = 1, F = ++D;
+ D < z;
+
+ ) {
+ switch ((h = l.charCodeAt(D))) {
+ case 123:
+ m++;
+ break;
+ case 125:
+ m--;
+ break;
+ case 47:
+ switch ((h = l.charCodeAt(D + 1))) {
+ case 42:
+ case 47:
+ e: {
+ for (I = D + 1; I < U; ++I)
+ switch (l.charCodeAt(I)) {
+ case 47:
+ if (
+ 42 === h &&
+ 42 === l.charCodeAt(I - 1) &&
+ D + 2 !== I
+ ) {
+ D = I + 1;
+ break e;
+ }
+ break;
+ case 10:
+ if (47 === h) {
+ D = I + 1;
+ break e;
+ }
+ }
+ D = I;
+ }
+ }
+ break;
+ case 91:
+ h++;
+ case 40:
+ h++;
+ case 34:
+ case 39:
+ for (; D++ < U && l.charCodeAt(D) !== h; );
+ }
+ if (0 === m) break;
+ D++;
+ }
+ if (
+ ((m = l.substring(F, D)),
+ 0 === f &&
+ (f = (V = V.replace(u, '').trim()).charCodeAt(0)),
+ 64 === f)
+ ) {
+ switch (
+ (0 < L && (V = V.replace(p, '')),
+ (h = V.charCodeAt(1)))
+ ) {
+ case 100:
+ case 109:
+ case 115:
+ case 45:
+ L = r;
+ break;
+ default:
+ L = R;
+ }
+ if (
+ ((F = (m = t(r, L, m, h, d + 1)).length),
+ 0 < T &&
+ ((w = s(
+ 3,
+ m,
+ (L = n(R, V, M)),
+ r,
+ A,
+ P,
+ F,
+ h,
+ d,
+ c
+ )),
+ (V = L.join('')),
+ void 0 !== w &&
+ 0 === (F = (m = w.trim()).length) &&
+ ((h = 0), (m = ''))),
+ 0 < F)
+ )
+ switch (h) {
+ case 115:
+ V = V.replace(x, a);
+ case 100:
+ case 109:
+ case 45:
+ m = V + '{' + m + '}';
+ break;
+ case 107:
+ (m = (V = V.replace(y, '$1 $2')) + '{' + m + '}'),
+ (m =
+ 1 === C || (2 === C && i('@' + m, 3))
+ ? '@-webkit-' + m + '@' + m
+ : '@' + m);
+ break;
+ default:
+ (m = V + m), 112 === c && ((B += m), (m = ''));
+ }
+ else m = '';
+ } else m = t(r, n(r, V, M), m, c, d + 1);
+ (q += m),
+ (m = M = L = I = f = 0),
+ (V = ''),
+ (h = l.charCodeAt(++D));
+ break;
+ case 125:
+ case 59:
+ if (
+ 1 <
+ (F = (V = (0 < L ? V.replace(p, '') : V).trim()).length)
+ )
+ switch (
+ (0 === I &&
+ ((f = V.charCodeAt(0)),
+ 45 === f || (96 < f && 123 > f)) &&
+ (F = (V = V.replace(' ', ':')).length),
+ 0 < T &&
+ void 0 !==
+ (w = s(1, V, r, e, A, P, B.length, c, d, c)) &&
+ 0 === (F = (V = w.trim()).length) &&
+ (V = '\0\0'),
+ (f = V.charCodeAt(0)),
+ (h = V.charCodeAt(1)),
+ f)
+ ) {
+ case 0:
+ break;
+ case 64:
+ if (105 === h || 99 === h) {
+ W += V + l.charAt(D);
+ break;
+ }
+ default:
+ 58 !== V.charCodeAt(F - 1) &&
+ (B += o(V, f, h, V.charCodeAt(2)));
+ }
+ (M = L = I = f = 0), (V = ''), (h = l.charCodeAt(++D));
+ }
+ }
+ switch (h) {
+ case 13:
+ case 10:
+ 47 === _
+ ? (_ = 0)
+ : 0 === 1 + f &&
+ 107 !== c &&
+ 0 < V.length &&
+ ((L = 1), (V += '\0')),
+ 0 < T * N && s(0, V, r, e, A, P, B.length, c, d, c),
+ (P = 1),
+ A++;
+ break;
+ case 59:
+ case 125:
+ if (0 === _ + S + O + k) {
+ P++;
+ break;
+ }
+ default:
+ switch ((P++, (g = l.charAt(D)), h)) {
+ case 9:
+ case 32:
+ if (0 === S + k + _)
+ switch (E) {
+ 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 === S + _ + k && ((L = M = 1), (g = '\f' + g));
+ break;
+ case 108:
+ if (0 === S + _ + k + $ && 0 < I)
+ switch (D - I) {
+ case 2:
+ 112 === E &&
+ 58 === l.charCodeAt(D - 3) &&
+ ($ = E);
+ case 8:
+ 111 === j && ($ = j);
+ }
+ break;
+ case 58:
+ 0 === S + _ + k && (I = D);
+ break;
+ case 44:
+ 0 === _ + O + S + k && ((L = 1), (g += '\r'));
+ break;
+ case 34:
+ case 39:
+ 0 === _ && (S = S === h ? 0 : 0 === S ? h : S);
+ break;
+ case 91:
+ 0 === S + _ + O && k++;
+ break;
+ case 93:
+ 0 === S + _ + O && k--;
+ break;
+ case 41:
+ 0 === S + _ + k && O--;
+ break;
+ case 40:
+ 0 === S + _ + k &&
+ (0 === f && (2 * E + 3 * j == 533 || (f = 1)), O++);
+ break;
+ case 64:
+ 0 === _ + O + S + k + I + m && (m = 1);
+ break;
+ case 42:
+ case 47:
+ if (!(0 < S + k + O))
+ switch (_) {
+ case 0:
+ switch (2 * h + 3 * l.charCodeAt(D + 1)) {
+ case 235:
+ _ = 47;
+ break;
+ case 220:
+ (F = D), (_ = 42);
+ }
+ break;
+ case 42:
+ 47 === h &&
+ 42 === E &&
+ F + 2 !== D &&
+ (33 === l.charCodeAt(F + 2) &&
+ (B += l.substring(F, D + 1)),
+ (g = ''),
+ (_ = 0));
+ }
+ }
+ 0 === _ && (V += g);
+ }
+ (j = E), (E = h), D++;
+ }
+ if (0 < (F = B.length)) {
+ if (
+ ((L = r),
+ 0 < T &&
+ void 0 !== (w = s(2, B, L, e, A, P, F, c, d, c)) &&
+ 0 === (B = w).length)
+ )
+ return W + B + q;
+ if (((B = L.join(',') + '{' + B + '}'), 0 != C * $)) {
+ switch ((2 !== C || i(B, 2) || ($ = 0), $)) {
+ case 111:
+ B = B.replace(b, ':-moz-$1') + B;
+ break;
+ case 112:
+ B =
+ B.replace(v, '::-webkit-input-$1') +
+ B.replace(v, '::-moz-$1') +
+ B.replace(v, ':-ms-input-$1') +
+ B;
+ }
+ $ = 0;
+ }
+ }
+ return W + B + q;
+ }
+ function n(e, t, n) {
+ var o = t.trim().split(m);
+ t = o;
+ var i = o.length,
+ a = e.length;
+ switch (a) {
+ case 0:
+ case 1:
+ var s = 0;
+ for (e = 0 === a ? '' : e[0] + ' '; s < i; ++s)
+ t[s] = r(e, t[s], n).trim();
+ break;
+ default:
+ var l = (s = 0);
+ for (t = []; s < i; ++s)
+ for (var c = 0; c < a; ++c)
+ t[l++] = r(e[c] + ' ', o[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 o(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 === C || (2 === C && i(l, 1)) ? '-webkit-' + l + l : l
+ );
+ }
+ if (0 === C || (2 === C && !i(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(E, '$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(w, 'tb');
+ break;
+ case 232:
+ l = a.replace(w, 'tb-rl');
+ break;
+ case 220:
+ l = a.replace(w, '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(_, '') +
+ a
+ );
+ default:
+ return (
+ '-webkit-' +
+ a +
+ '-ms-flex-line-pack' +
+ a.replace('align-content', '').replace(_, '') +
+ a
+ );
+ }
+ break;
+ case 973:
+ case 989:
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
+ case 931:
+ case 953:
+ if (!0 === S.test(e))
+ return 115 ===
+ (l = e.substring(e.indexOf(':') + 1)).charCodeAt(0)
+ ? o(
+ 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 i(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)),
+ I(2 !== t ? r : r.replace(O, '$1'), n, t)
+ );
+ }
+ function a(e, t) {
+ var n = o(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, o, i, a, s, l, u) {
+ for (var p, d = 0, f = t; d < T; ++d)
+ switch ((p = j[d].call(c, e, f, n, r, o, i, 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) &&
+ ((I = null),
+ e
+ ? 'function' != typeof e
+ ? (C = 1)
+ : ((C = 2), (I = e))
+ : (C = 0)),
+ l
+ );
+ }
+ function c(e, n) {
+ var r = e;
+ if ((33 > r.charCodeAt(0) && (r = r.trim()), (r = [r]), 0 < T)) {
+ var o = s(-1, n, r, r, A, P, 0, 0, 0, 0);
+ void 0 !== o && 'string' == typeof o && (n = o);
+ }
+ var i = t(R, r, n, 0, 0);
+ return (
+ 0 < T &&
+ void 0 !== (o = s(-2, i, r, r, A, P, i.length, 0, 0, 0)) &&
+ (i = o),
+ ($ = 0),
+ (P = A = 1),
+ i
+ );
+ }
+ 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,
+ w = /[svh]\w+-[tblr]{2}/,
+ x = /\(\s*(.*)\s*\)/g,
+ k = /([\s\S]*?);/g,
+ _ = /-self|flex-/g,
+ O = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
+ S = /stretch|:\s*\w+\-(?:conte|avail)/,
+ E = /([^-])(image-set\()/,
+ P = 1,
+ A = 1,
+ $ = 0,
+ C = 1,
+ R = [],
+ j = [],
+ T = 0,
+ I = null,
+ N = 0;
+ return (
+ (c.use = function e(t) {
+ switch (t) {
+ case void 0:
+ case null:
+ T = j.length = 0;
+ break;
+ default:
+ if ('function' == typeof t) j[T++] = 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
+ );
+ },
+ Ao = {
+ 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
+ },
+ $o =
+ /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,
+ Co =
+ ((ko = function (e) {
+ return (
+ $o.test(e) ||
+ (111 === e.charCodeAt(0) &&
+ 110 === e.charCodeAt(1) &&
+ e.charCodeAt(2) < 91)
+ );
+ }),
+ (_o = {}),
+ function (e) {
+ return void 0 === _o[e] && (_o[e] = ko(e)), _o[e];
+ }),
+ Ro = r(8679),
+ jo = r.n(Ro);
+ function To() {
+ return (To =
+ 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 Io = function (e, t) {
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
+ n.push(t[r], e[r + 1]);
+ return n;
+ },
+ No = function (e) {
+ return (
+ null !== e &&
+ 'object' == typeof e &&
+ '[object Object]' ===
+ (e.toString
+ ? e.toString()
+ : Object.prototype.toString.call(e)) &&
+ !(0, Oo.typeOf)(e)
+ );
+ },
+ Do = Object.freeze([]),
+ Lo = Object.freeze({});
+ function Mo(e) {
+ return 'function' == typeof e;
+ }
+ function Fo(e) {
+ return e.displayName || e.name || 'Component';
+ }
+ function zo(e) {
+ return e && 'string' == typeof e.styledComponentId;
+ }
+ var Uo =
+ ('undefined' != typeof process &&
+ ({}.REACT_APP_SC_ATTR || {}.SC_ATTR)) ||
+ 'data-styled',
+ Vo = '5.3.0',
+ Bo = 'undefined' != typeof window && 'HTMLElement' in window,
+ qo = Boolean(
+ 'boolean' == typeof SC_DISABLE_SPEEDY
+ ? SC_DISABLE_SPEEDY
+ : 'undefined' != typeof process &&
+ void 0 !== {}.REACT_APP_SC_DISABLE_SPEEDY &&
+ '' !== {}.REACT_APP_SC_DISABLE_SPEEDY
+ ? 'false' !== {}.REACT_APP_SC_DISABLE_SPEEDY &&
+ {}.REACT_APP_SC_DISABLE_SPEEDY
+ : 'undefined' != typeof process &&
+ void 0 !== {}.SC_DISABLE_SPEEDY &&
+ '' !== {}.SC_DISABLE_SPEEDY &&
+ 'false' !== {}.SC_DISABLE_SPEEDY &&
+ {}.SC_DISABLE_SPEEDY
+ ),
+ Wo = {};
+ function Ho(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 Yo = (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, o = r; e >= o; )
+ (o <<= 1) < 0 && Ho(16, '' + e);
+ (this.groupSizes = new Uint32Array(o)),
+ this.groupSizes.set(n),
+ (this.length = o);
+ for (var i = r; i < o; i++) this.groupSizes[i] = 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 o = n; o < r; o++) 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),
+ o = r + n,
+ i = r;
+ i < o;
+ i++
+ )
+ t += this.tag.getRule(i) + '/*!sc*/\n';
+ return t;
+ }),
+ e
+ );
+ })(),
+ Ko = new Map(),
+ Go = new Map(),
+ Qo = 1,
+ Xo = function (e) {
+ if (Ko.has(e)) return Ko.get(e);
+ for (; Go.has(Qo); ) Qo++;
+ var t = Qo++;
+ return Ko.set(e, t), Go.set(t, e), t;
+ },
+ Jo = function (e) {
+ return Go.get(e);
+ },
+ Zo = function (e, t) {
+ Ko.set(e, t), Go.set(t, e);
+ },
+ ei = 'style[' + Uo + '][data-styled-version="5.3.0"]',
+ ti = new RegExp(
+ '^' + Uo + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'
+ ),
+ ni = function (e, t, n) {
+ for (var r, o = n.split(','), i = 0, a = o.length; i < a; i++)
+ (r = o[i]) && e.registerName(t, r);
+ },
+ ri = function (e, t) {
+ for (
+ var n = t.innerHTML.split('/*!sc*/\n'),
+ r = [],
+ o = 0,
+ i = n.length;
+ o < i;
+ o++
+ ) {
+ var a = n[o].trim();
+ if (a) {
+ var s = a.match(ti);
+ if (s) {
+ var l = 0 | parseInt(s[1], 10),
+ c = s[2];
+ 0 !== l &&
+ (Zo(c, l), ni(e, c, s[3]), e.getTag().insertRules(l, r)),
+ (r.length = 0);
+ } else r.push(a);
+ }
+ }
+ },
+ oi = function () {
+ return 'undefined' != typeof window &&
+ void 0 !== window.__webpack_nonce__
+ ? window.__webpack_nonce__
+ : null;
+ },
+ ii = function (e) {
+ var t = document.head,
+ n = e || t,
+ r = document.createElement('style'),
+ o = (function (e) {
+ for (var t = e.childNodes, n = t.length; n >= 0; n--) {
+ var r = t[n];
+ if (r && 1 === r.nodeType && r.hasAttribute(Uo)) return r;
+ }
+ })(n),
+ i = void 0 !== o ? o.nextSibling : null;
+ r.setAttribute(Uo, 'active'),
+ r.setAttribute('data-styled-version', '5.3.0');
+ var a = oi();
+ return a && r.setAttribute('nonce', a), n.insertBefore(r, i), r;
+ },
+ ai = (function () {
+ function e(e) {
+ var t = (this.element = ii(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 o = t[n];
+ if (o.ownerNode === e) return o;
+ }
+ Ho(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
+ );
+ })(),
+ si = (function () {
+ function e(e) {
+ var t = (this.element = ii(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
+ );
+ })(),
+ li = (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
+ );
+ })(),
+ ci = Bo,
+ ui = { isServer: !Bo, useCSSOMInjection: !qo },
+ pi = (function () {
+ function e(e, t, n) {
+ void 0 === e && (e = Lo),
+ void 0 === t && (t = {}),
+ (this.options = To({}, ui, {}, e)),
+ (this.gs = t),
+ (this.names = new Map(n)),
+ !this.options.isServer &&
+ Bo &&
+ ci &&
+ ((ci = !1),
+ (function (e) {
+ for (
+ var t = document.querySelectorAll(ei),
+ n = 0,
+ r = t.length;
+ n < r;
+ n++
+ ) {
+ var o = t[n];
+ o &&
+ 'active' !== o.getAttribute(Uo) &&
+ (ri(e, o), o.parentNode && o.parentNode.removeChild(o));
+ }
+ })(this));
+ }
+ e.registerId = function (e) {
+ return Xo(e);
+ };
+ var t = e.prototype;
+ return (
+ (t.reconstructWithOptions = function (t, n) {
+ return (
+ void 0 === n && (n = !0),
+ new e(
+ To({}, 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),
+ (o = t.target),
+ (e = n ? new li(o) : r ? new ai(o) : new si(o)),
+ new Yo(e)))
+ );
+ var e, t, n, r, o;
+ }),
+ (t.hasNameForId = function (e, t) {
+ return this.names.has(e) && this.names.get(e).has(t);
+ }),
+ (t.registerName = function (e, t) {
+ if ((Xo(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(Xo(e), n);
+ }),
+ (t.clearNames = function (e) {
+ this.names.has(e) && this.names.get(e).clear();
+ }),
+ (t.clearRules = function (e) {
+ this.getTag().clearGroup(Xo(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 = '', o = 0;
+ o < n;
+ o++
+ ) {
+ var i = Jo(o);
+ if (void 0 !== i) {
+ var a = e.names.get(i),
+ s = t.getGroup(o);
+ if (void 0 !== a && 0 !== s.length) {
+ var l = Uo + '.g' + o + '[id="' + i + '"]',
+ c = '';
+ void 0 !== a &&
+ a.forEach(function (e) {
+ e.length > 0 && (c += e + ',');
+ }),
+ (r += '' + s + l + '{content:"' + c + '"}/*!sc*/\n');
+ }
+ }
+ }
+ return r;
+ })(this);
+ }),
+ e
+ );
+ })(),
+ di = /(a)(d)/gi,
+ fi = function (e) {
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
+ };
+ function hi(e) {
+ var t,
+ n = '';
+ for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = fi(t % 52) + n;
+ return (fi(t % 52) + n).replace(di, '$1-$2');
+ }
+ var mi = function (e, t) {
+ for (var n = t.length; n; ) e = (33 * e) ^ t.charCodeAt(--n);
+ return e;
+ },
+ gi = function (e) {
+ return mi(5381, e);
+ };
+ function yi(e) {
+ for (var t = 0; t < e.length; t += 1) {
+ var n = e[t];
+ if (Mo(n) && !zo(n)) return !1;
+ }
+ return !0;
+ }
+ var vi = gi('5.3.0'),
+ bi = (function () {
+ function e(e, t, n) {
+ (this.rules = e),
+ (this.staticRulesId = ''),
+ (this.isStatic = (void 0 === n || n.isStatic) && yi(e)),
+ (this.componentId = t),
+ (this.baseHash = mi(vi, t)),
+ (this.baseStyle = n),
+ pi.registerId(t);
+ }
+ return (
+ (e.prototype.generateAndInjectStyles = function (e, t, n) {
+ var r = this.componentId,
+ o = [];
+ if (
+ (this.baseStyle &&
+ o.push(this.baseStyle.generateAndInjectStyles(e, t, n)),
+ this.isStatic && !n.hash)
+ )
+ if (
+ this.staticRulesId &&
+ t.hasNameForId(r, this.staticRulesId)
+ )
+ o.push(this.staticRulesId);
+ else {
+ var i = Mi(this.rules, e, t, n).join(''),
+ a = hi(mi(this.baseHash, i.length) >>> 0);
+ if (!t.hasNameForId(r, a)) {
+ var s = n(i, '.' + a, void 0, r);
+ t.insertRules(r, a, s);
+ }
+ o.push(a), (this.staticRulesId = a);
+ }
+ else {
+ for (
+ var l = this.rules.length,
+ c = mi(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 = Mi(d, e, t, n),
+ h = Array.isArray(f) ? f.join('') : f;
+ (c = mi(c, h + p)), (u += h);
+ }
+ }
+ if (u) {
+ var m = hi(c >>> 0);
+ if (!t.hasNameForId(r, m)) {
+ var g = n(u, '.' + m, void 0, r);
+ t.insertRules(r, m, g);
+ }
+ o.push(m);
+ }
+ }
+ return o.join(' ');
+ }),
+ e
+ );
+ })(),
+ wi = /^\s*\/\/.*$/gm,
+ xi = [':', '[', '.', '#'];
+ function ki(e) {
+ var t,
+ n,
+ r,
+ o,
+ i = void 0 === e ? Lo : e,
+ a = i.options,
+ s = void 0 === a ? Lo : a,
+ l = i.plugins,
+ c = void 0 === l ? Do : l,
+ u = new Po(s),
+ p = [],
+ d = (function (e) {
+ function t(t) {
+ if (t)
+ try {
+ e(t + '}');
+ } catch (e) {}
+ }
+ return function (n, r, o, i, 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(o[0] + r), '';
+ default:
+ return r + (0 === p ? '/*|*/' : '');
+ }
+ case -2:
+ r.split('/*|*/}').forEach(t);
+ }
+ };
+ })(function (e) {
+ p.push(e);
+ }),
+ f = function (e, r, i) {
+ return (0 === r && -1 !== xi.indexOf(i[n.length])) || i.match(o)
+ ? e
+ : '.' + t;
+ };
+ function h(e, i, a, s) {
+ void 0 === s && (s = '&');
+ var l = e.replace(wi, ''),
+ c = i && a ? a + ' ' + i + ' { ' + l + ' }' : l;
+ return (
+ (t = s),
+ (n = i),
+ (r = new RegExp('\\' + n + '\\b', 'g')),
+ (o = new RegExp('(\\' + n + '\\b){2,}')),
+ u(a || !i ? '' : i, c)
+ );
+ }
+ return (
+ u.use(
+ [].concat(c, [
+ function (e, t, o) {
+ 2 === e &&
+ o.length &&
+ o[0].lastIndexOf(n) > 0 &&
+ (o[0] = o[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 || Ho(15), mi(e, t.name);
+ }, 5381)
+ .toString()
+ : ''),
+ h
+ );
+ }
+ var _i = n.createContext(),
+ Oi = _i.Consumer,
+ Si = n.createContext(),
+ Ei = (Si.Consumer, new pi()),
+ Pi = ki();
+ function Ai() {
+ return (0, n.useContext)(_i) || Ei;
+ }
+ function $i() {
+ return (0, n.useContext)(Si) || Pi;
+ }
+ function Ci(e) {
+ var t = (0, n.useState)(e.stylisPlugins),
+ r = t[0],
+ o = t[1],
+ i = Ai(),
+ a = (0, n.useMemo)(
+ function () {
+ var t = i;
+ 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 ki({
+ options: { prefix: !e.disableVendorPrefixes },
+ plugins: r
+ });
+ },
+ [e.disableVendorPrefixes, r]
+ );
+ return (
+ (0, n.useEffect)(
+ function () {
+ Eo()(r, e.stylisPlugins) || o(e.stylisPlugins);
+ },
+ [e.stylisPlugins]
+ ),
+ n.createElement(
+ _i.Provider,
+ { value: a },
+ n.createElement(Si.Provider, { value: s }, e.children)
+ )
+ );
+ }
+ var Ri = (function () {
+ function e(e, t) {
+ var n = this;
+ (this.inject = function (e, t) {
+ void 0 === t && (t = Pi);
+ 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 Ho(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 = Pi), this.name + e.hash;
+ }),
+ e
+ );
+ })(),
+ ji = /([A-Z])/,
+ Ti = /([A-Z])/g,
+ Ii = /^ms-/,
+ Ni = function (e) {
+ return '-' + e.toLowerCase();
+ };
+ function Di(e) {
+ return ji.test(e) ? e.replace(Ti, Ni).replace(Ii, '-ms-') : e;
+ }
+ var Li = function (e) {
+ return null == e || !1 === e || '' === e;
+ };
+ function Mi(e, t, n, r) {
+ if (Array.isArray(e)) {
+ for (var o, i = [], a = 0, s = e.length; a < s; a += 1)
+ '' !== (o = Mi(e[a], t, n, r)) &&
+ (Array.isArray(o) ? i.push.apply(i, o) : i.push(o));
+ return i;
+ }
+ return Li(e)
+ ? ''
+ : zo(e)
+ ? '.' + e.styledComponentId
+ : Mo(e)
+ ? 'function' != typeof (l = e) ||
+ (l.prototype && l.prototype.isReactComponent) ||
+ !t
+ ? e
+ : Mi(e(t), t, n, r)
+ : e instanceof Ri
+ ? n
+ ? (e.inject(n, r), e.getName(r))
+ : e
+ : No(e)
+ ? (function e(t, n) {
+ var r,
+ o,
+ i = [];
+ for (var a in t)
+ t.hasOwnProperty(a) &&
+ !Li(t[a]) &&
+ (No(t[a])
+ ? i.push.apply(i, e(t[a], a))
+ : Mo(t[a])
+ ? i.push(Di(a) + ':', t[a], ';')
+ : i.push(
+ Di(a) +
+ ': ' +
+ ((r = a),
+ (null == (o = t[a]) ||
+ 'boolean' == typeof o ||
+ '' === o
+ ? ''
+ : 'number' != typeof o ||
+ 0 === o ||
+ r in Ao
+ ? String(o).trim()
+ : o + 'px') + ';')
+ ));
+ return n ? [n + ' {'].concat(i, ['}']) : i;
+ })(e)
+ : e.toString();
+ var l;
+ }
+ function Fi(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 Mo(e) || No(e)
+ ? Mi(Io(Do, [e].concat(n)))
+ : 0 === n.length && 1 === e.length && 'string' == typeof e[0]
+ ? e
+ : Mi(Io(e, n));
+ }
+ new Set();
+ var zi = function (e, t, n) {
+ return (
+ void 0 === n && (n = Lo),
+ (e.theme !== n.theme && e.theme) || t || n.theme
+ );
+ },
+ Ui = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
+ Vi = /(^-|-$)/g;
+ function Bi(e) {
+ return e.replace(Ui, '-').replace(Vi, '');
+ }
+ var qi = function (e) {
+ return hi(gi(e) >>> 0);
+ };
+ function Wi(e) {
+ return 'string' == typeof e && !0;
+ }
+ var Hi = function (e) {
+ return (
+ 'function' == typeof e ||
+ ('object' == typeof e && null !== e && !Array.isArray(e))
+ );
+ },
+ Yi = function (e) {
+ return (
+ '__proto__' !== e && 'constructor' !== e && 'prototype' !== e
+ );
+ };
+ function Ki(e, t, n) {
+ var r = e[n];
+ Hi(t) && Hi(r) ? Gi(r, t) : (e[n] = t);
+ }
+ function Gi(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 o = 0, i = n; o < i.length; o++) {
+ var a = i[o];
+ if (Hi(a)) for (var s in a) Yi(s) && Ki(e, a[s], s);
+ }
+ return e;
+ }
+ var Qi = n.createContext(),
+ Xi = Qi.Consumer;
+ function Ji(e) {
+ var t = (0, n.useContext)(Qi),
+ r = (0, n.useMemo)(
+ function () {
+ return (function (e, t) {
+ return e
+ ? Mo(e)
+ ? e(t)
+ : Array.isArray(e) || 'object' != typeof e
+ ? Ho(8)
+ : t
+ ? To({}, t, {}, e)
+ : e
+ : Ho(14);
+ })(e.theme, t);
+ },
+ [e.theme, t]
+ );
+ return e.children
+ ? n.createElement(Qi.Provider, { value: r }, e.children)
+ : null;
+ }
+ var Zi = {};
+ function ea(e, t, r) {
+ var o = zo(e),
+ i = !Wi(e),
+ a = t.attrs,
+ s = void 0 === a ? Do : a,
+ l = t.componentId,
+ c =
+ void 0 === l
+ ? (function (e, t) {
+ var n = 'string' != typeof e ? 'sc' : Bi(e);
+ Zi[n] = (Zi[n] || 0) + 1;
+ var r = n + '-' + qi('5.3.0' + n + Zi[n]);
+ return t ? t + '-' + r : r;
+ })(t.displayName, t.parentComponentId)
+ : l,
+ u = t.displayName,
+ p =
+ void 0 === u
+ ? (function (e) {
+ return Wi(e) ? 'styled.' + e : 'Styled(' + Fo(e) + ')';
+ })(e)
+ : u,
+ d =
+ t.displayName && t.componentId
+ ? Bi(t.displayName) + '-' + t.componentId
+ : t.componentId || c,
+ f =
+ o && e.attrs
+ ? Array.prototype.concat(e.attrs, s).filter(Boolean)
+ : s,
+ h = t.shouldForwardProp;
+ o &&
+ e.shouldForwardProp &&
+ (h = t.shouldForwardProp
+ ? function (n, r, o) {
+ return (
+ e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o)
+ );
+ }
+ : e.shouldForwardProp);
+ var m,
+ g = new bi(r, d, o ? e.componentStyle : void 0),
+ y = g.isStatic && 0 === s.length,
+ v = function (e, t) {
+ return (function (e, t, r, o) {
+ var i = 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 = Lo);
+ var r = To({}, t, { theme: e }),
+ o = {};
+ return (
+ n.forEach(function (e) {
+ var t,
+ n,
+ i,
+ a = e;
+ for (t in (Mo(a) && (a = a(r)), a))
+ r[t] = o[t] =
+ 'className' === t
+ ? ((n = o[t]),
+ (i = a[t]),
+ n && i ? n + ' ' + i : n || i)
+ : a[t];
+ }),
+ [r, o]
+ );
+ })(zi(t, (0, n.useContext)(Qi), s) || Lo, t, i),
+ f = d[0],
+ h = d[1],
+ m = (function (e, t, n, r) {
+ var o = Ai(),
+ i = $i();
+ return t
+ ? e.generateAndInjectStyles(Lo, o, i)
+ : e.generateAndInjectStyles(n, o, i);
+ })(a, o, f),
+ g = r,
+ y = h.$as || t.$as || h.as || t.as || p,
+ v = Wi(y),
+ b = h !== t ? To({}, t, {}, h) : t,
+ w = {};
+ for (var x in b)
+ '$' !== x[0] &&
+ 'as' !== x &&
+ ('forwardedAs' === x
+ ? (w.as = b[x])
+ : (c ? c(x, Co, y) : !v || Co(x)) && (w[x] = b[x]));
+ return (
+ t.style &&
+ h.style !== t.style &&
+ (w.style = To({}, t.style, {}, h.style)),
+ (w.className = Array.prototype
+ .concat(l, u, m !== u ? m : null, t.className, h.className)
+ .filter(Boolean)
+ .join(' ')),
+ (w.ref = g),
+ (0, n.createElement)(y, w)
+ );
+ })(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 = o
+ ? Array.prototype.concat(
+ e.foldedComponentIds,
+ e.styledComponentId
+ )
+ : Do),
+ (m.styledComponentId = d),
+ (m.target = o ? e.target : e),
+ (m.withComponent = function (e) {
+ var n = t.componentId,
+ o = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(t, ['componentId']),
+ i = n && n + '-' + (Wi(e) ? e : Bi(Fo(e)));
+ return ea(e, To({}, o, { attrs: f, componentId: i }), r);
+ }),
+ Object.defineProperty(m, 'defaultProps', {
+ get: function () {
+ return this._foldedDefaultProps;
+ },
+ set: function (t) {
+ this._foldedDefaultProps = o ? Gi({}, e.defaultProps, t) : t;
+ }
+ }),
+ (m.toString = function () {
+ return '.' + m.styledComponentId;
+ }),
+ i &&
+ jo()(m, e, {
+ attrs: !0,
+ componentStyle: !0,
+ displayName: !0,
+ foldedComponentIds: !0,
+ shouldForwardProp: !0,
+ styledComponentId: !0,
+ target: !0,
+ withComponent: !0
+ }),
+ m
+ );
+ }
+ var ta = function (e) {
+ return (function e(t, n, r) {
+ if ((void 0 === r && (r = Lo), !(0, Oo.isValidElementType)(n)))
+ return Ho(1, String(n));
+ var o = function () {
+ return t(n, r, Fi.apply(void 0, arguments));
+ };
+ return (
+ (o.withConfig = function (o) {
+ return e(t, n, To({}, r, {}, o));
+ }),
+ (o.attrs = function (o) {
+ return e(
+ t,
+ n,
+ To({}, r, {
+ attrs: Array.prototype.concat(r.attrs, o).filter(Boolean)
+ })
+ );
+ }),
+ o
+ );
+ })(ea, 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) {
+ ta[e] = ta(e);
+ });
+ var na = (function () {
+ function e(e, t) {
+ (this.rules = e),
+ (this.componentId = t),
+ (this.isStatic = yi(e)),
+ pi.registerId(this.componentId + 1);
+ }
+ var t = e.prototype;
+ return (
+ (t.createStyles = function (e, t, n, r) {
+ var o = r(Mi(this.rules, t, n, r).join(''), ''),
+ i = this.componentId + e;
+ n.insertRules(i, i, o);
+ }),
+ (t.removeStyles = function (e, t) {
+ t.clearRules(this.componentId + e);
+ }),
+ (t.renderStyles = function (e, t, n, r) {
+ e > 2 && pi.registerId(this.componentId + e),
+ this.removeStyles(e, n),
+ this.createStyles(e, t, n, r);
+ }),
+ e
+ );
+ })();
+ function ra(e) {
+ for (
+ var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), o = 1;
+ o < t;
+ o++
+ )
+ r[o - 1] = arguments[o];
+ var i = Fi.apply(void 0, [e].concat(r)),
+ a = 'sc-global-' + qi(JSON.stringify(i)),
+ s = new na(i, a);
+ function l(e) {
+ var t = Ai(),
+ r = $i(),
+ o = (0, n.useContext)(Qi),
+ i = (0, n.useRef)(t.allocateGSInstance(a)).current;
+ return (
+ (0, n.useLayoutEffect)(
+ function () {
+ return (
+ c(i, e, t, o, r),
+ function () {
+ return s.removeStyles(i, t);
+ }
+ );
+ },
+ [i, e, t, o, r]
+ ),
+ null
+ );
+ }
+ function c(e, t, n, r, o) {
+ if (s.isStatic) s.renderStyles(e, Wo, n, o);
+ else {
+ var i = To({}, t, { theme: zi(t, r, l.defaultProps) });
+ s.renderStyles(e, i, n, o);
+ }
+ }
+ return n.memo(l);
+ }
+ function oa(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 o = Fi.apply(void 0, [e].concat(n)).join(''),
+ i = qi(o);
+ return new Ri(i, o);
+ }
+ var ia = (function () {
+ function e() {
+ var e = this;
+ (this._emitSheetCSS = function () {
+ var t = e.instance.toString(),
+ n = oi();
+ return (
+ ''
+ );
+ }),
+ (this.getStyleTags = function () {
+ return e.sealed ? Ho(2) : e._emitSheetCSS();
+ }),
+ (this.getStyleElement = function () {
+ var t;
+ if (e.sealed) return Ho(2);
+ var r =
+ (((t = {})[Uo] = ''),
+ (t['data-styled-version'] = '5.3.0'),
+ (t.dangerouslySetInnerHTML = {
+ __html: e.instance.toString()
+ }),
+ t),
+ o = oi();
+ return (
+ o && (r.nonce = o),
+ [n.createElement('style', To({}, r, { key: 'sc-0-0' }))]
+ );
+ }),
+ (this.seal = function () {
+ e.sealed = !0;
+ }),
+ (this.instance = new pi({ isServer: !0 })),
+ (this.sealed = !1);
+ }
+ var t = e.prototype;
+ return (
+ (t.collectStyles = function (e) {
+ return this.sealed
+ ? Ho(2)
+ : n.createElement(Ci, { sheet: this.instance }, e);
+ }),
+ (t.interleaveWithNodeStream = function (e) {
+ return Ho(3);
+ }),
+ e
+ );
+ })(),
+ aa = function (e) {
+ var t = n.forwardRef(function (t, r) {
+ var o = (0, n.useContext)(Qi),
+ i = e.defaultProps,
+ a = zi(t, o, i);
+ return n.createElement(e, To({}, t, { theme: a, ref: r }));
+ });
+ return jo()(t, e), (t.displayName = 'WithTheme(' + Fo(e) + ')'), t;
+ },
+ sa = function () {
+ return (0, n.useContext)(Qi);
+ },
+ la = { StyleSheet: pi, masterSheet: Ei },
+ ca = ta;
+ const {
+ default: ua,
+ css: pa,
+ createGlobalStyle: da,
+ keyframes: fa,
+ ThemeProvider: ha
+ } = e,
+ ma =
+ (e, t, n) =>
+ (...r) => pa`
+ @media ${t ? 'print, ' : ''} screen and (max-width: ${(t) => t.theme.breakpoints[e]}) ${n || ''} {
+ ${pa(...r)};
+ }
+ `;
+ var ga = ua;
+ function ya(e) {
+ return (t) => {
+ if (t.theme.extensionsHook) return t.theme.extensionsHook(e, t);
+ };
+ }
+ const va = ga.div`
+ padding: 20px;
+ color: red;
+`;
+ class ba 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(
+ va,
+ 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.0.0-rc.75'
+ ),
+ ' ',
+ n.createElement('br', null),
+ n.createElement('small', null, ' Commit: ', 'd7440fb')
+ )
+ : n.createElement(
+ n.Fragment,
+ null,
+ n.Children.only(this.props.children)
+ );
+ }
+ }
+ const wa = fa`
+ 0% {
+ transform: rotate(0deg); }
+ 100% {
+ transform: rotate(360deg);
+ }
+`,
+ xa = ga((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 ${wa} linear infinite;
+ width: 50px;
+ height: 50px;
+ content: '';
+ display: inline-block;
+ margin-left: -25px;
+
+ path {
+ fill: ${(e) => e.color};
+ }
+`,
+ ka = ga.div`
+ font-family: helvetica, sans;
+ width: 100%;
+ text-align: center;
+ font-size: 25px;
+ margin: 30px 0 20px 0;
+ color: ${(e) => e.color};
+`;
+ class _a extends n.PureComponent {
+ render() {
+ return n.createElement(
+ 'div',
+ { style: { textAlign: 'center' } },
+ n.createElement(ka, { color: this.props.color }, 'Loading ...'),
+ n.createElement(xa, { color: this.props.color })
+ );
+ }
+ }
+ var Oa = r(5697);
+ const Sa = n.createContext(new xo({})),
+ Ea = Sa.Provider,
+ Pa = Sa.Consumer;
+ var Aa = r(3675),
+ $a = r(3777),
+ Ca = r(8925);
+ var Ra = r(1851),
+ ja = r(6729),
+ Ta = r(3573),
+ Ia = r.n(Ta);
+ const Na = Ta.parse;
+ class Da {
+ static baseName(e, t = 1) {
+ const n = Da.parse(e);
+ return n[n.length - t];
+ }
+ static dirName(e, t = 1) {
+ const n = Da.parse(e);
+ return Ta.compile(n.slice(0, n.length - t));
+ }
+ static relative(e, t) {
+ const n = Da.parse(e);
+ return Da.parse(t).slice(n.length);
+ }
+ static parse(e) {
+ let t = e;
+ return '#' === t.charAt(0) && (t = t.substring(1)), Na(t);
+ }
+ static join(e, t) {
+ const n = Da.parse(e).concat(t);
+ return Ta.compile(n);
+ }
+ static get(e, t) {
+ return Ta.get(e, t);
+ }
+ static compile(e) {
+ return Ta.compile(e);
+ }
+ static escape(e) {
+ return Ta.escape(e);
+ }
+ }
+ (Ta.parse = Da.parse), Object.assign(Da, Ta);
+ var La = r(6470),
+ Ma = r(3578),
+ Fa = Object.defineProperty,
+ za = Object.defineProperties,
+ Ua = Object.getOwnPropertyDescriptors,
+ Va = Object.getOwnPropertySymbols,
+ Ba = Object.prototype.hasOwnProperty,
+ qa = Object.prototype.propertyIsEnumerable,
+ Wa = (e, t, n) =>
+ t in e
+ ? Fa(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Ha = (e, t) => {
+ for (var n in t || (t = {})) Ba.call(t, n) && Wa(e, n, t[n]);
+ if (Va) for (var n of Va(t)) qa.call(t, n) && Wa(e, n, t[n]);
+ return e;
+ },
+ Ya = (e, t) => za(e, Ua(t));
+ function Ka(e) {
+ return 'string' == typeof e && /\dxx/i.test(e);
+ }
+ function Ga(e, t = !1) {
+ if ('default' === e) return t ? 'error' : 'success';
+ let n = 'string' == typeof e ? parseInt(e, 10) : e;
+ if ((Ka(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 Qa = {
+ get: !0,
+ post: !0,
+ put: !0,
+ head: !0,
+ patch: !0,
+ delete: !0,
+ options: !0,
+ $ref: !0
+ };
+ function Xa(e) {
+ return e in Qa;
+ }
+ const Ja = {
+ 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 = io(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),
+ !io(e.items) &&
+ !io(e.prefixItems) &&
+ (void 0 !== e.items &&
+ !ao(e.items) &&
+ ('array' === t ||
+ (r && (null == t ? void 0 : t.includes('array')))) &&
+ (n = Za(e.items, e.items.type)),
+ n)
+ );
+ }
+ function es(e) {
+ return -1 !== e.search(/json/i);
+ }
+ function ts(e, t, n) {
+ return io(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 ns(e, t) {
+ return io(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 rs(e, t, n) {
+ const r = '__redoc_param_name__',
+ o = t ? '*' : '';
+ return Ma.parse(`{?${r}${o}}`)
+ .expand({ [r]: n })
+ .substring(1)
+ .replace(/__redoc_param_name__/g, e);
+ }
+ function os(e, t) {
+ return es(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: o = !1,
+ serializationMime: i
+ } = e;
+ if (i)
+ switch (e.in) {
+ case 'path':
+ case 'header':
+ return os(t, i);
+ case 'cookie':
+ case 'query':
+ return `${n}=${os(t, i)}`;
+ 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 o = n ? '*' : '';
+ let i = '';
+ 'label' === t ? (i = '.') : 'matrix' === t && (i = ';');
+ const a = '__redoc_param_name__';
+ return Ma.parse(`{${i}${a}${o}}`)
+ .expand({ [a]: r })
+ .replace(/__redoc_param_name__/g, e);
+ })(n, r, o, t);
+ case 'query':
+ return (function (e, t, n, r) {
+ switch (t) {
+ case 'form':
+ return rs(e, n, r);
+ case 'spaceDelimited':
+ return io(r)
+ ? n
+ ? rs(e, n, r)
+ : `${e}=${r.join('%20')}`
+ : (console.warn(
+ 'The style spaceDelimited is only applicable to arrays'
+ ),
+ '');
+ case 'pipeDelimited':
+ return io(r)
+ ? n
+ ? rs(e, n, r)
+ : `${e}=${r.join('|')}`
+ : (console.warn(
+ 'The style pipeDelimited is only applicable to arrays'
+ ),
+ '');
+ case 'deepObject':
+ return !n || io(r) || 'object' != typeof r
+ ? (console.warn(
+ 'The style deepObject is only applicable for objects with explode=true'
+ ),
+ '')
+ : ns(r, e);
+ default:
+ return (
+ console.warn('Unexpected style for query: ' + t),
+ ''
+ );
+ }
+ })(n, r, o, t);
+ case 'header':
+ return (function (e, t, n) {
+ if ('simple' === e) {
+ const e = t ? '*' : '',
+ r = '__redoc_param_name__',
+ o = Ma.parse(`{${r}${e}}`);
+ return decodeURIComponent(o.expand({ [r]: n }));
+ }
+ return (
+ console.warn('Unexpected style for header: ' + e), ''
+ );
+ })(r, o, t);
+ case 'cookie':
+ return (function (e, t, n, r) {
+ return 'form' === t
+ ? rs(e, n, r)
+ : (console.warn('Unexpected style for cookie: ' + t),
+ '');
+ })(n, r, o, t);
+ default:
+ return (
+ console.warn('Unexpected parameter location: ' + e.in),
+ ''
+ );
+ }
+ })(e, t)
+ )
+ : t;
+ }
+ const as = /^#\/components\/(schemas|pathItems)\/([^/]+)$/;
+ function ss(e) {
+ return as.test(e || '');
+ }
+ function ls(e) {
+ var t;
+ const [n] =
+ (null == (t = null == e ? void 0 : e.match(as))
+ ? void 0
+ : t.reverse()) || [];
+ return n;
+ }
+ function cs(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 us(e) {
+ const t = [],
+ n = cs('characters', e.minLength, e.maxLength);
+ void 0 !== n && t.push(n);
+ const r = cs('items', e.minItems, e.maxItems);
+ void 0 !== r && t.push(r);
+ const o = cs('properties', e.minProperties, e.maxProperties);
+ void 0 !== o && t.push(o);
+ const i = (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 !== i && t.push(i);
+ 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,
+ o =
+ 'number' == typeof e.exclusiveMaximum
+ ? Math.max(
+ e.exclusiveMaximum,
+ null != (n = e.maximum) ? n : -1 / 0
+ )
+ : e.maximum,
+ i = 'number' == typeof e.exclusiveMinimum || e.exclusiveMinimum,
+ a = 'number' == typeof e.exclusiveMaximum || e.exclusiveMaximum;
+ return void 0 !== r && void 0 !== o
+ ? `${i ? '( ' : '[ '}${r} .. ${o}${a ? ' )' : ' ]'}`
+ : void 0 !== o
+ ? `${a ? '< ' : '<= '}${o}`
+ : void 0 !== r
+ ? `${i ? '> ' : '>= '}${r}`
+ : void 0;
+ })(e);
+ return (
+ void 0 !== a && t.push(a), e.uniqueItems && t.push('unique'), t
+ );
+ }
+ function ps(e, t = []) {
+ const n = [],
+ r = [],
+ o = [];
+ return (
+ e.forEach((e) => {
+ e.required
+ ? t.includes(e.name)
+ ? r.push(e)
+ : o.push(e)
+ : n.push(e);
+ }),
+ r.sort((e, n) => t.indexOf(e.name) - t.indexOf(n.name)),
+ [...r, ...o, ...n]
+ );
+ }
+ function ds(e, t) {
+ return [...e].sort((e, n) => e[t].localeCompare(n[t]));
+ }
+ function fs(e, t) {
+ const n =
+ void 0 === e
+ ? (function (e) {
+ try {
+ const t = ro(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 Ya(Ha({}, 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 = Xr(e) + '/' + t;
+ return Xr(n);
+ })(n, t)),
+ description: e.description || ''
+ });
+ var t;
+ })
+ );
+ }
+ let hs = 'section/Authentication/';
+ const ms = (e) => ({ delete: 'del', options: 'opts' })[e] || e;
+ function gs(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 ys = r(5660);
+ r(7874),
+ r(4279),
+ r(5433),
+ r(6213),
+ r(2731),
+ r(3967),
+ 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(8052);
+ function vs(e, t = 'clike') {
+ t = t.toLowerCase();
+ let n = ys.languages[t];
+ return (
+ n ||
+ (n =
+ ys.languages[
+ (function (e) {
+ return (
+ {
+ json: 'js',
+ 'c++': 'cpp',
+ 'c#': 'csharp',
+ 'objective-c': 'objectivec',
+ shell: 'bash',
+ viml: 'vim'
+ }[e] || 'clike'
+ );
+ })(t)
+ ]),
+ ys.highlight(e.toString(), n, t)
+ );
+ }
+ ys.languages.insertBefore(
+ 'javascript',
+ 'string',
+ {
+ 'property string': {
+ pattern: /([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,
+ lookbehind: !0
+ }
+ },
+ void 0
+ ),
+ ys.languages.insertBefore(
+ 'javascript',
+ 'punctuation',
+ {
+ property: {
+ pattern: /([{,]\s*)[a-z]\w*(?=\s*:)/i,
+ lookbehind: !0
+ }
+ },
+ void 0
+ );
+ var bs = Object.defineProperty,
+ ws = Object.defineProperties,
+ xs = Object.getOwnPropertyDescriptors,
+ ks = Object.getOwnPropertySymbols,
+ _s = Object.prototype.hasOwnProperty,
+ Os = Object.prototype.propertyIsEnumerable,
+ Ss = (e, t, n) =>
+ t in e
+ ? bs(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Es = (e, t) => {
+ for (var n in t || (t = {})) _s.call(t, n) && Ss(e, n, t[n]);
+ if (ks) for (var n of ks(t)) Os.call(t, n) && Ss(e, n, t[n]);
+ return e;
+ },
+ Ps = (e, t) => ws(e, xs(t));
+ const As = {};
+ function $s(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}`,
+ o = n.value;
+ return (
+ (e[r] = As),
+ Ps(Es({}, n), {
+ value() {
+ return this[r] === As && (this[r] = o.call(this)), this[r];
+ }
+ })
+ );
+ })(e, t, n);
+ if ('function' == typeof n.get)
+ return (function (e, t, n) {
+ const r = `_memoized_${t}`,
+ o = n.get;
+ return (
+ (e[r] = As),
+ Ps(Es({}, n), {
+ get() {
+ return this[r] === As && (this[r] = o.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 Cs(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 Rs = Object.defineProperty,
+ js = Object.getOwnPropertyDescriptor;
+ const Ts = 'hashchange';
+ class Is {
+ constructor() {
+ (this.emit = () => {
+ this._emiter.emit(Ts, this.currentId);
+ }),
+ (this._emiter = new ja.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(Ts, e);
+ return () => t.removeListener(Ts, 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 o, i = js(t, n), a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(t, n, i) || i);
+ i && Rs(t, n, i);
+ })([Ra.bind, Ra.debounce], Is.prototype, 'replace');
+ const Ns = new Is();
+ var Ds = r(813);
+ class Ls {
+ constructor() {
+ (this.map = new Map()), (this.prevTerm = '');
+ }
+ add(e) {
+ this.map.set(e, new Ds(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 Ds(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+;)/,
+ Vs = /[<>"']|&(?!#?\w+;)/g,
+ Bs = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": '''
+ },
+ qs = (e) => Bs[e];
+ function Ws(e, t) {
+ if (t) {
+ if (Fs.test(e)) return e.replace(zs, qs);
+ } else if (Us.test(e)) return e.replace(Vs, qs);
+ 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 Ks = /(^|[^\[])\^/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(Ks, '$1')),
+ (e = e.replace(t, r)),
+ n
+ ),
+ getRegex: () => new RegExp(e, t)
+ };
+ return n;
+ }
+ const Qs = /[^\w:]/g,
+ Xs = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
+ function Js(e, t, n) {
+ if (e) {
+ let e;
+ try {
+ e = decodeURIComponent(Ys(n)).replace(Qs, '').toLowerCase();
+ } catch (e) {
+ return null;
+ }
+ if (
+ 0 === e.indexOf('javascript:') ||
+ 0 === e.indexOf('vbscript:') ||
+ 0 === e.indexOf('data:')
+ )
+ return null;
+ }
+ t &&
+ !Xs.test(n) &&
+ (n = (function (e, t) {
+ Zs[' ' + e] ||
+ (el.test(e)
+ ? (Zs[' ' + e] = e + '/')
+ : (Zs[' ' + e] = al(e, '/', !0)));
+ const n = -1 === (e = Zs[' ' + 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 Zs = {},
+ el = /^[^:]+:\/*[^/]*$/,
+ tl = /^([^:]+:)[\s\S]*$/,
+ nl = /^([^:]+:\/*[^/]*)[\s\S]*$/,
+ rl = { exec: function () {} };
+ function ol(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 il(e, t) {
+ const n = e
+ .replace(/\|/g, (e, t, n) => {
+ let r = !1,
+ o = t;
+ for (; --o >= 0 && '\\' === n[o]; ) 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 o = 0;
+ for (; o < r; ) {
+ const i = e.charAt(r - o - 1);
+ if (i !== t || n) {
+ if (i === t || !n) break;
+ o++;
+ } else o++;
+ }
+ return e.slice(0, r - o);
+ }
+ 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 o = t.href,
+ i = 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: o,
+ title: i,
+ text: a,
+ tokens: r.inlineTokens(a, [])
+ };
+ return (r.state.inLink = !1), e;
+ }
+ return { type: 'image', raw: n, href: o, title: i, 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,
+ o,
+ i,
+ 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
+ ? ((i = 2), (d = c.trimLeft()))
+ : ((i = t[2].search(/[^ ]/)),
+ (i = i > 4 ? 1 : i),
+ (d = c.slice(i)),
+ (i += 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, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`
+ ),
+ r = new RegExp(
+ `^ {0,${Math.min(3, i - 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(/[^ ]/) >= i || !c.trim())
+ d += '\n' + c.slice(i);
+ 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 &&
+ ((o = '[ ] ' !== r[0]),
+ (d = d.replace(/^\[[ xX]\] +/, '')))),
+ g.items.push({
+ type: 'list_item',
+ raw: n,
+ task: !!r,
+ checked: o,
+ 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: il(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,
+ o,
+ i,
+ 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] = il(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 (i = e.rows[r], o = 0; o < i.length; o++)
+ (i[o].tokens = []),
+ this.lexer.inlineTokens(i[o].text, i[o].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,
+ o = 0;
+ for (; o < n; o++)
+ if ('\\' === e[o]) o++;
+ else if (e[o] === t[0]) r++;
+ else if (e[o] === t[1] && (r--, r < 0)) return o;
+ 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 o = r[1] || r[2] || '';
+ if (
+ !o ||
+ (o && ('' === n || this.rules.inline.punctuation.exec(n)))
+ ) {
+ const n = r[0].length - 1;
+ let o,
+ i,
+ 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 (((o = r[1] || r[2] || r[3] || r[4] || r[5] || r[6]), !o))
+ continue;
+ if (((i = o.length), r[3] || r[4])) {
+ a += i;
+ continue;
+ }
+ if ((r[5] || r[6]) && n % 3 && !((n + i) % 3)) {
+ s += i;
+ continue;
+ }
+ if (((a -= i), a > 0)) continue;
+ if (((i = Math.min(i, i + a + s)), Math.min(n, i) % 2)) {
+ const t = e.slice(1, n + r.index + i);
+ return {
+ type: 'em',
+ raw: e.slice(0, n + r.index + i + 1),
+ text: t,
+ tokens: this.lexer.inlineTokens(t, [])
+ };
+ }
+ const t = e.slice(2, n + r.index + i - 1);
+ return {
+ type: 'strong',
+ raw: e.slice(0, n + r.index + i + 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 = ol({}, pl)),
+ (pl.gfm = ol({}, 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 = ol({}, 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 = ol({}, dl)),
+ (dl.pedantic = ol({}, 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 = ol({}, 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 (
+ ((o = 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 && (o = e.substring(0, t + 1));
+ }
+ if (this.state.top && (n = this.tokenizer.paragraph(o)))
+ (r = t[t.length - 1]),
+ i && '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),
+ (i = o.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,
+ o,
+ i,
+ a,
+ s,
+ l = e;
+ if (this.tokens.links) {
+ const e = Object.keys(this.tokens.links);
+ if (e.length > 0)
+ for (
+ ;
+ null !=
+ (i = this.tokenizer.rules.inline.reflinkSearch.exec(l));
+
+ )
+ e.includes(i[0].slice(i[0].lastIndexOf('[') + 1, -1)) &&
+ (l =
+ l.slice(0, i.index) +
+ '[' +
+ ll('a', i[0].length - 2) +
+ ']' +
+ l.slice(
+ this.tokenizer.rules.inline.reflinkSearch.lastIndex
+ ));
+ }
+ for (
+ ;
+ null != (i = this.tokenizer.rules.inline.blockSkip.exec(l));
+
+ )
+ l =
+ l.slice(0, i.index) +
+ '[' +
+ ll('a', i[0].length - 2) +
+ ']' +
+ l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
+ for (
+ ;
+ null != (i = this.tokenizer.rules.inline.escapedEmSt.exec(l));
+
+ )
+ l =
+ l.slice(0, i.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 (
+ ((o = 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 && (o = e.substring(0, t + 1));
+ }
+ if ((n = this.tokenizer.inlineText(o, 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 = Js(this.options.sanitize, this.options.baseUrl, e))
+ )
+ return n;
+ let r = '' + n + ''), r;
+ }
+ image(e, t, n) {
+ if (
+ null === (e = Js(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,
+ o,
+ i,
+ a,
+ s,
+ l,
+ c,
+ u,
+ p,
+ d,
+ f,
+ h,
+ m,
+ g,
+ y,
+ v,
+ b,
+ w,
+ x = '';
+ 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] &&
+ ((w = this.options.extensions.renderers[p.type].call(
+ { parser: this },
+ p
+ )),
+ !1 !== w ||
+ ![
+ 'space',
+ 'hr',
+ 'heading',
+ 'code',
+ 'table',
+ 'blockquote',
+ 'list',
+ 'html',
+ 'paragraph',
+ 'text'
+ ].includes(p.type)))
+ )
+ x += w || '';
+ else
+ switch (p.type) {
+ case 'space':
+ continue;
+ case 'hr':
+ x += this.renderer.hr();
+ continue;
+ case 'heading':
+ x += this.renderer.heading(
+ this.parseInline(p.tokens),
+ p.depth,
+ Ys(this.parseInline(p.tokens, this.textRenderer)),
+ this.slugger
+ );
+ continue;
+ case 'code':
+ x += this.renderer.code(p.text, p.lang, p.escaped);
+ continue;
+ case 'table':
+ for (c = '', l = '', i = p.header.length, r = 0; r < i; r++)
+ l += this.renderer.tablecell(
+ this.parseInline(p.header[r].tokens),
+ { header: !0, align: p.align[r] }
+ );
+ for (
+ c += this.renderer.tablerow(l),
+ u = '',
+ i = p.rows.length,
+ r = 0;
+ r < i;
+ r++
+ ) {
+ for (
+ s = p.rows[r], l = '', a = s.length, o = 0;
+ o < a;
+ o++
+ )
+ l += this.renderer.tablecell(
+ this.parseInline(s[o].tokens),
+ { header: !1, align: p.align[o] }
+ );
+ u += this.renderer.tablerow(l);
+ }
+ x += this.renderer.table(c, u);
+ continue;
+ case 'blockquote':
+ (u = this.parse(p.tokens)),
+ (x += this.renderer.blockquote(u));
+ continue;
+ case 'list':
+ for (
+ d = p.ordered,
+ f = p.start,
+ h = p.loose,
+ i = p.items.length,
+ u = '',
+ r = 0;
+ r < i;
+ 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));
+ x += this.renderer.list(u, d, f);
+ continue;
+ case 'html':
+ x += this.renderer.html(p.text);
+ continue;
+ case 'paragraph':
+ x += 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));
+ x += 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 x;
+ }
+ parseInline(e, t) {
+ t = t || this.renderer;
+ let n,
+ r,
+ o,
+ i = '';
+ 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] &&
+ ((o = this.options.extensions.renderers[r.type].call(
+ { parser: this },
+ r
+ )),
+ !1 !== o ||
+ ![
+ 'escape',
+ 'html',
+ 'link',
+ 'image',
+ 'strong',
+ 'em',
+ 'codespan',
+ 'br',
+ 'del',
+ 'text'
+ ].includes(r.type)))
+ )
+ i += o || '';
+ else
+ switch (r.type) {
+ case 'escape':
+ case 'text':
+ i += t.text(r.text);
+ break;
+ case 'html':
+ i += t.html(r.text);
+ break;
+ case 'link':
+ i += t.link(r.href, r.title, this.parseInline(r.tokens, t));
+ break;
+ case 'image':
+ i += t.image(r.href, r.title, r.text);
+ break;
+ case 'strong':
+ i += t.strong(this.parseInline(r.tokens, t));
+ break;
+ case 'em':
+ i += t.em(this.parseInline(r.tokens, t));
+ break;
+ case 'codespan':
+ i += t.codespan(r.text);
+ break;
+ case 'br':
+ i += t.br();
+ break;
+ case 'del':
+ i += 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 i;
+ }
+ }
+ function wl(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 = ol({}, wl.defaults, t || {}))),
+ n)
+ ) {
+ const r = t.highlight;
+ let o;
+ try {
+ o = ml.lex(e, t);
+ } catch (e) {
+ return n(e);
+ }
+ const i = function (e) {
+ let i;
+ if (!e)
+ try {
+ t.walkTokens && wl.walkTokens(o, t.walkTokens),
+ (i = bl.parse(o, t));
+ } catch (t) {
+ e = t;
+ }
+ return (t.highlight = r), e ? n(e) : n(null, i);
+ };
+ if (!r || r.length < 3) return i();
+ if ((delete t.highlight, !o.length)) return i();
+ let a = 0;
+ return (
+ wl.walkTokens(o, function (e) {
+ 'code' === e.type &&
+ (a++,
+ setTimeout(() => {
+ r(e.text, e.lang, function (t, n) {
+ if (t) return i(t);
+ null != n &&
+ n !== e.text &&
+ ((e.text = n), (e.escaped = !0)),
+ a--,
+ 0 === a && i();
+ });
+ }, 0));
+ }),
+ void (0 === a && i())
+ );
+ }
+ try {
+ const n = ml.lex(e, t);
+ return (
+ t.walkTokens && wl.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;
+ }
+ }
+ (wl.options = wl.setOptions =
+ function (e) {
+ var t;
+ return ol(wl.defaults, e), (t = wl.defaults), (Ms = t), wl;
+ }),
+ (wl.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
+ };
+ }),
+ (wl.defaults = Ms),
+ (wl.use = function (...e) {
+ const t = ol({}, ...e),
+ n = wl.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 = wl.defaults.renderer || new gl();
+ for (const t in e.renderer) {
+ const r = n[t];
+ n[t] = (...o) => {
+ let i = e.renderer[t].apply(n, o);
+ return !1 === i && (i = r.apply(n, o)), i;
+ };
+ }
+ t.renderer = n;
+ }
+ if (e.tokenizer) {
+ const n = wl.defaults.tokenizer || new ul();
+ for (const t in e.tokenizer) {
+ const r = n[t];
+ n[t] = (...o) => {
+ let i = e.tokenizer[t].apply(n, o);
+ return !1 === i && (i = r.apply(n, o)), i;
+ };
+ }
+ t.tokenizer = n;
+ }
+ if (e.walkTokens) {
+ const n = wl.defaults.walkTokens;
+ t.walkTokens = function (t) {
+ e.walkTokens.call(this, t), n && n.call(this, t);
+ };
+ }
+ r && (t.extensions = n), wl.setOptions(t);
+ });
+ }),
+ (wl.walkTokens = function (e, t) {
+ for (const n of e)
+ switch ((t.call(wl, n), n.type)) {
+ case 'table':
+ for (const e of n.header) wl.walkTokens(e.tokens, t);
+ for (const e of n.rows)
+ for (const n of e) wl.walkTokens(n.tokens, t);
+ break;
+ case 'list':
+ wl.walkTokens(n.items, t);
+ break;
+ default:
+ wl.defaults.extensions &&
+ wl.defaults.extensions.childTokens &&
+ wl.defaults.extensions.childTokens[n.type]
+ ? wl.defaults.extensions.childTokens[n.type].forEach(
+ function (e) {
+ wl.walkTokens(n[e], t);
+ }
+ )
+ : n.tokens && wl.walkTokens(n.tokens, t);
+ }
+ }),
+ (wl.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 = ol({}, wl.defaults, t || {})));
+ try {
+ const n = ml.lexInline(e, t);
+ return (
+ t.walkTokens && wl.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;
+ }
+ }),
+ (wl.Parser = bl),
+ (wl.parser = bl.parse),
+ (wl.Renderer = gl),
+ (wl.TextRenderer = yl),
+ (wl.Lexer = ml),
+ (wl.lexer = ml.lex),
+ (wl.Tokenizer = ul),
+ (wl.Slugger = vl),
+ (wl.parse = wl),
+ wl.options,
+ wl.setOptions,
+ wl.use,
+ wl.walkTokens,
+ wl.parseInline,
+ bl.parse,
+ ml.lex;
+ var xl = Object.defineProperty,
+ kl = Object.defineProperties,
+ _l = Object.getOwnPropertyDescriptors,
+ Ol = Object.getOwnPropertySymbols,
+ Sl = Object.prototype.hasOwnProperty,
+ El = Object.prototype.propertyIsEnumerable,
+ Pl = (e, t, n) =>
+ t in e
+ ? xl(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Al = (e, t) => {
+ for (var n in t || (t = {})) Sl.call(t, n) && Pl(e, n, t[n]);
+ if (Ol) for (var n of Ol(t)) El.call(t, n) && Pl(e, n, t[n]);
+ return e;
+ },
+ $l = (e, t) => kl(e, _l(t));
+ const Cl = new wl.Renderer();
+ wl.setOptions({ renderer: Cl, highlight: (e, t) => vs(e, t) });
+ const Rl =
+ '(?:^ {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 jl {
+ constructor(e) {
+ (this.options = e),
+ (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.parser = new wl.Parser()),
+ (this.headingEnhanceRenderer = new wl.Renderer()),
+ (this.originalHeadingRule =
+ this.headingEnhanceRenderer.heading.bind(
+ this.headingEnhanceRenderer
+ )),
+ (this.headingEnhanceRenderer.heading = this.headingRule);
+ }
+ static containsComponent(e, t) {
+ return new RegExp(Rl.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 o = {
+ id: r ? `${r}/${no(e)}` : `section/${no(e)}`,
+ name: e,
+ level: t,
+ items: []
+ };
+ return n.push(o), o;
+ }
+ 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],
+ o = t(r),
+ i = e.search(o);
+ for (let a = 1; a < n.length; a++) {
+ const s = n[a],
+ l = t(s),
+ c = e.substr(i + 1).search(l) + i + 1;
+ (r.description = e.substring(i, c).replace(o, '').trim()),
+ (r = s),
+ (o = l),
+ (i = c);
+ }
+ r.description = e.substring(i).replace(o, '').trim();
+ }
+ renderMd(e, t = !1) {
+ const n = t ? { renderer: this.headingEnhanceRenderer } : void 0;
+ return wl(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(Rl.replace(/{component}/g, n), 'mig'),
+ o = [],
+ i = [];
+ let a = r.exec(e),
+ s = 0;
+ for (; a; ) {
+ o.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 &&
+ i.push({
+ component: n.component,
+ propsSelector: n.propsSelector,
+ props: $l(Al(Al({}, Tl(l)), n.props), { children: c })
+ }),
+ (a = r.exec(e));
+ }
+ o.push(e.substring(s));
+ const l = [];
+ for (let e = 0; e < o.length; e++) {
+ const t = o[e];
+ t && l.push(this.renderMd(t)), i[e] && l.push(i[e]);
+ }
+ return l;
+ }
+ }
+ function Tl(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 Il {
+ constructor(e, t = new xo({})) {
+ (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,
+ Dl = Object.defineProperties,
+ Ll = 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 Vl {
+ constructor(e, t) {
+ const n =
+ (t.spec.components && t.spec.components.securitySchemes) || {};
+ this.schemes = Object.keys(e || {})
+ .map((r) => {
+ const { resolved: o } = t.deref(n[r]),
+ i = e[r] || [];
+ if (!o)
+ return void console.warn(
+ `Non existing security scheme referenced: ${r}. Skipping`
+ );
+ const a = o['x-displayName'] || r;
+ return ((e, t) => Dl(e, Ll(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;
+ })({}, o),
+ { id: r, sectionId: r, displayName: a, scopes: i }
+ );
+ })
+ .filter((e) => void 0 !== e);
+ }
+ }
+ var Bl = Object.defineProperty,
+ ql = Object.defineProperties,
+ Wl = Object.getOwnPropertyDescriptor,
+ Hl = Object.getOwnPropertyDescriptors,
+ Yl = Object.getOwnPropertySymbols,
+ Kl = Object.prototype.hasOwnProperty,
+ Gl = Object.prototype.propertyIsEnumerable,
+ Ql = (e, t, n) =>
+ t in e
+ ? Bl(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Xl = (e, t) => {
+ for (var n in t || (t = {})) Kl.call(t, n) && Ql(e, n, t[n]);
+ if (Yl) for (var n of Yl(t)) Gl.call(t, n) && Ql(e, n, t[n]);
+ return e;
+ },
+ Jl = (e, t) => ql(e, Hl(t)),
+ Zl = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? Wl(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && Bl(t, n, i), i;
+ };
+ class ec {
+ constructor(e, t, n, r, o) {
+ (this.expanded = !1),
+ (this.operations = []),
+ tn(this),
+ (this.name = t);
+ const { resolved: i } = e.deref(n);
+ for (const n of Object.keys(i)) {
+ const a = i[n],
+ s = Object.keys(a).filter(Xa);
+ for (const i of s) {
+ const s = a[i],
+ l = new _u(
+ e,
+ Jl(Xl({}, s), {
+ pathName: n,
+ pointer: Da.compile([r, t, n, i]),
+ httpVerb: i,
+ pathParameters: a.parameters || [],
+ pathServers: a.servers
+ }),
+ void 0,
+ o,
+ !0
+ );
+ this.operations.push(l);
+ }
+ }
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ }
+ Zl([Ae], ec.prototype, 'expanded', 2),
+ Zl([Pt], ec.prototype, 'toggle', 1);
+ var tc = Object.defineProperty,
+ nc = Object.defineProperties,
+ rc = Object.getOwnPropertyDescriptors,
+ oc = Object.getOwnPropertySymbols,
+ ic = 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 = {})) ic.call(t, n) && sc(e, n, t[n]);
+ if (oc) for (var n of oc(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) ic.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && oc)
+ for (var r of oc(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 xo({})) {
+ (this.options = n),
+ (this.allowMergeRefs = !1),
+ (this.byRef = (e) => {
+ let t;
+ if (this.spec) {
+ '#' !== e.charAt(0) && (e = '#' + e),
+ (e = decodeURIComponent(e));
+ try {
+ t = Da.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 = ls(e.$ref);
+ if (r && this.options.ignoreNamedSchemas.has(r))
+ return { resolved: { type: 'object', title: r }, refsStack: t };
+ let o = this.byRef(e.$ref);
+ if (!o) throw new Error(`Failed to resolve $ref "${e.$ref}"`);
+ let i = t;
+ if (t.includes(e.$ref))
+ o = Object.assign({}, o, { 'x-circular-ref': !0 });
+ else if (this.isRef(o)) {
+ const e = this.deref(o, t, n);
+ (i = e.refsStack), (o = e.resolved);
+ }
+ return (
+ (i = pc(t, e.$ref)),
+ (o = this.allowMergeRefs ? this.mergeRefs(e, o, n) : o),
+ { resolved: o, refsStack: i }
+ );
+ }
+ return { resolved: e, refsStack: dc(t, r) };
+ }
+ mergeRefs(e, t, n) {
+ const r = e,
+ { $ref: o } = r,
+ i = uc(r, ['$ref']),
+ a = Object.keys(i);
+ if (0 === a.length) return t;
+ if (
+ n &&
+ a.some(
+ (e) =>
+ ![
+ 'description',
+ 'title',
+ 'externalDocs',
+ 'x-refsStack',
+ 'x-parentRefs',
+ 'readOnly',
+ 'writeOnly'
+ ].includes(e)
+ )
+ ) {
+ const e = i,
+ { description: n, title: r, readOnly: o, writeOnly: a } = e;
+ return {
+ allOf: [
+ { description: n, title: r, readOnly: o, writeOnly: a },
+ t,
+ uc(e, ['description', 'title', 'readOnly', 'writeOnly'])
+ ]
+ };
+ }
+ return lc(lc({}, t), i);
+ }
+ mergeAllOf(e, t, n) {
+ var r;
+ if (e['x-circular-ref']) return e;
+ if (void 0 === (e = this.hoistOneOfs(e)).allOf) return e;
+ let o = cc(lc({}, e), {
+ 'x-parentRefs': [],
+ allOf: void 0,
+ title: e.title || ls(t)
+ });
+ void 0 !== o.properties &&
+ 'object' == typeof o.properties &&
+ (o.properties = lc({}, o.properties)),
+ void 0 !== o.items &&
+ 'object' == typeof o.items &&
+ (o.items = lc({}, o.items));
+ const i = e.allOf
+ .map((e) => {
+ var t;
+ const { resolved: r, refsStack: i } = this.deref(e, n, !0),
+ a = e.$ref || void 0,
+ s = this.mergeAllOf(r, a, i);
+ if (!s['x-circular-ref'] || !s.allOf)
+ return (
+ a &&
+ (null == (t = o['x-parentRefs']) ||
+ t.push(...(s['x-parentRefs'] || []), a)),
+ { $ref: a, refsStack: pc(i, a), schema: s }
+ );
+ })
+ .filter((e) => void 0 !== e);
+ for (const { schema: e, refsStack: n } of i) {
+ const i = 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
+ } = i,
+ v = uc(i, [
+ 'type',
+ 'enum',
+ 'properties',
+ 'items',
+ 'required',
+ 'title',
+ 'description',
+ 'readOnly',
+ 'writeOnly',
+ 'oneOf',
+ 'anyOf',
+ 'x-circular-ref'
+ ]);
+ if (
+ (o.type !== a &&
+ void 0 !== o.type &&
+ void 0 !== a &&
+ console.warn(
+ `Incompatible types in allOf at "${t}": "${o.type}" and "${a}"`
+ ),
+ void 0 !== a &&
+ (Array.isArray(a) && Array.isArray(o.type)
+ ? (o.type = [...a, ...o.type])
+ : (o.type = a)),
+ void 0 !== s &&
+ (Array.isArray(s) && Array.isArray(o.enum)
+ ? (o.enum = Array.from(new Set([...s, ...o.enum])))
+ : (o.enum = s)),
+ void 0 !== l && 'object' == typeof l)
+ ) {
+ o.properties = o.properties || {};
+ for (const e in l) {
+ const i = dc(
+ n,
+ null == (r = l[e]) ? void 0 : r['x-refsStack']
+ );
+ if (o.properties[e]) {
+ if (!y) {
+ const n = this.mergeAllOf(
+ { allOf: [o.properties[e], l[e]], 'x-refsStack': i },
+ t + '/properties/' + e,
+ i
+ );
+ o.properties[e] = n;
+ }
+ } else
+ o.properties[e] = cc(lc({}, l[e]), { 'x-refsStack': i });
+ }
+ }
+ if (void 0 !== c && !y) {
+ const r =
+ 'boolean' == typeof o.items
+ ? {}
+ : Object.assign({}, o.items),
+ i =
+ 'boolean' == typeof e.items
+ ? {}
+ : Object.assign({}, e.items);
+ o.items = this.mergeAllOf({ allOf: [r, i] }, t + '/items', n);
+ }
+ void 0 !== m && (o.oneOf = m),
+ void 0 !== g && (o.anyOf = g),
+ void 0 !== u && (o.required = [...(o.required || []), ...u]),
+ (o = lc(
+ cc(lc({}, o), {
+ title: o.title || p,
+ description: o.description || d,
+ readOnly: void 0 !== o.readOnly ? o.readOnly : f,
+ writeOnly: void 0 !== o.writeOnly ? o.writeOnly : h,
+ 'x-circular-ref': o['x-circular-ref'] || y
+ }),
+ v
+ ));
+ }
+ return o;
+ }
+ findDerived(e) {
+ const t = {},
+ n = (this.spec.components && this.spec.components.schemas) || {};
+ for (const r in n) {
+ const { resolved: o } = this.deref(n[r]);
+ void 0 !== o.allOf &&
+ o.allOf.find(
+ (t) => void 0 !== t.$ref && e.indexOf(t.$ref) > -1
+ ) &&
+ (t['#/components/schemas/' + r] = [
+ o['x-discriminator-value'] || r
+ ]);
+ }
+ return t;
+ }
+ hoistOneOfs(e) {
+ if (void 0 === e.allOf) return e;
+ const t = e.allOf;
+ for (let e = 0; e < t.length; e++) {
+ const n = t[e];
+ if (Array.isArray(n.oneOf)) {
+ const r = t.slice(0, e),
+ o = t.slice(e + 1);
+ return {
+ oneOf: n.oneOf.map((e) => ({ allOf: [...r, e, ...o] }))
+ };
+ }
+ }
+ return e;
+ }
+ }
+ var hc = Object.defineProperty,
+ mc = Object.defineProperties,
+ gc = Object.getOwnPropertyDescriptor,
+ yc = Object.getOwnPropertyDescriptors,
+ vc = Object.getOwnPropertySymbols,
+ bc = Object.prototype.hasOwnProperty,
+ wc = Object.prototype.propertyIsEnumerable,
+ xc = (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) && xc(e, n, t[n]);
+ if (vc) for (var n of vc(t)) wc.call(t, n) && xc(e, n, t[n]);
+ return e;
+ },
+ _c = (e, t) => mc(e, yc(t)),
+ Oc = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? gc(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && hc(t, n, i), i;
+ };
+ const Sc = class {
+ constructor(e, t, n, r, o = !1, i = []) {
+ (this.options = r),
+ (this.refsStack = i),
+ (this.typePrefix = ''),
+ (this.isCircular = !1),
+ (this.activeOneOf = 0),
+ tn(this),
+ (this.pointer = t.$ref || n || '');
+ const { resolved: a, refsStack: s } = e.deref(t, i, !0);
+ (this.refsStack = pc(s, this.pointer)),
+ (this.rawSchema = a),
+ (this.schema = e.mergeAllOf(
+ this.rawSchema,
+ this.pointer,
+ this.refsStack
+ )),
+ this.init(e, o),
+ r.showExtensions &&
+ (this.extensions = gs(this.schema, r.showExtensions));
+ }
+ activateOneOf(e) {
+ this.activeOneOf = e;
+ }
+ hasType(e) {
+ return this.type === e || (io(this.type) && this.type.includes(e));
+ }
+ init(e, t) {
+ var n, r, o, i, a, s, l, c;
+ const u = this.schema;
+ if (
+ ((this.isCircular = !!u['x-circular-ref']),
+ (this.title =
+ u.title ||
+ (ss(this.pointer) && Da.baseName(this.pointer)) ||
+ ''),
+ (this.description = u.description || ''),
+ (this.type =
+ u.type ||
+ (function (e) {
+ if (void 0 !== e.type && !io(e.type)) return e.type;
+ const t = Object.keys(Ja);
+ for (const n of t) {
+ const t = Ja[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 = us(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']) &&
+ (io(this.type) &&
+ !this.type.some((e) => null === e || 'null' === e)
+ ? (this.type = [...this.type, 'null'])
+ : io(this.type) ||
+ (null === this.type && 'null' === this.type) ||
+ (this.type = [this.type, 'null'])),
+ (this.displayType = io(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 === Ac(u)) {
+ if (
+ (t &&
+ io(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 = Pc(
+ e,
+ u,
+ this.pointer,
+ this.options,
+ this.refsStack
+ );
+ else if (
+ this.hasType('array') &&
+ (io(u.items) || io(u.prefixItems)
+ ? (this.fields = Pc(
+ e,
+ u,
+ this.pointer,
+ this.options,
+ this.refsStack
+ ))
+ : u.items &&
+ (this.items = new Sc(
+ e,
+ u.items,
+ this.pointer + '/items',
+ this.options,
+ !1,
+ this.refsStack
+ )),
+ (this.displayType =
+ u.prefixItems || io(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 == (o = this.items) ? void 0 : o.typePrefix) ||
+ '' + lo('arrayOf')),
+ (this.title =
+ this.title ||
+ (null == (i = this.items) ? void 0 : i.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),
+ io(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: o } = t.deref(
+ e,
+ this.refsStack,
+ !0
+ ),
+ i = t.mergeAllOf(r, this.pointer + '/oneOf/' + n, o),
+ a =
+ ss(e.$ref) && !i.title
+ ? Da.baseName(e.$ref)
+ : `${i.title || ''}${(i.const && JSON.stringify(i.const)) || ''}`;
+ return new Sc(
+ t,
+ _c(kc({}, i), {
+ title: a,
+ allOf: [
+ _c(kc({}, this.schema), { oneOf: void 0, anyOf: void 0 })
+ ]
+ }),
+ e.$ref || this.pointer + '/oneOf/' + n,
+ this.options,
+ !1,
+ o
+ );
+ })),
+ 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 = Ac(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 = Da.baseName(t.$ref);
+ r[t.$ref] = e;
+ }
+ const o = n.mapping || {};
+ let i = n['x-explicitMappingOnly'] || !1;
+ 0 === Object.keys(o).length && (i = !1);
+ const a = {};
+ for (const e in o) {
+ const t = o[e];
+ io(a[t]) ? a[t].push(e) : (a[t] = [e]);
+ }
+ const s = kc(i ? {} : kc({}, r), a);
+ let l = [];
+ for (const e of Object.keys(s)) {
+ const t = s[e];
+ if (io(t)) for (const n of t) l.push({ $ref: e, name: n });
+ else l.push({ $ref: e, name: t });
+ }
+ const c = Object.keys(o);
+ 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 Sc(
+ 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: o = {}, then: i = {} } = 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 && wc.call(e, r) && (n[r] = e[r]);
+ return n;
+ })(n, ['if', 'else', 'then']),
+ s = [
+ {
+ allOf: [a, i, r],
+ title:
+ (r && r['x-displayName']) ||
+ (null == r ? void 0 : r.title) ||
+ 'case 1'
+ },
+ {
+ allOf: [a, o],
+ title:
+ (o && o['x-displayName']) ||
+ (null == o ? void 0 : o.title) ||
+ 'case 2'
+ }
+ ];
+ (this.oneOf = s.map(
+ (e, n) =>
+ new Sc(
+ t,
+ kc({}, e),
+ this.pointer + '/oneOf/' + n,
+ this.options,
+ !1,
+ this.refsStack
+ )
+ )),
+ (this.oneOfType = 'One of');
+ }
+ };
+ let Ec = Sc;
+ function Pc(e, t, n, r, o) {
+ const i = 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(i || []).map((a) => {
+ let s = i[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: _c(kc({}, s), {
+ default: void 0 === s.default && c ? c[a] : s.default
+ })
+ },
+ n + '/properties/' + a,
+ r,
+ o
+ );
+ });
+ return (
+ r.sortPropsAlphabetically && (u = ds(u, 'name')),
+ r.requiredPropsFirst &&
+ (u = ps(u, r.sortPropsAlphabetically ? void 0 : t.required)),
+ u.push(
+ ...Object.keys(a).map((t) => {
+ let i = a[t];
+ return (
+ i ||
+ (console.warn(
+ `Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof i} at "${n}"`
+ ),
+ (i = {})),
+ new Nc(
+ e,
+ {
+ name: t,
+ required: !1,
+ schema: i,
+ kind: 'patternProperties'
+ },
+ `${n}/patternProperties/${t}`,
+ r,
+ o
+ )
+ );
+ })
+ ),
+ ('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,
+ o
+ )
+ ),
+ u.push(
+ ...(function ({
+ parser: e,
+ schema: t = !1,
+ fieldsCount: n,
+ $ref: r,
+ options: o,
+ refsStack: i
+ }) {
+ return ao(t)
+ ? t
+ ? [
+ new Nc(
+ e,
+ { name: `[${n}...]`, schema: {} },
+ `${r}/additionalItems`,
+ o,
+ i
+ )
+ ]
+ : []
+ : io(t)
+ ? [
+ ...t.map(
+ (t, a) =>
+ new Nc(
+ e,
+ { name: `[${n + a}]`, schema: t },
+ `${r}/additionalItems`,
+ o,
+ i
+ )
+ )
+ ]
+ : eo(t)
+ ? [
+ new Nc(
+ e,
+ { name: `[${n}...]`, schema: t },
+ `${r}/additionalItems`,
+ o,
+ i
+ )
+ ]
+ : [];
+ })({
+ parser: e,
+ schema: l,
+ fieldsCount: u.length,
+ $ref: n,
+ options: r,
+ refsStack: o
+ })
+ ),
+ u
+ );
+ }
+ function Ac(e) {
+ return e.discriminator || e['x-discriminator'];
+ }
+ Oc([Ae], Ec.prototype, 'activeOneOf', 2),
+ Oc([Pt], Ec.prototype, 'activateOneOf', 1);
+ const $c = {};
+ class Cc {
+ constructor(e, t, n, r) {
+ this.mime = n;
+ const { resolved: o } = e.deref(t);
+ (this.value = o.value),
+ (this.summary = o.summary),
+ (this.description = o.description),
+ o.externalValue &&
+ (this.externalValueUrl = new URL(
+ o.externalValue,
+ e.specUrl
+ ).href),
+ 'application/x-www-form-urlencoded' === n &&
+ this.value &&
+ 'object' == typeof this.value &&
+ (this.value = (function (e, t = {}) {
+ if (io(e))
+ throw new Error(
+ 'Payload must have fields: ' + e.toString()
+ );
+ return Object.keys(e)
+ .map((n) => {
+ const r = e[n],
+ { style: o = 'form', explode: i = !0 } = t[n] || {};
+ switch (o) {
+ case 'form':
+ return rs(n, i, r);
+ case 'spaceDelimited':
+ return ts(r, n, '%20');
+ case 'pipeDelimited':
+ return ts(r, n, '|');
+ case 'deepObject':
+ return ns(r, n);
+ default:
+ return (
+ console.warn(
+ 'Incorrect or unsupported encoding style: ' + o
+ ),
+ ''
+ );
+ }
+ })
+ .join('&');
+ })(this.value, r));
+ }
+ getExternalValue(e) {
+ return this.externalValueUrl
+ ? (this.externalValueUrl in $c ||
+ ($c[this.externalValueUrl] = fetch(
+ this.externalValueUrl
+ ).then((t) =>
+ t.text().then((n) => {
+ if (!t.ok) return Promise.reject(new Error(n));
+ if (!es(e)) return n;
+ try {
+ return JSON.parse(n);
+ } catch (e) {
+ return n;
+ }
+ })
+ )),
+ $c[this.externalValueUrl])
+ : Promise.resolve(void 0);
+ }
+ }
+ var Rc = Object.defineProperty,
+ jc = Object.getOwnPropertyDescriptor,
+ Tc = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? jc(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && Rc(t, n, i), i;
+ };
+ const Ic = {
+ 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, o) {
+ var i, a, s, l, c;
+ (this.expanded = void 0), tn(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 Ec(e, p || {}, n, r, !1, o)),
+ (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 = io(t)
+ ? t
+ : Qr(t, (t, n) => new Cc(e, t, n, u.encoding));
+ }
+ d
+ ? (this.serializationMime = d)
+ : u.style
+ ? (this.style = u.style)
+ : this.in &&
+ (this.style =
+ null != (a = null == (i = Ic[this.in]) ? void 0 : i.style)
+ ? a
+ : 'form'),
+ void 0 === u.explode && this.in
+ ? (this.explode =
+ null ==
+ (l = null == (s = Ic[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 = gs(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 Dc(e) {
+ return e < 10 ? '0' + e : e;
+ }
+ function Lc(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 o = e[r],
+ i = n[r];
+ t(o) && t(i) ? (e[r] = Mc(o, i)) : (e[r] = i);
+ }),
+ 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();
+ }
+ Tc([Ae], Nc.prototype, 'expanded', 2),
+ Tc([Pt], Nc.prototype, 'toggle', 1),
+ Tc([Pt], Nc.prototype, 'collapse', 1),
+ Tc([Pt], 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 Vc(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],
+ o = Uc[r];
+ if (void 0 !== e[r]) return o;
+ }
+ return null;
+ }
+ let Bc = {},
+ qc = [];
+ 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 (qc.includes(e)) return Fc(Vc(e));
+ qc.push(e);
+ }
+ if (r && r.depth > t.maxSampleDepth) return zc(qc, r), Fc(Vc(e));
+ if (e.$ref) {
+ if (!n)
+ throw new Error(
+ 'Your schema contains $ref. You must provide full specification in the third parameter.'
+ );
+ let o = decodeURIComponent(e.$ref);
+ o.startsWith('#') && (o = o.substring(1));
+ const i = Ia().get(n, o);
+ let a;
+ return (
+ !0 !== Bc[o]
+ ? ((Bc[o] = !0), (a = Yc(i, t, n, r)), (Bc[o] = !1))
+ : (a = Fc(Vc(i))),
+ zc(qc, r),
+ a
+ );
+ }
+ if (void 0 !== e.example)
+ return (
+ zc(qc, r),
+ {
+ value: e.example,
+ readOnly: e.readOnly,
+ writeOnly: e.writeOnly,
+ type: e.type
+ }
+ );
+ if (void 0 !== e.allOf)
+ return (
+ zc(qc, r),
+ Hc(e) ||
+ (function (e, t, n, r, o) {
+ let i = Yc(e, n, r);
+ const a = [];
+ for (let e of t) {
+ const {
+ type: t,
+ readOnly: s,
+ writeOnly: l,
+ value: c
+ } = Yc({ type: i.type, ...e }, n, r, o);
+ i.type &&
+ t &&
+ t !== i.type &&
+ (console.warn(
+ "allOf: schemas with different types can't be merged"
+ ),
+ (i.type = t)),
+ (i.type = i.type || t),
+ (i.readOnly = i.readOnly || s),
+ (i.writeOnly = i.writeOnly || l),
+ null != c && a.push(c);
+ }
+ if ('object' === i.type)
+ return (
+ (i.value = Mc(
+ i.value || {},
+ ...a.filter((e) => 'object' == typeof e)
+ )),
+ i
+ );
+ {
+ 'array' === i.type &&
+ (n.quiet ||
+ console.warn(
+ 'OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'
+ ));
+ const e = a[a.length - 1];
+ return (i.value = null != e ? e : i.value), i;
+ }
+ })({ ...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(qc, r),
+ a(
+ e,
+ Object.assign(
+ { readOnly: e.readOnly, writeOnly: e.writeOnly },
+ e.oneOf[0]
+ )
+ )
+ );
+ if (e.anyOf && e.anyOf.length)
+ return (
+ zc(qc, r),
+ a(
+ e,
+ Object.assign(
+ { readOnly: e.readOnly, writeOnly: e.writeOnly },
+ e.anyOf[0]
+ )
+ )
+ );
+ if (e.if && e.then) {
+ zc(qc, r);
+ const { if: o, then: i, ...a } = e;
+ return Yc(Mc(a, o, i), t, n, r);
+ }
+ let o = Wc(e),
+ i = null;
+ if (void 0 === o) {
+ (o = null),
+ (i = e.type),
+ Array.isArray(i) && e.type.length > 0 && (i = e.type[0]),
+ i || (i = Vc(e));
+ let a = Jc[i];
+ a && (o = a(e, t, n, r));
+ }
+ return (
+ zc(qc, r),
+ { value: o, readOnly: e.readOnly, writeOnly: e.writeOnly, type: i }
+ );
+ function a(e, o) {
+ const i = Hc(e);
+ if (void 0 !== i) return i;
+ const a = Yc({ ...e, oneOf: void 0, anyOf: void 0 }, t, n, r),
+ s = Yc(o, 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 Kc(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 o = (function (e, t, n, r) {
+ var o = n
+ ? ''
+ : e.getUTCFullYear() +
+ '-' +
+ Dc(e.getUTCMonth() + 1) +
+ '-' +
+ Dc(e.getUTCDate());
+ return (
+ t ||
+ (o +=
+ 'T' +
+ Dc(e.getUTCHours()) +
+ ':' +
+ Dc(e.getUTCMinutes()) +
+ ':' +
+ Dc(e.getUTCSeconds()) +
+ 'Z'),
+ o
+ );
+ })(new Date('2019-08-24T14:15:22.123Z'), n, r);
+ return (
+ o.length < e &&
+ console.warn(
+ `Using minLength = ${e} is incorrect with format "date-time"`
+ ),
+ t &&
+ o.length > t &&
+ console.warn(
+ `Using maxLength = ${t} is incorrect with format "date-time"`
+ ),
+ o
+ );
+ }
+ function Qc(e, t) {
+ let n = Lc('string', e);
+ return t && n.length > t && (n = n.substring(0, t)), n;
+ }
+ const Xc = {
+ email: function () {
+ return 'user@example.com';
+ },
+ 'idn-email': function () {
+ return 'пошта@укр.нет';
+ },
+ password: function (e, t) {
+ let n = 'pa$$word';
+ return (
+ e > n.length &&
+ ((n += '_'),
+ (n += Lc('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';
+ },
+ 'iri-reference': function () {
+ return '../словник';
+ },
+ 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')),
+ (o = (function (e, t, n, r) {
+ return function () {
+ var o = ((e |= 0) - (((t |= 0) << 27) | (t >>> 5))) | 0;
+ return (
+ (e = t ^ (((n |= 0) << 17) | (n >>> 15))),
+ (t = (n + (r |= 0)) | 0),
+ (n = (r + o) | 0),
+ ((r = (e + o) | 0) >>> 0) / 4294967296
+ );
+ };
+ })(r, r, r, r)),
+ 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (e) => {
+ var t = (16 * o()) % 16 | 0;
+ return ('x' == e ? t : (3 & t) | 8).toString(16);
+ })
+ );
+ var r, o;
+ },
+ default: Qc,
+ 'json-pointer': function () {
+ return '/json/pointer';
+ },
+ 'relative-json-pointer': function () {
+ return '1/relative/json/pointer';
+ },
+ regex: function () {
+ return '/regex/';
+ }
+ };
+ var Jc = {};
+ const Zc = { skipReadOnly: !1, maxSampleDepth: 15 };
+ function eu(e, t, n) {
+ let r = Object.assign({}, Zc, t);
+ return (Bc = {}), (qc = []), Yc(e, r, n).value;
+ }
+ function tu(e, t) {
+ Jc[e] = t;
+ }
+ tu('array', function (e, t = {}, n, r) {
+ const o = (r && r.depth) || 1;
+ let i = Math.min(
+ null != e.maxItems ? e.maxItems : 1 / 0,
+ e.minItems || 1
+ );
+ const a = e.prefixItems || e.items || e.contains;
+ Array.isArray(a) && (i = Math.max(i, a.length));
+ let s = [];
+ if (!a) return s;
+ for (let e = 0; e < i; e++) {
+ let r = ((l = e), Array.isArray(a) ? a[l] || {} : a || {}),
+ { value: i } = Yc(r, t, n, { depth: o + 1 });
+ s.push(i);
+ }
+ var l;
+ return s;
+ }),
+ tu('boolean', function (e) {
+ return !0;
+ }),
+ tu('integer', Kc),
+ tu('number', Kc),
+ tu('object', function (e, t = {}, n, r) {
+ let o = {};
+ const i = (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: i + 1
+ });
+ (t.skipReadOnly && s.readOnly) ||
+ (t.skipWriteOnly && s.writeOnly) ||
+ (o[a] = s.value);
+ });
+ }
+ if (e && 'object' == typeof e.additionalProperties) {
+ const r =
+ e.additionalProperties['x-additionalPropertiesName'] ||
+ 'property';
+ (o[`${String(r)}1`] = Yc(e.additionalProperties, t, n, {
+ depth: i + 1
+ }).value),
+ (o[`${String(r)}2`] = Yc(e.additionalProperties, t, n, {
+ depth: i + 1
+ }).value);
+ }
+ return o;
+ }),
+ tu('string', function (e, t, n, r) {
+ let o = e.format || 'default',
+ i = Xc[o] || Qc,
+ a = r && r.propertyName;
+ return i(0 | e.minLength, e.maxLength, a);
+ });
+ class nu {
+ constructor(e, t, n, r, o) {
+ (this.name = t),
+ (this.isRequestType = n),
+ (this.schema = r.schema && new Ec(e, r.schema, '', o)),
+ (this.onlyRequiredInSamples = o.onlyRequiredInSamples),
+ (this.generatedPayloadSamplesMaxDepth =
+ o.generatedPayloadSamplesMaxDepth),
+ void 0 !== r.examples
+ ? (this.examples = Qr(
+ r.examples,
+ (n) => new Cc(e, n, t, r.encoding)
+ ))
+ : void 0 !== r.example
+ ? (this.examples = {
+ default: new Cc(
+ e,
+ { value: e.deref(r.example).resolved },
+ t,
+ r.encoding
+ )
+ })
+ : es(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 o = eu(r.rawSchema, n, e.spec);
+ this.schema.discriminatorProp &&
+ 'object' == typeof o &&
+ o &&
+ (o[this.schema.discriminatorProp] = r.title),
+ (this.examples[r.title] = new Cc(
+ e,
+ { value: o },
+ this.name,
+ t.encoding
+ ));
+ }
+ } else
+ this.schema &&
+ (this.examples = {
+ default: new Cc(
+ e,
+ { value: eu(t.schema, n, e.spec) },
+ this.name,
+ t.encoding
+ )
+ });
+ }
+ }
+ var ru = Object.defineProperty,
+ ou = Object.getOwnPropertyDescriptor,
+ iu = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? ou(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && ru(t, n, i), i;
+ };
+ class au {
+ constructor(e, t, n, r) {
+ (this.isRequestType = n),
+ (this.activeMimeIdx = 0),
+ tn(this),
+ r.unstable_ignoreMimeParameters &&
+ (t = (function (e) {
+ const t = {};
+ return (
+ Object.keys(e).forEach((n) => {
+ const r = e[n],
+ o = n.split(';')[0].trim();
+ t[o] ? (t[o] = Ha(Ha({}, t[o]), r)) : (t[o] = r);
+ }),
+ t
+ );
+ })(t)),
+ (this.mediaTypes = Object.keys(t).map((o) => {
+ const i = t[o];
+ return new nu(e, o, n, i, r);
+ }));
+ }
+ activate(e) {
+ this.activeMimeIdx = e;
+ }
+ get active() {
+ return this.mediaTypes[this.activeMimeIdx];
+ }
+ get hasSample() {
+ return this.mediaTypes.filter((e) => !!e.examples).length > 0;
+ }
+ }
+ iu([Ae], au.prototype, 'activeMimeIdx', 2),
+ iu([Pt], au.prototype, 'activate', 1),
+ iu([je], au.prototype, 'active', 1);
+ class su {
+ constructor({ parser: e, infoOrRef: t, options: n, isEvent: r }) {
+ const o = !r,
+ { resolved: i } = e.deref(t);
+ (this.description = i.description || ''),
+ (this.required = !!i.required);
+ const a = (function (e) {
+ let t = e.content;
+ const n = e['x-examples'],
+ r = e['x-example'];
+ if (n) {
+ t = Ha({}, t);
+ for (const e of Object.keys(n)) {
+ const r = n[e];
+ t[e] = Ya(Ha({}, t[e]), { examples: r });
+ }
+ } else if (r) {
+ t = Ha({}, t);
+ for (const e of Object.keys(r)) {
+ const n = r[e];
+ t[e] = Ya(Ha({}, t[e]), { example: n });
+ }
+ }
+ return t;
+ })(i);
+ void 0 !== a && (this.content = new au(e, a, o, 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 o, i = r > 1 ? void 0 : r ? uu(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && lu(t, n, i), i;
+ };
+ class yu {
+ constructor({
+ parser: e,
+ code: t,
+ defaultAsError: n,
+ infoOrRef: r,
+ options: o,
+ isEvent: i
+ }) {
+ (this.expanded = !1),
+ (this.headers = []),
+ tn(this),
+ (this.expanded =
+ 'all' === o.expandResponses || o.expandResponses[t]);
+ const { resolved: a } = e.deref(r);
+ (this.code = t),
+ void 0 !== a.content &&
+ (this.content = new au(e, a.content, i, o)),
+ void 0 !== a['x-summary']
+ ? ((this.summary = a['x-summary']),
+ (this.description = a.description || ''))
+ : ((this.summary = a.description || ''),
+ (this.description = '')),
+ (this.type = Ga(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 }
+ ),
+ '',
+ o
+ );
+ })),
+ o.showExtensions && (this.extensions = gs(a, o.showExtensions));
+ }
+ toggle() {
+ this.expanded = !this.expanded;
+ }
+ }
+ gu([Ae], yu.prototype, 'expanded', 2),
+ gu([Pt], yu.prototype, 'toggle', 1);
+ var vu = Object.defineProperty,
+ bu = Object.getOwnPropertyDescriptor,
+ wu = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? bu(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && vu(t, n, i), i;
+ };
+ function xu(e) {
+ return 'payload' === e.lang && e.requestBodyContent;
+ }
+ let ku = !1;
+ class _u {
+ constructor(e, t, n, r, o = !1) {
+ var i;
+ (this.parser = e),
+ (this.operationSpec = t),
+ (this.options = r),
+ (this.type = 'operation'),
+ (this.items = []),
+ (this.ready = !0),
+ (this.active = !1),
+ (this.expanded = !1),
+ tn(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 = o),
+ (this.isWebhook = t.isWebhook),
+ (this.isEvent = this.isCallback || this.isWebhook),
+ (this.name =
+ (i = t).summary ||
+ i.operationId ||
+ (i.description && i.description.substring(0, 50)) ||
+ i.pathName ||
+ ''),
+ (this.sidebarLabel =
+ r.sideNavStyle === co.IdOnly
+ ? this.operationId || this.path
+ : r.sideNavStyle === co.PathOnly
+ ? this.path
+ : this.name),
+ this.isCallback
+ ? ((this.security = (t.security || []).map(
+ (t) => new Vl(t, e)
+ )),
+ (this.servers = fs('', 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 Vl(t, e)
+ )),
+ (this.servers = fs(
+ e.specUrl,
+ t.servers || t.pathServers || e.spec.servers || []
+ ))),
+ r.showExtensions && (this.extensions = gs(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() {
+ let e =
+ 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 t = this.requestBody && this.requestBody.content;
+ if (t && t.hasSample) {
+ const n = Math.min(e.length, this.options.payloadSampleIdx);
+ e = [
+ ...e.slice(0, n),
+ {
+ lang: 'payload',
+ label: 'Payload',
+ source: '',
+ requestBodyContent: t
+ },
+ ...e.slice(n)
+ ];
+ }
+ return e;
+ }
+ 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
+ ? ds(e, 'name')
+ : this.options.requiredPropsFirst
+ ? ps(e)
+ : e;
+ }
+ get responses() {
+ let e = !1;
+ return Object.keys(this.operationSpec.responses || [])
+ .filter((t) => {
+ return (
+ 'default' === t ||
+ ('success' === Ga(t) && (e = !0),
+ 'default' === (n = t) || Jr(n) || Ka(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
+ )
+ );
+ }
+ }
+ wu([Ae], _u.prototype, 'ready', 2),
+ wu([Ae], _u.prototype, 'active', 2),
+ wu([Ae], _u.prototype, 'expanded', 2),
+ wu([Pt], _u.prototype, 'activate', 1),
+ wu([Pt], _u.prototype, 'deactivate', 1),
+ wu([Pt], _u.prototype, 'toggle', 1),
+ wu([$s], _u.prototype, 'requestBody', 1),
+ wu([$s], _u.prototype, 'codeSamples', 1),
+ wu([$s], _u.prototype, 'parameters', 1),
+ wu([$s], _u.prototype, 'responses', 1),
+ wu([$s], _u.prototype, 'callbacks', 1);
+ const Ou = ga.div`
+ width: calc(100% - ${(e) => e.theme.rightPanel.width});
+ padding: 0 ${(e) => e.theme.spacing.sectionHorizontal}px;
+
+ ${({ compact: e, theme: t }) => ma('medium', !0)`
+ width: 100%;
+ padding: ${`${e ? 0 : t.spacing.sectionVertical}px ${t.spacing.sectionHorizontal}px`};
+ `};
+`,
+ Su = ga.div.attrs((e) => ({ [gf]: e.id }))`
+ padding: ${(e) => e.theme.spacing.sectionVertical}px 0;
+
+ &:last-child {
+ min-height: calc(100vh + 1px);
+ }
+
+ & > &:last-child {
+ min-height: initial;
+ }
+
+ ${ma('medium', !0)`
+ padding: 0;
+ `}
+ ${(e) => (e.underlined ? "\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 " : '')}
+`,
+ Eu = ga.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;
+
+ ${ma('medium', !0)`
+ width: 100%;
+ padding: ${(e) => `${e.theme.spacing.sectionVertical}px ${e.theme.spacing.sectionHorizontal}px`};
+ `};
+`,
+ Pu = ga(Eu)`
+ background-color: ${(e) => e.theme.rightPanel.backgroundColor};
+`,
+ Au = ga.div`
+ display: flex;
+ width: 100%;
+ padding: 0;
+
+ ${ma('medium', !0)`
+ flex-direction: column;
+ `};
+`,
+ $u = { 1: '1.85714em', 2: '1.57143em', 3: '1.27em' },
+ Cu = (e) => pa`
+ font-family: ${({ theme: e }) => e.typography.headings.fontFamily};
+ font-weight: ${({ theme: e }) => e.typography.headings.fontWeight};
+ font-size: ${$u[e]};
+ line-height: ${({ theme: e }) => e.typography.headings.lineHeight};
+`,
+ Ru = ga.h1`
+ ${Cu(1)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+
+ ${ya('H1')};
+`,
+ ju = ga.h2`
+ ${Cu(2)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+ margin: 0 0 20px;
+
+ ${ya('H2')};
+`,
+ Tu =
+ (ga.h2`
+ ${Cu(3)};
+ color: ${({ theme: e }) => e.colors.text.primary};
+
+ ${ya('H3')};
+`,
+ ga.h3`
+ color: ${({ theme: e }) => e.rightPanel.textColor};
+
+ ${ya('RightPanelHeader')};
+`),
+ Iu = ga.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;
+
+ ${ya('UnderlinedHeader')};
+`,
+ Nu = (0, n.createContext)(void 0),
+ { Provider: Du, Consumer: Lu } = Nu;
+ function Mu(e) {
+ const {
+ spec: t,
+ specUrl: o,
+ options: i,
+ 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 || o) {
+ c(null);
+ try {
+ const e = yield (function (e) {
+ return (
+ (t = this),
+ (n = function* () {
+ const t = new $a.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: o }
+ } = yield (0, Aa.bundle)(n);
+ return void 0 !== o.swagger
+ ? ((i = o),
+ console.warn(
+ '[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0'
+ ),
+ new Promise((e, t) =>
+ (0, Ca.convertObj)(
+ i,
+ {
+ patch: !0,
+ warnOnly: !0,
+ text: '{}',
+ anchors: !0
+ },
+ (n, r) => {
+ if (n) return t(n);
+ e(r && r.openapi);
+ }
+ )
+ ))
+ : o;
+ var i;
+ }),
+ new Promise((e, r) => {
+ var o = (e) => {
+ try {
+ a(n.next(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ i = (e) => {
+ try {
+ a(n.throw(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ a = (t) =>
+ t.done
+ ? e(t.value)
+ : Promise.resolve(t.value).then(o, i);
+ a((n = n.apply(t, null)).next());
+ })
+ );
+ var t, n;
+ })(t || o);
+ c(e);
+ } catch (e) {
+ throw (p(e), e);
+ }
+ }
+ }),
+ new Promise((t, r) => {
+ var o = (e) => {
+ try {
+ a(n.next(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ i = (e) => {
+ try {
+ a(n.throw(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ a = (e) =>
+ e.done ? t(e.value) : Promise.resolve(e.value).then(o, i);
+ a((n = n.apply(e, null)).next());
+ })
+ );
+ var e, n;
+ })();
+ }, [t, o]);
+ const d = n.useMemo(() => {
+ if (!l) return null;
+ try {
+ return new ey(l, o, i);
+ } catch (e) {
+ throw (a && a(e), e);
+ }
+ }, [l, o, i]);
+ return (
+ n.useEffect(() => {
+ d && a && a();
+ }, [d, a]),
+ s({ loading: !d, store: d })
+ );
+ }
+ const Fu = (e) => pa`
+ ${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 = ga(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 Vu = { left: '90deg', right: '-90deg', up: '-180deg', down: '0' },
+ Bu = ga((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) => Vu[e.direction || 'down']});
+
+ polygon {
+ fill: ${({ color: e, theme: t }) => (e && t.colors.responses[e] && t.colors.responses[e].color) || e};
+ }
+`,
+ qu = ga.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 = pa`
+ text-decoration: line-through;
+ color: #707070;
+`,
+ Hu = ga.caption`
+ text-align: right;
+ font-size: 0.9em;
+ font-weight: normal;
+ color: ${(e) => e.theme.colors.text.secondary};
+`,
+ Yu = ga.td`
+ border-left: 1px solid ${(e) => e.theme.schema.linesColor};
+ box-sizing: border-box;
+ position: relative;
+ padding: 10px 10px 10px 0;
+
+ ${ma('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;
+ }
+`,
+ Ku = ga(Yu)`
+ padding: 0;
+`,
+ Gu = ga(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 &&
+ pa`
+ > 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')};
+
+ ${ya('PropertyNameCell')};
+`,
+ Qu = ga.td`
+ border-bottom: 1px solid #9fb4be;
+ padding: 10px 0;
+ width: ${(e) => e.theme.schema.defaultDetailsWidth};
+ box-sizing: border-box;
+
+ tr.expanded & {
+ border-bottom: none;
+ }
+
+ ${ma('small')`
+ padding: 0 20px;
+ border-bottom: none;
+ border-left: 1px solid ${(e) => e.theme.schema.linesColor};
+
+ tr.last > & {
+ border-left: none;
+ }
+ `}
+
+ ${ya('PropertyDetailsCell')};
+`,
+ Xu = ga.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;
+ }
+`,
+ Ju = ga.div`
+ padding: ${({ theme: e }) => e.schema.nestingSpacing};
+`,
+ Zu = ga.table`
+ border-collapse: separate;
+ border-radius: 3px;
+ font-size: ${(e) => e.theme.typography.fontSize};
+
+ border-spacing: 0;
+ width: 100%;
+
+ > tr {
+ vertical-align: middle;
+ }
+
+ ${ma('small')`
+ display: block;
+ > tr, > tbody > tr {
+ display: block;
+ }
+ `}
+
+ ${ma('small', !1, ' and (-ms-high-contrast:none)')`
+ td {
+ float: left;
+ width: 100%;
+ }
+ `}
+
+ &
+ ${Ju},
+ &
+ ${Ju}
+ ${Ju}
+ ${Ju},
+ &
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju} {
+ margin: ${({ theme: e }) => e.schema.nestingSpacing};
+ margin-right: 0;
+ background: ${({ theme: e }) => e.schema.nestedBackground};
+ }
+
+ &
+ ${Ju}
+ ${Ju},
+ &
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju},
+ &
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju}
+ ${Ju} {
+ background: #ffffff;
+ }
+`,
+ ep = ga.div`
+ margin: 0 0 3px 0;
+ display: inline-block;
+`,
+ tp = ga.span`
+ font-size: 0.9em;
+ margin-right: 10px;
+ color: ${(e) => e.theme.colors.primary.main};
+ font-family: ${(e) => e.theme.typography.headings.fontFamily};
+}
+`,
+ np = ga.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: ${Rr(0.15, e.theme.colors.primary.main)};\n }\n ` : `\n color: ${e.theme.colors.primary.main};\n background-color: white;\n `)}
+`,
+ rp = ga.div`
+ font-size: 0.9em;
+ font-family: ${(e) => e.theme.typography.code.fontFamily};
+ &::after {
+ content: ' [';
+ }
+`,
+ op = ga.div`
+ font-size: 0.9em;
+ font-family: ${(e) => e.theme.typography.code.fontFamily};
+ &::after {
+ content: ']';
+ }
+`;
+ function ip(e) {
+ return function (t) {
+ return !!t.type && t.type.tabsRole === e;
+ };
+ }
+ var ap = ip('Tab'),
+ sp = ip('TabList'),
+ lp = ip('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,
+ mp = 0;
+ function gp() {
+ return 'react-tabs-' + mp++;
+ }
+ function yp(e) {
+ var t = 0;
+ return (
+ pp(e, function (e) {
+ ap(e) && t++;
+ }),
+ t
+ );
+ }
+ function vp() {
+ return (
+ (vp =
+ 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;
+ }),
+ vp.apply(this, arguments)
+ );
+ }
+ function bp(e, t) {
+ return (
+ (bp =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ bp(e, t)
+ );
+ }
+ function wp(e) {
+ return e && 'getAttribute' in e;
+ }
+ function xp(e) {
+ return wp(e) && 'tab' === e.getAttribute('role');
+ }
+ function kp(e) {
+ return wp(e) && 'true' === e.getAttribute('aria-disabled');
+ }
+ var _p = (function (e) {
+ var t, r;
+ function o() {
+ for (
+ var t, n = arguments.length, r = new Array(n), o = 0;
+ o < n;
+ o++
+ )
+ r[o] = arguments[o];
+ return (
+ ((t = e.call.apply(e, [this].concat(r)) || this).tabNodes = []),
+ (t.handleKeyDown = function (e) {
+ var n = t.props,
+ r = n.direction,
+ o = n.disableUpDownKeys;
+ if (t.isTabFromContainer(e.target)) {
+ var i = t.props.selectedIndex,
+ a = !1,
+ s = !1;
+ (32 !== e.keyCode && 13 !== e.keyCode) ||
+ ((a = !0), (s = !1), t.handleClick(e)),
+ 37 === e.keyCode || (!o && 38 === e.keyCode)
+ ? ((i = 'rtl' === r ? t.getNextTab(i) : t.getPrevTab(i)),
+ (a = !0),
+ (s = !0))
+ : 39 === e.keyCode || (!o && 40 === e.keyCode)
+ ? ((i =
+ 'rtl' === r ? t.getPrevTab(i) : t.getNextTab(i)),
+ (a = !0),
+ (s = !0))
+ : 35 === e.keyCode
+ ? ((i = t.getLastTab()), (a = !0), (s = !0))
+ : 36 === e.keyCode &&
+ ((i = t.getFirstTab()), (a = !0), (s = !0)),
+ a && e.preventDefault(),
+ s && t.setSelected(i, e);
+ }
+ }),
+ (t.handleClick = function (e) {
+ var n = e.target;
+ do {
+ if (t.isTabFromContainer(n)) {
+ if (kp(n)) return;
+ var r = [].slice
+ .call(n.parentNode.children)
+ .filter(xp)
+ .indexOf(n);
+ return void t.setSelected(r, e);
+ }
+ } while (null != (n = n.parentNode));
+ }),
+ t
+ );
+ }
+ (r = e),
+ ((t = o).prototype = Object.create(r.prototype)),
+ (t.prototype.constructor = t),
+ bp(t, r);
+ var i = o.prototype;
+ return (
+ (i.setSelected = function (e, t) {
+ if (!(e < 0 || e >= this.getTabsCount())) {
+ var n = this.props;
+ (0, n.onSelect)(e, n.selectedIndex, t);
+ }
+ }),
+ (i.getNextTab = function (e) {
+ for (var t = this.getTabsCount(), n = e + 1; n < t; n++)
+ if (!kp(this.getTab(n))) return n;
+ for (var r = 0; r < e; r++) if (!kp(this.getTab(r))) return r;
+ return e;
+ }),
+ (i.getPrevTab = function (e) {
+ for (var t = e; t--; ) if (!kp(this.getTab(t))) return t;
+ for (t = this.getTabsCount(); t-- > e; )
+ if (!kp(this.getTab(t))) return t;
+ return e;
+ }),
+ (i.getFirstTab = function () {
+ for (var e = this.getTabsCount(), t = 0; t < e; t++)
+ if (!kp(this.getTab(t))) return t;
+ return null;
+ }),
+ (i.getLastTab = function () {
+ for (var e = this.getTabsCount(); e--; )
+ if (!kp(this.getTab(e))) return e;
+ return null;
+ }),
+ (i.getTabsCount = function () {
+ return yp(this.props.children);
+ }),
+ (i.getPanelsCount = function () {
+ return (
+ (e = this.props.children),
+ (t = 0),
+ pp(e, function (e) {
+ lp(e) && t++;
+ }),
+ t
+ );
+ var e, t;
+ }),
+ (i.getTab = function (e) {
+ return this.tabNodes['tabs-' + e];
+ }),
+ (i.getChildren = function () {
+ var e = this,
+ t = 0,
+ r = this.props,
+ o = r.children,
+ i = r.disabledTabClassName,
+ a = r.focus,
+ s = r.forceRenderTabPanel,
+ l = r.selectedIndex,
+ c = r.selectedTabClassName,
+ u = r.selectedTabPanelClassName,
+ p = r.environment;
+ (this.tabIds = this.tabIds || []),
+ (this.panelIds = this.panelIds || []);
+ for (var d = this.tabIds.length - this.getTabsCount(); d++ < 0; )
+ this.tabIds.push(gp()), this.panelIds.push(gp());
+ return up(o, function (r) {
+ var o = r;
+ if (sp(r)) {
+ var d = 0,
+ f = !1;
+ null == hp &&
+ (function (e) {
+ var t =
+ e || ('undefined' != typeof window ? window : void 0);
+ try {
+ hp = !(
+ void 0 === t ||
+ !t.document ||
+ !t.document.activeElement
+ );
+ } catch (e) {
+ hp = !1;
+ }
+ })(p),
+ hp &&
+ (f = n.Children.toArray(r.props.children)
+ .filter(ap)
+ .some(function (t, n) {
+ var r =
+ p ||
+ ('undefined' != typeof window ? window : void 0);
+ return r && r.document.activeElement === e.getTab(n);
+ })),
+ (o = (0, n.cloneElement)(r, {
+ children: up(r.props.children, function (t) {
+ var r = 'tabs-' + d,
+ o = l === d,
+ s = {
+ tabRef: function (t) {
+ e.tabNodes[r] = t;
+ },
+ id: e.tabIds[d],
+ panelId: e.panelIds[d],
+ selected: o,
+ focus: o && (a || f)
+ };
+ return (
+ c && (s.selectedClassName = c),
+ i && (s.disabledClassName = i),
+ d++,
+ (0, n.cloneElement)(t, s)
+ );
+ })
+ }));
+ } else if (lp(r)) {
+ var h = {
+ id: e.panelIds[t],
+ tabId: e.tabIds[t],
+ selected: l === t
+ };
+ s && (h.forceRender = s),
+ u && (h.selectedClassName = u),
+ t++,
+ (o = (0, n.cloneElement)(r, h));
+ }
+ return o;
+ });
+ }),
+ (i.isTabFromContainer = function (e) {
+ if (!xp(e)) return !1;
+ var t = e.parentElement;
+ do {
+ if (t === this.node) return !0;
+ if (t.getAttribute('data-tabs')) break;
+ t = t.parentElement;
+ } while (t);
+ return !1;
+ }),
+ (i.render = function () {
+ var e = this,
+ t = this.props,
+ r = (t.children, t.className),
+ o = (t.disabledTabClassName, t.domRef),
+ i =
+ (t.focus,
+ t.forceRenderTabPanel,
+ t.onSelect,
+ t.selectedIndex,
+ t.selectedTabClassName,
+ t.selectedTabPanelClassName,
+ t.environment,
+ t.disableUpDownKeys,
+ (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(t, [
+ 'children',
+ 'className',
+ 'disabledTabClassName',
+ 'domRef',
+ 'focus',
+ 'forceRenderTabPanel',
+ 'onSelect',
+ 'selectedIndex',
+ 'selectedTabClassName',
+ 'selectedTabPanelClassName',
+ 'environment',
+ 'disableUpDownKeys'
+ ]));
+ return n.createElement(
+ 'div',
+ vp({}, i, {
+ className: fp(r),
+ onClick: this.handleClick,
+ onKeyDown: this.handleKeyDown,
+ ref: function (t) {
+ (e.node = t), o && o(t);
+ },
+ 'data-tabs': !0
+ }),
+ this.getChildren()
+ );
+ }),
+ o
+ );
+ })(n.Component);
+ function Op(e, t) {
+ return (
+ (Op =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ Op(e, t)
+ );
+ }
+ (_p.defaultProps = { className: 'react-tabs', focus: !1 }),
+ (_p.propTypes = {});
+ var Sp = (function (e) {
+ var t, r;
+ function o(t) {
+ var n;
+ return (
+ ((n = e.call(this, t) || this).handleSelected = function (
+ e,
+ t,
+ r
+ ) {
+ var o = n.props.onSelect,
+ i = n.state.mode;
+ if ('function' != typeof o || !1 !== o(e, t, r)) {
+ var a = { focus: 'keydown' === r.type };
+ 1 === i && (a.selectedIndex = e), n.setState(a);
+ }
+ }),
+ (n.state = o.copyPropsToState(n.props, {}, t.defaultFocus)),
+ n
+ );
+ }
+ return (
+ (r = e),
+ ((t = o).prototype = Object.create(r.prototype)),
+ (t.prototype.constructor = t),
+ Op(t, r),
+ (o.getDerivedStateFromProps = function (e, t) {
+ return o.copyPropsToState(e, t);
+ }),
+ (o.getModeFromProps = function (e) {
+ return null === e.selectedIndex ? 1 : 0;
+ }),
+ (o.copyPropsToState = function (e, t, n) {
+ void 0 === n && (n = !1);
+ var r = { focus: n, mode: o.getModeFromProps(e) };
+ if (1 === r.mode) {
+ var i,
+ a = Math.max(0, yp(e.children) - 1);
+ (i =
+ null != t.selectedIndex
+ ? Math.min(t.selectedIndex, a)
+ : e.defaultIndex || 0),
+ (r.selectedIndex = i);
+ }
+ return r;
+ }),
+ (o.prototype.render = function () {
+ var e = this.props,
+ t = e.children,
+ r =
+ (e.defaultIndex,
+ e.defaultFocus,
+ (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(e, ['children', 'defaultIndex', 'defaultFocus'])),
+ o = this.state,
+ i = o.focus,
+ a = o.selectedIndex;
+ return (
+ (r.focus = i),
+ (r.onSelect = this.handleSelected),
+ null != a && (r.selectedIndex = a),
+ n.createElement(_p, r, t)
+ );
+ }),
+ o
+ );
+ })(n.Component);
+ 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)
+ );
+ }
+ function Pp(e, t) {
+ return (
+ (Pp =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ Pp(e, t)
+ );
+ }
+ (Sp.defaultProps = {
+ defaultFocus: !1,
+ forceRenderTabPanel: !1,
+ selectedIndex: null,
+ defaultIndex: null,
+ environment: null,
+ disableUpDownKeys: !1
+ }),
+ (Sp.propTypes = {}),
+ (Sp.tabsRole = 'Tabs');
+ var Ap = (function (e) {
+ var t, r;
+ function o() {
+ return e.apply(this, arguments) || this;
+ }
+ return (
+ (r = e),
+ ((t = o).prototype = Object.create(r.prototype)),
+ (t.prototype.constructor = t),
+ Pp(t, r),
+ (o.prototype.render = function () {
+ var e = this.props,
+ t = e.children,
+ r = e.className,
+ o = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(e, ['children', 'className']);
+ return n.createElement(
+ 'ul',
+ Ep({}, o, { className: fp(r), role: 'tablist' }),
+ t
+ );
+ }),
+ o
+ );
+ })(n.Component);
+ function $p() {
+ return (
+ ($p =
+ 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;
+ }),
+ $p.apply(this, arguments)
+ );
+ }
+ function Cp(e, t) {
+ return (
+ (Cp =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ Cp(e, t)
+ );
+ }
+ (Ap.defaultProps = { className: 'react-tabs__tab-list' }),
+ (Ap.propTypes = {}),
+ (Ap.tabsRole = 'TabList');
+ var Rp = 'react-tabs__tab',
+ jp = (function (e) {
+ var t, r;
+ function o() {
+ return e.apply(this, arguments) || this;
+ }
+ (r = e),
+ ((t = o).prototype = Object.create(r.prototype)),
+ (t.prototype.constructor = t),
+ Cp(t, r);
+ var i = o.prototype;
+ return (
+ (i.componentDidMount = function () {
+ this.checkFocus();
+ }),
+ (i.componentDidUpdate = function () {
+ this.checkFocus();
+ }),
+ (i.checkFocus = function () {
+ var e = this.props,
+ t = e.selected,
+ n = e.focus;
+ t && n && this.node.focus();
+ }),
+ (i.render = function () {
+ var e,
+ t = this,
+ r = this.props,
+ o = r.children,
+ i = r.className,
+ a = r.disabled,
+ s = r.disabledClassName,
+ l = (r.focus, r.id),
+ c = r.panelId,
+ u = r.selected,
+ p = r.selectedClassName,
+ d = r.tabIndex,
+ f = r.tabRef,
+ h = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(r, [
+ 'children',
+ 'className',
+ 'disabled',
+ 'disabledClassName',
+ 'focus',
+ 'id',
+ 'panelId',
+ 'selected',
+ 'selectedClassName',
+ 'tabIndex',
+ 'tabRef'
+ ]);
+ return n.createElement(
+ 'li',
+ $p({}, h, {
+ className: fp(i, ((e = {}), (e[p] = u), (e[s] = a), e)),
+ ref: function (e) {
+ (t.node = e), f && f(e);
+ },
+ role: 'tab',
+ id: l,
+ 'aria-selected': u ? 'true' : 'false',
+ 'aria-disabled': a ? 'true' : 'false',
+ 'aria-controls': c,
+ tabIndex: d || (u ? '0' : null)
+ }),
+ o
+ );
+ }),
+ o
+ );
+ })(n.Component);
+ function Tp() {
+ return (
+ (Tp =
+ 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;
+ }),
+ Tp.apply(this, arguments)
+ );
+ }
+ function Ip(e, t) {
+ return (
+ (Ip =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ Ip(e, t)
+ );
+ }
+ (jp.defaultProps = {
+ className: Rp,
+ disabledClassName: Rp + '--disabled',
+ focus: !1,
+ id: null,
+ panelId: null,
+ selected: !1,
+ selectedClassName: Rp + '--selected'
+ }),
+ (jp.propTypes = {}),
+ (jp.tabsRole = 'Tab');
+ var Np = (function (e) {
+ var t, r;
+ function o() {
+ return e.apply(this, arguments) || this;
+ }
+ return (
+ (r = e),
+ ((t = o).prototype = Object.create(r.prototype)),
+ (t.prototype.constructor = t),
+ Ip(t, r),
+ (o.prototype.render = function () {
+ var e,
+ t = this.props,
+ r = t.children,
+ o = t.className,
+ i = t.forceRender,
+ a = t.id,
+ s = t.selected,
+ l = t.selectedClassName,
+ c = t.tabId,
+ u = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e);
+ for (r = 0; r < i.length; r++)
+ (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(t, [
+ 'children',
+ 'className',
+ 'forceRender',
+ 'id',
+ 'selected',
+ 'selectedClassName',
+ 'tabId'
+ ]);
+ return n.createElement(
+ 'div',
+ Tp({}, u, {
+ className: fp(o, ((e = {}), (e[l] = s), e)),
+ role: 'tabpanel',
+ id: a,
+ 'aria-labelledby': c
+ }),
+ i || s ? r : null
+ );
+ }),
+ o
+ );
+ })(n.Component);
+ (Np.defaultProps = {
+ className: 'react-tabs__tab-panel',
+ forceRender: !1,
+ selectedClassName: 'react-tabs__tab-panel--selected'
+ }),
+ (Np.propTypes = {}),
+ (Np.tabsRole = 'TabPanel');
+ const Dp = ga(Sp)`
+ > 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 }) => Rr(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 }) => Rr(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;
+ }
+ }
+`,
+ Lp =
+ (ga(Dp)`
+ > 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 }) => Rr(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;
+ }
+ }
+`,
+ ga.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;
+ }
+
+ ${ya('Prism')};
+`),
+ Mp = ga.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);
+ }
+ }
+`,
+ Fp = ga.div`
+ &:hover ${Mp} {
+ opacity: 1;
+ }
+`,
+ zp = ga(Lp.withComponent('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 Up(e) {
+ return getComputedStyle(e);
+ }
+ function Vp(e, t) {
+ for (var n in t) {
+ var r = t[n];
+ 'number' == typeof r && (r += 'px'), (e.style[n] = r);
+ }
+ return e;
+ }
+ function Bp(e) {
+ var t = document.createElement('div');
+ return (t.className = e), t;
+ }
+ var qp =
+ 'undefined' != typeof Element &&
+ (Element.prototype.matches ||
+ Element.prototype.webkitMatchesSelector ||
+ Element.prototype.mozMatchesSelector ||
+ Element.prototype.msMatchesSelector);
+ function Wp(e, t) {
+ if (!qp) throw new Error('No element matching method supported');
+ return qp.call(e, t);
+ }
+ function Hp(e) {
+ e.remove ? e.remove() : e.parentNode && e.parentNode.removeChild(e);
+ }
+ function Yp(e, t) {
+ return Array.prototype.filter.call(e.children, function (e) {
+ return Wp(e, t);
+ });
+ }
+ var Kp = function (e) {
+ return 'ps__thumb-' + e;
+ },
+ Gp = function (e) {
+ return 'ps__rail-' + e;
+ },
+ Qp = 'ps__child--consume',
+ Xp = 'ps--focus',
+ Jp = 'ps--clicking',
+ Zp = function (e) {
+ return 'ps--active-' + e;
+ },
+ ed = function (e) {
+ return 'ps--scrolling-' + e;
+ },
+ td = { x: null, y: null };
+ function nd(e, t) {
+ var n = e.element.classList,
+ r = ed(t);
+ n.contains(r) ? clearTimeout(td[t]) : n.add(r);
+ }
+ function rd(e, t) {
+ td[t] = setTimeout(function () {
+ return e.isAlive && e.element.classList.remove(ed(t));
+ }, e.settings.scrollingThreshold);
+ }
+ var od = function (e) {
+ (this.element = e), (this.handlers = {});
+ },
+ id = { isEmpty: { configurable: !0 } };
+ (od.prototype.bind = function (e, t) {
+ void 0 === this.handlers[e] && (this.handlers[e] = []),
+ this.handlers[e].push(t),
+ this.element.addEventListener(e, t, !1);
+ }),
+ (od.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)
+ );
+ });
+ }),
+ (od.prototype.unbindAll = function () {
+ for (var e in this.handlers) this.unbind(e);
+ }),
+ (id.isEmpty.get = function () {
+ var e = this;
+ return Object.keys(this.handlers).every(function (t) {
+ return 0 === e.handlers[t].length;
+ });
+ }),
+ Object.defineProperties(od.prototype, id);
+ var ad = function () {
+ this.eventElements = [];
+ };
+ function sd(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 ld(e, t, n, r, o) {
+ var i;
+ if ((void 0 === r && (r = !0), void 0 === o && (o = !1), 'top' === t))
+ i = [
+ 'contentHeight',
+ 'containerHeight',
+ 'scrollTop',
+ 'y',
+ 'up',
+ 'down'
+ ];
+ else {
+ if ('left' !== t)
+ throw new Error('A proper axis should be provided');
+ i = [
+ 'contentWidth',
+ 'containerWidth',
+ 'scrollLeft',
+ 'x',
+ 'left',
+ 'right'
+ ];
+ }
+ !(function (e, t, n, r, o) {
+ var i = n[0],
+ a = n[1],
+ s = n[2],
+ l = n[3],
+ c = n[4],
+ u = n[5];
+ void 0 === r && (r = !0), void 0 === o && (o = !1);
+ var p = e.element;
+ (e.reach[l] = null),
+ p[s] < 1 && (e.reach[l] = 'start'),
+ p[s] > e[i] - e[a] - 1 && (e.reach[l] = 'end'),
+ t &&
+ (p.dispatchEvent(sd('ps-scroll-' + l)),
+ t < 0
+ ? p.dispatchEvent(sd('ps-scroll-' + c))
+ : t > 0 && p.dispatchEvent(sd('ps-scroll-' + u)),
+ r &&
+ (function (e, t) {
+ nd(e, t), rd(e, t);
+ })(e, l)),
+ e.reach[l] &&
+ (t || o) &&
+ p.dispatchEvent(sd('ps-' + l + '-reach-' + e.reach[l]));
+ })(e, n, i, r, o);
+ }
+ function cd(e) {
+ return parseInt(e, 10) || 0;
+ }
+ (ad.prototype.eventElement = function (e) {
+ var t = this.eventElements.filter(function (t) {
+ return t.element === e;
+ })[0];
+ return t || ((t = new od(e)), this.eventElements.push(t)), t;
+ }),
+ (ad.prototype.bind = function (e, t, n) {
+ this.eventElement(e).bind(t, n);
+ }),
+ (ad.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);
+ }),
+ (ad.prototype.unbindAll = function () {
+ this.eventElements.forEach(function (e) {
+ return e.unbindAll();
+ }),
+ (this.eventElements = []);
+ }),
+ (ad.prototype.once = function (e, t, n) {
+ var r = this.eventElement(e),
+ o = function (e) {
+ r.unbind(t, o), n(e);
+ };
+ r.bind(t, o);
+ });
+ var ud = {
+ 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 pd(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) ||
+ (Yp(t, Gp('x')).forEach(function (e) {
+ return Hp(e);
+ }),
+ t.appendChild(e.scrollbarXRail)),
+ t.contains(e.scrollbarYRail) ||
+ (Yp(t, Gp('y')).forEach(function (e) {
+ return Hp(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 = dd(
+ e,
+ cd((e.railXWidth * e.containerWidth) / e.contentWidth)
+ )),
+ (e.scrollbarXLeft = cd(
+ ((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 = dd(
+ e,
+ cd((e.railYHeight * e.containerHeight) / e.contentHeight)
+ )),
+ (e.scrollbarYTop = cd(
+ (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),
+ Vp(t.scrollbarXRail, n);
+ var o = { top: r, height: t.railYHeight };
+ t.isScrollbarYUsingRight
+ ? t.isRtl
+ ? (o.right =
+ t.contentWidth -
+ (t.negativeScrollAdjustment + e.scrollLeft) -
+ t.scrollbarYRight -
+ t.scrollbarYOuterWidth -
+ 9)
+ : (o.right = t.scrollbarYRight - e.scrollLeft)
+ : t.isRtl
+ ? (o.left =
+ t.negativeScrollAdjustment +
+ e.scrollLeft +
+ 2 * t.containerWidth -
+ t.contentWidth -
+ t.scrollbarYLeft -
+ t.scrollbarYOuterWidth)
+ : (o.left = t.scrollbarYLeft + e.scrollLeft),
+ Vp(t.scrollbarYRail, o),
+ Vp(t.scrollbarX, {
+ left: t.scrollbarXLeft,
+ width: t.scrollbarXWidth - t.railBorderXWidth
+ }),
+ Vp(t.scrollbarY, {
+ top: t.scrollbarYTop,
+ height: t.scrollbarYHeight - t.railBorderYWidth
+ });
+ })(t, e),
+ e.scrollbarXActive
+ ? t.classList.add(Zp('x'))
+ : (t.classList.remove(Zp('x')),
+ (e.scrollbarXWidth = 0),
+ (e.scrollbarXLeft = 0),
+ (t.scrollLeft = !0 === e.isRtl ? e.contentWidth : 0)),
+ e.scrollbarYActive
+ ? t.classList.add(Zp('y'))
+ : (t.classList.remove(Zp('y')),
+ (e.scrollbarYHeight = 0),
+ (e.scrollbarYTop = 0),
+ (t.scrollTop = 0));
+ }
+ function dd(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 fd(e, t) {
+ var n = t[0],
+ r = t[1],
+ o = t[2],
+ i = 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[o] = t.touches[0].pageY),
+ (p[l] = d + h * (t[o] - f)),
+ nd(e, c),
+ pd(e),
+ t.stopPropagation(),
+ t.type.startsWith('touch') &&
+ t.changedTouches.length > 1 &&
+ t.preventDefault();
+ }
+ function g() {
+ rd(e, c),
+ e[u].classList.remove(Jp),
+ e.event.unbind(e.ownerDocument, 'mousemove', m);
+ }
+ function y(t, a) {
+ (d = p[l]),
+ a && t.touches && (t[o] = t.touches[0].pageY),
+ (f = t[o]),
+ (h = (e[r] - e[n]) / (e[i] - 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(Jp),
+ t.stopPropagation();
+ }
+ e.event.bind(e[a], 'mousedown', function (e) {
+ y(e);
+ }),
+ e.event.bind(e[a], 'touchstart', function (e) {
+ y(e, !0);
+ });
+ }
+ var hd = {
+ '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),
+ pd(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),
+ pd(e),
+ t.stopPropagation();
+ });
+ },
+ 'drag-thumb': function (e) {
+ fd(e, [
+ 'containerWidth',
+ 'contentWidth',
+ 'pageX',
+ 'railXWidth',
+ 'scrollbarX',
+ 'scrollbarXWidth',
+ 'scrollLeft',
+ 'x',
+ 'scrollbarXRail'
+ ]),
+ fd(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
+ ) &&
+ (Wp(t, ':hover') ||
+ Wp(e.scrollbarX, ':focus') ||
+ Wp(e.scrollbarY, ':focus'))
+ ) {
+ var r,
+ o = document.activeElement
+ ? document.activeElement
+ : e.ownerDocument.activeElement;
+ if (o) {
+ if ('IFRAME' === o.tagName)
+ o = o.contentDocument.activeElement;
+ else for (; o.shadowRoot; ) o = o.shadowRoot.activeElement;
+ if (
+ Wp((r = o), 'input,[contenteditable]') ||
+ Wp(r, 'select,[contenteditable]') ||
+ Wp(r, 'textarea,[contenteditable]') ||
+ Wp(r, 'button,[contenteditable]')
+ )
+ return;
+ }
+ var i = 0,
+ a = 0;
+ switch (n.which) {
+ case 37:
+ i = 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:
+ i = 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 !== i) ||
+ (e.settings.suppressScrollY && 0 !== a) ||
+ ((t.scrollTop -= a),
+ (t.scrollLeft += i),
+ pd(e),
+ (function (n, r) {
+ var o = Math.floor(t.scrollTop);
+ if (0 === n) {
+ if (!e.scrollbarYActive) return !1;
+ if (
+ (0 === o && r > 0) ||
+ (o >= e.contentHeight - e.containerHeight && r < 0)
+ )
+ return !e.settings.wheelPropagation;
+ }
+ var i = t.scrollLeft;
+ if (0 === r) {
+ if (!e.scrollbarXActive) return !1;
+ if (
+ (0 === i && n < 0) ||
+ (i >= e.contentWidth - e.containerWidth && n > 0)
+ )
+ return !e.settings.wheelPropagation;
+ }
+ return !0;
+ })(i, 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),
+ o = r[0],
+ i = r[1];
+ if (
+ !(function (e, n, r) {
+ if (!ud.isWebKit && t.querySelector('select:focus'))
+ return !0;
+ if (!t.contains(e)) return !1;
+ for (var o = e; o && o !== t; ) {
+ if (o.classList.contains(Qp)) return !0;
+ var i = Up(o);
+ if (r && i.overflowY.match(/(scroll|auto)/)) {
+ var a = o.scrollHeight - o.clientHeight;
+ if (
+ a > 0 &&
+ ((o.scrollTop > 0 && r < 0) ||
+ (o.scrollTop < a && r > 0))
+ )
+ return !0;
+ }
+ if (n && i.overflowX.match(/(scroll|auto)/)) {
+ var s = o.scrollWidth - o.clientWidth;
+ if (
+ s > 0 &&
+ ((o.scrollLeft > 0 && n < 0) ||
+ (o.scrollLeft < s && n > 0))
+ )
+ return !0;
+ }
+ o = o.parentNode;
+ }
+ return !1;
+ })(n.target, o, i)
+ ) {
+ var a = !1;
+ e.settings.useBothWheelAxes
+ ? e.scrollbarYActive && !e.scrollbarXActive
+ ? (i
+ ? (t.scrollTop -= i * e.settings.wheelSpeed)
+ : (t.scrollTop += o * e.settings.wheelSpeed),
+ (a = !0))
+ : e.scrollbarXActive &&
+ !e.scrollbarYActive &&
+ (o
+ ? (t.scrollLeft += o * e.settings.wheelSpeed)
+ : (t.scrollLeft -= i * e.settings.wheelSpeed),
+ (a = !0))
+ : ((t.scrollTop -= i * e.settings.wheelSpeed),
+ (t.scrollLeft += o * e.settings.wheelSpeed)),
+ pd(e),
+ (a =
+ a ||
+ (function (n, r) {
+ var o = Math.floor(t.scrollTop),
+ i = 0 === t.scrollTop,
+ a = o + t.offsetHeight === t.scrollHeight,
+ s = 0 === t.scrollLeft,
+ l = t.scrollLeft + t.offsetWidth === t.scrollWidth;
+ return (
+ !(Math.abs(r) > Math.abs(n) ? i || a : s || l) ||
+ !e.settings.wheelPropagation
+ );
+ })(o, i)),
+ 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 (ud.supportsTouch || ud.supportsIePointer) {
+ var t = e.element,
+ n = {},
+ r = 0,
+ o = {},
+ i = null;
+ ud.supportsTouch
+ ? (e.event.bind(t, 'touchstart', c),
+ e.event.bind(t, 'touchmove', u),
+ e.event.bind(t, 'touchend', p))
+ : ud.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), pd(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 !== i && clearInterval(i);
+ }
+ }
+ function u(i) {
+ if (l(i)) {
+ var c = s(i),
+ 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 o = e; o && o !== t; ) {
+ if (o.classList.contains(Qp)) return !0;
+ var i = Up(o);
+ if (r && i.overflowY.match(/(scroll|auto)/)) {
+ var a = o.scrollHeight - o.clientHeight;
+ if (
+ a > 0 &&
+ ((o.scrollTop > 0 && r < 0) ||
+ (o.scrollTop < a && r > 0))
+ )
+ return !0;
+ }
+ if (n && i.overflowX.match(/(scroll|auto)/)) {
+ var s = o.scrollWidth - o.clientWidth;
+ if (
+ s > 0 &&
+ ((o.scrollLeft > 0 && n < 0) ||
+ (o.scrollLeft < s && n > 0))
+ )
+ return !0;
+ }
+ o = o.parentNode;
+ }
+ return !1;
+ })(i.target, p, d)
+ )
+ return;
+ a(p, d), (n = u);
+ var f = new Date().getTime(),
+ h = f - r;
+ h > 0 && ((o.x = p / h), (o.y = d / h), (r = f)),
+ (function (n, r) {
+ var o = Math.floor(t.scrollTop),
+ i = t.scrollLeft,
+ a = Math.abs(n),
+ s = Math.abs(r);
+ if (s > a) {
+ if (
+ (r < 0 &&
+ o === e.contentHeight - e.containerHeight) ||
+ (r > 0 && 0 === o)
+ )
+ return 0 === window.scrollY && r > 0 && ud.isChrome;
+ } else if (
+ a > s &&
+ ((n < 0 && i === e.contentWidth - e.containerWidth) ||
+ (n > 0 && 0 === i))
+ )
+ return !0;
+ return !0;
+ })(p, d) && i.preventDefault();
+ }
+ }
+ function p() {
+ e.settings.swipeEasing &&
+ (clearInterval(i),
+ (i = setInterval(function () {
+ e.isInitialized
+ ? clearInterval(i)
+ : o.x || o.y
+ ? Math.abs(o.x) < 0.01 && Math.abs(o.y) < 0.01
+ ? clearInterval(i)
+ : e.element
+ ? (a(30 * o.x, 30 * o.y),
+ (o.x *= 0.8),
+ (o.y *= 0.8))
+ : clearInterval(i)
+ : clearInterval(i);
+ }, 10)));
+ }
+ }
+ },
+ md = 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('ps'),
+ (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 o,
+ i,
+ a = function () {
+ return e.classList.add(Xp);
+ },
+ s = function () {
+ return e.classList.remove(Xp);
+ };
+ (this.isRtl = 'rtl' === Up(e).direction),
+ !0 === this.isRtl && e.classList.add('ps__rtl'),
+ (this.isNegativeScroll =
+ ((i = e.scrollLeft),
+ (e.scrollLeft = -1),
+ (o = e.scrollLeft < 0),
+ (e.scrollLeft = i),
+ o)),
+ (this.negativeScrollAdjustment = this.isNegativeScroll
+ ? e.scrollWidth - e.clientWidth
+ : 0),
+ (this.event = new ad()),
+ (this.ownerDocument = e.ownerDocument || document),
+ (this.scrollbarXRail = Bp(Gp('x'))),
+ e.appendChild(this.scrollbarXRail),
+ (this.scrollbarX = Bp(Kp('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 = Up(this.scrollbarXRail);
+ (this.scrollbarXBottom = parseInt(l.bottom, 10)),
+ isNaN(this.scrollbarXBottom)
+ ? ((this.isScrollbarXUsingBottom = !1),
+ (this.scrollbarXTop = cd(l.top)))
+ : (this.isScrollbarXUsingBottom = !0),
+ (this.railBorderXWidth =
+ cd(l.borderLeftWidth) + cd(l.borderRightWidth)),
+ Vp(this.scrollbarXRail, { display: 'block' }),
+ (this.railXMarginWidth = cd(l.marginLeft) + cd(l.marginRight)),
+ Vp(this.scrollbarXRail, { display: '' }),
+ (this.railXWidth = null),
+ (this.railXRatio = null),
+ (this.scrollbarYRail = Bp(Gp('y'))),
+ e.appendChild(this.scrollbarYRail),
+ (this.scrollbarY = Bp(Kp('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 = Up(this.scrollbarYRail);
+ (this.scrollbarYRight = parseInt(c.right, 10)),
+ isNaN(this.scrollbarYRight)
+ ? ((this.isScrollbarYUsingRight = !1),
+ (this.scrollbarYLeft = cd(c.left)))
+ : (this.isScrollbarYUsingRight = !0),
+ (this.scrollbarYOuterWidth = this.isRtl
+ ? (function (e) {
+ var t = Up(e);
+ return (
+ cd(t.width) +
+ cd(t.paddingLeft) +
+ cd(t.paddingRight) +
+ cd(t.borderLeftWidth) +
+ cd(t.borderRightWidth)
+ );
+ })(this.scrollbarY)
+ : null),
+ (this.railBorderYWidth =
+ cd(c.borderTopWidth) + cd(c.borderBottomWidth)),
+ Vp(this.scrollbarYRail, { display: 'block' }),
+ (this.railYMarginHeight = cd(c.marginTop) + cd(c.marginBottom)),
+ Vp(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 hd[e](n);
+ }),
+ (this.lastScrollTop = Math.floor(e.scrollTop)),
+ (this.lastScrollLeft = e.scrollLeft),
+ this.event.bind(this.element, 'scroll', function (e) {
+ return n.onScroll(e);
+ }),
+ pd(this);
+ };
+ (md.prototype.update = function () {
+ this.isAlive &&
+ ((this.negativeScrollAdjustment = this.isNegativeScroll
+ ? this.element.scrollWidth - this.element.clientWidth
+ : 0),
+ Vp(this.scrollbarXRail, { display: 'block' }),
+ Vp(this.scrollbarYRail, { display: 'block' }),
+ (this.railXMarginWidth =
+ cd(Up(this.scrollbarXRail).marginLeft) +
+ cd(Up(this.scrollbarXRail).marginRight)),
+ (this.railYMarginHeight =
+ cd(Up(this.scrollbarYRail).marginTop) +
+ cd(Up(this.scrollbarYRail).marginBottom)),
+ Vp(this.scrollbarXRail, { display: 'none' }),
+ Vp(this.scrollbarYRail, { display: 'none' }),
+ pd(this),
+ ld(this, 'top', 0, !1, !0),
+ ld(this, 'left', 0, !1, !0),
+ Vp(this.scrollbarXRail, { display: '' }),
+ Vp(this.scrollbarYRail, { display: '' }));
+ }),
+ (md.prototype.onScroll = function (e) {
+ this.isAlive &&
+ (pd(this),
+ ld(this, 'top', this.element.scrollTop - this.lastScrollTop),
+ ld(this, 'left', this.element.scrollLeft - this.lastScrollLeft),
+ (this.lastScrollTop = Math.floor(this.element.scrollTop)),
+ (this.lastScrollLeft = this.element.scrollLeft));
+ }),
+ (md.prototype.destroy = function () {
+ this.isAlive &&
+ (this.event.unbindAll(),
+ Hp(this.scrollbarX),
+ Hp(this.scrollbarY),
+ Hp(this.scrollbarXRail),
+ Hp(this.scrollbarYRail),
+ this.removePsClasses(),
+ (this.element = null),
+ (this.scrollbarX = null),
+ (this.scrollbarY = null),
+ (this.scrollbarXRail = null),
+ (this.scrollbarYRail = null),
+ (this.isAlive = !1));
+ }),
+ (md.prototype.removePsClasses = function () {
+ this.element.className = this.element.className
+ .split(' ')
+ .filter(function (e) {
+ return !e.match(/^ps([-_].+|)$/);
+ })
+ .join(' ');
+ });
+ var gd = md,
+ yd = Object.defineProperty,
+ vd = Object.getOwnPropertySymbols,
+ bd = Object.prototype.hasOwnProperty,
+ wd = Object.prototype.propertyIsEnumerable,
+ xd = (e, t, n) =>
+ t in e
+ ? yd(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ const kd = gd || t;
+ let _d = '';
+ qr &&
+ ((_d = r(3433)),
+ (_d = ('function' == typeof _d.toString && _d.toString()) || ''),
+ (_d = '[object Object]' === _d ? '' : _d));
+ const Od = da`${_d}`,
+ Sd = ga.div`
+ position: relative;
+`;
+ class Ed 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 kd(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,
+ _d && n.createElement(Od, null),
+ n.createElement(
+ Sd,
+ {
+ className: `scrollbar-container ${t}`,
+ ref: this.handleRef
+ },
+ e
+ )
+ )
+ );
+ }
+ }
+ function Pd(e) {
+ return n.createElement(Sa.Consumer, null, (t) =>
+ t.nativeScrollbars
+ ? n.createElement(
+ 'div',
+ {
+ style: {
+ overflow: 'auto',
+ overscrollBehavior: 'contain',
+ msOverflowStyle: '-ms-autohiding-scrollbar'
+ }
+ },
+ e.children
+ )
+ : n.createElement(
+ Ed,
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ bd.call(t, n) && xd(e, n, t[n]);
+ if (vd)
+ for (var n of vd(t)) wd.call(t, n) && xd(e, n, t[n]);
+ return e;
+ })({}, e),
+ e.children
+ )
+ );
+ }
+ const Ad = ga(({ 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'};
+ }
+`,
+ $d = n.memo((e) => {
+ const {
+ options: t,
+ onChange: r,
+ placeholder: o,
+ value: i = '',
+ variant: a,
+ className: s
+ } = e;
+ return n.createElement(
+ 'div',
+ { className: s },
+ n.createElement(Ad, { variant: a }),
+ n.createElement(
+ 'select',
+ {
+ onChange: (e) => {
+ const { selectedIndex: n } = e.target;
+ r(t[o ? n - 1 : n]);
+ },
+ value: i,
+ className: 'dropdown-select'
+ },
+ o &&
+ n.createElement(
+ 'option',
+ { disabled: !0, hidden: !0, value: o },
+ o
+ ),
+ t.map(({ idx: e, value: t, title: r }, o) =>
+ n.createElement(
+ 'option',
+ { key: e || t + o, value: t },
+ r || t
+ )
+ )
+ ),
+ n.createElement('label', null, i)
+ );
+ }),
+ Cd = ca($d)`
+ 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};
+ }
+`,
+ Rd = ca(Cd)`
+ 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};
+ }
+ }
+`,
+ jd = ca.span`
+ margin-left: 10px;
+ text-transform: none;
+ font-size: 0.929em;
+ color: black;
+`;
+ var Td = Object.defineProperty,
+ Id = Object.defineProperties,
+ Nd = Object.getOwnPropertyDescriptors,
+ Dd = Object.getOwnPropertySymbols,
+ Ld = Object.prototype.hasOwnProperty,
+ Md = Object.prototype.propertyIsEnumerable,
+ Fd = (e, t, n) =>
+ t in e
+ ? Td(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ zd = (e, t) => {
+ for (var n in t || (t = {})) Ld.call(t, n) && Fd(e, n, t[n]);
+ if (Dd) for (var n of Dd(t)) Md.call(t, n) && Fd(e, n, t[n]);
+ return e;
+ },
+ Ud = (e, t) => Id(e, Nd(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 o = t[r],
+ i = Object.keys(o).filter(Xa);
+ for (const t of i) {
+ const r = o[t];
+ if (o.$ref) {
+ const r = e.deref(o || {});
+ this.initWebhooks(e, { [t]: r }, n);
+ }
+ if (!r) continue;
+ const i = new _u(
+ e,
+ Ud(zd({}, r), { httpVerb: t }),
+ void 0,
+ n,
+ !1
+ );
+ this.operations.push(i);
+ }
+ }
+ }
+ }
+ class Bd {
+ constructor(e, t, n) {
+ const { resolved: r } = e.deref(n);
+ (this.id = t),
+ (this.sectionId = hs + 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 qd {
+ constructor(e) {
+ const t =
+ (e.spec.components && e.spec.components.securitySchemes) || {};
+ this.schemes = Object.keys(t).map((n) => new Bd(e, n, t[n]));
+ }
+ }
+ var Wd = Object.defineProperty,
+ Hd = Object.getOwnPropertySymbols,
+ Yd = Object.prototype.hasOwnProperty,
+ Kd = Object.prototype.propertyIsEnumerable,
+ Gd = (e, t, n) =>
+ t in e
+ ? Wd(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Qd = (e, t) => {
+ for (var n in t || (t = {})) Yd.call(t, n) && Gd(e, n, t[n]);
+ if (Hd) for (var n of Hd(t)) Kd.call(t, n) && Gd(e, n, t[n]);
+ return e;
+ };
+ class Xd {
+ constructor(e, t, n) {
+ var r, o, i;
+ (this.options = n),
+ (this.parser = new fc(e, t, n)),
+ (this.info = new Il(this.parser, this.options)),
+ (this.externalDocs = this.parser.spec.externalDocs),
+ (this.contentItems = df.buildStructure(
+ this.parser,
+ this.options
+ )),
+ (this.securitySchemes = new qd(this.parser));
+ const a = Qd(
+ Qd(
+ {},
+ null == (o = null == (r = this.parser) ? void 0 : r.spec)
+ ? void 0
+ : o['x-webhooks']
+ ),
+ null == (i = this.parser) ? void 0 : i.spec.webhooks
+ );
+ this.webhooks = new Vd(this.parser, n, a);
+ }
+ }
+ var Jd = Object.defineProperty,
+ Zd = Object.getOwnPropertyDescriptor,
+ ef = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? Zd(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && Jd(t, n, i), i;
+ };
+ class tf {
+ constructor(e, t, n) {
+ (this.items = []),
+ (this.active = !1),
+ (this.expanded = !1),
+ tn(this),
+ (this.id = t.id || e + '/' + no(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 = jl.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;
+ }
+ }
+ ef([Ae], tf.prototype, 'active', 2),
+ ef([Ae], tf.prototype, 'expanded', 2),
+ ef([Pt], tf.prototype, 'activate', 1),
+ ef([Pt], tf.prototype, 'expand', 1),
+ ef([Pt], tf.prototype, 'collapse', 1),
+ ef([Pt], tf.prototype, 'deactivate', 1);
+ var nf = Object.defineProperty,
+ rf = Object.defineProperties,
+ of = Object.getOwnPropertyDescriptors,
+ af = Object.getOwnPropertySymbols,
+ sf = Object.prototype.hasOwnProperty,
+ lf = Object.prototype.propertyIsEnumerable,
+ cf = (e, t, n) =>
+ t in e
+ ? nf(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ uf = (e, t) => {
+ for (var n in t || (t = {})) sf.call(t, n) && cf(e, n, t[n]);
+ if (af) for (var n of af(t)) lf.call(t, n) && cf(e, n, t[n]);
+ return e;
+ },
+ pf = (e, t) => rf(e, of(t));
+ class df {
+ static buildStructure(e, t) {
+ const n = e.spec,
+ r = [],
+ o = df.getTagsWithOperations(e, n);
+ return (
+ r.push(
+ ...df.addMarkdownItems(n.info.description || '', void 0, 1, t)
+ ),
+ n['x-tagGroups'] && n['x-tagGroups'].length > 0
+ ? r.push(
+ ...df.getTagGroupsItems(e, void 0, n['x-tagGroups'], o, t)
+ )
+ : r.push(...df.getTagsItems(e, o, void 0, void 0, t)),
+ r
+ );
+ }
+ static addMarkdownItems(e, t, n, r) {
+ const o = new jl(r).extractHeadings(e || '');
+ o.length &&
+ t &&
+ t.description &&
+ (t.description = jl.getTextBeforeHading(
+ t.description,
+ o[0].name
+ ));
+ const i = (e, t, n = 1) =>
+ t.map((t) => {
+ const r = new tf('section', t, e);
+ return (
+ (r.depth = n), t.items && (r.items = i(r, t.items, n + 1)), r
+ );
+ });
+ return i(t, o, n);
+ }
+ static getTagGroupsItems(e, t, n, r, o) {
+ const i = [];
+ for (const a of n) {
+ const n = new tf('group', a, t);
+ (n.depth = 0),
+ (n.items = df.getTagsItems(e, r, n, a, o)),
+ i.push(n);
+ }
+ return i;
+ }
+ static getTagsItems(e, t, n, r, o) {
+ let i;
+ i = void 0 === r ? Object.keys(t) : r.tags;
+ const a = i.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 tf('tag', t, n);
+ if (((r.depth = 1), '' !== t.name))
+ (r.items = [
+ ...df.addMarkdownItems(
+ t.description || '',
+ r,
+ r.depth + 1,
+ o
+ ),
+ ...this.getOperationsItems(e, r, t, r.depth + 1, o)
+ ]),
+ s.push(r);
+ else {
+ const n = [
+ ...df.addMarkdownItems(
+ t.description || '',
+ r,
+ r.depth + 1,
+ o
+ ),
+ ...this.getOperationsItems(e, void 0, t, r.depth + 1, o)
+ ];
+ s.push(...n);
+ }
+ }
+ return o.sortTagsAlphabetically && s.sort(Cs('name')), s;
+ }
+ static getOperationsItems(e, t, n, r, o) {
+ if (0 === n.operations.length) return [];
+ const i = [];
+ for (const a of n.operations) {
+ const n = new _u(e, a, t, o);
+ (n.depth = r), i.push(n);
+ }
+ return o.sortOperationsAlphabetically && i.sort(Cs('name')), i;
+ }
+ static getTagsWithOperations(e, t) {
+ const n = {},
+ r = t['x-webhooks'] || t.webhooks;
+ for (const e of t.tags || [])
+ n[e.name] = pf(uf({}, e), { operations: [] });
+ function o(e, t, r) {
+ for (const i of Object.keys(t)) {
+ const a = t[i],
+ s = Object.keys(a).filter(Xa);
+ for (const t of s) {
+ const s = a[t];
+ if (a.$ref) {
+ const { resolved: t } = e.deref(a);
+ o(e, { [i]: t }, r);
+ continue;
+ }
+ let l = null == s ? void 0 : s.tags;
+ (l && l.length) || (l = ['']);
+ for (const e of l) {
+ let o = n[e];
+ void 0 === o &&
+ ((o = { name: e, operations: [] }), (n[e] = o)),
+ o['x-traitTag'] ||
+ o.operations.push(
+ pf(uf({}, s), {
+ pathName: i,
+ pointer: Da.compile(['paths', i, t]),
+ httpVerb: t,
+ pathParameters: a.parameters || [],
+ pathServers: a.servers,
+ isWebhook: !!r
+ })
+ );
+ }
+ }
+ }
+ }
+ return r && o(e, r, !0), t.paths && o(e, t.paths), n;
+ }
+ }
+ var ff = Object.defineProperty,
+ hf = Object.getOwnPropertyDescriptor,
+ mf = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? hf(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && ff(t, n, i), i;
+ };
+ const gf = 'data-section-id';
+ class yf {
+ 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(hs) &&
+ ((t = this.flatItems.find((e) => hs.startsWith(e.id))),
+ this.activateAndScroll(t, !1)),
+ this.scroll.scrollIntoViewBySelector(
+ `[${gf}="${oo(e)}"]`
+ ));
+ }),
+ (this.getItemById = (e) =>
+ this.flatItems.find((t) => t.id === e)),
+ tn(this),
+ (this.items = e.contentItems),
+ (this.flatItems = (function (e, t) {
+ const n = [],
+ r = (e) => {
+ for (const t of e) n.push(t), t.items && r(t.items);
+ };
+ return r(e), n;
+ })(this.items || [])),
+ this.flatItems.forEach((e, t) => (e.absoluteIdx = t)),
+ this.subscribe();
+ }
+ static updateOnHistory(e = Ns.currentId, t) {
+ e && t.scrollIntoViewBySelector(`[${gf}="${oo(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 && Wr(`[${gf}="${oo(t.id)}"]`)) || null;
+ }
+ getElementAtOrFirstChild(e) {
+ let t = this.flatItems[e];
+ return (
+ t && 'group' === t.type && (t = t.items[0]),
+ (t && Wr(`[${gf}="${oo(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();
+ }
+ }
+ mf([Ae], yf.prototype, 'activeItemIdx', 2),
+ mf([Ae], yf.prototype, 'sideBarOpened', 2),
+ mf([Pt], yf.prototype, 'toggleSidebar', 1),
+ mf([Pt], yf.prototype, 'closeSidebar', 1),
+ mf([Pt], yf.prototype, 'activate', 1),
+ mf([Pt.bound], yf.prototype, 'activateAndScroll', 1);
+ var vf = Object.defineProperty,
+ bf = Object.getOwnPropertyDescriptor;
+ const wf = 'scroll';
+ class xf {
+ constructor(e) {
+ (this.options = e),
+ (this._prevOffsetY = 0),
+ (this._scrollParent = qr ? window : void 0),
+ (this._emiter = new ja()),
+ 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(wf);
+ }
+ 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(wf, e);
+ return () => t.removeListener(wf, e);
+ }
+ scrollIntoView(e) {
+ null !== e &&
+ (e.scrollIntoView(),
+ this._scrollParent &&
+ this._scrollParent.scrollBy &&
+ this._scrollParent.scrollBy(
+ 0,
+ 1 - this.options.scrollYOffset()
+ ));
+ }
+ scrollIntoViewBySelector(e) {
+ const t = Wr(e);
+ this.scrollIntoView(t);
+ }
+ handleScroll() {
+ const e = this.scrollY() - this._prevOffsetY > 0;
+ (this._prevOffsetY = this.scrollY()), this._emiter.emit(wf, e);
+ }
+ }
+ ((e, t, n, r) => {
+ for (var o, i = bf(t, n), a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(t, n, i) || i);
+ i && vf(t, n, i);
+ })(
+ [
+ Ra.bind,
+ (100,
+ (e, t, n) => {
+ n.value = (function (e, t) {
+ let n,
+ r,
+ o,
+ i = null,
+ a = 0;
+ const s = () => {
+ (a = new Date().getTime()),
+ (i = null),
+ (o = e.apply(n, r)),
+ i || (n = r = null);
+ };
+ return function () {
+ const l = new Date().getTime(),
+ c = t - (l - a);
+ return (
+ (n = this),
+ (r = arguments),
+ c <= 0 || c > t
+ ? (i && (clearTimeout(i), (i = null)),
+ (a = l),
+ (o = e.apply(n, r)),
+ i || (n = r = null))
+ : i || (i = setTimeout(s, c)),
+ o
+ );
+ };
+ })(n.value, 100);
+ })
+ ],
+ xf.prototype,
+ 'handleScroll'
+ );
+ class kf {
+ constructor() {
+ this.searchWorker = (function () {
+ let e;
+ if (qr)
+ try {
+ e = r(6980);
+ } 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 || '', 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 o = (e) => {
+ try {
+ a(t.next(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ i = (e) => {
+ try {
+ a(t.throw(e));
+ } catch (e) {
+ r(e);
+ }
+ },
+ a = (e) =>
+ e.done ? n(e.value) : Promise.resolve(e.value).then(o, i);
+ 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 _f = Object.defineProperty,
+ Of = Object.getOwnPropertySymbols,
+ Sf = Object.prototype.hasOwnProperty,
+ Ef = Object.prototype.propertyIsEnumerable,
+ Pf = (e, t, n) =>
+ t in e
+ ? _f(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ function Af(e) {
+ const { Label: t = jd, Dropdown: r = Rd } = e;
+ return 1 === e.options.length
+ ? n.createElement(t, null, e.options[0].value)
+ : n.createElement(
+ r,
+ ((e, t) => {
+ for (var n in t || (t = {})) Sf.call(t, n) && Pf(e, n, t[n]);
+ if (Of) for (var n of Of(t)) Ef.call(t, n) && Pf(e, n, t[n]);
+ return e;
+ })({}, e)
+ );
+ }
+ var $f = r(7856);
+ const Cf = pa`
+ 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};
+ }
+ }
+`,
+ Rf = ga(Lp)`
+ 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 {
+ ${Cu(1)};
+ color: ${(e) => e.theme.colors.primary.main};
+ margin-top: 0;
+ }
+
+ h2 {
+ ${Cu(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: 0px;
+ 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')};
+
+ ${Cf}
+
+ ${ya('Markdown')};
+`;
+ var jf = Object.defineProperty,
+ Tf = Object.getOwnPropertySymbols,
+ If = Object.prototype.hasOwnProperty,
+ Nf = Object.prototype.propertyIsEnumerable,
+ Df = (e, t, n) =>
+ t in e
+ ? jf(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ const Lf = Rf.withComponent('span');
+ function Mf(e) {
+ const t = e.inline ? Lf : Rf;
+ return n.createElement(Pa, null, (r) => {
+ return n.createElement(
+ t,
+ ((e, t) => {
+ for (var n in t || (t = {})) If.call(t, n) && Df(e, n, t[n]);
+ if (Tf) for (var n of Tf(t)) Nf.call(t, n) && Df(e, n, t[n]);
+ return e;
+ })(
+ {
+ className: 'redoc-markdown ' + (e.className || ''),
+ dangerouslySetInnerHTML: {
+ __html:
+ ((o = r.untrustedSpec),
+ (i = e.html),
+ o ? $f.sanitize(i) : i)
+ },
+ 'data-role': e['data-role']
+ },
+ e
+ )
+ );
+ var o, i;
+ });
+ }
+ class Ff extends n.Component {
+ render() {
+ const {
+ source: e,
+ inline: t,
+ compact: r,
+ className: o,
+ 'data-role': i
+ } = this.props,
+ a = new jl();
+ return n.createElement(Mf, {
+ html: a.renderMd(e),
+ inline: t,
+ compact: r,
+ className: o,
+ 'data-role': i
+ });
+ }
+ }
+ const zf = ga.div`
+ position: relative;
+`,
+ Uf = ga.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);
+`,
+ Vf = ga.div`
+ background: #fff;
+ color: #000;
+ display: inline;
+ font-size: 0.85em;
+ white-space: nowrap;
+`,
+ Bf = ga.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;
+`,
+ qf = ga.div`
+ position: absolute;
+ width: 100%;
+ height: 20px;
+ bottom: -20px;
+`;
+ class Wf extends n.Component {
+ render() {
+ const { open: e, title: t, children: r } = this.props;
+ return n.createElement(
+ zf,
+ null,
+ r,
+ e &&
+ n.createElement(
+ Uf,
+ null,
+ n.createElement(Vf, null, t),
+ n.createElement(Bf, null),
+ n.createElement(qf, null)
+ )
+ );
+ }
+ }
+ const Hf =
+ 'undefined' != typeof document &&
+ document.queryCommandSupported &&
+ document.queryCommandSupported('copy');
+ class Yf {
+ static isSupported() {
+ return Hf;
+ }
+ 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) {
+ Yf.selectElement(e);
+ const t = Yf.copySelected();
+ return t && Yf.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 = Yf.copySelected();
+ return document.body.removeChild(t), n;
+ }
+ }
+ const Kf = (e) => {
+ const [t, r] = n.useState(!1),
+ o = () => {
+ const t =
+ 'string' == typeof e.data
+ ? e.data
+ : JSON.stringify(e.data, null, 2);
+ Yf.copyCustom(t), i();
+ },
+ i = () => {
+ r(!0),
+ setTimeout(() => {
+ r(!1);
+ }, 1500);
+ };
+ return e.children({
+ renderCopyButton: () =>
+ n.createElement(
+ 'button',
+ { onClick: o },
+ n.createElement(
+ Wf,
+ {
+ title: Yf.isSupported()
+ ? 'Copied'
+ : 'Not supported in your browser',
+ open: t
+ },
+ 'Copy'
+ )
+ )
+ });
+ };
+ let Gf = 1;
+ function Qf(e, t) {
+ Gf = 1;
+ let n = '';
+ return (
+ (n += ''),
+ (n += ''),
+ (n += th(e, t)),
+ (n += ''),
+ (n += '
'),
+ n
+ );
+ }
+ function Xf(e) {
+ return void 0 !== e
+ ? e
+ .toString()
+ .replace(/&/g, '&')
+ .replace(/"/g, '"')
+ .replace(//g, '>')
+ : '';
+ }
+ function Jf(e) {
+ return JSON.stringify(e).slice(1, -1);
+ }
+ function Zf(e, t) {
+ return '' + Xf(e) + '';
+ }
+ function eh(e) {
+ return '' + e + '';
+ }
+ function th(e, t) {
+ const n = typeof e;
+ let r = '';
+ return (
+ null == e
+ ? (r += Zf('null', 'token keyword'))
+ : e && e.constructor === Array
+ ? (Gf++,
+ (r += (function (e, t) {
+ const n = Gf > t ? 'collapsed' : '';
+ let r = `${eh('[')}`,
+ o = !1;
+ const i = e.length;
+ for (let a = 0; a < i; a++)
+ (o = !0),
+ (r += ''),
+ (r += th(e[a], t)),
+ a < i - 1 && (r += ','),
+ (r += '
');
+ return (r += `
${eh(']')}`), o || (r = eh('[ ]')), r;
+ })(e, t)),
+ Gf--)
+ : e && e.constructor === Date
+ ? (r += Zf('"' + e.toISOString() + '"', 'token string'))
+ : 'object' === n
+ ? (Gf++,
+ (r += (function (e, t) {
+ const n = Gf > t ? 'collapsed' : '',
+ r = Object.keys(e),
+ o = r.length;
+ let i = `${eh('{')}`,
+ a = !1;
+ for (let s = 0; s < o; s++) {
+ const l = r[s];
+ (a = !0),
+ (i += ''),
+ (i +=
+ '"' +
+ Xf(l) +
+ '": '),
+ (i += th(e[l], t)),
+ s < o - 1 && (i += eh(',')),
+ (i += '
');
+ }
+ return (
+ (i += `
${eh('}')}`), a || (i = eh('{ }')), i
+ );
+ })(e, t)),
+ Gf--)
+ : 'number' === n
+ ? (r += Zf(e, 'token number'))
+ : 'string' === n
+ ? /^(http|https):\/\/[^\s]+$/.test(e)
+ ? (r +=
+ Zf('"', 'token string') +
+ '' +
+ Xf(Jf(e)) +
+ '' +
+ Zf('"', 'token string'))
+ : (r += Zf('"' + Jf(e) + '"', 'token string'))
+ : 'boolean' === n && (r += Zf(e, 'token boolean')),
+ r
+ );
+ }
+ const nh = pa`
+ .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;
+ }
+`,
+ rh = ga.div`
+ &:hover > ${Mp} {
+ opacity: 1;
+ }
+`,
+ oh = ga((e) => {
+ const [t, r] = n.useState(),
+ o = ({ renderCopyButton: t }) => {
+ const o =
+ e.data &&
+ Object.values(e.data).some(
+ (e) => 'object' == typeof e && null !== e
+ );
+ return n.createElement(
+ rh,
+ null,
+ n.createElement(
+ Mp,
+ null,
+ t(),
+ o &&
+ n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ 'button',
+ { onClick: i },
+ ' Expand all '
+ ),
+ n.createElement(
+ 'button',
+ { onClick: a },
+ ' Collapse all '
+ )
+ )
+ ),
+ n.createElement(Sa.Consumer, null, (t) =>
+ n.createElement(Lp, {
+ className: e.className,
+ ref: (e) => r(e),
+ dangerouslySetInnerHTML: {
+ __html: Qf(e.data, t.jsonSampleExpandLevel)
+ }
+ })
+ )
+ );
+ },
+ i = () => {
+ 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(Kf, { data: e.data }, o)
+ );
+ })`
+ ${nh};
+`,
+ ih = (e) => {
+ const { source: t, lang: r } = e;
+ return n.createElement(zp, {
+ dangerouslySetInnerHTML: { __html: vs(t, r) }
+ });
+ },
+ ah = (e) => {
+ const { source: t, lang: r } = e;
+ return n.createElement(Kf, { data: t }, ({ renderCopyButton: e }) =>
+ n.createElement(
+ Fp,
+ null,
+ n.createElement(Mp, null, e()),
+ n.createElement(ih, { lang: r, source: t })
+ )
+ );
+ };
+ function sh({ value: e, mimeType: t }) {
+ return es(t)
+ ? n.createElement(oh, { data: e })
+ : ('object' == typeof e && (e = JSON.stringify(e, null, 2)),
+ n.createElement(ah, {
+ 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;
+ }
+ function lh({ example: e, mimeType: t }) {
+ return void 0 === e.value && e.externalValueUrl
+ ? n.createElement(ch, { example: e, mimeType: t })
+ : n.createElement(sh, { value: e.value, mimeType: t });
+ }
+ function ch({ example: e, mimeType: t }) {
+ const r = (function (e, t) {
+ const [, r] = (0, n.useState)(!0),
+ o = (0, n.useRef)(void 0),
+ i = (0, n.useRef)(void 0);
+ return (
+ i.current !== e && (o.current = void 0),
+ (i.current = e),
+ (0, n.useEffect)(() => {
+ (() => {
+ return (
+ (n = this),
+ (i = function* () {
+ r(!0);
+ try {
+ o.current = yield e.getExternalValue(t);
+ } catch (e) {
+ o.current = e;
+ }
+ r(!1);
+ }),
+ new Promise((e, t) => {
+ var r = (e) => {
+ try {
+ a(i.next(e));
+ } catch (e) {
+ t(e);
+ }
+ },
+ o = (e) => {
+ try {
+ a(i.throw(e));
+ } catch (e) {
+ t(e);
+ }
+ },
+ a = (t) =>
+ t.done
+ ? e(t.value)
+ : Promise.resolve(t.value).then(r, o);
+ a((i = i.apply(n, null)).next());
+ })
+ );
+ var n, i;
+ })();
+ }, [e, t]),
+ o.current
+ );
+ })(e, t);
+ return void 0 === r
+ ? n.createElement('span', null, 'Loading...')
+ : r instanceof Error
+ ? n.createElement(
+ zp,
+ 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(sh, { value: r, mimeType: t });
+ }
+ const uh = ga.div`
+ padding: 0.9em;
+ background-color: ${({ theme: e }) => Ur(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;
+`,
+ ph = ga.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 }) => Ur(0.3, e.rightPanel.textColor)};
+`,
+ dh = ga.div`
+ position: relative;
+`,
+ fh = ga(Cd)`
+ 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 }) => Ur(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 }) => Ur(0.3, e.rightPanel.backgroundColor)};
+ }
+`,
+ hh = ga.div`
+ font-family: ${(e) => e.theme.typography.code.fontFamily};
+ font-size: 12px;
+ color: #ee807f;
+`;
+ class mh 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,
+ o = n.createElement(hh, null, 'No sample'),
+ i = Object.keys(t);
+ if (0 === i.length) return o;
+ if (i.length > 1) {
+ const o = i.map((e, n) => ({ value: t[e].summary || e, idx: n })),
+ a = t[i[e]],
+ s = a.description;
+ return n.createElement(
+ gh,
+ null,
+ n.createElement(
+ dh,
+ null,
+ n.createElement(ph, null, 'Example'),
+ this.props.renderDropdown({
+ value: o[e].value,
+ options: o,
+ onChange: this.switchMedia,
+ ariaLabel: 'Example'
+ })
+ ),
+ n.createElement(
+ 'div',
+ null,
+ s && n.createElement(Ff, { source: s }),
+ n.createElement(lh, { example: a, mimeType: r })
+ )
+ );
+ }
+ {
+ const e = t[i[0]];
+ return n.createElement(
+ gh,
+ null,
+ e.description && n.createElement(Ff, { source: e.description }),
+ n.createElement(lh, { example: e, mimeType: r })
+ );
+ }
+ }
+ }
+ const gh = ga.div`
+ margin-top: 15px;
+`;
+ if (!n.useState)
+ throw new Error('mobx-react-lite requires React with Hooks support');
+ if (!tn)
+ throw new Error(
+ 'mobx-react-lite@3 requires mobx at least version 6 to be available'
+ );
+ function yh(e) {
+ e();
+ }
+ var vh = [];
+ function bh(e) {
+ return Dt(Bn(e, t));
+ var t;
+ }
+ var wh =
+ 'undefined' == typeof FinalizationRegistry
+ ? void 0
+ : FinalizationRegistry;
+ function xh(e) {
+ return {
+ reaction: e,
+ mounted: !1,
+ changedBeforeMount: !1,
+ cleanAt: Date.now() + kh
+ };
+ }
+ var kh = 1e4,
+ _h = wh
+ ? (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, o, i) {
+ var a = n++;
+ return (
+ r.register(i, a, e),
+ (e.current = xh(o)),
+ (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 () {}
+ };
+ })(wh)
+ : (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, o) {
+ var i;
+ return (
+ (e.current = xh(r)), (i = e), t.add(i), 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 o = (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),
+ i = o.next();
+ !i.done;
+ i = o.next()
+ ) {
+ var a = i.value,
+ s = a.current;
+ s && (s.reaction.dispose(), (a.current = null));
+ }
+ } catch (e) {
+ n = { error: e };
+ } finally {
+ try {
+ i && !i.done && (r = o.return) && r.call(o);
+ } finally {
+ if (n) throw n.error;
+ }
+ }
+ t.clear();
+ }
+ e && (clearTimeout(e), (e = void 0));
+ }
+ };
+ })(),
+ Oh = _h.addReactionToTrack,
+ Sh = _h.recordReactionAsCommitted,
+ Eh =
+ (_h.resetCleanupScheduleForTests,
+ _h.forceCleanupTimerToRunNowForTests,
+ !1);
+ function Ph() {
+ return Eh;
+ }
+ function Ah(e) {
+ return 'observer' + e;
+ }
+ var $h = function () {};
+ function Ch(e, t) {
+ if ((void 0 === t && (t = 'observed'), Ph())) return e();
+ var r,
+ o = (function (e, t) {
+ var n = 'function' == typeof Symbol && e[Symbol.iterator];
+ if (!n) return e;
+ var r,
+ o,
+ i = n.call(e),
+ a = [];
+ try {
+ for (; (void 0 === t || t-- > 0) && !(r = i.next()).done; )
+ a.push(r.value);
+ } catch (e) {
+ o = { error: e };
+ } finally {
+ try {
+ r && !r.done && (n = i.return) && n.call(i);
+ } finally {
+ if (o) throw o.error;
+ }
+ }
+ return a;
+ })(n.useState(new $h()), 1)[0],
+ i =
+ ((r = (function (e, t) {
+ var n = 'function' == typeof Symbol && e[Symbol.iterator];
+ if (!n) return e;
+ var r,
+ o,
+ i = n.call(e),
+ a = [];
+ try {
+ for (; (void 0 === t || t-- > 0) && !(r = i.next()).done; )
+ a.push(r.value);
+ } catch (e) {
+ o = { error: e };
+ } finally {
+ try {
+ r && !r.done && (n = i.return) && n.call(i);
+ } finally {
+ if (o) throw o.error;
+ }
+ }
+ return a;
+ })((0, n.useState)(0), 2)[1]),
+ (0, n.useCallback)(function () {
+ r(function (e) {
+ return e + 1;
+ });
+ }, vh)),
+ a = n.useRef(null);
+ if (!a.current)
+ var s = new mt(Ah(t), function () {
+ l.mounted ? i() : (l.changedBeforeMount = !0);
+ }),
+ l = Oh(a, s, o);
+ var c,
+ u,
+ p = a.current.reaction;
+ if (
+ (n.useDebugValue(p, bh),
+ n.useEffect(function () {
+ return (
+ Sh(a),
+ a.current
+ ? ((a.current.mounted = !0),
+ a.current.changedBeforeMount &&
+ ((a.current.changedBeforeMount = !1), i()))
+ : ((a.current = {
+ reaction: new mt(Ah(t), function () {
+ i();
+ }),
+ mounted: !0,
+ changedBeforeMount: !1,
+ cleanAt: 1 / 0
+ }),
+ i()),
+ function () {
+ a.current.reaction.dispose(), (a.current = null);
+ }
+ );
+ }, []),
+ p.track(function () {
+ try {
+ c = e();
+ } catch (e) {
+ u = e;
+ }
+ }),
+ u)
+ )
+ throw u;
+ return c;
+ }
+ var Rh = function () {
+ return (
+ (Rh =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var o in (t = arguments[n]))
+ Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
+ return e;
+ }),
+ Rh.apply(this, arguments)
+ );
+ };
+ var jh = { $$typeof: !0, render: !0, compare: !0, type: !0 };
+ function Th(e) {
+ var t = e.children,
+ n = e.render,
+ r = t || n;
+ return 'function' != typeof r ? null : Ch(r);
+ }
+ (Th.displayName = 'Observer'),
+ (function (e) {
+ e || (e = yh), Nt({ reactionScheduler: e });
+ })(i.unstable_batchedUpdates);
+ var Ih = 0,
+ Nh = {};
+ function Dh(e) {
+ return (
+ Nh[e] ||
+ (Nh[e] = (function (e) {
+ if ('function' == typeof Symbol) return Symbol(e);
+ var t = '__$mobx-react ' + e + ' (' + Ih + ')';
+ return Ih++, t;
+ })(e)),
+ Nh[e]
+ );
+ }
+ function Lh(e, t) {
+ if (Mh(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 o = 0; o < n.length; o++)
+ if (!Object.hasOwnProperty.call(t, n[o]) || !Mh(e[n[o]], t[n[o]]))
+ return !1;
+ return !0;
+ }
+ function Mh(e, t) {
+ return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
+ }
+ function Fh(e, t, n) {
+ Object.hasOwnProperty.call(e, t)
+ ? (e[t] = n)
+ : Object.defineProperty(e, t, {
+ enumerable: !1,
+ configurable: !0,
+ writable: !0,
+ value: n
+ });
+ }
+ var zh = Dh('patchMixins'),
+ Uh = Dh('patchedDefinition');
+ function Vh(e, t) {
+ for (
+ var n = this,
+ r = arguments.length,
+ o = new Array(r > 2 ? r - 2 : 0),
+ i = 2;
+ i < r;
+ i++
+ )
+ o[i - 2] = arguments[i];
+ t.locks++;
+ try {
+ var a;
+ return null != e && (a = e.apply(this, o)), a;
+ } finally {
+ t.locks--,
+ 0 === t.locks &&
+ t.methods.forEach(function (e) {
+ e.apply(n, o);
+ });
+ }
+ }
+ function Bh(e, t) {
+ return function () {
+ for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
+ r[o] = arguments[o];
+ Vh.call.apply(Vh, [this, e, t].concat(r));
+ };
+ }
+ function qh(e, t, n) {
+ var r = (function (e, t) {
+ var n = (e[zh] = e[zh] || {}),
+ 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 o = Object.getOwnPropertyDescriptor(e, t);
+ if (!o || !o[Uh]) {
+ var i = e[t],
+ a = Wh(e, t, o ? o.enumerable : void 0, r, i);
+ Object.defineProperty(e, t, a);
+ }
+ }
+ function Wh(e, t, n, r, o) {
+ var i,
+ a = Bh(o, r);
+ return (
+ ((i = {})[Uh] = !0),
+ (i.get = function () {
+ return a;
+ }),
+ (i.set = function (o) {
+ if (this === e) a = Bh(o, r);
+ else {
+ var i = Wh(this, t, n, r, o);
+ Object.defineProperty(this, t, i);
+ }
+ }),
+ (i.configurable = !0),
+ (i.enumerable = n),
+ i
+ );
+ }
+ var Hh = W || '$mobx',
+ Yh = Dh('isMobXReactObserver'),
+ Kh = Dh('isUnmounted'),
+ Gh = Dh('skipRender'),
+ Qh = Dh('isForcingUpdate');
+ function Xh(e) {
+ var t = e.prototype;
+ if (e[Yh]) {
+ var r = Jh(t);
+ console.warn(
+ 'The provided component class (' +
+ r +
+ ') \n has already been declared as an observer component.'
+ );
+ } else e[Yh] = !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 !== em)
+ throw new Error(
+ 'It is not allowed to use shouldComponentUpdate in observer based components.'
+ );
+ } else t.shouldComponentUpdate = em;
+ tm(t, 'props'), tm(t, 'state');
+ var o = t.render;
+ return (
+ (t.render = function () {
+ return Zh.call(this, o);
+ }),
+ qh(t, 'componentWillUnmount', function () {
+ var e;
+ if (
+ !0 !== Ph() &&
+ (null == (e = this.render[Hh]) || e.dispose(),
+ (this[Kh] = !0),
+ !this.render[Hh])
+ ) {
+ var t = Jh(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 Jh(e) {
+ return (
+ e.displayName ||
+ e.name ||
+ (e.constructor &&
+ (e.constructor.displayName || e.constructor.name)) ||
+ ''
+ );
+ }
+ function Zh(e) {
+ var t = this;
+ if (!0 === Ph()) return e.call(this);
+ Fh(this, Gh, !1), Fh(this, Qh, !1);
+ var r = Jh(this),
+ o = e.bind(this),
+ i = !1,
+ a = new mt(r + '.render()', function () {
+ if (!i && ((i = !0), !0 !== t[Kh])) {
+ var e = !0;
+ try {
+ Fh(t, Qh, !0),
+ t[Gh] || n.Component.prototype.forceUpdate.call(t),
+ (e = !1);
+ } finally {
+ Fh(t, Qh, !1), e && a.dispose();
+ }
+ }
+ });
+ function s() {
+ i = !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, o);
+ } catch (t) {
+ e = t;
+ }
+ }),
+ e)
+ )
+ throw e;
+ return t;
+ }
+ return (
+ (a.reactComponent = this),
+ (s[Hh] = a),
+ (this.render = s),
+ s.call(this)
+ );
+ }
+ function em(e, t) {
+ return (
+ Ph() &&
+ 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 || !Lh(this.props, e)
+ );
+ }
+ function tm(e, t) {
+ var n = Dh('reactProp_' + t + '_valueHolder'),
+ r = Dh('reactProp_' + t + '_atomHolder');
+ function o() {
+ return this[r] || Fh(this, r, K('reactive ' + t)), this[r];
+ }
+ Object.defineProperty(e, t, {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var e = !1;
+ return (
+ nt && rt && (e = nt(!0)),
+ o.call(this).reportObserved(),
+ nt && rt && rt(e),
+ this[n]
+ );
+ },
+ set: function (e) {
+ this[Qh] || Lh(this[n], e)
+ ? Fh(this, n, e)
+ : (Fh(this, n, e),
+ Fh(this, Gh, !0),
+ o.call(this).reportChanged(),
+ Fh(this, Gh, !1));
+ }
+ });
+ }
+ var nm = 'function' == typeof Symbol && Symbol.for,
+ rm = nm
+ ? Symbol.for('react.forward_ref')
+ : 'function' == typeof n.forwardRef &&
+ (0, n.forwardRef)(function (e) {
+ return null;
+ }).$$typeof,
+ om = nm
+ ? Symbol.for('react.memo')
+ : 'function' == typeof n.memo &&
+ (0, n.memo)(function (e) {
+ return null;
+ }).$$typeof;
+ function im(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'"
+ ),
+ om && e.$$typeof === om)
+ )
+ 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 (rm && e.$$typeof === rm) {
+ 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)(Th, 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)
+ ? Xh(e)
+ : (function (e, t) {
+ if (Ph()) return e;
+ var r,
+ o,
+ i,
+ a = Rh({ forwardRef: !1 }, t),
+ s = e.displayName || e.name,
+ l = function (t, n) {
+ return Ch(function () {
+ return e(t, n);
+ }, s);
+ };
+ return (
+ (l.displayName = s),
+ (r = a.forwardRef
+ ? (0, n.memo)((0, n.forwardRef)(l))
+ : (0, n.memo)(l)),
+ (o = e),
+ (i = r),
+ Object.keys(o).forEach(function (e) {
+ jh[e] ||
+ Object.defineProperty(
+ i,
+ e,
+ Object.getOwnPropertyDescriptor(o, e)
+ );
+ }),
+ (r.displayName = s),
+ r
+ );
+ })(e);
+ }
+ if (!n.Component)
+ throw new Error('mobx-react requires React to be available');
+ if (!Ae) throw new Error('mobx-react requires mobx to be available');
+ const am = ga(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 &&
+ pa`
+ 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;
+ }
+ `}
+ }
+ ${Bu} {
+ height: ${({ theme: e }) => e.schema.arrow.size};
+ width: ${({ theme: e }) => e.schema.arrow.size};
+ polygon {
+ fill: ${({ theme: e }) => e.schema.arrow.color};
+ }
+ }
+`,
+ sm = ga.span`
+ vertical-align: middle;
+ font-size: ${({ theme: e }) => e.typography.code.fontSize};
+ line-height: 20px;
+`,
+ lm = ga(sm)`
+ color: ${(e) => Ur(0.1, e.theme.schema.typeNameColor)};
+`,
+ cm = ga(sm)`
+ color: ${(e) => e.theme.schema.typeNameColor};
+`,
+ um = ga(sm)`
+ color: ${(e) => e.theme.schema.typeTitleColor};
+ word-break: break-word;
+`,
+ pm = cm,
+ dm = ga(sm.withComponent('div'))`
+ color: ${(e) => e.theme.schema.requireLabelColor};
+ font-size: ${(e) => e.theme.schema.labelsTextSize};
+ font-weight: normal;
+ margin-left: 20px;
+ line-height: 1;
+`,
+ fm = ga(dm)`
+ color: ${(e) => e.theme.colors.primary.light};
+`,
+ hm = ga(sm)`
+ color: ${({ theme: e }) => e.colors.warning.main};
+ font-size: 13px;
+`,
+ mm = ga(sm)`
+ color: #0e7c86;
+ &::before,
+ &::after {
+ font-weight: bold;
+ }
+`,
+ gm = ga(sm)`
+ border-radius: 2px;
+ word-break: break-word;
+ ${({ theme: e }) => `\n background-color: ${Ur(0.95, e.colors.text.primary)};\n color: ${Ur(0.1, e.colors.text.primary)};\n\n padding: 0 ${e.spacing.unit}px;\n border: 1px solid ${Ur(0.9, e.colors.text.primary)};\n font-family: ${e.typography.code.fontFamily};\n}`};
+ & + & {
+ margin-left: 0;
+ }
+ ${ya('ExampleValue')};
+`,
+ ym = ga(gm)``,
+ vm = ga(sm)`
+ border-radius: 2px;
+ ${({ theme: e }) => `\n background-color: ${Ur(0.95, e.colors.primary.light)};\n color: ${Ur(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 ${Ur(0.9, e.colors.primary.main)};\n}`};
+ & + & {
+ margin-left: 0;
+ }
+ ${ya('ConstraintItem')};
+`,
+ bm = ga.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 wm = ga.div`
+ ${Cf};
+ ${({ compact: e }) => (e ? '' : 'margin: 1em 0')}
+`;
+ let xm = class extends n.Component {
+ render() {
+ const { externalDocs: e } = this.props;
+ return e && e.url
+ ? n.createElement(
+ wm,
+ { compact: this.props.compact },
+ n.createElement('a', { href: e.url }, e.description || e.url)
+ )
+ : null;
+ }
+ };
+ xm = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], xm);
+ class km 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: o, maxDisplayedEnumValues: i } = this.context;
+ if (!e.length) return null;
+ const a = this.state.collapsed && i ? e.slice(0, i) : e,
+ s = !!i && e.length > i,
+ l = i ? (r ? `… ${e.length - i} more` : 'Hide') : '';
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ sm,
+ null,
+ t ? lo('enumArray') : '',
+ ' ',
+ 1 === e.length ? lo('enumSingleValue') : lo('enum'),
+ ':'
+ ),
+ ' ',
+ a.map((e, t) => {
+ const r = o ? String(e) : JSON.stringify(e);
+ return n.createElement(
+ n.Fragment,
+ { key: t },
+ n.createElement(gm, null, r),
+ ' '
+ );
+ }),
+ s
+ ? n.createElement(
+ _m,
+ {
+ onClick: () => {
+ this.toggle();
+ }
+ },
+ l
+ )
+ : null
+ );
+ }
+ }
+ km.contextType = Sa;
+ const _m = ga.span`
+ color: ${(e) => e.theme.colors.primary.main};
+ vertical-align: middle;
+ font-size: 13px;
+ line-height: 20px;
+ padding: 0 5px;
+ cursor: pointer;
+`,
+ Om = ga(Rf)`
+ margin: 2px 0;
+`;
+ class Sm extends n.PureComponent {
+ render() {
+ const e = this.props.extensions;
+ return n.createElement(Sa.Consumer, null, (t) =>
+ n.createElement(
+ n.Fragment,
+ null,
+ t.showExtensions &&
+ Object.keys(e).map((t) =>
+ n.createElement(
+ Om,
+ { key: t },
+ n.createElement(sm, null, ' ', t.substring(2), ': '),
+ ' ',
+ n.createElement(
+ ym,
+ null,
+ 'string' == typeof e[t] ? e[t] : JSON.stringify(e[t])
+ )
+ )
+ )
+ )
+ );
+ }
+ }
+ function Em({ field: e }) {
+ return e.examples
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(sm, null, ' ', lo('examples'), ': '),
+ io(e.examples)
+ ? e.examples.map((t, r) => {
+ const o = is(e, t),
+ i = e.in ? String(o) : JSON.stringify(o);
+ return n.createElement(
+ n.Fragment,
+ { key: r },
+ n.createElement(gm, null, i),
+ ' '
+ );
+ })
+ : n.createElement(
+ Pm,
+ null,
+ Object.values(e.examples).map((t, r) =>
+ n.createElement(
+ 'li',
+ { key: r + t.value },
+ n.createElement(gm, null, is(e, t.value)),
+ ' -',
+ ' ',
+ t.summary || t.description
+ )
+ )
+ )
+ )
+ : null;
+ }
+ const Pm = ga.ul`
+ margin-top: 1em;
+ list-style-position: outside;
+`;
+ class Am extends n.PureComponent {
+ render() {
+ return 0 === this.props.constraints.length
+ ? null
+ : n.createElement(
+ 'span',
+ null,
+ ' ',
+ this.props.constraints.map((e) =>
+ n.createElement(vm, { key: e }, ' ', e, ' ')
+ )
+ );
+ }
+ }
+ const $m = n.memo(function ({ value: e, label: t, raw: r }) {
+ if (void 0 === e) return null;
+ const o = r ? String(e) : JSON.stringify(e);
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(sm, null, ' ', t, ' '),
+ ' ',
+ n.createElement(gm, null, o)
+ );
+ });
+ function Cm(e) {
+ const t = e.schema.pattern,
+ { hideSchemaPattern: r } = n.useContext(Sa),
+ [o, i] = n.useState(!1),
+ a = n.useCallback(() => i(!o), [o]);
+ return !t || r
+ ? null
+ : n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ mm,
+ null,
+ o || t.length < 45 ? t : `${t.substr(0, 45)}...`
+ ),
+ t.length > 45 &&
+ n.createElement(
+ bm,
+ { onClick: a },
+ o ? 'Hide pattern' : 'Show pattern'
+ )
+ );
+ }
+ function Rm({ schema: e }) {
+ const { hideSchemaPattern: t } = n.useContext(Sa);
+ return e &&
+ ('string' !== e.type || e.constraints.length) &&
+ (((null == e ? void 0 : e.pattern) && !t) ||
+ e.items ||
+ e.displayFormat ||
+ e.constraints.length)
+ ? n.createElement(
+ jm,
+ null,
+ '[ items',
+ e.displayFormat &&
+ n.createElement(pm, null, ' <', e.displayFormat, ' >'),
+ n.createElement(Am, { constraints: e.constraints }),
+ n.createElement(Cm, { schema: e }),
+ e.items && n.createElement(Rm, { schema: e.items }),
+ ' ]'
+ )
+ : null;
+ }
+ const jm = ga(lm)`
+ margin: 0 5px;
+ vertical-align: text-top;
+`;
+ var Tm = Object.defineProperty,
+ Im = Object.getOwnPropertySymbols,
+ Nm = Object.prototype.hasOwnProperty,
+ Dm = Object.prototype.propertyIsEnumerable,
+ Lm = (e, t, n) =>
+ t in e
+ ? Tm(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Mm = (e, t) => {
+ for (var n in t || (t = {})) Nm.call(t, n) && Lm(e, n, t[n]);
+ if (Im) for (var n of Im(t)) Dm.call(t, n) && Lm(e, n, t[n]);
+ return e;
+ };
+ const Fm = im((e) => {
+ const { enumSkipQuotes: t, hideSchemaTitles: r } = n.useContext(Sa),
+ { showExamples: o, field: i, renderDiscriminatorSwitch: a } = e,
+ {
+ schema: s,
+ description: l,
+ deprecated: c,
+ extensions: u,
+ in: p,
+ const: d
+ } = i,
+ f = 'array' === s.type,
+ h = t || 'header' === p,
+ m = n.useMemo(
+ () =>
+ !o || (void 0 === i.example && void 0 === i.examples)
+ ? null
+ : void 0 !== i.examples
+ ? n.createElement(Em, { field: i })
+ : n.createElement($m, {
+ label: lo('example') + ':',
+ value: is(i, i.example),
+ raw: Boolean(i.in)
+ }),
+ [i, o]
+ );
+ return n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(lm, null, s.typePrefix),
+ n.createElement(cm, null, s.displayType),
+ s.displayFormat &&
+ n.createElement(
+ pm,
+ null,
+ ' ',
+ '<',
+ s.displayFormat,
+ '>',
+ ' '
+ ),
+ s.contentEncoding &&
+ n.createElement(
+ pm,
+ null,
+ ' ',
+ '<',
+ s.contentEncoding,
+ '>',
+ ' '
+ ),
+ s.contentMediaType &&
+ n.createElement(
+ pm,
+ null,
+ ' ',
+ '<',
+ s.contentMediaType,
+ '>',
+ ' '
+ ),
+ s.title && !r && n.createElement(um, null, ' (', s.title, ') '),
+ n.createElement(Am, { constraints: s.constraints }),
+ n.createElement(Cm, { schema: s }),
+ s.isCircular &&
+ n.createElement(hm, null, ' ', lo('recursive'), ' '),
+ f && s.items && n.createElement(Rm, { schema: s.items })
+ ),
+ c &&
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ qu,
+ { type: 'warning' },
+ ' ',
+ lo('deprecated'),
+ ' '
+ )
+ ),
+ n.createElement($m, {
+ raw: h,
+ label: lo('default') + ':',
+ value: s.default
+ }),
+ !a && n.createElement(km, { isArrayType: f, values: s.enum }),
+ ' ',
+ m,
+ n.createElement(Sm, { extensions: Mm(Mm({}, u), s.extensions) }),
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(Ff, { compact: !0, source: l })
+ ),
+ s.externalDocs &&
+ n.createElement(xm, {
+ externalDocs: s.externalDocs,
+ compact: !0
+ }),
+ (a && a(e)) || null,
+ (d &&
+ n.createElement($m, { label: lo('const') + ':', value: d })) ||
+ null
+ );
+ }),
+ zm = n.memo(Fm);
+ var Um = Object.defineProperty,
+ Vm = (Object.getOwnPropertyDescriptor, Object.getOwnPropertySymbols),
+ Bm = Object.prototype.hasOwnProperty,
+ qm = Object.prototype.propertyIsEnumerable,
+ Wm = (e, t, n) =>
+ t in e
+ ? Um(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ let Hm = 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: o
+ } = this.props,
+ { name: i, deprecated: a, required: s, kind: l } = t,
+ c = !t.schema.isPrimitive && !t.schema.isCircular,
+ u = void 0 === t.expanded ? o : t.expanded,
+ p = n.createElement(
+ n.Fragment,
+ null,
+ 'additionalProperties' === l &&
+ n.createElement(fm, null, 'additional property'),
+ 'patternProperties' === l &&
+ n.createElement(fm, null, 'pattern property'),
+ s && n.createElement(dm, null, 'required')
+ ),
+ d = c
+ ? n.createElement(
+ am,
+ { className: a ? 'deprecated' : '', kind: l, title: i },
+ n.createElement(Xu, null),
+ n.createElement(
+ 'button',
+ {
+ onClick: this.toggle,
+ onKeyPress: this.handleKeyPress,
+ 'aria-label': 'expand properties'
+ },
+ n.createElement(
+ 'span',
+ { className: 'property-name' },
+ i
+ ),
+ n.createElement(Bu, { direction: u ? 'down' : 'right' })
+ ),
+ p
+ )
+ : n.createElement(
+ Gu,
+ { className: a ? 'deprecated' : void 0, kind: l, title: i },
+ n.createElement(Xu, null),
+ n.createElement('span', { className: 'property-name' }, i),
+ p
+ );
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ 'tr',
+ { className: r ? 'last ' + e : e },
+ d,
+ n.createElement(
+ Qu,
+ null,
+ n.createElement(
+ zm,
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ Bm.call(t, n) && Wm(e, n, t[n]);
+ if (Vm)
+ for (var n of Vm(t)) qm.call(t, n) && Wm(e, n, t[n]);
+ return e;
+ })({}, this.props)
+ )
+ )
+ ),
+ u &&
+ c &&
+ n.createElement(
+ 'tr',
+ { key: t.name + 'inner' },
+ n.createElement(
+ Ku,
+ { colSpan: 2 },
+ n.createElement(
+ Ju,
+ null,
+ n.createElement(Pg, {
+ schema: t.schema,
+ skipReadOnly: this.props.skipReadOnly,
+ skipWriteOnly: this.props.skipWriteOnly,
+ showTitle: this.props.showTitle,
+ level: this.props.level
+ })
+ )
+ )
+ )
+ );
+ }
+ };
+ Hm = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Hm);
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Ym = 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 })),
+ o = r[e.activeOneOf].value;
+ return (
+ this.sortOptions(r, t),
+ n.createElement(Cd, {
+ value: o,
+ options: r,
+ onChange: this.changeActiveChild,
+ ariaLabel: 'Example'
+ })
+ );
+ }
+ };
+ Ym = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Ym);
+ const Km = im(
+ ({
+ schema: { fields: e = [], title: t },
+ showTitle: r,
+ discriminator: o,
+ skipReadOnly: i,
+ skipWriteOnly: a,
+ level: s
+ }) => {
+ const {
+ expandSingleSchemaField: l,
+ showObjectSchemaExamples: c,
+ schemaExpansionLevel: u
+ } = n.useContext(Sa),
+ p = n.useMemo(
+ () =>
+ i || a
+ ? e.filter(
+ (e) =>
+ !(
+ (i && e.schema.readOnly) ||
+ (a && e.schema.writeOnly)
+ )
+ )
+ : e,
+ [i, a, e]
+ ),
+ d = (l && 1 === p.length) || u >= s;
+ return n.createElement(
+ Zu,
+ null,
+ r && n.createElement(Hu, null, t),
+ n.createElement(
+ 'tbody',
+ null,
+ Gr(p, (e, t) =>
+ n.createElement(Hm, {
+ key: e.name,
+ isLast: t,
+ field: e,
+ expandByDefault: d,
+ renderDiscriminatorSwitch:
+ (null == o ? void 0 : o.fieldName) === e.name
+ ? () =>
+ n.createElement(Ym, {
+ parent: o.parentSchema,
+ enumValues: e.schema.enum
+ })
+ : void 0,
+ className: e.expanded ? 'expanded' : void 0,
+ showExamples: c,
+ skipReadOnly: i,
+ skipWriteOnly: a,
+ showTitle: r,
+ level: s
+ })
+ )
+ )
+ );
+ }
+ );
+ var Gm = Object.defineProperty,
+ Qm = Object.defineProperties,
+ Xm = Object.getOwnPropertyDescriptors,
+ Jm = Object.getOwnPropertySymbols,
+ Zm = Object.prototype.hasOwnProperty,
+ eg = Object.prototype.propertyIsEnumerable,
+ tg = (e, t, n) =>
+ t in e
+ ? Gm(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ ng = (e, t) => {
+ for (var n in t || (t = {})) Zm.call(t, n) && tg(e, n, t[n]);
+ if (Jm) for (var n of Jm(t)) eg.call(t, n) && tg(e, n, t[n]);
+ return e;
+ },
+ rg = (e, t) => Qm(e, Xm(t));
+ const og = ga.div`
+ padding-left: ${({ theme: e }) => 2 * e.spacing.unit}px;
+`;
+ class ig extends n.PureComponent {
+ render() {
+ const e = this.props.schema,
+ t = e.items,
+ r =
+ void 0 === e.minItems && void 0 === e.maxItems
+ ? ''
+ : `(${us(e)})`;
+ return e.fields
+ ? n.createElement(
+ Km,
+ rg(ng({}, this.props), { level: this.props.level })
+ )
+ : !e.displayType || t || r.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(rp, null, ' Array ', r),
+ n.createElement(
+ og,
+ null,
+ n.createElement(Pg, rg(ng({}, this.props), { schema: t }))
+ ),
+ n.createElement(op, null)
+ )
+ : n.createElement(
+ 'div',
+ null,
+ n.createElement(cm, null, e.displayType)
+ );
+ }
+ }
+ var ag = Object.defineProperty,
+ sg = Object.defineProperties,
+ lg = Object.getOwnPropertyDescriptor,
+ cg = Object.getOwnPropertyDescriptors,
+ ug = Object.getOwnPropertySymbols,
+ pg = Object.prototype.hasOwnProperty,
+ dg = Object.prototype.propertyIsEnumerable,
+ fg = (e, t, n) =>
+ t in e
+ ? ag(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ hg = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? lg(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && ag(t, n, i), i;
+ };
+ let mg = 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
+ );
+ }
+ };
+ mg = hg([im], mg);
+ let gg = 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(mg, {
+ key: e.pointer,
+ schema: t,
+ subSchema: e,
+ idx: r
+ })
+ )
+ ),
+ n.createElement(
+ 'div',
+ null,
+ e[t.activeOneOf].deprecated &&
+ n.createElement(qu, { type: 'warning' }, 'Deprecated')
+ ),
+ n.createElement(Am, { constraints: r.constraints }),
+ n.createElement(
+ Pg,
+ ((e, t) => sg(e, cg(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ pg.call(t, n) && fg(e, n, t[n]);
+ if (ug)
+ for (var n of ug(t)) dg.call(t, n) && fg(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ { schema: r }
+ )
+ )
+ );
+ }
+ };
+ gg = hg([im], gg);
+ const yg = im(({ schema: e }) =>
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(cm, null, e.displayType),
+ e.title && n.createElement(um, null, ' ', e.title, ' '),
+ n.createElement(hm, null, ' ', lo('recursive'), ' ')
+ )
+ );
+ var vg = Object.defineProperty,
+ bg = Object.defineProperties,
+ wg =
+ (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ xg = Object.getOwnPropertySymbols,
+ kg = Object.prototype.hasOwnProperty,
+ _g = Object.prototype.propertyIsEnumerable,
+ Og = (e, t, n) =>
+ t in e
+ ? vg(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ Sg = (e, t) => {
+ for (var n in t || (t = {})) kg.call(t, n) && Og(e, n, t[n]);
+ if (xg) for (var n of xg(t)) _g.call(t, n) && Og(e, n, t[n]);
+ return e;
+ },
+ Eg = (e, t) => bg(e, wg(t));
+ let Pg = class extends n.Component {
+ render() {
+ var e;
+ const t = this.props,
+ { schema: r } = t,
+ o = ((e, t) => {
+ var n = {};
+ for (var r in e)
+ kg.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && xg)
+ for (var r of xg(e))
+ t.indexOf(r) < 0 && _g.call(e, r) && (n[r] = e[r]);
+ return n;
+ })(t, ['schema']),
+ i = (o.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(yg, { 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(yg, { schema: e })
+ : n.createElement(
+ Km,
+ Eg(Sg({}, o), {
+ level: i,
+ schema: e,
+ discriminator: { fieldName: l, parentSchema: r }
+ })
+ );
+ }
+ if (void 0 !== s) return n.createElement(gg, Sg({ schema: r }, o));
+ const u = io(a) ? a : [a];
+ if (u.includes('object')) {
+ if (null == (e = r.fields) ? void 0 : e.length)
+ return n.createElement(
+ Km,
+ Eg(Sg({}, this.props), { level: i })
+ );
+ } else if (u.includes('array'))
+ return n.createElement(ig, Eg(Sg({}, this.props), { level: i }));
+ 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(zm, { field: p })
+ );
+ }
+ };
+ Pg = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Pg);
+ var Ag = Object.defineProperty,
+ $g = Object.defineProperties,
+ Cg = Object.getOwnPropertyDescriptors,
+ Rg = Object.getOwnPropertySymbols,
+ jg = Object.prototype.hasOwnProperty,
+ Tg = Object.prototype.propertyIsEnumerable,
+ Ig = (e, t, n) =>
+ t in e
+ ? Ag(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ class Ng extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = (e) => {
+ return n.createElement(
+ Af,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {}))
+ jg.call(t, n) && Ig(e, n, t[n]);
+ if (Rg)
+ for (var n of Rg(t)) Tg.call(t, n) && Ig(e, n, t[n]);
+ return e;
+ })({ Label: jd, Dropdown: fh }, e)),
+ $g(t, Cg({ 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,
+ Ng.getMediaType(t, n),
+ r
+ )),
+ this._mediaModel
+ );
+ }
+ render() {
+ const { showReadOnly: e = !0, showWriteOnly: t = !1 } = this.props;
+ return n.createElement(
+ Su,
+ null,
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Ou,
+ null,
+ n.createElement(Pg, {
+ skipWriteOnly: !t,
+ skipReadOnly: !e,
+ schema: this.mediaModel.schema
+ })
+ ),
+ n.createElement(
+ Pu,
+ null,
+ n.createElement(
+ Dg,
+ null,
+ n.createElement(mh, {
+ renderDropdown: this.renderDropdown,
+ mediaType: this.mediaModel
+ })
+ )
+ )
+ )
+ );
+ }
+ }
+ const Dg = ga.div`
+ background: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ & > div,
+ & > pre {
+ padding: ${(e) => 4 * e.theme.spacing.unit}px;
+ margin: 0;
+ }
+
+ & > div > pre {
+ padding: 0;
+ }
+`,
+ Lg =
+ (ca.div`
+ background-color: #e4e7eb;
+`,
+ ca.ul`
+ display: inline;
+ list-style: none;
+ padding: 0;
+
+ li {
+ display: inherit;
+
+ &:after {
+ content: ',';
+ }
+ &:last-child:after {
+ content: none;
+ }
+ }
+`,
+ ca.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;
+ }
+`),
+ Mg = ca.span`
+ &:after {
+ content: ' and ';
+ font-weight: normal;
+ }
+
+ &:last-child:after {
+ content: none;
+ }
+
+ ${Cf};
+`,
+ Fg = ca.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;
+ }
+
+ ${Cf};
+`,
+ zg = ca.div`
+ flex: 1 1 auto;
+ cursor: pointer;
+`,
+ Ug = ca.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 `};
+ ${ma('small')`
+ margin-top: 10px;
+ `}
+`,
+ Vg = ca(Iu)`
+ display: inline-block;
+ margin: 0;
+`,
+ Bg = ca.div`
+ width: 100%;
+ display: flex;
+ margin: 1em 0;
+ flex-direction: ${(e) => (e.expanded ? 'column' : 'row')};
+ ${ma('small')`
+ flex-direction: column;
+ `}
+`,
+ qg = ca.div`
+ margin: 0.5em 0;
+`,
+ Wg = ca.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 Hg({ children: e, height: t }) {
+ const r = n.createRef(),
+ [o, i] = 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(
+ Yg,
+ {
+ ref: r,
+ className: o ? '' : 'container',
+ style: { height: o ? 'auto' : t }
+ },
+ e
+ ),
+ n.createElement(
+ Kg,
+ { dimmed: !o },
+ a &&
+ n.createElement(
+ Gg,
+ {
+ onClick: () => {
+ i(!o);
+ }
+ },
+ o ? 'See less' : 'See more'
+ )
+ )
+ )
+ );
+ }
+ const Yg = ca.div`
+ overflow-y: hidden;
+`,
+ Kg = ca.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 '}
+`,
+ Gg = ca.a`
+ cursor: pointer;
+`,
+ Qg = n.memo(function (e) {
+ const { type: t, flow: r, RequiredScopes: o } = e,
+ i = Object.keys((null == r ? void 0 : r.scopes) || {});
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ qg,
+ null,
+ n.createElement('b', null, 'Flow type: '),
+ n.createElement('code', null, t, ' ')
+ ),
+ ('implicit' === t || 'authorizationCode' === t) &&
+ n.createElement(
+ qg,
+ 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(
+ qg,
+ null,
+ n.createElement('b', null, ' Token URL: '),
+ n.createElement('code', null, r.tokenUrl)
+ ),
+ r.refreshUrl &&
+ n.createElement(
+ qg,
+ null,
+ n.createElement('strong', null, ' Refresh URL: '),
+ r.refreshUrl
+ ),
+ !!i.length &&
+ n.createElement(
+ n.Fragment,
+ null,
+ o || null,
+ n.createElement(
+ qg,
+ null,
+ n.createElement('b', null, ' Scopes: ')
+ ),
+ n.createElement(
+ Hg,
+ { height: '4em' },
+ n.createElement(
+ 'ul',
+ null,
+ i.map((e) =>
+ n.createElement(
+ 'li',
+ { key: e },
+ n.createElement('code', null, e),
+ ' -',
+ ' ',
+ n.createElement(Ff, {
+ className: 'redoc-markdown',
+ inline: !0,
+ source: r.scopes[e] || ''
+ })
+ )
+ )
+ )
+ )
+ )
+ );
+ });
+ function Xg(e) {
+ const { RequiredScopes: t, scheme: r } = e;
+ return n.createElement(
+ Rf,
+ null,
+ r.apiKey
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ qg,
+ null,
+ n.createElement(
+ 'b',
+ null,
+ (o = r.apiKey.in || '').charAt(0).toUpperCase() +
+ o.slice(1),
+ ' parameter name: '
+ ),
+ n.createElement('code', null, r.apiKey.name)
+ ),
+ t
+ )
+ : r.http
+ ? n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ qg,
+ null,
+ n.createElement('b', null, 'HTTP Authorization Scheme: '),
+ n.createElement('code', null, r.http.scheme)
+ ),
+ n.createElement(
+ qg,
+ 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(
+ qg,
+ 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(Qg, {
+ key: e,
+ type: e,
+ RequiredScopes: t,
+ flow: r.flows[e]
+ })
+ )
+ : null
+ );
+ var o;
+ }
+ const Jg = {
+ oauth2: 'OAuth2',
+ apiKey: 'API Key',
+ http: 'HTTP',
+ openIdConnect: 'OpenID Connect'
+ };
+ class Zg extends n.PureComponent {
+ render() {
+ return this.props.securitySchemes.schemes.map((e) =>
+ n.createElement(
+ Su,
+ { id: e.sectionId, key: e.id },
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Ou,
+ null,
+ n.createElement(
+ ju,
+ null,
+ n.createElement(Uu, { to: e.sectionId }),
+ e.displayName
+ ),
+ n.createElement(Ff, { source: e.description || '' }),
+ n.createElement(
+ Wg,
+ null,
+ n.createElement(
+ qg,
+ null,
+ n.createElement('b', null, 'Security Scheme Type: '),
+ n.createElement('span', null, Jg[e.type] || e.type)
+ ),
+ n.createElement(Xg, { scheme: e })
+ )
+ )
+ )
+ )
+ );
+ }
+ }
+ class ey {
+ constructor(e, t, n = {}, r = !0) {
+ var o, i, a, s;
+ (this.marker = new Ls()),
+ (this.disposer = null),
+ (this.rawOptions = n),
+ (this.options = new xo(n, ty)),
+ (this.scroll = new xf(this.options)),
+ yf.updateOnHistory(Ns.currentId, this.scroll),
+ (this.spec = new Xd(e, t, this.options)),
+ (this.menu = new yf(this.spec, this.scroll, Ns)),
+ this.options.disableSearch ||
+ ((this.search = new kf()),
+ r && this.search.indexItems(this.menu.items),
+ (this.disposer =
+ ((o = this.menu),
+ (i = 'activeItemIdx'),
+ w(
+ (a = (e) => {
+ this.updateMarkOnMenu(e.newValue);
+ })
+ )
+ ? (function (e, t, n, r) {
+ return qn(e, t).observe_(n, r);
+ })(o, i, a, s)
+ : (function (e, t, n) {
+ return qn(e).observe_(t, n);
+ })(o, i, a))));
+ }
+ static fromJS(e) {
+ const t = new ey(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, o) => {
+ var i = (e) => {
+ try {
+ s(n.next(e));
+ } catch (e) {
+ o(e);
+ }
+ },
+ a = (e) => {
+ try {
+ s(n.throw(e));
+ } catch (e) {
+ o(e);
+ }
+ },
+ s = (e) =>
+ e.done ? r(e.value) : Promise.resolve(e.value).then(i, 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 ty = {
+ allowedMdComponents: {
+ SecurityDefinitions: {
+ component: Zg,
+ propsSelector: (e) => ({
+ securitySchemes: e.spec.securitySchemes
+ })
+ },
+ 'security-definitions': {
+ component: Zg,
+ propsSelector: (e) => ({
+ securitySchemes: e.spec.securitySchemes
+ })
+ },
+ SchemaDefinition: {
+ component: Ng,
+ propsSelector: (e) => ({
+ parser: e.spec.parser,
+ options: e.options
+ })
+ }
+ }
+ },
+ ny = ga(Ru)`
+ margin-top: 0;
+ margin-bottom: 0.5em;
+
+ ${ya('ApiHeader')};
+`,
+ ry = ga.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;
+
+ ${ya('DownloadButton')};
+`,
+ oy = ga.span`
+ &::before {
+ content: '|';
+ display: inline-block;
+ opacity: 0.5;
+ width: ${15}px;
+ text-align: center;
+ }
+
+ &:last-child::after {
+ display: none;
+ }
+`,
+ iy = ga.div`
+ overflow: hidden;
+`,
+ ay = ga.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 sy = 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,
+ o = e.options.hideDownloadButton,
+ i = t.downloadFileName,
+ a = t.downloadLink,
+ s =
+ (t.license &&
+ n.createElement(
+ oy,
+ 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(
+ oy,
+ null,
+ 'URL: ',
+ n.createElement('a', { href: t.contact.url }, t.contact.url)
+ )) ||
+ null,
+ c =
+ (t.contact &&
+ t.contact.email &&
+ n.createElement(
+ oy,
+ null,
+ t.contact.name || 'E-mail',
+ ':',
+ ' ',
+ n.createElement(
+ 'a',
+ { href: 'mailto:' + t.contact.email },
+ t.contact.email
+ )
+ )) ||
+ null,
+ u =
+ (t.termsOfService &&
+ n.createElement(
+ oy,
+ null,
+ n.createElement(
+ 'a',
+ { href: t.termsOfService },
+ 'Terms of Service'
+ )
+ )) ||
+ null,
+ p =
+ (t.version &&
+ n.createElement('span', null, '(', t.version, ')')) ||
+ null;
+ return n.createElement(
+ Su,
+ null,
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Ou,
+ { className: 'api-info' },
+ n.createElement(ny, null, t.title, ' ', p),
+ !o &&
+ n.createElement(
+ 'p',
+ null,
+ lo('downloadSpecification'),
+ ':',
+ n.createElement(
+ ry,
+ {
+ download: i || !0,
+ target: '_blank',
+ href: a,
+ onClick: this.handleDownloadClick
+ },
+ lo('download')
+ )
+ ),
+ n.createElement(
+ Rf,
+ null,
+ ((t.license || t.contact || t.termsOfService) &&
+ n.createElement(
+ iy,
+ null,
+ n.createElement(ay, null, c, ' ', l, ' ', s, ' ', u)
+ )) ||
+ null
+ ),
+ n.createElement(Ff, {
+ source: e.spec.info.summary,
+ 'data-role': 'redoc-summary'
+ }),
+ n.createElement(Ff, {
+ source: e.spec.info.description,
+ 'data-role': 'redoc-description'
+ }),
+ r && n.createElement(xm, { externalDocs: r })
+ )
+ )
+ );
+ }
+ };
+ sy = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], sy);
+ const ly = ga.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;
+`,
+ cy = ga.div`
+ text-align: center;
+`,
+ uy = ga.a`
+ display: inline-block;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let py = 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),
+ o = t.altText ? t.altText : 'logo',
+ i = n.createElement(ly, { src: t.url, alt: o });
+ return n.createElement(
+ cy,
+ { style: { backgroundColor: t.backgroundColor } },
+ r ? ((a = r), (e) => n.createElement(uy, { href: a }, e))(i) : i
+ );
+ var a;
+ }
+ };
+ py = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], py);
+ var dy = Object.defineProperty,
+ fy = Object.getOwnPropertySymbols,
+ hy = Object.prototype.hasOwnProperty,
+ my = Object.prototype.propertyIsEnumerable,
+ gy = (e, t, n) =>
+ t in e
+ ? dy(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ yy = (e, t) => {
+ for (var n in t || (t = {})) hy.call(t, n) && gy(e, n, t[n]);
+ if (fy) for (var n of fy(t)) my.call(t, n) && gy(e, n, t[n]);
+ return e;
+ };
+ class vy extends n.Component {
+ render() {
+ return n.createElement(Pa, null, (e) =>
+ n.createElement(Lu, null, (t) =>
+ this.renderWithOptionsAndStore(e, t)
+ )
+ );
+ }
+ renderWithOptionsAndStore(e, t) {
+ const { source: r, htmlWrap: o = (e) => e } = this.props;
+ if (!t)
+ throw new Error(
+ 'When using components in markdown, store prop must be provided'
+ );
+ const i = new jl(e).renderMdWithComponents(r);
+ return i.length
+ ? i.map((e, r) => {
+ if ('string' == typeof e)
+ return n.cloneElement(
+ o(
+ n.createElement(Mf, {
+ html: e,
+ inline: !1,
+ compact: !1
+ })
+ ),
+ { key: r }
+ );
+ const i = e.component;
+ return n.createElement(
+ i,
+ yy({ key: r }, yy(yy({}, e.props), e.propsSelector(t)))
+ );
+ })
+ : null;
+ }
+ }
+ var by = r(4184),
+ wy = r.n(by);
+ const xy = ga.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: ${(e) => e.theme.colors.http.get};
+ }
+
+ &.post {
+ background-color: ${(e) => e.theme.colors.http.post};
+ }
+
+ &.put {
+ background-color: ${(e) => e.theme.colors.http.put};
+ }
+
+ &.options {
+ background-color: ${(e) => e.theme.colors.http.options};
+ }
+
+ &.patch {
+ background-color: ${(e) => e.theme.colors.http.patch};
+ }
+
+ &.delete {
+ background-color: ${(e) => e.theme.colors.http.delete};
+ }
+
+ &.basic {
+ background-color: ${(e) => e.theme.colors.http.basic};
+ }
+
+ &.link {
+ background-color: ${(e) => e.theme.colors.http.link};
+ }
+
+ &.head {
+ background-color: ${(e) => e.theme.colors.http.head};
+ }
+
+ &.hook {
+ background-color: ${(e) => e.theme.colors.primary.main};
+ }
+`;
+ function ky(e, { theme: t }, n) {
+ return e > 1
+ ? t.sidebar.level1Items[n]
+ : 1 === e
+ ? t.sidebar.groupItems[n]
+ : '';
+ }
+ const _y = ga.ul`
+ margin: 0;
+ padding: 0;
+
+ & & {
+ font-size: 0.929em;
+ }
+
+ ${(e) => (e.expanded ? '' : 'display: none;')};
+`,
+ Oy = ga.li`
+ list-style: none inside none;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0;
+ ${(e) => (0 === e.depth ? 'margin-top: 15px' : '')};
+`,
+ Sy = {
+ 0: pa`
+ opacity: 0.7;
+ text-transform: ${({ theme: e }) => e.sidebar.groupItems.textTransform};
+ font-size: 0.8em;
+ padding-bottom: 0;
+ cursor: default;
+ `,
+ 1: pa`
+ font-size: 0.929em;
+ text-transform: ${({ theme: e }) => e.sidebar.level1Items.textTransform};
+ `
+ },
+ Ey = ga.label.attrs((e) => ({
+ role: 'menuitem',
+ className: wy()('-depth' + e.depth, { active: e.active })
+ }))`
+ cursor: pointer;
+ color: ${(e) => (e.active ? ky(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) => Sy[e.depth]};
+ background-color: ${(e) => (e.active ? ky(e.depth, e, 'activeBackgroundColor') : e.theme.sidebar.backgroundColor)};
+
+ ${(e) => (e.deprecated && Wu) || ''};
+
+ &:hover {
+ color: ${(e) => ky(e.depth, e, 'activeTextColor')};
+ background-color: ${(e) => ky(e.depth, e, 'activeBackgroundColor')};
+ }
+
+ ${Bu} {
+ height: ${({ theme: e }) => e.sidebar.arrow.size};
+ width: ${({ theme: e }) => e.sidebar.arrow.size};
+ polygon {
+ fill: ${({ theme: e }) => e.sidebar.arrow.color};
+ }
+ }
+`,
+ Py = ga.span`
+ display: inline-block;
+ vertical-align: middle;
+ width: ${(e) => (e.width ? e.width : 'auto')};
+ overflow: hidden;
+ text-overflow: ellipsis;
+`,
+ Ay = ga.div`
+ ${({ theme: e }) => `\n font-size: 0.8em;\n margin-top: ${2 * e.spacing.unit}px;\n text-align: center;\n position: fixed;\n width: ${e.sidebar.width};\n bottom: 0px;\n background: ${e.sidebar.backgroundColor};\n \n a,\n a:visited,\n a:hover {\n color: ${e.sidebar.textColor} !important;\n padding: ${e.spacing.unit}px 0;\n border-top: 1px solid ${Rr(0.1, e.sidebar.backgroundColor)};\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n`};
+ img {
+ width: 15px;
+ margin-right: 5px;
+ }
+
+ ${ma('small')`
+ width: 100%;
+ `};
+`,
+ $y = ga.button`
+ border: 0;
+ width: 100%;
+ text-align: left;
+ & > * {
+ vertical-align: middle;
+ }
+
+ ${Bu} {
+ polygon {
+ fill: ${({ theme: e }) => Rr(e.colors.tonalOffset, e.colors.gray[100])};
+ }
+ }
+`,
+ Cy = ga.span`
+ text-decoration: ${(e) => (e.deprecated ? 'line-through' : 'none')};
+ margin-right: 8px;
+`,
+ Ry = ga(xy)`
+ margin: 0 5px 0 0;
+`,
+ jy = ga((e) => {
+ const {
+ name: t,
+ opened: r,
+ className: o,
+ onClick: i,
+ httpVerb: a,
+ deprecated: s
+ } = e;
+ return n.createElement(
+ $y,
+ { className: o, onClick: i || void 0 },
+ n.createElement(Ry, { type: a }, ms(a)),
+ n.createElement(Bu, {
+ size: '1.5em',
+ direction: r ? 'down' : 'right',
+ float: 'left'
+ }),
+ n.createElement(Cy, { deprecated: s }, t),
+ s
+ ? n.createElement(
+ qu,
+ { type: 'warning' },
+ ' ',
+ lo('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 }) => Rr(e.colors.tonalOffset, e.colors.gray[100])};
+`,
+ Ty = ga.div`
+ padding: 10px 25px;
+ background-color: ${({ theme: e }) => e.colors.gray[50]};
+ margin-bottom: 5px;
+ margin-top: 5px;
+`;
+ class Iy extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.selectElement = () => {
+ Yf.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 Ny = ga.div`
+ cursor: pointer;
+ position: relative;
+ margin-bottom: 5px;
+`,
+ Dy = ga.span`
+ font-family: ${(e) => e.theme.typography.code.fontFamily};
+ margin-left: 10px;
+ flex: 1;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+`,
+ Ly = ga.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};`) || ''}
+
+ .${Dy} {
+ 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);
+ }
+`,
+ My = ga.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;
+`,
+ Fy = ga.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: 0px 0px 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);')}
+`,
+ zy = ga.div`
+ padding: 10px;
+`,
+ Uy = ga.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 Vy 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: o } = this.state;
+ return n.createElement(Sa.Consumer, null, (i) =>
+ n.createElement(
+ Ny,
+ null,
+ n.createElement(
+ Ly,
+ { onClick: this.toggle, expanded: o, inverted: t },
+ n.createElement(
+ My,
+ { type: e.httpVerb, compact: this.props.compact },
+ e.httpVerb
+ ),
+ n.createElement(Dy, null, e.path),
+ n.createElement(Bu, {
+ float: 'right',
+ color: t ? 'black' : 'white',
+ size: '20px',
+ direction: o ? 'up' : 'down',
+ style: { marginRight: '-25px' }
+ })
+ ),
+ n.createElement(
+ Fy,
+ { expanded: o, 'aria-hidden': !o },
+ e.servers.map((t) => {
+ const o = i.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 ro(e).pathname;
+ } catch (t) {
+ return e;
+ }
+ })(o);
+ return n.createElement(
+ zy,
+ { key: o },
+ n.createElement(Ff, {
+ source: t.description || '',
+ compact: !0
+ }),
+ n.createElement(
+ Iy,
+ null,
+ n.createElement(
+ Uy,
+ null,
+ n.createElement(
+ 'span',
+ null,
+ r || i.hideHostname ? ('/' === a ? '' : a) : o
+ ),
+ e.path
+ )
+ )
+ );
+ })
+ )
+ )
+ );
+ }
+ }
+ class By extends n.PureComponent {
+ render() {
+ const { place: e, parameters: t } = this.props;
+ return t && t.length
+ ? n.createElement(
+ 'div',
+ { key: e },
+ n.createElement(Iu, null, e, ' Parameters'),
+ n.createElement(
+ Zu,
+ null,
+ n.createElement(
+ 'tbody',
+ null,
+ Gr(t, (e, t) =>
+ n.createElement(Hm, {
+ key: e.name,
+ isLast: t,
+ field: e,
+ showExamples: !0
+ })
+ )
+ )
+ )
+ )
+ : null;
+ }
+ }
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let qy = 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 })),
+ o = ({ children: e }) =>
+ this.props.withLabel
+ ? n.createElement(
+ dh,
+ null,
+ n.createElement(ph, null, 'Content type'),
+ e
+ )
+ : e;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ o,
+ null,
+ this.props.renderDropdown({
+ value: r[t].value,
+ options: r,
+ onChange: this.switchMedia,
+ ariaLabel: 'Content type'
+ })
+ ),
+ this.props.children(e.active)
+ );
+ }
+ };
+ qy = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], qy);
+ var Wy = Object.defineProperty,
+ Hy = Object.getOwnPropertySymbols,
+ Yy = Object.prototype.hasOwnProperty,
+ Ky = Object.prototype.propertyIsEnumerable,
+ Gy = (e, t, n) =>
+ t in e
+ ? Wy(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ const Qy = ['path', 'query', 'cookie', 'header'];
+ class Xy extends n.PureComponent {
+ orderParams(e) {
+ const t = {};
+ return (
+ e.forEach((e) => {
+ var n, r, o;
+ (o = e), (n = t)[(r = e.in)] || (n[r] = []), n[r].push(o);
+ }),
+ t
+ );
+ }
+ render() {
+ const { body: e, parameters: t = [] } = this.props;
+ if (void 0 === e && void 0 === t) return null;
+ const r = this.orderParams(t),
+ o = t.length > 0 ? Qy : [],
+ i = e && e.content,
+ a = e && e.description;
+ return n.createElement(
+ n.Fragment,
+ null,
+ o.map((e) =>
+ n.createElement(By, { key: e, place: e, parameters: r[e] })
+ ),
+ i && n.createElement(Zy, { content: i, description: a })
+ );
+ }
+ }
+ function Jy(e) {
+ return n.createElement(
+ Iu,
+ { key: 'header' },
+ 'Request Body schema: ',
+ n.createElement(
+ Af,
+ ((e, t) => {
+ for (var n in t || (t = {})) Yy.call(t, n) && Gy(e, n, t[n]);
+ if (Hy) for (var n of Hy(t)) Ky.call(t, n) && Gy(e, n, t[n]);
+ return e;
+ })({}, e)
+ )
+ );
+ }
+ function Zy(e) {
+ const { content: t, description: r } = e,
+ { isRequestType: o } = t;
+ return n.createElement(
+ qy,
+ { content: t, renderDropdown: Jy },
+ ({ schema: e }) =>
+ n.createElement(
+ n.Fragment,
+ null,
+ void 0 !== r && n.createElement(Ff, { source: r }),
+ 'object' === (null == e ? void 0 : e.type) &&
+ n.createElement(Am, {
+ constraints: (null == e ? void 0 : e.constraints) || []
+ }),
+ n.createElement(Pg, {
+ skipReadOnly: o,
+ skipWriteOnly: !o,
+ key: 'schema',
+ schema: e
+ })
+ )
+ );
+ }
+ const ev = ga(
+ n.memo(function ({
+ title: e,
+ type: t,
+ empty: r,
+ code: o,
+ opened: i,
+ className: a,
+ onClick: s
+ }) {
+ return n.createElement(
+ 'button',
+ {
+ className: a,
+ onClick: (!r && s) || void 0,
+ 'aria-expanded': i,
+ disabled: r
+ },
+ !r &&
+ n.createElement(Bu, {
+ size: '1.5em',
+ color: t,
+ direction: i ? 'down' : 'right',
+ float: 'left'
+ }),
+ n.createElement(rv, null, o, ' '),
+ n.createElement(Ff, { 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' : '')};
+`,
+ tv = ga.div`
+ padding: 10px;
+`,
+ nv = ga(Iu.withComponent('caption'))`
+ text-align: left;
+ margin-top: 1em;
+ caption-side: top;
+`,
+ rv = ga.strong`
+ vertical-align: top;
+`;
+ class ov extends n.PureComponent {
+ render() {
+ const { headers: e } = this.props;
+ return void 0 === e || 0 === e.length
+ ? null
+ : n.createElement(
+ Zu,
+ null,
+ n.createElement(nv, null, ' Response Headers '),
+ n.createElement(
+ 'tbody',
+ null,
+ Gr(e, (e, t) =>
+ n.createElement(Hm, {
+ isLast: t,
+ key: e.name,
+ field: e,
+ showExamples: !0
+ })
+ )
+ )
+ );
+ }
+ }
+ var iv = Object.defineProperty,
+ av = Object.getOwnPropertySymbols,
+ sv = Object.prototype.hasOwnProperty,
+ lv = Object.prototype.propertyIsEnumerable,
+ cv = (e, t, n) =>
+ t in e
+ ? iv(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ class uv extends n.PureComponent {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = (e) =>
+ n.createElement(
+ Iu,
+ { key: 'header' },
+ 'Response Schema: ',
+ n.createElement(
+ Af,
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ sv.call(t, n) && cv(e, n, t[n]);
+ if (av)
+ for (var n of av(t)) lv.call(t, n) && cv(e, n, t[n]);
+ return e;
+ })({}, e)
+ )
+ ));
+ }
+ render() {
+ const {
+ description: e,
+ extensions: t,
+ headers: r,
+ content: o
+ } = this.props.response;
+ return n.createElement(
+ n.Fragment,
+ null,
+ e && n.createElement(Ff, { source: e }),
+ n.createElement(Sm, { extensions: t }),
+ n.createElement(ov, { headers: r }),
+ n.createElement(
+ qy,
+ { content: o, renderDropdown: this.renderDropdown },
+ ({ schema: e }) =>
+ n.createElement(
+ n.Fragment,
+ null,
+ 'object' === (null == e ? void 0 : e.type) &&
+ n.createElement(Am, {
+ constraints: (null == e ? void 0 : e.constraints) || []
+ }),
+ n.createElement(Pg, {
+ skipWriteOnly: !0,
+ key: 'schema',
+ schema: e
+ })
+ )
+ )
+ );
+ }
+ }
+ const pv = im(({ response: e }) => {
+ const {
+ extensions: t,
+ headers: r,
+ type: o,
+ summary: i,
+ 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(ev, {
+ onClick: () => e.toggle(),
+ type: o,
+ empty: p,
+ title: i || '',
+ code: s,
+ opened: l
+ }),
+ l &&
+ !p &&
+ n.createElement(tv, null, n.createElement(uv, { response: e }))
+ );
+ }),
+ dv = ga.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 fv extends n.PureComponent {
+ render() {
+ const { responses: e, isCallback: t } = this.props;
+ return e && 0 !== e.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(
+ dv,
+ null,
+ lo(t ? 'callbackResponses' : 'responses')
+ ),
+ e.map((e) =>
+ n.createElement(pv, { key: e.code, response: e })
+ )
+ )
+ : null;
+ }
+ }
+ function hv(e) {
+ const { security: t, showSecuritySchemeType: r, expanded: o } = e,
+ i = t.schemes.length > 1;
+ return n.createElement(
+ Fg,
+ { expanded: o },
+ i && '(',
+ t.schemes.map((e) =>
+ n.createElement(
+ Mg,
+ { key: e.id },
+ r && `${Jg[e.type] || e.type}: `,
+ n.createElement('i', null, e.displayName),
+ o && e.scopes.length
+ ? [
+ ' (',
+ e.scopes.map((e) => n.createElement(Lg, { key: e }, e)),
+ ') '
+ ]
+ : null
+ )
+ ),
+ i && ') '
+ );
+ }
+ const mv = ({ 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 gv(e) {
+ const t = (0, n.useContext)(Nu),
+ r = null == t ? void 0 : t.options.showSecuritySchemeType,
+ [o, i] = (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(
+ Bg,
+ { expanded: o },
+ n.createElement(
+ zg,
+ { onClick: () => i(!o) },
+ n.createElement(Vg, null, 'Authorizations:'),
+ n.createElement(Bu, {
+ size: '1.3em',
+ direction: o ? 'down' : 'right'
+ })
+ ),
+ n.createElement(
+ Ug,
+ { expanded: o },
+ a.map((e, t) =>
+ n.createElement(hv, {
+ key: t,
+ expanded: o,
+ showSecuritySchemeType: r,
+ security: e
+ })
+ )
+ )
+ ),
+ o &&
+ (null == s ? void 0 : s.length) &&
+ s.map((e, t) =>
+ n.createElement(
+ Wg,
+ { key: t },
+ n.createElement(
+ 'h5',
+ null,
+ n.createElement(yv, null),
+ ' ',
+ Jg[e.type] || e.type,
+ ': ',
+ e.id
+ ),
+ n.createElement(Ff, { source: e.description || '' }),
+ n.createElement(Xg, {
+ key: e.id,
+ scheme: e,
+ RequiredScopes: n.createElement(mv, { scopes: vv(e.id, a) })
+ })
+ )
+ )
+ );
+ }
+ const yv = () =>
+ 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 vv(e, t) {
+ const n = [];
+ let r = t.length;
+ for (; r--; ) {
+ const o = t[r];
+ let i = o.schemes.length;
+ for (; i--; ) {
+ const t = o.schemes[i];
+ t.id === e && Array.isArray(t.scopes) && n.push(...t.scopes);
+ }
+ }
+ return Array.from(new Set(n));
+ }
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let bv = class extends n.Component {
+ render() {
+ const { operation: e } = this.props,
+ { description: t, externalDocs: r } = e,
+ o = !(!t && !r);
+ return n.createElement(
+ Ty,
+ null,
+ o &&
+ n.createElement(
+ wv,
+ null,
+ void 0 !== t && n.createElement(Ff, { source: t }),
+ r && n.createElement(xm, { externalDocs: r })
+ ),
+ n.createElement(Vy, {
+ operation: this.props.operation,
+ inverted: !0,
+ compact: !0
+ }),
+ n.createElement(Sm, { extensions: e.extensions }),
+ n.createElement(gv, { securities: e.security }),
+ n.createElement(Xy, {
+ parameters: e.parameters,
+ body: e.requestBody
+ }),
+ n.createElement(fv, {
+ responses: e.responses,
+ isCallback: e.isCallback
+ })
+ );
+ }
+ };
+ bv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], bv);
+ const wv = ga.div`
+ margin-bottom: ${({ theme: e }) => 3 * e.spacing.unit}px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let xv = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.toggle = () => {
+ this.props.callbackOperation.toggle();
+ });
+ }
+ render() {
+ const {
+ name: e,
+ expanded: t,
+ httpVerb: r,
+ deprecated: o
+ } = this.props.callbackOperation;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(jy, {
+ onClick: this.toggle,
+ name: e,
+ opened: t,
+ httpVerb: r,
+ deprecated: o
+ }),
+ t &&
+ n.createElement(bv, { operation: this.props.callbackOperation })
+ );
+ }
+ };
+ xv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], xv);
+ class kv extends n.PureComponent {
+ render() {
+ const { callbacks: e } = this.props;
+ return e && 0 !== e.length
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(_v, null, ' Callbacks '),
+ e.map((e) =>
+ e.operations.map((t, r) =>
+ n.createElement(xv, {
+ key: `${e.name}_${r}`,
+ callbackOperation: t
+ })
+ )
+ )
+ )
+ : null;
+ }
+ }
+ const _v = ga.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 Ov = 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(
+ dh,
+ null,
+ n.createElement(ph, 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])
+ );
+ }
+ };
+ Ov = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Ov);
+ var Sv = Object.defineProperty,
+ Ev = Object.defineProperties,
+ Pv =
+ (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ Av = Object.getOwnPropertySymbols,
+ $v = Object.prototype.hasOwnProperty,
+ Cv = Object.prototype.propertyIsEnumerable,
+ Rv = (e, t, n) =>
+ t in e
+ ? Sv(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ let jv = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = (e) => {
+ return n.createElement(
+ Af,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {}))
+ $v.call(t, n) && Rv(e, n, t[n]);
+ if (Av)
+ for (var n of Av(t)) Cv.call(t, n) && Rv(e, n, t[n]);
+ return e;
+ })({ Label: uh, Dropdown: fh }, e)),
+ Ev(t, Pv({ variant: 'dark' })))
+ );
+ var t;
+ });
+ }
+ render() {
+ const e = this.props.content;
+ return void 0 === e
+ ? null
+ : n.createElement(
+ qy,
+ {
+ content: e,
+ renderDropdown: this.renderDropdown,
+ withLabel: !0
+ },
+ (e) =>
+ n.createElement(mh, {
+ key: 'samples',
+ mediaType: e,
+ renderDropdown: this.renderDropdown
+ })
+ );
+ }
+ };
+ jv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], jv);
+ class Tv extends n.Component {
+ render() {
+ const e = this.props.callback.codeSamples.find((e) => xu(e));
+ return e
+ ? n.createElement(
+ Iv,
+ null,
+ n.createElement(jv, { content: e.requestBodyContent })
+ )
+ : null;
+ }
+ }
+ const Iv = ga.div`
+ margin-top: 15px;
+`;
+ var Nv = Object.defineProperty,
+ Dv = Object.defineProperties,
+ Lv =
+ (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ Mv = Object.getOwnPropertySymbols,
+ Fv = Object.prototype.hasOwnProperty,
+ zv = Object.prototype.propertyIsEnumerable,
+ Uv = (e, t, n) =>
+ t in e
+ ? Nv(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ let Vv = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.renderDropdown = (e) => {
+ return n.createElement(
+ Af,
+ ((t = ((e, t) => {
+ for (var n in t || (t = {}))
+ Fv.call(t, n) && Uv(e, n, t[n]);
+ if (Mv)
+ for (var n of Mv(t)) zv.call(t, n) && Uv(e, n, t[n]);
+ return e;
+ })({ Label: uh, Dropdown: fh }, e)),
+ Dv(t, Lv({ 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(Tu, null, ' Callback payload samples '),
+ n.createElement(
+ Bv,
+ null,
+ n.createElement(
+ Ov,
+ {
+ items: t,
+ renderDropdown: this.renderDropdown,
+ label: 'Callback',
+ options: r
+ },
+ (e) =>
+ n.createElement(Tv, {
+ key: 'callbackPayloadSample',
+ callback: e,
+ renderDropdown: this.renderDropdown
+ })
+ )
+ )
+ );
+ }
+ };
+ (Vv.contextType = Sa),
+ (Vv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Vv));
+ const Bv = ga.div`
+ background: ${({ theme: e }) => e.codeBlock.backgroundColor};
+ padding: ${(e) => 4 * e.theme.spacing.unit}px;
+`;
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let qv = class extends n.Component {
+ render() {
+ const { operation: e } = this.props,
+ t = e.codeSamples,
+ r = t.length > 0,
+ o = 1 === t.length && this.context.hideSingleRequestSampleTab;
+ return (
+ (r &&
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(Tu, null, ' ', lo('requestSamples'), ' '),
+ n.createElement(
+ Dp,
+ { defaultIndex: 0 },
+ n.createElement(
+ Ap,
+ { hidden: o },
+ t.map((e) =>
+ n.createElement(
+ jp,
+ { key: e.lang + '_' + (e.label || '') },
+ void 0 !== e.label ? e.label : e.lang
+ )
+ )
+ ),
+ t.map((e) =>
+ n.createElement(
+ Np,
+ { key: e.lang + '_' + (e.label || '') },
+ xu(e)
+ ? n.createElement(
+ 'div',
+ null,
+ n.createElement(jv, {
+ content: e.requestBodyContent
+ })
+ )
+ : n.createElement(ah, {
+ lang: e.lang,
+ source: e.source
+ })
+ )
+ )
+ )
+ )) ||
+ null
+ );
+ }
+ };
+ (qv.contextType = Sa),
+ (qv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], qv));
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let Wv = 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(Tu, null, ' ', lo('responseSamples'), ' '),
+ n.createElement(
+ Dp,
+ { defaultIndex: 0 },
+ n.createElement(
+ Ap,
+ null,
+ t.map((e) =>
+ n.createElement(
+ jp,
+ { className: 'tab-' + e.type, key: e.code },
+ e.code
+ )
+ )
+ ),
+ t.map((e) =>
+ n.createElement(
+ Np,
+ { key: e.code },
+ n.createElement(
+ 'div',
+ null,
+ n.createElement(jv, { content: e.content })
+ )
+ )
+ )
+ )
+ )) ||
+ null
+ );
+ }
+ };
+ Wv = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Wv);
+ var Hv = Object.defineProperty,
+ Yv = Object.defineProperties,
+ Kv = Object.getOwnPropertyDescriptors,
+ Gv = Object.getOwnPropertySymbols,
+ Qv = Object.prototype.hasOwnProperty,
+ Xv = Object.prototype.propertyIsEnumerable,
+ Jv = (e, t, n) =>
+ t in e
+ ? Hv(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ const Zv = ga.div`
+ margin-bottom: ${({ theme: e }) => 6 * e.spacing.unit}px;
+`,
+ eb = im(({ operation: e }) => {
+ const {
+ name: t,
+ description: r,
+ deprecated: o,
+ externalDocs: i,
+ isWebhook: a,
+ httpVerb: s
+ } = e,
+ l = !(!r && !i),
+ { showWebhookVerb: c } = n.useContext(Sa);
+ return n.createElement(Sa.Consumer, null, (u) =>
+ n.createElement(
+ Au,
+ ((e, t) => Yv(e, Kv(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ Qv.call(t, n) && Jv(e, n, t[n]);
+ if (Gv)
+ for (var n of Gv(t)) Xv.call(t, n) && Jv(e, n, t[n]);
+ return e;
+ })({}, { [gf]: e.operationHash }),
+ { id: e.operationHash }
+ ),
+ n.createElement(
+ Ou,
+ null,
+ n.createElement(
+ ju,
+ null,
+ n.createElement(Uu, { to: e.id }),
+ t,
+ ' ',
+ o &&
+ n.createElement(qu, { type: 'warning' }, ' Deprecated '),
+ a &&
+ n.createElement(
+ qu,
+ { type: 'primary' },
+ ' ',
+ 'Webhook ',
+ c && s && '| ' + s.toUpperCase()
+ )
+ ),
+ u.pathInMiddlePanel &&
+ !a &&
+ n.createElement(Vy, { operation: e, inverted: !0 }),
+ l &&
+ n.createElement(
+ Zv,
+ null,
+ void 0 !== r && n.createElement(Ff, { source: r }),
+ i && n.createElement(xm, { externalDocs: i })
+ ),
+ n.createElement(Sm, { extensions: e.extensions }),
+ n.createElement(gv, { securities: e.security }),
+ n.createElement(Xy, {
+ parameters: e.parameters,
+ body: e.requestBody
+ }),
+ n.createElement(fv, { responses: e.responses }),
+ n.createElement(kv, { callbacks: e.callbacks })
+ ),
+ n.createElement(
+ Pu,
+ null,
+ !u.pathInMiddlePanel &&
+ !a &&
+ n.createElement(Vy, { operation: e }),
+ n.createElement(qv, { operation: e }),
+ n.createElement(Wv, { operation: e }),
+ n.createElement(Vv, { callbacks: e.callbacks })
+ )
+ )
+ );
+ });
+ var tb = Object.defineProperty,
+ nb = Object.getOwnPropertyDescriptor,
+ rb = Object.getOwnPropertySymbols,
+ ob = Object.prototype.hasOwnProperty,
+ ib = Object.prototype.propertyIsEnumerable,
+ ab = (e, t, n) =>
+ t in e
+ ? tb(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ sb = (e, t, n, r) => {
+ for (
+ var o, i = r > 1 ? void 0 : r ? nb(t, n) : t, a = e.length - 1;
+ a >= 0;
+ a--
+ )
+ (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
+ return r && i && tb(t, n, i), i;
+ };
+ let lb = class extends n.Component {
+ render() {
+ const e = this.props.items;
+ return 0 === e.length
+ ? null
+ : e.map((e) => n.createElement(cb, { key: e.id, item: e }));
+ }
+ };
+ lb = sb([im], lb);
+ let cb = 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(
+ pb,
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ ob.call(t, n) && ab(e, n, t[n]);
+ if (rb)
+ for (var n of rb(t)) ib.call(t, n) && ab(e, n, t[n]);
+ return e;
+ })({}, this.props)
+ );
+ break;
+ case 'operation':
+ t = n.createElement(db, { item: e });
+ }
+ return n.createElement(
+ n.Fragment,
+ null,
+ t &&
+ n.createElement(
+ Su,
+ { id: e.id, underlined: 'operation' === e.type },
+ t
+ ),
+ e.items && n.createElement(lb, { items: e.items })
+ );
+ }
+ };
+ cb = sb([im], cb);
+ const ub = (e) => n.createElement(Ou, { compact: !0 }, e);
+ let pb = class extends n.Component {
+ render() {
+ const {
+ name: e,
+ description: t,
+ externalDocs: r,
+ level: o
+ } = this.props.item,
+ i = 2 === o ? ju : Ru;
+ return n.createElement(
+ n.Fragment,
+ null,
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Ou,
+ { compact: !1 },
+ n.createElement(
+ i,
+ null,
+ n.createElement(Uu, { to: this.props.item.id }),
+ e
+ )
+ )
+ ),
+ n.createElement(vy, { source: t || '', htmlWrap: ub }),
+ r &&
+ n.createElement(
+ Au,
+ null,
+ n.createElement(
+ Ou,
+ null,
+ n.createElement(xm, { externalDocs: r })
+ )
+ )
+ );
+ }
+ };
+ pb = sb([im], pb);
+ let db = class extends n.Component {
+ render() {
+ return n.createElement(eb, { operation: this.props.item });
+ }
+ };
+ db = sb([im], db);
+ var fb = Object.defineProperty,
+ hb = Object.defineProperties,
+ mb =
+ (Object.getOwnPropertyDescriptor, Object.getOwnPropertyDescriptors),
+ gb = Object.getOwnPropertySymbols,
+ yb = Object.prototype.hasOwnProperty,
+ vb = Object.prototype.propertyIsEnumerable,
+ bb = (e, t, n) =>
+ t in e
+ ? fb(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ let wb = 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 && Hr(this.ref.current);
+ }
+ render() {
+ const { item: e, withoutChildren: t } = this.props;
+ return n.createElement(
+ Oy,
+ { onClick: this.activate, depth: e.depth, 'data-item-id': e.id },
+ 'operation' === e.type
+ ? n.createElement(
+ xb,
+ ((e, t) => hb(e, mb(t)))(
+ ((e, t) => {
+ for (var n in t || (t = {}))
+ yb.call(t, n) && bb(e, n, t[n]);
+ if (gb)
+ for (var n of gb(t)) vb.call(t, n) && bb(e, n, t[n]);
+ return e;
+ })({}, this.props),
+ { item: e }
+ )
+ )
+ : n.createElement(
+ Ey,
+ {
+ depth: e.depth,
+ active: e.active,
+ type: e.type,
+ ref: this.ref
+ },
+ n.createElement(
+ Py,
+ { title: e.sidebarLabel },
+ e.sidebarLabel,
+ this.props.children
+ ),
+ (e.depth > 0 &&
+ e.items.length > 0 &&
+ n.createElement(Bu, {
+ float: 'right',
+ direction: e.expanded ? 'down' : 'right'
+ })) ||
+ null
+ ),
+ !t &&
+ e.items &&
+ e.items.length > 0 &&
+ n.createElement(Pb, {
+ expanded: e.expanded,
+ items: e.items,
+ onActivate: this.props.onActivate
+ })
+ );
+ }
+ };
+ wb = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], wb);
+ const xb = im((e) => {
+ const { item: t } = e,
+ r = n.createRef(),
+ { showWebhookVerb: o } = n.useContext(Sa);
+ return (
+ n.useEffect(() => {
+ e.item.active && r.current && Hr(r.current);
+ }, [e.item.active, r]),
+ n.createElement(
+ Ey,
+ {
+ depth: t.depth,
+ active: t.active,
+ deprecated: t.deprecated,
+ ref: r
+ },
+ t.isWebhook
+ ? n.createElement(
+ xy,
+ { type: 'hook' },
+ o ? t.httpVerb : lo('webhook')
+ )
+ : n.createElement(xy, { type: t.httpVerb }, ms(t.httpVerb)),
+ n.createElement(
+ Py,
+ { width: 'calc(100% - 38px)' },
+ t.sidebarLabel,
+ e.children
+ )
+ )
+ );
+ });
+ var kb = Object.defineProperty,
+ _b = (Object.getOwnPropertyDescriptor, Object.getOwnPropertySymbols),
+ Ob = Object.prototype.hasOwnProperty,
+ Sb = Object.prototype.propertyIsEnumerable,
+ Eb = (e, t, n) =>
+ t in e
+ ? kb(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n);
+ let Pb = class extends n.Component {
+ render() {
+ const { items: e, root: t, className: r } = this.props,
+ o = null == this.props.expanded || this.props.expanded;
+ return n.createElement(
+ _y,
+ ((e, t) => {
+ for (var n in t || (t = {})) Ob.call(t, n) && Eb(e, n, t[n]);
+ if (_b) for (var n of _b(t)) Sb.call(t, n) && Eb(e, n, t[n]);
+ return e;
+ })(
+ { className: r, style: this.props.style, expanded: o },
+ t ? { role: 'menu' } : {}
+ ),
+ e.map((e, t) =>
+ n.createElement(wb, {
+ key: t,
+ item: e,
+ onActivate: this.props.onActivate
+ })
+ )
+ );
+ }
+ };
+ function Ab() {
+ 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
+ );
+ }
+ Pb = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Pb);
+ Object.defineProperty, Object.getOwnPropertyDescriptor;
+ let $b = 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;
+ return n.createElement(
+ Pd,
+ {
+ updateFn: this.saveScrollUpdate,
+ className: this.props.className,
+ options: { wheelPropagation: !1 }
+ },
+ n.createElement(Pb, {
+ items: e.items,
+ onActivate: this.activate,
+ root: !0
+ }),
+ n.createElement(
+ Ay,
+ null,
+ n.createElement(
+ 'a',
+ {
+ target: '_blank',
+ rel: 'noopener noreferrer',
+ href: 'https://redocly.com/redoc/'
+ },
+ n.createElement(Ab, null),
+ 'API docs by Redocly'
+ )
+ )
+ );
+ }
+ };
+ ($b.contextType = Sa),
+ ($b = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], $b));
+ const Cb = ({ open: e }) => {
+ const t = e ? 8 : -4;
+ return n.createElement(
+ jb,
+ null,
+ n.createElement(Rb, {
+ size: 15,
+ style: {
+ transform: `translate(2px, ${t}px) rotate(180deg)`,
+ transition: 'transform 0.2s ease'
+ }
+ }),
+ n.createElement(Rb, {
+ size: 15,
+ style: {
+ transform: `translate(2px, ${0 - t}px)`,
+ transition: 'transform 0.2s ease'
+ }
+ })
+ );
+ },
+ Rb = ({ 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'
+ })
+ )
+ ),
+ jb = ga.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 Tb;
+ qr && (Tb = r(5114));
+ const Ib = Tb && Tb(),
+ Nb = ga.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;
+
+ ${ma('small')`
+ position: fixed;
+ z-index: 20;
+ width: 100%;
+ background: ${({ theme: e }) => e.sidebar.backgroundColor};
+ display: ${(e) => (e.open ? 'flex' : 'none')};
+ `};
+
+ @media print {
+ display: none;
+ }
+`,
+ Db = ga.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);
+ ${ma('small')`
+ display: flex;
+ `};
+
+ bottom: 44px;
+
+ width: 60px;
+ height: 60px;
+ padding: 0 20px;
+ svg {
+ color: ${({ theme: e }) => e.fab.color};
+ }
+
+ @media print {
+ display: none;
+ }
+`;
+ let Lb = class extends n.Component {
+ constructor() {
+ super(...arguments),
+ (this.state = { offsetTop: '0px' }),
+ (this.toggleNavMenu = () => {
+ this.props.menu.toggleSidebar();
+ });
+ }
+ componentDidMount() {
+ Ib && Ib.add(this.stickyElement),
+ this.setState({ offsetTop: this.getScrollYOffset(this.context) });
+ }
+ componentWillUnmount() {
+ Ib && Ib.remove(this.stickyElement);
+ }
+ getScrollYOffset(e) {
+ let t;
+ return (
+ (t =
+ void 0 !== this.props.scrollYOffset
+ ? xo.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(
+ Nb,
+ {
+ 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(
+ Db,
+ { onClick: this.toggleNavMenu },
+ n.createElement(Cb, { open: e })
+ )
+ );
+ }
+ };
+ (Lb.contextType = Sa),
+ (Lb = ((e, t, n, r) => {
+ for (var o, i = t, a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(i) || i);
+ return i;
+ })([im], Lb));
+ const Mb = ga.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`};
+`,
+ Fb = ga.div`
+ z-index: 1;
+ position: relative;
+ overflow: hidden;
+ width: calc(100% - ${(e) => e.theme.sidebar.width});
+ ${ma('small', !0)`
+ width: 100%;
+ `};
+
+ contain: layout;
+`,
+ zb = ga.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;
+ }};
+ ${ma('medium', !0)`
+ display: none;
+ `};
+`,
+ Ub = ga.div`
+ padding: 5px 0;
+`,
+ Vb = ga.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 }) => (Ir(e.sidebar.backgroundColor) > 0.5 ? Rr : Dr)(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;
+`,
+ Bb = ga((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};
+ }
+`,
+ qb = ga.div`
+ padding: ${(e) => e.theme.spacing.unit}px 0;
+ background-color: ${({ theme: e }) => Rr(0.05, e.sidebar.backgroundColor)}};
+ color: ${(e) => e.theme.sidebar.textColor};
+ min-height: 150px;
+ max-height: 250px;
+ border-top: ${({ theme: e }) => Rr(0.1, e.sidebar.backgroundColor)}};
+ border-bottom: ${({ theme: e }) => Rr(0.1, e.sidebar.backgroundColor)}};
+ margin-top: 10px;
+ line-height: 1.4;
+ font-size: 0.9em;
+
+ li {
+ background-color: inherit;
+ }
+
+ ${Ey} {
+ padding-top: 6px;
+ padding-bottom: 6px;
+
+ &:hover,
+ &.active {
+ background-color: ${({ theme: e }) => Rr(0.1, e.sidebar.backgroundColor)};
+ }
+
+ > svg {
+ display: none;
+ }
+ }
+`,
+ Wb = ga.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 Hb = Object.defineProperty,
+ Yb = Object.getOwnPropertyDescriptor;
+ class Kb 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(
+ Ub,
+ { role: 'search' },
+ this.state.term &&
+ n.createElement(Wb, { onClick: this.clear }, '×'),
+ n.createElement(Bb, null),
+ n.createElement(Vb, {
+ value: this.state.term,
+ onKeyDown: this.handleKeyDown,
+ placeholder: 'Search...',
+ 'aria-label': 'Search',
+ type: 'text',
+ onChange: this.search
+ }),
+ t.length > 0 &&
+ n.createElement(
+ Pd,
+ { options: { wheelPropagation: !1 } },
+ n.createElement(
+ qb,
+ { 'data-role': 'search:results' },
+ t.map((t, r) =>
+ n.createElement(wb, {
+ 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(
+ qb,
+ { 'data-role': 'search:results' },
+ lo('noResultsFound')
+ )
+ : null
+ );
+ }
+ }
+ (Kb.contextType = Sa),
+ ((e, t, n, r) => {
+ for (var o, i = Yb(t, n), a = e.length - 1; a >= 0; a--)
+ (o = e[a]) && (i = o(t, n, i) || i);
+ i && Hb(t, n, i);
+ })([Ra.bind, (0, Ra.debounce)(400)], Kb.prototype, 'searchCallback');
+ class Gb extends n.Component {
+ componentDidMount() {
+ this.props.store.onDidMount();
+ }
+ componentWillUnmount() {
+ this.props.store.dispose();
+ }
+ render() {
+ const {
+ store: { spec: e, menu: t, options: r, search: o, marker: i }
+ } = this.props,
+ a = this.props.store;
+ return n.createElement(
+ ha,
+ { theme: r.theme },
+ n.createElement(
+ Du,
+ { value: a },
+ n.createElement(
+ Ea,
+ { value: r },
+ n.createElement(
+ Mb,
+ { className: 'redoc-wrap' },
+ n.createElement(
+ Lb,
+ { menu: t, className: 'menu-content' },
+ n.createElement(py, { info: e.info }),
+ (!r.disableSearch &&
+ n.createElement(Kb, {
+ search: o,
+ marker: i,
+ getItemById: t.getItemById,
+ onActivate: t.activateAndScroll
+ })) ||
+ null,
+ n.createElement($b, { menu: t })
+ ),
+ n.createElement(
+ Fb,
+ { className: 'api-content' },
+ n.createElement(sy, { store: a }),
+ n.createElement(lb, { items: t.items })
+ ),
+ n.createElement(zb, null)
+ )
+ )
+ )
+ );
+ }
+ }
+ Gb.propTypes = { store: Oa.instanceOf(ey).isRequired };
+ const Qb = function (e) {
+ const { spec: t, specUrl: o, options: i = {}, onLoaded: a } = e,
+ s = bo(i.hideLoading, !1),
+ l = new xo(i);
+ if (void 0 !== l.nonce)
+ try {
+ r.nc = l.nonce;
+ } catch (e) {}
+ return n.createElement(
+ ba,
+ null,
+ n.createElement(
+ Mu,
+ { spec: t, specUrl: o, options: i, onLoaded: a },
+ ({ loading: e, store: t }) =>
+ e
+ ? s
+ ? null
+ : n.createElement(_a, {
+ color: l.theme.colors.primary.main
+ })
+ : n.createElement(Gb, { store: t })
+ )
+ );
+ };
+ var Xb = Object.defineProperty,
+ Jb = Object.getOwnPropertySymbols,
+ Zb = Object.prototype.hasOwnProperty,
+ ew = Object.prototype.propertyIsEnumerable,
+ tw = (e, t, n) =>
+ t in e
+ ? Xb(e, t, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: n
+ })
+ : (e[t] = n),
+ nw = (e, t) => {
+ for (var n in t || (t = {})) Zb.call(t, n) && tw(e, n, t[n]);
+ if (Jb) for (var n of Jb(t)) ew.call(t, n) && tw(e, n, t[n]);
+ return e;
+ };
+ Nt({ useProxies: 'ifavailable' });
+ const rw = '2.0.0-rc.75',
+ ow = 'd7440fb';
+ function iw(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()),
+ o = t[e];
+ n[r] = 'theme' === e ? JSON.parse(o) : o;
+ }
+ return n;
+ }
+ function aw(e, t = {}, r = Wr('redoc'), o) {
+ 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, i.render)(
+ n.createElement(
+ Qb,
+ {
+ spec: s,
+ onLoaded: o,
+ specUrl: a,
+ options: nw(nw({}, t), iw(r))
+ },
+ ['Loading...']
+ ),
+ r
+ );
+ }
+ function sw(e = Wr('redoc')) {
+ e && (0, i.unmountComponentAtNode)(e);
+ }
+ function lw(e, t = Wr('redoc'), r) {
+ const o = ey.fromJS(e);
+ setTimeout(() => {
+ (0, i.hydrate)(n.createElement(Gb, { store: o }), t, r);
+ }, 0);
+ }
+ !(function () {
+ const e = Wr('redoc');
+ if (!e) return;
+ const t = e.getAttribute('spec-url');
+ t && aw(t, {}, e);
+ })();
+ })(),
+ o
+ );
+ })();
+});
+//# sourceMappingURL=redoc.standalone.js.map
diff --git a/public/static/swagger-ui-bundle.js b/public/static/swagger-ui-bundle.js
new file mode 100644
index 00000000..a6ab479b
--- /dev/null
+++ b/public/static/swagger-ui-bundle.js
@@ -0,0 +1,82959 @@
+/*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
+!(function webpackUniversalModuleDefinition(s, o) {
+ 'object' == typeof exports && 'object' == typeof module
+ ? (module.exports = o())
+ : 'function' == typeof define && define.amd
+ ? define([], o)
+ : 'object' == typeof exports
+ ? (exports.SwaggerUIBundle = o())
+ : (s.SwaggerUIBundle = o());
+})(this, () =>
+ (() => {
+ var s = {
+ 251: (s, o) => {
+ (o.read = function (s, o, i, a, u) {
+ var _,
+ w,
+ x = 8 * u - a - 1,
+ C = (1 << x) - 1,
+ j = C >> 1,
+ L = -7,
+ B = i ? u - 1 : 0,
+ $ = i ? -1 : 1,
+ V = s[o + B];
+ for (
+ B += $, _ = V & ((1 << -L) - 1), V >>= -L, L += x;
+ L > 0;
+ _ = 256 * _ + s[o + B], B += $, L -= 8
+ );
+ for (
+ w = _ & ((1 << -L) - 1), _ >>= -L, L += a;
+ L > 0;
+ w = 256 * w + s[o + B], B += $, L -= 8
+ );
+ if (0 === _) _ = 1 - j;
+ else {
+ if (_ === C) return w ? NaN : (1 / 0) * (V ? -1 : 1);
+ (w += Math.pow(2, a)), (_ -= j);
+ }
+ return (V ? -1 : 1) * w * Math.pow(2, _ - a);
+ }),
+ (o.write = function (s, o, i, a, u, _) {
+ var w,
+ x,
+ C,
+ j = 8 * _ - u - 1,
+ L = (1 << j) - 1,
+ B = L >> 1,
+ $ = 23 === u ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
+ V = a ? 0 : _ - 1,
+ U = a ? 1 : -1,
+ z = o < 0 || (0 === o && 1 / o < 0) ? 1 : 0;
+ for (
+ o = Math.abs(o),
+ isNaN(o) || o === 1 / 0
+ ? ((x = isNaN(o) ? 1 : 0), (w = L))
+ : ((w = Math.floor(Math.log(o) / Math.LN2)),
+ o * (C = Math.pow(2, -w)) < 1 && (w--, (C *= 2)),
+ (o += w + B >= 1 ? $ / C : $ * Math.pow(2, 1 - B)) * C >=
+ 2 && (w++, (C /= 2)),
+ w + B >= L
+ ? ((x = 0), (w = L))
+ : w + B >= 1
+ ? ((x = (o * C - 1) * Math.pow(2, u)), (w += B))
+ : ((x = o * Math.pow(2, B - 1) * Math.pow(2, u)),
+ (w = 0)));
+ u >= 8;
+ s[i + V] = 255 & x, V += U, x /= 256, u -= 8
+ );
+ for (
+ w = (w << u) | x, j += u;
+ j > 0;
+ s[i + V] = 255 & w, V += U, w /= 256, j -= 8
+ );
+ s[i + V - U] |= 128 * z;
+ });
+ },
+ 462: (s, o, i) => {
+ 'use strict';
+ var a = i(40975);
+ s.exports = a;
+ },
+ 659: (s, o, i) => {
+ var a = i(51873),
+ u = Object.prototype,
+ _ = u.hasOwnProperty,
+ w = u.toString,
+ x = a ? a.toStringTag : void 0;
+ s.exports = function getRawTag(s) {
+ var o = _.call(s, x),
+ i = s[x];
+ try {
+ s[x] = void 0;
+ var a = !0;
+ } catch (s) {}
+ var u = w.call(s);
+ return a && (o ? (s[x] = i) : delete s[x]), u;
+ };
+ },
+ 694: (s, o, i) => {
+ 'use strict';
+ i(91599);
+ var a = i(37257);
+ i(12560), (s.exports = a);
+ },
+ 953: (s, o, i) => {
+ 'use strict';
+ s.exports = i(53375);
+ },
+ 1733: (s) => {
+ var o = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
+ s.exports = function asciiWords(s) {
+ return s.match(o) || [];
+ };
+ },
+ 1882: (s, o, i) => {
+ var a = i(72552),
+ u = i(23805);
+ s.exports = function isFunction(s) {
+ if (!u(s)) return !1;
+ var o = a(s);
+ return (
+ '[object Function]' == o ||
+ '[object GeneratorFunction]' == o ||
+ '[object AsyncFunction]' == o ||
+ '[object Proxy]' == o
+ );
+ };
+ },
+ 1907: (s, o, i) => {
+ 'use strict';
+ var a = i(41505),
+ u = Function.prototype,
+ _ = u.call,
+ w = a && u.bind.bind(_, _);
+ s.exports = a
+ ? w
+ : function (s) {
+ return function () {
+ return _.apply(s, arguments);
+ };
+ };
+ },
+ 2205: function (s, o, i) {
+ var a;
+ (a = void 0 !== i.g ? i.g : this),
+ (s.exports = (function (s) {
+ if (s.CSS && s.CSS.escape) return s.CSS.escape;
+ var cssEscape = function (s) {
+ if (0 == arguments.length)
+ throw new TypeError('`CSS.escape` requires an argument.');
+ for (
+ var o,
+ i = String(s),
+ a = i.length,
+ u = -1,
+ _ = '',
+ w = i.charCodeAt(0);
+ ++u < a;
+
+ )
+ 0 != (o = i.charCodeAt(u))
+ ? (_ +=
+ (o >= 1 && o <= 31) ||
+ 127 == o ||
+ (0 == u && o >= 48 && o <= 57) ||
+ (1 == u && o >= 48 && o <= 57 && 45 == w)
+ ? '\\' + o.toString(16) + ' '
+ : (0 == u && 1 == a && 45 == o) ||
+ !(
+ o >= 128 ||
+ 45 == o ||
+ 95 == o ||
+ (o >= 48 && o <= 57) ||
+ (o >= 65 && o <= 90) ||
+ (o >= 97 && o <= 122)
+ )
+ ? '\\' + i.charAt(u)
+ : i.charAt(u))
+ : (_ += '�');
+ return _;
+ };
+ return (
+ s.CSS || (s.CSS = {}), (s.CSS.escape = cssEscape), cssEscape
+ );
+ })(a));
+ },
+ 2209: (s, o, i) => {
+ 'use strict';
+ var a,
+ u = i(9404),
+ _ = function productionTypeChecker() {
+ invariant(
+ !1,
+ 'ImmutablePropTypes type checking code is stripped in production.'
+ );
+ };
+ _.isRequired = _;
+ var w = function getProductionTypeChecker() {
+ return _;
+ };
+ function getPropType(s) {
+ var o = typeof s;
+ return Array.isArray(s)
+ ? 'array'
+ : s instanceof RegExp
+ ? 'object'
+ : s instanceof u.Iterable
+ ? 'Immutable.' + s.toSource().split(' ')[0]
+ : o;
+ }
+ function createChainableTypeChecker(s) {
+ function checkType(o, i, a, u, _, w) {
+ for (
+ var x = arguments.length, C = Array(x > 6 ? x - 6 : 0), j = 6;
+ j < x;
+ j++
+ )
+ C[j - 6] = arguments[j];
+ return (
+ (w = w || a),
+ (u = u || '<>'),
+ null != i[a]
+ ? s.apply(void 0, [i, a, u, _, w].concat(C))
+ : o
+ ? new Error(
+ 'Required ' +
+ _ +
+ ' `' +
+ w +
+ '` was not specified in `' +
+ u +
+ '`.'
+ )
+ : void 0
+ );
+ }
+ var o = checkType.bind(null, !1);
+ return (o.isRequired = checkType.bind(null, !0)), o;
+ }
+ function createIterableSubclassTypeChecker(s, o) {
+ return (function createImmutableTypeChecker(s, o) {
+ return createChainableTypeChecker(
+ function validate(i, a, u, _, w) {
+ var x = i[a];
+ if (!o(x)) {
+ var C = getPropType(x);
+ return new Error(
+ 'Invalid ' +
+ _ +
+ ' `' +
+ w +
+ '` of type `' +
+ C +
+ '` supplied to `' +
+ u +
+ '`, expected `' +
+ s +
+ '`.'
+ );
+ }
+ return null;
+ }
+ );
+ })('Iterable.' + s, function (s) {
+ return u.Iterable.isIterable(s) && o(s);
+ });
+ }
+ ((a = {
+ listOf: w,
+ mapOf: w,
+ orderedMapOf: w,
+ setOf: w,
+ orderedSetOf: w,
+ stackOf: w,
+ iterableOf: w,
+ recordOf: w,
+ shape: w,
+ contains: w,
+ mapContains: w,
+ orderedMapContains: w,
+ list: _,
+ map: _,
+ orderedMap: _,
+ set: _,
+ orderedSet: _,
+ stack: _,
+ seq: _,
+ record: _,
+ iterable: _
+ }).iterable.indexed = createIterableSubclassTypeChecker(
+ 'Indexed',
+ u.Iterable.isIndexed
+ )),
+ (a.iterable.keyed = createIterableSubclassTypeChecker(
+ 'Keyed',
+ u.Iterable.isKeyed
+ )),
+ (s.exports = a);
+ },
+ 2404: (s, o, i) => {
+ var a = i(60270);
+ s.exports = function isEqual(s, o) {
+ return a(s, o);
+ };
+ },
+ 2523: (s) => {
+ s.exports = function baseFindIndex(s, o, i, a) {
+ for (var u = s.length, _ = i + (a ? 1 : -1); a ? _-- : ++_ < u; )
+ if (o(s[_], _, s)) return _;
+ return -1;
+ };
+ },
+ 2532: (s, o, i) => {
+ 'use strict';
+ var a = i(45951),
+ u = Object.defineProperty;
+ s.exports = function (s, o) {
+ try {
+ u(a, s, { value: o, configurable: !0, writable: !0 });
+ } catch (i) {
+ a[s] = o;
+ }
+ return o;
+ };
+ },
+ 2694: (s, o, i) => {
+ 'use strict';
+ var a = i(6925);
+ function emptyFunction() {}
+ function emptyFunctionWithReset() {}
+ (emptyFunctionWithReset.resetWarningCache = emptyFunction),
+ (s.exports = function () {
+ function shim(s, o, i, u, _, w) {
+ if (w !== a) {
+ var x = new Error(
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types'
+ );
+ throw ((x.name = 'Invariant Violation'), x);
+ }
+ }
+ function getShim() {
+ return shim;
+ }
+ shim.isRequired = shim;
+ var s = {
+ array: shim,
+ bigint: shim,
+ bool: shim,
+ func: shim,
+ number: shim,
+ object: shim,
+ string: shim,
+ symbol: shim,
+ any: shim,
+ arrayOf: getShim,
+ element: shim,
+ elementType: shim,
+ instanceOf: getShim,
+ node: shim,
+ objectOf: getShim,
+ oneOf: getShim,
+ oneOfType: getShim,
+ shape: getShim,
+ exact: getShim,
+ checkPropTypes: emptyFunctionWithReset,
+ resetWarningCache: emptyFunction
+ };
+ return (s.PropTypes = s), s;
+ });
+ },
+ 2874: (s) => {
+ s.exports = {};
+ },
+ 2875: (s, o, i) => {
+ 'use strict';
+ var a = i(23045),
+ u = i(80376);
+ s.exports =
+ Object.keys ||
+ function keys(s) {
+ return a(s, u);
+ };
+ },
+ 2955: (s, o, i) => {
+ 'use strict';
+ var a,
+ u = i(65606);
+ function _defineProperty(s, o, i) {
+ return (
+ (o = (function _toPropertyKey(s) {
+ var o = (function _toPrimitive(s, o) {
+ if ('object' != typeof s || null === s) return s;
+ var i = s[Symbol.toPrimitive];
+ if (void 0 !== i) {
+ var a = i.call(s, o || 'default');
+ if ('object' != typeof a) return a;
+ throw new TypeError(
+ '@@toPrimitive must return a primitive value.'
+ );
+ }
+ return ('string' === o ? String : Number)(s);
+ })(s, 'string');
+ return 'symbol' == typeof o ? o : String(o);
+ })(o)) in s
+ ? Object.defineProperty(s, o, {
+ value: i,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ })
+ : (s[o] = i),
+ s
+ );
+ }
+ var _ = i(86238),
+ w = Symbol('lastResolve'),
+ x = Symbol('lastReject'),
+ C = Symbol('error'),
+ j = Symbol('ended'),
+ L = Symbol('lastPromise'),
+ B = Symbol('handlePromise'),
+ $ = Symbol('stream');
+ function createIterResult(s, o) {
+ return { value: s, done: o };
+ }
+ function readAndResolve(s) {
+ var o = s[w];
+ if (null !== o) {
+ var i = s[$].read();
+ null !== i &&
+ ((s[L] = null),
+ (s[w] = null),
+ (s[x] = null),
+ o(createIterResult(i, !1)));
+ }
+ }
+ function onReadable(s) {
+ u.nextTick(readAndResolve, s);
+ }
+ var V = Object.getPrototypeOf(function () {}),
+ U = Object.setPrototypeOf(
+ (_defineProperty(
+ (a = {
+ get stream() {
+ return this[$];
+ },
+ next: function next() {
+ var s = this,
+ o = this[C];
+ if (null !== o) return Promise.reject(o);
+ if (this[j])
+ return Promise.resolve(createIterResult(void 0, !0));
+ if (this[$].destroyed)
+ return new Promise(function (o, i) {
+ u.nextTick(function () {
+ s[C] ? i(s[C]) : o(createIterResult(void 0, !0));
+ });
+ });
+ var i,
+ a = this[L];
+ if (a)
+ i = new Promise(
+ (function wrapForNext(s, o) {
+ return function (i, a) {
+ s.then(function () {
+ o[j]
+ ? i(createIterResult(void 0, !0))
+ : o[B](i, a);
+ }, a);
+ };
+ })(a, this)
+ );
+ else {
+ var _ = this[$].read();
+ if (null !== _)
+ return Promise.resolve(createIterResult(_, !1));
+ i = new Promise(this[B]);
+ }
+ return (this[L] = i), i;
+ }
+ }),
+ Symbol.asyncIterator,
+ function () {
+ return this;
+ }
+ ),
+ _defineProperty(a, 'return', function _return() {
+ var s = this;
+ return new Promise(function (o, i) {
+ s[$].destroy(null, function (s) {
+ s ? i(s) : o(createIterResult(void 0, !0));
+ });
+ });
+ }),
+ a),
+ V
+ );
+ s.exports = function createReadableStreamAsyncIterator(s) {
+ var o,
+ i = Object.create(
+ U,
+ (_defineProperty((o = {}), $, { value: s, writable: !0 }),
+ _defineProperty(o, w, { value: null, writable: !0 }),
+ _defineProperty(o, x, { value: null, writable: !0 }),
+ _defineProperty(o, C, { value: null, writable: !0 }),
+ _defineProperty(o, j, {
+ value: s._readableState.endEmitted,
+ writable: !0
+ }),
+ _defineProperty(o, B, {
+ value: function value(s, o) {
+ var a = i[$].read();
+ a
+ ? ((i[L] = null),
+ (i[w] = null),
+ (i[x] = null),
+ s(createIterResult(a, !1)))
+ : ((i[w] = s), (i[x] = o));
+ },
+ writable: !0
+ }),
+ o)
+ );
+ return (
+ (i[L] = null),
+ _(s, function (s) {
+ if (s && 'ERR_STREAM_PREMATURE_CLOSE' !== s.code) {
+ var o = i[x];
+ return (
+ null !== o &&
+ ((i[L] = null), (i[w] = null), (i[x] = null), o(s)),
+ void (i[C] = s)
+ );
+ }
+ var a = i[w];
+ null !== a &&
+ ((i[L] = null),
+ (i[w] = null),
+ (i[x] = null),
+ a(createIterResult(void 0, !0))),
+ (i[j] = !0);
+ }),
+ s.on('readable', onReadable.bind(null, i)),
+ i
+ );
+ };
+ },
+ 3110: (s, o, i) => {
+ const a = i(5187),
+ u = i(85015),
+ _ = i(98023),
+ w = i(53812),
+ x = i(23805),
+ C = i(85105),
+ j = i(86804);
+ class Namespace {
+ constructor(s) {
+ (this.elementMap = {}),
+ (this.elementDetection = []),
+ (this.Element = j.Element),
+ (this.KeyValuePair = j.KeyValuePair),
+ (s && s.noDefault) || this.useDefault(),
+ (this._attributeElementKeys = []),
+ (this._attributeElementArrayKeys = []);
+ }
+ use(s) {
+ return (
+ s.namespace && s.namespace({ base: this }),
+ s.load && s.load({ base: this }),
+ this
+ );
+ }
+ useDefault() {
+ return (
+ this.register('null', j.NullElement)
+ .register('string', j.StringElement)
+ .register('number', j.NumberElement)
+ .register('boolean', j.BooleanElement)
+ .register('array', j.ArrayElement)
+ .register('object', j.ObjectElement)
+ .register('member', j.MemberElement)
+ .register('ref', j.RefElement)
+ .register('link', j.LinkElement),
+ this.detect(a, j.NullElement, !1)
+ .detect(u, j.StringElement, !1)
+ .detect(_, j.NumberElement, !1)
+ .detect(w, j.BooleanElement, !1)
+ .detect(Array.isArray, j.ArrayElement, !1)
+ .detect(x, j.ObjectElement, !1),
+ this
+ );
+ }
+ register(s, o) {
+ return (this._elements = void 0), (this.elementMap[s] = o), this;
+ }
+ unregister(s) {
+ return (this._elements = void 0), delete this.elementMap[s], this;
+ }
+ detect(s, o, i) {
+ return (
+ void 0 === i || i
+ ? this.elementDetection.unshift([s, o])
+ : this.elementDetection.push([s, o]),
+ this
+ );
+ }
+ toElement(s) {
+ if (s instanceof this.Element) return s;
+ let o;
+ for (let i = 0; i < this.elementDetection.length; i += 1) {
+ const a = this.elementDetection[i][0],
+ u = this.elementDetection[i][1];
+ if (a(s)) {
+ o = new u(s);
+ break;
+ }
+ }
+ return o;
+ }
+ getElementClass(s) {
+ const o = this.elementMap[s];
+ return void 0 === o ? this.Element : o;
+ }
+ fromRefract(s) {
+ return this.serialiser.deserialise(s);
+ }
+ toRefract(s) {
+ return this.serialiser.serialise(s);
+ }
+ get elements() {
+ return (
+ void 0 === this._elements &&
+ ((this._elements = { Element: this.Element }),
+ Object.keys(this.elementMap).forEach((s) => {
+ const o = s[0].toUpperCase() + s.substr(1);
+ this._elements[o] = this.elementMap[s];
+ })),
+ this._elements
+ );
+ }
+ get serialiser() {
+ return new C(this);
+ }
+ }
+ (C.prototype.Namespace = Namespace), (s.exports = Namespace);
+ },
+ 3121: (s, o, i) => {
+ 'use strict';
+ var a = i(65482),
+ u = Math.min;
+ s.exports = function (s) {
+ var o = a(s);
+ return o > 0 ? u(o, 9007199254740991) : 0;
+ };
+ },
+ 3209: (s, o, i) => {
+ var a = i(91596),
+ u = i(53320),
+ _ = i(36306),
+ w = '__lodash_placeholder__',
+ x = 128,
+ C = Math.min;
+ s.exports = function mergeData(s, o) {
+ var i = s[1],
+ j = o[1],
+ L = i | j,
+ B = L < 131,
+ $ =
+ (j == x && 8 == i) ||
+ (j == x && 256 == i && s[7].length <= o[8]) ||
+ (384 == j && o[7].length <= o[8] && 8 == i);
+ if (!B && !$) return s;
+ 1 & j && ((s[2] = o[2]), (L |= 1 & i ? 0 : 4));
+ var V = o[3];
+ if (V) {
+ var U = s[3];
+ (s[3] = U ? a(U, V, o[4]) : V), (s[4] = U ? _(s[3], w) : o[4]);
+ }
+ return (
+ (V = o[5]) &&
+ ((U = s[5]),
+ (s[5] = U ? u(U, V, o[6]) : V),
+ (s[6] = U ? _(s[5], w) : o[6])),
+ (V = o[7]) && (s[7] = V),
+ j & x && (s[8] = null == s[8] ? o[8] : C(s[8], o[8])),
+ null == s[9] && (s[9] = o[9]),
+ (s[0] = o[0]),
+ (s[1] = L),
+ s
+ );
+ };
+ },
+ 3650: (s, o, i) => {
+ var a = i(74335)(Object.keys, Object);
+ s.exports = a;
+ },
+ 3656: (s, o, i) => {
+ s = i.nmd(s);
+ var a = i(9325),
+ u = i(89935),
+ _ = o && !o.nodeType && o,
+ w = _ && s && !s.nodeType && s,
+ x = w && w.exports === _ ? a.Buffer : void 0,
+ C = (x ? x.isBuffer : void 0) || u;
+ s.exports = C;
+ },
+ 4509: (s, o, i) => {
+ var a = i(12651);
+ s.exports = function mapCacheHas(s) {
+ return a(this, s).has(s);
+ };
+ },
+ 4640: (s) => {
+ 'use strict';
+ var o = String;
+ s.exports = function (s) {
+ try {
+ return o(s);
+ } catch (s) {
+ return 'Object';
+ }
+ };
+ },
+ 4664: (s, o, i) => {
+ var a = i(79770),
+ u = i(63345),
+ _ = Object.prototype.propertyIsEnumerable,
+ w = Object.getOwnPropertySymbols,
+ x = w
+ ? function (s) {
+ return null == s
+ ? []
+ : ((s = Object(s)),
+ a(w(s), function (o) {
+ return _.call(s, o);
+ }));
+ }
+ : u;
+ s.exports = x;
+ },
+ 4901: (s, o, i) => {
+ var a = i(72552),
+ u = i(30294),
+ _ = i(40346),
+ w = {};
+ (w['[object Float32Array]'] =
+ w['[object Float64Array]'] =
+ w['[object Int8Array]'] =
+ w['[object Int16Array]'] =
+ w['[object Int32Array]'] =
+ w['[object Uint8Array]'] =
+ w['[object Uint8ClampedArray]'] =
+ w['[object Uint16Array]'] =
+ w['[object Uint32Array]'] =
+ !0),
+ (w['[object Arguments]'] =
+ w['[object Array]'] =
+ w['[object ArrayBuffer]'] =
+ w['[object Boolean]'] =
+ w['[object DataView]'] =
+ w['[object Date]'] =
+ w['[object Error]'] =
+ w['[object Function]'] =
+ w['[object Map]'] =
+ w['[object Number]'] =
+ w['[object Object]'] =
+ w['[object RegExp]'] =
+ w['[object Set]'] =
+ w['[object String]'] =
+ w['[object WeakMap]'] =
+ !1),
+ (s.exports = function baseIsTypedArray(s) {
+ return _(s) && u(s.length) && !!w[a(s)];
+ });
+ },
+ 4993: (s, o, i) => {
+ 'use strict';
+ var a = i(16946),
+ u = i(74239);
+ s.exports = function (s) {
+ return a(u(s));
+ };
+ },
+ 5187: (s) => {
+ s.exports = function isNull(s) {
+ return null === s;
+ };
+ },
+ 5419: (s) => {
+ s.exports = function (s, o, i, a) {
+ var u = new Blob(void 0 !== a ? [a, s] : [s], {
+ type: i || 'application/octet-stream'
+ });
+ if (void 0 !== window.navigator.msSaveBlob)
+ window.navigator.msSaveBlob(u, o);
+ else {
+ var _ =
+ window.URL && window.URL.createObjectURL
+ ? window.URL.createObjectURL(u)
+ : window.webkitURL.createObjectURL(u),
+ w = document.createElement('a');
+ (w.style.display = 'none'),
+ (w.href = _),
+ w.setAttribute('download', o),
+ void 0 === w.download && w.setAttribute('target', '_blank'),
+ document.body.appendChild(w),
+ w.click(),
+ setTimeout(function () {
+ document.body.removeChild(w), window.URL.revokeObjectURL(_);
+ }, 200);
+ }
+ };
+ },
+ 5556: (s, o, i) => {
+ s.exports = i(2694)();
+ },
+ 5861: (s, o, i) => {
+ var a = i(55580),
+ u = i(68223),
+ _ = i(32804),
+ w = i(76545),
+ x = i(28303),
+ C = i(72552),
+ j = i(47473),
+ L = '[object Map]',
+ B = '[object Promise]',
+ $ = '[object Set]',
+ V = '[object WeakMap]',
+ U = '[object DataView]',
+ z = j(a),
+ Y = j(u),
+ Z = j(_),
+ ee = j(w),
+ ie = j(x),
+ ae = C;
+ ((a && ae(new a(new ArrayBuffer(1))) != U) ||
+ (u && ae(new u()) != L) ||
+ (_ && ae(_.resolve()) != B) ||
+ (w && ae(new w()) != $) ||
+ (x && ae(new x()) != V)) &&
+ (ae = function (s) {
+ var o = C(s),
+ i = '[object Object]' == o ? s.constructor : void 0,
+ a = i ? j(i) : '';
+ if (a)
+ switch (a) {
+ case z:
+ return U;
+ case Y:
+ return L;
+ case Z:
+ return B;
+ case ee:
+ return $;
+ case ie:
+ return V;
+ }
+ return o;
+ }),
+ (s.exports = ae);
+ },
+ 6048: (s) => {
+ s.exports = function negate(s) {
+ if ('function' != typeof s)
+ throw new TypeError('Expected a function');
+ return function () {
+ var o = arguments;
+ switch (o.length) {
+ case 0:
+ return !s.call(this);
+ case 1:
+ return !s.call(this, o[0]);
+ case 2:
+ return !s.call(this, o[0], o[1]);
+ case 3:
+ return !s.call(this, o[0], o[1], o[2]);
+ }
+ return !s.apply(this, o);
+ };
+ };
+ },
+ 6205: (s) => {
+ s.exports = {
+ ROOT: 0,
+ GROUP: 1,
+ POSITION: 2,
+ SET: 3,
+ RANGE: 4,
+ REPETITION: 5,
+ REFERENCE: 6,
+ CHAR: 7
+ };
+ },
+ 6233: (s, o, i) => {
+ const a = i(6048),
+ u = i(10316),
+ _ = i(92340);
+ class ArrayElement extends u {
+ constructor(s, o, i) {
+ super(s || [], o, i), (this.element = 'array');
+ }
+ primitive() {
+ return 'array';
+ }
+ get(s) {
+ return this.content[s];
+ }
+ getValue(s) {
+ const o = this.get(s);
+ if (o) return o.toValue();
+ }
+ getIndex(s) {
+ return this.content[s];
+ }
+ set(s, o) {
+ return (this.content[s] = this.refract(o)), this;
+ }
+ remove(s) {
+ const o = this.content.splice(s, 1);
+ return o.length ? o[0] : null;
+ }
+ map(s, o) {
+ return this.content.map(s, o);
+ }
+ flatMap(s, o) {
+ return this.map(s, o).reduce((s, o) => s.concat(o), []);
+ }
+ compactMap(s, o) {
+ const i = [];
+ return (
+ this.forEach((a) => {
+ const u = s.bind(o)(a);
+ u && i.push(u);
+ }),
+ i
+ );
+ }
+ filter(s, o) {
+ return new _(this.content.filter(s, o));
+ }
+ reject(s, o) {
+ return this.filter(a(s), o);
+ }
+ reduce(s, o) {
+ let i, a;
+ void 0 !== o
+ ? ((i = 0), (a = this.refract(o)))
+ : ((i = 1),
+ (a =
+ 'object' === this.primitive()
+ ? this.first.value
+ : this.first));
+ for (let o = i; o < this.length; o += 1) {
+ const i = this.content[o];
+ a =
+ 'object' === this.primitive()
+ ? this.refract(s(a, i.value, i.key, i, this))
+ : this.refract(s(a, i, o, this));
+ }
+ return a;
+ }
+ forEach(s, o) {
+ this.content.forEach((i, a) => {
+ s.bind(o)(i, this.refract(a));
+ });
+ }
+ shift() {
+ return this.content.shift();
+ }
+ unshift(s) {
+ this.content.unshift(this.refract(s));
+ }
+ push(s) {
+ return this.content.push(this.refract(s)), this;
+ }
+ add(s) {
+ this.push(s);
+ }
+ findElements(s, o) {
+ const i = o || {},
+ a = !!i.recursive,
+ u = void 0 === i.results ? [] : i.results;
+ return (
+ this.forEach((o, i, _) => {
+ a &&
+ void 0 !== o.findElements &&
+ o.findElements(s, { results: u, recursive: a }),
+ s(o, i, _) && u.push(o);
+ }),
+ u
+ );
+ }
+ find(s) {
+ return new _(this.findElements(s, { recursive: !0 }));
+ }
+ findByElement(s) {
+ return this.find((o) => o.element === s);
+ }
+ findByClass(s) {
+ return this.find((o) => o.classes.includes(s));
+ }
+ getById(s) {
+ return this.find((o) => o.id.toValue() === s).first;
+ }
+ includes(s) {
+ return this.content.some((o) => o.equals(s));
+ }
+ contains(s) {
+ return this.includes(s);
+ }
+ empty() {
+ return new this.constructor([]);
+ }
+ 'fantasy-land/empty'() {
+ return this.empty();
+ }
+ concat(s) {
+ return new this.constructor(this.content.concat(s.content));
+ }
+ 'fantasy-land/concat'(s) {
+ return this.concat(s);
+ }
+ 'fantasy-land/map'(s) {
+ return new this.constructor(this.map(s));
+ }
+ 'fantasy-land/chain'(s) {
+ return this.map((o) => s(o), this).reduce(
+ (s, o) => s.concat(o),
+ this.empty()
+ );
+ }
+ 'fantasy-land/filter'(s) {
+ return new this.constructor(this.content.filter(s));
+ }
+ 'fantasy-land/reduce'(s, o) {
+ return this.content.reduce(s, o);
+ }
+ get length() {
+ return this.content.length;
+ }
+ get isEmpty() {
+ return 0 === this.content.length;
+ }
+ get first() {
+ return this.getIndex(0);
+ }
+ get second() {
+ return this.getIndex(1);
+ }
+ get last() {
+ return this.getIndex(this.length - 1);
+ }
+ }
+ (ArrayElement.empty = function empty() {
+ return new this();
+ }),
+ (ArrayElement['fantasy-land/empty'] = ArrayElement.empty),
+ 'undefined' != typeof Symbol &&
+ (ArrayElement.prototype[Symbol.iterator] = function symbol() {
+ return this.content[Symbol.iterator]();
+ }),
+ (s.exports = ArrayElement);
+ },
+ 6499: (s, o, i) => {
+ 'use strict';
+ var a = i(1907),
+ u = 0,
+ _ = Math.random(),
+ w = a((1).toString);
+ s.exports = function (s) {
+ return 'Symbol(' + (void 0 === s ? '' : s) + ')_' + w(++u + _, 36);
+ };
+ },
+ 6925: (s) => {
+ 'use strict';
+ s.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
+ },
+ 7057: (s, o, i) => {
+ 'use strict';
+ var a = i(11470).charAt,
+ u = i(90160),
+ _ = i(64932),
+ w = i(60183),
+ x = i(59550),
+ C = 'String Iterator',
+ j = _.set,
+ L = _.getterFor(C);
+ w(
+ String,
+ 'String',
+ function (s) {
+ j(this, { type: C, string: u(s), index: 0 });
+ },
+ function next() {
+ var s,
+ o = L(this),
+ i = o.string,
+ u = o.index;
+ return u >= i.length
+ ? x(void 0, !0)
+ : ((s = a(i, u)), (o.index += s.length), x(s, !1));
+ }
+ );
+ },
+ 7309: (s, o, i) => {
+ var a = i(62006)(i(24713));
+ s.exports = a;
+ },
+ 7376: (s) => {
+ 'use strict';
+ s.exports = !0;
+ },
+ 7463: (s, o, i) => {
+ 'use strict';
+ var a = i(98828),
+ u = i(62250),
+ _ = /#|\.prototype\./,
+ isForced = function (s, o) {
+ var i = x[w(s)];
+ return i === j || (i !== C && (u(o) ? a(o) : !!o));
+ },
+ w = (isForced.normalize = function (s) {
+ return String(s).replace(_, '.').toLowerCase();
+ }),
+ x = (isForced.data = {}),
+ C = (isForced.NATIVE = 'N'),
+ j = (isForced.POLYFILL = 'P');
+ s.exports = isForced;
+ },
+ 7666: (s, o, i) => {
+ var a = i(84851),
+ u = i(953);
+ function _extends() {
+ var o;
+ return (
+ (s.exports = _extends =
+ a
+ ? u((o = a)).call(o)
+ : function (s) {
+ for (var o = 1; o < arguments.length; o++) {
+ var i = arguments[o];
+ for (var a in i)
+ ({}).hasOwnProperty.call(i, a) && (s[a] = i[a]);
+ }
+ return s;
+ }),
+ (s.exports.__esModule = !0),
+ (s.exports.default = s.exports),
+ _extends.apply(null, arguments)
+ );
+ }
+ (s.exports = _extends),
+ (s.exports.__esModule = !0),
+ (s.exports.default = s.exports);
+ },
+ 8048: (s, o, i) => {
+ const a = i(6205);
+ (o.wordBoundary = () => ({ type: a.POSITION, value: 'b' })),
+ (o.nonWordBoundary = () => ({ type: a.POSITION, value: 'B' })),
+ (o.begin = () => ({ type: a.POSITION, value: '^' })),
+ (o.end = () => ({ type: a.POSITION, value: '$' }));
+ },
+ 8068: (s) => {
+ 'use strict';
+ var o = (() => {
+ var s = Object.defineProperty,
+ o = Object.getOwnPropertyDescriptor,
+ i = Object.getOwnPropertyNames,
+ a = Object.getOwnPropertySymbols,
+ u = Object.prototype.hasOwnProperty,
+ _ = Object.prototype.propertyIsEnumerable,
+ __defNormalProp = (o, i, a) =>
+ i in o
+ ? s(o, i, {
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ value: a
+ })
+ : (o[i] = a),
+ __spreadValues = (s, o) => {
+ for (var i in o || (o = {}))
+ u.call(o, i) && __defNormalProp(s, i, o[i]);
+ if (a)
+ for (var i of a(o))
+ _.call(o, i) && __defNormalProp(s, i, o[i]);
+ return s;
+ },
+ __publicField = (s, o, i) => (
+ __defNormalProp(s, 'symbol' != typeof o ? o + '' : o, i), i
+ ),
+ w = {};
+ ((o, i) => {
+ for (var a in i) s(o, a, { get: i[a], enumerable: !0 });
+ })(w, {
+ DEFAULT_OPTIONS: () => C,
+ DEFAULT_UUID_LENGTH: () => x,
+ default: () => B
+ });
+ var x = 6,
+ C = {
+ dictionary: 'alphanum',
+ shuffle: !0,
+ debug: !1,
+ length: x,
+ counter: 0
+ },
+ j = class _ShortUniqueId {
+ constructor(s = {}) {
+ __publicField(this, 'counter'),
+ __publicField(this, 'debug'),
+ __publicField(this, 'dict'),
+ __publicField(this, 'version'),
+ __publicField(this, 'dictIndex', 0),
+ __publicField(this, 'dictRange', []),
+ __publicField(this, 'lowerBound', 0),
+ __publicField(this, 'upperBound', 0),
+ __publicField(this, 'dictLength', 0),
+ __publicField(this, 'uuidLength'),
+ __publicField(this, '_digit_first_ascii', 48),
+ __publicField(this, '_digit_last_ascii', 58),
+ __publicField(this, '_alpha_lower_first_ascii', 97),
+ __publicField(this, '_alpha_lower_last_ascii', 123),
+ __publicField(this, '_hex_last_ascii', 103),
+ __publicField(this, '_alpha_upper_first_ascii', 65),
+ __publicField(this, '_alpha_upper_last_ascii', 91),
+ __publicField(this, '_number_dict_ranges', {
+ digits: [this._digit_first_ascii, this._digit_last_ascii]
+ }),
+ __publicField(this, '_alpha_dict_ranges', {
+ lowerCase: [
+ this._alpha_lower_first_ascii,
+ this._alpha_lower_last_ascii
+ ],
+ upperCase: [
+ this._alpha_upper_first_ascii,
+ this._alpha_upper_last_ascii
+ ]
+ }),
+ __publicField(this, '_alpha_lower_dict_ranges', {
+ lowerCase: [
+ this._alpha_lower_first_ascii,
+ this._alpha_lower_last_ascii
+ ]
+ }),
+ __publicField(this, '_alpha_upper_dict_ranges', {
+ upperCase: [
+ this._alpha_upper_first_ascii,
+ this._alpha_upper_last_ascii
+ ]
+ }),
+ __publicField(this, '_alphanum_dict_ranges', {
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
+ lowerCase: [
+ this._alpha_lower_first_ascii,
+ this._alpha_lower_last_ascii
+ ],
+ upperCase: [
+ this._alpha_upper_first_ascii,
+ this._alpha_upper_last_ascii
+ ]
+ }),
+ __publicField(this, '_alphanum_lower_dict_ranges', {
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
+ lowerCase: [
+ this._alpha_lower_first_ascii,
+ this._alpha_lower_last_ascii
+ ]
+ }),
+ __publicField(this, '_alphanum_upper_dict_ranges', {
+ digits: [this._digit_first_ascii, this._digit_last_ascii],
+ upperCase: [
+ this._alpha_upper_first_ascii,
+ this._alpha_upper_last_ascii
+ ]
+ }),
+ __publicField(this, '_hex_dict_ranges', {
+ decDigits: [
+ this._digit_first_ascii,
+ this._digit_last_ascii
+ ],
+ alphaDigits: [
+ this._alpha_lower_first_ascii,
+ this._hex_last_ascii
+ ]
+ }),
+ __publicField(this, '_dict_ranges', {
+ _number_dict_ranges: this._number_dict_ranges,
+ _alpha_dict_ranges: this._alpha_dict_ranges,
+ _alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
+ _alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
+ _alphanum_dict_ranges: this._alphanum_dict_ranges,
+ _alphanum_lower_dict_ranges:
+ this._alphanum_lower_dict_ranges,
+ _alphanum_upper_dict_ranges:
+ this._alphanum_upper_dict_ranges,
+ _hex_dict_ranges: this._hex_dict_ranges
+ }),
+ __publicField(this, 'log', (...s) => {
+ const o = [...s];
+ if (
+ ((o[0] = `[short-unique-id] ${s[0]}`),
+ !0 === this.debug &&
+ 'undefined' != typeof console &&
+ null !== console)
+ )
+ return console.log(...o);
+ }),
+ __publicField(this, '_normalizeDictionary', (s, o) => {
+ let i;
+ if (s && Array.isArray(s) && s.length > 1) i = s;
+ else {
+ let o;
+ (i = []), (this.dictIndex = o = 0);
+ const a = `_${s}_dict_ranges`,
+ u = this._dict_ranges[a];
+ Object.keys(u).forEach((s) => {
+ const a = s;
+ for (
+ this.dictRange = u[a],
+ this.lowerBound = this.dictRange[0],
+ this.upperBound = this.dictRange[1],
+ this.dictIndex = o = this.lowerBound;
+ this.lowerBound <= this.upperBound
+ ? o < this.upperBound
+ : o > this.upperBound;
+ this.dictIndex =
+ this.lowerBound <= this.upperBound
+ ? (o += 1)
+ : (o -= 1)
+ )
+ i.push(String.fromCharCode(this.dictIndex));
+ });
+ }
+ if (o) {
+ const s = 0.5;
+ i = i.sort(() => Math.random() - s);
+ }
+ return i;
+ }),
+ __publicField(this, 'setDictionary', (s, o) => {
+ (this.dict = this._normalizeDictionary(s, o)),
+ (this.dictLength = this.dict.length),
+ this.setCounter(0);
+ }),
+ __publicField(this, 'seq', () => this.sequentialUUID()),
+ __publicField(this, 'sequentialUUID', () => {
+ let s,
+ o,
+ i = '';
+ s = this.counter;
+ do {
+ (o = s % this.dictLength),
+ (s = Math.trunc(s / this.dictLength)),
+ (i += this.dict[o]);
+ } while (0 !== s);
+ return (this.counter += 1), i;
+ }),
+ __publicField(this, 'rnd', (s = this.uuidLength || x) =>
+ this.randomUUID(s)
+ ),
+ __publicField(
+ this,
+ 'randomUUID',
+ (s = this.uuidLength || x) => {
+ let o, i, a;
+ if (null == s || s < 1)
+ throw new Error('Invalid UUID Length Provided');
+ for (o = '', a = 0; a < s; a += 1)
+ (i =
+ parseInt(
+ (Math.random() * this.dictLength).toFixed(0),
+ 10
+ ) % this.dictLength),
+ (o += this.dict[i]);
+ return o;
+ }
+ ),
+ __publicField(this, 'fmt', (s, o) =>
+ this.formattedUUID(s, o)
+ ),
+ __publicField(this, 'formattedUUID', (s, o) => {
+ const i = {
+ $r: this.randomUUID,
+ $s: this.sequentialUUID,
+ $t: this.stamp
+ };
+ return s.replace(
+ /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
+ (s) => {
+ const a = s.slice(0, 2),
+ u = parseInt(s.slice(2), 10);
+ return '$s' === a
+ ? i[a]().padStart(u, '0')
+ : '$t' === a && o
+ ? i[a](u, o)
+ : i[a](u);
+ }
+ );
+ }),
+ __publicField(
+ this,
+ 'availableUUIDs',
+ (s = this.uuidLength) =>
+ parseFloat(
+ Math.pow([...new Set(this.dict)].length, s).toFixed(0)
+ )
+ ),
+ __publicField(
+ this,
+ 'approxMaxBeforeCollision',
+ (s = this.availableUUIDs(this.uuidLength)) =>
+ parseFloat(Math.sqrt((Math.PI / 2) * s).toFixed(20))
+ ),
+ __publicField(
+ this,
+ 'collisionProbability',
+ (
+ s = this.availableUUIDs(this.uuidLength),
+ o = this.uuidLength
+ ) =>
+ parseFloat(
+ (
+ this.approxMaxBeforeCollision(s) /
+ this.availableUUIDs(o)
+ ).toFixed(20)
+ )
+ ),
+ __publicField(
+ this,
+ 'uniqueness',
+ (s = this.availableUUIDs(this.uuidLength)) => {
+ const o = parseFloat(
+ (1 - this.approxMaxBeforeCollision(s) / s).toFixed(20)
+ );
+ return o > 1 ? 1 : o < 0 ? 0 : o;
+ }
+ ),
+ __publicField(this, 'getVersion', () => this.version),
+ __publicField(this, 'stamp', (s, o) => {
+ const i = Math.floor(+(o || new Date()) / 1e3).toString(
+ 16
+ );
+ if ('number' == typeof s && 0 === s) return i;
+ if ('number' != typeof s || s < 10)
+ throw new Error(
+ [
+ 'Param finalLength must be a number greater than or equal to 10,',
+ 'or 0 if you want the raw hexadecimal timestamp'
+ ].join('\n')
+ );
+ const a = s - 9,
+ u = Math.round(Math.random() * (a > 15 ? 15 : a)),
+ _ = this.randomUUID(a);
+ return `${_.substring(0, u)}${i}${_.substring(u)}${u.toString(16)}`;
+ }),
+ __publicField(this, 'parseStamp', (s, o) => {
+ if (o && !/t0|t[1-9]\d{1,}/.test(o))
+ throw new Error(
+ 'Cannot extract date from a formated UUID with no timestamp in the format'
+ );
+ const i = o
+ ? o
+ .replace(
+ /\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
+ (s) => {
+ const o = {
+ $r: (s) =>
+ [...Array(s)].map(() => 'r').join(''),
+ $s: (s) =>
+ [...Array(s)].map(() => 's').join(''),
+ $t: (s) =>
+ [...Array(s)].map(() => 't').join('')
+ },
+ i = s.slice(0, 2),
+ a = parseInt(s.slice(2), 10);
+ return o[i](a);
+ }
+ )
+ .replace(/^(.*?)(t{8,})(.*)$/g, (o, i, a) =>
+ s.substring(i.length, i.length + a.length)
+ )
+ : s;
+ if (8 === i.length)
+ return new Date(1e3 * parseInt(i, 16));
+ if (i.length < 10)
+ throw new Error('Stamp length invalid');
+ const a = parseInt(i.substring(i.length - 1), 16);
+ return new Date(
+ 1e3 * parseInt(i.substring(a, a + 8), 16)
+ );
+ }),
+ __publicField(this, 'setCounter', (s) => {
+ this.counter = s;
+ }),
+ __publicField(this, 'validate', (s, o) => {
+ const i = o ? this._normalizeDictionary(o) : this.dict;
+ return s.split('').every((s) => i.includes(s));
+ });
+ const o = __spreadValues(__spreadValues({}, C), s);
+ (this.counter = 0),
+ (this.debug = !1),
+ (this.dict = []),
+ (this.version = '5.2.0');
+ const {
+ dictionary: i,
+ shuffle: a,
+ length: u,
+ counter: _
+ } = o;
+ return (
+ (this.uuidLength = u),
+ this.setDictionary(i, a),
+ this.setCounter(_),
+ (this.debug = o.debug),
+ this.log(this.dict),
+ this.log(
+ `Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
+ ),
+ (this.log = this.log.bind(this)),
+ (this.setDictionary = this.setDictionary.bind(this)),
+ (this.setCounter = this.setCounter.bind(this)),
+ (this.seq = this.seq.bind(this)),
+ (this.sequentialUUID = this.sequentialUUID.bind(this)),
+ (this.rnd = this.rnd.bind(this)),
+ (this.randomUUID = this.randomUUID.bind(this)),
+ (this.fmt = this.fmt.bind(this)),
+ (this.formattedUUID = this.formattedUUID.bind(this)),
+ (this.availableUUIDs = this.availableUUIDs.bind(this)),
+ (this.approxMaxBeforeCollision =
+ this.approxMaxBeforeCollision.bind(this)),
+ (this.collisionProbability =
+ this.collisionProbability.bind(this)),
+ (this.uniqueness = this.uniqueness.bind(this)),
+ (this.getVersion = this.getVersion.bind(this)),
+ (this.stamp = this.stamp.bind(this)),
+ (this.parseStamp = this.parseStamp.bind(this)),
+ this
+ );
+ }
+ };
+ __publicField(j, 'default', j);
+ var L,
+ B = j;
+ return (
+ (L = w),
+ ((a, _, w, x) => {
+ if ((_ && 'object' == typeof _) || 'function' == typeof _)
+ for (let C of i(_))
+ u.call(a, C) ||
+ C === w ||
+ s(a, C, {
+ get: () => _[C],
+ enumerable: !(x = o(_, C)) || x.enumerable
+ });
+ return a;
+ })(s({}, '__esModule', { value: !0 }), L)
+ );
+ })();
+ (s.exports = o.default),
+ 'undefined' != typeof window && (o = o.default);
+ },
+ 9325: (s, o, i) => {
+ var a = i(34840),
+ u =
+ 'object' == typeof self && self && self.Object === Object && self,
+ _ = a || u || Function('return this')();
+ s.exports = _;
+ },
+ 9404: function (s) {
+ s.exports = (function () {
+ 'use strict';
+ var s = Array.prototype.slice;
+ function createClass(s, o) {
+ o && (s.prototype = Object.create(o.prototype)),
+ (s.prototype.constructor = s);
+ }
+ function Iterable(s) {
+ return isIterable(s) ? s : Seq(s);
+ }
+ function KeyedIterable(s) {
+ return isKeyed(s) ? s : KeyedSeq(s);
+ }
+ function IndexedIterable(s) {
+ return isIndexed(s) ? s : IndexedSeq(s);
+ }
+ function SetIterable(s) {
+ return isIterable(s) && !isAssociative(s) ? s : SetSeq(s);
+ }
+ function isIterable(s) {
+ return !(!s || !s[o]);
+ }
+ function isKeyed(s) {
+ return !(!s || !s[i]);
+ }
+ function isIndexed(s) {
+ return !(!s || !s[a]);
+ }
+ function isAssociative(s) {
+ return isKeyed(s) || isIndexed(s);
+ }
+ function isOrdered(s) {
+ return !(!s || !s[u]);
+ }
+ createClass(KeyedIterable, Iterable),
+ createClass(IndexedIterable, Iterable),
+ createClass(SetIterable, Iterable),
+ (Iterable.isIterable = isIterable),
+ (Iterable.isKeyed = isKeyed),
+ (Iterable.isIndexed = isIndexed),
+ (Iterable.isAssociative = isAssociative),
+ (Iterable.isOrdered = isOrdered),
+ (Iterable.Keyed = KeyedIterable),
+ (Iterable.Indexed = IndexedIterable),
+ (Iterable.Set = SetIterable);
+ var o = '@@__IMMUTABLE_ITERABLE__@@',
+ i = '@@__IMMUTABLE_KEYED__@@',
+ a = '@@__IMMUTABLE_INDEXED__@@',
+ u = '@@__IMMUTABLE_ORDERED__@@',
+ _ = 'delete',
+ w = 5,
+ x = 1 << w,
+ C = x - 1,
+ j = {},
+ L = { value: !1 },
+ B = { value: !1 };
+ function MakeRef(s) {
+ return (s.value = !1), s;
+ }
+ function SetRef(s) {
+ s && (s.value = !0);
+ }
+ function OwnerID() {}
+ function arrCopy(s, o) {
+ o = o || 0;
+ for (
+ var i = Math.max(0, s.length - o), a = new Array(i), u = 0;
+ u < i;
+ u++
+ )
+ a[u] = s[u + o];
+ return a;
+ }
+ function ensureSize(s) {
+ return (
+ void 0 === s.size && (s.size = s.__iterate(returnTrue)), s.size
+ );
+ }
+ function wrapIndex(s, o) {
+ if ('number' != typeof o) {
+ var i = o >>> 0;
+ if ('' + i !== o || 4294967295 === i) return NaN;
+ o = i;
+ }
+ return o < 0 ? ensureSize(s) + o : o;
+ }
+ function returnTrue() {
+ return !0;
+ }
+ function wholeSlice(s, o, i) {
+ return (
+ (0 === s || (void 0 !== i && s <= -i)) &&
+ (void 0 === o || (void 0 !== i && o >= i))
+ );
+ }
+ function resolveBegin(s, o) {
+ return resolveIndex(s, o, 0);
+ }
+ function resolveEnd(s, o) {
+ return resolveIndex(s, o, o);
+ }
+ function resolveIndex(s, o, i) {
+ return void 0 === s
+ ? i
+ : s < 0
+ ? Math.max(0, o + s)
+ : void 0 === o
+ ? s
+ : Math.min(o, s);
+ }
+ var $ = 0,
+ V = 1,
+ U = 2,
+ z = 'function' == typeof Symbol && Symbol.iterator,
+ Y = '@@iterator',
+ Z = z || Y;
+ function Iterator(s) {
+ this.next = s;
+ }
+ function iteratorValue(s, o, i, a) {
+ var u = 0 === s ? o : 1 === s ? i : [o, i];
+ return a ? (a.value = u) : (a = { value: u, done: !1 }), a;
+ }
+ function iteratorDone() {
+ return { value: void 0, done: !0 };
+ }
+ function hasIterator(s) {
+ return !!getIteratorFn(s);
+ }
+ function isIterator(s) {
+ return s && 'function' == typeof s.next;
+ }
+ function getIterator(s) {
+ var o = getIteratorFn(s);
+ return o && o.call(s);
+ }
+ function getIteratorFn(s) {
+ var o = s && ((z && s[z]) || s[Y]);
+ if ('function' == typeof o) return o;
+ }
+ function isArrayLike(s) {
+ return s && 'number' == typeof s.length;
+ }
+ function Seq(s) {
+ return null == s
+ ? emptySequence()
+ : isIterable(s)
+ ? s.toSeq()
+ : seqFromValue(s);
+ }
+ function KeyedSeq(s) {
+ return null == s
+ ? emptySequence().toKeyedSeq()
+ : isIterable(s)
+ ? isKeyed(s)
+ ? s.toSeq()
+ : s.fromEntrySeq()
+ : keyedSeqFromValue(s);
+ }
+ function IndexedSeq(s) {
+ return null == s
+ ? emptySequence()
+ : isIterable(s)
+ ? isKeyed(s)
+ ? s.entrySeq()
+ : s.toIndexedSeq()
+ : indexedSeqFromValue(s);
+ }
+ function SetSeq(s) {
+ return (
+ null == s
+ ? emptySequence()
+ : isIterable(s)
+ ? isKeyed(s)
+ ? s.entrySeq()
+ : s
+ : indexedSeqFromValue(s)
+ ).toSetSeq();
+ }
+ (Iterator.prototype.toString = function () {
+ return '[Iterator]';
+ }),
+ (Iterator.KEYS = $),
+ (Iterator.VALUES = V),
+ (Iterator.ENTRIES = U),
+ (Iterator.prototype.inspect = Iterator.prototype.toSource =
+ function () {
+ return this.toString();
+ }),
+ (Iterator.prototype[Z] = function () {
+ return this;
+ }),
+ createClass(Seq, Iterable),
+ (Seq.of = function () {
+ return Seq(arguments);
+ }),
+ (Seq.prototype.toSeq = function () {
+ return this;
+ }),
+ (Seq.prototype.toString = function () {
+ return this.__toString('Seq {', '}');
+ }),
+ (Seq.prototype.cacheResult = function () {
+ return (
+ !this._cache &&
+ this.__iterateUncached &&
+ ((this._cache = this.entrySeq().toArray()),
+ (this.size = this._cache.length)),
+ this
+ );
+ }),
+ (Seq.prototype.__iterate = function (s, o) {
+ return seqIterate(this, s, o, !0);
+ }),
+ (Seq.prototype.__iterator = function (s, o) {
+ return seqIterator(this, s, o, !0);
+ }),
+ createClass(KeyedSeq, Seq),
+ (KeyedSeq.prototype.toKeyedSeq = function () {
+ return this;
+ }),
+ createClass(IndexedSeq, Seq),
+ (IndexedSeq.of = function () {
+ return IndexedSeq(arguments);
+ }),
+ (IndexedSeq.prototype.toIndexedSeq = function () {
+ return this;
+ }),
+ (IndexedSeq.prototype.toString = function () {
+ return this.__toString('Seq [', ']');
+ }),
+ (IndexedSeq.prototype.__iterate = function (s, o) {
+ return seqIterate(this, s, o, !1);
+ }),
+ (IndexedSeq.prototype.__iterator = function (s, o) {
+ return seqIterator(this, s, o, !1);
+ }),
+ createClass(SetSeq, Seq),
+ (SetSeq.of = function () {
+ return SetSeq(arguments);
+ }),
+ (SetSeq.prototype.toSetSeq = function () {
+ return this;
+ }),
+ (Seq.isSeq = isSeq),
+ (Seq.Keyed = KeyedSeq),
+ (Seq.Set = SetSeq),
+ (Seq.Indexed = IndexedSeq);
+ var ee,
+ ie,
+ ae,
+ ce = '@@__IMMUTABLE_SEQ__@@';
+ function ArraySeq(s) {
+ (this._array = s), (this.size = s.length);
+ }
+ function ObjectSeq(s) {
+ var o = Object.keys(s);
+ (this._object = s), (this._keys = o), (this.size = o.length);
+ }
+ function IterableSeq(s) {
+ (this._iterable = s), (this.size = s.length || s.size);
+ }
+ function IteratorSeq(s) {
+ (this._iterator = s), (this._iteratorCache = []);
+ }
+ function isSeq(s) {
+ return !(!s || !s[ce]);
+ }
+ function emptySequence() {
+ return ee || (ee = new ArraySeq([]));
+ }
+ function keyedSeqFromValue(s) {
+ var o = Array.isArray(s)
+ ? new ArraySeq(s).fromEntrySeq()
+ : isIterator(s)
+ ? new IteratorSeq(s).fromEntrySeq()
+ : hasIterator(s)
+ ? new IterableSeq(s).fromEntrySeq()
+ : 'object' == typeof s
+ ? new ObjectSeq(s)
+ : void 0;
+ if (!o)
+ throw new TypeError(
+ 'Expected Array or iterable object of [k, v] entries, or keyed object: ' +
+ s
+ );
+ return o;
+ }
+ function indexedSeqFromValue(s) {
+ var o = maybeIndexedSeqFromValue(s);
+ if (!o)
+ throw new TypeError(
+ 'Expected Array or iterable object of values: ' + s
+ );
+ return o;
+ }
+ function seqFromValue(s) {
+ var o =
+ maybeIndexedSeqFromValue(s) ||
+ ('object' == typeof s && new ObjectSeq(s));
+ if (!o)
+ throw new TypeError(
+ 'Expected Array or iterable object of values, or keyed object: ' +
+ s
+ );
+ return o;
+ }
+ function maybeIndexedSeqFromValue(s) {
+ return isArrayLike(s)
+ ? new ArraySeq(s)
+ : isIterator(s)
+ ? new IteratorSeq(s)
+ : hasIterator(s)
+ ? new IterableSeq(s)
+ : void 0;
+ }
+ function seqIterate(s, o, i, a) {
+ var u = s._cache;
+ if (u) {
+ for (var _ = u.length - 1, w = 0; w <= _; w++) {
+ var x = u[i ? _ - w : w];
+ if (!1 === o(x[1], a ? x[0] : w, s)) return w + 1;
+ }
+ return w;
+ }
+ return s.__iterateUncached(o, i);
+ }
+ function seqIterator(s, o, i, a) {
+ var u = s._cache;
+ if (u) {
+ var _ = u.length - 1,
+ w = 0;
+ return new Iterator(function () {
+ var s = u[i ? _ - w : w];
+ return w++ > _
+ ? iteratorDone()
+ : iteratorValue(o, a ? s[0] : w - 1, s[1]);
+ });
+ }
+ return s.__iteratorUncached(o, i);
+ }
+ function fromJS(s, o) {
+ return o ? fromJSWith(o, s, '', { '': s }) : fromJSDefault(s);
+ }
+ function fromJSWith(s, o, i, a) {
+ return Array.isArray(o)
+ ? s.call(
+ a,
+ i,
+ IndexedSeq(o).map(function (i, a) {
+ return fromJSWith(s, i, a, o);
+ })
+ )
+ : isPlainObj(o)
+ ? s.call(
+ a,
+ i,
+ KeyedSeq(o).map(function (i, a) {
+ return fromJSWith(s, i, a, o);
+ })
+ )
+ : o;
+ }
+ function fromJSDefault(s) {
+ return Array.isArray(s)
+ ? IndexedSeq(s).map(fromJSDefault).toList()
+ : isPlainObj(s)
+ ? KeyedSeq(s).map(fromJSDefault).toMap()
+ : s;
+ }
+ function isPlainObj(s) {
+ return (
+ s && (s.constructor === Object || void 0 === s.constructor)
+ );
+ }
+ function is(s, o) {
+ if (s === o || (s != s && o != o)) return !0;
+ if (!s || !o) return !1;
+ if (
+ 'function' == typeof s.valueOf &&
+ 'function' == typeof o.valueOf
+ ) {
+ if (
+ (s = s.valueOf()) === (o = o.valueOf()) ||
+ (s != s && o != o)
+ )
+ return !0;
+ if (!s || !o) return !1;
+ }
+ return !(
+ 'function' != typeof s.equals ||
+ 'function' != typeof o.equals ||
+ !s.equals(o)
+ );
+ }
+ function deepEqual(s, o) {
+ if (s === o) return !0;
+ if (
+ !isIterable(o) ||
+ (void 0 !== s.size && void 0 !== o.size && s.size !== o.size) ||
+ (void 0 !== s.__hash &&
+ void 0 !== o.__hash &&
+ s.__hash !== o.__hash) ||
+ isKeyed(s) !== isKeyed(o) ||
+ isIndexed(s) !== isIndexed(o) ||
+ isOrdered(s) !== isOrdered(o)
+ )
+ return !1;
+ if (0 === s.size && 0 === o.size) return !0;
+ var i = !isAssociative(s);
+ if (isOrdered(s)) {
+ var a = s.entries();
+ return (
+ o.every(function (s, o) {
+ var u = a.next().value;
+ return u && is(u[1], s) && (i || is(u[0], o));
+ }) && a.next().done
+ );
+ }
+ var u = !1;
+ if (void 0 === s.size)
+ if (void 0 === o.size)
+ 'function' == typeof s.cacheResult && s.cacheResult();
+ else {
+ u = !0;
+ var _ = s;
+ (s = o), (o = _);
+ }
+ var w = !0,
+ x = o.__iterate(function (o, a) {
+ if (
+ i
+ ? !s.has(o)
+ : u
+ ? !is(o, s.get(a, j))
+ : !is(s.get(a, j), o)
+ )
+ return (w = !1), !1;
+ });
+ return w && s.size === x;
+ }
+ function Repeat(s, o) {
+ if (!(this instanceof Repeat)) return new Repeat(s, o);
+ if (
+ ((this._value = s),
+ (this.size = void 0 === o ? 1 / 0 : Math.max(0, o)),
+ 0 === this.size)
+ ) {
+ if (ie) return ie;
+ ie = this;
+ }
+ }
+ function invariant(s, o) {
+ if (!s) throw new Error(o);
+ }
+ function Range(s, o, i) {
+ if (!(this instanceof Range)) return new Range(s, o, i);
+ if (
+ (invariant(0 !== i, 'Cannot step a Range by 0'),
+ (s = s || 0),
+ void 0 === o && (o = 1 / 0),
+ (i = void 0 === i ? 1 : Math.abs(i)),
+ o < s && (i = -i),
+ (this._start = s),
+ (this._end = o),
+ (this._step = i),
+ (this.size = Math.max(0, Math.ceil((o - s) / i - 1) + 1)),
+ 0 === this.size)
+ ) {
+ if (ae) return ae;
+ ae = this;
+ }
+ }
+ function Collection() {
+ throw TypeError('Abstract');
+ }
+ function KeyedCollection() {}
+ function IndexedCollection() {}
+ function SetCollection() {}
+ (Seq.prototype[ce] = !0),
+ createClass(ArraySeq, IndexedSeq),
+ (ArraySeq.prototype.get = function (s, o) {
+ return this.has(s) ? this._array[wrapIndex(this, s)] : o;
+ }),
+ (ArraySeq.prototype.__iterate = function (s, o) {
+ for (var i = this._array, a = i.length - 1, u = 0; u <= a; u++)
+ if (!1 === s(i[o ? a - u : u], u, this)) return u + 1;
+ return u;
+ }),
+ (ArraySeq.prototype.__iterator = function (s, o) {
+ var i = this._array,
+ a = i.length - 1,
+ u = 0;
+ return new Iterator(function () {
+ return u > a
+ ? iteratorDone()
+ : iteratorValue(s, u, i[o ? a - u++ : u++]);
+ });
+ }),
+ createClass(ObjectSeq, KeyedSeq),
+ (ObjectSeq.prototype.get = function (s, o) {
+ return void 0 === o || this.has(s) ? this._object[s] : o;
+ }),
+ (ObjectSeq.prototype.has = function (s) {
+ return this._object.hasOwnProperty(s);
+ }),
+ (ObjectSeq.prototype.__iterate = function (s, o) {
+ for (
+ var i = this._object, a = this._keys, u = a.length - 1, _ = 0;
+ _ <= u;
+ _++
+ ) {
+ var w = a[o ? u - _ : _];
+ if (!1 === s(i[w], w, this)) return _ + 1;
+ }
+ return _;
+ }),
+ (ObjectSeq.prototype.__iterator = function (s, o) {
+ var i = this._object,
+ a = this._keys,
+ u = a.length - 1,
+ _ = 0;
+ return new Iterator(function () {
+ var w = a[o ? u - _ : _];
+ return _++ > u ? iteratorDone() : iteratorValue(s, w, i[w]);
+ });
+ }),
+ (ObjectSeq.prototype[u] = !0),
+ createClass(IterableSeq, IndexedSeq),
+ (IterableSeq.prototype.__iterateUncached = function (s, o) {
+ if (o) return this.cacheResult().__iterate(s, o);
+ var i = getIterator(this._iterable),
+ a = 0;
+ if (isIterator(i))
+ for (
+ var u;
+ !(u = i.next()).done && !1 !== s(u.value, a++, this);
+
+ );
+ return a;
+ }),
+ (IterableSeq.prototype.__iteratorUncached = function (s, o) {
+ if (o) return this.cacheResult().__iterator(s, o);
+ var i = getIterator(this._iterable);
+ if (!isIterator(i)) return new Iterator(iteratorDone);
+ var a = 0;
+ return new Iterator(function () {
+ var o = i.next();
+ return o.done ? o : iteratorValue(s, a++, o.value);
+ });
+ }),
+ createClass(IteratorSeq, IndexedSeq),
+ (IteratorSeq.prototype.__iterateUncached = function (s, o) {
+ if (o) return this.cacheResult().__iterate(s, o);
+ for (
+ var i, a = this._iterator, u = this._iteratorCache, _ = 0;
+ _ < u.length;
+
+ )
+ if (!1 === s(u[_], _++, this)) return _;
+ for (; !(i = a.next()).done; ) {
+ var w = i.value;
+ if (((u[_] = w), !1 === s(w, _++, this))) break;
+ }
+ return _;
+ }),
+ (IteratorSeq.prototype.__iteratorUncached = function (s, o) {
+ if (o) return this.cacheResult().__iterator(s, o);
+ var i = this._iterator,
+ a = this._iteratorCache,
+ u = 0;
+ return new Iterator(function () {
+ if (u >= a.length) {
+ var o = i.next();
+ if (o.done) return o;
+ a[u] = o.value;
+ }
+ return iteratorValue(s, u, a[u++]);
+ });
+ }),
+ createClass(Repeat, IndexedSeq),
+ (Repeat.prototype.toString = function () {
+ return 0 === this.size
+ ? 'Repeat []'
+ : 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
+ }),
+ (Repeat.prototype.get = function (s, o) {
+ return this.has(s) ? this._value : o;
+ }),
+ (Repeat.prototype.includes = function (s) {
+ return is(this._value, s);
+ }),
+ (Repeat.prototype.slice = function (s, o) {
+ var i = this.size;
+ return wholeSlice(s, o, i)
+ ? this
+ : new Repeat(
+ this._value,
+ resolveEnd(o, i) - resolveBegin(s, i)
+ );
+ }),
+ (Repeat.prototype.reverse = function () {
+ return this;
+ }),
+ (Repeat.prototype.indexOf = function (s) {
+ return is(this._value, s) ? 0 : -1;
+ }),
+ (Repeat.prototype.lastIndexOf = function (s) {
+ return is(this._value, s) ? this.size : -1;
+ }),
+ (Repeat.prototype.__iterate = function (s, o) {
+ for (var i = 0; i < this.size; i++)
+ if (!1 === s(this._value, i, this)) return i + 1;
+ return i;
+ }),
+ (Repeat.prototype.__iterator = function (s, o) {
+ var i = this,
+ a = 0;
+ return new Iterator(function () {
+ return a < i.size
+ ? iteratorValue(s, a++, i._value)
+ : iteratorDone();
+ });
+ }),
+ (Repeat.prototype.equals = function (s) {
+ return s instanceof Repeat
+ ? is(this._value, s._value)
+ : deepEqual(s);
+ }),
+ createClass(Range, IndexedSeq),
+ (Range.prototype.toString = function () {
+ return 0 === this.size
+ ? 'Range []'
+ : 'Range [ ' +
+ this._start +
+ '...' +
+ this._end +
+ (1 !== this._step ? ' by ' + this._step : '') +
+ ' ]';
+ }),
+ (Range.prototype.get = function (s, o) {
+ return this.has(s)
+ ? this._start + wrapIndex(this, s) * this._step
+ : o;
+ }),
+ (Range.prototype.includes = function (s) {
+ var o = (s - this._start) / this._step;
+ return o >= 0 && o < this.size && o === Math.floor(o);
+ }),
+ (Range.prototype.slice = function (s, o) {
+ return wholeSlice(s, o, this.size)
+ ? this
+ : ((s = resolveBegin(s, this.size)),
+ (o = resolveEnd(o, this.size)) <= s
+ ? new Range(0, 0)
+ : new Range(
+ this.get(s, this._end),
+ this.get(o, this._end),
+ this._step
+ ));
+ }),
+ (Range.prototype.indexOf = function (s) {
+ var o = s - this._start;
+ if (o % this._step == 0) {
+ var i = o / this._step;
+ if (i >= 0 && i < this.size) return i;
+ }
+ return -1;
+ }),
+ (Range.prototype.lastIndexOf = function (s) {
+ return this.indexOf(s);
+ }),
+ (Range.prototype.__iterate = function (s, o) {
+ for (
+ var i = this.size - 1,
+ a = this._step,
+ u = o ? this._start + i * a : this._start,
+ _ = 0;
+ _ <= i;
+ _++
+ ) {
+ if (!1 === s(u, _, this)) return _ + 1;
+ u += o ? -a : a;
+ }
+ return _;
+ }),
+ (Range.prototype.__iterator = function (s, o) {
+ var i = this.size - 1,
+ a = this._step,
+ u = o ? this._start + i * a : this._start,
+ _ = 0;
+ return new Iterator(function () {
+ var w = u;
+ return (
+ (u += o ? -a : a),
+ _ > i ? iteratorDone() : iteratorValue(s, _++, w)
+ );
+ });
+ }),
+ (Range.prototype.equals = function (s) {
+ return s instanceof Range
+ ? this._start === s._start &&
+ this._end === s._end &&
+ this._step === s._step
+ : deepEqual(this, s);
+ }),
+ createClass(Collection, Iterable),
+ createClass(KeyedCollection, Collection),
+ createClass(IndexedCollection, Collection),
+ createClass(SetCollection, Collection),
+ (Collection.Keyed = KeyedCollection),
+ (Collection.Indexed = IndexedCollection),
+ (Collection.Set = SetCollection);
+ var le =
+ 'function' == typeof Math.imul && -2 === Math.imul(4294967295, 2)
+ ? Math.imul
+ : function imul(s, o) {
+ var i = 65535 & (s |= 0),
+ a = 65535 & (o |= 0);
+ return (
+ (i * a +
+ ((((s >>> 16) * a + i * (o >>> 16)) << 16) >>> 0)) |
+ 0
+ );
+ };
+ function smi(s) {
+ return ((s >>> 1) & 1073741824) | (3221225471 & s);
+ }
+ function hash(s) {
+ if (!1 === s || null == s) return 0;
+ if (
+ 'function' == typeof s.valueOf &&
+ (!1 === (s = s.valueOf()) || null == s)
+ )
+ return 0;
+ if (!0 === s) return 1;
+ var o = typeof s;
+ if ('number' === o) {
+ if (s != s || s === 1 / 0) return 0;
+ var i = 0 | s;
+ for (i !== s && (i ^= 4294967295 * s); s > 4294967295; )
+ i ^= s /= 4294967295;
+ return smi(i);
+ }
+ if ('string' === o)
+ return s.length > Se ? cachedHashString(s) : hashString(s);
+ if ('function' == typeof s.hashCode) return s.hashCode();
+ if ('object' === o) return hashJSObj(s);
+ if ('function' == typeof s.toString)
+ return hashString(s.toString());
+ throw new Error('Value type ' + o + ' cannot be hashed.');
+ }
+ function cachedHashString(s) {
+ var o = Pe[s];
+ return (
+ void 0 === o &&
+ ((o = hashString(s)),
+ xe === we && ((xe = 0), (Pe = {})),
+ xe++,
+ (Pe[s] = o)),
+ o
+ );
+ }
+ function hashString(s) {
+ for (var o = 0, i = 0; i < s.length; i++)
+ o = (31 * o + s.charCodeAt(i)) | 0;
+ return smi(o);
+ }
+ function hashJSObj(s) {
+ var o;
+ if (ye && void 0 !== (o = fe.get(s))) return o;
+ if (void 0 !== (o = s[_e])) return o;
+ if (!de) {
+ if (
+ void 0 !==
+ (o = s.propertyIsEnumerable && s.propertyIsEnumerable[_e])
+ )
+ return o;
+ if (void 0 !== (o = getIENodeHash(s))) return o;
+ }
+ if (((o = ++be), 1073741824 & be && (be = 0), ye)) fe.set(s, o);
+ else {
+ if (void 0 !== pe && !1 === pe(s))
+ throw new Error(
+ 'Non-extensible objects are not allowed as keys.'
+ );
+ if (de)
+ Object.defineProperty(s, _e, {
+ enumerable: !1,
+ configurable: !1,
+ writable: !1,
+ value: o
+ });
+ else if (
+ void 0 !== s.propertyIsEnumerable &&
+ s.propertyIsEnumerable ===
+ s.constructor.prototype.propertyIsEnumerable
+ )
+ (s.propertyIsEnumerable = function () {
+ return this.constructor.prototype.propertyIsEnumerable.apply(
+ this,
+ arguments
+ );
+ }),
+ (s.propertyIsEnumerable[_e] = o);
+ else {
+ if (void 0 === s.nodeType)
+ throw new Error(
+ 'Unable to set a non-enumerable property on object.'
+ );
+ s[_e] = o;
+ }
+ }
+ return o;
+ }
+ var pe = Object.isExtensible,
+ de = (function () {
+ try {
+ return Object.defineProperty({}, '@', {}), !0;
+ } catch (s) {
+ return !1;
+ }
+ })();
+ function getIENodeHash(s) {
+ if (s && s.nodeType > 0)
+ switch (s.nodeType) {
+ case 1:
+ return s.uniqueID;
+ case 9:
+ return s.documentElement && s.documentElement.uniqueID;
+ }
+ }
+ var fe,
+ ye = 'function' == typeof WeakMap;
+ ye && (fe = new WeakMap());
+ var be = 0,
+ _e = '__immutablehash__';
+ 'function' == typeof Symbol && (_e = Symbol(_e));
+ var Se = 16,
+ we = 255,
+ xe = 0,
+ Pe = {};
+ function assertNotInfinite(s) {
+ invariant(
+ s !== 1 / 0,
+ 'Cannot perform this action with an infinite size.'
+ );
+ }
+ function Map(s) {
+ return null == s
+ ? emptyMap()
+ : isMap(s) && !isOrdered(s)
+ ? s
+ : emptyMap().withMutations(function (o) {
+ var i = KeyedIterable(s);
+ assertNotInfinite(i.size),
+ i.forEach(function (s, i) {
+ return o.set(i, s);
+ });
+ });
+ }
+ function isMap(s) {
+ return !(!s || !s[Re]);
+ }
+ createClass(Map, KeyedCollection),
+ (Map.of = function () {
+ var o = s.call(arguments, 0);
+ return emptyMap().withMutations(function (s) {
+ for (var i = 0; i < o.length; i += 2) {
+ if (i + 1 >= o.length)
+ throw new Error('Missing value for key: ' + o[i]);
+ s.set(o[i], o[i + 1]);
+ }
+ });
+ }),
+ (Map.prototype.toString = function () {
+ return this.__toString('Map {', '}');
+ }),
+ (Map.prototype.get = function (s, o) {
+ return this._root ? this._root.get(0, void 0, s, o) : o;
+ }),
+ (Map.prototype.set = function (s, o) {
+ return updateMap(this, s, o);
+ }),
+ (Map.prototype.setIn = function (s, o) {
+ return this.updateIn(s, j, function () {
+ return o;
+ });
+ }),
+ (Map.prototype.remove = function (s) {
+ return updateMap(this, s, j);
+ }),
+ (Map.prototype.deleteIn = function (s) {
+ return this.updateIn(s, function () {
+ return j;
+ });
+ }),
+ (Map.prototype.update = function (s, o, i) {
+ return 1 === arguments.length
+ ? s(this)
+ : this.updateIn([s], o, i);
+ }),
+ (Map.prototype.updateIn = function (s, o, i) {
+ i || ((i = o), (o = void 0));
+ var a = updateInDeepMap(this, forceIterator(s), o, i);
+ return a === j ? void 0 : a;
+ }),
+ (Map.prototype.clear = function () {
+ return 0 === this.size
+ ? this
+ : this.__ownerID
+ ? ((this.size = 0),
+ (this._root = null),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : emptyMap();
+ }),
+ (Map.prototype.merge = function () {
+ return mergeIntoMapWith(this, void 0, arguments);
+ }),
+ (Map.prototype.mergeWith = function (o) {
+ return mergeIntoMapWith(this, o, s.call(arguments, 1));
+ }),
+ (Map.prototype.mergeIn = function (o) {
+ var i = s.call(arguments, 1);
+ return this.updateIn(o, emptyMap(), function (s) {
+ return 'function' == typeof s.merge
+ ? s.merge.apply(s, i)
+ : i[i.length - 1];
+ });
+ }),
+ (Map.prototype.mergeDeep = function () {
+ return mergeIntoMapWith(this, deepMerger, arguments);
+ }),
+ (Map.prototype.mergeDeepWith = function (o) {
+ var i = s.call(arguments, 1);
+ return mergeIntoMapWith(this, deepMergerWith(o), i);
+ }),
+ (Map.prototype.mergeDeepIn = function (o) {
+ var i = s.call(arguments, 1);
+ return this.updateIn(o, emptyMap(), function (s) {
+ return 'function' == typeof s.mergeDeep
+ ? s.mergeDeep.apply(s, i)
+ : i[i.length - 1];
+ });
+ }),
+ (Map.prototype.sort = function (s) {
+ return OrderedMap(sortFactory(this, s));
+ }),
+ (Map.prototype.sortBy = function (s, o) {
+ return OrderedMap(sortFactory(this, o, s));
+ }),
+ (Map.prototype.withMutations = function (s) {
+ var o = this.asMutable();
+ return (
+ s(o), o.wasAltered() ? o.__ensureOwner(this.__ownerID) : this
+ );
+ }),
+ (Map.prototype.asMutable = function () {
+ return this.__ownerID
+ ? this
+ : this.__ensureOwner(new OwnerID());
+ }),
+ (Map.prototype.asImmutable = function () {
+ return this.__ensureOwner();
+ }),
+ (Map.prototype.wasAltered = function () {
+ return this.__altered;
+ }),
+ (Map.prototype.__iterator = function (s, o) {
+ return new MapIterator(this, s, o);
+ }),
+ (Map.prototype.__iterate = function (s, o) {
+ var i = this,
+ a = 0;
+ return (
+ this._root &&
+ this._root.iterate(function (o) {
+ return a++, s(o[1], o[0], i);
+ }, o),
+ a
+ );
+ }),
+ (Map.prototype.__ensureOwner = function (s) {
+ return s === this.__ownerID
+ ? this
+ : s
+ ? makeMap(this.size, this._root, s, this.__hash)
+ : ((this.__ownerID = s), (this.__altered = !1), this);
+ }),
+ (Map.isMap = isMap);
+ var Te,
+ Re = '@@__IMMUTABLE_MAP__@@',
+ qe = Map.prototype;
+ function ArrayMapNode(s, o) {
+ (this.ownerID = s), (this.entries = o);
+ }
+ function BitmapIndexedNode(s, o, i) {
+ (this.ownerID = s), (this.bitmap = o), (this.nodes = i);
+ }
+ function HashArrayMapNode(s, o, i) {
+ (this.ownerID = s), (this.count = o), (this.nodes = i);
+ }
+ function HashCollisionNode(s, o, i) {
+ (this.ownerID = s), (this.keyHash = o), (this.entries = i);
+ }
+ function ValueNode(s, o, i) {
+ (this.ownerID = s), (this.keyHash = o), (this.entry = i);
+ }
+ function MapIterator(s, o, i) {
+ (this._type = o),
+ (this._reverse = i),
+ (this._stack = s._root && mapIteratorFrame(s._root));
+ }
+ function mapIteratorValue(s, o) {
+ return iteratorValue(s, o[0], o[1]);
+ }
+ function mapIteratorFrame(s, o) {
+ return { node: s, index: 0, __prev: o };
+ }
+ function makeMap(s, o, i, a) {
+ var u = Object.create(qe);
+ return (
+ (u.size = s),
+ (u._root = o),
+ (u.__ownerID = i),
+ (u.__hash = a),
+ (u.__altered = !1),
+ u
+ );
+ }
+ function emptyMap() {
+ return Te || (Te = makeMap(0));
+ }
+ function updateMap(s, o, i) {
+ var a, u;
+ if (s._root) {
+ var _ = MakeRef(L),
+ w = MakeRef(B);
+ if (
+ ((a = updateNode(
+ s._root,
+ s.__ownerID,
+ 0,
+ void 0,
+ o,
+ i,
+ _,
+ w
+ )),
+ !w.value)
+ )
+ return s;
+ u = s.size + (_.value ? (i === j ? -1 : 1) : 0);
+ } else {
+ if (i === j) return s;
+ (u = 1), (a = new ArrayMapNode(s.__ownerID, [[o, i]]));
+ }
+ return s.__ownerID
+ ? ((s.size = u),
+ (s._root = a),
+ (s.__hash = void 0),
+ (s.__altered = !0),
+ s)
+ : a
+ ? makeMap(u, a)
+ : emptyMap();
+ }
+ function updateNode(s, o, i, a, u, _, w, x) {
+ return s
+ ? s.update(o, i, a, u, _, w, x)
+ : _ === j
+ ? s
+ : (SetRef(x), SetRef(w), new ValueNode(o, a, [u, _]));
+ }
+ function isLeafNode(s) {
+ return (
+ s.constructor === ValueNode ||
+ s.constructor === HashCollisionNode
+ );
+ }
+ function mergeIntoNode(s, o, i, a, u) {
+ if (s.keyHash === a)
+ return new HashCollisionNode(o, a, [s.entry, u]);
+ var _,
+ x = (0 === i ? s.keyHash : s.keyHash >>> i) & C,
+ j = (0 === i ? a : a >>> i) & C;
+ return new BitmapIndexedNode(
+ o,
+ (1 << x) | (1 << j),
+ x === j
+ ? [mergeIntoNode(s, o, i + w, a, u)]
+ : ((_ = new ValueNode(o, a, u)), x < j ? [s, _] : [_, s])
+ );
+ }
+ function createNodes(s, o, i, a) {
+ s || (s = new OwnerID());
+ for (
+ var u = new ValueNode(s, hash(i), [i, a]), _ = 0;
+ _ < o.length;
+ _++
+ ) {
+ var w = o[_];
+ u = u.update(s, 0, void 0, w[0], w[1]);
+ }
+ return u;
+ }
+ function packNodes(s, o, i, a) {
+ for (
+ var u = 0, _ = 0, w = new Array(i), x = 0, C = 1, j = o.length;
+ x < j;
+ x++, C <<= 1
+ ) {
+ var L = o[x];
+ void 0 !== L && x !== a && ((u |= C), (w[_++] = L));
+ }
+ return new BitmapIndexedNode(s, u, w);
+ }
+ function expandNodes(s, o, i, a, u) {
+ for (var _ = 0, w = new Array(x), C = 0; 0 !== i; C++, i >>>= 1)
+ w[C] = 1 & i ? o[_++] : void 0;
+ return (w[a] = u), new HashArrayMapNode(s, _ + 1, w);
+ }
+ function mergeIntoMapWith(s, o, i) {
+ for (var a = [], u = 0; u < i.length; u++) {
+ var _ = i[u],
+ w = KeyedIterable(_);
+ isIterable(_) ||
+ (w = w.map(function (s) {
+ return fromJS(s);
+ })),
+ a.push(w);
+ }
+ return mergeIntoCollectionWith(s, o, a);
+ }
+ function deepMerger(s, o, i) {
+ return s && s.mergeDeep && isIterable(o)
+ ? s.mergeDeep(o)
+ : is(s, o)
+ ? s
+ : o;
+ }
+ function deepMergerWith(s) {
+ return function (o, i, a) {
+ if (o && o.mergeDeepWith && isIterable(i))
+ return o.mergeDeepWith(s, i);
+ var u = s(o, i, a);
+ return is(o, u) ? o : u;
+ };
+ }
+ function mergeIntoCollectionWith(s, o, i) {
+ return 0 ===
+ (i = i.filter(function (s) {
+ return 0 !== s.size;
+ })).length
+ ? s
+ : 0 !== s.size || s.__ownerID || 1 !== i.length
+ ? s.withMutations(function (s) {
+ for (
+ var a = o
+ ? function (i, a) {
+ s.update(a, j, function (s) {
+ return s === j ? i : o(s, i, a);
+ });
+ }
+ : function (o, i) {
+ s.set(i, o);
+ },
+ u = 0;
+ u < i.length;
+ u++
+ )
+ i[u].forEach(a);
+ })
+ : s.constructor(i[0]);
+ }
+ function updateInDeepMap(s, o, i, a) {
+ var u = s === j,
+ _ = o.next();
+ if (_.done) {
+ var w = u ? i : s,
+ x = a(w);
+ return x === w ? s : x;
+ }
+ invariant(u || (s && s.set), 'invalid keyPath');
+ var C = _.value,
+ L = u ? j : s.get(C, j),
+ B = updateInDeepMap(L, o, i, a);
+ return B === L
+ ? s
+ : B === j
+ ? s.remove(C)
+ : (u ? emptyMap() : s).set(C, B);
+ }
+ function popCount(s) {
+ return (
+ (s =
+ ((s =
+ (858993459 & (s -= (s >> 1) & 1431655765)) +
+ ((s >> 2) & 858993459)) +
+ (s >> 4)) &
+ 252645135),
+ (s += s >> 8),
+ 127 & (s += s >> 16)
+ );
+ }
+ function setIn(s, o, i, a) {
+ var u = a ? s : arrCopy(s);
+ return (u[o] = i), u;
+ }
+ function spliceIn(s, o, i, a) {
+ var u = s.length + 1;
+ if (a && o + 1 === u) return (s[o] = i), s;
+ for (var _ = new Array(u), w = 0, x = 0; x < u; x++)
+ x === o ? ((_[x] = i), (w = -1)) : (_[x] = s[x + w]);
+ return _;
+ }
+ function spliceOut(s, o, i) {
+ var a = s.length - 1;
+ if (i && o === a) return s.pop(), s;
+ for (var u = new Array(a), _ = 0, w = 0; w < a; w++)
+ w === o && (_ = 1), (u[w] = s[w + _]);
+ return u;
+ }
+ (qe[Re] = !0),
+ (qe[_] = qe.remove),
+ (qe.removeIn = qe.deleteIn),
+ (ArrayMapNode.prototype.get = function (s, o, i, a) {
+ for (var u = this.entries, _ = 0, w = u.length; _ < w; _++)
+ if (is(i, u[_][0])) return u[_][1];
+ return a;
+ }),
+ (ArrayMapNode.prototype.update = function (s, o, i, a, u, _, w) {
+ for (
+ var x = u === j, C = this.entries, L = 0, B = C.length;
+ L < B && !is(a, C[L][0]);
+ L++
+ );
+ var $ = L < B;
+ if ($ ? C[L][1] === u : x) return this;
+ if ((SetRef(w), (x || !$) && SetRef(_), !x || 1 !== C.length)) {
+ if (!$ && !x && C.length >= $e)
+ return createNodes(s, C, a, u);
+ var V = s && s === this.ownerID,
+ U = V ? C : arrCopy(C);
+ return (
+ $
+ ? x
+ ? L === B - 1
+ ? U.pop()
+ : (U[L] = U.pop())
+ : (U[L] = [a, u])
+ : U.push([a, u]),
+ V ? ((this.entries = U), this) : new ArrayMapNode(s, U)
+ );
+ }
+ }),
+ (BitmapIndexedNode.prototype.get = function (s, o, i, a) {
+ void 0 === o && (o = hash(i));
+ var u = 1 << ((0 === s ? o : o >>> s) & C),
+ _ = this.bitmap;
+ return _ & u
+ ? this.nodes[popCount(_ & (u - 1))].get(s + w, o, i, a)
+ : a;
+ }),
+ (BitmapIndexedNode.prototype.update = function (
+ s,
+ o,
+ i,
+ a,
+ u,
+ _,
+ x
+ ) {
+ void 0 === i && (i = hash(a));
+ var L = (0 === o ? i : i >>> o) & C,
+ B = 1 << L,
+ $ = this.bitmap,
+ V = !!($ & B);
+ if (!V && u === j) return this;
+ var U = popCount($ & (B - 1)),
+ z = this.nodes,
+ Y = V ? z[U] : void 0,
+ Z = updateNode(Y, s, o + w, i, a, u, _, x);
+ if (Z === Y) return this;
+ if (!V && Z && z.length >= ze)
+ return expandNodes(s, z, $, L, Z);
+ if (V && !Z && 2 === z.length && isLeafNode(z[1 ^ U]))
+ return z[1 ^ U];
+ if (V && Z && 1 === z.length && isLeafNode(Z)) return Z;
+ var ee = s && s === this.ownerID,
+ ie = V ? (Z ? $ : $ ^ B) : $ | B,
+ ae = V
+ ? Z
+ ? setIn(z, U, Z, ee)
+ : spliceOut(z, U, ee)
+ : spliceIn(z, U, Z, ee);
+ return ee
+ ? ((this.bitmap = ie), (this.nodes = ae), this)
+ : new BitmapIndexedNode(s, ie, ae);
+ }),
+ (HashArrayMapNode.prototype.get = function (s, o, i, a) {
+ void 0 === o && (o = hash(i));
+ var u = (0 === s ? o : o >>> s) & C,
+ _ = this.nodes[u];
+ return _ ? _.get(s + w, o, i, a) : a;
+ }),
+ (HashArrayMapNode.prototype.update = function (
+ s,
+ o,
+ i,
+ a,
+ u,
+ _,
+ x
+ ) {
+ void 0 === i && (i = hash(a));
+ var L = (0 === o ? i : i >>> o) & C,
+ B = u === j,
+ $ = this.nodes,
+ V = $[L];
+ if (B && !V) return this;
+ var U = updateNode(V, s, o + w, i, a, u, _, x);
+ if (U === V) return this;
+ var z = this.count;
+ if (V) {
+ if (!U && --z < We) return packNodes(s, $, z, L);
+ } else z++;
+ var Y = s && s === this.ownerID,
+ Z = setIn($, L, U, Y);
+ return Y
+ ? ((this.count = z), (this.nodes = Z), this)
+ : new HashArrayMapNode(s, z, Z);
+ }),
+ (HashCollisionNode.prototype.get = function (s, o, i, a) {
+ for (var u = this.entries, _ = 0, w = u.length; _ < w; _++)
+ if (is(i, u[_][0])) return u[_][1];
+ return a;
+ }),
+ (HashCollisionNode.prototype.update = function (
+ s,
+ o,
+ i,
+ a,
+ u,
+ _,
+ w
+ ) {
+ void 0 === i && (i = hash(a));
+ var x = u === j;
+ if (i !== this.keyHash)
+ return x
+ ? this
+ : (SetRef(w),
+ SetRef(_),
+ mergeIntoNode(this, s, o, i, [a, u]));
+ for (
+ var C = this.entries, L = 0, B = C.length;
+ L < B && !is(a, C[L][0]);
+ L++
+ );
+ var $ = L < B;
+ if ($ ? C[L][1] === u : x) return this;
+ if ((SetRef(w), (x || !$) && SetRef(_), x && 2 === B))
+ return new ValueNode(s, this.keyHash, C[1 ^ L]);
+ var V = s && s === this.ownerID,
+ U = V ? C : arrCopy(C);
+ return (
+ $
+ ? x
+ ? L === B - 1
+ ? U.pop()
+ : (U[L] = U.pop())
+ : (U[L] = [a, u])
+ : U.push([a, u]),
+ V
+ ? ((this.entries = U), this)
+ : new HashCollisionNode(s, this.keyHash, U)
+ );
+ }),
+ (ValueNode.prototype.get = function (s, o, i, a) {
+ return is(i, this.entry[0]) ? this.entry[1] : a;
+ }),
+ (ValueNode.prototype.update = function (s, o, i, a, u, _, w) {
+ var x = u === j,
+ C = is(a, this.entry[0]);
+ return (C ? u === this.entry[1] : x)
+ ? this
+ : (SetRef(w),
+ x
+ ? void SetRef(_)
+ : C
+ ? s && s === this.ownerID
+ ? ((this.entry[1] = u), this)
+ : new ValueNode(s, this.keyHash, [a, u])
+ : (SetRef(_),
+ mergeIntoNode(this, s, o, hash(a), [a, u])));
+ }),
+ (ArrayMapNode.prototype.iterate =
+ HashCollisionNode.prototype.iterate =
+ function (s, o) {
+ for (
+ var i = this.entries, a = 0, u = i.length - 1;
+ a <= u;
+ a++
+ )
+ if (!1 === s(i[o ? u - a : a])) return !1;
+ }),
+ (BitmapIndexedNode.prototype.iterate =
+ HashArrayMapNode.prototype.iterate =
+ function (s, o) {
+ for (
+ var i = this.nodes, a = 0, u = i.length - 1;
+ a <= u;
+ a++
+ ) {
+ var _ = i[o ? u - a : a];
+ if (_ && !1 === _.iterate(s, o)) return !1;
+ }
+ }),
+ (ValueNode.prototype.iterate = function (s, o) {
+ return s(this.entry);
+ }),
+ createClass(MapIterator, Iterator),
+ (MapIterator.prototype.next = function () {
+ for (var s = this._type, o = this._stack; o; ) {
+ var i,
+ a = o.node,
+ u = o.index++;
+ if (a.entry) {
+ if (0 === u) return mapIteratorValue(s, a.entry);
+ } else if (a.entries) {
+ if (u <= (i = a.entries.length - 1))
+ return mapIteratorValue(
+ s,
+ a.entries[this._reverse ? i - u : u]
+ );
+ } else if (u <= (i = a.nodes.length - 1)) {
+ var _ = a.nodes[this._reverse ? i - u : u];
+ if (_) {
+ if (_.entry) return mapIteratorValue(s, _.entry);
+ o = this._stack = mapIteratorFrame(_, o);
+ }
+ continue;
+ }
+ o = this._stack = this._stack.__prev;
+ }
+ return iteratorDone();
+ });
+ var $e = x / 4,
+ ze = x / 2,
+ We = x / 4;
+ function List(s) {
+ var o = emptyList();
+ if (null == s) return o;
+ if (isList(s)) return s;
+ var i = IndexedIterable(s),
+ a = i.size;
+ return 0 === a
+ ? o
+ : (assertNotInfinite(a),
+ a > 0 && a < x
+ ? makeList(0, a, w, null, new VNode(i.toArray()))
+ : o.withMutations(function (s) {
+ s.setSize(a),
+ i.forEach(function (o, i) {
+ return s.set(i, o);
+ });
+ }));
+ }
+ function isList(s) {
+ return !(!s || !s[He]);
+ }
+ createClass(List, IndexedCollection),
+ (List.of = function () {
+ return this(arguments);
+ }),
+ (List.prototype.toString = function () {
+ return this.__toString('List [', ']');
+ }),
+ (List.prototype.get = function (s, o) {
+ if ((s = wrapIndex(this, s)) >= 0 && s < this.size) {
+ var i = listNodeFor(this, (s += this._origin));
+ return i && i.array[s & C];
+ }
+ return o;
+ }),
+ (List.prototype.set = function (s, o) {
+ return updateList(this, s, o);
+ }),
+ (List.prototype.remove = function (s) {
+ return this.has(s)
+ ? 0 === s
+ ? this.shift()
+ : s === this.size - 1
+ ? this.pop()
+ : this.splice(s, 1)
+ : this;
+ }),
+ (List.prototype.insert = function (s, o) {
+ return this.splice(s, 0, o);
+ }),
+ (List.prototype.clear = function () {
+ return 0 === this.size
+ ? this
+ : this.__ownerID
+ ? ((this.size = this._origin = this._capacity = 0),
+ (this._level = w),
+ (this._root = this._tail = null),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : emptyList();
+ }),
+ (List.prototype.push = function () {
+ var s = arguments,
+ o = this.size;
+ return this.withMutations(function (i) {
+ setListBounds(i, 0, o + s.length);
+ for (var a = 0; a < s.length; a++) i.set(o + a, s[a]);
+ });
+ }),
+ (List.prototype.pop = function () {
+ return setListBounds(this, 0, -1);
+ }),
+ (List.prototype.unshift = function () {
+ var s = arguments;
+ return this.withMutations(function (o) {
+ setListBounds(o, -s.length);
+ for (var i = 0; i < s.length; i++) o.set(i, s[i]);
+ });
+ }),
+ (List.prototype.shift = function () {
+ return setListBounds(this, 1);
+ }),
+ (List.prototype.merge = function () {
+ return mergeIntoListWith(this, void 0, arguments);
+ }),
+ (List.prototype.mergeWith = function (o) {
+ return mergeIntoListWith(this, o, s.call(arguments, 1));
+ }),
+ (List.prototype.mergeDeep = function () {
+ return mergeIntoListWith(this, deepMerger, arguments);
+ }),
+ (List.prototype.mergeDeepWith = function (o) {
+ var i = s.call(arguments, 1);
+ return mergeIntoListWith(this, deepMergerWith(o), i);
+ }),
+ (List.prototype.setSize = function (s) {
+ return setListBounds(this, 0, s);
+ }),
+ (List.prototype.slice = function (s, o) {
+ var i = this.size;
+ return wholeSlice(s, o, i)
+ ? this
+ : setListBounds(this, resolveBegin(s, i), resolveEnd(o, i));
+ }),
+ (List.prototype.__iterator = function (s, o) {
+ var i = 0,
+ a = iterateList(this, o);
+ return new Iterator(function () {
+ var o = a();
+ return o === et ? iteratorDone() : iteratorValue(s, i++, o);
+ });
+ }),
+ (List.prototype.__iterate = function (s, o) {
+ for (
+ var i, a = 0, u = iterateList(this, o);
+ (i = u()) !== et && !1 !== s(i, a++, this);
+
+ );
+ return a;
+ }),
+ (List.prototype.__ensureOwner = function (s) {
+ return s === this.__ownerID
+ ? this
+ : s
+ ? makeList(
+ this._origin,
+ this._capacity,
+ this._level,
+ this._root,
+ this._tail,
+ s,
+ this.__hash
+ )
+ : ((this.__ownerID = s), this);
+ }),
+ (List.isList = isList);
+ var He = '@@__IMMUTABLE_LIST__@@',
+ Xe = List.prototype;
+ function VNode(s, o) {
+ (this.array = s), (this.ownerID = o);
+ }
+ (Xe[He] = !0),
+ (Xe[_] = Xe.remove),
+ (Xe.setIn = qe.setIn),
+ (Xe.deleteIn = Xe.removeIn = qe.removeIn),
+ (Xe.update = qe.update),
+ (Xe.updateIn = qe.updateIn),
+ (Xe.mergeIn = qe.mergeIn),
+ (Xe.mergeDeepIn = qe.mergeDeepIn),
+ (Xe.withMutations = qe.withMutations),
+ (Xe.asMutable = qe.asMutable),
+ (Xe.asImmutable = qe.asImmutable),
+ (Xe.wasAltered = qe.wasAltered),
+ (VNode.prototype.removeBefore = function (s, o, i) {
+ if (i === o ? 1 << o : 0 === this.array.length) return this;
+ var a = (i >>> o) & C;
+ if (a >= this.array.length) return new VNode([], s);
+ var u,
+ _ = 0 === a;
+ if (o > 0) {
+ var x = this.array[a];
+ if ((u = x && x.removeBefore(s, o - w, i)) === x && _)
+ return this;
+ }
+ if (_ && !u) return this;
+ var j = editableVNode(this, s);
+ if (!_) for (var L = 0; L < a; L++) j.array[L] = void 0;
+ return u && (j.array[a] = u), j;
+ }),
+ (VNode.prototype.removeAfter = function (s, o, i) {
+ if (i === (o ? 1 << o : 0) || 0 === this.array.length)
+ return this;
+ var a,
+ u = ((i - 1) >>> o) & C;
+ if (u >= this.array.length) return this;
+ if (o > 0) {
+ var _ = this.array[u];
+ if (
+ (a = _ && _.removeAfter(s, o - w, i)) === _ &&
+ u === this.array.length - 1
+ )
+ return this;
+ }
+ var x = editableVNode(this, s);
+ return x.array.splice(u + 1), a && (x.array[u] = a), x;
+ });
+ var Ye,
+ Qe,
+ et = {};
+ function iterateList(s, o) {
+ var i = s._origin,
+ a = s._capacity,
+ u = getTailOffset(a),
+ _ = s._tail;
+ return iterateNodeOrLeaf(s._root, s._level, 0);
+ function iterateNodeOrLeaf(s, o, i) {
+ return 0 === o ? iterateLeaf(s, i) : iterateNode(s, o, i);
+ }
+ function iterateLeaf(s, w) {
+ var C = w === u ? _ && _.array : s && s.array,
+ j = w > i ? 0 : i - w,
+ L = a - w;
+ return (
+ L > x && (L = x),
+ function () {
+ if (j === L) return et;
+ var s = o ? --L : j++;
+ return C && C[s];
+ }
+ );
+ }
+ function iterateNode(s, u, _) {
+ var C,
+ j = s && s.array,
+ L = _ > i ? 0 : (i - _) >> u,
+ B = 1 + ((a - _) >> u);
+ return (
+ B > x && (B = x),
+ function () {
+ for (;;) {
+ if (C) {
+ var s = C();
+ if (s !== et) return s;
+ C = null;
+ }
+ if (L === B) return et;
+ var i = o ? --B : L++;
+ C = iterateNodeOrLeaf(j && j[i], u - w, _ + (i << u));
+ }
+ }
+ );
+ }
+ }
+ function makeList(s, o, i, a, u, _, w) {
+ var x = Object.create(Xe);
+ return (
+ (x.size = o - s),
+ (x._origin = s),
+ (x._capacity = o),
+ (x._level = i),
+ (x._root = a),
+ (x._tail = u),
+ (x.__ownerID = _),
+ (x.__hash = w),
+ (x.__altered = !1),
+ x
+ );
+ }
+ function emptyList() {
+ return Ye || (Ye = makeList(0, 0, w));
+ }
+ function updateList(s, o, i) {
+ if ((o = wrapIndex(s, o)) != o) return s;
+ if (o >= s.size || o < 0)
+ return s.withMutations(function (s) {
+ o < 0
+ ? setListBounds(s, o).set(0, i)
+ : setListBounds(s, 0, o + 1).set(o, i);
+ });
+ o += s._origin;
+ var a = s._tail,
+ u = s._root,
+ _ = MakeRef(B);
+ return (
+ o >= getTailOffset(s._capacity)
+ ? (a = updateVNode(a, s.__ownerID, 0, o, i, _))
+ : (u = updateVNode(u, s.__ownerID, s._level, o, i, _)),
+ _.value
+ ? s.__ownerID
+ ? ((s._root = u),
+ (s._tail = a),
+ (s.__hash = void 0),
+ (s.__altered = !0),
+ s)
+ : makeList(s._origin, s._capacity, s._level, u, a)
+ : s
+ );
+ }
+ function updateVNode(s, o, i, a, u, _) {
+ var x,
+ j = (a >>> i) & C,
+ L = s && j < s.array.length;
+ if (!L && void 0 === u) return s;
+ if (i > 0) {
+ var B = s && s.array[j],
+ $ = updateVNode(B, o, i - w, a, u, _);
+ return $ === B
+ ? s
+ : (((x = editableVNode(s, o)).array[j] = $), x);
+ }
+ return L && s.array[j] === u
+ ? s
+ : (SetRef(_),
+ (x = editableVNode(s, o)),
+ void 0 === u && j === x.array.length - 1
+ ? x.array.pop()
+ : (x.array[j] = u),
+ x);
+ }
+ function editableVNode(s, o) {
+ return o && s && o === s.ownerID
+ ? s
+ : new VNode(s ? s.array.slice() : [], o);
+ }
+ function listNodeFor(s, o) {
+ if (o >= getTailOffset(s._capacity)) return s._tail;
+ if (o < 1 << (s._level + w)) {
+ for (var i = s._root, a = s._level; i && a > 0; )
+ (i = i.array[(o >>> a) & C]), (a -= w);
+ return i;
+ }
+ }
+ function setListBounds(s, o, i) {
+ void 0 !== o && (o |= 0), void 0 !== i && (i |= 0);
+ var a = s.__ownerID || new OwnerID(),
+ u = s._origin,
+ _ = s._capacity,
+ x = u + o,
+ j = void 0 === i ? _ : i < 0 ? _ + i : u + i;
+ if (x === u && j === _) return s;
+ if (x >= j) return s.clear();
+ for (var L = s._level, B = s._root, $ = 0; x + $ < 0; )
+ (B = new VNode(B && B.array.length ? [void 0, B] : [], a)),
+ ($ += 1 << (L += w));
+ $ && ((x += $), (u += $), (j += $), (_ += $));
+ for (
+ var V = getTailOffset(_), U = getTailOffset(j);
+ U >= 1 << (L + w);
+
+ )
+ (B = new VNode(B && B.array.length ? [B] : [], a)), (L += w);
+ var z = s._tail,
+ Y =
+ U < V ? listNodeFor(s, j - 1) : U > V ? new VNode([], a) : z;
+ if (z && U > V && x < _ && z.array.length) {
+ for (
+ var Z = (B = editableVNode(B, a)), ee = L;
+ ee > w;
+ ee -= w
+ ) {
+ var ie = (V >>> ee) & C;
+ Z = Z.array[ie] = editableVNode(Z.array[ie], a);
+ }
+ Z.array[(V >>> w) & C] = z;
+ }
+ if ((j < _ && (Y = Y && Y.removeAfter(a, 0, j)), x >= U))
+ (x -= U),
+ (j -= U),
+ (L = w),
+ (B = null),
+ (Y = Y && Y.removeBefore(a, 0, x));
+ else if (x > u || U < V) {
+ for ($ = 0; B; ) {
+ var ae = (x >>> L) & C;
+ if ((ae !== U >>> L) & C) break;
+ ae && ($ += (1 << L) * ae), (L -= w), (B = B.array[ae]);
+ }
+ B && x > u && (B = B.removeBefore(a, L, x - $)),
+ B && U < V && (B = B.removeAfter(a, L, U - $)),
+ $ && ((x -= $), (j -= $));
+ }
+ return s.__ownerID
+ ? ((s.size = j - x),
+ (s._origin = x),
+ (s._capacity = j),
+ (s._level = L),
+ (s._root = B),
+ (s._tail = Y),
+ (s.__hash = void 0),
+ (s.__altered = !0),
+ s)
+ : makeList(x, j, L, B, Y);
+ }
+ function mergeIntoListWith(s, o, i) {
+ for (var a = [], u = 0, _ = 0; _ < i.length; _++) {
+ var w = i[_],
+ x = IndexedIterable(w);
+ x.size > u && (u = x.size),
+ isIterable(w) ||
+ (x = x.map(function (s) {
+ return fromJS(s);
+ })),
+ a.push(x);
+ }
+ return (
+ u > s.size && (s = s.setSize(u)),
+ mergeIntoCollectionWith(s, o, a)
+ );
+ }
+ function getTailOffset(s) {
+ return s < x ? 0 : ((s - 1) >>> w) << w;
+ }
+ function OrderedMap(s) {
+ return null == s
+ ? emptyOrderedMap()
+ : isOrderedMap(s)
+ ? s
+ : emptyOrderedMap().withMutations(function (o) {
+ var i = KeyedIterable(s);
+ assertNotInfinite(i.size),
+ i.forEach(function (s, i) {
+ return o.set(i, s);
+ });
+ });
+ }
+ function isOrderedMap(s) {
+ return isMap(s) && isOrdered(s);
+ }
+ function makeOrderedMap(s, o, i, a) {
+ var u = Object.create(OrderedMap.prototype);
+ return (
+ (u.size = s ? s.size : 0),
+ (u._map = s),
+ (u._list = o),
+ (u.__ownerID = i),
+ (u.__hash = a),
+ u
+ );
+ }
+ function emptyOrderedMap() {
+ return Qe || (Qe = makeOrderedMap(emptyMap(), emptyList()));
+ }
+ function updateOrderedMap(s, o, i) {
+ var a,
+ u,
+ _ = s._map,
+ w = s._list,
+ C = _.get(o),
+ L = void 0 !== C;
+ if (i === j) {
+ if (!L) return s;
+ w.size >= x && w.size >= 2 * _.size
+ ? ((a = (u = w.filter(function (s, o) {
+ return void 0 !== s && C !== o;
+ }))
+ .toKeyedSeq()
+ .map(function (s) {
+ return s[0];
+ })
+ .flip()
+ .toMap()),
+ s.__ownerID && (a.__ownerID = u.__ownerID = s.__ownerID))
+ : ((a = _.remove(o)),
+ (u = C === w.size - 1 ? w.pop() : w.set(C, void 0)));
+ } else if (L) {
+ if (i === w.get(C)[1]) return s;
+ (a = _), (u = w.set(C, [o, i]));
+ } else (a = _.set(o, w.size)), (u = w.set(w.size, [o, i]));
+ return s.__ownerID
+ ? ((s.size = a.size),
+ (s._map = a),
+ (s._list = u),
+ (s.__hash = void 0),
+ s)
+ : makeOrderedMap(a, u);
+ }
+ function ToKeyedSequence(s, o) {
+ (this._iter = s), (this._useKeys = o), (this.size = s.size);
+ }
+ function ToIndexedSequence(s) {
+ (this._iter = s), (this.size = s.size);
+ }
+ function ToSetSequence(s) {
+ (this._iter = s), (this.size = s.size);
+ }
+ function FromEntriesSequence(s) {
+ (this._iter = s), (this.size = s.size);
+ }
+ function flipFactory(s) {
+ var o = makeSequence(s);
+ return (
+ (o._iter = s),
+ (o.size = s.size),
+ (o.flip = function () {
+ return s;
+ }),
+ (o.reverse = function () {
+ var o = s.reverse.apply(this);
+ return (
+ (o.flip = function () {
+ return s.reverse();
+ }),
+ o
+ );
+ }),
+ (o.has = function (o) {
+ return s.includes(o);
+ }),
+ (o.includes = function (o) {
+ return s.has(o);
+ }),
+ (o.cacheResult = cacheResultThrough),
+ (o.__iterateUncached = function (o, i) {
+ var a = this;
+ return s.__iterate(function (s, i) {
+ return !1 !== o(i, s, a);
+ }, i);
+ }),
+ (o.__iteratorUncached = function (o, i) {
+ if (o === U) {
+ var a = s.__iterator(o, i);
+ return new Iterator(function () {
+ var s = a.next();
+ if (!s.done) {
+ var o = s.value[0];
+ (s.value[0] = s.value[1]), (s.value[1] = o);
+ }
+ return s;
+ });
+ }
+ return s.__iterator(o === V ? $ : V, i);
+ }),
+ o
+ );
+ }
+ function mapFactory(s, o, i) {
+ var a = makeSequence(s);
+ return (
+ (a.size = s.size),
+ (a.has = function (o) {
+ return s.has(o);
+ }),
+ (a.get = function (a, u) {
+ var _ = s.get(a, j);
+ return _ === j ? u : o.call(i, _, a, s);
+ }),
+ (a.__iterateUncached = function (a, u) {
+ var _ = this;
+ return s.__iterate(function (s, u, w) {
+ return !1 !== a(o.call(i, s, u, w), u, _);
+ }, u);
+ }),
+ (a.__iteratorUncached = function (a, u) {
+ var _ = s.__iterator(U, u);
+ return new Iterator(function () {
+ var u = _.next();
+ if (u.done) return u;
+ var w = u.value,
+ x = w[0];
+ return iteratorValue(a, x, o.call(i, w[1], x, s), u);
+ });
+ }),
+ a
+ );
+ }
+ function reverseFactory(s, o) {
+ var i = makeSequence(s);
+ return (
+ (i._iter = s),
+ (i.size = s.size),
+ (i.reverse = function () {
+ return s;
+ }),
+ s.flip &&
+ (i.flip = function () {
+ var o = flipFactory(s);
+ return (
+ (o.reverse = function () {
+ return s.flip();
+ }),
+ o
+ );
+ }),
+ (i.get = function (i, a) {
+ return s.get(o ? i : -1 - i, a);
+ }),
+ (i.has = function (i) {
+ return s.has(o ? i : -1 - i);
+ }),
+ (i.includes = function (o) {
+ return s.includes(o);
+ }),
+ (i.cacheResult = cacheResultThrough),
+ (i.__iterate = function (o, i) {
+ var a = this;
+ return s.__iterate(function (s, i) {
+ return o(s, i, a);
+ }, !i);
+ }),
+ (i.__iterator = function (o, i) {
+ return s.__iterator(o, !i);
+ }),
+ i
+ );
+ }
+ function filterFactory(s, o, i, a) {
+ var u = makeSequence(s);
+ return (
+ a &&
+ ((u.has = function (a) {
+ var u = s.get(a, j);
+ return u !== j && !!o.call(i, u, a, s);
+ }),
+ (u.get = function (a, u) {
+ var _ = s.get(a, j);
+ return _ !== j && o.call(i, _, a, s) ? _ : u;
+ })),
+ (u.__iterateUncached = function (u, _) {
+ var w = this,
+ x = 0;
+ return (
+ s.__iterate(function (s, _, C) {
+ if (o.call(i, s, _, C))
+ return x++, u(s, a ? _ : x - 1, w);
+ }, _),
+ x
+ );
+ }),
+ (u.__iteratorUncached = function (u, _) {
+ var w = s.__iterator(U, _),
+ x = 0;
+ return new Iterator(function () {
+ for (;;) {
+ var _ = w.next();
+ if (_.done) return _;
+ var C = _.value,
+ j = C[0],
+ L = C[1];
+ if (o.call(i, L, j, s))
+ return iteratorValue(u, a ? j : x++, L, _);
+ }
+ });
+ }),
+ u
+ );
+ }
+ function countByFactory(s, o, i) {
+ var a = Map().asMutable();
+ return (
+ s.__iterate(function (u, _) {
+ a.update(o.call(i, u, _, s), 0, function (s) {
+ return s + 1;
+ });
+ }),
+ a.asImmutable()
+ );
+ }
+ function groupByFactory(s, o, i) {
+ var a = isKeyed(s),
+ u = (isOrdered(s) ? OrderedMap() : Map()).asMutable();
+ s.__iterate(function (_, w) {
+ u.update(o.call(i, _, w, s), function (s) {
+ return (s = s || []).push(a ? [w, _] : _), s;
+ });
+ });
+ var _ = iterableClass(s);
+ return u.map(function (o) {
+ return reify(s, _(o));
+ });
+ }
+ function sliceFactory(s, o, i, a) {
+ var u = s.size;
+ if (
+ (void 0 !== o && (o |= 0),
+ void 0 !== i && (i === 1 / 0 ? (i = u) : (i |= 0)),
+ wholeSlice(o, i, u))
+ )
+ return s;
+ var _ = resolveBegin(o, u),
+ w = resolveEnd(i, u);
+ if (_ != _ || w != w)
+ return sliceFactory(s.toSeq().cacheResult(), o, i, a);
+ var x,
+ C = w - _;
+ C == C && (x = C < 0 ? 0 : C);
+ var j = makeSequence(s);
+ return (
+ (j.size = 0 === x ? x : (s.size && x) || void 0),
+ !a &&
+ isSeq(s) &&
+ x >= 0 &&
+ (j.get = function (o, i) {
+ return (o = wrapIndex(this, o)) >= 0 && o < x
+ ? s.get(o + _, i)
+ : i;
+ }),
+ (j.__iterateUncached = function (o, i) {
+ var u = this;
+ if (0 === x) return 0;
+ if (i) return this.cacheResult().__iterate(o, i);
+ var w = 0,
+ C = !0,
+ j = 0;
+ return (
+ s.__iterate(function (s, i) {
+ if (!C || !(C = w++ < _))
+ return j++, !1 !== o(s, a ? i : j - 1, u) && j !== x;
+ }),
+ j
+ );
+ }),
+ (j.__iteratorUncached = function (o, i) {
+ if (0 !== x && i) return this.cacheResult().__iterator(o, i);
+ var u = 0 !== x && s.__iterator(o, i),
+ w = 0,
+ C = 0;
+ return new Iterator(function () {
+ for (; w++ < _; ) u.next();
+ if (++C > x) return iteratorDone();
+ var s = u.next();
+ return a || o === V
+ ? s
+ : iteratorValue(
+ o,
+ C - 1,
+ o === $ ? void 0 : s.value[1],
+ s
+ );
+ });
+ }),
+ j
+ );
+ }
+ function takeWhileFactory(s, o, i) {
+ var a = makeSequence(s);
+ return (
+ (a.__iterateUncached = function (a, u) {
+ var _ = this;
+ if (u) return this.cacheResult().__iterate(a, u);
+ var w = 0;
+ return (
+ s.__iterate(function (s, u, x) {
+ return o.call(i, s, u, x) && ++w && a(s, u, _);
+ }),
+ w
+ );
+ }),
+ (a.__iteratorUncached = function (a, u) {
+ var _ = this;
+ if (u) return this.cacheResult().__iterator(a, u);
+ var w = s.__iterator(U, u),
+ x = !0;
+ return new Iterator(function () {
+ if (!x) return iteratorDone();
+ var s = w.next();
+ if (s.done) return s;
+ var u = s.value,
+ C = u[0],
+ j = u[1];
+ return o.call(i, j, C, _)
+ ? a === U
+ ? s
+ : iteratorValue(a, C, j, s)
+ : ((x = !1), iteratorDone());
+ });
+ }),
+ a
+ );
+ }
+ function skipWhileFactory(s, o, i, a) {
+ var u = makeSequence(s);
+ return (
+ (u.__iterateUncached = function (u, _) {
+ var w = this;
+ if (_) return this.cacheResult().__iterate(u, _);
+ var x = !0,
+ C = 0;
+ return (
+ s.__iterate(function (s, _, j) {
+ if (!x || !(x = o.call(i, s, _, j)))
+ return C++, u(s, a ? _ : C - 1, w);
+ }),
+ C
+ );
+ }),
+ (u.__iteratorUncached = function (u, _) {
+ var w = this;
+ if (_) return this.cacheResult().__iterator(u, _);
+ var x = s.__iterator(U, _),
+ C = !0,
+ j = 0;
+ return new Iterator(function () {
+ var s, _, L;
+ do {
+ if ((s = x.next()).done)
+ return a || u === V
+ ? s
+ : iteratorValue(
+ u,
+ j++,
+ u === $ ? void 0 : s.value[1],
+ s
+ );
+ var B = s.value;
+ (_ = B[0]), (L = B[1]), C && (C = o.call(i, L, _, w));
+ } while (C);
+ return u === U ? s : iteratorValue(u, _, L, s);
+ });
+ }),
+ u
+ );
+ }
+ function concatFactory(s, o) {
+ var i = isKeyed(s),
+ a = [s]
+ .concat(o)
+ .map(function (s) {
+ return (
+ isIterable(s)
+ ? i && (s = KeyedIterable(s))
+ : (s = i
+ ? keyedSeqFromValue(s)
+ : indexedSeqFromValue(Array.isArray(s) ? s : [s])),
+ s
+ );
+ })
+ .filter(function (s) {
+ return 0 !== s.size;
+ });
+ if (0 === a.length) return s;
+ if (1 === a.length) {
+ var u = a[0];
+ if (
+ u === s ||
+ (i && isKeyed(u)) ||
+ (isIndexed(s) && isIndexed(u))
+ )
+ return u;
+ }
+ var _ = new ArraySeq(a);
+ return (
+ i ? (_ = _.toKeyedSeq()) : isIndexed(s) || (_ = _.toSetSeq()),
+ ((_ = _.flatten(!0)).size = a.reduce(function (s, o) {
+ if (void 0 !== s) {
+ var i = o.size;
+ if (void 0 !== i) return s + i;
+ }
+ }, 0)),
+ _
+ );
+ }
+ function flattenFactory(s, o, i) {
+ var a = makeSequence(s);
+ return (
+ (a.__iterateUncached = function (a, u) {
+ var _ = 0,
+ w = !1;
+ function flatDeep(s, x) {
+ var C = this;
+ s.__iterate(function (s, u) {
+ return (
+ (!o || x < o) && isIterable(s)
+ ? flatDeep(s, x + 1)
+ : !1 === a(s, i ? u : _++, C) && (w = !0),
+ !w
+ );
+ }, u);
+ }
+ return flatDeep(s, 0), _;
+ }),
+ (a.__iteratorUncached = function (a, u) {
+ var _ = s.__iterator(a, u),
+ w = [],
+ x = 0;
+ return new Iterator(function () {
+ for (; _; ) {
+ var s = _.next();
+ if (!1 === s.done) {
+ var C = s.value;
+ if (
+ (a === U && (C = C[1]),
+ (o && !(w.length < o)) || !isIterable(C))
+ )
+ return i ? s : iteratorValue(a, x++, C, s);
+ w.push(_), (_ = C.__iterator(a, u));
+ } else _ = w.pop();
+ }
+ return iteratorDone();
+ });
+ }),
+ a
+ );
+ }
+ function flatMapFactory(s, o, i) {
+ var a = iterableClass(s);
+ return s
+ .toSeq()
+ .map(function (u, _) {
+ return a(o.call(i, u, _, s));
+ })
+ .flatten(!0);
+ }
+ function interposeFactory(s, o) {
+ var i = makeSequence(s);
+ return (
+ (i.size = s.size && 2 * s.size - 1),
+ (i.__iterateUncached = function (i, a) {
+ var u = this,
+ _ = 0;
+ return (
+ s.__iterate(function (s, a) {
+ return (!_ || !1 !== i(o, _++, u)) && !1 !== i(s, _++, u);
+ }, a),
+ _
+ );
+ }),
+ (i.__iteratorUncached = function (i, a) {
+ var u,
+ _ = s.__iterator(V, a),
+ w = 0;
+ return new Iterator(function () {
+ return (!u || w % 2) && (u = _.next()).done
+ ? u
+ : w % 2
+ ? iteratorValue(i, w++, o)
+ : iteratorValue(i, w++, u.value, u);
+ });
+ }),
+ i
+ );
+ }
+ function sortFactory(s, o, i) {
+ o || (o = defaultComparator);
+ var a = isKeyed(s),
+ u = 0,
+ _ = s
+ .toSeq()
+ .map(function (o, a) {
+ return [a, o, u++, i ? i(o, a, s) : o];
+ })
+ .toArray();
+ return (
+ _.sort(function (s, i) {
+ return o(s[3], i[3]) || s[2] - i[2];
+ }).forEach(
+ a
+ ? function (s, o) {
+ _[o].length = 2;
+ }
+ : function (s, o) {
+ _[o] = s[1];
+ }
+ ),
+ a ? KeyedSeq(_) : isIndexed(s) ? IndexedSeq(_) : SetSeq(_)
+ );
+ }
+ function maxFactory(s, o, i) {
+ if ((o || (o = defaultComparator), i)) {
+ var a = s
+ .toSeq()
+ .map(function (o, a) {
+ return [o, i(o, a, s)];
+ })
+ .reduce(function (s, i) {
+ return maxCompare(o, s[1], i[1]) ? i : s;
+ });
+ return a && a[0];
+ }
+ return s.reduce(function (s, i) {
+ return maxCompare(o, s, i) ? i : s;
+ });
+ }
+ function maxCompare(s, o, i) {
+ var a = s(i, o);
+ return (0 === a && i !== o && (null == i || i != i)) || a > 0;
+ }
+ function zipWithFactory(s, o, i) {
+ var a = makeSequence(s);
+ return (
+ (a.size = new ArraySeq(i)
+ .map(function (s) {
+ return s.size;
+ })
+ .min()),
+ (a.__iterate = function (s, o) {
+ for (
+ var i, a = this.__iterator(V, o), u = 0;
+ !(i = a.next()).done && !1 !== s(i.value, u++, this);
+
+ );
+ return u;
+ }),
+ (a.__iteratorUncached = function (s, a) {
+ var u = i.map(function (s) {
+ return (
+ (s = Iterable(s)), getIterator(a ? s.reverse() : s)
+ );
+ }),
+ _ = 0,
+ w = !1;
+ return new Iterator(function () {
+ var i;
+ return (
+ w ||
+ ((i = u.map(function (s) {
+ return s.next();
+ })),
+ (w = i.some(function (s) {
+ return s.done;
+ }))),
+ w
+ ? iteratorDone()
+ : iteratorValue(
+ s,
+ _++,
+ o.apply(
+ null,
+ i.map(function (s) {
+ return s.value;
+ })
+ )
+ )
+ );
+ });
+ }),
+ a
+ );
+ }
+ function reify(s, o) {
+ return isSeq(s) ? o : s.constructor(o);
+ }
+ function validateEntry(s) {
+ if (s !== Object(s))
+ throw new TypeError('Expected [K, V] tuple: ' + s);
+ }
+ function resolveSize(s) {
+ return assertNotInfinite(s.size), ensureSize(s);
+ }
+ function iterableClass(s) {
+ return isKeyed(s)
+ ? KeyedIterable
+ : isIndexed(s)
+ ? IndexedIterable
+ : SetIterable;
+ }
+ function makeSequence(s) {
+ return Object.create(
+ (isKeyed(s) ? KeyedSeq : isIndexed(s) ? IndexedSeq : SetSeq)
+ .prototype
+ );
+ }
+ function cacheResultThrough() {
+ return this._iter.cacheResult
+ ? (this._iter.cacheResult(),
+ (this.size = this._iter.size),
+ this)
+ : Seq.prototype.cacheResult.call(this);
+ }
+ function defaultComparator(s, o) {
+ return s > o ? 1 : s < o ? -1 : 0;
+ }
+ function forceIterator(s) {
+ var o = getIterator(s);
+ if (!o) {
+ if (!isArrayLike(s))
+ throw new TypeError('Expected iterable or array-like: ' + s);
+ o = getIterator(Iterable(s));
+ }
+ return o;
+ }
+ function Record(s, o) {
+ var i,
+ a = function Record(_) {
+ if (_ instanceof a) return _;
+ if (!(this instanceof a)) return new a(_);
+ if (!i) {
+ i = !0;
+ var w = Object.keys(s);
+ setProps(u, w),
+ (u.size = w.length),
+ (u._name = o),
+ (u._keys = w),
+ (u._defaultValues = s);
+ }
+ this._map = Map(_);
+ },
+ u = (a.prototype = Object.create(tt));
+ return (u.constructor = a), a;
+ }
+ createClass(OrderedMap, Map),
+ (OrderedMap.of = function () {
+ return this(arguments);
+ }),
+ (OrderedMap.prototype.toString = function () {
+ return this.__toString('OrderedMap {', '}');
+ }),
+ (OrderedMap.prototype.get = function (s, o) {
+ var i = this._map.get(s);
+ return void 0 !== i ? this._list.get(i)[1] : o;
+ }),
+ (OrderedMap.prototype.clear = function () {
+ return 0 === this.size
+ ? this
+ : this.__ownerID
+ ? ((this.size = 0),
+ this._map.clear(),
+ this._list.clear(),
+ this)
+ : emptyOrderedMap();
+ }),
+ (OrderedMap.prototype.set = function (s, o) {
+ return updateOrderedMap(this, s, o);
+ }),
+ (OrderedMap.prototype.remove = function (s) {
+ return updateOrderedMap(this, s, j);
+ }),
+ (OrderedMap.prototype.wasAltered = function () {
+ return this._map.wasAltered() || this._list.wasAltered();
+ }),
+ (OrderedMap.prototype.__iterate = function (s, o) {
+ var i = this;
+ return this._list.__iterate(function (o) {
+ return o && s(o[1], o[0], i);
+ }, o);
+ }),
+ (OrderedMap.prototype.__iterator = function (s, o) {
+ return this._list.fromEntrySeq().__iterator(s, o);
+ }),
+ (OrderedMap.prototype.__ensureOwner = function (s) {
+ if (s === this.__ownerID) return this;
+ var o = this._map.__ensureOwner(s),
+ i = this._list.__ensureOwner(s);
+ return s
+ ? makeOrderedMap(o, i, s, this.__hash)
+ : ((this.__ownerID = s),
+ (this._map = o),
+ (this._list = i),
+ this);
+ }),
+ (OrderedMap.isOrderedMap = isOrderedMap),
+ (OrderedMap.prototype[u] = !0),
+ (OrderedMap.prototype[_] = OrderedMap.prototype.remove),
+ createClass(ToKeyedSequence, KeyedSeq),
+ (ToKeyedSequence.prototype.get = function (s, o) {
+ return this._iter.get(s, o);
+ }),
+ (ToKeyedSequence.prototype.has = function (s) {
+ return this._iter.has(s);
+ }),
+ (ToKeyedSequence.prototype.valueSeq = function () {
+ return this._iter.valueSeq();
+ }),
+ (ToKeyedSequence.prototype.reverse = function () {
+ var s = this,
+ o = reverseFactory(this, !0);
+ return (
+ this._useKeys ||
+ (o.valueSeq = function () {
+ return s._iter.toSeq().reverse();
+ }),
+ o
+ );
+ }),
+ (ToKeyedSequence.prototype.map = function (s, o) {
+ var i = this,
+ a = mapFactory(this, s, o);
+ return (
+ this._useKeys ||
+ (a.valueSeq = function () {
+ return i._iter.toSeq().map(s, o);
+ }),
+ a
+ );
+ }),
+ (ToKeyedSequence.prototype.__iterate = function (s, o) {
+ var i,
+ a = this;
+ return this._iter.__iterate(
+ this._useKeys
+ ? function (o, i) {
+ return s(o, i, a);
+ }
+ : ((i = o ? resolveSize(this) : 0),
+ function (u) {
+ return s(u, o ? --i : i++, a);
+ }),
+ o
+ );
+ }),
+ (ToKeyedSequence.prototype.__iterator = function (s, o) {
+ if (this._useKeys) return this._iter.__iterator(s, o);
+ var i = this._iter.__iterator(V, o),
+ a = o ? resolveSize(this) : 0;
+ return new Iterator(function () {
+ var u = i.next();
+ return u.done
+ ? u
+ : iteratorValue(s, o ? --a : a++, u.value, u);
+ });
+ }),
+ (ToKeyedSequence.prototype[u] = !0),
+ createClass(ToIndexedSequence, IndexedSeq),
+ (ToIndexedSequence.prototype.includes = function (s) {
+ return this._iter.includes(s);
+ }),
+ (ToIndexedSequence.prototype.__iterate = function (s, o) {
+ var i = this,
+ a = 0;
+ return this._iter.__iterate(function (o) {
+ return s(o, a++, i);
+ }, o);
+ }),
+ (ToIndexedSequence.prototype.__iterator = function (s, o) {
+ var i = this._iter.__iterator(V, o),
+ a = 0;
+ return new Iterator(function () {
+ var o = i.next();
+ return o.done ? o : iteratorValue(s, a++, o.value, o);
+ });
+ }),
+ createClass(ToSetSequence, SetSeq),
+ (ToSetSequence.prototype.has = function (s) {
+ return this._iter.includes(s);
+ }),
+ (ToSetSequence.prototype.__iterate = function (s, o) {
+ var i = this;
+ return this._iter.__iterate(function (o) {
+ return s(o, o, i);
+ }, o);
+ }),
+ (ToSetSequence.prototype.__iterator = function (s, o) {
+ var i = this._iter.__iterator(V, o);
+ return new Iterator(function () {
+ var o = i.next();
+ return o.done ? o : iteratorValue(s, o.value, o.value, o);
+ });
+ }),
+ createClass(FromEntriesSequence, KeyedSeq),
+ (FromEntriesSequence.prototype.entrySeq = function () {
+ return this._iter.toSeq();
+ }),
+ (FromEntriesSequence.prototype.__iterate = function (s, o) {
+ var i = this;
+ return this._iter.__iterate(function (o) {
+ if (o) {
+ validateEntry(o);
+ var a = isIterable(o);
+ return s(a ? o.get(1) : o[1], a ? o.get(0) : o[0], i);
+ }
+ }, o);
+ }),
+ (FromEntriesSequence.prototype.__iterator = function (s, o) {
+ var i = this._iter.__iterator(V, o);
+ return new Iterator(function () {
+ for (;;) {
+ var o = i.next();
+ if (o.done) return o;
+ var a = o.value;
+ if (a) {
+ validateEntry(a);
+ var u = isIterable(a);
+ return iteratorValue(
+ s,
+ u ? a.get(0) : a[0],
+ u ? a.get(1) : a[1],
+ o
+ );
+ }
+ }
+ });
+ }),
+ (ToIndexedSequence.prototype.cacheResult =
+ ToKeyedSequence.prototype.cacheResult =
+ ToSetSequence.prototype.cacheResult =
+ FromEntriesSequence.prototype.cacheResult =
+ cacheResultThrough),
+ createClass(Record, KeyedCollection),
+ (Record.prototype.toString = function () {
+ return this.__toString(recordName(this) + ' {', '}');
+ }),
+ (Record.prototype.has = function (s) {
+ return this._defaultValues.hasOwnProperty(s);
+ }),
+ (Record.prototype.get = function (s, o) {
+ if (!this.has(s)) return o;
+ var i = this._defaultValues[s];
+ return this._map ? this._map.get(s, i) : i;
+ }),
+ (Record.prototype.clear = function () {
+ if (this.__ownerID) return this._map && this._map.clear(), this;
+ var s = this.constructor;
+ return s._empty || (s._empty = makeRecord(this, emptyMap()));
+ }),
+ (Record.prototype.set = function (s, o) {
+ if (!this.has(s))
+ throw new Error(
+ 'Cannot set unknown key "' + s + '" on ' + recordName(this)
+ );
+ if (
+ this._map &&
+ !this._map.has(s) &&
+ o === this._defaultValues[s]
+ )
+ return this;
+ var i = this._map && this._map.set(s, o);
+ return this.__ownerID || i === this._map
+ ? this
+ : makeRecord(this, i);
+ }),
+ (Record.prototype.remove = function (s) {
+ if (!this.has(s)) return this;
+ var o = this._map && this._map.remove(s);
+ return this.__ownerID || o === this._map
+ ? this
+ : makeRecord(this, o);
+ }),
+ (Record.prototype.wasAltered = function () {
+ return this._map.wasAltered();
+ }),
+ (Record.prototype.__iterator = function (s, o) {
+ var i = this;
+ return KeyedIterable(this._defaultValues)
+ .map(function (s, o) {
+ return i.get(o);
+ })
+ .__iterator(s, o);
+ }),
+ (Record.prototype.__iterate = function (s, o) {
+ var i = this;
+ return KeyedIterable(this._defaultValues)
+ .map(function (s, o) {
+ return i.get(o);
+ })
+ .__iterate(s, o);
+ }),
+ (Record.prototype.__ensureOwner = function (s) {
+ if (s === this.__ownerID) return this;
+ var o = this._map && this._map.__ensureOwner(s);
+ return s
+ ? makeRecord(this, o, s)
+ : ((this.__ownerID = s), (this._map = o), this);
+ });
+ var tt = Record.prototype;
+ function makeRecord(s, o, i) {
+ var a = Object.create(Object.getPrototypeOf(s));
+ return (a._map = o), (a.__ownerID = i), a;
+ }
+ function recordName(s) {
+ return s._name || s.constructor.name || 'Record';
+ }
+ function setProps(s, o) {
+ try {
+ o.forEach(setProp.bind(void 0, s));
+ } catch (s) {}
+ }
+ function setProp(s, o) {
+ Object.defineProperty(s, o, {
+ get: function () {
+ return this.get(o);
+ },
+ set: function (s) {
+ invariant(
+ this.__ownerID,
+ 'Cannot set on an immutable record.'
+ ),
+ this.set(o, s);
+ }
+ });
+ }
+ function Set(s) {
+ return null == s
+ ? emptySet()
+ : isSet(s) && !isOrdered(s)
+ ? s
+ : emptySet().withMutations(function (o) {
+ var i = SetIterable(s);
+ assertNotInfinite(i.size),
+ i.forEach(function (s) {
+ return o.add(s);
+ });
+ });
+ }
+ function isSet(s) {
+ return !(!s || !s[nt]);
+ }
+ (tt[_] = tt.remove),
+ (tt.deleteIn = tt.removeIn = qe.removeIn),
+ (tt.merge = qe.merge),
+ (tt.mergeWith = qe.mergeWith),
+ (tt.mergeIn = qe.mergeIn),
+ (tt.mergeDeep = qe.mergeDeep),
+ (tt.mergeDeepWith = qe.mergeDeepWith),
+ (tt.mergeDeepIn = qe.mergeDeepIn),
+ (tt.setIn = qe.setIn),
+ (tt.update = qe.update),
+ (tt.updateIn = qe.updateIn),
+ (tt.withMutations = qe.withMutations),
+ (tt.asMutable = qe.asMutable),
+ (tt.asImmutable = qe.asImmutable),
+ createClass(Set, SetCollection),
+ (Set.of = function () {
+ return this(arguments);
+ }),
+ (Set.fromKeys = function (s) {
+ return this(KeyedIterable(s).keySeq());
+ }),
+ (Set.prototype.toString = function () {
+ return this.__toString('Set {', '}');
+ }),
+ (Set.prototype.has = function (s) {
+ return this._map.has(s);
+ }),
+ (Set.prototype.add = function (s) {
+ return updateSet(this, this._map.set(s, !0));
+ }),
+ (Set.prototype.remove = function (s) {
+ return updateSet(this, this._map.remove(s));
+ }),
+ (Set.prototype.clear = function () {
+ return updateSet(this, this._map.clear());
+ }),
+ (Set.prototype.union = function () {
+ var o = s.call(arguments, 0);
+ return 0 ===
+ (o = o.filter(function (s) {
+ return 0 !== s.size;
+ })).length
+ ? this
+ : 0 !== this.size || this.__ownerID || 1 !== o.length
+ ? this.withMutations(function (s) {
+ for (var i = 0; i < o.length; i++)
+ SetIterable(o[i]).forEach(function (o) {
+ return s.add(o);
+ });
+ })
+ : this.constructor(o[0]);
+ }),
+ (Set.prototype.intersect = function () {
+ var o = s.call(arguments, 0);
+ if (0 === o.length) return this;
+ o = o.map(function (s) {
+ return SetIterable(s);
+ });
+ var i = this;
+ return this.withMutations(function (s) {
+ i.forEach(function (i) {
+ o.every(function (s) {
+ return s.includes(i);
+ }) || s.remove(i);
+ });
+ });
+ }),
+ (Set.prototype.subtract = function () {
+ var o = s.call(arguments, 0);
+ if (0 === o.length) return this;
+ o = o.map(function (s) {
+ return SetIterable(s);
+ });
+ var i = this;
+ return this.withMutations(function (s) {
+ i.forEach(function (i) {
+ o.some(function (s) {
+ return s.includes(i);
+ }) && s.remove(i);
+ });
+ });
+ }),
+ (Set.prototype.merge = function () {
+ return this.union.apply(this, arguments);
+ }),
+ (Set.prototype.mergeWith = function (o) {
+ var i = s.call(arguments, 1);
+ return this.union.apply(this, i);
+ }),
+ (Set.prototype.sort = function (s) {
+ return OrderedSet(sortFactory(this, s));
+ }),
+ (Set.prototype.sortBy = function (s, o) {
+ return OrderedSet(sortFactory(this, o, s));
+ }),
+ (Set.prototype.wasAltered = function () {
+ return this._map.wasAltered();
+ }),
+ (Set.prototype.__iterate = function (s, o) {
+ var i = this;
+ return this._map.__iterate(function (o, a) {
+ return s(a, a, i);
+ }, o);
+ }),
+ (Set.prototype.__iterator = function (s, o) {
+ return this._map
+ .map(function (s, o) {
+ return o;
+ })
+ .__iterator(s, o);
+ }),
+ (Set.prototype.__ensureOwner = function (s) {
+ if (s === this.__ownerID) return this;
+ var o = this._map.__ensureOwner(s);
+ return s
+ ? this.__make(o, s)
+ : ((this.__ownerID = s), (this._map = o), this);
+ }),
+ (Set.isSet = isSet);
+ var rt,
+ nt = '@@__IMMUTABLE_SET__@@',
+ st = Set.prototype;
+ function updateSet(s, o) {
+ return s.__ownerID
+ ? ((s.size = o.size), (s._map = o), s)
+ : o === s._map
+ ? s
+ : 0 === o.size
+ ? s.__empty()
+ : s.__make(o);
+ }
+ function makeSet(s, o) {
+ var i = Object.create(st);
+ return (
+ (i.size = s ? s.size : 0), (i._map = s), (i.__ownerID = o), i
+ );
+ }
+ function emptySet() {
+ return rt || (rt = makeSet(emptyMap()));
+ }
+ function OrderedSet(s) {
+ return null == s
+ ? emptyOrderedSet()
+ : isOrderedSet(s)
+ ? s
+ : emptyOrderedSet().withMutations(function (o) {
+ var i = SetIterable(s);
+ assertNotInfinite(i.size),
+ i.forEach(function (s) {
+ return o.add(s);
+ });
+ });
+ }
+ function isOrderedSet(s) {
+ return isSet(s) && isOrdered(s);
+ }
+ (st[nt] = !0),
+ (st[_] = st.remove),
+ (st.mergeDeep = st.merge),
+ (st.mergeDeepWith = st.mergeWith),
+ (st.withMutations = qe.withMutations),
+ (st.asMutable = qe.asMutable),
+ (st.asImmutable = qe.asImmutable),
+ (st.__empty = emptySet),
+ (st.__make = makeSet),
+ createClass(OrderedSet, Set),
+ (OrderedSet.of = function () {
+ return this(arguments);
+ }),
+ (OrderedSet.fromKeys = function (s) {
+ return this(KeyedIterable(s).keySeq());
+ }),
+ (OrderedSet.prototype.toString = function () {
+ return this.__toString('OrderedSet {', '}');
+ }),
+ (OrderedSet.isOrderedSet = isOrderedSet);
+ var ot,
+ it = OrderedSet.prototype;
+ function makeOrderedSet(s, o) {
+ var i = Object.create(it);
+ return (
+ (i.size = s ? s.size : 0), (i._map = s), (i.__ownerID = o), i
+ );
+ }
+ function emptyOrderedSet() {
+ return ot || (ot = makeOrderedSet(emptyOrderedMap()));
+ }
+ function Stack(s) {
+ return null == s
+ ? emptyStack()
+ : isStack(s)
+ ? s
+ : emptyStack().unshiftAll(s);
+ }
+ function isStack(s) {
+ return !(!s || !s[ct]);
+ }
+ (it[u] = !0),
+ (it.__empty = emptyOrderedSet),
+ (it.__make = makeOrderedSet),
+ createClass(Stack, IndexedCollection),
+ (Stack.of = function () {
+ return this(arguments);
+ }),
+ (Stack.prototype.toString = function () {
+ return this.__toString('Stack [', ']');
+ }),
+ (Stack.prototype.get = function (s, o) {
+ var i = this._head;
+ for (s = wrapIndex(this, s); i && s--; ) i = i.next;
+ return i ? i.value : o;
+ }),
+ (Stack.prototype.peek = function () {
+ return this._head && this._head.value;
+ }),
+ (Stack.prototype.push = function () {
+ if (0 === arguments.length) return this;
+ for (
+ var s = this.size + arguments.length,
+ o = this._head,
+ i = arguments.length - 1;
+ i >= 0;
+ i--
+ )
+ o = { value: arguments[i], next: o };
+ return this.__ownerID
+ ? ((this.size = s),
+ (this._head = o),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : makeStack(s, o);
+ }),
+ (Stack.prototype.pushAll = function (s) {
+ if (0 === (s = IndexedIterable(s)).size) return this;
+ assertNotInfinite(s.size);
+ var o = this.size,
+ i = this._head;
+ return (
+ s.reverse().forEach(function (s) {
+ o++, (i = { value: s, next: i });
+ }),
+ this.__ownerID
+ ? ((this.size = o),
+ (this._head = i),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : makeStack(o, i)
+ );
+ }),
+ (Stack.prototype.pop = function () {
+ return this.slice(1);
+ }),
+ (Stack.prototype.unshift = function () {
+ return this.push.apply(this, arguments);
+ }),
+ (Stack.prototype.unshiftAll = function (s) {
+ return this.pushAll(s);
+ }),
+ (Stack.prototype.shift = function () {
+ return this.pop.apply(this, arguments);
+ }),
+ (Stack.prototype.clear = function () {
+ return 0 === this.size
+ ? this
+ : this.__ownerID
+ ? ((this.size = 0),
+ (this._head = void 0),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : emptyStack();
+ }),
+ (Stack.prototype.slice = function (s, o) {
+ if (wholeSlice(s, o, this.size)) return this;
+ var i = resolveBegin(s, this.size);
+ if (resolveEnd(o, this.size) !== this.size)
+ return IndexedCollection.prototype.slice.call(this, s, o);
+ for (var a = this.size - i, u = this._head; i--; ) u = u.next;
+ return this.__ownerID
+ ? ((this.size = a),
+ (this._head = u),
+ (this.__hash = void 0),
+ (this.__altered = !0),
+ this)
+ : makeStack(a, u);
+ }),
+ (Stack.prototype.__ensureOwner = function (s) {
+ return s === this.__ownerID
+ ? this
+ : s
+ ? makeStack(this.size, this._head, s, this.__hash)
+ : ((this.__ownerID = s), (this.__altered = !1), this);
+ }),
+ (Stack.prototype.__iterate = function (s, o) {
+ if (o) return this.reverse().__iterate(s);
+ for (
+ var i = 0, a = this._head;
+ a && !1 !== s(a.value, i++, this);
+
+ )
+ a = a.next;
+ return i;
+ }),
+ (Stack.prototype.__iterator = function (s, o) {
+ if (o) return this.reverse().__iterator(s);
+ var i = 0,
+ a = this._head;
+ return new Iterator(function () {
+ if (a) {
+ var o = a.value;
+ return (a = a.next), iteratorValue(s, i++, o);
+ }
+ return iteratorDone();
+ });
+ }),
+ (Stack.isStack = isStack);
+ var at,
+ ct = '@@__IMMUTABLE_STACK__@@',
+ lt = Stack.prototype;
+ function makeStack(s, o, i, a) {
+ var u = Object.create(lt);
+ return (
+ (u.size = s),
+ (u._head = o),
+ (u.__ownerID = i),
+ (u.__hash = a),
+ (u.__altered = !1),
+ u
+ );
+ }
+ function emptyStack() {
+ return at || (at = makeStack(0));
+ }
+ function mixin(s, o) {
+ var keyCopier = function (i) {
+ s.prototype[i] = o[i];
+ };
+ return (
+ Object.keys(o).forEach(keyCopier),
+ Object.getOwnPropertySymbols &&
+ Object.getOwnPropertySymbols(o).forEach(keyCopier),
+ s
+ );
+ }
+ (lt[ct] = !0),
+ (lt.withMutations = qe.withMutations),
+ (lt.asMutable = qe.asMutable),
+ (lt.asImmutable = qe.asImmutable),
+ (lt.wasAltered = qe.wasAltered),
+ (Iterable.Iterator = Iterator),
+ mixin(Iterable, {
+ toArray: function () {
+ assertNotInfinite(this.size);
+ var s = new Array(this.size || 0);
+ return (
+ this.valueSeq().__iterate(function (o, i) {
+ s[i] = o;
+ }),
+ s
+ );
+ },
+ toIndexedSeq: function () {
+ return new ToIndexedSequence(this);
+ },
+ toJS: function () {
+ return this.toSeq()
+ .map(function (s) {
+ return s && 'function' == typeof s.toJS ? s.toJS() : s;
+ })
+ .__toJS();
+ },
+ toJSON: function () {
+ return this.toSeq()
+ .map(function (s) {
+ return s && 'function' == typeof s.toJSON
+ ? s.toJSON()
+ : s;
+ })
+ .__toJS();
+ },
+ toKeyedSeq: function () {
+ return new ToKeyedSequence(this, !0);
+ },
+ toMap: function () {
+ return Map(this.toKeyedSeq());
+ },
+ toObject: function () {
+ assertNotInfinite(this.size);
+ var s = {};
+ return (
+ this.__iterate(function (o, i) {
+ s[i] = o;
+ }),
+ s
+ );
+ },
+ toOrderedMap: function () {
+ return OrderedMap(this.toKeyedSeq());
+ },
+ toOrderedSet: function () {
+ return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
+ },
+ toSet: function () {
+ return Set(isKeyed(this) ? this.valueSeq() : this);
+ },
+ toSetSeq: function () {
+ return new ToSetSequence(this);
+ },
+ toSeq: function () {
+ return isIndexed(this)
+ ? this.toIndexedSeq()
+ : isKeyed(this)
+ ? this.toKeyedSeq()
+ : this.toSetSeq();
+ },
+ toStack: function () {
+ return Stack(isKeyed(this) ? this.valueSeq() : this);
+ },
+ toList: function () {
+ return List(isKeyed(this) ? this.valueSeq() : this);
+ },
+ toString: function () {
+ return '[Iterable]';
+ },
+ __toString: function (s, o) {
+ return 0 === this.size
+ ? s + o
+ : s +
+ ' ' +
+ this.toSeq().map(this.__toStringMapper).join(', ') +
+ ' ' +
+ o;
+ },
+ concat: function () {
+ return reify(this, concatFactory(this, s.call(arguments, 0)));
+ },
+ includes: function (s) {
+ return this.some(function (o) {
+ return is(o, s);
+ });
+ },
+ entries: function () {
+ return this.__iterator(U);
+ },
+ every: function (s, o) {
+ assertNotInfinite(this.size);
+ var i = !0;
+ return (
+ this.__iterate(function (a, u, _) {
+ if (!s.call(o, a, u, _)) return (i = !1), !1;
+ }),
+ i
+ );
+ },
+ filter: function (s, o) {
+ return reify(this, filterFactory(this, s, o, !0));
+ },
+ find: function (s, o, i) {
+ var a = this.findEntry(s, o);
+ return a ? a[1] : i;
+ },
+ forEach: function (s, o) {
+ return (
+ assertNotInfinite(this.size),
+ this.__iterate(o ? s.bind(o) : s)
+ );
+ },
+ join: function (s) {
+ assertNotInfinite(this.size),
+ (s = void 0 !== s ? '' + s : ',');
+ var o = '',
+ i = !0;
+ return (
+ this.__iterate(function (a) {
+ i ? (i = !1) : (o += s),
+ (o += null != a ? a.toString() : '');
+ }),
+ o
+ );
+ },
+ keys: function () {
+ return this.__iterator($);
+ },
+ map: function (s, o) {
+ return reify(this, mapFactory(this, s, o));
+ },
+ reduce: function (s, o, i) {
+ var a, u;
+ return (
+ assertNotInfinite(this.size),
+ arguments.length < 2 ? (u = !0) : (a = o),
+ this.__iterate(function (o, _, w) {
+ u ? ((u = !1), (a = o)) : (a = s.call(i, a, o, _, w));
+ }),
+ a
+ );
+ },
+ reduceRight: function (s, o, i) {
+ var a = this.toKeyedSeq().reverse();
+ return a.reduce.apply(a, arguments);
+ },
+ reverse: function () {
+ return reify(this, reverseFactory(this, !0));
+ },
+ slice: function (s, o) {
+ return reify(this, sliceFactory(this, s, o, !0));
+ },
+ some: function (s, o) {
+ return !this.every(not(s), o);
+ },
+ sort: function (s) {
+ return reify(this, sortFactory(this, s));
+ },
+ values: function () {
+ return this.__iterator(V);
+ },
+ butLast: function () {
+ return this.slice(0, -1);
+ },
+ isEmpty: function () {
+ return void 0 !== this.size
+ ? 0 === this.size
+ : !this.some(function () {
+ return !0;
+ });
+ },
+ count: function (s, o) {
+ return ensureSize(s ? this.toSeq().filter(s, o) : this);
+ },
+ countBy: function (s, o) {
+ return countByFactory(this, s, o);
+ },
+ equals: function (s) {
+ return deepEqual(this, s);
+ },
+ entrySeq: function () {
+ var s = this;
+ if (s._cache) return new ArraySeq(s._cache);
+ var o = s.toSeq().map(entryMapper).toIndexedSeq();
+ return (
+ (o.fromEntrySeq = function () {
+ return s.toSeq();
+ }),
+ o
+ );
+ },
+ filterNot: function (s, o) {
+ return this.filter(not(s), o);
+ },
+ findEntry: function (s, o, i) {
+ var a = i;
+ return (
+ this.__iterate(function (i, u, _) {
+ if (s.call(o, i, u, _)) return (a = [u, i]), !1;
+ }),
+ a
+ );
+ },
+ findKey: function (s, o) {
+ var i = this.findEntry(s, o);
+ return i && i[0];
+ },
+ findLast: function (s, o, i) {
+ return this.toKeyedSeq().reverse().find(s, o, i);
+ },
+ findLastEntry: function (s, o, i) {
+ return this.toKeyedSeq().reverse().findEntry(s, o, i);
+ },
+ findLastKey: function (s, o) {
+ return this.toKeyedSeq().reverse().findKey(s, o);
+ },
+ first: function () {
+ return this.find(returnTrue);
+ },
+ flatMap: function (s, o) {
+ return reify(this, flatMapFactory(this, s, o));
+ },
+ flatten: function (s) {
+ return reify(this, flattenFactory(this, s, !0));
+ },
+ fromEntrySeq: function () {
+ return new FromEntriesSequence(this);
+ },
+ get: function (s, o) {
+ return this.find(
+ function (o, i) {
+ return is(i, s);
+ },
+ void 0,
+ o
+ );
+ },
+ getIn: function (s, o) {
+ for (
+ var i, a = this, u = forceIterator(s);
+ !(i = u.next()).done;
+
+ ) {
+ var _ = i.value;
+ if ((a = a && a.get ? a.get(_, j) : j) === j) return o;
+ }
+ return a;
+ },
+ groupBy: function (s, o) {
+ return groupByFactory(this, s, o);
+ },
+ has: function (s) {
+ return this.get(s, j) !== j;
+ },
+ hasIn: function (s) {
+ return this.getIn(s, j) !== j;
+ },
+ isSubset: function (s) {
+ return (
+ (s = 'function' == typeof s.includes ? s : Iterable(s)),
+ this.every(function (o) {
+ return s.includes(o);
+ })
+ );
+ },
+ isSuperset: function (s) {
+ return (s =
+ 'function' == typeof s.isSubset ? s : Iterable(s)).isSubset(
+ this
+ );
+ },
+ keyOf: function (s) {
+ return this.findKey(function (o) {
+ return is(o, s);
+ });
+ },
+ keySeq: function () {
+ return this.toSeq().map(keyMapper).toIndexedSeq();
+ },
+ last: function () {
+ return this.toSeq().reverse().first();
+ },
+ lastKeyOf: function (s) {
+ return this.toKeyedSeq().reverse().keyOf(s);
+ },
+ max: function (s) {
+ return maxFactory(this, s);
+ },
+ maxBy: function (s, o) {
+ return maxFactory(this, o, s);
+ },
+ min: function (s) {
+ return maxFactory(this, s ? neg(s) : defaultNegComparator);
+ },
+ minBy: function (s, o) {
+ return maxFactory(this, o ? neg(o) : defaultNegComparator, s);
+ },
+ rest: function () {
+ return this.slice(1);
+ },
+ skip: function (s) {
+ return this.slice(Math.max(0, s));
+ },
+ skipLast: function (s) {
+ return reify(this, this.toSeq().reverse().skip(s).reverse());
+ },
+ skipWhile: function (s, o) {
+ return reify(this, skipWhileFactory(this, s, o, !0));
+ },
+ skipUntil: function (s, o) {
+ return this.skipWhile(not(s), o);
+ },
+ sortBy: function (s, o) {
+ return reify(this, sortFactory(this, o, s));
+ },
+ take: function (s) {
+ return this.slice(0, Math.max(0, s));
+ },
+ takeLast: function (s) {
+ return reify(this, this.toSeq().reverse().take(s).reverse());
+ },
+ takeWhile: function (s, o) {
+ return reify(this, takeWhileFactory(this, s, o));
+ },
+ takeUntil: function (s, o) {
+ return this.takeWhile(not(s), o);
+ },
+ valueSeq: function () {
+ return this.toIndexedSeq();
+ },
+ hashCode: function () {
+ return this.__hash || (this.__hash = hashIterable(this));
+ }
+ });
+ var ut = Iterable.prototype;
+ (ut[o] = !0),
+ (ut[Z] = ut.values),
+ (ut.__toJS = ut.toArray),
+ (ut.__toStringMapper = quoteString),
+ (ut.inspect = ut.toSource =
+ function () {
+ return this.toString();
+ }),
+ (ut.chain = ut.flatMap),
+ (ut.contains = ut.includes),
+ mixin(KeyedIterable, {
+ flip: function () {
+ return reify(this, flipFactory(this));
+ },
+ mapEntries: function (s, o) {
+ var i = this,
+ a = 0;
+ return reify(
+ this,
+ this.toSeq()
+ .map(function (u, _) {
+ return s.call(o, [_, u], a++, i);
+ })
+ .fromEntrySeq()
+ );
+ },
+ mapKeys: function (s, o) {
+ var i = this;
+ return reify(
+ this,
+ this.toSeq()
+ .flip()
+ .map(function (a, u) {
+ return s.call(o, a, u, i);
+ })
+ .flip()
+ );
+ }
+ });
+ var pt = KeyedIterable.prototype;
+ function keyMapper(s, o) {
+ return o;
+ }
+ function entryMapper(s, o) {
+ return [o, s];
+ }
+ function not(s) {
+ return function () {
+ return !s.apply(this, arguments);
+ };
+ }
+ function neg(s) {
+ return function () {
+ return -s.apply(this, arguments);
+ };
+ }
+ function quoteString(s) {
+ return 'string' == typeof s ? JSON.stringify(s) : String(s);
+ }
+ function defaultZipper() {
+ return arrCopy(arguments);
+ }
+ function defaultNegComparator(s, o) {
+ return s < o ? 1 : s > o ? -1 : 0;
+ }
+ function hashIterable(s) {
+ if (s.size === 1 / 0) return 0;
+ var o = isOrdered(s),
+ i = isKeyed(s),
+ a = o ? 1 : 0;
+ return murmurHashOfSize(
+ s.__iterate(
+ i
+ ? o
+ ? function (s, o) {
+ a = (31 * a + hashMerge(hash(s), hash(o))) | 0;
+ }
+ : function (s, o) {
+ a = (a + hashMerge(hash(s), hash(o))) | 0;
+ }
+ : o
+ ? function (s) {
+ a = (31 * a + hash(s)) | 0;
+ }
+ : function (s) {
+ a = (a + hash(s)) | 0;
+ }
+ ),
+ a
+ );
+ }
+ function murmurHashOfSize(s, o) {
+ return (
+ (o = le(o, 3432918353)),
+ (o = le((o << 15) | (o >>> -15), 461845907)),
+ (o = le((o << 13) | (o >>> -13), 5)),
+ (o = le((o = (o + 3864292196) ^ s) ^ (o >>> 16), 2246822507)),
+ (o = smi((o = le(o ^ (o >>> 13), 3266489909)) ^ (o >>> 16)))
+ );
+ }
+ function hashMerge(s, o) {
+ return s ^ (o + 2654435769 + (s << 6) + (s >> 2));
+ }
+ return (
+ (pt[i] = !0),
+ (pt[Z] = ut.entries),
+ (pt.__toJS = ut.toObject),
+ (pt.__toStringMapper = function (s, o) {
+ return JSON.stringify(o) + ': ' + quoteString(s);
+ }),
+ mixin(IndexedIterable, {
+ toKeyedSeq: function () {
+ return new ToKeyedSequence(this, !1);
+ },
+ filter: function (s, o) {
+ return reify(this, filterFactory(this, s, o, !1));
+ },
+ findIndex: function (s, o) {
+ var i = this.findEntry(s, o);
+ return i ? i[0] : -1;
+ },
+ indexOf: function (s) {
+ var o = this.keyOf(s);
+ return void 0 === o ? -1 : o;
+ },
+ lastIndexOf: function (s) {
+ var o = this.lastKeyOf(s);
+ return void 0 === o ? -1 : o;
+ },
+ reverse: function () {
+ return reify(this, reverseFactory(this, !1));
+ },
+ slice: function (s, o) {
+ return reify(this, sliceFactory(this, s, o, !1));
+ },
+ splice: function (s, o) {
+ var i = arguments.length;
+ if (((o = Math.max(0 | o, 0)), 0 === i || (2 === i && !o)))
+ return this;
+ s = resolveBegin(s, s < 0 ? this.count() : this.size);
+ var a = this.slice(0, s);
+ return reify(
+ this,
+ 1 === i
+ ? a
+ : a.concat(arrCopy(arguments, 2), this.slice(s + o))
+ );
+ },
+ findLastIndex: function (s, o) {
+ var i = this.findLastEntry(s, o);
+ return i ? i[0] : -1;
+ },
+ first: function () {
+ return this.get(0);
+ },
+ flatten: function (s) {
+ return reify(this, flattenFactory(this, s, !1));
+ },
+ get: function (s, o) {
+ return (s = wrapIndex(this, s)) < 0 ||
+ this.size === 1 / 0 ||
+ (void 0 !== this.size && s > this.size)
+ ? o
+ : this.find(
+ function (o, i) {
+ return i === s;
+ },
+ void 0,
+ o
+ );
+ },
+ has: function (s) {
+ return (
+ (s = wrapIndex(this, s)) >= 0 &&
+ (void 0 !== this.size
+ ? this.size === 1 / 0 || s < this.size
+ : -1 !== this.indexOf(s))
+ );
+ },
+ interpose: function (s) {
+ return reify(this, interposeFactory(this, s));
+ },
+ interleave: function () {
+ var s = [this].concat(arrCopy(arguments)),
+ o = zipWithFactory(this.toSeq(), IndexedSeq.of, s),
+ i = o.flatten(!0);
+ return o.size && (i.size = o.size * s.length), reify(this, i);
+ },
+ keySeq: function () {
+ return Range(0, this.size);
+ },
+ last: function () {
+ return this.get(-1);
+ },
+ skipWhile: function (s, o) {
+ return reify(this, skipWhileFactory(this, s, o, !1));
+ },
+ zip: function () {
+ return reify(
+ this,
+ zipWithFactory(
+ this,
+ defaultZipper,
+ [this].concat(arrCopy(arguments))
+ )
+ );
+ },
+ zipWith: function (s) {
+ var o = arrCopy(arguments);
+ return (o[0] = this), reify(this, zipWithFactory(this, s, o));
+ }
+ }),
+ (IndexedIterable.prototype[a] = !0),
+ (IndexedIterable.prototype[u] = !0),
+ mixin(SetIterable, {
+ get: function (s, o) {
+ return this.has(s) ? s : o;
+ },
+ includes: function (s) {
+ return this.has(s);
+ },
+ keySeq: function () {
+ return this.valueSeq();
+ }
+ }),
+ (SetIterable.prototype.has = ut.includes),
+ (SetIterable.prototype.contains = SetIterable.prototype.includes),
+ mixin(KeyedSeq, KeyedIterable.prototype),
+ mixin(IndexedSeq, IndexedIterable.prototype),
+ mixin(SetSeq, SetIterable.prototype),
+ mixin(KeyedCollection, KeyedIterable.prototype),
+ mixin(IndexedCollection, IndexedIterable.prototype),
+ mixin(SetCollection, SetIterable.prototype),
+ {
+ Iterable,
+ Seq,
+ Collection,
+ Map,
+ OrderedMap,
+ List,
+ Stack,
+ Set,
+ OrderedSet,
+ Record,
+ Range,
+ Repeat,
+ is,
+ fromJS
+ }
+ );
+ })();
+ },
+ 9748: (s, o, i) => {
+ 'use strict';
+ i(71340);
+ var a = i(92046);
+ s.exports = a.Object.assign;
+ },
+ 9999: (s, o, i) => {
+ var a = i(37217),
+ u = i(83729),
+ _ = i(16547),
+ w = i(74733),
+ x = i(43838),
+ C = i(93290),
+ j = i(23007),
+ L = i(92271),
+ B = i(48948),
+ $ = i(50002),
+ V = i(83349),
+ U = i(5861),
+ z = i(76189),
+ Y = i(77199),
+ Z = i(35529),
+ ee = i(56449),
+ ie = i(3656),
+ ae = i(87730),
+ ce = i(23805),
+ le = i(38440),
+ pe = i(95950),
+ de = i(37241),
+ fe = '[object Arguments]',
+ ye = '[object Function]',
+ be = '[object Object]',
+ _e = {};
+ (_e[fe] =
+ _e['[object Array]'] =
+ _e['[object ArrayBuffer]'] =
+ _e['[object DataView]'] =
+ _e['[object Boolean]'] =
+ _e['[object Date]'] =
+ _e['[object Float32Array]'] =
+ _e['[object Float64Array]'] =
+ _e['[object Int8Array]'] =
+ _e['[object Int16Array]'] =
+ _e['[object Int32Array]'] =
+ _e['[object Map]'] =
+ _e['[object Number]'] =
+ _e[be] =
+ _e['[object RegExp]'] =
+ _e['[object Set]'] =
+ _e['[object String]'] =
+ _e['[object Symbol]'] =
+ _e['[object Uint8Array]'] =
+ _e['[object Uint8ClampedArray]'] =
+ _e['[object Uint16Array]'] =
+ _e['[object Uint32Array]'] =
+ !0),
+ (_e['[object Error]'] = _e[ye] = _e['[object WeakMap]'] = !1),
+ (s.exports = function baseClone(s, o, i, Se, we, xe) {
+ var Pe,
+ Te = 1 & o,
+ Re = 2 & o,
+ qe = 4 & o;
+ if ((i && (Pe = we ? i(s, Se, we, xe) : i(s)), void 0 !== Pe))
+ return Pe;
+ if (!ce(s)) return s;
+ var $e = ee(s);
+ if ($e) {
+ if (((Pe = z(s)), !Te)) return j(s, Pe);
+ } else {
+ var ze = U(s),
+ We = ze == ye || '[object GeneratorFunction]' == ze;
+ if (ie(s)) return C(s, Te);
+ if (ze == be || ze == fe || (We && !we)) {
+ if (((Pe = Re || We ? {} : Z(s)), !Te))
+ return Re ? B(s, x(Pe, s)) : L(s, w(Pe, s));
+ } else {
+ if (!_e[ze]) return we ? s : {};
+ Pe = Y(s, ze, Te);
+ }
+ }
+ xe || (xe = new a());
+ var He = xe.get(s);
+ if (He) return He;
+ xe.set(s, Pe),
+ le(s)
+ ? s.forEach(function (a) {
+ Pe.add(baseClone(a, o, i, a, s, xe));
+ })
+ : ae(s) &&
+ s.forEach(function (a, u) {
+ Pe.set(u, baseClone(a, o, i, u, s, xe));
+ });
+ var Xe = $e ? void 0 : (qe ? (Re ? V : $) : Re ? de : pe)(s);
+ return (
+ u(Xe || s, function (a, u) {
+ Xe && (a = s[(u = a)]),
+ _(Pe, u, baseClone(a, o, i, u, s, xe));
+ }),
+ Pe
+ );
+ });
+ },
+ 10023: (s, o, i) => {
+ const a = i(6205),
+ INTS = () => [{ type: a.RANGE, from: 48, to: 57 }],
+ WORDS = () =>
+ [
+ { type: a.CHAR, value: 95 },
+ { type: a.RANGE, from: 97, to: 122 },
+ { type: a.RANGE, from: 65, to: 90 }
+ ].concat(INTS()),
+ WHITESPACE = () => [
+ { type: a.CHAR, value: 9 },
+ { type: a.CHAR, value: 10 },
+ { type: a.CHAR, value: 11 },
+ { type: a.CHAR, value: 12 },
+ { type: a.CHAR, value: 13 },
+ { type: a.CHAR, value: 32 },
+ { type: a.CHAR, value: 160 },
+ { type: a.CHAR, value: 5760 },
+ { type: a.RANGE, from: 8192, to: 8202 },
+ { type: a.CHAR, value: 8232 },
+ { type: a.CHAR, value: 8233 },
+ { type: a.CHAR, value: 8239 },
+ { type: a.CHAR, value: 8287 },
+ { type: a.CHAR, value: 12288 },
+ { type: a.CHAR, value: 65279 }
+ ];
+ (o.words = () => ({ type: a.SET, set: WORDS(), not: !1 })),
+ (o.notWords = () => ({ type: a.SET, set: WORDS(), not: !0 })),
+ (o.ints = () => ({ type: a.SET, set: INTS(), not: !1 })),
+ (o.notInts = () => ({ type: a.SET, set: INTS(), not: !0 })),
+ (o.whitespace = () => ({
+ type: a.SET,
+ set: WHITESPACE(),
+ not: !1
+ })),
+ (o.notWhitespace = () => ({
+ type: a.SET,
+ set: WHITESPACE(),
+ not: !0
+ })),
+ (o.anyChar = () => ({
+ type: a.SET,
+ set: [
+ { type: a.CHAR, value: 10 },
+ { type: a.CHAR, value: 13 },
+ { type: a.CHAR, value: 8232 },
+ { type: a.CHAR, value: 8233 }
+ ],
+ not: !0
+ }));
+ },
+ 10043: (s, o, i) => {
+ 'use strict';
+ var a = i(54018),
+ u = String,
+ _ = TypeError;
+ s.exports = function (s) {
+ if (a(s)) return s;
+ throw new _("Can't set " + u(s) + ' as a prototype');
+ };
+ },
+ 10124: (s, o, i) => {
+ var a = i(9325);
+ s.exports = function () {
+ return a.Date.now();
+ };
+ },
+ 10300: (s, o, i) => {
+ 'use strict';
+ var a = i(13930),
+ u = i(82159),
+ _ = i(36624),
+ w = i(4640),
+ x = i(73448),
+ C = TypeError;
+ s.exports = function (s, o) {
+ var i = arguments.length < 2 ? x(s) : o;
+ if (u(i)) return _(a(i, s));
+ throw new C(w(s) + ' is not iterable');
+ };
+ },
+ 10316: (s, o, i) => {
+ const a = i(2404),
+ u = i(55973),
+ _ = i(92340);
+ class Element {
+ constructor(s, o, i) {
+ o && (this.meta = o),
+ i && (this.attributes = i),
+ (this.content = s);
+ }
+ freeze() {
+ Object.isFrozen(this) ||
+ (this._meta && ((this.meta.parent = this), this.meta.freeze()),
+ this._attributes &&
+ ((this.attributes.parent = this), this.attributes.freeze()),
+ this.children.forEach((s) => {
+ (s.parent = this), s.freeze();
+ }, this),
+ this.content &&
+ Array.isArray(this.content) &&
+ Object.freeze(this.content),
+ Object.freeze(this));
+ }
+ primitive() {}
+ clone() {
+ const s = new this.constructor();
+ return (
+ (s.element = this.element),
+ this.meta.length && (s._meta = this.meta.clone()),
+ this.attributes.length &&
+ (s._attributes = this.attributes.clone()),
+ this.content
+ ? this.content.clone
+ ? (s.content = this.content.clone())
+ : Array.isArray(this.content)
+ ? (s.content = this.content.map((s) => s.clone()))
+ : (s.content = this.content)
+ : (s.content = this.content),
+ s
+ );
+ }
+ toValue() {
+ return this.content instanceof Element
+ ? this.content.toValue()
+ : this.content instanceof u
+ ? {
+ key: this.content.key.toValue(),
+ value: this.content.value
+ ? this.content.value.toValue()
+ : void 0
+ }
+ : this.content && this.content.map
+ ? this.content.map((s) => s.toValue(), this)
+ : this.content;
+ }
+ toRef(s) {
+ if ('' === this.id.toValue())
+ throw Error(
+ 'Cannot create reference to an element that does not contain an ID'
+ );
+ const o = new this.RefElement(this.id.toValue());
+ return s && (o.path = s), o;
+ }
+ findRecursive(...s) {
+ if (arguments.length > 1 && !this.isFrozen)
+ throw new Error(
+ 'Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`'
+ );
+ const o = s.pop();
+ let i = new _();
+ const append = (s, o) => (s.push(o), s),
+ checkElement = (s, i) => {
+ i.element === o && s.push(i);
+ const a = i.findRecursive(o);
+ return (
+ a && a.reduce(append, s),
+ i.content instanceof u &&
+ (i.content.key && checkElement(s, i.content.key),
+ i.content.value && checkElement(s, i.content.value)),
+ s
+ );
+ };
+ return (
+ this.content &&
+ (this.content.element && checkElement(i, this.content),
+ Array.isArray(this.content) &&
+ this.content.reduce(checkElement, i)),
+ s.isEmpty ||
+ (i = i.filter((o) => {
+ let i = o.parents.map((s) => s.element);
+ for (const o in s) {
+ const a = s[o],
+ u = i.indexOf(a);
+ if (-1 === u) return !1;
+ i = i.splice(0, u);
+ }
+ return !0;
+ })),
+ i
+ );
+ }
+ set(s) {
+ return (this.content = s), this;
+ }
+ equals(s) {
+ return a(this.toValue(), s);
+ }
+ getMetaProperty(s, o) {
+ if (!this.meta.hasKey(s)) {
+ if (this.isFrozen) {
+ const s = this.refract(o);
+ return s.freeze(), s;
+ }
+ this.meta.set(s, o);
+ }
+ return this.meta.get(s);
+ }
+ setMetaProperty(s, o) {
+ this.meta.set(s, o);
+ }
+ get element() {
+ return this._storedElement || 'element';
+ }
+ set element(s) {
+ this._storedElement = s;
+ }
+ get content() {
+ return this._content;
+ }
+ set content(s) {
+ if (s instanceof Element) this._content = s;
+ else if (s instanceof _) this.content = s.elements;
+ else if (
+ 'string' == typeof s ||
+ 'number' == typeof s ||
+ 'boolean' == typeof s ||
+ 'null' === s ||
+ null == s
+ )
+ this._content = s;
+ else if (s instanceof u) this._content = s;
+ else if (Array.isArray(s)) this._content = s.map(this.refract);
+ else {
+ if ('object' != typeof s)
+ throw new Error('Cannot set content to given value');
+ this._content = Object.keys(s).map(
+ (o) => new this.MemberElement(o, s[o])
+ );
+ }
+ }
+ get meta() {
+ if (!this._meta) {
+ if (this.isFrozen) {
+ const s = new this.ObjectElement();
+ return s.freeze(), s;
+ }
+ this._meta = new this.ObjectElement();
+ }
+ return this._meta;
+ }
+ set meta(s) {
+ s instanceof this.ObjectElement
+ ? (this._meta = s)
+ : this.meta.set(s || {});
+ }
+ get attributes() {
+ if (!this._attributes) {
+ if (this.isFrozen) {
+ const s = new this.ObjectElement();
+ return s.freeze(), s;
+ }
+ this._attributes = new this.ObjectElement();
+ }
+ return this._attributes;
+ }
+ set attributes(s) {
+ s instanceof this.ObjectElement
+ ? (this._attributes = s)
+ : this.attributes.set(s || {});
+ }
+ get id() {
+ return this.getMetaProperty('id', '');
+ }
+ set id(s) {
+ this.setMetaProperty('id', s);
+ }
+ get classes() {
+ return this.getMetaProperty('classes', []);
+ }
+ set classes(s) {
+ this.setMetaProperty('classes', s);
+ }
+ get title() {
+ return this.getMetaProperty('title', '');
+ }
+ set title(s) {
+ this.setMetaProperty('title', s);
+ }
+ get description() {
+ return this.getMetaProperty('description', '');
+ }
+ set description(s) {
+ this.setMetaProperty('description', s);
+ }
+ get links() {
+ return this.getMetaProperty('links', []);
+ }
+ set links(s) {
+ this.setMetaProperty('links', s);
+ }
+ get isFrozen() {
+ return Object.isFrozen(this);
+ }
+ get parents() {
+ let { parent: s } = this;
+ const o = new _();
+ for (; s; ) o.push(s), (s = s.parent);
+ return o;
+ }
+ get children() {
+ if (Array.isArray(this.content)) return new _(this.content);
+ if (this.content instanceof u) {
+ const s = new _([this.content.key]);
+ return this.content.value && s.push(this.content.value), s;
+ }
+ return this.content instanceof Element
+ ? new _([this.content])
+ : new _();
+ }
+ get recursiveChildren() {
+ const s = new _();
+ return (
+ this.children.forEach((o) => {
+ s.push(o),
+ o.recursiveChildren.forEach((o) => {
+ s.push(o);
+ });
+ }),
+ s
+ );
+ }
+ }
+ s.exports = Element;
+ },
+ 10392: (s) => {
+ s.exports = function getValue(s, o) {
+ return null == s ? void 0 : s[o];
+ };
+ },
+ 10776: (s, o, i) => {
+ var a = i(30756),
+ u = i(95950);
+ s.exports = function getMatchData(s) {
+ for (var o = u(s), i = o.length; i--; ) {
+ var _ = o[i],
+ w = s[_];
+ o[i] = [_, w, a(w)];
+ }
+ return o;
+ };
+ },
+ 10866: (s, o, i) => {
+ const a = i(6048),
+ u = i(92340);
+ class ObjectSlice extends u {
+ map(s, o) {
+ return this.elements.map((i) => s.bind(o)(i.value, i.key, i));
+ }
+ filter(s, o) {
+ return new ObjectSlice(
+ this.elements.filter((i) => s.bind(o)(i.value, i.key, i))
+ );
+ }
+ reject(s, o) {
+ return this.filter(a(s.bind(o)));
+ }
+ forEach(s, o) {
+ return this.elements.forEach((i, a) => {
+ s.bind(o)(i.value, i.key, i, a);
+ });
+ }
+ keys() {
+ return this.map((s, o) => o.toValue());
+ }
+ values() {
+ return this.map((s) => s.toValue());
+ }
+ }
+ s.exports = ObjectSlice;
+ },
+ 11042: (s, o, i) => {
+ 'use strict';
+ var a = i(85582),
+ u = i(1907),
+ _ = i(24443),
+ w = i(87170),
+ x = i(36624),
+ C = u([].concat);
+ s.exports =
+ a('Reflect', 'ownKeys') ||
+ function ownKeys(s) {
+ var o = _.f(x(s)),
+ i = w.f;
+ return i ? C(o, i(s)) : o;
+ };
+ },
+ 11091: (s, o, i) => {
+ 'use strict';
+ var a = i(45951),
+ u = i(76024),
+ _ = i(92361),
+ w = i(62250),
+ x = i(13846).f,
+ C = i(7463),
+ j = i(92046),
+ L = i(28311),
+ B = i(61626),
+ $ = i(49724);
+ i(36128);
+ var wrapConstructor = function (s) {
+ var Wrapper = function (o, i, a) {
+ if (this instanceof Wrapper) {
+ switch (arguments.length) {
+ case 0:
+ return new s();
+ case 1:
+ return new s(o);
+ case 2:
+ return new s(o, i);
+ }
+ return new s(o, i, a);
+ }
+ return u(s, this, arguments);
+ };
+ return (Wrapper.prototype = s.prototype), Wrapper;
+ };
+ s.exports = function (s, o) {
+ var i,
+ u,
+ V,
+ U,
+ z,
+ Y,
+ Z,
+ ee,
+ ie,
+ ae = s.target,
+ ce = s.global,
+ le = s.stat,
+ pe = s.proto,
+ de = ce ? a : le ? a[ae] : a[ae] && a[ae].prototype,
+ fe = ce ? j : j[ae] || B(j, ae, {})[ae],
+ ye = fe.prototype;
+ for (U in o)
+ (u =
+ !(i = C(ce ? U : ae + (le ? '.' : '#') + U, s.forced)) &&
+ de &&
+ $(de, U)),
+ (Y = fe[U]),
+ u &&
+ (Z = s.dontCallGetSet ? (ie = x(de, U)) && ie.value : de[U]),
+ (z = u && Z ? Z : o[U]),
+ (i || pe || typeof Y != typeof z) &&
+ ((ee =
+ s.bind && u
+ ? L(z, a)
+ : s.wrap && u
+ ? wrapConstructor(z)
+ : pe && w(z)
+ ? _(z)
+ : z),
+ (s.sham || (z && z.sham) || (Y && Y.sham)) &&
+ B(ee, 'sham', !0),
+ B(fe, U, ee),
+ pe &&
+ ($(j, (V = ae + 'Prototype')) || B(j, V, {}),
+ B(j[V], U, z),
+ s.real && ye && (i || !ye[U]) && B(ye, U, z)));
+ };
+ },
+ 11287: (s) => {
+ s.exports = function getHolder(s) {
+ return s.placeholder;
+ };
+ },
+ 11331: (s, o, i) => {
+ var a = i(72552),
+ u = i(28879),
+ _ = i(40346),
+ w = Function.prototype,
+ x = Object.prototype,
+ C = w.toString,
+ j = x.hasOwnProperty,
+ L = C.call(Object);
+ s.exports = function isPlainObject(s) {
+ if (!_(s) || '[object Object]' != a(s)) return !1;
+ var o = u(s);
+ if (null === o) return !0;
+ var i = j.call(o, 'constructor') && o.constructor;
+ return 'function' == typeof i && i instanceof i && C.call(i) == L;
+ };
+ },
+ 11470: (s, o, i) => {
+ 'use strict';
+ var a = i(1907),
+ u = i(65482),
+ _ = i(90160),
+ w = i(74239),
+ x = a(''.charAt),
+ C = a(''.charCodeAt),
+ j = a(''.slice),
+ createMethod = function (s) {
+ return function (o, i) {
+ var a,
+ L,
+ B = _(w(o)),
+ $ = u(i),
+ V = B.length;
+ return $ < 0 || $ >= V
+ ? s
+ ? ''
+ : void 0
+ : (a = C(B, $)) < 55296 ||
+ a > 56319 ||
+ $ + 1 === V ||
+ (L = C(B, $ + 1)) < 56320 ||
+ L > 57343
+ ? s
+ ? x(B, $)
+ : a
+ : s
+ ? j(B, $, $ + 2)
+ : L - 56320 + ((a - 55296) << 10) + 65536;
+ };
+ };
+ s.exports = { codeAt: createMethod(!1), charAt: createMethod(!0) };
+ },
+ 11842: (s, o, i) => {
+ var a = i(82819),
+ u = i(9325);
+ s.exports = function createBind(s, o, i) {
+ var _ = 1 & o,
+ w = a(s);
+ return function wrapper() {
+ return (
+ this && this !== u && this instanceof wrapper ? w : s
+ ).apply(_ ? i : this, arguments);
+ };
+ };
+ },
+ 12242: (s, o, i) => {
+ const a = i(10316);
+ s.exports = class BooleanElement extends a {
+ constructor(s, o, i) {
+ super(s, o, i), (this.element = 'boolean');
+ }
+ primitive() {
+ return 'boolean';
+ }
+ };
+ },
+ 12507: (s, o, i) => {
+ var a = i(28754),
+ u = i(49698),
+ _ = i(63912),
+ w = i(13222);
+ s.exports = function createCaseFirst(s) {
+ return function (o) {
+ o = w(o);
+ var i = u(o) ? _(o) : void 0,
+ x = i ? i[0] : o.charAt(0),
+ C = i ? a(i, 1).join('') : o.slice(1);
+ return x[s]() + C;
+ };
+ };
+ },
+ 12560: (s, o, i) => {
+ 'use strict';
+ i(99363);
+ var a = i(19287),
+ u = i(45951),
+ _ = i(14840),
+ w = i(93742);
+ for (var x in a) _(u[x], x), (w[x] = w.Array);
+ },
+ 12651: (s, o, i) => {
+ var a = i(74218);
+ s.exports = function getMapData(s, o) {
+ var i = s.__data__;
+ return a(o) ? i['string' == typeof o ? 'string' : 'hash'] : i.map;
+ };
+ },
+ 12749: (s, o, i) => {
+ var a = i(81042),
+ u = Object.prototype.hasOwnProperty;
+ s.exports = function hashHas(s) {
+ var o = this.__data__;
+ return a ? void 0 !== o[s] : u.call(o, s);
+ };
+ },
+ 13222: (s, o, i) => {
+ var a = i(77556);
+ s.exports = function toString(s) {
+ return null == s ? '' : a(s);
+ };
+ },
+ 13846: (s, o, i) => {
+ 'use strict';
+ var a = i(39447),
+ u = i(13930),
+ _ = i(22574),
+ w = i(75817),
+ x = i(4993),
+ C = i(70470),
+ j = i(49724),
+ L = i(73648),
+ B = Object.getOwnPropertyDescriptor;
+ o.f = a
+ ? B
+ : function getOwnPropertyDescriptor(s, o) {
+ if (((s = x(s)), (o = C(o)), L))
+ try {
+ return B(s, o);
+ } catch (s) {}
+ if (j(s, o)) return w(!u(_.f, s, o), s[o]);
+ };
+ },
+ 13930: (s, o, i) => {
+ 'use strict';
+ var a = i(41505),
+ u = Function.prototype.call;
+ s.exports = a
+ ? u.bind(u)
+ : function () {
+ return u.apply(u, arguments);
+ };
+ },
+ 14248: (s) => {
+ s.exports = function arraySome(s, o) {
+ for (var i = -1, a = null == s ? 0 : s.length; ++i < a; )
+ if (o(s[i], i, s)) return !0;
+ return !1;
+ };
+ },
+ 14528: (s) => {
+ s.exports = function arrayPush(s, o) {
+ for (var i = -1, a = o.length, u = s.length; ++i < a; )
+ s[u + i] = o[i];
+ return s;
+ };
+ },
+ 14540: (s, o, i) => {
+ const a = i(10316);
+ s.exports = class RefElement extends a {
+ constructor(s, o, i) {
+ super(s || [], o, i),
+ (this.element = 'ref'),
+ this.path || (this.path = 'element');
+ }
+ get path() {
+ return this.attributes.get('path');
+ }
+ set path(s) {
+ this.attributes.set('path', s);
+ }
+ };
+ },
+ 14744: (s) => {
+ 'use strict';
+ var o = function isMergeableObject(s) {
+ return (
+ (function isNonNullObject(s) {
+ return !!s && 'object' == typeof s;
+ })(s) &&
+ !(function isSpecial(s) {
+ var o = Object.prototype.toString.call(s);
+ return (
+ '[object RegExp]' === o ||
+ '[object Date]' === o ||
+ (function isReactElement(s) {
+ return s.$$typeof === i;
+ })(s)
+ );
+ })(s)
+ );
+ };
+ var i =
+ 'function' == typeof Symbol && Symbol.for
+ ? Symbol.for('react.element')
+ : 60103;
+ function cloneUnlessOtherwiseSpecified(s, o) {
+ return !1 !== o.clone && o.isMergeableObject(s)
+ ? deepmerge(
+ (function emptyTarget(s) {
+ return Array.isArray(s) ? [] : {};
+ })(s),
+ s,
+ o
+ )
+ : s;
+ }
+ function defaultArrayMerge(s, o, i) {
+ return s.concat(o).map(function (s) {
+ return cloneUnlessOtherwiseSpecified(s, i);
+ });
+ }
+ function getKeys(s) {
+ return Object.keys(s).concat(
+ (function getEnumerableOwnPropertySymbols(s) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(s).filter(function (o) {
+ return Object.propertyIsEnumerable.call(s, o);
+ })
+ : [];
+ })(s)
+ );
+ }
+ function propertyIsOnObject(s, o) {
+ try {
+ return o in s;
+ } catch (s) {
+ return !1;
+ }
+ }
+ function mergeObject(s, o, i) {
+ var a = {};
+ return (
+ i.isMergeableObject(s) &&
+ getKeys(s).forEach(function (o) {
+ a[o] = cloneUnlessOtherwiseSpecified(s[o], i);
+ }),
+ getKeys(o).forEach(function (u) {
+ (function propertyIsUnsafe(s, o) {
+ return (
+ propertyIsOnObject(s, o) &&
+ !(
+ Object.hasOwnProperty.call(s, o) &&
+ Object.propertyIsEnumerable.call(s, o)
+ )
+ );
+ })(s, u) ||
+ (propertyIsOnObject(s, u) && i.isMergeableObject(o[u])
+ ? (a[u] = (function getMergeFunction(s, o) {
+ if (!o.customMerge) return deepmerge;
+ var i = o.customMerge(s);
+ return 'function' == typeof i ? i : deepmerge;
+ })(u, i)(s[u], o[u], i))
+ : (a[u] = cloneUnlessOtherwiseSpecified(o[u], i)));
+ }),
+ a
+ );
+ }
+ function deepmerge(s, i, a) {
+ ((a = a || {}).arrayMerge = a.arrayMerge || defaultArrayMerge),
+ (a.isMergeableObject = a.isMergeableObject || o),
+ (a.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified);
+ var u = Array.isArray(i);
+ return u === Array.isArray(s)
+ ? u
+ ? a.arrayMerge(s, i, a)
+ : mergeObject(s, i, a)
+ : cloneUnlessOtherwiseSpecified(i, a);
+ }
+ deepmerge.all = function deepmergeAll(s, o) {
+ if (!Array.isArray(s))
+ throw new Error('first argument should be an array');
+ return s.reduce(function (s, i) {
+ return deepmerge(s, i, o);
+ }, {});
+ };
+ var a = deepmerge;
+ s.exports = a;
+ },
+ 14792: (s, o, i) => {
+ var a = i(13222),
+ u = i(55808);
+ s.exports = function capitalize(s) {
+ return u(a(s).toLowerCase());
+ };
+ },
+ 14840: (s, o, i) => {
+ 'use strict';
+ var a = i(52623),
+ u = i(74284).f,
+ _ = i(61626),
+ w = i(49724),
+ x = i(54878),
+ C = i(76264)('toStringTag');
+ s.exports = function (s, o, i, j) {
+ var L = i ? s : s && s.prototype;
+ L &&
+ (w(L, C) || u(L, C, { configurable: !0, value: o }),
+ j && !a && _(L, 'toString', x));
+ };
+ },
+ 14974: (s) => {
+ s.exports = function safeGet(s, o) {
+ if (
+ ('constructor' !== o || 'function' != typeof s[o]) &&
+ '__proto__' != o
+ )
+ return s[o];
+ };
+ },
+ 15287: (s, o) => {
+ 'use strict';
+ var i = Symbol.for('react.element'),
+ a = Symbol.for('react.portal'),
+ u = Symbol.for('react.fragment'),
+ _ = Symbol.for('react.strict_mode'),
+ w = Symbol.for('react.profiler'),
+ x = Symbol.for('react.provider'),
+ C = Symbol.for('react.context'),
+ j = Symbol.for('react.forward_ref'),
+ L = Symbol.for('react.suspense'),
+ B = Symbol.for('react.memo'),
+ $ = Symbol.for('react.lazy'),
+ V = Symbol.iterator;
+ var U = {
+ isMounted: function () {
+ return !1;
+ },
+ enqueueForceUpdate: function () {},
+ enqueueReplaceState: function () {},
+ enqueueSetState: function () {}
+ },
+ z = Object.assign,
+ Y = {};
+ function E(s, o, i) {
+ (this.props = s),
+ (this.context = o),
+ (this.refs = Y),
+ (this.updater = i || U);
+ }
+ function F() {}
+ function G(s, o, i) {
+ (this.props = s),
+ (this.context = o),
+ (this.refs = Y),
+ (this.updater = i || U);
+ }
+ (E.prototype.isReactComponent = {}),
+ (E.prototype.setState = function (s, o) {
+ if ('object' != typeof s && 'function' != typeof s && null != s)
+ throw Error(
+ 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.'
+ );
+ this.updater.enqueueSetState(this, s, o, 'setState');
+ }),
+ (E.prototype.forceUpdate = function (s) {
+ this.updater.enqueueForceUpdate(this, s, 'forceUpdate');
+ }),
+ (F.prototype = E.prototype);
+ var Z = (G.prototype = new F());
+ (Z.constructor = G), z(Z, E.prototype), (Z.isPureReactComponent = !0);
+ var ee = Array.isArray,
+ ie = Object.prototype.hasOwnProperty,
+ ae = { current: null },
+ ce = { key: !0, ref: !0, __self: !0, __source: !0 };
+ function M(s, o, a) {
+ var u,
+ _ = {},
+ w = null,
+ x = null;
+ if (null != o)
+ for (u in (void 0 !== o.ref && (x = o.ref),
+ void 0 !== o.key && (w = '' + o.key),
+ o))
+ ie.call(o, u) && !ce.hasOwnProperty(u) && (_[u] = o[u]);
+ var C = arguments.length - 2;
+ if (1 === C) _.children = a;
+ else if (1 < C) {
+ for (var j = Array(C), L = 0; L < C; L++) j[L] = arguments[L + 2];
+ _.children = j;
+ }
+ if (s && s.defaultProps)
+ for (u in (C = s.defaultProps)) void 0 === _[u] && (_[u] = C[u]);
+ return {
+ $$typeof: i,
+ type: s,
+ key: w,
+ ref: x,
+ props: _,
+ _owner: ae.current
+ };
+ }
+ function O(s) {
+ return 'object' == typeof s && null !== s && s.$$typeof === i;
+ }
+ var le = /\/+/g;
+ function Q(s, o) {
+ return 'object' == typeof s && null !== s && null != s.key
+ ? (function escape(s) {
+ var o = { '=': '=0', ':': '=2' };
+ return (
+ '$' +
+ s.replace(/[=:]/g, function (s) {
+ return o[s];
+ })
+ );
+ })('' + s.key)
+ : o.toString(36);
+ }
+ function R(s, o, u, _, w) {
+ var x = typeof s;
+ ('undefined' !== x && 'boolean' !== x) || (s = null);
+ var C = !1;
+ if (null === s) C = !0;
+ else
+ switch (x) {
+ case 'string':
+ case 'number':
+ C = !0;
+ break;
+ case 'object':
+ switch (s.$$typeof) {
+ case i:
+ case a:
+ C = !0;
+ }
+ }
+ if (C)
+ return (
+ (w = w((C = s))),
+ (s = '' === _ ? '.' + Q(C, 0) : _),
+ ee(w)
+ ? ((u = ''),
+ null != s && (u = s.replace(le, '$&/') + '/'),
+ R(w, o, u, '', function (s) {
+ return s;
+ }))
+ : null != w &&
+ (O(w) &&
+ (w = (function N(s, o) {
+ return {
+ $$typeof: i,
+ type: s.type,
+ key: o,
+ ref: s.ref,
+ props: s.props,
+ _owner: s._owner
+ };
+ })(
+ w,
+ u +
+ (!w.key || (C && C.key === w.key)
+ ? ''
+ : ('' + w.key).replace(le, '$&/') + '/') +
+ s
+ )),
+ o.push(w)),
+ 1
+ );
+ if (((C = 0), (_ = '' === _ ? '.' : _ + ':'), ee(s)))
+ for (var j = 0; j < s.length; j++) {
+ var L = _ + Q((x = s[j]), j);
+ C += R(x, o, u, L, w);
+ }
+ else if (
+ ((L = (function A(s) {
+ return null === s || 'object' != typeof s
+ ? null
+ : 'function' == typeof (s = (V && s[V]) || s['@@iterator'])
+ ? s
+ : null;
+ })(s)),
+ 'function' == typeof L)
+ )
+ for (s = L.call(s), j = 0; !(x = s.next()).done; )
+ C += R((x = x.value), o, u, (L = _ + Q(x, j++)), w);
+ else if ('object' === x)
+ throw (
+ ((o = String(s)),
+ Error(
+ 'Objects are not valid as a React child (found: ' +
+ ('[object Object]' === o
+ ? 'object with keys {' + Object.keys(s).join(', ') + '}'
+ : o) +
+ '). If you meant to render a collection of children, use an array instead.'
+ ))
+ );
+ return C;
+ }
+ function S(s, o, i) {
+ if (null == s) return s;
+ var a = [],
+ u = 0;
+ return (
+ R(s, a, '', '', function (s) {
+ return o.call(i, s, u++);
+ }),
+ a
+ );
+ }
+ function T(s) {
+ if (-1 === s._status) {
+ var o = s._result;
+ (o = o()).then(
+ function (o) {
+ (0 !== s._status && -1 !== s._status) ||
+ ((s._status = 1), (s._result = o));
+ },
+ function (o) {
+ (0 !== s._status && -1 !== s._status) ||
+ ((s._status = 2), (s._result = o));
+ }
+ ),
+ -1 === s._status && ((s._status = 0), (s._result = o));
+ }
+ if (1 === s._status) return s._result.default;
+ throw s._result;
+ }
+ var pe = { current: null },
+ de = { transition: null },
+ fe = {
+ ReactCurrentDispatcher: pe,
+ ReactCurrentBatchConfig: de,
+ ReactCurrentOwner: ae
+ };
+ function X() {
+ throw Error(
+ 'act(...) is not supported in production builds of React.'
+ );
+ }
+ (o.Children = {
+ map: S,
+ forEach: function (s, o, i) {
+ S(
+ s,
+ function () {
+ o.apply(this, arguments);
+ },
+ i
+ );
+ },
+ count: function (s) {
+ var o = 0;
+ return (
+ S(s, function () {
+ o++;
+ }),
+ o
+ );
+ },
+ toArray: function (s) {
+ return (
+ S(s, function (s) {
+ return s;
+ }) || []
+ );
+ },
+ only: function (s) {
+ if (!O(s))
+ throw Error(
+ 'React.Children.only expected to receive a single React element child.'
+ );
+ return s;
+ }
+ }),
+ (o.Component = E),
+ (o.Fragment = u),
+ (o.Profiler = w),
+ (o.PureComponent = G),
+ (o.StrictMode = _),
+ (o.Suspense = L),
+ (o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fe),
+ (o.act = X),
+ (o.cloneElement = function (s, o, a) {
+ if (null == s)
+ throw Error(
+ 'React.cloneElement(...): The argument must be a React element, but you passed ' +
+ s +
+ '.'
+ );
+ var u = z({}, s.props),
+ _ = s.key,
+ w = s.ref,
+ x = s._owner;
+ if (null != o) {
+ if (
+ (void 0 !== o.ref && ((w = o.ref), (x = ae.current)),
+ void 0 !== o.key && (_ = '' + o.key),
+ s.type && s.type.defaultProps)
+ )
+ var C = s.type.defaultProps;
+ for (j in o)
+ ie.call(o, j) &&
+ !ce.hasOwnProperty(j) &&
+ (u[j] = void 0 === o[j] && void 0 !== C ? C[j] : o[j]);
+ }
+ var j = arguments.length - 2;
+ if (1 === j) u.children = a;
+ else if (1 < j) {
+ C = Array(j);
+ for (var L = 0; L < j; L++) C[L] = arguments[L + 2];
+ u.children = C;
+ }
+ return {
+ $$typeof: i,
+ type: s.type,
+ key: _,
+ ref: w,
+ props: u,
+ _owner: x
+ };
+ }),
+ (o.createContext = function (s) {
+ return (
+ ((s = {
+ $$typeof: C,
+ _currentValue: s,
+ _currentValue2: s,
+ _threadCount: 0,
+ Provider: null,
+ Consumer: null,
+ _defaultValue: null,
+ _globalName: null
+ }).Provider = { $$typeof: x, _context: s }),
+ (s.Consumer = s)
+ );
+ }),
+ (o.createElement = M),
+ (o.createFactory = function (s) {
+ var o = M.bind(null, s);
+ return (o.type = s), o;
+ }),
+ (o.createRef = function () {
+ return { current: null };
+ }),
+ (o.forwardRef = function (s) {
+ return { $$typeof: j, render: s };
+ }),
+ (o.isValidElement = O),
+ (o.lazy = function (s) {
+ return {
+ $$typeof: $,
+ _payload: { _status: -1, _result: s },
+ _init: T
+ };
+ }),
+ (o.memo = function (s, o) {
+ return { $$typeof: B, type: s, compare: void 0 === o ? null : o };
+ }),
+ (o.startTransition = function (s) {
+ var o = de.transition;
+ de.transition = {};
+ try {
+ s();
+ } finally {
+ de.transition = o;
+ }
+ }),
+ (o.unstable_act = X),
+ (o.useCallback = function (s, o) {
+ return pe.current.useCallback(s, o);
+ }),
+ (o.useContext = function (s) {
+ return pe.current.useContext(s);
+ }),
+ (o.useDebugValue = function () {}),
+ (o.useDeferredValue = function (s) {
+ return pe.current.useDeferredValue(s);
+ }),
+ (o.useEffect = function (s, o) {
+ return pe.current.useEffect(s, o);
+ }),
+ (o.useId = function () {
+ return pe.current.useId();
+ }),
+ (o.useImperativeHandle = function (s, o, i) {
+ return pe.current.useImperativeHandle(s, o, i);
+ }),
+ (o.useInsertionEffect = function (s, o) {
+ return pe.current.useInsertionEffect(s, o);
+ }),
+ (o.useLayoutEffect = function (s, o) {
+ return pe.current.useLayoutEffect(s, o);
+ }),
+ (o.useMemo = function (s, o) {
+ return pe.current.useMemo(s, o);
+ }),
+ (o.useReducer = function (s, o, i) {
+ return pe.current.useReducer(s, o, i);
+ }),
+ (o.useRef = function (s) {
+ return pe.current.useRef(s);
+ }),
+ (o.useState = function (s) {
+ return pe.current.useState(s);
+ }),
+ (o.useSyncExternalStore = function (s, o, i) {
+ return pe.current.useSyncExternalStore(s, o, i);
+ }),
+ (o.useTransition = function () {
+ return pe.current.useTransition();
+ }),
+ (o.version = '18.3.1');
+ },
+ 15325: (s, o, i) => {
+ var a = i(96131);
+ s.exports = function arrayIncludes(s, o) {
+ return !!(null == s ? 0 : s.length) && a(s, o, 0) > -1;
+ };
+ },
+ 15340: () => {},
+ 15389: (s, o, i) => {
+ var a = i(93663),
+ u = i(87978),
+ _ = i(83488),
+ w = i(56449),
+ x = i(50583);
+ s.exports = function baseIteratee(s) {
+ return 'function' == typeof s
+ ? s
+ : null == s
+ ? _
+ : 'object' == typeof s
+ ? w(s)
+ ? u(s[0], s[1])
+ : a(s)
+ : x(s);
+ };
+ },
+ 15972: (s, o, i) => {
+ 'use strict';
+ var a = i(49724),
+ u = i(62250),
+ _ = i(39298),
+ w = i(92522),
+ x = i(57382),
+ C = w('IE_PROTO'),
+ j = Object,
+ L = j.prototype;
+ s.exports = x
+ ? j.getPrototypeOf
+ : function (s) {
+ var o = _(s);
+ if (a(o, C)) return o[C];
+ var i = o.constructor;
+ return u(i) && o instanceof i
+ ? i.prototype
+ : o instanceof j
+ ? L
+ : null;
+ };
+ },
+ 16038: (s, o, i) => {
+ var a = i(5861),
+ u = i(40346);
+ s.exports = function baseIsSet(s) {
+ return u(s) && '[object Set]' == a(s);
+ };
+ },
+ 16426: (s) => {
+ s.exports = function () {
+ var s = document.getSelection();
+ if (!s.rangeCount) return function () {};
+ for (
+ var o = document.activeElement, i = [], a = 0;
+ a < s.rangeCount;
+ a++
+ )
+ i.push(s.getRangeAt(a));
+ switch (o.tagName.toUpperCase()) {
+ case 'INPUT':
+ case 'TEXTAREA':
+ o.blur();
+ break;
+ default:
+ o = null;
+ }
+ return (
+ s.removeAllRanges(),
+ function () {
+ 'Caret' === s.type && s.removeAllRanges(),
+ s.rangeCount ||
+ i.forEach(function (o) {
+ s.addRange(o);
+ }),
+ o && o.focus();
+ }
+ );
+ };
+ },
+ 16547: (s, o, i) => {
+ var a = i(43360),
+ u = i(75288),
+ _ = Object.prototype.hasOwnProperty;
+ s.exports = function assignValue(s, o, i) {
+ var w = s[o];
+ (_.call(s, o) && u(w, i) && (void 0 !== i || o in s)) || a(s, o, i);
+ };
+ },
+ 16708: (s, o, i) => {
+ 'use strict';
+ var a,
+ u = i(65606);
+ function CorkedRequest(s) {
+ var o = this;
+ (this.next = null),
+ (this.entry = null),
+ (this.finish = function () {
+ !(function onCorkedFinish(s, o, i) {
+ var a = s.entry;
+ s.entry = null;
+ for (; a; ) {
+ var u = a.callback;
+ o.pendingcb--, u(i), (a = a.next);
+ }
+ o.corkedRequestsFree.next = s;
+ })(o, s);
+ });
+ }
+ (s.exports = Writable), (Writable.WritableState = WritableState);
+ var _ = { deprecate: i(94643) },
+ w = i(40345),
+ x = i(48287).Buffer,
+ C =
+ (void 0 !== i.g
+ ? i.g
+ : 'undefined' != typeof window
+ ? window
+ : 'undefined' != typeof self
+ ? self
+ : {}
+ ).Uint8Array || function () {};
+ var j,
+ L = i(75896),
+ B = i(65291).getHighWaterMark,
+ $ = i(86048).F,
+ V = $.ERR_INVALID_ARG_TYPE,
+ U = $.ERR_METHOD_NOT_IMPLEMENTED,
+ z = $.ERR_MULTIPLE_CALLBACK,
+ Y = $.ERR_STREAM_CANNOT_PIPE,
+ Z = $.ERR_STREAM_DESTROYED,
+ ee = $.ERR_STREAM_NULL_VALUES,
+ ie = $.ERR_STREAM_WRITE_AFTER_END,
+ ae = $.ERR_UNKNOWN_ENCODING,
+ ce = L.errorOrDestroy;
+ function nop() {}
+ function WritableState(s, o, _) {
+ (a = a || i(25382)),
+ (s = s || {}),
+ 'boolean' != typeof _ && (_ = o instanceof a),
+ (this.objectMode = !!s.objectMode),
+ _ &&
+ (this.objectMode = this.objectMode || !!s.writableObjectMode),
+ (this.highWaterMark = B(this, s, 'writableHighWaterMark', _)),
+ (this.finalCalled = !1),
+ (this.needDrain = !1),
+ (this.ending = !1),
+ (this.ended = !1),
+ (this.finished = !1),
+ (this.destroyed = !1);
+ var w = !1 === s.decodeStrings;
+ (this.decodeStrings = !w),
+ (this.defaultEncoding = s.defaultEncoding || 'utf8'),
+ (this.length = 0),
+ (this.writing = !1),
+ (this.corked = 0),
+ (this.sync = !0),
+ (this.bufferProcessing = !1),
+ (this.onwrite = function (s) {
+ !(function onwrite(s, o) {
+ var i = s._writableState,
+ a = i.sync,
+ _ = i.writecb;
+ if ('function' != typeof _) throw new z();
+ if (
+ ((function onwriteStateUpdate(s) {
+ (s.writing = !1),
+ (s.writecb = null),
+ (s.length -= s.writelen),
+ (s.writelen = 0);
+ })(i),
+ o)
+ )
+ !(function onwriteError(s, o, i, a, _) {
+ --o.pendingcb,
+ i
+ ? (u.nextTick(_, a),
+ u.nextTick(finishMaybe, s, o),
+ (s._writableState.errorEmitted = !0),
+ ce(s, a))
+ : (_(a),
+ (s._writableState.errorEmitted = !0),
+ ce(s, a),
+ finishMaybe(s, o));
+ })(s, i, a, o, _);
+ else {
+ var w = needFinish(i) || s.destroyed;
+ w ||
+ i.corked ||
+ i.bufferProcessing ||
+ !i.bufferedRequest ||
+ clearBuffer(s, i),
+ a
+ ? u.nextTick(afterWrite, s, i, w, _)
+ : afterWrite(s, i, w, _);
+ }
+ })(o, s);
+ }),
+ (this.writecb = null),
+ (this.writelen = 0),
+ (this.bufferedRequest = null),
+ (this.lastBufferedRequest = null),
+ (this.pendingcb = 0),
+ (this.prefinished = !1),
+ (this.errorEmitted = !1),
+ (this.emitClose = !1 !== s.emitClose),
+ (this.autoDestroy = !!s.autoDestroy),
+ (this.bufferedRequestCount = 0),
+ (this.corkedRequestsFree = new CorkedRequest(this));
+ }
+ function Writable(s) {
+ var o = this instanceof (a = a || i(25382));
+ if (!o && !j.call(Writable, this)) return new Writable(s);
+ (this._writableState = new WritableState(s, this, o)),
+ (this.writable = !0),
+ s &&
+ ('function' == typeof s.write && (this._write = s.write),
+ 'function' == typeof s.writev && (this._writev = s.writev),
+ 'function' == typeof s.destroy && (this._destroy = s.destroy),
+ 'function' == typeof s.final && (this._final = s.final)),
+ w.call(this);
+ }
+ function doWrite(s, o, i, a, u, _, w) {
+ (o.writelen = a),
+ (o.writecb = w),
+ (o.writing = !0),
+ (o.sync = !0),
+ o.destroyed
+ ? o.onwrite(new Z('write'))
+ : i
+ ? s._writev(u, o.onwrite)
+ : s._write(u, _, o.onwrite),
+ (o.sync = !1);
+ }
+ function afterWrite(s, o, i, a) {
+ i ||
+ (function onwriteDrain(s, o) {
+ 0 === o.length &&
+ o.needDrain &&
+ ((o.needDrain = !1), s.emit('drain'));
+ })(s, o),
+ o.pendingcb--,
+ a(),
+ finishMaybe(s, o);
+ }
+ function clearBuffer(s, o) {
+ o.bufferProcessing = !0;
+ var i = o.bufferedRequest;
+ if (s._writev && i && i.next) {
+ var a = o.bufferedRequestCount,
+ u = new Array(a),
+ _ = o.corkedRequestsFree;
+ _.entry = i;
+ for (var w = 0, x = !0; i; )
+ (u[w] = i), i.isBuf || (x = !1), (i = i.next), (w += 1);
+ (u.allBuffers = x),
+ doWrite(s, o, !0, o.length, u, '', _.finish),
+ o.pendingcb++,
+ (o.lastBufferedRequest = null),
+ _.next
+ ? ((o.corkedRequestsFree = _.next), (_.next = null))
+ : (o.corkedRequestsFree = new CorkedRequest(o)),
+ (o.bufferedRequestCount = 0);
+ } else {
+ for (; i; ) {
+ var C = i.chunk,
+ j = i.encoding,
+ L = i.callback;
+ if (
+ (doWrite(s, o, !1, o.objectMode ? 1 : C.length, C, j, L),
+ (i = i.next),
+ o.bufferedRequestCount--,
+ o.writing)
+ )
+ break;
+ }
+ null === i && (o.lastBufferedRequest = null);
+ }
+ (o.bufferedRequest = i), (o.bufferProcessing = !1);
+ }
+ function needFinish(s) {
+ return (
+ s.ending &&
+ 0 === s.length &&
+ null === s.bufferedRequest &&
+ !s.finished &&
+ !s.writing
+ );
+ }
+ function callFinal(s, o) {
+ s._final(function (i) {
+ o.pendingcb--,
+ i && ce(s, i),
+ (o.prefinished = !0),
+ s.emit('prefinish'),
+ finishMaybe(s, o);
+ });
+ }
+ function finishMaybe(s, o) {
+ var i = needFinish(o);
+ if (
+ i &&
+ ((function prefinish(s, o) {
+ o.prefinished ||
+ o.finalCalled ||
+ ('function' != typeof s._final || o.destroyed
+ ? ((o.prefinished = !0), s.emit('prefinish'))
+ : (o.pendingcb++,
+ (o.finalCalled = !0),
+ u.nextTick(callFinal, s, o)));
+ })(s, o),
+ 0 === o.pendingcb &&
+ ((o.finished = !0), s.emit('finish'), o.autoDestroy))
+ ) {
+ var a = s._readableState;
+ (!a || (a.autoDestroy && a.endEmitted)) && s.destroy();
+ }
+ return i;
+ }
+ i(56698)(Writable, w),
+ (WritableState.prototype.getBuffer = function getBuffer() {
+ for (var s = this.bufferedRequest, o = []; s; )
+ o.push(s), (s = s.next);
+ return o;
+ }),
+ (function () {
+ try {
+ Object.defineProperty(WritableState.prototype, 'buffer', {
+ get: _.deprecate(
+ function writableStateBufferGetter() {
+ return this.getBuffer();
+ },
+ '_writableState.buffer is deprecated. Use _writableState.getBuffer instead.',
+ 'DEP0003'
+ )
+ });
+ } catch (s) {}
+ })(),
+ 'function' == typeof Symbol &&
+ Symbol.hasInstance &&
+ 'function' == typeof Function.prototype[Symbol.hasInstance]
+ ? ((j = Function.prototype[Symbol.hasInstance]),
+ Object.defineProperty(Writable, Symbol.hasInstance, {
+ value: function value(s) {
+ return (
+ !!j.call(this, s) ||
+ (this === Writable &&
+ s &&
+ s._writableState instanceof WritableState)
+ );
+ }
+ }))
+ : (j = function realHasInstance(s) {
+ return s instanceof this;
+ }),
+ (Writable.prototype.pipe = function () {
+ ce(this, new Y());
+ }),
+ (Writable.prototype.write = function (s, o, i) {
+ var a = this._writableState,
+ _ = !1,
+ w =
+ !a.objectMode &&
+ (function _isUint8Array(s) {
+ return x.isBuffer(s) || s instanceof C;
+ })(s);
+ return (
+ w &&
+ !x.isBuffer(s) &&
+ (s = (function _uint8ArrayToBuffer(s) {
+ return x.from(s);
+ })(s)),
+ 'function' == typeof o && ((i = o), (o = null)),
+ w ? (o = 'buffer') : o || (o = a.defaultEncoding),
+ 'function' != typeof i && (i = nop),
+ a.ending
+ ? (function writeAfterEnd(s, o) {
+ var i = new ie();
+ ce(s, i), u.nextTick(o, i);
+ })(this, i)
+ : (w ||
+ (function validChunk(s, o, i, a) {
+ var _;
+ return (
+ null === i
+ ? (_ = new ee())
+ : 'string' == typeof i ||
+ o.objectMode ||
+ (_ = new V('chunk', ['string', 'Buffer'], i)),
+ !_ || (ce(s, _), u.nextTick(a, _), !1)
+ );
+ })(this, a, s, i)) &&
+ (a.pendingcb++,
+ (_ = (function writeOrBuffer(s, o, i, a, u, _) {
+ if (!i) {
+ var w = (function decodeChunk(s, o, i) {
+ s.objectMode ||
+ !1 === s.decodeStrings ||
+ 'string' != typeof o ||
+ (o = x.from(o, i));
+ return o;
+ })(o, a, u);
+ a !== w && ((i = !0), (u = 'buffer'), (a = w));
+ }
+ var C = o.objectMode ? 1 : a.length;
+ o.length += C;
+ var j = o.length < o.highWaterMark;
+ j || (o.needDrain = !0);
+ if (o.writing || o.corked) {
+ var L = o.lastBufferedRequest;
+ (o.lastBufferedRequest = {
+ chunk: a,
+ encoding: u,
+ isBuf: i,
+ callback: _,
+ next: null
+ }),
+ L
+ ? (L.next = o.lastBufferedRequest)
+ : (o.bufferedRequest = o.lastBufferedRequest),
+ (o.bufferedRequestCount += 1);
+ } else doWrite(s, o, !1, C, a, u, _);
+ return j;
+ })(this, a, w, s, o, i))),
+ _
+ );
+ }),
+ (Writable.prototype.cork = function () {
+ this._writableState.corked++;
+ }),
+ (Writable.prototype.uncork = function () {
+ var s = this._writableState;
+ s.corked &&
+ (s.corked--,
+ s.writing ||
+ s.corked ||
+ s.bufferProcessing ||
+ !s.bufferedRequest ||
+ clearBuffer(this, s));
+ }),
+ (Writable.prototype.setDefaultEncoding =
+ function setDefaultEncoding(s) {
+ if (
+ ('string' == typeof s && (s = s.toLowerCase()),
+ !(
+ [
+ 'hex',
+ 'utf8',
+ 'utf-8',
+ 'ascii',
+ 'binary',
+ 'base64',
+ 'ucs2',
+ 'ucs-2',
+ 'utf16le',
+ 'utf-16le',
+ 'raw'
+ ].indexOf((s + '').toLowerCase()) > -1
+ ))
+ )
+ throw new ae(s);
+ return (this._writableState.defaultEncoding = s), this;
+ }),
+ Object.defineProperty(Writable.prototype, 'writableBuffer', {
+ enumerable: !1,
+ get: function get() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+ }),
+ Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
+ enumerable: !1,
+ get: function get() {
+ return this._writableState.highWaterMark;
+ }
+ }),
+ (Writable.prototype._write = function (s, o, i) {
+ i(new U('_write()'));
+ }),
+ (Writable.prototype._writev = null),
+ (Writable.prototype.end = function (s, o, i) {
+ var a = this._writableState;
+ return (
+ 'function' == typeof s
+ ? ((i = s), (s = null), (o = null))
+ : 'function' == typeof o && ((i = o), (o = null)),
+ null != s && this.write(s, o),
+ a.corked && ((a.corked = 1), this.uncork()),
+ a.ending ||
+ (function endWritable(s, o, i) {
+ (o.ending = !0),
+ finishMaybe(s, o),
+ i && (o.finished ? u.nextTick(i) : s.once('finish', i));
+ (o.ended = !0), (s.writable = !1);
+ })(this, a, i),
+ this
+ );
+ }),
+ Object.defineProperty(Writable.prototype, 'writableLength', {
+ enumerable: !1,
+ get: function get() {
+ return this._writableState.length;
+ }
+ }),
+ Object.defineProperty(Writable.prototype, 'destroyed', {
+ enumerable: !1,
+ get: function get() {
+ return (
+ void 0 !== this._writableState &&
+ this._writableState.destroyed
+ );
+ },
+ set: function set(s) {
+ this._writableState && (this._writableState.destroyed = s);
+ }
+ }),
+ (Writable.prototype.destroy = L.destroy),
+ (Writable.prototype._undestroy = L.undestroy),
+ (Writable.prototype._destroy = function (s, o) {
+ o(s);
+ });
+ },
+ 16750: (s, o, i) => {
+ 'use strict';
+ o.J = void 0;
+ var a = i(69119);
+ function decodeURI(s) {
+ try {
+ return decodeURIComponent(s);
+ } catch (o) {
+ return s;
+ }
+ }
+ o.J = function sanitizeUrl(s) {
+ if (!s) return a.BLANK_URL;
+ var o,
+ i,
+ u = decodeURI(s);
+ do {
+ o =
+ (u = decodeURI(
+ (u = ((i = u),
+ i
+ .replace(a.ctrlCharactersRegex, '')
+ .replace(a.htmlEntitiesRegex, function (s, o) {
+ return String.fromCharCode(o);
+ }))
+ .replace(a.htmlCtrlEntityRegex, '')
+ .replace(a.ctrlCharactersRegex, '')
+ .replace(a.whitespaceEscapeCharsRegex, '')
+ .trim())
+ )).match(a.ctrlCharactersRegex) ||
+ u.match(a.htmlEntitiesRegex) ||
+ u.match(a.htmlCtrlEntityRegex) ||
+ u.match(a.whitespaceEscapeCharsRegex);
+ } while (o && o.length > 0);
+ var _ = u;
+ if (!_) return a.BLANK_URL;
+ if (
+ (function isRelativeUrlWithoutProtocol(s) {
+ return a.relativeFirstCharacters.indexOf(s[0]) > -1;
+ })(_)
+ )
+ return _;
+ var w = _.match(a.urlSchemeRegex);
+ if (!w) return _;
+ var x = w[0];
+ return a.invalidProtocolRegex.test(x) ? a.BLANK_URL : _;
+ };
+ },
+ 16946: (s, o, i) => {
+ 'use strict';
+ var a = i(1907),
+ u = i(98828),
+ _ = i(45807),
+ w = Object,
+ x = a(''.split);
+ s.exports = u(function () {
+ return !w('z').propertyIsEnumerable(0);
+ })
+ ? function (s) {
+ return 'String' === _(s) ? x(s, '') : w(s);
+ }
+ : w;
+ },
+ 16962: (s, o) => {
+ (o.aliasToReal = {
+ each: 'forEach',
+ eachRight: 'forEachRight',
+ entries: 'toPairs',
+ entriesIn: 'toPairsIn',
+ extend: 'assignIn',
+ extendAll: 'assignInAll',
+ extendAllWith: 'assignInAllWith',
+ extendWith: 'assignInWith',
+ first: 'head',
+ conforms: 'conformsTo',
+ matches: 'isMatch',
+ property: 'get',
+ __: 'placeholder',
+ F: 'stubFalse',
+ T: 'stubTrue',
+ all: 'every',
+ allPass: 'overEvery',
+ always: 'constant',
+ any: 'some',
+ anyPass: 'overSome',
+ apply: 'spread',
+ assoc: 'set',
+ assocPath: 'set',
+ complement: 'negate',
+ compose: 'flowRight',
+ contains: 'includes',
+ dissoc: 'unset',
+ dissocPath: 'unset',
+ dropLast: 'dropRight',
+ dropLastWhile: 'dropRightWhile',
+ equals: 'isEqual',
+ identical: 'eq',
+ indexBy: 'keyBy',
+ init: 'initial',
+ invertObj: 'invert',
+ juxt: 'over',
+ omitAll: 'omit',
+ nAry: 'ary',
+ path: 'get',
+ pathEq: 'matchesProperty',
+ pathOr: 'getOr',
+ paths: 'at',
+ pickAll: 'pick',
+ pipe: 'flow',
+ pluck: 'map',
+ prop: 'get',
+ propEq: 'matchesProperty',
+ propOr: 'getOr',
+ props: 'at',
+ symmetricDifference: 'xor',
+ symmetricDifferenceBy: 'xorBy',
+ symmetricDifferenceWith: 'xorWith',
+ takeLast: 'takeRight',
+ takeLastWhile: 'takeRightWhile',
+ unapply: 'rest',
+ unnest: 'flatten',
+ useWith: 'overArgs',
+ where: 'conformsTo',
+ whereEq: 'isMatch',
+ zipObj: 'zipObject'
+ }),
+ (o.aryMethod = {
+ 1: [
+ 'assignAll',
+ 'assignInAll',
+ 'attempt',
+ 'castArray',
+ 'ceil',
+ 'create',
+ 'curry',
+ 'curryRight',
+ 'defaultsAll',
+ 'defaultsDeepAll',
+ 'floor',
+ 'flow',
+ 'flowRight',
+ 'fromPairs',
+ 'invert',
+ 'iteratee',
+ 'memoize',
+ 'method',
+ 'mergeAll',
+ 'methodOf',
+ 'mixin',
+ 'nthArg',
+ 'over',
+ 'overEvery',
+ 'overSome',
+ 'rest',
+ 'reverse',
+ 'round',
+ 'runInContext',
+ 'spread',
+ 'template',
+ 'trim',
+ 'trimEnd',
+ 'trimStart',
+ 'uniqueId',
+ 'words',
+ 'zipAll'
+ ],
+ 2: [
+ 'add',
+ 'after',
+ 'ary',
+ 'assign',
+ 'assignAllWith',
+ 'assignIn',
+ 'assignInAllWith',
+ 'at',
+ 'before',
+ 'bind',
+ 'bindAll',
+ 'bindKey',
+ 'chunk',
+ 'cloneDeepWith',
+ 'cloneWith',
+ 'concat',
+ 'conformsTo',
+ 'countBy',
+ 'curryN',
+ 'curryRightN',
+ 'debounce',
+ 'defaults',
+ 'defaultsDeep',
+ 'defaultTo',
+ 'delay',
+ 'difference',
+ 'divide',
+ 'drop',
+ 'dropRight',
+ 'dropRightWhile',
+ 'dropWhile',
+ 'endsWith',
+ 'eq',
+ 'every',
+ 'filter',
+ 'find',
+ 'findIndex',
+ 'findKey',
+ 'findLast',
+ 'findLastIndex',
+ 'findLastKey',
+ 'flatMap',
+ 'flatMapDeep',
+ 'flattenDepth',
+ 'forEach',
+ 'forEachRight',
+ 'forIn',
+ 'forInRight',
+ 'forOwn',
+ 'forOwnRight',
+ 'get',
+ 'groupBy',
+ 'gt',
+ 'gte',
+ 'has',
+ 'hasIn',
+ 'includes',
+ 'indexOf',
+ 'intersection',
+ 'invertBy',
+ 'invoke',
+ 'invokeMap',
+ 'isEqual',
+ 'isMatch',
+ 'join',
+ 'keyBy',
+ 'lastIndexOf',
+ 'lt',
+ 'lte',
+ 'map',
+ 'mapKeys',
+ 'mapValues',
+ 'matchesProperty',
+ 'maxBy',
+ 'meanBy',
+ 'merge',
+ 'mergeAllWith',
+ 'minBy',
+ 'multiply',
+ 'nth',
+ 'omit',
+ 'omitBy',
+ 'overArgs',
+ 'pad',
+ 'padEnd',
+ 'padStart',
+ 'parseInt',
+ 'partial',
+ 'partialRight',
+ 'partition',
+ 'pick',
+ 'pickBy',
+ 'propertyOf',
+ 'pull',
+ 'pullAll',
+ 'pullAt',
+ 'random',
+ 'range',
+ 'rangeRight',
+ 'rearg',
+ 'reject',
+ 'remove',
+ 'repeat',
+ 'restFrom',
+ 'result',
+ 'sampleSize',
+ 'some',
+ 'sortBy',
+ 'sortedIndex',
+ 'sortedIndexOf',
+ 'sortedLastIndex',
+ 'sortedLastIndexOf',
+ 'sortedUniqBy',
+ 'split',
+ 'spreadFrom',
+ 'startsWith',
+ 'subtract',
+ 'sumBy',
+ 'take',
+ 'takeRight',
+ 'takeRightWhile',
+ 'takeWhile',
+ 'tap',
+ 'throttle',
+ 'thru',
+ 'times',
+ 'trimChars',
+ 'trimCharsEnd',
+ 'trimCharsStart',
+ 'truncate',
+ 'union',
+ 'uniqBy',
+ 'uniqWith',
+ 'unset',
+ 'unzipWith',
+ 'without',
+ 'wrap',
+ 'xor',
+ 'zip',
+ 'zipObject',
+ 'zipObjectDeep'
+ ],
+ 3: [
+ 'assignInWith',
+ 'assignWith',
+ 'clamp',
+ 'differenceBy',
+ 'differenceWith',
+ 'findFrom',
+ 'findIndexFrom',
+ 'findLastFrom',
+ 'findLastIndexFrom',
+ 'getOr',
+ 'includesFrom',
+ 'indexOfFrom',
+ 'inRange',
+ 'intersectionBy',
+ 'intersectionWith',
+ 'invokeArgs',
+ 'invokeArgsMap',
+ 'isEqualWith',
+ 'isMatchWith',
+ 'flatMapDepth',
+ 'lastIndexOfFrom',
+ 'mergeWith',
+ 'orderBy',
+ 'padChars',
+ 'padCharsEnd',
+ 'padCharsStart',
+ 'pullAllBy',
+ 'pullAllWith',
+ 'rangeStep',
+ 'rangeStepRight',
+ 'reduce',
+ 'reduceRight',
+ 'replace',
+ 'set',
+ 'slice',
+ 'sortedIndexBy',
+ 'sortedLastIndexBy',
+ 'transform',
+ 'unionBy',
+ 'unionWith',
+ 'update',
+ 'xorBy',
+ 'xorWith',
+ 'zipWith'
+ ],
+ 4: ['fill', 'setWith', 'updateWith']
+ }),
+ (o.aryRearg = { 2: [1, 0], 3: [2, 0, 1], 4: [3, 2, 0, 1] }),
+ (o.iterateeAry = {
+ dropRightWhile: 1,
+ dropWhile: 1,
+ every: 1,
+ filter: 1,
+ find: 1,
+ findFrom: 1,
+ findIndex: 1,
+ findIndexFrom: 1,
+ findKey: 1,
+ findLast: 1,
+ findLastFrom: 1,
+ findLastIndex: 1,
+ findLastIndexFrom: 1,
+ findLastKey: 1,
+ flatMap: 1,
+ flatMapDeep: 1,
+ flatMapDepth: 1,
+ forEach: 1,
+ forEachRight: 1,
+ forIn: 1,
+ forInRight: 1,
+ forOwn: 1,
+ forOwnRight: 1,
+ map: 1,
+ mapKeys: 1,
+ mapValues: 1,
+ partition: 1,
+ reduce: 2,
+ reduceRight: 2,
+ reject: 1,
+ remove: 1,
+ some: 1,
+ takeRightWhile: 1,
+ takeWhile: 1,
+ times: 1,
+ transform: 2
+ }),
+ (o.iterateeRearg = { mapKeys: [1], reduceRight: [1, 0] }),
+ (o.methodRearg = {
+ assignInAllWith: [1, 0],
+ assignInWith: [1, 2, 0],
+ assignAllWith: [1, 0],
+ assignWith: [1, 2, 0],
+ differenceBy: [1, 2, 0],
+ differenceWith: [1, 2, 0],
+ getOr: [2, 1, 0],
+ intersectionBy: [1, 2, 0],
+ intersectionWith: [1, 2, 0],
+ isEqualWith: [1, 2, 0],
+ isMatchWith: [2, 1, 0],
+ mergeAllWith: [1, 0],
+ mergeWith: [1, 2, 0],
+ padChars: [2, 1, 0],
+ padCharsEnd: [2, 1, 0],
+ padCharsStart: [2, 1, 0],
+ pullAllBy: [2, 1, 0],
+ pullAllWith: [2, 1, 0],
+ rangeStep: [1, 2, 0],
+ rangeStepRight: [1, 2, 0],
+ setWith: [3, 1, 2, 0],
+ sortedIndexBy: [2, 1, 0],
+ sortedLastIndexBy: [2, 1, 0],
+ unionBy: [1, 2, 0],
+ unionWith: [1, 2, 0],
+ updateWith: [3, 1, 2, 0],
+ xorBy: [1, 2, 0],
+ xorWith: [1, 2, 0],
+ zipWith: [1, 2, 0]
+ }),
+ (o.methodSpread = {
+ assignAll: { start: 0 },
+ assignAllWith: { start: 0 },
+ assignInAll: { start: 0 },
+ assignInAllWith: { start: 0 },
+ defaultsAll: { start: 0 },
+ defaultsDeepAll: { start: 0 },
+ invokeArgs: { start: 2 },
+ invokeArgsMap: { start: 2 },
+ mergeAll: { start: 0 },
+ mergeAllWith: { start: 0 },
+ partial: { start: 1 },
+ partialRight: { start: 1 },
+ without: { start: 1 },
+ zipAll: { start: 0 }
+ }),
+ (o.mutate = {
+ array: {
+ fill: !0,
+ pull: !0,
+ pullAll: !0,
+ pullAllBy: !0,
+ pullAllWith: !0,
+ pullAt: !0,
+ remove: !0,
+ reverse: !0
+ },
+ object: {
+ assign: !0,
+ assignAll: !0,
+ assignAllWith: !0,
+ assignIn: !0,
+ assignInAll: !0,
+ assignInAllWith: !0,
+ assignInWith: !0,
+ assignWith: !0,
+ defaults: !0,
+ defaultsAll: !0,
+ defaultsDeep: !0,
+ defaultsDeepAll: !0,
+ merge: !0,
+ mergeAll: !0,
+ mergeAllWith: !0,
+ mergeWith: !0
+ },
+ set: {
+ set: !0,
+ setWith: !0,
+ unset: !0,
+ update: !0,
+ updateWith: !0
+ }
+ }),
+ (o.realToAlias = (function () {
+ var s = Object.prototype.hasOwnProperty,
+ i = o.aliasToReal,
+ a = {};
+ for (var u in i) {
+ var _ = i[u];
+ s.call(a, _) ? a[_].push(u) : (a[_] = [u]);
+ }
+ return a;
+ })()),
+ (o.remap = {
+ assignAll: 'assign',
+ assignAllWith: 'assignWith',
+ assignInAll: 'assignIn',
+ assignInAllWith: 'assignInWith',
+ curryN: 'curry',
+ curryRightN: 'curryRight',
+ defaultsAll: 'defaults',
+ defaultsDeepAll: 'defaultsDeep',
+ findFrom: 'find',
+ findIndexFrom: 'findIndex',
+ findLastFrom: 'findLast',
+ findLastIndexFrom: 'findLastIndex',
+ getOr: 'get',
+ includesFrom: 'includes',
+ indexOfFrom: 'indexOf',
+ invokeArgs: 'invoke',
+ invokeArgsMap: 'invokeMap',
+ lastIndexOfFrom: 'lastIndexOf',
+ mergeAll: 'merge',
+ mergeAllWith: 'mergeWith',
+ padChars: 'pad',
+ padCharsEnd: 'padEnd',
+ padCharsStart: 'padStart',
+ propertyOf: 'get',
+ rangeStep: 'range',
+ rangeStepRight: 'rangeRight',
+ restFrom: 'rest',
+ spreadFrom: 'spread',
+ trimChars: 'trim',
+ trimCharsEnd: 'trimEnd',
+ trimCharsStart: 'trimStart',
+ zipAll: 'zip'
+ }),
+ (o.skipFixed = {
+ castArray: !0,
+ flow: !0,
+ flowRight: !0,
+ iteratee: !0,
+ mixin: !0,
+ rearg: !0,
+ runInContext: !0
+ }),
+ (o.skipRearg = {
+ add: !0,
+ assign: !0,
+ assignIn: !0,
+ bind: !0,
+ bindKey: !0,
+ concat: !0,
+ difference: !0,
+ divide: !0,
+ eq: !0,
+ gt: !0,
+ gte: !0,
+ isEqual: !0,
+ lt: !0,
+ lte: !0,
+ matchesProperty: !0,
+ merge: !0,
+ multiply: !0,
+ overArgs: !0,
+ partial: !0,
+ partialRight: !0,
+ propertyOf: !0,
+ random: !0,
+ range: !0,
+ rangeRight: !0,
+ subtract: !0,
+ zip: !0,
+ zipObject: !0,
+ zipObjectDeep: !0
+ });
+ },
+ 17255: (s, o, i) => {
+ var a = i(47422);
+ s.exports = function basePropertyDeep(s) {
+ return function (o) {
+ return a(o, s);
+ };
+ };
+ },
+ 17285: (s) => {
+ function source(s) {
+ return s ? ('string' == typeof s ? s : s.source) : null;
+ }
+ function lookahead(s) {
+ return concat('(?=', s, ')');
+ }
+ function concat(...s) {
+ return s.map((s) => source(s)).join('');
+ }
+ function either(...s) {
+ return '(' + s.map((s) => source(s)).join('|') + ')';
+ }
+ s.exports = function xml(s) {
+ const o = concat(
+ /[A-Z_]/,
+ (function optional(s) {
+ return concat('(', s, ')?');
+ })(/[A-Z0-9_.-]*:/),
+ /[A-Z0-9_.-]*/
+ ),
+ i = {
+ className: 'symbol',
+ begin: /&[a-z]+;|[0-9]+;|[a-f0-9]+;/
+ },
+ a = {
+ begin: /\s/,
+ contains: [
+ {
+ className: 'meta-keyword',
+ begin: /#?[a-z_][a-z1-9_-]+/,
+ illegal: /\n/
+ }
+ ]
+ },
+ u = s.inherit(a, { begin: /\(/, end: /\)/ }),
+ _ = s.inherit(s.APOS_STRING_MODE, { className: 'meta-string' }),
+ w = s.inherit(s.QUOTE_STRING_MODE, { className: 'meta-string' }),
+ x = {
+ endsWithParent: !0,
+ illegal: /,
+ relevance: 0,
+ contains: [
+ {
+ className: 'attr',
+ begin: /[A-Za-z0-9._:-]+/,
+ relevance: 0
+ },
+ {
+ begin: /=\s*/,
+ relevance: 0,
+ contains: [
+ {
+ className: 'string',
+ endsParent: !0,
+ variants: [
+ { begin: /"/, end: /"/, contains: [i] },
+ { begin: /'/, end: /'/, contains: [i] },
+ { begin: /[^\s"'=<>`]+/ }
+ ]
+ }
+ ]
+ }
+ ]
+ };
+ return {
+ name: 'HTML, XML',
+ aliases: [
+ 'html',
+ 'xhtml',
+ 'rss',
+ 'atom',
+ 'xjb',
+ 'xsd',
+ 'xsl',
+ 'plist',
+ 'wsf',
+ 'svg'
+ ],
+ case_insensitive: !0,
+ contains: [
+ {
+ className: 'meta',
+ begin: //,
+ relevance: 10,
+ contains: [
+ a,
+ w,
+ _,
+ u,
+ {
+ begin: /\[/,
+ end: /\]/,
+ contains: [
+ {
+ className: 'meta',
+ begin: //,
+ contains: [a, u, w, _]
+ }
+ ]
+ }
+ ]
+ },
+ s.COMMENT(//, { relevance: 10 }),
+ { begin: //, relevance: 10 },
+ i,
+ {
+ className: 'meta',
+ begin: /<\?xml/,
+ end: /\?>/,
+ relevance: 10
+ },
+ {
+ className: 'tag',
+ begin: /