@takumi-rs/core 2.12.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/export.cjs CHANGED
@@ -50,94 +50,97 @@ function requireNative() {
50
50
  } catch (err) {
51
51
  loadErrors.push(err);
52
52
  }
53
- else if (process.platform === "android") if (process.arch === "arm64") {
54
- try {
55
- return require$1(/* turbopackOptional: true */ "../core.android-arm64.node");
56
- } catch (e) {
57
- loadErrors.push(e);
58
- }
59
- try {
60
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
61
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
62
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
63
- return binding;
64
- } catch (e) {
65
- loadErrors.push(e);
66
- }
67
- } else if (process.arch === "arm") {
68
- try {
69
- return require$1(/* turbopackOptional: true */ "../core.android-arm-eabi.node");
70
- } catch (e) {
71
- loadErrors.push(e);
72
- }
73
- try {
74
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
75
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
76
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
77
- return binding;
78
- } catch (e) {
79
- loadErrors.push(e);
80
- }
81
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
82
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
83
- try {
84
- return require$1(/* turbopackOptional: true */ "../core.win32-x64-gnu.node");
85
- } catch (e) {
86
- loadErrors.push(e);
87
- }
88
- try {
89
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
90
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
91
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
92
- return binding;
93
- } catch (e) {
94
- loadErrors.push(e);
95
- }
96
- } else {
97
- try {
98
- return require$1(/* turbopackOptional: true */ "../core.win32-x64-msvc.node");
99
- } catch (e) {
100
- loadErrors.push(e);
101
- }
102
- try {
103
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
104
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
105
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
- return binding;
107
- } catch (e) {
108
- loadErrors.push(e);
109
- }
110
- }
111
- else if (process.arch === "ia32") {
112
- try {
113
- return require$1(/* turbopackOptional: true */ "../core.win32-ia32-msvc.node");
114
- } catch (e) {
115
- loadErrors.push(e);
116
- }
117
- try {
118
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
119
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
120
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
- return binding;
122
- } catch (e) {
123
- loadErrors.push(e);
124
- }
125
- } else if (process.arch === "arm64") {
126
- try {
127
- return require$1(/* turbopackOptional: true */ "../core.win32-arm64-msvc.node");
128
- } catch (e) {
129
- loadErrors.push(e);
130
- }
131
- try {
132
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
133
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
134
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
- return binding;
136
- } catch (e) {
137
- loadErrors.push(e);
138
- }
139
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
140
- else if (process.platform === "darwin") {
53
+ else if (process.platform === "android") {
54
+ if (process.arch === "arm64") {
55
+ try {
56
+ return require$1(/* turbopackOptional: true */ "../core.android-arm64.node");
57
+ } catch (e) {
58
+ loadErrors.push(e);
59
+ }
60
+ try {
61
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
62
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
63
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
64
+ return binding;
65
+ } catch (e) {
66
+ loadErrors.push(e);
67
+ }
68
+ } else if (process.arch === "arm") {
69
+ try {
70
+ return require$1(/* turbopackOptional: true */ "../core.android-arm-eabi.node");
71
+ } catch (e) {
72
+ loadErrors.push(e);
73
+ }
74
+ try {
75
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
76
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
77
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
78
+ return binding;
79
+ } catch (e) {
80
+ loadErrors.push(e);
81
+ }
82
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
83
+ } else if (process.platform === "win32") {
84
+ if (process.arch === "x64") {
85
+ if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
86
+ try {
87
+ return require$1(/* turbopackOptional: true */ "../core.win32-x64-gnu.node");
88
+ } catch (e) {
89
+ loadErrors.push(e);
90
+ }
91
+ try {
92
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
93
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
94
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
+ return binding;
96
+ } catch (e) {
97
+ loadErrors.push(e);
98
+ }
99
+ } else {
100
+ try {
101
+ return require$1(/* turbopackOptional: true */ "../core.win32-x64-msvc.node");
102
+ } catch (e) {
103
+ loadErrors.push(e);
104
+ }
105
+ try {
106
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
107
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
108
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
109
+ return binding;
110
+ } catch (e) {
111
+ loadErrors.push(e);
112
+ }
113
+ }
114
+ } else if (process.arch === "ia32") {
115
+ try {
116
+ return require$1(/* turbopackOptional: true */ "../core.win32-ia32-msvc.node");
117
+ } catch (e) {
118
+ loadErrors.push(e);
119
+ }
120
+ try {
121
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
122
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
123
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
124
+ return binding;
125
+ } catch (e) {
126
+ loadErrors.push(e);
127
+ }
128
+ } else if (process.arch === "arm64") {
129
+ try {
130
+ return require$1(/* turbopackOptional: true */ "../core.win32-arm64-msvc.node");
131
+ } catch (e) {
132
+ loadErrors.push(e);
133
+ }
134
+ try {
135
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
136
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
137
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
138
+ return binding;
139
+ } catch (e) {
140
+ loadErrors.push(e);
141
+ }
142
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
143
+ } else if (process.platform === "darwin") {
141
144
  try {
142
145
  return require$1(/* turbopackOptional: true */ "../core.darwin-universal.node");
143
146
  } catch (e) {
@@ -146,7 +149,7 @@ function requireNative() {
146
149
  try {
147
150
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
148
151
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
149
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
152
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
153
  return binding;
151
154
  } catch (e) {
152
155
  loadErrors.push(e);
@@ -160,7 +163,7 @@ function requireNative() {
160
163
  try {
161
164
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
162
165
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
163
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
166
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
167
  return binding;
165
168
  } catch (e) {
166
169
  loadErrors.push(e);
@@ -174,259 +177,267 @@ function requireNative() {
174
177
  try {
175
178
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
176
179
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
177
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
180
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
181
  return binding;
179
182
  } catch (e) {
180
183
  loadErrors.push(e);
181
184
  }
182
185
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));
183
- } else if (process.platform === "freebsd") if (process.arch === "x64") {
184
- try {
185
- return require$1(/* turbopackOptional: true */ "../core.freebsd-x64.node");
186
- } catch (e) {
187
- loadErrors.push(e);
188
- }
189
- try {
190
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
191
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
192
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
- return binding;
194
- } catch (e) {
195
- loadErrors.push(e);
196
- }
197
- } else if (process.arch === "arm64") {
198
- try {
199
- return require$1(/* turbopackOptional: true */ "../core.freebsd-arm64.node");
200
- } catch (e) {
201
- loadErrors.push(e);
202
- }
203
- try {
204
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
205
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
206
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
- return binding;
208
- } catch (e) {
209
- loadErrors.push(e);
210
- }
211
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
212
- else if (process.platform === "linux") if (process.arch === "x64") if (isMusl()) {
213
- try {
214
- return require$1(/* turbopackOptional: true */ "../core.linux-x64-musl.node");
215
- } catch (e) {
216
- loadErrors.push(e);
217
- }
218
- try {
219
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
220
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
221
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
- return binding;
223
- } catch (e) {
224
- loadErrors.push(e);
225
- }
226
- } else {
227
- try {
228
- return require$1(/* turbopackOptional: true */ "../core.linux-x64-gnu.node");
229
- } catch (e) {
230
- loadErrors.push(e);
231
- }
232
- try {
233
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
234
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
235
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
- return binding;
237
- } catch (e) {
238
- loadErrors.push(e);
239
- }
240
- }
241
- else if (process.arch === "arm64") if (isMusl()) {
242
- try {
243
- return require$1(/* turbopackOptional: true */ "../core.linux-arm64-musl.node");
244
- } catch (e) {
245
- loadErrors.push(e);
246
- }
247
- try {
248
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
249
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
250
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
- return binding;
252
- } catch (e) {
253
- loadErrors.push(e);
254
- }
255
- } else {
256
- try {
257
- return require$1(/* turbopackOptional: true */ "../core.linux-arm64-gnu.node");
258
- } catch (e) {
259
- loadErrors.push(e);
260
- }
261
- try {
262
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
263
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
264
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
- return binding;
266
- } catch (e) {
267
- loadErrors.push(e);
268
- }
269
- }
270
- else if (process.arch === "arm") if (isMusl()) {
271
- try {
272
- return require$1(/* turbopackOptional: true */ "../core.linux-arm-musleabihf.node");
273
- } catch (e) {
274
- loadErrors.push(e);
275
- }
276
- try {
277
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
278
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
279
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
- return binding;
281
- } catch (e) {
282
- loadErrors.push(e);
283
- }
284
- } else {
285
- try {
286
- return require$1(/* turbopackOptional: true */ "../core.linux-arm-gnueabihf.node");
287
- } catch (e) {
288
- loadErrors.push(e);
289
- }
290
- try {
291
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
292
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
293
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
- return binding;
295
- } catch (e) {
296
- loadErrors.push(e);
297
- }
298
- }
299
- else if (process.arch === "loong64") if (isMusl()) {
300
- try {
301
- return require$1(/* turbopackOptional: true */ "../core.linux-loong64-musl.node");
302
- } catch (e) {
303
- loadErrors.push(e);
304
- }
305
- try {
306
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
307
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
308
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
- return binding;
310
- } catch (e) {
311
- loadErrors.push(e);
312
- }
313
- } else {
314
- try {
315
- return require$1(/* turbopackOptional: true */ "../core.linux-loong64-gnu.node");
316
- } catch (e) {
317
- loadErrors.push(e);
318
- }
319
- try {
320
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
321
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
322
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
- return binding;
324
- } catch (e) {
325
- loadErrors.push(e);
326
- }
327
- }
328
- else if (process.arch === "riscv64") if (isMusl()) {
329
- try {
330
- return require$1(/* turbopackOptional: true */ "../core.linux-riscv64-musl.node");
331
- } catch (e) {
332
- loadErrors.push(e);
333
- }
334
- try {
335
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
336
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
337
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
- return binding;
339
- } catch (e) {
340
- loadErrors.push(e);
341
- }
342
- } else {
343
- try {
344
- return require$1(/* turbopackOptional: true */ "../core.linux-riscv64-gnu.node");
345
- } catch (e) {
346
- loadErrors.push(e);
347
- }
348
- try {
349
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
350
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
351
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
- return binding;
353
- } catch (e) {
354
- loadErrors.push(e);
355
- }
356
- }
357
- else if (process.arch === "ppc64") {
358
- try {
359
- return require$1(/* turbopackOptional: true */ "../core.linux-ppc64-gnu.node");
360
- } catch (e) {
361
- loadErrors.push(e);
362
- }
363
- try {
364
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
365
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
366
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
- return binding;
368
- } catch (e) {
369
- loadErrors.push(e);
370
- }
371
- } else if (process.arch === "s390x") {
372
- try {
373
- return require$1(/* turbopackOptional: true */ "../core.linux-s390x-gnu.node");
374
- } catch (e) {
375
- loadErrors.push(e);
376
- }
377
- try {
378
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
379
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
380
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
- return binding;
382
- } catch (e) {
383
- loadErrors.push(e);
384
- }
385
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
386
- else if (process.platform === "openharmony") if (process.arch === "arm64") {
387
- try {
388
- return require$1(/* turbopackOptional: true */ "../core.openharmony-arm64.node");
389
- } catch (e) {
390
- loadErrors.push(e);
391
- }
392
- try {
393
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
394
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
395
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
- return binding;
397
- } catch (e) {
398
- loadErrors.push(e);
399
- }
400
- } else if (process.arch === "x64") {
401
- try {
402
- return require$1(/* turbopackOptional: true */ "../core.openharmony-x64.node");
403
- } catch (e) {
404
- loadErrors.push(e);
405
- }
406
- try {
407
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
408
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
409
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
- return binding;
411
- } catch (e) {
412
- loadErrors.push(e);
413
- }
414
- } else if (process.arch === "arm") {
415
- try {
416
- return require$1(/* turbopackOptional: true */ "../core.openharmony-arm.node");
417
- } catch (e) {
418
- loadErrors.push(e);
419
- }
420
- try {
421
- const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
422
- const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
423
- if (bindingPackageVersion !== "2.12.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
- return binding;
425
- } catch (e) {
426
- loadErrors.push(e);
427
- }
428
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
429
- else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
186
+ } else if (process.platform === "freebsd") {
187
+ if (process.arch === "x64") {
188
+ try {
189
+ return require$1(/* turbopackOptional: true */ "../core.freebsd-x64.node");
190
+ } catch (e) {
191
+ loadErrors.push(e);
192
+ }
193
+ try {
194
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
195
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
196
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
197
+ return binding;
198
+ } catch (e) {
199
+ loadErrors.push(e);
200
+ }
201
+ } else if (process.arch === "arm64") {
202
+ try {
203
+ return require$1(/* turbopackOptional: true */ "../core.freebsd-arm64.node");
204
+ } catch (e) {
205
+ loadErrors.push(e);
206
+ }
207
+ try {
208
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
209
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
210
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
211
+ return binding;
212
+ } catch (e) {
213
+ loadErrors.push(e);
214
+ }
215
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
216
+ } else if (process.platform === "linux") {
217
+ if (process.arch === "x64") {
218
+ if (isMusl()) {
219
+ try {
220
+ return require$1(/* turbopackOptional: true */ "../core.linux-x64-musl.node");
221
+ } catch (e) {
222
+ loadErrors.push(e);
223
+ }
224
+ try {
225
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
226
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
227
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
+ return binding;
229
+ } catch (e) {
230
+ loadErrors.push(e);
231
+ }
232
+ } else {
233
+ try {
234
+ return require$1(/* turbopackOptional: true */ "../core.linux-x64-gnu.node");
235
+ } catch (e) {
236
+ loadErrors.push(e);
237
+ }
238
+ try {
239
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
240
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
241
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
+ return binding;
243
+ } catch (e) {
244
+ loadErrors.push(e);
245
+ }
246
+ }
247
+ } else if (process.arch === "arm64") {
248
+ if (isMusl()) {
249
+ try {
250
+ return require$1(/* turbopackOptional: true */ "../core.linux-arm64-musl.node");
251
+ } catch (e) {
252
+ loadErrors.push(e);
253
+ }
254
+ try {
255
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
256
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
257
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
258
+ return binding;
259
+ } catch (e) {
260
+ loadErrors.push(e);
261
+ }
262
+ } else {
263
+ try {
264
+ return require$1(/* turbopackOptional: true */ "../core.linux-arm64-gnu.node");
265
+ } catch (e) {
266
+ loadErrors.push(e);
267
+ }
268
+ try {
269
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
270
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
271
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
272
+ return binding;
273
+ } catch (e) {
274
+ loadErrors.push(e);
275
+ }
276
+ }
277
+ } else if (process.arch === "arm") {
278
+ if (isMusl()) {
279
+ try {
280
+ return require$1(/* turbopackOptional: true */ "../core.linux-arm-musleabihf.node");
281
+ } catch (e) {
282
+ loadErrors.push(e);
283
+ }
284
+ try {
285
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
286
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
287
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
+ return binding;
289
+ } catch (e) {
290
+ loadErrors.push(e);
291
+ }
292
+ } else {
293
+ try {
294
+ return require$1(/* turbopackOptional: true */ "../core.linux-arm-gnueabihf.node");
295
+ } catch (e) {
296
+ loadErrors.push(e);
297
+ }
298
+ try {
299
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
300
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
301
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
302
+ return binding;
303
+ } catch (e) {
304
+ loadErrors.push(e);
305
+ }
306
+ }
307
+ } else if (process.arch === "loong64") {
308
+ if (isMusl()) {
309
+ try {
310
+ return require$1(/* turbopackOptional: true */ "../core.linux-loong64-musl.node");
311
+ } catch (e) {
312
+ loadErrors.push(e);
313
+ }
314
+ try {
315
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
316
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
317
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
+ return binding;
319
+ } catch (e) {
320
+ loadErrors.push(e);
321
+ }
322
+ } else {
323
+ try {
324
+ return require$1(/* turbopackOptional: true */ "../core.linux-loong64-gnu.node");
325
+ } catch (e) {
326
+ loadErrors.push(e);
327
+ }
328
+ try {
329
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
330
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
331
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
332
+ return binding;
333
+ } catch (e) {
334
+ loadErrors.push(e);
335
+ }
336
+ }
337
+ } else if (process.arch === "riscv64") {
338
+ if (isMusl()) {
339
+ try {
340
+ return require$1(/* turbopackOptional: true */ "../core.linux-riscv64-musl.node");
341
+ } catch (e) {
342
+ loadErrors.push(e);
343
+ }
344
+ try {
345
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
346
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
347
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
348
+ return binding;
349
+ } catch (e) {
350
+ loadErrors.push(e);
351
+ }
352
+ } else {
353
+ try {
354
+ return require$1(/* turbopackOptional: true */ "../core.linux-riscv64-gnu.node");
355
+ } catch (e) {
356
+ loadErrors.push(e);
357
+ }
358
+ try {
359
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
360
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
361
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
+ return binding;
363
+ } catch (e) {
364
+ loadErrors.push(e);
365
+ }
366
+ }
367
+ } else if (process.arch === "ppc64") {
368
+ try {
369
+ return require$1(/* turbopackOptional: true */ "../core.linux-ppc64-gnu.node");
370
+ } catch (e) {
371
+ loadErrors.push(e);
372
+ }
373
+ try {
374
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
375
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
376
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
377
+ return binding;
378
+ } catch (e) {
379
+ loadErrors.push(e);
380
+ }
381
+ } else if (process.arch === "s390x") {
382
+ try {
383
+ return require$1(/* turbopackOptional: true */ "../core.linux-s390x-gnu.node");
384
+ } catch (e) {
385
+ loadErrors.push(e);
386
+ }
387
+ try {
388
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
389
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
390
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
391
+ return binding;
392
+ } catch (e) {
393
+ loadErrors.push(e);
394
+ }
395
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
396
+ } else if (process.platform === "openharmony") {
397
+ if (process.arch === "arm64") {
398
+ try {
399
+ return require$1(/* turbopackOptional: true */ "../core.openharmony-arm64.node");
400
+ } catch (e) {
401
+ loadErrors.push(e);
402
+ }
403
+ try {
404
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
405
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
406
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
+ return binding;
408
+ } catch (e) {
409
+ loadErrors.push(e);
410
+ }
411
+ } else if (process.arch === "x64") {
412
+ try {
413
+ return require$1(/* turbopackOptional: true */ "../core.openharmony-x64.node");
414
+ } catch (e) {
415
+ loadErrors.push(e);
416
+ }
417
+ try {
418
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
419
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
420
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
421
+ return binding;
422
+ } catch (e) {
423
+ loadErrors.push(e);
424
+ }
425
+ } else if (process.arch === "arm") {
426
+ try {
427
+ return require$1(/* turbopackOptional: true */ "../core.openharmony-arm.node");
428
+ } catch (e) {
429
+ loadErrors.push(e);
430
+ }
431
+ try {
432
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
433
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
434
+ if (bindingPackageVersion !== "2.13.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
435
+ return binding;
436
+ } catch (e) {
437
+ loadErrors.push(e);
438
+ }
439
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
440
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
430
441
  }
431
442
  function createLoadErrorChain(errors) {
432
443
  return errors.reduce((previous, current) => {
@@ -510,7 +521,7 @@ if (!nativeBinding || forceWasi) {
510
521
  if (!candidateFailed) {
511
522
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
512
523
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/package.json").version;
513
- if (bindingPackageVersion !== "2.12.0") throw new Error(`WASI binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
524
+ if (bindingPackageVersion !== "2.13.1") throw new Error(`WASI binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
514
525
  }
515
526
  wasiBinding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
516
527
  nativeBinding = wasiBinding;