@das-fed/mframe 0.0.13 → 0.0.14
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/es5.js +276 -274
- package/index.d.ts +2 -3
- package/index.js +250 -248
- package/package.json +1 -1
package/es5.js
CHANGED
|
@@ -1171,12 +1171,12 @@ function su(e, t) {
|
|
|
1171
1171
|
O,
|
|
1172
1172
|
$,
|
|
1173
1173
|
j = false,
|
|
1174
|
-
|
|
1174
|
+
F = false;
|
|
1175
1175
|
if (Ve(e) ? (h = function h() {
|
|
1176
1176
|
return e.value;
|
|
1177
1177
|
}, j = rt(e)) : An(e) ? (h = function h() {
|
|
1178
1178
|
return p(e);
|
|
1179
|
-
}, j = true) : ce(e) ? (
|
|
1179
|
+
}, j = true) : ce(e) ? (F = true, j = e.some(function (L) {
|
|
1180
1180
|
return An(L) || rt(L);
|
|
1181
1181
|
}), h = function h() {
|
|
1182
1182
|
return e.map(function (L) {
|
|
@@ -1210,9 +1210,9 @@ function su(e, t) {
|
|
|
1210
1210
|
return Wt(L(), ne);
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1213
|
+
var q = Pa(),
|
|
1214
1214
|
te = function te() {
|
|
1215
|
-
d.stop(),
|
|
1215
|
+
d.stop(), q && q.active && Xo(q.effects, d);
|
|
1216
1216
|
};
|
|
1217
1217
|
if (s && t) {
|
|
1218
1218
|
var _L = t;
|
|
@@ -1220,11 +1220,11 @@ function su(e, t) {
|
|
|
1220
1220
|
_L.apply(void 0, arguments), te();
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
|
-
var U =
|
|
1223
|
+
var U = F ? new Array(e.length).fill(yr) : yr;
|
|
1224
1224
|
var re = function re(L) {
|
|
1225
1225
|
if (!(!(d.flags & 1) || !d.dirty && !L)) if (t) {
|
|
1226
1226
|
var _ne = d.run();
|
|
1227
|
-
if (o || j || (
|
|
1227
|
+
if (o || j || (F ? _ne.some(function (le, pe) {
|
|
1228
1228
|
return Zt(le, U[pe]);
|
|
1229
1229
|
}) : Zt(_ne, U))) {
|
|
1230
1230
|
O && O();
|
|
@@ -1233,7 +1233,7 @@ function su(e, t) {
|
|
|
1233
1233
|
try {
|
|
1234
1234
|
var pe = [_ne,
|
|
1235
1235
|
// pass undefined as the old value when it's changed for the first time
|
|
1236
|
-
U === yr ? void 0 :
|
|
1236
|
+
U === yr ? void 0 : F && U[0] === yr ? [] : U, $];
|
|
1237
1237
|
l ? l(t, 3, pe) :
|
|
1238
1238
|
// @ts-expect-error
|
|
1239
1239
|
t.apply(void 0, pe), U = _ne;
|
|
@@ -1801,13 +1801,13 @@ function Wr(e, t, n, r) {
|
|
|
1801
1801
|
var $ = He(l),
|
|
1802
1802
|
j = Ve(l);
|
|
1803
1803
|
if ($ || j) {
|
|
1804
|
-
var
|
|
1804
|
+
var F = function F() {
|
|
1805
1805
|
if (e.f) {
|
|
1806
|
-
var
|
|
1807
|
-
o ? ce(
|
|
1806
|
+
var q = $ ? O(l) ? d[l] : p[l] : l.value;
|
|
1807
|
+
o ? ce(q) && Xo(q, s) : ce(q) ? q.includes(s) || q.push(s) : $ ? (p[l] = [s], O(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
|
|
1808
1808
|
} else $ ? (p[l] = i, O(l) && (d[l] = i)) : j ? (l.value = i, e.k && (p[e.k] = i)) : process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, "(".concat(_typeof(l), ")"));
|
|
1809
1809
|
};
|
|
1810
|
-
i ? (
|
|
1810
|
+
i ? (F.id = -1, st(F, n)) : F();
|
|
1811
1811
|
} else process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, "(".concat(_typeof(l), ")"));
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
@@ -2115,8 +2115,8 @@ function Yu(e) {
|
|
|
2115
2115
|
O = t.beforeUpdate,
|
|
2116
2116
|
$ = t.updated,
|
|
2117
2117
|
j = t.activated,
|
|
2118
|
-
|
|
2119
|
-
|
|
2118
|
+
F = t.deactivated,
|
|
2119
|
+
q = t.beforeDestroy,
|
|
2120
2120
|
te = t.beforeUnmount,
|
|
2121
2121
|
U = t.destroyed,
|
|
2122
2122
|
re = t.unmounted,
|
|
@@ -2126,57 +2126,57 @@ function Yu(e) {
|
|
|
2126
2126
|
pe = t.errorCaptured,
|
|
2127
2127
|
K = t.serverPrefetch,
|
|
2128
2128
|
k = t.expose,
|
|
2129
|
-
|
|
2129
|
+
B = t.inheritAttrs,
|
|
2130
2130
|
N = t.components,
|
|
2131
2131
|
se = t.directives,
|
|
2132
2132
|
ge = t.filters,
|
|
2133
2133
|
we = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
2134
2134
|
if (process.env.NODE_ENV !== "production") {
|
|
2135
2135
|
var _e$propsOptions2 = _slicedToArray(e.propsOptions, 1),
|
|
2136
|
-
|
|
2137
|
-
if (
|
|
2136
|
+
J = _e$propsOptions2[0];
|
|
2137
|
+
if (J) for (var ie in J) we("Props", ie);
|
|
2138
2138
|
}
|
|
2139
|
-
if (E && qu(E, r, we), i) for (var
|
|
2140
|
-
var _ie = i[
|
|
2141
|
-
ue(_ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r,
|
|
2139
|
+
if (E && qu(E, r, we), i) for (var _J in i) {
|
|
2140
|
+
var _ie = i[_J];
|
|
2141
|
+
ue(_ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, _J, {
|
|
2142
2142
|
value: _ie.bind(n),
|
|
2143
2143
|
configurable: true,
|
|
2144
2144
|
enumerable: true,
|
|
2145
2145
|
writable: true
|
|
2146
|
-
}) : r[
|
|
2146
|
+
}) : r[_J] = _ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", _J)) : process.env.NODE_ENV !== "production" && H("Method \"".concat(_J, "\" has type \"").concat(_typeof(_ie), "\" in the component definition. Did you reference the function correctly?"));
|
|
2147
2147
|
}
|
|
2148
2148
|
if (o) {
|
|
2149
2149
|
process.env.NODE_ENV !== "production" && !ue(o) && H("The data option must be a function. Plain object usage is no longer supported.");
|
|
2150
|
-
var
|
|
2151
|
-
if (process.env.NODE_ENV !== "production" && Zo(
|
|
2150
|
+
var _J2 = o.call(n, n);
|
|
2151
|
+
if (process.env.NODE_ENV !== "production" && Zo(_J2) && H("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."), !De(_J2)) process.env.NODE_ENV !== "production" && H("data() should return an object.");else if (e.data = cs(_J2), process.env.NODE_ENV !== "production") {
|
|
2152
2152
|
var _loop2 = function _loop2(_ie2) {
|
|
2153
2153
|
we("Data", _ie2), hs(_ie2[0]) || Object.defineProperty(r, _ie2, {
|
|
2154
2154
|
configurable: true,
|
|
2155
2155
|
enumerable: true,
|
|
2156
2156
|
get: function get() {
|
|
2157
|
-
return
|
|
2157
|
+
return _J2[_ie2];
|
|
2158
2158
|
},
|
|
2159
2159
|
set: Fe
|
|
2160
2160
|
});
|
|
2161
2161
|
};
|
|
2162
|
-
for (var _ie2 in
|
|
2162
|
+
for (var _ie2 in _J2) {
|
|
2163
2163
|
_loop2(_ie2);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
if (Ho = true, s) {
|
|
2168
|
-
var _loop3 = function _loop3(
|
|
2169
|
-
var ie = s[
|
|
2168
|
+
var _loop3 = function _loop3(_J3) {
|
|
2169
|
+
var ie = s[_J3],
|
|
2170
2170
|
ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
|
|
2171
|
-
process.env.NODE_ENV !== "production" && ye === Fe && H("Computed property \"".concat(
|
|
2171
|
+
process.env.NODE_ENV !== "production" && ye === Fe && H("Computed property \"".concat(_J3, "\" has no getter."));
|
|
2172
2172
|
var D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? function () {
|
|
2173
|
-
H("Write operation failed: computed property \"".concat(
|
|
2173
|
+
H("Write operation failed: computed property \"".concat(_J3, "\" is readonly."));
|
|
2174
2174
|
} : Fe,
|
|
2175
2175
|
Oe = bt({
|
|
2176
2176
|
get: ye,
|
|
2177
2177
|
set: D
|
|
2178
2178
|
});
|
|
2179
|
-
Object.defineProperty(r,
|
|
2179
|
+
Object.defineProperty(r, _J3, {
|
|
2180
2180
|
enumerable: true,
|
|
2181
2181
|
configurable: true,
|
|
2182
2182
|
get: function get() {
|
|
@@ -2185,29 +2185,29 @@ function Yu(e) {
|
|
|
2185
2185
|
set: function set(Re) {
|
|
2186
2186
|
return Oe.value = Re;
|
|
2187
2187
|
}
|
|
2188
|
-
}), process.env.NODE_ENV !== "production" && we("Computed",
|
|
2188
|
+
}), process.env.NODE_ENV !== "production" && we("Computed", _J3);
|
|
2189
2189
|
};
|
|
2190
|
-
for (var
|
|
2191
|
-
_loop3(
|
|
2190
|
+
for (var _J3 in s) {
|
|
2191
|
+
_loop3(_J3);
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
if (c) for (var
|
|
2194
|
+
if (c) for (var _J4 in c) wc(c[_J4], r, n, _J4);
|
|
2195
2195
|
if (l) {
|
|
2196
|
-
var
|
|
2197
|
-
Reflect.ownKeys(
|
|
2198
|
-
el(ie,
|
|
2196
|
+
var _J5 = ue(l) ? l.call(n) : l;
|
|
2197
|
+
Reflect.ownKeys(_J5).forEach(function (ie) {
|
|
2198
|
+
el(ie, _J5[ie]);
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
2201
|
p && Ms(p, e, "c");
|
|
2202
|
-
function ve(
|
|
2202
|
+
function ve(J, ie) {
|
|
2203
2203
|
ce(ie) ? ie.forEach(function (ye) {
|
|
2204
|
-
return
|
|
2205
|
-
}) : ie &&
|
|
2204
|
+
return J(ye.bind(n));
|
|
2205
|
+
}) : ie && J(ie.bind(n));
|
|
2206
2206
|
}
|
|
2207
|
-
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu,
|
|
2208
|
-
var
|
|
2207
|
+
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu, F), ve(Fu, pe), ve(Wu, ne), ve(Hu, le), ve(Vu, te), ve(_c, re), ve(ju, K), ce(k)) if (k.length) {
|
|
2208
|
+
var _J6 = e.exposed || (e.exposed = {});
|
|
2209
2209
|
k.forEach(function (ie) {
|
|
2210
|
-
Object.defineProperty(
|
|
2210
|
+
Object.defineProperty(_J6, ie, {
|
|
2211
2211
|
get: function get() {
|
|
2212
2212
|
return n[ie];
|
|
2213
2213
|
},
|
|
@@ -2217,7 +2217,7 @@ function Yu(e) {
|
|
|
2217
2217
|
});
|
|
2218
2218
|
});
|
|
2219
2219
|
} else e.exposed || (e.exposed = {});
|
|
2220
|
-
L && e.render === Fe && (e.render = L),
|
|
2220
|
+
L && e.render === Fe && (e.render = L), B != null && (e.inheritAttrs = B), N && (e.components = N), se && (e.directives = se), K && vc(e);
|
|
2221
2221
|
}
|
|
2222
2222
|
function qu(e, t) {
|
|
2223
2223
|
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Fe;
|
|
@@ -2604,18 +2604,18 @@ function xc(e, t) {
|
|
|
2604
2604
|
} : je({}, h),
|
|
2605
2605
|
$ = O.type;
|
|
2606
2606
|
var j = false,
|
|
2607
|
-
|
|
2608
|
-
if (ce($)) for (var
|
|
2609
|
-
var te = $[
|
|
2607
|
+
F = true;
|
|
2608
|
+
if (ce($)) for (var q = 0; q < $.length; ++q) {
|
|
2609
|
+
var te = $[q],
|
|
2610
2610
|
U = ue(te) && te.name;
|
|
2611
2611
|
if (U === "Boolean") {
|
|
2612
2612
|
j = true;
|
|
2613
2613
|
break;
|
|
2614
|
-
} else U === "String" && (
|
|
2614
|
+
} else U === "String" && (F = false);
|
|
2615
2615
|
} else j = ue($) && $.name === "Boolean";
|
|
2616
2616
|
O[0
|
|
2617
2617
|
/* shouldCast */] = j, O[1
|
|
2618
|
-
/* shouldCastTrue */] =
|
|
2618
|
+
/* shouldCastTrue */] = F, (j || be(O, "default")) && c.push(_d4);
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
@@ -2819,10 +2819,10 @@ function ml(e, t) {
|
|
|
2819
2819
|
M = g.shapeFlag;
|
|
2820
2820
|
switch (T) {
|
|
2821
2821
|
case dr:
|
|
2822
|
-
|
|
2822
|
+
F(f, g, y, C);
|
|
2823
2823
|
break;
|
|
2824
2824
|
case ut:
|
|
2825
|
-
|
|
2825
|
+
q(f, g, y, C);
|
|
2826
2826
|
break;
|
|
2827
2827
|
case Tr:
|
|
2828
2828
|
f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
|
|
@@ -2835,13 +2835,13 @@ function ml(e, t) {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
G != null && R && Wr(G, f && f.ref, _, g || f, !g);
|
|
2837
2837
|
},
|
|
2838
|
-
|
|
2838
|
+
F = function F(f, g, y, C) {
|
|
2839
2839
|
if (f == null) r(g.el = c(g.children), y, C);else {
|
|
2840
2840
|
var R = g.el = f.el;
|
|
2841
2841
|
g.children !== f.children && E(R, g.children);
|
|
2842
2842
|
}
|
|
2843
2843
|
},
|
|
2844
|
-
|
|
2844
|
+
q = function q(f, g, y, C) {
|
|
2845
2845
|
f == null ? r(g.el = l(g.children || ""), y, C) : g.el = f.el;
|
|
2846
2846
|
},
|
|
2847
2847
|
te = function te(f, g, y, C) {
|
|
@@ -2917,7 +2917,7 @@ function ml(e, t) {
|
|
|
2917
2917
|
var M = f.props || Ne,
|
|
2918
2918
|
Q = g.props || Ne;
|
|
2919
2919
|
var oe;
|
|
2920
|
-
if (y && rn(y, false), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, true), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = false, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (
|
|
2920
|
+
if (y && rn(y, false), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, true), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = false, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (B(f.dynamicChildren, T, b, y, C, yo(g, R), _), process.env.NODE_ENV !== "production" && Nr(f, g)) : P || ye(f, g, b, null, y, C, yo(g, R), _, false), A > 0) {
|
|
2921
2921
|
if (A & 16) N(b, M, Q, y, R);else if (A & 2 && M["class"] !== Q["class"] && s(b, "class", null, Q["class"], R), A & 4 && s(b, "style", M.style, Q.style, R), A & 8) {
|
|
2922
2922
|
var Ee = g.dynamicProps;
|
|
2923
2923
|
for (var Te = 0; Te < Ee.length; Te++) {
|
|
@@ -2933,7 +2933,7 @@ function ml(e, t) {
|
|
|
2933
2933
|
oe && _t(oe, y, g, f), G && nn(g, f, y, "updated");
|
|
2934
2934
|
}, C);
|
|
2935
2935
|
},
|
|
2936
|
-
|
|
2936
|
+
B = function B(f, g, y, C, R, _, P) {
|
|
2937
2937
|
for (var b = 0; b < g.length; b++) {
|
|
2938
2938
|
var A = f[b],
|
|
2939
2939
|
T = g[b],
|
|
@@ -2983,7 +2983,7 @@ function ml(e, t) {
|
|
|
2983
2983
|
g.children || [], y, G, R, _, P, b, A)) : M > 0 && M & 64 && Q &&
|
|
2984
2984
|
// #2715 the previous fragment could've been a BAILed one as a result
|
|
2985
2985
|
// of renderSlot() with no valid children
|
|
2986
|
-
f.dynamicChildren ? (
|
|
2986
|
+
f.dynamicChildren ? (B(f.dynamicChildren, Q, y, R, _, P, b), process.env.NODE_ENV !== "production" ? Nr(f, g) :
|
|
2987
2987
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2988
2988
|
// get moved around. Make sure all root level vnodes inherit el.
|
|
2989
2989
|
// #2134 or if it's a component root, it may also get moved around
|
|
@@ -2997,11 +2997,11 @@ function ml(e, t) {
|
|
|
2997
2997
|
we = function we(f, g, y, C, R, _, P) {
|
|
2998
2998
|
var b = f.component = Vl(f, C, R);
|
|
2999
2999
|
if (process.env.NODE_ENV !== "production" && b.type.__hmrId && hu(b), process.env.NODE_ENV !== "production" && (wr(f), _n(b, "mount")), ds(f) && (b.ctx.renderer = W), process.env.NODE_ENV !== "production" && _n(b, "init"), Wl(b, false, P), process.env.NODE_ENV !== "production" && bn(b, "init"), b.asyncDep) {
|
|
3000
|
-
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b,
|
|
3000
|
+
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, J, P), !f.el) {
|
|
3001
3001
|
var A = b.subTree = at(ut);
|
|
3002
|
-
|
|
3002
|
+
q(null, A, g, y);
|
|
3003
3003
|
}
|
|
3004
|
-
} else
|
|
3004
|
+
} else J(b, f, g, y, R, _, P);
|
|
3005
3005
|
process.env.NODE_ENV !== "production" && (Or(), bn(b, "mount"));
|
|
3006
3006
|
},
|
|
3007
3007
|
ve = function ve(f, g, y) {
|
|
@@ -3013,7 +3013,7 @@ function ml(e, t) {
|
|
|
3013
3013
|
} else C.next = g, C.update();
|
|
3014
3014
|
} else g.el = f.el, C.vnode = g;
|
|
3015
3015
|
},
|
|
3016
|
-
|
|
3016
|
+
J = function J(f, g, y, C, R, _, P) {
|
|
3017
3017
|
var _b = function b() {
|
|
3018
3018
|
if (f.isMounted) {
|
|
3019
3019
|
var M = f.next,
|
|
@@ -3333,7 +3333,7 @@ function ml(e, t) {
|
|
|
3333
3333
|
mt: we,
|
|
3334
3334
|
mc: K,
|
|
3335
3335
|
pc: ye,
|
|
3336
|
-
pbc:
|
|
3336
|
+
pbc: B,
|
|
3337
3337
|
n: _de,
|
|
3338
3338
|
o: e
|
|
3339
3339
|
};
|
|
@@ -3538,8 +3538,8 @@ function Bs(e) {
|
|
|
3538
3538
|
O = e.setupState,
|
|
3539
3539
|
$ = e.ctx,
|
|
3540
3540
|
j = e.inheritAttrs,
|
|
3541
|
-
|
|
3542
|
-
var
|
|
3541
|
+
F = Hr(e);
|
|
3542
|
+
var q, te;
|
|
3543
3543
|
process.env.NODE_ENV !== "production" && (Uo = false);
|
|
3544
3544
|
try {
|
|
3545
3545
|
if (n.shapeFlag & 4) {
|
|
@@ -3549,10 +3549,10 @@ function Bs(e) {
|
|
|
3549
3549
|
return H("Property '".concat(String(pe), "' was accessed via 'this'. Avoid using 'this' in templates.")), Reflect.get(le, pe, K);
|
|
3550
3550
|
}
|
|
3551
3551
|
}) : L;
|
|
3552
|
-
|
|
3552
|
+
q = dt(E.call(ne, L, p, process.env.NODE_ENV !== "production" ? Nt(d) : d, O, h, $)), te = c;
|
|
3553
3553
|
} else {
|
|
3554
3554
|
var _L2 = t;
|
|
3555
|
-
process.env.NODE_ENV !== "production" && c === d && Ur(),
|
|
3555
|
+
process.env.NODE_ENV !== "production" && c === d && Ur(), q = dt(_L2.length > 1 ? _L2(process.env.NODE_ENV !== "production" ? Nt(d) : d, process.env.NODE_ENV !== "production" ? {
|
|
3556
3556
|
get attrs() {
|
|
3557
3557
|
return Ur(), Nt(c);
|
|
3558
3558
|
},
|
|
@@ -3565,11 +3565,11 @@ function Bs(e) {
|
|
|
3565
3565
|
}) : _L2(process.env.NODE_ENV !== "production" ? Nt(d) : d, null)), te = t.props ? c : Sl(c);
|
|
3566
3566
|
}
|
|
3567
3567
|
} catch (L) {
|
|
3568
|
-
er.length = 0, fr(L, e, 1),
|
|
3568
|
+
er.length = 0, fr(L, e, 1), q = at(ut);
|
|
3569
3569
|
}
|
|
3570
|
-
var U =
|
|
3570
|
+
var U = q,
|
|
3571
3571
|
re;
|
|
3572
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3572
|
+
if (process.env.NODE_ENV !== "production" && q.patchFlag > 0 && q.patchFlag & 2048 && (_jc = _jc3(q), _jc2 = _slicedToArray(_jc, 2), U = _jc2[0], re = _jc2[1], _jc), te && j !== false) {
|
|
3573
3573
|
var _L3 = Object.keys(te),
|
|
3574
3574
|
_U = U,
|
|
3575
3575
|
_ne3 = _U.shapeFlag;
|
|
@@ -3578,7 +3578,7 @@ function Bs(e) {
|
|
|
3578
3578
|
var le = Object.keys(c),
|
|
3579
3579
|
pe = [],
|
|
3580
3580
|
K = [];
|
|
3581
|
-
for (var k = 0,
|
|
3581
|
+
for (var k = 0, B = le.length; k < B; k++) {
|
|
3582
3582
|
var N = le[k];
|
|
3583
3583
|
ur(N) ? Ir(N) || pe.push(N[2].toLowerCase() + N.slice(3)) : K.push(N);
|
|
3584
3584
|
}
|
|
@@ -3586,7 +3586,7 @@ function Bs(e) {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
|
-
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(U) && H("Runtime directive used on component with non-element root node. The directives will not function as intended."), U = en(U, null, false, true), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H("Component inside <Transition> renders non-element root node that cannot be animated."), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) :
|
|
3589
|
+
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(U) && H("Runtime directive used on component with non-element root node. The directives will not function as intended."), U = en(U, null, false, true), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H("Component inside <Transition> renders non-element root node that cannot be animated."), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : q = U, Hr(F), q;
|
|
3590
3590
|
}
|
|
3591
3591
|
var _jc3 = function jc(e) {
|
|
3592
3592
|
var t = e.children,
|
|
@@ -4664,14 +4664,14 @@ var _f = {
|
|
|
4664
4664
|
return p.value.activeMicroAppName || "";
|
|
4665
4665
|
}),
|
|
4666
4666
|
j = bt(function () {
|
|
4667
|
-
var K, k,
|
|
4667
|
+
var K, k, B, N, se, ge;
|
|
4668
4668
|
return {
|
|
4669
4669
|
navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
|
|
4670
|
-
menuWidth: (((N = (
|
|
4670
|
+
menuWidth: (((N = (B = p.value) == null ? void 0 : B.menuRect) == null ? void 0 : N.width) || 0) + "px",
|
|
4671
4671
|
tabHeight: (((ge = (se = p.value) == null ? void 0 : se.tabRect) == null ? void 0 : ge.height) || 0) + "px"
|
|
4672
4672
|
};
|
|
4673
4673
|
}),
|
|
4674
|
-
|
|
4674
|
+
F = bt(function () {
|
|
4675
4675
|
return {
|
|
4676
4676
|
position: "relative",
|
|
4677
4677
|
height: "100%",
|
|
@@ -4679,33 +4679,33 @@ var _f = {
|
|
|
4679
4679
|
flexDirection: "column"
|
|
4680
4680
|
};
|
|
4681
4681
|
}),
|
|
4682
|
-
|
|
4682
|
+
q = function q(K) {
|
|
4683
4683
|
var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
4684
|
-
var
|
|
4684
|
+
var B = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
4685
4685
|
var N = null;
|
|
4686
4686
|
return function () {
|
|
4687
4687
|
for (var _len18 = arguments.length, se = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
|
4688
4688
|
se[_key18] = arguments[_key18];
|
|
4689
4689
|
}
|
|
4690
|
-
|
|
4690
|
+
B && !N && K.apply(void 0, se), clearTimeout(N), N = setTimeout(function () {
|
|
4691
4691
|
K.apply(void 0, se);
|
|
4692
4692
|
}, k);
|
|
4693
4693
|
};
|
|
4694
4694
|
},
|
|
4695
4695
|
te = function te() {
|
|
4696
|
-
function K(
|
|
4696
|
+
function K(B) {
|
|
4697
4697
|
var N = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;
|
|
4698
|
-
if (!
|
|
4699
|
-
var se =
|
|
4698
|
+
if (!B) return;
|
|
4699
|
+
var se = B.getBoundingClientRect(),
|
|
4700
4700
|
ge = se.x,
|
|
4701
4701
|
we = se.y,
|
|
4702
4702
|
ve = se.width,
|
|
4703
|
-
|
|
4703
|
+
J = se.height,
|
|
4704
4704
|
ie = ge,
|
|
4705
4705
|
ye = we,
|
|
4706
4706
|
D = ge + ve,
|
|
4707
|
-
Oe = we +
|
|
4708
|
-
Re = [document.documentElement, document.body,
|
|
4707
|
+
Oe = we + J,
|
|
4708
|
+
Re = [document.documentElement, document.body, B, h.menu.value, h.nav.value, h.tab.value, O.mount.value];
|
|
4709
4709
|
for (var Pe = ie; Pe < D; Pe += N) for (var S = ye; S < Oe; S += N) {
|
|
4710
4710
|
var x = document.elementFromPoint(Pe, S);
|
|
4711
4711
|
if (x && !Re.includes(x)) return x;
|
|
@@ -4718,7 +4718,7 @@ var _f = {
|
|
|
4718
4718
|
x: -1,
|
|
4719
4719
|
y: -1
|
|
4720
4720
|
},
|
|
4721
|
-
re =
|
|
4721
|
+
re = q(function (K, k, B) {
|
|
4722
4722
|
if (!(U.x === k.x && U.y === k.y)) {
|
|
4723
4723
|
if (U.x = k.x, U.y = k.x, K === "mouseenter") {
|
|
4724
4724
|
if (l.value) {
|
|
@@ -4726,17 +4726,17 @@ var _f = {
|
|
|
4726
4726
|
microAppStickStatus: false
|
|
4727
4727
|
});
|
|
4728
4728
|
s.data.set({
|
|
4729
|
-
microAppStickStatus:
|
|
4729
|
+
microAppStickStatus: B === "mount"
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
4732
|
if (E.value) {
|
|
4733
4733
|
if (te()) return c.cors.send("microAppStickStatus", true);
|
|
4734
|
-
c.cors.send("microAppStickStatus",
|
|
4734
|
+
c.cors.send("microAppStickStatus", B === "mount");
|
|
4735
4735
|
}
|
|
4736
4736
|
}
|
|
4737
4737
|
if (K === "mousemove" && E.value) {
|
|
4738
4738
|
if (te()) return c.cors.send("microAppStickStatus", true);
|
|
4739
|
-
c.cors.send("microAppStickStatus",
|
|
4739
|
+
c.cors.send("microAppStickStatus", B === "mount");
|
|
4740
4740
|
}
|
|
4741
4741
|
}
|
|
4742
4742
|
}, 20),
|
|
@@ -4767,22 +4767,22 @@ var _f = {
|
|
|
4767
4767
|
pe = qe(null);
|
|
4768
4768
|
if (l.value) {
|
|
4769
4769
|
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
4770
|
-
var
|
|
4770
|
+
var B;
|
|
4771
4771
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
4772
4772
|
while (1) switch (_context3.prev = _context3.next) {
|
|
4773
4773
|
case 0:
|
|
4774
|
-
|
|
4774
|
+
B = function B(N) {
|
|
4775
4775
|
var we;
|
|
4776
4776
|
var se = (we = h[N]) == null ? void 0 : we.value,
|
|
4777
4777
|
ge = function ge() {
|
|
4778
4778
|
var _ref33 = (se == null ? void 0 : se.getBoundingClientRect()) || {},
|
|
4779
4779
|
ve = _ref33.x,
|
|
4780
|
-
|
|
4780
|
+
J = _ref33.y,
|
|
4781
4781
|
ie = _ref33.width,
|
|
4782
4782
|
ye = _ref33.height;
|
|
4783
4783
|
s.data.set(_defineProperty({}, "".concat(N, "Rect"), {
|
|
4784
4784
|
x: ve,
|
|
4785
|
-
y:
|
|
4785
|
+
y: J,
|
|
4786
4786
|
width: ie,
|
|
4787
4787
|
height: ye
|
|
4788
4788
|
}));
|
|
@@ -4807,7 +4807,7 @@ var _f = {
|
|
|
4807
4807
|
}, ge);
|
|
4808
4808
|
});
|
|
4809
4809
|
case 3:
|
|
4810
|
-
|
|
4810
|
+
B(N);
|
|
4811
4811
|
case 4:
|
|
4812
4812
|
case "end":
|
|
4813
4813
|
return _context.stop();
|
|
@@ -4852,13 +4852,13 @@ var _f = {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
}, _callee3);
|
|
4854
4854
|
}))(), s.data.watch(function () {
|
|
4855
|
-
var
|
|
4856
|
-
if (!
|
|
4855
|
+
var B = p.value.activeMicroAppName;
|
|
4856
|
+
if (!B) return;
|
|
4857
4857
|
var N = s.data.get(s.expose.getLayoutDataKeys());
|
|
4858
|
-
i.cors.send(
|
|
4859
|
-
}, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", function (
|
|
4858
|
+
i.cors.send(B, "layoutDataChange", N);
|
|
4859
|
+
}, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", function (B) {
|
|
4860
4860
|
s.data.set({
|
|
4861
|
-
microAppStickStatus:
|
|
4861
|
+
microAppStickStatus: B.data
|
|
4862
4862
|
});
|
|
4863
4863
|
});
|
|
4864
4864
|
var _ga = ga(),
|
|
@@ -4878,9 +4878,9 @@ var _f = {
|
|
|
4878
4878
|
var _K = K,
|
|
4879
4879
|
_k = _K.appInfo,
|
|
4880
4880
|
_K$parentData = _K.parentData,
|
|
4881
|
-
|
|
4881
|
+
B = _K$parentData === void 0 ? {} : _K$parentData;
|
|
4882
4882
|
setTimeout(function () {
|
|
4883
|
-
s.data.set(
|
|
4883
|
+
s.data.set(B.layoutData);
|
|
4884
4884
|
}, 0), c.data.set({
|
|
4885
4885
|
appInfo: _k
|
|
4886
4886
|
}), c.cors.on("layoutDataChange", function (se) {
|
|
@@ -4929,14 +4929,14 @@ var _f = {
|
|
|
4929
4929
|
s.event.emit("onMounted");
|
|
4930
4930
|
}), function (K, k) {
|
|
4931
4931
|
return Mt(), Yt("div", {
|
|
4932
|
-
style: jt(
|
|
4932
|
+
style: jt(F.value)
|
|
4933
4933
|
}, [_r(Lt("header", {
|
|
4934
4934
|
ref: h.nav,
|
|
4935
|
-
onMouseenter: k[0] || (k[0] = function (
|
|
4936
|
-
return qt(re)("mouseenter",
|
|
4935
|
+
onMouseenter: k[0] || (k[0] = function (B) {
|
|
4936
|
+
return qt(re)("mouseenter", B, "nav");
|
|
4937
4937
|
}),
|
|
4938
|
-
onMousemove: k[1] || (k[1] = function (
|
|
4939
|
-
return qt(re)("mousemove",
|
|
4938
|
+
onMousemove: k[1] || (k[1] = function (B) {
|
|
4939
|
+
return qt(re)("mousemove", B, "nav");
|
|
4940
4940
|
})
|
|
4941
4941
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4942
4942
|
key: 0,
|
|
@@ -4953,11 +4953,11 @@ var _f = {
|
|
|
4953
4953
|
style: {
|
|
4954
4954
|
height: "100%"
|
|
4955
4955
|
},
|
|
4956
|
-
onMouseenter: k[2] || (k[2] = function (
|
|
4957
|
-
return qt(re)("mouseenter",
|
|
4956
|
+
onMouseenter: k[2] || (k[2] = function (B) {
|
|
4957
|
+
return qt(re)("mouseenter", B, "menu");
|
|
4958
4958
|
}),
|
|
4959
|
-
onMousemove: k[3] || (k[3] = function (
|
|
4960
|
-
return qt(re)("mousemove",
|
|
4959
|
+
onMousemove: k[3] || (k[3] = function (B) {
|
|
4960
|
+
return qt(re)("mousemove", B, "menu");
|
|
4961
4961
|
})
|
|
4962
4962
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4963
4963
|
key: 0,
|
|
@@ -4974,11 +4974,11 @@ var _f = {
|
|
|
4974
4974
|
}])
|
|
4975
4975
|
}, null, 4)) : on("", true)], 544), [[zn, d.value.menu]]), Lt("main", bf, [_r(Lt("header", {
|
|
4976
4976
|
ref: h.tab,
|
|
4977
|
-
onMouseenter: k[4] || (k[4] = function (
|
|
4978
|
-
return qt(re)("mouseenter",
|
|
4977
|
+
onMouseenter: k[4] || (k[4] = function (B) {
|
|
4978
|
+
return qt(re)("mouseenter", B, "tab");
|
|
4979
4979
|
}),
|
|
4980
|
-
onMousemove: k[5] || (k[5] = function (
|
|
4981
|
-
return qt(re)("mousemove",
|
|
4980
|
+
onMousemove: k[5] || (k[5] = function (B) {
|
|
4981
|
+
return qt(re)("mousemove", B, "tab");
|
|
4982
4982
|
})
|
|
4983
4983
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4984
4984
|
key: 0,
|
|
@@ -4996,8 +4996,8 @@ var _f = {
|
|
|
4996
4996
|
flex: "1",
|
|
4997
4997
|
"min-height": "0"
|
|
4998
4998
|
}, L.value]),
|
|
4999
|
-
onMouseenter: k[6] || (k[6] = function (
|
|
5000
|
-
return qt(re)("mouseenter",
|
|
4999
|
+
onMouseenter: k[6] || (k[6] = function (B) {
|
|
5000
|
+
return qt(re)("mouseenter", B, "mount");
|
|
5001
5001
|
})
|
|
5002
5002
|
}, [Lt("div", {
|
|
5003
5003
|
ref: O.mount,
|
|
@@ -5097,38 +5097,38 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5097
5097
|
s = _Zc.addRouterEventListener;
|
|
5098
5098
|
i = Xc();
|
|
5099
5099
|
c = qe(t);
|
|
5100
|
-
r.data.watch(function (
|
|
5101
|
-
return c.value =
|
|
5100
|
+
r.data.watch(function (F) {
|
|
5101
|
+
return c.value = F.microApps;
|
|
5102
5102
|
}, ["microApps"]), r.data.set({
|
|
5103
5103
|
microApps: t
|
|
5104
5104
|
});
|
|
5105
5105
|
_ga2 = ga(), l = _ga2.registerIframe, E = _ga2.loadIframe, p = _ga2.hideIframe, d = _ga2.iframeEvent, h = _ga2.checkIframeStatus;
|
|
5106
|
-
d.on("mounted", function (
|
|
5106
|
+
d.on("mounted", function (F) {
|
|
5107
5107
|
var _ref41;
|
|
5108
5108
|
var U;
|
|
5109
|
-
o.expose.connectMicroApp(
|
|
5110
|
-
var
|
|
5111
|
-
return re.name ===
|
|
5109
|
+
o.expose.connectMicroApp(F);
|
|
5110
|
+
var q = r.data.get().microApps.find(function (re) {
|
|
5111
|
+
return re.name === F.name;
|
|
5112
5112
|
});
|
|
5113
|
-
if (!
|
|
5114
|
-
if (!((_ref41 = (U =
|
|
5113
|
+
if (!q) return;
|
|
5114
|
+
if (!((_ref41 = (U = q.router) == null ? void 0 : U.sync) !== null && _ref41 !== void 0 ? _ref41 : true)) {
|
|
5115
5115
|
j();
|
|
5116
5116
|
return;
|
|
5117
5117
|
}
|
|
5118
|
-
}), t.filter(function (
|
|
5119
|
-
return
|
|
5120
|
-
}).map(function (
|
|
5121
|
-
i.addRule(
|
|
5118
|
+
}), t.filter(function (F) {
|
|
5119
|
+
return F.activeRule;
|
|
5120
|
+
}).map(function (F) {
|
|
5121
|
+
i.addRule(F.name, F.activeRule), l(F.name, F);
|
|
5122
5122
|
});
|
|
5123
5123
|
O = qe(false);
|
|
5124
|
-
o.cors.on("reportRouter", function (
|
|
5124
|
+
o.cors.on("reportRouter", function (F) {
|
|
5125
5125
|
var _ref43;
|
|
5126
5126
|
var N, se, ge;
|
|
5127
|
-
var _ref42 =
|
|
5128
|
-
|
|
5129
|
-
if (!
|
|
5127
|
+
var _ref42 = F || {},
|
|
5128
|
+
q = _ref42.data;
|
|
5129
|
+
if (!q.appInfo) return;
|
|
5130
5130
|
var te = r.data.get().microApps.find(function (we) {
|
|
5131
|
-
return we.name ===
|
|
5131
|
+
return we.name === q.appInfo.name;
|
|
5132
5132
|
});
|
|
5133
5133
|
if (!te || !((_ref43 = (N = te.router) == null ? void 0 : N.sync) !== null && _ref43 !== void 0 ? _ref43 : true) || !h(te.name, ["mounted", "activated"])) return;
|
|
5134
5134
|
var _URL = new URL(window.location.href),
|
|
@@ -5136,33 +5136,34 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5136
5136
|
L = _URL.hash,
|
|
5137
5137
|
ne = _URL.search;
|
|
5138
5138
|
var le = re + ne;
|
|
5139
|
-
var _URL2 = new URL(
|
|
5139
|
+
var _URL2 = new URL(q.href),
|
|
5140
5140
|
pe = _URL2.pathname,
|
|
5141
5141
|
K = _URL2.hash,
|
|
5142
5142
|
k = _URL2.search;
|
|
5143
|
-
var
|
|
5144
|
-
((se = te.router) == null ? void 0 : se.mode) === "hash" && (
|
|
5143
|
+
var B = pe + k;
|
|
5144
|
+
((se = te.router) == null ? void 0 : se.mode) === "hash" && (B = K.replace("#", "")), ((ge = r.data.get().initOptions.router) == null ? void 0 : ge.mode) === "hash" && (le = "/".concat(L), B = "/#".concat(B)), le !== B && (O.value = true, setTimeout(function () {
|
|
5145
5145
|
O.value = false;
|
|
5146
|
-
}, 300), i.replaceState(
|
|
5147
|
-
}), o.cors.on("customEventFromMicro", function (
|
|
5148
|
-
|
|
5146
|
+
}, 300), i.replaceState(B));
|
|
5147
|
+
}), o.cors.on("customEventFromMicro", function (F) {
|
|
5148
|
+
var q, te;
|
|
5149
|
+
(q = F == null ? void 0 : F.data) != null && q.eventName && o.event.emit(F.data.eventName, (te = F.data) == null ? void 0 : te.params);
|
|
5149
5150
|
});
|
|
5150
|
-
$ = function $(
|
|
5151
|
+
$ = function $(F, q) {
|
|
5151
5152
|
var re;
|
|
5152
|
-
var te =
|
|
5153
|
+
var te = q.path;
|
|
5153
5154
|
var U = te;
|
|
5154
|
-
((re =
|
|
5155
|
-
appInfo:
|
|
5156
|
-
parentRouter:
|
|
5155
|
+
((re = F.router) == null ? void 0 : re.mode) === "hash" && (U = "/#".concat(te)), o.cors.send(F.name, "syncRouter", {
|
|
5156
|
+
appInfo: F,
|
|
5157
|
+
parentRouter: q,
|
|
5157
5158
|
replacePath: U
|
|
5158
5159
|
});
|
|
5159
5160
|
};
|
|
5160
|
-
window.addEventListener("popstate", function (
|
|
5161
|
+
window.addEventListener("popstate", function (F) {
|
|
5161
5162
|
j();
|
|
5162
5163
|
});
|
|
5163
5164
|
j = /*#__PURE__*/function () {
|
|
5164
5165
|
var _ref44 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
5165
|
-
var K, k,
|
|
5166
|
+
var K, k, F, _URL3, q, te, U, re, L, ne, le, pe;
|
|
5166
5167
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
5167
5168
|
while (1) switch (_context7.prev = _context7.next) {
|
|
5168
5169
|
case 0:
|
|
@@ -5173,15 +5174,15 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5173
5174
|
return _context7.abrupt("return");
|
|
5174
5175
|
case 2:
|
|
5175
5176
|
_context7.next = 4;
|
|
5176
|
-
return new Promise(function (
|
|
5177
|
-
return setTimeout(
|
|
5177
|
+
return new Promise(function (B) {
|
|
5178
|
+
return setTimeout(B, 0);
|
|
5178
5179
|
});
|
|
5179
5180
|
case 4:
|
|
5180
|
-
|
|
5181
|
-
re =
|
|
5182
|
-
|
|
5183
|
-
L = i.match(re), ne = c.value.find(function (
|
|
5184
|
-
return L ? L ===
|
|
5181
|
+
F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", _URL3 = new URL(window.location.href), q = _URL3.pathname, te = _URL3.hash, U = _URL3.search;
|
|
5182
|
+
re = q + U;
|
|
5183
|
+
F === "hash" && (re = te.replace("#", ""));
|
|
5184
|
+
L = i.match(re), ne = c.value.find(function (B) {
|
|
5185
|
+
return L ? L === B.name : false;
|
|
5185
5186
|
});
|
|
5186
5187
|
le = re;
|
|
5187
5188
|
if (!(((k = ne == null ? void 0 : ne.router) == null ? void 0 : k.mode) === "hash" && (le = "/#".concat(re)), !ne)) {
|
|
@@ -5198,7 +5199,7 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5198
5199
|
});
|
|
5199
5200
|
pe = {
|
|
5200
5201
|
href: window.location.href,
|
|
5201
|
-
mode:
|
|
5202
|
+
mode: F,
|
|
5202
5203
|
path: re
|
|
5203
5204
|
};
|
|
5204
5205
|
_context7.t0 = h(ne.name, "deactivated");
|
|
@@ -5267,7 +5268,7 @@ function ro() {
|
|
|
5267
5268
|
O = "(?!".concat(n, "{0,1}").concat(l, ")"),
|
|
5268
5269
|
$ = "(?!".concat(p, ")"),
|
|
5269
5270
|
j = "[^.".concat(s, "]"),
|
|
5270
|
-
|
|
5271
|
+
F = "".concat(c, "*?"),
|
|
5271
5272
|
te = {
|
|
5272
5273
|
DOT_LITERAL: n,
|
|
5273
5274
|
PLUS_LITERAL: r,
|
|
@@ -5282,7 +5283,7 @@ function ro() {
|
|
|
5282
5283
|
NO_DOT_SLASH: O,
|
|
5283
5284
|
NO_DOTS_SLASH: $,
|
|
5284
5285
|
QMARK_NO_DOT: j,
|
|
5285
|
-
STAR:
|
|
5286
|
+
STAR: F,
|
|
5286
5287
|
START_ANCHOR: E,
|
|
5287
5288
|
SEP: "/"
|
|
5288
5289
|
},
|
|
@@ -5533,10 +5534,10 @@ function Sf() {
|
|
|
5533
5534
|
O = _ro2.CHAR_RIGHT_CURLY_BRACE,
|
|
5534
5535
|
$ = _ro2.CHAR_RIGHT_PARENTHESES,
|
|
5535
5536
|
j = _ro2.CHAR_RIGHT_SQUARE_BRACKET,
|
|
5536
|
-
|
|
5537
|
+
F = function F(U) {
|
|
5537
5538
|
return U === c || U === r;
|
|
5538
5539
|
},
|
|
5539
|
-
|
|
5540
|
+
q = function q(U) {
|
|
5540
5541
|
U.isPrefix !== true && (U.depth = U.isGlobstar ? 1 / 0 : 1);
|
|
5541
5542
|
};
|
|
5542
5543
|
return Ao = function Ao(U, re) {
|
|
@@ -5546,13 +5547,13 @@ function Sf() {
|
|
|
5546
5547
|
pe = [],
|
|
5547
5548
|
K = [],
|
|
5548
5549
|
k = [];
|
|
5549
|
-
var
|
|
5550
|
+
var B = U,
|
|
5550
5551
|
N = -1,
|
|
5551
5552
|
se = 0,
|
|
5552
5553
|
ge = 0,
|
|
5553
5554
|
we = false,
|
|
5554
5555
|
ve = false,
|
|
5555
|
-
|
|
5556
|
+
J = false,
|
|
5556
5557
|
ie = false,
|
|
5557
5558
|
ye = false,
|
|
5558
5559
|
D = false,
|
|
@@ -5572,10 +5573,10 @@ function Sf() {
|
|
|
5572
5573
|
return N >= ne;
|
|
5573
5574
|
},
|
|
5574
5575
|
_e = function _e() {
|
|
5575
|
-
return
|
|
5576
|
+
return B.charCodeAt(N + 1);
|
|
5576
5577
|
},
|
|
5577
5578
|
W = function W() {
|
|
5578
|
-
return ke = Z,
|
|
5579
|
+
return ke = Z, B.charCodeAt(++N);
|
|
5579
5580
|
};
|
|
5580
5581
|
for (; N < ne;) {
|
|
5581
5582
|
Z = W();
|
|
@@ -5595,11 +5596,11 @@ function Sf() {
|
|
|
5595
5596
|
continue;
|
|
5596
5597
|
}
|
|
5597
5598
|
if (D !== true && Z === s && (Z = W()) === s) {
|
|
5598
|
-
if (we = de.isBrace = true,
|
|
5599
|
+
if (we = de.isBrace = true, J = de.isGlob = true, S = true, le === true) continue;
|
|
5599
5600
|
break;
|
|
5600
5601
|
}
|
|
5601
5602
|
if (D !== true && Z === o) {
|
|
5602
|
-
if (we = de.isBrace = true,
|
|
5603
|
+
if (we = de.isBrace = true, J = de.isGlob = true, S = true, le === true) continue;
|
|
5603
5604
|
break;
|
|
5604
5605
|
}
|
|
5605
5606
|
if (Z === O && (x--, x === 0)) {
|
|
@@ -5624,14 +5625,14 @@ function Sf() {
|
|
|
5624
5625
|
continue;
|
|
5625
5626
|
}
|
|
5626
5627
|
if (L.noext !== true && (Z === d || Z === n || Z === t || Z === h || Z === i) === true && _e() === E) {
|
|
5627
|
-
if (
|
|
5628
|
+
if (J = de.isGlob = true, ie = de.isExtglob = true, S = true, Z === i && N === se && (Pe = true), le === true) {
|
|
5628
5629
|
for (; $e() !== true && (Z = W());) {
|
|
5629
5630
|
if (Z === r) {
|
|
5630
5631
|
Oe = de.backslashes = true, Z = W();
|
|
5631
5632
|
continue;
|
|
5632
5633
|
}
|
|
5633
5634
|
if (Z === $) {
|
|
5634
|
-
|
|
5635
|
+
J = de.isGlob = true, S = true;
|
|
5635
5636
|
break;
|
|
5636
5637
|
}
|
|
5637
5638
|
}
|
|
@@ -5640,11 +5641,11 @@ function Sf() {
|
|
|
5640
5641
|
break;
|
|
5641
5642
|
}
|
|
5642
5643
|
if (Z === t) {
|
|
5643
|
-
if (ke === t && (ye = de.isGlobstar = true),
|
|
5644
|
+
if (ke === t && (ye = de.isGlobstar = true), J = de.isGlob = true, S = true, le === true) continue;
|
|
5644
5645
|
break;
|
|
5645
5646
|
}
|
|
5646
5647
|
if (Z === h) {
|
|
5647
|
-
if (
|
|
5648
|
+
if (J = de.isGlob = true, S = true, le === true) continue;
|
|
5648
5649
|
break;
|
|
5649
5650
|
}
|
|
5650
5651
|
if (Z === p) {
|
|
@@ -5654,7 +5655,7 @@ function Sf() {
|
|
|
5654
5655
|
continue;
|
|
5655
5656
|
}
|
|
5656
5657
|
if (C === j) {
|
|
5657
|
-
ve = de.isBracket = true,
|
|
5658
|
+
ve = de.isBracket = true, J = de.isGlob = true, S = true;
|
|
5658
5659
|
break;
|
|
5659
5660
|
}
|
|
5660
5661
|
}
|
|
@@ -5666,7 +5667,7 @@ function Sf() {
|
|
|
5666
5667
|
continue;
|
|
5667
5668
|
}
|
|
5668
5669
|
if (L.noparen !== true && Z === E) {
|
|
5669
|
-
if (
|
|
5670
|
+
if (J = de.isGlob = true, le === true) {
|
|
5670
5671
|
for (; $e() !== true && (Z = W());) {
|
|
5671
5672
|
if (Z === E) {
|
|
5672
5673
|
Oe = de.backslashes = true, Z = W();
|
|
@@ -5681,16 +5682,16 @@ function Sf() {
|
|
|
5681
5682
|
}
|
|
5682
5683
|
break;
|
|
5683
5684
|
}
|
|
5684
|
-
if (
|
|
5685
|
+
if (J === true) {
|
|
5685
5686
|
if (S = true, le === true) continue;
|
|
5686
5687
|
break;
|
|
5687
5688
|
}
|
|
5688
5689
|
}
|
|
5689
|
-
L.noext === true && (ie = false,
|
|
5690
|
-
var Me =
|
|
5690
|
+
L.noext === true && (ie = false, J = false);
|
|
5691
|
+
var Me = B,
|
|
5691
5692
|
f = "",
|
|
5692
5693
|
g = "";
|
|
5693
|
-
se > 0 && (f =
|
|
5694
|
+
se > 0 && (f = B.slice(0, se), B = B.slice(se), ge -= se), Me && J === true && ge > 0 ? (Me = B.slice(0, ge), g = B.slice(ge)) : J === true ? (Me = "", g = B) : Me = B, Me && Me !== "" && Me !== "/" && Me !== B && F(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === true && (g && (g = e.removeBackslashes(g)), Me && Oe === true && (Me = e.removeBackslashes(Me)));
|
|
5694
5695
|
var y = {
|
|
5695
5696
|
prefix: f,
|
|
5696
5697
|
input: U,
|
|
@@ -5699,23 +5700,23 @@ function Sf() {
|
|
|
5699
5700
|
glob: g,
|
|
5700
5701
|
isBrace: we,
|
|
5701
5702
|
isBracket: ve,
|
|
5702
|
-
isGlob:
|
|
5703
|
+
isGlob: J,
|
|
5703
5704
|
isExtglob: ie,
|
|
5704
5705
|
isGlobstar: ye,
|
|
5705
5706
|
negated: Re,
|
|
5706
5707
|
negatedExtglob: Pe
|
|
5707
5708
|
};
|
|
5708
|
-
if (L.tokens === true && (y.maxDepth = 0,
|
|
5709
|
+
if (L.tokens === true && (y.maxDepth = 0, F(Z) || K.push(de), y.tokens = K), L.parts === true || L.tokens === true) {
|
|
5709
5710
|
var _C;
|
|
5710
5711
|
for (var R = 0; R < pe.length; R++) {
|
|
5711
5712
|
var _ = _C ? _C + 1 : se,
|
|
5712
5713
|
P = pe[R],
|
|
5713
5714
|
b = U.slice(_, P);
|
|
5714
|
-
L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = true, K[R].value = f) : K[R].value = b,
|
|
5715
|
+
L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = true, K[R].value = f) : K[R].value = b, q(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), _C = P;
|
|
5715
5716
|
}
|
|
5716
5717
|
if (_C && _C + 1 < U.length) {
|
|
5717
5718
|
var _R = U.slice(_C + 1);
|
|
5718
|
-
k.push(_R), L.tokens && (K[K.length - 1].value = _R,
|
|
5719
|
+
k.push(_R), L.tokens && (K[K.length - 1].value = _R, q(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
|
|
5719
5720
|
}
|
|
5720
5721
|
y.slashes = pe, y.parts = k;
|
|
5721
5722
|
}
|
|
@@ -5761,8 +5762,8 @@ function Af() {
|
|
|
5761
5762
|
value: "",
|
|
5762
5763
|
output: h.prepend || ""
|
|
5763
5764
|
},
|
|
5764
|
-
|
|
5765
|
-
|
|
5765
|
+
F = [j],
|
|
5766
|
+
q = h.capture ? "" : "?:",
|
|
5766
5767
|
te = e.globChars(h.windows),
|
|
5767
5768
|
U = e.extglobChars(te),
|
|
5768
5769
|
re = te.DOT_LITERAL,
|
|
@@ -5772,15 +5773,15 @@ function Af() {
|
|
|
5772
5773
|
pe = te.DOTS_SLASH,
|
|
5773
5774
|
K = te.NO_DOT,
|
|
5774
5775
|
k = te.NO_DOT_SLASH,
|
|
5775
|
-
|
|
5776
|
+
B = te.NO_DOTS_SLASH,
|
|
5776
5777
|
N = te.QMARK,
|
|
5777
5778
|
se = te.QMARK_NO_DOT,
|
|
5778
5779
|
ge = te.STAR,
|
|
5779
5780
|
we = te.START_ANCHOR,
|
|
5780
5781
|
ve = function ve(_) {
|
|
5781
|
-
return "(".concat(
|
|
5782
|
+
return "(".concat(q, "(?:(?!").concat(we).concat(_.dot ? pe : re, ").)*?)");
|
|
5782
5783
|
},
|
|
5783
|
-
|
|
5784
|
+
J = h.dot ? "" : K,
|
|
5784
5785
|
ie = h.dot ? N : se;
|
|
5785
5786
|
var ye = h.bash === true ? ve(h) : ge;
|
|
5786
5787
|
h.capture && (ye = "(".concat(ye, ")")), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
@@ -5799,7 +5800,7 @@ function Af() {
|
|
|
5799
5800
|
parens: 0,
|
|
5800
5801
|
quotes: 0,
|
|
5801
5802
|
globstar: false,
|
|
5802
|
-
tokens:
|
|
5803
|
+
tokens: F
|
|
5803
5804
|
};
|
|
5804
5805
|
p = t.removePrefix(p, D), $ = p.length;
|
|
5805
5806
|
var Oe = [],
|
|
@@ -5849,7 +5850,7 @@ function Af() {
|
|
|
5849
5850
|
S.output = (S.output || S.value) + _.value, S.value += _.value;
|
|
5850
5851
|
return;
|
|
5851
5852
|
}
|
|
5852
|
-
_.prev = S,
|
|
5853
|
+
_.prev = S, F.push(_), S = _;
|
|
5853
5854
|
},
|
|
5854
5855
|
C = function C(_, P) {
|
|
5855
5856
|
var b = _objectSpread(_objectSpread({}, U[P]), {}, {
|
|
@@ -5929,7 +5930,7 @@ function Af() {
|
|
|
5929
5930
|
G = S.value.slice(_A + 2),
|
|
5930
5931
|
M = r[G];
|
|
5931
5932
|
if (M) {
|
|
5932
|
-
S.value = _T + M, D.backtrack = true, de(), !j.output &&
|
|
5933
|
+
S.value = _T + M, D.backtrack = true, de(), !j.output && F.indexOf(S) === 1 && (j.output = le);
|
|
5933
5934
|
continue;
|
|
5934
5935
|
}
|
|
5935
5936
|
}
|
|
@@ -6012,7 +6013,7 @@ function Af() {
|
|
|
6012
6013
|
D.output += _A2, S.value = _A2;
|
|
6013
6014
|
continue;
|
|
6014
6015
|
}
|
|
6015
|
-
S.value = "(".concat(
|
|
6016
|
+
S.value = "(".concat(q).concat(_A2, "|").concat(S.value, ")"), D.output += S.value;
|
|
6016
6017
|
continue;
|
|
6017
6018
|
}
|
|
6018
6019
|
if (x === "{" && h.nobrace !== true) {
|
|
@@ -6039,9 +6040,9 @@ function Af() {
|
|
|
6039
6040
|
}
|
|
6040
6041
|
var _A3 = ")";
|
|
6041
6042
|
if (_b6.dots === true) {
|
|
6042
|
-
var _T2 =
|
|
6043
|
+
var _T2 = F.slice(),
|
|
6043
6044
|
_G = [];
|
|
6044
|
-
for (var _M3 = _T2.length - 1; _M3 >= 0 && (
|
|
6045
|
+
for (var _M3 = _T2.length - 1; _M3 >= 0 && (F.pop(), _T2[_M3].type !== "brace"); _M3--) _T2[_M3].type !== "dots" && _G.unshift(_T2[_M3].value);
|
|
6045
6046
|
_A3 = c(_G, h), D.backtrack = true;
|
|
6046
6047
|
}
|
|
6047
6048
|
if (_b6.comma !== true && _b6.dots !== true) {
|
|
@@ -6087,7 +6088,7 @@ function Af() {
|
|
|
6087
6088
|
}
|
|
6088
6089
|
if (x === "/") {
|
|
6089
6090
|
if (S.type === "dot" && D.index === D.start + 1) {
|
|
6090
|
-
D.start = D.index + 1, D.consumed = "", D.output = "",
|
|
6091
|
+
D.start = D.index + 1, D.consumed = "", D.output = "", F.pop(), S = j;
|
|
6091
6092
|
continue;
|
|
6092
6093
|
}
|
|
6093
6094
|
y({
|
|
@@ -6285,14 +6286,14 @@ function Af() {
|
|
|
6285
6286
|
output: ye
|
|
6286
6287
|
};
|
|
6287
6288
|
if (h.bash === true) {
|
|
6288
|
-
_P.output = ".*?", (S.type === "bos" || S.type === "slash") && (_P.output =
|
|
6289
|
+
_P.output = ".*?", (S.type === "bos" || S.type === "slash") && (_P.output = J + _P.output), y(_P);
|
|
6289
6290
|
continue;
|
|
6290
6291
|
}
|
|
6291
6292
|
if (S && (S.type === "bracket" || S.type === "paren") && h.regex === true) {
|
|
6292
6293
|
_P.output = x, y(_P);
|
|
6293
6294
|
continue;
|
|
6294
6295
|
}
|
|
6295
|
-
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === true ? (D.output +=
|
|
6296
|
+
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === true ? (D.output += B, S.output += B) : (D.output += J, S.output += J), Z() !== "*" && (D.output += le, S.output += le)), y(_P);
|
|
6296
6297
|
}
|
|
6297
6298
|
for (; D.brackets > 0;) {
|
|
6298
6299
|
if (h.strictBrackets === true) throw new SyntaxError(l("closing", "]"));
|
|
@@ -6335,8 +6336,8 @@ function Af() {
|
|
|
6335
6336
|
p = i[p] || p;
|
|
6336
6337
|
var _e$globChars = e.globChars(h.windows),
|
|
6337
6338
|
j = _e$globChars.DOT_LITERAL,
|
|
6338
|
-
|
|
6339
|
-
|
|
6339
|
+
F = _e$globChars.SLASH_LITERAL,
|
|
6340
|
+
q = _e$globChars.ONE_CHAR,
|
|
6340
6341
|
te = _e$globChars.DOTS_SLASH,
|
|
6341
6342
|
U = _e$globChars.NO_DOT,
|
|
6342
6343
|
re = _e$globChars.NO_DOTS,
|
|
@@ -6346,45 +6347,45 @@ function Af() {
|
|
|
6346
6347
|
pe = h.dot ? re : U,
|
|
6347
6348
|
K = h.dot ? L : U,
|
|
6348
6349
|
k = h.capture ? "" : "?:",
|
|
6349
|
-
|
|
6350
|
+
B = {
|
|
6350
6351
|
negated: false,
|
|
6351
6352
|
prefix: ""
|
|
6352
6353
|
};
|
|
6353
6354
|
var N = h.bash === true ? ".*?" : ne;
|
|
6354
6355
|
h.capture && (N = "(".concat(N, ")"));
|
|
6355
|
-
var se = function se(
|
|
6356
|
-
return
|
|
6356
|
+
var se = function se(J) {
|
|
6357
|
+
return J.noglobstar === true ? N : "(".concat(k, "(?:(?!").concat(le).concat(J.dot ? te : j, ").)*?)");
|
|
6357
6358
|
},
|
|
6358
|
-
_ge = function ge(
|
|
6359
|
-
switch (
|
|
6359
|
+
_ge = function ge(J) {
|
|
6360
|
+
switch (J) {
|
|
6360
6361
|
case "*":
|
|
6361
|
-
return "".concat(pe).concat(
|
|
6362
|
+
return "".concat(pe).concat(q).concat(N);
|
|
6362
6363
|
case ".*":
|
|
6363
|
-
return "".concat(j).concat(
|
|
6364
|
+
return "".concat(j).concat(q).concat(N);
|
|
6364
6365
|
case "*.*":
|
|
6365
|
-
return "".concat(pe).concat(N).concat(j).concat(
|
|
6366
|
+
return "".concat(pe).concat(N).concat(j).concat(q).concat(N);
|
|
6366
6367
|
case "*/*":
|
|
6367
|
-
return "".concat(pe).concat(N).concat(
|
|
6368
|
+
return "".concat(pe).concat(N).concat(F).concat(q).concat(K).concat(N);
|
|
6368
6369
|
case "**":
|
|
6369
6370
|
return pe + se(h);
|
|
6370
6371
|
case "**/*":
|
|
6371
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6372
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(K).concat(q).concat(N);
|
|
6372
6373
|
case "**/*.*":
|
|
6373
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6374
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(K).concat(N).concat(j).concat(q).concat(N);
|
|
6374
6375
|
case "**/.*":
|
|
6375
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6376
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(j).concat(q).concat(N);
|
|
6376
6377
|
default:
|
|
6377
6378
|
{
|
|
6378
|
-
var ie = /^(.*?)\.(\w+)$/.exec(
|
|
6379
|
+
var ie = /^(.*?)\.(\w+)$/.exec(J);
|
|
6379
6380
|
if (!ie) return;
|
|
6380
6381
|
var ye = _ge(ie[1]);
|
|
6381
6382
|
return ye ? ye + j + ie[2] : void 0;
|
|
6382
6383
|
}
|
|
6383
6384
|
}
|
|
6384
6385
|
},
|
|
6385
|
-
we = t.removePrefix(p,
|
|
6386
|
+
we = t.removePrefix(p, B);
|
|
6386
6387
|
var ve = _ge(we);
|
|
6387
|
-
return ve && h.strictSlashes !== true && (ve += "".concat(
|
|
6388
|
+
return ve && h.strictSlashes !== true && (ve += "".concat(F, "?")), ve;
|
|
6388
6389
|
}, No = _E2, No;
|
|
6389
6390
|
}
|
|
6390
6391
|
var To, pi;
|
|
@@ -6401,11 +6402,11 @@ function Nf() {
|
|
|
6401
6402
|
_s5 = function s(i, c) {
|
|
6402
6403
|
var l = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
6403
6404
|
if (Array.isArray(i)) {
|
|
6404
|
-
var
|
|
6405
|
+
var F = i.map(function (te) {
|
|
6405
6406
|
return _s5(te, c, l);
|
|
6406
6407
|
});
|
|
6407
6408
|
return function (te) {
|
|
6408
|
-
var _iterator7 = _createForOfIteratorHelper(
|
|
6409
|
+
var _iterator7 = _createForOfIteratorHelper(F),
|
|
6409
6410
|
_step7;
|
|
6410
6411
|
try {
|
|
6411
6412
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -6432,16 +6433,16 @@ function Nf() {
|
|
|
6432
6433
|
return false;
|
|
6433
6434
|
};
|
|
6434
6435
|
if (p.ignore) {
|
|
6435
|
-
var
|
|
6436
|
+
var _F = _objectSpread(_objectSpread({}, c), {}, {
|
|
6436
6437
|
ignore: null,
|
|
6437
6438
|
onMatch: null,
|
|
6438
6439
|
onResult: null
|
|
6439
6440
|
});
|
|
6440
|
-
$ = _s5(p.ignore,
|
|
6441
|
+
$ = _s5(p.ignore, _F, l);
|
|
6441
6442
|
}
|
|
6442
|
-
var j = function j(
|
|
6443
|
-
var
|
|
6444
|
-
var _s$test = _s5.test(
|
|
6443
|
+
var j = function j(F) {
|
|
6444
|
+
var q = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
6445
|
+
var _s$test = _s5.test(F, h, c, {
|
|
6445
6446
|
glob: i,
|
|
6446
6447
|
posix: d
|
|
6447
6448
|
}),
|
|
@@ -6453,12 +6454,12 @@ function Nf() {
|
|
|
6453
6454
|
state: O,
|
|
6454
6455
|
regex: h,
|
|
6455
6456
|
posix: d,
|
|
6456
|
-
input:
|
|
6457
|
+
input: F,
|
|
6457
6458
|
output: re,
|
|
6458
6459
|
match: U,
|
|
6459
6460
|
isMatch: te
|
|
6460
6461
|
};
|
|
6461
|
-
return typeof p.onResult == "function" && p.onResult(L), te === false ? (L.isMatch = false,
|
|
6462
|
+
return typeof p.onResult == "function" && p.onResult(L), te === false ? (L.isMatch = false, q ? L : false) : $(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = false, q ? L : false) : (typeof p.onMatch == "function" && p.onMatch(L), q ? L : true);
|
|
6462
6463
|
};
|
|
6463
6464
|
return l && (j.state = O), j;
|
|
6464
6465
|
};
|
|
@@ -6729,7 +6730,8 @@ var Df = function Df() {
|
|
|
6729
6730
|
$f = function $f() {
|
|
6730
6731
|
var e = vt("microApp");
|
|
6731
6732
|
e.cors.on("customEventFromMain", function (t) {
|
|
6732
|
-
|
|
6733
|
+
var n, r;
|
|
6734
|
+
(n = t.data) != null && n.eventName && e.event.emit(t.data.eventName, (r = t.data) == null ? void 0 : r.params);
|
|
6733
6735
|
});
|
|
6734
6736
|
},
|
|
6735
6737
|
Ig = /*#__PURE__*/function () {
|
|
@@ -7684,7 +7686,7 @@ function hg() {
|
|
|
7684
7686
|
u = $(a);
|
|
7685
7687
|
return u && a.mockDomain && a.mockDomain.indexOf(c.MOCK) === 0 ? a.mockDomain : u;
|
|
7686
7688
|
}
|
|
7687
|
-
function
|
|
7689
|
+
function F(a) {
|
|
7688
7690
|
try {
|
|
7689
7691
|
if (a === window) return !0;
|
|
7690
7692
|
} catch (_unused12) {}
|
|
@@ -7700,7 +7702,7 @@ function hg() {
|
|
|
7700
7702
|
} catch (_unused15) {}
|
|
7701
7703
|
return false;
|
|
7702
7704
|
}
|
|
7703
|
-
function
|
|
7705
|
+
function q(a, u) {
|
|
7704
7706
|
if (!a || !u) return false;
|
|
7705
7707
|
var m = d(u);
|
|
7706
7708
|
return m ? m === a : function (v) {
|
|
@@ -7768,7 +7770,7 @@ function hg() {
|
|
|
7768
7770
|
return !w || w.message !== E;
|
|
7769
7771
|
}
|
|
7770
7772
|
if (u && function (w) {
|
|
7771
|
-
if (!
|
|
7773
|
+
if (!F(w)) return false;
|
|
7772
7774
|
try {
|
|
7773
7775
|
if (w === window || p(w) && O(w) || j(window) === j(w)) return !0;
|
|
7774
7776
|
} catch (_unused23) {}
|
|
@@ -7853,7 +7855,7 @@ function hg() {
|
|
|
7853
7855
|
return -1;
|
|
7854
7856
|
}
|
|
7855
7857
|
var k,
|
|
7856
|
-
|
|
7858
|
+
B = function () {
|
|
7857
7859
|
function a() {
|
|
7858
7860
|
if (function (u, m) {
|
|
7859
7861
|
if (!(u instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -8042,7 +8044,7 @@ function hg() {
|
|
|
8042
8044
|
return "Error while stringifying error: " + ve(w, u + 1);
|
|
8043
8045
|
}
|
|
8044
8046
|
}
|
|
8045
|
-
var
|
|
8047
|
+
var J = function J(a) {
|
|
8046
8048
|
if (!a) return a;
|
|
8047
8049
|
var u = false;
|
|
8048
8050
|
return function () {
|
|
@@ -8177,9 +8179,9 @@ function hg() {
|
|
|
8177
8179
|
X = Y.onSuccess,
|
|
8178
8180
|
ae = Y.onError,
|
|
8179
8181
|
ee = Y.promise,
|
|
8180
|
-
|
|
8182
|
+
z = void 0;
|
|
8181
8183
|
if (m) try {
|
|
8182
|
-
|
|
8184
|
+
z = X ? X(this.value) : this.value;
|
|
8183
8185
|
} catch (fe) {
|
|
8184
8186
|
ee.reject(fe);
|
|
8185
8187
|
continue;
|
|
@@ -8189,13 +8191,13 @@ function hg() {
|
|
|
8189
8191
|
continue;
|
|
8190
8192
|
}
|
|
8191
8193
|
try {
|
|
8192
|
-
|
|
8194
|
+
z = ae(this.error);
|
|
8193
8195
|
} catch (fe) {
|
|
8194
8196
|
ee.reject(fe);
|
|
8195
8197
|
continue;
|
|
8196
8198
|
}
|
|
8197
8199
|
}
|
|
8198
|
-
|
|
8200
|
+
z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = true) : Re(z) ? z instanceof a && (z.resolved || z.rejected) ? z.resolved ? ee.resolve(z.value) : ee.reject(z.error) : I(z, ee) : ee.resolve(z);
|
|
8199
8201
|
}
|
|
8200
8202
|
w.length = 0, this.dispatching = false, $e();
|
|
8201
8203
|
}
|
|
@@ -8247,10 +8249,10 @@ function hg() {
|
|
|
8247
8249
|
w = [];
|
|
8248
8250
|
if (!v) return m.resolve(w), m;
|
|
8249
8251
|
for (var I = function I(X, ae, ee) {
|
|
8250
|
-
return ae.then(function (
|
|
8251
|
-
w[X] =
|
|
8252
|
-
}, function (
|
|
8253
|
-
ee.reject(
|
|
8252
|
+
return ae.then(function (z) {
|
|
8253
|
+
w[X] = z, (v -= 1) == 0 && m.resolve(w);
|
|
8254
|
+
}, function (z) {
|
|
8255
|
+
ee.reject(z);
|
|
8254
8256
|
});
|
|
8255
8257
|
}, V = 0; V < u.length; V++) {
|
|
8256
8258
|
var Y = u[V];
|
|
@@ -8315,8 +8317,8 @@ function hg() {
|
|
|
8315
8317
|
} : function (a) {
|
|
8316
8318
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : _typeof(a);
|
|
8317
8319
|
};
|
|
8318
|
-
W.methods = W.methods || new
|
|
8319
|
-
var f =
|
|
8320
|
+
W.methods = W.methods || new B();
|
|
8321
|
+
var f = J(function () {
|
|
8320
8322
|
W.on(N.POST_MESSAGE_NAMES.METHOD, {
|
|
8321
8323
|
origin: N.WILDCARD
|
|
8322
8324
|
}, function (a) {
|
|
@@ -8381,7 +8383,7 @@ function hg() {
|
|
|
8381
8383
|
return C(a, u, m.__then__)(v, w);
|
|
8382
8384
|
});
|
|
8383
8385
|
}
|
|
8384
|
-
W.readyPromises = W.readyPromises || new
|
|
8386
|
+
W.readyPromises = W.readyPromises || new B();
|
|
8385
8387
|
function _(a) {
|
|
8386
8388
|
return W.send(a, N.POST_MESSAGE_NAMES.HELLO, {}, {
|
|
8387
8389
|
domain: N.WILDCARD,
|
|
@@ -8397,7 +8399,7 @@ function hg() {
|
|
|
8397
8399
|
(Array.isArray(m) ? m : typeof m == "string" ? [m] : [N.WILDCARD]).map(function (v) {
|
|
8398
8400
|
if (v.indexOf(N.MOCK_PROTOCOL) === 0) {
|
|
8399
8401
|
if (window.location.protocol === N.FILE_PROTOCOL) return N.WILDCARD;
|
|
8400
|
-
if (!
|
|
8402
|
+
if (!F(a)) throw new Error("Attempting to send messsage to mock domain " + v + ", but window is actually cross-domain");
|
|
8401
8403
|
return $(a);
|
|
8402
8404
|
}
|
|
8403
8405
|
return v.indexOf(N.FILE_PROTOCOL) === 0 ? N.WILDCARD : v;
|
|
@@ -8425,9 +8427,9 @@ function hg() {
|
|
|
8425
8427
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
8426
8428
|
return !!d(fe);
|
|
8427
8429
|
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE,
|
|
8428
|
-
|
|
8430
|
+
z = j(window);
|
|
8429
8431
|
return b({}, Y, X, {
|
|
8430
|
-
sourceDomain:
|
|
8432
|
+
sourceDomain: z,
|
|
8431
8433
|
id: Y.id || ae,
|
|
8432
8434
|
windowType: ee
|
|
8433
8435
|
});
|
|
@@ -8436,10 +8438,10 @@ function hg() {
|
|
|
8436
8438
|
return D({
|
|
8437
8439
|
obj: u.data
|
|
8438
8440
|
}, function (ae, ee) {
|
|
8439
|
-
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (
|
|
8441
|
+
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (z = ae, {
|
|
8440
8442
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
8441
|
-
__message__: ve(
|
|
8442
|
-
__code__:
|
|
8443
|
+
__message__: ve(z),
|
|
8444
|
+
__code__: z.code
|
|
8443
8445
|
}) : window.Promise && ae instanceof window.Promise ? function (he, Le, ze, Ie) {
|
|
8444
8446
|
return {
|
|
8445
8447
|
__type__: N.SERIALIZATION_TYPES.PROMISE,
|
|
@@ -8458,7 +8460,7 @@ function hg() {
|
|
|
8458
8460
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
8459
8461
|
__source__: fe.source
|
|
8460
8462
|
}) : void 0;
|
|
8461
|
-
var
|
|
8463
|
+
var z, fe;
|
|
8462
8464
|
}).obj;
|
|
8463
8465
|
}(a, m),
|
|
8464
8466
|
domain: m
|
|
@@ -8474,13 +8476,13 @@ function hg() {
|
|
|
8474
8476
|
} catch (fe) {
|
|
8475
8477
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
8476
8478
|
}
|
|
8477
|
-
var
|
|
8479
|
+
var z = JSON.stringify.call(this, V, null, 2);
|
|
8478
8480
|
try {
|
|
8479
8481
|
ae && (Object.prototype.toJSON = ae), ee && (Array.prototype.toJSON = ee);
|
|
8480
8482
|
} catch (fe) {
|
|
8481
8483
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
8482
8484
|
}
|
|
8483
|
-
return
|
|
8485
|
+
return z;
|
|
8484
8486
|
}(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
|
|
8485
8487
|
return _e.map(Object.keys(P), function (V) {
|
|
8486
8488
|
return _e["try"](function () {
|
|
@@ -8522,8 +8524,8 @@ function hg() {
|
|
|
8522
8524
|
if (ae) {
|
|
8523
8525
|
if (v && typeof v == "string") {
|
|
8524
8526
|
if (ae[v]) return ae[v];
|
|
8525
|
-
if (ae[G]) for (var ee = 0,
|
|
8526
|
-
var he =
|
|
8527
|
+
if (ae[G]) for (var ee = 0, z = ae[G], fe = z == null ? 0 : z.length; ee < fe; ee++) {
|
|
8528
|
+
var he = z[ee],
|
|
8527
8529
|
Le = he.regex,
|
|
8528
8530
|
ze = he.listener;
|
|
8529
8531
|
if (le(Le, v)) return ze;
|
|
@@ -8642,11 +8644,11 @@ function hg() {
|
|
|
8642
8644
|
obj: v.data
|
|
8643
8645
|
}, function (Y) {
|
|
8644
8646
|
if ((Y === void 0 ? "undefined" : Me(Y)) === "object" && Y !== null) return g(Y, N.SERIALIZATION_TYPES.METHOD) ? C(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ERROR) ? function (X, ae, ee) {
|
|
8645
|
-
var
|
|
8646
|
-
return ee.__code__ && (
|
|
8647
|
+
var z = new Error(ee.__message__);
|
|
8648
|
+
return ee.__code__ && (z.code = ee.__code__), z;
|
|
8647
8649
|
}(0, 0, Y) : g(Y, N.SERIALIZATION_TYPES.PROMISE) ? function (X, ae, ee) {
|
|
8648
|
-
return window.Promise ? new window.Promise(function (
|
|
8649
|
-
return C(X, ae, ee.__then__)(
|
|
8650
|
+
return window.Promise ? new window.Promise(function (z, fe) {
|
|
8651
|
+
return C(X, ae, ee.__then__)(z, fe);
|
|
8650
8652
|
}) : R(X, ae, ee);
|
|
8651
8653
|
}(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.REGEX) ? function (X, ae, ee) {
|
|
8652
8654
|
return new RegExp(ee.__source__);
|
|
@@ -8668,7 +8670,7 @@ function hg() {
|
|
|
8668
8670
|
data: a.data
|
|
8669
8671
|
});
|
|
8670
8672
|
}
|
|
8671
|
-
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new
|
|
8673
|
+
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new B();
|
|
8672
8674
|
function tt(a) {
|
|
8673
8675
|
return _e["try"](function () {
|
|
8674
8676
|
if (!a.name) throw new Error("Expected options.name");
|
|
@@ -8695,20 +8697,20 @@ function hg() {
|
|
|
8695
8697
|
X = W.requestPromises.get(I);
|
|
8696
8698
|
X || (X = [], W.requestPromises.set(I, X));
|
|
8697
8699
|
var ae = _e["try"](function () {
|
|
8698
|
-
if (function (ee,
|
|
8699
|
-
var fe = ne(
|
|
8700
|
+
if (function (ee, z) {
|
|
8701
|
+
var fe = ne(z);
|
|
8700
8702
|
if (fe) return fe === ee;
|
|
8701
|
-
if (
|
|
8703
|
+
if (z === ee || function () {
|
|
8702
8704
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
8703
8705
|
try {
|
|
8704
8706
|
if (Ie.top) return Ie.top;
|
|
8705
8707
|
} catch (_unused45) {}
|
|
8706
8708
|
if (d(Ie) === Ie) return Ie;
|
|
8707
8709
|
try {
|
|
8708
|
-
if (
|
|
8710
|
+
if (q(window, Ie) && window.top) return window.top;
|
|
8709
8711
|
} catch (_unused46) {}
|
|
8710
8712
|
try {
|
|
8711
|
-
if (
|
|
8713
|
+
if (q(Ie, window) && window.top) return window.top;
|
|
8712
8714
|
} catch (_unused47) {}
|
|
8713
8715
|
for (var Je = 0, Ke = function Pt(lo) {
|
|
8714
8716
|
for (var Hn = [], Wn = 0, mn = te(lo), kt = mn == null ? 0 : mn.length; Wn < kt; Wn++) {
|
|
@@ -8727,16 +8729,16 @@ function hg() {
|
|
|
8727
8729
|
} catch (_unused48) {}
|
|
8728
8730
|
if (d(Ct) === Ct) return Ct;
|
|
8729
8731
|
}
|
|
8730
|
-
}(
|
|
8731
|
-
for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] ===
|
|
8732
|
+
}(z) === z) return false;
|
|
8733
|
+
for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] === z) return true;
|
|
8732
8734
|
return false;
|
|
8733
8735
|
}(window, I)) return function (ee) {
|
|
8734
|
-
var
|
|
8736
|
+
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3,
|
|
8735
8737
|
fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window",
|
|
8736
8738
|
he = W.readyPromises.get(ee);
|
|
8737
|
-
return he || (he = new _e(), W.readyPromises.set(ee, he),
|
|
8738
|
-
return he.reject(new Error(fe + " did not load after " +
|
|
8739
|
-
},
|
|
8739
|
+
return he || (he = new _e(), W.readyPromises.set(ee, he), z !== -1 && setTimeout(function () {
|
|
8740
|
+
return he.reject(new Error(fe + " did not load after " + z + "ms"));
|
|
8741
|
+
}, z), he);
|
|
8740
8742
|
}(I, a.timeout || ge.CHILD_WINDOW_TIMEOUT);
|
|
8741
8743
|
}).then(function () {
|
|
8742
8744
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
@@ -8748,7 +8750,7 @@ function hg() {
|
|
|
8748
8750
|
v = ee;
|
|
8749
8751
|
}
|
|
8750
8752
|
if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
|
|
8751
|
-
var
|
|
8753
|
+
var z = v;
|
|
8752
8754
|
return new _e(function (fe, he) {
|
|
8753
8755
|
var Le = void 0;
|
|
8754
8756
|
if (a.fireAndForget || function (Ke, Et) {
|
|
@@ -8756,7 +8758,7 @@ function hg() {
|
|
|
8756
8758
|
}(V, Le = {
|
|
8757
8759
|
name: u,
|
|
8758
8760
|
window: I,
|
|
8759
|
-
domain:
|
|
8761
|
+
domain: z,
|
|
8760
8762
|
respond: function respond(Ke, Et) {
|
|
8761
8763
|
Ke || (Y = true, X.splice(X.indexOf(ae, 1))), Ke ? he(Ke) : fe(Et);
|
|
8762
8764
|
}
|
|
@@ -8766,7 +8768,7 @@ function hg() {
|
|
|
8766
8768
|
name: u,
|
|
8767
8769
|
data: a.data,
|
|
8768
8770
|
fireAndForget: a.fireAndForget
|
|
8769
|
-
},
|
|
8771
|
+
}, z)["catch"](he), a.fireAndForget) return fe();
|
|
8770
8772
|
var ze = ge.ACK_TIMEOUT,
|
|
8771
8773
|
Ie = a.timeout || ge.RES_TIMEOUT,
|
|
8772
8774
|
Je = 100;
|
|
@@ -8833,15 +8835,15 @@ function hg() {
|
|
|
8833
8835
|
name: u
|
|
8834
8836
|
},
|
|
8835
8837
|
I = function X(ae, ee) {
|
|
8836
|
-
var
|
|
8838
|
+
var z = ae.name,
|
|
8837
8839
|
fe = ae.win,
|
|
8838
8840
|
he = ae.domain;
|
|
8839
|
-
if (!
|
|
8841
|
+
if (!z || typeof z != "string") throw new Error("Name required to add request listener");
|
|
8840
8842
|
if (Array.isArray(fe)) {
|
|
8841
8843
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
8842
8844
|
var Ke = Ie[ze];
|
|
8843
8845
|
Le.push(X({
|
|
8844
|
-
name:
|
|
8846
|
+
name: z,
|
|
8845
8847
|
domain: he,
|
|
8846
8848
|
win: Ke
|
|
8847
8849
|
}, ee));
|
|
@@ -8856,7 +8858,7 @@ function hg() {
|
|
|
8856
8858
|
for (var Et = [], Ct = 0, Pt = he, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
8857
8859
|
var Hn = Pt[Ct];
|
|
8858
8860
|
Et.push(X({
|
|
8859
|
-
name:
|
|
8861
|
+
name: z,
|
|
8860
8862
|
win: fe,
|
|
8861
8863
|
domain: Hn
|
|
8862
8864
|
}, ee));
|
|
@@ -8868,14 +8870,14 @@ function hg() {
|
|
|
8868
8870
|
};
|
|
8869
8871
|
}
|
|
8870
8872
|
var Wn = Ee({
|
|
8871
|
-
name:
|
|
8873
|
+
name: z,
|
|
8872
8874
|
win: fe,
|
|
8873
8875
|
domain: he
|
|
8874
8876
|
});
|
|
8875
|
-
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " +
|
|
8877
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " + z + " on domain " + he.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + z + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : he ? new Error("Request listener already exists for " + z + " on domain " + he.toString()) : new Error("Request listener already exists for " + z);
|
|
8876
8878
|
var mn = W.requestListeners,
|
|
8877
|
-
kt = mn[
|
|
8878
|
-
kt || (kt = new
|
|
8879
|
+
kt = mn[z];
|
|
8880
|
+
kt || (kt = new B(), mn[z] = kt);
|
|
8879
8881
|
var pt = kt.get(fe);
|
|
8880
8882
|
pt || (pt = {}, kt.set(fe, pt));
|
|
8881
8883
|
var vn = he.toString(),
|
|
@@ -8896,14 +8898,14 @@ function hg() {
|
|
|
8896
8898
|
}, w);
|
|
8897
8899
|
if (a.once) {
|
|
8898
8900
|
var V = w.handler;
|
|
8899
|
-
w.handler =
|
|
8901
|
+
w.handler = J(function () {
|
|
8900
8902
|
return I.cancel(), V.apply(this, arguments);
|
|
8901
8903
|
});
|
|
8902
8904
|
}
|
|
8903
8905
|
if (w.window && a.errorOnClose) var Y = function (X, ae) {
|
|
8904
8906
|
var ee = void 0;
|
|
8905
|
-
return ee = setTimeout(function
|
|
8906
|
-
ee = setTimeout(
|
|
8907
|
+
return ee = setTimeout(function z() {
|
|
8908
|
+
ee = setTimeout(z, 50), function () {
|
|
8907
8909
|
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (Y.cancel(), w.handleError(new Error("Post message target window is closed")));
|
|
8908
8910
|
}.call();
|
|
8909
8911
|
}, 50), {
|
|
@@ -9245,8 +9247,8 @@ var ga = function ga() {
|
|
|
9245
9247
|
}), br.value.appendChild(l);
|
|
9246
9248
|
_context15.next = 20;
|
|
9247
9249
|
return new Promise(function (j) {
|
|
9248
|
-
l.onload = function (
|
|
9249
|
-
return j([null,
|
|
9250
|
+
l.onload = function (F) {
|
|
9251
|
+
return j([null, F]);
|
|
9250
9252
|
}, l.onerror = function () {
|
|
9251
9253
|
return j([new Error("".concat(s, " IFrame load failed")), null]);
|
|
9252
9254
|
};
|