pixel-mirror 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/index.js +1806 -0
- package/package.json +68 -0
- package/plugins/vite.js +14 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1806 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._PM--0K,._PM-BsK,._PM-CUZ>button,._PM-fL3,._PM-gUL,._PM-nRD,._PM-nSt,._PM-uxq{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;font:inherit;margin:0;outline:none;padding:0}._PM--0K:disabled,._PM-BsK:disabled,._PM-CUZ>button:disabled,._PM-fL3:disabled,._PM-gUL:disabled,._PM-nRD:disabled,._PM-nSt:disabled,._PM-uxq:disabled{cursor:default}._PM--0K:not(:disabled):active,._PM-BsK:not(:disabled):active,._PM-CUZ>button:not(:disabled):active,._PM-fL3:not(:disabled):active,._PM-gUL:not(:disabled):active,._PM-nRD:not(:disabled):active,._PM-nSt:not(:disabled):active,._PM-uxq:not(:disabled):active{transform:scale(.95)}._PM-BsK:not(:disabled):hover,._PM-nRD:not(:disabled):hover{background:#0000000a}:root{position:relative}._PM-1LW{display:none!important}._PM-aop{align-items:center;background:#fff;border:2px solid;border-radius:32px;bottom:40px;box-sizing:border-box;color:#000;display:flex;font-family:Arial,sans-serif;justify-content:center;left:16px;margin-left:auto;margin-right:auto;max-width:calc(100vw - 32px);outline:3px solid hsla(0,0%,100%,.5);position:fixed;right:16px;transform:translateZ(0);transition:all .25s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;will-change:width,height;z-index:2147483647}._PM-aop._PM--Uf{pointer-events:none}._PM-aop._PM-H81{bottom:auto;top:48px}._PM-aop svg{color:currentcolor;display:block;fill:none}._PM-aop *{box-sizing:border-box}._PM-6di{align-items:center;background:#fe0200;border:2px solid;border-radius:32px;bottom:96px;color:#fff;display:flex;gap:.5rem;left:50%;margin:auto;padding:.375rem .75rem;position:absolute;transform:translate(-50%);width:max-content;z-index:10}._PM--p1{font-size:15px;line-height:16px}._PM-H81 ._PM-6di{bottom:-64px}._PM-6Uc{align-items:center;display:flex;overflow-x:auto;padding:0 12px}._PM-nRD{padding:8px}._PM-nRD._PM-0BL{transform:rotate(180deg)}._PM-Ms2{position:relative}._PM-8ZO{font-size:8px;font-weight:700;left:0;line-height:1;right:0;text-align:center;top:18px}._PM-8ZO,._PM-iiG{position:absolute;z-index:1}._PM-iiG{align-items:center;background:#fff;border-left:2px solid;border-radius:12px 12px 0 0;border-right:2px solid;border-top:2px solid;bottom:100%;display:flex;left:80px;overflow:hidden;padding-left:4px;padding-right:4px;padding-top:4px}._PM-BsK{border-radius:8px;padding:4px}._PM-BsK>svg{height:24px;width:24px}._PM-ykA{position:relative}._PM-T3K{font-size:11.5px;font-weight:700;height:16px;top:0;right:0;bottom:0;left:0;line-height:16px;text-align:center}._PM-T3K,._PM-XPp{margin:auto;position:absolute;z-index:1}._PM-XPp{background:#fff;background:#000;border-radius:16px;bottom:calc(100% + 8px);color:#fff;font-family:monospace;font-size:12px;left:0;line-height:20px;padding:0 8px;pointer-events:none;right:0;white-space:nowrap;width:max-content}._PM-ZDk{position:relative;width:100%}._PM-1Gp,._PM-ZDk{border-radius:inherit;height:100%}._PM-1Gp{overflow:hidden;padding:8px}._PM--Xs{height:100%;opacity:0;overflow:auto;overscroll-behavior:contain;padding:16px;visibility:hidden;will-change:opacity visibility}._PM--Xs._PM-Pgi{opacity:1;transition:opacity .5s cubic-bezier(.4,0,.2,1) .25s,visibility 0s .25s;visibility:visible}._PM-ea1{align-items:center;bottom:-18px;display:flex;gap:16px;left:0;margin:auto;position:absolute;right:0;width:max-content;z-index:1}._PM-fL3{background:#000;border-radius:16px;color:#fff;font-size:15px;line-height:32px;width:168px}._PM-F7y{padding-bottom:24px}._PM-NMj{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}._PM-PaA{font-size:18px;line-height:32px;margin:0}._PM-gUL{align-items:center;background:#000;border-radius:16px;color:#fff;display:flex;font-size:15px;gap:4px;line-height:32px;padding:0 10px;width:116px}._PM-gUL>svg{flex:none}._PM-gUL>span{flex:1;text-align:center}._PM-gUL:active{transform:none!important}._PM-gUL #_pixel-mirror-toggle-trigger{transform:translate(-8px);transition:transform .25s cubic-bezier(.4,0,.2,1)}._PM-gUL._PM-dtI #_pixel-mirror-toggle-trigger{transform:translate(0)}._PM-CUZ{align-items:center;border-color:#000;border-radius:12px;display:flex;margin-bottom:16px;padding:8px 16px}._PM-CUZ>legend{background:#000;border-radius:6px;color:#fff;font-size:15px;line-height:24px;padding-left:8px;padding-right:8px}._PM-CUZ>input{background:transparent;border:none;display:block;flex:1;font-family:monospace;font-size:16px;line-height:24px;outline:none;padding:8px 8px 8px 0;width:100%}._PM-CUZ>button{background:#000;border-radius:16px;color:#fff;font-size:14px;line-height:24px;padding-left:12px;padding-right:12px}._PM-OwQ{border:2px solid #000;border-radius:12px;margin-top:24px;overflow:auto}._PM-XPo{border-collapse:collapse;border-spacing:0;font-size:14px;line-height:16px;min-width:100%;text-align:left;white-space:nowrap;width:max-content}._PM-92c{align-items:center;display:flex;gap:8px;justify-content:space-evenly}._PM-uxq{border-radius:8px}._PM-uxq>svg{height:20px;width:20px}._PM-uxq._PM-FWS{opacity:0}._PM-uxq._PM-FWS._PM-En3,._PM-uxq._PM-FWS:focus{opacity:1}._PM-XPo>thead>tr{border-bottom:1px solid #eee}._PM-XPo>tbody{color:#333;text-transform:capitalize}._PM-XPo>tbody>tr{border-bottom:1px solid #eee}._PM-XPo>tbody>tr:hover ._PM-FWS{opacity:1}._PM-XPo>tbody>tr._PM-En3{background:#f9f9f9}._PM-XPo th{padding:12px}._PM-XPo th:not(:last-child){border-right:1px solid #eee}._PM-XPo td{padding:8px 12px}._PM-XPo td:not(:last-child){border-right:1px solid #eee}._PM-XPo>tfoot td{padding:12px}._PM-XPo>tfoot input{border:1px solid #eee;border-radius:6px;font-size:14px;height:24px;outline:none;padding:0 8px;width:72px}._PM-XPo>tfoot input:focus{outline:2px solid #ddd}._PM-XPo>tfoot select{border:1px solid #eee;border-radius:6px;font-size:14px;height:24px;outline:none;padding:0 4px}._PM-XPo>tfoot select:focus{outline:2px solid #ddd}._PM-nSt{background:#000;border:none;border-radius:16px;color:#fff;font-size:13px;height:24px;padding-left:12px;padding-right:12px}._PM-nSt:disabled{opacity:.5}._PM-nSt:focus{outline:2px solid #999}._PM-6J2{display:grid;gap:20px;grid-template-columns:repeat(4,1fr)}._PM-9BG{cursor:pointer;position:relative}._PM--3m{aspect-ratio:3/4;border:2px solid #ddd;border-radius:16px;display:block;object-fit:cover;width:100%}._PM--0K{align-items:center;background:#000;border-radius:50%;bottom:12px;color:#fff;display:flex;justify-content:center;opacity:0;padding:6px;position:absolute;right:12px;z-index:2}._PM--0K>svg{height:20px;width:20px}._PM--0K:hover{background:#fe0200}._PM-9BG._PM-L-M{cursor:not-allowed}._PM-9BG._PM-L-M ._PM--3m{border-color:#666}._PM-9BG._PM-L-M ._PM--0K{display:none}._PM-9BG:hover ._PM--3m{border-color:#666}._PM-9BG:hover ._PM--0K{opacity:1;transition:opacity .25s cubic-bezier(.4,0,.2,1)}._PM-zF6{align-items:center;aspect-ratio:3/4;background:#fafafa;border:2px solid #ddd;border-radius:16px;color:#aaa;cursor:pointer;display:flex;flex-direction:column;justify-content:center;width:100%}._PM-cqR{background:#eee;border-radius:12px;height:64px;padding:12px;width:64px}._PM-50o{font-size:16px;line-height:24px;margin-top:8px}._PM-zF6>input{display:none}._PM-zF6:hover{border-color:#666;color:#666}._PM-Qrp{top:0;right:0;bottom:0;left:0;min-height:100vh;overflow:hidden;pointer-events:none;position:absolute;z-index:2147483646}._PM-hUT{contain:layout size;left:0;pointer-events:all;position:absolute;top:0;transition:none;-webkit-user-select:none;user-select:none;will-change:width,height,transform;z-index:1}._PM-hUT:active{outline:1px dashed #000}._PM-hUT._PM-jws{transition:width .25s cubic-bezier(.4,0,.2,1),height .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1)}._PM-hUT._PM-R39{cursor:default;pointer-events:none}._PM-hUT._PM-030{outline:none!important}._PM-Bit{z-index:2}._PM-Bit,._PM-qJ0{top:0;right:0;bottom:0;left:0;position:absolute}._PM-qJ0{display:grid;z-index:3}._PM-qJ0._PM-Ej5{justify-content:center}._PM-qJ0._PM-64m{justify-content:start}._PM-qJ0._PM-SHi{justify-content:end}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
var bn = Object.defineProperty;
|
|
3
|
+
var _n = (e, t, n) => t in e ? bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var _e = (e, t, n) => _n(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
+
const Sn = (e, t) => e === t, X = Symbol("solid-proxy"), Pn = typeof Proxy == "function", Mt = Symbol("solid-track"), at = {
|
|
6
|
+
equals: Sn
|
|
7
|
+
};
|
|
8
|
+
let on = an;
|
|
9
|
+
const ue = 1, dt = 2, rn = {
|
|
10
|
+
owned: null,
|
|
11
|
+
cleanups: null,
|
|
12
|
+
context: null,
|
|
13
|
+
owner: null
|
|
14
|
+
};
|
|
15
|
+
var L = null;
|
|
16
|
+
let St = null, Mn = null, O = null, U = null, ne = null, wt = 0;
|
|
17
|
+
function lt(e, t) {
|
|
18
|
+
const n = O, o = L, i = e.length === 0, r = t === void 0 ? o : t, s = i ? rn : {
|
|
19
|
+
owned: null,
|
|
20
|
+
cleanups: null,
|
|
21
|
+
context: r ? r.context : null,
|
|
22
|
+
owner: r
|
|
23
|
+
}, l = i ? e : () => e(() => ce(() => ze(s)));
|
|
24
|
+
L = s, O = null;
|
|
25
|
+
try {
|
|
26
|
+
return Me(l, !0);
|
|
27
|
+
} finally {
|
|
28
|
+
O = n, L = o;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function I(e, t) {
|
|
32
|
+
t = t ? Object.assign({}, at, t) : at;
|
|
33
|
+
const n = {
|
|
34
|
+
value: e,
|
|
35
|
+
observers: null,
|
|
36
|
+
observerSlots: null,
|
|
37
|
+
comparator: t.equals || void 0
|
|
38
|
+
}, o = (i) => (typeof i == "function" && (i = i(n.value)), ln(n, i));
|
|
39
|
+
return [sn.bind(n), o];
|
|
40
|
+
}
|
|
41
|
+
function x(e, t, n) {
|
|
42
|
+
const o = Ot(e, t, !1, ue);
|
|
43
|
+
Ye(o);
|
|
44
|
+
}
|
|
45
|
+
function Ze(e, t, n) {
|
|
46
|
+
on = On;
|
|
47
|
+
const o = Ot(e, t, !1, ue);
|
|
48
|
+
o.user = !0, ne ? ne.push(o) : Ye(o);
|
|
49
|
+
}
|
|
50
|
+
function ve(e, t, n) {
|
|
51
|
+
n = n ? Object.assign({}, at, n) : at;
|
|
52
|
+
const o = Ot(e, t, !0, 0);
|
|
53
|
+
return o.observers = null, o.observerSlots = null, o.comparator = n.equals || void 0, Ye(o), sn.bind(o);
|
|
54
|
+
}
|
|
55
|
+
function $n(e) {
|
|
56
|
+
return Me(e, !1);
|
|
57
|
+
}
|
|
58
|
+
function ce(e) {
|
|
59
|
+
if (O === null) return e();
|
|
60
|
+
const t = O;
|
|
61
|
+
O = null;
|
|
62
|
+
try {
|
|
63
|
+
return e();
|
|
64
|
+
} finally {
|
|
65
|
+
O = t;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function Fe(e) {
|
|
69
|
+
Ze(() => ce(e));
|
|
70
|
+
}
|
|
71
|
+
function Xe(e) {
|
|
72
|
+
return L === null || (L.cleanups === null ? L.cleanups = [e] : L.cleanups.push(e)), e;
|
|
73
|
+
}
|
|
74
|
+
function $t() {
|
|
75
|
+
return O;
|
|
76
|
+
}
|
|
77
|
+
function sn() {
|
|
78
|
+
if (this.sources && this.state)
|
|
79
|
+
if (this.state === ue) Ye(this);
|
|
80
|
+
else {
|
|
81
|
+
const e = U;
|
|
82
|
+
U = null, Me(() => ut(this), !1), U = e;
|
|
83
|
+
}
|
|
84
|
+
if (O) {
|
|
85
|
+
const e = this.observers ? this.observers.length : 0;
|
|
86
|
+
O.sources ? (O.sources.push(this), O.sourceSlots.push(e)) : (O.sources = [this], O.sourceSlots = [e]), this.observers ? (this.observers.push(O), this.observerSlots.push(O.sources.length - 1)) : (this.observers = [O], this.observerSlots = [O.sources.length - 1]);
|
|
87
|
+
}
|
|
88
|
+
return this.value;
|
|
89
|
+
}
|
|
90
|
+
function ln(e, t, n) {
|
|
91
|
+
let o = e.value;
|
|
92
|
+
return (!e.comparator || !e.comparator(o, t)) && (e.value = t, e.observers && e.observers.length && Me(() => {
|
|
93
|
+
for (let i = 0; i < e.observers.length; i += 1) {
|
|
94
|
+
const r = e.observers[i], s = St && St.running;
|
|
95
|
+
s && St.disposed.has(r), (s ? !r.tState : !r.state) && (r.pure ? U.push(r) : ne.push(r), r.observers && dn(r)), s || (r.state = ue);
|
|
96
|
+
}
|
|
97
|
+
if (U.length > 1e6)
|
|
98
|
+
throw U = [], new Error();
|
|
99
|
+
}, !1)), t;
|
|
100
|
+
}
|
|
101
|
+
function Ye(e) {
|
|
102
|
+
if (!e.fn) return;
|
|
103
|
+
ze(e);
|
|
104
|
+
const t = wt;
|
|
105
|
+
xn(
|
|
106
|
+
e,
|
|
107
|
+
e.value,
|
|
108
|
+
t
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function xn(e, t, n) {
|
|
112
|
+
let o;
|
|
113
|
+
const i = L, r = O;
|
|
114
|
+
O = L = e;
|
|
115
|
+
try {
|
|
116
|
+
o = e.fn(t);
|
|
117
|
+
} catch (s) {
|
|
118
|
+
return e.pure && (e.state = ue, e.owned && e.owned.forEach(ze), e.owned = null), e.updatedAt = n + 1, cn(s);
|
|
119
|
+
} finally {
|
|
120
|
+
O = r, L = i;
|
|
121
|
+
}
|
|
122
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ln(e, o) : e.value = o, e.updatedAt = n);
|
|
123
|
+
}
|
|
124
|
+
function Ot(e, t, n, o = ue, i) {
|
|
125
|
+
const r = {
|
|
126
|
+
fn: e,
|
|
127
|
+
state: o,
|
|
128
|
+
updatedAt: null,
|
|
129
|
+
owned: null,
|
|
130
|
+
sources: null,
|
|
131
|
+
sourceSlots: null,
|
|
132
|
+
cleanups: null,
|
|
133
|
+
value: t,
|
|
134
|
+
owner: L,
|
|
135
|
+
context: L ? L.context : null,
|
|
136
|
+
pure: n
|
|
137
|
+
};
|
|
138
|
+
return L === null || L !== rn && (L.owned ? L.owned.push(r) : L.owned = [r]), r;
|
|
139
|
+
}
|
|
140
|
+
function ct(e) {
|
|
141
|
+
if (e.state === 0) return;
|
|
142
|
+
if (e.state === dt) return ut(e);
|
|
143
|
+
if (e.suspense && ce(e.suspense.inFallback)) return e.suspense.effects.push(e);
|
|
144
|
+
const t = [e];
|
|
145
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < wt); )
|
|
146
|
+
e.state && t.push(e);
|
|
147
|
+
for (let n = t.length - 1; n >= 0; n--)
|
|
148
|
+
if (e = t[n], e.state === ue)
|
|
149
|
+
Ye(e);
|
|
150
|
+
else if (e.state === dt) {
|
|
151
|
+
const o = U;
|
|
152
|
+
U = null, Me(() => ut(e, t[0]), !1), U = o;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function Me(e, t) {
|
|
156
|
+
if (U) return e();
|
|
157
|
+
let n = !1;
|
|
158
|
+
t || (U = []), ne ? n = !0 : ne = [], wt++;
|
|
159
|
+
try {
|
|
160
|
+
const o = e();
|
|
161
|
+
return An(n), o;
|
|
162
|
+
} catch (o) {
|
|
163
|
+
n || (ne = null), U = null, cn(o);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function An(e) {
|
|
167
|
+
if (U && (an(U), U = null), e) return;
|
|
168
|
+
const t = ne;
|
|
169
|
+
ne = null, t.length && Me(() => on(t), !1);
|
|
170
|
+
}
|
|
171
|
+
function an(e) {
|
|
172
|
+
for (let t = 0; t < e.length; t++) ct(e[t]);
|
|
173
|
+
}
|
|
174
|
+
function On(e) {
|
|
175
|
+
let t, n = 0;
|
|
176
|
+
for (t = 0; t < e.length; t++) {
|
|
177
|
+
const o = e[t];
|
|
178
|
+
o.user ? e[n++] = o : ct(o);
|
|
179
|
+
}
|
|
180
|
+
for (t = 0; t < n; t++) ct(e[t]);
|
|
181
|
+
}
|
|
182
|
+
function ut(e, t) {
|
|
183
|
+
e.state = 0;
|
|
184
|
+
for (let n = 0; n < e.sources.length; n += 1) {
|
|
185
|
+
const o = e.sources[n];
|
|
186
|
+
if (o.sources) {
|
|
187
|
+
const i = o.state;
|
|
188
|
+
i === ue ? o !== t && (!o.updatedAt || o.updatedAt < wt) && ct(o) : i === dt && ut(o, t);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function dn(e) {
|
|
193
|
+
for (let t = 0; t < e.observers.length; t += 1) {
|
|
194
|
+
const n = e.observers[t];
|
|
195
|
+
n.state || (n.state = dt, n.pure ? U.push(n) : ne.push(n), n.observers && dn(n));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function ze(e) {
|
|
199
|
+
let t;
|
|
200
|
+
if (e.sources)
|
|
201
|
+
for (; e.sources.length; ) {
|
|
202
|
+
const n = e.sources.pop(), o = e.sourceSlots.pop(), i = n.observers;
|
|
203
|
+
if (i && i.length) {
|
|
204
|
+
const r = i.pop(), s = n.observerSlots.pop();
|
|
205
|
+
o < i.length && (r.sourceSlots[s] = o, i[o] = r, n.observerSlots[o] = s);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (e.tOwned) {
|
|
209
|
+
for (t = e.tOwned.length - 1; t >= 0; t--) ze(e.tOwned[t]);
|
|
210
|
+
delete e.tOwned;
|
|
211
|
+
}
|
|
212
|
+
if (e.owned) {
|
|
213
|
+
for (t = e.owned.length - 1; t >= 0; t--) ze(e.owned[t]);
|
|
214
|
+
e.owned = null;
|
|
215
|
+
}
|
|
216
|
+
if (e.cleanups) {
|
|
217
|
+
for (t = e.cleanups.length - 1; t >= 0; t--) e.cleanups[t]();
|
|
218
|
+
e.cleanups = null;
|
|
219
|
+
}
|
|
220
|
+
e.state = 0;
|
|
221
|
+
}
|
|
222
|
+
function En(e) {
|
|
223
|
+
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
|
|
224
|
+
cause: e
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
function cn(e, t = L) {
|
|
228
|
+
throw En(e);
|
|
229
|
+
}
|
|
230
|
+
const Dn = Symbol("fallback");
|
|
231
|
+
function Xt(e) {
|
|
232
|
+
for (let t = 0; t < e.length; t++) e[t]();
|
|
233
|
+
}
|
|
234
|
+
function Bn(e, t, n = {}) {
|
|
235
|
+
let o = [], i = [], r = [], s = 0, l = t.length > 1 ? [] : null;
|
|
236
|
+
return Xe(() => Xt(r)), () => {
|
|
237
|
+
let c = e() || [], v = c.length, d, a;
|
|
238
|
+
return c[Mt], ce(() => {
|
|
239
|
+
let m, M, A, E, R, S, P, b, V;
|
|
240
|
+
if (v === 0)
|
|
241
|
+
s !== 0 && (Xt(r), r = [], o = [], i = [], s = 0, l && (l = [])), n.fallback && (o = [Dn], i[0] = lt((Z) => (r[0] = Z, n.fallback())), s = 1);
|
|
242
|
+
else if (s === 0) {
|
|
243
|
+
for (i = new Array(v), a = 0; a < v; a++)
|
|
244
|
+
o[a] = c[a], i[a] = lt(g);
|
|
245
|
+
s = v;
|
|
246
|
+
} else {
|
|
247
|
+
for (A = new Array(v), E = new Array(v), l && (R = new Array(v)), S = 0, P = Math.min(s, v); S < P && o[S] === c[S]; S++) ;
|
|
248
|
+
for (P = s - 1, b = v - 1; P >= S && b >= S && o[P] === c[b]; P--, b--)
|
|
249
|
+
A[b] = i[P], E[b] = r[P], l && (R[b] = l[P]);
|
|
250
|
+
for (m = /* @__PURE__ */ new Map(), M = new Array(b + 1), a = b; a >= S; a--)
|
|
251
|
+
V = c[a], d = m.get(V), M[a] = d === void 0 ? -1 : d, m.set(V, a);
|
|
252
|
+
for (d = S; d <= P; d++)
|
|
253
|
+
V = o[d], a = m.get(V), a !== void 0 && a !== -1 ? (A[a] = i[d], E[a] = r[d], l && (R[a] = l[d]), a = M[a], m.set(V, a)) : r[d]();
|
|
254
|
+
for (a = S; a < v; a++)
|
|
255
|
+
a in A ? (i[a] = A[a], r[a] = E[a], l && (l[a] = R[a], l[a](a))) : i[a] = lt(g);
|
|
256
|
+
i = i.slice(0, s = v), o = c.slice(0);
|
|
257
|
+
}
|
|
258
|
+
return i;
|
|
259
|
+
});
|
|
260
|
+
function g(m) {
|
|
261
|
+
if (r[a] = m, l) {
|
|
262
|
+
const [M, A] = I(a);
|
|
263
|
+
return l[a] = A, t(c[a], M);
|
|
264
|
+
}
|
|
265
|
+
return t(c[a]);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function p(e, t) {
|
|
270
|
+
return ce(() => e(t || {}));
|
|
271
|
+
}
|
|
272
|
+
function st() {
|
|
273
|
+
return !0;
|
|
274
|
+
}
|
|
275
|
+
const Ln = {
|
|
276
|
+
get(e, t, n) {
|
|
277
|
+
return t === X ? n : e.get(t);
|
|
278
|
+
},
|
|
279
|
+
has(e, t) {
|
|
280
|
+
return t === X ? !0 : e.has(t);
|
|
281
|
+
},
|
|
282
|
+
set: st,
|
|
283
|
+
deleteProperty: st,
|
|
284
|
+
getOwnPropertyDescriptor(e, t) {
|
|
285
|
+
return {
|
|
286
|
+
configurable: !0,
|
|
287
|
+
enumerable: !0,
|
|
288
|
+
get() {
|
|
289
|
+
return e.get(t);
|
|
290
|
+
},
|
|
291
|
+
set: st,
|
|
292
|
+
deleteProperty: st
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
ownKeys(e) {
|
|
296
|
+
return e.keys();
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
function Pt(e) {
|
|
300
|
+
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
301
|
+
}
|
|
302
|
+
function Gn() {
|
|
303
|
+
for (let e = 0, t = this.length; e < t; ++e) {
|
|
304
|
+
const n = this[e]();
|
|
305
|
+
if (n !== void 0) return n;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function Rn(...e) {
|
|
309
|
+
let t = !1;
|
|
310
|
+
for (let s = 0; s < e.length; s++) {
|
|
311
|
+
const l = e[s];
|
|
312
|
+
t = t || !!l && X in l, e[s] = typeof l == "function" ? (t = !0, ve(l)) : l;
|
|
313
|
+
}
|
|
314
|
+
if (Pn && t)
|
|
315
|
+
return new Proxy(
|
|
316
|
+
{
|
|
317
|
+
get(s) {
|
|
318
|
+
for (let l = e.length - 1; l >= 0; l--) {
|
|
319
|
+
const c = Pt(e[l])[s];
|
|
320
|
+
if (c !== void 0) return c;
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
has(s) {
|
|
324
|
+
for (let l = e.length - 1; l >= 0; l--)
|
|
325
|
+
if (s in Pt(e[l])) return !0;
|
|
326
|
+
return !1;
|
|
327
|
+
},
|
|
328
|
+
keys() {
|
|
329
|
+
const s = [];
|
|
330
|
+
for (let l = 0; l < e.length; l++)
|
|
331
|
+
s.push(...Object.keys(Pt(e[l])));
|
|
332
|
+
return [...new Set(s)];
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
Ln
|
|
336
|
+
);
|
|
337
|
+
const n = {}, o = /* @__PURE__ */ Object.create(null);
|
|
338
|
+
for (let s = e.length - 1; s >= 0; s--) {
|
|
339
|
+
const l = e[s];
|
|
340
|
+
if (!l) continue;
|
|
341
|
+
const c = Object.getOwnPropertyNames(l);
|
|
342
|
+
for (let v = c.length - 1; v >= 0; v--) {
|
|
343
|
+
const d = c[v];
|
|
344
|
+
if (d === "__proto__" || d === "constructor") continue;
|
|
345
|
+
const a = Object.getOwnPropertyDescriptor(l, d);
|
|
346
|
+
if (!o[d])
|
|
347
|
+
o[d] = a.get ? {
|
|
348
|
+
enumerable: !0,
|
|
349
|
+
configurable: !0,
|
|
350
|
+
get: Gn.bind(n[d] = [a.get.bind(l)])
|
|
351
|
+
} : a.value !== void 0 ? a : void 0;
|
|
352
|
+
else {
|
|
353
|
+
const g = n[d];
|
|
354
|
+
g && (a.get ? g.push(a.get.bind(l)) : a.value !== void 0 && g.push(() => a.value));
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const i = {}, r = Object.keys(o);
|
|
359
|
+
for (let s = r.length - 1; s >= 0; s--) {
|
|
360
|
+
const l = r[s], c = o[l];
|
|
361
|
+
c && c.get ? Object.defineProperty(i, l, c) : i[l] = c ? c.value : void 0;
|
|
362
|
+
}
|
|
363
|
+
return i;
|
|
364
|
+
}
|
|
365
|
+
const jn = (e) => `Stale read from <${e}>.`;
|
|
366
|
+
function Et(e) {
|
|
367
|
+
const t = "fallback" in e && {
|
|
368
|
+
fallback: () => e.fallback
|
|
369
|
+
};
|
|
370
|
+
return ve(Bn(() => e.each, e.children, t || void 0));
|
|
371
|
+
}
|
|
372
|
+
function F(e) {
|
|
373
|
+
const t = e.keyed, n = ve(() => e.when, void 0, {
|
|
374
|
+
equals: (o, i) => t ? o === i : !o == !i
|
|
375
|
+
});
|
|
376
|
+
return ve(
|
|
377
|
+
() => {
|
|
378
|
+
const o = n();
|
|
379
|
+
if (o) {
|
|
380
|
+
const i = e.children;
|
|
381
|
+
return typeof i == "function" && i.length > 0 ? ce(
|
|
382
|
+
() => i(
|
|
383
|
+
t ? o : () => {
|
|
384
|
+
if (!ce(n)) throw jn("Show");
|
|
385
|
+
return e.when;
|
|
386
|
+
}
|
|
387
|
+
)
|
|
388
|
+
) : i;
|
|
389
|
+
}
|
|
390
|
+
return e.fallback;
|
|
391
|
+
},
|
|
392
|
+
void 0,
|
|
393
|
+
void 0
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
const In = /* @__PURE__ */ new Set([
|
|
397
|
+
"innerHTML",
|
|
398
|
+
"textContent",
|
|
399
|
+
"innerText",
|
|
400
|
+
"children"
|
|
401
|
+
]), Nn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
402
|
+
className: "class",
|
|
403
|
+
htmlFor: "for"
|
|
404
|
+
}), Tn = /* @__PURE__ */ new Set([
|
|
405
|
+
"beforeinput",
|
|
406
|
+
"click",
|
|
407
|
+
"dblclick",
|
|
408
|
+
"contextmenu",
|
|
409
|
+
"focusin",
|
|
410
|
+
"focusout",
|
|
411
|
+
"input",
|
|
412
|
+
"keydown",
|
|
413
|
+
"keyup",
|
|
414
|
+
"mousedown",
|
|
415
|
+
"mousemove",
|
|
416
|
+
"mouseout",
|
|
417
|
+
"mouseover",
|
|
418
|
+
"mouseup",
|
|
419
|
+
"pointerdown",
|
|
420
|
+
"pointermove",
|
|
421
|
+
"pointerout",
|
|
422
|
+
"pointerover",
|
|
423
|
+
"pointerup",
|
|
424
|
+
"touchend",
|
|
425
|
+
"touchmove",
|
|
426
|
+
"touchstart"
|
|
427
|
+
]), Un = {
|
|
428
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
429
|
+
xml: "http://www.w3.org/XML/1998/namespace"
|
|
430
|
+
};
|
|
431
|
+
function Hn(e, t, n) {
|
|
432
|
+
let o = n.length, i = t.length, r = o, s = 0, l = 0, c = t[i - 1].nextSibling, v = null;
|
|
433
|
+
for (; s < i || l < r; ) {
|
|
434
|
+
if (t[s] === n[l]) {
|
|
435
|
+
s++, l++;
|
|
436
|
+
continue;
|
|
437
|
+
}
|
|
438
|
+
for (; t[i - 1] === n[r - 1]; )
|
|
439
|
+
i--, r--;
|
|
440
|
+
if (i === s) {
|
|
441
|
+
const d = r < o ? l ? n[l - 1].nextSibling : n[r - l] : c;
|
|
442
|
+
for (; l < r; ) e.insertBefore(n[l++], d);
|
|
443
|
+
} else if (r === l)
|
|
444
|
+
for (; s < i; )
|
|
445
|
+
(!v || !v.has(t[s])) && t[s].remove(), s++;
|
|
446
|
+
else if (t[s] === n[r - 1] && n[l] === t[i - 1]) {
|
|
447
|
+
const d = t[--i].nextSibling;
|
|
448
|
+
e.insertBefore(n[l++], t[s++].nextSibling), e.insertBefore(n[--r], d), t[i] = n[r];
|
|
449
|
+
} else {
|
|
450
|
+
if (!v) {
|
|
451
|
+
v = /* @__PURE__ */ new Map();
|
|
452
|
+
let a = l;
|
|
453
|
+
for (; a < r; ) v.set(n[a], a++);
|
|
454
|
+
}
|
|
455
|
+
const d = v.get(t[s]);
|
|
456
|
+
if (d != null)
|
|
457
|
+
if (l < d && d < r) {
|
|
458
|
+
let a = s, g = 1, m;
|
|
459
|
+
for (; ++a < i && a < r && !((m = v.get(t[a])) == null || m !== d + g); )
|
|
460
|
+
g++;
|
|
461
|
+
if (g > d - l) {
|
|
462
|
+
const M = t[s];
|
|
463
|
+
for (; l < d; ) e.insertBefore(n[l++], M);
|
|
464
|
+
} else e.replaceChild(n[l++], t[s++]);
|
|
465
|
+
} else s++;
|
|
466
|
+
else t[s++].remove();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
const Yt = "_$DX_DELEGATE";
|
|
471
|
+
function Vn(e, t, n, o = {}) {
|
|
472
|
+
let i;
|
|
473
|
+
return lt((r) => {
|
|
474
|
+
i = r, t === document ? e() : k(t, e(), t.firstChild ? null : void 0, n);
|
|
475
|
+
}, o.owner), () => {
|
|
476
|
+
i(), t.textContent = "";
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function _(e, t, n) {
|
|
480
|
+
let o;
|
|
481
|
+
const i = () => {
|
|
482
|
+
const s = document.createElement("template");
|
|
483
|
+
return s.innerHTML = e, s.content.firstChild;
|
|
484
|
+
}, r = () => (o || (o = i())).cloneNode(!0);
|
|
485
|
+
return r.cloneNode = r, r;
|
|
486
|
+
}
|
|
487
|
+
function un(e, t = window.document) {
|
|
488
|
+
const n = t[Yt] || (t[Yt] = /* @__PURE__ */ new Set());
|
|
489
|
+
for (let o = 0, i = e.length; o < i; o++) {
|
|
490
|
+
const r = e[o];
|
|
491
|
+
n.has(r) || (n.add(r), t.addEventListener(r, Yn));
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function W(e, t, n) {
|
|
495
|
+
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
496
|
+
}
|
|
497
|
+
function Wn(e, t, n, o) {
|
|
498
|
+
o == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, o);
|
|
499
|
+
}
|
|
500
|
+
function Zn(e, t, n) {
|
|
501
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
502
|
+
}
|
|
503
|
+
function w(e, t) {
|
|
504
|
+
t == null ? e.removeAttribute("class") : e.className = t;
|
|
505
|
+
}
|
|
506
|
+
function zn(e, t, n, o) {
|
|
507
|
+
if (o)
|
|
508
|
+
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
509
|
+
else if (Array.isArray(n)) {
|
|
510
|
+
const i = n[0];
|
|
511
|
+
e.addEventListener(t, n[0] = (r) => i.call(e, n[1], r));
|
|
512
|
+
} else e.addEventListener(t, n, typeof n != "function" && n);
|
|
513
|
+
}
|
|
514
|
+
function qn(e, t, n = {}) {
|
|
515
|
+
const o = Object.keys(t || {}), i = Object.keys(n);
|
|
516
|
+
let r, s;
|
|
517
|
+
for (r = 0, s = i.length; r < s; r++) {
|
|
518
|
+
const l = i[r];
|
|
519
|
+
!l || l === "undefined" || t[l] || (Jt(e, l, !1), delete n[l]);
|
|
520
|
+
}
|
|
521
|
+
for (r = 0, s = o.length; r < s; r++) {
|
|
522
|
+
const l = o[r], c = !!t[l];
|
|
523
|
+
!l || l === "undefined" || n[l] === c || !c || (Jt(e, l, !0), n[l] = c);
|
|
524
|
+
}
|
|
525
|
+
return n;
|
|
526
|
+
}
|
|
527
|
+
function Dt(e, t, n) {
|
|
528
|
+
if (!t) return n ? W(e, "style") : t;
|
|
529
|
+
const o = e.style;
|
|
530
|
+
if (typeof t == "string") return o.cssText = t;
|
|
531
|
+
typeof n == "string" && (o.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
532
|
+
let i, r;
|
|
533
|
+
for (r in n)
|
|
534
|
+
t[r] == null && o.removeProperty(r), delete n[r];
|
|
535
|
+
for (r in t)
|
|
536
|
+
i = t[r], i !== n[r] && (o.setProperty(r, i), n[r] = i);
|
|
537
|
+
return n;
|
|
538
|
+
}
|
|
539
|
+
function B(e, t = {}, n, o) {
|
|
540
|
+
const i = {};
|
|
541
|
+
return x(() => typeof t.ref == "function" && Kn(t.ref, e)), x(() => Fn(e, t, n, !0, i, !0)), i;
|
|
542
|
+
}
|
|
543
|
+
function Kn(e, t, n) {
|
|
544
|
+
return ce(() => e(t, n));
|
|
545
|
+
}
|
|
546
|
+
function k(e, t, n, o) {
|
|
547
|
+
if (n !== void 0 && !o && (o = []), typeof t != "function") return ht(e, t, o, n);
|
|
548
|
+
x((i) => ht(e, t(), i, n), o);
|
|
549
|
+
}
|
|
550
|
+
function Fn(e, t, n, o, i = {}, r = !1) {
|
|
551
|
+
t || (t = {});
|
|
552
|
+
for (const s in i)
|
|
553
|
+
if (!(s in t)) {
|
|
554
|
+
if (s === "children") continue;
|
|
555
|
+
i[s] = Qt(e, s, null, i[s], n, r, t);
|
|
556
|
+
}
|
|
557
|
+
for (const s in t) {
|
|
558
|
+
if (s === "children")
|
|
559
|
+
continue;
|
|
560
|
+
const l = t[s];
|
|
561
|
+
i[s] = Qt(e, s, l, i[s], n, r, t);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function Xn(e) {
|
|
565
|
+
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
566
|
+
}
|
|
567
|
+
function Jt(e, t, n) {
|
|
568
|
+
const o = t.trim().split(/\s+/);
|
|
569
|
+
for (let i = 0, r = o.length; i < r; i++)
|
|
570
|
+
e.classList.toggle(o[i], n);
|
|
571
|
+
}
|
|
572
|
+
function Qt(e, t, n, o, i, r, s) {
|
|
573
|
+
let l, c, v, d;
|
|
574
|
+
if (t === "style") return Dt(e, n, o);
|
|
575
|
+
if (t === "classList") return qn(e, n, o);
|
|
576
|
+
if (n === o) return o;
|
|
577
|
+
if (t === "ref")
|
|
578
|
+
r || n(e);
|
|
579
|
+
else if (t.slice(0, 3) === "on:") {
|
|
580
|
+
const a = t.slice(3);
|
|
581
|
+
o && e.removeEventListener(a, o, typeof o != "function" && o), n && e.addEventListener(a, n, typeof n != "function" && n);
|
|
582
|
+
} else if (t.slice(0, 10) === "oncapture:") {
|
|
583
|
+
const a = t.slice(10);
|
|
584
|
+
o && e.removeEventListener(a, o, !0), n && e.addEventListener(a, n, !0);
|
|
585
|
+
} else if (t.slice(0, 2) === "on") {
|
|
586
|
+
const a = t.slice(2).toLowerCase(), g = Tn.has(a);
|
|
587
|
+
if (!g && o) {
|
|
588
|
+
const m = Array.isArray(o) ? o[0] : o;
|
|
589
|
+
e.removeEventListener(a, m);
|
|
590
|
+
}
|
|
591
|
+
(g || n) && (zn(e, a, n, g), g && un([a]));
|
|
592
|
+
} else if (t.slice(0, 5) === "attr:")
|
|
593
|
+
W(e, t.slice(5), n);
|
|
594
|
+
else if (t.slice(0, 5) === "bool:")
|
|
595
|
+
Zn(e, t.slice(5), n);
|
|
596
|
+
else if ((d = t.slice(0, 5) === "prop:") || (v = In.has(t)) || !i || (l = e.nodeName.includes("-") || "is" in s))
|
|
597
|
+
d && (t = t.slice(5), c = !0), t === "class" || t === "className" ? w(e, n) : l && !c && !v ? e[Xn(t)] = n : e[t] = n;
|
|
598
|
+
else {
|
|
599
|
+
const a = t.indexOf(":") > -1 && Un[t.split(":")[0]];
|
|
600
|
+
a ? Wn(e, a, t, n) : W(e, Nn[t] || t, n);
|
|
601
|
+
}
|
|
602
|
+
return n;
|
|
603
|
+
}
|
|
604
|
+
function Yn(e) {
|
|
605
|
+
let t = e.target;
|
|
606
|
+
const n = `$$${e.type}`, o = e.target, i = e.currentTarget, r = (c) => Object.defineProperty(e, "target", {
|
|
607
|
+
configurable: !0,
|
|
608
|
+
value: c
|
|
609
|
+
}), s = () => {
|
|
610
|
+
const c = t[n];
|
|
611
|
+
if (c && !t.disabled) {
|
|
612
|
+
const v = t[`${n}Data`];
|
|
613
|
+
if (v !== void 0 ? c.call(t, v, e) : c.call(t, e), e.cancelBubble) return;
|
|
614
|
+
}
|
|
615
|
+
return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && r(t.host), !0;
|
|
616
|
+
}, l = () => {
|
|
617
|
+
for (; s() && (t = t._$host || t.parentNode || t.host); ) ;
|
|
618
|
+
};
|
|
619
|
+
if (Object.defineProperty(e, "currentTarget", {
|
|
620
|
+
configurable: !0,
|
|
621
|
+
get() {
|
|
622
|
+
return t || document;
|
|
623
|
+
}
|
|
624
|
+
}), e.composedPath) {
|
|
625
|
+
const c = e.composedPath();
|
|
626
|
+
r(c[0]);
|
|
627
|
+
for (let v = 0; v < c.length - 2 && (t = c[v], !!s()); v++) {
|
|
628
|
+
if (t._$host) {
|
|
629
|
+
t = t._$host, l();
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
if (t.parentNode === i)
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
} else l();
|
|
636
|
+
r(o);
|
|
637
|
+
}
|
|
638
|
+
function ht(e, t, n, o, i) {
|
|
639
|
+
for (; typeof n == "function"; ) n = n();
|
|
640
|
+
if (t === n) return n;
|
|
641
|
+
const r = typeof t, s = o !== void 0;
|
|
642
|
+
if (e = s && n[0] && n[0].parentNode || e, r === "string" || r === "number") {
|
|
643
|
+
if (r === "number" && (t = t.toString(), t === n))
|
|
644
|
+
return n;
|
|
645
|
+
if (s) {
|
|
646
|
+
let l = n[0];
|
|
647
|
+
l && l.nodeType === 3 ? l.data !== t && (l.data = t) : l = document.createTextNode(t), n = Se(e, n, o, l);
|
|
648
|
+
} else
|
|
649
|
+
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
650
|
+
} else if (t == null || r === "boolean")
|
|
651
|
+
n = Se(e, n, o);
|
|
652
|
+
else {
|
|
653
|
+
if (r === "function")
|
|
654
|
+
return x(() => {
|
|
655
|
+
let l = t();
|
|
656
|
+
for (; typeof l == "function"; ) l = l();
|
|
657
|
+
n = ht(e, l, n, o);
|
|
658
|
+
}), () => n;
|
|
659
|
+
if (Array.isArray(t)) {
|
|
660
|
+
const l = [], c = n && Array.isArray(n);
|
|
661
|
+
if (xt(l, t, n, i))
|
|
662
|
+
return x(() => n = ht(e, l, n, o, !0)), () => n;
|
|
663
|
+
if (l.length === 0) {
|
|
664
|
+
if (n = Se(e, n, o), s) return n;
|
|
665
|
+
} else c ? n.length === 0 ? en(e, l, o) : Hn(e, n, l) : (n && Se(e), en(e, l));
|
|
666
|
+
n = l;
|
|
667
|
+
} else if (t.nodeType) {
|
|
668
|
+
if (Array.isArray(n)) {
|
|
669
|
+
if (s) return n = Se(e, n, o, t);
|
|
670
|
+
Se(e, n, null, t);
|
|
671
|
+
} else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
672
|
+
n = t;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
return n;
|
|
676
|
+
}
|
|
677
|
+
function xt(e, t, n, o) {
|
|
678
|
+
let i = !1;
|
|
679
|
+
for (let r = 0, s = t.length; r < s; r++) {
|
|
680
|
+
let l = t[r], c = n && n[e.length], v;
|
|
681
|
+
if (!(l == null || l === !0 || l === !1)) if ((v = typeof l) == "object" && l.nodeType)
|
|
682
|
+
e.push(l);
|
|
683
|
+
else if (Array.isArray(l))
|
|
684
|
+
i = xt(e, l, c) || i;
|
|
685
|
+
else if (v === "function")
|
|
686
|
+
if (o) {
|
|
687
|
+
for (; typeof l == "function"; ) l = l();
|
|
688
|
+
i = xt(
|
|
689
|
+
e,
|
|
690
|
+
Array.isArray(l) ? l : [l],
|
|
691
|
+
Array.isArray(c) ? c : [c]
|
|
692
|
+
) || i;
|
|
693
|
+
} else
|
|
694
|
+
e.push(l), i = !0;
|
|
695
|
+
else {
|
|
696
|
+
const d = String(l);
|
|
697
|
+
c && c.nodeType === 3 && c.data === d ? e.push(c) : e.push(document.createTextNode(d));
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
return i;
|
|
701
|
+
}
|
|
702
|
+
function en(e, t, n = null) {
|
|
703
|
+
for (let o = 0, i = t.length; o < i; o++) e.insertBefore(t[o], n);
|
|
704
|
+
}
|
|
705
|
+
function Se(e, t, n, o) {
|
|
706
|
+
if (n === void 0) return e.textContent = "";
|
|
707
|
+
const i = o || document.createTextNode("");
|
|
708
|
+
if (t.length) {
|
|
709
|
+
let r = !1;
|
|
710
|
+
for (let s = t.length - 1; s >= 0; s--) {
|
|
711
|
+
const l = t[s];
|
|
712
|
+
if (i !== l) {
|
|
713
|
+
const c = l.parentNode === e;
|
|
714
|
+
!r && !s ? c ? e.replaceChild(i, l) : e.insertBefore(i, n) : c && l.remove();
|
|
715
|
+
} else r = !0;
|
|
716
|
+
}
|
|
717
|
+
} else e.insertBefore(i, n);
|
|
718
|
+
return [i];
|
|
719
|
+
}
|
|
720
|
+
function hn(e) {
|
|
721
|
+
var t, n, o = "";
|
|
722
|
+
if (typeof e == "string" || typeof e == "number") o += e;
|
|
723
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
724
|
+
var i = e.length;
|
|
725
|
+
for (t = 0; t < i; t++) e[t] && (n = hn(e[t])) && (o && (o += " "), o += n);
|
|
726
|
+
} else for (n in e) e[n] && (o && (o += " "), o += n);
|
|
727
|
+
return o;
|
|
728
|
+
}
|
|
729
|
+
function N() {
|
|
730
|
+
for (var e, t, n = 0, o = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = hn(e)) && (o && (o += " "), o += t);
|
|
731
|
+
return o;
|
|
732
|
+
}
|
|
733
|
+
function Jn(e) {
|
|
734
|
+
var n;
|
|
735
|
+
return ((n = e.split(".").pop()) == null ? void 0 : n.toLowerCase()) === "png" ? "image/png" : "image/jpeg";
|
|
736
|
+
}
|
|
737
|
+
const tn = {
|
|
738
|
+
id: "default",
|
|
739
|
+
width: "1140px",
|
|
740
|
+
columns: 12,
|
|
741
|
+
gutterWidth: "24px",
|
|
742
|
+
isGutterOnOutside: !0,
|
|
743
|
+
position: "center"
|
|
744
|
+
};
|
|
745
|
+
class T {
|
|
746
|
+
constructor() {
|
|
747
|
+
}
|
|
748
|
+
static async init() {
|
|
749
|
+
this.db = await new Promise((t, n) => {
|
|
750
|
+
const o = indexedDB.open(this.DB_NAME, this.VERSION);
|
|
751
|
+
o.onerror = () => n(o.error), o.onsuccess = () => t(o.result), o.onupgradeneeded = (i) => {
|
|
752
|
+
const r = i.target.result;
|
|
753
|
+
r.objectStoreNames.contains(this.DESIGN_STORE_NAME) || r.createObjectStore(this.DESIGN_STORE_NAME, { keyPath: "id" }), r.objectStoreNames.contains(this.GRID_STORE_NAME) || r.createObjectStore(this.GRID_STORE_NAME, { keyPath: "id" }).add({ ...tn, createdAt: Date.now() });
|
|
754
|
+
};
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
static async uploadDesign(t) {
|
|
758
|
+
const n = t.map(async (s) => {
|
|
759
|
+
const l = await s.arrayBuffer();
|
|
760
|
+
return {
|
|
761
|
+
id: crypto.randomUUID(),
|
|
762
|
+
buffer: l,
|
|
763
|
+
mimeType: Jn(s.name),
|
|
764
|
+
createdAt: Date.now()
|
|
765
|
+
};
|
|
766
|
+
}), o = await Promise.all(n), i = this.db.transaction(this.DESIGN_STORE_NAME, "readwrite"), r = i.objectStore(this.DESIGN_STORE_NAME);
|
|
767
|
+
return await Promise.all([
|
|
768
|
+
new Promise((s, l) => {
|
|
769
|
+
i.oncomplete = () => s(), i.onerror = () => l(i.error);
|
|
770
|
+
}),
|
|
771
|
+
...o.map(
|
|
772
|
+
(s) => new Promise((l, c) => {
|
|
773
|
+
const v = r.add(s);
|
|
774
|
+
v.onsuccess = () => l(), v.onerror = () => c(v.error);
|
|
775
|
+
})
|
|
776
|
+
)
|
|
777
|
+
]), o.sort((s, l) => l.createdAt - s.createdAt);
|
|
778
|
+
}
|
|
779
|
+
static async getDesign(t) {
|
|
780
|
+
const n = this.db.transaction(this.DESIGN_STORE_NAME, "readonly").objectStore(this.DESIGN_STORE_NAME);
|
|
781
|
+
return new Promise((o, i) => {
|
|
782
|
+
const r = n.get(t);
|
|
783
|
+
r.onerror = () => i(r.error), r.onsuccess = () => o(r.result);
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
static async getAllDesigns() {
|
|
787
|
+
const t = this.db.transaction(this.DESIGN_STORE_NAME, "readonly").objectStore(this.DESIGN_STORE_NAME);
|
|
788
|
+
return new Promise((n, o) => {
|
|
789
|
+
const i = t.getAll();
|
|
790
|
+
i.onerror = () => o(i.error), i.onsuccess = () => n(i.result.sort((r, s) => s.createdAt - r.createdAt));
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
static async deleteDesign(t) {
|
|
794
|
+
const o = this.db.transaction(this.DESIGN_STORE_NAME, "readwrite").objectStore(this.DESIGN_STORE_NAME);
|
|
795
|
+
await new Promise((i, r) => {
|
|
796
|
+
const s = o.delete(t);
|
|
797
|
+
s.onsuccess = () => i(), s.onerror = () => r(s.error);
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
static async deleteAllDesigns() {
|
|
801
|
+
const n = this.db.transaction(this.DESIGN_STORE_NAME, "readwrite").objectStore(this.DESIGN_STORE_NAME);
|
|
802
|
+
await new Promise((o, i) => {
|
|
803
|
+
const r = n.clear();
|
|
804
|
+
r.onsuccess = () => o(), r.onerror = () => i(r.error);
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
static async addGridSet(t) {
|
|
808
|
+
const n = { ...t, id: crypto.randomUUID(), createdAt: Date.now() }, i = this.db.transaction(this.GRID_STORE_NAME, "readwrite").objectStore(this.GRID_STORE_NAME);
|
|
809
|
+
return await new Promise((r, s) => {
|
|
810
|
+
const l = i.add(n);
|
|
811
|
+
l.onsuccess = () => r(), l.onerror = () => s(l.error);
|
|
812
|
+
}), n;
|
|
813
|
+
}
|
|
814
|
+
static async getGridSet(t) {
|
|
815
|
+
const n = this.db.transaction(this.GRID_STORE_NAME, "readonly").objectStore(this.GRID_STORE_NAME);
|
|
816
|
+
return new Promise((o, i) => {
|
|
817
|
+
const r = n.get(t);
|
|
818
|
+
r.onerror = () => i(r.error), r.onsuccess = () => o(r.result);
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
static async getAllGridSets() {
|
|
822
|
+
const t = this.db.transaction(this.GRID_STORE_NAME, "readonly").objectStore(this.GRID_STORE_NAME);
|
|
823
|
+
return new Promise((n, o) => {
|
|
824
|
+
const i = t.getAll();
|
|
825
|
+
i.onerror = () => o(i.error), i.onsuccess = () => n(i.result.sort((r, s) => r.createdAt - s.createdAt));
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
static async deleteGridSet(t) {
|
|
829
|
+
const o = this.db.transaction(this.GRID_STORE_NAME, "readwrite").objectStore(this.GRID_STORE_NAME);
|
|
830
|
+
await new Promise((i, r) => {
|
|
831
|
+
const s = o.delete(t);
|
|
832
|
+
s.onsuccess = () => i(), s.onerror = () => r(s.error);
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
static async resetGridSets() {
|
|
836
|
+
const n = this.db.transaction(this.GRID_STORE_NAME, "readwrite").objectStore(this.GRID_STORE_NAME);
|
|
837
|
+
await new Promise((i, r) => {
|
|
838
|
+
const s = n.clear();
|
|
839
|
+
s.onsuccess = () => i(), s.onerror = () => r(s.error);
|
|
840
|
+
});
|
|
841
|
+
const o = { ...tn, createdAt: Date.now() };
|
|
842
|
+
return await new Promise((i, r) => {
|
|
843
|
+
const s = n.add(o);
|
|
844
|
+
s.onsuccess = () => i(), s.onerror = () => r(s.error);
|
|
845
|
+
}), [o];
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
_e(T, "DB_NAME", "PixelMirrorDB"), _e(T, "DESIGN_STORE_NAME", "designs"), _e(T, "GRID_STORE_NAME", "grids"), _e(T, "VERSION", 1), _e(T, "db");
|
|
849
|
+
const At = Symbol("store-raw"), Pe = Symbol("store-node"), te = Symbol("store-has"), gn = Symbol("store-self");
|
|
850
|
+
function fn(e) {
|
|
851
|
+
let t = e[X];
|
|
852
|
+
if (!t && (Object.defineProperty(e, X, {
|
|
853
|
+
value: t = new Proxy(e, to)
|
|
854
|
+
}), !Array.isArray(e))) {
|
|
855
|
+
const n = Object.keys(e), o = Object.getOwnPropertyDescriptors(e);
|
|
856
|
+
for (let i = 0, r = n.length; i < r; i++) {
|
|
857
|
+
const s = n[i];
|
|
858
|
+
o[s].get && Object.defineProperty(e, s, {
|
|
859
|
+
enumerable: o[s].enumerable,
|
|
860
|
+
get: o[s].get.bind(t)
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
return t;
|
|
865
|
+
}
|
|
866
|
+
function gt(e) {
|
|
867
|
+
let t;
|
|
868
|
+
return e != null && typeof e == "object" && (e[X] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
869
|
+
}
|
|
870
|
+
function qe(e, t = /* @__PURE__ */ new Set()) {
|
|
871
|
+
let n, o, i, r;
|
|
872
|
+
if (n = e != null && e[At]) return n;
|
|
873
|
+
if (!gt(e) || t.has(e)) return e;
|
|
874
|
+
if (Array.isArray(e)) {
|
|
875
|
+
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
876
|
+
for (let s = 0, l = e.length; s < l; s++)
|
|
877
|
+
i = e[s], (o = qe(i, t)) !== i && (e[s] = o);
|
|
878
|
+
} else {
|
|
879
|
+
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
880
|
+
const s = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
881
|
+
for (let c = 0, v = s.length; c < v; c++)
|
|
882
|
+
r = s[c], !l[r].get && (i = e[r], (o = qe(i, t)) !== i && (e[r] = o));
|
|
883
|
+
}
|
|
884
|
+
return e;
|
|
885
|
+
}
|
|
886
|
+
function ft(e, t) {
|
|
887
|
+
let n = e[t];
|
|
888
|
+
return n || Object.defineProperty(e, t, {
|
|
889
|
+
value: n = /* @__PURE__ */ Object.create(null)
|
|
890
|
+
}), n;
|
|
891
|
+
}
|
|
892
|
+
function Ke(e, t, n) {
|
|
893
|
+
if (e[t]) return e[t];
|
|
894
|
+
const [o, i] = I(n, {
|
|
895
|
+
equals: !1,
|
|
896
|
+
internal: !0
|
|
897
|
+
});
|
|
898
|
+
return o.$ = i, e[t] = o;
|
|
899
|
+
}
|
|
900
|
+
function Qn(e, t) {
|
|
901
|
+
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
902
|
+
return !n || n.get || !n.configurable || t === X || t === Pe || (delete n.value, delete n.writable, n.get = () => e[X][t]), n;
|
|
903
|
+
}
|
|
904
|
+
function vn(e) {
|
|
905
|
+
$t() && Ke(ft(e, Pe), gn)();
|
|
906
|
+
}
|
|
907
|
+
function eo(e) {
|
|
908
|
+
return vn(e), Reflect.ownKeys(e);
|
|
909
|
+
}
|
|
910
|
+
const to = {
|
|
911
|
+
get(e, t, n) {
|
|
912
|
+
if (t === At) return e;
|
|
913
|
+
if (t === X) return n;
|
|
914
|
+
if (t === Mt)
|
|
915
|
+
return vn(e), n;
|
|
916
|
+
const o = ft(e, Pe), i = o[t];
|
|
917
|
+
let r = i ? i() : e[t];
|
|
918
|
+
if (t === Pe || t === te || t === "__proto__") return r;
|
|
919
|
+
if (!i) {
|
|
920
|
+
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
921
|
+
$t() && (typeof r != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (r = Ke(o, t, r)());
|
|
922
|
+
}
|
|
923
|
+
return gt(r) ? fn(r) : r;
|
|
924
|
+
},
|
|
925
|
+
has(e, t) {
|
|
926
|
+
return t === At || t === X || t === Mt || t === Pe || t === te || t === "__proto__" ? !0 : ($t() && Ke(ft(e, te), t)(), t in e);
|
|
927
|
+
},
|
|
928
|
+
set() {
|
|
929
|
+
return !0;
|
|
930
|
+
},
|
|
931
|
+
deleteProperty() {
|
|
932
|
+
return !0;
|
|
933
|
+
},
|
|
934
|
+
ownKeys: eo,
|
|
935
|
+
getOwnPropertyDescriptor: Qn
|
|
936
|
+
};
|
|
937
|
+
function vt(e, t, n, o = !1) {
|
|
938
|
+
if (!o && e[t] === n) return;
|
|
939
|
+
const i = e[t], r = e.length;
|
|
940
|
+
n === void 0 ? (delete e[t], e[te] && e[te][t] && i !== void 0 && e[te][t].$()) : (e[t] = n, e[te] && e[te][t] && i === void 0 && e[te][t].$());
|
|
941
|
+
let s = ft(e, Pe), l;
|
|
942
|
+
if ((l = Ke(s, t, i)) && l.$(() => n), Array.isArray(e) && e.length !== r) {
|
|
943
|
+
for (let c = e.length; c < r; c++) (l = s[c]) && l.$();
|
|
944
|
+
(l = Ke(s, "length", r)) && l.$(e.length);
|
|
945
|
+
}
|
|
946
|
+
(l = s[gn]) && l.$();
|
|
947
|
+
}
|
|
948
|
+
function wn(e, t) {
|
|
949
|
+
const n = Object.keys(t);
|
|
950
|
+
for (let o = 0; o < n.length; o += 1) {
|
|
951
|
+
const i = n[o];
|
|
952
|
+
vt(e, i, t[i]);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
function no(e, t) {
|
|
956
|
+
if (typeof t == "function" && (t = t(e)), t = qe(t), Array.isArray(t)) {
|
|
957
|
+
if (e === t) return;
|
|
958
|
+
let n = 0, o = t.length;
|
|
959
|
+
for (; n < o; n++) {
|
|
960
|
+
const i = t[n];
|
|
961
|
+
e[n] !== i && vt(e, n, i);
|
|
962
|
+
}
|
|
963
|
+
vt(e, "length", o);
|
|
964
|
+
} else wn(e, t);
|
|
965
|
+
}
|
|
966
|
+
function We(e, t, n = []) {
|
|
967
|
+
let o, i = e;
|
|
968
|
+
if (t.length > 1) {
|
|
969
|
+
o = t.shift();
|
|
970
|
+
const s = typeof o, l = Array.isArray(e);
|
|
971
|
+
if (Array.isArray(o)) {
|
|
972
|
+
for (let c = 0; c < o.length; c++)
|
|
973
|
+
We(e, [o[c]].concat(t), n);
|
|
974
|
+
return;
|
|
975
|
+
} else if (l && s === "function") {
|
|
976
|
+
for (let c = 0; c < e.length; c++)
|
|
977
|
+
o(e[c], c) && We(e, [c].concat(t), n);
|
|
978
|
+
return;
|
|
979
|
+
} else if (l && s === "object") {
|
|
980
|
+
const { from: c = 0, to: v = e.length - 1, by: d = 1 } = o;
|
|
981
|
+
for (let a = c; a <= v; a += d)
|
|
982
|
+
We(e, [a].concat(t), n);
|
|
983
|
+
return;
|
|
984
|
+
} else if (t.length > 1) {
|
|
985
|
+
We(e[o], t, [o].concat(n));
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
i = e[o], n = [o].concat(n);
|
|
989
|
+
}
|
|
990
|
+
let r = t[0];
|
|
991
|
+
typeof r == "function" && (r = r(i, n), r === i) || o === void 0 && r == null || (r = qe(r), o === void 0 || gt(i) && gt(r) && !Array.isArray(r) ? wn(i, r) : vt(e, o, r));
|
|
992
|
+
}
|
|
993
|
+
function Cn(...[e, t]) {
|
|
994
|
+
const n = qe(e || {}), o = Array.isArray(n), i = fn(n);
|
|
995
|
+
function r(...s) {
|
|
996
|
+
$n(() => {
|
|
997
|
+
o && s.length === 1 ? no(n, s[0]) : We(n, s);
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
return [i, r];
|
|
1001
|
+
}
|
|
1002
|
+
const yn = "_J-", mn = {
|
|
1003
|
+
designId: void 0,
|
|
1004
|
+
designOpacity: 0.5,
|
|
1005
|
+
designPosition: { x: 0, y: 0 },
|
|
1006
|
+
designScale: 1,
|
|
1007
|
+
showDesignOverlay: !1,
|
|
1008
|
+
lockDesignOverlay: !1,
|
|
1009
|
+
showVerticalRhythmOverlay: !1,
|
|
1010
|
+
verticalRhythmHeight: "8px",
|
|
1011
|
+
verticalRhythmColor: "rgba(255, 0, 0, .05)",
|
|
1012
|
+
showGridSystemOverlay: !1,
|
|
1013
|
+
activeGridSystemId: "default",
|
|
1014
|
+
gridSystemColor: "rgba(255, 0, 0, .05)",
|
|
1015
|
+
appPosition: "bottom"
|
|
1016
|
+
};
|
|
1017
|
+
function oo(e) {
|
|
1018
|
+
const t = localStorage.getItem(yn + e);
|
|
1019
|
+
return t ? JSON.parse(t) : mn[e];
|
|
1020
|
+
}
|
|
1021
|
+
const io = Object.keys(mn).reduce(
|
|
1022
|
+
(e, t) => ({
|
|
1023
|
+
...e,
|
|
1024
|
+
[t]: oo(t)
|
|
1025
|
+
}),
|
|
1026
|
+
{}
|
|
1027
|
+
), [f, ro] = Cn(io);
|
|
1028
|
+
function G(e) {
|
|
1029
|
+
Object.entries(e).forEach(([t, n]) => {
|
|
1030
|
+
localStorage.setItem(yn + t, JSON.stringify(n));
|
|
1031
|
+
}), ro((t) => ({ ...t, ...e }));
|
|
1032
|
+
}
|
|
1033
|
+
const so = {
|
|
1034
|
+
showAlignmentPopover: !1,
|
|
1035
|
+
showGridSettingsPanel: !1,
|
|
1036
|
+
showAllDesignsPanel: !1,
|
|
1037
|
+
designUrl: void 0,
|
|
1038
|
+
designSize: { width: 0, height: 0 },
|
|
1039
|
+
designOriginalSize: { width: 0, height: 0 },
|
|
1040
|
+
designBufferedPosition: { x: 0, y: 0 },
|
|
1041
|
+
isSolidMode: !1,
|
|
1042
|
+
isZoomMode: !1,
|
|
1043
|
+
isDragging: !1,
|
|
1044
|
+
enableAnimation: !1,
|
|
1045
|
+
errorMessage: void 0
|
|
1046
|
+
}, [y, $] = Cn(so), lo = "_PM--0K", ao = "_PM-nSt", co = "_PM-uxq", uo = "_PM-CUZ", ho = "_PM-gUL", go = "_PM-fL3", fo = "_PM-BsK", vo = "_PM-nRD", wo = "_PM-1LW", Co = "_PM-aop", yo = "_PM--Uf", mo = "_PM-H81", po = "_PM-6di", ko = "_PM--p1", bo = "_PM-6Uc", _o = "_PM-0BL", So = "_PM-Ms2", Po = "_PM-8ZO", Mo = "_PM-iiG", $o = "_PM-ykA", xo = "_PM-T3K", Ao = "_PM-XPp", Oo = "_PM-ZDk", Eo = "_PM-1Gp", Do = "_PM--Xs", Bo = "_PM-Pgi", Lo = "_PM-ea1", Go = "_PM-F7y", Ro = "_PM-NMj", jo = "_PM-PaA", Io = "_PM-dtI", No = "_PM-OwQ", To = "_PM-XPo", Uo = "_PM-92c", Ho = "_PM-FWS", Vo = "_PM-En3", Wo = "_PM-6J2", Zo = "_PM-9BG", zo = "_PM--3m", qo = "_PM-L-M", Ko = "_PM-zF6", Fo = "_PM-cqR", Xo = "_PM-50o", Yo = "_PM-Qrp", Jo = "_PM-hUT", Qo = "_PM-jws", ei = "_PM-R39", ti = "_PM-030", ni = "_PM-Bit", oi = "_PM-qJ0", ii = "_PM-Ej5", ri = "_PM-64m", si = "_PM-SHi", u = {
|
|
1047
|
+
designCard__button: lo,
|
|
1048
|
+
addGridButton: ao,
|
|
1049
|
+
table__button: co,
|
|
1050
|
+
fieldset: uo,
|
|
1051
|
+
gridSettingBox__toggleButton: ho,
|
|
1052
|
+
panel__button: go,
|
|
1053
|
+
alignmentButton: fo,
|
|
1054
|
+
menuButton: vo,
|
|
1055
|
+
hide: wo,
|
|
1056
|
+
app: Co,
|
|
1057
|
+
noEvents: yo,
|
|
1058
|
+
top: mo,
|
|
1059
|
+
toast: po,
|
|
1060
|
+
toast__message: ko,
|
|
1061
|
+
menuBar: bo,
|
|
1062
|
+
rotate: _o,
|
|
1063
|
+
opacityButton: So,
|
|
1064
|
+
opacityButton__value: Po,
|
|
1065
|
+
alignmentPopover: Mo,
|
|
1066
|
+
scaleButton: $o,
|
|
1067
|
+
scaleButton__value: xo,
|
|
1068
|
+
coordinates: Ao,
|
|
1069
|
+
panel: Oo,
|
|
1070
|
+
panel__contentWrapper: Eo,
|
|
1071
|
+
panel__content: Do,
|
|
1072
|
+
show: Bo,
|
|
1073
|
+
panel__footer: Lo,
|
|
1074
|
+
gridSettingBox: Go,
|
|
1075
|
+
gridSettingBox__header: Ro,
|
|
1076
|
+
gridSettingBox__heading: jo,
|
|
1077
|
+
enabled: Io,
|
|
1078
|
+
tableWrapper: No,
|
|
1079
|
+
table: To,
|
|
1080
|
+
table__bgroup: Uo,
|
|
1081
|
+
activeGridButton: Ho,
|
|
1082
|
+
active: Vo,
|
|
1083
|
+
allDesignsList: Wo,
|
|
1084
|
+
designCard: Zo,
|
|
1085
|
+
designCard__img: zo,
|
|
1086
|
+
current: qo,
|
|
1087
|
+
uploadButton: Ko,
|
|
1088
|
+
uploadButton__icon: Fo,
|
|
1089
|
+
uploadButton__text: Xo,
|
|
1090
|
+
overlayContainer: Yo,
|
|
1091
|
+
designOverlay: Jo,
|
|
1092
|
+
animation: Qo,
|
|
1093
|
+
locked: ei,
|
|
1094
|
+
solid: ti,
|
|
1095
|
+
verticalRhythmOverlay: ni,
|
|
1096
|
+
gridSystemOverlay: oi,
|
|
1097
|
+
center: ii,
|
|
1098
|
+
left: ri,
|
|
1099
|
+
right: si
|
|
1100
|
+
};
|
|
1101
|
+
var li = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z"stroke=currentColor stroke-width=1.5></path><circle cx=16.5 cy=7.5 r=1.5 stroke=currentColor stroke-width=1.5></circle><path d="M16 22C15.3805 19.7749 13.9345 17.7821 11.8765 16.3342C9.65761 14.7729 6.87163 13.9466 4.01569 14.0027C3.67658 14.0019 3.33776 14.0127 3 14.0351"stroke=currentColor stroke-width=1.5 stroke-linejoin=round></path><path d="M13 18C14.7015 16.6733 16.5345 15.9928 18.3862 16.0001C19.4362 15.999 20.4812 16.2216 21.5 16.6617"stroke=currentColor stroke-width=1.5 stroke-linejoin=round>');
|
|
1102
|
+
const ai = (e = {}) => (() => {
|
|
1103
|
+
var t = li();
|
|
1104
|
+
return B(t, e, !0), t;
|
|
1105
|
+
})();
|
|
1106
|
+
var di = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><circle cx=16.5 cy=7.5 r=1.5 stroke=currentColor stroke-width=1.5></circle><path d="M2 14.1354C2.66663 14.0455 3.3406 14.0011 4.01569 14.0027C6.87163 13.9466 9.65761 14.7729 11.8765 16.3342C13.9345 17.7821 15.3805 19.7749 16 22"stroke=currentColor stroke-width=1.5 stroke-linejoin=round></path><path d="M13.5 17.5C14.5 16.5 15.1772 16.2768 16 16"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M20 20.2131C18.6012 21.5 16.3635 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1087C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.6364 2.5 5.3987 3.78701 3.99988"stroke=currentColor stroke-width=1.5></path><path d="M20.0002 16C20.5427 16 21.048 16.2945 21.3967 16.5638C21.5 15.3693 21.5 13.8825 21.5 12C21.5 7.52166 21.5 5.28249 20.1088 3.89124C18.7175 2.5 16.4783 2.5 12 2.5C9.59086 2.5 7.82972 2.5 6.5 2.71659"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M2 2L22 22"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1107
|
+
const ci = (e = {}) => (() => {
|
|
1108
|
+
var t = di();
|
|
1109
|
+
return B(t, e, !0), t;
|
|
1110
|
+
})();
|
|
1111
|
+
var ui = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M22 16C21.4102 15.3932 19.8403 13 19 13C18.1597 13 16.5898 15.3932 16 16M19 14L19 21"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M15.0035 21H12.0027C7.28739 21 4.92973 21 3.46487 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38042 4.53806C2.6516 4.05227 3.05255 3.65142 3.53848 3.38032C4.22017 3 5.12865 3 6.94562 3C8.10968 3 8.69172 3 9.20122 3.19101C10.3645 3.62712 10.8442 4.68358 11.3691 5.73313L12.0027 7M8.00163 7H16.754C18.8613 7 19.9149 7 20.6718 7.50559C20.9995 7.72447 21.2808 8.00572 21.4997 8.33329C21.8937 8.92282 21.9808 9.69244 22 11"stroke=currentColor stroke-width=1.5 stroke-linecap=round>');
|
|
1112
|
+
const hi = (e = {}) => (() => {
|
|
1113
|
+
var t = ui();
|
|
1114
|
+
return B(t, e, !0), t;
|
|
1115
|
+
})();
|
|
1116
|
+
var gi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M4.00781 4.99913C4.59743 4.39256 6.16671 2.00049 7.00666 2.00049C7.84661 2.00049 9.41589 4.39256 10.0055 4.99913M7.00666 2.84907V21.9995"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M19.0023 13.995C19.6088 14.5846 22.0011 16.1538 22.0011 16.9937C22.0011 17.8336 19.6088 19.4028 19.0023 19.9923M21.1906 16.9939H1.99805"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1117
|
+
const fi = (e = {}) => (() => {
|
|
1118
|
+
var t = gi();
|
|
1119
|
+
return B(t, e, !0), t;
|
|
1120
|
+
})();
|
|
1121
|
+
var vi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M16.502 7.99988C17.3458 7.99988 18.3198 7.9165 18.801 8.74988C19.002 9.09795 19.002 9.56526 19.002 10.4999V11.4999C19.002 12.4345 19.002 12.9018 18.801 13.2499C18.3198 14.0832 17.3458 13.9999 16.502 13.9999C15.6581 13.9999 14.6841 14.0832 14.2029 13.2499C14.002 12.9018 14.002 12.4345 14.002 11.4999L14.002 10.4999C14.002 9.56526 14.002 9.09795 14.2029 8.74988C14.6841 7.9165 15.6581 7.99988 16.502 7.99988Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M7.50195 7.99988C8.34585 7.99988 9.31984 7.9165 9.80099 8.74988C10.002 9.09795 10.002 9.56526 10.002 10.4999L10.002 17.4999C10.002 18.4345 10.002 18.9018 9.80099 19.2499C9.31984 20.0832 8.34585 19.9999 7.50195 19.9999C6.65806 19.9999 5.68406 20.0832 5.20292 19.2499C5.00195 18.9018 5.00195 18.4345 5.00195 17.4999L5.00195 10.4999C5.00195 9.56526 5.00195 9.09795 5.20292 8.74988C5.68406 7.9165 6.65806 7.99988 7.50195 7.99988Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M22 4L2 4"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1122
|
+
const wi = (e = {}) => (() => {
|
|
1123
|
+
var t = vi();
|
|
1124
|
+
return B(t, e, !0), t;
|
|
1125
|
+
})();
|
|
1126
|
+
var Ci = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M16.502 10.0023C17.3458 10.0023 18.3198 9.91895 18.801 10.7523C19.002 11.1004 19.002 11.5677 19.002 12.5023V13.5023C19.002 14.4369 19.002 14.9042 18.801 15.2523C18.3198 16.0857 17.3458 16.0023 16.502 16.0023C15.6581 16.0023 14.6841 16.0857 14.2029 15.2523C14.002 14.9042 14.002 14.4369 14.002 13.5023L14.002 12.5023C14.002 11.5677 14.002 11.1004 14.2029 10.7523C14.6841 9.91895 15.6581 10.0023 16.502 10.0023Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M7.50195 4.00232C8.34585 4.00232 9.31984 3.91895 9.80099 4.75232C10.002 5.10039 10.002 5.5677 10.002 6.50232L10.002 13.5023C10.002 14.4369 10.002 14.9042 9.80099 15.2523C9.31984 16.0857 8.34585 16.0023 7.50195 16.0023C6.65806 16.0023 5.68406 16.0857 5.20292 15.2523C5.00195 14.9042 5.00195 14.4369 5.00195 13.5023L5.00195 6.50232C5.00195 5.5677 5.00195 5.10039 5.20292 4.75232C5.68406 3.91895 6.65806 4.00232 7.50195 4.00232Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M22 20L2 20"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1127
|
+
const yi = (e = {}) => (() => {
|
|
1128
|
+
var t = Ci();
|
|
1129
|
+
return B(t, e, !0), t;
|
|
1130
|
+
})();
|
|
1131
|
+
var mi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M8.00232 7.5C8.00232 6.65611 7.91895 5.68211 8.75232 5.20096C9.10039 5 9.5677 5 10.5023 5H11.5023C12.4369 5 12.9042 5 13.2523 5.20096C14.0857 5.68211 14.0023 6.65611 14.0023 7.5C14.0023 8.34389 14.0857 9.31789 13.2523 9.79904C12.9042 10 12.4369 10 11.5023 10H10.5023C9.5677 10 9.10039 10 8.75232 9.79904C7.91895 9.31789 8.00232 8.34389 8.00232 7.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M8.00232 16.5C8.00232 15.6561 7.91895 14.6821 8.75232 14.201C9.10039 14 9.5677 14 10.5023 14H17.5023C18.4369 14 18.9042 14 19.2523 14.201C20.0857 14.6821 20.0023 15.6561 20.0023 16.5C20.0023 17.3439 20.0857 18.3179 19.2523 18.799C18.9042 19 18.4369 19 17.5023 19H10.5023C9.5677 19 9.10039 19 8.75232 18.799C7.91895 18.3179 8.00232 17.3439 8.00232 16.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M4 2V22"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1132
|
+
const pi = (e = {}) => (() => {
|
|
1133
|
+
var t = mi();
|
|
1134
|
+
return B(t, e, !0), t;
|
|
1135
|
+
})();
|
|
1136
|
+
var ki = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M10.0004 7.5C10.0004 6.65611 9.91699 5.68211 10.7504 5.20096C11.0984 5 11.5657 5 12.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H12.5004C11.5657 10 11.0984 10 10.7504 9.79904C9.91699 9.31789 10.0004 8.34389 10.0004 7.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H13.5004C14.435 14 14.9023 14 15.2504 14.201C16.0837 14.6821 16.0004 15.6561 16.0004 16.5C16.0004 17.3439 16.0837 18.3179 15.2504 18.799C14.9023 19 14.435 19 13.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M20 2V22"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1137
|
+
const bi = (e = {}) => (() => {
|
|
1138
|
+
var t = ki();
|
|
1139
|
+
return B(t, e, !0), t;
|
|
1140
|
+
})();
|
|
1141
|
+
var _i = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M12 19L12 22"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M12 10L12 14"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M12 2L12 5"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M8.00036 7.5C8.00036 6.65611 7.91699 5.68211 8.75036 5.20096C9.09844 5 9.56575 5 10.5004 5H13.5004C14.435 5 14.9023 5 15.2504 5.20096C16.0837 5.68211 16.0004 6.65611 16.0004 7.5C16.0004 8.34389 16.0837 9.31789 15.2504 9.79904C14.9023 10 14.435 10 13.5004 10H10.5004C9.56575 10 9.09844 10 8.75036 9.79904C7.91699 9.31789 8.00036 8.34389 8.00036 7.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M4.00036 16.5C4.00036 15.6561 3.91699 14.6821 4.75036 14.201C5.09844 14 5.56575 14 6.50036 14H17.5004C18.435 14 18.9023 14 19.2504 14.201C20.0837 14.6821 20.0004 15.6561 20.0004 16.5C20.0004 17.3439 20.0837 18.3179 19.2504 18.799C18.9023 19 18.435 19 17.5004 19H6.50036C5.56575 19 5.09844 19 4.75036 18.799C3.91699 18.3179 4.00036 17.3439 4.00036 16.5Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1142
|
+
const Si = (e = {}) => (() => {
|
|
1143
|
+
var t = _i();
|
|
1144
|
+
return B(t, e, !0), t;
|
|
1145
|
+
})();
|
|
1146
|
+
var Pi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1147
|
+
const Mi = (e = {}) => (() => {
|
|
1148
|
+
var t = Pi();
|
|
1149
|
+
return B(t, e, !0), t;
|
|
1150
|
+
})();
|
|
1151
|
+
var $i = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M12 16.5V14.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M4.2678 18.8447C4.49268 20.515 5.87612 21.8235 7.55965 21.9009C8.97626 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.8789 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97626 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.2678 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.2678 18.8447Z"stroke=currentColor stroke-width=1.5></path><path d="M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V9"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1152
|
+
const xi = (e = {}) => (() => {
|
|
1153
|
+
var t = $i();
|
|
1154
|
+
return B(t, e, !0), t;
|
|
1155
|
+
})();
|
|
1156
|
+
var Ai = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M12 16.5V14.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12105 13.2453 4 14.3624 4 15.5C4 16.6376 4.12105 17.7547 4.26781 18.8447Z"stroke=currentColor stroke-width=1.5></path><path d="M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.5 3.5 16 5"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1157
|
+
const Oi = (e = {}) => (() => {
|
|
1158
|
+
var t = Ai();
|
|
1159
|
+
return B(t, e, !0), t;
|
|
1160
|
+
})();
|
|
1161
|
+
var Ei = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M6.08938 14.9992C5.71097 14.1486 5.5 13.2023 5.5 12.2051C5.5 8.50154 8.41015 5.49921 12 5.49921C15.5899 5.49921 18.5 8.50154 18.5 12.2051C18.5 13.2023 18.289 14.1486 17.9106 14.9992"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M12 1.99921V2.99921"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M22 11.9992H21"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M3 11.9992H2"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M19.0704 4.92792L18.3633 5.63503"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M5.6368 5.636L4.92969 4.92889"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M14.517 19.3056C15.5274 18.9788 15.9326 18.054 16.0466 17.1238C16.0806 16.8459 15.852 16.6154 15.572 16.6154L8.47685 16.6156C8.18725 16.6156 7.95467 16.8614 7.98925 17.1489C8.1009 18.0773 8.3827 18.7555 9.45345 19.3056M14.517 19.3056C14.517 19.3056 9.62971 19.3056 9.45345 19.3056M14.517 19.3056C14.3955 21.2506 13.8338 22.0209 12.0068 21.9993C10.0526 22.0354 9.60303 21.0833 9.45345 19.3056"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1162
|
+
const Di = (e = {}) => (() => {
|
|
1163
|
+
var t = Ei();
|
|
1164
|
+
return B(t, e, !0), t;
|
|
1165
|
+
})();
|
|
1166
|
+
var Bi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28248 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28248 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round></path><path d="M2.5 8.99976L21.5 8.99976"stroke=currentColor stroke-width=1.5></path><path d="M2.5 14.9998L21.5 14.9998"stroke=currentColor stroke-width=1.5></path><path d="M16 21.5L16 2.5"stroke=currentColor stroke-width=1.5></path><path d="M8 21.4998L8 2.49976"stroke=currentColor stroke-width=1.5>');
|
|
1167
|
+
const Li = (e = {}) => (() => {
|
|
1168
|
+
var t = Bi();
|
|
1169
|
+
return B(t, e, !0), t;
|
|
1170
|
+
})();
|
|
1171
|
+
var Gi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M9.66676 22L14.3334 22M3.01509 16.5C2.99793 16.0004 2.99705 15.5001 2.99855 15M20.9849 16.5C21.0021 16.0004 21.003 15.5001 21.0015 15M3.53709 19.2547C4.02122 20.213 4.80249 20.9914 5.76305 21.4718M18.1797 21.5C19.1665 21.0221 19.9692 20.232 20.4629 19.2547"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M5.50502 12C3.64422 12 3.00695 11.4596 3.00695 9.5C3.00695 6.96832 2.75702 4.04633 5.25521 2.60289C6.29863 2 7.69947 2 10.5012 2L13.4988 2C16.3005 2 17.7014 2 18.7448 2.60289C21.243 4.04633 20.9931 6.96832 20.9931 9.5C20.9931 11.3622 20.453 12 18.495 12L5.50502 12Z"stroke=currentColor stroke-width=1.5>');
|
|
1172
|
+
const Ri = (e = {}) => (() => {
|
|
1173
|
+
var t = Gi();
|
|
1174
|
+
return B(t, e, !0), t;
|
|
1175
|
+
})();
|
|
1176
|
+
var ji = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=20 height=20 color=#000000 fill=none><path d="M5.32171 9.6829C7.73539 5.41196 8.94222 3.27648 10.5983 2.72678C11.5093 2.42437 12.4907 2.42437 13.4017 2.72678C15.0578 3.27648 16.2646 5.41196 18.6783 9.6829C21.092 13.9538 22.2988 16.0893 21.9368 17.8293C21.7376 18.7866 21.2469 19.6548 20.535 20.3097C19.241 21.5 16.8274 21.5 12 21.5C7.17265 21.5 4.75897 21.5 3.46496 20.3097C2.75308 19.6548 2.26239 18.7866 2.06322 17.8293C1.70119 16.0893 2.90803 13.9538 5.32171 9.6829Z"stroke=currentColor stroke-width=2></path><path d="M11.992 16H12.001"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 13L12 8.99997"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>');
|
|
1177
|
+
const Ii = (e = {}) => (() => {
|
|
1178
|
+
var t = ji();
|
|
1179
|
+
return B(t, e, !0), t;
|
|
1180
|
+
})();
|
|
1181
|
+
var Ni = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M9.5 16.5L9.5 10.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M14.5 16.5L14.5 10.5"stroke=currentColor stroke-width=1.5 stroke-linecap=round>');
|
|
1182
|
+
const pn = (e = {}) => (() => {
|
|
1183
|
+
var t = Ni();
|
|
1184
|
+
return B(t, e, !0), t;
|
|
1185
|
+
})();
|
|
1186
|
+
var Ti = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z"stroke=currentColor stroke-width=1.5></path><path d="M8 12.5L10.5 15L16 9"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1187
|
+
const Ui = (e = {}) => (() => {
|
|
1188
|
+
var t = Ti();
|
|
1189
|
+
return B(t, e, !0), t;
|
|
1190
|
+
})();
|
|
1191
|
+
var Hi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path d="M13 3.00231C12.5299 3 12.0307 3 11.5 3C7.02166 3 4.78249 3 3.39124 4.39124C2 5.78249 2 8.02166 2 12.5C2 16.9783 2 19.2175 3.39124 20.6088C4.78249 22 7.02166 22 11.5 22C15.9783 22 18.2175 22 19.6088 20.6088C20.9472 19.2703 20.998 17.147 20.9999 13"stroke=currentColor stroke-width=1.5 stroke-linecap=round></path><path d="M2 14.1354C2.61902 14.0455 3.24484 14.0011 3.87171 14.0027C6.52365 13.9466 9.11064 14.7729 11.1711 16.3342C13.082 17.7821 14.4247 19.7749 15 22"stroke=currentColor stroke-width=1.5 stroke-linejoin=round></path><path d="M21 16.8962C19.8246 16.3009 18.6088 15.9988 17.3862 16.0001C15.5345 15.9928 13.7015 16.6733 12 18"stroke=currentColor stroke-width=1.5 stroke-linejoin=round></path><path d="M17 4.5C17.4915 3.9943 18.7998 2 19.5 2M22 4.5C21.5085 3.9943 20.2002 2 19.5 2M19.5 2V10"stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round>');
|
|
1192
|
+
const Vi = (e = {}) => (() => {
|
|
1193
|
+
var t = Hi();
|
|
1194
|
+
return B(t, e, !0), t;
|
|
1195
|
+
})();
|
|
1196
|
+
var Wi = /* @__PURE__ */ _('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"width=28 height=28 color=#000000 fill=none><path id=_pixel-mirror-toggle-trigger d="M19 12C19 13.6569 17.6569 15 16 15C14.3431 15 13 13.6569 13 12C13 10.3431 14.3431 9 16 9C17.6569 9 19 10.3431 19 12Z"stroke=currentColor stroke-width=1.5></path><path d="M16 6H8C4.68629 6 2 8.68629 2 12C2 15.3137 4.68629 18 8 18H16C19.3137 18 22 15.3137 22 12C22 8.68629 19.3137 6 16 6Z"stroke=currentColor stroke-width=1.5>');
|
|
1197
|
+
const nn = (e = {}) => (() => {
|
|
1198
|
+
var t = Wi();
|
|
1199
|
+
return B(t, e, !0), t;
|
|
1200
|
+
})();
|
|
1201
|
+
var Bt = /* @__PURE__ */ _("<div>"), Zi = /* @__PURE__ */ _("<div id=_pixel-mirror-app><div><button></button><button></button><button><span></span></button><button></button><button><span>x</span></button><button></button><button></button><button></button></div><div>x:<!>, y:</div><div id=_pixel-mirror-popover><button></button><button></button><button></button><button></button><button>"), zi = /* @__PURE__ */ _("<div><div><div><div><div><h3>Vertical Rhythm</h3><button><span></span></button></div><fieldset><legend>Vertical Rhythm Height</legend><input type=text><button>Update</button></fieldset><fieldset><legend>Vertical Rhythm Color</legend><input type=text><button>Update</button></fieldset></div><div><div><h3>Grid System</h3><button><span></span></button></div><fieldset><legend>Grid System Color</legend><input type=text><button>Update</button></fieldset><div><table><thead><tr><th>Width</th><th>Columns</th><th>Gutter Width</th><th>Outer Gutter</th><th>Position</th><th></th></tr></thead><tbody></tbody><tfoot><tr><td><input type=text placeholder=1140px></td><td><input type=text placeholder=12></td><td><input type=text placeholder=24px></td><td><select><option value=1>Yes</option><option value=0>No</option></select></td><td><select><option value=center>Center</option><option value=left>Left</option><option value=right>Right</option></select></td><td colspan=2><button>Add Grid</button></td></tr></tfoot></table></div></div></div></div><div><button>Reset Grid Settings</button><button>Close"), qi = /* @__PURE__ */ _("<tr><td></td><td></td><td></td><td></td><td></td><td><button></button><button>"), Ki = /* @__PURE__ */ _('<div><img alt=""><button>'), Fi = /* @__PURE__ */ _("<button>Clear Designs"), Xi = /* @__PURE__ */ _("<div><div><div><div><label><span>Upload</span><input type=file accept=image/jpeg,image/png multiple></label></div></div></div><div><button>Close"), Yi = /* @__PURE__ */ _('<img alt="">'), Ji = /* @__PURE__ */ _("<div><div>"), Qi = /* @__PURE__ */ _("<div id=_pixel-mirror-toast><span>");
|
|
1202
|
+
function q(e) {
|
|
1203
|
+
const t = e instanceof Error ? e.message : "An error occurred.";
|
|
1204
|
+
$("errorMessage", t), console.error(t);
|
|
1205
|
+
}
|
|
1206
|
+
function er() {
|
|
1207
|
+
const [e, t] = I(!1), n = ve(() => y.showAllDesignsPanel ? {
|
|
1208
|
+
width: "800px",
|
|
1209
|
+
height: "600px"
|
|
1210
|
+
} : y.showGridSettingsPanel ? {
|
|
1211
|
+
width: "680px",
|
|
1212
|
+
height: "600px"
|
|
1213
|
+
} : {
|
|
1214
|
+
width: "380px",
|
|
1215
|
+
height: "48px"
|
|
1216
|
+
});
|
|
1217
|
+
Fe(() => {
|
|
1218
|
+
T.init().then(() => t(!0)).catch(q);
|
|
1219
|
+
});
|
|
1220
|
+
const o = (g) => {
|
|
1221
|
+
g.target.closest("#_pixel-mirror-app") || ($({
|
|
1222
|
+
showAllDesignsPanel: !1,
|
|
1223
|
+
showGridSettingsPanel: !1
|
|
1224
|
+
}), window.removeEventListener("mousedown", o));
|
|
1225
|
+
};
|
|
1226
|
+
Ze(() => {
|
|
1227
|
+
!y.showAllDesignsPanel && !y.showGridSettingsPanel || (window.addEventListener("mousedown", o), Xe(() => {
|
|
1228
|
+
window.removeEventListener("mousedown", o);
|
|
1229
|
+
}));
|
|
1230
|
+
});
|
|
1231
|
+
const i = () => {
|
|
1232
|
+
G({
|
|
1233
|
+
showDesignOverlay: !f.showDesignOverlay
|
|
1234
|
+
});
|
|
1235
|
+
}, r = () => {
|
|
1236
|
+
G({
|
|
1237
|
+
lockDesignOverlay: !f.lockDesignOverlay
|
|
1238
|
+
});
|
|
1239
|
+
}, s = () => {
|
|
1240
|
+
G({
|
|
1241
|
+
designOpacity: 0.5
|
|
1242
|
+
});
|
|
1243
|
+
}, l = () => {
|
|
1244
|
+
f.showDesignOverlay && $("showAlignmentPopover", !0);
|
|
1245
|
+
}, c = (g) => {
|
|
1246
|
+
const m = g.relatedTarget;
|
|
1247
|
+
m != null && m.closest("#_pixel-mirror-popover") || $("showAlignmentPopover", !1);
|
|
1248
|
+
}, v = (g) => {
|
|
1249
|
+
const {
|
|
1250
|
+
clientWidth: m,
|
|
1251
|
+
scrollHeight: M
|
|
1252
|
+
} = document.documentElement, {
|
|
1253
|
+
width: A,
|
|
1254
|
+
height: E
|
|
1255
|
+
} = y.designSize, {
|
|
1256
|
+
x: R,
|
|
1257
|
+
y: S
|
|
1258
|
+
} = f.designPosition, P = {
|
|
1259
|
+
top: {
|
|
1260
|
+
x: R,
|
|
1261
|
+
y: 0
|
|
1262
|
+
},
|
|
1263
|
+
right: {
|
|
1264
|
+
x: m - A,
|
|
1265
|
+
y: S
|
|
1266
|
+
},
|
|
1267
|
+
bottom: {
|
|
1268
|
+
x: R,
|
|
1269
|
+
y: M - E
|
|
1270
|
+
},
|
|
1271
|
+
left: {
|
|
1272
|
+
x: 0,
|
|
1273
|
+
y: S
|
|
1274
|
+
},
|
|
1275
|
+
center: {
|
|
1276
|
+
x: (m - A) / 2 | 0,
|
|
1277
|
+
y: S
|
|
1278
|
+
},
|
|
1279
|
+
"top-center": {
|
|
1280
|
+
x: (m - A) / 2 | 0,
|
|
1281
|
+
y: 0
|
|
1282
|
+
}
|
|
1283
|
+
}[g];
|
|
1284
|
+
P.x === R && P.y === S || ($({
|
|
1285
|
+
designBufferedPosition: P,
|
|
1286
|
+
enableAnimation: !0
|
|
1287
|
+
}), G({
|
|
1288
|
+
designPosition: P
|
|
1289
|
+
}));
|
|
1290
|
+
}, d = () => {
|
|
1291
|
+
const g = f.designScale === 0.5 ? 1 : 0.5;
|
|
1292
|
+
$({
|
|
1293
|
+
designSize: {
|
|
1294
|
+
width: y.designOriginalSize.width * g,
|
|
1295
|
+
height: y.designOriginalSize.height * g
|
|
1296
|
+
},
|
|
1297
|
+
enableAnimation: !0
|
|
1298
|
+
}), G({
|
|
1299
|
+
designScale: g
|
|
1300
|
+
});
|
|
1301
|
+
}, a = () => {
|
|
1302
|
+
const g = f.appPosition === "top" ? "bottom" : "top";
|
|
1303
|
+
G({
|
|
1304
|
+
appPosition: g
|
|
1305
|
+
});
|
|
1306
|
+
};
|
|
1307
|
+
return p(F, {
|
|
1308
|
+
get when() {
|
|
1309
|
+
return e();
|
|
1310
|
+
},
|
|
1311
|
+
get children() {
|
|
1312
|
+
return [(() => {
|
|
1313
|
+
var g = Bt();
|
|
1314
|
+
return k(g, p(ir, {}), null), k(g, p(F, {
|
|
1315
|
+
get when() {
|
|
1316
|
+
return f.showVerticalRhythmOverlay && !y.isZoomMode;
|
|
1317
|
+
},
|
|
1318
|
+
get children() {
|
|
1319
|
+
return p(rr, {});
|
|
1320
|
+
}
|
|
1321
|
+
}), null), k(g, p(F, {
|
|
1322
|
+
get when() {
|
|
1323
|
+
return f.showGridSystemOverlay && !y.isZoomMode;
|
|
1324
|
+
},
|
|
1325
|
+
get children() {
|
|
1326
|
+
return p(sr, {});
|
|
1327
|
+
}
|
|
1328
|
+
}), null), x(() => w(g, u.overlayContainer)), g;
|
|
1329
|
+
})(), (() => {
|
|
1330
|
+
var g = Zi(), m = g.firstChild, M = m.firstChild, A = M.nextSibling, E = A.nextSibling, R = E.firstChild, S = E.nextSibling, P = S.nextSibling, b = P.firstChild, V = b.firstChild, Z = P.nextSibling, Y = Z.nextSibling, oe = Y.nextSibling, K = m.nextSibling, we = K.firstChild, D = we.nextSibling;
|
|
1331
|
+
D.nextSibling;
|
|
1332
|
+
var H = K.nextSibling, z = H.firstChild, ie = z.nextSibling, re = ie.nextSibling, he = re.nextSibling, se = he.nextSibling;
|
|
1333
|
+
return k(g, p(F, {
|
|
1334
|
+
get when() {
|
|
1335
|
+
return !!y.errorMessage;
|
|
1336
|
+
},
|
|
1337
|
+
get children() {
|
|
1338
|
+
return p(lr, {});
|
|
1339
|
+
}
|
|
1340
|
+
}), m), M.$$click = i, k(M, p(F, {
|
|
1341
|
+
get when() {
|
|
1342
|
+
return f.showDesignOverlay;
|
|
1343
|
+
},
|
|
1344
|
+
get fallback() {
|
|
1345
|
+
return p(ci, {});
|
|
1346
|
+
},
|
|
1347
|
+
get children() {
|
|
1348
|
+
return p(ai, {});
|
|
1349
|
+
}
|
|
1350
|
+
})), A.$$click = r, k(A, p(F, {
|
|
1351
|
+
get when() {
|
|
1352
|
+
return f.lockDesignOverlay;
|
|
1353
|
+
},
|
|
1354
|
+
get fallback() {
|
|
1355
|
+
return p(Oi, {});
|
|
1356
|
+
},
|
|
1357
|
+
get children() {
|
|
1358
|
+
return p(xi, {});
|
|
1359
|
+
}
|
|
1360
|
+
})), E.$$click = s, k(R, () => Math.floor(f.designOpacity * 100)), k(E, p(Di, {}), null), S.addEventListener("mouseleave", c), S.addEventListener("mouseenter", l), S.$$click = () => v("top-center"), k(S, p(fi, {})), P.$$click = d, k(b, (() => {
|
|
1361
|
+
var C = ve(() => f.designScale === 0.5);
|
|
1362
|
+
return () => C() ? ".5" : f.designScale.toString();
|
|
1363
|
+
})(), V), k(P, p(Mi, {}), null), Z.$$click = () => $("showGridSettingsPanel", !0), k(Z, p(Li, {})), Y.$$click = () => $("showAllDesignsPanel", !0), k(Y, p(hi, {})), oe.$$click = a, k(oe, p(Ri, {})), k(K, () => y.designBufferedPosition.x, D), k(K, () => y.designBufferedPosition.y, null), H.addEventListener("mouseleave", c), z.$$click = () => v("left"), k(z, p(pi, {})), ie.$$click = () => v("top"), k(ie, p(wi, {})), re.$$click = () => v("center"), k(re, p(Si, {})), he.$$click = () => v("bottom"), k(he, p(yi, {})), se.$$click = () => v("right"), k(se, p(bi, {})), k(g, p(F, {
|
|
1364
|
+
get when() {
|
|
1365
|
+
return y.showGridSettingsPanel;
|
|
1366
|
+
},
|
|
1367
|
+
get children() {
|
|
1368
|
+
return p(tr, {});
|
|
1369
|
+
}
|
|
1370
|
+
}), null), k(g, p(F, {
|
|
1371
|
+
get when() {
|
|
1372
|
+
return y.showAllDesignsPanel;
|
|
1373
|
+
},
|
|
1374
|
+
get children() {
|
|
1375
|
+
return p(or, {});
|
|
1376
|
+
}
|
|
1377
|
+
}), null), x((C) => {
|
|
1378
|
+
var Ce = N(u.app, y.isSolidMode && u.hide, y.isDragging && u.noEvents, f.appPosition === "top" && u.top), Ct = n(), J = N(u.menuBar, (y.showAllDesignsPanel || y.showGridSettingsPanel) && u.hide), Je = u.menuButton, ge = !y.designUrl, Qe = u.menuButton, Q = !f.showDesignOverlay, et = N(u.menuButton, u.opacityButton), $e = !f.showDesignOverlay, ye = u.opacityButton__value, xe = u.menuButton, fe = !f.showDesignOverlay, Ae = N(u.menuButton, u.scaleButton), le = !f.showDesignOverlay, tt = u.scaleButton__value, ee = u.menuButton, nt = u.menuButton, Oe = N(u.menuButton, f.appPosition === "top" && u.rotate), Ee = N(u.coordinates, (!f.showDesignOverlay || y.showAlignmentPopover || y.showAllDesignsPanel || y.showGridSettingsPanel) && u.hide), ot = N(u.alignmentPopover, !y.showAlignmentPopover && u.hide), De = u.alignmentButton, it = u.alignmentButton, rt = u.alignmentButton, Be = u.alignmentButton, me = u.alignmentButton;
|
|
1379
|
+
return Ce !== C.e && w(g, C.e = Ce), C.t = Dt(g, Ct, C.t), J !== C.a && w(m, C.a = J), Je !== C.o && w(M, C.o = Je), ge !== C.i && (M.disabled = C.i = ge), Qe !== C.n && w(A, C.n = Qe), Q !== C.s && (A.disabled = C.s = Q), et !== C.h && w(E, C.h = et), $e !== C.r && (E.disabled = C.r = $e), ye !== C.d && w(R, C.d = ye), xe !== C.l && w(S, C.l = xe), fe !== C.u && (S.disabled = C.u = fe), Ae !== C.c && w(P, C.c = Ae), le !== C.w && (P.disabled = C.w = le), tt !== C.m && w(b, C.m = tt), ee !== C.f && w(Z, C.f = ee), nt !== C.y && w(Y, C.y = nt), Oe !== C.g && w(oe, C.g = Oe), Ee !== C.p && w(K, C.p = Ee), ot !== C.b && w(H, C.b = ot), De !== C.T && w(z, C.T = De), it !== C.A && w(ie, C.A = it), rt !== C.O && w(re, C.O = rt), Be !== C.I && w(he, C.I = Be), me !== C.S && w(se, C.S = me), C;
|
|
1380
|
+
}, {
|
|
1381
|
+
e: void 0,
|
|
1382
|
+
t: void 0,
|
|
1383
|
+
a: void 0,
|
|
1384
|
+
o: void 0,
|
|
1385
|
+
i: void 0,
|
|
1386
|
+
n: void 0,
|
|
1387
|
+
s: void 0,
|
|
1388
|
+
h: void 0,
|
|
1389
|
+
r: void 0,
|
|
1390
|
+
d: void 0,
|
|
1391
|
+
l: void 0,
|
|
1392
|
+
u: void 0,
|
|
1393
|
+
c: void 0,
|
|
1394
|
+
w: void 0,
|
|
1395
|
+
m: void 0,
|
|
1396
|
+
f: void 0,
|
|
1397
|
+
y: void 0,
|
|
1398
|
+
g: void 0,
|
|
1399
|
+
p: void 0,
|
|
1400
|
+
b: void 0,
|
|
1401
|
+
T: void 0,
|
|
1402
|
+
A: void 0,
|
|
1403
|
+
O: void 0,
|
|
1404
|
+
I: void 0,
|
|
1405
|
+
S: void 0
|
|
1406
|
+
}), g;
|
|
1407
|
+
})()];
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
function tr() {
|
|
1412
|
+
const [e, t] = I(f.verticalRhythmHeight), [n, o] = I(f.verticalRhythmColor), [i, r] = I([]), [s, l] = I(f.gridSystemColor), [c, v] = I(""), [d, a] = I(""), [g, m] = I(""), [M, A] = I(!0), [E, R] = I("center");
|
|
1413
|
+
Fe(() => {
|
|
1414
|
+
T.getAllGridSets().then((D) => r(D)).catch(q);
|
|
1415
|
+
});
|
|
1416
|
+
const S = () => {
|
|
1417
|
+
G({
|
|
1418
|
+
showVerticalRhythmOverlay: !f.showVerticalRhythmOverlay
|
|
1419
|
+
});
|
|
1420
|
+
}, P = () => {
|
|
1421
|
+
G({
|
|
1422
|
+
verticalRhythmHeight: e()
|
|
1423
|
+
});
|
|
1424
|
+
}, b = () => {
|
|
1425
|
+
G({
|
|
1426
|
+
verticalRhythmColor: n()
|
|
1427
|
+
});
|
|
1428
|
+
}, V = () => {
|
|
1429
|
+
G({
|
|
1430
|
+
showGridSystemOverlay: !f.showGridSystemOverlay
|
|
1431
|
+
});
|
|
1432
|
+
}, Z = () => {
|
|
1433
|
+
G({
|
|
1434
|
+
gridSystemColor: s()
|
|
1435
|
+
});
|
|
1436
|
+
}, Y = () => {
|
|
1437
|
+
const D = {
|
|
1438
|
+
width: /^\d+$/.test(c()) ? `${c()}px` : c(),
|
|
1439
|
+
columns: +d(),
|
|
1440
|
+
gutterWidth: /^\d+$/.test(g()) ? `${g()}px` : g(),
|
|
1441
|
+
isGutterOnOutside: M(),
|
|
1442
|
+
position: E()
|
|
1443
|
+
};
|
|
1444
|
+
T.addGridSet(D).then((H) => {
|
|
1445
|
+
r((z) => [...z, H]), v(""), a(""), m(""), A(!0), R("center");
|
|
1446
|
+
}).catch(q);
|
|
1447
|
+
}, oe = (D) => {
|
|
1448
|
+
T.deleteGridSet(D).then(() => {
|
|
1449
|
+
r((H) => H.filter((z) => z.id !== D));
|
|
1450
|
+
}).catch(q);
|
|
1451
|
+
}, K = (D) => {
|
|
1452
|
+
G({
|
|
1453
|
+
activeGridSystemId: D
|
|
1454
|
+
});
|
|
1455
|
+
}, we = () => {
|
|
1456
|
+
T.resetGridSets().then((D) => {
|
|
1457
|
+
r(D), G({
|
|
1458
|
+
activeGridSystemId: "default"
|
|
1459
|
+
});
|
|
1460
|
+
}).catch(q);
|
|
1461
|
+
};
|
|
1462
|
+
return (() => {
|
|
1463
|
+
var D = zi(), H = D.firstChild, z = H.firstChild, ie = z.firstChild, re = ie.firstChild, he = re.firstChild, se = he.nextSibling, C = se.firstChild, Ce = re.nextSibling, Ct = Ce.firstChild, J = Ct.nextSibling, Je = J.nextSibling, ge = Ce.nextSibling, Qe = ge.firstChild, Q = Qe.nextSibling, et = Q.nextSibling, $e = ie.nextSibling, ye = $e.firstChild, xe = ye.firstChild, fe = xe.nextSibling, Ae = fe.firstChild, le = ye.nextSibling, tt = le.firstChild, ee = tt.nextSibling, nt = ee.nextSibling, Oe = le.nextSibling, Ee = Oe.firstChild, ot = Ee.firstChild, De = ot.nextSibling, it = De.nextSibling, rt = it.firstChild, Be = rt.firstChild, me = Be.firstChild, Lt = Be.nextSibling, yt = Lt.firstChild, Gt = Lt.nextSibling, mt = Gt.firstChild, Rt = Gt.nextSibling, jt = Rt.firstChild, It = Rt.nextSibling, Nt = It.firstChild, kn = It.nextSibling, pt = kn.firstChild, Tt = H.nextSibling, kt = Tt.firstChild, Ut = kt.nextSibling;
|
|
1464
|
+
return se.$$click = S, k(se, p(nn, {}), C), k(C, () => f.showVerticalRhythmOverlay ? "Enabled" : "Disabled"), J.$$input = (h) => t(h.target.value), W(J, "spellcheck", !1), Je.$$click = P, Q.$$input = (h) => o(h.target.value), W(Q, "spellcheck", !1), et.$$click = b, fe.$$click = V, k(fe, p(nn, {}), Ae), k(Ae, () => f.showGridSystemOverlay ? "Enabled" : "Disabled"), ee.$$input = (h) => l(h.target.value), W(ee, "spellcheck", !1), nt.$$click = Z, k(De, () => p(Et, {
|
|
1465
|
+
get each() {
|
|
1466
|
+
return i();
|
|
1467
|
+
},
|
|
1468
|
+
children: (h) => (() => {
|
|
1469
|
+
var pe = qi(), Le = pe.firstChild, Ge = Le.nextSibling, Re = Ge.nextSibling, je = Re.nextSibling, Ie = je.nextSibling, Ne = Ie.nextSibling, ae = Ne.firstChild, de = ae.nextSibling;
|
|
1470
|
+
return k(Le, () => h.width), k(Ge, () => h.columns), k(Re, () => h.gutterWidth), k(je, () => h.isGutterOnOutside ? "Yes" : "No"), k(Ie, () => h.position), ae.$$click = () => oe(h.id), k(ae, p(pn, {})), de.$$click = () => K(h.id), k(de, p(Ui, {})), x((j) => {
|
|
1471
|
+
var ke = N(f.activeGridSystemId === h.id && u.active), be = u.table__bgroup, Te = u.table__button, Ue = i().length == 1 || f.activeGridSystemId === h.id, He = N(u.table__button, u.activeGridButton, f.activeGridSystemId === h.id && u.active), Ve = f.activeGridSystemId === h.id;
|
|
1472
|
+
return ke !== j.e && w(pe, j.e = ke), be !== j.t && w(Ne, j.t = be), Te !== j.a && w(ae, j.a = Te), Ue !== j.o && (ae.disabled = j.o = Ue), He !== j.i && w(de, j.i = He), Ve !== j.n && (de.disabled = j.n = Ve), j;
|
|
1473
|
+
}, {
|
|
1474
|
+
e: void 0,
|
|
1475
|
+
t: void 0,
|
|
1476
|
+
a: void 0,
|
|
1477
|
+
o: void 0,
|
|
1478
|
+
i: void 0,
|
|
1479
|
+
n: void 0
|
|
1480
|
+
}), pe;
|
|
1481
|
+
})()
|
|
1482
|
+
})), me.$$input = (h) => v(h.target.value), W(me, "spellcheck", !1), yt.$$input = (h) => a(h.target.value), W(yt, "spellcheck", !1), mt.$$input = (h) => m(h.target.value), W(mt, "spellcheck", !1), jt.addEventListener("change", (h) => A(!!+h.target.value)), Nt.addEventListener("change", (h) => R(h.target.value)), pt.$$click = Y, kt.$$click = we, Ut.$$click = () => $("showGridSettingsPanel", !1), x((h) => {
|
|
1483
|
+
var pe = u.panel, Le = u.panel__contentWrapper, Ge = N(u.panel__content, !!i().length && u.show), Re = u.gridSettingBox, je = u.gridSettingBox__header, Ie = u.gridSettingBox__heading, Ne = N(u.gridSettingBox__toggleButton, f.showVerticalRhythmOverlay && u.enabled), ae = u.fieldset, de = e() !== f.verticalRhythmHeight ? "italic" : void 0, j = u.fieldset, ke = n(), be = n() !== f.verticalRhythmColor ? "italic" : void 0, Te = u.gridSettingBox, Ue = u.gridSettingBox__header, He = u.gridSettingBox__heading, Ve = N(u.gridSettingBox__toggleButton, f.showGridSystemOverlay && u.enabled), Ht = u.fieldset, bt = s(), _t = s() !== f.gridSystemColor ? "italic" : void 0, Vt = u.tableWrapper, Wt = u.table, Zt = u.addGridButton, zt = !c() || !d() || !g(), qt = u.panel__footer, Kt = u.panel__button, Ft = u.panel__button;
|
|
1484
|
+
return pe !== h.e && w(D, h.e = pe), Le !== h.t && w(H, h.t = Le), Ge !== h.a && w(z, h.a = Ge), Re !== h.o && w(ie, h.o = Re), je !== h.i && w(re, h.i = je), Ie !== h.n && w(he, h.n = Ie), Ne !== h.s && w(se, h.s = Ne), ae !== h.h && w(Ce, h.h = ae), de !== h.r && ((h.r = de) != null ? J.style.setProperty("font-style", de) : J.style.removeProperty("font-style")), j !== h.d && w(ge, h.d = j), ke !== h.l && ((h.l = ke) != null ? ge.style.setProperty("background", ke) : ge.style.removeProperty("background")), be !== h.u && ((h.u = be) != null ? Q.style.setProperty("font-style", be) : Q.style.removeProperty("font-style")), Te !== h.c && w($e, h.c = Te), Ue !== h.w && w(ye, h.w = Ue), He !== h.m && w(xe, h.m = He), Ve !== h.f && w(fe, h.f = Ve), Ht !== h.y && w(le, h.y = Ht), bt !== h.g && ((h.g = bt) != null ? le.style.setProperty("background", bt) : le.style.removeProperty("background")), _t !== h.p && ((h.p = _t) != null ? ee.style.setProperty("font-style", _t) : ee.style.removeProperty("font-style")), Vt !== h.b && w(Oe, h.b = Vt), Wt !== h.T && w(Ee, h.T = Wt), Zt !== h.A && w(pt, h.A = Zt), zt !== h.O && (pt.disabled = h.O = zt), qt !== h.I && w(Tt, h.I = qt), Kt !== h.S && w(kt, h.S = Kt), Ft !== h.W && w(Ut, h.W = Ft), h;
|
|
1485
|
+
}, {
|
|
1486
|
+
e: void 0,
|
|
1487
|
+
t: void 0,
|
|
1488
|
+
a: void 0,
|
|
1489
|
+
o: void 0,
|
|
1490
|
+
i: void 0,
|
|
1491
|
+
n: void 0,
|
|
1492
|
+
s: void 0,
|
|
1493
|
+
h: void 0,
|
|
1494
|
+
r: void 0,
|
|
1495
|
+
d: void 0,
|
|
1496
|
+
l: void 0,
|
|
1497
|
+
u: void 0,
|
|
1498
|
+
c: void 0,
|
|
1499
|
+
w: void 0,
|
|
1500
|
+
m: void 0,
|
|
1501
|
+
f: void 0,
|
|
1502
|
+
y: void 0,
|
|
1503
|
+
g: void 0,
|
|
1504
|
+
p: void 0,
|
|
1505
|
+
b: void 0,
|
|
1506
|
+
T: void 0,
|
|
1507
|
+
A: void 0,
|
|
1508
|
+
O: void 0,
|
|
1509
|
+
I: void 0,
|
|
1510
|
+
S: void 0,
|
|
1511
|
+
W: void 0
|
|
1512
|
+
}), x(() => J.value = e()), x(() => Q.value = n()), x(() => ee.value = s()), x(() => me.value = c()), x(() => yt.value = d()), x(() => mt.value = g()), x(() => jt.value = Number(M())), x(() => Nt.value = E()), D;
|
|
1513
|
+
})();
|
|
1514
|
+
}
|
|
1515
|
+
function nr(e) {
|
|
1516
|
+
const [t, n] = I("");
|
|
1517
|
+
return Fe(() => {
|
|
1518
|
+
const o = new Blob([e.buffer], {
|
|
1519
|
+
type: e.mimeType
|
|
1520
|
+
}), i = URL.createObjectURL(o);
|
|
1521
|
+
n(i);
|
|
1522
|
+
}), Xe(() => {
|
|
1523
|
+
URL.revokeObjectURL(t());
|
|
1524
|
+
}), (() => {
|
|
1525
|
+
var o = Ki(), i = o.firstChild, r = i.nextSibling;
|
|
1526
|
+
return i.$$click = () => e.selectDesign(e.id), W(i, "draggable", !1), r.$$click = () => e.deleteDesign(e.id), k(r, p(pn, {})), x((s) => {
|
|
1527
|
+
var l = N(u.designCard, f.designId === e.id && u.current), c = u.designCard__img, v = t(), d = u.designCard__button, a = f.designId === e.id;
|
|
1528
|
+
return l !== s.e && w(o, s.e = l), c !== s.t && w(i, s.t = c), v !== s.a && W(i, "src", s.a = v), d !== s.o && w(r, s.o = d), a !== s.i && (r.disabled = s.i = a), s;
|
|
1529
|
+
}, {
|
|
1530
|
+
e: void 0,
|
|
1531
|
+
t: void 0,
|
|
1532
|
+
a: void 0,
|
|
1533
|
+
o: void 0,
|
|
1534
|
+
i: void 0
|
|
1535
|
+
}), o;
|
|
1536
|
+
})();
|
|
1537
|
+
}
|
|
1538
|
+
function or() {
|
|
1539
|
+
const [e, t] = I(!1), [n, o] = I([]);
|
|
1540
|
+
Fe(() => {
|
|
1541
|
+
T.getAllDesigns().then((a) => {
|
|
1542
|
+
o(a), t(!0);
|
|
1543
|
+
}).catch(q);
|
|
1544
|
+
});
|
|
1545
|
+
const i = (a) => {
|
|
1546
|
+
a.length !== 0 && T.uploadDesign(a).then((g) => o((m) => [...g, ...m])).catch(q);
|
|
1547
|
+
}, r = (a) => {
|
|
1548
|
+
const g = a.target, m = Array.from(g.files || []);
|
|
1549
|
+
i(m);
|
|
1550
|
+
}, s = (a) => {
|
|
1551
|
+
var m;
|
|
1552
|
+
a.preventDefault(), a.stopPropagation();
|
|
1553
|
+
const g = Array.from(((m = a.dataTransfer) == null ? void 0 : m.files) || []).filter((M) => ["image/jpeg", "image/png"].includes(M.type));
|
|
1554
|
+
i(g);
|
|
1555
|
+
}, l = (a) => {
|
|
1556
|
+
a.preventDefault(), a.stopPropagation();
|
|
1557
|
+
}, c = (a) => {
|
|
1558
|
+
f.designId !== a && (G({
|
|
1559
|
+
designId: a,
|
|
1560
|
+
showDesignOverlay: !0
|
|
1561
|
+
}), $("showAllDesignsPanel", !1));
|
|
1562
|
+
}, v = (a) => {
|
|
1563
|
+
T.deleteDesign(a).then(() => o((g) => g.filter((m) => m.id !== a))).catch(q);
|
|
1564
|
+
}, d = () => {
|
|
1565
|
+
T.deleteAllDesigns().then(() => {
|
|
1566
|
+
o([]), G({
|
|
1567
|
+
designId: "",
|
|
1568
|
+
showDesignOverlay: !1
|
|
1569
|
+
}), y.designUrl && (URL.revokeObjectURL(y.designUrl), $("designUrl", void 0));
|
|
1570
|
+
}).catch(q);
|
|
1571
|
+
};
|
|
1572
|
+
return (() => {
|
|
1573
|
+
var a = Xi(), g = a.firstChild, m = g.firstChild, M = m.firstChild, A = M.firstChild, E = A.firstChild, R = E.nextSibling, S = g.nextSibling, P = S.firstChild;
|
|
1574
|
+
return m.addEventListener("dragover", l), m.addEventListener("drop", s), k(A, p(Vi, {
|
|
1575
|
+
get class() {
|
|
1576
|
+
return u.uploadButton__icon;
|
|
1577
|
+
}
|
|
1578
|
+
}), E), R.addEventListener("change", r), k(M, () => p(Et, {
|
|
1579
|
+
get each() {
|
|
1580
|
+
return n();
|
|
1581
|
+
},
|
|
1582
|
+
children: (b) => p(nr, Rn(b, {
|
|
1583
|
+
selectDesign: c,
|
|
1584
|
+
deleteDesign: v
|
|
1585
|
+
}))
|
|
1586
|
+
}), null), k(S, p(F, {
|
|
1587
|
+
get when() {
|
|
1588
|
+
return !!n().length;
|
|
1589
|
+
},
|
|
1590
|
+
get children() {
|
|
1591
|
+
var b = Fi();
|
|
1592
|
+
return b.$$click = d, x(() => w(b, u.panel__button)), b;
|
|
1593
|
+
}
|
|
1594
|
+
}), P), P.$$click = () => $("showAllDesignsPanel", !1), x((b) => {
|
|
1595
|
+
var V = u.panel, Z = u.panel__contentWrapper, Y = N(u.panel__content, e() && u.show), oe = u.allDesignsList, K = u.uploadButton, we = u.uploadButton__text, D = u.panel__footer, H = u.panel__button;
|
|
1596
|
+
return V !== b.e && w(a, b.e = V), Z !== b.t && w(g, b.t = Z), Y !== b.a && w(m, b.a = Y), oe !== b.o && w(M, b.o = oe), K !== b.i && w(A, b.i = K), we !== b.n && w(E, b.n = we), D !== b.s && w(S, b.s = D), H !== b.h && w(P, b.h = H), b;
|
|
1597
|
+
}, {
|
|
1598
|
+
e: void 0,
|
|
1599
|
+
t: void 0,
|
|
1600
|
+
a: void 0,
|
|
1601
|
+
o: void 0,
|
|
1602
|
+
i: void 0,
|
|
1603
|
+
n: void 0,
|
|
1604
|
+
s: void 0,
|
|
1605
|
+
h: void 0
|
|
1606
|
+
}), a;
|
|
1607
|
+
})();
|
|
1608
|
+
}
|
|
1609
|
+
function ir() {
|
|
1610
|
+
Ze(() => {
|
|
1611
|
+
f.designId && T.getDesign(f.designId).then((d) => {
|
|
1612
|
+
if (!d)
|
|
1613
|
+
throw new Error("Failed to load design image.");
|
|
1614
|
+
const a = new Blob([d.buffer], {
|
|
1615
|
+
type: d.mimeType
|
|
1616
|
+
}), g = URL.createObjectURL(a);
|
|
1617
|
+
$("designUrl", g);
|
|
1618
|
+
}).catch(q);
|
|
1619
|
+
}), Ze(() => {
|
|
1620
|
+
f.showDesignOverlay ? (window.addEventListener("keydown", s), window.addEventListener("keyup", l)) : (window.removeEventListener("keydown", s), window.removeEventListener("keyup", l));
|
|
1621
|
+
}), Xe(() => {
|
|
1622
|
+
window.removeEventListener("keydown", s), window.removeEventListener("keyup", l);
|
|
1623
|
+
});
|
|
1624
|
+
const e = ve(() => ({
|
|
1625
|
+
width: `${y.designSize.width}px`,
|
|
1626
|
+
height: `${y.designSize.height}px`,
|
|
1627
|
+
opacity: y.isSolidMode ? 1 : f.designOpacity,
|
|
1628
|
+
transform: `translate3D(${y.designBufferedPosition.x}px, ${y.designBufferedPosition.y}px, 0)`,
|
|
1629
|
+
cursor: y.isSolidMode ? y.isZoomMode ? "zoom-out" : "zoom-in" : y.isDragging ? "grabbing" : "grab"
|
|
1630
|
+
})), t = (d) => {
|
|
1631
|
+
const a = d.target;
|
|
1632
|
+
$({
|
|
1633
|
+
designSize: {
|
|
1634
|
+
width: a.naturalWidth * f.designScale,
|
|
1635
|
+
height: a.naturalHeight * f.designScale
|
|
1636
|
+
},
|
|
1637
|
+
designOriginalSize: {
|
|
1638
|
+
width: a.naturalWidth,
|
|
1639
|
+
height: a.naturalHeight
|
|
1640
|
+
},
|
|
1641
|
+
designBufferedPosition: f.designPosition
|
|
1642
|
+
});
|
|
1643
|
+
}, n = (d) => {
|
|
1644
|
+
d.button === 0 && (y.isSolidMode ? y.isZoomMode ? ($({
|
|
1645
|
+
isZoomMode: !1,
|
|
1646
|
+
designSize: {
|
|
1647
|
+
width: y.designOriginalSize.width * f.designScale,
|
|
1648
|
+
height: y.designOriginalSize.height * f.designScale
|
|
1649
|
+
},
|
|
1650
|
+
designBufferedPosition: f.designPosition,
|
|
1651
|
+
enableAnimation: !0
|
|
1652
|
+
}), window.removeEventListener("mousemove", i)) : $({
|
|
1653
|
+
isZoomMode: !0,
|
|
1654
|
+
designSize: {
|
|
1655
|
+
width: y.designSize.width * 2,
|
|
1656
|
+
height: y.designSize.height * 2
|
|
1657
|
+
},
|
|
1658
|
+
designBufferedPosition: {
|
|
1659
|
+
x: innerWidth / 2 - (d.clientX - y.designBufferedPosition.x) * 2,
|
|
1660
|
+
y: innerHeight / 2 - (d.clientY - y.designBufferedPosition.y) * 2
|
|
1661
|
+
},
|
|
1662
|
+
enableAnimation: !0
|
|
1663
|
+
}) : f.lockDesignOverlay || ($("isDragging", !0), window.addEventListener("mousemove", o)));
|
|
1664
|
+
}, o = (d) => {
|
|
1665
|
+
$("designBufferedPosition", (a) => ({
|
|
1666
|
+
x: a.x + d.movementX,
|
|
1667
|
+
y: a.y + d.movementY
|
|
1668
|
+
}));
|
|
1669
|
+
}, i = (d) => {
|
|
1670
|
+
$("designBufferedPosition", (a) => ({
|
|
1671
|
+
x: a.x - d.movementX,
|
|
1672
|
+
y: a.y - d.movementY
|
|
1673
|
+
}));
|
|
1674
|
+
}, r = (d) => {
|
|
1675
|
+
d.button !== 0 || !y.isDragging || ($("isDragging", !1), G({
|
|
1676
|
+
designPosition: y.designBufferedPosition
|
|
1677
|
+
}), window.removeEventListener("mousemove", o));
|
|
1678
|
+
}, s = (d) => {
|
|
1679
|
+
if (!["INPUT", "SELECT"].includes(d.target.tagName))
|
|
1680
|
+
if (d.key === "Control")
|
|
1681
|
+
window.addEventListener("wheel", c, {
|
|
1682
|
+
passive: !1
|
|
1683
|
+
});
|
|
1684
|
+
else if (d.key === " ")
|
|
1685
|
+
d.preventDefault(), y.isDragging || $("isSolidMode", !0);
|
|
1686
|
+
else if (d.key.startsWith("Arrow")) {
|
|
1687
|
+
d.preventDefault();
|
|
1688
|
+
const [a, g] = {
|
|
1689
|
+
ArrowUp: [0, -1],
|
|
1690
|
+
ArrowDown: [0, 1],
|
|
1691
|
+
ArrowLeft: [-1, 0],
|
|
1692
|
+
ArrowRight: [1, 0]
|
|
1693
|
+
}[d.key] || [0, 0];
|
|
1694
|
+
$("designBufferedPosition", {
|
|
1695
|
+
x: f.designPosition.x + a,
|
|
1696
|
+
y: f.designPosition.y + g
|
|
1697
|
+
});
|
|
1698
|
+
} else d.key === "Escape" && G({
|
|
1699
|
+
lockDesignOverlay: !f.lockDesignOverlay
|
|
1700
|
+
});
|
|
1701
|
+
}, l = (d) => {
|
|
1702
|
+
["INPUT", "SELECT"].includes(d.target.tagName) || (d.key === "Control" ? window.removeEventListener("wheel", c) : d.key === " " ? y.isZoomMode ? ($({
|
|
1703
|
+
isSolidMode: !1,
|
|
1704
|
+
isZoomMode: !1,
|
|
1705
|
+
designSize: {
|
|
1706
|
+
width: y.designOriginalSize.width * f.designScale,
|
|
1707
|
+
height: y.designOriginalSize.height * f.designScale
|
|
1708
|
+
},
|
|
1709
|
+
designBufferedPosition: f.designPosition,
|
|
1710
|
+
enableAnimation: !0
|
|
1711
|
+
}), window.removeEventListener("mousemove", i)) : $("isSolidMode", !1) : d.key.startsWith("Arrow") && G({
|
|
1712
|
+
designPosition: y.designBufferedPosition
|
|
1713
|
+
}));
|
|
1714
|
+
}, c = (d) => {
|
|
1715
|
+
d.preventDefault();
|
|
1716
|
+
const a = d.deltaY > 0 ? 0.05 : -0.05, g = Math.round((f.designOpacity + a) * 100) / 100;
|
|
1717
|
+
G({
|
|
1718
|
+
designOpacity: Math.max(0.1, Math.min(0.9, g))
|
|
1719
|
+
});
|
|
1720
|
+
}, v = () => {
|
|
1721
|
+
$("enableAnimation", !1), y.isZoomMode && window.addEventListener("mousemove", i);
|
|
1722
|
+
};
|
|
1723
|
+
return (() => {
|
|
1724
|
+
var d = Yi();
|
|
1725
|
+
return d.addEventListener("transitionend", v), d.addEventListener("mouseleave", r), d.$$mouseup = r, d.$$mousedown = n, d.addEventListener("load", t), W(d, "draggable", !1), x((a) => {
|
|
1726
|
+
var g = y.designUrl, m = N(u.designOverlay, y.isSolidMode && u.solid, y.enableAnimation && u.animation, f.lockDesignOverlay && !y.isSolidMode && u.locked, (!y.designUrl || !f.showDesignOverlay) && u.hide), M = e();
|
|
1727
|
+
return g !== a.e && W(d, "src", a.e = g), m !== a.t && w(d, a.t = m), a.a = Dt(d, M, a.a), a;
|
|
1728
|
+
}, {
|
|
1729
|
+
e: void 0,
|
|
1730
|
+
t: void 0,
|
|
1731
|
+
a: void 0
|
|
1732
|
+
}), d;
|
|
1733
|
+
})();
|
|
1734
|
+
}
|
|
1735
|
+
function rr() {
|
|
1736
|
+
return (() => {
|
|
1737
|
+
var e = Bt();
|
|
1738
|
+
return x((t) => {
|
|
1739
|
+
var n = u.verticalRhythmOverlay, o = `linear-gradient(to bottom, ${f.verticalRhythmColor} ${f.verticalRhythmHeight}, transparent ${f.verticalRhythmHeight})`, i = `100% ${f.verticalRhythmHeight.replace(/\d+/, (r) => String(+r * 2))}`;
|
|
1740
|
+
return n !== t.e && w(e, t.e = n), o !== t.t && ((t.t = o) != null ? e.style.setProperty("background-image", o) : e.style.removeProperty("background-image")), i !== t.a && ((t.a = i) != null ? e.style.setProperty("background-size", i) : e.style.removeProperty("background-size")), t;
|
|
1741
|
+
}, {
|
|
1742
|
+
e: void 0,
|
|
1743
|
+
t: void 0,
|
|
1744
|
+
a: void 0
|
|
1745
|
+
}), e;
|
|
1746
|
+
})();
|
|
1747
|
+
}
|
|
1748
|
+
function sr() {
|
|
1749
|
+
const [e, t] = I(void 0);
|
|
1750
|
+
return Ze(() => {
|
|
1751
|
+
f.activeGridSystemId && T.getGridSet(f.activeGridSystemId).then((n) => {
|
|
1752
|
+
if (!n)
|
|
1753
|
+
throw new Error("Failed to load grid system.");
|
|
1754
|
+
t(n);
|
|
1755
|
+
}).catch(q);
|
|
1756
|
+
}), p(F, {
|
|
1757
|
+
get when() {
|
|
1758
|
+
return !!e();
|
|
1759
|
+
},
|
|
1760
|
+
get children() {
|
|
1761
|
+
var n = Ji(), o = n.firstChild;
|
|
1762
|
+
return o.style.setProperty("box-sizing", "border-box"), o.style.setProperty("display", "flex"), k(o, p(Et, {
|
|
1763
|
+
get each() {
|
|
1764
|
+
return Array.from({
|
|
1765
|
+
length: e().columns
|
|
1766
|
+
});
|
|
1767
|
+
},
|
|
1768
|
+
children: () => (() => {
|
|
1769
|
+
var i = Bt();
|
|
1770
|
+
return i.style.setProperty("flex", "1"), x((r) => (r = f.gridSystemColor) != null ? i.style.setProperty("background", r) : i.style.removeProperty("background")), i;
|
|
1771
|
+
})()
|
|
1772
|
+
})), x((i) => {
|
|
1773
|
+
var r = N(u.gridSystemOverlay, u[e().position]), s = e().width, l = e().isGutterOnOutside ? e().gutterWidth.replace(/\d+/, (d) => String(+d / 2)) : void 0, c = e().isGutterOnOutside ? e().gutterWidth.replace(/\d+/, (d) => String(+d / 2)) : void 0, v = e().gutterWidth;
|
|
1774
|
+
return r !== i.e && w(n, i.e = r), s !== i.t && ((i.t = s) != null ? o.style.setProperty("width", s) : o.style.removeProperty("width")), l !== i.a && ((i.a = l) != null ? o.style.setProperty("padding-left", l) : o.style.removeProperty("padding-left")), c !== i.o && ((i.o = c) != null ? o.style.setProperty("padding-right", c) : o.style.removeProperty("padding-right")), v !== i.i && ((i.i = v) != null ? o.style.setProperty("gap", v) : o.style.removeProperty("gap")), i;
|
|
1775
|
+
}, {
|
|
1776
|
+
e: void 0,
|
|
1777
|
+
t: void 0,
|
|
1778
|
+
a: void 0,
|
|
1779
|
+
o: void 0,
|
|
1780
|
+
i: void 0
|
|
1781
|
+
}), n;
|
|
1782
|
+
}
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
function lr() {
|
|
1786
|
+
Fe(() => {
|
|
1787
|
+
window.addEventListener("mousedown", e), Xe(() => {
|
|
1788
|
+
window.removeEventListener("mousedown", e);
|
|
1789
|
+
});
|
|
1790
|
+
});
|
|
1791
|
+
const e = (t) => {
|
|
1792
|
+
t.target.closest("#_pixel-mirror-toast") || $("errorMessage", void 0);
|
|
1793
|
+
};
|
|
1794
|
+
return (() => {
|
|
1795
|
+
var t = Qi(), n = t.firstChild;
|
|
1796
|
+
return k(t, p(Ii, {}), n), k(n, () => y.errorMessage), x((o) => {
|
|
1797
|
+
var i = u.toast, r = u.toast__message;
|
|
1798
|
+
return i !== o.e && w(t, o.e = i), r !== o.t && w(n, o.t = r), o;
|
|
1799
|
+
}, {
|
|
1800
|
+
e: void 0,
|
|
1801
|
+
t: void 0
|
|
1802
|
+
}), t;
|
|
1803
|
+
})();
|
|
1804
|
+
}
|
|
1805
|
+
un(["click", "input", "mousedown", "mouseup"]);
|
|
1806
|
+
Vn(() => p(er, {}), document.body);
|