llmz 0.9.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/DOCS.md +232 -1794
  2. package/ERRORS.md +101 -0
  3. package/README.md +96 -582
  4. package/dist/chat/chat.d.ts +63 -0
  5. package/dist/chat/component.d.ts +31 -0
  6. package/dist/chat/component.default.d.ts +58 -0
  7. package/dist/chat/response.d.ts +15 -0
  8. package/dist/compiler/compiler.d.ts +2 -7
  9. package/dist/compiler/plugins/dynamic-code.d.ts +7 -0
  10. package/dist/compiler/plugins/replace-comment.d.ts +2 -3
  11. package/dist/compiler/plugins/return-async.d.ts +5 -4
  12. package/dist/compiler/plugins/termination.d.ts +8 -0
  13. package/dist/compiler/plugins/tool-resolution.d.ts +4 -0
  14. package/dist/compiler/plugins/variable-extraction.d.ts +2 -8
  15. package/dist/component-CMFoCHyu.cjs +649 -0
  16. package/dist/component-DncqP4fB.js +614 -0
  17. package/dist/context.d.ts +71 -378
  18. package/dist/custom-client-C-WXvLD9.js +1655 -0
  19. package/dist/custom-client-Cgt9_0r1.cjs +1732 -0
  20. package/dist/custom-client.d.ts +12 -2
  21. package/dist/errors/catalog.d.ts +294 -0
  22. package/dist/errors/hooks.d.ts +2 -0
  23. package/dist/errors-C6ppQUZX.cjs +893 -0
  24. package/dist/errors-Crk5P8jo.js +636 -0
  25. package/dist/errors.d.ts +24 -36
  26. package/dist/execute-CiYvPs5Q.js +2061 -0
  27. package/dist/execute-DTTfacsi.cjs +2062 -0
  28. package/dist/{exit-DUM96DN1.cjs → exit-BOtKWPuT.cjs} +38 -28
  29. package/dist/{exit-CDdxDBRT.js → exit-DMPwCSba.js} +37 -27
  30. package/dist/exit.d.ts +19 -16
  31. package/dist/index.cjs +177 -1237
  32. package/dist/index.d.ts +25 -28
  33. package/dist/index.js +137 -1213
  34. package/dist/index.workerd.js +8974 -11145
  35. package/dist/inspect.d.ts +18 -4
  36. package/dist/inspection.d.ts +40 -0
  37. package/dist/native-0bq5ATZM.cjs +212 -0
  38. package/dist/native-n_718Z-T.js +177 -0
  39. package/dist/objects.d.ts +2 -57
  40. package/dist/prompts/native.d.ts +2 -0
  41. package/dist/prompts/prompt.d.ts +10 -101
  42. package/dist/quickjs-variant-21IO97PF.cjs +1080 -0
  43. package/dist/quickjs-variant-CtuGagsb.js +985 -0
  44. package/dist/result.d.ts +30 -861
  45. package/dist/runtime/execute.d.ts +3 -2
  46. package/dist/runtime/execution-activity.d.ts +11 -0
  47. package/dist/runtime/execution-diagnostics.d.ts +11 -0
  48. package/dist/runtime/execution-report.d.ts +51 -0
  49. package/dist/runtime/fixtures/chat.d.ts +8 -0
  50. package/dist/runtime/fixtures/long-search.d.ts +1 -1
  51. package/dist/runtime/fixtures/native-client.d.ts +33 -0
  52. package/dist/runtime/fixtures/protocol-languages.d.ts +1 -1
  53. package/dist/runtime/forced-inspection.d.ts +13 -0
  54. package/dist/runtime/forced-inspection.test.d.ts +1 -0
  55. package/dist/runtime/generate.d.ts +23 -20
  56. package/dist/runtime/generate.test.d.ts +1 -0
  57. package/dist/runtime/hook-provenance.test.d.ts +1 -0
  58. package/dist/runtime/inspection-hook.test.d.ts +1 -0
  59. package/dist/runtime/inspection-values.d.ts +14 -0
  60. package/dist/runtime/inspection-values.test.d.ts +1 -0
  61. package/dist/runtime/interruption-control-flow.test.d.ts +1 -0
  62. package/dist/runtime/interruption-settings.test.d.ts +1 -0
  63. package/dist/runtime/javascript-api.d.ts +62 -0
  64. package/dist/runtime/javascript-api.test.d.ts +1 -0
  65. package/dist/runtime/native-review.test.d.ts +1 -0
  66. package/dist/runtime/native-tools.d.ts +18 -0
  67. package/dist/runtime/native-tools.test.d.ts +1 -0
  68. package/dist/runtime/object-memory.test.d.ts +1 -0
  69. package/dist/runtime/single-tool.test.d.ts +1 -0
  70. package/dist/runtime/think-signal.test.d.ts +1 -0
  71. package/dist/runtime/token-budget.d.ts +22 -0
  72. package/dist/runtime/token-budget.test.d.ts +1 -0
  73. package/dist/runtime/tool-wrapper.d.ts +6 -5
  74. package/dist/runtime/traces.test.d.ts +1 -0
  75. package/dist/runtime/truncation.test.d.ts +1 -0
  76. package/dist/runtime/types.d.ts +47 -31
  77. package/dist/runtime/variable-recovery.test.d.ts +1 -0
  78. package/dist/runtime/vm-context.d.ts +6 -1
  79. package/dist/runtime/worker-completion.test.d.ts +1 -0
  80. package/dist/runtime-names.d.ts +4 -0
  81. package/dist/schema-CXlnbb3n.cjs +68 -0
  82. package/dist/schema-GE4ISPCR.js +45 -0
  83. package/dist/schema.d.ts +10 -0
  84. package/dist/schema.test.d.ts +1 -0
  85. package/dist/session/compactor.d.ts +51 -0
  86. package/dist/session/compactor.test.d.ts +1 -0
  87. package/dist/session/history.d.ts +36 -0
  88. package/dist/session/history.test.d.ts +1 -0
  89. package/dist/session/json.d.ts +3 -0
  90. package/dist/session/json.test.d.ts +1 -0
  91. package/dist/session/memory-codec.d.ts +9 -0
  92. package/dist/session/memory-codec.test.d.ts +1 -0
  93. package/dist/session/memory-render.d.ts +15 -0
  94. package/dist/session/memory-render.test.d.ts +1 -0
  95. package/dist/session/memory.d.ts +112 -0
  96. package/dist/session/memory.test.d.ts +1 -0
  97. package/dist/session/messages.d.ts +19 -0
  98. package/dist/session/messages.test.d.ts +1 -0
  99. package/dist/session/serialization.d.ts +36 -0
  100. package/dist/session/serialization.test.d.ts +1 -0
  101. package/dist/session/session-memory.test.d.ts +1 -0
  102. package/dist/session/session.d.ts +121 -0
  103. package/dist/session/session.test.d.ts +1 -0
  104. package/dist/session/speaker.test.d.ts +1 -0
  105. package/dist/{transcript.d.ts → session/transcript.d.ts} +4 -8
  106. package/dist/session/transcript.test.d.ts +1 -0
  107. package/dist/{tool-Bv8N4IPj.js → tool-DstssiAs.js} +144 -92
  108. package/dist/{tool-Dy6AJpJH.cjs → tool-_wK9hQOb.cjs} +146 -94
  109. package/dist/tool.d.ts +25 -17
  110. package/dist/truncate-BEKbdo3t.js +79 -0
  111. package/dist/truncate-uomAMGPs.cjs +102 -0
  112. package/dist/truncate.d.ts +24 -0
  113. package/dist/truncate.test.d.ts +1 -0
  114. package/dist/types.d.ts +33 -9
  115. package/dist/{typings-3lsqCbkn.cjs → typings-BA_XxAcY.cjs} +38 -193
  116. package/dist/{typings-CrBa7Tyy.js → typings-BEVDvtuk.js} +38 -175
  117. package/dist/typings-formatter.d.ts +1 -1
  118. package/dist/typings.d.ts +3 -0
  119. package/dist/{uniq-BYQ7GWwb.js → uniq-DfUeSNaX.js} +2 -2
  120. package/dist/{uniq-G872RWmE.cjs → uniq-DiXgysNV.cjs} +6 -18
  121. package/dist/{_baseIteratee-P_firB7b.js → utils-BOFzb8Ok.js} +1134 -16
  122. package/dist/{_baseIteratee-CF4qP2a8.cjs → utils-CTlsXvdj.cjs} +1281 -84
  123. package/dist/vm/drivers/node.d.ts +1 -1
  124. package/dist/vm/drivers/quickjs.d.ts +1 -1
  125. package/dist/vm/errors.d.ts +4 -4
  126. package/dist/vm/index.d.ts +3 -4
  127. package/dist/vm/instrument.d.ts +14 -6
  128. package/dist/vm/member-proxy.d.ts +4 -0
  129. package/dist/vm/member-proxy.test.d.ts +1 -0
  130. package/dist/vm/memory.test.d.ts +1 -0
  131. package/dist/vm/return-semantics.test.d.ts +1 -0
  132. package/dist/vm/types.d.ts +20 -3
  133. package/dist/{vm-BLsHw1da.js → vm-C7SfutHn.js} +1187 -180
  134. package/dist/{vm-D6s1zF6M.cjs → vm-gmekHc0i.cjs} +1221 -207
  135. package/package.json +13 -6
  136. package/dist/_baseForOwn-BfWDTL8L.cjs +0 -53
  137. package/dist/_baseForOwn-CFhWe_W6.js +0 -48
  138. package/dist/_getPrototype-CG7Dxrrz.js +0 -6
  139. package/dist/_getPrototype-DQDlNVVM.cjs +0 -10
  140. package/dist/_overArg-C5Hy7oCi.cjs +0 -196
  141. package/dist/_overArg-CRYbj1NH.js +0 -155
  142. package/dist/chat.d.ts +0 -401
  143. package/dist/common-BlRFtdf2.js +0 -807
  144. package/dist/common-BnvrDnIT.cjs +0 -860
  145. package/dist/compiler/plugins/track-tool-calls.d.ts +0 -33
  146. package/dist/compiler-C-OI9sim.cjs +0 -547
  147. package/dist/compiler-CW1VjQsn.js +0 -473
  148. package/dist/component-C6Agl2ns.cjs +0 -73
  149. package/dist/component-DGG7d_Mz.js +0 -44
  150. package/dist/component.d.ts +0 -88
  151. package/dist/component.default.d.ts +0 -278
  152. package/dist/custom-client-ChuZ63zp.js +0 -2658
  153. package/dist/custom-client-DAsGRnYc.cjs +0 -2729
  154. package/dist/dual-modes-DDkoCp3R.js +0 -3006
  155. package/dist/dual-modes-DPXiuvNe.cjs +0 -3090
  156. package/dist/errors-C962uJdS.cjs +0 -220
  157. package/dist/errors-Cg1G0Awu.js +0 -161
  158. package/dist/example-format.d.ts +0 -8
  159. package/dist/example.d.ts +0 -45
  160. package/dist/execute-BWcdv9so.js +0 -1059
  161. package/dist/execute-DM2-7y86.cjs +0 -1060
  162. package/dist/exit-parser.d.ts +0 -39
  163. package/dist/handlers.d.ts +0 -10
  164. package/dist/hoist.d.ts +0 -2
  165. package/dist/isEmpty-BhJRCqIF.js +0 -52
  166. package/dist/isEmpty-LY533Wmh.cjs +0 -57
  167. package/dist/isPlainObject-CSxXVKCk.cjs +0 -56
  168. package/dist/isPlainObject-D39AzPO2.js +0 -51
  169. package/dist/jsx-CIgdGGVs.js +0 -52
  170. package/dist/jsx-owqxrquU.cjs +0 -75
  171. package/dist/jsx.d.ts +0 -11
  172. package/dist/message-stream/index.d.ts +0 -9
  173. package/dist/message-stream/instructions.d.ts +0 -30
  174. package/dist/message-stream/normalizer.d.ts +0 -21
  175. package/dist/message-stream/parser.d.ts +0 -89
  176. package/dist/message-stream/registry.d.ts +0 -14
  177. package/dist/message-stream/replayable.d.ts +0 -27
  178. package/dist/message-stream/response-parser.d.ts +0 -24
  179. package/dist/message-stream/sanitize.d.ts +0 -10
  180. package/dist/message-stream/stream.d.ts +0 -54
  181. package/dist/message-stream/types.d.ts +0 -97
  182. package/dist/message-stream/validator.d.ts +0 -23
  183. package/dist/prompts/chat-mode/protocol.d.ts +0 -2
  184. package/dist/prompts/chat-mode/system.d.ts +0 -2
  185. package/dist/prompts/chat-mode/system.md.d.ts +0 -2
  186. package/dist/prompts/chat-mode/user.d.ts +0 -2
  187. package/dist/prompts/chat-mode/user.md.d.ts +0 -2
  188. package/dist/prompts/code-examples.d.ts +0 -2
  189. package/dist/prompts/common.d.ts +0 -7
  190. package/dist/prompts/dual-modes.d.ts +0 -2
  191. package/dist/prompts/execution-history.d.ts +0 -6
  192. package/dist/prompts/execution-state.d.ts +0 -3
  193. package/dist/prompts/protocol-basics.d.ts +0 -5
  194. package/dist/prompts/protocol.d.ts +0 -31
  195. package/dist/prompts/worker-mode/protocol.d.ts +0 -2
  196. package/dist/prompts/worker-mode/system.d.ts +0 -2
  197. package/dist/prompts/worker-mode/system.md.d.ts +0 -2
  198. package/dist/prompts/worker-mode/user.d.ts +0 -2
  199. package/dist/prompts/worker-mode/user.md.d.ts +0 -2
  200. package/dist/quickjs-variant-BYhMBpwU.js +0 -45
  201. package/dist/quickjs-variant-CsIwTVFC.cjs +0 -56
  202. package/dist/rolldown-runtime-EAsCxrDo.js +0 -14
  203. package/dist/runtime/fixtures/qwen-protocol-failures.d.ts +0 -29
  204. package/dist/runtime/interpret-result.d.ts +0 -22
  205. package/dist/snapshots.d.ts +0 -249
  206. package/dist/stack-traces-BIE_5Xwf.js +0 -21
  207. package/dist/stack-traces-ntw_qhoy.cjs +0 -26
  208. package/dist/truncator-CLkouTCO.cjs +0 -276
  209. package/dist/truncator-DZqEqnpD.js +0 -253
  210. package/dist/truncator.d.ts +0 -118
  211. package/dist/utils-3ESwP3yg.cjs +0 -1075
  212. package/dist/utils-UBeAFeEI.js +0 -950
  213. /package/dist/{citations.d.ts → chat/citations.d.ts} +0 -0
  214. /package/dist/{citations.test.d.ts → chat/citations.test.d.ts} +0 -0
  215. /package/dist/{component.default.test.d.ts → chat/component.default.test.d.ts} +0 -0
  216. /package/dist/{compiler/plugins/track-tool-calls.test.d.ts → chat/component.test.d.ts} +0 -0
  217. /package/dist/{example.test.d.ts → chat/response.test.d.ts} +0 -0
  218. /package/dist/{exit-parser.test.d.ts → compiler/plugins/dynamic-code.test.d.ts} +0 -0
  219. /package/dist/{handlers.test.d.ts → compiler/plugins/tool-resolution.test.d.ts} +0 -0
  220. /package/dist/{hoist.test.d.ts → errors/catalog.test.d.ts} +0 -0
  221. /package/dist/{message-stream/instructions.test.d.ts → exit.test.d.ts} +0 -0
  222. /package/dist/{message-stream/normalizer.test.d.ts → inspection.test.d.ts} +0 -0
  223. /package/dist/{message-stream/parser.test.d.ts → prompts/native.test.d.ts} +0 -0
  224. /package/dist/{message-stream/response-parser.test.d.ts → result.test.d.ts} +0 -0
  225. /package/dist/{message-stream/stream.test.d.ts → runtime/chat-completion.test.d.ts} +0 -0
  226. /package/dist/{message-stream/validator.test.d.ts → runtime/chat-delivery.test.d.ts} +0 -0
  227. /package/dist/{prompts/adherence.test.d.ts → runtime/chat-last-speaker.test.d.ts} +0 -0
  228. /package/dist/{prompts/catalogue-examples.test.d.ts → runtime/compatibility-regressions.test.d.ts} +0 -0
  229. /package/dist/{prompts/code-examples.test.d.ts → runtime/context-registration.test.d.ts} +0 -0
  230. /package/dist/{prompts/common.test.d.ts → runtime/empty-completion.test.d.ts} +0 -0
  231. /package/dist/{prompts/concrete-patterns.test.d.ts → runtime/error-recovery.test.d.ts} +0 -0
  232. /package/dist/{prompts/long-search.test.d.ts → runtime/errors.test.d.ts} +0 -0
  233. /package/dist/{prompts/protocol-simple.test.d.ts → runtime/execution-activity.test.d.ts} +0 -0
  234. /package/dist/{prompts/protocol.test.d.ts → runtime/execution-diagnostics.test.d.ts} +0 -0
  235. /package/dist/{prompts/sections.test.d.ts → runtime/execution-report.test.d.ts} +0 -0
  236. /package/dist/runtime/{interpret-result.test.d.ts → execution-safety.test.d.ts} +0 -0
  237. /package/dist/{transcript.test.d.ts → runtime/exit-control-flow.test.d.ts} +0 -0
  238. /package/dist/{truncator.test.d.ts → runtime/fixtures/long-search.test.d.ts} +0 -0
