@pie-players/pie-tool-periodic-table 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-periodic-table.js +1119 -966
- package/package.json +4 -4
- package/tool-periodic-table.svelte +23 -21
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ts = Object.defineProperty;
|
|
2
|
+
var Vo = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var xs = (t, e, i) => e in t ? Ts(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
6
|
+
var w = (t, e, i) => xs(t, typeof e != "symbol" ? e + "" : e, i), Gi = (t, e, i) => e.has(t) || Vo("Cannot " + i);
|
|
7
|
+
var u = (t, e, i) => (Gi(t, e, "read from private field"), i ? i.call(t) : e.get(t)), k = (t, e, i) => e.has(t) ? Vo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), b = (t, e, i, o) => (Gi(t, e, "write to private field"), o ? o.call(t, i) : e.set(t, i), i), q = (t, e, i) => (Gi(t, e, "access private method"), i);
|
|
8
8
|
var an;
|
|
9
9
|
typeof window < "u" && ((an = window.__svelte ?? (window.__svelte = {})).v ?? (an.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
-
const Ss = 1, Is = 2, cn = 4,
|
|
11
|
-
var dn = Array.isArray,
|
|
12
|
-
const
|
|
10
|
+
const Ss = 1, Is = 2, cn = 4, As = 8, Es = 16, Rs = 2, fo = "[", Ei = "[!", mo = "]", Ot = {}, G = /* @__PURE__ */ Symbol(), un = "http://www.w3.org/1999/xhtml", qi = !1;
|
|
11
|
+
var dn = Array.isArray, $s = Array.prototype.indexOf, Ct = Array.prototype.includes, Ri = Array.from, ki = Object.keys, Ti = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ls = Object.getOwnPropertyDescriptors, zs = Object.prototype, Os = Array.prototype, pn = Object.getPrototypeOf, Do = Object.isExtensible;
|
|
12
|
+
const Cs = () => {
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function js(t) {
|
|
15
15
|
for (var e = 0; e < t.length; e++)
|
|
16
16
|
t[e]();
|
|
17
17
|
}
|
|
@@ -21,13 +21,13 @@ function fn() {
|
|
|
21
21
|
});
|
|
22
22
|
return { promise: i, resolve: t, reject: e };
|
|
23
23
|
}
|
|
24
|
-
const U = 2, Jt = 4,
|
|
24
|
+
const U = 2, Jt = 4, $i = 8, mn = 1 << 24, Ye = 16, xe = 32, rt = 64, Ji = 128, pe = 512, P = 1024, X = 2048, Te = 4096, re = 8192, We = 16384, Ht = 32768, jt = 65536, Po = 1 << 17, _n = 1 << 18, Tt = 1 << 19, Ns = 1 << 20, Xe = 1 << 25, vt = 65536, Yi = 1 << 21, _o = 1 << 22, ot = 1 << 23, gi = /* @__PURE__ */ Symbol("$state"), Ms = /* @__PURE__ */ Symbol("legacy props"), Vs = /* @__PURE__ */ Symbol(""), ct = new class extends Error {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
w(this, "name", "StaleReactionError");
|
|
28
|
+
w(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
29
|
}
|
|
30
|
-
}(),
|
|
30
|
+
}(), Ds = (
|
|
31
31
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
32
32
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
33
33
|
), oi = 3, ni = 8;
|
|
@@ -40,10 +40,10 @@ function Hs() {
|
|
|
40
40
|
function Bs(t, e, i) {
|
|
41
41
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Fs(t) {
|
|
44
44
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Gs() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
48
48
|
}
|
|
49
49
|
function Us(t) {
|
|
@@ -73,36 +73,36 @@ function Li(t) {
|
|
|
73
73
|
function Qs() {
|
|
74
74
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
75
75
|
}
|
|
76
|
-
let
|
|
76
|
+
let A = !1;
|
|
77
77
|
function Ke(t) {
|
|
78
|
-
|
|
78
|
+
A = t;
|
|
79
79
|
}
|
|
80
|
-
let
|
|
80
|
+
let E;
|
|
81
81
|
function J(t) {
|
|
82
82
|
if (t === null)
|
|
83
|
-
throw Li(),
|
|
84
|
-
return
|
|
83
|
+
throw Li(), Ot;
|
|
84
|
+
return E = t;
|
|
85
85
|
}
|
|
86
86
|
function zi() {
|
|
87
|
-
return J(/* @__PURE__ */
|
|
87
|
+
return J(/* @__PURE__ */ Ce(E));
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
if (/* @__PURE__ */
|
|
92
|
-
throw Li(),
|
|
93
|
-
|
|
89
|
+
function I(t) {
|
|
90
|
+
if (A) {
|
|
91
|
+
if (/* @__PURE__ */ Ce(E) !== null)
|
|
92
|
+
throw Li(), Ot;
|
|
93
|
+
E = t;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
function Zs(t = 1) {
|
|
97
|
-
if (
|
|
98
|
-
for (var e = t, i =
|
|
97
|
+
if (A) {
|
|
98
|
+
for (var e = t, i = E; e--; )
|
|
99
99
|
i = /** @type {TemplateNode} */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
100
|
+
/* @__PURE__ */ Ce(i);
|
|
101
|
+
E = i;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
for (var e = 0, i =
|
|
104
|
+
function xi(t = !0) {
|
|
105
|
+
for (var e = 0, i = E; ; ) {
|
|
106
106
|
if (i.nodeType === ni) {
|
|
107
107
|
var o = (
|
|
108
108
|
/** @type {Comment} */
|
|
@@ -111,19 +111,19 @@ function Ti(t = !0) {
|
|
|
111
111
|
if (o === mo) {
|
|
112
112
|
if (e === 0) return i;
|
|
113
113
|
e -= 1;
|
|
114
|
-
} else (o === fo || o ===
|
|
114
|
+
} else (o === fo || o === Ei || // "[1", "[2", etc. for if blocks
|
|
115
115
|
o[0] === "[" && !isNaN(Number(o.slice(1)))) && (e += 1);
|
|
116
116
|
}
|
|
117
117
|
var s = (
|
|
118
118
|
/** @type {TemplateNode} */
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ Ce(i)
|
|
120
120
|
);
|
|
121
121
|
t && i.remove(), i = s;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function hn(t) {
|
|
125
125
|
if (!t || t.nodeType !== ni)
|
|
126
|
-
throw Li(),
|
|
126
|
+
throw Li(), Ot;
|
|
127
127
|
return (
|
|
128
128
|
/** @type {Comment} */
|
|
129
129
|
t.data
|
|
@@ -139,7 +139,7 @@ function yn(t) {
|
|
|
139
139
|
return !er(t, this.v);
|
|
140
140
|
}
|
|
141
141
|
let tr = !1, le = null;
|
|
142
|
-
function
|
|
142
|
+
function Nt(t) {
|
|
143
143
|
le = t;
|
|
144
144
|
}
|
|
145
145
|
function bn(t, e = !1, i) {
|
|
@@ -161,7 +161,7 @@ function vn(t) {
|
|
|
161
161
|
if (i !== null) {
|
|
162
162
|
e.e = null;
|
|
163
163
|
for (var o of i)
|
|
164
|
-
|
|
164
|
+
Gn(o);
|
|
165
165
|
}
|
|
166
166
|
return t !== void 0 && (e.x = t), e.i = !0, le = e.p, t ?? /** @type {T} */
|
|
167
167
|
{};
|
|
@@ -172,7 +172,7 @@ function wn() {
|
|
|
172
172
|
let ut = [];
|
|
173
173
|
function kn() {
|
|
174
174
|
var t = ut;
|
|
175
|
-
ut = [],
|
|
175
|
+
ut = [], js(t);
|
|
176
176
|
}
|
|
177
177
|
function qe(t) {
|
|
178
178
|
if (ut.length === 0 && !Wt) {
|
|
@@ -187,10 +187,10 @@ function ir() {
|
|
|
187
187
|
for (; ut.length > 0; )
|
|
188
188
|
kn();
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
var e =
|
|
190
|
+
function Tn(t) {
|
|
191
|
+
var e = R;
|
|
192
192
|
if (e === null)
|
|
193
|
-
return
|
|
193
|
+
return T.f |= ot, t;
|
|
194
194
|
if ((e.f & Ht) === 0 && (e.f & Jt) === 0)
|
|
195
195
|
throw t;
|
|
196
196
|
Mt(t, e);
|
|
@@ -212,77 +212,77 @@ function Mt(t, e) {
|
|
|
212
212
|
throw t;
|
|
213
213
|
}
|
|
214
214
|
const or = -7169;
|
|
215
|
-
function
|
|
215
|
+
function j(t, e) {
|
|
216
216
|
t.f = t.f & or | e;
|
|
217
217
|
}
|
|
218
218
|
function ho(t) {
|
|
219
|
-
(t.f & pe) !== 0 || t.deps === null ?
|
|
219
|
+
(t.f & pe) !== 0 || t.deps === null ? j(t, P) : j(t, Te);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function xn(t) {
|
|
222
222
|
if (t !== null)
|
|
223
223
|
for (const e of t)
|
|
224
|
-
(e.f & U) === 0 || (e.f & vt) === 0 || (e.f ^= vt,
|
|
224
|
+
(e.f & U) === 0 || (e.f & vt) === 0 || (e.f ^= vt, xn(
|
|
225
225
|
/** @type {Derived} */
|
|
226
226
|
e.deps
|
|
227
227
|
));
|
|
228
228
|
}
|
|
229
229
|
function Sn(t, e, i) {
|
|
230
|
-
(t.f & X) !== 0 ? e.add(t) : (t.f & Te) !== 0 && i.add(t),
|
|
230
|
+
(t.f & X) !== 0 ? e.add(t) : (t.f & Te) !== 0 && i.add(t), xn(t.deps), j(t, P);
|
|
231
231
|
}
|
|
232
232
|
const pi = /* @__PURE__ */ new Set();
|
|
233
|
-
let
|
|
234
|
-
var It,
|
|
235
|
-
const
|
|
233
|
+
let C = null, ve = null, Z = [], Oi = null, Qi = !1, Wt = !1;
|
|
234
|
+
var It, At, ft, Et, Qt, Zt, mt, He, Rt, Oe, Zi, eo, In;
|
|
235
|
+
const Ao = class Ao {
|
|
236
236
|
constructor() {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
k(this, Oe);
|
|
238
|
+
w(this, "committed", !1);
|
|
239
239
|
/**
|
|
240
240
|
* The current values of any sources that are updated in this batch
|
|
241
241
|
* They keys of this map are identical to `this.#previous`
|
|
242
242
|
* @type {Map<Source, any>}
|
|
243
243
|
*/
|
|
244
|
-
|
|
244
|
+
w(this, "current", /* @__PURE__ */ new Map());
|
|
245
245
|
/**
|
|
246
246
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
247
247
|
* They keys of this map are identical to `this.#current`
|
|
248
248
|
* @type {Map<Source, any>}
|
|
249
249
|
*/
|
|
250
|
-
|
|
250
|
+
w(this, "previous", /* @__PURE__ */ new Map());
|
|
251
251
|
/**
|
|
252
252
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
253
253
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
254
254
|
* @type {Set<() => void>}
|
|
255
255
|
*/
|
|
256
|
-
|
|
256
|
+
k(this, It, /* @__PURE__ */ new Set());
|
|
257
257
|
/**
|
|
258
258
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
259
259
|
* @type {Set<(batch: Batch) => void>}
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
k(this, At, /* @__PURE__ */ new Set());
|
|
262
262
|
/**
|
|
263
263
|
* The number of async effects that are currently in flight
|
|
264
264
|
*/
|
|
265
|
-
|
|
265
|
+
k(this, ft, 0);
|
|
266
266
|
/**
|
|
267
267
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
268
268
|
*/
|
|
269
|
-
|
|
269
|
+
k(this, Et, 0);
|
|
270
270
|
/**
|
|
271
271
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
272
272
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
273
273
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
274
274
|
*/
|
|
275
|
-
|
|
275
|
+
k(this, Qt, null);
|
|
276
276
|
/**
|
|
277
277
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
278
278
|
* @type {Set<Effect>}
|
|
279
279
|
*/
|
|
280
|
-
|
|
280
|
+
k(this, Zt, /* @__PURE__ */ new Set());
|
|
281
281
|
/**
|
|
282
282
|
* Deferred effects that are MAYBE_DIRTY
|
|
283
283
|
* @type {Set<Effect>}
|
|
284
284
|
*/
|
|
285
|
-
|
|
285
|
+
k(this, mt, /* @__PURE__ */ new Set());
|
|
286
286
|
/**
|
|
287
287
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
288
288
|
* is committed — we skip over these during `process`.
|
|
@@ -290,19 +290,19 @@ const Eo = class Eo {
|
|
|
290
290
|
* so they can be rescheduled if the branch survives.
|
|
291
291
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
292
292
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
k(this, He, /* @__PURE__ */ new Map());
|
|
294
|
+
w(this, "is_fork", !1);
|
|
295
|
+
k(this, Rt, !1);
|
|
296
296
|
}
|
|
297
297
|
is_deferred() {
|
|
298
|
-
return this.is_fork ||
|
|
298
|
+
return this.is_fork || u(this, Et) > 0;
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
301
|
* Add an effect to the #skipped_branches map and reset its children
|
|
302
302
|
* @param {Effect} effect
|
|
303
303
|
*/
|
|
304
304
|
skip_effect(e) {
|
|
305
|
-
|
|
305
|
+
u(this, He).has(e) || u(this, He).set(e, { d: [], m: [] });
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
308
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -310,13 +310,13 @@ const Eo = class Eo {
|
|
|
310
310
|
* @param {Effect} effect
|
|
311
311
|
*/
|
|
312
312
|
unskip_effect(e) {
|
|
313
|
-
var i =
|
|
313
|
+
var i = u(this, He).get(e);
|
|
314
314
|
if (i) {
|
|
315
|
-
|
|
315
|
+
u(this, He).delete(e);
|
|
316
316
|
for (var o of i.d)
|
|
317
|
-
|
|
317
|
+
j(o, X), we(o);
|
|
318
318
|
for (o of i.m)
|
|
319
|
-
|
|
319
|
+
j(o, Te), we(o);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
@@ -327,16 +327,16 @@ const Eo = class Eo {
|
|
|
327
327
|
Z = [], this.apply();
|
|
328
328
|
var i = [], o = [];
|
|
329
329
|
for (const s of e)
|
|
330
|
-
q(this,
|
|
330
|
+
q(this, Oe, Zi).call(this, s, i, o);
|
|
331
331
|
if (this.is_deferred()) {
|
|
332
|
-
q(this,
|
|
333
|
-
for (const [s, n] of
|
|
334
|
-
|
|
332
|
+
q(this, Oe, eo).call(this, o), q(this, Oe, eo).call(this, i);
|
|
333
|
+
for (const [s, n] of u(this, He))
|
|
334
|
+
$n(s, n);
|
|
335
335
|
} else {
|
|
336
|
-
for (const s of
|
|
337
|
-
|
|
336
|
+
for (const s of u(this, It)) s();
|
|
337
|
+
u(this, It).clear(), u(this, ft) === 0 && q(this, Oe, In).call(this), C = null, Ho(o), Ho(i), u(this, Qt)?.resolve();
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
ve = null;
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* Associate a change to a given source with the current
|
|
@@ -345,72 +345,72 @@ const Eo = class Eo {
|
|
|
345
345
|
* @param {any} value
|
|
346
346
|
*/
|
|
347
347
|
capture(e, i) {
|
|
348
|
-
i !==
|
|
348
|
+
i !== G && !this.previous.has(e) && this.previous.set(e, i), (e.f & ot) === 0 && (this.current.set(e, e.v), ve?.set(e, e.v));
|
|
349
349
|
}
|
|
350
350
|
activate() {
|
|
351
|
-
|
|
351
|
+
C = this, this.apply();
|
|
352
352
|
}
|
|
353
353
|
deactivate() {
|
|
354
|
-
|
|
354
|
+
C === this && (C = null, ve = null);
|
|
355
355
|
}
|
|
356
356
|
flush() {
|
|
357
357
|
if (this.activate(), Z.length > 0) {
|
|
358
|
-
if (
|
|
358
|
+
if (An(), C !== null && C !== this)
|
|
359
359
|
return;
|
|
360
|
-
} else
|
|
360
|
+
} else u(this, ft) === 0 && this.process([]);
|
|
361
361
|
this.deactivate();
|
|
362
362
|
}
|
|
363
363
|
discard() {
|
|
364
|
-
for (const e of
|
|
365
|
-
|
|
364
|
+
for (const e of u(this, At)) e(this);
|
|
365
|
+
u(this, At).clear();
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
368
368
|
*
|
|
369
369
|
* @param {boolean} blocking
|
|
370
370
|
*/
|
|
371
371
|
increment(e) {
|
|
372
|
-
b(this, ft,
|
|
372
|
+
b(this, ft, u(this, ft) + 1), e && b(this, Et, u(this, Et) + 1);
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
*
|
|
376
376
|
* @param {boolean} blocking
|
|
377
377
|
*/
|
|
378
378
|
decrement(e) {
|
|
379
|
-
b(this, ft,
|
|
380
|
-
b(this,
|
|
379
|
+
b(this, ft, u(this, ft) - 1), e && b(this, Et, u(this, Et) - 1), !u(this, Rt) && (b(this, Rt, !0), qe(() => {
|
|
380
|
+
b(this, Rt, !1), this.is_deferred() ? Z.length > 0 && this.flush() : this.revive();
|
|
381
381
|
}));
|
|
382
382
|
}
|
|
383
383
|
revive() {
|
|
384
|
-
for (const e of
|
|
385
|
-
|
|
386
|
-
for (const e of
|
|
387
|
-
|
|
384
|
+
for (const e of u(this, Zt))
|
|
385
|
+
u(this, mt).delete(e), j(e, X), we(e);
|
|
386
|
+
for (const e of u(this, mt))
|
|
387
|
+
j(e, Te), we(e);
|
|
388
388
|
this.flush();
|
|
389
389
|
}
|
|
390
390
|
/** @param {() => void} fn */
|
|
391
391
|
oncommit(e) {
|
|
392
|
-
|
|
392
|
+
u(this, It).add(e);
|
|
393
393
|
}
|
|
394
394
|
/** @param {(batch: Batch) => void} fn */
|
|
395
395
|
ondiscard(e) {
|
|
396
|
-
|
|
396
|
+
u(this, At).add(e);
|
|
397
397
|
}
|
|
398
398
|
settled() {
|
|
399
|
-
return (
|
|
399
|
+
return (u(this, Qt) ?? b(this, Qt, fn())).promise;
|
|
400
400
|
}
|
|
401
401
|
static ensure() {
|
|
402
|
-
if (
|
|
403
|
-
const e =
|
|
404
|
-
pi.add(
|
|
405
|
-
|
|
402
|
+
if (C === null) {
|
|
403
|
+
const e = C = new Ao();
|
|
404
|
+
pi.add(C), Wt || qe(() => {
|
|
405
|
+
C === e && e.flush();
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return C;
|
|
409
409
|
}
|
|
410
410
|
apply() {
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
It = new WeakMap(),
|
|
413
|
+
It = new WeakMap(), At = new WeakMap(), ft = new WeakMap(), Et = new WeakMap(), Qt = new WeakMap(), Zt = new WeakMap(), mt = new WeakMap(), He = new WeakMap(), Rt = new WeakMap(), Oe = new WeakSet(), /**
|
|
414
414
|
* Traverse the effect tree, executing effects or stashing
|
|
415
415
|
* them for later execution as appropriate
|
|
416
416
|
* @param {Effect} root
|
|
@@ -420,9 +420,9 @@ It = new WeakMap(), Et = new WeakMap(), ft = new WeakMap(), At = new WeakMap(),
|
|
|
420
420
|
Zi = function(e, i, o) {
|
|
421
421
|
e.f ^= P;
|
|
422
422
|
for (var s = e.first, n = null; s !== null; ) {
|
|
423
|
-
var r = s.f, a = (r & (
|
|
424
|
-
if (!
|
|
425
|
-
a ? s.f ^= P : n !== null && (r & (Jt |
|
|
423
|
+
var r = s.f, a = (r & (xe | rt)) !== 0, l = a && (r & P) !== 0, c = l || (r & re) !== 0 || u(this, He).has(s);
|
|
424
|
+
if (!c && s.fn !== null) {
|
|
425
|
+
a ? s.f ^= P : n !== null && (r & (Jt | $i | mn)) !== 0 ? n.b.defer_effect(s) : (r & Jt) !== 0 ? i.push(s) : si(s) && ((r & Ye) !== 0 && u(this, mt).add(s), Pt(s));
|
|
426
426
|
var d = s.first;
|
|
427
427
|
if (d !== null) {
|
|
428
428
|
s = d;
|
|
@@ -431,9 +431,9 @@ Zi = function(e, i, o) {
|
|
|
431
431
|
}
|
|
432
432
|
for (; s !== null; ) {
|
|
433
433
|
s === n && (n = null);
|
|
434
|
-
var
|
|
435
|
-
if (
|
|
436
|
-
s =
|
|
434
|
+
var h = s.next;
|
|
435
|
+
if (h !== null) {
|
|
436
|
+
s = h;
|
|
437
437
|
break;
|
|
438
438
|
}
|
|
439
439
|
s = s.parent;
|
|
@@ -444,22 +444,22 @@ Zi = function(e, i, o) {
|
|
|
444
444
|
*/
|
|
445
445
|
eo = function(e) {
|
|
446
446
|
for (var i = 0; i < e.length; i += 1)
|
|
447
|
-
Sn(e[i],
|
|
447
|
+
Sn(e[i], u(this, Zt), u(this, mt));
|
|
448
448
|
}, In = function() {
|
|
449
449
|
var s;
|
|
450
450
|
if (pi.size > 1) {
|
|
451
451
|
this.previous.clear();
|
|
452
|
-
var e =
|
|
452
|
+
var e = ve, i = !0;
|
|
453
453
|
for (const n of pi) {
|
|
454
454
|
if (n === this) {
|
|
455
455
|
i = !1;
|
|
456
456
|
continue;
|
|
457
457
|
}
|
|
458
458
|
const r = [];
|
|
459
|
-
for (const [l,
|
|
459
|
+
for (const [l, c] of this.current) {
|
|
460
460
|
if (n.current.has(l))
|
|
461
|
-
if (i &&
|
|
462
|
-
n.current.set(l,
|
|
461
|
+
if (i && c !== n.current.get(l))
|
|
462
|
+
n.current.set(l, c);
|
|
463
463
|
else
|
|
464
464
|
continue;
|
|
465
465
|
r.push(l);
|
|
@@ -470,38 +470,38 @@ eo = function(e) {
|
|
|
470
470
|
if (a.length > 0) {
|
|
471
471
|
var o = Z;
|
|
472
472
|
Z = [];
|
|
473
|
-
const l = /* @__PURE__ */ new Set(),
|
|
473
|
+
const l = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
474
474
|
for (const d of r)
|
|
475
|
-
|
|
475
|
+
En(d, a, l, c);
|
|
476
476
|
if (Z.length > 0) {
|
|
477
|
-
|
|
477
|
+
C = n, n.apply();
|
|
478
478
|
for (const d of Z)
|
|
479
|
-
q(s = n,
|
|
479
|
+
q(s = n, Oe, Zi).call(s, d, [], []);
|
|
480
480
|
n.deactivate();
|
|
481
481
|
}
|
|
482
482
|
Z = o;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
|
|
485
|
+
C = null, ve = e;
|
|
486
486
|
}
|
|
487
487
|
this.committed = !0, pi.delete(this);
|
|
488
488
|
};
|
|
489
|
-
let Je =
|
|
489
|
+
let Je = Ao;
|
|
490
490
|
function to(t) {
|
|
491
491
|
var e = Wt;
|
|
492
492
|
Wt = !0;
|
|
493
493
|
try {
|
|
494
494
|
for (var i; ; ) {
|
|
495
|
-
if (ir(), Z.length === 0 && (
|
|
496
|
-
return
|
|
495
|
+
if (ir(), Z.length === 0 && (C?.flush(), Z.length === 0))
|
|
496
|
+
return Oi = null, /** @type {T} */
|
|
497
497
|
i;
|
|
498
|
-
|
|
498
|
+
An();
|
|
499
499
|
}
|
|
500
500
|
} finally {
|
|
501
501
|
Wt = e;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function An() {
|
|
505
505
|
Qi = !0;
|
|
506
506
|
var t = null;
|
|
507
507
|
try {
|
|
@@ -514,14 +514,14 @@ function En() {
|
|
|
514
514
|
i.process(Z), nt.clear();
|
|
515
515
|
}
|
|
516
516
|
} finally {
|
|
517
|
-
Z = [], Qi = !1,
|
|
517
|
+
Z = [], Qi = !1, Oi = null;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function nr() {
|
|
521
521
|
try {
|
|
522
522
|
Xs();
|
|
523
523
|
} catch (t) {
|
|
524
|
-
Mt(t,
|
|
524
|
+
Mt(t, Oi);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
let Pe = null;
|
|
@@ -549,30 +549,30 @@ function Ho(t) {
|
|
|
549
549
|
Pe = null;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function En(t, e, i, o) {
|
|
553
553
|
if (!i.has(t) && (i.add(t), t.reactions !== null))
|
|
554
554
|
for (const s of t.reactions) {
|
|
555
555
|
const n = s.f;
|
|
556
|
-
(n & U) !== 0 ?
|
|
556
|
+
(n & U) !== 0 ? En(
|
|
557
557
|
/** @type {Derived} */
|
|
558
558
|
s,
|
|
559
559
|
e,
|
|
560
560
|
i,
|
|
561
561
|
o
|
|
562
|
-
) : (n & (_o | Ye)) !== 0 && (n & X) === 0 &&
|
|
562
|
+
) : (n & (_o | Ye)) !== 0 && (n & X) === 0 && Rn(s, e, o) && (j(s, X), we(
|
|
563
563
|
/** @type {Effect} */
|
|
564
564
|
s
|
|
565
565
|
));
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Rn(t, e, i) {
|
|
569
569
|
const o = i.get(t);
|
|
570
570
|
if (o !== void 0) return o;
|
|
571
571
|
if (t.deps !== null)
|
|
572
572
|
for (const s of t.deps) {
|
|
573
|
-
if (
|
|
573
|
+
if (Ct.call(e, s))
|
|
574
574
|
return !0;
|
|
575
|
-
if ((s.f & U) !== 0 &&
|
|
575
|
+
if ((s.f & U) !== 0 && Rn(
|
|
576
576
|
/** @type {Derived} */
|
|
577
577
|
s,
|
|
578
578
|
e,
|
|
@@ -586,41 +586,41 @@ function $n(t, e, i) {
|
|
|
586
586
|
}
|
|
587
587
|
return i.set(t, !1), !1;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
for (var e =
|
|
589
|
+
function we(t) {
|
|
590
|
+
for (var e = Oi = t; e.parent !== null; ) {
|
|
591
591
|
e = e.parent;
|
|
592
592
|
var i = e.f;
|
|
593
|
-
if (Qi && e ===
|
|
593
|
+
if (Qi && e === R && (i & Ye) !== 0 && (i & _n) === 0)
|
|
594
594
|
return;
|
|
595
|
-
if ((i & (rt |
|
|
595
|
+
if ((i & (rt | xe)) !== 0) {
|
|
596
596
|
if ((i & P) === 0) return;
|
|
597
597
|
e.f ^= P;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
Z.push(e);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
if (!((t.f &
|
|
604
|
-
(t.f & X) !== 0 ? e.d.push(t) : (t.f & Te) !== 0 && e.m.push(t),
|
|
602
|
+
function $n(t, e) {
|
|
603
|
+
if (!((t.f & xe) !== 0 && (t.f & P) !== 0)) {
|
|
604
|
+
(t.f & X) !== 0 ? e.d.push(t) : (t.f & Te) !== 0 && e.m.push(t), j(t, P);
|
|
605
605
|
for (var i = t.first; i !== null; )
|
|
606
|
-
|
|
606
|
+
$n(i, e), i = i.next;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
function sr(t) {
|
|
610
610
|
let e = 0, i = wt(0), o;
|
|
611
611
|
return () => {
|
|
612
|
-
vo() && (
|
|
612
|
+
vo() && (m(i), wo(() => (e === 0 && (o = So(() => t(() => qt(i)))), e += 1, () => {
|
|
613
613
|
qe(() => {
|
|
614
614
|
e -= 1, e === 0 && (o?.(), o = void 0, qt(i));
|
|
615
615
|
});
|
|
616
616
|
})));
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
var rr =
|
|
619
|
+
var rr = jt | Tt;
|
|
620
620
|
function lr(t, e, i) {
|
|
621
621
|
new ar(t, e, i);
|
|
622
622
|
}
|
|
623
|
-
var ue, ei, Be, _t,
|
|
623
|
+
var ue, ei, Be, _t, Ee, Re, ne, $e, Fe, ht, tt, $t, Lt, zt, Ge, Ii, W, Ln, zn, io, yi, oo;
|
|
624
624
|
class ar {
|
|
625
625
|
/**
|
|
626
626
|
* @param {TemplateNode} node
|
|
@@ -628,35 +628,35 @@ class ar {
|
|
|
628
628
|
* @param {((anchor: Node) => void)} children
|
|
629
629
|
*/
|
|
630
630
|
constructor(e, i, o) {
|
|
631
|
-
|
|
631
|
+
k(this, W);
|
|
632
632
|
/** @type {Boundary | null} */
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
w(this, "parent");
|
|
634
|
+
w(this, "is_pending", !1);
|
|
635
635
|
/** @type {TemplateNode} */
|
|
636
|
-
|
|
636
|
+
k(this, ue);
|
|
637
637
|
/** @type {TemplateNode | null} */
|
|
638
|
-
|
|
638
|
+
k(this, ei, A ? E : null);
|
|
639
639
|
/** @type {BoundaryProps} */
|
|
640
|
-
|
|
640
|
+
k(this, Be);
|
|
641
641
|
/** @type {((anchor: Node) => void)} */
|
|
642
|
-
|
|
642
|
+
k(this, _t);
|
|
643
643
|
/** @type {Effect} */
|
|
644
|
-
|
|
644
|
+
k(this, Ee);
|
|
645
645
|
/** @type {Effect | null} */
|
|
646
|
-
|
|
646
|
+
k(this, Re, null);
|
|
647
647
|
/** @type {Effect | null} */
|
|
648
|
-
|
|
648
|
+
k(this, ne, null);
|
|
649
649
|
/** @type {Effect | null} */
|
|
650
|
-
|
|
650
|
+
k(this, $e, null);
|
|
651
651
|
/** @type {DocumentFragment | null} */
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
652
|
+
k(this, Fe, null);
|
|
653
|
+
k(this, ht, 0);
|
|
654
|
+
k(this, tt, 0);
|
|
655
|
+
k(this, $t, !1);
|
|
656
656
|
/** @type {Set<Effect>} */
|
|
657
|
-
|
|
657
|
+
k(this, Lt, /* @__PURE__ */ new Set());
|
|
658
658
|
/** @type {Set<Effect>} */
|
|
659
|
-
|
|
659
|
+
k(this, zt, /* @__PURE__ */ new Set());
|
|
660
660
|
/**
|
|
661
661
|
* A source containing the number of pending async deriveds/expressions.
|
|
662
662
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -664,34 +664,34 @@ class ar {
|
|
|
664
664
|
* calls followed by no-op flushes
|
|
665
665
|
* @type {Source<number> | null}
|
|
666
666
|
*/
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
b(this,
|
|
667
|
+
k(this, Ge, null);
|
|
668
|
+
k(this, Ii, sr(() => (b(this, Ge, wt(u(this, ht))), () => {
|
|
669
|
+
b(this, Ge, null);
|
|
670
670
|
})));
|
|
671
671
|
b(this, ue, e), b(this, Be, i), b(this, _t, (s) => {
|
|
672
672
|
var n = (
|
|
673
673
|
/** @type {Effect} */
|
|
674
|
-
|
|
674
|
+
R
|
|
675
675
|
);
|
|
676
676
|
n.b = this, n.f |= Ji, o(s);
|
|
677
677
|
}), this.parent = /** @type {Effect} */
|
|
678
|
-
|
|
679
|
-
if (
|
|
678
|
+
R.b, b(this, Ee, ko(() => {
|
|
679
|
+
if (A) {
|
|
680
680
|
const s = (
|
|
681
681
|
/** @type {Comment} */
|
|
682
|
-
|
|
682
|
+
u(this, ei)
|
|
683
683
|
);
|
|
684
|
-
zi(), s.data ===
|
|
684
|
+
zi(), s.data === Ei ? q(this, W, zn).call(this) : q(this, W, Ln).call(this);
|
|
685
685
|
} else
|
|
686
686
|
q(this, W, io).call(this);
|
|
687
|
-
}, rr)),
|
|
687
|
+
}, rr)), A && b(this, ue, E);
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
690
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
691
691
|
* @param {Effect} effect
|
|
692
692
|
*/
|
|
693
693
|
defer_effect(e) {
|
|
694
|
-
Sn(e,
|
|
694
|
+
Sn(e, u(this, Lt), u(this, zt));
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -701,7 +701,7 @@ class ar {
|
|
|
701
701
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
702
702
|
}
|
|
703
703
|
has_pending_snippet() {
|
|
704
|
-
return !!
|
|
704
|
+
return !!u(this, Be).pending;
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -710,34 +710,34 @@ class ar {
|
|
|
710
710
|
* @param {1 | -1} d
|
|
711
711
|
*/
|
|
712
712
|
update_pending_count(e) {
|
|
713
|
-
q(this, W, oo).call(this, e), b(this, ht,
|
|
714
|
-
b(this,
|
|
713
|
+
q(this, W, oo).call(this, e), b(this, ht, u(this, ht) + e), !(!u(this, Ge) || u(this, $t)) && (b(this, $t, !0), qe(() => {
|
|
714
|
+
b(this, $t, !1), u(this, Ge) && Vt(u(this, Ge), u(this, ht));
|
|
715
715
|
}));
|
|
716
716
|
}
|
|
717
717
|
get_effect_pending() {
|
|
718
|
-
return
|
|
718
|
+
return u(this, Ii).call(this), m(
|
|
719
719
|
/** @type {Source<number>} */
|
|
720
|
-
|
|
720
|
+
u(this, Ge)
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
723
|
/** @param {unknown} error */
|
|
724
724
|
error(e) {
|
|
725
|
-
var i =
|
|
726
|
-
let o =
|
|
725
|
+
var i = u(this, Be).onerror;
|
|
726
|
+
let o = u(this, Be).failed;
|
|
727
727
|
if (!i && !o)
|
|
728
728
|
throw e;
|
|
729
|
-
|
|
729
|
+
u(this, Re) && (Y(u(this, Re)), b(this, Re, null)), u(this, ne) && (Y(u(this, ne)), b(this, ne, null)), u(this, $e) && (Y(u(this, $e)), b(this, $e, null)), A && (J(
|
|
730
730
|
/** @type {TemplateNode} */
|
|
731
|
-
|
|
732
|
-
), Zs(), J(
|
|
731
|
+
u(this, ei)
|
|
732
|
+
), Zs(), J(xi()));
|
|
733
733
|
var s = !1, n = !1;
|
|
734
734
|
const r = () => {
|
|
735
735
|
if (s) {
|
|
736
736
|
Qs();
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
|
-
s = !0, n && Ys(),
|
|
740
|
-
b(this,
|
|
739
|
+
s = !0, n && Ys(), u(this, $e) !== null && yt(u(this, $e), () => {
|
|
740
|
+
b(this, $e, null);
|
|
741
741
|
}), q(this, W, yi).call(this, () => {
|
|
742
742
|
Je.ensure(), q(this, W, io).call(this);
|
|
743
743
|
});
|
|
@@ -746,18 +746,18 @@ class ar {
|
|
|
746
746
|
try {
|
|
747
747
|
n = !0, i?.(e, r), n = !1;
|
|
748
748
|
} catch (a) {
|
|
749
|
-
Mt(a,
|
|
749
|
+
Mt(a, u(this, Ee) && u(this, Ee).parent);
|
|
750
750
|
}
|
|
751
|
-
o && b(this,
|
|
751
|
+
o && b(this, $e, q(this, W, yi).call(this, () => {
|
|
752
752
|
Je.ensure();
|
|
753
753
|
try {
|
|
754
|
-
return
|
|
754
|
+
return be(() => {
|
|
755
755
|
var a = (
|
|
756
756
|
/** @type {Effect} */
|
|
757
|
-
|
|
757
|
+
R
|
|
758
758
|
);
|
|
759
759
|
a.b = this, a.f |= Ji, o(
|
|
760
|
-
|
|
760
|
+
u(this, ue),
|
|
761
761
|
() => e,
|
|
762
762
|
() => r
|
|
763
763
|
);
|
|
@@ -766,26 +766,26 @@ class ar {
|
|
|
766
766
|
return Mt(
|
|
767
767
|
a,
|
|
768
768
|
/** @type {Effect} */
|
|
769
|
-
|
|
769
|
+
u(this, Ee).parent
|
|
770
770
|
), null;
|
|
771
771
|
}
|
|
772
772
|
}));
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
ue = new WeakMap(), ei = new WeakMap(), Be = new WeakMap(), _t = new WeakMap(),
|
|
776
|
+
ue = new WeakMap(), ei = new WeakMap(), Be = new WeakMap(), _t = new WeakMap(), Ee = new WeakMap(), Re = new WeakMap(), ne = new WeakMap(), $e = new WeakMap(), Fe = new WeakMap(), ht = new WeakMap(), tt = new WeakMap(), $t = new WeakMap(), Lt = new WeakMap(), zt = new WeakMap(), Ge = new WeakMap(), Ii = new WeakMap(), W = new WeakSet(), Ln = function() {
|
|
777
777
|
try {
|
|
778
|
-
b(this,
|
|
778
|
+
b(this, Re, be(() => u(this, _t).call(this, u(this, ue))));
|
|
779
779
|
} catch (e) {
|
|
780
780
|
this.error(e);
|
|
781
781
|
}
|
|
782
782
|
}, zn = function() {
|
|
783
|
-
const e =
|
|
784
|
-
e && (this.is_pending = !0, b(this, ne,
|
|
785
|
-
var i = b(this,
|
|
786
|
-
i.append(o), b(this,
|
|
783
|
+
const e = u(this, Be).pending;
|
|
784
|
+
e && (this.is_pending = !0, b(this, ne, be(() => e(u(this, ue)))), qe(() => {
|
|
785
|
+
var i = b(this, Fe, document.createDocumentFragment()), o = te();
|
|
786
|
+
i.append(o), b(this, Re, q(this, W, yi).call(this, () => (Je.ensure(), be(() => u(this, _t).call(this, o))))), u(this, tt) === 0 && (u(this, ue).before(i), b(this, Fe, null), yt(
|
|
787
787
|
/** @type {Effect} */
|
|
788
|
-
|
|
788
|
+
u(this, ne),
|
|
789
789
|
() => {
|
|
790
790
|
b(this, ne, null);
|
|
791
791
|
}
|
|
@@ -793,16 +793,16 @@ ue = new WeakMap(), ei = new WeakMap(), Be = new WeakMap(), _t = new WeakMap(),
|
|
|
793
793
|
}));
|
|
794
794
|
}, io = function() {
|
|
795
795
|
try {
|
|
796
|
-
if (this.is_pending = this.has_pending_snippet(), b(this, tt, 0), b(this, ht, 0), b(this,
|
|
797
|
-
|
|
798
|
-
})),
|
|
799
|
-
var e = b(this,
|
|
800
|
-
Jn(
|
|
796
|
+
if (this.is_pending = this.has_pending_snippet(), b(this, tt, 0), b(this, ht, 0), b(this, Re, be(() => {
|
|
797
|
+
u(this, _t).call(this, u(this, ue));
|
|
798
|
+
})), u(this, tt) > 0) {
|
|
799
|
+
var e = b(this, Fe, document.createDocumentFragment());
|
|
800
|
+
Jn(u(this, Re), e);
|
|
801
801
|
const i = (
|
|
802
802
|
/** @type {(anchor: Node) => void} */
|
|
803
|
-
|
|
803
|
+
u(this, Be).pending
|
|
804
804
|
);
|
|
805
|
-
b(this, ne,
|
|
805
|
+
b(this, ne, be(() => i(u(this, ue))));
|
|
806
806
|
} else
|
|
807
807
|
this.is_pending = !1;
|
|
808
808
|
} catch (i) {
|
|
@@ -813,14 +813,14 @@ ue = new WeakMap(), ei = new WeakMap(), Be = new WeakMap(), _t = new WeakMap(),
|
|
|
813
813
|
* @param {() => T} fn
|
|
814
814
|
*/
|
|
815
815
|
yi = function(e) {
|
|
816
|
-
var i =
|
|
817
|
-
ze(
|
|
816
|
+
var i = R, o = T, s = le;
|
|
817
|
+
ze(u(this, Ee)), me(u(this, Ee)), Nt(u(this, Ee).ctx);
|
|
818
818
|
try {
|
|
819
819
|
return e();
|
|
820
820
|
} catch (n) {
|
|
821
|
-
return
|
|
821
|
+
return Tn(n), null;
|
|
822
822
|
} finally {
|
|
823
|
-
ze(i), me(o),
|
|
823
|
+
ze(i), me(o), Nt(s);
|
|
824
824
|
}
|
|
825
825
|
}, /**
|
|
826
826
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -833,62 +833,62 @@ oo = function(e) {
|
|
|
833
833
|
this.parent && q(i = this.parent, W, oo).call(i, e);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
if (b(this, tt,
|
|
836
|
+
if (b(this, tt, u(this, tt) + e), u(this, tt) === 0) {
|
|
837
837
|
this.is_pending = !1;
|
|
838
|
-
for (const o of
|
|
839
|
-
|
|
840
|
-
for (const o of
|
|
841
|
-
|
|
842
|
-
|
|
838
|
+
for (const o of u(this, Lt))
|
|
839
|
+
j(o, X), we(o);
|
|
840
|
+
for (const o of u(this, zt))
|
|
841
|
+
j(o, Te), we(o);
|
|
842
|
+
u(this, Lt).clear(), u(this, zt).clear(), u(this, ne) && yt(u(this, ne), () => {
|
|
843
843
|
b(this, ne, null);
|
|
844
|
-
}),
|
|
844
|
+
}), u(this, Fe) && (u(this, ue).before(u(this, Fe)), b(this, Fe, null));
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
function cr(t, e, i, o) {
|
|
848
|
-
const s =
|
|
848
|
+
const s = Ci;
|
|
849
849
|
var n = t.filter((p) => !p.settled);
|
|
850
850
|
if (i.length === 0 && n.length === 0) {
|
|
851
851
|
o(e.map(s));
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
|
-
var r =
|
|
854
|
+
var r = C, a = (
|
|
855
855
|
/** @type {Effect} */
|
|
856
|
-
|
|
857
|
-
), l = ur(),
|
|
856
|
+
R
|
|
857
|
+
), l = ur(), c = n.length === 1 ? n[0].promise : n.length > 1 ? Promise.all(n.map((p) => p.promise)) : null;
|
|
858
858
|
function d(p) {
|
|
859
859
|
l();
|
|
860
860
|
try {
|
|
861
861
|
o(p);
|
|
862
|
-
} catch (
|
|
863
|
-
(a.f & We) === 0 && Mt(
|
|
862
|
+
} catch (_) {
|
|
863
|
+
(a.f & We) === 0 && Mt(_, a);
|
|
864
864
|
}
|
|
865
865
|
r?.deactivate(), no();
|
|
866
866
|
}
|
|
867
867
|
if (i.length === 0) {
|
|
868
|
-
|
|
868
|
+
c.then(() => d(e.map(s)));
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function h() {
|
|
872
872
|
l(), Promise.all(i.map((p) => /* @__PURE__ */ dr(p))).then((p) => d([...e.map(s), ...p])).catch((p) => Mt(p, a));
|
|
873
873
|
}
|
|
874
|
-
|
|
874
|
+
c ? c.then(h) : h();
|
|
875
875
|
}
|
|
876
876
|
function ur() {
|
|
877
|
-
var t =
|
|
877
|
+
var t = R, e = T, i = le, o = C;
|
|
878
878
|
return function(n = !0) {
|
|
879
|
-
ze(t), me(e),
|
|
879
|
+
ze(t), me(e), Nt(i), n && o?.activate();
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
function no() {
|
|
883
|
-
ze(null), me(null),
|
|
883
|
+
ze(null), me(null), Nt(null);
|
|
884
884
|
}
|
|
885
885
|
// @__NO_SIDE_EFFECTS__
|
|
886
|
-
function
|
|
887
|
-
var e = U | X, i =
|
|
886
|
+
function Ci(t) {
|
|
887
|
+
var e = U | X, i = T !== null && (T.f & U) !== 0 ? (
|
|
888
888
|
/** @type {Derived} */
|
|
889
|
-
|
|
889
|
+
T
|
|
890
890
|
) : null;
|
|
891
|
-
return
|
|
891
|
+
return R !== null && (R.f |= Tt), {
|
|
892
892
|
ctx: le,
|
|
893
893
|
deps: null,
|
|
894
894
|
effects: null,
|
|
@@ -899,10 +899,10 @@ function Oi(t) {
|
|
|
899
899
|
rv: 0,
|
|
900
900
|
v: (
|
|
901
901
|
/** @type {V} */
|
|
902
|
-
|
|
902
|
+
G
|
|
903
903
|
),
|
|
904
904
|
wv: 0,
|
|
905
|
-
parent: i ??
|
|
905
|
+
parent: i ?? R,
|
|
906
906
|
ac: null
|
|
907
907
|
};
|
|
908
908
|
}
|
|
@@ -910,7 +910,7 @@ function Oi(t) {
|
|
|
910
910
|
function dr(t, e, i) {
|
|
911
911
|
let o = (
|
|
912
912
|
/** @type {Effect | null} */
|
|
913
|
-
|
|
913
|
+
R
|
|
914
914
|
);
|
|
915
915
|
o === null && Hs();
|
|
916
916
|
var s = (
|
|
@@ -922,60 +922,60 @@ function dr(t, e, i) {
|
|
|
922
922
|
void 0
|
|
923
923
|
), r = wt(
|
|
924
924
|
/** @type {V} */
|
|
925
|
-
|
|
926
|
-
), a = !
|
|
925
|
+
G
|
|
926
|
+
), a = !T, l = /* @__PURE__ */ new Map();
|
|
927
927
|
return kr(() => {
|
|
928
|
-
var
|
|
929
|
-
n =
|
|
928
|
+
var c = fn();
|
|
929
|
+
n = c.promise;
|
|
930
930
|
try {
|
|
931
|
-
Promise.resolve(t()).then(
|
|
932
|
-
d ===
|
|
931
|
+
Promise.resolve(t()).then(c.resolve, c.reject).then(() => {
|
|
932
|
+
d === C && d.committed && d.deactivate(), no();
|
|
933
933
|
});
|
|
934
|
-
} catch (
|
|
935
|
-
|
|
934
|
+
} catch (_) {
|
|
935
|
+
c.reject(_), no();
|
|
936
936
|
}
|
|
937
937
|
var d = (
|
|
938
938
|
/** @type {Batch} */
|
|
939
|
-
|
|
939
|
+
C
|
|
940
940
|
);
|
|
941
941
|
if (a) {
|
|
942
|
-
var
|
|
943
|
-
s.update_pending_count(1), d.increment(
|
|
942
|
+
var h = s.is_rendered();
|
|
943
|
+
s.update_pending_count(1), d.increment(h), l.get(d)?.reject(ct), l.delete(d), l.set(d, c);
|
|
944
944
|
}
|
|
945
|
-
const p = (
|
|
945
|
+
const p = (_, g = void 0) => {
|
|
946
946
|
if (d.activate(), g)
|
|
947
|
-
g !== ct && (r.f |= ot,
|
|
947
|
+
g !== ct && (r.f |= ot, Vt(r, g));
|
|
948
948
|
else {
|
|
949
|
-
(r.f & ot) !== 0 && (r.f ^= ot),
|
|
950
|
-
for (const [
|
|
951
|
-
if (l.delete(
|
|
952
|
-
|
|
949
|
+
(r.f & ot) !== 0 && (r.f ^= ot), Vt(r, _);
|
|
950
|
+
for (const [v, f] of l) {
|
|
951
|
+
if (l.delete(v), v === d) break;
|
|
952
|
+
f.reject(ct);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
a && (s.update_pending_count(-1), d.decrement(
|
|
955
|
+
a && (s.update_pending_count(-1), d.decrement(h));
|
|
956
956
|
};
|
|
957
|
-
|
|
958
|
-
}),
|
|
959
|
-
for (const
|
|
960
|
-
|
|
961
|
-
}), new Promise((
|
|
962
|
-
function d(
|
|
957
|
+
c.promise.then(p, (_) => p(null, _ || "unknown"));
|
|
958
|
+
}), Fn(() => {
|
|
959
|
+
for (const c of l.values())
|
|
960
|
+
c.reject(ct);
|
|
961
|
+
}), new Promise((c) => {
|
|
962
|
+
function d(h) {
|
|
963
963
|
function p() {
|
|
964
|
-
|
|
964
|
+
h === n ? c(r) : d(n);
|
|
965
965
|
}
|
|
966
|
-
|
|
966
|
+
h.then(p, p);
|
|
967
967
|
}
|
|
968
968
|
d(n);
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
971
|
// @__NO_SIDE_EFFECTS__
|
|
972
972
|
function Ui(t) {
|
|
973
|
-
const e = /* @__PURE__ */
|
|
973
|
+
const e = /* @__PURE__ */ Ci(t);
|
|
974
974
|
return Yn(e), e;
|
|
975
975
|
}
|
|
976
976
|
// @__NO_SIDE_EFFECTS__
|
|
977
977
|
function pr(t) {
|
|
978
|
-
const e = /* @__PURE__ */
|
|
978
|
+
const e = /* @__PURE__ */ Ci(t);
|
|
979
979
|
return e.equals = yn, e;
|
|
980
980
|
}
|
|
981
981
|
function fr(t) {
|
|
@@ -1001,7 +1001,7 @@ function mr(t) {
|
|
|
1001
1001
|
return null;
|
|
1002
1002
|
}
|
|
1003
1003
|
function go(t) {
|
|
1004
|
-
var e, i =
|
|
1004
|
+
var e, i = R;
|
|
1005
1005
|
ze(mr(t));
|
|
1006
1006
|
try {
|
|
1007
1007
|
t.f &= ~vt, fr(t), e = ts(t);
|
|
@@ -1010,27 +1010,27 @@ function go(t) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
return e;
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function On(t) {
|
|
1014
1014
|
var e = go(t);
|
|
1015
|
-
if (!t.equals(e) && (t.wv = Zn(), (!
|
|
1016
|
-
|
|
1015
|
+
if (!t.equals(e) && (t.wv = Zn(), (!C?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
|
|
1016
|
+
j(t, P);
|
|
1017
1017
|
return;
|
|
1018
1018
|
}
|
|
1019
|
-
st || (
|
|
1019
|
+
st || (ve !== null ? (vo() || C?.is_fork) && ve.set(t, e) : ho(t));
|
|
1020
1020
|
}
|
|
1021
1021
|
function _r(t) {
|
|
1022
1022
|
if (t.effects !== null)
|
|
1023
1023
|
for (const e of t.effects)
|
|
1024
|
-
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(ct), e.teardown =
|
|
1024
|
+
(e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(ct), e.teardown = Cs, e.ac = null, Yt(e, 0), To(e));
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Cn(t) {
|
|
1027
1027
|
if (t.effects !== null)
|
|
1028
1028
|
for (const e of t.effects)
|
|
1029
1029
|
e.teardown && Pt(e);
|
|
1030
1030
|
}
|
|
1031
1031
|
let so = /* @__PURE__ */ new Set();
|
|
1032
1032
|
const nt = /* @__PURE__ */ new Map();
|
|
1033
|
-
let
|
|
1033
|
+
let jn = !1;
|
|
1034
1034
|
function wt(t, e) {
|
|
1035
1035
|
var i = {
|
|
1036
1036
|
f: 0,
|
|
@@ -1044,23 +1044,23 @@ function wt(t, e) {
|
|
|
1044
1044
|
return i;
|
|
1045
1045
|
}
|
|
1046
1046
|
// @__NO_SIDE_EFFECTS__
|
|
1047
|
-
function
|
|
1047
|
+
function N(t, e) {
|
|
1048
1048
|
const i = wt(t);
|
|
1049
1049
|
return Yn(i), i;
|
|
1050
1050
|
}
|
|
1051
1051
|
// @__NO_SIDE_EFFECTS__
|
|
1052
|
-
function
|
|
1052
|
+
function Nn(t, e = !1, i = !0) {
|
|
1053
1053
|
const o = wt(t);
|
|
1054
1054
|
return e || (o.equals = yn), o;
|
|
1055
1055
|
}
|
|
1056
1056
|
function M(t, e, i = !1) {
|
|
1057
|
-
|
|
1057
|
+
T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1058
1058
|
// to ensure we error if state is set inside an inspect effect
|
|
1059
|
-
(!
|
|
1059
|
+
(!ke || (T.f & Po) !== 0) && wn() && (T.f & (U | Ye | _o | Po)) !== 0 && (fe === null || !Ct.call(fe, t)) && Js();
|
|
1060
1060
|
let o = i ? it(e) : e;
|
|
1061
|
-
return
|
|
1061
|
+
return Vt(t, o);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Vt(t, e) {
|
|
1064
1064
|
if (!t.equals(e)) {
|
|
1065
1065
|
var i = t.v;
|
|
1066
1066
|
st ? nt.set(t, e) : nt.set(t, i), t.v = e;
|
|
@@ -1072,14 +1072,14 @@ function Dt(t, e) {
|
|
|
1072
1072
|
);
|
|
1073
1073
|
(t.f & X) !== 0 && go(s), ho(s);
|
|
1074
1074
|
}
|
|
1075
|
-
t.wv = Zn(), Mn(t, X),
|
|
1075
|
+
t.wv = Zn(), Mn(t, X), R !== null && (R.f & P) !== 0 && (R.f & (xe | rt)) === 0 && (ce === null ? Sr([t]) : ce.push(t)), !o.is_fork && so.size > 0 && !jn && hr();
|
|
1076
1076
|
}
|
|
1077
1077
|
return e;
|
|
1078
1078
|
}
|
|
1079
1079
|
function hr() {
|
|
1080
|
-
|
|
1080
|
+
jn = !1;
|
|
1081
1081
|
for (const t of so)
|
|
1082
|
-
(t.f & P) !== 0 &&
|
|
1082
|
+
(t.f & P) !== 0 && j(t, Te), si(t) && Pt(t);
|
|
1083
1083
|
so.clear();
|
|
1084
1084
|
}
|
|
1085
1085
|
function qt(t) {
|
|
@@ -1090,16 +1090,16 @@ function Mn(t, e) {
|
|
|
1090
1090
|
if (i !== null)
|
|
1091
1091
|
for (var o = i.length, s = 0; s < o; s++) {
|
|
1092
1092
|
var n = i[s], r = n.f, a = (r & X) === 0;
|
|
1093
|
-
if (a &&
|
|
1093
|
+
if (a && j(n, e), (r & U) !== 0) {
|
|
1094
1094
|
var l = (
|
|
1095
1095
|
/** @type {Derived} */
|
|
1096
1096
|
n
|
|
1097
1097
|
);
|
|
1098
|
-
|
|
1098
|
+
ve?.delete(l), (r & vt) === 0 && (r & pe && (n.f |= vt), Mn(l, Te));
|
|
1099
1099
|
} else a && ((r & Ye) !== 0 && Pe !== null && Pe.add(
|
|
1100
1100
|
/** @type {Effect} */
|
|
1101
1101
|
n
|
|
1102
|
-
),
|
|
1102
|
+
), we(
|
|
1103
1103
|
/** @type {Effect} */
|
|
1104
1104
|
n
|
|
1105
1105
|
));
|
|
@@ -1109,63 +1109,63 @@ function it(t) {
|
|
|
1109
1109
|
if (typeof t != "object" || t === null || gi in t)
|
|
1110
1110
|
return t;
|
|
1111
1111
|
const e = pn(t);
|
|
1112
|
-
if (e !== zs && e !==
|
|
1112
|
+
if (e !== zs && e !== Os)
|
|
1113
1113
|
return t;
|
|
1114
|
-
var i = /* @__PURE__ */ new Map(), o = dn(t), s = /* @__PURE__ */
|
|
1114
|
+
var i = /* @__PURE__ */ new Map(), o = dn(t), s = /* @__PURE__ */ N(0), n = bt, r = (a) => {
|
|
1115
1115
|
if (bt === n)
|
|
1116
1116
|
return a();
|
|
1117
|
-
var l =
|
|
1118
|
-
me(null),
|
|
1117
|
+
var l = T, c = bt;
|
|
1118
|
+
me(null), Go(n);
|
|
1119
1119
|
var d = a();
|
|
1120
|
-
return me(l),
|
|
1120
|
+
return me(l), Go(c), d;
|
|
1121
1121
|
};
|
|
1122
|
-
return o && i.set("length", /* @__PURE__ */
|
|
1122
|
+
return o && i.set("length", /* @__PURE__ */ N(
|
|
1123
1123
|
/** @type {any[]} */
|
|
1124
1124
|
t.length
|
|
1125
1125
|
)), new Proxy(
|
|
1126
1126
|
/** @type {any} */
|
|
1127
1127
|
t,
|
|
1128
1128
|
{
|
|
1129
|
-
defineProperty(a, l,
|
|
1130
|
-
(!("value" in
|
|
1129
|
+
defineProperty(a, l, c) {
|
|
1130
|
+
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Ws();
|
|
1131
1131
|
var d = i.get(l);
|
|
1132
1132
|
return d === void 0 ? r(() => {
|
|
1133
|
-
var
|
|
1134
|
-
return i.set(l,
|
|
1135
|
-
}) : M(d,
|
|
1133
|
+
var h = /* @__PURE__ */ N(c.value);
|
|
1134
|
+
return i.set(l, h), h;
|
|
1135
|
+
}) : M(d, c.value, !0), !0;
|
|
1136
1136
|
},
|
|
1137
1137
|
deleteProperty(a, l) {
|
|
1138
|
-
var
|
|
1139
|
-
if (
|
|
1138
|
+
var c = i.get(l);
|
|
1139
|
+
if (c === void 0) {
|
|
1140
1140
|
if (l in a) {
|
|
1141
|
-
const d = r(() => /* @__PURE__ */
|
|
1141
|
+
const d = r(() => /* @__PURE__ */ N(G));
|
|
1142
1142
|
i.set(l, d), qt(s);
|
|
1143
1143
|
}
|
|
1144
1144
|
} else
|
|
1145
|
-
M(
|
|
1145
|
+
M(c, G), qt(s);
|
|
1146
1146
|
return !0;
|
|
1147
1147
|
},
|
|
1148
|
-
get(a, l,
|
|
1148
|
+
get(a, l, c) {
|
|
1149
1149
|
if (l === gi)
|
|
1150
1150
|
return t;
|
|
1151
|
-
var d = i.get(l),
|
|
1152
|
-
if (d === void 0 && (!
|
|
1153
|
-
var
|
|
1151
|
+
var d = i.get(l), h = l in a;
|
|
1152
|
+
if (d === void 0 && (!h || St(a, l)?.writable) && (d = r(() => {
|
|
1153
|
+
var _ = it(h ? a[l] : G), g = /* @__PURE__ */ N(_);
|
|
1154
1154
|
return g;
|
|
1155
1155
|
}), i.set(l, d)), d !== void 0) {
|
|
1156
|
-
var p =
|
|
1157
|
-
return p ===
|
|
1156
|
+
var p = m(d);
|
|
1157
|
+
return p === G ? void 0 : p;
|
|
1158
1158
|
}
|
|
1159
|
-
return Reflect.get(a, l,
|
|
1159
|
+
return Reflect.get(a, l, c);
|
|
1160
1160
|
},
|
|
1161
1161
|
getOwnPropertyDescriptor(a, l) {
|
|
1162
|
-
var
|
|
1163
|
-
if (
|
|
1162
|
+
var c = Reflect.getOwnPropertyDescriptor(a, l);
|
|
1163
|
+
if (c && "value" in c) {
|
|
1164
1164
|
var d = i.get(l);
|
|
1165
|
-
d && (
|
|
1166
|
-
} else if (
|
|
1167
|
-
var
|
|
1168
|
-
if (
|
|
1165
|
+
d && (c.value = m(d));
|
|
1166
|
+
} else if (c === void 0) {
|
|
1167
|
+
var h = i.get(l), p = h?.v;
|
|
1168
|
+
if (h !== void 0 && p !== G)
|
|
1169
1169
|
return {
|
|
1170
1170
|
enumerable: !0,
|
|
1171
1171
|
configurable: !0,
|
|
@@ -1173,59 +1173,59 @@ function it(t) {
|
|
|
1173
1173
|
writable: !0
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
return
|
|
1176
|
+
return c;
|
|
1177
1177
|
},
|
|
1178
1178
|
has(a, l) {
|
|
1179
1179
|
if (l === gi)
|
|
1180
1180
|
return !0;
|
|
1181
|
-
var
|
|
1182
|
-
if (
|
|
1183
|
-
|
|
1184
|
-
var p = d ? it(a[l]) :
|
|
1185
|
-
return
|
|
1186
|
-
}), i.set(l,
|
|
1187
|
-
var
|
|
1188
|
-
if (
|
|
1181
|
+
var c = i.get(l), d = c !== void 0 && c.v !== G || Reflect.has(a, l);
|
|
1182
|
+
if (c !== void 0 || R !== null && (!d || St(a, l)?.writable)) {
|
|
1183
|
+
c === void 0 && (c = r(() => {
|
|
1184
|
+
var p = d ? it(a[l]) : G, _ = /* @__PURE__ */ N(p);
|
|
1185
|
+
return _;
|
|
1186
|
+
}), i.set(l, c));
|
|
1187
|
+
var h = m(c);
|
|
1188
|
+
if (h === G)
|
|
1189
1189
|
return !1;
|
|
1190
1190
|
}
|
|
1191
1191
|
return d;
|
|
1192
1192
|
},
|
|
1193
|
-
set(a, l,
|
|
1194
|
-
var
|
|
1193
|
+
set(a, l, c, d) {
|
|
1194
|
+
var h = i.get(l), p = l in a;
|
|
1195
1195
|
if (o && l === "length")
|
|
1196
|
-
for (var
|
|
1197
|
-
|
|
1198
|
-
var g = i.get(
|
|
1199
|
-
g !== void 0 ? M(g,
|
|
1196
|
+
for (var _ = c; _ < /** @type {Source<number>} */
|
|
1197
|
+
h.v; _ += 1) {
|
|
1198
|
+
var g = i.get(_ + "");
|
|
1199
|
+
g !== void 0 ? M(g, G) : _ in a && (g = r(() => /* @__PURE__ */ N(G)), i.set(_ + "", g));
|
|
1200
1200
|
}
|
|
1201
|
-
if (
|
|
1202
|
-
(!p || St(a, l)?.writable) && (
|
|
1201
|
+
if (h === void 0)
|
|
1202
|
+
(!p || St(a, l)?.writable) && (h = r(() => /* @__PURE__ */ N(void 0)), M(h, it(c)), i.set(l, h));
|
|
1203
1203
|
else {
|
|
1204
|
-
p =
|
|
1205
|
-
var
|
|
1206
|
-
M(
|
|
1204
|
+
p = h.v !== G;
|
|
1205
|
+
var v = r(() => it(c));
|
|
1206
|
+
M(h, v);
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1209
|
-
if (
|
|
1208
|
+
var f = Reflect.getOwnPropertyDescriptor(a, l);
|
|
1209
|
+
if (f?.set && f.set.call(d, c), !p) {
|
|
1210
1210
|
if (o && typeof l == "string") {
|
|
1211
1211
|
var y = (
|
|
1212
1212
|
/** @type {Source<number>} */
|
|
1213
1213
|
i.get("length")
|
|
1214
|
-
),
|
|
1215
|
-
Number.isInteger(
|
|
1214
|
+
), S = Number(l);
|
|
1215
|
+
Number.isInteger(S) && S >= y.v && M(y, S + 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
qt(s);
|
|
1218
1218
|
}
|
|
1219
1219
|
return !0;
|
|
1220
1220
|
},
|
|
1221
1221
|
ownKeys(a) {
|
|
1222
|
-
|
|
1223
|
-
var l = Reflect.ownKeys(a).filter((
|
|
1224
|
-
var p = i.get(
|
|
1225
|
-
return p === void 0 || p.v !==
|
|
1222
|
+
m(s);
|
|
1223
|
+
var l = Reflect.ownKeys(a).filter((h) => {
|
|
1224
|
+
var p = i.get(h);
|
|
1225
|
+
return p === void 0 || p.v !== G;
|
|
1226
1226
|
});
|
|
1227
|
-
for (var [
|
|
1228
|
-
d.v !==
|
|
1227
|
+
for (var [c, d] of i)
|
|
1228
|
+
d.v !== G && !(c in a) && l.push(c);
|
|
1229
1229
|
return l;
|
|
1230
1230
|
},
|
|
1231
1231
|
setPrototypeOf() {
|
|
@@ -1234,76 +1234,76 @@ function it(t) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
);
|
|
1236
1236
|
}
|
|
1237
|
-
var Bo,
|
|
1237
|
+
var Bo, Vn, Dn, Pn;
|
|
1238
1238
|
function ro() {
|
|
1239
1239
|
if (Bo === void 0) {
|
|
1240
|
-
Bo = window,
|
|
1240
|
+
Bo = window, Vn = /Firefox/.test(navigator.userAgent);
|
|
1241
1241
|
var t = Element.prototype, e = Node.prototype, i = Text.prototype;
|
|
1242
|
-
|
|
1242
|
+
Dn = St(e, "firstChild").get, Pn = St(e, "nextSibling").get, Do(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Do(i) && (i.__t = void 0);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
function te(t = "") {
|
|
1246
1246
|
return document.createTextNode(t);
|
|
1247
1247
|
}
|
|
1248
1248
|
// @__NO_SIDE_EFFECTS__
|
|
1249
|
-
function
|
|
1249
|
+
function Dt(t) {
|
|
1250
1250
|
return (
|
|
1251
1251
|
/** @type {TemplateNode | null} */
|
|
1252
|
-
|
|
1252
|
+
Dn.call(t)
|
|
1253
1253
|
);
|
|
1254
1254
|
}
|
|
1255
1255
|
// @__NO_SIDE_EFFECTS__
|
|
1256
|
-
function
|
|
1256
|
+
function Ce(t) {
|
|
1257
1257
|
return (
|
|
1258
1258
|
/** @type {TemplateNode | null} */
|
|
1259
1259
|
Pn.call(t)
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
if (!
|
|
1264
|
-
return /* @__PURE__ */
|
|
1265
|
-
var i = /* @__PURE__ */
|
|
1262
|
+
function L(t, e) {
|
|
1263
|
+
if (!A)
|
|
1264
|
+
return /* @__PURE__ */ Dt(t);
|
|
1265
|
+
var i = /* @__PURE__ */ Dt(E);
|
|
1266
1266
|
if (i === null)
|
|
1267
|
-
i =
|
|
1267
|
+
i = E.appendChild(te());
|
|
1268
1268
|
else if (e && i.nodeType !== oi) {
|
|
1269
1269
|
var o = te();
|
|
1270
1270
|
return i?.before(o), J(o), o;
|
|
1271
1271
|
}
|
|
1272
|
-
return e &&
|
|
1272
|
+
return e && ji(
|
|
1273
1273
|
/** @type {Text} */
|
|
1274
1274
|
i
|
|
1275
1275
|
), J(i), i;
|
|
1276
1276
|
}
|
|
1277
1277
|
function gr(t, e = !1) {
|
|
1278
|
-
if (!
|
|
1279
|
-
var i = /* @__PURE__ */
|
|
1280
|
-
return i instanceof Comment && i.data === "" ? /* @__PURE__ */
|
|
1278
|
+
if (!A) {
|
|
1279
|
+
var i = /* @__PURE__ */ Dt(t);
|
|
1280
|
+
return i instanceof Comment && i.data === "" ? /* @__PURE__ */ Ce(i) : i;
|
|
1281
1281
|
}
|
|
1282
1282
|
if (e) {
|
|
1283
|
-
if (
|
|
1283
|
+
if (E?.nodeType !== oi) {
|
|
1284
1284
|
var o = te();
|
|
1285
|
-
return
|
|
1285
|
+
return E?.before(o), J(o), o;
|
|
1286
1286
|
}
|
|
1287
|
-
|
|
1287
|
+
ji(
|
|
1288
1288
|
/** @type {Text} */
|
|
1289
|
-
|
|
1289
|
+
E
|
|
1290
1290
|
);
|
|
1291
1291
|
}
|
|
1292
|
-
return
|
|
1292
|
+
return E;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1295
|
-
let o =
|
|
1294
|
+
function V(t, e = 1, i = !1) {
|
|
1295
|
+
let o = A ? E : t;
|
|
1296
1296
|
for (var s; e--; )
|
|
1297
1297
|
s = o, o = /** @type {TemplateNode} */
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
if (!
|
|
1298
|
+
/* @__PURE__ */ Ce(o);
|
|
1299
|
+
if (!A)
|
|
1300
1300
|
return o;
|
|
1301
1301
|
if (i) {
|
|
1302
1302
|
if (o?.nodeType !== oi) {
|
|
1303
1303
|
var n = te();
|
|
1304
1304
|
return o === null ? s?.after(n) : o.before(n), J(n), n;
|
|
1305
1305
|
}
|
|
1306
|
-
|
|
1306
|
+
ji(
|
|
1307
1307
|
/** @type {Text} */
|
|
1308
1308
|
o
|
|
1309
1309
|
);
|
|
@@ -1322,7 +1322,7 @@ function yo(t, e, i) {
|
|
|
1322
1322
|
document.createElementNS(un, t, void 0)
|
|
1323
1323
|
);
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function ji(t) {
|
|
1326
1326
|
if (
|
|
1327
1327
|
/** @type {string} */
|
|
1328
1328
|
t.nodeValue.length < 65536
|
|
@@ -1334,7 +1334,7 @@ function Ni(t) {
|
|
|
1334
1334
|
e.nodeValue, e = t.nextSibling;
|
|
1335
1335
|
}
|
|
1336
1336
|
function bo(t) {
|
|
1337
|
-
var e =
|
|
1337
|
+
var e = T, i = R;
|
|
1338
1338
|
me(null), ze(null);
|
|
1339
1339
|
try {
|
|
1340
1340
|
return t();
|
|
@@ -1343,14 +1343,14 @@ function bo(t) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
function yr(t) {
|
|
1346
|
-
|
|
1346
|
+
R === null && (T === null && Us(), Gs()), st && Fs();
|
|
1347
1347
|
}
|
|
1348
1348
|
function br(t, e) {
|
|
1349
1349
|
var i = e.last;
|
|
1350
1350
|
i === null ? e.last = e.first = t : (i.next = t, t.prev = i, e.last = t);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var o =
|
|
1352
|
+
function je(t, e, i) {
|
|
1353
|
+
var o = R;
|
|
1354
1354
|
o !== null && (o.f & re) !== 0 && (t |= re);
|
|
1355
1355
|
var s = {
|
|
1356
1356
|
ctx: le,
|
|
@@ -1374,31 +1374,31 @@ function Ne(t, e, i) {
|
|
|
1374
1374
|
} catch (a) {
|
|
1375
1375
|
throw Y(s), a;
|
|
1376
1376
|
}
|
|
1377
|
-
else e !== null &&
|
|
1377
|
+
else e !== null && we(s);
|
|
1378
1378
|
var n = s;
|
|
1379
1379
|
if (i && n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && // either `null`, or a singular child
|
|
1380
|
-
(n.f &
|
|
1380
|
+
(n.f & Tt) === 0 && (n = n.first, (t & Ye) !== 0 && (t & jt) !== 0 && n !== null && (n.f |= jt)), n !== null && (n.parent = o, o !== null && br(n, o), T !== null && (T.f & U) !== 0 && (t & rt) === 0)) {
|
|
1381
1381
|
var r = (
|
|
1382
1382
|
/** @type {Derived} */
|
|
1383
|
-
|
|
1383
|
+
T
|
|
1384
1384
|
);
|
|
1385
1385
|
(r.effects ?? (r.effects = [])).push(n);
|
|
1386
1386
|
}
|
|
1387
1387
|
return s;
|
|
1388
1388
|
}
|
|
1389
1389
|
function vo() {
|
|
1390
|
-
return
|
|
1390
|
+
return T !== null && !ke;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const e =
|
|
1394
|
-
return
|
|
1392
|
+
function Fn(t) {
|
|
1393
|
+
const e = je($i, null, !1);
|
|
1394
|
+
return j(e, P), e.teardown = t, e;
|
|
1395
1395
|
}
|
|
1396
1396
|
function bi(t) {
|
|
1397
1397
|
yr();
|
|
1398
1398
|
var e = (
|
|
1399
1399
|
/** @type {Effect} */
|
|
1400
|
-
|
|
1401
|
-
), i = !
|
|
1400
|
+
R.f
|
|
1401
|
+
), i = !T && (e & xe) !== 0 && (e & Ht) === 0;
|
|
1402
1402
|
if (i) {
|
|
1403
1403
|
var o = (
|
|
1404
1404
|
/** @type {ComponentContext} */
|
|
@@ -1406,21 +1406,21 @@ function bi(t) {
|
|
|
1406
1406
|
);
|
|
1407
1407
|
(o.e ?? (o.e = [])).push(t);
|
|
1408
1408
|
} else
|
|
1409
|
-
return
|
|
1409
|
+
return Gn(t);
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return
|
|
1411
|
+
function Gn(t) {
|
|
1412
|
+
return je(Jt | Ns, t, !1);
|
|
1413
1413
|
}
|
|
1414
1414
|
function vr(t) {
|
|
1415
1415
|
Je.ensure();
|
|
1416
|
-
const e =
|
|
1416
|
+
const e = je(rt | Tt, t, !0);
|
|
1417
1417
|
return () => {
|
|
1418
1418
|
Y(e);
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
function wr(t) {
|
|
1422
1422
|
Je.ensure();
|
|
1423
|
-
const e =
|
|
1423
|
+
const e = je(rt | Tt, t, !0);
|
|
1424
1424
|
return (i = {}) => new Promise((o) => {
|
|
1425
1425
|
i.outro ? yt(e, () => {
|
|
1426
1426
|
Y(e), o(void 0);
|
|
@@ -1428,39 +1428,39 @@ function wr(t) {
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
function Un(t) {
|
|
1431
|
-
return
|
|
1431
|
+
return je(Jt, t, !1);
|
|
1432
1432
|
}
|
|
1433
1433
|
function kr(t) {
|
|
1434
|
-
return
|
|
1434
|
+
return je(_o | Tt, t, !0);
|
|
1435
1435
|
}
|
|
1436
1436
|
function wo(t, e = 0) {
|
|
1437
|
-
return
|
|
1437
|
+
return je($i | e, t, !0);
|
|
1438
1438
|
}
|
|
1439
1439
|
function fi(t, e = [], i = [], o = []) {
|
|
1440
1440
|
cr(o, e, i, (s) => {
|
|
1441
|
-
|
|
1441
|
+
je($i, () => t(...s.map(m)), !0);
|
|
1442
1442
|
});
|
|
1443
1443
|
}
|
|
1444
1444
|
function ko(t, e = 0) {
|
|
1445
|
-
var i =
|
|
1445
|
+
var i = je(Ye | e, t, !0);
|
|
1446
1446
|
return i;
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1448
|
+
function be(t) {
|
|
1449
|
+
return je(xe | Tt, t, !0);
|
|
1450
1450
|
}
|
|
1451
1451
|
function Xn(t) {
|
|
1452
1452
|
var e = t.teardown;
|
|
1453
1453
|
if (e !== null) {
|
|
1454
|
-
const i = st, o =
|
|
1455
|
-
|
|
1454
|
+
const i = st, o = T;
|
|
1455
|
+
Fo(!0), me(null);
|
|
1456
1456
|
try {
|
|
1457
1457
|
e.call(null);
|
|
1458
1458
|
} finally {
|
|
1459
|
-
|
|
1459
|
+
Fo(i), me(o);
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function To(t, e = !1) {
|
|
1464
1464
|
var i = t.first;
|
|
1465
1465
|
for (t.first = t.last = null; i !== null; ) {
|
|
1466
1466
|
const s = i.ac;
|
|
@@ -1471,19 +1471,19 @@ function xo(t, e = !1) {
|
|
|
1471
1471
|
(i.f & rt) !== 0 ? i.parent = null : Y(i, e), i = o;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Tr(t) {
|
|
1475
1475
|
for (var e = t.first; e !== null; ) {
|
|
1476
1476
|
var i = e.next;
|
|
1477
|
-
(e.f &
|
|
1477
|
+
(e.f & xe) === 0 && Y(e), e = i;
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
function Y(t, e = !0) {
|
|
1481
1481
|
var i = !1;
|
|
1482
|
-
(e || (t.f & _n) !== 0) && t.nodes !== null && t.nodes.end !== null && (
|
|
1482
|
+
(e || (t.f & _n) !== 0) && t.nodes !== null && t.nodes.end !== null && (xr(
|
|
1483
1483
|
t.nodes.start,
|
|
1484
1484
|
/** @type {TemplateNode} */
|
|
1485
1485
|
t.nodes.end
|
|
1486
|
-
), i = !0),
|
|
1486
|
+
), i = !0), To(t, e && !i), Yt(t, 0), j(t, We);
|
|
1487
1487
|
var o = t.nodes && t.nodes.t;
|
|
1488
1488
|
if (o !== null)
|
|
1489
1489
|
for (const n of o)
|
|
@@ -1492,9 +1492,9 @@ function Y(t, e = !0) {
|
|
|
1492
1492
|
var s = t.parent;
|
|
1493
1493
|
s !== null && s.first !== null && Kn(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function xr(t, e) {
|
|
1496
1496
|
for (; t !== null; ) {
|
|
1497
|
-
var i = t === e ? null : /* @__PURE__ */
|
|
1497
|
+
var i = t === e ? null : /* @__PURE__ */ Ce(t);
|
|
1498
1498
|
t.remove(), t = i;
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
@@ -1523,22 +1523,22 @@ function Wn(t, e, i) {
|
|
|
1523
1523
|
for (const a of o)
|
|
1524
1524
|
(a.is_global || i) && e.push(a);
|
|
1525
1525
|
for (var s = t.first; s !== null; ) {
|
|
1526
|
-
var n = s.next, r = (s.f &
|
|
1526
|
+
var n = s.next, r = (s.f & jt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1527
1527
|
// it means the parent block effect was pruned. In that case,
|
|
1528
1528
|
// transparency information was transferred to the branch effect.
|
|
1529
|
-
(s.f &
|
|
1529
|
+
(s.f & xe) !== 0 && (t.f & Ye) !== 0;
|
|
1530
1530
|
Wn(s, e, r ? i : !1), s = n;
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function xo(t) {
|
|
1535
1535
|
qn(t, !0);
|
|
1536
1536
|
}
|
|
1537
1537
|
function qn(t, e) {
|
|
1538
1538
|
if ((t.f & re) !== 0) {
|
|
1539
|
-
t.f ^= re, (t.f & P) === 0 && (
|
|
1539
|
+
t.f ^= re, (t.f & P) === 0 && (j(t, X), we(t));
|
|
1540
1540
|
for (var i = t.first; i !== null; ) {
|
|
1541
|
-
var o = i.next, s = (i.f &
|
|
1541
|
+
var o = i.next, s = (i.f & jt) !== 0 || (i.f & xe) !== 0;
|
|
1542
1542
|
qn(i, s ? e : !1), i = o;
|
|
1543
1543
|
}
|
|
1544
1544
|
var n = t.nodes && t.nodes.t;
|
|
@@ -1550,32 +1550,32 @@ function qn(t, e) {
|
|
|
1550
1550
|
function Jn(t, e) {
|
|
1551
1551
|
if (t.nodes)
|
|
1552
1552
|
for (var i = t.nodes.start, o = t.nodes.end; i !== null; ) {
|
|
1553
|
-
var s = i === o ? null : /* @__PURE__ */
|
|
1553
|
+
var s = i === o ? null : /* @__PURE__ */ Ce(i);
|
|
1554
1554
|
e.append(i), i = s;
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
1557
|
let vi = !1, st = !1;
|
|
1558
|
-
function
|
|
1558
|
+
function Fo(t) {
|
|
1559
1559
|
st = t;
|
|
1560
1560
|
}
|
|
1561
|
-
let
|
|
1561
|
+
let T = null, ke = !1;
|
|
1562
1562
|
function me(t) {
|
|
1563
|
-
|
|
1563
|
+
T = t;
|
|
1564
1564
|
}
|
|
1565
|
-
let
|
|
1565
|
+
let R = null;
|
|
1566
1566
|
function ze(t) {
|
|
1567
|
-
|
|
1567
|
+
R = t;
|
|
1568
1568
|
}
|
|
1569
1569
|
let fe = null;
|
|
1570
1570
|
function Yn(t) {
|
|
1571
|
-
|
|
1571
|
+
T !== null && (fe === null ? fe = [t] : fe.push(t));
|
|
1572
1572
|
}
|
|
1573
1573
|
let ee = null, oe = 0, ce = null;
|
|
1574
1574
|
function Sr(t) {
|
|
1575
1575
|
ce = t;
|
|
1576
1576
|
}
|
|
1577
1577
|
let Qn = 1, dt = 0, bt = dt;
|
|
1578
|
-
function
|
|
1578
|
+
function Go(t) {
|
|
1579
1579
|
bt = t;
|
|
1580
1580
|
}
|
|
1581
1581
|
function Zn() {
|
|
@@ -1594,7 +1594,7 @@ function si(t) {
|
|
|
1594
1594
|
if (si(
|
|
1595
1595
|
/** @type {Derived} */
|
|
1596
1596
|
n
|
|
1597
|
-
) &&
|
|
1597
|
+
) && On(
|
|
1598
1598
|
/** @type {Derived} */
|
|
1599
1599
|
n
|
|
1600
1600
|
), n.wv > t.wv)
|
|
@@ -1602,13 +1602,13 @@ function si(t) {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
(e & pe) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1604
1604
|
// traversal of the graph in the other batches still happens
|
|
1605
|
-
|
|
1605
|
+
ve === null && j(t, P);
|
|
1606
1606
|
}
|
|
1607
1607
|
return !1;
|
|
1608
1608
|
}
|
|
1609
1609
|
function es(t, e, i = !0) {
|
|
1610
1610
|
var o = t.reactions;
|
|
1611
|
-
if (o !== null && !(fe !== null &&
|
|
1611
|
+
if (o !== null && !(fe !== null && Ct.call(fe, t)))
|
|
1612
1612
|
for (var s = 0; s < o.length; s++) {
|
|
1613
1613
|
var n = o[s];
|
|
1614
1614
|
(n.f & U) !== 0 ? es(
|
|
@@ -1616,17 +1616,17 @@ function es(t, e, i = !0) {
|
|
|
1616
1616
|
n,
|
|
1617
1617
|
e,
|
|
1618
1618
|
!1
|
|
1619
|
-
) : e === n && (i ?
|
|
1619
|
+
) : e === n && (i ? j(n, X) : (n.f & P) !== 0 && j(n, Te), we(
|
|
1620
1620
|
/** @type {Effect} */
|
|
1621
1621
|
n
|
|
1622
1622
|
));
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
function ts(t) {
|
|
1626
|
-
var
|
|
1627
|
-
var e = ee, i = oe, o = ce, s =
|
|
1626
|
+
var v;
|
|
1627
|
+
var e = ee, i = oe, o = ce, s = T, n = fe, r = le, a = ke, l = bt, c = t.f;
|
|
1628
1628
|
ee = /** @type {null | Value[]} */
|
|
1629
|
-
null, oe = 0, ce = null,
|
|
1629
|
+
null, oe = 0, ce = null, T = (c & (xe | rt)) === 0 ? t : null, fe = null, Nt(t.ctx), ke = !1, bt = ++dt, t.ac !== null && (bo(() => {
|
|
1630
1630
|
t.ac.abort(ct);
|
|
1631
1631
|
}), t.ac = null);
|
|
1632
1632
|
try {
|
|
@@ -1634,21 +1634,21 @@ function ts(t) {
|
|
|
1634
1634
|
var d = (
|
|
1635
1635
|
/** @type {Function} */
|
|
1636
1636
|
t.fn
|
|
1637
|
-
),
|
|
1637
|
+
), h = d();
|
|
1638
1638
|
t.f |= Ht;
|
|
1639
|
-
var p = t.deps,
|
|
1639
|
+
var p = t.deps, _ = C?.is_fork;
|
|
1640
1640
|
if (ee !== null) {
|
|
1641
1641
|
var g;
|
|
1642
|
-
if (
|
|
1642
|
+
if (_ || Yt(t, oe), p !== null && oe > 0)
|
|
1643
1643
|
for (p.length = oe + ee.length, g = 0; g < ee.length; g++)
|
|
1644
1644
|
p[oe + g] = ee[g];
|
|
1645
1645
|
else
|
|
1646
1646
|
t.deps = p = ee;
|
|
1647
1647
|
if (vo() && (t.f & pe) !== 0)
|
|
1648
1648
|
for (g = oe; g < p.length; g++)
|
|
1649
|
-
((
|
|
1650
|
-
} else !
|
|
1651
|
-
if (wn() && ce !== null && !
|
|
1649
|
+
((v = p[g]).reactions ?? (v.reactions = [])).push(t);
|
|
1650
|
+
} else !_ && p !== null && oe < p.length && (Yt(t, oe), p.length = oe);
|
|
1651
|
+
if (wn() && ce !== null && !ke && p !== null && (t.f & (U | Te | X)) === 0)
|
|
1652
1652
|
for (g = 0; g < /** @type {Source[]} */
|
|
1653
1653
|
ce.length; g++)
|
|
1654
1654
|
es(
|
|
@@ -1658,25 +1658,25 @@ function ts(t) {
|
|
|
1658
1658
|
);
|
|
1659
1659
|
if (s !== null && s !== t) {
|
|
1660
1660
|
if (dt++, s.deps !== null)
|
|
1661
|
-
for (let
|
|
1662
|
-
s.deps[
|
|
1661
|
+
for (let f = 0; f < i; f += 1)
|
|
1662
|
+
s.deps[f].rv = dt;
|
|
1663
1663
|
if (e !== null)
|
|
1664
|
-
for (const
|
|
1665
|
-
|
|
1664
|
+
for (const f of e)
|
|
1665
|
+
f.rv = dt;
|
|
1666
1666
|
ce !== null && (o === null ? o = ce : o.push(.../** @type {Source[]} */
|
|
1667
1667
|
ce));
|
|
1668
1668
|
}
|
|
1669
|
-
return (t.f & ot) !== 0 && (t.f ^= ot),
|
|
1670
|
-
} catch (
|
|
1671
|
-
return
|
|
1669
|
+
return (t.f & ot) !== 0 && (t.f ^= ot), h;
|
|
1670
|
+
} catch (f) {
|
|
1671
|
+
return Tn(f);
|
|
1672
1672
|
} finally {
|
|
1673
|
-
t.f ^= Yi, ee = e, oe = i, ce = o,
|
|
1673
|
+
t.f ^= Yi, ee = e, oe = i, ce = o, T = s, fe = n, Nt(r), ke = a, bt = l;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
function Ir(t, e) {
|
|
1677
1677
|
let i = e.reactions;
|
|
1678
1678
|
if (i !== null) {
|
|
1679
|
-
var o =
|
|
1679
|
+
var o = $s.call(i, t);
|
|
1680
1680
|
if (o !== -1) {
|
|
1681
1681
|
var s = i.length - 1;
|
|
1682
1682
|
s === 0 ? i = e.reactions = null : (i[o] = i[s], i.pop());
|
|
@@ -1685,7 +1685,7 @@ function Ir(t, e) {
|
|
|
1685
1685
|
if (i === null && (e.f & U) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1686
1686
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1687
1687
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1688
|
-
(ee === null || !
|
|
1688
|
+
(ee === null || !Ct.call(ee, e))) {
|
|
1689
1689
|
var n = (
|
|
1690
1690
|
/** @type {Derived} */
|
|
1691
1691
|
e
|
|
@@ -1702,32 +1702,32 @@ function Yt(t, e) {
|
|
|
1702
1702
|
function Pt(t) {
|
|
1703
1703
|
var e = t.f;
|
|
1704
1704
|
if ((e & We) === 0) {
|
|
1705
|
-
|
|
1706
|
-
var i =
|
|
1707
|
-
|
|
1705
|
+
j(t, P);
|
|
1706
|
+
var i = R, o = vi;
|
|
1707
|
+
R = t, vi = !0;
|
|
1708
1708
|
try {
|
|
1709
|
-
(e & (Ye | mn)) !== 0 ?
|
|
1709
|
+
(e & (Ye | mn)) !== 0 ? Tr(t) : To(t), Xn(t);
|
|
1710
1710
|
var s = ts(t);
|
|
1711
1711
|
t.teardown = typeof s == "function" ? s : null, t.wv = Qn;
|
|
1712
1712
|
var n;
|
|
1713
1713
|
qi && tr && (t.f & X) !== 0 && t.deps;
|
|
1714
1714
|
} finally {
|
|
1715
|
-
vi = o,
|
|
1715
|
+
vi = o, R = i;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function m(t) {
|
|
1720
1720
|
var e = t.f, i = (e & U) !== 0;
|
|
1721
|
-
if (
|
|
1722
|
-
var o =
|
|
1723
|
-
if (!o && (fe === null || !
|
|
1724
|
-
var s =
|
|
1725
|
-
if ((
|
|
1721
|
+
if (T !== null && !ke) {
|
|
1722
|
+
var o = R !== null && (R.f & We) !== 0;
|
|
1723
|
+
if (!o && (fe === null || !Ct.call(fe, t))) {
|
|
1724
|
+
var s = T.deps;
|
|
1725
|
+
if ((T.f & Yi) !== 0)
|
|
1726
1726
|
t.rv < dt && (t.rv = dt, ee === null && s !== null && s[oe] === t ? oe++ : ee === null ? ee = [t] : ee.push(t));
|
|
1727
1727
|
else {
|
|
1728
|
-
(
|
|
1728
|
+
(T.deps ?? (T.deps = [])).push(t);
|
|
1729
1729
|
var n = t.reactions;
|
|
1730
|
-
n === null ? t.reactions = [
|
|
1730
|
+
n === null ? t.reactions = [T] : Ct.call(n, T) || n.push(T);
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
@@ -1742,11 +1742,11 @@ function f(t) {
|
|
|
1742
1742
|
var a = r.v;
|
|
1743
1743
|
return ((r.f & P) === 0 && r.reactions !== null || os(r)) && (a = go(r)), nt.set(r, a), a;
|
|
1744
1744
|
}
|
|
1745
|
-
var l = (r.f & pe) === 0 && !
|
|
1746
|
-
si(r) && (l && (r.f |= pe),
|
|
1745
|
+
var l = (r.f & pe) === 0 && !ke && T !== null && (vi || (T.f & pe) !== 0), c = (r.f & Ht) === 0;
|
|
1746
|
+
si(r) && (l && (r.f |= pe), On(r)), l && !c && (Cn(r), is(r));
|
|
1747
1747
|
}
|
|
1748
|
-
if (
|
|
1749
|
-
return
|
|
1748
|
+
if (ve?.has(t))
|
|
1749
|
+
return ve.get(t);
|
|
1750
1750
|
if ((t.f & ot) !== 0)
|
|
1751
1751
|
throw t.v;
|
|
1752
1752
|
return t.v;
|
|
@@ -1754,7 +1754,7 @@ function f(t) {
|
|
|
1754
1754
|
function is(t) {
|
|
1755
1755
|
if (t.f |= pe, t.deps !== null)
|
|
1756
1756
|
for (const e of t.deps)
|
|
1757
|
-
(e.reactions ?? (e.reactions = [])).push(t), (e.f & U) !== 0 && (e.f & pe) === 0 && (
|
|
1757
|
+
(e.reactions ?? (e.reactions = [])).push(t), (e.f & U) !== 0 && (e.f & pe) === 0 && (Cn(
|
|
1758
1758
|
/** @type {Derived} */
|
|
1759
1759
|
e
|
|
1760
1760
|
), is(
|
|
@@ -1763,7 +1763,7 @@ function is(t) {
|
|
|
1763
1763
|
));
|
|
1764
1764
|
}
|
|
1765
1765
|
function os(t) {
|
|
1766
|
-
if (t.v ===
|
|
1766
|
+
if (t.v === G) return !0;
|
|
1767
1767
|
if (t.deps === null) return !1;
|
|
1768
1768
|
for (const e of t.deps)
|
|
1769
1769
|
if (nt.has(e) || (e.f & U) !== 0 && os(
|
|
@@ -1774,15 +1774,15 @@ function os(t) {
|
|
|
1774
1774
|
return !1;
|
|
1775
1775
|
}
|
|
1776
1776
|
function So(t) {
|
|
1777
|
-
var e =
|
|
1777
|
+
var e = ke;
|
|
1778
1778
|
try {
|
|
1779
|
-
return
|
|
1779
|
+
return ke = !0, t();
|
|
1780
1780
|
} finally {
|
|
1781
|
-
|
|
1781
|
+
ke = e;
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
1784
|
const pt = /* @__PURE__ */ Symbol("events"), ns = /* @__PURE__ */ new Set(), lo = /* @__PURE__ */ new Set();
|
|
1785
|
-
function
|
|
1785
|
+
function Ar(t, e, i, o = {}) {
|
|
1786
1786
|
function s(n) {
|
|
1787
1787
|
if (o.capture || ao.call(e, n), !n.cancelBubble)
|
|
1788
1788
|
return bo(() => i?.call(this, n));
|
|
@@ -1791,19 +1791,19 @@ function Er(t, e, i, o = {}) {
|
|
|
1791
1791
|
e.addEventListener(t, s, o);
|
|
1792
1792
|
}) : e.addEventListener(t, s, o), s;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
var n = { capture: o, passive: s }, r =
|
|
1794
|
+
function Er(t, e, i, o, s) {
|
|
1795
|
+
var n = { capture: o, passive: s }, r = Ar(t, e, i, n);
|
|
1796
1796
|
(e === document.body || // @ts-ignore
|
|
1797
1797
|
e === window || // @ts-ignore
|
|
1798
1798
|
e === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1799
|
-
e instanceof HTMLMediaElement) &&
|
|
1799
|
+
e instanceof HTMLMediaElement) && Fn(() => {
|
|
1800
1800
|
e.removeEventListener(t, r, n);
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function De(t, e, i) {
|
|
1804
1804
|
(e[pt] ?? (e[pt] = {}))[t] = i;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Rr(t) {
|
|
1807
1807
|
for (var e = 0; e < t.length; e++)
|
|
1808
1808
|
ns.add(t[e]);
|
|
1809
1809
|
for (var i of lo)
|
|
@@ -1827,51 +1827,51 @@ function ao(t) {
|
|
|
1827
1827
|
t[pt] = e;
|
|
1828
1828
|
return;
|
|
1829
1829
|
}
|
|
1830
|
-
var
|
|
1831
|
-
if (
|
|
1830
|
+
var c = s.indexOf(e);
|
|
1831
|
+
if (c === -1)
|
|
1832
1832
|
return;
|
|
1833
|
-
l <=
|
|
1833
|
+
l <= c && (r = l);
|
|
1834
1834
|
}
|
|
1835
1835
|
if (n = /** @type {Element} */
|
|
1836
1836
|
s[r] || t.target, n !== e) {
|
|
1837
|
-
|
|
1837
|
+
Ti(t, "currentTarget", {
|
|
1838
1838
|
configurable: !0,
|
|
1839
1839
|
get() {
|
|
1840
1840
|
return n || i;
|
|
1841
1841
|
}
|
|
1842
1842
|
});
|
|
1843
|
-
var d =
|
|
1843
|
+
var d = T, h = R;
|
|
1844
1844
|
me(null), ze(null);
|
|
1845
1845
|
try {
|
|
1846
|
-
for (var p,
|
|
1846
|
+
for (var p, _ = []; n !== null; ) {
|
|
1847
1847
|
var g = n.assignedSlot || n.parentNode || /** @type {any} */
|
|
1848
1848
|
n.host || null;
|
|
1849
1849
|
try {
|
|
1850
|
-
var
|
|
1851
|
-
|
|
1850
|
+
var v = n[pt]?.[o];
|
|
1851
|
+
v != null && (!/** @type {any} */
|
|
1852
1852
|
n.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1853
1853
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1854
|
-
t.target === n) &&
|
|
1855
|
-
} catch (
|
|
1856
|
-
p ?
|
|
1854
|
+
t.target === n) && v.call(n, t);
|
|
1855
|
+
} catch (f) {
|
|
1856
|
+
p ? _.push(f) : p = f;
|
|
1857
1857
|
}
|
|
1858
1858
|
if (t.cancelBubble || g === e || g === null)
|
|
1859
1859
|
break;
|
|
1860
1860
|
n = g;
|
|
1861
1861
|
}
|
|
1862
1862
|
if (p) {
|
|
1863
|
-
for (let
|
|
1863
|
+
for (let f of _)
|
|
1864
1864
|
queueMicrotask(() => {
|
|
1865
|
-
throw
|
|
1865
|
+
throw f;
|
|
1866
1866
|
});
|
|
1867
1867
|
throw p;
|
|
1868
1868
|
}
|
|
1869
1869
|
} finally {
|
|
1870
|
-
t[pt] = e, delete t.currentTarget, me(d), ze(
|
|
1870
|
+
t[pt] = e, delete t.currentTarget, me(d), ze(h);
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
const
|
|
1874
|
+
const $r = (
|
|
1875
1875
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1876
1876
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1877
1877
|
/** @param {string} html */
|
|
@@ -1881,7 +1881,7 @@ const Rr = (
|
|
|
1881
1881
|
function Lr(t) {
|
|
1882
1882
|
return (
|
|
1883
1883
|
/** @type {string} */
|
|
1884
|
-
|
|
1884
|
+
$r?.createHTML(t) ?? t
|
|
1885
1885
|
);
|
|
1886
1886
|
}
|
|
1887
1887
|
function zr(t, e = !1) {
|
|
@@ -1891,49 +1891,49 @@ function zr(t, e = !1) {
|
|
|
1891
1891
|
function kt(t, e) {
|
|
1892
1892
|
var i = (
|
|
1893
1893
|
/** @type {Effect} */
|
|
1894
|
-
|
|
1894
|
+
R
|
|
1895
1895
|
);
|
|
1896
1896
|
i.nodes === null && (i.nodes = { start: t, end: e, a: null, t: null });
|
|
1897
1897
|
}
|
|
1898
1898
|
// @__NO_SIDE_EFFECTS__
|
|
1899
1899
|
function Bt(t, e) {
|
|
1900
|
-
var i = (e &
|
|
1900
|
+
var i = (e & Rs) !== 0, o, s = !t.startsWith("<!>");
|
|
1901
1901
|
return () => {
|
|
1902
|
-
if (
|
|
1903
|
-
return kt(
|
|
1902
|
+
if (A)
|
|
1903
|
+
return kt(E, null), E;
|
|
1904
1904
|
o === void 0 && (o = zr(s ? t : "<!>" + t, !0), o = /** @type {TemplateNode} */
|
|
1905
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ Dt(o));
|
|
1906
1906
|
var n = (
|
|
1907
1907
|
/** @type {TemplateNode} */
|
|
1908
|
-
i ||
|
|
1908
|
+
i || Vn ? document.importNode(o, !0) : o.cloneNode(!0)
|
|
1909
1909
|
);
|
|
1910
1910
|
return kt(n, n), n;
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
1913
|
function Xi(t = "") {
|
|
1914
|
-
if (!
|
|
1914
|
+
if (!A) {
|
|
1915
1915
|
var e = te(t + "");
|
|
1916
1916
|
return kt(e, e), e;
|
|
1917
1917
|
}
|
|
1918
|
-
var i =
|
|
1919
|
-
return i.nodeType !== oi ? (i.before(i = te()), J(i)) :
|
|
1918
|
+
var i = E;
|
|
1919
|
+
return i.nodeType !== oi ? (i.before(i = te()), J(i)) : ji(
|
|
1920
1920
|
/** @type {Text} */
|
|
1921
1921
|
i
|
|
1922
1922
|
), kt(i, i), i;
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1925
|
-
if (
|
|
1926
|
-
return kt(
|
|
1924
|
+
function Or() {
|
|
1925
|
+
if (A)
|
|
1926
|
+
return kt(E, null), E;
|
|
1927
1927
|
var t = document.createDocumentFragment(), e = document.createComment(""), i = te();
|
|
1928
1928
|
return t.append(e, i), kt(e, i), t;
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1931
|
-
if (
|
|
1930
|
+
function ge(t, e) {
|
|
1931
|
+
if (A) {
|
|
1932
1932
|
var i = (
|
|
1933
1933
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1934
|
-
|
|
1934
|
+
R
|
|
1935
1935
|
);
|
|
1936
|
-
((i.f & Ht) === 0 || i.nodes.end === null) && (i.nodes.end =
|
|
1936
|
+
((i.f & Ht) === 0 || i.nodes.end === null) && (i.nodes.end = E), zi();
|
|
1937
1937
|
return;
|
|
1938
1938
|
}
|
|
1939
1939
|
t !== null && t.before(
|
|
@@ -1941,26 +1941,26 @@ function ye(t, e) {
|
|
|
1941
1941
|
e
|
|
1942
1942
|
);
|
|
1943
1943
|
}
|
|
1944
|
-
const
|
|
1945
|
-
function
|
|
1946
|
-
return
|
|
1944
|
+
const Cr = ["touchstart", "touchmove"];
|
|
1945
|
+
function jr(t) {
|
|
1946
|
+
return Cr.includes(t);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function he(t, e) {
|
|
1949
1949
|
var i = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
1950
1950
|
i !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = i, t.nodeValue = i + "");
|
|
1951
1951
|
}
|
|
1952
1952
|
function ss(t, e) {
|
|
1953
1953
|
return rs(t, e);
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1955
|
+
function Nr(t, e) {
|
|
1956
1956
|
ro(), e.intro = e.intro ?? !1;
|
|
1957
|
-
const i = e.target, o =
|
|
1957
|
+
const i = e.target, o = A, s = E;
|
|
1958
1958
|
try {
|
|
1959
|
-
for (var n = /* @__PURE__ */
|
|
1959
|
+
for (var n = /* @__PURE__ */ Dt(i); n && (n.nodeType !== ni || /** @type {Comment} */
|
|
1960
1960
|
n.data !== fo); )
|
|
1961
|
-
n = /* @__PURE__ */
|
|
1961
|
+
n = /* @__PURE__ */ Ce(n);
|
|
1962
1962
|
if (!n)
|
|
1963
|
-
throw
|
|
1963
|
+
throw Ot;
|
|
1964
1964
|
Ke(!0), J(
|
|
1965
1965
|
/** @type {Comment} */
|
|
1966
1966
|
n
|
|
@@ -1972,7 +1972,7 @@ function jr(t, e) {
|
|
|
1972
1972
|
if (r instanceof Error && r.message.split(`
|
|
1973
1973
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1974
1974
|
throw r;
|
|
1975
|
-
return r !==
|
|
1975
|
+
return r !== Ot && console.warn("Failed to hydrate: ", r), e.recover === !1 && Ks(), ro(), Hn(i), Ke(!1), ss(t, e);
|
|
1976
1976
|
} finally {
|
|
1977
1977
|
Ke(o), J(s);
|
|
1978
1978
|
}
|
|
@@ -1981,58 +1981,58 @@ const mi = /* @__PURE__ */ new Map();
|
|
|
1981
1981
|
function rs(t, { target: e, anchor: i, props: o = {}, events: s, context: n, intro: r = !0 }) {
|
|
1982
1982
|
ro();
|
|
1983
1983
|
var a = void 0, l = wr(() => {
|
|
1984
|
-
var
|
|
1984
|
+
var c = i ?? e.appendChild(te());
|
|
1985
1985
|
lr(
|
|
1986
1986
|
/** @type {TemplateNode} */
|
|
1987
|
-
|
|
1987
|
+
c,
|
|
1988
1988
|
{
|
|
1989
1989
|
pending: () => {
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
1992
1992
|
(p) => {
|
|
1993
1993
|
bn({});
|
|
1994
|
-
var
|
|
1994
|
+
var _ = (
|
|
1995
1995
|
/** @type {ComponentContext} */
|
|
1996
1996
|
le
|
|
1997
1997
|
);
|
|
1998
|
-
if (n && (
|
|
1998
|
+
if (n && (_.c = n), s && (o.$$events = s), A && kt(
|
|
1999
1999
|
/** @type {TemplateNode} */
|
|
2000
2000
|
p,
|
|
2001
2001
|
null
|
|
2002
|
-
), a = t(p, o) || {},
|
|
2003
|
-
|
|
2004
|
-
throw Li(),
|
|
2002
|
+
), a = t(p, o) || {}, A && (R.nodes.end = E, E === null || E.nodeType !== ni || /** @type {Comment} */
|
|
2003
|
+
E.data !== mo))
|
|
2004
|
+
throw Li(), Ot;
|
|
2005
2005
|
vn();
|
|
2006
2006
|
}
|
|
2007
2007
|
);
|
|
2008
|
-
var d = /* @__PURE__ */ new Set(),
|
|
2009
|
-
for (var
|
|
2010
|
-
var g = p[
|
|
2008
|
+
var d = /* @__PURE__ */ new Set(), h = (p) => {
|
|
2009
|
+
for (var _ = 0; _ < p.length; _++) {
|
|
2010
|
+
var g = p[_];
|
|
2011
2011
|
if (!d.has(g)) {
|
|
2012
2012
|
d.add(g);
|
|
2013
|
-
var
|
|
2014
|
-
for (const
|
|
2015
|
-
var
|
|
2016
|
-
|
|
2017
|
-
var y =
|
|
2018
|
-
y === void 0 ? (
|
|
2013
|
+
var v = jr(g);
|
|
2014
|
+
for (const S of [e, document]) {
|
|
2015
|
+
var f = mi.get(S);
|
|
2016
|
+
f === void 0 && (f = /* @__PURE__ */ new Map(), mi.set(S, f));
|
|
2017
|
+
var y = f.get(g);
|
|
2018
|
+
y === void 0 ? (S.addEventListener(g, ao, { passive: v }), f.set(g, 1)) : f.set(g, y + 1);
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
|
-
return
|
|
2023
|
+
return h(Ri(ns)), lo.add(h), () => {
|
|
2024
2024
|
for (var p of d)
|
|
2025
|
-
for (const
|
|
2026
|
-
var
|
|
2025
|
+
for (const v of [e, document]) {
|
|
2026
|
+
var _ = (
|
|
2027
2027
|
/** @type {Map<string, number>} */
|
|
2028
|
-
mi.get(
|
|
2028
|
+
mi.get(v)
|
|
2029
2029
|
), g = (
|
|
2030
2030
|
/** @type {number} */
|
|
2031
|
-
|
|
2031
|
+
_.get(p)
|
|
2032
2032
|
);
|
|
2033
|
-
--g == 0 ? (
|
|
2033
|
+
--g == 0 ? (v.removeEventListener(p, ao), _.delete(p), _.size === 0 && mi.delete(v)) : _.set(p, g);
|
|
2034
2034
|
}
|
|
2035
|
-
lo.delete(
|
|
2035
|
+
lo.delete(h), c !== i && c.parentNode?.removeChild(c);
|
|
2036
2036
|
};
|
|
2037
2037
|
});
|
|
2038
2038
|
return co.set(a, l), a;
|
|
@@ -2042,17 +2042,17 @@ function Mr(t, e) {
|
|
|
2042
2042
|
const i = co.get(t);
|
|
2043
2043
|
return i ? (co.delete(t), i(e)) : Promise.resolve();
|
|
2044
2044
|
}
|
|
2045
|
-
var
|
|
2046
|
-
class
|
|
2045
|
+
var ye, Le, se, gt, ti, ii, Ai;
|
|
2046
|
+
class Vr {
|
|
2047
2047
|
/**
|
|
2048
2048
|
* @param {TemplateNode} anchor
|
|
2049
2049
|
* @param {boolean} transition
|
|
2050
2050
|
*/
|
|
2051
2051
|
constructor(e, i = !0) {
|
|
2052
2052
|
/** @type {TemplateNode} */
|
|
2053
|
-
|
|
2053
|
+
w(this, "anchor");
|
|
2054
2054
|
/** @type {Map<Batch, Key>} */
|
|
2055
|
-
|
|
2055
|
+
k(this, ye, /* @__PURE__ */ new Map());
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Map of keys to effects that are currently rendered in the DOM.
|
|
2058
2058
|
* These effects are visible and actively part of the document tree.
|
|
@@ -2067,67 +2067,67 @@ class Dr {
|
|
|
2067
2067
|
* Can result in the entries `true->Effect` and `false->Effect`
|
|
2068
2068
|
* @type {Map<Key, Effect>}
|
|
2069
2069
|
*/
|
|
2070
|
-
|
|
2070
|
+
k(this, Le, /* @__PURE__ */ new Map());
|
|
2071
2071
|
/**
|
|
2072
2072
|
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
2073
2073
|
* in the DOM, because their insertion is deferred.
|
|
2074
2074
|
* @type {Map<Key, Branch>}
|
|
2075
2075
|
*/
|
|
2076
|
-
|
|
2076
|
+
k(this, se, /* @__PURE__ */ new Map());
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Keys of effects that are currently outroing
|
|
2079
2079
|
* @type {Set<Key>}
|
|
2080
2080
|
*/
|
|
2081
|
-
|
|
2081
|
+
k(this, gt, /* @__PURE__ */ new Set());
|
|
2082
2082
|
/**
|
|
2083
2083
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2084
2084
|
* This is necessary for `<svelte:element>`
|
|
2085
2085
|
*/
|
|
2086
|
-
|
|
2087
|
-
|
|
2086
|
+
k(this, ti, !0);
|
|
2087
|
+
k(this, ii, () => {
|
|
2088
2088
|
var e = (
|
|
2089
2089
|
/** @type {Batch} */
|
|
2090
|
-
|
|
2090
|
+
C
|
|
2091
2091
|
);
|
|
2092
|
-
if (
|
|
2092
|
+
if (u(this, ye).has(e)) {
|
|
2093
2093
|
var i = (
|
|
2094
2094
|
/** @type {Key} */
|
|
2095
|
-
|
|
2096
|
-
), o =
|
|
2095
|
+
u(this, ye).get(e)
|
|
2096
|
+
), o = u(this, Le).get(i);
|
|
2097
2097
|
if (o)
|
|
2098
|
-
|
|
2098
|
+
xo(o), u(this, gt).delete(i);
|
|
2099
2099
|
else {
|
|
2100
|
-
var s =
|
|
2101
|
-
s && (
|
|
2100
|
+
var s = u(this, se).get(i);
|
|
2101
|
+
s && (u(this, Le).set(i, s.effect), u(this, se).delete(i), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), o = s.effect);
|
|
2102
2102
|
}
|
|
2103
|
-
for (const [n, r] of
|
|
2104
|
-
if (
|
|
2103
|
+
for (const [n, r] of u(this, ye)) {
|
|
2104
|
+
if (u(this, ye).delete(n), n === e)
|
|
2105
2105
|
break;
|
|
2106
|
-
const a =
|
|
2107
|
-
a && (Y(a.effect),
|
|
2106
|
+
const a = u(this, se).get(r);
|
|
2107
|
+
a && (Y(a.effect), u(this, se).delete(r));
|
|
2108
2108
|
}
|
|
2109
|
-
for (const [n, r] of
|
|
2110
|
-
if (n === i ||
|
|
2109
|
+
for (const [n, r] of u(this, Le)) {
|
|
2110
|
+
if (n === i || u(this, gt).has(n)) continue;
|
|
2111
2111
|
const a = () => {
|
|
2112
|
-
if (Array.from(
|
|
2113
|
-
var
|
|
2114
|
-
Jn(r,
|
|
2112
|
+
if (Array.from(u(this, ye).values()).includes(n)) {
|
|
2113
|
+
var c = document.createDocumentFragment();
|
|
2114
|
+
Jn(r, c), c.append(te()), u(this, se).set(n, { effect: r, fragment: c });
|
|
2115
2115
|
} else
|
|
2116
2116
|
Y(r);
|
|
2117
|
-
|
|
2117
|
+
u(this, gt).delete(n), u(this, Le).delete(n);
|
|
2118
2118
|
};
|
|
2119
|
-
|
|
2119
|
+
u(this, ti) || !o ? (u(this, gt).add(n), yt(r, a, !1)) : a();
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
/**
|
|
2124
2124
|
* @param {Batch} batch
|
|
2125
2125
|
*/
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
const i = Array.from(
|
|
2129
|
-
for (const [o, s] of
|
|
2130
|
-
i.includes(o) || (Y(s.effect),
|
|
2126
|
+
k(this, Ai, (e) => {
|
|
2127
|
+
u(this, ye).delete(e);
|
|
2128
|
+
const i = Array.from(u(this, ye).values());
|
|
2129
|
+
for (const [o, s] of u(this, se))
|
|
2130
|
+
i.includes(o) || (Y(s.effect), u(this, se).delete(o));
|
|
2131
2131
|
});
|
|
2132
2132
|
this.anchor = e, b(this, ti, i);
|
|
2133
2133
|
}
|
|
@@ -2139,32 +2139,32 @@ class Dr {
|
|
|
2139
2139
|
ensure(e, i) {
|
|
2140
2140
|
var o = (
|
|
2141
2141
|
/** @type {Batch} */
|
|
2142
|
-
|
|
2142
|
+
C
|
|
2143
2143
|
), s = Bn();
|
|
2144
|
-
if (i && !
|
|
2144
|
+
if (i && !u(this, Le).has(e) && !u(this, se).has(e))
|
|
2145
2145
|
if (s) {
|
|
2146
2146
|
var n = document.createDocumentFragment(), r = te();
|
|
2147
|
-
n.append(r),
|
|
2148
|
-
effect:
|
|
2147
|
+
n.append(r), u(this, se).set(e, {
|
|
2148
|
+
effect: be(() => i(r)),
|
|
2149
2149
|
fragment: n
|
|
2150
2150
|
});
|
|
2151
2151
|
} else
|
|
2152
|
-
|
|
2152
|
+
u(this, Le).set(
|
|
2153
2153
|
e,
|
|
2154
|
-
|
|
2154
|
+
be(() => i(this.anchor))
|
|
2155
2155
|
);
|
|
2156
|
-
if (
|
|
2157
|
-
for (const [a, l] of
|
|
2156
|
+
if (u(this, ye).set(o, e), s) {
|
|
2157
|
+
for (const [a, l] of u(this, Le))
|
|
2158
2158
|
a === e ? o.unskip_effect(l) : o.skip_effect(l);
|
|
2159
|
-
for (const [a, l] of
|
|
2159
|
+
for (const [a, l] of u(this, se))
|
|
2160
2160
|
a === e ? o.unskip_effect(l.effect) : o.skip_effect(l.effect);
|
|
2161
|
-
o.oncommit(
|
|
2161
|
+
o.oncommit(u(this, ii)), o.ondiscard(u(this, Ai));
|
|
2162
2162
|
} else
|
|
2163
|
-
|
|
2163
|
+
A && (this.anchor = E), u(this, ii).call(this);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
|
-
|
|
2167
|
-
function
|
|
2166
|
+
ye = new WeakMap(), Le = new WeakMap(), se = new WeakMap(), gt = new WeakMap(), ti = new WeakMap(), ii = new WeakMap(), Ai = new WeakMap();
|
|
2167
|
+
function Dr(t) {
|
|
2168
2168
|
le === null && Ps(), bi(() => {
|
|
2169
2169
|
const e = So(t);
|
|
2170
2170
|
if (typeof e == "function") return (
|
|
@@ -2174,15 +2174,15 @@ function Vr(t) {
|
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
2176
|
function Ki(t, e, i = !1) {
|
|
2177
|
-
|
|
2178
|
-
var o = new
|
|
2177
|
+
A && zi();
|
|
2178
|
+
var o = new Vr(t), s = i ? jt : 0;
|
|
2179
2179
|
function n(r, a) {
|
|
2180
|
-
if (
|
|
2180
|
+
if (A) {
|
|
2181
2181
|
const d = hn(t);
|
|
2182
2182
|
var l;
|
|
2183
|
-
if (d === fo ? l = 0 : d ===
|
|
2184
|
-
var
|
|
2185
|
-
J(
|
|
2183
|
+
if (d === fo ? l = 0 : d === Ei ? l = !1 : l = parseInt(d.substring(1)), r !== l) {
|
|
2184
|
+
var c = xi();
|
|
2185
|
+
J(c), o.anchor = c, Ke(!1), o.ensure(r, a), Ke(!0);
|
|
2186
2186
|
return;
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
@@ -2200,17 +2200,17 @@ function Xo(t, e) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
function Pr(t, e, i) {
|
|
2202
2202
|
for (var o = [], s = e.length, n, r = e.length, a = 0; a < s; a++) {
|
|
2203
|
-
let
|
|
2203
|
+
let h = e[a];
|
|
2204
2204
|
yt(
|
|
2205
|
-
|
|
2205
|
+
h,
|
|
2206
2206
|
() => {
|
|
2207
2207
|
if (n) {
|
|
2208
|
-
if (n.pending.delete(
|
|
2208
|
+
if (n.pending.delete(h), n.done.add(h), n.pending.size === 0) {
|
|
2209
2209
|
var p = (
|
|
2210
2210
|
/** @type {Set<EachOutroGroup>} */
|
|
2211
2211
|
t.outrogroups
|
|
2212
2212
|
);
|
|
2213
|
-
uo(
|
|
2213
|
+
uo(Ri(n.done)), p.delete(n), p.size === 0 && (t.outrogroups = null);
|
|
2214
2214
|
}
|
|
2215
2215
|
} else
|
|
2216
2216
|
r -= 1;
|
|
@@ -2221,14 +2221,14 @@ function Pr(t, e, i) {
|
|
|
2221
2221
|
if (r === 0) {
|
|
2222
2222
|
var l = o.length === 0 && i !== null;
|
|
2223
2223
|
if (l) {
|
|
2224
|
-
var
|
|
2224
|
+
var c = (
|
|
2225
2225
|
/** @type {Element} */
|
|
2226
2226
|
i
|
|
2227
2227
|
), d = (
|
|
2228
2228
|
/** @type {Element} */
|
|
2229
|
-
|
|
2229
|
+
c.parentNode
|
|
2230
2230
|
);
|
|
2231
|
-
Hn(d), d.append(
|
|
2231
|
+
Hn(d), d.append(c), t.items.clear();
|
|
2232
2232
|
}
|
|
2233
2233
|
uo(e, !l);
|
|
2234
2234
|
} else
|
|
@@ -2245,144 +2245,144 @@ var Ko;
|
|
|
2245
2245
|
function _i(t, e, i, o, s, n = null) {
|
|
2246
2246
|
var r = t, a = /* @__PURE__ */ new Map(), l = (e & cn) !== 0;
|
|
2247
2247
|
if (l) {
|
|
2248
|
-
var
|
|
2248
|
+
var c = (
|
|
2249
2249
|
/** @type {Element} */
|
|
2250
2250
|
t
|
|
2251
2251
|
);
|
|
2252
|
-
r =
|
|
2252
|
+
r = A ? J(/* @__PURE__ */ Dt(c)) : c.appendChild(te());
|
|
2253
2253
|
}
|
|
2254
|
-
|
|
2255
|
-
var d = null,
|
|
2254
|
+
A && zi();
|
|
2255
|
+
var d = null, h = /* @__PURE__ */ pr(() => {
|
|
2256
2256
|
var y = i();
|
|
2257
|
-
return dn(y) ? y : y == null ? [] :
|
|
2258
|
-
}), p,
|
|
2257
|
+
return dn(y) ? y : y == null ? [] : Ri(y);
|
|
2258
|
+
}), p, _ = !0;
|
|
2259
2259
|
function g() {
|
|
2260
|
-
|
|
2260
|
+
f.fallback = d, Hr(f, p, r, e, o), d !== null && (p.length === 0 ? (d.f & Xe) === 0 ? xo(d) : (d.f ^= Xe, Kt(d, null, r)) : yt(d, () => {
|
|
2261
2261
|
d = null;
|
|
2262
2262
|
}));
|
|
2263
2263
|
}
|
|
2264
|
-
var
|
|
2264
|
+
var v = ko(() => {
|
|
2265
2265
|
p = /** @type {V[]} */
|
|
2266
|
-
|
|
2266
|
+
m(h);
|
|
2267
2267
|
var y = p.length;
|
|
2268
|
-
let
|
|
2269
|
-
if (
|
|
2270
|
-
var ae = hn(r) ===
|
|
2271
|
-
ae !== (y === 0) && (r =
|
|
2268
|
+
let S = !1;
|
|
2269
|
+
if (A) {
|
|
2270
|
+
var ae = hn(r) === Ei;
|
|
2271
|
+
ae !== (y === 0) && (r = xi(), J(r), Ke(!1), S = !0);
|
|
2272
2272
|
}
|
|
2273
2273
|
for (var Q = /* @__PURE__ */ new Set(), Me = (
|
|
2274
2274
|
/** @type {Batch} */
|
|
2275
|
-
|
|
2275
|
+
C
|
|
2276
2276
|
), Qe = Bn(), K = 0; K < y; K += 1) {
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
var Ie = p[K],
|
|
2281
|
-
|
|
2277
|
+
A && E.nodeType === ni && /** @type {Comment} */
|
|
2278
|
+
E.data === mo && (r = /** @type {Comment} */
|
|
2279
|
+
E, S = !0, Ke(!1));
|
|
2280
|
+
var Ie = p[K], Ve = o(Ie, K), D = _ ? null : a.get(Ve);
|
|
2281
|
+
D ? (D.v && Vt(D.v, Ie), D.i && Vt(D.i, K), Qe && Me.unskip_effect(D.e)) : (D = Br(
|
|
2282
2282
|
a,
|
|
2283
|
-
|
|
2283
|
+
_ ? r : Ko ?? (Ko = te()),
|
|
2284
2284
|
Ie,
|
|
2285
|
-
|
|
2285
|
+
Ve,
|
|
2286
2286
|
K,
|
|
2287
2287
|
s,
|
|
2288
2288
|
e,
|
|
2289
2289
|
i
|
|
2290
|
-
),
|
|
2290
|
+
), _ || (D.e.f |= Xe), a.set(Ve, D)), Q.add(Ve);
|
|
2291
2291
|
}
|
|
2292
|
-
if (y === 0 && n && !d && (
|
|
2292
|
+
if (y === 0 && n && !d && (_ ? d = be(() => n(r)) : (d = be(() => n(Ko ?? (Ko = te()))), d.f |= Xe)), y > Q.size && Bs(), A && y > 0 && J(xi()), !_)
|
|
2293
2293
|
if (Qe) {
|
|
2294
|
-
for (const [
|
|
2295
|
-
Q.has(
|
|
2294
|
+
for (const [Vi, ri] of a)
|
|
2295
|
+
Q.has(Vi) || Me.skip_effect(ri.e);
|
|
2296
2296
|
Me.oncommit(g), Me.ondiscard(() => {
|
|
2297
2297
|
});
|
|
2298
2298
|
} else
|
|
2299
2299
|
g();
|
|
2300
|
-
|
|
2301
|
-
}),
|
|
2302
|
-
|
|
2300
|
+
S && Ke(!0), m(h);
|
|
2301
|
+
}), f = { effect: v, items: a, outrogroups: null, fallback: d };
|
|
2302
|
+
_ = !1, A && (r = E);
|
|
2303
2303
|
}
|
|
2304
2304
|
function Ut(t) {
|
|
2305
|
-
for (; t !== null && (t.f &
|
|
2305
|
+
for (; t !== null && (t.f & xe) === 0; )
|
|
2306
2306
|
t = t.next;
|
|
2307
2307
|
return t;
|
|
2308
2308
|
}
|
|
2309
2309
|
function Hr(t, e, i, o, s) {
|
|
2310
|
-
var n = (o &
|
|
2310
|
+
var n = (o & As) !== 0, r = e.length, a = t.items, l = Ut(t.effect.first), c, d = null, h, p = [], _ = [], g, v, f, y;
|
|
2311
2311
|
if (n)
|
|
2312
2312
|
for (y = 0; y < r; y += 1)
|
|
2313
|
-
g = e[y],
|
|
2314
|
-
a.get(
|
|
2313
|
+
g = e[y], v = s(g, y), f = /** @type {EachItem} */
|
|
2314
|
+
a.get(v).e, (f.f & Xe) === 0 && (f.nodes?.a?.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(f));
|
|
2315
2315
|
for (y = 0; y < r; y += 1) {
|
|
2316
|
-
if (g = e[y],
|
|
2317
|
-
a.get(
|
|
2318
|
-
for (const
|
|
2319
|
-
|
|
2320
|
-
if ((
|
|
2321
|
-
if (
|
|
2322
|
-
Kt(
|
|
2316
|
+
if (g = e[y], v = s(g, y), f = /** @type {EachItem} */
|
|
2317
|
+
a.get(v).e, t.outrogroups !== null)
|
|
2318
|
+
for (const D of t.outrogroups)
|
|
2319
|
+
D.pending.delete(f), D.done.delete(f);
|
|
2320
|
+
if ((f.f & Xe) !== 0)
|
|
2321
|
+
if (f.f ^= Xe, f === l)
|
|
2322
|
+
Kt(f, null, i);
|
|
2323
2323
|
else {
|
|
2324
|
-
var
|
|
2325
|
-
|
|
2324
|
+
var S = d ? d.next : l;
|
|
2325
|
+
f === t.effect.last && (t.effect.last = f.prev), f.prev && (f.prev.next = f.next), f.next && (f.next.prev = f.prev), et(t, d, f), et(t, f, S), Kt(f, S, i), d = f, p = [], _ = [], l = Ut(d.next);
|
|
2326
2326
|
continue;
|
|
2327
2327
|
}
|
|
2328
|
-
if ((
|
|
2329
|
-
if (
|
|
2330
|
-
if (p.length <
|
|
2331
|
-
var ae =
|
|
2328
|
+
if ((f.f & re) !== 0 && (xo(f), n && (f.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(f))), f !== l) {
|
|
2329
|
+
if (c !== void 0 && c.has(f)) {
|
|
2330
|
+
if (p.length < _.length) {
|
|
2331
|
+
var ae = _[0], Q;
|
|
2332
2332
|
d = ae.prev;
|
|
2333
2333
|
var Me = p[0], Qe = p[p.length - 1];
|
|
2334
2334
|
for (Q = 0; Q < p.length; Q += 1)
|
|
2335
2335
|
Kt(p[Q], ae, i);
|
|
2336
|
-
for (Q = 0; Q <
|
|
2337
|
-
|
|
2338
|
-
et(t, Me.prev, Qe.next), et(t, d, Me), et(t, Qe, ae), l = ae, d = Qe, y -= 1, p = [],
|
|
2336
|
+
for (Q = 0; Q < _.length; Q += 1)
|
|
2337
|
+
c.delete(_[Q]);
|
|
2338
|
+
et(t, Me.prev, Qe.next), et(t, d, Me), et(t, Qe, ae), l = ae, d = Qe, y -= 1, p = [], _ = [];
|
|
2339
2339
|
} else
|
|
2340
|
-
|
|
2340
|
+
c.delete(f), Kt(f, l, i), et(t, f.prev, f.next), et(t, f, d === null ? t.effect.first : d.next), et(t, d, f), d = f;
|
|
2341
2341
|
continue;
|
|
2342
2342
|
}
|
|
2343
|
-
for (p = [],
|
|
2344
|
-
(
|
|
2343
|
+
for (p = [], _ = []; l !== null && l !== f; )
|
|
2344
|
+
(c ?? (c = /* @__PURE__ */ new Set())).add(l), _.push(l), l = Ut(l.next);
|
|
2345
2345
|
if (l === null)
|
|
2346
2346
|
continue;
|
|
2347
2347
|
}
|
|
2348
|
-
(
|
|
2348
|
+
(f.f & Xe) === 0 && p.push(f), d = f, l = Ut(f.next);
|
|
2349
2349
|
}
|
|
2350
2350
|
if (t.outrogroups !== null) {
|
|
2351
|
-
for (const
|
|
2352
|
-
|
|
2351
|
+
for (const D of t.outrogroups)
|
|
2352
|
+
D.pending.size === 0 && (uo(Ri(D.done)), t.outrogroups?.delete(D));
|
|
2353
2353
|
t.outrogroups.size === 0 && (t.outrogroups = null);
|
|
2354
2354
|
}
|
|
2355
|
-
if (l !== null ||
|
|
2355
|
+
if (l !== null || c !== void 0) {
|
|
2356
2356
|
var K = [];
|
|
2357
|
-
if (
|
|
2358
|
-
for (
|
|
2359
|
-
(
|
|
2357
|
+
if (c !== void 0)
|
|
2358
|
+
for (f of c)
|
|
2359
|
+
(f.f & re) === 0 && K.push(f);
|
|
2360
2360
|
for (; l !== null; )
|
|
2361
2361
|
(l.f & re) === 0 && l !== t.fallback && K.push(l), l = Ut(l.next);
|
|
2362
2362
|
var Ie = K.length;
|
|
2363
2363
|
if (Ie > 0) {
|
|
2364
|
-
var
|
|
2364
|
+
var Ve = (o & cn) !== 0 && r === 0 ? i : null;
|
|
2365
2365
|
if (n) {
|
|
2366
2366
|
for (y = 0; y < Ie; y += 1)
|
|
2367
2367
|
K[y].nodes?.a?.measure();
|
|
2368
2368
|
for (y = 0; y < Ie; y += 1)
|
|
2369
2369
|
K[y].nodes?.a?.fix();
|
|
2370
2370
|
}
|
|
2371
|
-
Pr(t, K,
|
|
2371
|
+
Pr(t, K, Ve);
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
2374
|
n && qe(() => {
|
|
2375
|
-
if (
|
|
2376
|
-
for (
|
|
2377
|
-
|
|
2375
|
+
if (h !== void 0)
|
|
2376
|
+
for (f of h)
|
|
2377
|
+
f.nodes?.a?.apply();
|
|
2378
2378
|
});
|
|
2379
2379
|
}
|
|
2380
2380
|
function Br(t, e, i, o, s, n, r, a) {
|
|
2381
|
-
var l = (r & Ss) !== 0 ? (r &
|
|
2381
|
+
var l = (r & Ss) !== 0 ? (r & Es) === 0 ? /* @__PURE__ */ Nn(i, !1, !1) : wt(i) : null, c = (r & Is) !== 0 ? wt(s) : null;
|
|
2382
2382
|
return {
|
|
2383
2383
|
v: l,
|
|
2384
|
-
i:
|
|
2385
|
-
e:
|
|
2384
|
+
i: c,
|
|
2385
|
+
e: be(() => (n(e, l ?? i, c ?? s, a), () => {
|
|
2386
2386
|
t.delete(o);
|
|
2387
2387
|
}))
|
|
2388
2388
|
};
|
|
@@ -2395,7 +2395,7 @@ function Kt(t, e, i) {
|
|
|
2395
2395
|
) : i; o !== null; ) {
|
|
2396
2396
|
var r = (
|
|
2397
2397
|
/** @type {TemplateNode} */
|
|
2398
|
-
/* @__PURE__ */
|
|
2398
|
+
/* @__PURE__ */ Ce(o)
|
|
2399
2399
|
);
|
|
2400
2400
|
if (n.before(o), o === s)
|
|
2401
2401
|
return;
|
|
@@ -2405,7 +2405,7 @@ function Kt(t, e, i) {
|
|
|
2405
2405
|
function et(t, e, i) {
|
|
2406
2406
|
e === null ? t.effect.first = i : e.next = i, i === null ? t.effect.last = e : i.prev = e;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Fr(t, e) {
|
|
2409
2409
|
Un(() => {
|
|
2410
2410
|
var i = t.getRootNode(), o = (
|
|
2411
2411
|
/** @type {ShadowRoot} */
|
|
@@ -2426,7 +2426,7 @@ function Gr(t, e) {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
const Wo = [...`
|
|
2428
2428
|
\r\f \v\uFEFF`];
|
|
2429
|
-
function
|
|
2429
|
+
function Gr(t, e, i) {
|
|
2430
2430
|
var o = t == null ? "" : "" + t;
|
|
2431
2431
|
if (e && (o = o ? o + " " + e : e), i) {
|
|
2432
2432
|
for (var s in i)
|
|
@@ -2445,28 +2445,28 @@ function Ur(t, e) {
|
|
|
2445
2445
|
}
|
|
2446
2446
|
function hi(t, e, i, o, s, n) {
|
|
2447
2447
|
var r = t.__className;
|
|
2448
|
-
if (
|
|
2449
|
-
var a =
|
|
2450
|
-
(!
|
|
2448
|
+
if (A || r !== i || r === void 0) {
|
|
2449
|
+
var a = Gr(i, o, n);
|
|
2450
|
+
(!A || a !== t.getAttribute("class")) && (a == null ? t.removeAttribute("class") : t.className = a), t.__className = i;
|
|
2451
2451
|
} else if (n && s !== n)
|
|
2452
2452
|
for (var l in n) {
|
|
2453
|
-
var
|
|
2454
|
-
(s == null ||
|
|
2453
|
+
var c = !!n[l];
|
|
2454
|
+
(s == null || c !== !!s[l]) && t.classList.toggle(l, c);
|
|
2455
2455
|
}
|
|
2456
2456
|
return n;
|
|
2457
2457
|
}
|
|
2458
2458
|
function Wi(t, e, i, o) {
|
|
2459
2459
|
var s = t.__style;
|
|
2460
|
-
if (
|
|
2460
|
+
if (A || s !== e) {
|
|
2461
2461
|
var n = Ur(e);
|
|
2462
|
-
(!
|
|
2462
|
+
(!A || n !== t.getAttribute("style")) && (n == null ? t.removeAttribute("style") : t.style.cssText = n), t.__style = e;
|
|
2463
2463
|
}
|
|
2464
2464
|
return o;
|
|
2465
2465
|
}
|
|
2466
|
-
const Xr = /* @__PURE__ */ Symbol("is custom element"), Kr = /* @__PURE__ */ Symbol("is html"), Wr =
|
|
2466
|
+
const Xr = /* @__PURE__ */ Symbol("is custom element"), Kr = /* @__PURE__ */ Symbol("is html"), Wr = Ds ? "link" : "LINK";
|
|
2467
2467
|
function Xt(t, e, i, o) {
|
|
2468
2468
|
var s = qr(t);
|
|
2469
|
-
|
|
2469
|
+
A && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Wr) || s[e] !== (s[e] = i) && (e === "loading" && (t[Vs] = i), i == null ? t.removeAttribute(e) : typeof i != "string" && Jr(t).includes(e) ? t[e] = i : t.setAttribute(e, i));
|
|
2470
2470
|
}
|
|
2471
2471
|
function qr(t) {
|
|
2472
2472
|
return (
|
|
@@ -2524,18 +2524,18 @@ function Yo(t, e, i, o) {
|
|
|
2524
2524
|
);
|
|
2525
2525
|
return p === void 0 ? r() : (n = !0, p);
|
|
2526
2526
|
};
|
|
2527
|
-
var
|
|
2527
|
+
var c = !1, d = /* @__PURE__ */ Ci(() => (c = !1, l())), h = (
|
|
2528
2528
|
/** @type {Effect} */
|
|
2529
|
-
|
|
2529
|
+
R
|
|
2530
2530
|
);
|
|
2531
2531
|
return (
|
|
2532
2532
|
/** @type {() => V} */
|
|
2533
|
-
(function(p,
|
|
2533
|
+
(function(p, _) {
|
|
2534
2534
|
if (arguments.length > 0) {
|
|
2535
|
-
const g =
|
|
2536
|
-
return M(d, g),
|
|
2535
|
+
const g = _ ? m(d) : p;
|
|
2536
|
+
return M(d, g), c = !0, s !== void 0 && (s = g), p;
|
|
2537
2537
|
}
|
|
2538
|
-
return st &&
|
|
2538
|
+
return st && c || (h.f & We) !== 0 ? d.v : m(d);
|
|
2539
2539
|
})
|
|
2540
2540
|
);
|
|
2541
2541
|
}
|
|
@@ -2551,28 +2551,28 @@ class Zr {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
constructor(e) {
|
|
2553
2553
|
/** @type {any} */
|
|
2554
|
-
|
|
2554
|
+
k(this, Ue);
|
|
2555
2555
|
/** @type {Record<string, any>} */
|
|
2556
|
-
|
|
2556
|
+
k(this, de);
|
|
2557
2557
|
var i = /* @__PURE__ */ new Map(), o = (n, r) => {
|
|
2558
|
-
var a = /* @__PURE__ */
|
|
2558
|
+
var a = /* @__PURE__ */ Nn(r, !1, !1);
|
|
2559
2559
|
return i.set(n, a), a;
|
|
2560
2560
|
};
|
|
2561
2561
|
const s = new Proxy(
|
|
2562
2562
|
{ ...e.props || {}, $$events: {} },
|
|
2563
2563
|
{
|
|
2564
2564
|
get(n, r) {
|
|
2565
|
-
return
|
|
2565
|
+
return m(i.get(r) ?? o(r, Reflect.get(n, r)));
|
|
2566
2566
|
},
|
|
2567
2567
|
has(n, r) {
|
|
2568
|
-
return r === Ms ? !0 : (
|
|
2568
|
+
return r === Ms ? !0 : (m(i.get(r) ?? o(r, Reflect.get(n, r))), Reflect.has(n, r));
|
|
2569
2569
|
},
|
|
2570
2570
|
set(n, r, a) {
|
|
2571
2571
|
return M(i.get(r) ?? o(r, a), a), Reflect.set(n, r, a);
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
);
|
|
2575
|
-
b(this, de, (e.hydrate ?
|
|
2575
|
+
b(this, de, (e.hydrate ? Nr : ss)(e.component, {
|
|
2576
2576
|
target: e.target,
|
|
2577
2577
|
anchor: e.anchor,
|
|
2578
2578
|
props: s,
|
|
@@ -2580,27 +2580,27 @@ class Zr {
|
|
|
2580
2580
|
intro: e.intro ?? !1,
|
|
2581
2581
|
recover: e.recover
|
|
2582
2582
|
})), (!e?.props?.$$host || e.sync === !1) && to(), b(this, Ue, s.$$events);
|
|
2583
|
-
for (const n of Object.keys(
|
|
2584
|
-
n === "$set" || n === "$destroy" || n === "$on" ||
|
|
2583
|
+
for (const n of Object.keys(u(this, de)))
|
|
2584
|
+
n === "$set" || n === "$destroy" || n === "$on" || Ti(this, n, {
|
|
2585
2585
|
get() {
|
|
2586
|
-
return
|
|
2586
|
+
return u(this, de)[n];
|
|
2587
2587
|
},
|
|
2588
2588
|
/** @param {any} value */
|
|
2589
2589
|
set(r) {
|
|
2590
|
-
|
|
2590
|
+
u(this, de)[n] = r;
|
|
2591
2591
|
},
|
|
2592
2592
|
enumerable: !0
|
|
2593
2593
|
});
|
|
2594
|
-
|
|
2594
|
+
u(this, de).$set = /** @param {Record<string, any>} next */
|
|
2595
2595
|
(n) => {
|
|
2596
2596
|
Object.assign(s, n);
|
|
2597
|
-
},
|
|
2598
|
-
Mr(
|
|
2597
|
+
}, u(this, de).$destroy = () => {
|
|
2598
|
+
Mr(u(this, de));
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
2601
|
/** @param {Record<string, any>} props */
|
|
2602
2602
|
$set(e) {
|
|
2603
|
-
|
|
2603
|
+
u(this, de).$set(e);
|
|
2604
2604
|
}
|
|
2605
2605
|
/**
|
|
2606
2606
|
* @param {string} event
|
|
@@ -2608,17 +2608,17 @@ class Zr {
|
|
|
2608
2608
|
* @returns {any}
|
|
2609
2609
|
*/
|
|
2610
2610
|
$on(e, i) {
|
|
2611
|
-
|
|
2611
|
+
u(this, Ue)[e] = u(this, Ue)[e] || [];
|
|
2612
2612
|
const o = (...s) => i.call(this, ...s);
|
|
2613
|
-
return
|
|
2614
|
-
|
|
2613
|
+
return u(this, Ue)[e].push(o), () => {
|
|
2614
|
+
u(this, Ue)[e] = u(this, Ue)[e].filter(
|
|
2615
2615
|
/** @param {any} fn */
|
|
2616
2616
|
(s) => s !== o
|
|
2617
2617
|
);
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
2620
|
$destroy() {
|
|
2621
|
-
|
|
2621
|
+
u(this, de).$destroy();
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
2624
|
Ue = new WeakMap(), de = new WeakMap();
|
|
@@ -2632,27 +2632,27 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
|
|
|
2632
2632
|
constructor(e, i, o) {
|
|
2633
2633
|
super();
|
|
2634
2634
|
/** The Svelte component constructor */
|
|
2635
|
-
|
|
2635
|
+
w(this, "$$ctor");
|
|
2636
2636
|
/** Slots */
|
|
2637
|
-
|
|
2637
|
+
w(this, "$$s");
|
|
2638
2638
|
/** @type {any} The Svelte component instance */
|
|
2639
|
-
|
|
2639
|
+
w(this, "$$c");
|
|
2640
2640
|
/** Whether or not the custom element is connected */
|
|
2641
|
-
|
|
2641
|
+
w(this, "$$cn", !1);
|
|
2642
2642
|
/** @type {Record<string, any>} Component props data */
|
|
2643
|
-
|
|
2643
|
+
w(this, "$$d", {});
|
|
2644
2644
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2645
|
-
|
|
2645
|
+
w(this, "$$r", !1);
|
|
2646
2646
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2647
|
-
|
|
2647
|
+
w(this, "$$p_d", {});
|
|
2648
2648
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2649
|
-
|
|
2649
|
+
w(this, "$$l", {});
|
|
2650
2650
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2651
|
-
|
|
2651
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2652
2652
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2653
|
-
|
|
2653
|
+
w(this, "$$me");
|
|
2654
2654
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2655
|
-
|
|
2655
|
+
w(this, "$$shadowRoot", null);
|
|
2656
2656
|
this.$$ctor = e, this.$$s = i, o && (this.$$shadowRoot = this.attachShadow(o));
|
|
2657
2657
|
}
|
|
2658
2658
|
/**
|
|
@@ -2683,7 +2683,7 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
|
|
|
2683
2683
|
let e = function(s) {
|
|
2684
2684
|
return (n) => {
|
|
2685
2685
|
const r = yo("slot");
|
|
2686
|
-
s !== "default" && (r.name = s),
|
|
2686
|
+
s !== "default" && (r.name = s), ge(n, r);
|
|
2687
2687
|
};
|
|
2688
2688
|
};
|
|
2689
2689
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
@@ -2805,21 +2805,21 @@ function tl(t, e, i, o, s, n) {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
};
|
|
2807
2807
|
return ki(e).forEach((a) => {
|
|
2808
|
-
|
|
2808
|
+
Ti(r.prototype, a, {
|
|
2809
2809
|
get() {
|
|
2810
2810
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2811
2811
|
},
|
|
2812
2812
|
set(l) {
|
|
2813
2813
|
l = wi(a, l, e), this.$$d[a] = l;
|
|
2814
|
-
var
|
|
2815
|
-
if (
|
|
2816
|
-
var d = St(
|
|
2817
|
-
d ?
|
|
2814
|
+
var c = this.$$c;
|
|
2815
|
+
if (c) {
|
|
2816
|
+
var d = St(c, a)?.get;
|
|
2817
|
+
d ? c[a] = l : c.$set({ [a]: l });
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
}), o.forEach((a) => {
|
|
2822
|
-
|
|
2822
|
+
Ti(r.prototype, a, {
|
|
2823
2823
|
get() {
|
|
2824
2824
|
return this.$$c?.[a];
|
|
2825
2825
|
}
|
|
@@ -2830,23 +2830,23 @@ function tl(t, e, i, o, s, n) {
|
|
|
2830
2830
|
class il extends Event {
|
|
2831
2831
|
constructor(i, o, s, n) {
|
|
2832
2832
|
super("context-request", { bubbles: !0, composed: !0 });
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2833
|
+
w(this, "context");
|
|
2834
|
+
w(this, "contextTarget");
|
|
2835
|
+
w(this, "callback");
|
|
2836
|
+
w(this, "subscribe");
|
|
2837
2837
|
this.context = i, this.contextTarget = o, this.callback = s, this.subscribe = n ?? !1;
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
2840
|
class ol {
|
|
2841
2841
|
constructor(e, i) {
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2842
|
+
w(this, "host");
|
|
2843
|
+
w(this, "context");
|
|
2844
|
+
w(this, "subscribe");
|
|
2845
|
+
w(this, "onValue");
|
|
2846
|
+
w(this, "isConnected", !1);
|
|
2847
|
+
w(this, "unsubscribe");
|
|
2848
|
+
w(this, "currentValue");
|
|
2849
|
+
w(this, "handleValue", (e, i) => {
|
|
2850
2850
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = e, this.onValue?.(e);
|
|
2851
2851
|
});
|
|
2852
2852
|
this.host = e, this.context = i.context, this.subscribe = i.subscribe ?? !0, this.onValue = i.onValue;
|
|
@@ -2870,13 +2870,13 @@ function rl(t, e, i) {
|
|
|
2870
2870
|
const s = new ol(t, {
|
|
2871
2871
|
context: e,
|
|
2872
2872
|
subscribe: !0,
|
|
2873
|
-
onValue: (
|
|
2874
|
-
o = !0, i(
|
|
2873
|
+
onValue: (c) => {
|
|
2874
|
+
o = !0, i(c);
|
|
2875
2875
|
}
|
|
2876
2876
|
});
|
|
2877
2877
|
s.connect();
|
|
2878
|
-
const n = (
|
|
2879
|
-
|
|
2878
|
+
const n = (c) => {
|
|
2879
|
+
c.context === e && s.requestValue();
|
|
2880
2880
|
};
|
|
2881
2881
|
t.addEventListener("context-provider", n);
|
|
2882
2882
|
let r = 0;
|
|
@@ -2905,21 +2905,29 @@ var Zo;
|
|
|
2905
2905
|
(function(t) {
|
|
2906
2906
|
t.YELLOW = "yellow", t.GREEN = "green", t.BLUE = "blue", t.PINK = "pink", t.ORANGE = "orange", t.UNDERLINE = "underline";
|
|
2907
2907
|
})(Zo || (Zo = {}));
|
|
2908
|
-
|
|
2908
|
+
const cl = {
|
|
2909
|
+
tts: "textToSpeech",
|
|
2910
|
+
colorScheme: "theme"
|
|
2911
|
+
};
|
|
2912
|
+
function ul(t) {
|
|
2913
|
+
const e = t.trim();
|
|
2914
|
+
return e ? cl[e] || e : "";
|
|
2915
|
+
}
|
|
2916
|
+
class dl {
|
|
2909
2917
|
constructor() {
|
|
2910
|
-
|
|
2911
|
-
|
|
2918
|
+
w(this, "tools", /* @__PURE__ */ new Map());
|
|
2919
|
+
w(this, "pnpIndex", /* @__PURE__ */ new Map());
|
|
2912
2920
|
// pnpSupportId → Set<toolId>
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2921
|
+
w(this, "componentOverrides", {});
|
|
2922
|
+
w(this, "moduleLoaders", /* @__PURE__ */ new Map());
|
|
2923
|
+
w(this, "loadedToolModules", /* @__PURE__ */ new Set());
|
|
2924
|
+
w(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2917
2925
|
}
|
|
2918
2926
|
/**
|
|
2919
2927
|
* Normalize a single tool alias to canonical toolId.
|
|
2920
2928
|
*/
|
|
2921
2929
|
normalizeToolId(e) {
|
|
2922
|
-
return e
|
|
2930
|
+
return ul(e);
|
|
2923
2931
|
}
|
|
2924
2932
|
/**
|
|
2925
2933
|
* Normalize a list of tool aliases to canonical toolIds.
|
|
@@ -3022,6 +3030,24 @@ class cl {
|
|
|
3022
3030
|
getToolsByLevel(e) {
|
|
3023
3031
|
return this.getAllTools().filter((i) => i.supportedLevels.includes(e));
|
|
3024
3032
|
}
|
|
3033
|
+
/**
|
|
3034
|
+
* Resolve tool activation with backward-compatible defaults.
|
|
3035
|
+
*/
|
|
3036
|
+
getToolActivation(e) {
|
|
3037
|
+
return this.get(e)?.activation || "toolbar-toggle";
|
|
3038
|
+
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Resolve singleton scope for a tool when present.
|
|
3041
|
+
*/
|
|
3042
|
+
getToolSingletonScope(e) {
|
|
3043
|
+
return this.get(e)?.singletonScope || null;
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* Filter tool IDs by activation type.
|
|
3047
|
+
*/
|
|
3048
|
+
filterToolIdsByActivation(e, i) {
|
|
3049
|
+
return e.filter((o) => this.getToolActivation(o) === i);
|
|
3050
|
+
}
|
|
3025
3051
|
/**
|
|
3026
3052
|
* Filter tools by visibility in a given context
|
|
3027
3053
|
*
|
|
@@ -3061,7 +3087,9 @@ class cl {
|
|
|
3061
3087
|
name: e.name,
|
|
3062
3088
|
description: e.description,
|
|
3063
3089
|
pnpSupportIds: e.pnpSupportIds || [],
|
|
3064
|
-
supportedLevels: e.supportedLevels
|
|
3090
|
+
supportedLevels: e.supportedLevels,
|
|
3091
|
+
activation: e.activation || "toolbar-toggle",
|
|
3092
|
+
singletonScope: e.singletonScope || null
|
|
3065
3093
|
}));
|
|
3066
3094
|
}
|
|
3067
3095
|
/**
|
|
@@ -3158,10 +3186,10 @@ class cl {
|
|
|
3158
3186
|
function as(t) {
|
|
3159
3187
|
return t.level === "item";
|
|
3160
3188
|
}
|
|
3161
|
-
function
|
|
3189
|
+
function pl(t) {
|
|
3162
3190
|
return t.level === "passage";
|
|
3163
3191
|
}
|
|
3164
|
-
function
|
|
3192
|
+
function fl(t) {
|
|
3165
3193
|
return t.level === "rubric";
|
|
3166
3194
|
}
|
|
3167
3195
|
function cs(t) {
|
|
@@ -3178,9 +3206,9 @@ function Io(t) {
|
|
|
3178
3206
|
if (a) {
|
|
3179
3207
|
for (const l of Object.values(a))
|
|
3180
3208
|
if (typeof l == "string" && i.push(o(l)), Array.isArray(l)) {
|
|
3181
|
-
for (const
|
|
3182
|
-
if (
|
|
3183
|
-
for (const d of Object.values(
|
|
3209
|
+
for (const c of l)
|
|
3210
|
+
if (c && typeof c == "object")
|
|
3211
|
+
for (const d of Object.values(c))
|
|
3184
3212
|
typeof d == "string" && i.push(o(d));
|
|
3185
3213
|
}
|
|
3186
3214
|
}
|
|
@@ -3199,27 +3227,46 @@ function Io(t) {
|
|
|
3199
3227
|
const r = i.models, a = Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : [];
|
|
3200
3228
|
for (const l of a)
|
|
3201
3229
|
if (!(!l || typeof l != "object")) {
|
|
3202
|
-
for (const
|
|
3203
|
-
if (typeof
|
|
3204
|
-
for (const d of
|
|
3230
|
+
for (const c of Object.values(l))
|
|
3231
|
+
if (typeof c == "string" && o.push(s(c)), Array.isArray(c)) {
|
|
3232
|
+
for (const d of c)
|
|
3205
3233
|
if (d && typeof d == "object")
|
|
3206
|
-
for (const
|
|
3207
|
-
typeof
|
|
3234
|
+
for (const h of Object.values(d))
|
|
3235
|
+
typeof h == "string" && o.push(s(h));
|
|
3208
3236
|
}
|
|
3209
3237
|
}
|
|
3210
3238
|
return o.filter(Boolean).join(" ").trim();
|
|
3211
3239
|
}
|
|
3212
|
-
if (
|
|
3240
|
+
if (pl(t)) {
|
|
3213
3241
|
const e = t.passage;
|
|
3214
|
-
|
|
3242
|
+
if (!e?.config)
|
|
3243
|
+
return "";
|
|
3244
|
+
const i = e.config, o = [], s = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
3245
|
+
typeof i.markup == "string" && o.push(s(i.markup)), typeof i.content == "string" && o.push(s(i.content)), typeof i.prompt == "string" && o.push(s(i.prompt));
|
|
3246
|
+
const n = i.elements;
|
|
3247
|
+
if (n && typeof n == "object")
|
|
3248
|
+
for (const l of Object.values(n))
|
|
3249
|
+
typeof l == "string" && o.push(s(l));
|
|
3250
|
+
const r = i.models, a = Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : [];
|
|
3251
|
+
for (const l of a)
|
|
3252
|
+
if (!(!l || typeof l != "object")) {
|
|
3253
|
+
for (const c of Object.values(l))
|
|
3254
|
+
if (typeof c == "string" && o.push(s(c)), Array.isArray(c)) {
|
|
3255
|
+
for (const d of c)
|
|
3256
|
+
if (d && typeof d == "object")
|
|
3257
|
+
for (const h of Object.values(d))
|
|
3258
|
+
typeof h == "string" && o.push(s(h));
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
return o.filter(Boolean).join(" ").trim();
|
|
3215
3262
|
}
|
|
3216
|
-
if (
|
|
3263
|
+
if (fl(t)) {
|
|
3217
3264
|
const e = t.rubricBlock;
|
|
3218
3265
|
return e.passage?.config ? (e.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (e.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
3219
3266
|
}
|
|
3220
3267
|
return "";
|
|
3221
3268
|
}
|
|
3222
|
-
function
|
|
3269
|
+
function Ni(t) {
|
|
3223
3270
|
const e = Io(t);
|
|
3224
3271
|
return [
|
|
3225
3272
|
/<math[>\s]/i,
|
|
@@ -3236,7 +3283,7 @@ function ji(t) {
|
|
|
3236
3283
|
// Simple arithmetic
|
|
3237
3284
|
].some((o) => o.test(e));
|
|
3238
3285
|
}
|
|
3239
|
-
function
|
|
3286
|
+
function ml(t) {
|
|
3240
3287
|
const e = [
|
|
3241
3288
|
"pie-multiple-choice",
|
|
3242
3289
|
"pie-inline-choice",
|
|
@@ -3269,7 +3316,7 @@ function pl(t) {
|
|
|
3269
3316
|
function Mi(t) {
|
|
3270
3317
|
return Io(t).trim().length >= 10;
|
|
3271
3318
|
}
|
|
3272
|
-
function
|
|
3319
|
+
function _l(t) {
|
|
3273
3320
|
const e = Io(t);
|
|
3274
3321
|
return [
|
|
3275
3322
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -3282,25 +3329,25 @@ function fl(t) {
|
|
|
3282
3329
|
/physics|force|energy|velocity|acceleration/i
|
|
3283
3330
|
].some((o) => o.test(e));
|
|
3284
3331
|
}
|
|
3285
|
-
const
|
|
3332
|
+
const hl = [
|
|
3286
3333
|
"assessment",
|
|
3287
3334
|
"section",
|
|
3288
3335
|
"item",
|
|
3289
3336
|
"passage",
|
|
3290
3337
|
"rubric"
|
|
3291
|
-
],
|
|
3292
|
-
function
|
|
3293
|
-
return
|
|
3338
|
+
], gl = new Set(hl);
|
|
3339
|
+
function yl(t) {
|
|
3340
|
+
return gl.has(t);
|
|
3294
3341
|
}
|
|
3295
|
-
function
|
|
3296
|
-
const
|
|
3297
|
-
if (!
|
|
3342
|
+
function Se(t, e, i) {
|
|
3343
|
+
const o = t.trim(), s = i.trim();
|
|
3344
|
+
if (!o || !s)
|
|
3298
3345
|
throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
3299
|
-
if (!
|
|
3346
|
+
if (!yl(e))
|
|
3300
3347
|
throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
|
|
3301
|
-
return
|
|
3348
|
+
return `${o}:${e}:${s}`;
|
|
3302
3349
|
}
|
|
3303
|
-
const
|
|
3350
|
+
const bl = /* @__PURE__ */ new Set([
|
|
3304
3351
|
"annotation-xml",
|
|
3305
3352
|
"color-profile",
|
|
3306
3353
|
"font-face",
|
|
@@ -3309,7 +3356,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3309
3356
|
"font-face-format",
|
|
3310
3357
|
"font-face-name",
|
|
3311
3358
|
"missing-glyph"
|
|
3312
|
-
]),
|
|
3359
|
+
]), vl = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, wl = (t, e = "custom element tag") => {
|
|
3313
3360
|
if (!t || typeof t != "string")
|
|
3314
3361
|
throw new Error(`Invalid ${e}: expected a non-empty string`);
|
|
3315
3362
|
const i = t.trim();
|
|
@@ -3319,9 +3366,9 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3319
3366
|
throw new Error(`Invalid ${e} "${i}": custom element names must be lowercase`);
|
|
3320
3367
|
if (!i.includes("-"))
|
|
3321
3368
|
throw new Error(`Invalid ${e} "${i}": custom element names must include a hyphen`);
|
|
3322
|
-
if (
|
|
3369
|
+
if (bl.has(i))
|
|
3323
3370
|
throw new Error(`Invalid ${e} "${i}": this name is reserved by the HTML spec`);
|
|
3324
|
-
if (!
|
|
3371
|
+
if (!vl.test(i))
|
|
3325
3372
|
throw new Error(`Invalid ${e} "${i}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3326
3373
|
return i;
|
|
3327
3374
|
}, us = {
|
|
@@ -3332,17 +3379,18 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3332
3379
|
answerEliminator: "pie-tool-answer-eliminator",
|
|
3333
3380
|
highlighter: "pie-tool-annotation-toolbar",
|
|
3334
3381
|
lineReader: "pie-tool-line-reader",
|
|
3335
|
-
|
|
3382
|
+
theme: "pie-tool-theme",
|
|
3383
|
+
colorScheme: "pie-tool-theme",
|
|
3336
3384
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3337
3385
|
graph: "pie-tool-graph",
|
|
3338
3386
|
periodicTable: "pie-tool-periodic-table"
|
|
3339
|
-
},
|
|
3387
|
+
}, kl = (t, e) => {
|
|
3340
3388
|
const i = e?.toolTagMap?.[t] ?? us[t] ?? t;
|
|
3341
|
-
return
|
|
3342
|
-
},
|
|
3343
|
-
const s =
|
|
3344
|
-
return r ? r({ toolId: t, tagName: s, context: e, toolbarContext: i }) :
|
|
3345
|
-
},
|
|
3389
|
+
return wl(i, `tool component tag for "${t}"`);
|
|
3390
|
+
}, Tl = (t) => document.createElement(t), Ne = (t, e, i, o) => {
|
|
3391
|
+
const s = kl(t, o), r = o?.toolComponentFactories?.[t] ?? o?.toolComponentFactory;
|
|
3392
|
+
return r ? r({ toolId: t, tagName: s, context: e, toolbarContext: i }) : Tl(s);
|
|
3393
|
+
}, xl = {
|
|
3346
3394
|
toolId: "calculator",
|
|
3347
3395
|
name: "Calculator",
|
|
3348
3396
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
@@ -3368,20 +3416,28 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3368
3416
|
* (MathML, LaTeX, arithmetic markers).
|
|
3369
3417
|
*/
|
|
3370
3418
|
isVisibleInContext(t) {
|
|
3371
|
-
return
|
|
3419
|
+
return Ni(t);
|
|
3372
3420
|
},
|
|
3373
3421
|
renderToolbar(t, e) {
|
|
3374
|
-
const i =
|
|
3422
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = e.componentOverrides, s = Ne(this.toolId, t, e, o);
|
|
3375
3423
|
s.setAttribute("tool-id", i);
|
|
3376
|
-
const n =
|
|
3377
|
-
return n.setAttribute("tool-id", _e(this.toolId, "item", e.itemId, "inline")), n.setAttribute("target-tool-id", i), n.setAttribute("calculator-type", "scientific"), n.setAttribute("available-types", "basic,scientific,graphing"), n.setAttribute("size", e.ui?.size || "md"), {
|
|
3424
|
+
const n = {
|
|
3378
3425
|
toolId: this.toolId,
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3426
|
+
label: this.name,
|
|
3427
|
+
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
3428
|
+
disabled: !1,
|
|
3429
|
+
ariaLabel: "Open scientific calculator",
|
|
3430
|
+
tooltip: "Calculator",
|
|
3431
|
+
onClick: () => e.toggleTool(this.toolId),
|
|
3432
|
+
active: e.isToolVisible(i)
|
|
3433
|
+
};
|
|
3434
|
+
return {
|
|
3435
|
+
toolId: this.toolId,
|
|
3436
|
+
elements: [{ element: s, mount: "after-buttons" }],
|
|
3437
|
+
button: n,
|
|
3382
3438
|
sync: () => {
|
|
3383
3439
|
const r = e.isToolVisible(i);
|
|
3384
|
-
s.visible = r;
|
|
3440
|
+
n.active = r, n.ariaLabel = r ? "Close scientific calculator" : "Open scientific calculator", n.tooltip = r ? "Close calculator" : "Calculator", s.visible = r;
|
|
3385
3441
|
},
|
|
3386
3442
|
subscribeActive: (r) => e.subscribeVisibility ? e.subscribeVisibility(() => {
|
|
3387
3443
|
r(e.isToolVisible(i));
|
|
@@ -3389,7 +3445,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3389
3445
|
}
|
|
3390
3446
|
};
|
|
3391
3447
|
}
|
|
3392
|
-
},
|
|
3448
|
+
}, Sl = {
|
|
3393
3449
|
toolId: "textToSpeech",
|
|
3394
3450
|
name: "Text to Speech",
|
|
3395
3451
|
description: "Read content aloud",
|
|
@@ -3418,20 +3474,112 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3418
3474
|
return Mi(t);
|
|
3419
3475
|
},
|
|
3420
3476
|
renderToolbar(t, e) {
|
|
3421
|
-
|
|
3422
|
-
o.
|
|
3423
|
-
|
|
3477
|
+
let i = null;
|
|
3478
|
+
const o = e.ttsService, s = Se(this.toolId, e.scope.level, e.scope.scopeId), n = () => e.isToolVisible(s), r = {
|
|
3479
|
+
toolId: this.toolId,
|
|
3480
|
+
label: "Read aloud",
|
|
3481
|
+
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
3482
|
+
ariaLabel: "Read aloud",
|
|
3483
|
+
tooltip: "Read aloud",
|
|
3484
|
+
onClick: () => {
|
|
3485
|
+
p();
|
|
3486
|
+
},
|
|
3487
|
+
disabled: !1,
|
|
3488
|
+
active: !1
|
|
3489
|
+
}, a = () => {
|
|
3490
|
+
const _ = n() ? "Stop reading" : "Read aloud";
|
|
3491
|
+
r.label = _, r.ariaLabel = _, r.tooltip = _, r.active = n(), r.disabled = !e.ttsService;
|
|
3492
|
+
}, l = (_) => {
|
|
3493
|
+
(_ === "idle" || _ === "error") && n() && (e.toggleTool(this.toolId), a());
|
|
3494
|
+
}, c = async () => {
|
|
3495
|
+
e.ensureTTSReady && (i || (i = (async () => {
|
|
3496
|
+
await e.ensureTTSReady?.(), e.toolkitCoordinator?.highlightCoordinator && o?.setHighlightCoordinator?.(e.toolkitCoordinator.highlightCoordinator);
|
|
3497
|
+
})()), await i);
|
|
3498
|
+
}, d = () => {
|
|
3499
|
+
o?.stop?.(), n() && e.toggleTool(this.toolId), a();
|
|
3500
|
+
}, h = () => {
|
|
3501
|
+
const _ = e.getScopeElement?.();
|
|
3502
|
+
if (_)
|
|
3503
|
+
return _;
|
|
3504
|
+
const g = (y) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(y) : y.replace(/"/g, '\\"'), v = [
|
|
3505
|
+
e.catalogId,
|
|
3506
|
+
e.scope.itemId,
|
|
3507
|
+
e.scope.canonicalItemId
|
|
3508
|
+
].filter((y) => typeof y == "string" && y.length > 0), f = [];
|
|
3509
|
+
for (const y of v) {
|
|
3510
|
+
const S = g(y);
|
|
3511
|
+
e.scope.level === "passage" && f.push(`pie-passage-shell[item-id="${S}"] [data-region="content"]`), f.push(`pie-item-shell[item-id="${S}"] [data-region="content"]`);
|
|
3512
|
+
}
|
|
3513
|
+
f.push("[data-region='content']");
|
|
3514
|
+
for (const y of f) {
|
|
3515
|
+
const S = document.querySelector(y);
|
|
3516
|
+
if (S instanceof HTMLElement)
|
|
3517
|
+
return S;
|
|
3518
|
+
}
|
|
3519
|
+
return null;
|
|
3520
|
+
}, p = async () => {
|
|
3521
|
+
if (!o?.speak || !e.ttsService)
|
|
3522
|
+
return;
|
|
3523
|
+
if (n()) {
|
|
3524
|
+
d();
|
|
3525
|
+
return;
|
|
3526
|
+
}
|
|
3527
|
+
const _ = h();
|
|
3528
|
+
if (!_)
|
|
3529
|
+
return;
|
|
3530
|
+
const g = _.textContent || "";
|
|
3531
|
+
if (g.trim())
|
|
3532
|
+
try {
|
|
3533
|
+
n() || e.toggleTool(this.toolId), a(), await c(), o.setRootElement?.(_), o.speak(g, {
|
|
3534
|
+
// For passage-level TTS, use rendered DOM text as the source of truth.
|
|
3535
|
+
// Catalog/SSML content can diverge from rendered text and break
|
|
3536
|
+
// word-boundary-to-DOM mapping for progressive yellow highlighting.
|
|
3537
|
+
catalogId: e.scope.level === "passage" ? void 0 : e.catalogId || e.itemId,
|
|
3538
|
+
language: e.language,
|
|
3539
|
+
contentElement: _
|
|
3540
|
+
}).catch((v) => {
|
|
3541
|
+
console.error("[ttsToolRegistration] Failed to start reading:", v), a();
|
|
3542
|
+
}), a();
|
|
3543
|
+
} catch (v) {
|
|
3544
|
+
a(), console.error("[ttsToolRegistration] Failed to start reading:", v);
|
|
3545
|
+
}
|
|
3546
|
+
};
|
|
3424
3547
|
return {
|
|
3425
3548
|
toolId: this.toolId,
|
|
3426
|
-
|
|
3549
|
+
button: r,
|
|
3427
3550
|
sync: () => {
|
|
3428
|
-
|
|
3429
|
-
console.error("[ttsToolRegistration] Failed to initialize TTS service:",
|
|
3430
|
-
})
|
|
3551
|
+
a(), e.ensureTTSReady && c().catch((_) => {
|
|
3552
|
+
console.error("[ttsToolRegistration] Failed to initialize TTS service:", _);
|
|
3553
|
+
});
|
|
3554
|
+
},
|
|
3555
|
+
subscribeActive: (_) => {
|
|
3556
|
+
const g = [];
|
|
3557
|
+
if (e.subscribeVisibility) {
|
|
3558
|
+
const v = e.subscribeVisibility(() => {
|
|
3559
|
+
const f = n();
|
|
3560
|
+
a(), _(f);
|
|
3561
|
+
});
|
|
3562
|
+
g.push(v);
|
|
3563
|
+
}
|
|
3564
|
+
if (e.ttsService) {
|
|
3565
|
+
const v = `tts-toolbar:${s}`, f = (y) => {
|
|
3566
|
+
l(String(y || ""));
|
|
3567
|
+
const S = n();
|
|
3568
|
+
a(), _(S);
|
|
3569
|
+
};
|
|
3570
|
+
e.ttsService.onStateChange(v, f), g.push(() => {
|
|
3571
|
+
e.ttsService?.offStateChange(v, f);
|
|
3572
|
+
});
|
|
3573
|
+
}
|
|
3574
|
+
return g.length === 0 ? () => {
|
|
3575
|
+
} : () => {
|
|
3576
|
+
for (const v of g)
|
|
3577
|
+
v();
|
|
3578
|
+
};
|
|
3431
3579
|
}
|
|
3432
3580
|
};
|
|
3433
3581
|
}
|
|
3434
|
-
},
|
|
3582
|
+
}, Il = {
|
|
3435
3583
|
toolId: "ruler",
|
|
3436
3584
|
name: "Ruler",
|
|
3437
3585
|
description: "On-screen ruler for measurements",
|
|
@@ -3450,10 +3598,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3450
3598
|
* Pass 2: Ruler is relevant when math content is present
|
|
3451
3599
|
*/
|
|
3452
3600
|
isVisibleInContext(t) {
|
|
3453
|
-
return
|
|
3601
|
+
return Ni(t);
|
|
3454
3602
|
},
|
|
3455
3603
|
renderToolbar(t, e) {
|
|
3456
|
-
const i =
|
|
3604
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3457
3605
|
toolId: this.toolId,
|
|
3458
3606
|
label: this.name,
|
|
3459
3607
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3462,11 +3610,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3462
3610
|
tooltip: "Ruler",
|
|
3463
3611
|
onClick: () => e.toggleTool(this.toolId),
|
|
3464
3612
|
active: e.isToolVisible(i)
|
|
3465
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3613
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3466
3614
|
return n.setAttribute("tool-id", i), {
|
|
3467
3615
|
toolId: this.toolId,
|
|
3468
3616
|
button: o,
|
|
3469
|
-
|
|
3617
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3470
3618
|
sync: () => {
|
|
3471
3619
|
const r = e.isToolVisible(i);
|
|
3472
3620
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3477,7 +3625,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3477
3625
|
}
|
|
3478
3626
|
};
|
|
3479
3627
|
}
|
|
3480
|
-
},
|
|
3628
|
+
}, Al = {
|
|
3481
3629
|
toolId: "protractor",
|
|
3482
3630
|
name: "Protractor",
|
|
3483
3631
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3496,10 +3644,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3496
3644
|
* Pass 2: Protractor is relevant when math content is present
|
|
3497
3645
|
*/
|
|
3498
3646
|
isVisibleInContext(t) {
|
|
3499
|
-
return
|
|
3647
|
+
return Ni(t);
|
|
3500
3648
|
},
|
|
3501
3649
|
renderToolbar(t, e) {
|
|
3502
|
-
const i =
|
|
3650
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3503
3651
|
toolId: this.toolId,
|
|
3504
3652
|
label: this.name,
|
|
3505
3653
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3508,11 +3656,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3508
3656
|
tooltip: "Protractor",
|
|
3509
3657
|
onClick: () => e.toggleTool(this.toolId),
|
|
3510
3658
|
active: e.isToolVisible(i)
|
|
3511
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3659
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3512
3660
|
return n.setAttribute("tool-id", i), {
|
|
3513
3661
|
toolId: this.toolId,
|
|
3514
3662
|
button: o,
|
|
3515
|
-
|
|
3663
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3516
3664
|
sync: () => {
|
|
3517
3665
|
const r = e.isToolVisible(i);
|
|
3518
3666
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3523,7 +3671,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3523
3671
|
}
|
|
3524
3672
|
};
|
|
3525
3673
|
}
|
|
3526
|
-
},
|
|
3674
|
+
}, El = {
|
|
3527
3675
|
toolId: "answerEliminator",
|
|
3528
3676
|
name: "Answer Eliminator",
|
|
3529
3677
|
description: "Strike through answer choices",
|
|
@@ -3546,10 +3694,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3546
3694
|
* Pass 2: Answer eliminator is relevant only for choice-based questions
|
|
3547
3695
|
*/
|
|
3548
3696
|
isVisibleInContext(t) {
|
|
3549
|
-
return
|
|
3697
|
+
return ml(t);
|
|
3550
3698
|
},
|
|
3551
3699
|
renderToolbar(t, e) {
|
|
3552
|
-
const i =
|
|
3700
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = e.componentOverrides ?? {}, s = Ne(this.toolId, t, e, o);
|
|
3553
3701
|
s.setAttribute("tool-id", i), s.setAttribute("strategy", "strikethrough"), s.setAttribute("button-alignment", "inline");
|
|
3554
3702
|
const n = {
|
|
3555
3703
|
toolId: this.toolId,
|
|
@@ -3564,7 +3712,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3564
3712
|
return {
|
|
3565
3713
|
toolId: this.toolId,
|
|
3566
3714
|
button: n,
|
|
3567
|
-
|
|
3715
|
+
elements: [{ element: s, mount: "after-buttons" }],
|
|
3568
3716
|
sync: () => {
|
|
3569
3717
|
const r = e.isToolVisible(i);
|
|
3570
3718
|
n.active = r, s.visible = r, e.toolCoordinator && (s.coordinator = e.toolCoordinator), s.scopeElement = e.getScopeElement?.() || null, e.elementToolStateStore && (s.elementToolStateStore = e.elementToolStateStore);
|
|
@@ -3577,11 +3725,12 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3577
3725
|
}
|
|
3578
3726
|
};
|
|
3579
3727
|
}
|
|
3580
|
-
},
|
|
3728
|
+
}, Rl = {
|
|
3581
3729
|
toolId: "highlighter",
|
|
3582
3730
|
name: "Highlighter",
|
|
3583
3731
|
description: "Highlight text",
|
|
3584
3732
|
icon: "highlighter",
|
|
3733
|
+
activation: "toolbar-toggle",
|
|
3585
3734
|
// Highlighter appears at passage, rubric, item, and element levels
|
|
3586
3735
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3587
3736
|
// PNP support IDs
|
|
@@ -3593,7 +3742,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3593
3742
|
return Mi(t);
|
|
3594
3743
|
},
|
|
3595
3744
|
renderToolbar(t, e) {
|
|
3596
|
-
const i =
|
|
3745
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3597
3746
|
toolId: this.toolId,
|
|
3598
3747
|
label: this.name,
|
|
3599
3748
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3602,11 +3751,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3602
3751
|
tooltip: "Highlight",
|
|
3603
3752
|
onClick: () => e.toggleTool(this.toolId),
|
|
3604
3753
|
active: e.isToolVisible(i)
|
|
3605
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3754
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3606
3755
|
return n.setAttribute("tool-id", i), {
|
|
3607
3756
|
toolId: this.toolId,
|
|
3608
3757
|
button: o,
|
|
3609
|
-
|
|
3758
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3610
3759
|
sync: () => {
|
|
3611
3760
|
const r = e.isToolVisible(i);
|
|
3612
3761
|
o.active = r, n.enabled = r, n.visible = r, e.ttsService && (n.ttsService = e.ttsService);
|
|
@@ -3617,7 +3766,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3617
3766
|
}
|
|
3618
3767
|
};
|
|
3619
3768
|
}
|
|
3620
|
-
},
|
|
3769
|
+
}, $l = {
|
|
3621
3770
|
toolId: "lineReader",
|
|
3622
3771
|
name: "Line Reader",
|
|
3623
3772
|
description: "Reading guide overlay",
|
|
@@ -3645,7 +3794,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3645
3794
|
return Mi(t);
|
|
3646
3795
|
},
|
|
3647
3796
|
renderToolbar(t, e) {
|
|
3648
|
-
const i =
|
|
3797
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3649
3798
|
toolId: this.toolId,
|
|
3650
3799
|
label: this.name,
|
|
3651
3800
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3654,11 +3803,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3654
3803
|
tooltip: "Line Reader",
|
|
3655
3804
|
onClick: () => e.toggleTool(this.toolId),
|
|
3656
3805
|
active: e.isToolVisible(i)
|
|
3657
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3806
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3658
3807
|
return n.setAttribute("tool-id", i), {
|
|
3659
3808
|
toolId: this.toolId,
|
|
3660
3809
|
button: o,
|
|
3661
|
-
|
|
3810
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3662
3811
|
sync: () => {
|
|
3663
3812
|
const r = e.isToolVisible(i);
|
|
3664
3813
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3669,10 +3818,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3669
3818
|
}
|
|
3670
3819
|
};
|
|
3671
3820
|
}
|
|
3672
|
-
},
|
|
3673
|
-
toolId: "
|
|
3674
|
-
name: "
|
|
3675
|
-
description: "Accessible
|
|
3821
|
+
}, Ll = {
|
|
3822
|
+
toolId: "theme",
|
|
3823
|
+
name: "Theme",
|
|
3824
|
+
description: "Accessible themes and contrast",
|
|
3676
3825
|
icon: "swatch",
|
|
3677
3826
|
// Color scheme is assessment-wide
|
|
3678
3827
|
supportedLevels: ["assessment", "section"],
|
|
@@ -3686,7 +3835,9 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3686
3835
|
"invertColors",
|
|
3687
3836
|
// QTI 3.0 standard (visual.invertColors)
|
|
3688
3837
|
"colorScheme",
|
|
3689
|
-
//
|
|
3838
|
+
// Legacy alias
|
|
3839
|
+
"theme",
|
|
3840
|
+
// Canonical id
|
|
3690
3841
|
"highContrast",
|
|
3691
3842
|
// Common variant
|
|
3692
3843
|
"customColors"
|
|
@@ -3699,20 +3850,20 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3699
3850
|
return !0;
|
|
3700
3851
|
},
|
|
3701
3852
|
renderToolbar(t, e) {
|
|
3702
|
-
const i =
|
|
3853
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3703
3854
|
toolId: this.toolId,
|
|
3704
3855
|
label: this.name,
|
|
3705
3856
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
3706
3857
|
disabled: !1,
|
|
3707
|
-
ariaLabel: "
|
|
3708
|
-
tooltip: "
|
|
3858
|
+
ariaLabel: "Theme - Change colors and contrast",
|
|
3859
|
+
tooltip: "Theme",
|
|
3709
3860
|
onClick: () => e.toggleTool(this.toolId),
|
|
3710
3861
|
active: e.isToolVisible(i)
|
|
3711
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3862
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3712
3863
|
return n.setAttribute("tool-id", i), {
|
|
3713
3864
|
toolId: this.toolId,
|
|
3714
3865
|
button: o,
|
|
3715
|
-
|
|
3866
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3716
3867
|
sync: () => {
|
|
3717
3868
|
const r = e.isToolVisible(i);
|
|
3718
3869
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3723,11 +3874,13 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3723
3874
|
}
|
|
3724
3875
|
};
|
|
3725
3876
|
}
|
|
3726
|
-
},
|
|
3877
|
+
}, zl = Ll, Ol = {
|
|
3727
3878
|
toolId: "annotationToolbar",
|
|
3728
3879
|
name: "Highlighter",
|
|
3729
3880
|
description: "Highlight and annotate text",
|
|
3730
3881
|
icon: "highlighter",
|
|
3882
|
+
activation: "selection-gateway",
|
|
3883
|
+
singletonScope: "section",
|
|
3731
3884
|
// Annotation appears where there's text content
|
|
3732
3885
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3733
3886
|
// PNP support IDs
|
|
@@ -3751,7 +3904,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3751
3904
|
return Mi(t);
|
|
3752
3905
|
},
|
|
3753
3906
|
renderToolbar(t, e) {
|
|
3754
|
-
const i =
|
|
3907
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3755
3908
|
toolId: this.toolId,
|
|
3756
3909
|
label: this.name,
|
|
3757
3910
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3760,11 +3913,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3760
3913
|
tooltip: "Highlight",
|
|
3761
3914
|
onClick: () => e.toggleTool(this.toolId),
|
|
3762
3915
|
active: e.isToolVisible(i)
|
|
3763
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3916
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3764
3917
|
return n.setAttribute("tool-id", i), {
|
|
3765
3918
|
toolId: this.toolId,
|
|
3766
3919
|
button: o,
|
|
3767
|
-
|
|
3920
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3768
3921
|
sync: () => {
|
|
3769
3922
|
const r = e.isToolVisible(i);
|
|
3770
3923
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3775,7 +3928,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3775
3928
|
}
|
|
3776
3929
|
};
|
|
3777
3930
|
}
|
|
3778
|
-
},
|
|
3931
|
+
}, Cl = {
|
|
3779
3932
|
toolId: "graph",
|
|
3780
3933
|
name: "Graph",
|
|
3781
3934
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3798,10 +3951,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3798
3951
|
* Pass 2: Graph is relevant when math content is present
|
|
3799
3952
|
*/
|
|
3800
3953
|
isVisibleInContext(t) {
|
|
3801
|
-
return
|
|
3954
|
+
return Ni(t);
|
|
3802
3955
|
},
|
|
3803
3956
|
renderToolbar(t, e) {
|
|
3804
|
-
const i =
|
|
3957
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3805
3958
|
toolId: this.toolId,
|
|
3806
3959
|
label: this.name,
|
|
3807
3960
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3810,11 +3963,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3810
3963
|
tooltip: "Graph",
|
|
3811
3964
|
onClick: () => e.toggleTool(this.toolId),
|
|
3812
3965
|
active: e.isToolVisible(i)
|
|
3813
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
3966
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3814
3967
|
return n.setAttribute("tool-id", i), {
|
|
3815
3968
|
toolId: this.toolId,
|
|
3816
3969
|
button: o,
|
|
3817
|
-
|
|
3970
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3818
3971
|
sync: () => {
|
|
3819
3972
|
const r = e.isToolVisible(i);
|
|
3820
3973
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3825,7 +3978,7 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3825
3978
|
}
|
|
3826
3979
|
};
|
|
3827
3980
|
}
|
|
3828
|
-
},
|
|
3981
|
+
}, jl = {
|
|
3829
3982
|
toolId: "periodicTable",
|
|
3830
3983
|
name: "Periodic Table",
|
|
3831
3984
|
description: "Chemistry periodic table reference",
|
|
@@ -3846,10 +3999,10 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3846
3999
|
* Pass 2: Periodic table is relevant when science content is present
|
|
3847
4000
|
*/
|
|
3848
4001
|
isVisibleInContext(t) {
|
|
3849
|
-
return
|
|
4002
|
+
return _l(t);
|
|
3850
4003
|
},
|
|
3851
4004
|
renderToolbar(t, e) {
|
|
3852
|
-
const i =
|
|
4005
|
+
const i = Se(this.toolId, e.scope.level, e.scope.scopeId), o = {
|
|
3853
4006
|
toolId: this.toolId,
|
|
3854
4007
|
label: this.name,
|
|
3855
4008
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3858,11 +4011,11 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3858
4011
|
tooltip: "Periodic Table",
|
|
3859
4012
|
onClick: () => e.toggleTool(this.toolId),
|
|
3860
4013
|
active: e.isToolVisible(i)
|
|
3861
|
-
}, s = e.componentOverrides ?? {}, n =
|
|
4014
|
+
}, s = e.componentOverrides ?? {}, n = Ne(this.toolId, t, e, s);
|
|
3862
4015
|
return n.setAttribute("tool-id", i), {
|
|
3863
4016
|
toolId: this.toolId,
|
|
3864
4017
|
button: o,
|
|
3865
|
-
|
|
4018
|
+
elements: [{ element: n, mount: "after-buttons" }],
|
|
3866
4019
|
sync: () => {
|
|
3867
4020
|
const r = e.isToolVisible(i);
|
|
3868
4021
|
o.active = r, n.visible = r, e.toolkitCoordinator && (n.toolkitCoordinator = e.toolkitCoordinator);
|
|
@@ -3874,8 +4027,8 @@ const gl = /* @__PURE__ */ new Set([
|
|
|
3874
4027
|
};
|
|
3875
4028
|
}
|
|
3876
4029
|
};
|
|
3877
|
-
function
|
|
3878
|
-
const e = new
|
|
4030
|
+
function Nl(t = {}) {
|
|
4031
|
+
const e = new dl(), i = {
|
|
3879
4032
|
toolTagMap: {
|
|
3880
4033
|
...us,
|
|
3881
4034
|
...t.toolTagMap || {}
|
|
@@ -3883,17 +4036,17 @@ function Cl(t = {}) {
|
|
|
3883
4036
|
toolComponentFactory: t.toolComponentFactory,
|
|
3884
4037
|
toolComponentFactories: t.toolComponentFactories
|
|
3885
4038
|
}, o = (s) => t.overrides?.[s.toolId] || s;
|
|
3886
|
-
return e.register(o(
|
|
4039
|
+
return e.register(o(xl)), e.register(o(Sl)), e.register(o(Il)), e.register(o(Al)), e.register(o(El)), e.register(o(Rl)), e.register(o($l)), e.register(o(zl)), e.register(o(Ol)), e.register(o(Cl)), e.register(o(jl)), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(i), e;
|
|
3887
4040
|
}
|
|
3888
|
-
function
|
|
3889
|
-
const t =
|
|
4041
|
+
function Ml() {
|
|
4042
|
+
const t = Nl(), e = /* @__PURE__ */ new Set();
|
|
3890
4043
|
for (const i of t.getAllTools())
|
|
3891
4044
|
for (const o of i.pnpSupportIds || [])
|
|
3892
4045
|
e.add(o);
|
|
3893
4046
|
return [...e].sort();
|
|
3894
4047
|
}
|
|
3895
|
-
|
|
3896
|
-
const
|
|
4048
|
+
Ml();
|
|
4049
|
+
const Vl = {
|
|
3897
4050
|
/**
|
|
3898
4051
|
* Visual accessibility features
|
|
3899
4052
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -4064,7 +4217,7 @@ const Nl = {
|
|
|
4064
4217
|
tutorialAvailable: "tutorialAvailable"
|
|
4065
4218
|
}
|
|
4066
4219
|
};
|
|
4067
|
-
Object.values(
|
|
4220
|
+
Object.values(Vl).flatMap((t) => Object.values(t));
|
|
4068
4221
|
var Si;
|
|
4069
4222
|
(function(t) {
|
|
4070
4223
|
t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
@@ -4073,10 +4226,10 @@ var en;
|
|
|
4073
4226
|
(function(t) {
|
|
4074
4227
|
t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
|
|
4075
4228
|
})(en || (en = {}));
|
|
4076
|
-
const
|
|
4229
|
+
const Dl = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, ds = "https://proxy.pie-api.com", Pl = `${ds}/bundles/`;
|
|
4077
4230
|
function ps(t) {
|
|
4078
4231
|
try {
|
|
4079
|
-
const e =
|
|
4232
|
+
const e = Dl?.[t];
|
|
4080
4233
|
if (typeof e == "string" && e.length > 0)
|
|
4081
4234
|
return e;
|
|
4082
4235
|
} catch {
|
|
@@ -4117,15 +4270,15 @@ var ln;
|
|
|
4117
4270
|
t[t.ROOT = 0] = "ROOT", t[t.SUBJECT = 1] = "SUBJECT", t[t.LEVEL = 2] = "LEVEL", t[t.STANDARD = 3] = "STANDARD";
|
|
4118
4271
|
})(ln || (ln = {}));
|
|
4119
4272
|
po.player;
|
|
4120
|
-
const Dl = /* @__PURE__ */ JSON.parse('[{"name":"Hydrogen","atomic_mass":1.008,"boil":20.271,"category":"diatomic nonmetal","density":0.08988,"discovered_by":"Henry Cavendish","melt":13.99,"molar_heat":28.836,"named_by":"Antoine Lavoisier","number":1,"period":1,"group":1,"phase":"Gas","symbol":"H","xpos":1,"ypos":1,"wxpos":1,"wypos":1,"shells":[1],"electron_configuration":"1s1","electron_configuration_semantic":"1s1","electron_affinity":72.769,"electronegativity_pauling":2.2,"ionization_energies":[1312],"block":"s"},{"name":"Helium","atomic_mass":4.0026022,"boil":4.222,"category":"noble gas","density":0.1786,"discovered_by":"Pierre Janssen","melt":0.95,"molar_heat":null,"named_by":null,"number":2,"period":1,"group":18,"phase":"Gas","symbol":"He","xpos":18,"ypos":1,"wxpos":32,"wypos":1,"shells":[2],"electron_configuration":"1s2","electron_configuration_semantic":"1s2","electron_affinity":-48,"electronegativity_pauling":null,"ionization_energies":[2372.3,5250.5],"block":"s"},{"name":"Lithium","atomic_mass":6.94,"boil":1603,"category":"alkali metal","density":0.534,"discovered_by":"Johan August Arfwedson","melt":453.65,"molar_heat":24.86,"named_by":null,"number":3,"period":2,"group":1,"phase":"Solid","symbol":"Li","xpos":1,"ypos":2,"wxpos":1,"wypos":2,"shells":[2,1],"electron_configuration":"1s2 2s1","electron_configuration_semantic":"[He] 2s1","electron_affinity":59.6326,"electronegativity_pauling":0.98,"ionization_energies":[520.2,7298.1,11815],"block":"s"},{"name":"Beryllium","atomic_mass":9.01218315,"boil":2742,"category":"alkaline earth metal","density":1.85,"discovered_by":"Louis Nicolas Vauquelin","melt":1560,"molar_heat":16.443,"named_by":null,"number":4,"period":2,"group":2,"phase":"Solid","symbol":"Be","xpos":2,"ypos":2,"wxpos":2,"wypos":2,"shells":[2,2],"electron_configuration":"1s2 2s2","electron_configuration_semantic":"[He] 2s2","electron_affinity":-48,"electronegativity_pauling":1.57,"ionization_energies":[899.5,1757.1,14848.7,21006.6],"block":"s"},{"name":"Boron","atomic_mass":10.81,"boil":4200,"category":"metalloid","density":2.08,"discovered_by":"Joseph Louis Gay-Lussac","melt":2349,"molar_heat":11.087,"named_by":null,"number":5,"period":2,"group":13,"phase":"Solid","symbol":"B","xpos":13,"ypos":2,"wxpos":27,"wypos":2,"shells":[2,3],"electron_configuration":"1s2 2s2 2p1","electron_configuration_semantic":"[He] 2s2 2p1","electron_affinity":26.989,"electronegativity_pauling":2.04,"ionization_energies":[800.6,2427.1,3659.7,25025.8,32826.7],"block":"p"},{"name":"Carbon","atomic_mass":12.011,"boil":null,"category":"polyatomic nonmetal","density":1.821,"discovered_by":"Ancient Egypt","melt":null,"molar_heat":8.517,"named_by":null,"number":6,"period":2,"group":14,"phase":"Solid","symbol":"C","xpos":14,"ypos":2,"wxpos":28,"wypos":2,"shells":[2,4],"electron_configuration":"1s2 2s2 2p2","electron_configuration_semantic":"[He] 2s2 2p2","electron_affinity":121.7763,"electronegativity_pauling":2.55,"ionization_energies":[1086.5,2352.6,4620.5,6222.7,37831,47277],"block":"p"},{"name":"Nitrogen","atomic_mass":14.007,"boil":77.355,"category":"diatomic nonmetal","density":1.251,"discovered_by":"Daniel Rutherford","melt":63.15,"molar_heat":null,"named_by":"Jean-Antoine Chaptal","number":7,"period":2,"group":15,"phase":"Gas","symbol":"N","xpos":15,"ypos":2,"wxpos":29,"wypos":2,"shells":[2,5],"electron_configuration":"1s2 2s2 2p3","electron_configuration_semantic":"[He] 2s2 2p3","electron_affinity":-6.8,"electronegativity_pauling":3.04,"ionization_energies":[1402.3,2856,4578.1,7475,9444.9,53266.6,64360],"block":"p"},{"name":"Oxygen","atomic_mass":15.999,"boil":90.188,"category":"diatomic nonmetal","density":1.429,"discovered_by":"Carl Wilhelm Scheele","melt":54.36,"molar_heat":null,"named_by":"Antoine Lavoisier","number":8,"period":2,"group":16,"phase":"Gas","symbol":"O","xpos":16,"ypos":2,"wxpos":30,"wypos":2,"shells":[2,6],"electron_configuration":"1s2 2s2 2p4","electron_configuration_semantic":"[He] 2s2 2p4","electron_affinity":140.976,"electronegativity_pauling":3.44,"ionization_energies":[1313.9,3388.3,5300.5,7469.2,10989.5,13326.5,71330,84078],"block":"p"},{"name":"Fluorine","atomic_mass":18.9984031636,"boil":85.03,"category":"diatomic nonmetal","density":1.696,"discovered_by":"André-Marie Ampère","melt":53.48,"molar_heat":null,"named_by":"Humphry Davy","number":9,"period":2,"group":17,"phase":"Gas","symbol":"F","xpos":17,"ypos":2,"wxpos":31,"wypos":2,"shells":[2,7],"electron_configuration":"1s2 2s2 2p5","electron_configuration_semantic":"[He] 2s2 2p5","electron_affinity":328.1649,"electronegativity_pauling":3.98,"ionization_energies":[1681,3374.2,6050.4,8407.7,11022.7,15164.1,17868,92038.1,106434.3],"block":"p"},{"name":"Neon","atomic_mass":20.17976,"boil":27.104,"category":"noble gas","density":0.9002,"discovered_by":"Morris Travers","melt":24.56,"molar_heat":null,"named_by":null,"number":10,"period":2,"group":18,"phase":"Gas","symbol":"Ne","xpos":18,"ypos":2,"wxpos":32,"wypos":2,"shells":[2,8],"electron_configuration":"1s2 2s2 2p6","electron_configuration_semantic":"[He] 2s2 2p6","electron_affinity":-116,"electronegativity_pauling":null,"ionization_energies":[2080.7,3952.3,6122,9371,12177,15238,19999,23069.5,115379.5,131432],"block":"p"},{"name":"Sodium","atomic_mass":22.989769282,"boil":1156.09,"category":"alkali metal","density":0.968,"discovered_by":"Humphry Davy","melt":370.944,"molar_heat":28.23,"named_by":null,"number":11,"period":3,"group":1,"phase":"Solid","symbol":"Na","xpos":1,"ypos":3,"wxpos":1,"wypos":3,"shells":[2,8,1],"electron_configuration":"1s2 2s2 2p6 3s1","electron_configuration_semantic":"[Ne] 3s1","electron_affinity":52.867,"electronegativity_pauling":0.93,"ionization_energies":[495.8,4562,6910.3,9543,13354,16613,20117,25496,28932,141362,159076],"block":"s"},{"name":"Magnesium","atomic_mass":24.305,"boil":1363,"category":"alkaline earth metal","density":1.738,"discovered_by":"Joseph Black","melt":923,"molar_heat":24.869,"named_by":null,"number":12,"period":3,"group":2,"phase":"Solid","symbol":"Mg","xpos":2,"ypos":3,"wxpos":2,"wypos":3,"shells":[2,8,2],"electron_configuration":"1s2 2s2 2p6 3s2","electron_configuration_semantic":"[Ne] 3s2","electron_affinity":-40,"electronegativity_pauling":1.31,"ionization_energies":[737.7,1450.7,7732.7,10542.5,13630,18020,21711,25661,31653,35458,169988,189368],"block":"s"},{"name":"Aluminium","atomic_mass":26.98153857,"boil":2743,"category":"post-transition metal","density":2.7,"discovered_by":null,"melt":933.47,"molar_heat":24.2,"named_by":"Humphry Davy","number":13,"period":3,"group":13,"phase":"Solid","symbol":"Al","xpos":13,"ypos":3,"wxpos":27,"wypos":3,"shells":[2,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p1","electron_configuration_semantic":"[Ne] 3s2 3p1","electron_affinity":41.762,"electronegativity_pauling":1.61,"ionization_energies":[577.5,1816.7,2744.8,11577,14842,18379,23326,27465,31853,38473,42647,201266,222316],"block":"p"},{"name":"Silicon","atomic_mass":28.085,"boil":3538,"category":"metalloid","density":2.329,"discovered_by":"Jöns Jacob Berzelius","melt":1687,"molar_heat":19.789,"named_by":"Thomas Thomson (chemist)","number":14,"period":3,"group":14,"phase":"Solid","symbol":"Si","xpos":14,"ypos":3,"wxpos":28,"wypos":3,"shells":[2,8,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p2","electron_configuration_semantic":"[Ne] 3s2 3p2","electron_affinity":134.0684,"electronegativity_pauling":1.9,"ionization_energies":[786.5,1577.1,3231.6,4355.5,16091,19805,23780,29287,33878,38726,45962,50502,235196,257923],"block":"p"},{"name":"Phosphorus","atomic_mass":30.9737619985,"boil":null,"category":"polyatomic nonmetal","density":1.823,"discovered_by":"Hennig Brand","melt":null,"molar_heat":23.824,"named_by":null,"number":15,"period":3,"group":15,"phase":"Solid","symbol":"P","xpos":15,"ypos":3,"wxpos":29,"wypos":3,"shells":[2,8,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p3","electron_configuration_semantic":"[Ne] 3s2 3p3","electron_affinity":72.037,"electronegativity_pauling":2.19,"ionization_energies":[1011.8,1907,2914.1,4963.6,6273.9,21267,25431,29872,35905,40950,46261,54110,59024,271791,296195],"block":"p"},{"name":"Sulfur","atomic_mass":32.06,"boil":717.8,"category":"polyatomic nonmetal","density":2.07,"discovered_by":"Ancient china","melt":388.36,"molar_heat":22.75,"named_by":null,"number":16,"period":3,"group":16,"phase":"Solid","symbol":"S","xpos":16,"ypos":3,"wxpos":30,"wypos":3,"shells":[2,8,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p4","electron_configuration_semantic":"[Ne] 3s2 3p4","electron_affinity":200.4101,"electronegativity_pauling":2.58,"ionization_energies":[999.6,2252,3357,4556,7004.3,8495.8,27107,31719,36621,43177,48710,54460,62930,68216,311048,337138],"block":"p"},{"name":"Chlorine","atomic_mass":35.45,"boil":239.11,"category":"diatomic nonmetal","density":3.2,"discovered_by":"Carl Wilhelm Scheele","melt":171.6,"molar_heat":null,"named_by":null,"number":17,"period":3,"group":17,"phase":"Gas","symbol":"Cl","xpos":17,"ypos":3,"wxpos":31,"wypos":3,"shells":[2,8,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p5","electron_configuration_semantic":"[Ne] 3s2 3p5","electron_affinity":348.575,"electronegativity_pauling":3.16,"ionization_energies":[1251.2,2298,3822,5158.6,6542,9362,11018,33604,38600,43961,51068,57119,63363,72341,78095,352994,380760],"block":"p"},{"name":"Argon","atomic_mass":39.9481,"boil":87.302,"category":"noble gas","density":1.784,"discovered_by":"Lord Rayleigh","melt":83.81,"molar_heat":null,"named_by":null,"number":18,"period":3,"group":18,"phase":"Gas","symbol":"Ar","xpos":18,"ypos":3,"wxpos":32,"wypos":3,"shells":[2,8,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6","electron_configuration_semantic":"[Ne] 3s2 3p6","electron_affinity":-96,"electronegativity_pauling":null,"ionization_energies":[1520.6,2665.8,3931,5771,7238,8781,11995,13842,40760,46186,52002,59653,66199,72918,82473,88576,397605,427066],"block":"p"},{"name":"Potassium","atomic_mass":39.09831,"boil":1032,"category":"alkali metal","density":0.862,"discovered_by":"Humphry Davy","melt":336.7,"molar_heat":29.6,"named_by":null,"number":19,"period":4,"group":1,"phase":"Solid","symbol":"K","xpos":1,"ypos":4,"wxpos":1,"wypos":4,"shells":[2,8,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1","electron_configuration_semantic":"[Ar] 4s1","electron_affinity":48.383,"electronegativity_pauling":0.82,"ionization_energies":[418.8,3052,4420,5877,7975,9590,11343,14944,16963.7,48610,54490,60730,68950,75900,83080,93400,99710,444880,476063],"block":"s"},{"name":"Calcium","atomic_mass":40.0784,"boil":1757,"category":"alkaline earth metal","density":1.55,"discovered_by":"Humphry Davy","melt":1115,"molar_heat":25.929,"named_by":null,"number":20,"period":4,"group":2,"phase":"Solid","symbol":"Ca","xpos":2,"ypos":4,"wxpos":2,"wypos":4,"shells":[2,8,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2","electron_configuration_semantic":"[Ar] 4s2","electron_affinity":2.37,"electronegativity_pauling":1,"ionization_energies":[589.8,1145.4,4912.4,6491,8153,10496,12270,14206,18191,20385,57110,63410,70110,78890,86310,94000,104900,111711,494850,527762],"block":"s"},{"name":"Scandium","atomic_mass":44.9559085,"boil":3109,"category":"transition metal","density":2.985,"discovered_by":"Lars Fredrik Nilson","melt":1814,"molar_heat":25.52,"named_by":null,"number":21,"period":4,"group":3,"phase":"Solid","symbol":"Sc","xpos":3,"ypos":4,"wxpos":17,"wypos":4,"shells":[2,8,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d1","electron_configuration_semantic":"[Ar] 3d1 4s2","electron_affinity":18,"electronegativity_pauling":1.36,"ionization_energies":[633.1,1235,2388.6,7090.6,8843,10679,13310,15250,17370,21726,24102,66320,73010,80160,89490,97400,105600,117000,124270,547530,582163],"block":"d"},{"name":"Titanium","atomic_mass":47.8671,"boil":3560,"category":"transition metal","density":4.506,"discovered_by":"William Gregor","melt":1941,"molar_heat":25.06,"named_by":"Martin Heinrich Klaproth","number":22,"period":4,"group":4,"phase":"Solid","symbol":"Ti","xpos":4,"ypos":4,"wxpos":18,"wypos":4,"shells":[2,8,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d2","electron_configuration_semantic":"[Ar] 3d2 4s2","electron_affinity":7.289,"electronegativity_pauling":1.54,"ionization_energies":[658.8,1309.8,2652.5,4174.6,9581,11533,13590,16440,18530,20833,25575,28125,76015,83280,90880,100700,109100,117800,129900,137530,602930,639294],"block":"d"},{"name":"Vanadium","atomic_mass":50.94151,"boil":3680,"category":"transition metal","density":6,"discovered_by":"Andrés Manuel del Río","melt":2183,"molar_heat":24.89,"named_by":"Isotopes of vanadium","number":23,"period":4,"group":5,"phase":"Solid","symbol":"V","xpos":5,"ypos":4,"wxpos":19,"wypos":4,"shells":[2,8,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d3","electron_configuration_semantic":"[Ar] 3d3 4s2","electron_affinity":50.911,"electronegativity_pauling":1.63,"ionization_energies":[650.9,1414,2830,4507,6298.7,12363,14530,16730,19860,22240,24670,29730,32446,86450,94170,102300,112700,121600,130700,143400,151440,661050,699144],"block":"d"},{"name":"Chromium","atomic_mass":51.99616,"boil":2944,"category":"transition metal","density":7.19,"discovered_by":"Louis Nicolas Vauquelin","melt":2180,"molar_heat":23.35,"named_by":null,"number":24,"period":4,"group":6,"phase":"Solid","symbol":"Cr","xpos":6,"ypos":4,"wxpos":20,"wypos":4,"shells":[2,8,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d5","electron_configuration_semantic":"[Ar] 3d5 4s1","electron_affinity":65.21,"electronegativity_pauling":1.66,"ionization_energies":[652.9,1590.6,2987,4743,6702,8744.9,15455,17820,20190,23580,26130,28750,34230,37066,97510,105800,114300,125300,134700,144300,157700,166090,721870,761733],"block":"d"},{"name":"Manganese","atomic_mass":54.9380443,"boil":2334,"category":"transition metal","density":7.21,"discovered_by":"Torbern Olof Bergman","melt":1519,"molar_heat":26.32,"named_by":null,"number":25,"period":4,"group":7,"phase":"Solid","symbol":"Mn","xpos":7,"ypos":4,"wxpos":21,"wypos":4,"shells":[2,8,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d5","electron_configuration_semantic":"[Ar] 3d5 4s2","electron_affinity":-50,"electronegativity_pauling":1.55,"ionization_energies":[717.3,1509,3248,4940,6990,9220,11500,18770,21400,23960,27590,30330,33150,38880,41987,109480,118100,127100,138600,148500,158600,172500,181380,785450,827067],"block":"d"},{"name":"Iron","atomic_mass":55.8452,"boil":3134,"category":"transition metal","density":7.874,"discovered_by":"5000 BC","melt":1811,"molar_heat":25.1,"named_by":null,"number":26,"period":4,"group":8,"phase":"Solid","symbol":"Fe","xpos":8,"ypos":4,"wxpos":22,"wypos":4,"shells":[2,8,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d6","electron_configuration_semantic":"[Ar] 3d6 4s2","electron_affinity":14.785,"electronegativity_pauling":1.83,"ionization_energies":[762.5,1561.9,2957,5290,7240,9560,12060,14580,22540,25290,28000,31920,34830,37840,44100,47206,122200,131000,140500,152600,163000,173600,188100,195200,851800,895161],"block":"d"},{"name":"Cobalt","atomic_mass":58.9331944,"boil":3200,"category":"transition metal","density":8.9,"discovered_by":"Georg Brandt","melt":1768,"molar_heat":24.81,"named_by":null,"number":27,"period":4,"group":9,"phase":"Solid","symbol":"Co","xpos":9,"ypos":4,"wxpos":23,"wypos":4,"shells":[2,8,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d7","electron_configuration_semantic":"[Ar] 3d7 4s2","electron_affinity":63.898,"electronegativity_pauling":1.88,"ionization_energies":[760.4,1648,3232,4950,7670,9840,12440,15230,17959,26570,29400,32400,36600,39700,42800,49396,52737,134810,145170,154700,167400,178100,189300,204500,214100,920870,966023],"block":"d"},{"name":"Nickel","atomic_mass":58.69344,"boil":3003,"category":"transition metal","density":8.908,"discovered_by":"Axel Fredrik Cronstedt","melt":1728,"molar_heat":26.07,"named_by":null,"number":28,"period":4,"group":10,"phase":"Solid","symbol":"Ni","xpos":10,"ypos":4,"wxpos":24,"wypos":4,"shells":[2,8,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d8","electron_configuration_semantic":"[Ar] 3d8 4s2","electron_affinity":111.65,"electronegativity_pauling":1.91,"ionization_energies":[737.1,1753,3395,5300,7339,10400,12800,15600,18600,21670,30970,34000,37100,41500,44800,48100,55101,58570,148700,159000,169400,182700,194000,205600,221400,231490,992718,1039668],"block":"d"},{"name":"Copper","atomic_mass":63.5463,"boil":2835,"category":"transition metal","density":8.96,"discovered_by":"Middle East","melt":1357.77,"molar_heat":24.44,"named_by":null,"number":29,"period":4,"group":11,"phase":"Solid","symbol":"Cu","xpos":11,"ypos":4,"wxpos":25,"wypos":4,"shells":[2,8,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d10","electron_configuration_semantic":"[Ar] 3d10 4s1","electron_affinity":119.235,"electronegativity_pauling":1.9,"ionization_energies":[745.5,1957.9,3555,5536,7700,9900,13400,16000,19200,22400,25600,35600,38700,42000,46700,50200,53700,61100,64702,163700,174100,184900,198800,210500,222700,239100,249660,1067358,1116105],"block":"d"},{"name":"Zinc","atomic_mass":65.382,"boil":1180,"category":"transition metal","density":7.14,"discovered_by":"India","melt":692.68,"molar_heat":25.47,"named_by":null,"number":30,"period":4,"group":12,"phase":"Solid","symbol":"Zn","xpos":12,"ypos":4,"wxpos":26,"wypos":4,"shells":[2,8,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10","electron_configuration_semantic":"[Ar] 3d10 4s2","electron_affinity":-58,"electronegativity_pauling":1.65,"ionization_energies":[906.4,1733.3,3833,5731,7970,10400,12900,16800,19600,23000,26400,29990,40490,43800,47300,52300,55900,59700,67300,71200,179100],"block":"d"},{"name":"Gallium","atomic_mass":69.7231,"boil":2673,"category":"post-transition metal","density":5.91,"discovered_by":"Lecoq de Boisbaudran","melt":302.9146,"molar_heat":25.86,"named_by":null,"number":31,"period":4,"group":13,"phase":"Solid","symbol":"Ga","xpos":13,"ypos":4,"wxpos":27,"wypos":4,"shells":[2,8,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p1","electron_configuration_semantic":"[Ar] 3d10 4s2 4p1","electron_affinity":41,"electronegativity_pauling":1.81,"ionization_energies":[578.8,1979.3,2963,6180],"block":"p"},{"name":"Germanium","atomic_mass":72.6308,"boil":3106,"category":"metalloid","density":5.323,"discovered_by":"Clemens Winkler","melt":1211.4,"molar_heat":23.222,"named_by":null,"number":32,"period":4,"group":14,"phase":"Solid","symbol":"Ge","xpos":14,"ypos":4,"wxpos":28,"wypos":4,"shells":[2,8,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p2","electron_configuration_semantic":"[Ar] 3d10 4s2 4p2","electron_affinity":118.9352,"electronegativity_pauling":2.01,"ionization_energies":[762,1537.5,3302.1,4411,9020],"block":"p"},{"name":"Arsenic","atomic_mass":74.9215956,"boil":null,"category":"metalloid","density":5.727,"discovered_by":"Bronze Age","melt":null,"molar_heat":24.64,"named_by":null,"number":33,"period":4,"group":15,"phase":"Solid","symbol":"As","xpos":15,"ypos":4,"wxpos":29,"wypos":4,"shells":[2,8,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p3","electron_configuration_semantic":"[Ar] 3d10 4s2 4p3","electron_affinity":77.65,"electronegativity_pauling":2.18,"ionization_energies":[947,1798,2735,4837,6043,12310],"block":"p"},{"name":"Selenium","atomic_mass":78.9718,"boil":958,"category":"polyatomic nonmetal","density":4.81,"discovered_by":"Jöns Jakob Berzelius","melt":494,"molar_heat":25.363,"named_by":null,"number":34,"period":4,"group":16,"phase":"Solid","symbol":"Se","xpos":16,"ypos":4,"wxpos":30,"wypos":4,"shells":[2,8,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p4","electron_configuration_semantic":"[Ar] 3d10 4s2 4p4","electron_affinity":194.9587,"electronegativity_pauling":2.55,"ionization_energies":[941,2045,2973.7,4144,6590,7880,14990],"block":"p"},{"name":"Bromine","atomic_mass":79.904,"boil":332,"category":"diatomic nonmetal","density":3.1028,"discovered_by":"Antoine Jérôme Balard","melt":265.8,"molar_heat":null,"named_by":null,"number":35,"period":4,"group":17,"phase":"Liquid","symbol":"Br","xpos":17,"ypos":4,"wxpos":31,"wypos":4,"shells":[2,8,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p5","electron_configuration_semantic":"[Ar] 3d10 4s2 4p5","electron_affinity":324.537,"electronegativity_pauling":2.96,"ionization_energies":[1139.9,2103,3470,4560,5760,8550,9940,18600],"block":"p"},{"name":"Krypton","atomic_mass":83.7982,"boil":119.93,"category":"noble gas","density":3.749,"discovered_by":"William Ramsay","melt":115.78,"molar_heat":null,"named_by":null,"number":36,"period":4,"group":18,"phase":"Gas","symbol":"Kr","xpos":18,"ypos":4,"wxpos":32,"wypos":4,"shells":[2,8,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6","electron_configuration_semantic":"[Ar] 3d10 4s2 4p6","electron_affinity":-96,"electronegativity_pauling":3,"ionization_energies":[1350.8,2350.4,3565,5070,6240,7570,10710,12138,22274,25880,29700,33800,37700,43100,47500,52200,57100,61800,75800,80400,85300,90400,96300,101400,111100,116290,282500,296200,311400,326200],"block":"p"},{"name":"Rubidium","atomic_mass":85.46783,"boil":961,"category":"alkali metal","density":1.532,"discovered_by":"Robert Bunsen","melt":312.45,"molar_heat":31.06,"named_by":null,"number":37,"period":5,"group":1,"phase":"Solid","symbol":"Rb","xpos":1,"ypos":5,"wxpos":1,"wypos":5,"shells":[2,8,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1","electron_configuration_semantic":"[Kr] 5s1","electron_affinity":46.884,"electronegativity_pauling":0.82,"ionization_energies":[403,2633,3860,5080,6850,8140,9570,13120,14500,26740],"block":"s"},{"name":"Strontium","atomic_mass":87.621,"boil":1650,"category":"alkaline earth metal","density":2.64,"discovered_by":"William Cruickshank (chemist)","melt":1050,"molar_heat":26.4,"named_by":null,"number":38,"period":5,"group":2,"phase":"Solid","symbol":"Sr","xpos":2,"ypos":5,"wxpos":2,"wypos":5,"shells":[2,8,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2","electron_configuration_semantic":"[Kr] 5s2","electron_affinity":5.023,"electronegativity_pauling":0.95,"ionization_energies":[549.5,1064.2,4138,5500,6910,8760,10230,11800,15600,17100,31270],"block":"s"},{"name":"Yttrium","atomic_mass":88.905842,"boil":3203,"category":"transition metal","density":4.472,"discovered_by":"Johan Gadolin","melt":1799,"molar_heat":26.53,"named_by":null,"number":39,"period":5,"group":3,"phase":"Solid","symbol":"Y","xpos":3,"ypos":5,"wxpos":17,"wypos":5,"shells":[2,8,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d1","electron_configuration_semantic":"[Kr] 4d1 5s2","electron_affinity":29.6,"electronegativity_pauling":1.22,"ionization_energies":[600,1180,1980,5847,7430,8970,11190,12450,14110,18400,19900,36090],"block":"d"},{"name":"Zirconium","atomic_mass":91.2242,"boil":4650,"category":"transition metal","density":6.52,"discovered_by":"Martin Heinrich Klaproth","melt":2128,"molar_heat":25.36,"named_by":null,"number":40,"period":5,"group":4,"phase":"Solid","symbol":"Zr","xpos":4,"ypos":5,"wxpos":18,"wypos":5,"shells":[2,8,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d2","electron_configuration_semantic":"[Kr] 4d2 5s2","electron_affinity":41.806,"electronegativity_pauling":1.33,"ionization_energies":[640.1,1270,2218,3313,7752,9500],"block":"d"},{"name":"Niobium","atomic_mass":92.906372,"boil":5017,"category":"transition metal","density":8.57,"discovered_by":"Charles Hatchett","melt":2750,"molar_heat":24.6,"named_by":null,"number":41,"period":5,"group":5,"phase":"Solid","symbol":"Nb","xpos":5,"ypos":5,"wxpos":19,"wypos":5,"shells":[2,8,18,12,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d4","electron_configuration_semantic":"[Kr] 4d4 5s1","electron_affinity":88.516,"electronegativity_pauling":1.6,"ionization_energies":[652.1,1380,2416,3700,4877,9847,12100],"block":"d"},{"name":"Molybdenum","atomic_mass":95.951,"boil":4912,"category":"transition metal","density":10.28,"discovered_by":"Carl Wilhelm Scheele","melt":2896,"molar_heat":24.06,"named_by":null,"number":42,"period":5,"group":6,"phase":"Solid","symbol":"Mo","xpos":6,"ypos":5,"wxpos":20,"wypos":5,"shells":[2,8,18,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d5","electron_configuration_semantic":"[Kr] 4d5 5s1","electron_affinity":72.1,"electronegativity_pauling":2.16,"ionization_energies":[684.3,1560,2618,4480,5257,6640.8,12125,13860,15835,17980,20190,22219,26930,29196,52490,55000,61400,67700,74000,80400,87000,93400,98420,104400,121900,127700,133800,139800,148100,154500],"block":"d"},{"name":"Technetium","atomic_mass":98,"boil":4538,"category":"transition metal","density":11,"discovered_by":"Emilio Segrè","melt":2430,"molar_heat":24.27,"named_by":null,"number":43,"period":5,"group":7,"phase":"Solid","symbol":"Tc","xpos":7,"ypos":5,"wxpos":21,"wypos":5,"shells":[2,8,18,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d5","electron_configuration_semantic":"[Kr] 4d5 5s2","electron_affinity":53,"electronegativity_pauling":1.9,"ionization_energies":[702,1470,2850],"block":"d"},{"name":"Ruthenium","atomic_mass":101.072,"boil":4423,"category":"transition metal","density":12.45,"discovered_by":"Karl Ernst Claus","melt":2607,"molar_heat":24.06,"named_by":null,"number":44,"period":5,"group":8,"phase":"Solid","symbol":"Ru","xpos":8,"ypos":5,"wxpos":22,"wypos":5,"shells":[2,8,18,15,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d7","electron_configuration_semantic":"[Kr] 4d7 5s1","electron_affinity":100.96,"electronegativity_pauling":2.2,"ionization_energies":[710.2,1620,2747],"block":"d"},{"name":"Rhodium","atomic_mass":102.905502,"boil":3968,"category":"transition metal","density":12.41,"discovered_by":"William Hyde Wollaston","melt":2237,"molar_heat":24.98,"named_by":null,"number":45,"period":5,"group":9,"phase":"Solid","symbol":"Rh","xpos":9,"ypos":5,"wxpos":23,"wypos":5,"shells":[2,8,18,16,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d8","electron_configuration_semantic":"[Kr] 4d8 5s1","electron_affinity":110.27,"electronegativity_pauling":2.28,"ionization_energies":[719.7,1740,2997],"block":"d"},{"name":"Palladium","atomic_mass":106.421,"boil":3236,"category":"transition metal","density":12.023,"discovered_by":"William Hyde Wollaston","melt":1828.05,"molar_heat":25.98,"named_by":null,"number":46,"period":5,"group":10,"phase":"Solid","symbol":"Pd","xpos":10,"ypos":5,"wxpos":24,"wypos":5,"shells":[2,8,18,18],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 4d10","electron_configuration_semantic":"[Kr] 4d10","electron_affinity":54.24,"electronegativity_pauling":2.2,"ionization_energies":[804.4,1870,3177],"block":"d"},{"name":"Silver","atomic_mass":107.86822,"boil":2435,"category":"transition metal","density":10.49,"discovered_by":"unknown, before 5000 BC","melt":1234.93,"molar_heat":25.35,"named_by":null,"number":47,"period":5,"group":11,"phase":"Solid","symbol":"Ag","xpos":11,"ypos":5,"wxpos":25,"wypos":5,"shells":[2,8,18,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d10","electron_configuration_semantic":"[Kr] 4d10 5s1","electron_affinity":125.862,"electronegativity_pauling":1.93,"ionization_energies":[731,2070,3361],"block":"d"},{"name":"Cadmium","atomic_mass":112.4144,"boil":1040,"category":"transition metal","density":8.65,"discovered_by":"Karl Samuel Leberecht Hermann","melt":594.22,"molar_heat":26.02,"named_by":"Isotopes of cadmium","number":48,"period":5,"group":12,"phase":"Solid","symbol":"Cd","xpos":12,"ypos":5,"wxpos":26,"wypos":5,"shells":[2,8,18,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10","electron_configuration_semantic":"[Kr] 4d10 5s2","electron_affinity":-68,"electronegativity_pauling":1.69,"ionization_energies":[867.8,1631.4,3616],"block":"d"},{"name":"Indium","atomic_mass":114.8181,"boil":2345,"category":"post-transition metal","density":7.31,"discovered_by":"Ferdinand Reich","melt":429.7485,"molar_heat":26.74,"named_by":null,"number":49,"period":5,"group":13,"phase":"Solid","symbol":"In","xpos":13,"ypos":5,"wxpos":27,"wypos":5,"shells":[2,8,18,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p1","electron_configuration_semantic":"[Kr] 4d10 5s2 5p1","electron_affinity":37.043,"electronegativity_pauling":1.78,"ionization_energies":[558.3,1820.7,2704,5210],"block":"p"},{"name":"Tin","atomic_mass":118.7107,"boil":2875,"category":"post-transition metal","density":7.365,"discovered_by":"unknown, before 3500 BC","melt":505.08,"molar_heat":27.112,"named_by":null,"number":50,"period":5,"group":14,"phase":"Solid","symbol":"Sn","xpos":14,"ypos":5,"wxpos":28,"wypos":5,"shells":[2,8,18,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p2","electron_configuration_semantic":"[Kr] 4d10 5s2 5p2","electron_affinity":107.2984,"electronegativity_pauling":1.96,"ionization_energies":[708.6,1411.8,2943,3930.3,7456],"block":"p"},{"name":"Antimony","atomic_mass":121.7601,"boil":1908,"category":"metalloid","density":6.697,"discovered_by":"unknown, before 3000 BC","melt":903.78,"molar_heat":25.23,"named_by":null,"number":51,"period":5,"group":15,"phase":"Solid","symbol":"Sb","xpos":15,"ypos":5,"wxpos":29,"wypos":5,"shells":[2,8,18,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p3","electron_configuration_semantic":"[Kr] 4d10 5s2 5p3","electron_affinity":101.059,"electronegativity_pauling":2.05,"ionization_energies":[834,1594.9,2440,4260,5400,10400],"block":"p"},{"name":"Tellurium","atomic_mass":127.603,"boil":1261,"category":"metalloid","density":6.24,"discovered_by":"Franz-Joseph Müller von Reichenstein","melt":722.66,"molar_heat":25.73,"named_by":null,"number":52,"period":5,"group":16,"phase":"Solid","symbol":"Te","xpos":16,"ypos":5,"wxpos":30,"wypos":5,"shells":[2,8,18,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p4","electron_configuration_semantic":"[Kr] 4d10 5s2 5p4","electron_affinity":190.161,"electronegativity_pauling":2.1,"ionization_energies":[869.3,1790,2698,3610,5668,6820,13200],"block":"p"},{"name":"Iodine","atomic_mass":126.904473,"boil":457.4,"category":"diatomic nonmetal","density":4.933,"discovered_by":"Bernard Courtois","melt":386.85,"molar_heat":null,"named_by":null,"number":53,"period":5,"group":17,"phase":"Solid","symbol":"I","xpos":17,"ypos":5,"wxpos":31,"wypos":5,"shells":[2,8,18,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p5","electron_configuration_semantic":"[Kr] 4d10 5s2 5p5","electron_affinity":295.1531,"electronegativity_pauling":2.66,"ionization_energies":[1008.4,1845.9,3180],"block":"p"},{"name":"Xenon","atomic_mass":131.2936,"boil":165.051,"category":"noble gas","density":5.894,"discovered_by":"William Ramsay","melt":161.4,"molar_heat":null,"named_by":null,"number":54,"period":5,"group":18,"phase":"Gas","symbol":"Xe","xpos":18,"ypos":5,"wxpos":32,"wypos":5,"shells":[2,8,18,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6","electron_configuration_semantic":"[Kr] 4d10 5s2 5p6","electron_affinity":-77,"electronegativity_pauling":2.6,"ionization_energies":[1170.4,2046.4,3099.4],"block":"p"},{"name":"Cesium","atomic_mass":132.905451966,"boil":944,"category":"alkali metal","density":1.93,"discovered_by":"Robert Bunsen","melt":301.7,"molar_heat":32.21,"named_by":null,"number":55,"period":6,"group":1,"phase":"Solid","symbol":"Cs","xpos":1,"ypos":6,"wxpos":1,"wypos":6,"shells":[2,8,18,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1","electron_configuration_semantic":"[Xe] 6s1","electron_affinity":45.505,"electronegativity_pauling":0.79,"ionization_energies":[375.7,2234.3,3400],"block":"s"},{"name":"Barium","atomic_mass":137.3277,"boil":2118,"category":"alkaline earth metal","density":3.51,"discovered_by":"Carl Wilhelm Scheele","melt":1000,"molar_heat":28.07,"named_by":null,"number":56,"period":6,"group":2,"phase":"Solid","symbol":"Ba","xpos":2,"ypos":6,"wxpos":2,"wypos":6,"shells":[2,8,18,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2","electron_configuration_semantic":"[Xe] 6s2","electron_affinity":13.954,"electronegativity_pauling":0.89,"ionization_energies":[502.9,965.2,3600],"block":"s"},{"name":"Lanthanum","atomic_mass":138.905477,"boil":3737,"category":"lanthanide","density":6.162,"discovered_by":"Carl Gustaf Mosander","melt":1193,"molar_heat":27.11,"named_by":null,"number":57,"period":6,"group":3,"phase":"Solid","symbol":"La","xpos":3,"ypos":9,"wxpos":3,"wypos":6,"shells":[2,8,18,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1","electron_configuration_semantic":"[Xe] 5d16s2","electron_affinity":53,"electronegativity_pauling":1.1,"ionization_energies":[538.1,1067,1850.3,4819,5940],"block":"f"},{"name":"Cerium","atomic_mass":140.1161,"boil":3716,"category":"lanthanide","density":6.77,"discovered_by":"Martin Heinrich Klaproth","melt":1068,"molar_heat":26.94,"named_by":null,"number":58,"period":6,"group":3,"phase":"Solid","symbol":"Ce","xpos":4,"ypos":9,"wxpos":4,"wypos":6,"shells":[2,8,18,19,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1 4f1","electron_configuration_semantic":"[Xe] 4f1 5d1 6s2","electron_affinity":55,"electronegativity_pauling":1.12,"ionization_energies":[534.4,1050,1949,3547,6325,7490],"block":"f"},{"name":"Praseodymium","atomic_mass":140.907662,"boil":3403,"category":"lanthanide","density":6.77,"discovered_by":"Carl Auer von Welsbach","melt":1208,"molar_heat":27.2,"named_by":null,"number":59,"period":6,"group":3,"phase":"Solid","symbol":"Pr","xpos":5,"ypos":9,"wxpos":5,"wypos":6,"shells":[2,8,18,21,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f3","electron_configuration_semantic":"[Xe] 4f3 6s2","electron_affinity":93,"electronegativity_pauling":1.13,"ionization_energies":[527,1020,2086,3761,5551],"block":"f"},{"name":"Neodymium","atomic_mass":144.2423,"boil":3347,"category":"lanthanide","density":7.01,"discovered_by":"Carl Auer von Welsbach","melt":1297,"molar_heat":27.45,"named_by":null,"number":60,"period":6,"group":3,"phase":"Solid","symbol":"Nd","xpos":6,"ypos":9,"wxpos":6,"wypos":6,"shells":[2,8,18,22,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f4","electron_configuration_semantic":"[Xe] 4f4 6s2","electron_affinity":184.87,"electronegativity_pauling":1.14,"ionization_energies":[533.1,1040,2130,3900],"block":"f"},{"name":"Promethium","atomic_mass":145,"boil":3273,"category":"lanthanide","density":7.26,"discovered_by":"Chien Shiung Wu","melt":1315,"molar_heat":null,"named_by":"Isotopes of promethium","number":61,"period":6,"group":3,"phase":"Solid","symbol":"Pm","xpos":7,"ypos":9,"wxpos":7,"wypos":6,"shells":[2,8,18,23,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f5","electron_configuration_semantic":"[Xe] 4f5 6s2","electron_affinity":12.45,"electronegativity_pauling":1.13,"ionization_energies":[540,1050,2150,3970],"block":"f"},{"name":"Samarium","atomic_mass":150.362,"boil":2173,"category":"lanthanide","density":7.52,"discovered_by":"Lecoq de Boisbaudran","melt":1345,"molar_heat":29.54,"named_by":null,"number":62,"period":6,"group":3,"phase":"Solid","symbol":"Sm","xpos":8,"ypos":9,"wxpos":8,"wypos":6,"shells":[2,8,18,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f6","electron_configuration_semantic":"[Xe] 4f6 6s2","electron_affinity":15.63,"electronegativity_pauling":1.17,"ionization_energies":[544.5,1070,2260,3990],"block":"f"},{"name":"Europium","atomic_mass":151.9641,"boil":1802,"category":"lanthanide","density":5.264,"discovered_by":"Eugène-Anatole Demarçay","melt":1099,"molar_heat":27.66,"named_by":null,"number":63,"period":6,"group":3,"phase":"Solid","symbol":"Eu","xpos":9,"ypos":9,"wxpos":9,"wypos":6,"shells":[2,8,18,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7","electron_configuration_semantic":"[Xe] 4f7 6s2","electron_affinity":11.2,"electronegativity_pauling":1.2,"ionization_energies":[547.1,1085,2404,4120],"block":"f"},{"name":"Gadolinium","atomic_mass":157.253,"boil":3273,"category":"lanthanide","density":7.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1585,"molar_heat":37.03,"named_by":null,"number":64,"period":6,"group":3,"phase":"Solid","symbol":"Gd","xpos":10,"ypos":9,"wxpos":10,"wypos":6,"shells":[2,8,18,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7 5d1","electron_configuration_semantic":"[Xe] 4f7 5d1 6s2","electron_affinity":13.22,"electronegativity_pauling":1.2,"ionization_energies":[593.4,1170,1990,4250],"block":"f"},{"name":"Terbium","atomic_mass":158.925352,"boil":3396,"category":"lanthanide","density":8.23,"discovered_by":"Carl Gustaf Mosander","melt":1629,"molar_heat":28.91,"named_by":null,"number":65,"period":6,"group":3,"phase":"Solid","symbol":"Tb","xpos":11,"ypos":9,"wxpos":11,"wypos":6,"shells":[2,8,18,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f9","electron_configuration_semantic":"[Xe] 4f9 6s2","electron_affinity":112.4,"electronegativity_pauling":1.1,"ionization_energies":[565.8,1110,2114,3839],"block":"f"},{"name":"Dysprosium","atomic_mass":162.5001,"boil":2840,"category":"lanthanide","density":8.54,"discovered_by":"Lecoq de Boisbaudran","melt":1680,"molar_heat":27.7,"named_by":null,"number":66,"period":6,"group":3,"phase":"Solid","symbol":"Dy","xpos":12,"ypos":9,"wxpos":12,"wypos":6,"shells":[2,8,18,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f10","electron_configuration_semantic":"[Xe] 4f10 6s2","electron_affinity":33.96,"electronegativity_pauling":1.22,"ionization_energies":[573,1130,2200,3990],"block":"f"},{"name":"Holmium","atomic_mass":164.930332,"boil":2873,"category":"lanthanide","density":8.79,"discovered_by":"Marc Delafontaine","melt":1734,"molar_heat":27.15,"named_by":null,"number":67,"period":6,"group":3,"phase":"Solid","symbol":"Ho","xpos":13,"ypos":9,"wxpos":13,"wypos":6,"shells":[2,8,18,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f11","electron_configuration_semantic":"[Xe] 4f11 6s2","electron_affinity":32.61,"electronegativity_pauling":1.23,"ionization_energies":[581,1140,2204,4100],"block":"f"},{"name":"Erbium","atomic_mass":167.2593,"boil":3141,"category":"lanthanide","density":9.066,"discovered_by":"Carl Gustaf Mosander","melt":1802,"molar_heat":28.12,"named_by":null,"number":68,"period":6,"group":3,"phase":"Solid","symbol":"Er","xpos":14,"ypos":9,"wxpos":14,"wypos":6,"shells":[2,8,18,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f12","electron_configuration_semantic":"[Xe] 4f12 6s2","electron_affinity":30.1,"electronegativity_pauling":1.24,"ionization_energies":[589.3,1150,2194,4120],"block":"f"},{"name":"Thulium","atomic_mass":168.934222,"boil":2223,"category":"lanthanide","density":9.32,"discovered_by":"Per Teodor Cleve","melt":1818,"molar_heat":27.03,"named_by":null,"number":69,"period":6,"group":3,"phase":"Solid","symbol":"Tm","xpos":15,"ypos":9,"wxpos":15,"wypos":6,"shells":[2,8,18,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f13","electron_configuration_semantic":"[Xe] 4f13 6s2","electron_affinity":99,"electronegativity_pauling":1.25,"ionization_energies":[596.7,1160,2285,4120],"block":"f"},{"name":"Ytterbium","atomic_mass":173.0451,"boil":1469,"category":"lanthanide","density":6.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1097,"molar_heat":26.74,"named_by":null,"number":70,"period":6,"group":3,"phase":"Solid","symbol":"Yb","xpos":16,"ypos":9,"wxpos":16,"wypos":6,"shells":[2,8,18,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14","electron_configuration_semantic":"[Xe] 4f14 6s2","electron_affinity":-1.93,"electronegativity_pauling":1.1,"ionization_energies":[603.4,1174.8,2417,4203],"block":"f"},{"name":"Lutetium","atomic_mass":174.96681,"boil":3675,"category":"lanthanide","density":9.841,"discovered_by":"Georges Urbain","melt":1925,"molar_heat":26.86,"named_by":null,"number":71,"period":6,"group":3,"phase":"Solid","symbol":"Lu","xpos":17,"ypos":9,"wxpos":17,"wypos":6,"shells":[2,8,18,32,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d1","electron_configuration_semantic":"[Xe] 4f14 5d1 6s2","electron_affinity":33.4,"electronegativity_pauling":1.27,"ionization_energies":[523.5,1340,2022.3,4370,6445],"block":"d"},{"name":"Hafnium","atomic_mass":178.492,"boil":4876,"category":"transition metal","density":13.31,"discovered_by":"Dirk Coster","melt":2506,"molar_heat":25.73,"named_by":null,"number":72,"period":6,"group":4,"phase":"Solid","symbol":"Hf","xpos":4,"ypos":6,"wxpos":18,"wypos":6,"shells":[2,8,18,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d2","electron_configuration_semantic":"[Xe] 4f14 5d2 6s2","electron_affinity":17.18,"electronegativity_pauling":1.3,"ionization_energies":[658.5,1440,2250,3216],"block":"d"},{"name":"Tantalum","atomic_mass":180.947882,"boil":5731,"category":"transition metal","density":16.69,"discovered_by":"Anders Gustaf Ekeberg","melt":3290,"molar_heat":25.36,"named_by":null,"number":73,"period":6,"group":5,"phase":"Solid","symbol":"Ta","xpos":5,"ypos":6,"wxpos":19,"wypos":6,"shells":[2,8,18,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d3","electron_configuration_semantic":"[Xe] 4f14 5d3 6s2","electron_affinity":31,"electronegativity_pauling":1.5,"ionization_energies":[761,1500],"block":"d"},{"name":"Tungsten","atomic_mass":183.841,"boil":6203,"category":"transition metal","density":19.25,"discovered_by":"Carl Wilhelm Scheele","melt":3695,"molar_heat":24.27,"named_by":null,"number":74,"period":6,"group":6,"phase":"Solid","symbol":"W","xpos":6,"ypos":6,"wxpos":20,"wypos":6,"shells":[2,8,18,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d4","electron_configuration_semantic":"[Xe] 4f14 5d4 6s2","electron_affinity":78.76,"electronegativity_pauling":2.36,"ionization_energies":[770,1700],"block":"d"},{"name":"Rhenium","atomic_mass":186.2071,"boil":5869,"category":"transition metal","density":21.02,"discovered_by":"Masataka Ogawa","melt":3459,"molar_heat":25.48,"named_by":"Walter Noddack","number":75,"period":6,"group":7,"phase":"Solid","symbol":"Re","xpos":7,"ypos":6,"wxpos":21,"wypos":6,"shells":[2,8,18,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d5","electron_configuration_semantic":"[Xe] 4f14 5d5 6s2","electron_affinity":5.8273,"electronegativity_pauling":1.9,"ionization_energies":[760,1260,2510,3640],"block":"d"},{"name":"Osmium","atomic_mass":190.233,"boil":5285,"category":"transition metal","density":22.59,"discovered_by":"Smithson Tennant","melt":3306,"molar_heat":24.7,"named_by":null,"number":76,"period":6,"group":8,"phase":"Solid","symbol":"Os","xpos":8,"ypos":6,"wxpos":22,"wypos":6,"shells":[2,8,18,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d6","electron_configuration_semantic":"[Xe] 4f14 5d6 6s2","electron_affinity":103.99,"electronegativity_pauling":2.2,"ionization_energies":[840,1600],"block":"d"},{"name":"Iridium","atomic_mass":192.2173,"boil":4403,"category":"transition metal","density":22.56,"discovered_by":"Smithson Tennant","melt":2719,"molar_heat":25.1,"named_by":null,"number":77,"period":6,"group":9,"phase":"Solid","symbol":"Ir","xpos":9,"ypos":6,"wxpos":23,"wypos":6,"shells":[2,8,18,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d7","electron_configuration_semantic":"[Xe] 4f14 5d7 6s2","electron_affinity":150.94,"electronegativity_pauling":2.2,"ionization_energies":[880,1600],"block":"d"},{"name":"Platinum","atomic_mass":195.0849,"boil":4098,"category":"transition metal","density":21.45,"discovered_by":"Antonio de Ulloa","melt":2041.4,"molar_heat":25.86,"named_by":null,"number":78,"period":6,"group":10,"phase":"Solid","symbol":"Pt","xpos":10,"ypos":6,"wxpos":24,"wypos":6,"shells":[2,8,18,32,17,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d9","electron_configuration_semantic":"[Xe] 4f14 5d9 6s1","electron_affinity":205.041,"electronegativity_pauling":2.28,"ionization_energies":[870,1791],"block":"d"},{"name":"Gold","atomic_mass":196.9665695,"boil":3243,"category":"transition metal","density":19.3,"discovered_by":"Middle East","melt":1337.33,"molar_heat":25.418,"named_by":null,"number":79,"period":6,"group":11,"phase":"Solid","symbol":"Au","xpos":11,"ypos":6,"wxpos":25,"wypos":6,"shells":[2,8,18,32,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s1","electron_affinity":222.747,"electronegativity_pauling":2.54,"ionization_energies":[890.1,1980],"block":"d"},{"name":"Mercury","atomic_mass":200.5923,"boil":629.88,"category":"transition metal","density":13.534,"discovered_by":"unknown, before 2000 BCE","melt":234.321,"molar_heat":27.983,"named_by":null,"number":80,"period":6,"group":12,"phase":"Liquid","symbol":"Hg","xpos":12,"ypos":6,"wxpos":26,"wypos":6,"shells":[2,8,18,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2","electron_affinity":-48,"electronegativity_pauling":2,"ionization_energies":[1007.1,1810,3300],"block":"d"},{"name":"Thallium","atomic_mass":204.38,"boil":1746,"category":"post-transition metal","density":11.85,"discovered_by":"William Crookes","melt":577,"molar_heat":26.32,"named_by":null,"number":81,"period":6,"group":13,"phase":"Solid","symbol":"Tl","xpos":13,"ypos":6,"wxpos":27,"wypos":6,"shells":[2,8,18,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p1","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p1","electron_affinity":36.4,"electronegativity_pauling":1.62,"ionization_energies":[589.4,1971,2878],"block":"p"},{"name":"Lead","atomic_mass":207.21,"boil":2022,"category":"post-transition metal","density":11.34,"discovered_by":"Middle East","melt":600.61,"molar_heat":26.65,"named_by":null,"number":82,"period":6,"group":14,"phase":"Solid","symbol":"Pb","xpos":14,"ypos":6,"wxpos":28,"wypos":6,"shells":[2,8,18,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p2","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p2","electron_affinity":34.4204,"electronegativity_pauling":1.87,"ionization_energies":[715.6,1450.5,3081.5,4083,6640],"block":"p"},{"name":"Bismuth","atomic_mass":208.980401,"boil":1837,"category":"post-transition metal","density":9.78,"discovered_by":"Claude François Geoffroy","melt":544.7,"molar_heat":25.52,"named_by":null,"number":83,"period":6,"group":15,"phase":"Solid","symbol":"Bi","xpos":15,"ypos":6,"wxpos":29,"wypos":6,"shells":[2,8,18,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p3","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p3","electron_affinity":90.924,"electronegativity_pauling":2.02,"ionization_energies":[703,1610,2466,4370,5400,8520],"block":"p"},{"name":"Polonium","atomic_mass":209,"boil":1235,"category":"post-transition metal","density":9.196,"discovered_by":"Pierre Curie","melt":527,"molar_heat":26.4,"named_by":null,"number":84,"period":6,"group":16,"phase":"Solid","symbol":"Po","xpos":16,"ypos":6,"wxpos":30,"wypos":6,"shells":[2,8,18,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p4","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p4","electron_affinity":136,"electronegativity_pauling":2,"ionization_energies":[812.1],"block":"p"},{"name":"Astatine","atomic_mass":210,"boil":610,"category":"metalloid","density":6.35,"discovered_by":"Dale R. Corson","melt":575,"molar_heat":null,"named_by":null,"number":85,"period":6,"group":17,"phase":"Solid","symbol":"At","xpos":17,"ypos":6,"wxpos":31,"wypos":6,"shells":[2,8,18,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p5","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p5","electron_affinity":233,"electronegativity_pauling":2.2,"ionization_energies":[899.003],"block":"p"},{"name":"Radon","atomic_mass":222,"boil":211.5,"category":"noble gas","density":9.73,"discovered_by":"Friedrich Ernst Dorn","melt":202,"molar_heat":null,"named_by":null,"number":86,"period":6,"group":18,"phase":"Gas","symbol":"Rn","xpos":18,"ypos":6,"wxpos":32,"wypos":6,"shells":[2,8,18,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p6","electron_affinity":-68,"electronegativity_pauling":2.2,"ionization_energies":[1037],"block":"p"},{"name":"Francium","atomic_mass":223,"boil":950,"category":"alkali metal","density":1.87,"discovered_by":"Marguerite Perey","melt":300,"molar_heat":null,"named_by":null,"number":87,"period":7,"group":1,"phase":"Solid","symbol":"Fr","xpos":1,"ypos":7,"wxpos":1,"wypos":7,"shells":[2,8,18,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s1","electron_configuration_semantic":"[Rn] 7s1","electron_affinity":46.89,"electronegativity_pauling":0.79,"ionization_energies":[380],"block":"s"},{"name":"Radium","atomic_mass":226,"boil":2010,"category":"alkaline earth metal","density":5.5,"discovered_by":"Pierre Curie","melt":1233,"molar_heat":null,"named_by":null,"number":88,"period":7,"group":2,"phase":"Solid","symbol":"Ra","xpos":2,"ypos":7,"wxpos":2,"wypos":7,"shells":[2,8,18,32,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2","electron_configuration_semantic":"[Rn] 7s2","electron_affinity":9.6485,"electronegativity_pauling":0.9,"ionization_energies":[509.3,979],"block":"s"},{"name":"Actinium","atomic_mass":227,"boil":3500,"category":"actinide","density":10,"discovered_by":"Friedrich Oskar Giesel","melt":1500,"molar_heat":27.2,"named_by":null,"number":89,"period":7,"group":3,"phase":"Solid","symbol":"Ac","xpos":3,"ypos":10,"wxpos":3,"wypos":7,"shells":[2,8,18,32,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d1","electron_configuration_semantic":"[Rn] 6d1 7s2","electron_affinity":33.77,"electronegativity_pauling":1.1,"ionization_energies":[499,1170],"block":"f"},{"name":"Thorium","atomic_mass":232.03774,"boil":5061,"category":"actinide","density":11.724,"discovered_by":"Jöns Jakob Berzelius","melt":2023,"molar_heat":26.23,"named_by":null,"number":90,"period":7,"group":3,"phase":"Solid","symbol":"Th","xpos":4,"ypos":10,"wxpos":4,"wypos":7,"shells":[2,8,18,32,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d2","electron_configuration_semantic":"[Rn] 6d2 7s2","electron_affinity":112.72,"electronegativity_pauling":1.3,"ionization_energies":[587,1110,1930,2780],"block":"f"},{"name":"Protactinium","atomic_mass":231.035882,"boil":4300,"category":"actinide","density":15.37,"discovered_by":"William Crookes","melt":1841,"molar_heat":null,"named_by":"Otto Hahn","number":91,"period":7,"group":3,"phase":"Solid","symbol":"Pa","xpos":5,"ypos":10,"wxpos":5,"wypos":7,"shells":[2,8,18,32,20,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f2 6d1","electron_configuration_semantic":"[Rn] 5f2 6d1 7s2","electron_affinity":53.03,"electronegativity_pauling":1.5,"ionization_energies":[568],"block":"f"},{"name":"Uranium","atomic_mass":238.028913,"boil":4404,"category":"actinide","density":19.1,"discovered_by":"Martin Heinrich Klaproth","melt":1405.3,"molar_heat":27.665,"named_by":null,"number":92,"period":7,"group":3,"phase":"Solid","symbol":"U","xpos":6,"ypos":10,"wxpos":6,"wypos":7,"shells":[2,8,18,32,21,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f3 6d1","electron_configuration_semantic":"[Rn] 5f3 6d1 7s2","electron_affinity":50.94,"electronegativity_pauling":1.38,"ionization_energies":[597.6,1420],"block":"f"},{"name":"Neptunium","atomic_mass":237,"boil":4447,"category":"actinide","density":20.45,"discovered_by":"Edwin McMillan","melt":912,"molar_heat":29.46,"named_by":null,"number":93,"period":7,"group":3,"phase":"Solid","symbol":"Np","xpos":7,"ypos":10,"wxpos":7,"wypos":7,"shells":[2,8,18,32,22,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f4 6d1","electron_configuration_semantic":"[Rn] 5f4 6d1 7s2","electron_affinity":45.85,"electronegativity_pauling":1.36,"ionization_energies":[604.5],"block":"f"},{"name":"Plutonium","atomic_mass":244,"boil":3505,"category":"actinide","density":19.816,"discovered_by":"Glenn T. Seaborg","melt":912.5,"molar_heat":35.5,"named_by":null,"number":94,"period":7,"group":3,"phase":"Solid","symbol":"Pu","xpos":8,"ypos":10,"wxpos":8,"wypos":7,"shells":[2,8,18,32,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f6","electron_configuration_semantic":"[Rn] 5f6 7s2","electron_affinity":-48.33,"electronegativity_pauling":1.28,"ionization_energies":[584.7],"block":"f"},{"name":"Americium","atomic_mass":243,"boil":2880,"category":"actinide","density":12,"discovered_by":"Glenn T. Seaborg","melt":1449,"molar_heat":62.7,"named_by":null,"number":95,"period":7,"group":3,"phase":"Solid","symbol":"Am","xpos":9,"ypos":10,"wxpos":9,"wypos":7,"shells":[2,8,18,32,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7","electron_configuration_semantic":"[Rn] 5f7 7s2","electron_affinity":9.93,"electronegativity_pauling":1.13,"ionization_energies":[578],"block":"f"},{"name":"Curium","atomic_mass":247,"boil":3383,"category":"actinide","density":13.51,"discovered_by":"Glenn T. Seaborg","melt":1613,"molar_heat":null,"named_by":null,"number":96,"period":7,"group":3,"phase":"Solid","symbol":"Cm","xpos":10,"ypos":10,"wxpos":10,"wypos":7,"shells":[2,8,18,32,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7 6d1","electron_configuration_semantic":"[Rn] 5f7 6d1 7s2","electron_affinity":27.17,"electronegativity_pauling":1.28,"ionization_energies":[581],"block":"f"},{"name":"Berkelium","atomic_mass":247,"boil":2900,"category":"actinide","density":14.78,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1259,"molar_heat":null,"named_by":null,"number":97,"period":7,"group":3,"phase":"Solid","symbol":"Bk","xpos":11,"ypos":10,"wxpos":11,"wypos":7,"shells":[2,8,18,32,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f9","electron_configuration_semantic":"[Rn] 5f9 7s2","electron_affinity":-165.24,"electronegativity_pauling":1.3,"ionization_energies":[601],"block":"f"},{"name":"Californium","atomic_mass":251,"boil":1743,"category":"actinide","density":15.1,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1173,"molar_heat":null,"named_by":null,"number":98,"period":7,"group":3,"phase":"Solid","symbol":"Cf","xpos":12,"ypos":10,"wxpos":12,"wypos":7,"shells":[2,8,18,32,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f10","electron_configuration_semantic":"[Rn] 5f10 7s2","electron_affinity":-97.31,"electronegativity_pauling":1.3,"ionization_energies":[608],"block":"f"},{"name":"Einsteinium","atomic_mass":252,"boil":1269,"category":"actinide","density":8.84,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1133,"molar_heat":null,"named_by":null,"number":99,"period":7,"group":3,"phase":"Solid","symbol":"Es","xpos":13,"ypos":10,"wxpos":13,"wypos":7,"shells":[2,8,18,32,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f11","electron_configuration_semantic":"[Rn] 5f11 7s2","electron_affinity":-28.6,"electronegativity_pauling":1.3,"ionization_energies":[619],"block":"f"},{"name":"Fermium","atomic_mass":257,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1800,"molar_heat":null,"named_by":null,"number":100,"period":7,"group":3,"phase":"Solid","symbol":"Fm","xpos":14,"ypos":10,"wxpos":14,"wypos":7,"shells":[2,8,18,32,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f12","electron_configuration_semantic":"[Rn] 5f12 7s2","electron_affinity":33.96,"electronegativity_pauling":1.3,"ionization_energies":[627],"block":"f"},{"name":"Mendelevium","atomic_mass":258,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1100,"molar_heat":null,"named_by":null,"number":101,"period":7,"group":3,"phase":"Solid","symbol":"Md","xpos":15,"ypos":10,"wxpos":15,"wypos":7,"shells":[2,8,18,32,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f13","electron_configuration_semantic":"[Rn] 5f13 7s2","electron_affinity":93.91,"electronegativity_pauling":1.3,"ionization_energies":[635],"block":"f"},{"name":"Nobelium","atomic_mass":259,"boil":null,"category":"actinide","density":null,"discovered_by":"Joint Institute for Nuclear Research","melt":1100,"molar_heat":null,"named_by":null,"number":102,"period":7,"group":3,"phase":"Solid","symbol":"No","xpos":16,"ypos":10,"wxpos":16,"wypos":7,"shells":[2,8,18,32,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14","electron_configuration_semantic":"[Rn] 5f14 7s2","electron_affinity":-223.22,"electronegativity_pauling":1.3,"ionization_energies":[642],"block":"f"},{"name":"Lawrencium","atomic_mass":266,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1900,"molar_heat":null,"named_by":null,"number":103,"period":7,"group":3,"phase":"Solid","symbol":"Lr","xpos":17,"ypos":10,"wxpos":17,"wypos":7,"shells":[2,8,18,32,32,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 7p1","electron_configuration_semantic":"[Rn] 5f14 7s2 7p1","electron_affinity":-30.04,"electronegativity_pauling":1.3,"ionization_energies":[470],"block":"d"},{"name":"Rutherfordium","atomic_mass":267,"boil":5800,"category":"transition metal","density":23.2,"discovered_by":"Joint Institute for Nuclear Research","melt":2400,"molar_heat":null,"named_by":null,"number":104,"period":7,"group":4,"phase":"Solid","symbol":"Rf","xpos":4,"ypos":7,"wxpos":18,"wypos":7,"shells":[2,8,18,32,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d2","electron_configuration_semantic":"[Rn] 5f14 6d2 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[580],"block":"d"},{"name":"Dubnium","atomic_mass":268,"boil":null,"category":"transition metal","density":29.3,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":105,"period":7,"group":5,"phase":"Solid","symbol":"Db","xpos":5,"ypos":7,"wxpos":19,"wypos":7,"shells":[2,8,18,32,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d3","electron_configuration_semantic":"*[Rn] 5f14 6d3 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Seaborgium","atomic_mass":269,"boil":null,"category":"transition metal","density":35,"discovered_by":"Lawrence Berkeley National Laboratory","melt":null,"molar_heat":null,"named_by":null,"number":106,"period":7,"group":6,"phase":"Solid","symbol":"Sg","xpos":6,"ypos":7,"wxpos":20,"wypos":7,"shells":[2,8,18,32,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d4","electron_configuration_semantic":"*[Rn] 5f14 6d4 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Bohrium","atomic_mass":270,"boil":null,"category":"transition metal","density":37.1,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":107,"period":7,"group":7,"phase":"Solid","symbol":"Bh","xpos":7,"ypos":7,"wxpos":21,"wypos":7,"shells":[2,8,18,32,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d5","electron_configuration_semantic":"*[Rn] 5f14 6d5 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Hassium","atomic_mass":269,"boil":null,"category":"transition metal","density":40.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":126,"molar_heat":null,"named_by":null,"number":108,"period":7,"group":8,"phase":"Solid","symbol":"Hs","xpos":8,"ypos":7,"wxpos":22,"wypos":7,"shells":[2,8,18,32,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d6","electron_configuration_semantic":"*[Rn] 5f14 6d6 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Meitnerium","atomic_mass":278,"boil":null,"category":"unknown, probably transition metal","density":37.4,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":109,"period":7,"group":9,"phase":"Solid","symbol":"Mt","xpos":9,"ypos":7,"wxpos":23,"wypos":7,"shells":[2,8,18,32,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d7","electron_configuration_semantic":"*[Rn] 5f14 6d7 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Darmstadtium","atomic_mass":281,"boil":null,"category":"unknown, probably transition metal","density":34.8,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":110,"period":7,"group":10,"phase":"Solid","symbol":"Ds","xpos":10,"ypos":7,"wxpos":24,"wypos":7,"shells":[2,8,18,32,32,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d8","electron_configuration_semantic":"*[Rn] 5f14 6d9 7s1","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Roentgenium","atomic_mass":282,"boil":null,"category":"unknown, probably transition metal","density":28.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":111,"period":7,"group":11,"phase":"Solid","symbol":"Rg","xpos":11,"ypos":7,"wxpos":25,"wypos":7,"shells":[2,8,18,32,32,17,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d9","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s1","electron_affinity":151,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Copernicium","atomic_mass":285,"boil":3570,"category":"transition metal","density":14,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":112,"period":7,"group":12,"phase":"Liquid","symbol":"Cn","xpos":12,"ypos":7,"wxpos":26,"wypos":7,"shells":[2,8,18,32,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Nihonium","atomic_mass":286,"boil":1430,"category":"unknown, probably transition metal","density":16,"discovered_by":"RIKEN","melt":700,"molar_heat":null,"named_by":null,"number":113,"period":7,"group":13,"phase":"Solid","symbol":"Nh","xpos":13,"ypos":7,"wxpos":27,"wypos":7,"shells":[2,8,18,32,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p1","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p1","electron_affinity":66.6,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Flerovium","atomic_mass":289,"boil":420,"category":"post-transition metal","density":14,"discovered_by":"Joint Institute for Nuclear Research","melt":340,"molar_heat":null,"named_by":null,"number":114,"period":7,"group":14,"phase":"Solid","symbol":"Fl","xpos":14,"ypos":7,"wxpos":28,"wypos":7,"shells":[2,8,18,32,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p2","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Moscovium","atomic_mass":289,"boil":1400,"category":"unknown, probably post-transition metal","density":13.5,"discovered_by":"Joint Institute for Nuclear Research","melt":670,"molar_heat":null,"named_by":null,"number":115,"period":7,"group":15,"phase":"Solid","symbol":"Mc","xpos":15,"ypos":7,"wxpos":29,"wypos":7,"shells":[2,8,18,32,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p3","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p3","electron_affinity":35.3,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Livermorium","atomic_mass":293,"boil":1085,"category":"unknown, probably post-transition metal","density":12.9,"discovered_by":"Joint Institute for Nuclear Research","melt":709,"molar_heat":null,"named_by":null,"number":116,"period":7,"group":16,"phase":"Solid","symbol":"Lv","xpos":16,"ypos":7,"wxpos":30,"wypos":7,"shells":[2,8,18,32,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p4","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p4","electron_affinity":74.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Tennessine","atomic_mass":294,"boil":883,"category":"unknown, probably metalloid","density":7.17,"discovered_by":"Joint Institute for Nuclear Research","melt":723,"molar_heat":null,"named_by":null,"number":117,"period":7,"group":17,"phase":"Solid","symbol":"Ts","xpos":17,"ypos":7,"wxpos":31,"wypos":7,"shells":[2,8,18,32,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p5","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p5","electron_affinity":165.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Oganesson","atomic_mass":294,"boil":350,"category":"unknown, predicted to be noble gas","density":4.95,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":118,"period":7,"group":18,"phase":"Solid","symbol":"Og","xpos":18,"ypos":7,"wxpos":32,"wypos":7,"shells":[2,8,18,32,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p6","electron_affinity":5.40318,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Ununennium","atomic_mass":315,"boil":630,"category":"unknown, but predicted to be an alkali metal","density":3,"discovered_by":"GSI Helmholtz Centre for Heavy Ion Research","melt":null,"molar_heat":null,"named_by":null,"number":119,"period":8,"group":1,"phase":"Solid","symbol":"Uue","xpos":1,"ypos":8,"wxpos":1,"wypos":8,"shells":[2,8,18,32,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6 8s1","electron_configuration_semantic":"*[Uuo] 8s1","electron_affinity":63.87,"electronegativity_pauling":null,"ionization_energies":[],"block":"s"}]'), Vl = {
|
|
4121
|
-
elements:
|
|
4273
|
+
const Hl = /* @__PURE__ */ JSON.parse('[{"name":"Hydrogen","atomic_mass":1.008,"boil":20.271,"category":"diatomic nonmetal","density":0.08988,"discovered_by":"Henry Cavendish","melt":13.99,"molar_heat":28.836,"named_by":"Antoine Lavoisier","number":1,"period":1,"group":1,"phase":"Gas","symbol":"H","xpos":1,"ypos":1,"wxpos":1,"wypos":1,"shells":[1],"electron_configuration":"1s1","electron_configuration_semantic":"1s1","electron_affinity":72.769,"electronegativity_pauling":2.2,"ionization_energies":[1312],"block":"s"},{"name":"Helium","atomic_mass":4.0026022,"boil":4.222,"category":"noble gas","density":0.1786,"discovered_by":"Pierre Janssen","melt":0.95,"molar_heat":null,"named_by":null,"number":2,"period":1,"group":18,"phase":"Gas","symbol":"He","xpos":18,"ypos":1,"wxpos":32,"wypos":1,"shells":[2],"electron_configuration":"1s2","electron_configuration_semantic":"1s2","electron_affinity":-48,"electronegativity_pauling":null,"ionization_energies":[2372.3,5250.5],"block":"s"},{"name":"Lithium","atomic_mass":6.94,"boil":1603,"category":"alkali metal","density":0.534,"discovered_by":"Johan August Arfwedson","melt":453.65,"molar_heat":24.86,"named_by":null,"number":3,"period":2,"group":1,"phase":"Solid","symbol":"Li","xpos":1,"ypos":2,"wxpos":1,"wypos":2,"shells":[2,1],"electron_configuration":"1s2 2s1","electron_configuration_semantic":"[He] 2s1","electron_affinity":59.6326,"electronegativity_pauling":0.98,"ionization_energies":[520.2,7298.1,11815],"block":"s"},{"name":"Beryllium","atomic_mass":9.01218315,"boil":2742,"category":"alkaline earth metal","density":1.85,"discovered_by":"Louis Nicolas Vauquelin","melt":1560,"molar_heat":16.443,"named_by":null,"number":4,"period":2,"group":2,"phase":"Solid","symbol":"Be","xpos":2,"ypos":2,"wxpos":2,"wypos":2,"shells":[2,2],"electron_configuration":"1s2 2s2","electron_configuration_semantic":"[He] 2s2","electron_affinity":-48,"electronegativity_pauling":1.57,"ionization_energies":[899.5,1757.1,14848.7,21006.6],"block":"s"},{"name":"Boron","atomic_mass":10.81,"boil":4200,"category":"metalloid","density":2.08,"discovered_by":"Joseph Louis Gay-Lussac","melt":2349,"molar_heat":11.087,"named_by":null,"number":5,"period":2,"group":13,"phase":"Solid","symbol":"B","xpos":13,"ypos":2,"wxpos":27,"wypos":2,"shells":[2,3],"electron_configuration":"1s2 2s2 2p1","electron_configuration_semantic":"[He] 2s2 2p1","electron_affinity":26.989,"electronegativity_pauling":2.04,"ionization_energies":[800.6,2427.1,3659.7,25025.8,32826.7],"block":"p"},{"name":"Carbon","atomic_mass":12.011,"boil":null,"category":"polyatomic nonmetal","density":1.821,"discovered_by":"Ancient Egypt","melt":null,"molar_heat":8.517,"named_by":null,"number":6,"period":2,"group":14,"phase":"Solid","symbol":"C","xpos":14,"ypos":2,"wxpos":28,"wypos":2,"shells":[2,4],"electron_configuration":"1s2 2s2 2p2","electron_configuration_semantic":"[He] 2s2 2p2","electron_affinity":121.7763,"electronegativity_pauling":2.55,"ionization_energies":[1086.5,2352.6,4620.5,6222.7,37831,47277],"block":"p"},{"name":"Nitrogen","atomic_mass":14.007,"boil":77.355,"category":"diatomic nonmetal","density":1.251,"discovered_by":"Daniel Rutherford","melt":63.15,"molar_heat":null,"named_by":"Jean-Antoine Chaptal","number":7,"period":2,"group":15,"phase":"Gas","symbol":"N","xpos":15,"ypos":2,"wxpos":29,"wypos":2,"shells":[2,5],"electron_configuration":"1s2 2s2 2p3","electron_configuration_semantic":"[He] 2s2 2p3","electron_affinity":-6.8,"electronegativity_pauling":3.04,"ionization_energies":[1402.3,2856,4578.1,7475,9444.9,53266.6,64360],"block":"p"},{"name":"Oxygen","atomic_mass":15.999,"boil":90.188,"category":"diatomic nonmetal","density":1.429,"discovered_by":"Carl Wilhelm Scheele","melt":54.36,"molar_heat":null,"named_by":"Antoine Lavoisier","number":8,"period":2,"group":16,"phase":"Gas","symbol":"O","xpos":16,"ypos":2,"wxpos":30,"wypos":2,"shells":[2,6],"electron_configuration":"1s2 2s2 2p4","electron_configuration_semantic":"[He] 2s2 2p4","electron_affinity":140.976,"electronegativity_pauling":3.44,"ionization_energies":[1313.9,3388.3,5300.5,7469.2,10989.5,13326.5,71330,84078],"block":"p"},{"name":"Fluorine","atomic_mass":18.9984031636,"boil":85.03,"category":"diatomic nonmetal","density":1.696,"discovered_by":"André-Marie Ampère","melt":53.48,"molar_heat":null,"named_by":"Humphry Davy","number":9,"period":2,"group":17,"phase":"Gas","symbol":"F","xpos":17,"ypos":2,"wxpos":31,"wypos":2,"shells":[2,7],"electron_configuration":"1s2 2s2 2p5","electron_configuration_semantic":"[He] 2s2 2p5","electron_affinity":328.1649,"electronegativity_pauling":3.98,"ionization_energies":[1681,3374.2,6050.4,8407.7,11022.7,15164.1,17868,92038.1,106434.3],"block":"p"},{"name":"Neon","atomic_mass":20.17976,"boil":27.104,"category":"noble gas","density":0.9002,"discovered_by":"Morris Travers","melt":24.56,"molar_heat":null,"named_by":null,"number":10,"period":2,"group":18,"phase":"Gas","symbol":"Ne","xpos":18,"ypos":2,"wxpos":32,"wypos":2,"shells":[2,8],"electron_configuration":"1s2 2s2 2p6","electron_configuration_semantic":"[He] 2s2 2p6","electron_affinity":-116,"electronegativity_pauling":null,"ionization_energies":[2080.7,3952.3,6122,9371,12177,15238,19999,23069.5,115379.5,131432],"block":"p"},{"name":"Sodium","atomic_mass":22.989769282,"boil":1156.09,"category":"alkali metal","density":0.968,"discovered_by":"Humphry Davy","melt":370.944,"molar_heat":28.23,"named_by":null,"number":11,"period":3,"group":1,"phase":"Solid","symbol":"Na","xpos":1,"ypos":3,"wxpos":1,"wypos":3,"shells":[2,8,1],"electron_configuration":"1s2 2s2 2p6 3s1","electron_configuration_semantic":"[Ne] 3s1","electron_affinity":52.867,"electronegativity_pauling":0.93,"ionization_energies":[495.8,4562,6910.3,9543,13354,16613,20117,25496,28932,141362,159076],"block":"s"},{"name":"Magnesium","atomic_mass":24.305,"boil":1363,"category":"alkaline earth metal","density":1.738,"discovered_by":"Joseph Black","melt":923,"molar_heat":24.869,"named_by":null,"number":12,"period":3,"group":2,"phase":"Solid","symbol":"Mg","xpos":2,"ypos":3,"wxpos":2,"wypos":3,"shells":[2,8,2],"electron_configuration":"1s2 2s2 2p6 3s2","electron_configuration_semantic":"[Ne] 3s2","electron_affinity":-40,"electronegativity_pauling":1.31,"ionization_energies":[737.7,1450.7,7732.7,10542.5,13630,18020,21711,25661,31653,35458,169988,189368],"block":"s"},{"name":"Aluminium","atomic_mass":26.98153857,"boil":2743,"category":"post-transition metal","density":2.7,"discovered_by":null,"melt":933.47,"molar_heat":24.2,"named_by":"Humphry Davy","number":13,"period":3,"group":13,"phase":"Solid","symbol":"Al","xpos":13,"ypos":3,"wxpos":27,"wypos":3,"shells":[2,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p1","electron_configuration_semantic":"[Ne] 3s2 3p1","electron_affinity":41.762,"electronegativity_pauling":1.61,"ionization_energies":[577.5,1816.7,2744.8,11577,14842,18379,23326,27465,31853,38473,42647,201266,222316],"block":"p"},{"name":"Silicon","atomic_mass":28.085,"boil":3538,"category":"metalloid","density":2.329,"discovered_by":"Jöns Jacob Berzelius","melt":1687,"molar_heat":19.789,"named_by":"Thomas Thomson (chemist)","number":14,"period":3,"group":14,"phase":"Solid","symbol":"Si","xpos":14,"ypos":3,"wxpos":28,"wypos":3,"shells":[2,8,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p2","electron_configuration_semantic":"[Ne] 3s2 3p2","electron_affinity":134.0684,"electronegativity_pauling":1.9,"ionization_energies":[786.5,1577.1,3231.6,4355.5,16091,19805,23780,29287,33878,38726,45962,50502,235196,257923],"block":"p"},{"name":"Phosphorus","atomic_mass":30.9737619985,"boil":null,"category":"polyatomic nonmetal","density":1.823,"discovered_by":"Hennig Brand","melt":null,"molar_heat":23.824,"named_by":null,"number":15,"period":3,"group":15,"phase":"Solid","symbol":"P","xpos":15,"ypos":3,"wxpos":29,"wypos":3,"shells":[2,8,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p3","electron_configuration_semantic":"[Ne] 3s2 3p3","electron_affinity":72.037,"electronegativity_pauling":2.19,"ionization_energies":[1011.8,1907,2914.1,4963.6,6273.9,21267,25431,29872,35905,40950,46261,54110,59024,271791,296195],"block":"p"},{"name":"Sulfur","atomic_mass":32.06,"boil":717.8,"category":"polyatomic nonmetal","density":2.07,"discovered_by":"Ancient china","melt":388.36,"molar_heat":22.75,"named_by":null,"number":16,"period":3,"group":16,"phase":"Solid","symbol":"S","xpos":16,"ypos":3,"wxpos":30,"wypos":3,"shells":[2,8,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p4","electron_configuration_semantic":"[Ne] 3s2 3p4","electron_affinity":200.4101,"electronegativity_pauling":2.58,"ionization_energies":[999.6,2252,3357,4556,7004.3,8495.8,27107,31719,36621,43177,48710,54460,62930,68216,311048,337138],"block":"p"},{"name":"Chlorine","atomic_mass":35.45,"boil":239.11,"category":"diatomic nonmetal","density":3.2,"discovered_by":"Carl Wilhelm Scheele","melt":171.6,"molar_heat":null,"named_by":null,"number":17,"period":3,"group":17,"phase":"Gas","symbol":"Cl","xpos":17,"ypos":3,"wxpos":31,"wypos":3,"shells":[2,8,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p5","electron_configuration_semantic":"[Ne] 3s2 3p5","electron_affinity":348.575,"electronegativity_pauling":3.16,"ionization_energies":[1251.2,2298,3822,5158.6,6542,9362,11018,33604,38600,43961,51068,57119,63363,72341,78095,352994,380760],"block":"p"},{"name":"Argon","atomic_mass":39.9481,"boil":87.302,"category":"noble gas","density":1.784,"discovered_by":"Lord Rayleigh","melt":83.81,"molar_heat":null,"named_by":null,"number":18,"period":3,"group":18,"phase":"Gas","symbol":"Ar","xpos":18,"ypos":3,"wxpos":32,"wypos":3,"shells":[2,8,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6","electron_configuration_semantic":"[Ne] 3s2 3p6","electron_affinity":-96,"electronegativity_pauling":null,"ionization_energies":[1520.6,2665.8,3931,5771,7238,8781,11995,13842,40760,46186,52002,59653,66199,72918,82473,88576,397605,427066],"block":"p"},{"name":"Potassium","atomic_mass":39.09831,"boil":1032,"category":"alkali metal","density":0.862,"discovered_by":"Humphry Davy","melt":336.7,"molar_heat":29.6,"named_by":null,"number":19,"period":4,"group":1,"phase":"Solid","symbol":"K","xpos":1,"ypos":4,"wxpos":1,"wypos":4,"shells":[2,8,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1","electron_configuration_semantic":"[Ar] 4s1","electron_affinity":48.383,"electronegativity_pauling":0.82,"ionization_energies":[418.8,3052,4420,5877,7975,9590,11343,14944,16963.7,48610,54490,60730,68950,75900,83080,93400,99710,444880,476063],"block":"s"},{"name":"Calcium","atomic_mass":40.0784,"boil":1757,"category":"alkaline earth metal","density":1.55,"discovered_by":"Humphry Davy","melt":1115,"molar_heat":25.929,"named_by":null,"number":20,"period":4,"group":2,"phase":"Solid","symbol":"Ca","xpos":2,"ypos":4,"wxpos":2,"wypos":4,"shells":[2,8,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2","electron_configuration_semantic":"[Ar] 4s2","electron_affinity":2.37,"electronegativity_pauling":1,"ionization_energies":[589.8,1145.4,4912.4,6491,8153,10496,12270,14206,18191,20385,57110,63410,70110,78890,86310,94000,104900,111711,494850,527762],"block":"s"},{"name":"Scandium","atomic_mass":44.9559085,"boil":3109,"category":"transition metal","density":2.985,"discovered_by":"Lars Fredrik Nilson","melt":1814,"molar_heat":25.52,"named_by":null,"number":21,"period":4,"group":3,"phase":"Solid","symbol":"Sc","xpos":3,"ypos":4,"wxpos":17,"wypos":4,"shells":[2,8,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d1","electron_configuration_semantic":"[Ar] 3d1 4s2","electron_affinity":18,"electronegativity_pauling":1.36,"ionization_energies":[633.1,1235,2388.6,7090.6,8843,10679,13310,15250,17370,21726,24102,66320,73010,80160,89490,97400,105600,117000,124270,547530,582163],"block":"d"},{"name":"Titanium","atomic_mass":47.8671,"boil":3560,"category":"transition metal","density":4.506,"discovered_by":"William Gregor","melt":1941,"molar_heat":25.06,"named_by":"Martin Heinrich Klaproth","number":22,"period":4,"group":4,"phase":"Solid","symbol":"Ti","xpos":4,"ypos":4,"wxpos":18,"wypos":4,"shells":[2,8,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d2","electron_configuration_semantic":"[Ar] 3d2 4s2","electron_affinity":7.289,"electronegativity_pauling":1.54,"ionization_energies":[658.8,1309.8,2652.5,4174.6,9581,11533,13590,16440,18530,20833,25575,28125,76015,83280,90880,100700,109100,117800,129900,137530,602930,639294],"block":"d"},{"name":"Vanadium","atomic_mass":50.94151,"boil":3680,"category":"transition metal","density":6,"discovered_by":"Andrés Manuel del Río","melt":2183,"molar_heat":24.89,"named_by":"Isotopes of vanadium","number":23,"period":4,"group":5,"phase":"Solid","symbol":"V","xpos":5,"ypos":4,"wxpos":19,"wypos":4,"shells":[2,8,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d3","electron_configuration_semantic":"[Ar] 3d3 4s2","electron_affinity":50.911,"electronegativity_pauling":1.63,"ionization_energies":[650.9,1414,2830,4507,6298.7,12363,14530,16730,19860,22240,24670,29730,32446,86450,94170,102300,112700,121600,130700,143400,151440,661050,699144],"block":"d"},{"name":"Chromium","atomic_mass":51.99616,"boil":2944,"category":"transition metal","density":7.19,"discovered_by":"Louis Nicolas Vauquelin","melt":2180,"molar_heat":23.35,"named_by":null,"number":24,"period":4,"group":6,"phase":"Solid","symbol":"Cr","xpos":6,"ypos":4,"wxpos":20,"wypos":4,"shells":[2,8,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d5","electron_configuration_semantic":"[Ar] 3d5 4s1","electron_affinity":65.21,"electronegativity_pauling":1.66,"ionization_energies":[652.9,1590.6,2987,4743,6702,8744.9,15455,17820,20190,23580,26130,28750,34230,37066,97510,105800,114300,125300,134700,144300,157700,166090,721870,761733],"block":"d"},{"name":"Manganese","atomic_mass":54.9380443,"boil":2334,"category":"transition metal","density":7.21,"discovered_by":"Torbern Olof Bergman","melt":1519,"molar_heat":26.32,"named_by":null,"number":25,"period":4,"group":7,"phase":"Solid","symbol":"Mn","xpos":7,"ypos":4,"wxpos":21,"wypos":4,"shells":[2,8,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d5","electron_configuration_semantic":"[Ar] 3d5 4s2","electron_affinity":-50,"electronegativity_pauling":1.55,"ionization_energies":[717.3,1509,3248,4940,6990,9220,11500,18770,21400,23960,27590,30330,33150,38880,41987,109480,118100,127100,138600,148500,158600,172500,181380,785450,827067],"block":"d"},{"name":"Iron","atomic_mass":55.8452,"boil":3134,"category":"transition metal","density":7.874,"discovered_by":"5000 BC","melt":1811,"molar_heat":25.1,"named_by":null,"number":26,"period":4,"group":8,"phase":"Solid","symbol":"Fe","xpos":8,"ypos":4,"wxpos":22,"wypos":4,"shells":[2,8,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d6","electron_configuration_semantic":"[Ar] 3d6 4s2","electron_affinity":14.785,"electronegativity_pauling":1.83,"ionization_energies":[762.5,1561.9,2957,5290,7240,9560,12060,14580,22540,25290,28000,31920,34830,37840,44100,47206,122200,131000,140500,152600,163000,173600,188100,195200,851800,895161],"block":"d"},{"name":"Cobalt","atomic_mass":58.9331944,"boil":3200,"category":"transition metal","density":8.9,"discovered_by":"Georg Brandt","melt":1768,"molar_heat":24.81,"named_by":null,"number":27,"period":4,"group":9,"phase":"Solid","symbol":"Co","xpos":9,"ypos":4,"wxpos":23,"wypos":4,"shells":[2,8,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d7","electron_configuration_semantic":"[Ar] 3d7 4s2","electron_affinity":63.898,"electronegativity_pauling":1.88,"ionization_energies":[760.4,1648,3232,4950,7670,9840,12440,15230,17959,26570,29400,32400,36600,39700,42800,49396,52737,134810,145170,154700,167400,178100,189300,204500,214100,920870,966023],"block":"d"},{"name":"Nickel","atomic_mass":58.69344,"boil":3003,"category":"transition metal","density":8.908,"discovered_by":"Axel Fredrik Cronstedt","melt":1728,"molar_heat":26.07,"named_by":null,"number":28,"period":4,"group":10,"phase":"Solid","symbol":"Ni","xpos":10,"ypos":4,"wxpos":24,"wypos":4,"shells":[2,8,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d8","electron_configuration_semantic":"[Ar] 3d8 4s2","electron_affinity":111.65,"electronegativity_pauling":1.91,"ionization_energies":[737.1,1753,3395,5300,7339,10400,12800,15600,18600,21670,30970,34000,37100,41500,44800,48100,55101,58570,148700,159000,169400,182700,194000,205600,221400,231490,992718,1039668],"block":"d"},{"name":"Copper","atomic_mass":63.5463,"boil":2835,"category":"transition metal","density":8.96,"discovered_by":"Middle East","melt":1357.77,"molar_heat":24.44,"named_by":null,"number":29,"period":4,"group":11,"phase":"Solid","symbol":"Cu","xpos":11,"ypos":4,"wxpos":25,"wypos":4,"shells":[2,8,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s1 3d10","electron_configuration_semantic":"[Ar] 3d10 4s1","electron_affinity":119.235,"electronegativity_pauling":1.9,"ionization_energies":[745.5,1957.9,3555,5536,7700,9900,13400,16000,19200,22400,25600,35600,38700,42000,46700,50200,53700,61100,64702,163700,174100,184900,198800,210500,222700,239100,249660,1067358,1116105],"block":"d"},{"name":"Zinc","atomic_mass":65.382,"boil":1180,"category":"transition metal","density":7.14,"discovered_by":"India","melt":692.68,"molar_heat":25.47,"named_by":null,"number":30,"period":4,"group":12,"phase":"Solid","symbol":"Zn","xpos":12,"ypos":4,"wxpos":26,"wypos":4,"shells":[2,8,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10","electron_configuration_semantic":"[Ar] 3d10 4s2","electron_affinity":-58,"electronegativity_pauling":1.65,"ionization_energies":[906.4,1733.3,3833,5731,7970,10400,12900,16800,19600,23000,26400,29990,40490,43800,47300,52300,55900,59700,67300,71200,179100],"block":"d"},{"name":"Gallium","atomic_mass":69.7231,"boil":2673,"category":"post-transition metal","density":5.91,"discovered_by":"Lecoq de Boisbaudran","melt":302.9146,"molar_heat":25.86,"named_by":null,"number":31,"period":4,"group":13,"phase":"Solid","symbol":"Ga","xpos":13,"ypos":4,"wxpos":27,"wypos":4,"shells":[2,8,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p1","electron_configuration_semantic":"[Ar] 3d10 4s2 4p1","electron_affinity":41,"electronegativity_pauling":1.81,"ionization_energies":[578.8,1979.3,2963,6180],"block":"p"},{"name":"Germanium","atomic_mass":72.6308,"boil":3106,"category":"metalloid","density":5.323,"discovered_by":"Clemens Winkler","melt":1211.4,"molar_heat":23.222,"named_by":null,"number":32,"period":4,"group":14,"phase":"Solid","symbol":"Ge","xpos":14,"ypos":4,"wxpos":28,"wypos":4,"shells":[2,8,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p2","electron_configuration_semantic":"[Ar] 3d10 4s2 4p2","electron_affinity":118.9352,"electronegativity_pauling":2.01,"ionization_energies":[762,1537.5,3302.1,4411,9020],"block":"p"},{"name":"Arsenic","atomic_mass":74.9215956,"boil":null,"category":"metalloid","density":5.727,"discovered_by":"Bronze Age","melt":null,"molar_heat":24.64,"named_by":null,"number":33,"period":4,"group":15,"phase":"Solid","symbol":"As","xpos":15,"ypos":4,"wxpos":29,"wypos":4,"shells":[2,8,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p3","electron_configuration_semantic":"[Ar] 3d10 4s2 4p3","electron_affinity":77.65,"electronegativity_pauling":2.18,"ionization_energies":[947,1798,2735,4837,6043,12310],"block":"p"},{"name":"Selenium","atomic_mass":78.9718,"boil":958,"category":"polyatomic nonmetal","density":4.81,"discovered_by":"Jöns Jakob Berzelius","melt":494,"molar_heat":25.363,"named_by":null,"number":34,"period":4,"group":16,"phase":"Solid","symbol":"Se","xpos":16,"ypos":4,"wxpos":30,"wypos":4,"shells":[2,8,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p4","electron_configuration_semantic":"[Ar] 3d10 4s2 4p4","electron_affinity":194.9587,"electronegativity_pauling":2.55,"ionization_energies":[941,2045,2973.7,4144,6590,7880,14990],"block":"p"},{"name":"Bromine","atomic_mass":79.904,"boil":332,"category":"diatomic nonmetal","density":3.1028,"discovered_by":"Antoine Jérôme Balard","melt":265.8,"molar_heat":null,"named_by":null,"number":35,"period":4,"group":17,"phase":"Liquid","symbol":"Br","xpos":17,"ypos":4,"wxpos":31,"wypos":4,"shells":[2,8,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p5","electron_configuration_semantic":"[Ar] 3d10 4s2 4p5","electron_affinity":324.537,"electronegativity_pauling":2.96,"ionization_energies":[1139.9,2103,3470,4560,5760,8550,9940,18600],"block":"p"},{"name":"Krypton","atomic_mass":83.7982,"boil":119.93,"category":"noble gas","density":3.749,"discovered_by":"William Ramsay","melt":115.78,"molar_heat":null,"named_by":null,"number":36,"period":4,"group":18,"phase":"Gas","symbol":"Kr","xpos":18,"ypos":4,"wxpos":32,"wypos":4,"shells":[2,8,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6","electron_configuration_semantic":"[Ar] 3d10 4s2 4p6","electron_affinity":-96,"electronegativity_pauling":3,"ionization_energies":[1350.8,2350.4,3565,5070,6240,7570,10710,12138,22274,25880,29700,33800,37700,43100,47500,52200,57100,61800,75800,80400,85300,90400,96300,101400,111100,116290,282500,296200,311400,326200],"block":"p"},{"name":"Rubidium","atomic_mass":85.46783,"boil":961,"category":"alkali metal","density":1.532,"discovered_by":"Robert Bunsen","melt":312.45,"molar_heat":31.06,"named_by":null,"number":37,"period":5,"group":1,"phase":"Solid","symbol":"Rb","xpos":1,"ypos":5,"wxpos":1,"wypos":5,"shells":[2,8,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1","electron_configuration_semantic":"[Kr] 5s1","electron_affinity":46.884,"electronegativity_pauling":0.82,"ionization_energies":[403,2633,3860,5080,6850,8140,9570,13120,14500,26740],"block":"s"},{"name":"Strontium","atomic_mass":87.621,"boil":1650,"category":"alkaline earth metal","density":2.64,"discovered_by":"William Cruickshank (chemist)","melt":1050,"molar_heat":26.4,"named_by":null,"number":38,"period":5,"group":2,"phase":"Solid","symbol":"Sr","xpos":2,"ypos":5,"wxpos":2,"wypos":5,"shells":[2,8,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2","electron_configuration_semantic":"[Kr] 5s2","electron_affinity":5.023,"electronegativity_pauling":0.95,"ionization_energies":[549.5,1064.2,4138,5500,6910,8760,10230,11800,15600,17100,31270],"block":"s"},{"name":"Yttrium","atomic_mass":88.905842,"boil":3203,"category":"transition metal","density":4.472,"discovered_by":"Johan Gadolin","melt":1799,"molar_heat":26.53,"named_by":null,"number":39,"period":5,"group":3,"phase":"Solid","symbol":"Y","xpos":3,"ypos":5,"wxpos":17,"wypos":5,"shells":[2,8,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d1","electron_configuration_semantic":"[Kr] 4d1 5s2","electron_affinity":29.6,"electronegativity_pauling":1.22,"ionization_energies":[600,1180,1980,5847,7430,8970,11190,12450,14110,18400,19900,36090],"block":"d"},{"name":"Zirconium","atomic_mass":91.2242,"boil":4650,"category":"transition metal","density":6.52,"discovered_by":"Martin Heinrich Klaproth","melt":2128,"molar_heat":25.36,"named_by":null,"number":40,"period":5,"group":4,"phase":"Solid","symbol":"Zr","xpos":4,"ypos":5,"wxpos":18,"wypos":5,"shells":[2,8,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d2","electron_configuration_semantic":"[Kr] 4d2 5s2","electron_affinity":41.806,"electronegativity_pauling":1.33,"ionization_energies":[640.1,1270,2218,3313,7752,9500],"block":"d"},{"name":"Niobium","atomic_mass":92.906372,"boil":5017,"category":"transition metal","density":8.57,"discovered_by":"Charles Hatchett","melt":2750,"molar_heat":24.6,"named_by":null,"number":41,"period":5,"group":5,"phase":"Solid","symbol":"Nb","xpos":5,"ypos":5,"wxpos":19,"wypos":5,"shells":[2,8,18,12,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d4","electron_configuration_semantic":"[Kr] 4d4 5s1","electron_affinity":88.516,"electronegativity_pauling":1.6,"ionization_energies":[652.1,1380,2416,3700,4877,9847,12100],"block":"d"},{"name":"Molybdenum","atomic_mass":95.951,"boil":4912,"category":"transition metal","density":10.28,"discovered_by":"Carl Wilhelm Scheele","melt":2896,"molar_heat":24.06,"named_by":null,"number":42,"period":5,"group":6,"phase":"Solid","symbol":"Mo","xpos":6,"ypos":5,"wxpos":20,"wypos":5,"shells":[2,8,18,13,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d5","electron_configuration_semantic":"[Kr] 4d5 5s1","electron_affinity":72.1,"electronegativity_pauling":2.16,"ionization_energies":[684.3,1560,2618,4480,5257,6640.8,12125,13860,15835,17980,20190,22219,26930,29196,52490,55000,61400,67700,74000,80400,87000,93400,98420,104400,121900,127700,133800,139800,148100,154500],"block":"d"},{"name":"Technetium","atomic_mass":98,"boil":4538,"category":"transition metal","density":11,"discovered_by":"Emilio Segrè","melt":2430,"molar_heat":24.27,"named_by":null,"number":43,"period":5,"group":7,"phase":"Solid","symbol":"Tc","xpos":7,"ypos":5,"wxpos":21,"wypos":5,"shells":[2,8,18,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d5","electron_configuration_semantic":"[Kr] 4d5 5s2","electron_affinity":53,"electronegativity_pauling":1.9,"ionization_energies":[702,1470,2850],"block":"d"},{"name":"Ruthenium","atomic_mass":101.072,"boil":4423,"category":"transition metal","density":12.45,"discovered_by":"Karl Ernst Claus","melt":2607,"molar_heat":24.06,"named_by":null,"number":44,"period":5,"group":8,"phase":"Solid","symbol":"Ru","xpos":8,"ypos":5,"wxpos":22,"wypos":5,"shells":[2,8,18,15,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d7","electron_configuration_semantic":"[Kr] 4d7 5s1","electron_affinity":100.96,"electronegativity_pauling":2.2,"ionization_energies":[710.2,1620,2747],"block":"d"},{"name":"Rhodium","atomic_mass":102.905502,"boil":3968,"category":"transition metal","density":12.41,"discovered_by":"William Hyde Wollaston","melt":2237,"molar_heat":24.98,"named_by":null,"number":45,"period":5,"group":9,"phase":"Solid","symbol":"Rh","xpos":9,"ypos":5,"wxpos":23,"wypos":5,"shells":[2,8,18,16,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d8","electron_configuration_semantic":"[Kr] 4d8 5s1","electron_affinity":110.27,"electronegativity_pauling":2.28,"ionization_energies":[719.7,1740,2997],"block":"d"},{"name":"Palladium","atomic_mass":106.421,"boil":3236,"category":"transition metal","density":12.023,"discovered_by":"William Hyde Wollaston","melt":1828.05,"molar_heat":25.98,"named_by":null,"number":46,"period":5,"group":10,"phase":"Solid","symbol":"Pd","xpos":10,"ypos":5,"wxpos":24,"wypos":5,"shells":[2,8,18,18],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 4d10","electron_configuration_semantic":"[Kr] 4d10","electron_affinity":54.24,"electronegativity_pauling":2.2,"ionization_energies":[804.4,1870,3177],"block":"d"},{"name":"Silver","atomic_mass":107.86822,"boil":2435,"category":"transition metal","density":10.49,"discovered_by":"unknown, before 5000 BC","melt":1234.93,"molar_heat":25.35,"named_by":null,"number":47,"period":5,"group":11,"phase":"Solid","symbol":"Ag","xpos":11,"ypos":5,"wxpos":25,"wypos":5,"shells":[2,8,18,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s1 4d10","electron_configuration_semantic":"[Kr] 4d10 5s1","electron_affinity":125.862,"electronegativity_pauling":1.93,"ionization_energies":[731,2070,3361],"block":"d"},{"name":"Cadmium","atomic_mass":112.4144,"boil":1040,"category":"transition metal","density":8.65,"discovered_by":"Karl Samuel Leberecht Hermann","melt":594.22,"molar_heat":26.02,"named_by":"Isotopes of cadmium","number":48,"period":5,"group":12,"phase":"Solid","symbol":"Cd","xpos":12,"ypos":5,"wxpos":26,"wypos":5,"shells":[2,8,18,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10","electron_configuration_semantic":"[Kr] 4d10 5s2","electron_affinity":-68,"electronegativity_pauling":1.69,"ionization_energies":[867.8,1631.4,3616],"block":"d"},{"name":"Indium","atomic_mass":114.8181,"boil":2345,"category":"post-transition metal","density":7.31,"discovered_by":"Ferdinand Reich","melt":429.7485,"molar_heat":26.74,"named_by":null,"number":49,"period":5,"group":13,"phase":"Solid","symbol":"In","xpos":13,"ypos":5,"wxpos":27,"wypos":5,"shells":[2,8,18,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p1","electron_configuration_semantic":"[Kr] 4d10 5s2 5p1","electron_affinity":37.043,"electronegativity_pauling":1.78,"ionization_energies":[558.3,1820.7,2704,5210],"block":"p"},{"name":"Tin","atomic_mass":118.7107,"boil":2875,"category":"post-transition metal","density":7.365,"discovered_by":"unknown, before 3500 BC","melt":505.08,"molar_heat":27.112,"named_by":null,"number":50,"period":5,"group":14,"phase":"Solid","symbol":"Sn","xpos":14,"ypos":5,"wxpos":28,"wypos":5,"shells":[2,8,18,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p2","electron_configuration_semantic":"[Kr] 4d10 5s2 5p2","electron_affinity":107.2984,"electronegativity_pauling":1.96,"ionization_energies":[708.6,1411.8,2943,3930.3,7456],"block":"p"},{"name":"Antimony","atomic_mass":121.7601,"boil":1908,"category":"metalloid","density":6.697,"discovered_by":"unknown, before 3000 BC","melt":903.78,"molar_heat":25.23,"named_by":null,"number":51,"period":5,"group":15,"phase":"Solid","symbol":"Sb","xpos":15,"ypos":5,"wxpos":29,"wypos":5,"shells":[2,8,18,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p3","electron_configuration_semantic":"[Kr] 4d10 5s2 5p3","electron_affinity":101.059,"electronegativity_pauling":2.05,"ionization_energies":[834,1594.9,2440,4260,5400,10400],"block":"p"},{"name":"Tellurium","atomic_mass":127.603,"boil":1261,"category":"metalloid","density":6.24,"discovered_by":"Franz-Joseph Müller von Reichenstein","melt":722.66,"molar_heat":25.73,"named_by":null,"number":52,"period":5,"group":16,"phase":"Solid","symbol":"Te","xpos":16,"ypos":5,"wxpos":30,"wypos":5,"shells":[2,8,18,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p4","electron_configuration_semantic":"[Kr] 4d10 5s2 5p4","electron_affinity":190.161,"electronegativity_pauling":2.1,"ionization_energies":[869.3,1790,2698,3610,5668,6820,13200],"block":"p"},{"name":"Iodine","atomic_mass":126.904473,"boil":457.4,"category":"diatomic nonmetal","density":4.933,"discovered_by":"Bernard Courtois","melt":386.85,"molar_heat":null,"named_by":null,"number":53,"period":5,"group":17,"phase":"Solid","symbol":"I","xpos":17,"ypos":5,"wxpos":31,"wypos":5,"shells":[2,8,18,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p5","electron_configuration_semantic":"[Kr] 4d10 5s2 5p5","electron_affinity":295.1531,"electronegativity_pauling":2.66,"ionization_energies":[1008.4,1845.9,3180],"block":"p"},{"name":"Xenon","atomic_mass":131.2936,"boil":165.051,"category":"noble gas","density":5.894,"discovered_by":"William Ramsay","melt":161.4,"molar_heat":null,"named_by":null,"number":54,"period":5,"group":18,"phase":"Gas","symbol":"Xe","xpos":18,"ypos":5,"wxpos":32,"wypos":5,"shells":[2,8,18,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6","electron_configuration_semantic":"[Kr] 4d10 5s2 5p6","electron_affinity":-77,"electronegativity_pauling":2.6,"ionization_energies":[1170.4,2046.4,3099.4],"block":"p"},{"name":"Cesium","atomic_mass":132.905451966,"boil":944,"category":"alkali metal","density":1.93,"discovered_by":"Robert Bunsen","melt":301.7,"molar_heat":32.21,"named_by":null,"number":55,"period":6,"group":1,"phase":"Solid","symbol":"Cs","xpos":1,"ypos":6,"wxpos":1,"wypos":6,"shells":[2,8,18,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1","electron_configuration_semantic":"[Xe] 6s1","electron_affinity":45.505,"electronegativity_pauling":0.79,"ionization_energies":[375.7,2234.3,3400],"block":"s"},{"name":"Barium","atomic_mass":137.3277,"boil":2118,"category":"alkaline earth metal","density":3.51,"discovered_by":"Carl Wilhelm Scheele","melt":1000,"molar_heat":28.07,"named_by":null,"number":56,"period":6,"group":2,"phase":"Solid","symbol":"Ba","xpos":2,"ypos":6,"wxpos":2,"wypos":6,"shells":[2,8,18,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2","electron_configuration_semantic":"[Xe] 6s2","electron_affinity":13.954,"electronegativity_pauling":0.89,"ionization_energies":[502.9,965.2,3600],"block":"s"},{"name":"Lanthanum","atomic_mass":138.905477,"boil":3737,"category":"lanthanide","density":6.162,"discovered_by":"Carl Gustaf Mosander","melt":1193,"molar_heat":27.11,"named_by":null,"number":57,"period":6,"group":3,"phase":"Solid","symbol":"La","xpos":3,"ypos":9,"wxpos":3,"wypos":6,"shells":[2,8,18,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1","electron_configuration_semantic":"[Xe] 5d16s2","electron_affinity":53,"electronegativity_pauling":1.1,"ionization_energies":[538.1,1067,1850.3,4819,5940],"block":"f"},{"name":"Cerium","atomic_mass":140.1161,"boil":3716,"category":"lanthanide","density":6.77,"discovered_by":"Martin Heinrich Klaproth","melt":1068,"molar_heat":26.94,"named_by":null,"number":58,"period":6,"group":3,"phase":"Solid","symbol":"Ce","xpos":4,"ypos":9,"wxpos":4,"wypos":6,"shells":[2,8,18,19,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 5d1 4f1","electron_configuration_semantic":"[Xe] 4f1 5d1 6s2","electron_affinity":55,"electronegativity_pauling":1.12,"ionization_energies":[534.4,1050,1949,3547,6325,7490],"block":"f"},{"name":"Praseodymium","atomic_mass":140.907662,"boil":3403,"category":"lanthanide","density":6.77,"discovered_by":"Carl Auer von Welsbach","melt":1208,"molar_heat":27.2,"named_by":null,"number":59,"period":6,"group":3,"phase":"Solid","symbol":"Pr","xpos":5,"ypos":9,"wxpos":5,"wypos":6,"shells":[2,8,18,21,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f3","electron_configuration_semantic":"[Xe] 4f3 6s2","electron_affinity":93,"electronegativity_pauling":1.13,"ionization_energies":[527,1020,2086,3761,5551],"block":"f"},{"name":"Neodymium","atomic_mass":144.2423,"boil":3347,"category":"lanthanide","density":7.01,"discovered_by":"Carl Auer von Welsbach","melt":1297,"molar_heat":27.45,"named_by":null,"number":60,"period":6,"group":3,"phase":"Solid","symbol":"Nd","xpos":6,"ypos":9,"wxpos":6,"wypos":6,"shells":[2,8,18,22,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f4","electron_configuration_semantic":"[Xe] 4f4 6s2","electron_affinity":184.87,"electronegativity_pauling":1.14,"ionization_energies":[533.1,1040,2130,3900],"block":"f"},{"name":"Promethium","atomic_mass":145,"boil":3273,"category":"lanthanide","density":7.26,"discovered_by":"Chien Shiung Wu","melt":1315,"molar_heat":null,"named_by":"Isotopes of promethium","number":61,"period":6,"group":3,"phase":"Solid","symbol":"Pm","xpos":7,"ypos":9,"wxpos":7,"wypos":6,"shells":[2,8,18,23,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f5","electron_configuration_semantic":"[Xe] 4f5 6s2","electron_affinity":12.45,"electronegativity_pauling":1.13,"ionization_energies":[540,1050,2150,3970],"block":"f"},{"name":"Samarium","atomic_mass":150.362,"boil":2173,"category":"lanthanide","density":7.52,"discovered_by":"Lecoq de Boisbaudran","melt":1345,"molar_heat":29.54,"named_by":null,"number":62,"period":6,"group":3,"phase":"Solid","symbol":"Sm","xpos":8,"ypos":9,"wxpos":8,"wypos":6,"shells":[2,8,18,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f6","electron_configuration_semantic":"[Xe] 4f6 6s2","electron_affinity":15.63,"electronegativity_pauling":1.17,"ionization_energies":[544.5,1070,2260,3990],"block":"f"},{"name":"Europium","atomic_mass":151.9641,"boil":1802,"category":"lanthanide","density":5.264,"discovered_by":"Eugène-Anatole Demarçay","melt":1099,"molar_heat":27.66,"named_by":null,"number":63,"period":6,"group":3,"phase":"Solid","symbol":"Eu","xpos":9,"ypos":9,"wxpos":9,"wypos":6,"shells":[2,8,18,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7","electron_configuration_semantic":"[Xe] 4f7 6s2","electron_affinity":11.2,"electronegativity_pauling":1.2,"ionization_energies":[547.1,1085,2404,4120],"block":"f"},{"name":"Gadolinium","atomic_mass":157.253,"boil":3273,"category":"lanthanide","density":7.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1585,"molar_heat":37.03,"named_by":null,"number":64,"period":6,"group":3,"phase":"Solid","symbol":"Gd","xpos":10,"ypos":9,"wxpos":10,"wypos":6,"shells":[2,8,18,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f7 5d1","electron_configuration_semantic":"[Xe] 4f7 5d1 6s2","electron_affinity":13.22,"electronegativity_pauling":1.2,"ionization_energies":[593.4,1170,1990,4250],"block":"f"},{"name":"Terbium","atomic_mass":158.925352,"boil":3396,"category":"lanthanide","density":8.23,"discovered_by":"Carl Gustaf Mosander","melt":1629,"molar_heat":28.91,"named_by":null,"number":65,"period":6,"group":3,"phase":"Solid","symbol":"Tb","xpos":11,"ypos":9,"wxpos":11,"wypos":6,"shells":[2,8,18,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f9","electron_configuration_semantic":"[Xe] 4f9 6s2","electron_affinity":112.4,"electronegativity_pauling":1.1,"ionization_energies":[565.8,1110,2114,3839],"block":"f"},{"name":"Dysprosium","atomic_mass":162.5001,"boil":2840,"category":"lanthanide","density":8.54,"discovered_by":"Lecoq de Boisbaudran","melt":1680,"molar_heat":27.7,"named_by":null,"number":66,"period":6,"group":3,"phase":"Solid","symbol":"Dy","xpos":12,"ypos":9,"wxpos":12,"wypos":6,"shells":[2,8,18,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f10","electron_configuration_semantic":"[Xe] 4f10 6s2","electron_affinity":33.96,"electronegativity_pauling":1.22,"ionization_energies":[573,1130,2200,3990],"block":"f"},{"name":"Holmium","atomic_mass":164.930332,"boil":2873,"category":"lanthanide","density":8.79,"discovered_by":"Marc Delafontaine","melt":1734,"molar_heat":27.15,"named_by":null,"number":67,"period":6,"group":3,"phase":"Solid","symbol":"Ho","xpos":13,"ypos":9,"wxpos":13,"wypos":6,"shells":[2,8,18,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f11","electron_configuration_semantic":"[Xe] 4f11 6s2","electron_affinity":32.61,"electronegativity_pauling":1.23,"ionization_energies":[581,1140,2204,4100],"block":"f"},{"name":"Erbium","atomic_mass":167.2593,"boil":3141,"category":"lanthanide","density":9.066,"discovered_by":"Carl Gustaf Mosander","melt":1802,"molar_heat":28.12,"named_by":null,"number":68,"period":6,"group":3,"phase":"Solid","symbol":"Er","xpos":14,"ypos":9,"wxpos":14,"wypos":6,"shells":[2,8,18,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f12","electron_configuration_semantic":"[Xe] 4f12 6s2","electron_affinity":30.1,"electronegativity_pauling":1.24,"ionization_energies":[589.3,1150,2194,4120],"block":"f"},{"name":"Thulium","atomic_mass":168.934222,"boil":2223,"category":"lanthanide","density":9.32,"discovered_by":"Per Teodor Cleve","melt":1818,"molar_heat":27.03,"named_by":null,"number":69,"period":6,"group":3,"phase":"Solid","symbol":"Tm","xpos":15,"ypos":9,"wxpos":15,"wypos":6,"shells":[2,8,18,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f13","electron_configuration_semantic":"[Xe] 4f13 6s2","electron_affinity":99,"electronegativity_pauling":1.25,"ionization_energies":[596.7,1160,2285,4120],"block":"f"},{"name":"Ytterbium","atomic_mass":173.0451,"boil":1469,"category":"lanthanide","density":6.9,"discovered_by":"Jean Charles Galissard de Marignac","melt":1097,"molar_heat":26.74,"named_by":null,"number":70,"period":6,"group":3,"phase":"Solid","symbol":"Yb","xpos":16,"ypos":9,"wxpos":16,"wypos":6,"shells":[2,8,18,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14","electron_configuration_semantic":"[Xe] 4f14 6s2","electron_affinity":-1.93,"electronegativity_pauling":1.1,"ionization_energies":[603.4,1174.8,2417,4203],"block":"f"},{"name":"Lutetium","atomic_mass":174.96681,"boil":3675,"category":"lanthanide","density":9.841,"discovered_by":"Georges Urbain","melt":1925,"molar_heat":26.86,"named_by":null,"number":71,"period":6,"group":3,"phase":"Solid","symbol":"Lu","xpos":17,"ypos":9,"wxpos":17,"wypos":6,"shells":[2,8,18,32,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d1","electron_configuration_semantic":"[Xe] 4f14 5d1 6s2","electron_affinity":33.4,"electronegativity_pauling":1.27,"ionization_energies":[523.5,1340,2022.3,4370,6445],"block":"d"},{"name":"Hafnium","atomic_mass":178.492,"boil":4876,"category":"transition metal","density":13.31,"discovered_by":"Dirk Coster","melt":2506,"molar_heat":25.73,"named_by":null,"number":72,"period":6,"group":4,"phase":"Solid","symbol":"Hf","xpos":4,"ypos":6,"wxpos":18,"wypos":6,"shells":[2,8,18,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d2","electron_configuration_semantic":"[Xe] 4f14 5d2 6s2","electron_affinity":17.18,"electronegativity_pauling":1.3,"ionization_energies":[658.5,1440,2250,3216],"block":"d"},{"name":"Tantalum","atomic_mass":180.947882,"boil":5731,"category":"transition metal","density":16.69,"discovered_by":"Anders Gustaf Ekeberg","melt":3290,"molar_heat":25.36,"named_by":null,"number":73,"period":6,"group":5,"phase":"Solid","symbol":"Ta","xpos":5,"ypos":6,"wxpos":19,"wypos":6,"shells":[2,8,18,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d3","electron_configuration_semantic":"[Xe] 4f14 5d3 6s2","electron_affinity":31,"electronegativity_pauling":1.5,"ionization_energies":[761,1500],"block":"d"},{"name":"Tungsten","atomic_mass":183.841,"boil":6203,"category":"transition metal","density":19.25,"discovered_by":"Carl Wilhelm Scheele","melt":3695,"molar_heat":24.27,"named_by":null,"number":74,"period":6,"group":6,"phase":"Solid","symbol":"W","xpos":6,"ypos":6,"wxpos":20,"wypos":6,"shells":[2,8,18,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d4","electron_configuration_semantic":"[Xe] 4f14 5d4 6s2","electron_affinity":78.76,"electronegativity_pauling":2.36,"ionization_energies":[770,1700],"block":"d"},{"name":"Rhenium","atomic_mass":186.2071,"boil":5869,"category":"transition metal","density":21.02,"discovered_by":"Masataka Ogawa","melt":3459,"molar_heat":25.48,"named_by":"Walter Noddack","number":75,"period":6,"group":7,"phase":"Solid","symbol":"Re","xpos":7,"ypos":6,"wxpos":21,"wypos":6,"shells":[2,8,18,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d5","electron_configuration_semantic":"[Xe] 4f14 5d5 6s2","electron_affinity":5.8273,"electronegativity_pauling":1.9,"ionization_energies":[760,1260,2510,3640],"block":"d"},{"name":"Osmium","atomic_mass":190.233,"boil":5285,"category":"transition metal","density":22.59,"discovered_by":"Smithson Tennant","melt":3306,"molar_heat":24.7,"named_by":null,"number":76,"period":6,"group":8,"phase":"Solid","symbol":"Os","xpos":8,"ypos":6,"wxpos":22,"wypos":6,"shells":[2,8,18,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d6","electron_configuration_semantic":"[Xe] 4f14 5d6 6s2","electron_affinity":103.99,"electronegativity_pauling":2.2,"ionization_energies":[840,1600],"block":"d"},{"name":"Iridium","atomic_mass":192.2173,"boil":4403,"category":"transition metal","density":22.56,"discovered_by":"Smithson Tennant","melt":2719,"molar_heat":25.1,"named_by":null,"number":77,"period":6,"group":9,"phase":"Solid","symbol":"Ir","xpos":9,"ypos":6,"wxpos":23,"wypos":6,"shells":[2,8,18,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d7","electron_configuration_semantic":"[Xe] 4f14 5d7 6s2","electron_affinity":150.94,"electronegativity_pauling":2.2,"ionization_energies":[880,1600],"block":"d"},{"name":"Platinum","atomic_mass":195.0849,"boil":4098,"category":"transition metal","density":21.45,"discovered_by":"Antonio de Ulloa","melt":2041.4,"molar_heat":25.86,"named_by":null,"number":78,"period":6,"group":10,"phase":"Solid","symbol":"Pt","xpos":10,"ypos":6,"wxpos":24,"wypos":6,"shells":[2,8,18,32,17,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d9","electron_configuration_semantic":"[Xe] 4f14 5d9 6s1","electron_affinity":205.041,"electronegativity_pauling":2.28,"ionization_energies":[870,1791],"block":"d"},{"name":"Gold","atomic_mass":196.9665695,"boil":3243,"category":"transition metal","density":19.3,"discovered_by":"Middle East","melt":1337.33,"molar_heat":25.418,"named_by":null,"number":79,"period":6,"group":11,"phase":"Solid","symbol":"Au","xpos":11,"ypos":6,"wxpos":25,"wypos":6,"shells":[2,8,18,32,18,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s1 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s1","electron_affinity":222.747,"electronegativity_pauling":2.54,"ionization_energies":[890.1,1980],"block":"d"},{"name":"Mercury","atomic_mass":200.5923,"boil":629.88,"category":"transition metal","density":13.534,"discovered_by":"unknown, before 2000 BCE","melt":234.321,"molar_heat":27.983,"named_by":null,"number":80,"period":6,"group":12,"phase":"Liquid","symbol":"Hg","xpos":12,"ypos":6,"wxpos":26,"wypos":6,"shells":[2,8,18,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2","electron_affinity":-48,"electronegativity_pauling":2,"ionization_energies":[1007.1,1810,3300],"block":"d"},{"name":"Thallium","atomic_mass":204.38,"boil":1746,"category":"post-transition metal","density":11.85,"discovered_by":"William Crookes","melt":577,"molar_heat":26.32,"named_by":null,"number":81,"period":6,"group":13,"phase":"Solid","symbol":"Tl","xpos":13,"ypos":6,"wxpos":27,"wypos":6,"shells":[2,8,18,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p1","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p1","electron_affinity":36.4,"electronegativity_pauling":1.62,"ionization_energies":[589.4,1971,2878],"block":"p"},{"name":"Lead","atomic_mass":207.21,"boil":2022,"category":"post-transition metal","density":11.34,"discovered_by":"Middle East","melt":600.61,"molar_heat":26.65,"named_by":null,"number":82,"period":6,"group":14,"phase":"Solid","symbol":"Pb","xpos":14,"ypos":6,"wxpos":28,"wypos":6,"shells":[2,8,18,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p2","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p2","electron_affinity":34.4204,"electronegativity_pauling":1.87,"ionization_energies":[715.6,1450.5,3081.5,4083,6640],"block":"p"},{"name":"Bismuth","atomic_mass":208.980401,"boil":1837,"category":"post-transition metal","density":9.78,"discovered_by":"Claude François Geoffroy","melt":544.7,"molar_heat":25.52,"named_by":null,"number":83,"period":6,"group":15,"phase":"Solid","symbol":"Bi","xpos":15,"ypos":6,"wxpos":29,"wypos":6,"shells":[2,8,18,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p3","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p3","electron_affinity":90.924,"electronegativity_pauling":2.02,"ionization_energies":[703,1610,2466,4370,5400,8520],"block":"p"},{"name":"Polonium","atomic_mass":209,"boil":1235,"category":"post-transition metal","density":9.196,"discovered_by":"Pierre Curie","melt":527,"molar_heat":26.4,"named_by":null,"number":84,"period":6,"group":16,"phase":"Solid","symbol":"Po","xpos":16,"ypos":6,"wxpos":30,"wypos":6,"shells":[2,8,18,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p4","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p4","electron_affinity":136,"electronegativity_pauling":2,"ionization_energies":[812.1],"block":"p"},{"name":"Astatine","atomic_mass":210,"boil":610,"category":"metalloid","density":6.35,"discovered_by":"Dale R. Corson","melt":575,"molar_heat":null,"named_by":null,"number":85,"period":6,"group":17,"phase":"Solid","symbol":"At","xpos":17,"ypos":6,"wxpos":31,"wypos":6,"shells":[2,8,18,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p5","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p5","electron_affinity":233,"electronegativity_pauling":2.2,"ionization_energies":[899.003],"block":"p"},{"name":"Radon","atomic_mass":222,"boil":211.5,"category":"noble gas","density":9.73,"discovered_by":"Friedrich Ernst Dorn","melt":202,"molar_heat":null,"named_by":null,"number":86,"period":6,"group":18,"phase":"Gas","symbol":"Rn","xpos":18,"ypos":6,"wxpos":32,"wypos":6,"shells":[2,8,18,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6","electron_configuration_semantic":"[Xe] 4f14 5d10 6s2 6p6","electron_affinity":-68,"electronegativity_pauling":2.2,"ionization_energies":[1037],"block":"p"},{"name":"Francium","atomic_mass":223,"boil":950,"category":"alkali metal","density":1.87,"discovered_by":"Marguerite Perey","melt":300,"molar_heat":null,"named_by":null,"number":87,"period":7,"group":1,"phase":"Solid","symbol":"Fr","xpos":1,"ypos":7,"wxpos":1,"wypos":7,"shells":[2,8,18,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s1","electron_configuration_semantic":"[Rn] 7s1","electron_affinity":46.89,"electronegativity_pauling":0.79,"ionization_energies":[380],"block":"s"},{"name":"Radium","atomic_mass":226,"boil":2010,"category":"alkaline earth metal","density":5.5,"discovered_by":"Pierre Curie","melt":1233,"molar_heat":null,"named_by":null,"number":88,"period":7,"group":2,"phase":"Solid","symbol":"Ra","xpos":2,"ypos":7,"wxpos":2,"wypos":7,"shells":[2,8,18,32,18,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2","electron_configuration_semantic":"[Rn] 7s2","electron_affinity":9.6485,"electronegativity_pauling":0.9,"ionization_energies":[509.3,979],"block":"s"},{"name":"Actinium","atomic_mass":227,"boil":3500,"category":"actinide","density":10,"discovered_by":"Friedrich Oskar Giesel","melt":1500,"molar_heat":27.2,"named_by":null,"number":89,"period":7,"group":3,"phase":"Solid","symbol":"Ac","xpos":3,"ypos":10,"wxpos":3,"wypos":7,"shells":[2,8,18,32,18,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d1","electron_configuration_semantic":"[Rn] 6d1 7s2","electron_affinity":33.77,"electronegativity_pauling":1.1,"ionization_energies":[499,1170],"block":"f"},{"name":"Thorium","atomic_mass":232.03774,"boil":5061,"category":"actinide","density":11.724,"discovered_by":"Jöns Jakob Berzelius","melt":2023,"molar_heat":26.23,"named_by":null,"number":90,"period":7,"group":3,"phase":"Solid","symbol":"Th","xpos":4,"ypos":10,"wxpos":4,"wypos":7,"shells":[2,8,18,32,18,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 6d2","electron_configuration_semantic":"[Rn] 6d2 7s2","electron_affinity":112.72,"electronegativity_pauling":1.3,"ionization_energies":[587,1110,1930,2780],"block":"f"},{"name":"Protactinium","atomic_mass":231.035882,"boil":4300,"category":"actinide","density":15.37,"discovered_by":"William Crookes","melt":1841,"molar_heat":null,"named_by":"Otto Hahn","number":91,"period":7,"group":3,"phase":"Solid","symbol":"Pa","xpos":5,"ypos":10,"wxpos":5,"wypos":7,"shells":[2,8,18,32,20,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f2 6d1","electron_configuration_semantic":"[Rn] 5f2 6d1 7s2","electron_affinity":53.03,"electronegativity_pauling":1.5,"ionization_energies":[568],"block":"f"},{"name":"Uranium","atomic_mass":238.028913,"boil":4404,"category":"actinide","density":19.1,"discovered_by":"Martin Heinrich Klaproth","melt":1405.3,"molar_heat":27.665,"named_by":null,"number":92,"period":7,"group":3,"phase":"Solid","symbol":"U","xpos":6,"ypos":10,"wxpos":6,"wypos":7,"shells":[2,8,18,32,21,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f3 6d1","electron_configuration_semantic":"[Rn] 5f3 6d1 7s2","electron_affinity":50.94,"electronegativity_pauling":1.38,"ionization_energies":[597.6,1420],"block":"f"},{"name":"Neptunium","atomic_mass":237,"boil":4447,"category":"actinide","density":20.45,"discovered_by":"Edwin McMillan","melt":912,"molar_heat":29.46,"named_by":null,"number":93,"period":7,"group":3,"phase":"Solid","symbol":"Np","xpos":7,"ypos":10,"wxpos":7,"wypos":7,"shells":[2,8,18,32,22,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f4 6d1","electron_configuration_semantic":"[Rn] 5f4 6d1 7s2","electron_affinity":45.85,"electronegativity_pauling":1.36,"ionization_energies":[604.5],"block":"f"},{"name":"Plutonium","atomic_mass":244,"boil":3505,"category":"actinide","density":19.816,"discovered_by":"Glenn T. Seaborg","melt":912.5,"molar_heat":35.5,"named_by":null,"number":94,"period":7,"group":3,"phase":"Solid","symbol":"Pu","xpos":8,"ypos":10,"wxpos":8,"wypos":7,"shells":[2,8,18,32,24,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f6","electron_configuration_semantic":"[Rn] 5f6 7s2","electron_affinity":-48.33,"electronegativity_pauling":1.28,"ionization_energies":[584.7],"block":"f"},{"name":"Americium","atomic_mass":243,"boil":2880,"category":"actinide","density":12,"discovered_by":"Glenn T. Seaborg","melt":1449,"molar_heat":62.7,"named_by":null,"number":95,"period":7,"group":3,"phase":"Solid","symbol":"Am","xpos":9,"ypos":10,"wxpos":9,"wypos":7,"shells":[2,8,18,32,25,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7","electron_configuration_semantic":"[Rn] 5f7 7s2","electron_affinity":9.93,"electronegativity_pauling":1.13,"ionization_energies":[578],"block":"f"},{"name":"Curium","atomic_mass":247,"boil":3383,"category":"actinide","density":13.51,"discovered_by":"Glenn T. Seaborg","melt":1613,"molar_heat":null,"named_by":null,"number":96,"period":7,"group":3,"phase":"Solid","symbol":"Cm","xpos":10,"ypos":10,"wxpos":10,"wypos":7,"shells":[2,8,18,32,25,9,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f7 6d1","electron_configuration_semantic":"[Rn] 5f7 6d1 7s2","electron_affinity":27.17,"electronegativity_pauling":1.28,"ionization_energies":[581],"block":"f"},{"name":"Berkelium","atomic_mass":247,"boil":2900,"category":"actinide","density":14.78,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1259,"molar_heat":null,"named_by":null,"number":97,"period":7,"group":3,"phase":"Solid","symbol":"Bk","xpos":11,"ypos":10,"wxpos":11,"wypos":7,"shells":[2,8,18,32,27,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f9","electron_configuration_semantic":"[Rn] 5f9 7s2","electron_affinity":-165.24,"electronegativity_pauling":1.3,"ionization_energies":[601],"block":"f"},{"name":"Californium","atomic_mass":251,"boil":1743,"category":"actinide","density":15.1,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1173,"molar_heat":null,"named_by":null,"number":98,"period":7,"group":3,"phase":"Solid","symbol":"Cf","xpos":12,"ypos":10,"wxpos":12,"wypos":7,"shells":[2,8,18,32,28,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f10","electron_configuration_semantic":"[Rn] 5f10 7s2","electron_affinity":-97.31,"electronegativity_pauling":1.3,"ionization_energies":[608],"block":"f"},{"name":"Einsteinium","atomic_mass":252,"boil":1269,"category":"actinide","density":8.84,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1133,"molar_heat":null,"named_by":null,"number":99,"period":7,"group":3,"phase":"Solid","symbol":"Es","xpos":13,"ypos":10,"wxpos":13,"wypos":7,"shells":[2,8,18,32,29,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f11","electron_configuration_semantic":"[Rn] 5f11 7s2","electron_affinity":-28.6,"electronegativity_pauling":1.3,"ionization_energies":[619],"block":"f"},{"name":"Fermium","atomic_mass":257,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1800,"molar_heat":null,"named_by":null,"number":100,"period":7,"group":3,"phase":"Solid","symbol":"Fm","xpos":14,"ypos":10,"wxpos":14,"wypos":7,"shells":[2,8,18,32,30,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f12","electron_configuration_semantic":"[Rn] 5f12 7s2","electron_affinity":33.96,"electronegativity_pauling":1.3,"ionization_energies":[627],"block":"f"},{"name":"Mendelevium","atomic_mass":258,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1100,"molar_heat":null,"named_by":null,"number":101,"period":7,"group":3,"phase":"Solid","symbol":"Md","xpos":15,"ypos":10,"wxpos":15,"wypos":7,"shells":[2,8,18,32,31,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f13","electron_configuration_semantic":"[Rn] 5f13 7s2","electron_affinity":93.91,"electronegativity_pauling":1.3,"ionization_energies":[635],"block":"f"},{"name":"Nobelium","atomic_mass":259,"boil":null,"category":"actinide","density":null,"discovered_by":"Joint Institute for Nuclear Research","melt":1100,"molar_heat":null,"named_by":null,"number":102,"period":7,"group":3,"phase":"Solid","symbol":"No","xpos":16,"ypos":10,"wxpos":16,"wypos":7,"shells":[2,8,18,32,32,8,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14","electron_configuration_semantic":"[Rn] 5f14 7s2","electron_affinity":-223.22,"electronegativity_pauling":1.3,"ionization_energies":[642],"block":"f"},{"name":"Lawrencium","atomic_mass":266,"boil":null,"category":"actinide","density":null,"discovered_by":"Lawrence Berkeley National Laboratory","melt":1900,"molar_heat":null,"named_by":null,"number":103,"period":7,"group":3,"phase":"Solid","symbol":"Lr","xpos":17,"ypos":10,"wxpos":17,"wypos":7,"shells":[2,8,18,32,32,8,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 7p1","electron_configuration_semantic":"[Rn] 5f14 7s2 7p1","electron_affinity":-30.04,"electronegativity_pauling":1.3,"ionization_energies":[470],"block":"d"},{"name":"Rutherfordium","atomic_mass":267,"boil":5800,"category":"transition metal","density":23.2,"discovered_by":"Joint Institute for Nuclear Research","melt":2400,"molar_heat":null,"named_by":null,"number":104,"period":7,"group":4,"phase":"Solid","symbol":"Rf","xpos":4,"ypos":7,"wxpos":18,"wypos":7,"shells":[2,8,18,32,32,10,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d2","electron_configuration_semantic":"[Rn] 5f14 6d2 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[580],"block":"d"},{"name":"Dubnium","atomic_mass":268,"boil":null,"category":"transition metal","density":29.3,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":105,"period":7,"group":5,"phase":"Solid","symbol":"Db","xpos":5,"ypos":7,"wxpos":19,"wypos":7,"shells":[2,8,18,32,32,11,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d3","electron_configuration_semantic":"*[Rn] 5f14 6d3 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Seaborgium","atomic_mass":269,"boil":null,"category":"transition metal","density":35,"discovered_by":"Lawrence Berkeley National Laboratory","melt":null,"molar_heat":null,"named_by":null,"number":106,"period":7,"group":6,"phase":"Solid","symbol":"Sg","xpos":6,"ypos":7,"wxpos":20,"wypos":7,"shells":[2,8,18,32,32,12,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d4","electron_configuration_semantic":"*[Rn] 5f14 6d4 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Bohrium","atomic_mass":270,"boil":null,"category":"transition metal","density":37.1,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":107,"period":7,"group":7,"phase":"Solid","symbol":"Bh","xpos":7,"ypos":7,"wxpos":21,"wypos":7,"shells":[2,8,18,32,32,13,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d5","electron_configuration_semantic":"*[Rn] 5f14 6d5 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Hassium","atomic_mass":269,"boil":null,"category":"transition metal","density":40.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":126,"molar_heat":null,"named_by":null,"number":108,"period":7,"group":8,"phase":"Solid","symbol":"Hs","xpos":8,"ypos":7,"wxpos":22,"wypos":7,"shells":[2,8,18,32,32,14,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d6","electron_configuration_semantic":"*[Rn] 5f14 6d6 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Meitnerium","atomic_mass":278,"boil":null,"category":"unknown, probably transition metal","density":37.4,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":109,"period":7,"group":9,"phase":"Solid","symbol":"Mt","xpos":9,"ypos":7,"wxpos":23,"wypos":7,"shells":[2,8,18,32,32,15,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d7","electron_configuration_semantic":"*[Rn] 5f14 6d7 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Darmstadtium","atomic_mass":281,"boil":null,"category":"unknown, probably transition metal","density":34.8,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":110,"period":7,"group":10,"phase":"Solid","symbol":"Ds","xpos":10,"ypos":7,"wxpos":24,"wypos":7,"shells":[2,8,18,32,32,16,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d8","electron_configuration_semantic":"*[Rn] 5f14 6d9 7s1","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Roentgenium","atomic_mass":282,"boil":null,"category":"unknown, probably transition metal","density":28.7,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":111,"period":7,"group":11,"phase":"Solid","symbol":"Rg","xpos":11,"ypos":7,"wxpos":25,"wypos":7,"shells":[2,8,18,32,32,17,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d9","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s1","electron_affinity":151,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Copernicium","atomic_mass":285,"boil":3570,"category":"transition metal","density":14,"discovered_by":"Gesellschaft für Schwerionenforschung","melt":null,"molar_heat":null,"named_by":null,"number":112,"period":7,"group":12,"phase":"Liquid","symbol":"Cn","xpos":12,"ypos":7,"wxpos":26,"wypos":7,"shells":[2,8,18,32,32,18,2],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"d"},{"name":"Nihonium","atomic_mass":286,"boil":1430,"category":"unknown, probably transition metal","density":16,"discovered_by":"RIKEN","melt":700,"molar_heat":null,"named_by":null,"number":113,"period":7,"group":13,"phase":"Solid","symbol":"Nh","xpos":13,"ypos":7,"wxpos":27,"wypos":7,"shells":[2,8,18,32,32,18,3],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p1","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p1","electron_affinity":66.6,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Flerovium","atomic_mass":289,"boil":420,"category":"post-transition metal","density":14,"discovered_by":"Joint Institute for Nuclear Research","melt":340,"molar_heat":null,"named_by":null,"number":114,"period":7,"group":14,"phase":"Solid","symbol":"Fl","xpos":14,"ypos":7,"wxpos":28,"wypos":7,"shells":[2,8,18,32,32,18,4],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p2","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p2","electron_affinity":null,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Moscovium","atomic_mass":289,"boil":1400,"category":"unknown, probably post-transition metal","density":13.5,"discovered_by":"Joint Institute for Nuclear Research","melt":670,"molar_heat":null,"named_by":null,"number":115,"period":7,"group":15,"phase":"Solid","symbol":"Mc","xpos":15,"ypos":7,"wxpos":29,"wypos":7,"shells":[2,8,18,32,32,18,5],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p3","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p3","electron_affinity":35.3,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Livermorium","atomic_mass":293,"boil":1085,"category":"unknown, probably post-transition metal","density":12.9,"discovered_by":"Joint Institute for Nuclear Research","melt":709,"molar_heat":null,"named_by":null,"number":116,"period":7,"group":16,"phase":"Solid","symbol":"Lv","xpos":16,"ypos":7,"wxpos":30,"wypos":7,"shells":[2,8,18,32,32,18,6],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p4","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p4","electron_affinity":74.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Tennessine","atomic_mass":294,"boil":883,"category":"unknown, probably metalloid","density":7.17,"discovered_by":"Joint Institute for Nuclear Research","melt":723,"molar_heat":null,"named_by":null,"number":117,"period":7,"group":17,"phase":"Solid","symbol":"Ts","xpos":17,"ypos":7,"wxpos":31,"wypos":7,"shells":[2,8,18,32,32,18,7],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p5","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p5","electron_affinity":165.9,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Oganesson","atomic_mass":294,"boil":350,"category":"unknown, predicted to be noble gas","density":4.95,"discovered_by":"Joint Institute for Nuclear Research","melt":null,"molar_heat":null,"named_by":null,"number":118,"period":7,"group":18,"phase":"Solid","symbol":"Og","xpos":18,"ypos":7,"wxpos":32,"wypos":7,"shells":[2,8,18,32,32,18,8],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6","electron_configuration_semantic":"*[Rn] 5f14 6d10 7s2 7p6","electron_affinity":5.40318,"electronegativity_pauling":null,"ionization_energies":[],"block":"p"},{"name":"Ununennium","atomic_mass":315,"boil":630,"category":"unknown, but predicted to be an alkali metal","density":3,"discovered_by":"GSI Helmholtz Centre for Heavy Ion Research","melt":null,"molar_heat":null,"named_by":null,"number":119,"period":8,"group":1,"phase":"Solid","symbol":"Uue","xpos":1,"ypos":8,"wxpos":1,"wypos":8,"shells":[2,8,18,32,32,18,8,1],"electron_configuration":"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6 8s1","electron_configuration_semantic":"*[Uuo] 8s1","electron_affinity":63.87,"electronegativity_pauling":null,"ionization_energies":[],"block":"s"}]'), Bl = {
|
|
4274
|
+
elements: Hl
|
|
4122
4275
|
};
|
|
4123
|
-
var
|
|
4124
|
-
const
|
|
4276
|
+
var Fl = /* @__PURE__ */ Bt("<button> </button>"), Gl = /* @__PURE__ */ Bt('<div class="pie-tool-periodic-table__element-overview svelte-1h56j87" style="grid-row: 2 / span 2; grid-column: 3 / span 10;" aria-live="polite"><div><div class="pie-tool-periodic-table__left-col svelte-1h56j87"><div class="pie-tool-periodic-table__symbol-center svelte-1h56j87"> </div> <div class="pie-tool-periodic-table__element-name svelte-1h56j87"> </div></div> <div class="pie-tool-periodic-table__right-col svelte-1h56j87"><div class="pie-tool-periodic-table__top-row svelte-1h56j87"><div class="pie-tool-periodic-table__info-block svelte-1h56j87"><div class="pie-tool-periodic-table__label svelte-1h56j87">Atomic Mass</div> <div class="pie-tool-periodic-table__value svelte-1h56j87"> </div></div> <div class="pie-tool-periodic-table__info-block svelte-1h56j87"><div class="pie-tool-periodic-table__label svelte-1h56j87">Atomic No</div> <div class="pie-tool-periodic-table__value svelte-1h56j87"> </div></div></div> <div class="pie-tool-periodic-table__bottom-row svelte-1h56j87"><div class="pie-tool-periodic-table__info-block svelte-1h56j87"><div class="pie-tool-periodic-table__label svelte-1h56j87">Electron Config</div> <div class="pie-tool-periodic-table__value svelte-1h56j87"> </div></div> <div class="pie-tool-periodic-table__info-block svelte-1h56j87"><div class="pie-tool-periodic-table__label svelte-1h56j87">Phase</div> <div class="pie-tool-periodic-table__value svelte-1h56j87"> </div></div></div></div></div></div>'), Ul = /* @__PURE__ */ Bt('<button tabindex="0"><div class="pie-tool-periodic-table__atomic-number svelte-1h56j87"> </div> <div class="pie-tool-periodic-table__symbol svelte-1h56j87"> </div> <div class="pie-tool-periodic-table__name svelte-1h56j87"> </div> <div class="pie-tool-periodic-table__atomic-mass svelte-1h56j87"> </div></button>'), Xl = /* @__PURE__ */ Bt('<div class="pie-tool-periodic-table__group-label svelte-1h56j87"></div>'), Kl = /* @__PURE__ */ Bt('<div class="pie-tool-periodic-table__period-label svelte-1h56j87"><!></div>'), Wl = /* @__PURE__ */ Bt('<div class="pie-tool-periodic-table svelte-1h56j87" role="dialog" tabindex="-1" aria-label="Periodic Table - Click elements to view details"><div class="pie-tool-periodic-table__header svelte-1h56j87"><h3 id="periodic-table-title" class="pie-tool-periodic-table__title svelte-1h56j87">Periodic Table</h3> <div class="pie-tool-periodic-table__header-controls svelte-1h56j87"><button class="pie-tool-periodic-table__close-btn svelte-1h56j87" aria-label="Close periodic table"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-1h56j87" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg></button></div></div> <div class="pie-tool-periodic-table__content svelte-1h56j87"><div class="pie-tool-periodic-table__wrapper svelte-1h56j87"><div class="pie-tool-periodic-table__grid svelte-1h56j87" role="grid" aria-labelledby="periodic-table-title"><div class="pie-tool-periodic-table__category-header pie-tool-periodic-table__category-badge-row svelte-1h56j87" role="presentation" style="grid-row: 1; grid-column: 2 / span 16;"><button aria-label="Show all elements">All Elements</button> <!></div> <!> <!></div> <div class="pie-tool-periodic-table__group-labels svelte-1h56j87" aria-hidden="true"></div> <div class="pie-tool-periodic-table__period-labels svelte-1h56j87" aria-hidden="true"></div></div></div></div>');
|
|
4277
|
+
const ql = {
|
|
4125
4278
|
hash: "svelte-1h56j87",
|
|
4126
|
-
code: `.pie-tool-periodic-table.svelte-1h56j87 {position:fixed;background:
|
|
4279
|
+
code: `.pie-tool-periodic-table.svelte-1h56j87 {position:fixed;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border-light, #d1d5db);box-shadow:0 10px 40px rgb(0 0 0 / 0.3);user-select:none;touch-action:none;border-radius:12px;overflow:visible; /* Changed from hidden to visible to show all content without clipping */z-index:2000; /* ZIndexLayer.MODAL */min-width:1100px; /* Match default width */display:flex;flex-direction:column;}
|
|
4127
4280
|
|
|
4128
|
-
/* Header (matching production implementation: dark teal) */.pie-tool-periodic-table__header.svelte-1h56j87 {padding:12px 16px;background:var(--pie-primary-dark, #2c3e50); /* Dark teal-like color */color:var(--pie-white,
|
|
4281
|
+
/* Header (matching production implementation: dark teal) */.pie-tool-periodic-table__header.svelte-1h56j87 {padding:12px 16px;background:var(--pie-primary-dark, #2c3e50); /* Dark teal-like color */color:var(--pie-white, #fff);display:flex;justify-content:space-between;align-items:center;cursor:move;user-select:none;border-radius:12px 12px 0 0;}.pie-tool-periodic-table__title.svelte-1h56j87 {font-weight:600;font-size:16px;color:var(--pie-white, #fff);margin:0;}.pie-tool-periodic-table__header-controls.svelte-1h56j87 {display:flex;gap:8px;align-items:center;}.pie-tool-periodic-table__close-btn.svelte-1h56j87 {background:transparent;border:none;color:var(--pie-white, #fff);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color 0.2s;}.pie-tool-periodic-table__close-btn.svelte-1h56j87:hover {background:color-mix(in srgb, var(--pie-white, #fff) 12%, transparent);}.pie-tool-periodic-table__close-btn.svelte-1h56j87:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}.pie-tool-periodic-table__close-btn.svelte-1h56j87 svg:where(.svelte-1h56j87) {width:20px;height:20px;display:block;}
|
|
4129
4282
|
|
|
4130
4283
|
/* Content wrapper */.pie-tool-periodic-table__content.svelte-1h56j87 {flex:1;display:flex;flex-direction:column;overflow:visible; /* Changed from auto to visible - no scrolling needed */padding:10px 4px 0 16px; /* top | right | bottom | left */}
|
|
4131
4284
|
|
|
@@ -4133,50 +4286,50 @@ const Xl = {
|
|
|
4133
4286
|
|
|
4134
4287
|
/* Main grid layout */.pie-tool-periodic-table__grid.svelte-1h56j87 {display:grid;grid-gap:3px;grid-template-columns:repeat(18, minmax(35px, 1fr));grid-template-rows:repeat(10, minmax(35px, 1fr));margin:0 auto;width:100%;}
|
|
4135
4288
|
|
|
4136
|
-
/* Category badge row (matching production implementation) */.pie-tool-periodic-table__category-header.pie-tool-periodic-table__category-badge-row.svelte-1h56j87 {align-items:center;background-color:transparent;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0.5rem;}.pie-tool-periodic-table__category-badge.svelte-1h56j87 {border:1px solid
|
|
4289
|
+
/* Category badge row (matching production implementation) */.pie-tool-periodic-table__category-header.pie-tool-periodic-table__category-badge-row.svelte-1h56j87 {align-items:center;background-color:transparent;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0.5rem;}.pie-tool-periodic-table__category-badge.svelte-1h56j87 {border:1px solid color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);border-radius:1rem;cursor:pointer;font-size:0.7rem;line-height:1;padding:4px 6px;transition:background-color 0.2s ease, color 0.2s ease;white-space:nowrap;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #333));}.pie-tool-periodic-table__category-badge.svelte-1h56j87:hover {background:var(--pie-button-hover-bg, #f3f4f6);}.pie-tool-periodic-table__category-badge.pie-tool-periodic-table__category-badge--active.svelte-1h56j87 {background-color:var(--pie-primary-dark, #2c3e50);border-color:var(--pie-primary-dark, #2c3e50);color:var(--pie-white, #fff);}
|
|
4137
4290
|
|
|
4138
|
-
/* Element overview section (matching production implementation) */.pie-tool-periodic-table__element-overview.svelte-1h56j87 {align-items:center;display:flex;height:100%;justify-content:center;padding:6px;z-index:2;}.pie-tool-periodic-table__selected-element.pie-tool-periodic-table__selected-grid.svelte-1h56j87 {align-items:center;border:2px solid #000;border-radius:8px;box-sizing:border-box;display:flex;gap:16px;padding:12px;background:
|
|
4139
|
-
.pie-tool-periodic-table__bottom-row.svelte-1h56j87 {display:flex;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__info-block.svelte-1h56j87 {display:flex;flex-direction:column;min-width:0;text-align:left;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__label:where(.svelte-1h56j87) {color
|
|
4291
|
+
/* Element overview section (matching production implementation) */.pie-tool-periodic-table__element-overview.svelte-1h56j87 {align-items:center;display:flex;height:100%;justify-content:center;padding:6px;z-index:2;}.pie-tool-periodic-table__selected-element.pie-tool-periodic-table__selected-grid.svelte-1h56j87 {align-items:center;border:2px solid var(--pie-border-dark, #000);border-radius:8px;box-sizing:border-box;display:flex;gap:16px;padding:12px;background:var(--pie-background, #fff);}.pie-tool-periodic-table__left-col.svelte-1h56j87 {align-items:center;display:flex;flex-direction:column;min-width:0;}.pie-tool-periodic-table__symbol-center.svelte-1h56j87 {font-size:2rem;font-weight:bold;line-height:1.2;margin-bottom:4px;}.pie-tool-periodic-table__element-name.svelte-1h56j87 {color:var(--pie-text, #333);font-size:1rem;font-weight:500;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;}.pie-tool-periodic-table__right-col.svelte-1h56j87 {display:flex;flex-direction:column;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__top-row.svelte-1h56j87,
|
|
4292
|
+
.pie-tool-periodic-table__bottom-row.svelte-1h56j87 {display:flex;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__info-block.svelte-1h56j87 {display:flex;flex-direction:column;min-width:0;text-align:left;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__label:where(.svelte-1h56j87) {color:var(--pie-text, #444);font-size:0.75rem;font-weight:bold;margin-bottom:2px;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__value:where(.svelte-1h56j87) {color:var(--pie-text, #000);font-size:0.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
4140
4293
|
|
|
4141
|
-
/* Element styles */.pie-tool-periodic-table__element.svelte-1h56j87 {background-color:
|
|
4294
|
+
/* Element styles */.pie-tool-periodic-table__element.svelte-1h56j87 {background-color:var(--pie-background, #fff);border:1px solid color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;min-height:50px;padding:3px;position:relative;transition:transform 0.1s ease-in-out;}.pie-tool-periodic-table__element.svelte-1h56j87:hover {border-color:var(--pie-primary-dark, #2c3e50);transform:scale(1.03);z-index:10;}.pie-tool-periodic-table__element.svelte-1h56j87:focus {outline:2px solid var(--pie-primary-dark, #2c3e50);outline-offset:2px;z-index:10;}.pie-tool-periodic-table__element.pie-tool-periodic-table__element--selected.svelte-1h56j87 {border-color:var(--pie-primary-dark, #2c3e50);box-shadow:0 0 0 2px color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);z-index:11;}
|
|
4142
4295
|
|
|
4143
4296
|
/* Dim out elements not in the selected category */.pie-tool-periodic-table__element.pie-tool-periodic-table__element--dim.svelte-1h56j87 {filter:grayscale(80%);opacity:0.4;}
|
|
4144
4297
|
|
|
4145
4298
|
/* Text inside each element box */.pie-tool-periodic-table__atomic-number.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:left;}.pie-tool-periodic-table__symbol.svelte-1h56j87 {font-size:14px;font-weight:bold;margin:2px 0;text-align:center;}.pie-tool-periodic-table__name.svelte-1h56j87 {font-size:8px;opacity:0.9;overflow:hidden;text-align:center;white-space:nowrap;}.pie-tool-periodic-table__atomic-mass.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:right;}
|
|
4146
4299
|
|
|
4147
|
-
/* Overlay for Group (column) labels */.pie-tool-periodic-table__group-labels.svelte-1h56j87 {color
|
|
4300
|
+
/* Overlay for Group (column) labels */.pie-tool-periodic-table__group-labels.svelte-1h56j87 {color:var(--pie-text, #333);display:flex;font-size:0.65rem;font-weight:bold;left:0;pointer-events:none;position:absolute;top:-1.2em;width:100%;}.pie-tool-periodic-table__group-label.svelte-1h56j87 {text-align:center;}
|
|
4148
4301
|
|
|
4149
|
-
/* Overlay for Period (row) labels */.pie-tool-periodic-table__period-labels.svelte-1h56j87 {color
|
|
4302
|
+
/* Overlay for Period (row) labels */.pie-tool-periodic-table__period-labels.svelte-1h56j87 {color:var(--pie-text, #333);display:flex;flex-direction:column;font-size:0.65rem;font-weight:bold;height:100%;justify-content:space-evenly;left:-1.2em;pointer-events:none;position:absolute;top:0;}.pie-tool-periodic-table__period-label.svelte-1h56j87 {padding-right:0.2em;text-align:right;}
|
|
4150
4303
|
|
|
4151
4304
|
/* Category-based background colors (matching production implementation) */.pie-tool-periodic-table__category--alkali-metal.svelte-1h56j87 {background-color:#ff9e9e;}.pie-tool-periodic-table__category--alkaline-earth-metal.svelte-1h56j87 {background-color:#ffdc8a;}.pie-tool-periodic-table__category--alkaline-earth.svelte-1h56j87 {background-color:#ffdc8a; /* Also handle without "-metal" suffix */}.pie-tool-periodic-table__category--lanthanide.svelte-1h56j87 {background-color:#f9a8d4;}.pie-tool-periodic-table__category--actinide.svelte-1h56j87 {background-color:#e0aaff;}.pie-tool-periodic-table__category--transition-metal.svelte-1h56j87 {background-color:#a3d8f4;}.pie-tool-periodic-table__category--post-transition-metal.svelte-1h56j87 {background-color:#b4f8c8;}.pie-tool-periodic-table__category--metalloid.svelte-1h56j87 {background-color:#d9f99d;}.pie-tool-periodic-table__category--diatomic-nonmetal.svelte-1h56j87 {background-color:#f5f5f5;}.pie-tool-periodic-table__category--noble-gas.svelte-1h56j87 {background-color:#c4b5fd;}.pie-tool-periodic-table__category--polyatomic-nonmetal.svelte-1h56j87 {background-color:#fbcfe8;}.pie-tool-periodic-table__category--nonmetal.svelte-1h56j87 {background-color:#f0f0f0; /* Production implementation also has this */}.pie-tool-periodic-table__category--halogen.svelte-1h56j87 {background-color:#8ef5d0; /* Production implementation has halogen color */}.pie-tool-periodic-table__category--unknown.svelte-1h56j87 {background-color:#f5f5f5;}`
|
|
4152
4305
|
};
|
|
4153
|
-
function
|
|
4154
|
-
bn(e, !0),
|
|
4306
|
+
function Jl(t, e) {
|
|
4307
|
+
bn(e, !0), Fr(t, ql);
|
|
4155
4308
|
let i = Yo(e, "visible", 7, !1), o = Yo(e, "toolId", 7, "periodicTable");
|
|
4156
4309
|
const s = typeof window < "u";
|
|
4157
|
-
let n = /* @__PURE__ */
|
|
4158
|
-
const a = /* @__PURE__ */ Ui(() =>
|
|
4159
|
-
let l = /* @__PURE__ */
|
|
4310
|
+
let n = /* @__PURE__ */ N(void 0), r = /* @__PURE__ */ N(null);
|
|
4311
|
+
const a = /* @__PURE__ */ Ui(() => m(r)?.toolCoordinator);
|
|
4312
|
+
let l = /* @__PURE__ */ N(!1), c = /* @__PURE__ */ N(it(s ? window.innerWidth / 2 : 400)), d = /* @__PURE__ */ N(it(s ? window.innerHeight / 2 : 300)), h = /* @__PURE__ */ N(
|
|
4160
4313
|
1100
|
|
4161
4314
|
// Increased to show all 18 columns without horizontal scrolling
|
|
4162
|
-
), p = /* @__PURE__ */
|
|
4315
|
+
), p = /* @__PURE__ */ N(
|
|
4163
4316
|
750
|
|
4164
4317
|
// Increased to show all 10 rows without vertical scrolling
|
|
4165
|
-
),
|
|
4166
|
-
const
|
|
4167
|
-
let y = /* @__PURE__ */
|
|
4168
|
-
|
|
4318
|
+
), _ = /* @__PURE__ */ N(0), g = /* @__PURE__ */ N(0), v = /* @__PURE__ */ N(!1);
|
|
4319
|
+
const f = Bl.elements;
|
|
4320
|
+
let y = /* @__PURE__ */ N(it(
|
|
4321
|
+
f[0] || null
|
|
4169
4322
|
// Initialize with Hydrogen
|
|
4170
|
-
)),
|
|
4323
|
+
)), S = /* @__PURE__ */ N("All");
|
|
4171
4324
|
bi(() => {
|
|
4172
|
-
if (
|
|
4173
|
-
return al(
|
|
4325
|
+
if (m(n))
|
|
4326
|
+
return al(m(n), (x) => {
|
|
4174
4327
|
M(r, x, !0);
|
|
4175
4328
|
});
|
|
4176
4329
|
});
|
|
4177
4330
|
function ae(x) {
|
|
4178
|
-
const
|
|
4179
|
-
return
|
|
4331
|
+
const O = x.toLowerCase();
|
|
4332
|
+
return O.indexOf("unknown") !== -1 ? "Unknown" : {
|
|
4180
4333
|
"alkali metal": "Alkali Metal",
|
|
4181
4334
|
"alkaline earth": "Alkaline Earth Metal",
|
|
4182
4335
|
"alkaline earth metal": "Alkaline Earth Metal",
|
|
@@ -4193,48 +4346,48 @@ function Kl(t, e) {
|
|
|
4193
4346
|
actinide: "Actinide",
|
|
4194
4347
|
metal: "Post-transition Metal"
|
|
4195
4348
|
// Some elements might just be 'metal'
|
|
4196
|
-
}[
|
|
4349
|
+
}[O] || x;
|
|
4197
4350
|
}
|
|
4198
4351
|
function Q(x) {
|
|
4199
|
-
return x.split(" ").map((
|
|
4352
|
+
return x.split(" ").map((O) => O.charAt(0).toUpperCase() + O.slice(1)).join(" ");
|
|
4200
4353
|
}
|
|
4201
4354
|
let Me = /* @__PURE__ */ Ui(() => {
|
|
4202
4355
|
const x = /* @__PURE__ */ new Set();
|
|
4203
|
-
return
|
|
4204
|
-
|
|
4356
|
+
return f.forEach((O) => {
|
|
4357
|
+
O.category && x.add(ae(O.category));
|
|
4205
4358
|
}), Array.from(x).sort();
|
|
4206
|
-
}), Qe = /* @__PURE__ */ Ui(() =>
|
|
4359
|
+
}), Qe = /* @__PURE__ */ Ui(() => m(S) === "All" ? f : f.filter((x) => ae(x.category) === m(S)));
|
|
4207
4360
|
function K(x) {
|
|
4208
4361
|
M(y, x, !0);
|
|
4209
4362
|
}
|
|
4210
4363
|
function Ie(x) {
|
|
4211
|
-
M(
|
|
4364
|
+
M(S, x, !0);
|
|
4212
4365
|
}
|
|
4213
|
-
function
|
|
4214
|
-
|
|
4366
|
+
function Ve() {
|
|
4367
|
+
m(a)?.hideTool(o());
|
|
4215
4368
|
}
|
|
4216
|
-
function
|
|
4217
|
-
const
|
|
4218
|
-
|
|
4369
|
+
function D(x) {
|
|
4370
|
+
const O = x.target;
|
|
4371
|
+
O.closest(".pie-tool-periodic-table__header") && (O.closest("button") || (M(l, !0), M(_, x.clientX - m(c)), M(g, x.clientY - m(d)), m(n) && (m(n).setPointerCapture(x.pointerId), m(a)?.bringToFront(m(n)))));
|
|
4219
4372
|
}
|
|
4220
|
-
function
|
|
4221
|
-
if (!
|
|
4222
|
-
let
|
|
4223
|
-
const
|
|
4224
|
-
M(
|
|
4373
|
+
function Vi(x) {
|
|
4374
|
+
if (!m(l)) return;
|
|
4375
|
+
let O = x.clientX - m(_), xt = x.clientY - m(g);
|
|
4376
|
+
const Ft = (m(n)?.offsetWidth || m(h)) / 2, li = (m(n)?.offsetHeight || m(p)) / 2;
|
|
4377
|
+
M(c, Math.max(Ft, Math.min(O, window.innerWidth - Ft)), !0), M(d, Math.max(li, Math.min(xt, window.innerHeight - li)), !0);
|
|
4225
4378
|
}
|
|
4226
4379
|
function ri(x) {
|
|
4227
|
-
|
|
4380
|
+
m(l) && m(n) && (M(l, !1), m(n).releasePointerCapture(x.pointerId));
|
|
4228
4381
|
}
|
|
4229
4382
|
function fs(x) {
|
|
4230
|
-
x.key === "Escape" &&
|
|
4383
|
+
x.key === "Escape" && Ve();
|
|
4231
4384
|
}
|
|
4232
4385
|
bi(() => {
|
|
4233
|
-
|
|
4386
|
+
m(a) && o() && !m(v) && (m(n) ? m(a).registerTool(o(), "Periodic Table", m(n), Si.MODAL) : m(a).registerTool(o(), "Periodic Table", void 0, Si.MODAL), M(v, !0));
|
|
4234
4387
|
}), bi(() => {
|
|
4235
|
-
|
|
4236
|
-
}),
|
|
4237
|
-
|
|
4388
|
+
m(a) && m(n) && o() && (m(a).updateToolElement(o(), m(n)), m(a).bringToFront(m(n)));
|
|
4389
|
+
}), Dr(() => () => {
|
|
4390
|
+
m(a) && o() && m(a).unregisterTool(o());
|
|
4238
4391
|
});
|
|
4239
4392
|
var ms = {
|
|
4240
4393
|
get visible() {
|
|
@@ -4249,123 +4402,123 @@ function Kl(t, e) {
|
|
|
4249
4402
|
set toolId(x = "periodicTable") {
|
|
4250
4403
|
o(x), to();
|
|
4251
4404
|
}
|
|
4252
|
-
},
|
|
4405
|
+
}, Eo = Or(), _s = gr(Eo);
|
|
4253
4406
|
{
|
|
4254
4407
|
var hs = (x) => {
|
|
4255
|
-
var
|
|
4256
|
-
|
|
4257
|
-
var
|
|
4408
|
+
var O = Wl(), xt = L(O), Ft = V(L(xt), 2), li = L(Ft);
|
|
4409
|
+
I(Ft), I(xt);
|
|
4410
|
+
var Ro = V(xt, 2), $o = L(Ro), Di = L($o), Pi = L(Di), ai = L(Pi);
|
|
4258
4411
|
let Lo;
|
|
4259
|
-
var gs =
|
|
4260
|
-
_i(gs, 16, () =>
|
|
4261
|
-
var
|
|
4412
|
+
var gs = V(ai, 2);
|
|
4413
|
+
_i(gs, 16, () => m(Me), (H) => H, (H, $) => {
|
|
4414
|
+
var z = Fl();
|
|
4262
4415
|
let B;
|
|
4263
|
-
var
|
|
4264
|
-
|
|
4265
|
-
(lt,
|
|
4266
|
-
B = hi(
|
|
4267
|
-
"pie-tool-periodic-table__category-badge--active":
|
|
4268
|
-
}), Xt(
|
|
4416
|
+
var _e = L(z, !0);
|
|
4417
|
+
I(z), fi(
|
|
4418
|
+
(lt, Ae) => {
|
|
4419
|
+
B = hi(z, 1, `pie-tool-periodic-table__category-badge pie-tool-periodic-table__category--${lt ?? ""}`, "svelte-1h56j87", B, {
|
|
4420
|
+
"pie-tool-periodic-table__category-badge--active": m(S) === $
|
|
4421
|
+
}), Xt(z, "aria-label", `Filter by ${$ ?? ""}`), Xt(z, "aria-pressed", m(S) === $), he(_e, Ae);
|
|
4269
4422
|
},
|
|
4270
4423
|
[
|
|
4271
|
-
() =>
|
|
4272
|
-
() => Q(
|
|
4424
|
+
() => $.replace(" ", "-").toLowerCase(),
|
|
4425
|
+
() => Q($)
|
|
4273
4426
|
]
|
|
4274
|
-
),
|
|
4275
|
-
}),
|
|
4276
|
-
var zo =
|
|
4427
|
+
), De("click", z, () => Ie($)), ge(H, z);
|
|
4428
|
+
}), I(Pi);
|
|
4429
|
+
var zo = V(Pi, 2);
|
|
4277
4430
|
{
|
|
4278
4431
|
var ys = (H) => {
|
|
4279
|
-
var
|
|
4280
|
-
|
|
4281
|
-
var
|
|
4282
|
-
|
|
4283
|
-
var Ze =
|
|
4284
|
-
|
|
4285
|
-
var ui =
|
|
4286
|
-
|
|
4287
|
-
var
|
|
4288
|
-
|
|
4289
|
-
var
|
|
4290
|
-
|
|
4432
|
+
var $ = Gl(), z = L($), B = L(z), _e = L(B), lt = L(_e, !0);
|
|
4433
|
+
I(_e);
|
|
4434
|
+
var Ae = V(_e, 2), Gt = L(Ae, !0);
|
|
4435
|
+
I(Ae), I(B);
|
|
4436
|
+
var Ze = V(B, 2), F = L(Ze), ie = L(F), ci = V(L(ie), 2), at = L(ci, !0);
|
|
4437
|
+
I(ci), I(ie);
|
|
4438
|
+
var ui = V(ie, 2), di = V(L(ui), 2), Bi = L(di, !0);
|
|
4439
|
+
I(di), I(ui), I(F);
|
|
4440
|
+
var Co = V(F, 2), Fi = L(Co), jo = V(L(Fi), 2), vs = L(jo, !0);
|
|
4441
|
+
I(jo), I(Fi);
|
|
4442
|
+
var No = V(Fi, 2), Mo = V(L(No), 2), ws = L(Mo, !0);
|
|
4443
|
+
I(Mo), I(No), I(Co), I(Ze), I(z), I($), fi(
|
|
4291
4444
|
(ks) => {
|
|
4292
|
-
hi(
|
|
4445
|
+
hi(z, 1, `pie-tool-periodic-table__selected-element pie-tool-periodic-table__selected-grid pie-tool-periodic-table__category--${ks ?? ""}`, "svelte-1h56j87"), he(lt, m(y).symbol), he(Gt, m(y).name), he(at, m(y).atomic_mass), he(Bi, m(y).number), he(vs, m(y).electron_configuration_semantic), he(ws, m(y).phase);
|
|
4293
4446
|
},
|
|
4294
4447
|
[
|
|
4295
|
-
() => ae(
|
|
4448
|
+
() => ae(m(y).category).replace(" ", "-").toLowerCase()
|
|
4296
4449
|
]
|
|
4297
|
-
),
|
|
4450
|
+
), ge(H, $);
|
|
4298
4451
|
};
|
|
4299
4452
|
Ki(zo, (H) => {
|
|
4300
|
-
|
|
4453
|
+
m(y) && H(ys);
|
|
4301
4454
|
});
|
|
4302
4455
|
}
|
|
4303
|
-
var bs =
|
|
4304
|
-
_i(bs, 17, () =>
|
|
4305
|
-
var
|
|
4456
|
+
var bs = V(zo, 2);
|
|
4457
|
+
_i(bs, 17, () => m(Qe), (H) => H.symbol, (H, $) => {
|
|
4458
|
+
var z = Ul();
|
|
4306
4459
|
let B;
|
|
4307
|
-
var
|
|
4308
|
-
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4311
|
-
var Ze =
|
|
4312
|
-
|
|
4313
|
-
var ie =
|
|
4314
|
-
|
|
4460
|
+
var _e = L(z), lt = L(_e, !0);
|
|
4461
|
+
I(_e);
|
|
4462
|
+
var Ae = V(_e, 2), Gt = L(Ae, !0);
|
|
4463
|
+
I(Ae);
|
|
4464
|
+
var Ze = V(Ae, 2), F = L(Ze, !0);
|
|
4465
|
+
I(Ze);
|
|
4466
|
+
var ie = V(Ze, 2), ci = L(ie, !0);
|
|
4467
|
+
I(ie), I(z), fi(
|
|
4315
4468
|
(at, ui, di, Bi) => {
|
|
4316
|
-
B = hi(
|
|
4469
|
+
B = hi(z, 1, `pie-tool-periodic-table__element pie-tool-periodic-table__category--${at ?? ""}`, "svelte-1h56j87", B, ui), Wi(z, `grid-row: ${m($).ypos ?? ""}; grid-column: ${m($).xpos ?? ""};`), Xt(z, "title", m($).name), Xt(z, "aria-label", `${m($).name ?? ""}, Symbol: ${m($).symbol ?? ""}, Atomic number: ${m($).number ?? ""}, Atomic mass: ${di ?? ""}, Category: ${m($).category ?? ""}`), he(lt, m($).number), he(Gt, m($).symbol), he(F, m($).name), he(ci, Bi);
|
|
4317
4470
|
},
|
|
4318
4471
|
[
|
|
4319
|
-
() => ae(
|
|
4472
|
+
() => ae(m($).category).replace(" ", "-").toLowerCase(),
|
|
4320
4473
|
() => ({
|
|
4321
|
-
"pie-tool-periodic-table__element--selected":
|
|
4322
|
-
"pie-tool-periodic-table__element--dim":
|
|
4474
|
+
"pie-tool-periodic-table__element--selected": m(y)?.symbol === m($).symbol,
|
|
4475
|
+
"pie-tool-periodic-table__element--dim": m(S) !== "All" && ae(m($).category) !== m(S)
|
|
4323
4476
|
}),
|
|
4324
|
-
() =>
|
|
4325
|
-
() =>
|
|
4477
|
+
() => m($).atomic_mass.toFixed(3),
|
|
4478
|
+
() => m($).atomic_mass.toFixed(3)
|
|
4326
4479
|
]
|
|
4327
|
-
),
|
|
4328
|
-
(at.key === "Enter" || at.key === " ") && (at.preventDefault(), K(
|
|
4329
|
-
}),
|
|
4330
|
-
}),
|
|
4331
|
-
var Hi =
|
|
4332
|
-
_i(Hi, 20, () => Array(18), Xo, (H,
|
|
4333
|
-
var B =
|
|
4334
|
-
Wi(B, `left: ${
|
|
4335
|
-
}),
|
|
4336
|
-
var
|
|
4337
|
-
_i(
|
|
4338
|
-
var B =
|
|
4480
|
+
), De("click", z, () => K(m($))), De("keydown", z, (at) => {
|
|
4481
|
+
(at.key === "Enter" || at.key === " ") && (at.preventDefault(), K(m($)));
|
|
4482
|
+
}), ge(H, z);
|
|
4483
|
+
}), I(Di);
|
|
4484
|
+
var Hi = V(Di, 2);
|
|
4485
|
+
_i(Hi, 20, () => Array(18), Xo, (H, $, z) => {
|
|
4486
|
+
var B = Xl();
|
|
4487
|
+
Wi(B, `left: ${z * 5.555555555555555}%; width: 5.555555555555555%;`), B.textContent = z + 1, ge(H, B);
|
|
4488
|
+
}), I(Hi);
|
|
4489
|
+
var Oo = V(Hi, 2);
|
|
4490
|
+
_i(Oo, 20, () => Array(10), Xo, (H, $, z) => {
|
|
4491
|
+
var B = Kl(), _e = L(B);
|
|
4339
4492
|
{
|
|
4340
|
-
var lt = (
|
|
4341
|
-
},
|
|
4493
|
+
var lt = (F) => {
|
|
4494
|
+
}, Ae = (F) => {
|
|
4342
4495
|
var ie = Xi("6");
|
|
4343
|
-
|
|
4344
|
-
},
|
|
4496
|
+
ge(F, ie);
|
|
4497
|
+
}, Gt = (F) => {
|
|
4345
4498
|
var ie = Xi("7");
|
|
4346
|
-
|
|
4347
|
-
}, Ze = (
|
|
4499
|
+
ge(F, ie);
|
|
4500
|
+
}, Ze = (F) => {
|
|
4348
4501
|
var ie = Xi();
|
|
4349
|
-
ie.nodeValue =
|
|
4502
|
+
ie.nodeValue = z - 2, ge(F, ie);
|
|
4350
4503
|
};
|
|
4351
|
-
Ki(
|
|
4352
|
-
|
|
4504
|
+
Ki(_e, (F) => {
|
|
4505
|
+
z < 3 ? F(lt) : z === 8 ? F(Ae, 1) : z === 9 ? F(Gt, 2) : F(Ze, !1);
|
|
4353
4506
|
});
|
|
4354
4507
|
}
|
|
4355
|
-
|
|
4356
|
-
}),
|
|
4357
|
-
Wi(
|
|
4358
|
-
"pie-tool-periodic-table__category-badge--active":
|
|
4359
|
-
}), Xt(ai, "aria-pressed",
|
|
4360
|
-
}),
|
|
4508
|
+
I(B), ge(H, B);
|
|
4509
|
+
}), I(Oo), I($o), I(Ro), I(O), Yr(O, (H) => M(n, H), () => m(n)), fi(() => {
|
|
4510
|
+
Wi(O, `left: ${m(c) ?? ""}px; top: ${m(d) ?? ""}px; width: ${m(h) ?? ""}px; height: ${m(p) ?? ""}px; transform: translate(-50%, -50%);`), Lo = hi(ai, 1, "pie-tool-periodic-table__category-badge svelte-1h56j87", null, Lo, {
|
|
4511
|
+
"pie-tool-periodic-table__category-badge--active": m(S) === "All"
|
|
4512
|
+
}), Xt(ai, "aria-pressed", m(S) === "All");
|
|
4513
|
+
}), De("pointerdown", O, D), De("pointermove", O, Vi), De("pointerup", O, ri), Er("lostpointercapture", O, ri), De("keydown", O, fs), De("click", li, Ve), De("click", ai, () => Ie("All")), ge(x, O);
|
|
4361
4514
|
};
|
|
4362
4515
|
Ki(_s, (x) => {
|
|
4363
4516
|
i() && x(hs);
|
|
4364
4517
|
});
|
|
4365
4518
|
}
|
|
4366
|
-
return
|
|
4519
|
+
return ge(t, Eo), vn(ms);
|
|
4367
4520
|
}
|
|
4368
|
-
|
|
4521
|
+
Rr([
|
|
4369
4522
|
"pointerdown",
|
|
4370
4523
|
"pointermove",
|
|
4371
4524
|
"pointerup",
|
|
@@ -4373,7 +4526,7 @@ $r([
|
|
|
4373
4526
|
"click"
|
|
4374
4527
|
]);
|
|
4375
4528
|
customElements.define("pie-tool-periodic-table", tl(
|
|
4376
|
-
|
|
4529
|
+
Jl,
|
|
4377
4530
|
{
|
|
4378
4531
|
visible: { attribute: "visible", type: "Boolean" },
|
|
4379
4532
|
toolId: { attribute: "tool-id", type: "String" }
|
|
@@ -4383,5 +4536,5 @@ customElements.define("pie-tool-periodic-table", tl(
|
|
|
4383
4536
|
{ mode: "open" }
|
|
4384
4537
|
));
|
|
4385
4538
|
export {
|
|
4386
|
-
|
|
4539
|
+
Jl as default
|
|
4387
4540
|
};
|