frameos-editor 2026.10.23 → 2026.11.0
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/index.html +1 -1
- package/dist/static/{chunk-U4T4DILC.js → chunk-ME6B3RC4.js} +4 -4
- package/dist/static/{editor-LRKXXVXH.js → editor-ZF6XV7MW.js} +2 -2
- package/dist/static/editor.js +2 -2
- package/dist/static/{lib-74TB5J7W.js → lib-WER625JN.js} +4 -4
- package/dist/static/lib.js +4 -4
- package/dist/static/{mount-BJ2G3ACM.js → mount-H5CLLL4S.js} +2 -2
- package/dist/static/mount.js +2 -2
- package/package.json +1 -1
package/dist/index.html
CHANGED
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
<div id="root"></div>
|
|
27
27
|
<div id="modal" style="position: absolute; z-index: 10"></div>
|
|
28
28
|
<div id="popper" style="position: absolute; z-index: 80"></div>
|
|
29
|
-
<script type="module" src="./static/editor-
|
|
29
|
+
<script type="module" src="./static/editor-ZF6XV7MW.js"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -6794,7 +6794,7 @@ proc get*(self: App, context: ExecutionContext): Image =
|
|
|
6794
6794
|
}
|
|
6795
6795
|
]
|
|
6796
6796
|
}
|
|
6797
|
-
`}};var h6={"repo/apps/json/beRecycle":{name:"Recycling Calendar for Belgium",description:"Trash pickup dates as a JSON event list",category:"data",version:"1.1.0",fields:[{name:"streetName",type:"string",value:"",required:!0,label:"Street name"},{name:"number",type:"integer",value:"",required:!0,label:"Number"},{name:"postalCode",type:"integer",value:"",required:!0,label:"Postal code"},{name:"exportFrom",type:"string",value:"",label:"Export events from (YYYY-MM-DD)",placeholder:"now"},{name:"exportUntil",type:"string",value:"",label:"Export events until (YYYY-MM-DD)",placeholder:"1 year later"},{name:"exportCount",type:"integer",value:"50",label:"Maximum number of events to export"},{name:"language",type:"select",options:["en","fr","nl"],value:"en",required:!0,label:"Language"},{markdown:"[{ summary, startTime, endTime, timezone }]"}],output:[{name:"events",type:"json"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"14400"},origin:"repo/apps/json/beRecycle"},"repo/apps/image/chart":{name:"Chart",category:"data",description:"A line, bar or area chart as an SVG sized to the area it is drawn into. Wire it into render/image.",version:"1.0.0",fields:[{name:"data",type:"json",value:"[]",required:!0,label:"Chart data",hint:'[1,2,3], [{"label": "Mon", "value": 3}, \u2026] or {"series": [{"name": "a", "color": "#ff0000", "values": [1, 2]}], "labels": ["Mon", "Tue"]}'},{name:"chartType",type:"select",options:["line","bar","area"],value:"line",required:!0,label:"Chart type"},{name:"title",type:"string",value:"",label:"Title"},{name:"color",type:"color",value:"#2a78d6",required:!0,label:"Series color",hint:"Extra series get colors from a palette"},{name:"transparentBackground",type:"boolean",value:"true",required:!0,label:"Transparent background"},{name:"backgroundColor",type:"color",value:"#ffffff",label:"Background color",showIf:[{field:"transparentBackground",operator:"eq",value:"false"}]},{name:"axisColor",type:"color",value:"#333333",required:!0,label:"Axis & text color"},{name:"showGrid",type:"boolean",value:"true",required:!0,label:"Show grid lines"},{name:"showLabels",type:"boolean",value:"true",required:!0,label:"Show axis labels"},{name:"minY",type:"string",value:"",label:"Min Y (empty = auto)",placeholder:"auto"},{name:"maxY",type:"string",value:"",label:"Max Y (empty = auto)",placeholder:"auto"},{name:"lineWidth",type:"float",value:"",label:"Line width (empty = scale with the chart)",showIf:[{field:"chartType",operator:"in",value:["line","area"]}]},{name:"fontSize",type:"float",value:"",label:"Font size (empty = scale with the chart)"},{name:"padding",type:"float",value:"",label:"Padding (empty = scale with the chart)"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/chart"},"repo/apps/text/eventsToAgenda":{name:"Events to Agenda",description:"Convert events to a basic-caret formatted agenda string",category:"data",version:"1.0.0",fields:[{name:"events",type:"json",required:!0,label:"Events"},{name:"baseFontSize",type:"float",value:"24",required:!0,label:"Base font size"},{name:"titleFontSize",type:"float",value:"48",required:!0,label:"Title font size"},{name:"titleColor",type:"color",value:"#FFFFFF",required:!0,label:"Day title color"},{name:"textColor",type:"color",value:"#FFFFFF",required:!0,label:"Base text color"},{name:"timeColor",type:"color",value:"#FF0000",required:!0,label:"Time color"},{name:"startWithToday",type:"boolean",value:"true",required:!0,label:"Always start with today's date"}],output:[{name:"result",type:"string"}],origin:"repo/apps/text/eventsToAgenda"},"repo/apps/image/frameOSGallery":{name:"FrameOS Gallery",description:"Random image from the FrameOS gallery",category:"data",version:"1.1.0",fields:[{markdown:"[Click here](https://gallery.frameos.net/) to see all the galleries."},{name:"category",type:"select",options:["building-art-styles","cute","cyberpunk-europe","low-poly-animals","masterpieces","space-gallery","space-odyssey","other"],value:"cute",required:!1,label:"Category"},{name:"categoryOther",type:"string",value:"",required:!1,label:"Category (if other)",showIf:[{field:"category",operator:"eq",value:"other"}]},{name:"format",type:"select",options:["jpg","png","original"],value:"jpg",required:!1,label:"Image format",hint:"jpg: the gallery scales the image to the area it is drawn in and sends a JPEG, a fraction of the bytes and the decoding of the original (recommended, every color kept). png: the same, lossless, about five times the bytes. original: the file as uploaded, scaled on the frame."},{name:"fit",type:"select",options:["auto","cover","contain"],value:"auto",required:!1,label:"Scale to the target",hint:"The gallery scales the image to the area it will be drawn in (the frame, or a split cell). auto follows the image node's placement; cover fills the area and crops the rest, contain keeps the whole image inside it. Neither upscales a small image.",showIf:[{field:"format",operator:"ne",value:"original"}]}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/frameOSGallery"},"repo/apps/image/googlePhotos":{name:"Google Photos",description:"Photos from a shared Google Photos album. Reads the public share page (there is no API), so a Google page change can break it.",category:"data",version:"1.0.0",fields:[{name:"shareUrl",type:"text",value:"",required:!0,label:"Shared album link",placeholder:"https://photos.app.goo.gl/...",hint:"In Google Photos, open the album, tap Share, create a link anyone can view and paste it here. Keep the album shared."},{name:"mode",type:"select",options:["random","sequential"],value:"random",required:!0,label:"Order of images"},{name:"counterStateKey",type:"string",value:"",required:!1,label:"Optional state key for persistence",hint:"Keeps the photo position across restarts.",showIf:[{field:"mode",operator:"eq",value:"sequential"}]},{name:"fitMode",type:"select",options:["cover","contain"],value:"cover",required:!0,label:"Fit mode",hint:"cover crops the photo to fill the frame, contain shows all of it."},{name:"metadataStateKey",type:"string",value:"",required:!1,label:"Metadata state key",hint:"Stores {source, index, count, imageUrl}."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Save each photo in the frame's assets folder. auto saves when the frame is set to save assets."},{name:"cacheAlbumSeconds",type:"integer",value:"3600",required:!1,label:"Album cache duration (seconds)",placeholder:"3600",hint:"How long to reuse the album's photo list. New photos show up within this time."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/googlePhotos"},"repo/apps/json/haSensor":{name:"Home Assistant Sensor",description:"Get the state of a Home Assistant entity",category:"data",version:"1.0.0",settings:["homeAssistant"],fields:[{markdown:"Find the [entity id here](http://homeassistant.local:8123/config/entities)"},{name:"entityId",type:"text",required:!0,label:"Entity ID",placeholder:"sensor.temperature"},{name:"debug",type:"boolean",value:"false",label:"Debug logging"}],output:[{name:"state",type:"json"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"60"},origin:"repo/apps/json/haSensor"},"repo/apps/image/immich":{name:"Immich",description:"Photos from a self-hosted Immich server: random, from one album or person, favorites, or today's memories.",category:"data",version:"1.0.0",settings:["immich"],fields:[{name:"mode",type:"select",value:"random",options:["random","album","favorites","memories"],label:"Mode",hint:"random picks from the whole library."},{name:"albumId",type:"string",value:"",label:"Album ID",hint:"The UUID in the album's URL.",placeholder:"e.g. 7f2d3c8a-1b2c-4d5e-8f90-a1b2c3d4e5f6"},{name:"personId",type:"string",value:"",label:"Person ID",hint:"Optional: only this person's photos (the UUID in their URL).",placeholder:"e.g. 9c8b7a6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d"},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",hint:"Stores {source, id, originalFileName, camera EXIF fields, people} under this key."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the photo to the frame's assets folder. auto follows the frame's setting. ESP32 frames never save."},{name:"previewSize",type:"select",value:"preview",options:["preview","fullsize"],label:"Image size",hint:"preview is resized by Immich and much lighter on memory; fullsize downloads the original."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/immich"},"repo/apps/image/jsImage":{name:"New image data app (JS)",category:"data",description:"JavaScript data app template that returns an image object.",fields:[{name:"width",label:"Width",type:"integer",value:320},{name:"height",label:"Height",type:"integer",value:180},{name:"color",label:"Fill Color",type:"color",value:"#dde7f0"},{name:"opacity",label:"Opacity",type:"float",value:1}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/jsImage"},"repo/apps/logic/jsLogic":{name:"New logic app (JS)",category:"logic",description:"JavaScript logic app template for side effects and scene state updates.",fields:[{name:"stateKey",label:"State key",type:"string",value:"jsLogicResult"}],origin:"repo/apps/logic/jsLogic"},"repo/apps/text/jsSvg":{name:"New SVG data app (JS)",category:"data",description:"JavaScript data app template that returns SVG markup.",fields:[{name:"label",label:"Label",type:"string",value:"QuickJS"},{name:"background",label:"Background",type:"color",value:"#ffffff"},{name:"foreground",label:"Foreground",type:"color",value:"#111111"}],output:[{name:"svg",type:"text",example:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 120">...</svg>'}],origin:"repo/apps/text/jsSvg"},"repo/apps/text/jsText":{name:"New text data app (JS)",category:"data",description:"JavaScript data app template that returns text.",fields:[{name:"prefix",label:"Prefix",type:"string",value:"FrameOS"},{name:"message",label:"Message",type:"text",value:"Hello from QuickJS"}],output:[{name:"text",type:"text",example:"FrameOS: Hello from QuickJS"}],origin:"repo/apps/text/jsText"},"repo/apps/image/openaiImage":{name:"OpenAI Image",description:"Random AI generated art from OpenAI's image models",category:"data",version:"1.0.0",settings:["openAI"],fields:[{name:"prompt",type:"text",rows:4,value:"",required:!0,label:"Prompt",placeholder:"e.g. pumpkin pyjama party, digital art"},{name:"model",type:"select",options:["gpt-image-2","gpt-image-1.5","gpt-image-1","dall-e-3","dall-e-2"],value:"gpt-image-2",required:!0,label:"Model"},{name:"size",type:"select",options:["best for orientation","1024x640","640x1024","1024x1024","1536x1024","1024x1536"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"gpt-image-2"}]},{name:"size",type:"select",options:["best for orientation","1024x1024","1536x1024","1024x1536"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"in",value:["gpt-image-1","gpt-image-1.5"]}]},{name:"size",type:"select",options:["best for orientation","1024x1024","1792x1024","1024x1792"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"size",type:"select",options:["best for orientation","1024x1024","512x512","256x256"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"dall-e-2"}]},{name:"style",type:"select",options:["vivid","natural",""],value:"vivid",label:"Style",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"quality",type:"select",options:["standard","hd",""],value:"standard",label:"Quality",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"quality",type:"select",options:["auto","low","medium","high",""],value:"auto",label:"Quality",showIf:[{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]},{name:"outputFormat",type:"select",options:["auto","png","jpeg","webp"],value:"auto",label:"Output format",showIf:[{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]},{name:"outputCompression",type:"integer",value:0,label:"Output compression",hint:"JPEG/WebP compression, 0-100. 0 uses the default.",showIf:[{and:[{field:"outputFormat",operator:"ne",value:"png"},{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]}]},{name:"metadataStateKey",type:"string",value:"",required:!1,label:"Metadata state key",hint:"State key that receives {prompt, generatedPrompt, model, size}."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Keep each image in the frame's assets folder. auto follows the frame's save assets setting."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"3600"},origin:"repo/apps/image/openaiImage"},"repo/apps/text/openaiText":{name:"OpenAI Text",description:"Text response from ChatGPT and friends",category:"data",version:"1.0.0",settings:["openAI"],fields:[{name:"system",type:"text",rows:6,value:"You're a smart e-ink frame running FrameOS. Reply with plain text only. Space is very limited.",required:!0,label:"System Prompt"},{name:"user",type:"text",rows:6,value:"",required:!0,label:"User Prompt",placeholder:"Write your prompt here. Keep it short and clear."},{name:"model",type:"string",value:"gpt-5.5",required:!0,label:"Model"}],output:[{name:"reply",type:"string"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"600"},origin:"repo/apps/text/openaiText"},"repo/apps/image/photoAlbum":{name:"Photo album",description:"Play an album from FrameOS Photos through its share link, one photo per render, or show one photo of it.",category:"data",version:"1.0.0",fields:[{name:"album",type:"string",value:"",required:!0,label:"Album link",hint:"Make one with Install photo scenes on the Photos page.",placeholder:"https://example.com/api/photos/shared/pk_..."},{name:"photo",type:"string",value:"",required:!1,label:"One photo",hint:"The path of one photo inside the album, to show it alone. Leave empty to play the album."},{name:"order",type:"select",value:"random",options:["random","sequential","newest","oldest"],required:!1,label:"Order",hint:"random shows every photo once before any repeats. sequential goes by folder and file name, newest and oldest by date."},{name:"landscape",type:"boolean",value:!0,required:!1,label:"Landscape photos",hint:"Play photos that are wider than tall."},{name:"portrait",type:"boolean",value:!0,required:!1,label:"Portrait photos",hint:"Play photos that are taller than wide."},{name:"square",type:"boolean",value:!0,required:!1,label:"Square photos",hint:"Play photos that are exactly as wide as tall."},{name:"counterStateKey",type:"string",value:"photoIndex",required:!1,label:"State field for the position",hint:"The scene needs an integer state field with this name, saved to disk, so the album keeps its place after a restart or a deep sleep. Leave empty to pick a random photo each time."}],output:[{name:"image",type:"image"}],cache:{enabled:!1},origin:"repo/apps/image/photoAlbum"},"repo/apps/image/unsplash":{name:"Unsplash",description:"Random Unsplash photo",category:"data",version:"1.0.0",settings:["unsplash"],fields:[{name:"search",type:"string",value:"nature",label:"Search",placeholder:"e.g. nature, birds"},{name:"orientation",type:"select",value:"auto",options:["auto","any","landscape","portrait","squarish"],label:"Orientation"},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",hint:"Stores {search, title, description, location, author, links, ...} under this key."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the image to the frame's assets folder. auto follows the frame's save-assets setting."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/unsplash"},"repo/apps/json/weather":{name:"Weather (Open-Meteo)",description:"Current, hourly and daily forecasts from Open-Meteo for a location.",category:"data",version:"1.1.0",fields:[{name:"location",type:"string",value:"",required:!0,label:"Location",placeholder:"City, state, or country"},{name:"date",type:"date",value:"",label:"Date",placeholder:"2024-01-30"},{name:"forecastDays",type:"integer",value:"1",label:"Forecast days (1-16)",showIf:[{field:"date",operator:"empty"}]},{name:"temperatureUnit",type:"select",options:["celsius","fahrenheit"],value:"celsius",required:!0,label:"Temperature unit"},{name:"windSpeedUnit",type:"select",options:["kmh","ms","mph","kn"],value:"kmh",required:!0,label:"Wind speed unit"},{name:"precipitationUnit",type:"select",options:["mm","inch"],value:"mm",required:!0,label:"Precipitation unit"}],output:[{name:"weather",type:"json",example:'{"provider":"open-meteo","forecastModes":["current","hourly","daily"],"date":"2026-01-18","location":{"name":"Brussels","latitude":50.85045,"longitude":4.34878,"timezone":"Europe/Brussels","country":"Belgium","countryCode":"BE","admin1":"Brussels Capital","admin2":"Bruxelles-Capitale"},"forecast":{"latitude":50.854,"longitude":4.35,"generationtime_ms":0.37,"utc_offset_seconds":3600,"timezone":"Europe/Brussels","timezone_abbreviation":"GMT+1","elevation":27,"current_weather_units":{"time":"iso8601","interval":"seconds","temperature":"\xB0C","windspeed":"km/h","winddirection":"\xB0","is_day":"","weathercode":"wmo code"},"current_weather":{"time":"2026-01-18T22:15","interval":900,"temperature":5.7,"windspeed":5.4,"winddirection":132,"is_day":0,"weathercode":0},"hourly_units":{"time":"iso8601","temperature_2m":"\xB0C","apparent_temperature":"\xB0C","precipitation":"mm","weathercode":"wmo code","windspeed_10m":"km/h","winddirection_10m":"\xB0"},"hourly":{"time":["2026-01-18T00:00"],"temperature_2m":[9.2],"apparent_temperature":[7.5],"precipitation":[0],"weathercode":[0],"windspeed_10m":[4],"winddirection_10m":[166]},"daily_units":{"time":"iso8601","temperature_2m_max":"\xB0C","temperature_2m_min":"\xB0C","precipitation_sum":"mm","weathercode":"wmo code","sunrise":"iso8601","sunset":"iso8601","windspeed_10m_max":"km/h"},"daily":{"time":["2026-01-18"],"temperature_2m_max":[11.3],"temperature_2m_min":[5.5],"precipitation_sum":[0],"weathercode":[3],"sunrise":["2026-01-18T08:35"],"sunset":["2026-01-18T17:10"],"windspeed_10m_max":[10.4]}}}'}],origin:"repo/apps/json/weather"},"repo/apps/image/weatherIcon":{name:"Weather icon (JS)",category:"data",description:"One weather icon, or a sheet of the whole set. Wire icons from the Weather icon set app.",version:"1.0.0",fields:[{name:"icons",label:"Icon set (from Weather icon set app)",type:"json",required:!0},{name:"weathercode",label:"WMO weather code",type:"integer",value:"0"},{name:"isDay",label:"Day time",type:"boolean",value:"true"},{name:"size",label:"Size in pixels (0 = fit frame)",type:"integer",value:"0"},{name:"background",label:"Background color",type:"color",value:"#00000000"},{name:"sheet",label:"Render the full set as a sheet",type:"boolean",value:"false"},{name:"columns",label:"Sheet columns",type:"integer",value:"4"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/weatherIcon"},"repo/apps/json/weatherIcons":{name:"Weather icon set (JS)",category:"data",description:"SVG weather icons for WMO weather codes, with code-to-icon and code-to-label maps.",version:"1.0.0",fields:[{name:"palette",label:"Palette",type:"select",options:["auto","vivid","mono"],value:"auto",hint:"auto is mono with low contrast, vivid otherwise."},{name:"lowContrast",label:"Low contrast",type:"boolean",value:"false"},{name:"lineWidth",label:"Line width",type:"float",value:"3"},{name:"ink",label:"Ink color (mono)",type:"color",value:"#222222"},{name:"paper",label:"Paper color (mono)",type:"color",value:"#ffffff"}],output:[{name:"icons",type:"json",example:'{"viewBox": 64, "palette": "vivid", "map": {"61": "rain"}, "labels": {"61": "Light rain"}, "icons": {"rain": "<g>...</g>"}}'}],origin:"repo/apps/json/weatherIcons"},"repo/apps/image/weatherPanel":{name:"Weather panel (JS)",category:"data",description:"Current conditions, an hourly chart or a daily list from Open-Meteo data. Wire weather from the Weather app and icons from the Weather icon set app.",version:"1.0.0",fields:[{name:"weather",label:"Weather data (from Weather app)",type:"json",required:!0},{name:"icons",label:"Icon set (from Weather icon set app)",type:"json",required:!0},{name:"mode",label:"Mode",type:"select",options:["current","hourly","daily"],value:"current"},{name:"hours",label:"Hours to show",type:"integer",value:"10",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"days",label:"Days to show",type:"integer",value:"7",showIf:[{field:"mode",operator:"eq",value:"daily"}]},{name:"showValues",label:"Show icons and temperatures (hourly)",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"showGraph",label:"Show graph (hourly)",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"lowContrast",label:"Low contrast",type:"boolean",value:"false"},{name:"showLocation",label:"Show location header",type:"boolean",value:"true"},{name:"showDetails",label:"Show detail row",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"current"}]},{name:"width",label:"Width (0 = fit canvas)",type:"integer",value:"0"},{name:"height",label:"Height (0 = fit canvas)",type:"integer",value:"0"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/weatherPanel"},"repo/apps/image/wikicommons":{name:"Wikimedia Commons",description:"Images from Wikimedia Commons",category:"data",version:"1.0.0",fields:[{name:"mode",type:"select",value:"pictureOfTheDay",options:["pictureOfTheDay","onThisDay","randomPictureOfTheDay","randomImage"],label:"Mode",hint:"Today's Picture of the Day, this date's in an earlier year, a random earlier one, or a random Commons image."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the image to the frame's assets folder. auto follows the frame's save-assets setting."},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",placeholder:"e.g. wikimediaMetadata",hint:"Stores {title, description, author, license, pageUrl, imageUrl, mime} under this key."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"3600"},origin:"repo/apps/image/wikicommons"}},XF={"repo/apps/json/beRecycle":{"app.test.ts":`import { get } from './app'
|
|
6797
|
+
`}};var h6={"repo/apps/json/beRecycle":{name:"Recycling Calendar for Belgium",description:"Trash pickup dates as a JSON event list",category:"data",version:"1.1.0",fields:[{name:"streetName",type:"string",value:"",required:!0,label:"Street name"},{name:"number",type:"integer",value:"",required:!0,label:"Number"},{name:"postalCode",type:"integer",value:"",required:!0,label:"Postal code"},{name:"exportFrom",type:"string",value:"",label:"Export events from (YYYY-MM-DD)",placeholder:"now"},{name:"exportUntil",type:"string",value:"",label:"Export events until (YYYY-MM-DD)",placeholder:"1 year later"},{name:"exportCount",type:"integer",value:"50",label:"Maximum number of events to export"},{name:"language",type:"select",options:["en","fr","nl"],value:"en",required:!0,label:"Language"},{markdown:"[{ summary, startTime, endTime, timezone }]"}],output:[{name:"events",type:"json"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"14400"},origin:"repo/apps/json/beRecycle"},"repo/apps/image/chart":{name:"Chart",category:"data",description:"A line, bar or area chart as an SVG sized to the area it is drawn into. Wire it into render/image.",version:"1.0.0",fields:[{name:"data",type:"json",value:"[]",required:!0,label:"Chart data",hint:'[1,2,3], [{"label": "Mon", "value": 3}, \u2026] or {"series": [{"name": "a", "color": "#ff0000", "values": [1, 2]}], "labels": ["Mon", "Tue"]}'},{name:"chartType",type:"select",options:["line","bar","area"],value:"line",required:!0,label:"Chart type"},{name:"title",type:"string",value:"",label:"Title"},{name:"color",type:"color",value:"#2a78d6",required:!0,label:"Series color",hint:"Extra series get colors from a palette"},{name:"transparentBackground",type:"boolean",value:"true",required:!0,label:"Transparent background"},{name:"backgroundColor",type:"color",value:"#ffffff",label:"Background color",showIf:[{field:"transparentBackground",operator:"eq",value:"false"}]},{name:"axisColor",type:"color",value:"#333333",required:!0,label:"Axis & text color"},{name:"showGrid",type:"boolean",value:"true",required:!0,label:"Show grid lines"},{name:"showLabels",type:"boolean",value:"true",required:!0,label:"Show axis labels"},{name:"minY",type:"string",value:"",label:"Min Y (empty = auto)",placeholder:"auto"},{name:"maxY",type:"string",value:"",label:"Max Y (empty = auto)",placeholder:"auto"},{name:"lineWidth",type:"float",value:"",label:"Line width (empty = scale with the chart)",showIf:[{field:"chartType",operator:"in",value:["line","area"]}]},{name:"fontSize",type:"float",value:"",label:"Font size (empty = scale with the chart)"},{name:"padding",type:"float",value:"",label:"Padding (empty = scale with the chart)"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/chart"},"repo/apps/text/eventsToAgenda":{name:"Events to Agenda",description:"Convert events to a basic-caret formatted agenda string",category:"data",version:"1.0.0",fields:[{name:"events",type:"json",required:!0,label:"Events"},{name:"baseFontSize",type:"float",value:"24",required:!0,label:"Base font size"},{name:"titleFontSize",type:"float",value:"48",required:!0,label:"Title font size"},{name:"titleColor",type:"color",value:"#FFFFFF",required:!0,label:"Day title color"},{name:"textColor",type:"color",value:"#FFFFFF",required:!0,label:"Base text color"},{name:"timeColor",type:"color",value:"#FF0000",required:!0,label:"Time color"},{name:"startWithToday",type:"boolean",value:"true",required:!0,label:"Always start with today's date"}],output:[{name:"result",type:"string"}],origin:"repo/apps/text/eventsToAgenda"},"repo/apps/image/frameOSGallery":{name:"FrameOS Gallery",description:"Random image from the FrameOS gallery",category:"data",version:"1.1.0",fields:[{markdown:"[Click here](https://gallery.frameos.net/) to see all the galleries."},{name:"category",type:"select",options:["building-art-styles","cute","cyberpunk-europe","low-poly-animals","masterpieces","space-gallery","space-odyssey","other"],value:"cute",required:!1,label:"Category"},{name:"categoryOther",type:"string",value:"",required:!1,label:"Category (if other)",showIf:[{field:"category",operator:"eq",value:"other"}]},{name:"format",type:"select",options:["jpg","png","original"],value:"jpg",required:!1,label:"Image format",hint:"jpg: the gallery scales the image to the area it is drawn in and sends a JPEG, a fraction of the bytes and the decoding of the original (recommended, every color kept). png: the same, lossless, about five times the bytes. original: the file as uploaded, scaled on the frame."},{name:"fit",type:"select",options:["auto","cover","contain"],value:"auto",required:!1,label:"Scale to the target",hint:"The gallery scales the image to the area it will be drawn in (the frame, or a split cell). auto follows the image node's placement; cover fills the area and crops the rest, contain keeps the whole image inside it. Neither upscales a small image.",showIf:[{field:"format",operator:"ne",value:"original"}]}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/frameOSGallery"},"repo/apps/image/googlePhotos":{name:"Google Photos",description:"Photos from a shared Google Photos album. Reads the public share page (there is no API), so a Google page change can break it.",category:"data",version:"1.0.0",fields:[{name:"shareUrl",type:"text",value:"",required:!0,label:"Shared album link",placeholder:"https://photos.app.goo.gl/...",hint:"In Google Photos, open the album, tap Share, create a link anyone can view and paste it here. Keep the album shared."},{name:"mode",type:"select",options:["random","sequential"],value:"random",required:!0,label:"Order of images"},{name:"counterStateKey",type:"string",value:"",required:!1,label:"Optional state key for persistence",hint:"Keeps the photo position across restarts.",showIf:[{field:"mode",operator:"eq",value:"sequential"}]},{name:"fitMode",type:"select",options:["cover","contain"],value:"cover",required:!0,label:"Fit mode",hint:"cover crops the photo to fill the frame, contain shows all of it."},{name:"metadataStateKey",type:"string",value:"",required:!1,label:"Metadata state key",hint:"Stores {source, index, count, imageUrl}."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Save each photo in the frame's assets folder. auto saves when the frame is set to save assets."},{name:"cacheAlbumSeconds",type:"integer",value:"3600",required:!1,label:"Album cache duration (seconds)",placeholder:"3600",hint:"How long to reuse the album's photo list. New photos show up within this time."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/googlePhotos"},"repo/apps/json/haSensor":{name:"Home Assistant Sensor",description:"Get the state of a Home Assistant entity",category:"data",version:"1.0.0",settings:["homeAssistant"],fields:[{markdown:"Find the [entity id here](http://homeassistant.local:8123/config/entities)"},{name:"entityId",type:"text",required:!0,label:"Entity ID",placeholder:"sensor.temperature"},{name:"debug",type:"boolean",value:"false",label:"Debug logging"}],output:[{name:"state",type:"json"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"60"},origin:"repo/apps/json/haSensor"},"repo/apps/image/immich":{name:"Immich",description:"Photos from a self-hosted Immich server: random, from one album or person, favorites, or today's memories.",category:"data",version:"1.0.0",settings:["immich"],fields:[{name:"mode",type:"select",value:"random",options:["random","album","favorites","memories"],label:"Mode",hint:"random picks from the whole library."},{name:"albumId",type:"string",value:"",label:"Album ID",hint:"The UUID in the album's URL.",placeholder:"e.g. 7f2d3c8a-1b2c-4d5e-8f90-a1b2c3d4e5f6"},{name:"personId",type:"string",value:"",label:"Person ID",hint:"Optional: only this person's photos (the UUID in their URL).",placeholder:"e.g. 9c8b7a6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d"},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",hint:"Stores {source, id, originalFileName, camera EXIF fields, people} under this key."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the photo to the frame's assets folder. auto follows the frame's setting. ESP32 frames never save."},{name:"previewSize",type:"select",value:"preview",options:["preview","fullsize"],label:"Image size",hint:"preview is resized by Immich and much lighter on memory; fullsize downloads the original."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/immich"},"repo/apps/image/jsImage":{name:"New image data app (JS)",category:"data",description:"JavaScript data app template that returns an image object.",fields:[{name:"width",label:"Width",type:"integer",value:320},{name:"height",label:"Height",type:"integer",value:180},{name:"color",label:"Fill Color",type:"color",value:"#dde7f0"},{name:"opacity",label:"Opacity",type:"float",value:1}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/jsImage"},"repo/apps/logic/jsLogic":{name:"New logic app (JS)",category:"logic",description:"JavaScript logic app template for side effects and scene state updates.",fields:[{name:"stateKey",label:"State key",type:"string",value:"jsLogicResult"}],origin:"repo/apps/logic/jsLogic"},"repo/apps/text/jsSvg":{name:"New SVG data app (JS)",category:"data",description:"JavaScript data app template that returns SVG markup.",fields:[{name:"label",label:"Label",type:"string",value:"QuickJS"},{name:"background",label:"Background",type:"color",value:"#ffffff"},{name:"foreground",label:"Foreground",type:"color",value:"#111111"}],output:[{name:"svg",type:"text",example:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 120">...</svg>'}],origin:"repo/apps/text/jsSvg"},"repo/apps/text/jsText":{name:"New text data app (JS)",category:"data",description:"JavaScript data app template that returns text.",fields:[{name:"prefix",label:"Prefix",type:"string",value:"FrameOS"},{name:"message",label:"Message",type:"text",value:"Hello from QuickJS"}],output:[{name:"text",type:"text",example:"FrameOS: Hello from QuickJS"}],origin:"repo/apps/text/jsText"},"repo/apps/image/openaiImage":{name:"OpenAI Image",description:"Random AI generated art from OpenAI's image models",category:"data",version:"1.0.0",settings:["openAI"],fields:[{name:"prompt",type:"text",rows:4,value:"",required:!0,label:"Prompt",placeholder:"e.g. pumpkin pyjama party, digital art"},{name:"model",type:"select",options:["gpt-image-2","gpt-image-1.5","gpt-image-1","dall-e-3","dall-e-2"],value:"gpt-image-2",required:!0,label:"Model"},{name:"size",type:"select",options:["best for orientation","1024x640","640x1024","1024x1024","1536x1024","1024x1536"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"gpt-image-2"}]},{name:"size",type:"select",options:["best for orientation","1024x1024","1536x1024","1024x1536"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"in",value:["gpt-image-1","gpt-image-1.5"]}]},{name:"size",type:"select",options:["best for orientation","1024x1024","1792x1024","1024x1792"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"size",type:"select",options:["best for orientation","1024x1024","512x512","256x256"],value:"best for orientation",label:"Size",showIf:[{field:"model",operator:"eq",value:"dall-e-2"}]},{name:"style",type:"select",options:["vivid","natural",""],value:"vivid",label:"Style",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"quality",type:"select",options:["standard","hd",""],value:"standard",label:"Quality",showIf:[{field:"model",operator:"eq",value:"dall-e-3"}]},{name:"quality",type:"select",options:["auto","low","medium","high",""],value:"auto",label:"Quality",showIf:[{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]},{name:"outputFormat",type:"select",options:["auto","png","jpeg","webp"],value:"auto",label:"Output format",showIf:[{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]},{name:"outputCompression",type:"integer",value:0,label:"Output compression",hint:"JPEG/WebP compression, 0-100. 0 uses the default.",showIf:[{and:[{field:"outputFormat",operator:"ne",value:"png"},{field:"model",operator:"in",value:["gpt-image-2","gpt-image-1","gpt-image-1.5"]}]}]},{name:"metadataStateKey",type:"string",value:"",required:!1,label:"Metadata state key",hint:"State key that receives {prompt, generatedPrompt, model, size}."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Keep each image in the frame's assets folder. auto follows the frame's save assets setting."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"3600"},origin:"repo/apps/image/openaiImage"},"repo/apps/text/openaiText":{name:"OpenAI Text",description:"Text response from ChatGPT and friends",category:"data",version:"1.0.0",settings:["openAI"],fields:[{name:"system",type:"text",rows:6,value:"You're a smart e-ink frame running FrameOS. Reply with plain text only. Space is very limited.",required:!0,label:"System Prompt"},{name:"user",type:"text",rows:6,value:"",required:!0,label:"User Prompt",placeholder:"Write your prompt here. Keep it short and clear."},{name:"model",type:"string",value:"gpt-6.1-terra",required:!0,label:"Model"}],output:[{name:"reply",type:"string"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"600"},origin:"repo/apps/text/openaiText"},"repo/apps/image/photoAlbum":{name:"Photo album",description:"Play an album from FrameOS Photos through its share link, one photo per render, or show one photo of it.",category:"data",version:"1.0.0",fields:[{name:"album",type:"string",value:"",required:!0,label:"Album link",hint:"Make one with Install photo scenes on the Photos page.",placeholder:"https://example.com/api/photos/shared/pk_..."},{name:"photo",type:"string",value:"",required:!1,label:"One photo",hint:"The path of one photo inside the album, to show it alone. Leave empty to play the album."},{name:"order",type:"select",value:"random",options:["random","sequential","newest","oldest"],required:!1,label:"Order",hint:"random shows every photo once before any repeats. sequential goes by folder and file name, newest and oldest by date."},{name:"landscape",type:"boolean",value:!0,required:!1,label:"Landscape photos",hint:"Play photos that are wider than tall."},{name:"portrait",type:"boolean",value:!0,required:!1,label:"Portrait photos",hint:"Play photos that are taller than wide."},{name:"square",type:"boolean",value:!0,required:!1,label:"Square photos",hint:"Play photos that are exactly as wide as tall."},{name:"counterStateKey",type:"string",value:"photoIndex",required:!1,label:"State field for the position",hint:"The scene needs an integer state field with this name, saved to disk, so the album keeps its place after a restart or a deep sleep. Leave empty to pick a random photo each time."}],output:[{name:"image",type:"image"}],cache:{enabled:!1},origin:"repo/apps/image/photoAlbum"},"repo/apps/image/unsplash":{name:"Unsplash",description:"Random Unsplash photo",category:"data",version:"1.0.0",settings:["unsplash"],fields:[{name:"search",type:"string",value:"nature",label:"Search",placeholder:"e.g. nature, birds"},{name:"orientation",type:"select",value:"auto",options:["auto","any","landscape","portrait","squarish"],label:"Orientation"},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",hint:"Stores {search, title, description, location, author, links, ...} under this key."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the image to the frame's assets folder. auto follows the frame's save-assets setting."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"900"},origin:"repo/apps/image/unsplash"},"repo/apps/json/weather":{name:"Weather (Open-Meteo)",description:"Current, hourly and daily forecasts from Open-Meteo for a location.",category:"data",version:"1.1.0",fields:[{name:"location",type:"string",value:"",required:!0,label:"Location",placeholder:"City, state, or country"},{name:"date",type:"date",value:"",label:"Date",placeholder:"2024-01-30"},{name:"forecastDays",type:"integer",value:"1",label:"Forecast days (1-16)",showIf:[{field:"date",operator:"empty"}]},{name:"temperatureUnit",type:"select",options:["celsius","fahrenheit"],value:"celsius",required:!0,label:"Temperature unit"},{name:"windSpeedUnit",type:"select",options:["kmh","ms","mph","kn"],value:"kmh",required:!0,label:"Wind speed unit"},{name:"precipitationUnit",type:"select",options:["mm","inch"],value:"mm",required:!0,label:"Precipitation unit"}],output:[{name:"weather",type:"json",example:'{"provider":"open-meteo","forecastModes":["current","hourly","daily"],"date":"2026-01-18","location":{"name":"Brussels","latitude":50.85045,"longitude":4.34878,"timezone":"Europe/Brussels","country":"Belgium","countryCode":"BE","admin1":"Brussels Capital","admin2":"Bruxelles-Capitale"},"forecast":{"latitude":50.854,"longitude":4.35,"generationtime_ms":0.37,"utc_offset_seconds":3600,"timezone":"Europe/Brussels","timezone_abbreviation":"GMT+1","elevation":27,"current_weather_units":{"time":"iso8601","interval":"seconds","temperature":"\xB0C","windspeed":"km/h","winddirection":"\xB0","is_day":"","weathercode":"wmo code"},"current_weather":{"time":"2026-01-18T22:15","interval":900,"temperature":5.7,"windspeed":5.4,"winddirection":132,"is_day":0,"weathercode":0},"hourly_units":{"time":"iso8601","temperature_2m":"\xB0C","apparent_temperature":"\xB0C","precipitation":"mm","weathercode":"wmo code","windspeed_10m":"km/h","winddirection_10m":"\xB0"},"hourly":{"time":["2026-01-18T00:00"],"temperature_2m":[9.2],"apparent_temperature":[7.5],"precipitation":[0],"weathercode":[0],"windspeed_10m":[4],"winddirection_10m":[166]},"daily_units":{"time":"iso8601","temperature_2m_max":"\xB0C","temperature_2m_min":"\xB0C","precipitation_sum":"mm","weathercode":"wmo code","sunrise":"iso8601","sunset":"iso8601","windspeed_10m_max":"km/h"},"daily":{"time":["2026-01-18"],"temperature_2m_max":[11.3],"temperature_2m_min":[5.5],"precipitation_sum":[0],"weathercode":[3],"sunrise":["2026-01-18T08:35"],"sunset":["2026-01-18T17:10"],"windspeed_10m_max":[10.4]}}}'}],origin:"repo/apps/json/weather"},"repo/apps/image/weatherIcon":{name:"Weather icon (JS)",category:"data",description:"One weather icon, or a sheet of the whole set. Wire icons from the Weather icon set app.",version:"1.0.0",fields:[{name:"icons",label:"Icon set (from Weather icon set app)",type:"json",required:!0},{name:"weathercode",label:"WMO weather code",type:"integer",value:"0"},{name:"isDay",label:"Day time",type:"boolean",value:"true"},{name:"size",label:"Size in pixels (0 = fit frame)",type:"integer",value:"0"},{name:"background",label:"Background color",type:"color",value:"#00000000"},{name:"sheet",label:"Render the full set as a sheet",type:"boolean",value:"false"},{name:"columns",label:"Sheet columns",type:"integer",value:"4"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/weatherIcon"},"repo/apps/json/weatherIcons":{name:"Weather icon set (JS)",category:"data",description:"SVG weather icons for WMO weather codes, with code-to-icon and code-to-label maps.",version:"1.0.0",fields:[{name:"palette",label:"Palette",type:"select",options:["auto","vivid","mono"],value:"auto",hint:"auto is mono with low contrast, vivid otherwise."},{name:"lowContrast",label:"Low contrast",type:"boolean",value:"false"},{name:"lineWidth",label:"Line width",type:"float",value:"3"},{name:"ink",label:"Ink color (mono)",type:"color",value:"#222222"},{name:"paper",label:"Paper color (mono)",type:"color",value:"#ffffff"}],output:[{name:"icons",type:"json",example:'{"viewBox": 64, "palette": "vivid", "map": {"61": "rain"}, "labels": {"61": "Light rain"}, "icons": {"rain": "<g>...</g>"}}'}],origin:"repo/apps/json/weatherIcons"},"repo/apps/image/weatherPanel":{name:"Weather panel (JS)",category:"data",description:"Current conditions, an hourly chart or a daily list from Open-Meteo data. Wire weather from the Weather app and icons from the Weather icon set app.",version:"1.0.0",fields:[{name:"weather",label:"Weather data (from Weather app)",type:"json",required:!0},{name:"icons",label:"Icon set (from Weather icon set app)",type:"json",required:!0},{name:"mode",label:"Mode",type:"select",options:["current","hourly","daily"],value:"current"},{name:"hours",label:"Hours to show",type:"integer",value:"10",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"days",label:"Days to show",type:"integer",value:"7",showIf:[{field:"mode",operator:"eq",value:"daily"}]},{name:"showValues",label:"Show icons and temperatures (hourly)",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"showGraph",label:"Show graph (hourly)",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"hourly"}]},{name:"lowContrast",label:"Low contrast",type:"boolean",value:"false"},{name:"showLocation",label:"Show location header",type:"boolean",value:"true"},{name:"showDetails",label:"Show detail row",type:"boolean",value:"true",showIf:[{field:"mode",operator:"eq",value:"current"}]},{name:"width",label:"Width (0 = fit canvas)",type:"integer",value:"0"},{name:"height",label:"Height (0 = fit canvas)",type:"integer",value:"0"}],output:[{name:"image",type:"image"}],origin:"repo/apps/image/weatherPanel"},"repo/apps/image/wikicommons":{name:"Wikimedia Commons",description:"Images from Wikimedia Commons",category:"data",version:"1.0.0",fields:[{name:"mode",type:"select",value:"pictureOfTheDay",options:["pictureOfTheDay","onThisDay","randomPictureOfTheDay","randomImage"],label:"Mode",hint:"Today's Picture of the Day, this date's in an earlier year, a random earlier one, or a random Commons image."},{name:"saveAssets",type:"select",value:"auto",options:["auto","always","never"],label:"Save asset",hint:"Saves the image to the frame's assets folder. auto follows the frame's save-assets setting."},{name:"metadataStateKey",type:"string",value:"",label:"Metadata state key",placeholder:"e.g. wikimediaMetadata",hint:"Stores {title, description, author, license, pageUrl, imageUrl, mime} under this key."}],output:[{name:"image",type:"image"}],cache:{enabled:!0,inputEnabled:!0,durationEnabled:!0,duration:"3600"},origin:"repo/apps/image/wikicommons"}},XF={"repo/apps/json/beRecycle":{"app.test.ts":`import { get } from './app'
|
|
6798
6798
|
|
|
6799
6799
|
const config = {
|
|
6800
6800
|
postalCode: 2000,
|
|
@@ -8981,7 +8981,7 @@ export function get(app) {
|
|
|
8981
8981
|
"label": "User Prompt",
|
|
8982
8982
|
"placeholder": "Write your prompt here. Keep it short and clear."
|
|
8983
8983
|
},
|
|
8984
|
-
{ "name": "model", "type": "string", "value": "gpt-
|
|
8984
|
+
{ "name": "model", "type": "string", "value": "gpt-6.1-terra", "required": true, "label": "Model" }
|
|
8985
8985
|
],
|
|
8986
8986
|
"output": [{ "name": "reply", "type": "string" }],
|
|
8987
8987
|
"cache": { "enabled": true, "inputEnabled": true, "durationEnabled": true, "duration": "600" }
|
|
@@ -10927,7 +10927,7 @@ export function get(app, context) {
|
|
|
10927
10927
|
"output": [{ "name": "image", "type": "image" }],
|
|
10928
10928
|
"cache": { "enabled": true, "inputEnabled": true, "durationEnabled": true, "duration": "3600" }
|
|
10929
10929
|
}
|
|
10930
|
-
`}};var g6={code:"Code",render:"Render",logic:"Logic",data:"Data"};function J1e(e){return{...Y1e,...e,...h6}}var Mi=(0,VC.kea)([(0,VC.path)(["src","models","appsModel"]),(0,Q1e.loaders)(({values:e})=>({apps:[{},{loadApps:async()=>{try{let t=await ge("/api/apps");if(!t.ok)throw new Error("Failed to fetch apps");let n=await t.json();return J1e(n.apps)}catch(t){return Qh(t),J1e(e.apps)}}}]})),(0,VC.afterMount)(({actions:e})=>{e.loadApps()})]);var WC=["app.ts","app.js","app.tsx","app.jsx"],b6=Object.keys(h6);function JF(e){return!!e&&e.startsWith("repo/")}function nf(e){return!!e&&b6.includes(e)}var ott=["jsImage","jsLogic","jsSvg","jsText"].map(e=>Z1e(e)??e);function Z1e(e){return b6.find(t=>t.slice(t.lastIndexOf("/")+1)===e)}function y6(e,t){return ott.includes(e)?"code":(t.category||"other").toLowerCase()}function Iw(e){return!!e&&WC.some(t=>!!e[t])}function QF(e){return!!(e?.["app.nim"]||e?.["config.nim"])}function tf(e){return QF(e)&&!Iw(e)}function v6(e){return Object.values(e.apps??{}).some(t=>tf(t.sources))?!0:(e.nodes??[]).some(t=>{if(t.type==="app"){let n=t.data;return tf(n?.sources)||tf(e.apps?.[n?.keyword??""]?.sources)}if(t.type==="code"){let n=t.data;return!!n?.code?.trim()&&!n?.codeJS?.trim()}return t.type==="source"})}function e_e(e){if(!e?.["config.json"])return{};try{let t=JSON.parse(e["config.json"]);return typeof t=="object"&&t?t:{}}catch{return{}}}function t_e(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function Tb(e){return e?.origin??e?.source}function itt(e){return!!e&&Object.keys(e).length>0}function n_e(e){if(!e)return;if(XF[e])return e;if(!JF(e))return;let t=e.split("/").filter(Boolean),n=t[t.length-1],r=n?Z1e(n):void 0;return r&&XF[r]?r:void 0}function att(e){let t=n_e(e),n=t?XF[t]:void 0;return n?{...n}:void 0}function ZF(e,t){let{source:n,...r}=e,o=Tb(e)||t,i=n_e(o),a=itt(e.sources)?e.sources:att(o)||e.sources||{};return t_e({...r,origin:i||o,sources:a})}function Xl(e){return Object.fromEntries(Object.entries(e??{}).map(([t,n])=>[t,ZF(n,t)]))}function Ad(e){let t=e_e(e.sources),n=Tb(e);return{name:e.name||t.name||n||"Scene app",category:e.category||t.category,description:e.description||t.description,version:e.version||t.version,settings:e.settings||t.settings,apt:e.apt||t.apt,fields:e.fields||t.fields,output:e.output||t.output,cache:e.cache||t.cache,origin:n}}function mZ(e){return Object.fromEntries(Object.entries(Xl(e?.apps)).map(([t,n])=>[t,Ad(n)]))}function w6(e,t){return{...e,...mZ(t)}}function fZ(e){let t=Tb(e);if(!t)return null;let n=t.split("/");return n[0]==="repo"&&n[1]==="apps"&&n[2]?n[2]:n[0]==="repo"&&n[1]?n[1]:n[0]==="scene"?"scene":n[0]||null}function qC(e,t){let n=fZ(e);return`${t?`${t}: `:""}${e.name}${n?` [${n}]`:""}`}async function hZ(e){let t=XF[e]??X1e[e];if(t)return{...t};let n=await ge(`/api/apps/source?keyword=${encodeURIComponent(e)}`);return n.ok?await n.json():{}}function KC(e,t,n){let r=t.split("/").filter(Boolean),i=(r[r.length-1]||n?.name||"app").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/(^-|-$)/g,"")||"app";if(!e[i])return i;let a=2,s=`${i}-${a}`;for(;e[s];)a+=1,s=`${i}-${a}`;return s}function S6(e,t,n,r){let o=e_e(n),i=Tb(r)||Tb(t)||(JF(e)?e:void 0),{source:a,...s}=r??{};return t_e({...s,origin:i,name:o.name||r?.name||t?.name||e,category:o.category||r?.category||t?.category,description:o.description||r?.description||t?.description,version:o.version||r?.version||t?.version,settings:o.settings||r?.settings||t?.settings,apt:o.apt||r?.apt||t?.apt,fields:o.fields||r?.fields||t?.fields,output:o.output||r?.output||t?.output,cache:o.cache||r?.cache||t?.cache,sources:n})}async function x6(e,t,n){if(!JF(t))return{sceneApps:e,keyword:t,app:n??null};let r=await hZ(t),o=KC(e,t,n),i=S6(o,n,r,{origin:Tb(n)||t});return{sceneApps:{...e,[o]:i},keyword:o,app:Ad(i)}}function _6(e,t,n,r=!1,o){let i=Xl(n),a=r&&Object.values(i).some(s=>QF(s.sources));return e?.map(s=>s.id===t?{...s,apps:i,...o?{nodes:o}:{},settings:a&&s.settings?.execution!=="compiled"?{...s.settings,execution:"compiled"}:s.settings}:s)}var rg={openAI:{title:tg("openAI"),tagLabel:"OpenAI API key missing",description:"The OpenAI API key is used within OpenAI apps on frames.",fields:[{label:"API key for frames",secret:!0,path:["openAI","apiKey"]}]},unsplash:{title:tg("unsplash"),tagLabel:"Unsplash access key missing",fields:[{label:"Access key",secret:!0,path:["unsplash","accessKey"]}]},homeAssistant:{title:tg("homeAssistant"),tagLabel:"Home Assistant access token missing",fields:[{label:"Home assistant URL",path:["homeAssistant","url"]},{label:"Access token (Profile \u2192 Long-Lived Access Tokens)",secret:!0,path:["homeAssistant","accessToken"]}]},immich:{title:tg("immich"),tagLabel:"Immich API key missing",fields:[{label:"Server URL",path:["immich","url"]},{label:"API key (Account Settings \u2192 API Keys)",secret:!0,path:["immich","apiKey"]}]},github:{title:tg("github"),tagLabel:"GitHub personal access token missing",freeLimitedUsage:!0,fields:[{label:"API key",secret:!0,path:["github","api_key"]}]},frameOS:{title:tg("frameOS"),tagLabel:"FrameOS Gallery API key missing",fields:[{label:"API key",secret:!0,path:["frameOS","apiKey"]}]}};function stt(e,t){if(t){if(e[t])return e[t];if(!t.includes("/")){let n=Object.keys(e).find(r=>r.endsWith(`/${t}`));if(n)return e[n]}}}function Fd(e,t){let n=new Set;for(let r of e??[])for(let o of r.nodes??[])if(o.type==="app"){let i=o.data?.keyword,a=i?r.apps?.[i]:void 0,s=a?Ad(a):stt(t,i);for(let l of s?.settings??[])rg[l]&&n.add(l)}return Array.from(n)}function ltt(e){return"blob"in e?null:"templateId"in e?{template_id:e.templateId}:"url"in e?{url:e.url}:{source_scene_id:e.sourceSceneId,...e.sourceFrameId!==void 0?{source_frame_id:e.sourceFrameId}:{}}}var C6=class extends Error{status;constructor(t,n){super(t),this.name="SceneImageError",this.status=n}};async function ctt(e){try{let t=await e.json();if(t?.detail)return String(t.detail)}catch{}return`unexpected status ${e.status}`}async function dtt(e,t,n){let r=ltt(n),o=r?await ge(`/api/frames/${e}/scene_images/${t}/copy`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}):await ge(`/api/frames/${e}/scene_images/${t}`,{method:"POST",body:n.blob});if(!o.ok)throw new C6(await ctt(o),o.status);Cw.actions.updateEntityImage(`frames/${e}`,`scene_images/${t}`)}function gZ(e,t,n,r){let o=r instanceof Error?r.message:String(r);console.error(`Failed to copy the scene ${n}`,r),Ze.actions.startTask({frameId:e,kind:"sceneImage",title:`Copying the scene ${n}`,detail:null,sceneId:t}),Ze.actions.taskFailed({frameId:e,kind:"sceneImage",sceneId:t,detail:`${o}. The scene tile stays blank until the frame renders it.`})}async function $C(e,t,n,r={}){let o=r.label??"preview image";if(!(!t.length||!n)&&!(ze()&&!("blob"in n)))try{await Promise.all(t.map(i=>dtt(e,i,n)))}catch(i){if(r.ignoreMissingSource&&i instanceof C6&&i.status===404)return;gZ(e,t[0],o,i)}}var jZ=N(kke(),1),Eke=90,wot=90,Sot=120,xot=64,_ot=56,Ike=50,Hke=70,Cot=44,rR=40,OZ=40,BZ=24,kot=16,Tke=0,Ake=180,zZ=120,Eot=rR,Uke=32,Iot=24;var Fke=16,Tot=35,Aot=64,Fot=340,Rot=140,Dot=8,Not=49,VZ=16,Rke=VZ+12,Lot=50,Mot=38,Pot=30,Oot=39,Bot=67,zot=48,Hot=32,Dke=200,WZ=18,Uot=260,jot=180,Nke=200,jke=340,Vot=2200,Wot=6,qot=119,Vke=260,HZ=100,Kot=72,$ot=8,Got=120,Yot=91,F6=7,Xot=22,Wke=40,Fw=4,Jot=Hke,Qot=60,Zot=28,qZ=1e3;function Io(e){return{width:e.width??Uot,height:e.height??jot}}function R6(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}return null}function eit(e){let t=e.data??{},n=t.codeArgs??[],r=t.codeOutputs??[],o=(t.codeJS??t.code??"").trim(),i=o?o.split(/\r?\n/):[""],a=i.reduce((f,h)=>Math.max(f,h.length),0),s=[...n,...r].reduce((f,h)=>Math.max(f,h.name.length*F6+HZ),Nke),l=n.reduce((f,h)=>f+h.name.length*F6+Kot+$ot,Got),c=n.length>Wot?Vot:jke,d=Math.min(c,Math.max(Nke,s,l,a*F6+HZ)),u=Math.max(1,Math.floor((d-HZ/2)/F6)),p=i.reduce((f,h)=>f+Math.max(1,Math.ceil(h.length/u)),0),m=Math.min(Vke,Math.max(qot,Yot+p*Xot));return{width:Math.round(d),height:Math.round(m)}}function tit(e){if(e.type!=="code")return e;let t=eit(e),n=R6(e.width)??R6(e.style?.width),r=R6(e.height)??R6(e.style?.height),o=n!==null&&n>jke?Math.max(n,t.width):t.width,i=r!==null&&r>Vke?Math.max(r,t.height):t.height,a={...e.style??{},width:o,height:i};return{...e,width:o,height:i,style:a}}function N6(e){return e?e.startsWith("fieldInput/")?e.slice(11):e.startsWith("codeField/")?e.slice(10):e.startsWith("field/")?e.slice(6):null:null}function qke(e){return N6(e)?.replace(/\[.*$/,"")??null}function Lke(e){let t=Kke(e);return t.length===0?null:t.reduce((n,r,o)=>n+r/qZ**o,0)}function Kke(e){let t=N6(e);return t?Array.from(t.matchAll(/\[(\d+)\]/g)).map(n=>Number(n[1])):[]}function nit(e){return e.sourceHandle==="next"||e.targetHandle==="prev"||e.type==="appNodeEdge"}function ig(e){if(e.type!=="app")return!1;let t=e.data?.keyword;return typeof t=="string"&&t.startsWith("data/")}function Mke(e,t){if(e.type!=="app")return!1;if(t>1)return!0;let n=e.data?.keyword;return typeof n=="string"&&(n.startsWith("data/")||n.startsWith("logic/"))}function rit(e){return e.type==="event"||e.type==="dispatch"||e.type==="source"}function UZ(e){return e.position.x+Io(e).width/2}function GC(e){let t=Io(e);return{left:e.position.x,right:e.position.x+t.width,top:e.position.y,bottom:e.position.y+t.height}}function YC(e,t){return{left:Math.min(e.left,t.left),right:Math.max(e.right,t.right),top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom)}}function Pke(e,t){return{left:e.left+t.x,right:e.right+t.x,top:e.top+t.y,bottom:e.bottom+t.y}}function Oke(e,t){if(e.type==="state")return ig(t)?Uke:Dot;if(ig(e)&&ig(t))return Not;let n=Io(t);return e.type==="code"&&n.width<=Fot?Aot:Tot}function D6(e,t){let n=Io(t);return e.type==="state"?ig(t)?WZ:n.height>=Dke?Hot:zot:ig(e)&&ig(t)?Mot:e.type==="code"?n.height<=Rot?Bot:n.height>=Dke?Pot:Oot:Lot}function Rd(e,t,n){let r=N6(t);if(!r)return Number.MAX_SAFE_INTEGER;let o=n[e]??[],i=qke(t),a=Lke(t)??0,s=o.indexOf(r);if(s>=0)return s*qZ+a;let l=i?o.indexOf(i):-1;if(l>=0)return l*qZ+a;let c=Lke(t);return c!==null?c:Number.MAX_SAFE_INTEGER}function oit(e,t,n){let r=N6(t);if(!r)return null;let o=n[e.id]??[],i=qke(t),a=o.indexOf(r),s=a>=0?a:i?o.indexOf(i):-1;if(s<0)return null;let{width:l}=Io(e),c=t?.startsWith("codeField/")?Wke:Cot,d=Math.max(l-c*2,1),u=Math.max(o.length-1,1);return c+d*s/u}function $ke(e,t,n){let{width:r}=Io(e);return t==="prev"?0:t==="next"?r:e.type==="code"&&t==="fieldOutput"?Wke:oit(e,t,n)??r/2}function Bke(e,t,n){return e.position.x+$ke(e,t,n)}function zke(e,t){let n=[...e].sort((r,o)=>r.desiredCenterX-o.desiredCenterX||r.order-o.order||(r.node.type??"").localeCompare(o.node.type??"")||r.node.id.localeCompare(o.node.id)).map(r=>{let{width:o}=Io(r.node);return{...r,width:o,left:r.desiredCenterX-o/2}});for(let r=1;r<n.length;r+=1){let o=n[r-1],i=n[r];i.left=Math.max(i.left,o.left+o.width+t)}if(n.length>1){let r=Math.min(...n.map(l=>l.desiredCenterX-l.width/2)),o=Math.max(...n.map(l=>l.desiredCenterX+l.width/2)),i=Math.min(...n.map(l=>l.left)),a=Math.max(...n.map(l=>l.left+l.width)),s=(r+o)/2-(i+a)/2;n.forEach(l=>{l.left+=s})}return new Map(n.map(r=>[r.node.id,r.left]))}function iit(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}function ait(e,t){let n=e.reduce((l,c)=>(l[c.id]=c,l),{}),r=new Set(e.map(l=>l.id)),o=new WeakMap;t.forEach((l,c)=>{o.set(l,c)});let i=t.reduce((l,c)=>{let d=n[c.source],u=n[c.target],p=c.targetHandle?.startsWith("fieldInput/")||c.targetHandle?.startsWith("codeField/");return d?.type!=="state"||!u||u.type!=="app"&&u.type!=="code"||c.sourceHandle!=="fieldOutput"||!p||(l[c.source]=[...l[c.source]??[],c]),l},{}),a=[],s=new WeakMap;return Object.entries(i).forEach(([l,c])=>{let d=n[l];if(!d)return;let u=c.reduce((m,f)=>(m[f.target]=[...m[f.target]??[],f],m),{}),p=Object.entries(u).sort(([m,f],[h,g])=>(o.get(f[0])??0)-(o.get(g[0])??0)||m.localeCompare(h));p.length<=1||p.slice(1).forEach(([m,f])=>{let h=iit(`${l}__for__${m}`,r),{id:g,selected:b,dragging:y,positionAbsolute:w,...v}=d;a.push({...v,id:h,position:{...d.position},selected:!1,dragging:!1}),f.forEach(S=>{s.set(S,h)})})}),a.length===0?{nodes:e,edges:t}:{nodes:[...e,...a],edges:t.map(l=>{let c=s.get(l);return c?{...l,source:c}:l})}}function L6(e,t,n={}){let r=ait(e,t);return{nodes:sit(r.nodes,r.edges,n),edges:r.edges}}function sit(e,t,n={}){if(!e.length)return e;let r=n.fieldOrderByNodeId??{},o=e.map(tit),i=new Set;t.forEach($=>{$.sourceHandle==="next"&&i.add($.source),$.targetHandle==="prev"&&i.add($.target)});let a=o.filter($=>rit($)||$.type==="app"&&!ig($)&&i.has($.id)),s=o.reduce(($,J)=>($[J.id]=J,$),{}),l=new Set(a.map($=>$.id)),c=t.filter($=>l.has($.source)&&l.has($.target)&&nit($)),d=t.reduce(($,J)=>(!J.source||!J.target||($[J.source]=[...$[J.source]??[],J]),$),{}),u=t.reduce(($,J)=>(!J.source||!J.target||($[J.target]=[...$[J.target]??[],J]),$),{}),p=new WeakMap;t.forEach(($,J)=>{p.set($,J)});let m=new Map(a.map(($,J)=>[$.id,J])),f=[...c].sort(($,J)=>(m.get($.source)??0)-(m.get(J.source)??0)||Rd($.source,$.sourceHandle,r)-Rd(J.source,J.sourceHandle,r)||Rd($.target,$.targetHandle,r)-Rd(J.target,J.targetHandle,r)||$.target.localeCompare(J.target));if(!a.length)return e;let h=new Map(a.map($=>[$.id,$.id])),g=$=>{let J=h.get($);if(!J||J===$)return $;let oe=g(J);return h.set($,oe),oe},b=($,J)=>{let oe=g($),me=g(J);oe!==me&&h.set(me,oe)};f.forEach($=>{b($.source,$.target)});let y=$=>l.has($)?g($):null,w=new jZ.default.graphlib.Graph({multigraph:!0});w.setGraph({rankdir:"LR",nodesep:Eke,ranksep:wot,edgesep:25}),w.setDefaultEdgeLabel(()=>({})),a.forEach($=>{let{width:J,height:oe}=Io($);w.setNode($.id,{width:J,height:oe,rank:$.type==="event"||$.type==="source"?"min":void 0})}),f.forEach($=>{!$.source||!$.target||$.source===$.target||w.setEdge($.source,$.target)}),jZ.default.layout(w);let v=new Map;a.forEach($=>{let J=w.node($.id);if(!J)return;let{width:oe,height:me}=Io($);v.set($.id,{x:J.x-oe/2,y:J.y-me/2})});let S=($,J,oe=new Set)=>{if(oe.has($))return;oe.add($);let me=v.get($);me&&v.set($,{x:me.x+J.x,y:me.y+J.y}),f.filter(Ke=>Ke.source===$).forEach(Ke=>{S(Ke.target,J,oe)})},x=f.reduce(($,J)=>(!J.sourceHandle?.startsWith("field/")||J.targetHandle!=="prev"||($[J.source]=[...$[J.source]??[],J]),$),{}),C=new Set(Object.values(x).flatMap($=>$.length>1?$.map(J=>J.target):[])),A=f.reduce(($,J)=>($[J.target]=[...$[J.target]??[],J],$),{}),T=new Map,k=($,J=new Set)=>{if(T.has($))return T.get($)??null;if(!l.has($))return T.set($,null),null;if(C.has($))return T.set($,$),$;if(J.has($))return null;J.add($);for(let oe of A[$]??[]){let me=k(oe.source,new Set(J));if(me)return T.set($,me),me}return T.set($,null),null},L=new Map,P=($,J=new Set)=>{let oe=L.get($);if(oe)return new Set(oe);let me=new Set;return J.has($)||(J.add($),l.has($)&&me.add($),f.filter(Ke=>Ke.source===$).forEach(Ke=>{P(Ke.target,new Set(J)).forEach(Le=>me.add(Le))}),L.set($,new Set(me))),me},j=new Map,F=($,J=new Set)=>{let oe=j.get($);if(oe)return new Set(oe);let me=new Set;return J.has($)||(J.add($),l.has($)?me.add($):(d[$]??[]).forEach(Le=>{F(Le.target,new Set(J)).forEach(mt=>me.add(mt))}),j.set($,new Set(me))),me},W=($,J)=>{if(!J)return!0;let oe=F($);return oe.size===0||[...oe].every(me=>J.has(me))},H=$=>F($).size>1,G=($,J)=>Array.from((u[$]??[]).filter(oe=>oe.source&&oe.target&&!l.has(oe.source)&&W(oe.source,J)&&(oe.targetHandle?.startsWith("fieldInput/")||oe.targetHandle?.startsWith("codeField/"))).sort((oe,me)=>Rd($,oe.targetHandle,r)-Rd($,me.targetHandle,r)||(p.get(oe)??0)-(p.get(me)??0)||oe.source.localeCompare(me.source)).reduce((oe,me)=>(oe.has(me.source)||oe.set(me.source,me),oe),new Map).values()),ie=($,J=new Set,oe)=>{let me=s[$];if(!me)return{left:0,right:0,top:0,bottom:0};let Ke=Io(me),Le={left:0,right:Ke.width,top:0,bottom:Ke.height};if(J.has($))return Le;J.add($);let mt=0,_t=null;return G($,oe).forEach((nn,jt)=>{let xn=s[nn.source];if(!xn)return;let Hr=Io(xn),_r=D6(xn,me),ki=Oke(xn,me),dl=mt-(jt===0?_r:0)-Hr.height,qr=Math.min(-ki-VZ*jt,_t?_t.left-Rke:Number.POSITIVE_INFINITY),ei=Pke(ie(xn.id,new Set(J),oe),{x:qr,y:dl});Le=YC(Le,ei),_t=_t?YC(_t,ei):ei,mt=ei.top-WZ}),Le},z=($,J,oe=new Set)=>{let me=v.get($);if(!me)return ie($,new Set,J);let Ke=ie($,new Set,J);return oe.has($)||(oe.add($),f.filter(Le=>Le.source===$).forEach(Le=>{let mt=v.get(Le.target);mt&&(Ke=YC(Ke,Pke(z(Le.target,J,new Set(oe)),{x:mt.x-me.x,y:mt.y-me.y})))})),Ke};Object.entries(x).forEach(([$,J])=>{if(J.length<2)return;let oe=a.find(Ht=>Ht.id===$),me=v.get($);if(!oe||!me)return;let Ke=new Set,Le=J.map((Ht,Ra)=>({edge:Ht,index:Ra,pathIndexes:Kke(Ht.sourceHandle)})),mt=Le.every(({pathIndexes:Ht})=>Ht.length>=2),_t=mt?Array.from(new Set(Le.map(({pathIndexes:Ht})=>Ht[0]))).sort((Ht,Ra)=>Ht-Ra):[],nn=mt?Array.from(new Set(Le.map(({pathIndexes:Ht})=>Ht[1]))).sort((Ht,Ra)=>Ht-Ra):[],jt=mt&&Le.length>3&&(_t.length===1||nn.length===1),xn=mt&&!jt,Hr=Math.max(1,Math.ceil(Math.sqrt(Le.length))),_r=Le.map(({edge:Ht,index:Ra,pathIndexes:ul})=>{let Kd=s[Ht.target],WS=v.get(Ht.target);if(!Kd||!WS)return null;let Q2=xn?_t.indexOf(ul[0]):Math.floor(Ra/Hr),qS=xn?nn.indexOf(ul[1]):Ra%Hr,Bf=z(Ht.target,P(Ht.target));return{edge:Ht,targetPosition:WS,row:Q2,column:qS,footprint:Bf,footprintWidth:Bf.right-Bf.left,footprintHeight:Bf.bottom-Bf.top}}).filter(Ht=>Ht!==null&&Ht.row>=0&&Ht.column>=0);if(_r.length===0)return;let ki=Math.max(..._r.map(Ht=>Ht.column))+1,dl=Math.max(..._r.map(Ht=>Ht.row))+1,qr=Array.from({length:ki},()=>0),ei=Array.from({length:dl},()=>0);_r.forEach(Ht=>{qr[Ht.column]=Math.max(qr[Ht.column],Ht.footprintWidth),ei[Ht.row]=Math.max(ei[Ht.row],Ht.footprintHeight)});let sa=xn?Sot:xot,qd=xn?Eke:_ot,Ny=qr.reduce((Ht,Ra,ul)=>{let Kd=ul===0?0:Ht[ul-1]+qr[ul-1]+sa;return Ht.push(Kd),Ht},[]),Ly=ei.reduce((Ht,Ra,ul)=>{let Kd=ul===0?0:Ht[ul-1]+ei[ul-1]+qd;return Ht.push(Kd),Ht},[]),Zp=ei.reduce((Ht,Ra)=>Ht+Ra,0)+Math.max(0,dl-1)*qd,My=Io(oe),X2=me.x+My.width+sa,J2=me.y+My.height/2-Zp/2;_r.forEach(Ht=>{let Ra=X2+Ny[Ht.column]+(qr[Ht.column]-Ht.footprintWidth)/2,ul=J2+Ly[Ht.row]+(ei[Ht.row]-Ht.footprintHeight)/2,Kd={x:Ra-Ht.footprint.left,y:ul-Ht.footprint.top};S(Ht.edge.target,{x:Kd.x-Ht.targetPosition.x,y:Kd.y-Ht.targetPosition.y},Ke)})});let M=new Map,Q=($,J=new Set)=>{if(M.has($))return M.get($)??null;if(l.has($))return M.set($,$),$;if(J.has($))return null;J.add($);for(let oe of d[$]??[]){let me=Q(oe.target,J);if(me)return M.set($,me),me}for(let oe of u[$]??[]){let me=Q(oe.source,J);if(me)return M.set($,me),me}return M.set($,null),null},X=new Map,V=($,J,oe=new Set)=>{let me=`${$}:${J}`;if(X.has(me))return X.get(me)??0;if($===J)return X.set(me,0),0;if(oe.has($))return 0;oe.add($);let Ke=0;for(let Le of d[$]??[]){let mt=V(Le.target,J,oe);(mt>0||Le.target===J)&&(Ke=Math.max(Ke,mt+1))}return X.set(me,Ke),Ke},te=o.filter($=>!l.has($.id)).reduce(($,J)=>{let oe=Q(J.id);return oe&&($[oe]=[...$[oe]??[],J]),$},{}),le=o.map($=>{let J=v.get($.id);return J?{...$,position:{...J}}:$}).reduce(($,J)=>($[J.id]=J,$),{}),Pe=(()=>{let $=t.reduce((oe,me)=>{if(!me.source||!me.target||!me.targetHandle?.startsWith("fieldInput/"))return oe;let Ke=s[me.source],Le=s[me.target];return Ke?.type!=="state"||Le?.type!=="app"||(oe[me.target]=[...oe[me.target]??[],me]),oe},{}),J=new Map;return Object.entries($).forEach(([oe,me])=>{let Ke=s[oe],Le=new Set(me.map(mt=>mt.source));!Ke||!Mke(Ke,Le.size)||Le.forEach(mt=>{J.set(mt,oe)})}),J})(),Ie=new Map,De=($,J)=>{let oe=Ie.get(J);return oe?$===J?0:oe.get($)??1:$===J?0:1},nt=($,J,oe)=>{let me=[],Ke=(Le,mt,_t,nn)=>{let jt=le[mt]??s[mt];if(!jt)return;let xn=De(mt,J),Hr=xn===oe-1?0:xn<oe?1:2;if(Hr>1)return;let{width:_r}=Io($);me.push({centerX:Bke(jt,_t,r)-$ke($,nn,r)+_r/2,order:Rd(mt,_t,r),priority:Hr})};for(let Le of d[$.id]??[])Ke(Le,Le.target,Le.targetHandle,Le.sourceHandle);for(let Le of u[$.id]??[])Ke(Le,Le.source,Le.sourceHandle,Le.targetHandle);if(me.length===0){let Le=le[J]??s[J];return{centerX:UZ(Le||$),order:Number.MAX_SAFE_INTEGER}}return me.sort((Le,mt)=>Le.priority-mt.priority||Le.order-mt.order||Le.centerX-mt.centerX),{centerX:me[0].centerX,order:me[0].order}};Object.entries(te).forEach(([$,J])=>{let oe=le[$]??s[$];if(!oe)return;let me=new Map;J.forEach(mt=>{me.set(mt.id,Math.max(1,V(mt.id,$)))}),Ie.set($,me);let Ke=Math.max(...me.values(),1),Le=oe.position.y-Ike;for(let mt=1;mt<=Ke;mt+=1){let _t=J.filter(_r=>me.get(_r.id)===mt&&!Pe.has(_r.id));if(_t.length===0)continue;let nn=Math.max(..._t.map(_r=>Io(_r).height)),jt=Le-nn,xn=_t.map(_r=>{let ki=nt(_r,$,mt);return{node:_r,desiredCenterX:ki.centerX,order:ki.order}}),Hr=zke(xn,Hke);_t.forEach(_r=>{let ki=Io(_r);le[_r.id]={..._r,position:{x:Hr.get(_r.id)??UZ(oe)-ki.width/2,y:jt+nn-ki.height}}}),Le=jt-Ike}});let gt=($,J,oe,me)=>{let Ke=Io($),Le=Io(J);return $.position.x<J.position.x+Le.width+oe&&$.position.x+Ke.width+oe>J.position.x&&$.position.y<J.position.y+Le.height+me&&$.position.y+Ke.height+me>J.position.y},Wt=($,J)=>{le[$.id]={...$,position:J}},ce=($,J)=>{$.forEach(oe=>{let me=le[oe]??s[oe];me&&Wt(me,{x:me.position.x+J.x,y:me.position.y+J.y})})},Jn=new Map,Yt=$=>!!($.source&&$.target&&!l.has($.source)&&($.targetHandle?.startsWith("fieldInput/")||$.targetHandle?.startsWith("codeField/"))),ye=t.reduce(($,J)=>(Yt(J)&&($[J.target]=[...$[J.target]??[],J]),$),{}),He=($,J)=>Array.from((ye[$]??[]).filter(oe=>W(oe.source,J)).sort((oe,me)=>Rd($,oe.targetHandle,r)-Rd($,me.targetHandle,r)||(p.get(oe)??0)-(p.get(me)??0)||oe.source.localeCompare(me.source)).reduce((oe,me)=>(oe.has(me.source)||oe.set(me.source,me),oe),new Map).values()),tn=($,J)=>{let oe=$.position.y;return J.forEach((me,Ke)=>{let Le=le[me.source]??s[me.source];if(!Le)return;let mt=Io(Le),_t=Ke===0?D6(Le,$):0;oe=oe-_t-mt.height-Fke}),oe},$n=($,J=new Set,oe)=>{let me=le[$]??s[$];if(!me)return null;let Ke=GC(me);return J.has($)||(J.add($),He($,oe).forEach(Le=>{let mt=le[Le.source]??s[Le.source];if(!mt||l.has(mt.id))return;let _t=$n(mt.id,new Set(J),oe);_t&&(Ke=YC(Ke,_t))})),Ke},Or=($,J=new Set,oe)=>{if(J.has($))return;J.add($);let me=le[$]??s[$];if(!me)return;let Ke=He($,oe),Le=Ke.filter(jt=>Pe.get(jt.source)===$),mt=Ke.filter(jt=>{let xn=le[jt.source]??s[jt.source];return xn&&!l.has(xn.id)&&Pe.get(xn.id)!==$});if(me.type==="code"&&mt.length>Fw)return;let _t=Le.length>0?tn(me,Le):me.position.y,nn=null;mt.forEach((jt,xn)=>{let Hr=le[jt.source]??s[jt.source];if(!Hr)return;let _r=Io(Hr),ki=D6(Hr,me),dl=Oke(Hr,me),qr=_t-(xn===0?ki:0)-_r.height,ei=Math.min(me.position.x-dl-VZ*xn,nn?nn.left-Rke:Number.POSITIVE_INFINITY);Wt(Hr,{x:ei,y:qr}),Or(Hr.id,new Set(J),oe);let sa=$n(Hr.id,new Set(J),oe);sa&&(nn=nn?YC(nn,sa):sa),_t=(sa?.top??qr)-WZ})},et=()=>{a.map($=>le[$.id]??$).sort(($,J)=>$.position.x-J.position.x||$.position.y-J.position.y||(m.get($.id)??0)-(m.get(J.id)??0)||$.id.localeCompare(J.id)).forEach($=>{Or($.id,new Set,P($.id))})},bn=()=>{let $=new Map;return a.forEach(J=>{let oe=k(J.id)??J.id,me=$.get(oe)??new Set;me.add(J.id),$.set(oe,me)}),o.forEach(J=>{if(l.has(J.id)||H(J.id))return;let oe=Q(J.id);if(!oe||!l.has(oe))return;let me=k(oe)??oe,Ke=$.get(me)??new Set;Ke.add(J.id),$.set(me,Ke)}),$},ir=($,J)=>$.top<J.bottom+Tke&&$.bottom+Tke>J.top,Ee=($,J)=>{let oe=0;return $.forEach(me=>{let Ke=le[me]??s[me];if(!Ke)return;let Le=GC(Ke);J.forEach(mt=>{let _t=le[mt]??s[mt];if(!_t)return;let nn=GC(_t);!(Le.left<nn.right&&Le.right>nn.left)||!ir(Le,nn)||(oe=Math.max(oe,nn.right+kot-Le.left))})}),oe},Ge=$=>Array.from($).map(J=>le[J]??s[J]).filter(J=>!!J).map(GC).reduce((J,oe)=>J?YC(J,oe):oe,null),Pt=$=>Math.min(...Array.from($).map(J=>m.get(J)??Number.MAX_SAFE_INTEGER)),yn=$=>{let J=Array.from($).find(oe=>l.has(oe));return J?y(J):null},pr=()=>{let $=bn(),J=[];Array.from($.values()).sort((oe,me)=>{let Ke=Ge(oe),Le=Ge(me);return(Ke?.left??0)-(Le?.left??0)||(Ke?.top??0)-(Le?.top??0)||Pt(oe)-Pt(me)}).forEach(oe=>{let me=yn(oe);for(let Ke=0;Ke<BZ;Ke+=1){let Le=J.filter(mt=>mt.componentId===me).reduce((mt,_t)=>Math.max(mt,Ee(oe,_t.nodeIds)),0);if(Le<=0)break;ce(oe,{x:Le,y:0})}J.push({nodeIds:oe,componentId:me})})},Br=()=>{let $=new Map;return a.forEach(J=>{let oe=y(J.id);if(!oe)return;let me=$.get(oe)??new Set;me.add(J.id),$.set(oe,me)}),o.forEach(J=>{if(l.has(J.id))return;let oe=Q(J.id),me=oe?y(oe):null;if(!me)return;let Ke=$.get(me)??new Set;Ke.add(J.id),$.set(me,Ke)}),$},fi=($,J)=>{let oe=0;return $.forEach(me=>{let Ke=le[me]??s[me];if(!Ke)return;let Le=GC(Ke);J.forEach(mt=>{let _t=le[mt]??s[mt];if(!_t)return;let nn=GC(_t),jt=Le.left<nn.right+Ake&&Le.right+Ake>nn.left,xn=Le.top<nn.bottom+zZ&&Le.bottom+zZ>nn.top;!jt||!xn||(oe=Math.max(oe,nn.bottom+zZ-Le.top))})}),oe},Zo=()=>{let $=Array.from(Br().values()).sort((oe,me)=>{let Ke=Ge(oe),Le=Ge(me);return(Ke?.top??0)-(Le?.top??0)||(Ke?.left??0)-(Le?.left??0)||Pt(oe)-Pt(me)}),J=[];$.forEach(oe=>{for(let me=0;me<BZ;me+=1){let Ke=J.reduce((Le,mt)=>Math.max(Le,fi(oe,mt.nodeIds)),0);if(Ke<=0)break;ce(oe,{x:0,y:Ke})}J.push({nodeIds:oe})})},Ki=()=>{let $=t.reduce((J,oe)=>{if(!oe.source||!oe.target||!oe.targetHandle?.startsWith("codeField/"))return J;let me=le[oe.source]??s[oe.source],Ke=le[oe.target]??s[oe.target];return!me||Ke?.type!=="code"||l.has(me.id)||(J[oe.target]=[...J[oe.target]??[],oe]),J},{});Object.entries($).forEach(([J,oe])=>{if(oe.length<=Fw)return;let me=le[J]??s[J];if(!me)return;let Ke=Array.from(oe.sort((jt,xn)=>Rd(J,jt.targetHandle,r)-Rd(J,xn.targetHandle,r)||(p.get(jt)??0)-(p.get(xn)??0)||jt.source.localeCompare(xn.source)).reduce((jt,xn)=>(jt.has(xn.source)||jt.set(xn.source,xn),jt),new Map).values()),Le=Ke.filter(jt=>(le[jt.source]??s[jt.source])?.type==="state"),mt=Ke.filter(jt=>(le[jt.source]??s[jt.source])?.type!=="state"),_t=[];for(let jt=0;jt<Le.length;jt+=Fw)_t.push(Le.slice(jt,jt+Fw));for(let jt=0;jt<mt.length;jt+=Fw)_t.push(mt.slice(jt,jt+Fw));let nn=me.position.y-Qot;for(let[jt,xn]of _t.entries()){let Hr=xn.map((qr,ei)=>{let sa=le[qr.source]??s[qr.source];return sa?{node:sa,desiredCenterX:Bke(me,qr.targetHandle,r),order:jt*Fw+ei}:null}).filter(qr=>qr!==null);if(Hr.length===0)continue;let _r=Math.max(...Hr.map(qr=>Io(qr.node).height)),ki=nn-_r,dl=zke(Hr,Jot);Hr.forEach(qr=>{let ei=Io(qr.node);Wt(qr.node,{x:dl.get(qr.node.id)??qr.desiredCenterX-ei.width/2,y:ki+_r-ei.height})}),nn=ki-Zot}})},Fa=()=>{t.filter(J=>{let oe=le[J.source]??s[J.source],me=le[J.target]??s[J.target];return oe&&me&&ig(oe)&&me.type==="app"&&!ig(me)&&F(oe.id).size===0&&!l.has(oe.id)&&!l.has(me.id)&&J.sourceHandle==="fieldOutput"&&!!J.targetHandle?.startsWith("fieldInput/")}).sort((J,oe)=>{let me=Q(J.source),Ke=Q(oe.source),Le=me?De(J.source,me):0,mt=Ke?De(oe.source,Ke):0;return Le-mt||J.source.localeCompare(oe.source)}).forEach(J=>{let oe=le[J.source]??s[J.source],me=le[J.target]??s[J.target];if(!oe||!me)return;let Ke=Io(oe),Le=Io(me);Wt(oe,{x:me.position.x-Ke.width-Eot,y:me.position.y+(Le.height-Ke.height)/2})})},zr=()=>{Jn.clear();let $=t.reduce((J,oe)=>{if(!oe.source||!oe.target||!oe.targetHandle?.startsWith("fieldInput/"))return J;let me=le[oe.source]??s[oe.source],Ke=le[oe.target]??s[oe.target];return me?.type!=="state"||Ke?.type!=="app"||(J[oe.target]=[...J[oe.target]??[],oe]),J},{});Object.entries($).forEach(([J,oe])=>{let me=le[J]??s[J];if(!me)return;let Le=Array.from(oe.sort((_t,nn)=>Rd(J,_t.targetHandle,r)-Rd(J,nn.targetHandle,r)||(p.get(_t)??0)-(p.get(nn)??0)||_t.source.localeCompare(nn.source)).reduce((_t,nn)=>(_t.has(nn.source)||_t.set(nn.source,nn),_t),new Map).values()).map(_t=>le[_t.source]??s[_t.source]).filter(_t=>!!_t);if(Le.length===0||!Mke(me,Le.length))return;let mt=me.position.y;Le.forEach((_t,nn)=>{let jt=Io(_t),xn=nn===0?D6(_t,me):0,Hr=mt-xn-jt.height;Jn.set(_t.id,J),Wt(_t,{x:me.position.x-Uke-Iot*nn,y:Hr}),mt=Hr-Fke})})},hi=()=>{let $=o.map(oe=>oe.id).filter(oe=>l.has(oe)).sort((oe,me)=>{let Ke=le[oe]??s[oe],Le=le[me]??s[me];return Ke.position.y-Le.position.y||Ke.position.x-Le.position.x||oe.localeCompare(me)}),J=o.map(oe=>oe.id).filter(oe=>!l.has(oe)).sort((oe,me)=>{let Ke=le[oe]??s[oe],Le=le[me]??s[me];return Ke.position.y-Le.position.y||Ke.position.x-Le.position.x||oe.localeCompare(me)});for(let oe=0;oe<BZ;oe+=1){let me=!1;for(let Ke of J){let Le=le[Ke]??s[Ke],mt=Io(Le);for(let _t of $){let nn=le[_t]??s[_t],jt=Jn.has(Le.id),xn=Jn.get(Le.id)===_t;if(!gt(Le,nn,jt&&!xn?0:rR,jt&&!xn?0:OZ))continue;let ki=nn.position.y-mt.height-OZ;ki<Le.position.y&&(Wt(Le,{x:Le.position.x,y:ki}),me=!0)}}for(let Ke=0;Ke<J.length;Ke+=1)for(let Le=Ke+1;Le<J.length;Le+=1){let mt=le[J[Ke]]??s[J[Ke]],_t=le[J[Le]]??s[J[Le]],nn=Jn.get(mt.id),jt=Jn.get(_t.id),xn=nn&&nn===jt,Hr=nn===_t.id||jt===mt.id,_r=xn||Hr;if(!gt(mt,_t,_r?0:rR,_r?0:OZ))continue;let qr=Jn.has(mt.id),ei=Jn.has(_t.id),[sa,qd]=qr!==ei?qr?[mt,_t]:[_t,mt]:mt.position.x<=_t.position.x?[mt,_t]:[_t,mt],Ny=Io(sa),Ly=Io(qd),Zp=qd.position.x<sa.position.x?sa.position.x-Ly.width-rR:sa.position.x+Ny.width+rR;Wt(qd,{x:Zp,y:qd.position.y}),me=!0}if(!me)break}};return Fa(),Ki(),zr(),hi(),Fa(),Ki(),zr(),hi(),Ki(),zr(),et(),Fa(),zr(),Ki(),pr(),Zo(),o.map($=>le[$.id]??$)}function Yke(e){if(!e||typeof e!="object")return null;let t=e.apply;if(!t||typeof t!="object")return null;let n=t,r=n.runtime==="reload"||n.runtime==="restart"?n.runtime:"none",o=Array.isArray(n.listeners)?n.listeners.filter(a=>!!a&&typeof a=="object"&&typeof a.address=="string"&&typeof a.port=="number").map(a=>({address:a.address,port:a.port,tls:a.tls===!0})):[],i=Array.isArray(n.system)?n.system.filter(a=>typeof a=="string"):[];return{runtime:r,listeners:o,listeners_changed:n.listeners_changed===!0,system:i}}function KZ(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}function lit(e,t){let n=KZ(t).toLowerCase();return e.address===""||e.address==="0.0.0.0"||e.address==="::"?!0:e.address==="127.0.0.1"||e.address==="::1"?n==="localhost"||n==="127.0.0.1"||n==="::1":e.address.toLowerCase()===n}function cit(e){return e.port?Number(e.port):e.protocol==="https:"?443:80}function Xke(e,t){let n=t.filter(c=>lit(c,e.hostname));if(n.length===0)return null;let r=e.protocol==="https:",o=cit(e);if(n.some(c=>c.tls===r&&c.port===o))return null;let i=n.find(c=>c.tls===r)??n[0];if(!i)return null;let a=i.tls?"https":"http",s=i.tls?443:80,l=KZ(e.hostname).includes(":")?`[${KZ(e.hostname)}]`:e.hostname;return`${a}://${l}${i.port===s?"":`:${i.port}`}`}var Gke={timezone:"setting the system time zone",mounts:"mounting the Samba shares",driver_setup:"running display driver setup"};function Jke(e,t){if(!e)return"Saved";let n=[];e.runtime==="restart"&&n.push("restarting FrameOS to apply the display settings");for(let r of e.system)Gke[r]&&n.push(Gke[r]);return t&&n.push(`moving to ${t}`),n.length>0?`Saved, ${n.join(", ")}`:"Saved"}var dit=!1;function Qke(e){dit=!0;let{pathname:t,search:n,hash:r}=window.location;window.location.assign(`${e}${t}${n}${r}`)}function M6(e){let t=new Uint8Array(e);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(t);else for(let o=0;o<t.length;o++)t[o]=Math.floor(Math.random()*256);let n=Array.from(t);return btoa(String.fromCharCode.apply(null,n)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var tc=N(fIe(),1);function hIe(e){return[{name:"commonName",value:e}]}function Ylt(e){let t=e.split(".");return t.length===4&&t.every(n=>/^\d+$/.test(n)&&Number(n)>=0&&Number(n)<=255)}function Xlt(e){return Ylt(e)||e.includes(":")&&/^[0-9a-fA-F:.]+$/.test(e)}function Jlt(e){let t=[{type:2,value:"localhost"},{type:7,ip:"127.0.0.1"}];return e&&t.push(Xlt(e)?{type:7,ip:e}:{type:2,value:e}),[{name:"subjectAltName",altNames:t}]}function gIe(){return`01${tc.util.bytesToHex(tc.random.getBytesSync(15))}`}function bIe(e,t){return new Date(e.getTime()+t*24*60*60*1e3)}function yIe(e){return e.toISOString().replace("Z","+00:00")}function vIe(e){let t=e.trim(),n=new Date,r=new Date(n.getTime()-300*1e3),o=tc.pki.rsa.generateKeyPair({bits:2048,e:65537}),i=tc.pki.createCertificate();i.publicKey=o.publicKey,i.serialNumber=gIe(),i.validity.notBefore=r,i.validity.notAfter=bIe(n,3650);let a=hIe(`FrameOS Frame CA (${t||"frame"})`);i.setSubject(a),i.setIssuer(a),i.setExtensions([{name:"basicConstraints",cA:!0,critical:!0},{name:"keyUsage",digitalSignature:!0,keyCertSign:!0,cRLSign:!0,critical:!0}]),i.sign(o.privateKey,tc.md.sha256.create());let s=tc.pki.rsa.generateKeyPair({bits:2048,e:65537}),l=tc.pki.createCertificate();return l.publicKey=s.publicKey,l.serialNumber=gIe(),l.validity.notBefore=r,l.validity.notAfter=bIe(n,825),l.setSubject(hIe(t||"frame.local")),l.setIssuer(i.subject.attributes),l.setExtensions([...Jlt(t),{name:"basicConstraints",cA:!1,critical:!0},{name:"extKeyUsage",serverAuth:!0},{name:"keyUsage",digitalSignature:!0,keyEncipherment:!0,critical:!0}]),l.sign(o.privateKey,tc.md.sha256.create()),{certs:{server:tc.pki.certificateToPem(l),server_key:tc.pki.privateKeyToPem(s.privateKey),client_ca:tc.pki.certificateToPem(i)},server_cert_not_valid_after:yIe(l.validity.notAfter),client_ca_cert_not_valid_after:yIe(i.validity.notAfter)}}function Qlt(e,t){return(e.name||e.id).localeCompare(t.name||t.id,void 0,{numeric:!0,sensitivity:"base"})||String(e.id).localeCompare(String(t.id))}function wIe(e){return[...e].toSorted(Qlt)}var uk={frameos:"2026.10.23+c9e31ffd4d7e5b228d4ac12e22ac71364a0b4040",editor:"2026.10.23+5a4e5198a98ac8672dce8ee40ea851b05b7ac6a9",remote:"2026.9.13+f8ceef0a9efd7da03511d84a9b8000fabf3f9949",docker:"2026.10.23+aa1d503bda78cc78c3f30ddd69c478eb0e31a6a9"};var jxn=[{value:"",label:"Prefer binaries, build from source if needed"},{value:"precompiled",label:`Install precompiled binaries (version ${uk.frameos.split("+")[0]})`},{value:"static",label:"Build from source - single binary (legacy: needs a build environment)"}];function wR(e){return e==="shared"||e==="shared-scenes"?"static":e==="static"||e==="precompiled"?e:"precompiled"}function SR(e){return e==="embedded"}function xs(e,t){return SR(t)?"interpreted":Yee(e)}function xR(e,t){return xs(e,t)!=="interpreted"}function Yee(e){let t=e?.settings?.execution;return t==="compiled"||t==="interpreted"?t:"interpreted"}var Xee="https://scenes.frameos.net/nim-converter",SIe="Preview runs the interpreter: this scene's Nim code nodes and Nim apps are not executed here. Convert the scene to JavaScript to see it whole.",ect=`This makes the scene compiled (legacy): it will need a full FrameOS source build on every deploy.
|
|
10930
|
+
`}};var g6={code:"Code",render:"Render",logic:"Logic",data:"Data"};function J1e(e){return{...Y1e,...e,...h6}}var Mi=(0,VC.kea)([(0,VC.path)(["src","models","appsModel"]),(0,Q1e.loaders)(({values:e})=>({apps:[{},{loadApps:async()=>{try{let t=await ge("/api/apps");if(!t.ok)throw new Error("Failed to fetch apps");let n=await t.json();return J1e(n.apps)}catch(t){return Qh(t),J1e(e.apps)}}}]})),(0,VC.afterMount)(({actions:e})=>{e.loadApps()})]);var WC=["app.ts","app.js","app.tsx","app.jsx"],b6=Object.keys(h6);function JF(e){return!!e&&e.startsWith("repo/")}function nf(e){return!!e&&b6.includes(e)}var ott=["jsImage","jsLogic","jsSvg","jsText"].map(e=>Z1e(e)??e);function Z1e(e){return b6.find(t=>t.slice(t.lastIndexOf("/")+1)===e)}function y6(e,t){return ott.includes(e)?"code":(t.category||"other").toLowerCase()}function Iw(e){return!!e&&WC.some(t=>!!e[t])}function QF(e){return!!(e?.["app.nim"]||e?.["config.nim"])}function tf(e){return QF(e)&&!Iw(e)}function v6(e){return Object.values(e.apps??{}).some(t=>tf(t.sources))?!0:(e.nodes??[]).some(t=>{if(t.type==="app"){let n=t.data;return tf(n?.sources)||tf(e.apps?.[n?.keyword??""]?.sources)}if(t.type==="code"){let n=t.data;return!!n?.code?.trim()&&!n?.codeJS?.trim()}return t.type==="source"})}function e_e(e){if(!e?.["config.json"])return{};try{let t=JSON.parse(e["config.json"]);return typeof t=="object"&&t?t:{}}catch{return{}}}function t_e(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function Tb(e){return e?.origin??e?.source}function itt(e){return!!e&&Object.keys(e).length>0}function n_e(e){if(!e)return;if(XF[e])return e;if(!JF(e))return;let t=e.split("/").filter(Boolean),n=t[t.length-1],r=n?Z1e(n):void 0;return r&&XF[r]?r:void 0}function att(e){let t=n_e(e),n=t?XF[t]:void 0;return n?{...n}:void 0}function ZF(e,t){let{source:n,...r}=e,o=Tb(e)||t,i=n_e(o),a=itt(e.sources)?e.sources:att(o)||e.sources||{};return t_e({...r,origin:i||o,sources:a})}function Xl(e){return Object.fromEntries(Object.entries(e??{}).map(([t,n])=>[t,ZF(n,t)]))}function Ad(e){let t=e_e(e.sources),n=Tb(e);return{name:e.name||t.name||n||"Scene app",category:e.category||t.category,description:e.description||t.description,version:e.version||t.version,settings:e.settings||t.settings,apt:e.apt||t.apt,fields:e.fields||t.fields,output:e.output||t.output,cache:e.cache||t.cache,origin:n}}function mZ(e){return Object.fromEntries(Object.entries(Xl(e?.apps)).map(([t,n])=>[t,Ad(n)]))}function w6(e,t){return{...e,...mZ(t)}}function fZ(e){let t=Tb(e);if(!t)return null;let n=t.split("/");return n[0]==="repo"&&n[1]==="apps"&&n[2]?n[2]:n[0]==="repo"&&n[1]?n[1]:n[0]==="scene"?"scene":n[0]||null}function qC(e,t){let n=fZ(e);return`${t?`${t}: `:""}${e.name}${n?` [${n}]`:""}`}async function hZ(e){let t=XF[e]??X1e[e];if(t)return{...t};let n=await ge(`/api/apps/source?keyword=${encodeURIComponent(e)}`);return n.ok?await n.json():{}}function KC(e,t,n){let r=t.split("/").filter(Boolean),i=(r[r.length-1]||n?.name||"app").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/(^-|-$)/g,"")||"app";if(!e[i])return i;let a=2,s=`${i}-${a}`;for(;e[s];)a+=1,s=`${i}-${a}`;return s}function S6(e,t,n,r){let o=e_e(n),i=Tb(r)||Tb(t)||(JF(e)?e:void 0),{source:a,...s}=r??{};return t_e({...s,origin:i,name:o.name||r?.name||t?.name||e,category:o.category||r?.category||t?.category,description:o.description||r?.description||t?.description,version:o.version||r?.version||t?.version,settings:o.settings||r?.settings||t?.settings,apt:o.apt||r?.apt||t?.apt,fields:o.fields||r?.fields||t?.fields,output:o.output||r?.output||t?.output,cache:o.cache||r?.cache||t?.cache,sources:n})}async function x6(e,t,n){if(!JF(t))return{sceneApps:e,keyword:t,app:n??null};let r=await hZ(t),o=KC(e,t,n),i=S6(o,n,r,{origin:Tb(n)||t});return{sceneApps:{...e,[o]:i},keyword:o,app:Ad(i)}}function _6(e,t,n,r=!1,o){let i=Xl(n),a=r&&Object.values(i).some(s=>QF(s.sources));return e?.map(s=>s.id===t?{...s,apps:i,...o?{nodes:o}:{},settings:a&&s.settings?.execution!=="compiled"?{...s.settings,execution:"compiled"}:s.settings}:s)}var rg={openAI:{title:tg("openAI"),tagLabel:"OpenAI API key missing",description:"The OpenAI API key is used within OpenAI apps on frames.",fields:[{label:"API key for frames",secret:!0,path:["openAI","apiKey"]}]},unsplash:{title:tg("unsplash"),tagLabel:"Unsplash access key missing",fields:[{label:"Access key",secret:!0,path:["unsplash","accessKey"]}]},homeAssistant:{title:tg("homeAssistant"),tagLabel:"Home Assistant access token missing",fields:[{label:"Home assistant URL",path:["homeAssistant","url"]},{label:"Access token (Profile \u2192 Long-Lived Access Tokens)",secret:!0,path:["homeAssistant","accessToken"]}]},immich:{title:tg("immich"),tagLabel:"Immich API key missing",fields:[{label:"Server URL",path:["immich","url"]},{label:"API key (Account Settings \u2192 API Keys)",secret:!0,path:["immich","apiKey"]}]},github:{title:tg("github"),tagLabel:"GitHub personal access token missing",freeLimitedUsage:!0,fields:[{label:"API key",secret:!0,path:["github","api_key"]}]},frameOS:{title:tg("frameOS"),tagLabel:"FrameOS Gallery API key missing",fields:[{label:"API key",secret:!0,path:["frameOS","apiKey"]}]}};function stt(e,t){if(t){if(e[t])return e[t];if(!t.includes("/")){let n=Object.keys(e).find(r=>r.endsWith(`/${t}`));if(n)return e[n]}}}function Fd(e,t){let n=new Set;for(let r of e??[])for(let o of r.nodes??[])if(o.type==="app"){let i=o.data?.keyword,a=i?r.apps?.[i]:void 0,s=a?Ad(a):stt(t,i);for(let l of s?.settings??[])rg[l]&&n.add(l)}return Array.from(n)}function ltt(e){return"blob"in e?null:"templateId"in e?{template_id:e.templateId}:"url"in e?{url:e.url}:{source_scene_id:e.sourceSceneId,...e.sourceFrameId!==void 0?{source_frame_id:e.sourceFrameId}:{}}}var C6=class extends Error{status;constructor(t,n){super(t),this.name="SceneImageError",this.status=n}};async function ctt(e){try{let t=await e.json();if(t?.detail)return String(t.detail)}catch{}return`unexpected status ${e.status}`}async function dtt(e,t,n){let r=ltt(n),o=r?await ge(`/api/frames/${e}/scene_images/${t}/copy`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}):await ge(`/api/frames/${e}/scene_images/${t}`,{method:"POST",body:n.blob});if(!o.ok)throw new C6(await ctt(o),o.status);Cw.actions.updateEntityImage(`frames/${e}`,`scene_images/${t}`)}function gZ(e,t,n,r){let o=r instanceof Error?r.message:String(r);console.error(`Failed to copy the scene ${n}`,r),Ze.actions.startTask({frameId:e,kind:"sceneImage",title:`Copying the scene ${n}`,detail:null,sceneId:t}),Ze.actions.taskFailed({frameId:e,kind:"sceneImage",sceneId:t,detail:`${o}. The scene tile stays blank until the frame renders it.`})}async function $C(e,t,n,r={}){let o=r.label??"preview image";if(!(!t.length||!n)&&!(ze()&&!("blob"in n)))try{await Promise.all(t.map(i=>dtt(e,i,n)))}catch(i){if(r.ignoreMissingSource&&i instanceof C6&&i.status===404)return;gZ(e,t[0],o,i)}}var jZ=N(kke(),1),Eke=90,wot=90,Sot=120,xot=64,_ot=56,Ike=50,Hke=70,Cot=44,rR=40,OZ=40,BZ=24,kot=16,Tke=0,Ake=180,zZ=120,Eot=rR,Uke=32,Iot=24;var Fke=16,Tot=35,Aot=64,Fot=340,Rot=140,Dot=8,Not=49,VZ=16,Rke=VZ+12,Lot=50,Mot=38,Pot=30,Oot=39,Bot=67,zot=48,Hot=32,Dke=200,WZ=18,Uot=260,jot=180,Nke=200,jke=340,Vot=2200,Wot=6,qot=119,Vke=260,HZ=100,Kot=72,$ot=8,Got=120,Yot=91,F6=7,Xot=22,Wke=40,Fw=4,Jot=Hke,Qot=60,Zot=28,qZ=1e3;function Io(e){return{width:e.width??Uot,height:e.height??jot}}function R6(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){let t=Number.parseFloat(e);return Number.isFinite(t)?t:null}return null}function eit(e){let t=e.data??{},n=t.codeArgs??[],r=t.codeOutputs??[],o=(t.codeJS??t.code??"").trim(),i=o?o.split(/\r?\n/):[""],a=i.reduce((f,h)=>Math.max(f,h.length),0),s=[...n,...r].reduce((f,h)=>Math.max(f,h.name.length*F6+HZ),Nke),l=n.reduce((f,h)=>f+h.name.length*F6+Kot+$ot,Got),c=n.length>Wot?Vot:jke,d=Math.min(c,Math.max(Nke,s,l,a*F6+HZ)),u=Math.max(1,Math.floor((d-HZ/2)/F6)),p=i.reduce((f,h)=>f+Math.max(1,Math.ceil(h.length/u)),0),m=Math.min(Vke,Math.max(qot,Yot+p*Xot));return{width:Math.round(d),height:Math.round(m)}}function tit(e){if(e.type!=="code")return e;let t=eit(e),n=R6(e.width)??R6(e.style?.width),r=R6(e.height)??R6(e.style?.height),o=n!==null&&n>jke?Math.max(n,t.width):t.width,i=r!==null&&r>Vke?Math.max(r,t.height):t.height,a={...e.style??{},width:o,height:i};return{...e,width:o,height:i,style:a}}function N6(e){return e?e.startsWith("fieldInput/")?e.slice(11):e.startsWith("codeField/")?e.slice(10):e.startsWith("field/")?e.slice(6):null:null}function qke(e){return N6(e)?.replace(/\[.*$/,"")??null}function Lke(e){let t=Kke(e);return t.length===0?null:t.reduce((n,r,o)=>n+r/qZ**o,0)}function Kke(e){let t=N6(e);return t?Array.from(t.matchAll(/\[(\d+)\]/g)).map(n=>Number(n[1])):[]}function nit(e){return e.sourceHandle==="next"||e.targetHandle==="prev"||e.type==="appNodeEdge"}function ig(e){if(e.type!=="app")return!1;let t=e.data?.keyword;return typeof t=="string"&&t.startsWith("data/")}function Mke(e,t){if(e.type!=="app")return!1;if(t>1)return!0;let n=e.data?.keyword;return typeof n=="string"&&(n.startsWith("data/")||n.startsWith("logic/"))}function rit(e){return e.type==="event"||e.type==="dispatch"||e.type==="source"}function UZ(e){return e.position.x+Io(e).width/2}function GC(e){let t=Io(e);return{left:e.position.x,right:e.position.x+t.width,top:e.position.y,bottom:e.position.y+t.height}}function YC(e,t){return{left:Math.min(e.left,t.left),right:Math.max(e.right,t.right),top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom)}}function Pke(e,t){return{left:e.left+t.x,right:e.right+t.x,top:e.top+t.y,bottom:e.bottom+t.y}}function Oke(e,t){if(e.type==="state")return ig(t)?Uke:Dot;if(ig(e)&&ig(t))return Not;let n=Io(t);return e.type==="code"&&n.width<=Fot?Aot:Tot}function D6(e,t){let n=Io(t);return e.type==="state"?ig(t)?WZ:n.height>=Dke?Hot:zot:ig(e)&&ig(t)?Mot:e.type==="code"?n.height<=Rot?Bot:n.height>=Dke?Pot:Oot:Lot}function Rd(e,t,n){let r=N6(t);if(!r)return Number.MAX_SAFE_INTEGER;let o=n[e]??[],i=qke(t),a=Lke(t)??0,s=o.indexOf(r);if(s>=0)return s*qZ+a;let l=i?o.indexOf(i):-1;if(l>=0)return l*qZ+a;let c=Lke(t);return c!==null?c:Number.MAX_SAFE_INTEGER}function oit(e,t,n){let r=N6(t);if(!r)return null;let o=n[e.id]??[],i=qke(t),a=o.indexOf(r),s=a>=0?a:i?o.indexOf(i):-1;if(s<0)return null;let{width:l}=Io(e),c=t?.startsWith("codeField/")?Wke:Cot,d=Math.max(l-c*2,1),u=Math.max(o.length-1,1);return c+d*s/u}function $ke(e,t,n){let{width:r}=Io(e);return t==="prev"?0:t==="next"?r:e.type==="code"&&t==="fieldOutput"?Wke:oit(e,t,n)??r/2}function Bke(e,t,n){return e.position.x+$ke(e,t,n)}function zke(e,t){let n=[...e].sort((r,o)=>r.desiredCenterX-o.desiredCenterX||r.order-o.order||(r.node.type??"").localeCompare(o.node.type??"")||r.node.id.localeCompare(o.node.id)).map(r=>{let{width:o}=Io(r.node);return{...r,width:o,left:r.desiredCenterX-o/2}});for(let r=1;r<n.length;r+=1){let o=n[r-1],i=n[r];i.left=Math.max(i.left,o.left+o.width+t)}if(n.length>1){let r=Math.min(...n.map(l=>l.desiredCenterX-l.width/2)),o=Math.max(...n.map(l=>l.desiredCenterX+l.width/2)),i=Math.min(...n.map(l=>l.left)),a=Math.max(...n.map(l=>l.left+l.width)),s=(r+o)/2-(i+a)/2;n.forEach(l=>{l.left+=s})}return new Map(n.map(r=>[r.node.id,r.left]))}function iit(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}function ait(e,t){let n=e.reduce((l,c)=>(l[c.id]=c,l),{}),r=new Set(e.map(l=>l.id)),o=new WeakMap;t.forEach((l,c)=>{o.set(l,c)});let i=t.reduce((l,c)=>{let d=n[c.source],u=n[c.target],p=c.targetHandle?.startsWith("fieldInput/")||c.targetHandle?.startsWith("codeField/");return d?.type!=="state"||!u||u.type!=="app"&&u.type!=="code"||c.sourceHandle!=="fieldOutput"||!p||(l[c.source]=[...l[c.source]??[],c]),l},{}),a=[],s=new WeakMap;return Object.entries(i).forEach(([l,c])=>{let d=n[l];if(!d)return;let u=c.reduce((m,f)=>(m[f.target]=[...m[f.target]??[],f],m),{}),p=Object.entries(u).sort(([m,f],[h,g])=>(o.get(f[0])??0)-(o.get(g[0])??0)||m.localeCompare(h));p.length<=1||p.slice(1).forEach(([m,f])=>{let h=iit(`${l}__for__${m}`,r),{id:g,selected:b,dragging:y,positionAbsolute:w,...v}=d;a.push({...v,id:h,position:{...d.position},selected:!1,dragging:!1}),f.forEach(S=>{s.set(S,h)})})}),a.length===0?{nodes:e,edges:t}:{nodes:[...e,...a],edges:t.map(l=>{let c=s.get(l);return c?{...l,source:c}:l})}}function L6(e,t,n={}){let r=ait(e,t);return{nodes:sit(r.nodes,r.edges,n),edges:r.edges}}function sit(e,t,n={}){if(!e.length)return e;let r=n.fieldOrderByNodeId??{},o=e.map(tit),i=new Set;t.forEach($=>{$.sourceHandle==="next"&&i.add($.source),$.targetHandle==="prev"&&i.add($.target)});let a=o.filter($=>rit($)||$.type==="app"&&!ig($)&&i.has($.id)),s=o.reduce(($,J)=>($[J.id]=J,$),{}),l=new Set(a.map($=>$.id)),c=t.filter($=>l.has($.source)&&l.has($.target)&&nit($)),d=t.reduce(($,J)=>(!J.source||!J.target||($[J.source]=[...$[J.source]??[],J]),$),{}),u=t.reduce(($,J)=>(!J.source||!J.target||($[J.target]=[...$[J.target]??[],J]),$),{}),p=new WeakMap;t.forEach(($,J)=>{p.set($,J)});let m=new Map(a.map(($,J)=>[$.id,J])),f=[...c].sort(($,J)=>(m.get($.source)??0)-(m.get(J.source)??0)||Rd($.source,$.sourceHandle,r)-Rd(J.source,J.sourceHandle,r)||Rd($.target,$.targetHandle,r)-Rd(J.target,J.targetHandle,r)||$.target.localeCompare(J.target));if(!a.length)return e;let h=new Map(a.map($=>[$.id,$.id])),g=$=>{let J=h.get($);if(!J||J===$)return $;let oe=g(J);return h.set($,oe),oe},b=($,J)=>{let oe=g($),me=g(J);oe!==me&&h.set(me,oe)};f.forEach($=>{b($.source,$.target)});let y=$=>l.has($)?g($):null,w=new jZ.default.graphlib.Graph({multigraph:!0});w.setGraph({rankdir:"LR",nodesep:Eke,ranksep:wot,edgesep:25}),w.setDefaultEdgeLabel(()=>({})),a.forEach($=>{let{width:J,height:oe}=Io($);w.setNode($.id,{width:J,height:oe,rank:$.type==="event"||$.type==="source"?"min":void 0})}),f.forEach($=>{!$.source||!$.target||$.source===$.target||w.setEdge($.source,$.target)}),jZ.default.layout(w);let v=new Map;a.forEach($=>{let J=w.node($.id);if(!J)return;let{width:oe,height:me}=Io($);v.set($.id,{x:J.x-oe/2,y:J.y-me/2})});let S=($,J,oe=new Set)=>{if(oe.has($))return;oe.add($);let me=v.get($);me&&v.set($,{x:me.x+J.x,y:me.y+J.y}),f.filter(Ke=>Ke.source===$).forEach(Ke=>{S(Ke.target,J,oe)})},x=f.reduce(($,J)=>(!J.sourceHandle?.startsWith("field/")||J.targetHandle!=="prev"||($[J.source]=[...$[J.source]??[],J]),$),{}),C=new Set(Object.values(x).flatMap($=>$.length>1?$.map(J=>J.target):[])),A=f.reduce(($,J)=>($[J.target]=[...$[J.target]??[],J],$),{}),T=new Map,k=($,J=new Set)=>{if(T.has($))return T.get($)??null;if(!l.has($))return T.set($,null),null;if(C.has($))return T.set($,$),$;if(J.has($))return null;J.add($);for(let oe of A[$]??[]){let me=k(oe.source,new Set(J));if(me)return T.set($,me),me}return T.set($,null),null},L=new Map,P=($,J=new Set)=>{let oe=L.get($);if(oe)return new Set(oe);let me=new Set;return J.has($)||(J.add($),l.has($)&&me.add($),f.filter(Ke=>Ke.source===$).forEach(Ke=>{P(Ke.target,new Set(J)).forEach(Le=>me.add(Le))}),L.set($,new Set(me))),me},j=new Map,F=($,J=new Set)=>{let oe=j.get($);if(oe)return new Set(oe);let me=new Set;return J.has($)||(J.add($),l.has($)?me.add($):(d[$]??[]).forEach(Le=>{F(Le.target,new Set(J)).forEach(mt=>me.add(mt))}),j.set($,new Set(me))),me},W=($,J)=>{if(!J)return!0;let oe=F($);return oe.size===0||[...oe].every(me=>J.has(me))},H=$=>F($).size>1,G=($,J)=>Array.from((u[$]??[]).filter(oe=>oe.source&&oe.target&&!l.has(oe.source)&&W(oe.source,J)&&(oe.targetHandle?.startsWith("fieldInput/")||oe.targetHandle?.startsWith("codeField/"))).sort((oe,me)=>Rd($,oe.targetHandle,r)-Rd($,me.targetHandle,r)||(p.get(oe)??0)-(p.get(me)??0)||oe.source.localeCompare(me.source)).reduce((oe,me)=>(oe.has(me.source)||oe.set(me.source,me),oe),new Map).values()),ie=($,J=new Set,oe)=>{let me=s[$];if(!me)return{left:0,right:0,top:0,bottom:0};let Ke=Io(me),Le={left:0,right:Ke.width,top:0,bottom:Ke.height};if(J.has($))return Le;J.add($);let mt=0,_t=null;return G($,oe).forEach((nn,jt)=>{let xn=s[nn.source];if(!xn)return;let Hr=Io(xn),_r=D6(xn,me),ki=Oke(xn,me),dl=mt-(jt===0?_r:0)-Hr.height,qr=Math.min(-ki-VZ*jt,_t?_t.left-Rke:Number.POSITIVE_INFINITY),ei=Pke(ie(xn.id,new Set(J),oe),{x:qr,y:dl});Le=YC(Le,ei),_t=_t?YC(_t,ei):ei,mt=ei.top-WZ}),Le},z=($,J,oe=new Set)=>{let me=v.get($);if(!me)return ie($,new Set,J);let Ke=ie($,new Set,J);return oe.has($)||(oe.add($),f.filter(Le=>Le.source===$).forEach(Le=>{let mt=v.get(Le.target);mt&&(Ke=YC(Ke,Pke(z(Le.target,J,new Set(oe)),{x:mt.x-me.x,y:mt.y-me.y})))})),Ke};Object.entries(x).forEach(([$,J])=>{if(J.length<2)return;let oe=a.find(Ht=>Ht.id===$),me=v.get($);if(!oe||!me)return;let Ke=new Set,Le=J.map((Ht,Ra)=>({edge:Ht,index:Ra,pathIndexes:Kke(Ht.sourceHandle)})),mt=Le.every(({pathIndexes:Ht})=>Ht.length>=2),_t=mt?Array.from(new Set(Le.map(({pathIndexes:Ht})=>Ht[0]))).sort((Ht,Ra)=>Ht-Ra):[],nn=mt?Array.from(new Set(Le.map(({pathIndexes:Ht})=>Ht[1]))).sort((Ht,Ra)=>Ht-Ra):[],jt=mt&&Le.length>3&&(_t.length===1||nn.length===1),xn=mt&&!jt,Hr=Math.max(1,Math.ceil(Math.sqrt(Le.length))),_r=Le.map(({edge:Ht,index:Ra,pathIndexes:ul})=>{let Kd=s[Ht.target],WS=v.get(Ht.target);if(!Kd||!WS)return null;let Q2=xn?_t.indexOf(ul[0]):Math.floor(Ra/Hr),qS=xn?nn.indexOf(ul[1]):Ra%Hr,Bf=z(Ht.target,P(Ht.target));return{edge:Ht,targetPosition:WS,row:Q2,column:qS,footprint:Bf,footprintWidth:Bf.right-Bf.left,footprintHeight:Bf.bottom-Bf.top}}).filter(Ht=>Ht!==null&&Ht.row>=0&&Ht.column>=0);if(_r.length===0)return;let ki=Math.max(..._r.map(Ht=>Ht.column))+1,dl=Math.max(..._r.map(Ht=>Ht.row))+1,qr=Array.from({length:ki},()=>0),ei=Array.from({length:dl},()=>0);_r.forEach(Ht=>{qr[Ht.column]=Math.max(qr[Ht.column],Ht.footprintWidth),ei[Ht.row]=Math.max(ei[Ht.row],Ht.footprintHeight)});let sa=xn?Sot:xot,qd=xn?Eke:_ot,Ny=qr.reduce((Ht,Ra,ul)=>{let Kd=ul===0?0:Ht[ul-1]+qr[ul-1]+sa;return Ht.push(Kd),Ht},[]),Ly=ei.reduce((Ht,Ra,ul)=>{let Kd=ul===0?0:Ht[ul-1]+ei[ul-1]+qd;return Ht.push(Kd),Ht},[]),Zp=ei.reduce((Ht,Ra)=>Ht+Ra,0)+Math.max(0,dl-1)*qd,My=Io(oe),X2=me.x+My.width+sa,J2=me.y+My.height/2-Zp/2;_r.forEach(Ht=>{let Ra=X2+Ny[Ht.column]+(qr[Ht.column]-Ht.footprintWidth)/2,ul=J2+Ly[Ht.row]+(ei[Ht.row]-Ht.footprintHeight)/2,Kd={x:Ra-Ht.footprint.left,y:ul-Ht.footprint.top};S(Ht.edge.target,{x:Kd.x-Ht.targetPosition.x,y:Kd.y-Ht.targetPosition.y},Ke)})});let M=new Map,Q=($,J=new Set)=>{if(M.has($))return M.get($)??null;if(l.has($))return M.set($,$),$;if(J.has($))return null;J.add($);for(let oe of d[$]??[]){let me=Q(oe.target,J);if(me)return M.set($,me),me}for(let oe of u[$]??[]){let me=Q(oe.source,J);if(me)return M.set($,me),me}return M.set($,null),null},X=new Map,V=($,J,oe=new Set)=>{let me=`${$}:${J}`;if(X.has(me))return X.get(me)??0;if($===J)return X.set(me,0),0;if(oe.has($))return 0;oe.add($);let Ke=0;for(let Le of d[$]??[]){let mt=V(Le.target,J,oe);(mt>0||Le.target===J)&&(Ke=Math.max(Ke,mt+1))}return X.set(me,Ke),Ke},te=o.filter($=>!l.has($.id)).reduce(($,J)=>{let oe=Q(J.id);return oe&&($[oe]=[...$[oe]??[],J]),$},{}),le=o.map($=>{let J=v.get($.id);return J?{...$,position:{...J}}:$}).reduce(($,J)=>($[J.id]=J,$),{}),Pe=(()=>{let $=t.reduce((oe,me)=>{if(!me.source||!me.target||!me.targetHandle?.startsWith("fieldInput/"))return oe;let Ke=s[me.source],Le=s[me.target];return Ke?.type!=="state"||Le?.type!=="app"||(oe[me.target]=[...oe[me.target]??[],me]),oe},{}),J=new Map;return Object.entries($).forEach(([oe,me])=>{let Ke=s[oe],Le=new Set(me.map(mt=>mt.source));!Ke||!Mke(Ke,Le.size)||Le.forEach(mt=>{J.set(mt,oe)})}),J})(),Ie=new Map,De=($,J)=>{let oe=Ie.get(J);return oe?$===J?0:oe.get($)??1:$===J?0:1},nt=($,J,oe)=>{let me=[],Ke=(Le,mt,_t,nn)=>{let jt=le[mt]??s[mt];if(!jt)return;let xn=De(mt,J),Hr=xn===oe-1?0:xn<oe?1:2;if(Hr>1)return;let{width:_r}=Io($);me.push({centerX:Bke(jt,_t,r)-$ke($,nn,r)+_r/2,order:Rd(mt,_t,r),priority:Hr})};for(let Le of d[$.id]??[])Ke(Le,Le.target,Le.targetHandle,Le.sourceHandle);for(let Le of u[$.id]??[])Ke(Le,Le.source,Le.sourceHandle,Le.targetHandle);if(me.length===0){let Le=le[J]??s[J];return{centerX:UZ(Le||$),order:Number.MAX_SAFE_INTEGER}}return me.sort((Le,mt)=>Le.priority-mt.priority||Le.order-mt.order||Le.centerX-mt.centerX),{centerX:me[0].centerX,order:me[0].order}};Object.entries(te).forEach(([$,J])=>{let oe=le[$]??s[$];if(!oe)return;let me=new Map;J.forEach(mt=>{me.set(mt.id,Math.max(1,V(mt.id,$)))}),Ie.set($,me);let Ke=Math.max(...me.values(),1),Le=oe.position.y-Ike;for(let mt=1;mt<=Ke;mt+=1){let _t=J.filter(_r=>me.get(_r.id)===mt&&!Pe.has(_r.id));if(_t.length===0)continue;let nn=Math.max(..._t.map(_r=>Io(_r).height)),jt=Le-nn,xn=_t.map(_r=>{let ki=nt(_r,$,mt);return{node:_r,desiredCenterX:ki.centerX,order:ki.order}}),Hr=zke(xn,Hke);_t.forEach(_r=>{let ki=Io(_r);le[_r.id]={..._r,position:{x:Hr.get(_r.id)??UZ(oe)-ki.width/2,y:jt+nn-ki.height}}}),Le=jt-Ike}});let gt=($,J,oe,me)=>{let Ke=Io($),Le=Io(J);return $.position.x<J.position.x+Le.width+oe&&$.position.x+Ke.width+oe>J.position.x&&$.position.y<J.position.y+Le.height+me&&$.position.y+Ke.height+me>J.position.y},Wt=($,J)=>{le[$.id]={...$,position:J}},ce=($,J)=>{$.forEach(oe=>{let me=le[oe]??s[oe];me&&Wt(me,{x:me.position.x+J.x,y:me.position.y+J.y})})},Jn=new Map,Yt=$=>!!($.source&&$.target&&!l.has($.source)&&($.targetHandle?.startsWith("fieldInput/")||$.targetHandle?.startsWith("codeField/"))),ye=t.reduce(($,J)=>(Yt(J)&&($[J.target]=[...$[J.target]??[],J]),$),{}),He=($,J)=>Array.from((ye[$]??[]).filter(oe=>W(oe.source,J)).sort((oe,me)=>Rd($,oe.targetHandle,r)-Rd($,me.targetHandle,r)||(p.get(oe)??0)-(p.get(me)??0)||oe.source.localeCompare(me.source)).reduce((oe,me)=>(oe.has(me.source)||oe.set(me.source,me),oe),new Map).values()),tn=($,J)=>{let oe=$.position.y;return J.forEach((me,Ke)=>{let Le=le[me.source]??s[me.source];if(!Le)return;let mt=Io(Le),_t=Ke===0?D6(Le,$):0;oe=oe-_t-mt.height-Fke}),oe},$n=($,J=new Set,oe)=>{let me=le[$]??s[$];if(!me)return null;let Ke=GC(me);return J.has($)||(J.add($),He($,oe).forEach(Le=>{let mt=le[Le.source]??s[Le.source];if(!mt||l.has(mt.id))return;let _t=$n(mt.id,new Set(J),oe);_t&&(Ke=YC(Ke,_t))})),Ke},Or=($,J=new Set,oe)=>{if(J.has($))return;J.add($);let me=le[$]??s[$];if(!me)return;let Ke=He($,oe),Le=Ke.filter(jt=>Pe.get(jt.source)===$),mt=Ke.filter(jt=>{let xn=le[jt.source]??s[jt.source];return xn&&!l.has(xn.id)&&Pe.get(xn.id)!==$});if(me.type==="code"&&mt.length>Fw)return;let _t=Le.length>0?tn(me,Le):me.position.y,nn=null;mt.forEach((jt,xn)=>{let Hr=le[jt.source]??s[jt.source];if(!Hr)return;let _r=Io(Hr),ki=D6(Hr,me),dl=Oke(Hr,me),qr=_t-(xn===0?ki:0)-_r.height,ei=Math.min(me.position.x-dl-VZ*xn,nn?nn.left-Rke:Number.POSITIVE_INFINITY);Wt(Hr,{x:ei,y:qr}),Or(Hr.id,new Set(J),oe);let sa=$n(Hr.id,new Set(J),oe);sa&&(nn=nn?YC(nn,sa):sa),_t=(sa?.top??qr)-WZ})},et=()=>{a.map($=>le[$.id]??$).sort(($,J)=>$.position.x-J.position.x||$.position.y-J.position.y||(m.get($.id)??0)-(m.get(J.id)??0)||$.id.localeCompare(J.id)).forEach($=>{Or($.id,new Set,P($.id))})},bn=()=>{let $=new Map;return a.forEach(J=>{let oe=k(J.id)??J.id,me=$.get(oe)??new Set;me.add(J.id),$.set(oe,me)}),o.forEach(J=>{if(l.has(J.id)||H(J.id))return;let oe=Q(J.id);if(!oe||!l.has(oe))return;let me=k(oe)??oe,Ke=$.get(me)??new Set;Ke.add(J.id),$.set(me,Ke)}),$},ir=($,J)=>$.top<J.bottom+Tke&&$.bottom+Tke>J.top,Ee=($,J)=>{let oe=0;return $.forEach(me=>{let Ke=le[me]??s[me];if(!Ke)return;let Le=GC(Ke);J.forEach(mt=>{let _t=le[mt]??s[mt];if(!_t)return;let nn=GC(_t);!(Le.left<nn.right&&Le.right>nn.left)||!ir(Le,nn)||(oe=Math.max(oe,nn.right+kot-Le.left))})}),oe},Ge=$=>Array.from($).map(J=>le[J]??s[J]).filter(J=>!!J).map(GC).reduce((J,oe)=>J?YC(J,oe):oe,null),Pt=$=>Math.min(...Array.from($).map(J=>m.get(J)??Number.MAX_SAFE_INTEGER)),yn=$=>{let J=Array.from($).find(oe=>l.has(oe));return J?y(J):null},pr=()=>{let $=bn(),J=[];Array.from($.values()).sort((oe,me)=>{let Ke=Ge(oe),Le=Ge(me);return(Ke?.left??0)-(Le?.left??0)||(Ke?.top??0)-(Le?.top??0)||Pt(oe)-Pt(me)}).forEach(oe=>{let me=yn(oe);for(let Ke=0;Ke<BZ;Ke+=1){let Le=J.filter(mt=>mt.componentId===me).reduce((mt,_t)=>Math.max(mt,Ee(oe,_t.nodeIds)),0);if(Le<=0)break;ce(oe,{x:Le,y:0})}J.push({nodeIds:oe,componentId:me})})},Br=()=>{let $=new Map;return a.forEach(J=>{let oe=y(J.id);if(!oe)return;let me=$.get(oe)??new Set;me.add(J.id),$.set(oe,me)}),o.forEach(J=>{if(l.has(J.id))return;let oe=Q(J.id),me=oe?y(oe):null;if(!me)return;let Ke=$.get(me)??new Set;Ke.add(J.id),$.set(me,Ke)}),$},fi=($,J)=>{let oe=0;return $.forEach(me=>{let Ke=le[me]??s[me];if(!Ke)return;let Le=GC(Ke);J.forEach(mt=>{let _t=le[mt]??s[mt];if(!_t)return;let nn=GC(_t),jt=Le.left<nn.right+Ake&&Le.right+Ake>nn.left,xn=Le.top<nn.bottom+zZ&&Le.bottom+zZ>nn.top;!jt||!xn||(oe=Math.max(oe,nn.bottom+zZ-Le.top))})}),oe},Zo=()=>{let $=Array.from(Br().values()).sort((oe,me)=>{let Ke=Ge(oe),Le=Ge(me);return(Ke?.top??0)-(Le?.top??0)||(Ke?.left??0)-(Le?.left??0)||Pt(oe)-Pt(me)}),J=[];$.forEach(oe=>{for(let me=0;me<BZ;me+=1){let Ke=J.reduce((Le,mt)=>Math.max(Le,fi(oe,mt.nodeIds)),0);if(Ke<=0)break;ce(oe,{x:0,y:Ke})}J.push({nodeIds:oe})})},Ki=()=>{let $=t.reduce((J,oe)=>{if(!oe.source||!oe.target||!oe.targetHandle?.startsWith("codeField/"))return J;let me=le[oe.source]??s[oe.source],Ke=le[oe.target]??s[oe.target];return!me||Ke?.type!=="code"||l.has(me.id)||(J[oe.target]=[...J[oe.target]??[],oe]),J},{});Object.entries($).forEach(([J,oe])=>{if(oe.length<=Fw)return;let me=le[J]??s[J];if(!me)return;let Ke=Array.from(oe.sort((jt,xn)=>Rd(J,jt.targetHandle,r)-Rd(J,xn.targetHandle,r)||(p.get(jt)??0)-(p.get(xn)??0)||jt.source.localeCompare(xn.source)).reduce((jt,xn)=>(jt.has(xn.source)||jt.set(xn.source,xn),jt),new Map).values()),Le=Ke.filter(jt=>(le[jt.source]??s[jt.source])?.type==="state"),mt=Ke.filter(jt=>(le[jt.source]??s[jt.source])?.type!=="state"),_t=[];for(let jt=0;jt<Le.length;jt+=Fw)_t.push(Le.slice(jt,jt+Fw));for(let jt=0;jt<mt.length;jt+=Fw)_t.push(mt.slice(jt,jt+Fw));let nn=me.position.y-Qot;for(let[jt,xn]of _t.entries()){let Hr=xn.map((qr,ei)=>{let sa=le[qr.source]??s[qr.source];return sa?{node:sa,desiredCenterX:Bke(me,qr.targetHandle,r),order:jt*Fw+ei}:null}).filter(qr=>qr!==null);if(Hr.length===0)continue;let _r=Math.max(...Hr.map(qr=>Io(qr.node).height)),ki=nn-_r,dl=zke(Hr,Jot);Hr.forEach(qr=>{let ei=Io(qr.node);Wt(qr.node,{x:dl.get(qr.node.id)??qr.desiredCenterX-ei.width/2,y:ki+_r-ei.height})}),nn=ki-Zot}})},Fa=()=>{t.filter(J=>{let oe=le[J.source]??s[J.source],me=le[J.target]??s[J.target];return oe&&me&&ig(oe)&&me.type==="app"&&!ig(me)&&F(oe.id).size===0&&!l.has(oe.id)&&!l.has(me.id)&&J.sourceHandle==="fieldOutput"&&!!J.targetHandle?.startsWith("fieldInput/")}).sort((J,oe)=>{let me=Q(J.source),Ke=Q(oe.source),Le=me?De(J.source,me):0,mt=Ke?De(oe.source,Ke):0;return Le-mt||J.source.localeCompare(oe.source)}).forEach(J=>{let oe=le[J.source]??s[J.source],me=le[J.target]??s[J.target];if(!oe||!me)return;let Ke=Io(oe),Le=Io(me);Wt(oe,{x:me.position.x-Ke.width-Eot,y:me.position.y+(Le.height-Ke.height)/2})})},zr=()=>{Jn.clear();let $=t.reduce((J,oe)=>{if(!oe.source||!oe.target||!oe.targetHandle?.startsWith("fieldInput/"))return J;let me=le[oe.source]??s[oe.source],Ke=le[oe.target]??s[oe.target];return me?.type!=="state"||Ke?.type!=="app"||(J[oe.target]=[...J[oe.target]??[],oe]),J},{});Object.entries($).forEach(([J,oe])=>{let me=le[J]??s[J];if(!me)return;let Le=Array.from(oe.sort((_t,nn)=>Rd(J,_t.targetHandle,r)-Rd(J,nn.targetHandle,r)||(p.get(_t)??0)-(p.get(nn)??0)||_t.source.localeCompare(nn.source)).reduce((_t,nn)=>(_t.has(nn.source)||_t.set(nn.source,nn),_t),new Map).values()).map(_t=>le[_t.source]??s[_t.source]).filter(_t=>!!_t);if(Le.length===0||!Mke(me,Le.length))return;let mt=me.position.y;Le.forEach((_t,nn)=>{let jt=Io(_t),xn=nn===0?D6(_t,me):0,Hr=mt-xn-jt.height;Jn.set(_t.id,J),Wt(_t,{x:me.position.x-Uke-Iot*nn,y:Hr}),mt=Hr-Fke})})},hi=()=>{let $=o.map(oe=>oe.id).filter(oe=>l.has(oe)).sort((oe,me)=>{let Ke=le[oe]??s[oe],Le=le[me]??s[me];return Ke.position.y-Le.position.y||Ke.position.x-Le.position.x||oe.localeCompare(me)}),J=o.map(oe=>oe.id).filter(oe=>!l.has(oe)).sort((oe,me)=>{let Ke=le[oe]??s[oe],Le=le[me]??s[me];return Ke.position.y-Le.position.y||Ke.position.x-Le.position.x||oe.localeCompare(me)});for(let oe=0;oe<BZ;oe+=1){let me=!1;for(let Ke of J){let Le=le[Ke]??s[Ke],mt=Io(Le);for(let _t of $){let nn=le[_t]??s[_t],jt=Jn.has(Le.id),xn=Jn.get(Le.id)===_t;if(!gt(Le,nn,jt&&!xn?0:rR,jt&&!xn?0:OZ))continue;let ki=nn.position.y-mt.height-OZ;ki<Le.position.y&&(Wt(Le,{x:Le.position.x,y:ki}),me=!0)}}for(let Ke=0;Ke<J.length;Ke+=1)for(let Le=Ke+1;Le<J.length;Le+=1){let mt=le[J[Ke]]??s[J[Ke]],_t=le[J[Le]]??s[J[Le]],nn=Jn.get(mt.id),jt=Jn.get(_t.id),xn=nn&&nn===jt,Hr=nn===_t.id||jt===mt.id,_r=xn||Hr;if(!gt(mt,_t,_r?0:rR,_r?0:OZ))continue;let qr=Jn.has(mt.id),ei=Jn.has(_t.id),[sa,qd]=qr!==ei?qr?[mt,_t]:[_t,mt]:mt.position.x<=_t.position.x?[mt,_t]:[_t,mt],Ny=Io(sa),Ly=Io(qd),Zp=qd.position.x<sa.position.x?sa.position.x-Ly.width-rR:sa.position.x+Ny.width+rR;Wt(qd,{x:Zp,y:qd.position.y}),me=!0}if(!me)break}};return Fa(),Ki(),zr(),hi(),Fa(),Ki(),zr(),hi(),Ki(),zr(),et(),Fa(),zr(),Ki(),pr(),Zo(),o.map($=>le[$.id]??$)}function Yke(e){if(!e||typeof e!="object")return null;let t=e.apply;if(!t||typeof t!="object")return null;let n=t,r=n.runtime==="reload"||n.runtime==="restart"?n.runtime:"none",o=Array.isArray(n.listeners)?n.listeners.filter(a=>!!a&&typeof a=="object"&&typeof a.address=="string"&&typeof a.port=="number").map(a=>({address:a.address,port:a.port,tls:a.tls===!0})):[],i=Array.isArray(n.system)?n.system.filter(a=>typeof a=="string"):[];return{runtime:r,listeners:o,listeners_changed:n.listeners_changed===!0,system:i}}function KZ(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}function lit(e,t){let n=KZ(t).toLowerCase();return e.address===""||e.address==="0.0.0.0"||e.address==="::"?!0:e.address==="127.0.0.1"||e.address==="::1"?n==="localhost"||n==="127.0.0.1"||n==="::1":e.address.toLowerCase()===n}function cit(e){return e.port?Number(e.port):e.protocol==="https:"?443:80}function Xke(e,t){let n=t.filter(c=>lit(c,e.hostname));if(n.length===0)return null;let r=e.protocol==="https:",o=cit(e);if(n.some(c=>c.tls===r&&c.port===o))return null;let i=n.find(c=>c.tls===r)??n[0];if(!i)return null;let a=i.tls?"https":"http",s=i.tls?443:80,l=KZ(e.hostname).includes(":")?`[${KZ(e.hostname)}]`:e.hostname;return`${a}://${l}${i.port===s?"":`:${i.port}`}`}var Gke={timezone:"setting the system time zone",mounts:"mounting the Samba shares",driver_setup:"running display driver setup"};function Jke(e,t){if(!e)return"Saved";let n=[];e.runtime==="restart"&&n.push("restarting FrameOS to apply the display settings");for(let r of e.system)Gke[r]&&n.push(Gke[r]);return t&&n.push(`moving to ${t}`),n.length>0?`Saved, ${n.join(", ")}`:"Saved"}var dit=!1;function Qke(e){dit=!0;let{pathname:t,search:n,hash:r}=window.location;window.location.assign(`${e}${t}${n}${r}`)}function M6(e){let t=new Uint8Array(e);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(t);else for(let o=0;o<t.length;o++)t[o]=Math.floor(Math.random()*256);let n=Array.from(t);return btoa(String.fromCharCode.apply(null,n)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var tc=N(fIe(),1);function hIe(e){return[{name:"commonName",value:e}]}function Ylt(e){let t=e.split(".");return t.length===4&&t.every(n=>/^\d+$/.test(n)&&Number(n)>=0&&Number(n)<=255)}function Xlt(e){return Ylt(e)||e.includes(":")&&/^[0-9a-fA-F:.]+$/.test(e)}function Jlt(e){let t=[{type:2,value:"localhost"},{type:7,ip:"127.0.0.1"}];return e&&t.push(Xlt(e)?{type:7,ip:e}:{type:2,value:e}),[{name:"subjectAltName",altNames:t}]}function gIe(){return`01${tc.util.bytesToHex(tc.random.getBytesSync(15))}`}function bIe(e,t){return new Date(e.getTime()+t*24*60*60*1e3)}function yIe(e){return e.toISOString().replace("Z","+00:00")}function vIe(e){let t=e.trim(),n=new Date,r=new Date(n.getTime()-300*1e3),o=tc.pki.rsa.generateKeyPair({bits:2048,e:65537}),i=tc.pki.createCertificate();i.publicKey=o.publicKey,i.serialNumber=gIe(),i.validity.notBefore=r,i.validity.notAfter=bIe(n,3650);let a=hIe(`FrameOS Frame CA (${t||"frame"})`);i.setSubject(a),i.setIssuer(a),i.setExtensions([{name:"basicConstraints",cA:!0,critical:!0},{name:"keyUsage",digitalSignature:!0,keyCertSign:!0,cRLSign:!0,critical:!0}]),i.sign(o.privateKey,tc.md.sha256.create());let s=tc.pki.rsa.generateKeyPair({bits:2048,e:65537}),l=tc.pki.createCertificate();return l.publicKey=s.publicKey,l.serialNumber=gIe(),l.validity.notBefore=r,l.validity.notAfter=bIe(n,825),l.setSubject(hIe(t||"frame.local")),l.setIssuer(i.subject.attributes),l.setExtensions([...Jlt(t),{name:"basicConstraints",cA:!1,critical:!0},{name:"extKeyUsage",serverAuth:!0},{name:"keyUsage",digitalSignature:!0,keyEncipherment:!0,critical:!0}]),l.sign(o.privateKey,tc.md.sha256.create()),{certs:{server:tc.pki.certificateToPem(l),server_key:tc.pki.privateKeyToPem(s.privateKey),client_ca:tc.pki.certificateToPem(i)},server_cert_not_valid_after:yIe(l.validity.notAfter),client_ca_cert_not_valid_after:yIe(i.validity.notAfter)}}function Qlt(e,t){return(e.name||e.id).localeCompare(t.name||t.id,void 0,{numeric:!0,sensitivity:"base"})||String(e.id).localeCompare(String(t.id))}function wIe(e){return[...e].toSorted(Qlt)}var uk={frameos:"2026.11.0+5032e561bec25a4958dcd21509e1f4063b8d9266",editor:"2026.11.0+e83e3c7eeee3f1e8796cbe47f8e63ec31bdf4ef4",remote:"2026.9.13+f8ceef0a9efd7da03511d84a9b8000fabf3f9949",docker:"2026.11.0+70bf3c043fd23330388872c9933268370ea7f0b4"};var jxn=[{value:"",label:"Prefer binaries, build from source if needed"},{value:"precompiled",label:`Install precompiled binaries (version ${uk.frameos.split("+")[0]})`},{value:"static",label:"Build from source - single binary (legacy: needs a build environment)"}];function wR(e){return e==="shared"||e==="shared-scenes"?"static":e==="static"||e==="precompiled"?e:"precompiled"}function SR(e){return e==="embedded"}function xs(e,t){return SR(t)?"interpreted":Yee(e)}function xR(e,t){return xs(e,t)!=="interpreted"}function Yee(e){let t=e?.settings?.execution;return t==="compiled"||t==="interpreted"?t:"interpreted"}var Xee="https://scenes.frameos.net/nim-converter",SIe="Preview runs the interpreter: this scene's Nim code nodes and Nim apps are not executed here. Convert the scene to JavaScript to see it whole.",ect=`This makes the scene compiled (legacy): it will need a full FrameOS source build on every deploy.
|
|
10931
10931
|
|
|
10932
10932
|
Keep it interpreted instead and convert it to an interpreted scene at ${Xee}?
|
|
10933
10933
|
|
|
@@ -11562,4 +11562,4 @@ monaco-editor/esm/vs/language/json/monaco.contribution.js:
|
|
|
11562
11562
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
11563
11563
|
*-----------------------------------------------------------------------------*)
|
|
11564
11564
|
*/
|
|
11565
|
-
//# sourceMappingURL=chunk-
|
|
11565
|
+
//# sourceMappingURL=chunk-ME6B3RC4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,b as e,c as t,d as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=editor-
|
|
1
|
+
import{a as i,b as e,c as t,d as r}from"./chunk-ME6B3RC4.js";import"./chunk-3BLCY6UO.js";import"./chunk-UQ47VFV7.js";import"./chunk-YVLZL2DF.js";import"./chunk-LJLSS6VP.js";import"./chunk-IO5HD6LR.js";import"./chunk-ISGRWLZB.js";import"./chunk-CMJLLXM5.js";import"./chunk-S7YZLIQ2.js";import"./chunk-QOR6RVYK.js";import"./chunk-IGSWCXWL.js";import"./chunk-XY25BMCC.js";import"./chunk-MYJDNFHV.js";import"./chunk-XX6D4PCV.js";import"./chunk-FFF5XN2E.js";import"./chunk-4E35PBBI.js";import"./chunk-I5YU2QOB.js";import"./chunk-NMLR6BBX.js";import"./chunk-OZMHIOOM.js";import"./chunk-VY54N476.js";import"./chunk-IAT3SH6V.js";import"./chunk-NKBKRXAI.js";import"./chunk-7WRUHYVT.js";import"./chunk-UQ2OIIDY.js";import"./chunk-SYSYBEFC.js";import"./chunk-P7EAYOW2.js";import"./chunk-UE65FKDK.js";import"./chunk-XRXYPYNZ.js";import"./chunk-2AMRXN7J.js";import"./chunk-MQ6GXGQP.js";import"./chunk-WXJNV4KM.js";import"./chunk-MMFEMX4D.js";import"./chunk-JMW7BC3H.js";import"./chunk-RIEQ6JT2.js";import"./chunk-76H6TNVU.js";import"./chunk-3PWLJ7VB.js";import"./chunk-RUT5KRF7.js";import"./chunk-PRLZJXP3.js";import"./chunk-UHBPDWMK.js";import"./chunk-PF2U73FX.js";import"./chunk-NLF7C362.js";import"./chunk-DNNQJI7D.js";import"./chunk-HYBSLNBW.js";import"./chunk-XA5PSH3Z.js";import"./chunk-BQIQDJSQ.js";import"./chunk-Q677WDQ5.js";import"./chunk-GQZ2XFQS.js";import"./chunk-6JGNP3CG.js";import"./chunk-KNM3LS47.js";import"./chunk-TQXNETKV.js";import"./chunk-K7SEZQEV.js";import"./chunk-35SNHSYE.js";import"./chunk-KI45N7NV.js";import"./chunk-YZMIVIZ5.js";import"./chunk-EXFFRG4T.js";import"./chunk-6ZBQJK6J.js";import"./chunk-2CR2MHW5.js";import"./chunk-YEUXEZFN.js";import"./chunk-GIOZPKCU.js";import"./chunk-RSVXJNBI.js";import"./chunk-6SG4JVGQ.js";import"./chunk-TOACPXU7.js";import"./chunk-OMEEZ2KP.js";import"./chunk-GQHVCGHB.js";import"./chunk-T24SSVPV.js";import"./chunk-T6RP4BD5.js";import"./chunk-4WRNN7GJ.js";import"./chunk-RUZ27PU2.js";import"./chunk-U5PEY4LZ.js";import"./chunk-ANIO6SZU.js";import"./chunk-7FDFD2RA.js";import"./chunk-2BO64G4N.js";import"./chunk-QFJGXGHG.js";import"./chunk-HCICVWA5.js";import"./chunk-SDHBPXRH.js";import"./chunk-7PUP564T.js";import"./chunk-FTRSNC63.js";import"./chunk-45FHXPEV.js";import"./chunk-LJCV6PN4.js";import"./chunk-YO6OY3Y3.js";import"./chunk-R7WVBZOR.js";import"./chunk-YA2PAOL6.js";import"./chunk-UMBBSV56.js";import"./chunk-KWJBJL5V.js";import"./chunk-YAIRCXNW.js";import"./chunk-5LOLNRAG.js";import"./chunk-OHNXNH3I.js";import"./chunk-YY6U53S3.js";import"./chunk-KDVTGBVQ.js";import"./chunk-NM5KCVND.js";import"./chunk-M52Y7THK.js";import"./chunk-UXYDP2GA.js";import"./chunk-5XO4Z6GR.js";import"./chunk-JQHJLBQS.js";import"./chunk-T3C76GSG.js";import"./chunk-ERWUOBST.js";import"./chunk-XMK64KOA.js";import"./chunk-XC57KLDG.js";import"./chunk-BQAFRR3J.js";import"./chunk-SJKWNSPY.js";import"./chunk-UZILS5FV.js";import"./chunk-BJQMVKVY.js";import"./chunk-3T3ARG3E.js";import"./chunk-5EHDUP6F.js";import"./chunk-R3CIFBZ5.js";import"./chunk-HV5HARVF.js";import"./chunk-TR4FEZFI.js";import"./chunk-2EHDYPYD.js";import"./chunk-DHGVBQ7P.js";import"./chunk-VSSLVNAR.js";import"./chunk-3PV5T5XU.js";import"./chunk-MTA7GLUS.js";import"./chunk-VTLK6Q27.js";import"./chunk-MBGDWTMS.js";import"./chunk-5QCMYUDE.js";import"./chunk-FMFLZD4C.js";import"./chunk-TRRBPBPW.js";import"./chunk-OJ3POHII.js";import"./chunk-MQZSDER5.js";import"./chunk-AO6PVYSP.js";import"./chunk-HUSYQ7O4.js";import"./chunk-WJVGIUKU.js";import"./chunk-2HSKHBQ3.js";import"./chunk-JF4IGMKP.js";import"./chunk-PEGTBE7W.js";import"./chunk-BROXBG6H.js";import"./chunk-7SX4UPLE.js";import"./chunk-ZFPGT7UB.js";import"./chunk-EKY6EZHW.js";import"./chunk-ZUBO4ZEH.js";import"./chunk-R53F7DXM.js";import"./chunk-K4DA7VO4.js";import"./chunk-QOEI2BB3.js";import"./chunk-ILLKJPPP.js";import"./chunk-LUKWWQ4Q.js";import"./chunk-UX2VV7NR.js";import"./chunk-NYPIF35V.js";import"./chunk-HDCXYMSE.js";import"./chunk-BJ5KKFRX.js";import"./chunk-35GGXXL4.js";import"./chunk-5HFCOS36.js";import"./chunk-BJ2H527R.js";import"./chunk-EXJ3TYPN.js";import"./chunk-22JI2C23.js";import"./chunk-FIBLU6JW.js";import"./chunk-PBWK4RSZ.js";import"./chunk-T4NNGQKH.js";import"./chunk-Y7GVIX2K.js";import"./chunk-UFBZ5RUP.js";import"./chunk-J43IOAV2.js";import"./chunk-G6BUUK3X.js";import"./chunk-RAQFCDSA.js";import"./chunk-GHOBFR25.js";import"./chunk-LEY7YUND.js";import"./chunk-VAW5CAKL.js";import"./chunk-W4T2JBHA.js";import"./chunk-6VNLT34U.js";import"./chunk-PKMWTI6A.js";import"./chunk-V3O2HLLM.js";import"./chunk-2CK4H4PK.js";import"./chunk-KN2A4UI3.js";import"./chunk-2DVAQSTR.js";import"./chunk-TMZXKUJ7.js";import"./chunk-4ZWCIZGW.js";import"./chunk-ZCHP3MYE.js";import"./chunk-ITXPPIKB.js";import"./chunk-JCKQGVLY.js";import"./chunk-SRASGVKV.js";import"./chunk-5TETHXKM.js";import"./chunk-GZPBQVE7.js";import"./chunk-B2GEUQZK.js";import"./chunk-C7WBA5UQ.js";import"./chunk-IZBV4PHK.js";import"./chunk-M2SCIUFO.js";import"./chunk-PGDMHBNI.js";import"./chunk-TIYOD65A.js";import"./chunk-PKANRYX6.js";import"./chunk-WLNBEVIM.js";import"./chunk-N45EUFA3.js";import"./chunk-DO57ZZNQ.js";import"./chunk-UTGGNDEF.js";import"./chunk-HE75YTAD.js";import"./chunk-TG4FTNP7.js";import"./chunk-VPAZW4IE.js";import"./chunk-QS2GJJXN.js";import"./chunk-MUJL7FQJ.js";import"./chunk-EKULWSLH.js";import"./chunk-KFMQ6GVV.js";import"./chunk-QPHGFD2Y.js";import"./chunk-HP4P4Z2R.js";import"./chunk-RSVFNNQ3.js";import"./chunk-XGBDEWZH.js";import"./chunk-NIZ3DLMN.js";import"./chunk-XPNMKQBN.js";import"./chunk-2VFZQK6H.js";import"./chunk-B4MC4X6R.js";import"./chunk-ZS3FCIDW.js";import"./chunk-JIPHTHEV.js";import"./chunk-EO6ZVYAU.js";import"./chunk-QHFNREED.js";import"./chunk-QTGI3NVE.js";import"./chunk-PUR6MQ67.js";import"./chunk-WLGZI23G.js";import"./chunk-BCZI2XYX.js";import"./chunk-OW25EIRT.js";import"./chunk-72VW33X6.js";import"./chunk-TTRVH5FY.js";import"./chunk-SVUYFOZB.js";import"./chunk-C4UW2SIM.js";import"./chunk-AG7KROZ7.js";import"./chunk-DNTASBVS.js";import"./chunk-FOT4BL2J.js";import"./chunk-ZTZIWYY7.js";import"./chunk-XIBMFQYW.js";import"./chunk-2JIMXGVJ.js";import"./chunk-W7UDHTT3.js";import"./chunk-Y6EQGSOI.js";import"./chunk-FF6M56TZ.js";import"./chunk-AITXKHH2.js";import"./chunk-2CMV52NX.js";import"./chunk-ZHSIL7EQ.js";import"./chunk-UCNHTX5Z.js";import"./chunk-OWNULEI4.js";import"./chunk-5HXEWEG7.js";import"./chunk-D7NTWXPI.js";import"./chunk-CW2G3GTX.js";import"./chunk-VPMBH7ED.js";import"./chunk-RBAETNMK.js";import"./chunk-6DJ3CL5E.js";import"./chunk-D4ZCQ4ZB.js";import"./chunk-SLMOCOVC.js";import"./chunk-WA3SGGGN.js";import"./chunk-ATTGRJIS.js";import"./chunk-I72JNYAW.js";import"./chunk-AMJO5MXW.js";import"./chunk-LERWLC26.js";import"./chunk-VBQRXBKN.js";import"./chunk-N7U6FF65.js";import"./chunk-UDQ657MP.js";import"./chunk-FNMPMXLQ.js";import"./chunk-SMV4XGKK.js";import"./chunk-2IXING64.js";import"./chunk-SFFASEUX.js";import"./chunk-TSAMHA74.js";import"./chunk-RNLPRU3L.js";import"./chunk-CCFDPXNH.js";import"./chunk-WTXODJNE.js";import"./chunk-HKVEG3TJ.js";import"./chunk-3Z2SL3LO.js";import"./chunk-A2J4PCL3.js";import"./chunk-ZAL7QAHA.js";import"./chunk-LSMPUXCK.js";import"./chunk-ZLXR3HBB.js";import"./chunk-MLFFVQ4H.js";import"./chunk-H7ZYEXEY.js";import"./chunk-6MVDPGZ3.js";import"./chunk-OUZK3JE3.js";import"./chunk-I4YHVXUS.js";import"./chunk-XAPIUMOF.js";import"./chunk-ILONVRIF.js";import"./chunk-VHQT6GPD.js";import"./chunk-JMTINDL5.js";import"./chunk-NKKHM6BH.js";import"./chunk-335U7CYZ.js";import"./chunk-L2TNAAQN.js";import"./chunk-WWRVMGI5.js";import"./chunk-ZJQQ5HGS.js";import"./chunk-YUQEO6UE.js";import"./chunk-KPGFYNDA.js";import"./chunk-CW3J33TN.js";import"./chunk-2HPZX3VT.js";import"./chunk-H2EJ2FXO.js";import"./chunk-27K5BE5C.js";import"./chunk-L6ZOAPPM.js";import"./chunk-2JMILQ6B.js";import"./chunk-FWGXBW4L.js";import"./chunk-GB2W6K7K.js";import"./chunk-MHSPATEG.js";import"./chunk-FODM75CC.js";import"./chunk-GZ3APDMX.js";import"./chunk-M4R7TXHA.js";import"./chunk-HPCIGI5Y.js";import"./chunk-F2I44VCA.js";import"./chunk-OJ7LTCWX.js";import"./chunk-XOIR265Z.js";import"./chunk-JDEUN4XM.js";import"./chunk-YKPUVWML.js";import"./chunk-KULXXWBI.js";import"./chunk-3U5632TD.js";import"./chunk-QQJTKUTN.js";import"./chunk-BJLZZSSQ.js";import"./chunk-B65HAB74.js";import"./chunk-FTY3DS4C.js";import"./chunk-5P6WZP6E.js";import"./chunk-2PXTM6RE.js";import"./chunk-AR6BFW4D.js";import"./chunk-U2LA4WCV.js";import"./chunk-L23DVICG.js";import"./chunk-77IJP7IA.js";import"./chunk-PEQWA434.js";import"./chunk-JQPBSXCG.js";import"./chunk-LYRW73XL.js";import"./chunk-ALC3I3V2.js";import{d as o}from"./chunk-A34ONGYR.js";var m=o(i(),1);var d=o(t(),1);e({memoryRouter:!0});m.default.createRoot(document.getElementById("root")).render((0,d.jsx)(r,{}));
|
|
2
|
+
//# sourceMappingURL=editor-ZF6XV7MW.js.map
|
package/dist/static/editor.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,b as e,c as t,d as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=editor-
|
|
1
|
+
import{a as i,b as e,c as t,d as r}from"./chunk-ME6B3RC4.js";import"./chunk-3BLCY6UO.js";import"./chunk-UQ47VFV7.js";import"./chunk-YVLZL2DF.js";import"./chunk-LJLSS6VP.js";import"./chunk-IO5HD6LR.js";import"./chunk-ISGRWLZB.js";import"./chunk-CMJLLXM5.js";import"./chunk-S7YZLIQ2.js";import"./chunk-QOR6RVYK.js";import"./chunk-IGSWCXWL.js";import"./chunk-XY25BMCC.js";import"./chunk-MYJDNFHV.js";import"./chunk-XX6D4PCV.js";import"./chunk-FFF5XN2E.js";import"./chunk-4E35PBBI.js";import"./chunk-I5YU2QOB.js";import"./chunk-NMLR6BBX.js";import"./chunk-OZMHIOOM.js";import"./chunk-VY54N476.js";import"./chunk-IAT3SH6V.js";import"./chunk-NKBKRXAI.js";import"./chunk-7WRUHYVT.js";import"./chunk-UQ2OIIDY.js";import"./chunk-SYSYBEFC.js";import"./chunk-P7EAYOW2.js";import"./chunk-UE65FKDK.js";import"./chunk-XRXYPYNZ.js";import"./chunk-2AMRXN7J.js";import"./chunk-MQ6GXGQP.js";import"./chunk-WXJNV4KM.js";import"./chunk-MMFEMX4D.js";import"./chunk-JMW7BC3H.js";import"./chunk-RIEQ6JT2.js";import"./chunk-76H6TNVU.js";import"./chunk-3PWLJ7VB.js";import"./chunk-RUT5KRF7.js";import"./chunk-PRLZJXP3.js";import"./chunk-UHBPDWMK.js";import"./chunk-PF2U73FX.js";import"./chunk-NLF7C362.js";import"./chunk-DNNQJI7D.js";import"./chunk-HYBSLNBW.js";import"./chunk-XA5PSH3Z.js";import"./chunk-BQIQDJSQ.js";import"./chunk-Q677WDQ5.js";import"./chunk-GQZ2XFQS.js";import"./chunk-6JGNP3CG.js";import"./chunk-KNM3LS47.js";import"./chunk-TQXNETKV.js";import"./chunk-K7SEZQEV.js";import"./chunk-35SNHSYE.js";import"./chunk-KI45N7NV.js";import"./chunk-YZMIVIZ5.js";import"./chunk-EXFFRG4T.js";import"./chunk-6ZBQJK6J.js";import"./chunk-2CR2MHW5.js";import"./chunk-YEUXEZFN.js";import"./chunk-GIOZPKCU.js";import"./chunk-RSVXJNBI.js";import"./chunk-6SG4JVGQ.js";import"./chunk-TOACPXU7.js";import"./chunk-OMEEZ2KP.js";import"./chunk-GQHVCGHB.js";import"./chunk-T24SSVPV.js";import"./chunk-T6RP4BD5.js";import"./chunk-4WRNN7GJ.js";import"./chunk-RUZ27PU2.js";import"./chunk-U5PEY4LZ.js";import"./chunk-ANIO6SZU.js";import"./chunk-7FDFD2RA.js";import"./chunk-2BO64G4N.js";import"./chunk-QFJGXGHG.js";import"./chunk-HCICVWA5.js";import"./chunk-SDHBPXRH.js";import"./chunk-7PUP564T.js";import"./chunk-FTRSNC63.js";import"./chunk-45FHXPEV.js";import"./chunk-LJCV6PN4.js";import"./chunk-YO6OY3Y3.js";import"./chunk-R7WVBZOR.js";import"./chunk-YA2PAOL6.js";import"./chunk-UMBBSV56.js";import"./chunk-KWJBJL5V.js";import"./chunk-YAIRCXNW.js";import"./chunk-5LOLNRAG.js";import"./chunk-OHNXNH3I.js";import"./chunk-YY6U53S3.js";import"./chunk-KDVTGBVQ.js";import"./chunk-NM5KCVND.js";import"./chunk-M52Y7THK.js";import"./chunk-UXYDP2GA.js";import"./chunk-5XO4Z6GR.js";import"./chunk-JQHJLBQS.js";import"./chunk-T3C76GSG.js";import"./chunk-ERWUOBST.js";import"./chunk-XMK64KOA.js";import"./chunk-XC57KLDG.js";import"./chunk-BQAFRR3J.js";import"./chunk-SJKWNSPY.js";import"./chunk-UZILS5FV.js";import"./chunk-BJQMVKVY.js";import"./chunk-3T3ARG3E.js";import"./chunk-5EHDUP6F.js";import"./chunk-R3CIFBZ5.js";import"./chunk-HV5HARVF.js";import"./chunk-TR4FEZFI.js";import"./chunk-2EHDYPYD.js";import"./chunk-DHGVBQ7P.js";import"./chunk-VSSLVNAR.js";import"./chunk-3PV5T5XU.js";import"./chunk-MTA7GLUS.js";import"./chunk-VTLK6Q27.js";import"./chunk-MBGDWTMS.js";import"./chunk-5QCMYUDE.js";import"./chunk-FMFLZD4C.js";import"./chunk-TRRBPBPW.js";import"./chunk-OJ3POHII.js";import"./chunk-MQZSDER5.js";import"./chunk-AO6PVYSP.js";import"./chunk-HUSYQ7O4.js";import"./chunk-WJVGIUKU.js";import"./chunk-2HSKHBQ3.js";import"./chunk-JF4IGMKP.js";import"./chunk-PEGTBE7W.js";import"./chunk-BROXBG6H.js";import"./chunk-7SX4UPLE.js";import"./chunk-ZFPGT7UB.js";import"./chunk-EKY6EZHW.js";import"./chunk-ZUBO4ZEH.js";import"./chunk-R53F7DXM.js";import"./chunk-K4DA7VO4.js";import"./chunk-QOEI2BB3.js";import"./chunk-ILLKJPPP.js";import"./chunk-LUKWWQ4Q.js";import"./chunk-UX2VV7NR.js";import"./chunk-NYPIF35V.js";import"./chunk-HDCXYMSE.js";import"./chunk-BJ5KKFRX.js";import"./chunk-35GGXXL4.js";import"./chunk-5HFCOS36.js";import"./chunk-BJ2H527R.js";import"./chunk-EXJ3TYPN.js";import"./chunk-22JI2C23.js";import"./chunk-FIBLU6JW.js";import"./chunk-PBWK4RSZ.js";import"./chunk-T4NNGQKH.js";import"./chunk-Y7GVIX2K.js";import"./chunk-UFBZ5RUP.js";import"./chunk-J43IOAV2.js";import"./chunk-G6BUUK3X.js";import"./chunk-RAQFCDSA.js";import"./chunk-GHOBFR25.js";import"./chunk-LEY7YUND.js";import"./chunk-VAW5CAKL.js";import"./chunk-W4T2JBHA.js";import"./chunk-6VNLT34U.js";import"./chunk-PKMWTI6A.js";import"./chunk-V3O2HLLM.js";import"./chunk-2CK4H4PK.js";import"./chunk-KN2A4UI3.js";import"./chunk-2DVAQSTR.js";import"./chunk-TMZXKUJ7.js";import"./chunk-4ZWCIZGW.js";import"./chunk-ZCHP3MYE.js";import"./chunk-ITXPPIKB.js";import"./chunk-JCKQGVLY.js";import"./chunk-SRASGVKV.js";import"./chunk-5TETHXKM.js";import"./chunk-GZPBQVE7.js";import"./chunk-B2GEUQZK.js";import"./chunk-C7WBA5UQ.js";import"./chunk-IZBV4PHK.js";import"./chunk-M2SCIUFO.js";import"./chunk-PGDMHBNI.js";import"./chunk-TIYOD65A.js";import"./chunk-PKANRYX6.js";import"./chunk-WLNBEVIM.js";import"./chunk-N45EUFA3.js";import"./chunk-DO57ZZNQ.js";import"./chunk-UTGGNDEF.js";import"./chunk-HE75YTAD.js";import"./chunk-TG4FTNP7.js";import"./chunk-VPAZW4IE.js";import"./chunk-QS2GJJXN.js";import"./chunk-MUJL7FQJ.js";import"./chunk-EKULWSLH.js";import"./chunk-KFMQ6GVV.js";import"./chunk-QPHGFD2Y.js";import"./chunk-HP4P4Z2R.js";import"./chunk-RSVFNNQ3.js";import"./chunk-XGBDEWZH.js";import"./chunk-NIZ3DLMN.js";import"./chunk-XPNMKQBN.js";import"./chunk-2VFZQK6H.js";import"./chunk-B4MC4X6R.js";import"./chunk-ZS3FCIDW.js";import"./chunk-JIPHTHEV.js";import"./chunk-EO6ZVYAU.js";import"./chunk-QHFNREED.js";import"./chunk-QTGI3NVE.js";import"./chunk-PUR6MQ67.js";import"./chunk-WLGZI23G.js";import"./chunk-BCZI2XYX.js";import"./chunk-OW25EIRT.js";import"./chunk-72VW33X6.js";import"./chunk-TTRVH5FY.js";import"./chunk-SVUYFOZB.js";import"./chunk-C4UW2SIM.js";import"./chunk-AG7KROZ7.js";import"./chunk-DNTASBVS.js";import"./chunk-FOT4BL2J.js";import"./chunk-ZTZIWYY7.js";import"./chunk-XIBMFQYW.js";import"./chunk-2JIMXGVJ.js";import"./chunk-W7UDHTT3.js";import"./chunk-Y6EQGSOI.js";import"./chunk-FF6M56TZ.js";import"./chunk-AITXKHH2.js";import"./chunk-2CMV52NX.js";import"./chunk-ZHSIL7EQ.js";import"./chunk-UCNHTX5Z.js";import"./chunk-OWNULEI4.js";import"./chunk-5HXEWEG7.js";import"./chunk-D7NTWXPI.js";import"./chunk-CW2G3GTX.js";import"./chunk-VPMBH7ED.js";import"./chunk-RBAETNMK.js";import"./chunk-6DJ3CL5E.js";import"./chunk-D4ZCQ4ZB.js";import"./chunk-SLMOCOVC.js";import"./chunk-WA3SGGGN.js";import"./chunk-ATTGRJIS.js";import"./chunk-I72JNYAW.js";import"./chunk-AMJO5MXW.js";import"./chunk-LERWLC26.js";import"./chunk-VBQRXBKN.js";import"./chunk-N7U6FF65.js";import"./chunk-UDQ657MP.js";import"./chunk-FNMPMXLQ.js";import"./chunk-SMV4XGKK.js";import"./chunk-2IXING64.js";import"./chunk-SFFASEUX.js";import"./chunk-TSAMHA74.js";import"./chunk-RNLPRU3L.js";import"./chunk-CCFDPXNH.js";import"./chunk-WTXODJNE.js";import"./chunk-HKVEG3TJ.js";import"./chunk-3Z2SL3LO.js";import"./chunk-A2J4PCL3.js";import"./chunk-ZAL7QAHA.js";import"./chunk-LSMPUXCK.js";import"./chunk-ZLXR3HBB.js";import"./chunk-MLFFVQ4H.js";import"./chunk-H7ZYEXEY.js";import"./chunk-6MVDPGZ3.js";import"./chunk-OUZK3JE3.js";import"./chunk-I4YHVXUS.js";import"./chunk-XAPIUMOF.js";import"./chunk-ILONVRIF.js";import"./chunk-VHQT6GPD.js";import"./chunk-JMTINDL5.js";import"./chunk-NKKHM6BH.js";import"./chunk-335U7CYZ.js";import"./chunk-L2TNAAQN.js";import"./chunk-WWRVMGI5.js";import"./chunk-ZJQQ5HGS.js";import"./chunk-YUQEO6UE.js";import"./chunk-KPGFYNDA.js";import"./chunk-CW3J33TN.js";import"./chunk-2HPZX3VT.js";import"./chunk-H2EJ2FXO.js";import"./chunk-27K5BE5C.js";import"./chunk-L6ZOAPPM.js";import"./chunk-2JMILQ6B.js";import"./chunk-FWGXBW4L.js";import"./chunk-GB2W6K7K.js";import"./chunk-MHSPATEG.js";import"./chunk-FODM75CC.js";import"./chunk-GZ3APDMX.js";import"./chunk-M4R7TXHA.js";import"./chunk-HPCIGI5Y.js";import"./chunk-F2I44VCA.js";import"./chunk-OJ7LTCWX.js";import"./chunk-XOIR265Z.js";import"./chunk-JDEUN4XM.js";import"./chunk-YKPUVWML.js";import"./chunk-KULXXWBI.js";import"./chunk-3U5632TD.js";import"./chunk-QQJTKUTN.js";import"./chunk-BJLZZSSQ.js";import"./chunk-B65HAB74.js";import"./chunk-FTY3DS4C.js";import"./chunk-5P6WZP6E.js";import"./chunk-2PXTM6RE.js";import"./chunk-AR6BFW4D.js";import"./chunk-U2LA4WCV.js";import"./chunk-L23DVICG.js";import"./chunk-77IJP7IA.js";import"./chunk-PEQWA434.js";import"./chunk-JQPBSXCG.js";import"./chunk-LYRW73XL.js";import"./chunk-ALC3I3V2.js";import{d as o}from"./chunk-A34ONGYR.js";var m=o(i(),1);var d=o(t(),1);e({memoryRouter:!0});m.default.createRoot(document.getElementById("root")).render((0,d.jsx)(r,{}));
|
|
2
|
+
//# sourceMappingURL=editor-ZF6XV7MW.js.map
|