@@ -1,4 +1,131 @@
1
- import { a as Symbol, i as baseGetTag, n as isArray, o as root, r as isObjectLike, s as freeGlobal, t as overArg } from "./_overArg-CRYbj1NH.js";
1
+ import { transforms, z } from "@bpinternal/zui";
2
+ import { getWasmTokenizer } from "@bpinternal/thicktoken";
3
+ //#region \0rolldown/runtime.js
4
+ var __defProp = Object.defineProperty;
5
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
6
+ var __exportAll = (all, no_symbols) => {
7
+ let target = {};
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ return target;
14
+ };
15
+ //#endregion
16
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
17
+ /** Detect free variable `global` from Node.js. */
18
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
21
+ /** Detect free variable `self`. */
22
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
23
+ /** Used as a reference to the global object. */
24
+ var root = freeGlobal || freeSelf || Function("return this")();
25
+ //#endregion
26
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
27
+ /** Built-in value references. */
28
+ var Symbol$1 = root.Symbol;
29
+ //#endregion
30
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
31
+ /** Used for built-in method references. */
32
+ var objectProto$3 = Object.prototype;
33
+ /** Used to check objects for own properties. */
34
+ var hasOwnProperty$10 = objectProto$3.hasOwnProperty;
35
+ /**
36
+ * Used to resolve the
37
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
38
+ * of values.
39
+ */
40
+ var nativeObjectToString$1 = objectProto$3.toString;
41
+ /** Built-in value references. */
42
+ var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
43
+ /**
44
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
45
+ *
46
+ * @private
47
+ * @param {*} value The value to query.
48
+ * @returns {string} Returns the raw `toStringTag`.
49
+ */
50
+ function getRawTag(value) {
51
+ var isOwn = hasOwnProperty$10.call(value, symToStringTag$1), tag = value[symToStringTag$1];
52
+ try {
53
+ value[symToStringTag$1] = void 0;
54
+ var unmasked = true;
55
+ } catch (e) {}
56
+ var result = nativeObjectToString$1.call(value);
57
+ if (unmasked) {
58
+ if (isOwn) value[symToStringTag$1] = tag;
59
+ else delete value[symToStringTag$1];
60
+ }
61
+ return result;
62
+ }
63
+ //#endregion
64
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
65
+ /**
66
+ * Used to resolve the
67
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
68
+ * of values.
69
+ */
70
+ var nativeObjectToString = Object.prototype.toString;
71
+ /**
72
+ * Converts `value` to a string using `Object.prototype.toString`.
73
+ *
74
+ * @private
75
+ * @param {*} value The value to convert.
76
+ * @returns {string} Returns the converted string.
77
+ */
78
+ function objectToString(value) {
79
+ return nativeObjectToString.call(value);
80
+ }
81
+ //#endregion
82
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
83
+ /** `Object#toString` result references. */
84
+ var nullTag = "[object Null]";
85
+ var undefinedTag = "[object Undefined]";
86
+ /** Built-in value references. */
87
+ var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
88
+ /**
89
+ * The base implementation of `getTag` without fallbacks for buggy environments.
90
+ *
91
+ * @private
92
+ * @param {*} value The value to query.
93
+ * @returns {string} Returns the `toStringTag`.
94
+ */
95
+ function baseGetTag(value) {
96
+ if (value == null) return value === void 0 ? undefinedTag : nullTag;
97
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
98
+ }
99
+ //#endregion
100
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
101
+ /**
102
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
103
+ * and has a `typeof` result of "object".
104
+ *
105
+ * @static
106
+ * @memberOf _
107
+ * @since 4.0.0
108
+ * @category Lang
109
+ * @param {*} value The value to check.
110
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
111
+ * @example
112
+ *
113
+ * _.isObjectLike({});
114
+ * // => true
115
+ *
116
+ * _.isObjectLike([1, 2, 3]);
117
+ * // => true
118
+ *
119
+ * _.isObjectLike(_.noop);
120
+ * // => false
121
+ *
122
+ * _.isObjectLike(null);
123
+ * // => false
124
+ */
125
+ function isObjectLike(value) {
126
+ return value != null && typeof value == "object";
127
+ }
128
+ //#endregion
2
129
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
3
130
  /** `Object#toString` result references. */
