use super::{
ARTWORK, ARTWORK_RENDERS, artwork, badge, card, compiled, config, connector, context, executor, gpu, layer, network, network_connector, node, rendered_artwork, thumbnail, wgpu_executor, wire,
};
use core_types::color::SRGBA8;
use core_types::list::{Item, List};
use core_types::uuid::NodeId;
use core_types::{Color, Context, Ctx, ExtractVarArgs, Poll, ProtoNodeIdentifier};
use glam::{DAffine2, DVec2, IVec2, UVec2};
use graph_craft::document::value::{RenderOutput, RenderOutputType, TaggedValue};
use graph_craft::document::{DocumentNodeImplementation, NodeInput, NodeNetwork};
use graph_ui::card::{Card, Connector, DataType, Highlight, Selection};
use graph_ui::dot::Dot;
use graph_ui::error_badge::ErrorBadge;
use graph_ui::layer::{Layer, LayerButton};
use graph_ui::network_connector::{NetworkConnector, NetworkConnectorKind};
use graph_ui::scene::GraphUiScene;
use graph_ui::wire::{Wire, WireInProgress, WireKey};
use graph_ui::{GraphUi, GraphUiConfig};
use graphene_std::application_io::{ExportFormat, RenderConfig, Texture};
use graphene_std::platform_application_io;
use graphene_std::transform::Footprint;
use graphic_types::raster_types::{Image, Raster};
use graphic_types::{Graphic, Vector};
use interpreted_executor::dynamic_executor::DynamicExecutor;
use rendering::CanvasImage;
use std::cell::RefCell;
use vello_gpu::kurbo::{BezPath, PathEl, Rect};
use wgpu_executor::WgpuExecutor;
const SIZE: UVec2 = UVec2::new(160, 96);
const SCALE: f64 = 2.;
const BACKDROP: SRGBA8 = SRGBA8::new_opaque(0x22, 0x22, 0x22);
const BORDER: SRGBA8 = SRGBA8::new_opaque(0x55, 0x55, 0x55);
const PREVIEWED_BORDER: SRGBA8 = SRGBA8::new_opaque(0xee, 0xee, 0xee);
const GENERAL: SRGBA8 = SRGBA8::new_opaque(0xcf, 0xcf, 0xcf);
const GENERAL_DIM: SRGBA8 = SRGBA8::new_opaque(0x8a, 0x8a, 0x8a);
const VECTOR: SRGBA8 = SRGBA8::new_opaque(0x65, 0xbb, 0xe5);
const VECTOR_DIM: SRGBA8 = SRGBA8::new_opaque(0x41, 0x78, 0x92);
const NUMBER: SRGBA8 = SRGBA8::new_opaque(0xc9, 0xa6, 0x99);
const NUMBER_DIM: SRGBA8 = SRGBA8::new_opaque(0x88, 0x6b, 0x60);
const COLOR: SRGBA8 = SRGBA8::new_opaque(0xce, 0x6e, 0xa7);
const COLOR_DIM: SRGBA8 = SRGBA8::new_opaque(0x92, 0x40, 0x71);
const GRAPHIC: SRGBA8 = SRGBA8::new_opaque(0x68, 0xc5, 0x87);
const GRAPHIC_DIM: SRGBA8 = SRGBA8::new_opaque(0x37, 0x75, 0x4c);
const WIRE_SPLIT: SRGBA8 = SRGBA8::new_opaque(0x44, 0x44, 0x44);
const ERROR_RED: SRGBA8 = SRGBA8::new_opaque(0xd6, 0x53, 0x6e);
const TEXT: SRGBA8 = SRGBA8::new_opaque(0xee, 0xee, 0xee);
const HOVERED_BUTTON: SRGBA8 = SRGBA8::new_opaque(0x55, 0x55, 0x55);
const CHECKER_LIGHT: SRGBA8 = SRGBA8::new_opaque(0xff, 0xff, 0xff);
const CHECKER_DARK: SRGBA8 = SRGBA8::new_opaque(0xcc, 0xcc, 0xcc);
const TOP_BORDER: DVec2 = DVec2::new(30., 12.5);
const ABOVE: DVec2 = DVec2::new(30., 6.);
const NEXT_TOP_BORDER: DVec2 = DVec2::new(30., 36.5);
const IN_THE_ICON: DVec2 = DVec2::new(34., 24.);
const ARTWORK_SVG: &str = r#""#;
thread_local! {
static RECORDED_CARDS: RefCell