peachsim 0.1.2428 → 0.1.2430
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-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +200 -92
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +164 -56
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +182 -74
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -6
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +10 -6
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +10 -6
- package/dist-lib/native-app-identity-project.cjs +6 -3
- package/dist-lib/native-app-identity-project.mjs +6 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +55 -55
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +195 -85
- package/dist-lib/swift-compile.cjs +35 -22
- package/dist-lib/swift-compile.mjs +35 -22
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +180 -73
- package/dist-lib/vite.cjs +7 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/locationBridgeContract.d.ts +20 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSBase.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSImportExtension.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSIndexExtensionRequestHandler.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSPerson.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h +154 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndexDescription.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h +86 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet.h +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Categories.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h +71 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h +138 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h +116 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h +235 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h +99 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h +73 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.apinotes +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +1 -1
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +3 -3
- package/src/core-data-model.ts +112 -5
- package/src/swift-compile.ts +34 -11
- package/src/swift-objc-import.ts +19 -13
- package/src/xcode-project.ts +5 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2430 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1607,10 +1607,10 @@ function resolveRuntimeRootForHostname(hostname) {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
function sendFileWithRanges(req, res, filePath, total, headers) {
|
|
1609
1609
|
const head = (req?.method || "GET").toUpperCase() === "HEAD";
|
|
1610
|
-
const
|
|
1611
|
-
const invalid =
|
|
1612
|
-
if (
|
|
1613
|
-
const [, startRaw, endRaw] =
|
|
1610
|
+
const range3 = /^bytes=(\d*)-(\d*)$/.exec(req?.headers?.range || "");
|
|
1611
|
+
const invalid = range3 && range3[1] && range3[2] && Number(range3[2]) < Number(range3[1]);
|
|
1612
|
+
if (range3 && (range3[1] || range3[2]) && !invalid) {
|
|
1613
|
+
const [, startRaw, endRaw] = range3;
|
|
1614
1614
|
const start = startRaw ? Number(startRaw) : Math.max(0, total - Number(endRaw));
|
|
1615
1615
|
const end = startRaw && endRaw ? Math.min(Number(endRaw), total - 1) : total - 1;
|
|
1616
1616
|
if (start > end || start >= total) {
|
|
@@ -2951,21 +2951,21 @@ function toS(interp, value) {
|
|
|
2951
2951
|
if (value instanceof RRegexp) return `(?-mix:${value.source})`;
|
|
2952
2952
|
return toInspect(interp, value);
|
|
2953
2953
|
}
|
|
2954
|
-
function rangeToArray(interp,
|
|
2955
|
-
if (typeof
|
|
2954
|
+
function rangeToArray(interp, range3) {
|
|
2955
|
+
if (typeof range3.first === "number" && typeof range3.last === "number") {
|
|
2956
2956
|
const out = [];
|
|
2957
|
-
const end =
|
|
2958
|
-
for (let i =
|
|
2957
|
+
const end = range3.exclusive ? range3.last : range3.last + 1;
|
|
2958
|
+
for (let i = range3.first; i < end; i++) out.push(i);
|
|
2959
2959
|
return out;
|
|
2960
2960
|
}
|
|
2961
|
-
if (
|
|
2961
|
+
if (range3.first instanceof RString && range3.last instanceof RString && range3.first.s.length === 1 && range3.last.s.length === 1) {
|
|
2962
2962
|
const out = [];
|
|
2963
|
-
const end =
|
|
2964
|
-
for (let c =
|
|
2963
|
+
const end = range3.last.s.charCodeAt(0) + (range3.exclusive ? 0 : 1);
|
|
2964
|
+
for (let c = range3.first.s.charCodeAt(0); c < end; c++)
|
|
2965
2965
|
out.push(str(String.fromCharCode(c)));
|
|
2966
2966
|
return out;
|
|
2967
2967
|
}
|
|
2968
|
-
throw new UnsupportedRuby(`iterating ${toInspect(interp,
|
|
2968
|
+
throw new UnsupportedRuby(`iterating ${toInspect(interp, range3)}`);
|
|
2969
2969
|
}
|
|
2970
2970
|
function equal(interp, a, b) {
|
|
2971
2971
|
if (a === b) return true;
|
|
@@ -21962,7 +21962,7 @@ var init_resolve_flow_scalar = __esm({
|
|
|
21962
21962
|
|
|
21963
21963
|
// ../../node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
21964
21964
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
21965
|
-
const { value, type, comment, range:
|
|
21965
|
+
const { value, type, comment, range: range3 } = token.type === "block-scalar" ? resolveBlockScalar(ctx, token, onError) : resolveFlowScalar(token, ctx.options.strict, onError);
|
|
21966
21966
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
21967
21967
|
let tag;
|
|
21968
21968
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
@@ -21982,7 +21982,7 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|
|
21982
21982
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
21983
21983
|
scalar = new Scalar(value);
|
|
21984
21984
|
}
|
|
21985
|
-
scalar.range =
|
|
21985
|
+
scalar.range = range3;
|
|
21986
21986
|
scalar.source = value;
|
|
21987
21987
|
if (type)
|
|
21988
21988
|
scalar.type = type;
|
|
@@ -27827,7 +27827,7 @@ var swiftCoverageProvenance;
|
|
|
27827
27827
|
var init_provenance = __esm({
|
|
27828
27828
|
"src/swift-coverage/provenance.ts"() {
|
|
27829
27829
|
"use strict";
|
|
27830
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"
|
|
27830
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"fea47e1e076b2cca23c8ac9037eced1d094e69d206df09c393979a5bd1d07a8a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
27831
27831
|
}
|
|
27832
27832
|
});
|
|
27833
27833
|
|
|
@@ -35334,11 +35334,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
35334
35334
|
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n"
|
|
35335
35335
|
]);
|
|
35336
35336
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
35337
|
-
const
|
|
35338
|
-
if (!
|
|
35337
|
+
const range3 = obj.segPayloadRanges[segIdx];
|
|
35338
|
+
if (!range3) return;
|
|
35339
35339
|
let bytes = objectBytes.get(obj);
|
|
35340
35340
|
if (!bytes) objectBytes.set(obj, bytes = import_node_fs46.default.readFileSync(obj.file));
|
|
35341
|
-
const text7 = bytes.toString("latin1",
|
|
35341
|
+
const text7 = bytes.toString("latin1", range3[0], range3[1]);
|
|
35342
35342
|
for (const match of text7.matchAll(/So(\d+)/g)) {
|
|
35343
35343
|
const start = match.index + 2 + match[1].length;
|
|
35344
35344
|
const length = Number(match[1]);
|
|
@@ -37069,10 +37069,10 @@ function reserveGuestImageProjection(images) {
|
|
|
37069
37069
|
slots.push(slot);
|
|
37070
37070
|
return { address: slot.address, length: slot.length };
|
|
37071
37071
|
};
|
|
37072
|
-
const
|
|
37072
|
+
const range3 = reserve(null);
|
|
37073
37073
|
return {
|
|
37074
37074
|
...region,
|
|
37075
|
-
...
|
|
37075
|
+
...range3,
|
|
37076
37076
|
sections: region.sections.map((section, index) => ({
|
|
37077
37077
|
...section,
|
|
37078
37078
|
...reserve(index)
|
|
@@ -37281,11 +37281,11 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
37281
37281
|
const markers = new Map(
|
|
37282
37282
|
options.reserved.countMarkers.map((marker, index) => [marker, index])
|
|
37283
37283
|
);
|
|
37284
|
-
for (const
|
|
37284
|
+
for (const range3 of ranges)
|
|
37285
37285
|
for (const segment2 of data) {
|
|
37286
|
-
const first = Math.max(
|
|
37286
|
+
const first = Math.max(range3.address, segment2.address);
|
|
37287
37287
|
const last = Math.min(
|
|
37288
|
-
|
|
37288
|
+
range3.address + range3.length,
|
|
37289
37289
|
segment2.address + segment2.length
|
|
37290
37290
|
);
|
|
37291
37291
|
const start = segment2.offset + first - segment2.address;
|
|
@@ -41033,19 +41033,20 @@ function compactSwiftClangOverlays(flags, generated) {
|
|
|
41033
41033
|
}
|
|
41034
41034
|
return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
|
|
41035
41035
|
}
|
|
41036
|
-
function
|
|
41036
|
+
function submoduleImports(sources) {
|
|
41037
41037
|
const imports2 = /* @__PURE__ */ new Map();
|
|
41038
41038
|
for (const source of sources)
|
|
41039
|
-
for (const
|
|
41039
|
+
for (const match of source.matchAll(SUBMODULE_IMPORT)) {
|
|
41040
|
+
const module2 = match[1] ?? match[3];
|
|
41040
41041
|
const names = imports2.get(module2) ?? /* @__PURE__ */ new Set();
|
|
41041
|
-
names.add(
|
|
41042
|
+
names.add(match[2] ?? match[4]);
|
|
41042
41043
|
imports2.set(module2, names);
|
|
41043
41044
|
}
|
|
41044
41045
|
return imports2;
|
|
41045
41046
|
}
|
|
41046
41047
|
function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new Set(), swiftHeader) {
|
|
41047
41048
|
const header = (file) => `header ${JSON.stringify(file)}`;
|
|
41048
|
-
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "");
|
|
41049
|
+
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "").replace(/[^A-Za-z0-9_]/g, "_").replace(/^(?=\d)/, "_");
|
|
41049
41050
|
return [
|
|
41050
41051
|
`module ${module2} {`,
|
|
41051
41052
|
...headers.map(
|
|
@@ -41057,7 +41058,7 @@ function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new S
|
|
|
41057
41058
|
""
|
|
41058
41059
|
].join("\n");
|
|
41059
41060
|
}
|
|
41060
|
-
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS,
|
|
41061
|
+
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS, SUBMODULE_IMPORT;
|
|
41061
41062
|
var init_swift_objc_import = __esm({
|
|
41062
41063
|
"src/swift-objc-import.ts"() {
|
|
41063
41064
|
"use strict";
|
|
@@ -41088,7 +41089,7 @@ var init_swift_objc_import = __esm({
|
|
|
41088
41089
|
"-iwithprefixbefore",
|
|
41089
41090
|
"--sysroot"
|
|
41090
41091
|
]);
|
|
41091
|
-
|
|
41092
|
+
SUBMODULE_IMPORT = /^[ \t]*(?:(?:@\w+(?:\([^)]*\))?[ \t]+)*import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*(?:\/\/.*)?|@import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*;.*)$/gm;
|
|
41092
41093
|
}
|
|
41093
41094
|
});
|
|
41094
41095
|
|
|
@@ -42046,7 +42047,7 @@ function withNativeSourceGlue(input, glue) {
|
|
|
42046
42047
|
function swiftOptionalFramework(name3) {
|
|
42047
42048
|
return OPTIONAL_FRAMEWORKS.has(name3);
|
|
42048
42049
|
}
|
|
42049
|
-
function swiftCondition(text7, available) {
|
|
42050
|
+
function swiftCondition(text7, available, defines) {
|
|
42050
42051
|
const tokens2 = text7.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
42051
42052
|
let index = 0;
|
|
42052
42053
|
const atom = () => {
|
|
@@ -42059,6 +42060,7 @@ function swiftCondition(text7, available) {
|
|
|
42059
42060
|
}
|
|
42060
42061
|
if (token === "true") return true;
|
|
42061
42062
|
if (token === "false") return false;
|
|
42063
|
+
if (defines && /^[A-Za-z_]\w*$/.test(token ?? "")) return defines.has(token);
|
|
42062
42064
|
const call = /^(\w+)\s*\(\s*([^,()]*?)\s*(?:,[^()]*)?\)$/.exec(token ?? "");
|
|
42063
42065
|
if (!call) return void 0;
|
|
42064
42066
|
const [, name3, argument2] = call;
|
|
@@ -42087,7 +42089,7 @@ function swiftCondition(text7, available) {
|
|
|
42087
42089
|
};
|
|
42088
42090
|
return either();
|
|
42089
42091
|
}
|
|
42090
|
-
function* swiftConditionalLines(contents2, available) {
|
|
42092
|
+
function* swiftConditionalLines(contents2, available, defines) {
|
|
42091
42093
|
const frames = [];
|
|
42092
42094
|
for (const line of swiftCodeMask(contents2).split("\n")) {
|
|
42093
42095
|
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
@@ -42095,12 +42097,12 @@ function* swiftConditionalLines(contents2, available) {
|
|
|
42095
42097
|
const [, kind, rest] = directive;
|
|
42096
42098
|
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
42097
42099
|
if (kind === "if") {
|
|
42098
|
-
const active = swiftCondition(condition, available);
|
|
42100
|
+
const active = swiftCondition(condition, available, defines);
|
|
42099
42101
|
frames.push({ active, taken: active });
|
|
42100
42102
|
} else if (kind === "endif") frames.pop();
|
|
42101
42103
|
else if (frames.length > 0) {
|
|
42102
42104
|
const frame = frames[frames.length - 1];
|
|
42103
|
-
const holds = kind === "else" ? true : swiftCondition(condition, available);
|
|
42105
|
+
const holds = kind === "else" ? true : swiftCondition(condition, available, defines);
|
|
42104
42106
|
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
42105
42107
|
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
42106
42108
|
}
|
|
@@ -42921,6 +42923,17 @@ function emitSwiftPackageManifest(args) {
|
|
|
42921
42923
|
...args.nativeHeaderFlags ?? []
|
|
42922
42924
|
];
|
|
42923
42925
|
const owner = targets.find((target) => target.name === name3);
|
|
42926
|
+
const context = /* @__PURE__ */ new Set();
|
|
42927
|
+
const visit3 = (dependency) => {
|
|
42928
|
+
if (context.has(dependency)) return;
|
|
42929
|
+
context.add(dependency);
|
|
42930
|
+
for (const next of siblings.get(dependency) ?? []) visit3(next);
|
|
42931
|
+
};
|
|
42932
|
+
if (native.mixed)
|
|
42933
|
+
for (const dependency of siblings.get(name3) ?? []) visit3(dependency);
|
|
42934
|
+
const contextFlags = [...context].flatMap(
|
|
42935
|
+
(dependency) => args.native?.get(dependency)?.importFlags ?? []
|
|
42936
|
+
);
|
|
42924
42937
|
return late ? (native.groups ?? [
|
|
42925
42938
|
{
|
|
42926
42939
|
name: late.name,
|
|
@@ -42935,9 +42948,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
42935
42948
|
` path: ${JSON.stringify(group.path)},`,
|
|
42936
42949
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
42937
42950
|
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
42938
|
-
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
42951
|
+
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags, ...contextFlags]))})],`,
|
|
42939
42952
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
42940
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
42953
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags, ...contextFlags]))})]),`
|
|
42941
42954
|
] : [" ),"]
|
|
42942
42955
|
]) : [];
|
|
42943
42956
|
}),
|
|
@@ -43393,8 +43406,8 @@ function swiftApplicationEntry(file, source) {
|
|
|
43393
43406
|
}
|
|
43394
43407
|
return false;
|
|
43395
43408
|
}
|
|
43396
|
-
function swiftTypedApplicationEntry(source) {
|
|
43397
|
-
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
43409
|
+
function swiftTypedApplicationEntry(source, defines) {
|
|
43410
|
+
const code = [...swiftConditionalLines(swiftCodeMask(source), void 0, defines)].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
43398
43411
|
const match = /@main\b[\s\S]*?\b(?:struct|class|enum)\s+([A-Za-z_]\w*)/.exec(code);
|
|
43399
43412
|
return match ? { index: match.index, name: match[1] } : null;
|
|
43400
43413
|
}
|
|
@@ -43996,9 +44009,9 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
43996
44009
|
clangImportedModules.add(name3);
|
|
43997
44010
|
}
|
|
43998
44011
|
}
|
|
43999
|
-
const
|
|
44012
|
+
const submoduleImports2 = submoduleImports(
|
|
44000
44013
|
Object.entries(input.files).flatMap(
|
|
44001
|
-
([file, contents2]) =>
|
|
44014
|
+
([file, contents2]) => /\.(?:swift|h|m|mm)$/.test(file) ? [contents2.toString()] : []
|
|
44002
44015
|
)
|
|
44003
44016
|
);
|
|
44004
44017
|
const headerDirectory = import_node_path60.default.join(layout2.root, ".build", "peach-cxx-headers");
|
|
@@ -44389,7 +44402,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
44389
44402
|
const moduleContents = originalModuleMap ? input.files[originalModuleMap[1]] : swiftpmModuleMap?.contents ?? packageModuleMap?.[1] ?? swiftObjCModuleMap(
|
|
44390
44403
|
swiftTargetModuleName(target.name),
|
|
44391
44404
|
roots2.map((file) => import_node_path60.default.join(layout2.root, file)),
|
|
44392
|
-
|
|
44405
|
+
submoduleImports2.get(swiftTargetModuleName(target.name))
|
|
44393
44406
|
);
|
|
44394
44407
|
if (moduleContents === void 0)
|
|
44395
44408
|
throw new Error("missing original module map " + modulemap);
|
|
@@ -44731,7 +44744,7 @@ module ${moduleName2}.Swift {
|
|
|
44731
44744
|
` : swiftObjCModuleMap(
|
|
44732
44745
|
moduleName2,
|
|
44733
44746
|
(input.nativeTargets?.find((target) => target.name === name3)?.publicHeaders ?? []).map((header) => import_node_path60.default.join(layout2.root, header)),
|
|
44734
|
-
|
|
44747
|
+
submoduleImports2.get(moduleName2),
|
|
44735
44748
|
import_node_path60.default.join(headerDirectory, name3 + "-Swift.h")
|
|
44736
44749
|
)
|
|
44737
44750
|
);
|
|
@@ -44819,7 +44832,7 @@ module ${moduleName2}.Swift {
|
|
|
44819
44832
|
)
|
|
44820
44833
|
);
|
|
44821
44834
|
const mains = entries.flatMap(([file, source]) => {
|
|
44822
|
-
const entry = swiftTypedApplicationEntry(source);
|
|
44835
|
+
const entry = swiftTypedApplicationEntry(source, new Set(target.defines ?? []));
|
|
44823
44836
|
return entry ? [{ file, source, ...entry }] : [];
|
|
44824
44837
|
});
|
|
44825
44838
|
let entryFile = "";
|
|
@@ -46831,8 +46844,8 @@ var init_swift_compile = __esm({
|
|
|
46831
46844
|
SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /;
|
|
46832
46845
|
SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/;
|
|
46833
46846
|
REACH_STAGED_FRAMEWORKS = /* @__PURE__ */ new Set(["React"]);
|
|
46834
|
-
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(
|
|
46835
|
-
/^@import (?:CoreFoundation|FoundationNetworking);$/gm,
|
|
46847
|
+
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import (\w+?)(?:Enums|Constants);$/gm, "@import $1;").replace(
|
|
46848
|
+
/^@import (?:CoreFoundation|FoundationNetworking|PeachFoundation);$/gm,
|
|
46836
46849
|
"@import Foundation;"
|
|
46837
46850
|
).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
46838
46851
|
objcEnumerations = (header) => [
|
|
@@ -47026,7 +47039,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
47026
47039
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
47027
47040
|
MULTI_MANIFEST_VERSION = 72;
|
|
47028
47041
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
47029
|
-
compilerSourceDigest = true ? "
|
|
47042
|
+
compilerSourceDigest = true ? "5ed6ce65e80a661269e2ae1a70eb7df501b75d5c5fd45c3cfc87cf1db220d611" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
47030
47043
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
47031
47044
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
47032
47045
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -48725,9 +48738,9 @@ function remoteVersionRequirement(entry) {
|
|
|
48725
48738
|
const major = text6(entry["up-to-next-major-version"]);
|
|
48726
48739
|
if (major !== void 0)
|
|
48727
48740
|
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
48728
|
-
const
|
|
48729
|
-
if (
|
|
48730
|
-
const bounds =
|
|
48741
|
+
const range3 = text6(entry["version-range"]);
|
|
48742
|
+
if (range3 !== void 0) {
|
|
48743
|
+
const bounds = range3.split("..<");
|
|
48731
48744
|
const minimum2 = bounds[0];
|
|
48732
48745
|
const maximum2 = bounds[1];
|
|
48733
48746
|
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
@@ -50814,6 +50827,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
50814
50827
|
// xcode's Swift.xcspec defaults bare slash regex literals on before Swift 6
|
|
50815
50828
|
...swiftVersion < 6 && settings2("SWIFT_ENABLE_BARE_SLASH_REGEX") !== "NO" ? ["-enable-bare-slash-regex"] : [],
|
|
50816
50829
|
...packageName ? ["-package-name", packageName] : [],
|
|
50830
|
+
// as xcode passes it; the generated header then also carries
|
|
50831
|
+
// the module's internal @objc declarations
|
|
50832
|
+
...settings2("APPLICATION_EXTENSION_API_ONLY") === "YES" ? ["-application-extension"] : [],
|
|
50817
50833
|
...settingList(settings2("OTHER_SWIFT_FLAGS"))
|
|
50818
50834
|
],
|
|
50819
50835
|
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
@@ -51633,7 +51649,7 @@ var init_swift_standin_digest = __esm({
|
|
|
51633
51649
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
51634
51650
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
51635
51651
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
51636
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
51652
|
+
STANDIN_SOURCE_DIGEST = true ? "3238b362649e49ccf332149bb0b343bb7ed657c3c8287e0a231bc7316974eb6e" : standinSourceDigest();
|
|
51637
51653
|
}
|
|
51638
51654
|
});
|
|
51639
51655
|
|
|
@@ -55549,9 +55565,9 @@ function functionDeclarations(ast, headers) {
|
|
|
55549
55565
|
if (Array.isArray(inner) && inner.some((child) => Reflect.get(child, "kind") === "CompoundStmt"))
|
|
55550
55566
|
continue;
|
|
55551
55567
|
const parameterless = !Array.isArray(inner) || !inner.some((child) => Reflect.get(child, "kind") === "ParmVarDecl");
|
|
55552
|
-
const
|
|
55568
|
+
const range3 = Reflect.get(decl, "range");
|
|
55553
55569
|
const offset = (end) => {
|
|
55554
|
-
const at = Reflect.get(
|
|
55570
|
+
const at = Reflect.get(range3, end);
|
|
55555
55571
|
const expansion = Reflect.get(at, "expansionLoc");
|
|
55556
55572
|
return Number(Reflect.get(expansion ?? at, "offset"));
|
|
55557
55573
|
};
|
|
@@ -58783,6 +58799,7 @@ var init_bundleAssets = __esm({
|
|
|
58783
58799
|
"../sootsim-swift/src/bundleAssets.ts"() {
|
|
58784
58800
|
"use strict";
|
|
58785
58801
|
import_svgpath = __toESM(require("svgpath"), 1);
|
|
58802
|
+
init_mapLimit();
|
|
58786
58803
|
init_assetCatalogContract();
|
|
58787
58804
|
init_swiftContract();
|
|
58788
58805
|
RASTER_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
@@ -60240,6 +60257,21 @@ function defaultValue(model, member, type) {
|
|
|
60240
60257
|
if (scanned) return scanned;
|
|
60241
60258
|
refuse3(model, `${member.attrs.name} has the ${type} default ${JSON.stringify(text7)}`);
|
|
60242
60259
|
}
|
|
60260
|
+
function range2(model, member, type) {
|
|
60261
|
+
const bounds = [
|
|
60262
|
+
[member.attrs.minValueString, 3, 1620],
|
|
60263
|
+
[member.attrs.maxValueString, 1, 1610]
|
|
60264
|
+
];
|
|
60265
|
+
return bounds.flatMap(([text7, operator, warning]) => {
|
|
60266
|
+
if (text7 === void 0) return [];
|
|
60267
|
+
if (type.startsWith("Integer ") && /^-?\d+$/.test(text7) || (type === "Double" || type === "Float") && Number.isFinite(Number(text7)))
|
|
60268
|
+
return [{ operator, value: Number(text7), warning }];
|
|
60269
|
+
refuse3(
|
|
60270
|
+
model,
|
|
60271
|
+
`${member.attrs.name} has the ${type} range bound ${JSON.stringify(text7)}`
|
|
60272
|
+
);
|
|
60273
|
+
});
|
|
60274
|
+
}
|
|
60243
60275
|
function attribute(source, member) {
|
|
60244
60276
|
checkAttributes(source.model, member, [
|
|
60245
60277
|
"name",
|
|
@@ -60251,6 +60283,8 @@ function attribute(source, member) {
|
|
|
60251
60283
|
"usesScalarValueType",
|
|
60252
60284
|
"customClassName",
|
|
60253
60285
|
"valueTransformerName",
|
|
60286
|
+
"minValueString",
|
|
60287
|
+
"maxValueString",
|
|
60254
60288
|
"indexed",
|
|
60255
60289
|
"versionHashModifier",
|
|
60256
60290
|
"elementID",
|
|
@@ -60265,18 +60299,18 @@ function attribute(source, member) {
|
|
|
60265
60299
|
if (!known)
|
|
60266
60300
|
refuse3(source.model, `${member.attrs.name} has the attribute type ${typeName}`);
|
|
60267
60301
|
const [type, className2] = known;
|
|
60268
|
-
if (member.attrs.customClassName !== void 0 && typeName !== "Transformable")
|
|
60269
|
-
refuse3(source.model, `${member.attrs.name} names a custom class for a ${typeName}`);
|
|
60270
60302
|
return {
|
|
60271
60303
|
kind: "attribute",
|
|
60272
60304
|
...common(source, member),
|
|
60273
60305
|
transient: yes(member.attrs.transient),
|
|
60274
60306
|
type,
|
|
60275
|
-
|
|
60307
|
+
// momc archives a custom class as the value class of any attribute type
|
|
60308
|
+
className: member.attrs.customClassName ?? className2,
|
|
60276
60309
|
defaultValue: defaultValue(source.model, member, typeName),
|
|
60277
60310
|
transformer: member.attrs.valueTransformerName ?? null,
|
|
60278
60311
|
flags: (yes(member.attrs.allowsExternalBinaryDataStorage) ? EXTERNAL_BINARY : 0) | (yes(member.attrs.preserveAfterDeletion) ? PRESERVE_AFTER_DELETION : 0),
|
|
60279
|
-
cloudEncryption: yes(member.attrs.allowsCloudEncryption)
|
|
60312
|
+
cloudEncryption: yes(member.attrs.allowsCloudEncryption),
|
|
60313
|
+
range: range2(source.model, member, typeName)
|
|
60280
60314
|
};
|
|
60281
60315
|
}
|
|
60282
60316
|
function relationship(source, member) {
|
|
@@ -60329,6 +60363,7 @@ function entity(source, tag) {
|
|
|
60329
60363
|
"attribute",
|
|
60330
60364
|
"relationship",
|
|
60331
60365
|
"fetchIndex",
|
|
60366
|
+
"compoundIndexes",
|
|
60332
60367
|
"uniquenessConstraints",
|
|
60333
60368
|
"userInfo"
|
|
60334
60369
|
]);
|
|
@@ -60361,6 +60396,23 @@ function entity(source, tag) {
|
|
|
60361
60396
|
elements: [{ property, ascending: true }],
|
|
60362
60397
|
owned: source.tools >= 9
|
|
60363
60398
|
});
|
|
60399
|
+
const compound = tag.children.filter((child) => child.name === "compoundIndexes").flatMap((group) => {
|
|
60400
|
+
checkChildren(source.model, group, ["compoundIndex"]);
|
|
60401
|
+
return group.children;
|
|
60402
|
+
});
|
|
60403
|
+
if (compound.length > 0 && source.tools < 9)
|
|
60404
|
+
refuse3(source.model, `${tag.attrs.name} has compound indexes before xcode 9`);
|
|
60405
|
+
compound.forEach((index, at) => {
|
|
60406
|
+
checkChildren(source.model, index, ["index"]);
|
|
60407
|
+
indexes.push({
|
|
60408
|
+
name: `compoundIndex${at === 0 ? "" : at}`,
|
|
60409
|
+
elements: index.children.map((element) => {
|
|
60410
|
+
checkAttributes(source.model, element, ["value"]);
|
|
60411
|
+
return { property: element.attrs.value, ascending: true };
|
|
60412
|
+
}),
|
|
60413
|
+
owned: true
|
|
60414
|
+
});
|
|
60415
|
+
});
|
|
60364
60416
|
const uniqueness = tag.children.filter((child) => child.name === "uniquenessConstraints").flatMap((group) => {
|
|
60365
60417
|
checkChildren(source.model, group, ["uniquenessConstraint"]);
|
|
60366
60418
|
return group.children.map((constraint) => {
|
|
@@ -60432,8 +60484,16 @@ function archiveModel(model) {
|
|
|
60432
60484
|
for (const property of item.properties)
|
|
60433
60485
|
propertyIndex.set(`${item.name}.${property.name}`, archive.reserve());
|
|
60434
60486
|
const entityUid = (name3) => uid(entityIndex.get(name3));
|
|
60487
|
+
const byName = new Map(model.entities.map((item) => [item.name, item]));
|
|
60488
|
+
const relationships = (item) => [
|
|
60489
|
+
...item.parent === null ? [] : relationships(byName.get(item.parent)),
|
|
60490
|
+
...item.properties.flatMap(
|
|
60491
|
+
(property) => property.kind === "relationship" ? [property.name] : []
|
|
60492
|
+
)
|
|
60493
|
+
];
|
|
60435
60494
|
for (const item of model.entities) {
|
|
60436
60495
|
const self = entityUid(item.name);
|
|
60496
|
+
const related = relationships(item);
|
|
60437
60497
|
const properties = item.properties.map((property) => {
|
|
60438
60498
|
const index = propertyIndex.get(`${item.name}.${property.name}`);
|
|
60439
60499
|
const shared = {
|
|
@@ -60455,7 +60515,45 @@ function archiveModel(model) {
|
|
|
60455
60515
|
NSFlagsKey: property.flags,
|
|
60456
60516
|
NSValueTransformerName: archive.string(property.transformer),
|
|
60457
60517
|
...property.transient ? { NSIsTransient: true } : {},
|
|
60458
|
-
...property.cloudEncryption ? { NSAllowsCloudEncryption: true } : {}
|
|
60518
|
+
...property.cloudEncryption ? { NSAllowsCloudEncryption: true } : {},
|
|
60519
|
+
...property.range.length > 0 ? {
|
|
60520
|
+
NSValidationPredicates: archive.array(
|
|
60521
|
+
property.range.map(
|
|
60522
|
+
(bound) => archive.fill(archive.reserve(), "NSComparisonPredicate", {
|
|
60523
|
+
NSLeftExpression: archive.fill(
|
|
60524
|
+
archive.reserve(),
|
|
60525
|
+
"NSSelfExpression",
|
|
60526
|
+
{
|
|
60527
|
+
NSExpressionType: 1
|
|
60528
|
+
}
|
|
60529
|
+
),
|
|
60530
|
+
NSPredicateOperator: archive.fill(
|
|
60531
|
+
archive.reserve(),
|
|
60532
|
+
"NSComparisonPredicateOperator",
|
|
60533
|
+
{
|
|
60534
|
+
NSModifier: 0,
|
|
60535
|
+
NSOperatorType: bound.operator,
|
|
60536
|
+
NSOptions: 0,
|
|
60537
|
+
NSVariant: bound.operator
|
|
60538
|
+
}
|
|
60539
|
+
),
|
|
60540
|
+
NSRightExpression: archive.fill(
|
|
60541
|
+
archive.reserve(),
|
|
60542
|
+
"NSConstantValueExpression",
|
|
60543
|
+
{
|
|
60544
|
+
NSConstantValue: archive.add(bound.value),
|
|
60545
|
+
NSExpressionType: 0
|
|
60546
|
+
}
|
|
60547
|
+
)
|
|
60548
|
+
})
|
|
60549
|
+
),
|
|
60550
|
+
"NSArray"
|
|
60551
|
+
),
|
|
60552
|
+
NSValidationWarnings: archive.array(
|
|
60553
|
+
property.range.map((bound) => archive.add(bound.warning)),
|
|
60554
|
+
"NSArray"
|
|
60555
|
+
)
|
|
60556
|
+
} : {}
|
|
60459
60557
|
})
|
|
60460
60558
|
];
|
|
60461
60559
|
const destination = model.entities.find(
|
|
@@ -60479,7 +60577,9 @@ function archiveModel(model) {
|
|
|
60479
60577
|
});
|
|
60480
60578
|
const indexes = item.indexes.length === 0 ? {} : {
|
|
60481
60579
|
NSCompoundIndexes: archive.array(
|
|
60482
|
-
item.indexes.filter(
|
|
60580
|
+
item.indexes.filter(
|
|
60581
|
+
(index) => index.elements.length >= 2 && !index.elements.some((element) => related.includes(element.property))
|
|
60582
|
+
).map(
|
|
60483
60583
|
(index) => archive.array(
|
|
60484
60584
|
index.elements.map((element) => archive.add(element.property))
|
|
60485
60585
|
)
|
|
@@ -60695,6 +60795,14 @@ var init_core_data_model = __esm({
|
|
|
60695
60795
|
NSMutableArray: ["NSMutableArray", "NSArray", "NSObject"],
|
|
60696
60796
|
NSSet: ["NSSet", "NSObject"],
|
|
60697
60797
|
NSDate: ["NSDate", "NSObject"],
|
|
60798
|
+
NSComparisonPredicate: ["NSComparisonPredicate", "NSPredicate", "NSObject"],
|
|
60799
|
+
NSComparisonPredicateOperator: [
|
|
60800
|
+
"NSComparisonPredicateOperator",
|
|
60801
|
+
"NSPredicateOperator",
|
|
60802
|
+
"NSObject"
|
|
60803
|
+
],
|
|
60804
|
+
NSSelfExpression: ["NSSelfExpression", "NSExpression", "NSObject"],
|
|
60805
|
+
NSConstantValueExpression: ["NSConstantValueExpression", "NSExpression", "NSObject"],
|
|
60698
60806
|
NSDecimalNumberPlaceholder: [
|
|
60699
60807
|
"NSDecimalNumberPlaceholder",
|
|
60700
60808
|
"NSDecimalNumber",
|
|
@@ -63618,13 +63726,13 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
63618
63726
|
res.setHeader("cache-control", "public, max-age=31536000, immutable");
|
|
63619
63727
|
res.setHeader("content-type", "application/octet-stream");
|
|
63620
63728
|
res.setHeader("accept-ranges", "bytes");
|
|
63621
|
-
const
|
|
63622
|
-
if (!
|
|
63729
|
+
const range3 = /^bytes=(\d+)-(\d+)$/.exec(res.req?.headers.range ?? "");
|
|
63730
|
+
if (!range3) {
|
|
63623
63731
|
res.end(packed);
|
|
63624
63732
|
return true;
|
|
63625
63733
|
}
|
|
63626
|
-
const start = Number(
|
|
63627
|
-
const end = Math.min(Number(
|
|
63734
|
+
const start = Number(range3[1]);
|
|
63735
|
+
const end = Math.min(Number(range3[2]), packed.length - 1);
|
|
63628
63736
|
if (start > end) {
|
|
63629
63737
|
res.statusCode = 416;
|
|
63630
63738
|
res.setHeader("content-range", `bytes */${packed.length}`);
|
|
@@ -69936,7 +70044,7 @@ var init_nitro_superset = __esm({
|
|
|
69936
70044
|
init_nitroContract();
|
|
69937
70045
|
init_swift_standin_digest();
|
|
69938
70046
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
69939
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
70047
|
+
NITRO_COMPILER_DIGEST = true ? "ed595b44e58b281a4c404e74a792fba1c85dfdce95d3b951a12db875de38c382" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
69940
70048
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
69941
70049
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
69942
70050
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -69957,7 +70065,7 @@ var init_nitro_superset = __esm({
|
|
|
69957
70065
|
var runtime_companion_default;
|
|
69958
70066
|
var init_runtime_companion = __esm({
|
|
69959
70067
|
"runtime-companion.json"() {
|
|
69960
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
70068
|
+
runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
|
|
69961
70069
|
}
|
|
69962
70070
|
});
|
|
69963
70071
|
|
|
@@ -71741,8 +71849,8 @@ async function kotlinArtifact(root, moduleRoot, origin, target = "app") {
|
|
|
71741
71849
|
function readExpoField(value) {
|
|
71742
71850
|
if (!isRecord(value) || typeof value.name !== "string" || typeof value.key !== "string" || typeof value.required !== "boolean" || typeof value.mutable !== "boolean" || typeof value.hidden !== "boolean" || typeof value.parameter !== "boolean")
|
|
71743
71851
|
throw new Error("expo-types printed an invalid field");
|
|
71744
|
-
const
|
|
71745
|
-
if (
|
|
71852
|
+
const range3 = value.initializer;
|
|
71853
|
+
if (range3 !== null && (!Array.isArray(range3) || range3.length !== 2 || typeof range3[0] !== "number" || typeof range3[1] !== "number"))
|
|
71746
71854
|
throw new Error("expo-types printed an invalid initializer range");
|
|
71747
71855
|
return {
|
|
71748
71856
|
name: value.name,
|
|
@@ -71751,7 +71859,7 @@ function readExpoField(value) {
|
|
|
71751
71859
|
mutable: value.mutable,
|
|
71752
71860
|
hidden: value.hidden,
|
|
71753
71861
|
parameter: value.parameter,
|
|
71754
|
-
initializer:
|
|
71862
|
+
initializer: range3 === null ? null : [range3[0], range3[1]]
|
|
71755
71863
|
};
|
|
71756
71864
|
}
|
|
71757
71865
|
function readExpoTypes(output2) {
|
|
@@ -71981,8 +72089,8 @@ function expoTypeSources(files2) {
|
|
|
71981
72089
|
];
|
|
71982
72090
|
if (edits.length > 0 || views.length > 0) {
|
|
71983
72091
|
let text7 = import_node_fs131.default.readFileSync(file.file, "utf8").replaceAll("\r\n", "\n");
|
|
71984
|
-
for (const { range:
|
|
71985
|
-
text7 = `${text7.slice(0,
|
|
72092
|
+
for (const { range: range3, owner, field } of edits.sort((a, b) => b.range[0] - a.range[0]))
|
|
72093
|
+
text7 = `${text7.slice(0, range3[0])}dev.peach.expo.PeachExpoTypes.initial(${owner}::class, ${literal3(field.key)}, ${field.required}) { ${text7.slice(range3[0], range3[1])} }${text7.slice(range3[1])}`;
|
|
71986
72094
|
if (views.length > 0) {
|
|
71987
72095
|
text7 = [
|
|
71988
72096
|
text7,
|
|
@@ -76165,9 +76273,9 @@ function overlapsBounds(left, right) {
|
|
|
76165
76273
|
}
|
|
76166
76274
|
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
76167
76275
|
const declaredGroups = parseRange(declaredVersion);
|
|
76168
|
-
const registryGroups = availableRegistryRanges.map((
|
|
76169
|
-
range:
|
|
76170
|
-
bounds: parseRange(
|
|
76276
|
+
const registryGroups = availableRegistryRanges.map((range3) => ({
|
|
76277
|
+
range: range3,
|
|
76278
|
+
bounds: parseRange(range3)
|
|
76171
76279
|
}));
|
|
76172
76280
|
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
76173
76281
|
return {
|
|
@@ -79865,7 +79973,7 @@ init_swift_native_pin();
|
|
|
79865
79973
|
init_xcode_project();
|
|
79866
79974
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
79867
79975
|
function expoNativeCompilerDigestValue() {
|
|
79868
|
-
return true ? "
|
|
79976
|
+
return true ? "3ed8903d022f3f65af60fef88ca0f7d6a17c0cf8cb2c1a0baab2907e9e076007" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
79869
79977
|
}
|
|
79870
79978
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
79871
79979
|
function readSources(value) {
|
|
@@ -89861,7 +89969,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
89861
89969
|
"expo-updates",
|
|
89862
89970
|
"expo-vector-search",
|
|
89863
89971
|
"expo-video",
|
|
89864
|
-
"expo-video-metadata",
|
|
89865
89972
|
"expo-video-thumbnails",
|
|
89866
89973
|
"expo-web-browser",
|
|
89867
89974
|
"expo-wechat",
|
|
@@ -90434,6 +90541,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
90434
90541
|
"@tamagui/native-registry",
|
|
90435
90542
|
"@uniswap/ethers-rs-mobile",
|
|
90436
90543
|
"@valora/react-native-keychain",
|
|
90544
|
+
"expo-video-metadata",
|
|
90437
90545
|
"react-native-app-control",
|
|
90438
90546
|
"react-native-blue-crypto",
|
|
90439
90547
|
"react-native-dynamic-theme",
|