4
131
  var symbolTag$1 = "[object Symbol]";
@@ -39,11 +166,37 @@ function arrayMap(array, iteratee) {
39
166
  return result;
40
167
  }
41
168
  //#endregion
169
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
170
+ /**
171
+ * Checks if `value` is classified as an `Array` object.
172
+ *
173
+ * @static
174
+ * @memberOf _
175
+ * @since 0.1.0
176
+ * @category Lang
177
+ * @param {*} value The value to check.
178
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
179
+ * @example
180
+ *
181
+ * _.isArray([1, 2, 3]);
182
+ * // => true
183
+ *
184
+ * _.isArray(document.body.children);
185
+ * // => false
186
+ *
187
+ * _.isArray('abc');
188
+ * // => false
189
+ *
190
+ * _.isArray(_.noop);
191
+ * // => false
192
+ */
193
+ var isArray = Array.isArray;
194
+ //#endregion
42
195
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
43
196
  /** Used as references for various `Number` constants. */
44
197
  var INFINITY$1 = 1 / 0;
45
198
  /** Used to convert symbols to primitives and strings. */
46
- var symbolProto$1 = Symbol ? Symbol.prototype : void 0;
199
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0;
47
200
  var symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
48
201
  /**
49
202
  * The base implementation of `_.toString` which doesn't convert nullish
@@ -199,9 +352,9 @@ var objectProto$2 = Object.prototype;
199
352
  /** Used to resolve the decompiled source of functions. */
200
353
  var funcToString = funcProto.toString;
201
354
  /** Used to check objects for own properties. */
202
- var hasOwnProperty$7 = objectProto$2.hasOwnProperty;
355
+ var hasOwnProperty$9 = objectProto$2.hasOwnProperty;
203
356
  /** Used to detect if a method is native. */
