diff --git a/app/[lang]/(live-current)/layout.tsx b/app/[lang]/(live-current)/layout.tsx
index 48df36347..c29fb7768 100644
--- a/app/[lang]/(live-current)/layout.tsx
+++ b/app/[lang]/(live-current)/layout.tsx
@@ -48,26 +48,6 @@ export default async function RootLayout({
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
/>
-
-
-
-
-
diff --git a/app/[lang]/(preview-current)/layout.tsx b/app/[lang]/(preview-current)/layout.tsx
index d0e701307..78ee16d3f 100644
--- a/app/[lang]/(preview-current)/layout.tsx
+++ b/app/[lang]/(preview-current)/layout.tsx
@@ -27,26 +27,6 @@ export default function RootLayout({
{/* eslint-disable-next-line @next/next/no-css-tags */}
-
-
-
-
-
diff --git a/public/_static/dist/js/head.js b/public/_static/dist/js/head.js
deleted file mode 100644
index 9a30441b9..000000000
--- a/public/_static/dist/js/head.js
+++ /dev/null
@@ -1,1624 +0,0 @@
-/*! For license information please see head.js.LICENSE.txt */
-!function () {
- var e = {
- 44882: function (e, t, n) {
- function r(e) {
- return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
- return typeof e
- }
- : function (e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
- }
- ,
- r(e)
- }
- e = n.nmd(e),
- function (t, n, i) {
- function s(e, t) {
- return r(e) === t
- }
- function a(e, t) {
- return !!~("" + e).indexOf(t)
- }
- function o() {
- return "function" != typeof n.createElement ? n.createElement(arguments[0]) : S ? n.createElementNS.call(n, "http://www.w3.org/2000/svg", arguments[0]) : n.createElement.apply(n, arguments)
- }
- function c(e, t, r, i) {
- var s, a, c, l, u = "modernizr", d = o("div"), f = function () {
- var e = n.body;
- return e || ((e = o(S ? "svg" : "body")).fake = !0),
- e
- }();
- if (parseInt(r, 10))
- for (; r--;)
- (c = o("div")).id = i ? i[r] : u + (r + 1),
- d.appendChild(c);
- return (s = o("style")).type = "text/css",
- s.id = "s" + u,
- (f.fake ? f : d).appendChild(s),
- f.appendChild(d),
- s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(n.createTextNode(e)),
- d.id = u,
- f.fake && (f.style.background = "",
- f.style.overflow = "hidden",
- l = w.style.overflow,
- w.style.overflow = "hidden",
- w.appendChild(f)),
- a = t(d, e),
- f.fake ? (f.parentNode.removeChild(f),
- w.style.overflow = l,
- w.offsetHeight) : d.parentNode.removeChild(d),
- !!a
- }
- function l(e) {
- return e.replace(/([A-Z])/g, (function (e, t) {
- return "-" + t.toLowerCase()
- }
- )).replace(/^ms-/, "-ms-")
- }
- function u(e, n, r) {
- var i;
- if ("getComputedStyle" in t) {
- i = getComputedStyle.call(t, e, n);
- var s = t.console;
- if (null !== i)
- r && (i = i.getPropertyValue(r));
- else if (s) {
- s[s.error ? "error" : "log"].call(s, "getComputedStyle returning null, its possible modernizr test results are inaccurate")
- }
- } else
- i = !n && e.currentStyle && e.currentStyle[r];
- return i
- }
- function d(e, n) {
- var r = e.length;
- if ("CSS" in t && "supports" in t.CSS) {
- for (; r--;)
- if (t.CSS.supports(l(e[r]), n))
- return !0;
- return !1
- }
- if ("CSSSupportsRule" in t) {
- for (var s = []; r--;)
- s.push("(" + l(e[r]) + ":" + n + ")");
- return c("@supports (" + (s = s.join(" or ")) + ") { #modernizr { position: absolute; } }", (function (e) {
- return "absolute" == u(e, null, "position")
- }
- ))
- }
- return i
- }
- function f(e) {
- return e.replace(/([a-z])-([a-z])/g, (function (e, t, n) {
- return t + n.toUpperCase()
- }
- )).replace(/^-/, "")
- }
- function p(e, t, n, r) {
- function c() {
- u && (delete M.style,
- delete M.modElem)
- }
- if (r = !s(r, "undefined") && r,
- !s(n, "undefined")) {
- var l = d(e, n);
- if (!s(l, "undefined"))
- return l
- }
- for (var u, p, m, h, g, v = ["modernizr", "tspan", "samp"]; !M.style && v.length;)
- u = !0,
- M.modElem = o(v.shift()),
- M.style = M.modElem.style;
- for (m = e.length,
- p = 0; m > p; p++)
- if (h = e[p],
- g = M.style[h],
- a(h, "-") && (h = f(h)),
- M.style[h] !== i) {
- if (r || s(n, "undefined"))
- return c(),
- "pfx" != t || h;
- try {
- M.style[h] = n
- } catch (e) { }
- if (M.style[h] != g)
- return c(),
- "pfx" != t || h
- }
- return c(),
- !1
- }
- function m(e, t) {
- return function () {
- return e.apply(t, arguments)
- }
- }
- function h(e, t, n, r, i) {
- var a = e.charAt(0).toUpperCase() + e.slice(1)
- , o = (e + " " + x.join(a + " ") + a).split(" ");
- return s(t, "string") || s(t, "undefined") ? p(o, t, r, i) : function (e, t, n) {
- var r;
- for (var i in e)
- if (e[i] in t)
- return !1 === n ? e[i] : s(r = t[e[i]], "function") ? m(r, n || t) : r;
- return !1
- }(o = (e + " " + E.join(a + " ") + a).split(" "), t, n)
- }
- function g(e, t, n) {
- return h(e, i, i, t, n)
- }
- var v = []
- , y = {
- _version: "3.5.0",
- _config: {
- classPrefix: "",
- enableClasses: !0,
- enableJSClass: !0,
- usePrefixes: !0
- },
- _q: [],
- on: function (e, t) {
- var n = this;
- setTimeout((function () {
- t(n[e])
- }
- ), 0)
- },
- addTest: function (e, t, n) {
- v.push({
- name: e,
- fn: t,
- options: n
- })
- },
- addAsyncTest: function (e) {
- v.push({
- name: null,
- fn: e
- })
- }
- }
- , A = function () { };
- A.prototype = y,
- A = new A;
- var b = []
- , w = n.documentElement
- , S = "svg" === w.nodeName.toLowerCase()
- , C = "Moz O ms Webkit"
- , E = y._config.usePrefixes ? C.toLowerCase().split(" ") : [];
- y._domPrefixes = E;
- var z = y._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];
- y._prefixes = z;
- var x = y._config.usePrefixes ? C.split(" ") : [];
- y._cssomPrefixes = x;
- var T = {
- elem: o("modernizr")
- };
- A._q.push((function () {
- delete T.elem
- }
- ));
- var M = {
- style: T.elem.style
- };
- A._q.unshift((function () {
- delete M.style
- }
- )),
- y.testAllProps = h,
- y.testAllProps = g,
- y.testProp = function (e, t, n) {
- return p([e], i, t, n)
- }
- ,
- S || function (t, n) {
- function i() {
- var e = v.elements;
- return "string" == typeof e ? e.split(" ") : e
- }
- function s(e) {
- var t = g[e[m]];
- return t || (t = {},
- h++,
- e[m] = h,
- g[h] = t),
- t
- }
- function a(e, t, r) {
- return t || (t = n),
- u ? t.createElement(e) : (r || (r = s(t)),
- !(i = r.cache[e] ? r.cache[e].cloneNode() : p.test(e) ? (r.cache[e] = r.createElem(e)).cloneNode() : r.createElem(e)).canHaveChildren || f.test(e) || i.tagUrn ? i : r.frag.appendChild(i));
- var i
- }
- function o(e, t) {
- t.cache || (t.cache = {},
- t.createElem = e.createElement,
- t.createFrag = e.createDocumentFragment,
- t.frag = t.createFrag()),
- e.createElement = function (n) {
- return v.shivMethods ? a(n, e, t) : t.createElem(n)
- }
- ,
- e.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + i().join().replace(/[\w\-:]+/g, (function (e) {
- return t.createElem(e),
- t.frag.createElement(e),
- 'c("' + e + '")'
- }
- )) + ");return n}")(v, t.frag)
- }
- function c(e) {
- e || (e = n);
- var t = s(e);
- return !v.shivCSS || l || t.hasCSS || (t.hasCSS = !!function (e, t) {
- var n = e.createElement("p")
- , r = e.getElementsByTagName("head")[0] || e.documentElement;
- return n.innerHTML = "x",
- r.insertBefore(n.lastChild, r.firstChild)
- }(e, "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),
- u || o(e, t),
- e
- }
- var l, u, d = t.html5 || {}, f = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, p = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, m = "_html5shiv", h = 0, g = {};
- !function () {
- try {
- var e = n.createElement("a");
- e.innerHTML = "",
- l = "hidden" in e,
- u = 1 == e.childNodes.length || function () {
- n.createElement("a");
- var e = n.createDocumentFragment();
- return void 0 === e.cloneNode || void 0 === e.createDocumentFragment || void 0 === e.createElement
- }()
- } catch (e) {
- l = !0,
- u = !0
- }
- }();
- var v = {
- elements: d.elements || "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",
- version: "3.7.3",
- shivCSS: !1 !== d.shivCSS,
- supportsUnknownElements: u,
- shivMethods: !1 !== d.shivMethods,
- type: "default",
- shivDocument: c,
- createElement: a,
- createDocumentFragment: function (e, t) {
- if (e || (e = n),
- u)
- return e.createDocumentFragment();
- for (var r = (t = t || s(e)).frag.cloneNode(), a = 0, o = i(), c = o.length; c > a; a++)
- r.createElement(o[a]);
- return r
- },
- addElements: function (e, t) {
- var n = v.elements;
- "string" != typeof n && (n = n.join(" ")),
- "string" != typeof e && (e = e.join(" ")),
- v.elements = n + " " + e,
- c(t)
- }
- };
- t.html5 = v,
- c(n),
- "object" == r(e) && e.exports && (e.exports = v)
- }(void 0 !== t ? t : this, n),
- A.addTest("history", (function () {
- var e = navigator.userAgent;
- return (-1 === e.indexOf("Android 2.") && -1 === e.indexOf("Android 4.0") || -1 === e.indexOf("Mobile Safari") || -1 !== e.indexOf("Chrome") || -1 !== e.indexOf("Windows Phone") || "file:" === location.protocol) && t.history && "pushState" in t.history
- }
- )),
- A.addTest("svg", !!n.createElementNS && !!n.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect),
- A.addTest("boxshadow", g("boxShadow", "1px 1px", !0)),
- function () {
- A.addTest("csscolumns", (function () {
- var e = !1
- , t = g("columnCount");
- try {
- (e = !!t) && (e = new Boolean(e))
- } catch (e) { }
- return e
- }
- ));
- for (var e, t, n = ["Width", "Span", "Fill", "Gap", "Rule", "RuleColor", "RuleStyle", "RuleWidth", "BreakBefore", "BreakAfter", "BreakInside"], r = 0; r < n.length; r++)
- e = n[r].toLowerCase(),
- t = g("column" + n[r]),
- ("breakbefore" === e || "breakafter" === e || "breakinside" == e) && (t = t || g(n[r])),
- A.addTest("csscolumns." + e, t)
- }();
- var k = "CSS" in t && "supports" in t.CSS
- , L = "supportsCSS" in t;
- A.addTest("supports", k || L),
- A.addTest("cssfilters", (function () {
- if (A.supports)
- return g("filter", "blur(2px)");
- var e = o("a");
- return e.style.cssText = z.join("filter:blur(2px); "),
- !!e.style.length && (n.documentMode === i || n.documentMode > 9)
- }
- )),
- A.addTest("csspointerevents", (function () {
- var e = o("a").style;
- return e.cssText = "pointer-events:auto",
- "auto" === e.pointerEvents
- }
- )),
- A.addTest("srcset", "srcset" in o("img")),
- function () {
- var e, t, n, r, i, a;
- for (var o in v)
- if (v.hasOwnProperty(o)) {
- if (e = [],
- (t = v[o]).name && (e.push(t.name.toLowerCase()),
- t.options && t.options.aliases && t.options.aliases.length))
- for (n = 0; n < t.options.aliases.length; n++)
- e.push(t.options.aliases[n].toLowerCase());
- for (r = s(t.fn, "function") ? t.fn() : t.fn,
- i = 0; i < e.length; i++)
- 1 === (a = e[i].split(".")).length ? A[a[0]] = r : (!A[a[0]] || A[a[0]] instanceof Boolean || (A[a[0]] = new Boolean(A[a[0]])),
- A[a[0]][a[1]] = r),
- b.push((r ? "" : "no-") + a.join("-"))
- }
- }(),
- function (e) {
- var t = w.className
- , n = A._config.classPrefix || "";
- if (S && (t = t.baseVal),
- A._config.enableJSClass) {
- var r = new RegExp("(^|\\s)" + n + "no-js(\\s|$)");
- t = t.replace(r, "$1" + n + "js$2")
- }
- A._config.enableClasses && (t += " " + n + e.join(" " + n),
- S ? w.className.baseVal = t : w.className = t)
- }(b),
- delete y.addTest,
- delete y.addAsyncTest;
- for (var _ = 0; _ < A._q.length; _++)
- A._q[_]();
- t.Modernizr = A
- }(window, document)
- },
- 33241: function () {
- "document" in window.self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function (e) {
- "use strict";
- if ("Element" in e) {
- var t = "classList"
- , n = e.Element.prototype
- , r = Object
- , i = String.prototype.trim || function () {
- return this.replace(/^\s+|\s+$/g, "")
- }
- , s = Array.prototype.indexOf || function (e) {
- for (var t = 0, n = this.length; t < n; t++)
- if (t in this && this[t] === e)
- return t;
- return -1
- }
- , a = function (e, t) {
- this.name = e,
- this.code = DOMException[e],
- this.message = t
- }
- , o = function (e, t) {
- if ("" === t)
- throw new a("SYNTAX_ERR", "An invalid or illegal string was specified");
- if (/\s/.test(t))
- throw new a("INVALID_CHARACTER_ERR", "String contains an invalid character");
- return s.call(e, t)
- }
- , c = function (e) {
- for (var t = i.call(e.getAttribute("class") || ""), n = t ? t.split(/\s+/) : [], r = 0, s = n.length; r < s; r++)
- this.push(n[r]);
- this._updateClassName = function () {
- e.setAttribute("class", this.toString())
- }
- }
- , l = c.prototype = []
- , u = function () {
- return new c(this)
- };
- if (a.prototype = Error.prototype,
- l.item = function (e) {
- return this[e] || null
- }
- ,
- l.contains = function (e) {
- return -1 !== o(this, e += "")
- }
- ,
- l.add = function () {
- var e, t = arguments, n = 0, r = t.length, i = !1;
- do {
- e = t[n] + "",
- -1 === o(this, e) && (this.push(e),
- i = !0)
- } while (++n < r);
- i && this._updateClassName()
- }
- ,
- l.remove = function () {
- var e, t, n = arguments, r = 0, i = n.length, s = !1;
- do {
- for (e = n[r] + "",
- t = o(this, e); -1 !== t;)
- this.splice(t, 1),
- s = !0,
- t = o(this, e)
- } while (++r < i);
- s && this._updateClassName()
- }
- ,
- l.toggle = function (e, t) {
- e += "";
- var n = this.contains(e)
- , r = n ? !0 !== t && "remove" : !1 !== t && "add";
- return r && this[r](e),
- !0 === t || !1 === t ? t : !n
- }
- ,
- l.toString = function () {
- return this.join(" ")
- }
- ,
- r.defineProperty) {
- var d = {
- get: u,
- enumerable: !0,
- configurable: !0
- };
- try {
- r.defineProperty(n, t, d)
- } catch (e) {
- void 0 !== e.number && -2146823252 !== e.number || (d.enumerable = !1,
- r.defineProperty(n, t, d))
- }
- } else
- r.prototype.__defineGetter__ && n.__defineGetter__(t, u)
- }
- }(window.self),
- function () {
- "use strict";
- var e = document.createElement("_");
- if (e.classList.add("c1", "c2"),
- !e.classList.contains("c2")) {
- var t = function (e) {
- var t = DOMTokenList.prototype[e];
- DOMTokenList.prototype[e] = function (e) {
- var n, r = arguments.length;
- for (n = 0; n < r; n++)
- e = arguments[n],
- t.call(this, e)
- }
- };
- t("add"),
- t("remove")
- }
- if (e.classList.toggle("c3", !1),
- e.classList.contains("c3")) {
- var n = DOMTokenList.prototype.toggle;
- DOMTokenList.prototype.toggle = function (e, t) {
- return 1 in arguments && !this.contains(e) == !t ? t : n.call(this, e)
- }
- }
- e = null
- }())
- },
- 77090: function (e) {
- !function (t, n) {
- var r = function (e, t) {
- "use strict";
- if (!t.getElementsByClassName)
- return;
- var n, r, i = t.documentElement, s = e.Date, a = e.HTMLPictureElement, o = "addEventListener", c = "getAttribute", l = e[o], u = e.setTimeout, d = e.requestAnimationFrame || u, f = e.requestIdleCallback, p = /^picture$/i, m = ["load", "error", "lazyincluded", "_lazyloaded"], h = {}, g = Array.prototype.forEach, v = function (e, t) {
- return h[t] || (h[t] = new RegExp("(\\s|^)" + t + "(\\s|$)")),
- h[t].test(e[c]("class") || "") && h[t]
- }, y = function (e, t) {
- v(e, t) || e.setAttribute("class", (e[c]("class") || "").trim() + " " + t)
- }, A = function (e, t) {
- var n;
- (n = v(e, t)) && e.setAttribute("class", (e[c]("class") || "").replace(n, " "))
- }, b = function (e, t, n) {
- var r = n ? o : "removeEventListener";
- n && b(e, t),
- m.forEach((function (n) {
- e[r](n, t)
- }
- ))
- }, w = function (e, r, i, s, a) {
- var o = t.createEvent("Event");
- return i || (i = {}),
- i.instance = n,
- o.initEvent(r, !s, !a),
- o.detail = i,
- e.dispatchEvent(o),
- o
- }, S = function (t, n) {
- var i;
- !a && (i = e.picturefill || r.pf) ? (n && n.src && !t[c]("srcset") && t.setAttribute("srcset", n.src),
- i({
- reevaluate: !0,
- elements: [t]
- })) : n && n.src && (t.src = n.src)
- }, C = function (e, t) {
- return (getComputedStyle(e, null) || {})[t]
- }, E = function (e, t, n) {
- for (n = n || e.offsetWidth; n < r.minSize && t && !e._lazysizesWidth;)
- n = t.offsetWidth,
- t = t.parentNode;
- return n
- }, z = (_ = [],
- N = [],
- R = _,
- P = function () {
- var e = R;
- for (R = _.length ? N : _,
- k = !0,
- L = !1; e.length;)
- e.shift()();
- k = !1
- }
- ,
- D = function (e, n) {
- k && !n ? e.apply(this, arguments) : (R.push(e),
- L || (L = !0,
- (t.hidden ? u : d)(P)))
- }
- ,
- D._lsFlush = P,
- D), x = function (e, t) {
- return t ? function () {
- z(e)
- }
- : function () {
- var t = this
- , n = arguments;
- z((function () {
- e.apply(t, n)
- }
- ))
- }
- }, T = function (e) {
- var t, n = 0, i = r.throttleDelay, a = r.ricTimeout, o = function () {
- t = !1,
- n = s.now(),
- e()
- }, c = f && a > 49 ? function () {
- f(o, {
- timeout: a
- }),
- a !== r.ricTimeout && (a = r.ricTimeout)
- }
- : x((function () {
- u(o)
- }
- ), !0);
- return function (e) {
- var r;
- (e = !0 === e) && (a = 33),
- t || (t = !0,
- (r = i - (s.now() - n)) < 0 && (r = 0),
- e || r < 9 ? c() : u(c, r))
- }
- }, M = function (e) {
- var t, n, r = 99, i = function () {
- t = null,
- e()
- }, a = function () {
- var e = s.now() - n;
- e < r ? u(a, r - e) : (f || i)(i)
- };
- return function () {
- n = s.now(),
- t || (t = u(a, r))
- }
- };
- var k, L, _, N, R, P, D;
- !function () {
- var t, n = {
- lazyClass: "lazyload",
- loadedClass: "lazyloaded",
- loadingClass: "lazyloading",
- preloadClass: "lazypreload",
- errorClass: "lazyerror",
- autosizesClass: "lazyautosizes",
- srcAttr: "data-src",
- srcsetAttr: "data-srcset",
- sizesAttr: "data-sizes",
- minSize: 40,
- customMedia: {},
- init: !0,
- expFactor: 1.5,
- hFac: .8,
- loadMode: 2,
- loadHidden: !0,
- ricTimeout: 0,
- throttleDelay: 125
- };
- for (t in r = e.lazySizesConfig || e.lazysizesConfig || {},
- n)
- t in r || (r[t] = n[t]);
- e.lazySizesConfig = r,
- u((function () {
- r.init && I()
- }
- ))
- }();
- var B = (te = /^img$/i,
- ne = /^iframe$/i,
- re = "onscroll" in e && !/(gle|ing)bot/.test(navigator.userAgent),
- ie = 0,
- se = 0,
- ae = 0,
- oe = -1,
- ce = function (e) {
- ae--,
- (!e || ae < 0 || !e.target) && (ae = 0)
- }
- ,
- le = function (e) {
- return null == ee && (ee = "hidden" == C(t.body, "visibility")),
- ee || "hidden" != C(e.parentNode, "visibility") && "hidden" != C(e, "visibility")
- }
- ,
- ue = function (e, n) {
- var r, s = e, a = le(e);
- for (X -= n,
- Z += n,
- K -= n,
- Y += n; a && (s = s.offsetParent) && s != t.body && s != i;)
- (a = (C(s, "opacity") || 1) > 0) && "visible" != C(s, "overflow") && (r = s.getBoundingClientRect(),
- a = Y > r.left && K < r.right && Z > r.top - 1 && X < r.bottom + 1);
- return a
- }
- ,
- de = function () {
- var e, s, a, o, l, u, d, f, p, m, h, g, v = n.elements;
- if ((G = r.loadMode) && ae < 8 && (e = v.length)) {
- for (s = 0,
- oe++,
- m = !r.expand || r.expand < 1 ? i.clientHeight > 500 && i.clientWidth > 500 ? 500 : 370 : r.expand,
- n._defEx = m,
- h = m * r.expFactor,
- g = r.hFac,
- ee = null,
- se < h && ae < 1 && oe > 2 && G > 2 && !t.hidden ? (se = h,
- oe = 0) : se = G > 1 && oe > 1 && ae < 6 ? m : ie; s < e; s++)
- if (v[s] && !v[s]._lazyRace)
- if (re)
- if ((f = v[s][c]("data-expand")) && (u = 1 * f) || (u = se),
- p !== u && (V = innerWidth + u * g,
- J = innerHeight + u,
- d = -1 * u,
- p = u),
- a = v[s].getBoundingClientRect(),
- (Z = a.bottom) >= d && (X = a.top) <= J && (Y = a.right) >= d * g && (K = a.left) <= V && (Z || Y || K || X) && (r.loadHidden || le(v[s])) && (j && ae < 3 && !f && (G < 3 || oe < 4) || ue(v[s], u))) {
- if (Ae(v[s]),
- l = !0,
- ae > 9)
- break
- } else
- !l && j && !o && ae < 4 && oe < 4 && G > 2 && (q[0] || r.preloadAfterLoad) && (q[0] || !f && (Z || Y || K || X || "auto" != v[s][c](r.sizesAttr))) && (o = q[0] || v[s]);
- else
- Ae(v[s]);
- o && !l && Ae(o)
- }
- }
- ,
- fe = T(de),
- pe = function (e) {
- var t = e.target;
- t._lazyCache ? delete t._lazyCache : (ce(e),
- y(t, r.loadedClass),
- A(t, r.loadingClass),
- b(t, he),
- w(t, "lazyloaded"))
- }
- ,
- me = x(pe),
- he = function (e) {
- me({
- target: e.target
- })
- }
- ,
- ge = function (e, t) {
- try {
- e.contentWindow.location.replace(t)
- } catch (n) {
- e.src = t
- }
- }
- ,
- ve = function (e) {
- var t, n = e[c](r.srcsetAttr);
- (t = r.customMedia[e[c]("data-media") || e[c]("media")]) && e.setAttribute("media", t),
- n && e.setAttribute("srcset", n)
- }
- ,
- ye = x((function (e, t, n, i, s) {
- var a, o, l, d, f, m;
- (f = w(e, "lazybeforeunveil", t)).defaultPrevented || (i && (n ? y(e, r.autosizesClass) : e.setAttribute("sizes", i)),
- o = e[c](r.srcsetAttr),
- a = e[c](r.srcAttr),
- s && (d = (l = e.parentNode) && p.test(l.nodeName || "")),
- m = t.firesLoad || "src" in e && (o || a || d),
- f = {
- target: e
- },
- y(e, r.loadingClass),
- m && (clearTimeout(U),
- U = u(ce, 2500),
- b(e, he, !0)),
- d && g.call(l.getElementsByTagName("source"), ve),
- o ? e.setAttribute("srcset", o) : a && !d && (ne.test(e.nodeName) ? ge(e, a) : e.src = a),
- s && (o || d) && S(e, {
- src: a
- })),
- e._lazyRace && delete e._lazyRace,
- A(e, r.lazyClass),
- z((function () {
- var t = e.complete && e.naturalWidth > 1;
- m && !t || (t && y(e, "ls-is-cached"),
- pe(f),
- e._lazyCache = !0,
- u((function () {
- "_lazyCache" in e && delete e._lazyCache
- }
- ), 9))
- }
- ), !0)
- }
- )),
- Ae = function (e) {
- var t, n = te.test(e.nodeName), i = n && (e[c](r.sizesAttr) || e[c]("sizes")), s = "auto" == i;
- (!s && j || !n || !e[c]("src") && !e.srcset || e.complete || v(e, r.errorClass) || !v(e, r.lazyClass)) && (t = w(e, "lazyunveilread").detail,
- s && O.updateElem(e, !0, e.offsetWidth),
- e._lazyRace = !0,
- ae++,
- ye(e, t, s, i, n))
- }
- ,
- be = function () {
- if (!j)
- if (s.now() - Q < 999)
- u(be, 999);
- else {
- var e = M((function () {
- r.loadMode = 3,
- fe()
- }
- ));
- j = !0,
- r.loadMode = 3,
- fe(),
- l("scroll", (function () {
- 3 == r.loadMode && (r.loadMode = 2),
- e()
- }
- ), !0)
- }
- }
- ,
- {
- _: function () {
- Q = s.now(),
- n.elements = t.getElementsByClassName(r.lazyClass),
- q = t.getElementsByClassName(r.lazyClass + " " + r.preloadClass),
- l("scroll", fe, !0),
- l("resize", fe, !0),
- e.MutationObserver ? new MutationObserver(fe).observe(i, {
- childList: !0,
- subtree: !0,
- attributes: !0
- }) : (i[o]("DOMNodeInserted", fe, !0),
- i[o]("DOMAttrModified", fe, !0),
- setInterval(fe, 999)),
- l("hashchange", fe, !0),
- ["focus", "mouseover", "click", "load", "transitionend", "animationend", "webkitAnimationEnd"].forEach((function (e) {
- t[o](e, fe, !0)
- }
- )),
- /d$|^c/.test(t.readyState) ? be() : (l("load", be),
- t[o]("DOMContentLoaded", fe),
- u(be, 2e4)),
- n.elements.length ? (de(),
- z._lsFlush()) : fe()
- },
- checkElems: fe,
- unveil: Ae
- })
- , O = (W = x((function (e, t, n, r) {
- var i, s, a;
- if (e._lazysizesWidth = r,
- r += "px",
- e.setAttribute("sizes", r),
- p.test(t.nodeName || ""))
- for (s = 0,
- a = (i = t.getElementsByTagName("source")).length; s < a; s++)
- i[s].setAttribute("sizes", r);
- n.detail.dataAttr || S(e, n.detail)
- }
- )),
- F = function (e, t, n) {
- var r, i = e.parentNode;
- i && (n = E(e, i, n),
- (r = w(e, "lazybeforesizes", {
- width: n,
- dataAttr: !!t
- })).defaultPrevented || (n = r.detail.width) && n !== e._lazysizesWidth && W(e, i, r, n))
- }
- ,
- $ = M((function () {
- var e, t = H.length;
- if (t)
- for (e = 0; e < t; e++)
- F(H[e])
- }
- )),
- {
- _: function () {
- H = t.getElementsByClassName(r.autosizesClass),
- l("resize", $)
- },
- checkElems: $,
- updateElem: F
- })
- , I = function () {
- I.i || (I.i = !0,
- O._(),
- B._())
- };
- var H, W, F, $;
- var q, j, U, G, Q, V, J, X, K, Y, Z, ee, te, ne, re, ie, se, ae, oe, ce, le, ue, de, fe, pe, me, he, ge, ve, ye, Ae, be;
- return n = {
- cfg: r,
- autoSizer: O,
- loader: B,
- init: I,
- uP: S,
- aC: y,
- rC: A,
- hC: v,
- fire: w,
- gW: E,
- rAF: z
- }
- }(t, t.document);
- t.lazySizes = r,
- e.exports && (e.exports = r)
- }(window)
- },
- 47229: function (e, t, n) {
- var r;
- !function (e) {
- var t, n, r, i, s, a, o, c = navigator.userAgent;
- e.HTMLPictureElement && /ecko/.test(c) && c.match(/rv\:(\d+)/) && RegExp.$1 < 45 && addEventListener("resize", (n = document.createElement("source"),
- r = function (e) {
- var t, r, i = e.parentNode;
- "PICTURE" === i.nodeName.toUpperCase() ? (t = n.cloneNode(),
- i.insertBefore(t, i.firstElementChild),
- setTimeout((function () {
- i.removeChild(t)
- }
- ))) : (!e._pfLastSize || e.offsetWidth > e._pfLastSize) && (e._pfLastSize = e.offsetWidth,
- r = e.sizes,
- e.sizes += ",100vw",
- setTimeout((function () {
- e.sizes = r
- }
- )))
- }
- ,
- i = function () {
- var e, t = document.querySelectorAll("picture > img, img[srcset][sizes]");
- for (e = 0; e < t.length; e++)
- r(t[e])
- }
- ,
- s = function () {
- clearTimeout(t),
- t = setTimeout(i, 99)
- }
- ,
- a = e.matchMedia && matchMedia("(orientation: landscape)"),
- o = function () {
- s(),
- a && a.addListener && a.addListener(s)
- }
- ,
- n.srcset = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
- /^[c|i]|d$/.test(document.readyState || "") ? o() : document.addEventListener("DOMContentLoaded", o),
- s))
- }(window),
- function (i, s, a) {
- "use strict";
- var o, c, l;
- s.createElement("picture");
- var u = {}
- , d = !1
- , f = function () { }
- , p = s.createElement("img")
- , m = p.getAttribute
- , h = p.setAttribute
- , g = p.removeAttribute
- , v = s.documentElement
- , y = {}
- , A = {
- algorithm: ""
- }
- , b = "data-pfsrc"
- , w = b + "set"
- , S = navigator.userAgent
- , C = /rident/.test(S) || /ecko/.test(S) && S.match(/rv\:(\d+)/) && RegExp.$1 > 35
- , E = "currentSrc"
- , z = /\s+\+?\d+(e\d+)?w/
- , x = /(\([^)]+\))?\s*(.+)/
- , T = i.picturefillCFG
- , M = "font-size:100%!important;"
- , k = !0
- , L = {}
- , _ = {}
- , N = i.devicePixelRatio
- , R = {
- px: 1,
- in: 96
- }
- , P = s.createElement("a")
- , D = !1
- , B = /^[ \t\n\r\u000c]+/
- , O = /^[, \t\n\r\u000c]+/
- , I = /^[^ \t\n\r\u000c]+/
- , H = /[,]+$/
- , W = /^\d+$/
- , F = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/
- , $ = function (e, t, n, r) {
- e.addEventListener ? e.addEventListener(t, n, r || !1) : e.attachEvent && e.attachEvent("on" + t, n)
- }
- , q = function (e) {
- var t = {};
- return function (n) {
- return n in t || (t[n] = e(n)),
- t[n]
- }
- };
- function j(e) {
- return " " === e || "\t" === e || "\n" === e || "\f" === e || "\r" === e
- }
- var U, G, Q, V, J, X, K, Y, Z, ee, te, ne, re, ie, se, ae, oe = (U = /^([\d\.]+)(em|vw|px)$/,
- G = q((function (e) {
- return "return " + function () {
- for (var e = arguments, t = 0, n = e[0]; ++t in e;)
- n = n.replace(e[t], e[++t]);
- return n
- }((e || "").toLowerCase(), /\band\b/g, "&&", /,/g, "||", /min-([a-z-\s]+):/g, "e.$1>=", /max-([a-z-\s]+):/g, "e.$1<=", /calc([^)]+)/g, "($1)", /(\d+[\.]*[\d]*)([a-z]+)/g, "($1 * e.$2)", /^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi, "") + ";"
- }
- )),
- function (e, t) {
- var n;
- if (!(e in L))
- if (L[e] = !1,
- t && (n = e.match(U)))
- L[e] = n[1] * R[n[2]];
- else
- try {
- L[e] = new Function("e", G(e))(R)
- } catch (e) { }
- return L[e]
- }
- ), ce = function (e, t) {
- return e.w ? (e.cWidth = u.calcListLength(t || "100vw"),
- e.res = e.w / e.cWidth) : e.res = e.d,
- e
- }, le = function (e) {
- if (d) {
- var t, n, r, i = e || {};
- if (i.elements && 1 === i.elements.nodeType && ("IMG" === i.elements.nodeName.toUpperCase() ? i.elements = [i.elements] : (i.context = i.elements,
- i.elements = null)),
- r = (t = i.elements || u.qsa(i.context || s, i.reevaluate || i.reselect ? u.sel : u.selShort)).length) {
- for (u.setupRun(i),
- D = !0,
- n = 0; n < r; n++)
- u.fillImg(t[n], i);
- u.teardownRun(i)
- }
- }
- };
- function ue(e, t) {
- return e.res - t.res
- }
- function de(e, t) {
- var n, r, i;
- if (e && t)
- for (i = u.parseSet(t),
- e = u.makeUrl(e),
- n = 0; n < i.length; n++)
- if (e === u.makeUrl(i[n].url)) {
- r = i[n];
- break
- }
- return r
- }
- i.console && console.warn,
- E in p || (E = "src"),
- y["image/jpeg"] = !0,
- y["image/gif"] = !0,
- y["image/png"] = !0,
- y["image/svg+xml"] = s.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"),
- u.ns = ("pf" + (new Date).getTime()).substr(0, 9),
- u.supSrcset = "srcset" in p,
- u.supSizes = "sizes" in p,
- u.supPicture = !!i.HTMLPictureElement,
- u.supSrcset && u.supPicture && !u.supSizes && (Q = s.createElement("img"),
- p.srcset = "data:,a",
- Q.src = "data:,a",
- u.supSrcset = p.complete === Q.complete,
- u.supPicture = u.supSrcset && u.supPicture),
- u.supSrcset && !u.supSizes ? (V = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
- J = s.createElement("img"),
- X = function () {
- 2 === J.width && (u.supSizes = !0),
- c = u.supSrcset && !u.supSizes,
- d = !0,
- setTimeout(le)
- }
- ,
- J.onload = X,
- J.onerror = X,
- J.setAttribute("sizes", "9px"),
- J.srcset = V + " 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",
- J.src = V) : d = !0,
- u.selShort = "picture>img,img[srcset]",
- u.sel = u.selShort,
- u.cfg = A,
- u.DPR = N || 1,
- u.u = R,
- u.types = y,
- u.setSize = f,
- u.makeUrl = q((function (e) {
- return P.href = e,
- P.href
- }
- )),
- u.qsa = function (e, t) {
- return "querySelector" in e ? e.querySelectorAll(t) : []
- }
- ,
- u.matchesMedia = function () {
- return i.matchMedia && (matchMedia("(min-width: 0.1em)") || {}).matches ? u.matchesMedia = function (e) {
- return !e || matchMedia(e).matches
- }
- : u.matchesMedia = u.mMQ,
- u.matchesMedia.apply(this, arguments)
- }
- ,
- u.mMQ = function (e) {
- return !e || oe(e)
- }
- ,
- u.calcLength = function (e) {
- var t = oe(e, !0) || !1;
- return t < 0 && (t = !1),
- t
- }
- ,
- u.supportsType = function (e) {
- return !e || y[e]
- }
- ,
- u.parseSize = q((function (e) {
- var t = (e || "").match(x);
- return {
- media: t && t[1],
- length: t && t[2]
- }
- }
- )),
- u.parseSet = function (e) {
- return e.cands || (e.cands = function (e, t) {
- function n(t) {
- var n, r = t.exec(e.substring(l));
- if (r)
- return n = r[0],
- l += n.length,
- n
- }
- var r, i, s, a, o, c = e.length, l = 0, u = [];
- function d() {
- var e, n, s, a, o, c, l, d, f, p = !1, m = {};
- for (a = 0; a < i.length; a++)
- c = (o = i[a])[o.length - 1],
- l = o.substring(0, o.length - 1),
- d = parseInt(l, 10),
- f = parseFloat(l),
- W.test(l) && "w" === c ? ((e || n) && (p = !0),
- 0 === d ? p = !0 : e = d) : F.test(l) && "x" === c ? ((e || n || s) && (p = !0),
- f < 0 ? p = !0 : n = f) : W.test(l) && "h" === c ? ((s || n) && (p = !0),
- 0 === d ? p = !0 : s = d) : p = !0;
- p || (m.url = r,
- e && (m.w = e),
- n && (m.d = n),
- s && (m.h = s),
- s || n || e || (m.d = 1),
- 1 === m.d && (t.has1x = !0),
- m.set = t,
- u.push(m))
- }
- function f() {
- for (n(B),
- s = "",
- a = "in descriptor"; ;) {
- if (o = e.charAt(l),
- "in descriptor" === a)
- if (j(o))
- s && (i.push(s),
- s = "",
- a = "after descriptor");
- else {
- if ("," === o)
- return l += 1,
- s && i.push(s),
- void d();
- if ("(" === o)
- s += o,
- a = "in parens";
- else {
- if ("" === o)
- return s && i.push(s),
- void d();
- s += o
- }
- }
- else if ("in parens" === a)
- if (")" === o)
- s += o,
- a = "in descriptor";
- else {
- if ("" === o)
- return i.push(s),
- void d();
- s += o
- }
- else if ("after descriptor" === a)
- if (j(o))
- ;
- else {
- if ("" === o)
- return void d();
- a = "in descriptor",
- l -= 1
- }
- l += 1
- }
- }
- for (; ;) {
- if (n(O),
- l >= c)
- return u;
- r = n(I),
- i = [],
- "," === r.slice(-1) ? (r = r.replace(H, ""),
- d()) : f()
- }
- }(e.srcset, e)),
- e.cands
- }
- ,
- u.getEmValue = function () {
- var e;
- if (!o && (e = s.body)) {
- var t = s.createElement("div")
- , n = v.style.cssText
- , r = e.style.cssText;
- t.style.cssText = "position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",
- v.style.cssText = M,
- e.style.cssText = M,
- e.appendChild(t),
- o = t.offsetWidth,
- e.removeChild(t),
- o = parseFloat(o, 10),
- v.style.cssText = n,
- e.style.cssText = r
- }
- return o || 16
- }
- ,
- u.calcListLength = function (e) {
- if (!(e in _) || A.uT) {
- var t = u.calcLength(function (e) {
- var t, n, r, i, s, a, o, c = /^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i, l = /^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;
- for (r = (n = function (e) {
- var t, n = "", r = [], i = [], s = 0, a = 0, o = !1;
- function c() {
- n && (r.push(n),
- n = "")
- }
- function l() {
- r[0] && (i.push(r),
- r = [])
- }
- for (; ;) {
- if ("" === (t = e.charAt(a)))
- return c(),
- l(),
- i;
- if (o) {
- if ("*" === t && "/" === e[a + 1]) {
- o = !1,
- a += 2,
- c();
- continue
- }
- a += 1
- } else {
- if (j(t)) {
- if (e.charAt(a - 1) && j(e.charAt(a - 1)) || !n) {
- a += 1;
- continue
- }
- if (0 === s) {
- c(),
- a += 1;
- continue
- }
- t = " "
- } else if ("(" === t)
- s += 1;
- else if (")" === t)
- s -= 1;
- else {
- if ("," === t) {
- c(),
- l(),
- a += 1;
- continue
- }
- if ("/" === t && "*" === e.charAt(a + 1)) {
- o = !0,
- a += 2;
- continue
- }
- }
- n += t,
- a += 1
- }
- }
- }(e)).length,
- t = 0; t < r; t++)
- if (s = (i = n[t])[i.length - 1],
- o = s,
- c.test(o) && parseFloat(o) >= 0 || l.test(o) || "0" === o || "-0" === o || "+0" === o) {
- if (a = s,
- i.pop(),
- 0 === i.length)
- return a;
- if (i = i.join(" "),
- u.matchesMedia(i))
- return a
- }
- return "100vw"
- }(e));
- _[e] = t || R.width
- }
- return _[e]
- }
- ,
- u.setRes = function (e) {
- var t;
- if (e)
- for (var n = 0, r = (t = u.parseSet(e)).length; n < r; n++)
- ce(t[n], e.sizes);
- return t
- }
- ,
- u.setRes.res = ce,
- u.applySetCandidate = function (e, t) {
- if (e.length) {
- var n, r, i, s, a, o, c, l, d, f, p, m, h, g, v, y, b = t[u.ns], w = u.DPR;
- if (o = b.curSrc || t[E],
- c = b.curCan || function (e, t, n) {
- var r;
- return !n && t && (n = (n = e[u.ns].sets) && n[n.length - 1]),
- (r = de(t, n)) && (t = u.makeUrl(t),
- e[u.ns].curSrc = t,
- e[u.ns].curCan = r,
- r.res || ce(r, r.set.sizes)),
- r
- }(t, o, e[0].set),
- c && c.set === e[0].set && ((d = C && !t.complete && c.res - .1 > w) || (c.cached = !0,
- c.res >= w && (a = c))),
- !a)
- for (e.sort(ue),
- a = e[(s = e.length) - 1],
- r = 0; r < s; r++)
- if ((n = e[r]).res >= w) {
- a = e[i = r - 1] && (d || o !== u.makeUrl(n.url)) && (f = e[i].res,
- p = n.res,
- m = w,
- h = e[i].cached,
- g = void 0,
- v = void 0,
- y = void 0,
- "saveData" === A.algorithm ? f > 2.7 ? y = m + 1 : (v = (p - m) * (g = Math.pow(f - .6, 1.5)),
- h && (v += .1 * g),
- y = f + v) : y = m > 1 ? Math.sqrt(f * p) : f,
- y > m) ? e[i] : n;
- break
- }
- a && (l = u.makeUrl(a.url),
- b.curSrc = l,
- b.curCan = a,
- l !== o && u.setSrc(t, a),
- u.setSize(t))
- }
- }
- ,
- u.setSrc = function (e, t) {
- var n;
- e.src = t.url,
- "image/svg+xml" === t.set.type && (n = e.style.width,
- e.style.width = e.offsetWidth + 1 + "px",
- e.offsetWidth + 1 && (e.style.width = n))
- }
- ,
- u.getSet = function (e) {
- var t, n, r, i = !1, s = e[u.ns].sets;
- for (t = 0; t < s.length && !i; t++)
- if ((n = s[t]).srcset && u.matchesMedia(n.media) && (r = u.supportsType(n.type))) {
- "pending" === r && (n = r),
- i = n;
- break
- }
- return i
- }
- ,
- u.parseSets = function (e, t, n) {
- var r, i, s, o, l = t && "PICTURE" === t.nodeName.toUpperCase(), d = e[u.ns];
- (d.src === a || n.src) && (d.src = m.call(e, "src"),
- d.src ? h.call(e, b, d.src) : g.call(e, b)),
- (d.srcset === a || n.srcset || !u.supSrcset || e.srcset) && (r = m.call(e, "srcset"),
- d.srcset = r,
- o = !0),
- d.sets = [],
- l && (d.pic = !0,
- function (e, t) {
- var n, r, i, s, a = e.getElementsByTagName("source");
- for (n = 0,
- r = a.length; n < r; n++)
- (i = a[n])[u.ns] = !0,
- (s = i.getAttribute("srcset")) && t.push({
- srcset: s,
- media: i.getAttribute("media"),
- type: i.getAttribute("type"),
- sizes: i.getAttribute("sizes")
- })
- }(t, d.sets)),
- d.srcset ? (i = {
- srcset: d.srcset,
- sizes: m.call(e, "sizes")
- },
- d.sets.push(i),
- (s = (c || d.src) && z.test(d.srcset || "")) || !d.src || de(d.src, i) || i.has1x || (i.srcset += ", " + d.src,
- i.cands.push({
- url: d.src,
- d: 1,
- set: i
- }))) : d.src && d.sets.push({
- srcset: d.src,
- sizes: null
- }),
- d.curCan = null,
- d.curSrc = a,
- d.supported = !(l || i && !u.supSrcset || s && !u.supSizes),
- o && u.supSrcset && !d.supported && (r ? (h.call(e, w, r),
- e.srcset = "") : g.call(e, w)),
- d.supported && !d.srcset && (!d.src && e.src || e.src !== u.makeUrl(d.src)) && (null === d.src ? e.removeAttribute("src") : e.src = d.src),
- d.parsed = !0
- }
- ,
- u.fillImg = function (e, t) {
- var n, r = t.reselect || t.reevaluate;
- e[u.ns] || (e[u.ns] = {}),
- n = e[u.ns],
- (r || n.evaled !== l) && (n.parsed && !t.reevaluate || u.parseSets(e, e.parentNode, t),
- n.supported ? n.evaled = l : function (e) {
- var t, n = u.getSet(e), r = !1;
- "pending" !== n && (r = l,
- n && (t = u.setRes(n),
- u.applySetCandidate(t, e))),
- e[u.ns].evaled = r
- }(e))
- }
- ,
- u.setupRun = function () {
- D && !k && N === i.devicePixelRatio || (k = !1,
- N = i.devicePixelRatio,
- L = {},
- _ = {},
- u.DPR = N || 1,
- R.width = Math.max(i.innerWidth || 0, v.clientWidth),
- R.height = Math.max(i.innerHeight || 0, v.clientHeight),
- R.vw = R.width / 100,
- R.vh = R.height / 100,
- l = [R.height, R.width, N].join("-"),
- R.em = u.getEmValue(),
- R.rem = R.em)
- }
- ,
- u.supPicture ? (le = f,
- u.fillImg = f) : (re = i.attachEvent ? /d$|^c/ : /d$|^c|^i/,
- ie = function () {
- var e = s.readyState || "";
- se = setTimeout(ie, "loading" === e ? 200 : 999),
- s.body && (u.fillImgs(),
- (K = K || re.test(e)) && clearTimeout(se))
- }
- ,
- se = setTimeout(ie, s.body ? 9 : 99),
- ae = v.clientHeight,
- $(i, "resize", (Y = function () {
- k = Math.max(i.innerWidth || 0, v.clientWidth) !== R.width || v.clientHeight !== ae,
- ae = v.clientHeight,
- k && u.fillImgs()
- }
- ,
- Z = 99,
- ne = function () {
- var e = new Date - te;
- e < Z ? ee = setTimeout(ne, Z - e) : (ee = null,
- Y())
- }
- ,
- function () {
- te = new Date,
- ee || (ee = setTimeout(ne, Z))
- }
- )),
- $(s, "readystatechange", ie)),
- u.picturefill = le,
- u.fillImgs = le,
- u.teardownRun = f,
- le._ = u,
- i.picturefillCFG = {
- pf: u,
- push: function (e) {
- var t = e.shift();
- "function" == typeof u[t] ? u[t].apply(u, e) : (A[t] = e[0],
- D && u.fillImgs({
- reselect: !0
- }))
- }
- };
- for (; T && T.length;)
- i.picturefillCFG.push(T.shift());
- i.picturefill = le,
- "object" == typeof e.exports ? e.exports = le : (r = function () {
- return le
- }
- .call(t, n, t, e)) === a || (e.exports = r),
- u.supPicture || (y["image/webp"] = function (e, t) {
- var n = new i.Image;
- return n.onerror = function () {
- y[e] = !1,
- le()
- }
- ,
- n.onload = function () {
- y[e] = 1 === n.width,
- le()
- }
- ,
- n.src = t,
- "pending"
- }("image/webp", "data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))
- }(window, document)
- }
- }
- , t = {};
- function n(r) {
- var i = t[r];
- if (void 0 !== i)
- return i.exports;
- var s = t[r] = {
- id: r,
- loaded: !1,
- exports: {}
- };
- return e[r](s, s.exports, n),
- s.loaded = !0,
- s.exports
- }
- n.n = function (e) {
- var t = e && e.__esModule ? function () {
- return e.default
- }
- : function () {
- return e
- }
- ;
- return n.d(t, {
- a: t
- }),
- t
- }
- ,
- n.d = function (e, t) {
- for (var r in t)
- n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
- enumerable: !0,
- get: t[r]
- })
- }
- ,
- n.o = function (e, t) {
- return Object.prototype.hasOwnProperty.call(e, t)
- }
- ,
- n.nmd = function (e) {
- return e.paths = [],
- e.children || (e.children = []),
- e
- }
- ,
- function () {
- "use strict";
- n(44882),
- n(47229),
- n(33241);
- var e = n(77090);
- window.Scandic = {
- runOnDocumentReady: [],
- runOnWindowLoad: [],
- runOnUserAction: []
- },
- (0,
- e.init)(),
- document.addEventListener("lazybeforeunveil", (function (e) {
- e.target.dataset.bg && (e.target.style.backgroundImage = "url(".concat(e.target.dataset.bg, ")"))
- }
- ));
- var t = new XMLHttpRequest;
- t.onreadystatechange = function () {
- if (t.readyState == XMLHttpRequest.DONE) {
- var e = JSON.parse(t.responseText);
- if (200 == t.status) {
- if (e.AlertsHtml && !document.querySelector(".special-alerts--sitewide"))
- var n = setInterval((function () {
- document.querySelector("header.header") && (document.querySelector("header.header").insertAdjacentHTML("afterend", e.AlertsHtml),
- clearInterval(n))
- }
- ), 10);
- if (e.MaintenanceBlock && !document.querySelector(".booking-widget--maintenance"))
- var r = setInterval((function () {
- var t = document.querySelector(".booking-widget-wrapper");
- if (t) {
- var n = document.createElement("div");
- n.classList.add("hidden"),
- n.innerHTML = e.MaintenanceBlock,
- t.innerHTML = n.children[0].innerHTML,
- document.querySelector("#book-button") && (document.querySelector("#book-button svg.icon").classList.remove("hidden"),
- document.querySelector("#book-button").classList.add("btn--iconic"));
- var i = document.querySelector(".booking-widget-head");
- i && i.remove(),
- t.removeAttribute("hidden");
- var s = document.querySelector(".booking-widget-bar .l-booking-widget--mobile-collapsed");
- s && s.classList.remove("l-booking-widget--mobile-collapsed"),
- clearInterval(r)
- }
- }
- ), 100);
- (e.AlertsHtml || e.MaintenanceBlock) && setTimeout((function () {
- r && clearInterval(r),
- n && clearInterval(n)
- }
- ), 2e3)
- } else
- 400 == t.status ? console.log("Get Alerts Data error 400") : console.log("Get Alerts Data " + t.readyState)
- }
- }
- ;
- var r = !1;
- "undefined" != typeof datalayerObj && -1 != ["bookingroomsandratespage", "bookingenterdetailspage", "bookingconfirmationpage", "bookinghotelspage", "bookingalternatehotelspage"].indexOf(datalayerObj.pagetype) && (r = !0),
- t.open("GET", "https://www.scandichotels.com/ajax/getsitealerts?isBookingPage=" + r, !0),
- t.send()
- }()
-}();
diff --git a/public/_static/dist/js/inline.js b/public/_static/dist/js/inline.js
deleted file mode 100644
index 44cc44d5d..000000000
--- a/public/_static/dist/js/inline.js
+++ /dev/null
@@ -1,112 +0,0 @@
-/*! For license information please see inline.js.LICENSE.txt */
-!function() {
- var t = {
- 33222: function(t, e, n) {
- !function(t) {
- "use strict";
- t.loadCSS || (t.loadCSS = function() {}
- );
- var n = loadCSS.relpreload = {};
- if (n.support = function() {
- var e;
- try {
- e = t.document.createElement("link").relList.supports("preload")
- } catch (t) {
- e = !1
- }
- return function() {
- return e
- }
- }(),
- n.bindMediaToggle = function(t) {
- var e = t.media || "all";
- function n() {
- t.media = e
- }
- t.addEventListener ? t.addEventListener("load", n) : t.attachEvent && t.attachEvent("onload", n),
- setTimeout((function() {
- t.rel = "stylesheet",
- t.media = "only x"
- }
- )),
- setTimeout(n, 3e3)
- }
- ,
- n.poly = function() {
- if (!n.support())
- for (var e = t.document.getElementsByTagName("link"), o = 0; o < e.length; o++) {
- var r = e[o];
- "preload" !== r.rel || "style" !== r.getAttribute("as") || r.getAttribute("data-loadcss") || (r.setAttribute("data-loadcss", !0),
- n.bindMediaToggle(r))
- }
- }
- ,
- !n.support()) {
- n.poly();
- var o = t.setInterval(n.poly, 500);
- t.addEventListener ? t.addEventListener("load", (function() {
- n.poly(),
- t.clearInterval(o)
- }
- )) : t.attachEvent && t.attachEvent("onload", (function() {
- n.poly(),
- t.clearInterval(o)
- }
- ))
- }
- e.loadCSS = loadCSS
- }(void 0 !== n.g ? n.g : this)
- }
- }
- , e = {};
- function n(o) {
- var r = e[o];
- if (void 0 !== r)
- return r.exports;
- var a = e[o] = {
- exports: {}
- };
- return t[o].call(a.exports, a, a.exports, n),
- a.exports
- }
- n.n = function(t) {
- var e = t && t.__esModule ? function() {
- return t.default
- }
- : function() {
- return t
- }
- ;
- return n.d(e, {
- a: e
- }),
- e
- }
- ,
- n.d = function(t, e) {
- for (var o in e)
- n.o(e, o) && !n.o(t, o) && Object.defineProperty(t, o, {
- enumerable: !0,
- get: e[o]
- })
- }
- ,
- n.g = function() {
- if ("object" == typeof globalThis)
- return globalThis;
- try {
- return this || new Function("return this")()
- } catch (t) {
- if ("object" == typeof window)
- return window
- }
- }(),
- n.o = function(t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }
- ,
- function() {
- "use strict";
- n(33222)
- }()
-}();
diff --git a/public/_static/dist/js/main-ng.js b/public/_static/dist/js/main-ng.js
deleted file mode 100644
index 63d236c19..000000000
--- a/public/_static/dist/js/main-ng.js
+++ /dev/null
@@ -1,23298 +0,0 @@
-/*! For license information please see main-ng.js.LICENSE.txt */
-!function() {
- var e = {
- 26981: function(e, t, n) {
- "use strict";
- n(11983);
- var i, o = (i = n(40115)) && i.__esModule ? i : {
- default: i
- };
- o.default._babelPolyfill && "undefined" != typeof console && console.warn && console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),
- o.default._babelPolyfill = !0
- },
- 11983: function(e, t, n) {
- "use strict";
- n(16266),
- n(10990),
- n(70911),
- n(14160),
- n(6197),
- n(96728),
- n(54039),
- n(93568),
- n(78051),
- n(38250),
- n(15434),
- n(54952),
- n(96337),
- n(35666)
- },
- 17970: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, {
- init: function() {
- return a
- },
- toggle: function() {
- return s
- },
- show: function() {
- return l
- },
- hide: function() {
- return c
- }
- });
- var i = n(19755)
- , o = !1
- , r = !1
- , a = function() {
- i("#loader".length < 1) && i("body").append('\n \n '),
- i(document).on("keyup", (function(e) {
- 27 === e.keyCode && c()
- }
- )),
- r = !0
- }
- , s = function(e) {
- r || a(),
- (o = !o) ? l() : c(),
- "function" == typeof e && (-1 != navigator.userAgent.indexOf("Safari") && -1 == navigator.userAgent.indexOf("Chrome") ? setTimeout((function() {
- e()
- }
- ), 500) : e())
- }
- , l = function() {
- o = !0,
- i("#loader").show()
- }
- , c = function() {
- o = !1,
- i("#loader").hide()
- }
- },
- 54648: function(e, t, n) {
- "use strict";
- n.r(t),
- n.d(t, {
- emailRegexp: function() {
- return i
- },
- phone: function() {
- return o
- },
- companyCode: function() {
- return r
- },
- membershipNumber: function() {
- return a
- },
- alphanumeric: function() {
- return s
- },
- noHtmlTags: function() {
- return l
- }
- });
- var i = /^[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,12}$/
- , o = Object.freeze({
- strict: /^(?![0\D]+$)[\s\d()\\-]{1,20}$/,
- loose: /^\+?[0-9 \-\(\)]+$/
- })
- , r = /^d\d+$/i
- , a = /^30812(?!(0|1|2))[0-9]{9}$/
- , s = Object.freeze({
- noSpecialCharacters: /^[A-Za-z¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0-9-\s]*$/,
- noSpecialCharactersExceptPeriod: /^[A-Za-z¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0-9-\.\s]*$/,
- streetAddress: /^[[A-Za-z¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0-9-\.,\s/]*$/,
- password: /^[A-Za-z0-9@#%\*]*$/
- })
- , l = /^[^<>]*$/
- },
- 52071: function(e, t, n) {
- var i = n(19755);
- !function() {
- "use strict";
- i(".skip-to-content").click((function() {
- var e = "#" + this.href.split("#")[1];
- i(e).attr("tabindex", -1).on("blur focusout", (function() {
- i(this).removeAttr("tabindex")
- }
- )).focus()
- }
- ))
- }()
- },
- 69219: function(e, t, n) {
- var i, o, r, a, s, l, c, u = n(19755);
- function d(e) {
- return d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
- return typeof e
- }
- : function(e) {
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
- }
- ,
- d(e)
- }
- !function(e) {
- function t(t, n) {
- var i, o = this, r = window.navigator, a = r.userAgent.toLowerCase();
- o.uid = e.rsModules.uid++,
- o.ns = ".rs" + o.uid;
- var s, l = document.createElement("div").style, c = ["webkit", "Moz", "ms", "O"], u = "", d = 0;
- for (i = 0; i < c.length; i++) {
- var f = c[i];
- !u && f + "Transform"in l && (u = f),
- f = f.toLowerCase(),
- window.requestAnimationFrame || (window.requestAnimationFrame = window[f + "RequestAnimationFrame"],
- window.cancelAnimationFrame = window[f + "CancelAnimationFrame"] || window[f + "CancelRequestAnimationFrame"])
- }
- window.requestAnimationFrame || (window.requestAnimationFrame = function(e, t) {
- var n = (new Date).getTime()
- , i = Math.max(0, 16 - (n - d))
- , o = window.setTimeout((function() {
- e(n + i)
- }
- ), i);
- return d = n + i,
- o
- }
- ),
- window.cancelAnimationFrame || (window.cancelAnimationFrame = function(e) {
- clearTimeout(e)
- }
- ),
- o.isIPAD = a.match(/(ipad)/),
- o.isIOS = o.isIPAD || a.match(/(iphone|ipod)/),
- i = function(e) {
- return {
- browser: (e = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || 0 > e.indexOf("compatible") && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || [])[1] || "",
- version: e[2] || "0"
- }
- }(a),
- c = {},
- i.browser && (c[i.browser] = !0,
- c.version = i.version),
- c.chrome && (c.webkit = !0),
- o._browser = c,
- o.isAndroid = -1 < a.indexOf("android"),
- o.slider = e(t),
- o.ev = e(o),
- o._doc = e(document),
- o.st = e.extend({}, e.fn.royalSlider.defaults, n),
- o._currAnimSpeed = o.st.transitionSpeed,
- o._minPosOffset = 0,
- !o.st.allowCSS3 || c.webkit && !o.st.allowCSS3OnWebkit || (i = u + (u ? "T" : "t"),
- o._useCSS3Transitions = i + "ransform"in l && i + "ransition"in l,
- o._useCSS3Transitions && (o._use3dTransform = u + (u ? "P" : "p") + "erspective"in l)),
- u = u.toLowerCase(),
- o._vendorPref = "-" + u + "-",
- o._slidesHorizontal = "vertical" !== o.st.slidesOrientation,
- o._reorderProp = o._slidesHorizontal ? "left" : "top",
- o._sizeProp = o._slidesHorizontal ? "width" : "height",
- o._prevNavItemId = -1,
- o._isMove = "fade" !== o.st.transitionType,
- o._isMove || (o.st.sliderDrag = !1,
- o._fadeZIndex = 10),
- o._opacityCSS = "z-index:0; display:none; opacity:0;",
- o._newSlideId = 0,
- o._sPosition = 0,
- o._nextSlidePos = 0,
- e.each(e.rsModules, (function(e, t) {
- "uid" !== e && t.call(o)
- }
- )),
- o.slides = [],
- o._idCount = 0,
- (o.st.slides ? e(o.st.slides) : o.slider.children().detach()).each((function() {
- o._parseNode(this, !0)
- }
- )),
- o.st.randomizeSlides && o.slides.sort((function() {
- return .5 - Math.random()
- }
- )),
- o.numSlides = o.slides.length,
- o._refreshNumPreloadImages(),
- o.st.startSlideId ? o.st.startSlideId > o.numSlides - 1 && (o.st.startSlideId = o.numSlides - 1) : o.st.startSlideId = 0,
- o._newSlideId = o.staticSlideId = o.currSlideId = o._realId = o.st.startSlideId,
- o.currSlide = o.slides[o.currSlideId],
- o._accelerationPos = 0,
- o.pointerMultitouch = !1,
- o.slider.addClass((o._slidesHorizontal ? "rsHor" : "rsVer") + (o._isMove ? "" : " rsFade")),
- l = '',
- o.slidesSpacing = o.st.slidesSpacing,
- o._slideSize = (o._slidesHorizontal ? o.slider.width() : o.slider.height()) + o.st.slidesSpacing,
- o._preload = 0 < o._numPreloadImages,
- 1 >= o.numSlides && (o._loop = !1),
- o._loopHelpers = o._loop && o._isMove ? 2 === o.numSlides ? 1 : 2 : 0,
- o._maxImages = 6 > o.numSlides ? o.numSlides : 6,
- o._currBlockIndex = 0,
- o._idOffset = 0,
- o.slidesJQ = [];
- for (i = 0; i < o.numSlides; i++)
- o.slidesJQ.push(e(''));
- o._sliderOverflow = l = e(l + "
"),
- u = function(e, t, n, i, r) {
- o._downEvent = e + t,
- o._moveEvent = e + n,
- o._upEvent = e + i,
- r && (o._cancelEvent = e + r)
- }
- ,
- i = r.pointerEnabled,
- o.pointerEnabled = i || r.msPointerEnabled,
- o.pointerEnabled ? (o.hasTouch = !1,
- o._lastItemFriction = .2,
- o.pointerMultitouch = 1 < r[(i ? "m" : "msM") + "axTouchPoints"],
- i ? u("pointer", "down", "move", "up", "cancel") : u("MSPointer", "Down", "Move", "Up", "Cancel")) : (o.isIOS ? o._downEvent = o._moveEvent = o._upEvent = o._cancelEvent = "" : u("mouse", "down", "move", "up"),
- "ontouchstart"in window || "createTouch"in document ? (o.hasTouch = !0,
- o._downEvent += " touchstart",
- o._moveEvent += " touchmove",
- o._upEvent += " touchend",
- o._cancelEvent += " touchcancel",
- o._lastItemFriction = .5,
- o.st.sliderTouch && (o._hasDrag = !0)) : (o.hasTouch = !1,
- o._lastItemFriction = .2)),
- o.st.sliderDrag && (o._hasDrag = !0,
- c.msie || c.opera ? o._grabCursor = o._grabbingCursor = "move" : c.mozilla ? (o._grabCursor = "-moz-grab",
- o._grabbingCursor = "-moz-grabbing") : c.webkit && -1 != r.platform.indexOf("Mac") && (o._grabCursor = "-webkit-grab",
- o._grabbingCursor = "-webkit-grabbing"),
- o._setGrabCursor()),
- o.slider.html(l),
- o._controlsContainer = o.st.controlsInside ? o._sliderOverflow : o.slider,
- o._slidesContainer = o._sliderOverflow.children(".rsContainer"),
- o.pointerEnabled && o._slidesContainer.css((i ? "" : "-ms-") + "touch-action", o._slidesHorizontal ? "pan-y" : "pan-x"),
- o._preloader = e(''),
- r = o._slidesContainer.children(".rsSlide"),
- o._currHolder = o.slidesJQ[o.currSlideId],
- o._selectedSlideHolder = 0,
- o._eventCallbacks = {
- dragStart: function(e) {
- o._onDragStart(e)
- },
- dragStartThumb: function(e) {
- o._onDragStart(e, !0)
- },
- touchmoveFix: function() {}
- },
- o._useCSS3Transitions ? (o._TP = "transition-property",
- o._TD = "transition-duration",
- o._TTF = "transition-timing-function",
- o._yProp = o._xProp = o._vendorPref + "transform",
- o._use3dTransform ? (c.webkit && !c.chrome && o.slider.addClass("rsWebkit3d"),
- o._tPref1 = "translate3d(",
- o._tPref2 = "px, ",
- o._tPref3 = "px, 0px)") : (o._tPref1 = "translate(",
- o._tPref2 = "px, ",
- o._tPref3 = "px)"),
- o._isMove ? o._slidesContainer[o._vendorPref + o._TP] = o._vendorPref + "transform" : ((c = {})[o._vendorPref + o._TP] = "opacity",
- c[o._vendorPref + o._TD] = o.st.transitionSpeed + "ms",
- c[o._vendorPref + o._TTF] = o.st.css3easeInOut,
- r.css(c))) : (o._xProp = "left",
- o._yProp = "top"),
- o._slidesHorizontal && o.slider.css("touch-action", "pan-y"),
- e(window).on("resize" + o.ns, (function() {
- s && clearTimeout(s),
- s = setTimeout((function() {
- o.updateSliderSize()
- }
- ), 50)
- }
- )),
- o.ev.trigger("rsAfterPropsSetup"),
- o.updateSliderSize(),
- o.st.keyboardNavEnabled && o._bindKeyboardNav(),
- o.st.arrowsNavHideOnTouch && (o.hasTouch || o.pointerMultitouch) && (o.st.arrowsNav = !1),
- o.st.arrowsNav && (r = o._controlsContainer,
- e('').appendTo(r),
- o._arrowLeft = r.children(".rsArrowLeft").click((function(e) {
- e.preventDefault(),
- o.prev()
- }
- )),
- o._arrowRight = r.children(".rsArrowRight").click((function(e) {
- e.preventDefault(),
- o.next()
- }
- )),
- o.st.arrowsNavAutoHide && !o.hasTouch && (o._arrowLeft.addClass("rsHidden"),
- o._arrowRight.addClass("rsHidden"),
- r.one("mousemove.arrowshover", (function() {
- o._arrowLeft.removeClass("rsHidden"),
- o._arrowRight.removeClass("rsHidden")
- }
- )),
- r.hover((function() {
- o._arrowsAutoHideLocked || (o._arrowLeft.removeClass("rsHidden"),
- o._arrowRight.removeClass("rsHidden"))
- }
- ), (function() {
- o._arrowsAutoHideLocked || (o._arrowLeft.addClass("rsHidden"),
- o._arrowRight.addClass("rsHidden"))
- }
- ))),
- o.ev.on("rsOnUpdateNav", (function() {
- o._updateArrowsNav()
- }
- )),
- o._updateArrowsNav()),
- o.hasTouch && o.st.sliderTouch || !o.hasTouch && o.st.sliderDrag ? (o._bindPassiveEvent(o._slidesContainer[0], o._downEvent, o._eventCallbacks.dragStart, !1),
- o._bindPassiveEvent(o.slider[0], o._moveEvent, o._eventCallbacks.touchmoveFix, !1)) : o.dragSuccess = !1;
- var h = ["rsPlayBtnIcon", "rsPlayBtn", "rsCloseVideoBtn", "rsCloseVideoIcn"];
- o._slidesContainer.click((function(t) {
- if (!o.dragSuccess) {
- var n = e(t.target).attr("class");
- if (-1 !== e.inArray(n, h) && o.toggleVideo())
- return !1;
- if (o.st.navigateByClick && !o._blockActions) {
- if (e(t.target).closest(".rsNoDrag", o._currHolder).length)
- return !0;
- o._mouseNext(t)
- }
- o.ev.trigger("rsSlideClick", t)
- }
- }
- )).on("click.rs", "a", (function(e) {
- if (o.dragSuccess)
- return !1;
- o._blockActions = !0,
- setTimeout((function() {
- o._blockActions = !1
- }
- ), 3)
- }
- )),
- o.ev.trigger("rsAfterInit")
- }
- e.rsModules || (e.rsModules = {
- uid: 0
- }),
- t.prototype = {
- constructor: t,
- _mouseNext: function(e) {
- (e = e[this._slidesHorizontal ? "pageX" : "pageY"] - this._sliderOffset) >= this._nextSlidePos ? this.next() : 0 > e && this.prev()
- },
- _refreshNumPreloadImages: function() {
- var e = this.st.numImagesToPreload;
- (this._loop = this.st.loop) && (2 === this.numSlides ? (this._loop = !1,
- this.st.loopRewind = !0) : 2 > this.numSlides && (this.st.loopRewind = this._loop = !1)),
- this._loop && 0 < e && (4 >= this.numSlides ? e = 1 : this.st.numImagesToPreload > (this.numSlides - 1) / 2 && (e = Math.floor((this.numSlides - 1) / 2))),
- this._numPreloadImages = e
- },
- _parseNode: function(t, n) {
- function i(e, t) {
- if (t ? r.images.push(e.attr(t)) : r.images.push(e.text()),
- a) {
- a = !1,
- r.caption = "src" === t ? e.attr("alt") : e.contents(),
- r.image = r.images[0],
- r.videoURL = e.attr("data-rsVideo");
- var n = e.attr("data-rsw")
- , i = e.attr("data-rsh");
- void 0 !== n && !1 !== n && void 0 !== i && !1 !== i ? (r.iW = parseInt(n, 10),
- r.iH = parseInt(i, 10)) : o.st.imgWidth && o.st.imgHeight && (r.iW = o.st.imgWidth,
- r.iH = o.st.imgHeight)
- }
- }
- var o = this
- , r = {}
- , a = !0;
- if (t = e(t),
- o._currContent = t,
- o.ev.trigger("rsBeforeParseNode", [t, r]),
- !r.stopParsing) {
- if (t = o._currContent,
- r.id = o._idCount,
- r.contentAdded = !1,
- o._idCount++,
- r.images = [],
- r.isBig = !1,
- !r.hasCover) {
- if (t.hasClass("rsImg"))
- var s = t
- , l = !0;
- else
- (s = t.find(".rsImg")).length && (l = !0);
- l ? (r.bigImage = s.eq(0).attr("data-rsBigImg"),
- s.each((function() {
- var t = e(this);
- t.is("a") ? i(t, "href") : t.is("img") ? i(t, "src") : i(t)
- }
- ))) : t.is("img") && (t.addClass("rsImg rsMainSlideImage"),
- i(t, "src"))
- }
- return (s = t.find(".rsCaption")).length && (r.caption = s.remove()),
- r.content = t,
- o.ev.trigger("rsAfterParseNode", [t, r]),
- n && o.slides.push(r),
- 0 === r.images.length && (r.isLoaded = !0,
- r.isRendered = !1,
- r.isLoading = !1,
- r.images = null),
- r
- }
- },
- _bindKeyboardNav: function() {
- var e, t, n = this, i = function(e) {
- 37 === e ? n.prev() : 39 === e && n.next()
- };
- n._doc.on("keydown" + n.ns, (function(o) {
- if (!n.st.keyboardNavEnabled)
- return !0;
- if (!(n._isDragging || (t = o.keyCode,
- 37 !== t && 39 !== t || e))) {
- if (document.activeElement && /(INPUT|SELECT|TEXTAREA)/i.test(document.activeElement.tagName))
- return !0;
- n.isFullscreen && o.preventDefault(),
- i(t),
- e = setInterval((function() {
- i(t)
- }
- ), 700)
- }
- }
- )).on("keyup" + n.ns, (function(t) {
- e && (clearInterval(e),
- e = null)
- }
- ))
- },
- goTo: function(e, t) {
- e !== this.currSlideId && this._moveTo(e, this.st.transitionSpeed, !0, !t)
- },
- destroy: function(t) {
- this.ev.trigger("rsBeforeDestroy"),
- this._doc.off("keydown" + this.ns + " keyup" + this.ns),
- this._eventCallbacks.dragMove && (this._unbindPassiveEvent(document, this._moveEvent, this._eventCallbacks.dragMove, !0),
- this._unbindPassiveEvent(document, this._upEvent, this._eventCallbacks.dragRelease, !0)),
- this._eventCallbacks.downEvent && (this._unbindPassiveEvent(this._slidesContainer[0], this._downEvent, this._eventCallbacks.dragStart, !1),
- this._unbindPassiveEvent(this.slider[0], this._moveEvent, this._eventCallbacks.touchmoveFix, !1)),
- this._slidesContainer.off(this._downEvent + " click"),
- this.slider.data("royalSlider", null),
- e.removeData(this.slider, "royalSlider"),
- e(window).off("resize" + this.ns),
- this.loadingTimeout && clearTimeout(this.loadingTimeout),
- t && this.slider.remove(),
- this.ev = this.slider = this.slides = null
- },
- _updateBlocksContent: function(t, n) {
- function i(n, i, a) {
- n.isAdded ? (o(i, n),
- r(i, n)) : (a || (a = c.slidesJQ[i]),
- n.holder ? a = n.holder : (a = c.slidesJQ[i] = e(a),
- n.holder = a),
- n.appendOnLoaded = !1,
- r(i, n, a),
- o(i, n),
- c._addBlockToContainer(n, a, t),
- n.isAdded = !0)
- }
- function o(e, n) {
- n.contentAdded || (c.setItemHtml(n, t),
- t || (n.contentAdded = !0))
- }
- function r(e, t, n) {
- c._isMove && (n || (n = c.slidesJQ[e]),
- n.css(c._reorderProp, (e + c._idOffset + y) * c._slideSize))
- }
- function a(e) {
- if (u) {
- if (e > d - 1)
- return a(e - d);
- if (0 > e)
- return a(d + e)
- }
- return e
- }
- var s, l, c = this, u = c._loop, d = c.numSlides;
- if (!isNaN(n))
- return a(n);
- var f = c.currSlideId
- , h = t ? Math.abs(c._prevSlideId - c.currSlideId) >= c.numSlides - 1 ? 0 : 1 : c._numPreloadImages
- , p = Math.min(2, h)
- , m = !1
- , g = !1;
- for (l = f; l < f + 1 + p; l++) {
- var v = a(l);
- if ((s = c.slides[v]) && (!s.isAdded || !s.positionSet)) {
- m = !0;
- break
- }
- }
- for (l = f - 1; l > f - 1 - p; l--)
- if (v = a(l),
- (s = c.slides[v]) && (!s.isAdded || !s.positionSet)) {
- g = !0;
- break
- }
- if (m)
- for (l = f; l < f + h + 1; l++) {
- v = a(l);
- var y = Math.floor((c._realId - (f - l)) / c.numSlides) * c.numSlides;
- (s = c.slides[v]) && i(s, v)
- }
- if (g)
- for (l = f - 1; l > f - 1 - h; l--)
- v = a(l),
- y = Math.floor((c._realId - (f - l)) / d) * d,
- (s = c.slides[v]) && i(s, v);
- if (!t)
- for (h = (p = a(f - h)) > (f = a(f + h)) ? 0 : p,
- l = 0; l < d; l++)
- p > f && l > p - 1 || !(l < h || l > f) || (s = c.slides[l]) && s.holder && (s.holder.detach(),
- s.isAdded = !1)
- },
- setItemHtml: function(t, n) {
- var i = this
- , o = function() {
- if (t.images) {
- if (!t.isLoading) {
- if (t.content.hasClass("rsImg"))
- var n = t.content
- , o = !0;
- else
- n = t.content.find(".rsImg:not(img)");
- if (n && !n.is("img") && n.each((function() {
- var n = e(this)
- , i = '
';
- o ? t.content = e(i) : n.replaceWith(i)
- }
- )),
- n = o ? t.content : t.content.find("img.rsImg"),
- c(),
- n.eq(0).addClass("rsMainSlideImage"),
- t.iW && t.iH && (t.isLoaded || i._resizeImage(t),
- s()),
- t.isLoading = !0,
- t.isBig)
- e("
").on("load.rs error.rs", (function(t) {
- e(this).off("load.rs error.rs"),
- r([this], !0)
- }
- )).attr("src", t.image);
- else {
- t.loaded = [],
- t.numStartedLoad = 0,
- n = function(n) {
- e(this).off("load.rs error.rs"),
- t.loaded.push(this),
- t.loaded.length === t.numStartedLoad && r(t.loaded, !1)
- }
- ;
- for (var a = 0; a < t.images.length; a++) {
- var l = e("
");
- t.numStartedLoad++,
- l.on("load.rs error.rs", n).attr("src", t.images[a])
- }
- }
- }
- } else
- t.isRendered = !0,
- t.isLoaded = !0,
- t.isLoading = !1,
- s(!0)
- }
- , r = function(e, n) {
- if (e.length) {
- var i = e[0];
- if (n !== t.isBig)
- (i = t.holder.children()) && 1 < i.length && u();
- else if (t.iW && t.iH)
- a();
- else if (t.iW = i.width,
- t.iH = i.height,
- t.iW && t.iH)
- a();
- else {
- var o = new Image;
- o.onload = function() {
- o.width ? (t.iW = o.width,
- t.iH = o.height,
- a()) : setTimeout((function() {
- o.width && (t.iW = o.width,
- t.iH = o.height),
- a()
- }
- ), 1e3)
- }
- ,
- o.src = i.src
- }
- } else
- a()
- }
- , a = function() {
- t.isLoaded = !0,
- t.isLoading = !1,
- s(),
- u(),
- l()
- }
- , s = function() {
- if (!t.isAppended && i.ev) {
- var e = i.st.visibleNearby
- , o = t.id - i._newSlideId;
- n || t.appendOnLoaded || !i.st.fadeinLoadedSlide || 0 !== o && (!(e || i._isAnimating || i._isDragging) || -1 !== o && 1 !== o) || ((e = {
- visibility: "visible",
- opacity: 0
- })[i._vendorPref + "transition"] = "opacity 400ms ease-in-out",
- t.content.css(e),
- setTimeout((function() {
- t.content.css("opacity", 1)
- }
- ), 16)),
- t.holder.find(".rsPreloader").length ? t.holder.append(t.content) : t.holder.html(t.content),
- t.isAppended = !0,
- t.isLoaded && (i._resizeImage(t),
- l()),
- t.sizeReady || (t.sizeReady = !0,
- setTimeout((function() {
- i.ev.trigger("rsMaybeSizeReady", t)
- }
- ), 100))
- }
- }
- , l = function() {
- !t.loadedTriggered && i.ev && (t.isLoaded = t.loadedTriggered = !0,
- t.holder.trigger("rsAfterContentSet"),
- i.ev.trigger("rsAfterContentSet", t))
- }
- , c = function() {
- i.st.usePreloader && t.holder.html(i._preloader.clone())
- }
- , u = function(e) {
- i.st.usePreloader && ((e = t.holder.find(".rsPreloader")).length && e.remove())
- };
- t.isLoaded ? s() : n ? !i._isMove && t.images && t.iW && t.iH ? o() : (t.holder.isWaiting = !0,
- c(),
- t.holder.slideId = -99) : o()
- },
- _addBlockToContainer: function(e, t, n) {
- this._slidesContainer.append(e.holder),
- e.appendOnLoaded = !1
- },
- _onDragStart: function(t, n) {
- var i = this
- , o = "touchstart" === t.type;
- if (i._isTouchGesture = o,
- i.ev.trigger("rsDragStart"),
- e(t.target).closest(".rsNoDrag", i._currHolder).length)
- return i.dragSuccess = !1,
- !0;
- if (!n && i._isAnimating && (i._wasAnimating = !0,
- i._stopAnimation()),
- i.dragSuccess = !1,
- i._isDragging)
- o && (i._multipleTouches = !0);
- else {
- if (o && (i._multipleTouches = !1),
- i._setGrabbingCursor(),
- o) {
- var r = t.touches;
- if (!(r && 0 < r.length))
- return;
- var a = r[0];
- 1 < r.length && (i._multipleTouches = !0)
- } else
- t.preventDefault(),
- a = t;
- i._isDragging = !0,
- i._eventCallbacks.dragMove && (i._unbindPassiveEvent(document, i._moveEvent, i._eventCallbacks.dragMove, !0),
- i._unbindPassiveEvent(document, i._upEvent, i._eventCallbacks.dragRelease, !0)),
- i._eventCallbacks.dragMove = function(e) {
- i._onDragMove(e, n)
- }
- ,
- i._eventCallbacks.dragRelease = function(e) {
- i._onDragRelease(e, n)
- }
- ,
- i._bindPassiveEvent(document, i._moveEvent, i._eventCallbacks.dragMove, !0),
- i._bindPassiveEvent(document, i._upEvent, i._eventCallbacks.dragRelease, !0),
- i._currMoveAxis = "",
- i._hasMoved = !1,
- i._pageX = a.pageX,
- i._pageY = a.pageY,
- i._startPagePos = i._accelerationPos = (n ? i._thumbsHorizontal : i._slidesHorizontal) ? a.pageX : a.pageY,
- i._horDir = 0,
- i._verDir = 0,
- i._currRenderPosition = n ? i._thumbsPosition : i._sPosition,
- i._startTime = (new Date).getTime(),
- o && i._sliderOverflow.on(i._cancelEvent, (function(e) {
- i._onDragRelease(e, n)
- }
- ))
- }
- },
- _renderMovement: function(e, t) {
- if (this._checkedAxis) {
- var n = this._renderMoveTime
- , i = e.pageX - this._pageX
- , o = e.pageY - this._pageY
- , r = this._currRenderPosition + i
- , a = this._currRenderPosition + o
- , s = t ? this._thumbsHorizontal : this._slidesHorizontal;
- r = s ? r : a,
- a = this._currMoveAxis,
- this._hasMoved = !0,
- this._pageX = e.pageX,
- this._pageY = e.pageY,
- "x" === a && 0 !== i ? this._horDir = 0 < i ? 1 : -1 : "y" === a && 0 !== o && (this._verDir = 0 < o ? 1 : -1),
- a = s ? this._pageX : this._pageY,
- i = s ? i : o,
- t ? (r > this._thumbsMinPosition || r < this._thumbsMaxPosition) && (r = this._currRenderPosition + i * this._lastItemFriction) : this._loop || (0 >= this.currSlideId && 0 < a - this._startPagePos && (r = this._currRenderPosition + i * this._lastItemFriction),
- this.currSlideId >= this.numSlides - 1 && 0 > a - this._startPagePos && (r = this._currRenderPosition + i * this._lastItemFriction)),
- this._currRenderPosition = r,
- 200 < n - this._startTime && (this._startTime = n,
- this._accelerationPos = a),
- t ? this._setThumbsPosition(this._currRenderPosition) : this._isMove && this._setPosition(this._currRenderPosition)
- }
- },
- _onDragMove: function(e, t) {
- var n = this
- , i = "touchmove" === e.type;
- if (!n._isTouchGesture || i) {
- if (i) {
- if (n._lockAxis)
- return;
- var o = e.touches;
- if (!o)
- return;
- if (1 < o.length)
- return;
- var r = o[0]
- } else
- r = e;
- if (n._hasMoved || (n._useCSS3Transitions && (t ? n._thumbsContainer : n._slidesContainer).css(n._vendorPref + n._TD, "0s"),
- function e() {
- n._isDragging && (n._animFrame = requestAnimationFrame(e),
- n._renderMoveEvent && n._renderMovement(n._renderMoveEvent, t))
- }()),
- n._checkedAxis)
- e.preventDefault(),
- n._renderMoveTime = (new Date).getTime(),
- n._renderMoveEvent = r;
- else if (o = t ? n._thumbsHorizontal : n._slidesHorizontal,
- 7 < (r = Math.abs(r.pageX - n._pageX) - Math.abs(r.pageY - n._pageY) - (o ? -7 : 7))) {
- if (o)
- e.preventDefault(),
- n._currMoveAxis = "x";
- else if (i)
- return void n._completeGesture(e);
- n._checkedAxis = !0
- } else if (-7 > r) {
- if (o) {
- if (i)
- return void n._completeGesture(e)
- } else
- e.preventDefault(),
- n._currMoveAxis = "y";
- n._checkedAxis = !0
- }
- }
- },
- _completeGesture: function(e, t) {
- this._lockAxis = !0,
- this._hasMoved = this._isDragging = !1,
- this._onDragRelease(e)
- },
- _onDragRelease: function(t, n) {
- function i(e) {
- return 100 > e ? 100 : 500 < e ? 500 : e
- }
- function o(e, t) {
- (a._isMove || n) && (g = (-a._realId - a._idOffset) * a._slideSize,
- r = Math.abs(a._sPosition - g),
- a._currAnimSpeed = r / t,
- e && (a._currAnimSpeed += 250),
- a._currAnimSpeed = i(a._currAnimSpeed),
- a._animateTo(g, !1))
- }
- var r, a = this, s = -1 < t.type.indexOf("touch");
- if (!a._isTouchGesture || s)
- if (a._isTouchGesture = !1,
- a.ev.trigger("rsDragRelease"),
- a._renderMoveEvent = null,
- a._isDragging = !1,
- a._lockAxis = !1,
- a._checkedAxis = !1,
- a._renderMoveTime = 0,
- cancelAnimationFrame(a._animFrame),
- a._hasMoved && (n ? a._setThumbsPosition(a._currRenderPosition) : a._isMove && a._setPosition(a._currRenderPosition)),
- a._eventCallbacks.dragMove && (a._unbindPassiveEvent(document, a._moveEvent, a._eventCallbacks.dragMove, !0),
- a._unbindPassiveEvent(document, a._upEvent, a._eventCallbacks.dragRelease, !0)),
- s && a._sliderOverflow.off(a._cancelEvent),
- a._setGrabCursor(),
- !a._hasMoved && !a._multipleTouches && n && a._thumbsEnabled) {
- var l = e(t.target).closest(".rsNavItem");
- l.length && a.goTo(l.index())
- } else {
- if (l = n ? a._thumbsHorizontal : a._slidesHorizontal,
- !a._hasMoved || "y" === a._currMoveAxis && l || "x" === a._currMoveAxis && !l) {
- if (n || !a._wasAnimating)
- return a._wasAnimating = !1,
- void (a.dragSuccess = !1);
- if (a._wasAnimating = !1,
- a.st.navigateByClick)
- return a._mouseNext(t),
- void (a.dragSuccess = !0);
- a.dragSuccess = !0
- } else
- a.dragSuccess = !0;
- a._wasAnimating = !1,
- a._currMoveAxis = "";
- var c = a.st.minSlideOffset;
- s = s ? t.changedTouches[0] : t;
- var u = l ? s.pageX : s.pageY
- , d = a._startPagePos
- , f = a.currSlideId
- , h = a.numSlides
- , p = l ? a._horDir : a._verDir
- , m = a._loop;
- if (s = u - a._accelerationPos,
- l = (new Date).getTime() - a._startTime,
- l = Math.abs(s) / l,
- 0 === p || 1 >= h)
- o(!0, l);
- else {
- if (!m && !n)
- if (0 >= f) {
- if (0 < p)
- return void o(!0, l)
- } else if (f >= h - 1 && 0 > p)
- return void o(!0, l);
- if (n) {
- var g = a._thumbsPosition;
- if (g > a._thumbsMinPosition)
- g = a._thumbsMinPosition;
- else if (g < a._thumbsMaxPosition)
- g = a._thumbsMaxPosition;
- else {
- u = l * l / .006;
- var v = -a._thumbsPosition;
- if (d = a._thumbsContainerSize - a._thumbsViewportSize + a._thumbsPosition,
- 0 < s && u > v ? (l = l * (v += a._thumbsViewportSize / (15 / (u / l * .003))) / u,
- u = v) : 0 > s && u > d && (l = l * (d += a._thumbsViewportSize / (15 / (u / l * .003))) / u,
- u = d),
- v = Math.max(Math.round(l / .003), 50),
- (g += u * (0 > s ? -1 : 1)) > a._thumbsMinPosition)
- return void a._animateThumbsTo(g, v, !0, a._thumbsMinPosition, 200);
- if (g < a._thumbsMaxPosition)
- return void a._animateThumbsTo(g, v, !0, a._thumbsMaxPosition, 200)
- }
- a._animateThumbsTo(g, v, !0)
- } else
- v = function(e) {
- var t = Math.floor(e / a._slideSize);
- return e - t * a._slideSize > c && t++,
- t
- }
- ,
- d + c < u ? 0 > p ? o(!1, l) : (v = v(u - d),
- a._moveTo(a.currSlideId - v, i(Math.abs(a._sPosition - (-a._realId - a._idOffset + v) * a._slideSize) / l), !1, !0, !0)) : d - c > u ? 0 < p ? o(!1, l) : (v = v(d - u),
- a._moveTo(a.currSlideId + v, i(Math.abs(a._sPosition - (-a._realId - a._idOffset - v) * a._slideSize) / l), !1, !0, !0)) : o(!1, l)
- }
- }
- },
- _setPosition: function(e) {
- e = this._sPosition = e,
- this._useCSS3Transitions ? this._slidesContainer.css(this._xProp, this._tPref1 + (this._slidesHorizontal ? e + this._tPref2 + 0 : 0 + this._tPref2 + e) + this._tPref3) : this._slidesContainer.css(this._slidesHorizontal ? this._xProp : this._yProp, e)
- },
- updateSliderSize: function(e) {
- if (this.slider) {
- if (this.st.autoScaleSlider) {
- var t = this.st.autoScaleSliderWidth
- , n = this.st.autoScaleSliderHeight;
- if (this.st.autoScaleHeight) {
- var i = this.slider.width();
- i != this.width && (this.slider.css("height", n / t * i),
- i = this.slider.width());
- var o = this.slider.height()
- } else
- (o = this.slider.height()) != this.height && (this.slider.css("width", t / n * o),
- o = this.slider.height()),
- i = this.slider.width()
- } else
- i = this.slider.width(),
- o = this.slider.height();
- if (e || i != this.width || o != this.height) {
- for (this.width = i,
- this.height = o,
- this._wrapWidth = i,
- this._wrapHeight = o,
- this.ev.trigger("rsBeforeSizeSet"),
- this.ev.trigger("rsAfterSizePropSet"),
- this._sliderOverflow.css({
- width: this._wrapWidth,
- height: this._wrapHeight
- }),
- this._slideSize = (this._slidesHorizontal ? this._wrapWidth : this._wrapHeight) + this.st.slidesSpacing,
- this._imagePadding = this.st.imageScalePadding,
- i = 0; i < this.slides.length; i++)
- (e = this.slides[i]).positionSet = !1,
- e && e.images && e.isLoaded && (e.isRendered = !1,
- this._resizeImage(e));
- if (this._cloneHolders)
- for (i = 0; i < this._cloneHolders.length; i++)
- (e = this._cloneHolders[i]).holder.css(this._reorderProp, (e.id + this._idOffset) * this._slideSize);
- this._updateBlocksContent(),
- this._isMove && (this._useCSS3Transitions && this._slidesContainer.css(this._vendorPref + "transition-duration", "0s"),
- this._setPosition((-this._realId - this._idOffset) * this._slideSize)),
- this.ev.trigger("rsOnUpdateNav")
- }
- this._sliderOffset = this._sliderOverflow.offset(),
- this._sliderOffset = this._sliderOffset[this._reorderProp]
- }
- },
- appendSlide: function(t, n) {
- var i = this._parseNode(t);
- (isNaN(n) || n > this.numSlides) && (n = this.numSlides),
- this.slides.splice(n, 0, i),
- this.slidesJQ.splice(n, 0, e('')),
- n <= this.currSlideId && this.currSlideId++,
- this.ev.trigger("rsOnAppendSlide", [i, n]),
- this._refreshSlides(n),
- n === this.currSlideId && this.ev.trigger("rsAfterSlideChange")
- },
- removeSlide: function(e) {
- var t = this.slides[e];
- t && (t.holder && t.holder.remove(),
- e < this.currSlideId && this.currSlideId--,
- this.slides.splice(e, 1),
- this.slidesJQ.splice(e, 1),
- this.ev.trigger("rsOnRemoveSlide", [e]),
- this._refreshSlides(e),
- e === this.currSlideId && this.ev.trigger("rsAfterSlideChange"))
- },
- _refreshSlides: function(e) {
- var t = this;
- for (e = t.numSlides,
- e = 0 >= t._realId ? 0 : Math.floor(t._realId / e),
- t.numSlides = t.slides.length,
- 0 === t.numSlides ? (t.currSlideId = t._idOffset = t._realId = 0,
- t.currSlide = t._oldHolder = null) : t._realId = e * t.numSlides + t.currSlideId,
- e = 0; e < t.numSlides; e++)
- t.slides[e].id = e;
- t.currSlide = t.slides[t.currSlideId],
- t._currHolder = t.slidesJQ[t.currSlideId],
- t.currSlideId >= t.numSlides ? t.goTo(t.numSlides - 1) : 0 > t.currSlideId && t.goTo(0),
- t._refreshNumPreloadImages(),
- t._isMove && t._slidesContainer.css(t._vendorPref + t._TD, "0ms"),
- t._refreshSlidesTimeout && clearTimeout(t._refreshSlidesTimeout),
- t._refreshSlidesTimeout = setTimeout((function() {
- t._isMove && t._setPosition((-t._realId - t._idOffset) * t._slideSize),
- t._updateBlocksContent(),
- t._isMove || t._currHolder.css({
- display: "block",
- opacity: 1
- })
- }
- ), 14),
- t.ev.trigger("rsOnUpdateNav")
- },
- _setGrabCursor: function() {
- this._hasDrag && this._isMove && (this._grabCursor ? this._sliderOverflow.css("cursor", this._grabCursor) : (this._sliderOverflow.removeClass("grabbing-cursor"),
- this._sliderOverflow.addClass("grab-cursor")))
- },
- _setGrabbingCursor: function() {
- this._hasDrag && this._isMove && (this._grabbingCursor ? this._sliderOverflow.css("cursor", this._grabbingCursor) : (this._sliderOverflow.removeClass("grab-cursor"),
- this._sliderOverflow.addClass("grabbing-cursor")))
- },
- next: function(e) {
- this._moveTo("next", this.st.transitionSpeed, !0, !e)
- },
- prev: function(e) {
- this._moveTo("prev", this.st.transitionSpeed, !0, !e)
- },
- _moveTo: function(e, t, n, i, o) {
- var r = this;
- r.ev.trigger("rsBeforeMove", [e, i]);
- var a = "next" === e ? r.currSlideId + 1 : "prev" === e ? r.currSlideId - 1 : e = parseInt(e, 10);
- if (!r._loop) {
- if (0 > a)
- return void r._doBackAndForthAnim("left", !i);
- if (a >= r.numSlides)
- return void r._doBackAndForthAnim("right", !i)
- }
- r._isAnimating && (r._stopAnimation(!0),
- n = !1);
- var s = a - r.currSlideId;
- a = r._prevSlideId = r.currSlideId;
- var l, c = r.currSlideId + s;
- i = r._realId,
- r._loop ? (c = r._updateBlocksContent(!1, c),
- i += s) : i = c,
- r._newSlideId = c,
- r._oldHolder = r.slidesJQ[r.currSlideId],
- r._realId = i,
- r.currSlideId = r._newSlideId,
- r.currSlide = r.slides[r.currSlideId],
- r._currHolder = r.slidesJQ[r.currSlideId],
- c = r.st.slidesDiff;
- var u = 0 < s;
- s = Math.abs(s);
- var d = Math.floor(a / r._numPreloadImages)
- , f = Math.floor((a + (u ? c : -c)) / r._numPreloadImages);
- if ((d = (u ? Math.max(d, f) : Math.min(d, f)) * r._numPreloadImages + (u ? r._numPreloadImages - 1 : 0)) > r.numSlides - 1 ? d = r.numSlides - 1 : 0 > d && (d = 0),
- (a = u ? d - a : a - d) > r._numPreloadImages && (a = r._numPreloadImages),
- s > a + c)
- for (r._idOffset += (s - (a + c)) * (u ? -1 : 1),
- t *= 1.4,
- a = 0; a < r.numSlides; a++)
- r.slides[a].positionSet = !1;
- r._currAnimSpeed = t,
- r._updateBlocksContent(!0),
- o || (l = !0);
- var h = (-i - r._idOffset) * r._slideSize;
- l ? setTimeout((function() {
- r._isWorking = !1,
- r._animateTo(h, e, !1, n),
- r.ev.trigger("rsOnUpdateNav")
- }
- ), 0) : (r._animateTo(h, e, !1, n),
- r.ev.trigger("rsOnUpdateNav"))
- },
- _updateArrowsNav: function() {
- this.st.arrowsNav && (1 >= this.numSlides ? (this._arrowLeft.css("display", "none"),
- this._arrowRight.css("display", "none")) : (this._arrowLeft.css("display", "block"),
- this._arrowRight.css("display", "block"),
- this._loop || this.st.loopRewind || (0 === this.currSlideId ? this._arrowLeft.addClass("rsArrowDisabled") : this._arrowLeft.removeClass("rsArrowDisabled"),
- this.currSlideId === this.numSlides - 1 ? this._arrowRight.addClass("rsArrowDisabled") : this._arrowRight.removeClass("rsArrowDisabled"))))
- },
- _animateTo: function(t, n, i, o, r) {
- function a() {
- var e;
- c && (e = c.data("rsTimeout")) && (c !== u && c.css({
- opacity: 0,
- display: "none",
- zIndex: 0
- }),
- clearTimeout(e),
- c.data("rsTimeout", "")),
- (e = u.data("rsTimeout")) && (clearTimeout(e),
- u.data("rsTimeout", ""))
- }
- var s = this
- , l = {};
- if (isNaN(s._currAnimSpeed) && (s._currAnimSpeed = 400),
- s._sPosition = s._currRenderPosition = t,
- s.ev.trigger("rsBeforeAnimStart"),
- s._useCSS3Transitions)
- if (s._isMove)
- s._currAnimSpeed = parseInt(s._currAnimSpeed, 10),
- i = s._vendorPref + s._TTF,
- l[s._vendorPref + s._TD] = s._currAnimSpeed + "ms",
- l[i] = o ? e.rsCSS3Easing[s.st.easeInOut] : e.rsCSS3Easing[s.st.easeOut],
- s._slidesContainer.css(l),
- o || !s.hasTouch ? setTimeout((function() {
- s._setPosition(t)
- }
- ), 5) : s._setPosition(t);
- else {
- s._currAnimSpeed = s.st.transitionSpeed;
- var c = s._oldHolder
- , u = s._currHolder;
- u.data("rsTimeout") && u.css("opacity", 0),
- a(),
- c && c.data("rsTimeout", setTimeout((function() {
- l[s._vendorPref + s._TD] = "0ms",
- l.zIndex = 0,
- l.display = "none",
- c.data("rsTimeout", ""),
- c.css(l),
- setTimeout((function() {
- c.css("opacity", 0)
- }
- ), 16)
- }
- ), s._currAnimSpeed + 60)),
- l.display = "block",
- l.zIndex = s._fadeZIndex,
- l.opacity = 0,
- l[s._vendorPref + s._TD] = "0ms",
- l[s._vendorPref + s._TTF] = e.rsCSS3Easing[s.st.easeInOut],
- u.css(l),
- u.data("rsTimeout", setTimeout((function() {
- u.css(s._vendorPref + s._TD, s._currAnimSpeed + "ms"),
- u.data("rsTimeout", setTimeout((function() {
- u.css("opacity", 1),
- u.data("rsTimeout", "")
- }
- ), 20))
- }
- ), 20))
- }
- else
- s._isMove ? (l[s._slidesHorizontal ? s._xProp : s._yProp] = t + "px",
- s._slidesContainer.animate(l, s._currAnimSpeed, o ? s.st.easeInOut : s.st.easeOut)) : (c = s._oldHolder,
- (u = s._currHolder).stop(!0, !0).css({
- opacity: 0,
- display: "block",
- zIndex: s._fadeZIndex
- }),
- s._currAnimSpeed = s.st.transitionSpeed,
- u.animate({
- opacity: 1
- }, s._currAnimSpeed, s.st.easeInOut),
- a(),
- c && c.data("rsTimeout", setTimeout((function() {
- c.stop(!0, !0).css({
- opacity: 0,
- display: "none",
- zIndex: 0
- })
- }
- ), s._currAnimSpeed + 60)));
- s._isAnimating = !0,
- s.loadingTimeout && clearTimeout(s.loadingTimeout),
- s.loadingTimeout = r ? setTimeout((function() {
- s.loadingTimeout = null,
- r.call()
- }
- ), s._currAnimSpeed + 60) : setTimeout((function() {
- s.loadingTimeout = null,
- s._animationComplete(n)
- }
- ), s._currAnimSpeed + 60)
- },
- _stopAnimation: function(e) {
- if (this._isAnimating = !1,
- clearTimeout(this.loadingTimeout),
- this._isMove)
- if (this._useCSS3Transitions) {
- if (!e) {
- e = this._sPosition;
- var t = this._currRenderPosition = this._getTransformProp();
- this._slidesContainer.css(this._vendorPref + this._TD, "0ms"),
- e !== t && this._setPosition(t)
- }
- } else
- this._slidesContainer.stop(!0),
- this._sPosition = parseInt(this._slidesContainer.css(this._slidesHorizontal ? this._xProp : this._yProp), 10);
- else
- 20 < this._fadeZIndex ? this._fadeZIndex = 10 : this._fadeZIndex++
- },
- _getTransformProp: function() {
- var e = window.getComputedStyle(this._slidesContainer.get(0), null).getPropertyValue(this._vendorPref + "transform").replace(/^matrix\(/i, "").split(/, |\)$/g)
- , t = 0 === e[0].indexOf("matrix3d");
- return parseInt(e[this._slidesHorizontal ? t ? 12 : 4 : t ? 13 : 5], 10)
- },
- _getCSS3Prop: function(e, t) {
- return this._useCSS3Transitions ? this._tPref1 + (t ? e + this._tPref2 + 0 : 0 + this._tPref2 + e) + this._tPref3 : e
- },
- _animationComplete: function(e) {
- this._isMove || (this._currHolder.css("z-index", 0),
- this._fadeZIndex = 10),
- this._isAnimating = !1,
- this.staticSlideId = this.currSlideId,
- this._updateBlocksContent(),
- this._slidesMoved = !1,
- this.ev.trigger("rsAfterSlideChange")
- },
- _doBackAndForthAnim: function(e, t) {
- var n = this
- , i = (-n._realId - n._idOffset) * n._slideSize;
- if (0 !== n.numSlides && !n._isAnimating)
- if (n.st.loopRewind)
- n.goTo("left" === e ? n.numSlides - 1 : 0, t);
- else if (n._isMove) {
- n._currAnimSpeed = 200;
- var o = function() {
- n._isAnimating = !1
- };
- n._animateTo(i + ("left" === e ? 30 : -30), "", !1, !0, (function() {
- n._isAnimating = !1,
- n._animateTo(i, "", !1, !0, o)
- }
- ))
- }
- },
- _detectPassiveSupport: function() {
- var e = this;
- if (!e._passiveChecked) {
- e._passiveChecked = !0,
- e._passiveParam = !1;
- try {
- var t = Object.defineProperty({}, "passive", {
- get: function() {
- e._passiveParam = {
- passive: !1
- }
- }
- });
- window.addEventListener("testPassive", null, t),
- window.removeEventListener("testPassive", null, t)
- } catch (e) {}
- }
- },
- _bindPassiveEvent: function(e, t, n, i) {
- this._detectPassiveSupport(),
- t = t.split(" ");
- for (var o = 0; o < t.length; o++)
- t[o] && 2 < t[o].length && e.addEventListener(t[o], n, !!i && this._passiveParam)
- },
- _unbindPassiveEvent: function(e, t, n, i) {
- this._detectPassiveSupport(),
- t = t.split(" ");
- for (var o = 0; o < t.length; o++)
- t[o] && 2 < t[o].length && e.removeEventListener(t[o], n, !!i && this._passiveParam)
- },
- _resizeImage: function(t, n) {
- if (!t.isRendered) {
- var i = t.content
- , o = "rsMainSlideImage"
- , r = e.isFunction(this.st.imageAlignCenter) ? this.st.imageAlignCenter(t) : this.st.imageAlignCenter
- , a = e.isFunction(this.st.imageScaleMode) ? this.st.imageScaleMode(t) : this.st.imageScaleMode;
- if (t.videoURL)
- if (o = "rsVideoContainer",
- "fill" !== a)
- var s = !0;
- else {
- var l = i;
- l.hasClass(o) || (l = l.find("." + o)),
- l.css({
- width: "100%",
- height: "100%"
- }),
- o = "rsMainSlideImage"
- }
- if (i.hasClass(o) || (i = i.find("." + o)),
- i) {
- var c = t.iW
- , u = t.iH;
- if (t.isRendered = !0,
- "none" !== a || r) {
- o = "fill" !== a ? this._imagePadding : 0,
- l = this._wrapWidth - 2 * o;
- var d = this._wrapHeight - 2 * o
- , f = {};
- if ("fit-if-smaller" === a && (c > l || u > d) && (a = "fit"),
- "fill" === a || "fit" === a) {
- var h = l / c
- , p = d / u;
- h = "fill" == a ? h > p ? h : p : "fit" == a ? h < p ? h : p : 1,
- c = Math.ceil(c * h, 10),
- u = Math.ceil(u * h, 10)
- }
- "none" !== a && (f.width = c,
- f.height = u,
- s && i.find(".rsImg").css({
- width: "100%",
- height: "100%"
- })),
- r && (f.marginLeft = Math.floor((l - c) / 2) + o,
- f.marginTop = Math.floor((d - u) / 2) + o),
- i.css(f)
- }
- }
- }
- }
- },
- e.rsProto = t.prototype,
- e.fn.royalSlider = function(n) {
- var i = arguments;
- return this.each((function() {
- var o = e(this);
- if ("object" !== d(n) && n) {
- if ((o = o.data("royalSlider")) && o[n])
- return o[n].apply(o, Array.prototype.slice.call(i, 1))
- } else
- o.data("royalSlider") || o.data("royalSlider", new t(o,n))
- }
- ))
- }
- ,
- e.fn.royalSlider.defaults = {
- slidesSpacing: 8,
- startSlideId: 0,
- loop: !1,
- loopRewind: !1,
- numImagesToPreload: 4,
- fadeinLoadedSlide: !0,
- slidesOrientation: "horizontal",
- transitionType: "move",
- transitionSpeed: 600,
- controlNavigation: "bullets",
- controlsInside: !0,
- arrowsNav: !0,
- arrowsNavAutoHide: !0,
- navigateByClick: !0,
- randomizeSlides: !1,
- sliderDrag: !0,
- sliderTouch: !0,
- keyboardNavEnabled: !1,
- fadeInAfterLoaded: !0,
- allowCSS3: !0,
- allowCSS3OnWebkit: !0,
- addActiveClass: !1,
- autoHeight: !1,
- easeOut: "easeOutSine",
- easeInOut: "easeInOutSine",
- minSlideOffset: 10,
- imageScaleMode: "fit-if-smaller",
- imageAlignCenter: !0,
- imageScalePadding: 4,
- usePreloader: !0,
- autoScaleSlider: !1,
- autoScaleSliderWidth: 800,
- autoScaleSliderHeight: 400,
- autoScaleHeight: !0,
- arrowsNavHideOnTouch: !1,
- globalCaption: !1,
- slidesDiff: 2
- },
- e.rsCSS3Easing = {
- easeOutSine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
- easeInOutSine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
- },
- e.extend(u.easing, {
- easeInOutSine: function(e, t, n, i, o) {
- return -i / 2 * (Math.cos(Math.PI * t / o) - 1) + n
- },
- easeOutSine: function(e, t, n, i, o) {
- return i * Math.sin(t / o * (Math.PI / 2)) + n
- },
- easeOutCubic: function(e, t, n, i, o) {
- return i * ((t = t / o - 1) * t * t + 1) + n
- }
- })
- }(u, window),
- (i = u).extend(i.rsProto, {
- _initBullets: function() {
- var e = this;
- "bullets" === e.st.controlNavigation && (e.ev.one("rsAfterPropsSetup", (function() {
- e._controlNavEnabled = !0,
- e.slider.addClass("rsWithBullets");
- for (var t = '', n = 0; n < e.numSlides; n++)
- t += '
';
- e._controlNav = t = i(t + "
"),
- e._controlNavItems = t.appendTo(e.slider).children(),
- e._controlNav.on("click.rs", ".rsNavItem", (function(t) {
- e._thumbsDrag || e.goTo(i(this).index())
- }
- ))
- }
- )),
- e.ev.on("rsOnAppendSlide", (function(t, n, i) {
- i >= e.numSlides ? e._controlNav.append('
') : e._controlNavItems.eq(i).before('
'),
- e._controlNavItems = e._controlNav.children()
- }
- )),
- e.ev.on("rsOnRemoveSlide", (function(t, n) {
- var i = e._controlNavItems.eq(n);
- i && i.length && (i.remove(),
- e._controlNavItems = e._controlNav.children())
- }
- )),
- e.ev.on("rsOnUpdateNav", (function() {
- var t = e.currSlideId;
- e._prevNavItem && e._prevNavItem.removeClass("rsNavSelected"),
- (t = e._controlNavItems.eq(t)).addClass("rsNavSelected"),
- e._prevNavItem = t
- }
- )))
- }
- }),
- i.rsModules.bullets = i.rsProto._initBullets,
- (o = u).extend(o.rsProto, {
- _initThumbs: function() {
- var e = this;
- "thumbnails" === e.st.controlNavigation && (e._thumbsDefaults = {
- drag: !0,
- touch: !0,
- orientation: "horizontal",
- navigation: !0,
- arrows: !0,
- arrowLeft: null,
- arrowRight: null,
- spacing: 4,
- arrowsAutoHide: !1,
- appendSpan: !1,
- transitionSpeed: 600,
- autoCenter: !0,
- fitInViewport: !0,
- firstMargin: !0,
- paddingTop: 0,
- paddingBottom: 0
- },
- e.st.thumbs = o.extend({}, e._thumbsDefaults, e.st.thumbs),
- e._firstThumbMoved = !0,
- !1 === e.st.thumbs.firstMargin ? e.st.thumbs.firstMargin = 0 : !0 === e.st.thumbs.firstMargin && (e.st.thumbs.firstMargin = e.st.thumbs.spacing),
- e.ev.on("rsBeforeParseNode", (function(e, t, n) {
- t = o(t),
- n.thumbnail = t.find(".rsTmb").remove(),
- n.thumbnail.length ? n.thumbnail = o(document.createElement("div")).append(n.thumbnail).html() : (n.thumbnail = t.attr("data-rsTmb"),
- n.thumbnail || (n.thumbnail = t.find(".rsImg").attr("data-rsTmb")),
- n.thumbnail = n.thumbnail ? '
' : "")
- }
- )),
- e.ev.one("rsAfterPropsSetup", (function() {
- e._createThumbs()
- }
- )),
- e._prevNavItem = null,
- e.ev.on("rsOnUpdateNav", (function() {
- var t = o(e._controlNavItems[e.currSlideId]);
- t !== e._prevNavItem && (e._prevNavItem && (e._prevNavItem.removeClass("rsNavSelected"),
- e._prevNavItem = null),
- e._thumbsNavigation && e._setCurrentThumb(e.currSlideId),
- e._prevNavItem = t.addClass("rsNavSelected"))
- }
- )),
- e.ev.on("rsOnAppendSlide", (function(t, n, i) {
- t = "' + e._addThumbHTML + n.thumbnail + "
",
- e._useCSS3Transitions && e._thumbsContainer.css(e._vendorPref + "transition-duration", "0ms"),
- i >= e.numSlides ? e._thumbsContainer.append(t) : e._controlNavItems.eq(i).before(t),
- e._controlNavItems = e._thumbsContainer.children(),
- e.updateThumbsSize(!0)
- }
- )),
- e.ev.on("rsOnRemoveSlide", (function(t, n) {
- var i = e._controlNavItems.eq(n);
- i && (e._useCSS3Transitions && e._thumbsContainer.css(e._vendorPref + "transition-duration", "0ms"),
- i.remove(),
- e._controlNavItems = e._thumbsContainer.children(),
- e.updateThumbsSize(!0))
- }
- )))
- },
- _createThumbs: function() {
- var e, t = this, n = "rsThumbs", i = t.st.thumbs, r = "", a = i.spacing;
- t._controlNavEnabled = !0,
- t._thumbsHorizontal = "vertical" !== i.orientation,
- t._thumbsMargin = e = a ? ' style="margin-' + (t._thumbsHorizontal ? "right" : "bottom") + ":" + a + 'px;"' : "",
- t._thumbsPosition = 0,
- t._isThumbsAnimating = !1,
- t._thumbsDrag = !1,
- t._thumbsNavigation = !1,
- t._thumbsArrows = i.arrows && i.navigation;
- var s = t._thumbsHorizontal ? "Hor" : "Ver";
- t.slider.addClass("rsWithThumbs rsWithThumbs" + s),
- r += '',
- t._addThumbHTML = i.appendSpan ? '
' : "";
- for (var l = 0; l < t.numSlides; l++)
- r += "
' + (s = t.slides[l]).thumbnail + t._addThumbHTML + "
";
- r = o(r + "
"),
- e = {},
- i.paddingTop && (e[t._thumbsHorizontal ? "paddingTop" : "paddingLeft"] = i.paddingTop),
- i.paddingBottom && (e[t._thumbsHorizontal ? "paddingBottom" : "paddingRight"] = i.paddingBottom),
- r.css(e),
- t._thumbsContainer = o(r).find("." + n + "Container"),
- t._thumbsArrows && (n += "Arrow",
- i.arrowLeft ? t._thumbsArrowLeft = i.arrowLeft : (t._thumbsArrowLeft = o(''),
- r.append(t._thumbsArrowLeft)),
- i.arrowRight ? t._thumbsArrowRight = i.arrowRight : (t._thumbsArrowRight = o(''),
- r.append(t._thumbsArrowRight)),
- t._thumbsArrowLeft.click((function() {
- var e = (Math.floor(t._thumbsPosition / t._thumbSize) + t._visibleThumbsPerView) * t._thumbSize + t.st.thumbs.firstMargin;
- t._animateThumbsTo(e > t._thumbsMinPosition ? t._thumbsMinPosition : e)
- }
- )),
- t._thumbsArrowRight.click((function() {
- var e = (Math.floor(t._thumbsPosition / t._thumbSize) - t._visibleThumbsPerView) * t._thumbSize + t.st.thumbs.firstMargin;
- t._animateThumbsTo(e < t._thumbsMaxPosition ? t._thumbsMaxPosition : e)
- }
- )),
- i.arrowsAutoHide && !t.hasTouch && (t._thumbsArrowLeft.css("opacity", 0),
- t._thumbsArrowRight.css("opacity", 0),
- r.one("mousemove.rsarrowshover", (function() {
- t._thumbsNavigation && (t._thumbsArrowLeft.css("opacity", 1),
- t._thumbsArrowRight.css("opacity", 1))
- }
- )),
- r.hover((function() {
- t._thumbsNavigation && (t._thumbsArrowLeft.css("opacity", 1),
- t._thumbsArrowRight.css("opacity", 1))
- }
- ), (function() {
- t._thumbsNavigation && (t._thumbsArrowLeft.css("opacity", 0),
- t._thumbsArrowRight.css("opacity", 0))
- }
- )))),
- t._controlNav = r,
- t._controlNavItems = t._thumbsContainer.children(),
- t.msEnabled && t.st.thumbs.navigation && t._thumbsContainer.css("-ms-touch-action", t._thumbsHorizontal ? "pan-y" : "pan-x"),
- t.slider.append(r),
- t._thumbsEnabled = !0,
- t._thumbsSpacing = a,
- i.navigation && t._useCSS3Transitions && t._thumbsContainer.css(t._vendorPref + "transition-property", t._vendorPref + "transform"),
- t._controlNav.on("click.rs", ".rsNavItem", (function(e) {
- t._thumbsDrag || t.goTo(o(this).index())
- }
- )),
- t.ev.off("rsBeforeSizeSet.thumbs").on("rsBeforeSizeSet.thumbs", (function() {
- t._realWrapSize = t._thumbsHorizontal ? t._wrapHeight : t._wrapWidth,
- t.updateThumbsSize(!0)
- }
- )),
- t.ev.off("rsAutoHeightChange.thumbs").on("rsAutoHeightChange.thumbs", (function(e, n) {
- t.updateThumbsSize(!0, n)
- }
- ))
- },
- updateThumbsSize: function(e, t) {
- var n = this._controlNavItems.first()
- , i = {}
- , o = this._controlNavItems.length;
- this._thumbSize = (this._thumbsHorizontal ? n.outerWidth() : n.outerHeight()) + this._thumbsSpacing,
- this._thumbsContainerSize = o * this._thumbSize - this._thumbsSpacing,
- i[this._thumbsHorizontal ? "width" : "height"] = this._thumbsContainerSize + this._thumbsSpacing,
- this._thumbsViewportSize = this._thumbsHorizontal ? this._controlNav.width() : void 0 !== t ? t : this._controlNav.height(),
- this._thumbsEnabled && (this.isFullscreen || this.st.thumbs.fitInViewport) && (this._thumbsHorizontal ? this._wrapHeight = this._realWrapSize - this._controlNav.outerHeight() : this._wrapWidth = this._realWrapSize - this._controlNav.outerWidth()),
- this._thumbsViewportSize && (this._thumbsMaxPosition = -(this._thumbsContainerSize - this._thumbsViewportSize) - this.st.thumbs.firstMargin,
- this._thumbsMinPosition = this.st.thumbs.firstMargin,
- this._visibleThumbsPerView = Math.floor(this._thumbsViewportSize / this._thumbSize),
- this._thumbsContainerSize < this._thumbsViewportSize ? (this.st.thumbs.autoCenter ? this._setThumbsPosition((this._thumbsViewportSize - this._thumbsContainerSize) / 2) : this._setThumbsPosition(this._thumbsMinPosition),
- this.st.thumbs.arrows && this._thumbsArrowLeft && (this._thumbsArrowLeft.addClass("rsThumbsArrowDisabled"),
- this._thumbsArrowRight.addClass("rsThumbsArrowDisabled")),
- this._thumbsDrag = this._thumbsNavigation = !1,
- this._unbindPassiveEvent(this._controlNav[0], this._downEvent, this._eventCallbacks.dragStartThumb, !1)) : this.st.thumbs.navigation && !this._thumbsNavigation && (this._thumbsNavigation = !0,
- !this.hasTouch && this.st.thumbs.drag || this.hasTouch && this.st.thumbs.touch) && (this._thumbsDrag = !0,
- this._bindPassiveEvent(this._controlNav[0], this._downEvent, this._eventCallbacks.dragStartThumb, !1)),
- this._thumbsContainer.css(i),
- e && t && this._setCurrentThumb(this.currSlideId, !0))
- },
- setThumbsOrientation: function(e, t) {
- this._thumbsEnabled && (this.st.thumbs.orientation = e,
- this._controlNav.remove(),
- this.slider.removeClass("rsWithThumbsHor rsWithThumbsVer"),
- this._createThumbs(),
- this._unbindPassiveEvent(this._controlNav[0], this._downEvent, this._eventCallbacks.dragStartThumb, !1),
- t || this.updateSliderSize(!0))
- },
- _setThumbsPosition: function(e) {
- this._thumbsPosition = e,
- this._useCSS3Transitions ? this._thumbsContainer.css(this._xProp, this._tPref1 + (this._thumbsHorizontal ? e + this._tPref2 + 0 : 0 + this._tPref2 + e) + this._tPref3) : this._thumbsContainer.css(this._thumbsHorizontal ? this._xProp : this._yProp, e)
- },
- _animateThumbsTo: function(e, t, n, i, r) {
- var a = this;
- if (a._thumbsNavigation) {
- t || (t = a.st.thumbs.transitionSpeed),
- a._thumbsPosition = e,
- a._thumbsAnimTimeout && clearTimeout(a._thumbsAnimTimeout),
- a._isThumbsAnimating && (a._useCSS3Transitions || a._thumbsContainer.stop(),
- n = !0);
- var s = {};
- a._isThumbsAnimating = !0,
- a._useCSS3Transitions ? (s[a._vendorPref + "transition-duration"] = t + "ms",
- s[a._vendorPref + "transition-timing-function"] = n ? o.rsCSS3Easing[a.st.easeOut] : o.rsCSS3Easing[a.st.easeInOut],
- a._thumbsContainer.css(s),
- a._setThumbsPosition(e)) : (s[a._thumbsHorizontal ? a._xProp : a._yProp] = e + "px",
- a._thumbsContainer.animate(s, t, n ? "easeOutCubic" : a.st.easeInOut)),
- i && (a._thumbsPosition = i),
- a._updateThumbsArrows(),
- a._thumbsAnimTimeout = setTimeout((function() {
- a._isThumbsAnimating = !1,
- r && (a._animateThumbsTo(i, r, !0),
- r = null)
- }
- ), t)
- }
- },
- _updateThumbsArrows: function() {
- this._thumbsArrows && (this._thumbsPosition === this._thumbsMinPosition ? this._thumbsArrowLeft.addClass("rsThumbsArrowDisabled") : this._thumbsArrowLeft.removeClass("rsThumbsArrowDisabled"),
- this._thumbsPosition === this._thumbsMaxPosition ? this._thumbsArrowRight.addClass("rsThumbsArrowDisabled") : this._thumbsArrowRight.removeClass("rsThumbsArrowDisabled"))
- },
- _setCurrentThumb: function(e, t) {
- var n = 0
- , i = e * this._thumbSize + 2 * this._thumbSize - this._thumbsSpacing + this._thumbsMinPosition;
- if (this._thumbsNavigation) {
- if (this._firstThumbMoved && (t = !0,
- this._firstThumbMoved = !1),
- i + this._thumbsPosition > this._thumbsViewportSize) {
- e === this.numSlides - 1 && (n = 1);
- var o = -e + this._visibleThumbsPerView - 2 + n;
- o = o * this._thumbSize + this._thumbsViewportSize % this._thumbSize + this._thumbsSpacing - this._thumbsMinPosition
- } else
- 0 !== e ? (e - 1) * this._thumbSize <= -this._thumbsPosition + this._thumbsMinPosition && e - 1 <= this.numSlides - this._visibleThumbsPerView && (o = (1 - e) * this._thumbSize + this._thumbsMinPosition) : o = this._thumbsMinPosition;
- o !== this._thumbsPosition && ((n = void 0 === o ? this._thumbsPosition : o) > this._thumbsMinPosition ? this._setThumbsPosition(this._thumbsMinPosition) : n < this._thumbsMaxPosition ? this._setThumbsPosition(this._thumbsMaxPosition) : void 0 !== o && (t ? this._setThumbsPosition(o) : this._animateThumbsTo(o))),
- this._updateThumbsArrows()
- }
- }
- }),
- o.rsModules.thumbnails = o.rsProto._initThumbs,
- (r = u).extend(r.rsProto, {
- _initTabs: function() {
- var e = this;
- "tabs" === e.st.controlNavigation && (e.ev.on("rsBeforeParseNode", (function(e, t, n) {
- t = r(t),
- n.thumbnail = t.find(".rsTmb").remove(),
- n.thumbnail.length ? n.thumbnail = r(document.createElement("div")).append(n.thumbnail).html() : (n.thumbnail = t.attr("data-rsTmb"),
- n.thumbnail || (n.thumbnail = t.find(".rsImg").attr("data-rsTmb")),
- n.thumbnail = n.thumbnail ? '
' : "")
- }
- )),
- e.ev.one("rsAfterPropsSetup", (function() {
- e._createTabs()
- }
- )),
- e.ev.on("rsOnAppendSlide", (function(t, n, i) {
- i >= e.numSlides ? e._controlNav.append('' + n.thumbnail + "
") : e._controlNavItems.eq(i).before('' + item.thumbnail + "
"),
- e._controlNavItems = e._controlNav.children()
- }
- )),
- e.ev.on("rsOnRemoveSlide", (function(t, n) {
- var i = e._controlNavItems.eq(n);
- i && (i.remove(),
- e._controlNavItems = e._controlNav.children())
- }
- )),
- e.ev.on("rsOnUpdateNav", (function() {
- var t = e.currSlideId;
- e._prevNavItem && e._prevNavItem.removeClass("rsNavSelected"),
- (t = e._controlNavItems.eq(t)).addClass("rsNavSelected"),
- e._prevNavItem = t
- }
- )))
- },
- _createTabs: function() {
- var e = this;
- e._controlNavEnabled = !0;
- for (var t = '', n = 0; n < e.numSlides; n++)
- t += '
' + e.slides[n].thumbnail + "
";
- t = r(t + "
"),
- e._controlNav = t,
- e._controlNavItems = t.children(".rsNavItem"),
- e.slider.append(t),
- e._controlNav.click((function(t) {
- (t = r(t.target).closest(".rsNavItem")).length && e.goTo(t.index())
- }
- ))
- }
- }),
- r.rsModules.tabs = r.rsProto._initTabs,
- function(e) {
- e.extend(e.rsProto, {
- _initFullscreen: function() {
- var t = this;
- t._fullscreenDefaults = {
- enabled: !1,
- keyboardNav: !0,
- buttonFS: !0,
- nativeFS: !1,
- doubleTap: !0
- },
- t.st.fullscreen = e.extend({}, t._fullscreenDefaults, t.st.fullscreen),
- t.st.fullscreen.enabled && t.ev.one("rsBeforeSizeSet", (function() {
- t._setupFullscreen()
- }
- ))
- },
- _setupFullscreen: function() {
- var t = this;
- if (t._fsKeyboard = !t.st.keyboardNavEnabled && t.st.fullscreen.keyboardNav,
- t.st.fullscreen.nativeFS) {
- var n = {
- supportsFullScreen: !1,
- isFullScreen: function() {
- return !1
- },
- requestFullScreen: function() {},
- cancelFullScreen: function() {},
- fullScreenEventName: "",
- prefix: ""
- }
- , i = ["webkit", "moz", "o", "ms", "khtml"];
- if (void 0 !== document.cancelFullScreen)
- n.supportsFullScreen = !0;
- else
- for (var o = 0, r = i.length; o < r; o++)
- if (n.prefix = i[o],
- void 0 !== document[n.prefix + "CancelFullScreen"]) {
- n.supportsFullScreen = !0;
- break
- }
- n.supportsFullScreen ? (t.nativeFS = !0,
- n.fullScreenEventName = n.prefix + "fullscreenchange" + t.ns,
- n.isFullScreen = function() {
- switch (this.prefix) {
- case "":
- return document.fullScreen;
- case "webkit":
- return document.webkitIsFullScreen;
- default:
- return document[this.prefix + "FullScreen"]
- }
- }
- ,
- n.requestFullScreen = function(e) {
- return "" === this.prefix ? e.requestFullScreen() : e[this.prefix + "RequestFullScreen"]()
- }
- ,
- n.cancelFullScreen = function(e) {
- return "" === this.prefix ? document.cancelFullScreen() : document[this.prefix + "CancelFullScreen"]()
- }
- ,
- t._fullScreenApi = n) : t._fullScreenApi = !1
- }
- t.st.fullscreen.buttonFS && (t._fsBtn = e('').appendTo(t._controlsContainer).on("click.rs", (function() {
- t.isFullscreen ? t.exitFullscreen() : t.enterFullscreen()
- }
- )))
- },
- enterFullscreen: function(t) {
- var n = this;
- if (n._fullScreenApi) {
- if (!t)
- return n._doc.on(n._fullScreenApi.fullScreenEventName, (function(e) {
- n._fullScreenApi.isFullScreen() ? n.enterFullscreen(!0) : n.exitFullscreen(!0)
- }
- )),
- void n._fullScreenApi.requestFullScreen(e("html")[0]);
- n._fullScreenApi.requestFullScreen(e("html")[0])
- }
- if (!n._isFullscreenUpdating) {
- var i;
- for (n._isFullscreenUpdating = !0,
- n._doc.on("keyup" + n.ns + "fullscreen", (function(e) {
- 27 === e.keyCode && n.exitFullscreen()
- }
- )),
- n._fsKeyboard && n._bindKeyboardNav(),
- t = e(window),
- n._fsScrollTopOnEnter = t.scrollTop(),
- n._fsScrollLeftOnEnter = t.scrollLeft(),
- n._htmlStyle = e("html").attr("style"),
- n._bodyStyle = e("body").attr("style"),
- n._sliderStyle = n.slider.attr("style"),
- e("body, html").css({
- overflow: "hidden",
- height: "100%",
- width: "100%",
- margin: "0",
- padding: "0"
- }),
- n.slider.addClass("rsFullscreen"),
- i = 0; i < n.numSlides; i++)
- (t = n.slides[i]).isRendered = !1,
- t.bigImage && (t.isBig = !0,
- t.isMedLoaded = t.isLoaded,
- t.isMedLoading = t.isLoading,
- t.medImage = t.image,
- t.medIW = t.iW,
- t.medIH = t.iH,
- t.slideId = -99,
- t.bigImage !== t.medImage && (t.sizeType = "big"),
- t.isLoaded = t.isBigLoaded,
- t.isLoading = !1,
- t.image = t.bigImage,
- t.images[0] = t.bigImage,
- t.iW = t.bigIW,
- t.iH = t.bigIH,
- t.isAppended = t.contentAdded = !1,
- n._updateItemSrc(t));
- n.isFullscreen = !0,
- n._isFullscreenUpdating = !1,
- n.updateSliderSize(),
- n.ev.trigger("rsEnterFullscreen")
- }
- },
- exitFullscreen: function(t) {
- var n = this;
- if (n._fullScreenApi) {
- if (!t)
- return void n._fullScreenApi.cancelFullScreen(e("html")[0]);
- n._doc.off(n._fullScreenApi.fullScreenEventName)
- }
- if (!n._isFullscreenUpdating) {
- var i;
- for (n._isFullscreenUpdating = !0,
- n._doc.off("keyup" + n.ns + "fullscreen"),
- n._fsKeyboard && n._doc.off("keydown" + n.ns),
- e("html").attr("style", n._htmlStyle || ""),
- e("body").attr("style", n._bodyStyle || ""),
- i = 0; i < n.numSlides; i++)
- (t = n.slides[i]).isRendered = !1,
- t.bigImage && (t.isBig = !1,
- t.slideId = -99,
- t.isBigLoaded = t.isLoaded,
- t.isBigLoading = t.isLoading,
- t.bigImage = t.image,
- t.bigIW = t.iW,
- t.bigIH = t.iH,
- t.isLoaded = t.isMedLoaded,
- t.isLoading = !1,
- t.image = t.medImage,
- t.images[0] = t.medImage,
- t.iW = t.medIW,
- t.iH = t.medIH,
- t.isAppended = t.contentAdded = !1,
- n._updateItemSrc(t, !0),
- t.bigImage !== t.medImage && (t.sizeType = "med"));
- n.isFullscreen = !1,
- (t = e(window)).scrollTop(n._fsScrollTopOnEnter),
- t.scrollLeft(n._fsScrollLeftOnEnter),
- n._isFullscreenUpdating = !1,
- n.slider.removeClass("rsFullscreen"),
- n.updateSliderSize(),
- setTimeout((function() {
- n.updateSliderSize()
- }
- ), 1),
- n.ev.trigger("rsExitFullscreen")
- }
- },
- _updateItemSrc: function(t, n) {
- var i = t.isLoaded || t.isLoading ? '
' : '';
- t.content.hasClass("rsImg") ? t.content = e(i) : t.content.find(".rsImg").eq(0).replaceWith(i),
- t.isLoaded || t.isLoading || !t.holder || t.holder.html(t.content)
- }
- }),
- e.rsModules.fullscreen = e.rsProto._initFullscreen
- }(u),
- (a = u).extend(a.rsProto, {
- _initAutoplay: function() {
- var e, t = this;
- t._autoPlayDefaults = {
- enabled: !1,
- stopAtAction: !0,
- pauseOnHover: !0,
- delay: 2e3
- },
- !t.st.autoPlay && t.st.autoplay && (t.st.autoPlay = t.st.autoplay),
- t.st.autoPlay = a.extend({}, t._autoPlayDefaults, t.st.autoPlay),
- t.st.autoPlay.enabled && (t.ev.on("rsBeforeParseNode", (function(t, n, i) {
- n = a(n),
- (e = n.attr("data-rsDelay")) && (i.customDelay = parseInt(e, 10))
- }
- )),
- t.ev.one("rsAfterInit", (function() {
- t._setupAutoPlay()
- }
- )),
- t.ev.on("rsBeforeDestroy", (function() {
- t.stopAutoPlay(),
- t.slider.off("mouseenter mouseleave"),
- a(window).off("blur" + t.ns + " focus" + t.ns)
- }
- )))
- },
- _setupAutoPlay: function() {
- var e = this;
- e.startAutoPlay(),
- e.ev.on("rsAfterContentSet", (function(t, n) {
- e._isDragging || e._isAnimating || !e._autoPlayEnabled || n !== e.currSlide || e._play()
- }
- )),
- e.ev.on("rsDragRelease", (function() {
- e._autoPlayEnabled && e._autoPlayPaused && (e._autoPlayPaused = !1,
- e._play())
- }
- )),
- e.ev.on("rsAfterSlideChange", (function() {
- e._autoPlayEnabled && e._autoPlayPaused && (e._autoPlayPaused = !1,
- e.currSlide.isLoaded && e._play())
- }
- )),
- e.ev.on("rsDragStart", (function() {
- e._autoPlayEnabled && (e.st.autoPlay.stopAtAction ? e.stopAutoPlay() : (e._autoPlayPaused = !0,
- e._pause()))
- }
- )),
- e.ev.on("rsBeforeMove", (function(t, n, i) {
- e._autoPlayEnabled && (i && e.st.autoPlay.stopAtAction ? e.stopAutoPlay() : (e._autoPlayPaused = !0,
- e._pause()))
- }
- )),
- e._pausedByVideo = !1,
- e.ev.on("rsVideoStop", (function() {
- e._autoPlayEnabled && (e._pausedByVideo = !1,
- e._play())
- }
- )),
- e.ev.on("rsVideoPlay", (function() {
- e._autoPlayEnabled && (e._autoPlayPaused = !1,
- e._pause(),
- e._pausedByVideo = !0)
- }
- )),
- a(window).on("blur" + e.ns, (function() {
- e._autoPlayEnabled && (e._autoPlayPaused = !0,
- e._pause())
- }
- )).on("focus" + e.ns, (function() {
- e._autoPlayEnabled && e._autoPlayPaused && (e._autoPlayPaused = !1,
- e._play())
- }
- )),
- e.st.autoPlay.pauseOnHover && (e._pausedByHover = !1,
- e.slider.hover((function() {
- e._autoPlayEnabled && (e._autoPlayPaused = !1,
- e._pause(),
- e._pausedByHover = !0)
- }
- ), (function() {
- e._autoPlayEnabled && (e._pausedByHover = !1,
- e._play())
- }
- )))
- },
- toggleAutoPlay: function() {
- this._autoPlayEnabled ? this.stopAutoPlay() : this.startAutoPlay()
- },
- startAutoPlay: function() {
- this._autoPlayEnabled = !0,
- this.currSlide.isLoaded && this._play()
- },
- stopAutoPlay: function() {
- this._pausedByVideo = this._pausedByHover = this._autoPlayPaused = this._autoPlayEnabled = !1,
- this._pause()
- },
- _play: function() {
- var e = this;
- e._pausedByHover || e._pausedByVideo || (e._autoPlayRunning = !0,
- e._autoPlayTimeout && clearTimeout(e._autoPlayTimeout),
- e._autoPlayTimeout = setTimeout((function() {
- if (!e._loop && !e.st.loopRewind) {
- var t = !0;
- e.st.loopRewind = !0
- }
- e.next(!0),
- t && (e.st.loopRewind = !1)
- }
- ), e.currSlide.customDelay ? e.currSlide.customDelay : e.st.autoPlay.delay))
- },
- _pause: function() {
- this._pausedByHover || this._pausedByVideo || (this._autoPlayRunning = !1,
- this._autoPlayTimeout && (clearTimeout(this._autoPlayTimeout),
- this._autoPlayTimeout = null))
- }
- }),
- a.rsModules.autoplay = a.rsProto._initAutoplay,
- (s = u).extend(s.rsProto, {
- _initVideo: function() {
- var e = this;
- e._videoDefaults = {
- autoHideArrows: !0,
- autoHideControlNav: !1,
- autoHideBlocks: !1,
- autoHideCaption: !1,
- disableCSS3inFF: !0,
- youTubeCode: '',
- vimeoCode: ''
- },
- e.st.video = s.extend({}, e._videoDefaults, e.st.video),
- e.ev.on("rsBeforeSizeSet", (function() {
- e._isVideoPlaying && setTimeout((function() {
- var t = e._currHolder;
- t = t.hasClass("rsVideoContainer") ? t : t.find(".rsVideoContainer"),
- e._videoFrameHolder && e._videoFrameHolder.css({
- width: t.width(),
- height: t.height()
- })
- }
- ), 32)
- }
- ));
- var t = e._browser.mozilla;
- e.ev.on("rsAfterParseNode", (function(n, i, o) {
- if (n = s(i),
- o.videoURL) {
- e.st.video.disableCSS3inFF && t && (e._useCSS3Transitions = e._use3dTransform = !1),
- i = s('');
- var r = s('');
- n.hasClass("rsImg") ? o.content = i.append(n).append(r) : o.content.find(".rsImg").wrap(i).after(r)
- }
- }
- )),
- e.ev.on("rsAfterSlideChange", (function() {
- e.stopVideo()
- }
- ))
- },
- toggleVideo: function() {
- return this._isVideoPlaying ? this.stopVideo() : this.playVideo()
- },
- playVideo: function() {
- var e = this;
- if (!e._isVideoPlaying) {
- var t = e.currSlide;
- if (!t.videoURL)
- return !1;
- e._playingVideoSlide = t;
- var n, i = e._currVideoContent = t.content;
- if ((t = t.videoURL).match(/youtu\.be/i) || t.match(/youtube\.com/i)) {
- var o = /^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&\?]*).*/;
- (o = t.match(o)) && 11 == o[2].length && (n = o[2]),
- void 0 !== n && (e._videoFrameHolder = e.st.video.youTubeCode.replace("%id%", n))
- } else
- t.match(/vimeo\.com/i) && (o = /(www\.)?vimeo.com\/(\d+)($|\/)/,
- (o = t.match(o)) && (n = o[2]),
- void 0 !== n && (e._videoFrameHolder = e.st.video.vimeoCode.replace("%id%", n)));
- return e.videoObj = s(e._videoFrameHolder),
- e.ev.trigger("rsOnCreateVideoElement", [t]),
- e.videoObj.length && (e._videoFrameHolder = s(''),
- e._videoFrameHolder.find(".rsPreloader").after(e.videoObj),
- i = i.hasClass("rsVideoContainer") ? i : i.find(".rsVideoContainer"),
- e._videoFrameHolder.css({
- width: i.width(),
- height: i.height()
- }).find(".rsCloseVideoBtn").off("click.rsv").on("click.rsv", (function(t) {
- return e.stopVideo(),
- t.preventDefault(),
- t.stopPropagation(),
- !1
- }
- )),
- i.append(e._videoFrameHolder),
- e.isIPAD && i.addClass("rsIOSVideo"),
- e._toggleHiddenClass(!1),
- setTimeout((function() {
- e._videoFrameHolder.addClass("rsVideoActive")
- }
- ), 10),
- e.ev.trigger("rsVideoPlay"),
- e._isVideoPlaying = !0),
- !0
- }
- return !1
- },
- stopVideo: function() {
- var e = this;
- return !!e._isVideoPlaying && (e.isIPAD && e.slider.find(".rsCloseVideoBtn").remove(),
- e._toggleHiddenClass(!0),
- setTimeout((function() {
- e.ev.trigger("rsOnDestroyVideoElement", [e.videoObj]);
- var t = e._videoFrameHolder.find("iframe");
- if (t.length)
- try {
- t.attr("src", "")
- } catch (e) {}
- e._videoFrameHolder.remove(),
- e._videoFrameHolder = null
- }
- ), 16),
- e.ev.trigger("rsVideoStop"),
- e._isVideoPlaying = !1,
- !0)
- },
- _toggleHiddenClass: function(e, t) {
- var n = []
- , i = this.st.video;
- if (i.autoHideArrows && (this._arrowLeft && (n.push(this._arrowLeft, this._arrowRight),
- this._arrowsAutoHideLocked = !e),
- this._fsBtn && n.push(this._fsBtn)),
- i.autoHideControlNav && this._controlNav && n.push(this._controlNav),
- i.autoHideBlocks && this._playingVideoSlide.animBlocks && n.push(this._playingVideoSlide.animBlocks),
- i.autoHideCaption && this.globalCaption && n.push(this.globalCaption),
- this.slider[e ? "removeClass" : "addClass"]("rsVideoPlaying"),
- n.length)
- for (i = 0; i < n.length; i++)
- e ? n[i].removeClass("rsHidden") : n[i].addClass("rsHidden")
- }
- }),
- s.rsModules.video = s.rsProto._initVideo,
- (l = u).extend(l.rsProto, {
- _initAnimatedBlocks: function() {
- function e() {
- var e = n.currSlide;
- if (n.currSlide && n.currSlide.isLoaded && n._slideWithBlocks !== e) {
- if (0 < n._animatedBlockTimeouts.length) {
- for (t = 0; t < n._animatedBlockTimeouts.length; t++)
- clearTimeout(n._animatedBlockTimeouts[t]);
- n._animatedBlockTimeouts = []
- }
- if (0 < n._blockAnimProps.length) {
- var i;
- for (t = 0; t < n._blockAnimProps.length; t++)
- (i = n._blockAnimProps[t]) && (n._useCSS3Transitions ? (i.block.css(n._vendorPref + n._TD, "0s"),
- i.block.css(i.css)) : i.block.stop(!0).css(i.css),
- n._slideWithBlocks = null,
- e.animBlocksDisplayed = !1);
- n._blockAnimProps = []
- }
- e.animBlocks && (e.animBlocksDisplayed = !0,
- n._slideWithBlocks = e,
- n._animateBlocks(e.animBlocks))
- }
- }
- var t, n = this;
- n._blockDefaults = {
- fadeEffect: !0,
- moveEffect: "top",
- moveOffset: 20,
- speed: 400,
- easing: "easeOutSine",
- delay: 200
- },
- n.st.block = l.extend({}, n._blockDefaults, n.st.block),
- n._blockAnimProps = [],
- n._animatedBlockTimeouts = [],
- n.ev.on("rsAfterInit", (function() {
- e()
- }
- )),
- n.ev.on("rsBeforeParseNode", (function(e, t, n) {
- t = l(t),
- n.animBlocks = t.find(".rsABlock").css("display", "none"),
- n.animBlocks.length || (t.hasClass("rsABlock") ? n.animBlocks = t.css("display", "none") : n.animBlocks = !1)
- }
- )),
- n.ev.on("rsAfterContentSet", (function(t, i) {
- i.id === n.slides[n.currSlideId].id && setTimeout((function() {
- e()
- }
- ), n.st.fadeinLoadedSlide ? 300 : 0)
- }
- )),
- n.ev.on("rsAfterSlideChange", (function() {
- e()
- }
- ))
- },
- _updateAnimBlockProps: function(e, t) {
- setTimeout((function() {
- e.css(t)
- }
- ), 6)
- },
- _animateBlocks: function(e) {
- var t, n, i, o, r, a, s, c = this;
- c._animatedBlockTimeouts = [],
- e.each((function(e) {
- t = l(this),
- n = {},
- i = {},
- o = null;
- var u = t.attr("data-move-offset");
- if (0 < (u = u ? parseInt(u, 10) : c.st.block.moveOffset) && ((a = t.data("move-effect")) ? ("none" === (a = a.toLowerCase()) || "left" !== a && "top" !== a && "bottom" !== a && "right" !== a && "none" === (a = c.st.block.moveEffect)) && (a = !1) : a = c.st.block.moveEffect,
- a && "none" !== a)) {
- var d = "right" === a || "left" === a;
- if (s = !1,
- c._useCSS3Transitions) {
- var f = 0;
- r = c._xProp
- } else
- d ? isNaN(parseInt(t.css("right"), 10)) ? r = "left" : (r = "right",
- s = !0) : isNaN(parseInt(t.css("bottom"), 10)) ? r = "top" : (r = "bottom",
- s = !0),
- r = "margin-" + r,
- s && (u = -u),
- c._useCSS3Transitions ? f = parseInt(t.css(r), 10) : void 0 === (f = t.data("rs-start-move-prop")) && (f = parseInt(t.css(r), 10),
- isNaN(f) && (f = 0),
- t.data("rs-start-move-prop", f));
- i[r] = c._getCSS3Prop("top" === a || "left" === a ? f - u : f + u, d),
- n[r] = c._getCSS3Prop(f, d)
- }
- (u = t.attr("data-fade-effect")) ? "none" !== u.toLowerCase() && "false" !== u.toLowerCase() || (u = !1) : u = c.st.block.fadeEffect,
- u && (i.opacity = 0,
- n.opacity = 1),
- (u || a) && ((o = {}).hasFade = !!u,
- a && (o.moveProp = r,
- o.hasMove = !0),
- o.speed = t.data("speed"),
- isNaN(o.speed) && (o.speed = c.st.block.speed),
- o.easing = t.data("easing"),
- o.easing || (o.easing = c.st.block.easing),
- o.css3Easing = l.rsCSS3Easing[o.easing],
- o.delay = t.data("delay"),
- isNaN(o.delay) && (o.delay = c.st.block.delay * e)),
- u = {},
- c._useCSS3Transitions && (u[c._vendorPref + c._TD] = "0ms"),
- u.moveProp = n.moveProp,
- u.opacity = n.opacity,
- u.display = "none",
- c._blockAnimProps.push({
- block: t,
- css: u
- }),
- c._updateAnimBlockProps(t, i),
- c._animatedBlockTimeouts.push(setTimeout(function(e, t, n, i) {
- return function() {
- if (e.css("display", "block"),
- n) {
- var o = {};
- if (c._useCSS3Transitions) {
- var r = "";
- n.hasMove && (r += n.moveProp),
- n.hasFade && (n.hasMove && (r += ", "),
- r += "opacity"),
- o[c._vendorPref + c._TP] = r,
- o[c._vendorPref + c._TD] = n.speed + "ms",
- o[c._vendorPref + c._TTF] = n.css3Easing,
- e.css(o),
- setTimeout((function() {
- e.css(t)
- }
- ), 24)
- } else
- setTimeout((function() {
- e.animate(t, n.speed, n.easing)
- }
- ), 16)
- }
- delete c._animatedBlockTimeouts[i]
- }
- }(t, n, o, e), 6 >= o.delay ? 12 : o.delay))
- }
- ))
- }
- }),
- l.rsModules.animatedBlocks = l.rsProto._initAnimatedBlocks,
- function(e) {
- e.extend(e.rsProto, {
- _initAutoHeight: function() {
- var e = this;
- if (e.st.autoHeight) {
- var t, n, i, o = !0, r = function(r) {
- i = e.slides[e.currSlideId],
- (t = i.holder) && (n = t.height()) && void 0 !== n && n > (e.st.minAutoHeight || 30) && (e._wrapHeight = n,
- e._useCSS3Transitions || !r ? e._sliderOverflow.css("height", n) : e._sliderOverflow.stop(!0, !0).animate({
- height: n
- }, e.st.transitionSpeed),
- e.ev.trigger("rsAutoHeightChange", n),
- o && (e._useCSS3Transitions && setTimeout((function() {
- e._sliderOverflow.css(e._vendorPref + "transition", "height " + e.st.transitionSpeed + "ms ease-in-out")
- }
- ), 16),
- o = !1))
- };
- e.ev.on("rsMaybeSizeReady.rsAutoHeight", (function(e, t) {
- i === t && r()
- }
- )),
- e.ev.on("rsAfterContentSet.rsAutoHeight", (function(e, t) {
- i === t && r()
- }
- )),
- e.slider.addClass("rsAutoHeight"),
- e.ev.one("rsAfterInit", (function() {
- setTimeout((function() {
- r(!1),
- setTimeout((function() {
- e.slider.append('')
- }
- ), 16)
- }
- ), 16)
- }
- )),
- e.ev.on("rsBeforeAnimStart", (function() {
- r(!0)
- }
- )),
- e.ev.on("rsBeforeSizeSet", (function() {
- setTimeout((function() {
- r(!1)
- }
- ), 16)
- }
- ))
- }
- }
- }),
- e.rsModules.autoHeight = e.rsProto._initAutoHeight
- }(u),
- function(e) {
- e.extend(e.rsProto, {
- _initGlobalCaption: function() {
- var t = this;
- t.st.globalCaption && (t.ev.on("rsAfterInit", (function() {
- t.globalCaption = e('').appendTo(t.st.globalCaptionInside ? t._sliderOverflow : t.slider),
- t.globalCaption.html(t.currSlide.caption || "")
- }
- )),
- t.ev.on("rsBeforeAnimStart", (function() {
- t.globalCaption.html(t.currSlide.caption || "")
- }
- )))
- }
- }),
- e.rsModules.globalCaption = e.rsProto._initGlobalCaption
- }(u),
- function(e) {
- e.rsProto._initActiveClass = function() {
- var e, t = this;
- t.st.addActiveClass && t.ev.on("rsOnUpdateNav", (function() {
- e && clearTimeout(e),
- e = setTimeout((function() {
- t._oldHolder && t._oldHolder.removeClass("rsActiveSlide"),
- t._currHolder && t._currHolder.addClass("rsActiveSlide"),
- e = null
- }
- ), 50)
- }
- ))
- }
- ,
- e.rsModules.activeClass = e.rsProto._initActiveClass
- }(u),
- function(e) {
- e.extend(e.rsProto, {
- _initDeeplinking: function() {
- var t, n, i, o = this;
- if (o._hashDefaults = {
- enabled: !1,
- change: !1,
- prefix: ""
- },
- o.st.deeplinking = e.extend({}, o._hashDefaults, o.st.deeplinking),
- o.st.deeplinking.enabled) {
- var r = o.st.deeplinking.change
- , a = o.st.deeplinking.prefix
- , s = "#" + a
- , l = function() {
- var e = window.location.hash;
- return e && 0 < e.indexOf(a) && 0 <= (e = parseInt(e.substring(s.length), 10)) ? e - 1 : -1
- }
- , c = l();
- -1 !== c && (o.st.startSlideId = c),
- r && (e(window).on("hashchange" + o.ns, (function(e) {
- t || (0 > (e = l()) || (e > o.numSlides - 1 && (e = o.numSlides - 1),
- o.goTo(e)))
- }
- )),
- o.ev.on("rsBeforeAnimStart", (function() {
- n && clearTimeout(n),
- i && clearTimeout(i)
- }
- )),
- o.ev.on("rsAfterSlideChange", (function() {
- n && clearTimeout(n),
- i && clearTimeout(i),
- i = setTimeout((function() {
- t = !0,
- window.location.replace(("" + window.location).split("#")[0] + s + (o.currSlideId + 1)),
- n = setTimeout((function() {
- t = !1,
- n = null
- }
- ), 60)
- }
- ), 400)
- }
- ))),
- o.ev.on("rsBeforeDestroy", (function() {
- n = i = null,
- r && e(window).off("hashchange" + o.ns)
- }
- ))
- }
- }
- }),
- e.rsModules.deeplinking = e.rsProto._initDeeplinking
- }(u),
- function(e, t, n) {
- function i(e) {
- return "#" + (e = e || location.href).replace(/^[^#]*#?(.*)$/, "$1")
- }
- var o = document
- , r = e.event.special
- , a = o.documentMode
- , s = "onhashchange"in t && (a === n || 7 < a);
- e.fn.hashchange = function(e) {
- return e ? this.bind("hashchange", e) : this.trigger("hashchange")
- }
- ,
- e.fn.hashchange.delay = 50,
- r.hashchange = e.extend(r.hashchange, {
- setup: function() {
- if (s)
- return !1;
- e(l.start)
- },
- teardown: function() {
- if (s)
- return !1;
- e(l.stop)
- }
- });
- var l = function() {
- function r() {
- var n = i()
- , o = f(c);
- n !== c ? (d(c = n, o),
- e(t).trigger("hashchange")) : o !== c && (location.href = location.href.replace(/#.*/, "") + o),
- a = setTimeout(r, e.fn.hashchange.delay)
- }
- var a, l = {}, c = i(), u = function(e) {
- return e
- }, d = u, f = u;
- return l.start = function() {
- a || r()
- }
- ,
- l.stop = function() {
- a && clearTimeout(a),
- a = n
- }
- ,
- t.attachEvent && !t.addEventListener && !s && function() {
- var t, n;
- l.start = function() {
- t || (n = (n = e.fn.hashchange.src) && n + i(),
- t = e('').hide().one("load", (function() {
- n || d(i()),
- r()
- }
- )).attr("src", n || "javascript:0").insertAfter("body")[0].contentWindow,
- o.onpropertychange = function() {
- try {
- "title" === event.propertyName && (t.document.title = o.title)
- } catch (e) {}
- }
- )
- }
- ,
- l.stop = u,
- f = function() {
- return i(t.location.href)
- }
- ,
- d = function(n, i) {
- var r = t.document
- , a = e.fn.hashchange.domain;
- n !== i && (r.title = o.title,
- r.open(),
- a && r.write('"),
- be.close(),
- j = be.F;
- Z--;
-
- )
- delete j[h][T[Z]]
- return j()
- }
- O.exports =
- Object.create ||
- function (Z, J) {
- var he
- return (
- null !== Z
- ? ((f[h] = D(Z)), (he = new f()), (f[h] = null), (he[M] = Z))
- : (he = j()),
- void 0 === J ? he : k(he, J)
- )
- }
- },
- 6936: function (O, U, p) {
- var D = p(3018),
- k = p(2866),
- T = p(7044),
- M = Object.defineProperty
- U.f = p(7038)
- ? Object.defineProperty
- : function (h, j, b) {
- if ((D(h), (j = T(j, !0)), D(b), k))
- try {
- return M(h, j, b)
- } catch (Z) {}
- if ("get" in b || "set" in b)
- throw TypeError("Accessors not supported!")
- return "value" in b && (h[j] = b.value), h
- }
- },
- 9692: function (O, U, p) {
- var D = p(6936),
- k = p(3018),
- T = p(711)
- O.exports = p(7038)
- ? Object.defineProperties
- : function (f, h) {
- k(f)
- for (var J, j = T(h), b = j.length, Z = 0; b > Z; )
- D.f(f, (J = j[Z++]), h[J])
- return f
- }
- },
- 8312: function (O, U, p) {
- var D = p(6173),
- k = p(5625),
- T = p(3124),
- M = p(7044),
- f = p(8197),
- h = p(2866),
- j = Object.getOwnPropertyDescriptor
- U.f = p(7038)
- ? j
- : function (Z, J) {
- if (((Z = T(Z)), (J = M(J, !0)), h))
- try {
- return j(Z, J)
- } catch (he) {}
- if (f(Z, J)) return k(!D.f.call(Z, J), Z[J])
- }
- },
- 3494: function (O, U) {
- U.f = Object.getOwnPropertySymbols
- },
- 5027: function (O, U, p) {
- var D = p(8197),
- k = p(5353),
- T = p(6297)("IE_PROTO"),
- M = Object.prototype
- O.exports =
- Object.getPrototypeOf ||
- function (f) {
- return (
- (f = k(f)),
- D(f, T)
- ? f[T]
- : "function" == typeof f.constructor && f instanceof f.constructor
- ? f.constructor.prototype
- : f instanceof Object
- ? M
- : null
- )
- }
- },
- 1924: function (O, U, p) {
- var D = p(8197),
- k = p(3124),
- T = p(6783)(!1),
- M = p(6297)("IE_PROTO")
- O.exports = function (f, h) {
- var J,
- j = k(f),
- b = 0,
- Z = []
- for (J in j) J != M && D(j, J) && Z.push(J)
- for (; h.length > b; ) D(j, (J = h[b++])) && (~T(Z, J) || Z.push(J))
- return Z
- }
- },
- 711: function (O, U, p) {
- var D = p(1924),
- k = p(2474)
- O.exports =
- Object.keys ||
- function (M) {
- return D(M, k)
- }
- },
- 6173: function (O, U) {
- U.f = {}.propertyIsEnumerable
- },
- 5625: function (O) {
- O.exports = function (U, p) {
- return {
- enumerable: !(1 & U),
- configurable: !(2 & U),
- writable: !(4 & U),
- value: p,
- }
- }
- },
- 1010: function (O, U, p) {
- var D = p(7892)
- O.exports = function (k, T, M) {
- for (var f in T) D(k, f, T[f], M)
- return k
- }
- },
- 7892: function (O, U, p) {
- var D = p(8122),
- k = p(2493),
- T = p(8197),
- M = p(5735)("src"),
- f = p(6819),
- h = "toString",
- j = ("" + f).split(h)
- ;(p(7510).inspectSource = function (b) {
- return f.call(b)
- }),
- (O.exports = function (b, Z, J, he) {
- var be = "function" == typeof J
- be && (T(J, "name") || k(J, "name", Z)),
- b[Z] !== J &&
- (be && (T(J, M) || k(J, M, b[Z] ? "" + b[Z] : j.join(String(Z)))),
- b === D
- ? (b[Z] = J)
- : he
- ? b[Z]
- ? (b[Z] = J)
- : k(b, Z, J)
- : (delete b[Z], k(b, Z, J)))
- })(Function.prototype, h, function () {
- return ("function" == typeof this && this[M]) || f.call(this)
- })
- },
- 9264: function (O, U, p) {
- var D = p(1853),
- k = p(3018),
- T = function (M, f) {
- if ((k(M), !D(f) && null !== f))
- throw TypeError(f + ": can't set as prototype!")
- }
- O.exports = {
- set:
- Object.setPrototypeOf ||
- ("__proto__" in {}
- ? (function (M, f, h) {
- try {
- ;(h = p(6912)(
- Function.call,
- p(8312).f(Object.prototype, "__proto__").set,
- 2
- ))(M, []),
- (f = !(M instanceof Array))
- } catch (j) {
- f = !0
- }
- return function (b, Z) {
- return T(b, Z), f ? (b.__proto__ = Z) : h(b, Z), b
- }
- })({}, !1)
- : void 0),
- check: T,
- }
- },
- 7638: function (O, U, p) {
- "use strict"
- var D = p(8122),
- k = p(6936),
- T = p(7038),
- M = p(4312)("species")
- O.exports = function (f) {
- var h = D[f]
- T &&
- h &&
- !h[M] &&
- k.f(h, M, {
- configurable: !0,
- get: function () {
- return this
- },
- })
- }
- },
- 486: function (O, U, p) {
- var D = p(6936).f,
- k = p(8197),
- T = p(4312)("toStringTag")
- O.exports = function (M, f, h) {
- M &&
- !k((M = h ? M : M.prototype), T) &&
- D(M, T, {
- configurable: !0,
- value: f,
- })
- }
- },
- 6297: function (O, U, p) {
- var D = p(8116)("keys"),
- k = p(5735)
- O.exports = function (T) {
- return D[T] || (D[T] = k(T))
- }
- },
- 8116: function (O, U, p) {
- var D = p(7510),
- k = p(8122),
- T = "__core-js_shared__",
- M = k[T] || (k[T] = {})
- ;(O.exports = function (f, h) {
- return M[f] || (M[f] = void 0 !== h ? h : {})
- })("versions", []).push({
- version: D.version,
- mode: p(5184) ? "pure" : "global",
- copyright: "\xa9 2019 Denis Pushkarev (zloirock.ru)",
- })
- },
- 2023: function (O, U, p) {
- var D = p(4470),
- k = Math.max,
- T = Math.min
- O.exports = function (M, f) {
- return (M = D(M)) < 0 ? k(M + f, 0) : T(M, f)
- }
- },
- 4470: function (O) {
- var U = Math.ceil,
- p = Math.floor
- O.exports = function (D) {
- return isNaN((D = +D)) ? 0 : (D > 0 ? p : U)(D)
- }
- },
- 3124: function (O, U, p) {
- var D = p(1320),
- k = p(1918)
- O.exports = function (T) {
- return D(k(T))
- }
- },
- 2435: function (O, U, p) {
- var D = p(4470),
- k = Math.min
- O.exports = function (T) {
- return T > 0 ? k(D(T), 9007199254740991) : 0
- }
- },
- 5353: function (O, U, p) {
- var D = p(1918)
- O.exports = function (k) {
- return Object(D(k))
- }
- },
- 7044: function (O, U, p) {
- var D = p(1853)
- O.exports = function (k, T) {
- if (!D(k)) return k
- var M, f
- if (
- (T && "function" == typeof (M = k.toString) && !D((f = M.call(k)))) ||
- ("function" == typeof (M = k.valueOf) && !D((f = M.call(k)))) ||
- (!T && "function" == typeof (M = k.toString) && !D((f = M.call(k))))
- )
- return f
- throw TypeError("Can't convert object to primitive value")
- }
- },
- 5735: function (O) {
- var U = 0,
- p = Math.random()
- O.exports = function (D) {
- return "Symbol(".concat(
- void 0 === D ? "" : D,
- ")_",
- (++U + p).toString(36)
- )
- }
- },
- 8916: function (O, U, p) {
- var D = p(1853)
- O.exports = function (k, T) {
- if (!D(k) || k._t !== T)
- throw TypeError("Incompatible receiver, " + T + " required!")
- return k
- }
- },
- 4312: function (O, U, p) {
- var D = p(8116)("wks"),
- k = p(5735),
- T = p(8122).Symbol,
- M = "function" == typeof T
- ;(O.exports = function (h) {
- return D[h] || (D[h] = (M && T[h]) || (M ? T : k)("Symbol." + h))
- }).store = D
- },
- 8563: function (O, U, p) {
- var D = p(9416),
- k = p(4312)("iterator"),
- T = p(366)
- O.exports = p(7510).getIteratorMethod = function (M) {
- if (null != M) return M[k] || M["@@iterator"] || T[D(M)]
- }
- },
- 7434: function (O, U, p) {
- "use strict"
- var D = p(3654),
- k = p(8916),
- T = "Map"
- O.exports = p(5714)(
- T,
- function (M) {
- return function () {
- return M(this, arguments.length > 0 ? arguments[0] : void 0)
- }
- },
- {
- get: function (f) {
- var h = D.getEntry(k(this, T), f)
- return h && h.v
- },
- set: function (f, h) {
- return D.def(k(this, T), 0 === f ? 0 : f, h)
- },
- },
- D,
- !0
- )
- },
- 9500: function (O, U, p) {
- "use strict"
- var D = p(3654),
- k = p(8916)
- O.exports = p(5714)(
- "Set",
- function (M) {
- return function () {
- return M(this, arguments.length > 0 ? arguments[0] : void 0)
- }
- },
- {
- add: function (f) {
- return D.def(k(this, "Set"), (f = 0 === f ? 0 : f), f)
- },
- },
- D
- )
- },
- 7473: function (O, U, p) {
- "use strict"
- var Ce,
- D = p(8122),
- k = p(1458)(0),
- T = p(7892),
- M = p(4223),
- f = p(8950),
- h = p(4446),
- j = p(1853),
- b = p(8916),
- Z = p(8916),
- J = !D.ActiveXObject && "ActiveXObject" in D,
- he = "WeakMap",
- be = M.getWeak,
- A = Object.isExtensible,
- Fe = h.ufstore,
- le = function (Me) {
- return function () {
- return Me(this, arguments.length > 0 ? arguments[0] : void 0)
- }
- },
- we = {
- get: function (ie) {
- if (j(ie)) {
- var K = be(ie)
- return !0 === K
- ? Fe(b(this, he)).get(ie)
- : K
- ? K[this._i]
- : void 0
- }
- },
- set: function (ie, K) {
- return h.def(b(this, he), ie, K)
- },
- },
- ue = (O.exports = p(5714)(he, le, we, h, !0, !0))
- Z &&
- J &&
- (f((Ce = h.getConstructor(le, he)).prototype, we),
- (M.NEED = !0),
- k(["delete", "has", "get", "set"], function (Me) {
- var ie = ue.prototype,
- K = ie[Me]
- T(ie, Me, function (Ie, qe) {
- if (j(Ie) && !A(Ie)) {
- this._f || (this._f = new Ce())
- var It = this._f[Me](Ie, qe)
- return "set" == Me ? this : It
- }
- return K.call(this, Ie, qe)
- })
- }))
- },
- 5999: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = D.key,
- M = D.set
- D.exp({
- defineMetadata: function (h, j, b, Z) {
- M(h, j, k(b), T(Z))
- },
- })
- },
- 6729: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = D.key,
- M = D.map,
- f = D.store
- D.exp({
- deleteMetadata: function (j, b) {
- var Z = arguments.length < 3 ? void 0 : T(arguments[2]),
- J = M(k(b), Z, !1)
- if (void 0 === J || !J.delete(j)) return !1
- if (J.size) return !0
- var he = f.get(b)
- return he.delete(Z), !!he.size || f.delete(b)
- },
- })
- },
- 6360: function (O, U, p) {
- var D = p(9500),
- k = p(2642),
- T = p(5474),
- M = p(3018),
- f = p(5027),
- h = T.keys,
- j = T.key,
- b = function (Z, J) {
- var he = h(Z, J),
- be = f(Z)
- if (null === be) return he
- var A = b(be, J)
- return A.length ? (he.length ? k(new D(he.concat(A))) : A) : he
- }
- T.exp({
- getMetadataKeys: function (J) {
- return b(M(J), arguments.length < 2 ? void 0 : j(arguments[1]))
- },
- })
- },
- 2421: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = p(5027),
- M = D.has,
- f = D.get,
- h = D.key,
- j = function (b, Z, J) {
- if (M(b, Z, J)) return f(b, Z, J)
- var be = T(Z)
- return null !== be ? j(b, be, J) : void 0
- }
- D.exp({
- getMetadata: function (Z, J) {
- return j(Z, k(J), arguments.length < 3 ? void 0 : h(arguments[2]))
- },
- })
- },
- 1417: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = D.keys,
- M = D.key
- D.exp({
- getOwnMetadataKeys: function (h) {
- return T(k(h), arguments.length < 2 ? void 0 : M(arguments[1]))
- },
- })
- },
- 1640: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = D.get,
- M = D.key
- D.exp({
- getOwnMetadata: function (h, j) {
- return T(h, k(j), arguments.length < 3 ? void 0 : M(arguments[2]))
- },
- })
- },
- 7367: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = p(5027),
- M = D.has,
- f = D.key,
- h = function (j, b, Z) {
- if (M(j, b, Z)) return !0
- var he = T(b)
- return null !== he && h(j, he, Z)
- }
- D.exp({
- hasMetadata: function (b, Z) {
- return h(b, k(Z), arguments.length < 3 ? void 0 : f(arguments[2]))
- },
- })
- },
- 1879: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = D.has,
- M = D.key
- D.exp({
- hasOwnMetadata: function (h, j) {
- return T(h, k(j), arguments.length < 3 ? void 0 : M(arguments[2]))
- },
- })
- },
- 7257: function (O, U, p) {
- var D = p(5474),
- k = p(3018),
- T = p(5317),
- M = D.key,
- f = D.set
- D.exp({
- metadata: function (j, b) {
- return function (J, he) {
- f(j, b, (void 0 !== he ? k : T)(J), M(he))
- }
- },
- })
- },
- 6179: function (O, U) {
- var p = null,
- D = null
- !(function (T) {
- "use strict"
- function M() {
- var _ = new Date()
- return _.setHours(0, 0, 0, 0), _
- }
- function f(_, w) {
- return (_ && _.toDateString()) === (w && w.toDateString())
- }
- function h(_, w) {
- return (_ = new Date(_)).setDate(_.getDate() + w), _
- }
- function j(_, w, B) {
- var oe = (_ = new Date(_)).getDate(),
- X = _.getMonth() + w
- return (
- _.setDate(1),
- _.setMonth(B ? (12 + X) % 12 : X),
- _.setDate(oe),
- _.getDate() < oe && _.setDate(0),
- _
- )
- }
- function b(_, w) {
- return (_ = new Date(_)).setFullYear(_.getFullYear() + w), _
- }
- function Z(_, w) {
- return (_ = new Date(_)).setFullYear(w), _
- }
- function J(_, w) {
- return j(_, w - _.getMonth())
- }
- function he(_) {
- return function (w) {
- return (function A(_) {
- return (_ = new Date(_)).setHours(0, 0, 0, 0), _
- })("string" == typeof w ? _(w) : w)
- }
- }
- function be(_, w, B) {
- return _ < w ? w : _ > B ? B : _
- }
- function Fe(_, w) {
- var B = void 0
- return function () {
- clearTimeout(B), (B = setTimeout(w, _))
- }
- }
- function Ce() {}
- function le() {
- for (var _ = arguments, w = _[0], B = 1; B < _.length; ++B) {
- var oe = _[B] || {}
- for (var X in oe) w[X] = oe[X]
- }
- return w
- }
- var we = {
- days: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- months: [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December",
- ],
- apply: "Apply",
- today: "Today",
- clear: "Clear",
- close: "Close",
- }
- function ue(_) {
- _ = _ || {}
- var w = he(
- (_ = le(
- (function Me() {
- return {
- lang: we,
- mode: "dp-modal",
- hilightedDate: M(),
- format: function (w) {
- return (
- w.getMonth() +
- 1 +
- "/" +
- w.getDate() +
- "/" +
- w.getFullYear()
- )
- },
- parse: function (w) {
- var B = new Date(w)
- return isNaN(B) ? M() : B
- },
- dateClass: function () {},
- inRange: function () {
- return !0
- },
- }
- })(),
- _
- )).parse
- )
- return (
- (_.lang = le(we, _.lang)),
- (_.parse = w),
- (_.inRange = (function ie(_) {
- var w = _.inRange
- return function (B, oe) {
- return w(B, oe) && _.min <= B && _.max >= B
- }
- })(_)),
- (_.min = w(_.min || b(M(), -100))),
- (_.max = w(_.max || b(M(), 100))),
- (_.hilightedDate = _.parse(_.hilightedDate)),
- _
- )
- }
- var K_left = 37,
- K_up = 38,
- K_right = 39,
- K_down = 40,
- K_enter = 13,
- K_esc = 27
- function Ie(_, w, B) {
- return (
- w.addEventListener(_, B, !0),
- function () {
- w.removeEventListener(_, B, !0)
- }
- )
- }
- var qe = (function It() {
- if ("undefined" != typeof window && "undefined" != typeof document) {
- var _ = window.CustomEvent
- return (
- "function" != typeof _ &&
- ((_ = function (B, oe) {
- oe = oe || {
- bubbles: !1,
- cancelable: !1,
- detail: void 0,
- }
- var X = document.createEvent("CustomEvent")
- return (
- X.initCustomEvent(B, oe.bubbles, oe.cancelable, oe.detail),
- X
- )
- }).prototype = window.Event.prototype),
- _
- )
- }
- })()
- var io = {
- day: {
- onKeyDown: function Ut(_, w) {
- var B = _.keyCode,
- oe =
- B === K_left
- ? -1
- : B === K_right
- ? 1
- : B === K_up
- ? -7
- : B === K_down
- ? 7
- : 0
- if (B === K_esc) w.close()
- else if (oe) {
- ;(D = !0),
- h(w.state.hilightedDate, oe).getMonth() !=
- w.state.hilightedDate.getMonth() && (p = !0),
- _.preventDefault()
- var X = h(w.state.hilightedDate, oe).getTime()
- if (X < w.opts.min.getTime() || X > w.opts.max.getTime()) return
- w.setState({
- hilightedDate: h(w.state.hilightedDate, oe),
- })
- }
- },
- onClick: {
- "dp-day": function bt(_, w) {
- w.setState({
- selectedDate: new Date(
- parseInt(_.target.getAttribute("data-date"))
- ),
- })
- },
- "dp-next": function Pt(_, w) {
- ;(_ && _.target && null != _.target.getAttribute("disabled")) ||
- w.setState({
- hilightedDate: j(w.state.hilightedDate, 1),
- })
- },
- "dp-prev": function vn(_, w) {
- ;(_ && _.target && null != _.target.getAttribute("disabled")) ||
- w.setState({
- hilightedDate: j(w.state.hilightedDate, -1),
- })
- },
- "dp-today": function kn(_, w) {
- w.setState({
- selectedDate: M(),
- })
- },
- "dp-clear": function Nt(_, w) {
- w.setState({
- selectedDate: null,
- })
- },
- "dp-close": function xt(_, w) {
- w.close()
- },
- "dp-cal-month": function wt(_, w) {
- w.setState({
- view: "month",
- })
- },
- "dp-cal-year": function Gt(_, w) {
- w.setState({
- view: "year",
- })
- },
- },
- render: function pt(_) {
- var w = _.opts,
- B = w.lang,
- oe = _.state,
- X = B.days,
- Pe = w.dayOffset || 0,
- ve = oe.selectedDate,
- _t = oe.hilightedDate,
- st = _t.getMonth(),
- Ct = M().getTime(),
- Ft = "",
- Jn = ""
- _t.getMonth() <= w.min.getMonth() &&
- _t.getFullYear() == w.min.getFullYear() &&
- (Ft = "disabled"),
- _t.getMonth() >= w.max.getMonth() &&
- _t.getFullYear() == w.max.getFullYear() &&
- (Jn = "disabled")
- var wn =
- '' +
- X.map(function (Qt, gi) {
- return (
- '"
- )
- }).join("") +
- (function Rr(_, w, B) {
- var oe = "",
- X = new Date(_)
- X.setDate(1),
- X.setDate(1 - X.getDay() + w),
- w && X.getDate() === w + 1 && X.setDate(w - 6)
- for (var Pe = 0; Pe < 42; ++Pe)
- (oe += B(X)), X.setDate(X.getDate() + 1)
- return oe
- })(_t, Pe, function (Qt) {
- var gi = Qt.getMonth() !== st,
- ri = !w.inRange(Qt),
- Sn = Qt.getTime() === Ct,
- Et = "dp-day"
- return (
- (Et += gi ? " dp-edge-day" : ""),
- (Et += f(Qt, _t) ? " dp-current" : ""),
- (Et += f(Qt, _t) && D ? " dr-current" : ""),
- (Et += f(Qt, ve) ? " dp-selected" : ""),
- (Et += ri ? " dp-day-disabled" : ""),
- (Et += Sn ? " dp-day-today" : ""),
- '"
- )
- }) +
- '
"
- return p || (D = !1), (p = null), wn
- },
- },
- year: {
- render: function cs(_) {
- var w = _.state,
- B = w.hilightedDate.getFullYear(),
- oe = w.selectedDate.getFullYear()
- return (
- '' +
- (function hi(_, w) {
- for (
- var B = "", X = _.opts.max.getFullYear();
- X >= _.opts.min.getFullYear();
- --X
- )
- B += w(X)
- return B
- })(_, function (X) {
- var Pe = "dp-year"
- return (
- (Pe += X === B ? " dp-current" : ""),
- '"
- )
- }) +
- "
"
- )
- },
- onKeyDown: function _r(_, w) {
- var B = _.keyCode,
- oe = w.opts,
- X =
- B === K_left || B === K_up
- ? 1
- : B === K_right || B === K_down
- ? -1
- : 0
- if (B === K_esc)
- w.setState({
- view: "day",
- })
- else if (X) {
- _.preventDefault()
- var Pe = b(w.state.hilightedDate, X)
- w.setState({
- hilightedDate: be(Pe, oe.min, oe.max),
- })
- }
- },
- onClick: {
- "dp-year": function Mn(_, w) {
- w.setState({
- hilightedDate: Z(
- w.state.hilightedDate,
- parseInt(_.target.getAttribute("data-year"))
- ),
- view: "day",
- })
- },
- },
- },
- month: {
- onKeyDown: function ei(_, w) {
- var B = _.keyCode,
- oe =
- B === K_left
- ? -1
- : B === K_right
- ? 1
- : B === K_up
- ? -3
- : B === K_down
- ? 3
- : 0
- B === K_esc
- ? w.setState({
- view: "day",
- })
- : oe &&
- (_.preventDefault(),
- w.setState({
- hilightedDate: j(w.state.hilightedDate, oe, !0),
- }))
- },
- onClick: {
- "dp-month": function Nn(_, w) {
- w.setState({
- hilightedDate: J(
- w.state.hilightedDate,
- parseInt(_.target.getAttribute("data-month"))
- ),
- view: "day",
- })
- },
- },
- render: function bn(_) {
- var oe = _.opts.lang.months,
- Pe = _.state.hilightedDate.getMonth()
- return (
- '' +
- oe
- .map(function (ve, _t) {
- var st = "dp-month"
- return (
- '"
- )
- })
- .join("") +
- "
"
- )
- },
- },
- }
- function Kt(_, w, B) {
- var oe,
- Pe,
- X = !1,
- ve = {
- el: void 0,
- opts: B,
- shouldFocusOnBlur: !0,
- shouldFocusOnRender: !0,
- state: (function _t() {
- return {
- get selectedDate() {
- return Pe
- },
- set selectedDate(st) {
- ;(st && !B.inRange(st)) ||
- (st
- ? ((Pe = new Date(st)), (ve.state.hilightedDate = Pe))
- : (Pe = st),
- ve.updateInput(Pe),
- w("select"),
- ve.close())
- },
- view: "day",
- }
- })(),
- adjustPosition: Ce,
- containerHTML: '',
- attachToDom: function () {
- document.body.appendChild(ve.el)
- },
- updateInput: function (Ct) {
- var Ft = new qe("change", {
- bubbles: !0,
- })
- ;(Ft.simulated = !0),
- (_.value = Ct ? B.format(Ct) : ""),
- _.dispatchEvent(Ft)
- },
- computeSelectedDate: function () {
- return B.parse(_.value)
- },
- currentView: function () {
- return io[ve.state.view]
- },
- open: function () {
- X ||
- (ve.el ||
- ((ve.el = (function Mi(_, w) {
- var B = document.createElement("div")
- return (B.className = _.mode), (B.innerHTML = w), B
- })(B, ve.containerHTML)),
- (function an(_) {
- var w = _.el,
- B = w.querySelector(".dp")
- function oe(X) {
- "click" == X.type && X.stopPropagation(),
- X.target.className.split(" ").forEach(function (Pe) {
- var ve = _.currentView().onClick[Pe]
- ve && ve(X, _)
- })
- }
- ;(w.ontouchstart = Ce),
- Ie(
- "blur",
- B,
- Fe(150, function () {
- _.hasFocus() || _.close(!0)
- })
- ),
- Ie("keydown", w, function (X) {
- X.keyCode === K_enter
- ? (X.preventDefault(), oe(X))
- : _.currentView().onKeyDown(X, _)
- }),
- Ie("mousedown", B, function (X) {
- X.target.focus && X.target.focus(),
- document.activeElement !== X.target &&
- X.preventDefault()
- }),
- Ie("click", w, oe)
- })(ve)),
- (Pe = be(ve.computeSelectedDate(), B.min, B.max)),
- (ve.state.hilightedDate = Pe || B.hilightedDate),
- (ve.state.view = "day"),
- ve.attachToDom(),
- ve.render(),
- w("open"))
- },
- isVisible: function () {
- return !!ve.el && !!ve.el.parentNode
- },
- hasFocus: function () {
- var Ct = document.activeElement
- return (
- ve.el &&
- ve.el.contains(Ct) &&
- Ct.className.indexOf("dp-focuser") < 0
- )
- },
- shouldHide: function () {
- return ve.isVisible()
- },
- close: function (Ct) {
- var Ft = ve.el
- if (ve.isVisible()) {
- if (Ft) {
- var Jn = Ft.parentNode
- Jn && Jn.removeChild(Ft)
- }
- ;(X = !0),
- Ct &&
- ve.shouldFocusOnBlur &&
- (function Yi(_) {
- _.focus()
- var w =
- /Macintosh/i.test(navigator.userAgent) &&
- "ontouchend" in document
- ;(/iPad|iPhone|iPod/.test(navigator.userAgent) || w) &&
- !window.MSStream &&
- _.blur()
- })(_),
- setTimeout(function () {
- X = !1
- }, 100),
- w("close")
- }
- },
- destroy: function () {
- ve.close(), oe()
- },
- render: function () {
- if (ve.el) {
- var Ct = ve.hasFocus(),
- Ft = ve.currentView().render(ve)
- Ft && (ve.el.firstChild.innerHTML = Ft),
- ve.adjustPosition(),
- (Ct || ve.shouldFocusOnRender) &&
- (function vi(_) {
- var w = _.el.querySelector(".dp-current")
- return w && w.focus()
- })(ve)
- }
- },
- setState: function (Ct) {
- for (var Ft in Ct) ve.state[Ft] = Ct[Ft]
- w("statechange"), ve.render()
- },
- }
- return (
- (oe = (function ao(_, w) {
- var B = Fe(5, function () {
- w.shouldHide() ? w.close() : w.open()
- }),
- oe = [
- Ie(
- "blur",
- _,
- Fe(150, function () {
- w.hasFocus() || w.close(!0)
- })
- ),
- Ie("mousedown", _, function () {
- _ === document.activeElement && B()
- }),
- Ie("focus", _, B),
- Ie("input", _, function (X) {
- var Pe = w.opts.parse(X.target.value)
- isNaN(Pe) ||
- w.setState({
- hilightedDate: Pe,
- })
- }),
- ]
- return function () {
- oe.forEach(function (X) {
- X()
- })
- }
- })(_, ve)),
- ve
- )
- }
- function ti(_, w, B) {
- var oe = Kt(_, w, B)
- return (
- (oe.shouldFocusOnBlur = !1),
- Object.defineProperty(oe, "shouldFocusOnRender", {
- get: function () {
- return _ !== document.activeElement
- },
- }),
- (oe.adjustPosition = function () {
- !(function oo(_, w) {
- var B = _.getBoundingClientRect(),
- oe = window
- ;(function Ii(_, w, B) {
- var oe = _.el,
- X = B.pageYOffset,
- Pe = X + w.top,
- ve = oe.offsetHeight,
- _t = Pe + w.height + 8,
- st = Pe - ve - 8,
- Ct = st > 0 && _t + ve > X + B.innerHeight,
- Ft = Ct ? st : _t
- oe.classList &&
- (oe.classList.toggle("dp-is-above", Ct),
- oe.classList.toggle("dp-is-below", !Ct)),
- (oe.style.top = Ft + "px")
- })(w, B, oe),
- (function Qi(_, w, B) {
- var oe = _.el,
- X = B.pageXOffset,
- Pe = w.left + X,
- ve = B.innerWidth + X,
- _t = oe.offsetWidth,
- Ct = ve - _t
- oe.style.left = (Pe + _t > ve && Ct > 0 ? Ct : Pe) + "px"
- })(w, B, oe),
- (w.el.style.visibility = "")
- })(_, oe)
- }),
- oe
- )
- }
- function Xi(_, w, B) {
- return (
- (_ = _ && _.tagName ? _ : document.querySelector(_)),
- "dp-modal" === B.mode
- ? (function Ji(_, w, B) {
- var oe = Kt(_, w, B)
- return (
- (_.readonly = !0),
- (oe.containerHTML +=
- '.'),
- oe
- )
- })(_, w, B)
- : "dp-below" === B.mode
- ? ti(_, w, B)
- : "dp-permanent" === B.mode
- ? (function pi(_, w, B) {
- var oe = Kt(_, w, B)
- return (
- (oe.close = Ce),
- (oe.destroy = Ce),
- (oe.updateInput = Ce),
- (oe.shouldFocusOnRender = B.shouldFocusOnRender),
- (oe.computeSelectedDate = function () {
- return B.hilightedDate
- }),
- (oe.attachToDom = function () {
- _.appendChild(oe.el)
- }),
- oe.open(),
- oe
- )
- })(_, w, B)
- : void 0
- )
- }
- function or() {
- var _ = {}
- function w(oe, X) {
- ;(_[oe] = _[oe] || []).push(X)
- }
- return {
- on: function (X, Pe) {
- return (
- Pe
- ? w(X, Pe)
- : (function B(oe) {
- for (var X in oe) w(X, oe[X])
- })(X),
- this
- )
- },
- emit: function (X, Pe) {
- ;(_[X] || []).forEach(function (ve) {
- ve(X, Pe)
- })
- },
- off: function (X, Pe) {
- return (
- X
- ? (_[X] = Pe
- ? (_[X] || []).filter(function (ve) {
- return ve !== Pe
- })
- : [])
- : (_ = {}),
- this
- )
- },
- }
- }
- function Ai(_, w) {
- var B = or(),
- X = Xi(
- _,
- function ve(_t) {
- B.emit(_t, Pe)
- },
- ue(w)
- ),
- Pe = {
- get state() {
- return X.state
- },
- on: B.on,
- off: B.off,
- setState: X.setState,
- open: X.open,
- close: X.close,
- destroy: X.destroy,
- }
- return Pe
- }
- function Oi(_) {
- return 12 * _.getYear() + _.getMonth()
- }
- ;(T.TinyDatePicker = Ai),
- (T.DateRangePicker = function ea(_, w) {
- w = w || {}
- var X,
- B = or(),
- oe = (function uo(_) {
- return (
- "string" == typeof _ && (_ = document.querySelector(_)),
- (_.innerHTML =
- ''),
- _.querySelector(".dr-cals")
- )
- })(_),
- Pe = {
- start: void 0,
- end: void 0,
- },
- ve = Ai(
- oe.querySelector(".dr-cal-start"),
- le({}, w.startOpts, {
- mode: "dp-permanent",
- dateClass: ri,
- })
- ),
- _t = Ai(
- oe.querySelector(".dr-cal-end"),
- le({}, w.endOpts, {
- mode: "dp-permanent",
- hilightedDate: j(ve.state.hilightedDate, 1),
- dateClass: ri,
- })
- ),
- st = {
- statechange: function Ft(Sn, Et) {
- 1 !==
- (function ni(_, w) {
- return Oi(w) - Oi(_)
- })(ve.state.hilightedDate, _t.state.hilightedDate) &&
- (Et === ve
- ? _t.setState({
- hilightedDate: j(Et.state.hilightedDate, 1),
- })
- : ve.setState({
- hilightedDate: j(Et.state.hilightedDate, -1),
- }))
- },
- select: function Jn(Sn, Et) {
- var un = Et.state.selectedDate
- wn(
- !Pe.start || Pe.end
- ? {
- start: un,
- end: void 0,
- }
- : {
- start: un > Pe.start ? Pe.start : un,
- end: un > Pe.start ? un : Pe.start,
- }
- )
- },
- },
- Ct = {
- state: Pe,
- setState: wn,
- on: B.on,
- off: B.off,
- }
- function wn(Sn) {
- for (var Et in Sn) Pe[Et] = Sn[Et]
- B.emit("statechange", Ct), Qt()
- }
- function Qt() {
- ve.setState({}), _t.setState({})
- }
- ve.on(st), _t.on(st)
- var gi =
- /Macintosh/i.test(navigator.userAgent) && "ontouchend" in document
- function ri(Sn) {
- return (
- ((Pe.end || X) &&
- Pe.start &&
- (function fs(_, w, B) {
- return (_ < B && _ >= w) || (_ <= w && _ > B)
- })(Sn, Pe.end || X, Pe.start)
- ? "dr-in-range "
- : "") +
- (f(Sn, Pe.start) || f(Sn, Pe.end) ? "dr-selected " : "")
- )
- }
- return (
- !/iPhone|iPad|iPod/i.test(navigator.userAgent) &&
- !gi &&
- (oe.addEventListener("mouseover", function (Et) {
- if (
- Et.target.classList.contains("dp-day") &&
- !Et.target.classList.contains("dp-day-disabled")
- ) {
- var un = new Date(parseInt(Et.target.dataset.date))
- !f(un, X) && ((X = un), Qt())
- }
- }),
- oe.addEventListener("mouseout", function (Et) {
- Et.target.classList.contains("dp-day") && ((X = null), Qt())
- })),
- Ct
- )
- }),
- Object.defineProperty(T, "__esModule", {
- value: !0,
- })
- })(U)
- },
- 6084: function (O, U, p) {
- "use strict"
- var D, k
- ;(D = function () {
- !(function (m) {
- var y = m.performance
- function E(se) {
- y && y.mark && y.mark(se)
- }
- function S(se, I) {
- y && y.measure && y.measure(se, I)
- }
- E("Zone")
- var V = m.__Zone_symbol_prefix || "__zone_symbol__"
- function q(se) {
- return V + se
- }
- var ne = !0 === m[q("forceDuplicateZoneCheck")]
- if (m.Zone) {
- if (ne || "function" != typeof m.Zone.__symbol__)
- throw new Error("Zone already loaded.")
- return m.Zone
- }
- var ye = (function () {
- function se(I, P) {
- ;(this._parent = I),
- (this._name = P ? P.name || "unnamed" : ""),
- (this._properties = (P && P.properties) || {}),
- (this._zoneDelegate = new Ae(
- this,
- this._parent && this._parent._zoneDelegate,
- P
- ))
- }
- return (
- (se.assertZonePatched = function () {
- if (m.Promise !== it.ZoneAwarePromise)
- throw new Error(
- "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)"
- )
- }),
- Object.defineProperty(se, "root", {
- get: function () {
- for (var P = se.current; P.parent; ) P = P.parent
- return P
- },
- enumerable: !1,
- configurable: !0,
- }),
- Object.defineProperty(se, "current", {
- get: function () {
- return vt.zone
- },
- enumerable: !1,
- configurable: !0,
- }),
- Object.defineProperty(se, "currentTask", {
- get: function () {
- return zn
- },
- enumerable: !1,
- configurable: !0,
- }),
- (se.__load_patch = function (I, P, R) {
- if ((void 0 === R && (R = !1), it.hasOwnProperty(I))) {
- if (!R && ne) throw Error("Already loaded patch: " + I)
- } else if (!m["__Zone_disable_" + I]) {
- var fe = "Zone:" + I
- E(fe), (it[I] = P(m, se, ze)), S(fe, fe)
- }
- }),
- Object.defineProperty(se.prototype, "parent", {
- get: function () {
- return this._parent
- },
- enumerable: !1,
- configurable: !0,
- }),
- Object.defineProperty(se.prototype, "name", {
- get: function () {
- return this._name
- },
- enumerable: !1,
- configurable: !0,
- }),
- (se.prototype.get = function (I) {
- var P = this.getZoneWith(I)
- if (P) return P._properties[I]
- }),
- (se.prototype.getZoneWith = function (I) {
- for (var P = this; P; ) {
- if (P._properties.hasOwnProperty(I)) return P
- P = P._parent
- }
- return null
- }),
- (se.prototype.fork = function (I) {
- if (!I) throw new Error("ZoneSpec required!")
- return this._zoneDelegate.fork(this, I)
- }),
- (se.prototype.wrap = function (I, P) {
- if ("function" != typeof I)
- throw new Error("Expecting function got: " + I)
- var R = this._zoneDelegate.intercept(this, I, P),
- fe = this
- return function () {
- return fe.runGuarded(R, this, arguments, P)
- }
- }),
- (se.prototype.run = function (I, P, R, fe) {
- vt = {
- parent: vt,
- zone: this,
- }
- try {
- return this._zoneDelegate.invoke(this, I, P, R, fe)
- } finally {
- vt = vt.parent
- }
- }),
- (se.prototype.runGuarded = function (I, P, R, fe) {
- void 0 === P && (P = null),
- (vt = {
- parent: vt,
- zone: this,
- })
- try {
- try {
- return this._zoneDelegate.invoke(this, I, P, R, fe)
- } catch (Tt) {
- if (this._zoneDelegate.handleError(this, Tt)) throw Tt
- }
- } finally {
- vt = vt.parent
- }
- }),
- (se.prototype.runTask = function (I, P, R) {
- if (I.zone != this)
- throw new Error(
- "A task can only be run in the zone of creation! (Creation: " +
- (I.zone || _e).name +
- "; Execution: " +
- this.name +
- ")"
- )
- if (I.state !== Le || (I.type !== Ye && I.type !== Xt)) {
- var fe = I.state != Ne
- fe && I._transitionTo(Ne, rt), I.runCount++
- var Tt = zn
- ;(zn = I),
- (vt = {
- parent: vt,
- zone: this,
- })
- try {
- I.type == Xt &&
- I.data &&
- !I.data.isPeriodic &&
- (I.cancelFn = void 0)
- try {
- return this._zoneDelegate.invokeTask(this, I, P, R)
- } catch (Ln) {
- if (this._zoneDelegate.handleError(this, Ln)) throw Ln
- }
- } finally {
- I.state !== Le &&
- I.state !== He &&
- (I.type == Ye || (I.data && I.data.isPeriodic)
- ? fe && I._transitionTo(rt, Ne)
- : ((I.runCount = 0),
- this._updateTaskCount(I, -1),
- fe && I._transitionTo(Le, Ne, Le))),
- (vt = vt.parent),
- (zn = Tt)
- }
- }
- }),
- (se.prototype.scheduleTask = function (I) {
- if (I.zone && I.zone !== this)
- for (var P = this; P; ) {
- if (P === I.zone)
- throw Error(
- "can not reschedule task to " +
- this.name +
- " which is descendants of the original zone " +
- I.zone.name
- )
- P = P.parent
- }
- I._transitionTo(At, Le)
- var R = []
- ;(I._zoneDelegates = R), (I._zone = this)
- try {
- I = this._zoneDelegate.scheduleTask(this, I)
- } catch (fe) {
- throw (
- (I._transitionTo(He, At, Le),
- this._zoneDelegate.handleError(this, fe),
- fe)
- )
- }
- return (
- I._zoneDelegates === R && this._updateTaskCount(I, 1),
- I.state == At && I._transitionTo(rt, At),
- I
- )
- }),
- (se.prototype.scheduleMicroTask = function (I, P, R, fe) {
- return this.scheduleTask(new W(Tn, I, P, R, fe, void 0))
- }),
- (se.prototype.scheduleMacroTask = function (I, P, R, fe, Tt) {
- return this.scheduleTask(new W(Xt, I, P, R, fe, Tt))
- }),
- (se.prototype.scheduleEventTask = function (I, P, R, fe, Tt) {
- return this.scheduleTask(new W(Ye, I, P, R, fe, Tt))
- }),
- (se.prototype.cancelTask = function (I) {
- if (I.zone != this)
- throw new Error(
- "A task can only be cancelled in the zone of creation! (Creation: " +
- (I.zone || _e).name +
- "; Execution: " +
- this.name +
- ")"
- )
- I._transitionTo(zt, rt, Ne)
- try {
- this._zoneDelegate.cancelTask(this, I)
- } catch (P) {
- throw (
- (I._transitionTo(He, zt),
- this._zoneDelegate.handleError(this, P),
- P)
- )
- }
- return (
- this._updateTaskCount(I, -1),
- I._transitionTo(Le, zt),
- (I.runCount = 0),
- I
- )
- }),
- (se.prototype._updateTaskCount = function (I, P) {
- var R = I._zoneDelegates
- ;-1 == P && (I._zoneDelegates = null)
- for (var fe = 0; fe < R.length; fe++)
- R[fe]._updateTaskCount(I.type, P)
- }),
- se
- )
- })()
- ye.__symbol__ = q
- var Lt,
- ae = {
- name: "",
- onHasTask: function (I, P, R, fe) {
- return I.hasTask(R, fe)
- },
- onScheduleTask: function (I, P, R, fe) {
- return I.scheduleTask(R, fe)
- },
- onInvokeTask: function (I, P, R, fe, Tt, Ln) {
- return I.invokeTask(R, fe, Tt, Ln)
- },
- onCancelTask: function (I, P, R, fe) {
- return I.cancelTask(R, fe)
- },
- },
- Ae = (function () {
- function se(I, P, R) {
- ;(this._taskCounts = {
- microTask: 0,
- macroTask: 0,
- eventTask: 0,
- }),
- (this.zone = I),
- (this._parentDelegate = P),
- (this._forkZS = R && (R && R.onFork ? R : P._forkZS)),
- (this._forkDlgt = R && (R.onFork ? P : P._forkDlgt)),
- (this._forkCurrZone =
- R && (R.onFork ? this.zone : P._forkCurrZone)),
- (this._interceptZS =
- R && (R.onIntercept ? R : P._interceptZS)),
- (this._interceptDlgt =
- R && (R.onIntercept ? P : P._interceptDlgt)),
- (this._interceptCurrZone =
- R && (R.onIntercept ? this.zone : P._interceptCurrZone)),
- (this._invokeZS = R && (R.onInvoke ? R : P._invokeZS)),
- (this._invokeDlgt = R && (R.onInvoke ? P : P._invokeDlgt)),
- (this._invokeCurrZone =
- R && (R.onInvoke ? this.zone : P._invokeCurrZone)),
- (this._handleErrorZS =
- R && (R.onHandleError ? R : P._handleErrorZS)),
- (this._handleErrorDlgt =
- R && (R.onHandleError ? P : P._handleErrorDlgt)),
- (this._handleErrorCurrZone =
- R &&
- (R.onHandleError ? this.zone : P._handleErrorCurrZone)),
- (this._scheduleTaskZS =
- R && (R.onScheduleTask ? R : P._scheduleTaskZS)),
- (this._scheduleTaskDlgt =
- R && (R.onScheduleTask ? P : P._scheduleTaskDlgt)),
- (this._scheduleTaskCurrZone =
- R &&
- (R.onScheduleTask ? this.zone : P._scheduleTaskCurrZone)),
- (this._invokeTaskZS =
- R && (R.onInvokeTask ? R : P._invokeTaskZS)),
- (this._invokeTaskDlgt =
- R && (R.onInvokeTask ? P : P._invokeTaskDlgt)),
- (this._invokeTaskCurrZone =
- R && (R.onInvokeTask ? this.zone : P._invokeTaskCurrZone)),
- (this._cancelTaskZS =
- R && (R.onCancelTask ? R : P._cancelTaskZS)),
- (this._cancelTaskDlgt =
- R && (R.onCancelTask ? P : P._cancelTaskDlgt)),
- (this._cancelTaskCurrZone =
- R && (R.onCancelTask ? this.zone : P._cancelTaskCurrZone)),
- (this._hasTaskZS = null),
- (this._hasTaskDlgt = null),
- (this._hasTaskDlgtOwner = null),
- (this._hasTaskCurrZone = null)
- var fe = R && R.onHasTask
- ;(fe || (P && P._hasTaskZS)) &&
- ((this._hasTaskZS = fe ? R : ae),
- (this._hasTaskDlgt = P),
- (this._hasTaskDlgtOwner = this),
- (this._hasTaskCurrZone = I),
- R.onScheduleTask ||
- ((this._scheduleTaskZS = ae),
- (this._scheduleTaskDlgt = P),
- (this._scheduleTaskCurrZone = this.zone)),
- R.onInvokeTask ||
- ((this._invokeTaskZS = ae),
- (this._invokeTaskDlgt = P),
- (this._invokeTaskCurrZone = this.zone)),
- R.onCancelTask ||
- ((this._cancelTaskZS = ae),
- (this._cancelTaskDlgt = P),
- (this._cancelTaskCurrZone = this.zone)))
- }
- return (
- (se.prototype.fork = function (I, P) {
- return this._forkZS
- ? this._forkZS.onFork(this._forkDlgt, this.zone, I, P)
- : new ye(I, P)
- }),
- (se.prototype.intercept = function (I, P, R) {
- return this._interceptZS
- ? this._interceptZS.onIntercept(
- this._interceptDlgt,
- this._interceptCurrZone,
- I,
- P,
- R
- )
- : P
- }),
- (se.prototype.invoke = function (I, P, R, fe, Tt) {
- return this._invokeZS
- ? this._invokeZS.onInvoke(
- this._invokeDlgt,
- this._invokeCurrZone,
- I,
- P,
- R,
- fe,
- Tt
- )
- : P.apply(R, fe)
- }),
- (se.prototype.handleError = function (I, P) {
- return (
- !this._handleErrorZS ||
- this._handleErrorZS.onHandleError(
- this._handleErrorDlgt,
- this._handleErrorCurrZone,
- I,
- P
- )
- )
- }),
- (se.prototype.scheduleTask = function (I, P) {
- var R = P
- if (this._scheduleTaskZS)
- this._hasTaskZS &&
- R._zoneDelegates.push(this._hasTaskDlgtOwner),
- (R = this._scheduleTaskZS.onScheduleTask(
- this._scheduleTaskDlgt,
- this._scheduleTaskCurrZone,
- I,
- P
- )) || (R = P)
- else if (P.scheduleFn) P.scheduleFn(P)
- else {
- if (P.type != Tn)
- throw new Error("Task is missing scheduleFn.")
- xe(P)
- }
- return R
- }),
- (se.prototype.invokeTask = function (I, P, R, fe) {
- return this._invokeTaskZS
- ? this._invokeTaskZS.onInvokeTask(
- this._invokeTaskDlgt,
- this._invokeTaskCurrZone,
- I,
- P,
- R,
- fe
- )
- : P.callback.apply(R, fe)
- }),
- (se.prototype.cancelTask = function (I, P) {
- var R
- if (this._cancelTaskZS)
- R = this._cancelTaskZS.onCancelTask(
- this._cancelTaskDlgt,
- this._cancelTaskCurrZone,
- I,
- P
- )
- else {
- if (!P.cancelFn) throw Error("Task is not cancelable")
- R = P.cancelFn(P)
- }
- return R
- }),
- (se.prototype.hasTask = function (I, P) {
- try {
- this._hasTaskZS &&
- this._hasTaskZS.onHasTask(
- this._hasTaskDlgt,
- this._hasTaskCurrZone,
- I,
- P
- )
- } catch (R) {
- this.handleError(I, R)
- }
- }),
- (se.prototype._updateTaskCount = function (I, P) {
- var R = this._taskCounts,
- fe = R[I],
- Tt = (R[I] = fe + P)
- if (Tt < 0)
- throw new Error("More tasks executed then were scheduled.")
- ;(0 != fe && 0 != Tt) ||
- this.hasTask(this.zone, {
- microTask: R.microTask > 0,
- macroTask: R.macroTask > 0,
- eventTask: R.eventTask > 0,
- change: I,
- })
- }),
- se
- )
- })(),
- W = (function () {
- function se(I, P, R, fe, Tt, Ln) {
- if (
- ((this._zone = null),
- (this.runCount = 0),
- (this._zoneDelegates = null),
- (this._state = "notScheduled"),
- (this.type = I),
- (this.source = P),
- (this.data = fe),
- (this.scheduleFn = Tt),
- (this.cancelFn = Ln),
- !R)
- )
- throw new Error("callback is not defined")
- this.callback = R
- var re = this
- this.invoke =
- I === Ye && fe && fe.useG
- ? se.invokeTask
- : function () {
- return se.invokeTask.call(m, re, this, arguments)
- }
- }
- return (
- (se.invokeTask = function (I, P, R) {
- I || (I = this), xn++
- try {
- return I.runCount++, I.zone.runTask(I, P, R)
- } finally {
- 1 == xn && ce(), xn--
- }
- }),
- Object.defineProperty(se.prototype, "zone", {
- get: function () {
- return this._zone
- },
- enumerable: !1,
- configurable: !0,
- }),
- Object.defineProperty(se.prototype, "state", {
- get: function () {
- return this._state
- },
- enumerable: !1,
- configurable: !0,
- }),
- (se.prototype.cancelScheduleRequest = function () {
- this._transitionTo(Le, At)
- }),
- (se.prototype._transitionTo = function (I, P, R) {
- if (this._state !== P && this._state !== R)
- throw new Error(
- this.type +
- " '" +
- this.source +
- "': can not transition to '" +
- I +
- "', expecting state '" +
- P +
- "'" +
- (R ? " or '" + R + "'" : "") +
- ", was '" +
- this._state +
- "'."
- )
- ;(this._state = I), I == Le && (this._zoneDelegates = null)
- }),
- (se.prototype.toString = function () {
- return this.data && void 0 !== this.data.handleId
- ? this.data.handleId.toString()
- : Object.prototype.toString.call(this)
- }),
- (se.prototype.toJSON = function () {
- return {
- type: this.type,
- state: this.state,
- source: this.source,
- zone: this.zone.name,
- runCount: this.runCount,
- }
- }),
- se
- )
- })(),
- Ee = q("setTimeout"),
- Oe = q("Promise"),
- Se = q("then"),
- me = [],
- ot = !1
- function xe(se) {
- if (0 === xn && 0 === me.length)
- if ((Lt || (m[Oe] && (Lt = m[Oe].resolve(0))), Lt)) {
- var I = Lt[Se]
- I || (I = Lt.then), I.call(Lt, ce)
- } else m[Ee](ce, 0)
- se && me.push(se)
- }
- function ce() {
- if (!ot) {
- for (ot = !0; me.length; ) {
- var se = me
- me = []
- for (var I = 0; I < se.length; I++) {
- var P = se[I]
- try {
- P.zone.runTask(P, null, null)
- } catch (R) {
- ze.onUnhandledError(R)
- }
- }
- }
- ze.microtaskDrainDone(), (ot = !1)
- }
- }
- var _e = {
- name: "NO ZONE",
- },
- Le = "notScheduled",
- At = "scheduling",
- rt = "scheduled",
- Ne = "running",
- zt = "canceling",
- He = "unknown",
- Tn = "microTask",
- Xt = "macroTask",
- Ye = "eventTask",
- it = {},
- ze = {
- symbol: q,
- currentZoneFrame: function () {
- return vt
- },
- onUnhandledError: St,
- microtaskDrainDone: St,
- scheduleMicroTask: xe,
- showUncaughtError: function () {
- return !ye[q("ignoreConsoleErrorUncaughtError")]
- },
- patchEventTarget: function () {
- return []
- },
- patchOnProperties: St,
- patchMethod: function () {
- return St
- },
- bindArguments: function () {
- return []
- },
- patchThen: function () {
- return St
- },
- patchMacroTask: function () {
- return St
- },
- patchEventPrototype: function () {
- return St
- },
- isIEOrEdge: function () {
- return !1
- },
- getGlobalObjects: function () {},
- ObjectDefineProperty: function () {
- return St
- },
- ObjectGetOwnPropertyDescriptor: function () {},
- ObjectCreate: function () {},
- ArraySlice: function () {
- return []
- },
- patchClass: function () {
- return St
- },
- wrapWithCurrentZone: function () {
- return St
- },
- filterProperties: function () {
- return []
- },
- attachOriginToPatched: function () {
- return St
- },
- _redefineProperty: function () {
- return St
- },
- patchCallbacks: function () {
- return St
- },
- },
- vt = {
- parent: null,
- zone: new ye(null, null),
- },
- zn = null,
- xn = 0
- function St() {}
- S("Zone", "Zone"), (m.Zone = ye)
- })(
- ("undefined" != typeof window && window) ||
- ("undefined" != typeof self && self) ||
- global
- )
- var M = Object.getOwnPropertyDescriptor,
- f = Object.defineProperty,
- h = Object.getPrototypeOf,
- j = Object.create,
- b = Array.prototype.slice,
- Z = "addEventListener",
- J = "removeEventListener",
- he = Zone.__symbol__(Z),
- be = Zone.__symbol__(J),
- A = "true",
- Fe = "false",
- Ce = Zone.__symbol__("")
- function le(m, y) {
- return Zone.current.wrap(m, y)
- }
- function we(m, y, E, S, V) {
- return Zone.current.scheduleMacroTask(m, y, E, S, V)
- }
- var ue = Zone.__symbol__,
- Me = "undefined" != typeof window,
- ie = Me ? window : void 0,
- K = (Me && ie) || ("object" == typeof self && self) || global,
- qe = [null]
- function It(m, y) {
- for (var E = m.length - 1; E >= 0; E--)
- "function" == typeof m[E] && (m[E] = le(m[E], y + "_" + E))
- return m
- }
- function pt(m) {
- return (
- !m ||
- (!1 !== m.writable &&
- !("function" == typeof m.get && void 0 === m.set))
- )
- }
- var Ut =
- "undefined" != typeof WorkerGlobalScope &&
- self instanceof WorkerGlobalScope,
- kn =
- !("nw" in K) &&
- void 0 !== K.process &&
- "[object process]" === {}.toString.call(K.process),
- Nt = !kn && !Ut && !(!Me || !ie.HTMLElement),
- xt =
- void 0 !== K.process &&
- "[object process]" === {}.toString.call(K.process) &&
- !Ut &&
- !(!Me || !ie.HTMLElement),
- wt = {},
- Gt = function (y) {
- if ((y = y || K.event)) {
- var E = wt[y.type]
- E || (E = wt[y.type] = ue("ON_PROPERTY" + y.type))
- var q,
- S = this || y.target || K,
- V = S[E]
- return (
- Nt && S === ie && "error" === y.type
- ? !0 ===
- (q =
- V &&
- V.call(
- this,
- y.message,
- y.filename,
- y.lineno,
- y.colno,
- y.error
- )) && y.preventDefault()
- : null != (q = V && V.apply(this, arguments)) &&
- !q &&
- y.preventDefault(),
- q
- )
- }
- }
- function Pt(m, y, E) {
- var S = M(m, y)
- if (
- (!S &&
- E &&
- M(E, y) &&
- (S = {
- enumerable: !0,
- configurable: !0,
- }),
- S && S.configurable)
- ) {
- var q = ue("on" + y + "patched")
- if (!m.hasOwnProperty(q) || !m[q]) {
- delete S.writable, delete S.value
- var ne = S.get,
- ye = S.set,
- ae = y.substr(2),
- Ae = wt[ae]
- Ae || (Ae = wt[ae] = ue("ON_PROPERTY" + ae)),
- (S.set = function (W) {
- var Ee = this
- !Ee && m === K && (Ee = K),
- Ee &&
- (Ee[Ae] && Ee.removeEventListener(ae, Gt),
- ye && ye.apply(Ee, qe),
- "function" == typeof W
- ? ((Ee[Ae] = W), Ee.addEventListener(ae, Gt, !1))
- : (Ee[Ae] = null))
- }),
- (S.get = function () {
- var W = this
- if ((!W && m === K && (W = K), !W)) return null
- var Ee = W[Ae]
- if (Ee) return Ee
- if (ne) {
- var Oe = ne && ne.call(this)
- if (Oe)
- return (
- S.set.call(this, Oe),
- "function" == typeof W.removeAttribute &&
- W.removeAttribute(y),
- Oe
- )
- }
- return null
- }),
- f(m, y, S),
- (m[q] = !0)
- }
- }
- }
- function vn(m, y, E) {
- if (y) for (var S = 0; S < y.length; S++) Pt(m, "on" + y[S], E)
- else {
- var V = []
- for (var q in m) "on" == q.substr(0, 2) && V.push(q)
- for (var ne = 0; ne < V.length; ne++) Pt(m, V[ne], E)
- }
- }
- var bt = ue("originalInstance")
- function Rr(m) {
- var y = K[m]
- if (y) {
- ;(K[ue(m)] = y),
- (K[m] = function () {
- var V = It(arguments, m)
- switch (V.length) {
- case 0:
- this[bt] = new y()
- break
- case 1:
- this[bt] = new y(V[0])
- break
- case 2:
- this[bt] = new y(V[0], V[1])
- break
- case 3:
- this[bt] = new y(V[0], V[1], V[2])
- break
- case 4:
- this[bt] = new y(V[0], V[1], V[2], V[3])
- break
- default:
- throw new Error("Arg list too long.")
- }
- }),
- bn(K[m], y)
- var S,
- E = new y(function () {})
- for (S in E)
- ("XMLHttpRequest" === m && "responseBlob" === S) ||
- (function (V) {
- "function" == typeof E[V]
- ? (K[m].prototype[V] = function () {
- return this[bt][V].apply(this[bt], arguments)
- })
- : f(K[m].prototype, V, {
- set: function (ne) {
- "function" == typeof ne
- ? ((this[bt][V] = le(ne, m + "." + V)),
- bn(this[bt][V], ne))
- : (this[bt][V] = ne)
- },
- get: function () {
- return this[bt][V]
- },
- })
- })(S)
- for (S in y)
- "prototype" !== S && y.hasOwnProperty(S) && (K[m][S] = y[S])
- }
- }
- function Rn(m, y, E) {
- for (var S = m; S && !S.hasOwnProperty(y); ) S = h(S)
- !S && m[y] && (S = m)
- var V = ue(y),
- q = null
- if (
- S &&
- (!(q = S[V]) || !S.hasOwnProperty(V)) &&
- ((q = S[V] = S[y]), pt(S && M(S, y)))
- ) {
- var ye = E(q, V, y)
- ;(S[y] = function () {
- return ye(this, arguments)
- }),
- bn(S[y], q)
- }
- return q
- }
- function Nn(m, y, E) {
- var S = null
- function V(q) {
- var ne = q.data
- return (
- (ne.args[ne.cbIdx] = function () {
- q.invoke.apply(this, arguments)
- }),
- S.apply(ne.target, ne.args),
- q
- )
- }
- S = Rn(m, y, function (q) {
- return function (ne, ye) {
- var ae = E(ne, ye)
- return ae.cbIdx >= 0 && "function" == typeof ye[ae.cbIdx]
- ? we(ae.name, ye[ae.cbIdx], ae, V)
- : q.apply(ne, ye)
- }
- })
- }
- function bn(m, y) {
- m[ue("OriginalDelegate")] = y
- }
- var ei = !1,
- Nr = !1
- function Mn() {
- if (ei) return Nr
- ei = !0
- try {
- var m = ie.navigator.userAgent
- ;(-1 !== m.indexOf("MSIE ") ||
- -1 !== m.indexOf("Trident/") ||
- -1 !== m.indexOf("Edge/")) &&
- (Nr = !0)
- } catch (y) {}
- return Nr
- }
- Zone.__load_patch("ZoneAwarePromise", function (m, y, E) {
- var S = Object.getOwnPropertyDescriptor,
- V = Object.defineProperty
- var ne = E.symbol,
- ye = [],
- ae = !0 === m[ne("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],
- Ae = ne("Promise"),
- W = ne("then")
- ;(E.onUnhandledError = function (re) {
- if (E.showUncaughtError()) {
- var te = re && re.rejection
- te
- ? console.error(
- "Unhandled Promise rejection:",
- te instanceof Error ? te.message : te,
- "; Zone:",
- re.zone.name,
- "; Task:",
- re.task && re.task.source,
- "; Value:",
- te,
- te instanceof Error ? te.stack : void 0
- )
- : console.error(re)
- }
- }),
- (E.microtaskDrainDone = function () {
- for (
- var re = function () {
- var Q = ye.shift()
- try {
- Q.zone.runGuarded(function () {
- throw Q.throwOriginal ? Q.rejection : Q
- })
- } catch ($) {
- !(function Se(re) {
- E.onUnhandledError(re)
- try {
- var te = y[Oe]
- "function" == typeof te && te.call(this, re)
- } catch (Q) {}
- })($)
- }
- };
- ye.length;
-
- )
- re()
- })
- var Oe = ne("unhandledPromiseRejectionHandler")
- function me(re) {
- return re && re.then
- }
- function ot(re) {
- return re
- }
- function Lt(re) {
- return P.reject(re)
- }
- var xe = ne("state"),
- ce = ne("value"),
- _e = ne("finally"),
- Le = ne("parentPromiseValue"),
- At = ne("parentPromiseState"),
- Ne = null,
- He = !1
- function Xt(re, te) {
- return function (Q) {
- try {
- vt(re, te, Q)
- } catch ($) {
- vt(re, !1, $)
- }
- }
- }
- var ze = ne("currentTaskTrace")
- function vt(re, te, Q) {
- var $ = (function () {
- var te = !1
- return function ($) {
- return function () {
- te || ((te = !0), $.apply(null, arguments))
- }
- }
- })()
- if (re === Q) throw new TypeError("Promise resolved with itself")
- if (re[xe] === Ne) {
- var Ve = null
- try {
- ;("object" == typeof Q || "function" == typeof Q) &&
- (Ve = Q && Q.then)
- } catch (at) {
- return (
- $(function () {
- vt(re, !1, at)
- })(),
- re
- )
- }
- if (
- te !== He &&
- Q instanceof P &&
- Q.hasOwnProperty(xe) &&
- Q.hasOwnProperty(ce) &&
- Q[xe] !== Ne
- )
- xn(Q), vt(re, Q[xe], Q[ce])
- else if (te !== He && "function" == typeof Ve)
- try {
- Ve.call(Q, $(Xt(re, te)), $(Xt(re, !1)))
- } catch (at) {
- $(function () {
- vt(re, !1, at)
- })()
- }
- else {
- re[xe] = te
- var We = re[ce]
- if (
- ((re[ce] = Q),
- re[_e] === _e &&
- true === te &&
- ((re[xe] = re[At]), (re[ce] = re[Le])),
- te === He && Q instanceof Error)
- ) {
- var ut =
- y.currentTask &&
- y.currentTask.data &&
- y.currentTask.data.__creationTrace__
- ut &&
- V(Q, ze, {
- configurable: !0,
- enumerable: !1,
- writable: !0,
- value: ut,
- })
- }
- for (var lt = 0; lt < We.length; )
- St(re, We[lt++], We[lt++], We[lt++], We[lt++])
- if (0 == We.length && te == He) {
- re[xe] = 0
- var et = Q
- try {
- throw new Error(
- "Uncaught (in promise): " +
- (function q(re) {
- return re && re.toString === Object.prototype.toString
- ? ((re.constructor && re.constructor.name) || "") +
- ": " +
- JSON.stringify(re)
- : re
- ? re.toString()
- : Object.prototype.toString.call(re)
- })(Q) +
- (Q && Q.stack ? "\n" + Q.stack : "")
- )
- } catch (at) {
- et = at
- }
- ae && (et.throwOriginal = !0),
- (et.rejection = Q),
- (et.promise = re),
- (et.zone = y.current),
- (et.task = y.currentTask),
- ye.push(et),
- E.scheduleMicroTask()
- }
- }
- }
- return re
- }
- var zn = ne("rejectionHandledHandler")
- function xn(re) {
- if (0 === re[xe]) {
- try {
- var te = y[zn]
- te &&
- "function" == typeof te &&
- te.call(this, {
- rejection: re[ce],
- promise: re,
- })
- } catch ($) {}
- re[xe] = He
- for (var Q = 0; Q < ye.length; Q++)
- re === ye[Q].promise && ye.splice(Q, 1)
- }
- }
- function St(re, te, Q, $, Ve) {
- xn(re)
- var We = re[xe],
- ut = We
- ? "function" == typeof $
- ? $
- : ot
- : "function" == typeof Ve
- ? Ve
- : Lt
- te.scheduleMicroTask(
- "Promise.then",
- function () {
- try {
- var lt = re[ce],
- et = !!Q && _e === Q[_e]
- et && ((Q[Le] = lt), (Q[At] = We))
- var at = te.run(
- ut,
- void 0,
- et && ut !== Lt && ut !== ot ? [] : [lt]
- )
- vt(Q, !0, at)
- } catch (gt) {
- vt(Q, !1, gt)
- }
- },
- Q
- )
- }
- var I = function () {},
- P = (function () {
- function re(te) {
- var Q = this
- if (!(Q instanceof re))
- throw new Error("Must be an instanceof Promise.")
- ;(Q[xe] = Ne), (Q[ce] = [])
- try {
- te && te(Xt(Q, true), Xt(Q, He))
- } catch ($) {
- vt(Q, !1, $)
- }
- }
- return (
- (re.toString = function () {
- return "function ZoneAwarePromise() { [native code] }"
- }),
- (re.resolve = function (te) {
- return vt(new this(null), true, te)
- }),
- (re.reject = function (te) {
- return vt(new this(null), He, te)
- }),
- (re.race = function (te) {
- var Q,
- $,
- Ve = new this(function (gt, Wt) {
- ;(Q = gt), ($ = Wt)
- })
- function We(gt) {
- Q(gt)
- }
- function ut(gt) {
- $(gt)
- }
- for (var lt = 0, et = te; lt < et.length; lt++) {
- var at = et[lt]
- me(at) || (at = this.resolve(at)), at.then(We, ut)
- }
- return Ve
- }),
- (re.all = function (te) {
- return re.allWithCallback(te)
- }),
- (re.allSettled = function (te) {
- return (
- this && this.prototype instanceof re ? this : re
- ).allWithCallback(te, {
- thenCallback: function (Ve) {
- return {
- status: "fulfilled",
- value: Ve,
- }
- },
- errorCallback: function (Ve) {
- return {
- status: "rejected",
- reason: Ve,
- }
- },
- })
- }),
- (re.allWithCallback = function (te, Q) {
- for (
- var $,
- Ve,
- We = new this(function (Yt, Vt) {
- ;($ = Yt), (Ve = Vt)
- }),
- ut = 2,
- lt = 0,
- et = [],
- at = function (Vt) {
- me(Vt) || (Vt = gt.resolve(Vt))
- var pn = lt
- try {
- Vt.then(
- function (Qn) {
- ;(et[pn] = Q ? Q.thenCallback(Qn) : Qn),
- 0 == --ut && $(et)
- },
- function (Qn) {
- Q
- ? ((et[pn] = Q.errorCallback(Qn)),
- 0 == --ut && $(et))
- : Ve(Qn)
- }
- )
- } catch (Qn) {
- Ve(Qn)
- }
- ut++, lt++
- },
- gt = this,
- Wt = 0,
- sr = te;
- Wt < sr.length;
- Wt++
- )
- at(sr[Wt])
- return 0 == (ut -= 2) && $(et), We
- }),
- Object.defineProperty(re.prototype, Symbol.toStringTag, {
- get: function () {
- return "Promise"
- },
- enumerable: !1,
- configurable: !0,
- }),
- Object.defineProperty(re.prototype, Symbol.species, {
- get: function () {
- return re
- },
- enumerable: !1,
- configurable: !0,
- }),
- (re.prototype.then = function (te, Q) {
- var $ = this.constructor[Symbol.species]
- ;(!$ || "function" != typeof $) &&
- ($ = this.constructor || re)
- var Ve = new $(I),
- We = y.current
- return (
- this[xe] == Ne
- ? this[ce].push(We, Ve, te, Q)
- : St(this, We, Ve, te, Q),
- Ve
- )
- }),
- (re.prototype.catch = function (te) {
- return this.then(null, te)
- }),
- (re.prototype.finally = function (te) {
- var Q = this.constructor[Symbol.species]
- ;(!Q || "function" != typeof Q) && (Q = re)
- var $ = new Q(I)
- $[_e] = _e
- var Ve = y.current
- return (
- this[xe] == Ne
- ? this[ce].push(Ve, $, te, te)
- : St(this, Ve, $, te, te),
- $
- )
- }),
- re
- )
- })()
- ;(P.resolve = P.resolve),
- (P.reject = P.reject),
- (P.race = P.race),
- (P.all = P.all)
- var R = (m[Ae] = m.Promise)
- m.Promise = P
- var fe = ne("thenPatched")
- function Tt(re) {
- var te = re.prototype,
- Q = S(te, "then")
- if (!Q || (!1 !== Q.writable && Q.configurable)) {
- var $ = te.then
- ;(te[W] = $),
- (re.prototype.then = function (Ve, We) {
- var ut = this
- return new P(function (et, at) {
- $.call(ut, et, at)
- }).then(Ve, We)
- }),
- (re[fe] = !0)
- }
- }
- return (
- (E.patchThen = Tt),
- R &&
- (Tt(R),
- Rn(m, "fetch", function (re) {
- return (function Ln(re) {
- return function (te, Q) {
- var $ = re.apply(te, Q)
- if ($ instanceof P) return $
- var Ve = $.constructor
- return Ve[fe] || Tt(Ve), $
- }
- })(re)
- })),
- (Promise[y.__symbol__("uncaughtPromiseErrors")] = ye),
- P
- )
- }),
- Zone.__load_patch("toString", function (m) {
- var y = Function.prototype.toString,
- E = ue("OriginalDelegate"),
- S = ue("Promise"),
- V = ue("Error"),
- q = function () {
- if ("function" == typeof this) {
- var Ae = this[E]
- if (Ae)
- return "function" == typeof Ae
- ? y.call(Ae)
- : Object.prototype.toString.call(Ae)
- if (this === Promise) {
- var W = m[S]
- if (W) return y.call(W)
- }
- if (this === Error) {
- var Ee = m[V]
- if (Ee) return y.call(Ee)
- }
- }
- return y.call(this)
- }
- ;(q[E] = y), (Function.prototype.toString = q)
- var ne = Object.prototype.toString
- Object.prototype.toString = function () {
- return "function" == typeof Promise && this instanceof Promise
- ? "[object Promise]"
- : ne.call(this)
- }
- })
- var _r = !1
- if ("undefined" != typeof window)
- try {
- var hi = Object.defineProperty({}, "passive", {
- get: function () {
- _r = !0
- },
- })
- window.addEventListener("test", hi, hi),
- window.removeEventListener("test", hi, hi)
- } catch (m) {
- _r = !1
- }
- var io = {
- useG: !0,
- },
- Kt = {},
- Mi = {},
- ao = new RegExp("^" + Ce + "(\\w+)(true|false)$"),
- vi = ue("propagationStopped")
- function an(m, y) {
- var E = (y ? y(m) : m) + Fe,
- S = (y ? y(m) : m) + A,
- V = Ce + E,
- q = Ce + S
- ;(Kt[m] = {}), (Kt[m][Fe] = V), (Kt[m][A] = q)
- }
- function Yi(m, y, E) {
- var S = (E && E.add) || Z,
- V = (E && E.rm) || J,
- q = (E && E.listeners) || "eventListeners",
- ne = (E && E.rmAll) || "removeAllListeners",
- ye = ue(S),
- ae = "." + S + ":",
- Ae = "prependListener",
- Ee = function (ce, _e, Le) {
- if (!ce.isRemoved) {
- var At = ce.callback
- "object" == typeof At &&
- At.handleEvent &&
- ((ce.callback = function (zt) {
- return At.handleEvent(zt)
- }),
- (ce.originalDelegate = At)),
- ce.invoke(ce, _e, [Le])
- var rt = ce.options
- rt &&
- "object" == typeof rt &&
- rt.once &&
- _e[V].call(
- _e,
- Le.type,
- ce.originalDelegate ? ce.originalDelegate : ce.callback,
- rt
- )
- }
- },
- Oe = function (ce) {
- if ((ce = ce || m.event)) {
- var _e = this || ce.target || m,
- Le = _e[Kt[ce.type][Fe]]
- if (Le)
- if (1 === Le.length) Ee(Le[0], _e, ce)
- else
- for (
- var At = Le.slice(), rt = 0;
- rt < At.length && (!ce || !0 !== ce[vi]);
- rt++
- )
- Ee(At[rt], _e, ce)
- }
- },
- Se = function (ce) {
- if ((ce = ce || m.event)) {
- var _e = this || ce.target || m,
- Le = _e[Kt[ce.type][A]]
- if (Le)
- if (1 === Le.length) Ee(Le[0], _e, ce)
- else
- for (
- var At = Le.slice(), rt = 0;
- rt < At.length && (!ce || !0 !== ce[vi]);
- rt++
- )
- Ee(At[rt], _e, ce)
- }
- }
- function me(xe, ce) {
- if (!xe) return !1
- var _e = !0
- ce && void 0 !== ce.useG && (_e = ce.useG)
- var Le = ce && ce.vh,
- At = !0
- ce && void 0 !== ce.chkDup && (At = ce.chkDup)
- var rt = !1
- ce && void 0 !== ce.rt && (rt = ce.rt)
- for (var Ne = xe; Ne && !Ne.hasOwnProperty(S); ) Ne = h(Ne)
- if ((!Ne && xe[S] && (Ne = xe), !Ne || Ne[ye])) return !1
- var ze,
- zt = ce && ce.eventNameToString,
- He = {},
- Tn = (Ne[ye] = Ne[S]),
- Xt = (Ne[ue(V)] = Ne[V]),
- Ye = (Ne[ue(q)] = Ne[q]),
- it = (Ne[ue(ne)] = Ne[ne])
- function vt(Q, $) {
- return !_r && "object" == typeof Q && Q
- ? !!Q.capture
- : _r && $
- ? "boolean" == typeof Q
- ? {
- capture: Q,
- passive: !0,
- }
- : Q
- ? "object" == typeof Q && !1 !== Q.passive
- ? Object.assign(Object.assign({}, Q), {
- passive: !0,
- })
- : Q
- : {
- passive: !0,
- }
- : Q
- }
- ce && ce.prepend && (ze = Ne[ue(ce.prepend)] = Ne[ce.prepend])
- var P = _e
- ? function ($) {
- if (!He.isExisting)
- return Tn.call(
- He.target,
- He.eventName,
- He.capture ? Se : Oe,
- He.options
- )
- }
- : function ($) {
- return Tn.call(
- He.target,
- He.eventName,
- $.invoke,
- He.options
- )
- },
- R = _e
- ? function ($) {
- if (!$.isRemoved) {
- var Ve = Kt[$.eventName],
- We = void 0
- Ve && (We = Ve[$.capture ? A : Fe])
- var ut = We && $.target[We]
- if (ut)
- for (var lt = 0; lt < ut.length; lt++)
- if (ut[lt] === $) {
- ut.splice(lt, 1),
- ($.isRemoved = !0),
- 0 === ut.length &&
- (($.allRemoved = !0), ($.target[We] = null))
- break
- }
- }
- if ($.allRemoved)
- return Xt.call(
- $.target,
- $.eventName,
- $.capture ? Se : Oe,
- $.options
- )
- }
- : function ($) {
- return Xt.call($.target, $.eventName, $.invoke, $.options)
- },
- Tt =
- ce && ce.diff
- ? ce.diff
- : function ($, Ve) {
- var We = typeof Ve
- return (
- ("function" === We && $.callback === Ve) ||
- ("object" === We && $.originalDelegate === Ve)
- )
- },
- Ln = Zone[ue("UNPATCHED_EVENTS")],
- re = m[ue("PASSIVE_EVENTS")],
- te = function ($, Ve, We, ut, lt, et) {
- return (
- void 0 === lt && (lt = !1),
- void 0 === et && (et = !1),
- function () {
- var at = this || m,
- gt = arguments[0]
- ce &&
- ce.transferEventName &&
- (gt = ce.transferEventName(gt))
- var Wt = arguments[1]
- if (!Wt) return $.apply(this, arguments)
- if (kn && "uncaughtException" === gt)
- return $.apply(this, arguments)
- var sr = !1
- if ("function" != typeof Wt) {
- if (!Wt.handleEvent) return $.apply(this, arguments)
- sr = !0
- }
- if (!Le || Le($, Wt, at, arguments)) {
- var je = _r && !!re && -1 !== re.indexOf(gt),
- Yt = vt(arguments[2], je)
- if (Ln)
- for (var Vt = 0; Vt < Ln.length; Vt++)
- if (gt === Ln[Vt])
- return je
- ? $.call(at, gt, Wt, Yt)
- : $.apply(this, arguments)
- var pn = !!Yt && ("boolean" == typeof Yt || Yt.capture),
- Qn = !(!Yt || "object" != typeof Yt) && Yt.once,
- ad = Zone.current,
- ur = Kt[gt]
- ur || (an(gt, zt), (ur = Kt[gt]))
- var Zn = ur[pn ? A : Fe],
- Fi = at[Zn],
- Ju = !1
- if (Fi) {
- if (((Ju = !0), At))
- for (Vt = 0; Vt < Fi.length; Vt++)
- if (Tt(Fi[Vt], Wt)) return
- } else Fi = at[Zn] = []
- var Vn,
- hs = at.constructor.name,
- vs = Mi[hs]
- vs && (Vn = vs[gt]),
- Vn || (Vn = hs + Ve + (zt ? zt(gt) : gt)),
- (He.options = Yt),
- Qn && (He.options.once = !1),
- (He.target = at),
- (He.capture = pn),
- (He.eventName = gt),
- (He.isExisting = Ju)
- var Ri = _e ? io : void 0
- Ri && (Ri.taskData = He)
- var xr = ad.scheduleEventTask(Vn, Wt, Ri, We, ut)
- if (
- ((He.target = null),
- Ri && (Ri.taskData = null),
- Qn && (Yt.once = !0),
- (!_r && "boolean" == typeof xr.options) ||
- (xr.options = Yt),
- (xr.target = at),
- (xr.capture = pn),
- (xr.eventName = gt),
- sr && (xr.originalDelegate = Wt),
- et ? Fi.unshift(xr) : Fi.push(xr),
- lt)
- )
- return at
- }
- }
- )
- }
- return (
- (Ne[S] = te(Tn, ae, P, R, rt)),
- ze &&
- (Ne[Ae] = te(
- ze,
- ".prependListener:",
- function ($) {
- return ze.call(
- He.target,
- He.eventName,
- $.invoke,
- He.options
- )
- },
- R,
- rt,
- !0
- )),
- (Ne[V] = function () {
- var Q = this || m,
- $ = arguments[0]
- ce && ce.transferEventName && ($ = ce.transferEventName($))
- var Ve = arguments[2],
- We = !!Ve && ("boolean" == typeof Ve || Ve.capture),
- ut = arguments[1]
- if (!ut) return Xt.apply(this, arguments)
- if (!Le || Le(Xt, ut, Q, arguments)) {
- var et,
- lt = Kt[$]
- lt && (et = lt[We ? A : Fe])
- var at = et && Q[et]
- if (at)
- for (var gt = 0; gt < at.length; gt++) {
- var Wt = at[gt]
- if (Tt(Wt, ut))
- return (
- at.splice(gt, 1),
- (Wt.isRemoved = !0),
- 0 === at.length &&
- ((Wt.allRemoved = !0),
- (Q[et] = null),
- "string" == typeof $) &&
- (Q[Ce + "ON_PROPERTY" + $] = null),
- Wt.zone.cancelTask(Wt),
- rt ? Q : void 0
- )
- }
- return Xt.apply(this, arguments)
- }
- }),
- (Ne[q] = function () {
- var Q = this || m,
- $ = arguments[0]
- ce && ce.transferEventName && ($ = ce.transferEventName($))
- for (
- var Ve = [], We = Ji(Q, zt ? zt($) : $), ut = 0;
- ut < We.length;
- ut++
- ) {
- var lt = We[ut]
- Ve.push(
- lt.originalDelegate ? lt.originalDelegate : lt.callback
- )
- }
- return Ve
- }),
- (Ne[ne] = function () {
- var Q = this || m,
- $ = arguments[0]
- if ($) {
- ce && ce.transferEventName && ($ = ce.transferEventName($))
- var at = Kt[$]
- if (at) {
- var sr = Q[at[Fe]],
- je = Q[at[A]]
- if (sr)
- for (var Yt = sr.slice(), We = 0; We < Yt.length; We++)
- this[V].call(
- this,
- $,
- (Vt = Yt[We]).originalDelegate
- ? Vt.originalDelegate
- : Vt.callback,
- Vt.options
- )
- if (je)
- for (Yt = je.slice(), We = 0; We < Yt.length; We++) {
- var Vt
- this[V].call(
- this,
- $,
- (Vt = Yt[We]).originalDelegate
- ? Vt.originalDelegate
- : Vt.callback,
- Vt.options
- )
- }
- }
- } else {
- var Ve = Object.keys(Q)
- for (We = 0; We < Ve.length; We++) {
- var lt = ao.exec(Ve[We]),
- et = lt && lt[1]
- et && "removeListener" !== et && this[ne].call(this, et)
- }
- this[ne].call(this, "removeListener")
- }
- if (rt) return this
- }),
- bn(Ne[S], Tn),
- bn(Ne[V], Xt),
- it && bn(Ne[ne], it),
- Ye && bn(Ne[q], Ye),
- !0
- )
- }
- for (var ot = [], Lt = 0; Lt < y.length; Lt++) ot[Lt] = me(y[Lt], E)
- return ot
- }
- function Ji(m, y) {
- if (!y) {
- var E = []
- for (var S in m) {
- var V = ao.exec(S),
- q = V && V[1]
- if (q && (!y || q === y)) {
- var ne = m[S]
- if (ne) for (var ye = 0; ye < ne.length; ye++) E.push(ne[ye])
- }
- }
- return E
- }
- var ae = Kt[y]
- ae || (an(y), (ae = Kt[y]))
- var Ae = m[ae[Fe]],
- W = m[ae[A]]
- return Ae ? (W ? Ae.concat(W) : Ae.slice()) : W ? W.slice() : []
- }
- function ti(m, y) {
- var E = m.Event
- E &&
- E.prototype &&
- y.patchMethod(
- E.prototype,
- "stopImmediatePropagation",
- function (S) {
- return function (V, q) {
- ;(V[vi] = !0), S && S.apply(V, q)
- }
- }
- )
- }
- function oo(m, y, E, S, V) {
- var q = Zone.__symbol__(S)
- if (!y[q]) {
- var ne = (y[q] = y[S])
- ;(y[S] = function (ye, ae, Ae) {
- return (
- ae &&
- ae.prototype &&
- V.forEach(function (W) {
- var Ee = E + "." + S + "::" + W,
- Oe = ae.prototype
- if (Oe.hasOwnProperty(W)) {
- var Se = m.ObjectGetOwnPropertyDescriptor(Oe, W)
- Se && Se.value
- ? ((Se.value = m.wrapWithCurrentZone(Se.value, Ee)),
- m._redefineProperty(ae.prototype, W, Se))
- : Oe[W] && (Oe[W] = m.wrapWithCurrentZone(Oe[W], Ee))
- } else Oe[W] && (Oe[W] = m.wrapWithCurrentZone(Oe[W], Ee))
- }),
- ne.call(y, ye, ae, Ae)
- )
- }),
- m.attachOriginToPatched(y[S], ne)
- }
- }
- var st,
- Ct,
- Ft,
- Jn,
- wn,
- m,
- y,
- pi = [
- "absolutedeviceorientation",
- "afterinput",
- "afterprint",
- "appinstalled",
- "beforeinstallprompt",
- "beforeprint",
- "beforeunload",
- "devicelight",
- "devicemotion",
- "deviceorientation",
- "deviceorientationabsolute",
- "deviceproximity",
- "hashchange",
- "languagechange",
- "message",
- "mozbeforepaint",
- "offline",
- "online",
- "paint",
- "pageshow",
- "pagehide",
- "popstate",
- "rejectionhandled",
- "storage",
- "unhandledrejection",
- "unload",
- "userproximity",
- "vrdisplayconnected",
- "vrdisplaydisconnected",
- "vrdisplaypresentchange",
- ],
- or = [
- "encrypted",
- "waitingforkey",
- "msneedkey",
- "mozinterruptbegin",
- "mozinterruptend",
- ],
- Oi = ["load"],
- ni = [
- "blur",
- "error",
- "focus",
- "load",
- "resize",
- "scroll",
- "messageerror",
- ],
- fs = ["bounce", "finish", "start"],
- _ = [
- "loadstart",
- "progress",
- "abort",
- "error",
- "load",
- "progress",
- "timeout",
- "loadend",
- "readystatechange",
- ],
- w = [
- "upgradeneeded",
- "complete",
- "abort",
- "success",
- "error",
- "blocked",
- "versionchange",
- "close",
- ],
- B = ["close", "error", "open", "message"],
- oe = ["error", "message"],
- X = [
- "abort",
- "animationcancel",
- "animationend",
- "animationiteration",
- "auxclick",
- "beforeinput",
- "blur",
- "cancel",
- "canplay",
- "canplaythrough",
- "change",
- "compositionstart",
- "compositionupdate",
- "compositionend",
- "cuechange",
- "click",
- "close",
- "contextmenu",
- "curechange",
- "dblclick",
- "drag",
- "dragend",
- "dragenter",
- "dragexit",
- "dragleave",
- "dragover",
- "drop",
- "durationchange",
- "emptied",
- "ended",
- "error",
- "focus",
- "focusin",
- "focusout",
- "gotpointercapture",
- "input",
- "invalid",
- "keydown",
- "keypress",
- "keyup",
- "load",
- "loadstart",
- "loadeddata",
- "loadedmetadata",
- "lostpointercapture",
- "mousedown",
- "mouseenter",
- "mouseleave",
- "mousemove",
- "mouseout",
- "mouseover",
- "mouseup",
- "mousewheel",
- "orientationchange",
- "pause",
- "play",
- "playing",
- "pointercancel",
- "pointerdown",
- "pointerenter",
- "pointerleave",
- "pointerlockchange",
- "mozpointerlockchange",
- "webkitpointerlockerchange",
- "pointerlockerror",
- "mozpointerlockerror",
- "webkitpointerlockerror",
- "pointermove",
- "pointout",
- "pointerover",
- "pointerup",
- "progress",
- "ratechange",
- "reset",
- "resize",
- "scroll",
- "seeked",
- "seeking",
- "select",
- "selectionchange",
- "selectstart",
- "show",
- "sort",
- "stalled",
- "submit",
- "suspend",
- "timeupdate",
- "volumechange",
- "touchcancel",
- "touchmove",
- "touchstart",
- "touchend",
- "transitioncancel",
- "transitionend",
- "waiting",
- "wheel",
- ].concat(
- [
- "webglcontextrestored",
- "webglcontextlost",
- "webglcontextcreationerror",
- ],
- ["autocomplete", "autocompleteerror"],
- ["toggle"],
- [
- "afterscriptexecute",
- "beforescriptexecute",
- "DOMContentLoaded",
- "freeze",
- "fullscreenchange",
- "mozfullscreenchange",
- "webkitfullscreenchange",
- "msfullscreenchange",
- "fullscreenerror",
- "mozfullscreenerror",
- "webkitfullscreenerror",
- "msfullscreenerror",
- "readystatechange",
- "visibilitychange",
- "resume",
- ],
- pi,
- [
- "beforecopy",
- "beforecut",
- "beforepaste",
- "copy",
- "cut",
- "paste",
- "dragstart",
- "loadend",
- "animationstart",
- "search",
- "transitionrun",
- "transitionstart",
- "webkitanimationend",
- "webkitanimationiteration",
- "webkitanimationstart",
- "webkittransitionend",
- ],
- [
- "activate",
- "afterupdate",
- "ariarequest",
- "beforeactivate",
- "beforedeactivate",
- "beforeeditfocus",
- "beforeupdate",
- "cellchange",
- "controlselect",
- "dataavailable",
- "datasetchanged",
- "datasetcomplete",
- "errorupdate",
- "filterchange",
- "layoutcomplete",
- "losecapture",
- "move",
- "moveend",
- "movestart",
- "propertychange",
- "resizeend",
- "resizestart",
- "rowenter",
- "rowexit",
- "rowsdelete",
- "rowsinserted",
- "command",
- "compassneedscalibration",
- "deactivate",
- "help",
- "mscontentzoom",
- "msmanipulationstatechanged",
- "msgesturechange",
- "msgesturedoubletap",
- "msgestureend",
- "msgesturehold",
- "msgesturestart",
- "msgesturetap",
- "msgotpointercapture",
- "msinertiastart",
- "mslostpointercapture",
- "mspointercancel",
- "mspointerdown",
- "mspointerenter",
- "mspointerhover",
- "mspointerleave",
- "mspointermove",
- "mspointerout",
- "mspointerover",
- "mspointerup",
- "pointerout",
- "mssitemodejumplistitemremoved",
- "msthumbnailclick",
- "stop",
- "storagecommit",
- ]
- )
- function Pe(m, y, E) {
- if (!E || 0 === E.length) return y
- var S = E.filter(function (q) {
- return q.target === m
- })
- if (!S || 0 === S.length) return y
- var V = S[0].ignoreProperties
- return y.filter(function (q) {
- return -1 === V.indexOf(q)
- })
- }
- function ve(m, y, E, S) {
- m && vn(m, Pe(m, y, E), S)
- }
- function _t(m, y) {
- if ((!kn || xt) && !Zone[m.symbol("patchEvents")]) {
- var E = "undefined" != typeof WebSocket,
- S = y.__Zone_ignore_on_properties
- if (Nt) {
- var V = window,
- q = (function cs() {
- try {
- var m = ie.navigator.userAgent
- if (
- -1 !== m.indexOf("MSIE ") ||
- -1 !== m.indexOf("Trident/")
- )
- return !0
- } catch (y) {}
- return !1
- })()
- ? [
- {
- target: V,
- ignoreProperties: ["error"],
- },
- ]
- : []
- ve(V, X.concat(["messageerror"]), S && S.concat(q), h(V)),
- ve(Document.prototype, X, S),
- void 0 !== V.SVGElement && ve(V.SVGElement.prototype, X, S),
- ve(Element.prototype, X, S),
- ve(HTMLElement.prototype, X, S),
- ve(HTMLMediaElement.prototype, or, S),
- ve(HTMLFrameSetElement.prototype, pi.concat(ni), S),
- ve(HTMLBodyElement.prototype, pi.concat(ni), S),
- ve(HTMLFrameElement.prototype, Oi, S),
- ve(HTMLIFrameElement.prototype, Oi, S)
- var ne = V.HTMLMarqueeElement
- ne && ve(ne.prototype, fs, S)
- var ye = V.Worker
- ye && ve(ye.prototype, oe, S)
- }
- var ae = y.XMLHttpRequest
- ae && ve(ae.prototype, _, S)
- var Ae = y.XMLHttpRequestEventTarget
- Ae && ve(Ae && Ae.prototype, _, S),
- "undefined" != typeof IDBIndex &&
- (ve(IDBIndex.prototype, w, S),
- ve(IDBRequest.prototype, w, S),
- ve(IDBOpenDBRequest.prototype, w, S),
- ve(IDBDatabase.prototype, w, S),
- ve(IDBTransaction.prototype, w, S),
- ve(IDBCursor.prototype, w, S)),
- E && ve(WebSocket.prototype, B, S)
- }
- }
- function gi(m, y, E) {
- var S = E.configurable
- return Et(m, y, (E = Sn(m, y, E)), S)
- }
- function ri(m, y) {
- return m && m[wn] && m[wn][y]
- }
- function Sn(m, y, E) {
- return (
- Object.isFrozen(E) || (E.configurable = !0),
- E.configurable ||
- (!m[wn] &&
- !Object.isFrozen(m) &&
- Ct(m, wn, {
- writable: !0,
- value: {},
- }),
- m[wn] && (m[wn][y] = !0)),
- E
- )
- }
- function Et(m, y, E, S) {
- try {
- return Ct(m, y, E)
- } catch (ne) {
- if (!E.configurable) throw ne
- void 0 === S ? delete E.configurable : (E.configurable = S)
- try {
- return Ct(m, y, E)
- } catch (ye) {
- var V = !1
- if (
- (("createdCallback" === y ||
- "attachedCallback" === y ||
- "detachedCallback" === y ||
- "attributeChangedCallback" === y) &&
- (V = !0),
- !V)
- )
- throw ye
- var q = null
- try {
- q = JSON.stringify(E)
- } catch (ae) {
- q = E.toString()
- }
- console.log(
- "Attempting to configure '" +
- y +
- "' with descriptor '" +
- q +
- "' on object '" +
- m +
- "' and got error, giving up: " +
- ye
- )
- }
- }
- }
- function lo(m, y) {
- var E = m.getGlobalObjects()
- if (
- (!E.isNode || E.isMix) &&
- !(function id(m, y) {
- var E = m.getGlobalObjects()
- if (
- (E.isBrowser || E.isMix) &&
- !m.ObjectGetOwnPropertyDescriptor(
- HTMLElement.prototype,
- "onclick"
- ) &&
- "undefined" != typeof Element
- ) {
- var q = m.ObjectGetOwnPropertyDescriptor(
- Element.prototype,
- "onclick"
- )
- if (q && !q.configurable) return !1
- if (q) {
- m.ObjectDefineProperty(Element.prototype, "onclick", {
- enumerable: !0,
- configurable: !0,
- get: function () {
- return !0
- },
- })
- var ye = !!document.createElement("div").onclick
- return (
- m.ObjectDefineProperty(Element.prototype, "onclick", q), ye
- )
- }
- }
- var ae = y.XMLHttpRequest
- if (!ae) return !1
- var Ae = "onreadystatechange",
- W = ae.prototype,
- Ee = m.ObjectGetOwnPropertyDescriptor(W, Ae)
- if (Ee)
- return (
- m.ObjectDefineProperty(W, Ae, {
- enumerable: !0,
- configurable: !0,
- get: function () {
- return !0
- },
- }),
- (ye = !!(Oe = new ae()).onreadystatechange),
- m.ObjectDefineProperty(W, Ae, Ee || {}),
- ye
- )
- var Se = m.symbol("fake")
- m.ObjectDefineProperty(W, Ae, {
- enumerable: !0,
- configurable: !0,
- get: function () {
- return this[Se]
- },
- set: function (ce) {
- this[Se] = ce
- },
- })
- var Oe,
- me = function () {}
- return (
- ((Oe = new ae()).onreadystatechange = me),
- (ye = Oe[Se] === me),
- (Oe.onreadystatechange = null),
- ye
- )
- })(m, y)
- ) {
- var q = "undefined" != typeof WebSocket
- ;(function qu(m) {
- for (
- var y = m.getGlobalObjects().eventNames,
- E = m.symbol("unbound"),
- S = function (ne) {
- var ye = y[ne],
- ae = "on" + ye
- self.addEventListener(
- ye,
- function (Ae) {
- var Ee,
- Oe,
- W = Ae.target
- for (
- Oe = W
- ? W.constructor.name + "." + ae
- : "unknown." + ae;
- W;
-
- )
- W[ae] &&
- !W[ae][E] &&
- (((Ee = m.wrapWithCurrentZone(W[ae], Oe))[E] =
- W[ae]),
- (W[ae] = Ee)),
- (W = W.parentElement)
- },
- !0
- )
- },
- V = 0;
- V < y.length;
- V++
- )
- S(V)
- })(m),
- m.patchClass("XMLHttpRequest"),
- q &&
- (function Pi(m, y) {
- var E = m.getGlobalObjects(),
- S = E.ADD_EVENT_LISTENER_STR,
- V = E.REMOVE_EVENT_LISTENER_STR,
- q = y.WebSocket
- y.EventTarget || m.patchEventTarget(y, [q.prototype]),
- (y.WebSocket = function (ae, Ae) {
- var Ee,
- Oe,
- W = arguments.length > 1 ? new q(ae, Ae) : new q(ae),
- Se = m.ObjectGetOwnPropertyDescriptor(W, "onmessage")
- return (
- Se && !1 === Se.configurable
- ? ((Ee = m.ObjectCreate(W)),
- (Oe = W),
- [S, V, "send", "close"].forEach(function (me) {
- Ee[me] = function () {
- var ot = m.ArraySlice.call(arguments)
- if (me === S || me === V) {
- var Lt = ot.length > 0 ? ot[0] : void 0
- if (Lt) {
- var xe = Zone.__symbol__("ON_PROPERTY" + Lt)
- W[xe] = Ee[xe]
- }
- }
- return W[me].apply(W, ot)
- }
- }))
- : (Ee = W),
- m.patchOnProperties(
- Ee,
- ["close", "error", "message", "open"],
- Oe
- ),
- Ee
- )
- })
- var ne = y.WebSocket
- for (var ye in q) ne[ye] = q[ye]
- })(m, y),
- (Zone[m.symbol("patchEvents")] = !0)
- }
- }
- Zone.__load_patch("util", function (m, y, E) {
- ;(E.patchOnProperties = vn),
- (E.patchMethod = Rn),
- (E.bindArguments = It),
- (E.patchMacroTask = Nn)
- var S = y.__symbol__("BLACK_LISTED_EVENTS"),
- V = y.__symbol__("UNPATCHED_EVENTS")
- m[V] && (m[S] = m[V]),
- m[S] && (y[S] = y[V] = m[S]),
- (E.patchEventPrototype = ti),
- (E.patchEventTarget = Yi),
- (E.isIEOrEdge = Mn),
- (E.ObjectDefineProperty = f),
- (E.ObjectGetOwnPropertyDescriptor = M),
- (E.ObjectCreate = j),
- (E.ArraySlice = b),
- (E.patchClass = Rr),
- (E.wrapWithCurrentZone = le),
- (E.filterProperties = Pe),
- (E.attachOriginToPatched = bn),
- (E._redefineProperty = Object.defineProperty),
- (E.patchCallbacks = oo),
- (E.getGlobalObjects = function () {
- return {
- globalSources: Mi,
- zoneSymbolEventNames: Kt,
- eventNames: X,
- isBrowser: Nt,
- isMix: xt,
- isNode: kn,
- TRUE_STR: A,
- FALSE_STR: Fe,
- ZONE_SYMBOL_PREFIX: Ce,
- ADD_EVENT_LISTENER_STR: Z,
- REMOVE_EVENT_LISTENER_STR: J,
- }
- })
- }),
- (m =
- "undefined" != typeof window
- ? window
- : "undefined" != typeof global
- ? global
- : "undefined" != typeof self
- ? self
- : {}),
- (y = m.__Zone_symbol_prefix || "__zone_symbol__"),
- (m[
- (function E(S) {
- return y + S
- })("legacyPatch")
- ] = function () {
- var S = m.Zone
- S.__load_patch("defineProperty", function (V, q, ne) {
- ;(ne._redefineProperty = gi),
- (function Qt() {
- ;(st = Zone.__symbol__),
- (Ct = Object[st("defineProperty")] = Object.defineProperty),
- (Ft = Object[st("getOwnPropertyDescriptor")] =
- Object.getOwnPropertyDescriptor),
- (Jn = Object.create),
- (wn = st("unconfigurables")),
- (Object.defineProperty = function (m, y, E) {
- if (ri(m, y))
- throw new TypeError(
- "Cannot assign to read only property '" +
- y +
- "' of " +
- m
- )
- var S = E.configurable
- return (
- "prototype" !== y && (E = Sn(m, y, E)), Et(m, y, E, S)
- )
- }),
- (Object.defineProperties = function (m, y) {
- return (
- Object.keys(y).forEach(function (E) {
- Object.defineProperty(m, E, y[E])
- }),
- m
- )
- }),
- (Object.create = function (m, y) {
- return (
- "object" == typeof y &&
- !Object.isFrozen(y) &&
- Object.keys(y).forEach(function (E) {
- y[E] = Sn(m, E, y[E])
- }),
- Jn(m, y)
- )
- }),
- (Object.getOwnPropertyDescriptor = function (m, y) {
- var E = Ft(m, y)
- return E && ri(m, y) && (E.configurable = !1), E
- })
- })()
- }),
- S.__load_patch("registerElement", function (V, q, ne) {
- !(function ds(m, y) {
- var E = y.getGlobalObjects()
- ;(E.isBrowser || E.isMix) &&
- "registerElement" in m.document &&
- y.patchCallbacks(
- y,
- document,
- "Document",
- "registerElement",
- [
- "createdCallback",
- "attachedCallback",
- "detachedCallback",
- "attributeChangedCallback",
- ]
- )
- })(V, ne)
- }),
- S.__load_patch("EventTargetLegacy", function (V, q, ne) {
- ;(function un(m, y) {
- var E = y.getGlobalObjects(),
- S = E.eventNames,
- V = E.globalSources,
- q = E.zoneSymbolEventNames,
- ne = E.TRUE_STR,
- ye = E.FALSE_STR,
- ae = E.ZONE_SYMBOL_PREFIX,
- W =
- "ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(
- ","
- ),
- Ee = "EventTarget",
- Oe = [],
- Se = m.wtf,
- me =
- "Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(
- ","
- )
- Se
- ? (Oe = me
- .map(function (St) {
- return "HTML" + St + "Element"
- })
- .concat(W))
- : m[Ee]
- ? Oe.push(Ee)
- : (Oe = W)
- for (
- var ot = m.__Zone_disable_IE_check || !1,
- Lt = m.__Zone_enable_cross_context_check || !1,
- xe = y.isIEOrEdge(),
- _e = "[object FunctionWrapper]",
- Le =
- "function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",
- At = {
- MSPointerCancel: "pointercancel",
- MSPointerDown: "pointerdown",
- MSPointerEnter: "pointerenter",
- MSPointerHover: "pointerhover",
- MSPointerLeave: "pointerleave",
- MSPointerMove: "pointermove",
- MSPointerOut: "pointerout",
- MSPointerOver: "pointerover",
- MSPointerUp: "pointerup",
- },
- rt = 0;
- rt < S.length;
- rt++
- ) {
- var Tn = ae + ((Ne = S[rt]) + ye),
- Xt = ae + (Ne + ne)
- ;(q[Ne] = {}), (q[Ne][ye] = Tn), (q[Ne][ne] = Xt)
- }
- for (rt = 0; rt < me.length; rt++)
- for (
- var Ye = me[rt], it = (V[Ye] = {}), ze = 0;
- ze < S.length;
- ze++
- ) {
- var Ne
- it[(Ne = S[ze])] = Ye + ".addEventListener:" + Ne
- }
- var zn = []
- for (rt = 0; rt < Oe.length; rt++) {
- var xn = m[Oe[rt]]
- zn.push(xn && xn.prototype)
- }
- return (
- y.patchEventTarget(m, zn, {
- vh: function (se, I, P, R) {
- if (!ot && xe)
- if (Lt)
- try {
- if ((fe = I.toString()) === _e || fe == Le)
- return se.apply(P, R), !1
- } catch (Tt) {
- return se.apply(P, R), !1
- }
- else {
- var fe
- if ((fe = I.toString()) === _e || fe == Le)
- return se.apply(P, R), !1
- }
- else if (Lt)
- try {
- I.toString()
- } catch (Tt) {
- return se.apply(P, R), !1
- }
- return !0
- },
- transferEventName: function (se) {
- return At[se] || se
- },
- }),
- (Zone[y.symbol("patchEventTarget")] = !!m[Ee]),
- !0
- )
- })(V, ne),
- lo(ne, V)
- })
- })
- var ta = ue("zoneTask")
- function ii(m, y, E, S) {
- var V = null,
- q = null
- E += S
- var ne = {}
- function ye(Ae) {
- var W = Ae.data
- return (
- (W.args[0] = function () {
- return Ae.invoke.apply(this, arguments)
- }),
- (W.handleId = V.apply(m, W.args)),
- Ae
- )
- }
- function ae(Ae) {
- return q.call(m, Ae.data.handleId)
- }
- ;(V = Rn(m, (y += S), function (Ae) {
- return function (W, Ee) {
- if ("function" == typeof Ee[0]) {
- var Oe = {
- isPeriodic: "Interval" === S,
- delay:
- "Timeout" === S || "Interval" === S ? Ee[1] || 0 : void 0,
- args: Ee,
- },
- Se = Ee[0]
- Ee[0] = function () {
- try {
- return Se.apply(this, arguments)
- } finally {
- Oe.isPeriodic ||
- ("number" == typeof Oe.handleId
- ? delete ne[Oe.handleId]
- : Oe.handleId && (Oe.handleId[ta] = null))
- }
- }
- var me = we(y, Ee[0], Oe, ye, ae)
- if (!me) return me
- var ot = me.data.handleId
- return (
- "number" == typeof ot ? (ne[ot] = me) : ot && (ot[ta] = me),
- ot &&
- ot.ref &&
- ot.unref &&
- "function" == typeof ot.ref &&
- "function" == typeof ot.unref &&
- ((me.ref = ot.ref.bind(ot)),
- (me.unref = ot.unref.bind(ot))),
- "number" == typeof ot || ot ? ot : me
- )
- }
- return Ae.apply(m, Ee)
- }
- })),
- (q = Rn(m, E, function (Ae) {
- return function (W, Ee) {
- var Se,
- Oe = Ee[0]
- "number" == typeof Oe
- ? (Se = ne[Oe])
- : (Se = Oe && Oe[ta]) || (Se = Oe),
- Se && "string" == typeof Se.type
- ? "notScheduled" !== Se.state &&
- ((Se.cancelFn && Se.data.isPeriodic) ||
- 0 === Se.runCount) &&
- ("number" == typeof Oe
- ? delete ne[Oe]
- : Oe && (Oe[ta] = null),
- Se.zone.cancelTask(Se))
- : Ae.apply(m, Ee)
- }
- }))
- }
- Zone.__load_patch("legacy", function (m) {
- var y = m[Zone.__symbol__("legacyPatch")]
- y && y()
- }),
- Zone.__load_patch("queueMicrotask", function (m, y, E) {
- E.patchMethod(m, "queueMicrotask", function (S) {
- return function (V, q) {
- y.current.scheduleMicroTask("queueMicrotask", q[0])
- }
- })
- }),
- Zone.__load_patch("timers", function (m) {
- var y = "set",
- E = "clear"
- ii(m, y, E, "Timeout"),
- ii(m, y, E, "Interval"),
- ii(m, y, E, "Immediate")
- }),
- Zone.__load_patch("requestAnimationFrame", function (m) {
- ii(m, "request", "cancel", "AnimationFrame"),
- ii(m, "mozRequest", "mozCancel", "AnimationFrame"),
- ii(m, "webkitRequest", "webkitCancel", "AnimationFrame")
- }),
- Zone.__load_patch("blocking", function (m, y) {
- for (
- var E = ["alert", "prompt", "confirm"], S = 0;
- S < E.length;
- S++
- )
- Rn(m, E[S], function (q, ne, ye) {
- return function (ae, Ae) {
- return y.current.run(q, m, Ae, ye)
- }
- })
- }),
- Zone.__load_patch("EventTarget", function (m, y, E) {
- ;(function Yu(m, y) {
- y.patchEventPrototype(m, y)
- })(m, E),
- (function Ku(m, y) {
- if (!Zone[y.symbol("patchEventTarget")]) {
- for (
- var E = y.getGlobalObjects(),
- S = E.eventNames,
- V = E.zoneSymbolEventNames,
- q = E.TRUE_STR,
- ne = E.FALSE_STR,
- ye = E.ZONE_SYMBOL_PREFIX,
- ae = 0;
- ae < S.length;
- ae++
- ) {
- var Ae = S[ae],
- Oe = ye + (Ae + ne),
- Se = ye + (Ae + q)
- ;(V[Ae] = {}), (V[Ae][ne] = Oe), (V[Ae][q] = Se)
- }
- var me = m.EventTarget
- if (me && me.prototype)
- return y.patchEventTarget(m, [me && me.prototype]), !0
- }
- })(m, E)
- var S = m.XMLHttpRequestEventTarget
- S && S.prototype && E.patchEventTarget(m, [S.prototype])
- }),
- Zone.__load_patch("MutationObserver", function (m, y, E) {
- Rr("MutationObserver"), Rr("WebKitMutationObserver")
- }),
- Zone.__load_patch("IntersectionObserver", function (m, y, E) {
- Rr("IntersectionObserver")
- }),
- Zone.__load_patch("FileReader", function (m, y, E) {
- Rr("FileReader")
- }),
- Zone.__load_patch("on_property", function (m, y, E) {
- _t(E, m)
- }),
- Zone.__load_patch("customElements", function (m, y, E) {
- !(function $u(m, y) {
- var E = y.getGlobalObjects()
- ;(E.isBrowser || E.isMix) &&
- m.customElements &&
- "customElements" in m &&
- y.patchCallbacks(
- y,
- m.customElements,
- "customElements",
- "define",
- [
- "connectedCallback",
- "disconnectedCallback",
- "adoptedCallback",
- "attributeChangedCallback",
- ]
- )
- })(m, E)
- }),
- Zone.__load_patch("XHR", function (m, y) {
- !(function ae(Ae) {
- var W = Ae.XMLHttpRequest
- if (W) {
- var Ee = W.prototype,
- Se = Ee[he],
- me = Ee[be]
- if (!Se) {
- var ot = Ae.XMLHttpRequestEventTarget
- if (ot) {
- var Lt = ot.prototype
- ;(Se = Lt[he]), (me = Lt[be])
- }
- }
- var xe = "readystatechange",
- ce = "scheduled",
- rt = Rn(Ee, "open", function () {
- return function (Ye, it) {
- return (
- (Ye[S] = 0 == it[2]), (Ye[ne] = it[1]), rt.apply(Ye, it)
- )
- }
- }),
- zt = ue("fetchTaskAborting"),
- He = ue("fetchTaskScheduling"),
- Tn = Rn(Ee, "send", function () {
- return function (Ye, it) {
- if (!0 === y.current[He] || Ye[S]) return Tn.apply(Ye, it)
- var ze = {
- target: Ye,
- url: Ye[ne],
- isPeriodic: !1,
- args: it,
- aborted: !1,
- },
- vt = we("XMLHttpRequest.send", Le, ze, _e, At)
- Ye &&
- !0 === Ye[ye] &&
- !ze.aborted &&
- vt.state === ce &&
- vt.invoke()
- }
- }),
- Xt = Rn(Ee, "abort", function () {
- return function (Ye, it) {
- var ze = (function Oe(Ye) {
- return Ye[E]
- })(Ye)
- if (ze && "string" == typeof ze.type) {
- if (null == ze.cancelFn || (ze.data && ze.data.aborted))
- return
- ze.zone.cancelTask(ze)
- } else if (!0 === y.current[zt]) return Xt.apply(Ye, it)
- }
- })
- }
- function _e(Ye) {
- var it = Ye.data,
- ze = it.target
- ;(ze[q] = !1), (ze[ye] = !1)
- var vt = ze[V]
- Se || ((Se = ze[he]), (me = ze[be])), vt && me.call(ze, xe, vt)
- var zn = (ze[V] = function () {
- if (ze.readyState === ze.DONE)
- if (!it.aborted && ze[q] && Ye.state === ce) {
- var St = ze[y.__symbol__("loadfalse")]
- if (0 !== ze.status && St && St.length > 0) {
- var se = Ye.invoke
- ;(Ye.invoke = function () {
- for (
- var I = ze[y.__symbol__("loadfalse")], P = 0;
- P < I.length;
- P++
- )
- I[P] === Ye && I.splice(P, 1)
- !it.aborted && Ye.state === ce && se.call(Ye)
- }),
- St.push(Ye)
- } else Ye.invoke()
- } else !it.aborted && !1 === ze[q] && (ze[ye] = !0)
- })
- return (
- Se.call(ze, xe, zn),
- ze[E] || (ze[E] = Ye),
- Tn.apply(ze, it.args),
- (ze[q] = !0),
- Ye
- )
- }
- function Le() {}
- function At(Ye) {
- var it = Ye.data
- return (it.aborted = !0), Xt.apply(it.target, it.args)
- }
- })(m)
- var E = ue("xhrTask"),
- S = ue("xhrSync"),
- V = ue("xhrListener"),
- q = ue("xhrScheduled"),
- ne = ue("xhrURL"),
- ye = ue("xhrErrorBeforeScheduled")
- }),
- Zone.__load_patch("geolocation", function (m) {
- m.navigator &&
- m.navigator.geolocation &&
- (function En(m, y) {
- for (
- var E = m.constructor.name,
- S = function (ne) {
- var W,
- Ee,
- ye = y[ne],
- ae = m[ye]
- if (ae) {
- if (!pt(M(m, ye))) return "continue"
- m[ye] =
- ((Ee = function () {
- return W.apply(this, It(arguments, E + "." + ye))
- }),
- bn(Ee, (W = ae)),
- Ee)
- }
- },
- V = 0;
- V < y.length;
- V++
- )
- S(V)
- })(m.navigator.geolocation, [
- "getCurrentPosition",
- "watchPosition",
- ])
- }),
- Zone.__load_patch("PromiseRejectionEvent", function (m, y) {
- function E(S) {
- return function (V) {
- Ji(m, S).forEach(function (ne) {
- var ye = m.PromiseRejectionEvent
- if (ye) {
- var ae = new ye(S, {
- promise: V.promise,
- reason: V.rejection,
- })
- ne.invoke(ae)
- }
- })
- }
- }
- m.PromiseRejectionEvent &&
- ((y[ue("unhandledPromiseRejectionHandler")] =
- E("unhandledrejection")),
- (y[ue("rejectionHandledHandler")] = E("rejectionhandled")))
- })
- }),
- void 0 !== (k = D.call(U, p, U, O)) && (O.exports = k)
- },
- 2699: function (O, U, p) {
- "use strict"
- function D(e) {
- return (D = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function (t) {
- return t.__proto__ || Object.getPrototypeOf(t)
- })(e)
- }
- function k(e, n) {
- for (
- ;
- !Object.prototype.hasOwnProperty.call(e, n) && null !== (e = D(e));
-
- );
- return e
- }
- function T() {
- return (
- (T =
- "undefined" != typeof Reflect && Reflect.get
- ? Reflect.get
- : function (n, t, r) {
- var i = k(n, t)
- if (i) {
- var a = Object.getOwnPropertyDescriptor(i, t)
- return a.get
- ? a.get.call(arguments.length < 3 ? n : r)
- : a.value
- }
- }),
- T.apply(this, arguments)
- )
- }
- function M(e, n) {
- for (var t = 0; t < n.length; t++) {
- var r = n[t]
- ;(r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- "value" in r && (r.writable = !0),
- Object.defineProperty(e, r.key, r)
- }
- }
- function f(e, n, t) {
- return n && M(e.prototype, n), t && M(e, t), e
- }
- function h(e, n) {
- if (!(e instanceof n))
- throw new TypeError("Cannot call a class as a function")
- }
- function j(e, n) {
- return (j =
- Object.setPrototypeOf ||
- function (r, i) {
- return (r.__proto__ = i), r
- })(e, n)
- }
- function b(e, n) {
- if ("function" != typeof n && null !== n)
- throw new TypeError(
- "Super expression must either be null or a function"
- )
- ;(e.prototype = Object.create(n && n.prototype, {
- constructor: {
- value: e,
- writable: !0,
- configurable: !0,
- },
- })),
- n && j(e, n)
- }
- function Z() {
- if (
- "undefined" == typeof Reflect ||
- !Reflect.construct ||
- Reflect.construct.sham
- )
- return !1
- if ("function" == typeof Proxy) return !0
- try {
- return (
- Boolean.prototype.valueOf.call(
- Reflect.construct(Boolean, [], function () {})
- ),
- !0
- )
- } catch (e) {
- return !1
- }
- }
- function J(e) {
- return (J =
- "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
- ? function (t) {
- return typeof t
- }
- : function (t) {
- return t &&
- "function" == typeof Symbol &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? "symbol"
- : typeof t
- })(e)
- }
- function he(e) {
- if (void 0 === e)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- )
- return e
- }
- function be(e, n) {
- if (n && ("object" === J(n) || "function" == typeof n)) return n
- if (void 0 !== n)
- throw new TypeError(
- "Derived constructors may only return object or undefined"
- )
- return he(e)
- }
- function A(e) {
- var n = Z()
- return function () {
- var i,
- r = D(e)
- if (n) {
- var a = D(this).constructor
- i = Reflect.construct(r, arguments, a)
- } else i = r.apply(this, arguments)
- return be(this, i)
- }
- }
- function Fe(e, n) {
- ;(null == n || n > e.length) && (n = e.length)
- for (var t = 0, r = new Array(n); t < n; t++) r[t] = e[t]
- return r
- }
- function Ce(e, n) {
- if (e) {
- if ("string" == typeof e) return Fe(e, n)
- var t = Object.prototype.toString.call(e).slice(8, -1)
- if (
- ("Object" === t && e.constructor && (t = e.constructor.name),
- "Map" === t || "Set" === t)
- )
- return Array.from(e)
- if (
- "Arguments" === t ||
- /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)
- )
- return Fe(e, n)
- }
- }
- function le(e, n) {
- var t =
- ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
- e["@@iterator"]
- if (!t) {
- if (
- Array.isArray(e) ||
- (t = Ce(e)) ||
- (n && e && "number" == typeof e.length)
- ) {
- t && (e = t)
- var r = 0,
- i = function () {}
- return {
- s: i,
- n: function () {
- return r >= e.length
- ? {
- done: !0,
- }
- : {
- done: !1,
- value: e[r++],
- }
- },
- e: function (l) {
- throw l
- },
- f: i,
- }
- }
- throw new TypeError(
- "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
- )
- }
- var s,
- a = !0,
- o = !1
- return {
- s: function () {
- t = t.call(e)
- },
- n: function () {
- var l = t.next()
- return (a = l.done), l
- },
- e: function (l) {
- ;(o = !0), (s = l)
- },
- f: function () {
- try {
- !a && null != t.return && t.return()
- } finally {
- if (o) throw s
- }
- },
- }
- }
- function ie(e, n) {
- return (
- (function we(e) {
- if (Array.isArray(e)) return e
- })(e) ||
- (function ue(e, n) {
- var t =
- null == e
- ? null
- : ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
- e["@@iterator"]
- if (null != t) {
- var o,
- s,
- r = [],
- i = !0,
- a = !1
- try {
- for (
- t = t.call(e);
- !(i = (o = t.next()).done) &&
- (r.push(o.value), !n || r.length !== n);
- i = !0
- );
- } catch (u) {
- ;(a = !0), (s = u)
- } finally {
- try {
- !i && null != t.return && t.return()
- } finally {
- if (a) throw s
- }
- }
- return r
- }
- })(e, n) ||
- Ce(e, n) ||
- (function Me() {
- throw new TypeError(
- "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
- )
- })()
- )
- }
- function pt(e) {
- return (
- (function It(e) {
- if (Array.isArray(e)) return Fe(e)
- })(e) ||
- (function Ie(e) {
- if (
- ("undefined" != typeof Symbol && null != e[Symbol.iterator]) ||
- null != e["@@iterator"]
- )
- return Array.from(e)
- })(e) ||
- Ce(e) ||
- (function En() {
- throw new TypeError(
- "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
- )
- })()
- )
- }
- function Ut(e, n, t) {
- return (Ut = Z()
- ? Reflect.construct
- : function (i, a, o) {
- var s = [null]
- s.push.apply(s, a)
- var l = new (Function.bind.apply(i, s))()
- return o && j(l, o.prototype), l
- }).apply(null, arguments)
- }
- function Nt(e) {
- var n = "function" == typeof Map ? new Map() : void 0
- return (
- (Nt = function (r) {
- if (
- null === r ||
- !(function kn(e) {
- return -1 !== Function.toString.call(e).indexOf("[native code]")
- })(r)
- )
- return r
- if ("function" != typeof r)
- throw new TypeError(
- "Super expression must either be null or a function"
- )
- if (void 0 !== n) {
- if (n.has(r)) return n.get(r)
- n.set(r, i)
- }
- function i() {
- return Ut(r, arguments, D(this).constructor)
- }
- return (
- (i.prototype = Object.create(r.prototype, {
- constructor: {
- value: i,
- enumerable: !1,
- writable: !0,
- configurable: !0,
- },
- })),
- j(i, r)
- )
- }),
- Nt(e)
- )
- }
- var xt =
- Array.isArray ||
- function (e) {
- return e && "number" == typeof e.length
- }
- function wt(e) {
- return null !== e && "object" == typeof e
- }
- function Gt(e) {
- return "function" == typeof e
- }
- var e,
- Pt = (function () {
- function e(n) {
- return (
- Error.call(this),
- (this.message = n
- ? ""
- .concat(
- n.length,
- " errors occurred during unsubscription:\n"
- )
- .concat(
- n
- .map(function (t, r) {
- return "".concat(r + 1, ") ").concat(t.toString())
- })
- .join("\n ")
- )
- : ""),
- (this.name = "UnsubscriptionError"),
- (this.errors = n),
- this
- )
- }
- return (e.prototype = Object.create(Error.prototype)), e
- })(),
- vn = Pt,
- bt = (function () {
- function e(n) {
- h(this, e),
- (this.closed = !1),
- (this._parentOrParents = null),
- (this._subscriptions = null),
- n && ((this._ctorUnsubscribe = !0), (this._unsubscribe = n))
- }
- return (
- f(e, [
- {
- key: "unsubscribe",
- value: function () {
- var t
- if (!this.closed) {
- var r = this._parentOrParents,
- i = this._ctorUnsubscribe,
- a = this._unsubscribe,
- o = this._subscriptions
- if (
- ((this.closed = !0),
- (this._parentOrParents = null),
- (this._subscriptions = null),
- r instanceof e)
- )
- r.remove(this)
- else if (null !== r)
- for (var s = 0; s < r.length; ++s) r[s].remove(this)
- if (Gt(a)) {
- i && (this._unsubscribe = void 0)
- try {
- a.call(this)
- } catch (v) {
- t = v instanceof vn ? Rr(v.errors) : [v]
- }
- }
- if (xt(o))
- for (var l = -1, c = o.length; ++l < c; ) {
- var d = o[l]
- if (wt(d))
- try {
- d.unsubscribe()
- } catch (v) {
- ;(t = t || []),
- v instanceof vn
- ? (t = t.concat(Rr(v.errors)))
- : t.push(v)
- }
- }
- if (t) throw new vn(t)
- }
- },
- },
- {
- key: "add",
- value: function (t) {
- var r = t
- if (!t) return e.EMPTY
- switch (typeof t) {
- case "function":
- r = new e(t)
- case "object":
- if (
- r === this ||
- r.closed ||
- "function" != typeof r.unsubscribe
- )
- return r
- if (this.closed) return r.unsubscribe(), r
- if (!(r instanceof e)) {
- var i = r
- ;(r = new e())._subscriptions = [i]
- }
- break
- default:
- throw new Error(
- "unrecognized teardown " + t + " added to Subscription."
- )
- }
- var o = r._parentOrParents
- if (null === o) r._parentOrParents = this
- else if (o instanceof e) {
- if (o === this) return r
- r._parentOrParents = [o, this]
- } else {
- if (-1 !== o.indexOf(this)) return r
- o.push(this)
- }
- var s = this._subscriptions
- return null === s ? (this._subscriptions = [r]) : s.push(r), r
- },
- },
- {
- key: "remove",
- value: function (t) {
- var r = this._subscriptions
- if (r) {
- var i = r.indexOf(t)
- ;-1 !== i && r.splice(i, 1)
- }
- },
- },
- ]),
- e
- )
- })()
- function Rr(e) {
- return e.reduce(function (n, t) {
- return n.concat(t instanceof vn ? t.errors : t)
- }, [])
- }
- bt.EMPTY = (((e = new bt()).closed = !0), e)
- var Rn = !1,
- Nn = {
- Promise: void 0,
- set useDeprecatedSynchronousErrorHandling(e) {
- if (e) {
- var n = new Error()
- console.warn(
- "DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n" +
- n.stack
- )
- } else
- Rn &&
- console.log(
- "RxJS: Back to a better error behavior. Thank you. <3"
- )
- Rn = e
- },
- get useDeprecatedSynchronousErrorHandling() {
- return Rn
- },
- }
- function bn(e) {
- setTimeout(function () {
- throw e
- }, 0)
- }
- var ei = {
- closed: !0,
- next: function (n) {},
- error: function (n) {
- if (Nn.useDeprecatedSynchronousErrorHandling) throw n
- bn(n)
- },
- complete: function () {},
- },
- Nr =
- "function" == typeof Symbol
- ? Symbol("rxSubscriber")
- : "@@rxSubscriber_" + Math.random(),
- Mn = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- switch (
- (h(this, t),
- ((o = n.call(this)).syncErrorValue = null),
- (o.syncErrorThrown = !1),
- (o.syncErrorThrowable = !1),
- (o.isStopped = !1),
- arguments.length)
- ) {
- case 0:
- o.destination = ei
- break
- case 1:
- if (!r) {
- o.destination = ei
- break
- }
- if ("object" == typeof r) {
- r instanceof t
- ? ((o.syncErrorThrowable = r.syncErrorThrowable),
- (o.destination = r),
- r.add(he(o)))
- : ((o.syncErrorThrowable = !0),
- (o.destination = new _r(he(o), r)))
- break
- }
- default:
- ;(o.syncErrorThrowable = !0),
- (o.destination = new _r(he(o), r, i, a))
- }
- return o
- }
- return (
- f(
- t,
- [
- {
- key: Nr,
- value: function () {
- return this
- },
- },
- {
- key: "next",
- value: function (i) {
- this.isStopped || this._next(i)
- },
- },
- {
- key: "error",
- value: function (i) {
- this.isStopped || ((this.isStopped = !0), this._error(i))
- },
- },
- {
- key: "complete",
- value: function () {
- this.isStopped || ((this.isStopped = !0), this._complete())
- },
- },
- {
- key: "unsubscribe",
- value: function () {
- this.closed ||
- ((this.isStopped = !0),
- T(D(t.prototype), "unsubscribe", this).call(this))
- },
- },
- {
- key: "_next",
- value: function (i) {
- this.destination.next(i)
- },
- },
- {
- key: "_error",
- value: function (i) {
- this.destination.error(i), this.unsubscribe()
- },
- },
- {
- key: "_complete",
- value: function () {
- this.destination.complete(), this.unsubscribe()
- },
- },
- {
- key: "_unsubscribeAndRecycle",
- value: function () {
- var i = this._parentOrParents
- return (
- (this._parentOrParents = null),
- this.unsubscribe(),
- (this.closed = !1),
- (this.isStopped = !1),
- (this._parentOrParents = i),
- this
- )
- },
- },
- ],
- [
- {
- key: "create",
- value: function (i, a, o) {
- var s = new t(i, a, o)
- return (s.syncErrorThrowable = !1), s
- },
- },
- ]
- ),
- t
- )
- })(bt),
- _r = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a, o) {
- var s
- h(this, t), ((s = n.call(this))._parentSubscriber = r)
- var u,
- l = he(s)
- return (
- Gt(i)
- ? (u = i)
- : i &&
- ((u = i.next),
- (a = i.error),
- (o = i.complete),
- i !== ei &&
- (Gt((l = Object.create(i)).unsubscribe) &&
- s.add(l.unsubscribe.bind(l)),
- (l.unsubscribe = s.unsubscribe.bind(he(s))))),
- (s._context = l),
- (s._next = u),
- (s._error = a),
- (s._complete = o),
- s
- )
- }
- return (
- f(t, [
- {
- key: "next",
- value: function (i) {
- if (!this.isStopped && this._next) {
- var a = this._parentSubscriber
- Nn.useDeprecatedSynchronousErrorHandling &&
- a.syncErrorThrowable
- ? this.__tryOrSetError(a, this._next, i) &&
- this.unsubscribe()
- : this.__tryOrUnsub(this._next, i)
- }
- },
- },
- {
- key: "error",
- value: function (i) {
- if (!this.isStopped) {
- var a = this._parentSubscriber,
- o = Nn.useDeprecatedSynchronousErrorHandling
- if (this._error)
- o && a.syncErrorThrowable
- ? (this.__tryOrSetError(a, this._error, i),
- this.unsubscribe())
- : (this.__tryOrUnsub(this._error, i),
- this.unsubscribe())
- else if (a.syncErrorThrowable)
- o
- ? ((a.syncErrorValue = i), (a.syncErrorThrown = !0))
- : bn(i),
- this.unsubscribe()
- else {
- if ((this.unsubscribe(), o)) throw i
- bn(i)
- }
- }
- },
- },
- {
- key: "complete",
- value: function () {
- var i = this
- if (!this.isStopped) {
- var a = this._parentSubscriber
- if (this._complete) {
- var o = function () {
- return i._complete.call(i._context)
- }
- Nn.useDeprecatedSynchronousErrorHandling &&
- a.syncErrorThrowable
- ? (this.__tryOrSetError(a, o), this.unsubscribe())
- : (this.__tryOrUnsub(o), this.unsubscribe())
- } else this.unsubscribe()
- }
- },
- },
- {
- key: "__tryOrUnsub",
- value: function (i, a) {
- try {
- i.call(this._context, a)
- } catch (o) {
- if (
- (this.unsubscribe(),
- Nn.useDeprecatedSynchronousErrorHandling)
- )
- throw o
- bn(o)
- }
- },
- },
- {
- key: "__tryOrSetError",
- value: function (i, a, o) {
- if (!Nn.useDeprecatedSynchronousErrorHandling)
- throw new Error("bad call")
- try {
- a.call(this._context, o)
- } catch (s) {
- return Nn.useDeprecatedSynchronousErrorHandling
- ? ((i.syncErrorValue = s), (i.syncErrorThrown = !0), !0)
- : (bn(s), !0)
- }
- return !1
- },
- },
- {
- key: "_unsubscribe",
- value: function () {
- var i = this._parentSubscriber
- ;(this._context = null),
- (this._parentSubscriber = null),
- i.unsubscribe()
- },
- },
- ]),
- t
- )
- })(Mn),
- Kt =
- ("function" == typeof Symbol && Symbol.observable) || "@@observable"
- function Mi(e) {
- return e
- }
- function vi(e) {
- return 0 === e.length
- ? Mi
- : 1 === e.length
- ? e[0]
- : function (t) {
- return e.reduce(function (r, i) {
- return i(r)
- }, t)
- }
- }
- var an = (function () {
- var e = (function () {
- function n(t) {
- h(this, n), (this._isScalar = !1), t && (this._subscribe = t)
- }
- return (
- f(n, [
- {
- key: "lift",
- value: function (r) {
- var i = new n()
- return (i.source = this), (i.operator = r), i
- },
- },
- {
- key: "subscribe",
- value: function (r, i, a) {
- var o = this.operator,
- s = (function io(e, n, t) {
- if (e) {
- if (e instanceof Mn) return e
- if (e[Nr]) return e[Nr]()
- }
- return e || n || t ? new Mn(e, n, t) : new Mn(ei)
- })(r, i, a)
- if (
- (s.add(
- o
- ? o.call(s, this.source)
- : this.source ||
- (Nn.useDeprecatedSynchronousErrorHandling &&
- !s.syncErrorThrowable)
- ? this._subscribe(s)
- : this._trySubscribe(s)
- ),
- Nn.useDeprecatedSynchronousErrorHandling &&
- s.syncErrorThrowable &&
- ((s.syncErrorThrowable = !1), s.syncErrorThrown))
- )
- throw s.syncErrorValue
- return s
- },
- },
- {
- key: "_trySubscribe",
- value: function (r) {
- try {
- return this._subscribe(r)
- } catch (i) {
- Nn.useDeprecatedSynchronousErrorHandling &&
- ((r.syncErrorThrown = !0), (r.syncErrorValue = i)),
- (function hi(e) {
- for (; e; ) {
- var r = e.destination
- if (e.closed || e.isStopped) return !1
- e = r && r instanceof Mn ? r : null
- }
- return !0
- })(r)
- ? r.error(i)
- : console.warn(i)
- }
- },
- },
- {
- key: "forEach",
- value: function (r, i) {
- var a = this
- return new (i = Yi(i))(function (o, s) {
- var u
- u = a.subscribe(
- function (l) {
- try {
- r(l)
- } catch (c) {
- s(c), u && u.unsubscribe()
- }
- },
- s,
- o
- )
- })
- },
- },
- {
- key: "_subscribe",
- value: function (r) {
- var i = this.source
- return i && i.subscribe(r)
- },
- },
- {
- key: Kt,
- value: function () {
- return this
- },
- },
- {
- key: "pipe",
- value: function () {
- for (
- var r = arguments.length, i = new Array(r), a = 0;
- a < r;
- a++
- )
- i[a] = arguments[a]
- return 0 === i.length ? this : vi(i)(this)
- },
- },
- {
- key: "toPromise",
- value: function (r) {
- var i = this
- return new (r = Yi(r))(function (a, o) {
- var s
- i.subscribe(
- function (u) {
- return (s = u)
- },
- function (u) {
- return o(u)
- },
- function () {
- return a(s)
- }
- )
- })
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.create = function (n) {
- return new e(n)
- }),
- e
- )
- })()
- function Yi(e) {
- if ((e || (e = Nn.Promise || Promise), !e))
- throw new Error("no Promise impl found")
- return e
- }
- var Ji = (function () {
- function e() {
- return (
- Error.call(this),
- (this.message = "object unsubscribed"),
- (this.name = "ObjectUnsubscribedError"),
- this
- )
- }
- return (e.prototype = Object.create(Error.prototype)), e
- })(),
- ti = Ji,
- oo = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return (
- h(this, t),
- ((a = n.call(this)).subject = r),
- (a.subscriber = i),
- (a.closed = !1),
- a
- )
- }
- return (
- f(t, [
- {
- key: "unsubscribe",
- value: function () {
- if (!this.closed) {
- this.closed = !0
- var i = this.subject,
- a = i.observers
- if (
- ((this.subject = null),
- a && 0 !== a.length && !i.isStopped && !i.closed)
- ) {
- var o = a.indexOf(this.subscriber)
- ;-1 !== o && a.splice(o, 1)
- }
- }
- },
- },
- ]),
- t
- )
- })(bt),
- Qi = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return h(this, t), ((i = n.call(this, r)).destination = r), i
- }
- return f(t)
- })(Mn),
- Ii = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r() {
- var i
- return (
- h(this, r),
- ((i = t.call(this)).observers = []),
- (i.closed = !1),
- (i.isStopped = !1),
- (i.hasError = !1),
- (i.thrownError = null),
- i
- )
- }
- return (
- f(r, [
- {
- key: Nr,
- value: function () {
- return new Qi(this)
- },
- },
- {
- key: "lift",
- value: function (a) {
- var o = new pi(this, this)
- return (o.operator = a), o
- },
- },
- {
- key: "next",
- value: function (a) {
- if (this.closed) throw new ti()
- if (!this.isStopped)
- for (
- var o = this.observers,
- s = o.length,
- u = o.slice(),
- l = 0;
- l < s;
- l++
- )
- u[l].next(a)
- },
- },
- {
- key: "error",
- value: function (a) {
- if (this.closed) throw new ti()
- ;(this.hasError = !0),
- (this.thrownError = a),
- (this.isStopped = !0)
- for (
- var o = this.observers,
- s = o.length,
- u = o.slice(),
- l = 0;
- l < s;
- l++
- )
- u[l].error(a)
- this.observers.length = 0
- },
- },
- {
- key: "complete",
- value: function () {
- if (this.closed) throw new ti()
- this.isStopped = !0
- for (
- var a = this.observers,
- o = a.length,
- s = a.slice(),
- u = 0;
- u < o;
- u++
- )
- s[u].complete()
- this.observers.length = 0
- },
- },
- {
- key: "unsubscribe",
- value: function () {
- ;(this.isStopped = !0),
- (this.closed = !0),
- (this.observers = null)
- },
- },
- {
- key: "_trySubscribe",
- value: function (a) {
- if (this.closed) throw new ti()
- return T(D(r.prototype), "_trySubscribe", this).call(
- this,
- a
- )
- },
- },
- {
- key: "_subscribe",
- value: function (a) {
- if (this.closed) throw new ti()
- return this.hasError
- ? (a.error(this.thrownError), bt.EMPTY)
- : this.isStopped
- ? (a.complete(), bt.EMPTY)
- : (this.observers.push(a), new oo(this, a))
- },
- },
- {
- key: "asObservable",
- value: function () {
- var a = new an()
- return (a.source = this), a
- },
- },
- ]),
- r
- )
- })(an)
- return (
- (e.create = function (n, t) {
- return new pi(n, t)
- }),
- e
- )
- })(),
- pi = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return (
- h(this, t),
- ((a = n.call(this)).destination = r),
- (a.source = i),
- a
- )
- }
- return (
- f(t, [
- {
- key: "next",
- value: function (i) {
- var a = this.destination
- a && a.next && a.next(i)
- },
- },
- {
- key: "error",
- value: function (i) {
- var a = this.destination
- a && a.error && this.destination.error(i)
- },
- },
- {
- key: "complete",
- value: function () {
- var i = this.destination
- i && i.complete && this.destination.complete()
- },
- },
- {
- key: "_subscribe",
- value: function (i) {
- return this.source ? this.source.subscribe(i) : bt.EMPTY
- },
- },
- ]),
- t
- )
- })(Ii)
- function Xi(e) {
- return e && "function" == typeof e.schedule
- }
- function or(e, n) {
- return function (r) {
- if ("function" != typeof e)
- throw new TypeError(
- "argument is not a function. Are you looking for `mapTo()`?"
- )
- return r.lift(new Ai(e, n))
- }
- }
- var Ai = (function () {
- function e(n, t) {
- h(this, e), (this.project = n), (this.thisArg = t)
- }
- return (
- f(e, [
- {
- key: "call",
- value: function (t, r) {
- return r.subscribe(new so(t, this.project, this.thisArg))
- },
- },
- ]),
- e
- )
- })(),
- so = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this, r)).project = i),
- (o.count = 0),
- (o.thisArg = a || he(o)),
- o
- )
- }
- return (
- f(t, [
- {
- key: "_next",
- value: function (i) {
- var a
- try {
- a = this.project.call(this.thisArg, i, this.count++)
- } catch (o) {
- return void this.destination.error(o)
- }
- this.destination.next(a)
- },
- },
- ]),
- t
- )
- })(Mn),
- ea = function (n) {
- return function (t) {
- for (var r = 0, i = n.length; r < i && !t.closed; r++) t.next(n[r])
- t.complete()
- }
- },
- ni = (function Oi() {
- return "function" == typeof Symbol && Symbol.iterator
- ? Symbol.iterator
- : "@@iterator"
- })(),
- B = function (n) {
- return n && "number" == typeof n.length && "function" != typeof n
- }
- function oe(e) {
- return (
- !!e && "function" != typeof e.subscribe && "function" == typeof e.then
- )
- }
- var X = function (n) {
- if (n && "function" == typeof n[Kt])
- return (function (n) {
- return function (t) {
- var r = n[Kt]()
- if ("function" != typeof r.subscribe)
- throw new TypeError(
- "Provided object does not correctly implement Symbol.observable"
- )
- return r.subscribe(t)
- }
- })(n)
- if (B(n)) return ea(n)
- if (oe(n))
- return (function (n) {
- return function (t) {
- return (
- n
- .then(
- function (r) {
- t.closed || (t.next(r), t.complete())
- },
- function (r) {
- return t.error(r)
- }
- )
- .then(null, bn),
- t
- )
- }
- })(n)
- if (n && "function" == typeof n[ni])
- return (function (n) {
- return function (t) {
- for (var r = n[ni](); ; ) {
- var i = void 0
- try {
- i = r.next()
- } catch (a) {
- return t.error(a), t
- }
- if (i.done) {
- t.complete()
- break
- }
- if ((t.next(i.value), t.closed)) break
- }
- return (
- "function" == typeof r.return &&
- t.add(function () {
- r.return && r.return()
- }),
- t
- )
- }
- })(n)
- var t = wt(n) ? "an invalid object" : "'".concat(n, "'"),
- r =
- "You provided ".concat(t, " where a stream was expected.") +
- " You can provide an Observable, Promise, Array, or Iterable."
- throw new TypeError(r)
- }
- function _t(e, n) {
- return new an(function (t) {
- var r = new bt(),
- i = 0
- return (
- r.add(
- n.schedule(function () {
- i !== e.length
- ? (t.next(e[i++]), t.closed || r.add(this.schedule()))
- : t.complete()
- })
- ),
- r
- )
- })
- }
- function wn(e, n) {
- return n
- ? (function Jn(e, n) {
- if (null != e) {
- if (
- (function Ct(e) {
- return e && "function" == typeof e[Kt]
- })(e)
- )
- return (function Pe(e, n) {
- return new an(function (t) {
- var r = new bt()
- return (
- r.add(
- n.schedule(function () {
- var i = e[Kt]()
- r.add(
- i.subscribe({
- next: function (o) {
- r.add(
- n.schedule(function () {
- return t.next(o)
- })
- )
- },
- error: function (o) {
- r.add(
- n.schedule(function () {
- return t.error(o)
- })
- )
- },
- complete: function () {
- r.add(
- n.schedule(function () {
- return t.complete()
- })
- )
- },
- })
- )
- })
- ),
- r
- )
- })
- })(e, n)
- if (oe(e))
- return (function ve(e, n) {
- return new an(function (t) {
- var r = new bt()
- return (
- r.add(
- n.schedule(function () {
- return e.then(
- function (i) {
- r.add(
- n.schedule(function () {
- t.next(i),
- r.add(
- n.schedule(function () {
- return t.complete()
- })
- )
- })
- )
- },
- function (i) {
- r.add(
- n.schedule(function () {
- return t.error(i)
- })
- )
- }
- )
- })
- ),
- r
- )
- })
- })(e, n)
- if (B(e)) return _t(e, n)
- if (
- (function Ft(e) {
- return e && "function" == typeof e[ni]
- })(e) ||
- "string" == typeof e
- )
- return (function st(e, n) {
- if (!e) throw new Error("Iterable cannot be null")
- return new an(function (t) {
- var i,
- r = new bt()
- return (
- r.add(function () {
- i && "function" == typeof i.return && i.return()
- }),
- r.add(
- n.schedule(function () {
- ;(i = e[ni]()),
- r.add(
- n.schedule(function () {
- if (!t.closed) {
- var a, o
- try {
- var s = i.next()
- ;(a = s.value), (o = s.done)
- } catch (u) {
- return void t.error(u)
- }
- o
- ? t.complete()
- : (t.next(a), this.schedule())
- }
- })
- )
- })
- ),
- r
- )
- })
- })(e, n)
- }
- throw new TypeError(
- ((null !== e && typeof e) || e) + " is not observable"
- )
- })(e, n)
- : e instanceof an
- ? e
- : new an(X(e))
- }
- var Qt = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return h(this, t), ((i = n.call(this)).parent = r), i
- }
- return (
- f(t, [
- {
- key: "_next",
- value: function (i) {
- this.parent.notifyNext(i)
- },
- },
- {
- key: "_error",
- value: function (i) {
- this.parent.notifyError(i), this.unsubscribe()
- },
- },
- {
- key: "_complete",
- value: function () {
- this.parent.notifyComplete(), this.unsubscribe()
- },
- },
- ]),
- t
- )
- })(Mn),
- ri = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- return h(this, t), n.apply(this, arguments)
- }
- return (
- f(t, [
- {
- key: "notifyNext",
- value: function (i) {
- this.destination.next(i)
- },
- },
- {
- key: "notifyError",
- value: function (i) {
- this.destination.error(i)
- },
- },
- {
- key: "notifyComplete",
- value: function () {
- this.destination.complete()
- },
- },
- ]),
- t
- )
- })(Mn)
- function un(e, n) {
- var t =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : Number.POSITIVE_INFINITY
- return "function" == typeof n
- ? function (r) {
- return r.pipe(
- un(function (i, a) {
- return wn(e(i, a)).pipe(
- or(function (o, s) {
- return n(i, o, a, s)
- })
- )
- }, t)
- )
- }
- : ("number" == typeof n && (t = n),
- function (r) {
- return r.lift(new Pi(e, t))
- })
- }
- var Pi = (function () {
- function e(n) {
- var t =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : Number.POSITIVE_INFINITY
- h(this, e), (this.project = n), (this.concurrent = t)
- }
- return (
- f(e, [
- {
- key: "call",
- value: function (t, r) {
- return r.subscribe(new lo(t, this.project, this.concurrent))
- },
- },
- ]),
- e
- )
- })(),
- lo = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a,
- o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : Number.POSITIVE_INFINITY
- return (
- h(this, t),
- ((a = n.call(this, r)).project = i),
- (a.concurrent = o),
- (a.hasCompleted = !1),
- (a.buffer = []),
- (a.active = 0),
- (a.index = 0),
- a
- )
- }
- return (
- f(t, [
- {
- key: "_next",
- value: function (i) {
- this.active < this.concurrent
- ? this._tryNext(i)
- : this.buffer.push(i)
- },
- },
- {
- key: "_tryNext",
- value: function (i) {
- var a,
- o = this.index++
- try {
- a = this.project(i, o)
- } catch (s) {
- return void this.destination.error(s)
- }
- this.active++, this._innerSub(a)
- },
- },
- {
- key: "_innerSub",
- value: function (i) {
- var a = new Qt(this),
- o = this.destination
- o.add(a)
- var s = (function Et(e, n) {
- if (!n.closed) {
- if (e instanceof an) return e.subscribe(n)
- var t
- try {
- t = X(e)(n)
- } catch (r) {
- n.error(r)
- }
- return t
- }
- })(i, a)
- s !== a && o.add(s)
- },
- },
- {
- key: "_complete",
- value: function () {
- ;(this.hasCompleted = !0),
- 0 === this.active &&
- 0 === this.buffer.length &&
- this.destination.complete(),
- this.unsubscribe()
- },
- },
- {
- key: "notifyNext",
- value: function (i) {
- this.destination.next(i)
- },
- },
- {
- key: "notifyComplete",
- value: function () {
- var i = this.buffer
- this.active--,
- i.length > 0
- ? this._next(i.shift())
- : 0 === this.active &&
- this.hasCompleted &&
- this.destination.complete()
- },
- },
- ]),
- t
- )
- })(ri)
- function qu() {
- var e =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : Number.POSITIVE_INFINITY
- return un(Mi, e)
- }
- function ds(e, n) {
- return n ? _t(e, n) : new an(ea(e))
- }
- function ii() {
- return function (n) {
- return n.lift(new $u(n))
- }
- }
- var $u = (function () {
- function e(n) {
- h(this, e), (this.connectable = n)
- }
- return (
- f(e, [
- {
- key: "call",
- value: function (t, r) {
- var i = this.connectable
- i._refCount++
- var a = new Ku(t, i),
- o = r.subscribe(a)
- return a.closed || (a.connection = i.connect()), o
- },
- },
- ]),
- e
- )
- })(),
- Ku = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return h(this, t), ((a = n.call(this, r)).connectable = i), a
- }
- return (
- f(t, [
- {
- key: "_unsubscribe",
- value: function () {
- var i = this.connectable
- if (i) {
- this.connectable = null
- var a = i._refCount
- if (a <= 0) this.connection = null
- else if (((i._refCount = a - 1), a > 1))
- this.connection = null
- else {
- var o = this.connection,
- s = i._connection
- ;(this.connection = null),
- s && (!o || s === o) && s.unsubscribe()
- }
- } else this.connection = null
- },
- },
- ]),
- t
- )
- })(Mn),
- Yu = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return (
- h(this, t),
- ((a = n.call(this)).source = r),
- (a.subjectFactory = i),
- (a._refCount = 0),
- (a._isComplete = !1),
- a
- )
- }
- return (
- f(t, [
- {
- key: "_subscribe",
- value: function (i) {
- return this.getSubject().subscribe(i)
- },
- },
- {
- key: "getSubject",
- value: function () {
- var i = this._subject
- return (
- (!i || i.isStopped) &&
- (this._subject = this.subjectFactory()),
- this._subject
- )
- },
- },
- {
- key: "connect",
- value: function () {
- var i = this._connection
- return (
- i ||
- ((this._isComplete = !1),
- (i = this._connection = new bt()).add(
- this.source.subscribe(new y(this.getSubject(), this))
- ),
- i.closed && ((this._connection = null), (i = bt.EMPTY))),
- i
- )
- },
- },
- {
- key: "refCount",
- value: function () {
- return ii()(this)
- },
- },
- ]),
- t
- )
- })(an),
- m = (function () {
- var e = Yu.prototype
- return {
- operator: {
- value: null,
- },
- _refCount: {
- value: 0,
- writable: !0,
- },
- _subject: {
- value: null,
- writable: !0,
- },
- _connection: {
- value: null,
- writable: !0,
- },
- _subscribe: {
- value: e._subscribe,
- },
- _isComplete: {
- value: e._isComplete,
- writable: !0,
- },
- getSubject: {
- value: e.getSubject,
- },
- connect: {
- value: e.connect,
- },
- refCount: {
- value: e.refCount,
- },
- }
- })(),
- y = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return h(this, t), ((a = n.call(this, r)).connectable = i), a
- }
- return (
- f(t, [
- {
- key: "_error",
- value: function (i) {
- this._unsubscribe(),
- T(D(t.prototype), "_error", this).call(this, i)
- },
- },
- {
- key: "_complete",
- value: function () {
- ;(this.connectable._isComplete = !0),
- this._unsubscribe(),
- T(D(t.prototype), "_complete", this).call(this)
- },
- },
- {
- key: "_unsubscribe",
- value: function () {
- var i = this.connectable
- if (i) {
- this.connectable = null
- var a = i._connection
- ;(i._refCount = 0),
- (i._subject = null),
- (i._connection = null),
- a && a.unsubscribe()
- }
- },
- },
- ]),
- t
- )
- })(Qi),
- q = (function () {
- function e(n, t) {
- h(this, e), (this.subjectFactory = n), (this.selector = t)
- }
- return (
- f(e, [
- {
- key: "call",
- value: function (t, r) {
- var i = this.selector,
- a = this.subjectFactory(),
- o = i(a).subscribe(t)
- return o.add(r.subscribe(a)), o
- },
- },
- ]),
- e
- )
- })()
- function ne() {
- return new Ii()
- }
- function ae(e) {
- for (var n in e) if (e[n] === ae) return n
- throw Error("Could not find renamed property on target object.")
- }
- function Ae(e, n) {
- for (var t in n)
- n.hasOwnProperty(t) && !e.hasOwnProperty(t) && (e[t] = n[t])
- }
- function W(e) {
- if ("string" == typeof e) return e
- if (Array.isArray(e)) return "[" + e.map(W).join(", ") + "]"
- if (null == e) return "" + e
- if (e.overriddenName) return "".concat(e.overriddenName)
- if (e.name) return "".concat(e.name)
- var n = e.toString()
- if (null == n) return "" + n
- var t = n.indexOf("\n")
- return -1 === t ? n : n.substring(0, t)
- }
- function Ee(e, n) {
- return null == e || "" === e
- ? null === n
- ? ""
- : n
- : null == n || "" === n
- ? e
- : e + " " + n
- }
- var Oe = ae({
- __forward_ref__: ae,
- })
- function Se(e) {
- return (
- (e.__forward_ref__ = Se),
- (e.toString = function () {
- return W(this())
- }),
- e
- )
- }
- function me(e) {
- return ot(e) ? e() : e
- }
- function ot(e) {
- return (
- "function" == typeof e &&
- e.hasOwnProperty(Oe) &&
- e.__forward_ref__ === Se
- )
- }
- var xe = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return (
- h(this, t),
- ((a = n.call(
- this,
- (function ce(e, n) {
- var r = "NG0".concat(Math.abs(e))
- return "".concat(r).concat(n ? ": " + n : "")
- })(r, i)
- )).code = r),
- a
- )
- }
- return f(t)
- })(Nt(Error))
- function _e(e) {
- return "string" == typeof e ? e : null == e ? "" : String(e)
- }
- function Le(e) {
- return "function" == typeof e
- ? e.name || e.toString()
- : "object" == typeof e && null != e && "function" == typeof e.type
- ? e.type.name || e.type.toString()
- : _e(e)
- }
- function zt(e, n) {
- var t = n ? " in ".concat(n) : ""
- throw new xe(-201, "No provider for ".concat(Le(e), " found").concat(t))
- }
- function R(e, n) {
- null == e &&
- (function fe(e, n, t, r) {
- throw new Error(
- "ASSERTION ERROR: ".concat(e) +
- (null == r
- ? ""
- : " [Expected=> "
- .concat(t, " ")
- .concat(r, " ")
- .concat(n, " <=Actual]"))
- )
- })(n, e, null, "!=")
- }
- function te(e) {
- return {
- token: e.token,
- providedIn: e.providedIn || null,
- factory: e.factory,
- value: void 0,
- }
- }
- function $(e) {
- return {
- providers: e.providers || [],
- imports: e.imports || [],
- }
- }
- function Ve(e) {
- return We(e, at) || We(e, Wt)
- }
- function We(e, n) {
- return e.hasOwnProperty(n) ? e[n] : null
- }
- function et(e) {
- return e && (e.hasOwnProperty(gt) || e.hasOwnProperty(sr))
- ? e[gt]
- : null
- }
- var Yt,
- at = ae({
- "\u0275prov": ae,
- }),
- gt = ae({
- "\u0275inj": ae,
- }),
- Wt = ae({
- ngInjectableDef: ae,
- }),
- sr = ae({
- ngInjectorDef: ae,
- }),
- je = (function () {
- return (
- ((je = je || {})[(je.Default = 0)] = "Default"),
- (je[(je.Host = 1)] = "Host"),
- (je[(je.Self = 2)] = "Self"),
- (je[(je.SkipSelf = 4)] = "SkipSelf"),
- (je[(je.Optional = 8)] = "Optional"),
- je
- )
- })()
- function Vt() {
- return Yt
- }
- function pn(e) {
- var n = Yt
- return (Yt = e), n
- }
- function Qn(e, n, t) {
- var r = Ve(e)
- return r && "root" == r.providedIn
- ? void 0 === r.value
- ? (r.value = r.factory())
- : r.value
- : t & je.Optional
- ? null
- : void 0 !== n
- ? n
- : void zt(W(e), "Injector")
- }
- function ur(e) {
- return {
- toString: e,
- }.toString()
- }
- var Zn = (function () {
- return (
- ((Zn = Zn || {})[(Zn.OnPush = 0)] = "OnPush"),
- (Zn[(Zn.Default = 1)] = "Default"),
- Zn
- )
- })(),
- Vn = (function () {
- return (
- (function (e) {
- ;(e[(e.Emulated = 0)] = "Emulated"),
- (e[(e.None = 2)] = "None"),
- (e[(e.ShadowDom = 3)] = "ShadowDom")
- })(Vn || (Vn = {})),
- Vn
- )
- })(),
- hs = "undefined" != typeof globalThis && globalThis,
- vs = "undefined" != typeof window && window,
- Ri =
- "undefined" != typeof self &&
- "undefined" != typeof WorkerGlobalScope &&
- self instanceof WorkerGlobalScope &&
- self,
- xr = "undefined" != typeof global && global,
- Ot = hs || xr || vs || Ri,
- na = {},
- Rt = [],
- ps = ae({
- "\u0275cmp": ae,
- }),
- Qu = ae({
- "\u0275dir": ae,
- }),
- Xu = ae({
- "\u0275pipe": ae,
- }),
- od = ae({
- "\u0275mod": ae,
- }),
- ai = ae({
- "\u0275fac": ae,
- }),
- co = ae({
- __NG_ELEMENT_ID__: ae,
- }),
- __ = 0
- function Ni(e) {
- return ur(function () {
- var t = {},
- r = {
- type: e.type,
- providersResolver: null,
- decls: e.decls,
- vars: e.vars,
- factory: null,
- template: e.template || null,
- consts: e.consts || null,
- ngContentSelectors: e.ngContentSelectors,
- hostBindings: e.hostBindings || null,
- hostVars: e.hostVars || 0,
- hostAttrs: e.hostAttrs || null,
- contentQueries: e.contentQueries || null,
- declaredInputs: t,
- inputs: null,
- outputs: null,
- exportAs: e.exportAs || null,
- onPush: e.changeDetection === Zn.OnPush,
- directiveDefs: null,
- pipeDefs: null,
- selectors: e.selectors || Rt,
- viewQuery: e.viewQuery || null,
- features: e.features || null,
- data: e.data || {},
- encapsulation: e.encapsulation || Vn.Emulated,
- id: "c",
- styles: e.styles || Rt,
- _: null,
- setInput: null,
- schemas: e.schemas || null,
- tView: null,
- },
- i = e.directives,
- a = e.features,
- o = e.pipes
- return (
- (r.id += __++),
- (r.inputs = cd(e.inputs, t)),
- (r.outputs = cd(e.outputs)),
- a &&
- a.forEach(function (s) {
- return s(r)
- }),
- (r.directiveDefs = i
- ? function () {
- return ("function" == typeof i ? i() : i).map(sd)
- }
- : null),
- (r.pipeDefs = o
- ? function () {
- return ("function" == typeof o ? o() : o).map(ud)
- }
- : null),
- r
- )
- })
- }
- function sd(e) {
- return (
- In(e) ||
- (function mi(e) {
- return e[Qu] || null
- })(e)
- )
- }
- function ud(e) {
- return (function xi(e) {
- return e[Xu] || null
- })(e)
- }
- var ld = {}
- function Lr(e) {
- return ur(function () {
- var n = {
- type: e.type,
- bootstrap: e.bootstrap || Rt,
- declarations: e.declarations || Rt,
- imports: e.imports || Rt,
- exports: e.exports || Rt,
- transitiveCompileScopes: null,
- schemas: e.schemas || null,
- id: e.id || null,
- }
- return null != e.id && (ld[e.id] = e.type), n
- })
- }
- function cd(e, n) {
- if (null == e) return na
- var t = {}
- for (var r in e)
- if (e.hasOwnProperty(r)) {
- var i = e[r],
- a = i
- Array.isArray(i) && ((a = i[1]), (i = i[0])),
- (t[i] = r),
- n && (n[i] = a)
- }
- return t
- }
- var Je = Ni
- function qn(e) {
- return {
- type: e.type,
- name: e.name,
- factory: null,
- pure: !1 !== e.pure,
- onDestroy: e.type.prototype.ngOnDestroy || null,
- }
- }
- function In(e) {
- return e[ps] || null
- }
- function lr(e, n) {
- var t = e[od] || null
- if (!t && !0 === n)
- throw new Error(
- "Type ".concat(W(e), " does not have '\u0275mod' property.")
- )
- return t
- }
- function Vr(e) {
- return Array.isArray(e) && "object" == typeof e[1]
- }
- function br(e) {
- return Array.isArray(e) && !0 === e[1]
- }
- function nl(e) {
- return 0 != (8 & e.flags)
- }
- function _s(e) {
- return 2 == (2 & e.flags)
- }
- function Ds(e) {
- return 1 == (1 & e.flags)
- }
- function Cr(e) {
- return null !== e.template
- }
- function w_(e) {
- return 0 != (512 & e[2])
- }
- function Hi(e, n) {
- return e.hasOwnProperty(ai) ? e[ai] : null
- }
- var M_ = (function () {
- function e(n, t, r) {
- h(this, e),
- (this.previousValue = n),
- (this.currentValue = t),
- (this.firstChange = r)
- }
- return (
- f(e, [
- {
- key: "isFirstChange",
- value: function () {
- return this.firstChange
- },
- },
- ]),
- e
- )
- })()
- function Br() {
- return dd
- }
- function dd(e) {
- return e.type.prototype.ngOnChanges && (e.setInput = A_), I_
- }
- function I_() {
- var e = vd(this),
- n = null == e ? void 0 : e.current
- if (n) {
- var t = e.previous
- if (t === na) e.previous = n
- else for (var r in n) t[r] = n[r]
- ;(e.current = null), this.ngOnChanges(n)
- }
- }
- function A_(e, n, t, r) {
- var i =
- vd(e) ||
- (function O_(e, n) {
- return (e[hd] = n)
- })(e, {
- previous: na,
- current: null,
- }),
- a = i.current || (i.current = {}),
- o = i.previous,
- s = this.declaredInputs[t],
- u = o[s]
- ;(a[s] = new M_(u && u.currentValue, n, o === na)), (e[r] = n)
- }
- Br.ngInherit = !0
- var hd = "__ngSimpleChanges__"
- function vd(e) {
- return e[hd] || null
- }
- var pd = "http://www.w3.org/2000/svg",
- al = void 0
- function ol() {
- return void 0 !== al
- ? al
- : "undefined" != typeof document
- ? document
- : void 0
- }
- function en(e) {
- return !!e.listen
- }
- var md = {
- createRenderer: function (n, t) {
- return ol()
- },
- }
- function ln(e) {
- for (; Array.isArray(e); ) e = e[0]
- return e
- }
- function bs(e, n) {
- return ln(n[e])
- }
- function dr(e, n) {
- return ln(n[e.index])
- }
- function sl(e, n) {
- return e.data[n]
- }
- function sa(e, n) {
- return e[n]
- }
- function er(e, n) {
- var t = n[e]
- return Vr(t) ? t : t[0]
- }
- function yd(e) {
- return 4 == (4 & e[2])
- }
- function ul(e) {
- return 128 == (128 & e[2])
- }
- function yi(e, n) {
- return null == n ? null : e[n]
- }
- function _d(e) {
- e[18] = 0
- }
- function ll(e, n) {
- e[5] += n
- for (
- var t = e, r = e[3];
- null !== r && ((1 === n && 1 === t[5]) || (-1 === n && 0 === t[5]));
-
- )
- (r[5] += n), (t = r), (r = r[3])
- }
- var $e = {
- lFrame: Td(null),
- bindingsEnabled: !0,
- isInCheckNoChangesMode: !1,
- }
- function Dd() {
- return $e.bindingsEnabled
- }
- function ee() {
- return $e.lFrame.lView
- }
- function mt() {
- return $e.lFrame.tView
- }
- function Dt(e) {
- return ($e.lFrame.contextLView = e), e[8]
- }
- function gn() {
- for (var e = bd(); null !== e && 64 === e.type; ) e = e.parent
- return e
- }
- function bd() {
- return $e.lFrame.currentTNode
- }
- function Hr(e, n) {
- var t = $e.lFrame
- ;(t.currentTNode = e), (t.isParent = n)
- }
- function cl() {
- return $e.lFrame.isParent
- }
- function Cs() {
- return $e.isInCheckNoChangesMode
- }
- function Es(e) {
- $e.isInCheckNoChangesMode = e
- }
- function Bn() {
- var e = $e.lFrame,
- n = e.bindingRootIndex
- return (
- -1 === n && (n = e.bindingRootIndex = e.tView.bindingStartIndex), n
- )
- }
- function ua() {
- return $e.lFrame.bindingIndex++
- }
- function si(e) {
- var n = $e.lFrame,
- t = n.bindingIndex
- return (n.bindingIndex = n.bindingIndex + e), t
- }
- function z_(e, n) {
- var t = $e.lFrame
- ;(t.bindingIndex = t.bindingRootIndex = e), dl(n)
- }
- function dl(e) {
- $e.lFrame.currentDirectiveIndex = e
- }
- function kd() {
- return $e.lFrame.currentQueryIndex
- }
- function vl(e) {
- $e.lFrame.currentQueryIndex = e
- }
- function q_(e) {
- var n = e[1]
- return 2 === n.type ? n.declTNode : 1 === n.type ? e[6] : null
- }
- function wd(e, n, t) {
- if (t & je.SkipSelf) {
- for (
- var r = n, i = e;
- !(
- null !== (r = r.parent) ||
- t & je.Host ||
- null === (r = q_(i)) ||
- ((i = i[15]), 10 & r.type)
- );
-
- );
- if (null === r) return !1
- ;(n = r), (e = i)
- }
- var a = ($e.lFrame = Sd())
- return (a.currentTNode = n), (a.lView = e), !0
- }
- function ks(e) {
- var n = Sd(),
- t = e[1]
- ;($e.lFrame = n),
- (n.currentTNode = t.firstChild),
- (n.lView = e),
- (n.tView = t),
- (n.contextLView = e),
- (n.bindingIndex = t.bindingStartIndex),
- (n.inI18n = !1)
- }
- function Sd() {
- var e = $e.lFrame,
- n = null === e ? null : e.child
- return null === n ? Td(e) : n
- }
- function Td(e) {
- var n = {
- currentTNode: null,
- isParent: !0,
- lView: null,
- tView: null,
- selectedIndex: -1,
- contextLView: null,
- elementDepthCount: 0,
- currentNamespace: null,
- currentDirectiveIndex: -1,
- bindingRootIndex: -1,
- bindingIndex: -1,
- currentQueryIndex: 0,
- parent: e,
- child: null,
- inI18n: !1,
- }
- return null !== e && (e.child = n), n
- }
- function Md() {
- var e = $e.lFrame
- return (
- ($e.lFrame = e.parent), (e.currentTNode = null), (e.lView = null), e
- )
- }
- var Id = Md
- function ws() {
- var e = Md()
- ;(e.isParent = !0),
- (e.tView = null),
- (e.selectedIndex = -1),
- (e.contextLView = null),
- (e.elementDepthCount = 0),
- (e.currentDirectiveIndex = -1),
- (e.currentNamespace = null),
- (e.bindingRootIndex = -1),
- (e.bindingIndex = -1),
- (e.currentQueryIndex = 0)
- }
- function $_(e) {
- var n = ($e.lFrame.contextLView = (function K_(e, n) {
- for (; e > 0; ) (n = n[15]), e--
- return n
- })(e, $e.lFrame.contextLView))
- return n[8]
- }
- function Hn() {
- return $e.lFrame.selectedIndex
- }
- function _i(e) {
- $e.lFrame.selectedIndex = e
- }
- function tn() {
- var e = $e.lFrame
- return sl(e.tView, e.selectedIndex)
- }
- function Er() {
- $e.lFrame.currentNamespace = pd
- }
- function ji() {
- !(function J_() {
- $e.lFrame.currentNamespace = null
- })()
- }
- function Ss(e, n) {
- for (var t = n.directiveStart, r = n.directiveEnd; t < r; t++) {
- var a = e.data[t].type.prototype,
- o = a.ngAfterContentInit,
- s = a.ngAfterContentChecked,
- u = a.ngAfterViewInit,
- l = a.ngAfterViewChecked,
- c = a.ngOnDestroy
- o && (e.contentHooks || (e.contentHooks = [])).push(-t, o),
- s &&
- ((e.contentHooks || (e.contentHooks = [])).push(t, s),
- (e.contentCheckHooks || (e.contentCheckHooks = [])).push(t, s)),
- u && (e.viewHooks || (e.viewHooks = [])).push(-t, u),
- l &&
- ((e.viewHooks || (e.viewHooks = [])).push(t, l),
- (e.viewCheckHooks || (e.viewCheckHooks = [])).push(t, l)),
- null != c && (e.destroyHooks || (e.destroyHooks = [])).push(t, c)
- }
- }
- function Ts(e, n, t) {
- Ad(e, n, 3, t)
- }
- function Ms(e, n, t, r) {
- ;(3 & e[2]) === t && Ad(e, n, t, r)
- }
- function pl(e, n) {
- var t = e[2]
- ;(3 & t) === n && ((t &= 2047), (e[2] = t += 1))
- }
- function Ad(e, n, t, r) {
- for (
- var a = null != r ? r : -1,
- o = n.length - 1,
- s = 0,
- u = void 0 !== r ? 65535 & e[18] : 0;
- u < o;
- u++
- )
- if ("number" == typeof n[u + 1]) {
- if (((s = n[u]), null != r && s >= r)) break
- } else
- n[u] < 0 && (e[18] += 65536),
- (s < a || -1 == a) &&
- (eD(e, t, n, u), (e[18] = (4294901760 & e[18]) + u + 2)),
- u++
- }
- function eD(e, n, t, r) {
- var i = t[r] < 0,
- a = t[r + 1],
- s = e[i ? -t[r] : t[r]]
- if (i) {
- if (e[2] >> 11 < e[18] >> 16 && (3 & e[2]) === n) {
- e[2] += 2048
- try {
- a.call(s)
- } finally {
- }
- }
- } else
- try {
- a.call(s)
- } finally {
- }
- }
- var go = f(function e(n, t, r) {
- h(this, e),
- (this.factory = n),
- (this.resolving = !1),
- (this.canSeeViewProviders = t),
- (this.injectImpl = r)
- })
- function Is(e, n, t) {
- for (var r = en(e), i = 0; i < t.length; ) {
- var a = t[i]
- if ("number" == typeof a) {
- if (0 !== a) break
- i++
- var o = t[i++],
- s = t[i++],
- u = t[i++]
- r ? e.setAttribute(n, s, u, o) : n.setAttributeNS(o, s, u)
- } else {
- var l = a,
- c = t[++i]
- ml(l)
- ? r && e.setProperty(n, l, c)
- : r
- ? e.setAttribute(n, l, c)
- : n.setAttribute(l, c),
- i++
- }
- }
- return i
- }
- function Od(e) {
- return 3 === e || 4 === e || 6 === e
- }
- function ml(e) {
- return 64 === e.charCodeAt(0)
- }
- function As(e, n) {
- if (null !== n && 0 !== n.length)
- if (null === e || 0 === e.length) e = n.slice()
- else
- for (var t = -1, r = 0; r < n.length; r++) {
- var i = n[r]
- "number" == typeof i
- ? (t = i)
- : 0 === t ||
- Pd(e, t, i, null, -1 === t || 2 === t ? n[++r] : null)
- }
- return e
- }
- function Pd(e, n, t, r, i) {
- var a = 0,
- o = e.length
- if (-1 === n) o = -1
- else
- for (; a < e.length; ) {
- var s = e[a++]
- if ("number" == typeof s) {
- if (s === n) {
- o = -1
- break
- }
- if (s > n) {
- o = a - 1
- break
- }
- }
- }
- for (; a < e.length; ) {
- var u = e[a]
- if ("number" == typeof u) break
- if (u === t) {
- if (null === r) return void (null !== i && (e[a + 1] = i))
- if (r === e[a + 1]) return void (e[a + 2] = i)
- }
- a++, null !== r && a++, null !== i && a++
- }
- ;-1 !== o && (e.splice(o, 0, n), (a = o + 1)),
- e.splice(a++, 0, t),
- null !== r && e.splice(a++, 0, r),
- null !== i && e.splice(a++, 0, i)
- }
- function Fd(e) {
- return -1 !== e
- }
- function la(e) {
- return 32767 & e
- }
- function ca(e, n) {
- for (
- var t = (function aD(e) {
- return e >> 16
- })(e),
- r = n;
- t > 0;
-
- )
- (r = r[15]), t--
- return r
- }
- var yl = !0
- function Os(e) {
- var n = yl
- return (yl = e), n
- }
- var sD = 0
- function yo(e, n) {
- var t = Dl(e, n)
- if (-1 !== t) return t
- var r = n[1]
- r.firstCreatePass &&
- ((e.injectorIndex = n.length),
- _l(r.data, e),
- _l(n, null),
- _l(r.blueprint, null))
- var i = Ps(e, n),
- a = e.injectorIndex
- if (Fd(i))
- for (var o = la(i), s = ca(i, n), u = s[1].data, l = 0; l < 8; l++)
- n[a + l] = s[o + l] | u[o + l]
- return (n[a + 8] = i), a
- }
- function _l(e, n) {
- e.push(0, 0, 0, 0, 0, 0, 0, 0, n)
- }
- function Dl(e, n) {
- return -1 === e.injectorIndex ||
- (e.parent && e.parent.injectorIndex === e.injectorIndex) ||
- null === n[e.injectorIndex + 8]
- ? -1
- : e.injectorIndex
- }
- function Ps(e, n) {
- if (e.parent && -1 !== e.parent.injectorIndex)
- return e.parent.injectorIndex
- for (var t = 0, r = null, i = n; null !== i; ) {
- var a = i[1],
- o = a.type
- if (null === (r = 2 === o ? a.declTNode : 1 === o ? i[6] : null))
- return -1
- if ((t++, (i = i[15]), -1 !== r.injectorIndex))
- return r.injectorIndex | (t << 16)
- }
- return -1
- }
- function Fs(e, n, t) {
- !(function uD(e, n, t) {
- var r
- "string" == typeof t
- ? (r = t.charCodeAt(0) || 0)
- : t.hasOwnProperty(co) && (r = t[co]),
- null == r && (r = t[co] = sD++)
- var i = 255 & r
- n.data[e + (i >> 5)] |= 1 << i
- })(e, n, t)
- }
- function xd(e, n, t) {
- if (t & je.Optional) return e
- zt(n, "NodeInjector")
- }
- function Ld(e, n, t, r) {
- if (
- (t & je.Optional && void 0 === r && (r = null),
- 0 == (t & (je.Self | je.Host)))
- ) {
- var i = e[9],
- a = pn(void 0)
- try {
- return i ? i.get(n, r, t & je.Optional) : Qn(n, r, t & je.Optional)
- } finally {
- pn(a)
- }
- }
- return xd(r, n, t)
- }
- function Vd(e, n, t) {
- var r =
- arguments.length > 3 && void 0 !== arguments[3]
- ? arguments[3]
- : je.Default,
- i = arguments.length > 4 ? arguments[4] : void 0
- if (null !== e) {
- var a = dD(t)
- if ("function" == typeof a) {
- if (!wd(n, e, r)) return r & je.Host ? xd(i, t, r) : Ld(n, t, r, i)
- try {
- var o = a(r)
- if (null != o || r & je.Optional) return o
- zt(t)
- } finally {
- Id()
- }
- } else if ("number" == typeof a) {
- var s = null,
- u = Dl(e, n),
- l = -1,
- c = r & je.Host ? n[16][6] : null
- for (
- (-1 === u || r & je.SkipSelf) &&
- (-1 !== (l = -1 === u ? Ps(e, n) : n[u + 8]) && jd(r, !1)
- ? ((s = n[1]), (u = la(l)), (n = ca(l, n)))
- : (u = -1));
- -1 !== u;
-
- ) {
- var d = n[1]
- if (Hd(a, u, d.data)) {
- var v = fD(u, n, t, s, r, c)
- if (v !== Bd) return v
- }
- ;-1 !== (l = n[u + 8]) &&
- jd(r, n[1].data[u + 8] === c) &&
- Hd(a, u, n)
- ? ((s = d), (u = la(l)), (n = ca(l, n)))
- : (u = -1)
- }
- }
- }
- return Ld(n, t, r, i)
- }
- var Bd = {}
- function cD() {
- return new fa(gn(), ee())
- }
- function fD(e, n, t, r, i, a) {
- var o = n[1],
- s = o.data[e + 8],
- c = Rs(
- s,
- o,
- t,
- null == r ? _s(s) && yl : r != o && 0 != (3 & s.type),
- i & je.Host && a === s
- )
- return null !== c ? _o(n, o, c, s) : Bd
- }
- function Rs(e, n, t, r, i) {
- for (
- var a = e.providerIndexes,
- o = n.data,
- s = 1048575 & a,
- u = e.directiveStart,
- c = a >> 20,
- v = i ? s + c : e.directiveEnd,
- g = r ? s : s + c;
- g < v;
- g++
- ) {
- var C = o[g]
- if ((g < u && t === C) || (g >= u && C.type === t)) return g
- }
- if (i) {
- var N = o[u]
- if (N && Cr(N) && N.type === t) return u
- }
- return null
- }
- function _o(e, n, t, r) {
- var i = e[t],
- a = n.data
- if (
- (function tD(e) {
- return e instanceof go
- })(i)
- ) {
- var o = i
- o.resolving &&
- (function At(e, n) {
- var t = n
- ? ". Dependency path: ".concat(n.join(" > "), " > ").concat(e)
- : ""
- throw new xe(
- -200,
- "Circular dependency in DI detected for ".concat(e).concat(t)
- )
- })(Le(a[t]))
- var s = Os(o.canSeeViewProviders)
- o.resolving = !0
- var u = o.injectImpl ? pn(o.injectImpl) : null
- wd(e, r, je.Default)
- try {
- ;(i = e[t] = o.factory(void 0, a, e, r)),
- n.firstCreatePass &&
- t >= r.directiveStart &&
- (function X_(e, n, t) {
- var r = n.type.prototype,
- a = r.ngOnInit,
- o = r.ngDoCheck
- if (r.ngOnChanges) {
- var s = dd(n)
- ;(t.preOrderHooks || (t.preOrderHooks = [])).push(e, s),
- (
- t.preOrderCheckHooks || (t.preOrderCheckHooks = [])
- ).push(e, s)
- }
- a &&
- (t.preOrderHooks || (t.preOrderHooks = [])).push(0 - e, a),
- o &&
- ((t.preOrderHooks || (t.preOrderHooks = [])).push(e, o),
- (
- t.preOrderCheckHooks || (t.preOrderCheckHooks = [])
- ).push(e, o))
- })(t, a[t], n)
- } finally {
- null !== u && pn(u), Os(s), (o.resolving = !1), Id()
- }
- }
- return i
- }
- function dD(e) {
- if ("string" == typeof e) return e.charCodeAt(0) || 0
- var n = e.hasOwnProperty(co) ? e[co] : void 0
- return "number" == typeof n ? (n >= 0 ? 255 & n : cD) : n
- }
- function Hd(e, n, t) {
- return !!(t[n + (e >> 5)] & (1 << e))
- }
- function jd(e, n) {
- return !(e & je.Self || (e & je.Host && n))
- }
- var fa = (function () {
- function e(n, t) {
- h(this, e), (this._tNode = n), (this._lView = t)
- }
- return (
- f(e, [
- {
- key: "get",
- value: function (t, r, i) {
- return Vd(this._tNode, this._lView, t, i, r)
- },
- },
- ]),
- e
- )
- })()
- function tr(e) {
- return ur(function () {
- for (
- var n = e.prototype.constructor,
- t = n[ai] || bl(n),
- r = Object.prototype,
- i = Object.getPrototypeOf(e.prototype).constructor;
- i && i !== r;
-
- ) {
- var a = i[ai] || bl(i)
- if (a && a !== t) return a
- i = Object.getPrototypeOf(i)
- }
- return function (o) {
- return new o()
- }
- })
- }
- function bl(e) {
- return ot(e)
- ? function () {
- var n = bl(me(e))
- return n && n()
- }
- : Hi(e)
- }
- var ha = "__parameters__"
- function pa(e, n, t) {
- return ur(function () {
- var r = (function El(e) {
- return function () {
- if (e) {
- var t = e.apply(void 0, arguments)
- for (var r in t) this[r] = t[r]
- }
- }
- })(n)
- function i() {
- for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++)
- o[s] = arguments[s]
- if (this instanceof i) return r.apply(this, o), this
- var u = Ut(i, o)
- return (l.annotation = u), l
- function l(c, d, v) {
- for (
- var g = c.hasOwnProperty(ha)
- ? c[ha]
- : Object.defineProperty(c, ha, {
- value: [],
- })[ha];
- g.length <= v;
-
- )
- g.push(null)
- return (g[v] = g[v] || []).push(u), c
- }
- }
- return (
- t && (i.prototype = Object.create(t.prototype)),
- (i.prototype.ngMetadataName = e),
- (i.annotationCls = i),
- i
- )
- })
- }
- var ft = (function () {
- function e(n, t) {
- h(this, e),
- (this._desc = n),
- (this.ngMetadataName = "InjectionToken"),
- (this.ɵprov = void 0),
- "number" == typeof t
- ? (this.__NG_ELEMENT_ID__ = t)
- : void 0 !== t &&
- (this.ɵprov = te({
- token: this,
- providedIn: t.providedIn || "root",
- factory: t.factory,
- }))
- }
- return (
- f(e, [
- {
- key: "toString",
- value: function () {
- return "InjectionToken ".concat(this._desc)
- },
- },
- ]),
- e
- )
- })()
- function hr(e, n) {
- void 0 === n && (n = e)
- for (var t = 0; t < e.length; t++) {
- var r = e[t]
- Array.isArray(r)
- ? (n === e && (n = e.slice(0, t)), hr(r, n))
- : n !== e && n.push(r)
- }
- return n
- }
- function jr(e, n) {
- e.forEach(function (t) {
- return Array.isArray(t) ? jr(t, n) : n(t)
- })
- }
- function Gd(e, n, t) {
- n >= e.length ? e.push(t) : e.splice(n, 0, t)
- }
- function Ns(e, n) {
- return n >= e.length - 1 ? e.pop() : e.splice(n, 1)[0]
- }
- function nr(e, n, t) {
- var r = ga(e, n)
- return (
- r >= 0
- ? (e[1 | r] = t)
- : (function gD(e, n, t, r) {
- var i = e.length
- if (i == n) e.push(t, r)
- else if (1 === i) e.push(r, e[0]), (e[0] = t)
- else {
- for (i--, e.push(e[i - 1], e[i]); i > n; )
- (e[i] = e[i - 2]), i--
- ;(e[n] = t), (e[n + 1] = r)
- }
- })(e, (r = ~r), n, t),
- r
- )
- }
- function wl(e, n) {
- var t = ga(e, n)
- if (t >= 0) return e[1 | t]
- }
- function ga(e, n) {
- return (function Zd(e, n, t) {
- for (var r = 0, i = e.length >> t; i !== r; ) {
- var a = r + ((i - r) >> 1),
- o = e[a << t]
- if (n === o) return a << t
- o > n ? (i = a) : (r = a + 1)
- }
- return ~(i << t)
- })(e, n, 1)
- }
- var Eo = {},
- Tl = "__NG_DI_FLAG__",
- Ls = "ngTempTokenPath",
- kD = /\n/gm,
- $d = "__source",
- SD = ae({
- provide: String,
- useValue: ae,
- }),
- ko = void 0
- function Kd(e) {
- var n = ko
- return (ko = e), n
- }
- function TD(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : je.Default
- if (void 0 === ko)
- throw new Error("inject() must be called from an injection context")
- return null === ko
- ? Qn(e, void 0, n)
- : ko.get(e, n & je.Optional ? null : void 0, n)
- }
- function dt(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : je.Default
- return (Vt() || TD)(me(e), n)
- }
- function Ml(e) {
- for (var n = [], t = 0; t < e.length; t++) {
- var r = me(e[t])
- if (Array.isArray(r)) {
- if (0 === r.length)
- throw new Error("Arguments array must have arguments.")
- for (var i = void 0, a = je.Default, o = 0; o < r.length; o++) {
- var s = r[o],
- u = MD(s)
- "number" == typeof u
- ? -1 === u
- ? (i = s.token)
- : (a |= u)
- : (i = s)
- }
- n.push(dt(i, a))
- } else n.push(dt(r))
- }
- return n
- }
- function wo(e, n) {
- return (e[Tl] = n), (e.prototype[Tl] = n), e
- }
- function MD(e) {
- return e[Tl]
- }
- function ID(e, n, t, r) {
- var i = e[Ls]
- throw (
- (n[$d] && i.unshift(n[$d]),
- (e.message = (function AD(e, n, t) {
- var r =
- arguments.length > 3 && void 0 !== arguments[3]
- ? arguments[3]
- : null
- e =
- e && "\n" === e.charAt(0) && "\u0275" == e.charAt(1)
- ? e.substr(2)
- : e
- var i = W(n)
- if (Array.isArray(n)) i = n.map(W).join(" -> ")
- else if ("object" == typeof n) {
- var a = []
- for (var o in n)
- if (n.hasOwnProperty(o)) {
- var s = n[o]
- a.push(
- o + ":" + ("string" == typeof s ? JSON.stringify(s) : W(s))
- )
- }
- i = "{".concat(a.join(", "), "}")
- }
- return ""
- .concat(t)
- .concat(r ? "(" + r + ")" : "", "[")
- .concat(i, "]: ")
- .concat(e.replace(kD, "\n "))
- })("\n" + e.message, i, t, r)),
- (e.ngTokenPath = i),
- (e[Ls] = null),
- e)
- )
- }
- var Hs,
- js,
- Vs = wo(
- pa("Inject", function (e) {
- return {
- token: e,
- }
- }),
- -1
- ),
- ma = wo(pa("Optional"), 8),
- So = wo(pa("SkipSelf"), 4)
- function _a(e) {
- var n
- return (
- (null ===
- (n = (function Al() {
- if (void 0 === Hs && ((Hs = null), Ot.trustedTypes))
- try {
- Hs = Ot.trustedTypes.createPolicy("angular", {
- createHTML: function (n) {
- return n
- },
- createScript: function (n) {
- return n
- },
- createScriptURL: function (n) {
- return n
- },
- })
- } catch (e) {}
- return Hs
- })()) || void 0 === n
- ? void 0
- : n.createHTML(e)) || e
- )
- }
- function th(e) {
- var n
- return (
- (null ===
- (n = (function Ol() {
- if (void 0 === js && ((js = null), Ot.trustedTypes))
- try {
- js = Ot.trustedTypes.createPolicy("angular#unsafe-bypass", {
- createHTML: function (n) {
- return n
- },
- createScript: function (n) {
- return n
- },
- createScriptURL: function (n) {
- return n
- },
- })
- } catch (e) {}
- return js
- })()) || void 0 === n
- ? void 0
- : n.createHTML(e)) || e
- )
- }
- var ih = (function () {
- function e(n) {
- h(this, e), (this.changingThisBreaksApplicationSecurity = n)
- }
- return (
- f(e, [
- {
- key: "toString",
- value: function () {
- return (
- "SafeValue must use [property]=binding: ".concat(
- this.changingThisBreaksApplicationSecurity
- ) + " (see https://g.co/ng/security#xss)"
- )
- },
- },
- ]),
- e
- )
- })()
- function bi(e) {
- return e instanceof ih ? e.changingThisBreaksApplicationSecurity : e
- }
- var qD = (function () {
- function e(n) {
- h(this, e), (this.inertDocumentHelper = n)
- }
- return (
- f(e, [
- {
- key: "getInertBodyElement",
- value: function (t) {
- t = "" + t
- try {
- var r = new window.DOMParser().parseFromString(
- _a(t),
- "text/html"
- ).body
- return null === r
- ? this.inertDocumentHelper.getInertBodyElement(t)
- : (r.removeChild(r.firstChild), r)
- } catch (i) {
- return null
- }
- },
- },
- ]),
- e
- )
- })(),
- $D = (function () {
- function e(n) {
- if (
- (h(this, e),
- (this.defaultDoc = n),
- (this.inertDocument =
- this.defaultDoc.implementation.createHTMLDocument(
- "sanitization-inert"
- )),
- null == this.inertDocument.body)
- ) {
- var t = this.inertDocument.createElement("html")
- this.inertDocument.appendChild(t)
- var r = this.inertDocument.createElement("body")
- t.appendChild(r)
- }
- }
- return (
- f(e, [
- {
- key: "getInertBodyElement",
- value: function (t) {
- var r = this.inertDocument.createElement("template")
- if ("content" in r) return (r.innerHTML = _a(t)), r
- var i = this.inertDocument.createElement("body")
- return (
- (i.innerHTML = _a(t)),
- this.defaultDoc.documentMode && this.stripCustomNsAttrs(i),
- i
- )
- },
- },
- {
- key: "stripCustomNsAttrs",
- value: function (t) {
- for (var r = t.attributes, i = r.length - 1; 0 < i; i--) {
- var o = r.item(i).name
- ;("xmlns:ns1" === o || 0 === o.indexOf("ns1:")) &&
- t.removeAttribute(o)
- }
- for (var s = t.firstChild; s; )
- s.nodeType === Node.ELEMENT_NODE &&
- this.stripCustomNsAttrs(s),
- (s = s.nextSibling)
- },
- },
- ]),
- e
- )
- })(),
- YD = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,
- JD =
- /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i
- function Us(e) {
- return (e = String(e)).match(YD) || e.match(JD) ? e : "unsafe:" + e
- }
- function oh(e) {
- return (e = String(e))
- .split(",")
- .map(function (n) {
- return Us(n.trim())
- })
- .join(", ")
- }
- function Ur(e) {
- var r,
- n = {},
- t = le(e.split(","))
- try {
- for (t.s(); !(r = t.n()).done; ) n[r.value] = !0
- } catch (a) {
- t.e(a)
- } finally {
- t.f()
- }
- return n
- }
- function Io() {
- for (
- var e = {}, n = arguments.length, t = new Array(n), r = 0;
- r < n;
- r++
- )
- t[r] = arguments[r]
- for (var i = 0, a = t; i < a.length; i++) {
- var o = a[i]
- for (var s in o) o.hasOwnProperty(s) && (e[s] = !0)
- }
- return e
- }
- var Gs,
- sh = Ur("area,br,col,hr,img,wbr"),
- uh = Ur("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),
- lh = Ur("rp,rt"),
- QD = Io(lh, uh),
- Pl = Io(
- sh,
- Io(
- uh,
- Ur(
- "address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul"
- )
- ),
- Io(
- lh,
- Ur(
- "a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video"
- )
- ),
- QD
- ),
- Fl = Ur("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),
- Rl = Ur("srcset"),
- ch = Io(
- Fl,
- Rl,
- Ur(
- "abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"
- ),
- Ur(
- "aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"
- )
- ),
- rb = Ur("script,style,template"),
- ib = (function () {
- function e() {
- h(this, e), (this.sanitizedSomething = !1), (this.buf = [])
- }
- return (
- f(e, [
- {
- key: "sanitizeChildren",
- value: function (t) {
- for (var r = t.firstChild, i = !0; r; )
- if (
- (r.nodeType === Node.ELEMENT_NODE
- ? (i = this.startElement(r))
- : r.nodeType === Node.TEXT_NODE
- ? this.chars(r.nodeValue)
- : (this.sanitizedSomething = !0),
- i && r.firstChild)
- )
- r = r.firstChild
- else
- for (; r; ) {
- r.nodeType === Node.ELEMENT_NODE && this.endElement(r)
- var a = this.checkClobberedElement(r, r.nextSibling)
- if (a) {
- r = a
- break
- }
- r = this.checkClobberedElement(r, r.parentNode)
- }
- return this.buf.join("")
- },
- },
- {
- key: "startElement",
- value: function (t) {
- var r = t.nodeName.toLowerCase()
- if (!Pl.hasOwnProperty(r))
- return (this.sanitizedSomething = !0), !rb.hasOwnProperty(r)
- this.buf.push("<"), this.buf.push(r)
- for (var i = t.attributes, a = 0; a < i.length; a++) {
- var o = i.item(a),
- s = o.name,
- u = s.toLowerCase()
- if (ch.hasOwnProperty(u)) {
- var l = o.value
- Fl[u] && (l = Us(l)),
- Rl[u] && (l = oh(l)),
- this.buf.push(" ", s, '="', fh(l), '"')
- } else this.sanitizedSomething = !0
- }
- return this.buf.push(">"), !0
- },
- },
- {
- key: "endElement",
- value: function (t) {
- var r = t.nodeName.toLowerCase()
- Pl.hasOwnProperty(r) &&
- !sh.hasOwnProperty(r) &&
- (this.buf.push(""), this.buf.push(r), this.buf.push(">"))
- },
- },
- {
- key: "chars",
- value: function (t) {
- this.buf.push(fh(t))
- },
- },
- {
- key: "checkClobberedElement",
- value: function (t, r) {
- if (
- r &&
- (t.compareDocumentPosition(r) &
- Node.DOCUMENT_POSITION_CONTAINED_BY) ===
- Node.DOCUMENT_POSITION_CONTAINED_BY
- )
- throw new Error(
- "Failed to sanitize html because the element is clobbered: ".concat(
- t.outerHTML
- )
- )
- return r
- },
- },
- ]),
- e
- )
- })(),
- ab = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
- ob = /([^\#-~ |!])/g
- function fh(e) {
- return e
- .replace(/&/g, "&")
- .replace(ab, function (n) {
- return (
- "" +
- (1024 * (n.charCodeAt(0) - 55296) +
- (n.charCodeAt(1) - 56320) +
- 65536) +
- ";"
- )
- })
- .replace(ob, function (n) {
- return "" + n.charCodeAt(0) + ";"
- })
- .replace(//g, ">")
- }
- function Nl(e) {
- return "content" in e &&
- (function ub(e) {
- return e.nodeType === Node.ELEMENT_NODE && "TEMPLATE" === e.nodeName
- })(e)
- ? e.content
- : null
- }
- var cn = (function () {
- return (
- ((cn = cn || {})[(cn.NONE = 0)] = "NONE"),
- (cn[(cn.HTML = 1)] = "HTML"),
- (cn[(cn.STYLE = 2)] = "STYLE"),
- (cn[(cn.SCRIPT = 3)] = "SCRIPT"),
- (cn[(cn.URL = 4)] = "URL"),
- (cn[(cn.RESOURCE_URL = 5)] = "RESOURCE_URL"),
- cn
- )
- })()
- function Xe(e) {
- var n = (function Ao() {
- var e = ee()
- return e && e[12]
- })()
- return n
- ? th(n.sanitize(cn.HTML, e) || "")
- : (function Mo(e, n) {
- var t = (function ZD(e) {
- return (e instanceof ih && e.getTypeName()) || null
- })(e)
- if (null != t && t !== n) {
- if ("ResourceURL" === t && "URL" === n) return !0
- throw new Error(
- "Required a safe "
- .concat(n, ", got a ")
- .concat(t, " (see https://g.co/ng/security#xss)")
- )
- }
- return t === n
- })(e, "HTML")
- ? th(bi(e))
- : (function sb(e, n) {
- var t = null
- try {
- Gs =
- Gs ||
- (function ah(e) {
- var n = new $D(e)
- return (function KD() {
- try {
- return !!new window.DOMParser().parseFromString(
- _a(""),
- "text/html"
- )
- } catch (e) {
- return !1
- }
- })()
- ? new qD(n)
- : n
- })(e)
- var r = n ? String(n) : ""
- t = Gs.getInertBodyElement(r)
- var i = 5,
- a = r
- do {
- if (0 === i)
- throw new Error(
- "Failed to sanitize html because the input is unstable"
- )
- i--,
- (r = a),
- (a = t.innerHTML),
- (t = Gs.getInertBodyElement(r))
- } while (r !== a)
- return _a(new ib().sanitizeChildren(Nl(t) || t))
- } finally {
- if (t)
- for (var u = Nl(t) || t; u.firstChild; )
- u.removeChild(u.firstChild)
- }
- })(ol(), _e(e))
- }
- var ph = "__ngContext__"
- function On(e, n) {
- e[ph] = n
- }
- function Ll(e) {
- var n = (function Oo(e) {
- return e[ph] || null
- })(e)
- return n ? (Array.isArray(n) ? n : n.lView) : null
- }
- function Bl(e) {
- return e.ngOriginalError
- }
- function kb(e) {
- for (
- var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), r = 1;
- r < n;
- r++
- )
- t[r - 1] = arguments[r]
- e.error.apply(e, t)
- }
- var Da = (function () {
- function e() {
- h(this, e), (this._console = console)
- }
- return (
- f(e, [
- {
- key: "handleError",
- value: function (t) {
- var r = this._findOriginalError(t),
- i = (function Eb(e) {
- return (e && e.ngErrorLogger) || kb
- })(t)
- i(this._console, "ERROR", t),
- r && i(this._console, "ORIGINAL ERROR", r)
- },
- },
- {
- key: "_findOriginalError",
- value: function (t) {
- for (var r = t && Bl(t); r && Bl(r); ) r = Bl(r)
- return r || null
- },
- },
- ]),
- e
- )
- })(),
- Dh = (function () {
- return (
- ("undefined" != typeof requestAnimationFrame &&
- requestAnimationFrame) ||
- setTimeout
- ).bind(Ot)
- })()
- function Gr(e) {
- return e instanceof Function ? e() : e
- }
- var rr = (function () {
- return (
- ((rr = rr || {})[(rr.Important = 1)] = "Important"),
- (rr[(rr.DashCase = 2)] = "DashCase"),
- rr
- )
- })()
- function jl(e, n) {
- return undefined(e, n)
- }
- function Po(e) {
- var n = e[3]
- return br(n) ? n[3] : n
- }
- function Ul(e) {
- return wh(e[13])
- }
- function Gl(e) {
- return wh(e[4])
- }
- function wh(e) {
- for (; null !== e && !br(e); ) e = e[4]
- return e
- }
- function Ca(e, n, t, r, i) {
- if (null != r) {
- var a,
- o = !1
- br(r) ? (a = r) : Vr(r) && ((o = !0), (r = r[0]))
- var s = ln(r)
- 0 === e && null !== t
- ? null == i
- ? Oh(n, t, s)
- : Ui(n, t, s, i || null, !0)
- : 1 === e && null !== t
- ? Ui(n, t, s, i || null, !0)
- : 2 === e
- ? (function Vh(e, n, t) {
- var r = Ws(e, n)
- r &&
- (function qb(e, n, t, r) {
- en(e) ? e.removeChild(n, t, r) : n.removeChild(t)
- })(e, r, n, t)
- })(n, s, o)
- : 3 === e && n.destroyNode(s),
- null != a &&
- (function Yb(e, n, t, r, i) {
- var a = t[7]
- a !== ln(t) && Ca(n, e, r, a, i)
- for (var s = 10; s < t.length; s++) {
- var u = t[s]
- Fo(u[1], u, e, n, r, a)
- }
- })(n, e, a, t, i)
- }
- }
- function Wl(e, n) {
- return en(e) ? e.createText(n) : e.createTextNode(n)
- }
- function zl(e, n, t) {
- return en(e)
- ? e.createElement(n, t)
- : null === t
- ? e.createElement(n)
- : e.createElementNS(t, n)
- }
- function Th(e, n) {
- var t = e[9],
- r = t.indexOf(n),
- i = n[3]
- 1024 & n[2] && ((n[2] &= -1025), ll(i, -1)), t.splice(r, 1)
- }
- function Zl(e, n) {
- if (!(e.length <= 10)) {
- var t = 10 + n,
- r = e[t]
- if (r) {
- var i = r[17]
- null !== i && i !== e && Th(i, r), n > 0 && (e[t - 1][4] = r[4])
- var a = Ns(e, 10 + n)
- !(function Bb(e, n) {
- Fo(e, n, n[11], 2, null, null), (n[0] = null), (n[6] = null)
- })(r[1], r)
- var o = a[19]
- null !== o && o.detachView(a[1]),
- (r[3] = null),
- (r[4] = null),
- (r[2] &= -129)
- }
- return r
- }
- }
- function Mh(e, n) {
- if (!(256 & n[2])) {
- var t = n[11]
- en(t) && t.destroyNode && Fo(e, n, t, 3, null, null),
- (function Ub(e) {
- var n = e[13]
- if (!n) return ql(e[1], e)
- for (; n; ) {
- var t = null
- if (Vr(n)) t = n[13]
- else {
- var r = n[10]
- r && (t = r)
- }
- if (!t) {
- for (; n && !n[4] && n !== e; )
- Vr(n) && ql(n[1], n), (n = n[3])
- null === n && (n = e), Vr(n) && ql(n[1], n), (t = n && n[4])
- }
- n = t
- }
- })(n)
- }
- }
- function ql(e, n) {
- if (!(256 & n[2])) {
- ;(n[2] &= -129),
- (n[2] |= 256),
- (function Zb(e, n) {
- var t
- if (null != e && null != (t = e.destroyHooks))
- for (var r = 0; r < t.length; r += 2) {
- var i = n[t[r]]
- if (!(i instanceof go)) {
- var a = t[r + 1]
- if (Array.isArray(a))
- for (var o = 0; o < a.length; o += 2) {
- var s = i[a[o]],
- u = a[o + 1]
- try {
- u.call(s)
- } finally {
- }
- }
- else
- try {
- a.call(i)
- } finally {
- }
- }
- }
- })(e, n),
- (function zb(e, n) {
- var t = e.cleanup,
- r = n[7],
- i = -1
- if (null !== t)
- for (var a = 0; a < t.length - 1; a += 2)
- if ("string" == typeof t[a]) {
- var o = t[a + 1],
- s = "function" == typeof o ? o(n) : ln(n[o]),
- u = r[(i = t[a + 2])],
- l = t[a + 3]
- "boolean" == typeof l
- ? s.removeEventListener(t[a], u, l)
- : l >= 0
- ? r[(i = l)]()
- : r[(i = -l)].unsubscribe(),
- (a += 2)
- } else {
- var c = r[(i = t[a + 1])]
- t[a].call(c)
- }
- if (null !== r) {
- for (var d = i + 1; d < r.length; d++) (0, r[d])()
- n[7] = null
- }
- })(e, n),
- 1 === n[1].type && en(n[11]) && n[11].destroy()
- var t = n[17]
- if (null !== t && br(n[3])) {
- t !== n[3] && Th(t, n)
- var r = n[19]
- null !== r && r.detachView(e)
- }
- }
- }
- function Ih(e, n, t) {
- return (function Ah(e, n, t) {
- for (var r = n; null !== r && 40 & r.type; ) r = (n = r).parent
- if (null === r) return t[0]
- if (2 & r.flags) {
- var i = e.data[r.directiveStart].encapsulation
- if (i === Vn.None || i === Vn.Emulated) return null
- }
- return dr(r, t)
- })(e, n.parent, t)
- }
- function Ui(e, n, t, r, i) {
- en(e) ? e.insertBefore(n, t, r, i) : n.insertBefore(t, r, i)
- }
- function Oh(e, n, t) {
- en(e) ? e.appendChild(n, t) : n.appendChild(t)
- }
- function Ph(e, n, t, r, i) {
- null !== r ? Ui(e, n, t, r, i) : Oh(e, n, t)
- }
- function Ws(e, n) {
- return en(e) ? e.parentNode(n) : n.parentNode
- }
- var Nh = function Rh(e, n, t) {
- return 40 & e.type ? dr(e, t) : null
- }
- function zs(e, n, t, r) {
- var i = Ih(e, r, n),
- a = n[11],
- s = (function Fh(e, n, t) {
- return Nh(e, n, t)
- })(r.parent || n[6], r, n)
- if (null != i)
- if (Array.isArray(t))
- for (var u = 0; u < t.length; u++) Ph(a, i, t[u], s, !1)
- else Ph(a, i, t, s, !1)
- }
- function Zs(e, n) {
- if (null !== n) {
- var t = n.type
- if (3 & t) return dr(n, e)
- if (4 & t) return Kl(-1, e[n.index])
- if (8 & t) {
- var r = n.child
- if (null !== r) return Zs(e, r)
- var i = e[n.index]
- return br(i) ? Kl(-1, i) : ln(i)
- }
- if (32 & t) return jl(n, e)() || ln(e[n.index])
- var s = Lh(e, n)
- return null !== s
- ? Array.isArray(s)
- ? s[0]
- : Zs(Po(e[16]), s)
- : Zs(e, n.next)
- }
- return null
- }
- function Lh(e, n) {
- return null !== n ? e[16][6].projection[n.projection] : null
- }
- function Kl(e, n) {
- var t = 10 + e + 1
- if (t < n.length) {
- var r = n[t],
- i = r[1].firstChild
- if (null !== i) return Zs(r, i)
- }
- return n[7]
- }
- function Yl(e, n, t, r, i, a, o) {
- for (; null != t; ) {
- var s = r[t.index],
- u = t.type
- if (
- (o && 0 === n && (s && On(ln(s), r), (t.flags |= 4)),
- 64 != (64 & t.flags))
- )
- if (8 & u) Yl(e, n, t.child, r, i, a, !1), Ca(n, e, i, s, a)
- else if (32 & u) {
- for (var l = jl(t, r), c = void 0; (c = l()); ) Ca(n, e, i, c, a)
- Ca(n, e, i, s, a)
- } else 16 & u ? Bh(e, n, r, t, i, a) : Ca(n, e, i, s, a)
- t = o ? t.projectionNext : t.next
- }
- }
- function Fo(e, n, t, r, i, a) {
- Yl(t, r, e.firstChild, n, i, a, !1)
- }
- function Bh(e, n, t, r, i, a) {
- var o = t[16],
- u = o[6].projection[r.projection]
- if (Array.isArray(u))
- for (var l = 0; l < u.length; l++) Ca(n, e, i, u[l], a)
- else Yl(e, n, u, o[3], i, a, !0)
- }
- function Hh(e, n, t) {
- en(e) ? e.setAttribute(n, "style", t) : (n.style.cssText = t)
- }
- function Jl(e, n, t) {
- en(e)
- ? "" === t
- ? e.removeAttribute(n, "class")
- : e.setAttribute(n, "class", t)
- : (n.className = t)
- }
- function jh(e, n, t) {
- for (var r = e.length; ; ) {
- var i = e.indexOf(n, t)
- if (-1 === i) return i
- if (0 === i || e.charCodeAt(i - 1) <= 32) {
- var a = n.length
- if (i + a === r || e.charCodeAt(i + a) <= 32) return i
- }
- t = i + 1
- }
- }
- var Uh = "ng-template"
- function Qb(e, n, t) {
- for (var r = 0; r < e.length; ) {
- var i = e[r++]
- if (t && "class" === i) {
- if (-1 !== jh((i = e[r]).toLowerCase(), n, 0)) return !0
- } else if (1 === i) {
- for (; r < e.length && "string" == typeof (i = e[r++]); )
- if (i.toLowerCase() === n) return !0
- return !1
- }
- }
- return !1
- }
- function Gh(e) {
- return 4 === e.type && e.value !== Uh
- }
- function Xb(e, n, t) {
- return n === (4 !== e.type || t ? e.value : Uh)
- }
- function eC(e, n, t) {
- for (
- var r = 4,
- i = e.attrs || [],
- a = (function rC(e) {
- for (var n = 0; n < e.length; n++) if (Od(e[n])) return n
- return e.length
- })(i),
- o = !1,
- s = 0;
- s < n.length;
- s++
- ) {
- var u = n[s]
- if ("number" != typeof u) {
- if (!o)
- if (4 & r) {
- if (
- ((r = 2 | (1 & r)),
- ("" !== u && !Xb(e, u, t)) || ("" === u && 1 === n.length))
- ) {
- if (kr(r)) return !1
- o = !0
- }
- } else {
- var l = 8 & r ? u : n[++s]
- if (8 & r && null !== e.attrs) {
- if (!Qb(e.attrs, l, t)) {
- if (kr(r)) return !1
- o = !0
- }
- continue
- }
- var d = tC(8 & r ? "class" : u, i, Gh(e), t)
- if (-1 === d) {
- if (kr(r)) return !1
- o = !0
- continue
- }
- if ("" !== l) {
- var v
- v = d > a ? "" : i[d + 1].toLowerCase()
- var g = 8 & r ? v : null
- if ((g && -1 !== jh(g, l, 0)) || (2 & r && l !== v)) {
- if (kr(r)) return !1
- o = !0
- }
- }
- }
- } else {
- if (!o && !kr(r) && !kr(u)) return !1
- if (o && kr(u)) continue
- ;(o = !1), (r = u | (1 & r))
- }
- }
- return kr(r) || o
- }
- function kr(e) {
- return 0 == (1 & e)
- }
- function tC(e, n, t, r) {
- if (null === n) return -1
- var i = 0
- if (r || !t) {
- for (var a = !1; i < n.length; ) {
- var o = n[i]
- if (o === e) return i
- if (3 === o || 6 === o) a = !0
- else {
- if (1 === o || 2 === o) {
- for (var s = n[++i]; "string" == typeof s; ) s = n[++i]
- continue
- }
- if (4 === o) break
- if (0 === o) {
- i += 4
- continue
- }
- }
- i += a ? 1 : 2
- }
- return -1
- }
- return (function iC(e, n) {
- var t = e.indexOf(4)
- if (t > -1)
- for (t++; t < e.length; ) {
- var r = e[t]
- if ("number" == typeof r) return -1
- if (r === n) return t
- t++
- }
- return -1
- })(n, e)
- }
- function Wh(e, n) {
- for (
- var t =
- arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
- r = 0;
- r < n.length;
- r++
- )
- if (eC(e, n[r], t)) return !0
- return !1
- }
- function zh(e, n) {
- return e ? ":not(" + n.trim() + ")" : n
- }
- function oC(e) {
- for (var n = e[0], t = 1, r = 2, i = "", a = !1; t < e.length; ) {
- var o = e[t]
- if ("string" == typeof o)
- if (2 & r) {
- var s = e[++t]
- i += "[" + o + (s.length > 0 ? '="' + s + '"' : "") + "]"
- } else 8 & r ? (i += "." + o) : 4 & r && (i += " " + o)
- else
- "" !== i && !kr(o) && ((n += zh(a, i)), (i = "")),
- (r = o),
- (a = a || !kr(r))
- t++
- }
- return "" !== i && (n += zh(a, i)), n
- }
- var Qe = {}
- function z(e) {
- Zh(mt(), ee(), Hn() + e, Cs())
- }
- function Zh(e, n, t, r) {
- if (!r)
- if (3 == (3 & n[2])) {
- var a = e.preOrderCheckHooks
- null !== a && Ts(n, a, t)
- } else {
- var o = e.preOrderHooks
- null !== o && Ms(n, o, 0, t)
- }
- _i(t)
- }
- function qs(e, n) {
- return (e << 17) | (n << 2)
- }
- function wr(e) {
- return (e >> 17) & 32767
- }
- function Ql(e) {
- return 2 | e
- }
- function ui(e) {
- return (131068 & e) >> 2
- }
- function Xl(e, n) {
- return (-131069 & e) | (n << 2)
- }
- function ec(e) {
- return 1 | e
- }
- function rv(e, n) {
- var t = e.contentQueries
- if (null !== t)
- for (var r = 0; r < t.length; r += 2) {
- var a = t[r + 1]
- if (-1 !== a) {
- var o = e.data[a]
- vl(t[r]), o.contentQueries(2, n[a], a)
- }
- }
- }
- function Ro(e, n, t, r, i, a, o, s, u, l) {
- var c = n.blueprint.slice()
- return (
- (c[0] = i),
- (c[2] = 140 | r),
- _d(c),
- (c[3] = c[15] = e),
- (c[8] = t),
- (c[10] = o || (e && e[10])),
- (c[11] = s || (e && e[11])),
- (c[12] = u || (e && e[12]) || null),
- (c[9] = l || (e && e[9]) || null),
- (c[6] = a),
- (c[16] = 2 == n.type ? e[16] : c),
- c
- )
- }
- function Ea(e, n, t, r, i) {
- var a = e.data[n]
- if (null === a)
- (a = (function lc(e, n, t, r, i) {
- var a = bd(),
- o = cl(),
- u = (e.data[n] = (function kC(e, n, t, r, i, a) {
- return {
- type: t,
- index: r,
- insertBeforeIndex: null,
- injectorIndex: n ? n.injectorIndex : -1,
- directiveStart: -1,
- directiveEnd: -1,
- directiveStylingLast: -1,
- propertyBindings: null,
- flags: 0,
- providerIndexes: 0,
- value: i,
- attrs: a,
- mergedAttrs: null,
- localNames: null,
- initialInputs: void 0,
- inputs: null,
- outputs: null,
- tViews: null,
- next: null,
- projectionNext: null,
- child: null,
- parent: n,
- projection: null,
- styles: null,
- stylesWithoutHost: null,
- residualStyles: void 0,
- classes: null,
- classesWithoutHost: null,
- residualClasses: void 0,
- classBindings: 0,
- styleBindings: 0,
- }
- })(0, o ? a : a && a.parent, t, n, r, i))
- return (
- null === e.firstChild && (e.firstChild = u),
- null !== a &&
- (o
- ? null == a.child && null !== u.parent && (a.child = u)
- : null === a.next && (a.next = u)),
- u
- )
- })(e, n, t, r, i)),
- (function W_() {
- return $e.lFrame.inI18n
- })() && (a.flags |= 64)
- else if (64 & a.type) {
- ;(a.type = t), (a.value = r), (a.attrs = i)
- var o = (function po() {
- var e = $e.lFrame,
- n = e.currentTNode
- return e.isParent ? n : n.parent
- })()
- a.injectorIndex = null === o ? -1 : o.injectorIndex
- }
- return Hr(a, !0), a
- }
- function ka(e, n, t, r) {
- if (0 === t) return -1
- for (var i = n.length, a = 0; a < t; a++)
- n.push(r), e.blueprint.push(r), e.data.push(null)
- return i
- }
- function No(e, n, t) {
- ks(n)
- try {
- var r = e.viewQuery
- null !== r && yc(1, r, t)
- var i = e.template
- null !== i && iv(e, n, i, 1, t),
- e.firstCreatePass && (e.firstCreatePass = !1),
- e.staticContentQueries && rv(e, n),
- e.staticViewQueries && yc(2, e.viewQuery, t)
- var a = e.components
- null !== a &&
- (function bC(e, n) {
- for (var t = 0; t < n.length; t++) UC(e, n[t])
- })(n, a)
- } catch (o) {
- throw (
- (e.firstCreatePass &&
- ((e.incompleteFirstPass = !0), (e.firstCreatePass = !1)),
- o)
- )
- } finally {
- ;(n[2] &= -5), ws()
- }
- }
- function wa(e, n, t, r) {
- var i = n[2]
- if (256 != (256 & i)) {
- ks(n)
- var a = Cs()
- try {
- _d(n),
- (function Cd(e) {
- return ($e.lFrame.bindingIndex = e)
- })(e.bindingStartIndex),
- null !== t && iv(e, n, t, 2, r)
- var o = 3 == (3 & i)
- if (!a)
- if (o) {
- var s = e.preOrderCheckHooks
- null !== s && Ts(n, s, null)
- } else {
- var u = e.preOrderHooks
- null !== u && Ms(n, u, 0, null), pl(n, 0)
- }
- if (
- ((function HC(e) {
- for (var n = Ul(e); null !== n; n = Gl(n))
- if (n[2])
- for (var t = n[9], r = 0; r < t.length; r++) {
- var i = t[r]
- 0 == (1024 & i[2]) && ll(i[3], 1), (i[2] |= 1024)
- }
- })(n),
- (function BC(e) {
- for (var n = Ul(e); null !== n; n = Gl(n))
- for (var t = 10; t < n.length; t++) {
- var r = n[t],
- i = r[1]
- ul(r) && wa(i, r, i.template, r[8])
- }
- })(n),
- null !== e.contentQueries && rv(e, n),
- !a)
- )
- if (o) {
- var l = e.contentCheckHooks
- null !== l && Ts(n, l)
- } else {
- var c = e.contentHooks
- null !== c && Ms(n, c, 1), pl(n, 1)
- }
- !(function _C(e, n) {
- var t = e.hostBindingOpCodes
- if (null !== t)
- try {
- for (var r = 0; r < t.length; r++) {
- var i = t[r]
- if (i < 0) _i(~i)
- else {
- var a = i,
- o = t[++r],
- s = t[++r]
- z_(o, a), s(2, n[a])
- }
- }
- } finally {
- _i(-1)
- }
- })(e, n)
- var d = e.components
- null !== d &&
- (function DC(e, n) {
- for (var t = 0; t < n.length; t++) jC(e, n[t])
- })(n, d)
- var v = e.viewQuery
- if ((null !== v && yc(2, v, r), !a))
- if (o) {
- var g = e.viewCheckHooks
- null !== g && Ts(n, g)
- } else {
- var C = e.viewHooks
- null !== C && Ms(n, C, 2), pl(n, 2)
- }
- !0 === e.firstUpdatePass && (e.firstUpdatePass = !1),
- a || (n[2] &= -73),
- 1024 & n[2] && ((n[2] &= -1025), ll(n[3], -1))
- } finally {
- ws()
- }
- }
- }
- function CC(e, n, t, r) {
- var i = n[10],
- a = !Cs(),
- o = yd(n)
- try {
- a && !o && i.begin && i.begin(), o && No(e, n, r), wa(e, n, t, r)
- } finally {
- a && !o && i.end && i.end()
- }
- }
- function iv(e, n, t, r, i) {
- var a = Hn(),
- o = 2 & r
- try {
- _i(-1), o && n.length > 20 && Zh(e, n, 20, Cs()), t(r, i)
- } finally {
- _i(a)
- }
- }
- function cc(e, n, t) {
- !Dd() ||
- ((function OC(e, n, t, r) {
- var i = t.directiveStart,
- a = t.directiveEnd
- e.firstCreatePass || yo(t, n), On(r, n)
- for (var o = t.initialInputs, s = i; s < a; s++) {
- var u = e.data[s],
- l = Cr(u)
- l && xC(n, t, u)
- var c = _o(n, e, s, t)
- On(c, n),
- null !== o && LC(0, s - i, c, u, 0, o),
- l && (er(t.index, n)[8] = c)
- }
- })(e, n, t, dr(t, n)),
- 128 == (128 & t.flags) &&
- (function PC(e, n, t) {
- var r = t.directiveStart,
- i = t.directiveEnd,
- o = t.index,
- s = (function Z_() {
- return $e.lFrame.currentDirectiveIndex
- })()
- try {
- _i(o)
- for (var u = r; u < i; u++) {
- var l = e.data[u],
- c = n[u]
- dl(u),
- (null !== l.hostBindings ||
- 0 !== l.hostVars ||
- null !== l.hostAttrs) &&
- hv(l, c)
- }
- } finally {
- _i(-1), dl(s)
- }
- })(e, n, t))
- }
- function fc(e, n) {
- var t =
- arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : dr,
- r = n.localNames
- if (null !== r)
- for (var i = n.index + 1, a = 0; a < r.length; a += 2) {
- var o = r[a + 1],
- s = -1 === o ? t(n, e) : e[o]
- e[i++] = s
- }
- }
- function ov(e) {
- var n = e.tView
- return null === n || n.incompleteFirstPass
- ? (e.tView = Ys(
- 1,
- null,
- e.template,
- e.decls,
- e.vars,
- e.directiveDefs,
- e.pipeDefs,
- e.viewQuery,
- e.schemas,
- e.consts
- ))
- : n
- }
- function Ys(e, n, t, r, i, a, o, s, u, l) {
- var c = 20 + r,
- d = c + i,
- v = (function EC(e, n) {
- for (var t = [], r = 0; r < n; r++) t.push(r < e ? null : Qe)
- return t
- })(c, d),
- g = "function" == typeof l ? l() : l
- return (v[1] = {
- type: e,
- blueprint: v,
- template: t,
- queries: null,
- viewQuery: s,
- declTNode: n,
- data: v.slice().fill(null, c),
- bindingStartIndex: c,
- expandoStartIndex: d,
- hostBindingOpCodes: null,
- firstCreatePass: !0,
- firstUpdatePass: !0,
- staticViewQueries: !1,
- staticContentQueries: !1,
- preOrderHooks: null,
- preOrderCheckHooks: null,
- contentHooks: null,
- contentCheckHooks: null,
- viewHooks: null,
- viewCheckHooks: null,
- destroyHooks: null,
- cleanup: null,
- contentQueries: null,
- components: null,
- directiveRegistry: "function" == typeof a ? a() : a,
- pipeRegistry: "function" == typeof o ? o() : o,
- firstChild: null,
- schemas: u,
- consts: g,
- incompleteFirstPass: !1,
- })
- }
- function lv(e, n, t, r) {
- var i = _v(n)
- null === t
- ? i.push(r)
- : (i.push(t), e.firstCreatePass && Dv(e).push(r, i.length - 1))
- }
- function cv(e, n, t) {
- for (var r in e)
- if (e.hasOwnProperty(r)) {
- var i = e[r]
- ;(t = null === t ? {} : t).hasOwnProperty(r)
- ? t[r].push(n, i)
- : (t[r] = [n, i])
- }
- return t
- }
- function ir(e, n, t, r, i, a, o, s) {
- var c,
- u = dr(n, t),
- l = n.inputs
- !s && null != l && (c = l[r])
- ? (Ev(e, t, c, r, i),
- _s(n) &&
- (function TC(e, n) {
- var t = er(n, e)
- 16 & t[2] || (t[2] |= 64)
- })(t, n.index))
- : 3 & n.type &&
- ((r = (function SC(e) {
- return "class" === e
- ? "className"
- : "for" === e
- ? "htmlFor"
- : "formaction" === e
- ? "formAction"
- : "innerHtml" === e
- ? "innerHTML"
- : "readonly" === e
- ? "readOnly"
- : "tabindex" === e
- ? "tabIndex"
- : e
- })(r)),
- (i = null != o ? o(i, n.value || "", r) : i),
- en(a)
- ? a.setProperty(u, r, i)
- : ml(r) || (u.setProperty ? u.setProperty(r, i) : (u[r] = i)))
- }
- function dc(e, n, t, r) {
- var i = !1
- if (Dd()) {
- var a = (function FC(e, n, t) {
- var r = e.directiveRegistry,
- i = null
- if (r)
- for (var a = 0; a < r.length; a++) {
- var o = r[a]
- Wh(t, o.selectors, !1) &&
- (i || (i = []),
- Fs(yo(t, n), e, o.type),
- Cr(o) ? (vv(e, t), i.unshift(o)) : i.push(o))
- }
- return i
- })(e, n, t),
- o =
- null === r
- ? null
- : {
- "": -1,
- }
- if (null !== a) {
- ;(i = !0), pv(t, e.data.length, a.length)
- for (var s = 0; s < a.length; s++) {
- var u = a[s]
- u.providersResolver && u.providersResolver(u)
- }
- for (
- var l = !1, c = !1, d = ka(e, n, a.length, null), v = 0;
- v < a.length;
- v++
- ) {
- var g = a[v]
- ;(t.mergedAttrs = As(t.mergedAttrs, g.hostAttrs)),
- gv(e, t, n, d, g),
- NC(d, g, o),
- null !== g.contentQueries && (t.flags |= 8),
- (null !== g.hostBindings ||
- null !== g.hostAttrs ||
- 0 !== g.hostVars) &&
- (t.flags |= 128)
- var C = g.type.prototype
- !l &&
- (C.ngOnChanges || C.ngOnInit || C.ngDoCheck) &&
- ((e.preOrderHooks || (e.preOrderHooks = [])).push(t.index),
- (l = !0)),
- !c &&
- (C.ngOnChanges || C.ngDoCheck) &&
- ((e.preOrderCheckHooks || (e.preOrderCheckHooks = [])).push(
- t.index
- ),
- (c = !0)),
- d++
- }
- !(function wC(e, n) {
- for (
- var r = n.directiveEnd,
- i = e.data,
- a = n.attrs,
- o = [],
- s = null,
- u = null,
- l = n.directiveStart;
- l < r;
- l++
- ) {
- var c = i[l],
- d = c.inputs,
- v = null === a || Gh(n) ? null : VC(d, a)
- o.push(v), (s = cv(d, l, s)), (u = cv(c.outputs, l, u))
- }
- null !== s &&
- (s.hasOwnProperty("class") && (n.flags |= 16),
- s.hasOwnProperty("style") && (n.flags |= 32)),
- (n.initialInputs = o),
- (n.inputs = s),
- (n.outputs = u)
- })(e, t)
- }
- o &&
- (function RC(e, n, t) {
- if (n)
- for (var r = (e.localNames = []), i = 0; i < n.length; i += 2) {
- var a = t[n[i + 1]]
- if (null == a)
- throw new xe(
- -301,
- "Export of name '".concat(n[i + 1], "' not found!")
- )
- r.push(n[i], a)
- }
- })(t, r, o)
- }
- return (t.mergedAttrs = As(t.mergedAttrs, t.attrs)), i
- }
- function dv(e, n, t, r, i, a) {
- var o = a.hostBindings
- if (o) {
- var s = e.hostBindingOpCodes
- null === s && (s = e.hostBindingOpCodes = [])
- var u = ~n.index
- ;(function AC(e) {
- for (var n = e.length; n > 0; ) {
- var t = e[--n]
- if ("number" == typeof t && t < 0) return t
- }
- return 0
- })(s) != u && s.push(u),
- s.push(r, i, o)
- }
- }
- function hv(e, n) {
- null !== e.hostBindings && e.hostBindings(1, n)
- }
- function vv(e, n) {
- ;(n.flags |= 2), (e.components || (e.components = [])).push(n.index)
- }
- function NC(e, n, t) {
- if (t) {
- if (n.exportAs)
- for (var r = 0; r < n.exportAs.length; r++) t[n.exportAs[r]] = e
- Cr(n) && (t[""] = e)
- }
- }
- function pv(e, n, t) {
- ;(e.flags |= 1),
- (e.directiveStart = n),
- (e.directiveEnd = n + t),
- (e.providerIndexes = n)
- }
- function gv(e, n, t, r, i) {
- e.data[r] = i
- var a = i.factory || (i.factory = Hi(i.type)),
- o = new go(a, Cr(i), null)
- ;(e.blueprint[r] = o),
- (t[r] = o),
- dv(e, n, 0, r, ka(e, t, i.hostVars, Qe), i)
- }
- function xC(e, n, t) {
- var r = dr(n, e),
- i = ov(t),
- a = e[10],
- o = Js(
- e,
- Ro(
- e,
- i,
- null,
- t.onPush ? 64 : 16,
- r,
- n,
- a,
- a.createRenderer(r, t),
- null,
- null
- )
- )
- e[n.index] = o
- }
- function Wr(e, n, t, r, i, a) {
- var o = dr(e, n)
- !(function hc(e, n, t, r, i, a, o) {
- if (null == a)
- en(e) ? e.removeAttribute(n, i, t) : n.removeAttribute(i)
- else {
- var s = null == o ? _e(a) : o(a, r || "", i)
- en(e)
- ? e.setAttribute(n, i, s, t)
- : t
- ? n.setAttributeNS(t, i, s)
- : n.setAttribute(i, s)
- }
- })(n[11], o, a, e.value, t, r, i)
- }
- function LC(e, n, t, r, i, a) {
- var o = a[n]
- if (null !== o)
- for (var s = r.setInput, u = 0; u < o.length; ) {
- var l = o[u++],
- c = o[u++],
- d = o[u++]
- null !== s ? r.setInput(t, d, l, c) : (t[c] = d)
- }
- }
- function VC(e, n) {
- for (var t = null, r = 0; r < n.length; ) {
- var i = n[r]
- if (0 !== i)
- if (5 !== i) {
- if ("number" == typeof i) break
- e.hasOwnProperty(i) &&
- (null === t && (t = []), t.push(i, e[i], n[r + 1])),
- (r += 2)
- } else r += 2
- else r += 4
- }
- return t
- }
- function mv(e, n, t, r) {
- return new Array(e, !0, !1, n, null, 0, r, t, null, null)
- }
- function jC(e, n) {
- var t = er(n, e)
- if (ul(t)) {
- var r = t[1]
- 80 & t[2] ? wa(r, t, r.template, t[8]) : t[5] > 0 && vc(t)
- }
- }
- function vc(e) {
- for (var n = Ul(e); null !== n; n = Gl(n))
- for (var t = 10; t < n.length; t++) {
- var r = n[t]
- if (1024 & r[2]) {
- var i = r[1]
- wa(i, r, i.template, r[8])
- } else r[5] > 0 && vc(r)
- }
- var o = e[1].components
- if (null !== o)
- for (var s = 0; s < o.length; s++) {
- var u = er(o[s], e)
- ul(u) && u[5] > 0 && vc(u)
- }
- }
- function UC(e, n) {
- var t = er(n, e),
- r = t[1]
- ;(function GC(e, n) {
- for (var t = n.length; t < e.blueprint.length; t++)
- n.push(e.blueprint[t])
- })(r, t),
- No(r, t, t[8])
- }
- function Js(e, n) {
- return e[13] ? (e[14][4] = n) : (e[13] = n), (e[14] = n), n
- }
- function pc(e) {
- for (; e; ) {
- e[2] |= 64
- var n = Po(e)
- if (w_(e) && !n) return e
- e = n
- }
- return null
- }
- function mc(e, n, t) {
- var r = n[10]
- r.begin && r.begin()
- try {
- wa(e, n, e.template, t)
- } catch (i) {
- throw (Cv(n, i), i)
- } finally {
- r.end && r.end()
- }
- }
- function yv(e) {
- !(function gc(e) {
- for (var n = 0; n < e.components.length; n++) {
- var t = e.components[n],
- r = Ll(t),
- i = r[1]
- CC(i, r, i.template, t)
- }
- })(e[8])
- }
- function yc(e, n, t) {
- vl(0), n(e, t)
- }
- var qC = (function () {
- return Promise.resolve(null)
- })()
- function _v(e) {
- return e[7] || (e[7] = [])
- }
- function Dv(e) {
- return e.cleanup || (e.cleanup = [])
- }
- function Cv(e, n) {
- var t = e[9],
- r = t ? t.get(Da, null) : null
- r && r.handleError(n)
- }
- function Ev(e, n, t, r, i) {
- for (var a = 0; a < t.length; ) {
- var o = t[a++],
- s = t[a++],
- u = n[o],
- l = e.data[o]
- null !== l.setInput ? l.setInput(u, i, r, s) : (u[s] = i)
- }
- }
- function li(e, n, t) {
- var r = bs(n, e)
- !(function Sh(e, n, t) {
- en(e) ? e.setValue(n, t) : (n.textContent = t)
- })(e[11], r, t)
- }
- function Qs(e, n, t) {
- var r = t ? e.styles : null,
- i = t ? e.classes : null,
- a = 0
- if (null !== n)
- for (var o = 0; o < n.length; o++) {
- var s = n[o]
- "number" == typeof s
- ? (a = s)
- : 1 == a
- ? (i = Ee(i, s))
- : 2 == a && (r = Ee(r, s + ": " + n[++o] + ";"))
- }
- t ? (e.styles = r) : (e.stylesWithoutHost = r),
- t ? (e.classes = i) : (e.classesWithoutHost = i)
- }
- var _c = new ft("INJECTOR", -1),
- kv = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "get",
- value: function (t) {
- var r =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : Eo
- if (r === Eo) {
- var i = new Error(
- "NullInjectorError: No provider for ".concat(W(t), "!")
- )
- throw ((i.name = "NullInjectorError"), i)
- }
- return r
- },
- },
- ]),
- e
- )
- })(),
- Dc = new ft("Set Injector scope."),
- xo = {},
- YC = {},
- bc = void 0
- function wv() {
- return void 0 === bc && (bc = new kv()), bc
- }
- function Sv(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : null,
- t =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : null,
- r = arguments.length > 3 ? arguments[3] : void 0,
- i = Tv(e, n, t, r)
- return i._resolveInjectorDefTypes(), i
- }
- function Tv(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : null,
- t =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : null,
- r = arguments.length > 3 ? arguments[3] : void 0
- return new JC(e, t, n || wv(), r)
- }
- var JC = (function () {
- function e(n, t, r) {
- var i = this,
- a =
- arguments.length > 3 && void 0 !== arguments[3]
- ? arguments[3]
- : null
- h(this, e),
- (this.parent = r),
- (this.records = new Map()),
- (this.injectorDefTypes = new Set()),
- (this.onDestroy = new Set()),
- (this._destroyed = !1)
- var o = []
- t &&
- jr(t, function (u) {
- return i.processProvider(u, n, t)
- }),
- jr([n], function (u) {
- return i.processInjectorType(u, [], o)
- }),
- this.records.set(_c, Sa(void 0, this))
- var s = this.records.get(Dc)
- ;(this.scope = null != s ? s.value : null),
- (this.source = a || ("object" == typeof n ? null : W(n)))
- }
- return (
- f(e, [
- {
- key: "destroyed",
- get: function () {
- return this._destroyed
- },
- },
- {
- key: "destroy",
- value: function () {
- this.assertNotDestroyed(), (this._destroyed = !0)
- try {
- this.onDestroy.forEach(function (t) {
- return t.ngOnDestroy()
- })
- } finally {
- this.records.clear(),
- this.onDestroy.clear(),
- this.injectorDefTypes.clear()
- }
- },
- },
- {
- key: "get",
- value: function (t) {
- var r =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : Eo,
- i =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : je.Default
- this.assertNotDestroyed()
- var a = Kd(this),
- o = pn(void 0)
- try {
- if (!(i & je.SkipSelf)) {
- var s = this.records.get(t)
- if (void 0 === s) {
- var u = aE(t) && Ve(t)
- ;(s =
- u && this.injectableDefInScope(u)
- ? Sa(Cc(t), xo)
- : null),
- this.records.set(t, s)
- }
- if (null != s) return this.hydrate(t, s)
- }
- var l = i & je.Self ? wv() : this.parent
- return l.get(t, (r = i & je.Optional && r === Eo ? null : r))
- } catch (d) {
- if ("NullInjectorError" === d.name) {
- var c = (d[Ls] = d[Ls] || [])
- if ((c.unshift(W(t)), a)) throw d
- return ID(d, t, "R3InjectorError", this.source)
- }
- throw d
- } finally {
- pn(o), Kd(a)
- }
- },
- },
- {
- key: "_resolveInjectorDefTypes",
- value: function () {
- var t = this
- this.injectorDefTypes.forEach(function (r) {
- return t.get(r)
- })
- },
- },
- {
- key: "toString",
- value: function () {
- var t = []
- return (
- this.records.forEach(function (i, a) {
- return t.push(W(a))
- }),
- "R3Injector[".concat(t.join(", "), "]")
- )
- },
- },
- {
- key: "assertNotDestroyed",
- value: function () {
- if (this._destroyed)
- throw new Error("Injector has already been destroyed.")
- },
- },
- {
- key: "processInjectorType",
- value: function (t, r, i) {
- var a = this
- if (!(t = me(t))) return !1
- var o = et(t),
- s = (null == o && t.ngModule) || void 0,
- u = void 0 === s ? t : s,
- d = -1 !== i.indexOf(u)
- if ((void 0 !== s && (o = et(s)), null == o)) return !1
- if (null != o.imports && !d) {
- var v
- i.push(u)
- try {
- jr(o.imports, function (F) {
- a.processInjectorType(F, r, i) &&
- (void 0 === v && (v = []), v.push(F))
- })
- } finally {
- }
- if (void 0 !== v)
- for (
- var g = function (ge) {
- var Re = v[ge],
- Ke = Re.ngModule,
- kt = Re.providers
- jr(kt, function (yt) {
- return a.processProvider(yt, Ke, kt || Rt)
- })
- },
- C = 0;
- C < v.length;
- C++
- )
- g(C)
- }
- this.injectorDefTypes.add(u)
- var N =
- Hi(u) ||
- function () {
- return new u()
- }
- this.records.set(u, Sa(N, xo))
- var G = o.providers
- if (null != G && !d) {
- var Y = t
- jr(G, function (F) {
- return a.processProvider(F, Y, G)
- })
- }
- return void 0 !== s && void 0 !== t.providers
- },
- },
- {
- key: "processProvider",
- value: function (t, r, i) {
- var a = Ta((t = me(t))) ? t : me(t && t.provide),
- o = (function XC(e, n, t) {
- return Iv(e) ? Sa(void 0, e.useValue) : Sa(Mv(e), xo)
- })(t)
- if (Ta(t) || !0 !== t.multi) this.records.get(a)
- else {
- var s = this.records.get(a)
- s ||
- (((s = Sa(void 0, xo, !0)).factory = function () {
- return Ml(s.multi)
- }),
- this.records.set(a, s)),
- (a = t),
- s.multi.push(t)
- }
- this.records.set(a, o)
- },
- },
- {
- key: "hydrate",
- value: function (t, r) {
- return (
- r.value === xo && ((r.value = YC), (r.value = r.factory())),
- "object" == typeof r.value &&
- r.value &&
- (function iE(e) {
- return (
- null !== e &&
- "object" == typeof e &&
- "function" == typeof e.ngOnDestroy
- )
- })(r.value) &&
- this.onDestroy.add(r.value),
- r.value
- )
- },
- },
- {
- key: "injectableDefInScope",
- value: function (t) {
- if (!t.providedIn) return !1
- var r = me(t.providedIn)
- return "string" == typeof r
- ? "any" === r || r === this.scope
- : this.injectorDefTypes.has(r)
- },
- },
- ]),
- e
- )
- })()
- function Cc(e) {
- var n = Ve(e),
- t = null !== n ? n.factory : Hi(e)
- if (null !== t) return t
- if (e instanceof ft)
- throw new Error(
- "Token ".concat(W(e), " is missing a \u0275prov definition.")
- )
- if (e instanceof Function)
- return (function QC(e) {
- var n = e.length
- if (n > 0) {
- var t = (function Co(e, n) {
- for (var t = [], r = 0; r < e; r++) t.push(n)
- return t
- })(n, "?")
- throw new Error(
- "Can't resolve all parameters for "
- .concat(W(e), ": (")
- .concat(t.join(", "), ").")
- )
- }
- var r = (function ut(e) {
- var n = e && (e[at] || e[Wt])
- if (n) {
- var t = (function lt(e) {
- if (e.hasOwnProperty("name")) return e.name
- var n = ("" + e).match(/^function\s*([^\s(]+)/)
- return null === n ? "" : n[1]
- })(e)
- return (
- console.warn(
- 'DEPRECATED: DI is instantiating a token "'.concat(
- t,
- '" that inherits its @Injectable decorator but does not provide one itself.\n'
- ) +
- 'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(
- t,
- '" class.'
- )
- ),
- n
- )
- }
- return null
- })(e)
- return null !== r
- ? function () {
- return r.factory(e)
- }
- : function () {
- return new e()
- }
- })(e)
- throw new Error("unreachable")
- }
- function Mv(e, n, t) {
- var r = void 0
- if (Ta(e)) {
- var i = me(e)
- return Hi(i) || Cc(i)
- }
- if (Iv(e))
- r = function () {
- return me(e.useValue)
- }
- else if (
- (function tE(e) {
- return !(!e || !e.useFactory)
- })(e)
- )
- r = function () {
- return e.useFactory.apply(e, pt(Ml(e.deps || [])))
- }
- else if (
- (function eE(e) {
- return !(!e || !e.useExisting)
- })(e)
- )
- r = function () {
- return dt(me(e.useExisting))
- }
- else {
- var a = me(e && (e.useClass || e.provide))
- if (
- !(function rE(e) {
- return !!e.deps
- })(e)
- )
- return Hi(a) || Cc(a)
- r = function () {
- return Ut(a, pt(Ml(e.deps)))
- }
- }
- return r
- }
- function Sa(e, n) {
- var t = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]
- return {
- factory: e,
- value: n,
- multi: t ? [] : void 0,
- }
- }
- function Iv(e) {
- return null !== e && "object" == typeof e && SD in e
- }
- function Ta(e) {
- return "function" == typeof e
- }
- function aE(e) {
- return (
- "function" == typeof e || ("object" == typeof e && e instanceof ft)
- )
- }
- var Kn = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, null, [
- {
- key: "create",
- value: function (r, i) {
- var a
- if (Array.isArray(r))
- return Sv(
- {
- name: "",
- },
- i,
- r,
- ""
- )
- var o = null !== (a = r.name) && void 0 !== a ? a : ""
- return Sv(
- {
- name: o,
- },
- r.parent,
- r.providers,
- o
- )
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.THROW_IF_NOT_FOUND = Eo),
- (e.NULL = new kv()),
- (e.ɵprov = te({
- token: e,
- providedIn: "any",
- factory: function () {
- return dt(_c)
- },
- })),
- (e.__NG_ELEMENT_ID__ = -1),
- e
- )
- })()
- function gE(e, n) {
- Ss(Ll(e)[1], gn())
- }
- function Ht(e) {
- for (
- var n = (function Lv(e) {
- return Object.getPrototypeOf(e.prototype).constructor
- })(e.type),
- t = !0,
- r = [e];
- n;
-
- ) {
- var i = void 0
- if (Cr(e)) i = n.ɵcmp || n.ɵdir
- else {
- if (n.ɵcmp) throw new Error("Directives cannot inherit Components")
- i = n.ɵdir
- }
- if (i) {
- if (t) {
- r.push(i)
- var a = e
- ;(a.inputs = kc(e.inputs)),
- (a.declaredInputs = kc(e.declaredInputs)),
- (a.outputs = kc(e.outputs))
- var o = i.hostBindings
- o && DE(e, o)
- var s = i.viewQuery,
- u = i.contentQueries
- if (
- (s && yE(e, s),
- u && _E(e, u),
- Ae(e.inputs, i.inputs),
- Ae(e.declaredInputs, i.declaredInputs),
- Ae(e.outputs, i.outputs),
- Cr(i) && i.data.animation)
- ) {
- var l = e.data
- l.animation = (l.animation || []).concat(i.data.animation)
- }
- }
- var c = i.features
- if (c)
- for (var d = 0; d < c.length; d++) {
- var v = c[d]
- v && v.ngInherit && v(e), v === Ht && (t = !1)
- }
- }
- n = Object.getPrototypeOf(n)
- }
- !(function mE(e) {
- for (var n = 0, t = null, r = e.length - 1; r >= 0; r--) {
- var i = e[r]
- ;(i.hostVars = n += i.hostVars),
- (i.hostAttrs = As(i.hostAttrs, (t = As(t, i.hostAttrs))))
- }
- })(r)
- }
- function kc(e) {
- return e === na ? {} : e === Rt ? [] : e
- }
- function yE(e, n) {
- var t = e.viewQuery
- e.viewQuery = t
- ? function (r, i) {
- n(r, i), t(r, i)
- }
- : n
- }
- function _E(e, n) {
- var t = e.contentQueries
- e.contentQueries = t
- ? function (r, i, a) {
- n(r, i, a), t(r, i, a)
- }
- : n
- }
- function DE(e, n) {
- var t = e.hostBindings
- e.hostBindings = t
- ? function (r, i) {
- n(r, i), t(r, i)
- }
- : n
- }
- var Xs = null
- function Ma() {
- if (!Xs) {
- var e = Ot.Symbol
- if (e && e.iterator) Xs = e.iterator
- else
- for (
- var n = Object.getOwnPropertyNames(Map.prototype), t = 0;
- t < n.length;
- ++t
- ) {
- var r = n[t]
- "entries" !== r &&
- "size" !== r &&
- Map.prototype[r] === Map.prototype.entries &&
- (Xs = r)
- }
- }
- return Xs
- }
- function Lo(e) {
- return (
- !!wc(e) && (Array.isArray(e) || (!(e instanceof Map) && Ma() in e))
- )
- }
- function wc(e) {
- return null !== e && ("function" == typeof e || "object" == typeof e)
- }
- function Pn(e, n, t) {
- return !Object.is(e[n], t) && ((e[n] = t), !0)
- }
- function Tr(e, n, t, r) {
- var i = ee()
- return Pn(i, ua(), n) && (mt(), Wr(tn(), i, e, n, t, r)), Tr
- }
- function Aa(e, n, t, r) {
- return Pn(e, ua(), t) ? n + _e(t) + r : Qe
- }
- function Oa(e, n, t, r, i, a) {
- var s = (function Gi(e, n, t, r) {
- var i = Pn(e, n, t)
- return Pn(e, n + 1, r) || i
- })(
- e,
- (function oi() {
- return $e.lFrame.bindingIndex
- })(),
- t,
- i
- )
- return si(2), s ? n + _e(t) + r + _e(i) + a : Qe
- }
- function Ze(e, n, t, r, i, a, o, s) {
- var u = ee(),
- l = mt(),
- c = e + 20,
- d = l.firstCreatePass
- ? (function TE(e, n, t, r, i, a, o, s, u) {
- var l = n.consts,
- c = Ea(n, e, 4, o || null, yi(l, s))
- dc(n, t, c, yi(l, u)), Ss(n, c)
- var d = (c.tViews = Ys(
- 2,
- c,
- r,
- i,
- a,
- n.directiveRegistry,
- n.pipeRegistry,
- null,
- n.schemas,
- l
- ))
- return (
- null !== n.queries &&
- (n.queries.template(n, c),
- (d.queries = n.queries.embeddedTView(c))),
- c
- )
- })(c, l, u, n, t, r, i, a, o)
- : l.data[c]
- Hr(d, !1)
- var v = u[11].createComment("")
- zs(l, u, v, d),
- On(v, u),
- Js(u, (u[c] = mv(v, u, v, d))),
- Ds(d) && cc(l, u, d),
- null != o && fc(u, d, s)
- }
- function de(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : je.Default,
- t = ee()
- if (null === t) return dt(e, n)
- var r = gn()
- return Vd(r, t, me(e), n)
- }
- function H(e, n, t) {
- var r = ee()
- return Pn(r, ua(), n) && ir(mt(), tn(), r, e, n, r[11], t, !1), H
- }
- function Ic(e, n, t, r, i) {
- var o = i ? "class" : "style"
- Ev(e, t, n.inputs[o], o, r)
- }
- function x(e, n, t, r) {
- var i = ee(),
- a = mt(),
- o = 20 + e,
- s = i[11],
- u = (i[o] = zl(
- s,
- n,
- (function Q_() {
- return $e.lFrame.currentNamespace
- })()
- )),
- l = a.firstCreatePass
- ? (function qE(e, n, t, r, i, a, o) {
- var s = n.consts,
- l = Ea(n, e, 2, i, yi(s, a))
- return (
- dc(n, t, l, yi(s, o)),
- null !== l.attrs && Qs(l, l.attrs, !1),
- null !== l.mergedAttrs && Qs(l, l.mergedAttrs, !0),
- null !== n.queries && n.queries.elementStart(n, l),
- l
- )
- })(o, a, i, 0, n, t, r)
- : a.data[o]
- Hr(l, !0)
- var c = l.mergedAttrs
- null !== c && Is(s, u, c)
- var d = l.classes
- null !== d && Jl(s, u, d)
- var v = l.styles
- null !== v && Hh(s, u, v),
- 64 != (64 & l.flags) && zs(a, i, u, l),
- 0 ===
- (function V_() {
- return $e.lFrame.elementDepthCount
- })() && On(u, i),
- (function B_() {
- $e.lFrame.elementDepthCount++
- })(),
- Ds(l) &&
- (cc(a, i, l),
- (function av(e, n, t) {
- if (nl(n))
- for (var i = n.directiveEnd, a = n.directiveStart; a < i; a++) {
- var o = e.data[a]
- o.contentQueries && o.contentQueries(1, t[a], a)
- }
- })(a, l, i)),
- null !== r && fc(i, l)
- }
- function L() {
- var e = gn()
- cl()
- ? (function fl() {
- $e.lFrame.isParent = !1
- })()
- : Hr((e = e.parent), !1)
- var n = e
- !(function H_() {
- $e.lFrame.elementDepthCount--
- })()
- var t = mt()
- t.firstCreatePass && (Ss(t, e), nl(e) && t.queries.elementEnd(e)),
- null != n.classesWithoutHost &&
- (function rD(e) {
- return 0 != (16 & e.flags)
- })(n) &&
- Ic(t, n, ee(), n.classesWithoutHost, !0),
- null != n.stylesWithoutHost &&
- (function iD(e) {
- return 0 != (32 & e.flags)
- })(n) &&
- Ic(t, n, ee(), n.stylesWithoutHost, !1)
- }
- function De(e, n, t, r) {
- x(e, n, t, r), L()
- }
- function qt() {
- return ee()
- }
- function tu(e) {
- return !!e && "function" == typeof e.then
- }
- var up = function sp(e) {
- return !!e && "function" == typeof e.subscribe
- }
- function Ue(e, n, t, r) {
- var i = ee(),
- a = mt(),
- o = gn()
- return (
- (function cp(e, n, t, r, i, a, o, s) {
- var u = Ds(r),
- c = e.firstCreatePass && Dv(e),
- d = n[8],
- v = _v(n),
- g = !0
- if (3 & r.type || s) {
- var C = dr(r, n),
- N = s ? s(C) : C,
- G = v.length,
- Y = s
- ? function (ls) {
- return s(ln(ls[r.index]))
- }
- : r.index
- if (en(t)) {
- var F = null
- if (
- (!s &&
- u &&
- (F = (function YE(e, n, t, r) {
- var i = e.cleanup
- if (null != i)
- for (var a = 0; a < i.length - 1; a += 2) {
- var o = i[a]
- if (o === t && i[a + 1] === r) {
- var s = n[7],
- u = i[a + 2]
- return s.length > u ? s[u] : null
- }
- "string" == typeof o && (a += 2)
- }
- return null
- })(e, n, i, r.index)),
- null !== F)
- )
- ((F.__ngLastListenerFn__ || F).__ngNextListenerFn__ = a),
- (F.__ngLastListenerFn__ = a),
- (g = !1)
- else {
- a = Ac(r, n, d, a, !1)
- var Re = t.listen(N, i, a)
- v.push(a, Re), c && c.push(i, Y, G, G + 1)
- }
- } else
- (a = Ac(r, n, d, a, !0)),
- N.addEventListener(i, a, o),
- v.push(a),
- c && c.push(i, Y, G, o)
- } else a = Ac(r, n, d, a, !1)
- var kt,
- Ke = r.outputs
- if (g && null !== Ke && (kt = Ke[i])) {
- var yt = kt.length
- if (yt)
- for (var Dn = 0; Dn < yt; Dn += 2) {
- var us = n[kt[Dn]][kt[Dn + 1]].subscribe(a),
- ro = v.length
- v.push(a, us), c && c.push(i, r.index, ro, -(ro + 1))
- }
- }
- })(a, i, i[11], o, e, n, !!t, r),
- Ue
- )
- }
- function fp(e, n, t, r) {
- try {
- return !1 !== t(r)
- } catch (i) {
- return Cv(e, i), !1
- }
- }
- function Ac(e, n, t, r, i) {
- return function a(o) {
- if (o === Function) return r
- var s = 2 & e.flags ? er(e.index, n) : n
- 0 == (32 & n[2]) && pc(s)
- for (var u = fp(n, 0, r, o), l = a.__ngNextListenerFn__; l; )
- (u = fp(n, 0, l, o) && u), (l = l.__ngNextListenerFn__)
- return i && !1 === u && (o.preventDefault(), (o.returnValue = !1)), u
- }
- }
- function pe() {
- var e =
- arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1
- return $_(e)
- }
- function Wi(e, n, t) {
- return nu(e, "", n, "", t), Wi
- }
- function nu(e, n, t, r, i) {
- var a = ee(),
- o = Aa(a, n, t, r)
- return o !== Qe && ir(mt(), tn(), a, e, o, a[11], i, !1), nu
- }
- function ci(e, n, t, r, i, a, o) {
- var s = ee(),
- u = Oa(s, n, t, r, i, a)
- return u !== Qe && ir(mt(), tn(), s, e, u, s[11], o, !1), ci
- }
- function _p(e, n, t, r, i) {
- for (
- var a = e[t + 1], o = null === n, s = r ? wr(a) : ui(a), u = !1;
- 0 !== s && (!1 === u || o);
-
- ) {
- var c = e[s + 1]
- nk(e[s], n) && ((u = !0), (e[s + 1] = r ? ec(c) : Ql(c))),
- (s = r ? wr(c) : ui(c))
- }
- u && (e[t + 1] = r ? Ql(a) : ec(a))
- }
- function nk(e, n) {
- return (
- null === e ||
- null == n ||
- (Array.isArray(e) ? e[1] : e) === n ||
- (!(!Array.isArray(e) || "string" != typeof n) && ga(e, n) >= 0)
- )
- }
- var yn = {
- textEnd: 0,
- key: 0,
- keyEnd: 0,
- value: 0,
- valueEnd: 0,
- }
- function Dp(e) {
- return e.substring(yn.key, yn.keyEnd)
- }
- function bp(e, n) {
- var t = yn.textEnd
- return t === n
- ? -1
- : ((n = yn.keyEnd =
- (function ok(e, n, t) {
- for (; n < t && e.charCodeAt(n) > 32; ) n++
- return n
- })(e, (yn.key = n), t)),
- Ba(e, n, t))
- }
- function Ba(e, n, t) {
- for (; n < t && e.charCodeAt(n) <= 32; ) n++
- return n
- }
- function ru(e, n) {
- return (
- (function Mr(e, n, t, r) {
- var i = ee(),
- a = mt(),
- o = si(2)
- a.firstUpdatePass && Mp(a, e, o, r),
- n !== Qe &&
- Pn(i, o, n) &&
- Ap(
- a,
- a.data[Hn()],
- i,
- i[11],
- e,
- (i[o + 1] = (function mk(e, n) {
- return (
- null == e ||
- ("string" == typeof n
- ? (e += n)
- : "object" == typeof e && (e = W(bi(e)))),
- e
- )
- })(n, t)),
- r,
- o
- )
- })(e, n, null, !0),
- ru
- )
- }
- function qr(e, n) {
- for (
- var t = (function ik(e) {
- return (
- (function Ep(e) {
- ;(yn.key = 0),
- (yn.keyEnd = 0),
- (yn.value = 0),
- (yn.valueEnd = 0),
- (yn.textEnd = e.length)
- })(e),
- bp(e, Ba(e, 0, yn.textEnd))
- )
- })(n);
- t >= 0;
- t = bp(n, t)
- )
- nr(e, Dp(n), !0)
- }
- function Ir(e, n, t, r) {
- var i = mt(),
- a = si(2)
- i.firstUpdatePass && Mp(i, null, a, r)
- var o = ee()
- if (t !== Qe && Pn(o, a, t)) {
- var s = i.data[Hn()]
- if (Pp(s, r) && !Tp(i, a)) {
- var l = r ? s.classesWithoutHost : s.stylesWithoutHost
- null !== l && (t = Ee(l, t || "")), Ic(i, s, o, t, r)
- } else
- !(function gk(e, n, t, r, i, a, o, s) {
- i === Qe && (i = Rt)
- for (
- var u = 0,
- l = 0,
- c = 0 < i.length ? i[0] : null,
- d = 0 < a.length ? a[0] : null;
- null !== c || null !== d;
-
- ) {
- var v = u < i.length ? i[u + 1] : void 0,
- g = l < a.length ? a[l + 1] : void 0,
- C = null,
- N = void 0
- c === d
- ? ((u += 2), (l += 2), v !== g && ((C = d), (N = g)))
- : null === d || (null !== c && c < d)
- ? ((u += 2), (C = c))
- : ((l += 2), (C = d), (N = g)),
- null !== C && Ap(e, n, t, r, C, N, o, s),
- (c = u < i.length ? i[u] : null),
- (d = l < a.length ? a[l] : null)
- }
- })(
- i,
- s,
- o,
- o[11],
- o[a + 1],
- (o[a + 1] = (function pk(e, n, t) {
- if (null == t || "" === t) return Rt
- var r = [],
- i = bi(t)
- if (Array.isArray(i))
- for (var a = 0; a < i.length; a++) e(r, i[a], !0)
- else if ("object" == typeof i)
- for (var o in i) i.hasOwnProperty(o) && e(r, o, i[o])
- else "string" == typeof i && n(r, i)
- return r
- })(e, n, t)),
- r,
- a
- )
- }
- }
- function Tp(e, n) {
- return n >= e.expandoStartIndex
- }
- function Mp(e, n, t, r) {
- var i = e.data
- if (null === i[t + 1]) {
- var a = i[Hn()],
- o = Tp(e, t)
- Pp(a, r) && null === n && !o && (n = !1),
- (n = (function fk(e, n, t, r) {
- var i = (function hl(e) {
- var n = $e.lFrame.currentDirectiveIndex
- return -1 === n ? null : e[n]
- })(e),
- a = r ? n.residualClasses : n.residualStyles
- if (null === i)
- 0 === (r ? n.classBindings : n.styleBindings) &&
- ((t = Bo((t = Oc(null, e, n, t, r)), n.attrs, r)), (a = null))
- else {
- var s = n.directiveStylingLast
- if (-1 === s || e[s] !== i)
- if (((t = Oc(i, e, n, t, r)), null === a)) {
- var l = (function dk(e, n, t) {
- var r = t ? n.classBindings : n.styleBindings
- if (0 !== ui(r)) return e[wr(r)]
- })(e, n, r)
- void 0 !== l &&
- Array.isArray(l) &&
- (function hk(e, n, t, r) {
- e[wr(t ? n.classBindings : n.styleBindings)] = r
- })(
- e,
- n,
- r,
- (l = Bo((l = Oc(null, e, n, l[1], r)), n.attrs, r))
- )
- } else
- a = (function vk(e, n, t) {
- for (
- var r = void 0,
- i = n.directiveEnd,
- a = 1 + n.directiveStylingLast;
- a < i;
- a++
- )
- r = Bo(r, e[a].hostAttrs, t)
- return Bo(r, n.attrs, t)
- })(e, n, r)
- }
- return (
- void 0 !== a &&
- (r ? (n.residualClasses = a) : (n.residualStyles = a)),
- t
- )
- })(i, a, n, r)),
- (function ek(e, n, t, r, i, a) {
- var o = a ? n.classBindings : n.styleBindings,
- s = wr(o),
- u = ui(o)
- e[r] = t
- var c,
- l = !1
- if (
- (Array.isArray(t)
- ? (null === (c = t[1]) || ga(t, c) > 0) && (l = !0)
- : (c = t),
- i)
- )
- if (0 !== u) {
- var g = wr(e[s + 1])
- ;(e[r + 1] = qs(g, s)),
- 0 !== g && (e[g + 1] = Xl(e[g + 1], r)),
- (e[s + 1] = (function lC(e, n) {
- return (131071 & e) | (n << 17)
- })(e[s + 1], r))
- } else
- (e[r + 1] = qs(s, 0)),
- 0 !== s && (e[s + 1] = Xl(e[s + 1], r)),
- (s = r)
- else
- (e[r + 1] = qs(u, 0)),
- 0 === s ? (s = r) : (e[u + 1] = Xl(e[u + 1], r)),
- (u = r)
- l && (e[r + 1] = Ql(e[r + 1])),
- _p(e, c, r, !0),
- _p(e, c, r, !1),
- (function tk(e, n, t, r, i) {
- var a = i ? e.residualClasses : e.residualStyles
- null != a &&
- "string" == typeof n &&
- ga(a, n) >= 0 &&
- (t[r + 1] = ec(t[r + 1]))
- })(n, c, e, r, a),
- (o = qs(s, u)),
- a ? (n.classBindings = o) : (n.styleBindings = o)
- })(i, a, n, t, o, r)
- }
- }
- function Oc(e, n, t, r, i) {
- var a = null,
- o = t.directiveEnd,
- s = t.directiveStylingLast
- for (
- -1 === s ? (s = t.directiveStart) : s++;
- s < o && ((r = Bo(r, (a = n[s]).hostAttrs, i)), a !== e);
-
- )
- s++
- return null !== e && (t.directiveStylingLast = s), r
- }
- function Bo(e, n, t) {
- var r = t ? 1 : 2,
- i = -1
- if (null !== n)
- for (var a = 0; a < n.length; a++) {
- var o = n[a]
- "number" == typeof o
- ? (i = o)
- : i === r &&
- (Array.isArray(e) || (e = void 0 === e ? [] : ["", e]),
- nr(e, o, !!t || n[++a]))
- }
- return void 0 === e ? null : e
- }
- function Ap(e, n, t, r, i, a, o, s) {
- if (3 & n.type) {
- var u = e.data,
- l = u[s + 1]
- iu(
- (function Kh(e) {
- return 1 == (1 & e)
- })(l)
- ? Op(u, n, t, i, ui(l), o)
- : void 0
- ) ||
- (iu(a) ||
- ((function $h(e) {
- return 2 == (2 & e)
- })(l) &&
- (a = Op(u, null, t, i, s, o))),
- (function Jb(e, n, t, r, i) {
- var a = en(e)
- if (n)
- i
- ? a
- ? e.addClass(t, r)
- : t.classList.add(r)
- : a
- ? e.removeClass(t, r)
- : t.classList.remove(r)
- else {
- var o = -1 === r.indexOf("-") ? void 0 : rr.DashCase
- if (null == i)
- a ? e.removeStyle(t, r, o) : t.style.removeProperty(r)
- else {
- var s = "string" == typeof i && i.endsWith("!important")
- s && ((i = i.slice(0, -10)), (o |= rr.Important)),
- a
- ? e.setStyle(t, r, i, o)
- : t.style.setProperty(r, i, s ? "important" : "")
- }
- }
- })(r, o, bs(Hn(), t), i, a))
- }
- }
- function Op(e, n, t, r, i, a) {
- for (var o = null === n, s = void 0; i > 0; ) {
- var u = e[i],
- l = Array.isArray(u),
- c = l ? u[1] : u,
- d = null === c,
- v = t[i + 1]
- v === Qe && (v = d ? Rt : void 0)
- var g = d ? wl(v, r) : c === r ? v : void 0
- if ((l && !iu(g) && (g = wl(u, r)), iu(g) && ((s = g), o))) return s
- var C = e[i + 1]
- i = o ? wr(C) : ui(C)
- }
- if (null !== n) {
- var N = a ? n.residualClasses : n.residualStyles
- null != N && (s = wl(N, r))
- }
- return s
- }
- function iu(e) {
- return void 0 !== e
- }
- function Pp(e, n) {
- return 0 != (e.flags & (n ? 16 : 32))
- }
- function Mt(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
- t = ee(),
- r = mt(),
- i = e + 20,
- a = r.firstCreatePass ? Ea(r, i, 1, n, null) : r.data[i],
- o = (t[i] = Wl(t[11], n))
- zs(r, t, o, a), Hr(a, !1)
- }
- function Ha(e) {
- return ja("", e, ""), Ha
- }
- function ja(e, n, t) {
- var r = ee(),
- i = Aa(r, e, n, t)
- return i !== Qe && li(r, Hn(), i), ja
- }
- function Pc(e, n, t, r, i) {
- Ir(nr, qr, Oa(ee(), e, n, t, r, i), !0)
- }
- var zi = void 0,
- Nk = [
- "en",
- [["a", "p"], ["AM", "PM"], zi],
- [["AM", "PM"], zi, zi],
- [
- ["S", "M", "T", "W", "T", "F", "S"],
- ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- ],
- ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
- ],
- zi,
- [
- ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
- [
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec",
- ],
- [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December",
- ],
- ],
- zi,
- [
- ["B", "A"],
- ["BC", "AD"],
- ["Before Christ", "Anno Domini"],
- ],
- 0,
- [6, 0],
- ["M/d/yy", "MMM d, y", "MMMM d, y", "EEEE, MMMM d, y"],
- ["h:mm a", "h:mm:ss a", "h:mm:ss a z", "h:mm:ss a zzzz"],
- ["{1}, {0}", zi, "{1} 'at' {0}", zi],
- [
- ".",
- ",",
- ";",
- "%",
- "+",
- "-",
- "E",
- "\xd7",
- "\u2030",
- "\u221e",
- "NaN",
- ":",
- ],
- ["#,##0.###", "#,##0%", "\xa4#,##0.00", "#E0"],
- "USD",
- "$",
- "US Dollar",
- {},
- "ltr",
- function Rk(e) {
- var t = Math.floor(Math.abs(e)),
- r = e.toString().replace(/^[^.]*\.?/, "").length
- return 1 === t && 0 === r ? 1 : 5
- },
- ],
- Ua = {}
- function eg(e) {
- return (
- e in Ua ||
- (Ua[e] =
- Ot.ng &&
- Ot.ng.common &&
- Ot.ng.common.locales &&
- Ot.ng.common.locales[e]),
- Ua[e]
- )
- }
- var ke = (function () {
- return (
- ((ke = ke || {})[(ke.LocaleId = 0)] = "LocaleId"),
- (ke[(ke.DayPeriodsFormat = 1)] = "DayPeriodsFormat"),
- (ke[(ke.DayPeriodsStandalone = 2)] = "DayPeriodsStandalone"),
- (ke[(ke.DaysFormat = 3)] = "DaysFormat"),
- (ke[(ke.DaysStandalone = 4)] = "DaysStandalone"),
- (ke[(ke.MonthsFormat = 5)] = "MonthsFormat"),
- (ke[(ke.MonthsStandalone = 6)] = "MonthsStandalone"),
- (ke[(ke.Eras = 7)] = "Eras"),
- (ke[(ke.FirstDayOfWeek = 8)] = "FirstDayOfWeek"),
- (ke[(ke.WeekendRange = 9)] = "WeekendRange"),
- (ke[(ke.DateFormat = 10)] = "DateFormat"),
- (ke[(ke.TimeFormat = 11)] = "TimeFormat"),
- (ke[(ke.DateTimeFormat = 12)] = "DateTimeFormat"),
- (ke[(ke.NumberSymbols = 13)] = "NumberSymbols"),
- (ke[(ke.NumberFormats = 14)] = "NumberFormats"),
- (ke[(ke.CurrencyCode = 15)] = "CurrencyCode"),
- (ke[(ke.CurrencySymbol = 16)] = "CurrencySymbol"),
- (ke[(ke.CurrencyName = 17)] = "CurrencyName"),
- (ke[(ke.Currencies = 18)] = "Currencies"),
- (ke[(ke.Directionality = 19)] = "Directionality"),
- (ke[(ke.PluralCase = 20)] = "PluralCase"),
- (ke[(ke.ExtraData = 21)] = "ExtraData"),
- ke
- )
- })(),
- au = "en-US"
- function Ow(e, n, t) {
- var r = mt()
- if (r.firstCreatePass) {
- var i = Cr(e)
- Nc(t, r.data, r.blueprint, i, !0), Nc(n, r.data, r.blueprint, i, !1)
- }
- }
- function Nc(e, n, t, r, i) {
- if (((e = me(e)), Array.isArray(e)))
- for (var a = 0; a < e.length; a++) Nc(e[a], n, t, r, i)
- else {
- var o = mt(),
- s = ee(),
- u = Ta(e) ? e : me(e.provide),
- l = Mv(e),
- c = gn(),
- d = 1048575 & c.providerIndexes,
- v = c.directiveStart,
- g = c.providerIndexes >> 20
- if (Ta(e) || !e.multi) {
- var C = new go(l, i, de),
- N = Lc(u, n, i ? d : d + g, v)
- ;-1 === N
- ? (Fs(yo(c, s), o, u),
- xc(o, e, n.length),
- n.push(u),
- c.directiveStart++,
- c.directiveEnd++,
- i && (c.providerIndexes += 1048576),
- t.push(C),
- s.push(C))
- : ((t[N] = C), (s[N] = C))
- } else {
- var G = Lc(u, n, d + g, v),
- Y = Lc(u, n, d, d + g),
- ge = Y >= 0 && t[Y]
- if ((i && !ge) || (!i && !(G >= 0 && t[G]))) {
- Fs(yo(c, s), o, u)
- var Re = (function Rw(e, n, t, r, i) {
- var a = new go(e, t, de)
- return (
- (a.multi = []),
- (a.index = n),
- (a.componentProviders = 0),
- wg(a, i, r && !t),
- a
- )
- })(i ? Fw : Pw, t.length, i, r, l)
- !i && ge && (t[Y].providerFactory = Re),
- xc(o, e, n.length, 0),
- n.push(u),
- c.directiveStart++,
- c.directiveEnd++,
- i && (c.providerIndexes += 1048576),
- t.push(Re),
- s.push(Re)
- } else xc(o, e, G > -1 ? G : Y, wg(t[i ? Y : G], l, !i && r))
- !i && r && ge && t[Y].componentProviders++
- }
- }
- }
- function xc(e, n, t, r) {
- var i = Ta(n),
- a = (function nE(e) {
- return !!e.useClass
- })(n)
- if (i || a) {
- var u = (a ? me(n.useClass) : n).prototype.ngOnDestroy
- if (u) {
- var l = e.destroyHooks || (e.destroyHooks = [])
- if (!i && n.multi) {
- var c = l.indexOf(t)
- ;-1 === c ? l.push(t, [r, u]) : l[c + 1].push(r, u)
- } else l.push(t, u)
- }
- }
- }
- function wg(e, n, t) {
- return t && e.componentProviders++, e.multi.push(n) - 1
- }
- function Lc(e, n, t, r) {
- for (var i = t; i < r; i++) if (n[i] === e) return i
- return -1
- }
- function Pw(e, n, t, r) {
- return Vc(this.multi, [])
- }
- function Fw(e, n, t, r) {
- var a,
- i = this.multi
- if (this.providerFactory) {
- var o = this.providerFactory.componentProviders,
- s = _o(t, t[1], this.providerFactory.index, r)
- Vc(i, (a = s.slice(0, o)))
- for (var u = o; u < s.length; u++) a.push(s[u])
- } else Vc(i, (a = []))
- return a
- }
- function Vc(e, n) {
- for (var t = 0; t < e.length; t++) n.push((0, e[t])())
- return n
- }
- function $t(e) {
- var n =
- arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : []
- return function (t) {
- t.providersResolver = function (r, i) {
- return Ow(r, i ? i(e) : e, n)
- }
- }
- }
- var Nw = f(function e() {
- h(this, e)
- }),
- Sg = f(function e() {
- h(this, e)
- }),
- Lw = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "resolveComponentFactory",
- value: function (t) {
- throw (function xw(e) {
- var n = Error(
- "No component factory found for ".concat(
- W(e),
- ". Did you add it to @NgModule.entryComponents?"
- )
- )
- return (n.ngComponent = e), n
- })(t)
- },
- },
- ]),
- e
- )
- })(),
- Wa = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (e.NULL = new Lw()), e
- })()
- function Vw() {
- return za(gn(), ee())
- }
- function za(e, n) {
- return new gr(dr(e, n))
- }
- var gr = (function () {
- var e = f(function n(t) {
- h(this, n), (this.nativeElement = t)
- })
- return (e.__NG_ELEMENT_ID__ = Vw), e
- })()
- function Bw(e) {
- return e instanceof gr ? e.nativeElement : e
- }
- var Mg = f(function e() {
- h(this, e)
- }),
- Zi = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.__NG_ELEMENT_ID__ = function () {
- return (function jw() {
- var e = ee(),
- t = er(gn().index, e)
- return (function Hw(e) {
- return e[11]
- })(Vr(t) ? t : e)
- })()
- }),
- e
- )
- })(),
- Uw = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵprov = te({
- token: e,
- providedIn: "root",
- factory: function () {
- return null
- },
- })),
- e
- )
- })(),
- cu = f(function e(n) {
- h(this, e),
- (this.full = n),
- (this.major = n.split(".")[0]),
- (this.minor = n.split(".")[1]),
- (this.patch = n.split(".").slice(2).join("."))
- }),
- Gw = new cu("13.1.2"),
- Bc = {}
- function fu(e, n, t, r) {
- for (
- var i =
- arguments.length > 4 && void 0 !== arguments[4] && arguments[4];
- null !== t;
-
- ) {
- var a = n[t.index]
- if ((null !== a && r.push(ln(a)), br(a)))
- for (var o = 10; o < a.length; o++) {
- var s = a[o],
- u = s[1].firstChild
- null !== u && fu(s[1], s, u, r)
- }
- var l = t.type
- if (8 & l) fu(e, n, t.child, r)
- else if (32 & l)
- for (var c = jl(t, n), d = void 0; (d = c()); ) r.push(d)
- else if (16 & l) {
- var v = Lh(n, t)
- if (Array.isArray(v)) r.push.apply(r, pt(v))
- else {
- var g = Po(n[16])
- fu(g[1], g, v, r, !0)
- }
- }
- t = i ? t.projectionNext : t.next
- }
- return r
- }
- var Wo = (function () {
- function e(n, t) {
- h(this, e),
- (this._lView = n),
- (this._cdRefInjectingView = t),
- (this._appRef = null),
- (this._attachedToViewContainer = !1)
- }
- return (
- f(e, [
- {
- key: "rootNodes",
- get: function () {
- var t = this._lView,
- r = t[1]
- return fu(r, t, r.firstChild, [])
- },
- },
- {
- key: "context",
- get: function () {
- return this._lView[8]
- },
- set: function (t) {
- this._lView[8] = t
- },
- },
- {
- key: "destroyed",
- get: function () {
- return 256 == (256 & this._lView[2])
- },
- },
- {
- key: "destroy",
- value: function () {
- if (this._appRef) this._appRef.detachView(this)
- else if (this._attachedToViewContainer) {
- var t = this._lView[3]
- if (br(t)) {
- var r = t[8],
- i = r ? r.indexOf(this) : -1
- i > -1 && (Zl(t, i), Ns(r, i))
- }
- this._attachedToViewContainer = !1
- }
- Mh(this._lView[1], this._lView)
- },
- },
- {
- key: "onDestroy",
- value: function (t) {
- lv(this._lView[1], this._lView, null, t)
- },
- },
- {
- key: "markForCheck",
- value: function () {
- pc(this._cdRefInjectingView || this._lView)
- },
- },
- {
- key: "detach",
- value: function () {
- this._lView[2] &= -129
- },
- },
- {
- key: "reattach",
- value: function () {
- this._lView[2] |= 128
- },
- },
- {
- key: "detectChanges",
- value: function () {
- mc(this._lView[1], this._lView, this.context)
- },
- },
- {
- key: "checkNoChanges",
- value: function () {
- !(function zC(e, n, t) {
- Es(!0)
- try {
- mc(e, n, t)
- } finally {
- Es(!1)
- }
- })(this._lView[1], this._lView, this.context)
- },
- },
- {
- key: "attachToViewContainerRef",
- value: function () {
- if (this._appRef)
- throw new Error(
- "This view is already attached directly to the ApplicationRef!"
- )
- this._attachedToViewContainer = !0
- },
- },
- {
- key: "detachFromAppRef",
- value: function () {
- ;(this._appRef = null),
- (function jb(e, n) {
- Fo(e, n, n[11], 2, null, null)
- })(this._lView[1], this._lView)
- },
- },
- {
- key: "attachToAppRef",
- value: function (t) {
- if (this._attachedToViewContainer)
- throw new Error(
- "This view is already attached to a ViewContainer!"
- )
- this._appRef = t
- },
- },
- ]),
- e
- )
- })(),
- Ww = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return h(this, t), ((i = n.call(this, r))._view = r), i
- }
- return (
- f(t, [
- {
- key: "detectChanges",
- value: function () {
- yv(this._view)
- },
- },
- {
- key: "checkNoChanges",
- value: function () {
- !(function ZC(e) {
- Es(!0)
- try {
- yv(e)
- } finally {
- Es(!1)
- }
- })(this._view)
- },
- },
- {
- key: "context",
- get: function () {
- return null
- },
- },
- ]),
- t
- )
- })(Wo),
- Ig = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return h(this, t), ((i = n.call(this)).ngModule = r), i
- }
- return (
- f(t, [
- {
- key: "resolveComponentFactory",
- value: function (i) {
- var a = In(i)
- return new Hc(a, this.ngModule)
- },
- },
- ]),
- t
- )
- })(Wa)
- function Ag(e) {
- var n = []
- for (var t in e)
- e.hasOwnProperty(t) &&
- n.push({
- propName: e[t],
- templateName: t,
- })
- return n
- }
- var Zw = new ft("SCHEDULER_TOKEN", {
- providedIn: "root",
- factory: function () {
- return Dh
- },
- }),
- Hc = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- return (
- h(this, t),
- ((a = n.call(this)).componentDef = r),
- (a.ngModule = i),
- (a.componentType = r.type),
- (a.selector = (function sC(e) {
- return e.map(oC).join(",")
- })(r.selectors)),
- (a.ngContentSelectors = r.ngContentSelectors
- ? r.ngContentSelectors
- : []),
- (a.isBoundToModule = !!i),
- a
- )
- }
- return (
- f(t, [
- {
- key: "inputs",
- get: function () {
- return Ag(this.componentDef.inputs)
- },
- },
- {
- key: "outputs",
- get: function () {
- return Ag(this.componentDef.outputs)
- },
- },
- {
- key: "create",
- value: function (i, a, o, s) {
- var F,
- ge,
- u = (s = s || this.ngModule)
- ? (function qw(e, n) {
- return {
- get: function (r, i, a) {
- var o = e.get(r, Bc, a)
- return o !== Bc || i === Bc ? o : n.get(r, i, a)
- },
- }
- })(i, s.injector)
- : i,
- l = u.get(Mg, md),
- c = u.get(Uw, null),
- d = l.createRenderer(null, this.componentDef),
- v = this.componentDef.selectors[0][0] || "div",
- g = o
- ? (function uv(e, n, t) {
- if (en(e))
- return e.selectRootElement(n, t === Vn.ShadowDom)
- var i = "string" == typeof n ? e.querySelector(n) : n
- return (i.textContent = ""), i
- })(d, o, this.componentDef.encapsulation)
- : zl(
- l.createRenderer(null, this.componentDef),
- v,
- (function zw(e) {
- var n = e.toLowerCase()
- return "svg" === n
- ? pd
- : "math" === n
- ? "http://www.w3.org/1998/MathML/"
- : null
- })(v)
- ),
- C = this.componentDef.onPush ? 576 : 528,
- N = (function xv(e, n) {
- return {
- components: [],
- scheduler: e || Dh,
- clean: qC,
- playerHandler: n || null,
- flags: 0,
- }
- })(),
- G = Ys(0, null, null, 1, 0, null, null, null, null, null),
- Y = Ro(null, G, N, C, null, null, l, d, c, u)
- ks(Y)
- try {
- var Re = (function Rv(e, n, t, r, i, a) {
- var o = t[1]
- t[20] = e
- var u = Ea(o, 20, 2, "#host", null),
- l = (u.mergedAttrs = n.hostAttrs)
- null !== l &&
- (Qs(u, l, !0),
- null !== e &&
- (Is(i, e, l),
- null !== u.classes && Jl(i, e, u.classes),
- null !== u.styles && Hh(i, e, u.styles)))
- var c = r.createRenderer(e, n),
- d = Ro(
- t,
- ov(n),
- null,
- n.onPush ? 64 : 16,
- t[20],
- u,
- r,
- c,
- a || null,
- null
- )
- return (
- o.firstCreatePass &&
- (Fs(yo(u, t), o, n.type),
- vv(o, u),
- pv(u, t.length, 1)),
- Js(t, d),
- (t[20] = d)
- )
- })(g, this.componentDef, Y, l, d)
- if (g)
- if (o) Is(d, g, ["ng-version", Gw.full])
- else {
- var Ke = (function uC(e) {
- for (
- var n = [], t = [], r = 1, i = 2;
- r < e.length;
-
- ) {
- var a = e[r]
- if ("string" == typeof a)
- 2 === i
- ? "" !== a && n.push(a, e[++r])
- : 8 === i && t.push(a)
- else {
- if (!kr(i)) break
- i = a
- }
- r++
- }
- return {
- attrs: n,
- classes: t,
- }
- })(this.componentDef.selectors[0]),
- kt = Ke.attrs,
- yt = Ke.classes
- kt && Is(d, g, kt),
- yt && yt.length > 0 && Jl(d, g, yt.join(" "))
- }
- if (((ge = sl(G, 20)), void 0 !== a))
- for (
- var Dn = (ge.projection = []), Wn = 0;
- Wn < this.ngContentSelectors.length;
- Wn++
- ) {
- var Xr = a[Wn]
- Dn.push(null != Xr ? Array.from(Xr) : null)
- }
- ;(F = (function Nv(e, n, t, r, i) {
- var a = t[1],
- o = (function IC(e, n, t) {
- var r = gn()
- e.firstCreatePass &&
- (t.providersResolver && t.providersResolver(t),
- gv(e, r, n, ka(e, n, 1, null), t))
- var a = _o(n, e, r.directiveStart, r)
- On(a, n)
- var o = dr(r, n)
- return o && On(o, n), a
- })(a, t, n)
- if (
- (r.components.push(o),
- (e[8] = o),
- i &&
- i.forEach(function (c) {
- return c(o, n)
- }),
- n.contentQueries)
- ) {
- var s = gn()
- n.contentQueries(1, o, s.directiveStart)
- }
- var u = gn()
- return (
- !a.firstCreatePass ||
- (null === n.hostBindings && null === n.hostAttrs) ||
- (_i(u.index),
- dv(t[1], u, 0, u.directiveStart, u.directiveEnd, n),
- hv(n, o)),
- o
- )
- })(Re, this.componentDef, Y, N, [gE])),
- No(G, Y, null)
- } finally {
- ws()
- }
- return new Kw(this.componentType, F, za(ge, Y), Y, ge)
- },
- },
- ]),
- t
- )
- })(Sg),
- Kw = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a, o, s) {
- var u
- return (
- h(this, t),
- ((u = n.call(this)).location = a),
- (u._rootLView = o),
- (u._tNode = s),
- (u.instance = i),
- (u.hostView = u.changeDetectorRef = new Ww(o)),
- (u.componentType = r),
- u
- )
- }
- return (
- f(t, [
- {
- key: "injector",
- get: function () {
- return new fa(this._tNode, this._rootLView)
- },
- },
- {
- key: "destroy",
- value: function () {
- this.hostView.destroy()
- },
- },
- {
- key: "onDestroy",
- value: function (i) {
- this.hostView.onDestroy(i)
- },
- },
- ]),
- t
- )
- })(Nw),
- Za = f(function e() {
- h(this, e)
- }),
- Jw = f(function e() {
- h(this, e)
- }),
- qa = new Map()
- var Fg = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i) {
- var a
- h(this, t),
- ((a = n.call(this))._parent = i),
- (a._bootstrapComponents = []),
- (a.injector = he(a)),
- (a.destroyCbs = []),
- (a.componentFactoryResolver = new Ig(he(a)))
- var o = lr(r)
- return (
- (a._bootstrapComponents = Gr(o.bootstrap)),
- (a._r3Injector = Tv(
- r,
- i,
- [
- {
- provide: Za,
- useValue: he(a),
- },
- {
- provide: Wa,
- useValue: a.componentFactoryResolver,
- },
- ],
- W(r)
- )),
- a._r3Injector._resolveInjectorDefTypes(),
- (a.instance = a.get(r)),
- a
- )
- }
- return (
- f(t, [
- {
- key: "get",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : Kn.THROW_IF_NOT_FOUND,
- o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : je.Default
- return i === Kn || i === Za || i === _c
- ? this
- : this._r3Injector.get(i, a, o)
- },
- },
- {
- key: "destroy",
- value: function () {
- var i = this._r3Injector
- !i.destroyed && i.destroy(),
- this.destroyCbs.forEach(function (a) {
- return a()
- }),
- (this.destroyCbs = null)
- },
- },
- {
- key: "onDestroy",
- value: function (i) {
- this.destroyCbs.push(i)
- },
- },
- ]),
- t
- )
- })(Za),
- jc = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return (
- h(this, t),
- ((i = n.call(this)).moduleType = r),
- null !== lr(r) &&
- (function Qw(e) {
- var n = new Set()
- !(function t(r) {
- var i = lr(r, !0),
- a = i.id
- null !== a &&
- ((function Og(e, n, t) {
- if (n && n !== t)
- throw new Error(
- "Duplicate module registered for "
- .concat(e, " - ")
- .concat(W(n), " vs ")
- .concat(W(n.name))
- )
- })(a, qa.get(a), r),
- qa.set(a, r))
- var l,
- u = le(Gr(i.imports))
- try {
- for (u.s(); !(l = u.n()).done; ) {
- var c = l.value
- n.has(c) || (n.add(c), t(c))
- }
- } catch (d) {
- u.e(d)
- } finally {
- u.f()
- }
- })(e)
- })(r),
- i
- )
- }
- return (
- f(t, [
- {
- key: "create",
- value: function (i) {
- return new Fg(this.moduleType, i)
- },
- },
- ]),
- t
- )
- })(Jw)
- function $a(e, n, t, r) {
- return Rg(ee(), Bn(), e, n, t, r)
- }
- function Rg(e, n, t, r, i, a) {
- var o = n + t
- return Pn(e, o, i)
- ? (function zr(e, n, t) {
- return (e[n] = t)
- })(e, o + 1, a ? r.call(a, i) : r(i))
- : (function zo(e, n) {
- var t = e[n]
- return t === Qe ? void 0 : t
- })(e, o + 1)
- }
- var v0 = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r,
- i = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]
- return h(this, t), ((r = n.call(this)).__isAsync = i), r
- }
- return (
- f(t, [
- {
- key: "emit",
- value: function (i) {
- T(D(t.prototype), "next", this).call(this, i)
- },
- },
- {
- key: "subscribe",
- value: function (i, a, o) {
- var s,
- u,
- l,
- c = i,
- d =
- a ||
- function () {
- return null
- },
- v = o
- if (i && "object" == typeof i) {
- var g = i
- ;(c =
- null === (s = g.next) || void 0 === s ? void 0 : s.bind(g)),
- (d =
- null === (u = g.error) || void 0 === u
- ? void 0
- : u.bind(g)),
- (v =
- null === (l = g.complete) || void 0 === l
- ? void 0
- : l.bind(g))
- }
- this.__isAsync &&
- ((d = Uc(d)), c && (c = Uc(c)), v && (v = Uc(v)))
- var C = T(D(t.prototype), "subscribe", this).call(this, {
- next: c,
- error: d,
- complete: v,
- })
- return i instanceof bt && i.add(C), C
- },
- },
- ]),
- t
- )
- })(Ii)
- function Uc(e) {
- return function (n) {
- setTimeout(e, void 0, n)
- }
- }
- var rn = v0
- function p0() {
- return this._results[Ma()]()
- }
- var g0 = (function () {
- function e() {
- var n =
- arguments.length > 0 && void 0 !== arguments[0] && arguments[0]
- h(this, e),
- (this._emitDistinctChangesOnly = n),
- (this.dirty = !0),
- (this._results = []),
- (this._changesDetected = !1),
- (this._changes = null),
- (this.length = 0),
- (this.first = void 0),
- (this.last = void 0)
- var t = Ma(),
- r = e.prototype
- r[t] || (r[t] = p0)
- }
- return (
- f(e, [
- {
- key: "changes",
- get: function () {
- return this._changes || (this._changes = new rn())
- },
- },
- {
- key: "get",
- value: function (t) {
- return this._results[t]
- },
- },
- {
- key: "map",
- value: function (t) {
- return this._results.map(t)
- },
- },
- {
- key: "filter",
- value: function (t) {
- return this._results.filter(t)
- },
- },
- {
- key: "find",
- value: function (t) {
- return this._results.find(t)
- },
- },
- {
- key: "reduce",
- value: function (t, r) {
- return this._results.reduce(t, r)
- },
- },
- {
- key: "forEach",
- value: function (t) {
- this._results.forEach(t)
- },
- },
- {
- key: "some",
- value: function (t) {
- return this._results.some(t)
- },
- },
- {
- key: "toArray",
- value: function () {
- return this._results.slice()
- },
- },
- {
- key: "toString",
- value: function () {
- return this._results.toString()
- },
- },
- {
- key: "reset",
- value: function (t, r) {
- var i = this
- i.dirty = !1
- var a = hr(t)
- ;(this._changesDetected = !(function vD(e, n, t) {
- if (e.length !== n.length) return !1
- for (var r = 0; r < e.length; r++) {
- var i = e[r],
- a = n[r]
- if ((t && ((i = t(i)), (a = t(a))), a !== i)) return !1
- }
- return !0
- })(i._results, a, r)) &&
- ((i._results = a),
- (i.length = a.length),
- (i.last = a[this.length - 1]),
- (i.first = a[0]))
- },
- },
- {
- key: "notifyOnChanges",
- value: function () {
- this._changes &&
- (this._changesDetected || !this._emitDistinctChangesOnly) &&
- this._changes.emit(this)
- },
- },
- {
- key: "setDirty",
- value: function () {
- this.dirty = !0
- },
- },
- {
- key: "destroy",
- value: function () {
- this.changes.complete(), this.changes.unsubscribe()
- },
- },
- ]),
- e
- )
- })()
- Symbol
- var fi = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (e.__NG_ELEMENT_ID__ = _0), e
- })(),
- y0 = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this))._declarationLView = r),
- (o._declarationTContainer = i),
- (o.elementRef = a),
- o
- )
- }
- return (
- f(t, [
- {
- key: "createEmbeddedView",
- value: function (i) {
- var a = this._declarationTContainer.tViews,
- o = Ro(
- this._declarationLView,
- a,
- i,
- 16,
- null,
- a.declTNode,
- null,
- null,
- null,
- null
- )
- o[17] =
- this._declarationLView[this._declarationTContainer.index]
- var u = this._declarationLView[19]
- return (
- null !== u && (o[19] = u.createEmbeddedView(a)),
- No(a, o, i),
- new Wo(o)
- )
- },
- },
- ]),
- t
- )
- })(fi)
- function _0() {
- return du(gn(), ee())
- }
- function du(e, n) {
- return 4 & e.type ? new y0(n, e, za(e, n)) : null
- }
- var $r = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (e.__NG_ELEMENT_ID__ = D0), e
- })()
- function D0() {
- return Gg(gn(), ee())
- }
- var jg = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this))._lContainer = r),
- (o._hostTNode = i),
- (o._hostLView = a),
- o
- )
- }
- return (
- f(t, [
- {
- key: "element",
- get: function () {
- return za(this._hostTNode, this._hostLView)
- },
- },
- {
- key: "injector",
- get: function () {
- return new fa(this._hostTNode, this._hostLView)
- },
- },
- {
- key: "parentInjector",
- get: function () {
- var i = Ps(this._hostTNode, this._hostLView)
- if (Fd(i)) {
- var a = ca(i, this._hostLView),
- o = la(i)
- return new fa(a[1].data[o + 8], a)
- }
- return new fa(null, this._hostLView)
- },
- },
- {
- key: "clear",
- value: function () {
- for (; this.length > 0; ) this.remove(this.length - 1)
- },
- },
- {
- key: "get",
- value: function (i) {
- var a = Ug(this._lContainer)
- return (null !== a && a[i]) || null
- },
- },
- {
- key: "length",
- get: function () {
- return this._lContainer.length - 10
- },
- },
- {
- key: "createEmbeddedView",
- value: function (i, a, o) {
- var s = i.createEmbeddedView(a || {})
- return this.insert(s, o), s
- },
- },
- {
- key: "createComponent",
- value: function (i, a, o, s, u) {
- var c,
- l =
- i &&
- !(function bo(e) {
- return "function" == typeof e
- })(i)
- if (l) c = a
- else {
- var d = a || {}
- ;(c = d.index),
- (o = d.injector),
- (s = d.projectableNodes),
- (u = d.ngModuleRef)
- }
- var v = l ? i : new Hc(In(i)),
- g = o || this.parentInjector
- if (!u && null == v.ngModule && g) {
- var C = g.get(Za, null)
- C && (u = C)
- }
- var N = v.create(g, s, void 0, u)
- return this.insert(N.hostView, c), N
- },
- },
- {
- key: "insert",
- value: function (i, a) {
- var o = i._lView,
- s = o[1]
- if (
- (function L_(e) {
- return br(e[3])
- })(o)
- ) {
- var u = this.indexOf(i)
- if (-1 !== u) this.detach(u)
- else {
- var l = o[3],
- c = new jg(l, l[6], l[3])
- c.detach(c.indexOf(i))
- }
- }
- var d = this._adjustIndex(a),
- v = this._lContainer
- !(function Gb(e, n, t, r) {
- var i = 10 + r,
- a = t.length
- r > 0 && (t[i - 1][4] = n),
- r < a - 10
- ? ((n[4] = t[i]), Gd(t, 10 + r, n))
- : (t.push(n), (n[4] = null)),
- (n[3] = t)
- var o = n[17]
- null !== o &&
- t !== o &&
- (function Wb(e, n) {
- var t = e[9]
- n[16] !== n[3][3][16] && (e[2] = !0),
- null === t ? (e[9] = [n]) : t.push(n)
- })(o, n)
- var s = n[19]
- null !== s && s.insertView(e), (n[2] |= 128)
- })(s, o, v, d)
- var g = Kl(d, v),
- C = o[11],
- N = Ws(C, v[7])
- return (
- null !== N &&
- (function Hb(e, n, t, r, i, a) {
- ;(r[0] = i), (r[6] = n), Fo(e, r, t, 1, i, a)
- })(s, v[6], C, o, N, g),
- i.attachToViewContainerRef(),
- Gd(Gc(v), d, i),
- i
- )
- },
- },
- {
- key: "move",
- value: function (i, a) {
- return this.insert(i, a)
- },
- },
- {
- key: "indexOf",
- value: function (i) {
- var a = Ug(this._lContainer)
- return null !== a ? a.indexOf(i) : -1
- },
- },
- {
- key: "remove",
- value: function (i) {
- var a = this._adjustIndex(i, -1),
- o = Zl(this._lContainer, a)
- o && (Ns(Gc(this._lContainer), a), Mh(o[1], o))
- },
- },
- {
- key: "detach",
- value: function (i) {
- var a = this._adjustIndex(i, -1),
- o = Zl(this._lContainer, a)
- return o && null != Ns(Gc(this._lContainer), a)
- ? new Wo(o)
- : null
- },
- },
- {
- key: "_adjustIndex",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : 0
- return null == i ? this.length + a : i
- },
- },
- ]),
- t
- )
- })($r)
- function Ug(e) {
- return e[8]
- }
- function Gc(e) {
- return e[8] || (e[8] = [])
- }
- function Gg(e, n) {
- var t,
- r = n[e.index]
- if (br(r)) t = r
- else {
- var i
- if (8 & e.type) i = ln(r)
- else {
- var a = n[11]
- i = a.createComment("")
- var o = dr(e, n)
- Ui(
- a,
- Ws(a, o),
- i,
- (function $b(e, n) {
- return en(e) ? e.nextSibling(n) : n.nextSibling
- })(a, o),
- !1
- )
- }
- ;(n[e.index] = t = mv(r, n, i, e)), Js(n, t)
- }
- return new jg(t, e, n)
- }
- var k0 = (function () {
- function e(n) {
- h(this, e), (this.queryList = n), (this.matches = null)
- }
- return (
- f(e, [
- {
- key: "clone",
- value: function () {
- return new e(this.queryList)
- },
- },
- {
- key: "setDirty",
- value: function () {
- this.queryList.setDirty()
- },
- },
- ]),
- e
- )
- })(),
- w0 = (function () {
- function e() {
- var n =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : []
- h(this, e), (this.queries = n)
- }
- return (
- f(e, [
- {
- key: "createEmbeddedView",
- value: function (t) {
- var r = t.queries
- if (null !== r) {
- for (
- var i =
- null !== t.contentQueries
- ? t.contentQueries[0]
- : r.length,
- a = [],
- o = 0;
- o < i;
- o++
- ) {
- var s = r.getByIndex(o)
- a.push(this.queries[s.indexInDeclarationView].clone())
- }
- return new e(a)
- }
- return null
- },
- },
- {
- key: "insertView",
- value: function (t) {
- this.dirtyQueriesWithMatches(t)
- },
- },
- {
- key: "detachView",
- value: function (t) {
- this.dirtyQueriesWithMatches(t)
- },
- },
- {
- key: "dirtyQueriesWithMatches",
- value: function (t) {
- for (var r = 0; r < this.queries.length; r++)
- null !== $g(t, r).matches && this.queries[r].setDirty()
- },
- },
- ]),
- e
- )
- })(),
- Wg = f(function e(n, t) {
- var r =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : null
- h(this, e), (this.predicate = n), (this.flags = t), (this.read = r)
- }),
- S0 = (function () {
- function e() {
- var n =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : []
- h(this, e), (this.queries = n)
- }
- return (
- f(e, [
- {
- key: "elementStart",
- value: function (t, r) {
- for (var i = 0; i < this.queries.length; i++)
- this.queries[i].elementStart(t, r)
- },
- },
- {
- key: "elementEnd",
- value: function (t) {
- for (var r = 0; r < this.queries.length; r++)
- this.queries[r].elementEnd(t)
- },
- },
- {
- key: "embeddedTView",
- value: function (t) {
- for (var r = null, i = 0; i < this.length; i++) {
- var a = null !== r ? r.length : 0,
- o = this.getByIndex(i).embeddedTView(t, a)
- o &&
- ((o.indexInDeclarationView = i),
- null !== r ? r.push(o) : (r = [o]))
- }
- return null !== r ? new e(r) : null
- },
- },
- {
- key: "template",
- value: function (t, r) {
- for (var i = 0; i < this.queries.length; i++)
- this.queries[i].template(t, r)
- },
- },
- {
- key: "getByIndex",
- value: function (t) {
- return this.queries[t]
- },
- },
- {
- key: "length",
- get: function () {
- return this.queries.length
- },
- },
- {
- key: "track",
- value: function (t) {
- this.queries.push(t)
- },
- },
- ]),
- e
- )
- })(),
- T0 = (function () {
- function e(n) {
- var t =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : -1
- h(this, e),
- (this.metadata = n),
- (this.matches = null),
- (this.indexInDeclarationView = -1),
- (this.crossesNgTemplate = !1),
- (this._appliesToNextNode = !0),
- (this._declarationNodeIndex = t)
- }
- return (
- f(e, [
- {
- key: "elementStart",
- value: function (t, r) {
- this.isApplyingToNode(r) && this.matchTNode(t, r)
- },
- },
- {
- key: "elementEnd",
- value: function (t) {
- this._declarationNodeIndex === t.index &&
- (this._appliesToNextNode = !1)
- },
- },
- {
- key: "template",
- value: function (t, r) {
- this.elementStart(t, r)
- },
- },
- {
- key: "embeddedTView",
- value: function (t, r) {
- return this.isApplyingToNode(t)
- ? ((this.crossesNgTemplate = !0),
- this.addMatch(-t.index, r),
- new e(this.metadata))
- : null
- },
- },
- {
- key: "isApplyingToNode",
- value: function (t) {
- if (
- this._appliesToNextNode &&
- 1 != (1 & this.metadata.flags)
- ) {
- for (
- var r = this._declarationNodeIndex, i = t.parent;
- null !== i && 8 & i.type && i.index !== r;
-
- )
- i = i.parent
- return r === (null !== i ? i.index : -1)
- }
- return this._appliesToNextNode
- },
- },
- {
- key: "matchTNode",
- value: function (t, r) {
- var i = this.metadata.predicate
- if (Array.isArray(i))
- for (var a = 0; a < i.length; a++) {
- var o = i[a]
- this.matchTNodeWithReadOption(t, r, M0(r, o)),
- this.matchTNodeWithReadOption(t, r, Rs(r, t, o, !1, !1))
- }
- else
- i === fi
- ? 4 & r.type && this.matchTNodeWithReadOption(t, r, -1)
- : this.matchTNodeWithReadOption(t, r, Rs(r, t, i, !1, !1))
- },
- },
- {
- key: "matchTNodeWithReadOption",
- value: function (t, r, i) {
- if (null !== i) {
- var a = this.metadata.read
- if (null !== a)
- if (a === gr || a === $r || (a === fi && 4 & r.type))
- this.addMatch(r.index, -2)
- else {
- var o = Rs(r, t, a, !1, !1)
- null !== o && this.addMatch(r.index, o)
- }
- else this.addMatch(r.index, i)
- }
- },
- },
- {
- key: "addMatch",
- value: function (t, r) {
- null === this.matches
- ? (this.matches = [t, r])
- : this.matches.push(t, r)
- },
- },
- ]),
- e
- )
- })()
- function M0(e, n) {
- var t = e.localNames
- if (null !== t)
- for (var r = 0; r < t.length; r += 2) if (t[r] === n) return t[r + 1]
- return null
- }
- function A0(e, n, t, r) {
- return -1 === t
- ? (function I0(e, n) {
- return 11 & e.type ? za(e, n) : 4 & e.type ? du(e, n) : null
- })(n, e)
- : -2 === t
- ? (function O0(e, n, t) {
- return t === gr
- ? za(n, e)
- : t === fi
- ? du(n, e)
- : t === $r
- ? Gg(n, e)
- : void 0
- })(e, n, r)
- : _o(e, e[1], t, n)
- }
- function zg(e, n, t, r) {
- var i = n[19].queries[r]
- if (null === i.matches) {
- for (
- var a = e.data, o = t.matches, s = [], u = 0;
- u < o.length;
- u += 2
- ) {
- var l = o[u]
- s.push(l < 0 ? null : A0(n, a[l], o[u + 1], t.metadata.read))
- }
- i.matches = s
- }
- return i.matches
- }
- function Wc(e, n, t, r) {
- var i = e.queries.getByIndex(t),
- a = i.matches
- if (null !== a)
- for (var o = zg(e, n, i, t), s = 0; s < a.length; s += 2) {
- var u = a[s]
- if (u > 0) r.push(o[s / 2])
- else {
- for (var l = a[s + 1], c = n[-u], d = 10; d < c.length; d++) {
- var v = c[d]
- v[17] === v[3] && Wc(v[1], v, l, r)
- }
- if (null !== c[9])
- for (var g = c[9], C = 0; C < g.length; C++) {
- var N = g[C]
- Wc(N[1], N, l, r)
- }
- }
- }
- return r
- }
- function Kr(e) {
- var n = ee(),
- t = mt(),
- r = kd()
- vl(r + 1)
- var i = $g(t, r)
- if (e.dirty && yd(n) === (2 == (2 & i.metadata.flags))) {
- if (null === i.matches) e.reset([])
- else {
- var a = i.crossesNgTemplate ? Wc(t, n, r, []) : zg(t, n, i, r)
- e.reset(a, Bw), e.notifyOnChanges()
- }
- return !0
- }
- return !1
- }
- function Yr(e, n, t) {
- var r = mt()
- r.firstCreatePass &&
- ((function qg(e, n, t) {
- null === e.queries && (e.queries = new S0()),
- e.queries.track(new T0(n, t))
- })(r, new Wg(e, n, t), -1),
- 2 == (2 & n) && (r.staticViewQueries = !0)),
- (function Zg(e, n, t) {
- var r = new g0(4 == (4 & t))
- lv(e, n, r, r.destroy),
- null === n[19] && (n[19] = new w0()),
- n[19].queries.push(new k0(r))
- })(r, ee(), n)
- }
- function Jr() {
- return (function F0(e, n) {
- return e[19].queries[n].queryList
- })(ee(), kd())
- }
- function $g(e, n) {
- return e.queries.getByIndex(n)
- }
- function pu() {}
- var Yc = new ft("Application Initializer"),
- Ya = (function () {
- var e = (function () {
- function n(t) {
- var r = this
- h(this, n),
- (this.appInits = t),
- (this.resolve = pu),
- (this.reject = pu),
- (this.initialized = !1),
- (this.done = !1),
- (this.donePromise = new Promise(function (i, a) {
- ;(r.resolve = i), (r.reject = a)
- }))
- }
- return (
- f(n, [
- {
- key: "runInitializers",
- value: function () {
- var r = this
- if (!this.initialized) {
- var i = [],
- a = function () {
- ;(r.done = !0), r.resolve()
- }
- if (this.appInits)
- for (
- var o = function (l) {
- var c = r.appInits[l]()
- if (tu(c)) i.push(c)
- else if (up(c)) {
- var d = new Promise(function (v, g) {
- c.subscribe({
- complete: v,
- error: g,
- })
- })
- i.push(d)
- }
- },
- s = 0;
- s < this.appInits.length;
- s++
- )
- o(s)
- Promise.all(i)
- .then(function () {
- a()
- })
- .catch(function (u) {
- r.reject(u)
- }),
- 0 === i.length && a(),
- (this.initialized = !0)
- }
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Yc, 8))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- $o = new ft("AppId"),
- X0 = {
- provide: $o,
- useFactory: function Q0() {
- return "".concat(Jc()).concat(Jc()).concat(Jc())
- },
- deps: [],
- }
- function Jc() {
- return String.fromCharCode(97 + Math.floor(25 * Math.random()))
- }
- var fm = new ft("Platform Initializer"),
- gu = new ft("Platform ID"),
- eS = new ft("appBootstrapListener"),
- tS = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, [
- {
- key: "log",
- value: function (r) {
- console.log(r)
- },
- },
- {
- key: "warn",
- value: function (r) {
- console.warn(r)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- ki = new ft("LocaleId"),
- dm = new ft("DefaultCurrencyCode"),
- nS = f(function e(n, t) {
- h(this, e), (this.ngModuleFactory = n), (this.componentFactories = t)
- }),
- hm = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, [
- {
- key: "compileModuleSync",
- value: function (r) {
- return new jc(r)
- },
- },
- {
- key: "compileModuleAsync",
- value: function (r) {
- return Promise.resolve(this.compileModuleSync(r))
- },
- },
- {
- key: "compileModuleAndAllComponentsSync",
- value: function (r) {
- var i = this.compileModuleSync(r),
- o = Gr(lr(r).declarations).reduce(function (s, u) {
- var l = In(u)
- return l && s.push(new Hc(l)), s
- }, [])
- return new nS(i, o)
- },
- },
- {
- key: "compileModuleAndAllComponentsAsync",
- value: function (r) {
- return Promise.resolve(
- this.compileModuleAndAllComponentsSync(r)
- )
- },
- },
- {
- key: "clearCache",
- value: function () {},
- },
- {
- key: "clearCacheFor",
- value: function (r) {},
- },
- {
- key: "getModuleId",
- value: function (r) {},
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- iS = (function () {
- return Promise.resolve(0)
- })()
- function Qc(e) {
- "undefined" == typeof Zone
- ? iS.then(function () {
- e && e.apply(null, null)
- })
- : Zone.current.scheduleMicroTask("scheduleMicrotask", e)
- }
- var ar = (function () {
- function e(n) {
- var t = n.enableLongStackTrace,
- r = void 0 !== t && t,
- i = n.shouldCoalesceEventChangeDetection,
- a = void 0 !== i && i,
- o = n.shouldCoalesceRunChangeDetection,
- s = void 0 !== o && o
- if (
- (h(this, e),
- (this.hasPendingMacrotasks = !1),
- (this.hasPendingMicrotasks = !1),
- (this.isStable = !0),
- (this.onUnstable = new rn(!1)),
- (this.onMicrotaskEmpty = new rn(!1)),
- (this.onStable = new rn(!1)),
- (this.onError = new rn(!1)),
- "undefined" == typeof Zone)
- )
- throw new Error("In this configuration Angular requires Zone.js")
- Zone.assertZonePatched()
- var u = this
- ;(u._nesting = 0),
- (u._outer = u._inner = Zone.current),
- Zone.TaskTrackingZoneSpec &&
- (u._inner = u._inner.fork(new Zone.TaskTrackingZoneSpec())),
- r &&
- Zone.longStackTraceZoneSpec &&
- (u._inner = u._inner.fork(Zone.longStackTraceZoneSpec)),
- (u.shouldCoalesceEventChangeDetection = !s && a),
- (u.shouldCoalesceRunChangeDetection = s),
- (u.lastRequestAnimationFrameId = -1),
- (u.nativeRequestAnimationFrame = (function aS() {
- var e = Ot.requestAnimationFrame,
- n = Ot.cancelAnimationFrame
- if ("undefined" != typeof Zone && e && n) {
- var t = e[Zone.__symbol__("OriginalDelegate")]
- t && (e = t)
- var r = n[Zone.__symbol__("OriginalDelegate")]
- r && (n = r)
- }
- return {
- nativeRequestAnimationFrame: e,
- nativeCancelAnimationFrame: n,
- }
- })().nativeRequestAnimationFrame),
- (function uS(e) {
- var n = function () {
- !(function sS(e) {
- e.isCheckStableRunning ||
- -1 !== e.lastRequestAnimationFrameId ||
- ((e.lastRequestAnimationFrameId =
- e.nativeRequestAnimationFrame.call(Ot, function () {
- e.fakeTopEventTask ||
- (e.fakeTopEventTask = Zone.root.scheduleEventTask(
- "fakeTopEventTask",
- function () {
- ;(e.lastRequestAnimationFrameId = -1),
- ef(e),
- (e.isCheckStableRunning = !0),
- Xc(e),
- (e.isCheckStableRunning = !1)
- },
- void 0,
- function () {},
- function () {}
- )),
- e.fakeTopEventTask.invoke()
- })),
- ef(e))
- })(e)
- }
- e._inner = e._inner.fork({
- name: "angular",
- properties: {
- isAngularZone: !0,
- },
- onInvokeTask: function (r, i, a, o, s, u) {
- try {
- return vm(e), r.invokeTask(a, o, s, u)
- } finally {
- ;((e.shouldCoalesceEventChangeDetection &&
- "eventTask" === o.type) ||
- e.shouldCoalesceRunChangeDetection) &&
- n(),
- pm(e)
- }
- },
- onInvoke: function (r, i, a, o, s, u, l) {
- try {
- return vm(e), r.invoke(a, o, s, u, l)
- } finally {
- e.shouldCoalesceRunChangeDetection && n(), pm(e)
- }
- },
- onHasTask: function (r, i, a, o) {
- r.hasTask(a, o),
- i === a &&
- ("microTask" == o.change
- ? ((e._hasPendingMicrotasks = o.microTask),
- ef(e),
- Xc(e))
- : "macroTask" == o.change &&
- (e.hasPendingMacrotasks = o.macroTask))
- },
- onHandleError: function (r, i, a, o) {
- return (
- r.handleError(a, o),
- e.runOutsideAngular(function () {
- return e.onError.emit(o)
- }),
- !1
- )
- },
- })
- })(u)
- }
- return (
- f(
- e,
- [
- {
- key: "run",
- value: function (t, r, i) {
- return this._inner.run(t, r, i)
- },
- },
- {
- key: "runTask",
- value: function (t, r, i, a) {
- var o = this._inner,
- s = o.scheduleEventTask(
- "NgZoneEvent: " + a,
- t,
- oS,
- pu,
- pu
- )
- try {
- return o.runTask(s, r, i)
- } finally {
- o.cancelTask(s)
- }
- },
- },
- {
- key: "runGuarded",
- value: function (t, r, i) {
- return this._inner.runGuarded(t, r, i)
- },
- },
- {
- key: "runOutsideAngular",
- value: function (t) {
- return this._outer.run(t)
- },
- },
- ],
- [
- {
- key: "isInAngularZone",
- value: function () {
- return !0 === Zone.current.get("isAngularZone")
- },
- },
- {
- key: "assertInAngularZone",
- value: function () {
- if (!e.isInAngularZone())
- throw new Error(
- "Expected to be in Angular Zone, but it is not!"
- )
- },
- },
- {
- key: "assertNotInAngularZone",
- value: function () {
- if (e.isInAngularZone())
- throw new Error(
- "Expected to not be in Angular Zone, but it is!"
- )
- },
- },
- ]
- ),
- e
- )
- })(),
- oS = {}
- function Xc(e) {
- if (0 == e._nesting && !e.hasPendingMicrotasks && !e.isStable)
- try {
- e._nesting++, e.onMicrotaskEmpty.emit(null)
- } finally {
- if ((e._nesting--, !e.hasPendingMicrotasks))
- try {
- e.runOutsideAngular(function () {
- return e.onStable.emit(null)
- })
- } finally {
- e.isStable = !0
- }
- }
- }
- function ef(e) {
- e.hasPendingMicrotasks = !!(
- e._hasPendingMicrotasks ||
- ((e.shouldCoalesceEventChangeDetection ||
- e.shouldCoalesceRunChangeDetection) &&
- -1 !== e.lastRequestAnimationFrameId)
- )
- }
- function vm(e) {
- e._nesting++, e.isStable && ((e.isStable = !1), e.onUnstable.emit(null))
- }
- function pm(e) {
- e._nesting--, Xc(e)
- }
- var Ar,
- lS = (function () {
- function e() {
- h(this, e),
- (this.hasPendingMicrotasks = !1),
- (this.hasPendingMacrotasks = !1),
- (this.isStable = !0),
- (this.onUnstable = new rn()),
- (this.onMicrotaskEmpty = new rn()),
- (this.onStable = new rn()),
- (this.onError = new rn())
- }
- return (
- f(e, [
- {
- key: "run",
- value: function (t, r, i) {
- return t.apply(r, i)
- },
- },
- {
- key: "runGuarded",
- value: function (t, r, i) {
- return t.apply(r, i)
- },
- },
- {
- key: "runOutsideAngular",
- value: function (t) {
- return t()
- },
- },
- {
- key: "runTask",
- value: function (t, r, i, a) {
- return t.apply(r, i)
- },
- },
- ]),
- e
- )
- })(),
- tf = (function () {
- var e = (function () {
- function n(t) {
- var r = this
- h(this, n),
- (this._ngZone = t),
- (this._pendingCount = 0),
- (this._isZoneStable = !0),
- (this._didWork = !1),
- (this._callbacks = []),
- (this.taskTrackingZone = null),
- this._watchAngularEvents(),
- t.run(function () {
- r.taskTrackingZone =
- "undefined" == typeof Zone
- ? null
- : Zone.current.get("TaskTrackingZone")
- })
- }
- return (
- f(n, [
- {
- key: "_watchAngularEvents",
- value: function () {
- var r = this
- this._ngZone.onUnstable.subscribe({
- next: function () {
- ;(r._didWork = !0), (r._isZoneStable = !1)
- },
- }),
- this._ngZone.runOutsideAngular(function () {
- r._ngZone.onStable.subscribe({
- next: function () {
- ar.assertNotInAngularZone(),
- Qc(function () {
- ;(r._isZoneStable = !0),
- r._runCallbacksIfReady()
- })
- },
- })
- })
- },
- },
- {
- key: "increasePendingRequestCount",
- value: function () {
- return (
- (this._pendingCount += 1),
- (this._didWork = !0),
- this._pendingCount
- )
- },
- },
- {
- key: "decreasePendingRequestCount",
- value: function () {
- if (((this._pendingCount -= 1), this._pendingCount < 0))
- throw new Error("pending async requests below zero")
- return this._runCallbacksIfReady(), this._pendingCount
- },
- },
- {
- key: "isStable",
- value: function () {
- return (
- this._isZoneStable &&
- 0 === this._pendingCount &&
- !this._ngZone.hasPendingMacrotasks
- )
- },
- },
- {
- key: "_runCallbacksIfReady",
- value: function () {
- var r = this
- if (this.isStable())
- Qc(function () {
- for (; 0 !== r._callbacks.length; ) {
- var a = r._callbacks.pop()
- clearTimeout(a.timeoutId), a.doneCb(r._didWork)
- }
- r._didWork = !1
- })
- else {
- var i = this.getPendingTasks()
- ;(this._callbacks = this._callbacks.filter(function (a) {
- return (
- !a.updateCb ||
- !a.updateCb(i) ||
- (clearTimeout(a.timeoutId), !1)
- )
- })),
- (this._didWork = !0)
- }
- },
- },
- {
- key: "getPendingTasks",
- value: function () {
- return this.taskTrackingZone
- ? this.taskTrackingZone.macroTasks.map(function (r) {
- return {
- source: r.source,
- creationLocation: r.creationLocation,
- data: r.data,
- }
- })
- : []
- },
- },
- {
- key: "addCallback",
- value: function (r, i, a) {
- var o = this,
- s = -1
- i &&
- i > 0 &&
- (s = setTimeout(function () {
- ;(o._callbacks = o._callbacks.filter(function (u) {
- return u.timeoutId !== s
- })),
- r(o._didWork, o.getPendingTasks())
- }, i)),
- this._callbacks.push({
- doneCb: r,
- timeoutId: s,
- updateCb: a,
- })
- },
- },
- {
- key: "whenStable",
- value: function (r, i, a) {
- if (a && !this.taskTrackingZone)
- throw new Error(
- 'Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?'
- )
- this.addCallback(r, i, a), this._runCallbacksIfReady()
- },
- },
- {
- key: "getPendingRequestCount",
- value: function () {
- return this._pendingCount
- },
- },
- {
- key: "findProviders",
- value: function (r, i, a) {
- return []
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(ar))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- gm = (function () {
- var e = (function () {
- function n() {
- h(this, n), (this._applications = new Map()), nf.addToWindow(this)
- }
- return (
- f(n, [
- {
- key: "registerApplication",
- value: function (r, i) {
- this._applications.set(r, i)
- },
- },
- {
- key: "unregisterApplication",
- value: function (r) {
- this._applications.delete(r)
- },
- },
- {
- key: "unregisterAllApplications",
- value: function () {
- this._applications.clear()
- },
- },
- {
- key: "getTestability",
- value: function (r) {
- return this._applications.get(r) || null
- },
- },
- {
- key: "getAllTestabilities",
- value: function () {
- return Array.from(this._applications.values())
- },
- },
- {
- key: "getAllRootElements",
- value: function () {
- return Array.from(this._applications.keys())
- },
- },
- {
- key: "findTestabilityInTree",
- value: function (r) {
- var i =
- !(arguments.length > 1 && void 0 !== arguments[1]) ||
- arguments[1]
- return nf.findTestabilityInTree(this, r, i)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- cS = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "addToWindow",
- value: function (t) {},
- },
- {
- key: "findTestabilityInTree",
- value: function (t, r, i) {
- return null
- },
- },
- ]),
- e
- )
- })(),
- nf = new cS()
- function dS(e, n, t) {
- var r = new jc(t)
- return Promise.resolve(r)
- }
- var mm = new ft("AllowMultipleToken")
- function vS(e) {
- if (Ar && !Ar.destroyed && !Ar.injector.get(mm, !1))
- throw new xe(400, "")
- Ar = e.get(Dm)
- var t = e.get(fm, null)
- return (
- t &&
- t.forEach(function (r) {
- return r()
- }),
- Ar
- )
- }
- function ym(e, n) {
- var t =
- arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
- r = "Platform: ".concat(n),
- i = new ft(r)
- return function () {
- var a =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : [],
- o = _m()
- if (!o || o.injector.get(mm, !1))
- if (e)
- e(
- t.concat(a).concat({
- provide: i,
- useValue: !0,
- })
- )
- else {
- var s = t.concat(a).concat(
- {
- provide: i,
- useValue: !0,
- },
- {
- provide: Dc,
- useValue: "platform",
- }
- )
- vS(
- Kn.create({
- providers: s,
- name: r,
- })
- )
- }
- return pS()
- }
- }
- function pS(e) {
- var n = _m()
- if (!n) throw new xe(401, "")
- return n
- }
- function _m() {
- return Ar && !Ar.destroyed ? Ar : null
- }
- var Dm = (function () {
- var e = (function () {
- function n(t) {
- h(this, n),
- (this._injector = t),
- (this._modules = []),
- (this._destroyListeners = []),
- (this._destroyed = !1)
- }
- return (
- f(n, [
- {
- key: "bootstrapModuleFactory",
- value: function (r, i) {
- var a = this,
- l = (function gS(e, n) {
- return "noop" === e
- ? new lS()
- : ("zone.js" === e ? void 0 : e) ||
- new ar({
- enableLongStackTrace: !1,
- shouldCoalesceEventChangeDetection: !!(null == n
- ? void 0
- : n.ngZoneEventCoalescing),
- shouldCoalesceRunChangeDetection: !!(null == n
- ? void 0
- : n.ngZoneRunCoalescing),
- })
- })(i ? i.ngZone : void 0, {
- ngZoneEventCoalescing:
- (i && i.ngZoneEventCoalescing) || !1,
- ngZoneRunCoalescing: (i && i.ngZoneRunCoalescing) || !1,
- }),
- c = [
- {
- provide: ar,
- useValue: l,
- },
- ]
- return l.run(function () {
- var d = Kn.create({
- providers: c,
- parent: a.injector,
- name: r.moduleType.name,
- }),
- v = r.create(d),
- g = v.injector.get(Da, null)
- if (!g) throw new xe(402, "")
- return (
- l.runOutsideAngular(function () {
- var N = l.onError.subscribe({
- next: function (Y) {
- g.handleError(Y)
- },
- })
- v.onDestroy(function () {
- rf(a._modules, v), N.unsubscribe()
- })
- }),
- (function mS(e, n, t) {
- try {
- var r = t()
- return tu(r)
- ? r.catch(function (i) {
- throw (
- (n.runOutsideAngular(function () {
- return e.handleError(i)
- }),
- i)
- )
- })
- : r
- } catch (i) {
- throw (
- (n.runOutsideAngular(function () {
- return e.handleError(i)
- }),
- i)
- )
- }
- })(g, l, function () {
- var N = v.injector.get(Ya)
- return (
- N.runInitializers(),
- N.donePromise.then(function () {
- return (
- (function Hk(e) {
- R(e, "Expected localeId to be defined"),
- "string" == typeof e &&
- e.toLowerCase().replace(/_/g, "-")
- })(v.injector.get(ki, au) || au),
- a._moduleDoBootstrap(v),
- v
- )
- })
- )
- })
- )
- })
- },
- },
- {
- key: "bootstrapModule",
- value: function (r) {
- var i = this,
- a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : [],
- o = bm({}, a)
- return dS(0, 0, r).then(function (s) {
- return i.bootstrapModuleFactory(s, o)
- })
- },
- },
- {
- key: "_moduleDoBootstrap",
- value: function (r) {
- var i = r.injector.get(mu)
- if (r._bootstrapComponents.length > 0)
- r._bootstrapComponents.forEach(function (o) {
- return i.bootstrap(o)
- })
- else {
- if (!r.instance.ngDoBootstrap) throw new xe(403, "")
- r.instance.ngDoBootstrap(i)
- }
- this._modules.push(r)
- },
- },
- {
- key: "onDestroy",
- value: function (r) {
- this._destroyListeners.push(r)
- },
- },
- {
- key: "injector",
- get: function () {
- return this._injector
- },
- },
- {
- key: "destroy",
- value: function () {
- if (this._destroyed) throw new xe(404, "")
- this._modules.slice().forEach(function (i) {
- return i.destroy()
- }),
- this._destroyListeners.forEach(function (i) {
- return i()
- }),
- (this._destroyed = !0)
- },
- },
- {
- key: "destroyed",
- get: function () {
- return this._destroyed
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Kn))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })()
- function bm(e, n) {
- return Array.isArray(n)
- ? n.reduce(bm, e)
- : Object.assign(Object.assign({}, e), n)
- }
- var mu = (function () {
- var e = (function () {
- function n(t, r, i, a, o) {
- var s = this
- h(this, n),
- (this._zone = t),
- (this._injector = r),
- (this._exceptionHandler = i),
- (this._componentFactoryResolver = a),
- (this._initStatus = o),
- (this._bootstrapListeners = []),
- (this._views = []),
- (this._runningTick = !1),
- (this._stable = !0),
- (this.componentTypes = []),
- (this.components = []),
- (this._onMicrotaskEmptySubscription =
- this._zone.onMicrotaskEmpty.subscribe({
- next: function () {
- s._zone.run(function () {
- s.tick()
- })
- },
- }))
- var u = new an(function (c) {
- ;(s._stable =
- s._zone.isStable &&
- !s._zone.hasPendingMacrotasks &&
- !s._zone.hasPendingMicrotasks),
- s._zone.runOutsideAngular(function () {
- c.next(s._stable), c.complete()
- })
- }),
- l = new an(function (c) {
- var d
- s._zone.runOutsideAngular(function () {
- d = s._zone.onStable.subscribe(function () {
- ar.assertNotInAngularZone(),
- Qc(function () {
- !s._stable &&
- !s._zone.hasPendingMacrotasks &&
- !s._zone.hasPendingMicrotasks &&
- ((s._stable = !0), c.next(!0))
- })
- })
- })
- var v = s._zone.onUnstable.subscribe(function () {
- ar.assertInAngularZone(),
- s._stable &&
- ((s._stable = !1),
- s._zone.runOutsideAngular(function () {
- c.next(!1)
- }))
- })
- return function () {
- d.unsubscribe(), v.unsubscribe()
- }
- })
- this.isStable = (function ta() {
- for (
- var e = Number.POSITIVE_INFINITY,
- n = null,
- t = arguments.length,
- r = new Array(t),
- i = 0;
- i < t;
- i++
- )
- r[i] = arguments[i]
- var a = r[r.length - 1]
- return (
- Xi(a)
- ? ((n = r.pop()),
- r.length > 1 &&
- "number" == typeof r[r.length - 1] &&
- (e = r.pop()))
- : "number" == typeof a && (e = r.pop()),
- null === n && 1 === r.length && r[0] instanceof an
- ? r[0]
- : qu(e)(ds(r, n))
- )
- })(
- u,
- l.pipe(
- (function ye() {
- return function (e) {
- return ii()(
- (function V(e, n) {
- return function (r) {
- var i
- if (
- ((i =
- "function" == typeof e
- ? e
- : function () {
- return e
- }),
- "function" == typeof n)
- )
- return r.lift(new q(i, n))
- var a = Object.create(r, m)
- return (a.source = r), (a.subjectFactory = i), a
- }
- })(ne)(e)
- )
- }
- })()
- )
- )
- }
- return (
- f(n, [
- {
- key: "bootstrap",
- value: function (r, i) {
- var s,
- a = this
- if (!this._initStatus.done) throw new xe(405, "")
- ;(s =
- r instanceof Sg
- ? r
- : this._componentFactoryResolver.resolveComponentFactory(
- r
- )),
- this.componentTypes.push(s.componentType)
- var u = (function hS(e) {
- return e.isBoundToModule
- })(s)
- ? void 0
- : this._injector.get(Za),
- c = s.create(Kn.NULL, [], i || s.selector, u),
- d = c.location.nativeElement,
- v = c.injector.get(tf, null),
- g = v && c.injector.get(gm)
- return (
- v && g && g.registerApplication(d, v),
- c.onDestroy(function () {
- a.detachView(c.hostView),
- rf(a.components, c),
- g && g.unregisterApplication(d)
- }),
- this._loadComponent(c),
- c
- )
- },
- },
- {
- key: "tick",
- value: function () {
- var r = this
- if (this._runningTick) throw new xe(101, "")
- try {
- this._runningTick = !0
- var o,
- a = le(this._views)
- try {
- for (a.s(); !(o = a.n()).done; ) o.value.detectChanges()
- } catch (d) {
- a.e(d)
- } finally {
- a.f()
- }
- } catch (d) {
- this._zone.runOutsideAngular(function () {
- return r._exceptionHandler.handleError(d)
- })
- } finally {
- this._runningTick = !1
- }
- },
- },
- {
- key: "attachView",
- value: function (r) {
- var i = r
- this._views.push(i), i.attachToAppRef(this)
- },
- },
- {
- key: "detachView",
- value: function (r) {
- var i = r
- rf(this._views, i), i.detachFromAppRef()
- },
- },
- {
- key: "_loadComponent",
- value: function (r) {
- this.attachView(r.hostView),
- this.tick(),
- this.components.push(r),
- this._injector
- .get(eS, [])
- .concat(this._bootstrapListeners)
- .forEach(function (a) {
- return a(r)
- })
- },
- },
- {
- key: "ngOnDestroy",
- value: function () {
- this._views.slice().forEach(function (r) {
- return r.destroy()
- }),
- this._onMicrotaskEmptySubscription.unsubscribe()
- },
- },
- {
- key: "viewCount",
- get: function () {
- return this._views.length
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(ar), dt(Kn), dt(Da), dt(Wa), dt(Ya))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })()
- function rf(e, n) {
- var t = e.indexOf(n)
- t > -1 && e.splice(t, 1)
- }
- var Mm = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "supports",
- value: function (t) {
- return Lo(t)
- },
- },
- {
- key: "create",
- value: function (t) {
- return new SS(t)
- },
- },
- ]),
- e
- )
- })(),
- wS = function (n, t) {
- return t
- },
- SS = (function () {
- function e(n) {
- h(this, e),
- (this.length = 0),
- (this._linkedRecords = null),
- (this._unlinkedRecords = null),
- (this._previousItHead = null),
- (this._itHead = null),
- (this._itTail = null),
- (this._additionsHead = null),
- (this._additionsTail = null),
- (this._movesHead = null),
- (this._movesTail = null),
- (this._removalsHead = null),
- (this._removalsTail = null),
- (this._identityChangesHead = null),
- (this._identityChangesTail = null),
- (this._trackByFn = n || wS)
- }
- return (
- f(e, [
- {
- key: "forEachItem",
- value: function (t) {
- var r
- for (r = this._itHead; null !== r; r = r._next) t(r)
- },
- },
- {
- key: "forEachOperation",
- value: function (t) {
- for (
- var r = this._itHead,
- i = this._removalsHead,
- a = 0,
- o = null;
- r || i;
-
- ) {
- var s = !i || (r && r.currentIndex < Am(i, a, o)) ? r : i,
- u = Am(s, a, o),
- l = s.currentIndex
- if (s === i) a--, (i = i._nextRemoved)
- else if (((r = r._next), null == s.previousIndex)) a++
- else {
- o || (o = [])
- var c = u - a,
- d = l - a
- if (c != d) {
- for (var v = 0; v < c; v++) {
- var g = v < o.length ? o[v] : (o[v] = 0),
- C = g + v
- d <= C && C < c && (o[v] = g + 1)
- }
- o[s.previousIndex] = d - c
- }
- }
- u !== l && t(s, u, l)
- }
- },
- },
- {
- key: "forEachPreviousItem",
- value: function (t) {
- var r
- for (
- r = this._previousItHead;
- null !== r;
- r = r._nextPrevious
- )
- t(r)
- },
- },
- {
- key: "forEachAddedItem",
- value: function (t) {
- var r
- for (r = this._additionsHead; null !== r; r = r._nextAdded)
- t(r)
- },
- },
- {
- key: "forEachMovedItem",
- value: function (t) {
- var r
- for (r = this._movesHead; null !== r; r = r._nextMoved) t(r)
- },
- },
- {
- key: "forEachRemovedItem",
- value: function (t) {
- var r
- for (r = this._removalsHead; null !== r; r = r._nextRemoved)
- t(r)
- },
- },
- {
- key: "forEachIdentityChange",
- value: function (t) {
- var r
- for (
- r = this._identityChangesHead;
- null !== r;
- r = r._nextIdentityChange
- )
- t(r)
- },
- },
- {
- key: "diff",
- value: function (t) {
- if ((null == t && (t = []), !Lo(t)))
- throw new Error(
- "Error trying to diff '".concat(
- W(t),
- "'. Only arrays and iterables are allowed"
- )
- )
- return this.check(t) ? this : null
- },
- },
- {
- key: "onDestroy",
- value: function () {},
- },
- {
- key: "check",
- value: function (t) {
- var r = this
- this._reset()
- var o,
- s,
- u,
- i = this._itHead,
- a = !1
- if (Array.isArray(t)) {
- this.length = t.length
- for (var l = 0; l < this.length; l++)
- (u = this._trackByFn(l, (s = t[l]))),
- null !== i && Object.is(i.trackById, u)
- ? (a && (i = this._verifyReinsertion(i, s, u, l)),
- Object.is(i.item, s) ||
- this._addIdentityChange(i, s))
- : ((i = this._mismatch(i, s, u, l)), (a = !0)),
- (i = i._next)
- } else
- (o = 0),
- (function SE(e, n) {
- if (Array.isArray(e))
- for (var t = 0; t < e.length; t++) n(e[t])
- else
- for (var i, r = e[Ma()](); !(i = r.next()).done; )
- n(i.value)
- })(t, function (c) {
- ;(u = r._trackByFn(o, c)),
- null !== i && Object.is(i.trackById, u)
- ? (a && (i = r._verifyReinsertion(i, c, u, o)),
- Object.is(i.item, c) ||
- r._addIdentityChange(i, c))
- : ((i = r._mismatch(i, c, u, o)), (a = !0)),
- (i = i._next),
- o++
- }),
- (this.length = o)
- return this._truncate(i), (this.collection = t), this.isDirty
- },
- },
- {
- key: "isDirty",
- get: function () {
- return (
- null !== this._additionsHead ||
- null !== this._movesHead ||
- null !== this._removalsHead ||
- null !== this._identityChangesHead
- )
- },
- },
- {
- key: "_reset",
- value: function () {
- if (this.isDirty) {
- var t
- for (
- t = this._previousItHead = this._itHead;
- null !== t;
- t = t._next
- )
- t._nextPrevious = t._next
- for (t = this._additionsHead; null !== t; t = t._nextAdded)
- t.previousIndex = t.currentIndex
- for (
- this._additionsHead = this._additionsTail = null,
- t = this._movesHead;
- null !== t;
- t = t._nextMoved
- )
- t.previousIndex = t.currentIndex
- ;(this._movesHead = this._movesTail = null),
- (this._removalsHead = this._removalsTail = null),
- (this._identityChangesHead = this._identityChangesTail =
- null)
- }
- },
- },
- {
- key: "_mismatch",
- value: function (t, r, i, a) {
- var o
- return (
- null === t
- ? (o = this._itTail)
- : ((o = t._prev), this._remove(t)),
- null !==
- (t =
- null === this._unlinkedRecords
- ? null
- : this._unlinkedRecords.get(i, null))
- ? (Object.is(t.item, r) || this._addIdentityChange(t, r),
- this._reinsertAfter(t, o, a))
- : null !==
- (t =
- null === this._linkedRecords
- ? null
- : this._linkedRecords.get(i, a))
- ? (Object.is(t.item, r) ||
- this._addIdentityChange(t, r),
- this._moveAfter(t, o, a))
- : (t = this._addAfter(new TS(r, i), o, a)),
- t
- )
- },
- },
- {
- key: "_verifyReinsertion",
- value: function (t, r, i, a) {
- var o =
- null === this._unlinkedRecords
- ? null
- : this._unlinkedRecords.get(i, null)
- return (
- null !== o
- ? (t = this._reinsertAfter(o, t._prev, a))
- : t.currentIndex != a &&
- ((t.currentIndex = a), this._addToMoves(t, a)),
- t
- )
- },
- },
- {
- key: "_truncate",
- value: function (t) {
- for (; null !== t; ) {
- var r = t._next
- this._addToRemovals(this._unlink(t)), (t = r)
- }
- null !== this._unlinkedRecords &&
- this._unlinkedRecords.clear(),
- null !== this._additionsTail &&
- (this._additionsTail._nextAdded = null),
- null !== this._movesTail &&
- (this._movesTail._nextMoved = null),
- null !== this._itTail && (this._itTail._next = null),
- null !== this._removalsTail &&
- (this._removalsTail._nextRemoved = null),
- null !== this._identityChangesTail &&
- (this._identityChangesTail._nextIdentityChange = null)
- },
- },
- {
- key: "_reinsertAfter",
- value: function (t, r, i) {
- null !== this._unlinkedRecords &&
- this._unlinkedRecords.remove(t)
- var a = t._prevRemoved,
- o = t._nextRemoved
- return (
- null === a
- ? (this._removalsHead = o)
- : (a._nextRemoved = o),
- null === o
- ? (this._removalsTail = a)
- : (o._prevRemoved = a),
- this._insertAfter(t, r, i),
- this._addToMoves(t, i),
- t
- )
- },
- },
- {
- key: "_moveAfter",
- value: function (t, r, i) {
- return (
- this._unlink(t),
- this._insertAfter(t, r, i),
- this._addToMoves(t, i),
- t
- )
- },
- },
- {
- key: "_addAfter",
- value: function (t, r, i) {
- return (
- this._insertAfter(t, r, i),
- (this._additionsTail =
- null === this._additionsTail
- ? (this._additionsHead = t)
- : (this._additionsTail._nextAdded = t)),
- t
- )
- },
- },
- {
- key: "_insertAfter",
- value: function (t, r, i) {
- var a = null === r ? this._itHead : r._next
- return (
- (t._next = a),
- (t._prev = r),
- null === a ? (this._itTail = t) : (a._prev = t),
- null === r ? (this._itHead = t) : (r._next = t),
- null === this._linkedRecords &&
- (this._linkedRecords = new Im()),
- this._linkedRecords.put(t),
- (t.currentIndex = i),
- t
- )
- },
- },
- {
- key: "_remove",
- value: function (t) {
- return this._addToRemovals(this._unlink(t))
- },
- },
- {
- key: "_unlink",
- value: function (t) {
- null !== this._linkedRecords && this._linkedRecords.remove(t)
- var r = t._prev,
- i = t._next
- return (
- null === r ? (this._itHead = i) : (r._next = i),
- null === i ? (this._itTail = r) : (i._prev = r),
- t
- )
- },
- },
- {
- key: "_addToMoves",
- value: function (t, r) {
- return (
- t.previousIndex === r ||
- (this._movesTail =
- null === this._movesTail
- ? (this._movesHead = t)
- : (this._movesTail._nextMoved = t)),
- t
- )
- },
- },
- {
- key: "_addToRemovals",
- value: function (t) {
- return (
- null === this._unlinkedRecords &&
- (this._unlinkedRecords = new Im()),
- this._unlinkedRecords.put(t),
- (t.currentIndex = null),
- (t._nextRemoved = null),
- null === this._removalsTail
- ? ((this._removalsTail = this._removalsHead = t),
- (t._prevRemoved = null))
- : ((t._prevRemoved = this._removalsTail),
- (this._removalsTail = this._removalsTail._nextRemoved =
- t)),
- t
- )
- },
- },
- {
- key: "_addIdentityChange",
- value: function (t, r) {
- return (
- (t.item = r),
- (this._identityChangesTail =
- null === this._identityChangesTail
- ? (this._identityChangesHead = t)
- : (this._identityChangesTail._nextIdentityChange = t)),
- t
- )
- },
- },
- ]),
- e
- )
- })(),
- TS = f(function e(n, t) {
- h(this, e),
- (this.item = n),
- (this.trackById = t),
- (this.currentIndex = null),
- (this.previousIndex = null),
- (this._nextPrevious = null),
- (this._prev = null),
- (this._next = null),
- (this._prevDup = null),
- (this._nextDup = null),
- (this._prevRemoved = null),
- (this._nextRemoved = null),
- (this._nextAdded = null),
- (this._nextMoved = null),
- (this._nextIdentityChange = null)
- }),
- MS = (function () {
- function e() {
- h(this, e), (this._head = null), (this._tail = null)
- }
- return (
- f(e, [
- {
- key: "add",
- value: function (t) {
- null === this._head
- ? ((this._head = this._tail = t),
- (t._nextDup = null),
- (t._prevDup = null))
- : ((this._tail._nextDup = t),
- (t._prevDup = this._tail),
- (t._nextDup = null),
- (this._tail = t))
- },
- },
- {
- key: "get",
- value: function (t, r) {
- var i
- for (i = this._head; null !== i; i = i._nextDup)
- if (
- (null === r || r <= i.currentIndex) &&
- Object.is(i.trackById, t)
- )
- return i
- return null
- },
- },
- {
- key: "remove",
- value: function (t) {
- var r = t._prevDup,
- i = t._nextDup
- return (
- null === r ? (this._head = i) : (r._nextDup = i),
- null === i ? (this._tail = r) : (i._prevDup = r),
- null === this._head
- )
- },
- },
- ]),
- e
- )
- })(),
- Im = (function () {
- function e() {
- h(this, e), (this.map = new Map())
- }
- return (
- f(e, [
- {
- key: "put",
- value: function (t) {
- var r = t.trackById,
- i = this.map.get(r)
- i || ((i = new MS()), this.map.set(r, i)), i.add(t)
- },
- },
- {
- key: "get",
- value: function (t, r) {
- var a = this.map.get(t)
- return a ? a.get(t, r) : null
- },
- },
- {
- key: "remove",
- value: function (t) {
- var r = t.trackById
- return this.map.get(r).remove(t) && this.map.delete(r), t
- },
- },
- {
- key: "isEmpty",
- get: function () {
- return 0 === this.map.size
- },
- },
- {
- key: "clear",
- value: function () {
- this.map.clear()
- },
- },
- ]),
- e
- )
- })()
- function Am(e, n, t) {
- var r = e.previousIndex
- if (null === r) return r
- var i = 0
- return t && r < t.length && (i = t[r]), r + n + i
- }
- var Om = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "supports",
- value: function (t) {
- return t instanceof Map || wc(t)
- },
- },
- {
- key: "create",
- value: function () {
- return new IS()
- },
- },
- ]),
- e
- )
- })(),
- IS = (function () {
- function e() {
- h(this, e),
- (this._records = new Map()),
- (this._mapHead = null),
- (this._appendAfter = null),
- (this._previousMapHead = null),
- (this._changesHead = null),
- (this._changesTail = null),
- (this._additionsHead = null),
- (this._additionsTail = null),
- (this._removalsHead = null),
- (this._removalsTail = null)
- }
- return (
- f(e, [
- {
- key: "isDirty",
- get: function () {
- return (
- null !== this._additionsHead ||
- null !== this._changesHead ||
- null !== this._removalsHead
- )
- },
- },
- {
- key: "forEachItem",
- value: function (t) {
- var r
- for (r = this._mapHead; null !== r; r = r._next) t(r)
- },
- },
- {
- key: "forEachPreviousItem",
- value: function (t) {
- var r
- for (
- r = this._previousMapHead;
- null !== r;
- r = r._nextPrevious
- )
- t(r)
- },
- },
- {
- key: "forEachChangedItem",
- value: function (t) {
- var r
- for (r = this._changesHead; null !== r; r = r._nextChanged)
- t(r)
- },
- },
- {
- key: "forEachAddedItem",
- value: function (t) {
- var r
- for (r = this._additionsHead; null !== r; r = r._nextAdded)
- t(r)
- },
- },
- {
- key: "forEachRemovedItem",
- value: function (t) {
- var r
- for (r = this._removalsHead; null !== r; r = r._nextRemoved)
- t(r)
- },
- },
- {
- key: "diff",
- value: function (t) {
- if (t) {
- if (!(t instanceof Map || wc(t)))
- throw new Error(
- "Error trying to diff '".concat(
- W(t),
- "'. Only maps and objects are allowed"
- )
- )
- } else t = new Map()
- return this.check(t) ? this : null
- },
- },
- {
- key: "onDestroy",
- value: function () {},
- },
- {
- key: "check",
- value: function (t) {
- var r = this
- this._reset()
- var i = this._mapHead
- if (
- ((this._appendAfter = null),
- this._forEach(t, function (o, s) {
- if (i && i.key === s)
- r._maybeAddToChanges(i, o),
- (r._appendAfter = i),
- (i = i._next)
- else {
- var u = r._getOrCreateRecordForKey(s, o)
- i = r._insertBeforeOrAppend(i, u)
- }
- }),
- i)
- ) {
- i._prev && (i._prev._next = null), (this._removalsHead = i)
- for (var a = i; null !== a; a = a._nextRemoved)
- a === this._mapHead && (this._mapHead = null),
- this._records.delete(a.key),
- (a._nextRemoved = a._next),
- (a.previousValue = a.currentValue),
- (a.currentValue = null),
- (a._prev = null),
- (a._next = null)
- }
- return (
- this._changesTail &&
- (this._changesTail._nextChanged = null),
- this._additionsTail &&
- (this._additionsTail._nextAdded = null),
- this.isDirty
- )
- },
- },
- {
- key: "_insertBeforeOrAppend",
- value: function (t, r) {
- if (t) {
- var i = t._prev
- return (
- (r._next = t),
- (r._prev = i),
- (t._prev = r),
- i && (i._next = r),
- t === this._mapHead && (this._mapHead = r),
- (this._appendAfter = t),
- t
- )
- }
- return (
- this._appendAfter
- ? ((this._appendAfter._next = r),
- (r._prev = this._appendAfter))
- : (this._mapHead = r),
- (this._appendAfter = r),
- null
- )
- },
- },
- {
- key: "_getOrCreateRecordForKey",
- value: function (t, r) {
- if (this._records.has(t)) {
- var i = this._records.get(t)
- this._maybeAddToChanges(i, r)
- var a = i._prev,
- o = i._next
- return (
- a && (a._next = o),
- o && (o._prev = a),
- (i._next = null),
- (i._prev = null),
- i
- )
- }
- var s = new AS(t)
- return (
- this._records.set(t, s),
- (s.currentValue = r),
- this._addToAdditions(s),
- s
- )
- },
- },
- {
- key: "_reset",
- value: function () {
- if (this.isDirty) {
- var t
- for (
- this._previousMapHead = this._mapHead,
- t = this._previousMapHead;
- null !== t;
- t = t._next
- )
- t._nextPrevious = t._next
- for (t = this._changesHead; null !== t; t = t._nextChanged)
- t.previousValue = t.currentValue
- for (t = this._additionsHead; null != t; t = t._nextAdded)
- t.previousValue = t.currentValue
- ;(this._changesHead = this._changesTail = null),
- (this._additionsHead = this._additionsTail = null),
- (this._removalsHead = null)
- }
- },
- },
- {
- key: "_maybeAddToChanges",
- value: function (t, r) {
- Object.is(r, t.currentValue) ||
- ((t.previousValue = t.currentValue),
- (t.currentValue = r),
- this._addToChanges(t))
- },
- },
- {
- key: "_addToAdditions",
- value: function (t) {
- null === this._additionsHead
- ? (this._additionsHead = this._additionsTail = t)
- : ((this._additionsTail._nextAdded = t),
- (this._additionsTail = t))
- },
- },
- {
- key: "_addToChanges",
- value: function (t) {
- null === this._changesHead
- ? (this._changesHead = this._changesTail = t)
- : ((this._changesTail._nextChanged = t),
- (this._changesTail = t))
- },
- },
- {
- key: "_forEach",
- value: function (t, r) {
- t instanceof Map
- ? t.forEach(r)
- : Object.keys(t).forEach(function (i) {
- return r(t[i], i)
- })
- },
- },
- ]),
- e
- )
- })(),
- AS = f(function e(n) {
- h(this, e),
- (this.key = n),
- (this.previousValue = null),
- (this.currentValue = null),
- (this._nextPrevious = null),
- (this._next = null),
- (this._prev = null),
- (this._nextAdded = null),
- (this._nextRemoved = null),
- (this._nextChanged = null)
- })
- function Pm() {
- return new Ko([new Mm()])
- }
- var Ko = (function () {
- var e = (function () {
- function n(t) {
- h(this, n), (this.factories = t)
- }
- return (
- f(
- n,
- [
- {
- key: "find",
- value: function (r) {
- var i = this.factories.find(function (a) {
- return a.supports(r)
- })
- if (null != i) return i
- throw new Error(
- "Cannot find a differ supporting object '"
- .concat(r, "' of type '")
- .concat(
- (function OS(e) {
- return e.name || typeof e
- })(r),
- "'"
- )
- )
- },
- },
- ],
- [
- {
- key: "create",
- value: function (r, i) {
- if (null != i) {
- var a = i.factories.slice()
- r = r.concat(a)
- }
- return new n(r)
- },
- },
- {
- key: "extend",
- value: function (r) {
- return {
- provide: n,
- useFactory: function (a) {
- return n.create(r, a || Pm())
- },
- deps: [[n, new So(), new ma()]],
- }
- },
- },
- ]
- ),
- n
- )
- })()
- return (
- (e.ɵprov = te({
- token: e,
- providedIn: "root",
- factory: Pm,
- })),
- e
- )
- })()
- function Fm() {
- return new Ja([new Om()])
- }
- var Ja = (function () {
- var e = (function () {
- function n(t) {
- h(this, n), (this.factories = t)
- }
- return (
- f(
- n,
- [
- {
- key: "find",
- value: function (r) {
- var i = this.factories.find(function (a) {
- return a.supports(r)
- })
- if (i) return i
- throw new Error(
- "Cannot find a differ supporting object '".concat(
- r,
- "'"
- )
- )
- },
- },
- ],
- [
- {
- key: "create",
- value: function (r, i) {
- if (i) {
- var a = i.factories.slice()
- r = r.concat(a)
- }
- return new n(r)
- },
- },
- {
- key: "extend",
- value: function (r) {
- return {
- provide: n,
- useFactory: function (a) {
- return n.create(r, a || Fm())
- },
- deps: [[n, new So(), new ma()]],
- }
- },
- },
- ]
- ),
- n
- )
- })()
- return (
- (e.ɵprov = te({
- token: e,
- providedIn: "root",
- factory: Fm,
- })),
- e
- )
- })(),
- PS = [new Om()],
- RS = new Ko([new Mm()]),
- NS = new Ja(PS),
- LS = ym(null, "core", [
- {
- provide: gu,
- useValue: "unknown",
- },
- {
- provide: Dm,
- deps: [Kn],
- },
- {
- provide: gm,
- deps: [],
- },
- {
- provide: tS,
- deps: [],
- },
- ]),
- US = [
- {
- provide: mu,
- useClass: mu,
- deps: [ar, Kn, Da, Wa, Ya],
- },
- {
- provide: Zw,
- deps: [ar],
- useFactory: function GS(e) {
- var n = []
- return (
- e.onStable.subscribe(function () {
- for (; n.length; ) n.pop()()
- }),
- function (t) {
- n.push(t)
- }
- )
- },
- },
- {
- provide: Ya,
- useClass: Ya,
- deps: [[new ma(), Yc]],
- },
- {
- provide: hm,
- useClass: hm,
- deps: [],
- },
- X0,
- {
- provide: Ko,
- useFactory: function VS() {
- return RS
- },
- deps: [],
- },
- {
- provide: Ja,
- useFactory: function BS() {
- return NS
- },
- deps: [],
- },
- {
- provide: ki,
- useFactory: function HS(e) {
- return (
- e ||
- (function jS() {
- return (
- ("undefined" != typeof $localize && $localize.locale) || au
- )
- })()
- )
- },
- deps: [[new Vs(ki), new ma(), new So()]],
- },
- {
- provide: dm,
- useValue: "USD",
- },
- ],
- WS = (function () {
- var e = f(function n(t) {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(mu))
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: US,
- })),
- e
- )
- })(),
- yu = null
- function $i() {
- return yu
- }
- var qS = f(function e() {
- h(this, e)
- }),
- Or = new ft("DocumentToken"),
- fn = (function () {
- return (
- ((fn = fn || {})[(fn.Zero = 0)] = "Zero"),
- (fn[(fn.One = 1)] = "One"),
- (fn[(fn.Two = 2)] = "Two"),
- (fn[(fn.Few = 3)] = "Few"),
- (fn[(fn.Many = 4)] = "Many"),
- (fn[(fn.Other = 5)] = "Other"),
- fn
- )
- })(),
- r1 = function Xp(e) {
- return (function jn(e) {
- var n = (function xk(e) {
- return e.toLowerCase().replace(/_/g, "-")
- })(e),
- t = eg(n)
- if (t) return t
- var r = n.split("-")[0]
- if ((t = eg(r))) return t
- if ("en" === r) return Nk
- throw new Error(
- 'Missing locale data for the locale "'.concat(e, '".')
- )
- })(e)[ke.PluralCase]
- },
- Mu = f(function e() {
- h(this, e)
- }),
- P1 = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i) {
- var a
- return h(this, r), ((a = t.call(this)).locale = i), a
- }
- return (
- f(r, [
- {
- key: "getPluralCategory",
- value: function (a, o) {
- switch (r1(o || this.locale)(a)) {
- case fn.Zero:
- return "zero"
- case fn.One:
- return "one"
- case fn.Two:
- return "two"
- case fn.Few:
- return "few"
- case fn.Many:
- return "many"
- default:
- return "other"
- }
- },
- },
- ]),
- r
- )
- })(Mu)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(ki))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })()
- function Wm(e, n) {
- n = encodeURIComponent(n)
- var r,
- t = le(e.split(";"))
- try {
- for (t.s(); !(r = t.n()).done; ) {
- var i = r.value,
- a = i.indexOf("="),
- s = ie(-1 == a ? [i, ""] : [i.slice(0, a), i.slice(a + 1)], 2),
- l = s[1]
- if (s[0].trim() === n) return decodeURIComponent(l)
- }
- } catch (c) {
- t.e(c)
- } finally {
- t.f()
- }
- return null
- }
- var yf = (function () {
- var e = (function () {
- function n(t, r, i, a) {
- h(this, n),
- (this._iterableDiffers = t),
- (this._keyValueDiffers = r),
- (this._ngEl = i),
- (this._renderer = a),
- (this._iterableDiffer = null),
- (this._keyValueDiffer = null),
- (this._initialClasses = []),
- (this._rawClass = null)
- }
- return (
- f(n, [
- {
- key: "klass",
- set: function (r) {
- this._removeClasses(this._initialClasses),
- (this._initialClasses =
- "string" == typeof r ? r.split(/\s+/) : []),
- this._applyClasses(this._initialClasses),
- this._applyClasses(this._rawClass)
- },
- },
- {
- key: "ngClass",
- set: function (r) {
- this._removeClasses(this._rawClass),
- this._applyClasses(this._initialClasses),
- (this._iterableDiffer = null),
- (this._keyValueDiffer = null),
- (this._rawClass =
- "string" == typeof r ? r.split(/\s+/) : r),
- this._rawClass &&
- (Lo(this._rawClass)
- ? (this._iterableDiffer = this._iterableDiffers
- .find(this._rawClass)
- .create())
- : (this._keyValueDiffer = this._keyValueDiffers
- .find(this._rawClass)
- .create()))
- },
- },
- {
- key: "ngDoCheck",
- value: function () {
- if (this._iterableDiffer) {
- var r = this._iterableDiffer.diff(this._rawClass)
- r && this._applyIterableChanges(r)
- } else if (this._keyValueDiffer) {
- var i = this._keyValueDiffer.diff(this._rawClass)
- i && this._applyKeyValueChanges(i)
- }
- },
- },
- {
- key: "_applyKeyValueChanges",
- value: function (r) {
- var i = this
- r.forEachAddedItem(function (a) {
- return i._toggleClass(a.key, a.currentValue)
- }),
- r.forEachChangedItem(function (a) {
- return i._toggleClass(a.key, a.currentValue)
- }),
- r.forEachRemovedItem(function (a) {
- a.previousValue && i._toggleClass(a.key, !1)
- })
- },
- },
- {
- key: "_applyIterableChanges",
- value: function (r) {
- var i = this
- r.forEachAddedItem(function (a) {
- if ("string" != typeof a.item)
- throw new Error(
- "NgClass can only toggle CSS classes expressed as strings, got ".concat(
- W(a.item)
- )
- )
- i._toggleClass(a.item, !0)
- }),
- r.forEachRemovedItem(function (a) {
- return i._toggleClass(a.item, !1)
- })
- },
- },
- {
- key: "_applyClasses",
- value: function (r) {
- var i = this
- r &&
- (Array.isArray(r) || r instanceof Set
- ? r.forEach(function (a) {
- return i._toggleClass(a, !0)
- })
- : Object.keys(r).forEach(function (a) {
- return i._toggleClass(a, !!r[a])
- }))
- },
- },
- {
- key: "_removeClasses",
- value: function (r) {
- var i = this
- r &&
- (Array.isArray(r) || r instanceof Set
- ? r.forEach(function (a) {
- return i._toggleClass(a, !1)
- })
- : Object.keys(r).forEach(function (a) {
- return i._toggleClass(a, !1)
- }))
- },
- },
- {
- key: "_toggleClass",
- value: function (r, i) {
- var a = this
- ;(r = r.trim()) &&
- r.split(/\s+/g).forEach(function (o) {
- i
- ? a._renderer.addClass(a._ngEl.nativeElement, o)
- : a._renderer.removeClass(a._ngEl.nativeElement, o)
- })
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Ko), de(Ja), de(gr), de(Zi))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [["", "ngClass", ""]],
- inputs: {
- klass: ["class", "klass"],
- ngClass: "ngClass",
- },
- })),
- e
- )
- })(),
- R1 = (function () {
- function e(n, t, r, i) {
- h(this, e),
- (this.$implicit = n),
- (this.ngForOf = t),
- (this.index = r),
- (this.count = i)
- }
- return (
- f(e, [
- {
- key: "first",
- get: function () {
- return 0 === this.index
- },
- },
- {
- key: "last",
- get: function () {
- return this.index === this.count - 1
- },
- },
- {
- key: "even",
- get: function () {
- return this.index % 2 == 0
- },
- },
- {
- key: "odd",
- get: function () {
- return !this.even
- },
- },
- ]),
- e
- )
- })(),
- _f = (function () {
- var e = (function () {
- function n(t, r, i) {
- h(this, n),
- (this._viewContainer = t),
- (this._template = r),
- (this._differs = i),
- (this._ngForOf = null),
- (this._ngForOfDirty = !0),
- (this._differ = null)
- }
- return (
- f(
- n,
- [
- {
- key: "ngForOf",
- set: function (r) {
- ;(this._ngForOf = r), (this._ngForOfDirty = !0)
- },
- },
- {
- key: "ngForTrackBy",
- get: function () {
- return this._trackByFn
- },
- set: function (r) {
- this._trackByFn = r
- },
- },
- {
- key: "ngForTemplate",
- set: function (r) {
- r && (this._template = r)
- },
- },
- {
- key: "ngDoCheck",
- value: function () {
- if (this._ngForOfDirty) {
- this._ngForOfDirty = !1
- var r = this._ngForOf
- !this._differ &&
- r &&
- (this._differ = this._differs
- .find(r)
- .create(this.ngForTrackBy))
- }
- if (this._differ) {
- var i = this._differ.diff(this._ngForOf)
- i && this._applyChanges(i)
- }
- },
- },
- {
- key: "_applyChanges",
- value: function (r) {
- var i = this,
- a = this._viewContainer
- r.forEachOperation(function (c, d, v) {
- if (null == c.previousIndex)
- a.createEmbeddedView(
- i._template,
- new R1(c.item, i._ngForOf, -1, -1),
- null === v ? void 0 : v
- )
- else if (null == v) a.remove(null === d ? void 0 : d)
- else if (null !== d) {
- var g = a.get(d)
- a.move(g, v), zm(g, c)
- }
- })
- for (var o = 0, s = a.length; o < s; o++) {
- var l = a.get(o).context
- ;(l.index = o),
- (l.count = s),
- (l.ngForOf = this._ngForOf)
- }
- r.forEachIdentityChange(function (c) {
- zm(a.get(c.currentIndex), c)
- })
- },
- },
- ],
- [
- {
- key: "ngTemplateContextGuard",
- value: function (r, i) {
- return !0
- },
- },
- ]
- ),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de($r), de(fi), de(Ko))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [["", "ngFor", "", "ngForOf", ""]],
- inputs: {
- ngForOf: "ngForOf",
- ngForTrackBy: "ngForTrackBy",
- ngForTemplate: "ngForTemplate",
- },
- })),
- e
- )
- })()
- function zm(e, n) {
- e.context.$implicit = n.item
- }
- var Qa = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n),
- (this._viewContainer = t),
- (this._context = new N1()),
- (this._thenTemplateRef = null),
- (this._elseTemplateRef = null),
- (this._thenViewRef = null),
- (this._elseViewRef = null),
- (this._thenTemplateRef = r)
- }
- return (
- f(
- n,
- [
- {
- key: "ngIf",
- set: function (r) {
- ;(this._context.$implicit = this._context.ngIf = r),
- this._updateView()
- },
- },
- {
- key: "ngIfThen",
- set: function (r) {
- Zm("ngIfThen", r),
- (this._thenTemplateRef = r),
- (this._thenViewRef = null),
- this._updateView()
- },
- },
- {
- key: "ngIfElse",
- set: function (r) {
- Zm("ngIfElse", r),
- (this._elseTemplateRef = r),
- (this._elseViewRef = null),
- this._updateView()
- },
- },
- {
- key: "_updateView",
- value: function () {
- this._context.$implicit
- ? this._thenViewRef ||
- (this._viewContainer.clear(),
- (this._elseViewRef = null),
- this._thenTemplateRef &&
- (this._thenViewRef =
- this._viewContainer.createEmbeddedView(
- this._thenTemplateRef,
- this._context
- )))
- : this._elseViewRef ||
- (this._viewContainer.clear(),
- (this._thenViewRef = null),
- this._elseTemplateRef &&
- (this._elseViewRef =
- this._viewContainer.createEmbeddedView(
- this._elseTemplateRef,
- this._context
- )))
- },
- },
- ],
- [
- {
- key: "ngTemplateContextGuard",
- value: function (r, i) {
- return !0
- },
- },
- ]
- ),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de($r), de(fi))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [["", "ngIf", ""]],
- inputs: {
- ngIf: "ngIf",
- ngIfThen: "ngIfThen",
- ngIfElse: "ngIfElse",
- },
- })),
- e
- )
- })(),
- N1 = f(function e() {
- h(this, e), (this.$implicit = null), (this.ngIf = null)
- })
- function Zm(e, n) {
- if (n && !n.createEmbeddedView)
- throw new Error(
- ""
- .concat(e, " must be a TemplateRef, but received '")
- .concat(W(n), "'.")
- )
- }
- var Iu,
- q1 =
- /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,
- $m = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, [
- {
- key: "transform",
- value: function (r) {
- if (null == r) return null
- if ("string" != typeof r)
- throw (function Fr(e, n) {
- return Error(
- "InvalidPipeArgument: '"
- .concat(n, "' for pipe '")
- .concat(W(e), "'")
- )
- })(n, r)
- return r.replace(q1, function (i) {
- return i[0].toUpperCase() + i.substr(1).toLowerCase()
- })
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵpipe = qn({
- name: "titlecase",
- type: e,
- pure: !0,
- })),
- e
- )
- })(),
- sT = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: [
- {
- provide: Mu,
- useClass: P1,
- },
- ],
- })),
- e
- )
- })(),
- kf = f(function e() {
- h(this, e)
- }),
- fT = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r
- return (
- h(this, t),
- ((r = n.apply(this, arguments)).supportsDOMEvents = !0),
- r
- )
- }
- return f(t)
- })(qS),
- dT = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- return h(this, t), n.apply(this, arguments)
- }
- return (
- f(
- t,
- [
- {
- key: "onAndCancel",
- value: function (i, a, o) {
- return (
- i.addEventListener(a, o, !1),
- function () {
- i.removeEventListener(a, o, !1)
- }
- )
- },
- },
- {
- key: "dispatchEvent",
- value: function (i, a) {
- i.dispatchEvent(a)
- },
- },
- {
- key: "remove",
- value: function (i) {
- i.parentNode && i.parentNode.removeChild(i)
- },
- },
- {
- key: "createElement",
- value: function (i, a) {
- return (a = a || this.getDefaultDocument()).createElement(i)
- },
- },
- {
- key: "createHtmlDocument",
- value: function () {
- return document.implementation.createHTMLDocument(
- "fakeTitle"
- )
- },
- },
- {
- key: "getDefaultDocument",
- value: function () {
- return document
- },
- },
- {
- key: "isElementNode",
- value: function (i) {
- return i.nodeType === Node.ELEMENT_NODE
- },
- },
- {
- key: "isShadowRoot",
- value: function (i) {
- return i instanceof DocumentFragment
- },
- },
- {
- key: "getGlobalEventTarget",
- value: function (i, a) {
- return "window" === a
- ? window
- : "document" === a
- ? i
- : "body" === a
- ? i.body
- : null
- },
- },
- {
- key: "getBaseHref",
- value: function (i) {
- var a = (function hT() {
- return (Qo = Qo || document.querySelector("base"))
- ? Qo.getAttribute("href")
- : null
- })()
- return null == a
- ? null
- : (function vT(e) {
- ;(Iu =
- Iu || document.createElement("a")).setAttribute(
- "href",
- e
- )
- var n = Iu.pathname
- return "/" === n.charAt(0) ? n : "/".concat(n)
- })(a)
- },
- },
- {
- key: "resetBaseElement",
- value: function () {
- Qo = null
- },
- },
- {
- key: "getUserAgent",
- value: function () {
- return window.navigator.userAgent
- },
- },
- {
- key: "getCookie",
- value: function (i) {
- return Wm(document.cookie, i)
- },
- },
- ],
- [
- {
- key: "makeCurrent",
- value: function () {
- !(function ZS(e) {
- yu || (yu = e)
- })(new t())
- },
- },
- ]
- ),
- t
- )
- })(fT),
- Qo = null,
- Jm = new ft("TRANSITION_ID"),
- gT = [
- {
- provide: Yc,
- useFactory: function pT(e, n, t) {
- return function () {
- t.get(Ya).donePromise.then(function () {
- for (
- var r = $i(),
- i = n.querySelectorAll(
- 'style[ng-transition="'.concat(e, '"]')
- ),
- a = 0;
- a < i.length;
- a++
- )
- r.remove(i[a])
- })
- }
- },
- deps: [Jm, Or, Kn],
- multi: !0,
- },
- ],
- mT = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(
- e,
- [
- {
- key: "addToWindow",
- value: function (t) {
- ;(Ot.getAngularTestability = function (i) {
- var a =
- !(arguments.length > 1 && void 0 !== arguments[1]) ||
- arguments[1],
- o = t.findTestabilityInTree(i, a)
- if (null == o)
- throw new Error(
- "Could not find testability for element."
- )
- return o
- }),
- (Ot.getAllAngularTestabilities = function () {
- return t.getAllTestabilities()
- }),
- (Ot.getAllAngularRootElements = function () {
- return t.getAllRootElements()
- }),
- Ot.frameworkStabilizers || (Ot.frameworkStabilizers = []),
- Ot.frameworkStabilizers.push(function (a) {
- var o = Ot.getAllAngularTestabilities(),
- s = o.length,
- u = !1,
- l = function (d) {
- ;(u = u || d), 0 == --s && a(u)
- }
- o.forEach(function (c) {
- c.whenStable(l)
- })
- })
- },
- },
- {
- key: "findTestabilityInTree",
- value: function (t, r, i) {
- if (null == r) return null
- var a = t.getTestability(r)
- return null != a
- ? a
- : i
- ? $i().isShadowRoot(r)
- ? this.findTestabilityInTree(t, r.host, !0)
- : this.findTestabilityInTree(t, r.parentElement, !0)
- : null
- },
- },
- ],
- [
- {
- key: "init",
- value: function () {
- !(function fS(e) {
- nf = e
- })(new e())
- },
- },
- ]
- ),
- e
- )
- })(),
- yT = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, [
- {
- key: "build",
- value: function () {
- return new XMLHttpRequest()
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- Au = new ft("EventManagerPlugins"),
- Ou = (function () {
- var e = (function () {
- function n(t, r) {
- var i = this
- h(this, n),
- (this._zone = r),
- (this._eventNameToPlugin = new Map()),
- t.forEach(function (a) {
- return (a.manager = i)
- }),
- (this._plugins = t.slice().reverse())
- }
- return (
- f(n, [
- {
- key: "addEventListener",
- value: function (r, i, a) {
- return this._findPluginFor(i).addEventListener(r, i, a)
- },
- },
- {
- key: "addGlobalEventListener",
- value: function (r, i, a) {
- return this._findPluginFor(i).addGlobalEventListener(
- r,
- i,
- a
- )
- },
- },
- {
- key: "getZone",
- value: function () {
- return this._zone
- },
- },
- {
- key: "_findPluginFor",
- value: function (r) {
- var i = this._eventNameToPlugin.get(r)
- if (i) return i
- for (var a = this._plugins, o = 0; o < a.length; o++) {
- var s = a[o]
- if (s.supports(r))
- return this._eventNameToPlugin.set(r, s), s
- }
- throw new Error(
- "No event manager plugin found for event ".concat(r)
- )
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Au), dt(ar))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- Qm = (function () {
- function e(n) {
- h(this, e), (this._doc = n)
- }
- return (
- f(e, [
- {
- key: "addGlobalEventListener",
- value: function (t, r, i) {
- var a = $i().getGlobalEventTarget(this._doc, t)
- if (!a)
- throw new Error(
- "Unsupported event target "
- .concat(a, " for event ")
- .concat(r)
- )
- return this.addEventListener(a, r, i)
- },
- },
- ]),
- e
- )
- })(),
- Xm = (function () {
- var e = (function () {
- function n() {
- h(this, n), (this._stylesSet = new Set())
- }
- return (
- f(n, [
- {
- key: "addStyles",
- value: function (r) {
- var i = this,
- a = new Set()
- r.forEach(function (o) {
- i._stylesSet.has(o) || (i._stylesSet.add(o), a.add(o))
- }),
- this.onStylesAdded(a)
- },
- },
- {
- key: "onStylesAdded",
- value: function (r) {},
- },
- {
- key: "getAllStyles",
- value: function () {
- return Array.from(this._stylesSet)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- Xo = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i) {
- var a
- return (
- h(this, r),
- ((a = t.call(this))._doc = i),
- (a._hostNodes = new Map()),
- a._hostNodes.set(i.head, []),
- a
- )
- }
- return (
- f(r, [
- {
- key: "_addStylesToHost",
- value: function (a, o, s) {
- var u = this
- a.forEach(function (l) {
- var c = u._doc.createElement("style")
- ;(c.textContent = l), s.push(o.appendChild(c))
- })
- },
- },
- {
- key: "addHost",
- value: function (a) {
- var o = []
- this._addStylesToHost(this._stylesSet, a, o),
- this._hostNodes.set(a, o)
- },
- },
- {
- key: "removeHost",
- value: function (a) {
- var o = this._hostNodes.get(a)
- o && o.forEach(ey), this._hostNodes.delete(a)
- },
- },
- {
- key: "onStylesAdded",
- value: function (a) {
- var o = this
- this._hostNodes.forEach(function (s, u) {
- o._addStylesToHost(a, u, s)
- })
- },
- },
- {
- key: "ngOnDestroy",
- value: function () {
- this._hostNodes.forEach(function (a) {
- return a.forEach(ey)
- })
- },
- },
- ]),
- r
- )
- })(Xm)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Or))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })()
- function ey(e) {
- $i().remove(e)
- }
- var wf = {
- svg: "http://www.w3.org/2000/svg",
- xhtml: "http://www.w3.org/1999/xhtml",
- xlink: "http://www.w3.org/1999/xlink",
- xml: "http://www.w3.org/XML/1998/namespace",
- xmlns: "http://www.w3.org/2000/xmlns/",
- },
- Sf = /%COMP%/g,
- _T = "_nghost-".concat("%COMP%"),
- DT = "_ngcontent-".concat("%COMP%")
- function Pu(e, n, t) {
- for (var r = 0; r < n.length; r++) {
- var i = n[r]
- Array.isArray(i) ? Pu(e, i, t) : ((i = i.replace(Sf, e)), t.push(i))
- }
- return t
- }
- function ry(e) {
- return function (n) {
- if ("__ngUnwrap__" === n) return e
- !1 === e(n) && (n.preventDefault(), (n.returnValue = !1))
- }
- }
- var Tf = (function () {
- var e = (function () {
- function n(t, r, i) {
- h(this, n),
- (this.eventManager = t),
- (this.sharedStylesHost = r),
- (this.appId = i),
- (this.rendererByCompId = new Map()),
- (this.defaultRenderer = new Mf(t))
- }
- return (
- f(n, [
- {
- key: "createRenderer",
- value: function (r, i) {
- if (!r || !i) return this.defaultRenderer
- switch (i.encapsulation) {
- case Vn.Emulated:
- var a = this.rendererByCompId.get(i.id)
- return (
- a ||
- ((a = new kT(
- this.eventManager,
- this.sharedStylesHost,
- i,
- this.appId
- )),
- this.rendererByCompId.set(i.id, a)),
- a.applyToHost(r),
- a
- )
- case 1:
- case Vn.ShadowDom:
- return new wT(
- this.eventManager,
- this.sharedStylesHost,
- r,
- i
- )
- default:
- if (!this.rendererByCompId.has(i.id)) {
- var o = Pu(i.id, i.styles, [])
- this.sharedStylesHost.addStyles(o),
- this.rendererByCompId.set(
- i.id,
- this.defaultRenderer
- )
- }
- return this.defaultRenderer
- }
- },
- },
- {
- key: "begin",
- value: function () {},
- },
- {
- key: "end",
- value: function () {},
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Ou), dt(Xo), dt($o))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- Mf = (function () {
- function e(n) {
- h(this, e),
- (this.eventManager = n),
- (this.data = Object.create(null)),
- (this.destroyNode = null)
- }
- return (
- f(e, [
- {
- key: "destroy",
- value: function () {},
- },
- {
- key: "createElement",
- value: function (t, r) {
- return r
- ? document.createElementNS(wf[r] || r, t)
- : document.createElement(t)
- },
- },
- {
- key: "createComment",
- value: function (t) {
- return document.createComment(t)
- },
- },
- {
- key: "createText",
- value: function (t) {
- return document.createTextNode(t)
- },
- },
- {
- key: "appendChild",
- value: function (t, r) {
- t.appendChild(r)
- },
- },
- {
- key: "insertBefore",
- value: function (t, r, i) {
- t && t.insertBefore(r, i)
- },
- },
- {
- key: "removeChild",
- value: function (t, r) {
- t && t.removeChild(r)
- },
- },
- {
- key: "selectRootElement",
- value: function (t, r) {
- var i = "string" == typeof t ? document.querySelector(t) : t
- if (!i)
- throw new Error(
- 'The selector "'.concat(t, '" did not match any elements')
- )
- return r || (i.textContent = ""), i
- },
- },
- {
- key: "parentNode",
- value: function (t) {
- return t.parentNode
- },
- },
- {
- key: "nextSibling",
- value: function (t) {
- return t.nextSibling
- },
- },
- {
- key: "setAttribute",
- value: function (t, r, i, a) {
- if (a) {
- r = a + ":" + r
- var o = wf[a]
- o ? t.setAttributeNS(o, r, i) : t.setAttribute(r, i)
- } else t.setAttribute(r, i)
- },
- },
- {
- key: "removeAttribute",
- value: function (t, r, i) {
- if (i) {
- var a = wf[i]
- a
- ? t.removeAttributeNS(a, r)
- : t.removeAttribute("".concat(i, ":").concat(r))
- } else t.removeAttribute(r)
- },
- },
- {
- key: "addClass",
- value: function (t, r) {
- t.classList.add(r)
- },
- },
- {
- key: "removeClass",
- value: function (t, r) {
- t.classList.remove(r)
- },
- },
- {
- key: "setStyle",
- value: function (t, r, i, a) {
- a & (rr.DashCase | rr.Important)
- ? t.style.setProperty(
- r,
- i,
- a & rr.Important ? "important" : ""
- )
- : (t.style[r] = i)
- },
- },
- {
- key: "removeStyle",
- value: function (t, r, i) {
- i & rr.DashCase
- ? t.style.removeProperty(r)
- : (t.style[r] = "")
- },
- },
- {
- key: "setProperty",
- value: function (t, r, i) {
- t[r] = i
- },
- },
- {
- key: "setValue",
- value: function (t, r) {
- t.nodeValue = r
- },
- },
- {
- key: "listen",
- value: function (t, r, i) {
- return "string" == typeof t
- ? this.eventManager.addGlobalEventListener(t, r, ry(i))
- : this.eventManager.addEventListener(t, r, ry(i))
- },
- },
- ]),
- e
- )
- })(),
- kT = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a, o) {
- var s
- h(this, t), ((s = n.call(this, r)).component = a)
- var u = Pu(o + "-" + a.id, a.styles, [])
- return (
- i.addStyles(u),
- (s.contentAttr = (function bT(e) {
- return DT.replace(Sf, e)
- })(o + "-" + a.id)),
- (s.hostAttr = (function CT(e) {
- return _T.replace(Sf, e)
- })(o + "-" + a.id)),
- s
- )
- }
- return (
- f(t, [
- {
- key: "applyToHost",
- value: function (i) {
- T(D(t.prototype), "setAttribute", this).call(
- this,
- i,
- this.hostAttr,
- ""
- )
- },
- },
- {
- key: "createElement",
- value: function (i, a) {
- var o = T(D(t.prototype), "createElement", this).call(
- this,
- i,
- a
- )
- return (
- T(D(t.prototype), "setAttribute", this).call(
- this,
- o,
- this.contentAttr,
- ""
- ),
- o
- )
- },
- },
- ]),
- t
- )
- })(Mf),
- wT = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a, o) {
- var s
- h(this, t),
- ((s = n.call(this, r)).sharedStylesHost = i),
- (s.hostEl = a),
- (s.shadowRoot = a.attachShadow({
- mode: "open",
- })),
- s.sharedStylesHost.addHost(s.shadowRoot)
- for (var u = Pu(o.id, o.styles, []), l = 0; l < u.length; l++) {
- var c = document.createElement("style")
- ;(c.textContent = u[l]), s.shadowRoot.appendChild(c)
- }
- return s
- }
- return (
- f(t, [
- {
- key: "nodeOrShadowRoot",
- value: function (i) {
- return i === this.hostEl ? this.shadowRoot : i
- },
- },
- {
- key: "destroy",
- value: function () {
- this.sharedStylesHost.removeHost(this.shadowRoot)
- },
- },
- {
- key: "appendChild",
- value: function (i, a) {
- return T(D(t.prototype), "appendChild", this).call(
- this,
- this.nodeOrShadowRoot(i),
- a
- )
- },
- },
- {
- key: "insertBefore",
- value: function (i, a, o) {
- return T(D(t.prototype), "insertBefore", this).call(
- this,
- this.nodeOrShadowRoot(i),
- a,
- o
- )
- },
- },
- {
- key: "removeChild",
- value: function (i, a) {
- return T(D(t.prototype), "removeChild", this).call(
- this,
- this.nodeOrShadowRoot(i),
- a
- )
- },
- },
- {
- key: "parentNode",
- value: function (i) {
- return this.nodeOrShadowRoot(
- T(D(t.prototype), "parentNode", this).call(
- this,
- this.nodeOrShadowRoot(i)
- )
- )
- },
- },
- ]),
- t
- )
- })(Mf),
- ST = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i) {
- return h(this, r), t.call(this, i)
- }
- return (
- f(r, [
- {
- key: "supports",
- value: function (a) {
- return !0
- },
- },
- {
- key: "addEventListener",
- value: function (a, o, s) {
- var u = this
- return (
- a.addEventListener(o, s, !1),
- function () {
- return u.removeEventListener(a, o, s)
- }
- )
- },
- },
- {
- key: "removeEventListener",
- value: function (a, o, s) {
- return a.removeEventListener(o, s)
- },
- },
- ]),
- r
- )
- })(Qm)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Or))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- ay = ["alt", "control", "meta", "shift"],
- MT = {
- "\b": "Backspace",
- "\t": "Tab",
- "\x7f": "Delete",
- "\x1b": "Escape",
- Del: "Delete",
- Esc: "Escape",
- Left: "ArrowLeft",
- Right: "ArrowRight",
- Up: "ArrowUp",
- Down: "ArrowDown",
- Menu: "ContextMenu",
- Scroll: "ScrollLock",
- Win: "OS",
- },
- oy = {
- A: "1",
- B: "2",
- C: "3",
- D: "4",
- E: "5",
- F: "6",
- G: "7",
- H: "8",
- I: "9",
- J: "*",
- K: "+",
- M: "-",
- N: ".",
- O: "/",
- "`": "0",
- "\x90": "NumLock",
- },
- IT = {
- alt: function (n) {
- return n.altKey
- },
- control: function (n) {
- return n.ctrlKey
- },
- meta: function (n) {
- return n.metaKey
- },
- shift: function (n) {
- return n.shiftKey
- },
- },
- AT = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i) {
- return h(this, r), t.call(this, i)
- }
- return (
- f(
- r,
- [
- {
- key: "supports",
- value: function (a) {
- return null != r.parseEventName(a)
- },
- },
- {
- key: "addEventListener",
- value: function (a, o, s) {
- var u = r.parseEventName(o),
- l = r.eventCallback(
- u.fullKey,
- s,
- this.manager.getZone()
- )
- return this.manager
- .getZone()
- .runOutsideAngular(function () {
- return $i().onAndCancel(a, u.domEventName, l)
- })
- },
- },
- ],
- [
- {
- key: "parseEventName",
- value: function (a) {
- var o = a.toLowerCase().split("."),
- s = o.shift()
- if (0 === o.length || ("keydown" !== s && "keyup" !== s))
- return null
- var u = r._normalizeKey(o.pop()),
- l = ""
- if (
- (ay.forEach(function (d) {
- var v = o.indexOf(d)
- v > -1 && (o.splice(v, 1), (l += d + "."))
- }),
- (l += u),
- 0 != o.length || 0 === u.length)
- )
- return null
- var c = {}
- return (c.domEventName = s), (c.fullKey = l), c
- },
- },
- {
- key: "getEventFullKey",
- value: function (a) {
- var o = "",
- s = (function OT(e) {
- var n = e.key
- if (null == n) {
- if (null == (n = e.keyIdentifier))
- return "Unidentified"
- n.startsWith("U+") &&
- ((n = String.fromCharCode(
- parseInt(n.substring(2), 16)
- )),
- 3 === e.location &&
- oy.hasOwnProperty(n) &&
- (n = oy[n]))
- }
- return MT[n] || n
- })(a)
- return (
- " " === (s = s.toLowerCase())
- ? (s = "space")
- : "." === s && (s = "dot"),
- ay.forEach(function (u) {
- u != s && (0, IT[u])(a) && (o += u + ".")
- }),
- (o += s)
- )
- },
- },
- {
- key: "eventCallback",
- value: function (a, o, s) {
- return function (u) {
- r.getEventFullKey(u) === a &&
- s.runGuarded(function () {
- return o(u)
- })
- }
- },
- },
- {
- key: "_normalizeKey",
- value: function (a) {
- return "esc" === a ? "escape" : a
- },
- },
- ]
- ),
- r
- )
- })(Qm)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Or))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- NT = [
- {
- provide: gu,
- useValue: "browser",
- },
- {
- provide: fm,
- useValue: function PT() {
- dT.makeCurrent(), mT.init()
- },
- multi: !0,
- },
- {
- provide: Or,
- useFactory: function RT() {
- return (
- (function F_(e) {
- al = e
- })(document),
- document
- )
- },
- deps: [],
- },
- ],
- xT = ym(LS, "browser", NT),
- LT = [
- {
- provide: Dc,
- useValue: "root",
- },
- {
- provide: Da,
- useFactory: function FT() {
- return new Da()
- },
- deps: [],
- },
- {
- provide: Au,
- useClass: ST,
- multi: !0,
- deps: [Or, ar, gu],
- },
- {
- provide: Au,
- useClass: AT,
- multi: !0,
- deps: [Or],
- },
- {
- provide: Tf,
- useClass: Tf,
- deps: [Ou, Xo, $o],
- },
- {
- provide: Mg,
- useExisting: Tf,
- },
- {
- provide: Xm,
- useExisting: Xo,
- },
- {
- provide: Xo,
- useClass: Xo,
- deps: [Or],
- },
- {
- provide: tf,
- useClass: tf,
- deps: [ar],
- },
- {
- provide: Ou,
- useClass: Ou,
- deps: [Au, ar],
- },
- {
- provide: kf,
- useClass: yT,
- deps: [],
- },
- ],
- VT = (function () {
- var e = (function () {
- function n(t) {
- if ((h(this, n), t))
- throw new Error(
- "BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead."
- )
- }
- return (
- f(n, null, [
- {
- key: "withServerTransition",
- value: function (r) {
- return {
- ngModule: n,
- providers: [
- {
- provide: $o,
- useValue: r.appId,
- },
- {
- provide: Jm,
- useExisting: $o,
- },
- gT,
- ],
- }
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(e, 12))
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: LT,
- imports: [sT, WS],
- })),
- e
- )
- })()
- function Fu(e, n) {
- return new an(function (t) {
- var r = e.length
- if (0 !== r)
- for (
- var i = new Array(r),
- a = 0,
- o = 0,
- s = function (c) {
- var d = wn(e[c]),
- v = !1
- t.add(
- d.subscribe({
- next: function (C) {
- v || ((v = !0), o++), (i[c] = C)
- },
- error: function (C) {
- return t.error(C)
- },
- complete: function () {
- ;(++a === r || !v) &&
- (o === r &&
- t.next(
- n
- ? n.reduce(function (C, N, G) {
- return (C[N] = i[G]), C
- }, {})
- : i
- ),
- t.complete())
- },
- })
- )
- },
- u = 0;
- u < r;
- u++
- )
- s(u)
- else t.complete()
- })
- }
- "undefined" != typeof window && window, p(4787), p(6084)
- var ly = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n),
- (this._renderer = t),
- (this._elementRef = r),
- (this.onChange = function (i) {}),
- (this.onTouched = function () {})
- }
- return (
- f(n, [
- {
- key: "setProperty",
- value: function (r, i) {
- this._renderer.setProperty(
- this._elementRef.nativeElement,
- r,
- i
- )
- },
- },
- {
- key: "registerOnTouched",
- value: function (r) {
- this.onTouched = r
- },
- },
- {
- key: "registerOnChange",
- value: function (r) {
- this.onChange = r
- },
- },
- {
- key: "setDisabledState",
- value: function (r) {
- this.setProperty("disabled", r)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Zi), de(gr))
- }),
- (e.ɵdir = Je({
- type: e,
- })),
- e
- )
- })(),
- Ki = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r() {
- return h(this, r), t.apply(this, arguments)
- }
- return f(r)
- })(ly)
- return (
- (e.ɵfac = (function () {
- var n
- return function (r) {
- return (n || (n = tr(e)))(r || e)
- }
- })()),
- (e.ɵdir = Je({
- type: e,
- features: [Ht],
- })),
- e
- )
- })(),
- Qr = new ft("NgValueAccessor"),
- $T = {
- provide: Qr,
- useExisting: Se(function () {
- return Af
- }),
- multi: !0,
- },
- Af = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r() {
- return h(this, r), t.apply(this, arguments)
- }
- return (
- f(r, [
- {
- key: "writeValue",
- value: function (a) {
- this.setProperty("checked", a)
- },
- },
- ]),
- r
- )
- })(Ki)
- return (
- (e.ɵfac = (function () {
- var n
- return function (r) {
- return (n || (n = tr(e)))(r || e)
- }
- })()),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- ["input", "type", "checkbox", "formControlName", ""],
- ["input", "type", "checkbox", "formControl", ""],
- ["input", "type", "checkbox", "ngModel", ""],
- ],
- hostBindings: function (t, r) {
- 1 & t &&
- Ue("change", function (a) {
- return r.onChange(a.target.checked)
- })("blur", function () {
- return r.onTouched()
- })
- },
- features: [$t([$T]), Ht],
- })),
- e
- )
- })(),
- KT = {
- provide: Qr,
- useExisting: Se(function () {
- return Xa
- }),
- multi: !0,
- },
- JT = new ft("CompositionEventMode"),
- Xa = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i, a, o) {
- var s
- return (
- h(this, r),
- ((s = t.call(this, i, a))._compositionMode = o),
- (s._composing = !1),
- null == s._compositionMode &&
- (s._compositionMode = !(function YT() {
- var e = $i() ? $i().getUserAgent() : ""
- return /android (\d+)/.test(e.toLowerCase())
- })()),
- s
- )
- }
- return (
- f(r, [
- {
- key: "writeValue",
- value: function (a) {
- this.setProperty("value", null == a ? "" : a)
- },
- },
- {
- key: "_handleInput",
- value: function (a) {
- ;(!this._compositionMode ||
- (this._compositionMode && !this._composing)) &&
- this.onChange(a)
- },
- },
- {
- key: "_compositionStart",
- value: function () {
- this._composing = !0
- },
- },
- {
- key: "_compositionEnd",
- value: function (a) {
- ;(this._composing = !1),
- this._compositionMode && this.onChange(a)
- },
- },
- ]),
- r
- )
- })(ly)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Zi), de(gr), de(JT, 8))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- ["input", "formControlName", "", 3, "type", "checkbox"],
- ["textarea", "formControlName", ""],
- ["input", "formControl", "", 3, "type", "checkbox"],
- ["textarea", "formControl", ""],
- ["input", "ngModel", "", 3, "type", "checkbox"],
- ["textarea", "ngModel", ""],
- ["", "ngDefaultControl", ""],
- ],
- hostBindings: function (t, r) {
- 1 & t &&
- Ue("input", function (a) {
- return r._handleInput(a.target.value)
- })("blur", function () {
- return r.onTouched()
- })("compositionstart", function () {
- return r._compositionStart()
- })("compositionend", function (a) {
- return r._compositionEnd(a.target.value)
- })
- },
- features: [$t([KT]), Ht],
- })),
- e
- )
- })()
- var Fn = new ft("NgValidators"),
- Si = new ft("NgAsyncValidators")
- function fy(e) {
- return null != e
- }
- function dy(e) {
- var n = tu(e) ? wn(e) : e
- return up(n), n
- }
- function hy(e) {
- var n = {}
- return (
- e.forEach(function (t) {
- n = null != t ? Object.assign(Object.assign({}, n), t) : n
- }),
- 0 === Object.keys(n).length ? null : n
- )
- }
- function vy(e, n) {
- return n.map(function (t) {
- return t(e)
- })
- }
- function py(e) {
- return e.map(function (n) {
- return (function sM(e) {
- return !e.validate
- })(n)
- ? n
- : function (t) {
- return n.validate(t)
- }
- })
- }
- function Of(e) {
- return null != e
- ? (function uM(e) {
- if (!e) return null
- var n = e.filter(fy)
- return 0 == n.length
- ? null
- : function (t) {
- return hy(vy(t, n))
- }
- })(py(e))
- : null
- }
- function Pf(e) {
- return null != e
- ? (function lM(e) {
- if (!e) return null
- var n = e.filter(fy)
- return 0 == n.length
- ? null
- : function (t) {
- return (function qT() {
- for (
- var e = arguments.length, n = new Array(e), t = 0;
- t < e;
- t++
- )
- n[t] = arguments[t]
- if (1 === n.length) {
- var r = n[0]
- if (xt(r)) return Fu(r, null)
- if (
- wt(r) &&
- Object.getPrototypeOf(r) === Object.prototype
- ) {
- var i = Object.keys(r)
- return Fu(
- i.map(function (o) {
- return r[o]
- }),
- i
- )
- }
- }
- if ("function" == typeof n[n.length - 1]) {
- var a = n.pop()
- return Fu(
- (n = 1 === n.length && xt(n[0]) ? n[0] : n),
- null
- ).pipe(
- or(function (o) {
- return a.apply(void 0, pt(o))
- })
- )
- }
- return Fu(n, null)
- })(vy(t, n).map(dy)).pipe(or(hy))
- }
- })(py(e))
- : null
- }
- function gy(e, n) {
- return null === e
- ? [n]
- : Array.isArray(e)
- ? [].concat(pt(e), [n])
- : [e, n]
- }
- function Ff(e) {
- return e ? (Array.isArray(e) ? e : [e]) : []
- }
- function Nu(e, n) {
- return Array.isArray(e) ? e.includes(n) : e === n
- }
- function _y(e, n) {
- var t = Ff(n)
- return (
- Ff(e).forEach(function (i) {
- Nu(t, i) || t.push(i)
- }),
- t
- )
- }
- function Dy(e, n) {
- return Ff(n).filter(function (t) {
- return !Nu(e, t)
- })
- }
- var by = (function () {
- function e() {
- h(this, e),
- (this._rawValidators = []),
- (this._rawAsyncValidators = []),
- (this._onDestroyCallbacks = [])
- }
- return (
- f(e, [
- {
- key: "value",
- get: function () {
- return this.control ? this.control.value : null
- },
- },
- {
- key: "valid",
- get: function () {
- return this.control ? this.control.valid : null
- },
- },
- {
- key: "invalid",
- get: function () {
- return this.control ? this.control.invalid : null
- },
- },
- {
- key: "pending",
- get: function () {
- return this.control ? this.control.pending : null
- },
- },
- {
- key: "disabled",
- get: function () {
- return this.control ? this.control.disabled : null
- },
- },
- {
- key: "enabled",
- get: function () {
- return this.control ? this.control.enabled : null
- },
- },
- {
- key: "errors",
- get: function () {
- return this.control ? this.control.errors : null
- },
- },
- {
- key: "pristine",
- get: function () {
- return this.control ? this.control.pristine : null
- },
- },
- {
- key: "dirty",
- get: function () {
- return this.control ? this.control.dirty : null
- },
- },
- {
- key: "touched",
- get: function () {
- return this.control ? this.control.touched : null
- },
- },
- {
- key: "status",
- get: function () {
- return this.control ? this.control.status : null
- },
- },
- {
- key: "untouched",
- get: function () {
- return this.control ? this.control.untouched : null
- },
- },
- {
- key: "statusChanges",
- get: function () {
- return this.control ? this.control.statusChanges : null
- },
- },
- {
- key: "valueChanges",
- get: function () {
- return this.control ? this.control.valueChanges : null
- },
- },
- {
- key: "path",
- get: function () {
- return null
- },
- },
- {
- key: "_setValidators",
- value: function (t) {
- ;(this._rawValidators = t || []),
- (this._composedValidatorFn = Of(this._rawValidators))
- },
- },
- {
- key: "_setAsyncValidators",
- value: function (t) {
- ;(this._rawAsyncValidators = t || []),
- (this._composedAsyncValidatorFn = Pf(
- this._rawAsyncValidators
- ))
- },
- },
- {
- key: "validator",
- get: function () {
- return this._composedValidatorFn || null
- },
- },
- {
- key: "asyncValidator",
- get: function () {
- return this._composedAsyncValidatorFn || null
- },
- },
- {
- key: "_registerOnDestroy",
- value: function (t) {
- this._onDestroyCallbacks.push(t)
- },
- },
- {
- key: "_invokeOnDestroyCallbacks",
- value: function () {
- this._onDestroyCallbacks.forEach(function (t) {
- return t()
- }),
- (this._onDestroyCallbacks = [])
- },
- },
- {
- key: "reset",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : void 0
- this.control && this.control.reset(t)
- },
- },
- {
- key: "hasError",
- value: function (t, r) {
- return !!this.control && this.control.hasError(t, r)
- },
- },
- {
- key: "getError",
- value: function (t, r) {
- return this.control ? this.control.getError(t, r) : null
- },
- },
- ]),
- e
- )
- })(),
- Ti = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r
- return (
- h(this, t),
- ((r = n.apply(this, arguments))._parent = null),
- (r.name = null),
- (r.valueAccessor = null),
- r
- )
- }
- return f(t)
- })(by),
- Gn = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- return h(this, t), n.apply(this, arguments)
- }
- return (
- f(t, [
- {
- key: "formDirective",
- get: function () {
- return null
- },
- },
- {
- key: "path",
- get: function () {
- return null
- },
- },
- ]),
- t
- )
- })(by),
- Cy = (function () {
- function e(n) {
- h(this, e), (this._cd = n)
- }
- return (
- f(e, [
- {
- key: "is",
- value: function (t) {
- var r, i, a
- return "submitted" === t
- ? !!(null === (r = this._cd) || void 0 === r
- ? void 0
- : r.submitted)
- : !!(null ===
- (a =
- null === (i = this._cd) || void 0 === i
- ? void 0
- : i.control) || void 0 === a
- ? void 0
- : a[t])
- },
- },
- ]),
- e
- )
- })(),
- es = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i) {
- return h(this, r), t.call(this, i)
- }
- return f(r)
- })(Cy)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Ti, 2))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- ["", "formControlName", ""],
- ["", "ngModel", ""],
- ["", "formControl", ""],
- ],
- hostVars: 14,
- hostBindings: function (t, r) {
- 2 & t &&
- ru("ng-untouched", r.is("untouched"))(
- "ng-touched",
- r.is("touched")
- )("ng-pristine", r.is("pristine"))("ng-dirty", r.is("dirty"))(
- "ng-valid",
- r.is("valid")
- )("ng-invalid", r.is("invalid"))(
- "ng-pending",
- r.is("pending")
- )
- },
- features: [Ht],
- })),
- e
- )
- })()
- function ts(e, n) {
- ;(function xf(e, n) {
- var t = (function my(e) {
- return e._rawValidators
- })(e)
- null !== n.validator
- ? e.setValidators(gy(t, n.validator))
- : "function" == typeof t && e.setValidators([t])
- var r = (function yy(e) {
- return e._rawAsyncValidators
- })(e)
- null !== n.asyncValidator
- ? e.setAsyncValidators(gy(r, n.asyncValidator))
- : "function" == typeof r && e.setAsyncValidators([r])
- var i = function () {
- return e.updateValueAndValidity()
- }
- Bu(n._rawValidators, i), Bu(n._rawAsyncValidators, i)
- })(e, n),
- n.valueAccessor.writeValue(e.value),
- (function yM(e, n) {
- n.valueAccessor.registerOnChange(function (t) {
- ;(e._pendingValue = t),
- (e._pendingChange = !0),
- (e._pendingDirty = !0),
- "change" === e.updateOn && ky(e, n)
- })
- })(e, n),
- (function DM(e, n) {
- var t = function (i, a) {
- n.valueAccessor.writeValue(i), a && n.viewToModelUpdate(i)
- }
- e.registerOnChange(t),
- n._registerOnDestroy(function () {
- e._unregisterOnChange(t)
- })
- })(e, n),
- (function _M(e, n) {
- n.valueAccessor.registerOnTouched(function () {
- ;(e._pendingTouched = !0),
- "blur" === e.updateOn && e._pendingChange && ky(e, n),
- "submit" !== e.updateOn && e.markAsTouched()
- })
- })(e, n),
- (function mM(e, n) {
- if (n.valueAccessor.setDisabledState) {
- var t = function (i) {
- n.valueAccessor.setDisabledState(i)
- }
- e.registerOnDisabledChange(t),
- n._registerOnDestroy(function () {
- e._unregisterOnDisabledChange(t)
- })
- }
- })(e, n)
- }
- function Bu(e, n) {
- e.forEach(function (t) {
- t.registerOnValidatorChange && t.registerOnValidatorChange(n)
- })
- }
- function ky(e, n) {
- e._pendingDirty && e.markAsDirty(),
- e.setValue(e._pendingValue, {
- emitModelToViewChange: !1,
- }),
- n.viewToModelUpdate(e._pendingValue),
- (e._pendingChange = !1)
- }
- function ju(e, n) {
- var t = e.indexOf(n)
- t > -1 && e.splice(t, 1)
- }
- var ns = "VALID",
- Uu = "INVALID",
- eo = "PENDING",
- rs = "DISABLED"
- function Hf(e) {
- return (Uf(e) ? e.validators : e) || null
- }
- function Ty(e) {
- return Array.isArray(e) ? Of(e) : e || null
- }
- function jf(e, n) {
- return (Uf(n) ? n.asyncValidators : e) || null
- }
- function My(e) {
- return Array.isArray(e) ? Pf(e) : e || null
- }
- function Uf(e) {
- return null != e && !Array.isArray(e) && "object" == typeof e
- }
- var Gf = function (n) {
- return n instanceof zf
- }
- function Ay(e) {
- return e instanceof Fy ? e.value : e.getRawValue()
- }
- function Oy(e, n) {
- var t = Gf(e),
- r = e.controls
- if (!(t ? Object.keys(r) : r).length) throw new xe(1e3, "")
- if (!r[n]) throw new xe(1001, "")
- }
- function Py(e, n) {
- Gf(e),
- e._forEachChild(function (r, i) {
- if (void 0 === n[i]) throw new xe(1002, "")
- })
- }
- var Wf = (function () {
- function e(n, t) {
- h(this, e),
- (this._pendingDirty = !1),
- (this._hasOwnPendingAsyncValidator = !1),
- (this._pendingTouched = !1),
- (this._onCollectionChange = function () {}),
- (this._parent = null),
- (this.pristine = !0),
- (this.touched = !1),
- (this._onDisabledChange = []),
- (this._rawValidators = n),
- (this._rawAsyncValidators = t),
- (this._composedValidatorFn = Ty(this._rawValidators)),
- (this._composedAsyncValidatorFn = My(this._rawAsyncValidators))
- }
- return (
- f(e, [
- {
- key: "validator",
- get: function () {
- return this._composedValidatorFn
- },
- set: function (t) {
- this._rawValidators = this._composedValidatorFn = t
- },
- },
- {
- key: "asyncValidator",
- get: function () {
- return this._composedAsyncValidatorFn
- },
- set: function (t) {
- this._rawAsyncValidators = this._composedAsyncValidatorFn = t
- },
- },
- {
- key: "parent",
- get: function () {
- return this._parent
- },
- },
- {
- key: "valid",
- get: function () {
- return this.status === ns
- },
- },
- {
- key: "invalid",
- get: function () {
- return this.status === Uu
- },
- },
- {
- key: "pending",
- get: function () {
- return this.status == eo
- },
- },
- {
- key: "disabled",
- get: function () {
- return this.status === rs
- },
- },
- {
- key: "enabled",
- get: function () {
- return this.status !== rs
- },
- },
- {
- key: "dirty",
- get: function () {
- return !this.pristine
- },
- },
- {
- key: "untouched",
- get: function () {
- return !this.touched
- },
- },
- {
- key: "updateOn",
- get: function () {
- return this._updateOn
- ? this._updateOn
- : this.parent
- ? this.parent.updateOn
- : "change"
- },
- },
- {
- key: "setValidators",
- value: function (t) {
- ;(this._rawValidators = t),
- (this._composedValidatorFn = Ty(t))
- },
- },
- {
- key: "setAsyncValidators",
- value: function (t) {
- ;(this._rawAsyncValidators = t),
- (this._composedAsyncValidatorFn = My(t))
- },
- },
- {
- key: "addValidators",
- value: function (t) {
- this.setValidators(_y(t, this._rawValidators))
- },
- },
- {
- key: "addAsyncValidators",
- value: function (t) {
- this.setAsyncValidators(_y(t, this._rawAsyncValidators))
- },
- },
- {
- key: "removeValidators",
- value: function (t) {
- this.setValidators(Dy(t, this._rawValidators))
- },
- },
- {
- key: "removeAsyncValidators",
- value: function (t) {
- this.setAsyncValidators(Dy(t, this._rawAsyncValidators))
- },
- },
- {
- key: "hasValidator",
- value: function (t) {
- return Nu(this._rawValidators, t)
- },
- },
- {
- key: "hasAsyncValidator",
- value: function (t) {
- return Nu(this._rawAsyncValidators, t)
- },
- },
- {
- key: "clearValidators",
- value: function () {
- this.validator = null
- },
- },
- {
- key: "clearAsyncValidators",
- value: function () {
- this.asyncValidator = null
- },
- },
- {
- key: "markAsTouched",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.touched = !0),
- this._parent && !t.onlySelf && this._parent.markAsTouched(t)
- },
- },
- {
- key: "markAllAsTouched",
- value: function () {
- this.markAsTouched({
- onlySelf: !0,
- }),
- this._forEachChild(function (t) {
- return t.markAllAsTouched()
- })
- },
- },
- {
- key: "markAsUntouched",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.touched = !1),
- (this._pendingTouched = !1),
- this._forEachChild(function (r) {
- r.markAsUntouched({
- onlySelf: !0,
- })
- }),
- this._parent &&
- !t.onlySelf &&
- this._parent._updateTouched(t)
- },
- },
- {
- key: "markAsDirty",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.pristine = !1),
- this._parent && !t.onlySelf && this._parent.markAsDirty(t)
- },
- },
- {
- key: "markAsPristine",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.pristine = !0),
- (this._pendingDirty = !1),
- this._forEachChild(function (r) {
- r.markAsPristine({
- onlySelf: !0,
- })
- }),
- this._parent &&
- !t.onlySelf &&
- this._parent._updatePristine(t)
- },
- },
- {
- key: "markAsPending",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.status = eo),
- !1 !== t.emitEvent && this.statusChanges.emit(this.status),
- this._parent && !t.onlySelf && this._parent.markAsPending(t)
- },
- },
- {
- key: "disable",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {},
- r = this._parentMarkedDirty(t.onlySelf)
- ;(this.status = rs),
- (this.errors = null),
- this._forEachChild(function (i) {
- i.disable(
- Object.assign(Object.assign({}, t), {
- onlySelf: !0,
- })
- )
- }),
- this._updateValue(),
- !1 !== t.emitEvent &&
- (this.valueChanges.emit(this.value),
- this.statusChanges.emit(this.status)),
- this._updateAncestors(
- Object.assign(Object.assign({}, t), {
- skipPristineCheck: r,
- })
- ),
- this._onDisabledChange.forEach(function (i) {
- return i(!0)
- })
- },
- },
- {
- key: "enable",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {},
- r = this._parentMarkedDirty(t.onlySelf)
- ;(this.status = ns),
- this._forEachChild(function (i) {
- i.enable(
- Object.assign(Object.assign({}, t), {
- onlySelf: !0,
- })
- )
- }),
- this.updateValueAndValidity({
- onlySelf: !0,
- emitEvent: t.emitEvent,
- }),
- this._updateAncestors(
- Object.assign(Object.assign({}, t), {
- skipPristineCheck: r,
- })
- ),
- this._onDisabledChange.forEach(function (i) {
- return i(!1)
- })
- },
- },
- {
- key: "_updateAncestors",
- value: function (t) {
- this._parent &&
- !t.onlySelf &&
- (this._parent.updateValueAndValidity(t),
- t.skipPristineCheck || this._parent._updatePristine(),
- this._parent._updateTouched())
- },
- },
- {
- key: "setParent",
- value: function (t) {
- this._parent = t
- },
- },
- {
- key: "updateValueAndValidity",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- this._setInitialStatus(),
- this._updateValue(),
- this.enabled &&
- (this._cancelExistingSubscription(),
- (this.errors = this._runValidator()),
- (this.status = this._calculateStatus()),
- (this.status === ns || this.status === eo) &&
- this._runAsyncValidator(t.emitEvent)),
- !1 !== t.emitEvent &&
- (this.valueChanges.emit(this.value),
- this.statusChanges.emit(this.status)),
- this._parent &&
- !t.onlySelf &&
- this._parent.updateValueAndValidity(t)
- },
- },
- {
- key: "_updateTreeValidity",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {
- emitEvent: !0,
- }
- this._forEachChild(function (r) {
- return r._updateTreeValidity(t)
- }),
- this.updateValueAndValidity({
- onlySelf: !0,
- emitEvent: t.emitEvent,
- })
- },
- },
- {
- key: "_setInitialStatus",
- value: function () {
- this.status = this._allControlsDisabled() ? rs : ns
- },
- },
- {
- key: "_runValidator",
- value: function () {
- return this.validator ? this.validator(this) : null
- },
- },
- {
- key: "_runAsyncValidator",
- value: function (t) {
- var r = this
- if (this.asyncValidator) {
- ;(this.status = eo),
- (this._hasOwnPendingAsyncValidator = !0)
- var i = dy(this.asyncValidator(this))
- this._asyncValidationSubscription = i.subscribe(
- function (a) {
- ;(r._hasOwnPendingAsyncValidator = !1),
- r.setErrors(a, {
- emitEvent: t,
- })
- }
- )
- }
- },
- },
- {
- key: "_cancelExistingSubscription",
- value: function () {
- this._asyncValidationSubscription &&
- (this._asyncValidationSubscription.unsubscribe(),
- (this._hasOwnPendingAsyncValidator = !1))
- },
- },
- {
- key: "setErrors",
- value: function (t) {
- var r =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- ;(this.errors = t),
- this._updateControlsErrors(!1 !== r.emitEvent)
- },
- },
- {
- key: "get",
- value: function (t) {
- return (function kM(e, n, t) {
- if (
- null == n ||
- (Array.isArray(n) || (n = n.split(t)),
- Array.isArray(n) && 0 === n.length)
- )
- return null
- var r = e
- return (
- n.forEach(function (i) {
- r = Gf(r)
- ? r.controls.hasOwnProperty(i)
- ? r.controls[i]
- : null
- : ((function (n) {
- return n instanceof SM
- })(r) &&
- r.at(i)) ||
- null
- }),
- r
- )
- })(this, t, ".")
- },
- },
- {
- key: "getError",
- value: function (t, r) {
- var i = r ? this.get(r) : this
- return i && i.errors ? i.errors[t] : null
- },
- },
- {
- key: "hasError",
- value: function (t, r) {
- return !!this.getError(t, r)
- },
- },
- {
- key: "root",
- get: function () {
- for (var t = this; t._parent; ) t = t._parent
- return t
- },
- },
- {
- key: "_updateControlsErrors",
- value: function (t) {
- ;(this.status = this._calculateStatus()),
- t && this.statusChanges.emit(this.status),
- this._parent && this._parent._updateControlsErrors(t)
- },
- },
- {
- key: "_initObservables",
- value: function () {
- ;(this.valueChanges = new rn()),
- (this.statusChanges = new rn())
- },
- },
- {
- key: "_calculateStatus",
- value: function () {
- return this._allControlsDisabled()
- ? rs
- : this.errors
- ? Uu
- : this._hasOwnPendingAsyncValidator ||
- this._anyControlsHaveStatus(eo)
- ? eo
- : this._anyControlsHaveStatus(Uu)
- ? Uu
- : ns
- },
- },
- {
- key: "_anyControlsHaveStatus",
- value: function (t) {
- return this._anyControls(function (r) {
- return r.status === t
- })
- },
- },
- {
- key: "_anyControlsDirty",
- value: function () {
- return this._anyControls(function (t) {
- return t.dirty
- })
- },
- },
- {
- key: "_anyControlsTouched",
- value: function () {
- return this._anyControls(function (t) {
- return t.touched
- })
- },
- },
- {
- key: "_updatePristine",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.pristine = !this._anyControlsDirty()),
- this._parent &&
- !t.onlySelf &&
- this._parent._updatePristine(t)
- },
- },
- {
- key: "_updateTouched",
- value: function () {
- var t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- ;(this.touched = this._anyControlsTouched()),
- this._parent &&
- !t.onlySelf &&
- this._parent._updateTouched(t)
- },
- },
- {
- key: "_isBoxedValue",
- value: function (t) {
- return (
- "object" == typeof t &&
- null !== t &&
- 2 === Object.keys(t).length &&
- "value" in t &&
- "disabled" in t
- )
- },
- },
- {
- key: "_registerOnCollectionChange",
- value: function (t) {
- this._onCollectionChange = t
- },
- },
- {
- key: "_setUpdateStrategy",
- value: function (t) {
- Uf(t) && null != t.updateOn && (this._updateOn = t.updateOn)
- },
- },
- {
- key: "_parentMarkedDirty",
- value: function (t) {
- return (
- !t &&
- !(!this._parent || !this._parent.dirty) &&
- !this._parent._anyControlsDirty()
- )
- },
- },
- ]),
- e
- )
- })(),
- Fy = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r,
- i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : null,
- a = arguments.length > 1 ? arguments[1] : void 0,
- o = arguments.length > 2 ? arguments[2] : void 0
- return (
- h(this, t),
- ((r = n.call(this, Hf(a), jf(o, a)))._onChange = []),
- (r._pendingChange = !1),
- r._applyFormState(i),
- r._setUpdateStrategy(a),
- r._initObservables(),
- r.updateValueAndValidity({
- onlySelf: !0,
- emitEvent: !!r.asyncValidator,
- }),
- r
- )
- }
- return (
- f(t, [
- {
- key: "setValue",
- value: function (i) {
- var a = this,
- o =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- ;(this.value = this._pendingValue = i),
- this._onChange.length &&
- !1 !== o.emitModelToViewChange &&
- this._onChange.forEach(function (s) {
- return s(a.value, !1 !== o.emitViewToModelChange)
- }),
- this.updateValueAndValidity(o)
- },
- },
- {
- key: "patchValue",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this.setValue(i, a)
- },
- },
- {
- key: "reset",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : null,
- a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this._applyFormState(i),
- this.markAsPristine(a),
- this.markAsUntouched(a),
- this.setValue(this.value, a),
- (this._pendingChange = !1)
- },
- },
- {
- key: "_updateValue",
- value: function () {},
- },
- {
- key: "_anyControls",
- value: function (i) {
- return !1
- },
- },
- {
- key: "_allControlsDisabled",
- value: function () {
- return this.disabled
- },
- },
- {
- key: "registerOnChange",
- value: function (i) {
- this._onChange.push(i)
- },
- },
- {
- key: "_unregisterOnChange",
- value: function (i) {
- ju(this._onChange, i)
- },
- },
- {
- key: "registerOnDisabledChange",
- value: function (i) {
- this._onDisabledChange.push(i)
- },
- },
- {
- key: "_unregisterOnDisabledChange",
- value: function (i) {
- ju(this._onDisabledChange, i)
- },
- },
- {
- key: "_forEachChild",
- value: function (i) {},
- },
- {
- key: "_syncPendingControls",
- value: function () {
- return !(
- "submit" !== this.updateOn ||
- (this._pendingDirty && this.markAsDirty(),
- this._pendingTouched && this.markAsTouched(),
- !this._pendingChange) ||
- (this.setValue(this._pendingValue, {
- onlySelf: !0,
- emitModelToViewChange: !1,
- }),
- 0)
- )
- },
- },
- {
- key: "_applyFormState",
- value: function (i) {
- this._isBoxedValue(i)
- ? ((this.value = this._pendingValue = i.value),
- i.disabled
- ? this.disable({
- onlySelf: !0,
- emitEvent: !1,
- })
- : this.enable({
- onlySelf: !0,
- emitEvent: !1,
- }))
- : (this.value = this._pendingValue = i)
- },
- },
- ]),
- t
- )
- })(Wf),
- zf = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this, Hf(i), jf(a, i))).controls = r),
- o._initObservables(),
- o._setUpdateStrategy(i),
- o._setUpControls(),
- o.updateValueAndValidity({
- onlySelf: !0,
- emitEvent: !!o.asyncValidator,
- }),
- o
- )
- }
- return (
- f(t, [
- {
- key: "registerControl",
- value: function (i, a) {
- return this.controls[i]
- ? this.controls[i]
- : ((this.controls[i] = a),
- a.setParent(this),
- a._registerOnCollectionChange(this._onCollectionChange),
- a)
- },
- },
- {
- key: "addControl",
- value: function (i, a) {
- var o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- this.registerControl(i, a),
- this.updateValueAndValidity({
- emitEvent: o.emitEvent,
- }),
- this._onCollectionChange()
- },
- },
- {
- key: "removeControl",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this.controls[i] &&
- this.controls[i]._registerOnCollectionChange(
- function () {}
- ),
- delete this.controls[i],
- this.updateValueAndValidity({
- emitEvent: a.emitEvent,
- }),
- this._onCollectionChange()
- },
- },
- {
- key: "setControl",
- value: function (i, a) {
- var o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- this.controls[i] &&
- this.controls[i]._registerOnCollectionChange(
- function () {}
- ),
- delete this.controls[i],
- a && this.registerControl(i, a),
- this.updateValueAndValidity({
- emitEvent: o.emitEvent,
- }),
- this._onCollectionChange()
- },
- },
- {
- key: "contains",
- value: function (i) {
- return (
- this.controls.hasOwnProperty(i) && this.controls[i].enabled
- )
- },
- },
- {
- key: "setValue",
- value: function (i) {
- var a = this,
- o =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- Py(this, i),
- Object.keys(i).forEach(function (s) {
- Oy(a, s),
- a.controls[s].setValue(i[s], {
- onlySelf: !0,
- emitEvent: o.emitEvent,
- })
- }),
- this.updateValueAndValidity(o)
- },
- },
- {
- key: "patchValue",
- value: function (i) {
- var a = this,
- o =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- null != i &&
- (Object.keys(i).forEach(function (s) {
- a.controls[s] &&
- a.controls[s].patchValue(i[s], {
- onlySelf: !0,
- emitEvent: o.emitEvent,
- })
- }),
- this.updateValueAndValidity(o))
- },
- },
- {
- key: "reset",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {},
- a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this._forEachChild(function (o, s) {
- o.reset(i[s], {
- onlySelf: !0,
- emitEvent: a.emitEvent,
- })
- }),
- this._updatePristine(a),
- this._updateTouched(a),
- this.updateValueAndValidity(a)
- },
- },
- {
- key: "getRawValue",
- value: function () {
- return this._reduceChildren({}, function (i, a, o) {
- return (i[o] = Ay(a)), i
- })
- },
- },
- {
- key: "_syncPendingControls",
- value: function () {
- var i = this._reduceChildren(!1, function (a, o) {
- return !!o._syncPendingControls() || a
- })
- return (
- i &&
- this.updateValueAndValidity({
- onlySelf: !0,
- }),
- i
- )
- },
- },
- {
- key: "_forEachChild",
- value: function (i) {
- var a = this
- Object.keys(this.controls).forEach(function (o) {
- var s = a.controls[o]
- s && i(s, o)
- })
- },
- },
- {
- key: "_setUpControls",
- value: function () {
- var i = this
- this._forEachChild(function (a) {
- a.setParent(i),
- a._registerOnCollectionChange(i._onCollectionChange)
- })
- },
- },
- {
- key: "_updateValue",
- value: function () {
- this.value = this._reduceValue()
- },
- },
- {
- key: "_anyControls",
- value: function (i) {
- for (
- var a = 0, o = Object.keys(this.controls);
- a < o.length;
- a++
- ) {
- var s = o[a],
- u = this.controls[s]
- if (this.contains(s) && i(u)) return !0
- }
- return !1
- },
- },
- {
- key: "_reduceValue",
- value: function () {
- var i = this
- return this._reduceChildren({}, function (a, o, s) {
- return (o.enabled || i.disabled) && (a[s] = o.value), a
- })
- },
- },
- {
- key: "_reduceChildren",
- value: function (i, a) {
- var o = i
- return (
- this._forEachChild(function (s, u) {
- o = a(o, s, u)
- }),
- o
- )
- },
- },
- {
- key: "_allControlsDisabled",
- value: function () {
- for (
- var i = 0, a = Object.keys(this.controls);
- i < a.length;
- i++
- )
- if (this.controls[a[i]].enabled) return !1
- return Object.keys(this.controls).length > 0 || this.disabled
- },
- },
- ]),
- t
- )
- })(Wf),
- SM = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this, Hf(i), jf(a, i))).controls = r),
- o._initObservables(),
- o._setUpdateStrategy(i),
- o._setUpControls(),
- o.updateValueAndValidity({
- onlySelf: !0,
- emitEvent: !!o.asyncValidator,
- }),
- o
- )
- }
- return (
- f(t, [
- {
- key: "at",
- value: function (i) {
- return this.controls[i]
- },
- },
- {
- key: "push",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this.controls.push(i),
- this._registerControl(i),
- this.updateValueAndValidity({
- emitEvent: a.emitEvent,
- }),
- this._onCollectionChange()
- },
- },
- {
- key: "insert",
- value: function (i, a) {
- var o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- this.controls.splice(i, 0, a),
- this._registerControl(a),
- this.updateValueAndValidity({
- emitEvent: o.emitEvent,
- })
- },
- },
- {
- key: "removeAt",
- value: function (i) {
- var a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this.controls[i] &&
- this.controls[i]._registerOnCollectionChange(
- function () {}
- ),
- this.controls.splice(i, 1),
- this.updateValueAndValidity({
- emitEvent: a.emitEvent,
- })
- },
- },
- {
- key: "setControl",
- value: function (i, a) {
- var o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- this.controls[i] &&
- this.controls[i]._registerOnCollectionChange(
- function () {}
- ),
- this.controls.splice(i, 1),
- a &&
- (this.controls.splice(i, 0, a), this._registerControl(a)),
- this.updateValueAndValidity({
- emitEvent: o.emitEvent,
- }),
- this._onCollectionChange()
- },
- },
- {
- key: "length",
- get: function () {
- return this.controls.length
- },
- },
- {
- key: "setValue",
- value: function (i) {
- var a = this,
- o =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- Py(this, i),
- i.forEach(function (s, u) {
- Oy(a, u),
- a.at(u).setValue(s, {
- onlySelf: !0,
- emitEvent: o.emitEvent,
- })
- }),
- this.updateValueAndValidity(o)
- },
- },
- {
- key: "patchValue",
- value: function (i) {
- var a = this,
- o =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- null != i &&
- (i.forEach(function (s, u) {
- a.at(u) &&
- a.at(u).patchValue(s, {
- onlySelf: !0,
- emitEvent: o.emitEvent,
- })
- }),
- this.updateValueAndValidity(o))
- },
- },
- {
- key: "reset",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : [],
- a =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- this._forEachChild(function (o, s) {
- o.reset(i[s], {
- onlySelf: !0,
- emitEvent: a.emitEvent,
- })
- }),
- this._updatePristine(a),
- this._updateTouched(a),
- this.updateValueAndValidity(a)
- },
- },
- {
- key: "getRawValue",
- value: function () {
- return this.controls.map(function (i) {
- return Ay(i)
- })
- },
- },
- {
- key: "clear",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- this.controls.length < 1 ||
- (this._forEachChild(function (a) {
- return a._registerOnCollectionChange(function () {})
- }),
- this.controls.splice(0),
- this.updateValueAndValidity({
- emitEvent: i.emitEvent,
- }))
- },
- },
- {
- key: "_syncPendingControls",
- value: function () {
- var i = this.controls.reduce(function (a, o) {
- return !!o._syncPendingControls() || a
- }, !1)
- return (
- i &&
- this.updateValueAndValidity({
- onlySelf: !0,
- }),
- i
- )
- },
- },
- {
- key: "_forEachChild",
- value: function (i) {
- this.controls.forEach(function (a, o) {
- i(a, o)
- })
- },
- },
- {
- key: "_updateValue",
- value: function () {
- var i = this
- this.value = this.controls
- .filter(function (a) {
- return a.enabled || i.disabled
- })
- .map(function (a) {
- return a.value
- })
- },
- },
- {
- key: "_anyControls",
- value: function (i) {
- return this.controls.some(function (a) {
- return a.enabled && i(a)
- })
- },
- },
- {
- key: "_setUpControls",
- value: function () {
- var i = this
- this._forEachChild(function (a) {
- return i._registerControl(a)
- })
- },
- },
- {
- key: "_allControlsDisabled",
- value: function () {
- var a,
- i = le(this.controls)
- try {
- for (i.s(); !(a = i.n()).done; )
- if (a.value.enabled) return !1
- } catch (s) {
- i.e(s)
- } finally {
- i.f()
- }
- return this.controls.length > 0 || this.disabled
- },
- },
- {
- key: "_registerControl",
- value: function (i) {
- i.setParent(this),
- i._registerOnCollectionChange(this._onCollectionChange)
- },
- },
- ]),
- t
- )
- })(Wf),
- IM = {
- provide: Ti,
- useExisting: Se(function () {
- return to
- }),
- },
- xy = (function () {
- return Promise.resolve(null)
- })(),
- to = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r(i, a, o, s) {
- var u
- return (
- h(this, r),
- ((u = t.call(this)).control = new Fy()),
- (u._registered = !1),
- (u.update = new rn()),
- (u._parent = i),
- u._setValidators(a),
- u._setAsyncValidators(o),
- (u.valueAccessor = (function Vf(e, n) {
- if (!n) return null
- Array.isArray(n)
- var t = void 0,
- r = void 0,
- i = void 0
- return (
- n.forEach(function (a) {
- a.constructor === Xa
- ? (t = a)
- : (function EM(e) {
- return Object.getPrototypeOf(e.constructor) === Ki
- })(a)
- ? (r = a)
- : (i = a)
- }),
- i || r || t || null
- )
- })(he(u), s)),
- u
- )
- }
- return (
- f(r, [
- {
- key: "ngOnChanges",
- value: function (a) {
- this._checkForErrors(),
- this._registered || this._setUpControl(),
- "isDisabled" in a && this._updateDisabled(a),
- (function Lf(e, n) {
- if (!e.hasOwnProperty("model")) return !1
- var t = e.model
- return (
- !!t.isFirstChange() || !Object.is(n, t.currentValue)
- )
- })(a, this.viewModel) &&
- (this._updateValue(this.model),
- (this.viewModel = this.model))
- },
- },
- {
- key: "ngOnDestroy",
- value: function () {
- this.formDirective && this.formDirective.removeControl(this)
- },
- },
- {
- key: "path",
- get: function () {
- return this._parent
- ? (function Lu(e, n) {
- return [].concat(pt(n.path), [e])
- })(this.name, this._parent)
- : [this.name]
- },
- },
- {
- key: "formDirective",
- get: function () {
- return this._parent ? this._parent.formDirective : null
- },
- },
- {
- key: "viewToModelUpdate",
- value: function (a) {
- ;(this.viewModel = a), this.update.emit(a)
- },
- },
- {
- key: "_setUpControl",
- value: function () {
- this._setUpdateStrategy(),
- this._isStandalone()
- ? this._setUpStandalone()
- : this.formDirective.addControl(this),
- (this._registered = !0)
- },
- },
- {
- key: "_setUpdateStrategy",
- value: function () {
- this.options &&
- null != this.options.updateOn &&
- (this.control._updateOn = this.options.updateOn)
- },
- },
- {
- key: "_isStandalone",
- value: function () {
- return (
- !this._parent ||
- !(!this.options || !this.options.standalone)
- )
- },
- },
- {
- key: "_setUpStandalone",
- value: function () {
- ts(this.control, this),
- this.control.updateValueAndValidity({
- emitEvent: !1,
- })
- },
- },
- {
- key: "_checkForErrors",
- value: function () {
- this._isStandalone() || this._checkParentType(),
- this._checkName()
- },
- },
- {
- key: "_checkParentType",
- value: function () {},
- },
- {
- key: "_checkName",
- value: function () {
- this.options &&
- this.options.name &&
- (this.name = this.options.name),
- this._isStandalone()
- },
- },
- {
- key: "_updateValue",
- value: function (a) {
- var o = this
- xy.then(function () {
- o.control.setValue(a, {
- emitViewToModelChange: !1,
- })
- })
- },
- },
- {
- key: "_updateDisabled",
- value: function (a) {
- var o = this,
- s = a.isDisabled.currentValue,
- u = "" === s || (s && "false" !== s)
- xy.then(function () {
- u && !o.control.disabled
- ? o.control.disable()
- : !u && o.control.disabled && o.control.enable()
- })
- },
- },
- ]),
- r
- )
- })(Ti)
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Gn, 9), de(Fn, 10), de(Si, 10), de(Qr, 10))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- [
- "",
- "ngModel",
- "",
- 3,
- "formControlName",
- "",
- 3,
- "formControl",
- "",
- ],
- ],
- inputs: {
- name: "name",
- isDisabled: ["disabled", "isDisabled"],
- model: ["ngModel", "model"],
- options: ["ngModelOptions", "options"],
- },
- outputs: {
- update: "ngModelChange",
- },
- exportAs: ["ngModel"],
- features: [$t([IM]), Ht, Br],
- })),
- e
- )
- })(),
- Vy = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({})),
- e
- )
- })(),
- HM = {
- provide: Qr,
- useExisting: Se(function () {
- return Gu
- }),
- multi: !0,
- }
- function zy(e, n) {
- return null == e
- ? "".concat(n)
- : (n && "object" == typeof n && (n = "Object"),
- "".concat(e, ": ").concat(n).slice(0, 50))
- }
- var Gu = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r() {
- var i
- return (
- h(this, r),
- ((i = t.apply(this, arguments))._optionMap = new Map()),
- (i._idCounter = 0),
- (i._compareWith = Object.is),
- i
- )
- }
- return (
- f(r, [
- {
- key: "compareWith",
- set: function (a) {
- this._compareWith = a
- },
- },
- {
- key: "writeValue",
- value: function (a) {
- this.value = a
- var o = this._getOptionId(a)
- null == o && this.setProperty("selectedIndex", -1)
- var s = zy(o, a)
- this.setProperty("value", s)
- },
- },
- {
- key: "registerOnChange",
- value: function (a) {
- var o = this
- this.onChange = function (s) {
- ;(o.value = o._getOptionValue(s)), a(o.value)
- }
- },
- },
- {
- key: "_registerOption",
- value: function () {
- return (this._idCounter++).toString()
- },
- },
- {
- key: "_getOptionId",
- value: function (a) {
- for (
- var o = 0, s = Array.from(this._optionMap.keys());
- o < s.length;
- o++
- ) {
- var u = s[o]
- if (this._compareWith(this._optionMap.get(u), a)) return u
- }
- return null
- },
- },
- {
- key: "_getOptionValue",
- value: function (a) {
- var o = (function jM(e) {
- return e.split(":")[0]
- })(a)
- return this._optionMap.has(o) ? this._optionMap.get(o) : a
- },
- },
- ]),
- r
- )
- })(Ki)
- return (
- (e.ɵfac = (function () {
- var n
- return function (r) {
- return (n || (n = tr(e)))(r || e)
- }
- })()),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- ["select", "formControlName", "", 3, "multiple", ""],
- ["select", "formControl", "", 3, "multiple", ""],
- ["select", "ngModel", "", 3, "multiple", ""],
- ],
- hostBindings: function (t, r) {
- 1 & t &&
- Ue("change", function (a) {
- return r.onChange(a.target.value)
- })("blur", function () {
- return r.onTouched()
- })
- },
- inputs: {
- compareWith: "compareWith",
- },
- features: [$t([HM]), Ht],
- })),
- e
- )
- })(),
- Zy = (function () {
- var e = (function () {
- function n(t, r, i) {
- h(this, n),
- (this._element = t),
- (this._renderer = r),
- (this._select = i),
- this._select && (this.id = this._select._registerOption())
- }
- return (
- f(n, [
- {
- key: "ngValue",
- set: function (r) {
- null != this._select &&
- (this._select._optionMap.set(this.id, r),
- this._setElementValue(zy(this.id, r)),
- this._select.writeValue(this._select.value))
- },
- },
- {
- key: "value",
- set: function (r) {
- this._setElementValue(r),
- this._select &&
- this._select.writeValue(this._select.value)
- },
- },
- {
- key: "_setElementValue",
- value: function (r) {
- this._renderer.setProperty(
- this._element.nativeElement,
- "value",
- r
- )
- },
- },
- {
- key: "ngOnDestroy",
- value: function () {
- this._select &&
- (this._select._optionMap.delete(this.id),
- this._select.writeValue(this._select.value))
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(gr), de(Zi), de(Gu, 9))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [["option"]],
- inputs: {
- ngValue: "ngValue",
- value: "value",
- },
- })),
- e
- )
- })(),
- UM = {
- provide: Qr,
- useExisting: Se(function () {
- return Yf
- }),
- multi: !0,
- }
- function qy(e, n) {
- return null == e
- ? "".concat(n)
- : ("string" == typeof n && (n = "'".concat(n, "'")),
- n && "object" == typeof n && (n = "Object"),
- "".concat(e, ": ").concat(n).slice(0, 50))
- }
- var Yf = (function () {
- var e = (function (n) {
- b(r, n)
- var t = A(r)
- function r() {
- var i
- return (
- h(this, r),
- ((i = t.apply(this, arguments))._optionMap = new Map()),
- (i._idCounter = 0),
- (i._compareWith = Object.is),
- i
- )
- }
- return (
- f(r, [
- {
- key: "compareWith",
- set: function (a) {
- this._compareWith = a
- },
- },
- {
- key: "writeValue",
- value: function (a) {
- var s,
- o = this
- if (((this.value = a), Array.isArray(a))) {
- var u = a.map(function (l) {
- return o._getOptionId(l)
- })
- s = function (c, d) {
- c._setSelected(u.indexOf(d.toString()) > -1)
- }
- } else
- s = function (c, d) {
- c._setSelected(!1)
- }
- this._optionMap.forEach(s)
- },
- },
- {
- key: "registerOnChange",
- value: function (a) {
- var o = this
- this.onChange = function (s) {
- var u = [],
- l = s.selectedOptions
- if (void 0 !== l)
- for (var c = l, d = 0; d < c.length; d++) {
- var g = o._getOptionValue(c[d].value)
- u.push(g)
- }
- else
- for (var C = s.options, N = 0; N < C.length; N++) {
- var G = C[N]
- if (G.selected) {
- var Y = o._getOptionValue(G.value)
- u.push(Y)
- }
- }
- ;(o.value = u), a(u)
- }
- },
- },
- {
- key: "_registerOption",
- value: function (a) {
- var o = (this._idCounter++).toString()
- return this._optionMap.set(o, a), o
- },
- },
- {
- key: "_getOptionId",
- value: function (a) {
- for (
- var o = 0, s = Array.from(this._optionMap.keys());
- o < s.length;
- o++
- ) {
- var u = s[o]
- if (this._compareWith(this._optionMap.get(u)._value, a))
- return u
- }
- return null
- },
- },
- {
- key: "_getOptionValue",
- value: function (a) {
- var o = (function GM(e) {
- return e.split(":")[0]
- })(a)
- return this._optionMap.has(o)
- ? this._optionMap.get(o)._value
- : a
- },
- },
- ]),
- r
- )
- })(Ki)
- return (
- (e.ɵfac = (function () {
- var n
- return function (r) {
- return (n || (n = tr(e)))(r || e)
- }
- })()),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- ["select", "multiple", "", "formControlName", ""],
- ["select", "multiple", "", "formControl", ""],
- ["select", "multiple", "", "ngModel", ""],
- ],
- hostBindings: function (t, r) {
- 1 & t &&
- Ue("change", function (a) {
- return r.onChange(a.target)
- })("blur", function () {
- return r.onTouched()
- })
- },
- inputs: {
- compareWith: "compareWith",
- },
- features: [$t([UM]), Ht],
- })),
- e
- )
- })(),
- $y = (function () {
- var e = (function () {
- function n(t, r, i) {
- h(this, n),
- (this._element = t),
- (this._renderer = r),
- (this._select = i),
- this._select && (this.id = this._select._registerOption(this))
- }
- return (
- f(n, [
- {
- key: "ngValue",
- set: function (r) {
- null != this._select &&
- ((this._value = r),
- this._setElementValue(qy(this.id, r)),
- this._select.writeValue(this._select.value))
- },
- },
- {
- key: "value",
- set: function (r) {
- this._select
- ? ((this._value = r),
- this._setElementValue(qy(this.id, r)),
- this._select.writeValue(this._select.value))
- : this._setElementValue(r)
- },
- },
- {
- key: "_setElementValue",
- value: function (r) {
- this._renderer.setProperty(
- this._element.nativeElement,
- "value",
- r
- )
- },
- },
- {
- key: "_setSelected",
- value: function (r) {
- this._renderer.setProperty(
- this._element.nativeElement,
- "selected",
- r
- )
- },
- },
- {
- key: "ngOnDestroy",
- value: function () {
- this._select &&
- (this._select._optionMap.delete(this.id),
- this._select.writeValue(this._select.value))
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(gr), de(Zi), de(Yf, 9))
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [["option"]],
- inputs: {
- ngValue: "ngValue",
- value: "value",
- },
- })),
- e
- )
- })(),
- ZM = {
- provide: Fn,
- useExisting: Se(function () {
- return zu
- }),
- multi: !0,
- },
- zu = (function () {
- var e = (function () {
- function n() {
- h(this, n), (this._required = !1)
- }
- return (
- f(n, [
- {
- key: "required",
- get: function () {
- return this._required
- },
- set: function (r) {
- ;(this._required =
- null != r && !1 !== r && "false" !== "".concat(r)),
- this._onChange && this._onChange()
- },
- },
- {
- key: "validate",
- value: function (r) {
- return this.required
- ? (function tM(e) {
- return (function wi(e) {
- return null == e || 0 === e.length
- })(e.value)
- ? {
- required: !0,
- }
- : null
- })(r)
- : null
- },
- },
- {
- key: "registerOnValidatorChange",
- value: function (r) {
- this._onChange = r
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵdir = Je({
- type: e,
- selectors: [
- [
- "",
- "required",
- "",
- "formControlName",
- "",
- 3,
- "type",
- "checkbox",
- ],
- ["", "required", "", "formControl", "", 3, "type", "checkbox"],
- ["", "required", "", "ngModel", "", 3, "type", "checkbox"],
- ],
- hostVars: 1,
- hostBindings: function (t, r) {
- 2 & t && Tr("required", r.required ? "" : null)
- },
- inputs: {
- required: "required",
- },
- features: [$t([ZM])],
- })),
- e
- )
- })(),
- QM = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- imports: [[Vy]],
- })),
- e
- )
- })(),
- XM = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- imports: [QM],
- })),
- e
- )
- })()
- function eI() {
- for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
- n[t] = arguments[t]
- var r = n[n.length - 1]
- return Xi(r) ? (n.pop(), _t(n, r)) : ds(n)
- }
- function tI(e, n) {
- return un(e, n, 1)
- }
- function nI(e, n) {
- return function (r) {
- return r.lift(new rI(e, n))
- }
- }
- var rI = (function () {
- function e(n, t) {
- h(this, e), (this.predicate = n), (this.thisArg = t)
- }
- return (
- f(e, [
- {
- key: "call",
- value: function (t, r) {
- return r.subscribe(new iI(t, this.predicate, this.thisArg))
- },
- },
- ]),
- e
- )
- })(),
- iI = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r, i, a) {
- var o
- return (
- h(this, t),
- ((o = n.call(this, r)).predicate = i),
- (o.thisArg = a),
- (o.count = 0),
- o
- )
- }
- return (
- f(t, [
- {
- key: "_next",
- value: function (i) {
- var a
- try {
- a = this.predicate.call(this.thisArg, i, this.count++)
- } catch (o) {
- return void this.destination.error(o)
- }
- a && this.destination.next(i)
- },
- },
- ]),
- t
- )
- })(Mn),
- i_ = f(function e() {
- h(this, e)
- }),
- a_ = f(function e() {
- h(this, e)
- }),
- as = (function () {
- function e(n) {
- var t = this
- h(this, e),
- (this.normalizedNames = new Map()),
- (this.lazyUpdate = null),
- n
- ? (this.lazyInit =
- "string" == typeof n
- ? function () {
- ;(t.headers = new Map()),
- n.split("\n").forEach(function (r) {
- var i = r.indexOf(":")
- if (i > 0) {
- var a = r.slice(0, i),
- o = a.toLowerCase(),
- s = r.slice(i + 1).trim()
- t.maybeSetNormalizedName(a, o),
- t.headers.has(o)
- ? t.headers.get(o).push(s)
- : t.headers.set(o, [s])
- }
- })
- }
- : function () {
- ;(t.headers = new Map()),
- Object.keys(n).forEach(function (r) {
- var i = n[r],
- a = r.toLowerCase()
- "string" == typeof i && (i = [i]),
- i.length > 0 &&
- (t.headers.set(a, i),
- t.maybeSetNormalizedName(r, a))
- })
- })
- : (this.headers = new Map())
- }
- return (
- f(e, [
- {
- key: "has",
- value: function (t) {
- return this.init(), this.headers.has(t.toLowerCase())
- },
- },
- {
- key: "get",
- value: function (t) {
- this.init()
- var r = this.headers.get(t.toLowerCase())
- return r && r.length > 0 ? r[0] : null
- },
- },
- {
- key: "keys",
- value: function () {
- return this.init(), Array.from(this.normalizedNames.values())
- },
- },
- {
- key: "getAll",
- value: function (t) {
- return this.init(), this.headers.get(t.toLowerCase()) || null
- },
- },
- {
- key: "append",
- value: function (t, r) {
- return this.clone({
- name: t,
- value: r,
- op: "a",
- })
- },
- },
- {
- key: "set",
- value: function (t, r) {
- return this.clone({
- name: t,
- value: r,
- op: "s",
- })
- },
- },
- {
- key: "delete",
- value: function (t, r) {
- return this.clone({
- name: t,
- value: r,
- op: "d",
- })
- },
- },
- {
- key: "maybeSetNormalizedName",
- value: function (t, r) {
- this.normalizedNames.has(r) || this.normalizedNames.set(r, t)
- },
- },
- {
- key: "init",
- value: function () {
- var t = this
- this.lazyInit &&
- (this.lazyInit instanceof e
- ? this.copyFrom(this.lazyInit)
- : this.lazyInit(),
- (this.lazyInit = null),
- this.lazyUpdate &&
- (this.lazyUpdate.forEach(function (r) {
- return t.applyUpdate(r)
- }),
- (this.lazyUpdate = null)))
- },
- },
- {
- key: "copyFrom",
- value: function (t) {
- var r = this
- t.init(),
- Array.from(t.headers.keys()).forEach(function (i) {
- r.headers.set(i, t.headers.get(i)),
- r.normalizedNames.set(i, t.normalizedNames.get(i))
- })
- },
- },
- {
- key: "clone",
- value: function (t) {
- var r = new e()
- return (
- (r.lazyInit =
- this.lazyInit && this.lazyInit instanceof e
- ? this.lazyInit
- : this),
- (r.lazyUpdate = (this.lazyUpdate || []).concat([t])),
- r
- )
- },
- },
- {
- key: "applyUpdate",
- value: function (t) {
- var r = t.name.toLowerCase()
- switch (t.op) {
- case "a":
- case "s":
- var i = t.value
- if (("string" == typeof i && (i = [i]), 0 === i.length))
- return
- this.maybeSetNormalizedName(t.name, r)
- var a =
- ("a" === t.op ? this.headers.get(r) : void 0) || []
- a.push.apply(a, pt(i)), this.headers.set(r, a)
- break
- case "d":
- var o = t.value
- if (o) {
- var s = this.headers.get(r)
- if (!s) return
- 0 ===
- (s = s.filter(function (u) {
- return -1 === o.indexOf(u)
- })).length
- ? (this.headers.delete(r),
- this.normalizedNames.delete(r))
- : this.headers.set(r, s)
- } else
- this.headers.delete(r), this.normalizedNames.delete(r)
- }
- },
- },
- {
- key: "forEach",
- value: function (t) {
- var r = this
- this.init(),
- Array.from(this.normalizedNames.keys()).forEach(
- function (i) {
- return t(r.normalizedNames.get(i), r.headers.get(i))
- }
- )
- },
- },
- ]),
- e
- )
- })(),
- aI = (function () {
- function e() {
- h(this, e)
- }
- return (
- f(e, [
- {
- key: "encodeKey",
- value: function (t) {
- return o_(t)
- },
- },
- {
- key: "encodeValue",
- value: function (t) {
- return o_(t)
- },
- },
- {
- key: "decodeKey",
- value: function (t) {
- return decodeURIComponent(t)
- },
- },
- {
- key: "decodeValue",
- value: function (t) {
- return decodeURIComponent(t)
- },
- },
- ]),
- e
- )
- })()
- function oI(e, n) {
- var t = new Map()
- return (
- e.length > 0 &&
- e
- .replace(/^\?/, "")
- .split("&")
- .forEach(function (i) {
- var a = i.indexOf("="),
- s = ie(
- -1 == a
- ? [n.decodeKey(i), ""]
- : [
- n.decodeKey(i.slice(0, a)),
- n.decodeValue(i.slice(a + 1)),
- ],
- 2
- ),
- u = s[0],
- l = s[1],
- c = t.get(u) || []
- c.push(l), t.set(u, c)
- }),
- t
- )
- }
- var sI = /%(\d[a-f0-9])/gi,
- uI = {
- 40: "@",
- "3A": ":",
- 24: "$",
- "2C": ",",
- "3B": ";",
- "2B": "+",
- "3D": "=",
- "3F": "?",
- "2F": "/",
- }
- function o_(e) {
- return encodeURIComponent(e).replace(sI, function (n, t) {
- var r
- return null !== (r = uI[t]) && void 0 !== r ? r : n
- })
- }
- function s_(e) {
- return "".concat(e)
- }
- var no = (function () {
- function e() {
- var n = this,
- t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- if (
- (h(this, e),
- (this.updates = null),
- (this.cloneFrom = null),
- (this.encoder = t.encoder || new aI()),
- t.fromString)
- ) {
- if (t.fromObject)
- throw new Error(
- "Cannot specify both fromString and fromObject."
- )
- this.map = oI(t.fromString, this.encoder)
- } else
- t.fromObject
- ? ((this.map = new Map()),
- Object.keys(t.fromObject).forEach(function (r) {
- var i = t.fromObject[r]
- n.map.set(r, Array.isArray(i) ? i : [i])
- }))
- : (this.map = null)
- }
- return (
- f(e, [
- {
- key: "has",
- value: function (t) {
- return this.init(), this.map.has(t)
- },
- },
- {
- key: "get",
- value: function (t) {
- this.init()
- var r = this.map.get(t)
- return r ? r[0] : null
- },
- },
- {
- key: "getAll",
- value: function (t) {
- return this.init(), this.map.get(t) || null
- },
- },
- {
- key: "keys",
- value: function () {
- return this.init(), Array.from(this.map.keys())
- },
- },
- {
- key: "append",
- value: function (t, r) {
- return this.clone({
- param: t,
- value: r,
- op: "a",
- })
- },
- },
- {
- key: "appendAll",
- value: function (t) {
- var r = []
- return (
- Object.keys(t).forEach(function (i) {
- var a = t[i]
- Array.isArray(a)
- ? a.forEach(function (o) {
- r.push({
- param: i,
- value: o,
- op: "a",
- })
- })
- : r.push({
- param: i,
- value: a,
- op: "a",
- })
- }),
- this.clone(r)
- )
- },
- },
- {
- key: "set",
- value: function (t, r) {
- return this.clone({
- param: t,
- value: r,
- op: "s",
- })
- },
- },
- {
- key: "delete",
- value: function (t, r) {
- return this.clone({
- param: t,
- value: r,
- op: "d",
- })
- },
- },
- {
- key: "toString",
- value: function () {
- var t = this
- return (
- this.init(),
- this.keys()
- .map(function (r) {
- var i = t.encoder.encodeKey(r)
- return t.map
- .get(r)
- .map(function (a) {
- return i + "=" + t.encoder.encodeValue(a)
- })
- .join("&")
- })
- .filter(function (r) {
- return "" !== r
- })
- .join("&")
- )
- },
- },
- {
- key: "clone",
- value: function (t) {
- var r = new e({
- encoder: this.encoder,
- })
- return (
- (r.cloneFrom = this.cloneFrom || this),
- (r.updates = (this.updates || []).concat(t)),
- r
- )
- },
- },
- {
- key: "init",
- value: function () {
- var t = this
- null === this.map && (this.map = new Map()),
- null !== this.cloneFrom &&
- (this.cloneFrom.init(),
- this.cloneFrom.keys().forEach(function (r) {
- return t.map.set(r, t.cloneFrom.map.get(r))
- }),
- this.updates.forEach(function (r) {
- switch (r.op) {
- case "a":
- case "s":
- var i =
- ("a" === r.op ? t.map.get(r.param) : void 0) || []
- i.push(s_(r.value)), t.map.set(r.param, i)
- break
- case "d":
- if (void 0 === r.value) {
- t.map.delete(r.param)
- break
- }
- var a = t.map.get(r.param) || [],
- o = a.indexOf(s_(r.value))
- ;-1 !== o && a.splice(o, 1),
- a.length > 0
- ? t.map.set(r.param, a)
- : t.map.delete(r.param)
- }
- }),
- (this.cloneFrom = this.updates = null))
- },
- },
- ]),
- e
- )
- })(),
- lI = (function () {
- function e() {
- h(this, e), (this.map = new Map())
- }
- return (
- f(e, [
- {
- key: "set",
- value: function (t, r) {
- return this.map.set(t, r), this
- },
- },
- {
- key: "get",
- value: function (t) {
- return (
- this.map.has(t) || this.map.set(t, t.defaultValue()),
- this.map.get(t)
- )
- },
- },
- {
- key: "delete",
- value: function (t) {
- return this.map.delete(t), this
- },
- },
- {
- key: "has",
- value: function (t) {
- return this.map.has(t)
- },
- },
- {
- key: "keys",
- value: function () {
- return this.map.keys()
- },
- },
- ]),
- e
- )
- })()
- function u_(e) {
- return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer
- }
- function l_(e) {
- return "undefined" != typeof Blob && e instanceof Blob
- }
- function c_(e) {
- return "undefined" != typeof FormData && e instanceof FormData
- }
- var Jf = (function () {
- function e(n, t, r, i) {
- var a
- if (
- (h(this, e),
- (this.url = t),
- (this.body = null),
- (this.reportProgress = !1),
- (this.withCredentials = !1),
- (this.responseType = "json"),
- (this.method = n.toUpperCase()),
- (function cI(e) {
- switch (e) {
- case "DELETE":
- case "GET":
- case "HEAD":
- case "OPTIONS":
- case "JSONP":
- return !1
- default:
- return !0
- }
- })(this.method) || i
- ? ((this.body = void 0 !== r ? r : null), (a = i))
- : (a = r),
- a &&
- ((this.reportProgress = !!a.reportProgress),
- (this.withCredentials = !!a.withCredentials),
- a.responseType && (this.responseType = a.responseType),
- a.headers && (this.headers = a.headers),
- a.context && (this.context = a.context),
- a.params && (this.params = a.params)),
- this.headers || (this.headers = new as()),
- this.context || (this.context = new lI()),
- this.params)
- ) {
- var o = this.params.toString()
- if (0 === o.length) this.urlWithParams = t
- else {
- var s = t.indexOf("?")
- this.urlWithParams =
- t + (-1 === s ? "?" : s < t.length - 1 ? "&" : "") + o
- }
- } else (this.params = new no()), (this.urlWithParams = t)
- }
- return (
- f(e, [
- {
- key: "serializeBody",
- value: function () {
- return null === this.body
- ? null
- : u_(this.body) ||
- l_(this.body) ||
- c_(this.body) ||
- (function fI(e) {
- return (
- "undefined" != typeof URLSearchParams &&
- e instanceof URLSearchParams
- )
- })(this.body) ||
- "string" == typeof this.body
- ? this.body
- : this.body instanceof no
- ? this.body.toString()
- : "object" == typeof this.body ||
- "boolean" == typeof this.body ||
- Array.isArray(this.body)
- ? JSON.stringify(this.body)
- : this.body.toString()
- },
- },
- {
- key: "detectContentTypeHeader",
- value: function () {
- return null === this.body || c_(this.body)
- ? null
- : l_(this.body)
- ? this.body.type || null
- : u_(this.body)
- ? null
- : "string" == typeof this.body
- ? "text/plain"
- : this.body instanceof no
- ? "application/x-www-form-urlencoded;charset=UTF-8"
- : "object" == typeof this.body ||
- "number" == typeof this.body ||
- "boolean" == typeof this.body
- ? "application/json"
- : null
- },
- },
- {
- key: "clone",
- value: function () {
- var r,
- t =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {},
- i = t.method || this.method,
- a = t.url || this.url,
- o = t.responseType || this.responseType,
- s = void 0 !== t.body ? t.body : this.body,
- u =
- void 0 !== t.withCredentials
- ? t.withCredentials
- : this.withCredentials,
- l =
- void 0 !== t.reportProgress
- ? t.reportProgress
- : this.reportProgress,
- c = t.headers || this.headers,
- d = t.params || this.params,
- v =
- null !== (r = t.context) && void 0 !== r
- ? r
- : this.context
- return (
- void 0 !== t.setHeaders &&
- (c = Object.keys(t.setHeaders).reduce(function (g, C) {
- return g.set(C, t.setHeaders[C])
- }, c)),
- t.setParams &&
- (d = Object.keys(t.setParams).reduce(function (g, C) {
- return g.set(C, t.setParams[C])
- }, d)),
- new e(i, a, s, {
- params: d,
- headers: c,
- context: v,
- reportProgress: l,
- responseType: o,
- withCredentials: u,
- })
- )
- },
- },
- ]),
- e
- )
- })(),
- hn = (function () {
- return (
- ((hn = hn || {})[(hn.Sent = 0)] = "Sent"),
- (hn[(hn.UploadProgress = 1)] = "UploadProgress"),
- (hn[(hn.ResponseHeader = 2)] = "ResponseHeader"),
- (hn[(hn.DownloadProgress = 3)] = "DownloadProgress"),
- (hn[(hn.Response = 4)] = "Response"),
- (hn[(hn.User = 5)] = "User"),
- hn
- )
- })(),
- Qf = f(function e(n) {
- var t =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : 200,
- r =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : "OK"
- h(this, e),
- (this.headers = n.headers || new as()),
- (this.status = void 0 !== n.status ? n.status : t),
- (this.statusText = n.statusText || r),
- (this.url = n.url || null),
- (this.ok = this.status >= 200 && this.status < 300)
- }),
- dI = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r,
- i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- return (
- h(this, t), ((r = n.call(this, i)).type = hn.ResponseHeader), r
- )
- }
- return (
- f(t, [
- {
- key: "clone",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- return new t({
- headers: i.headers || this.headers,
- status: void 0 !== i.status ? i.status : this.status,
- statusText: i.statusText || this.statusText,
- url: i.url || this.url || void 0,
- })
- },
- },
- ]),
- t
- )
- })(Qf),
- f_ = (function (e) {
- b(t, e)
- var n = A(t)
- function t() {
- var r,
- i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- return (
- h(this, t),
- ((r = n.call(this, i)).type = hn.Response),
- (r.body = void 0 !== i.body ? i.body : null),
- r
- )
- }
- return (
- f(t, [
- {
- key: "clone",
- value: function () {
- var i =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- return new t({
- body: void 0 !== i.body ? i.body : this.body,
- headers: i.headers || this.headers,
- status: void 0 !== i.status ? i.status : this.status,
- statusText: i.statusText || this.statusText,
- url: i.url || this.url || void 0,
- })
- },
- },
- ]),
- t
- )
- })(Qf),
- d_ = (function (e) {
- b(t, e)
- var n = A(t)
- function t(r) {
- var i
- return (
- h(this, t),
- ((i = n.call(this, r, 0, "Unknown Error")).name =
- "HttpErrorResponse"),
- (i.ok = !1),
- (i.message =
- i.status >= 200 && i.status < 300
- ? "Http failure during parsing for ".concat(
- r.url || "(unknown url)"
- )
- : "Http failure response for "
- .concat(r.url || "(unknown url)", ": ")
- .concat(r.status, " ")
- .concat(r.statusText)),
- (i.error = r.error || null),
- i
- )
- }
- return f(t)
- })(Qf)
- function Xf(e, n) {
- return {
- body: n,
- headers: e.headers,
- context: e.context,
- observe: e.observe,
- params: e.params,
- reportProgress: e.reportProgress,
- responseType: e.responseType,
- withCredentials: e.withCredentials,
- }
- }
- var h_ = (function () {
- var e = (function () {
- function n(t) {
- h(this, n), (this.handler = t)
- }
- return (
- f(n, [
- {
- key: "request",
- value: function (r, i) {
- var s,
- a = this,
- o =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- if (r instanceof Jf) s = r
- else {
- var u = void 0
- u =
- o.headers instanceof as ? o.headers : new as(o.headers)
- var l = void 0
- o.params &&
- (l =
- o.params instanceof no
- ? o.params
- : new no({
- fromObject: o.params,
- })),
- (s = new Jf(r, i, void 0 !== o.body ? o.body : null, {
- headers: u,
- context: o.context,
- params: l,
- reportProgress: o.reportProgress,
- responseType: o.responseType || "json",
- withCredentials: o.withCredentials,
- }))
- }
- var c = eI(s).pipe(
- tI(function (v) {
- return a.handler.handle(v)
- })
- )
- if (r instanceof Jf || "events" === o.observe) return c
- var d = c.pipe(
- nI(function (v) {
- return v instanceof f_
- })
- )
- switch (o.observe || "body") {
- case "body":
- switch (s.responseType) {
- case "arraybuffer":
- return d.pipe(
- or(function (v) {
- if (
- null !== v.body &&
- !(v.body instanceof ArrayBuffer)
- )
- throw new Error(
- "Response is not an ArrayBuffer."
- )
- return v.body
- })
- )
- case "blob":
- return d.pipe(
- or(function (v) {
- if (
- null !== v.body &&
- !(v.body instanceof Blob)
- )
- throw new Error("Response is not a Blob.")
- return v.body
- })
- )
- case "text":
- return d.pipe(
- or(function (v) {
- if (
- null !== v.body &&
- "string" != typeof v.body
- )
- throw new Error("Response is not a string.")
- return v.body
- })
- )
- default:
- return d.pipe(
- or(function (v) {
- return v.body
- })
- )
- }
- case "response":
- return d
- default:
- throw new Error(
- "Unreachable: unhandled observe type ".concat(
- o.observe,
- "}"
- )
- )
- }
- },
- },
- {
- key: "delete",
- value: function (r) {
- var i =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- return this.request("DELETE", r, i)
- },
- },
- {
- key: "get",
- value: function (r) {
- var i =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- return this.request("GET", r, i)
- },
- },
- {
- key: "head",
- value: function (r) {
- var i =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- return this.request("HEAD", r, i)
- },
- },
- {
- key: "jsonp",
- value: function (r, i) {
- return this.request("JSONP", r, {
- params: new no().append(i, "JSONP_CALLBACK"),
- observe: "body",
- responseType: "json",
- })
- },
- },
- {
- key: "options",
- value: function (r) {
- var i =
- arguments.length > 1 && void 0 !== arguments[1]
- ? arguments[1]
- : {}
- return this.request("OPTIONS", r, i)
- },
- },
- {
- key: "patch",
- value: function (r, i) {
- var a =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- return this.request("PATCH", r, Xf(a, i))
- },
- },
- {
- key: "post",
- value: function (r, i) {
- var a =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- return this.request("POST", r, Xf(a, i))
- },
- },
- {
- key: "put",
- value: function (r, i) {
- var a =
- arguments.length > 2 && void 0 !== arguments[2]
- ? arguments[2]
- : {}
- return this.request("PUT", r, Xf(a, i))
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(i_))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- v_ = (function () {
- function e(n, t) {
- h(this, e), (this.next = n), (this.interceptor = t)
- }
- return (
- f(e, [
- {
- key: "handle",
- value: function (t) {
- return this.interceptor.intercept(t, this.next)
- },
- },
- ]),
- e
- )
- })(),
- p_ = new ft("HTTP_INTERCEPTORS"),
- hI = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, [
- {
- key: "intercept",
- value: function (r, i) {
- return i.handle(r)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- vI = /^\)\]\}',?\n/,
- g_ = (function () {
- var e = (function () {
- function n(t) {
- h(this, n), (this.xhrFactory = t)
- }
- return (
- f(n, [
- {
- key: "handle",
- value: function (r) {
- var i = this
- if ("JSONP" === r.method)
- throw new Error(
- "Attempted to construct Jsonp request without HttpClientJsonpModule installed."
- )
- return new an(function (a) {
- var o = i.xhrFactory.build()
- if (
- (o.open(r.method, r.urlWithParams),
- r.withCredentials && (o.withCredentials = !0),
- r.headers.forEach(function (Y, F) {
- return o.setRequestHeader(Y, F.join(","))
- }),
- r.headers.has("Accept") ||
- o.setRequestHeader(
- "Accept",
- "application/json, text/plain, */*"
- ),
- !r.headers.has("Content-Type"))
- ) {
- var s = r.detectContentTypeHeader()
- null !== s && o.setRequestHeader("Content-Type", s)
- }
- if (r.responseType) {
- var u = r.responseType.toLowerCase()
- o.responseType = "json" !== u ? u : "text"
- }
- var l = r.serializeBody(),
- c = null,
- d = function () {
- if (null !== c) return c
- var F = 1223 === o.status ? 204 : o.status,
- ge = o.statusText || "OK",
- Re = new as(o.getAllResponseHeaders()),
- Ke =
- (function pI(e) {
- return "responseURL" in e && e.responseURL
- ? e.responseURL
- : /^X-Request-URL:/m.test(
- e.getAllResponseHeaders()
- )
- ? e.getResponseHeader("X-Request-URL")
- : null
- })(o) || r.url
- return (c = new dI({
- headers: Re,
- status: F,
- statusText: ge,
- url: Ke,
- }))
- },
- v = function () {
- var F = d(),
- ge = F.headers,
- Re = F.status,
- Ke = F.statusText,
- kt = F.url,
- yt = null
- 204 !== Re &&
- (yt =
- void 0 === o.response
- ? o.responseText
- : o.response),
- 0 === Re && (Re = yt ? 200 : 0)
- var Dn = Re >= 200 && Re < 300
- if (
- "json" === r.responseType &&
- "string" == typeof yt
- ) {
- var Wn = yt
- yt = yt.replace(vI, "")
- try {
- yt = "" !== yt ? JSON.parse(yt) : null
- } catch (Xr) {
- ;(yt = Wn),
- Dn &&
- ((Dn = !1),
- (yt = {
- error: Xr,
- text: yt,
- }))
- }
- }
- Dn
- ? (a.next(
- new f_({
- body: yt,
- headers: ge,
- status: Re,
- statusText: Ke,
- url: kt || void 0,
- })
- ),
- a.complete())
- : a.error(
- new d_({
- error: yt,
- headers: ge,
- status: Re,
- statusText: Ke,
- url: kt || void 0,
- })
- )
- },
- g = function (F) {
- var ge = d(),
- Ke = new d_({
- error: F,
- status: o.status || 0,
- statusText: o.statusText || "Unknown Error",
- url: ge.url || void 0,
- })
- a.error(Ke)
- },
- C = !1,
- N = function (F) {
- C || (a.next(d()), (C = !0))
- var ge = {
- type: hn.DownloadProgress,
- loaded: F.loaded,
- }
- F.lengthComputable && (ge.total = F.total),
- "text" === r.responseType &&
- !!o.responseText &&
- (ge.partialText = o.responseText),
- a.next(ge)
- },
- G = function (F) {
- var ge = {
- type: hn.UploadProgress,
- loaded: F.loaded,
- }
- F.lengthComputable && (ge.total = F.total), a.next(ge)
- }
- return (
- o.addEventListener("load", v),
- o.addEventListener("error", g),
- o.addEventListener("timeout", g),
- o.addEventListener("abort", g),
- r.reportProgress &&
- (o.addEventListener("progress", N),
- null !== l &&
- o.upload &&
- o.upload.addEventListener("progress", G)),
- o.send(l),
- a.next({
- type: hn.Sent,
- }),
- function () {
- o.removeEventListener("error", g),
- o.removeEventListener("abort", g),
- o.removeEventListener("load", v),
- o.removeEventListener("timeout", g),
- r.reportProgress &&
- (o.removeEventListener("progress", N),
- null !== l &&
- o.upload &&
- o.upload.removeEventListener("progress", G)),
- o.readyState !== o.DONE && o.abort()
- }
- )
- })
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(kf))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- ed = new ft("XSRF_COOKIE_NAME"),
- td = new ft("XSRF_HEADER_NAME"),
- m_ = f(function e() {
- h(this, e)
- }),
- gI = (function () {
- var e = (function () {
- function n(t, r, i) {
- h(this, n),
- (this.doc = t),
- (this.platform = r),
- (this.cookieName = i),
- (this.lastCookieString = ""),
- (this.lastToken = null),
- (this.parseCount = 0)
- }
- return (
- f(n, [
- {
- key: "getToken",
- value: function () {
- if ("server" === this.platform) return null
- var r = this.doc.cookie || ""
- return (
- r !== this.lastCookieString &&
- (this.parseCount++,
- (this.lastToken = Wm(r, this.cookieName)),
- (this.lastCookieString = r)),
- this.lastToken
- )
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Or), dt(gu), dt(ed))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- nd = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n), (this.tokenService = t), (this.headerName = r)
- }
- return (
- f(n, [
- {
- key: "intercept",
- value: function (r, i) {
- var a = r.url.toLowerCase()
- if (
- "GET" === r.method ||
- "HEAD" === r.method ||
- a.startsWith("http://") ||
- a.startsWith("https://")
- )
- return i.handle(r)
- var o = this.tokenService.getToken()
- return (
- null !== o &&
- !r.headers.has(this.headerName) &&
- (r = r.clone({
- headers: r.headers.set(this.headerName, o),
- })),
- i.handle(r)
- )
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(m_), dt(td))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- mI = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n),
- (this.backend = t),
- (this.injector = r),
- (this.chain = null)
- }
- return (
- f(n, [
- {
- key: "handle",
- value: function (r) {
- if (null === this.chain) {
- var i = this.injector.get(p_, [])
- this.chain = i.reduceRight(function (a, o) {
- return new v_(a, o)
- }, this.backend)
- }
- return this.chain.handle(r)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(a_), dt(Kn))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- })),
- e
- )
- })(),
- yI = (function () {
- var e = (function () {
- function n() {
- h(this, n)
- }
- return (
- f(n, null, [
- {
- key: "disable",
- value: function () {
- return {
- ngModule: n,
- providers: [
- {
- provide: nd,
- useClass: hI,
- },
- ],
- }
- },
- },
- {
- key: "withOptions",
- value: function () {
- var r =
- arguments.length > 0 && void 0 !== arguments[0]
- ? arguments[0]
- : {}
- return {
- ngModule: n,
- providers: [
- r.cookieName
- ? {
- provide: ed,
- useValue: r.cookieName,
- }
- : [],
- r.headerName
- ? {
- provide: td,
- useValue: r.headerName,
- }
- : [],
- ],
- }
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: [
- nd,
- {
- provide: p_,
- useExisting: nd,
- multi: !0,
- },
- {
- provide: m_,
- useClass: gI,
- },
- {
- provide: ed,
- useValue: "XSRF-TOKEN",
- },
- {
- provide: td,
- useValue: "X-XSRF-TOKEN",
- },
- ],
- })),
- e
- )
- })(),
- _I = (function () {
- var e = f(function n() {
- h(this, n)
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: [
- h_,
- {
- provide: i_,
- useClass: mI,
- },
- g_,
- {
- provide: a_,
- useExisting: g_,
- },
- ],
- imports: [
- [
- yI.withOptions({
- cookieName: "XSRF-TOKEN",
- headerName: "X-XSRF-TOKEN",
- }),
- ],
- ],
- })),
- e
- )
- })(),
- y_ = p(6179),
- Zu = (function () {
- var e = (function () {
- function n(t) {
- if (
- (h(this, n),
- (this.http = t),
- (this.searchType = "citiesandhotels"),
- (this.language = "en"),
- (this.dataFiles = {
- hotels: "hotels",
- citiesandhotels: "citiesandhotels",
- default: "all",
- }),
- "undefined" != typeof window)
- ) {
- if (
- ((this.searchData =
- JSON.parse(window.sessionStorage.getItem("searchData")) ||
- {}),
- window.Scandic.bookingWidgetLabels &&
- window.Scandic.bookingWidgetLabels.language)
- )
- this.language = window.Scandic.bookingWidgetLabels.language
- else {
- var r = window.location.hostname.substr(
- window.location.hostname.lastIndexOf(".") + 1
- )
- switch (r) {
- case "com":
- this.language = "en"
- break
- case "se":
- this.language = "sv"
- break
- case "dk":
- this.language = "da"
- break
- default:
- this.language = r
- }
- }
- this.searchHistory =
- JSON.parse(window.localStorage.getItem("searchHistory")) || []
- }
- }
- return (
- f(n, [
- {
- key: "getSearchData",
- value: function (r) {
- return this.searchData && r
- ? this.searchData[r]
- : this.searchData
- },
- },
- {
- key: "saveSearchData",
- value: function (r, i) {
- ;(this.searchData[i] = r),
- window.sessionStorage.setItem(
- "searchData",
- JSON.stringify(this.searchData)
- ),
- "search" == i && this.addToSearchHistory(r.selectedItem)
- },
- },
- {
- key: "getSavedBookingCode",
- value: function () {
- return JSON.parse(
- window.localStorage.getItem("bookingCode")
- )
- },
- },
- {
- key: "setSavedBookingCode",
- value: function (r) {
- r
- ? window.localStorage.setItem(
- "bookingCode",
- JSON.stringify(r)
- )
- : window.localStorage.removeItem("bookingCode")
- },
- },
- {
- key: "getSearchHistory",
- value: function () {
- return this.searchHistory && this.searchHistory.length > 0
- ? this.searchHistory
- : null
- },
- },
- {
- key: "setSearchHistory",
- value: function () {
- "undefined" != typeof window &&
- this.searchHistory.length > 0 &&
- window.localStorage.setItem(
- "searchHistory",
- JSON.stringify(this.searchHistory)
- )
- },
- },
- {
- key: "addToSearchHistory",
- value: function (r) {
- r &&
- (0 ==
- this.searchHistory.filter(function (a) {
- return a.Id == r.Id
- }).length && this.searchHistory.push(r),
- this.setSearchHistory())
- },
- },
- {
- key: "getHotelsAndDestinations",
- value: function (r) {
- var i = this
- if (!this.destinations) {
- var o
- "undefined" != typeof window &&
- (o =
- window.location.origin +
- "/ta/" +
- ("hotels" === this.searchType ||
- "citiesandhotels" === this.searchType
- ? this.dataFiles[this.searchType]
- : this.dataFiles.default) +
- "-" +
- this.language),
- o &&
- this.http.get(o, {}).subscribe(function (s) {
- s.forEach(function (u) {
- var l = u.tokens.join(" ")
- return (u.tokens = " " + l), (u.matchLevel = 0), u
- }),
- (i.destinations = s),
- "function" == typeof r && r()
- })
- }
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(h_))
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- providedIn: "root",
- })),
- e
- )
- })(),
- DI = (function () {
- var e = f(function n() {
- h(this, n),
- (this.translations = {
- de: {
- apply: "Anwenden",
- months: [
- "Januar",
- "Februar",
- "M\xe4rz",
- "April",
- "Mai",
- "Juni",
- "Juli",
- "August",
- "September",
- "Oktober",
- "November",
- "Dezember",
- ],
- monthsShort: [
- "Jan",
- "Feb",
- "M\xe4r",
- "Apr",
- "Mai",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Okt",
- "Nov",
- "Dez",
- ],
- weekdaysFull: [
- "Sonntag",
- "Montag",
- "Dienstag",
- "Mittwoch",
- "Donnerstag",
- "Freitag",
- "Samstag",
- ],
- days: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
- today: "Heute",
- clear: "L\xf6schen",
- close: "Schlie\xdfen",
- firstDay: 1,
- format: "dddd, dd. mmmm yyyy",
- formatSubmit: "yyyy/mm/dd",
- },
- da: {
- apply: "V\xe6lg",
- months: [
- "januar",
- "februar",
- "marts",
- "april",
- "maj",
- "juni",
- "juli",
- "august",
- "september",
- "oktober",
- "november",
- "december",
- ],
- monthsShort: [
- "jan",
- "feb",
- "mar",
- "apr",
- "maj",
- "jun",
- "jul",
- "aug",
- "sep",
- "okt",
- "nov",
- "dec",
- ],
- weekdaysFull: [
- "s\xf8ndag",
- "mandag",
- "tirsdag",
- "onsdag",
- "torsdag",
- "fredag",
- "l\xf8rdag",
- ],
- days: ["s\xf8n", "man", "tir", "ons", "tor", "fre", "l\xf8r"],
- today: "i dag",
- clear: "slet",
- close: "luk",
- firstDay: 1,
- format: "d. mmmm yyyy",
- formatSubmit: "yyyy/mm/dd",
- },
- en: {
- apply: "Apply",
- monthsShort: [
- "jan",
- "feb",
- "mar",
- "apr",
- "may",
- "jun",
- "jul",
- "aug",
- "sep",
- "oct",
- "nov",
- "dec",
- ],
- today: "today",
- clear: "clear",
- close: "close",
- firstDay: 1,
- },
- fi: {
- apply: "Tallenna",
- months: [
- "tammikuu",
- "helmikuu",
- "maaliskuu",
- "huhtikuu",
- "toukokuu",
- "kes\xe4kuu",
- "hein\xe4kuu",
- "elokuu",
- "syyskuu",
- "lokakuu",
- "marraskuu",
- "joulukuu",
- ],
- monthsShort: [
- "tammi",
- "helmi",
- "maalis",
- "huhti",
- "touko",
- "kes\xe4",
- "hein\xe4",
- "elo",
- "syys",
- "loka",
- "marras",
- "joulu",
- ],
- weekdaysFull: [
- "sunnuntai",
- "maanantai",
- "tiistai",
- "keskiviikko",
- "torstai",
- "perjantai",
- "lauantai",
- ],
- days: ["su", "ma", "ti", "ke", "to", "pe", "la"],
- today: "t\xe4n\xe4\xe4n",
- clear: "tyhjenn\xe4",
- firstDay: 1,
- },
- no: {
- apply: "Velg",
- months: [
- "januar",
- "februar",
- "mars",
- "april",
- "mai",
- "juni",
- "juli",
- "august",
- "september",
- "oktober",
- "november",
- "desember",
- ],
- monthsShort: [
- "jan",
- "feb",
- "mar",
- "apr",
- "mai",
- "jun",
- "jul",
- "aug",
- "sep",
- "okt",
- "nov",
- "des",
- ],
- weekdaysFull: [
- "s\xf8ndag",
- "mandag",
- "tirsdag",
- "onsdag",
- "torsdag",
- "fredag",
- "l\xf8rdag",
- ],
- days: ["s\xf8n", "man", "tir", "ons", "tor", "fre", "l\xf8r"],
- today: "i dag",
- clear: "nullstill",
- close: "lukk",
- firstDay: 1,
- },
- pl: {
- apply: "apply",
- months: [
- "stycze\u0144",
- "luty",
- "marzec",
- "kwiecie\u0144",
- "maj",
- "czerwiec",
- "lipiec",
- "sierpie\u0144",
- "wrzesie\u0144",
- "pa\u017adziernik",
- "listopad",
- "grudzie\u0144",
- ],
- monthsShort: [
- "sty",
- "lut",
- "mar",
- "kwi",
- "maj",
- "cze",
- "lip",
- "sie",
- "wrz",
- "pa\u017a",
- "lis",
- "gru",
- ],
- weekdaysFull: [
- "niedziela",
- "poniedzia\u0142ek",
- "wtorek",
- "\u015broda",
- "czwartek",
- "pi\u0105tek",
- "sobota",
- ],
- days: [
- "niedz.",
- "pn.",
- "wt.",
- "\u015br.",
- "cz.",
- "pt.",
- "sob.",
- ],
- today: "Dzisiaj",
- clear: "Usu\u0144",
- close: "Zamknij",
- firstDay: 1,
- format: "d mmmm yyyy",
- formatSubmit: "yyyy/mm/dd",
- },
- ru: {
- apply: "apply",
- months: [
- "\u044f\u043d\u0432\u0430\u0440\u044f",
- "\u0444\u0435\u0432\u0440\u0430\u043b\u044f",
- "\u043c\u0430\u0440\u0442\u0430",
- "\u0430\u043f\u0440\u0435\u043b\u044f",
- "\u043c\u0430\u044f",
- "\u0438\u044e\u043d\u044f",
- "\u0438\u044e\u043b\u044f",
- "\u0430\u0432\u0433\u0443\u0441\u0442\u0430",
- "\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f",
- "\u043e\u043a\u0442\u044f\u0431\u0440\u044f",
- "\u043d\u043e\u044f\u0431\u0440\u044f",
- "\u0434\u0435\u043a\u0430\u0431\u0440\u044f",
- ],
- monthsShort: [
- "\u044f\u043d\u0432",
- "\u0444\u0435\u0432",
- "\u043c\u0430\u0440",
- "\u0430\u043f\u0440",
- "\u043c\u0430\u0439",
- "\u0438\u044e\u043d",
- "\u0438\u044e\u043b",
- "\u0430\u0432\u0433",
- "\u0441\u0435\u043d",
- "\u043e\u043a\u0442",
- "\u043d\u043e\u044f",
- "\u0434\u0435\u043a",
- ],
- weekdaysFull: [
- "\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435",
- "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a",
- "\u0432\u0442\u043e\u0440\u043d\u0438\u043a",
- "\u0441\u0440\u0435\u0434\u0430",
- "\u0447\u0435\u0442\u0432\u0435\u0440\u0433",
- "\u043f\u044f\u0442\u043d\u0438\u0446\u0430",
- "\u0441\u0443\u0431\u0431\u043e\u0442\u0430",
- ],
- days: [
- "\u0432\u0441",
- "\u043f\u043d",
- "\u0432\u0442",
- "\u0441\u0440",
- "\u0447\u0442",
- "\u043f\u0442",
- "\u0441\u0431",
- ],
- today: "\u0441\u0435\u0433\u043e\u0434\u043d\u044f",
- clear: "\u0443\u0434\u0430\u043b\u0438\u0442\u044c",
- close: "\u0437\u0430\u043a\u0440\u044b\u0442\u044c",
- firstDay: 1,
- format: "d mmmm yyyy \u0433.",
- formatSubmit: "yyyy/mm/dd",
- },
- sv: {
- apply: "Till\xe4mpa",
- months: [
- "januari",
- "februari",
- "mars",
- "april",
- "maj",
- "juni",
- "juli",
- "augusti",
- "september",
- "oktober",
- "november",
- "december",
- ],
- monthsShort: [
- "jan",
- "feb",
- "mar",
- "apr",
- "maj",
- "jun",
- "jul",
- "aug",
- "sep",
- "okt",
- "nov",
- "dec",
- ],
- weekdaysFull: [
- "s\xf6ndag",
- "m\xe5ndag",
- "tisdag",
- "onsdag",
- "torsdag",
- "fredag",
- "l\xf6rdag",
- ],
- days: [
- "s\xf6n",
- "m\xe5n",
- "tis",
- "ons",
- "tor",
- "fre",
- "l\xf6r",
- ],
- today: "Idag",
- clear: "Rensa",
- close: "St\xe4ng",
- firstDay: 1,
- },
- })
- })
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵprov = te({
- token: e,
- factory: e.ɵfac,
- providedIn: "root",
- })),
- e
- )
- })(),
- bI = ["date"]
- function CI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "input", 8),
- Ue("ngModelChange", function (a) {
- return Dt(t), (pe().fromDate = a)
- }),
- L()
- }
- 2 & e && H("ngModel", pe().fromDate)
- }
- function EI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "input", 9),
- Ue("ngModelChange", function (a) {
- return Dt(t), (pe().toDate = a)
- }),
- L()
- }
- 2 & e && H("ngModel", pe().toDate)
- }
- var kI = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n),
- (this.bookingService = t),
- (this.datepickerService = r),
- (this.applyLabel = ""),
- (this.date = new Date()),
- (this.endDate = this.addDays(new Date(), 1)),
- (this.dateText = ""),
- (this.isOpen = !1),
- (this.fromDate =
- this.date.getFullYear() +
- "-" +
- this.date.getMonth() +
- "-" +
- this.date.getDate()),
- (this.toDate =
- this.endDate.getFullYear() +
- "-" +
- this.endDate.getMonth() +
- "-" +
- this.endDate.getDate()),
- (this.dataChanged = new rn())
- }
- return (
- f(n, [
- {
- key: "ngOnInit",
- value: function () {},
- },
- {
- key: "ngAfterViewInit",
- value: function () {
- ;(this.maxAllowedEndDate = this.addDays(new Date(), 395)),
- (this.rootEle = this.dateEle.nativeElement.parentElement),
- (this.dateText =
- this.displayDate(this.date) +
- " - " +
- this.displayDate(this.endDate))
- var r = this.bookingService.getSearchData("date")
- r &&
- ((this.date = new Date(r.date)),
- (this.endDate = new Date(r.endDate)))
- var i = window.location.href.toLowerCase(),
- a =
- -1 != i.indexOf("fromdate") || -1 != i.indexOf("?hotel")
- if (document.querySelector("[modify-date]") || a) {
- var o = window.Scandic.bookingWidgetData
- o &&
- o.fromDate &&
- o.toDate &&
- ((this.date = new Date(o.fromDate)),
- (this.endDate = new Date(o.toDate)))
- }
- this.isDateRange
- ? (this.updateDatePicker(), this.udpateDate())
- : ((this.datepicker = (0, y_.TinyDatePicker)(
- ".date-picker__calendar"
- )),
- (this.datepicker.state.selectedDate = this.date),
- (this.dateText = this.displayDate(this.date))),
- (this.applyLabel =
- this.datepickerService.translations[
- this.bookingService.language
- ].apply)
- },
- },
- {
- key: "updateDatePicker",
- value: function () {
- var r = new Date(),
- i = this.addDays(new Date(), 395)
- this.date &&
- !this.endDate &&
- ((r = this.dateInRange(this.date, "start")
- ? this.removeDays(this.date, 99)
- : r),
- (i = this.dateInRange(this.date)
- ? this.addDays(this.date, 99)
- : i))
- var a = this,
- o = this.endDate || this.date
- if (
- (this.endCalFirstDate ||
- this.date.getMonth() != this.endDate.getMonth()) &&
- window.innerWidth >= 768
- ) {
- var s = new Date(o)
- s.setMonth(o.getMonth() - 1),
- s.getDate() != o.getDate() && s.setDate(-1),
- this.endCalFirstDate ||
- (this.endCalFirstDate = this.endDate.getTime()),
- (o = this.endCalFirstDate <= o.getTime() ? s : o)
- }
- ;(this.datepicker = (0, y_.DateRangePicker)(
- ".date-picker__calendar",
- {
- startOpts: {
- lang: this.datepickerService.translations[
- this.bookingService.language
- ],
- max: i,
- min: r,
- hilightedDate: o,
- dayOffset: 1,
- },
- endOpts: {
- lang: this.datepickerService.translations[
- this.bookingService.language
- ],
- max: i,
- min: r,
- dayOffset: 1,
- },
- }
- )),
- this.datepicker.setState({
- start: this.date,
- end: this.endDate,
- }),
- this.datepicker.on("statechange", function (u, l) {
- ;(a.date = l.state.start),
- (a.endDate =
- l.state.end &&
- l.state.start.toDateString() !=
- l.state.end.toDateString()
- ? l.state.end
- : null),
- setTimeout(
- function () {
- ;(this.endCalFirstDate =
- document.querySelectorAll(
- ".dr-cal-end .dp-day:not(.dp-edge-day)"
- )[0]),
- (this.endCalFirstDate =
- this.endCalFirstDate.getAttribute(
- "data-date"
- )),
- a.updateDatePicker()
- var c = document.querySelectorAll(
- ".dr-selected:not(.dp-edge-day)"
- )
- c[c.length - 1].focus()
- }.bind(a),
- 10
- )
- })
- },
- },
- {
- key: "udpateDate",
- value: function () {
- if (this.date && this.endDate) {
- if (
- this.date.toDateString() === this.endDate.toDateString()
- )
- return (
- (this.endDate = null),
- void this.datepicker.setState({
- start: this.date,
- end: this.endDate,
- })
- )
- ;(this.fromDate = this.getformattedDate(this.date)),
- (this.toDate = this.getformattedDate(this.endDate)),
- (this.dateText =
- this.displayDate(this.date) +
- " - " +
- this.displayDate(this.endDate))
- }
- },
- },
- {
- key: "getformattedDate",
- value: function (r) {
- return (
- r.getFullYear() +
- "-" +
- ("0" + (r.getMonth() + 1)).slice(-2) +
- "-" +
- r.getDate()
- )
- },
- },
- {
- key: "toggleDatePicker",
- value: function (r, i) {
- r || (r = this.isOpen ? "close" : "open"),
- "open" === r
- ? ((this.isOpen = !0), this.addCloseListners())
- : "close" === r &&
- ((this.isOpen = !1),
- this.removeCloseListners(),
- i && "click" == i.type && this.closeDP(!0))
- },
- },
- {
- key: "_focusOutListner",
- value: function (r) {
- r && r.preventDefault(),
- this.rootEle.contains(r.target) || this.closeDP()
- },
- },
- {
- key: "addCloseListners",
- value: function () {
- ;(this.closeListner = this._focusOutListner.bind(this)),
- document.addEventListener("click", this.closeListner, !1),
- document.addEventListener("keyup", this.closeListner, !1),
- document.querySelector("main.l-section") &&
- (document.querySelector(
- "main.l-section"
- ).style.overflow = "visible")
- },
- },
- {
- key: "removeCloseListners",
- value: function () {
- document.removeEventListener(
- "click",
- this.closeListner,
- !1
- ),
- document.removeEventListener(
- "keyup",
- this.closeListner,
- !1
- ),
- document.querySelector("main.l-section") &&
- document
- .querySelector("main.l-section")
- .removeAttribute("style")
- },
- },
- {
- key: "closeDP",
- value: function (r) {
- ;(this.endDate =
- this.endDate || this.addDays(this.date, 1)),
- r || this.toggleDatePicker("close"),
- this.datepicker.setState({
- start: this.date,
- end: this.endDate,
- }),
- (this.getformattedDate(this.date) != this.fromDate ||
- this.getformattedDate(this.endDate) != this.toDate) &&
- this.dataChanged.emit(),
- this.udpateDate()
- },
- },
- {
- key: "onEnter",
- value: function (r) {
- r.code &&
- 13 == r.which &&
- (r.preventDefault(), this.toggleDatePicker("open"))
- },
- },
- {
- key: "saveSearchData",
- value: function () {
- this.bookingService.saveSearchData(
- {
- date: this.date,
- endDate: this.endDate,
- },
- "date"
- )
- },
- },
- {
- key: "displayDate",
- value: function (r) {
- return r.getDate() + " " + this.getMonthByLang(r.getMonth())
- },
- },
- {
- key: "getMonthByLang",
- value: function (r) {
- return this.datepickerService.translations[
- this.bookingService.language
- ].monthsShort[r]
- },
- },
- {
- key: "addDays",
- value: function (r, i) {
- return new Date(r.getTime() + 864e5 * i)
- },
- },
- {
- key: "removeDays",
- value: function (r, i) {
- return new Date(r.getTime() - 864e5 * i)
- },
- },
- {
- key: "dateInRange",
- value: function (r, i) {
- var a = new Date()
- return (
- a.setHours(0),
- a.setMinutes(0),
- a.setSeconds(0),
- i && "start" == i
- ? this.removeDays(r, 99).getTime() >= a.getTime()
- : this.addDays(r, 99).getTime() <=
- this.maxAllowedEndDate.getTime()
- )
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Zu), de(DI))
- }),
- (e.ɵcmp = Ni({
- type: e,
- selectors: [["date-picker"]],
- viewQuery: function (t, r) {
- var i
- 1 & t && Yr(bI, 5),
- 2 & t && Kr((i = Jr())) && (r.dateEle = i.first)
- },
- inputs: {
- isDateRange: ["range", "isDateRange"],
- },
- outputs: {
- dataChanged: "dataChanged",
- },
- decls: 9,
- vars: 6,
- consts: [
- [1, "date-picker"],
- [
- "type",
- "hidden",
- "id",
- "from-date",
- "name",
- "fromDate",
- 3,
- "ngModel",
- "ngModelChange",
- 4,
- "ngIf",
- ],
- [
- "type",
- "hidden",
- "id",
- "to-date",
- "name",
- "toDate",
- 3,
- "ngModel",
- "ngModelChange",
- 4,
- "ngIf",
- ],
- [
- "id",
- "date-picker",
- "data-hj-ignore-attributes",
- "",
- "tabindex",
- "0",
- 1,
- "date-picker__text",
- "arrow-down",
- "input",
- 3,
- "innerHTML",
- "click",
- "keyup",
- "keydown",
- ],
- ["date", ""],
- [1, "dropdown__modal", 3, "hidden"],
- [1, "date-picker__calendar"],
- [
- "type",
- "button",
- "tabindex",
- "0",
- 1,
- "date-picker__apply",
- "btn",
- "u-no-button-style",
- 3,
- "disabled",
- "click",
- ],
- [
- "type",
- "hidden",
- "id",
- "from-date",
- "name",
- "fromDate",
- 3,
- "ngModel",
- "ngModelChange",
- ],
- [
- "type",
- "hidden",
- "id",
- "to-date",
- "name",
- "toDate",
- 3,
- "ngModel",
- "ngModelChange",
- ],
- ],
- template: function (t, r) {
- if (
- (1 & t &&
- (x(0, "div", 0),
- Ze(1, CI, 1, 1, "input", 1),
- Ze(2, EI, 1, 1, "input", 2),
- x(3, "span", 3, 4),
- Ue("click", function (o) {
- return r.toggleDatePicker(null, o)
- })("keyup", function () {
- return r.toggleDatePicker("open")
- })("keydown", function (o) {
- return r.onEnter(o)
- }),
- L(),
- x(5, "div", 5),
- De(6, "div", 6),
- x(7, "button", 7),
- Ue("click", function () {
- return r.closeDP()
- }),
- Mt(8),
- L(),
- L(),
- L()),
- 2 & t)
- ) {
- var i = (function qv(e) {
- return sa(
- (function G_() {
- return $e.lFrame.contextLView
- })(),
- 20 + e
- )
- })(4)
- z(1),
- H("ngIf", i),
- z(1),
- H("ngIf", r.isDateRange),
- z(1),
- H("innerHTML", r.dateText, Xe),
- z(2),
- H("hidden", !r.isOpen),
- z(2),
- H("disabled", !i || !r.endDate),
- z(1),
- Ha(r.applyLabel)
- }
- },
- directives: [Qa, Xa, es, to],
- encapsulation: 2,
- })),
- e
- )
- })(),
- wI = ["widgetSearch"]
- function SI(e, n) {
- 1 & e && (Er(), x(0, "svg", 12), De(1, "use", 13), L())
- }
- function TI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "span", 14),
- Ue("click", function () {
- return Dt(t), pe().clearSearch()
- }),
- Er(),
- x(1, "svg", 15),
- De(2, "use", 16),
- L(),
- L()
- }
- }
- function MI(e, n) {
- if (
- (1 & e &&
- (x(0, "label", 17),
- De(1, "span", 18),
- x(2, "span", 19),
- Mt(3, "@ViewBag.BookingWidgetLabels.BookingWidgetSearchLabel"),
- L(),
- L()),
- 2 & e)
- ) {
- var t = pe()
- z(1), H("innerHTML", t.search.label, Xe)
- }
- }
- function II(e, n) {
- 1 & e && De(0, "input", 20), 2 & e && H("value", pe().search.stayValue)
- }
- function AI(e, n) {
- 1 & e && De(0, "input", 21), 2 & e && H("value", pe().search.stayValue)
- }
- function OI(e, n) {
- 1 & e && De(0, "span", 18),
- 2 & e && H("innerHTML", pe(2).search.reqdMsg, Xe)
- }
- function PI(e, n) {
- 1 & e && De(0, "span", 18),
- 2 & e && H("innerHTML", pe(2).search.notFoundMsg, Xe)
- }
- var FI = function (n) {
- return {
- "error-widget-search-padding": n,
- }
- }
- function RI(e, n) {
- if (
- (1 & e &&
- (x(0, "div", 22),
- x(1, "div", 22),
- Ze(2, OI, 1, 1, "span", 23),
- Ze(3, PI, 1, 1, "span", 23),
- L(),
- L()),
- 2 & e)
- ) {
- var t = pe()
- H(
- "ngClass",
- t.hotelPage
- ? "error-widget-search"
- : "error-text error-text--inverted"
- ),
- z(1),
- H("ngClass", $a(4, FI, t.hotelPage && t.noMatch)),
- z(1),
- H("ngIf", t.isEmpty),
- z(1),
- H("ngIf", t.noMatch)
- }
- }
- function NI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "li", 26),
- Ue("click", function () {
- var s = Dt(t),
- u = s.$implicit,
- l = s.index
- return pe(2).selectItem(u, l)
- }),
- Er(),
- x(1, "svg", 27),
- De(2, "use", 13),
- L(),
- ji(),
- De(3, "span", 18),
- L()
- }
- if (2 & e) {
- var r = n.$implicit,
- i = n.index,
- a = pe(2)
- H("ngClass", a.selectedIndex == i ? "selected" : ""),
- z(1),
- H(
- "ngClass",
- "CityPage" == r.Type
- ? "icon--dawn"
- : "CountryPage" == r.Type
- ? "icon--nordicsea"
- : "icon--crocus"
- ),
- z(2),
- H(
- "innerHTML",
- r.Name.toLowerCase().replace(
- a.search.value.toLowerCase(),
- "" + a.search.value.toLowerCase() + ""
- ),
- Xe
- )
- }
- }
- var xI = function (n) {
- return {
- "widget-search__list_98": n,
- }
- }
- function LI(e, n) {
- if (
- (1 & e &&
- (x(0, "div", 24), x(1, "ul"), Ze(2, NI, 4, 3, "li", 25), L(), L()),
- 2 & e)
- ) {
- var t = pe()
- H("ngClass", $a(2, xI, t.hotelPage)), z(2), H("ngForOf", t.listItems)
- }
- }
- function VI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "li", 26),
- Ue("click", function () {
- var s = Dt(t),
- u = s.$implicit,
- l = s.index
- return pe(2).selectItem(u, l)
- }),
- Er(),
- x(1, "svg", 27),
- De(2, "use", 13),
- L(),
- ji(),
- x(3, "span"),
- Mt(4),
- (function Bg(e, n) {
- var r,
- t = mt(),
- i = e + 20
- t.firstCreatePass
- ? ((r = (function l0(e, n) {
- if (n)
- for (var t = n.length - 1; t >= 0; t--) {
- var r = n[t]
- if (e === r.name) return r
- }
- })(n, t.pipeRegistry)),
- (t.data[i] = r),
- r.onDestroy &&
- (t.destroyHooks || (t.destroyHooks = [])).push(
- i,
- r.onDestroy
- ))
- : (r = t.data[i])
- var a = r.factory || (r.factory = Hi(r.type)),
- o = pn(de)
- try {
- var s = Os(!1),
- u = a()
- return (
- Os(s),
- (function ME(e, n, t, r) {
- t >= e.data.length &&
- ((e.data[t] = null), (e.blueprint[t] = null)),
- (n[t] = r)
- })(t, ee(), i, u),
- u
- )
- } finally {
- pn(o)
- }
- })(5, "titlecase"),
- L(),
- x(6, "span", 29),
- Ue("click", function () {
- var u = Dt(t).index
- return pe(2).removeSearchEntry(u)
- }),
- Er(),
- x(7, "svg", 30),
- De(8, "use", 16),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = n.$implicit,
- i = n.index
- H("ngClass", pe(2).selectedIndex == i ? "selected" : ""),
- z(1),
- H("ngClass", "CityPage" == r.Type ? "icon--dawn" : "icon--crocus"),
- z(3),
- Ha(
- (function Hg(e, n, t) {
- var r = e + 20,
- i = ee(),
- a = sa(i, r)
- return (function Zo(e, n) {
- return e[1].data[n].pure
- })(i, r)
- ? Rg(i, Bn(), n, a.transform, t, a)
- : a.transform(t)
- })(5, 3, r.Name)
- )
- }
- }
- function BI(e, n) {
- if (
- (1 & e &&
- (x(0, "div", 28), x(1, "ul"), Ze(2, VI, 9, 5, "li", 25), L(), L()),
- 2 & e)
- ) {
- var t = pe()
- z(2), H("ngForOf", t.listItemsHistory)
- }
- }
- var HI = (function () {
- var e = (function () {
- function n(t) {
- h(this, n),
- (this.bookingService = t),
- (this.selectedIndex = 0),
- (this.search = {
- label: "",
- reqdMsg: "",
- notFoundMsg: "",
- placeholder: "",
- value: "",
- stayType: "",
- stayValue: "",
- }),
- (this.srchValCaps = ""),
- (this.isEmpty = !1),
- (this.noMatch = !1),
- (this.scandicHotelText = "scandic"),
- (this.changed = new rn()),
- (this.dataChanged = new rn())
- }
- return (
- f(n, [
- {
- key: "ngOnInit",
- value: function () {
- if (
- (this.hotelPage &&
- (this.bookingService.searchType = "default"),
- "undefined" != typeof window)
- ) {
- window.Scandic.bookingWidgetLabels.search &&
- (this.search = window.Scandic.bookingWidgetLabels.search),
- (this.search.notFoundMsg = window.Scandic
- .bookingWidgetLabels.notFoundMsg
- ? window.Scandic.bookingWidgetLabels.notFoundMsg
- : window.Scandic.bookingWidgetLabels.search
- .notFoundMsg),
- window.Scandic.bookingWidgetLabels.language &&
- (this.bookingService.language =
- window.Scandic.bookingWidgetLabels.language),
- !this.hotelPage &&
- this.bookingService.getSearchData("search") &&
- (this.search =
- this.bookingService.getSearchData("search")),
- null != window.Scandic.bookingWidgetData &&
- window.Scandic.bookingWidgetData.searchQuery &&
- ((this.search.stayType =
- "city" == window.Scandic.bookingWidgetData.stayType
- ? "CityPage"
- : "Hotel"),
- (this.search.stayValue =
- window.Scandic.bookingWidgetData.stayValue),
- (this.search.value =
- window.Scandic.bookingWidgetData.searchQuery)),
- this.search.stayType &&
- this.search.stayValue &&
- this.search.value &&
- this.changed.emit({
- valid: !0,
- }),
- this.bookingService.getHotelsAndDestinations(
- function () {
- var a = this
- this.search.stayValue &&
- ((this.selectedItem =
- this.bookingService.destinations.filter(
- function (o) {
- return o.Id == a.search.stayValue
- }
- )[0]),
- this.selectedItem &&
- this.selectedItem.Id &&
- ((this.search.value = this.selectedItem.Name),
- (this.search.stayType = this.selectedItem.Type),
- (this.search.stayValue = this.selectedItem.Id)))
- }.bind(this)
- ),
- (this.rootElem = document.querySelector(".widget-search"))
- var r = navigator.userAgent.toLowerCase()
- if (
- r.indexOf("firefox") > -1 &&
- r.indexOf("android") > -1
- ) {
- var i = this.showSearchResults.bind(this)
- this.searchElem.nativeElement.addEventListener("input", i)
- }
- }
- },
- },
- {
- key: "showSearchResultsHotelPage",
- value: function (r) {
- this.hotelPage && this.showSearchResults(r)
- },
- },
- {
- key: "showSearchResults",
- value: function (r) {
- var i = this
- if (
- ((this.isEmpty = !this.search.value),
- "keyup" == r.type &&
- 9 != r.which &&
- this.dataChanged.emit(),
- this.isEmpty)
- )
- return (
- (this.listItems = null),
- (this.noMatch = !1),
- this.listItemsHistory || this.showHistory(),
- void this.changed.emit({
- valid: !1,
- })
- )
- this.addCloseListner()
- var a =
- !this.selectedItem ||
- this.search.value != this.selectedItem.Name ||
- this.noMatch
- if (
- ![16, 34, 35, 36, 37, 38, 39, 40, 9, 13].includes(
- r.keyCode
- ) &&
- a
- ) {
- ;(this.noMatch = !1), (this.listItems = [])
- var o = this.search.value
- .toLowerCase()
- .replace("scandic ", "")
- .trim()
- ;(this.listItems = this.bookingService.destinations
- .filter(function (s) {
- var u,
- l = !1,
- c = 0
- return (
- (l = -1 !== s.tokens.indexOf(" " + o)),
- -1 !=
- (null === (u = s.Name) || void 0 === u
- ? void 0
- : u
- .toLowerCase()
- .indexOf(
- i.search.value.trim().toLowerCase()
- )) &&
- (c++,
- i.scandicHotelText.includes(
- i.search.value.trim().toLowerCase()
- ) || (l = l || !!c)),
- (s.matchLevel = c),
- l
- )
- })
- .map(function (s) {
- return {
- Name: s.Name,
- Id: s.Id,
- Type: s.Type,
- matchLevel: s.matchLevel,
- Url: s.Url,
- }
- })
- .sort(function (s, u) {
- return u.matchLevel - s.matchLevel
- })),
- (this.selectedIndex = 0),
- (!this.listItems || this.listItems.length < 1) &&
- !this.scandicHotelText.includes(
- this.search.value.trim().toLowerCase()
- ) &&
- ((this.noMatch = !0),
- this.changed.emit({
- valid: !1,
- }))
- }
- },
- },
- {
- key: "getHighlightedName",
- value: function (r) {
- return r
- .replace(
- this.search.value,
- "" + this.search.value + ""
- )
- .replace(
- this.srchValCaps,
- "" + this.srchValCaps + ""
- )
- },
- },
- {
- key: "actOnKeyDown",
- value: function (r) {
- if (
- (this.listItems || this.listItemsHistory) &&
- !this.noMatch &&
- -1 !== [38, 40, 9, 13].indexOf(r.keyCode)
- ) {
- var a = this.listItems
- ? this.listItems.length
- : this.listItemsHistory.length
- !(
- (this.listItems && this.listItems.length > 0) ||
- (this.listItemsHistory &&
- this.listItemsHistory.length > 0)
- ) ||
- (38 != r.keyCode &&
- 40 != r.keyCode &&
- 9 != r.keyCode &&
- 13 != r.keyCode) ||
- (38 == r.keyCode
- ? ((this.selectedIndex =
- this.selectedIndex < 1
- ? 0
- : this.selectedIndex - 1),
- this.focusItem("up"))
- : 40 == r.keyCode
- ? ((this.selectedIndex =
- this.selectedIndex >= a - 1
- ? a - 1
- : this.selectedIndex + 1),
- this.focusItem("down"))
- : (9 == r.keyCode || 13 == r.keyCode) &&
- this.selectedIndex > -1 &&
- (r.preventDefault(),
- this.selectItem(
- this.listItems
- ? this.listItems[this.selectedIndex]
- : this.listItemsHistory[this.selectedIndex],
- this.selectedIndex
- )))
- }
- },
- },
- {
- key: "selectItem",
- value: function (r, i) {
- r && this.search.stayValue != r.Id && this.dataChanged.emit(),
- !this.noMatch &&
- ((this.selectedIndex = i),
- (this.selectedItem = r),
- (this.search.stayType = this.selectedItem.Type),
- (this.search.stayValue = this.selectedItem.Id),
- (this.search.value = this.selectedItem.Name),
- (this.search.Url = this.selectedItem.Url),
- this.hotelPage &&
- (window.location.href =
- window.location.protocol +
- "//" +
- window.location.host +
- this.search.Url),
- this.changed.emit({
- valid: !0,
- }),
- (this.isEmpty = !this.search.value),
- this.closeList())
- },
- },
- {
- key: "closeList",
- value: function () {
- this.noMatch && this.dataChanged.emit(),
- (this.listItems = null),
- (this.listItemsHistory = null),
- this.removeCloseListner()
- },
- },
- {
- key: "_closeListner",
- value: function (r) {
- r &&
- (this.hotelPage ? r.stopPropagation() : r.preventDefault()),
- null != this.rootElem &&
- !this.rootElem.contains(r.target) &&
- (this.selectedIndex > -1 &&
- this.listItems &&
- this.listItems.length > 0 &&
- !this.hotelPage
- ? this.selectItem(
- this.listItems[this.selectedIndex],
- this.selectedIndex
- )
- : this.closeList()),
- (this.isEmpty = !1)
- },
- },
- {
- key: "addCloseListner",
- value: function () {
- this.closeListner ||
- ((this.closeListner = this._closeListner.bind(this)),
- document.addEventListener("click", this.closeListner, !1),
- document.addEventListener("keyup", this.closeListner, !1))
- },
- },
- {
- key: "removeCloseListner",
- value: function () {
- document.removeEventListener("click", this.closeListner, !1),
- document.removeEventListener(
- "keyup",
- this.closeListner,
- !1
- ),
- (this.closeListner = null)
- },
- },
- {
- key: "clearSearch",
- value: function () {
- this.searchElem.nativeElement.focus(),
- (this.search.value = ""),
- (this.selectedIndex = 0),
- (this.listItems = null),
- (this.noMatch = !1),
- this.changed.emit({
- valid: !1,
- }),
- this.dataChanged.emit(),
- setTimeout(
- function () {
- this.showHistory()
- }.bind(this),
- 100
- )
- },
- },
- {
- key: "saveSearchData",
- value: function () {
- ;(this.search.selectedItem = this.selectedItem),
- this.bookingService.saveSearchData(this.search, "search")
- },
- },
- {
- key: "showHistory",
- value: function () {
- if (!this.hotelPage) {
- var r = this.bookingService.getSearchHistory()
- if (this.search.value || !r) return
- ;(this.selectedIndex = -1),
- (this.listItemsHistory = r),
- this.addCloseListner()
- }
- },
- },
- {
- key: "removeSearchEntry",
- value: function (r) {
- !this.listItemsHistory ||
- (this.searchElem.nativeElement.focus(),
- this.listItemsHistory.splice(r, 1),
- (this.bookingService.searchHistory = this.listItemsHistory),
- this.bookingService.setSearchHistory())
- },
- },
- {
- key: "focusItem",
- value: function (r) {
- var i = document.querySelector(".widget-search__list"),
- a = document.querySelector(".widget-search__list .selected")
- "down" == r &&
- a &&
- a.offsetTop >
- i.scrollTop + i.clientHeight - 2 * a.clientHeight
- ? (i.scrollTop = i.scrollTop + a.clientHeight)
- : "up" == r &&
- a &&
- a.offsetTop < i.scrollTop + a.clientHeight &&
- (i.scrollTop = i.scrollTop - a.clientHeight)
- },
- },
- {
- key: "hideErrorMessage",
- value: function () {
- this.hotelPage && (this.noMatch = !1)
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Zu))
- }),
- (e.ɵcmp = Ni({
- type: e,
- selectors: [["widget-search"]],
- viewQuery: function (t, r) {
- var i
- 1 & t && Yr(wI, 5),
- 2 & t && Kr((i = Jr())) && (r.searchElem = i.first)
- },
- inputs: {
- hotelPage: "hotelPage",
- },
- outputs: {
- changed: "changed",
- dataChanged: "dataChanged",
- },
- decls: 12,
- vars: 11,
- consts: [
- [1, "widget-search"],
- [
- "data-hj-ignore-attributes",
- "",
- 1,
- "input-group",
- "clearable-input",
- ],
- [
- "class",
- "icon icon--xs icon-location",
- "viewBox",
- "0 0 32 32",
- "focusable",
- "false",
- 4,
- "ngIf",
- ],
- [
- "autocomplete",
- "off",
- "spellcheck",
- "false",
- "data-hj-ignore-attributes",
- "",
- "type",
- "text",
- "id",
- "widget-search__text",
- "required",
- "required",
- 3,
- "placeholder",
- "ngClass",
- "ngModel",
- "click",
- "keydown",
- "keyup",
- "ngModelChange",
- "blur",
- "focus",
- ],
- ["widgetSearch", ""],
- ["class", "clearable-input__clear", 3, "click", 4, "ngIf"],
- ["for", "widget-search__text", 4, "ngIf"],
- ["type", "hidden", "name", "city", 3, "value", 4, "ngIf"],
- ["type", "hidden", "name", "hotel", 3, "value", 4, "ngIf"],
- [3, "ngClass", 4, "ngIf"],
- ["class", "widget-search__list", 3, "ngClass", 4, "ngIf"],
- ["class", "widget-search__list", 4, "ngIf"],
- [
- "viewBox",
- "0 0 32 32",
- "focusable",
- "false",
- 1,
- "icon",
- "icon--xs",
- "icon-location",
- ],
- [
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 0,
- "xlink",
- "href",
- "/_static/img/icons/sprites.svg#icon-map-marker",
- ],
- [1, "clearable-input__clear", 3, "click"],
- [
- "stroke-width",
- "5",
- "viewBox",
- "0 0 32 32",
- 1,
- "icon",
- "clearable-input__clear--icon",
- "icon--xdark-gray-stroke",
- ],
- [
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 0,
- "xlink",
- "href",
- "/_static/img/icons/clear-input.svg#web-close",
- ],
- ["for", "widget-search__text"],
- [3, "innerHTML"],
- [1, "hide-on-load"],
- ["type", "hidden", "name", "city", 3, "value"],
- ["type", "hidden", "name", "hotel", 3, "value"],
- [3, "ngClass"],
- [3, "innerHTML", 4, "ngIf"],
- [1, "widget-search__list", 3, "ngClass"],
- [
- "class",
- "widget-search__list-item",
- 3,
- "ngClass",
- "click",
- 4,
- "ngFor",
- "ngForOf",
- ],
- [1, "widget-search__list-item", 3, "ngClass", "click"],
- [
- "viewBox",
- "0 0 32 32",
- "focusable",
- "false",
- 1,
- "icon",
- "icon--xs",
- 2,
- "width",
- "18px",
- 3,
- "ngClass",
- ],
- [1, "widget-search__list"],
- [1, "search-item-remove", 3, "click"],
- [
- "stroke-width",
- "5",
- "viewBox",
- "0 0 32 32",
- 1,
- "icon",
- "icon--xs",
- "icon--xdark-gray",
- "icon--xdark-gray-stroke",
- ],
- ],
- template: function (t, r) {
- 1 & t &&
- (x(0, "div", 0),
- x(1, "div", 1),
- Ze(2, SI, 2, 0, "svg", 2),
- x(3, "input", 3, 4),
- Ue("click", function () {
- return r.showHistory()
- })("keydown", function (a) {
- return r.actOnKeyDown(a)
- })("keyup", function (a) {
- return r.showSearchResults(a)
- })("ngModelChange", function (a) {
- return (r.search.value = a)
- })("blur", function () {
- return r.hideErrorMessage()
- })("focus", function (a) {
- return r.showSearchResultsHotelPage(a)
- }),
- L(),
- Ze(5, TI, 3, 0, "span", 5),
- Ze(6, MI, 4, 1, "label", 6),
- Ze(7, II, 1, 1, "input", 7),
- Ze(8, AI, 1, 1, "input", 8),
- Ze(9, RI, 4, 6, "div", 9),
- L(),
- Ze(10, LI, 3, 4, "div", 10),
- Ze(11, BI, 3, 1, "div", 11),
- L()),
- 2 & t &&
- (z(2),
- H("ngIf", !r.hotelPage),
- z(1),
- H("placeholder", r.hotelPage ? "" : r.search.placeholder)(
- "ngClass",
- r.hotelPage
- ? "hero-search-section__search-input"
- : "widget-search__text"
- )("ngModel", r.search.value),
- z(2),
- H("ngIf", r.search.value && !r.hotelPage),
- z(1),
- H("ngIf", !r.hotelPage),
- z(1),
- H("ngIf", "CityPage" == r.search.stayType),
- z(1),
- H("ngIf", "CityPage" != r.search.stayType),
- z(1),
- H("ngIf", r.isEmpty || r.noMatch),
- z(1),
- H("ngIf", r.listItems && r.listItems.length > 0),
- z(1),
- H(
- "ngIf",
- !r.listItems &&
- r.listItemsHistory &&
- r.listItemsHistory.length > 0
- ))
- },
- directives: [Qa, Xa, zu, yf, es, to, _f],
- pipes: [$m],
- encapsulation: 2,
- })),
- e
- )
- })()
- function jI(e, n) {
- if ((1 & e && (x(0, "span", 10), Mt(1), L()), 2 & e)) {
- var t = pe()
- z(1), Ha(1 == t.value ? t.unit.single : t.unit.plural)
- }
- }
- var UI = (function () {
- var e = (function () {
- function n() {
- h(this, n),
- (this.unit = {
- plural: "",
- single: "",
- }),
- (this.type = "adult"),
- (this.changed = new rn())
- }
- return (
- f(n, [
- {
- key: "ngOnInit",
- value: function () {
- if (
- "undefined" != typeof window &&
- window.Scandic.bookingWidgetLabels &&
- window.Scandic.bookingWidgetLabels.guestSelector
- ) {
- var r = window.Scandic.bookingWidgetLabels.guestSelector
- ;(this.unit =
- "adult" == this.type ? r.adultUnit : r.childUnit),
- (this.value =
- this.value || ("child" == this.type ? 0 : 1))
- }
- },
- },
- {
- key: "increment",
- value: function () {
- this.value < this.max && (this.value += 1),
- this.changed.emit({
- type: this.type,
- value: this.value,
- })
- },
- },
- {
- key: "decrement",
- value: function () {
- this.value > this.min && (this.value -= 1),
- this.changed.emit({
- type: this.type,
- value: this.value,
- })
- },
- },
- {
- key: "keydown",
- value: function (r) {
- r && r.which && 38 === r.which
- ? (this.increment(), r.preventDefault())
- : r &&
- r.which &&
- 40 === r.which &&
- (this.decrement(), r.preventDefault())
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)()
- }),
- (e.ɵcmp = Ni({
- type: e,
- selectors: [["scandic-number-input"]],
- inputs: {
- min: "min",
- max: "max",
- ariaLabel: "ariaLabel",
- name: "name",
- type: "type",
- value: "value",
- },
- outputs: {
- changed: "changed",
- },
- decls: 14,
- vars: 5,
- consts: [
- [
- "role",
- "spinbutton",
- "tabindex",
- "0",
- 1,
- "numeric-input",
- 3,
- "keydown",
- ],
- ["type", "hidden", 3, "name", "value"],
- [1, "numeric-input__value"],
- ["class", "numeric-input__unit", 4, "ngIf"],
- [1, "numeric-input__controls"],
- [
- "type",
- "button",
- "tabindex",
- "-1",
- 1,
- "numeric-input__controls__increase",
- 3,
- "click",
- ],
- [1, "icon", "icon--up-arrow-small"],
- [1, "hidden--accessible"],
- [
- "type",
- "button",
- "tabindex",
- "-1",
- 1,
- "numeric-input__controls__decrease",
- 3,
- "click",
- ],
- [1, "icon", "icon--down-arrow-small"],
- [1, "numeric-input__unit"],
- ],
- template: function (t, r) {
- 1 & t &&
- (x(0, "span", 0),
- Ue("keydown", function (a) {
- return r.keydown(a)
- }),
- De(1, "input", 1),
- x(2, "span", 2),
- Mt(3),
- Ze(4, jI, 2, 1, "span", 3),
- L(),
- x(5, "span", 4),
- x(6, "button", 5),
- Ue("click", function () {
- return r.increment()
- }),
- De(7, "span", 6),
- x(8, "span", 7),
- Mt(9, "Increase"),
- L(),
- L(),
- x(10, "button", 8),
- Ue("click", function () {
- return r.decrement()
- }),
- De(11, "span", 9),
- x(12, "span", 7),
- Mt(13, "Decrease"),
- L(),
- L(),
- L(),
- L()),
- 2 & t &&
- (Tr("aria-label", r.value + " " + r.ariaLabel),
- z(1),
- Wi("name", r.name),
- Wi("value", r.value),
- z(2),
- ja(" ", r.value, " "),
- z(1),
- H("ngIf", r.unit))
- },
- directives: [Qa],
- encapsulation: 2,
- })),
- e
- )
- })(),
- GI = ["guest"],
- WI = ["guestInput"]
- function zI(e, n) {
- 1 & e && De(0, "span", 8),
- 2 & e && H("innerHTML", pe(2).guestSelector.rewardsNightError, Xe)
- }
- function ZI(e, n) {
- 1 & e && De(0, "span", 8),
- 2 & e && H("innerHTML", pe(2).guestSelector.voucherError, Xe)
- }
- function qI(e, n) {
- if (
- (1 & e &&
- (x(0, "span", 26),
- Ze(1, zI, 1, 1, "span", 27),
- Ze(2, ZI, 1, 1, "span", 27),
- L()),
- 2 & e)
- ) {
- var t = pe()
- z(1),
- H("ngIf", t.guestSelector.rewardsNightError && t.redemption),
- z(1),
- H("ngIf", t.guestSelector.voucherError && t.voucher)
- }
- }
- function $I(e, n) {
- if (
- (1 & e && (x(0, "option", 46), Mt(1), De(2, "span", 8), L()), 2 & e)
- ) {
- var t = n.$implicit,
- r = pe().$implicit,
- i = pe(3)
- Wi("value", t),
- Tr("selected", r.Age == t ? "selected" : null),
- z(1),
- ja(" ", t, " "),
- z(1),
- H(
- "innerHTML",
- 1 != t
- ? i.guestSelector.childAgePluralLabel
- : i.guestSelector.childAgeSingularLabel,
- Xe
- )
- }
- }
- function KI(e, n) {
- 1 & e && De(0, "span", 47),
- 2 & e && H("innerHTML", pe(4).guestSelector.childAgeReqdError, Xe)
- }
- function YI(e, n) {
- if ((1 & e && (x(0, "option", 50), Mt(1), L()), 2 & e)) {
- var t = n.$implicit,
- r = pe(2).$implicit
- Wi("value", t.value),
- H("selected", r.Bed == t.value),
- z(1),
- Ha(t.text)
- }
- }
- function JI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 32),
- x(1, "label", 48),
- Mt(2, "Bed type"),
- L(),
- De(3, "label", 39),
- x(4, "div", 40),
- x(5, "select", 41),
- Ue("change", function (l) {
- Dt(t)
- var c = pe().index,
- d = pe(2).index
- return pe().updateChildInfo(d, c, "Bed", l)
- }),
- Ze(6, YI, 2, 3, "option", 49),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe(),
- i = r.index,
- a = r.$implicit,
- o = pe(2).index,
- s = pe()
- z(1),
- ci("for", "room[", o, "].child[", i, "].bed"),
- z(2),
- ci("for", "room[", o, "].child[", i, "].age"),
- H("innerHTML", s.guestSelector.childSelectBedtypeLabel, Xe),
- z(2),
- ci("name", "room[", o, "].child[", i, "].bed"),
- ci("id", "room[", o, "].child[", i, "].bed"),
- z(1),
- H("ngForOf", a.availableBedTypes)
- }
- }
- function QI(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 38),
- x(1, "div", 31),
- x(2, "div", 32),
- De(3, "label", 39),
- x(4, "div", 40),
- x(5, "select", 41),
- Ue("change", function (u) {
- var c = Dt(t).index,
- d = pe(2).index
- return pe().updateChildInfo(d, c, "Age", u)
- }),
- De(6, "option", 42),
- Ze(7, $I, 3, 4, "option", 43),
- L(),
- L(),
- Ze(8, KI, 1, 1, "span", 44),
- L(),
- Ze(9, JI, 7, 10, "div", 45),
- L(),
- L()
- }
- if (2 & e) {
- var r = n.$implicit,
- i = n.index,
- a = pe(2).index,
- o = pe()
- z(3),
- ci("for", "room[", a, "].child[", i, "].age"),
- H(
- "innerHTML",
- o.guestSelector.childAgeSelectLabel + " " + (i + 1),
- Xe
- ),
- z(2),
- ci("name", "room[", a, "].child[", i, "].age"),
- ci("id", "room[", a, "].child[", i, "].age"),
- z(1),
- H("innerHTML", o.guestSelector.childSelectAgeLabel, Xe),
- z(1),
- H("ngForOf", o.allowedAge),
- z(1),
- H("ngIf", r && !1 === r.valid && (!r.Age || r.Age < 0)),
- z(1),
- H("ngIf", r && r.Age >= 0)
- }
- }
- function XI(e, n) {
- if (
- (1 & e && (x(0, "div", 36), Ze(1, QI, 10, 11, "div", 37), L()), 2 & e)
- ) {
- var t = pe().$implicit
- z(1), H("ngForOf", t.Child)
- }
- }
- function eA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 28),
- x(1, "div", 29),
- x(2, "div", 30),
- De(3, "span", 8),
- Mt(4),
- L(),
- x(5, "div", 31),
- x(6, "div", 32),
- x(7, "scandic-number-input", 33),
- Ue("changed", function (s) {
- var l = Dt(t).index
- return pe().updateGuestCount(s, l)
- }),
- L(),
- L(),
- x(8, "div", 32),
- x(9, "scandic-number-input", 34),
- Ue("changed", function (s) {
- var l = Dt(t).index
- return pe().updateGuestCount(s, l)
- }),
- L(),
- L(),
- L(),
- L(),
- Ze(10, XI, 2, 1, "div", 35),
- L()
- }
- if (2 & e) {
- var r = n.$implicit,
- i = n.index,
- a = pe()
- z(3),
- H("innerHTML", a.guestSelector.roomLabel, Xe),
- z(1),
- ja(" ", i + 1, ": "),
- z(3),
- nu("name", "room[", i, "].adults"),
- H("value", r.Adults),
- z(2),
- H("value", r.Child.length),
- z(1),
- H("ngIf", r && r.Child)
- }
- }
- var tA = (function () {
- var e = (function () {
- function n(t) {
- h(this, n),
- (this.bookingService = t),
- (this.allowedAge = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
- (this.guestData = {
- rooms: [
- {
- Adults: 1,
- Child: [],
- },
- ],
- }),
- (this.guestSelector = {
- adultUnit: {
- plural: "",
- single: "",
- },
- childAgePluralLabel: "",
- childAgeReqdError: "",
- childAgeSingularLabel: "",
- childAgeSelectLabel: "",
- childBedTypes: {
- crib: {
- text: "",
- value: 1,
- },
- "extra-bed": {
- text: "",
- value: 2,
- },
- "parents-bed": {
- text: "",
- value: 0,
- },
- },
- childSelectAgeLabel: "",
- childSelectBedtypeLabel: "",
- childUnit: {
- plural: "",
- single: "",
- },
- doneButtonLabel: "",
- label: "",
- rewardsNightError: "",
- voucherError: "",
- roomCountLabel: "",
- roomLabel: "",
- roomPluralLabel: "",
- bookingInnerWidgetguestsLabel: "",
- }),
- (this.isOpen = !1),
- (this.roomCount = 1),
- (this.valid = !1),
- (this.validated = !1),
- (this.redemption = !1),
- (this.voucher = !1),
- (this.changed = new rn()),
- (this.dataChanged = new rn())
- }
- return (
- f(n, [
- {
- key: "ngOnInit",
- value: function () {},
- },
- {
- key: "ngAfterViewInit",
- value: function () {
- ;(this.guestSelector =
- window.Scandic.bookingWidgetLabels.guestSelector ||
- this.guestSelector),
- (this.rootEle =
- this.guestEle.nativeElement.parentElement),
- (this.valid = !0),
- (this.validated = !1),
- this.bookingService.getSearchData("guest") &&
- (this.guestData =
- this.bookingService.getSearchData("guest"))
- var r = decodeURIComponent(
- window.location.href.toLowerCase()
- )
- ;(-1 != r.indexOf("hotel=") || -1 != r.indexOf("?city=")) &&
- (this.guestData.rooms =
- window.Scandic.bookingWidgetData.rooms),
- this.guestData &&
- this.guestData.rooms &&
- ((this.roomCount =
- this.guestData && this.guestData.rooms
- ? this.guestData.rooms.length
- : 1),
- this.updateGuestSelectorView()),
- this.updateChildBedTypes(),
- this.updateText("init"),
- this.changed.emit({
- valid: !0,
- roomCount: this.roomCount,
- })
- },
- },
- {
- key: "getTotalGuestsData",
- value: function (r) {
- var i = 0,
- a = 0
- return (
- r.forEach(function (o) {
- ;(i += o.Adults), (a += o.Child.length)
- }),
- {
- Adults: i,
- Children: a,
- }
- )
- },
- },
- {
- key: "updateText",
- value: function (r) {
- var i = 0,
- a = 0
- this.guestData.rooms.forEach(function (o) {
- ;(i += o.Adults), (a += o.Child.length)
- }),
- (this.guestText =
- i.toString() +
- " " +
- (1 == i
- ? this.guestSelector.adultUnit.single
- : this.guestSelector.adultUnit.plural)),
- a > 0 &&
- (this.guestText +=
- ", " +
- a.toString() +
- " " +
- (1 == a
- ? this.guestSelector.childUnit.single
- : this.guestSelector.childUnit.plural)),
- this.roomCount > 1 &&
- (this.guestText =
- this.guestText +
- ", " +
- this.roomCount.toString() +
- " " +
- this.guestSelector.roomPluralLabel),
- "undefined" != typeof document &&
- document.getElementById("summary-guest-details") &&
- (document.getElementById(
- "summary-guest-details"
- ).innerHTML = this.guestText),
- r || this.dataChanged.emit()
- },
- },
- {
- key: "updateRooms",
- value: function () {
- if (this.guestData.rooms.length != this.roomCount) {
- for (; this.guestData.rooms.length != this.roomCount; )
- this.guestData.rooms.length < this.roomCount
- ? this.guestData.rooms.push({
- Adults: 1,
- Child: [],
- })
- : this.guestData.rooms.pop()
- this.updateText(), this.updateGuestSelectorView()
- }
- },
- },
- {
- key: "updateGuestSelectorView",
- value: function () {
- this.rootEle.classList.remove("left--50"),
- this.rootEle.classList.remove("left--100"),
- window.innerWidth > 767 &&
- (2 == this.guestData.rooms.length
- ? (this.rootEle.classList.add("left--50"),
- this.rootEle.classList.remove("left--100"))
- : this.guestData.rooms.length > 2 &&
- this.rootEle.classList.add("left--100"))
- },
- },
- {
- key: "updateGuestCount",
- value: function (r, i) {
- if ("child" == r.type) {
- if (this.guestData.rooms[i].Child.length == r.value)
- return
- this.guestData.rooms[i].Child.length < r.value
- ? this.guestData.rooms[i].Child.push({
- Age: -1,
- Bed: -1,
- valid: null,
- availableBedTypes: null,
- })
- : this.guestData.rooms[i].Child.pop()
- } else this.guestData.rooms[i].Adults = r.value
- this.updateText(), this.updateChildBedTypes()
- },
- },
- {
- key: "updateChildInfo",
- value: function (r, i, a, o) {
- ;(this.guestData.rooms[r].Child[i][a] = o.target.value),
- this.guestData.rooms[r].Child[i][a] &&
- (this.guestData.rooms[r].Child[i].valid = !0),
- this.updateText(),
- this.updateChildBedTypes()
- },
- },
- {
- key: "updateChildBedTypes",
- value: function () {
- var r = this
- this.guestData.rooms.forEach(function (i) {
- var a = i.Adults,
- o = []
- i.Child.forEach(function (s, u) {
- a > 0 &&
- s.Bed ==
- r.guestSelector.childBedTypes["parents-bed"]
- .value &&
- ((a -= 1), o.push(u))
- }),
- i.Child.forEach(function (s, u) {
- var l = [],
- c = !1
- s.Age <= 5 &&
- (a > 0 || -1 != o.indexOf(u)) &&
- (l.push(
- r.guestSelector.childBedTypes["parents-bed"]
- ),
- s.Bed ==
- r.guestSelector.childBedTypes["parents-bed"]
- .value && (c = !0)),
- s.Age <= 2 &&
- (l.push(r.guestSelector.childBedTypes.crib),
- s.Bed ==
- r.guestSelector.childBedTypes.crib.value &&
- (c = !0)),
- s.Age >= 3 &&
- (l.push(
- r.guestSelector.childBedTypes["extra-bed"]
- ),
- s.Bed ==
- r.guestSelector.childBedTypes["extra-bed"]
- .value && (c = !0)),
- (s.availableBedTypes = l),
- !c &&
- s.Age > -1 &&
- (s.Bed =
- s.Age > 5 && l.length > 1
- ? l[1].value
- : l[0].value)
- })
- })
- },
- },
- {
- key: "toggleGuestsSelector",
- value: function (r, i) {
- if (
- (r || (r = this.isOpen ? "close" : "open"),
- this.isOpen &&
- "open" != r &&
- (this.validateGuestInfo(), (this.validated = !0)),
- "open" != r || this.isOpen)
- ) {
- if ("close" == r) {
- if (!this.valid)
- return void document
- .querySelector(".child-age-invalid")
- .focus()
- if (
- ((i &&
- i.target &&
- i.target.classList.contains(
- "close-guest-selector"
- )) ||
- (i &&
- i.target &&
- i.target.parentElement.classList.contains(
- "close-guest-selector"
- ))) &&
- window.innerWidth > 767
- ) {
- var s = document.querySelector(
- ".booking-widget-options-toggle .visible-medium-up-flex"
- )
- "-1" == s.getAttribute("tabindex") &&
- (s = document.querySelector(
- ".booking-widget__submit button"
- )),
- s.focus()
- }
- ;(this.isOpen = !1), this.removeCloseListners()
- }
- } else (this.isOpen = !0), this.addCloseListners()
- },
- },
- {
- key: "_focusOutListner",
- value: function (r) {
- r && r.preventDefault(),
- this.rootEle.contains(r.target) || this.closeGS(r)
- },
- },
- {
- key: "addCloseListners",
- value: function () {
- ;(this.closeEventListner =
- this._focusOutListner.bind(this)),
- document.addEventListener(
- "click",
- this.closeEventListner,
- !1
- ),
- document.addEventListener(
- "keyup",
- this.closeEventListner,
- !1
- ),
- document.querySelector("main.l-section") &&
- (document.querySelector(
- "main.l-section"
- ).style.overflow = "visible")
- },
- },
- {
- key: "removeCloseListners",
- value: function () {
- document.removeEventListener(
- "click",
- this.closeEventListner,
- !1
- ),
- document.removeEventListener(
- "keyup",
- this.closeEventListner,
- !1
- ),
- document.querySelector("main.l-section") &&
- document
- .querySelector("main.l-section")
- .removeAttribute("style")
- },
- },
- {
- key: "saveSearchData",
- value: function () {
- this.bookingService.saveSearchData(this.guestData, "guest")
- },
- },
- {
- key: "validateGuestInfo",
- value: function () {
- var r = !0,
- i = -1,
- a = -1
- this.guestData.rooms.forEach(function (o, s) {
- o.Child.length &&
- o.Child.forEach(function (u, l) {
- u.Age < 0 &&
- ((r = !1),
- (u.valid = !1),
- (a = -1 != a ? a : s),
- (i = -1 != i ? i : l))
- })
- }),
- (this.valid = r),
- (this.redemption || this.voucher) &&
- this.roomCount > 1 &&
- (r = !1),
- this.changed.emit({
- valid: r,
- roomCount: this.roomCount,
- }),
- document.querySelector(".child-age-invalid") &&
- document
- .querySelector(".child-age-invalid")
- .classList.remove("child-age-invalid"),
- -1 != a &&
- document.getElementById(
- "room[" + a + "].child[" + i + "].age"
- ) &&
- document
- .getElementById(
- "room[" + a + "].child[" + i + "].age"
- )
- .classList.add("child-age-invalid")
- },
- },
- {
- key: "onEnter",
- value: function (r) {
- r.code &&
- 13 == r.which &&
- (r.preventDefault(), this.toggleGuestsSelector())
- },
- },
- {
- key: "closeGS",
- value: function (r) {
- this.toggleGuestsSelector("close")
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(Zu))
- }),
- (e.ɵcmp = Ni({
- type: e,
- selectors: [["guest-selection"]],
- viewQuery: function (t, r) {
- var i
- 1 & t && (Yr(GI, 5), Yr(WI, 5)),
- 2 & t &&
- (Kr((i = Jr())) && (r.guestEle = i.first),
- Kr((i = Jr())) && (r.guestInputEle = i.first))
- },
- inputs: {
- redemption: "redemption",
- voucher: ["voucherBookingCode", "voucher"],
- },
- outputs: {
- changed: "changed",
- dataChanged: "dataChanged",
- },
- decls: 33,
- vars: 9,
- consts: [
- ["tabindex", "-1", 1, "guest-selector"],
- [1, "guest-wrapper", "input-group"],
- ["guest", ""],
- [
- "viewBox",
- "0 0 16 15",
- "focusable",
- "false",
- 1,
- "icon",
- "icon--xs",
- "icon--white",
- "icon-people",
- ],
- [
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 0,
- "xlink",
- "href",
- "/_static/img/icons/shared/personas.svg#UI-Desktop",
- ],
- [
- "id",
- "guestInput",
- "tabindex",
- "0",
- 1,
- "guest-selector__text",
- "arrow-down",
- "input",
- 3,
- "innerHTML",
- "click",
- "keyup",
- "keydown",
- ],
- ["guestInput", ""],
- ["for", "guestInput"],
- [3, "innerHTML"],
- [1, "hidden", 3, "innerHTML"],
- [1, "hide-on-load"],
- [1, "dropdown__modal", 3, "hidden"],
- [1, "guest-selector__header"],
- [
- "for",
- "guest-selector__room-count",
- 1,
- "guest-selector__header-label",
- ],
- [
- 1,
- "custom-select",
- "custom-select--inline",
- "custom-select--booking-widget-dialog",
- ],
- [
- "id",
- "guest-selector__room-count",
- "aria-invalid",
- "false",
- 1,
- "guest-selector__room-count",
- 3,
- "ngModel",
- "ngModelChange",
- "change",
- ],
- ["value", "1", "selected", "selected"],
- ["value", "2"],
- ["value", "3"],
- ["value", "4"],
- ["class", "error-text", 4, "ngIf"],
- [1, "guest-selector__body"],
- [
- "class",
- "guest-selector__room-details",
- 4,
- "ngFor",
- "ngForOf",
- ],
- [1, "guest-selector__footer"],
- [
- 1,
- "iconic-item",
- "iconic-item--m",
- "iconic-item--centeredx",
- "close-guest-selector",
- 3,
- "click",
- ],
- [1, "iconic-item__text", 3, "innerHTML"],
- [1, "error-text"],
- [3, "innerHTML", 4, "ngIf"],
- [1, "guest-selector__room-details"],
- [1, "room-info"],
- [1, "room-info__label"],
- [1, "input-group-2col"],
- [1, "input-group-2col__col"],
- [
- "ariaLabel",
- "adults. Choose the number of adults that will stay in the room.",
- "type",
- "adult",
- "min",
- "1",
- "max",
- "6",
- 3,
- "value",
- "name",
- "changed",
- ],
- [
- "ariaLabel",
- "children. Choose the number of children that will stay in the room.",
- "type",
- "child",
- "min",
- "0",
- "max",
- "5",
- 3,
- "value",
- "changed",
- ],
- ["class", "guest-selctor__child-info", 4, "ngIf"],
- [1, "guest-selctor__child-info"],
- [
- "class",
- "child-info",
- "data-js",
- "child-info",
- 4,
- "ngFor",
- "ngForOf",
- ],
- ["data-js", "child-info", 1, "child-info"],
- [1, "child-info__label", 3, "for", "innerHTML"],
- [1, "custom-select"],
- ["required", "", 3, "name", "id", "change"],
- [
- "disabled",
- "",
- "selected",
- "selected",
- 2,
- "display",
- "none",
- 3,
- "innerHTML",
- ],
- [3, "value", 4, "ngFor", "ngForOf"],
- [
- "class",
- "field-validation-error error-text",
- 3,
- "innerHTML",
- 4,
- "ngIf",
- ],
- ["class", "input-group-2col__col", 4, "ngIf"],
- [3, "value"],
- [1, "field-validation-error", "error-text", 3, "innerHTML"],
- ["hidden", "", 1, "hidden", "hidden--accessible", 3, "for"],
- [3, "value", "selected", 4, "ngFor", "ngForOf"],
- [3, "value", "selected"],
- ],
- template: function (t, r) {
- 1 & t &&
- (x(0, "div", 0),
- x(1, "div", 1, 2),
- Er(),
- x(3, "svg", 3),
- De(4, "use", 4),
- L(),
- ji(),
- x(5, "span", 5, 6),
- Ue("click", function () {
- return r.toggleGuestsSelector(null)
- })("keyup", function () {
- return r.toggleGuestsSelector("open")
- })("keydown", function (a) {
- return r.onEnter(a)
- }),
- L(),
- x(7, "label", 7),
- De(8, "span", 8),
- De(9, "span", 9),
- x(10, "span", 10),
- Mt(
- 11,
- "@ViewBag.BookingWidgetLabels.BookingWidgetGuestCountLabel"
- ),
- L(),
- L(),
- L(),
- x(12, "div", 11),
- x(13, "div", 12),
- x(14, "label", 13),
- De(15, "span", 8),
- Mt(16, ": \xa0 "),
- L(),
- x(17, "div", 14),
- x(18, "select", 15),
- Ue("ngModelChange", function (a) {
- return (r.roomCount = a)
- })("change", function () {
- return r.updateRooms()
- }),
- x(19, "option", 16),
- Mt(20, "1"),
- L(),
- x(21, "option", 17),
- Mt(22, "2"),
- L(),
- x(23, "option", 18),
- Mt(24, "3"),
- L(),
- x(25, "option", 19),
- Mt(26, "4"),
- L(),
- L(),
- L(),
- Ze(27, qI, 3, 2, "span", 20),
- L(),
- x(28, "div", 21),
- Ze(29, eA, 11, 6, "div", 22),
- L(),
- x(30, "div", 23),
- x(31, "a", 24),
- Ue("click", function (a) {
- return r.toggleGuestsSelector("close", a)
- }),
- De(32, "span", 25),
- L(),
- L(),
- L(),
- L()),
- 2 & t &&
- (z(5),
- H("innerHTML", r.guestText, Xe),
- z(3),
- H("innerHTML", r.guestSelector.label, Xe),
- z(1),
- H(
- "innerHTML",
- r.guestSelector.bookingInnerWidgetguestsLabel,
- Xe
- ),
- z(3),
- H("hidden", !r.isOpen),
- z(3),
- H("innerHTML", r.guestSelector.roomCountLabel, Xe),
- z(3),
- H("ngModel", r.roomCount),
- z(9),
- H("ngIf", (r.voucher || r.redemption) && r.roomCount > 1),
- z(2),
- H("ngForOf", r.guestData.rooms),
- z(3),
- H("innerHTML", r.guestSelector.doneButtonLabel, Xe))
- },
- directives: [Gu, es, to, Zy, $y, Qa, _f, UI],
- encapsulation: 2,
- })),
- e
- )
- })(),
- nA = ["bookingCodeInput"],
- rA = ["root"],
- iA = ["widgetSearchComp"],
- aA = ["datePickerComp"],
- oA = ["guestSelectionComp"],
- sA = function (n) {
- return {
- "widget-search-hotelPage": n,
- }
- }
- function uA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "widget-search", 9, 10),
- Ue("dataChanged", function () {
- return Dt(t), pe().bookingDataChanged()
- })("changed", function (a) {
- return Dt(t), pe().reValidateBookingWidget(a, "widget-search")
- }),
- L()
- }
- if (2 & e) {
- var r = pe()
- H("ngClass", $a(2, sA, r.hotelPage))("hotelPage", r.hotelPage)
- }
- }
- function lA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 11),
- Er(),
- x(1, "svg", 12),
- De(2, "use", 13),
- L(),
- ji(),
- x(3, "date-picker", 14, 15),
- Ue("dataChanged", function () {
- return Dt(t), pe().bookingDataChanged()
- }),
- L(),
- x(5, "label", 16),
- De(6, "span", 17),
- x(7, "span", 18),
- Mt(8, "@ViewBag.BookingWidgetLabels.BookingWidgetFromLabel"),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe()
- z(6), H("innerHTML", r.bookingWidgetLabels.datepicker.label, Xe)
- }
- }
- function cA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "guest-selection", 19, 20),
- Ue("dataChanged", function () {
- return Dt(t), pe().bookingDataChanged()
- })("changed", function (a) {
- return Dt(t), pe().reValidateBookingWidget(a, "guest-selection")
- }),
- L()
- }
- if (2 & e) {
- var r = pe()
- H("redemption", r.bookingData.redemption)(
- "voucherBookingCode",
- r.bookingData.bookingCode.isVoucher
- )
- }
- }
- function fA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "button", 27),
- Ue("click", function () {
- return Dt(t), pe(2).toggleBookingCode(!0)
- }),
- x(1, "span", 28),
- Er(),
- x(2, "svg", 29),
- x(3, "title"),
- Mt(4, "Check"),
- L(),
- De(5, "desc"),
- x(6, "g", 30),
- x(7, "g", 31),
- De(8, "path", 32),
- L(),
- L(),
- L(),
- L(),
- ji(),
- De(9, "span", 33),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- z(9), H("innerHTML", r.bookingWidgetLabels.offerCodeAppliedLabel, Xe)
- }
- }
- function dA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div"),
- x(1, "button", 21),
- Ue("click", function () {
- return Dt(t), pe().toggleBookingCode(!0)
- }),
- x(2, "span", 22),
- De(3, "span", 17),
- De(4, "span", 17),
- De(5, "span", 17),
- De(6, "span", 17),
- L(),
- x(7, "span", 23),
- x(8, "span"),
- Mt(9, "@ViewBag.BookingWidgetLabels.BookingWidgetBookingCodeLabel"),
- L(),
- Mt(10, ", "),
- x(11, "span"),
- Mt(12, "@ViewBag.BookingWidgetLabels.BookingWidgetBonusCheckLabel"),
- L(),
- x(13, "span"),
- Mt(14, "@ViewBag.BookingWidgetLabels.BookingWidgetOrLabel"),
- L(),
- x(15, "span"),
- Mt(16, "@ViewBag.BookingWidgetLabels.BookingWidgetRedemptionLabel"),
- L(),
- L(),
- x(17, "span", 24),
- De(18, "img", 25),
- L(),
- L(),
- Ze(19, fA, 10, 1, "button", 26),
- L()
- }
- if (2 & e) {
- var r = pe()
- Pc(
- "booking-widget-options-toggle ",
- r.showBookingOptions ? "booking-widget-options--shown" : "",
- " ",
- !r.showBookingOptions && r.forceShowOption
- ? "booking-widget-options--special"
- : "",
- ""
- ),
- z(1),
- Wi("tabindex", r.showBookingOptions ? -1 : 0),
- z(2),
- H(
- "innerHTML",
- r.bookingWidgetLabels.codeRewardsNights.desktop[0],
- Xe
- ),
- z(1),
- H(
- "innerHTML",
- r.bookingWidgetLabels.codeRewardsNights.desktop[1],
- Xe
- ),
- z(1),
- H(
- "innerHTML",
- r.bookingWidgetLabels.codeRewardsNights.desktop[2],
- Xe
- ),
- z(1),
- H(
- "innerHTML",
- r.bookingWidgetLabels.codeRewardsNights.desktop[3],
- Xe
- ),
- z(13),
- H("ngIf", !r.hideOffers)
- }
- }
- function hA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div"),
- x(1, "button", 34),
- Ue("click", function (a) {
- return Dt(t), pe().onSubmitBookingWidget(a)
- }),
- De(2, "span", 17),
- x(3, "span", 18),
- Mt(4, "@ViewBag.BookingWidgetLabels.BookingWidgetBookButtonLabel"),
- L(),
- x(5, "span", 35),
- De(6, "span"),
- De(7, "span"),
- De(8, "span"),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe()
- ;(function jp(e, n, t) {
- Ir(nr, qr, Aa(ee(), e, n, t), !0)
- })(
- "booking-widget__submit visible-medium-up-block ",
- r.modifyDate ? "full-width" : "hidden",
- ""
- ),
- z(1),
- H("disabled", r.submitForm),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.buttonLabel, Xe),
- z(3),
- H("hidden", !r.submitForm)
- }
- }
- function vA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "button", 39),
- Ue("click", function () {
- return Dt(t), pe(3).toggleBookingCode()
- }),
- x(1, "span", 28),
- De(2, "img", 40),
- De(3, "img", 41),
- L(),
- De(4, "span", 42),
- De(5, "span", 33),
- x(6, "span", 23),
- Mt(7, "@Texts.CodesRewardsNights"),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe(3)
- z(4),
- H(
- "innerHTML",
- r.bookingWidgetLabels.multiDestinationBookingCodeLabel,
- Xe
- ),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.codeRewardsNights.mobile, Xe)
- }
- }
- function pA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div"),
- Ze(1, vA, 8, 2, "button", 37),
- x(2, "button", 38),
- Ue("click", function (a) {
- return Dt(t), pe(2).onSubmitBookingWidget(a)
- }),
- De(3, "span", 17),
- x(4, "span", 18),
- Mt(5, "@ViewBag.BookingWidgetLabels.BookingWidgetBookButtonLabel"),
- L(),
- x(6, "span", 35),
- De(7, "span"),
- De(8, "span"),
- De(9, "span"),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- Pc(
- "booking-widget-options-toggle ",
- r.showBookingOptions ? "booking-widget-options--shown" : "",
- " ",
- !r.showBookingOptions && r.forceShowOption
- ? "booking-widget-options--special"
- : "",
- ""
- ),
- z(1),
- H("ngIf", r.showBookingOptions || !r.forceShowOption),
- z(1),
- H("disabled", r.submitForm),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.buttonLabel, Xe),
- z(3),
- H("hidden", !r.submitForm)
- }
- }
- function gA(e, n) {
- if (
- (1 & e && (x(0, "div", 36), Ze(1, pA, 10, 8, "div", 5), L()), 2 & e)
- ) {
- var t = pe()
- z(1), H("ngIf", !t.modifyDate || !t.hotelPage)
- }
- }
- function mA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "span", 70),
- Ue("click", function () {
- return Dt(t), pe(3).clearCode()
- }),
- Er(),
- x(1, "svg", 71),
- De(2, "use", 72),
- L(),
- L()
- }
- }
- function yA(e, n) {
- 1 & e && De(0, "span", 17),
- 2 & e &&
- H("innerHTML", pe(4).bookingWidgetLabels.bookingCode.errorMsg, Xe)
- }
- function _A(e, n) {
- 1 & e && De(0, "span", 17),
- 2 & e &&
- H(
- "innerHTML",
- pe(4).bookingWidgetLabels.bookingCode.errorMsgMultiroomVoucher,
- Xe
- )
- }
- function DA(e, n) {
- if (
- (1 & e &&
- (x(0, "div", 73),
- Ze(1, yA, 1, 1, "span", 74),
- Ze(2, _A, 1, 1, "span", 74),
- L()),
- 2 & e)
- ) {
- var t = pe(3)
- z(1),
- H(
- "ngIf",
- !t.bookingData.bookingCode.valid &&
- !t.bookingData.bookingCode.isVoucher
- ),
- z(1),
- H(
- "ngIf",
- !t.bookingData.bookingCode.valid &&
- t.bookingData.bookingCode.isVoucher
- )
- }
- }
- var bA = function (n) {
- return {
- "ng-empty": n,
- }
- }
- function CA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 50),
- x(1, "div", 51),
- Er(),
- x(2, "svg", 52),
- x(3, "title"),
- Mt(4, "tag"),
- L(),
- x(5, "g", 53),
- x(6, "g", 54),
- x(7, "g", 55),
- De(8, "rect", 56),
- De(9, "path", 57),
- L(),
- L(),
- L(),
- L(),
- ji(),
- x(10, "input", 58, 59),
- Ue("input", function (a) {
- return Dt(t), pe(2).resetOptions(a, "bookingCode")
- })("ngModelChange", function (a) {
- return Dt(t), (pe(2).bookingData.bookingCode.value = a)
- }),
- L(),
- Ze(12, mA, 3, 0, "span", 60),
- x(13, "label", 61),
- De(14, "span", 17),
- x(15, "span", 62),
- De(16, "a", 63),
- L(),
- L(),
- x(17, "span", 64),
- De(18, "a", 63),
- L(),
- Ze(19, DA, 3, 2, "div", 65),
- L(),
- x(20, "label", 66),
- Ue("click", function (a) {
- return Dt(t), pe(2).resetOptions(a, "bookingCode")
- }),
- x(21, "input", 67),
- Ue("ngModelChange", function (a) {
- return Dt(t), (pe(2).bookingData.bookingCode.remember = a)
- }),
- L(),
- De(22, "span", 68),
- L(),
- De(23, "div", 69),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- z(10),
- H("ngModel", r.bookingData.bookingCode.value)(
- "ngClass",
- $a(8, bA, !r.bookingData.bookingCode.value)
- ),
- z(2),
- H("ngIf", r.bookingData.bookingCode.value),
- z(2),
- H("innerHTML", r.bookingWidgetLabels.bookingCode.label, Xe),
- z(5),
- H("ngIf", !r.bookingData.bookingCode.valid),
- z(2),
- H("ngModel", r.bookingData.bookingCode.remember),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.bookingCode.rememberLabel, Xe),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.bookingCode.tooltip, Xe)
- }
- }
- function EA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 75),
- x(1, "label", 76),
- Ue("click", function (a) {
- return Dt(t), pe(2).resetOptions(a, "voucher")
- }),
- x(2, "input", 77),
- Ue("ngModelChange", function (a) {
- return Dt(t), (pe(2).bookingData.voucher = a)
- }),
- L(),
- De(3, "span", 68),
- L(),
- x(4, "div", 78),
- De(5, "a", 79),
- De(6, "div", 80),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- z(2),
- H("ngModel", r.bookingData.voucher),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.voucher.label, Xe),
- z(3),
- H("innerHTML", r.bookingWidgetLabels.voucher.tooltip, Xe)
- }
- }
- function kA(e, n) {
- if ((1 & e && (x(0, "div", 73), De(1, "span", 17), L()), 2 & e)) {
- var t = pe(3)
- z(1), H("innerHTML", t.bookingWidgetLabels.redemption.errorMsg, Xe)
- }
- }
- function wA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 81),
- x(1, "label", 82),
- Ue("click", function (a) {
- return Dt(t), pe(2).resetOptions(a, "redemption")
- }),
- x(2, "input", 83),
- Ue("ngModelChange", function (a) {
- return Dt(t), (pe(2).bookingData.redemption = a)
- }),
- L(),
- De(3, "span", 68),
- L(),
- x(4, "div", 78),
- De(5, "a", 84),
- De(6, "div", 85),
- L(),
- Ze(7, kA, 2, 1, "div", 65),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- z(2),
- H("ngModel", r.bookingData.redemption),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.redemption.label, Xe),
- z(3),
- H("innerHTML", r.bookingWidgetLabels.redemption.tooltip, Xe),
- z(1),
- H(
- "ngIf",
- r.bookingWidgetLabels.redemption.errorMsg &&
- r.bookingData.redemption &&
- r.bookingData.roomCount > 1
- )
- }
- }
- function SA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "button", 86),
- Ue("click", function () {
- return Dt(t), pe(2).toggleBookingCode()
- }),
- x(1, "span", 28),
- De(2, "img", 87),
- L(),
- De(3, "span", 88),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- z(3),
- H("innerHTML", r.bookingWidgetLabels.codeRewardsNights.mobile, Xe)
- }
- }
- function TA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "button", 89),
- Ue("click", function (a) {
- return Dt(t), pe(2).onSubmitBookingWidget(a)
- }),
- De(1, "span", 17),
- x(2, "span", 35),
- De(3, "span"),
- De(4, "span"),
- De(5, "span"),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe(2)
- H("disabled", r.submitForm),
- z(1),
- H("innerHTML", r.bookingWidgetLabels.buttonLabel, Xe),
- z(1),
- H("hidden", !r.submitForm)
- }
- }
- var MA = function (n) {
- return {
- "booking-widget-collapsed": n,
- }
- }
- function IA(e, n) {
- if (
- (1 & e &&
- (x(0, "div", 43),
- Ze(1, CA, 24, 10, "div", 44),
- Ze(2, EA, 7, 3, "div", 45),
- Ze(3, wA, 8, 4, "div", 46),
- x(4, "div", 47),
- Ze(5, SA, 4, 1, "button", 48),
- Ze(6, TA, 6, 3, "button", 49),
- L(),
- L()),
- 2 & e)
- ) {
- var t = pe()
- H(
- "ngClass",
- $a(6, MA, !t.showBookingOptions && null !== t.forceShowOption)
- ),
- z(1),
- H(
- "ngIf",
- t.showBookingOptions || "bookingCode" == t.forceShowOption
- ),
- z(1),
- H("ngIf", t.showBookingOptions || "voucher" == t.forceShowOption),
- z(1),
- H(
- "ngIf",
- t.showBookingOptions || "redemption" == t.forceShowOption
- ),
- z(2),
- H("ngIf", !t.showBookingOptions && t.forceShowOption),
- z(1),
- H(
- "ngIf",
- t.showBookingOptions ||
- t.forceShowOption ||
- t.bookingData.bookingCode.value ||
- t.bookingData.voucher ||
- t.bookingData.redemption
- )
- }
- }
- function AA(e, n) {
- if (1 & e) {
- var t = qt()
- x(0, "div", 90),
- x(1, "button", 91),
- Ue("click", function () {
- return Dt(t), pe().toggleBookingCode(!1)
- }),
- De(2, "span", 17),
- x(3, "span", 28),
- De(4, "img", 25),
- L(),
- L(),
- L()
- }
- if (2 & e) {
- var r = pe()
- z(2), H("innerHTML", r.bookingWidgetLabels.showLessLabel, Xe)
- }
- }
- var OA = (function () {
- var e = (function () {
- function n(t, r) {
- h(this, n),
- (this.elementRef = t),
- (this.bookingService = r),
- (this.bookingWidgetLabels = {
- bookingCode: {
- label: "",
- tooltip: "",
- rememberLabel: "",
- errorMsg: "",
- },
- codeRewardsNights: {
- mobile: "",
- desktop: ["", "", "", ""],
- },
- datepicker: {
- label: "",
- },
- guestSelector: {
- label: "",
- },
- redemption: {
- errorMsg: "",
- label: "",
- tooltip: "",
- },
- voucher: {
- label: "",
- tooltip: "",
- },
- }),
- (this.bookingData = {
- bookingCode: {
- value: "",
- remember: !1,
- valid: !0,
- isVoucher: !1,
- },
- roomCount: 1,
- redemption: !1,
- voucher: !1,
- validSearch: !1,
- validGuest: !1,
- }),
- (this.showBookingOptions = !1),
- (this.validForm = !1),
- (this.submitForm = !1),
- (this.modifyDate = !1),
- (this.hotelPage = !1),
- (this.showGuestSelection = !0),
- (this.hideOffers = !0),
- "undefined" != typeof document &&
- document.body.classList.add("ng-ready"),
- window.Scandic || (window.Scandic = {}),
- document.querySelector("#bw-labels") &&
- (window.Scandic.bookingWidgetLabels = JSON.parse(
- document.querySelector("#bw-labels").textContent.toString()
- )),
- document.querySelector("#bw-data") &&
- (window.Scandic.bookingWidgetData = JSON.parse(
- document.querySelector("#bw-data").textContent.toString()
- )),
- (this.modifyDate =
- this.elementRef.nativeElement.getAttribute("modify-date") ||
- !1),
- (this.hotelPage =
- this.elementRef.nativeElement.getAttribute("hotel-page") ||
- !1)
- }
- return (
- f(n, [
- {
- key: "ngOnInit",
- value: function () {
- if ("undefined" != typeof window) {
- ;(this.bookingWidgetLabels =
- window.Scandic.bookingWidgetLabels),
- this.bookingService.getSearchData("options") &&
- (this.bookingData =
- this.bookingService.getSearchData("options")),
- this.bookingService.getSavedBookingCode() &&
- (this.bookingData.bookingCode =
- this.bookingService.getSavedBookingCode())
- var r = window.Scandic.bookingWidgetData
- r &&
- (r.bookingCode.value
- ? (this.resetOptions(null, "bookingCode", "init"),
- (this.bookingData.bookingCode.value =
- r.bookingCode.value))
- : r.redemption
- ? (this.resetOptions(null, "redemption", "init"),
- (this.bookingData.redemption = !!r.redemption))
- : r.voucher &&
- (this.resetOptions(null, "voucher", "init"),
- (this.bookingData.voucher = !!r.voucher)))
- var i = decodeURIComponent(
- window.location.href
- ).toLowerCase()
- ;((-1 != i.indexOf("fromdate") &&
- -1 != i.indexOf("todate")) ||
- -1 != i.indexOf("room[0].adults")) &&
- ((this.bookingData.bookingCode.value =
- r.bookingCode.value),
- (this.bookingData.redemption = !!r.redemption),
- (this.bookingData.voucher = !!r.voucher)),
- -1 != i.indexOf("?hotel") &&
- -1 == i.indexOf("fromdate") &&
- -1 == i.indexOf("room[0].adults") &&
- (!this.bookingData.bookingCode.remember ||
- "/" !== window.location.pathname) &&
- ((this.bookingData.bookingCode = {
- value: "",
- remember: !1,
- valid: !0,
- isVoucher: !1,
- }),
- (this.bookingData.redemption = !1),
- (this.bookingData.voucher = !1)),
- ("fg2" ==
- this.bookingData.bookingCode.value.toLowerCase() ||
- "fg1" ==
- this.bookingData.bookingCode.value.toLowerCase() ||
- "xxx" ==
- this.bookingData.bookingCode.value.toLowerCase()) &&
- (this.bookingData.bookingCode.value = ""),
- this.updateForceShowOption(),
- this.validateBookingCode(),
- "performance" in window &&
- void 0 !== window.performance.mark &&
- window.performance.mark("bookingWidgetReady"),
- -1 != window.datalayer[0].pagetype.indexOf("offer") &&
- -1 ==
- window.datalayer[0].pagetype.indexOf(
- "hoteloffers"
- ) &&
- this.stickyBW(),
- window.addEventListener(
- "pageshow",
- function (a) {
- ;(a.persisted ||
- (void 0 !== window.performance &&
- 2 === window.performance.navigation.type)) &&
- this.submitForm &&
- location.reload()
- }.bind(this)
- )
- }
- },
- },
- {
- key: "clearCode",
- value: function () {
- ;(this.bookingData.bookingCode.value = ""),
- this.bookingCodeEle.nativeElement.focus(),
- this.validateBookingCode(),
- this.reValidateBookingWidget(null, "bookingCode"),
- this.bookingDataChanged()
- },
- },
- {
- key: "updateForceShowOption",
- value: function () {
- this.forceShowOption = this.bookingData.bookingCode.value
- ? "bookingCode"
- : this.bookingData.redemption
- ? "redemption"
- : this.bookingData.voucher
- ? "voucher"
- : null
- },
- },
- {
- key: "toggleBookingCode",
- value: function (r, i) {
- ;(i = !!i),
- this.updateForceShowOption(),
- (this.showBookingOptions =
- null != r || null != r
- ? !!r
- : !this.showBookingOptions),
- !i &&
- this.showBookingOptions &&
- !this.bookingData.redemption &&
- !this.bookingData.voucher &&
- setTimeout(
- function () {
- this.bookingCodeEle.nativeElement.focus()
- }.bind(this),
- 100
- )
- },
- },
- {
- key: "validateBookingCode",
- value: function () {
- if (
- ((this.bookingData.bookingCode.isVoucher = !1),
- (this.hideOffers = !this.bookingData.bookingCode.value),
- this.bookingData.bookingCode.value)
- )
- if (
- "xxx" !==
- this.bookingData.bookingCode.value.toLowerCase()
- ) {
- var r = this.bookingData.bookingCode.value,
- i = !0
- ;/^D/i.test(r)
- ? (i = /^D\d*$/i.test(r) || /^DSH[0-9a-z]*$/i.test(r))
- : /^L/i.test(r)
- ? (i =
- /^L\d*$/i.test(r) || /^LH[0-9a-z]*$/i.test(r))
- : /^B/i.test(r)
- ? (i = /^B[a-z]{3}\d{6}/i.test(r))
- : /^VO/i.test(r)
- ? ((i = /^VO[0-9a-z]*$/i.test(r)),
- (this.bookingData.bookingCode.isVoucher = !0))
- : (i = /^[0-9a-z]*$/i.test(r)),
- (this.bookingData.bookingCode.valid = i)
- } else this.bookingData.bookingCode.valid = !1
- else this.bookingData.bookingCode.valid = !0
- },
- },
- {
- key: "resetOptions",
- value: function (r, i, a) {
- ;(r && "keyup" == r.type && 9 == r.which) ||
- ("bookingCode" != i &&
- ((this.bookingData.bookingCode.value = ""),
- (this.bookingData.bookingCode.isVoucher = !1),
- (this.bookingData.bookingCode.valid = !0),
- (this.bookingData.bookingCode.remember = !1)),
- (this.bookingData.redemption =
- "redemption" == i && this.bookingData.redemption),
- (this.bookingData.voucher =
- "voucher" == i && this.bookingData.voucher),
- "redemption" == i
- ? this.reValidateBookingWidget(null, "redemption")
- : "bookingCode" == i
- ? (this.validateBookingCode(),
- this.reValidateBookingWidget(null, "bookingCode"))
- : (this.bookingData.validGuest = !0),
- a || this.bookingDataChanged(),
- (this.hideOffers = !this.bookingData.bookingCode.value))
- },
- },
- {
- key: "reValidateBookingWidget",
- value: function (r, i) {
- "widget-search" == i
- ? (this.bookingData.validSearch = r.valid)
- : "guest-selection" == i
- ? ((this.bookingData.validGuest = r.valid),
- (this.bookingData.roomCount = r.roomCount),
- this.bookingData.bookingCode.isVoucher &&
- (this.validateBookingCode(),
- this.reValidateBookingWidget(null, "bookingCode")))
- : "redemption" == i &&
- !this.bookingData.redemption &&
- this.bookingData.roomCount > 1
- ? (this.bookingData.validGuest = !1)
- : "redemption" == i && this.bookingData.redemption
- ? (this.bookingData.validGuest = !0)
- : "bookingCode" == i &&
- this.bookingData.bookingCode.isVoucher &&
- this.bookingData.roomCount > 1
- ? ((this.bookingData.validGuest = !1),
- (this.bookingData.bookingCode.valid = !1))
- : "bookingCode" == i &&
- !this.bookingData.bookingCode.isVoucher &&
- (this.bookingData.validGuest = !0)
- },
- },
- {
- key: "validateBookingWidget",
- value: function () {
- ;(this.validForm = !!(
- this.bookingData.validSearch &&
- this.bookingData.validGuest &&
- this.bookingData.bookingCode.valid
- )),
- this.bookingData.validSearch
- ? this.bookingData.bookingCode.valid
- ? !this.bookingData.validGuest &&
- document.querySelector(".child-age-invalid") &&
- document.querySelector(".child-age-invalid").focus()
- : this.bookingCodeEle.nativeElement.focus()
- : ((this.widgetSearchComp.isEmpty =
- !this.widgetSearchComp.noMatch),
- document
- .getElementById("widget-search__text")
- .focus(),
- (-1 != navigator.userAgent.indexOf("iPhone") ||
- -1 != navigator.userAgent.indexOf("iPad")) &&
- window.scrollTo(0, 0),
- document
- .getElementById("widget-search__text")
- .dispatchEvent(new Event("keyup")))
- },
- },
- {
- key: "onSubmitBookingWidget",
- value: function (r) {
- return this.modifyDate
- ? ((this.submitForm = !0),
- void setTimeout(
- function () {
- this.rootEle.nativeElement.parentElement.parentElement.submit()
- }.bind(this),
- 300
- ))
- : (setTimeout(
- function () {
- this.validateBookingWidget(),
- this.validForm &&
- ((this.submitForm = !0),
- setTimeout(
- function () {
- this.widgetSearchComp.saveSearchData(),
- this.datePickerComp.saveSearchData(),
- this.guestSelectionComp.saveSearchData(),
- this.saveSearchData(),
- this.rootEle.nativeElement.parentElement.parentElement.submit()
- }.bind(this),
- 300
- ))
- }.bind(this),
- 300
- ),
- this.validForm)
- },
- },
- {
- key: "saveSearchData",
- value: function () {
- this.bookingData.bookingCode.value ||
- (this.bookingData.bookingCode.remember = !1),
- this.bookingService.saveSearchData(
- this.bookingData,
- "options"
- ),
- this.bookingService.setSavedBookingCode(
- !!this.bookingData.bookingCode.remember &&
- this.bookingData.bookingCode
- )
- },
- },
- {
- key: "bookingDataChanged",
- value: function () {
- Array.from(
- document.querySelectorAll(".booking-widget__btn"),
- function (r) {
- r.classList.add("btn-booking-widget-alert")
- }
- ),
- Array.from(
- document.querySelectorAll(
- ".booking__selection a, .booking__selection input, .booking__selection button"
- ),
- function (r) {
- r.removeAttribute("href"),
- r.setAttribute("disabled", "disabled")
- }
- ),
- Array.from(
- document.querySelectorAll(
- "\n .heading-with-filter-controls__inner-container h1, .filter-and-distance-controls select, #sort-order[data-disable-on-widget-update]\n "
- ),
- function (r) {
- r.setAttribute(
- "style",
- "opacity: 0.45;cursor: not-allowed"
- )
- }
- ),
- Array.from(
- document.querySelectorAll(
- "\n .filter-and-distance-controls a,\n .filter-and-distance-controls button,\n .filter-and-distance-controls input,\n .filter-and-distance-controls select,\n .map-destinations-list__destination a,\n .map-destinations-list__destination button,\n .map-destinations-list__destination input,\n .map-destinations-list__destination select,\n .map-destinations-list__destination [tabindex],\n #sort-order[data-disable-on-widget-update]\n "
- ),
- function (r) {
- r.setAttribute("tabindex", -1), (r.disabled = !0)
- }
- ),
- Array.from(
- document.querySelectorAll(
- "[data-disable-on-widget-update]"
- ),
- function (r) {
- r.classList.add("is-disabled-after-update")
- }
- )
- },
- },
- {
- key: "stickyBW",
- value: function () {
- if (!(window.innerWidth < 940)) {
- var r = document.querySelector(
- ".booking-widget-wrapper"
- ).offsetTop,
- i = document.querySelector(".booking-widget-wrapper"),
- a = !1,
- o = this,
- s = function () {
- i.classList.contains("l-booking-widget--compact") &&
- (i.classList.remove("l-booking-widget--compact"),
- i.classList.add("l-booking-widget--expanded"),
- o.toggleBookingCode(!0, !0))
- },
- u = function (d) {
- !i.contains(d.target) &&
- i.classList.contains("l-booking-widget--sticky") &&
- (i.classList.add("l-booking-widget--compact"),
- i.classList.remove("l-booking-widget--expanded"),
- o.toggleBookingCode(!1))
- }
- window.addEventListener("scroll", function () {
- window.pageYOffset > r && !a
- ? ((a = !0),
- i.classList.add("l-booking-widget--sticky"),
- i.classList.contains(
- "l-booking-widget--expanded"
- ) || i.classList.add("l-booking-widget--compact"),
- document.querySelector(".hero-fixed .hero") ||
- (document.querySelector(
- "main.l-sections-wrapper"
- ).style.paddingTop = i.offsetHeight + "px"),
- i.addEventListener("click", s),
- document.addEventListener("click", u, !0))
- : window.pageYOffset <= r &&
- a &&
- ((a = !1),
- document.querySelector(".hero-fixed .hero") ||
- (document.querySelector(
- "main.l-sections-wrapper"
- ).style.paddingTop = "0"),
- i.classList.remove("l-booking-widget--sticky"),
- i.removeEventListener("click", s),
- document.removeEventListener("click", u, !0))
- })
- }
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(de(gr), de(Zu))
- }),
- (e.ɵcmp = Ni({
- type: e,
- selectors: [["booking-widget"]],
- viewQuery: function (t, r) {
- var i
- 1 & t &&
- (Yr(nA, 5), Yr(rA, 5), Yr(iA, 5), Yr(aA, 5), Yr(oA, 5)),
- 2 & t &&
- (Kr((i = Jr())) && (r.bookingCodeEle = i.first),
- Kr((i = Jr())) && (r.rootEle = i.first),
- Kr((i = Jr())) && (r.widgetSearchComp = i.first),
- Kr((i = Jr())) && (r.datePickerComp = i.first),
- Kr((i = Jr())) && (r.guestSelectionComp = i.first))
- },
- decls: 10,
- vars: 9,
- consts: [
- [3, "ngClass"],
- ["root", ""],
- [
- 3,
- "ngClass",
- "hotelPage",
- "dataChanged",
- "changed",
- 4,
- "ngIf",
- ],
- ["class", "date-selector date-range input-group", 4, "ngIf"],
- [
- 3,
- "redemption",
- "voucherBookingCode",
- "dataChanged",
- "changed",
- 4,
- "ngIf",
- ],
- [3, "class", 4, "ngIf"],
- [
- "class",
- "booking-widget__multi-destination hidden-medium-up",
- 4,
- "ngIf",
- ],
- ["class", "booking-widget-options", 3, "ngClass", 4, "ngIf"],
- [
- "class",
- "text-center booking-widget-options__show-less hidden visible-medium-up-block",
- 4,
- "ngIf",
- ],
- [3, "ngClass", "hotelPage", "dataChanged", "changed"],
- ["widgetSearchComp", ""],
- [1, "date-selector", "date-range", "input-group"],
- [
- "viewBox",
- "0 0 16 15",
- "focusable",
- "false",
- 1,
- "icon",
- "icon--xs",
- "icon--white",
- "icon-calendar",
- ],
- [
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 0,
- "xlink",
- "href",
- "/_static/img/icons/shared/calendar.svg#Web---Calendar",
- ],
- ["range", "true", 3, "dataChanged"],
- ["datePickerComp", ""],
- ["for", "date-picker"],
- [3, "innerHTML"],
- [1, "hide-on-load"],
- [
- 3,
- "redemption",
- "voucherBookingCode",
- "dataChanged",
- "changed",
- ],
- ["guestSelectionComp", ""],
- [
- "type",
- "button",
- "data-hj-ignore-attributes",
- "",
- 1,
- "u-no-button-style",
- "visible-medium-up-flex",
- 3,
- "tabindex",
- "click",
- ],
- [1, "booking-widget-options-toggle__text"],
- [1, "booking-widget-options-toggle__text", "hide-on-load"],
- [1, "booking-widget-options-toggle__icon", "icon-show-options"],
- [
- "src",
- "/_static/img/icons/arrows/downInCircle.svg",
- "alt",
- "Show code options icon",
- 1,
- "icon",
- "icon--s",
- ],
- [
- "type",
- "button",
- "class",
- "offers-toggle u-no-button-style",
- 3,
- "click",
- 4,
- "ngIf",
- ],
- [
- "type",
- "button",
- 1,
- "offers-toggle",
- "u-no-button-style",
- 3,
- "click",
- ],
- [1, "booking-widget-options-toggle__icon"],
- [
- "xmlns",
- "http://www.w3.org/2000/svg",
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- "viewBox",
- "0 -10 165 140",
- "version",
- "1.1",
- "x",
- "0px",
- "y",
- "0px",
- ],
- [
- "stroke",
- "none",
- "stroke-width",
- "1",
- "fill",
- "none",
- "fill-rule",
- "evenodd",
- ],
- [
- "transform",
- "translate(-5443.000000, -2493.000000)",
- "fill",
- "#FFFFFF",
- ],
- [
- "d",
- "M5605.7394,2504.894 L5594.6284,2494.86 C5592.9494,2493.346 5590.3644,2493.478 5588.8484,2495.155 L5504.3434,2588.723 L5460.4664,2549.096 C5458.7924,2547.583 5456.2034,2547.713 5454.6864,2549.391 L5444.6514,2560.501 C5443.9244,2561.306 5443.5464,2562.368 5443.6024,2563.452 C5443.6574,2564.536 5444.1404,2565.553 5444.9464,2566.281 L5502.8844,2618.607 C5503.4394,2619.108 5504.1344,2619.424 5504.8684,2619.553 C5505.1684,2619.623 5505.4764,2619.658 5505.7884,2619.658 C5505.8554,2619.658 5505.9234,2619.657 5505.9904,2619.653 C5507.0764,2619.6 5508.0974,2619.116 5508.8254,2618.309 L5606.0344,2510.674 C5606.7614,2509.869 5607.1394,2508.807 5607.0834,2507.723 C5607.0284,2506.64 5606.5454,2505.622 5605.7394,2504.894",
- ],
- [1, "booking-widget-options-toggle__text", 3, "innerHTML"],
- [
- "type",
- "submit",
- "data-hj-ignore-attributes",
- "",
- 1,
- "btn",
- "booking-widget__btn",
- "u-no-button-style",
- 3,
- "disabled",
- "click",
- ],
- [1, "loader", "loader--right", 3, "hidden"],
- [1, "booking-widget__multi-destination", "hidden-medium-up"],
- [
- "type",
- "button",
- "data-hj-ignore-attributes",
- "",
- "class",
- "u-no-button-style hidden-medium-up",
- 3,
- "click",
- 4,
- "ngIf",
- ],
- [
- "type",
- "submit",
- "data-hj-ignore-attributes",
- "",
- 1,
- "btn",
- "booking-widget__btn",
- "u-no-button-style",
- "hidden-medium-up",
- 3,
- "disabled",
- "click",
- ],
- [
- "type",
- "button",
- "data-hj-ignore-attributes",
- "",
- 1,
- "u-no-button-style",
- "hidden-medium-up",
- 3,
- "click",
- ],
- [
- "src",
- "/_static/img/icons/shared/addCircle.svg",
- "alt",
- "Show code options icon",
- 1,
- "icon",
- "icon--s",
- "icon-show-options",
- ],
- [
- "src",
- "/_static/img/icons/shared/removeCircle.svg",
- "alt",
- "Hide code options icon",
- 1,
- "icon",
- "icon--s",
- "icon-hide-options",
- ],
- [
- 1,
- "booking-widget-options-toggle__text",
- "hidden",
- 3,
- "innerHTML",
- ],
- [1, "booking-widget-options", 3, "ngClass"],
- ["class", "booking-code", 4, "ngIf"],
- ["class", "voucher booking-widget-options-item", 4, "ngIf"],
- [
- "class",
- "reward-night booking-widget-options-item",
- 4,
- "ngIf",
- ],
- [1, "booking-widget-options-toggle", "hidden-medium-up"],
- [
- "type",
- "button",
- "class",
- "u-no-button-style",
- 3,
- "click",
- 4,
- "ngIf",
- ],
- [
- "type",
- "submit",
- "data-hj-ignore-attributes",
- "",
- "data-js",
- "form-submit-button",
- "class",
- "btn booking-widget__btn u-no-button-style",
- 3,
- "disabled",
- "click",
- 4,
- "ngIf",
- ],
- [1, "booking-code"],
- [1, "input-group", "clearable-input"],
- [
- "width",
- "15px",
- "height",
- "15px",
- "fill",
- "#757575",
- "viewBox",
- "0 0 15 15",
- "version",
- "1.1",
- "xmlns",
- "http://www.w3.org/2000/svg",
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 1,
- "icon",
- "icon--xs",
- "icon-booking-code",
- 2,
- "z-index",
- "0",
- ],
- [
- "id",
- "UI-Desktop",
- "stroke",
- "none",
- "stroke-width",
- "1",
- "fill",
- "none",
- "fill-rule",
- "evenodd",
- ],
- [
- "id",
- "Artboard",
- "transform",
- "translate(-16.000000, -16.000000)",
- ],
- [
- "id",
- "Web---Tag",
- "transform",
- "translate(15.000000, 15.000000)",
- ],
- [
- "id",
- "Rectangle",
- "x",
- "0",
- "y",
- "0",
- "width",
- "16",
- "height",
- "16",
- ],
- [
- "d",
- "M3.6056338,4.73239437 C3.91079887,4.73239437 4.17488225,4.62089239 4.3978862,4.3978862 C4.62089239,4.17488225 4.73239437,3.91079887 4.73239437,3.6056338 C4.73239437,3.30046873 4.62089239,3.03638535 4.3978862,2.81338141 C4.17488225,2.59037521 3.91079887,2.47887324 3.6056338,2.47887324 C3.30046873,2.47887324 3.03638603,2.59037521 2.81338028,2.81338141 C2.59037454,3.03638535 2.47887324,3.30046873 2.47887324,3.6056338 C2.47887324,3.91079887 2.59037454,4.17488225 2.81338028,4.3978862 C3.03638603,4.62089239 3.30046873,4.73239437 3.6056338,4.73239437 Z M15.5774648,8.18309859 C15.8591572,8.46479099 16,8.81689915 16,9.23943662 C16,9.66197408 15.8591572,10.0140823 15.5774648,10.2957746 L10.2957746,15.5774648 C10.0140823,15.8591563 9.66197408,16 9.23943662,16 C8.81689915,16 8.46479099,15.8591563 8.18309859,15.5774648 L1.42253521,8.81690141 C1.14084365,8.53520901 1,8.18310085 1,7.76056338 L1,2.47887324 C1,2.0798107 1.14671216,1.73356845 1.44014085,1.44013972 C1.73356958,1.14671324 2.07981025,1 2.47887324,1 L7.76056338,1 C8.18310085,1 8.53520901,1.14084282 8.81690141,1.42253521 L15.5774648,8.18309859 Z",
- "id",
- "Page-1",
- "fill",
- "#757575",
- "fill-rule",
- "evenodd",
- ],
- [
- "data-hj-ignore-attributes",
- "",
- "autocomplete",
- "off",
- "spellcheck",
- "false",
- "id",
- "booking-code__text",
- "type",
- "text",
- "name",
- "bookingCode",
- 1,
- "booking-code__text",
- 3,
- "ngModel",
- "ngClass",
- "input",
- "ngModelChange",
- ],
- ["bookingCodeInput", ""],
- ["class", "clearable-input__clear", 3, "click", 4, "ngIf"],
- ["for", "booking-code__text"],
- [
- 1,
- "booking-widget-options__tooltip",
- "hidden",
- "visible-medium-up-block",
- ],
- [
- "href",
- "#mainnav-widget-booking-code-tooltip",
- "aria-describedby",
- "mainnav-widget-booking-code-tooltip",
- "role",
- "tooltip",
- "data-js-tooltip",
- "",
- "data-tooltip-open-on-focus",
- "true",
- 1,
- "icon",
- "icon--info",
- "icon--info-white",
- ],
- [1, "booking-widget-options__tooltip", "hidden-medium-up"],
- ["class", "error-text error-text--inverted", 4, "ngIf"],
- [
- "for",
- "rememberLabel",
- 1,
- "custom-checkbox-wrapper",
- 3,
- "click",
- ],
- [
- "id",
- "rememberLabel",
- "type",
- "checkbox",
- 1,
- "custom-checkbox",
- 3,
- "ngModel",
- "ngModelChange",
- ],
- [1, "custom-checkbox-label", 3, "innerHTML"],
- [
- "id",
- "mainnav-widget-booking-code-tooltip",
- 1,
- "tooltip__body",
- "hidden",
- 3,
- "innerHTML",
- ],
- [1, "clearable-input__clear", 3, "click"],
- [
- "stroke-width",
- "5",
- "viewBox",
- "0 0 32 32",
- "focusable",
- "false",
- 1,
- "icon",
- "clearable-input__clear--icon",
- "icon--xdark-gray-stroke",
- ],
- [
- 0,
- "xmlns",
- "xlink",
- "http://www.w3.org/1999/xlink",
- 0,
- "xlink",
- "href",
- "/_static/img/icons/clear-input.svg#web-close",
- ],
- [1, "error-text", "error-text--inverted"],
- [3, "innerHTML", 4, "ngIf"],
- [1, "voucher", "booking-widget-options-item"],
- [
- "for",
- "bonuscheque",
- 1,
- "custom-checkbox-wrapper",
- 3,
- "click",
- ],
- [
- "id",
- "bonuscheque",
- "type",
- "checkbox",
- "value",
- "bonuscheque",
- "name",
- "searchtype",
- 1,
- "custom-checkbox",
- 3,
- "ngModel",
- "ngModelChange",
- ],
- [1, "booking-widget-options__tooltip"],
- [
- "href",
- "#mainnav-widget-bonus-cheque-tooltip",
- "aria-describedby",
- "mainnav-widget-bonus-cheque-tooltip",
- "role",
- "tooltip",
- "data-js-tooltip",
- "",
- "data-tooltip-open-on-focus",
- "true",
- 1,
- "icon",
- "icon--info",
- "icon--info-white",
- ],
- [
- "id",
- "mainnav-widget-bonus-cheque-tooltip",
- 1,
- "tooltip__body",
- "hidden",
- 3,
- "innerHTML",
- ],
- [1, "reward-night", "booking-widget-options-item"],
- ["for", "redemption", 1, "custom-checkbox-wrapper", 3, "click"],
- [
- "id",
- "redemption",
- "type",
- "checkbox",
- "value",
- "redemption",
- "name",
- "searchtype",
- 1,
- "custom-checkbox",
- 3,
- "ngModel",
- "ngModelChange",
- ],
- [
- "href",
- "#mainnav-widget-reward-night-tooltip",
- "aria-describedby",
- "mainnav-widget-reward-night-tooltip",
- "role",
- "tooltip",
- "data-js-tooltip",
- "",
- "data-tooltip-open-on-focus",
- "true",
- 1,
- "icon",
- "icon--info",
- "icon--info-white",
- ],
- [
- "id",
- "mainnav-widget-reward-night-tooltip",
- 1,
- "tooltip__body",
- "hidden",
- 3,
- "innerHTML",
- ],
- ["type", "button", 1, "u-no-button-style", 3, "click"],
- [
- "src",
- "/_static/img/icons/shared/addCircle.svg",
- "alt",
- "Hide code options icon",
- 1,
- "icon",
- "icon--s",
- "icon-show-options",
- ],
- [
- 1,
- "booking-widget-options-toggle__text",
- "codeRewardsNightsLabel",
- 3,
- "innerHTML",
- ],
- [
- "type",
- "submit",
- "data-hj-ignore-attributes",
- "",
- "data-js",
- "form-submit-button",
- 1,
- "btn",
- "booking-widget__btn",
- "u-no-button-style",
- 3,
- "disabled",
- "click",
- ],
- [
- 1,
- "text-center",
- "booking-widget-options__show-less",
- "hidden",
- "visible-medium-up-block",
- ],
- [
- "data-hj-ignore-attributes",
- "",
- "type",
- "button",
- 1,
- "u-no-button-style",
- 3,
- "click",
- ],
- ],
- template: function (t, r) {
- 1 & t &&
- (x(0, "div", 0, 1),
- Ze(2, uA, 2, 4, "widget-search", 2),
- Ze(3, lA, 9, 1, "div", 3),
- Ze(4, cA, 2, 2, "guest-selection", 4),
- Ze(5, dA, 20, 10, "div", 5),
- Ze(6, hA, 9, 6, "div", 5),
- Ze(7, gA, 2, 1, "div", 6),
- Ze(8, IA, 7, 8, "div", 7),
- Ze(9, AA, 5, 1, "div", 8),
- L()),
- 2 & t &&
- (H(
- "ngClass",
- r.hotelPage ? "search-hotel-page" : "booking-widget"
- ),
- z(2),
- H("ngIf", !r.modifyDate),
- z(1),
- H("ngIf", !r.hotelPage),
- z(1),
- H("ngIf", !r.modifyDate && !r.hotelPage),
- z(1),
- H("ngIf", !r.modifyDate && !r.hotelPage),
- z(1),
- H("ngIf", !r.hotelPage),
- z(1),
- H("ngIf", !r.modifyDate && !r.hotelPage),
- z(1),
- H(
- "ngIf",
- !r.modifyDate &&
- !r.hotelPage &&
- (r.showBookingOptions || r.forceShowOption)
- ),
- z(1),
- H(
- "ngIf",
- (!r.modifyDate || !r.hotelPage) && r.showBookingOptions
- ))
- },
- directives: [yf, Qa, HI, kI, tA, Xa, es, to, Af],
- encapsulation: 2,
- })),
- e
- )
- })(),
- PA = (function () {
- var e = (function () {
- function n(t) {
- h(this, n),
- (this.resolver = t),
- "undefined" != typeof document &&
- document.body.classList.add("ng-ready")
- }
- return (
- f(n, [
- {
- key: "ngDoBootstrap",
- value: function (r) {
- var i = this
- ;[OA].forEach(function (a) {
- var o = i.resolver.resolveComponentFactory(a)
- document.querySelector(o.selector) && r.bootstrap(o)
- })
- },
- },
- ]),
- n
- )
- })()
- return (
- (e.ɵfac = function (t) {
- return new (t || e)(dt(Wa))
- }),
- (e.ɵmod = Lr({
- type: e,
- })),
- (e.ɵinj = $({
- providers: [],
- imports: [
- [
- XM,
- _I,
- VT.withServerTransition({
- appId: "xena-static",
- }),
- ],
- ],
- })),
- e
- )
- })()
- ;(function _S() {
- false
- })(),
- xT()
- .bootstrapModule(PA)
- .catch(function (e) {
- return console.error(e)
- })
- },
- },
- function (O) {
- O((O.s = 2699))
- },
-])
-//# sourceMappingURL=main.js.map
diff --git a/public/_static/dist/js/ng/polyfills.js b/public/_static/dist/js/ng/polyfills.js
deleted file mode 100644
index b0bf87d5e..000000000
--- a/public/_static/dist/js/ng/polyfills.js
+++ /dev/null
@@ -1,7038 +0,0 @@
-(self.webpackChunkxena_static = self.webpackChunkxena_static || []).push([[429], {
- 7125: function(F, R, h) {
- var m;
- !function(O, j, p) {
- "use strict";
- (function(i) {
- var a = {};
- function n(t) {
- if (a[t])
- return a[t].exports;
- var e = a[t] = {
- i: t,
- l: !1,
- exports: {}
- };
- return i[t].call(e.exports, e, e.exports, n),
- e.l = !0,
- e.exports
- }
- n.m = i,
- n.c = a,
- n.d = function(t, e, o) {
- n.o(t, e) || Object.defineProperty(t, e, {
- configurable: !1,
- enumerable: !0,
- get: o
- })
- }
- ,
- n.n = function(t) {
- var e = t && t.__esModule ? function() {
- return t.default
- }
- : function() {
- return t
- }
- ;
- return n.d(e, "a", e),
- e
- }
- ,
- n.o = function(t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }
- ,
- n.p = "",
- n(n.s = 129)
- }
- )([function(i, a, n) {
- var t = n(2)
- , e = n(26)
- , o = n(11)
- , r = n(12)
- , u = n(18)
- , c = "prototype"
- , f = function(l, s, v) {
- var g, y, x, P, b = l & f.F, I = l & f.G, E = l & f.P, A = l & f.B, w = I ? t : l & f.S ? t[s] || (t[s] = {}) : (t[s] || {})[c], d = I ? e : e[s] || (e[s] = {}), S = d[c] || (d[c] = {});
- for (g in I && (v = s),
- v)
- x = ((y = !b && w && w[g] !== p) ? w : v)[g],
- P = A && y ? u(x, t) : E && "function" == typeof x ? u(Function.call, x) : x,
- w && r(w, g, x, l & f.U),
- d[g] != x && o(d, g, P),
- E && S[g] != x && (S[g] = x)
- };
- t.core = e,
- f.F = 1,
- f.G = 2,
- f.S = 4,
- f.P = 8,
- f.B = 16,
- f.W = 32,
- f.U = 64,
- f.R = 128,
- i.exports = f
- }
- , function(i, a, n) {
- var t = n(4);
- i.exports = function(e) {
- if (!t(e))
- throw TypeError(e + " is not an object!");
- return e
- }
- }
- , function(i, a) {
- var n = i.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
- "number" == typeof j && (j = n)
- }
- , function(i, a) {
- i.exports = function(n) {
- try {
- return !!n()
- } catch (t) {
- return !0
- }
- }
- }
- , function(i, a) {
- i.exports = function(n) {
- return "object" == typeof n ? null !== n : "function" == typeof n
- }
- }
- , function(i, a, n) {
- var t = n(47)("wks")
- , e = n(33)
- , o = n(2).Symbol
- , r = "function" == typeof o;
- (i.exports = function(u) {
- return t[u] || (t[u] = r && o[u] || (r ? o : e)("Symbol." + u))
- }
- ).store = t
- }
- , function(i, a, n) {
- var t = n(20)
- , e = Math.min;
- i.exports = function(o) {
- return 0 < o ? e(t(o), 9007199254740991) : 0
- }
- }
- , function(i, a, n) {
- i.exports = !n(3)(function() {
- return 7 != Object.defineProperty({}, "a", {
- get: function() {
- return 7
- }
- }).a
- })
- }
- , function(i, a, n) {
- var t = n(1)
- , e = n(93)
- , o = n(22)
- , r = Object.defineProperty;
- a.f = n(7) ? Object.defineProperty : function(c, f, l) {
- if (t(c),
- f = o(f, !0),
- t(l),
- e)
- try {
- return r(c, f, l)
- } catch (s) {}
- if ("get"in l || "set"in l)
- throw TypeError("Accessors not supported!");
- return "value"in l && (c[f] = l.value),
- c
- }
- }
- , function(i, a, n) {
- var t = n(23);
- i.exports = function(e) {
- return Object(t(e))
- }
- }
- , function(i, a) {
- i.exports = function(n) {
- if ("function" != typeof n)
- throw TypeError(n + " is not a function!");
- return n
- }
- }
- , function(i, a, n) {
- var t = n(8)
- , e = n(32);
- i.exports = n(7) ? function(o, r, u) {
- return t.f(o, r, e(1, u))
- }
- : function(o, r, u) {
- return o[r] = u,
- o
- }
- }
- , function(i, a, n) {
- var t = n(2)
- , e = n(11)
- , o = n(14)
- , r = n(33)("src")
- , u = n(131)
- , c = "toString"
- , f = ("" + u).split(c);
- n(26).inspectSource = function(l) {
- return u.call(l)
- }
- ,
- (i.exports = function(l, s, v, g) {
- var y = "function" == typeof v;
- y && (o(v, "name") || e(v, "name", s)),
- l[s] !== v && (y && (o(v, r) || e(v, r, l[s] ? "" + l[s] : f.join(String(s)))),
- l === t ? l[s] = v : g ? l[s] ? l[s] = v : e(l, s, v) : (delete l[s],
- e(l, s, v)))
- }
- )(Function.prototype, c, function() {
- return "function" == typeof this && this[r] || u.call(this)
- })
- }
- , function(i, a, n) {
- var t = n(0)
- , e = n(3)
- , o = n(23)
- , r = /"/g
- , u = function(c, f, l, s) {
- var v = String(o(c))
- , g = "<" + f;
- return "" !== l && (g += " " + l + '="' + String(s).replace(r, """) + '"'),
- g + ">" + v + "" + f + ">"
- };
- i.exports = function(c, f) {
- var l = {};
- l[c] = f(u),
- t(t.P + t.F * e(function() {
- var s = ""[c]('"');
- return s !== s.toLowerCase() || 3 < s.split('"').length
- }), "String", l)
- }
- }
- , function(i, a) {
- var n = {}.hasOwnProperty;
- i.exports = function(t, e) {
- return n.call(t, e)
- }
- }
- , function(i, a, n) {
- var t = n(48)
- , e = n(23);
- i.exports = function(o) {
- return t(e(o))
- }
- }
- , function(i, a, n) {
- var t = n(49)
- , e = n(32)
- , o = n(15)
- , r = n(22)
- , u = n(14)
- , c = n(93)
- , f = Object.getOwnPropertyDescriptor;
- a.f = n(7) ? f : function(s, v) {
- if (s = o(s),
- v = r(v, !0),
- c)
- try {
- return f(s, v)
- } catch (g) {}
- if (u(s, v))
- return e(!t.f.call(s, v), s[v])
- }
- }
- , function(i, a, n) {
- var t = n(14)
- , e = n(9)
- , o = n(68)("IE_PROTO")
- , r = Object.prototype;
- i.exports = Object.getPrototypeOf || function(u) {
- return u = e(u),
- t(u, o) ? u[o] : "function" == typeof u.constructor && u instanceof u.constructor ? u.constructor.prototype : u instanceof Object ? r : null
- }
- }
- , function(i, a, n) {
- var t = n(10);
- i.exports = function(e, o, r) {
- if (t(e),
- o === p)
- return e;
- switch (r) {
- case 1:
- return function(u) {
- return e.call(o, u)
- }
- ;
- case 2:
- return function(u, c) {
- return e.call(o, u, c)
- }
- ;
- case 3:
- return function(u, c, f) {
- return e.call(o, u, c, f)
- }
- }
- return function() {
- return e.apply(o, arguments)
- }
- }
- }
- , function(i, a) {
- var n = {}.toString;
- i.exports = function(t) {
- return n.call(t).slice(8, -1)
- }
- }
- , function(i, a) {
- var n = Math.ceil
- , t = Math.floor;
- i.exports = function(e) {
- return isNaN(e = +e) ? 0 : (0 < e ? t : n)(e)
- }
- }
- , function(i, a, n) {
- var t = n(3);
- i.exports = function(e, o) {
- return !!e && t(function() {
- o ? e.call(null, function() {}, 1) : e.call(null)
- })
- }
- }
- , function(i, a, n) {
- var t = n(4);
- i.exports = function(e, o) {
- if (!t(e))
- return e;
- var r, u;
- if (o && "function" == typeof (r = e.toString) && !t(u = r.call(e)) || "function" == typeof (r = e.valueOf) && !t(u = r.call(e)) || !o && "function" == typeof (r = e.toString) && !t(u = r.call(e)))
- return u;
- throw TypeError("Can't convert object to primitive value")
- }
- }
- , function(i, a) {
- i.exports = function(n) {
- if (n == p)
- throw TypeError("Can't call method on " + n);
- return n
- }
- }
- , function(i, a, n) {
- var t = n(0)
- , e = n(26)
- , o = n(3);
- i.exports = function(r, u) {
- var c = (e.Object || {})[r] || Object[r]
- , f = {};
- f[r] = u(c),
- t(t.S + t.F * o(function() {
- c(1)
- }), "Object", f)
- }
- }
- , function(i, a, n) {
- var t = n(18)
- , e = n(48)
- , o = n(9)
- , r = n(6)
- , u = n(84);
- i.exports = function(c, f) {
- var l = 1 == c
- , s = 2 == c
- , v = 3 == c
- , g = 4 == c
- , y = 6 == c
- , x = 5 == c || y
- , P = f || u;
- return function(b, I, E) {
- for (var A, w, d = o(b), S = e(d), M = t(I, E, 3), T = r(S.length), N = 0, L = l ? P(b, T) : s ? P(b, 0) : p; N < T; N++)
- if ((x || N in S) && (w = M(A = S[N], N, d),
- c))
- if (l)
- L[N] = w;
- else if (w)
- switch (c) {
- case 3:
- return !0;
- case 5:
- return A;
- case 6:
- return N;
- case 2:
- L.push(A)
- }
- else if (g)
- return !1;
- return y ? -1 : v || g ? g : L
- }
- }
- }
- , function(i, a) {
- var n = i.exports = {
- version: "2.6.9"
- };
- "number" == typeof O && (O = n)
- }
- , function(i, a, n) {
- if (n(7)) {
- var t = n(29)
- , e = n(2)
- , o = n(3)
- , r = n(0)
- , u = n(62)
- , c = n(92)
- , f = n(18)
- , l = n(39)
- , s = n(32)
- , v = n(11)
- , g = n(41)
- , y = n(20)
- , x = n(6)
- , P = n(122)
- , b = n(35)
- , I = n(22)
- , E = n(14)
- , A = n(44)
- , w = n(4)
- , d = n(9)
- , S = n(81)
- , M = n(36)
- , T = n(17)
- , N = n(37).f
- , L = n(83)
- , k = n(33)
- , $ = n(5)
- , Z = n(25)
- , X = n(52)
- , K = n(51)
- , Y = n(86)
- , _ = n(46)
- , rn = n(57)
- , sn = n(38)
- , fn = n(85)
- , En = n(110)
- , jn = n(8)
- , W = n(16)
- , V = jn.f
- , tn = W.f
- , Q = e.RangeError
- , vn = e.TypeError
- , pn = e.Uint8Array
- , bn = "ArrayBuffer"
- , ln = "Shared" + bn
- , mn = "BYTES_PER_ELEMENT"
- , xn = "prototype"
- , Sn = Array[xn]
- , Mn = c.ArrayBuffer
- , Tn = c.DataView
- , Pn = Z(0)
- , Rn = Z(2)
- , U = Z(3)
- , G = Z(4)
- , q = Z(5)
- , on = Z(6)
- , gn = X(!0)
- , dn = X(!1)
- , J = Y.values
- , C = Y.keys
- , B = Y.entries
- , nn = Sn.lastIndexOf
- , an = Sn.reduce
- , In = Sn.reduceRight
- , Ln = Sn.join
- , kn = Sn.sort
- , ct = Sn.slice
- , Vn = Sn.toString
- , et = Sn.toLocaleString
- , rt = $("iterator")
- , Hn = $("toStringTag")
- , ft = k("typed_constructor")
- , Zn = k("def_constructor")
- , st = u.CONSTR
- , Bn = u.TYPED
- , Et = u.VIEW
- , Xn = "Wrong length!"
- , Pt = Z(1, function(z, D) {
- return _n(K(z, z[Zn]), D)
- })
- , lt = o(function() {
- return 1 === new pn(new Uint16Array([1]).buffer)[0]
- })
- , It = !!pn && !!pn[xn].set && o(function() {
- new pn(1).set({})
- })
- , Qn = function(z, D) {
- var H = y(z);
- if (H < 0 || H % D)
- throw Q("Wrong offset!");
- return H
- }
- , hn = function(z) {
- if (w(z) && Bn in z)
- return z;
- throw vn(z + " is not a typed array!")
- }
- , _n = function(z, D) {
- if (!w(z) || !(ft in z))
- throw vn("It is not a typed array constructor!");
- return new z(D)
- }
- , vt = function(z, D) {
- return ot(K(z, z[Zn]), D)
- }
- , ot = function(z, D) {
- for (var H = 0, en = D.length, cn = _n(z, en); H < en; )
- cn[H] = D[H++];
- return cn
- }
- , Jn = function(z, D, H) {
- V(z, D, {
- get: function() {
- return this._d[H]
- }
- })
- }
- , it = function(D) {
- var H, en, cn, Fn, Wn, un, wn = d(D), zn = arguments.length, Gn = 1 < zn ? arguments[1] : p, On = Gn !== p, Kn = L(wn);
- if (Kn != p && !S(Kn)) {
- for (un = Kn.call(wn),
- cn = [],
- H = 0; !(Wn = un.next()).done; H++)
- cn.push(Wn.value);
- wn = cn
- }
- for (On && 2 < zn && (Gn = f(Gn, arguments[2], 2)),
- H = 0,
- en = x(wn.length),
- Fn = _n(this, en); H < en; H++)
- Fn[H] = On ? Gn(wn[H], H) : wn[H];
- return Fn
- }
- , wt = function() {
- for (var D = 0, H = arguments.length, en = _n(this, H); D < H; )
- en[D] = arguments[D++];
- return en
- }
- , Mt = !!pn && o(function() {
- et.call(new pn(1))
- })
- , ht = function() {
- return et.apply(Mt ? ct.call(hn(this)) : hn(this), arguments)
- }
- , pt = {
- copyWithin: function(D, H) {
- return En.call(hn(this), D, H, 2 < arguments.length ? arguments[2] : p)
- },
- every: function(D) {
- return G(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- fill: function(D) {
- return fn.apply(hn(this), arguments)
- },
- filter: function(D) {
- return vt(this, Rn(hn(this), D, 1 < arguments.length ? arguments[1] : p))
- },
- find: function(D) {
- return q(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- findIndex: function(D) {
- return on(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- forEach: function(D) {
- Pn(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- indexOf: function(D) {
- return dn(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- includes: function(D) {
- return gn(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- join: function(D) {
- return Ln.apply(hn(this), arguments)
- },
- lastIndexOf: function(D) {
- return nn.apply(hn(this), arguments)
- },
- map: function(D) {
- return Pt(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- reduce: function(D) {
- return an.apply(hn(this), arguments)
- },
- reduceRight: function(D) {
- return In.apply(hn(this), arguments)
- },
- reverse: function() {
- for (var D, H = this, en = hn(H).length, cn = Math.floor(en / 2), Fn = 0; Fn < cn; )
- D = H[Fn],
- H[Fn++] = H[--en],
- H[en] = D;
- return H
- },
- some: function(D) {
- return U(hn(this), D, 1 < arguments.length ? arguments[1] : p)
- },
- sort: function(D) {
- return kn.call(hn(this), D)
- },
- subarray: function(D, H) {
- var en = hn(this)
- , cn = en.length
- , Fn = b(D, cn);
- return new (K(en, en[Zn]))(en.buffer,en.byteOffset + Fn * en.BYTES_PER_ELEMENT,x((H === p ? cn : b(H, cn)) - Fn))
- }
- }
- , gt = function(D, H) {
- return vt(this, ct.call(hn(this), D, H))
- }
- , dt = function(D) {
- hn(this);
- var H = Qn(arguments[1], 1)
- , en = this.length
- , cn = d(D)
- , Fn = x(cn.length)
- , Wn = 0;
- if (en < Fn + H)
- throw Q(Xn);
- for (; Wn < Fn; )
- this[H + Wn] = cn[Wn++]
- }
- , qn = {
- entries: function() {
- return B.call(hn(this))
- },
- keys: function() {
- return C.call(hn(this))
- },
- values: function() {
- return J.call(hn(this))
- }
- }
- , yt = function(z, D) {
- return w(z) && z[Bn] && "symbol" != typeof D && D in z && String(+D) == String(D)
- }
- , mt = function(D, H) {
- return yt(D, H = I(H, !0)) ? s(2, D[H]) : tn(D, H)
- }
- , xt = function(D, H, en) {
- return !(yt(D, H = I(H, !0)) && w(en) && E(en, "value")) || E(en, "get") || E(en, "set") || en.configurable || E(en, "writable") && !en.writable || E(en, "enumerable") && !en.enumerable ? V(D, H, en) : (D[H] = en.value,
- D)
- };
- st || (W.f = mt,
- jn.f = xt),
- r(r.S + r.F * !st, "Object", {
- getOwnPropertyDescriptor: mt,
- defineProperty: xt
- }),
- o(function() {
- Vn.call({})
- }) && (Vn = et = function() {
- return Ln.call(this)
- }
- );
- var Cn = g({}, pt);
- g(Cn, qn),
- v(Cn, rt, qn.values),
- g(Cn, {
- slice: gt,
- set: dt,
- constructor: function() {},
- toString: Vn,
- toLocaleString: ht
- }),
- Jn(Cn, "buffer", "b"),
- Jn(Cn, "byteOffset", "o"),
- Jn(Cn, "byteLength", "l"),
- Jn(Cn, "length", "e"),
- V(Cn, Hn, {
- get: function() {
- return this[Bn]
- }
- }),
- i.exports = function(z, D, H, en) {
- var cn = z + ((en = !!en) ? "Clamped" : "") + "Array"
- , Fn = "get" + z
- , Wn = "set" + z
- , un = e[cn]
- , wn = un || {}
- , zn = un && T(un)
- , Gn = {}
- , On = un && un[xn]
- , Kn = function(Nn, yn) {
- V(Nn, yn, {
- get: function() {
- return (Dn = this._d).v[Fn](yn * D + Dn.o, lt);
- var Dn
- },
- set: function(Dn) {
- return $n = yn,
- An = Dn,
- Un = this._d,
- en && (An = (An = Math.round(An)) < 0 ? 0 : 255 < An ? 255 : 255 & An),
- void Un.v[Wn]($n * D + Un.o, An, lt);
- var $n, An, Un
- },
- enumerable: !0
- })
- };
- un && u.ABV ? o(function() {
- un(1)
- }) && o(function() {
- new un(-1)
- }) && rn(function(Nn) {
- new un,
- new un(null),
- new un(1.5),
- new un(Nn)
- }, !0) || (un = H(function(Nn, yn, Dn, $n) {
- var An;
- return l(Nn, un, cn),
- w(yn) ? yn instanceof Mn || (An = A(yn)) == bn || An == ln ? $n !== p ? new wn(yn,Qn(Dn, D),$n) : Dn !== p ? new wn(yn,Qn(Dn, D)) : new wn(yn) : Bn in yn ? ot(un, yn) : it.call(un, yn) : new wn(P(yn))
- }),
- Pn(zn !== Function.prototype ? N(wn).concat(N(zn)) : N(wn), function(Nn) {
- Nn in un || v(un, Nn, wn[Nn])
- }),
- un[xn] = On,
- t || (On.constructor = un)) : (un = H(function(Nn, yn, Dn, $n) {
- l(Nn, un, cn, "_d");
- var An, Un, Yn, bt, Ot = 0, tt = 0;
- if (w(yn)) {
- if (!(yn instanceof Mn || (bt = A(yn)) == bn || bt == ln))
- return Bn in yn ? ot(un, yn) : it.call(un, yn);
- An = yn,
- tt = Qn(Dn, D);
- var at = yn.byteLength;
- if ($n === p) {
- if (at % D || (Un = at - tt) < 0)
- throw Q(Xn)
- } else if (at < (Un = x($n) * D) + tt)
- throw Q(Xn);
- Yn = Un / D
- } else
- Yn = P(yn),
- An = new Mn(Un = Yn * D);
- for (v(Nn, "_d", {
- b: An,
- o: tt,
- l: Un,
- e: Yn,
- v: new Tn(An)
- }); Ot < Yn; )
- Kn(Nn, Ot++)
- }),
- On = un[xn] = M(Cn),
- v(On, "constructor", un));
- var nt = On[rt]
- , ut = !!nt && ("values" == nt.name || nt.name == p)
- , St = qn.values;
- v(un, ft, !0),
- v(On, Bn, cn),
- v(On, Et, !0),
- v(On, Zn, un),
- (en ? new un(1)[Hn] == cn : Hn in On) || V(On, Hn, {
- get: function() {
- return cn
- }
- }),
- r(r.G + r.W + r.F * ((Gn[cn] = un) != wn), Gn),
- r(r.S, cn, {
- BYTES_PER_ELEMENT: D
- }),
- r(r.S + r.F * o(function() {
- wn.of.call(un, 1)
- }), cn, {
- from: it,
- of: wt
- }),
- mn in On || v(On, mn, D),
- r(r.P, cn, pt),
- sn(cn),
- r(r.P + r.F * It, cn, {
- set: dt
- }),
- r(r.P + r.F * !ut, cn, qn),
- t || On.toString == Vn || (On.toString = Vn),
- r(r.P + r.F * o(function() {
- new un(1).slice()
- }), cn, {
- slice: gt
- }),
- r(r.P + r.F * (o(function() {
- return [1, 2].toLocaleString() != new un([1, 2]).toLocaleString()
- }) || !o(function() {
- On.toLocaleString.call([1, 2])
- })), cn, {
- toLocaleString: ht
- }),
- _[cn] = ut ? nt : St,
- t || ut || v(On, rt, St)
- }
- } else
- i.exports = function() {}
- }
- , function(i, a, n) {
- var t = n(116)
- , e = n(0)
- , o = n(47)("metadata")
- , r = o.store || (o.store = new (n(119)))
- , u = function(c, f, l) {
- var s = r.get(c);
- if (!s) {
- if (!l)
- return p;
- r.set(c, s = new t)
- }
- var v = s.get(f);
- if (!v) {
- if (!l)
- return p;
- s.set(f, v = new t)
- }
- return v
- };
- i.exports = {
- store: r,
- map: u,
- has: function(c, f, l) {
- var s = u(f, l, !1);
- return s !== p && s.has(c)
- },
- get: function(c, f, l) {
- var s = u(f, l, !1);
- return s === p ? p : s.get(c)
- },
- set: function(c, f, l, s) {
- u(l, s, !0).set(c, f)
- },
- keys: function(c, f) {
- var l = u(c, f, !1)
- , s = [];
- return l && l.forEach(function(v, g) {
- s.push(g)
- }),
- s
- },
- key: function(c) {
- return c === p || "symbol" == typeof c ? c : String(c)
- },
- exp: function(c) {
- e(e.S, "Reflect", c)
- }
- }
- }
- , function(i, a) {
- i.exports = !1
- }
- , function(i, a, n) {
- var t = n(33)("meta")
- , e = n(4)
- , o = n(14)
- , r = n(8).f
- , u = 0
- , c = Object.isExtensible || function() {
- return !0
- }
- , f = !n(3)(function() {
- return c(Object.preventExtensions({}))
- })
- , l = function(v) {
- r(v, t, {
- value: {
- i: "O" + ++u,
- w: {}
- }
- })
- }
- , s = i.exports = {
- KEY: t,
- NEED: !1,
- fastKey: function(v, g) {
- if (!e(v))
- return "symbol" == typeof v ? v : ("string" == typeof v ? "S" : "P") + v;
- if (!o(v, t)) {
- if (!c(v))
- return "F";
- if (!g)
- return "E";
- l(v)
- }
- return v[t].i
- },
- getWeak: function(v, g) {
- if (!o(v, t)) {
- if (!c(v))
- return !0;
- if (!g)
- return !1;
- l(v)
- }
- return v[t].w
- },
- onFreeze: function(v) {
- return f && s.NEED && c(v) && !o(v, t) && l(v),
- v
- }
- }
- }
- , function(i, a, n) {
- var t = n(5)("unscopables")
- , e = Array.prototype;
- e[t] == p && n(11)(e, t, {}),
- i.exports = function(o) {
- e[t][o] = !0
- }
- }
- , function(i, a) {
- i.exports = function(n, t) {
- return {
- enumerable: !(1 & n),
- configurable: !(2 & n),
- writable: !(4 & n),
- value: t
- }
- }
- }
- , function(i, a) {
- var n = 0
- , t = Math.random();
- i.exports = function(e) {
- return "Symbol(".concat(e === p ? "" : e, ")_", (++n + t).toString(36))
- }
- }
- , function(i, a, n) {
- var t = n(95)
- , e = n(69);
- i.exports = Object.keys || function(r) {
- return t(r, e)
- }
- }
- , function(i, a, n) {
- var t = n(20)
- , e = Math.max
- , o = Math.min;
- i.exports = function(r, u) {
- return (r = t(r)) < 0 ? e(r + u, 0) : o(r, u)
- }
- }
- , function(i, a, n) {
- var t = n(1)
- , e = n(96)
- , o = n(69)
- , r = n(68)("IE_PROTO")
- , u = function() {}
- , c = "prototype"
- , f = function() {
- var l, s = n(66)("iframe"), v = o.length;
- for (s.style.display = "none",
- n(70).appendChild(s),
- s.src = "javascript:",
- (l = s.contentWindow.document).open(),
- l.write("