luigi12345 commited on
Commit
7793e10
1 Parent(s): 8f623f0

92ec50a687882d9f1cdbe00a4556789eca98df242c089107b3f070b6bdc83b3d

Browse files
Files changed (50) hide show
  1. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/hono-base.js +260 -0
  2. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/hono.js +39 -0
  3. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/http-exception.js +48 -0
  4. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/index.js +28 -0
  5. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/base.js +352 -0
  6. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/children.js +45 -0
  7. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/components.js +173 -0
  8. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/constants.js +40 -0
  9. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/context.js +61 -0
  10. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/client.js +73 -0
  11. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/components.js +56 -0
  12. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/context.js +72 -0
  13. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/css.js +160 -0
  14. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +75 -0
  15. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/index.js +176 -0
  16. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +366 -0
  17. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +49 -0
  18. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +33 -0
  19. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/render.js +609 -0
  20. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/server.js +64 -0
  21. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/utils.js +33 -0
  22. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/hooks/index.js +371 -0
  23. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/index.js +139 -0
  24. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +40 -0
  25. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +181 -0
  26. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +16 -0
  27. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +42 -0
  28. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +42 -0
  29. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/streaming.js +163 -0
  30. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/types.js +16 -0
  31. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/utils.js +51 -0
  32. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +83 -0
  33. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +105 -0
  34. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/body-limit/index.js +81 -0
  35. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/cache/index.js +91 -0
  36. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/combine/index.js +88 -0
  37. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/compress/index.js +57 -0
  38. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/context-storage/index.js +43 -0
  39. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/cors/index.js +98 -0
  40. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/csrf/index.js +58 -0
  41. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/etag/index.js +72 -0
  42. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +124 -0
  43. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +81 -0
  44. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jwt/index.js +34 -0
  45. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +130 -0
  46. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/logger/index.js +72 -0
  47. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/method-override/index.js +105 -0
  48. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/powered-by/index.js +33 -0
  49. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -0
  50. workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/request-id/index.js +28 -0
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/hono-base.js ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var hono_base_exports = {};
20
+ __export(hono_base_exports, {
21
+ COMPOSED_HANDLER: () => COMPOSED_HANDLER,
22
+ HonoBase: () => Hono
23
+ });
24
+ module.exports = __toCommonJS(hono_base_exports);
25
+ var import_compose = require("./compose");
26
+ var import_context = require("./context");
27
+ var import_router = require("./router");
28
+ var import_url = require("./utils/url");
29
+ const COMPOSED_HANDLER = Symbol("composedHandler");
30
+ const notFoundHandler = (c) => {
31
+ return c.text("404 Not Found", 404);
32
+ };
33
+ const errorHandler = (err, c) => {
34
+ if ("getResponse" in err) {
35
+ return err.getResponse();
36
+ }
37
+ console.error(err);
38
+ return c.text("Internal Server Error", 500);
39
+ };
40
+ class Hono {
41
+ get;
42
+ post;
43
+ put;
44
+ delete;
45
+ options;
46
+ patch;
47
+ all;
48
+ on;
49
+ use;
50
+ router;
51
+ getPath;
52
+ _basePath = "/";
53
+ #path = "/";
54
+ routes = [];
55
+ constructor(options = {}) {
56
+ const allMethods = [...import_router.METHODS, import_router.METHOD_NAME_ALL_LOWERCASE];
57
+ allMethods.forEach((method) => {
58
+ this[method] = (args1, ...args) => {
59
+ if (typeof args1 === "string") {
60
+ this.#path = args1;
61
+ } else {
62
+ this.addRoute(method, this.#path, args1);
63
+ }
64
+ args.forEach((handler) => {
65
+ if (typeof handler !== "string") {
66
+ this.addRoute(method, this.#path, handler);
67
+ }
68
+ });
69
+ return this;
70
+ };
71
+ });
72
+ this.on = (method, path, ...handlers) => {
73
+ for (const p of [path].flat()) {
74
+ this.#path = p;
75
+ for (const m of [method].flat()) {
76
+ handlers.map((handler) => {
77
+ this.addRoute(m.toUpperCase(), this.#path, handler);
78
+ });
79
+ }
80
+ }
81
+ return this;
82
+ };
83
+ this.use = (arg1, ...handlers) => {
84
+ if (typeof arg1 === "string") {
85
+ this.#path = arg1;
86
+ } else {
87
+ this.#path = "*";
88
+ handlers.unshift(arg1);
89
+ }
90
+ handlers.forEach((handler) => {
91
+ this.addRoute(import_router.METHOD_NAME_ALL, this.#path, handler);
92
+ });
93
+ return this;
94
+ };
95
+ const strict = options.strict ?? true;
96
+ delete options.strict;
97
+ Object.assign(this, options);
98
+ this.getPath = strict ? options.getPath ?? import_url.getPath : import_url.getPathNoStrict;
99
+ }
100
+ clone() {
101
+ const clone = new Hono({
102
+ router: this.router,
103
+ getPath: this.getPath
104
+ });
105
+ clone.routes = this.routes;
106
+ return clone;
107
+ }
108
+ notFoundHandler = notFoundHandler;
109
+ errorHandler = errorHandler;
110
+ route(path, app) {
111
+ const subApp = this.basePath(path);
112
+ app.routes.map((r) => {
113
+ let handler;
114
+ if (app.errorHandler === errorHandler) {
115
+ handler = r.handler;
116
+ } else {
117
+ handler = async (c, next) => (await (0, import_compose.compose)([], app.errorHandler)(c, () => r.handler(c, next))).res;
118
+ handler[COMPOSED_HANDLER] = r.handler;
119
+ }
120
+ subApp.addRoute(r.method, r.path, handler);
121
+ });
122
+ return this;
123
+ }
124
+ basePath(path) {
125
+ const subApp = this.clone();
126
+ subApp._basePath = (0, import_url.mergePath)(this._basePath, path);
127
+ return subApp;
128
+ }
129
+ onError = (handler) => {
130
+ this.errorHandler = handler;
131
+ return this;
132
+ };
133
+ notFound = (handler) => {
134
+ this.notFoundHandler = handler;
135
+ return this;
136
+ };
137
+ mount(path, applicationHandler, options) {
138
+ let replaceRequest;
139
+ let optionHandler;
140
+ if (options) {
141
+ if (typeof options === "function") {
142
+ optionHandler = options;
143
+ } else {
144
+ optionHandler = options.optionHandler;
145
+ replaceRequest = options.replaceRequest;
146
+ }
147
+ }
148
+ const getOptions = optionHandler ? (c) => {
149
+ const options2 = optionHandler(c);
150
+ return Array.isArray(options2) ? options2 : [options2];
151
+ } : (c) => {
152
+ let executionContext = void 0;
153
+ try {
154
+ executionContext = c.executionCtx;
155
+ } catch {
156
+ }
157
+ return [c.env, executionContext];
158
+ };
159
+ replaceRequest ||= (() => {
160
+ const mergedPath = (0, import_url.mergePath)(this._basePath, path);
161
+ const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
162
+ return (request) => {
163
+ const url = new URL(request.url);
164
+ url.pathname = url.pathname.slice(pathPrefixLength) || "/";
165
+ return new Request(url, request);
166
+ };
167
+ })();
168
+ const handler = async (c, next) => {
169
+ const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c));
170
+ if (res) {
171
+ return res;
172
+ }
173
+ await next();
174
+ };
175
+ this.addRoute(import_router.METHOD_NAME_ALL, (0, import_url.mergePath)(path, "*"), handler);
176
+ return this;
177
+ }
178
+ addRoute(method, path, handler) {
179
+ method = method.toUpperCase();
180
+ path = (0, import_url.mergePath)(this._basePath, path);
181
+ const r = { path, method, handler };
182
+ this.router.add(method, path, [handler, r]);
183
+ this.routes.push(r);
184
+ }
185
+ matchRoute(method, path) {
186
+ return this.router.match(method, path);
187
+ }
188
+ handleError(err, c) {
189
+ if (err instanceof Error) {
190
+ return this.errorHandler(err, c);
191
+ }
192
+ throw err;
193
+ }
194
+ dispatch(request, executionCtx, env, method) {
195
+ if (method === "HEAD") {
196
+ return (async () => new Response(null, await this.dispatch(request, executionCtx, env, "GET")))();
197
+ }
198
+ const path = this.getPath(request, { env });
199
+ const matchResult = this.matchRoute(method, path);
200
+ const c = new import_context.Context(request, {
201
+ path,
202
+ matchResult,
203
+ env,
204
+ executionCtx,
205
+ notFoundHandler: this.notFoundHandler
206
+ });
207
+ if (matchResult[0].length === 1) {
208
+ let res;
209
+ try {
210
+ res = matchResult[0][0][0][0](c, async () => {
211
+ c.res = await this.notFoundHandler(c);
212
+ });
213
+ } catch (err) {
214
+ return this.handleError(err, c);
215
+ }
216
+ return res instanceof Promise ? res.then(
217
+ (resolved) => resolved || (c.finalized ? c.res : this.notFoundHandler(c))
218
+ ).catch((err) => this.handleError(err, c)) : res ?? this.notFoundHandler(c);
219
+ }
220
+ const composed = (0, import_compose.compose)(matchResult[0], this.errorHandler, this.notFoundHandler);
221
+ return (async () => {
222
+ try {
223
+ const context = await composed(c);
224
+ if (!context.finalized) {
225
+ throw new Error(
226
+ "Context is not finalized. Did you forget to return a Response object or `await next()`?"
227
+ );
228
+ }
229
+ return context.res;
230
+ } catch (err) {
231
+ return this.handleError(err, c);
232
+ }
233
+ })();
234
+ }
235
+ fetch = (request, ...rest) => {
236
+ return this.dispatch(request, rest[1], rest[0], request.method);
237
+ };
238
+ request = (input, requestInit, Env, executionCtx) => {
239
+ if (input instanceof Request) {
240
+ if (requestInit !== void 0) {
241
+ input = new Request(input, requestInit);
242
+ }
243
+ return this.fetch(input, Env, executionCtx);
244
+ }
245
+ input = input.toString();
246
+ const path = /^https?:\/\//.test(input) ? input : `http://localhost${(0, import_url.mergePath)("/", input)}`;
247
+ const req = new Request(path, requestInit);
248
+ return this.fetch(req, Env, executionCtx);
249
+ };
250
+ fire = () => {
251
+ addEventListener("fetch", (event) => {
252
+ event.respondWith(this.dispatch(event.request, event, void 0, event.request.method));
253
+ });
254
+ };
255
+ }
256
+ // Annotate the CommonJS export names for ESM import in node:
257
+ 0 && (module.exports = {
258
+ COMPOSED_HANDLER,
259
+ HonoBase
260
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/hono.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var hono_exports = {};
20
+ __export(hono_exports, {
21
+ Hono: () => Hono
22
+ });
23
+ module.exports = __toCommonJS(hono_exports);
24
+ var import_hono_base = require("./hono-base");
25
+ var import_reg_exp_router = require("./router/reg-exp-router");
26
+ var import_smart_router = require("./router/smart-router");
27
+ var import_trie_router = require("./router/trie-router");
28
+ class Hono extends import_hono_base.HonoBase {
29
+ constructor(options = {}) {
30
+ super(options);
31
+ this.router = options.router ?? new import_smart_router.SmartRouter({
32
+ routers: [new import_reg_exp_router.RegExpRouter(), new import_trie_router.TrieRouter()]
33
+ });
34
+ }
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ Hono
39
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/http-exception.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var http_exception_exports = {};
20
+ __export(http_exception_exports, {
21
+ HTTPException: () => HTTPException
22
+ });
23
+ module.exports = __toCommonJS(http_exception_exports);
24
+ class HTTPException extends Error {
25
+ res;
26
+ status;
27
+ constructor(status = 500, options) {
28
+ super(options?.message, { cause: options?.cause });
29
+ this.res = options?.res;
30
+ this.status = status;
31
+ }
32
+ getResponse() {
33
+ if (this.res) {
34
+ const newResponse = new Response(this.res.body, {
35
+ status: this.status,
36
+ headers: this.res.headers
37
+ });
38
+ return newResponse;
39
+ }
40
+ return new Response(this.message, {
41
+ status: this.status
42
+ });
43
+ }
44
+ }
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ HTTPException
48
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/index.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ Hono: () => import_hono.Hono
22
+ });
23
+ module.exports = __toCommonJS(src_exports);
24
+ var import_hono = require("./hono");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ Hono
28
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/base.js ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var base_exports = {};
26
+ __export(base_exports, {
27
+ Fragment: () => Fragment,
28
+ JSXFragmentNode: () => JSXFragmentNode,
29
+ JSXNode: () => JSXNode,
30
+ cloneElement: () => cloneElement,
31
+ getNameSpaceContext: () => getNameSpaceContext,
32
+ isValidElement: () => isValidElement,
33
+ jsx: () => jsx,
34
+ jsxFn: () => jsxFn,
35
+ memo: () => memo,
36
+ reactAPICompatVersion: () => reactAPICompatVersion
37
+ });
38
+ module.exports = __toCommonJS(base_exports);
39
+ var import_html = require("../helper/html");
40
+ var import_html2 = require("../utils/html");
41
+ var import_context = require("./context");
42
+ var import_constants = require("./constants");
43
+ var import_utils = require("./utils");
44
+ var intrinsicElementTags = __toESM(require("./intrinsic-element/components"), 1);
45
+ var import_common = require("./intrinsic-element/common");
46
+ let nameSpaceContext = void 0;
47
+ const getNameSpaceContext = () => nameSpaceContext;
48
+ const toSVGAttributeName = (key) => /[A-Z]/.test(key) && key.match(
49
+ /^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/
50
+ ) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key;
51
+ const emptyTags = [
52
+ "area",
53
+ "base",
54
+ "br",
55
+ "col",
56
+ "embed",
57
+ "hr",
58
+ "img",
59
+ "input",
60
+ "keygen",
61
+ "link",
62
+ "meta",
63
+ "param",
64
+ "source",
65
+ "track",
66
+ "wbr"
67
+ ];
68
+ const booleanAttributes = [
69
+ "allowfullscreen",
70
+ "async",
71
+ "autofocus",
72
+ "autoplay",
73
+ "checked",
74
+ "controls",
75
+ "default",
76
+ "defer",
77
+ "disabled",
78
+ "download",
79
+ "formnovalidate",
80
+ "hidden",
81
+ "inert",
82
+ "ismap",
83
+ "itemscope",
84
+ "loop",
85
+ "multiple",
86
+ "muted",
87
+ "nomodule",
88
+ "novalidate",
89
+ "open",
90
+ "playsinline",
91
+ "readonly",
92
+ "required",
93
+ "reversed",
94
+ "selected"
95
+ ];
96
+ const childrenToStringToBuffer = (children, buffer) => {
97
+ for (let i = 0, len = children.length; i < len; i++) {
98
+ const child = children[i];
99
+ if (typeof child === "string") {
100
+ (0, import_html2.escapeToBuffer)(child, buffer);
101
+ } else if (typeof child === "boolean" || child === null || child === void 0) {
102
+ continue;
103
+ } else if (child instanceof JSXNode) {
104
+ child.toStringToBuffer(buffer);
105
+ } else if (typeof child === "number" || child.isEscaped) {
106
+ ;
107
+ buffer[0] += child;
108
+ } else if (child instanceof Promise) {
109
+ buffer.unshift("", child);
110
+ } else {
111
+ childrenToStringToBuffer(child, buffer);
112
+ }
113
+ }
114
+ };
115
+ class JSXNode {
116
+ tag;
117
+ props;
118
+ key;
119
+ children;
120
+ isEscaped = true;
121
+ localContexts;
122
+ constructor(tag, props, children) {
123
+ this.tag = tag;
124
+ this.props = props;
125
+ this.children = children;
126
+ }
127
+ get type() {
128
+ return this.tag;
129
+ }
130
+ get ref() {
131
+ return this.props.ref || null;
132
+ }
133
+ toString() {
134
+ const buffer = [""];
135
+ this.localContexts?.forEach(([context, value]) => {
136
+ context.values.push(value);
137
+ });
138
+ try {
139
+ this.toStringToBuffer(buffer);
140
+ } finally {
141
+ this.localContexts?.forEach(([context]) => {
142
+ context.values.pop();
143
+ });
144
+ }
145
+ return buffer.length === 1 ? "callbacks" in buffer ? (0, import_html2.resolveCallbackSync)((0, import_html.raw)(buffer[0], buffer.callbacks)).toString() : buffer[0] : (0, import_html2.stringBufferToString)(buffer, buffer.callbacks);
146
+ }
147
+ toStringToBuffer(buffer) {
148
+ const tag = this.tag;
149
+ const props = this.props;
150
+ let { children } = this;
151
+ buffer[0] += `<${tag}`;
152
+ const normalizeKey = nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "svg" ? (key) => toSVGAttributeName((0, import_utils.normalizeIntrinsicElementKey)(key)) : (key) => (0, import_utils.normalizeIntrinsicElementKey)(key);
153
+ for (let [key, v] of Object.entries(props)) {
154
+ key = normalizeKey(key);
155
+ if (key === "children") {
156
+ } else if (key === "style" && typeof v === "object") {
157
+ let styleStr = "";
158
+ (0, import_utils.styleObjectForEach)(v, (property, value) => {
159
+ if (value != null) {
160
+ styleStr += `${styleStr ? ";" : ""}${property}:${value}`;
161
+ }
162
+ });
163
+ buffer[0] += ' style="';
164
+ (0, import_html2.escapeToBuffer)(styleStr, buffer);
165
+ buffer[0] += '"';
166
+ } else if (typeof v === "string") {
167
+ buffer[0] += ` ${key}="`;
168
+ (0, import_html2.escapeToBuffer)(v, buffer);
169
+ buffer[0] += '"';
170
+ } else if (v === null || v === void 0) {
171
+ } else if (typeof v === "number" || v.isEscaped) {
172
+ buffer[0] += ` ${key}="${v}"`;
173
+ } else if (typeof v === "boolean" && booleanAttributes.includes(key)) {
174
+ if (v) {
175
+ buffer[0] += ` ${key}=""`;
176
+ }
177
+ } else if (key === "dangerouslySetInnerHTML") {
178
+ if (children.length > 0) {
179
+ throw "Can only set one of `children` or `props.dangerouslySetInnerHTML`.";
180
+ }
181
+ children = [(0, import_html.raw)(v.__html)];
182
+ } else if (v instanceof Promise) {
183
+ buffer[0] += ` ${key}="`;
184
+ buffer.unshift('"', v);
185
+ } else if (typeof v === "function") {
186
+ if (!key.startsWith("on")) {
187
+ throw `Invalid prop '${key}' of type 'function' supplied to '${tag}'.`;
188
+ }
189
+ } else {
190
+ buffer[0] += ` ${key}="`;
191
+ (0, import_html2.escapeToBuffer)(v.toString(), buffer);
192
+ buffer[0] += '"';
193
+ }
194
+ }
195
+ if (emptyTags.includes(tag) && children.length === 0) {
196
+ buffer[0] += "/>";
197
+ return;
198
+ }
199
+ buffer[0] += ">";
200
+ childrenToStringToBuffer(children, buffer);
201
+ buffer[0] += `</${tag}>`;
202
+ }
203
+ }
204
+ class JSXFunctionNode extends JSXNode {
205
+ toStringToBuffer(buffer) {
206
+ const { children } = this;
207
+ const res = this.tag.call(null, {
208
+ ...this.props,
209
+ children: children.length <= 1 ? children[0] : children
210
+ });
211
+ if (typeof res === "boolean" || res == null) {
212
+ return;
213
+ } else if (res instanceof Promise) {
214
+ if (import_context.globalContexts.length === 0) {
215
+ buffer.unshift("", res);
216
+ } else {
217
+ const currentContexts = import_context.globalContexts.map((c) => [c, c.values.at(-1)]);
218
+ buffer.unshift(
219
+ "",
220
+ res.then((childRes) => {
221
+ if (childRes instanceof JSXNode) {
222
+ childRes.localContexts = currentContexts;
223
+ }
224
+ return childRes;
225
+ })
226
+ );
227
+ }
228
+ } else if (res instanceof JSXNode) {
229
+ res.toStringToBuffer(buffer);
230
+ } else if (typeof res === "number" || res.isEscaped) {
231
+ buffer[0] += res;
232
+ if (res.callbacks) {
233
+ buffer.callbacks ||= [];
234
+ buffer.callbacks.push(...res.callbacks);
235
+ }
236
+ } else {
237
+ (0, import_html2.escapeToBuffer)(res, buffer);
238
+ }
239
+ }
240
+ }
241
+ class JSXFragmentNode extends JSXNode {
242
+ toStringToBuffer(buffer) {
243
+ childrenToStringToBuffer(this.children, buffer);
244
+ }
245
+ }
246
+ const jsx = (tag, props, ...children) => {
247
+ props ??= {};
248
+ if (children.length) {
249
+ props.children = children.length === 1 ? children[0] : children;
250
+ }
251
+ const key = props.key;
252
+ delete props["key"];
253
+ const node = jsxFn(tag, props, children);
254
+ node.key = key;
255
+ return node;
256
+ };
257
+ let initDomRenderer = false;
258
+ const jsxFn = (tag, props, children) => {
259
+ if (!initDomRenderer) {
260
+ for (const k in import_common.domRenderers) {
261
+ ;
262
+ intrinsicElementTags[k][import_constants.DOM_RENDERER] = import_common.domRenderers[k];
263
+ }
264
+ initDomRenderer = true;
265
+ }
266
+ if (typeof tag === "function") {
267
+ return new JSXFunctionNode(tag, props, children);
268
+ } else if (intrinsicElementTags[tag]) {
269
+ return new JSXFunctionNode(
270
+ intrinsicElementTags[tag],
271
+ props,
272
+ children
273
+ );
274
+ } else if (tag === "svg" || tag === "head") {
275
+ nameSpaceContext ||= (0, import_context.createContext)("");
276
+ return new JSXNode(tag, props, [
277
+ new JSXFunctionNode(
278
+ nameSpaceContext,
279
+ {
280
+ value: tag
281
+ },
282
+ children
283
+ )
284
+ ]);
285
+ } else {
286
+ return new JSXNode(tag, props, children);
287
+ }
288
+ };
289
+ const shallowEqual = (a, b) => {
290
+ if (a === b) {
291
+ return true;
292
+ }
293
+ const aKeys = Object.keys(a).sort();
294
+ const bKeys = Object.keys(b).sort();
295
+ if (aKeys.length !== bKeys.length) {
296
+ return false;
297
+ }
298
+ for (let i = 0, len = aKeys.length; i < len; i++) {
299
+ if (aKeys[i] === "children" && bKeys[i] === "children" && !a.children?.length && !b.children?.length) {
300
+ continue;
301
+ } else if (a[aKeys[i]] !== b[aKeys[i]]) {
302
+ return false;
303
+ }
304
+ }
305
+ return true;
306
+ };
307
+ const memo = (component, propsAreEqual = shallowEqual) => {
308
+ let computed = null;
309
+ let prevProps = void 0;
310
+ return (props) => {
311
+ if (prevProps && !propsAreEqual(prevProps, props)) {
312
+ computed = null;
313
+ }
314
+ prevProps = props;
315
+ return computed ||= component(props);
316
+ };
317
+ };
318
+ const Fragment = ({
319
+ children
320
+ }) => {
321
+ return new JSXFragmentNode(
322
+ "",
323
+ {
324
+ children
325
+ },
326
+ Array.isArray(children) ? children : children ? [children] : []
327
+ );
328
+ };
329
+ const isValidElement = (element) => {
330
+ return !!(element && typeof element === "object" && "tag" in element && "props" in element);
331
+ };
332
+ const cloneElement = (element, props, ...children) => {
333
+ return jsx(
334
+ element.tag,
335
+ { ...element.props, ...props },
336
+ ...children
337
+ );
338
+ };
339
+ const reactAPICompatVersion = "19.0.0-hono-jsx";
340
+ // Annotate the CommonJS export names for ESM import in node:
341
+ 0 && (module.exports = {
342
+ Fragment,
343
+ JSXFragmentNode,
344
+ JSXNode,
345
+ cloneElement,
346
+ getNameSpaceContext,
347
+ isValidElement,
348
+ jsx,
349
+ jsxFn,
350
+ memo,
351
+ reactAPICompatVersion
352
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/children.js ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var children_exports = {};
20
+ __export(children_exports, {
21
+ Children: () => Children,
22
+ toArray: () => toArray
23
+ });
24
+ module.exports = __toCommonJS(children_exports);
25
+ const toArray = (children) => Array.isArray(children) ? children : [children];
26
+ const Children = {
27
+ map: (children, fn) => toArray(children).map(fn),
28
+ forEach: (children, fn) => {
29
+ toArray(children).forEach(fn);
30
+ },
31
+ count: (children) => toArray(children).length,
32
+ only: (_children) => {
33
+ const children = toArray(_children);
34
+ if (children.length !== 1) {
35
+ throw new Error("Children.only() expects only one child");
36
+ }
37
+ return children[0];
38
+ },
39
+ toArray
40
+ };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ Children,
44
+ toArray
45
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/components.js ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var components_exports = {};
20
+ __export(components_exports, {
21
+ ErrorBoundary: () => ErrorBoundary,
22
+ childrenToString: () => childrenToString
23
+ });
24
+ module.exports = __toCommonJS(components_exports);
25
+ var import_html = require("../helper/html");
26
+ var import_html2 = require("../utils/html");
27
+ var import_constants = require("./constants");
28
+ var import_components = require("./dom/components");
29
+ let errorBoundaryCounter = 0;
30
+ const childrenToString = async (children) => {
31
+ try {
32
+ return children.flat().map((c) => c == null || typeof c === "boolean" ? "" : c.toString());
33
+ } catch (e) {
34
+ if (e instanceof Promise) {
35
+ await e;
36
+ return childrenToString(children);
37
+ } else {
38
+ throw e;
39
+ }
40
+ }
41
+ };
42
+ const ErrorBoundary = async ({ children, fallback, fallbackRender, onError }) => {
43
+ if (!children) {
44
+ return (0, import_html.raw)("");
45
+ }
46
+ if (!Array.isArray(children)) {
47
+ children = [children];
48
+ }
49
+ let fallbackStr;
50
+ const fallbackRes = (error) => {
51
+ onError?.(error);
52
+ return (fallbackStr || fallbackRender?.(error) || "").toString();
53
+ };
54
+ let resArray = [];
55
+ try {
56
+ resArray = children.map(
57
+ (c) => c == null || typeof c === "boolean" ? "" : c.toString()
58
+ );
59
+ } catch (e) {
60
+ fallbackStr = await fallback?.toString();
61
+ if (e instanceof Promise) {
62
+ resArray = [
63
+ e.then(() => childrenToString(children)).catch((e2) => fallbackRes(e2))
64
+ ];
65
+ } else {
66
+ resArray = [fallbackRes(e)];
67
+ }
68
+ }
69
+ if (resArray.some((res) => res instanceof Promise)) {
70
+ fallbackStr ||= await fallback?.toString();
71
+ const index = errorBoundaryCounter++;
72
+ const replaceRe = RegExp(`(<template id="E:${index}"></template>.*?)(.*?)(<!--E:${index}-->)`);
73
+ const caught = false;
74
+ const catchCallback = ({ error: error2, buffer }) => {
75
+ if (caught) {
76
+ return "";
77
+ }
78
+ const fallbackResString = fallbackRes(error2);
79
+ if (buffer) {
80
+ buffer[0] = buffer[0].replace(replaceRe, fallbackResString);
81
+ }
82
+ return buffer ? "" : `<template data-hono-target="E:${index}">${fallbackResString}</template><script>
83
+ ((d,c,n) => {
84
+ c=d.currentScript.previousSibling
85
+ d=d.getElementById('E:${index}')
86
+ if(!d)return
87
+ do{n=d.nextSibling;n.remove()}while(n.nodeType!=8||n.nodeValue!='E:${index}')
88
+ d.replaceWith(c.content)
89
+ })(document)
90
+ <\/script>`;
91
+ };
92
+ let error;
93
+ const promiseAll = Promise.all(resArray).catch((e) => error = e);
94
+ return (0, import_html.raw)(`<template id="E:${index}"></template><!--E:${index}-->`, [
95
+ ({ phase, buffer, context }) => {
96
+ if (phase === import_html2.HtmlEscapedCallbackPhase.BeforeStream) {
97
+ return;
98
+ }
99
+ return promiseAll.then(async (htmlArray) => {
100
+ if (error) {
101
+ throw error;
102
+ }
103
+ htmlArray = htmlArray.flat();
104
+ const content = htmlArray.join("");
105
+ let html = buffer ? "" : `<template data-hono-target="E:${index}">${content}</template><script>
106
+ ((d,c) => {
107
+ c=d.currentScript.previousSibling
108
+ d=d.getElementById('E:${index}')
109
+ if(!d)return
110
+ d.parentElement.insertBefore(c.content,d.nextSibling)
111
+ })(document)
112
+ <\/script>`;
113
+ if (htmlArray.every((html2) => !html2.callbacks?.length)) {
114
+ if (buffer) {
115
+ buffer[0] = buffer[0].replace(replaceRe, content);
116
+ }
117
+ return html;
118
+ }
119
+ if (buffer) {
120
+ buffer[0] = buffer[0].replace(
121
+ replaceRe,
122
+ (_all, pre, _, post) => `${pre}${content}${post}`
123
+ );
124
+ }
125
+ const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat();
126
+ if (phase === import_html2.HtmlEscapedCallbackPhase.Stream) {
127
+ html = await (0, import_html2.resolveCallback)(
128
+ html,
129
+ import_html2.HtmlEscapedCallbackPhase.BeforeStream,
130
+ true,
131
+ context
132
+ );
133
+ }
134
+ let resolvedCount = 0;
135
+ const promises = callbacks.map(
136
+ (c) => (...args) => c(...args)?.then((content2) => {
137
+ resolvedCount++;
138
+ if (buffer) {
139
+ if (resolvedCount === callbacks.length) {
140
+ buffer[0] = buffer[0].replace(replaceRe, (_all, _pre, content3) => content3);
141
+ }
142
+ buffer[0] += content2;
143
+ return (0, import_html.raw)("", content2.callbacks);
144
+ }
145
+ return (0, import_html.raw)(
146
+ content2 + (resolvedCount !== callbacks.length ? "" : `<script>
147
+ ((d,c,n) => {
148
+ d=d.getElementById('E:${index}')
149
+ if(!d)return
150
+ n=d.nextSibling
151
+ while(n.nodeType!=8||n.nodeValue!='E:${index}'){n=n.nextSibling}
152
+ n.remove()
153
+ d.remove()
154
+ })(document)
155
+ <\/script>`),
156
+ content2.callbacks
157
+ );
158
+ }).catch((error2) => catchCallback({ error: error2, buffer }))
159
+ );
160
+ return (0, import_html.raw)(html, promises);
161
+ }).catch((error2) => catchCallback({ error: error2, buffer }));
162
+ }
163
+ ]);
164
+ } else {
165
+ return (0, import_html.raw)(resArray.join(""));
166
+ }
167
+ };
168
+ ErrorBoundary[import_constants.DOM_RENDERER] = import_components.ErrorBoundary;
169
+ // Annotate the CommonJS export names for ESM import in node:
170
+ 0 && (module.exports = {
171
+ ErrorBoundary,
172
+ childrenToString
173
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/constants.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var constants_exports = {};
20
+ __export(constants_exports, {
21
+ DOM_ERROR_HANDLER: () => DOM_ERROR_HANDLER,
22
+ DOM_INTERNAL_TAG: () => DOM_INTERNAL_TAG,
23
+ DOM_RENDERER: () => DOM_RENDERER,
24
+ DOM_STASH: () => DOM_STASH,
25
+ PERMALINK: () => PERMALINK
26
+ });
27
+ module.exports = __toCommonJS(constants_exports);
28
+ const DOM_RENDERER = Symbol("RENDERER");
29
+ const DOM_ERROR_HANDLER = Symbol("ERROR_HANDLER");
30
+ const DOM_STASH = Symbol("STASH");
31
+ const DOM_INTERNAL_TAG = Symbol("INTERNAL");
32
+ const PERMALINK = Symbol("PERMALINK");
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ DOM_ERROR_HANDLER,
36
+ DOM_INTERNAL_TAG,
37
+ DOM_RENDERER,
38
+ DOM_STASH,
39
+ PERMALINK
40
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/context.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var context_exports = {};
20
+ __export(context_exports, {
21
+ createContext: () => createContext,
22
+ globalContexts: () => globalContexts,
23
+ useContext: () => useContext
24
+ });
25
+ module.exports = __toCommonJS(context_exports);
26
+ var import_html = require("../helper/html");
27
+ var import_base = require("./base");
28
+ var import_constants = require("./constants");
29
+ var import_context = require("./dom/context");
30
+ const globalContexts = [];
31
+ const createContext = (defaultValue) => {
32
+ const values = [defaultValue];
33
+ const context = (props) => {
34
+ values.push(props.value);
35
+ let string;
36
+ try {
37
+ string = props.children ? (Array.isArray(props.children) ? new import_base.JSXFragmentNode("", {}, props.children) : props.children).toString() : "";
38
+ } finally {
39
+ values.pop();
40
+ }
41
+ if (string instanceof Promise) {
42
+ return string.then((resString) => (0, import_html.raw)(resString, resString.callbacks));
43
+ } else {
44
+ return (0, import_html.raw)(string);
45
+ }
46
+ };
47
+ context.values = values;
48
+ context.Provider = context;
49
+ context[import_constants.DOM_RENDERER] = (0, import_context.createContextProviderFunction)(values);
50
+ globalContexts.push(context);
51
+ return context;
52
+ };
53
+ const useContext = (context) => {
54
+ return context.values.at(-1);
55
+ };
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ createContext,
59
+ globalContexts,
60
+ useContext
61
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/client.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var client_exports = {};
20
+ __export(client_exports, {
21
+ createRoot: () => createRoot,
22
+ default: () => client_default,
23
+ hydrateRoot: () => hydrateRoot
24
+ });
25
+ module.exports = __toCommonJS(client_exports);
26
+ var import_hooks = require("../hooks");
27
+ var import_render = require("./render");
28
+ const createRoot = (element, options = {}) => {
29
+ let setJsxNode = void 0;
30
+ if (Object.keys(options).length > 0) {
31
+ console.warn("createRoot options are not supported yet");
32
+ }
33
+ return {
34
+ render(jsxNode) {
35
+ if (setJsxNode === null) {
36
+ throw new Error("Cannot update an unmounted root");
37
+ }
38
+ if (setJsxNode) {
39
+ setJsxNode(jsxNode);
40
+ } else {
41
+ (0, import_render.renderNode)(
42
+ (0, import_render.buildNode)({
43
+ tag: () => {
44
+ const [_jsxNode, _setJsxNode] = (0, import_hooks.useState)(jsxNode);
45
+ setJsxNode = _setJsxNode;
46
+ return _jsxNode;
47
+ },
48
+ props: {}
49
+ }),
50
+ element
51
+ );
52
+ }
53
+ },
54
+ unmount() {
55
+ setJsxNode?.(null);
56
+ setJsxNode = null;
57
+ }
58
+ };
59
+ };
60
+ const hydrateRoot = (element, reactNode, options = {}) => {
61
+ const root = createRoot(element, options);
62
+ root.render(reactNode);
63
+ return root;
64
+ };
65
+ var client_default = {
66
+ createRoot,
67
+ hydrateRoot
68
+ };
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ createRoot,
72
+ hydrateRoot
73
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/components.js ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var components_exports = {};
20
+ __export(components_exports, {
21
+ ErrorBoundary: () => ErrorBoundary,
22
+ Suspense: () => Suspense
23
+ });
24
+ module.exports = __toCommonJS(components_exports);
25
+ var import_constants = require("../constants");
26
+ var import_jsx_runtime = require("./jsx-runtime");
27
+ const ErrorBoundary = ({ children, fallback, fallbackRender, onError }) => {
28
+ const res = (0, import_jsx_runtime.Fragment)({ children });
29
+ res[import_constants.DOM_ERROR_HANDLER] = (err) => {
30
+ if (err instanceof Promise) {
31
+ throw err;
32
+ }
33
+ onError?.(err);
34
+ return fallbackRender?.(err) || fallback;
35
+ };
36
+ return res;
37
+ };
38
+ const Suspense = ({
39
+ children,
40
+ fallback
41
+ }) => {
42
+ const res = (0, import_jsx_runtime.Fragment)({ children });
43
+ res[import_constants.DOM_ERROR_HANDLER] = (err, retry) => {
44
+ if (!(err instanceof Promise)) {
45
+ throw err;
46
+ }
47
+ err.finally(retry);
48
+ return fallback;
49
+ };
50
+ return res;
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ ErrorBoundary,
55
+ Suspense
56
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/context.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var context_exports = {};
20
+ __export(context_exports, {
21
+ createContext: () => createContext,
22
+ createContextProviderFunction: () => createContextProviderFunction
23
+ });
24
+ module.exports = __toCommonJS(context_exports);
25
+ var import_constants = require("../constants");
26
+ var import_context = require("../context");
27
+ var import_utils = require("./utils");
28
+ const createContextProviderFunction = (values) => ({ value, children }) => {
29
+ if (!children) {
30
+ return void 0;
31
+ }
32
+ const props = {
33
+ children: [
34
+ {
35
+ tag: (0, import_utils.setInternalTagFlag)(() => {
36
+ values.push(value);
37
+ }),
38
+ props: {}
39
+ }
40
+ ]
41
+ };
42
+ if (Array.isArray(children)) {
43
+ props.children.push(...children.flat());
44
+ } else {
45
+ props.children.push(children);
46
+ }
47
+ props.children.push({
48
+ tag: (0, import_utils.setInternalTagFlag)(() => {
49
+ values.pop();
50
+ }),
51
+ props: {}
52
+ });
53
+ const res = { tag: "", props, type: "" };
54
+ res[import_constants.DOM_ERROR_HANDLER] = (err) => {
55
+ values.pop();
56
+ throw err;
57
+ };
58
+ return res;
59
+ };
60
+ const createContext = (defaultValue) => {
61
+ const values = [defaultValue];
62
+ const context = createContextProviderFunction(values);
63
+ context.values = values;
64
+ context.Provider = context;
65
+ import_context.globalContexts.push(context);
66
+ return context;
67
+ };
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ createContext,
71
+ createContextProviderFunction
72
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/css.js ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var css_exports = {};
20
+ __export(css_exports, {
21
+ Style: () => Style,
22
+ createCssContext: () => createCssContext,
23
+ createCssJsxDomObjects: () => createCssJsxDomObjects,
24
+ css: () => css,
25
+ cx: () => cx,
26
+ keyframes: () => keyframes,
27
+ rawCssString: () => import_common2.rawCssString,
28
+ viewTransition: () => viewTransition
29
+ });
30
+ module.exports = __toCommonJS(css_exports);
31
+ var import_common = require("../../helper/css/common");
32
+ var import_common2 = require("../../helper/css/common");
33
+ const splitRule = (rule) => {
34
+ const result = [];
35
+ let startPos = 0;
36
+ let depth = 0;
37
+ for (let i = 0, len = rule.length; i < len; i++) {
38
+ const char = rule[i];
39
+ if (char === "'" || char === '"') {
40
+ const quote = char;
41
+ i++;
42
+ for (; i < len; i++) {
43
+ if (rule[i] === "\\") {
44
+ i++;
45
+ continue;
46
+ }
47
+ if (rule[i] === quote) {
48
+ break;
49
+ }
50
+ }
51
+ continue;
52
+ }
53
+ if (char === "{") {
54
+ depth++;
55
+ continue;
56
+ }
57
+ if (char === "}") {
58
+ depth--;
59
+ if (depth === 0) {
60
+ result.push(rule.slice(startPos, i + 1));
61
+ startPos = i + 1;
62
+ }
63
+ continue;
64
+ }
65
+ }
66
+ return result;
67
+ };
68
+ const createCssJsxDomObjects = ({ id }) => {
69
+ let styleSheet = void 0;
70
+ const findStyleSheet = () => {
71
+ if (!styleSheet) {
72
+ styleSheet = document.querySelector(`style#${id}`)?.sheet;
73
+ if (styleSheet) {
74
+ ;
75
+ styleSheet.addedStyles = /* @__PURE__ */ new Set();
76
+ }
77
+ }
78
+ return styleSheet ? [styleSheet, styleSheet.addedStyles] : [];
79
+ };
80
+ const insertRule = (className, styleString) => {
81
+ const [sheet, addedStyles] = findStyleSheet();
82
+ if (!sheet || !addedStyles) {
83
+ Promise.resolve().then(() => {
84
+ if (!findStyleSheet()[0]) {
85
+ throw new Error("style sheet not found");
86
+ }
87
+ insertRule(className, styleString);
88
+ });
89
+ return;
90
+ }
91
+ if (!addedStyles.has(className)) {
92
+ addedStyles.add(className);
93
+ (className.startsWith(import_common.PSEUDO_GLOBAL_SELECTOR) ? splitRule(styleString) : [`${className[0] === "@" ? "" : "."}${className}{${styleString}}`]).forEach((rule) => {
94
+ sheet.insertRule(rule, sheet.cssRules.length);
95
+ });
96
+ }
97
+ };
98
+ const cssObject = {
99
+ toString() {
100
+ const selector = this[import_common.SELECTOR];
101
+ insertRule(selector, this[import_common.STYLE_STRING]);
102
+ this[import_common.SELECTORS].forEach(({ [import_common.CLASS_NAME]: className, [import_common.STYLE_STRING]: styleString }) => {
103
+ insertRule(className, styleString);
104
+ });
105
+ return this[import_common.CLASS_NAME];
106
+ }
107
+ };
108
+ const Style2 = ({ children }) => ({
109
+ tag: "style",
110
+ props: {
111
+ id,
112
+ children: children && (Array.isArray(children) ? children : [children]).map(
113
+ (c) => c[import_common.STYLE_STRING]
114
+ )
115
+ }
116
+ });
117
+ return [cssObject, Style2];
118
+ };
119
+ const createCssContext = ({ id }) => {
120
+ const [cssObject, Style2] = createCssJsxDomObjects({ id });
121
+ const newCssClassNameObject = (cssClassName) => {
122
+ cssClassName.toString = cssObject.toString;
123
+ return cssClassName;
124
+ };
125
+ const css2 = (strings, ...values) => {
126
+ return newCssClassNameObject((0, import_common.cssCommon)(strings, values));
127
+ };
128
+ const cx2 = (...args) => {
129
+ args = (0, import_common.cxCommon)(args);
130
+ return css2(Array(args.length).fill(""), ...args);
131
+ };
132
+ const keyframes2 = import_common.keyframesCommon;
133
+ const viewTransition2 = (strings, ...values) => {
134
+ return newCssClassNameObject((0, import_common.viewTransitionCommon)(strings, values));
135
+ };
136
+ return {
137
+ css: css2,
138
+ cx: cx2,
139
+ keyframes: keyframes2,
140
+ viewTransition: viewTransition2,
141
+ Style: Style2
142
+ };
143
+ };
144
+ const defaultContext = createCssContext({ id: import_common.DEFAULT_STYLE_ID });
145
+ const css = defaultContext.css;
146
+ const cx = defaultContext.cx;
147
+ const keyframes = defaultContext.keyframes;
148
+ const viewTransition = defaultContext.viewTransition;
149
+ const Style = defaultContext.Style;
150
+ // Annotate the CommonJS export names for ESM import in node:
151
+ 0 && (module.exports = {
152
+ Style,
153
+ createCssContext,
154
+ createCssJsxDomObjects,
155
+ css,
156
+ cx,
157
+ keyframes,
158
+ rawCssString,
159
+ viewTransition
160
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var hooks_exports = {};
20
+ __export(hooks_exports, {
21
+ FormContext: () => FormContext,
22
+ registerAction: () => registerAction,
23
+ useActionState: () => useActionState,
24
+ useFormStatus: () => useFormStatus,
25
+ useOptimistic: () => useOptimistic
26
+ });
27
+ module.exports = __toCommonJS(hooks_exports);
28
+ var import_context = require("../../context");
29
+ var import_context2 = require("../context");
30
+ var import_hooks = require("../../hooks");
31
+ var import_constants = require("../../constants");
32
+ const FormContext = (0, import_context2.createContext)({
33
+ pending: false,
34
+ data: null,
35
+ method: null,
36
+ action: null
37
+ });
38
+ const actions = /* @__PURE__ */ new Set();
39
+ const registerAction = (action) => {
40
+ actions.add(action);
41
+ action.finally(() => actions.delete(action));
42
+ };
43
+ const useFormStatus = () => {
44
+ return (0, import_context.useContext)(FormContext);
45
+ };
46
+ const useOptimistic = (state, updateState) => {
47
+ const [optimisticState, setOptimisticState] = (0, import_hooks.useState)(state);
48
+ if (actions.size > 0) {
49
+ Promise.all(actions).finally(() => {
50
+ setOptimisticState(state);
51
+ });
52
+ } else {
53
+ setOptimisticState(state);
54
+ }
55
+ const cb = (0, import_hooks.useCallback)((newData) => {
56
+ setOptimisticState((currentState) => updateState(currentState, newData));
57
+ }, []);
58
+ return [optimisticState, cb];
59
+ };
60
+ const useActionState = (fn, initialState, permalink) => {
61
+ const [state, setState] = (0, import_hooks.useState)(initialState);
62
+ const actionState = async (data) => {
63
+ setState(await fn(state, data));
64
+ };
65
+ actionState[import_constants.PERMALINK] = permalink;
66
+ return [state, actionState];
67
+ };
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ FormContext,
71
+ registerAction,
72
+ useActionState,
73
+ useFormStatus,
74
+ useOptimistic
75
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/index.js ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var dom_exports = {};
20
+ __export(dom_exports, {
21
+ Children: () => import_children.Children,
22
+ ErrorBoundary: () => import_components.ErrorBoundary,
23
+ Fragment: () => import_jsx_runtime.Fragment,
24
+ StrictMode: () => import_jsx_runtime.Fragment,
25
+ Suspense: () => import_components.Suspense,
26
+ cloneElement: () => cloneElement,
27
+ createContext: () => import_context2.createContext,
28
+ createElement: () => createElement,
29
+ createPortal: () => import_render.createPortal,
30
+ createRef: () => import_hooks.createRef,
31
+ default: () => dom_default,
32
+ flushSync: () => import_render.flushSync,
33
+ forwardRef: () => import_hooks.forwardRef,
34
+ isValidElement: () => import_base.isValidElement,
35
+ jsx: () => createElement,
36
+ memo: () => import_base.memo,
37
+ render: () => import_render2.render,
38
+ startTransition: () => import_hooks.startTransition,
39
+ startViewTransition: () => import_hooks.startViewTransition,
40
+ use: () => import_hooks.use,
41
+ useActionState: () => import_hooks2.useActionState,
42
+ useCallback: () => import_hooks.useCallback,
43
+ useContext: () => import_context.useContext,
44
+ useDebugValue: () => import_hooks.useDebugValue,
45
+ useDeferredValue: () => import_hooks.useDeferredValue,
46
+ useEffect: () => import_hooks.useEffect,
47
+ useFormStatus: () => import_hooks2.useFormStatus,
48
+ useId: () => import_hooks.useId,
49
+ useImperativeHandle: () => import_hooks.useImperativeHandle,
50
+ useInsertionEffect: () => import_hooks.useInsertionEffect,
51
+ useLayoutEffect: () => import_hooks.useLayoutEffect,
52
+ useMemo: () => import_hooks.useMemo,
53
+ useOptimistic: () => import_hooks2.useOptimistic,
54
+ useReducer: () => import_hooks.useReducer,
55
+ useRef: () => import_hooks.useRef,
56
+ useState: () => import_hooks.useState,
57
+ useSyncExternalStore: () => import_hooks.useSyncExternalStore,
58
+ useTransition: () => import_hooks.useTransition,
59
+ useViewTransition: () => import_hooks.useViewTransition,
60
+ version: () => import_base.reactAPICompatVersion
61
+ });
62
+ module.exports = __toCommonJS(dom_exports);
63
+ var import_base = require("../base");
64
+ var import_children = require("../children");
65
+ var import_context = require("../context");
66
+ var import_hooks = require("../hooks");
67
+ var import_hooks2 = require("./hooks");
68
+ var import_components = require("./components");
69
+ var import_context2 = require("./context");
70
+ var import_jsx_runtime = require("./jsx-runtime");
71
+ var import_render = require("./render");
72
+ var import_render2 = require("./render");
73
+ const createElement = (tag, props, ...children) => {
74
+ const jsxProps = props ? { ...props } : {};
75
+ if (children.length) {
76
+ jsxProps.children = children.length === 1 ? children[0] : children;
77
+ }
78
+ let key = void 0;
79
+ if ("key" in jsxProps) {
80
+ key = jsxProps.key;
81
+ delete jsxProps.key;
82
+ }
83
+ return (0, import_jsx_runtime.jsx)(tag, jsxProps, key);
84
+ };
85
+ const cloneElement = (element, props, ...children) => {
86
+ return (0, import_jsx_runtime.jsx)(
87
+ element.tag,
88
+ {
89
+ ...element.props,
90
+ ...props,
91
+ children: children.length ? children : element.props.children
92
+ },
93
+ element.key
94
+ );
95
+ };
96
+ var dom_default = {
97
+ version: import_base.reactAPICompatVersion,
98
+ useState: import_hooks.useState,
99
+ useEffect: import_hooks.useEffect,
100
+ useRef: import_hooks.useRef,
101
+ useCallback: import_hooks.useCallback,
102
+ use: import_hooks.use,
103
+ startTransition: import_hooks.startTransition,
104
+ useTransition: import_hooks.useTransition,
105
+ useDeferredValue: import_hooks.useDeferredValue,
106
+ startViewTransition: import_hooks.startViewTransition,
107
+ useViewTransition: import_hooks.useViewTransition,
108
+ useMemo: import_hooks.useMemo,
109
+ useLayoutEffect: import_hooks.useLayoutEffect,
110
+ useInsertionEffect: import_hooks.useInsertionEffect,
111
+ useReducer: import_hooks.useReducer,
112
+ useId: import_hooks.useId,
113
+ useDebugValue: import_hooks.useDebugValue,
114
+ createRef: import_hooks.createRef,
115
+ forwardRef: import_hooks.forwardRef,
116
+ useImperativeHandle: import_hooks.useImperativeHandle,
117
+ useSyncExternalStore: import_hooks.useSyncExternalStore,
118
+ useFormStatus: import_hooks2.useFormStatus,
119
+ useActionState: import_hooks2.useActionState,
120
+ useOptimistic: import_hooks2.useOptimistic,
121
+ Suspense: import_components.Suspense,
122
+ ErrorBoundary: import_components.ErrorBoundary,
123
+ createContext: import_context2.createContext,
124
+ useContext: import_context.useContext,
125
+ memo: import_base.memo,
126
+ isValidElement: import_base.isValidElement,
127
+ createElement,
128
+ cloneElement,
129
+ Children: import_children.Children,
130
+ Fragment: import_jsx_runtime.Fragment,
131
+ StrictMode: import_jsx_runtime.Fragment,
132
+ flushSync: import_render.flushSync,
133
+ createPortal: import_render.createPortal
134
+ };
135
+ // Annotate the CommonJS export names for ESM import in node:
136
+ 0 && (module.exports = {
137
+ Children,
138
+ ErrorBoundary,
139
+ Fragment,
140
+ StrictMode,
141
+ Suspense,
142
+ cloneElement,
143
+ createContext,
144
+ createElement,
145
+ createPortal,
146
+ createRef,
147
+ flushSync,
148
+ forwardRef,
149
+ isValidElement,
150
+ jsx,
151
+ memo,
152
+ render,
153
+ startTransition,
154
+ startViewTransition,
155
+ use,
156
+ useActionState,
157
+ useCallback,
158
+ useContext,
159
+ useDebugValue,
160
+ useDeferredValue,
161
+ useEffect,
162
+ useFormStatus,
163
+ useId,
164
+ useImperativeHandle,
165
+ useInsertionEffect,
166
+ useLayoutEffect,
167
+ useMemo,
168
+ useOptimistic,
169
+ useReducer,
170
+ useRef,
171
+ useState,
172
+ useSyncExternalStore,
173
+ useTransition,
174
+ useViewTransition,
175
+ version
176
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var components_exports = {};
20
+ __export(components_exports, {
21
+ button: () => button,
22
+ clearCache: () => clearCache,
23
+ composeRef: () => composeRef,
24
+ form: () => form,
25
+ input: () => input,
26
+ link: () => link,
27
+ meta: () => meta,
28
+ script: () => script,
29
+ style: () => style,
30
+ title: () => title
31
+ });
32
+ module.exports = __toCommonJS(components_exports);
33
+ var import_render = require("../render");
34
+ var import_context = require("../../context");
35
+ var import_hooks = require("../../hooks");
36
+ var import_hooks2 = require("../hooks");
37
+ var import_common = require("../../intrinsic-element/common");
38
+ const clearCache = () => {
39
+ blockingPromiseMap = /* @__PURE__ */ Object.create(null);
40
+ createdElements = /* @__PURE__ */ Object.create(null);
41
+ };
42
+ const composeRef = (ref, cb) => {
43
+ return (0, import_hooks.useMemo)(
44
+ () => (e) => {
45
+ let refCleanup;
46
+ if (ref) {
47
+ if (typeof ref === "function") {
48
+ refCleanup = ref(e) || (() => {
49
+ ref(null);
50
+ });
51
+ } else if (ref && "current" in ref) {
52
+ ref.current = e;
53
+ refCleanup = () => {
54
+ ref.current = null;
55
+ };
56
+ }
57
+ }
58
+ const cbCleanup = cb(e);
59
+ return () => {
60
+ cbCleanup?.();
61
+ refCleanup?.();
62
+ };
63
+ },
64
+ [ref]
65
+ );
66
+ };
67
+ let blockingPromiseMap = /* @__PURE__ */ Object.create(null);
68
+ let createdElements = /* @__PURE__ */ Object.create(null);
69
+ const documentMetadataTag = (tag, props, preserveNodeType, supportSort, supportBlocking) => {
70
+ if (props?.itemProp) {
71
+ return {
72
+ tag,
73
+ props,
74
+ type: tag,
75
+ ref: props.ref
76
+ };
77
+ }
78
+ const head = document.head;
79
+ let { onLoad, onError, precedence, blocking, ...restProps } = props;
80
+ let element = null;
81
+ let created = false;
82
+ const deDupeKeys = import_common.deDupeKeyMap[tag];
83
+ let existingElements = void 0;
84
+ if (deDupeKeys.length > 0) {
85
+ const tags = head.querySelectorAll(tag);
86
+ LOOP:
87
+ for (const e of tags) {
88
+ for (const key of import_common.deDupeKeyMap[tag]) {
89
+ if (e.getAttribute(key) === props[key]) {
90
+ element = e;
91
+ break LOOP;
92
+ }
93
+ }
94
+ }
95
+ if (!element) {
96
+ const cacheKey = deDupeKeys.reduce(
97
+ (acc, key) => props[key] === void 0 ? acc : `${acc}-${key}-${props[key]}`,
98
+ tag
99
+ );
100
+ created = !createdElements[cacheKey];
101
+ element = createdElements[cacheKey] ||= (() => {
102
+ const e = document.createElement(tag);
103
+ for (const key of deDupeKeys) {
104
+ if (props[key] !== void 0) {
105
+ e.setAttribute(key, props[key]);
106
+ }
107
+ if (props.rel) {
108
+ e.setAttribute("rel", props.rel);
109
+ }
110
+ }
111
+ return e;
112
+ })();
113
+ }
114
+ } else {
115
+ existingElements = head.querySelectorAll(tag);
116
+ }
117
+ precedence = supportSort ? precedence ?? "" : void 0;
118
+ if (supportSort) {
119
+ restProps[import_common.dataPrecedenceAttr] = precedence;
120
+ }
121
+ const insert = (0, import_hooks.useCallback)(
122
+ (e) => {
123
+ if (deDupeKeys.length > 0) {
124
+ let found = false;
125
+ for (const existingElement of head.querySelectorAll(tag)) {
126
+ if (found && existingElement.getAttribute(import_common.dataPrecedenceAttr) !== precedence) {
127
+ head.insertBefore(e, existingElement);
128
+ return;
129
+ }
130
+ if (existingElement.getAttribute(import_common.dataPrecedenceAttr) === precedence) {
131
+ found = true;
132
+ }
133
+ }
134
+ head.appendChild(e);
135
+ } else if (existingElements) {
136
+ let found = false;
137
+ for (const existingElement of existingElements) {
138
+ if (existingElement === e) {
139
+ found = true;
140
+ break;
141
+ }
142
+ }
143
+ if (!found) {
144
+ head.insertBefore(
145
+ e,
146
+ head.contains(existingElements[0]) ? existingElements[0] : head.querySelector(tag)
147
+ );
148
+ }
149
+ existingElements = void 0;
150
+ }
151
+ },
152
+ [precedence]
153
+ );
154
+ const ref = composeRef(props.ref, (e) => {
155
+ const key = deDupeKeys[0];
156
+ if (preserveNodeType === 2) {
157
+ e.innerHTML = "";
158
+ }
159
+ if (created || existingElements) {
160
+ insert(e);
161
+ }
162
+ if (!onError && !onLoad) {
163
+ return;
164
+ }
165
+ let promise = blockingPromiseMap[e.getAttribute(key)] ||= new Promise(
166
+ (resolve, reject) => {
167
+ e.addEventListener("load", resolve);
168
+ e.addEventListener("error", reject);
169
+ }
170
+ );
171
+ if (onLoad) {
172
+ promise = promise.then(onLoad);
173
+ }
174
+ if (onError) {
175
+ promise = promise.catch(onError);
176
+ }
177
+ promise.catch(() => {
178
+ });
179
+ });
180
+ if (supportBlocking && blocking === "render") {
181
+ const key = import_common.deDupeKeyMap[tag][0];
182
+ if (props[key]) {
183
+ const value = props[key];
184
+ const promise = blockingPromiseMap[value] ||= new Promise((resolve, reject) => {
185
+ insert(element);
186
+ element.addEventListener("load", resolve);
187
+ element.addEventListener("error", reject);
188
+ });
189
+ (0, import_hooks.use)(promise);
190
+ }
191
+ }
192
+ const jsxNode = {
193
+ tag,
194
+ type: tag,
195
+ props: {
196
+ ...restProps,
197
+ ref
198
+ },
199
+ ref
200
+ };
201
+ jsxNode.p = preserveNodeType;
202
+ if (element) {
203
+ jsxNode.e = element;
204
+ }
205
+ return (0, import_render.createPortal)(
206
+ jsxNode,
207
+ head
208
+ );
209
+ };
210
+ const title = (props) => {
211
+ const nameSpaceContext = (0, import_render.getNameSpaceContext)();
212
+ const ns = nameSpaceContext && (0, import_context.useContext)(nameSpaceContext);
213
+ if (ns?.endsWith("svg")) {
214
+ return {
215
+ tag: "title",
216
+ props,
217
+ type: "title",
218
+ ref: props.ref
219
+ };
220
+ }
221
+ return documentMetadataTag("title", props, void 0, false, false);
222
+ };
223
+ const script = (props) => {
224
+ if (!props || ["src", "async"].some((k) => !props[k])) {
225
+ return {
226
+ tag: "script",
227
+ props,
228
+ type: "script",
229
+ ref: props.ref
230
+ };
231
+ }
232
+ return documentMetadataTag("script", props, 1, false, true);
233
+ };
234
+ const style = (props) => {
235
+ if (!props || !["href", "precedence"].every((k) => k in props)) {
236
+ return {
237
+ tag: "style",
238
+ props,
239
+ type: "style",
240
+ ref: props.ref
241
+ };
242
+ }
243
+ props["data-href"] = props.href;
244
+ delete props.href;
245
+ return documentMetadataTag("style", props, 2, true, true);
246
+ };
247
+ const link = (props) => {
248
+ if (!props || ["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) {
249
+ return {
250
+ tag: "link",
251
+ props,
252
+ type: "link",
253
+ ref: props.ref
254
+ };
255
+ }
256
+ return documentMetadataTag("link", props, 1, "precedence" in props, true);
257
+ };
258
+ const meta = (props) => {
259
+ return documentMetadataTag("meta", props, void 0, false, false);
260
+ };
261
+ const customEventFormAction = Symbol();
262
+ const form = (props) => {
263
+ const { action, ...restProps } = props;
264
+ if (typeof action !== "function") {
265
+ ;
266
+ restProps.action = action;
267
+ }
268
+ const [state, setState] = (0, import_hooks.useState)([null, false]);
269
+ const onSubmit = (0, import_hooks.useCallback)(
270
+ async (ev) => {
271
+ const currentAction = ev.isTrusted ? action : ev.detail[customEventFormAction];
272
+ if (typeof currentAction !== "function") {
273
+ return;
274
+ }
275
+ ev.preventDefault();
276
+ const formData = new FormData(ev.target);
277
+ setState([formData, true]);
278
+ const actionRes = currentAction(formData);
279
+ if (actionRes instanceof Promise) {
280
+ (0, import_hooks2.registerAction)(actionRes);
281
+ await actionRes;
282
+ }
283
+ setState([null, true]);
284
+ },
285
+ []
286
+ );
287
+ const ref = composeRef(props.ref, (el) => {
288
+ el.addEventListener("submit", onSubmit);
289
+ return () => {
290
+ el.removeEventListener("submit", onSubmit);
291
+ };
292
+ });
293
+ const [data, isDirty] = state;
294
+ state[1] = false;
295
+ return {
296
+ tag: import_hooks2.FormContext,
297
+ props: {
298
+ value: {
299
+ pending: data !== null,
300
+ data,
301
+ method: data ? "post" : null,
302
+ action: data ? action : null
303
+ },
304
+ children: {
305
+ tag: "form",
306
+ props: {
307
+ ...restProps,
308
+ ref
309
+ },
310
+ type: "form",
311
+ ref
312
+ }
313
+ },
314
+ f: isDirty
315
+ };
316
+ };
317
+ const formActionableElement = (tag, {
318
+ formAction,
319
+ ...props
320
+ }) => {
321
+ if (typeof formAction === "function") {
322
+ const onClick = (0, import_hooks.useCallback)((ev) => {
323
+ ev.preventDefault();
324
+ ev.currentTarget.form.dispatchEvent(
325
+ new CustomEvent("submit", { detail: { [customEventFormAction]: formAction } })
326
+ );
327
+ }, []);
328
+ props.ref = composeRef(props.ref, (el) => {
329
+ el.addEventListener("click", onClick);
330
+ return () => {
331
+ el.removeEventListener("click", onClick);
332
+ };
333
+ });
334
+ }
335
+ return {
336
+ tag,
337
+ props,
338
+ type: tag,
339
+ ref: props.ref
340
+ };
341
+ };
342
+ const input = (props) => formActionableElement("input", props);
343
+ const button = (props) => formActionableElement("button", props);
344
+ Object.assign(import_common.domRenderers, {
345
+ title,
346
+ script,
347
+ style,
348
+ link,
349
+ meta,
350
+ form,
351
+ input,
352
+ button
353
+ });
354
+ // Annotate the CommonJS export names for ESM import in node:
355
+ 0 && (module.exports = {
356
+ button,
357
+ clearCache,
358
+ composeRef,
359
+ form,
360
+ input,
361
+ link,
362
+ meta,
363
+ script,
364
+ style,
365
+ title
366
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var jsx_dev_runtime_exports = {};
26
+ __export(jsx_dev_runtime_exports, {
27
+ Fragment: () => Fragment,
28
+ jsxDEV: () => jsxDEV
29
+ });
30
+ module.exports = __toCommonJS(jsx_dev_runtime_exports);
31
+ var intrinsicElementTags = __toESM(require("./intrinsic-element/components"), 1);
32
+ const jsxDEV = (tag, props, key) => {
33
+ if (typeof tag === "string" && intrinsicElementTags[tag]) {
34
+ tag = intrinsicElementTags[tag];
35
+ }
36
+ return {
37
+ tag,
38
+ type: tag,
39
+ props,
40
+ key,
41
+ ref: props.ref
42
+ };
43
+ };
44
+ const Fragment = (props) => jsxDEV("", props, void 0);
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ Fragment,
48
+ jsxDEV
49
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jsx_runtime_exports = {};
20
+ __export(jsx_runtime_exports, {
21
+ Fragment: () => import_jsx_dev_runtime.Fragment,
22
+ jsx: () => import_jsx_dev_runtime.jsxDEV,
23
+ jsxs: () => import_jsx_dev_runtime2.jsxDEV
24
+ });
25
+ module.exports = __toCommonJS(jsx_runtime_exports);
26
+ var import_jsx_dev_runtime = require("./jsx-dev-runtime");
27
+ var import_jsx_dev_runtime2 = require("./jsx-dev-runtime");
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ Fragment,
31
+ jsx,
32
+ jsxs
33
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/render.js ADDED
@@ -0,0 +1,609 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var render_exports = {};
20
+ __export(render_exports, {
21
+ build: () => build,
22
+ buildDataStack: () => buildDataStack,
23
+ buildNode: () => buildNode,
24
+ createPortal: () => createPortal,
25
+ flushSync: () => flushSync,
26
+ getNameSpaceContext: () => getNameSpaceContext,
27
+ render: () => render,
28
+ renderNode: () => renderNode,
29
+ update: () => update
30
+ });
31
+ module.exports = __toCommonJS(render_exports);
32
+ var import_children = require("../children");
33
+ var import_constants = require("../constants");
34
+ var import_context = require("../context");
35
+ var import_hooks = require("../hooks");
36
+ var import_utils = require("../utils");
37
+ var import_context2 = require("./context");
38
+ const HONO_PORTAL_ELEMENT = "_hp";
39
+ const eventAliasMap = {
40
+ Change: "Input",
41
+ DoubleClick: "DblClick"
42
+ };
43
+ const nameSpaceMap = {
44
+ svg: "2000/svg",
45
+ math: "1998/Math/MathML"
46
+ };
47
+ const buildDataStack = [];
48
+ const refCleanupMap = /* @__PURE__ */ new WeakMap();
49
+ let nameSpaceContext = void 0;
50
+ const getNameSpaceContext = () => nameSpaceContext;
51
+ const isNodeString = (node) => "t" in node;
52
+ const eventCache = {
53
+ onClick: ["click", false]
54
+ };
55
+ const getEventSpec = (key) => {
56
+ if (!key.startsWith("on")) {
57
+ return void 0;
58
+ }
59
+ if (eventCache[key]) {
60
+ return eventCache[key];
61
+ }
62
+ const match = key.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);
63
+ if (match) {
64
+ const [, eventName, capture] = match;
65
+ return eventCache[key] = [(eventAliasMap[eventName] || eventName).toLowerCase(), !!capture];
66
+ }
67
+ return void 0;
68
+ };
69
+ const toAttributeName = (element, key) => nameSpaceContext && element instanceof SVGElement && /[A-Z]/.test(key) && (key in element.style || key.match(/^(?:o|pai|str|u|ve)/)) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key;
70
+ const applyProps = (container, attributes, oldAttributes) => {
71
+ attributes ||= {};
72
+ for (let key in attributes) {
73
+ const value = attributes[key];
74
+ if (key !== "children" && (!oldAttributes || oldAttributes[key] !== value)) {
75
+ key = (0, import_utils.normalizeIntrinsicElementKey)(key);
76
+ const eventSpec = getEventSpec(key);
77
+ if (eventSpec) {
78
+ if (oldAttributes?.[key] !== value) {
79
+ if (oldAttributes) {
80
+ container.removeEventListener(eventSpec[0], oldAttributes[key], eventSpec[1]);
81
+ }
82
+ if (value != null) {
83
+ if (typeof value !== "function") {
84
+ throw new Error(`Event handler for "${key}" is not a function`);
85
+ }
86
+ container.addEventListener(eventSpec[0], value, eventSpec[1]);
87
+ }
88
+ }
89
+ } else if (key === "dangerouslySetInnerHTML" && value) {
90
+ container.innerHTML = value.__html;
91
+ } else if (key === "ref") {
92
+ let cleanup;
93
+ if (typeof value === "function") {
94
+ cleanup = value(container) || (() => value(null));
95
+ } else if (value && "current" in value) {
96
+ value.current = container;
97
+ cleanup = () => value.current = null;
98
+ }
99
+ refCleanupMap.set(container, cleanup);
100
+ } else if (key === "style") {
101
+ const style = container.style;
102
+ if (typeof value === "string") {
103
+ style.cssText = value;
104
+ } else {
105
+ style.cssText = "";
106
+ if (value != null) {
107
+ (0, import_utils.styleObjectForEach)(value, style.setProperty.bind(style));
108
+ }
109
+ }
110
+ } else {
111
+ if (key === "value") {
112
+ const nodeName = container.nodeName;
113
+ if (nodeName === "INPUT" || nodeName === "TEXTAREA" || nodeName === "SELECT") {
114
+ ;
115
+ container.value = value === null || value === void 0 || value === false ? null : value;
116
+ if (nodeName === "TEXTAREA") {
117
+ container.textContent = value;
118
+ continue;
119
+ } else if (nodeName === "SELECT") {
120
+ if (container.selectedIndex === -1) {
121
+ ;
122
+ container.selectedIndex = 0;
123
+ }
124
+ continue;
125
+ }
126
+ }
127
+ } else if (key === "checked" && container.nodeName === "INPUT" || key === "selected" && container.nodeName === "OPTION") {
128
+ ;
129
+ container[key] = value;
130
+ }
131
+ const k = toAttributeName(container, key);
132
+ if (value === null || value === void 0 || value === false) {
133
+ container.removeAttribute(k);
134
+ } else if (value === true) {
135
+ container.setAttribute(k, "");
136
+ } else if (typeof value === "string" || typeof value === "number") {
137
+ container.setAttribute(k, value);
138
+ } else {
139
+ container.setAttribute(k, value.toString());
140
+ }
141
+ }
142
+ }
143
+ }
144
+ if (oldAttributes) {
145
+ for (let key in oldAttributes) {
146
+ const value = oldAttributes[key];
147
+ if (key !== "children" && !(key in attributes)) {
148
+ key = (0, import_utils.normalizeIntrinsicElementKey)(key);
149
+ const eventSpec = getEventSpec(key);
150
+ if (eventSpec) {
151
+ container.removeEventListener(eventSpec[0], value, eventSpec[1]);
152
+ } else if (key === "ref") {
153
+ refCleanupMap.get(container)?.();
154
+ } else {
155
+ container.removeAttribute(toAttributeName(container, key));
156
+ }
157
+ }
158
+ }
159
+ }
160
+ };
161
+ const invokeTag = (context, node) => {
162
+ node[import_constants.DOM_STASH][0] = 0;
163
+ buildDataStack.push([context, node]);
164
+ const func = node.tag[import_constants.DOM_RENDERER] || node.tag;
165
+ const props = func.defaultProps ? {
166
+ ...func.defaultProps,
167
+ ...node.props
168
+ } : node.props;
169
+ try {
170
+ return [func.call(null, props)];
171
+ } finally {
172
+ buildDataStack.pop();
173
+ }
174
+ };
175
+ const getNextChildren = (node, container, nextChildren, childrenToRemove, callbacks) => {
176
+ if (node.vR?.length) {
177
+ childrenToRemove.push(...node.vR);
178
+ delete node.vR;
179
+ }
180
+ if (typeof node.tag === "function") {
181
+ node[import_constants.DOM_STASH][1][import_hooks.STASH_EFFECT]?.forEach((data) => callbacks.push(data));
182
+ }
183
+ node.vC.forEach((child) => {
184
+ if (isNodeString(child)) {
185
+ nextChildren.push(child);
186
+ } else {
187
+ if (typeof child.tag === "function" || child.tag === "") {
188
+ child.c = container;
189
+ const currentNextChildrenIndex = nextChildren.length;
190
+ getNextChildren(child, container, nextChildren, childrenToRemove, callbacks);
191
+ if (child.s) {
192
+ for (let i = currentNextChildrenIndex; i < nextChildren.length; i++) {
193
+ nextChildren[i].s = true;
194
+ }
195
+ child.s = false;
196
+ }
197
+ } else {
198
+ nextChildren.push(child);
199
+ if (child.vR?.length) {
200
+ childrenToRemove.push(...child.vR);
201
+ delete child.vR;
202
+ }
203
+ }
204
+ }
205
+ });
206
+ };
207
+ const findInsertBefore = (node) => {
208
+ for (; ; node = node.tag === HONO_PORTAL_ELEMENT || !node.vC || !node.pP ? node.nN : node.vC[0]) {
209
+ if (!node) {
210
+ return null;
211
+ }
212
+ if (node.tag !== HONO_PORTAL_ELEMENT && node.e) {
213
+ return node.e;
214
+ }
215
+ }
216
+ };
217
+ const removeNode = (node) => {
218
+ if (!isNodeString(node)) {
219
+ node[import_constants.DOM_STASH]?.[1][import_hooks.STASH_EFFECT]?.forEach((data) => data[2]?.());
220
+ refCleanupMap.get(node.e)?.();
221
+ if (node.p === 2) {
222
+ node.vC?.forEach((n) => n.p = 2);
223
+ }
224
+ node.vC?.forEach(removeNode);
225
+ }
226
+ if (!node.p) {
227
+ node.e?.remove();
228
+ delete node.e;
229
+ }
230
+ if (typeof node.tag === "function") {
231
+ updateMap.delete(node);
232
+ fallbackUpdateFnArrayMap.delete(node);
233
+ delete node[import_constants.DOM_STASH][3];
234
+ node.a = true;
235
+ }
236
+ };
237
+ const apply = (node, container, isNew) => {
238
+ node.c = container;
239
+ applyNodeObject(node, container, isNew);
240
+ };
241
+ const findChildNodeIndex = (childNodes, child) => {
242
+ if (!child) {
243
+ return;
244
+ }
245
+ for (let i = 0, len = childNodes.length; i < len; i++) {
246
+ if (childNodes[i] === child) {
247
+ return i;
248
+ }
249
+ }
250
+ return;
251
+ };
252
+ const cancelBuild = Symbol();
253
+ const applyNodeObject = (node, container, isNew) => {
254
+ const next = [];
255
+ const remove = [];
256
+ const callbacks = [];
257
+ getNextChildren(node, container, next, remove, callbacks);
258
+ remove.forEach(removeNode);
259
+ const childNodes = isNew ? void 0 : container.childNodes;
260
+ let offset;
261
+ if (isNew) {
262
+ offset = -1;
263
+ } else {
264
+ offset = (childNodes.length && (findChildNodeIndex(childNodes, findInsertBefore(node.nN)) ?? findChildNodeIndex(
265
+ childNodes,
266
+ next.find((n) => n.tag !== HONO_PORTAL_ELEMENT && n.e)?.e
267
+ ))) ?? -1;
268
+ if (offset === -1) {
269
+ isNew = true;
270
+ }
271
+ }
272
+ for (let i = 0, len = next.length; i < len; i++, offset++) {
273
+ const child = next[i];
274
+ let el;
275
+ if (child.s && child.e) {
276
+ el = child.e;
277
+ child.s = false;
278
+ } else {
279
+ const isNewLocal = isNew || !child.e;
280
+ if (isNodeString(child)) {
281
+ if (child.e && child.d) {
282
+ child.e.textContent = child.t;
283
+ }
284
+ child.d = false;
285
+ el = child.e ||= document.createTextNode(child.t);
286
+ } else {
287
+ el = child.e ||= child.n ? document.createElementNS(child.n, child.tag) : document.createElement(child.tag);
288
+ applyProps(el, child.props, child.pP);
289
+ applyNodeObject(child, el, isNewLocal);
290
+ }
291
+ }
292
+ if (child.tag === HONO_PORTAL_ELEMENT) {
293
+ offset--;
294
+ } else if (isNew) {
295
+ if (!el.parentNode) {
296
+ container.appendChild(el);
297
+ }
298
+ } else if (childNodes[offset] !== el && childNodes[offset - 1] !== el) {
299
+ if (childNodes[offset + 1] === el) {
300
+ container.appendChild(childNodes[offset]);
301
+ } else {
302
+ container.insertBefore(el, childNodes[offset] || null);
303
+ }
304
+ }
305
+ }
306
+ if (node.pP) {
307
+ delete node.pP;
308
+ }
309
+ if (callbacks.length) {
310
+ const useLayoutEffectCbs = [];
311
+ const useEffectCbs = [];
312
+ callbacks.forEach(([, useLayoutEffectCb, , useEffectCb, useInsertionEffectCb]) => {
313
+ if (useLayoutEffectCb) {
314
+ useLayoutEffectCbs.push(useLayoutEffectCb);
315
+ }
316
+ if (useEffectCb) {
317
+ useEffectCbs.push(useEffectCb);
318
+ }
319
+ useInsertionEffectCb?.();
320
+ });
321
+ useLayoutEffectCbs.forEach((cb) => cb());
322
+ if (useEffectCbs.length) {
323
+ requestAnimationFrame(() => {
324
+ useEffectCbs.forEach((cb) => cb());
325
+ });
326
+ }
327
+ }
328
+ };
329
+ const fallbackUpdateFnArrayMap = /* @__PURE__ */ new WeakMap();
330
+ const build = (context, node, children) => {
331
+ const buildWithPreviousChildren = !children && node.pC;
332
+ if (children) {
333
+ node.pC ||= node.vC;
334
+ }
335
+ let foundErrorHandler;
336
+ try {
337
+ children ||= typeof node.tag == "function" ? invokeTag(context, node) : (0, import_children.toArray)(node.props.children);
338
+ if (children[0]?.tag === "" && children[0][import_constants.DOM_ERROR_HANDLER]) {
339
+ foundErrorHandler = children[0][import_constants.DOM_ERROR_HANDLER];
340
+ context[5].push([context, foundErrorHandler, node]);
341
+ }
342
+ const oldVChildren = buildWithPreviousChildren ? [...node.pC] : node.vC ? [...node.vC] : void 0;
343
+ const vChildren = [];
344
+ let prevNode;
345
+ for (let i = 0; i < children.length; i++) {
346
+ if (Array.isArray(children[i])) {
347
+ children.splice(i, 1, ...children[i].flat());
348
+ }
349
+ let child = buildNode(children[i]);
350
+ if (child) {
351
+ if (typeof child.tag === "function" && !child.tag[import_constants.DOM_INTERNAL_TAG]) {
352
+ if (import_context.globalContexts.length > 0) {
353
+ child[import_constants.DOM_STASH][2] = import_context.globalContexts.map((c) => [c, c.values.at(-1)]);
354
+ }
355
+ if (context[5]?.length) {
356
+ child[import_constants.DOM_STASH][3] = context[5].at(-1);
357
+ }
358
+ }
359
+ let oldChild;
360
+ if (oldVChildren && oldVChildren.length) {
361
+ const i2 = oldVChildren.findIndex(
362
+ isNodeString(child) ? (c) => isNodeString(c) : child.key !== void 0 ? (c) => c.key === child.key && c.tag === child.tag : (c) => c.tag === child.tag
363
+ );
364
+ if (i2 !== -1) {
365
+ oldChild = oldVChildren[i2];
366
+ oldVChildren.splice(i2, 1);
367
+ }
368
+ }
369
+ if (oldChild) {
370
+ if (isNodeString(child)) {
371
+ if (oldChild.t !== child.t) {
372
+ ;
373
+ oldChild.t = child.t;
374
+ oldChild.d = true;
375
+ }
376
+ child = oldChild;
377
+ } else {
378
+ const pP = oldChild.pP = oldChild.props;
379
+ oldChild.props = child.props;
380
+ oldChild.f ||= child.f || node.f;
381
+ if (typeof child.tag === "function") {
382
+ oldChild[import_constants.DOM_STASH][2] = child[import_constants.DOM_STASH][2] || [];
383
+ oldChild[import_constants.DOM_STASH][3] = child[import_constants.DOM_STASH][3];
384
+ if (!oldChild.f) {
385
+ const prevPropsKeys = Object.keys(pP);
386
+ const currentProps = oldChild.props;
387
+ if (prevPropsKeys.length === Object.keys(currentProps).length && prevPropsKeys.every((k) => k in currentProps && currentProps[k] === pP[k])) {
388
+ oldChild.s = true;
389
+ }
390
+ }
391
+ }
392
+ child = oldChild;
393
+ }
394
+ } else if (!isNodeString(child) && nameSpaceContext) {
395
+ const ns = (0, import_context.useContext)(nameSpaceContext);
396
+ if (ns) {
397
+ child.n = ns;
398
+ }
399
+ }
400
+ if (!isNodeString(child) && !child.s) {
401
+ build(context, child);
402
+ delete child.f;
403
+ }
404
+ vChildren.push(child);
405
+ if (prevNode && !prevNode.s && !child.s) {
406
+ for (let p = prevNode; p && !isNodeString(p); p = p.vC?.at(-1)) {
407
+ p.nN = child;
408
+ }
409
+ }
410
+ prevNode = child;
411
+ }
412
+ }
413
+ node.vR = buildWithPreviousChildren ? [...node.vC, ...oldVChildren || []] : oldVChildren || [];
414
+ node.vC = vChildren;
415
+ if (buildWithPreviousChildren) {
416
+ delete node.pC;
417
+ }
418
+ } catch (e) {
419
+ node.f = true;
420
+ if (e === cancelBuild) {
421
+ if (foundErrorHandler) {
422
+ return;
423
+ } else {
424
+ throw e;
425
+ }
426
+ }
427
+ const [errorHandlerContext, errorHandler, errorHandlerNode] = node[import_constants.DOM_STASH]?.[3] || [];
428
+ if (errorHandler) {
429
+ const fallbackUpdateFn = () => update([0, false, context[2]], errorHandlerNode);
430
+ const fallbackUpdateFnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode) || [];
431
+ fallbackUpdateFnArray.push(fallbackUpdateFn);
432
+ fallbackUpdateFnArrayMap.set(errorHandlerNode, fallbackUpdateFnArray);
433
+ const fallback = errorHandler(e, () => {
434
+ const fnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode);
435
+ if (fnArray) {
436
+ const i = fnArray.indexOf(fallbackUpdateFn);
437
+ if (i !== -1) {
438
+ fnArray.splice(i, 1);
439
+ return fallbackUpdateFn();
440
+ }
441
+ }
442
+ });
443
+ if (fallback) {
444
+ if (context[0] === 1) {
445
+ context[1] = true;
446
+ } else {
447
+ build(context, errorHandlerNode, [fallback]);
448
+ if ((errorHandler.length === 1 || context !== errorHandlerContext) && errorHandlerNode.c) {
449
+ apply(errorHandlerNode, errorHandlerNode.c, false);
450
+ return;
451
+ }
452
+ }
453
+ throw cancelBuild;
454
+ }
455
+ }
456
+ throw e;
457
+ } finally {
458
+ if (foundErrorHandler) {
459
+ context[5].pop();
460
+ }
461
+ }
462
+ };
463
+ const buildNode = (node) => {
464
+ if (node === void 0 || node === null || typeof node === "boolean") {
465
+ return void 0;
466
+ } else if (typeof node === "string" || typeof node === "number") {
467
+ return { t: node.toString(), d: true };
468
+ } else {
469
+ if ("vR" in node) {
470
+ node = {
471
+ tag: node.tag,
472
+ props: node.props,
473
+ key: node.key,
474
+ f: node.f,
475
+ type: node.tag,
476
+ ref: node.props.ref
477
+ };
478
+ }
479
+ if (typeof node.tag === "function") {
480
+ ;
481
+ node[import_constants.DOM_STASH] = [0, []];
482
+ } else {
483
+ const ns = nameSpaceMap[node.tag];
484
+ if (ns) {
485
+ nameSpaceContext ||= (0, import_context2.createContext)("");
486
+ node.props.children = [
487
+ {
488
+ tag: nameSpaceContext,
489
+ props: {
490
+ value: node.n = `http://www.w3.org/${ns}`,
491
+ children: node.props.children
492
+ }
493
+ }
494
+ ];
495
+ }
496
+ }
497
+ return node;
498
+ }
499
+ };
500
+ const replaceContainer = (node, from, to) => {
501
+ if (node.c === from) {
502
+ node.c = to;
503
+ node.vC.forEach((child) => replaceContainer(child, from, to));
504
+ }
505
+ };
506
+ const updateSync = (context, node) => {
507
+ node[import_constants.DOM_STASH][2]?.forEach(([c, v]) => {
508
+ c.values.push(v);
509
+ });
510
+ try {
511
+ build(context, node, void 0);
512
+ } catch (e) {
513
+ return;
514
+ }
515
+ if (node.a) {
516
+ delete node.a;
517
+ return;
518
+ }
519
+ node[import_constants.DOM_STASH][2]?.forEach(([c]) => {
520
+ c.values.pop();
521
+ });
522
+ if (context[0] !== 1 || !context[1]) {
523
+ apply(node, node.c, false);
524
+ }
525
+ };
526
+ const updateMap = /* @__PURE__ */ new WeakMap();
527
+ const currentUpdateSets = [];
528
+ const update = async (context, node) => {
529
+ context[5] ||= [];
530
+ const existing = updateMap.get(node);
531
+ if (existing) {
532
+ existing[0](void 0);
533
+ }
534
+ let resolve;
535
+ const promise = new Promise((r) => resolve = r);
536
+ updateMap.set(node, [
537
+ resolve,
538
+ () => {
539
+ if (context[2]) {
540
+ context[2](context, node, (context2) => {
541
+ updateSync(context2, node);
542
+ }).then(() => resolve(node));
543
+ } else {
544
+ updateSync(context, node);
545
+ resolve(node);
546
+ }
547
+ }
548
+ ]);
549
+ if (currentUpdateSets.length) {
550
+ ;
551
+ currentUpdateSets.at(-1).add(node);
552
+ } else {
553
+ await Promise.resolve();
554
+ const latest = updateMap.get(node);
555
+ if (latest) {
556
+ updateMap.delete(node);
557
+ latest[1]();
558
+ }
559
+ }
560
+ return promise;
561
+ };
562
+ const renderNode = (node, container) => {
563
+ const context = [];
564
+ context[5] = [];
565
+ context[4] = true;
566
+ build(context, node, void 0);
567
+ context[4] = false;
568
+ const fragment = document.createDocumentFragment();
569
+ apply(node, fragment, true);
570
+ replaceContainer(node, fragment, container);
571
+ container.replaceChildren(fragment);
572
+ };
573
+ const render = (jsxNode, container) => {
574
+ renderNode(buildNode({ tag: "", props: { children: jsxNode } }), container);
575
+ };
576
+ const flushSync = (callback) => {
577
+ const set = /* @__PURE__ */ new Set();
578
+ currentUpdateSets.push(set);
579
+ callback();
580
+ set.forEach((node) => {
581
+ const latest = updateMap.get(node);
582
+ if (latest) {
583
+ updateMap.delete(node);
584
+ latest[1]();
585
+ }
586
+ });
587
+ currentUpdateSets.pop();
588
+ };
589
+ const createPortal = (children, container, key) => ({
590
+ tag: HONO_PORTAL_ELEMENT,
591
+ props: {
592
+ children
593
+ },
594
+ key,
595
+ e: container,
596
+ p: 1
597
+ });
598
+ // Annotate the CommonJS export names for ESM import in node:
599
+ 0 && (module.exports = {
600
+ build,
601
+ buildDataStack,
602
+ buildNode,
603
+ createPortal,
604
+ flushSync,
605
+ getNameSpaceContext,
606
+ render,
607
+ renderNode,
608
+ update
609
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/server.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var server_exports = {};
26
+ __export(server_exports, {
27
+ default: () => server_default,
28
+ renderToReadableStream: () => renderToReadableStream,
29
+ renderToString: () => renderToString,
30
+ version: () => import__.default
31
+ });
32
+ module.exports = __toCommonJS(server_exports);
33
+ var import_streaming = require("../streaming");
34
+ var import__ = __toESM(require("./"), 1);
35
+ const renderToString = (element, options = {}) => {
36
+ if (Object.keys(options).length > 0) {
37
+ console.warn("options are not supported yet");
38
+ }
39
+ const res = element?.toString() ?? "";
40
+ if (typeof res !== "string") {
41
+ throw new Error("Async component is not supported in renderToString");
42
+ }
43
+ return res;
44
+ };
45
+ const renderToReadableStream = async (element, options = {}) => {
46
+ if (Object.keys(options).some((key) => key !== "onError")) {
47
+ console.warn("options are not supported yet, except onError");
48
+ }
49
+ if (!element || typeof element !== "object") {
50
+ element = element?.toString() ?? "";
51
+ }
52
+ return (0, import_streaming.renderToReadableStream)(element, options.onError);
53
+ };
54
+ var server_default = {
55
+ renderToString,
56
+ renderToReadableStream,
57
+ version: import__.default
58
+ };
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ renderToReadableStream,
62
+ renderToString,
63
+ version
64
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/dom/utils.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ setInternalTagFlag: () => setInternalTagFlag
22
+ });
23
+ module.exports = __toCommonJS(utils_exports);
24
+ var import_constants = require("../constants");
25
+ const setInternalTagFlag = (fn) => {
26
+ ;
27
+ fn[import_constants.DOM_INTERNAL_TAG] = true;
28
+ return fn;
29
+ };
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ setInternalTagFlag
33
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/hooks/index.js ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var hooks_exports = {};
20
+ __export(hooks_exports, {
21
+ STASH_EFFECT: () => STASH_EFFECT,
22
+ createRef: () => createRef,
23
+ forwardRef: () => forwardRef,
24
+ startTransition: () => startTransition,
25
+ startViewTransition: () => startViewTransition,
26
+ use: () => use,
27
+ useCallback: () => useCallback,
28
+ useDebugValue: () => useDebugValue,
29
+ useDeferredValue: () => useDeferredValue,
30
+ useEffect: () => useEffect,
31
+ useId: () => useId,
32
+ useImperativeHandle: () => useImperativeHandle,
33
+ useInsertionEffect: () => useInsertionEffect,
34
+ useLayoutEffect: () => useLayoutEffect,
35
+ useMemo: () => useMemo,
36
+ useReducer: () => useReducer,
37
+ useRef: () => useRef,
38
+ useState: () => useState,
39
+ useSyncExternalStore: () => useSyncExternalStore,
40
+ useTransition: () => useTransition,
41
+ useViewTransition: () => useViewTransition
42
+ });
43
+ module.exports = __toCommonJS(hooks_exports);
44
+ var import_constants = require("../constants");
45
+ var import_render = require("../dom/render");
46
+ const STASH_SATE = 0;
47
+ const STASH_EFFECT = 1;
48
+ const STASH_CALLBACK = 2;
49
+ const STASH_MEMO = 3;
50
+ const STASH_REF = 4;
51
+ const resolvedPromiseValueMap = /* @__PURE__ */ new WeakMap();
52
+ const isDepsChanged = (prevDeps, deps) => !prevDeps || !deps || prevDeps.length !== deps.length || deps.some((dep, i) => dep !== prevDeps[i]);
53
+ let viewTransitionState = void 0;
54
+ const documentStartViewTransition = (cb) => {
55
+ if (document?.startViewTransition) {
56
+ return document.startViewTransition(cb);
57
+ } else {
58
+ cb();
59
+ return { finished: Promise.resolve() };
60
+ }
61
+ };
62
+ let updateHook = void 0;
63
+ const viewTransitionHook = (context, node, cb) => {
64
+ const state = [true, false];
65
+ let lastVC = node.vC;
66
+ return documentStartViewTransition(() => {
67
+ if (lastVC === node.vC) {
68
+ viewTransitionState = state;
69
+ cb(context);
70
+ viewTransitionState = void 0;
71
+ lastVC = node.vC;
72
+ }
73
+ }).finished.then(() => {
74
+ if (state[1] && lastVC === node.vC) {
75
+ state[0] = false;
76
+ viewTransitionState = state;
77
+ cb(context);
78
+ viewTransitionState = void 0;
79
+ }
80
+ });
81
+ };
82
+ const startViewTransition = (callback) => {
83
+ updateHook = viewTransitionHook;
84
+ try {
85
+ callback();
86
+ } finally {
87
+ updateHook = void 0;
88
+ }
89
+ };
90
+ const useViewTransition = () => {
91
+ const buildData = import_render.buildDataStack.at(-1);
92
+ if (!buildData) {
93
+ return [false, () => {
94
+ }];
95
+ }
96
+ if (viewTransitionState) {
97
+ viewTransitionState[1] = true;
98
+ }
99
+ return [!!viewTransitionState?.[0], startViewTransition];
100
+ };
101
+ const pendingStack = [];
102
+ const runCallback = (type, callback) => {
103
+ let resolve;
104
+ const promise = new Promise((r) => resolve = r);
105
+ pendingStack.push([type, promise]);
106
+ try {
107
+ const res = callback();
108
+ if (res instanceof Promise) {
109
+ res.then(resolve, resolve);
110
+ } else {
111
+ resolve();
112
+ }
113
+ } finally {
114
+ pendingStack.pop();
115
+ }
116
+ };
117
+ const startTransition = (callback) => {
118
+ runCallback(1, callback);
119
+ };
120
+ const startTransitionHook = (callback) => {
121
+ runCallback(2, callback);
122
+ };
123
+ const useTransition = () => {
124
+ const buildData = import_render.buildDataStack.at(-1);
125
+ if (!buildData) {
126
+ return [false, () => {
127
+ }];
128
+ }
129
+ const [error, setError] = useState();
130
+ const [state, updateState] = useState();
131
+ if (error) {
132
+ throw error[0];
133
+ }
134
+ const startTransitionLocalHook = useCallback(
135
+ (callback) => {
136
+ startTransitionHook(() => {
137
+ updateState((state2) => !state2);
138
+ let res = callback();
139
+ if (res instanceof Promise) {
140
+ res = res.catch((e) => {
141
+ setError([e]);
142
+ });
143
+ }
144
+ return res;
145
+ });
146
+ },
147
+ [state]
148
+ );
149
+ const [context] = buildData;
150
+ return [context[0] === 2, startTransitionLocalHook];
151
+ };
152
+ const useDeferredValue = (value, ...rest) => {
153
+ const [values, setValues] = useState(
154
+ rest.length ? [rest[0], rest[0]] : [value, value]
155
+ );
156
+ if (Object.is(values[1], value)) {
157
+ return values[1];
158
+ }
159
+ pendingStack.push([3, Promise.resolve()]);
160
+ updateHook = async (context, _, cb) => {
161
+ cb(context);
162
+ values[0] = value;
163
+ };
164
+ setValues([values[0], value]);
165
+ updateHook = void 0;
166
+ pendingStack.pop();
167
+ return values[0];
168
+ };
169
+ const useState = (initialState) => {
170
+ const resolveInitialState = () => typeof initialState === "function" ? initialState() : initialState;
171
+ const buildData = import_render.buildDataStack.at(-1);
172
+ if (!buildData) {
173
+ return [resolveInitialState(), () => {
174
+ }];
175
+ }
176
+ const [, node] = buildData;
177
+ const stateArray = node[import_constants.DOM_STASH][1][STASH_SATE] ||= [];
178
+ const hookIndex = node[import_constants.DOM_STASH][0]++;
179
+ return stateArray[hookIndex] ||= [
180
+ resolveInitialState(),
181
+ (newState) => {
182
+ const localUpdateHook = updateHook;
183
+ const stateData = stateArray[hookIndex];
184
+ if (typeof newState === "function") {
185
+ newState = newState(stateData[0]);
186
+ }
187
+ if (!Object.is(newState, stateData[0])) {
188
+ stateData[0] = newState;
189
+ if (pendingStack.length) {
190
+ const [pendingType, pendingPromise] = pendingStack.at(-1);
191
+ Promise.all([
192
+ pendingType === 3 ? node : (0, import_render.update)([pendingType, false, localUpdateHook], node),
193
+ pendingPromise
194
+ ]).then(([node2]) => {
195
+ if (!node2 || !(pendingType === 2 || pendingType === 3)) {
196
+ return;
197
+ }
198
+ const lastVC = node2.vC;
199
+ const addUpdateTask = () => {
200
+ setTimeout(() => {
201
+ if (lastVC !== node2.vC) {
202
+ return;
203
+ }
204
+ (0, import_render.update)([pendingType === 3 ? 1 : 0, false, localUpdateHook], node2);
205
+ });
206
+ };
207
+ requestAnimationFrame(addUpdateTask);
208
+ });
209
+ } else {
210
+ (0, import_render.update)([0, false, localUpdateHook], node);
211
+ }
212
+ }
213
+ }
214
+ ];
215
+ };
216
+ const useReducer = (reducer, initialArg, init) => {
217
+ const handler = useCallback(
218
+ (action) => {
219
+ setState((state2) => reducer(state2, action));
220
+ },
221
+ [reducer]
222
+ );
223
+ const [state, setState] = useState(() => init ? init(initialArg) : initialArg);
224
+ return [state, handler];
225
+ };
226
+ const useEffectCommon = (index, effect, deps) => {
227
+ const buildData = import_render.buildDataStack.at(-1);
228
+ if (!buildData) {
229
+ return;
230
+ }
231
+ const [, node] = buildData;
232
+ const effectDepsArray = node[import_constants.DOM_STASH][1][STASH_EFFECT] ||= [];
233
+ const hookIndex = node[import_constants.DOM_STASH][0]++;
234
+ const [prevDeps, , prevCleanup] = effectDepsArray[hookIndex] ||= [];
235
+ if (isDepsChanged(prevDeps, deps)) {
236
+ if (prevCleanup) {
237
+ prevCleanup();
238
+ }
239
+ const runner = () => {
240
+ data[index] = void 0;
241
+ data[2] = effect();
242
+ };
243
+ const data = [deps, void 0, void 0, void 0, void 0];
244
+ data[index] = runner;
245
+ effectDepsArray[hookIndex] = data;
246
+ }
247
+ };
248
+ const useEffect = (effect, deps) => useEffectCommon(3, effect, deps);
249
+ const useLayoutEffect = (effect, deps) => useEffectCommon(1, effect, deps);
250
+ const useInsertionEffect = (effect, deps) => useEffectCommon(4, effect, deps);
251
+ const useCallback = (callback, deps) => {
252
+ const buildData = import_render.buildDataStack.at(-1);
253
+ if (!buildData) {
254
+ return callback;
255
+ }
256
+ const [, node] = buildData;
257
+ const callbackArray = node[import_constants.DOM_STASH][1][STASH_CALLBACK] ||= [];
258
+ const hookIndex = node[import_constants.DOM_STASH][0]++;
259
+ const prevDeps = callbackArray[hookIndex];
260
+ if (isDepsChanged(prevDeps?.[1], deps)) {
261
+ callbackArray[hookIndex] = [callback, deps];
262
+ } else {
263
+ callback = callbackArray[hookIndex][0];
264
+ }
265
+ return callback;
266
+ };
267
+ const useRef = (initialValue) => {
268
+ const buildData = import_render.buildDataStack.at(-1);
269
+ if (!buildData) {
270
+ return { current: initialValue };
271
+ }
272
+ const [, node] = buildData;
273
+ const refArray = node[import_constants.DOM_STASH][1][STASH_REF] ||= [];
274
+ const hookIndex = node[import_constants.DOM_STASH][0]++;
275
+ return refArray[hookIndex] ||= { current: initialValue };
276
+ };
277
+ const use = (promise) => {
278
+ const cachedRes = resolvedPromiseValueMap.get(promise);
279
+ if (cachedRes) {
280
+ if (cachedRes.length === 2) {
281
+ throw cachedRes[1];
282
+ }
283
+ return cachedRes[0];
284
+ }
285
+ promise.then(
286
+ (res) => resolvedPromiseValueMap.set(promise, [res]),
287
+ (e) => resolvedPromiseValueMap.set(promise, [void 0, e])
288
+ );
289
+ throw promise;
290
+ };
291
+ const useMemo = (factory, deps) => {
292
+ const buildData = import_render.buildDataStack.at(-1);
293
+ if (!buildData) {
294
+ return factory();
295
+ }
296
+ const [, node] = buildData;
297
+ const memoArray = node[import_constants.DOM_STASH][1][STASH_MEMO] ||= [];
298
+ const hookIndex = node[import_constants.DOM_STASH][0]++;
299
+ const prevDeps = memoArray[hookIndex];
300
+ if (isDepsChanged(prevDeps?.[1], deps)) {
301
+ memoArray[hookIndex] = [factory(), deps];
302
+ }
303
+ return memoArray[hookIndex][0];
304
+ };
305
+ let idCounter = 0;
306
+ const useId = () => useMemo(() => `:r${(idCounter++).toString(32)}:`, []);
307
+ const useDebugValue = (_value, _formatter) => {
308
+ };
309
+ const createRef = () => {
310
+ return { current: null };
311
+ };
312
+ const forwardRef = (Component) => {
313
+ return (props) => {
314
+ const { ref, ...rest } = props;
315
+ return Component(rest, ref);
316
+ };
317
+ };
318
+ const useImperativeHandle = (ref, createHandle, deps) => {
319
+ useEffect(() => {
320
+ ref.current = createHandle();
321
+ return () => {
322
+ ref.current = null;
323
+ };
324
+ }, deps);
325
+ };
326
+ const useSyncExternalStore = (subscribe, getSnapshot, getServerSnapshot) => {
327
+ const buildData = import_render.buildDataStack.at(-1);
328
+ if (!buildData) {
329
+ if (!getServerSnapshot) {
330
+ throw new Error("getServerSnapshot is required for server side rendering");
331
+ }
332
+ return getServerSnapshot();
333
+ }
334
+ const [serverSnapshotIsUsed] = useState(!!(buildData[0][4] && getServerSnapshot));
335
+ const [state, setState] = useState(
336
+ () => serverSnapshotIsUsed ? getServerSnapshot() : getSnapshot()
337
+ );
338
+ useEffect(() => {
339
+ if (serverSnapshotIsUsed) {
340
+ setState(getSnapshot());
341
+ }
342
+ return subscribe(() => {
343
+ setState(getSnapshot());
344
+ });
345
+ }, []);
346
+ return state;
347
+ };
348
+ // Annotate the CommonJS export names for ESM import in node:
349
+ 0 && (module.exports = {
350
+ STASH_EFFECT,
351
+ createRef,
352
+ forwardRef,
353
+ startTransition,
354
+ startViewTransition,
355
+ use,
356
+ useCallback,
357
+ useDebugValue,
358
+ useDeferredValue,
359
+ useEffect,
360
+ useId,
361
+ useImperativeHandle,
362
+ useInsertionEffect,
363
+ useLayoutEffect,
364
+ useMemo,
365
+ useReducer,
366
+ useRef,
367
+ useState,
368
+ useSyncExternalStore,
369
+ useTransition,
370
+ useViewTransition
371
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/index.js ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jsx_exports = {};
20
+ __export(jsx_exports, {
21
+ Children: () => import_children.Children,
22
+ ErrorBoundary: () => import_components.ErrorBoundary,
23
+ Fragment: () => import_base.Fragment,
24
+ StrictMode: () => import_base.Fragment,
25
+ Suspense: () => import_streaming.Suspense,
26
+ cloneElement: () => import_base.cloneElement,
27
+ createContext: () => import_context.createContext,
28
+ createElement: () => import_base.jsx,
29
+ createRef: () => import_hooks.createRef,
30
+ default: () => jsx_default,
31
+ forwardRef: () => import_hooks.forwardRef,
32
+ isValidElement: () => import_base.isValidElement,
33
+ jsx: () => import_base.jsx,
34
+ memo: () => import_base.memo,
35
+ startTransition: () => import_hooks.startTransition,
36
+ startViewTransition: () => import_hooks.startViewTransition,
37
+ use: () => import_hooks.use,
38
+ useActionState: () => import_hooks2.useActionState,
39
+ useCallback: () => import_hooks.useCallback,
40
+ useContext: () => import_context.useContext,
41
+ useDebugValue: () => import_hooks.useDebugValue,
42
+ useDeferredValue: () => import_hooks.useDeferredValue,
43
+ useEffect: () => import_hooks.useEffect,
44
+ useId: () => import_hooks.useId,
45
+ useImperativeHandle: () => import_hooks.useImperativeHandle,
46
+ useInsertionEffect: () => import_hooks.useInsertionEffect,
47
+ useLayoutEffect: () => import_hooks.useLayoutEffect,
48
+ useMemo: () => import_hooks.useMemo,
49
+ useOptimistic: () => import_hooks2.useOptimistic,
50
+ useReducer: () => import_hooks.useReducer,
51
+ useRef: () => import_hooks.useRef,
52
+ useState: () => import_hooks.useState,
53
+ useSyncExternalStore: () => import_hooks.useSyncExternalStore,
54
+ useTransition: () => import_hooks.useTransition,
55
+ useViewTransition: () => import_hooks.useViewTransition,
56
+ version: () => import_base.reactAPICompatVersion
57
+ });
58
+ module.exports = __toCommonJS(jsx_exports);
59
+ var import_base = require("./base");
60
+ var import_children = require("./children");
61
+ var import_components = require("./components");
62
+ var import_context = require("./context");
63
+ var import_hooks = require("./hooks");
64
+ var import_hooks2 = require("./dom/hooks");
65
+ var import_streaming = require("./streaming");
66
+ var jsx_default = {
67
+ version: import_base.reactAPICompatVersion,
68
+ memo: import_base.memo,
69
+ Fragment: import_base.Fragment,
70
+ StrictMode: import_base.Fragment,
71
+ isValidElement: import_base.isValidElement,
72
+ createElement: import_base.jsx,
73
+ cloneElement: import_base.cloneElement,
74
+ ErrorBoundary: import_components.ErrorBoundary,
75
+ createContext: import_context.createContext,
76
+ useContext: import_context.useContext,
77
+ useState: import_hooks.useState,
78
+ useEffect: import_hooks.useEffect,
79
+ useRef: import_hooks.useRef,
80
+ useCallback: import_hooks.useCallback,
81
+ useReducer: import_hooks.useReducer,
82
+ useId: import_hooks.useId,
83
+ useDebugValue: import_hooks.useDebugValue,
84
+ use: import_hooks.use,
85
+ startTransition: import_hooks.startTransition,
86
+ useTransition: import_hooks.useTransition,
87
+ useDeferredValue: import_hooks.useDeferredValue,
88
+ startViewTransition: import_hooks.startViewTransition,
89
+ useViewTransition: import_hooks.useViewTransition,
90
+ useMemo: import_hooks.useMemo,
91
+ useLayoutEffect: import_hooks.useLayoutEffect,
92
+ useInsertionEffect: import_hooks.useInsertionEffect,
93
+ createRef: import_hooks.createRef,
94
+ forwardRef: import_hooks.forwardRef,
95
+ useImperativeHandle: import_hooks.useImperativeHandle,
96
+ useSyncExternalStore: import_hooks.useSyncExternalStore,
97
+ useActionState: import_hooks2.useActionState,
98
+ useOptimistic: import_hooks2.useOptimistic,
99
+ Suspense: import_streaming.Suspense,
100
+ Children: import_children.Children
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ Children,
105
+ ErrorBoundary,
106
+ Fragment,
107
+ StrictMode,
108
+ Suspense,
109
+ cloneElement,
110
+ createContext,
111
+ createElement,
112
+ createRef,
113
+ forwardRef,
114
+ isValidElement,
115
+ jsx,
116
+ memo,
117
+ startTransition,
118
+ startViewTransition,
119
+ use,
120
+ useActionState,
121
+ useCallback,
122
+ useContext,
123
+ useDebugValue,
124
+ useDeferredValue,
125
+ useEffect,
126
+ useId,
127
+ useImperativeHandle,
128
+ useInsertionEffect,
129
+ useLayoutEffect,
130
+ useMemo,
131
+ useOptimistic,
132
+ useReducer,
133
+ useRef,
134
+ useState,
135
+ useSyncExternalStore,
136
+ useTransition,
137
+ useViewTransition,
138
+ version
139
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var common_exports = {};
20
+ __export(common_exports, {
21
+ dataPrecedenceAttr: () => dataPrecedenceAttr,
22
+ deDupeKeyMap: () => deDupeKeyMap,
23
+ domRenderers: () => domRenderers
24
+ });
25
+ module.exports = __toCommonJS(common_exports);
26
+ const deDupeKeyMap = {
27
+ title: [],
28
+ script: ["src"],
29
+ style: ["data-href"],
30
+ link: ["href"],
31
+ meta: ["name", "httpEquiv", "charset", "itemProp"]
32
+ };
33
+ const domRenderers = {};
34
+ const dataPrecedenceAttr = "data-precedence";
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ dataPrecedenceAttr,
38
+ deDupeKeyMap,
39
+ domRenderers
40
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var components_exports = {};
20
+ __export(components_exports, {
21
+ button: () => button,
22
+ form: () => form,
23
+ input: () => input,
24
+ link: () => link,
25
+ meta: () => meta,
26
+ script: () => script,
27
+ style: () => style,
28
+ title: () => title
29
+ });
30
+ module.exports = __toCommonJS(components_exports);
31
+ var import_base = require("../base");
32
+ var import_context = require("../context");
33
+ var import_html = require("../../helper/html");
34
+ var import_common = require("./common");
35
+ var import_constants = require("../constants");
36
+ var import_children = require("../children");
37
+ const metaTagMap = /* @__PURE__ */ new WeakMap();
38
+ const insertIntoHead = (tagName, tag, props, precedence) => ({ buffer, context }) => {
39
+ if (!buffer) {
40
+ return;
41
+ }
42
+ const map = metaTagMap.get(context) || {};
43
+ metaTagMap.set(context, map);
44
+ const tags = map[tagName] ||= [];
45
+ let duped = false;
46
+ const deDupeKeys = import_common.deDupeKeyMap[tagName];
47
+ if (deDupeKeys.length > 0) {
48
+ LOOP:
49
+ for (const [, tagProps] of tags) {
50
+ for (const key of deDupeKeys) {
51
+ if ((tagProps?.[key] ?? null) === props?.[key]) {
52
+ duped = true;
53
+ break LOOP;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ if (duped) {
59
+ buffer[0] = buffer[0].replaceAll(tag, "");
60
+ } else if (deDupeKeys.length > 0) {
61
+ tags.push([tag, props, precedence]);
62
+ } else {
63
+ tags.unshift([tag, props, precedence]);
64
+ }
65
+ if (buffer[0].indexOf("</head>") !== -1) {
66
+ let insertTags;
67
+ if (precedence === void 0) {
68
+ insertTags = tags.map(([tag2]) => tag2);
69
+ } else {
70
+ const precedences = [];
71
+ insertTags = tags.map(([tag2, , precedence2]) => {
72
+ let order = precedences.indexOf(precedence2);
73
+ if (order === -1) {
74
+ precedences.push(precedence2);
75
+ order = precedences.length - 1;
76
+ }
77
+ return [tag2, order];
78
+ }).sort((a, b) => a[1] - b[1]).map(([tag2]) => tag2);
79
+ }
80
+ insertTags.forEach((tag2) => {
81
+ buffer[0] = buffer[0].replaceAll(tag2, "");
82
+ });
83
+ buffer[0] = buffer[0].replace(/(?=<\/head>)/, insertTags.join(""));
84
+ }
85
+ };
86
+ const returnWithoutSpecialBehavior = (tag, children, props) => (0, import_html.raw)(new import_base.JSXNode(tag, props, (0, import_children.toArray)(children ?? [])).toString());
87
+ const documentMetadataTag = (tag, children, props, sort) => {
88
+ if ("itemProp" in props) {
89
+ return returnWithoutSpecialBehavior(tag, children, props);
90
+ }
91
+ let { precedence, blocking, ...restProps } = props;
92
+ precedence = sort ? precedence ?? "" : void 0;
93
+ if (sort) {
94
+ restProps[import_common.dataPrecedenceAttr] = precedence;
95
+ }
96
+ const string = new import_base.JSXNode(tag, restProps, (0, import_children.toArray)(children || [])).toString();
97
+ if (string instanceof Promise) {
98
+ return string.then(
99
+ (resString) => (0, import_html.raw)(string, [
100
+ ...resString.callbacks || [],
101
+ insertIntoHead(tag, resString, restProps, precedence)
102
+ ])
103
+ );
104
+ } else {
105
+ return (0, import_html.raw)(string, [insertIntoHead(tag, string, restProps, precedence)]);
106
+ }
107
+ };
108
+ const title = ({ children, ...props }) => {
109
+ const nameSpaceContext = (0, import_base.getNameSpaceContext)();
110
+ if (nameSpaceContext) {
111
+ const context = (0, import_context.useContext)(nameSpaceContext);
112
+ if (context === "svg" || context === "head") {
113
+ return new import_base.JSXNode(
114
+ "title",
115
+ props,
116
+ (0, import_children.toArray)(children ?? [])
117
+ );
118
+ }
119
+ }
120
+ return documentMetadataTag("title", children, props, false);
121
+ };
122
+ const script = ({
123
+ children,
124
+ ...props
125
+ }) => {
126
+ const nameSpaceContext = (0, import_base.getNameSpaceContext)();
127
+ if (["src", "async"].some((k) => !props[k]) || nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "head") {
128
+ return returnWithoutSpecialBehavior("script", children, props);
129
+ }
130
+ return documentMetadataTag("script", children, props, false);
131
+ };
132
+ const style = ({
133
+ children,
134
+ ...props
135
+ }) => {
136
+ if (!["href", "precedence"].every((k) => k in props)) {
137
+ return returnWithoutSpecialBehavior("style", children, props);
138
+ }
139
+ props["data-href"] = props.href;
140
+ delete props.href;
141
+ return documentMetadataTag("style", children, props, true);
142
+ };
143
+ const link = ({ children, ...props }) => {
144
+ if (["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) {
145
+ return returnWithoutSpecialBehavior("link", children, props);
146
+ }
147
+ return documentMetadataTag("link", children, props, "precedence" in props);
148
+ };
149
+ const meta = ({ children, ...props }) => {
150
+ const nameSpaceContext = (0, import_base.getNameSpaceContext)();
151
+ if (nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "head") {
152
+ return returnWithoutSpecialBehavior("meta", children, props);
153
+ }
154
+ return documentMetadataTag("meta", children, props, false);
155
+ };
156
+ const newJSXNode = (tag, { children, ...props }) => new import_base.JSXNode(tag, props, (0, import_children.toArray)(children ?? []));
157
+ const form = (props) => {
158
+ if (typeof props.action === "function") {
159
+ props.action = import_constants.PERMALINK in props.action ? props.action[import_constants.PERMALINK] : void 0;
160
+ }
161
+ return newJSXNode("form", props);
162
+ };
163
+ const formActionableElement = (tag, props) => {
164
+ if (typeof props.formAction === "function") {
165
+ props.formAction = import_constants.PERMALINK in props.formAction ? props.formAction[import_constants.PERMALINK] : void 0;
166
+ }
167
+ return newJSXNode(tag, props);
168
+ };
169
+ const input = (props) => formActionableElement("input", props);
170
+ const button = (props) => formActionableElement("button", props);
171
+ // Annotate the CommonJS export names for ESM import in node:
172
+ 0 && (module.exports = {
173
+ button,
174
+ form,
175
+ input,
176
+ link,
177
+ meta,
178
+ script,
179
+ style,
180
+ title
181
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var intrinsic_elements_exports = {};
16
+ module.exports = __toCommonJS(intrinsic_elements_exports);
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jsx_dev_runtime_exports = {};
20
+ __export(jsx_dev_runtime_exports, {
21
+ Fragment: () => import_base2.Fragment,
22
+ jsxDEV: () => jsxDEV
23
+ });
24
+ module.exports = __toCommonJS(jsx_dev_runtime_exports);
25
+ var import_base = require("./base");
26
+ var import_base2 = require("./base");
27
+ function jsxDEV(tag, props, key) {
28
+ let node;
29
+ if (!props || !("children" in props)) {
30
+ node = (0, import_base.jsxFn)(tag, props, []);
31
+ } else {
32
+ const children = props.children;
33
+ node = Array.isArray(children) ? (0, import_base.jsxFn)(tag, props, children) : (0, import_base.jsxFn)(tag, props, [children]);
34
+ }
35
+ node.key = key;
36
+ return node;
37
+ }
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ Fragment,
41
+ jsxDEV
42
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/jsx-runtime.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jsx_runtime_exports = {};
20
+ __export(jsx_runtime_exports, {
21
+ Fragment: () => import_jsx_dev_runtime.Fragment,
22
+ jsx: () => import_jsx_dev_runtime.jsxDEV,
23
+ jsxAttr: () => jsxAttr,
24
+ jsxEscape: () => jsxEscape,
25
+ jsxTemplate: () => import_html.html,
26
+ jsxs: () => import_jsx_dev_runtime2.jsxDEV
27
+ });
28
+ module.exports = __toCommonJS(jsx_runtime_exports);
29
+ var import_jsx_dev_runtime = require("./jsx-dev-runtime");
30
+ var import_jsx_dev_runtime2 = require("./jsx-dev-runtime");
31
+ var import_html = require("../helper/html");
32
+ const jsxAttr = (name, value) => typeof value === "string" ? (0, import_html.raw)(name + '="' + import_html.html`${value}` + '"') : import_html.html`${name}="${value}"`;
33
+ const jsxEscape = (value) => value;
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ Fragment,
37
+ jsx,
38
+ jsxAttr,
39
+ jsxEscape,
40
+ jsxTemplate,
41
+ jsxs
42
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/streaming.js ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var streaming_exports = {};
20
+ __export(streaming_exports, {
21
+ Suspense: () => Suspense,
22
+ renderToReadableStream: () => renderToReadableStream
23
+ });
24
+ module.exports = __toCommonJS(streaming_exports);
25
+ var import_html = require("../helper/html");
26
+ var import_html2 = require("../utils/html");
27
+ var import_components = require("./components");
28
+ var import_constants = require("./constants");
29
+ var import_components2 = require("./dom/components");
30
+ var import_render = require("./dom/render");
31
+ let suspenseCounter = 0;
32
+ const Suspense = async ({
33
+ children,
34
+ fallback
35
+ }) => {
36
+ if (!children) {
37
+ return fallback.toString();
38
+ }
39
+ if (!Array.isArray(children)) {
40
+ children = [children];
41
+ }
42
+ let resArray = [];
43
+ const stackNode = { [import_constants.DOM_STASH]: [0, []] };
44
+ const popNodeStack = (value) => {
45
+ import_render.buildDataStack.pop();
46
+ return value;
47
+ };
48
+ try {
49
+ stackNode[import_constants.DOM_STASH][0] = 0;
50
+ import_render.buildDataStack.push([[], stackNode]);
51
+ resArray = children.map(
52
+ (c) => c == null || typeof c === "boolean" ? "" : c.toString()
53
+ );
54
+ } catch (e) {
55
+ if (e instanceof Promise) {
56
+ resArray = [
57
+ e.then(() => {
58
+ stackNode[import_constants.DOM_STASH][0] = 0;
59
+ import_render.buildDataStack.push([[], stackNode]);
60
+ return (0, import_components.childrenToString)(children).then(popNodeStack);
61
+ })
62
+ ];
63
+ } else {
64
+ throw e;
65
+ }
66
+ } finally {
67
+ popNodeStack();
68
+ }
69
+ if (resArray.some((res) => res instanceof Promise)) {
70
+ const index = suspenseCounter++;
71
+ const fallbackStr = await fallback.toString();
72
+ return (0, import_html.raw)(`<template id="H:${index}"></template>${fallbackStr}<!--/$-->`, [
73
+ ...fallbackStr.callbacks || [],
74
+ ({ phase, buffer, context }) => {
75
+ if (phase === import_html2.HtmlEscapedCallbackPhase.BeforeStream) {
76
+ return;
77
+ }
78
+ return Promise.all(resArray).then(async (htmlArray) => {
79
+ htmlArray = htmlArray.flat();
80
+ const content = htmlArray.join("");
81
+ if (buffer) {
82
+ buffer[0] = buffer[0].replace(
83
+ new RegExp(`<template id="H:${index}"></template>.*?<!--/\\$-->`),
84
+ content
85
+ );
86
+ }
87
+ let html = buffer ? "" : `<template data-hono-target="H:${index}">${content}</template><script>
88
+ ((d,c,n) => {
89
+ c=d.currentScript.previousSibling
90
+ d=d.getElementById('H:${index}')
91
+ if(!d)return
92
+ do{n=d.nextSibling;n.remove()}while(n.nodeType!=8||n.nodeValue!='/$')
93
+ d.replaceWith(c.content)
94
+ })(document)
95
+ <\/script>`;
96
+ const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat();
97
+ if (!callbacks.length) {
98
+ return html;
99
+ }
100
+ if (phase === import_html2.HtmlEscapedCallbackPhase.Stream) {
101
+ html = await (0, import_html2.resolveCallback)(html, import_html2.HtmlEscapedCallbackPhase.BeforeStream, true, context);
102
+ }
103
+ return (0, import_html.raw)(html, callbacks);
104
+ });
105
+ }
106
+ ]);
107
+ } else {
108
+ return (0, import_html.raw)(resArray.join(""));
109
+ }
110
+ };
111
+ Suspense[import_constants.DOM_RENDERER] = import_components2.Suspense;
112
+ const textEncoder = new TextEncoder();
113
+ const renderToReadableStream = (str, onError = console.trace) => {
114
+ const reader = new ReadableStream({
115
+ async start(controller) {
116
+ try {
117
+ const tmp = str instanceof Promise ? await str : await str.toString();
118
+ const context = typeof tmp === "object" ? tmp : {};
119
+ const resolved = await (0, import_html2.resolveCallback)(
120
+ tmp,
121
+ import_html2.HtmlEscapedCallbackPhase.BeforeStream,
122
+ true,
123
+ context
124
+ );
125
+ controller.enqueue(textEncoder.encode(resolved));
126
+ let resolvedCount = 0;
127
+ const callbacks = [];
128
+ const then = (promise) => {
129
+ callbacks.push(
130
+ promise.catch((err) => {
131
+ console.log(err);
132
+ onError(err);
133
+ return "";
134
+ }).then(async (res) => {
135
+ res = await (0, import_html2.resolveCallback)(
136
+ res,
137
+ import_html2.HtmlEscapedCallbackPhase.BeforeStream,
138
+ true,
139
+ context
140
+ );
141
+ res.callbacks?.map((c) => c({ phase: import_html2.HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then);
142
+ resolvedCount++;
143
+ controller.enqueue(textEncoder.encode(res));
144
+ })
145
+ );
146
+ };
147
+ resolved.callbacks?.map((c) => c({ phase: import_html2.HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then);
148
+ while (resolvedCount !== callbacks.length) {
149
+ await Promise.all(callbacks);
150
+ }
151
+ } catch (e) {
152
+ onError(e);
153
+ }
154
+ controller.close();
155
+ }
156
+ });
157
+ return reader;
158
+ };
159
+ // Annotate the CommonJS export names for ESM import in node:
160
+ 0 && (module.exports = {
161
+ Suspense,
162
+ renderToReadableStream
163
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/types.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var types_exports = {};
16
+ module.exports = __toCommonJS(types_exports);
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/jsx/utils.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ normalizeIntrinsicElementKey: () => normalizeIntrinsicElementKey,
22
+ styleObjectForEach: () => styleObjectForEach
23
+ });
24
+ module.exports = __toCommonJS(utils_exports);
25
+ const normalizeElementKeyMap = /* @__PURE__ */ new Map([
26
+ ["className", "class"],
27
+ ["htmlFor", "for"],
28
+ ["crossOrigin", "crossorigin"],
29
+ ["httpEquiv", "http-equiv"],
30
+ ["itemProp", "itemprop"],
31
+ ["fetchPriority", "fetchpriority"],
32
+ ["noModule", "nomodule"],
33
+ ["formAction", "formaction"]
34
+ ]);
35
+ const normalizeIntrinsicElementKey = (key) => normalizeElementKeyMap.get(key) || key;
36
+ const styleObjectForEach = (style, fn) => {
37
+ for (const [k, v] of Object.entries(style)) {
38
+ const key = k[0] === "-" || !/[A-Z]/.test(k) ? k : k.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
39
+ fn(
40
+ key,
41
+ v == null ? null : typeof v === "number" ? !key.match(
42
+ /^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/
43
+ ) ? `${v}px` : `${v}` : v
44
+ );
45
+ }
46
+ };
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ normalizeIntrinsicElementKey,
50
+ styleObjectForEach
51
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/basic-auth/index.js ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var basic_auth_exports = {};
20
+ __export(basic_auth_exports, {
21
+ basicAuth: () => basicAuth
22
+ });
23
+ module.exports = __toCommonJS(basic_auth_exports);
24
+ var import_http_exception = require("../../http-exception");
25
+ var import_basic_auth = require("../../utils/basic-auth");
26
+ var import_buffer = require("../../utils/buffer");
27
+ const basicAuth = (options, ...users) => {
28
+ const usernamePasswordInOptions = "username" in options && "password" in options;
29
+ const verifyUserInOptions = "verifyUser" in options;
30
+ if (!(usernamePasswordInOptions || verifyUserInOptions)) {
31
+ throw new Error(
32
+ 'basic auth middleware requires options for "username and password" or "verifyUser"'
33
+ );
34
+ }
35
+ if (!options.realm) {
36
+ options.realm = "Secure Area";
37
+ }
38
+ if (!options.invalidUserMessage) {
39
+ options.invalidUserMessage = "Unauthorized";
40
+ }
41
+ if (usernamePasswordInOptions) {
42
+ users.unshift({ username: options.username, password: options.password });
43
+ }
44
+ return async function basicAuth2(ctx, next) {
45
+ const requestUser = (0, import_basic_auth.auth)(ctx.req.raw);
46
+ if (requestUser) {
47
+ if (verifyUserInOptions) {
48
+ if (await options.verifyUser(requestUser.username, requestUser.password, ctx)) {
49
+ await next();
50
+ return;
51
+ }
52
+ } else {
53
+ for (const user of users) {
54
+ const [usernameEqual, passwordEqual] = await Promise.all([
55
+ (0, import_buffer.timingSafeEqual)(user.username, requestUser.username, options.hashFunction),
56
+ (0, import_buffer.timingSafeEqual)(user.password, requestUser.password, options.hashFunction)
57
+ ]);
58
+ if (usernameEqual && passwordEqual) {
59
+ await next();
60
+ return;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ const status = 401;
66
+ const headers = {
67
+ "WWW-Authenticate": 'Basic realm="' + options.realm?.replace(/"/g, '\\"') + '"'
68
+ };
69
+ const responseMessage = typeof options.invalidUserMessage === "function" ? await options.invalidUserMessage(ctx) : options.invalidUserMessage;
70
+ const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), {
71
+ status,
72
+ headers: {
73
+ ...headers,
74
+ "content-type": "application/json; charset=UTF-8"
75
+ }
76
+ });
77
+ throw new import_http_exception.HTTPException(status, { res });
78
+ };
79
+ };
80
+ // Annotate the CommonJS export names for ESM import in node:
81
+ 0 && (module.exports = {
82
+ basicAuth
83
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var bearer_auth_exports = {};
20
+ __export(bearer_auth_exports, {
21
+ bearerAuth: () => bearerAuth
22
+ });
23
+ module.exports = __toCommonJS(bearer_auth_exports);
24
+ var import_http_exception = require("../../http-exception");
25
+ var import_buffer = require("../../utils/buffer");
26
+ const TOKEN_STRINGS = "[A-Za-z0-9._~+/-]+=*";
27
+ const PREFIX = "Bearer";
28
+ const HEADER = "Authorization";
29
+ const bearerAuth = (options) => {
30
+ if (!("token" in options || "verifyToken" in options)) {
31
+ throw new Error('bearer auth middleware requires options for "token"');
32
+ }
33
+ if (!options.realm) {
34
+ options.realm = "";
35
+ }
36
+ if (options.prefix === void 0) {
37
+ options.prefix = PREFIX;
38
+ }
39
+ const realm = options.realm?.replace(/"/g, '\\"');
40
+ const prefixRegexStr = options.prefix === "" ? "" : `${options.prefix} +`;
41
+ const regexp = new RegExp(`^${prefixRegexStr}(${TOKEN_STRINGS}) *$`);
42
+ const wwwAuthenticatePrefix = options.prefix === "" ? "" : `${options.prefix} `;
43
+ const throwHTTPException = async (c, status, wwwAuthenticateHeader, messageOption) => {
44
+ const headers = {
45
+ "WWW-Authenticate": wwwAuthenticateHeader
46
+ };
47
+ const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption;
48
+ const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), {
49
+ status,
50
+ headers: {
51
+ ...headers,
52
+ "content-type": "application/json; charset=UTF-8"
53
+ }
54
+ });
55
+ throw new import_http_exception.HTTPException(status, { res });
56
+ };
57
+ return async function bearerAuth2(c, next) {
58
+ const headerToken = c.req.header(options.headerName || HEADER);
59
+ if (!headerToken) {
60
+ await throwHTTPException(
61
+ c,
62
+ 401,
63
+ `${wwwAuthenticatePrefix}realm="${realm}"`,
64
+ options.noAuthenticationHeaderMessage || "Unauthorized"
65
+ );
66
+ } else {
67
+ const match = regexp.exec(headerToken);
68
+ if (!match) {
69
+ await throwHTTPException(
70
+ c,
71
+ 400,
72
+ `${wwwAuthenticatePrefix}error="invalid_request"`,
73
+ options.invalidAuthenticationHeaderMessage || "Bad Request"
74
+ );
75
+ } else {
76
+ let equal = false;
77
+ if ("verifyToken" in options) {
78
+ equal = await options.verifyToken(match[1], c);
79
+ } else if (typeof options.token === "string") {
80
+ equal = await (0, import_buffer.timingSafeEqual)(options.token, match[1], options.hashFunction);
81
+ } else if (Array.isArray(options.token) && options.token.length > 0) {
82
+ for (const token of options.token) {
83
+ if (await (0, import_buffer.timingSafeEqual)(token, match[1], options.hashFunction)) {
84
+ equal = true;
85
+ break;
86
+ }
87
+ }
88
+ }
89
+ if (!equal) {
90
+ await throwHTTPException(
91
+ c,
92
+ 401,
93
+ `${wwwAuthenticatePrefix}error="invalid_token"`,
94
+ options.invalidTokenMessage || "Unauthorized"
95
+ );
96
+ }
97
+ }
98
+ }
99
+ await next();
100
+ };
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ bearerAuth
105
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/body-limit/index.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var body_limit_exports = {};
20
+ __export(body_limit_exports, {
21
+ bodyLimit: () => bodyLimit
22
+ });
23
+ module.exports = __toCommonJS(body_limit_exports);
24
+ var import_http_exception = require("../../http-exception");
25
+ const ERROR_MESSAGE = "Payload Too Large";
26
+ class BodyLimitError extends Error {
27
+ constructor(message) {
28
+ super(message);
29
+ this.name = "BodyLimitError";
30
+ }
31
+ }
32
+ const bodyLimit = (options) => {
33
+ const onError = options.onError || (() => {
34
+ const res = new Response(ERROR_MESSAGE, {
35
+ status: 413
36
+ });
37
+ throw new import_http_exception.HTTPException(413, { res });
38
+ });
39
+ const maxSize = options.maxSize;
40
+ return async function bodyLimit2(c, next) {
41
+ if (!c.req.raw.body) {
42
+ return next();
43
+ }
44
+ if (c.req.raw.headers.has("content-length")) {
45
+ const contentLength = parseInt(c.req.raw.headers.get("content-length") || "0", 10);
46
+ return contentLength > maxSize ? onError(c) : next();
47
+ }
48
+ let size = 0;
49
+ const rawReader = c.req.raw.body.getReader();
50
+ const reader = new ReadableStream({
51
+ async start(controller) {
52
+ try {
53
+ for (; ; ) {
54
+ const { done, value } = await rawReader.read();
55
+ if (done) {
56
+ break;
57
+ }
58
+ size += value.length;
59
+ if (size > maxSize) {
60
+ controller.error(new BodyLimitError(ERROR_MESSAGE));
61
+ break;
62
+ }
63
+ controller.enqueue(value);
64
+ }
65
+ } finally {
66
+ controller.close();
67
+ }
68
+ }
69
+ });
70
+ const requestInit = { body: reader, duplex: "half" };
71
+ c.req.raw = new Request(c.req.raw, requestInit);
72
+ await next();
73
+ if (c.error instanceof BodyLimitError) {
74
+ c.res = await onError(c);
75
+ }
76
+ };
77
+ };
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ bodyLimit
81
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/cache/index.js ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var cache_exports = {};
20
+ __export(cache_exports, {
21
+ cache: () => cache
22
+ });
23
+ module.exports = __toCommonJS(cache_exports);
24
+ const cache = (options) => {
25
+ if (!globalThis.caches) {
26
+ console.log("Cache Middleware is not enabled because caches is not defined.");
27
+ return async (_c, next) => await next();
28
+ }
29
+ if (options.wait === void 0) {
30
+ options.wait = false;
31
+ }
32
+ const cacheControlDirectives = options.cacheControl?.split(",").map((directive) => directive.toLowerCase());
33
+ const varyDirectives = Array.isArray(options.vary) ? options.vary : options.vary?.split(",").map((directive) => directive.trim());
34
+ if (options.vary?.includes("*")) {
35
+ throw new Error(
36
+ 'Middleware vary configuration cannot include "*", as it disallows effective caching.'
37
+ );
38
+ }
39
+ const addHeader = (c) => {
40
+ if (cacheControlDirectives) {
41
+ const existingDirectives = c.res.headers.get("Cache-Control")?.split(",").map((d) => d.trim().split("=", 1)[0]) ?? [];
42
+ for (const directive of cacheControlDirectives) {
43
+ let [name, value] = directive.trim().split("=", 2);
44
+ name = name.toLowerCase();
45
+ if (!existingDirectives.includes(name)) {
46
+ c.header("Cache-Control", `${name}${value ? `=${value}` : ""}`, { append: true });
47
+ }
48
+ }
49
+ }
50
+ if (varyDirectives) {
51
+ const existingDirectives = c.res.headers.get("Vary")?.split(",").map((d) => d.trim()) ?? [];
52
+ const vary = Array.from(
53
+ new Set(
54
+ [...existingDirectives, ...varyDirectives].map((directive) => directive.toLowerCase())
55
+ )
56
+ ).sort();
57
+ if (vary.includes("*")) {
58
+ c.header("Vary", "*");
59
+ } else {
60
+ c.header("Vary", vary.join(", "));
61
+ }
62
+ }
63
+ };
64
+ return async function cache2(c, next) {
65
+ let key = c.req.url;
66
+ if (options.keyGenerator) {
67
+ key = await options.keyGenerator(c);
68
+ }
69
+ const cacheName = typeof options.cacheName === "function" ? await options.cacheName(c) : options.cacheName;
70
+ const cache3 = await caches.open(cacheName);
71
+ const response = await cache3.match(key);
72
+ if (response) {
73
+ return new Response(response.body, response);
74
+ }
75
+ await next();
76
+ if (!c.res.ok) {
77
+ return;
78
+ }
79
+ addHeader(c);
80
+ const res = c.res.clone();
81
+ if (options.wait) {
82
+ await cache3.put(key, res);
83
+ } else {
84
+ c.executionCtx.waitUntil(cache3.put(key, res));
85
+ }
86
+ };
87
+ };
88
+ // Annotate the CommonJS export names for ESM import in node:
89
+ 0 && (module.exports = {
90
+ cache
91
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/combine/index.js ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except2, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except2)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var combine_exports = {};
20
+ __export(combine_exports, {
21
+ every: () => every,
22
+ except: () => except,
23
+ some: () => some
24
+ });
25
+ module.exports = __toCommonJS(combine_exports);
26
+ var import_trie_router = require("../../router/trie-router");
27
+ var import_router = require("../../router");
28
+ var import_compose = require("../../compose");
29
+ const some = (...middleware) => {
30
+ return async function some2(c, next) {
31
+ let lastError;
32
+ for (const handler of middleware) {
33
+ try {
34
+ const result = await handler(c, next);
35
+ if (result === true && !c.finalized) {
36
+ await next();
37
+ } else if (result === false) {
38
+ lastError = new Error("No successful middleware found");
39
+ continue;
40
+ }
41
+ lastError = void 0;
42
+ break;
43
+ } catch (error) {
44
+ lastError = error;
45
+ continue;
46
+ }
47
+ }
48
+ if (lastError) {
49
+ throw lastError;
50
+ }
51
+ };
52
+ };
53
+ const every = (...middleware) => {
54
+ const wrappedMiddleware = middleware.map((m) => async (c, next) => {
55
+ const res = await m(c, next);
56
+ if (res === false) {
57
+ throw new Error("Unmet condition");
58
+ }
59
+ });
60
+ const handler = async (c, next) => (0, import_compose.compose)(wrappedMiddleware.map((m) => [[m, void 0], c.req.param()]))(c, next);
61
+ return async function every2(c, next) {
62
+ await handler(c, next);
63
+ };
64
+ };
65
+ const except = (condition, ...middleware) => {
66
+ let router = void 0;
67
+ const conditions = (Array.isArray(condition) ? condition : [condition]).map((condition2) => {
68
+ if (typeof condition2 === "string") {
69
+ router ||= new import_trie_router.TrieRouter();
70
+ router.add(import_router.METHOD_NAME_ALL, condition2, true);
71
+ } else {
72
+ return condition2;
73
+ }
74
+ }).filter(Boolean);
75
+ if (router) {
76
+ conditions.unshift((c) => !!router?.match(import_router.METHOD_NAME_ALL, c.req.path)?.[0]?.[0]?.[0]);
77
+ }
78
+ const handler = some((c) => conditions.some((cond) => cond(c)), every(...middleware));
79
+ return async function except2(c, next) {
80
+ await handler(c, next);
81
+ };
82
+ };
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ every,
86
+ except,
87
+ some
88
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/compress/index.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var compress_exports = {};
20
+ __export(compress_exports, {
21
+ compress: () => compress
22
+ });
23
+ module.exports = __toCommonJS(compress_exports);
24
+ const ENCODING_TYPES = ["gzip", "deflate"];
25
+ const cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/i;
26
+ const compressibleContentTypeRegExp = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i;
27
+ const compress = (options) => {
28
+ const threshold = options?.threshold ?? 1024;
29
+ return async function compress2(ctx, next) {
30
+ await next();
31
+ const contentLength = ctx.res.headers.get("Content-Length");
32
+ if (ctx.res.headers.has("Content-Encoding") || ctx.req.method === "HEAD" || contentLength && Number(contentLength) < threshold || !shouldCompress(ctx.res) || !shouldTransform(ctx.res)) {
33
+ return;
34
+ }
35
+ const accepted = ctx.req.header("Accept-Encoding");
36
+ const encoding = options?.encoding ?? ENCODING_TYPES.find((encoding2) => accepted?.includes(encoding2));
37
+ if (!encoding || !ctx.res.body) {
38
+ return;
39
+ }
40
+ const stream = new CompressionStream(encoding);
41
+ ctx.res = new Response(ctx.res.body.pipeThrough(stream), ctx.res);
42
+ ctx.res.headers.delete("Content-Length");
43
+ ctx.res.headers.set("Content-Encoding", encoding);
44
+ };
45
+ };
46
+ const shouldCompress = (res) => {
47
+ const type = res.headers.get("Content-Type");
48
+ return type && compressibleContentTypeRegExp.test(type);
49
+ };
50
+ const shouldTransform = (res) => {
51
+ const cacheControl = res.headers.get("Cache-Control");
52
+ return !cacheControl || !cacheControlNoTransformRegExp.test(cacheControl);
53
+ };
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ compress
57
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/context-storage/index.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var context_storage_exports = {};
20
+ __export(context_storage_exports, {
21
+ contextStorage: () => contextStorage,
22
+ getContext: () => getContext
23
+ });
24
+ module.exports = __toCommonJS(context_storage_exports);
25
+ var import_node_async_hooks = require("node:async_hooks");
26
+ const asyncLocalStorage = new import_node_async_hooks.AsyncLocalStorage();
27
+ const contextStorage = () => {
28
+ return async function contextStorage2(c, next) {
29
+ await asyncLocalStorage.run(c, next);
30
+ };
31
+ };
32
+ const getContext = () => {
33
+ const context = asyncLocalStorage.getStore();
34
+ if (!context) {
35
+ throw new Error("Context is not available");
36
+ }
37
+ return context;
38
+ };
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ contextStorage,
42
+ getContext
43
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/cors/index.js ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var cors_exports = {};
20
+ __export(cors_exports, {
21
+ cors: () => cors
22
+ });
23
+ module.exports = __toCommonJS(cors_exports);
24
+ const cors = (options) => {
25
+ const defaults = {
26
+ origin: "*",
27
+ allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"],
28
+ allowHeaders: [],
29
+ exposeHeaders: []
30
+ };
31
+ const opts = {
32
+ ...defaults,
33
+ ...options
34
+ };
35
+ const findAllowOrigin = ((optsOrigin) => {
36
+ if (typeof optsOrigin === "string") {
37
+ return () => optsOrigin;
38
+ } else if (typeof optsOrigin === "function") {
39
+ return optsOrigin;
40
+ } else {
41
+ return (origin) => optsOrigin.includes(origin) ? origin : optsOrigin[0];
42
+ }
43
+ })(opts.origin);
44
+ return async function cors2(c, next) {
45
+ function set(key, value) {
46
+ c.res.headers.set(key, value);
47
+ }
48
+ const allowOrigin = findAllowOrigin(c.req.header("origin") || "", c);
49
+ if (allowOrigin) {
50
+ set("Access-Control-Allow-Origin", allowOrigin);
51
+ }
52
+ if (opts.origin !== "*") {
53
+ const existingVary = c.req.header("Vary");
54
+ if (existingVary) {
55
+ set("Vary", existingVary);
56
+ } else {
57
+ set("Vary", "Origin");
58
+ }
59
+ }
60
+ if (opts.credentials) {
61
+ set("Access-Control-Allow-Credentials", "true");
62
+ }
63
+ if (opts.exposeHeaders?.length) {
64
+ set("Access-Control-Expose-Headers", opts.exposeHeaders.join(","));
65
+ }
66
+ if (c.req.method === "OPTIONS") {
67
+ if (opts.maxAge != null) {
68
+ set("Access-Control-Max-Age", opts.maxAge.toString());
69
+ }
70
+ if (opts.allowMethods?.length) {
71
+ set("Access-Control-Allow-Methods", opts.allowMethods.join(","));
72
+ }
73
+ let headers = opts.allowHeaders;
74
+ if (!headers?.length) {
75
+ const requestHeaders = c.req.header("Access-Control-Request-Headers");
76
+ if (requestHeaders) {
77
+ headers = requestHeaders.split(/\s*,\s*/);
78
+ }
79
+ }
80
+ if (headers?.length) {
81
+ set("Access-Control-Allow-Headers", headers.join(","));
82
+ c.res.headers.append("Vary", "Access-Control-Request-Headers");
83
+ }
84
+ c.res.headers.delete("Content-Length");
85
+ c.res.headers.delete("Content-Type");
86
+ return new Response(null, {
87
+ headers: c.res.headers,
88
+ status: 204,
89
+ statusText: c.res.statusText
90
+ });
91
+ }
92
+ await next();
93
+ };
94
+ };
95
+ // Annotate the CommonJS export names for ESM import in node:
96
+ 0 && (module.exports = {
97
+ cors
98
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/csrf/index.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var csrf_exports = {};
20
+ __export(csrf_exports, {
21
+ csrf: () => csrf
22
+ });
23
+ module.exports = __toCommonJS(csrf_exports);
24
+ var import_http_exception = require("../../http-exception");
25
+ const isSafeMethodRe = /^(GET|HEAD)$/;
26
+ const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i;
27
+ const csrf = (options) => {
28
+ const handler = ((optsOrigin) => {
29
+ if (!optsOrigin) {
30
+ return (origin, c) => origin === new URL(c.req.url).origin;
31
+ } else if (typeof optsOrigin === "string") {
32
+ return (origin) => origin === optsOrigin;
33
+ } else if (typeof optsOrigin === "function") {
34
+ return optsOrigin;
35
+ } else {
36
+ return (origin) => optsOrigin.includes(origin);
37
+ }
38
+ })(options?.origin);
39
+ const isAllowedOrigin = (origin, c) => {
40
+ if (origin === void 0) {
41
+ return false;
42
+ }
43
+ return handler(origin, c);
44
+ };
45
+ return async function csrf2(c, next) {
46
+ if (!isSafeMethodRe.test(c.req.method) && isRequestedByFormElementRe.test(c.req.header("content-type") || "") && !isAllowedOrigin(c.req.header("origin"), c)) {
47
+ const res = new Response("Forbidden", {
48
+ status: 403
49
+ });
50
+ throw new import_http_exception.HTTPException(403, { res });
51
+ }
52
+ await next();
53
+ };
54
+ };
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ csrf
58
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/etag/index.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var etag_exports = {};
20
+ __export(etag_exports, {
21
+ RETAINED_304_HEADERS: () => RETAINED_304_HEADERS,
22
+ etag: () => etag
23
+ });
24
+ module.exports = __toCommonJS(etag_exports);
25
+ var import_crypto = require("../../utils/crypto");
26
+ const RETAINED_304_HEADERS = [
27
+ "cache-control",
28
+ "content-location",
29
+ "date",
30
+ "etag",
31
+ "expires",
32
+ "vary"
33
+ ];
34
+ function etagMatches(etag2, ifNoneMatch) {
35
+ return ifNoneMatch != null && ifNoneMatch.split(/,\s*/).indexOf(etag2) > -1;
36
+ }
37
+ const etag = (options) => {
38
+ const retainedHeaders = options?.retainedHeaders ?? RETAINED_304_HEADERS;
39
+ const weak = options?.weak ?? false;
40
+ return async function etag2(c, next) {
41
+ const ifNoneMatch = c.req.header("If-None-Match") ?? null;
42
+ await next();
43
+ const res = c.res;
44
+ let etag3 = res.headers.get("ETag");
45
+ if (!etag3) {
46
+ const hash = await (0, import_crypto.sha1)(res.clone().body || "");
47
+ etag3 = weak ? `W/"${hash}"` : `"${hash}"`;
48
+ }
49
+ if (etagMatches(etag3, ifNoneMatch)) {
50
+ await c.res.blob();
51
+ c.res = new Response(null, {
52
+ status: 304,
53
+ statusText: "Not Modified",
54
+ headers: {
55
+ ETag: etag3
56
+ }
57
+ });
58
+ c.res.headers.forEach((_, key) => {
59
+ if (retainedHeaders.indexOf(key.toLowerCase()) === -1) {
60
+ c.res.headers.delete(key);
61
+ }
62
+ });
63
+ } else {
64
+ c.res.headers.set("ETag", etag3);
65
+ }
66
+ };
67
+ };
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ RETAINED_304_HEADERS,
71
+ etag
72
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var ip_restriction_exports = {};
20
+ __export(ip_restriction_exports, {
21
+ ipRestriction: () => ipRestriction
22
+ });
23
+ module.exports = __toCommonJS(ip_restriction_exports);
24
+ var import_http_exception = require("../../http-exception");
25
+ var import_ipaddr = require("../../utils/ipaddr");
26
+ const IS_CIDR_NOTATION_REGEX = /\/[0-9]{0,3}$/;
27
+ const buildMatcher = (rules) => {
28
+ const functionRules = [];
29
+ const staticRules = /* @__PURE__ */ new Set();
30
+ const cidrRules = [];
31
+ for (let rule of rules) {
32
+ if (rule === "*") {
33
+ return () => true;
34
+ } else if (typeof rule === "function") {
35
+ functionRules.push(rule);
36
+ } else {
37
+ if (IS_CIDR_NOTATION_REGEX.test(rule)) {
38
+ const splittedRule = rule.split("/");
39
+ const addrStr = splittedRule[0];
40
+ const type2 = (0, import_ipaddr.distinctRemoteAddr)(addrStr);
41
+ if (type2 === void 0) {
42
+ throw new TypeError(`Invalid rule: ${rule}`);
43
+ }
44
+ const isIPv4 = type2 === "IPv4";
45
+ const prefix = parseInt(splittedRule[1]);
46
+ if (isIPv4 ? prefix === 32 : prefix === 128) {
47
+ rule = addrStr;
48
+ } else {
49
+ const addr = (isIPv4 ? import_ipaddr.convertIPv4ToBinary : import_ipaddr.convertIPv6ToBinary)(addrStr);
50
+ const mask = (1n << BigInt(prefix)) - 1n << BigInt((isIPv4 ? 32 : 128) - prefix);
51
+ cidrRules.push([isIPv4, addr & mask, mask]);
52
+ continue;
53
+ }
54
+ }
55
+ const type = (0, import_ipaddr.distinctRemoteAddr)(rule);
56
+ if (type === void 0) {
57
+ throw new TypeError(`Invalid rule: ${rule}`);
58
+ }
59
+ staticRules.add(
60
+ type === "IPv4" ? rule : (0, import_ipaddr.convertIPv6BinaryToString)((0, import_ipaddr.convertIPv6ToBinary)(rule))
61
+ );
62
+ }
63
+ }
64
+ return (remote) => {
65
+ if (staticRules.has(remote.addr)) {
66
+ return true;
67
+ }
68
+ for (const [isIPv4, addr, mask] of cidrRules) {
69
+ if (isIPv4 !== remote.isIPv4) {
70
+ continue;
71
+ }
72
+ const remoteAddr = remote.binaryAddr ||= (isIPv4 ? import_ipaddr.convertIPv4ToBinary : import_ipaddr.convertIPv6ToBinary)(remote.addr);
73
+ if ((remoteAddr & mask) === addr) {
74
+ return true;
75
+ }
76
+ }
77
+ for (const rule of functionRules) {
78
+ if (rule({ addr: remote.addr, type: remote.type })) {
79
+ return true;
80
+ }
81
+ }
82
+ return false;
83
+ };
84
+ };
85
+ const ipRestriction = (getIP, { denyList = [], allowList = [] }, onError) => {
86
+ const allowLength = allowList.length;
87
+ const denyMatcher = buildMatcher(denyList);
88
+ const allowMatcher = buildMatcher(allowList);
89
+ const blockError = (c) => new import_http_exception.HTTPException(403, {
90
+ res: c.text("Forbidden", {
91
+ status: 403
92
+ })
93
+ });
94
+ return async function ipRestriction2(c, next) {
95
+ const connInfo = getIP(c);
96
+ const addr = typeof connInfo === "string" ? connInfo : connInfo.remote.address;
97
+ if (!addr) {
98
+ throw blockError(c);
99
+ }
100
+ const type = typeof connInfo !== "string" && connInfo.remote.addressType || (0, import_ipaddr.distinctRemoteAddr)(addr);
101
+ const remoteData = { addr, type, isIPv4: type === "IPv4" };
102
+ if (denyMatcher(remoteData)) {
103
+ if (onError) {
104
+ return onError({ addr, type }, c);
105
+ }
106
+ throw blockError(c);
107
+ }
108
+ if (allowMatcher(remoteData)) {
109
+ return await next();
110
+ }
111
+ if (allowLength === 0) {
112
+ return await next();
113
+ } else {
114
+ if (onError) {
115
+ return await onError({ addr, type }, c);
116
+ }
117
+ throw blockError(c);
118
+ }
119
+ };
120
+ };
121
+ // Annotate the CommonJS export names for ESM import in node:
122
+ 0 && (module.exports = {
123
+ ipRestriction
124
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jsx_renderer_exports = {};
20
+ __export(jsx_renderer_exports, {
21
+ RequestContext: () => RequestContext,
22
+ jsxRenderer: () => jsxRenderer,
23
+ useRequestContext: () => useRequestContext
24
+ });
25
+ module.exports = __toCommonJS(jsx_renderer_exports);
26
+ var import_html = require("../../helper/html");
27
+ var import_jsx = require("../../jsx");
28
+ var import_streaming = require("../../jsx/streaming");
29
+ const RequestContext = (0, import_jsx.createContext)(null);
30
+ const createRenderer = (c, Layout, component, options) => (children, props) => {
31
+ const docType = typeof options?.docType === "string" ? options.docType : options?.docType === false ? "" : "<!DOCTYPE html>";
32
+ const currentLayout = component ? (0, import_jsx.jsx)(
33
+ (props2) => component(props2, c),
34
+ {
35
+ ...{ Layout, ...props }
36
+ },
37
+ children
38
+ ) : children;
39
+ const body = import_html.html`${(0, import_html.raw)(docType)}${(0, import_jsx.jsx)(
40
+ RequestContext.Provider,
41
+ { value: c },
42
+ currentLayout
43
+ )}`;
44
+ if (options?.stream) {
45
+ if (options.stream === true) {
46
+ c.header("Transfer-Encoding", "chunked");
47
+ c.header("Content-Type", "text/html; charset=UTF-8");
48
+ c.header("Content-Encoding", "Identity");
49
+ } else {
50
+ for (const [key, value] of Object.entries(options.stream)) {
51
+ c.header(key, value);
52
+ }
53
+ }
54
+ return c.body((0, import_streaming.renderToReadableStream)(body));
55
+ } else {
56
+ return c.html(body);
57
+ }
58
+ };
59
+ const jsxRenderer = (component, options) => function jsxRenderer2(c, next) {
60
+ const Layout = c.getLayout() ?? import_jsx.Fragment;
61
+ if (component) {
62
+ c.setLayout((props) => {
63
+ return component({ ...props, Layout }, c);
64
+ });
65
+ }
66
+ c.setRenderer(createRenderer(c, Layout, component, options));
67
+ return next();
68
+ };
69
+ const useRequestContext = () => {
70
+ const c = (0, import_jsx.useContext)(RequestContext);
71
+ if (!c) {
72
+ throw new Error("RequestContext is not provided.");
73
+ }
74
+ return c;
75
+ };
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ RequestContext,
79
+ jsxRenderer,
80
+ useRequestContext
81
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jwt/index.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jwt_exports = {};
20
+ __export(jwt_exports, {
21
+ decode: () => import_jwt.decode,
22
+ jwt: () => import_jwt.jwt,
23
+ sign: () => import_jwt.sign,
24
+ verify: () => import_jwt.verify
25
+ });
26
+ module.exports = __toCommonJS(jwt_exports);
27
+ var import_jwt = require("./jwt");
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ decode,
31
+ jwt,
32
+ sign,
33
+ verify
34
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/jwt/jwt.js ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var jwt_exports = {};
20
+ __export(jwt_exports, {
21
+ decode: () => decode,
22
+ jwt: () => jwt,
23
+ sign: () => sign,
24
+ verify: () => verify
25
+ });
26
+ module.exports = __toCommonJS(jwt_exports);
27
+ var import_cookie = require("../../helper/cookie");
28
+ var import_http_exception = require("../../http-exception");
29
+ var import_jwt = require("../../utils/jwt");
30
+ var import_context = require("../../context");
31
+ const jwt = (options) => {
32
+ if (!options || !options.secret) {
33
+ throw new Error('JWT auth middleware requires options for "secret"');
34
+ }
35
+ if (!crypto.subtle || !crypto.subtle.importKey) {
36
+ throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it.");
37
+ }
38
+ return async function jwt2(ctx, next) {
39
+ const credentials = ctx.req.raw.headers.get("Authorization");
40
+ let token;
41
+ if (credentials) {
42
+ const parts = credentials.split(/\s+/);
43
+ if (parts.length !== 2) {
44
+ const errDescription = "invalid credentials structure";
45
+ throw new import_http_exception.HTTPException(401, {
46
+ message: errDescription,
47
+ res: unauthorizedResponse({
48
+ ctx,
49
+ error: "invalid_request",
50
+ errDescription
51
+ })
52
+ });
53
+ } else {
54
+ token = parts[1];
55
+ }
56
+ } else if (options.cookie) {
57
+ if (typeof options.cookie == "string") {
58
+ token = (0, import_cookie.getCookie)(ctx, options.cookie);
59
+ } else if (options.cookie.secret) {
60
+ if (options.cookie.prefixOptions) {
61
+ token = await (0, import_cookie.getSignedCookie)(
62
+ ctx,
63
+ options.cookie.secret,
64
+ options.cookie.key,
65
+ options.cookie.prefixOptions
66
+ );
67
+ } else {
68
+ token = await (0, import_cookie.getSignedCookie)(ctx, options.cookie.secret, options.cookie.key);
69
+ }
70
+ } else {
71
+ if (options.cookie.prefixOptions) {
72
+ token = (0, import_cookie.getCookie)(ctx, options.cookie.key, options.cookie.prefixOptions);
73
+ } else {
74
+ token = (0, import_cookie.getCookie)(ctx, options.cookie.key);
75
+ }
76
+ }
77
+ }
78
+ if (!token) {
79
+ const errDescription = "no authorization included in request";
80
+ throw new import_http_exception.HTTPException(401, {
81
+ message: errDescription,
82
+ res: unauthorizedResponse({
83
+ ctx,
84
+ error: "invalid_request",
85
+ errDescription
86
+ })
87
+ });
88
+ }
89
+ let payload;
90
+ let cause;
91
+ try {
92
+ payload = await import_jwt.Jwt.verify(token, options.secret, options.alg);
93
+ } catch (e) {
94
+ cause = e;
95
+ }
96
+ if (!payload) {
97
+ throw new import_http_exception.HTTPException(401, {
98
+ message: "Unauthorized",
99
+ res: unauthorizedResponse({
100
+ ctx,
101
+ error: "invalid_token",
102
+ statusText: "Unauthorized",
103
+ errDescription: "token verification failure"
104
+ }),
105
+ cause
106
+ });
107
+ }
108
+ ctx.set("jwtPayload", payload);
109
+ await next();
110
+ };
111
+ };
112
+ function unauthorizedResponse(opts) {
113
+ return new Response("Unauthorized", {
114
+ status: 401,
115
+ statusText: opts.statusText,
116
+ headers: {
117
+ "WWW-Authenticate": `Bearer realm="${opts.ctx.req.url}",error="${opts.error}",error_description="${opts.errDescription}"`
118
+ }
119
+ });
120
+ }
121
+ const verify = import_jwt.Jwt.verify;
122
+ const decode = import_jwt.Jwt.decode;
123
+ const sign = import_jwt.Jwt.sign;
124
+ // Annotate the CommonJS export names for ESM import in node:
125
+ 0 && (module.exports = {
126
+ decode,
127
+ jwt,
128
+ sign,
129
+ verify
130
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/logger/index.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var logger_exports = {};
20
+ __export(logger_exports, {
21
+ logger: () => logger
22
+ });
23
+ module.exports = __toCommonJS(logger_exports);
24
+ var import_color = require("../../utils/color");
25
+ var import_url = require("../../utils/url");
26
+ var LogPrefix = /* @__PURE__ */ ((LogPrefix2) => {
27
+ LogPrefix2["Outgoing"] = "-->";
28
+ LogPrefix2["Incoming"] = "<--";
29
+ LogPrefix2["Error"] = "xxx";
30
+ return LogPrefix2;
31
+ })(LogPrefix || {});
32
+ const humanize = (times) => {
33
+ const [delimiter, separator] = [",", "."];
34
+ const orderTimes = times.map((v) => v.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimiter));
35
+ return orderTimes.join(separator);
36
+ };
37
+ const time = (start) => {
38
+ const delta = Date.now() - start;
39
+ return humanize([delta < 1e3 ? delta + "ms" : Math.round(delta / 1e3) + "s"]);
40
+ };
41
+ const colorStatus = (status) => {
42
+ const colorEnabled = (0, import_color.getColorEnabled)();
43
+ const out = {
44
+ 7: colorEnabled ? `\x1B[35m${status}\x1B[0m` : `${status}`,
45
+ 5: colorEnabled ? `\x1B[31m${status}\x1B[0m` : `${status}`,
46
+ 4: colorEnabled ? `\x1B[33m${status}\x1B[0m` : `${status}`,
47
+ 3: colorEnabled ? `\x1B[36m${status}\x1B[0m` : `${status}`,
48
+ 2: colorEnabled ? `\x1B[32m${status}\x1B[0m` : `${status}`,
49
+ 1: colorEnabled ? `\x1B[32m${status}\x1B[0m` : `${status}`,
50
+ 0: colorEnabled ? `\x1B[33m${status}\x1B[0m` : `${status}`
51
+ };
52
+ const calculateStatus = status / 100 | 0;
53
+ return out[calculateStatus];
54
+ };
55
+ function log(fn, prefix, method, path, status = 0, elapsed) {
56
+ const out = prefix === "<--" /* Incoming */ ? `${prefix} ${method} ${path}` : `${prefix} ${method} ${path} ${colorStatus(status)} ${elapsed}`;
57
+ fn(out);
58
+ }
59
+ const logger = (fn = console.log) => {
60
+ return async function logger2(c, next) {
61
+ const { method } = c.req;
62
+ const path = (0, import_url.getPath)(c.req.raw);
63
+ log(fn, "<--" /* Incoming */, method, path);
64
+ const start = Date.now();
65
+ await next();
66
+ log(fn, "-->" /* Outgoing */, method, path, c.res.status, time(start));
67
+ };
68
+ };
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ logger
72
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/method-override/index.js ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var method_override_exports = {};
20
+ __export(method_override_exports, {
21
+ methodOverride: () => methodOverride
22
+ });
23
+ module.exports = __toCommonJS(method_override_exports);
24
+ var import_body = require("../../utils/body");
25
+ const DEFAULT_METHOD_FORM_NAME = "_method";
26
+ const methodOverride = (options) => async function methodOverride2(c, next) {
27
+ if (c.req.method === "GET") {
28
+ return await next();
29
+ }
30
+ const app = options.app;
31
+ if (!(options.header || options.query)) {
32
+ const contentType = c.req.header("content-type");
33
+ const methodFormName = options.form || DEFAULT_METHOD_FORM_NAME;
34
+ const clonedRequest = c.req.raw.clone();
35
+ const newRequest = clonedRequest.clone();
36
+ if (contentType?.startsWith("multipart/form-data")) {
37
+ const form = await clonedRequest.formData();
38
+ const method = form.get(methodFormName);
39
+ if (method) {
40
+ const newForm = await newRequest.formData();
41
+ newForm.delete(methodFormName);
42
+ const newHeaders = new Headers(clonedRequest.headers);
43
+ newHeaders.delete("content-type");
44
+ newHeaders.delete("content-length");
45
+ const request = new Request(c.req.url, {
46
+ body: newForm,
47
+ headers: newHeaders,
48
+ method
49
+ });
50
+ return app.fetch(request, c.env, getExecutionCtx(c));
51
+ }
52
+ }
53
+ if (contentType === "application/x-www-form-urlencoded") {
54
+ const params = await (0, import_body.parseBody)(clonedRequest);
55
+ const method = params[methodFormName];
56
+ if (method) {
57
+ delete params[methodFormName];
58
+ const newParams = new URLSearchParams(params);
59
+ const request = new Request(newRequest, {
60
+ body: newParams,
61
+ method
62
+ });
63
+ return app.fetch(request, c.env, getExecutionCtx(c));
64
+ }
65
+ }
66
+ } else if (options.header) {
67
+ const headerName = options.header;
68
+ const method = c.req.header(headerName);
69
+ if (method) {
70
+ const newHeaders = new Headers(c.req.raw.headers);
71
+ newHeaders.delete(headerName);
72
+ const request = new Request(c.req.raw, {
73
+ headers: newHeaders,
74
+ method
75
+ });
76
+ return app.fetch(request, c.env, getExecutionCtx(c));
77
+ }
78
+ } else if (options.query) {
79
+ const queryName = options.query;
80
+ const method = c.req.query(queryName);
81
+ if (method) {
82
+ const url = new URL(c.req.url);
83
+ url.searchParams.delete(queryName);
84
+ const request = new Request(url.toString(), {
85
+ body: c.req.raw.body,
86
+ headers: c.req.raw.headers,
87
+ method
88
+ });
89
+ return app.fetch(request, c.env, getExecutionCtx(c));
90
+ }
91
+ }
92
+ await next();
93
+ };
94
+ const getExecutionCtx = (c) => {
95
+ let executionCtx;
96
+ try {
97
+ executionCtx = c.executionCtx;
98
+ } catch {
99
+ }
100
+ return executionCtx;
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ methodOverride
105
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/powered-by/index.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var powered_by_exports = {};
20
+ __export(powered_by_exports, {
21
+ poweredBy: () => poweredBy
22
+ });
23
+ module.exports = __toCommonJS(powered_by_exports);
24
+ const poweredBy = () => {
25
+ return async function poweredBy2(c, next) {
26
+ await next();
27
+ c.res.headers.set("X-Powered-By", "Hono");
28
+ };
29
+ };
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ poweredBy
33
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/pretty-json/index.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var pretty_json_exports = {};
20
+ __export(pretty_json_exports, {
21
+ prettyJSON: () => prettyJSON
22
+ });
23
+ module.exports = __toCommonJS(pretty_json_exports);
24
+ const prettyJSON = (options) => {
25
+ const targetQuery = options?.query ?? "pretty";
26
+ return async function prettyJSON2(c, next) {
27
+ const pretty = c.req.query(targetQuery) || c.req.query(targetQuery) === "";
28
+ await next();
29
+ if (pretty && c.res.headers.get("Content-Type")?.startsWith("application/json")) {
30
+ const obj = await c.res.json();
31
+ c.res = new Response(JSON.stringify(obj, null, options?.space ?? 2), c.res);
32
+ }
33
+ };
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ prettyJSON
38
+ });
workersss/Autovideos-worker/shy-hill-f5c2/node_modules/hono/dist/cjs/middleware/request-id/index.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var request_id_exports = {};
20
+ __export(request_id_exports, {
21
+ requestId: () => import_request_id.requestId
22
+ });
23
+ module.exports = __toCommonJS(request_id_exports);
24
+ var import_request_id = require("./request-id");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ requestId
28
+ });