204
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
357
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
205
358
  /**
206
359
  * The base implementation of `_.isNative` without bad shim checks.
207
360
  *
@@ -330,6 +483,24 @@ function eq(value, other) {
330
483
  return value === other || value !== value && other !== other;
331
484
  }
332
485
  //#endregion
486
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
487
+ /** Used to check objects for own properties. */
488
+ var hasOwnProperty$8 = Object.prototype.hasOwnProperty;
489
+ /**
490
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
491
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
492
+ * for equality comparisons.
493
+ *
494
+ * @private
495
+ * @param {Object} object The object to modify.
496
+ * @param {string} key The key of the property to assign.
497
+ * @param {*} value The value to assign.
498
+ */
499
+ function assignValue(object, key, value) {
500
+ var objValue = object[key];
501
+ if (!(hasOwnProperty$8.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
502
+ }
503
+ //#endregion
333
504
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
334
505
  /** Used as references for various `Number` constants. */
335
506
  var MAX_SAFE_INTEGER = 9007199254740991;
@@ -442,7 +613,7 @@ function baseIsArguments(value) {
442
613
  /** Used for built-in method references. */
443
614
  var objectProto = Object.prototype;
444
615
  /** Used to check objects for own properties. */
445
- var hasOwnProperty$6 = objectProto.hasOwnProperty;
616
+ var hasOwnProperty$7 = objectProto.hasOwnProperty;
446
617
  /** Built-in value references. */
447
618
  var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
448
619
  /**
@@ -466,7 +637,7 @@ var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
466
637
  var isArguments = baseIsArguments(function() {
467
638
  return arguments;
468
639
  }()) ? baseIsArguments : function(value) {
469
- return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
640
+ return isObjectLike(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
470
641
  };
471
642
  //#endregion
472
643
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
@@ -493,7 +664,7 @@ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType &
493
664
  /** Detect free variable `module`. */
494
665
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
495
666
  /** Built-in value references. */
496
- var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffer : void 0;
667
+ var Buffer$1 = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffer : void 0;
497
668
  /**
498
669
  * Checks if `value` is a buffer.
499
670
  *
@@ -511,7 +682,7 @@ var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffe
511
682
  * _.isBuffer(new Uint8Array(2));
512
683
  * // => false
513
684
  */
514
- var isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse;
685
+ var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
515
686
  //#endregion
516
687
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
517
688
  /** `Object#toString` result references. */
@@ -607,7 +778,7 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
607
778
  //#endregion
608
779
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
609
780
  /** Used to check objects for own properties. */
610
- var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
781
+ var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
611
782
  /**
612
783
  * Creates an array of the enumerable property names of the array-like `value`.
613
784
  *
@@ -618,16 +789,31 @@ var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
618
789
  */
619
790
  function arrayLikeKeys(value, inherited) {
620
791
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
621
- for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
792
+ for (var key in value) if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
622
793
  return result;
623
794
  }
624
795
  //#endregion
796
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
797
+ /**
798
+ * Creates a unary function that invokes `func` with its argument transformed.
799
+ *
800
+ * @private
801
+ * @param {Function} func The function to wrap.
802
+ * @param {Function} transform The argument transform.
803
+ * @returns {Function} Returns the new function.
804
+ */
805
+ function overArg(func, transform) {
806
+ return function(arg) {
807
+ return func(transform(arg));
808
+ };
809
+ }
810
+ //#endregion
625
811
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
626
812
  var nativeKeys = overArg(Object.keys, Object);
627
813
  //#endregion
628
814
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
629
815
  /** Used to check objects for own properties. */
630
- var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
816
+ var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
631
817
  /**
632
818
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
633
819
  *
@@ -638,7 +824,7 @@ var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
638
824
  function baseKeys(object) {
639
825
  if (!isPrototype(object)) return nativeKeys(object);
640
826
  var result = [];
641
- for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
827
+ for (var key in Object(object)) if (hasOwnProperty$5.call(object, key) && key != "constructor") result.push(key);
642
828
  return result;
643
829
  }
644
830
  //#endregion
@@ -675,6 +861,67 @@ function keys(object) {
675
861
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
676
862
  }
677
863
  //#endregion
864
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
865
+ /**
866
+ * This function is like
867
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
868
+ * except that it includes inherited enumerable properties.
869
+ *
870
+ * @private
871
+ * @param {Object} object The object to query.
872
+ * @returns {Array} Returns the array of property names.
873
+ */
874
+ function nativeKeysIn(object) {
875
+ var result = [];
876
+ if (object != null) for (var key in Object(object)) result.push(key);
877
+ return result;
878
+ }
879
+ //#endregion
880
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
881
+ /** Used to check objects for own properties. */
882
+ var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
883
+ /**
884
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
885
+ *
886
+ * @private
887
+ * @param {Object} object The object to query.
888
+ * @returns {Array} Returns the array of property names.
889
+ */
890
+ function baseKeysIn(object) {
891
+ if (!isObject(object)) return nativeKeysIn(object);
892
+ var isProto = isPrototype(object), result = [];
893
+ for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) result.push(key);
894
+ return result;
895
+ }
896
+ //#endregion
897
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
898
+ /**
899
+ * Creates an array of the own and inherited enumerable property names of `object`.
900
+ *
901
+ * **Note:** Non-object values are coerced to objects.
902
+ *
903
+ * @static
904
+ * @memberOf _
905
+ * @since 3.0.0
906
+ * @category Object
907
+ * @param {Object} object The object to query.
908
+ * @returns {Array} Returns the array of property names.
909
+ * @example
910
+ *
911
+ * function Foo() {
912
+ * this.a = 1;
913
+ * this.b = 2;
914
+ * }
915
+ *
916
+ * Foo.prototype.c = 3;
917
+ *
918
+ * _.keysIn(new Foo);
919
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
920
+ */
921
+ function keysIn(object) {
922
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
923
+ }
924
+ //#endregion
678
925
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
679
926
  /** Used to match property names within property paths. */
680
927
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
@@ -1280,6 +1527,628 @@ function arrayPush(array, values) {
1280
1527
  return array;
1281
1528
  }
1282
1529
  //#endregion
1530
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
1531
+ /** Built-in value references. */
1532
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
1533
+ //#endregion
1534
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js
1535
+ /**
1536
+ * The base implementation of `_.slice` without an iteratee call guard.
1537
+ *
1538
+ * @private
1539
+ * @param {Array} array The array to slice.
1540
+ * @param {number} [start=0] The start position.
1541
+ * @param {number} [end=array.length] The end position.
1542
+ * @returns {Array} Returns the slice of `array`.
1543
+ */
1544
+ function baseSlice(array, start, end) {
1545
+ var index = -1, length = array.length;
1546
+ if (start < 0) start = -start > length ? 0 : length + start;
1547
+ end = end > length ? length : end;
1548
+ if (end < 0) end += length;
1549
+ length = start > end ? 0 : end - start >>> 0;
1550
+ start >>>= 0;
1551
+ var result = Array(length);
1552
+ while (++index < length) result[index] = array[index + start];
1553
+ return result;
1554
+ }
1555
+ //#endregion
1556
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js
1557
+ /**
1558
+ * Casts `array` to a slice if it's needed.
1559
+ *
1560
+ * @private
1561
+ * @param {Array} array The array to inspect.
1562
+ * @param {number} start The start position.
1563
+ * @param {number} [end=array.length] The end position.
1564
+ * @returns {Array} Returns the cast slice.
1565
+ */
1566
+ function castSlice(array, start, end) {
1567
+ var length = array.length;
1568
+ end = end === void 0 ? length : end;
1569
+ return !start && end >= length ? array : baseSlice(array, start, end);
1570
+ }
1571
+ //#endregion
1572
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js
1573
+ /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
1574
+ var reHasUnicode = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
1575
+ /**
1576
+ * Checks if `string` contains Unicode symbols.
1577
+ *
1578
+ * @private
1579
+ * @param {string} string The string to inspect.
1580
+ * @returns {boolean} Returns `true` if a symbol is found, else `false`.
1581
+ */
1582
+ function hasUnicode(string) {
1583
+ return reHasUnicode.test(string);
1584
+ }
1585
+ //#endregion
1586
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js
1587
+ /**
1588
+ * Converts an ASCII `string` to an array.
1589
+ *
1590
+ * @private
1591
+ * @param {string} string The string to convert.
1592
+ * @returns {Array} Returns the converted array.
1593
+ */
1594
+ function asciiToArray(string) {
1595
+ return string.split("");
1596
+ }
1597
+ //#endregion
1598
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js
1599
+ /** Used to compose unicode character classes. */
1600
+ var rsAstralRange$1 = "\\ud800-\\udfff";
1601
+ var rsComboRange$1 = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
1602
+ var rsVarRange$1 = "\\ufe0e\\ufe0f";
1603
+ /** Used to compose unicode capture groups. */
1604
+ var rsAstral = "[" + rsAstralRange$1 + "]";
1605
+ var rsCombo$1 = "[" + rsComboRange$1 + "]";
1606
+ var rsFitz = "\\ud83c[\\udffb-\\udfff]";
1607
+ var rsModifier$1 = "(?:" + rsCombo$1 + "|" + rsFitz + ")";
1608
+ var rsNonAstral$1 = "[^" + rsAstralRange$1 + "]";
1609
+ var rsRegional$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
1610
+ var rsSurrPair$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
1611
+ var rsZWJ$1 = "\\u200d";
1612
+ /** Used to compose unicode regexes. */
1613
+ var reOptMod$1 = rsModifier$1 + "?";
1614
+ var rsOptVar$1 = "[" + rsVarRange$1 + "]?";
1615
+ var rsOptJoin$1 = "(?:" + rsZWJ$1 + "(?:" + [
1616
+ rsNonAstral$1,
1617
+ rsRegional$1,
1618
+ rsSurrPair$1
1619
+ ].join("|") + ")" + rsOptVar$1 + reOptMod$1 + ")*";
1620
+ var rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1;
1621
+ var rsSymbol = "(?:" + [
1622
+ rsNonAstral$1 + rsCombo$1 + "?",
1623
+ rsCombo$1,
1624
+ rsRegional$1,
1625
+ rsSurrPair$1,
1626
+ rsAstral
1627
+ ].join("|") + ")";
1628
+ /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
1629
+ var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq$1, "g");
1630
+ /**
1631
+ * Converts a Unicode `string` to an array.
1632
+ *
1633
+ * @private
1634
+ * @param {string} string The string to convert.
1635
+ * @returns {Array} Returns the converted array.
1636
+ */
1637
+ function unicodeToArray(string) {
1638
+ return string.match(reUnicode) || [];
1639
+ }
1640
+ //#endregion
1641
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js
1642
+ /**
1643
+ * Converts `string` to an array.
1644
+ *
1645
+ * @private
1646
+ * @param {string} string The string to convert.
1647
+ * @returns {Array} Returns the converted array.
1648
+ */
1649
+ function stringToArray(string) {
1650
+ return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
1651
+ }
1652
+ //#endregion
1653
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js
1654
+ /**
1655
+ * Creates a function like `_.lowerFirst`.
1656
+ *
1657
+ * @private
1658
+ * @param {string} methodName The name of the `String` case method to use.
1659
+ * @returns {Function} Returns the new case function.
1660
+ */
1661
+ function createCaseFirst(methodName) {
1662
+ return function(string) {
1663
+ string = toString(string);
1664
+ var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
1665
+ var chr = strSymbols ? strSymbols[0] : string.charAt(0);
1666
+ var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
1667
+ return chr[methodName]() + trailing;
1668
+ };
1669
+ }
1670
+ //#endregion
1671
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js
1672
+ /**
1673
+ * Converts the first character of `string` to upper case.
1674
+ *
1675
+ * @static
1676
+ * @memberOf _
1677
+ * @since 4.0.0
1678
+ * @category String
1679
+ * @param {string} [string=''] The string to convert.
1680
+ * @returns {string} Returns the converted string.
1681
+ * @example
1682
+ *
1683
+ * _.upperFirst('fred');
1684
+ * // => 'Fred'
1685
+ *
1686
+ * _.upperFirst('FRED');
1687
+ * // => 'FRED'
1688
+ */
1689
+ var upperFirst = createCaseFirst("toUpperCase");
1690
+ //#endregion
1691
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/capitalize.js
1692
+ /**
1693
+ * Converts the first character of `string` to upper case and the remaining
1694
+ * to lower case.
1695
+ *
1696
+ * @static
1697
+ * @memberOf _
1698
+ * @since 3.0.0
1699
+ * @category String
1700
+ * @param {string} [string=''] The string to capitalize.
1701
+ * @returns {string} Returns the capitalized string.
1702
+ * @example
1703
+ *
1704
+ * _.capitalize('FRED');
1705
+ * // => 'Fred'
1706
+ */
1707
+ function capitalize(string) {
1708
+ return upperFirst(toString(string).toLowerCase());
1709
+ }
1710
+ //#endregion
1711
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
1712
+ /**
1713
+ * A specialized version of `_.reduce` for arrays without support for
1714
+ * iteratee shorthands.
1715
+ *
1716
+ * @private
1717
+ * @param {Array} [array] The array to iterate over.
1718
+ * @param {Function} iteratee The function invoked per iteration.
1719
+ * @param {*} [accumulator] The initial value.
1720
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
1721
+ * the initial value.
1722
+ * @returns {*} Returns the accumulated value.
1723
+ */
1724
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
1725
+ var index = -1, length = array == null ? 0 : array.length;
1726
+ if (initAccum && length) accumulator = array[++index];
1727
+ while (++index < length) accumulator = iteratee(accumulator, array[index], index, array);
1728
+ return accumulator;
1729
+ }
1730
+ //#endregion
1731
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
1732
+ /**
1733
+ * The base implementation of `_.propertyOf` without support for deep paths.
1734
+ *
1735
+ * @private
1736
+ * @param {Object} object The object to query.
1737
+ * @returns {Function} Returns the new accessor function.
1738
+ */
1739
+ function basePropertyOf(object) {
1740
+ return function(key) {
1741
+ return object == null ? void 0 : object[key];
1742
+ };
1743
+ }
1744
+ //#endregion
1745
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
1746
+ /**
1747
+ * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
1748
+ * letters to basic Latin letters.
1749
+ *
1750
+ * @private
1751
+ * @param {string} letter The matched letter to deburr.
1752
+ * @returns {string} Returns the deburred letter.
1753
+ */
1754
+ var deburrLetter = basePropertyOf({
1755
+ "À": "A",
1756
+ "Á": "A",
1757
+ "Â": "A",
1758
+ "Ã": "A",
1759
+ "Ä": "A",
1760
+ "Å": "A",
1761
+ "à": "a",
1762
+ "á": "a",
1763
+ "â": "a",
1764
+ "ã": "a",
1765
+ "ä": "a",
1766
+ "å": "a",
1767
+ "Ç": "C",
1768
+ "ç": "c",
1769
+ "Ð": "D",
1770
+ "ð": "d",
1771
+ "È": "E",
1772
+ "É": "E",
1773
+ "Ê": "E",
1774
+ "Ë": "E",
1775
+ "è": "e",
1776
+ "é": "e",
1777
+ "ê": "e",
1778
+ "ë": "e",
1779
+ "Ì": "I",
1780
+ "Í": "I",
1781
+ "Î": "I",
1782
+ "Ï": "I",
1783
+ "ì": "i",
1784
+ "í": "i",
1785
+ "î": "i",
1786
+ "ï": "i",
1787
+ "Ñ": "N",
1788
+ "ñ": "n",
1789
+ "Ò": "O",
1790
+ "Ó": "O",
1791
+ "Ô": "O",
1792
+ "Õ": "O",
1793
+ "Ö": "O",
1794
+ "Ø": "O",
1795
+ "ò": "o",
1796
+ "ó": "o",
1797
+ "ô": "o",
1798
+ "õ": "o",
1799
+ "ö": "o",
1800
+ "ø": "o",
1801
+ "Ù": "U",
1802
+ "Ú": "U",
1803
+ "Û": "U",
1804
+ "Ü": "U",
1805
+ "ù": "u",
1806
+ "ú": "u",
1807
+ "û": "u",
1808
+ "ü": "u",
1809
+ "Ý": "Y",
1810
+ "ý": "y",
1811
+ "ÿ": "y",
1812
+ "Æ": "Ae",
1813
+ "æ": "ae",
1814
+ "Þ": "Th",
1815
+ "þ": "th",
1816
+ "ß": "ss",
1817
+ "Ā": "A",
1818
+ "Ă": "A",
1819
+ "Ą": "A",
1820
+ "ā": "a",
1821
+ "ă": "a",
1822
+ "ą": "a",
1823
+ "Ć": "C",
1824
+ "Ĉ": "C",
1825
+ "Ċ": "C",
1826
+ "Č": "C",
1827
+ "ć": "c",
1828
+ "ĉ": "c",
1829
+ "ċ": "c",
1830
+ "č": "c",
1831
+ "Ď": "D",
1832
+ "Đ": "D",
1833
+ "ď": "d",
1834
+ "đ": "d",
1835
+ "Ē": "E",
1836
+ "Ĕ": "E",
1837
+ "Ė": "E",
1838
+ "Ę": "E",
1839
+ "Ě": "E",
1840
+ "ē": "e",
1841
+ "ĕ": "e",
1842
+ "ė": "e",
1843
+ "ę": "e",
1844
+ "ě": "e",
1845
+ "Ĝ": "G",
1846
+ "Ğ": "G",
1847
+ "Ġ": "G",
1848
+ "Ģ": "G",
1849
+ "ĝ": "g",
1850
+ "ğ": "g",
1851
+ "ġ": "g",
1852
+ "ģ": "g",
1853
+ "Ĥ": "H",
1854
+ "Ħ": "H",
1855
+ "ĥ": "h",
1856
+ "ħ": "h",
1857
+ "Ĩ": "I",
1858
+ "Ī": "I",
1859
+ "Ĭ": "I",
1860
+ "Į": "I",
1861
+ "İ": "I",
1862
+ "ĩ": "i",
1863
+ "ī": "i",
1864
+ "ĭ": "i",
1865
+ "į": "i",
1866
+ "ı": "i",
1867
+ "Ĵ": "J",
1868
+ "ĵ": "j",
1869
+ "Ķ": "K",
1870
+ "ķ": "k",
1871
+ "ĸ": "k",
1872
+ "Ĺ": "L",
1873
+ "Ļ": "L",
1874
+ "Ľ": "L",
1875
+ "Ŀ": "L",
1876
+ "Ł": "L",
1877
+ "ĺ": "l",
1878
+ "ļ": "l",
1879
+ "ľ": "l",
1880
+ "ŀ": "l",
1881
+ "ł": "l",
1882
+ "Ń": "N",
1883
+ "Ņ": "N",
1884
+ "Ň": "N",
1885
+ "Ŋ": "N",
1886
+ "ń": "n",
1887
+ "ņ": "n",
1888
+ "ň": "n",
1889
+ "ŋ": "n",
1890
+ "Ō": "O",
1891
+ "Ŏ": "O",
1892
+ "Ő": "O",
1893
+ "ō": "o",
1894
+ "ŏ": "o",
1895
+ "ő": "o",
1896
+ "Ŕ": "R",
1897
+ "Ŗ": "R",
1898
+ "Ř": "R",
1899
+ "ŕ": "r",
1900
+ "ŗ": "r",
1901
+ "ř": "r",
1902
+ "Ś": "S",
1903
+ "Ŝ": "S",
1904
+ "Ş": "S",
1905
+ "Š": "S",
1906
+ "ś": "s",
1907
+ "ŝ": "s",
1908
+ "ş": "s",
1909
+ "š": "s",
1910
+ "Ţ": "T",
1911
+ "Ť": "T",
1912
+ "Ŧ": "T",
1913
+ "ţ": "t",
1914
+ "ť": "t",
1915
+ "ŧ": "t",
1916
+ "Ũ": "U",
1917
+ "Ū": "U",
1918
+ "Ŭ": "U",
1919
+ "Ů": "U",
1920
+ "Ű": "U",
1921
+ "Ų": "U",
1922
+ "ũ": "u",
1923
+ "ū": "u",
1924
+ "ŭ": "u",
1925
+ "ů": "u",
1926
+ "ű": "u",
1927
+ "ų": "u",
1928
+ "Ŵ": "W",
1929
+ "ŵ": "w",
1930
+ "Ŷ": "Y",
1931
+ "ŷ": "y",
1932
+ "Ÿ": "Y",
1933
+ "Ź": "Z",
1934
+ "Ż": "Z",
1935
+ "Ž": "Z",
1936
+ "ź": "z",
1937
+ "ż": "z",
1938
+ "ž": "z",
1939
+ "IJ": "IJ",
1940
+ "ij": "ij",
1941
+ "Œ": "Oe",
1942
+ "œ": "oe",
1943
+ "ʼn": "'n",
1944
+ "ſ": "s"
1945
+ });
1946
+ //#endregion
1947
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
1948
+ /** Used to match Latin Unicode letters (excluding mathematical operators). */
1949
+ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
1950
+ /**
1951
+ * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
1952
+ * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
1953
+ */
1954
+ var reComboMark = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
1955
+ /**
1956
+ * Deburrs `string` by converting
1957
+ * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
1958
+ * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
1959
+ * letters to basic Latin letters and removing
1960
+ * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
1961
+ *
1962
+ * @static
1963
+ * @memberOf _
1964
+ * @since 3.0.0
1965
+ * @category String
1966
+ * @param {string} [string=''] The string to deburr.
1967
+ * @returns {string} Returns the deburred string.
1968
+ * @example
1969
+ *
1970
+ * _.deburr('déjà vu');
1971
+ * // => 'deja vu'
1972
+ */
1973
+ function deburr(string) {
1974
+ string = toString(string);
1975
+ return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
1976
+ }
1977
+ //#endregion
1978
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js
1979
+ /** Used to match words composed of alphanumeric characters. */
1980
+ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1981
+ /**
1982
+ * Splits an ASCII `string` into an array of its words.
1983
+ *
1984
+ * @private
1985
+ * @param {string} The string to inspect.
1986
+ * @returns {Array} Returns the words of `string`.
1987
+ */
1988
+ function asciiWords(string) {
1989
+ return string.match(reAsciiWord) || [];
1990
+ }
1991
+ //#endregion
1992
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js
1993
+ /** Used to detect strings that need a more robust regexp to match words. */
1994
+ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1995
+ /**
1996
+ * Checks if `string` contains a word composed of Unicode symbols.
1997
+ *
1998
+ * @private
1999
+ * @param {string} string The string to inspect.
2000
+ * @returns {boolean} Returns `true` if a word is found, else `false`.
2001
+ */
2002
+ function hasUnicodeWord(string) {
2003
+ return reHasUnicodeWord.test(string);
2004
+ }
2005
+ //#endregion
2006
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js
2007
+ /** Used to compose unicode character classes. */
2008
+ var rsAstralRange = "\\ud800-\\udfff";
2009
+ var rsComboRange = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
2010
+ var rsDingbatRange = "\\u2700-\\u27bf";
2011
+ var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
2012
+ var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
2013
+ var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
2014
+ var rsPunctuationRange = "\\u2000-\\u206f";
2015
+ var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
2016
+ var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
2017
+ var rsVarRange = "\\ufe0e\\ufe0f";
2018
+ var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2019
+ /** Used to compose unicode capture groups. */
2020
+ var rsApos = "['’]";
2021
+ var rsBreak = "[" + rsBreakRange + "]";
2022
+ var rsCombo = "[" + rsComboRange + "]";
2023
+ var rsDigits = "\\d+";
2024
+ var rsDingbat = "[" + rsDingbatRange + "]";
2025
+ var rsLower = "[" + rsLowerRange + "]";
2026
+ var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
2027
+ var rsModifier = "(?:" + rsCombo + "|\\ud83c[\\udffb-\\udfff])";
2028
+ var rsNonAstral = "[^" + rsAstralRange + "]";
2029
+ var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
2030
+ var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
2031
+ var rsUpper = "[" + rsUpperRange + "]";
2032
+ var rsZWJ = "\\u200d";
2033
+ /** Used to compose unicode regexes. */
2034
+ var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
2035
+ var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
2036
+ var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
2037
+ var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
2038
+ var reOptMod = rsModifier + "?";
2039
+ var rsOptVar = "[" + rsVarRange + "]?";
2040
+ var rsOptJoin = "(?:" + rsZWJ + "(?:" + [
2041
+ rsNonAstral,
2042
+ rsRegional,
2043
+ rsSurrPair
2044
+ ].join("|") + ")" + rsOptVar + reOptMod + ")*";
2045
+ var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
2046
+ var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
2047
+ var rsSeq = rsOptVar + reOptMod + rsOptJoin;
2048
+ var rsEmoji = "(?:" + [
2049
+ rsDingbat,
2050
+ rsRegional,
2051
+ rsSurrPair
2052
+ ].join("|") + ")" + rsSeq;
2053
+ /** Used to match complex or compound words. */
2054
+ var reUnicodeWord = RegExp([
2055
+ rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [
2056
+ rsBreak,
2057
+ rsUpper,
2058
+ "$"
2059
+ ].join("|") + ")",
2060
+ rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [
2061
+ rsBreak,
2062
+ rsUpper + rsMiscLower,
2063
+ "$"
2064
+ ].join("|") + ")",
2065
+ rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
2066
+ rsUpper + "+" + rsOptContrUpper,
2067
+ rsOrdUpper,
2068
+ rsOrdLower,
2069
+ rsDigits,
2070
+ rsEmoji
2071
+ ].join("|"), "g");
2072
+ /**
2073
+ * Splits a Unicode `string` into an array of its words.
2074
+ *
2075
+ * @private
2076
+ * @param {string} The string to inspect.
2077
+ * @returns {Array} Returns the words of `string`.
2078
+ */
2079
+ function unicodeWords(string) {
2080
+ return string.match(reUnicodeWord) || [];
2081
+ }
2082
+ //#endregion
2083
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js
2084
+ /**
2085
+ * Splits `string` into an array of its words.
2086
+ *
2087
+ * @static
2088
+ * @memberOf _
2089
+ * @since 3.0.0
2090
+ * @category String
2091
+ * @param {string} [string=''] The string to inspect.
2092
+ * @param {RegExp|string} [pattern] The pattern to match words.
2093
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2094
+ * @returns {Array} Returns the words of `string`.
2095
+ * @example
2096
+ *
2097
+ * _.words('fred, barney, & pebbles');
2098
+ * // => ['fred', 'barney', 'pebbles']
2099
+ *
2100
+ * _.words('fred, barney, & pebbles', /[^, ]+/g);
2101
+ * // => ['fred', 'barney', '&', 'pebbles']
2102
+ */
2103
+ function words(string, pattern, guard) {
2104
+ string = toString(string);
2105
+ pattern = guard ? void 0 : pattern;
2106
+ if (pattern === void 0) return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
2107
+ return string.match(pattern) || [];
2108
+ }
2109
+ //#endregion
2110
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js
2111
+ /** Used to match apostrophes. */
2112
+ var reApos = RegExp("['’]", "g");
2113
+ /**
2114
+ * Creates a function like `_.camelCase`.
2115
+ *
2116
+ * @private
2117
+ * @param {Function} callback The function to combine each word.
2118
+ * @returns {Function} Returns the new compounder function.
2119
+ */
2120
+ function createCompounder(callback) {
2121
+ return function(string) {
2122
+ return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
2123
+ };
2124
+ }
2125
+ //#endregion
2126
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/camelCase.js
2127
+ /**
2128
+ * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
2129
+ *
2130
+ * @static
2131
+ * @memberOf _
2132
+ * @since 3.0.0
2133
+ * @category String
2134
+ * @param {string} [string=''] The string to convert.
2135
+ * @returns {string} Returns the camel cased string.
2136
+ * @example
2137
+ *
2138
+ * _.camelCase('Foo Bar');
2139
+ * // => 'fooBar'
2140
+ *
2141
+ * _.camelCase('--foo-bar--');
2142
+ * // => 'fooBar'
2143
+ *
2144
+ * _.camelCase('__FOO_BAR__');
2145
+ * // => 'fooBar'
2146
+ */
2147
+ var camelCase = createCompounder(function(result, word, index) {
2148
+ word = word.toLowerCase();
2149
+ return result + (index ? capitalize(word) : word);
2150
+ });
2151
+ //#endregion
1283
2152
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
1284
2153
  /**
1285
2154
  * Removes all key-value entries from the stack.
@@ -1445,6 +2314,23 @@ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1445
2314
  });
1446
2315
  };
1447
2316
  //#endregion
2317
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
2318
+ /**
2319
+ * Creates an array of the own and inherited enumerable symbols of `object`.
2320
+ *
2321
+ * @private
2322
+ * @param {Object} object The object to query.
2323
+ * @returns {Array} Returns the array of symbols.
2324
+ */
2325
+ var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
2326
+ var result = [];
2327
+ while (object) {
2328
+ arrayPush(result, getSymbols(object));
2329
+ object = getPrototype(object);
2330
+ }
2331
+ return result;
2332
+ };
2333
+ //#endregion
1448
2334
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
1449
2335
  /**
1450
2336
  * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
@@ -1474,6 +2360,19 @@ function getAllKeys(object) {
1474
2360
  return baseGetAllKeys(object, keys, getSymbols);
1475
2361
  }
1476
2362
  //#endregion
2363
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
2364
+ /**
2365
+ * Creates an array of own and inherited enumerable property names and
2366
+ * symbols of `object`.
2367
+ *
2368
+ * @private
2369
+ * @param {Object} object The object to query.
2370
+ * @returns {Array} Returns the array of property names and symbols.
2371
+ */
2372
+ function getAllKeysIn(object) {
2373
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
2374
+ }
2375
+ //#endregion
1477
2376
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
1478
2377
  var DataView = getNative(root, "DataView");
