xasdd6 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,2570 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), t = /^(\d{1,3}\.){3,3}\d{1,3}$/, n = 4, r = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i, i = 16, a = {
3
+ name: "v4",
4
+ size: n,
5
+ isFormat: (e) => t.test(e),
6
+ encode(e, t, r) {
7
+ r = ~~r, t ||= new Uint8Array(r + n);
8
+ let i = e.length, a = 0;
9
+ for (let n = 0; n < i;) {
10
+ let i = e.charCodeAt(n++);
11
+ i === 46 ? (t[r++] = a, a = 0) : a = a * 10 + (i - 48);
12
+ }
13
+ return t[r] = a, t;
14
+ },
15
+ decode(e, t) {
16
+ return t = ~~t, `${e[t++]}.${e[t++]}.${e[t++]}.${e[t]}`;
17
+ }
18
+ }, o = {
19
+ name: "v6",
20
+ size: i,
21
+ isFormat: (e) => e.length > 0 && r.test(e),
22
+ encode(e, t, n) {
23
+ n = ~~n;
24
+ let r = n + i, a = -1, o = 0, s = 0, c = !0, l = !1;
25
+ t ||= new Uint8Array(n + i);
26
+ for (let i = 0; i < e.length; i++) {
27
+ let u = e.charCodeAt(i);
28
+ u === 58 ? (c ? a === -1 ? n < r && (a = n) : (n < r && (t[n] = 0), n < r - 1 && (t[n + 1] = 0), n += 2) : (l === !0 ? (n < r && (t[n] = s), n++) : (n < r && (t[n] = o >> 8), n < r - 1 && (t[n + 1] = o & 255), n += 2), o = 0, s = 0), c = !0, l = !1) : u === 46 ? (n < r && (t[n] = s), n++, s = 0, o = 0, c = !1, l = !0) : (c = !1, u >= 97 ? u -= 87 : u >= 65 ? u -= 55 : (u -= 48, s = s * 10 + u), o = (o << 4) + u);
29
+ }
30
+ if (c === !1) l === !0 ? (n < r && (t[n] = s), n++) : (n < r && (t[n] = o >> 8), n < r - 1 && (t[n + 1] = o & 255), n += 2);
31
+ else if (a === 0) n < r && (t[n] = 0), n < r - 1 && (t[n + 1] = 0), n += 2;
32
+ else if (a !== -1) {
33
+ n += 2;
34
+ for (let e = Math.min(n - 1, r - 1); e >= a + 2; e--) t[e] = t[e - 2];
35
+ t[a] = 0, t[a + 1] = 0, a = n;
36
+ }
37
+ if (a !== n && a !== -1) for (n > r - 2 && (n = r - 2); r > a;) t[--r] = n < r && n > a ? t[--n] : 0;
38
+ else for (; n < r;) t[n++] = 0;
39
+ return t;
40
+ },
41
+ decode(e, t) {
42
+ t = ~~t;
43
+ let n = "";
44
+ for (let r = 0; r < i; r += 2) r !== 0 && (n += ":"), n += (e[t + r] << 8 | e[t + r + 1]).toString(16);
45
+ return n.replace(/(^|:)0(:0)*:0(:|$)/, "$1::$3").replace(/:{3,4}/, "::");
46
+ }
47
+ };
48
+ function s(e) {
49
+ if (a.isFormat(e)) return a.size;
50
+ if (o.isFormat(e)) return o.size;
51
+ throw Error(`Invalid ip address: ${e}`);
52
+ }
53
+ function c(e) {
54
+ return s(e) === a.size ? 1 : 2;
55
+ }
56
+ function l(e, t, n) {
57
+ n = ~~n;
58
+ let r = s(e);
59
+ return typeof t == "function" && (t = t(n + r)), r === a.size ? a.encode(e, t, n) : o.encode(e, t, n);
60
+ }
61
+ function u(e, t, n) {
62
+ if (t = ~~t, n ||= e.length - t, n === a.size) return a.decode(e, t, n);
63
+ if (n === o.size) return o.decode(e, t, n);
64
+ throw Error(`Invalid buffer size needs to be ${a.size} for v4 or ${o.size} for v6.`);
65
+ }
66
+ //#endregion
67
+ //#region node_modules/@leichtgewicht/dns-packet/types.mjs
68
+ function d(e) {
69
+ switch (e) {
70
+ case 1: return "A";
71
+ case 10: return "NULL";
72
+ case 28: return "AAAA";
73
+ case 18: return "AFSDB";
74
+ case 42: return "APL";
75
+ case 257: return "CAA";
76
+ case 60: return "CDNSKEY";
77
+ case 59: return "CDS";
78
+ case 37: return "CERT";
79
+ case 5: return "CNAME";
80
+ case 49: return "DHCID";
81
+ case 32769: return "DLV";
82
+ case 39: return "DNAME";
83
+ case 48: return "DNSKEY";
84
+ case 43: return "DS";
85
+ case 55: return "HIP";
86
+ case 13: return "HINFO";
87
+ case 45: return "IPSECKEY";
88
+ case 25: return "KEY";
89
+ case 36: return "KX";
90
+ case 29: return "LOC";
91
+ case 15: return "MX";
92
+ case 35: return "NAPTR";
93
+ case 2: return "NS";
94
+ case 47: return "NSEC";
95
+ case 50: return "NSEC3";
96
+ case 51: return "NSEC3PARAM";
97
+ case 12: return "PTR";
98
+ case 46: return "RRSIG";
99
+ case 17: return "RP";
100
+ case 24: return "SIG";
101
+ case 6: return "SOA";
102
+ case 99: return "SPF";
103
+ case 33: return "SRV";
104
+ case 44: return "SSHFP";
105
+ case 32768: return "TA";
106
+ case 249: return "TKEY";
107
+ case 52: return "TLSA";
108
+ case 250: return "TSIG";
109
+ case 16: return "TXT";
110
+ case 252: return "AXFR";
111
+ case 251: return "IXFR";
112
+ case 41: return "OPT";
113
+ case 255: return "ANY";
114
+ }
115
+ return "UNKNOWN_" + e;
116
+ }
117
+ function f(e) {
118
+ switch (e.toUpperCase()) {
119
+ case "A": return 1;
120
+ case "NULL": return 10;
121
+ case "AAAA": return 28;
122
+ case "AFSDB": return 18;
123
+ case "APL": return 42;
124
+ case "CAA": return 257;
125
+ case "CDNSKEY": return 60;
126
+ case "CDS": return 59;
127
+ case "CERT": return 37;
128
+ case "CNAME": return 5;
129
+ case "DHCID": return 49;
130
+ case "DLV": return 32769;
131
+ case "DNAME": return 39;
132
+ case "DNSKEY": return 48;
133
+ case "DS": return 43;
134
+ case "HIP": return 55;
135
+ case "HINFO": return 13;
136
+ case "IPSECKEY": return 45;
137
+ case "KEY": return 25;
138
+ case "KX": return 36;
139
+ case "LOC": return 29;
140
+ case "MX": return 15;
141
+ case "NAPTR": return 35;
142
+ case "NS": return 2;
143
+ case "NSEC": return 47;
144
+ case "NSEC3": return 50;
145
+ case "NSEC3PARAM": return 51;
146
+ case "PTR": return 12;
147
+ case "RRSIG": return 46;
148
+ case "RP": return 17;
149
+ case "SIG": return 24;
150
+ case "SOA": return 6;
151
+ case "SPF": return 99;
152
+ case "SRV": return 33;
153
+ case "SSHFP": return 44;
154
+ case "TA": return 32768;
155
+ case "TKEY": return 249;
156
+ case "TLSA": return 52;
157
+ case "TSIG": return 250;
158
+ case "TXT": return 16;
159
+ case "AXFR": return 252;
160
+ case "IXFR": return 251;
161
+ case "OPT": return 41;
162
+ case "ANY": return 255;
163
+ case "*": return 255;
164
+ }
165
+ return e.toUpperCase().startsWith("UNKNOWN_") ? parseInt(e.slice(8)) : 0;
166
+ }
167
+ //#endregion
168
+ //#region node_modules/@leichtgewicht/dns-packet/rcodes.mjs
169
+ function p(e) {
170
+ switch (e) {
171
+ case 0: return "NOERROR";
172
+ case 1: return "FORMERR";
173
+ case 2: return "SERVFAIL";
174
+ case 3: return "NXDOMAIN";
175
+ case 4: return "NOTIMP";
176
+ case 5: return "REFUSED";
177
+ case 6: return "YXDOMAIN";
178
+ case 7: return "YXRRSET";
179
+ case 8: return "NXRRSET";
180
+ case 9: return "NOTAUTH";
181
+ case 10: return "NOTZONE";
182
+ case 11: return "RCODE_11";
183
+ case 12: return "RCODE_12";
184
+ case 13: return "RCODE_13";
185
+ case 14: return "RCODE_14";
186
+ case 15: return "RCODE_15";
187
+ }
188
+ return "RCODE_" + e;
189
+ }
190
+ //#endregion
191
+ //#region node_modules/@leichtgewicht/dns-packet/opcodes.mjs
192
+ function ee(e) {
193
+ switch (e) {
194
+ case 0: return "QUERY";
195
+ case 1: return "IQUERY";
196
+ case 2: return "STATUS";
197
+ case 3: return "OPCODE_3";
198
+ case 4: return "NOTIFY";
199
+ case 5: return "UPDATE";
200
+ case 6: return "OPCODE_6";
201
+ case 7: return "OPCODE_7";
202
+ case 8: return "OPCODE_8";
203
+ case 9: return "OPCODE_9";
204
+ case 10: return "OPCODE_10";
205
+ case 11: return "OPCODE_11";
206
+ case 12: return "OPCODE_12";
207
+ case 13: return "OPCODE_13";
208
+ case 14: return "OPCODE_14";
209
+ case 15: return "OPCODE_15";
210
+ }
211
+ return "OPCODE_" + e;
212
+ }
213
+ //#endregion
214
+ //#region node_modules/@leichtgewicht/dns-packet/classes.mjs
215
+ function m(e) {
216
+ switch (e) {
217
+ case 1: return "IN";
218
+ case 2: return "CS";
219
+ case 3: return "CH";
220
+ case 4: return "HS";
221
+ case 255: return "ANY";
222
+ }
223
+ return "UNKNOWN_" + e;
224
+ }
225
+ function te(e) {
226
+ switch (e.toUpperCase()) {
227
+ case "IN": return 1;
228
+ case "CS": return 2;
229
+ case "CH": return 3;
230
+ case "HS": return 4;
231
+ case "ANY": return 255;
232
+ }
233
+ return 0;
234
+ }
235
+ //#endregion
236
+ //#region node_modules/@leichtgewicht/dns-packet/optioncodes.mjs
237
+ function ne(e) {
238
+ switch (e) {
239
+ case 1: return "LLQ";
240
+ case 2: return "UL";
241
+ case 3: return "NSID";
242
+ case 5: return "DAU";
243
+ case 6: return "DHU";
244
+ case 7: return "N3U";
245
+ case 8: return "CLIENT_SUBNET";
246
+ case 9: return "EXPIRE";
247
+ case 10: return "COOKIE";
248
+ case 11: return "TCP_KEEPALIVE";
249
+ case 12: return "PADDING";
250
+ case 13: return "CHAIN";
251
+ case 14: return "KEY_TAG";
252
+ case 26946: return "DEVICEID";
253
+ }
254
+ return e < 0 ? null : `OPTION_${e}`;
255
+ }
256
+ function re(e) {
257
+ if (typeof e == "number") return e;
258
+ if (!e) return -1;
259
+ switch (e.toUpperCase()) {
260
+ case "OPTION_0": return 0;
261
+ case "LLQ": return 1;
262
+ case "UL": return 2;
263
+ case "NSID": return 3;
264
+ case "OPTION_4": return 4;
265
+ case "DAU": return 5;
266
+ case "DHU": return 6;
267
+ case "N3U": return 7;
268
+ case "CLIENT_SUBNET": return 8;
269
+ case "EXPIRE": return 9;
270
+ case "COOKIE": return 10;
271
+ case "TCP_KEEPALIVE": return 11;
272
+ case "PADDING": return 12;
273
+ case "CHAIN": return 13;
274
+ case "KEY_TAG": return 14;
275
+ case "DEVICEID": return 26946;
276
+ case "OPTION_65535": return 65535;
277
+ }
278
+ let t = e.match(/_(\d+)$/);
279
+ return t ? parseInt(t[1], 10) : -1;
280
+ }
281
+ //#endregion
282
+ //#region node_modules/utf8-codec/index.mjs
283
+ var ie = 55296, h = 56320;
284
+ function ae(e) {
285
+ let t = 0, n = e.length;
286
+ for (let r = 0; r < n; r += 1) {
287
+ let i = e.charCodeAt(r);
288
+ if (i <= 127) t += 1;
289
+ else if (i <= 2047) t += 2;
290
+ else if ((i & 63488) !== ie) t += 3;
291
+ else {
292
+ let a = r + 1;
293
+ a === n || i >= h ? t += 3 : (e.charCodeAt(a) & 64512) === h ? (r = a, t += 4) : t += 3;
294
+ }
295
+ }
296
+ return t;
297
+ }
298
+ function g(e, t, n) {
299
+ let r = e.length;
300
+ n ??= 0, t === void 0 && (t = new Uint8Array(ae(e) + n));
301
+ let i = n;
302
+ for (let n = 0; n < r; n += 1) {
303
+ let a = e.charCodeAt(n);
304
+ if (a <= 127) t[i++] = a;
305
+ else if (a <= 2047) t[i++] = 192 | (a & 1984) >> 6, t[i++] = 128 | a & 63;
306
+ else if ((a & 63488) !== ie) t[i++] = 224 | (a & 61440) >> 12, t[i++] = 128 | (a & 4032) >> 6, t[i++] = 128 | a & 63;
307
+ else {
308
+ let o = n + 1;
309
+ if (o === r || a >= h) t[i++] = 239, t[i++] = 191, t[i++] = 189;
310
+ else {
311
+ let r = e.charCodeAt(o);
312
+ (r & 64512) === h ? (n = o, a = 65536 | (a & 1023) << 10 | r & 1023, t[i++] = 240 | (a & 1835008) >> 18, t[i++] = 128 | (a & 258048) >> 12, t[i++] = 128 | (a & 4032) >> 6, t[i++] = 128 | a & 63) : (t[i++] = 239, t[i++] = 191, t[i++] = 189);
313
+ }
314
+ }
315
+ }
316
+ return g.bytes = i - n, t;
317
+ }
318
+ g.bytes = 0;
319
+ function _(e, t, n) {
320
+ let r = "";
321
+ t ??= 0, n ??= e.length;
322
+ for (let i = t; i < n;) {
323
+ let t = e[i++], n;
324
+ if (t <= 128) n = t;
325
+ else if (t > 191 && t < 224) n = (t & 31) << 6 | e[i++] & 63;
326
+ else if (t > 239 && t < 365) {
327
+ n = ((t & 7) << 18 | (e[i++] & 63) << 12 | (e[i++] & 63) << 6 | e[i++] & 63) - 65536;
328
+ let a = ie | n >> 10 & 1023;
329
+ r += String.fromCharCode(a), n = h | n & 1023;
330
+ } else n = (t & 15) << 12 | (e[i++] & 63) << 6 | e[i++] & 63;
331
+ r += String.fromCharCode(n);
332
+ }
333
+ return _.bytes = n - t, r;
334
+ }
335
+ _.bytes = 0;
336
+ //#endregion
337
+ //#region node_modules/@leichtgewicht/dns-packet/buffer_utils.mjs
338
+ var v = (e) => e instanceof Uint8Array;
339
+ function y(e) {
340
+ return typeof e == "string" ? ae(e) : e.byteLength;
341
+ }
342
+ function oe(e) {
343
+ return e instanceof Uint8Array ? e : Array.isArray(e) ? new Uint8Array(e) : g(e);
344
+ }
345
+ function se(e, t, n) {
346
+ if (typeof t != "string") throw Error("unknown input type");
347
+ return g(t, e, n), g.bytes;
348
+ }
349
+ var ce = 2 ** 24, le = 2 ** 16, ue = 256, b = (e, t) => e[t] * ce + e[t + 1] * le + e[t + 2] * ue + e[t + 3], x = (e, t) => e[t] << 8 | e[t + 1], S = (e, t, n) => (t = +t, e[n + 3] = t, t >>>= 8, e[n + 2] = t, t >>>= 8, e[n + 1] = t, t >>>= 8, e[n] = t, n + 4), C = (e, t, n) => (e[n] = t >> 8, e[n + 1] = t & 255, n + 2);
350
+ function w(e, t, n, r, i) {
351
+ return n < 0 && (r -= n, n = 0), r < 0 && (r = 0), i < 0 ? /* @__PURE__ */ new Uint8Array() : n >= t.length || r >= i ? 0 : de(e, t, n, r, i);
352
+ }
353
+ function de(e, t, n, r, i) {
354
+ i - r > t.length - n && (i = r + t.length - n);
355
+ let a = i - r, o = e.length - r;
356
+ return a > o && (a = o), (r !== 0 || i < e.length) && (e = new Uint8Array(e.buffer, e.byteOffset + r, a)), t.set(e, n), a;
357
+ }
358
+ //#endregion
359
+ //#region node_modules/@leichtgewicht/dns-packet/index.mjs
360
+ var fe = 0, pe = 32768, me = 32768, he = -32769, ge = 32768, _e = -32769;
361
+ function T({ bytes: e = 0, encode: t, decode: n, encodingLength: r }) {
362
+ return t.bytes = e, n.bytes = e, {
363
+ encode: t,
364
+ decode: n,
365
+ encodingLength: r || (() => e)
366
+ };
367
+ }
368
+ var E = T({
369
+ encode(e, t, n) {
370
+ t ||= new Uint8Array(E.encodingLength(e)), n ||= 0;
371
+ let r = n, i = e.replace(/^\.|\.$/gm, "");
372
+ if (i.length) {
373
+ let e = i.split(".");
374
+ for (let r = 0; r < e.length; r++) {
375
+ let i = se(t, e[r], n + 1);
376
+ t[n] = i, n += i + 1;
377
+ }
378
+ }
379
+ return t[n++] = 0, E.encode.bytes = n - r, t;
380
+ },
381
+ decode(e, t) {
382
+ t ||= 0;
383
+ let n = [], r = t, i = 0, a = 0, o = !1;
384
+ for (;;) {
385
+ if (t >= e.length) throw Error("Cannot decode name (buffer overflow)");
386
+ let s = e[t++];
387
+ if (a += +!o, s === 0) break;
388
+ if (!(s & 192)) {
389
+ if (t + s > e.length) throw Error("Cannot decode name (buffer overflow)");
390
+ if (i += s + 1, i > 254) throw Error("Cannot decode name (name too long)");
391
+ n.push(_(e, t, t + s)), t += s, a += o ? 0 : s;
392
+ } else if ((s & 192) == 192) {
393
+ if (t + 1 > e.length) throw Error("Cannot decode name (buffer overflow)");
394
+ let n = x(e, t - 1) - 49152;
395
+ if (n >= r) throw Error("Cannot decode name (bad pointer)");
396
+ t = n, r = n, a += +!o, o = !0;
397
+ } else throw Error("Cannot decode name (bad label)");
398
+ }
399
+ return E.decode.bytes = a, n.length === 0 ? "." : n.join(".");
400
+ },
401
+ encodingLength(e) {
402
+ return e === "." || e === ".." ? 1 : y(e.replace(/^\.|\.$/gm, "")) + 2;
403
+ }
404
+ }), D = T({
405
+ encode(e, t, n) {
406
+ t ||= new Uint8Array(D.encodingLength(e)), n ||= 0;
407
+ let r = se(t, e, n + 1);
408
+ return t[n] = r, D.encode.bytes = r + 1, t;
409
+ },
410
+ decode(e, t) {
411
+ t ||= 0;
412
+ let n = e[t], r = _(e, t + 1, t + 1 + n);
413
+ return D.decode.bytes = n + 1, r;
414
+ },
415
+ encodingLength(e) {
416
+ return y(e) + 1;
417
+ }
418
+ }), O = T({
419
+ bytes: 12,
420
+ encode(e, t, n) {
421
+ t ||= new Uint8Array(O.encodingLength(e)), n ||= 0;
422
+ let r = (e.flags || 0) & 32767, i = e.type === "response" ? pe : fe;
423
+ return C(t, e.id || 0, n), C(t, r | i, n + 2), C(t, e.questions.length, n + 4), C(t, e.answers.length, n + 6), C(t, e.authorities.length, n + 8), C(t, e.additionals.length, n + 10), t;
424
+ },
425
+ decode(e, t) {
426
+ if (t ||= 0, e.length < 12) throw Error("Header must be 12 bytes");
427
+ let n = x(e, t + 2);
428
+ return {
429
+ id: x(e, t),
430
+ type: n & pe ? "response" : "query",
431
+ flags: n & 32767,
432
+ flag_qr: (n >> 15 & 1) == 1,
433
+ opcode: ee(n >> 11 & 15),
434
+ flag_aa: (n >> 10 & 1) == 1,
435
+ flag_tc: (n >> 9 & 1) == 1,
436
+ flag_rd: (n >> 8 & 1) == 1,
437
+ flag_ra: (n >> 7 & 1) == 1,
438
+ flag_z: (n >> 6 & 1) == 1,
439
+ flag_ad: (n >> 5 & 1) == 1,
440
+ flag_cd: (n >> 4 & 1) == 1,
441
+ rcode: p(n & 15),
442
+ questions: Array(x(e, t + 4)),
443
+ answers: Array(x(e, t + 6)),
444
+ authorities: Array(x(e, t + 8)),
445
+ additionals: Array(x(e, t + 10))
446
+ };
447
+ },
448
+ encodingLength() {
449
+ return 12;
450
+ }
451
+ }), k = T({
452
+ encode(e, t, n) {
453
+ t ||= new Uint8Array(k.encodingLength(e)), n ||= 0;
454
+ let r = e.length;
455
+ return C(t, r, n), w(e, t, n + 2, 0, r), k.encode.bytes = r + 2, t;
456
+ },
457
+ decode(e, t) {
458
+ t ||= 0;
459
+ let n = x(e, t), r = e.slice(t + 2, t + 2 + n);
460
+ return k.decode.bytes = n + 2, r;
461
+ },
462
+ encodingLength(e) {
463
+ return e.length + 2;
464
+ }
465
+ }), A = T({
466
+ encode(e, t, n) {
467
+ return t ||= new Uint8Array(A.encodingLength(e)), n ||= 0, E.encode(e, t, n + 2), C(t, E.encode.bytes, n), A.encode.bytes = E.encode.bytes + 2, t;
468
+ },
469
+ decode(e, t) {
470
+ t ||= 0;
471
+ let n = x(e, t), r = E.decode(e, t + 2);
472
+ return A.decode.bytes = n + 2, r;
473
+ },
474
+ encodingLength(e) {
475
+ return E.encodingLength(e) + 2;
476
+ }
477
+ }), j = T({
478
+ encode(e, t, n) {
479
+ t ||= new Uint8Array(j.encodingLength(e)), n ||= 0;
480
+ let r = n;
481
+ return n += 2, E.encode(e.mname, t, n), n += E.encode.bytes, E.encode(e.rname, t, n), n += E.encode.bytes, S(t, e.serial || 0, n), n += 4, S(t, e.refresh || 0, n), n += 4, S(t, e.retry || 0, n), n += 4, S(t, e.expire || 0, n), n += 4, S(t, e.minimum || 0, n), n += 4, C(t, n - r - 2, r), j.encode.bytes = n - r, t;
482
+ },
483
+ decode(e, t) {
484
+ t ||= 0;
485
+ let n = t, r = {};
486
+ return t += 2, r.mname = E.decode(e, t), t += E.decode.bytes, r.rname = E.decode(e, t), t += E.decode.bytes, r.serial = b(e, t), t += 4, r.refresh = b(e, t), t += 4, r.retry = b(e, t), t += 4, r.expire = b(e, t), t += 4, r.minimum = b(e, t), t += 4, j.decode.bytes = t - n, r;
487
+ },
488
+ encodingLength(e) {
489
+ return 22 + E.encodingLength(e.mname) + E.encodingLength(e.rname);
490
+ }
491
+ }), M = T({
492
+ encode(e, t, n) {
493
+ Array.isArray(e) || (e = [e]);
494
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && (e[t] = oe(e[t])), !v(e[t])) throw Error("Must be a Buffer");
495
+ t ||= new Uint8Array(M.encodingLength(e)), n ||= 0;
496
+ let r = n;
497
+ return n += 2, e.forEach(function(e) {
498
+ t[n++] = e.length, w(e, t, n, 0, e.length), n += e.length;
499
+ }), C(t, n - r - 2, r), M.encode.bytes = n - r, t;
500
+ },
501
+ decode(e, t) {
502
+ t ||= 0;
503
+ let n = t, r = x(e, t);
504
+ t += 2;
505
+ let i = [];
506
+ for (; r > 0;) {
507
+ let n = e[t++];
508
+ if (--r, r < n) throw Error("Buffer overflow");
509
+ i.push(e.slice(t, t + n)), t += n, r -= n;
510
+ }
511
+ return M.decode.bytes = t - n, i;
512
+ },
513
+ encodingLength(e) {
514
+ Array.isArray(e) || (e = [e]);
515
+ let t = 2;
516
+ return e.forEach(function(e) {
517
+ t += typeof e == "string" ? y(e) + 1 : e.length + 1;
518
+ }), t;
519
+ }
520
+ }), N = T({
521
+ encode(e, t, n) {
522
+ t ||= new Uint8Array(N.encodingLength(e)), n ||= 0, typeof e == "string" && (e = oe(e)), e ||= /* @__PURE__ */ new Uint8Array();
523
+ let r = n;
524
+ n += 2;
525
+ let i = e.length;
526
+ return w(e, t, n, 0, i), n += i, C(t, n - r - 2, r), N.encode.bytes = n - r, t;
527
+ },
528
+ decode(e, t) {
529
+ t ||= 0;
530
+ let n = t, r = x(e, t);
531
+ t += 2;
532
+ let i = e.slice(t, t + r);
533
+ return t += r, N.decode.bytes = t - n, i;
534
+ },
535
+ encodingLength(e) {
536
+ return e ? (v(e) ? e.length : y(e)) + 2 : 2;
537
+ }
538
+ }), P = T({
539
+ encode(e, t, n) {
540
+ t ||= new Uint8Array(P.encodingLength(e)), n ||= 0;
541
+ let r = n;
542
+ return n += 2, D.encode(e.cpu, t, n), n += D.encode.bytes, D.encode(e.os, t, n), n += D.encode.bytes, C(t, n - r - 2, r), P.encode.bytes = n - r, t;
543
+ },
544
+ decode(e, t) {
545
+ t ||= 0;
546
+ let n = t, r = {};
547
+ return t += 2, r.cpu = D.decode(e, t), t += D.decode.bytes, r.os = D.decode(e, t), t += D.decode.bytes, P.decode.bytes = t - n, r;
548
+ },
549
+ encodingLength(e) {
550
+ return D.encodingLength(e.cpu) + D.encodingLength(e.os) + 2;
551
+ }
552
+ }), F = T({
553
+ encode(e, t, n) {
554
+ return t ||= new Uint8Array(F.encodingLength(e)), n ||= 0, E.encode(e, t, n + 2), C(t, E.encode.bytes, n), F.encode.bytes = E.encode.bytes + 2, t;
555
+ },
556
+ decode(e, t) {
557
+ t ||= 0;
558
+ let n = E.decode(e, t + 2);
559
+ return F.decode.bytes = E.decode.bytes + 2, n;
560
+ },
561
+ encodingLength(e) {
562
+ return E.encodingLength(e) + 2;
563
+ }
564
+ }), I = T({
565
+ encode(e, t, n) {
566
+ t ||= new Uint8Array(I.encodingLength(e)), n ||= 0, C(t, e.priority || 0, n + 2), C(t, e.weight || 0, n + 4), C(t, e.port || 0, n + 6), E.encode(e.target, t, n + 8);
567
+ let r = E.encode.bytes + 6;
568
+ return C(t, r, n), I.encode.bytes = r + 2, t;
569
+ },
570
+ decode(e, t) {
571
+ t ||= 0;
572
+ let n = x(e, t), r = {};
573
+ return r.priority = x(e, t + 2), r.weight = x(e, t + 4), r.port = x(e, t + 6), r.target = E.decode(e, t + 8), I.decode.bytes = n + 2, r;
574
+ },
575
+ encodingLength(e) {
576
+ return 8 + E.encodingLength(e.target);
577
+ }
578
+ }), L = T({
579
+ encode(e, t, n) {
580
+ let r = L.encodingLength(e);
581
+ return t ||= new Uint8Array(L.encodingLength(e)), n ||= 0, e.issuerCritical && (e.flags = L.ISSUER_CRITICAL), C(t, r - 2, n), n += 2, t[n] = e.flags || 0, n += 1, D.encode(e.tag, t, n), n += D.encode.bytes, se(t, e.value, n), n += y(e.value), L.encode.bytes = r, t;
582
+ },
583
+ decode(e, t) {
584
+ t ||= 0;
585
+ let n = x(e, t);
586
+ t += 2;
587
+ let r = t, i = {};
588
+ return i.flags = e[t], t += 1, i.tag = D.decode(e, t), t += D.decode.bytes, i.value = _(e, t, r + n), i.issuerCritical = !!(i.flags & L.ISSUER_CRITICAL), L.decode.bytes = n + 2, i;
589
+ },
590
+ encodingLength(e) {
591
+ return D.encodingLength(e.tag) + D.encodingLength(e.value) + 2;
592
+ }
593
+ });
594
+ L.ISSUER_CRITICAL = 128;
595
+ var R = T({
596
+ encode(e, t, n) {
597
+ t ||= new Uint8Array(R.encodingLength(e)), n ||= 0;
598
+ let r = n;
599
+ return n += 2, C(t, e.preference || 0, n), n += 2, E.encode(e.exchange, t, n), n += E.encode.bytes, C(t, n - r - 2, r), R.encode.bytes = n - r, t;
600
+ },
601
+ decode(e, t) {
602
+ t ||= 0;
603
+ let n = t, r = {};
604
+ return t += 2, r.preference = x(e, t), t += 2, r.exchange = E.decode(e, t), t += E.decode.bytes, R.decode.bytes = t - n, r;
605
+ },
606
+ encodingLength(e) {
607
+ return 4 + E.encodingLength(e.exchange);
608
+ }
609
+ }), ve = T({
610
+ encode(e, t, n) {
611
+ return t ||= new Uint8Array(ve.encodingLength(e)), n ||= 0, C(t, 4, n), n += 2, a.encode(e, t, n), t;
612
+ },
613
+ decode(e, t) {
614
+ return t ||= 0, t += 2, a.decode(e, t);
615
+ },
616
+ bytes: 6
617
+ }), ye = T({
618
+ encode(e, t, n) {
619
+ return t ||= new Uint8Array(ye.encodingLength(e)), n ||= 0, C(t, 16, n), n += 2, o.encode(e, t, n), ye.encode.bytes = 18, t;
620
+ },
621
+ decode(e, t) {
622
+ t ||= 0, t += 2;
623
+ let n = o.decode(e, t);
624
+ return ye.decode.bytes = 18, n;
625
+ },
626
+ bytes: 18
627
+ }), be = (e) => new Uint8Array(e), z = T({
628
+ encode(e, t, n) {
629
+ t ||= new Uint8Array(z.encodingLength(e)), n ||= 0;
630
+ let r = n, i = re(e.code);
631
+ if (C(t, i, n), n += 2, e.data) C(t, e.data.length, n), n += 2, w(e.data, t, n), n += e.data.length;
632
+ else switch (i) {
633
+ case 8:
634
+ {
635
+ let r = e.sourcePrefixLength || 0, i = e.family || c(e.ip, be), a = l(e.ip, be), o = Math.ceil(r / 8);
636
+ C(t, o + 4, n), n += 2, C(t, i, n), n += 2, t[n++] = r, t[n++] = e.scopePrefixLength || 0, w(a, t, n, 0, o), n += o;
637
+ }
638
+ break;
639
+ case 11:
640
+ e.timeout ? (C(t, 2, n), n += 2, C(t, e.timeout, n), n += 2) : (C(t, 0, n), n += 2);
641
+ break;
642
+ case 12:
643
+ {
644
+ let r = e.length || 0;
645
+ C(t, r, n), n += 2, t.fill(0, n, n + r), n += r;
646
+ }
647
+ break;
648
+ case 14:
649
+ {
650
+ let r = e.tags.length * 2;
651
+ C(t, r, n), n += 2;
652
+ for (let r of e.tags) C(t, r, n), n += 2;
653
+ }
654
+ break;
655
+ default: throw Error(`Unknown roption code: ${e.code}`);
656
+ }
657
+ return z.encode.bytes = n - r, t;
658
+ },
659
+ decode(e, t) {
660
+ t ||= 0;
661
+ let n = {};
662
+ n.code = x(e, t), n.type = ne(n.code), t += 2;
663
+ let r = x(e, t);
664
+ switch (t += 2, n.data = e.slice(t, t + r), n.code) {
665
+ case 8:
666
+ n.family = x(e, t), t += 2, n.sourcePrefixLength = e[t++], n.scopePrefixLength = e[t++];
667
+ {
668
+ let i = new Uint8Array(n.family === 1 ? 4 : 16);
669
+ w(e, i, 0, t, t + r - 4), n.ip = u(i);
670
+ }
671
+ break;
672
+ case 11:
673
+ r > 0 && (n.timeout = x(e, t), t += 2);
674
+ break;
675
+ case 14:
676
+ n.tags = [];
677
+ for (let i = 0; i < r; i += 2) n.tags.push(x(e, t)), t += 2;
678
+ }
679
+ return z.decode.bytes = r + 4, n;
680
+ },
681
+ encodingLength(e) {
682
+ if (e.data) return e.data.length + 4;
683
+ switch (re(e.code)) {
684
+ case 8: {
685
+ let t = e.sourcePrefixLength || 0;
686
+ return Math.ceil(t / 8) + 8;
687
+ }
688
+ case 11: return typeof e.timeout == "number" ? 6 : 4;
689
+ case 12: return e.length + 4;
690
+ case 14: return 4 + e.tags.length * 2;
691
+ }
692
+ throw Error(`Unknown roption code: ${e.code}`);
693
+ }
694
+ }), B = T({
695
+ encode(e, t, n) {
696
+ t ||= new Uint8Array(B.encodingLength(e)), n ||= 0;
697
+ let r = n, i = Z(e, z);
698
+ return C(t, i, n), n = Q(e, z, t, n + 2), B.encode.bytes = n - r, t;
699
+ },
700
+ decode(e, t) {
701
+ t ||= 0;
702
+ let n = t, r = [], i = x(e, t);
703
+ t += 2;
704
+ let a = 0;
705
+ for (; i > 0;) r[a++] = z.decode(e, t), t += z.decode.bytes, i -= z.decode.bytes;
706
+ return B.decode.bytes = t - n, r;
707
+ },
708
+ encodingLength(e) {
709
+ return 2 + Z(e || [], z);
710
+ }
711
+ }), V = T({
712
+ encode(e, t, n) {
713
+ t ||= new Uint8Array(V.encodingLength(e)), n ||= 0;
714
+ let r = n, i = e.key;
715
+ if (!v(i)) throw Error("Key must be a Buffer");
716
+ return n += 2, C(t, e.flags, n), n += 2, t[n] = V.PROTOCOL_DNSSEC, n += 1, t[n] = e.algorithm, n += 1, w(i, t, n, 0, i.length), n += i.length, V.encode.bytes = n - r, C(t, V.encode.bytes - 2, r), t;
717
+ },
718
+ decode(e, t) {
719
+ t ||= 0;
720
+ let n = t, r = {}, i = x(e, t);
721
+ if (t += 2, r.flags = x(e, t), t += 2, e[t] !== V.PROTOCOL_DNSSEC) throw Error("Protocol must be 3");
722
+ return t += 1, r.algorithm = e[t], t += 1, r.key = e.slice(t, n + i + 2), t += r.key.length, V.decode.bytes = t - n, r;
723
+ },
724
+ encodingLength(e) {
725
+ return 6 + y(e.key);
726
+ }
727
+ });
728
+ V.PROTOCOL_DNSSEC = 3, V.ZONE_KEY = 128, V.SECURE_ENTRYPOINT = 32768;
729
+ var H = T({
730
+ encode(e, t, n) {
731
+ t ||= new Uint8Array(H.encodingLength(e)), n ||= 0;
732
+ let r = n, i = e.signature;
733
+ if (!v(i)) throw Error("Signature must be a Buffer");
734
+ return n += 2, C(t, f(e.typeCovered), n), n += 2, t[n] = e.algorithm, n += 1, t[n] = e.labels, n += 1, S(t, e.originalTTL, n), n += 4, S(t, e.expiration, n), n += 4, S(t, e.inception, n), n += 4, C(t, e.keyTag, n), n += 2, E.encode(e.signersName, t, n), n += E.encode.bytes, w(i, t, n, 0, i.length), n += i.length, H.encode.bytes = n - r, C(t, H.encode.bytes - 2, r), t;
735
+ },
736
+ decode(e, t) {
737
+ t ||= 0;
738
+ let n = t, r = {}, i = x(e, t);
739
+ return t += 2, r.typeCovered = d(x(e, t)), t += 2, r.algorithm = e[t], t += 1, r.labels = e[t], t += 1, r.originalTTL = b(e, t), t += 4, r.expiration = b(e, t), t += 4, r.inception = b(e, t), t += 4, r.keyTag = x(e, t), t += 2, r.signersName = E.decode(e, t), t += E.decode.bytes, r.signature = e.slice(t, n + i + 2), t += r.signature.length, H.decode.bytes = t - n, r;
740
+ },
741
+ encodingLength(e) {
742
+ return 20 + E.encodingLength(e.signersName) + y(e.signature);
743
+ }
744
+ }), U = T({
745
+ encode(e, t, n) {
746
+ t ||= new Uint8Array(U.encodingLength(e)), n ||= 0;
747
+ let r = n;
748
+ return n += 2, E.encode(e.mbox || ".", t, n), n += E.encode.bytes, E.encode(e.txt || ".", t, n), n += E.encode.bytes, U.encode.bytes = n - r, C(t, U.encode.bytes - 2, r), t;
749
+ },
750
+ decode(e, t) {
751
+ t ||= 0;
752
+ let n = t, r = {};
753
+ return t += 2, r.mbox = E.decode(e, t) || ".", t += E.decode.bytes, r.txt = E.decode(e, t) || ".", t += E.decode.bytes, U.decode.bytes = t - n, r;
754
+ },
755
+ encodingLength(e) {
756
+ return 2 + E.encodingLength(e.mbox || ".") + E.encodingLength(e.txt || ".");
757
+ }
758
+ }), W = T({
759
+ encode(e, t, n) {
760
+ t ||= new Uint8Array(W.encodingLength(e)), n ||= 0;
761
+ let r = n, i = [];
762
+ for (let t = 0; t < e.length; t++) {
763
+ let n = f(e[t]);
764
+ i[n >> 8] === void 0 && (i[n >> 8] = []), i[n >> 8][n >> 3 & 31] |= 1 << 7 - (n & 7);
765
+ }
766
+ for (let e = 0; e < i.length; e++) if (i[e] !== void 0) {
767
+ let r = oe(i[e]);
768
+ t[n] = e, n += 1, t[n] = r.length, n += 1, w(r, t, n, 0, r.length), n += r.length;
769
+ }
770
+ return W.encode.bytes = n - r, t;
771
+ },
772
+ decode(e, t, n) {
773
+ t ||= 0;
774
+ let r = t, i = [];
775
+ for (; t - r < n;) {
776
+ let n = e[t];
777
+ t += 1;
778
+ let r = e[t];
779
+ t += 1;
780
+ for (let a = 0; a < r; a++) {
781
+ let r = e[t + a];
782
+ for (let e = 0; e < 8; e++) if (r & 1 << 7 - e) {
783
+ let t = d(n << 8 | a << 3 | e);
784
+ i.push(t);
785
+ }
786
+ }
787
+ t += r;
788
+ }
789
+ return W.decode.bytes = t - r, i;
790
+ },
791
+ encodingLength(e) {
792
+ let t = [];
793
+ for (let n = 0; n < e.length; n++) {
794
+ let r = f(e[n]);
795
+ t[r >> 8] = Math.max(t[r >> 8] || 0, r & 255);
796
+ }
797
+ let n = 0;
798
+ for (let e = 0; e < t.length; e++) t[e] !== void 0 && (n += 2 + Math.ceil((t[e] + 1) / 8));
799
+ return n;
800
+ }
801
+ }), G = T({
802
+ encode(e, t, n) {
803
+ t ||= new Uint8Array(G.encodingLength(e)), n ||= 0;
804
+ let r = n;
805
+ return n += 2, E.encode(e.nextDomain, t, n), n += E.encode.bytes, W.encode(e.rrtypes, t, n), n += W.encode.bytes, G.encode.bytes = n - r, C(t, G.encode.bytes - 2, r), t;
806
+ },
807
+ decode(e, t) {
808
+ t ||= 0;
809
+ let n = t, r = {}, i = x(e, t);
810
+ return t += 2, r.nextDomain = E.decode(e, t), t += E.decode.bytes, r.rrtypes = W.decode(e, t, i - (t - n)), t += W.decode.bytes, G.decode.bytes = t - n, r;
811
+ },
812
+ encodingLength(e) {
813
+ return 2 + E.encodingLength(e.nextDomain) + W.encodingLength(e.rrtypes);
814
+ }
815
+ }), K = T({
816
+ encode(e, t, n) {
817
+ t ||= new Uint8Array(K.encodingLength(e)), n ||= 0;
818
+ let r = n, i = e.salt;
819
+ if (!v(i)) throw Error("salt must be a Buffer");
820
+ let a = e.nextDomain;
821
+ if (!v(a)) throw Error("nextDomain must be a Buffer");
822
+ return n += 2, t[n] = e.algorithm, n += 1, t[n] = e.flags, n += 1, C(t, e.iterations, n), n += 2, t[n] = i.length, n += 1, w(i, t, n, 0, i.length), n += i.length, t[n] = a.length, n += 1, w(a, t, n, 0, a.length), n += a.length, W.encode(e.rrtypes, t, n), n += W.encode.bytes, K.encode.bytes = n - r, C(t, K.encode.bytes - 2, r), t;
823
+ },
824
+ decode(e, t) {
825
+ t ||= 0;
826
+ let n = t, r = {}, i = x(e, t);
827
+ t += 2, r.algorithm = e[t], t += 1, r.flags = e[t], t += 1, r.iterations = x(e, t), t += 2;
828
+ let a = e[t];
829
+ t += 1, r.salt = e.slice(t, t + a), t += a;
830
+ let o = e[t];
831
+ return t += 1, r.nextDomain = e.slice(t, t + o), t += o, r.rrtypes = W.decode(e, t, i - (t - n)), t += W.decode.bytes, K.decode.bytes = t - n, r;
832
+ },
833
+ encodingLength(e) {
834
+ return 8 + e.salt.length + e.nextDomain.length + W.encodingLength(e.rrtypes);
835
+ }
836
+ }), q = T({
837
+ encode(e, t, n) {
838
+ t ||= new Uint8Array(q.encodingLength(e)), n ||= 0;
839
+ let r = n, i = e.digest;
840
+ if (!v(i)) throw Error("Digest must be a Buffer");
841
+ return n += 2, C(t, e.keyTag, n), n += 2, t[n] = e.algorithm, n += 1, t[n] = e.digestType, n += 1, w(i, t, n, 0, i.length), n += i.length, q.encode.bytes = n - r, C(t, q.encode.bytes - 2, r), t;
842
+ },
843
+ decode(e, t) {
844
+ t ||= 0;
845
+ let n = t, r = {}, i = x(e, t);
846
+ return t += 2, r.keyTag = x(e, t), t += 2, r.algorithm = e[t], t += 1, r.digestType = e[t], t += 1, r.digest = e.slice(t, n + i + 2), t += r.digest.length, q.decode.bytes = t - n, r;
847
+ },
848
+ encodingLength(e) {
849
+ return 6 + y(e.digest);
850
+ }
851
+ });
852
+ function xe(e) {
853
+ switch (e.toUpperCase()) {
854
+ case "A": return ve;
855
+ case "PTR": return F;
856
+ case "CNAME": return F;
857
+ case "DNAME": return F;
858
+ case "TXT": return M;
859
+ case "NULL": return N;
860
+ case "AAAA": return ye;
861
+ case "SRV": return I;
862
+ case "HINFO": return P;
863
+ case "CAA": return L;
864
+ case "NS": return A;
865
+ case "SOA": return j;
866
+ case "MX": return R;
867
+ case "OPT": return B;
868
+ case "DNSKEY": return V;
869
+ case "RRSIG": return H;
870
+ case "RP": return U;
871
+ case "NSEC": return G;
872
+ case "NSEC3": return K;
873
+ case "DS": return q;
874
+ }
875
+ return k;
876
+ }
877
+ var J = T({
878
+ encode(e, t, n) {
879
+ t ||= new Uint8Array(J.encodingLength(e)), n ||= 0;
880
+ let r = n;
881
+ if (E.encode(e.name, t, n), n += E.encode.bytes, C(t, f(e.type), n), e.type.toUpperCase() === "OPT") {
882
+ if (e.name !== ".") throw Error("OPT name must be root.");
883
+ C(t, e.udpPayloadSize || 4096, n + 2), t[n + 4] = e.extendedRcode || 0, t[n + 5] = e.ednsVersion || 0, C(t, e.flags || 0, n + 6), n += 8, B.encode(e.options || [], t, n), n += B.encode.bytes;
884
+ } else {
885
+ let r = te(e.class === void 0 ? "IN" : e.class);
886
+ e.flush && (r |= me), C(t, r, n + 2), S(t, e.ttl || 0, n + 4), n += 8;
887
+ let i = xe(e.type);
888
+ i.encode(e.data, t, n), n += i.encode.bytes;
889
+ }
890
+ return J.encode.bytes = n - r, t;
891
+ },
892
+ decode(e, t) {
893
+ t ||= 0;
894
+ let n = {}, r = t;
895
+ if (n.name = E.decode(e, t), t += E.decode.bytes, n.type = d(x(e, t)), n.type === "OPT") n.udpPayloadSize = x(e, t + 2), n.extendedRcode = e[t + 4], n.ednsVersion = e[t + 5], n.flags = x(e, t + 6), n.flag_do = (n.flags >> 15 & 1) == 1, n.options = B.decode(e, t + 8), t += 8 + B.decode.bytes;
896
+ else {
897
+ let r = x(e, t + 2);
898
+ n.ttl = b(e, t + 4), n.class = m(r & he), n.flush = !!(r & me);
899
+ let i = xe(n.type);
900
+ n.data = i.decode(e, t + 8), t += 8 + i.decode.bytes;
901
+ }
902
+ return J.decode.bytes = t - r, n;
903
+ },
904
+ encodingLength(e) {
905
+ let t = e.data !== null && e.data !== void 0 ? e.data : e.options;
906
+ return E.encodingLength(e.name) + 8 + xe(e.type).encodingLength(t);
907
+ }
908
+ }), Y = T({
909
+ encode(e, t, n) {
910
+ t ||= new Uint8Array(Y.encodingLength(e)), n ||= 0;
911
+ let r = n;
912
+ return E.encode(e.name, t, n), n += E.encode.bytes, C(t, f(e.type), n), n += 2, C(t, te(e.class === void 0 ? "IN" : e.class), n), n += 2, Y.encode.bytes = n - r, e;
913
+ },
914
+ decode(e, t) {
915
+ t ||= 0;
916
+ let n = t, r = {};
917
+ return r.name = E.decode(e, t), t += E.decode.bytes, r.type = d(x(e, t)), t += 2, r.class = m(x(e, t)), t += 2, r.class & ge && (r.class &= _e), Y.decode.bytes = t - n, r;
918
+ },
919
+ encodingLength(e) {
920
+ return E.encodingLength(e.name) + 4;
921
+ }
922
+ }), X = {
923
+ encode: function(e, t, n) {
924
+ let r = !t;
925
+ r && (t = new Uint8Array(Ee(e))), n ||= 0;
926
+ let i = n;
927
+ return e.questions ||= [], e.answers ||= [], e.authorities ||= [], e.additionals ||= [], O.encode(e, t, n), n += O.encode.bytes, n = Q(e.questions, Y, t, n), n = Q(e.answers, J, t, n), n = Q(e.authorities, J, t, n), n = Q(e.additionals, J, t, n), X.encode.bytes = n - i, r && Te.bytes !== t.length ? t.slice(0, Te.bytes) : t;
928
+ },
929
+ decode: function(e, t) {
930
+ t ||= 0;
931
+ let n = t, r = O.decode(e, t);
932
+ return t += O.decode.bytes, t = De(r.questions, Y, e, t), t = De(r.answers, J, e, t), t = De(r.authorities, J, e, t), t = De(r.additionals, J, e, t), X.decode.bytes = t - n, r;
933
+ },
934
+ encodingLength: function(e) {
935
+ return O.encodingLength(e) + Z(e.questions || [], Y) + Z(e.answers || [], J) + Z(e.authorities || [], J) + Z(e.additionals || [], J);
936
+ }
937
+ };
938
+ X.encode.bytes = 0, X.decode.bytes = 0;
939
+ function Se(e, t) {
940
+ if (e.questions) throw Error("Only one .question object expected instead of a .questions array!");
941
+ let n = Object.assign({ type: t }, e);
942
+ return n.question && (n.questions = [n.question], delete n.question), n;
943
+ }
944
+ var Ce = {
945
+ encode: function(e, t, n) {
946
+ return t = X.encode(Se(e, "query"), t, n), Ce.encode.bytes = X.encode.bytes, t;
947
+ },
948
+ decode: function(e, t) {
949
+ let n = X.decode(e, t);
950
+ return Ce.decode.bytes = X.decode.bytes, n.questions && (n.question = n.questions[0], delete n.questions), n;
951
+ },
952
+ encodingLength: function(e) {
953
+ return X.encodingLength(Se(e, "query"));
954
+ }
955
+ };
956
+ Ce.encode.bytes = 0, Ce.decode.bytes = 0;
957
+ var we = {
958
+ encode: function(e, t, n) {
959
+ return t = X.encode(Se(e, "response"), t, n), we.encode.bytes = X.encode.bytes, t;
960
+ },
961
+ decode: function(e, t) {
962
+ let n = X.decode(e, t);
963
+ return we.decode.bytes = X.decode.bytes, n.questions && (n.question = n.questions[0], delete n.questions), n;
964
+ },
965
+ encodingLength: function(e) {
966
+ return X.encodingLength(Se(e, "response"));
967
+ }
968
+ };
969
+ we.encode.bytes = 0, we.decode.bytes = 0;
970
+ var Te = X.encode;
971
+ X.decode;
972
+ var Ee = X.encodingLength;
973
+ function Z(e, t) {
974
+ let n = 0;
975
+ for (let r = 0; r < e.length; r++) n += t.encodingLength(e[r]);
976
+ return n;
977
+ }
978
+ function Q(e, t, n, r) {
979
+ for (let i = 0; i < e.length; i++) t.encode(e[i], n, r), r += t.encode.bytes;
980
+ return r;
981
+ }
982
+ function De(e, t, n, r) {
983
+ for (let i = 0; i < e.length; i++) e[i] = t.decode(n, r), r += t.decode.bytes;
984
+ return r;
985
+ }
986
+ function Oe(e, t, n, r) {
987
+ if (t.length !== 64) throw Error(`Charset needs to be 64 characters long! (${t.length})`);
988
+ let i = /* @__PURE__ */ new Uint8Array(256), a = /* @__PURE__ */ new Uint8Array(64);
989
+ for (let e = 0; e < 64; e += 1) {
990
+ let n = t.charCodeAt(e);
991
+ if (n > 255) throw Error(`Character #${e} in charset [code=${n}, char=${t.charAt(e)}] is too high! (max=255)`);
992
+ if (i[n] !== 0) throw Error(`Character [code=${n}, char=${t.charAt(e)}] is more than once in the charset!`);
993
+ i[n] = e, a[e] = n;
994
+ }
995
+ let o = n.charCodeAt(0), s = {
996
+ name: e,
997
+ encodingLength(e) {
998
+ let t = e.length, n = t * .75 | 0;
999
+ return e.charCodeAt(t - 1) === o ? e.charCodeAt(t - 2) === o ? n - 2 : n - 1 : n;
1000
+ },
1001
+ encode(e, t, n) {
1002
+ t ??= new Uint8Array(s.encodingLength(e)), n ??= 0;
1003
+ let r = e.length;
1004
+ e.charCodeAt(r - 1) === o && (e.charCodeAt(r - 2) === o ? r -= 2 : --r);
1005
+ let a = r % 4, c = r - a, l = n, u = 0;
1006
+ for (; u < c;) {
1007
+ let n = i[e.charCodeAt(u)] << 18 | i[e.charCodeAt(u + 1)] << 12 | i[e.charCodeAt(u + 2)] << 6 | i[e.charCodeAt(u + 3)];
1008
+ t[l++] = n >> 16, t[l++] = n >> 8, t[l++] = n, u += 4;
1009
+ }
1010
+ if (a === 3) {
1011
+ let n = i[e.charCodeAt(u)] << 10 | i[e.charCodeAt(u + 1)] << 4 | i[e.charCodeAt(u + 2)] >> 2;
1012
+ t[l++] = n >> 8, t[l++] = n;
1013
+ } else a === 2 && (t[l++] = i[e.charCodeAt(u)] << 2 | i[e.charCodeAt(u + 1)] >> 4);
1014
+ return s.encode.bytes = l - n, t;
1015
+ },
1016
+ decode(e, t, n) {
1017
+ t ??= 0, n ??= e.length;
1018
+ let i = n - t, c = i % 3, l = t + i - c, u = [];
1019
+ for (let n = t; n < l; n += 3) {
1020
+ let t = e[n] << 16 | e[n + 1] << 8 | e[n + 2];
1021
+ u.push(a[t >> 18 & 63], a[t >> 12 & 63], a[t >> 6 & 63], a[t & 63]);
1022
+ }
1023
+ if (c === 2) {
1024
+ let t = (e[n - 2] << 8) + e[n - 1];
1025
+ u.push(a[t >> 10], a[t >> 4 & 63], a[t << 2 & 63]), r === 1 && u.push(o);
1026
+ } else if (c === 1) {
1027
+ let t = e[n - 1];
1028
+ u.push(a[t >> 2], a[t << 4 & 63]), r === 1 && u.push(o, o);
1029
+ }
1030
+ return s.decode.bytes = i, String.fromCharCode.apply(String, u);
1031
+ }
1032
+ };
1033
+ return s;
1034
+ }
1035
+ Oe("base64", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", "=", 1);
1036
+ var ke = Oe("base64-url", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", "=", 2), Ae = /* @__PURE__ */ e(((e, t) => {
1037
+ t.exports = {};
1038
+ })), je = typeof global < "u" ? global.AbortError : typeof window < "u" ? window.AbortError : null;
1039
+ je ||= class extends Error {
1040
+ constructor(e = "Request aborted.") {
1041
+ super(e);
1042
+ }
1043
+ }, je.prototype.name = "AbortError", je.prototype.code = "ABORT_ERR";
1044
+ var Me = typeof globalThis < "u" && globalThis.URL || Ae().URL, $ = class extends Error {
1045
+ constructor(e, t, n) {
1046
+ super("status=" + t + " while requesting " + e + " [" + n + "]"), this.uri = e, this.status = t, this.method = n;
1047
+ }
1048
+ toJSON() {
1049
+ return {
1050
+ code: this.code,
1051
+ uri: this.uri,
1052
+ status: this.status,
1053
+ method: this.method,
1054
+ endpoint: this.endpoint
1055
+ };
1056
+ }
1057
+ };
1058
+ $.prototype.name = "HTTPStatusError", $.prototype.code = "HTTP_STATUS";
1059
+ var Ne = class extends Error {
1060
+ constructor(e, t) {
1061
+ super(e), this.cause = t;
1062
+ }
1063
+ toJSON() {
1064
+ return {
1065
+ message: this.message,
1066
+ endpoint: this.endpoint,
1067
+ code: this.code,
1068
+ cause: Le(this.cause)
1069
+ };
1070
+ }
1071
+ };
1072
+ Ne.prototype.name = "ResponseError", Ne.prototype.code = "RESPONSE_ERR";
1073
+ var Pe = class extends Error {
1074
+ constructor(e) {
1075
+ super("Timeout (t=" + e + ")."), this.timeout = e;
1076
+ }
1077
+ toJSON() {
1078
+ return {
1079
+ code: this.code,
1080
+ endpoint: this.endpoint,
1081
+ timeout: this.timeout
1082
+ };
1083
+ }
1084
+ };
1085
+ Pe.prototype.name = "TimeoutError", Pe.prototype.code = "ETIMEOUT";
1086
+ var Fe = /^((\d{1,3}\.){3,3}\d{1,3})(:(\d{2,5}))?$/, Ie = /^((::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?)(:(\d{2,5}))?$/i;
1087
+ function Le(e) {
1088
+ if (typeof e == "string") return { message: e };
1089
+ try {
1090
+ let t = JSON.stringify(e);
1091
+ if (t !== "{}") return JSON.parse(t);
1092
+ } catch {}
1093
+ let t = { message: String(e.message || e) };
1094
+ return e.code !== void 0 && (t.code = String(e.code)), t;
1095
+ }
1096
+ var Re = /^(([a-z0-9]+:)\/\/)?([^/[\s:]+|\[[^\]]+\])?(:([^/\s]+))?(\/[^\s]*)?(.*)$/, ze = /\[(post|get|((ipv4|ipv6|name)=([^\]]+)))\]/gi, Be = /\[(((pk|name)=([^\]]+)))\]/gi;
1097
+ function Ve(e) {
1098
+ let t = Re.exec(e), n = t[2] || "https:", r = t[3], i = t[5], a = t[6], o = t[7];
1099
+ if (n === "https:" || n === "http:") {
1100
+ let e = He(o, ze);
1101
+ return {
1102
+ name: e.name,
1103
+ protocol: n,
1104
+ ipv4: e.ipv4,
1105
+ ipv6: e.ipv6,
1106
+ host: r,
1107
+ port: i,
1108
+ path: a,
1109
+ method: e.post ? "POST" : "GET"
1110
+ };
1111
+ }
1112
+ if (n === "udp:" || n === "udp4:" || n === "udp6:") {
1113
+ let t = He(o, Be), a = /^\[(.*)\]$/.exec(r);
1114
+ if (a && n === "udp4:") throw Error(`Endpoint parsing error: Cannot use ipv6 host with udp4: (endpoint=${e})`);
1115
+ if (!a && n === "udp6:") throw Error(`Endpoint parsing error: Incorrectly formatted host for udp6: (endpoint=${e})`);
1116
+ return a ? new Je({
1117
+ protocol: "udp6:",
1118
+ ipv6: a[1],
1119
+ port: i,
1120
+ pk: t.pk,
1121
+ name: t.name
1122
+ }) : new qe({
1123
+ protocol: "udp4:",
1124
+ ipv4: r,
1125
+ port: i,
1126
+ pk: t.pk,
1127
+ name: t.name
1128
+ });
1129
+ }
1130
+ throw new Ue(n, e);
1131
+ }
1132
+ function He(e, t) {
1133
+ t.lastIndex = 0;
1134
+ let n = {};
1135
+ for (;;) {
1136
+ let r = t.exec(e);
1137
+ if (!r) break;
1138
+ r[2] ? n[r[3].toLowerCase()] = r[4] : n[r[1].toLowerCase()] = !0;
1139
+ }
1140
+ return n;
1141
+ }
1142
+ var Ue = class extends Error {
1143
+ constructor(e, t) {
1144
+ super(`Invalid Endpoint: unsupported protocol "${e}" for endpoint: ${t}, supported protocols: ${We.join(", ")}`), this.protocol = e, this.endpoint = t;
1145
+ }
1146
+ toJSON() {
1147
+ return {
1148
+ code: this.code,
1149
+ endpoint: this.endpoint,
1150
+ timeout: this.timeout
1151
+ };
1152
+ }
1153
+ };
1154
+ Ue.prototype.name = "InvalidProtocolError", Ue.prototype.code = "EPROTOCOL";
1155
+ var We = [
1156
+ "http:",
1157
+ "https:",
1158
+ "udp4:",
1159
+ "udp6:"
1160
+ ], Ge = class {
1161
+ constructor(e, t) {
1162
+ this.name = e.name || null, this.protocol = e.protocol;
1163
+ let n = typeof e.port == "string" ? e.port = parseInt(e.port, 10) : e.port;
1164
+ if (n == null) this.port = t ? this.protocol === "https:" ? 443 : 80 : e.pk ? 443 : 53;
1165
+ else if (typeof n != "number" && !isNaN(n)) throw Error(`Invalid Endpoint: port "${e.port}" needs to be a number: ${JSON.stringify(e)}`);
1166
+ else this.port = n;
1167
+ }
1168
+ toJSON() {
1169
+ return this.toString();
1170
+ }
1171
+ }, Ke = class extends Ge {
1172
+ constructor(e) {
1173
+ super(e, !1), this.pk = e.pk || null;
1174
+ }
1175
+ toString() {
1176
+ let e = this.port === (this.pk ? 443 : 53) ? "" : `:${this.port}`, t = this.pk ? ` [pk=${this.pk}]` : "", n = this.name ? ` [name=${this.name}]` : "";
1177
+ return `udp://${this.ipv4 || `[${this.ipv6}]`}${e}${t}${n}`;
1178
+ }
1179
+ }, qe = class extends Ke {
1180
+ constructor(e) {
1181
+ if (super(Object.assign({ protocol: "udp4:" }, e)), !e.ipv4 || typeof e.ipv4 != "string") throw Error(`Invalid Endpoint: .ipv4 "${e.ipv4}" needs to be set: ${JSON.stringify(e)}`);
1182
+ this.ipv4 = e.ipv4;
1183
+ }
1184
+ }, Je = class extends Ke {
1185
+ constructor(e) {
1186
+ if (super(Object.assign({ protocol: "udp6:" }, e)), !e.ipv6 || typeof e.ipv6 != "string") throw Error(`Invalid Endpoint: .ipv6 "${e.ipv6}" needs to be set: ${JSON.stringify(e)}`);
1187
+ this.ipv6 = e.ipv6;
1188
+ }
1189
+ };
1190
+ function Ye(e) {
1191
+ return Ie.test(e) && !Fe.test(e) ? `[${e}]` : e;
1192
+ }
1193
+ var Xe = class extends Ge {
1194
+ constructor(e) {
1195
+ if (super(Object.assign({ protocol: "https:" }, e), !0), e.host || (e.ipv4 && (e.host = e.ipv4), e.ipv6 && (e.host = `[${e.ipv6}]`)), !e.host || typeof e.host != "string") throw Error(`Invalid Endpoint: host "${e.path}" needs to be set: ${JSON.stringify(e)}`);
1196
+ if (this.host = e.host, this.path = e.path || "/dns-query", this.method = /^post$/i.test(e.method) ? "POST" : "GET", this.ipv4 = e.ipv4, this.ipv6 = e.ipv6, !this.ipv6) {
1197
+ let e = Ie.exec(this.host);
1198
+ e && (this.ipv6 = e[1]);
1199
+ }
1200
+ this.ipv4 || Fe.test(this.host) && (this.ipv4 = this.host);
1201
+ let t = `${this.protocol}//${Ye(this.host)}:${this.port}${this.path}`;
1202
+ try {
1203
+ this.url = new Me(t);
1204
+ } catch (e) {
1205
+ throw Error(e.message + ` [${t}]`);
1206
+ }
1207
+ }
1208
+ toString() {
1209
+ let e = this.protocol === "https:" ? "" : "http://", t = this.port === (this.protocol === "https:" ? 443 : 80) ? "" : `:${this.port}`, n = this.method === "GET" ? "" : " [post]", r = this.path === "/dns-query" ? "" : this.path, i = this.name ? ` [name=${this.name}]` : "", a = this.ipv4 && this.ipv4 !== this.host ? ` [ipv4=${this.ipv4}]` : "", o = this.ipv6 && this.ipv6 !== this.host ? ` [ipv6=${this.ipv6}]` : "";
1210
+ return `${e}${Ye(this.host)}${t}${r}${n}${a}${o}${i}`;
1211
+ }
1212
+ };
1213
+ function Ze(e) {
1214
+ let t;
1215
+ if (typeof e == "string") t = Ve(e);
1216
+ else {
1217
+ if (typeof e != "object" || !e || Array.isArray(e)) throw Error(`Can not convert ${e} to an endpoint`);
1218
+ if (e instanceof Ge) return e;
1219
+ t = e;
1220
+ }
1221
+ (t.protocol === null || t.protocol === void 0) && (t.protocol = "https:");
1222
+ let n = t.protocol;
1223
+ if (n === "udp4:") return new qe(t);
1224
+ if (n === "udp6:") return new Je(t);
1225
+ if (n === "https:" || n === "http:") return new Xe(t);
1226
+ throw new Ue(n, JSON.stringify(t));
1227
+ }
1228
+ //#endregion
1229
+ //#region node_modules/dns-query/lib.browser.mjs
1230
+ var Qe = "application/dns-message";
1231
+ function $e() {}
1232
+ async function et(e, t, n, r) {
1233
+ let i = t ? t.localStoragePrefix + t.name : null;
1234
+ if (i) try {
1235
+ let e = JSON.parse(localStorage.getItem(i));
1236
+ if (e && e.time > t.maxTime) return e;
1237
+ } catch {}
1238
+ let { data: a } = await tt(e, "GET", null, n, r), o = {
1239
+ time: Date.now(),
1240
+ data: JSON.parse(_(a))
1241
+ };
1242
+ if (i) try {
1243
+ localStorage.setItem(i, JSON.stringify(o));
1244
+ } catch {
1245
+ o.time = null;
1246
+ }
1247
+ return o;
1248
+ }
1249
+ function tt(e, t, n, r, i) {
1250
+ return new Promise((a, o) => {
1251
+ let s = new Me(e);
1252
+ t === "GET" && n && (s.search = "?dns=" + ke.decode(n));
1253
+ let c = s.toString(), l = new XMLHttpRequest();
1254
+ l.open(t, c, !0), l.setRequestHeader("Accept", Qe), t === "POST" && l.setRequestHeader("Content-Type", Qe), l.responseType = "arraybuffer", l.timeout = r, l.ontimeout = u, l.onreadystatechange = f, l.onerror = ee, l.onload = d, t === "POST" ? l.send(n) : l.send(), i && i.addEventListener("abort", m);
1255
+ function u() {
1256
+ p(new Pe(r));
1257
+ try {
1258
+ l.abort();
1259
+ } catch {}
1260
+ }
1261
+ function d() {
1262
+ if (l.status !== 200) p(new $(c, l.status, t));
1263
+ else {
1264
+ let e;
1265
+ if (typeof l.response == "string") e = g(l.response);
1266
+ else if (l.response instanceof Uint8Array) e = l.response;
1267
+ else if (Array.isArray(l.response) || l.response instanceof ArrayBuffer) e = new Uint8Array(l.response);
1268
+ else throw Error("Unprocessable response " + l.response);
1269
+ p(null, e);
1270
+ }
1271
+ }
1272
+ function f() {
1273
+ if (l.readyState > 1 && l.status !== 200 && l.status !== 0) {
1274
+ p(new $(c, l.status, t));
1275
+ try {
1276
+ l.abort();
1277
+ } catch {}
1278
+ }
1279
+ }
1280
+ let p = function(e, t) {
1281
+ p = $e, i && i.removeEventListener("abort", m), a(e ? {
1282
+ error: e,
1283
+ response: l
1284
+ } : {
1285
+ data: t,
1286
+ response: l
1287
+ });
1288
+ };
1289
+ function ee() {
1290
+ p(l.status === 200 ? /* @__PURE__ */ Error("Inexplicable XHR Error") : new $(c, l.status, t));
1291
+ }
1292
+ function m() {
1293
+ p(new je());
1294
+ try {
1295
+ l.abort();
1296
+ } catch {}
1297
+ }
1298
+ });
1299
+ }
1300
+ function nt(e) {
1301
+ return e.filter((e) => e.cors || e.endpoint.cors);
1302
+ }
1303
+ //#endregion
1304
+ //#region node_modules/dns-query/resolvers.mjs
1305
+ var rt = {
1306
+ data: [
1307
+ {
1308
+ name: "adfree.usableprivacy.net",
1309
+ endpoint: {
1310
+ protocol: "https:",
1311
+ host: "adfree.usableprivacy.net"
1312
+ },
1313
+ description: "Public updns DoH service with advertising, tracker and malware filters.\nHosted in Europe by @usableprivacy, details see: https://docs.usableprivacy.com",
1314
+ country: "Germany",
1315
+ location: {
1316
+ lat: 51.2993,
1317
+ long: 9.491
1318
+ },
1319
+ filter: !0
1320
+ },
1321
+ {
1322
+ name: "adguard-dns-doh",
1323
+ endpoint: {
1324
+ protocol: "https:",
1325
+ host: "dns.adguard.com",
1326
+ ipv4: "94.140.15.15"
1327
+ },
1328
+ description: "Remove ads and protect your computer from malware (over DoH)",
1329
+ country: "France",
1330
+ location: {
1331
+ lat: 48.8582,
1332
+ long: 2.3387
1333
+ },
1334
+ filter: !0
1335
+ },
1336
+ {
1337
+ name: "adguard-dns-family-doh",
1338
+ endpoint: {
1339
+ protocol: "https:",
1340
+ host: "dns-family.adguard.com",
1341
+ ipv4: "94.140.15.16"
1342
+ },
1343
+ description: "Adguard DNS with safesearch and adult content blocking (over DoH)",
1344
+ country: "France",
1345
+ location: {
1346
+ lat: 48.8582,
1347
+ long: 2.3387
1348
+ },
1349
+ filter: !0
1350
+ },
1351
+ {
1352
+ name: "adguard-dns-unfiltered-doh",
1353
+ endpoint: {
1354
+ protocol: "https:",
1355
+ host: "dns-unfiltered.adguard.com",
1356
+ ipv4: "94.140.14.140"
1357
+ },
1358
+ description: "AdGuard public DNS servers without filters (over DoH)",
1359
+ country: "France",
1360
+ location: {
1361
+ lat: 48.8582,
1362
+ long: 2.3387
1363
+ }
1364
+ },
1365
+ {
1366
+ name: "ahadns-doh-chi",
1367
+ endpoint: {
1368
+ protocol: "https:",
1369
+ host: "doh.chi.ahadns.net",
1370
+ cors: !0
1371
+ },
1372
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in Chicago, USA. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=chi",
1373
+ country: "United States",
1374
+ location: {
1375
+ lat: 41.8483,
1376
+ long: -87.6517
1377
+ },
1378
+ filter: !0,
1379
+ cors: !0
1380
+ },
1381
+ {
1382
+ name: "ahadns-doh-in",
1383
+ endpoint: {
1384
+ protocol: "https:",
1385
+ host: "doh.in.ahadns.net",
1386
+ cors: !0
1387
+ },
1388
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in Mumbai, India. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=in",
1389
+ country: "India",
1390
+ location: {
1391
+ lat: 19.0748,
1392
+ long: 72.8856
1393
+ },
1394
+ filter: !0,
1395
+ cors: !0
1396
+ },
1397
+ {
1398
+ name: "ahadns-doh-la",
1399
+ endpoint: {
1400
+ protocol: "https:",
1401
+ host: "doh.la.ahadns.net",
1402
+ cors: !0
1403
+ },
1404
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in Los Angeles, USA. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=la",
1405
+ country: "United States",
1406
+ location: {
1407
+ lat: 34.0549,
1408
+ long: -118.2578
1409
+ },
1410
+ filter: !0,
1411
+ cors: !0
1412
+ },
1413
+ {
1414
+ name: "ahadns-doh-nl",
1415
+ endpoint: {
1416
+ protocol: "https:",
1417
+ host: "doh.nl.ahadns.net",
1418
+ cors: !0
1419
+ },
1420
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in Amsterdam, Netherlands. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=nl",
1421
+ country: "Netherlands",
1422
+ location: {
1423
+ lat: 52.3824,
1424
+ long: 4.8995
1425
+ },
1426
+ filter: !0,
1427
+ cors: !0
1428
+ },
1429
+ {
1430
+ name: "ahadns-doh-ny",
1431
+ endpoint: {
1432
+ protocol: "https:",
1433
+ host: "doh.ny.ahadns.net",
1434
+ cors: !0
1435
+ },
1436
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in New York. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=ny",
1437
+ country: "United States",
1438
+ location: {
1439
+ lat: 40.7308,
1440
+ long: -73.9975
1441
+ },
1442
+ filter: !0,
1443
+ cors: !0
1444
+ },
1445
+ {
1446
+ name: "ahadns-doh-pl",
1447
+ endpoint: {
1448
+ protocol: "https:",
1449
+ host: "doh.pl.ahadns.net",
1450
+ cors: !0
1451
+ },
1452
+ description: "A zero logging DNS with support for DNS-over-HTTPS (DoH) & DNS-over-TLS (DoT). Blocks ads, malware, trackers, viruses, ransomware, telemetry and more. No persistent logs. DNSSEC. Hosted in Poland. By https://ahadns.com/\nServer statistics can be seen at: https://statistics.ahadns.com/?server=pl",
1453
+ country: "Netherlands",
1454
+ location: {
1455
+ lat: 52.3824,
1456
+ long: 4.8995
1457
+ },
1458
+ filter: !0,
1459
+ cors: !0
1460
+ },
1461
+ {
1462
+ name: "alidns-doh",
1463
+ endpoint: {
1464
+ protocol: "https:",
1465
+ host: "dns.alidns.com",
1466
+ ipv4: "223.5.5.5",
1467
+ cors: !0
1468
+ },
1469
+ description: "A public DNS resolver that supports DoH/DoT in mainland China, provided by Alibaba-Cloud.\nWarning: GFW filtering rules are applied by that resolver.\nHomepage: https://alidns.com/",
1470
+ country: "China",
1471
+ location: {
1472
+ lat: 34.7725,
1473
+ long: 113.7266
1474
+ },
1475
+ filter: !0,
1476
+ log: !0,
1477
+ cors: !0
1478
+ },
1479
+ {
1480
+ name: "ams-ads-doh-nl",
1481
+ endpoint: {
1482
+ protocol: "https:",
1483
+ host: "dnsnl-noads.alekberg.net"
1484
+ },
1485
+ description: "Resolver in Amsterdam. DoH protocol. Non-logging. Blocks ads, malware and trackers. DNSSEC enabled.",
1486
+ country: "Romania",
1487
+ location: {
1488
+ lat: 45.9968,
1489
+ long: 24.997
1490
+ },
1491
+ filter: !0
1492
+ },
1493
+ {
1494
+ name: "ams-doh-nl",
1495
+ endpoint: {
1496
+ protocol: "https:",
1497
+ host: "dnsnl.alekberg.net"
1498
+ },
1499
+ description: "Resolver in Amsterdam. DoH protocol. Non-logging, non-filtering, DNSSEC.",
1500
+ country: "Romania",
1501
+ location: {
1502
+ lat: 45.9968,
1503
+ long: 24.997
1504
+ }
1505
+ },
1506
+ {
1507
+ name: "att",
1508
+ endpoint: {
1509
+ protocol: "https:",
1510
+ host: "dohtrial.att.net"
1511
+ },
1512
+ description: "AT&T test DoH server.",
1513
+ log: !0
1514
+ },
1515
+ {
1516
+ name: "bcn-ads-doh",
1517
+ endpoint: {
1518
+ protocol: "https:",
1519
+ host: "dnses-noads.alekberg.net"
1520
+ },
1521
+ description: "Resolver in Spain. DoH protocol. Non-logging, remove ads and malware, DNSSEC.",
1522
+ country: "Spain",
1523
+ location: {
1524
+ lat: 41.3891,
1525
+ long: 2.1611
1526
+ },
1527
+ filter: !0
1528
+ },
1529
+ {
1530
+ name: "bcn-doh",
1531
+ endpoint: {
1532
+ protocol: "https:",
1533
+ host: "dnses.alekberg.net"
1534
+ },
1535
+ description: "Resolver in Spain. DoH protocol. Non-logging, non-filtering, DNSSEC.",
1536
+ country: "Spain",
1537
+ location: {
1538
+ lat: 41.3891,
1539
+ long: 2.1611
1540
+ }
1541
+ },
1542
+ {
1543
+ name: "brahma-world",
1544
+ endpoint: {
1545
+ protocol: "https:",
1546
+ host: "dns.brahma.world"
1547
+ },
1548
+ description: "DNS-over-HTTPS server. Non Logging, filters ads, trackers and malware. DNSSEC ready, QNAME Minimization, No EDNS Client-Subnet.\nHosted in Stockholm, Sweden. (https://dns.brahma.world)",
1549
+ country: "United States",
1550
+ location: {
1551
+ lat: 37.751,
1552
+ long: -97.822
1553
+ },
1554
+ filter: !0
1555
+ },
1556
+ {
1557
+ name: "cisco-doh",
1558
+ endpoint: {
1559
+ protocol: "https:",
1560
+ host: "doh.opendns.com",
1561
+ ipv4: "146.112.41.2"
1562
+ },
1563
+ description: "Remove your DNS blind spot (DoH protocol)\nWarning: modifies your queries to include a copy of your network\naddress when forwarding them to a selection of companies and organizations.",
1564
+ country: "United States",
1565
+ location: {
1566
+ lat: 37.751,
1567
+ long: -97.822
1568
+ },
1569
+ filter: !0,
1570
+ log: !0
1571
+ },
1572
+ {
1573
+ name: "cloudflare",
1574
+ endpoint: {
1575
+ protocol: "https:",
1576
+ host: "dns.cloudflare.com",
1577
+ ipv4: "1.0.0.1",
1578
+ cors: !0
1579
+ },
1580
+ description: "Cloudflare DNS (anycast) - aka 1.1.1.1 / 1.0.0.1",
1581
+ country: "Australia",
1582
+ location: {
1583
+ lat: -33.494,
1584
+ long: 143.2104
1585
+ },
1586
+ cors: !0
1587
+ },
1588
+ {
1589
+ name: "cloudflare-family",
1590
+ endpoint: {
1591
+ protocol: "https:",
1592
+ host: "family.cloudflare-dns.com",
1593
+ ipv4: "1.0.0.3",
1594
+ cors: !0
1595
+ },
1596
+ description: "Cloudflare DNS (anycast) with malware protection and parental control - aka 1.1.1.3 / 1.0.0.3",
1597
+ country: "Australia",
1598
+ location: {
1599
+ lat: -33.494,
1600
+ long: 143.2104
1601
+ },
1602
+ filter: !0,
1603
+ cors: !0
1604
+ },
1605
+ {
1606
+ name: "cloudflare-ipv6",
1607
+ endpoint: {
1608
+ protocol: "https:",
1609
+ host: "1dot1dot1dot1.cloudflare-dns.com",
1610
+ cors: !0
1611
+ },
1612
+ description: "Cloudflare DNS over IPv6 (anycast)",
1613
+ country: "United States",
1614
+ location: {
1615
+ lat: 37.751,
1616
+ long: -97.822
1617
+ },
1618
+ cors: !0
1619
+ },
1620
+ {
1621
+ name: "cloudflare-security",
1622
+ endpoint: {
1623
+ protocol: "https:",
1624
+ host: "security.cloudflare-dns.com",
1625
+ ipv4: "1.0.0.2",
1626
+ cors: !0
1627
+ },
1628
+ description: "Cloudflare DNS (anycast) with malware blocking - aka 1.1.1.2 / 1.0.0.2",
1629
+ country: "Australia",
1630
+ location: {
1631
+ lat: -33.494,
1632
+ long: 143.2104
1633
+ },
1634
+ filter: !0,
1635
+ cors: !0
1636
+ },
1637
+ {
1638
+ name: "controld-block-malware",
1639
+ endpoint: {
1640
+ protocol: "https:",
1641
+ host: "freedns.controld.com",
1642
+ path: "/p1"
1643
+ },
1644
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis DNS blocks Malware domains.",
1645
+ country: "Canada",
1646
+ location: {
1647
+ lat: 43.6319,
1648
+ long: -79.3716
1649
+ },
1650
+ filter: !0
1651
+ },
1652
+ {
1653
+ name: "controld-block-malware-ad",
1654
+ endpoint: {
1655
+ protocol: "https:",
1656
+ host: "freedns.controld.com",
1657
+ path: "/p2"
1658
+ },
1659
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis DNS blocks Malware, Ads & Tracking domains.",
1660
+ country: "Canada",
1661
+ location: {
1662
+ lat: 43.6319,
1663
+ long: -79.3716
1664
+ },
1665
+ filter: !0
1666
+ },
1667
+ {
1668
+ name: "controld-block-malware-ad-social",
1669
+ endpoint: {
1670
+ protocol: "https:",
1671
+ host: "freedns.controld.com",
1672
+ path: "/p3"
1673
+ },
1674
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis DNS blocks Malware, Ads & Tracking and Social Networks domains.",
1675
+ country: "Canada",
1676
+ location: {
1677
+ lat: 43.6319,
1678
+ long: -79.3716
1679
+ },
1680
+ filter: !0
1681
+ },
1682
+ {
1683
+ name: "controld-family-friendly",
1684
+ endpoint: {
1685
+ protocol: "https:",
1686
+ host: "freedns.controld.com",
1687
+ path: "/family"
1688
+ },
1689
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis DNS blocks Malware, Ads & Tracking, Adult Content and Drugs domains.",
1690
+ country: "Canada",
1691
+ location: {
1692
+ lat: 43.6319,
1693
+ long: -79.3716
1694
+ },
1695
+ filter: !0
1696
+ },
1697
+ {
1698
+ name: "controld-uncensored",
1699
+ endpoint: {
1700
+ protocol: "https:",
1701
+ host: "freedns.controld.com",
1702
+ path: "/uncensored"
1703
+ },
1704
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis DNS unblocks censored domains from various countries.",
1705
+ country: "Canada",
1706
+ location: {
1707
+ lat: 43.6319,
1708
+ long: -79.3716
1709
+ }
1710
+ },
1711
+ {
1712
+ name: "controld-unfiltered",
1713
+ endpoint: {
1714
+ protocol: "https:",
1715
+ host: "freedns.controld.com",
1716
+ path: "/p0"
1717
+ },
1718
+ description: "ControlD Free DNS. Take CONTROL of your Internet. Block unwanted content, bypass geo-restrictions and be more productive. DoH protocol and No logging. - https://controld.com/free-dns\nThis is a Unfiltered DNS, no DNS record blocking or manipulation here, if you want to block Malware, Ads & Tracking or Social Network domains, use the other ControlD DNS configs.",
1719
+ country: "Canada",
1720
+ location: {
1721
+ lat: 43.6319,
1722
+ long: -79.3716
1723
+ }
1724
+ },
1725
+ {
1726
+ name: "dns.digitale-gesellschaft.ch",
1727
+ endpoint: {
1728
+ protocol: "https:",
1729
+ host: "dns.digitale-gesellschaft.ch"
1730
+ },
1731
+ description: "Public DoH resolver operated by the Digital Society (https://www.digitale-gesellschaft.ch).\nHosted in Zurich, Switzerland.\nNon-logging, non-filtering, supports DNSSEC.",
1732
+ country: "Switzerland",
1733
+ location: {
1734
+ lat: 47.1449,
1735
+ long: 8.1551
1736
+ }
1737
+ },
1738
+ {
1739
+ name: "dns.ryan-palmer",
1740
+ endpoint: {
1741
+ protocol: "https:",
1742
+ host: "dns1.ryan-palmer.com"
1743
+ },
1744
+ description: "Non-logging, non-filtering, DNSSEC DoH Server. Hosted in the UK.",
1745
+ country: "United Kingdom",
1746
+ location: {
1747
+ lat: 51.5164,
1748
+ long: -.093
1749
+ }
1750
+ },
1751
+ {
1752
+ name: "dns.sb",
1753
+ endpoint: {
1754
+ protocol: "https:",
1755
+ host: "doh.sb",
1756
+ ipv4: "185.222.222.222",
1757
+ cors: !0
1758
+ },
1759
+ description: "DNSSEC-enabled DoH server by https://xtom.com/\nhttps://dns.sb/doh/",
1760
+ country: "Unknown",
1761
+ location: {
1762
+ lat: 47,
1763
+ long: 8
1764
+ },
1765
+ cors: !0
1766
+ },
1767
+ {
1768
+ name: "dns.therifleman.name",
1769
+ endpoint: {
1770
+ protocol: "https:",
1771
+ host: "dns.therifleman.name"
1772
+ },
1773
+ description: "DNS-over-HTTPS DNS forwarder from Mumbai, India. Blocks web and Android trackers and ads.\nIP addresses are not logged, but queries are logged for 24 hours for debugging.\nReport issues, send suggestions @ joker349 at protonmail.com.\nAlso supports DoT (for android) @ dns.therifleman.name and plain DNS @ 172.104.206.174",
1774
+ country: "United States",
1775
+ location: {
1776
+ lat: 37.751,
1777
+ long: -97.822
1778
+ },
1779
+ filter: !0
1780
+ },
1781
+ {
1782
+ name: "dnsforfamily-doh",
1783
+ endpoint: {
1784
+ protocol: "https:",
1785
+ host: "dns-doh.dnsforfamily.com"
1786
+ },
1787
+ description: "(DoH Protocol) (Now supports DNSSEC). Block adult websites, gambling websites, malwares and advertisements.\nIt also enforces safe search in: Google, YouTube, Bing, DuckDuckGo and Yandex.\nSocial websites like Facebook and Instagram are not blocked. No DNS queries are logged.\nAs of 26-May-2022 5.9 million websites are blocked and new websites are added to blacklist daily.\nCompletely free, no ads or any commercial motive. Operating for 4 years now.\nProvided by: https://dnsforfamily.com",
1788
+ country: "Finland",
1789
+ location: {
1790
+ lat: 60.1758,
1791
+ long: 24.9349
1792
+ },
1793
+ filter: !0
1794
+ },
1795
+ {
1796
+ name: "dnsforfamily-doh-no-safe-search",
1797
+ endpoint: {
1798
+ protocol: "https:",
1799
+ host: "dns-doh-no-safe-search.dnsforfamily.com"
1800
+ },
1801
+ description: "(DoH Protocol) (Now supports DNSSEC) Block adult websites, gambling websites, malwares and advertisements.\nUnlike other dnsforfamily servers, this one does not enforces safe search. So Google, YouTube, Bing, DuckDuckGo and Yandex are completely accessible without any restriction.\nSocial websites like Facebook and Instagram are not blocked. No DNS queries are logged.\nAs of 26-May-2022 5.9 million websites are blocked and new websites are added to blacklist daily.\nCompletely free, no ads or any commercial motive. Operating for 4 years now.\nWarning: This server is incompatible with anonymization.\nProvided by: https://dnsforfamily.com",
1802
+ country: "Finland",
1803
+ location: {
1804
+ lat: 60.1758,
1805
+ long: 24.9349
1806
+ },
1807
+ filter: !0
1808
+ },
1809
+ {
1810
+ name: "dnsforge.de",
1811
+ endpoint: {
1812
+ protocol: "https:",
1813
+ host: "dnsforge.de",
1814
+ cors: !0
1815
+ },
1816
+ description: "Public DoH resolver running with Pihole for Adblocking (https://dnsforge.de).\nNon-logging, AD-filtering, supports DNSSEC. Hosted in Germany.",
1817
+ country: "Germany",
1818
+ location: {
1819
+ lat: 52.2998,
1820
+ long: 9.447
1821
+ },
1822
+ filter: !0,
1823
+ cors: !0
1824
+ },
1825
+ {
1826
+ name: "dnshome-doh",
1827
+ endpoint: {
1828
+ protocol: "https:",
1829
+ host: "dns.dnshome.de"
1830
+ },
1831
+ description: "https://www.dnshome.de/ public resolver in Germany"
1832
+ },
1833
+ {
1834
+ name: "dnspod-doh",
1835
+ endpoint: {
1836
+ protocol: "https:",
1837
+ host: "doh.pub",
1838
+ cors: !0
1839
+ },
1840
+ description: "A public DNS resolver in mainland China provided by DNSPod (Tencent Cloud).\nhttps://www.dnspod.cn/Products/Public.DNS?lang=en",
1841
+ filter: !0,
1842
+ log: !0,
1843
+ cors: !0
1844
+ },
1845
+ {
1846
+ name: "dnswarden-asia-adblock-dohv4",
1847
+ endpoint: {
1848
+ protocol: "https:",
1849
+ host: "doh.asia.dnswarden.com",
1850
+ path: "/adblock"
1851
+ },
1852
+ description: "Hosted in Singapore. For more information look [here](https://github.com/bhanupratapys/dnswarden) or [here](https://dnswarden.com).",
1853
+ country: "Singapore",
1854
+ location: {
1855
+ lat: 1.2929,
1856
+ long: 103.8547
1857
+ },
1858
+ filter: !0
1859
+ },
1860
+ {
1861
+ name: "dnswarden-asia-adultfilter-dohv4",
1862
+ endpoint: {
1863
+ protocol: "https:",
1864
+ host: "doh.asia.dnswarden.com",
1865
+ path: "/adultfilter"
1866
+ },
1867
+ description: "Hosted in Singapore. For more information look [here](https://github.com/bhanupratapys/dnswarden) or [here](https://dnswarden.com).",
1868
+ country: "Singapore",
1869
+ location: {
1870
+ lat: 1.2929,
1871
+ long: 103.8547
1872
+ },
1873
+ filter: !0
1874
+ },
1875
+ {
1876
+ name: "dnswarden-asia-uncensor-dohv4",
1877
+ endpoint: {
1878
+ protocol: "https:",
1879
+ host: "doh.asia.dnswarden.com",
1880
+ path: "/uncensored"
1881
+ },
1882
+ description: "Hosted in Singapore. For more information look [here](https://github.com/bhanupratapys/dnswarden) or [here](https://dnswarden.com).",
1883
+ country: "Singapore",
1884
+ location: {
1885
+ lat: 1.2929,
1886
+ long: 103.8547
1887
+ }
1888
+ },
1889
+ {
1890
+ name: "dnswarden-eu-adblock-dohv4",
1891
+ endpoint: {
1892
+ protocol: "https:",
1893
+ host: "doh.eu.dnswarden.com"
1894
+ },
1895
+ description: "Hosted in Germany. For more information look [here](https://github.com/bhanupratapys/dnswarden) or [here](https://dnswarden.com).",
1896
+ country: "Germany",
1897
+ location: {
1898
+ lat: 50.1103,
1899
+ long: 8.7147
1900
+ },
1901
+ filter: !0
1902
+ },
1903
+ {
1904
+ name: "dnswarden-us-adblock-dohv4",
1905
+ endpoint: {
1906
+ protocol: "https:",
1907
+ host: "doh.us.dnswarden.com"
1908
+ },
1909
+ description: "Hosted in USA (Dallas) . For more information look [here](https://github.com/bhanupratapys/dnswarden) or [here](https://dnswarden.com).",
1910
+ country: "United States",
1911
+ location: {
1912
+ lat: 32.7889,
1913
+ long: -96.8021
1914
+ },
1915
+ filter: !0
1916
+ },
1917
+ {
1918
+ name: "doh-ch-blahdns",
1919
+ endpoint: {
1920
+ protocol: "https:",
1921
+ host: "doh-ch.blahdns.com",
1922
+ cors: !0
1923
+ },
1924
+ description: "Blocks ad and Tracking, no Logging, DNSSEC, Hosted in Switzerland. By https://blahdns.com/",
1925
+ country: "Netherlands",
1926
+ location: {
1927
+ lat: 52.3824,
1928
+ long: 4.8995
1929
+ },
1930
+ filter: !0,
1931
+ cors: !0
1932
+ },
1933
+ {
1934
+ name: "doh-cleanbrowsing-adult",
1935
+ endpoint: {
1936
+ protocol: "https:",
1937
+ host: "doh.cleanbrowsing.org",
1938
+ path: "/doh/adult-filter/",
1939
+ cors: !0
1940
+ },
1941
+ description: "Blocks access to all adult, pornographic and explicit sites. It does\nnot block proxy or VPNs, nor mixed-content sites. Sites like Reddit\nare allowed. Google and Bing are set to the Safe Mode.\nBy https://cleanbrowsing.org/",
1942
+ filter: !0,
1943
+ cors: !0
1944
+ },
1945
+ {
1946
+ name: "doh-cleanbrowsing-family",
1947
+ endpoint: {
1948
+ protocol: "https:",
1949
+ host: "doh.cleanbrowsing.org",
1950
+ path: "/doh/family-filter/",
1951
+ cors: !0
1952
+ },
1953
+ description: "Blocks access to all adult, pornographic and explicit sites. It also\nblocks proxy and VPN domains that are used to bypass the filters.\nMixed content sites (like Reddit) are also blocked. Google, Bing and\nYoutube are set to the Safe Mode.\nBy https://cleanbrowsing.org/",
1954
+ filter: !0,
1955
+ cors: !0
1956
+ },
1957
+ {
1958
+ name: "doh-cleanbrowsing-security",
1959
+ endpoint: {
1960
+ protocol: "https:",
1961
+ host: "doh.cleanbrowsing.org",
1962
+ path: "/doh/security-filter/",
1963
+ cors: !0
1964
+ },
1965
+ description: "Block access to phishing, malware and malicious domains. It does not block adult content.\nBy https://cleanbrowsing.org/",
1966
+ filter: !0,
1967
+ cors: !0
1968
+ },
1969
+ {
1970
+ name: "doh-crypto-sx",
1971
+ endpoint: {
1972
+ protocol: "https:",
1973
+ host: "doh.crypto.sx",
1974
+ cors: !0
1975
+ },
1976
+ description: "DNS-over-HTTPS server. Anycast, no logs, no censorship, DNSSEC.\nBackend hosted by Scaleway, globally cached via Cloudflare.\nMaintained by Frank Denis.",
1977
+ country: "United States",
1978
+ location: {
1979
+ lat: 37.751,
1980
+ long: -97.822
1981
+ },
1982
+ cors: !0
1983
+ },
1984
+ {
1985
+ name: "doh-crypto-sx-ipv6",
1986
+ endpoint: {
1987
+ protocol: "https:",
1988
+ host: "doh-ipv6.crypto.sx",
1989
+ cors: !0
1990
+ },
1991
+ description: "DNS-over-HTTPS server accessible over IPv6. Anycast, no logs, no censorship, DNSSEC.\nBackend hosted by Scaleway, globally cached via Cloudflare.\nMaintained by Frank Denis.",
1992
+ country: "United States",
1993
+ location: {
1994
+ lat: 37.751,
1995
+ long: -97.822
1996
+ },
1997
+ cors: !0
1998
+ },
1999
+ {
2000
+ name: "doh-de-blahdns",
2001
+ endpoint: {
2002
+ protocol: "https:",
2003
+ host: "doh-de.blahdns.com",
2004
+ cors: !0
2005
+ },
2006
+ description: "Blocks ad and Tracking, no Logging, DNSSEC, Hosted in Germany. By https://blahdns.com/",
2007
+ country: "Germany",
2008
+ location: {
2009
+ lat: 51.2993,
2010
+ long: 9.491
2011
+ },
2012
+ filter: !0,
2013
+ cors: !0
2014
+ },
2015
+ {
2016
+ name: "doh-fi-blahdns",
2017
+ endpoint: {
2018
+ protocol: "https:",
2019
+ host: "doh-fi.blahdns.com",
2020
+ cors: !0
2021
+ },
2022
+ description: "Blocks ad and Tracking, no Logging, DNSSEC, Hosted in Finland. By https://blahdns.com/",
2023
+ country: "Finland",
2024
+ location: {
2025
+ lat: 60.1758,
2026
+ long: 24.9349
2027
+ },
2028
+ filter: !0,
2029
+ cors: !0
2030
+ },
2031
+ {
2032
+ name: "doh-ibksturm",
2033
+ endpoint: {
2034
+ protocol: "https:",
2035
+ host: "ibksturm.synology.me"
2036
+ },
2037
+ description: "DoH & DoT Server, No Logging, No Filters, DNSSEC\nRunning privately by ibksturm in Thurgau, Switzerland"
2038
+ },
2039
+ {
2040
+ name: "doh-jp-blahdns",
2041
+ endpoint: {
2042
+ protocol: "https:",
2043
+ host: "doh-jp.blahdns.com",
2044
+ cors: !0
2045
+ },
2046
+ description: "Blocks ad and Tracking, no Logging, DNSSEC, Hosted in Japan. By https://blahdns.com/",
2047
+ country: "Japan",
2048
+ location: {
2049
+ lat: 35.6882,
2050
+ long: 139.7532
2051
+ },
2052
+ filter: !0,
2053
+ cors: !0
2054
+ },
2055
+ {
2056
+ name: "doh.ffmuc.net",
2057
+ endpoint: {
2058
+ protocol: "https:",
2059
+ host: "doh.ffmuc.net"
2060
+ },
2061
+ description: "An open (non-logging, non-filtering, non-censoring) DoH resolver operated by Freifunk Munich with nodes in DE.\nhttps://ffmuc.net/",
2062
+ country: "Germany",
2063
+ location: {
2064
+ lat: 51.2993,
2065
+ long: 9.491
2066
+ }
2067
+ },
2068
+ {
2069
+ name: "doh.tiarap.org",
2070
+ endpoint: {
2071
+ protocol: "https:",
2072
+ host: "doh.tiarap.org"
2073
+ },
2074
+ description: "Non-Logging DNS-over-HTTPS server, cached via Cloudflare.\nFilters out ads, trackers and malware, NO ECS, supports DNSSEC.",
2075
+ country: "United States",
2076
+ location: {
2077
+ lat: 37.751,
2078
+ long: -97.822
2079
+ },
2080
+ filter: !0
2081
+ },
2082
+ {
2083
+ name: "google",
2084
+ endpoint: {
2085
+ protocol: "https:",
2086
+ host: "dns.google",
2087
+ ipv4: "8.8.8.8",
2088
+ cors: !0
2089
+ },
2090
+ description: "Google DNS (anycast)",
2091
+ country: "United States",
2092
+ location: {
2093
+ lat: 37.751,
2094
+ long: -97.822
2095
+ },
2096
+ log: !0,
2097
+ cors: !0
2098
+ },
2099
+ {
2100
+ name: "hdns",
2101
+ endpoint: {
2102
+ protocol: "https:",
2103
+ host: "query.hdns.io",
2104
+ cors: !0
2105
+ },
2106
+ description: "HDNS is a public DNS resolver that supports Handshake domains.\nhttps://www.hdns.io",
2107
+ country: "United States",
2108
+ location: {
2109
+ lat: 37.7771,
2110
+ long: -122.406
2111
+ },
2112
+ cors: !0
2113
+ },
2114
+ {
2115
+ name: "he",
2116
+ endpoint: {
2117
+ protocol: "https:",
2118
+ host: "ordns.he.net"
2119
+ },
2120
+ description: "Hurricane Electric DoH server (anycast)\nUnknown logging policy.",
2121
+ country: "United States",
2122
+ location: {
2123
+ lat: 37.751,
2124
+ long: -97.822
2125
+ },
2126
+ log: !0
2127
+ },
2128
+ {
2129
+ name: "id-gmail-doh",
2130
+ endpoint: {
2131
+ protocol: "https:",
2132
+ host: "doh.tiar.app"
2133
+ },
2134
+ description: "Non-Logging DNS-over-HTTPS server located in Singapore.\nFilters out ads, trackers and malware, supports DNSSEC, provided by id-gmail.",
2135
+ country: "Singapore",
2136
+ location: {
2137
+ lat: 1.2929,
2138
+ long: 103.8547
2139
+ },
2140
+ filter: !0
2141
+ },
2142
+ {
2143
+ name: "iij",
2144
+ endpoint: {
2145
+ protocol: "https:",
2146
+ host: "public.dns.iij.jp"
2147
+ },
2148
+ description: "DoH server operated by Internet Initiative Japan in Tokyo.\nhttps://www.iij.ad.jp/",
2149
+ country: "Japan",
2150
+ location: {
2151
+ lat: 35.69,
2152
+ long: 139.69
2153
+ },
2154
+ log: !0
2155
+ },
2156
+ {
2157
+ name: "iqdns-doh",
2158
+ endpoint: {
2159
+ protocol: "https:",
2160
+ host: "a.passcloud.xyz"
2161
+ },
2162
+ description: "Non-logging DoH service runned by V2EX.com user johnsonwil.\nReturns \"no such domain\" for anti-Chinese government websites. Supports DNSSEC.\nFor more information: https://www.v2ex.com/t/785666",
2163
+ filter: !0
2164
+ },
2165
+ {
2166
+ name: "jp.tiar.app-doh",
2167
+ endpoint: {
2168
+ protocol: "https:",
2169
+ host: "jp.tiar.app"
2170
+ },
2171
+ description: "Non-Logging, Non-Filtering DNS-over-HTTPS server in Japan.\nNo ECS, Support DNSSEC",
2172
+ country: "Japan",
2173
+ location: {
2174
+ lat: 35.6882,
2175
+ long: 139.7532
2176
+ }
2177
+ },
2178
+ {
2179
+ name: "jp.tiarap.org",
2180
+ endpoint: {
2181
+ protocol: "https:",
2182
+ host: "jp.tiarap.org"
2183
+ },
2184
+ description: "DNS-over-HTTPS Server. Non-Logging, Non-Filtering, No ECS, Support DNSSEC.\nCached via Cloudflare."
2185
+ },
2186
+ {
2187
+ name: "libredns",
2188
+ endpoint: {
2189
+ protocol: "https:",
2190
+ host: "doh.libredns.gr"
2191
+ },
2192
+ description: "DoH server in Germany. No logging, but no DNS padding and no DNSSEC support.\nhttps://libredns.gr/",
2193
+ country: "Germany",
2194
+ location: {
2195
+ lat: 51.2993,
2196
+ long: 9.491
2197
+ }
2198
+ },
2199
+ {
2200
+ name: "nextdns",
2201
+ endpoint: {
2202
+ protocol: "https:",
2203
+ host: "anycsast.dns.nextdns.io"
2204
+ },
2205
+ description: "NextDNS is a cloud-based private DNS service that gives you full control\nover what is allowed and what is blocked on the Internet.\nDNSSEC, Anycast, Non-logging, NoFilters\nhttps://www.nextdns.io/",
2206
+ country: "Netherlands",
2207
+ location: {
2208
+ lat: 52.3891,
2209
+ long: 4.6563
2210
+ }
2211
+ },
2212
+ {
2213
+ name: "nextdns-ultralow",
2214
+ endpoint: {
2215
+ protocol: "https:",
2216
+ host: "dns.nextdns.io",
2217
+ path: "/dnscrypt-proxy"
2218
+ },
2219
+ description: "NextDNS is a cloud-based private DNS service that gives you full control\nover what is allowed and what is blocked on the Internet.\nhttps://www.nextdns.io/\nTo select the server location, the \"-ultralow\" variant relies on bootstrap servers\ninstead of anycast."
2220
+ },
2221
+ {
2222
+ name: "njalla-doh",
2223
+ endpoint: {
2224
+ protocol: "https:",
2225
+ host: "dns.njal.la",
2226
+ cors: !0
2227
+ },
2228
+ description: "Non-logging DoH server in Sweden operated by Njalla.\nhttps://dns.njal.la/",
2229
+ country: "Sweden",
2230
+ location: {
2231
+ lat: 59.3247,
2232
+ long: 18.056
2233
+ },
2234
+ cors: !0
2235
+ },
2236
+ {
2237
+ name: "odoh-cloudflare",
2238
+ endpoint: {
2239
+ protocol: "https:",
2240
+ host: "odoh.cloudflare-dns.com",
2241
+ cors: !0
2242
+ },
2243
+ description: "Cloudflare ODoH server.\nhttps://cloudflare.com",
2244
+ cors: !0
2245
+ },
2246
+ {
2247
+ name: "odoh-crypto-sx",
2248
+ endpoint: {
2249
+ protocol: "https:",
2250
+ host: "odoh.crypto.sx",
2251
+ cors: !0
2252
+ },
2253
+ description: "ODoH target server. Anycast, no logs.\nBackend hosted by Scaleway. Maintained by Frank Denis.",
2254
+ cors: !0
2255
+ },
2256
+ {
2257
+ name: "odoh-id-gmail",
2258
+ endpoint: {
2259
+ protocol: "https:",
2260
+ host: "doh.tiar.app",
2261
+ path: "/odoh"
2262
+ },
2263
+ description: "ODoH target server. Based in Singapore, no logs.\nFilter ads, trackers and malware.",
2264
+ filter: !0
2265
+ },
2266
+ {
2267
+ name: "odoh-jp.tiar.app",
2268
+ endpoint: {
2269
+ protocol: "https:",
2270
+ host: "jp.tiar.app",
2271
+ path: "/odoh"
2272
+ },
2273
+ description: "ODoH target server. no logs."
2274
+ },
2275
+ {
2276
+ name: "odoh-jp.tiarap.org",
2277
+ endpoint: {
2278
+ protocol: "https:",
2279
+ host: "jp.tiarap.org",
2280
+ path: "/odoh"
2281
+ },
2282
+ description: "ODoH target server via Cloudflare, no logs."
2283
+ },
2284
+ {
2285
+ name: "odoh-resolver4.dns.openinternet.io",
2286
+ endpoint: {
2287
+ protocol: "https:",
2288
+ host: "resolver4.dns.openinternet.io"
2289
+ },
2290
+ description: "ODoH target server. no logs, no filter, DNSSEC.\nRunning on dedicated hardware colocated at Sonic.net in Santa Rosa, CA in the United States.\nUses Sonic's recusrive DNS servers as upstream resolvers (but is not affiliated with Sonic\nin any way). Provided by https://openinternet.io"
2291
+ },
2292
+ {
2293
+ name: "odoh-tiarap.org",
2294
+ endpoint: {
2295
+ protocol: "https:",
2296
+ host: "doh.tiarap.org",
2297
+ path: "/odoh"
2298
+ },
2299
+ description: "ODoH target server via Cloudflare, no logs.\nFilter ads, trackers and malware.",
2300
+ filter: !0
2301
+ },
2302
+ {
2303
+ name: "publicarray-au2-doh",
2304
+ endpoint: {
2305
+ protocol: "https:",
2306
+ host: "doh-2.seby.io",
2307
+ cors: !0
2308
+ },
2309
+ description: "DNSSEC • OpenNIC • Non-logging • Uncensored - hosted on ovh.com.au\nMaintained by publicarray - https://dns.seby.io",
2310
+ country: "Australia",
2311
+ location: {
2312
+ lat: -33.8591,
2313
+ long: 151.2002
2314
+ },
2315
+ cors: !0
2316
+ },
2317
+ {
2318
+ name: "puredns-doh",
2319
+ endpoint: {
2320
+ protocol: "https:",
2321
+ host: "puredns.org",
2322
+ ipv4: "146.190.6.13",
2323
+ cors: !0
2324
+ },
2325
+ description: "Public uncensored DNS resolver in Singapore - https://puredns.org\n** Only available in Indonesia and Singapore **",
2326
+ country: "United States",
2327
+ location: {
2328
+ lat: 37.751,
2329
+ long: -97.822
2330
+ },
2331
+ cors: !0
2332
+ },
2333
+ {
2334
+ name: "quad101",
2335
+ endpoint: {
2336
+ protocol: "https:",
2337
+ host: "dns.twnic.tw",
2338
+ cors: !0
2339
+ },
2340
+ description: "DNSSEC-aware public resolver by the Taiwan Network Information Center (TWNIC)\nhttps://101.101.101.101/index_en.html",
2341
+ cors: !0
2342
+ },
2343
+ {
2344
+ name: "quad9-doh-ip4-port443-filter-ecs-pri",
2345
+ endpoint: {
2346
+ protocol: "https:",
2347
+ host: "dns11.quad9.net",
2348
+ ipv4: "149.112.112.11"
2349
+ },
2350
+ description: "Quad9 (anycast) dnssec/no-log/filter/ecs 9.9.9.11 - 149.112.112.11",
2351
+ country: "United States",
2352
+ location: {
2353
+ lat: 37.751,
2354
+ long: -97.822
2355
+ },
2356
+ filter: !0
2357
+ },
2358
+ {
2359
+ name: "quad9-doh-ip4-port443-filter-pri",
2360
+ endpoint: {
2361
+ protocol: "https:",
2362
+ host: "dns.quad9.net",
2363
+ ipv4: "149.112.112.112"
2364
+ },
2365
+ description: "Quad9 (anycast) dnssec/no-log/filter 9.9.9.9 - 149.112.112.9 - 149.112.112.112",
2366
+ country: "United States",
2367
+ location: {
2368
+ lat: 37.751,
2369
+ long: -97.822
2370
+ },
2371
+ filter: !0
2372
+ },
2373
+ {
2374
+ name: "quad9-doh-ip4-port443-nofilter-ecs-pri",
2375
+ endpoint: {
2376
+ protocol: "https:",
2377
+ host: "dns12.quad9.net",
2378
+ ipv4: "9.9.9.12"
2379
+ },
2380
+ description: "Quad9 (anycast) no-dnssec/no-log/no-filter/ecs 9.9.9.12 - 149.112.112.12",
2381
+ country: "United States",
2382
+ location: {
2383
+ lat: 37.751,
2384
+ long: -97.822
2385
+ }
2386
+ },
2387
+ {
2388
+ name: "quad9-doh-ip4-port443-nofilter-pri",
2389
+ endpoint: {
2390
+ protocol: "https:",
2391
+ host: "dns10.quad9.net",
2392
+ ipv4: "149.112.112.10"
2393
+ },
2394
+ description: "Quad9 (anycast) no-dnssec/no-log/no-filter 9.9.9.10 - 149.112.112.10",
2395
+ country: "United States",
2396
+ location: {
2397
+ lat: 37.751,
2398
+ long: -97.822
2399
+ }
2400
+ },
2401
+ {
2402
+ name: "quad9-doh-ip6-port5053-filter-pri",
2403
+ endpoint: {
2404
+ protocol: "https:",
2405
+ host: "dns9.quad9.net"
2406
+ },
2407
+ description: "Quad9 (anycast) dnssec/no-log/filter 2620:fe::fe - 2620:fe::9 - 2620:fe::fe:9",
2408
+ country: "United States",
2409
+ location: {
2410
+ lat: 37.751,
2411
+ long: -97.822
2412
+ },
2413
+ filter: !0
2414
+ },
2415
+ {
2416
+ name: "safesurfer-doh",
2417
+ endpoint: {
2418
+ protocol: "https:",
2419
+ host: "doh.safesurfer.io"
2420
+ },
2421
+ description: "Family safety focused blocklist for over 2 million adult sites, as well as phishing and malware and more.\nFree to use, paid for customizing blocking for more categories+sites and viewing usage at my.safesurfer.io. Logs taken for viewing\nusage, data never sold - https://safesurfer.io",
2422
+ filter: !0,
2423
+ log: !0
2424
+ },
2425
+ {
2426
+ name: "sth-ads-doh-se",
2427
+ endpoint: {
2428
+ protocol: "https:",
2429
+ host: "dnsse-noads.alekberg.net"
2430
+ },
2431
+ description: "Resolver in Stockholm, Sweden. DoH server. Non-logging, remove ads and malware, DNSSEC.",
2432
+ country: "Bulgaria",
2433
+ location: {
2434
+ lat: 42.696,
2435
+ long: 23.332
2436
+ },
2437
+ filter: !0
2438
+ },
2439
+ {
2440
+ name: "sth-doh-se",
2441
+ endpoint: {
2442
+ protocol: "https:",
2443
+ host: "dnsse.alekberg.net"
2444
+ },
2445
+ description: "Resolver in Stockholm, Sweden. DoH server. Non-logging, non-filtering, DNSSEC.",
2446
+ country: "Bulgaria",
2447
+ location: {
2448
+ lat: 42.696,
2449
+ long: 23.332
2450
+ }
2451
+ },
2452
+ {
2453
+ name: "switch",
2454
+ endpoint: {
2455
+ protocol: "https:",
2456
+ host: "dns.switch.ch"
2457
+ },
2458
+ description: "Public DoH service provided by SWITCH in Switzerland\nhttps://www.switch.ch\nProvides protection against malware, but does not block ads.",
2459
+ filter: !0
2460
+ },
2461
+ {
2462
+ name: "uncensoreddns-dk-ipv4",
2463
+ endpoint: {
2464
+ protocol: "https:",
2465
+ host: "unicast.uncensoreddns.org"
2466
+ },
2467
+ description: "Also known as censurfridns.\nDoH, no logs, no filter, DNSSEC, unicast hosted in Denmark - https://blog.uncensoreddns.org",
2468
+ country: "Denmark",
2469
+ location: {
2470
+ lat: 55.7123,
2471
+ long: 12.0564
2472
+ }
2473
+ },
2474
+ {
2475
+ name: "uncensoreddns-ipv4",
2476
+ endpoint: {
2477
+ protocol: "https:",
2478
+ host: "anycast.uncensoreddns.org"
2479
+ },
2480
+ description: "Also known as censurfridns.\nDoH, no logs, no filter, DNSSEC, anycast - https://blog.uncensoreddns.org",
2481
+ country: "Denmark",
2482
+ location: {
2483
+ lat: 55.7123,
2484
+ long: 12.0564
2485
+ }
2486
+ },
2487
+ {
2488
+ name: "v.dnscrypt.uk-doh-ipv4",
2489
+ endpoint: {
2490
+ protocol: "https:",
2491
+ host: "v.dnscrypt.uk"
2492
+ },
2493
+ description: "DoH, no logs, uncensored, DNSSEC. Hosted in London UK on Digital Ocean\nhttps://www.dnscrypt.uk",
2494
+ country: "United Kingdom",
2495
+ location: {
2496
+ lat: 51.4964,
2497
+ long: -.1224
2498
+ }
2499
+ }
2500
+ ],
2501
+ time: 1654187067783
2502
+ };
2503
+ //#endregion
2504
+ //#region node_modules/dns-query/index.mjs
2505
+ function it(e) {
2506
+ let t = e.time === null || e.time === void 0 ? Date.now() : e.time, n = nt(e.data.map((e) => (e.endpoint = Ze(Object.assign({ name: e.name }, e.endpoint)), e))), r = n.map((e) => e.endpoint);
2507
+ return {
2508
+ data: {
2509
+ resolvers: n,
2510
+ resolverByName: n.reduce((e, t) => (e[t.name] = t, e), {}),
2511
+ endpoints: r,
2512
+ endpointByName: r.reduce((e, t) => (e[t.name] = t, e), {})
2513
+ },
2514
+ time: t
2515
+ };
2516
+ }
2517
+ var at = it(rt), ot = new Me("https://martinheidegger.github.io/dns-query/resolvers.json");
2518
+ function st(e) {
2519
+ return /^@/.test(e);
2520
+ }
2521
+ new class {
2522
+ constructor(e) {
2523
+ this.opts = Object.assign({
2524
+ timeout: 5e3,
2525
+ update: !0,
2526
+ updateURL: ot,
2527
+ persist: !1,
2528
+ localStoragePrefix: "dnsquery_",
2529
+ maxAge: 3e5
2530
+ }, e), this._dataP = null;
2531
+ }
2532
+ _data(e, t) {
2533
+ return !e && this._dataP !== null ? this._dataP.then((e) => e.time < Date.now() - this.opts.maxAge ? this._data(!0, e) : e) : (this._dataP = this.opts.update ? et(this.opts.updateURL, this.opts.persist ? {
2534
+ name: "resolvers.json",
2535
+ localStoragePrefix: this.opts.localStoragePrefix,
2536
+ maxTime: Date.now() - this.opts.maxAge
2537
+ } : null, this.opts.timeout).then((e) => it({
2538
+ data: e.data.resolvers,
2539
+ time: e.time
2540
+ })).catch(() => t || at) : Promise.resolve(at), this._dataP);
2541
+ }
2542
+ data() {
2543
+ return this._data(!1).then((e) => e.data);
2544
+ }
2545
+ endpoints(e) {
2546
+ if (e == null) return this.data().then((e) => e.endpoints);
2547
+ if (e === "doh" && (e = ct), e === "dns" && (e = lt), typeof e == "function") return this.data().then((t) => t.endpoints.filter(e));
2548
+ if (typeof e == "string" || typeof e[Symbol.iterator] != "function") return Promise.reject(/* @__PURE__ */ Error(`Endpoints (${e}) needs to be iterable (array).`));
2549
+ if (e = Array.from(e).filter(Boolean), e.findIndex(st) === -1) try {
2550
+ return Promise.resolve(e.map(Ze));
2551
+ } catch (e) {
2552
+ return Promise.reject(e);
2553
+ }
2554
+ return this.data().then((t) => e.map((e) => {
2555
+ if (st(e)) {
2556
+ let n = t.endpointByName[e.substring(1)];
2557
+ if (!n) throw Error(`Endpoint ${e} is not known.`);
2558
+ return n;
2559
+ }
2560
+ return Ze(e);
2561
+ }));
2562
+ }
2563
+ }();
2564
+ function ct(e) {
2565
+ return e.protocol === "https:" || e.protocol === "http:";
2566
+ }
2567
+ function lt(e) {
2568
+ return e.protocol === "udp4:" || e.protocol === "udp6:";
2569
+ }
2570
+ //#endregion