import {
    $ as $n,
    B as pt,
    C as Bt,
    Ca as ke,
    D as ui,
    E as Vt,
    F as _i,
    G as mi,
    Ka as Vn,
    L as gi,
    La as jt,
    Ma as Gn,
    N as Mn,
    P as Un,
    Qa as jn,
    T as bi,
    Ta as Zt,
    Ua as Zn,
    W as Fn,
    Ya as qt,
    _a as qn,
    ba as Gt,
    bb as Ei,
    ib as Yn,
    na as Bn
} from "./chunk-XPOKHL3M.js";
import {
    c as $t,
    d as We,
    f as Ie,
    g as Hn,
    h as Ke,
    i as hi,
    k as fi
} from "./chunk-Z33DM23Z.js";
import {
    c as On,
    d as Nn,
    e as zn,
    f as N,
    g as Ft,
    l as Ln
} from "./chunk-GHJJ2Z4D.js";
import {
    B as ct,
    a as Sn,
    k as Cn,
    m as In,
    n as Mt,
    r as kn,
    s as Pn,
    y as Ut
} from "./chunk-OYJWBUYU.js";
import {
    $ as pn,
    $b as lt,
    Ab as b,
    B as C,
    Bb as zt,
    Ca as fn,
    Cc as xn,
    Db as ci,
    Dc as Tn,
    E as rn,
    Eb as ne,
    Hc as di,
    Jb as F,
    Kb as $,
    Kc as An,
    Lb as Z,
    Lc as Rn,
    Mb as Ge,
    Nb as je,
    Ob as rt,
    Pb as Ze,
    Pc as G,
    Q as ln,
    Qc as Ht,
    T as cn,
    Ta as un,
    Y,
    Ya as D,
    Yb as qe,
    Z as st,
    Zb as I,
    _b as Lt,
    ba as le,
    ca as Be,
    cb as Ve,
    cc as fe,
    dc as Ye,
    ec as W,
    f as $e,
    fc as K,
    g as sn,
    ic as gn,
    ja as Ot,
    jc as bn,
    ka as ce,
    kc as En,
    la as pe,
    lb as Ee,
    m as on,
    ma as Nt,
    mb as ot,
    na as de,
    nb as _n,
    ob as mn,
    pb as ye,
    q as _,
    rb as H,
    sc as yn,
    ta as be,
    tc as vn,
    ua as dn,
    uc as pi,
    vc as Dn,
    wc as wn,
    xa as hn,
    zb as he
} from "./chunk-SSI6PFOR.js";
import {
    a as Ce,
    b as Pt,
    d as Ss
} from "./chunk-FFRAY7OK.js";

function it(t) {
    let n = t.length;
    for (; --n >= 0;) t[n] = 0;
}

function Ri(t, n, e, i, a) {
    this.static_tree = t, this.extra_bits = n, this.extra_base = e, this.elems = i, this.max_length = a, this.has_stree = t && t.length;
}

function Si(t, n) {
    this.dyn_tree = t, this.max_code = 0, this.stat_desc = n;
}

function ae(t, n, e, i, a) {
    this.good_length = t, this.max_lazy = n, this.nice_length = e, this.max_chain = i, this.func = a;
}