1479
2378
  //#endregion
@@ -1520,7 +2419,7 @@ var _getTag_default = getTag;
1520
2419
  //#endregion
1521
2420
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
1522
2421
  /** Built-in value references. */
1523
- var Uint8Array = root.Uint8Array;
2422
+ var Uint8Array$1 = root.Uint8Array;
1524
2423
  //#endregion
1525
2424
  //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
1526
2425
  /** Used to stand-in for `undefined` hash values. */
@@ -1701,7 +2600,7 @@ var symbolTag = "[object Symbol]";
1701
2600
  var arrayBufferTag = "[object ArrayBuffer]";
1702
2601
  var dataViewTag = "[object DataView]";
1703
2602
  /** Used to convert symbols to primitives and strings. */
1704
- var symbolProto = Symbol ? Symbol.prototype : void 0;
2603
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
1705
2604
  var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1706
2605
  /**
1707
2606
  * A specialized version of `baseIsEqualDeep` for comparing objects of
@@ -1727,7 +2626,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1727
2626
  object = object.buffer;
1728
2627
  other = other.buffer;
1729
2628
  case arrayBufferTag:
1730
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;
2629
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) return false;
1731
2630
  return true;
1732
2631
  case boolTag:
1733
2632
  case dateTag:
@@ -2135,4 +3034,223 @@ function baseIteratee(value) {
2135
3034
  return property(value);
2136
3035
  }
2137
3036
  //#endregion
2138
- export { isArrayLike as A, isSymbol as B, arrayLikeKeys as C, isBuffer as D, baseUnary as E, WeakMap as F, isFunction as I, identity as L, baseAssignValue as M, isIndex as N, isArguments as O, defineProperty as P, isObject as R, baseKeys as S, nodeUtil as T, baseGet as _, cacheHas as a, toString as b, _getTag_default as c, baseGetAllKeys as d, getSymbols as f, arrayPush as g, Stack as h, mapToArray as i, eq as j, isPrototype as k, Set as l, arrayFilter as m, baseIsEqual as n, SetCache as o, stubArray as p, setToArray as r, Uint8Array as s, baseIteratee as t, getAllKeys as u, toKey as v, isTypedArray as w, keys as x, castPath as y, arrayMap as z };
3037
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js
3038
+ /**
3039
+ * The base implementation of `_.set`.
3040
+ *
3041
+ * @private
3042
+ * @param {Object} object The object to modify.
3043
+ * @param {Array|string} path The path of the property to set.
3044
+ * @param {*} value The value to set.
3045
+ * @param {Function} [customizer] The function to customize path creation.
3046
+ * @returns {Object} Returns `object`.
3047
+ */
3048
+ function baseSet(object, path, value, customizer) {
3049
+ if (!isObject(object)) return object;
3050
+ path = castPath(path, object);
3051
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object;
3052
+ while (nested != null && ++index < length) {
3053
+ var key = toKey(path[index]), newValue = value;
3054
+ if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
3055
+ if (index != lastIndex) {
3056
+ var objValue = nested[key];
3057
+ newValue = customizer ? customizer(objValue, key, nested) : void 0;
3058
+ if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
3059
+ }
3060
+ assignValue(nested, key, newValue);
3061
+ nested = nested[key];
3062
+ }
3063
+ return object;
3064
+ }
3065
+ //#endregion
3066
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePickBy.js
3067
+ /**
3068
+ * The base implementation of `_.pickBy` without support for iteratee shorthands.
3069
+ *
3070
+ * @private
3071
+ * @param {Object} object The source object.
3072
+ * @param {string[]} paths The property paths to pick.
3073
+ * @param {Function} predicate The function invoked per property.
3074
+ * @returns {Object} Returns the new object.
3075
+ */
3076
+ function basePickBy(object, paths, predicate) {
3077
+ var index = -1, length = paths.length, result = {};
3078
+ while (++index < length) {
3079
+ var path = paths[index], value = baseGet(object, path);
3080
+ if (predicate(value, path)) baseSet(result, castPath(path, object), value);
3081
+ }
3082
+ return result;
3083
+ }
3084
+ //#endregion
3085
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pickBy.js
3086
+ /**
3087
+ * Creates an object composed of the `object` properties `predicate` returns
3088
+ * truthy for. The predicate is invoked with two arguments: (value, key).
3089
+ *
3090
+ * @static
3091
+ * @memberOf _
3092
+ * @since 4.0.0
3093
+ * @category Object
3094
+ * @param {Object} object The source object.
3095
+ * @param {Function} [predicate=_.identity] The function invoked per property.
3096
+ * @returns {Object} Returns the new object.
3097
+ * @example
3098
+ *
3099
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
3100
+ *
3101
+ * _.pickBy(object, _.isNumber);
3102
+ * // => { 'a': 1, 'c': 3 }
3103
+ */
3104
+ function pickBy(object, predicate) {
3105
+ if (object == null) return {};
3106
+ var props = arrayMap(getAllKeysIn(object), function(prop) {
3107
+ return [prop];
3108
+ });
3109
+ predicate = baseIteratee(predicate);
3110
+ return basePickBy(object, props, function(value, path) {
3111
+ return predicate(value, path[0]);
3112
+ });
3113
+ }
3114
+ //#endregion
3115
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/startCase.js
3116
+ /**
3117
+ * Converts `string` to
3118
+ * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
3119
+ *
3120
+ * @static
3121
+ * @memberOf _
3122
+ * @since 3.1.0
3123
+ * @category String
3124
+ * @param {string} [string=''] The string to convert.
3125
+ * @returns {string} Returns the start cased string.
3126
+ * @example
3127
+ *
3128
+ * _.startCase('--foo-bar--');
3129
+ * // => 'Foo Bar'
3130
+ *
3131
+ * _.startCase('fooBar');
3132
+ * // => 'Foo Bar'
3133
+ *
3134
+ * _.startCase('__FOO_BAR__');
3135
+ * // => 'FOO BAR'
3136
+ */
3137
+ var startCase = createCompounder(function(result, word, index) {
3138
+ return result + (index ? " " : "") + upperFirst(word);
3139
+ });
3140
+ //#endregion
3141
+ //#region src/utils.ts
3142
+ var utils_exports = /* @__PURE__ */ __exportAll({
3143
+ Identifier: () => Identifier,
3144
+ configureTokenizer: () => configureTokenizer,
3145
+ escapeString: () => escapeString,
3146
+ fromJSONSchemaCompat: () => fromJSONSchemaCompat,
3147
+ getErrorMessage: () => getErrorMessage,
3148
+ getMultilineComment: () => getMultilineComment,
3149
+ getTokenizer: () => getTokenizer,
3150
+ init: () => init,
3151
+ isJsonSchema: () => isJsonSchema,
3152
+ isValidIdentifier: () => isValidIdentifier,
3153
+ isZuiSchema: () => isZuiSchema,
3154
+ stripInvalidIdentifiers: () => stripInvalidIdentifiers,
3155
+ toPropertyKey: () => toPropertyKey,
3156
+ toValidFunctionName: () => toValidFunctionName,
3157
+ toValidObjectName: () => toValidObjectName
3158
+ });
3159
+ let tokenizer = null;
3160
+ /**
3161
+ * Injects the tokenizer used for prompt budgeting instead of the default
3162
+ * `@bpinternal/thicktoken` WASM tokenizer.
3163
+ *
3164
+ * The default tokenizer compiles its WASM at runtime (`new WebAssembly.Module(bytes)`),
3165
+ * which is disallowed on some platforms (e.g. Cloudflare Workers / workerd). On those
3166
+ * platforms, build a tokenizer from a statically imported precompiled `WebAssembly.Module`
3167
+ * and inject it here before calling `execute()`.
3168
+ */
3169
+ const configureTokenizer = (customTokenizer) => {
3170
+ tokenizer = customTokenizer;
3171
+ };
3172
+ const init = async () => {
3173
+ if (tokenizer) return;
3174
+ while (typeof getWasmTokenizer !== "function") await new Promise((resolve) => setTimeout(resolve, 50));
3175
+ tokenizer = await getWasmTokenizer();
3176
+ };
3177
+ const getTokenizer = () => {
3178
+ if (!tokenizer) throw new Error("Tokenizer not initialized, make sure to call init() first and await it");
3179
+ return tokenizer;
3180
+ };
3181
+ const Identifier = z.string().min(1).max(100).regex(/^([a-zA-Z_][a-zA-Z0-9_]*)$/, "Identifiers must start with a letter and can only contain letters, numbers and underscores");
3182
+ function escapeString(str) {
3183
+ if (typeof str !== "string") return "";
3184
+ const escapedStr = String.raw`${str}`.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/"/g, "\\\"").replace(/'/g, "\\'");
3185
+ if (escapedStr.includes("`")) return `"${escapedStr}"`;
3186
+ else if (escapedStr.includes("'")) return `"${escapedStr}"`;
3187
+ else return `'${escapedStr}'`;
3188
+ }
3189
+ const toPropertyKey = (key) => {
3190
+ if (/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key)) return key;
3191
+ return escapeString(key);
3192
+ };
3193
+ const trimEmptyLines = (lines) => {
3194
+ var _lines$;
3195
+ while (lines.length && !((_lines$ = lines[0]) === null || _lines$ === void 0 ? void 0 : _lines$.trim())) lines.shift();
3196
+ while (lines.length && !lines[lines.length - 1].trim()) lines.pop();
3197
+ };
3198
+ const getMultilineComment = (description) => {
3199
+ description = description === null || description === void 0 ? void 0 : description.replace(/(\n(\s*)?){3,}/g, "\n\n");
3200
+ const ensureLineStartsWithAsterisk = (line) => line.startsWith("* ") ? ` ${line}` : ` * ${line}`;
3201
+ const escapeCommentEnd = (line) => line.replace(/\*\//g, "*\\/");
3202
+ const descLines = (description ?? "").split("\n").map((line) => line.trim());
3203
+ trimEmptyLines(descLines);
3204
+ if (descLines.length) {
3205
+ descLines[0] = descLines[0].replace(/^\/\*\*?/, "");
3206
+ descLines[descLines.length - 1] = descLines[descLines.length - 1].replace(/\*\/$/, "");
3207
+ }
3208
+ trimEmptyLines(descLines);
3209
+ if (descLines.length === 0) return "";
3210
+ if (descLines.length === 1) return `/** ${escapeCommentEnd(descLines[0])} */`;
3211
+ return `/**\n${descLines.map(ensureLineStartsWithAsterisk).map(escapeCommentEnd).join("\n")}\n */`;
3212
+ };
3213
+ const toValidFunctionName = (str) => {
3214
+ let name = deburr(str);
3215
+ name = name.replace(/[^a-zA-Z0-9_$]/g, "");
3216
+ if (!/^[a-zA-Z_$]/.test(name)) name = `_${name}`;
3217
+ return camelCase(name);
3218
+ };
3219
+ const toValidObjectName = (str) => {
3220
+ let name = deburr(str);
3221
+ name = name.split(/[^a-zA-Z0-9_$]/g).map(startCase).join("");
3222
+ if (!/^[a-zA-Z_$]/.test(name)) name = `_${name}`;
3223
+ return name.replaceAll(" ", "");
3224
+ };
3225
+ const stripInvalidIdentifiers = (object) => {
3226
+ if (typeof object !== "object") return object;
3227
+ if (Array.isArray(object)) return object.map(stripInvalidIdentifiers);
3228
+ return pickBy(object, (__, key) => Identifier.safeParse(key).success);
3229
+ };
3230
+ /**
3231
+ * JSON Schema → Zui via the legacy transform, falling back to the eval-free one.
3232
+ * The legacy transform builds the schema by evaluating generated code, which is
3233
+ * banned on some platforms (e.g. Cloudflare Workers / workerd) — there it throws
3234
+ * and the eval-free transform takes over. Kept legacy-first because the two
3235
+ * transforms differ on some shapes (e.g. discriminated unions).
3236
+ */
3237
+ const fromJSONSchemaCompat = (schema) => {
3238
+ try {
3239
+ return transforms.fromJSONSchemaLegacy(schema);
3240
+ } catch {
3241
+ return transforms.fromJSONSchema(schema);
3242
+ }
3243
+ };
3244
+ function isZuiSchema(schema) {
3245
+ return !!schema && typeof schema === "object" && schema.__type__ === "ZuiType";
3246
+ }
3247
+ function isJsonSchema(schema) {
3248
+ return !!schema && typeof schema === "object" && ("$schema" in schema || "type" in schema || "properties" in schema);
3249
+ }
3250
+ function isValidIdentifier(name) {
3251
+ if (typeof name !== "string") return false;
3252
+ return /^[A-Z]{1,}[A-Z0-9_]{0,50}$/i.test(name);
3253
+ }
3254
+ const getErrorMessage = (err) => err instanceof Error ? err.message : JSON.stringify(err);
3255
+ //#endregion
3256
+ export { keys as A, baseAssignValue as B, getAllKeysIn as C, Stack as D, getSymbols as E, isBuffer as F, isObjectLike as G, isObject as H, isArguments as I, __commonJSMin as J, Symbol$1 as K, isPrototype as L, isTypedArray as M, nodeUtil as N, getPrototype as O, baseUnary as P, isArrayLike as R, Set as S, getSymbolsIn as T, isArray as U, isFunction as V, isSymbol as W, __exportAll as Y, setToArray as _, getTokenizer as a, Uint8Array$1 as b, isValidIdentifier as c, toPropertyKey as d, toValidFunctionName as f, baseIsEqual as g, baseIteratee as h, getMultilineComment as i, baseKeys as j, keysIn as k, isZuiSchema as l, utils_exports as m, fromJSONSchemaCompat as n, init as o, toValidObjectName as p, root as q, getErrorMessage as r, isJsonSchema as s, configureTokenizer as t, stripInvalidIdentifiers as u, cacheHas as v, getAllKeys as w, _getTag_default as x, SetCache as y, assignValue as z };