peachsim 0.1.2662 → 0.1.2663
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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +312 -10
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-MFBE73CV.mjs → acorn-GXZHC6Z5.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2SNPAV3T.mjs → chunk-3PLIZHXJ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-SEPP7VI2.mjs → chunk-45GQD2X5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ULUPQXN4.mjs → chunk-4V256AAR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T5XVET5M.mjs → chunk-5OJPOD6B.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T6MLX2EQ.mjs → chunk-5Z5Q5DCY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q6TBKKDJ.mjs → chunk-6X2G46JR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BFZ5NZWL.mjs → chunk-CVAO4T6T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QIATHQJU.mjs → chunk-DPLKN4VG.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-UZWDAUVE.mjs → chunk-DUPDKR46.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CMPAZOPV.mjs → chunk-EC5A4V5T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QOTPXRB5.mjs → chunk-EDANXB55.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-N66ZEIRX.mjs → chunk-ILEIXGKP.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-KS5LU45K.mjs → chunk-K4YR2DYZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QZ5QKBQU.mjs → chunk-PZLZRTLG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RET2UHLH.mjs → chunk-QZPLOMNW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4O2WUV7P.mjs → chunk-R53R5E3O.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GOHNNSQT.mjs → chunk-RK2B4K2F.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-VWFJFTPH.mjs → chunk-S4DRFJWS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4WBNATG.mjs → chunk-VGO6ZEQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U6EFBR2E.mjs → chunk-VMEBFOJV.mjs} +14 -14
- package/dist-lib/esm-chunks/{chunk-JQRP67DQ.mjs → chunk-W32VR7O3.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-VC25U5MB.mjs → chunk-WKSBQPZO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BXG34MPE.mjs → chunk-WPZBGLGG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WJ5S2KZR.mjs → chunk-WQ2WN5E2.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-ORSSI3AE.mjs → metro-layout-parser-N2EK3E3B.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-BH2JJ5KR.mjs → swift-package-prebuilt-RG7C6DZN.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-O5CV2FUF.mjs → swift-sdk-app-module-42W4DLYA.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-4PLMEMHM.mjs → swift-sdk-image-JWECDNB5.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-3PG6DWGA.mjs → swift-sdk-image-producer-JYBC3FRT.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +311 -9
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +312 -10
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +69 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +312 -10
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/turbo-fabric-app.ts +281 -0
- package/src/turbo-source.ts +30 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ILEIXGKP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WKSBQPZO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-WQ2WN5E2.mjs";
|
|
12
|
+
import "./chunk-EC5A4V5T.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (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;
|
|
@@ -18092,7 +18092,7 @@ var init_swift_standin_digest = __esm({
|
|
|
18092
18092
|
|
|
18093
18093
|
// src/expo-native-compiler-digest.ts
|
|
18094
18094
|
function expoNativeCompilerDigestValue() {
|
|
18095
|
-
return true ? "
|
|
18095
|
+
return true ? "7c21202b510e2d8e478f15f4d1d2696e06cb8b02a9bbfa34bf6a353ab6bf8cad" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
18096
18096
|
}
|
|
18097
18097
|
var import_node_crypto17;
|
|
18098
18098
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -93698,6 +93698,291 @@ var init_turbo_codegen_intake = __esm({
|
|
|
93698
93698
|
}
|
|
93699
93699
|
});
|
|
93700
93700
|
|
|
93701
|
+
// src/turbo-fabric-app.ts
|
|
93702
|
+
var FABRIC_APP_INCLUDES, FABRIC_APP_PRESENTER, FABRIC_APP_INSTALL, FABRIC_APP_METHODS, FABRIC_APP_TEARDOWN;
|
|
93703
|
+
var init_turbo_fabric_app = __esm({
|
|
93704
|
+
"src/turbo-fabric-app.ts"() {
|
|
93705
|
+
"use strict";
|
|
93706
|
+
FABRIC_APP_INCLUDES = `#import <Block.h>
|
|
93707
|
+
#import <React/RCTScheduler.h>
|
|
93708
|
+
#import <React/RCTSurfacePresenter.h>
|
|
93709
|
+
#include <jsi/JSIDynamic.h>
|
|
93710
|
+
#include <react/renderer/components/view/BaseViewProps.h>
|
|
93711
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
93712
|
+
#include <react/renderer/core/InstanceHandle.h>
|
|
93713
|
+
#include <react/renderer/core/LayoutableShadowNode.h>
|
|
93714
|
+
#include <react/renderer/mounting/ShadowTree.h>
|
|
93715
|
+
#include <react/renderer/uimanager/UIManager.h>
|
|
93716
|
+
`;
|
|
93717
|
+
FABRIC_APP_PRESENTER = `
|
|
93718
|
+
namespace {
|
|
93719
|
+
extern std::shared_ptr<react::CallInvoker> fabricInvoker;
|
|
93720
|
+
extern std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
|
|
93721
|
+
}
|
|
93722
|
+
|
|
93723
|
+
@interface PeachAppSurfacePresenter : RCTSurfacePresenter
|
|
93724
|
+
@property(nonatomic) std::function<void(const react::MountingTransaction &)> publishMount;
|
|
93725
|
+
@property(nonatomic) std::function<void(react::Tag, folly::dynamic)> publishProps;
|
|
93726
|
+
@property(nonatomic) std::function<void(react::Tag, const std::string &, const folly::dynamic &)> dispatchCommand;
|
|
93727
|
+
@end
|
|
93728
|
+
|
|
93729
|
+
@implementation PeachAppSurfacePresenter
|
|
93730
|
+
- (void)schedulerDidFinishTransaction:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
93731
|
+
// guest commits can finish outside a React Native scheduler task.
|
|
93732
|
+
fabricInvoker->invokeAsync([](jsi::Runtime &) {
|
|
93733
|
+
fabricScheduler->scheduleWork([](jsi::Runtime &) {});
|
|
93734
|
+
});
|
|
93735
|
+
}
|
|
93736
|
+
|
|
93737
|
+
- (void)schedulerShouldRenderTransactions:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
93738
|
+
if (auto transaction = coordinator->pullTransaction()) {
|
|
93739
|
+
self.publishMount(*transaction);
|
|
93740
|
+
}
|
|
93741
|
+
}
|
|
93742
|
+
|
|
93743
|
+
- (void)schedulerDidSynchronouslyUpdateViewOnUIThread:(ReactTag)tag props:(folly::dynamic)props {
|
|
93744
|
+
self.publishProps(static_cast<react::Tag>(tag), std::move(props));
|
|
93745
|
+
}
|
|
93746
|
+
|
|
93747
|
+
- (void)schedulerDidDispatchCommand:(const react::ShadowView &)shadowView
|
|
93748
|
+
commandName:(const std::string &)name
|
|
93749
|
+
args:(const folly::dynamic &)args {
|
|
93750
|
+
self.dispatchCommand(shadowView.tag, name, args);
|
|
93751
|
+
}
|
|
93752
|
+
@end
|
|
93753
|
+
|
|
93754
|
+
namespace {
|
|
93755
|
+
using AppNode = std::shared_ptr<const react::ShadowNode>;
|
|
93756
|
+
using AppChildren = std::vector<AppNode>;
|
|
93757
|
+
|
|
93758
|
+
class PeachAppShadowTree {
|
|
93759
|
+
public:
|
|
93760
|
+
PeachAppShadowTree(std::shared_ptr<react::UIManager> manager, const react::ContextContainer &context)
|
|
93761
|
+
: manager_(std::move(manager)), context_(context) {}
|
|
93762
|
+
|
|
93763
|
+
~PeachAppShadowTree() {
|
|
93764
|
+
if (surface_ != 0) manager_->getShadowTreeRegistry().remove(surface_);
|
|
93765
|
+
}
|
|
93766
|
+
|
|
93767
|
+
void commit(jsi::Runtime &rt, react::SurfaceId surface, double width, double height, double scale,
|
|
93768
|
+
bool rtl, const jsi::Array &roots) {
|
|
93769
|
+
react::LayoutConstraints constraints;
|
|
93770
|
+
constraints.maximumSize = {static_cast<react::Float>(width), static_cast<react::Float>(height)};
|
|
93771
|
+
constraints.minimumSize = constraints.maximumSize;
|
|
93772
|
+
constraints.layoutDirection = rtl ? react::LayoutDirection::RightToLeft : react::LayoutDirection::LeftToRight;
|
|
93773
|
+
react::LayoutContext layout;
|
|
93774
|
+
layout.pointScaleFactor = static_cast<react::Float>(scale);
|
|
93775
|
+
layout.viewportSize = constraints.maximumSize;
|
|
93776
|
+
if (surface_ != 0 && surface_ != surface)
|
|
93777
|
+
throw jsi::JSError(rt, "Fabric runtime is already bound to another app surface");
|
|
93778
|
+
if (surface_ == 0) {
|
|
93779
|
+
surface_ = surface;
|
|
93780
|
+
manager_->startEmptySurface(std::make_unique<react::ShadowTree>(surface_, constraints, layout, *manager_, context_));
|
|
93781
|
+
} else if (constraints != constraints_ || layout != layout_) {
|
|
93782
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
93783
|
+
tree.commit([&](const react::RootShadowNode &root) {
|
|
93784
|
+
return root.clone({surface_, context_}, constraints, layout);
|
|
93785
|
+
}, {});
|
|
93786
|
+
});
|
|
93787
|
+
}
|
|
93788
|
+
constraints_ = constraints;
|
|
93789
|
+
layout_ = layout;
|
|
93790
|
+
|
|
93791
|
+
std::unordered_map<react::Tag, AppNode> next;
|
|
93792
|
+
auto children = readChildren(rt, roots, next);
|
|
93793
|
+
nodes_.swap(next);
|
|
93794
|
+
manager_->completeSurface(surface_, children,
|
|
93795
|
+
{.enableStateReconciliation = true, .mountSynchronously = false, .source = react::ShadowTree::CommitSource::React});
|
|
93796
|
+
}
|
|
93797
|
+
|
|
93798
|
+
jsi::Value handle(jsi::Runtime &rt, react::Tag tag, const jsi::Value &surface, const jsi::Value &generation) const {
|
|
93799
|
+
auto value = react::valueFromShadowNode(rt, node(rt, tag));
|
|
93800
|
+
auto object = value.getObject(rt);
|
|
93801
|
+
object.setProperty(rt, "__nativeTag", tag);
|
|
93802
|
+
object.setProperty(rt, "__viewTag", tag);
|
|
93803
|
+
object.setProperty(rt, "__surfaceId", surface);
|
|
93804
|
+
object.setProperty(rt, "__surfaceGeneration", generation);
|
|
93805
|
+
return object;
|
|
93806
|
+
}
|
|
93807
|
+
|
|
93808
|
+
void dispatch(jsi::Runtime &rt, react::Tag tag, std::string type, const jsi::Value &payload) const {
|
|
93809
|
+
const auto emitter = std::dynamic_pointer_cast<const react::ViewEventEmitter>(node(rt, tag)->getEventEmitter());
|
|
93810
|
+
if (emitter) emitter->dispatchEvent(std::move(type), jsi::dynamicFromValue(rt, payload));
|
|
93811
|
+
}
|
|
93812
|
+
|
|
93813
|
+
void publish(jsi::Runtime &rt, const react::ShadowViewMutation &mutation, const jsi::Function &apply) const {
|
|
93814
|
+
using Mutation = react::ShadowViewMutation;
|
|
93815
|
+
if (mutation.type != Mutation::Insert && mutation.type != Mutation::Update) return;
|
|
93816
|
+
const auto &view = mutation.newChildShadowView;
|
|
93817
|
+
const auto found = nodes_.find(view.tag);
|
|
93818
|
+
if (found == nodes_.end()) return;
|
|
93819
|
+
const auto newest = manager_->getNewestCloneOfShadowNode(*found->second);
|
|
93820
|
+
const auto *target = dynamic_cast<const react::LayoutableShadowNode *>(newest.get());
|
|
93821
|
+
if (!target) return;
|
|
93822
|
+
const react::ShadowNode *parent = nullptr;
|
|
93823
|
+
if (mutation.parentTag != surface_) {
|
|
93824
|
+
const auto mountedParent = nodes_.find(mutation.parentTag);
|
|
93825
|
+
if (mountedParent != nodes_.end()) parent = mountedParent->second.get();
|
|
93826
|
+
}
|
|
93827
|
+
auto layout = jsi::Value::null();
|
|
93828
|
+
// fabric's differ includes the offsets of ancestors it flattens into the mount parent.
|
|
93829
|
+
const auto targetMetrics = mutation.parentTag == surface_ || parent
|
|
93830
|
+
? manager_->getRelativeLayoutMetrics(*target, parent, {.includeTransform = false})
|
|
93831
|
+
: react::EmptyLayoutMetrics;
|
|
93832
|
+
if (targetMetrics != react::EmptyLayoutMetrics && view.layoutMetrics.frame != targetMetrics.frame) {
|
|
93833
|
+
const auto &frame = view.layoutMetrics.frame;
|
|
93834
|
+
const auto &targetFrame = targetMetrics.frame;
|
|
93835
|
+
auto rect = jsi::Array(rt, 8);
|
|
93836
|
+
double dimensions[] = {frame.origin.x, frame.origin.y, frame.size.width, frame.size.height,
|
|
93837
|
+
targetFrame.origin.x, targetFrame.origin.y, targetFrame.size.width, targetFrame.size.height};
|
|
93838
|
+
for (size_t i = 0; i < 8; ++i) rect.setValueAtIndex(rt, i, dimensions[i]);
|
|
93839
|
+
layout = std::move(rect);
|
|
93840
|
+
}
|
|
93841
|
+
auto props = jsi::Object(rt);
|
|
93842
|
+
if (const auto *style = dynamic_cast<const react::BaseViewProps *>(view.props.get())) {
|
|
93843
|
+
const auto *targetStyle = dynamic_cast<const react::BaseViewProps *>(target->getProps().get());
|
|
93844
|
+
if (targetStyle && style->opacity != targetStyle->opacity) props.setProperty(rt, "opacity", style->opacity);
|
|
93845
|
+
if (targetStyle && style->transform != targetStyle->transform) {
|
|
93846
|
+
auto matrix = jsi::Array(rt, 16);
|
|
93847
|
+
const auto transform = style->resolveTransform(view.layoutMetrics);
|
|
93848
|
+
for (size_t i = 0; i < 16; ++i) matrix.setValueAtIndex(rt, i, transform.matrix[i]);
|
|
93849
|
+
auto operation = jsi::Object(rt);
|
|
93850
|
+
operation.setProperty(rt, "matrix", std::move(matrix));
|
|
93851
|
+
auto entries = jsi::Array(rt, 1);
|
|
93852
|
+
entries.setValueAtIndex(rt, 0, std::move(operation));
|
|
93853
|
+
props.setProperty(rt, "transform", std::move(entries));
|
|
93854
|
+
}
|
|
93855
|
+
}
|
|
93856
|
+
apply.call(rt, view.tag, std::move(props), std::move(layout));
|
|
93857
|
+
}
|
|
93858
|
+
|
|
93859
|
+
private:
|
|
93860
|
+
AppNode node(jsi::Runtime &rt, react::Tag tag) const {
|
|
93861
|
+
if (tag == surface_) {
|
|
93862
|
+
AppNode root;
|
|
93863
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
93864
|
+
root = tree.getCurrentRevision().rootShadowNode;
|
|
93865
|
+
});
|
|
93866
|
+
if (root) return root;
|
|
93867
|
+
}
|
|
93868
|
+
auto found = nodes_.find(tag);
|
|
93869
|
+
if (found == nodes_.end()) throw jsi::JSError(rt, "Fabric view is absent from its committed surface");
|
|
93870
|
+
if (auto current = manager_->getNewestCloneOfShadowNode(*found->second)) return current;
|
|
93871
|
+
return found->second;
|
|
93872
|
+
}
|
|
93873
|
+
|
|
93874
|
+
std::shared_ptr<AppChildren> readChildren(jsi::Runtime &rt, const jsi::Array &values,
|
|
93875
|
+
std::unordered_map<react::Tag, AppNode> &next) const {
|
|
93876
|
+
auto children = std::make_shared<AppChildren>();
|
|
93877
|
+
children->reserve(values.size(rt));
|
|
93878
|
+
for (size_t i = 0; i < values.size(rt); ++i) {
|
|
93879
|
+
auto row = values.getValueAtIndex(rt, i).asObject(rt).asArray(rt);
|
|
93880
|
+
if (row.size(rt) != 5) throw jsi::JSError(rt, "invalid Fabric view in app commit");
|
|
93881
|
+
const auto tag = static_cast<react::Tag>(row.getValueAtIndex(rt, 0).asNumber());
|
|
93882
|
+
const auto component = row.getValueAtIndex(rt, 1).asString(rt).utf8(rt);
|
|
93883
|
+
const auto properties = row.getValueAtIndex(rt, 2);
|
|
93884
|
+
const auto instance = row.getValueAtIndex(rt, 3);
|
|
93885
|
+
auto descendants = readChildren(rt, row.getValueAtIndex(rt, 4).asObject(rt).asArray(rt), next);
|
|
93886
|
+
auto existing = nodes_.find(tag);
|
|
93887
|
+
AppNode view;
|
|
93888
|
+
if (existing == nodes_.end()) {
|
|
93889
|
+
auto initial = manager_->createNode(tag, component, surface_, react::RawProps(rt, properties),
|
|
93890
|
+
std::make_shared<react::InstanceHandle>(rt, instance, tag));
|
|
93891
|
+
for (const auto &child : *descendants) manager_->appendChild(initial, child);
|
|
93892
|
+
view = std::move(initial);
|
|
93893
|
+
} else {
|
|
93894
|
+
view = manager_->cloneNode(*existing->second, descendants, react::RawProps(rt, properties));
|
|
93895
|
+
}
|
|
93896
|
+
if (!next.emplace(tag, view).second) throw jsi::JSError(rt, "duplicate Fabric view tag in app commit");
|
|
93897
|
+
children->push_back(std::move(view));
|
|
93898
|
+
}
|
|
93899
|
+
return children;
|
|
93900
|
+
}
|
|
93901
|
+
|
|
93902
|
+
std::shared_ptr<react::UIManager> manager_;
|
|
93903
|
+
const react::ContextContainer &context_;
|
|
93904
|
+
react::SurfaceId surface_ = 0;
|
|
93905
|
+
react::LayoutConstraints constraints_;
|
|
93906
|
+
react::LayoutContext layout_;
|
|
93907
|
+
std::unordered_map<react::Tag, AppNode> nodes_;
|
|
93908
|
+
};
|
|
93909
|
+
|
|
93910
|
+
PeachAppSurfacePresenter *appSurfacePresenter;
|
|
93911
|
+
std::unique_ptr<PeachAppShadowTree> appShadowTree;
|
|
93912
|
+
std::optional<jsi::Function> appMountHandler;
|
|
93913
|
+
std::optional<jsi::Function> appPropsHandler;
|
|
93914
|
+
std::optional<jsi::Function> appCommandHandler;
|
|
93915
|
+
}
|
|
93916
|
+
|
|
93917
|
+
id peachAppSurfacePresenter() {
|
|
93918
|
+
return appSurfacePresenter;
|
|
93919
|
+
}
|
|
93920
|
+
`;
|
|
93921
|
+
FABRIC_APP_INSTALL = `
|
|
93922
|
+
react::RuntimeExecutor execute = [invoker = fabricInvoker](std::function<void(jsi::Runtime &)> &&work) {
|
|
93923
|
+
using RuntimeBlock = void (^)(jsi::Runtime &);
|
|
93924
|
+
if (const auto *block = work.target<RuntimeBlock>()) {
|
|
93925
|
+
// stack blocks need a copy before the executor can queue them.
|
|
93926
|
+
RuntimeBlock owned = (__bridge_transfer RuntimeBlock)_Block_copy((__bridge const void *)*block);
|
|
93927
|
+
work = [owned](jsi::Runtime &rt) { owned(rt); };
|
|
93928
|
+
}
|
|
93929
|
+
invoker->invokeAsync(std::move(work));
|
|
93930
|
+
};
|
|
93931
|
+
appSurfacePresenter = [[PeachAppSurfacePresenter alloc] initWithContextContainer:fabricContext
|
|
93932
|
+
runtimeExecutor:execute bridgelessBindingsExecutor:execute];
|
|
93933
|
+
appShadowTree = std::make_unique<PeachAppShadowTree>(appSurfacePresenter.scheduler.uiManager, *fabricContext);
|
|
93934
|
+
appSurfacePresenter.publishMount = [execute](const react::MountingTransaction &transaction) {
|
|
93935
|
+
execute([surface = transaction.getSurfaceId(), mutations = transaction.getMutations()](jsi::Runtime &rt) {
|
|
93936
|
+
if (appShadowTree && appMountHandler) {
|
|
93937
|
+
for (const auto &mutation : mutations) appShadowTree->publish(rt, mutation, *appMountHandler);
|
|
93938
|
+
[appSurfacePresenter.scheduler reportMount:surface];
|
|
93939
|
+
}
|
|
93940
|
+
});
|
|
93941
|
+
};
|
|
93942
|
+
appSurfacePresenter.publishProps = [execute](react::Tag tag, folly::dynamic props) {
|
|
93943
|
+
execute([tag, props = std::move(props)](jsi::Runtime &rt) {
|
|
93944
|
+
if (appPropsHandler) appPropsHandler->call(rt, tag, jsi::valueFromDynamic(rt, props));
|
|
93945
|
+
});
|
|
93946
|
+
};
|
|
93947
|
+
appSurfacePresenter.dispatchCommand = [execute](react::Tag tag, const std::string &name, const folly::dynamic &args) {
|
|
93948
|
+
execute([tag, name, args](jsi::Runtime &rt) {
|
|
93949
|
+
if (appCommandHandler) appCommandHandler->call(rt, tag, jsi::String::createFromUtf8(rt, name), jsi::valueFromDynamic(rt, args));
|
|
93950
|
+
});
|
|
93951
|
+
};
|
|
93952
|
+
`;
|
|
93953
|
+
FABRIC_APP_METHODS = `
|
|
93954
|
+
method("commitApp", 6, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
93955
|
+
appShadowTree->commit(rt, static_cast<react::SurfaceId>(args[0].asNumber()), args[1].asNumber(),
|
|
93956
|
+
args[2].asNumber(), args[3].asNumber(), args[4].getBool(), args[5].asObject(rt).asArray(rt));
|
|
93957
|
+
return jsi::Value::undefined();
|
|
93958
|
+
});
|
|
93959
|
+
method("setAppHandlers", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
93960
|
+
appMountHandler = args[0].asObject(rt).asFunction(rt);
|
|
93961
|
+
appPropsHandler = args[1].asObject(rt).asFunction(rt);
|
|
93962
|
+
appCommandHandler = args[2].asObject(rt).asFunction(rt);
|
|
93963
|
+
return jsi::Value::undefined();
|
|
93964
|
+
});
|
|
93965
|
+
method("dispatchAppEvent", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
93966
|
+
appShadowTree->dispatch(rt, static_cast<react::Tag>(args[0].asNumber()), args[1].asString(rt).utf8(rt), args[2]);
|
|
93967
|
+
return jsi::Value::undefined();
|
|
93968
|
+
});
|
|
93969
|
+
constexpr auto *shadowFactory = "peachCreateFabricShadowHandle";
|
|
93970
|
+
rt.global().setProperty(rt, shadowFactory, jsi::Function::createFromHostFunction(rt,
|
|
93971
|
+
jsi::PropNameID::forAscii(rt, shadowFactory), 3,
|
|
93972
|
+
[](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
93973
|
+
return appShadowTree->handle(rt, static_cast<react::Tag>(args[0].asNumber()), args[1], args[2]);
|
|
93974
|
+
}));
|
|
93975
|
+
`;
|
|
93976
|
+
FABRIC_APP_TEARDOWN = `
|
|
93977
|
+
appShadowTree.reset();
|
|
93978
|
+
appMountHandler.reset();
|
|
93979
|
+
appPropsHandler.reset();
|
|
93980
|
+
appCommandHandler.reset();
|
|
93981
|
+
appSurfacePresenter = nil;
|
|
93982
|
+
`;
|
|
93983
|
+
}
|
|
93984
|
+
});
|
|
93985
|
+
|
|
93701
93986
|
// src/turbo-source.ts
|
|
93702
93987
|
function codegenSpecRoot(codegen) {
|
|
93703
93988
|
const nested = import_node_path123.default.join(codegen, "ReactCodegen");
|
|
@@ -94808,6 +95093,7 @@ async function collectTurboSources(options2) {
|
|
|
94808
95093
|
};
|
|
94809
95094
|
let objc = Boolean(options2.reactNativeProvider);
|
|
94810
95095
|
let fabric = Boolean(options2.reactNativeProvider);
|
|
95096
|
+
let appPresenter = false;
|
|
94811
95097
|
const fabricPackages = /* @__PURE__ */ new Set();
|
|
94812
95098
|
const fabricViews = [];
|
|
94813
95099
|
let fabricTarget = null;
|
|
@@ -94945,6 +95231,11 @@ async function collectTurboSources(options2) {
|
|
|
94945
95231
|
providerObjC = true;
|
|
94946
95232
|
const stripped2 = stripComments2(text7);
|
|
94947
95233
|
if (OBJC_TURBO.test(stripped2) || OBJC_BRIDGE.test(stripped2)) {
|
|
95234
|
+
if (/-\s*\(\s*void\s*\)\s*setSurfacePresenter\s*:/.test(stripped2)) {
|
|
95235
|
+
fabric = true;
|
|
95236
|
+
appPresenter = true;
|
|
95237
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
95238
|
+
}
|
|
94948
95239
|
const registers2 = OBJC_REGISTERED.test(stripped2);
|
|
94949
95240
|
for (const [, className2] of stripped2.matchAll(/@implementation\s+(\w+)/g))
|
|
94950
95241
|
if (!managers.has(className2)) {
|
|
@@ -95400,7 +95691,7 @@ async function collectTurboSources(options2) {
|
|
|
95400
95691
|
if (fabricPackages.has(owner))
|
|
95401
95692
|
fabricViews.push({ name: name3, className: className2 });
|
|
95402
95693
|
}
|
|
95403
|
-
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null);
|
|
95694
|
+
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null) ?? (appPresenter ? fabricTarget : null);
|
|
95404
95695
|
if (hostTarget) {
|
|
95405
95696
|
result.fabricComponents = fabricViews.map(({ name: name3 }) => name3);
|
|
95406
95697
|
result.paperViewManagers = [...new Set(paperClasses)].sort();
|
|
@@ -95434,7 +95725,7 @@ async function collectTurboSources(options2) {
|
|
|
95434
95725
|
}
|
|
95435
95726
|
}
|
|
95436
95727
|
const unit2 = `${targetPath(hostTarget.targetName)}/PeachFabricHost.mm`;
|
|
95437
|
-
add(unit2, fabricHostSource(fabricViews, result.paperViewManagers));
|
|
95728
|
+
add(unit2, fabricHostSource(fabricViews, result.paperViewManagers, appPresenter));
|
|
95438
95729
|
scanText(
|
|
95439
95730
|
{ key: unit2, ...hostTarget, relative: "PeachFabricHost.mm" },
|
|
95440
95731
|
result.files[unit2]
|
|
@@ -95872,6 +96163,7 @@ RCT_EXPORT_METHOD(load:(NSString *)uri
|
|
|
95872
96163
|
extern "C" void RCTRegisterModule(Class);
|
|
95873
96164
|
static PeachTurboModuleDelegate *delegate;
|
|
95874
96165
|
static RCTTurboModuleManager *manager;
|
|
96166
|
+
id peachAppSurfacePresenter() __attribute__((weak));
|
|
95875
96167
|
|
|
95876
96168
|
@implementation PeachTurboModuleDelegate
|
|
95877
96169
|
|
|
@@ -95896,6 +96188,9 @@ static RCTTurboModuleManager *manager;
|
|
|
95896
96188
|
- (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass
|
|
95897
96189
|
{
|
|
95898
96190
|
id<RCTTurboModule> module = [moduleClass new];
|
|
96191
|
+
if (peachAppSurfacePresenter && [module respondsToSelector:@selector(setSurfacePresenter:)]) {
|
|
96192
|
+
[module performSelector:@selector(setSurfacePresenter:) withObject:peachAppSurfacePresenter()];
|
|
96193
|
+
}
|
|
95899
96194
|
if ([module respondsToSelector:@selector(setDispatchToJSThread:)])
|
|
95900
96195
|
((id<RCTJSDispatcherModule>)module).dispatchToJSThread = ^(dispatch_block_t block) {
|
|
95901
96196
|
dispatchToJSThread(block);
|
|
@@ -95971,8 +96266,8 @@ ${hasEventDispatcher ? " if (![RCTGetModuleClasses() containsObject:[RCTEventDi
|
|
|
95971
96266
|
auto& runtime = peach::jsi_runtime::create(
|
|
95972
96267
|
[] { invoker->drain(); },
|
|
95973
96268
|
[] {
|
|
95974
|
-
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
95975
96269
|
[manager invalidate];
|
|
96270
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
95976
96271
|
manager = nil;
|
|
95977
96272
|
delegate = nil;
|
|
95978
96273
|
invoker.reset();
|
|
@@ -96078,12 +96373,13 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
96078
96373
|
}
|
|
96079
96374
|
`;
|
|
96080
96375
|
}
|
|
96081
|
-
function fabricHostSource(views, paperClasses) {
|
|
96376
|
+
function fabricHostSource(views, paperClasses, appPresenter) {
|
|
96082
96377
|
const entries2 = views.map(
|
|
96083
96378
|
({ name: name3, className: className2 }) => `@${JSON.stringify(name3)}: NSClassFromString(@${JSON.stringify(className2)})`
|
|
96084
96379
|
).join(", ");
|
|
96085
96380
|
const paper = paperClasses.length > 0;
|
|
96086
|
-
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}
|
|
96381
|
+
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}${appPresenter ? FABRIC_APP_INCLUDES : ""}
|
|
96382
|
+
${appPresenter ? FABRIC_APP_PRESENTER : ""}
|
|
96087
96383
|
@interface PeachFabricComponents : NSObject <RCTComponentViewFactoryComponentProvider>
|
|
96088
96384
|
@end
|
|
96089
96385
|
|
|
@@ -96823,7 +97119,8 @@ static void peachEventDispatcherDispatchEvent(id self, SEL _cmd, id<RCTEvent> ev
|
|
|
96823
97119
|
NSNumber *reactTag = event.viewTag;
|
|
96824
97120
|
if (!reactTag) return;
|
|
96825
97121
|
auto found = fabricViews.find(reactTag.intValue);
|
|
96826
|
-
if (found == fabricViews.end() || !found->second.family
|
|
97122
|
+
if (found == fabricViews.end() || !found->second.family ||
|
|
97123
|
+
!dynamic_cast<const react::LegacyViewManagerInteropComponentDescriptor *>(found->second.descriptor)) return;
|
|
96827
97124
|
NSArray *args = [event arguments];
|
|
96828
97125
|
NSString *eventName = args.count >= 2 && [args[1] isKindOfClass:[NSString class]]
|
|
96829
97126
|
? args[1]
|
|
@@ -97103,6 +97400,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
97103
97400
|
std::weak_ptr<react::EventLogger>());
|
|
97104
97401
|
react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
|
|
97105
97402
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
97403
|
+
${appPresenter ? FABRIC_APP_INSTALL : ""}
|
|
97106
97404
|
auto views = jsi::Object(rt);
|
|
97107
97405
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
97108
97406
|
views.setProperty(
|
|
@@ -97127,6 +97425,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
97127
97425
|
}
|
|
97128
97426
|
}));
|
|
97129
97427
|
};
|
|
97428
|
+
${appPresenter ? FABRIC_APP_METHODS : ""}
|
|
97130
97429
|
// create(name, instanceHandle, props), Create then Insert: the family the
|
|
97131
97430
|
// handle's events resolve through, the first props, the initial state, and
|
|
97132
97431
|
// the layout the view has before the engine measures it
|
|
@@ -97487,6 +97786,7 @@ void peachTeardownFabricViews() {
|
|
|
97487
97786
|
fabricFocusParentTag = 0;
|
|
97488
97787
|
fabricOwner.reset();
|
|
97489
97788
|
fabricEventHandler.reset();
|
|
97789
|
+
${appPresenter ? FABRIC_APP_TEARDOWN : ""}
|
|
97490
97790
|
}
|
|
97491
97791
|
|
|
97492
97792
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
@@ -97518,6 +97818,7 @@ var init_turbo_source = __esm({
|
|
|
97518
97818
|
init_swift_source_file();
|
|
97519
97819
|
init_swiftContract();
|
|
97520
97820
|
init_turbo_codegen_intake();
|
|
97821
|
+
init_turbo_fabric_app();
|
|
97521
97822
|
init_xcode_project();
|
|
97522
97823
|
TURBO_CORE_TARGET = "TurboCore";
|
|
97523
97824
|
TURBO_FMT_TARGET = "TurboFmt";
|
|
@@ -97775,6 +98076,7 @@ using namespace facebook;
|
|
|
97775
98076
|
#import <React/RCTUIManager.h>
|
|
97776
98077
|
#import <React/RCTUtils.h>
|
|
97777
98078
|
#import <React/RCTViewManager.h>
|
|
98079
|
+
#include <react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h>
|
|
97778
98080
|
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
97779
98081
|
#include <react/renderer/core/ShadowNodeFragment.h>
|
|
97780
98082
|
#include <react/utils/FollyConvert.h>
|
|
@@ -98737,7 +99039,7 @@ var init_react_native_core = __esm({
|
|
|
98737
99039
|
init_swift_distribution();
|
|
98738
99040
|
init_swift_package();
|
|
98739
99041
|
init_swiftContract();
|
|
98740
|
-
recipe = true ? "
|
|
99042
|
+
recipe = true ? "32fd4cb91d846dff44d3a53361a8b93d320b064cfdcfc0b760c1861bc7f53cea" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
98741
99043
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
98742
99044
|
building = /* @__PURE__ */ new Map();
|
|
98743
99045
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-4V256AAR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-3PLIZHXJ.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-5OJPOD6B.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-DUPDKR46.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-WQ2WN5E2.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-EC5A4V5T.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (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;
|