substack-feed-api 1.0.10 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/substackFeedApi.js +139 -141
- package/dist/substackFeedApi.umd.cjs +6 -6
- package/package.json +3 -1
package/dist/substackFeedApi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function lr(i) {
|
|
2
2
|
if (i.__esModule) return i;
|
|
3
3
|
var a = i.default;
|
|
4
4
|
if (typeof a == "function") {
|
|
@@ -128,8 +128,8 @@ function H() {
|
|
|
128
128
|
}, K.assign = i, K.isFunction = h, K.isObject = t, K.isArray = D, K.isEmpty = p, K.isPlainObject = e, K.getValue = a;
|
|
129
129
|
}).call(K)), K;
|
|
130
130
|
}
|
|
131
|
-
var ot = { exports: {} },
|
|
132
|
-
function
|
|
131
|
+
var ot = { exports: {} }, fr = ot.exports, pe;
|
|
132
|
+
function Je() {
|
|
133
133
|
return pe || (pe = 1, (function() {
|
|
134
134
|
ot.exports = function() {
|
|
135
135
|
function i() {
|
|
@@ -146,10 +146,10 @@ function Ze() {
|
|
|
146
146
|
throw new Error("This DOM method is not implemented.");
|
|
147
147
|
}, i;
|
|
148
148
|
}();
|
|
149
|
-
}).call(
|
|
149
|
+
}).call(fr)), ot.exports;
|
|
150
150
|
}
|
|
151
|
-
var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} },
|
|
152
|
-
function
|
|
151
|
+
var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} }, pr = at.exports, he;
|
|
152
|
+
function hr() {
|
|
153
153
|
return he || (he = 1, (function() {
|
|
154
154
|
at.exports = function() {
|
|
155
155
|
function i() {
|
|
@@ -158,10 +158,10 @@ function pr() {
|
|
|
158
158
|
throw new Error(a);
|
|
159
159
|
}, i;
|
|
160
160
|
}();
|
|
161
|
-
}).call(
|
|
161
|
+
}).call(pr)), at.exports;
|
|
162
162
|
}
|
|
163
|
-
var ct = { exports: {} },
|
|
164
|
-
function
|
|
163
|
+
var ct = { exports: {} }, dr = ct.exports, de;
|
|
164
|
+
function yr() {
|
|
165
165
|
return de || (de = 1, (function() {
|
|
166
166
|
ct.exports = function() {
|
|
167
167
|
function i(a) {
|
|
@@ -177,13 +177,13 @@ function dr() {
|
|
|
177
177
|
return this.arr.indexOf(a) !== -1;
|
|
178
178
|
}, i;
|
|
179
179
|
}();
|
|
180
|
-
}).call(
|
|
180
|
+
}).call(dr)), ct.exports;
|
|
181
181
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
182
|
+
var mr = ut.exports, ye;
|
|
183
|
+
function gr() {
|
|
184
184
|
return ye || (ye = 1, (function() {
|
|
185
185
|
var i, a;
|
|
186
|
-
i =
|
|
186
|
+
i = hr(), a = yr(), ut.exports = function() {
|
|
187
187
|
function D() {
|
|
188
188
|
this.defaultParams = {
|
|
189
189
|
"canonical-form": !1,
|
|
@@ -217,9 +217,9 @@ function mr() {
|
|
|
217
217
|
return h != null ? this.params[p] = h : delete this.params[p];
|
|
218
218
|
}, D;
|
|
219
219
|
}();
|
|
220
|
-
}).call(
|
|
220
|
+
}).call(mr)), ut.exports;
|
|
221
221
|
}
|
|
222
|
-
var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} },
|
|
222
|
+
var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} }, wr = pt.exports, me;
|
|
223
223
|
function B() {
|
|
224
224
|
return me || (me = 1, (function() {
|
|
225
225
|
pt.exports = {
|
|
@@ -241,10 +241,10 @@ function B() {
|
|
|
241
241
|
ElementDeclaration: 204,
|
|
242
242
|
Dummy: 205
|
|
243
243
|
};
|
|
244
|
-
}).call(
|
|
244
|
+
}).call(wr)), pt.exports;
|
|
245
245
|
}
|
|
246
|
-
var ht = { exports: {} },
|
|
247
|
-
function
|
|
246
|
+
var ht = { exports: {} }, Tr = ht.exports, ge;
|
|
247
|
+
function tr() {
|
|
248
248
|
return ge || (ge = 1, (function() {
|
|
249
249
|
var i;
|
|
250
250
|
i = B(), W(), ht.exports = function() {
|
|
@@ -294,9 +294,9 @@ function Je() {
|
|
|
294
294
|
return !(D.namespaceURI !== this.namespaceURI || D.prefix !== this.prefix || D.localName !== this.localName || D.value !== this.value);
|
|
295
295
|
}, a;
|
|
296
296
|
}();
|
|
297
|
-
}).call(
|
|
297
|
+
}).call(Tr)), ht.exports;
|
|
298
298
|
}
|
|
299
|
-
var dt = { exports: {} },
|
|
299
|
+
var dt = { exports: {} }, Dr = dt.exports, we;
|
|
300
300
|
function Gt() {
|
|
301
301
|
return we || (we = 1, (function() {
|
|
302
302
|
dt.exports = function() {
|
|
@@ -327,9 +327,9 @@ function Gt() {
|
|
|
327
327
|
throw new Error("This DOM method is not implemented.");
|
|
328
328
|
}, i;
|
|
329
329
|
}();
|
|
330
|
-
}).call(
|
|
330
|
+
}).call(Dr)), dt.exports;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var Er = ft.exports, Te;
|
|
333
333
|
function Yt() {
|
|
334
334
|
return Te || (Te = 1, (function() {
|
|
335
335
|
var i, a, D, p, h, t, e, o, l = function(m, y) {
|
|
@@ -340,7 +340,7 @@ function Yt() {
|
|
|
340
340
|
}
|
|
341
341
|
return g.prototype = y.prototype, m.prototype = new g(), m.__super__ = y.prototype, m;
|
|
342
342
|
}, b = {}.hasOwnProperty;
|
|
343
|
-
o = H(), e = o.isObject, t = o.isFunction, h = o.getValue, p = W(), i = B(), a =
|
|
343
|
+
o = H(), e = o.isObject, t = o.isFunction, h = o.getValue, p = W(), i = B(), a = tr(), D = Gt(), ft.exports = function(m) {
|
|
344
344
|
l(y, m);
|
|
345
345
|
function y(d, g, O) {
|
|
346
346
|
var I, x, P, E;
|
|
@@ -469,10 +469,10 @@ function Yt() {
|
|
|
469
469
|
return !0;
|
|
470
470
|
}, y;
|
|
471
471
|
}(p);
|
|
472
|
-
}).call(
|
|
472
|
+
}).call(Er)), ft.exports;
|
|
473
473
|
}
|
|
474
|
-
var yt = { exports: {} }, mt = { exports: {} },
|
|
475
|
-
function
|
|
474
|
+
var yt = { exports: {} }, mt = { exports: {} }, br = mt.exports, De;
|
|
475
|
+
function Rt() {
|
|
476
476
|
return De || (De = 1, (function() {
|
|
477
477
|
var i, a = function(p, h) {
|
|
478
478
|
for (var t in h)
|
|
@@ -521,9 +521,9 @@ function Ft() {
|
|
|
521
521
|
return !(!h.__super__.isEqualNode.apply(this, arguments).isEqualNode(t) || t.data !== this.data);
|
|
522
522
|
}, h;
|
|
523
523
|
}(i);
|
|
524
|
-
}).call(
|
|
524
|
+
}).call(br)), mt.exports;
|
|
525
525
|
}
|
|
526
|
-
var
|
|
526
|
+
var Or = yt.exports, Ee;
|
|
527
527
|
function Kt() {
|
|
528
528
|
return Ee || (Ee = 1, (function() {
|
|
529
529
|
var i, a, D = function(h, t) {
|
|
@@ -534,7 +534,7 @@ function Kt() {
|
|
|
534
534
|
}
|
|
535
535
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
536
536
|
}, p = {}.hasOwnProperty;
|
|
537
|
-
i = B(), a =
|
|
537
|
+
i = B(), a = Rt(), yt.exports = function(h) {
|
|
538
538
|
D(t, h);
|
|
539
539
|
function t(e, o) {
|
|
540
540
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -547,9 +547,9 @@ function Kt() {
|
|
|
547
547
|
return this.options.writer.cdata(this, this.options.writer.filterOptions(e));
|
|
548
548
|
}, t;
|
|
549
549
|
}(a);
|
|
550
|
-
}).call(
|
|
550
|
+
}).call(Or)), yt.exports;
|
|
551
551
|
}
|
|
552
|
-
var gt = { exports: {} },
|
|
552
|
+
var gt = { exports: {} }, Nr = gt.exports, be;
|
|
553
553
|
function zt() {
|
|
554
554
|
return be || (be = 1, (function() {
|
|
555
555
|
var i, a, D = function(h, t) {
|
|
@@ -560,7 +560,7 @@ function zt() {
|
|
|
560
560
|
}
|
|
561
561
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
562
562
|
}, p = {}.hasOwnProperty;
|
|
563
|
-
i = B(), a =
|
|
563
|
+
i = B(), a = Rt(), gt.exports = function(h) {
|
|
564
564
|
D(t, h);
|
|
565
565
|
function t(e, o) {
|
|
566
566
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -573,9 +573,9 @@ function zt() {
|
|
|
573
573
|
return this.options.writer.comment(this, this.options.writer.filterOptions(e));
|
|
574
574
|
}, t;
|
|
575
575
|
}(a);
|
|
576
|
-
}).call(
|
|
576
|
+
}).call(Nr)), gt.exports;
|
|
577
577
|
}
|
|
578
|
-
var wt = { exports: {} },
|
|
578
|
+
var wt = { exports: {} }, vr = wt.exports, Oe;
|
|
579
579
|
function Ht() {
|
|
580
580
|
return Oe || (Oe = 1, (function() {
|
|
581
581
|
var i, a, D, p = function(t, e) {
|
|
@@ -596,9 +596,9 @@ function Ht() {
|
|
|
596
596
|
return this.options.writer.declaration(this, this.options.writer.filterOptions(o));
|
|
597
597
|
}, e;
|
|
598
598
|
}(a);
|
|
599
|
-
}).call(
|
|
599
|
+
}).call(vr)), wt.exports;
|
|
600
600
|
}
|
|
601
|
-
var Tt = { exports: {} }, Dt = { exports: {} },
|
|
601
|
+
var Tt = { exports: {} }, Dt = { exports: {} }, Lr = Dt.exports, Ne;
|
|
602
602
|
function Qt() {
|
|
603
603
|
return Ne || (Ne = 1, (function() {
|
|
604
604
|
var i, a, D = function(h, t) {
|
|
@@ -630,9 +630,9 @@ function Qt() {
|
|
|
630
630
|
return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(e));
|
|
631
631
|
}, t;
|
|
632
632
|
}(a);
|
|
633
|
-
}).call(
|
|
633
|
+
}).call(Lr)), Dt.exports;
|
|
634
634
|
}
|
|
635
|
-
var Et = { exports: {} },
|
|
635
|
+
var Et = { exports: {} }, Ir = Et.exports, ve;
|
|
636
636
|
function Zt() {
|
|
637
637
|
return ve || (ve = 1, (function() {
|
|
638
638
|
var i, a, D, p = function(t, e) {
|
|
@@ -689,9 +689,9 @@ function Zt() {
|
|
|
689
689
|
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(o));
|
|
690
690
|
}, e;
|
|
691
691
|
}(a);
|
|
692
|
-
}).call(
|
|
692
|
+
}).call(Ir)), Et.exports;
|
|
693
693
|
}
|
|
694
|
-
var bt = { exports: {} },
|
|
694
|
+
var bt = { exports: {} }, xr = bt.exports, Le;
|
|
695
695
|
function Jt() {
|
|
696
696
|
return Le || (Le = 1, (function() {
|
|
697
697
|
var i, a, D = function(h, t) {
|
|
@@ -713,9 +713,9 @@ function Jt() {
|
|
|
713
713
|
return this.options.writer.dtdElement(this, this.options.writer.filterOptions(e));
|
|
714
714
|
}, t;
|
|
715
715
|
}(a);
|
|
716
|
-
}).call(
|
|
716
|
+
}).call(xr)), bt.exports;
|
|
717
717
|
}
|
|
718
|
-
var Ot = { exports: {} },
|
|
718
|
+
var Ot = { exports: {} }, Ar = Ot.exports, Ie;
|
|
719
719
|
function te() {
|
|
720
720
|
return Ie || (Ie = 1, (function() {
|
|
721
721
|
var i, a, D = function(h, t) {
|
|
@@ -747,9 +747,9 @@ function te() {
|
|
|
747
747
|
return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(e));
|
|
748
748
|
}, t;
|
|
749
749
|
}(a);
|
|
750
|
-
}).call(
|
|
750
|
+
}).call(Ar)), Ot.exports;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
752
|
+
var Mr = Tt.exports, xe;
|
|
753
753
|
function ee() {
|
|
754
754
|
return xe || (xe = 1, (function() {
|
|
755
755
|
var i, a, D, p, h, t, e, o, l = function(m, y) {
|
|
@@ -832,9 +832,9 @@ function ee() {
|
|
|
832
832
|
return !(!y.__super__.isEqualNode.apply(this, arguments).isEqualNode(d) || d.name !== this.name || d.publicId !== this.publicId || d.systemId !== this.systemId);
|
|
833
833
|
}, y;
|
|
834
834
|
}(e);
|
|
835
|
-
}).call(
|
|
835
|
+
}).call(Mr)), Tt.exports;
|
|
836
836
|
}
|
|
837
|
-
var Nt = { exports: {} },
|
|
837
|
+
var Nt = { exports: {} }, Pr = Nt.exports, Ae;
|
|
838
838
|
function re() {
|
|
839
839
|
return Ae || (Ae = 1, (function() {
|
|
840
840
|
var i, a, D = function(h, t) {
|
|
@@ -858,9 +858,9 @@ function re() {
|
|
|
858
858
|
return this.options.writer.raw(this, this.options.writer.filterOptions(e));
|
|
859
859
|
}, t;
|
|
860
860
|
}(a);
|
|
861
|
-
}).call(
|
|
861
|
+
}).call(Pr)), Nt.exports;
|
|
862
862
|
}
|
|
863
|
-
var vt = { exports: {} },
|
|
863
|
+
var vt = { exports: {} }, _r = vt.exports, Me;
|
|
864
864
|
function ne() {
|
|
865
865
|
return Me || (Me = 1, (function() {
|
|
866
866
|
var i, a, D = function(h, t) {
|
|
@@ -871,7 +871,7 @@ function ne() {
|
|
|
871
871
|
}
|
|
872
872
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
873
873
|
}, p = {}.hasOwnProperty;
|
|
874
|
-
i = B(), a =
|
|
874
|
+
i = B(), a = Rt(), vt.exports = function(h) {
|
|
875
875
|
D(t, h);
|
|
876
876
|
function t(e, o) {
|
|
877
877
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -901,9 +901,9 @@ function ne() {
|
|
|
901
901
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
902
902
|
}, t;
|
|
903
903
|
}(a);
|
|
904
|
-
}).call(
|
|
904
|
+
}).call(_r)), vt.exports;
|
|
905
905
|
}
|
|
906
|
-
var Lt = { exports: {} },
|
|
906
|
+
var Lt = { exports: {} }, Cr = Lt.exports, Pe;
|
|
907
907
|
function ie() {
|
|
908
908
|
return Pe || (Pe = 1, (function() {
|
|
909
909
|
var i, a, D = function(h, t) {
|
|
@@ -914,7 +914,7 @@ function ie() {
|
|
|
914
914
|
}
|
|
915
915
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
916
916
|
}, p = {}.hasOwnProperty;
|
|
917
|
-
i = B(), a =
|
|
917
|
+
i = B(), a = Rt(), Lt.exports = function(h) {
|
|
918
918
|
D(t, h);
|
|
919
919
|
function t(e, o, l) {
|
|
920
920
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -929,10 +929,10 @@ function ie() {
|
|
|
929
929
|
return !(!t.__super__.isEqualNode.apply(this, arguments).isEqualNode(e) || e.target !== this.target);
|
|
930
930
|
}, t;
|
|
931
931
|
}(a);
|
|
932
|
-
}).call(
|
|
932
|
+
}).call(Cr)), Lt.exports;
|
|
933
933
|
}
|
|
934
|
-
var It = { exports: {} },
|
|
935
|
-
function
|
|
934
|
+
var It = { exports: {} }, Sr = It.exports, _e;
|
|
935
|
+
function er() {
|
|
936
936
|
return _e || (_e = 1, (function() {
|
|
937
937
|
var i, a, D = function(h, t) {
|
|
938
938
|
for (var e in t)
|
|
@@ -953,10 +953,10 @@ function tr() {
|
|
|
953
953
|
return "";
|
|
954
954
|
}, t;
|
|
955
955
|
}(a);
|
|
956
|
-
}).call(
|
|
956
|
+
}).call(Sr)), It.exports;
|
|
957
957
|
}
|
|
958
|
-
var xt = { exports: {} },
|
|
959
|
-
function
|
|
958
|
+
var xt = { exports: {} }, Xr = xt.exports, Ce;
|
|
959
|
+
function Fr() {
|
|
960
960
|
return Ce || (Ce = 1, (function() {
|
|
961
961
|
xt.exports = function() {
|
|
962
962
|
function i(a) {
|
|
@@ -972,10 +972,10 @@ function Xr() {
|
|
|
972
972
|
return this.nodes[a] || null;
|
|
973
973
|
}, i;
|
|
974
974
|
}();
|
|
975
|
-
}).call(
|
|
975
|
+
}).call(Xr)), xt.exports;
|
|
976
976
|
}
|
|
977
|
-
var At = { exports: {} },
|
|
978
|
-
function
|
|
977
|
+
var At = { exports: {} }, Rr = At.exports, Se;
|
|
978
|
+
function jr() {
|
|
979
979
|
return Se || (Se = 1, (function() {
|
|
980
980
|
At.exports = {
|
|
981
981
|
Disconnected: 1,
|
|
@@ -985,15 +985,15 @@ function Rr() {
|
|
|
985
985
|
ContainedBy: 16,
|
|
986
986
|
ImplementationSpecific: 32
|
|
987
987
|
};
|
|
988
|
-
}).call(
|
|
988
|
+
}).call(Rr)), At.exports;
|
|
989
989
|
}
|
|
990
|
-
var
|
|
990
|
+
var Br = lt.exports, Xe;
|
|
991
991
|
function W() {
|
|
992
992
|
return Xe || (Xe = 1, (function() {
|
|
993
993
|
var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P = {}.hasOwnProperty;
|
|
994
994
|
x = H(), I = x.isObject, O = x.isFunction, g = x.isEmpty, d = x.getValue, o = null, D = null, p = null, h = null, t = null, m = null, y = null, b = null, e = null, a = null, l = null, i = null, lt.exports = function() {
|
|
995
995
|
function E(s) {
|
|
996
|
-
this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Yt(), D = Kt(), p = zt(), h = Ht(), t = ee(), m = re(), y = ne(), b = ie(), e =
|
|
996
|
+
this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Yt(), D = Kt(), p = zt(), h = Ht(), t = ee(), m = re(), y = ne(), b = ie(), e = er(), a = B(), l = Fr(), Gt(), i = jr());
|
|
997
997
|
}
|
|
998
998
|
return Object.defineProperty(E.prototype, "nodeName", {
|
|
999
999
|
get: function() {
|
|
@@ -1296,10 +1296,10 @@ function W() {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
}, E;
|
|
1298
1298
|
}();
|
|
1299
|
-
}).call(
|
|
1299
|
+
}).call(Br)), lt.exports;
|
|
1300
1300
|
}
|
|
1301
|
-
var Mt = { exports: {} },
|
|
1302
|
-
function
|
|
1301
|
+
var Mt = { exports: {} }, qr = Mt.exports, Fe;
|
|
1302
|
+
function rr() {
|
|
1303
1303
|
return Fe || (Fe = 1, (function() {
|
|
1304
1304
|
var i = function(D, p) {
|
|
1305
1305
|
return function() {
|
|
@@ -1391,10 +1391,10 @@ function er() {
|
|
|
1391
1391
|
return this.options.noValidation ? p : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, p.replace(h, "&").replace(/</g, "<").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, "
").replace(/\r/g, "
"));
|
|
1392
1392
|
}, D;
|
|
1393
1393
|
}();
|
|
1394
|
-
}).call(
|
|
1394
|
+
}).call(qr)), Mt.exports;
|
|
1395
1395
|
}
|
|
1396
|
-
var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} },
|
|
1397
|
-
function
|
|
1396
|
+
var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} }, Ur = Ct.exports, Re;
|
|
1397
|
+
function jt() {
|
|
1398
1398
|
return Re || (Re = 1, (function() {
|
|
1399
1399
|
Ct.exports = {
|
|
1400
1400
|
None: 0,
|
|
@@ -1402,13 +1402,13 @@ function Rt() {
|
|
|
1402
1402
|
InsideTag: 2,
|
|
1403
1403
|
CloseTag: 3
|
|
1404
1404
|
};
|
|
1405
|
-
}).call(
|
|
1405
|
+
}).call(Ur)), Ct.exports;
|
|
1406
1406
|
}
|
|
1407
|
-
var
|
|
1408
|
-
function
|
|
1407
|
+
var Vr = _t.exports, je;
|
|
1408
|
+
function nr() {
|
|
1409
1409
|
return je || (je = 1, (function() {
|
|
1410
1410
|
var i, a, D, p = {}.hasOwnProperty;
|
|
1411
|
-
D = H().assign, i = B(), Ht(), ee(), Kt(), zt(), Yt(), re(), ne(), ie(),
|
|
1411
|
+
D = H().assign, i = B(), Ht(), ee(), Kt(), zt(), Yt(), re(), ne(), ie(), er(), Qt(), Jt(), Zt(), te(), a = jt(), _t.exports = function() {
|
|
1412
1412
|
function h(t) {
|
|
1413
1413
|
var e, o, l;
|
|
1414
1414
|
t || (t = {}), this.options = t, o = t.writer || {};
|
|
@@ -1528,9 +1528,9 @@ function rr() {
|
|
|
1528
1528
|
}, h.prototype.closeAttribute = function(t, e, o) {
|
|
1529
1529
|
}, h;
|
|
1530
1530
|
}();
|
|
1531
|
-
}).call(
|
|
1531
|
+
}).call(Vr)), _t.exports;
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var kr = Pt.exports, Be;
|
|
1534
1534
|
function oe() {
|
|
1535
1535
|
return Be || (Be = 1, (function() {
|
|
1536
1536
|
var i, a = function(p, h) {
|
|
@@ -1541,7 +1541,7 @@ function oe() {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return e.prototype = h.prototype, p.prototype = new e(), p.__super__ = h.prototype, p;
|
|
1543
1543
|
}, D = {}.hasOwnProperty;
|
|
1544
|
-
i =
|
|
1544
|
+
i = nr(), Pt.exports = function(p) {
|
|
1545
1545
|
a(h, p);
|
|
1546
1546
|
function h(t) {
|
|
1547
1547
|
h.__super__.constructor.call(this, t);
|
|
@@ -1553,10 +1553,10 @@ function oe() {
|
|
|
1553
1553
|
return e.pretty && m.slice(-e.newline.length) === e.newline && (m = m.slice(0, -e.newline.length)), m;
|
|
1554
1554
|
}, h;
|
|
1555
1555
|
}(i);
|
|
1556
|
-
}).call(
|
|
1556
|
+
}).call(kr)), Pt.exports;
|
|
1557
1557
|
}
|
|
1558
|
-
var
|
|
1559
|
-
function
|
|
1558
|
+
var $r = st.exports, qe;
|
|
1559
|
+
function ir() {
|
|
1560
1560
|
return qe || (qe = 1, (function() {
|
|
1561
1561
|
var i, a, D, p, h, t, e, o = function(b, m) {
|
|
1562
1562
|
for (var y in m)
|
|
@@ -1566,7 +1566,7 @@ function nr() {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return d.prototype = m.prototype, b.prototype = new d(), b.__super__ = m.prototype, b;
|
|
1568
1568
|
}, l = {}.hasOwnProperty;
|
|
1569
|
-
e = H().isPlainObject, D =
|
|
1569
|
+
e = H().isPlainObject, D = Je(), a = gr(), p = W(), i = B(), t = rr(), h = oe(), st.exports = function(b) {
|
|
1570
1570
|
o(m, b);
|
|
1571
1571
|
function m(y) {
|
|
1572
1572
|
m.__super__.constructor.call(this, null), this.name = "#document", this.type = i.Document, this.documentURI = null, this.domConfig = new a(), y || (y = {}), y.writer || (y.writer = new h()), this.options = y, this.stringify = new t(y);
|
|
@@ -1676,13 +1676,13 @@ function nr() {
|
|
|
1676
1676
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1677
1677
|
}, m;
|
|
1678
1678
|
}(p);
|
|
1679
|
-
}).call(
|
|
1679
|
+
}).call($r)), st.exports;
|
|
1680
1680
|
}
|
|
1681
|
-
var St = { exports: {} },
|
|
1682
|
-
function
|
|
1681
|
+
var St = { exports: {} }, Wr = St.exports, Ue;
|
|
1682
|
+
function Gr() {
|
|
1683
1683
|
return Ue || (Ue = 1, (function() {
|
|
1684
1684
|
var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P, E, s, c, f, T, L = {}.hasOwnProperty;
|
|
1685
|
-
T = H(), c = T.isObject, s = T.isFunction, f = T.isPlainObject, E = T.getValue, i = B(), y =
|
|
1685
|
+
T = H(), c = T.isObject, s = T.isFunction, f = T.isPlainObject, E = T.getValue, i = B(), y = ir(), d = Yt(), p = Kt(), h = zt(), O = re(), P = ne(), g = ie(), b = Ht(), m = ee(), t = Qt(), o = Zt(), e = Jt(), l = te(), D = tr(), x = rr(), I = oe(), a = jt(), St.exports = function() {
|
|
1686
1686
|
function v(r, N, A) {
|
|
1687
1687
|
var _;
|
|
1688
1688
|
this.name = "?xml", this.type = i.Document, r || (r = {}), _ = {}, r.writer ? f(r.writer) && (_ = r.writer, r.writer = new I()) : r.writer = new I(), this.options = r, this.writer = r.writer, this.writerOptions = this.writer.filterOptions(_), this.stringify = new x(r), this.onDataCallback = N || function() {
|
|
@@ -1875,10 +1875,10 @@ function Wr() {
|
|
|
1875
1875
|
return this.notation(r, N);
|
|
1876
1876
|
}, v;
|
|
1877
1877
|
}();
|
|
1878
|
-
}).call(
|
|
1878
|
+
}).call(Wr)), St.exports;
|
|
1879
1879
|
}
|
|
1880
|
-
var Xt = { exports: {} },
|
|
1881
|
-
function
|
|
1880
|
+
var Xt = { exports: {} }, Yr = Xt.exports, Ve;
|
|
1881
|
+
function Kr() {
|
|
1882
1882
|
return Ve || (Ve = 1, (function() {
|
|
1883
1883
|
var i, a, D, p = function(t, e) {
|
|
1884
1884
|
for (var o in e)
|
|
@@ -1888,7 +1888,7 @@ function Yr() {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
1890
1890
|
}, h = {}.hasOwnProperty;
|
|
1891
|
-
i = B(), D =
|
|
1891
|
+
i = B(), D = nr(), a = jt(), Xt.exports = function(t) {
|
|
1892
1892
|
p(e, t);
|
|
1893
1893
|
function e(o, l) {
|
|
1894
1894
|
this.stream = o, e.__super__.constructor.call(this, l);
|
|
@@ -1951,13 +1951,13 @@ function Yr() {
|
|
|
1951
1951
|
return this.stream.write(e.__super__.dtdNotation.call(this, o, l, b));
|
|
1952
1952
|
}, e;
|
|
1953
1953
|
}(D);
|
|
1954
|
-
}).call(
|
|
1954
|
+
}).call(Yr)), Xt.exports;
|
|
1955
1955
|
}
|
|
1956
1956
|
var ke;
|
|
1957
|
-
function
|
|
1957
|
+
function zr() {
|
|
1958
1958
|
return ke || (ke = 1, (function() {
|
|
1959
1959
|
var i, a, D, p, h, t, e, o, l, b;
|
|
1960
|
-
b = H(), o = b.assign, l = b.isFunction, D =
|
|
1960
|
+
b = H(), o = b.assign, l = b.isFunction, D = Je(), p = ir(), h = Gr(), e = oe(), t = Kr(), i = B(), a = jt(), Y.create = function(m, y, d, g) {
|
|
1961
1961
|
var O, I;
|
|
1962
1962
|
if (m == null)
|
|
1963
1963
|
throw new Error("Root element needs a name.");
|
|
@@ -1973,10 +1973,10 @@ function Kr() {
|
|
|
1973
1973
|
}).call(Y)), Y;
|
|
1974
1974
|
}
|
|
1975
1975
|
var $e;
|
|
1976
|
-
function
|
|
1976
|
+
function Hr() {
|
|
1977
1977
|
return $e || ($e = 1, (function() {
|
|
1978
1978
|
var i, a, D, p, h, t = {}.hasOwnProperty;
|
|
1979
|
-
i =
|
|
1979
|
+
i = zr(), a = Wt().defaults, p = function(e) {
|
|
1980
1980
|
return typeof e == "string" && (e.indexOf("&") >= 0 || e.indexOf(">") >= 0 || e.indexOf("<") >= 0);
|
|
1981
1981
|
}, h = function(e) {
|
|
1982
1982
|
return "<![CDATA[" + D(e) + "]]>";
|
|
@@ -2028,13 +2028,13 @@ function zr() {
|
|
|
2028
2028
|
}();
|
|
2029
2029
|
}).call(et)), et;
|
|
2030
2030
|
}
|
|
2031
|
-
var rt = {},
|
|
2032
|
-
const
|
|
2031
|
+
var rt = {}, kt = {};
|
|
2032
|
+
const Qr = {}, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2033
2033
|
__proto__: null,
|
|
2034
|
-
default:
|
|
2035
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2034
|
+
default: Qr
|
|
2035
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ lr(Zr);
|
|
2036
2036
|
var We;
|
|
2037
|
-
function
|
|
2037
|
+
function Jr() {
|
|
2038
2038
|
return We || (We = 1, function(i) {
|
|
2039
2039
|
(function(a) {
|
|
2040
2040
|
a.parser = function(u, n) {
|
|
@@ -2124,7 +2124,7 @@ function Zr() {
|
|
|
2124
2124
|
end: function() {
|
|
2125
2125
|
F(this);
|
|
2126
2126
|
},
|
|
2127
|
-
write:
|
|
2127
|
+
write: ar,
|
|
2128
2128
|
resume: function() {
|
|
2129
2129
|
return this.error = null, this;
|
|
2130
2130
|
},
|
|
@@ -2137,7 +2137,7 @@ function Zr() {
|
|
|
2137
2137
|
};
|
|
2138
2138
|
var o;
|
|
2139
2139
|
try {
|
|
2140
|
-
o =
|
|
2140
|
+
o = $t.Stream;
|
|
2141
2141
|
} catch {
|
|
2142
2142
|
o = function() {
|
|
2143
2143
|
};
|
|
@@ -2181,7 +2181,7 @@ function Zr() {
|
|
|
2181
2181
|
}), m.prototype.write = function(u) {
|
|
2182
2182
|
if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(u)) {
|
|
2183
2183
|
if (!this._decoder) {
|
|
2184
|
-
var n =
|
|
2184
|
+
var n = $t.StringDecoder;
|
|
2185
2185
|
this._decoder = new n("utf8");
|
|
2186
2186
|
}
|
|
2187
2187
|
u = this._decoder.write(u);
|
|
@@ -2580,22 +2580,22 @@ Char: ` + u.c), n = new Error(n), u.error = n, A(u, "onerror", n), u;
|
|
|
2580
2580
|
throw new Error("bad call to strictFail");
|
|
2581
2581
|
u.strict && j(u, n);
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function sr(u) {
|
|
2584
2584
|
u.strict || (u.tagName = u.tagName[u.looseCase]());
|
|
2585
2585
|
var n = u.tags[u.tags.length - 1] || u, M = u.tag = { name: u.tagName, attributes: {} };
|
|
2586
2586
|
u.opt.xmlns && (M.ns = n.ns), u.attribList.length = 0, _(u, "onopentagstart", M);
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function Bt(u, n) {
|
|
2589
2589
|
var M = u.indexOf(":"), w = M < 0 ? ["", u] : u.split(":"), R = w[0], q = w[1];
|
|
2590
2590
|
return n && u === "xmlns" && (R = "xmlns", q = ""), { prefix: R, local: q };
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2592
|
+
function qt(u) {
|
|
2593
2593
|
if (u.strict || (u.attribName = u.attribName[u.looseCase]()), u.attribList.indexOf(u.attribName) !== -1 || u.tag.attributes.hasOwnProperty(u.attribName)) {
|
|
2594
2594
|
u.attribName = u.attribValue = "";
|
|
2595
2595
|
return;
|
|
2596
2596
|
}
|
|
2597
2597
|
if (u.opt.xmlns) {
|
|
2598
|
-
var n =
|
|
2598
|
+
var n = Bt(u.attribName, !0), M = n.prefix, w = n.local;
|
|
2599
2599
|
if (M === "xmlns")
|
|
2600
2600
|
if (w === "xml" && u.attribValue !== g)
|
|
2601
2601
|
S(
|
|
@@ -2623,7 +2623,7 @@ Actual: ` + u.attribValue
|
|
|
2623
2623
|
}
|
|
2624
2624
|
function Z(u, n) {
|
|
2625
2625
|
if (u.opt.xmlns) {
|
|
2626
|
-
var M = u.tag, w =
|
|
2626
|
+
var M = u.tag, w = Bt(u.tagName);
|
|
2627
2627
|
M.prefix = w.prefix, M.local = w.local, M.uri = M.ns[w.prefix] || "", M.prefix && !M.uri && (S(u, "Unbound namespace prefix: " + JSON.stringify(u.tagName)), M.uri = w.prefix);
|
|
2628
2628
|
var R = u.tags[u.tags.length - 1] || u;
|
|
2629
2629
|
M.ns && R.ns !== M.ns && Object.keys(M.ns).forEach(function(ce) {
|
|
@@ -2633,20 +2633,20 @@ Actual: ` + u.attribValue
|
|
|
2633
2633
|
});
|
|
2634
2634
|
});
|
|
2635
2635
|
for (var q = 0, U = u.attribList.length; q < U; q++) {
|
|
2636
|
-
var k = u.attribList[q], $ = k[0], J = k[1], V =
|
|
2636
|
+
var k = u.attribList[q], $ = k[0], J = k[1], V = Bt($, !0), z = V.prefix, cr = V.local, ae = z === "" ? "" : M.ns[z] || "", Vt = {
|
|
2637
2637
|
name: $,
|
|
2638
2638
|
value: J,
|
|
2639
2639
|
prefix: z,
|
|
2640
|
-
local:
|
|
2640
|
+
local: cr,
|
|
2641
2641
|
uri: ae
|
|
2642
2642
|
};
|
|
2643
|
-
z && z !== "xmlns" && !ae && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)),
|
|
2643
|
+
z && z !== "xmlns" && !ae && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), Vt.uri = z), u.tag.attributes[$] = Vt, _(u, "onattribute", Vt);
|
|
2644
2644
|
}
|
|
2645
2645
|
u.attribList.length = 0;
|
|
2646
2646
|
}
|
|
2647
2647
|
u.tag.isSelfClosing = !!n, u.sawRoot = !0, u.tags.push(u.tag), _(u, "onopentag", u.tag), n || (!u.noscript && u.tagName.toLowerCase() === "script" ? u.state = r.SCRIPT : u.state = r.TEXT, u.tag = null, u.tagName = ""), u.attribName = u.attribValue = "", u.attribList.length = 0;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function Ut(u) {
|
|
2650
2650
|
if (!u.tagName) {
|
|
2651
2651
|
S(u, "Weird empty close tag."), u.textNode += "</>", u.state = r.TEXT;
|
|
2652
2652
|
return;
|
|
@@ -2686,7 +2686,7 @@ Actual: ` + u.attribValue
|
|
|
2686
2686
|
}
|
|
2687
2687
|
n === 0 && (u.closedRoot = !0), u.tagName = u.attribValue = u.attribName = "", u.attribList.length = 0, u.state = r.TEXT;
|
|
2688
2688
|
}
|
|
2689
|
-
function
|
|
2689
|
+
function ur(u) {
|
|
2690
2690
|
var n = u.entity, M = n.toLowerCase(), w, R = "";
|
|
2691
2691
|
return u.ENTITIES[n] ? u.ENTITIES[n] : u.ENTITIES[M] ? u.ENTITIES[M] : (n = M, n.charAt(0) === "#" && (n.charAt(1) === "x" ? (n = n.slice(2), w = parseInt(n, 16), R = w.toString(16)) : (n = n.slice(1), w = parseInt(n, 10), R = w.toString(10))), n = n.replace(/^0+/, ""), isNaN(w) || R.toLowerCase() !== n ? (S(u, "Invalid character entity"), "&" + u.entity + ";") : String.fromCodePoint(w));
|
|
2692
2692
|
}
|
|
@@ -2697,7 +2697,7 @@ Actual: ` + u.attribValue
|
|
|
2697
2697
|
var M = "";
|
|
2698
2698
|
return n < u.length && (M = u.charAt(n)), M;
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function ar(u) {
|
|
2701
2701
|
var n = this;
|
|
2702
2702
|
if (this.error)
|
|
2703
2703
|
throw this.error;
|
|
@@ -2810,10 +2810,10 @@ Actual: ` + u.attribValue
|
|
|
2810
2810
|
}), n.procInstName = n.procInstBody = "", n.state = r.TEXT) : (n.procInstBody += "?" + w, n.state = r.PROC_INST_BODY);
|
|
2811
2811
|
continue;
|
|
2812
2812
|
case r.OPEN_TAG:
|
|
2813
|
-
L(P, w) ? n.tagName += w : (
|
|
2813
|
+
L(P, w) ? n.tagName += w : (sr(n), w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : (c(w) || S(n, "Invalid character in tag name"), n.state = r.ATTRIB));
|
|
2814
2814
|
continue;
|
|
2815
2815
|
case r.OPEN_TAG_SLASH:
|
|
2816
|
-
w === ">" ? (Z(n, !0),
|
|
2816
|
+
w === ">" ? (Z(n, !0), Ut(n)) : (S(n, "Forward-slash in opening tag not followed by >"), n.state = r.ATTRIB);
|
|
2817
2817
|
continue;
|
|
2818
2818
|
case r.ATTRIB:
|
|
2819
2819
|
if (c(w))
|
|
@@ -2821,7 +2821,7 @@ Actual: ` + u.attribValue
|
|
|
2821
2821
|
w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
|
|
2822
2822
|
continue;
|
|
2823
2823
|
case r.ATTRIB_NAME:
|
|
2824
|
-
w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName,
|
|
2824
|
+
w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName, qt(n), Z(n)) : c(w) ? n.state = r.ATTRIB_NAME_SAW_WHITE : L(P, w) ? n.attribName += w : S(n, "Invalid attribute name");
|
|
2825
2825
|
continue;
|
|
2826
2826
|
case r.ATTRIB_NAME_SAW_WHITE:
|
|
2827
2827
|
if (w === "=")
|
|
@@ -2845,7 +2845,7 @@ Actual: ` + u.attribValue
|
|
|
2845
2845
|
w === "&" ? n.state = r.ATTRIB_VALUE_ENTITY_Q : n.attribValue += w;
|
|
2846
2846
|
continue;
|
|
2847
2847
|
}
|
|
2848
|
-
|
|
2848
|
+
qt(n), n.q = "", n.state = r.ATTRIB_VALUE_CLOSED;
|
|
2849
2849
|
continue;
|
|
2850
2850
|
case r.ATTRIB_VALUE_CLOSED:
|
|
2851
2851
|
c(w) ? n.state = r.ATTRIB : w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (S(n, "No whitespace between attributes"), n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
|
|
@@ -2855,11 +2855,11 @@ Actual: ` + u.attribValue
|
|
|
2855
2855
|
w === "&" ? n.state = r.ATTRIB_VALUE_ENTITY_U : n.attribValue += w;
|
|
2856
2856
|
continue;
|
|
2857
2857
|
}
|
|
2858
|
-
|
|
2858
|
+
qt(n), w === ">" ? Z(n) : n.state = r.ATTRIB;
|
|
2859
2859
|
continue;
|
|
2860
2860
|
case r.CLOSE_TAG:
|
|
2861
2861
|
if (n.tagName)
|
|
2862
|
-
w === ">" ?
|
|
2862
|
+
w === ">" ? Ut(n) : L(P, w) ? n.tagName += w : n.script ? (n.script += "</" + n.tagName, n.tagName = "", n.state = r.SCRIPT) : (c(w) || S(n, "Invalid tagname in closing tag"), n.state = r.CLOSE_TAG_SAW_WHITE);
|
|
2863
2863
|
else {
|
|
2864
2864
|
if (c(w))
|
|
2865
2865
|
continue;
|
|
@@ -2869,7 +2869,7 @@ Actual: ` + u.attribValue
|
|
|
2869
2869
|
case r.CLOSE_TAG_SAW_WHITE:
|
|
2870
2870
|
if (c(w))
|
|
2871
2871
|
continue;
|
|
2872
|
-
w === ">" ?
|
|
2872
|
+
w === ">" ? Ut(n) : S(n, "Invalid characters in closing tag");
|
|
2873
2873
|
continue;
|
|
2874
2874
|
case r.TEXT_ENTITY:
|
|
2875
2875
|
case r.ATTRIB_VALUE_ENTITY_Q:
|
|
@@ -2887,7 +2887,7 @@ Actual: ` + u.attribValue
|
|
|
2887
2887
|
break;
|
|
2888
2888
|
}
|
|
2889
2889
|
if (w === ";") {
|
|
2890
|
-
var $ =
|
|
2890
|
+
var $ = ur(n);
|
|
2891
2891
|
n.opt.unparsedEntities && !Object.values(a.XML_ENTITIES).includes($) ? (n.entity = "", n.state = U, n.write($)) : (n[k] += $, n.entity = "", n.state = U);
|
|
2892
2892
|
} else L(n.entity.length ? s : E, w) ? n.entity += w : (S(n, "Invalid character in entity name"), n[k] += "&" + n.entity + w, n.entity = "", n.state = U);
|
|
2893
2893
|
continue;
|
|
@@ -2920,10 +2920,10 @@ Actual: ` + u.attribValue
|
|
|
2920
2920
|
}) : String.fromCodePoint = M;
|
|
2921
2921
|
}();
|
|
2922
2922
|
})(i);
|
|
2923
|
-
}(
|
|
2923
|
+
}(kt)), kt;
|
|
2924
2924
|
}
|
|
2925
2925
|
var nt = { exports: {} }, Ge;
|
|
2926
|
-
function
|
|
2926
|
+
function tn() {
|
|
2927
2927
|
if (Ge) return nt.exports;
|
|
2928
2928
|
Ge = 1;
|
|
2929
2929
|
var i = typeof Reflect == "object" ? Reflect : null, a = i && typeof i.apply == "function" ? i.apply : function(f, T, L) {
|
|
@@ -3135,7 +3135,7 @@ function Jr() {
|
|
|
3135
3135
|
return nt.exports;
|
|
3136
3136
|
}
|
|
3137
3137
|
var it = {}, Ye;
|
|
3138
|
-
function
|
|
3138
|
+
function en() {
|
|
3139
3139
|
return Ye || (Ye = 1, (function() {
|
|
3140
3140
|
it.stripBOM = function(i) {
|
|
3141
3141
|
return i[0] === "\uFEFF" ? i.substring(1) : i;
|
|
@@ -3143,7 +3143,7 @@ function tn() {
|
|
|
3143
3143
|
}).call(it)), it;
|
|
3144
3144
|
}
|
|
3145
3145
|
var Q = {}, Ke;
|
|
3146
|
-
function
|
|
3146
|
+
function or() {
|
|
3147
3147
|
return Ke || (Ke = 1, (function() {
|
|
3148
3148
|
var i;
|
|
3149
3149
|
i = new RegExp(/(?!xmlns)^.*:/), Q.normalize = function(a) {
|
|
@@ -3160,7 +3160,7 @@ function ir() {
|
|
|
3160
3160
|
}).call(Q)), Q;
|
|
3161
3161
|
}
|
|
3162
3162
|
var ze;
|
|
3163
|
-
function
|
|
3163
|
+
function rn() {
|
|
3164
3164
|
return ze || (ze = 1, function(i) {
|
|
3165
3165
|
(function() {
|
|
3166
3166
|
var a, D, p, h, t, e, o, l, b, m = function(g, O) {
|
|
@@ -3175,7 +3175,7 @@ function en() {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
return x.prototype = O.prototype, g.prototype = new x(), g.__super__ = O.prototype, g;
|
|
3177
3177
|
}, d = {}.hasOwnProperty;
|
|
3178
|
-
l =
|
|
3178
|
+
l = Jr(), h = tn(), a = en(), o = or(), b = $t.setImmediate, D = Wt().defaults, t = function(g) {
|
|
3179
3179
|
return typeof g == "object" && g != null && Object.keys(g).length === 0;
|
|
3180
3180
|
}, e = function(g, O, I) {
|
|
3181
3181
|
var x, P, E;
|
|
@@ -3315,7 +3315,7 @@ function en() {
|
|
|
3315
3315
|
}(rt)), rt;
|
|
3316
3316
|
}
|
|
3317
3317
|
var He;
|
|
3318
|
-
function
|
|
3318
|
+
function nn() {
|
|
3319
3319
|
return He || (He = 1, (function() {
|
|
3320
3320
|
var i, a, D, p, h = function(e, o) {
|
|
3321
3321
|
for (var l in o)
|
|
@@ -3325,7 +3325,7 @@ function rn() {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
return b.prototype = o.prototype, e.prototype = new b(), e.__super__ = o.prototype, e;
|
|
3327
3327
|
}, t = {}.hasOwnProperty;
|
|
3328
|
-
a = Wt(), i =
|
|
3328
|
+
a = Wt(), i = Hr(), D = rn(), p = or(), G.defaults = a.defaults, G.processors = p, G.ValidationError = function(e) {
|
|
3329
3329
|
h(o, e);
|
|
3330
3330
|
function o(l) {
|
|
3331
3331
|
this.message = l;
|
|
@@ -3334,16 +3334,17 @@ function rn() {
|
|
|
3334
3334
|
}(Error), G.Builder = i.Builder, G.Parser = D.Parser, G.parseString = D.parseString, G.parseStringPromise = D.parseStringPromise;
|
|
3335
3335
|
}).call(G)), G;
|
|
3336
3336
|
}
|
|
3337
|
-
var
|
|
3338
|
-
const on = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss") && typeof i.rss == "object" && i.rss !== null && i.rss.hasOwnProperty("channel") && Array.isArray(i.rss.channel), sn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("image") && Array.isArray(i.image) && i.image.every(un) && i.hasOwnProperty("generator") && Array.isArray(i.generator) && i.hasOwnProperty("lastBuildDate") && Array.isArray(i.lastBuildDate) && i.hasOwnProperty("atom:link") && Array.isArray(i["atom:link"]) && i["atom:link"].every(an) && i.hasOwnProperty("copyright") && Array.isArray(i.copyright) && i.hasOwnProperty("language") && Array.isArray(i.language) && i.hasOwnProperty("webMaster") && Array.isArray(i.webMaster) && i.hasOwnProperty("itunes:owner") && Array.isArray(i["itunes:owner"]) && i["itunes:owner"].every(cn) && i.hasOwnProperty("itunes:author") && Array.isArray(i["itunes:author"]) && i.hasOwnProperty("googleplay:owner") && Array.isArray(i["googleplay:owner"]) && i.hasOwnProperty("googleplay:email") && Array.isArray(i["googleplay:email"]) && i.hasOwnProperty("googleplay:author") && Array.isArray(i["googleplay:author"]) && i.hasOwnProperty("item") && Array.isArray(i.item) && i.item.every(ln), un = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("url") && Array.isArray(i.url) && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("link") && Array.isArray(i.link), an = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("href") && typeof i.$.href == "string" && i.$.hasOwnProperty("rel") && typeof i.$.rel == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", cn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("itunes:email") && Array.isArray(i["itunes:email"]) && i.hasOwnProperty("itunes:name") && Array.isArray(i["itunes:name"]), ln = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("guid") && Array.isArray(i.guid) && i.guid.every(fn) && i.hasOwnProperty("dc:creator") && Array.isArray(i["dc:creator"]) && i.hasOwnProperty("pubDate") && Array.isArray(i.pubDate) && i.hasOwnProperty("enclosure") && Array.isArray(i.enclosure) && i.enclosure.every(pn) && i.hasOwnProperty("content:encoded") && Array.isArray(i["content:encoded"]), fn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("_") && typeof i._ == "string" && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("isPermaLink") && typeof i.$.isPermaLink == "string", pn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("url") && typeof i.$.url == "string" && i.$.hasOwnProperty("length") && typeof i.$.length == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", hn = (i) => i && i.contents && i.status.http_code == 200, dn = "https://api.allorigins.win/get?url=",
|
|
3337
|
+
var Qe = nn();
|
|
3338
|
+
const on = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss") && typeof i.rss == "object" && i.rss !== null && i.rss.hasOwnProperty("channel") && Array.isArray(i.rss.channel), sn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("image") && Array.isArray(i.image) && i.image.every(un) && i.hasOwnProperty("generator") && Array.isArray(i.generator) && i.hasOwnProperty("lastBuildDate") && Array.isArray(i.lastBuildDate) && i.hasOwnProperty("atom:link") && Array.isArray(i["atom:link"]) && i["atom:link"].every(an) && i.hasOwnProperty("copyright") && Array.isArray(i.copyright) && i.hasOwnProperty("language") && Array.isArray(i.language) && i.hasOwnProperty("webMaster") && Array.isArray(i.webMaster) && i.hasOwnProperty("itunes:owner") && Array.isArray(i["itunes:owner"]) && i["itunes:owner"].every(cn) && i.hasOwnProperty("itunes:author") && Array.isArray(i["itunes:author"]) && i.hasOwnProperty("googleplay:owner") && Array.isArray(i["googleplay:owner"]) && i.hasOwnProperty("googleplay:email") && Array.isArray(i["googleplay:email"]) && i.hasOwnProperty("googleplay:author") && Array.isArray(i["googleplay:author"]) && i.hasOwnProperty("item") && Array.isArray(i.item) && i.item.every(ln), un = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("url") && Array.isArray(i.url) && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("link") && Array.isArray(i.link), an = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("href") && typeof i.$.href == "string" && i.$.hasOwnProperty("rel") && typeof i.$.rel == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", cn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("itunes:email") && Array.isArray(i["itunes:email"]) && i.hasOwnProperty("itunes:name") && Array.isArray(i["itunes:name"]), ln = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("guid") && Array.isArray(i.guid) && i.guid.every(fn) && i.hasOwnProperty("dc:creator") && Array.isArray(i["dc:creator"]) && i.hasOwnProperty("pubDate") && Array.isArray(i.pubDate) && i.hasOwnProperty("enclosure") && Array.isArray(i.enclosure) && i.enclosure.every(pn) && i.hasOwnProperty("content:encoded") && Array.isArray(i["content:encoded"]), fn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("_") && typeof i._ == "string" && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("isPermaLink") && typeof i.$.isPermaLink == "string", pn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("url") && typeof i.$.url == "string" && i.$.hasOwnProperty("length") && typeof i.$.length == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", hn = (i) => i && i.contents && i.status.http_code == 200, dn = "https://api.allorigins.win/get?url=", Ft = typeof document < "u", yn = async (i) => {
|
|
3339
3339
|
try {
|
|
3340
|
-
const a =
|
|
3341
|
-
if (D.ok) return
|
|
3340
|
+
const a = Ft ? `${dn}${encodeURIComponent(i)}` : i, D = await fetch(a);
|
|
3341
|
+
if (console.log(`isBrowser - ${Ft}, path - ${a}`), D.ok) return Ft ? D.json() : D.text();
|
|
3342
3342
|
} catch {
|
|
3343
3343
|
throw new Error("Error occurred fetching Feed from Substack");
|
|
3344
3344
|
}
|
|
3345
|
-
},
|
|
3346
|
-
|
|
3345
|
+
}, Ze = async (i = "", a) => {
|
|
3346
|
+
if (!a) return Qe.parseStringPromise(i);
|
|
3347
|
+
Qe.parseString(i, a);
|
|
3347
3348
|
}, mn = (i) => ({
|
|
3348
3349
|
title: i.title[0],
|
|
3349
3350
|
description: i.description[0],
|
|
@@ -3352,14 +3353,11 @@ const on = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss")
|
|
|
3352
3353
|
content: i["content:encoded"][0]
|
|
3353
3354
|
}), gn = async (i, a) => {
|
|
3354
3355
|
const D = await yn(i);
|
|
3355
|
-
if (
|
|
3356
|
-
|
|
3357
|
-
await Qe(D, a);
|
|
3358
|
-
return;
|
|
3359
|
-
}
|
|
3356
|
+
if (console.log(`rawXML - ${D}`), !Ft)
|
|
3357
|
+
return Ze(D, a);
|
|
3360
3358
|
if (!hn(D))
|
|
3361
3359
|
throw new Error("Error occurred fetching Feed from Substack");
|
|
3362
|
-
await
|
|
3360
|
+
await Ze(D.contents, a);
|
|
3363
3361
|
}, wn = (i, a) => {
|
|
3364
3362
|
if (!on(i)) throw new Error("Feed is not in the correct format");
|
|
3365
3363
|
try {
|