function Ur() {
    this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = oi, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(Ir * 2), this.dyn_dtree = new Uint16Array((2 * Sr + 1) * 2), this.bl_tree = new Uint16Array((2 * Cr + 1) * 2), we(this.dyn_ltree), we(this.dyn_dtree), we(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(kr + 1), this.heap = new Uint16Array(2 * Vi + 1), we(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Vi + 1), we(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
}

function rl() {
    this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
}

function St(t) {
    this.options = ri.assign({
        level: fl,
        method: _l,
        chunkSize: 16384,
        windowBits: 15,
        memLevel: 8,
        strategy: ul
    }, t || {});
    let n = this.options;
    n.raw && n.windowBits > 0 ? n.windowBits = -n.windowBits : n.gzip && n.windowBits > 0 && n.windowBits < 16 && (n.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new hs(), this.strm.avail_out = 0;
    let e = mt.deflateInit2(this.strm, n.level, n.method, n.windowBits, n.memLevel, n.strategy);
    if (e !== ai) throw new Error(Le[e]);
    if (n.header && mt.deflateSetHeader(this.strm, n.header), n.dictionary) {
        let i;
        if (typeof n.dictionary == "string" ? i = xt.string2buf(n.dictionary) : fs.call(n.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(n.dictionary) : i = n.dictionary, e = mt.deflateSetDictionary(this.strm, i), e !== ai) throw new Error(Le[e]);
        this._dict_set = !0;
    }
}

function en(t, n) {
    let e = new St(n);
    if (e.push(t, !0), e.err) throw e.msg || Le[e.err];
    return e.result;
}

function ml(t, n) {
    return n = n || {}, n.raw = !0, en(t, n);
}

function gl(t, n) {
    return n = n || {}, n.gzip = !0, en(t, n);
}

function Fl() {
    this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
}

function nc() {
    this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
}

function Ct(t) {
    this.options = ri.assign({
        chunkSize: 1024 * 64,
        windowBits: 15,
        to: ""
    }, t || {});
    let n = this.options;
    n.raw && n.windowBits >= 0 && n.windowBits < 16 && (n.windowBits = -n.windowBits, n.windowBits === 0 && (n.windowBits = -15)), n.windowBits >= 0 && n.windowBits < 16 && !(t && t.windowBits) && (n.windowBits += 32), n.windowBits > 15 && n.windowBits < 48 && (n.windowBits & 15) === 0 && (n.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new hs(), this.strm.avail_out = 0;
    let e = ge.inflateInit2(this.strm, n.windowBits);
    if (e !== Tt) throw new Error(Le[e]);
    if (this.header = new ac(), ge.inflateGetHeader(this.strm, this.header), n.dictionary && (typeof n.dictionary == "string" ? n.dictionary = xt.string2buf(n.dictionary) : Ts.call(n.dictionary) === "[object ArrayBuffer]" && (n.dictionary = new Uint8Array(n.dictionary)), n.raw && (e = ge.inflateSetDictionary(this.strm, n.dictionary), e !== Tt))) throw new Error(Le[e]);
}

function tn(t, n) {
    let e = new Ct(n);
    if (e.push(t), e.err) throw e.msg || Le[e.err];
    return e.result;
}

function cc(t, n) {
    return n = n || {}, n.raw = !0, tn(t, n);
}
var Mo, ja, Uo, Fo, $o, Wi, At, bt, Je, Ki, Za, Oe, Ai, Bo, Xi, qa, Ya, Wa, Fi, ii, Vo, Ka, Go, me, _t, Et, yt, Qi, ni, Xa, Qa, Ja, es, vt, X, se, ts, jo, Zo, is, qo, ns, as, ra, Ci, la, $i, ca, pa, Yo, Wo, Ko, da, Xo, ss, Qo, Jo, er, tr, ir, nr, ar, sr, or, rr, Dt, lr, cr, pr, V, Le, Ue, dr, Bi, hr, Te, fr, Ae, ur, _r, te, ha, j, fa, oe, mr, Ii, gr, br, Xt, Er, yr, vr, Dr, oi, wr, xr, Tr, Ar, Rr, Vi, Sr, Cr, Ir, kr, T, xe, re, Pr, et, Ji, Gi, ji, Zi, qi, Ne, ft, q, nt, He, at, Or, ze, ua, we, Nr, zr, Re, J, ee, P, ht, Yi, os, tt, rs, ki, Xe, Lr, Hr, ut, Mr, Rt, ls, cs, Fr, ps, $r, Br, Vr, Gr, jr, Zr, qr, Yr, Wr, Kr, Xr, Qr, Jr, mt, el, tl, il, ri, ds, wt, nl, al, sl, ol, xt, hs, fs, ll, cl, pl, dl, ai, hl, fl, ul, _l, bl, El, yl, vl, Dl, wl, Qt, xl, Tl, Qe, _a, ma, ga, Pi, ba, Al, Rl, Sl, Cl, Il, gt, kl, us, _s, Ea, Pl, Jt, Me, Ol, Nl, ie, ms, gs, zl, ya, li, va, Da, wa, xa, Ta, Aa, Ra, Sa, Ca, si, _e, Oi, Ia, Ni, ka, Pa, Oa, Na, ei, ti, za, La, Ha, Ma, Ua, zi, Fa, $a, M, bs, Es, Ll, Hl, Ml, Ul, Ba, Fe, ys, vs, Ds, ws, $l, Va, Li, Hi, Bl, xs, Vl, Gl, jl, Zl, ql, Yl, Wl, Kl, Xl, Ql, Jl, ec, tc, ic, ge, ac, Ts, sc, oc, Tt, Mi, Ui, rc, Ga, lc, pc, dc, hc, fc, uc, _c, mc, gc, bc, Ec, yc, vc, Dc, wc, xc, Tc, Ac, nn, Rc, Sc, Cc, Ic, kc, zd, As = Ss(() => {
    "use strict";
    Mo = 0, ja = 1, Uo = 2, Fo = 3, $o = 258, Wi = 29, At = 256, bt = At + 1 + Wi, Je = 30, Ki = 19, Za = 2 * bt + 1, Oe = 15, Ai = 16, Bo = 7, Xi = 256, qa = 16, Ya = 17, Wa = 18, Fi = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), ii = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), Vo = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), Ka = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Go = 512, me = new Array((bt + 2) * 2);
    it(me);
    _t = new Array(Je * 2);
    it(_t);
    Et = new Array(Go);
    it(Et);
    yt = new Array($o - Fo + 1);
    it(yt);
    Qi = new Array(Wi);
    it(Qi);
    ni = new Array(Je);
    it(ni);
    es = t => t < 256 ? Et[t] : Et[256 + (t >>> 7)], vt = (t, n) => {
        t.pending_buf[t.pending++] = n & 255, t.pending_buf[t.pending++] = n >>> 8 & 255;
    }, X = (t, n, e) => {
        t.bi_valid > Ai - e ? (t.bi_buf |= n << t.bi_valid & 65535, vt(t, t.bi_buf), t.bi_buf = n >> Ai - t.bi_valid, t.bi_valid += e - Ai) : (t.bi_buf |= n << t.bi_valid & 65535, t.bi_valid += e);
    }, se = (t, n, e) => {
        X(t, e[n * 2], e[n * 2 + 1]);
    }, ts = (t, n) => {
        let e = 0;
        do e |= t & 1, t >>>= 1, e <<= 1; while (--n > 0);
        return e >>> 1;
    }, jo = t => {
        t.bi_valid === 16 ? (vt(t, t.bi_buf), t.bi_buf = 0, t.bi_valid = 0) : t.bi_valid >= 8 && (t.pending_buf[t.pending++] = t.bi_buf & 255, t.bi_buf >>= 8, t.bi_valid -= 8);
    }, Zo = (t, n) => {
        let e = n.dyn_tree,
            i = n.max_code,
            a = n.stat_desc.static_tree,
            s = n.stat_desc.has_stree,
            l = n.stat_desc.extra_bits,
            o = n.stat_desc.extra_base,
            d = n.stat_desc.max_length,
            r, c, E, h, p, m, U = 0;
        for (h = 0; h <= Oe; h++) t.bl_count[h] = 0;
        for (e[t.heap[t.heap_max] * 2 + 1] = 0, r = t.heap_max + 1; r < Za; r++) c = t.heap[r], h = e[e[c * 2 + 1] * 2 + 1] + 1, h > d && (h = d, U++), e[c * 2 + 1] = h, !(c > i) && (t.bl_count[h]++, p = 0, c >= o && (p = l[c - o]), m = e[c * 2], t.opt_len += m * (h + p), s && (t.static_len += m * (a[c * 2 + 1] + p)));
        if (U !== 0) {
            do {
                for (h = d - 1; t.bl_count[h] === 0;) h--;
                t.bl_count[h]--, t.bl_count[h + 1] += 2, t.bl_count[d]--, U -= 2;
            } while (U > 0);
            for (h = d; h !== 0; h--)
                for (c = t.bl_count[h]; c !== 0;) E = t.heap[--r], !(E > i) && (e[E * 2 + 1] !== h && (t.opt_len += (h - e[E * 2 + 1]) * e[E * 2], e[E * 2 + 1] = h), c--);
        }
    }, is = (t, n, e) => {
        let i = new Array(Oe + 1),
            a = 0,
            s, l;
        for (s = 1; s <= Oe; s++) a = a + e[s - 1] << 1, i[s] = a;
        for (l = 0; l <= n; l++) {
            let o = t[l * 2 + 1];
            o !== 0 && (t[l * 2] = ts(i[o]++, o));
        }
    }, qo = () => {
        let t, n, e, i, a, s = new Array(Oe + 1);
        for (e = 0, i = 0; i < Wi - 1; i++)
            for (Qi[i] = e, t = 0; t < 1 << Fi[i]; t++) yt[e++] = i;
        for (yt[e - 1] = i, a = 0, i = 0; i < 16; i++)
            for (ni[i] = a, t = 0; t < 1 << ii[i]; t++) Et[a++] = i;
        for (a >>= 7; i < Je; i++)
            for (ni[i] = a << 7, t = 0; t < 1 << ii[i] - 7; t++) Et[256 + a++] = i;
        for (n = 0; n <= Oe; n++) s[n] = 0;
        for (t = 0; t <= 143;) me[t * 2 + 1] = 8, t++, s[8]++;
        for (; t <= 255;) me[t * 2 + 1] = 9, t++, s[9]++;
        for (; t <= 279;) me[t * 2 + 1] = 7, t++, s[7]++;
        for (; t <= 287;) me[t * 2 + 1] = 8, t++, s[8]++;
        for (is(me, bt + 1, s), t = 0; t < Je; t++) _t[t * 2 + 1] = 5, _t[t * 2] = ts(t, 5);
        Xa = new Ri(me, Fi, At + 1, bt, Oe), Qa = new Ri(_t, ii, 0, Je, Oe), Ja = new Ri(new Array(0), Vo, 0, Ki, Bo);
    }, ns = t => {
        let n;
        for (n = 0; n < bt; n++) t.dyn_ltree[n * 2] = 0;
        for (n = 0; n < Je; n++) t.dyn_dtree[n * 2] = 0;
        for (n = 0; n < Ki; n++) t.bl_tree[n * 2] = 0;
        t.dyn_ltree[Xi * 2] = 1, t.opt_len = t.static_len = 0, t.sym_next = t.matches = 0;
    }, as = t => {
        t.bi_valid > 8 ? vt(t, t.bi_buf) : t.bi_valid > 0 && (t.pending_buf[t.pending++] = t.bi_buf), t.bi_buf = 0, t.bi_valid = 0;
    }, ra = (t, n, e, i) => {
        let a = n * 2,
            s = e * 2;
        return t[a] < t[s] || t[a] === t[s] && i[n] <= i[e];
    }, Ci = (t, n, e) => {
        let i = t.heap[e],
            a = e << 1;
        for (; a <= t.heap_len && (a < t.heap_len && ra(n, t.heap[a + 1], t.heap[a], t.depth) && a++, !ra(n, i, t.heap[a], t.depth));) t.heap[e] = t.heap[a], e = a, a <<= 1;
        t.heap[e] = i;
    }, la = (t, n, e) => {
        let i, a, s = 0,
            l, o;
        if (t.sym_next !== 0)
            do i = t.pending_buf[t.sym_buf + s++] & 255, i += (t.pending_buf[t.sym_buf + s++] & 255) << 8, a = t.pending_buf[t.sym_buf + s++], i === 0 ? se(t, a, n) : (l = yt[a], se(t, l + At + 1, n), o = Fi[l], o !== 0 && (a -= Qi[l], X(t, a, o)), i--, l = es(i), se(t, l, e), o = ii[l], o !== 0 && (i -= ni[l], X(t, i, o))); while (s < t.sym_next);
        se(t, Xi, n);
    }, $i = (t, n) => {
        let e = n.dyn_tree,
            i = n.stat_desc.static_tree,
            a = n.stat_desc.has_stree,
            s = n.stat_desc.elems,
            l, o, d = -1,
            r;
        for (t.heap_len = 0, t.heap_max = Za, l = 0; l < s; l++) e[l * 2] !== 0 ? (t.heap[++t.heap_len] = d = l, t.depth[l] = 0) : e[l * 2 + 1] = 0;
        for (; t.heap_len < 2;) r = t.heap[++t.heap_len] = d < 2 ? ++d : 0, e[r * 2] = 1, t.depth[r] = 0, t.opt_len--, a && (t.static_len -= i[r * 2 + 1]);
        for (n.max_code = d, l = t.heap_len >> 1; l >= 1; l--) Ci(t, e, l);
        r = s;
        do l = t.heap[1], t.heap[1] = t.heap[t.heap_len--], Ci(t, e, 1), o = t.heap[1], t.heap[--t.heap_max] = l, t.heap[--t.heap_max] = o, e[r * 2] = e[l * 2] + e[o * 2], t.depth[r] = (t.depth[l] >= t.depth[o] ? t.depth[l] : t.depth[o]) + 1, e[l * 2 + 1] = e[o * 2 + 1] = r, t.heap[1] = r++, Ci(t, e, 1); while (t.heap_len >= 2);
        t.heap[--t.heap_max] = t.heap[1], Zo(t, n), is(e, d, t.bl_count);
    }, ca = (t, n, e) => {
        let i, a = -1,
            s, l = n[0 * 2 + 1],
            o = 0,
            d = 7,
            r = 4;
        for (l === 0 && (d = 138, r = 3), n[(e + 1) * 2 + 1] = 65535, i = 0; i <= e; i++) s = l, l = n[(i + 1) * 2 + 1], !(++o < d && s === l) && (o < r ? t.bl_tree[s * 2] += o : s !== 0 ? (s !== a && t.bl_tree[s * 2]++, t.bl_tree[qa * 2]++) : o <= 10 ? t.bl_tree[Ya * 2]++ : t.bl_tree[Wa * 2]++, o = 0, a = s, l === 0 ? (d = 138, r = 3) : s === l ? (d = 6, r = 3) : (d = 7, r = 4));
    }, pa = (t, n, e) => {
        let i, a = -1,
            s, l = n[0 * 2 + 1],
            o = 0,
            d = 7,
            r = 4;
        for (l === 0 && (d = 138, r = 3), i = 0; i <= e; i++)
            if (s = l, l = n[(i + 1) * 2 + 1], !(++o < d && s === l)) {
                if (o < r)
                    do se(t, s, t.bl_tree); while (--o !== 0);
                else s !== 0 ? (s !== a && (se(t, s, t.bl_tree), o--), se(t, qa, t.bl_tree), X(t, o - 3, 2)) : o <= 10 ? (se(t, Ya, t.bl_tree), X(t, o - 3, 3)) : (se(t, Wa, t.bl_tree), X(t, o - 11, 7));
                o = 0, a = s, l === 0 ? (d = 138, r = 3) : s === l ? (d = 6, r = 3) : (d = 7, r = 4);
            }
    }, Yo = t => {
        let n;
        for (ca(t, t.dyn_ltree, t.l_desc.max_code), ca(t, t.dyn_dtree, t.d_desc.max_code), $i(t, t.bl_desc), n = Ki - 1; n >= 3 && t.bl_tree[Ka[n] * 2 + 1] === 0; n--);
        return t.opt_len += 3 * (n + 1) + 5 + 5 + 4, n;
    }, Wo = (t, n, e, i) => {
        let a;
        for (X(t, n - 257, 5), X(t, e - 1, 5), X(t, i - 4, 4), a = 0; a < i; a++) X(t, t.bl_tree[Ka[a] * 2 + 1], 3);
        pa(t, t.dyn_ltree, n - 1), pa(t, t.dyn_dtree, e - 1);
    }, Ko = t => {
        let n = 4093624447,
            e;
        for (e = 0; e <= 31; e++, n >>>= 1)
            if (n & 1 && t.dyn_ltree[e * 2] !== 0) return 0;
        if (t.dyn_ltree[9 * 2] !== 0 || t.dyn_ltree[10 * 2] !== 0 || t.dyn_ltree[13 * 2] !== 0) return 1;
        for (e = 32; e < At; e++)
            if (t.dyn_ltree[e * 2] !== 0) return 1;
        return 0;
    }, da = !1, Xo = t => {
        da || (qo(), da = !0), t.l_desc = new Si(t.dyn_ltree, Xa), t.d_desc = new Si(t.dyn_dtree, Qa), t.bl_desc = new Si(t.bl_tree, Ja), t.bi_buf = 0, t.bi_valid = 0, ns(t);
    }, ss = (t, n, e, i) => {
        X(t, (Mo << 1) + (i ? 1 : 0), 3), as(t), vt(t, e), vt(t, ~e), e && t.pending_buf.set(t.window.subarray(n, n + e), t.pending), t.pending += e;
    }, Qo = t => {
        X(t, ja << 1, 3), se(t, Xi, me), jo(t);
    }, Jo = (t, n, e, i) => {
        let a, s, l = 0;
        t.level > 0 ? (t.strm.data_type === 2 && (t.strm.data_type = Ko(t)), $i(t, t.l_desc), $i(t, t.d_desc), l = Yo(t), a = t.opt_len + 3 + 7 >>> 3, s = t.static_len + 3 + 7 >>> 3, s <= a && (a = s)) : a = s = e + 5, e + 4 <= a && n !== -1 ? ss(t, n, e, i) : t.strategy === 4 || s === a ? (X(t, (ja << 1) + (i ? 1 : 0), 3), la(t, me, _t)) : (X(t, (Uo << 1) + (i ? 1 : 0), 3), Wo(t, t.l_desc.max_code + 1, t.d_desc.max_code + 1, l + 1), la(t, t.dyn_ltree, t.dyn_dtree)), ns(t), i && as(t);
    }, er = (t, n, e) => (t.pending_buf[t.sym_buf + t.sym_next++] = n, t.pending_buf[t.sym_buf + t.sym_next++] = n >> 8, t.pending_buf[t.sym_buf + t.sym_next++] = e, n === 0 ? t.dyn_ltree[e * 2]++ : (t.matches++, n--, t.dyn_ltree[(yt[e] + At + 1) * 2]++, t.dyn_dtree[es(n) * 2]++), t.sym_next === t.sym_end), tr = Xo, ir = ss, nr = Jo, ar = er, sr = Qo, or = {
        _tr_init: tr,
        _tr_stored_block: ir,
        _tr_flush_block: nr,
        _tr_tally: ar,
        _tr_align: sr
    }, rr = (t, n, e, i) => {
        let a = t & 65535 | 0,
            s = t >>> 16 & 65535 | 0,
            l = 0;
        for (; e !== 0;) {
            l = e > 2e3 ? 2e3 : e, e -= l;
            do a = a + n[i++] | 0, s = s + a | 0; while (--l);
            a %= 65521, s %= 65521;
        }
        return a | s << 16 | 0;
    }, Dt = rr, lr = () => {
        let t, n = [];
        for (var e = 0; e < 256; e++) {
            t = e;
            for (var i = 0; i < 8; i++) t = t & 1 ? 3988292384 ^ t >>> 1 : t >>> 1;
            n[e] = t;
        }
        return n;
    }, cr = new Uint32Array(lr()), pr = (t, n, e, i) => {
        let a = cr,
            s = i + e;
        t ^= -1;
        for (let l = i; l < s; l++) t = t >>> 8 ^ a[(t ^ n[l]) & 255];
        return t ^ -1;
    }, V = pr, Le = {
        2: "need dictionary",
        1: "stream end",
        0: "",
        "-1": "file error",
        "-2": "stream error",
        "-3": "data error",
        "-4": "insufficient memory",
        "-5": "buffer error",
        "-6": "incompatible version"
    }, Ue = {
        Z_NO_FLUSH: 0,
        Z_PARTIAL_FLUSH: 1,
        Z_SYNC_FLUSH: 2,
        Z_FULL_FLUSH: 3,
        Z_FINISH: 4,
        Z_BLOCK: 5,
        Z_TREES: 6,
        Z_OK: 0,
        Z_STREAM_END: 1,
        Z_NEED_DICT: 2,
        Z_ERRNO: -1,
        Z_STREAM_ERROR: -2,
        Z_DATA_ERROR: -3,
        Z_MEM_ERROR: -4,
        Z_BUF_ERROR: -5,
        Z_NO_COMPRESSION: 0,
        Z_BEST_SPEED: 1,
        Z_BEST_COMPRESSION: 9,
        Z_DEFAULT_COMPRESSION: -1,
        Z_FILTERED: 1,
        Z_HUFFMAN_ONLY: 2,
        Z_RLE: 3,
        Z_FIXED: 4,
        Z_DEFAULT_STRATEGY: 0,
        Z_BINARY: 0,
        Z_TEXT: 1,
        Z_UNKNOWN: 2,
        Z_DEFLATED: 8
    }, {
        _tr_init: dr,
        _tr_stored_block: Bi,
        _tr_flush_block: hr,
        _tr_tally: Te,
        _tr_align: fr
    } = or, {
        Z_NO_FLUSH: Ae,
        Z_PARTIAL_FLUSH: ur,
        Z_FULL_FLUSH: _r,
        Z_FINISH: te,
        Z_BLOCK: ha,
        Z_OK: j,
        Z_STREAM_END: fa,
        Z_STREAM_ERROR: oe,
        Z_DATA_ERROR: mr,
        Z_BUF_ERROR: Ii,
        Z_DEFAULT_COMPRESSION: gr,
        Z_FILTERED: br,
        Z_HUFFMAN_ONLY: Xt,
        Z_RLE: Er,
        Z_FIXED: yr,
        Z_DEFAULT_STRATEGY: vr,
        Z_UNKNOWN: Dr,
        Z_DEFLATED: oi
    } = Ue, wr = 9, xr = 15, Tr = 8, Ar = 29, Rr = 256, Vi = Rr + 1 + Ar, Sr = 30, Cr = 19, Ir = 2 * Vi + 1, kr = 15, T = 3, xe = 258, re = xe + T + 1, Pr = 32, et = 42, Ji = 57, Gi = 69, ji = 73, Zi = 91, qi = 103, Ne = 113, ft = 666, q = 1, nt = 2, He = 3, at = 4, Or = 3, ze = (t, n) => (t.msg = Le[n], n), ua = t => t * 2 - (t > 4 ? 9 : 0), we = t => {
        let n = t.length;
        for (; --n >= 0;) t[n] = 0;
    }, Nr = t => {
        let n, e, i, a = t.w_size;
        n = t.hash_size, i = n;
        do e = t.head[--i], t.head[i] = e >= a ? e - a : 0; while (--n);
        n = a, i = n;
        do e = t.prev[--i], t.prev[i] = e >= a ? e - a : 0; while (--n);
    }, zr = (t, n, e) => (n << t.hash_shift ^ e) & t.hash_mask, Re = zr, J = t => {
        let n = t.state,
            e = n.pending;
        e > t.avail_out && (e = t.avail_out), e !== 0 && (t.output.set(n.pending_buf.subarray(n.pending_out, n.pending_out + e), t.next_out), t.next_out += e, n.pending_out += e, t.total_out += e, t.avail_out -= e, n.pending -= e, n.pending === 0 && (n.pending_out = 0));
    }, ee = (t, n) => {
        hr(t, t.block_start >= 0 ? t.block_start : -1, t.strstart - t.block_start, n), t.block_start = t.strstart, J(t.strm);
    }, P = (t, n) => {
        t.pending_buf[t.pending++] = n;
    }, ht = (t, n) => {
        t.pending_buf[t.pending++] = n >>> 8 & 255, t.pending_buf[t.pending++] = n & 255;
    }, Yi = (t, n, e, i) => {
        let a = t.avail_in;
        return a > i && (a = i), a === 0 ? 0 : (t.avail_in -= a, n.set(t.input.subarray(t.next_in, t.next_in + a), e), t.state.wrap === 1 ? t.adler = Dt(t.adler, n, a, e) : t.state.wrap === 2 && (t.adler = V(t.adler, n, a, e)), t.next_in += a, t.total_in += a, a);
    }, os = (t, n) => {
        let e = t.max_chain_length,
            i = t.strstart,
            a, s, l = t.prev_length,
            o = t.nice_match,
            d = t.strstart > t.w_size - re ? t.strstart - (t.w_size - re) : 0,
            r = t.window,
            c = t.w_mask,
            E = t.prev,
            h = t.strstart + xe,
            p = r[i + l - 1],
            m = r[i + l];
        t.prev_length >= t.good_match && (e >>= 2), o > t.lookahead && (o = t.lookahead);
        do
            if (a = n, !(r[a + l] !== m || r[a + l - 1] !== p || r[a] !== r[i] || r[++a] !== r[i + 1])) {
                i += 2, a++;
                do; while (r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && r[++i] === r[++a] && i < h);
                if (s = xe - (h - i), i = h - xe, s > l) {
                    if (t.match_start = n, l = s, s >= o) break;
                    p = r[i + l - 1], m = r[i + l];
                }
            }
        while ((n = E[n & c]) > d && --e !== 0);
        return l <= t.lookahead ? l : t.lookahead;
    }, tt = t => {
        let n = t.w_size,
            e, i, a;
        do {
            if (i = t.window_size - t.lookahead - t.strstart, t.strstart >= n + (n - re) && (t.window.set(t.window.subarray(n, n + n - i), 0), t.match_start -= n, t.strstart -= n, t.block_start -= n, t.insert > t.strstart && (t.insert = t.strstart), Nr(t), i += n), t.strm.avail_in === 0) break;
            if (e = Yi(t.strm, t.window, t.strstart + t.lookahead, i), t.lookahead += e, t.lookahead + t.insert >= T)
                for (a = t.strstart - t.insert, t.ins_h = t.window[a], t.ins_h = Re(t, t.ins_h, t.window[a + 1]); t.insert && (t.ins_h = Re(t, t.ins_h, t.window[a + T - 1]), t.prev[a & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = a, a++, t.insert--, !(t.lookahead + t.insert < T)););
        } while (t.lookahead < re && t.strm.avail_in !== 0);
    }, rs = (t, n) => {
        let e = t.pending_buf_size - 5 > t.w_size ? t.w_size : t.pending_buf_size - 5,
            i, a, s, l = 0,
            o = t.strm.avail_in;
        do {
            if (i = 65535, s = t.bi_valid + 42 >> 3, t.strm.avail_out < s || (s = t.strm.avail_out - s, a = t.strstart - t.block_start, i > a + t.strm.avail_in && (i = a + t.strm.avail_in), i > s && (i = s), i < e && (i === 0 && n !== te || n === Ae || i !== a + t.strm.avail_in))) break;
            l = n === te && i === a + t.strm.avail_in ? 1 : 0, Bi(t, 0, 0, l), t.pending_buf[t.pending - 4] = i, t.pending_buf[t.pending - 3] = i >> 8, t.pending_buf[t.pending - 2] = ~i, t.pending_buf[t.pending - 1] = ~i >> 8, J(t.strm), a && (a > i && (a = i), t.strm.output.set(t.window.subarray(t.block_start, t.block_start + a), t.strm.next_out), t.strm.next_out += a, t.strm.avail_out -= a, t.strm.total_out += a, t.block_start += a, i -= a), i && (Yi(t.strm, t.strm.output, t.strm.next_out, i), t.strm.next_out += i, t.strm.avail_out -= i, t.strm.total_out += i);
        } while (l === 0);
        return o -= t.strm.avail_in, o && (o >= t.w_size ? (t.matches = 2, t.window.set(t.strm.input.subarray(t.strm.next_in - t.w_size, t.strm.next_in), 0), t.strstart = t.w_size, t.insert = t.strstart) : (t.window_size - t.strstart <= o && (t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, t.insert > t.strstart && (t.insert = t.strstart)), t.window.set(t.strm.input.subarray(t.strm.next_in - o, t.strm.next_in), t.strstart), t.strstart += o, t.insert += o > t.w_size - t.insert ? t.w_size - t.insert : o), t.block_start = t.strstart), t.high_water < t.strstart && (t.high_water = t.strstart), l ? at : n !== Ae && n !== te && t.strm.avail_in === 0 && t.strstart === t.block_start ? nt : (s = t.window_size - t.strstart, t.strm.avail_in > s && t.block_start >= t.w_size && (t.block_start -= t.w_size, t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, s += t.w_size, t.insert > t.strstart && (t.insert = t.strstart)), s > t.strm.avail_in && (s = t.strm.avail_in), s && (Yi(t.strm, t.window, t.strstart, s), t.strstart += s, t.insert += s > t.w_size - t.insert ? t.w_size - t.insert : s), t.high_water < t.strstart && (t.high_water = t.strstart), s = t.bi_valid + 42 >> 3, s = t.pending_buf_size - s > 65535 ? 65535 : t.pending_buf_size - s, e = s > t.w_size ? t.w_size : s, a = t.strstart - t.block_start, (a >= e || (a || n === te) && n !== Ae && t.strm.avail_in === 0 && a <= s) && (i = a > s ? s : a, l = n === te && t.strm.avail_in === 0 && i === a ? 1 : 0, Bi(t, t.block_start, i, l), t.block_start += i, J(t.strm)), l ? He : q);
    }, ki = (t, n) => {
        let e, i;
        for (;;) {
            if (t.lookahead < re) {
                if (tt(t), t.lookahead < re && n === Ae) return q;
                if (t.lookahead === 0) break;
            }
            if (e = 0, t.lookahead >= T && (t.ins_h = Re(t, t.ins_h, t.window[t.strstart + T - 1]), e = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), e !== 0 && t.strstart - e <= t.w_size - re && (t.match_length = os(t, e)), t.match_length >= T) {
                if (i = Te(t, t.strstart - t.match_start, t.match_length - T), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= T) {
                    t.match_length--;
                    do t.strstart++, t.ins_h = Re(t, t.ins_h, t.window[t.strstart + T - 1]), e = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart; while (--t.match_length !== 0);
                    t.strstart++;
                } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = Re(t, t.ins_h, t.window[t.strstart + 1]);
            } else i = Te(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
            if (i && (ee(t, !1), t.strm.avail_out === 0)) return q;
        }
        return t.insert = t.strstart < T - 1 ? t.strstart : T - 1, n === te ? (ee(t, !0), t.strm.avail_out === 0 ? He : at) : t.sym_next && (ee(t, !1), t.strm.avail_out === 0) ? q : nt;
    }, Xe = (t, n) => {
        let e, i, a;
        for (;;) {
            if (t.lookahead < re) {
                if (tt(t), t.lookahead < re && n === Ae) return q;
                if (t.lookahead === 0) break;
            }
            if (e = 0, t.lookahead >= T && (t.ins_h = Re(t, t.ins_h, t.window[t.strstart + T - 1]), e = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = T - 1, e !== 0 && t.prev_length < t.max_lazy_match && t.strstart - e <= t.w_size - re && (t.match_length = os(t, e), t.match_length <= 5 && (t.strategy === br || t.match_length === T && t.strstart - t.match_start > 4096) && (t.match_length = T - 1)), t.prev_length >= T && t.match_length <= t.prev_length) {
                a = t.strstart + t.lookahead - T, i = Te(t, t.strstart - 1 - t.prev_match, t.prev_length - T), t.lookahead -= t.prev_length - 1, t.prev_length -= 2;
                do ++t.strstart <= a && (t.ins_h = Re(t, t.ins_h, t.window[t.strstart + T - 1]), e = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart); while (--t.prev_length !== 0);
                if (t.match_available = 0, t.match_length = T - 1, t.strstart++, i && (ee(t, !1), t.strm.avail_out === 0)) return q;
            } else if (t.match_available) {
                if (i = Te(t, 0, t.window[t.strstart - 1]), i && ee(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return q;
            } else t.match_available = 1, t.strstart++, t.lookahead--;
        }
        return t.match_available && (i = Te(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < T - 1 ? t.strstart : T - 1, n === te ? (ee(t, !0), t.strm.avail_out === 0 ? He : at) : t.sym_next && (ee(t, !1), t.strm.avail_out === 0) ? q : nt;
    }, Lr = (t, n) => {
        let e, i, a, s, l = t.window;
        for (;;) {
            if (t.lookahead <= xe) {
                if (tt(t), t.lookahead <= xe && n === Ae) return q;
                if (t.lookahead === 0) break;
            }
            if (t.match_length = 0, t.lookahead >= T && t.strstart > 0 && (a = t.strstart - 1, i = l[a], i === l[++a] && i === l[++a] && i === l[++a])) {
                s = t.strstart + xe;
                do; while (i === l[++a] && i === l[++a] && i === l[++a] && i === l[++a] && i === l[++a] && i === l[++a] && i === l[++a] && i === l[++a] && a < s);
                t.match_length = xe - (s - a), t.match_length > t.lookahead && (t.match_length = t.lookahead);
            }
            if (t.match_length >= T ? (e = Te(t, 1, t.match_length - T), t.lookahead -= t.match_length, t.strstart += t.match_length, t.match_length = 0) : (e = Te(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++), e && (ee(t, !1), t.strm.avail_out === 0)) return q;
        }
        return t.insert = 0, n === te ? (ee(t, !0), t.strm.avail_out === 0 ? He : at) : t.sym_next && (ee(t, !1), t.strm.avail_out === 0) ? q : nt;
    }, Hr = (t, n) => {
        let e;
        for (;;) {
            if (t.lookahead === 0 && (tt(t), t.lookahead === 0)) {
                if (n === Ae) return q;
                break;
            }
            if (t.match_length = 0, e = Te(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++, e && (ee(t, !1), t.strm.avail_out === 0)) return q;
        }
        return t.insert = 0, n === te ? (ee(t, !0), t.strm.avail_out === 0 ? He : at) : t.sym_next && (ee(t, !1), t.strm.avail_out === 0) ? q : nt;
    };
    ut = [new ae(0, 0, 0, 0, rs), new ae(4, 4, 8, 4, ki), new ae(4, 5, 16, 8, ki), new ae(4, 6, 32, 32, ki), new ae(4, 4, 16, 16, Xe), new ae(8, 16, 32, 32, Xe), new ae(8, 16, 128, 128, Xe), new ae(8, 32, 128, 256, Xe), new ae(32, 128, 258, 1024, Xe), new ae(32, 258, 258, 4096, Xe)], Mr = t => {
        t.window_size = 2 * t.w_size, we(t.head), t.max_lazy_match = ut[t.level].max_lazy, t.good_match = ut[t.level].good_length, t.nice_match = ut[t.level].nice_length, t.max_chain_length = ut[t.level].max_chain, t.strstart = 0, t.block_start = 0, t.lookahead = 0, t.insert = 0, t.match_length = t.prev_length = T - 1, t.match_available = 0, t.ins_h = 0;
    };
    Rt = t => {
        if (!t) return 1;
        let n = t.state;
        return !n || n.strm !== t || n.status !== et && n.status !== Ji && n.status !== Gi && n.status !== ji && n.status !== Zi && n.status !== qi && n.status !== Ne && n.status !== ft ? 1 : 0;
    }, ls = t => {
        if (Rt(t)) return ze(t, oe);
        t.total_in = t.total_out = 0, t.data_type = Dr;
        let n = t.state;
        return n.pending = 0, n.pending_out = 0, n.wrap < 0 && (n.wrap = -n.wrap), n.status = n.wrap === 2 ? Ji : n.wrap ? et : Ne, t.adler = n.wrap === 2 ? 0 : 1, n.last_flush = -2, dr(n), j;
    }, cs = t => {
        let n = ls(t);
        return n === j && Mr(t.state), n;
    }, Fr = (t, n) => Rt(t) || t.state.wrap !== 2 ? oe : (t.state.gzhead = n, j), ps = (t, n, e, i, a, s) => {
        if (!t) return oe;
        let l = 1;
        if (n === gr && (n = 6), i < 0 ? (l = 0, i = -i) : i > 15 && (l = 2, i -= 16), a < 1 || a > wr || e !== oi || i < 8 || i > 15 || n < 0 || n > 9 || s < 0 || s > yr || i === 8 && l !== 1) return ze(t, oe);
        i === 8 && (i = 9);
        let o = new Ur();
        return t.state = o, o.strm = t, o.status = et, o.wrap = l, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = a + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + T - 1) / T), o.window = new Uint8Array(o.w_size * 2), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << a + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = (o.lit_bufsize - 1) * 3, o.level = n, o.strategy = s, o.method = e, cs(t);
    }, $r = (t, n) => ps(t, n, oi, xr, Tr, vr), Br = (t, n) => {
        if (Rt(t) || n > ha || n < 0) return t ? ze(t, oe) : oe;
        let e = t.state;
        if (!t.output || t.avail_in !== 0 && !t.input || e.status === ft && n !== te) return ze(t, t.avail_out === 0 ? Ii : oe);
        let i = e.last_flush;
        if (e.last_flush = n, e.pending !== 0) {
            if (J(t), t.avail_out === 0) return e.last_flush = -1, j;
        } else if (t.avail_in === 0 && ua(n) <= ua(i) && n !== te) return ze(t, Ii);
        if (e.status === ft && t.avail_in !== 0) return ze(t, Ii);
        if (e.status === et && e.wrap === 0 && (e.status = Ne), e.status === et) {
            let a = oi + (e.w_bits - 8 << 4) << 8,
                s = -1;
            if (e.strategy >= Xt || e.level < 2 ? s = 0 : e.level < 6 ? s = 1 : e.level === 6 ? s = 2 : s = 3, a |= s << 6, e.strstart !== 0 && (a |= Pr), a += 31 - a % 31, ht(e, a), e.strstart !== 0 && (ht(e, t.adler >>> 16), ht(e, t.adler & 65535)), t.adler = 1, e.status = Ne, J(t), e.pending !== 0) return e.last_flush = -1, j;
        }
        if (e.status === Ji) {
            if (t.adler = 0, P(e, 31), P(e, 139), P(e, 8), e.gzhead) P(e, (e.gzhead.text ? 1 : 0) + (e.gzhead.hcrc ? 2 : 0) + (e.gzhead.extra ? 4 : 0) + (e.gzhead.name ? 8 : 0) + (e.gzhead.comment ? 16 : 0)), P(e, e.gzhead.time & 255), P(e, e.gzhead.time >> 8 & 255), P(e, e.gzhead.time >> 16 & 255), P(e, e.gzhead.time >> 24 & 255), P(e, e.level === 9 ? 2 : e.strategy >= Xt || e.level < 2 ? 4 : 0), P(e, e.gzhead.os & 255), e.gzhead.extra && e.gzhead.extra.length && (P(e, e.gzhead.extra.length & 255), P(e, e.gzhead.extra.length >> 8 & 255)), e.gzhead.hcrc && (t.adler = V(t.adler, e.pending_buf, e.pending, 0)), e.gzindex = 0, e.status = Gi;
            else if (P(e, 0), P(e, 0), P(e, 0), P(e, 0), P(e, 0), P(e, e.level === 9 ? 2 : e.strategy >= Xt || e.level < 2 ? 4 : 0), P(e, Or), e.status = Ne, J(t), e.pending !== 0) return e.last_flush = -1, j;
        }
        if (e.status === Gi) {
            if (e.gzhead.extra) {
                let a = e.pending,
                    s = (e.gzhead.extra.length & 65535) - e.gzindex;
                for (; e.pending + s > e.pending_buf_size;) {
                    let o = e.pending_buf_size - e.pending;
                    if (e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex, e.gzindex + o), e.pending), e.pending = e.pending_buf_size, e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a)), e.gzindex += o, J(t), e.pending !== 0) return e.last_flush = -1, j;
                    a = 0, s -= o;
                }
                let l = new Uint8Array(e.gzhead.extra);
                e.pending_buf.set(l.subarray(e.gzindex, e.gzindex + s), e.pending), e.pending += s, e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a)), e.gzindex = 0;
            }
            e.status = ji;
        }
        if (e.status === ji) {
            if (e.gzhead.name) {
                let a = e.pending,
                    s;
                do {
                    if (e.pending === e.pending_buf_size) {
                        if (e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a)), J(t), e.pending !== 0) return e.last_flush = -1, j;
                        a = 0;
                    }
                    e.gzindex < e.gzhead.name.length ? s = e.gzhead.name.charCodeAt(e.gzindex++) & 255 : s = 0, P(e, s);
                } while (s !== 0);
                e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a)), e.gzindex = 0;
            }
            e.status = Zi;
        }
        if (e.status === Zi) {
            if (e.gzhead.comment) {
                let a = e.pending,
                    s;
                do {
                    if (e.pending === e.pending_buf_size) {
                        if (e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a)), J(t), e.pending !== 0) return e.last_flush = -1, j;
                        a = 0;
                    }
                    e.gzindex < e.gzhead.comment.length ? s = e.gzhead.comment.charCodeAt(e.gzindex++) & 255 : s = 0, P(e, s);
                } while (s !== 0);
                e.gzhead.hcrc && e.pending > a && (t.adler = V(t.adler, e.pending_buf, e.pending - a, a));
            }
            e.status = qi;
        }
        if (e.status === qi) {
            if (e.gzhead.hcrc) {
                if (e.pending + 2 > e.pending_buf_size && (J(t), e.pending !== 0)) return e.last_flush = -1, j;
                P(e, t.adler & 255), P(e, t.adler >> 8 & 255), t.adler = 0;
            }
            if (e.status = Ne, J(t), e.pending !== 0) return e.last_flush = -1, j;
        }
        if (t.avail_in !== 0 || e.lookahead !== 0 || n !== Ae && e.status !== ft) {
            let a = e.level === 0 ? rs(e, n) : e.strategy === Xt ? Hr(e, n) : e.strategy === Er ? Lr(e, n) : ut[e.level].func(e, n);
            if ((a === He || a === at) && (e.status = ft), a === q || a === He) return t.avail_out === 0 && (e.last_flush = -1), j;
            if (a === nt && (n === ur ? fr(e) : n !== ha && (Bi(e, 0, 0, !1), n === _r && (we(e.head), e.lookahead === 0 && (e.strstart = 0, e.block_start = 0, e.insert = 0))), J(t), t.avail_out === 0)) return e.last_flush = -1, j;
        }
        return n !== te ? j : e.wrap <= 0 ? fa : (e.wrap === 2 ? (P(e, t.adler & 255), P(e, t.adler >> 8 & 255), P(e, t.adler >> 16 & 255), P(e, t.adler >> 24 & 255), P(e, t.total_in & 255), P(e, t.total_in >> 8 & 255), P(e, t.total_in >> 16 & 255), P(e, t.total_in >> 24 & 255)) : (ht(e, t.adler >>> 16), ht(e, t.adler & 65535)), J(t), e.wrap > 0 && (e.wrap = -e.wrap), e.pending !== 0 ? j : fa);
    }, Vr = t => {
        if (Rt(t)) return oe;
        let n = t.state.status;
        return t.state = null, n === Ne ? ze(t, mr) : j;
    }, Gr = (t, n) => {
        let e = n.length;
        if (Rt(t)) return oe;
        let i = t.state,
            a = i.wrap;
        if (a === 2 || a === 1 && i.status !== et || i.lookahead) return oe;
        if (a === 1 && (t.adler = Dt(t.adler, n, e, 0)), i.wrap = 0, e >= i.w_size) {
            a === 0 && (we(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0);
            let d = new Uint8Array(i.w_size);
            d.set(n.subarray(e - i.w_size, e), 0), n = d, e = i.w_size;
        }
        let s = t.avail_in,
            l = t.next_in,
            o = t.input;
        for (t.avail_in = e, t.next_in = 0, t.input = n, tt(i); i.lookahead >= T;) {
            let d = i.strstart,
                r = i.lookahead - (T - 1);
            do i.ins_h = Re(i, i.ins_h, i.window[d + T - 1]), i.prev[d & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = d, d++; while (--r);
            i.strstart = d, i.lookahead = T - 1, tt(i);
        }
        return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = T - 1, i.match_available = 0, t.next_in = l, t.input = o, t.avail_in = s, i.wrap = a, j;
    }, jr = $r, Zr = ps, qr = cs, Yr = ls, Wr = Fr, Kr = Br, Xr = Vr, Qr = Gr, Jr = "pako deflate (from Nodeca project)", mt = {
        deflateInit: jr,
        deflateInit2: Zr,
        deflateReset: qr,
        deflateResetKeep: Yr,
        deflateSetHeader: Wr,
        deflate: Kr,
        deflateEnd: Xr,
        deflateSetDictionary: Qr,
        deflateInfo: Jr
    }, el = (t, n) => Object.prototype.hasOwnProperty.call(t, n), tl = function(t) {
        let n = Array.prototype.slice.call(arguments, 1);
        for (; n.length;) {
            let e = n.shift();
            if (e) {
                if (typeof e != "object") throw new TypeError(e + "must be non-object");
                for (let i in e) el(e, i) && (t[i] = e[i]);
            }
        }
        return t;
    }, il = t => {
        let n = 0;
        for (let i = 0, a = t.length; i < a; i++) n += t[i].length;
        let e = new Uint8Array(n);
        for (let i = 0, a = 0, s = t.length; i < s; i++) {
            let l = t[i];
            e.set(l, a), a += l.length;
        }
        return e;
    }, ri = {
        assign: tl,
        flattenChunks: il
    }, ds = !0;
    try {
        String.fromCharCode.apply(null, new Uint8Array(1));
    } catch {
        ds = !1;
    }
    wt = new Uint8Array(256);
    for (let t = 0; t < 256; t++) wt[t] = t >= 252 ? 6 : t >= 248 ? 5 : t >= 240 ? 4 : t >= 224 ? 3 : t >= 192 ? 2 : 1;
    wt[254] = wt[254] = 1;
    nl = t => {
        if (typeof TextEncoder == "function" && TextEncoder.prototype.encode) return new TextEncoder().encode(t);
        let n, e, i, a, s, l = t.length,
            o = 0;
        for (a = 0; a < l; a++) e = t.charCodeAt(a), (e & 64512) === 55296 && a + 1 < l && (i = t.charCodeAt(a + 1), (i & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (i - 56320), a++)), o += e < 128 ? 1 : e < 2048 ? 2 : e < 65536 ? 3 : 4;
        for (n = new Uint8Array(o), s = 0, a = 0; s < o; a++) e = t.charCodeAt(a), (e & 64512) === 55296 && a + 1 < l && (i = t.charCodeAt(a + 1), (i & 64512) === 56320 && (e = 65536 + (e - 55296 << 10) + (i - 56320), a++)), e < 128 ? n[s++] = e : e < 2048 ? (n[s++] = 192 | e >>> 6, n[s++] = 128 | e & 63) : e < 65536 ? (n[s++] = 224 | e >>> 12, n[s++] = 128 | e >>> 6 & 63, n[s++] = 128 | e & 63) : (n[s++] = 240 | e >>> 18, n[s++] = 128 | e >>> 12 & 63, n[s++] = 128 | e >>> 6 & 63, n[s++] = 128 | e & 63);
        return n;
    }, al = (t, n) => {
        if (n < 65534 && t.subarray && ds) return String.fromCharCode.apply(null, t.length === n ? t : t.subarray(0, n));
        let e = "";
        for (let i = 0; i < n; i++) e += String.fromCharCode(t[i]);
        return e;
    }, sl = (t, n) => {
        let e = n || t.length;
        if (typeof TextDecoder == "function" && TextDecoder.prototype.decode) return new TextDecoder().decode(t.subarray(0, n));
        let i, a, s = new Array(e * 2);
        for (a = 0, i = 0; i < e;) {
            let l = t[i++];
            if (l < 128) {
                s[a++] = l;
                continue;
            }
            let o = wt[l];
            if (o > 4) {
                s[a++] = 65533, i += o - 1;
                continue;
            }
            for (l &= o === 2 ? 31 : o === 3 ? 15 : 7; o > 1 && i < e;) l = l << 6 | t[i++] & 63, o--;
            if (o > 1) {
                s[a++] = 65533;
                continue;
            }
            l < 65536 ? s[a++] = l : (l -= 65536, s[a++] = 55296 | l >> 10 & 1023, s[a++] = 56320 | l & 1023);
        }
        return al(s, a);
    }, ol = (t, n) => {
        n = n || t.length, n > t.length && (n = t.length);
        let e = n - 1;
        for (; e >= 0 && (t[e] & 192) === 128;) e--;
        return e < 0 || e === 0 ? n : e + wt[t[e]] > n ? e : n;
    }, xt = {
        string2buf: nl,
        buf2string: sl,
        utf8border: ol
    };
    hs = rl, fs = Object.prototype.toString, {
        Z_NO_FLUSH: ll,
        Z_SYNC_FLUSH: cl,
        Z_FULL_FLUSH: pl,
        Z_FINISH: dl,
        Z_OK: ai,
        Z_STREAM_END: hl,
        Z_DEFAULT_COMPRESSION: fl,
        Z_DEFAULT_STRATEGY: ul,
        Z_DEFLATED: _l
    } = Ue;
    St.prototype.push = function(t, n) {
        let e = this.strm,
            i = this.options.chunkSize,
            a, s;
        if (this.ended) return !1;
        for (n === ~~n ? s = n : s = n === !0 ? dl : ll, typeof t == "string" ? e.input = xt.string2buf(t) : fs.call(t) === "[object ArrayBuffer]" ? e.input = new Uint8Array(t) : e.input = t, e.next_in = 0, e.avail_in = e.input.length;;) {
            if (e.avail_out === 0 && (e.output = new Uint8Array(i), e.next_out = 0, e.avail_out = i), (s === cl || s === pl) && e.avail_out <= 6) {
                this.onData(e.output.subarray(0, e.next_out)), e.avail_out = 0;
                continue;
            }
            if (a = mt.deflate(e, s), a === hl) return e.next_out > 0 && this.onData(e.output.subarray(0, e.next_out)), a = mt.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === ai;
            if (e.avail_out === 0) {
                this.onData(e.output);
                continue;
            }
            if (s > 0 && e.next_out > 0) {
                this.onData(e.output.subarray(0, e.next_out)), e.avail_out = 0;
                continue;
            }
            if (e.avail_in === 0) break;
        }
        return !0;
    };
    St.prototype.onData = function(t) {
        this.chunks.push(t);
    };
    St.prototype.onEnd = function(t) {
        t === ai && (this.result = ri.flattenChunks(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg;
    };
    bl = St, El = en, yl = ml, vl = gl, Dl = Ue, wl = {
        Deflate: bl,
        deflate: El,
        deflateRaw: yl,
        gzip: vl,
        constants: Dl
    }, Qt = 16209, xl = 16191, Tl = function(n, e) {
        let i, a, s, l, o, d, r, c, E, h, p, m, U, A, v, O, w, f, S, B, g, L, R, y, x = n.state;
        i = n.next_in, R = n.input, a = i + (n.avail_in - 5), s = n.next_out, y = n.output, l = s - (e - n.avail_out), o = s + (n.avail_out - 257), d = x.dmax, r = x.wsize, c = x.whave, E = x.wnext, h = x.window, p = x.hold, m = x.bits, U = x.lencode, A = x.distcode, v = (1 << x.lenbits) - 1, O = (1 << x.distbits) - 1;
        e: do {
            m < 15 && (p += R[i++] << m, m += 8, p += R[i++] << m, m += 8), w = U[p & v];
            t: for (;;) {
                if (f = w >>> 24, p >>>= f, m -= f, f = w >>> 16 & 255, f === 0) y[s++] = w & 65535;
                else if (f & 16) {
                    S = w & 65535, f &= 15, f && (m < f && (p += R[i++] << m, m += 8), S += p & (1 << f) - 1, p >>>= f, m -= f), m < 15 && (p += R[i++] << m, m += 8, p += R[i++] << m, m += 8), w = A[p & O];
                    i: for (;;) {
                        if (f = w >>> 24, p >>>= f, m -= f, f = w >>> 16 & 255, f & 16) {
                            if (B = w & 65535, f &= 15, m < f && (p += R[i++] << m, m += 8, m < f && (p += R[i++] << m, m += 8)), B += p & (1 << f) - 1, B > d) {
                                n.msg = "invalid distance too far back", x.mode = Qt;
                                break e;
                            }
                            if (p >>>= f, m -= f, f = s - l, B > f) {
                                if (f = B - f, f > c && x.sane) {
                                    n.msg = "invalid distance too far back", x.mode = Qt;
                                    break e;
                                }
                                if (g = 0, L = h, E === 0) {
                                    if (g += r - f, f < S) {
                                        S -= f;
                                        do y[s++] = h[g++]; while (--f);
                                        g = s - B, L = y;
                                    }
                                } else if (E < f) {
                                    if (g += r + E - f, f -= E, f < S) {
                                        S -= f;
                                        do y[s++] = h[g++]; while (--f);
                                        if (g = 0, E < S) {
                                            f = E, S -= f;
                                            do y[s++] = h[g++]; while (--f);
                                            g = s - B, L = y;
                                        }
                                    }
                                } else if (g += E - f, f < S) {
                                    S -= f;
                                    do y[s++] = h[g++]; while (--f);
                                    g = s - B, L = y;
                                }
                                for (; S > 2;) y[s++] = L[g++], y[s++] = L[g++], y[s++] = L[g++], S -= 3;
                                S && (y[s++] = L[g++], S > 1 && (y[s++] = L[g++]));
                            } else {
                                g = s - B;
                                do y[s++] = y[g++], y[s++] = y[g++], y[s++] = y[g++], S -= 3; while (S > 2);
                                S && (y[s++] = y[g++], S > 1 && (y[s++] = y[g++]));
                            }
                        } else if ((f & 64) === 0) {
                            w = A[(w & 65535) + (p & (1 << f) - 1)];
                            continue i;
                        } else {
                            n.msg = "invalid distance code", x.mode = Qt;
                            break e;
                        }
                        break;
                    }
                } else if ((f & 64) === 0) {
                    w = U[(w & 65535) + (p & (1 << f) - 1)];
                    continue t;
                } else if (f & 32) {
                    x.mode = xl;
                    break e;
                } else {
                    n.msg = "invalid literal/length code", x.mode = Qt;
                    break e;
                }
                break;
            }
        } while (i < a && s < o);
        S = m >> 3, i -= S, m -= S << 3, p &= (1 << m) - 1, n.next_in = i, n.next_out = s, n.avail_in = i < a ? 5 + (a - i) : 5 - (i - a), n.avail_out = s < o ? 257 + (o - s) : 257 - (s - o), x.hold = p, x.bits = m;
    }, Qe = 15, _a = 852, ma = 592, ga = 0, Pi = 1, ba = 2, Al = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), Rl = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), Sl = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), Cl = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]), Il = (t, n, e, i, a, s, l, o) => {
        let d = o.bits,
            r = 0,
            c = 0,
            E = 0,
            h = 0,
            p = 0,
            m = 0,
            U = 0,
            A = 0,
            v = 0,
            O = 0,
            w, f, S, B, g, L = null,
            R, y = new Uint16Array(Qe + 1),
            x = new Uint16Array(Qe + 1),
            Se = null,
            an, It, kt;
        for (r = 0; r <= Qe; r++) y[r] = 0;
        for (c = 0; c < i; c++) y[n[e + c]]++;
        for (p = d, h = Qe; h >= 1 && y[h] === 0; h--);
        if (p > h && (p = h), h === 0) return a[s++] = 1 << 24 | 64 << 16 | 0, a[s++] = 1 << 24 | 64 << 16 | 0, o.bits = 1, 0;
        for (E = 1; E < h && y[E] === 0; E++);
        for (p < E && (p = E), A = 1, r = 1; r <= Qe; r++)
            if (A <<= 1, A -= y[r], A < 0) return -1;
        if (A > 0 && (t === ga || h !== 1)) return -1;
        for (x[1] = 0, r = 1; r < Qe; r++) x[r + 1] = x[r] + y[r];
        for (c = 0; c < i; c++) n[e + c] !== 0 && (l[x[n[e + c]]++] = c);
        if (t === ga ? (L = Se = l, R = 20) : t === Pi ? (L = Al, Se = Rl, R = 257) : (L = Sl, Se = Cl, R = 0), O = 0, c = 0, r = E, g = s, m = p, U = 0, S = -1, v = 1 << p, B = v - 1, t === Pi && v > _a || t === ba && v > ma) return 1;
        for (;;) {
            an = r - U, l[c] + 1 < R ? (It = 0, kt = l[c]) : l[c] >= R ? (It = Se[l[c] - R], kt = L[l[c] - R]) : (It = 96, kt = 0), w = 1 << r - U, f = 1 << m, E = f;
            do f -= w, a[g + (O >> U) + f] = an << 24 | It << 16 | kt | 0; while (f !== 0);
            for (w = 1 << r - 1; O & w;) w >>= 1;
            if (w !== 0 ? (O &= w - 1, O += w) : O = 0, c++, --y[r] === 0) {
                if (r === h) break;
                r = n[e + l[c]];
            }
            if (r > p && (O & B) !== S) {
                for (U === 0 && (U = p), g += E, m = r - U, A = 1 << m; m + U < h && (A -= y[m + U], !(A <= 0));) m++, A <<= 1;
                if (v += 1 << m, t === Pi && v > _a || t === ba && v > ma) return 1;
                S = O & B, a[S] = p << 24 | m << 16 | g - s | 0;
            }
        }
        return O !== 0 && (a[g + O] = r - U << 24 | 64 << 16 | 0), o.bits = p, 0;
    }, gt = Il, kl = 0, us = 1, _s = 2, {
        Z_FINISH: Ea,
        Z_BLOCK: Pl,
        Z_TREES: Jt,
        Z_OK: Me,
        Z_STREAM_END: Ol,
        Z_NEED_DICT: Nl,
        Z_STREAM_ERROR: ie,
        Z_DATA_ERROR: ms,
        Z_MEM_ERROR: gs,
        Z_BUF_ERROR: zl,
        Z_DEFLATED: ya
    } = Ue, li = 16180, va = 16181, Da = 16182, wa = 16183, xa = 16184, Ta = 16185, Aa = 16186, Ra = 16187, Sa = 16188, Ca = 16189, si = 16190, _e = 16191, Oi = 16192, Ia = 16193, Ni = 16194, ka = 16195, Pa = 16196, Oa = 16197, Na = 16198, ei = 16199, ti = 16200, za = 16201, La = 16202, Ha = 16203, Ma = 16204, Ua = 16205, zi = 16206, Fa = 16207, $a = 16208, M = 16209, bs = 16210, Es = 16211, Ll = 852, Hl = 592, Ml = 15, Ul = Ml, Ba = t => (t >>> 24 & 255) + (t >>> 8 & 65280) + ((t & 65280) << 8) + ((t & 255) << 24);
    Fe = t => {
        if (!t) return 1;
        let n = t.state;
        return !n || n.strm !== t || n.mode < li || n.mode > Es ? 1 : 0;
    }, ys = t => {
        if (Fe(t)) return ie;
        let n = t.state;
        return t.total_in = t.total_out = n.total = 0, t.msg = "", n.wrap && (t.adler = n.wrap & 1), n.mode = li, n.last = 0, n.havedict = 0, n.flags = -1, n.dmax = 32768, n.head = null, n.hold = 0, n.bits = 0, n.lencode = n.lendyn = new Int32Array(Ll), n.distcode = n.distdyn = new Int32Array(Hl), n.sane = 1, n.back = -1, Me;
    }, vs = t => {
        if (Fe(t)) return ie;
        let n = t.state;
        return n.wsize = 0, n.whave = 0, n.wnext = 0, ys(t);
    }, Ds = (t, n) => {
        let e;
        if (Fe(t)) return ie;
        let i = t.state;
        return n < 0 ? (e = 0, n = -n) : (e = (n >> 4) + 5, n < 48 && (n &= 15)), n && (n < 8 || n > 15) ? ie : (i.window !== null && i.wbits !== n && (i.window = null), i.wrap = e, i.wbits = n, vs(t));
    }, ws = (t, n) => {
        if (!t) return ie;
        let e = new Fl();
        t.state = e, e.strm = t, e.window = null, e.mode = li;
        let i = Ds(t, n);
        return i !== Me && (t.state = null), i;
    }, $l = t => ws(t, Ul), Va = !0, Bl = t => {
        if (Va) {
            Li = new Int32Array(512), Hi = new Int32Array(32);
            let n = 0;
            for (; n < 144;) t.lens[n++] = 8;
            for (; n < 256;) t.lens[n++] = 9;
            for (; n < 280;) t.lens[n++] = 7;
            for (; n < 288;) t.lens[n++] = 8;
            for (gt(us, t.lens, 0, 288, Li, 0, t.work, {
                    bits: 9
                }), n = 0; n < 32;) t.lens[n++] = 5;
            gt(_s, t.lens, 0, 32, Hi, 0, t.work, {
                bits: 5
            }), Va = !1;
        }
        t.lencode = Li, t.lenbits = 9, t.distcode = Hi, t.distbits = 5;
    }, xs = (t, n, e, i) => {
        let a, s = t.state;
        return s.window === null && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new Uint8Array(s.wsize)), i >= s.wsize ? (s.window.set(n.subarray(e - s.wsize, e), 0), s.wnext = 0, s.whave = s.wsize) : (a = s.wsize - s.wnext, a > i && (a = i), s.window.set(n.subarray(e - i, e - i + a), s.wnext), i -= a, i ? (s.window.set(n.subarray(e - i, e), 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += a, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += a))), 0;
    }, Vl = (t, n) => {
        let e, i, a, s, l, o, d, r, c, E, h, p, m, U, A = 0,
            v, O, w, f, S, B, g, L, R = new Uint8Array(4),
            y, x, Se = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
        if (Fe(t) || !t.output || !t.input && t.avail_in !== 0) return ie;
        e = t.state, e.mode === _e && (e.mode = Oi), l = t.next_out, a = t.output, d = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, r = e.hold, c = e.bits, E = o, h = d, L = Me;
        e: for (;;) switch (e.mode) {
            case li:
                if (e.wrap === 0) {
                    e.mode = Oi;
                    break;
                }
                for (; c < 16;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if (e.wrap & 2 && r === 35615) {
                    e.wbits === 0 && (e.wbits = 15), e.check = 0, R[0] = r & 255, R[1] = r >>> 8 & 255, e.check = V(e.check, R, 2, 0), r = 0, c = 0, e.mode = va;
                    break;
                }
                if (e.head && (e.head.done = !1), !(e.wrap & 1) || (((r & 255) << 8) + (r >> 8)) % 31) {
                    t.msg = "incorrect header check", e.mode = M;
                    break;
                }
                if ((r & 15) !== ya) {
                    t.msg = "unknown compression method", e.mode = M;
                    break;
                }
                if (r >>>= 4, c -= 4, g = (r & 15) + 8, e.wbits === 0 && (e.wbits = g), g > 15 || g > e.wbits) {
                    t.msg = "invalid window size", e.mode = M;
                    break;
                }
                e.dmax = 1 << e.wbits, e.flags = 0, t.adler = e.check = 1, e.mode = r & 512 ? Ca : _e, r = 0, c = 0;
                break;
            case va:
                for (; c < 16;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if (e.flags = r, (e.flags & 255) !== ya) {
                    t.msg = "unknown compression method", e.mode = M;
                    break;
                }
                if (e.flags & 57344) {
                    t.msg = "unknown header flags set", e.mode = M;
                    break;
                }
                e.head && (e.head.text = r >> 8 & 1), e.flags & 512 && e.wrap & 4 && (R[0] = r & 255, R[1] = r >>> 8 & 255, e.check = V(e.check, R, 2, 0)), r = 0, c = 0, e.mode = Da;
            case Da:
                for (; c < 32;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                e.head && (e.head.time = r), e.flags & 512 && e.wrap & 4 && (R[0] = r & 255, R[1] = r >>> 8 & 255, R[2] = r >>> 16 & 255, R[3] = r >>> 24 & 255, e.check = V(e.check, R, 4, 0)), r = 0, c = 0, e.mode = wa;
            case wa:
                for (; c < 16;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                e.head && (e.head.xflags = r & 255, e.head.os = r >> 8), e.flags & 512 && e.wrap & 4 && (R[0] = r & 255, R[1] = r >>> 8 & 255, e.check = V(e.check, R, 2, 0)), r = 0, c = 0, e.mode = xa;
            case xa:
                if (e.flags & 1024) {
                    for (; c < 16;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    e.length = r, e.head && (e.head.extra_len = r), e.flags & 512 && e.wrap & 4 && (R[0] = r & 255, R[1] = r >>> 8 & 255, e.check = V(e.check, R, 2, 0)), r = 0, c = 0;
                } else e.head && (e.head.extra = null);
                e.mode = Ta;
            case Ta:
                if (e.flags & 1024 && (p = e.length, p > o && (p = o), p && (e.head && (g = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Uint8Array(e.head.extra_len)), e.head.extra.set(i.subarray(s, s + p), g)), e.flags & 512 && e.wrap & 4 && (e.check = V(e.check, i, p, s)), o -= p, s += p, e.length -= p), e.length)) break e;
                e.length = 0, e.mode = Aa;
            case Aa:
                if (e.flags & 2048) {
                    if (o === 0) break e;
                    p = 0;
                    do g = i[s + p++], e.head && g && e.length < 65536 && (e.head.name += String.fromCharCode(g)); while (g && p < o);
                    if (e.flags & 512 && e.wrap & 4 && (e.check = V(e.check, i, p, s)), o -= p, s += p, g) break e;
                } else e.head && (e.head.name = null);
                e.length = 0, e.mode = Ra;
            case Ra:
                if (e.flags & 4096) {
                    if (o === 0) break e;
                    p = 0;
                    do g = i[s + p++], e.head && g && e.length < 65536 && (e.head.comment += String.fromCharCode(g)); while (g && p < o);
                    if (e.flags & 512 && e.wrap & 4 && (e.check = V(e.check, i, p, s)), o -= p, s += p, g) break e;
                } else e.head && (e.head.comment = null);
                e.mode = Sa;
            case Sa:
                if (e.flags & 512) {
                    for (; c < 16;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    if (e.wrap & 4 && r !== (e.check & 65535)) {
                        t.msg = "header crc mismatch", e.mode = M;
                        break;
                    }
                    r = 0, c = 0;
                }
                e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = !0), t.adler = e.check = 0, e.mode = _e;
                break;
            case Ca:
                for (; c < 32;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                t.adler = e.check = Ba(r), r = 0, c = 0, e.mode = si;
            case si:
                if (e.havedict === 0) return t.next_out = l, t.avail_out = d, t.next_in = s, t.avail_in = o, e.hold = r, e.bits = c, Nl;
                t.adler = e.check = 1, e.mode = _e;
            case _e:
                if (n === Pl || n === Jt) break e;
            case Oi:
                if (e.last) {
                    r >>>= c & 7, c -= c & 7, e.mode = zi;
                    break;
                }
                for (; c < 3;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                switch (e.last = r & 1, r >>>= 1, c -= 1, r & 3) {
                    case 0:
                        e.mode = Ia;
                        break;
                    case 1:
                        if (Bl(e), e.mode = ei, n === Jt) {
                            r >>>= 2, c -= 2;
                            break e;
                        }
                        break;
                    case 2:
                        e.mode = Pa;
                        break;
                    case 3:
                        t.msg = "invalid block type", e.mode = M;
                }
                r >>>= 2, c -= 2;
                break;
            case Ia:
                for (r >>>= c & 7, c -= c & 7; c < 32;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if ((r & 65535) !== (r >>> 16 ^ 65535)) {
                    t.msg = "invalid stored block lengths", e.mode = M;
                    break;
                }
                if (e.length = r & 65535, r = 0, c = 0, e.mode = Ni, n === Jt) break e;
            case Ni:
                e.mode = ka;
            case ka:
                if (p = e.length, p) {
                    if (p > o && (p = o), p > d && (p = d), p === 0) break e;
                    a.set(i.subarray(s, s + p), l), o -= p, s += p, d -= p, l += p, e.length -= p;
                    break;
                }
                e.mode = _e;
                break;
            case Pa:
                for (; c < 14;) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if (e.nlen = (r & 31) + 257, r >>>= 5, c -= 5, e.ndist = (r & 31) + 1, r >>>= 5, c -= 5, e.ncode = (r & 15) + 4, r >>>= 4, c -= 4, e.nlen > 286 || e.ndist > 30) {
                    t.msg = "too many length or distance symbols", e.mode = M;
                    break;
                }
                e.have = 0, e.mode = Oa;
            case Oa:
                for (; e.have < e.ncode;) {
                    for (; c < 3;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    e.lens[Se[e.have++]] = r & 7, r >>>= 3, c -= 3;
                }
                for (; e.have < 19;) e.lens[Se[e.have++]] = 0;
                if (e.lencode = e.lendyn, e.lenbits = 7, y = {
                        bits: e.lenbits
                    }, L = gt(kl, e.lens, 0, 19, e.lencode, 0, e.work, y), e.lenbits = y.bits, L) {
                    t.msg = "invalid code lengths set", e.mode = M;
                    break;
                }
                e.have = 0, e.mode = Na;
            case Na:
                for (; e.have < e.nlen + e.ndist;) {
                    for (; A = e.lencode[r & (1 << e.lenbits) - 1], v = A >>> 24, O = A >>> 16 & 255, w = A & 65535, !(v <= c);) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    if (w < 16) r >>>= v, c -= v, e.lens[e.have++] = w;
                    else {
                        if (w === 16) {
                            for (x = v + 2; c < x;) {
                                if (o === 0) break e;
                                o--, r += i[s++] << c, c += 8;
                            }
                            if (r >>>= v, c -= v, e.have === 0) {
                                t.msg = "invalid bit length repeat", e.mode = M;
                                break;
                            }
                            g = e.lens[e.have - 1], p = 3 + (r & 3), r >>>= 2, c -= 2;
                        } else if (w === 17) {
                            for (x = v + 3; c < x;) {
                                if (o === 0) break e;
                                o--, r += i[s++] << c, c += 8;
                            }
                            r >>>= v, c -= v, g = 0, p = 3 + (r & 7), r >>>= 3, c -= 3;
                        } else {
                            for (x = v + 7; c < x;) {
                                if (o === 0) break e;
                                o--, r += i[s++] << c, c += 8;
                            }
                            r >>>= v, c -= v, g = 0, p = 11 + (r & 127), r >>>= 7, c -= 7;
                        }
                        if (e.have + p > e.nlen + e.ndist) {
                            t.msg = "invalid bit length repeat", e.mode = M;
                            break;
                        }
                        for (; p--;) e.lens[e.have++] = g;
                    }
                }
                if (e.mode === M) break;
                if (e.lens[256] === 0) {
                    t.msg = "invalid code -- missing end-of-block", e.mode = M;
                    break;
                }
                if (e.lenbits = 9, y = {
                        bits: e.lenbits
                    }, L = gt(us, e.lens, 0, e.nlen, e.lencode, 0, e.work, y), e.lenbits = y.bits, L) {
                    t.msg = "invalid literal/lengths set", e.mode = M;
                    break;
                }
                if (e.distbits = 6, e.distcode = e.distdyn, y = {
                        bits: e.distbits
                    }, L = gt(_s, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, y), e.distbits = y.bits, L) {
                    t.msg = "invalid distances set", e.mode = M;
                    break;
                }
                if (e.mode = ei, n === Jt) break e;
            case ei:
                e.mode = ti;
            case ti:
                if (o >= 6 && d >= 258) {
                    t.next_out = l, t.avail_out = d, t.next_in = s, t.avail_in = o, e.hold = r, e.bits = c, Tl(t, h), l = t.next_out, a = t.output, d = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, r = e.hold, c = e.bits, e.mode === _e && (e.back = -1);
                    break;
                }
                for (e.back = 0; A = e.lencode[r & (1 << e.lenbits) - 1], v = A >>> 24, O = A >>> 16 & 255, w = A & 65535, !(v <= c);) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if (O && (O & 240) === 0) {
                    for (f = v, S = O, B = w; A = e.lencode[B + ((r & (1 << f + S) - 1) >> f)], v = A >>> 24, O = A >>> 16 & 255, w = A & 65535, !(f + v <= c);) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    r >>>= f, c -= f, e.back += f;
                }
                if (r >>>= v, c -= v, e.back += v, e.length = w, O === 0) {
                    e.mode = Ua;
                    break;
                }
                if (O & 32) {
                    e.back = -1, e.mode = _e;
                    break;
                }
                if (O & 64) {
                    t.msg = "invalid literal/length code", e.mode = M;
                    break;
                }
                e.extra = O & 15, e.mode = za;
            case za:
                if (e.extra) {
                    for (x = e.extra; c < x;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    e.length += r & (1 << e.extra) - 1, r >>>= e.extra, c -= e.extra, e.back += e.extra;
                }
                e.was = e.length, e.mode = La;
            case La:
                for (; A = e.distcode[r & (1 << e.distbits) - 1], v = A >>> 24, O = A >>> 16 & 255, w = A & 65535, !(v <= c);) {
                    if (o === 0) break e;
                    o--, r += i[s++] << c, c += 8;
                }
                if ((O & 240) === 0) {
                    for (f = v, S = O, B = w; A = e.distcode[B + ((r & (1 << f + S) - 1) >> f)], v = A >>> 24, O = A >>> 16 & 255, w = A & 65535, !(f + v <= c);) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    r >>>= f, c -= f, e.back += f;
                }
                if (r >>>= v, c -= v, e.back += v, O & 64) {
                    t.msg = "invalid distance code", e.mode = M;
                    break;
                }
                e.offset = w, e.extra = O & 15, e.mode = Ha;
            case Ha:
                if (e.extra) {
                    for (x = e.extra; c < x;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    e.offset += r & (1 << e.extra) - 1, r >>>= e.extra, c -= e.extra, e.back += e.extra;
                }
                if (e.offset > e.dmax) {
                    t.msg = "invalid distance too far back", e.mode = M;
                    break;
                }
                e.mode = Ma;
            case Ma:
                if (d === 0) break e;
                if (p = h - d, e.offset > p) {
                    if (p = e.offset - p, p > e.whave && e.sane) {
                        t.msg = "invalid distance too far back", e.mode = M;
                        break;
                    }
                    p > e.wnext ? (p -= e.wnext, m = e.wsize - p) : m = e.wnext - p, p > e.length && (p = e.length), U = e.window;
                } else U = a, m = l - e.offset, p = e.length;
                p > d && (p = d), d -= p, e.length -= p;
                do a[l++] = U[m++]; while (--p);
                e.length === 0 && (e.mode = ti);
                break;
            case Ua:
                if (d === 0) break e;
                a[l++] = e.length, d--, e.mode = ti;
                break;
            case zi:
                if (e.wrap) {
                    for (; c < 32;) {
                        if (o === 0) break e;
                        o--, r |= i[s++] << c, c += 8;
                    }
                    if (h -= d, t.total_out += h, e.total += h, e.wrap & 4 && h && (t.adler = e.check = e.flags ? V(e.check, a, h, l - h) : Dt(e.check, a, h, l - h)), h = d, e.wrap & 4 && (e.flags ? r : Ba(r)) !== e.check) {
                        t.msg = "incorrect data check", e.mode = M;
                        break;
                    }
                    r = 0, c = 0;
                }
                e.mode = Fa;
            case Fa:
                if (e.wrap && e.flags) {
                    for (; c < 32;) {
                        if (o === 0) break e;
                        o--, r += i[s++] << c, c += 8;
                    }
                    if (e.wrap & 4 && r !== (e.total & 4294967295)) {
                        t.msg = "incorrect length check", e.mode = M;
                        break;
                    }
                    r = 0, c = 0;
                }
                e.mode = $a;
            case $a:
                L = Ol;
                break e;
            case M:
                L = ms;
                break e;
            case bs:
                return gs;
            case Es:
            default:
                return ie;
        }
        return t.next_out = l, t.avail_out = d, t.next_in = s, t.avail_in = o, e.hold = r, e.bits = c, (e.wsize || h !== t.avail_out && e.mode < M && (e.mode < zi || n !== Ea)) && xs(t, t.output, t.next_out, h - t.avail_out), E -= t.avail_in, h -= t.avail_out, t.total_in += E, t.total_out += h, e.total += h, e.wrap & 4 && h && (t.adler = e.check = e.flags ? V(e.check, a, h, t.next_out - h) : Dt(e.check, a, h, t.next_out - h)), t.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === _e ? 128 : 0) + (e.mode === ei || e.mode === Ni ? 256 : 0), (E === 0 && h === 0 || n === Ea) && L === Me && (L = zl), L;
    }, Gl = t => {
        if (Fe(t)) return ie;
        let n = t.state;
        return n.window && (n.window = null), t.state = null, Me;
    }, jl = (t, n) => {
        if (Fe(t)) return ie;
        let e = t.state;
        return (e.wrap & 2) === 0 ? ie : (e.head = n, n.done = !1, Me);
    }, Zl = (t, n) => {
        let e = n.length,
            i, a, s;
        return Fe(t) || (i = t.state, i.wrap !== 0 && i.mode !== si) ? ie : i.mode === si && (a = 1, a = Dt(a, n, e, 0), a !== i.check) ? ms : (s = xs(t, n, e, e), s ? (i.mode = bs, gs) : (i.havedict = 1, Me));
    }, ql = vs, Yl = Ds, Wl = ys, Kl = $l, Xl = ws, Ql = Vl, Jl = Gl, ec = jl, tc = Zl, ic = "pako inflate (from Nodeca project)", ge = {
        inflateReset: ql,
        inflateReset2: Yl,
        inflateResetKeep: Wl,
        inflateInit: Kl,
        inflateInit2: Xl,
        inflate: Ql,
        inflateEnd: Jl,
        inflateGetHeader: ec,
        inflateSetDictionary: tc,
        inflateInfo: ic
    };
    ac = nc, Ts = Object.prototype.toString, {
        Z_NO_FLUSH: sc,
        Z_FINISH: oc,
        Z_OK: Tt,
        Z_STREAM_END: Mi,
        Z_NEED_DICT: Ui,
        Z_STREAM_ERROR: rc,
        Z_DATA_ERROR: Ga,
        Z_MEM_ERROR: lc
    } = Ue;
    Ct.prototype.push = function(t, n) {
        let e = this.strm,
            i = this.options.chunkSize,
            a = this.options.dictionary,
            s, l, o;
        if (this.ended) return !1;
        for (n === ~~n ? l = n : l = n === !0 ? oc : sc, Ts.call(t) === "[object ArrayBuffer]" ? e.input = new Uint8Array(t) : e.input = t, e.next_in = 0, e.avail_in = e.input.length;;) {
            for (e.avail_out === 0 && (e.output = new Uint8Array(i), e.next_out = 0, e.avail_out = i), s = ge.inflate(e, l), s === Ui && a && (s = ge.inflateSetDictionary(e, a), s === Tt ? s = ge.inflate(e, l) : s === Ga && (s = Ui)); e.avail_in > 0 && s === Mi && e.state.wrap > 0 && t[e.next_in] !== 0;) ge.inflateReset(e), s = ge.inflate(e, l);
            switch (s) {
                case rc:
                case Ga:
                case Ui:
                case lc:
                    return this.onEnd(s), this.ended = !0, !1;
            }
            if (o = e.avail_out, e.next_out && (e.avail_out === 0 || s === Mi))
                if (this.options.to === "string") {
                    let d = xt.utf8border(e.output, e.next_out),
                        r = e.next_out - d,
                        c = xt.buf2string(e.output, d);
                    e.next_out = r, e.avail_out = i - r, r && e.output.set(e.output.subarray(d, d + r), 0), this.onData(c);
                } else this.onData(e.output.length === e.next_out ? e.output : e.output.subarray(0, e.next_out));
            if (!(s === Tt && o === 0)) {
                if (s === Mi) return s = ge.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, !0;
                if (e.avail_in === 0) break;
            }
        }
        return !0;
    };
    Ct.prototype.onData = function(t) {
        this.chunks.push(t);
    };
    Ct.prototype.onEnd = function(t) {
        t === Tt && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = ri.flattenChunks(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg;
    };
    pc = Ct, dc = tn, hc = cc, fc = tn, uc = Ue, _c = {
        Inflate: pc,
        inflate: dc,
        inflateRaw: hc,
        ungzip: fc,
        constants: uc
    }, {
        Deflate: mc,
        deflate: gc,
        deflateRaw: bc,
        gzip: Ec
    } = wl, {
        Inflate: yc,
        inflate: vc,
        inflateRaw: Dc,
        ungzip: wc
    } = _c, xc = mc, Tc = gc, Ac = bc, nn = Ec, Rc = yc, Sc = vc, Cc = Dc, Ic = wc, kc = Ue, zd = {
        Deflate: xc,
        deflate: Tc,
        deflateRaw: Ac,
        gzip: nn,
        Inflate: Rc,
        inflate: Sc,
        inflateRaw: Cc,
        ungzip: Ic,
        constants: kc
    };
});
var Is = ["overlay"],
    ks = ["*"];

function Ps(t, n) {
    t & 1 && Z(0, "div");
}

function Os(t, n) {
    if (t & 1 && (F(0, "div"), H(1, Ps, 1, 0, "div", 6), $()), t & 2) {
        let e = I(2);
        ne(e.spinner.class), zt("color", e.spinner.color), D(), b("ngForOf", e.spinner.divArray);
    }
}

function Ns(t, n) {
    if (t & 1 && (Z(0, "div", 7), xn(1, "safeHtml")), t & 2) {
        let e = I(2);
        b("innerHTML", Tn(1, 1, e.template), un);
    }
}

function zs(t, n) {
    if (t & 1 && (F(0, "div", 2, 0), H(2, Os, 2, 5, "div", 3)(3, Ns, 2, 3, "div", 4), F(4, "div", 5), lt(5), $()()), t & 2) {
        let e = I();
        zt("background-color", e.spinner.bdColor)("z-index", e.spinner.zIndex)("position", e.spinner.fullScreen ? "fixed" : "absolute"), b("@.disabled", e.disableAnimation)("@fadeIn", "in"), D(2), b("ngIf", !e.template), D(), b("ngIf", e.template), D(), zt("z-index", e.spinner.zIndex);
    }
}
var Ls = {
        "ball-8bits": 16,
        "ball-atom": 4,
        "ball-beat": 3,
        "ball-circus": 5,
        "ball-climbing-dot": 4,
        "ball-clip-rotate": 1,
        "ball-clip-rotate-multiple": 2,
        "ball-clip-rotate-pulse": 2,
        "ball-elastic-dots": 5,
        "ball-fall": 3,
        "ball-fussion": 4,
        "ball-grid-beat": 9,
        "ball-grid-pulse": 9,
        "ball-newton-cradle": 4,
        "ball-pulse": 3,
        "ball-pulse-rise": 5,
        "ball-pulse-sync": 3,
        "ball-rotate": 1,
        "ball-running-dots": 5,
        "ball-scale": 1,
        "ball-scale-multiple": 3,
        "ball-scale-pulse": 2,
        "ball-scale-ripple": 1,
        "ball-scale-ripple-multiple": 3,
        "ball-spin": 8,
        "ball-spin-clockwise": 8,
        "ball-spin-clockwise-fade": 8,
        "ball-spin-clockwise-fade-rotating": 8,
        "ball-spin-fade": 8,
        "ball-spin-fade-rotating": 8,
        "ball-spin-rotate": 2,
        "ball-square-clockwise-spin": 8,
        "ball-square-spin": 8,
        "ball-triangle-path": 3,
        "ball-zig-zag": 2,
        "ball-zig-zag-deflect": 2,
        cog: 1,
        "cube-transition": 2,
        fire: 3,
        "line-scale": 5,
        "line-scale-party": 5,
        "line-scale-pulse-out": 5,
        "line-scale-pulse-out-rapid": 5,
        "line-spin-clockwise-fade": 8,
        "line-spin-clockwise-fade-rotating": 8,
        "line-spin-fade": 8,
        "line-spin-fade-rotating": 8,
        pacman: 6,
        "square-jelly-box": 2,
        "square-loader": 1,
        "square-spin": 1,
        timer: 1,
        "triangle-skew-spin": 1
    },
    yi = {
        BD_COLOR: "rgba(51,51,51,0.8)",
        SPINNER_COLOR: "#fff",
        Z_INDEX: 99999
    },
    vi = "primary",
    Pe = class t {
        constructor(n) {
            Object.assign(this, n);
        }
        static create(n) {
            return !n ? .template && !n ? .type && console.warn(`[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component
        and ensure css is added to angular.json file`), new t(n);
        }
    },
    Hs = (() => {
        class t {
            constructor() {
                this.spinnerObservable = new sn(null);
            }
            getSpinner(e) {
                return this.spinnerObservable.asObservable().pipe(C(i => i && i.name === e));
            }
            show(e = vi, i) {
                return new Promise((a, s) => {
                    setTimeout(() => {
                        i && Object.keys(i).length ? (i.name = e, this.spinnerObservable.next(new Pe(Pt(Ce({}, i), {
                            show: !0
                        }))), a(!0)) : (this.spinnerObservable.next(new Pe({
                            name: e,
                            show: !0
                        })), a(!0));
                    }, 10);
                });
            }
            hide(e = vi, i = 10) {
                return new Promise((a, s) => {
                    setTimeout(() => {
                        this.spinnerObservable.next(new Pe({
                            name: e,
                            show: !1
                        })), a(!0);
                    }, i);
                });
            }
            static {
                this.ɵfac = function(i) {
                    return new(i || t)();
                };
            }
            static {
                this.ɵprov = Y({
                    token: t,
                    factory: t.ɵfac,
                    providedIn: "root"
                });
            }
        }
        return t;
    })(),
    Wn = new pn("NGX_SPINNER_CONFIG"),
    Ms = (() => {
        class t {
            constructor(e) {
                this._sanitizer = e;
            }
            transform(e) {
                if (e) return this._sanitizer.bypassSecurityTrustHtml(e);
            }
            static {
                this.ɵfac = function(i) {
                    return new(i || t)(Ve(Ln, 16));
                };
            }
            static {
                this.ɵpipe = mn({
                    name: "safeHtml",
                    type: t,
                    pure: !0,
                    standalone: !1
                });
            }
        }
        return t;
    })(),
    Wc = (() => {
        class t {
            constructor(e, i, a, s) {
                this.spinnerService = e, this.changeDetector = i, this.elementRef = a, this.globalConfig = s, this.disableAnimation = !1, this.spinner = new Pe(), this.ngUnsubscribe = new $e(), this.setDefaultOptions = () => {
                    let {
                        type: l
                    } = this.globalConfig ? ? {};
                    this.spinner = Pe.create({
                        name: this.name,
                        bdColor: this.bdColor,
                        size: this.size,
                        color: this.color,
                        type: this.type ? ? l,
                        fullScreen: this.fullScreen,
                        divArray: this.divArray,
                        divCount: this.divCount,
                        show: this.show,
                        zIndex: this.zIndex,
                        template: this.template,
                        showSpinner: this.showSpinner
                    });
                }, this.bdColor = yi.BD_COLOR, this.zIndex = yi.Z_INDEX, this.color = yi.SPINNER_COLOR, this.size = "large", this.fullScreen = !0, this.name = vi, this.template = null, this.showSpinner = !1, this.divArray = [], this.divCount = 0, this.show = !1;
            }
            initObservable() {
                this.spinnerService.getSpinner(this.name).pipe(cn(this.ngUnsubscribe)).subscribe(e => {
                    this.setDefaultOptions(), Object.assign(this.spinner, e), e.show && this.onInputChange(), this.changeDetector.detectChanges();
                });
            }
            ngOnInit() {
                this.setDefaultOptions(), this.initObservable();
            }
            isSpinnerZone(e) {
                return e === this.elementRef.nativeElement.parentElement ? !0 : e.parentNode && this.isSpinnerZone(e.parentNode);
            }
            ngOnChanges(e) {
                for (let i in e)
                    if (i) {
                        let a = e[i];
                        if (a.isFirstChange()) return;
                        typeof a.currentValue < "u" && a.currentValue !== a.previousValue && a.currentValue !== "" && (this.spinner[i] = a.currentValue, i === "showSpinner" && (a.currentValue ? this.spinnerService.show(this.spinner.name, this.spinner) : this.spinnerService.hide(this.spinner.name)), i === "name" && this.initObservable());
                    }
            }
            getClass(e, i) {
                this.spinner.divCount = Ls[e], this.spinner.divArray = Array(this.spinner.divCount).fill(0).map((s, l) => l);
                let a = "";
                switch (i.toLowerCase()) {
                    case "small":
                        a = "la-sm";
                        break;
                    case "medium":
                        a = "la-2x";
                        break;
                    case "large":
                        a = "la-3x";
                        break;
                    default:
                        break;
                }
                return "la-" + e + " " + a;
            }
            onInputChange() {
                this.spinner.class = this.getClass(this.spinner.type, this.spinner.size);
            }
            ngOnDestroy() {
                this.ngUnsubscribe.next(), this.ngUnsubscribe.complete();
            }
            static {
                this.ɵfac = function(i) {
                    return new(i || t)(Ve(Hs), Ve(Rn), Ve(hn), Ve(Wn, 8));
                };
            }
            static {
                this.ɵcmp = Ee({
                    type: t,
                    selectors: [
                        ["ngx-spinner"]
                    ],
                    viewQuery: function(i, a) {
                        if (i & 1 && Ye(Is, 5), i & 2) {
                            let s;
                            W(s = K()) && (a.spinnerDOM = s.first);
                        }
                    },
                    inputs: {
                        bdColor: "bdColor",
                        size: "size",
                        color: "color",
                        type: "type",
                        fullScreen: "fullScreen",
                        name: "name",
                        zIndex: "zIndex",
                        template: "template",
                        showSpinner: "showSpinner",
                        disableAnimation: "disableAnimation"
                    },
                    standalone: !1,
                    features: [Ot],
                    ngContentSelectors: ks,
                    decls: 1,
                    vars: 1,
                    consts: [
                        ["overlay", ""],
                        ["class", "ngx-spinner-overlay", 3, "background-color", "z-index", "position", 4, "ngIf"],
                        [1, "ngx-spinner-overlay"],
                        [3, "class", "color", 4, "ngIf"],
                        [3, "innerHTML", 4, "ngIf"],
                        [1, "loading-text"],
                        [4, "ngFor", "ngForOf"],
                        [3, "innerHTML"]
                    ],
                    template: function(i, a) {
                        i & 1 && (Lt(), H(0, zs, 6, 12, "div", 1)), i & 2 && b("ngIf", a.spinner.show);
                    },
                    dependencies: [In, Mt, Ms],
                    styles: [".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],
                    data: {
                        animation: [$t("fadeIn", [Hn("in", Ie({
                            opacity: 1
                        })), Ke(":enter", [Ie({
                            opacity: 0
                        }), We(300)]), Ke(":leave", We(200, Ie({
                            opacity: 0
                        })))])]
                    },
                    changeDetection: 0
                });
            }
        }
        return t;
    })(),
    Kc = (() => {
        class t {
            static forRoot(e) {
                return {
                    ngModule: t,
                    providers: [{
                        provide: Wn,
                        useValue: e
                    }]
                };
            }
            static {
                this.ɵfac = function(i) {
                    return new(i || t)();
                };
            }
            static {
                this.ɵmod = ot({
                    type: t
                });
            }
            static {
                this.ɵinj = st({
                    imports: [Ut]
                });
            }
        }
        return t;
    })();
var u = (() => {
    class t {
        constructor() {
            this.field = "", this.header = "", this.name = "", this.position = 0, this.isDefault = !1, this.isDisplayed = !1, this.isAvailable = !1, this.sort = 0, this.sequence = "";
        }
        static {
            this.PACKAGEPIN = "packagepin";
        }
        static {
            this.SHIPMENTCREATED = "shipmentcreated";
        }
        static {
            this.PACKAGESTATUSCODE = "packagestatuscode";
        }
        static {
            this.PACKAGESTATUSCODEDESCRIPTION = "packagestatuscodedesc";
        }
        static {
            this.PACKAGESTATUSSUBCODE = "packagestatussubcode";
        }
        static {
            this.LASTEVENTDATETIME = "lasteventdatetime";
        }
        static {
            this.PIECETOTALCOUNT = "piecetotalcount";
        }
        static {
            this.PACKAGEESTIMATEDDELIVERYDATE = "packageestimateddeliverydate";
        }
        static {
            this.RECEIVERCITY = "receivercity";
        }
        static {
            this.RECEIVERPROVINCESTATE = "receiverprovincestate";
        }
        static {
            this.RECEIVERNAME = "receivername";
        }
        static {
            this.SHIPPERPOSTALZIPCODE = "shipperpostalzipcode";
        }
        static {
            this.SHIPPERACCOUNT = "shipperaccount";
        }
        static {
            this.PRODUCTCODE = "productcode";
        }
        static {
            this.PRODUCTCODEDESCRIPTION = "productcodedesc";
        }
        static {
            this.RECEIVERPOSTALZIPCODE = "receiverpostalzipcode";
        }
        static {
            this.SHIPMENTPIN = "shipmentpin";
        }
        static {
            this.SHIPMENTTYPE = "shipmenttype";
        }
        static {
            this.SHIPMENTTYPEDESCRIPTION = "shipmenttypedesc";
        }
        static {
            this.WEIGHTVALUE = "weightvalue";
        }
        static {
            this.SHIPMENTID = "shipmentid";
        }
        static {
            this.DATAQUALITY = "dataquality";
        }
        static {
            this.WEIGHTUNIT = "weightunit";
        }
        static {
            this.CONSOLIDATEDSHIPMENTPIN = "consolidatedshipmentpin";
        }
        static {
            this.NOTE = "note";
        }
        static {
            this.SHIPPERCOMPANYNAME = "shippercompanyname";
        }
        static {
            this.SHIPPERNAME = "shippername";
        }
        static {
            this.SHIPPERSTREETADDRESS1 = "shipperstreetaddress1";
        }
        static {
            this.SHIPPERSTREETADDRESS2 = "shipperstreetaddress2";
        }
        static {
            this.SHIPPERSTREETADDRESS3 = "shipperstreetaddress3";
        }
        static {
            this.SHIPPERCITY = "shippercity";
        }
        static {
            this.SHIPPERPROVINCESTATE = "shipperprovincestate";
        }
        static {
            this.SHIPPERCOUNTRYCODE = "shippercountrycode";
        }
        static {
            this.RECEIVERCOMPANYNAME = "receivercompanyname";
        }
        static {
            this.RECEIVERADDRESS1 = "receiveraddress1";
        }
        static {
            this.RECEIVERADDRESS2 = "receiveraddress2";
        }
        static {
            this.RECEIVERADDRESS3 = "receiveraddress3";
        }
        static {
            this.RECEIVERCOUNTRYCODE = "receivercountrycode";
        }
        static {
            this.PACKAGEDELIVERYNAME = "packagedeliveryname";
        }
        static {
            this.ATTENTIONREASON = "attentionreason";
        }
        static {
            this.PACKAGEDELIVERYDATETIME = "packagedeliverydatetime";
        }
        static {
            this.TRANSITDAYS = "transitdays";
        }
        static {
            this.RETURNSHIPMENT = "returnshipment";
        }
        static {
            this.PACKAGECREATED = "packagecreated";
        }
        static {
            this.PACKAGERECEIVED = "packagereceived";
        }
        static {
            this.HOLDFORPICKUPLOCATIONID = "holdforpickuplocationid";
        }
        static {
            this.LASTEVENTADDRESS1 = "lasteventaddress1";
        }
        static {
            this.LASTEVENTADDRESS2 = "lasteventaddress2";
        }
        static {
            this.LASTEVENTCITY = "lasteventcity";
        }
        static {
            this.LASTEVENTCODE = "lasteventcode";
        }
        static {
            this.LASTEVENTCOUNTRYCODE = "lasteventcountrycode";
        }
        static {
            this.LASTEVENTLAT = "lasteventlat";
        }
        static {
            this.LASTEVENTLONG = "lasteventlong";
        }
        static {
            this.LASTEVENTPIN = "lasteventpin";
        }
        static {
            this.LASTEVENTPOSTALZIPCODE = "lasteventpostalzipcode";
        }
        static {
            this.LASTEVENTPROVINCESTATE = "lasteventprovincestate";
        }
        static {
            this.LASTEVENTREASONCODE = "lasteventreasoncode";
        }
        static {
            this.LASTEVENTTIMEZONE = "lasteventtimezone";
        }
        static {
            this.STATUSCODE = "statuscode";
        }
        static {
            this.PACKAGEWEIGHTDECLAREDUNIT = "packageweightdeclaredunit";
        }
        static {
            this.PACKAGEWEIGHTDECLAREDVALUE = "packageweightdeclaredvalue";
        }
        static {
            this.PACKAGEWEIGHTESTIMATEDUNIT = "packageweightestimatedunit";
        }
        static {
            this.PACKAGEWEIGHTESTIMATEDVALUE = "packageweightestimatedvalue";
        }
        static {
            this.LINEOFBUSINESS = "lineofbusiness";
        }
        static {
            this.PACKAGEREFERENCES = "packagereferencevalue";
        }
        static {
            this.PCH_DANGEROUS_GOODS = "pchDangerousGoods";
        }
        static {
            this.PCH_EXPRESS_CHEQUE = "pchExpressCheque";
        }
        static {
            this.PCH_SATURDAY_DELIVERY = "pchSaturdayDelivery";
        }
        static {
            this.PCH_SATURDAY_PICKUP = "pchSaturdayPickup";
        }
        static {
            this.PCH_DECLARED_VALUE = "pchDeclaredValue";
        }
        static {
            this.PCH_SPECIAL_HANDLING = "pchSpecialHandling";
        }
        static {
            this.PCH_OSNR = "pchOsnr";
        }
        static {
            this.PCH_RES_SIG_DOM = "pchResSigDom";
        }
        static {
            this.PCH_RES_SIG_INTL = "pchResSigIntl";
        }
        static {
            this.PCH_CHAIN_OF_SIGNATURE = "pchChainOfSignature";
        }
        static {
            this.PCH_HEALTHCARE = "pchHealthcare";
        }
        static {
            this.REFERENCE1 = "referencevalue1";
        }
        static {
            this.REFERENCE2 = "referencevalue2";
        }
        static {
            this.REFERENCE3 = "referencevalue3";
        }
        static {
            this.REFERENCE4 = "referencevalue4";
        }
        static {
            this.REFERENCE5 = "referencevalue5";
        }
        static {
            this.LAST_SCAN_CODE = "lastScanEventReasonCode";
        }
        static {
            this.LAST_SCAN_REASON = "lastscaneventreasondesc";
        }
        static {
            this.PICKUP_DATE = "pickupDate";
        }
        static {
            this.PICKUP_TIME = "pickupTime";
        }
        static {
            this.TERMINAL_NAME = "terminalname";
        }
        static {
            this.PAYERACCOUNT = "payeraccount";
        }
        static {
            this.DESCRIPTION = "description";
        }
        static {
            this.X_REFERENCE = "xreference";
        }
        static {
            this.ADDRESS_CORRECTION = "packagestatussubcode.[Address Correction Required]";
        }
        static {
            this.APPOINTMENT_REQUIRED = "packagestatussubcode.[Appointment Required]";
        }
        static {
            this.PICKUP_AVAILABLE = "packagestatussubcode.[Available For Pickup]";
        }
        static {
            this.CUSTOMS = "packagestatussubcode.[Customs]";
        }
        static {
            this.DAMAGED = "packagestatussubcode.[Damaged]";
        }
        static {
            this.DELAYED = "packagestatussubcode.[Delayed]";
        }
        static {
            this.UNDEFINED = "packagestatussubcode.[Undefined]";
        }
        static {
            this.OTHER = "packagestatussubcode.[Other]";
        }
        static {
            this.RECEIVER_UNAVAILABLE = "packagestatussubcode.[Receiver Unavailable]";
        }
        static updateColumnHeader(e, i, a) {
            t.localize(e, i, a, "field", "header");
        }
        static localize(e, i, a, s, l) {
            if (!Array.isArray(e)) return;
            let o = e.reduce((d, {
                code: r,
                en: c,
                fr: E
            }) => (d[r] = {
                en: c,
                fr: E
            }, d), {});
            a.forEach(d => {
                let r = d[s];
                o[r] && (d[l] = o[r][i]);
            });
        }
        static getColumnHeaderByField(e, i, a = "en") {
            let s = e.find(l => l.code === i);
            return s ? s[a] : i || "";
        }
    }
    return t;
})();
var ve = class {
    constructor() {
        this.name = "", this.colors = [];
    }
};
var De = class t {
    constructor() {
        this.id = "", this.shipDateSelected = "Last 7 days", this.shipDateRange = "custom", this.deliveryDateSelected = "None", this.deliveryDateOption = "", this.shipDateOption = "", this.deliveryDateRange = "", this.businessLines = [], this.accountSummary = "All Accounts", this.accountPickerActive = !1, this.pinSummary = "All PINs", this.pinEntryActive = !1, this.pins = [], this.pinText = "", this.filters = [], this.selectedAccountList = [], this.selectedGroupList = [], this.defaultDate = new Date("1900-01-01"), this.selectedOrganizationId = "", this.selectedOrganizationName = "", this.accountSummaryReporting = "All Accounts", this.selectedAccountReportingList = [], this.selectedGroupReportingList = [];
    }
    init() {
        var n = null;
        this.shipDateFrom && this.shipDateTo && (n = [new Date(this.shipDateFrom), new Date(this.shipDateTo)]);
        var e = null;
        this.deliveryDateFrom && this.deliveryDateTo && (e = [new Date(this.deliveryDateFrom), new Date(this.deliveryDateTo)]), t.setShipDateSelected(this, this.shipDateSelected, n), t.setDeliveryDateSelected(this, this.deliveryDateSelected, e), t.setAccountSummary(this), t.setAccountSummaryForReporting(this, this.selectedAccountReportingList.length), t.setPinText(this);
    }
    static setShipDateSelected(n, e, i) {
        if (n.shipDateSelected = "", e === "last7") n.shipDateSelected = "Last 7 days";
        else if (e === "last14") n.shipDateSelected = "Last 14 Days";
        else if (i) {
            n.shipDateSelected = "Custom";
            var a = i.toString().split(",");
            n.shipDateSelected = t.shortDate(new Date(a[0])) + "", a[1] && (n.shipDateSelected += " to " + t.shortDate(new Date(a[1])));
        }
    }
    static setDeliveryDateSelected(n, e, i) {
        if (n.deliveryDateSelected = "", e === "next7") n.deliveryDateSelected = "Next 7 days";
        else if (e === "next14") n.deliveryDateSelected = "Next 14 Days";
        else if (i) {
            n.deliveryDateSelected = "Custom";
            var a = i.toString().split(",");
            n.deliveryDateSelected = t.shortDate(new Date(a[0])) + "", a[1] && (n.deliveryDateSelected += " to " + t.shortDate(new Date(a[1])));
        }
    }
    static setAccountSummary(n) {
        var e = n.selectedAccountList.length;
        e === 1 ? n.accountSummary = "1 Account Selected" : e > 1 ? n.accountSummary = "" + e.toString() + " Accounts Selected" : n.accountSummary = "All Accounts";
    }
    static setAccountSummaryForReporting(n, e) {
        var i = n.selectedAccountReportingList.length;
        n.accountSummaryReporting = "" + i.toString() + " of " + e + " Selected";
    }
    static setPinText(n) {
        n.pins.length === 1 ? n.pinSummary = "1 PIN Selected" : n.pins.length > 1 ? n.pinSummary = "" + n.pins.length.toString() + " PINs Selected" : n.pinSummary = "All PINs";
    }
    static shortDate(n) {
        if (n === void 0) return "";
        var e = n.getMonth() + 1,
            i = n.getDate();
        return [(e > 9 ? "" : "0") + e, (i > 9 ? "" : "0") + i].join("-");
    }
};
var Q = (() => {
    class t {
        static {
            this.PUROLATOR1 = "Purolator1";
        }
        static {
            this.PUROLATOR2 = "Purolator2";
        }
        static {
            this.PUROLATOR3 = "Purolator3";
        }
        static {
            this.PUROLATOR4 = "Purolator4";
        }
        static {
            this.PUROLATOR5 = "Purolator5";
        }
        static {
            this.PUROLATOR6 = "Purolator6";
        }
        constructor(e) {
            this.id = "", this.isVisible = !0, this.groupKey = "", this.externalDataSource = !1, this.name = "", this.titleColor = "#00529C", this.visualizationTypes = [], this.visualizationType = "", this.position = 1, this.height = 1, this.width = 1, this.series = [], this.count = 0, this.colors = [], this.backgroundColor = "#ffffff", this.showToolTip = !0, this.purolatorPalette = !0, this.fillArea = !0, this.stackData = !1, this.singleColorSeries = !0, this.editMode = !1, this.destinationDrill = !1, this.id = e, this.init();
        }
        init() {
            this.visualizationTypes = [{
                name: "Pie Chart",
                value: "pie"
            }, {
                name: "Nightingale",
                value: "nightingale"
            }, {
                name: "Line",
                value: "line"
            }, {
                name: "Vertical Bars",
                value: "bar"
            }, {
                name: "Horizontal Bars",
                value: "hbar"
            }, {
                name: "Scatter Plot",
                value: "scatter"
            }], this.id === t.PUROLATOR1 && (this.name = "Package Status", this.groupKey = "packagestatuscode", this.visualizationType = "pie"), this.id === t.PUROLATOR2 && (this.name = "Package Type", this.groupKey = "shipmenttype", this.visualizationType = "bar"), this.id === t.PUROLATOR3 && (this.name = "Estimated / Revised Delivery Date", this.groupKey = "packageestimateddeliverydate", this.visualizationType = "line"), this.id === t.PUROLATOR4 && (this.name = "Packages by Destination", this.groupKey = "receivercountrycode", this.visualizationType = "bar", this.singleColorSeries = !1, this.destinationDrill = !0), this.id === t.PUROLATOR5 && (this.name = "Service Category", this.groupKey = "productcode", this.visualizationType = "pie"), this.id === t.PUROLATOR6 && (this.name = "Attention Required Packages", this.groupKey = "packagestatussubcode", this.visualizationType = "pie");
        }
    }
    return t;
})();
var Yt = class {
    constructor() {
        this.isDefault = !1, this.isProtected = !1, this.signature = new De(), this.visualizations = [], this.columns = [], this.showVisualizations = !0, this.showDataGrid = !0, this.palette = new ve();
    }
    init() {
        if (this.id === "p1" && (this.name = "Purolator View"), this.signature && this.signature.init(), this.visualizations && this.visualizations.length > 0)
            for (let n of this.visualizations) n.init();
    }
};
var Kn = {
    production: !0,
    visionAppName: "Vision",
    pinLimit: 3e3,
    launchDate: new Date(2024, 6, 28),
    ApiBaseUrl: "https://nonprod-ship.purolator.com/vision/api",
    AuthstoreUrl: "https://nonprod-ship.purolator.com/usermanagement",
    AuthstoreApiUrl: "https://nonprod-ship.purolator.com/usermanagement/api",
    enableNotificationBannerWebSocket: !1,
    enableDevTimerInstrumentation: !1,
    enableAnalytics: !1,
    oidc: {
        issuer: "https://nonprod-commonprofile.oauth.purolator.com/oauth2/ausj0r28qrsdN1TWL1d6",
        clientId: "0oa80ol2csGNL8vAw1d7",
        postLogoutRedirectUri: "https://www.purolator.com/"
    },
    library: {
        assetsBaseURL: "https://nonprod-ship.purolator.com/my",
        s3URL: "https://nonprod-ship.purolator.com/my",
        vision: {
            appName: "Vision",
            appIntent: "vision",
            en: "https://nonprod-ship.purolator.com/vision/?lang=en",
            fr: "https://nonprod-ship.purolator.com/vision/?lang=fr"
        },
        "api-integrator": {
            appName: "API Portal",
            appIntent: "api-integrator",
            en: "https://nonprod-ship.purolator.com/developer/dashboard?lang=en",
            fr: "https://nonprod-ship.purolator.com/developer/dashboard?lang=fr"
        },
        eso: {
            appName: "Shipping",
            appIntent: "eso",
            en: "https://nonprod-ship.purolator.com/onlineship?lang=en",
            fr: "https://nonprod-ship.purolator.com/onlineship?lang=fr"
        },
        reverselogix: {
            appName: "Returns Portal",
            appIntent: "returns",
            en: "https://purolator-qa.reverselogix.io/cp_auth/login",
            fr: "https://purolator-qa.reverselogix.io/cp_auth/login"
        },
        "returns portal b2b": {
            appName: "Returns Portal B2B",
            appIntent: "returns portal b2b",
            en: "https://purolator-qa.reverselogix.io/auth/login?lang=en",
            fr: "https://purolator-qa.reverselogix.io/auth/login?lang=fr"
        },
        "user-management": "https://nonprod-ship.purolator.com/usermanagement",
        chatbot: {
            en: "https://staging-psi-omilia-purolator.ps.ringcentral.com/",
            fr: "https://staging-psi-omilia-purolator.ps.ringcentral.com/fr/"
        }
    }
};
var Xn = "SUPER_ADMIN_PERMISSION";
var rp = "REPORTING_CREATE_REPORTS",
    lp = "REPORTING_SCHEDULE_REPORT",
    cp = "REPORTING_DOWNLOAD_REPORT";
var pp = "DASHBOARD_EXPORT",
    dp = "DASHBOARD_MANAGE_WATCHLIST_NOTIFICATIONS",
    hp = "ACCESS_ALL_BILLING_ACCOUNTS",
    fp = "DASHBOARD_MANAGE_WATCHLIST",
    up = "DASHBOARD_SELECT_ORGANIZATION";
var _p = "DASHBOARD_SAVE_CURRENT_VIEW",
    mp = "DASHBOARD_FILTER_SHIPMENT_DATE",
    gp = "DASHBOARD_FILTER_ESTIMATED_DELIVERY_DATE",
    bp = "DASHBOARD_FILTER_ACCOUNTS",
    Ep = "DASHBOARD_FILTER_PINS",
    yp = "DASHBOARD_SEARCH_TABLE_VIEW",
    vp = "DASHBOARD_FILTER_TABLE_VIEW",
    Dp = "DASHBOARD_MANAGE_TABLE_VIEW_COLUMNS",
    wp = "DASHBOARD_MANAGE_SETTINGS",
    xp = "DASHBOARD_MANAGE_SETTINGS_PER_ORG";
var Tp = "DASHBOARD_MANAGE_NOTIFICATION_BANNER",
    Qn = "DASHBOARD_TABLE_VIEW_ADDRESS123",
    Ap = "REPORTING_DELETE_REPORT",
    Rp = "REPORTING_VIEW_REPORTS",
    Sp = "REPORTING_MANAGE_SCHEDULES",
    Cp = "REPORTING_VIEW_SCHEDULES",
    Ip = "REPORTING_MANAGE_TEMPLATES",
    kp = "REPORTING_VIEW_TEMPLATES",
    Pp = "REPORTING_SEND_TEMPLATE",
    Op = "DASHBOARD_IMPERSONATE_BUTTON";
var Wt = class {
    constructor() {
        this.id = "", this.firstName = "", this.lastName = "", this.email = "", this.role = "", this.status = "", this.organizationId = "", this.lastLoginDate = "", this.accounts = [], this.accountGroups = [], this.localAccountGroups = [], this.preferences = [], this.view = new Yt(), this.views = [], this.watchlists = [], this.watchlists_old = [], this.statusAlertSubscriptions = [], this.notifications = [], this.authorization = "", this.impersonatedUser = "", this.defaultDashboardSetting = !0, this.currentLanguage = "";
    }
};
var Gp = (() => {
    class t {
        constructor() {
            this.userData = new Wt();
        }
        sortVisualizations(e) {
            e.visualizations = e.visualizations.sort((i, a) => i.position > a.position ? 1 : -1);
        }
        createDefaultView(e) {
            try {
                e.id = "p1", e.init(), e.isDefault = !0, e.isProtected = !0, e.signature = new De(), e.signature.deliveryDateRange = "", e.signature.shipDateRange = "last7", e.signature.shipDateOption = "last7", e.signature.deliveryDateOption = "", e.signature.deliveryDateSelected = "", e.signature.shipDateFrom = this.minDate(7), e.signature.shipDateTo = new Date();
                let i = new Q(Q.PUROLATOR1);
                return i.position = 1, i.fillArea = !1, e.visualizations.push(i), i = new Q(Q.PUROLATOR2), i.position = 2, i.isVisible = !0, e.visualizations.push(i), i = new Q(Q.PUROLATOR3), i.position = 3, e.visualizations.push(i), i = new Q(Q.PUROLATOR4), i.position = 4, i.singleColorSeries = !1, i.destinationDrill = !0, e.visualizations.push(i), i = new Q(Q.PUROLATOR5), i.position = 5, i.isVisible = !0, e.visualizations.push(i), i = new Q(Q.PUROLATOR6), i.position = 6, i.isVisible = !0, e.visualizations.push(i), !0;
            } catch {
                return !1;
            }
        }
        minDate(e) {
            var i = new Date(),
                a = new Date(new Date().setDate(i.getDate() - e));
            return a;
        }
        maxDate(e) {
            var i = new Date(),
                a = new Date(new Date().setDate(i.getDate() + e));
            return a;
        }
        showAccountPicker(e) {
            this.userData.view.signature.accountPickerActive = e;
        }
        updateSelectedAccounts() {
            De.setAccountSummary(this.userData.view.signature), this.showAccountPicker(!1);
        }
        showPinEntry(e) {
            this.userData.view.signature.pinEntryActive = e;
        }
        updatePinEntry() {
            var e = this.userData.view.signature.pinText.replace(/\r?\n/g, ",").split(",");
            this.userData.view.signature.pins = [];
            for (var i = 0; i < e.length; i++) e[i].trim() != "" && this.userData.view.signature.pins.push(e[i].trim());
            this.userData.view.signature.pins.length <= Kn.pinLimit && De.setPinText(this.userData.view.signature), this.showPinEntry(!1);
        }
        createDefaultColumns() {
            let e = [];
            return e.push({
                field: u.PACKAGEESTIMATEDDELIVERYDATE,
                position: 1,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEPIN,
                position: 2,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.LASTEVENTDATETIME,
                position: 3,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.SHIPMENTTYPE,
                position: 4,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGESTATUSCODE,
                position: 5,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERCITY,
                position: 6,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERNAME,
                position: 7,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERPOSTALZIPCODE,
                position: 8,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERPROVINCESTATE,
                position: 9,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.PRODUCTCODE,
                position: 10,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.SHIPMENTCREATED,
                position: 11,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.SHIPMENTPIN,
                position: 12,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERACCOUNT,
                position: 13,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERPOSTALZIPCODE,
                position: 14,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.PIECETOTALCOUNT,
                position: 15,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.WEIGHTVALUE,
                position: 16,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.X_REFERENCE,
                position: 17,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.WEIGHTUNIT,
                position: 19,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.NOTE,
                position: 21,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERCOMPANYNAME,
                position: 22,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERNAME,
                position: 23,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERSTREETADDRESS1,
                position: 24,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERSTREETADDRESS2,
                position: 25,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERSTREETADDRESS3,
                position: 26,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERCITY,
                position: 27,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERPROVINCESTATE,
                position: 28,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.SHIPPERCOUNTRYCODE,
                position: 29,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERCOMPANYNAME,
                position: 30,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), this.isDashBoardViewAddress123Authorised() && (e.push({
                field: u.RECEIVERADDRESS1,
                position: 31,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERADDRESS2,
                position: 32,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            }), e.push({
                field: u.RECEIVERADDRESS3,
                position: 33,
                isDefault: !0,
                isDisplayed: !0,
                isAvailable: !0
            })), e.push({
                field: u.RECEIVERCOUNTRYCODE,
                position: 34,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEDELIVERYNAME,
                position: 35,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGESTATUSSUBCODE,
                position: 36,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEDELIVERYDATETIME,
                position: 37,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.RETURNSHIPMENT,
                position: 39,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.HOLDFORPICKUPLOCATIONID,
                position: 42,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.LASTEVENTCITY,
                position: 45,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.LASTEVENTPROVINCESTATE,
                position: 52,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEWEIGHTDECLAREDVALUE,
                position: 56,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEWEIGHTDECLAREDUNIT,
                position: 57,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PACKAGEREFERENCES,
                position: 59,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.REFERENCE1,
                position: 70,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.REFERENCE2,
                position: 71,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.REFERENCE3,
                position: 72,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.REFERENCE4,
                position: 73,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.REFERENCE5,
                position: 74,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.LAST_SCAN_CODE,
                position: 75,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PICKUP_DATE,
                position: 76,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PICKUP_TIME,
                position: 77,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.TERMINAL_NAME,
                position: 78,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PAYERACCOUNT,
                position: 79,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_DANGEROUS_GOODS,
                position: 60,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_EXPRESS_CHEQUE,
                position: 61,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_SATURDAY_DELIVERY,
                position: 62,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_SATURDAY_PICKUP,
                position: 63,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_DECLARED_VALUE,
                position: 64,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_SPECIAL_HANDLING,
                position: 65,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_OSNR,
                position: 66,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_RES_SIG_DOM,
                position: 67,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_RES_SIG_INTL,
                position: 67,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_CHAIN_OF_SIGNATURE,
                position: 68,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e.push({
                field: u.PCH_HEALTHCARE,
                position: 69,
                isDefault: !1,
                isDisplayed: !1,
                isAvailable: !0
            }), e = e.sort((i, a) => i.header > a.header ? 1 : -1), e;
        }
        isDashBoardViewAddress123Authorised() {
            return this.userData.permissions && (this.userData.permissions.includes(Xn) || this.userData.permissions.includes(Qn));
        }
        populatePurolatorPalette(e) {
            var i = this.getPalettes();
            e.colors = i[0].colors;
        }
        getPalettes() {
            var e = [],
                i = new ve();
            return i.name = "Purolator Standard", i.colors = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3"], e.push(i), i = new ve(), i.name = "Corporate Cool", i.colors = ["#12232E", "#007CC7", "#4DA8DA", "#203647", "#EEFBFB", "#E1B382", "#C89666", "#0F2862", "#4F5F76", "#1DBAB4"], e.push(i), i = new ve(), i.name = "Muted Tones", i.colors = ["#C8B7A6", "#7D94B5", "#C29591", "#703F37", "#B6C199", "#B73225", "#004E7C", "#591COB", "#5C5F58", "#DCE1E3"], e.push(i), e;
        }
        getOptions(e) {
            e.count = 0;
            for (var i = 0; i < e.series[0].data.length; i++)(e.series[0].data[i].key === "" || e.series[0].data[i].key === null || e.series[0].data[i].key === void 0 || e.series[0].data[i].key === "null") && (e.series[0].data[i].key = "No label provided"), e.count += e.series[0].data[i].value;
            e.purolatorPalette && (e.titleColor = "#00529C", e.backgroundColor = "#FFFFFF", e.colors.length === 0 && this.populatePurolatorPalette(e));
            let a = {};
            a.aria = {
                show: !0
            }, a.backgroundColor = e.backgroundColor;
            let s = a;
            switch (s.animation = !1, s.animationDuration = 0, s.animationDurationUpdate = 0, s.useDirtyRect = !0, e.visualizationType ? .toLowerCase()) {
                case "pie":
                    a.series = {
                        type: "pie",
                        data: [],
                        zlevel: 9,
                        z: 9
                    }, e.showToolTip ? a.tooltip = {} : delete a.tooltip, a.color = e.colors, a.backgroundColor = e.backgroundColor;
                    for (var l = e.series[0].data.sort((r, c) => r.value > c.value ? 1 : -1), i = 0; i < l.length; i++) a.series.data.push({
                        name: l[i].key,
                        value: l[i].value
                    });
                    break;
                case "nightingale":
                    a.series = {
                        name: "",
                        type: "pie",
                        radius: ["10%", "80%"],
                        center: ["50%", "50%"],
                        roseType: "area",
                        itemStyle: {
                            borderRadius: 8
                        },
                        data: [],
                        zlevel: 9,
                        z: 9
                    }, e.showToolTip ? a.tooltip = {} : delete a.tooltip, e.colors.length > 0 ? a.color = e.colors : delete a.color, e.backgroundColor !== "" ? a.backgroundColor = e.backgroundColor : delete a.backgroundColor, a.series.name = e.series[0].name;
                    for (var l = e.series[0].data.sort((r, c) => r.value > c.value ? 1 : -1), i = 0; i < l.length; i++) a.series.data.push({
                        name: l[i].key,
                        value: l[i].value
                    });
                    break;
                case "bar":
                case "line":
                case "scatter":
                    a.series = [], e.showToolTip ? a.tooltip = {
                        trigger: "axis",
                        axisPointer: {
                            type: "shadow"
                        }
                    } : delete a.tooltip, a.xAxis = {
                        type: "category",
                        data: [],
                        axisLabel: {
                            interval: 0,
                            rotate: 0
                        }
                    }, (e.series[0].data.length > 3 || e.id === "Purolator3") && a.xAxis.axisLabel !== void 0 && (delete a.xAxis.axisLabel.interval, a.xAxis.axisLabel.rotate = 60), a.xAxis.data = [], a.yAxis = {
                        type: "value"
                    };
                    for (var o = 0; o < e.series.length; o++) {
                        a.series.push({
                            data: [],
                            zlevel: 9,
                            z: 9,
                            type: e.visualizationType.toLowerCase(),
                            itemStyle: {
                                borderRadius: 4,
                                color: "",
                                shadowBlur: 1,
                                opacity: .75
                            }
                        }), e.fillArea && (a.series[o].areaStyle = {}), e.colors.length > o ? a.series[o].itemStyle.color = e.colors[o] : delete a.series[o].itemStyle.color;
                        for (var i = 0; i < e.series[o].data.length; i++)
                            if (a.series[o].data.push(e.series[o].data[i].value), e.id === "Purolator3") {
                                var d = this.newDate(e.series[o].data[i].key);
                                d instanceof Date && !isNaN(d.valueOf()) ? a.xAxis.data.push(this.chartDate(d)) : a.xAxis.data.push("NA");
                            } else a.xAxis.data.push(e.series[o].data[i].key);
                    }
                    break;
                case "hbar":
                    a.series = [], a.grid = {
                        containLabel: !0
                    }, e.showToolTip ? a.tooltip = {
                        trigger: "axis",
                        axisPointer: {
                            type: "shadow"
                        }
                    } : delete a.tooltip, a.yAxis = {
                        type: "category",
                        data: []
                    }, (e.series[0].data.length > 3 || e.id === "Purolator3") && a.yAxis.axisLabel !== void 0 && (delete a.yAxis.axisLabel.interval, a.yAxis.axisLabel.rotate = 60), a.yAxis.data = [], a.xAxis = {
                        type: "value"
                    };
                    for (var o = 0; o < e.series.length; o++) {
                        a.series.push({
                            data: [],
                            zlevel: 9,
                            z: 9,
                            type: "bar",
                            itemStyle: {
                                borderRadius: 4,
                                color: "",
                                shadowBlur: 1,
                                opacity: .75
                            }
                        }), e.fillArea && (a.series[o].areaStyle = {}), e.colors.length > o ? a.series[o].itemStyle.color = e.colors[o] : delete a.series[o].itemStyle.color;
                        for (var i = 0; i < e.series[o].data.length; i++)
                            if (a.series[o].data.push(e.series[o].data[i].value), e.id === "Purolator3") {
                                var d = this.newDate(e.series[o].data[i].key);
                                d instanceof Date && !isNaN(d.valueOf()) ? a.yAxis.data.push(this.chartDate(d)) : a.yAxis.data.push("NA");
                            } else a.yAxis.data.push(e.series[o].data[i].key);
                    }
                    break;
                default:
                    break;
            }
            e.showToolTip && s.tooltip && (s.tooltip = Pt(Ce({}, s.tooltip), {
                transitionDuration: 0,
                hideDelay: 0
            })), this.applyChartPerformanceOptions(a, e), e.options = a;
        }
        applyChartPerformanceOptions(e, i) {
            let a = e;
            if (!a ? .series) return;
            let s = Array.isArray(a.series) ? a.series : [a.series],
                l = i ? .series ? .[0] ? .data,
                o = Array.isArray(l) ? l.length : 0,
                d = 1e3;
            o < d || s.forEach(r => {
                if (!r || typeof r != "object") return;
                let c = (r.type || i.visualizationType || "").toString().toLowerCase();
                (c === "bar" || c === "line" || c === "scatter") && (typeof r.progressive != "number" && (r.progressive = 5e3), typeof r.progressiveThreshold != "number" && (r.progressiveThreshold = 2e4), typeof r.large != "boolean" && (r.large = !0), typeof r.largeThreshold != "number" && (r.largeThreshold = d));
            });
        }
        newDate(e) {
            let i = e.split("-"),
                a;
            return i[0].length === 4 ? (i.push(i.splice(0, 1)[0]), a = i.join(), new Date(a)) : new Date(e);
        }
        chartDate(e) {
            var i = e.getMonth() + 1,
                a = e.getDate();
            return [(i > 9 ? "" : "0") + i, (a > 9 ? "" : "0") + a, e.getFullYear() - 2e3].join("/");
        }
        createSeriesExternal(e) {
            e.id === "" || e.id === "" || e.id;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || t)();
            };
        }
        static {
            this.ɵprov = Y({
                token: t,
                factory: t.ɵfac
            });
        }
    }
    return t;
})();
var Jn = (() => {
    class t extends qt {
        pathId;
        ngOnInit() {
            this.pathId = "url(#" + ke() + ")";
        }
        static ɵfac = (() => {
            let e;
            return function(a) {
                return (e || (e = de(t)))(a || t);
            };
        })();
        static ɵcmp = Ee({
            type: t,
            selectors: [
                ["WindowMaximizeIcon"]
            ],
            features: [ye],
            decls: 6,
            vars: 7,
            consts: [
                ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"],
                ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z", "fill", "currentColor"],
                [3, "id"],
                ["width", "14", "height", "14", "fill", "white"]
            ],
            template: function(i, a) {
                i & 1 && (Nt(), F(0, "svg", 0)(1, "g"), Z(2, "path", 1), $(), F(3, "defs")(4, "clipPath", 2), Z(5, "rect", 3), $()()()), i & 2 && (ne(a.getClassNames()), he("aria-label", a.ariaLabel)("aria-hidden", a.ariaHidden)("role", a.role), D(), he("clip-path", a.pathId), D(3), b("id", a.pathId));
            },
            encapsulation: 2
        });
    }
    return t;
})();
var ea = (() => {
    class t extends qt {
        pathId;
        ngOnInit() {
            this.pathId = "url(#" + ke() + ")";
        }
        static ɵfac = (() => {
            let e;
            return function(a) {
                return (e || (e = de(t)))(a || t);
            };
        })();
        static ɵcmp = Ee({
            type: t,
            selectors: [
                ["WindowMinimizeIcon"]
            ],
            features: [ye],
            decls: 6,
            vars: 7,
            consts: [
                ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"],
                ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z", "fill", "currentColor"],
                [3, "id"],
                ["width", "14", "height", "14", "fill", "white"]
            ],
            template: function(i, a) {
                i & 1 && (Nt(), F(0, "svg", 0)(1, "g"), Z(2, "path", 1), $(), F(3, "defs")(4, "clipPath", 2), Z(5, "rect", 3), $()()()), i & 2 && (ne(a.getClassNames()), he("aria-label", a.ariaLabel)("aria-hidden", a.ariaHidden)("role", a.role), D(), he("clip-path", a.pathId), D(3), b("id", a.pathId));
            },
            encapsulation: 2
        });
    }
    return t;
})();
var ta = (() => {
    class t extends Zt {
        pFocusTrapDisabled = !1;
        platformId = Be(fn);
        document = Be(Sn);
        firstHiddenFocusableElement;
        lastHiddenFocusableElement;
        ngOnInit() {
            super.ngOnInit(), ct(this.platformId) && !this.pFocusTrapDisabled && !this.firstHiddenFocusableElement && !this.lastHiddenFocusableElement && this.createHiddenFocusableElements();
        }
        ngOnChanges(e) {
            super.ngOnChanges(e), e.pFocusTrapDisabled && ct(this.platformId) && (e.pFocusTrapDisabled.currentValue ? this.removeHiddenFocusableElements() : this.createHiddenFocusableElements());
        }
        removeHiddenFocusableElements() {
            this.firstHiddenFocusableElement && this.firstHiddenFocusableElement.parentNode && this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement), this.lastHiddenFocusableElement && this.lastHiddenFocusableElement.parentNode && this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement);
        }
        getComputedSelector(e) {
            return `:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`;
        }
        createHiddenFocusableElements() {
            let e = "0",
                i = a => Un("span", {
                    class: "p-hidden-accessible p-hidden-focusable",
                    tabindex: e,
                    role: "presentation",
                    "aria-hidden": !0,
                    "data-p-hidden-accessible": !0,
                    "data-p-hidden-focusable": !0,
                    onFocus: a ? .bind(this)
                });
            this.firstHiddenFocusableElement = i(this.onFirstHiddenElementFocus), this.lastHiddenFocusableElement = i(this.onLastHiddenElementFocus), this.firstHiddenFocusableElement.setAttribute("data-pc-section", "firstfocusableelement"), this.lastHiddenFocusableElement.setAttribute("data-pc-section", "lastfocusableelement"), this.el.nativeElement.prepend(this.firstHiddenFocusableElement), this.el.nativeElement.append(this.lastHiddenFocusableElement);
        }
        onFirstHiddenElementFocus(e) {
            let {
                currentTarget: i,
                relatedTarget: a
            } = e, s = a === this.lastHiddenFocusableElement || !this.el.nativeElement ? .contains(a) ? Fn(i.parentElement, ":not(.p-hidden-focusable)") : this.lastHiddenFocusableElement;
            bi(s);
        }
        onLastHiddenElementFocus(e) {
            let {
                currentTarget: i,
                relatedTarget: a
            } = e, s = a === this.firstHiddenFocusableElement || !this.el.nativeElement ? .contains(a) ? $n(i.parentElement, ":not(.p-hidden-focusable)") : this.firstHiddenFocusableElement;
            bi(s);
        }
        static ɵfac = (() => {
            let e;
            return function(a) {
                return (e || (e = de(t)))(a || t);
            };
        })();
        static ɵdir = _n({
            type: t,
            selectors: [
                ["", "pFocusTrap", ""]
            ],
            inputs: {
                pFocusTrapDisabled: [2, "pFocusTrapDisabled", "pFocusTrapDisabled", G]
            },
            features: [ye, Ot]
        });
    }
    return t;
})();
var Us = ["header"],
    ia = ["content"],
    na = ["footer"],
    Fs = ["closeicon"],
    $s = ["maximizeicon"],
    Bs = ["minimizeicon"],
    Vs = ["headless"],
    Gs = ["titlebar"],
    js = ["*", [
        ["p-footer"]
    ]],
    Zs = ["*", "p-footer"],
    qs = (t, n, e) => ({
        position: "fixed",
        height: "100%",
        width: "100%",
        left: 0,
        top: 0,
        display: "flex",
        "justify-content": t,
        "align-items": n,
        "pointer-events": e
    }),
    Ys = t => ({
        "p-dialog p-component": !0,
        "p-dialog-maximized": t
    }),
    Ws = () => ({
        display: "flex",
        "flex-direction": "column",
        "pointer-events": "auto"
    }),
    Ks = (t, n) => ({
        transform: t,
        transition: n
    }),
    Xs = t => ({
        value: "visible",
        params: t
    });

function Qs(t, n) {
    t & 1 && rt(0);
}

function Js(t, n) {
    if (t & 1 && (Ge(0), H(1, Qs, 1, 0, "ng-container", 11), je()), t & 2) {
        let e = I(3);
        D(), b("ngTemplateOutlet", e._headlessTemplate || e.headlessTemplate || e.headlessT);
    }
}

function eo(t, n) {
    if (t & 1) {
        let e = Ze();
        F(0, "div", 15), qe("mousedown", function(a) {
            ce(e);
            let s = I(4);
            return pe(s.initResize(a));
        }), $();
    }
    if (t & 2) {
        let e = I(4);
        b("ngClass", e.cx("resizeHandle"));
    }
}

function to(t, n) {
    if (t & 1 && (F(0, "span", 21), bn(1), $()), t & 2) {
        let e = I(5);
        b("id", e.ariaLabelledBy)("ngClass", e.cx("title")), D(), En(e.header);
    }
}

function io(t, n) {
    t & 1 && rt(0);
}

function no(t, n) {
    if (t & 1 && Z(0, "span", 18), t & 2) {
        let e = I(6);
        b("ngClass", e.maximized ? e.minimizeIcon : e.maximizeIcon);
    }
}

function ao(t, n) {
    t & 1 && Z(0, "WindowMaximizeIcon");
}

function so(t, n) {
    t & 1 && Z(0, "WindowMinimizeIcon");
}

function oo(t, n) {
    if (t & 1 && (Ge(0), H(1, ao, 1, 0, "WindowMaximizeIcon", 23)(2, so, 1, 0, "WindowMinimizeIcon", 23), je()), t & 2) {
        let e = I(6);
        D(), b("ngIf", !e.maximized && !e._maximizeiconTemplate && !e.maximizeIconTemplate && !e.maximizeIconT), D(), b("ngIf", e.maximized && !e._minimizeiconTemplate && !e.minimizeIconTemplate && !e.minimizeIconT);
    }
}

function ro(t, n) {}

function lo(t, n) {
    t & 1 && H(0, ro, 0, 0, "ng-template");
}

function co(t, n) {
    if (t & 1 && (Ge(0), H(1, lo, 1, 0, null, 11), je()), t & 2) {
        let e = I(6);
        D(), b("ngTemplateOutlet", e._maximizeiconTemplate || e.maximizeIconTemplate || e.maximizeIconT);
    }
}

function po(t, n) {}

function ho(t, n) {
    t & 1 && H(0, po, 0, 0, "ng-template");
}

function fo(t, n) {
    if (t & 1 && (Ge(0), H(1, ho, 1, 0, null, 11), je()), t & 2) {
        let e = I(6);
        D(), b("ngTemplateOutlet", e._minimizeiconTemplate || e.minimizeIconTemplate || e.minimizeIconT);
    }
}

function uo(t, n) {
    if (t & 1) {
        let e = Ze();
        F(0, "p-button", 22), qe("onClick", function() {
            ce(e);
            let a = I(5);
            return pe(a.maximize());
        })("keydown.enter", function() {
            ce(e);
            let a = I(5);
            return pe(a.maximize());
        }), H(1, no, 1, 1, "span", 14)(2, oo, 3, 2, "ng-container", 23)(3, co, 2, 1, "ng-container", 23)(4, fo, 2, 1, "ng-container", 23), $();
    }
    if (t & 2) {
        let e = I(5);
        b("styleClass", e.cx("pcMaximizeButton"))("tabindex", e.maximizable ? "0" : "-1")("ariaLabel", e.maximizeLabel)("buttonProps", e.maximizeButtonProps), D(), b("ngIf", e.maximizeIcon && !e._maximizeiconTemplate && !e._minimizeiconTemplate), D(), b("ngIf", !e.maximizeIcon && !(e.maximizeButtonProps != null && e.maximizeButtonProps.icon)), D(), b("ngIf", !e.maximized), D(), b("ngIf", e.maximized);
    }
}

function _o(t, n) {
    if (t & 1 && Z(0, "span", 18), t & 2) {
        let e = I(8);
        b("ngClass", e.closeIcon);
    }
}

function mo(t, n) {
    t & 1 && Z(0, "TimesIcon");
}

function go(t, n) {
    if (t & 1 && (Ge(0), H(1, _o, 1, 1, "span", 14)(2, mo, 1, 0, "TimesIcon", 23), je()), t & 2) {
        let e = I(7);
        D(), b("ngIf", e.closeIcon), D(), b("ngIf", !e.closeIcon);
    }
}

function bo(t, n) {}

function Eo(t, n) {
    t & 1 && H(0, bo, 0, 0, "ng-template");
}

function yo(t, n) {
    if (t & 1 && (F(0, "span"), H(1, Eo, 1, 0, null, 11), $()), t & 2) {
        let e = I(7);
        D(), b("ngTemplateOutlet", e._closeiconTemplate || e.closeIconTemplate || e.closeIconT);
    }
}

function vo(t, n) {
    if (t & 1 && H(0, go, 3, 2, "ng-container", 23)(1, yo, 2, 1, "span", 23), t & 2) {
        let e = I(6);
        b("ngIf", !e._closeiconTemplate && !e.closeIconTemplate && !e.closeIconT && !(e.closeButtonProps != null && e.closeButtonProps.icon)), D(), b("ngIf", e._closeiconTemplate || e.closeIconTemplate || e.closeIconT);
    }
}

function Do(t, n) {
    if (t & 1) {
        let e = Ze();
        F(0, "p-button", 24), qe("onClick", function(a) {
            ce(e);
            let s = I(5);
            return pe(s.close(a));
        })("keydown.enter", function(a) {
            ce(e);
            let s = I(5);
            return pe(s.close(a));
        }), H(1, vo, 2, 2, "ng-template", null, 4, di), $();
    }
    if (t & 2) {
        let e = I(5);
        b("styleClass", e.cx("pcCloseButton"))("ariaLabel", e.closeAriaLabel)("tabindex", e.closeTabindex)("buttonProps", e.closeButtonProps);
    }
}

function wo(t, n) {
    if (t & 1) {
        let e = Ze();
        F(0, "div", 16, 3), qe("mousedown", function(a) {
            ce(e);
            let s = I(4);
            return pe(s.initDrag(a));
        }), H(2, to, 2, 3, "span", 17)(3, io, 1, 0, "ng-container", 11), F(4, "div", 18), H(5, uo, 5, 8, "p-button", 19)(6, Do, 3, 4, "p-button", 20), $()();
    }
    if (t & 2) {
        let e = I(4);
        b("ngClass", e.cx("header")), D(2), b("ngIf", !e._headerTemplate && !e.headerTemplate && !e.headerT), D(), b("ngTemplateOutlet", e._headerTemplate || e.headerTemplate || e.headerT), D(), b("ngClass", e.cx("headerActions")), D(), b("ngIf", e.maximizable), D(), b("ngIf", e.closable);
    }
}

function xo(t, n) {
    t & 1 && rt(0);
}

function To(t, n) {
    t & 1 && rt(0);
}

function Ao(t, n) {
    if (t & 1 && (F(0, "div", 18, 5), lt(2, 1), H(3, To, 1, 0, "ng-container", 11), $()), t & 2) {
        let e = I(4);
        b("ngClass", e.cx("footer")), D(3), b("ngTemplateOutlet", e._footerTemplate || e.footerTemplate || e.footerT);
    }
}

function Ro(t, n) {
    if (t & 1 && (H(0, eo, 1, 1, "div", 12)(1, wo, 7, 6, "div", 13), F(2, "div", 7, 2), lt(4), H(5, xo, 1, 0, "ng-container", 11), $(), H(6, Ao, 4, 2, "div", 14)), t & 2) {
        let e = I(3);
        b("ngIf", e.resizable), D(), b("ngIf", e.showHeader), D(), ne(e.contentStyleClass), b("ngClass", e.cx("content"))("ngStyle", e.contentStyle), he("data-pc-section", "content"), D(3), b("ngTemplateOutlet", e._contentTemplate || e.contentTemplate || e.contentT), D(), b("ngIf", e._footerTemplate || e.footerTemplate || e.footerT);
    }
}

function So(t, n) {
    if (t & 1) {
        let e = Ze();
        F(0, "div", 9, 0), qe("@animation.start", function(a) {
            ce(e);
            let s = I(2);
            return pe(s.onAnimationStart(a));
        })("@animation.done", function(a) {
            ce(e);
            let s = I(2);
            return pe(s.onAnimationEnd(a));
        }), H(2, Js, 2, 1, "ng-container", 10)(3, Ro, 7, 9, "ng-template", null, 1, di), $();
    }
    if (t & 2) {
        let e = gn(4),
            i = I(2);
        ci(i.style), ne(i.styleClass), b("ngClass", pi(13, Ys, i.maximizable && i.maximized))("ngStyle", vn(15, Ws))("pFocusTrapDisabled", i.focusTrap === !1)("@animation", pi(19, Xs, Dn(16, Ks, i.transformOptions, i.transitionOptions))), he("role", i.role)("aria-labelledby", i.ariaLabelledBy)("aria-modal", !0), D(2), b("ngIf", i._headlessTemplate || i.headlessTemplate || i.headlessT)("ngIfElse", e);
    }
}

function Co(t, n) {
    if (t & 1 && (F(0, "div", 7), H(1, So, 5, 21, "div", 8), $()), t & 2) {
        let e = I();
        ci(e.maskStyle), ne(e.maskStyleClass), b("ngClass", e.maskClass)("ngStyle", wn(7, qs, e.position === "left" || e.position === "topleft" || e.position === "bottomleft" ? "flex-start" : e.position === "right" || e.position === "topright" || e.position === "bottomright" ? "flex-end" : "center", e.position === "top" || e.position === "topleft" || e.position === "topright" ? "flex-start" : e.position === "bottom" || e.position === "bottomleft" || e.position === "bottomright" ? "flex-end" : "center", e.modal ? "auto" : "none")), D(), b("ngIf", e.visible);
    }
}
var Io = ({
        dt: t
    }) => `
.p-dialog {
    max-height: 90%;
    transform: scale(1);
    border-radius: ${t("dialog.border.radius")};
    box-shadow: ${t("dialog.shadow")};
    background: ${t("dialog.background")};
    border: 1px solid ${t("dialog.border.color")};
    color: ${t("dialog.color")};
    display: flex;
    flex-direction: column;
    pointer-events: auto
}

.p-dialog-content {
    overflow-y: auto;
    padding: ${t("dialog.content.padding")};
    flex-grow: 1;
}

.p-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: ${t("dialog.header.padding")};
}

.p-dialog-title {
    font-weight: ${t("dialog.title.font.weight")};
    font-size: ${t("dialog.title.font.size")};
}

.p-dialog-footer {
    flex-shrink: 0;
    padding: ${t("dialog.footer.padding")};
    display: flex;
    justify-content: flex-end;
    gap: ${t("dialog.footer.gap")};
}

.p-dialog-header-actions {
    display: flex;
    align-items: center;
    gap: ${t("dialog.header.gap")};
}

.p-dialog-enter-active {
    transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}

.p-dialog-leave-active {
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.p-dialog-enter-from,
.p-dialog-leave-to {
    opacity: 0;
    transform: scale(0.7);
}

.p-dialog-top .p-dialog,
.p-dialog-bottom .p-dialog,
.p-dialog-left .p-dialog,
.p-dialog-right .p-dialog,
.p-dialog-topleft .p-dialog,
.p-dialog-topright .p-dialog,
.p-dialog-bottomleft .p-dialog,
.p-dialog-bottomright .p-dialog {
    margin: 0.75rem;
    transform: translate3d(0px, 0px, 0px);
}

.p-dialog-top .p-dialog-enter-active,
.p-dialog-top .p-dialog-leave-active,
.p-dialog-bottom .p-dialog-enter-active,
.p-dialog-bottom .p-dialog-leave-active,
.p-dialog-left .p-dialog-enter-active,
.p-dialog-left .p-dialog-leave-active,
.p-dialog-right .p-dialog-enter-active,
.p-dialog-right .p-dialog-leave-active,
.p-dialog-topleft .p-dialog-enter-active,
.p-dialog-topleft .p-dialog-leave-active,
.p-dialog-topright .p-dialog-enter-active,
.p-dialog-topright .p-dialog-leave-active,
.p-dialog-bottomleft .p-dialog-enter-active,
.p-dialog-bottomleft .p-dialog-leave-active,
.p-dialog-bottomright .p-dialog-enter-active,
.p-dialog-bottomright .p-dialog-leave-active {
    transition: all 0.3s ease-out;
}

.p-dialog-top .p-dialog-enter-from,
.p-dialog-top .p-dialog-leave-to {
    transform: translate3d(0px, -100%, 0px);
}

.p-dialog-bottom .p-dialog-enter-from,
.p-dialog-bottom .p-dialog-leave-to {
    transform: translate3d(0px, 100%, 0px);
}

.p-dialog-left .p-dialog-enter-from,
.p-dialog-left .p-dialog-leave-to,
.p-dialog-topleft .p-dialog-enter-from,
.p-dialog-topleft .p-dialog-leave-to,
.p-dialog-bottomleft .p-dialog-enter-from,
.p-dialog-bottomleft .p-dialog-leave-to {
    transform: translate3d(-100%, 0px, 0px);
}

.p-dialog-right .p-dialog-enter-from,
.p-dialog-right .p-dialog-leave-to,
.p-dialog-topright .p-dialog-enter-from,
.p-dialog-topright .p-dialog-leave-to,
.p-dialog-bottomright .p-dialog-enter-from,
.p-dialog-bottomright .p-dialog-leave-to {
    transform: translate3d(100%, 0px, 0px);
}

.p-dialog-left:dir(rtl) .p-dialog-enter-from,
.p-dialog-left:dir(rtl) .p-dialog-leave-to,
.p-dialog-topleft:dir(rtl) .p-dialog-enter-from,
.p-dialog-topleft:dir(rtl) .p-dialog-leave-to,
.p-dialog-bottomleft:dir(rtl) .p-dialog-enter-from,
.p-dialog-bottomleft:dir(rtl) .p-dialog-leave-to {
    transform: translate3d(100%, 0px, 0px);
}

.p-dialog-right:dir(rtl) .p-dialog-enter-from,
.p-dialog-right:dir(rtl) .p-dialog-leave-to,
.p-dialog-topright:dir(rtl) .p-dialog-enter-from,
.p-dialog-topright:dir(rtl) .p-dialog-leave-to,
.p-dialog-bottomright:dir(rtl) .p-dialog-enter-from,
.p-dialog-bottomright:dir(rtl) .p-dialog-leave-to {
    transform: translate3d(-100%, 0px, 0px);
}

.p-dialog-maximized {
    width: 100vw !important;
    height: 100vh !important;
    top: 0px !important;
    left: 0px !important;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
}

.p-dialog-maximized .p-dialog-content {
    flex-grow: 1;
}

.p-overlay-mask:dir(rtl) {
    flex-direction: row-reverse;
}

/* For PrimeNG */

.p-dialog .p-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
    cursor: se-resize;
    width: 12px;
    height: 12px;
    right: 1px;
    bottom: 1px;
}

.p-confirm-dialog .p-dialog-content {
    display: flex;
    align-items: center;
}
`,
    ko = {
        mask: ({
            instance: t
        }) => ({
            position: "fixed",
            height: "100%",
            width: "100%",
            left: 0,
            top: 0,
            display: "flex",
            justifyContent: t.position === "left" || t.position === "topleft" || t.position === "bottomleft" ? "flex-start" : t.position === "right" || t.position === "topright" || t.position === "bottomright" ? "flex-end" : "center",
            alignItems: t.position === "top" || t.position === "topleft" || t.position === "topright" ? "flex-start" : t.position === "bottom" || t.position === "bottomleft" || t.position === "bottomright" ? "flex-end" : "center",
            pointerEvents: t.modal ? "auto" : "none"
        }),
        root: {
            display: "flex",
            flexDirection: "column",
            pointerEvents: "auto"
        }
    },
    Po = {
        mask: ({
            instance: t
        }) => {
            let e = ["left", "right", "top", "topleft", "topright", "bottom", "bottomleft", "bottomright"].find(i => i === t.position);
            return {
                "p-dialog-mask": !0,
                "p-overlay-mask p-overlay-mask-enter": t.modal,
                [`p-dialog-${e}`]: e
            };
        },
        root: ({
            instance: t
        }) => ({
            "p-dialog p-component": !0,
            "p-dialog-maximized": t.maximizable && t.maximized
        }),
        header: "p-dialog-header",
        title: "p-dialog-title",
        resizeHandle: "p-resizable-handle",
        headerActions: "p-dialog-header-actions",
        pcMaximizeButton: "p-dialog-maximize-button",
        pcCloseButton: "p-dialog-close-button",
        content: "p-dialog-content",
        footer: "p-dialog-footer"
    },
    aa = (() => {
        class t extends jn {
            name = "dialog";
            theme = Io;
            classes = Po;
            inlineStyles = ko;
            static ɵfac = (() => {
                let e;
                return function(a) {
                    return (e || (e = de(t)))(a || t);
                };
            })();
            static ɵprov = Y({
                token: t,
                factory: t.ɵfac
            });
        }
        return t;
    })();
var Oo = hi([Ie({
        transform: "{{transform}}",
        opacity: 0
    }), We("{{transition}}")]),
    No = hi([We("{{transition}}", Ie({
        transform: "{{transform}}",
        opacity: 0
    }))]),
    zo = (() => {
        class t extends Zt {
            header;
            draggable = !0;
            resizable = !0;
            get positionLeft() {
                return 0;
            }
            set positionLeft(e) {
                console.log("positionLeft property is deprecated.");
            }
            get positionTop() {
                return 0;
            }
            set positionTop(e) {
                console.log("positionTop property is deprecated.");
            }
            contentStyle;
            contentStyleClass;
            modal = !1;
            closeOnEscape = !0;
            dismissableMask = !1;
            rtl = !1;
            closable = !0;
            get responsive() {
                return !1;
            }
            set responsive(e) {
                console.log("Responsive property is deprecated.");
            }
            appendTo;
            breakpoints;
            styleClass;
            maskStyleClass;
            maskStyle;
            showHeader = !0;
            get breakpoint() {
                return 649;
            }
            set breakpoint(e) {
                console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.");
            }
            blockScroll = !1;
            autoZIndex = !0;
            baseZIndex = 0;
            minX = 0;
            minY = 0;
            focusOnShow = !0;
            maximizable = !1;
            keepInViewport = !0;
            focusTrap = !0;
            transitionOptions = "150ms cubic-bezier(0, 0, 0.2, 1)";
            closeIcon;
            closeAriaLabel;
            closeTabindex = "0";
            minimizeIcon;
            maximizeIcon;
            closeButtonProps = {
                severity: "secondary",
                text: !0,
                rounded: !0
            };
            maximizeButtonProps = {
                severity: "secondary",
                text: !0,
                rounded: !0
            };
            get visible() {
                return this._visible;
            }
            set visible(e) {
                this._visible = e, this._visible && !this.maskVisible && (this.maskVisible = !0);
            }
            get style() {
                return this._style;
            }
            set style(e) {
                e && (this._style = Ce({}, e), this.originalStyle = e);
            }
            get position() {
                return this._position;
            }
            set position(e) {
                switch (this._position = e, e) {
                    case "topleft":
                    case "bottomleft":
                    case "left":
                        this.transformOptions = "translate3d(-100%, 0px, 0px)";
                        break;
                    case "topright":
                    case "bottomright":
                    case "right":
                        this.transformOptions = "translate3d(100%, 0px, 0px)";
                        break;
                    case "bottom":
                        this.transformOptions = "translate3d(0px, 100%, 0px)";
                        break;
                    case "top":
                        this.transformOptions = "translate3d(0px, -100%, 0px)";
                        break;
                    default:
                        this.transformOptions = "scale(0.7)";
                        break;
                }
            }
            role = "dialog";
            onShow = new be();
            onHide = new be();
            visibleChange = new be();
            onResizeInit = new be();
            onResizeEnd = new be();
            onDragEnd = new be();
            onMaximize = new be();
            headerViewChild;
            contentViewChild;
            footerViewChild;
            headerTemplate;
            contentTemplate;
            footerTemplate;
            closeIconTemplate;
            maximizeIconTemplate;
            minimizeIconTemplate;
            headlessTemplate;
            _headerTemplate;
            _contentTemplate;
            _footerTemplate;
            _closeiconTemplate;
            _maximizeiconTemplate;
            _minimizeiconTemplate;
            _headlessTemplate;
            _visible = !1;
            maskVisible;
            container;
            wrapper;
            dragging;
            ariaLabelledBy = this.getAriaLabelledBy();
            documentDragListener;
            documentDragEndListener;
            resizing;
            documentResizeListener;
            documentResizeEndListener;
            documentEscapeListener;
            maskClickListener;
            lastPageX;
            lastPageY;
            preventVisibleChangePropagation;
            maximized;
            preMaximizeContentHeight;
            preMaximizeContainerWidth;
            preMaximizeContainerHeight;
            preMaximizePageX;
            preMaximizePageY;
            id = ke("pn_id_");
            _style = {};
            _position = "center";
            originalStyle;
            transformOptions = "scale(0.7)";
            styleElement;
            window;
            _componentStyle = Be(aa);
            headerT;
            contentT;
            footerT;
            closeIconT;
            maximizeIconT;
            minimizeIconT;
            headlessT;
            get maximizeLabel() {
                return this.config.getTranslation(Gn.ARIA).maximizeLabel;
            }
            zone = Be(dn);
            get maskClass() {
                let i = ["left", "right", "top", "topleft", "topright", "bottom", "bottomleft", "bottomright"].find(a => a === this.position);
                return {
                    "p-dialog-mask": !0,
                    "p-overlay-mask p-overlay-mask-enter": this.modal || this.dismissableMask,
                    [`p-dialog-${i}`]: i
                };
            }
            ngOnInit() {
                super.ngOnInit(), this.breakpoints && this.createStyle();
            }
            templates;
            ngAfterContentInit() {
                this.templates ? .forEach(e => {
                    switch (e.getType()) {
                        case "header":
                            this.headerT = e.template;
                            break;
                        case "content":
                            this.contentT = e.template;
                            break;
                        case "footer":
                            this.footerT = e.template;
                            break;
                        case "closeicon":
                            this.closeIconT = e.template;
                            break;
                        case "maximizeicon":
                            this.maximizeIconT = e.template;
                            break;
                        case "minimizeicon":
                            this.minimizeIconT = e.template;
                            break;
                        case "headless":
                            this.headlessT = e.template;
                            break;
                        default:
                            this.contentT = e.template;
                            break;
                    }
                });
            }
            getAriaLabelledBy() {
                return this.header !== null ? ke("pn_id_") + "_header" : null;
            }
            parseDurationToMilliseconds(e) {
                let i = /([\d\.]+)(ms|s)\b/g,
                    a = 0,
                    s;
                for (;
                    (s = i.exec(e)) !== null;) {
                    let l = parseFloat(s[1]),
                        o = s[2];
                    o === "ms" ? a += l : o === "s" && (a += l * 1e3);
                }
                if (a !== 0) return a;
            }
            _focus(e) {
                if (e) {
                    let i = this.parseDurationToMilliseconds(this.transitionOptions),
                        a = Zn.getFocusableElements(e);
                    if (a && a.length > 0) return this.zone.runOutsideAngular(() => {
                        setTimeout(() => a[0].focus(), i || 5);
                    }), !0;
                }
                return !1;
            }
            focus(e) {
                let i = this._focus(e);
                i || (i = this._focus(this.footerViewChild ? .nativeElement), i || (i = this._focus(this.headerViewChild ? .nativeElement), i || this._focus(this.contentViewChild ? .nativeElement)));
            }
            close(e) {
                this.visibleChange.emit(!1), e.preventDefault();
            }
            enableModality() {
                this.closable && this.dismissableMask && (this.maskClickListener = this.renderer.listen(this.wrapper, "mousedown", e => {
                    this.wrapper && this.wrapper.isSameNode(e.target) && this.close(e);
                })), this.modal && ui();
            }
            disableModality() {
                if (this.wrapper) {
                    this.dismissableMask && this.unbindMaskClickListener();
                    let e = document.querySelectorAll(".p-dialog-mask-scrollblocker");
                    this.modal && e && e.length == 1 && _i(), this.cd.destroyed || this.cd.detectChanges();
                }
            }
            maximize() {
                this.maximized = !this.maximized, !this.modal && !this.blockScroll && (this.maximized ? ui() : _i()), this.onMaximize.emit({
                    maximized: this.maximized
                });
            }
            unbindMaskClickListener() {
                this.maskClickListener && (this.maskClickListener(), this.maskClickListener = null);
            }
            moveOnTop() {
                this.autoZIndex && (Ei.set("modal", this.container, this.baseZIndex + this.config.zIndex.modal), this.wrapper.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1));
            }
            createStyle() {
                if (ct(this.platformId) && !this.styleElement) {
                    this.styleElement = this.renderer.createElement("style"), this.styleElement.type = "text/css", this.renderer.appendChild(this.document.head, this.styleElement);
                    let e = "";
                    for (let i in this.breakpoints) e += `
                        @media screen and (max-width: ${i}) {
                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {
                                width: ${this.breakpoints[i]} !important;
                            }
                        }
                    `;
                    this.renderer.setProperty(this.styleElement, "innerHTML", e), Bn(this.styleElement, "nonce", this.config ? .csp() ? .nonce);
                }
            }
            initDrag(e) {
                pt(e.target, "p-dialog-maximize-icon") || pt(e.target, "p-dialog-header-close-icon") || pt(e.target.parentElement, "p-dialog-header-icon") || this.draggable && (this.dragging = !0, this.lastPageX = e.pageX, this.lastPageY = e.pageY, this.container.style.margin = "0", Bt(this.document.body, "p-unselectable-text"));
            }
            onDrag(e) {
                if (this.dragging) {
                    let i = gi(this.container),
                        a = Gt(this.container),
                        s = e.pageX - this.lastPageX,
                        l = e.pageY - this.lastPageY,
                        o = this.container.getBoundingClientRect(),
                        d = getComputedStyle(this.container),
                        r = parseFloat(d.marginLeft),
                        c = parseFloat(d.marginTop),
                        E = o.left + s - r,
                        h = o.top + l - c,
                        p = mi();
                    this.container.style.position = "fixed", this.keepInViewport ? (E >= this.minX && E + i < p.width && (this._style.left = `${E}px`, this.lastPageX = e.pageX, this.container.style.left = `${E}px`), h >= this.minY && h + a < p.height && (this._style.top = `${h}px`, this.lastPageY = e.pageY, this.container.style.top = `${h}px`)) : (this.lastPageX = e.pageX, this.container.style.left = `${E}px`, this.lastPageY = e.pageY, this.container.style.top = `${h}px`);
                }
            }
            endDrag(e) {
                this.dragging && (this.dragging = !1, Vt(this.document.body, "p-unselectable-text"), this.cd.detectChanges(), this.onDragEnd.emit(e));
            }
            resetPosition() {
                this.container.style.position = "", this.container.style.left = "", this.container.style.top = "", this.container.style.margin = "";
            }
            center() {
                this.resetPosition();
            }
            initResize(e) {
                this.resizable && (this.resizing = !0, this.lastPageX = e.pageX, this.lastPageY = e.pageY, Bt(this.document.body, "p-unselectable-text"), this.onResizeInit.emit(e));
            }
            onResize(e) {
                if (this.resizing) {
                    let i = e.pageX - this.lastPageX,
                        a = e.pageY - this.lastPageY,
                        s = gi(this.container),
                        l = Gt(this.container),
                        o = Gt(this.contentViewChild ? .nativeElement),
                        d = s + i,
                        r = l + a,
                        c = this.container.style.minWidth,
                        E = this.container.style.minHeight,
                        h = this.container.getBoundingClientRect(),
                        p = mi();
                    (!parseInt(this.container.style.top) || !parseInt(this.container.style.left)) && (d += i, r += a), (!c || d > parseInt(c)) && h.left + d < p.width && (this._style.width = d + "px", this.container.style.width = this._style.width), (!E || r > parseInt(E)) && h.top + r < p.height && (this.contentViewChild.nativeElement.style.height = o + r - l + "px", this._style.height && (this._style.height = r + "px", this.container.style.height = this._style.height)), this.lastPageX = e.pageX, this.lastPageY = e.pageY;
                }
            }
            resizeEnd(e) {
                this.resizing && (this.resizing = !1, Vt(this.document.body, "p-unselectable-text"), this.onResizeEnd.emit(e));
            }
            bindGlobalListeners() {
                this.draggable && (this.bindDocumentDragListener(), this.bindDocumentDragEndListener()), this.resizable && this.bindDocumentResizeListeners(), this.closeOnEscape && this.closable && this.bindDocumentEscapeListener();
            }
            unbindGlobalListeners() {
                this.unbindDocumentDragListener(), this.unbindDocumentDragEndListener(), this.unbindDocumentResizeListeners(), this.unbindDocumentEscapeListener();
            }
            bindDocumentDragListener() {
                this.documentDragListener || this.zone.runOutsideAngular(() => {
                    this.documentDragListener = this.renderer.listen(this.document.defaultView, "mousemove", this.onDrag.bind(this));
                });
            }
            unbindDocumentDragListener() {
                this.documentDragListener && (this.documentDragListener(), this.documentDragListener = null);
            }
            bindDocumentDragEndListener() {
                this.documentDragEndListener || this.zone.runOutsideAngular(() => {
                    this.documentDragEndListener = this.renderer.listen(this.document.defaultView, "mouseup", this.endDrag.bind(this));
                });
            }
            unbindDocumentDragEndListener() {
                this.documentDragEndListener && (this.documentDragEndListener(), this.documentDragEndListener = null);
            }
            bindDocumentResizeListeners() {
                !this.documentResizeListener && !this.documentResizeEndListener && this.zone.runOutsideAngular(() => {
                    this.documentResizeListener = this.renderer.listen(this.document.defaultView, "mousemove", this.onResize.bind(this)), this.documentResizeEndListener = this.renderer.listen(this.document.defaultView, "mouseup", this.resizeEnd.bind(this));
                });
            }
            unbindDocumentResizeListeners() {
                this.documentResizeListener && this.documentResizeEndListener && (this.documentResizeListener(), this.documentResizeEndListener(), this.documentResizeListener = null, this.documentResizeEndListener = null);
            }
            bindDocumentEscapeListener() {
                let e = this.el ? this.el.nativeElement.ownerDocument : "document";
                this.documentEscapeListener = this.renderer.listen(e, "keydown", i => {
                    i.key == "Escape" && this.close(i);
                });
            }
            unbindDocumentEscapeListener() {
                this.documentEscapeListener && (this.documentEscapeListener(), this.documentEscapeListener = null);
            }
            appendContainer() {
                this.appendTo && (this.appendTo === "body" ? this.renderer.appendChild(this.document.body, this.wrapper) : Mn(this.appendTo, this.wrapper));
            }
            restoreAppend() {
                this.container && this.appendTo && this.renderer.appendChild(this.el.nativeElement, this.wrapper);
            }
            onAnimationStart(e) {
                switch (e.toState) {
                    case "visible":
                        this.container = e.element, this.wrapper = this.container ? .parentElement, this.appendContainer(), this.moveOnTop(), this.bindGlobalListeners(), this.container ? .setAttribute(this.id, ""), this.modal && this.enableModality(), this.focusOnShow && this.focus();
                        break;
                    case "void":
                        this.wrapper && this.modal && Bt(this.wrapper, "p-overlay-mask-leave");
                        break;
                }
            }
            onAnimationEnd(e) {
                switch (e.toState) {
                    case "void":
                        this.onContainerDestroy(), this.onHide.emit({}), this.cd.markForCheck(), this.maskVisible !== this.visible && (this.maskVisible = this.visible);
                        break;
                    case "visible":
                        this.onShow.emit({});
                        break;
                }
            }
            onContainerDestroy() {
                this.unbindGlobalListeners(), this.dragging = !1, this.maskVisible = !1, this.maximized && (this.document.body.style.removeProperty("--scrollbar;-width"), this.maximized = !1), this.modal && this.disableModality(), pt(this.document.body, "p-overflow-hidden") && Vt(this.document.body, "p-overflow-hidden"), this.container && this.autoZIndex && Ei.clear(this.container), this.container = null, this.wrapper = null, this._style = this.originalStyle ? Ce({}, this.originalStyle) : {};
            }
            destroyStyle() {
                this.styleElement && (this.renderer.removeChild(this.document.head, this.styleElement), this.styleElement = null);
            }
            ngOnDestroy() {
                this.container && (this.restoreAppend(), this.onContainerDestroy()), this.destroyStyle(), super.ngOnDestroy();
            }
            static ɵfac = (() => {
                let e;
                return function(a) {
                    return (e || (e = de(t)))(a || t);
                };
            })();
            static ɵcmp = Ee({
                type: t,
                selectors: [
                    ["p-dialog"]
                ],
                contentQueries: function(i, a, s) {
                    if (i & 1 && (fe(s, Us, 4), fe(s, ia, 4), fe(s, na, 4), fe(s, Fs, 4), fe(s, $s, 4), fe(s, Bs, 4), fe(s, Vs, 4), fe(s, Vn, 4)), i & 2) {
                        let l;
                        W(l = K()) && (a._headerTemplate = l.first), W(l = K()) && (a._contentTemplate = l.first), W(l = K()) && (a._footerTemplate = l.first), W(l = K()) && (a._closeiconTemplate = l.first), W(l = K()) && (a._maximizeiconTemplate = l.first), W(l = K()) && (a._minimizeiconTemplate = l.first), W(l = K()) && (a._headlessTemplate = l.first), W(l = K()) && (a.templates = l);
                    }
                },
                viewQuery: function(i, a) {
                    if (i & 1 && (Ye(Gs, 5), Ye(ia, 5), Ye(na, 5)), i & 2) {
                        let s;
                        W(s = K()) && (a.headerViewChild = s.first), W(s = K()) && (a.contentViewChild = s.first), W(s = K()) && (a.footerViewChild = s.first);
                    }
                },
                inputs: {
                    header: "header",
                    draggable: [2, "draggable", "draggable", G],
                    resizable: [2, "resizable", "resizable", G],
                    positionLeft: "positionLeft",
                    positionTop: "positionTop",
                    contentStyle: "contentStyle",
                    contentStyleClass: "contentStyleClass",
                    modal: [2, "modal", "modal", G],
                    closeOnEscape: [2, "closeOnEscape", "closeOnEscape", G],
                    dismissableMask: [2, "dismissableMask", "dismissableMask", G],
                    rtl: [2, "rtl", "rtl", G],
                    closable: [2, "closable", "closable", G],
                    responsive: "responsive",
                    appendTo: "appendTo",
                    breakpoints: "breakpoints",
                    styleClass: "styleClass",
                    maskStyleClass: "maskStyleClass",
                    maskStyle: "maskStyle",
                    showHeader: [2, "showHeader", "showHeader", G],
                    breakpoint: "breakpoint",
                    blockScroll: [2, "blockScroll", "blockScroll", G],
                    autoZIndex: [2, "autoZIndex", "autoZIndex", G],
                    baseZIndex: [2, "baseZIndex", "baseZIndex", Ht],
                    minX: [2, "minX", "minX", Ht],
                    minY: [2, "minY", "minY", Ht],
                    focusOnShow: [2, "focusOnShow", "focusOnShow", G],
                    maximizable: [2, "maximizable", "maximizable", G],
                    keepInViewport: [2, "keepInViewport", "keepInViewport", G],
                    focusTrap: [2, "focusTrap", "focusTrap", G],
                    transitionOptions: "transitionOptions",
                    closeIcon: "closeIcon",
                    closeAriaLabel: "closeAriaLabel",
                    closeTabindex: "closeTabindex",
                    minimizeIcon: "minimizeIcon",
                    maximizeIcon: "maximizeIcon",
                    closeButtonProps: "closeButtonProps",
                    maximizeButtonProps: "maximizeButtonProps",
                    visible: "visible",
                    style: "style",
                    position: "position",
                    role: "role",
                    headerTemplate: [0, "content", "headerTemplate"],
                    contentTemplate: "contentTemplate",
                    footerTemplate: "footerTemplate",
                    closeIconTemplate: "closeIconTemplate",
                    maximizeIconTemplate: "maximizeIconTemplate",
                    minimizeIconTemplate: "minimizeIconTemplate",
                    headlessTemplate: "headlessTemplate"
                },
                outputs: {
                    onShow: "onShow",
                    onHide: "onHide",
                    visibleChange: "visibleChange",
                    onResizeInit: "onResizeInit",
                    onResizeEnd: "onResizeEnd",
                    onDragEnd: "onDragEnd",
                    onMaximize: "onMaximize"
                },
                features: [yn([aa]), ye],
                ngContentSelectors: Zs,
                decls: 1,
                vars: 1,
                consts: [
                    ["container", ""],
                    ["notHeadless", ""],
                    ["content", ""],
                    ["titlebar", ""],
                    ["icon", ""],
                    ["footer", ""],
                    [3, "ngClass", "class", "ngStyle", "style", 4, "ngIf"],
                    [3, "ngClass", "ngStyle"],
                    ["pFocusTrap", "", 3, "class", "ngClass", "ngStyle", "style", "pFocusTrapDisabled", 4, "ngIf"],
                    ["pFocusTrap", "", 3, "ngClass", "ngStyle", "pFocusTrapDisabled"],
                    [4, "ngIf", "ngIfElse"],
                    [4, "ngTemplateOutlet"],
                    ["style", "z-index: 90;", 3, "ngClass", "mousedown", 4, "ngIf"],
                    [3, "ngClass", "mousedown", 4, "ngIf"],
                    [3, "ngClass", 4, "ngIf"],
                    [2, "z-index", "90", 3, "mousedown", "ngClass"],
                    [3, "mousedown", "ngClass"],
                    [3, "id", "ngClass", 4, "ngIf"],
                    [3, "ngClass"],
                    [3, "styleClass", "tabindex", "ariaLabel", "buttonProps", "onClick", "keydown.enter", 4, "ngIf"],
                    [3, "styleClass", "ariaLabel", "tabindex", "buttonProps", "onClick", "keydown.enter", 4, "ngIf"],
                    [3, "id", "ngClass"],
                    [3, "onClick", "keydown.enter", "styleClass", "tabindex", "ariaLabel", "buttonProps"],
                    [4, "ngIf"],
                    [3, "onClick", "keydown.enter", "styleClass", "ariaLabel", "tabindex", "buttonProps"]
                ],
                template: function(i, a) {
                    i & 1 && (Lt(js), H(0, Co, 2, 11, "div", 6)), i & 2 && b("ngIf", a.maskVisible);
                },
                dependencies: [Ut, Cn, Mt, Pn, kn, Yn, ta, qn, Jn, ea, jt],
                encapsulation: 2,
                data: {
                    animation: [$t("animation", [Ke("void => visible", [fi(Oo)]), Ke("visible => void", [fi(No)])])]
                },
                changeDetection: 0
            });
        }
        return t;
    })(),
    Cd = (() => {
        class t {
            static ɵfac = function(i) {
                return new(i || t)();
            };
            static ɵmod = ot({
                type: t
            });
            static ɵinj = st({
                imports: [zo, jt, jt]
            });
        }
        return t;
    })();
var Kt = (() => {
    class t {
        constructor() {
            this.rootUrl = "https://y3frfoztg8.execute-api.us-east-1.amazonaws.com//Dev", this.authStoreRootUrl = "https://d6lhw3tu5zq77.cloudfront.net/dev";
        }
        static {
            this.ɵfac = function(i) {
                return new(i || t)();
            };
        }
        static {
            this.ɵprov = Y({
                token: t,
                factory: t.ɵfac,
                providedIn: "root"
            });
        }
    }
    return t;
})();
var oa = (() => {
    class t {
        constructor(e, i) {
            this.config = e, this.http = i, this._rootUrl = "", this._authauthStoreRootUrl = "";
        }
        get rootUrl() {
            return this._rootUrl || this.config.rootUrl;
        }
        get authStoreRootUrl() {
            return this._authauthStoreRootUrl || this.config.authStoreRootUrl;
        }
        set rootUrl(e) {
            this._rootUrl = e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || t)(le(Kt), le(Ft));
            };
        }
        static {
            this.ɵprov = Y({
                token: t,
                factory: t.ɵfac
            });
        }
    }
    return t;
})();
var Di = class {
        encodeKey(n) {
            return encodeURIComponent(n);
        }
        encodeValue(n) {
            return encodeURIComponent(n);
        }
        decodeKey(n) {
            return decodeURIComponent(n);
        }
        decodeValue(n) {
            return decodeURIComponent(n);
        }
    },
    Ho = new Di(),
    dt = class {
        constructor(n, e, i, a, s) {
            this.name = n, this.value = e, this.options = i, this.options = i || {}, (this.options.style === null || this.options.style === void 0) && (this.options.style = a), (this.options.explode === null || this.options.explode === void 0) && (this.options.explode = s);
        }
        serializeValue(n, e = ",") {
            if (n == null) return "";
            if (n instanceof Array) return n.map(i => this.serializeValue(i).split(e).join(encodeURIComponent(e))).join(e);
            if (typeof n == "object") {
                let i = [];
                for (let a of Object.keys(n)) {
                    let s = n[a];
                    s != null && (s = this.serializeValue(s).split(e).join(encodeURIComponent(e)), this.options.explode ? i.push(`${a}=${s}`) : (i.push(a), i.push(s)));
                }
                return i.join(e);
            } else return String(n);
        }
    },
    wi = class extends dt {
        constructor(n, e, i) {
            super(n, e, i, "simple", !1);
        }
        append(n) {
            let e = this.value;
            e == null && (e = "");
            let i = this.options.style === "label" ? "." : "",
                a = this.options.explode ? i === "" ? "," : i : ",",
                s = !1;
            return this.options.style === "matrix" && (i = `;${this.name}=`, this.options.explode && typeof e == "object" && (i = ";", e instanceof Array ? (e = e.map(l => `${this.name}=${this.serializeValue(l,";")}`), e = e.join(";"), s = !0) : (e = this.serializeValue(e, ";"), s = !0))), e = i + (s ? e : this.serializeValue(e, a)), n = n.replace(`{${this.name}}`, e), n = n.replace(`{${i}${this.name}${this.options.explode?"*":""}}`, e), n;
        }
        serializeValue(n, e = ",") {
            var i = typeof n == "string" ? encodeURIComponent(n) : super.serializeValue(n, e);
            return i = i.replace("%3D", "="), i = i.replace("%3B", ";"), i = i.replace("%2C", ","), i;
        }
    },
    xi = class extends dt {
        constructor(n, e, i) {
            super(n, e, i, "form", !0);
        }
        append(n) {
            if (this.value instanceof Array) {
                if (this.options.explode)
                    for (let e of this.value) n = n.append(this.name, this.serializeValue(e));
                else {
                    let e = this.options.style === "spaceDelimited" ? " " : this.options.style === "pipeDelimited" ? "|" : ",";
                    return n.append(this.name, this.serializeValue(this.value, e));
                }
            } else if (this.value !== null && typeof this.value == "object") {
                if (this.options.style === "deepObject")
                    for (let e of Object.keys(this.value)) {
                        let i = this.value[e];
                        i != null && (n = n.append(`${this.name}[${e}]`, this.serializeValue(i)));
                    } else if (this.options.explode)
                        for (let e of Object.keys(this.value)) {
                            let i = this.value[e];
                            i != null && (n = n.append(e, this.serializeValue(i)));
                        } else {
                            let e = [];
                            for (let i of Object.keys(this.value)) {
                                let a = this.value[i];
                                a != null && (e.push(i), e.push(a));
                            }
                            n = n.append(this.name, this.serializeValue(e));
                        }
            } else this.value !== null && this.value !== void 0 && (n = n.append(this.name, this.serializeValue(this.value)));
            return n;
        }
    },
    Ti = class extends dt {
        constructor(n, e, i) {
            super(n, e, i, "simple", !1);
        }
        append(n) {
            if (this.value !== null && this.value !== void 0)
                if (this.value instanceof Array)
                    for (let e of this.value) n = n.append(this.name, this.serializeValue(e));
                else n = n.append(this.name, this.serializeValue(this.value));
            return n;
        }
    },
    k = class {
        constructor(n, e, i) {
            this.rootUrl = n, this.operationPath = e, this.method = i, this._path = new Map(), this._query = new Map(), this._header = new Map();
        }
        path(n, e, i) {
            this._path.set(n, new wi(n, e, i || {}));
        }
        query(n, e, i) {
            this._query.set(n, new xi(n, e, i || {}));
        }
        header(n, e, i) {
            this._header.set(n, new Ti(n, e, i || {}));
        }
        body(n, e = "application/json") {
            if (n instanceof Blob ? this._bodyContentType = n.type : this._bodyContentType = e, this._bodyContentType === "application/x-www-form-urlencoded" && n !== null && typeof n == "object") {
                let i = [];
                for (let a of Object.keys(n)) {
                    let s = n[a];
                    s instanceof Array || (s = [s]);
                    for (let l of s) {
                        let o = this.formDataValue(l);
                        o !== null && i.push([a, o]);
                    }
                }
                this._bodyContent = i.map(a => `${encodeURIComponent(a[0])}=${encodeURIComponent(a[1])}`).join("&");
            } else if (this._bodyContentType === "multipart/form-data") {
                let i = new FormData();
                if (n != null)
                    for (let a of Object.keys(n)) {
                        let s = n[a];
                        if (s instanceof Array)
                            for (let l of s) {
                                let o = this.formDataValue(l);
                                o !== null && i.append(a, o);
                            } else {
                                let l = this.formDataValue(s);
                                l !== null && i.set(a, l);
                            }
                    }
                this._bodyContent = i;
            } else this._bodyContent = n;
        }
        formDataValue(n) {
            return n == null ? null : n instanceof Blob ? n : typeof n == "object" ? JSON.stringify(n) : String(n);
        }
        build(n) {
            n = n || {};
            let e = this.operationPath;
            for (let l of this._path.values()) e = l.append(e);
            let i = this.rootUrl + e,
                a = new Nn({
                    encoder: Ho
                });
            for (let l of this._query.values()) a = l.append(a);
            let s = new On();
            n.accept && (s = s.append("Accept", n.accept));
            for (let l of this._header.values()) s = l.append(s);
            return this._bodyContentType && !(this._bodyContent instanceof FormData) && (s = s.set("Content-Type", this._bodyContentType)), new zn(this.method.toUpperCase(), i, this._bodyContent, {
                params: a,
                headers: s,
                responseType: n.responseType,
                reportProgress: n.reportProgress
            });
        }
    };
As();
var Pc = (() => {
        class t {
            static {
                this.visualizationDetailsPostPath = "/visualization-details";
            }
            static {
                this.visualizationPostPath = "/visualization";
            }
            static {
                this.LookupsGetPath = "/lookups";
            }
            static {
                this.LookupsNotificationPath = "/config/notification";
            }
            static {
                this.LookupsNotificationsPath = "/config/notifications";
            }
            static {
                this.watchlistPath = "/watchlist";
            }
            static {
                this.getWatchlistShipments = "/watchlist/shipments";
            }
            static {
                this.watchlistGetWatchlistPackagesPath = "/watchlist/packages";
            }
            static {
                this.searchMasterClientsGetPath = "/customer/master";
            }
            static {
                this.getCustomerNamePath = "/customer/name";
            }
            static {
                this.postSearchCustomer = "/customer/search";
            }
            static {
                this.customerPath = "/customer";
            }
            static {
                this.customerAccounts = "/customer/accounts";
            }
            static {
                this.GeneratedReportGetPath = "/reports";
            }
            static {
                this.DeleteReportGetPath = "/report";
            }
            static {
                this.putCreateReport = "/report";
            }
            static {
                this.GetReportByIdPath = "/report";
            }
            static {
                this.DownloadReportPath = "/report";
            }
            static {
                this.saveColumnLayout = "/reportTemplate";
            }
            static {
                this.SavedColumnLayoutGetPath = "/reportTemplates";
            }
            static {
                this.DeleteSavedTemplateGetPath = "/reportTemplate";
            }
            static {
                this.GetFinalColumnsByIdPath = "/reportTemplates";
            }
            static {
                this.ScheduleReportGetPath = "/scheduledReport";
            }
            static {
                this.ShareTemplatePostPath = "/reportTemplate";
            }
            static {
                this.ScheduleReportPostPath = "/scheduledReport";
            }
            static {
                this.DeleteScheduledReportGetPath = "/scheduledReport";
            }
            static {
                this.GetScheduledReportByIdPath = "/scheduledReport";
            }
            static {
                this.putCreateScheduleReport = "/scheduledReport";
            }
            static {
                this.GetTemplateByIdPath = "/reportTemplate";
            }
        }
        return t;
    })(),
    z = Pc;
var Rs = (() => {
    class t extends oa {
        constructor(e, i, a) {
            super(e, i), this.locale = a, this.alertRefresh = new $e(), this.statusAlertRefresh = new $e(), this.datagridRefresh = new $e(), this.alertRefresh$ = this.alertRefresh.asObservable(), this.statusAlertRefresh$ = this.statusAlertRefresh.asObservable(), this.datagridRefresh$ = this.datagridRefresh.asObservable();
        }
        visualizationGetvisualizationdataPost$Response(e) {
            let i = new k(this.rootUrl, z.visualizationPostPath, "post");
            return e && i.body(e.body, "application/json"), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        visualizationGetvisualizationdetailsPost$Response(e) {
            let i = new k(this.rootUrl, z.visualizationDetailsPostPath, "post");
            return e && i.body(e.body, "application/json"), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        lookupsGet$Response() {
            let e = new k(this.rootUrl, z.LookupsGetPath, "get");
            return this.http.request(e.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(i => i instanceof N), _(i => i));
        }
        watchlistGet$Response(e) {
            let i = new k(this.rootUrl, z.watchlistPath, "get");
            return i.query("userId", e.userId), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        watchlistGet(e) {
            return this.watchlistGet$Response(e).pipe(_(i => i.body));
        }
        watchlistPutWatchlist$Response(e) {
            let i = new k(this.rootUrl, z.watchlistPath, "put");
            return e && i.body(e.body, "application/json"), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        watchListPut(e) {
            return this.watchlistPutWatchlist$Response({
                body: e
            }).pipe(_(i => i.body));
        }
        watchlistDelete$Response(e) {
            let i = new k(this.rootUrl, z.watchlistPath, "delete");
            return i.body([e.watchlistId], "application/json"), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        watchlistDelete(e) {
            return this.watchlistDelete$Response(e).pipe(_(i => i.body));
        }
        watchlistDeleteWatchlistPackages$Response(e) {
            let i = new k(this.rootUrl, z.watchlistGetWatchlistPackagesPath, "delete");
            return i.body(e, "application/json"), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        getWatchlistShipments$Response(e) {
            let i = new k(this.rootUrl, z.getWatchlistShipments, "get");
            return e && i.query("userId", e.userId), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        getWatchlistShipment(e) {
            return this.getWatchlistShipments$Response(e).pipe(_(i => i.body));
        }
        searchMasterClientsGet$Response(e) {
            let i = new k(this.authStoreRootUrl, z.searchMasterClientsGetPath, "get");
            return i.query("customerName", e.customerName), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        searchMasterClientsGet(e) {
            return this.searchMasterClientsGet$Response(e).pipe(_(i => i.body));
        }
        getMasterClientNameByIdResponse$Response(e) {
            let i = new k(this.authStoreRootUrl, z.customerPath, "get");
            return i.query("clientId", e.masterClientId), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        getMasterClientNameByIdResponse(e) {
            return this.getMasterClientNameByIdResponse$Response(e).pipe(_(i => i.body));
        }
        postSearchCustomer$Response(e) {
            let i = new k(this.authStoreRootUrl, z.customerPath, "post");
            return e && i.body(e), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        postSearchCustomer(e) {
            return this.postSearchCustomer$Response(e).pipe(_(i => i.body));
        }
        generatedReportsGet(e) {
            return this.generatedReportsGet$Response(e).pipe(_(i => i.body));
        }
        generatedReportsGet$Response(e) {
            let i = new k(this.rootUrl, z.GeneratedReportGetPath, "get");
            return e && i.query("userId", e.userId), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        reportDelete(e) {
            return this.deleteReport$Response(e).pipe(_(i => i.body));
        }
        deleteReport$Response(e) {
            let i = `${z.DeleteReportGetPath}?userId=${e.userId}&reportId=${e.reportId}`,
                a = new k(this.rootUrl, i, "delete");
            return e && a.body(e, "application/json"), this.http.request(a.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(s => s instanceof N), _(s => s));
        }
        createReport$Response(e) {
            let i = new k(this.rootUrl, z.putCreateReport, "put");
            if (e) {
                let a = this.compress(e);
                i.body(a);
            }
            return this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        compress(e) {
            try {
                let i = JSON.stringify(e),
                    a = nn(i),
                    s = btoa(String.fromCharCode(...new Uint8Array(a))),
                    l = JSON.stringify(e).length * 2,
                    o = (l / 1024).toFixed(2);
                return console.info(`Original size: ${o} kb`), l = s.length * 2, o = (l / 1024).toFixed(2), console.info(`Compressed size: ${o} kb`), s;
            } catch (i) {
                return console.error("Error while compressing data", i), e;
            }
        }
        createReport(e) {
            return this.createReport$Response(e).pipe(_(i => i.body));
        }
        getReportById(e) {
            return this.getReportById$Response(e).pipe(_(i => i.body));
        }
        getReportById$Response(e) {
            let i = new k(this.rootUrl, z.GetReportByIdPath, "get");
            return e && (i.query("userId", e.userId), i.query("reportId", e.reportId)), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        downloadReport(e) {
            return this.downloadReport$Response(e).pipe(_(i => i.body));
        }
        downloadReport$Response(e) {
            let i = new k(this.rootUrl, z.DownloadReportPath, "post");
            return e && (i.query("userId", e.userId), i.query("reportId", e.reportId)), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        saveColumnLayout(e) {
            return this.saveColumnLayout$Response(e).pipe(_(i => i.body));
        }
        savedColumnLayoutGet(e) {
            return this.savedColumnLayoutGet$Response(e).pipe(_(i => i.body));
        }
        savedColumnLayoutGet$Response(e) {
            let i = new k(this.rootUrl, z.SavedColumnLayoutGetPath, "get");
            return e && i.query("userId", e.userId), e && e.type && i.query("type", e.type), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        savedTemplateDelete(e) {
            return this.deleteSavedTemplate$Response(e).pipe(_(i => i.body));
        }
        deleteSavedTemplate$Response(e) {
            let i = `${z.DeleteSavedTemplateGetPath}?userId=${e.userId}&templateId=${e.templateId}`,
                a = new k(this.rootUrl, i, "delete");
            return e && a.body(e, "application/json"), this.http.request(a.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(s => s instanceof N), _(s => s));
        }
        saveColumnLayout$Response(e) {
            let i = new k(this.rootUrl, z.saveColumnLayout, "post");
            return e && i.body(e), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        saveUpdateFinalColumnLayout(e) {
            return this.saveUpdateFinalColumnLayout$Response(e).pipe(_(i => i.body));
        }
        saveUpdateFinalColumnLayout$Response(e) {
            let i = "post";
            e.templateId && (i = "put");
            let a = new k(this.rootUrl, z.saveColumnLayout, i);
            return e && a.body(e), this.http.request(a.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(s => s instanceof N), _(s => s));
        }
        getAllFinalColumnsById(e) {
            return this.getAllFinalColumnsById$Response(e).pipe(_(i => i.body));
        }
        getAllFinalColumnsById$Response(e) {
            let i = new k(this.rootUrl, z.GetFinalColumnsByIdPath, "get");
            return i.query("userId", e), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        sheduleReportGet(e) {
            return this.sheduleReportGet$Response(e).pipe(_(i => i.body));
        }
        sheduleReportGet$Response(e) {
            let i = new k(this.rootUrl, z.ScheduleReportGetPath, "get");
            return e && i.query("userId", e.userId), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        sheduleReportPost(e) {
            return this.sheduleReportPost$Response(e).pipe(_(i => i.body));
        }
        sheduleReportPost$Response(e) {
            let i = new k(this.rootUrl, z.ScheduleReportPostPath, "post");
            if (e) {
                let a = this.compress(e);
                i.body(a, "application/json");
            }
            return this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        shareTemplatePost(e) {
            return this.shareTemplatePost$Response(e).pipe(_(i => i.body));
        }
        shareTemplatePost$Response(e) {
            let i = new k(this.rootUrl, z.ShareTemplatePostPath, "post");
            if (e) {
                let a = JSON.stringify(e.emails);
                a = a.replace(/"/g, ""), i.query("emails", a), i.body({
                    userId: e.userId,
                    templateId: e.templateId
                }, "application/json");
            }
            return this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        scheduledReportDelete(e) {
            return this.deleteScheduledReport$Response(e).pipe(_(i => i.body));
        }
        deleteScheduledReport$Response(e) {
            let i = `${z.DeleteScheduledReportGetPath}?userId=${e.userId}&scheduleId=${e.scheduleId}`,
                a = new k(this.rootUrl, i, "delete");
            return e && a.body(e, "application/json"), this.http.request(a.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(s => s instanceof N), _(s => s));
        }
        getSheduledReportById(e) {
            return this.getSheduledReportById$Response(e).pipe(_(i => i.body));
        }
        getSheduledReportById$Response(e) {
            let i = new k(this.rootUrl, z.GetScheduledReportByIdPath, "get");
            return e && (i.query("userId", e.userId), i.query("scheduleId", e.reportId)), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        createScheduleReport$Response(e) {
            let i = new k(this.rootUrl, z.putCreateScheduleReport, "put");
            if (e) {
                let a = this.compress(e);
                i.body(a);
            }
            return this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        createSheduleReport(e) {
            return this.createScheduleReport$Response(e).pipe(_(i => i.body));
        }
        getTemplateById(e) {
            return this.getTemplateById$Response(e).pipe(_(i => i.body));
        }
        getTemplateById$Response(e) {
            let i = new k(this.rootUrl, z.GetTemplateByIdPath, "get");
            return e && (i.query("userId", e.userId), i.query("templateId", e.templateId)), this.http.request(i.build({
                responseType: "json",
                accept: "application/json"
            })).pipe(C(a => a instanceof N), _(a => a));
        }
        static {
            this.ɵfac = function(i) {
                return new(i || t)(le(Kt), le(Ft), le(An));
            };
        }
        static {
            this.ɵprov = Y({
                token: t,
                factory: t.ɵfac,
                providedIn: "root"
            });
        }
    }
    return t;
})();
var Kd = (() => {
    class t {
        constructor(e) {
            this.apiService = e, this.lookupsDescriptions$ = this.apiService.lookupsGet$Response().pipe(_(i => i ? .body ? ? {}), rn(i => (console.error("Error loading lookup data:", i), on({}))), ln({
                bufferSize: 1,
                refCount: !0
            }));
        }
        get LookupsDescriptions() {
            return this.lookupsDescriptions$;
        }
        getLookupData(e, i, a) {
            return this.lookupsDescriptions$.pipe(_(s => {
                if (!a) {
                    console.warn(`LookupDataService: Empty or invalid language parameter for code '${i}' in group '${e}'`);
                    return;
                }
                if (!s || typeof s != "object" || Object.keys(s).length === 0) return i;
                if (!s[e] || !Array.isArray(s[e])) return console.warn(`LookupDataService: Invalid data structure for group '${e}'. Data:`, s), i;
                let l = s[e].find(o => o ? .hasOwnProperty("code") && o.code === i);
                return l ? l[a] ? l[a] : (console.warn(`LookupDataService: Language '${a}' not found for code '${i}' in group '${e}'`), i) : (console.warn(`LookupDataService: Code '${i}' not found in group '${e}'`), i);
            }));
        }
        getAllByGroup(e) {
            return this.lookupsDescriptions$.pipe(_(i => !i || typeof i != "object" || Object.keys(i).length === 0 ? "No Description Found" : Array.isArray(i[e]) ? i[e] : "No Description Found"));
        }
        getItemCode(e) {
            return this.lookupsDescriptions$.pipe(_(i => {
                if (i)
                    for (let a in i) {
                        let s;
                        if (s = i[a].filter(l => l.en === e || l.fr === e), s.length > 0) return s[0].code;
                    }
                return e;
            }));
        }
        static {
            this.ɵfac = function(i) {
                return new(i || t)(le(Rs));
            };
        }
        static {
            this.ɵprov = Y({
                token: t,
                factory: t.ɵfac,
                providedIn: "root"
            });
        }
    }
    return t;
})();
export {
    Hs as a, Wc as b, Kc as c, u as d, ve as e, De as f, Q as g, Yt as h, Wt as i, Kn as j, Xn as k, rp as l, lp as m, cp as n, pp as o, dp as p, hp as q, fp as r, up as s, _p as t, mp as u, gp as v, bp as w, Ep as x, yp as y, vp as z, Dp as A, wp as B, xp as C, Tp as D, Qn as E, Ap as F, Rp as G, Sp as H, Cp as I, Ip as J, kp as K, Pp as L, Op as M, Gp as N, Jn as O, ea as P, ta as Q, aa as R, zo as S, Cd as T, z as U, Kt as V, Rc as W, Sc as X, zd as Y, As as Z, Rs as _, Kd as $
}; /**i18n:6e1dbccd4192d215e143e99fb4b6a095cee3c871f5aa7cd380ca91231f35e8e0*/