diff --git a/custom_components/cafe/__init__.py b/custom_components/cafe/__init__.py deleted file mode 100644 index 5d5ebf8..0000000 --- a/custom_components/cafe/__init__.py +++ /dev/null @@ -1,37 +0,0 @@ -"""C.A.F.E. - Visual automation editor for Home Assistant.""" -from __future__ import annotations - -import logging -from pathlib import Path - -from homeassistant.core import HomeAssistant -from homeassistant.helpers.typing import ConfigType - -from .const import DOMAIN -from .panel import async_register_panel, async_unregister_panel - -_LOGGER = logging.getLogger(__name__) - - -async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: - """Set up the C.A.F.E. component.""" - # This will be called when the integration is loaded - # But actual setup happens in async_setup_entry - return True - - -async def async_setup_entry(hass: HomeAssistant, entry) -> bool: - """Set up C.A.F.E. from a config entry.""" - - # Register the panel (frontend) - await async_register_panel(hass) - - _LOGGER.info("C.A.F.E. integration set up successfully") - - return True - - -async def async_unload_entry(hass: HomeAssistant, entry) -> bool: - """Unload a config entry.""" - async_unregister_panel(hass) - return True diff --git a/custom_components/cafe/__pycache__/__init__.cpython-314.pyc b/custom_components/cafe/__pycache__/__init__.cpython-314.pyc deleted file mode 100644 index 84a7e0f..0000000 Binary files a/custom_components/cafe/__pycache__/__init__.cpython-314.pyc and /dev/null differ diff --git a/custom_components/cafe/__pycache__/config_flow.cpython-314.pyc b/custom_components/cafe/__pycache__/config_flow.cpython-314.pyc deleted file mode 100644 index 2ea7dc5..0000000 Binary files a/custom_components/cafe/__pycache__/config_flow.cpython-314.pyc and /dev/null differ diff --git a/custom_components/cafe/__pycache__/const.cpython-314.pyc b/custom_components/cafe/__pycache__/const.cpython-314.pyc deleted file mode 100644 index d47419c..0000000 Binary files a/custom_components/cafe/__pycache__/const.cpython-314.pyc and /dev/null differ diff --git a/custom_components/cafe/__pycache__/panel.cpython-314.pyc b/custom_components/cafe/__pycache__/panel.cpython-314.pyc deleted file mode 100644 index 90d4d22..0000000 Binary files a/custom_components/cafe/__pycache__/panel.cpython-314.pyc and /dev/null differ diff --git a/custom_components/cafe/config_flow.py b/custom_components/cafe/config_flow.py deleted file mode 100644 index b75f25e..0000000 --- a/custom_components/cafe/config_flow.py +++ /dev/null @@ -1,53 +0,0 @@ -"""Config flow for C.A.F.E. integration.""" -from __future__ import annotations - -import logging -from typing import Any - -import voluptuous as vol - -from homeassistant import config_entries -from homeassistant.core import HomeAssistant -from homeassistant.data_entry_flow import FlowResult - -from .const import DOMAIN - -_LOGGER = logging.getLogger(__name__) - -STEP_USER_DATA_SCHEMA = vol.Schema({}) - - -class CafeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): - """Handle a config flow for C.A.F.E.""" - - VERSION = 1 - - async def async_step_user( - self, user_input: dict[str, Any] | None = None - ) -> FlowResult: - """Handle the initial step.""" - if user_input is not None: - # Check if already configured - await self.async_set_unique_id(DOMAIN) - self._abort_if_unique_id_configured() - - return self.async_create_entry( - title="C.A.F.E.", - data={} - ) - - return self.async_show_form( - step_id="user", - data_schema=STEP_USER_DATA_SCHEMA, - description_placeholders={ - "name": "C.A.F.E.", - "description": "Visual automation editor for Home Assistant" - } - ) - - async def async_step_import(self, user_input: dict[str, Any]) -> FlowResult: - """Handle import from configuration.yaml.""" - await self.async_set_unique_id(DOMAIN) - self._abort_if_unique_id_configured() - - return self.async_create_entry(title="C.A.F.E.", data={}) \ No newline at end of file diff --git a/custom_components/cafe/const.py b/custom_components/cafe/const.py deleted file mode 100644 index 3082abe..0000000 --- a/custom_components/cafe/const.py +++ /dev/null @@ -1,6 +0,0 @@ -"""Constants for C.A.F.E..""" - -DOMAIN = "cafe" -PANEL_URL = "/cafe_panel" -PANEL_TITLE = "C.A.F.E." -PANEL_ICON = "mdi:coffee-to-go" diff --git a/custom_components/cafe/manifest.json b/custom_components/cafe/manifest.json deleted file mode 100644 index 10571c4..0000000 --- a/custom_components/cafe/manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "cafe", - "name": "C.A.F.E.", - "version": "0.6.0", - "codeowners": [], - "config_flow": true, - "dependencies": ["frontend", "http"], - "documentation": "https://github.com/FezVrasta/cafe-hass", - "documentation_url": "https://github.com/FezVrasta/cafe-hass", - "integration_type": "service", - "iot_class": "local_push", - "issue_tracker": "https://github.com/FezVrasta/cafe-hass/issues", - "requirements": [] -} diff --git a/custom_components/cafe/panel.py b/custom_components/cafe/panel.py deleted file mode 100644 index af41f1e..0000000 --- a/custom_components/cafe/panel.py +++ /dev/null @@ -1,66 +0,0 @@ -"""Panel for C.A.F.E.""" -import os -import logging -from pathlib import Path - -from homeassistant.core import HomeAssistant -from homeassistant.components import frontend, panel_custom -from homeassistant.components.http import StaticPathConfig - -from .const import DOMAIN, PANEL_TITLE, PANEL_ICON - -_LOGGER = logging.getLogger(__name__) - -PANEL_URL = f"/api/{DOMAIN}_panel" -PANEL_NAME = f"{DOMAIN}-panel" - - -async def async_register_panel(hass: HomeAssistant) -> None: - """Register the C.A.F.E. panel.""" - # Get the path to the www folder within the component - www_path = Path(__file__).parent / "www" - - # Register static path for the frontend assets - await hass.http.async_register_static_paths([ - StaticPathConfig("/cafe-hass", str(www_path), False) - ]) - - # The panel wrapper has a fixed name (not hashed) - wrapper_path = www_path / "assets" / "panel-wrapper.js" - if not wrapper_path.exists(): - _LOGGER.error("panel-wrapper.js not found in assets directory") - _LOGGER.error(f"www path: {www_path}, assets exist: {(www_path / 'assets').exists()}") - return - - # Add cache-busting parameter to force fresh load - import time - cache_bust = int(time.time()) - module_url = f"/cafe-hass/assets/panel-wrapper.js?v={cache_bust}" - - # First try to unregister any existing panel - try: - hass.data.get("frontend_panels", {}).pop(DOMAIN, None) - _LOGGER.info("Removed any existing panel registration") - except: - pass - - # Register the panel as a custom panel with module_url - await panel_custom.async_register_panel( - hass, - webcomponent_name=PANEL_NAME, - frontend_url_path=DOMAIN, - module_url=module_url, - sidebar_title=PANEL_TITLE, - sidebar_icon=PANEL_ICON, - require_admin=True, - config={}, - config_panel_domain=DOMAIN, - ) - - _LOGGER.info("C.A.F.E. panel registered successfully with iframe wrapper") - - -def async_unregister_panel(hass: HomeAssistant) -> None: - """Unregister the C.A.F.E. panel.""" - frontend.async_remove_panel(hass, DOMAIN) - _LOGGER.info("C.A.F.E. panel unregistered") diff --git a/custom_components/cafe/strings.json b/custom_components/cafe/strings.json deleted file mode 100644 index e1e0c57..0000000 --- a/custom_components/cafe/strings.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "config": { - "title": "C.A.F.E.", - "step": { - "user": { - "title": "Set up C.A.F.E.", - "description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant." - } - }, - "abort": { - "already_configured": "C.A.F.E. is already configured" - } - } -} diff --git a/custom_components/cafe/translations/en.json b/custom_components/cafe/translations/en.json deleted file mode 100644 index e1e0c57..0000000 --- a/custom_components/cafe/translations/en.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "config": { - "title": "C.A.F.E.", - "step": { - "user": { - "title": "Set up C.A.F.E.", - "description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant." - } - }, - "abort": { - "already_configured": "C.A.F.E. is already configured" - } - } -} diff --git a/custom_components/cafe/www/assets/main-BIzscans.js b/custom_components/cafe/www/assets/main-BIzscans.js deleted file mode 100644 index d926855..0000000 --- a/custom_components/cafe/www/assets/main-BIzscans.js +++ /dev/null @@ -1,552 +0,0 @@ -var Y3n=Object.defineProperty;var J3n=(n,i,a)=>i in n?Y3n(n,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[i]=a;var Xf=(n,i,a)=>J3n(n,typeof i!="symbol"?i+"":i,a);function X3n(n,i){for(var a=0;ac[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const g of d)if(g.type==="childList")for(const b of g.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&c(b)}).observe(document,{childList:!0,subtree:!0});function a(d){const g={};return d.integrity&&(g.integrity=d.integrity),d.referrerPolicy&&(g.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?g.credentials="include":d.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function c(d){if(d.ep)return;d.ep=!0;const g=a(d);fetch(d.href,g)}})();var xM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var L$t={exports:{}},Tse={},M$t={exports:{}},Rs={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dz=Symbol.for("react.element"),Z3n=Symbol.for("react.portal"),Q3n=Symbol.for("react.fragment"),eCn=Symbol.for("react.strict_mode"),tCn=Symbol.for("react.profiler"),nCn=Symbol.for("react.provider"),rCn=Symbol.for("react.context"),iCn=Symbol.for("react.forward_ref"),oCn=Symbol.for("react.suspense"),sCn=Symbol.for("react.memo"),aCn=Symbol.for("react.lazy"),MLt=Symbol.iterator;function uCn(n){return n===null||typeof n!="object"?null:(n=MLt&&n[MLt]||n["@@iterator"],typeof n=="function"?n:null)}var P$t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j$t=Object.assign,F$t={};function R5(n,i,a){this.props=n,this.context=i,this.refs=F$t,this.updater=a||P$t}R5.prototype.isReactComponent={};R5.prototype.setState=function(n,i){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,i,"setState")};R5.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function $$t(){}$$t.prototype=R5.prototype;function dLe(n,i,a){this.props=n,this.context=i,this.refs=F$t,this.updater=a||P$t}var fLe=dLe.prototype=new $$t;fLe.constructor=dLe;j$t(fLe,R5.prototype);fLe.isPureReactComponent=!0;var PLt=Array.isArray,B$t=Object.prototype.hasOwnProperty,hLe={current:null},U$t={key:!0,ref:!0,__self:!0,__source:!0};function H$t(n,i,a){var c,d={},g=null,b=null;if(i!=null)for(c in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)B$t.call(i,c)&&!U$t.hasOwnProperty(c)&&(d[c]=i[c]);var w=arguments.length-2;if(w===1)d.children=a;else if(1>>1,qe=Te[bt];if(0>>1;bt<_t;){var At=2*(bt+1)-1,ft=Te[At],Kt=At+1,kt=Te[Kt];if(0>d(ft,Je))Ktd(kt,ft)?(Te[bt]=kt,Te[Kt]=Je,bt=Kt):(Te[bt]=ft,Te[At]=Je,bt=At);else if(Ktd(kt,Je))Te[bt]=kt,Te[Kt]=Je,bt=Kt;else break e}}return ke}function d(Te,ke){var Je=Te.sortIndex-ke.sortIndex;return Je!==0?Je:Te.id-ke.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var b=Date,w=b.now();n.unstable_now=function(){return b.now()-w}}var E=[],S=[],k=1,_=null,C=3,R=!1,M=!1,D=!1,B=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(Te){for(var ke=a(S);ke!==null;){if(ke.callback===null)c(S);else if(ke.startTime<=Te)c(S),ke.sortIndex=ke.expirationTime,i(E,ke);else break;ke=a(S)}}function H(Te){if(D=!1,P(Te),!M)if(a(E)!==null)M=!0,Se(Q);else{var ke=a(S);ke!==null&&$e(H,ke.startTime-Te)}}function Q(Te,ke){M=!1,D&&(D=!1,F(ae),ae=-1),R=!0;var Je=C;try{for(P(ke),_=a(E);_!==null&&(!(_.expirationTime>ke)||Te&&!de());){var bt=_.callback;if(typeof bt=="function"){_.callback=null,C=_.priorityLevel;var qe=bt(_.expirationTime<=ke);ke=n.unstable_now(),typeof qe=="function"?_.callback=qe:_===a(E)&&c(E),P(ke)}else c(E);_=a(E)}if(_!==null)var _t=!0;else{var At=a(S);At!==null&&$e(H,At.startTime-ke),_t=!1}return _t}finally{_=null,C=Je,R=!1}}var re=!1,ee=null,ae=-1,he=5,ve=-1;function de(){return!(n.unstable_now()-veTe||125bt?(Te.sortIndex=Je,i(S,Te),a(E)===null&&Te===a(S)&&(D?(F(ae),ae=-1):D=!0,$e(H,Je-bt))):(Te.sortIndex=qe,i(E,Te),M||R||(M=!0,Se(Q))),Te},n.unstable_shouldYield=de,n.unstable_wrapCallback=function(Te){var ke=C;return function(){var Je=C;C=ke;try{return Te.apply(this,arguments)}finally{C=Je}}}})(W$t);V$t.exports=W$t;var yCn=V$t.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vCn=z,Bm=yCn;function ir(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JOe=Object.prototype.hasOwnProperty,ECn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,FLt={},$Lt={};function SCn(n){return JOe.call($Lt,n)?!0:JOe.call(FLt,n)?!1:ECn.test(n)?$Lt[n]=!0:(FLt[n]=!0,!1)}function TCn(n,i,a,c){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function ACn(n,i,a,c){if(i===null||typeof i>"u"||TCn(n,i,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function Vg(n,i,a,c,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=a,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var $h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){$h[n]=new Vg(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];$h[i]=new Vg(i,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){$h[n]=new Vg(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){$h[n]=new Vg(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){$h[n]=new Vg(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){$h[n]=new Vg(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){$h[n]=new Vg(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){$h[n]=new Vg(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){$h[n]=new Vg(n,5,!1,n.toLowerCase(),null,!1,!1)});var bLe=/[\-:]([a-z])/g;function mLe(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(bLe,mLe);$h[i]=new Vg(i,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(bLe,mLe);$h[i]=new Vg(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(bLe,mLe);$h[i]=new Vg(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){$h[n]=new Vg(n,1,!1,n.toLowerCase(),null,!1,!1)});$h.xlinkHref=new Vg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){$h[n]=new Vg(n,1,!1,n.toLowerCase(),null,!0,!0)});function wLe(n,i,a,c){var d=$h.hasOwnProperty(i)?$h[i]:null;(d!==null?d.type!==0:c||!(2w||d[b]!==g[w]){var E=` -`+d[b].replace(" at new "," at ");return n.displayName&&E.includes("")&&(E=E.replace("",n.displayName)),E}while(1<=b&&0<=w);break}}}finally{Z3e=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?GU(n):""}function _Cn(n){switch(n.tag){case 5:return GU(n.type);case 16:return GU("Lazy");case 13:return GU("Suspense");case 19:return GU("SuspenseList");case 0:case 2:case 15:return n=Q3e(n.type,!1),n;case 11:return n=Q3e(n.type.render,!1),n;case 1:return n=Q3e(n.type,!0),n;default:return""}}function e6e(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case CM:return"Fragment";case NM:return"Portal";case XOe:return"Profiler";case yLe:return"StrictMode";case ZOe:return"Suspense";case QOe:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case J$t:return(n.displayName||"Context")+".Consumer";case Y$t:return(n._context.displayName||"Context")+".Provider";case vLe:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ELe:return i=n.displayName||null,i!==null?i:e6e(n.type)||"Memo";case Mx:i=n._payload,n=n._init;try{return e6e(n(i))}catch{}}return null}function kCn(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return e6e(i);case 8:return i===yLe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function tN(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Z$t(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function xCn(n){var i=Z$t(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,g=a.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){c=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Vre(n){n._valueTracker||(n._valueTracker=xCn(n))}function Q$t(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var a=i.getValue(),c="";return n&&(c=Z$t(n)?n.checked?"true":"false":n.value),n=c,n!==a?(i.setValue(n),!0):!1}function coe(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function t6e(n,i){var a=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function ULt(n,i){var a=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;a=tN(i.value!=null?i.value:a),n._wrapperState={initialChecked:c,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function eBt(n,i){i=i.checked,i!=null&&wLe(n,"checked",i,!1)}function n6e(n,i){eBt(n,i);var a=tN(i.value),c=i.type;if(a!=null)c==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?r6e(n,i.type,a):i.hasOwnProperty("defaultValue")&&r6e(n,i.type,tN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function HLt(n,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,a||i===n.value||(n.value=i),n.defaultValue=i}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function r6e(n,i,a){(i!=="number"||coe(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var qU=Array.isArray;function WM(n,i,a,c){if(n=n.options,i){i={};for(var d=0;d"+i.valueOf().toString()+"",i=Wre.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function _H(n,i){if(i){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=i;return}}n.textContent=i}var oH={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},NCn=["Webkit","ms","Moz","O"];Object.keys(oH).forEach(function(n){NCn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),oH[i]=oH[n]})});function iBt(n,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||oH.hasOwnProperty(n)&&oH[n]?(""+i).trim():i+"px"}function oBt(n,i){n=n.style;for(var a in i)if(i.hasOwnProperty(a)){var c=a.indexOf("--")===0,d=iBt(a,i[a],c);a==="float"&&(a="cssFloat"),c?n.setProperty(a,d):n[a]=d}}var CCn=fl({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function s6e(n,i){if(i){if(CCn[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(ir(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(ir(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(ir(61))}if(i.style!=null&&typeof i.style!="object")throw Error(ir(62))}}function a6e(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var u6e=null;function SLe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var c6e=null,KM=null,YM=null;function qLt(n){if(n=pz(n)){if(typeof c6e!="function")throw Error(ir(280));var i=n.stateNode;i&&(i=Nse(i),c6e(n.stateNode,n.type,i))}}function sBt(n){KM?YM?YM.push(n):YM=[n]:KM=n}function aBt(){if(KM){var n=KM,i=YM;if(YM=KM=null,qLt(n),i)for(n=0;n>>=0,n===0?32:31-(BCn(n)/UCn|0)|0}var Kre=64,Yre=4194304;function VU(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function hoe(n,i){var a=n.pendingLanes;if(a===0)return 0;var c=0,d=n.suspendedLanes,g=n.pingedLanes,b=a&268435455;if(b!==0){var w=b&~d;w!==0?c=VU(w):(g&=b,g!==0&&(c=VU(g)))}else b=a&~d,b!==0?c=VU(b):g!==0&&(c=VU(g));if(c===0)return 0;if(i!==0&&i!==c&&!(i&d)&&(d=c&-c,g=i&-i,d>=g||d===16&&(g&4194240)!==0))return i;if(c&4&&(c|=a&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0a;a++)i.push(n);return i}function fz(n,i,a){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Ov(i),n[i]=a}function qCn(n,i){var a=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0=aH),eMt=" ",tMt=!1;function xBt(n,i){switch(n){case"keyup":return yIn.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NBt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var IM=!1;function EIn(n,i){switch(n){case"compositionend":return NBt(i);case"keypress":return i.which!==32?null:(tMt=!0,eMt);case"textInput":return n=i.data,n===eMt&&tMt?null:n;default:return null}}function SIn(n,i){if(IM)return n==="compositionend"||!ILe&&xBt(n,i)?(n=_Bt(),Fie=xLe=Ux=null,IM=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:a,offset:i-n};n=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=oMt(a)}}function OBt(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?OBt(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function DBt(){for(var n=window,i=coe();i instanceof n.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)n=i.contentWindow;else break;i=coe(n.document)}return i}function RLe(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function RIn(n){var i=DBt(),a=n.focusedElem,c=n.selectionRange;if(i!==a&&a&&a.ownerDocument&&OBt(a.ownerDocument.documentElement,a)){if(c!==null&&RLe(a)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(n,a.value.length);else if(n=(i=a.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var d=a.textContent.length,g=Math.min(c.start,d);c=c.end===void 0?g:Math.min(c.end,d),!n.extend&&g>c&&(d=c,c=g,g=d),d=sMt(a,g);var b=sMt(a,c);d&&b&&(n.rangeCount!==1||n.anchorNode!==d.node||n.anchorOffset!==d.offset||n.focusNode!==b.node||n.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(d.node,d.offset),n.removeAllRanges(),g>c?(n.addRange(i),n.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),n.addRange(i)))}}for(i=[],n=a;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,RM=null,g6e=null,cH=null,b6e=!1;function aMt(n,i,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;b6e||RM==null||RM!==coe(c)||(c=RM,"selectionStart"in c&&RLe(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),cH&&RH(cH,c)||(cH=c,c=boe(g6e,"onSelect"),0LM||(n.current=S6e[LM],S6e[LM]=null,LM--)}function Vu(n,i){LM++,S6e[LM]=n.current,n.current=i}var nN={},Bp=gN(nN),cb=gN(!1),nR=nN;function l5(n,i){var a=n.type.contextTypes;if(!a)return nN;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in a)d[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function lb(n){return n=n.childContextTypes,n!=null}function woe(){dc(cb),dc(Bp)}function pMt(n,i,a){if(Bp.current!==nN)throw Error(ir(168));Vu(Bp,i),Vu(cb,a)}function HBt(n,i,a){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var d in c)if(!(d in i))throw Error(ir(108,kCn(n)||"Unknown",d));return fl({},a,c)}function yoe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||nN,nR=Bp.current,Vu(Bp,n),Vu(cb,cb.current),!0}function gMt(n,i,a){var c=n.stateNode;if(!c)throw Error(ir(169));a?(n=HBt(n,i,nR),c.__reactInternalMemoizedMergedChildContext=n,dc(cb),dc(Bp),Vu(Bp,n)):dc(cb),Vu(cb,a)}var rA=null,Cse=!1,hCe=!1;function zBt(n){rA===null?rA=[n]:rA.push(n)}function zIn(n){Cse=!0,zBt(n)}function bN(){if(!hCe&&rA!==null){hCe=!0;var n=0,i=cu;try{var a=rA;for(cu=1;n>=b,d-=b,sA=1<<32-Ov(i)+d|a<ae?(he=ee,ee=null):he=ee.sibling;var ve=C(F,ee,P[ae],H);if(ve===null){ee===null&&(ee=he);break}n&&ee&&ve.alternate===null&&i(F,ee),$=g(ve,$,ae),re===null?Q=ve:re.sibling=ve,re=ve,ee=he}if(ae===P.length)return a(F,ee),Dc&&H4(F,ae),Q;if(ee===null){for(;aeae?(he=ee,ee=null):he=ee.sibling;var de=C(F,ee,ve.value,H);if(de===null){ee===null&&(ee=he);break}n&&ee&&de.alternate===null&&i(F,ee),$=g(de,$,ae),re===null?Q=de:re.sibling=de,re=de,ee=he}if(ve.done)return a(F,ee),Dc&&H4(F,ae),Q;if(ee===null){for(;!ve.done;ae++,ve=P.next())ve=_(F,ve.value,H),ve!==null&&($=g(ve,$,ae),re===null?Q=ve:re.sibling=ve,re=ve);return Dc&&H4(F,ae),Q}for(ee=c(F,ee);!ve.done;ae++,ve=P.next())ve=R(ee,F,ae,ve.value,H),ve!==null&&(n&&ve.alternate!==null&&ee.delete(ve.key===null?ae:ve.key),$=g(ve,$,ae),re===null?Q=ve:re.sibling=ve,re=ve);return n&&ee.forEach(function(ge){return i(F,ge)}),Dc&&H4(F,ae),Q}function B(F,$,P,H){if(typeof P=="object"&&P!==null&&P.type===CM&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case qre:e:{for(var Q=P.key,re=$;re!==null;){if(re.key===Q){if(Q=P.type,Q===CM){if(re.tag===7){a(F,re.sibling),$=d(re,P.props.children),$.return=F,F=$;break e}}else if(re.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Mx&&wMt(Q)===re.type){a(F,re.sibling),$=d(re,P.props),$.ref=OU(F,re,P),$.return=F,F=$;break e}a(F,re);break}else i(F,re);re=re.sibling}P.type===CM?($=X4(P.props.children,F.mode,H,P.key),$.return=F,F=$):(H=Vie(P.type,P.key,P.props,null,F.mode,H),H.ref=OU(F,$,P),H.return=F,F=H)}return b(F);case NM:e:{for(re=P.key;$!==null;){if($.key===re)if($.tag===4&&$.stateNode.containerInfo===P.containerInfo&&$.stateNode.implementation===P.implementation){a(F,$.sibling),$=d($,P.children||[]),$.return=F,F=$;break e}else{a(F,$);break}else i(F,$);$=$.sibling}$=ECe(P,F.mode,H),$.return=F,F=$}return b(F);case Mx:return re=P._init,B(F,$,re(P._payload),H)}if(qU(P))return M(F,$,P,H);if(xU(P))return D(F,$,P,H);nie(F,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,$!==null&&$.tag===6?(a(F,$.sibling),$=d($,P),$.return=F,F=$):(a(F,$),$=vCe(P,F.mode,H),$.return=F,F=$),b(F)):a(F,$)}return B}var f5=WBt(!0),KBt=WBt(!1),Soe=gN(null),Toe=null,jM=null,MLe=null;function PLe(){MLe=jM=Toe=null}function jLe(n){var i=Soe.current;dc(Soe),n._currentValue=i}function _6e(n,i,a){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===a)break;n=n.return}}function XM(n,i){Toe=n,MLe=jM=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&i&&(sb=!0),n.firstContext=null)}function Sw(n){var i=n._currentValue;if(MLe!==n)if(n={context:n,memoizedValue:i,next:null},jM===null){if(Toe===null)throw Error(ir(308));jM=n,Toe.dependencies={lanes:0,firstContext:n}}else jM=jM.next=n;return i}var W4=null;function FLe(n){W4===null?W4=[n]:W4.push(n)}function YBt(n,i,a,c){var d=i.interleaved;return d===null?(a.next=a,FLe(i)):(a.next=d.next,d.next=a),i.interleaved=a,gA(n,c)}function gA(n,i){n.lanes|=i;var a=n.alternate;for(a!==null&&(a.lanes|=i),a=n,n=n.return;n!==null;)n.childLanes|=i,a=n.alternate,a!==null&&(a.childLanes|=i),a=n,n=n.return;return a.tag===3?a.stateNode:null}var Px=!1;function $Le(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JBt(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function dA(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Kx(n,i,a){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,pa&2){var d=c.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),c.pending=i,gA(n,a)}return d=c.interleaved,d===null?(i.next=i,FLe(c)):(i.next=d.next,d.next=i),c.interleaved=i,gA(n,a)}function Bie(n,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,a|=c,i.lanes=a,ALe(n,a)}}function yMt(n,i){var a=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?d=g=b:g=g.next=b,a=a.next}while(a!==null);g===null?d=g=i:g=g.next=i}else d=g=i;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=i:n.next=i,a.lastBaseUpdate=i}function Aoe(n,i,a,c){var d=n.updateQueue;Px=!1;var g=d.firstBaseUpdate,b=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var E=w,S=E.next;E.next=null,b===null?g=S:b.next=S,b=E;var k=n.alternate;k!==null&&(k=k.updateQueue,w=k.lastBaseUpdate,w!==b&&(w===null?k.firstBaseUpdate=S:w.next=S,k.lastBaseUpdate=E))}if(g!==null){var _=d.baseState;b=0,k=S=E=null,w=g;do{var C=w.lane,R=w.eventTime;if((c&C)===C){k!==null&&(k=k.next={eventTime:R,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var M=n,D=w;switch(C=i,R=a,D.tag){case 1:if(M=D.payload,typeof M=="function"){_=M.call(R,_,C);break e}_=M;break e;case 3:M.flags=M.flags&-65537|128;case 0:if(M=D.payload,C=typeof M=="function"?M.call(R,_,C):M,C==null)break e;_=fl({},_,C);break e;case 2:Px=!0}}w.callback!==null&&w.lane!==0&&(n.flags|=64,C=d.effects,C===null?d.effects=[w]:C.push(w))}else R={eventTime:R,lane:C,tag:w.tag,payload:w.payload,callback:w.callback,next:null},k===null?(S=k=R,E=_):k=k.next=R,b|=C;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;C=w,w=C.next,C.next=null,d.lastBaseUpdate=C,d.shared.pending=null}}while(!0);if(k===null&&(E=_),d.baseState=E,d.firstBaseUpdate=S,d.lastBaseUpdate=k,i=d.shared.interleaved,i!==null){d=i;do b|=d.lane,d=d.next;while(d!==i)}else g===null&&(d.shared.lanes=0);oR|=b,n.lanes=b,n.memoizedState=_}}function vMt(n,i,a){if(n=i.effects,i.effects=null,n!==null)for(i=0;ia?a:4,n(!0);var c=gCe.transition;gCe.transition={};try{n(!1),i()}finally{cu=a,gCe.transition=c}}function hUt(){return Tw().memoizedState}function WIn(n,i,a){var c=Jx(n);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},pUt(n))gUt(i,a);else if(a=YBt(n,i,a,c),a!==null){var d=Hg();Dv(a,n,c,d),bUt(a,i,c)}}function KIn(n,i,a){var c=Jx(n),d={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(pUt(n))gUt(i,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var b=i.lastRenderedState,w=g(b,a);if(d.hasEagerState=!0,d.eagerState=w,Mv(w,b)){var E=i.interleaved;E===null?(d.next=d,FLe(i)):(d.next=E.next,E.next=d),i.interleaved=d;return}}catch{}finally{}a=YBt(n,i,d,c),a!==null&&(d=Hg(),Dv(a,n,c,d),bUt(a,i,c))}}function pUt(n){var i=n.alternate;return n===dl||i!==null&&i===dl}function gUt(n,i){lH=koe=!0;var a=n.pending;a===null?i.next=i:(i.next=a.next,a.next=i),n.pending=i}function bUt(n,i,a){if(a&4194240){var c=i.lanes;c&=n.pendingLanes,a|=c,i.lanes=a,ALe(n,a)}}var xoe={readContext:Sw,useCallback:Lp,useContext:Lp,useEffect:Lp,useImperativeHandle:Lp,useInsertionEffect:Lp,useLayoutEffect:Lp,useMemo:Lp,useReducer:Lp,useRef:Lp,useState:Lp,useDebugValue:Lp,useDeferredValue:Lp,useTransition:Lp,useMutableSource:Lp,useSyncExternalStore:Lp,useId:Lp,unstable_isNewReconciler:!1},YIn={readContext:Sw,useCallback:function(n,i){return k2().memoizedState=[n,i===void 0?null:i],n},useContext:Sw,useEffect:SMt,useImperativeHandle:function(n,i,a){return a=a!=null?a.concat([n]):null,Hie(4194308,4,uUt.bind(null,i,n),a)},useLayoutEffect:function(n,i){return Hie(4194308,4,n,i)},useInsertionEffect:function(n,i){return Hie(4,2,n,i)},useMemo:function(n,i){var a=k2();return i=i===void 0?null:i,n=n(),a.memoizedState=[n,i],n},useReducer:function(n,i,a){var c=k2();return i=a!==void 0?a(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=WIn.bind(null,dl,n),[c.memoizedState,n]},useRef:function(n){var i=k2();return n={current:n},i.memoizedState=n},useState:EMt,useDebugValue:WLe,useDeferredValue:function(n){return k2().memoizedState=n},useTransition:function(){var n=EMt(!1),i=n[0];return n=VIn.bind(null,n[1]),k2().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,a){var c=dl,d=k2();if(Dc){if(a===void 0)throw Error(ir(407));a=a()}else{if(a=i(),rh===null)throw Error(ir(349));iR&30||eUt(c,i,a)}d.memoizedState=a;var g={value:a,getSnapshot:i};return d.queue=g,SMt(nUt.bind(null,c,g,n),[n]),c.flags|=2048,$H(9,tUt.bind(null,c,g,a,i),void 0,null),a},useId:function(){var n=k2(),i=rh.identifierPrefix;if(Dc){var a=aA,c=sA;a=(c&~(1<<32-Ov(c)-1)).toString(32)+a,i=":"+i+"R"+a,a=jH++,0<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=b.createElement(a,{is:c.is}):(n=b.createElement(a),a==="select"&&(b=n,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):n=b.createElementNS(n,a),n[R2]=i,n[LH]=c,kUt(n,i,!1,!1),i.stateNode=n;e:{switch(b=a6e(a,c),a){case"dialog":cc("cancel",n),cc("close",n),d=c;break;case"iframe":case"object":case"embed":cc("load",n),d=c;break;case"video":case"audio":for(d=0;dg5&&(i.flags|=128,c=!0,DU(g,!1),i.lanes=4194304)}else{if(!c)if(n=_oe(b),n!==null){if(i.flags|=128,c=!0,a=n.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),DU(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Dc)return Mp(i),null}else 2*pd()-g.renderingStartTime>g5&&a!==1073741824&&(i.flags|=128,c=!0,DU(g,!1),i.lanes=4194304);g.isBackwards?(b.sibling=i.child,i.child=b):(a=g.last,a!==null?a.sibling=b:i.child=b,g.last=b)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=pd(),i.sibling=null,a=cl.current,Vu(cl,c?a&1|2:a&1),i):(Mp(i),null);case 22:case 23:return QLe(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&i.mode&1?Om&1073741824&&(Mp(i),i.subtreeFlags&6&&(i.flags|=8192)):Mp(i),null;case 24:return null;case 25:return null}throw Error(ir(156,i.tag))}function r4n(n,i){switch(DLe(i),i.tag){case 1:return lb(i.type)&&woe(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return h5(),dc(cb),dc(Bp),HLe(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 5:return ULe(i),null;case 13:if(dc(cl),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(ir(340));d5()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return dc(cl),null;case 4:return h5(),null;case 10:return jLe(i.type._context),null;case 22:case 23:return QLe(),null;case 24:return null;default:return null}}var iie=!1,Pp=!1,i4n=typeof WeakSet=="function"?WeakSet:Set,qr=null;function FM(n,i){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){jl(n,i,c)}else a.current=null}function L6e(n,i,a){try{a()}catch(c){jl(n,i,c)}}var DMt=!1;function o4n(n,i){if(m6e=poe,n=DBt(),RLe(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var d=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var b=0,w=-1,E=-1,S=0,k=0,_=n,C=null;t:for(;;){for(var R;_!==a||d!==0&&_.nodeType!==3||(w=b+d),_!==g||c!==0&&_.nodeType!==3||(E=b+c),_.nodeType===3&&(b+=_.nodeValue.length),(R=_.firstChild)!==null;)C=_,_=R;for(;;){if(_===n)break t;if(C===a&&++S===d&&(w=b),C===g&&++k===c&&(E=b),(R=_.nextSibling)!==null)break;_=C,C=_.parentNode}_=R}a=w===-1||E===-1?null:{start:w,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(w6e={focusedElem:n,selectionRange:a},poe=!1,qr=i;qr!==null;)if(i=qr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,qr=n;else for(;qr!==null;){i=qr;try{var M=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var D=M.memoizedProps,B=M.memoizedState,F=i.stateNode,$=F.getSnapshotBeforeUpdate(i.elementType===i.type?D:_v(i.type,D),B);F.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var P=i.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ir(163))}}catch(H){jl(i,i.return,H)}if(n=i.sibling,n!==null){n.return=i.return,qr=n;break}qr=i.return}return M=DMt,DMt=!1,M}function dH(n,i,a){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&n)===n){var g=d.destroy;d.destroy=void 0,g!==void 0&&L6e(i,a,g)}d=d.next}while(d!==c)}}function Ose(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&n)===n){var c=a.create;a.destroy=c()}a=a.next}while(a!==i)}}function M6e(n){var i=n.ref;if(i!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof i=="function"?i(n):i.current=n}}function CUt(n){var i=n.alternate;i!==null&&(n.alternate=null,CUt(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[R2],delete i[LH],delete i[E6e],delete i[UIn],delete i[HIn])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function IUt(n){return n.tag===5||n.tag===3||n.tag===4}function LMt(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||IUt(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function P6e(n,i,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(n,i):a.insertBefore(n,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(n,a)):(i=a,i.appendChild(n)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=moe));else if(c!==4&&(n=n.child,n!==null))for(P6e(n,i,a),n=n.sibling;n!==null;)P6e(n,i,a),n=n.sibling}function j6e(n,i,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?a.insertBefore(n,i):a.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(j6e(n,i,a),n=n.sibling;n!==null;)j6e(n,i,a),n=n.sibling}var Ph=null,kv=!1;function xx(n,i,a){for(a=a.child;a!==null;)RUt(n,i,a),a=a.sibling}function RUt(n,i,a){if(P2&&typeof P2.onCommitFiberUnmount=="function")try{P2.onCommitFiberUnmount(Ase,a)}catch{}switch(a.tag){case 5:Pp||FM(a,i);case 6:var c=Ph,d=kv;Ph=null,xx(n,i,a),Ph=c,kv=d,Ph!==null&&(kv?(n=Ph,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):Ph.removeChild(a.stateNode));break;case 18:Ph!==null&&(kv?(n=Ph,a=a.stateNode,n.nodeType===8?fCe(n.parentNode,a):n.nodeType===1&&fCe(n,a),CH(n)):fCe(Ph,a.stateNode));break;case 4:c=Ph,d=kv,Ph=a.stateNode.containerInfo,kv=!0,xx(n,i,a),Ph=c,kv=d;break;case 0:case 11:case 14:case 15:if(!Pp&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var g=d,b=g.destroy;g=g.tag,b!==void 0&&(g&2||g&4)&&L6e(a,i,b),d=d.next}while(d!==c)}xx(n,i,a);break;case 1:if(!Pp&&(FM(a,i),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(w){jl(a,i,w)}xx(n,i,a);break;case 21:xx(n,i,a);break;case 22:a.mode&1?(Pp=(c=Pp)||a.memoizedState!==null,xx(n,i,a),Pp=c):xx(n,i,a);break;default:xx(n,i,a)}}function MMt(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new i4n),i.forEach(function(c){var d=p4n.bind(null,n,c);a.has(c)||(a.add(c),c.then(d,d))})}}function Tv(n,i){var a=i.deletions;if(a!==null)for(var c=0;cd&&(d=b),c&=~g}if(c=d,c=pd()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*a4n(c/1960))-c,10n?16:n,Hx===null)var c=!1;else{if(n=Hx,Hx=null,Ioe=0,pa&6)throw Error(ir(331));var d=pa;for(pa|=4,qr=n.current;qr!==null;){var g=qr,b=g.child;if(qr.flags&16){var w=g.deletions;if(w!==null){for(var E=0;Epd()-XLe?J4(n,0):JLe|=a),db(n,i)}function $Ut(n,i){i===0&&(n.mode&1?(i=Yre,Yre<<=1,!(Yre&130023424)&&(Yre=4194304)):i=1);var a=Hg();n=gA(n,i),n!==null&&(fz(n,i,a),db(n,a))}function h4n(n){var i=n.memoizedState,a=0;i!==null&&(a=i.retryLane),$Ut(n,a)}function p4n(n,i){var a=0;switch(n.tag){case 13:var c=n.stateNode,d=n.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(ir(314))}c!==null&&c.delete(i),$Ut(n,a)}var BUt;BUt=function(n,i,a){if(n!==null)if(n.memoizedProps!==i.pendingProps||cb.current)sb=!0;else{if(!(n.lanes&a)&&!(i.flags&128))return sb=!1,t4n(n,i,a);sb=!!(n.flags&131072)}else sb=!1,Dc&&i.flags&1048576&&GBt(i,Eoe,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;zie(n,i),n=i.pendingProps;var d=l5(i,Bp.current);XM(i,a),d=GLe(null,i,c,n,d,a);var g=qLe();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,lb(c)?(g=!0,yoe(i)):g=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,$Le(i),d.updater=Rse,i.stateNode=d,d._reactInternals=i,x6e(i,c,n,a),i=I6e(null,i,c,!0,g,a)):(i.tag=0,Dc&&g&&OLe(i),$g(null,i,d,a),i=i.child),i;case 16:c=i.elementType;e:{switch(zie(n,i),n=i.pendingProps,d=c._init,c=d(c._payload),i.type=c,d=i.tag=b4n(c),n=_v(c,n),d){case 0:i=C6e(null,i,c,n,a);break e;case 1:i=IMt(null,i,c,n,a);break e;case 11:i=NMt(null,i,c,n,a);break e;case 14:i=CMt(null,i,c,_v(c.type,n),a);break e}throw Error(ir(306,c,""))}return i;case 0:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:_v(c,d),C6e(n,i,c,d,a);case 1:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:_v(c,d),IMt(n,i,c,d,a);case 3:e:{if(TUt(i),n===null)throw Error(ir(387));c=i.pendingProps,g=i.memoizedState,d=g.element,JBt(n,i),Aoe(i,c,null,a);var b=i.memoizedState;if(c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){d=p5(Error(ir(423)),i),i=RMt(n,i,c,a,d);break e}else if(c!==d){d=p5(Error(ir(424)),i),i=RMt(n,i,c,a,d);break e}else for(Pm=Wx(i.stateNode.containerInfo.firstChild),Fm=i,Dc=!0,Nv=null,a=KBt(i,null,c,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(d5(),c===d){i=bA(n,i,a);break e}$g(n,i,c,a)}i=i.child}return i;case 5:return XBt(i),n===null&&A6e(i),c=i.type,d=i.pendingProps,g=n!==null?n.memoizedProps:null,b=d.children,y6e(c,d)?b=null:g!==null&&y6e(c,g)&&(i.flags|=32),SUt(n,i),$g(n,i,b,a),i.child;case 6:return n===null&&A6e(i),null;case 13:return AUt(n,i,a);case 4:return BLe(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=f5(i,null,c,a):$g(n,i,c,a),i.child;case 11:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:_v(c,d),NMt(n,i,c,d,a);case 7:return $g(n,i,i.pendingProps,a),i.child;case 8:return $g(n,i,i.pendingProps.children,a),i.child;case 12:return $g(n,i,i.pendingProps.children,a),i.child;case 10:e:{if(c=i.type._context,d=i.pendingProps,g=i.memoizedProps,b=d.value,Vu(Soe,c._currentValue),c._currentValue=b,g!==null)if(Mv(g.value,b)){if(g.children===d.children&&!cb.current){i=bA(n,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var w=g.dependencies;if(w!==null){b=g.child;for(var E=w.firstContext;E!==null;){if(E.context===c){if(g.tag===1){E=dA(-1,a&-a),E.tag=2;var S=g.updateQueue;if(S!==null){S=S.shared;var k=S.pending;k===null?E.next=E:(E.next=k.next,k.next=E),S.pending=E}}g.lanes|=a,E=g.alternate,E!==null&&(E.lanes|=a),_6e(g.return,a,i),w.lanes|=a;break}E=E.next}}else if(g.tag===10)b=g.type===i.type?null:g.child;else if(g.tag===18){if(b=g.return,b===null)throw Error(ir(341));b.lanes|=a,w=b.alternate,w!==null&&(w.lanes|=a),_6e(b,a,i),b=g.sibling}else b=g.child;if(b!==null)b.return=g;else for(b=g;b!==null;){if(b===i){b=null;break}if(g=b.sibling,g!==null){g.return=b.return,b=g;break}b=b.return}g=b}$g(n,i,d.children,a),i=i.child}return i;case 9:return d=i.type,c=i.pendingProps.children,XM(i,a),d=Sw(d),c=c(d),i.flags|=1,$g(n,i,c,a),i.child;case 14:return c=i.type,d=_v(c,i.pendingProps),d=_v(c.type,d),CMt(n,i,c,d,a);case 15:return vUt(n,i,i.type,i.pendingProps,a);case 17:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:_v(c,d),zie(n,i),i.tag=1,lb(c)?(n=!0,yoe(i)):n=!1,XM(i,a),mUt(i,c,d),x6e(i,c,d,a),I6e(null,i,c,!0,n,a);case 19:return _Ut(n,i,a);case 22:return EUt(n,i,a)}throw Error(ir(156,i.tag))};function UUt(n,i){return pBt(n,i)}function g4n(n,i,a,c){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ww(n,i,a,c){return new g4n(n,i,a,c)}function tMe(n){return n=n.prototype,!(!n||!n.isReactComponent)}function b4n(n){if(typeof n=="function")return tMe(n)?1:0;if(n!=null){if(n=n.$$typeof,n===vLe)return 11;if(n===ELe)return 14}return 2}function Xx(n,i){var a=n.alternate;return a===null?(a=ww(n.tag,i,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=i,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,i=n.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function Vie(n,i,a,c,d,g){var b=2;if(c=n,typeof n=="function")tMe(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case CM:return X4(a.children,d,g,i);case yLe:b=8,d|=8;break;case XOe:return n=ww(12,a,i,d|2),n.elementType=XOe,n.lanes=g,n;case ZOe:return n=ww(13,a,i,d),n.elementType=ZOe,n.lanes=g,n;case QOe:return n=ww(19,a,i,d),n.elementType=QOe,n.lanes=g,n;case X$t:return Lse(a,d,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Y$t:b=10;break e;case J$t:b=9;break e;case vLe:b=11;break e;case ELe:b=14;break e;case Mx:b=16,c=null;break e}throw Error(ir(130,n==null?n:typeof n,""))}return i=ww(b,a,i,d),i.elementType=n,i.type=c,i.lanes=g,i}function X4(n,i,a,c){return n=ww(7,n,c,i),n.lanes=a,n}function Lse(n,i,a,c){return n=ww(22,n,c,i),n.elementType=X$t,n.lanes=a,n.stateNode={isHidden:!1},n}function vCe(n,i,a){return n=ww(6,n,null,i),n.lanes=a,n}function ECe(n,i,a){return i=ww(4,n.children!==null?n.children:[],n.key,i),i.lanes=a,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function m4n(n,i,a,c,d){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tCe(0),this.expirationTimes=tCe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tCe(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function nMe(n,i,a,c,d,g,b,w,E){return n=new m4n(n,i,a,w,E),i===1?(i=1,g===!0&&(i|=8)):i=0,g=ww(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},$Le(g),n}function w4n(n,i,a){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qUt)}catch(n){console.error(n)}}qUt(),q$t.exports=Hm;var TR=q$t.exports;const VUt=vR(TR);var zMt=TR;uoe.createRoot=zMt.createRoot,uoe.hydrateRoot=zMt.hydrateRoot;const yo=n=>typeof n=="string",MU=()=>{let n,i;const a=new Promise((c,d)=>{n=c,i=d});return a.resolve=n,a.reject=i,a},GMt=n=>n==null?"":""+n,T4n=(n,i,a)=>{n.forEach(c=>{i[c]&&(a[c]=i[c])})},A4n=/###/g,qMt=n=>n&&n.indexOf("###")>-1?n.replace(A4n,"."):n,VMt=n=>!n||yo(n),pH=(n,i,a)=>{const c=yo(i)?i.split("."):i;let d=0;for(;d{const{obj:c,k:d}=pH(n,i,Object);if(c!==void 0||i.length===1){c[d]=a;return}let g=i[i.length-1],b=i.slice(0,i.length-1),w=pH(n,b,Object);for(;w.obj===void 0&&b.length;)g=`${b[b.length-1]}.${g}`,b=b.slice(0,b.length-1),w=pH(n,b,Object),w!=null&&w.obj&&typeof w.obj[`${w.k}.${g}`]<"u"&&(w.obj=void 0);w.obj[`${w.k}.${g}`]=a},_4n=(n,i,a,c)=>{const{obj:d,k:g}=pH(n,i,Object);d[g]=d[g]||[],d[g].push(a)},Doe=(n,i)=>{const{obj:a,k:c}=pH(n,i);if(a&&Object.prototype.hasOwnProperty.call(a,c))return a[c]},k4n=(n,i,a)=>{const c=Doe(n,a);return c!==void 0?c:Doe(i,a)},WUt=(n,i,a)=>{for(const c in i)c!=="__proto__"&&c!=="constructor"&&(c in n?yo(n[c])||n[c]instanceof String||yo(i[c])||i[c]instanceof String?a&&(n[c]=i[c]):WUt(n[c],i[c],a):n[c]=i[c]);return n},pM=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var x4n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const N4n=n=>yo(n)?n.replace(/[&<>"'\/]/g,i=>x4n[i]):n;class C4n{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const a=this.regExpMap.get(i);if(a!==void 0)return a;const c=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,c),this.regExpQueue.push(i),c}}const I4n=[" ",",","?","!",";"],R4n=new C4n(20),O4n=(n,i,a)=>{i=i||"",a=a||"";const c=I4n.filter(b=>i.indexOf(b)<0&&a.indexOf(b)<0);if(c.length===0)return!0;const d=R4n.getRegExp(`(${c.map(b=>b==="?"?"\\?":b).join("|")})`);let g=!d.test(n);if(!g){const b=n.indexOf(a);b>0&&!d.test(n.substring(0,b))&&(g=!0)}return g},H6e=(n,i,a=".")=>{if(!n)return;if(n[i])return Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0;const c=i.split(a);let d=n;for(let g=0;g-1&&En==null?void 0:n.replace("_","-"),D4n={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,i){var a,c;(c=(a=console==null?void 0:console[n])==null?void 0:a.apply)==null||c.call(a,console,i)}};let L4n=class z6e{constructor(i,a={}){this.init(i,a)}init(i,a={}){this.prefix=a.prefix||"i18next:",this.logger=i||D4n,this.options=a,this.debug=a.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,a,c,d){return d&&!this.debug?null:(yo(i[0])&&(i[0]=`${c}${this.prefix} ${i[0]}`),this.logger[a](i))}create(i){return new z6e(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new z6e(this.logger,i)}};var D2=new L4n;class $se{constructor(){this.observers={}}on(i,a){return i.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const d=this.observers[c].get(a)||0;this.observers[c].set(a,d+1)}),this}off(i,a){if(this.observers[i]){if(!a){delete this.observers[i];return}this.observers[i].delete(a)}}emit(i,...a){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([d,g])=>{for(let b=0;b{for(let b=0;b-1&&this.options.ns.splice(a,1)}getResource(i,a,c,d={}){var S,k;const g=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let w;i.indexOf(".")>-1?w=i.split("."):(w=[i,a],c&&(Array.isArray(c)?w.push(...c):yo(c)&&g?w.push(...c.split(g)):w.push(c)));const E=Doe(this.data,w);return!E&&!a&&!c&&i.indexOf(".")>-1&&(i=w[0],a=w[1],c=w.slice(2).join(".")),E||!b||!yo(c)?E:H6e((k=(S=this.data)==null?void 0:S[i])==null?void 0:k[a],c,g)}addResource(i,a,c,d,g={silent:!1}){const b=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let w=[i,a];c&&(w=w.concat(b?c.split(b):c)),i.indexOf(".")>-1&&(w=i.split("."),d=a,a=w[1]),this.addNamespaces(a),WMt(this.data,w,d),g.silent||this.emit("added",i,a,c,d)}addResources(i,a,c,d={silent:!1}){for(const g in c)(yo(c[g])||Array.isArray(c[g]))&&this.addResource(i,a,g,c[g],{silent:!0});d.silent||this.emit("added",i,a,c)}addResourceBundle(i,a,c,d,g,b={silent:!1,skipCopy:!1}){let w=[i,a];i.indexOf(".")>-1&&(w=i.split("."),d=c,c=a,a=w[1]),this.addNamespaces(a);let E=Doe(this.data,w)||{};b.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?WUt(E,c,g):E={...E,...c},WMt(this.data,w,E),b.silent||this.emit("added",i,a,c)}removeResourceBundle(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}hasResourceBundle(i,a){return this.getResource(i,a)!==void 0}getResourceBundle(i,a){return a||(a=this.options.defaultNS),this.getResource(i,a)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const a=this.getDataByLanguage(i);return!!(a&&Object.keys(a)||[]).find(d=>a[d]&&Object.keys(a[d]).length>0)}toJSON(){return this.data}}var KUt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,i,a,c,d){return n.forEach(g=>{var b;i=((b=this.processors[g])==null?void 0:b.process(i,a,c,d))??i}),i}};const YUt=Symbol("i18next/PATH_KEY");function M4n(){const n=[],i=Object.create(null);let a;return i.get=(c,d)=>{var g;return(g=a==null?void 0:a.revoke)==null||g.call(a),d===YUt?n:(n.push(d),a=Proxy.revocable(c,i),a.proxy)},Proxy.revocable(Object.create(null),i).proxy}function G6e(n,i){const{[YUt]:a}=n(M4n());return a.join((i==null?void 0:i.keySeparator)??".")}const YMt={},SCe=n=>!yo(n)&&typeof n!="boolean"&&typeof n!="number";class Loe extends $se{constructor(i,a={}){super(),T4n(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=D2.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,a={interpolation:{}}){const c={...a};if(i==null)return!1;const d=this.resolve(i,c);if((d==null?void 0:d.res)===void 0)return!1;const g=SCe(d.res);return!(c.returnObjects===!1&&g)}extractFromKey(i,a){let c=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let g=a.ns||this.options.defaultNS||[];const b=c&&i.indexOf(c)>-1,w=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!O4n(i,c,d);if(b&&!w){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:yo(g)?[g]:g};const S=i.split(c);(c!==d||c===d&&this.options.ns.indexOf(S[0])>-1)&&(g=S.shift()),i=S.join(d)}return{key:i,namespaces:yo(g)?[g]:g}}translate(i,a,c){let d=typeof a=="object"?{...a}:a;if(typeof d!="object"&&this.options.overloadTranslationOptionHandler&&(d=this.options.overloadTranslationOptionHandler(arguments)),typeof d=="object"&&(d={...d}),d||(d={}),i==null)return"";typeof i=="function"&&(i=G6e(i,{...this.options,...d})),Array.isArray(i)||(i=[String(i)]);const g=d.returnDetails!==void 0?d.returnDetails:this.options.returnDetails,b=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,{key:w,namespaces:E}=this.extractFromKey(i[i.length-1],d),S=E[E.length-1];let k=d.nsSeparator!==void 0?d.nsSeparator:this.options.nsSeparator;k===void 0&&(k=":");const _=d.lng||this.language,C=d.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((_==null?void 0:_.toLowerCase())==="cimode")return C?g?{res:`${S}${k}${w}`,usedKey:w,exactUsedKey:w,usedLng:_,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:`${S}${k}${w}`:g?{res:w,usedKey:w,exactUsedKey:w,usedLng:_,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:w;const R=this.resolve(i,d);let M=R==null?void 0:R.res;const D=(R==null?void 0:R.usedKey)||w,B=(R==null?void 0:R.exactUsedKey)||w,F=["[object Number]","[object Function]","[object RegExp]"],$=d.joinArrays!==void 0?d.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,H=d.count!==void 0&&!yo(d.count),Q=Loe.hasDefaultValue(d),re=H?this.pluralResolver.getSuffix(_,d.count,d):"",ee=d.ordinal&&H?this.pluralResolver.getSuffix(_,d.count,{ordinal:!1}):"",ae=H&&!d.ordinal&&d.count===0,he=ae&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${re}`]||d[`defaultValue${ee}`]||d.defaultValue;let ve=M;P&&!M&&Q&&(ve=he);const de=SCe(ve),ge=Object.prototype.toString.apply(ve);if(P&&ve&&de&&F.indexOf(ge)<0&&!(yo($)&&Array.isArray(ve))){if(!d.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,ve,{...d,ns:E}):`key '${w} (${this.language})' returned an object instead of string.`;return g?(R.res=Y,R.usedParams=this.getUsedParamsDetails(d),R):Y}if(b){const Y=Array.isArray(ve),fe=Y?[]:{},De=Y?B:D;for(const Se in ve)if(Object.prototype.hasOwnProperty.call(ve,Se)){const $e=`${De}${b}${Se}`;Q&&!M?fe[Se]=this.translate($e,{...d,defaultValue:SCe(he)?he[Se]:void 0,joinArrays:!1,ns:E}):fe[Se]=this.translate($e,{...d,joinArrays:!1,ns:E}),fe[Se]===$e&&(fe[Se]=ve[Se])}M=fe}}else if(P&&yo($)&&Array.isArray(M))M=M.join($),M&&(M=this.extendTranslation(M,i,d,c));else{let Y=!1,fe=!1;!this.isValidLookup(M)&&Q&&(Y=!0,M=he),this.isValidLookup(M)||(fe=!0,M=w);const Se=(d.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:M,$e=Q&&he!==M&&this.options.updateMissing;if(fe||Y||$e){if(this.logger.log($e?"updateKey":"missingKey",_,S,w,$e?he:M),b){const bt=this.resolve(w,{...d,keySeparator:!1});bt&&bt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Te=[];const ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,d.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(let bt=0;bt{var ft;const At=Q&&_t!==M?_t:Se;this.options.missingKeyHandler?this.options.missingKeyHandler(bt,S,qe,At,$e,d):(ft=this.backendConnector)!=null&&ft.saveMissing&&this.backendConnector.saveMissing(bt,S,qe,At,$e,d),this.emit("missingKey",bt,S,qe,M)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?Te.forEach(bt=>{const qe=this.pluralResolver.getSuffixes(bt,d);ae&&d[`defaultValue${this.options.pluralSeparator}zero`]&&qe.indexOf(`${this.options.pluralSeparator}zero`)<0&&qe.push(`${this.options.pluralSeparator}zero`),qe.forEach(_t=>{Je([bt],w+_t,d[`defaultValue${_t}`]||he)})}):Je(Te,w,he))}M=this.extendTranslation(M,i,d,R,c),fe&&M===w&&this.options.appendNamespaceToMissingKey&&(M=`${S}${k}${w}`),(fe||Y)&&this.options.parseMissingKeyHandler&&(M=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}${k}${w}`:w,Y?M:void 0,d))}return g?(R.res=M,R.usedParams=this.getUsedParamsDetails(d),R):M}extendTranslation(i,a,c,d,g){var E,S;if((E=this.i18nFormat)!=null&&E.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const k=yo(i)&&(((S=c==null?void 0:c.interpolation)==null?void 0:S.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _;if(k){const R=i.match(this.interpolator.nestingRegexp);_=R&&R.length}let C=c.replace&&!yo(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,c.lng||this.language||d.usedLng,c),k){const R=i.match(this.interpolator.nestingRegexp),M=R&&R.length;_(g==null?void 0:g[0])===R[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${R[0]} in key: ${a[0]}`),null):this.translate(...R,a),c)),c.interpolation&&this.interpolator.reset()}const b=c.postProcess||this.options.postProcess,w=yo(b)?[b]:b;return i!=null&&(w!=null&&w.length)&&c.applyPostProcessor!==!1&&(i=KUt.handle(w,i,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),i}resolve(i,a={}){let c,d,g,b,w;return yo(i)&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(c))return;const S=this.extractFromKey(E,a),k=S.key;d=k;let _=S.namespaces;this.options.fallbackNS&&(_=_.concat(this.options.fallbackNS));const C=a.count!==void 0&&!yo(a.count),R=C&&!a.ordinal&&a.count===0,M=a.context!==void 0&&(yo(a.context)||typeof a.context=="number")&&a.context!=="",D=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);_.forEach(B=>{var F,$;this.isValidLookup(c)||(w=B,!YMt[`${D[0]}-${B}`]&&((F=this.utils)!=null&&F.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(w))&&(YMt[`${D[0]}-${B}`]=!0,this.logger.warn(`key "${d}" for languages "${D.join(", ")}" won't get resolved as namespace "${w}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(P=>{var re;if(this.isValidLookup(c))return;b=P;const H=[k];if((re=this.i18nFormat)!=null&&re.addLookupKeys)this.i18nFormat.addLookupKeys(H,k,P,B,a);else{let ee;C&&(ee=this.pluralResolver.getSuffix(P,a.count,a));const ae=`${this.options.pluralSeparator}zero`,he=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(a.ordinal&&ee.indexOf(he)===0&&H.push(k+ee.replace(he,this.options.pluralSeparator)),H.push(k+ee),R&&H.push(k+ae)),M){const ve=`${k}${this.options.contextSeparator||"_"}${a.context}`;H.push(ve),C&&(a.ordinal&&ee.indexOf(he)===0&&H.push(ve+ee.replace(he,this.options.pluralSeparator)),H.push(ve+ee),R&&H.push(ve+ae))}}let Q;for(;Q=H.pop();)this.isValidLookup(c)||(g=Q,c=this.getResource(P,B,Q,a))}))})}),{res:c,usedKey:d,exactUsedKey:g,usedLng:b,usedNS:w}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,a,c,d={}){var g;return(g=this.i18nFormat)!=null&&g.getResource?this.i18nFormat.getResource(i,a,c,d):this.resourceStore.getResource(i,a,c,d)}getUsedParamsDetails(i={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=i.replace&&!yo(i.replace);let d=c?i.replace:i;if(c&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!c){d={...d};for(const g of a)delete d[g]}return d}static hasDefaultValue(i){const a="defaultValue";for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&a===c.substring(0,a.length)&&i[c]!==void 0)return!0;return!1}}class JMt{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D2.create("languageUtils")}getScriptPartFromCode(i){if(i=UH(i),!i||i.indexOf("-")<0)return null;const a=i.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(i){if(i=UH(i),!i||i.indexOf("-")<0)return i;const a=i.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(i){if(yo(i)&&i.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(i)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let a;return i.forEach(c=>{if(a)return;const d=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(d))&&(a=d)}),!a&&this.options.supportedLngs&&i.forEach(c=>{if(a)return;const d=this.getScriptPartFromCode(c);if(this.isSupportedCode(d))return a=d;const g=this.getLanguagePartFromCode(c);if(this.isSupportedCode(g))return a=g;a=this.options.supportedLngs.find(b=>{if(b===g)return b;if(!(b.indexOf("-")<0&&g.indexOf("-")<0)&&(b.indexOf("-")>0&&g.indexOf("-")<0&&b.substring(0,b.indexOf("-"))===g||b.indexOf(g)===0&&g.length>1))return b})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(i,a){if(!i)return[];if(typeof i=="function"&&(i=i(a)),yo(i)&&(i=[i]),Array.isArray(i))return i;if(!a)return i.default||[];let c=i[a];return c||(c=i[this.getScriptPartFromCode(a)]),c||(c=i[this.formatLanguageCode(a)]),c||(c=i[this.getLanguagePartFromCode(a)]),c||(c=i.default),c||[]}toResolveHierarchy(i,a){const c=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],i),d=[],g=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return yo(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(i))):yo(i)&&g(this.formatLanguageCode(i)),c.forEach(b=>{d.indexOf(b)<0&&g(this.formatLanguageCode(b))}),d}}const XMt={zero:0,one:1,two:2,few:3,many:4,other:5},ZMt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P4n{constructor(i,a={}){this.languageUtils=i,this.options=a,this.logger=D2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,a={}){const c=UH(i==="dev"?"en":i),d=a.ordinal?"ordinal":"cardinal",g=JSON.stringify({cleanedCode:c,type:d});if(g in this.pluralRulesCache)return this.pluralRulesCache[g];let b;try{b=new Intl.PluralRules(c,{type:d})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ZMt;if(!i.match(/-|_/))return ZMt;const E=this.languageUtils.getLanguagePartFromCode(i);b=this.getRule(E,a)}return this.pluralRulesCache[g]=b,b}needsPlural(i,a={}){let c=this.getRule(i,a);return c||(c=this.getRule("dev",a)),(c==null?void 0:c.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,a,c={}){return this.getSuffixes(i,c).map(d=>`${a}${d}`)}getSuffixes(i,a={}){let c=this.getRule(i,a);return c||(c=this.getRule("dev",a)),c?c.resolvedOptions().pluralCategories.sort((d,g)=>XMt[d]-XMt[g]).map(d=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${d}`):[]}getSuffix(i,a,c={}){const d=this.getRule(i,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(a)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",a,c))}}const QMt=(n,i,a,c=".",d=!0)=>{let g=k4n(n,i,a);return!g&&d&&yo(a)&&(g=H6e(n,a,c),g===void 0&&(g=H6e(i,a,c))),g},TCe=n=>n.replace(/\$/g,"$$$$");class e5t{constructor(i={}){var a;this.logger=D2.create("interpolator"),this.options=i,this.format=((a=i==null?void 0:i.interpolation)==null?void 0:a.format)||(c=>c),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:a,escapeValue:c,useRawValueToEscape:d,prefix:g,prefixEscaped:b,suffix:w,suffixEscaped:E,formatSeparator:S,unescapeSuffix:k,unescapePrefix:_,nestingPrefix:C,nestingPrefixEscaped:R,nestingSuffix:M,nestingSuffixEscaped:D,nestingOptionsSeparator:B,maxReplaces:F,alwaysFormat:$}=i.interpolation;this.escape=a!==void 0?a:N4n,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=d!==void 0?d:!1,this.prefix=g?pM(g):b||"{{",this.suffix=w?pM(w):E||"}}",this.formatSeparator=S||",",this.unescapePrefix=k?"":_||"-",this.unescapeSuffix=this.unescapePrefix?"":k||"",this.nestingPrefix=C?pM(C):R||pM("$t("),this.nestingSuffix=M?pM(M):D||pM(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=F||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(a,c)=>(a==null?void 0:a.source)===c?(a.lastIndex=0,a):new RegExp(c,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,a,c,d){var R;let g,b,w;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},S=M=>{if(M.indexOf(this.formatSeparator)<0){const $=QMt(a,E,M,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,c,{...d,...a,interpolationkey:M}):$}const D=M.split(this.formatSeparator),B=D.shift().trim(),F=D.join(this.formatSeparator).trim();return this.format(QMt(a,E,B,this.options.keySeparator,this.options.ignoreJSONStructure),F,c,{...d,...a,interpolationkey:B})};this.resetRegExp();const k=(d==null?void 0:d.missingInterpolationHandler)||this.options.missingInterpolationHandler,_=((R=d==null?void 0:d.interpolation)==null?void 0:R.skipOnVariables)!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:M=>TCe(M)},{regex:this.regexp,safeValue:M=>this.escapeValue?TCe(this.escape(M)):TCe(M)}].forEach(M=>{for(w=0;g=M.regex.exec(i);){const D=g[1].trim();if(b=S(D),b===void 0)if(typeof k=="function"){const F=k(i,g,d);b=yo(F)?F:""}else if(d&&Object.prototype.hasOwnProperty.call(d,D))b="";else if(_){b=g[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),b="";else!yo(b)&&!this.useRawValueToEscape&&(b=GMt(b));const B=M.safeValue(b);if(i=i.replace(g[0],B),_?(M.regex.lastIndex+=b.length,M.regex.lastIndex-=g[0].length):M.regex.lastIndex=0,w++,w>=this.maxReplaces)break}}),i}nest(i,a,c={}){let d,g,b;const w=(E,S)=>{const k=this.nestingOptionsSeparator;if(E.indexOf(k)<0)return E;const _=E.split(new RegExp(`${k}[ ]*{`));let C=`{${_[1]}`;E=_[0],C=this.interpolate(C,b);const R=C.match(/'/g),M=C.match(/"/g);(((R==null?void 0:R.length)??0)%2===0&&!M||M.length%2!==0)&&(C=C.replace(/'/g,'"'));try{b=JSON.parse(C),S&&(b={...S,...b})}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,D),`${E}${k}${C}`}return b.defaultValue&&b.defaultValue.indexOf(this.prefix)>-1&&delete b.defaultValue,E};for(;d=this.nestingRegexp.exec(i);){let E=[];b={...c},b=b.replace&&!yo(b.replace)?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;const S=/{.*}/.test(d[1])?d[1].lastIndexOf("}")+1:d[1].indexOf(this.formatSeparator);if(S!==-1&&(E=d[1].slice(S).split(this.formatSeparator).map(k=>k.trim()).filter(Boolean),d[1]=d[1].slice(0,S)),g=a(w.call(this,d[1].trim(),b),b),g&&d[0]===i&&!yo(g))return g;yo(g)||(g=GMt(g)),g||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),g=""),E.length&&(g=E.reduce((k,_)=>this.format(k,_,c.lng,{...c,interpolationkey:d[1].trim()}),g.trim())),i=i.replace(d[0],g),this.regexp.lastIndex=0}return i}}const j4n=n=>{let i=n.toLowerCase().trim();const a={};if(n.indexOf("(")>-1){const c=n.split("(");i=c[0].toLowerCase().trim();const d=c[1].substring(0,c[1].length-1);i==="currency"&&d.indexOf(":")<0?a.currency||(a.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?a.range||(a.range=d.trim()):d.split(";").forEach(b=>{if(b){const[w,...E]=b.split(":"),S=E.join(":").trim().replace(/^'+|'+$/g,""),k=w.trim();a[k]||(a[k]=S),S==="false"&&(a[k]=!1),S==="true"&&(a[k]=!0),isNaN(S)||(a[k]=parseInt(S,10))}})}return{formatName:i,formatOptions:a}},t5t=n=>{const i={};return(a,c,d)=>{let g=d;d&&d.interpolationkey&&d.formatParams&&d.formatParams[d.interpolationkey]&&d[d.interpolationkey]&&(g={...g,[d.interpolationkey]:void 0});const b=c+JSON.stringify(g);let w=i[b];return w||(w=n(UH(c),d),i[b]=w),w(a)}},F4n=n=>(i,a,c)=>n(UH(a),c)(i);class $4n{constructor(i={}){this.logger=D2.create("formatter"),this.options=i,this.init(i)}init(i,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const c=a.cacheInBuiltFormats?t5t:F4n;this.formats={number:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g});return w=>b.format(w)}),currency:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g,style:"currency"});return w=>b.format(w)}),datetime:c((d,g)=>{const b=new Intl.DateTimeFormat(d,{...g});return w=>b.format(w)}),relativetime:c((d,g)=>{const b=new Intl.RelativeTimeFormat(d,{...g});return w=>b.format(w,g.range||"day")}),list:c((d,g)=>{const b=new Intl.ListFormat(d,{...g});return w=>b.format(w)})}}add(i,a){this.formats[i.toLowerCase().trim()]=a}addCached(i,a){this.formats[i.toLowerCase().trim()]=t5t(a)}format(i,a,c,d={}){const g=a.split(this.formatSeparator);if(g.length>1&&g[0].indexOf("(")>1&&g[0].indexOf(")")<0&&g.find(w=>w.indexOf(")")>-1)){const w=g.findIndex(E=>E.indexOf(")")>-1);g[0]=[g[0],...g.splice(1,w)].join(this.formatSeparator)}return g.reduce((w,E)=>{var _;const{formatName:S,formatOptions:k}=j4n(E);if(this.formats[S]){let C=w;try{const R=((_=d==null?void 0:d.formatParams)==null?void 0:_[d.interpolationkey])||{},M=R.locale||R.lng||d.locale||d.lng||c;C=this.formats[S](w,M,{...k,...d,...R})}catch(R){this.logger.warn(R)}return C}else this.logger.warn(`there was no format function for ${S}`);return w},i)}}const B4n=(n,i)=>{n.pending[i]!==void 0&&(delete n.pending[i],n.pendingCount--)};class U4n extends $se{constructor(i,a,c,d={}){var g,b;super(),this.backend=i,this.store=a,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=D2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],(b=(g=this.backend)==null?void 0:g.init)==null||b.call(g,c,d.backend,d)}queueLoad(i,a,c,d){const g={},b={},w={},E={};return i.forEach(S=>{let k=!0;a.forEach(_=>{const C=`${S}|${_}`;!c.reload&&this.store.hasResourceBundle(S,_)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?b[C]===void 0&&(b[C]=!0):(this.state[C]=1,k=!1,b[C]===void 0&&(b[C]=!0),g[C]===void 0&&(g[C]=!0),E[_]===void 0&&(E[_]=!0)))}),k||(w[S]=!0)}),(Object.keys(g).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(g),pending:Object.keys(b),toLoadLanguages:Object.keys(w),toLoadNamespaces:Object.keys(E)}}loaded(i,a,c){const d=i.split("|"),g=d[0],b=d[1];a&&this.emit("failedLoading",g,b,a),!a&&c&&this.store.addResourceBundle(g,b,c,void 0,void 0,{skipCopy:!0}),this.state[i]=a?-1:2,a&&c&&(this.state[i]=0);const w={};this.queue.forEach(E=>{_4n(E.loaded,[g],b),B4n(E,i),a&&E.errors.push(a),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(S=>{w[S]||(w[S]={});const k=E.loaded[S];k.length&&k.forEach(_=>{w[S][_]===void 0&&(w[S][_]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(E=>!E.done)}read(i,a,c,d=0,g=this.retryTimeout,b){if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:c,tried:d,wait:g,callback:b});return}this.readingCalls++;const w=(S,k)=>{if(this.readingCalls--,this.waitingReads.length>0){const _=this.waitingReads.shift();this.read(_.lng,_.ns,_.fcName,_.tried,_.wait,_.callback)}if(S&&k&&d{this.read.call(this,i,a,c,d+1,g*2,b)},g);return}b(S,k)},E=this.backend[c].bind(this.backend);if(E.length===2){try{const S=E(i,a);S&&typeof S.then=="function"?S.then(k=>w(null,k)).catch(w):w(null,S)}catch(S){w(S)}return}return E(i,a,w)}prepareLoading(i,a,c={},d){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();yo(i)&&(i=this.languageUtils.toResolveHierarchy(i)),yo(a)&&(a=[a]);const g=this.queueLoad(i,a,c,d);if(!g.toLoad.length)return g.pending.length||d(),null;g.toLoad.forEach(b=>{this.loadOne(b)})}load(i,a,c){this.prepareLoading(i,a,{},c)}reload(i,a,c){this.prepareLoading(i,a,{reload:!0},c)}loadOne(i,a=""){const c=i.split("|"),d=c[0],g=c[1];this.read(d,g,"read",void 0,void 0,(b,w)=>{b&&this.logger.warn(`${a}loading namespace ${g} for language ${d} failed`,b),!b&&w&&this.logger.log(`${a}loaded namespace ${g} for language ${d}`,w),this.loaded(i,b,w)})}saveMissing(i,a,c,d,g,b={},w=()=>{}){var E,S,k,_,C;if((S=(E=this.services)==null?void 0:E.utils)!=null&&S.hasLoadedNamespace&&!((_=(k=this.services)==null?void 0:k.utils)!=null&&_.hasLoadedNamespace(a))){this.logger.warn(`did not save key "${c}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if((C=this.backend)!=null&&C.create){const R={...b,isUpdate:g},M=this.backend.create.bind(this.backend);if(M.length<6)try{let D;M.length===5?D=M(i,a,c,d,R):D=M(i,a,c,d),D&&typeof D.then=="function"?D.then(B=>w(null,B)).catch(w):w(null,D)}catch(D){w(D)}else M(i,a,c,d,w,R)}!i||!i[0]||this.store.addResource(i[0],a,c,d)}}}const ACe=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let i={};if(typeof n[1]=="object"&&(i=n[1]),yo(n[1])&&(i.defaultValue=n[1]),yo(n[2])&&(i.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const a=n[3]||n[2];Object.keys(a).forEach(c=>{i[c]=a[c]})}return i},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),n5t=n=>{var i,a;return yo(n.ns)&&(n.ns=[n.ns]),yo(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),yo(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((a=(i=n.supportedLngs)==null?void 0:i.indexOf)==null?void 0:a.call(i,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},aie=()=>{},H4n=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(a=>{typeof n[a]=="function"&&(n[a]=n[a].bind(n))})};class gH extends $se{constructor(i={},a){if(super(),this.options=n5t(i),this.services={},this.logger=D2,this.modules={external:[]},H4n(this),a&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,a),this;setTimeout(()=>{this.init(i,a)},0)}}init(i={},a){this.isInitializing=!0,typeof i=="function"&&(a=i,i={}),i.defaultNS==null&&i.ns&&(yo(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=ACe();this.options={...c,...this.options,...n5t(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const d=S=>S?typeof S=="function"?new S:S:null;if(!this.options.isClone){this.modules.logger?D2.init(d(this.modules.logger),this.options):D2.init(null,this.options);let S;this.modules.formatter?S=this.modules.formatter:S=$4n;const k=new JMt(this.options);this.store=new KMt(this.options.resources,this.options);const _=this.services;_.logger=D2,_.resourceStore=this.store,_.languageUtils=k,_.pluralResolver=new P4n(k,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),S&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(_.formatter=d(S),_.formatter.init&&_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new e5t(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new U4n(d(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",(R,...M)=>{this.emit(R,...M)}),this.modules.languageDetector&&(_.languageDetector=d(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=d(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new Loe(this.services,this.options),this.translator.on("*",(R,...M)=>{this.emit(R,...M)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,a||(a=aie),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(S=>{this[S]=(...k)=>this.store[S](...k)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(S=>{this[S]=(...k)=>(this.store[S](...k),this)});const w=MU(),E=()=>{const S=(k,_)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),w.resolve(_),a(k,_)};if(this.languages&&!this.isInitialized)return S(null,this.t.bind(this));this.changeLanguage(this.options.lng,S)};return this.options.resources||!this.options.initAsync?E():setTimeout(E,0),w}loadResources(i,a=aie){var g,b;let c=a;const d=yo(i)?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if((d==null?void 0:d.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const w=[],E=S=>{if(!S||S==="cimode")return;this.services.languageUtils.toResolveHierarchy(S).forEach(_=>{_!=="cimode"&&w.indexOf(_)<0&&w.push(_)})};d?E(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(k=>E(k)),(b=(g=this.options.preload)==null?void 0:g.forEach)==null||b.call(g,S=>E(S)),this.services.backendConnector.load(w,this.options.ns,S=>{!S&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(S)})}else c(null)}reloadResources(i,a,c){const d=MU();return typeof i=="function"&&(c=i,i=void 0),typeof a=="function"&&(c=a,a=void 0),i||(i=this.languages),a||(a=this.options.ns),c||(c=aie),this.services.backendConnector.reload(i,a,g=>{d.resolve(),c(g)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&KUt.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let a=0;a-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,a){this.isLanguageChangingTo=i;const c=MU();this.emit("languageChanging",i);const d=w=>{this.language=w,this.languages=this.services.languageUtils.toResolveHierarchy(w),this.resolvedLanguage=void 0,this.setResolvedLanguage(w)},g=(w,E)=>{E?this.isLanguageChangingTo===i&&(d(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,c.resolve((...S)=>this.t(...S)),a&&a(w,(...S)=>this.t(...S))},b=w=>{var k,_;!i&&!w&&this.services.languageDetector&&(w=[]);const E=yo(w)?w:w&&w[0],S=this.store.hasLanguageSomeTranslations(E)?E:this.services.languageUtils.getBestMatchFromCodes(yo(w)?[w]:w);S&&(this.language||d(S),this.translator.language||this.translator.changeLanguage(S),(_=(k=this.services.languageDetector)==null?void 0:k.cacheUserLanguage)==null||_.call(k,S)),this.loadResources(S,C=>{g(C,S)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?b(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(b):this.services.languageDetector.detect(b):b(i),c}getFixedT(i,a,c){const d=(g,b,...w)=>{let E;typeof b!="object"?E=this.options.overloadTranslationOptionHandler([g,b].concat(w)):E={...b},E.lng=E.lng||d.lng,E.lngs=E.lngs||d.lngs,E.ns=E.ns||d.ns,E.keyPrefix!==""&&(E.keyPrefix=E.keyPrefix||c||d.keyPrefix);const S=this.options.keySeparator||".";let k;return E.keyPrefix&&Array.isArray(g)?k=g.map(_=>(typeof _=="function"&&(_=G6e(_,{...this.options,...b})),`${E.keyPrefix}${S}${_}`)):(typeof g=="function"&&(g=G6e(g,{...this.options,...b})),k=E.keyPrefix?`${E.keyPrefix}${S}${g}`:g),this.t(k,E)};return yo(i)?d.lng=i:d.lngs=i,d.ns=a,d.keyPrefix=c,d}t(...i){var a;return(a=this.translator)==null?void 0:a.translate(...i)}exists(...i){var a;return(a=this.translator)==null?void 0:a.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=a.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,g=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const b=(w,E)=>{const S=this.services.backendConnector.state[`${w}|${E}`];return S===-1||S===0||S===2};if(a.precheck){const w=a.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(c,i)&&(!d||b(g,i)))}loadNamespaces(i,a){const c=MU();return this.options.ns?(yo(i)&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{c.resolve(),a&&a(d)}),c):(a&&a(),Promise.resolve())}loadLanguages(i,a){const c=MU();yo(i)&&(i=[i]);const d=this.options.preload||[],g=i.filter(b=>d.indexOf(b)<0&&this.services.languageUtils.isSupportedCode(b));return g.length?(this.options.preload=d.concat(g),this.loadResources(b=>{c.resolve(),a&&a(b)}),c):(a&&a(),Promise.resolve())}dir(i){var d,g;if(i||(i=this.resolvedLanguage||(((d=this.languages)==null?void 0:d.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const b=new Intl.Locale(i);if(b&&b.getTextInfo){const w=b.getTextInfo();if(w&&w.direction)return w.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=((g=this.services)==null?void 0:g.languageUtils)||new JMt(ACe());return i.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(c.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},a){const c=new gH(i,a);return c.createInstance=gH.createInstance,c}cloneInstance(i={},a=aie){const c=i.forkResourceStore;c&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},g=new gH(d);if((i.debug!==void 0||i.prefix!==void 0)&&(g.logger=g.logger.clone(i)),["store","services","language"].forEach(w=>{g[w]=this[w]}),g.services={...this.services},g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},c){const w=Object.keys(this.store.data).reduce((E,S)=>(E[S]={...this.store.data[S]},E[S]=Object.keys(E[S]).reduce((k,_)=>(k[_]={...E[S][_]},k),E[S]),E),{});g.store=new KMt(w,d),g.services.resourceStore=g.store}if(i.interpolation){const E={...ACe().interpolation,...this.options.interpolation,...i.interpolation},S={...d,interpolation:E};g.services.interpolator=new e5t(S)}return g.translator=new Loe(g.services,d),g.translator.on("*",(w,...E)=>{g.emit(w,...E)}),g.init(d,a),g.translator.options=d,g.translator.backendConnector.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Bh=gH.createInstance();Bh.createInstance;Bh.dir;Bh.init;Bh.loadResources;Bh.reloadResources;Bh.use;Bh.changeLanguage;Bh.getFixedT;const Wie=Bh.t;Bh.exists;Bh.setDefaultNamespace;Bh.hasLoadedNamespace;Bh.loadNamespaces;Bh.loadLanguages;const z4n=(n,i,a,c)=>{var g,b,w,E;const d=[a,{code:i,...c||{}}];if((b=(g=n==null?void 0:n.services)==null?void 0:g.logger)!=null&&b.forward)return n.services.logger.forward(d,"warn","react-i18next::",!0);aR(d[0])&&(d[0]=`react-i18next:: ${d[0]}`),(E=(w=n==null?void 0:n.services)==null?void 0:w.logger)!=null&&E.warn?n.services.logger.warn(...d):console!=null&&console.warn&&console.warn(...d)},r5t={},JUt=(n,i,a,c)=>{aR(a)&&r5t[a]||(aR(a)&&(r5t[a]=new Date),z4n(n,i,a,c))},XUt=(n,i)=>()=>{if(n.isInitialized)i();else{const a=()=>{setTimeout(()=>{n.off("initialized",a)},0),i()};n.on("initialized",a)}},q6e=(n,i,a)=>{n.loadNamespaces(i,XUt(n,a))},i5t=(n,i,a,c)=>{if(aR(a)&&(a=[a]),n.options.preload&&n.options.preload.indexOf(i)>-1)return q6e(n,a,c);a.forEach(d=>{n.options.ns.indexOf(d)<0&&n.options.ns.push(d)}),n.loadLanguages(i,XUt(n,c))},G4n=(n,i,a={})=>!i.languages||!i.languages.length?(JUt(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(n,{lng:a.lng,precheck:(c,d)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!d(c.isLanguageChangingTo,n))return!1}}),aR=n=>typeof n=="string",q4n=n=>typeof n=="object"&&n!==null,V4n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,W4n={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},K4n=n=>W4n[n],Y4n=n=>n.replace(V4n,K4n);let V6e={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Y4n,transDefaultProps:void 0};const J4n=(n={})=>{V6e={...V6e,...n}},X4n=()=>V6e;let ZUt;const Z4n=n=>{ZUt=n},Q4n=()=>ZUt,eRn={type:"3rdParty",init(n){J4n(n.options.react),Z4n(n)}},QUt=z.createContext();class tRn{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var eHt={exports:{}},tHt={};/** - * @license React - * use-sync-external-store-shim.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var b5=z;function nRn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var rRn=typeof Object.is=="function"?Object.is:nRn,iRn=b5.useState,oRn=b5.useEffect,sRn=b5.useLayoutEffect,aRn=b5.useDebugValue;function uRn(n,i){var a=i(),c=iRn({inst:{value:a,getSnapshot:i}}),d=c[0].inst,g=c[1];return sRn(function(){d.value=a,d.getSnapshot=i,_Ce(d)&&g({inst:d})},[n,a,i]),oRn(function(){return _Ce(d)&&g({inst:d}),n(function(){_Ce(d)&&g({inst:d})})},[n]),aRn(a),a}function _Ce(n){var i=n.getSnapshot;n=n.value;try{var a=i();return!rRn(n,a)}catch{return!0}}function cRn(n,i){return i()}var lRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cRn:uRn;tHt.useSyncExternalStore=b5.useSyncExternalStore!==void 0?b5.useSyncExternalStore:lRn;eHt.exports=tHt;var nHt=eHt.exports;const dRn=(n,i)=>aR(i)?i:q4n(i)&&aR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,fRn={t:dRn,ready:!1},hRn=()=>()=>{},zs=(n,i={})=>{var he,ve,de;const{i18n:a}=i,{i18n:c,defaultNS:d}=z.useContext(QUt)||{},g=a||c||Q4n();g&&!g.reportNamespaces&&(g.reportNamespaces=new tRn),g||JUt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=z.useMemo(()=>{var ge;return{...X4n(),...(ge=g==null?void 0:g.options)==null?void 0:ge.react,...i}},[g,i]),{useSuspense:w,keyPrefix:E}=b,S=n||d||((he=g==null?void 0:g.options)==null?void 0:he.defaultNS),k=aR(S)?[S]:S||["translation"],_=z.useMemo(()=>k,k);(de=(ve=g==null?void 0:g.reportNamespaces)==null?void 0:ve.addUsedNamespaces)==null||de.call(ve,_);const C=z.useRef(0),R=z.useCallback(ge=>{if(!g)return hRn;const{bindI18n:Y,bindI18nStore:fe}=b,De=()=>{C.current+=1,ge()};return Y&&g.on(Y,De),fe&&g.store.on(fe,De),()=>{Y&&Y.split(" ").forEach(Se=>g.off(Se,De)),fe&&fe.split(" ").forEach(Se=>g.store.off(Se,De))}},[g,b]),M=z.useRef(),D=z.useCallback(()=>{if(!g)return fRn;const ge=!!(g.isInitialized||g.initializedStoreOnce)&&_.every(Te=>G4n(Te,g,b)),Y=i.lng||g.language,fe=C.current,De=M.current;if(De&&De.ready===ge&&De.lng===Y&&De.keyPrefix===E&&De.revision===fe)return De;const $e={t:g.getFixedT(Y,b.nsMode==="fallback"?_:_[0],E),ready:ge,lng:Y,keyPrefix:E,revision:fe};return M.current=$e,$e},[g,_,E,b,i.lng]),[B,F]=z.useState(0),{t:$,ready:P}=nHt.useSyncExternalStore(R,D,D);z.useEffect(()=>{if(g&&!P&&!w){const ge=()=>F(Y=>Y+1);i.lng?i5t(g,i.lng,_,ge):q6e(g,_,ge)}},[g,i.lng,_,P,w,B]);const H=g||{},Q=z.useRef(null),re=z.useRef(),ee=ge=>{const Y=Object.getOwnPropertyDescriptors(ge);Y.__original&&delete Y.__original;const fe=Object.create(Object.getPrototypeOf(ge),Y);if(!Object.prototype.hasOwnProperty.call(fe,"__original"))try{Object.defineProperty(fe,"__original",{value:ge,writable:!1,enumerable:!1,configurable:!1})}catch{}return fe},ae=z.useMemo(()=>{const ge=H,Y=ge==null?void 0:ge.language;let fe=ge;ge&&(Q.current&&Q.current.__original===ge?re.current!==Y?(fe=ee(ge),Q.current=fe,re.current=Y):fe=Q.current:(fe=ee(ge),Q.current=fe,re.current=Y));const De=[$,fe,P];return De.t=$,De.i18n=fe,De.ready=P,De},[$,H,P,H.resolvedLanguage,H.language,H.languages]);if(g&&w&&!P)throw new Promise(ge=>{const Y=()=>ge();i.lng?i5t(g,i.lng,_,Y):q6e(g,_,Y)});return ae};function o5t({i18n:n,defaultNS:i,children:a}){const c=z.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return z.createElement(QUt.Provider,{value:c},a)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let a=0,c;a{}};function Bse(){for(var n=0,i=arguments.length,a={},c;n=0&&(c=a.slice(d+1),a=a.slice(0,d)),a&&!i.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:c}})}Kie.prototype=Bse.prototype={constructor:Kie,on:function(n,i){var a=this._,c=gRn(n+"",a),d,g=-1,b=c.length;if(arguments.length<2){for(;++g0)for(var a=new Array(d),c=0,d,g;c=0&&(i=n.slice(0,a))!=="xmlns"&&(n=n.slice(a+1)),a5t.hasOwnProperty(i)?{space:a5t[i],local:n}:n}function mRn(n){return function(){var i=this.ownerDocument,a=this.namespaceURI;return a===W6e&&i.documentElement.namespaceURI===W6e?i.createElement(n):i.createElementNS(a,n)}}function wRn(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function rHt(n){var i=Use(n);return(i.local?wRn:mRn)(i)}function yRn(){}function sMe(n){return n==null?yRn:function(){return this.querySelector(n)}}function vRn(n){typeof n!="function"&&(n=sMe(n));for(var i=this._groups,a=i.length,c=new Array(a),d=0;d=P&&(P=$+1);!(Q=B[P])&&++P=0;)(b=c[d])&&(g&&b.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(b,g),g=b);return this}function qRn(n){n||(n=VRn);function i(_,C){return _&&C?n(_.__data__,C.__data__):!_-!C}for(var a=this._groups,c=a.length,d=new Array(c),g=0;gi?1:n>=i?0:NaN}function WRn(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function KRn(){return Array.from(this)}function YRn(){for(var n=this._groups,i=0,a=n.length;i1?this.each((i==null?sOn:typeof i=="function"?uOn:aOn)(n,i,a??"")):m5(this.node(),n)}function m5(n,i){return n.style.getPropertyValue(i)||uHt(n).getComputedStyle(n,null).getPropertyValue(i)}function lOn(n){return function(){delete this[n]}}function dOn(n,i){return function(){this[n]=i}}function fOn(n,i){return function(){var a=i.apply(this,arguments);a==null?delete this[n]:this[n]=a}}function hOn(n,i){return arguments.length>1?this.each((i==null?lOn:typeof i=="function"?fOn:dOn)(n,i)):this.node()[n]}function cHt(n){return n.trim().split(/^|\s+/)}function aMe(n){return n.classList||new lHt(n)}function lHt(n){this._node=n,this._names=cHt(n.getAttribute("class")||"")}lHt.prototype={add:function(n){var i=this._names.indexOf(n);i<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function dHt(n,i){for(var a=aMe(n),c=-1,d=i.length;++c=0&&(a=i.slice(c+1),i=i.slice(0,c)),{type:i,name:a}})}function UOn(n){return function(){var i=this.__on;if(i){for(var a=0,c=-1,d=i.length,g;a()=>n;function K6e(n,{sourceEvent:i,subject:a,target:c,identifier:d,active:g,x:b,y:w,dx:E,dy:S,dispatch:k}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:a,enumerable:!0,configurable:!0},target:{value:c,enumerable:!0,configurable:!0},identifier:{value:d,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:b,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:E,enumerable:!0,configurable:!0},dy:{value:S,enumerable:!0,configurable:!0},_:{value:k}})}K6e.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function XOn(n){return!n.ctrlKey&&!n.button}function ZOn(){return this.parentNode}function QOn(n,i){return i??{x:n.x,y:n.y}}function e6n(){return navigator.maxTouchPoints||"ontouchstart"in this}function mHt(){var n=XOn,i=ZOn,a=QOn,c=e6n,d={},g=Bse("start","drag","end"),b=0,w,E,S,k,_=0;function C(H){H.on("mousedown.drag",R).filter(c).on("touchstart.drag",B).on("touchmove.drag",F,JOn).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(H,Q){if(!(k||!n.call(this,H,Q))){var re=P(this,i.call(this,H,Q),H,Q,"mouse");re&&(Mm(H.view).on("mousemove.drag",M,HH).on("mouseup.drag",D,HH),gHt(H.view),kCe(H),S=!1,w=H.clientX,E=H.clientY,re("start",H))}}function M(H){if(QM(H),!S){var Q=H.clientX-w,re=H.clientY-E;S=Q*Q+re*re>_}d.mouse("drag",H)}function D(H){Mm(H.view).on("mousemove.drag mouseup.drag",null),bHt(H.view,S),QM(H),d.mouse("end",H)}function B(H,Q){if(n.call(this,H,Q)){var re=H.changedTouches,ee=i.call(this,H,Q),ae=re.length,he,ve;for(he=0;he>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):a===8?cie(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):a===4?cie(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=n6n.exec(n))?new ab(i[1],i[2],i[3],1):(i=r6n.exec(n))?new ab(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=i6n.exec(n))?cie(i[1],i[2],i[3],i[4]):(i=o6n.exec(n))?cie(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=s6n.exec(n))?p5t(i[1],i[2]/100,i[3]/100,1):(i=a6n.exec(n))?p5t(i[1],i[2]/100,i[3]/100,i[4]):u5t.hasOwnProperty(n)?d5t(u5t[n]):n==="transparent"?new ab(NaN,NaN,NaN,0):null}function d5t(n){return new ab(n>>16&255,n>>8&255,n&255,1)}function cie(n,i,a,c){return c<=0&&(n=i=a=NaN),new ab(n,i,a,c)}function l6n(n){return n instanceof mz||(n=uR(n)),n?(n=n.rgb(),new ab(n.r,n.g,n.b,n.opacity)):new ab}function Y6e(n,i,a,c){return arguments.length===1?l6n(n):new ab(n,i,a,c??1)}function ab(n,i,a,c){this.r=+n,this.g=+i,this.b=+a,this.opacity=+c}uMe(ab,Y6e,wHt(mz,{brighter(n){return n=n==null?Poe:Math.pow(Poe,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?zH:Math.pow(zH,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new ab(Z4(this.r),Z4(this.g),Z4(this.b),joe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f5t,formatHex:f5t,formatHex8:d6n,formatRgb:h5t,toString:h5t}));function f5t(){return`#${Y4(this.r)}${Y4(this.g)}${Y4(this.b)}`}function d6n(){return`#${Y4(this.r)}${Y4(this.g)}${Y4(this.b)}${Y4((isNaN(this.opacity)?1:this.opacity)*255)}`}function h5t(){const n=joe(this.opacity);return`${n===1?"rgb(":"rgba("}${Z4(this.r)}, ${Z4(this.g)}, ${Z4(this.b)}${n===1?")":`, ${n})`}`}function joe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Z4(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Y4(n){return n=Z4(n),(n<16?"0":"")+n.toString(16)}function p5t(n,i,a,c){return c<=0?n=i=a=NaN:a<=0||a>=1?n=i=NaN:i<=0&&(n=NaN),new Cv(n,i,a,c)}function yHt(n){if(n instanceof Cv)return new Cv(n.h,n.s,n.l,n.opacity);if(n instanceof mz||(n=uR(n)),!n)return new Cv;if(n instanceof Cv)return n;n=n.rgb();var i=n.r/255,a=n.g/255,c=n.b/255,d=Math.min(i,a,c),g=Math.max(i,a,c),b=NaN,w=g-d,E=(g+d)/2;return w?(i===g?b=(a-c)/w+(a0&&E<1?0:b,new Cv(b,w,E,n.opacity)}function f6n(n,i,a,c){return arguments.length===1?yHt(n):new Cv(n,i,a,c??1)}function Cv(n,i,a,c){this.h=+n,this.s=+i,this.l=+a,this.opacity=+c}uMe(Cv,f6n,wHt(mz,{brighter(n){return n=n==null?Poe:Math.pow(Poe,n),new Cv(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?zH:Math.pow(zH,n),new Cv(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,i=isNaN(n)||isNaN(this.s)?0:this.s,a=this.l,c=a+(a<.5?a:1-a)*i,d=2*a-c;return new ab(xCe(n>=240?n-240:n+120,d,c),xCe(n,d,c),xCe(n<120?n+240:n-120,d,c),this.opacity)},clamp(){return new Cv(g5t(this.h),lie(this.s),lie(this.l),joe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=joe(this.opacity);return`${n===1?"hsl(":"hsla("}${g5t(this.h)}, ${lie(this.s)*100}%, ${lie(this.l)*100}%${n===1?")":`, ${n})`}`}}));function g5t(n){return n=(n||0)%360,n<0?n+360:n}function lie(n){return Math.max(0,Math.min(1,n||0))}function xCe(n,i,a){return(n<60?i+(a-i)*n/60:n<180?a:n<240?i+(a-i)*(240-n)/60:i)*255}const cMe=n=>()=>n;function h6n(n,i){return function(a){return n+a*i}}function p6n(n,i,a){return n=Math.pow(n,a),i=Math.pow(i,a)-n,a=1/a,function(c){return Math.pow(n+c*i,a)}}function g6n(n){return(n=+n)==1?vHt:function(i,a){return a-i?p6n(i,a,n):cMe(isNaN(i)?a:i)}}function vHt(n,i){var a=i-n;return a?h6n(n,a):cMe(isNaN(n)?i:n)}const Foe=function n(i){var a=g6n(i);function c(d,g){var b=a((d=Y6e(d)).r,(g=Y6e(g)).r),w=a(d.g,g.g),E=a(d.b,g.b),S=vHt(d.opacity,g.opacity);return function(k){return d.r=b(k),d.g=w(k),d.b=E(k),d.opacity=S(k),d+""}}return c.gamma=n,c}(1);function b6n(n,i){i||(i=[]);var a=n?Math.min(i.length,n.length):0,c=i.slice(),d;return function(g){for(d=0;da&&(g=i.slice(a,g),w[b]?w[b]+=g:w[++b]=g),(c=c[0])===(d=d[0])?w[b]?w[b]+=d:w[++b]=d:(w[++b]=null,E.push({i:b,x:C2(c,d)})),a=NCe.lastIndex;return a180?k+=360:k-S>180&&(S+=360),C.push({i:_.push(d(_)+"rotate(",null,c)-2,x:C2(S,k)})):k&&_.push(d(_)+"rotate("+k+c)}function w(S,k,_,C){S!==k?C.push({i:_.push(d(_)+"skewX(",null,c)-2,x:C2(S,k)}):k&&_.push(d(_)+"skewX("+k+c)}function E(S,k,_,C,R,M){if(S!==_||k!==C){var D=R.push(d(R)+"scale(",null,",",null,")");M.push({i:D-4,x:C2(S,_)},{i:D-2,x:C2(k,C)})}else(_!==1||C!==1)&&R.push(d(R)+"scale("+_+","+C+")")}return function(S,k){var _=[],C=[];return S=n(S),k=n(k),g(S.translateX,S.translateY,k.translateX,k.translateY,_,C),b(S.rotate,k.rotate,_,C),w(S.skewX,k.skewX,_,C),E(S.scaleX,S.scaleY,k.scaleX,k.scaleY,_,C),S=k=null,function(R){for(var M=-1,D=C.length,B;++M=0&&n._call.call(void 0,i),n=n._next;--w5}function w5t(){cR=(Boe=qH.now())+Hse,w5=KU=0;try{R6n()}finally{w5=0,D6n(),cR=0}}function O6n(){var n=qH.now(),i=n-Boe;i>AHt&&(Hse-=i,Boe=n)}function D6n(){for(var n,i=$oe,a,c=1/0;i;)i._call?(c>i._time&&(c=i._time),n=i,i=i._next):(a=i._next,i._next=null,i=n?n._next=a:$oe=a);YU=n,Z6e(c)}function Z6e(n){if(!w5){KU&&(KU=clearTimeout(KU));var i=n-cR;i>24?(n<1/0&&(KU=setTimeout(w5t,n-qH.now()-Hse)),PU&&(PU=clearInterval(PU))):(PU||(Boe=qH.now(),PU=setInterval(O6n,AHt)),w5=1,_Ht(w5t))}}function y5t(n,i,a){var c=new Uoe;return i=i==null?0:+i,c.restart(d=>{c.stop(),n(d+i)},i,a),c}var L6n=Bse("start","end","cancel","interrupt"),M6n=[],xHt=0,v5t=1,Q6e=2,Jie=3,E5t=4,eDe=5,Xie=6;function zse(n,i,a,c,d,g){var b=n.__transition;if(!b)n.__transition={};else if(a in b)return;P6n(n,a,{name:i,index:c,group:d,on:L6n,tween:M6n,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:xHt})}function dMe(n,i){var a=Bv(n,i);if(a.state>xHt)throw new Error("too late; already scheduled");return a}function V2(n,i){var a=Bv(n,i);if(a.state>Jie)throw new Error("too late; already running");return a}function Bv(n,i){var a=n.__transition;if(!a||!(a=a[i]))throw new Error("transition not found");return a}function P6n(n,i,a){var c=n.__transition,d;c[i]=a,a.timer=kHt(g,0,a.time);function g(S){a.state=v5t,a.timer.restart(b,a.delay,a.time),a.delay<=S&&b(S-a.delay)}function b(S){var k,_,C,R;if(a.state!==v5t)return E();for(k in c)if(R=c[k],R.name===a.name){if(R.state===Jie)return y5t(b);R.state===E5t?(R.state=Xie,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete c[k]):+kQ6e&&c.state=0&&(i=i.slice(0,a)),!i||i==="start"})}function fDn(n,i,a){var c,d,g=dDn(i)?dMe:V2;return function(){var b=g(this,n),w=b.on;w!==c&&(d=(c=w).copy()).on(i,a),b.on=d}}function hDn(n,i){var a=this._id;return arguments.length<2?Bv(this.node(),a).on.on(n):this.each(fDn(a,n,i))}function pDn(n){return function(){var i=this.parentNode;for(var a in this.__transition)if(+a!==n)return;i&&i.removeChild(this)}}function gDn(){return this.on("end.remove",pDn(this._id))}function bDn(n){var i=this._name,a=this._id;typeof n!="function"&&(n=sMe(n));for(var c=this._groups,d=c.length,g=new Array(d),b=0;b()=>n;function UDn(n,{sourceEvent:i,target:a,transform:c,dispatch:d}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},transform:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function uA(n,i,a){this.k=n,this.x=i,this.y=a}uA.prototype={constructor:uA,scale:function(n){return n===1?this:new uA(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new uA(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Gse=new uA(1,0,0);RHt.prototype=uA.prototype;function RHt(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Gse;return n.__zoom}function CCe(n){n.stopImmediatePropagation()}function jU(n){n.preventDefault(),n.stopImmediatePropagation()}function HDn(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function zDn(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function S5t(){return this.__zoom||Gse}function GDn(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function qDn(){return navigator.maxTouchPoints||"ontouchstart"in this}function VDn(n,i,a){var c=n.invertX(i[0][0])-a[0][0],d=n.invertX(i[1][0])-a[1][0],g=n.invertY(i[0][1])-a[0][1],b=n.invertY(i[1][1])-a[1][1];return n.translate(d>c?(c+d)/2:Math.min(0,c)||Math.max(0,d),b>g?(g+b)/2:Math.min(0,g)||Math.max(0,b))}function OHt(){var n=HDn,i=zDn,a=VDn,c=GDn,d=qDn,g=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,E=Yie,S=Bse("start","zoom","end"),k,_,C,R=500,M=150,D=0,B=10;function F(fe){fe.property("__zoom",S5t).on("wheel.zoom",ae,{passive:!1}).on("mousedown.zoom",he).on("dblclick.zoom",ve).filter(d).on("touchstart.zoom",de).on("touchmove.zoom",ge).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}F.transform=function(fe,De,Se,$e){var Te=fe.selection?fe.selection():fe;Te.property("__zoom",S5t),fe!==Te?Q(fe,De,Se,$e):Te.interrupt().each(function(){re(this,arguments).event($e).start().zoom(null,typeof De=="function"?De.apply(this,arguments):De).end()})},F.scaleBy=function(fe,De,Se,$e){F.scaleTo(fe,function(){var Te=this.__zoom.k,ke=typeof De=="function"?De.apply(this,arguments):De;return Te*ke},Se,$e)},F.scaleTo=function(fe,De,Se,$e){F.transform(fe,function(){var Te=i.apply(this,arguments),ke=this.__zoom,Je=Se==null?H(Te):typeof Se=="function"?Se.apply(this,arguments):Se,bt=ke.invert(Je),qe=typeof De=="function"?De.apply(this,arguments):De;return a(P($(ke,qe),Je,bt),Te,b)},Se,$e)},F.translateBy=function(fe,De,Se,$e){F.transform(fe,function(){return a(this.__zoom.translate(typeof De=="function"?De.apply(this,arguments):De,typeof Se=="function"?Se.apply(this,arguments):Se),i.apply(this,arguments),b)},null,$e)},F.translateTo=function(fe,De,Se,$e,Te){F.transform(fe,function(){var ke=i.apply(this,arguments),Je=this.__zoom,bt=$e==null?H(ke):typeof $e=="function"?$e.apply(this,arguments):$e;return a(Gse.translate(bt[0],bt[1]).scale(Je.k).translate(typeof De=="function"?-De.apply(this,arguments):-De,typeof Se=="function"?-Se.apply(this,arguments):-Se),ke,b)},$e,Te)};function $(fe,De){return De=Math.max(g[0],Math.min(g[1],De)),De===fe.k?fe:new uA(De,fe.x,fe.y)}function P(fe,De,Se){var $e=De[0]-Se[0]*fe.k,Te=De[1]-Se[1]*fe.k;return $e===fe.x&&Te===fe.y?fe:new uA(fe.k,$e,Te)}function H(fe){return[(+fe[0][0]+ +fe[1][0])/2,(+fe[0][1]+ +fe[1][1])/2]}function Q(fe,De,Se,$e){fe.on("start.zoom",function(){re(this,arguments).event($e).start()}).on("interrupt.zoom end.zoom",function(){re(this,arguments).event($e).end()}).tween("zoom",function(){var Te=this,ke=arguments,Je=re(Te,ke).event($e),bt=i.apply(Te,ke),qe=Se==null?H(bt):typeof Se=="function"?Se.apply(Te,ke):Se,_t=Math.max(bt[1][0]-bt[0][0],bt[1][1]-bt[0][1]),At=Te.__zoom,ft=typeof De=="function"?De.apply(Te,ke):De,Kt=E(At.invert(qe).concat(_t/At.k),ft.invert(qe).concat(_t/ft.k));return function(kt){if(kt===1)kt=ft;else{var It=Kt(kt),Xt=_t/It[2];kt=new uA(Xt,qe[0]-It[0]*Xt,qe[1]-It[1]*Xt)}Je.zoom(null,kt)}})}function re(fe,De,Se){return!Se&&fe.__zooming||new ee(fe,De)}function ee(fe,De){this.that=fe,this.args=De,this.active=0,this.sourceEvent=null,this.extent=i.apply(fe,De),this.taps=0}ee.prototype={event:function(fe){return fe&&(this.sourceEvent=fe),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(fe,De){return this.mouse&&fe!=="mouse"&&(this.mouse[1]=De.invert(this.mouse[0])),this.touch0&&fe!=="touch"&&(this.touch0[1]=De.invert(this.touch0[0])),this.touch1&&fe!=="touch"&&(this.touch1[1]=De.invert(this.touch1[0])),this.that.__zoom=De,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(fe){var De=Mm(this.that).datum();S.call(fe,this.that,new UDn(fe,{sourceEvent:this.sourceEvent,target:F,transform:this.that.__zoom,dispatch:S}),De)}};function ae(fe,...De){if(!n.apply(this,arguments))return;var Se=re(this,De).event(fe),$e=this.__zoom,Te=Math.max(g[0],Math.min(g[1],$e.k*Math.pow(2,c.apply(this,arguments)))),ke=xv(fe);if(Se.wheel)(Se.mouse[0][0]!==ke[0]||Se.mouse[0][1]!==ke[1])&&(Se.mouse[1]=$e.invert(Se.mouse[0]=ke)),clearTimeout(Se.wheel);else{if($e.k===Te)return;Se.mouse=[ke,$e.invert(ke)],Zie(this),Se.start()}jU(fe),Se.wheel=setTimeout(Je,M),Se.zoom("mouse",a(P($($e,Te),Se.mouse[0],Se.mouse[1]),Se.extent,b));function Je(){Se.wheel=null,Se.end()}}function he(fe,...De){if(C||!n.apply(this,arguments))return;var Se=fe.currentTarget,$e=re(this,De,!0).event(fe),Te=Mm(fe.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",_t,!0),ke=xv(fe,Se),Je=fe.clientX,bt=fe.clientY;gHt(fe.view),CCe(fe),$e.mouse=[ke,this.__zoom.invert(ke)],Zie(this),$e.start();function qe(At){if(jU(At),!$e.moved){var ft=At.clientX-Je,Kt=At.clientY-bt;$e.moved=ft*ft+Kt*Kt>D}$e.event(At).zoom("mouse",a(P($e.that.__zoom,$e.mouse[0]=xv(At,Se),$e.mouse[1]),$e.extent,b))}function _t(At){Te.on("mousemove.zoom mouseup.zoom",null),bHt(At.view,$e.moved),jU(At),$e.event(At).end()}}function ve(fe,...De){if(n.apply(this,arguments)){var Se=this.__zoom,$e=xv(fe.changedTouches?fe.changedTouches[0]:fe,this),Te=Se.invert($e),ke=Se.k*(fe.shiftKey?.5:2),Je=a(P($(Se,ke),$e,Te),i.apply(this,De),b);jU(fe),w>0?Mm(this).transition().duration(w).call(Q,Je,$e,fe):Mm(this).call(F.transform,Je,$e,fe)}}function de(fe,...De){if(n.apply(this,arguments)){var Se=fe.touches,$e=Se.length,Te=re(this,De,fe.changedTouches.length===$e).event(fe),ke,Je,bt,qe;for(CCe(fe),Je=0;Je<$e;++Je)bt=Se[Je],qe=xv(bt,this),qe=[qe,this.__zoom.invert(qe),bt.identifier],Te.touch0?!Te.touch1&&Te.touch0[2]!==qe[2]&&(Te.touch1=qe,Te.taps=0):(Te.touch0=qe,ke=!0,Te.taps=1+!!k);k&&(k=clearTimeout(k)),ke&&(Te.taps<2&&(_=qe[0],k=setTimeout(function(){k=null},R)),Zie(this),Te.start())}}function ge(fe,...De){if(this.__zooming){var Se=re(this,De).event(fe),$e=fe.changedTouches,Te=$e.length,ke,Je,bt,qe;for(jU(fe),ke=0;ke"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:n=>`Node type "${n}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:n=>`The old edge with id=${n} does not exist.`,error009:n=>`Marker type "${n}" doesn't exist.`,error008:(n,{id:i,sourceHandle:a,targetHandle:c})=>`Couldn't create edge for ${n} handle id: "${n==="source"?a:c}", edge id: ${i}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:n=>`Edge type "${n}" not found. Using fallback type "default".`,error012:n=>`Node with id "${n}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(n="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${n}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},VH=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],DHt=["Enter"," ","Escape"],LHt={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:n,x:i,y:a})=>`Moved selected node ${n}. New position, x: ${i}, y: ${a}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var y5;(function(n){n.Strict="strict",n.Loose="loose"})(y5||(y5={}));var Q4;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(Q4||(Q4={}));var WH;(function(n){n.Partial="partial",n.Full="full"})(WH||(WH={}));const MHt={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var $x;(function(n){n.Bezier="default",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n.SimpleBezier="simplebezier"})($x||($x={}));var iA;(function(n){n.Arrow="arrow",n.ArrowClosed="arrowclosed"})(iA||(iA={}));var Vr;(function(n){n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom"})(Vr||(Vr={}));const T5t={[Vr.Left]:Vr.Right,[Vr.Right]:Vr.Left,[Vr.Top]:Vr.Bottom,[Vr.Bottom]:Vr.Top};function PHt(n){return n===null?null:n?"valid":"invalid"}const jHt=n=>"id"in n&&"source"in n&&"target"in n,WDn=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),hMe=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),wz=(n,i=[0,0])=>{const{width:a,height:c}=TA(n),d=n.origin??i,g=a*d[0],b=c*d[1];return{x:n.position.x-g,y:n.position.y-b}},KDn=(n,i={nodeOrigin:[0,0]})=>{if(n.length===0)return{x:0,y:0,width:0,height:0};const a=n.reduce((c,d)=>{const g=typeof d=="string";let b=!i.nodeLookup&&!g?d:void 0;i.nodeLookup&&(b=g?i.nodeLookup.get(d):hMe(d)?d:i.nodeLookup.get(d.id));const w=b?Hoe(b,i.nodeOrigin):{x:0,y:0,x2:0,y2:0};return qse(c,w)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Vse(a)},yz=(n,i={})=>{let a={x:1/0,y:1/0,x2:-1/0,y2:-1/0},c=!1;return n.forEach(d=>{(i.filter===void 0||i.filter(d))&&(a=qse(a,Hoe(d)),c=!0)}),c?Vse(a):{x:0,y:0,width:0,height:0}},pMe=(n,i,[a,c,d]=[0,0,1],g=!1,b=!1)=>{const w={...Ez(i,[a,c,d]),width:i.width/d,height:i.height/d},E=[];for(const S of n.values()){const{measured:k,selectable:_=!0,hidden:C=!1}=S;if(b&&!_||C)continue;const R=k.width??S.width??S.initialWidth??null,M=k.height??S.height??S.initialHeight??null,D=KH(w,E5(S)),B=(R??0)*(M??0),F=g&&D>0;(!S.internals.handleBounds||F||D>=B||S.dragging)&&E.push(S)}return E},YDn=(n,i)=>{const a=new Set;return n.forEach(c=>{a.add(c.id)}),i.filter(c=>a.has(c.source)||a.has(c.target))};function JDn(n,i){const a=new Map,c=i!=null&&i.nodes?new Set(i.nodes.map(d=>d.id)):null;return n.forEach(d=>{d.measured.width&&d.measured.height&&((i==null?void 0:i.includeHiddenNodes)||!d.hidden)&&(!c||c.has(d.id))&&a.set(d.id,d)}),a}async function XDn({nodes:n,width:i,height:a,panZoom:c,minZoom:d,maxZoom:g},b){if(n.size===0)return Promise.resolve(!0);const w=JDn(n,b),E=yz(w),S=gMe(E,i,a,(b==null?void 0:b.minZoom)??d,(b==null?void 0:b.maxZoom)??g,(b==null?void 0:b.padding)??.1);return await c.setViewport(S,{duration:b==null?void 0:b.duration,ease:b==null?void 0:b.ease,interpolate:b==null?void 0:b.interpolate}),Promise.resolve(!0)}function FHt({nodeId:n,nextPosition:i,nodeLookup:a,nodeOrigin:c=[0,0],nodeExtent:d,onError:g}){const b=a.get(n),w=b.parentId?a.get(b.parentId):void 0,{x:E,y:S}=w?w.internals.positionAbsolute:{x:0,y:0},k=b.origin??c;let _=b.extent||d;if(b.extent==="parent"&&!b.expandParent)if(!w)g==null||g("005",H2.error005());else{const R=w.measured.width,M=w.measured.height;R&&M&&(_=[[E,S],[E+R,S+M]])}else w&&S5(b.extent)&&(_=[[b.extent[0][0]+E,b.extent[0][1]+S],[b.extent[1][0]+E,b.extent[1][1]+S]]);const C=S5(_)?lR(i,_,b.measured):i;return(b.measured.width===void 0||b.measured.height===void 0)&&(g==null||g("015",H2.error015())),{position:{x:C.x-E+(b.measured.width??0)*k[0],y:C.y-S+(b.measured.height??0)*k[1]},positionAbsolute:C}}async function ZDn({nodesToRemove:n=[],edgesToRemove:i=[],nodes:a,edges:c,onBeforeDelete:d}){const g=new Set(n.map(C=>C.id)),b=[];for(const C of a){if(C.deletable===!1)continue;const R=g.has(C.id),M=!R&&C.parentId&&b.find(D=>D.id===C.parentId);(R||M)&&b.push(C)}const w=new Set(i.map(C=>C.id)),E=c.filter(C=>C.deletable!==!1),k=YDn(b,E);for(const C of E)w.has(C.id)&&!k.find(M=>M.id===C.id)&&k.push(C);if(!d)return{edges:k,nodes:b};const _=await d({nodes:b,edges:k});return typeof _=="boolean"?_?{edges:k,nodes:b}:{edges:[],nodes:[]}:_}const v5=(n,i=0,a=1)=>Math.min(Math.max(n,i),a),lR=(n={x:0,y:0},i,a)=>({x:v5(n.x,i[0][0],i[1][0]-((a==null?void 0:a.width)??0)),y:v5(n.y,i[0][1],i[1][1]-((a==null?void 0:a.height)??0))});function $Ht(n,i,a){const{width:c,height:d}=TA(a),{x:g,y:b}=a.internals.positionAbsolute;return lR(n,[[g,b],[g+c,b+d]],i)}const A5t=(n,i,a)=>na?-v5(Math.abs(n-a),1,i)/i:0,BHt=(n,i,a=15,c=40)=>{const d=A5t(n.x,c,i.width-c)*a,g=A5t(n.y,c,i.height-c)*a;return[d,g]},qse=(n,i)=>({x:Math.min(n.x,i.x),y:Math.min(n.y,i.y),x2:Math.max(n.x2,i.x2),y2:Math.max(n.y2,i.y2)}),tDe=({x:n,y:i,width:a,height:c})=>({x:n,y:i,x2:n+a,y2:i+c}),Vse=({x:n,y:i,x2:a,y2:c})=>({x:n,y:i,width:a-n,height:c-i}),E5=(n,i=[0,0])=>{var d,g;const{x:a,y:c}=hMe(n)?n.internals.positionAbsolute:wz(n,i);return{x:a,y:c,width:((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0,height:((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0}},Hoe=(n,i=[0,0])=>{var d,g;const{x:a,y:c}=hMe(n)?n.internals.positionAbsolute:wz(n,i);return{x:a,y:c,x2:a+(((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0),y2:c+(((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0)}},UHt=(n,i)=>Vse(qse(tDe(n),tDe(i))),KH=(n,i)=>{const a=Math.max(0,Math.min(n.x+n.width,i.x+i.width)-Math.max(n.x,i.x)),c=Math.max(0,Math.min(n.y+n.height,i.y+i.height)-Math.max(n.y,i.y));return Math.ceil(a*c)},_5t=n=>Iv(n.width)&&Iv(n.height)&&Iv(n.x)&&Iv(n.y),Iv=n=>!isNaN(n)&&isFinite(n),QDn=(n,i)=>{},vz=(n,i=[1,1])=>({x:i[0]*Math.round(n.x/i[0]),y:i[1]*Math.round(n.y/i[1])}),Ez=({x:n,y:i},[a,c,d],g=!1,b=[1,1])=>{const w={x:(n-a)/d,y:(i-c)/d};return g?vz(w,b):w},zoe=({x:n,y:i},[a,c,d])=>({x:n*d+a,y:i*d+c});function gM(n,i){if(typeof n=="number")return Math.floor((i-i/(1+n))*.5);if(typeof n=="string"&&n.endsWith("px")){const a=parseFloat(n);if(!Number.isNaN(a))return Math.floor(a)}if(typeof n=="string"&&n.endsWith("%")){const a=parseFloat(n);if(!Number.isNaN(a))return Math.floor(i*a*.01)}return console.error(`[React Flow] The padding value "${n}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function eLn(n,i,a){if(typeof n=="string"||typeof n=="number"){const c=gM(n,a),d=gM(n,i);return{top:c,right:d,bottom:c,left:d,x:d*2,y:c*2}}if(typeof n=="object"){const c=gM(n.top??n.y??0,a),d=gM(n.bottom??n.y??0,a),g=gM(n.left??n.x??0,i),b=gM(n.right??n.x??0,i);return{top:c,right:b,bottom:d,left:g,x:g+b,y:c+d}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function tLn(n,i,a,c,d,g){const{x:b,y:w}=zoe(n,[i,a,c]),{x:E,y:S}=zoe({x:n.x+n.width,y:n.y+n.height},[i,a,c]),k=d-E,_=g-S;return{left:Math.floor(b),top:Math.floor(w),right:Math.floor(k),bottom:Math.floor(_)}}const gMe=(n,i,a,c,d,g)=>{const b=eLn(g,i,a),w=(i-b.x)/n.width,E=(a-b.y)/n.height,S=Math.min(w,E),k=v5(S,c,d),_=n.x+n.width/2,C=n.y+n.height/2,R=i/2-_*k,M=a/2-C*k,D=tLn(n,R,M,k,i,a),B={left:Math.min(D.left-b.left,0),top:Math.min(D.top-b.top,0),right:Math.min(D.right-b.right,0),bottom:Math.min(D.bottom-b.bottom,0)};return{x:R-B.left+B.right,y:M-B.top+B.bottom,zoom:k}},YH=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function S5(n){return n!=null&&n!=="parent"}function TA(n){var i,a;return{width:((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth??0,height:((a=n.measured)==null?void 0:a.height)??n.height??n.initialHeight??0}}function HHt(n){var i,a;return(((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth)!==void 0&&(((a=n.measured)==null?void 0:a.height)??n.height??n.initialHeight)!==void 0}function zHt(n,i={width:0,height:0},a,c,d){const g={...n},b=c.get(a);if(b){const w=b.origin||d;g.x+=b.internals.positionAbsolute.x-(i.width??0)*w[0],g.y+=b.internals.positionAbsolute.y-(i.height??0)*w[1]}return g}function k5t(n,i){if(n.size!==i.size)return!1;for(const a of n)if(!i.has(a))return!1;return!0}function nLn(){let n,i;return{promise:new Promise((c,d)=>{n=c,i=d}),resolve:n,reject:i}}function rLn(n){return{...LHt,...n||{}}}function mH(n,{snapGrid:i=[0,0],snapToGrid:a=!1,transform:c,containerBounds:d}){const{x:g,y:b}=Rv(n),w=Ez({x:g-((d==null?void 0:d.left)??0),y:b-((d==null?void 0:d.top)??0)},c),{x:E,y:S}=a?vz(w,i):w;return{xSnapped:E,ySnapped:S,...w}}const bMe=n=>({width:n.offsetWidth,height:n.offsetHeight}),GHt=n=>{var i;return((i=n==null?void 0:n.getRootNode)==null?void 0:i.call(n))||(window==null?void 0:window.document)},iLn=["INPUT","SELECT","TEXTAREA"];function qHt(n){var c,d;const i=((d=(c=n.composedPath)==null?void 0:c.call(n))==null?void 0:d[0])||n.target;return(i==null?void 0:i.nodeType)!==1?!1:iLn.includes(i.nodeName)||i.hasAttribute("contenteditable")||!!i.closest(".nokey")}const VHt=n=>"clientX"in n,Rv=(n,i)=>{var g,b;const a=VHt(n),c=a?n.clientX:(g=n.touches)==null?void 0:g[0].clientX,d=a?n.clientY:(b=n.touches)==null?void 0:b[0].clientY;return{x:c-((i==null?void 0:i.left)??0),y:d-((i==null?void 0:i.top)??0)}},x5t=(n,i,a,c,d)=>{const g=i.querySelectorAll(`.${n}`);return!g||!g.length?null:Array.from(g).map(b=>{const w=b.getBoundingClientRect();return{id:b.getAttribute("data-handleid"),type:n,nodeId:d,position:b.getAttribute("data-handlepos"),x:(w.left-a.left)/c,y:(w.top-a.top)/c,...bMe(b)}})};function WHt({sourceX:n,sourceY:i,targetX:a,targetY:c,sourceControlX:d,sourceControlY:g,targetControlX:b,targetControlY:w}){const E=n*.125+d*.375+b*.375+a*.125,S=i*.125+g*.375+w*.375+c*.125,k=Math.abs(E-n),_=Math.abs(S-i);return[E,S,k,_]}function hie(n,i){return n>=0?.5*n:i*25*Math.sqrt(-n)}function N5t({pos:n,x1:i,y1:a,x2:c,y2:d,c:g}){switch(n){case Vr.Left:return[i-hie(i-c,g),a];case Vr.Right:return[i+hie(c-i,g),a];case Vr.Top:return[i,a-hie(a-d,g)];case Vr.Bottom:return[i,a+hie(d-a,g)]}}function KHt({sourceX:n,sourceY:i,sourcePosition:a=Vr.Bottom,targetX:c,targetY:d,targetPosition:g=Vr.Top,curvature:b=.25}){const[w,E]=N5t({pos:a,x1:n,y1:i,x2:c,y2:d,c:b}),[S,k]=N5t({pos:g,x1:c,y1:d,x2:n,y2:i,c:b}),[_,C,R,M]=WHt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:w,sourceControlY:E,targetControlX:S,targetControlY:k});return[`M${n},${i} C${w},${E} ${S},${k} ${c},${d}`,_,C,R,M]}function YHt({sourceX:n,sourceY:i,targetX:a,targetY:c}){const d=Math.abs(a-n)/2,g=a0}const aLn=({source:n,sourceHandle:i,target:a,targetHandle:c})=>`xy-edge__${n}${i||""}-${a}${c||""}`,uLn=(n,i)=>i.some(a=>a.source===n.source&&a.target===n.target&&(a.sourceHandle===n.sourceHandle||!a.sourceHandle&&!n.sourceHandle)&&(a.targetHandle===n.targetHandle||!a.targetHandle&&!n.targetHandle)),JHt=(n,i,a={})=>{if(!n.source||!n.target)return i;const c=a.getEdgeId||aLn;let d;return jHt(n)?d={...n}:d={...n,id:c(n)},uLn(d,i)?i:(d.sourceHandle===null&&delete d.sourceHandle,d.targetHandle===null&&delete d.targetHandle,i.concat(d))};function XHt({sourceX:n,sourceY:i,targetX:a,targetY:c}){const[d,g,b,w]=YHt({sourceX:n,sourceY:i,targetX:a,targetY:c});return[`M ${n},${i}L ${a},${c}`,d,g,b,w]}const C5t={[Vr.Left]:{x:-1,y:0},[Vr.Right]:{x:1,y:0},[Vr.Top]:{x:0,y:-1},[Vr.Bottom]:{x:0,y:1}},cLn=({source:n,sourcePosition:i=Vr.Bottom,target:a})=>i===Vr.Left||i===Vr.Right?n.xMath.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2));function lLn({source:n,sourcePosition:i=Vr.Bottom,target:a,targetPosition:c=Vr.Top,center:d,offset:g,stepPosition:b}){const w=C5t[i],E=C5t[c],S={x:n.x+w.x*g,y:n.y+w.y*g},k={x:a.x+E.x*g,y:a.y+E.y*g},_=cLn({source:S,sourcePosition:i,target:k}),C=_.x!==0?"x":"y",R=_[C];let M=[],D,B;const F={x:0,y:0},$={x:0,y:0},[,,P,H]=YHt({sourceX:n.x,sourceY:n.y,targetX:a.x,targetY:a.y});if(w[C]*E[C]===-1){C==="x"?(D=d.x??S.x+(k.x-S.x)*b,B=d.y??(S.y+k.y)/2):(D=d.x??(S.x+k.x)/2,B=d.y??S.y+(k.y-S.y)*b);const re=[{x:D,y:S.y},{x:D,y:k.y}],ee=[{x:S.x,y:B},{x:k.x,y:B}];w[C]===R?M=C==="x"?re:ee:M=C==="x"?ee:re}else{const re=[{x:S.x,y:k.y}],ee=[{x:k.x,y:S.y}];if(C==="x"?M=w.x===R?ee:re:M=w.y===R?re:ee,i===c){const ge=Math.abs(n[C]-a[C]);if(ge<=g){const Y=Math.min(g-1,g-ge);w[C]===R?F[C]=(S[C]>n[C]?-1:1)*Y:$[C]=(k[C]>a[C]?-1:1)*Y}}if(i!==c){const ge=C==="x"?"y":"x",Y=w[C]===E[ge],fe=S[ge]>k[ge],De=S[ge]=de?(D=(ae.x+he.x)/2,B=M[0].y):(D=M[0].x,B=(ae.y+he.y)/2)}return[[n,{x:S.x+F.x,y:S.y+F.y},...M,{x:k.x+$.x,y:k.y+$.y},a],D,B,P,H]}function dLn(n,i,a,c){const d=Math.min(I5t(n,i)/2,I5t(i,a)/2,c),{x:g,y:b}=i;if(n.x===g&&g===a.x||n.y===b&&b===a.y)return`L${g} ${b}`;if(n.y===b){const S=n.x{let H="";return P>0&&P<_.length-1?H=dLn(_[P-1],$,_[P+1],b):H=`${P===0?"M":"L"}${$.x} ${$.y}`,F+=H,F},""),C,R,M,D]}function R5t(n){var i;return n&&!!(n.internals.handleBounds||(i=n.handles)!=null&&i.length)&&!!(n.measured.width||n.width||n.initialWidth)}function fLn(n){var _;const{sourceNode:i,targetNode:a}=n;if(!R5t(i)||!R5t(a))return null;const c=i.internals.handleBounds||O5t(i.handles),d=a.internals.handleBounds||O5t(a.handles),g=D5t((c==null?void 0:c.source)??[],n.sourceHandle),b=D5t(n.connectionMode===y5.Strict?(d==null?void 0:d.target)??[]:((d==null?void 0:d.target)??[]).concat((d==null?void 0:d.source)??[]),n.targetHandle);if(!g||!b)return(_=n.onError)==null||_.call(n,"008",H2.error008(g?"target":"source",{id:n.id,sourceHandle:n.sourceHandle,targetHandle:n.targetHandle})),null;const w=(g==null?void 0:g.position)||Vr.Bottom,E=(b==null?void 0:b.position)||Vr.Top,S=dR(i,g,w),k=dR(a,b,E);return{sourceX:S.x,sourceY:S.y,targetX:k.x,targetY:k.y,sourcePosition:w,targetPosition:E}}function O5t(n){if(!n)return null;const i=[],a=[];for(const c of n)c.width=c.width??1,c.height=c.height??1,c.type==="source"?i.push(c):c.type==="target"&&a.push(c);return{source:i,target:a}}function dR(n,i,a=Vr.Left,c=!1){const d=((i==null?void 0:i.x)??0)+n.internals.positionAbsolute.x,g=((i==null?void 0:i.y)??0)+n.internals.positionAbsolute.y,{width:b,height:w}=i??TA(n);if(c)return{x:d+b/2,y:g+w/2};switch((i==null?void 0:i.position)??a){case Vr.Top:return{x:d+b/2,y:g};case Vr.Right:return{x:d+b,y:g+w/2};case Vr.Bottom:return{x:d+b/2,y:g+w};case Vr.Left:return{x:d,y:g+w/2}}}function D5t(n,i){return n&&(i?n.find(a=>a.id===i):n[0])||null}function nDe(n,i){return n?typeof n=="string"?n:`${i?`${i}__`:""}${Object.keys(n).sort().map(c=>`${c}=${n[c]}`).join("&")}`:""}function hLn(n,{id:i,defaultColor:a,defaultMarkerStart:c,defaultMarkerEnd:d}){const g=new Set;return n.reduce((b,w)=>([w.markerStart||c,w.markerEnd||d].forEach(E=>{if(E&&typeof E=="object"){const S=nDe(E,i);g.has(S)||(b.push({id:S,color:E.color||a,...E}),g.add(S))}}),b),[]).sort((b,w)=>b.id.localeCompare(w.id))}const ZHt=1e3,pLn=10,mMe={nodeOrigin:[0,0],nodeExtent:VH,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},gLn={...mMe,checkEquality:!0};function wMe(n,i){const a={...n};for(const c in i)i[c]!==void 0&&(a[c]=i[c]);return a}function bLn(n,i,a){const c=wMe(mMe,a);for(const d of n.values())if(d.parentId)vMe(d,n,i,c);else{const g=wz(d,c.nodeOrigin),b=S5(d.extent)?d.extent:c.nodeExtent,w=lR(g,b,TA(d));d.internals.positionAbsolute=w}}function mLn(n,i){if(!n.handles)return n.measured?i==null?void 0:i.internals.handleBounds:void 0;const a=[],c=[];for(const d of n.handles){const g={id:d.id,width:d.width??1,height:d.height??1,nodeId:n.id,x:d.x,y:d.y,position:d.position,type:d.type};d.type==="source"?a.push(g):d.type==="target"&&c.push(g)}return{source:a,target:c}}function yMe(n){return n==="manual"}function rDe(n,i,a,c={}){var S,k;const d=wMe(gLn,c),g={i:0},b=new Map(i),w=d!=null&&d.elevateNodesOnSelect&&!yMe(d.zIndexMode)?ZHt:0;let E=n.length>0;i.clear(),a.clear();for(const _ of n){let C=b.get(_.id);if(d.checkEquality&&_===(C==null?void 0:C.internals.userNode))i.set(_.id,C);else{const R=wz(_,d.nodeOrigin),M=S5(_.extent)?_.extent:d.nodeExtent,D=lR(R,M,TA(_));C={...d.defaults,..._,measured:{width:(S=_.measured)==null?void 0:S.width,height:(k=_.measured)==null?void 0:k.height},internals:{positionAbsolute:D,handleBounds:mLn(_,C),z:QHt(_,w,d.zIndexMode),userNode:_}},i.set(_.id,C)}(C.measured===void 0||C.measured.width===void 0||C.measured.height===void 0)&&!C.hidden&&(E=!1),_.parentId&&vMe(C,i,a,c,g)}return E}function wLn(n,i){if(!n.parentId)return;const a=i.get(n.parentId);a?a.set(n.id,n):i.set(n.parentId,new Map([[n.id,n]]))}function vMe(n,i,a,c,d){const{elevateNodesOnSelect:g,nodeOrigin:b,nodeExtent:w,zIndexMode:E}=wMe(mMe,c),S=n.parentId,k=i.get(S);if(!k){console.warn(`Parent node ${S} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}wLn(n,a),d&&!k.parentId&&k.internals.rootParentIndex===void 0&&E==="auto"&&(k.internals.rootParentIndex=++d.i,k.internals.z=k.internals.z+d.i*pLn),d&&k.internals.rootParentIndex!==void 0&&(d.i=k.internals.rootParentIndex);const _=g&&!yMe(E)?ZHt:0,{x:C,y:R,z:M}=yLn(n,k,b,w,_,E),{positionAbsolute:D}=n.internals,B=C!==D.x||R!==D.y;(B||M!==n.internals.z)&&i.set(n.id,{...n,internals:{...n.internals,positionAbsolute:B?{x:C,y:R}:D,z:M}})}function QHt(n,i,a){const c=Iv(n.zIndex)?n.zIndex:0;return yMe(a)?c:c+(n.selected?i:0)}function yLn(n,i,a,c,d,g){const{x:b,y:w}=i.internals.positionAbsolute,E=TA(n),S=wz(n,a),k=S5(n.extent)?lR(S,n.extent,E):S;let _=lR({x:b+k.x,y:w+k.y},c,E);n.extent==="parent"&&(_=$Ht(_,E,i));const C=QHt(n,d,g),R=i.internals.z??0;return{x:_.x,y:_.y,z:R>=C?R+1:C}}function EMe(n,i,a,c=[0,0]){var b;const d=[],g=new Map;for(const w of n){const E=i.get(w.parentId);if(!E)continue;const S=((b=g.get(w.parentId))==null?void 0:b.expandedRect)??E5(E),k=UHt(S,w.rect);g.set(w.parentId,{expandedRect:k,parent:E})}return g.size>0&&g.forEach(({expandedRect:w,parent:E},S)=>{var P;const k=E.internals.positionAbsolute,_=TA(E),C=E.origin??c,R=w.x0||M>0||F||$)&&(d.push({id:S,type:"position",position:{x:E.position.x-R+F,y:E.position.y-M+$}}),(P=a.get(S))==null||P.forEach(H=>{n.some(Q=>Q.id===H.id)||d.push({id:H.id,type:"position",position:{x:H.position.x+R,y:H.position.y+M}})})),(_.width0){const R=EMe(C,i,a,d);S.push(...R)}return{changes:S,updatedInternals:E}}async function ELn({delta:n,panZoom:i,transform:a,translateExtent:c,width:d,height:g}){if(!i||!n.x&&!n.y)return Promise.resolve(!1);const b=await i.setViewportConstrained({x:a[0]+n.x,y:a[1]+n.y,zoom:a[2]},[[0,0],[d,g]],c),w=!!b&&(b.x!==a[0]||b.y!==a[1]||b.k!==a[2]);return Promise.resolve(w)}function L5t(n,i,a,c,d,g){let b=d;const w=c.get(b)||new Map;c.set(b,w.set(a,i)),b=`${d}-${n}`;const E=c.get(b)||new Map;if(c.set(b,E.set(a,i)),g){b=`${d}-${n}-${g}`;const S=c.get(b)||new Map;c.set(b,S.set(a,i))}}function ezt(n,i,a){n.clear(),i.clear();for(const c of a){const{source:d,target:g,sourceHandle:b=null,targetHandle:w=null}=c,E={edgeId:c.id,source:d,target:g,sourceHandle:b,targetHandle:w},S=`${d}-${b}--${g}-${w}`,k=`${g}-${w}--${d}-${b}`;L5t("source",E,k,n,d,b),L5t("target",E,S,n,g,w),i.set(c.id,c)}}function tzt(n,i){if(!n.parentId)return!1;const a=i.get(n.parentId);return a?a.selected?!0:tzt(a,i):!1}function M5t(n,i,a){var d;let c=n;do{if((d=c==null?void 0:c.matches)!=null&&d.call(c,i))return!0;if(c===a)return!1;c=c==null?void 0:c.parentElement}while(c);return!1}function SLn(n,i,a,c){const d=new Map;for(const[g,b]of n)if((b.selected||b.id===c)&&(!b.parentId||!tzt(b,n))&&(b.draggable||i&&typeof b.draggable>"u")){const w=n.get(g);w&&d.set(g,{id:g,position:w.position||{x:0,y:0},distance:{x:a.x-w.internals.positionAbsolute.x,y:a.y-w.internals.positionAbsolute.y},extent:w.extent,parentId:w.parentId,origin:w.origin,expandParent:w.expandParent,internals:{positionAbsolute:w.internals.positionAbsolute||{x:0,y:0}},measured:{width:w.measured.width??0,height:w.measured.height??0}})}return d}function ICe({nodeId:n,dragItems:i,nodeLookup:a,dragging:c=!0}){var b,w,E;const d=[];for(const[S,k]of i){const _=(b=a.get(S))==null?void 0:b.internals.userNode;_&&d.push({..._,position:k.position,dragging:c})}if(!n)return[d[0],d];const g=(w=a.get(n))==null?void 0:w.internals.userNode;return[g?{...g,position:((E=i.get(n))==null?void 0:E.position)||g.position,dragging:c}:d[0],d]}function TLn({dragItems:n,snapGrid:i,x:a,y:c}){const d=n.values().next().value;if(!d)return null;const g={x:a-d.distance.x,y:c-d.distance.y},b=vz(g,i);return{x:b.x-g.x,y:b.y-g.y}}function ALn({onNodeMouseDown:n,getStoreItems:i,onDragStart:a,onDrag:c,onDragStop:d}){let g={x:null,y:null},b=0,w=new Map,E=!1,S={x:0,y:0},k=null,_=!1,C=null,R=!1,M=!1,D=null;function B({noDragClassName:$,handleSelector:P,domNode:H,isSelectable:Q,nodeId:re,nodeClickDistance:ee=0}){C=Mm(H);function ae({x:ge,y:Y}){const{nodeLookup:fe,nodeExtent:De,snapGrid:Se,snapToGrid:$e,nodeOrigin:Te,onNodeDrag:ke,onSelectionDrag:Je,onError:bt,updateNodePositions:qe}=i();g={x:ge,y:Y};let _t=!1;const At=w.size>1,ft=At&&De?tDe(yz(w)):null,Kt=At&&$e?TLn({dragItems:w,snapGrid:Se,x:ge,y:Y}):null;for(const[kt,It]of w){if(!fe.has(kt))continue;let Xt={x:ge-It.distance.x,y:Y-It.distance.y};$e&&(Xt=Kt?{x:Math.round(Xt.x+Kt.x),y:Math.round(Xt.y+Kt.y)}:vz(Xt,Se));let Bn=null;if(At&&De&&!It.extent&&ft){const{positionAbsolute:Dr}=It.internals,Ui=Dr.x-ft.x+De[0][0],Qr=Dr.x+It.measured.width-ft.x2+De[1][0],Hi=Dr.y-ft.y+De[0][1],ai=Dr.y+It.measured.height-ft.y2+De[1][1];Bn=[[Ui,Hi],[Qr,ai]]}const{position:tr,positionAbsolute:Zn}=FHt({nodeId:kt,nextPosition:Xt,nodeLookup:fe,nodeExtent:Bn||De,nodeOrigin:Te,onError:bt});_t=_t||It.position.x!==tr.x||It.position.y!==tr.y,It.position=tr,It.internals.positionAbsolute=Zn}if(M=M||_t,!!_t&&(qe(w,!0),D&&(c||ke||!re&&Je))){const[kt,It]=ICe({nodeId:re,dragItems:w,nodeLookup:fe});c==null||c(D,w,kt,It),ke==null||ke(D,kt,It),re||Je==null||Je(D,It)}}async function he(){if(!k)return;const{transform:ge,panBy:Y,autoPanSpeed:fe,autoPanOnNodeDrag:De}=i();if(!De){E=!1,cancelAnimationFrame(b);return}const[Se,$e]=BHt(S,k,fe);(Se!==0||$e!==0)&&(g.x=(g.x??0)-Se/ge[2],g.y=(g.y??0)-$e/ge[2],await Y({x:Se,y:$e})&&ae(g)),b=requestAnimationFrame(he)}function ve(ge){var At;const{nodeLookup:Y,multiSelectionActive:fe,nodesDraggable:De,transform:Se,snapGrid:$e,snapToGrid:Te,selectNodesOnDrag:ke,onNodeDragStart:Je,onSelectionDragStart:bt,unselectNodesAndEdges:qe}=i();_=!0,(!ke||!Q)&&!fe&&re&&((At=Y.get(re))!=null&&At.selected||qe()),Q&&ke&&re&&(n==null||n(re));const _t=mH(ge.sourceEvent,{transform:Se,snapGrid:$e,snapToGrid:Te,containerBounds:k});if(g=_t,w=SLn(Y,De,_t,re),w.size>0&&(a||Je||!re&&bt)){const[ft,Kt]=ICe({nodeId:re,dragItems:w,nodeLookup:Y});a==null||a(ge.sourceEvent,w,ft,Kt),Je==null||Je(ge.sourceEvent,ft,Kt),re||bt==null||bt(ge.sourceEvent,Kt)}}const de=mHt().clickDistance(ee).on("start",ge=>{const{domNode:Y,nodeDragThreshold:fe,transform:De,snapGrid:Se,snapToGrid:$e}=i();k=(Y==null?void 0:Y.getBoundingClientRect())||null,R=!1,M=!1,D=ge.sourceEvent,fe===0&&ve(ge),g=mH(ge.sourceEvent,{transform:De,snapGrid:Se,snapToGrid:$e,containerBounds:k}),S=Rv(ge.sourceEvent,k)}).on("drag",ge=>{const{autoPanOnNodeDrag:Y,transform:fe,snapGrid:De,snapToGrid:Se,nodeDragThreshold:$e,nodeLookup:Te}=i(),ke=mH(ge.sourceEvent,{transform:fe,snapGrid:De,snapToGrid:Se,containerBounds:k});if(D=ge.sourceEvent,(ge.sourceEvent.type==="touchmove"&&ge.sourceEvent.touches.length>1||re&&!Te.has(re))&&(R=!0),!R){if(!E&&Y&&_&&(E=!0,he()),!_){const Je=Rv(ge.sourceEvent,k),bt=Je.x-S.x,qe=Je.y-S.y;Math.sqrt(bt*bt+qe*qe)>$e&&ve(ge)}(g.x!==ke.xSnapped||g.y!==ke.ySnapped)&&w&&_&&(S=Rv(ge.sourceEvent,k),ae(ke))}}).on("end",ge=>{if(!(!_||R)&&(E=!1,_=!1,cancelAnimationFrame(b),w.size>0)){const{nodeLookup:Y,updateNodePositions:fe,onNodeDragStop:De,onSelectionDragStop:Se}=i();if(M&&(fe(w,!1),M=!1),d||De||!re&&Se){const[$e,Te]=ICe({nodeId:re,dragItems:w,nodeLookup:Y,dragging:!1});d==null||d(ge.sourceEvent,w,$e,Te),De==null||De(ge.sourceEvent,$e,Te),re||Se==null||Se(ge.sourceEvent,Te)}}}).filter(ge=>{const Y=ge.target;return!ge.button&&(!$||!M5t(Y,`.${$}`,H))&&(!P||M5t(Y,P,H))});C.call(de)}function F(){C==null||C.on(".drag",null)}return{update:B,destroy:F}}function _Ln(n,i,a){const c=[],d={x:n.x-a,y:n.y-a,width:a*2,height:a*2};for(const g of i.values())KH(d,E5(g))>0&&c.push(g);return c}const kLn=250;function xLn(n,i,a,c){var w,E;let d=[],g=1/0;const b=_Ln(n,a,i+kLn);for(const S of b){const k=[...((w=S.internals.handleBounds)==null?void 0:w.source)??[],...((E=S.internals.handleBounds)==null?void 0:E.target)??[]];for(const _ of k){if(c.nodeId===_.nodeId&&c.type===_.type&&c.id===_.id)continue;const{x:C,y:R}=dR(S,_,_.position,!0),M=Math.sqrt(Math.pow(C-n.x,2)+Math.pow(R-n.y,2));M>i||(M1){const S=c.type==="source"?"target":"source";return d.find(k=>k.type===S)??d[0]}return d[0]}function nzt(n,i,a,c,d,g=!1){var S,k,_;const b=c.get(n);if(!b)return null;const w=d==="strict"?(S=b.internals.handleBounds)==null?void 0:S[i]:[...((k=b.internals.handleBounds)==null?void 0:k.source)??[],...((_=b.internals.handleBounds)==null?void 0:_.target)??[]],E=(a?w==null?void 0:w.find(C=>C.id===a):w==null?void 0:w[0])??null;return E&&g?{...E,...dR(b,E,E.position,!0)}:E}function rzt(n,i){return n||(i!=null&&i.classList.contains("target")?"target":i!=null&&i.classList.contains("source")?"source":null)}function NLn(n,i){let a=null;return i?a=!0:n&&!i&&(a=!1),a}const izt=()=>!0;function CLn(n,{connectionMode:i,connectionRadius:a,handleId:c,nodeId:d,edgeUpdaterType:g,isTarget:b,domNode:w,nodeLookup:E,lib:S,autoPanOnConnect:k,flowId:_,panBy:C,cancelConnection:R,onConnectStart:M,onConnect:D,onConnectEnd:B,isValidConnection:F=izt,onReconnectEnd:$,updateConnection:P,getTransform:H,getFromHandle:Q,autoPanSpeed:re,dragThreshold:ee=1,handleDomNode:ae}){const he=GHt(n.target);let ve=0,de;const{x:ge,y:Y}=Rv(n),fe=rzt(g,ae),De=w==null?void 0:w.getBoundingClientRect();let Se=!1;if(!De||!fe)return;const $e=nzt(d,fe,c,E,i);if(!$e)return;let Te=Rv(n,De),ke=!1,Je=null,bt=!1,qe=null;function _t(){if(!k||!De)return;const[tr,Zn]=BHt(Te,De,re);C({x:tr,y:Zn}),ve=requestAnimationFrame(_t)}const At={...$e,nodeId:d,type:fe,position:$e.position},ft=E.get(d);let kt={inProgress:!0,isValid:null,from:dR(ft,At,Vr.Left,!0),fromHandle:At,fromPosition:At.position,fromNode:ft,to:Te,toHandle:null,toPosition:T5t[At.position],toNode:null,pointer:Te};function It(){Se=!0,P(kt),M==null||M(n,{nodeId:d,handleId:c,handleType:fe})}ee===0&&It();function Xt(tr){if(!Se){const{x:ai,y:jc}=Rv(tr),Xs=ai-ge,as=jc-Y;if(!(Xs*Xs+as*as>ee*ee))return;It()}if(!Q()||!At){Bn(tr);return}const Zn=H();Te=Rv(tr,De),de=xLn(Ez(Te,Zn,!1,[1,1]),a,E,At),ke||(_t(),ke=!0);const Dr=ozt(tr,{handle:de,connectionMode:i,fromNodeId:d,fromHandleId:c,fromType:b?"target":"source",isValidConnection:F,doc:he,lib:S,flowId:_,nodeLookup:E});qe=Dr.handleDomNode,Je=Dr.connection,bt=NLn(!!de,Dr.isValid);const Ui=E.get(d),Qr=Ui?dR(Ui,At,Vr.Left,!0):kt.from,Hi={...kt,from:Qr,isValid:bt,to:Dr.toHandle&&bt?zoe({x:Dr.toHandle.x,y:Dr.toHandle.y},Zn):Te,toHandle:Dr.toHandle,toPosition:bt&&Dr.toHandle?Dr.toHandle.position:T5t[At.position],toNode:Dr.toHandle?E.get(Dr.toHandle.nodeId):null,pointer:Te};P(Hi),kt=Hi}function Bn(tr){if(!("touches"in tr&&tr.touches.length>0)){if(Se){(de||qe)&&Je&&bt&&(D==null||D(Je));const{inProgress:Zn,...Dr}=kt,Ui={...Dr,toPosition:kt.toHandle?kt.toPosition:null};B==null||B(tr,Ui),g&&($==null||$(tr,Ui))}R(),cancelAnimationFrame(ve),ke=!1,bt=!1,Je=null,qe=null,he.removeEventListener("mousemove",Xt),he.removeEventListener("mouseup",Bn),he.removeEventListener("touchmove",Xt),he.removeEventListener("touchend",Bn)}}he.addEventListener("mousemove",Xt),he.addEventListener("mouseup",Bn),he.addEventListener("touchmove",Xt),he.addEventListener("touchend",Bn)}function ozt(n,{handle:i,connectionMode:a,fromNodeId:c,fromHandleId:d,fromType:g,doc:b,lib:w,flowId:E,isValidConnection:S=izt,nodeLookup:k}){const _=g==="target",C=i?b.querySelector(`.${w}-flow__handle[data-id="${E}-${i==null?void 0:i.nodeId}-${i==null?void 0:i.id}-${i==null?void 0:i.type}"]`):null,{x:R,y:M}=Rv(n),D=b.elementFromPoint(R,M),B=D!=null&&D.classList.contains(`${w}-flow__handle`)?D:C,F={handleDomNode:B,isValid:!1,connection:null,toHandle:null};if(B){const $=rzt(void 0,B),P=B.getAttribute("data-nodeid"),H=B.getAttribute("data-handleid"),Q=B.classList.contains("connectable"),re=B.classList.contains("connectableend");if(!P||!$)return F;const ee={source:_?P:c,sourceHandle:_?H:d,target:_?c:P,targetHandle:_?d:H};F.connection=ee;const he=Q&&re&&(a===y5.Strict?_&&$==="source"||!_&&$==="target":P!==c||H!==d);F.isValid=he&&S(ee),F.toHandle=nzt(P,$,H,k,a,!0)}return F}const iDe={onPointerDown:CLn,isValid:ozt};function ILn({domNode:n,panZoom:i,getTransform:a,getViewScale:c}){const d=Mm(n);function g({translateExtent:w,width:E,height:S,zoomStep:k=1,pannable:_=!0,zoomable:C=!0,inversePan:R=!1}){const M=P=>{if(P.sourceEvent.type!=="wheel"||!i)return;const H=a(),Q=P.sourceEvent.ctrlKey&&YH()?10:1,re=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*k,ee=H[2]*Math.pow(2,re*Q);i.scaleTo(ee)};let D=[0,0];const B=P=>{(P.sourceEvent.type==="mousedown"||P.sourceEvent.type==="touchstart")&&(D=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY])},F=P=>{const H=a();if(P.sourceEvent.type!=="mousemove"&&P.sourceEvent.type!=="touchmove"||!i)return;const Q=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY],re=[Q[0]-D[0],Q[1]-D[1]];D=Q;const ee=c()*Math.max(H[2],Math.log(H[2]))*(R?-1:1),ae={x:H[0]-re[0]*ee,y:H[1]-re[1]*ee},he=[[0,0],[E,S]];i.setViewportConstrained({x:ae.x,y:ae.y,zoom:H[2]},he,w)},$=OHt().on("start",B).on("zoom",_?F:null).on("zoom.wheel",C?M:null);d.call($,{})}function b(){d.on("zoom",null)}return{update:g,destroy:b,pointer:xv}}const Wse=n=>({x:n.x,y:n.y,zoom:n.k}),RCe=({x:n,y:i,zoom:a})=>Gse.translate(n,i).scale(a),BM=(n,i)=>n.target.closest(`.${i}`),szt=(n,i)=>i===2&&Array.isArray(n)&&n.includes(2),RLn=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,OCe=(n,i=0,a=RLn,c=()=>{})=>{const d=typeof i=="number"&&i>0;return d||c(),d?n.transition().duration(i).ease(a).on("end",c):n},azt=n=>{const i=n.ctrlKey&&YH()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*i};function OLn({zoomPanValues:n,noWheelClassName:i,d3Selection:a,d3Zoom:c,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:b,onPanZoomStart:w,onPanZoom:E,onPanZoomEnd:S}){return k=>{if(BM(k,i))return k.ctrlKey&&k.preventDefault(),!1;k.preventDefault(),k.stopImmediatePropagation();const _=a.property("__zoom").k||1;if(k.ctrlKey&&b){const B=xv(k),F=azt(k),$=_*Math.pow(2,F);c.scaleTo(a,$,B,k);return}const C=k.deltaMode===1?20:1;let R=d===Q4.Vertical?0:k.deltaX*C,M=d===Q4.Horizontal?0:k.deltaY*C;!YH()&&k.shiftKey&&d!==Q4.Vertical&&(R=k.deltaY*C,M=0),c.translateBy(a,-(R/_)*g,-(M/_)*g,{internal:!0});const D=Wse(a.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(E==null||E(k,D),n.panScrollTimeout=setTimeout(()=>{S==null||S(k,D),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,w==null||w(k,D))}}function DLn({noWheelClassName:n,preventScrolling:i,d3ZoomHandler:a}){return function(c,d){const g=c.type==="wheel",b=!i&&g&&!c.ctrlKey,w=BM(c,n);if(c.ctrlKey&&g&&w&&c.preventDefault(),b||w)return null;c.preventDefault(),a.call(this,c,d)}}function LLn({zoomPanValues:n,onDraggingChange:i,onPanZoomStart:a}){return c=>{var g,b,w;if((g=c.sourceEvent)!=null&&g.internal)return;const d=Wse(c.transform);n.mouseButton=((b=c.sourceEvent)==null?void 0:b.button)||0,n.isZoomingOrPanning=!0,n.prevViewport=d,((w=c.sourceEvent)==null?void 0:w.type)==="mousedown"&&i(!0),a&&(a==null||a(c.sourceEvent,d))}}function MLn({zoomPanValues:n,panOnDrag:i,onPaneContextMenu:a,onTransformChange:c,onPanZoom:d}){return g=>{var b,w;n.usedRightMouseButton=!!(a&&szt(i,n.mouseButton??0)),(b=g.sourceEvent)!=null&&b.sync||c([g.transform.x,g.transform.y,g.transform.k]),d&&!((w=g.sourceEvent)!=null&&w.internal)&&(d==null||d(g.sourceEvent,Wse(g.transform)))}}function PLn({zoomPanValues:n,panOnDrag:i,panOnScroll:a,onDraggingChange:c,onPanZoomEnd:d,onPaneContextMenu:g}){return b=>{var w;if(!((w=b.sourceEvent)!=null&&w.internal)&&(n.isZoomingOrPanning=!1,g&&szt(i,n.mouseButton??0)&&!n.usedRightMouseButton&&b.sourceEvent&&g(b.sourceEvent),n.usedRightMouseButton=!1,c(!1),d)){const E=Wse(b.transform);n.prevViewport=E,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{d==null||d(b.sourceEvent,E)},a?150:0)}}}function jLn({zoomActivationKeyPressed:n,zoomOnScroll:i,zoomOnPinch:a,panOnDrag:c,panOnScroll:d,zoomOnDoubleClick:g,userSelectionActive:b,noWheelClassName:w,noPanClassName:E,lib:S,connectionInProgress:k}){return _=>{var B;const C=n||i,R=a&&_.ctrlKey,M=_.type==="wheel";if(_.button===1&&_.type==="mousedown"&&(BM(_,`${S}-flow__node`)||BM(_,`${S}-flow__edge`)))return!0;if(!c&&!C&&!d&&!g&&!a||b||k&&!M||BM(_,w)&&M||BM(_,E)&&(!M||d&&M&&!n)||!a&&_.ctrlKey&&M)return!1;if(!a&&_.type==="touchstart"&&((B=_.touches)==null?void 0:B.length)>1)return _.preventDefault(),!1;if(!C&&!d&&!R&&M||!c&&(_.type==="mousedown"||_.type==="touchstart")||Array.isArray(c)&&!c.includes(_.button)&&_.type==="mousedown")return!1;const D=Array.isArray(c)&&c.includes(_.button)||!_.button||_.button<=1;return(!_.ctrlKey||M)&&D}}function FLn({domNode:n,minZoom:i,maxZoom:a,translateExtent:c,viewport:d,onPanZoom:g,onPanZoomStart:b,onPanZoomEnd:w,onDraggingChange:E}){const S={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},k=n.getBoundingClientRect(),_=OHt().scaleExtent([i,a]).translateExtent(c),C=Mm(n).call(_);$({x:d.x,y:d.y,zoom:v5(d.zoom,i,a)},[[0,0],[k.width,k.height]],c);const R=C.on("wheel.zoom"),M=C.on("dblclick.zoom");_.wheelDelta(azt);function D(de,ge){return C?new Promise(Y=>{_==null||_.interpolate((ge==null?void 0:ge.interpolate)==="linear"?bH:Yie).transform(OCe(C,ge==null?void 0:ge.duration,ge==null?void 0:ge.ease,()=>Y(!0)),de)}):Promise.resolve(!1)}function B({noWheelClassName:de,noPanClassName:ge,onPaneContextMenu:Y,userSelectionActive:fe,panOnScroll:De,panOnDrag:Se,panOnScrollMode:$e,panOnScrollSpeed:Te,preventScrolling:ke,zoomOnPinch:Je,zoomOnScroll:bt,zoomOnDoubleClick:qe,zoomActivationKeyPressed:_t,lib:At,onTransformChange:ft,connectionInProgress:Kt,paneClickDistance:kt,selectionOnDrag:It}){fe&&!S.isZoomingOrPanning&&F();const Xt=De&&!_t&&!fe;_.clickDistance(It?1/0:!Iv(kt)||kt<0?0:kt);const Bn=Xt?OLn({zoomPanValues:S,noWheelClassName:de,d3Selection:C,d3Zoom:_,panOnScrollMode:$e,panOnScrollSpeed:Te,zoomOnPinch:Je,onPanZoomStart:b,onPanZoom:g,onPanZoomEnd:w}):DLn({noWheelClassName:de,preventScrolling:ke,d3ZoomHandler:R});if(C.on("wheel.zoom",Bn,{passive:!1}),!fe){const Zn=LLn({zoomPanValues:S,onDraggingChange:E,onPanZoomStart:b});_.on("start",Zn);const Dr=MLn({zoomPanValues:S,panOnDrag:Se,onPaneContextMenu:!!Y,onPanZoom:g,onTransformChange:ft});_.on("zoom",Dr);const Ui=PLn({zoomPanValues:S,panOnDrag:Se,panOnScroll:De,onPaneContextMenu:Y,onPanZoomEnd:w,onDraggingChange:E});_.on("end",Ui)}const tr=jLn({zoomActivationKeyPressed:_t,panOnDrag:Se,zoomOnScroll:bt,panOnScroll:De,zoomOnDoubleClick:qe,zoomOnPinch:Je,userSelectionActive:fe,noPanClassName:ge,noWheelClassName:de,lib:At,connectionInProgress:Kt});_.filter(tr),qe?C.on("dblclick.zoom",M):C.on("dblclick.zoom",null)}function F(){_.on("zoom",null)}async function $(de,ge,Y){const fe=RCe(de),De=_==null?void 0:_.constrain()(fe,ge,Y);return De&&await D(De),new Promise(Se=>Se(De))}async function P(de,ge){const Y=RCe(de);return await D(Y,ge),new Promise(fe=>fe(Y))}function H(de){if(C){const ge=RCe(de),Y=C.property("__zoom");(Y.k!==de.zoom||Y.x!==de.x||Y.y!==de.y)&&(_==null||_.transform(C,ge,null,{sync:!0}))}}function Q(){const de=C?RHt(C.node()):{x:0,y:0,k:1};return{x:de.x,y:de.y,zoom:de.k}}function re(de,ge){return C?new Promise(Y=>{_==null||_.interpolate((ge==null?void 0:ge.interpolate)==="linear"?bH:Yie).scaleTo(OCe(C,ge==null?void 0:ge.duration,ge==null?void 0:ge.ease,()=>Y(!0)),de)}):Promise.resolve(!1)}function ee(de,ge){return C?new Promise(Y=>{_==null||_.interpolate((ge==null?void 0:ge.interpolate)==="linear"?bH:Yie).scaleBy(OCe(C,ge==null?void 0:ge.duration,ge==null?void 0:ge.ease,()=>Y(!0)),de)}):Promise.resolve(!1)}function ae(de){_==null||_.scaleExtent(de)}function he(de){_==null||_.translateExtent(de)}function ve(de){const ge=!Iv(de)||de<0?0:de;_==null||_.clickDistance(ge)}return{update:B,destroy:F,setViewport:P,setViewportConstrained:$,getViewport:Q,scaleTo:re,scaleBy:ee,setScaleExtent:ae,setTranslateExtent:he,syncViewport:H,setClickDistance:ve}}var T5;(function(n){n.Line="line",n.Handle="handle"})(T5||(T5={}));function $Ln({width:n,prevWidth:i,height:a,prevHeight:c,affectsX:d,affectsY:g}){const b=n-i,w=a-c,E=[b>0?1:b<0?-1:0,w>0?1:w<0?-1:0];return b&&d&&(E[0]=E[0]*-1),w&&g&&(E[1]=E[1]*-1),E}function P5t(n){const i=n.includes("right")||n.includes("left"),a=n.includes("bottom")||n.includes("top"),c=n.includes("left"),d=n.includes("top");return{isHorizontal:i,isVertical:a,affectsX:c,affectsY:d}}function Nx(n,i){return Math.max(0,i-n)}function Cx(n,i){return Math.max(0,n-i)}function pie(n,i,a){return Math.max(0,i-n,n-a)}function j5t(n,i){return n?!i:i}function BLn(n,i,a,c,d,g,b,w){let{affectsX:E,affectsY:S}=i;const{isHorizontal:k,isVertical:_}=i,C=k&&_,{xSnapped:R,ySnapped:M}=a,{minWidth:D,maxWidth:B,minHeight:F,maxHeight:$}=c,{x:P,y:H,width:Q,height:re,aspectRatio:ee}=n;let ae=Math.floor(k?R-n.pointerX:0),he=Math.floor(_?M-n.pointerY:0);const ve=Q+(E?-ae:ae),de=re+(S?-he:he),ge=-g[0]*Q,Y=-g[1]*re;let fe=pie(ve,D,B),De=pie(de,F,$);if(b){let Te=0,ke=0;E&&ae<0?Te=Nx(P+ae+ge,b[0][0]):!E&&ae>0&&(Te=Cx(P+ve+ge,b[1][0])),S&&he<0?ke=Nx(H+he+Y,b[0][1]):!S&&he>0&&(ke=Cx(H+de+Y,b[1][1])),fe=Math.max(fe,Te),De=Math.max(De,ke)}if(w){let Te=0,ke=0;E&&ae>0?Te=Cx(P+ae,w[0][0]):!E&&ae<0&&(Te=Nx(P+ve,w[1][0])),S&&he>0?ke=Cx(H+he,w[0][1]):!S&&he<0&&(ke=Nx(H+de,w[1][1])),fe=Math.max(fe,Te),De=Math.max(De,ke)}if(d){if(k){const Te=pie(ve/ee,F,$)*ee;if(fe=Math.max(fe,Te),b){let ke=0;!E&&!S||E&&!S&&C?ke=Cx(H+Y+ve/ee,b[1][1])*ee:ke=Nx(H+Y+(E?ae:-ae)/ee,b[0][1])*ee,fe=Math.max(fe,ke)}if(w){let ke=0;!E&&!S||E&&!S&&C?ke=Nx(H+ve/ee,w[1][1])*ee:ke=Cx(H+(E?ae:-ae)/ee,w[0][1])*ee,fe=Math.max(fe,ke)}}if(_){const Te=pie(de*ee,D,B)/ee;if(De=Math.max(De,Te),b){let ke=0;!E&&!S||S&&!E&&C?ke=Cx(P+de*ee+ge,b[1][0])/ee:ke=Nx(P+(S?he:-he)*ee+ge,b[0][0])/ee,De=Math.max(De,ke)}if(w){let ke=0;!E&&!S||S&&!E&&C?ke=Nx(P+de*ee,w[1][0])/ee:ke=Cx(P+(S?he:-he)*ee,w[0][0])/ee,De=Math.max(De,ke)}}}he=he+(he<0?De:-De),ae=ae+(ae<0?fe:-fe),d&&(C?ve>de*ee?he=(j5t(E,S)?-ae:ae)/ee:ae=(j5t(E,S)?-he:he)*ee:k?(he=ae/ee,S=E):(ae=he*ee,E=S));const Se=E?P+ae:P,$e=S?H+he:H;return{width:Q+(E?-ae:ae),height:re+(S?-he:he),x:g[0]*ae*(E?-1:1)+Se,y:g[1]*he*(S?-1:1)+$e}}const uzt={width:0,height:0,x:0,y:0},ULn={...uzt,pointerX:0,pointerY:0,aspectRatio:1};function HLn(n){return[[0,0],[n.measured.width,n.measured.height]]}function zLn(n,i,a){const c=i.position.x+n.position.x,d=i.position.y+n.position.y,g=n.measured.width??0,b=n.measured.height??0,w=a[0]*g,E=a[1]*b;return[[c-w,d-E],[c+g-w,d+b-E]]}function GLn({domNode:n,nodeId:i,getStoreItems:a,onChange:c,onEnd:d}){const g=Mm(n);let b={controlDirection:P5t("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function w({controlPosition:S,boundaries:k,keepAspectRatio:_,resizeDirection:C,onResizeStart:R,onResize:M,onResizeEnd:D,shouldResize:B}){let F={...uzt},$={...ULn};b={boundaries:k,resizeDirection:C,keepAspectRatio:_,controlDirection:P5t(S)};let P,H=null,Q=[],re,ee,ae,he=!1;const ve=mHt().on("start",de=>{const{nodeLookup:ge,transform:Y,snapGrid:fe,snapToGrid:De,nodeOrigin:Se,paneDomNode:$e}=a();if(P=ge.get(i),!P)return;H=($e==null?void 0:$e.getBoundingClientRect())??null;const{xSnapped:Te,ySnapped:ke}=mH(de.sourceEvent,{transform:Y,snapGrid:fe,snapToGrid:De,containerBounds:H});F={width:P.measured.width??0,height:P.measured.height??0,x:P.position.x??0,y:P.position.y??0},$={...F,pointerX:Te,pointerY:ke,aspectRatio:F.width/F.height},re=void 0,P.parentId&&(P.extent==="parent"||P.expandParent)&&(re=ge.get(P.parentId),ee=re&&P.extent==="parent"?HLn(re):void 0),Q=[],ae=void 0;for(const[Je,bt]of ge)if(bt.parentId===i&&(Q.push({id:Je,position:{...bt.position},extent:bt.extent}),bt.extent==="parent"||bt.expandParent)){const qe=zLn(bt,P,bt.origin??Se);ae?ae=[[Math.min(qe[0][0],ae[0][0]),Math.min(qe[0][1],ae[0][1])],[Math.max(qe[1][0],ae[1][0]),Math.max(qe[1][1],ae[1][1])]]:ae=qe}R==null||R(de,{...F})}).on("drag",de=>{const{transform:ge,snapGrid:Y,snapToGrid:fe,nodeOrigin:De}=a(),Se=mH(de.sourceEvent,{transform:ge,snapGrid:Y,snapToGrid:fe,containerBounds:H}),$e=[];if(!P)return;const{x:Te,y:ke,width:Je,height:bt}=F,qe={},_t=P.origin??De,{width:At,height:ft,x:Kt,y:kt}=BLn($,b.controlDirection,Se,b.boundaries,b.keepAspectRatio,_t,ee,ae),It=At!==Je,Xt=ft!==bt,Bn=Kt!==Te&&It,tr=kt!==ke&&Xt;if(!Bn&&!tr&&!It&&!Xt)return;if((Bn||tr||_t[0]===1||_t[1]===1)&&(qe.x=Bn?Kt:F.x,qe.y=tr?kt:F.y,F.x=qe.x,F.y=qe.y,Q.length>0)){const Qr=Kt-Te,Hi=kt-ke;for(const ai of Q)ai.position={x:ai.position.x-Qr+_t[0]*(At-Je),y:ai.position.y-Hi+_t[1]*(ft-bt)},$e.push(ai)}if((It||Xt)&&(qe.width=It&&(!b.resizeDirection||b.resizeDirection==="horizontal")?At:F.width,qe.height=Xt&&(!b.resizeDirection||b.resizeDirection==="vertical")?ft:F.height,F.width=qe.width,F.height=qe.height),re&&P.expandParent){const Qr=_t[0]*(qe.width??0);qe.x&&qe.x{he&&(D==null||D(de,{...F}),d==null||d({...F}),he=!1)});g.call(ve)}function E(){g.on(".drag",null)}return{update:w,destroy:E}}var czt={exports:{}},lzt={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Kse=z,qLn=nHt;function VLn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var WLn=typeof Object.is=="function"?Object.is:VLn,KLn=qLn.useSyncExternalStore,YLn=Kse.useRef,JLn=Kse.useEffect,XLn=Kse.useMemo,ZLn=Kse.useDebugValue;lzt.useSyncExternalStoreWithSelector=function(n,i,a,c,d){var g=YLn(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=XLn(function(){function E(R){if(!S){if(S=!0,k=R,R=c(R),d!==void 0&&b.hasValue){var M=b.value;if(d(M,R))return _=M}return _=R}if(M=_,WLn(k,R))return M;var D=c(R);return d!==void 0&&d(M,D)?(k=R,M):(k=R,_=D)}var S=!1,k,_,C=a===void 0?null:a;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,a,c,d]);var w=KLn(n,g[0],g[1]);return JLn(function(){b.hasValue=!0,b.value=w},[w]),ZLn(w),w};czt.exports=lzt;var QLn=czt.exports;const eMn=vR(QLn),tMn={},F5t=n=>{let i;const a=new Set,c=(k,_)=>{const C=typeof k=="function"?k(i):k;if(!Object.is(C,i)){const R=i;i=_??(typeof C!="object"||C===null)?C:Object.assign({},i,C),a.forEach(M=>M(i,R))}},d=()=>i,E={setState:c,getState:d,getInitialState:()=>S,subscribe:k=>(a.add(k),()=>a.delete(k)),destroy:()=>{(tMn?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),a.clear()}},S=i=n(c,d,E);return E},nMn=n=>n?F5t(n):F5t,{useDebugValue:rMn}=Hn,{useSyncExternalStoreWithSelector:iMn}=eMn,oMn=n=>n;function dzt(n,i=oMn,a){const c=iMn(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,a);return rMn(c),c}const $5t=(n,i)=>{const a=nMn(n),c=(d,g=i)=>dzt(a,d,g);return Object.assign(c,a),c},sMn=(n,i)=>n?$5t(n,i):$5t;function Lc(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[c,d]of n)if(!Object.is(d,i.get(c)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const c of n)if(!i.has(c))return!1;return!0}const a=Object.keys(n);if(a.length!==Object.keys(i).length)return!1;for(const c of a)if(!Object.prototype.hasOwnProperty.call(i,c)||!Object.is(n[c],i[c]))return!1;return!0}const Yse=z.createContext(null),aMn=Yse.Provider,fzt=H2.error001();function Js(n,i){const a=z.useContext(Yse);if(a===null)throw new Error(fzt);return dzt(a,n,i)}function Mc(){const n=z.useContext(Yse);if(n===null)throw new Error(fzt);return z.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const B5t={display:"none"},uMn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},hzt="react-flow__node-desc",pzt="react-flow__edge-desc",cMn="react-flow__aria-live",lMn=n=>n.ariaLiveMessage,dMn=n=>n.ariaLabelConfig;function fMn({rfId:n}){const i=Js(lMn);return O.jsx("div",{id:`${cMn}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:uMn,children:i})}function hMn({rfId:n,disableKeyboardA11y:i}){const a=Js(dMn);return O.jsxs(O.Fragment,{children:[O.jsx("div",{id:`${hzt}-${n}`,style:B5t,children:i?a["node.a11yDescription.default"]:a["node.a11yDescription.keyboardDisabled"]}),O.jsx("div",{id:`${pzt}-${n}`,style:B5t,children:a["edge.a11yDescription.default"]}),!i&&O.jsx(fMn,{rfId:n})]})}const fR=z.forwardRef(({position:n="top-left",children:i,className:a,style:c,...d},g)=>{const b=`${n}`.split("-");return O.jsx("div",{className:Bd(["react-flow__panel",a,...b]),style:c,ref:g,...d,children:i})});fR.displayName="Panel";function pMn({proOptions:n,position:i="bottom-right"}){return n!=null&&n.hideAttribution?null:O.jsx(fR,{position:i,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:O.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const gMn=n=>{const i=[],a=[];for(const[,c]of n.nodeLookup)c.selected&&i.push(c.internals.userNode);for(const[,c]of n.edgeLookup)c.selected&&a.push(c);return{selectedNodes:i,selectedEdges:a}},gie=n=>n.id;function bMn(n,i){return Lc(n.selectedNodes.map(gie),i.selectedNodes.map(gie))&&Lc(n.selectedEdges.map(gie),i.selectedEdges.map(gie))}function mMn({onSelectionChange:n}){const i=Mc(),{selectedNodes:a,selectedEdges:c}=Js(gMn,bMn);return z.useEffect(()=>{const d={nodes:a,edges:c};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[a,c,n]),null}const wMn=n=>!!n.onSelectionChangeHandlers;function yMn({onSelectionChange:n}){const i=Js(wMn);return n||i?O.jsx(mMn,{onSelectionChange:n}):null}const gzt=[0,0],vMn={x:0,y:0,zoom:1},EMn=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],U5t=[...EMn,"rfId"],SMn=n=>({setNodes:n.setNodes,setEdges:n.setEdges,setMinZoom:n.setMinZoom,setMaxZoom:n.setMaxZoom,setTranslateExtent:n.setTranslateExtent,setNodeExtent:n.setNodeExtent,reset:n.reset,setDefaultNodesAndEdges:n.setDefaultNodesAndEdges}),H5t={translateExtent:VH,nodeOrigin:gzt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function TMn(n){const{setNodes:i,setEdges:a,setMinZoom:c,setMaxZoom:d,setTranslateExtent:g,setNodeExtent:b,reset:w,setDefaultNodesAndEdges:E}=Js(SMn,Lc),S=Mc();z.useEffect(()=>(E(n.defaultNodes,n.defaultEdges),()=>{k.current=H5t,w()}),[]);const k=z.useRef(H5t);return z.useEffect(()=>{for(const _ of U5t){const C=n[_],R=k.current[_];C!==R&&(typeof n[_]>"u"||(_==="nodes"?i(C):_==="edges"?a(C):_==="minZoom"?c(C):_==="maxZoom"?d(C):_==="translateExtent"?g(C):_==="nodeExtent"?b(C):_==="ariaLabelConfig"?S.setState({ariaLabelConfig:rLn(C)}):_==="fitView"?S.setState({fitViewQueued:C}):_==="fitViewOptions"?S.setState({fitViewOptions:C}):S.setState({[_]:C})))}k.current=n},U5t.map(_=>n[_])),null}function z5t(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function AMn(n){var c;const[i,a]=z.useState(n==="system"?null:n);return z.useEffect(()=>{if(n!=="system"){a(n);return}const d=z5t(),g=()=>a(d!=null&&d.matches?"dark":"light");return g(),d==null||d.addEventListener("change",g),()=>{d==null||d.removeEventListener("change",g)}},[n]),i!==null?i:(c=z5t())!=null&&c.matches?"dark":"light"}const G5t=typeof document<"u"?document:null;function JH(n=null,i={target:G5t,actInsideInputWithModifier:!0}){const[a,c]=z.useState(!1),d=z.useRef(!1),g=z.useRef(new Set([])),[b,w]=z.useMemo(()=>{if(n!==null){const S=(Array.isArray(n)?n:[n]).filter(_=>typeof _=="string").map(_=>_.replace("+",` -`).replace(` - -`,` -+`).split(` -`)),k=S.reduce((_,C)=>_.concat(...C),[]);return[S,k]}return[[],[]]},[n]);return z.useEffect(()=>{const E=(i==null?void 0:i.target)??G5t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const k=R=>{var B,F;if(d.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!d.current||d.current&&!S)&&qHt(R))return!1;const D=V5t(R.code,w);if(g.current.add(R[D]),q5t(b,g.current,!1)){const $=((F=(B=R.composedPath)==null?void 0:B.call(R))==null?void 0:F[0])||R.target,P=($==null?void 0:$.nodeName)==="BUTTON"||($==null?void 0:$.nodeName)==="A";i.preventDefault!==!1&&(d.current||!P)&&R.preventDefault(),c(!0)}},_=R=>{const M=V5t(R.code,w);q5t(b,g.current,!0)?(c(!1),g.current.clear()):g.current.delete(R[M]),R.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),c(!1)};return E==null||E.addEventListener("keydown",k),E==null||E.addEventListener("keyup",_),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",k),E==null||E.removeEventListener("keyup",_),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,c]),a}function q5t(n,i,a){return n.filter(c=>a||c.length===i.size).some(c=>c.every(d=>i.has(d)))}function V5t(n,i){return i.includes(n)?"code":"key"}const _Mn=()=>{const n=Mc();return z.useMemo(()=>({zoomIn:i=>{const{panZoom:a}=n.getState();return a?a.scaleBy(1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomOut:i=>{const{panZoom:a}=n.getState();return a?a.scaleBy(1/1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomTo:(i,a)=>{const{panZoom:c}=n.getState();return c?c.scaleTo(i,{duration:a==null?void 0:a.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,a)=>{const{transform:[c,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??c,y:i.y??d,zoom:i.zoom??g},a),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,a,c]=n.getState().transform;return{x:i,y:a,zoom:c}},setCenter:async(i,a,c)=>n.getState().setCenter(i,a,c),fitBounds:async(i,a)=>{const{width:c,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=gMe(i,c,d,g,b,(a==null?void 0:a.padding)??.1);return w?(await w.setViewport(E,{duration:a==null?void 0:a.duration,ease:a==null?void 0:a.ease,interpolate:a==null?void 0:a.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(i,a={})=>{const{transform:c,snapGrid:d,snapToGrid:g,domNode:b}=n.getState();if(!b)return i;const{x:w,y:E}=b.getBoundingClientRect(),S={x:i.x-w,y:i.y-E},k=a.snapGrid??d,_=a.snapToGrid??g;return Ez(S,c,_,k)},flowToScreenPosition:i=>{const{transform:a,domNode:c}=n.getState();if(!c)return i;const{x:d,y:g}=c.getBoundingClientRect(),b=zoe(i,a);return{x:b.x+d,y:b.y+g}}}),[])};function bzt(n,i){const a=[],c=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")c.set(g.id,[g]);else{const b=c.get(g.id);b?b.push(g):c.set(g.id,[g])}for(const g of i){const b=c.get(g.id);if(!b){a.push(g);continue}if(b[0].type==="remove")continue;if(b[0].type==="replace"){a.push({...b[0].item});continue}const w={...g};for(const E of b)kMn(E,w);a.push(w)}return d.length&&d.forEach(g=>{g.index!==void 0?a.splice(g.index,0,{...g.item}):a.push({...g.item})}),a}function kMn(n,i){switch(n.type){case"select":{i.selected=n.selected;break}case"position":{typeof n.position<"u"&&(i.position=n.position),typeof n.dragging<"u"&&(i.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(i.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(i.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(i.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(i.resizing=n.resizing);break}}}function mzt(n,i){return bzt(n,i)}function wzt(n,i){return bzt(n,i)}function G4(n,i){return{id:n,type:"select",selected:i}}function UM(n,i=new Set,a=!1){const c=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(a&&(g.selected=b),c.push(G4(g.id,b)))}return c}function W5t({items:n=[],lookup:i}){var d;const a=[],c=new Map(n.map(g=>[g.id,g]));for(const[g,b]of n.entries()){const w=i.get(b.id),E=((d=w==null?void 0:w.internals)==null?void 0:d.userNode)??w;E!==void 0&&E!==b&&a.push({id:b.id,item:b,type:"replace"}),E===void 0&&a.push({item:b,type:"add",index:g})}for(const[g]of i)c.get(g)===void 0&&a.push({id:g,type:"remove"});return a}function K5t(n){return{id:n.id,type:"remove"}}const Y5t=n=>WDn(n),xMn=n=>jHt(n);function yzt(n){return z.forwardRef(n)}const NMn=typeof window<"u"?z.useLayoutEffect:z.useEffect;function J5t(n){const[i,a]=z.useState(BigInt(0)),[c]=z.useState(()=>CMn(()=>a(d=>d+BigInt(1))));return NMn(()=>{const d=c.get();d.length&&(n(d),c.reset())},[i]),c}function CMn(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:a=>{i.push(a),n()}}}const vzt=z.createContext(null);function IMn({children:n}){const i=Mc(),a=z.useCallback(w=>{const{nodes:E=[],setNodes:S,hasDefaultNodes:k,onNodesChange:_,nodeLookup:C,fitViewQueued:R,onNodesChangeMiddlewareMap:M}=i.getState();let D=E;for(const F of w)D=typeof F=="function"?F(D):F;let B=W5t({items:D,lookup:C});for(const F of M.values())B=F(B);k&&S(D),B.length>0?_==null||_(B):R&&window.requestAnimationFrame(()=>{const{fitViewQueued:F,nodes:$,setNodes:P}=i.getState();F&&P($)})},[]),c=J5t(a),d=z.useCallback(w=>{const{edges:E=[],setEdges:S,hasDefaultEdges:k,onEdgesChange:_,edgeLookup:C}=i.getState();let R=E;for(const M of w)R=typeof M=="function"?M(R):M;k?S(R):_&&_(W5t({items:R,lookup:C}))},[]),g=J5t(d),b=z.useMemo(()=>({nodeQueue:c,edgeQueue:g}),[]);return O.jsx(vzt.Provider,{value:b,children:n})}function RMn(){const n=z.useContext(vzt);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const OMn=n=>!!n.panZoom;function AR(){const n=_Mn(),i=Mc(),a=RMn(),c=Js(OMn),d=z.useMemo(()=>{const g=_=>i.getState().nodeLookup.get(_),b=_=>{a.nodeQueue.push(_)},w=_=>{a.edgeQueue.push(_)},E=_=>{var F,$;const{nodeLookup:C,nodeOrigin:R}=i.getState(),M=Y5t(_)?_:C.get(_.id),D=M.parentId?zHt(M.position,M.measured,M.parentId,C,R):M.position,B={...M,position:D,width:((F=M.measured)==null?void 0:F.width)??M.width,height:(($=M.measured)==null?void 0:$.height)??M.height};return E5(B)},S=(_,C,R={replace:!1})=>{b(M=>M.map(D=>{if(D.id===_){const B=typeof C=="function"?C(D):C;return R.replace&&Y5t(B)?B:{...D,...B}}return D}))},k=(_,C,R={replace:!1})=>{w(M=>M.map(D=>{if(D.id===_){const B=typeof C=="function"?C(D):C;return R.replace&&xMn(B)?B:{...D,...B}}return D}))};return{getNodes:()=>i.getState().nodes.map(_=>({..._})),getNode:_=>{var C;return(C=g(_))==null?void 0:C.internals.userNode},getInternalNode:g,getEdges:()=>{const{edges:_=[]}=i.getState();return _.map(C=>({...C}))},getEdge:_=>i.getState().edgeLookup.get(_),setNodes:b,setEdges:w,addNodes:_=>{const C=Array.isArray(_)?_:[_];a.nodeQueue.push(R=>[...R,...C])},addEdges:_=>{const C=Array.isArray(_)?_:[_];a.edgeQueue.push(R=>[...R,...C])},toObject:()=>{const{nodes:_=[],edges:C=[],transform:R}=i.getState(),[M,D,B]=R;return{nodes:_.map(F=>({...F})),edges:C.map(F=>({...F})),viewport:{x:M,y:D,zoom:B}}},deleteElements:async({nodes:_=[],edges:C=[]})=>{const{nodes:R,edges:M,onNodesDelete:D,onEdgesDelete:B,triggerNodeChanges:F,triggerEdgeChanges:$,onDelete:P,onBeforeDelete:H}=i.getState(),{nodes:Q,edges:re}=await ZDn({nodesToRemove:_,edgesToRemove:C,nodes:R,edges:M,onBeforeDelete:H}),ee=re.length>0,ae=Q.length>0;if(ee){const he=re.map(K5t);B==null||B(re),$(he)}if(ae){const he=Q.map(K5t);D==null||D(Q),F(he)}return(ae||ee)&&(P==null||P({nodes:Q,edges:re})),{deletedNodes:Q,deletedEdges:re}},getIntersectingNodes:(_,C=!0,R)=>{const M=_5t(_),D=M?_:E(_),B=R!==void 0;return D?(R||i.getState().nodes).filter(F=>{const $=i.getState().nodeLookup.get(F.id);if($&&!M&&(F.id===_.id||!$.internals.positionAbsolute))return!1;const P=E5(B?F:$),H=KH(P,D);return C&&H>0||H>=P.width*P.height||H>=D.width*D.height}):[]},isNodeIntersecting:(_,C,R=!0)=>{const D=_5t(_)?_:E(_);if(!D)return!1;const B=KH(D,C);return R&&B>0||B>=C.width*C.height||B>=D.width*D.height},updateNode:S,updateNodeData:(_,C,R={replace:!1})=>{S(_,M=>{const D=typeof C=="function"?C(M):C;return R.replace?{...M,data:D}:{...M,data:{...M.data,...D}}},R)},updateEdge:k,updateEdgeData:(_,C,R={replace:!1})=>{k(_,M=>{const D=typeof C=="function"?C(M):C;return R.replace?{...M,data:D}:{...M,data:{...M.data,...D}}},R)},getNodesBounds:_=>{const{nodeLookup:C,nodeOrigin:R}=i.getState();return KDn(_,{nodeLookup:C,nodeOrigin:R})},getHandleConnections:({type:_,id:C,nodeId:R})=>{var M;return Array.from(((M=i.getState().connectionLookup.get(`${R}-${_}${C?`-${C}`:""}`))==null?void 0:M.values())??[])},getNodeConnections:({type:_,handleId:C,nodeId:R})=>{var M;return Array.from(((M=i.getState().connectionLookup.get(`${R}${_?C?`-${_}-${C}`:`-${_}`:""}`))==null?void 0:M.values())??[])},fitView:async _=>{const C=i.getState().fitViewResolver??nLn();return i.setState({fitViewQueued:!0,fitViewOptions:_,fitViewResolver:C}),a.nodeQueue.push(R=>[...R]),C.promise}}},[]);return z.useMemo(()=>({...d,...n,viewportInitialized:c}),[c])}const X5t=n=>n.selected,DMn=typeof window<"u"?window:void 0;function LMn({deleteKeyCode:n,multiSelectionKeyCode:i}){const a=Mc(),{deleteElements:c}=AR(),d=JH(n,{actInsideInputWithModifier:!1}),g=JH(i,{target:DMn});z.useEffect(()=>{if(d){const{edges:b,nodes:w}=a.getState();c({nodes:w.filter(X5t),edges:b.filter(X5t)}),a.setState({nodesSelectionActive:!1})}},[d]),z.useEffect(()=>{a.setState({multiSelectionActive:g})},[g])}function MMn(n){const i=Mc();z.useEffect(()=>{const a=()=>{var d,g,b,w;if(!n.current||!(((g=(d=n.current).checkVisibility)==null?void 0:g.call(d))??!0))return!1;const c=bMe(n.current);(c.height===0||c.width===0)&&((w=(b=i.getState()).onError)==null||w.call(b,"004",H2.error004())),i.setState({width:c.width||500,height:c.height||500})};if(n.current){a(),window.addEventListener("resize",a);const c=new ResizeObserver(()=>a());return c.observe(n.current),()=>{window.removeEventListener("resize",a),c&&n.current&&c.unobserve(n.current)}}},[])}const Jse={position:"absolute",width:"100%",height:"100%",top:0,left:0},PMn=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function jMn({onPaneContextMenu:n,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:c=!1,panOnScrollSpeed:d=.5,panOnScrollMode:g=Q4.Free,zoomOnDoubleClick:b=!0,panOnDrag:w=!0,defaultViewport:E,translateExtent:S,minZoom:k,maxZoom:_,zoomActivationKeyCode:C,preventScrolling:R=!0,children:M,noWheelClassName:D,noPanClassName:B,onViewportChange:F,isControlledViewport:$,paneClickDistance:P,selectionOnDrag:H}){const Q=Mc(),re=z.useRef(null),{userSelectionActive:ee,lib:ae,connectionInProgress:he}=Js(PMn,Lc),ve=JH(C),de=z.useRef();MMn(re);const ge=z.useCallback(Y=>{F==null||F({x:Y[0],y:Y[1],zoom:Y[2]}),$||Q.setState({transform:Y})},[F,$]);return z.useEffect(()=>{if(re.current){de.current=FLn({domNode:re.current,minZoom:k,maxZoom:_,translateExtent:S,viewport:E,onDraggingChange:Se=>Q.setState({paneDragging:Se}),onPanZoomStart:(Se,$e)=>{const{onViewportChangeStart:Te,onMoveStart:ke}=Q.getState();ke==null||ke(Se,$e),Te==null||Te($e)},onPanZoom:(Se,$e)=>{const{onViewportChange:Te,onMove:ke}=Q.getState();ke==null||ke(Se,$e),Te==null||Te($e)},onPanZoomEnd:(Se,$e)=>{const{onViewportChangeEnd:Te,onMoveEnd:ke}=Q.getState();ke==null||ke(Se,$e),Te==null||Te($e)}});const{x:Y,y:fe,zoom:De}=de.current.getViewport();return Q.setState({panZoom:de.current,transform:[Y,fe,De],domNode:re.current.closest(".react-flow")}),()=>{var Se;(Se=de.current)==null||Se.destroy()}}},[]),z.useEffect(()=>{var Y;(Y=de.current)==null||Y.update({onPaneContextMenu:n,zoomOnScroll:i,zoomOnPinch:a,panOnScroll:c,panOnScrollSpeed:d,panOnScrollMode:g,zoomOnDoubleClick:b,panOnDrag:w,zoomActivationKeyPressed:ve,preventScrolling:R,noPanClassName:B,userSelectionActive:ee,noWheelClassName:D,lib:ae,onTransformChange:ge,connectionInProgress:he,selectionOnDrag:H,paneClickDistance:P})},[n,i,a,c,d,g,b,w,ve,R,B,ee,D,ae,ge,he,H,P]),O.jsx("div",{className:"react-flow__renderer",ref:re,style:Jse,children:M})}const FMn=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function $Mn(){const{userSelectionActive:n,userSelectionRect:i}=Js(FMn,Lc);return n&&i?O.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:i.width,height:i.height,transform:`translate(${i.x}px, ${i.y}px)`}}):null}const DCe=(n,i)=>a=>{a.target===i.current&&(n==null||n(a))},BMn=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function UMn({isSelecting:n,selectionKeyPressed:i,selectionMode:a=WH.Full,panOnDrag:c,paneClickDistance:d,selectionOnDrag:g,onSelectionStart:b,onSelectionEnd:w,onPaneClick:E,onPaneContextMenu:S,onPaneScroll:k,onPaneMouseEnter:_,onPaneMouseMove:C,onPaneMouseLeave:R,children:M}){const D=Mc(),{userSelectionActive:B,elementsSelectable:F,dragging:$,connectionInProgress:P}=Js(BMn,Lc),H=F&&(n||B),Q=z.useRef(null),re=z.useRef(),ee=z.useRef(new Set),ae=z.useRef(new Set),he=z.useRef(!1),ve=Te=>{if(he.current||P){he.current=!1;return}E==null||E(Te),D.getState().resetSelectedElements(),D.setState({nodesSelectionActive:!1})},de=Te=>{if(Array.isArray(c)&&(c!=null&&c.includes(2))){Te.preventDefault();return}S==null||S(Te)},ge=k?Te=>k(Te):void 0,Y=Te=>{he.current&&(Te.stopPropagation(),he.current=!1)},fe=Te=>{var ft,Kt;const{domNode:ke}=D.getState();if(re.current=ke==null?void 0:ke.getBoundingClientRect(),!re.current)return;const Je=Te.target===Q.current;if(!Je&&!!Te.target.closest(".nokey")||!n||!(g&&Je||i)||Te.button!==0||!Te.isPrimary)return;(Kt=(ft=Te.target)==null?void 0:ft.setPointerCapture)==null||Kt.call(ft,Te.pointerId),he.current=!1;const{x:_t,y:At}=Rv(Te.nativeEvent,re.current);D.setState({userSelectionRect:{width:0,height:0,startX:_t,startY:At,x:_t,y:At}}),Je||(Te.stopPropagation(),Te.preventDefault())},De=Te=>{const{userSelectionRect:ke,transform:Je,nodeLookup:bt,edgeLookup:qe,connectionLookup:_t,triggerNodeChanges:At,triggerEdgeChanges:ft,defaultEdgeOptions:Kt,resetSelectedElements:kt}=D.getState();if(!re.current||!ke)return;const{x:It,y:Xt}=Rv(Te.nativeEvent,re.current),{startX:Bn,startY:tr}=ke;if(!he.current){const Hi=i?0:d;if(Math.hypot(It-Bn,Xt-tr)<=Hi)return;kt(),b==null||b(Te)}he.current=!0;const Zn={startX:Bn,startY:tr,x:ItHi.id)),ae.current=new Set;const Qr=(Kt==null?void 0:Kt.selectable)??!0;for(const Hi of ee.current){const ai=_t.get(Hi);if(ai)for(const{edgeId:jc}of ai.values()){const Xs=qe.get(jc);Xs&&(Xs.selectable??Qr)&&ae.current.add(jc)}}if(!k5t(Dr,ee.current)){const Hi=UM(bt,ee.current,!0);At(Hi)}if(!k5t(Ui,ae.current)){const Hi=UM(qe,ae.current);ft(Hi)}D.setState({userSelectionRect:Zn,userSelectionActive:!0,nodesSelectionActive:!1})},Se=Te=>{var ke,Je;Te.button===0&&((Je=(ke=Te.target)==null?void 0:ke.releasePointerCapture)==null||Je.call(ke,Te.pointerId),!B&&Te.target===Q.current&&D.getState().userSelectionRect&&(ve==null||ve(Te)),D.setState({userSelectionActive:!1,userSelectionRect:null}),he.current&&(w==null||w(Te),D.setState({nodesSelectionActive:ee.current.size>0})))},$e=c===!0||Array.isArray(c)&&c.includes(0);return O.jsxs("div",{className:Bd(["react-flow__pane",{draggable:$e,dragging:$,selection:n}]),onClick:H?void 0:DCe(ve,Q),onContextMenu:DCe(de,Q),onWheel:DCe(ge,Q),onPointerEnter:H?void 0:_,onPointerMove:H?De:C,onPointerUp:H?Se:void 0,onPointerDownCapture:H?fe:void 0,onClickCapture:H?Y:void 0,onPointerLeave:R,ref:Q,style:Jse,children:[M,O.jsx($Mn,{})]})}function oDe({id:n,store:i,unselect:a=!1,nodeRef:c}){const{addSelectedNodes:d,unselectNodesAndEdges:g,multiSelectionActive:b,nodeLookup:w,onError:E}=i.getState(),S=w.get(n);if(!S){E==null||E("012",H2.error012(n));return}i.setState({nodesSelectionActive:!1}),S.selected?(a||S.selected&&b)&&(g({nodes:[S],edges:[]}),requestAnimationFrame(()=>{var k;return(k=c==null?void 0:c.current)==null?void 0:k.blur()})):d([n])}function Ezt({nodeRef:n,disabled:i=!1,noDragClassName:a,handleSelector:c,nodeId:d,isSelectable:g,nodeClickDistance:b}){const w=Mc(),[E,S]=z.useState(!1),k=z.useRef();return z.useEffect(()=>{k.current=ALn({getStoreItems:()=>w.getState(),onNodeMouseDown:_=>{oDe({id:_,store:w,nodeRef:n})},onDragStart:()=>{S(!0)},onDragStop:()=>{S(!1)}})},[]),z.useEffect(()=>{var _,C;if(i)(_=k.current)==null||_.destroy();else if(n.current)return(C=k.current)==null||C.update({noDragClassName:a,handleSelector:c,domNode:n.current,isSelectable:g,nodeId:d,nodeClickDistance:b}),()=>{var R;(R=k.current)==null||R.destroy()}},[a,c,i,g,n,d]),E}const HMn=n=>i=>i.selected&&(i.draggable||n&&typeof i.draggable>"u");function Szt(){const n=Mc();return z.useCallback(a=>{const{nodeExtent:c,snapToGrid:d,snapGrid:g,nodesDraggable:b,onError:w,updateNodePositions:E,nodeLookup:S,nodeOrigin:k}=n.getState(),_=new Map,C=HMn(b),R=d?g[0]:5,M=d?g[1]:5,D=a.direction.x*R*a.factor,B=a.direction.y*M*a.factor;for(const[,F]of S){if(!C(F))continue;let $={x:F.internals.positionAbsolute.x+D,y:F.internals.positionAbsolute.y+B};d&&($=vz($,g));const{position:P,positionAbsolute:H}=FHt({nodeId:F.id,nextPosition:$,nodeLookup:S,nodeExtent:c,nodeOrigin:k,onError:w});F.position=P,F.internals.positionAbsolute=H,_.set(F.id,F)}E(_)},[])}const SMe=z.createContext(null),zMn=SMe.Provider;SMe.Consumer;const Tzt=()=>z.useContext(SMe),GMn=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),qMn=(n,i,a)=>c=>{const{connectionClickStartHandle:d,connectionMode:g,connection:b}=c,{fromHandle:w,toHandle:E,isValid:S}=b,k=(E==null?void 0:E.nodeId)===n&&(E==null?void 0:E.id)===i&&(E==null?void 0:E.type)===a;return{connectingFrom:(w==null?void 0:w.nodeId)===n&&(w==null?void 0:w.id)===i&&(w==null?void 0:w.type)===a,connectingTo:k,clickConnecting:(d==null?void 0:d.nodeId)===n&&(d==null?void 0:d.id)===i&&(d==null?void 0:d.type)===a,isPossibleEndHandle:g===y5.Strict?(w==null?void 0:w.type)!==a:n!==(w==null?void 0:w.nodeId)||i!==(w==null?void 0:w.id),connectionInProcess:!!w,clickConnectionInProcess:!!d,valid:k&&S}};function VMn({type:n="source",position:i=Vr.Top,isValidConnection:a,isConnectable:c=!0,isConnectableStart:d=!0,isConnectableEnd:g=!0,id:b,onConnect:w,children:E,className:S,onMouseDown:k,onTouchStart:_,...C},R){var De,Se;const M=b||null,D=n==="target",B=Mc(),F=Tzt(),{connectOnClick:$,noPanClassName:P,rfId:H}=Js(GMn,Lc),{connectingFrom:Q,connectingTo:re,clickConnecting:ee,isPossibleEndHandle:ae,connectionInProcess:he,clickConnectionInProcess:ve,valid:de}=Js(qMn(F,M,n),Lc);F||(Se=(De=B.getState()).onError)==null||Se.call(De,"010",H2.error010());const ge=$e=>{const{defaultEdgeOptions:Te,onConnect:ke,hasDefaultEdges:Je}=B.getState(),bt={...Te,...$e};if(Je){const{edges:qe,setEdges:_t}=B.getState();_t(JHt(bt,qe))}ke==null||ke(bt),w==null||w(bt)},Y=$e=>{if(!F)return;const Te=VHt($e.nativeEvent);if(d&&(Te&&$e.button===0||!Te)){const ke=B.getState();iDe.onPointerDown($e.nativeEvent,{handleDomNode:$e.currentTarget,autoPanOnConnect:ke.autoPanOnConnect,connectionMode:ke.connectionMode,connectionRadius:ke.connectionRadius,domNode:ke.domNode,nodeLookup:ke.nodeLookup,lib:ke.lib,isTarget:D,handleId:M,nodeId:F,flowId:ke.rfId,panBy:ke.panBy,cancelConnection:ke.cancelConnection,onConnectStart:ke.onConnectStart,onConnectEnd:ke.onConnectEnd,updateConnection:ke.updateConnection,onConnect:ge,isValidConnection:a||ke.isValidConnection,getTransform:()=>B.getState().transform,getFromHandle:()=>B.getState().connection.fromHandle,autoPanSpeed:ke.autoPanSpeed,dragThreshold:ke.connectionDragThreshold})}Te?k==null||k($e):_==null||_($e)},fe=$e=>{const{onClickConnectStart:Te,onClickConnectEnd:ke,connectionClickStartHandle:Je,connectionMode:bt,isValidConnection:qe,lib:_t,rfId:At,nodeLookup:ft,connection:Kt}=B.getState();if(!F||!Je&&!d)return;if(!Je){Te==null||Te($e.nativeEvent,{nodeId:F,handleId:M,handleType:n}),B.setState({connectionClickStartHandle:{nodeId:F,type:n,id:M}});return}const kt=GHt($e.target),It=a||qe,{connection:Xt,isValid:Bn}=iDe.isValid($e.nativeEvent,{handle:{nodeId:F,id:M,type:n},connectionMode:bt,fromNodeId:Je.nodeId,fromHandleId:Je.id||null,fromType:Je.type,isValidConnection:It,flowId:At,doc:kt,lib:_t,nodeLookup:ft});Bn&&Xt&&ge(Xt);const tr=structuredClone(Kt);delete tr.inProgress,tr.toPosition=tr.toHandle?tr.toHandle.position:null,ke==null||ke($e,tr),B.setState({connectionClickStartHandle:null})};return O.jsx("div",{"data-handleid":M,"data-nodeid":F,"data-handlepos":i,"data-id":`${H}-${F}-${M}-${n}`,className:Bd(["react-flow__handle",`react-flow__handle-${i}`,"nodrag",P,S,{source:!D,target:D,connectable:c,connectablestart:d,connectableend:g,clickconnecting:ee,connectingfrom:Q,connectingto:re,valid:de,connectionindicator:c&&(!he||ae)&&(he||ve?g:d)}]),onMouseDown:Y,onTouchStart:Y,onClick:$?fe:void 0,ref:R,...C,children:E})}const jp=z.memo(yzt(VMn));function WMn({data:n,isConnectable:i,sourcePosition:a=Vr.Bottom}){return O.jsxs(O.Fragment,{children:[n==null?void 0:n.label,O.jsx(jp,{type:"source",position:a,isConnectable:i})]})}function KMn({data:n,isConnectable:i,targetPosition:a=Vr.Top,sourcePosition:c=Vr.Bottom}){return O.jsxs(O.Fragment,{children:[O.jsx(jp,{type:"target",position:a,isConnectable:i}),n==null?void 0:n.label,O.jsx(jp,{type:"source",position:c,isConnectable:i})]})}function YMn(){return null}function JMn({data:n,isConnectable:i,targetPosition:a=Vr.Top}){return O.jsxs(O.Fragment,{children:[O.jsx(jp,{type:"target",position:a,isConnectable:i}),n==null?void 0:n.label]})}const qoe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Z5t={input:WMn,default:KMn,output:JMn,group:YMn};function XMn(n){var i,a,c,d;return n.internals.handleBounds===void 0?{width:n.width??n.initialWidth??((i=n.style)==null?void 0:i.width),height:n.height??n.initialHeight??((a=n.style)==null?void 0:a.height)}:{width:n.width??((c=n.style)==null?void 0:c.width),height:n.height??((d=n.style)==null?void 0:d.height)}}const ZMn=n=>{const{width:i,height:a,x:c,y:d}=yz(n.nodeLookup,{filter:g=>!!g.selected});return{width:Iv(i)?i:null,height:Iv(a)?a:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${c}px,${d}px)`}};function QMn({onSelectionContextMenu:n,noPanClassName:i,disableKeyboardA11y:a}){const c=Mc(),{width:d,height:g,transformString:b,userSelectionActive:w}=Js(ZMn,Lc),E=Szt(),S=z.useRef(null);if(z.useEffect(()=>{var C;a||(C=S.current)==null||C.focus({preventScroll:!0})},[a]),Ezt({nodeRef:S}),w||!d||!g)return null;const k=n?C=>{const R=c.getState().nodes.filter(M=>M.selected);n(C,R)}:void 0,_=C=>{Object.prototype.hasOwnProperty.call(qoe,C.key)&&(C.preventDefault(),E({direction:qoe[C.key],factor:C.shiftKey?4:1}))};return O.jsx("div",{className:Bd(["react-flow__nodesselection","react-flow__container",i]),style:{transform:b},children:O.jsx("div",{ref:S,className:"react-flow__nodesselection-rect",onContextMenu:k,tabIndex:a?void 0:-1,onKeyDown:a?void 0:_,style:{width:d,height:g}})})}const Q5t=typeof window<"u"?window:void 0,e5n=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function Azt({children:n,onPaneClick:i,onPaneMouseEnter:a,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,paneClickDistance:w,deleteKeyCode:E,selectionKeyCode:S,selectionOnDrag:k,selectionMode:_,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:M,panActivationKeyCode:D,zoomActivationKeyCode:B,elementsSelectable:F,zoomOnScroll:$,zoomOnPinch:P,panOnScroll:H,panOnScrollSpeed:Q,panOnScrollMode:re,zoomOnDoubleClick:ee,panOnDrag:ae,defaultViewport:he,translateExtent:ve,minZoom:de,maxZoom:ge,preventScrolling:Y,onSelectionContextMenu:fe,noWheelClassName:De,noPanClassName:Se,disableKeyboardA11y:$e,onViewportChange:Te,isControlledViewport:ke}){const{nodesSelectionActive:Je,userSelectionActive:bt}=Js(e5n,Lc),qe=JH(S,{target:Q5t}),_t=JH(D,{target:Q5t}),At=_t||ae,ft=_t||H,Kt=k&&At!==!0,kt=qe||bt||Kt;return LMn({deleteKeyCode:E,multiSelectionKeyCode:M}),O.jsx(jMn,{onPaneContextMenu:g,elementsSelectable:F,zoomOnScroll:$,zoomOnPinch:P,panOnScroll:ft,panOnScrollSpeed:Q,panOnScrollMode:re,zoomOnDoubleClick:ee,panOnDrag:!qe&&At,defaultViewport:he,translateExtent:ve,minZoom:de,maxZoom:ge,zoomActivationKeyCode:B,preventScrolling:Y,noWheelClassName:De,noPanClassName:Se,onViewportChange:Te,isControlledViewport:ke,paneClickDistance:w,selectionOnDrag:Kt,children:O.jsxs(UMn,{onSelectionStart:C,onSelectionEnd:R,onPaneClick:i,onPaneMouseEnter:a,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,panOnDrag:At,isSelecting:!!kt,selectionMode:_,selectionKeyPressed:qe,paneClickDistance:w,selectionOnDrag:Kt,children:[n,Je&&O.jsx(QMn,{onSelectionContextMenu:fe,noPanClassName:Se,disableKeyboardA11y:$e})]})})}Azt.displayName="FlowRenderer";const t5n=z.memo(Azt),n5n=n=>i=>n?pMe(i.nodeLookup,{x:0,y:0,width:i.width,height:i.height},i.transform,!0).map(a=>a.id):Array.from(i.nodeLookup.keys());function r5n(n){return Js(z.useCallback(n5n(n),[n]),Lc)}const i5n=n=>n.updateNodeInternals;function o5n(){const n=Js(i5n),[i]=z.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(a=>{const c=new Map;a.forEach(d=>{const g=d.target.getAttribute("data-id");c.set(g,{id:g,nodeElement:d.target,force:!0})}),n(c)}));return z.useEffect(()=>()=>{i==null||i.disconnect()},[i]),i}function s5n({node:n,nodeType:i,hasDimensions:a,resizeObserver:c}){const d=Mc(),g=z.useRef(null),b=z.useRef(null),w=z.useRef(n.sourcePosition),E=z.useRef(n.targetPosition),S=z.useRef(i),k=a&&!!n.internals.handleBounds;return z.useEffect(()=>{g.current&&!n.hidden&&(!k||b.current!==g.current)&&(b.current&&(c==null||c.unobserve(b.current)),c==null||c.observe(g.current),b.current=g.current)},[k,n.hidden]),z.useEffect(()=>()=>{b.current&&(c==null||c.unobserve(b.current),b.current=null)},[]),z.useEffect(()=>{if(g.current){const _=S.current!==i,C=w.current!==n.sourcePosition,R=E.current!==n.targetPosition;(_||C||R)&&(S.current=i,w.current=n.sourcePosition,E.current=n.targetPosition,d.getState().updateNodeInternals(new Map([[n.id,{id:n.id,nodeElement:g.current,force:!0}]])))}},[n.id,i,n.sourcePosition,n.targetPosition]),g}function a5n({id:n,onClick:i,onMouseEnter:a,onMouseMove:c,onMouseLeave:d,onContextMenu:g,onDoubleClick:b,nodesDraggable:w,elementsSelectable:E,nodesConnectable:S,nodesFocusable:k,resizeObserver:_,noDragClassName:C,noPanClassName:R,disableKeyboardA11y:M,rfId:D,nodeTypes:B,nodeClickDistance:F,onError:$}){const{node:P,internals:H,isParent:Q}=Js(It=>{const Xt=It.nodeLookup.get(n),Bn=It.parentLookup.has(n);return{node:Xt,internals:Xt.internals,isParent:Bn}},Lc);let re=P.type||"default",ee=(B==null?void 0:B[re])||Z5t[re];ee===void 0&&($==null||$("003",H2.error003(re)),re="default",ee=(B==null?void 0:B.default)||Z5t.default);const ae=!!(P.draggable||w&&typeof P.draggable>"u"),he=!!(P.selectable||E&&typeof P.selectable>"u"),ve=!!(P.connectable||S&&typeof P.connectable>"u"),de=!!(P.focusable||k&&typeof P.focusable>"u"),ge=Mc(),Y=HHt(P),fe=s5n({node:P,nodeType:re,hasDimensions:Y,resizeObserver:_}),De=Ezt({nodeRef:fe,disabled:P.hidden||!ae,noDragClassName:C,handleSelector:P.dragHandle,nodeId:n,isSelectable:he,nodeClickDistance:F}),Se=Szt();if(P.hidden)return null;const $e=TA(P),Te=XMn(P),ke=he||ae||i||a||c||d,Je=a?It=>a(It,{...H.userNode}):void 0,bt=c?It=>c(It,{...H.userNode}):void 0,qe=d?It=>d(It,{...H.userNode}):void 0,_t=g?It=>g(It,{...H.userNode}):void 0,At=b?It=>b(It,{...H.userNode}):void 0,ft=It=>{const{selectNodesOnDrag:Xt,nodeDragThreshold:Bn}=ge.getState();he&&(!Xt||!ae||Bn>0)&&oDe({id:n,store:ge,nodeRef:fe}),i&&i(It,{...H.userNode})},Kt=It=>{if(!(qHt(It.nativeEvent)||M)){if(DHt.includes(It.key)&&he){const Xt=It.key==="Escape";oDe({id:n,store:ge,unselect:Xt,nodeRef:fe})}else if(ae&&P.selected&&Object.prototype.hasOwnProperty.call(qoe,It.key)){It.preventDefault();const{ariaLabelConfig:Xt}=ge.getState();ge.setState({ariaLiveMessage:Xt["node.a11yDescription.ariaLiveMessage"]({direction:It.key.replace("Arrow","").toLowerCase(),x:~~H.positionAbsolute.x,y:~~H.positionAbsolute.y})}),Se({direction:qoe[It.key],factor:It.shiftKey?4:1})}}},kt=()=>{var Ui;if(M||!((Ui=fe.current)!=null&&Ui.matches(":focus-visible")))return;const{transform:It,width:Xt,height:Bn,autoPanOnNodeFocus:tr,setCenter:Zn}=ge.getState();if(!tr)return;pMe(new Map([[n,P]]),{x:0,y:0,width:Xt,height:Bn},It,!0).length>0||Zn(P.position.x+$e.width/2,P.position.y+$e.height/2,{zoom:It[2]})};return O.jsx("div",{className:Bd(["react-flow__node",`react-flow__node-${re}`,{[R]:ae},P.className,{selected:P.selected,selectable:he,parent:Q,draggable:ae,dragging:De}]),ref:fe,style:{zIndex:H.z,transform:`translate(${H.positionAbsolute.x}px,${H.positionAbsolute.y}px)`,pointerEvents:ke?"all":"none",visibility:Y?"visible":"hidden",...P.style,...Te},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:Je,onMouseMove:bt,onMouseLeave:qe,onContextMenu:_t,onClick:ft,onDoubleClick:At,onKeyDown:de?Kt:void 0,tabIndex:de?0:void 0,onFocus:de?kt:void 0,role:P.ariaRole??(de?"group":void 0),"aria-roledescription":"node","aria-describedby":M?void 0:`${hzt}-${D}`,"aria-label":P.ariaLabel,...P.domAttributes,children:O.jsx(zMn,{value:n,children:O.jsx(ee,{id:n,data:P.data,type:re,positionAbsoluteX:H.positionAbsolute.x,positionAbsoluteY:H.positionAbsolute.y,selected:P.selected??!1,selectable:he,draggable:ae,deletable:P.deletable??!0,isConnectable:ve,sourcePosition:P.sourcePosition,targetPosition:P.targetPosition,dragging:De,dragHandle:P.dragHandle,zIndex:H.z,parentId:P.parentId,...$e})})})}var u5n=z.memo(a5n);const c5n=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function _zt(n){const{nodesDraggable:i,nodesConnectable:a,nodesFocusable:c,elementsSelectable:d,onError:g}=Js(c5n,Lc),b=r5n(n.onlyRenderVisibleElements),w=o5n();return O.jsx("div",{className:"react-flow__nodes",style:Jse,children:b.map(E=>O.jsx(u5n,{id:E,nodeTypes:n.nodeTypes,nodeExtent:n.nodeExtent,onClick:n.onNodeClick,onMouseEnter:n.onNodeMouseEnter,onMouseMove:n.onNodeMouseMove,onMouseLeave:n.onNodeMouseLeave,onContextMenu:n.onNodeContextMenu,onDoubleClick:n.onNodeDoubleClick,noDragClassName:n.noDragClassName,noPanClassName:n.noPanClassName,rfId:n.rfId,disableKeyboardA11y:n.disableKeyboardA11y,resizeObserver:w,nodesDraggable:i,nodesConnectable:a,nodesFocusable:c,elementsSelectable:d,nodeClickDistance:n.nodeClickDistance,onError:g},E))})}_zt.displayName="NodeRenderer";const l5n=z.memo(_zt);function d5n(n){return Js(z.useCallback(a=>{if(!n)return a.edges.map(d=>d.id);const c=[];if(a.width&&a.height)for(const d of a.edges){const g=a.nodeLookup.get(d.source),b=a.nodeLookup.get(d.target);g&&b&&sLn({sourceNode:g,targetNode:b,width:a.width,height:a.height,transform:a.transform})&&c.push(d.id)}return c},[n]),Lc)}const f5n=({color:n="none",strokeWidth:i=1})=>{const a={strokeWidth:i,...n&&{stroke:n}};return O.jsx("polyline",{className:"arrow",style:a,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},h5n=({color:n="none",strokeWidth:i=1})=>{const a={strokeWidth:i,...n&&{stroke:n,fill:n}};return O.jsx("polyline",{className:"arrowclosed",style:a,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},e9t={[iA.Arrow]:f5n,[iA.ArrowClosed]:h5n};function p5n(n){const i=Mc();return z.useMemo(()=>{var d,g;return Object.prototype.hasOwnProperty.call(e9t,n)?e9t[n]:((g=(d=i.getState()).onError)==null||g.call(d,"009",H2.error009(n)),null)},[n])}const g5n=({id:n,type:i,color:a,width:c=12.5,height:d=12.5,markerUnits:g="strokeWidth",strokeWidth:b,orient:w="auto-start-reverse"})=>{const E=p5n(i);return E?O.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${c}`,markerHeight:`${d}`,viewBox:"-10 -10 20 20",markerUnits:g,orient:w,refX:"0",refY:"0",children:O.jsx(E,{color:a,strokeWidth:b})}):null},kzt=({defaultColor:n,rfId:i})=>{const a=Js(g=>g.edges),c=Js(g=>g.defaultEdgeOptions),d=z.useMemo(()=>hLn(a,{id:i,defaultColor:n,defaultMarkerStart:c==null?void 0:c.markerStart,defaultMarkerEnd:c==null?void 0:c.markerEnd}),[a,c,i,n]);return d.length?O.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:O.jsx("defs",{children:d.map(g=>O.jsx(g5n,{id:g.id,type:g.type,color:g.color,width:g.width,height:g.height,markerUnits:g.markerUnits,strokeWidth:g.strokeWidth,orient:g.orient},g.id))})}):null};kzt.displayName="MarkerDefinitions";var b5n=z.memo(kzt);function xzt({x:n,y:i,label:a,labelStyle:c,labelShowBg:d=!0,labelBgStyle:g,labelBgPadding:b=[2,4],labelBgBorderRadius:w=2,children:E,className:S,...k}){const[_,C]=z.useState({x:1,y:0,width:0,height:0}),R=Bd(["react-flow__edge-textwrapper",S]),M=z.useRef(null);return z.useEffect(()=>{if(M.current){const D=M.current.getBBox();C({x:D.x,y:D.y,width:D.width,height:D.height})}},[a]),a?O.jsxs("g",{transform:`translate(${n-_.width/2} ${i-_.height/2})`,className:R,visibility:_.width?"visible":"hidden",...k,children:[d&&O.jsx("rect",{width:_.width+2*b[0],x:-b[0],y:-b[1],height:_.height+2*b[1],className:"react-flow__edge-textbg",style:g,rx:w,ry:w}),O.jsx("text",{className:"react-flow__edge-text",y:_.height/2,dy:"0.3em",ref:M,style:c,children:a}),E]}):null}xzt.displayName="EdgeText";const m5n=z.memo(xzt);function Sz({path:n,labelX:i,labelY:a,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E,interactionWidth:S=20,...k}){return O.jsxs(O.Fragment,{children:[O.jsx("path",{...k,d:n,fill:"none",className:Bd(["react-flow__edge-path",k.className])}),S?O.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}):null,c&&Iv(i)&&Iv(a)?O.jsx(m5n,{x:i,y:a,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E}):null]})}function t9t({pos:n,x1:i,y1:a,x2:c,y2:d}){return n===Vr.Left||n===Vr.Right?[.5*(i+c),a]:[i,.5*(a+d)]}function Nzt({sourceX:n,sourceY:i,sourcePosition:a=Vr.Bottom,targetX:c,targetY:d,targetPosition:g=Vr.Top}){const[b,w]=t9t({pos:a,x1:n,y1:i,x2:c,y2:d}),[E,S]=t9t({pos:g,x1:c,y1:d,x2:n,y2:i}),[k,_,C,R]=WHt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:b,sourceControlY:w,targetControlX:E,targetControlY:S});return[`M${n},${i} C${b},${w} ${E},${S} ${c},${d}`,k,_,C,R]}function Czt(n){return z.memo(({id:i,sourceX:a,sourceY:c,targetX:d,targetY:g,sourcePosition:b,targetPosition:w,label:E,labelStyle:S,labelShowBg:k,labelBgStyle:_,labelBgPadding:C,labelBgBorderRadius:R,style:M,markerEnd:D,markerStart:B,interactionWidth:F})=>{const[$,P,H]=Nzt({sourceX:a,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w}),Q=n.isInternal?void 0:i;return O.jsx(Sz,{id:Q,path:$,labelX:P,labelY:H,label:E,labelStyle:S,labelShowBg:k,labelBgStyle:_,labelBgPadding:C,labelBgBorderRadius:R,style:M,markerEnd:D,markerStart:B,interactionWidth:F})})}const w5n=Czt({isInternal:!1}),Izt=Czt({isInternal:!0});w5n.displayName="SimpleBezierEdge";Izt.displayName="SimpleBezierEdgeInternal";function Rzt(n){return z.memo(({id:i,sourceX:a,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:k,labelBgBorderRadius:_,style:C,sourcePosition:R=Vr.Bottom,targetPosition:M=Vr.Top,markerEnd:D,markerStart:B,pathOptions:F,interactionWidth:$})=>{const[P,H,Q]=Goe({sourceX:a,sourceY:c,sourcePosition:R,targetX:d,targetY:g,targetPosition:M,borderRadius:F==null?void 0:F.borderRadius,offset:F==null?void 0:F.offset,stepPosition:F==null?void 0:F.stepPosition}),re=n.isInternal?void 0:i;return O.jsx(Sz,{id:re,path:P,labelX:H,labelY:Q,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:k,labelBgBorderRadius:_,style:C,markerEnd:D,markerStart:B,interactionWidth:$})})}const Ozt=Rzt({isInternal:!1}),Dzt=Rzt({isInternal:!0});Ozt.displayName="SmoothStepEdge";Dzt.displayName="SmoothStepEdgeInternal";function Lzt(n){return z.memo(({id:i,...a})=>{var d;const c=n.isInternal?void 0:i;return O.jsx(Ozt,{...a,id:c,pathOptions:z.useMemo(()=>{var g;return{borderRadius:0,offset:(g=a.pathOptions)==null?void 0:g.offset}},[(d=a.pathOptions)==null?void 0:d.offset])})})}const y5n=Lzt({isInternal:!1}),Mzt=Lzt({isInternal:!0});y5n.displayName="StepEdge";Mzt.displayName="StepEdgeInternal";function Pzt(n){return z.memo(({id:i,sourceX:a,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:k,labelBgBorderRadius:_,style:C,markerEnd:R,markerStart:M,interactionWidth:D})=>{const[B,F,$]=XHt({sourceX:a,sourceY:c,targetX:d,targetY:g}),P=n.isInternal?void 0:i;return O.jsx(Sz,{id:P,path:B,labelX:F,labelY:$,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:k,labelBgBorderRadius:_,style:C,markerEnd:R,markerStart:M,interactionWidth:D})})}const v5n=Pzt({isInternal:!1}),jzt=Pzt({isInternal:!0});v5n.displayName="StraightEdge";jzt.displayName="StraightEdgeInternal";function Fzt(n){return z.memo(({id:i,sourceX:a,sourceY:c,targetX:d,targetY:g,sourcePosition:b=Vr.Bottom,targetPosition:w=Vr.Top,label:E,labelStyle:S,labelShowBg:k,labelBgStyle:_,labelBgPadding:C,labelBgBorderRadius:R,style:M,markerEnd:D,markerStart:B,pathOptions:F,interactionWidth:$})=>{const[P,H,Q]=KHt({sourceX:a,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w,curvature:F==null?void 0:F.curvature}),re=n.isInternal?void 0:i;return O.jsx(Sz,{id:re,path:P,labelX:H,labelY:Q,label:E,labelStyle:S,labelShowBg:k,labelBgStyle:_,labelBgPadding:C,labelBgBorderRadius:R,style:M,markerEnd:D,markerStart:B,interactionWidth:$})})}const E5n=Fzt({isInternal:!1}),$zt=Fzt({isInternal:!0});E5n.displayName="BezierEdge";$zt.displayName="BezierEdgeInternal";const n9t={default:$zt,straight:jzt,step:Mzt,smoothstep:Dzt,simplebezier:Izt},r9t={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},S5n=(n,i,a)=>a===Vr.Left?n-i:a===Vr.Right?n+i:n,T5n=(n,i,a)=>a===Vr.Top?n-i:a===Vr.Bottom?n+i:n,i9t="react-flow__edgeupdater";function o9t({position:n,centerX:i,centerY:a,radius:c=10,onMouseDown:d,onMouseEnter:g,onMouseOut:b,type:w}){return O.jsx("circle",{onMouseDown:d,onMouseEnter:g,onMouseOut:b,className:Bd([i9t,`${i9t}-${w}`]),cx:S5n(i,c,n),cy:T5n(a,c,n),r:c,stroke:"transparent",fill:"transparent"})}function A5n({isReconnectable:n,reconnectRadius:i,edge:a,sourceX:c,sourceY:d,targetX:g,targetY:b,sourcePosition:w,targetPosition:E,onReconnect:S,onReconnectStart:k,onReconnectEnd:_,setReconnecting:C,setUpdateHover:R}){const M=Mc(),D=(H,Q)=>{if(H.button!==0)return;const{autoPanOnConnect:re,domNode:ee,isValidConnection:ae,connectionMode:he,connectionRadius:ve,lib:de,onConnectStart:ge,onConnectEnd:Y,cancelConnection:fe,nodeLookup:De,rfId:Se,panBy:$e,updateConnection:Te}=M.getState(),ke=Q.type==="target",Je=(_t,At)=>{C(!1),_==null||_(_t,a,Q.type,At)},bt=_t=>S==null?void 0:S(a,_t),qe=(_t,At)=>{C(!0),k==null||k(H,a,Q.type),ge==null||ge(_t,At)};iDe.onPointerDown(H.nativeEvent,{autoPanOnConnect:re,connectionMode:he,connectionRadius:ve,domNode:ee,handleId:Q.id,nodeId:Q.nodeId,nodeLookup:De,isTarget:ke,edgeUpdaterType:Q.type,lib:de,flowId:Se,cancelConnection:fe,panBy:$e,isValidConnection:ae,onConnect:bt,onConnectStart:qe,onConnectEnd:Y,onReconnectEnd:Je,updateConnection:Te,getTransform:()=>M.getState().transform,getFromHandle:()=>M.getState().connection.fromHandle,dragThreshold:M.getState().connectionDragThreshold,handleDomNode:H.currentTarget})},B=H=>D(H,{nodeId:a.target,id:a.targetHandle??null,type:"target"}),F=H=>D(H,{nodeId:a.source,id:a.sourceHandle??null,type:"source"}),$=()=>R(!0),P=()=>R(!1);return O.jsxs(O.Fragment,{children:[(n===!0||n==="source")&&O.jsx(o9t,{position:w,centerX:c,centerY:d,radius:i,onMouseDown:B,onMouseEnter:$,onMouseOut:P,type:"source"}),(n===!0||n==="target")&&O.jsx(o9t,{position:E,centerX:g,centerY:b,radius:i,onMouseDown:F,onMouseEnter:$,onMouseOut:P,type:"target"})]})}function _5n({id:n,edgesFocusable:i,edgesReconnectable:a,elementsSelectable:c,onClick:d,onDoubleClick:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,reconnectRadius:k,onReconnect:_,onReconnectStart:C,onReconnectEnd:R,rfId:M,edgeTypes:D,noPanClassName:B,onError:F,disableKeyboardA11y:$}){let P=Js(Zn=>Zn.edgeLookup.get(n));const H=Js(Zn=>Zn.defaultEdgeOptions);P=H?{...H,...P}:P;let Q=P.type||"default",re=(D==null?void 0:D[Q])||n9t[Q];re===void 0&&(F==null||F("011",H2.error011(Q)),Q="default",re=(D==null?void 0:D.default)||n9t.default);const ee=!!(P.focusable||i&&typeof P.focusable>"u"),ae=typeof _<"u"&&(P.reconnectable||a&&typeof P.reconnectable>"u"),he=!!(P.selectable||c&&typeof P.selectable>"u"),ve=z.useRef(null),[de,ge]=z.useState(!1),[Y,fe]=z.useState(!1),De=Mc(),{zIndex:Se,sourceX:$e,sourceY:Te,targetX:ke,targetY:Je,sourcePosition:bt,targetPosition:qe}=Js(z.useCallback(Zn=>{const Dr=Zn.nodeLookup.get(P.source),Ui=Zn.nodeLookup.get(P.target);if(!Dr||!Ui)return{zIndex:P.zIndex,...r9t};const Qr=fLn({id:n,sourceNode:Dr,targetNode:Ui,sourceHandle:P.sourceHandle||null,targetHandle:P.targetHandle||null,connectionMode:Zn.connectionMode,onError:F});return{zIndex:oLn({selected:P.selected,zIndex:P.zIndex,sourceNode:Dr,targetNode:Ui,elevateOnSelect:Zn.elevateEdgesOnSelect,zIndexMode:Zn.zIndexMode}),...Qr||r9t}},[P.source,P.target,P.sourceHandle,P.targetHandle,P.selected,P.zIndex]),Lc),_t=z.useMemo(()=>P.markerStart?`url('#${nDe(P.markerStart,M)}')`:void 0,[P.markerStart,M]),At=z.useMemo(()=>P.markerEnd?`url('#${nDe(P.markerEnd,M)}')`:void 0,[P.markerEnd,M]);if(P.hidden||$e===null||Te===null||ke===null||Je===null)return null;const ft=Zn=>{var Hi;const{addSelectedEdges:Dr,unselectNodesAndEdges:Ui,multiSelectionActive:Qr}=De.getState();he&&(De.setState({nodesSelectionActive:!1}),P.selected&&Qr?(Ui({nodes:[],edges:[P]}),(Hi=ve.current)==null||Hi.blur()):Dr([n])),d&&d(Zn,P)},Kt=g?Zn=>{g(Zn,{...P})}:void 0,kt=b?Zn=>{b(Zn,{...P})}:void 0,It=w?Zn=>{w(Zn,{...P})}:void 0,Xt=E?Zn=>{E(Zn,{...P})}:void 0,Bn=S?Zn=>{S(Zn,{...P})}:void 0,tr=Zn=>{var Dr;if(!$&&DHt.includes(Zn.key)&&he){const{unselectNodesAndEdges:Ui,addSelectedEdges:Qr}=De.getState();Zn.key==="Escape"?((Dr=ve.current)==null||Dr.blur(),Ui({edges:[P]})):Qr([n])}};return O.jsx("svg",{style:{zIndex:Se},children:O.jsxs("g",{className:Bd(["react-flow__edge",`react-flow__edge-${Q}`,P.className,B,{selected:P.selected,animated:P.animated,inactive:!he&&!d,updating:de,selectable:he}]),onClick:ft,onDoubleClick:Kt,onContextMenu:kt,onMouseEnter:It,onMouseMove:Xt,onMouseLeave:Bn,onKeyDown:ee?tr:void 0,tabIndex:ee?0:void 0,role:P.ariaRole??(ee?"group":"img"),"aria-roledescription":"edge","data-id":n,"data-testid":`rf__edge-${n}`,"aria-label":P.ariaLabel===null?void 0:P.ariaLabel||`Edge from ${P.source} to ${P.target}`,"aria-describedby":ee?`${pzt}-${M}`:void 0,ref:ve,...P.domAttributes,children:[!Y&&O.jsx(re,{id:n,source:P.source,target:P.target,type:P.type,selected:P.selected,animated:P.animated,selectable:he,deletable:P.deletable??!0,label:P.label,labelStyle:P.labelStyle,labelShowBg:P.labelShowBg,labelBgStyle:P.labelBgStyle,labelBgPadding:P.labelBgPadding,labelBgBorderRadius:P.labelBgBorderRadius,sourceX:$e,sourceY:Te,targetX:ke,targetY:Je,sourcePosition:bt,targetPosition:qe,data:P.data,style:P.style,sourceHandleId:P.sourceHandle,targetHandleId:P.targetHandle,markerStart:_t,markerEnd:At,pathOptions:"pathOptions"in P?P.pathOptions:void 0,interactionWidth:P.interactionWidth}),ae&&O.jsx(A5n,{edge:P,isReconnectable:ae,reconnectRadius:k,onReconnect:_,onReconnectStart:C,onReconnectEnd:R,sourceX:$e,sourceY:Te,targetX:ke,targetY:Je,sourcePosition:bt,targetPosition:qe,setUpdateHover:ge,setReconnecting:fe})]})})}var k5n=z.memo(_5n);const x5n=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function Bzt({defaultMarkerColor:n,onlyRenderVisibleElements:i,rfId:a,edgeTypes:c,noPanClassName:d,onReconnect:g,onEdgeContextMenu:b,onEdgeMouseEnter:w,onEdgeMouseMove:E,onEdgeMouseLeave:S,onEdgeClick:k,reconnectRadius:_,onEdgeDoubleClick:C,onReconnectStart:R,onReconnectEnd:M,disableKeyboardA11y:D}){const{edgesFocusable:B,edgesReconnectable:F,elementsSelectable:$,onError:P}=Js(x5n,Lc),H=d5n(i);return O.jsxs("div",{className:"react-flow__edges",children:[O.jsx(b5n,{defaultColor:n,rfId:a}),H.map(Q=>O.jsx(k5n,{id:Q,edgesFocusable:B,edgesReconnectable:F,elementsSelectable:$,noPanClassName:d,onReconnect:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,onClick:k,reconnectRadius:_,onDoubleClick:C,onReconnectStart:R,onReconnectEnd:M,rfId:a,onError:P,edgeTypes:c,disableKeyboardA11y:D},Q))]})}Bzt.displayName="EdgeRenderer";const N5n=z.memo(Bzt),C5n=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function I5n({children:n}){const i=Js(C5n);return O.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:i},children:n})}function R5n(n){const i=AR(),a=z.useRef(!1);z.useEffect(()=>{!a.current&&i.viewportInitialized&&n&&(setTimeout(()=>n(i),1),a.current=!0)},[n,i.viewportInitialized])}const O5n=n=>{var i;return(i=n.panZoom)==null?void 0:i.syncViewport};function D5n(n){const i=Js(O5n),a=Mc();return z.useEffect(()=>{n&&(i==null||i(n),a.setState({transform:[n.x,n.y,n.zoom]}))},[n,i]),null}function L5n(n){return n.connection.inProgress?{...n.connection,to:Ez(n.connection.to,n.transform)}:{...n.connection}}function M5n(n){return L5n}function P5n(n){const i=M5n();return Js(i,Lc)}const j5n=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function F5n({containerStyle:n,style:i,type:a,component:c}){const{nodesConnectable:d,width:g,height:b,isValid:w,inProgress:E}=Js(j5n,Lc);return!(g&&d&&E)?null:O.jsx("svg",{style:n,width:g,height:b,className:"react-flow__connectionline react-flow__container",children:O.jsx("g",{className:Bd(["react-flow__connection",PHt(w)]),children:O.jsx(Uzt,{style:i,type:a,CustomComponent:c,isValid:w})})})}const Uzt=({style:n,type:i=$x.Bezier,CustomComponent:a,isValid:c})=>{const{inProgress:d,from:g,fromNode:b,fromHandle:w,fromPosition:E,to:S,toNode:k,toHandle:_,toPosition:C,pointer:R}=P5n();if(!d)return;if(a)return O.jsx(a,{connectionLineType:i,connectionLineStyle:n,fromNode:b,fromHandle:w,fromX:g.x,fromY:g.y,toX:S.x,toY:S.y,fromPosition:E,toPosition:C,connectionStatus:PHt(c),toNode:k,toHandle:_,pointer:R});let M="";const D={sourceX:g.x,sourceY:g.y,sourcePosition:E,targetX:S.x,targetY:S.y,targetPosition:C};switch(i){case $x.Bezier:[M]=KHt(D);break;case $x.SimpleBezier:[M]=Nzt(D);break;case $x.Step:[M]=Goe({...D,borderRadius:0});break;case $x.SmoothStep:[M]=Goe(D);break;default:[M]=XHt(D)}return O.jsx("path",{d:M,fill:"none",className:"react-flow__connection-path",style:n})};Uzt.displayName="ConnectionLine";const $5n={};function s9t(n=$5n){z.useRef(n),Mc(),z.useEffect(()=>{},[n])}function B5n(){Mc(),z.useRef(!1),z.useEffect(()=>{},[])}function Hzt({nodeTypes:n,edgeTypes:i,onInit:a,onNodeClick:c,onEdgeClick:d,onNodeDoubleClick:g,onEdgeDoubleClick:b,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:k,onSelectionContextMenu:_,onSelectionStart:C,onSelectionEnd:R,connectionLineType:M,connectionLineStyle:D,connectionLineComponent:B,connectionLineContainerStyle:F,selectionKeyCode:$,selectionOnDrag:P,selectionMode:H,multiSelectionKeyCode:Q,panActivationKeyCode:re,zoomActivationKeyCode:ee,deleteKeyCode:ae,onlyRenderVisibleElements:he,elementsSelectable:ve,defaultViewport:de,translateExtent:ge,minZoom:Y,maxZoom:fe,preventScrolling:De,defaultMarkerColor:Se,zoomOnScroll:$e,zoomOnPinch:Te,panOnScroll:ke,panOnScrollSpeed:Je,panOnScrollMode:bt,zoomOnDoubleClick:qe,panOnDrag:_t,onPaneClick:At,onPaneMouseEnter:ft,onPaneMouseMove:Kt,onPaneMouseLeave:kt,onPaneScroll:It,onPaneContextMenu:Xt,paneClickDistance:Bn,nodeClickDistance:tr,onEdgeContextMenu:Zn,onEdgeMouseEnter:Dr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,noDragClassName:as,noWheelClassName:Jo,noPanClassName:xa,disableKeyboardA11y:xi,nodeExtent:gb,rfId:Yg,viewport:qh,onViewportChange:bb}){return s9t(n),s9t(i),B5n(),R5n(a),D5n(qh),O.jsx(t5n,{onPaneClick:At,onPaneMouseEnter:ft,onPaneMouseMove:Kt,onPaneMouseLeave:kt,onPaneContextMenu:Xt,onPaneScroll:It,paneClickDistance:Bn,deleteKeyCode:ae,selectionKeyCode:$,selectionOnDrag:P,selectionMode:H,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:Q,panActivationKeyCode:re,zoomActivationKeyCode:ee,elementsSelectable:ve,zoomOnScroll:$e,zoomOnPinch:Te,zoomOnDoubleClick:qe,panOnScroll:ke,panOnScrollSpeed:Je,panOnScrollMode:bt,panOnDrag:_t,defaultViewport:de,translateExtent:ge,minZoom:Y,maxZoom:fe,onSelectionContextMenu:_,preventScrolling:De,noDragClassName:as,noWheelClassName:Jo,noPanClassName:xa,disableKeyboardA11y:xi,onViewportChange:bb,isControlledViewport:!!qh,children:O.jsxs(I5n,{children:[O.jsx(N5n,{edgeTypes:i,onEdgeClick:d,onEdgeDoubleClick:b,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,onlyRenderVisibleElements:he,onEdgeContextMenu:Zn,onEdgeMouseEnter:Dr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,defaultMarkerColor:Se,noPanClassName:xa,disableKeyboardA11y:xi,rfId:Yg}),O.jsx(F5n,{style:D,type:M,component:B,containerStyle:F}),O.jsx("div",{className:"react-flow__edgelabel-renderer"}),O.jsx(l5n,{nodeTypes:n,onNodeClick:c,onNodeDoubleClick:g,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:k,nodeClickDistance:tr,onlyRenderVisibleElements:he,noPanClassName:xa,noDragClassName:as,disableKeyboardA11y:xi,nodeExtent:gb,rfId:Yg}),O.jsx("div",{className:"react-flow__viewport-portal"})]})})}Hzt.displayName="GraphView";const U5n=z.memo(Hzt),a9t=({nodes:n,edges:i,defaultNodes:a,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E=.5,maxZoom:S=2,nodeOrigin:k,nodeExtent:_,zIndexMode:C="basic"}={})=>{const R=new Map,M=new Map,D=new Map,B=new Map,F=c??i??[],$=a??n??[],P=k??[0,0],H=_??VH;ezt(D,B,F);const Q=rDe($,R,M,{nodeOrigin:P,nodeExtent:H,zIndexMode:C});let re=[0,0,1];if(b&&d&&g){const ee=yz(R,{filter:de=>!!((de.width||de.initialWidth)&&(de.height||de.initialHeight))}),{x:ae,y:he,zoom:ve}=gMe(ee,d,g,E,S,(w==null?void 0:w.padding)??.1);re=[ae,he,ve]}return{rfId:"1",width:d??0,height:g??0,transform:re,nodes:$,nodesInitialized:Q,nodeLookup:R,parentLookup:M,edges:F,edgeLookup:B,connectionLookup:D,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:a!==void 0,hasDefaultEdges:c!==void 0,panZoom:null,minZoom:E,maxZoom:S,translateExtent:VH,nodeExtent:H,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:y5.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:P,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:b??!1,fitViewOptions:w,fitViewResolver:null,connection:{...MHt},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:QDn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:LHt,zIndexMode:C,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},H5n=({nodes:n,edges:i,defaultNodes:a,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:k,nodeExtent:_,zIndexMode:C})=>sMn((R,M)=>{async function D(){const{nodeLookup:B,panZoom:F,fitViewOptions:$,fitViewResolver:P,width:H,height:Q,minZoom:re,maxZoom:ee}=M();F&&(await XDn({nodes:B,width:H,height:Q,panZoom:F,minZoom:re,maxZoom:ee},$),P==null||P.resolve(!0),R({fitViewResolver:null}))}return{...a9t({nodes:n,edges:i,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:k,nodeExtent:_,defaultNodes:a,defaultEdges:c,zIndexMode:C}),setNodes:B=>{const{nodeLookup:F,parentLookup:$,nodeOrigin:P,elevateNodesOnSelect:H,fitViewQueued:Q,zIndexMode:re}=M(),ee=rDe(B,F,$,{nodeOrigin:P,nodeExtent:_,elevateNodesOnSelect:H,checkEquality:!0,zIndexMode:re});Q&&ee?(D(),R({nodes:B,nodesInitialized:ee,fitViewQueued:!1,fitViewOptions:void 0})):R({nodes:B,nodesInitialized:ee})},setEdges:B=>{const{connectionLookup:F,edgeLookup:$}=M();ezt(F,$,B),R({edges:B})},setDefaultNodesAndEdges:(B,F)=>{if(B){const{setNodes:$}=M();$(B),R({hasDefaultNodes:!0})}if(F){const{setEdges:$}=M();$(F),R({hasDefaultEdges:!0})}},updateNodeInternals:B=>{const{triggerNodeChanges:F,nodeLookup:$,parentLookup:P,domNode:H,nodeOrigin:Q,nodeExtent:re,debug:ee,fitViewQueued:ae,zIndexMode:he}=M(),{changes:ve,updatedInternals:de}=vLn(B,$,P,H,Q,re,he);de&&(bLn($,P,{nodeOrigin:Q,nodeExtent:re,zIndexMode:he}),ae?(D(),R({fitViewQueued:!1,fitViewOptions:void 0})):R({}),(ve==null?void 0:ve.length)>0&&(ee&&console.log("React Flow: trigger node changes",ve),F==null||F(ve)))},updateNodePositions:(B,F=!1)=>{const $=[];let P=[];const{nodeLookup:H,triggerNodeChanges:Q,connection:re,updateConnection:ee,onNodesChangeMiddlewareMap:ae}=M();for(const[he,ve]of B){const de=H.get(he),ge=!!(de!=null&&de.expandParent&&(de!=null&&de.parentId)&&(ve!=null&&ve.position)),Y={id:he,type:"position",position:ge?{x:Math.max(0,ve.position.x),y:Math.max(0,ve.position.y)}:ve.position,dragging:F};if(de&&re.inProgress&&re.fromNode.id===de.id){const fe=dR(de,re.fromHandle,Vr.Left,!0);ee({...re,from:fe})}ge&&de.parentId&&$.push({id:he,parentId:de.parentId,rect:{...ve.internals.positionAbsolute,width:ve.measured.width??0,height:ve.measured.height??0}}),P.push(Y)}if($.length>0){const{parentLookup:he,nodeOrigin:ve}=M(),de=EMe($,H,he,ve);P.push(...de)}for(const he of ae.values())P=he(P);Q(P)},triggerNodeChanges:B=>{const{onNodesChange:F,setNodes:$,nodes:P,hasDefaultNodes:H,debug:Q}=M();if(B!=null&&B.length){if(H){const re=mzt(B,P);$(re)}Q&&console.log("React Flow: trigger node changes",B),F==null||F(B)}},triggerEdgeChanges:B=>{const{onEdgesChange:F,setEdges:$,edges:P,hasDefaultEdges:H,debug:Q}=M();if(B!=null&&B.length){if(H){const re=wzt(B,P);$(re)}Q&&console.log("React Flow: trigger edge changes",B),F==null||F(B)}},addSelectedNodes:B=>{const{multiSelectionActive:F,edgeLookup:$,nodeLookup:P,triggerNodeChanges:H,triggerEdgeChanges:Q}=M();if(F){const re=B.map(ee=>G4(ee,!0));H(re);return}H(UM(P,new Set([...B]),!0)),Q(UM($))},addSelectedEdges:B=>{const{multiSelectionActive:F,edgeLookup:$,nodeLookup:P,triggerNodeChanges:H,triggerEdgeChanges:Q}=M();if(F){const re=B.map(ee=>G4(ee,!0));Q(re);return}Q(UM($,new Set([...B]))),H(UM(P,new Set,!0))},unselectNodesAndEdges:({nodes:B,edges:F}={})=>{const{edges:$,nodes:P,nodeLookup:H,triggerNodeChanges:Q,triggerEdgeChanges:re}=M(),ee=B||P,ae=F||$,he=ee.map(de=>{const ge=H.get(de.id);return ge&&(ge.selected=!1),G4(de.id,!1)}),ve=ae.map(de=>G4(de.id,!1));Q(he),re(ve)},setMinZoom:B=>{const{panZoom:F,maxZoom:$}=M();F==null||F.setScaleExtent([B,$]),R({minZoom:B})},setMaxZoom:B=>{const{panZoom:F,minZoom:$}=M();F==null||F.setScaleExtent([$,B]),R({maxZoom:B})},setTranslateExtent:B=>{var F;(F=M().panZoom)==null||F.setTranslateExtent(B),R({translateExtent:B})},resetSelectedElements:()=>{const{edges:B,nodes:F,triggerNodeChanges:$,triggerEdgeChanges:P,elementsSelectable:H}=M();if(!H)return;const Q=F.reduce((ee,ae)=>ae.selected?[...ee,G4(ae.id,!1)]:ee,[]),re=B.reduce((ee,ae)=>ae.selected?[...ee,G4(ae.id,!1)]:ee,[]);$(Q),P(re)},setNodeExtent:B=>{const{nodes:F,nodeLookup:$,parentLookup:P,nodeOrigin:H,elevateNodesOnSelect:Q,nodeExtent:re,zIndexMode:ee}=M();B[0][0]===re[0][0]&&B[0][1]===re[0][1]&&B[1][0]===re[1][0]&&B[1][1]===re[1][1]||(rDe(F,$,P,{nodeOrigin:H,nodeExtent:B,elevateNodesOnSelect:Q,checkEquality:!1,zIndexMode:ee}),R({nodeExtent:B}))},panBy:B=>{const{transform:F,width:$,height:P,panZoom:H,translateExtent:Q}=M();return ELn({delta:B,panZoom:H,transform:F,translateExtent:Q,width:$,height:P})},setCenter:async(B,F,$)=>{const{width:P,height:H,maxZoom:Q,panZoom:re}=M();if(!re)return Promise.resolve(!1);const ee=typeof($==null?void 0:$.zoom)<"u"?$.zoom:Q;return await re.setViewport({x:P/2-B*ee,y:H/2-F*ee,zoom:ee},{duration:$==null?void 0:$.duration,ease:$==null?void 0:$.ease,interpolate:$==null?void 0:$.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{R({connection:{...MHt}})},updateConnection:B=>{R({connection:B})},reset:()=>R({...a9t()})}},Object.is);function zzt({initialNodes:n,initialEdges:i,defaultNodes:a,defaultEdges:c,initialWidth:d,initialHeight:g,initialMinZoom:b,initialMaxZoom:w,initialFitViewOptions:E,fitView:S,nodeOrigin:k,nodeExtent:_,zIndexMode:C,children:R}){const[M]=z.useState(()=>H5n({nodes:n,edges:i,defaultNodes:a,defaultEdges:c,width:d,height:g,fitView:S,minZoom:b,maxZoom:w,fitViewOptions:E,nodeOrigin:k,nodeExtent:_,zIndexMode:C}));return O.jsx(aMn,{value:M,children:O.jsx(IMn,{children:R})})}function z5n({children:n,nodes:i,edges:a,defaultNodes:c,defaultEdges:d,width:g,height:b,fitView:w,fitViewOptions:E,minZoom:S,maxZoom:k,nodeOrigin:_,nodeExtent:C,zIndexMode:R}){return z.useContext(Yse)?O.jsx(O.Fragment,{children:n}):O.jsx(zzt,{initialNodes:i,initialEdges:a,defaultNodes:c,defaultEdges:d,initialWidth:g,initialHeight:b,fitView:w,initialFitViewOptions:E,initialMinZoom:S,initialMaxZoom:k,nodeOrigin:_,nodeExtent:C,zIndexMode:R,children:n})}const G5n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function q5n({nodes:n,edges:i,defaultNodes:a,defaultEdges:c,className:d,nodeTypes:g,edgeTypes:b,onNodeClick:w,onEdgeClick:E,onInit:S,onMove:k,onMoveStart:_,onMoveEnd:C,onConnect:R,onConnectStart:M,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:F,onNodeMouseEnter:$,onNodeMouseMove:P,onNodeMouseLeave:H,onNodeContextMenu:Q,onNodeDoubleClick:re,onNodeDragStart:ee,onNodeDrag:ae,onNodeDragStop:he,onNodesDelete:ve,onEdgesDelete:de,onDelete:ge,onSelectionChange:Y,onSelectionDragStart:fe,onSelectionDrag:De,onSelectionDragStop:Se,onSelectionContextMenu:$e,onSelectionStart:Te,onSelectionEnd:ke,onBeforeDelete:Je,connectionMode:bt,connectionLineType:qe=$x.Bezier,connectionLineStyle:_t,connectionLineComponent:At,connectionLineContainerStyle:ft,deleteKeyCode:Kt="Backspace",selectionKeyCode:kt="Shift",selectionOnDrag:It=!1,selectionMode:Xt=WH.Full,panActivationKeyCode:Bn="Space",multiSelectionKeyCode:tr=YH()?"Meta":"Control",zoomActivationKeyCode:Zn=YH()?"Meta":"Control",snapToGrid:Dr,snapGrid:Ui,onlyRenderVisibleElements:Qr=!1,selectNodesOnDrag:Hi,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:as,nodeOrigin:Jo=gzt,edgesFocusable:xa,edgesReconnectable:xi,elementsSelectable:gb=!0,defaultViewport:Yg=vMn,minZoom:qh=.5,maxZoom:bb=2,translateExtent:Vp=VH,preventScrolling:Rw=!0,nodeExtent:Vh,defaultMarkerColor:Y2="#b1b1b7",zoomOnScroll:Jg=!0,zoomOnPinch:Wp=!0,panOnScroll:Xg=!1,panOnScrollSpeed:kN=.5,panOnScrollMode:xN=Q4.Free,zoomOnDoubleClick:HR=!0,panOnDrag:kA=!0,onPaneClick:mb,onPaneMouseEnter:zR,onPaneMouseMove:GR,onPaneMouseLeave:NN,onPaneScroll:CN,onPaneContextMenu:ho,paneClickDistance:Fc=1,nodeClickDistance:Fl=0,children:Tf,onReconnect:J2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:qm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Wh,onEdgeMouseMove:X2,onEdgeMouseLeave:Vm,reconnectRadius:e9=10,onNodesChange:t9,onEdgesChange:Zz,noDragClassName:Qz="nodrag",noWheelClassName:eG="nowheel",noPanClassName:n9="nopan",fitView:r9,fitViewOptions:i9,connectOnClick:tG,attributionPosition:nG,proOptions:rG,defaultEdgeOptions:iG,elevateNodesOnSelect:qR=!0,elevateEdgesOnSelect:oG=!1,disableKeyboardA11y:o9=!1,autoPanOnConnect:sG,autoPanOnNodeDrag:aG,autoPanSpeed:uG,connectionRadius:cG,isValidConnection:lG,onError:dG,style:fG,id:s9,nodeDragThreshold:hG,connectionDragThreshold:a9,viewport:u9,onViewportChange:pG,width:gG,height:bG,colorMode:mG="light",debug:wG,onScroll:IN,ariaLabelConfig:yG,zIndexMode:c9="basic",...vG},EG){const VR=s9||"1",SG=AMn(mG),TG=z.useCallback(l9=>{l9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),IN==null||IN(l9)},[IN]);return O.jsx("div",{"data-testid":"rf__wrapper",...vG,onScroll:TG,style:{...fG,...G5n},ref:EG,className:Bd(["react-flow",d,SG]),id:s9,role:"application",children:O.jsxs(z5n,{nodes:n,edges:i,width:gG,height:bG,fitView:r9,fitViewOptions:i9,minZoom:qh,maxZoom:bb,nodeOrigin:Jo,nodeExtent:Vh,zIndexMode:c9,children:[O.jsx(U5n,{onInit:S,onNodeClick:w,onEdgeClick:E,onNodeMouseEnter:$,onNodeMouseMove:P,onNodeMouseLeave:H,onNodeContextMenu:Q,onNodeDoubleClick:re,nodeTypes:g,edgeTypes:b,connectionLineType:qe,connectionLineStyle:_t,connectionLineComponent:At,connectionLineContainerStyle:ft,selectionKeyCode:kt,selectionOnDrag:It,selectionMode:Xt,deleteKeyCode:Kt,multiSelectionKeyCode:tr,panActivationKeyCode:Bn,zoomActivationKeyCode:Zn,onlyRenderVisibleElements:Qr,defaultViewport:Yg,translateExtent:Vp,minZoom:qh,maxZoom:bb,preventScrolling:Rw,zoomOnScroll:Jg,zoomOnPinch:Wp,zoomOnDoubleClick:HR,panOnScroll:Xg,panOnScrollSpeed:kN,panOnScrollMode:xN,panOnDrag:kA,onPaneClick:mb,onPaneMouseEnter:zR,onPaneMouseMove:GR,onPaneMouseLeave:NN,onPaneScroll:CN,onPaneContextMenu:ho,paneClickDistance:Fc,nodeClickDistance:Fl,onSelectionContextMenu:$e,onSelectionStart:Te,onSelectionEnd:ke,onReconnect:J2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:qm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Wh,onEdgeMouseMove:X2,onEdgeMouseLeave:Vm,reconnectRadius:e9,defaultMarkerColor:Y2,noDragClassName:Qz,noWheelClassName:eG,noPanClassName:n9,rfId:VR,disableKeyboardA11y:o9,nodeExtent:Vh,viewport:u9,onViewportChange:pG}),O.jsx(TMn,{nodes:n,edges:i,defaultNodes:a,defaultEdges:c,onConnect:R,onConnectStart:M,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:F,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:as,edgesFocusable:xa,edgesReconnectable:xi,elementsSelectable:gb,elevateNodesOnSelect:qR,elevateEdgesOnSelect:oG,minZoom:qh,maxZoom:bb,nodeExtent:Vh,onNodesChange:t9,onEdgesChange:Zz,snapToGrid:Dr,snapGrid:Ui,connectionMode:bt,translateExtent:Vp,connectOnClick:tG,defaultEdgeOptions:iG,fitView:r9,fitViewOptions:i9,onNodesDelete:ve,onEdgesDelete:de,onDelete:ge,onNodeDragStart:ee,onNodeDrag:ae,onNodeDragStop:he,onSelectionDrag:De,onSelectionDragStart:fe,onSelectionDragStop:Se,onMove:k,onMoveStart:_,onMoveEnd:C,noPanClassName:n9,nodeOrigin:Jo,rfId:VR,autoPanOnConnect:sG,autoPanOnNodeDrag:aG,autoPanSpeed:uG,onError:dG,connectionRadius:cG,isValidConnection:lG,selectNodesOnDrag:Hi,nodeDragThreshold:hG,connectionDragThreshold:a9,onBeforeDelete:Je,debug:wG,ariaLabelConfig:yG,zIndexMode:c9}),O.jsx(yMn,{onSelectionChange:Y}),Tf,O.jsx(pMn,{proOptions:rG,position:nG}),O.jsx(hMn,{rfId:VR,disableKeyboardA11y:o9})]})})}var V5n=yzt(q5n);const W5n=n=>{var i;return(i=n.domNode)==null?void 0:i.querySelector(".react-flow__edgelabel-renderer")};function u9t({children:n}){const i=Js(W5n);return i?TR.createPortal(n,i):null}function K5n({dimensions:n,lineWidth:i,variant:a,className:c}){return O.jsx("path",{strokeWidth:i,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`,className:Bd(["react-flow__background-pattern",a,c])})}function Y5n({radius:n,className:i}){return O.jsx("circle",{cx:n,cy:n,r:n,className:Bd(["react-flow__background-pattern","dots",i])})}var fA;(function(n){n.Lines="lines",n.Dots="dots",n.Cross="cross"})(fA||(fA={}));const J5n={[fA.Dots]:1,[fA.Lines]:1,[fA.Cross]:6},X5n=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function Gzt({id:n,variant:i=fA.Dots,gap:a=20,size:c,lineWidth:d=1,offset:g=0,color:b,bgColor:w,style:E,className:S,patternClassName:k}){const _=z.useRef(null),{transform:C,patternId:R}=Js(X5n,Lc),M=c||J5n[i],D=i===fA.Dots,B=i===fA.Cross,F=Array.isArray(a)?a:[a,a],$=[F[0]*C[2]||1,F[1]*C[2]||1],P=M*C[2],H=Array.isArray(g)?g:[g,g],Q=B?[P,P]:$,re=[H[0]*C[2]||1+Q[0]/2,H[1]*C[2]||1+Q[1]/2],ee=`${R}${n||""}`;return O.jsxs("svg",{className:Bd(["react-flow__background",S]),style:{...E,...Jse,"--xy-background-color-props":w,"--xy-background-pattern-color-props":b},ref:_,"data-testid":"rf__background",children:[O.jsx("pattern",{id:ee,x:C[0]%$[0],y:C[1]%$[1],width:$[0],height:$[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${re[0]},-${re[1]})`,children:D?O.jsx(Y5n,{radius:P/2,className:k}):O.jsx(K5n,{dimensions:Q,lineWidth:d,variant:i,className:k})}),O.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${ee})`})]})}Gzt.displayName="Background";const Z5n=z.memo(Gzt);function Q5n(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:O.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function e9n(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:O.jsx("path",{d:"M0 0h32v4.2H0z"})})}function t9n(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:O.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function n9n(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:O.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function r9n(){return O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:O.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function bie({children:n,className:i,...a}){return O.jsx("button",{type:"button",className:Bd(["react-flow__controls-button",i]),...a,children:n})}const i9n=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function qzt({style:n,showZoom:i=!0,showFitView:a=!0,showInteractive:c=!0,fitViewOptions:d,onZoomIn:g,onZoomOut:b,onFitView:w,onInteractiveChange:E,className:S,children:k,position:_="bottom-left",orientation:C="vertical","aria-label":R}){const M=Mc(),{isInteractive:D,minZoomReached:B,maxZoomReached:F,ariaLabelConfig:$}=Js(i9n,Lc),{zoomIn:P,zoomOut:H,fitView:Q}=AR(),re=()=>{P(),g==null||g()},ee=()=>{H(),b==null||b()},ae=()=>{Q(d),w==null||w()},he=()=>{M.setState({nodesDraggable:!D,nodesConnectable:!D,elementsSelectable:!D}),E==null||E(!D)},ve=C==="horizontal"?"horizontal":"vertical";return O.jsxs(fR,{className:Bd(["react-flow__controls",ve,S]),position:_,style:n,"data-testid":"rf__controls","aria-label":R??$["controls.ariaLabel"],children:[i&&O.jsxs(O.Fragment,{children:[O.jsx(bie,{onClick:re,className:"react-flow__controls-zoomin",title:$["controls.zoomIn.ariaLabel"],"aria-label":$["controls.zoomIn.ariaLabel"],disabled:F,children:O.jsx(Q5n,{})}),O.jsx(bie,{onClick:ee,className:"react-flow__controls-zoomout",title:$["controls.zoomOut.ariaLabel"],"aria-label":$["controls.zoomOut.ariaLabel"],disabled:B,children:O.jsx(e9n,{})})]}),a&&O.jsx(bie,{className:"react-flow__controls-fitview",onClick:ae,title:$["controls.fitView.ariaLabel"],"aria-label":$["controls.fitView.ariaLabel"],children:O.jsx(t9n,{})}),c&&O.jsx(bie,{className:"react-flow__controls-interactive",onClick:he,title:$["controls.interactive.ariaLabel"],"aria-label":$["controls.interactive.ariaLabel"],children:D?O.jsx(r9n,{}):O.jsx(n9n,{})}),k]})}qzt.displayName="Controls";const o9n=z.memo(qzt);function s9n({id:n,x:i,y:a,width:c,height:d,style:g,color:b,strokeColor:w,strokeWidth:E,className:S,borderRadius:k,shapeRendering:_,selected:C,onClick:R}){const{background:M,backgroundColor:D}=g||{},B=b||M||D;return O.jsx("rect",{className:Bd(["react-flow__minimap-node",{selected:C},S]),x:i,y:a,rx:k,ry:k,width:c,height:d,style:{fill:B,stroke:w,strokeWidth:E},shapeRendering:_,onClick:R?F=>R(F,n):void 0})}const a9n=z.memo(s9n),u9n=n=>n.nodes.map(i=>i.id),LCe=n=>n instanceof Function?n:()=>n;function c9n({nodeStrokeColor:n,nodeColor:i,nodeClassName:a="",nodeBorderRadius:c=5,nodeStrokeWidth:d,nodeComponent:g=a9n,onClick:b}){const w=Js(u9n,Lc),E=LCe(i),S=LCe(n),k=LCe(a),_=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return O.jsx(O.Fragment,{children:w.map(C=>O.jsx(d9n,{id:C,nodeColorFunc:E,nodeStrokeColorFunc:S,nodeClassNameFunc:k,nodeBorderRadius:c,nodeStrokeWidth:d,NodeComponent:g,onClick:b,shapeRendering:_},C))})}function l9n({id:n,nodeColorFunc:i,nodeStrokeColorFunc:a,nodeClassNameFunc:c,nodeBorderRadius:d,nodeStrokeWidth:g,shapeRendering:b,NodeComponent:w,onClick:E}){const{node:S,x:k,y:_,width:C,height:R}=Js(M=>{const{internals:D}=M.nodeLookup.get(n),B=D.userNode,{x:F,y:$}=D.positionAbsolute,{width:P,height:H}=TA(B);return{node:B,x:F,y:$,width:P,height:H}},Lc);return!S||S.hidden||!HHt(S)?null:O.jsx(w,{x:k,y:_,width:C,height:R,style:S.style,selected:!!S.selected,className:c(S),color:i(S),borderRadius:d,strokeColor:a(S),strokeWidth:g,shapeRendering:b,onClick:E,id:S.id})}const d9n=z.memo(l9n);var f9n=z.memo(c9n);const h9n=200,p9n=150,g9n=n=>!n.hidden,b9n=n=>{const i={x:-n.transform[0]/n.transform[2],y:-n.transform[1]/n.transform[2],width:n.width/n.transform[2],height:n.height/n.transform[2]};return{viewBB:i,boundingRect:n.nodeLookup.size>0?UHt(yz(n.nodeLookup,{filter:g9n}),i):i,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},m9n="react-flow__minimap-desc";function Vzt({style:n,className:i,nodeStrokeColor:a,nodeColor:c,nodeClassName:d="",nodeBorderRadius:g=5,nodeStrokeWidth:b,nodeComponent:w,bgColor:E,maskColor:S,maskStrokeColor:k,maskStrokeWidth:_,position:C="bottom-right",onClick:R,onNodeClick:M,pannable:D=!1,zoomable:B=!1,ariaLabel:F,inversePan:$,zoomStep:P=1,offsetScale:H=5}){const Q=Mc(),re=z.useRef(null),{boundingRect:ee,viewBB:ae,rfId:he,panZoom:ve,translateExtent:de,flowWidth:ge,flowHeight:Y,ariaLabelConfig:fe}=Js(b9n,Lc),De=(n==null?void 0:n.width)??h9n,Se=(n==null?void 0:n.height)??p9n,$e=ee.width/De,Te=ee.height/Se,ke=Math.max($e,Te),Je=ke*De,bt=ke*Se,qe=H*ke,_t=ee.x-(Je-ee.width)/2-qe,At=ee.y-(bt-ee.height)/2-qe,ft=Je+qe*2,Kt=bt+qe*2,kt=`${m9n}-${he}`,It=z.useRef(0),Xt=z.useRef();It.current=ke,z.useEffect(()=>{if(re.current&&ve)return Xt.current=ILn({domNode:re.current,panZoom:ve,getTransform:()=>Q.getState().transform,getViewScale:()=>It.current}),()=>{var Dr;(Dr=Xt.current)==null||Dr.destroy()}},[ve]),z.useEffect(()=>{var Dr;(Dr=Xt.current)==null||Dr.update({translateExtent:de,width:ge,height:Y,inversePan:$,pannable:D,zoomStep:P,zoomable:B})},[D,B,$,P,de,ge,Y]);const Bn=R?Dr=>{var Hi;const[Ui,Qr]=((Hi=Xt.current)==null?void 0:Hi.pointer(Dr))||[0,0];R(Dr,{x:Ui,y:Qr})}:void 0,tr=M?z.useCallback((Dr,Ui)=>{const Qr=Q.getState().nodeLookup.get(Ui).internals.userNode;M(Dr,Qr)},[]):void 0,Zn=F??fe["minimap.ariaLabel"];return O.jsx(fR,{position:C,style:{...n,"--xy-minimap-background-color-props":typeof E=="string"?E:void 0,"--xy-minimap-mask-background-color-props":typeof S=="string"?S:void 0,"--xy-minimap-mask-stroke-color-props":typeof k=="string"?k:void 0,"--xy-minimap-mask-stroke-width-props":typeof _=="number"?_*ke:void 0,"--xy-minimap-node-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-node-stroke-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-width-props":typeof b=="number"?b:void 0},className:Bd(["react-flow__minimap",i]),"data-testid":"rf__minimap",children:O.jsxs("svg",{width:De,height:Se,viewBox:`${_t} ${At} ${ft} ${Kt}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":kt,ref:re,onClick:Bn,children:[Zn&&O.jsx("title",{id:kt,children:Zn}),O.jsx(f9n,{onClick:tr,nodeColor:c,nodeStrokeColor:a,nodeBorderRadius:g,nodeClassName:d,nodeStrokeWidth:b,nodeComponent:w}),O.jsx("path",{className:"react-flow__minimap-mask",d:`M${_t-qe},${At-qe}h${ft+qe*2}v${Kt+qe*2}h${-ft-qe*2}z - M${ae.x},${ae.y}h${ae.width}v${ae.height}h${-ae.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Vzt.displayName="MiniMap";const w9n=z.memo(Vzt),y9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,v9n={[T5.Line]:"right",[T5.Handle]:"bottom-right"};function E9n({nodeId:n,position:i,variant:a=T5.Handle,className:c,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:k=Number.MAX_VALUE,keepAspectRatio:_=!1,resizeDirection:C,autoScale:R=!0,shouldResize:M,onResizeStart:D,onResize:B,onResizeEnd:F}){const $=Tzt(),P=typeof n=="string"?n:$,H=Mc(),Q=z.useRef(null),re=a===T5.Handle,ee=Js(z.useCallback(y9n(re&&R),[re,R]),Lc),ae=z.useRef(null),he=i??v9n[a];z.useEffect(()=>{if(!(!Q.current||!P))return ae.current||(ae.current=GLn({domNode:Q.current,nodeId:P,getStoreItems:()=>{const{nodeLookup:de,transform:ge,snapGrid:Y,snapToGrid:fe,nodeOrigin:De,domNode:Se}=H.getState();return{nodeLookup:de,transform:ge,snapGrid:Y,snapToGrid:fe,nodeOrigin:De,paneDomNode:Se}},onChange:(de,ge)=>{const{triggerNodeChanges:Y,nodeLookup:fe,parentLookup:De,nodeOrigin:Se}=H.getState(),$e=[],Te={x:de.x,y:de.y},ke=fe.get(P);if(ke&&ke.expandParent&&ke.parentId){const Je=ke.origin??Se,bt=de.width??ke.measured.width??0,qe=de.height??ke.measured.height??0,_t={id:ke.id,parentId:ke.parentId,rect:{width:bt,height:qe,...zHt({x:de.x??ke.position.x,y:de.y??ke.position.y},{width:bt,height:qe},ke.parentId,fe,Je)}},At=EMe([_t],fe,De,Se);$e.push(...At),Te.x=de.x?Math.max(Je[0]*bt,de.x):void 0,Te.y=de.y?Math.max(Je[1]*qe,de.y):void 0}if(Te.x!==void 0&&Te.y!==void 0){const Je={id:P,type:"position",position:{...Te}};$e.push(Je)}if(de.width!==void 0&&de.height!==void 0){const bt={id:P,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:de.width,height:de.height}};$e.push(bt)}for(const Je of ge){const bt={...Je,type:"position"};$e.push(bt)}Y($e)},onEnd:({width:de,height:ge})=>{const Y={id:P,type:"dimensions",resizing:!1,dimensions:{width:de,height:ge}};H.getState().triggerNodeChanges([Y])}})),ae.current.update({controlPosition:he,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:k},keepAspectRatio:_,resizeDirection:C,onResizeStart:D,onResize:B,onResizeEnd:F,shouldResize:M}),()=>{var de;(de=ae.current)==null||de.destroy()}},[he,w,E,S,k,_,D,B,F,M]);const ve=he.split("-");return O.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...ve,a,c]),ref:Q,style:{...d,scale:ee,...b&&{[re?"backgroundColor":"borderColor"]:b}},children:g})}z.memo(E9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Wzt=(...n)=>n.filter((i,a,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===a).join(" ").trim();/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const S9n=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const T9n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,a,c)=>c?c.toUpperCase():a.toLowerCase());/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const c9t=n=>{const i=T9n(n);return i.charAt(0).toUpperCase()+i.slice(1)};/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var A9n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _9n=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const k9n=z.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:c,className:d="",children:g,iconNode:b,...w},E)=>z.createElement("svg",{ref:E,...A9n,width:i,height:i,stroke:n,strokeWidth:c?Number(a)*24/Number(i):a,className:Wzt("lucide",d),...!g&&!_9n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,k])=>z.createElement(S,k)),...Array.isArray(g)?g:[g]]));/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Li=(n,i)=>{const a=z.forwardRef(({className:c,...d},g)=>z.createElement(k9n,{ref:g,iconNode:i,className:Wzt(`lucide-${S9n(c9t(n))}`,`lucide-${n}`,c),...d}));return a.displayName=c9t(n),a};/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const x9n=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],N9n=Li("align-end-horizontal",x9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C9n=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],I9n=Li("align-end-vertical",C9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const R9n=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],O9n=Li("align-start-horizontal",R9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D9n=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],L9n=Li("align-start-vertical",D9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const M9n=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],P9n=Li("arrow-down",M9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j9n=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],F9n=Li("arrow-up-down",j9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $9n=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],B9n=Li("arrow-up",$9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const U9n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],_R=Li("ban",U9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const H9n=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1",key:"11gii7"}],["path",{d:"M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z",key:"bju7h4"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],z9n=Li("brush-cleaning",H9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G9n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L5=Li("check",G9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const q9n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xse=Li("chevron-down",q9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const V9n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],W9n=Li("chevron-right",V9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K9n=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Y9n=Li("chevron-up",K9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const J9n=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],X9n=Li("chevrons-up-down",J9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Z9n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Pv=Li("circle-alert",Z9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Q9n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Kzt=Li("circle-check-big",Q9n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const e8n=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t8n=Li("circle-play",e8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const n8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r8n=Li("circle",n8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const i8n=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],o8n=Li("clipboard",i8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const s8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],TMe=Li("clock",s8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const a8n=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],u8n=Li("copy-plus",a8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const c8n=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],AMe=Li("copy",c8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l8n=[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Yzt=Li("diamond-plus",l8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const d8n=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],l9t=Li("download",d8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const f8n=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],h8n=Li("external-link",f8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const p8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],g8n=Li("file-code",p8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const b8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],m8n=Li("file-down",b8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const w8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],y8n=Li("file-up",w8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const v8n=[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]],E8n=Li("folder-open-dot",v8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const S8n=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Jzt=Li("git-branch",S8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const T8n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],A8n=Li("history",T8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _8n=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],Xzt=Li("hourglass",_8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const k8n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],x8n=Li("layers",k8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const N8n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],XH=Li("loader-circle",N8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C8n=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],I8n=Li("menu",C8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const R8n=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],O8n=Li("mouse-pointer-click",R8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D8n=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Zse=Li("play",D8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const L8n=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qse=Li("plus",L8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const M8n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Zzt=Li("rotate-ccw",M8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P8n=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Qzt=Li("save",P8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j8n=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],F8n=Li("scissors",j8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $8n=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],eGt=Li("search",$8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const B8n=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],U8n=Li("settings",B8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const H8n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],tGt=Li("square",H8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const z8n=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],d9t=Li("toggle-left",z8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G8n=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],M5=Li("trash-2",G8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const q8n=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],f9t=Li("triangle-alert",q8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const V8n=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],W8n=Li("unplug",V8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K8n=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Y8n=Li("upload",K8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const J8n=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],nGt=Li("variable",J8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const X8n=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Z8n=Li("wifi",X8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Q8n=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],eae=Li("x",Q8n);/** - * @license lucide-react v0.577.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ePn=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],rGt=Li("zap",ePn),tPn=z.createContext(null),MCe={didCatch:!1,error:null};let nPn=class extends z.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=MCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var c,d;const{error:a}=this.state;a!==null&&((d=(c=this.props).onReset)==null||d.call(c,{args:i,reason:"imperative-api"}),this.setState(MCe))}componentDidCatch(i,a){var c,d;(d=(c=this.props).onError)==null||d.call(c,i,a)}componentDidUpdate(i,a){var g,b;const{didCatch:c}=this.state,{resetKeys:d}=this.props;c&&a.error!==null&&rPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(MCe))}render(){const{children:i,fallbackRender:a,FallbackComponent:c,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof a=="function")w=a(E);else if(c)w=z.createElement(c,E);else if(d!==void 0)w=d;else throw b}return z.createElement(tPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function rPn(n=[],i=[]){return n.length!==i.length||n.some((a,c)=>!Object.is(a,i[c]))}function iPn(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}const oPn=n=>{switch(n){case"success":return uPn;case"info":return lPn;case"warning":return cPn;case"error":return dPn;default:return null}},sPn=Array(12).fill(0),aPn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},sPn.map((a,c)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),uPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),cPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),lPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),fPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Hn.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Hn.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),hPn=()=>{const[n,i]=Hn.useState(document.hidden);return Hn.useEffect(()=>{const a=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),n};let sDe=1;class pPn{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const a=this.subscribers.indexOf(i);this.subscribers.splice(a,1)}),this.publish=i=>{this.subscribers.forEach(a=>a(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var a;const{message:c,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((a=i.id)==null?void 0:a.length)>0?i.id:sDe++,b=this.toasts.find(E=>E.id===g),w=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(g)&&this.dismissedToasts.delete(g),b?this.toasts=this.toasts.map(E=>E.id===g?(this.publish({...E,...i,id:g,title:c}),{...E,...i,id:g,dismissible:w,title:c}):E):this.addToast({title:c,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:i,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(c=>c({id:a.id,dismiss:!0}))}),i),this.message=(i,a)=>this.create({...a,message:i}),this.error=(i,a)=>this.create({...a,message:i,type:"error"}),this.success=(i,a)=>this.create({...a,type:"success",message:i}),this.info=(i,a)=>this.create({...a,type:"info",message:i}),this.warning=(i,a)=>this.create({...a,type:"warning",message:i}),this.loading=(i,a)=>this.create({...a,type:"loading",message:i}),this.promise=(i,a)=>{if(!a)return;let c;a.loading!==void 0&&(c=this.create({...a,promise:i,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const d=Promise.resolve(i instanceof Function?i():i);let g=c!==void 0,b;const w=d.then(async S=>{if(b=["resolve",S],Hn.isValidElement(S))g=!1,this.create({id:c,type:"default",message:S});else if(bPn(S)&&!S.ok){g=!1;const _=typeof a.error=="function"?await a.error(`HTTP error! status: ${S.status}`):a.error,C=typeof a.description=="function"?await a.description(`HTTP error! status: ${S.status}`):a.description,M=typeof _=="object"&&!Hn.isValidElement(_)?_:{message:_};this.create({id:c,type:"error",description:C,...M})}else if(S instanceof Error){g=!1;const _=typeof a.error=="function"?await a.error(S):a.error,C=typeof a.description=="function"?await a.description(S):a.description,M=typeof _=="object"&&!Hn.isValidElement(_)?_:{message:_};this.create({id:c,type:"error",description:C,...M})}else if(a.success!==void 0){g=!1;const _=typeof a.success=="function"?await a.success(S):a.success,C=typeof a.description=="function"?await a.description(S):a.description,M=typeof _=="object"&&!Hn.isValidElement(_)?_:{message:_};this.create({id:c,type:"success",description:C,...M})}}).catch(async S=>{if(b=["reject",S],a.error!==void 0){g=!1;const k=typeof a.error=="function"?await a.error(S):a.error,_=typeof a.description=="function"?await a.description(S):a.description,R=typeof k=="object"&&!Hn.isValidElement(k)?k:{message:k};this.create({id:c,type:"error",description:_,...R})}}).finally(()=>{g&&(this.dismiss(c),c=void 0),a.finally==null||a.finally.call(a)}),E=()=>new Promise((S,k)=>w.then(()=>b[0]==="reject"?k(b[1]):S(b[1])).catch(k));return typeof c!="string"&&typeof c!="number"?{unwrap:E}:Object.assign(c,{unwrap:E})},this.custom=(i,a)=>{const c=(a==null?void 0:a.id)||sDe++;return this.create({jsx:i(c),id:c,...a}),c},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nb=new pPn,gPn=(n,i)=>{const a=(i==null?void 0:i.id)||sDe++;return nb.addToast({title:n,...i,id:a}),a},bPn=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",mPn=gPn,wPn=()=>nb.toasts,yPn=()=>nb.getActiveToasts(),N2=Object.assign(mPn,{success:nb.success,info:nb.info,warning:nb.warning,error:nb.error,custom:nb.custom,message:nb.message,promise:nb.promise,dismiss:nb.dismiss,loading:nb.loading},{getHistory:wPn,getToasts:yPn});iPn("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function mie(n){return n.label!==void 0}const vPn=3,EPn="24px",SPn="16px",h9t=4e3,TPn=356,APn=14,_Pn=45,kPn=200;function _2(...n){return n.filter(Boolean).join(" ")}function xPn(n){const[i,a]=n.split("-"),c=[];return i&&c.push(i),a&&c.push(a),c}const NPn=n=>{var i,a,c,d,g,b,w,E,S;const{invert:k,toast:_,unstyled:C,interacting:R,setHeights:M,visibleToasts:D,heights:B,index:F,toasts:$,expanded:P,removeToast:H,defaultRichColors:Q,closeButton:re,style:ee,cancelButtonStyle:ae,actionButtonStyle:he,className:ve="",descriptionClassName:de="",duration:ge,position:Y,gap:fe,expandByDefault:De,classNames:Se,icons:$e,closeButtonAriaLabel:Te="Close toast"}=n,[ke,Je]=Hn.useState(null),[bt,qe]=Hn.useState(null),[_t,At]=Hn.useState(!1),[ft,Kt]=Hn.useState(!1),[kt,It]=Hn.useState(!1),[Xt,Bn]=Hn.useState(!1),[tr,Zn]=Hn.useState(!1),[Dr,Ui]=Hn.useState(0),[Qr,Hi]=Hn.useState(0),ai=Hn.useRef(_.duration||ge||h9t),jc=Hn.useRef(null),Xs=Hn.useRef(null),as=F===0,Jo=F+1<=D,xa=_.type,xi=_.dismissible!==!1,gb=_.className||"",Yg=_.descriptionClassName||"",qh=Hn.useMemo(()=>B.findIndex(ho=>ho.toastId===_.id)||0,[B,_.id]),bb=Hn.useMemo(()=>{var ho;return(ho=_.closeButton)!=null?ho:re},[_.closeButton,re]),Vp=Hn.useMemo(()=>_.duration||ge||h9t,[_.duration,ge]),Rw=Hn.useRef(0),Vh=Hn.useRef(0),Y2=Hn.useRef(0),Jg=Hn.useRef(null),[Wp,Xg]=Y.split("-"),kN=Hn.useMemo(()=>B.reduce((ho,Fc,Fl)=>Fl>=qh?ho:ho+Fc.height,0),[B,qh]),xN=hPn(),HR=_.invert||k,kA=xa==="loading";Vh.current=Hn.useMemo(()=>qh*fe+kN,[qh,kN]),Hn.useEffect(()=>{ai.current=Vp},[Vp]),Hn.useEffect(()=>{At(!0)},[]),Hn.useEffect(()=>{const ho=Xs.current;if(ho){const Fc=ho.getBoundingClientRect().height;return Hi(Fc),M(Fl=>[{toastId:_.id,height:Fc,position:_.position},...Fl]),()=>M(Fl=>Fl.filter(Tf=>Tf.toastId!==_.id))}},[M,_.id]),Hn.useLayoutEffect(()=>{if(!_t)return;const ho=Xs.current,Fc=ho.style.height;ho.style.height="auto";const Fl=ho.getBoundingClientRect().height;ho.style.height=Fc,Hi(Fl),M(Tf=>Tf.find(pl=>pl.toastId===_.id)?Tf.map(pl=>pl.toastId===_.id?{...pl,height:Fl}:pl):[{toastId:_.id,height:Fl,position:_.position},...Tf])},[_t,_.title,_.description,M,_.id,_.jsx,_.action,_.cancel]);const mb=Hn.useCallback(()=>{Kt(!0),Ui(Vh.current),M(ho=>ho.filter(Fc=>Fc.toastId!==_.id)),setTimeout(()=>{H(_)},kPn)},[_,H,M,Vh]);Hn.useEffect(()=>{if(_.promise&&xa==="loading"||_.duration===1/0||_.type==="loading")return;let ho;return P||R||xN?(()=>{if(Y2.current{ai.current!==1/0&&(Rw.current=new Date().getTime(),ho=setTimeout(()=>{_.onAutoClose==null||_.onAutoClose.call(_,_),mb()},ai.current))})(),()=>clearTimeout(ho)},[P,R,_,xa,xN,mb]),Hn.useEffect(()=>{_.delete&&(mb(),_.onDismiss==null||_.onDismiss.call(_,_))},[mb,_.delete]);function zR(){var ho;if($e!=null&&$e.loading){var Fc;return Hn.createElement("div",{className:_2(Se==null?void 0:Se.loader,_==null||(Fc=_.classNames)==null?void 0:Fc.loader,"sonner-loader"),"data-visible":xa==="loading"},$e.loading)}return Hn.createElement(aPn,{className:_2(Se==null?void 0:Se.loader,_==null||(ho=_.classNames)==null?void 0:ho.loader),visible:xa==="loading"})}const GR=_.icon||($e==null?void 0:$e[xa])||oPn(xa);var NN,CN;return Hn.createElement("li",{tabIndex:0,ref:Xs,className:_2(ve,gb,Se==null?void 0:Se.toast,_==null||(i=_.classNames)==null?void 0:i.toast,Se==null?void 0:Se.default,Se==null?void 0:Se[xa],_==null||(a=_.classNames)==null?void 0:a[xa]),"data-sonner-toast":"","data-rich-colors":(NN=_.richColors)!=null?NN:Q,"data-styled":!(_.jsx||_.unstyled||C),"data-mounted":_t,"data-promise":!!_.promise,"data-swiped":tr,"data-removed":ft,"data-visible":Jo,"data-y-position":Wp,"data-x-position":Xg,"data-index":F,"data-front":as,"data-swiping":kt,"data-dismissible":xi,"data-type":xa,"data-invert":HR,"data-swipe-out":Xt,"data-swipe-direction":bt,"data-expanded":!!(P||De&&_t),"data-testid":_.testId,style:{"--index":F,"--toasts-before":F,"--z-index":$.length-F,"--offset":`${ft?Dr:Vh.current}px`,"--initial-height":De?"auto":`${Qr}px`,...ee,..._.style},onDragEnd:()=>{It(!1),Je(null),Jg.current=null},onPointerDown:ho=>{ho.button!==2&&(kA||!xi||(jc.current=new Date,Ui(Vh.current),ho.target.setPointerCapture(ho.pointerId),ho.target.tagName!=="BUTTON"&&(It(!0),Jg.current={x:ho.clientX,y:ho.clientY})))},onPointerUp:()=>{var ho,Fc,Fl;if(Xt||!xi)return;Jg.current=null;const Tf=Number(((ho=Xs.current)==null?void 0:ho.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),J2=Number(((Fc=Xs.current)==null?void 0:Fc.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pl=new Date().getTime()-((Fl=jc.current)==null?void 0:Fl.getTime()),sh=ke==="x"?Tf:J2,qm=Math.abs(sh)/pl;if(Math.abs(sh)>=_Pn||qm>.11){Ui(Vh.current),_.onDismiss==null||_.onDismiss.call(_,_),qe(ke==="x"?Tf>0?"right":"left":J2>0?"down":"up"),mb(),Bn(!0);return}else{var ah,Wh;(ah=Xs.current)==null||ah.style.setProperty("--swipe-amount-x","0px"),(Wh=Xs.current)==null||Wh.style.setProperty("--swipe-amount-y","0px")}Zn(!1),It(!1),Je(null)},onPointerMove:ho=>{var Fc,Fl,Tf;if(!Jg.current||!xi||((Fc=window.getSelection())==null?void 0:Fc.toString().length)>0)return;const pl=ho.clientY-Jg.current.y,sh=ho.clientX-Jg.current.x;var qm;const ah=(qm=n.swipeDirections)!=null?qm:xPn(Y);!ke&&(Math.abs(sh)>1||Math.abs(pl)>1)&&Je(Math.abs(sh)>Math.abs(pl)?"x":"y");let Wh={x:0,y:0};const X2=Vm=>1/(1.5+Math.abs(Vm)/20);if(ke==="y"){if(ah.includes("top")||ah.includes("bottom"))if(ah.includes("top")&&pl<0||ah.includes("bottom")&&pl>0)Wh.y=pl;else{const Vm=pl*X2(pl);Wh.y=Math.abs(Vm)0)Wh.x=sh;else{const Vm=sh*X2(sh);Wh.x=Math.abs(Vm)0||Math.abs(Wh.y)>0)&&Zn(!0),(Fl=Xs.current)==null||Fl.style.setProperty("--swipe-amount-x",`${Wh.x}px`),(Tf=Xs.current)==null||Tf.style.setProperty("--swipe-amount-y",`${Wh.y}px`)}},bb&&!_.jsx&&xa!=="loading"?Hn.createElement("button",{"aria-label":Te,"data-disabled":kA,"data-close-button":!0,onClick:kA||!xi?()=>{}:()=>{mb(),_.onDismiss==null||_.onDismiss.call(_,_)},className:_2(Se==null?void 0:Se.closeButton,_==null||(c=_.classNames)==null?void 0:c.closeButton)},(CN=$e==null?void 0:$e.close)!=null?CN:fPn):null,(xa||_.icon||_.promise)&&_.icon!==null&&(($e==null?void 0:$e[xa])!==null||_.icon)?Hn.createElement("div",{"data-icon":"",className:_2(Se==null?void 0:Se.icon,_==null||(d=_.classNames)==null?void 0:d.icon)},_.promise||_.type==="loading"&&!_.icon?_.icon||zR():null,_.type!=="loading"?GR:null):null,Hn.createElement("div",{"data-content":"",className:_2(Se==null?void 0:Se.content,_==null||(g=_.classNames)==null?void 0:g.content)},Hn.createElement("div",{"data-title":"",className:_2(Se==null?void 0:Se.title,_==null||(b=_.classNames)==null?void 0:b.title)},_.jsx?_.jsx:typeof _.title=="function"?_.title():_.title),_.description?Hn.createElement("div",{"data-description":"",className:_2(de,Yg,Se==null?void 0:Se.description,_==null||(w=_.classNames)==null?void 0:w.description)},typeof _.description=="function"?_.description():_.description):null),Hn.isValidElement(_.cancel)?_.cancel:_.cancel&&mie(_.cancel)?Hn.createElement("button",{"data-button":!0,"data-cancel":!0,style:_.cancelButtonStyle||ae,onClick:ho=>{mie(_.cancel)&&xi&&(_.cancel.onClick==null||_.cancel.onClick.call(_.cancel,ho),mb())},className:_2(Se==null?void 0:Se.cancelButton,_==null||(E=_.classNames)==null?void 0:E.cancelButton)},_.cancel.label):null,Hn.isValidElement(_.action)?_.action:_.action&&mie(_.action)?Hn.createElement("button",{"data-button":!0,"data-action":!0,style:_.actionButtonStyle||he,onClick:ho=>{mie(_.action)&&(_.action.onClick==null||_.action.onClick.call(_.action,ho),!ho.defaultPrevented&&mb())},className:_2(Se==null?void 0:Se.actionButton,_==null||(S=_.classNames)==null?void 0:S.actionButton)},_.action.label):null)};function p9t(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function CPn(n,i){const a={};return[n,i].forEach((c,d)=>{const g=d===1,b=g?"--mobile-offset":"--offset",w=g?SPn:EPn;function E(S){["top","right","bottom","left"].forEach(k=>{a[`${b}-${k}`]=typeof S=="number"?`${S}px`:S})}typeof c=="number"||typeof c=="string"?E(c):typeof c=="object"?["top","right","bottom","left"].forEach(S=>{c[S]===void 0?a[`${b}-${S}`]=w:a[`${b}-${S}`]=typeof c[S]=="number"?`${c[S]}px`:c[S]}):E(w)}),a}const IPn=Hn.forwardRef(function(i,a){const{id:c,invert:d,position:g="bottom-right",hotkey:b=["altKey","KeyT"],expand:w,closeButton:E,className:S,offset:k,mobileOffset:_,theme:C="light",richColors:R,duration:M,style:D,visibleToasts:B=vPn,toastOptions:F,dir:$=p9t(),gap:P=APn,icons:H,containerAriaLabel:Q="Notifications"}=i,[re,ee]=Hn.useState([]),ae=Hn.useMemo(()=>c?re.filter(_t=>_t.toasterId===c):re.filter(_t=>!_t.toasterId),[re,c]),he=Hn.useMemo(()=>Array.from(new Set([g].concat(ae.filter(_t=>_t.position).map(_t=>_t.position)))),[ae,g]),[ve,de]=Hn.useState([]),[ge,Y]=Hn.useState(!1),[fe,De]=Hn.useState(!1),[Se,$e]=Hn.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Te=Hn.useRef(null),ke=b.join("+").replace(/Key/g,"").replace(/Digit/g,""),Je=Hn.useRef(null),bt=Hn.useRef(!1),qe=Hn.useCallback(_t=>{ee(At=>{var ft;return(ft=At.find(Kt=>Kt.id===_t.id))!=null&&ft.delete||nb.dismiss(_t.id),At.filter(({id:Kt})=>Kt!==_t.id)})},[]);return Hn.useEffect(()=>nb.subscribe(_t=>{if(_t.dismiss){requestAnimationFrame(()=>{ee(At=>At.map(ft=>ft.id===_t.id?{...ft,delete:!0}:ft))});return}setTimeout(()=>{VUt.flushSync(()=>{ee(At=>{const ft=At.findIndex(Kt=>Kt.id===_t.id);return ft!==-1?[...At.slice(0,ft),{...At[ft],..._t},...At.slice(ft+1)]:[_t,...At]})})})}),[re]),Hn.useEffect(()=>{if(C!=="system"){$e(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$e("dark"):$e("light")),typeof window>"u")return;const _t=window.matchMedia("(prefers-color-scheme: dark)");try{_t.addEventListener("change",({matches:At})=>{$e(At?"dark":"light")})}catch{_t.addListener(({matches:ft})=>{try{$e(ft?"dark":"light")}catch(Kt){console.error(Kt)}})}},[C]),Hn.useEffect(()=>{re.length<=1&&Y(!1)},[re]),Hn.useEffect(()=>{const _t=At=>{var ft;if(b.every(It=>At[It]||At.code===It)){var kt;Y(!0),(kt=Te.current)==null||kt.focus()}At.code==="Escape"&&(document.activeElement===Te.current||(ft=Te.current)!=null&&ft.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",_t),()=>document.removeEventListener("keydown",_t)},[b]),Hn.useEffect(()=>{if(Te.current)return()=>{Je.current&&(Je.current.focus({preventScroll:!0}),Je.current=null,bt.current=!1)}},[Te.current]),Hn.createElement("section",{ref:a,"aria-label":`${Q} ${ke}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},he.map((_t,At)=>{var ft;const[Kt,kt]=_t.split("-");return ae.length?Hn.createElement("ol",{key:_t,dir:$==="auto"?p9t():$,tabIndex:-1,ref:Te,className:S,"data-sonner-toaster":!0,"data-sonner-theme":Se,"data-y-position":Kt,"data-x-position":kt,style:{"--front-toast-height":`${((ft=ve[0])==null?void 0:ft.height)||0}px`,"--width":`${TPn}px`,"--gap":`${P}px`,...D,...CPn(k,_)},onBlur:It=>{bt.current&&!It.currentTarget.contains(It.relatedTarget)&&(bt.current=!1,Je.current&&(Je.current.focus({preventScroll:!0}),Je.current=null))},onFocus:It=>{It.target instanceof HTMLElement&&It.target.dataset.dismissible==="false"||bt.current||(bt.current=!0,Je.current=It.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{fe||Y(!1)},onDragEnd:()=>Y(!1),onPointerDown:It=>{It.target instanceof HTMLElement&&It.target.dataset.dismissible==="false"||De(!0)},onPointerUp:()=>De(!1)},ae.filter(It=>!It.position&&At===0||It.position===_t).map((It,Xt)=>{var Bn,tr;return Hn.createElement(NPn,{key:It.id,icons:H,index:Xt,toast:It,defaultRichColors:R,duration:(Bn=F==null?void 0:F.duration)!=null?Bn:M,className:F==null?void 0:F.className,descriptionClassName:F==null?void 0:F.descriptionClassName,invert:d,visibleToasts:B,closeButton:(tr=F==null?void 0:F.closeButton)!=null?tr:E,interacting:fe,position:_t,style:F==null?void 0:F.style,unstyled:F==null?void 0:F.unstyled,classNames:F==null?void 0:F.classNames,cancelButtonStyle:F==null?void 0:F.cancelButtonStyle,actionButtonStyle:F==null?void 0:F.actionButtonStyle,closeButtonAriaLabel:F==null?void 0:F.closeButtonAriaLabel,removeToast:qe,toasts:ae.filter(Zn=>Zn.position==It.position),heights:ve.filter(Zn=>Zn.position==It.position),setHeights:de,expandByDefault:w,gap:P,expanded:ge,swipeDirections:i.swipeDirections})})):null}))}),RPn=typeof window<"u"&&(localStorage.getItem("cafe_debug")==="true"||window.location.search.includes("debug=true")),bM={info:"color: #2196F3; font-weight: bold",warn:"color: #FF9800; font-weight: bold",error:"color: #F44336; font-weight: bold",success:"color: #4CAF50; font-weight: bold",debug:"color: #9C27B0; font-weight: bold"};class OPn{constructor(i=RPn){Xf(this,"enabled");Xf(this,"prefix");this.enabled=i,this.prefix="[C.A.F.E.]"}setEnabled(i){this.enabled=i,typeof window<"u"&&localStorage.setItem("cafe_debug",i.toString())}isEnabled(){return this.enabled}info(i,...a){this.enabled&&console.log(`%c${this.prefix} ${i}`,bM.info,...a)}warn(i,...a){this.enabled&&console.warn(`%c${this.prefix} ${i}`,bM.warn,...a)}error(i,...a){this.enabled&&console.error(`%c${this.prefix} ${i}`,bM.error,...a)}success(i,...a){this.enabled&&console.log(`%c${this.prefix} ${i}`,bM.success,...a)}debug(i,...a){this.enabled&&console.log(`%c${this.prefix} DEBUG: ${i}`,bM.debug,...a)}object(i,a){this.enabled&&(console.group(`%c${this.prefix} ${i}`,bM.info),console.log(a),console.groupEnd())}time(i){this.enabled&&console.time(`${this.prefix} ${i}`)}timeEnd(i){this.enabled&&console.timeEnd(`${this.prefix} ${i}`)}}const yf=new OPn;typeof window<"u"&&(window.cafeLogger=yf);const DPn=1,Voe=2,PCe=3,LPn=4,MPn=5;function PPn(n){return{type:"auth",access_token:n}}function jPn(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function FPn(){return{type:"get_states"}}function $Pn(){return{type:"get_services"}}function BPn(n){const i={type:"subscribe_events"};return n&&(i.event_type=n),i}function g9t(n){return{type:"unsubscribe_events",subscription:n}}function UPn(){return{type:"ping"}}function HPn(n,i){return{type:"result",success:!1,error:{code:n,message:i}}}const zPn=(n,i,a=!1)=>{let c;return function(...d){const g=this,b=()=>{c=void 0,a||n.apply(g,d)},w=a&&!c;clearTimeout(c),c=setTimeout(b,i),w&&n.apply(g,d)}},iGt=(n,i,a,c)=>{const[d,g,b]=n.split(".",3);return Number(d)>i||Number(d)===i&&(c===void 0?Number(g)>=a:Number(g)>a)||c!==void 0&&Number(d)===i&&Number(g)===a&&Number(b)>=c},GPn="auth_invalid",qPn="auth_ok";function VPn(n){if(!n.auth)throw LPn;const i=n.auth;let a=i.expired?i.refreshAccessToken().then(()=>{a=void 0},()=>{a=void 0}):void 0;const c=i.wsUrl;function d(g,b,w){const E=new WebSocket(c);let S=!1;const k=()=>{if(E.removeEventListener("close",k),S){w(Voe);return}if(g===0){w(DPn);return}const R=g===-1?-1:g-1;setTimeout(()=>d(R,b,w),1e3)},_=async R=>{try{i.expired&&await(a||i.refreshAccessToken()),E.send(JSON.stringify(PPn(i.accessToken)))}catch(M){S=M===Voe,E.close()}},C=async R=>{const M=JSON.parse(R.data);switch(M.type){case GPn:S=!0,E.close();break;case qPn:E.removeEventListener("open",_),E.removeEventListener("message",C),E.removeEventListener("close",k),E.removeEventListener("error",k),E.haVersion=M.ha_version,iGt(E.haVersion,2022,9)&&E.send(JSON.stringify(jPn())),b(E);break}};E.addEventListener("open",_),E.addEventListener("message",C),E.addEventListener("close",k),E.addEventListener("error",k)}return new Promise((g,b)=>d(n.setupRetry,g,b))}class WPn{constructor(i,a){this._handleMessage=c=>{let d=JSON.parse(c.data);Array.isArray(d)||(d=[d]),d.forEach(g=>{const b=this.commands.get(g.id);switch(g.type){case"event":b?b.callback(g.event):(console.warn(`Received event for unknown subscription ${g.id}. Unsubscribing.`),this.sendMessagePromise(g9t(g.id)).catch(w=>{}));break;case"result":b&&(g.success?(b.resolve(g.result),"subscribe"in b||this.commands.delete(g.id)):(b.reject(g.error),this.commands.delete(g.id)));break;case"pong":b?(b.resolve(),this.commands.delete(g.id)):console.warn(`Received unknown pong response ${g.id}`);break}})},this._handleClose=async()=>{const c=this.commands;if(this.commandId=1,this.oldSubscriptions=this.commands,this.commands=new Map,this.socket=void 0,c.forEach(b=>{"subscribe"in b||b.reject(HPn(PCe,"Connection lost"))}),this.closeRequested)return;this.fireEvent("disconnected");const d=Object.assign(Object.assign({},this.options),{setupRetry:0}),g=b=>{setTimeout(async()=>{if(!this.closeRequested)try{const w=await d.createSocket(d);this._setSocket(w)}catch(w){if(this._queuedMessages){const E=this._queuedMessages;this._queuedMessages=void 0;for(const S of E)S.reject&&S.reject(PCe)}w===Voe?this.fireEvent("reconnect-error",w):g(b+1)}},Math.min(b,5)*1e3)};this.suspendReconnectPromise&&(await this.suspendReconnectPromise,this.suspendReconnectPromise=void 0,this._queuedMessages=[]),g(0)},this.options=a,this.commandId=2,this.commands=new Map,this.eventListeners=new Map,this.closeRequested=!1,this._setSocket(i)}get connected(){return this.socket!==void 0&&this.socket.readyState==this.socket.OPEN}_setSocket(i){this.socket=i,this.haVersion=i.haVersion,i.addEventListener("message",this._handleMessage),i.addEventListener("close",this._handleClose);const a=this.oldSubscriptions;a&&(this.oldSubscriptions=void 0,a.forEach(d=>{"subscribe"in d&&d.subscribe&&d.subscribe().then(g=>{d.unsubscribe=g,d.resolve()})}));const c=this._queuedMessages;if(c){this._queuedMessages=void 0;for(const d of c)d.resolve()}this.fireEvent("ready")}addEventListener(i,a){let c=this.eventListeners.get(i);c||(c=[],this.eventListeners.set(i,c)),c.push(a)}removeEventListener(i,a){const c=this.eventListeners.get(i);if(!c)return;const d=c.indexOf(a);d!==-1&&c.splice(d,1)}fireEvent(i,a){(this.eventListeners.get(i)||[]).forEach(c=>c(this,a))}suspendReconnectUntil(i){this.suspendReconnectPromise=i}suspend(){if(!this.suspendReconnectPromise)throw new Error("Suspend promise not set");this.socket&&this.socket.close()}reconnect(i=!1){if(this.socket){if(!i){this.socket.close();return}this.socket.removeEventListener("message",this._handleMessage),this.socket.removeEventListener("close",this._handleClose),this.socket.close(),this._handleClose()}}close(){this.closeRequested=!0,this.socket&&this.socket.close()}async subscribeEvents(i,a){return this.subscribeMessage(i,BPn(a))}ping(){return this.sendMessagePromise(UPn())}sendMessage(i,a){if(!this.connected)throw PCe;if(this._queuedMessages){if(a)throw new Error("Cannot queue with commandId");this._queuedMessages.push({resolve:()=>this.sendMessage(i)});return}a||(a=this._genCmdId()),i.id=a,this.socket.send(JSON.stringify(i))}sendMessagePromise(i){return new Promise((a,c)=>{if(this._queuedMessages){this._queuedMessages.push({reject:c,resolve:async()=>{try{a(await this.sendMessagePromise(i))}catch(g){c(g)}}});return}const d=this._genCmdId();this.commands.set(d,{resolve:a,reject:c}),this.sendMessage(i,d)})}async subscribeMessage(i,a,c){if(this._queuedMessages&&await new Promise((g,b)=>{this._queuedMessages.push({resolve:g,reject:b})}),c!=null&&c.preCheck&&!await c.preCheck())throw new Error("Pre-check failed");let d;return await new Promise((g,b)=>{const w=this._genCmdId();d={resolve:g,reject:b,callback:i,subscribe:(c==null?void 0:c.resubscribe)!==!1?()=>this.subscribeMessage(i,a,c):void 0,unsubscribe:async()=>{this.connected&&await this.sendMessagePromise(g9t(w)),this.commands.delete(w)}},this.commands.set(w,d);try{this.sendMessage(a,w)}catch{}}),()=>d.unsubscribe()}_genCmdId(){return++this.commandId}}const KPn=n=>n*1e3+Date.now();async function YPn(n,i,a){const c=typeof location<"u"&&location;if(c&&c.protocol==="https:"){const w=document.createElement("a");if(w.href=n,w.protocol==="http:"&&w.hostname!=="localhost")throw MPn}const d=new FormData;i!==null&&d.append("client_id",i),Object.keys(a).forEach(w=>{d.append(w,a[w])});const g=await fetch(`${n}/auth/token`,{method:"POST",credentials:"same-origin",body:d});if(!g.ok)throw g.status===400||g.status===403?Voe:new Error("Unable to fetch tokens");const b=await g.json();return b.hassUrl=n,b.clientId=i,b.expires=KPn(b.expires_in),b}class JPn{constructor(i,a){this.data=i,this._saveTokens=a}get wsUrl(){return`ws${this.data.hassUrl.substr(4)}/api/websocket`}get accessToken(){return this.data.access_token}get expired(){return Date.now()>this.data.expires}async refreshAccessToken(){if(!this.data.refresh_token)throw new Error("No refresh_token");const i=await YPn(this.data.hassUrl,this.data.clientId,{grant_type:"refresh_token",refresh_token:this.data.refresh_token});i.refresh_token=this.data.refresh_token,this.data=i,this._saveTokens&&this._saveTokens(i)}async revoke(){if(!this.data.refresh_token)throw new Error("No refresh_token to revoke");const i=new FormData;i.append("token",this.data.refresh_token),await fetch(`${this.data.hassUrl}/auth/revoke`,{method:"POST",credentials:"same-origin",body:i}),this._saveTokens&&this._saveTokens(null)}}function XPn(n,i){return new JPn({hassUrl:n,clientId:null,expires:Date.now()+1e11,refresh_token:"",access_token:i,expires_in:1e11})}const ZPn=n=>{let i=[];function a(d){let g=[];for(let b=0;b{a(d)}}}},QPn=5e3,aDe=(n,i,a,c,d={unsubGrace:!0})=>{if(n[i])return n[i];let g=0,b,w,E=ZPn();const S=()=>{if(!a)throw new Error("Collection does not support refresh");return a(n).then(D=>E.setState(D,!0))},k=()=>S().catch(D=>{if(n.connected)throw D}),_=()=>{if(w!==void 0){clearTimeout(w),w=void 0;return}c&&(b=c(n,E)),a&&(n.addEventListener("ready",k),k()),n.addEventListener("disconnected",M)},C=()=>{w=void 0,b&&b.then(D=>{D()}),E.clearState(),n.removeEventListener("ready",S),n.removeEventListener("disconnected",M)},R=()=>{w=setTimeout(C,QPn)},M=()=>{w&&(clearTimeout(w),C())};return n[i]={get state(){return E.state},refresh:S,subscribe(D){g++,g===1&&_();const B=E.subscribe(D);return E.state!==void 0&&setTimeout(()=>D(E.state),0),()=>{B(),g--,g||(d.unsubGrace?R():C())}}},n[i]},ejn=n=>n.sendMessagePromise(FPn()),tjn=n=>n.sendMessagePromise($Pn());function njn(n,i,a){var c;const d=i.state;if(d===void 0)return;const{domain:g,service:b}=a.data;if(!(!((c=d.domain)===null||c===void 0)&&c.service)){const w=Object.assign(Object.assign({},d[g]),{[b]:{description:"",fields:{}}});i.setState({[g]:w})}ijn(n,i)}function rjn(n,i){if(n===void 0)return null;const{domain:a,service:c}=i.data,d=n[a];if(!d||!(c in d))return null;const g={};return Object.keys(d).forEach(b=>{b!==c&&(g[b]=d[b])}),{[a]:g}}const ijn=zPn((n,i)=>oGt(n).then(a=>i.setState(a,!0)),5e3),oGt=n=>tjn(n),ojn=(n,i)=>Promise.all([n.subscribeEvents(a=>njn(n,i,a),"service_registered"),n.subscribeEvents(i.action(rjn),"service_removed")]).then(a=>()=>a.forEach(c=>c())),sjn=n=>aDe(n,"_srv",oGt,ojn),ajn=(n,i)=>sjn(n).subscribe(i);function ujn(n,i){const a=Object.assign({},n.state);if(i.a)for(const c in i.a){const d=i.a[c];let g=new Date(d.lc*1e3).toISOString();a[c]={entity_id:c,state:d.s,attributes:d.a,context:typeof d.c=="string"?{id:d.c,parent_id:null,user_id:null}:d.c,last_changed:g,last_updated:d.lu?new Date(d.lu*1e3).toISOString():g}}if(i.r)for(const c of i.r)delete a[c];if(i.c)for(const c in i.c){let d=a[c];if(!d){console.warn("Received state update for unknown entity",c);continue}d=Object.assign({},d);const{"+":g,"-":b}=i.c[c],w=(g==null?void 0:g.a)||(b==null?void 0:b.a),E=w?Object.assign({},d.attributes):d.attributes;if(g&&(g.s!==void 0&&(d.state=g.s),g.c&&(typeof g.c=="string"?d.context=Object.assign(Object.assign({},d.context),{id:g.c}):d.context=Object.assign(Object.assign({},d.context),g.c)),g.lc?d.last_updated=d.last_changed=new Date(g.lc*1e3).toISOString():g.lu&&(d.last_updated=new Date(g.lu*1e3).toISOString()),g.a&&Object.assign(E,g.a)),b!=null&&b.a)for(const S of b.a)delete E[S];w&&(d.attributes=E),a[c]=d}n.setState(a,!0)}const cjn=(n,i)=>n.subscribeMessage(a=>ujn(i,a),{type:"subscribe_entities"});function ljn(n,i){const a=n.state;if(a===void 0)return;const{entity_id:c,new_state:d}=i.data;if(d)n.setState({[d.entity_id]:d});else{const g=Object.assign({},a);delete g[c],n.setState(g,!0)}}async function djn(n){const i=await ejn(n),a={};for(let c=0;cn.subscribeEvents(a=>ljn(i,a),"state_changed"),hjn=n=>iGt(n.haVersion,2022,4,0)?aDe(n,"_ent",void 0,cjn):aDe(n,"_ent",djn,fjn),pjn=(n,i)=>hjn(n).subscribe(i);async function gjn(n){const i=Object.assign({setupRetry:0,createSocket:VPn},n),a=await i.createSocket(i);return new WPn(a,i)}const sGt="cafe_hass_config";function bjn(){try{const n=localStorage.getItem(sGt);if(n)return JSON.parse(n)}catch{}return{url:"",token:""}}function mjn(n){try{localStorage.setItem(sGt,JSON.stringify(n))}catch{}}const aGt=z.createContext(void 0),b9t=({children:n,forceMode:i,externalHass:a})=>{const[c,d]=z.useState(i?bjn():{url:"",token:""}),[g,b]=z.useState([]),[w,E]=z.useState({}),[S,k]=z.useState(new Map),[_,C]=z.useState(new Map),[R,M]=z.useState(!1),[D,B]=z.useState(null),[F,$]=z.useState(null),P=!!(c.url&&c.token),H=i==="remote",Q=z.useCallback($e=>{d($e),mjn($e),b([]),E({}),k(new Map),C(new Map),B(null)},[]);z.useEffect(()=>{if(!H)return;const Te=(async()=>{M(!0),B(null);try{const ke=XPn(c.url,c.token),Je=await gjn({auth:ke});$(Je),Je.addEventListener("ready",()=>{B(null),M(!1)}),Je.addEventListener("disconnected",()=>{B("Connection lost")}),Je.addEventListener("reconnect-error",At=>{console.error("C.A.F.E.: WebSocket reconnection failed:",At),B("Reconnection failed")});const bt=pjn(Je,At=>{const ft=Object.values(At).map(Kt=>({entity_id:Kt.entity_id,state:Kt.state,attributes:Kt.attributes||{},last_changed:Kt.last_changed||"",last_updated:Kt.last_updated||"",context:Kt.context}));b(ft),M(!1)}),qe=ajn(Je,At=>{E(At)});return(async()=>{try{const At=await Je.sendMessagePromise({type:"config/device_registry/list"}),ft=new Map;for(const It of At)ft.set(It.id,It);k(ft);const Kt=await Je.sendMessagePromise({type:"config/entity_registry/list"}),kt=new Map;for(const It of Kt)kt.set(It.entity_id,It);C(kt)}catch(At){console.error("C.A.F.E.: Failed to fetch registries:",At)}})(),()=>{bt(),qe(),Je.close(),$(null)}}catch(ke){console.error("C.A.F.E.: Failed to establish WebSocket connection:",ke);const Je=ke instanceof Error?ke.message:"Connection failed";B(Je),M(!1)}})();return()=>{Te instanceof Promise&&Te.then(ke=>ke==null?void 0:ke())}},[H,c.url,c.token]),z.useEffect(()=>{if(!(a!=null&&a.connection))return;(async()=>{try{const Te=await a.connection.sendMessagePromise({type:"config/device_registry/list"}),ke=new Map;for(const qe of Te)ke.set(qe.id,qe);k(ke);const Je=await a.connection.sendMessagePromise({type:"config/entity_registry/list"}),bt=new Map;for(const qe of Je)bt.set(qe.entity_id,qe);C(bt)}catch(Te){console.error("C.A.F.E.: Failed to fetch registries from externalHass:",Te)}})()},[a==null?void 0:a.connection]);const re=z.useRef({}),ee=z.useRef({}),ae=z.useRef({});re.current=z.useMemo(()=>Object.fromEntries(g.map($e=>[$e.entity_id,$e])),[g]),ee.current=w,ae.current=z.useMemo(()=>Object.fromEntries(S),[S]);const he=z.useMemo(()=>{if(a)return a;if(F&&H)return{auth:null,get connected(){return F.connected},config:{},themes:{darkMode:!1},panels:{},selectedTheme:null,panelUrl:"",language:"en",locale:{},selectedLanguage:null,resources:{},get devices(){return ae.current},localize:()=>"",translationMetadata:{fragments:[],translations:{}},dockedSidebar:!1,moreInfoEntityId:"",user:null,fetchWithAuth:async()=>new Response,sendWS:async(...$e)=>{F.sendMessage(...$e)},callWS:$e=>F.sendMessagePromise($e),get states(){return re.current},get services(){return ee.current},connection:F,callApi:async($e,Te,ke)=>{if(!c.url||!c.token)throw new Error("No authentication configured");const Je=`${c.url}/api/${Te}`,bt=await fetch(Je,{method:$e,headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"application/json"},body:ke?JSON.stringify(ke):void 0});if(!bt.ok){const qe=await bt.json();throw new Error(`API error: ${qe.message}`)}return await bt.json()},callService:async($e,Te,ke)=>{if(!F)throw new Error("WebSocket connection not available");return F.sendMessagePromise({type:"call_service",domain:$e,service:Te,service_data:ke||{}})}}},[a,H,F,c.url,c.token]),ve=z.useMemo(()=>H?g:Object.values((he==null?void 0:he.states)??{}),[H,g,he==null?void 0:he.states]),de=z.useMemo(()=>H?w:(he==null?void 0:he.services)??{},[H,w,he==null?void 0:he.services]),ge=z.useCallback($e=>ve.filter(Te=>Te.entity_id.startsWith(`${$e}.`)),[ve]),Y=z.useCallback(()=>{const $e=[];for(const[Te,ke]of Object.entries(de))for(const[Je,bt]of Object.entries(ke))$e.push({domain:Te,service:Je,definition:bt});return $e},[de]),fe=z.useCallback($e=>{var Je;if(!$e||!$e.includes("."))return null;const[Te,ke]=$e.split(".");return((Je=de[Te])==null?void 0:Je[ke])||null},[de]),De=z.useCallback($e=>{const Te=_.get($e);if(!(Te!=null&&Te.device_id))return null;const ke=S.get(Te.device_id);return ke&&(ke.name_by_user||ke.name)||null},[_,S]),Se={hass:he,isRemote:H,isLoading:H&&P?R:!1,connectionError:H?D:null,entities:ve,services:de,config:c,setConfig:Q,getEntitiesByDomain:ge,getAllServices:Y,getServiceDefinition:fe,getDeviceNameForEntity:De};return O.jsx(aGt.Provider,{value:Se,children:n})};function Gm(){const n=z.useContext(aGt);if(n===void 0)throw new Error("useHass must be used within a HassProvider");return n}function tae(){var c;const{hass:n}=Gm(),[i,a]=z.useState(((c=n==null?void 0:n.themes)==null?void 0:c.darkMode)??!1);return z.useEffect(()=>{var d,g;if(yf.debug("[C.A.F.E.] useDarkMode effect running",{hasHass:!!n,hasStates:!!(n!=null&&n.states&&Object.keys(n.states).length>0),hasThemes:!!(n!=null&&n.themes),darkMode:(d=n==null?void 0:n.themes)==null?void 0:d.darkMode}),((g=n==null?void 0:n.themes)==null?void 0:g.darkMode)!==void 0){const b=n.themes.darkMode;yf.debug("[C.A.F.E.] Dark mode from hass.themes.darkMode:",b),a(b)}else n&&Object.keys(n.states||{}).length>0?(yf.debug("[C.A.F.E.] Hass available but no themes.darkMode property, defaulting to light mode"),a(!1)):yf.debug("[C.A.F.E.] Hass not available yet or no entities loaded")},[n]),i}function cn(n,i,a){function c(w,E){if(w._zod||Object.defineProperty(w,"_zod",{value:{def:E,constr:b,traits:new Set},enumerable:!1}),w._zod.traits.has(n))return;w._zod.traits.add(n),i(w,E);const S=b.prototype,k=Object.keys(S);for(let _=0;_{var E,S;return a!=null&&a.Parent&&w instanceof a.Parent?!0:(S=(E=w==null?void 0:w._zod)==null?void 0:E.traits)==null?void 0:S.has(n)}}),Object.defineProperty(b,"name",{value:n}),b}class t5 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class uGt extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const cGt={};function rN(n){return cGt}function lGt(n){const i=Object.values(n).filter(c=>typeof c=="number");return Object.entries(n).filter(([c,d])=>i.indexOf(+c)===-1).map(([c,d])=>d)}function uDe(n,i){return typeof i=="bigint"?i.toString():i}function nae(n){return{get value(){{const i=n();return Object.defineProperty(this,"value",{value:i}),i}}}}function _Me(n){return n==null}function kMe(n){const i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;return n.slice(i,a)}function wjn(n,i){const a=(n.toString().split(".")[1]||"").length,c=i.toString();let d=(c.split(".")[1]||"").length;if(d===0&&/\d?e-\d?/.test(c)){const E=c.match(/\d?e-(\d?)/);E!=null&&E[1]&&(d=Number.parseInt(E[1]))}const g=a>d?a:d,b=Number.parseInt(n.toFixed(g).replace(".","")),w=Number.parseInt(i.toFixed(g).replace(".",""));return b%w/10**g}const m9t=Symbol("evaluating");function Ys(n,i,a){let c;Object.defineProperty(n,i,{get(){if(c!==m9t)return c===void 0&&(c=m9t,c=a()),c},set(d){Object.defineProperty(n,i,{value:d})},configurable:!0})}function kR(n,i,a){Object.defineProperty(n,i,{value:a,writable:!0,enumerable:!0,configurable:!0})}function mN(...n){const i={};for(const a of n){const c=Object.getOwnPropertyDescriptors(a);Object.assign(i,c)}return Object.defineProperties({},i)}function w9t(n){return JSON.stringify(n)}function yjn(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const dGt="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function ZH(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const vjn=nae(()=>{var n;if(typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)!=null&&n.includes("Cloudflare")))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function A5(n){if(ZH(n)===!1)return!1;const i=n.constructor;if(i===void 0||typeof i!="function")return!0;const a=i.prototype;return!(ZH(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function fGt(n){return A5(n)?{...n}:Array.isArray(n)?[...n]:n}const Ejn=new Set(["string","number","symbol"]);function _5(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wN(n,i,a){const c=new n._zod.constr(i??n._zod.def);return(!i||a!=null&&a.parent)&&(c._zod.parent=n),c}function wi(n){const i=n;if(!i)return{};if(typeof i=="string")return{error:()=>i};if((i==null?void 0:i.message)!==void 0){if((i==null?void 0:i.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function Sjn(n){return Object.keys(n).filter(i=>n[i]._zod.optin==="optional"&&n[i]._zod.optout==="optional")}const Tjn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Ajn(n,i){const a=n._zod.def,c=a.checks;if(c&&c.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const g=mN(n._zod.def,{get shape(){const b={};for(const w in i){if(!(w in a.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&(b[w]=a.shape[w])}return kR(this,"shape",b),b},checks:[]});return wN(n,g)}function _jn(n,i){const a=n._zod.def,c=a.checks;if(c&&c.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const g=mN(n._zod.def,{get shape(){const b={...n._zod.def.shape};for(const w in i){if(!(w in a.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&delete b[w]}return kR(this,"shape",b),b},checks:[]});return wN(n,g)}function kjn(n,i){if(!A5(i))throw new Error("Invalid input to extend: expected a plain object");const a=n._zod.def.checks;if(a&&a.length>0){const g=n._zod.def.shape;for(const b in i)if(Object.getOwnPropertyDescriptor(g,b)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const d=mN(n._zod.def,{get shape(){const g={...n._zod.def.shape,...i};return kR(this,"shape",g),g}});return wN(n,d)}function xjn(n,i){if(!A5(i))throw new Error("Invalid input to safeExtend: expected a plain object");const a=mN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i};return kR(this,"shape",c),c}});return wN(n,a)}function Njn(n,i){const a=mN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i._zod.def.shape};return kR(this,"shape",c),c},get catchall(){return i._zod.def.catchall},checks:[]});return wN(n,a)}function Cjn(n,i,a){const d=i._zod.def.checks;if(d&&d.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const b=mN(i._zod.def,{get shape(){const w=i._zod.def.shape,E={...w};if(a)for(const S in a){if(!(S in w))throw new Error(`Unrecognized key: "${S}"`);a[S]&&(E[S]=n?new n({type:"optional",innerType:w[S]}):w[S])}else for(const S in w)E[S]=n?new n({type:"optional",innerType:w[S]}):w[S];return kR(this,"shape",E),E},checks:[]});return wN(i,b)}function Ijn(n,i,a){const c=mN(i._zod.def,{get shape(){const d=i._zod.def.shape,g={...d};if(a)for(const b in a){if(!(b in g))throw new Error(`Unrecognized key: "${b}"`);a[b]&&(g[b]=new n({type:"nonoptional",innerType:d[b]}))}else for(const b in d)g[b]=new n({type:"nonoptional",innerType:d[b]});return kR(this,"shape",g),g}});return wN(i,c)}function HM(n,i=0){var a;if(n.aborted===!0)return!0;for(let c=i;c{var c;return(c=a).path??(c.path=[]),a.path.unshift(n),a})}function wie(n){return typeof n=="string"?n:n==null?void 0:n.message}function iN(n,i,a){var d,g,b,w,E,S;const c={...n,path:n.path??[]};if(!n.message){const k=wie((b=(g=(d=n.inst)==null?void 0:d._zod.def)==null?void 0:g.error)==null?void 0:b.call(g,n))??wie((w=i==null?void 0:i.error)==null?void 0:w.call(i,n))??wie((E=a.customError)==null?void 0:E.call(a,n))??wie((S=a.localeError)==null?void 0:S.call(a,n))??"Invalid input";c.message=k}return delete c.inst,delete c.continue,i!=null&&i.reportInput||delete c.input,c}function xMe(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function QH(...n){const[i,a,c]=n;return typeof i=="string"?{message:i,code:"custom",input:a,inst:c}:{...i}}const hGt=(n,i)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:i,enumerable:!1}),n.message=JSON.stringify(i,uDe,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},pGt=cn("$ZodError",hGt),gGt=cn("$ZodError",hGt,{Parent:Error});function Rjn(n,i=a=>a.message){const a={},c=[];for(const d of n.issues)d.path.length>0?(a[d.path[0]]=a[d.path[0]]||[],a[d.path[0]].push(i(d))):c.push(i(d));return{formErrors:c,fieldErrors:a}}function Ojn(n,i=a=>a.message){const a={_errors:[]},c=d=>{for(const g of d.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(b=>c({issues:b}));else if(g.code==="invalid_key")c({issues:g.issues});else if(g.code==="invalid_element")c({issues:g.issues});else if(g.path.length===0)a._errors.push(i(g));else{let b=a,w=0;for(;w(i,a,c,d)=>{const g=c?Object.assign(c,{async:!1}):{async:!1},b=i._zod.run({value:a,issues:[]},g);if(b instanceof Promise)throw new t5;if(b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>iN(E,g,rN())));throw dGt(w,d==null?void 0:d.callee),w}return b.value},CMe=n=>async(i,a,c,d)=>{const g=c?Object.assign(c,{async:!0}):{async:!0};let b=i._zod.run({value:a,issues:[]},g);if(b instanceof Promise&&(b=await b),b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>iN(E,g,rN())));throw dGt(w,d==null?void 0:d.callee),w}return b.value},rae=n=>(i,a,c)=>{const d=c?{...c,async:!1}:{async:!1},g=i._zod.run({value:a,issues:[]},d);if(g instanceof Promise)throw new t5;return g.issues.length?{success:!1,error:new(n??pGt)(g.issues.map(b=>iN(b,d,rN())))}:{success:!0,data:g.value}},Djn=rae(gGt),iae=n=>async(i,a,c)=>{const d=c?Object.assign(c,{async:!0}):{async:!0};let g=i._zod.run({value:a,issues:[]},d);return g instanceof Promise&&(g=await g),g.issues.length?{success:!1,error:new n(g.issues.map(b=>iN(b,d,rN())))}:{success:!0,data:g.value}},Ljn=iae(gGt),Mjn=n=>(i,a,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return NMe(n)(i,a,d)},Pjn=n=>(i,a,c)=>NMe(n)(i,a,c),jjn=n=>async(i,a,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return CMe(n)(i,a,d)},Fjn=n=>async(i,a,c)=>CMe(n)(i,a,c),$jn=n=>(i,a,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return rae(n)(i,a,d)},Bjn=n=>(i,a,c)=>rae(n)(i,a,c),Ujn=n=>async(i,a,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return iae(n)(i,a,d)},Hjn=n=>async(i,a,c)=>iae(n)(i,a,c),zjn=/^[cC][^\s-]{8,}$/,Gjn=/^[0-9a-z]+$/,qjn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vjn=/^[0-9a-vA-V]{20}$/,Wjn=/^[A-Za-z0-9]{27}$/,Kjn=/^[a-zA-Z0-9_-]{21}$/,Yjn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Jjn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,y9t=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Xjn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Zjn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Qjn(){return new RegExp(Zjn,"u")}const e7n=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t7n=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,n7n=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,r7n=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i7n=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bGt=/^[A-Za-z0-9_-]*$/,o7n=/^\+[1-9]\d{6,14}$/,mGt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",s7n=new RegExp(`^${mGt}$`);function wGt(n){const i="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${i}`:n.precision===0?`${i}:[0-5]\\d`:`${i}:[0-5]\\d\\.\\d{${n.precision}}`:`${i}(?::[0-5]\\d(?:\\.\\d+)?)?`}function a7n(n){return new RegExp(`^${wGt(n)}$`)}function u7n(n){const i=wGt({precision:n.precision}),a=["Z"];n.local&&a.push(""),n.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const c=`${i}(?:${a.join("|")})`;return new RegExp(`^${mGt}T(?:${c})$`)}const c7n=n=>{const i=n?`[\\s\\S]{${(n==null?void 0:n.minimum)??0},${(n==null?void 0:n.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},l7n=/^-?\d+$/,yGt=/^-?\d+(?:\.\d+)?$/,d7n=/^(?:true|false)$/i,f7n=/^null$/i,h7n=/^[^A-Z]*$/,p7n=/^[^a-z]*$/,fb=cn("$ZodCheck",(n,i)=>{var a;n._zod??(n._zod={}),n._zod.def=i,(a=n._zod).onattach??(a.onattach=[])}),vGt={number:"number",bigint:"bigint",object:"date"},EGt=cn("$ZodCheckLessThan",(n,i)=>{fb.init(n,i);const a=vGt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.maximum:d.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value{(i.inclusive?c.value<=i.value:c.value{fb.init(n,i);const a=vGt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.minimum:d.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>g&&(i.inclusive?d.minimum=i.value:d.exclusiveMinimum=i.value)}),n._zod.check=c=>{(i.inclusive?c.value>=i.value:c.value>i.value)||c.issues.push({origin:a,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),g7n=cn("$ZodCheckMultipleOf",(n,i)=>{fb.init(n,i),n._zod.onattach.push(a=>{var c;(c=a._zod.bag).multipleOf??(c.multipleOf=i.value)}),n._zod.check=a=>{if(typeof a.value!=typeof i.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%i.value===BigInt(0):wjn(a.value,i.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:i.value,input:a.value,inst:n,continue:!i.abort})}}),b7n=cn("$ZodCheckNumberFormat",(n,i)=>{var b;fb.init(n,i),i.format=i.format||"float64";const a=(b=i.format)==null?void 0:b.includes("int"),c=a?"int":"number",[d,g]=Tjn[i.format];n._zod.onattach.push(w=>{const E=w._zod.bag;E.format=i.format,E.minimum=d,E.maximum=g,a&&(E.pattern=l7n)}),n._zod.check=w=>{const E=w.value;if(a){if(!Number.isInteger(E)){w.issues.push({expected:c,format:i.format,code:"invalid_type",continue:!1,input:E,inst:n});return}if(!Number.isSafeInteger(E)){E>0?w.issues.push({input:E,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort}):w.issues.push({input:E,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort});return}}Eg&&w.issues.push({origin:"number",input:E,code:"too_big",maximum:g,inclusive:!0,inst:n,continue:!i.abort})}}),m7n=cn("$ZodCheckMaxLength",(n,i)=>{var a;fb.init(n,i),(a=n._zod.def).when??(a.when=c=>{const d=c.value;return!_Me(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum{const d=c.value;if(d.length<=i.maximum)return;const b=xMe(d);c.issues.push({origin:b,code:"too_big",maximum:i.maximum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),w7n=cn("$ZodCheckMinLength",(n,i)=>{var a;fb.init(n,i),(a=n._zod.def).when??(a.when=c=>{const d=c.value;return!_Me(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>d&&(c._zod.bag.minimum=i.minimum)}),n._zod.check=c=>{const d=c.value;if(d.length>=i.minimum)return;const b=xMe(d);c.issues.push({origin:b,code:"too_small",minimum:i.minimum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),y7n=cn("$ZodCheckLengthEquals",(n,i)=>{var a;fb.init(n,i),(a=n._zod.def).when??(a.when=c=>{const d=c.value;return!_Me(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag;d.minimum=i.length,d.maximum=i.length,d.length=i.length}),n._zod.check=c=>{const d=c.value,g=d.length;if(g===i.length)return;const b=xMe(d),w=g>i.length;c.issues.push({origin:b,...w?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:c.value,inst:n,continue:!i.abort})}}),oae=cn("$ZodCheckStringFormat",(n,i)=>{var a,c;fb.init(n,i),n._zod.onattach.push(d=>{const g=d._zod.bag;g.format=i.format,i.pattern&&(g.patterns??(g.patterns=new Set),g.patterns.add(i.pattern))}),i.pattern?(a=n._zod).check??(a.check=d=>{i.pattern.lastIndex=0,!i.pattern.test(d.value)&&d.issues.push({origin:"string",code:"invalid_format",format:i.format,input:d.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:n,continue:!i.abort})}):(c=n._zod).check??(c.check=()=>{})}),v7n=cn("$ZodCheckRegex",(n,i)=>{oae.init(n,i),n._zod.check=a=>{i.pattern.lastIndex=0,!i.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:i.pattern.toString(),inst:n,continue:!i.abort})}}),E7n=cn("$ZodCheckLowerCase",(n,i)=>{i.pattern??(i.pattern=h7n),oae.init(n,i)}),S7n=cn("$ZodCheckUpperCase",(n,i)=>{i.pattern??(i.pattern=p7n),oae.init(n,i)}),T7n=cn("$ZodCheckIncludes",(n,i)=>{fb.init(n,i);const a=_5(i.includes),c=new RegExp(typeof i.position=="number"?`^.{${i.position}}${a}`:a);i.pattern=c,n._zod.onattach.push(d=>{const g=d._zod.bag;g.patterns??(g.patterns=new Set),g.patterns.add(c)}),n._zod.check=d=>{d.value.includes(i.includes,i.position)||d.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:d.value,inst:n,continue:!i.abort})}}),A7n=cn("$ZodCheckStartsWith",(n,i)=>{fb.init(n,i);const a=new RegExp(`^${_5(i.prefix)}.*`);i.pattern??(i.pattern=a),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(a)}),n._zod.check=c=>{c.value.startsWith(i.prefix)||c.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:c.value,inst:n,continue:!i.abort})}}),_7n=cn("$ZodCheckEndsWith",(n,i)=>{fb.init(n,i);const a=new RegExp(`.*${_5(i.suffix)}$`);i.pattern??(i.pattern=a),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(a)}),n._zod.check=c=>{c.value.endsWith(i.suffix)||c.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:c.value,inst:n,continue:!i.abort})}}),k7n=cn("$ZodCheckOverwrite",(n,i)=>{fb.init(n,i),n._zod.check=a=>{a.value=i.tx(a.value)}});class x7n{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}const c=i.split(` -`).filter(b=>b),d=Math.min(...c.map(b=>b.length-b.trimStart().length)),g=c.map(b=>b.slice(d)).map(b=>" ".repeat(this.indent*2)+b);for(const b of g)this.content.push(b)}compile(){const i=Function,a=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...a,d.join(` -`))}}const N7n={major:4,minor:3,patch:5},Wu=cn("$ZodType",(n,i)=>{var d;var a;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=N7n;const c=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&c.unshift(n);for(const g of c)for(const b of g._zod.onattach)b(n);if(c.length===0)(a=n._zod).deferred??(a.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let k=HM(w),_;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(k)continue;const R=w.issues.length,M=C._zod.check(w);if(M instanceof Promise&&(S==null?void 0:S.async)===!1)throw new t5;if(_||M instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await M,w.issues.length!==R&&(k||(k=HM(w,R)))});else{if(w.issues.length===R)continue;k||(k=HM(w,R))}}return _?_.then(()=>w):w},b=(w,E,S)=>{if(HM(w))return w.aborted=!0,w;const k=g(E,c,S);if(k instanceof Promise){if(S.async===!1)throw new t5;return k.then(_=>n._zod.parse(_,S))}return n._zod.parse(k,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const k=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return k instanceof Promise?k.then(_=>b(_,w,E)):b(k,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new t5;return S.then(k=>g(k,c,E))}return g(S,c,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=Djn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return Ljn(n,g).then(E=>{var S;return E.success?{value:E.data}:{issues:(S=E.error)==null?void 0:S.issues}})}},vendor:"zod",version:1}))}),IMe=cn("$ZodString",(n,i)=>{var a;Wu.init(n,i),n._zod.pattern=[...((a=n==null?void 0:n._zod.bag)==null?void 0:a.patterns)??[]].pop()??c7n(n._zod.bag),n._zod.parse=(c,d)=>{if(i.coerce)try{c.value=String(c.value)}catch{}return typeof c.value=="string"||c.issues.push({expected:"string",code:"invalid_type",input:c.value,inst:n}),c}}),Pc=cn("$ZodStringFormat",(n,i)=>{oae.init(n,i),IMe.init(n,i)}),C7n=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=Jjn),Pc.init(n,i)}),I7n=cn("$ZodUUID",(n,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=y9t(c))}else i.pattern??(i.pattern=y9t());Pc.init(n,i)}),R7n=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=Xjn),Pc.init(n,i)}),O7n=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=a=>{try{const c=a.value.trim(),d=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:a.value,inst:n,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:a.value,inst:n,continue:!i.abort})),i.normalize?a.value=d.href:a.value=c;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:n,continue:!i.abort})}}}),D7n=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=Qjn()),Pc.init(n,i)}),L7n=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=Kjn),Pc.init(n,i)}),M7n=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=zjn),Pc.init(n,i)}),P7n=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=Gjn),Pc.init(n,i)}),j7n=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=qjn),Pc.init(n,i)}),F7n=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=Vjn),Pc.init(n,i)}),$7n=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=Wjn),Pc.init(n,i)}),B7n=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=u7n(i)),Pc.init(n,i)}),U7n=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=s7n),Pc.init(n,i)}),H7n=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=a7n(i)),Pc.init(n,i)}),z7n=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=Yjn),Pc.init(n,i)}),G7n=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=e7n),Pc.init(n,i),n._zod.bag.format="ipv4"}),q7n=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=t7n),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:n,continue:!i.abort})}}}),V7n=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=n7n),Pc.init(n,i)}),W7n=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=r7n),Pc.init(n,i),n._zod.check=a=>{const c=a.value.split("/");try{if(c.length!==2)throw new Error;const[d,g]=c;if(!g)throw new Error;const b=Number(g);if(`${b}`!==g)throw new Error;if(b<0||b>128)throw new Error;new URL(`http://[${d}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:n,continue:!i.abort})}}});function TGt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const K7n=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=i7n),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=a=>{TGt(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:n,continue:!i.abort})}});function Y7n(n){if(!bGt.test(n))return!1;const i=n.replace(/[-_]/g,c=>c==="-"?"+":"/"),a=i.padEnd(Math.ceil(i.length/4)*4,"=");return TGt(a)}const J7n=cn("$ZodBase64URL",(n,i)=>{i.pattern??(i.pattern=bGt),Pc.init(n,i),n._zod.bag.contentEncoding="base64url",n._zod.check=a=>{Y7n(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:n,continue:!i.abort})}}),X7n=cn("$ZodE164",(n,i)=>{i.pattern??(i.pattern=o7n),Pc.init(n,i)});function Z7n(n,i=null){try{const a=n.split(".");if(a.length!==3)return!1;const[c]=a;if(!c)return!1;const d=JSON.parse(atob(c));return!("typ"in d&&(d==null?void 0:d.typ)!=="JWT"||!d.alg||i&&(!("alg"in d)||d.alg!==i))}catch{return!1}}const Q7n=cn("$ZodJWT",(n,i)=>{Pc.init(n,i),n._zod.check=a=>{Z7n(a.value,i.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:n,continue:!i.abort})}}),AGt=cn("$ZodNumber",(n,i)=>{Wu.init(n,i),n._zod.pattern=n._zod.bag.pattern??yGt,n._zod.parse=(a,c)=>{if(i.coerce)try{a.value=Number(a.value)}catch{}const d=a.value;if(typeof d=="number"&&!Number.isNaN(d)&&Number.isFinite(d))return a;const g=typeof d=="number"?Number.isNaN(d)?"NaN":Number.isFinite(d)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:d,inst:n,...g?{received:g}:{}}),a}}),eFn=cn("$ZodNumberFormat",(n,i)=>{b7n.init(n,i),AGt.init(n,i)}),tFn=cn("$ZodBoolean",(n,i)=>{Wu.init(n,i),n._zod.pattern=d7n,n._zod.parse=(a,c)=>{if(i.coerce)try{a.value=!!a.value}catch{}const d=a.value;return typeof d=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:d,inst:n}),a}}),nFn=cn("$ZodNull",(n,i)=>{Wu.init(n,i),n._zod.pattern=f7n,n._zod.values=new Set([null]),n._zod.parse=(a,c)=>{const d=a.value;return d===null||a.issues.push({expected:"null",code:"invalid_type",input:d,inst:n}),a}}),rFn=cn("$ZodAny",(n,i)=>{Wu.init(n,i),n._zod.parse=a=>a}),iFn=cn("$ZodUnknown",(n,i)=>{Wu.init(n,i),n._zod.parse=a=>a}),oFn=cn("$ZodNever",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:n}),a)});function v9t(n,i,a){n.issues.length&&i.issues.push(...zM(a,n.issues)),i.value[a]=n.value}const sFn=cn("$ZodArray",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{const d=a.value;if(!Array.isArray(d))return a.issues.push({expected:"array",code:"invalid_type",input:d,inst:n}),a;a.value=Array(d.length);const g=[];for(let b=0;bv9t(S,a,b))):v9t(E,a,b)}return g.length?Promise.all(g).then(()=>a):a}});function Woe(n,i,a,c,d){if(n.issues.length){if(d&&!(a in c))return;i.issues.push(...zM(a,n.issues))}n.value===void 0?a in c&&(i.value[a]=void 0):i.value[a]=n.value}function _Gt(n){var c,d,g,b;const i=Object.keys(n.shape);for(const w of i)if(!((b=(g=(d=(c=n.shape)==null?void 0:c[w])==null?void 0:d._zod)==null?void 0:g.traits)!=null&&b.has("$ZodType")))throw new Error(`Invalid element at key "${w}": expected a Zod schema`);const a=Sjn(n.shape);return{...n,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(a)}}function kGt(n,i,a,c,d,g){const b=[],w=d.keySet,E=d.catchall._zod,S=E.def.type,k=E.optout==="optional";for(const _ in i){if(w.has(_))continue;if(S==="never"){b.push(_);continue}const C=E.run({value:i[_],issues:[]},c);C instanceof Promise?n.push(C.then(R=>Woe(R,a,_,i,k))):Woe(C,a,_,i,k)}return b.length&&a.issues.push({code:"unrecognized_keys",keys:b,input:i,inst:g}),n.length?Promise.all(n).then(()=>a):a}const aFn=cn("$ZodObject",(n,i)=>{Wu.init(n,i);const a=Object.getOwnPropertyDescriptor(i,"shape");if(!(a!=null&&a.get)){const w=i.shape;Object.defineProperty(i,"shape",{get:()=>{const E={...w};return Object.defineProperty(i,"shape",{value:E}),E}})}const c=nae(()=>_Gt(i));Ys(n._zod,"propValues",()=>{const w=i.shape,E={};for(const S in w){const k=w[S]._zod;if(k.values){E[S]??(E[S]=new Set);for(const _ of k.values)E[S].add(_)}}return E});const d=ZH,g=i.catchall;let b;n._zod.parse=(w,E)=>{b??(b=c.value);const S=w.value;if(!d(S))return w.issues.push({expected:"object",code:"invalid_type",input:S,inst:n}),w;w.value={};const k=[],_=b.shape;for(const C of b.keys){const R=_[C],M=R._zod.optout==="optional",D=R._zod.run({value:S[C],issues:[]},E);D instanceof Promise?k.push(D.then(B=>Woe(B,w,C,S,M))):Woe(D,w,C,S,M)}return g?kGt(k,S,w,E,c.value,n):k.length?Promise.all(k).then(()=>w):w}}),uFn=cn("$ZodObjectJIT",(n,i)=>{aFn.init(n,i);const a=n._zod.parse,c=nae(()=>_Gt(i)),d=C=>{var P;const R=new x7n(["shape","payload","ctx"]),M=c.value,D=H=>{const Q=w9t(H);return`shape[${Q}]._zod.run({ value: input[${Q}], issues: [] }, ctx)`};R.write("const input = payload.value;");const B=Object.create(null);let F=0;for(const H of M.keys)B[H]=`key_${F++}`;R.write("const newResult = {};");for(const H of M.keys){const Q=B[H],re=w9t(H),ee=C[H],ae=((P=ee==null?void 0:ee._zod)==null?void 0:P.optout)==="optional";R.write(`const ${Q} = ${D(H)};`),ae?R.write(` - if (${Q}.issues.length) { - if (${re} in input) { - payload.issues = payload.issues.concat(${Q}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${re}, ...iss.path] : [${re}] - }))); - } - } - - if (${Q}.value === undefined) { - if (${re} in input) { - newResult[${re}] = undefined; - } - } else { - newResult[${re}] = ${Q}.value; - } - - `):R.write(` - if (${Q}.issues.length) { - payload.issues = payload.issues.concat(${Q}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${re}, ...iss.path] : [${re}] - }))); - } - - if (${Q}.value === undefined) { - if (${re} in input) { - newResult[${re}] = undefined; - } - } else { - newResult[${re}] = ${Q}.value; - } - - `)}R.write("payload.value = newResult;"),R.write("return payload;");const $=R.compile();return(H,Q)=>$(C,H,Q)};let g;const b=ZH,w=!cGt.jitless,S=w&&vjn.value,k=i.catchall;let _;n._zod.parse=(C,R)=>{_??(_=c.value);const M=C.value;return b(M)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),k?kGt([],M,C,R,_,n):C):a(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:M,inst:n}),C)}});function E9t(n,i,a,c){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!HM(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:a,errors:n.map(g=>g.issues.map(b=>iN(b,c,rN())))}),i)}const xGt=cn("$ZodUnion",(n,i)=>{Wu.init(n,i),Ys(n._zod,"optin",()=>i.options.some(d=>d._zod.optin==="optional")?"optional":void 0),Ys(n._zod,"optout",()=>i.options.some(d=>d._zod.optout==="optional")?"optional":void 0),Ys(n._zod,"values",()=>{if(i.options.every(d=>d._zod.values))return new Set(i.options.flatMap(d=>Array.from(d._zod.values)))}),Ys(n._zod,"pattern",()=>{if(i.options.every(d=>d._zod.pattern)){const d=i.options.map(g=>g._zod.pattern);return new RegExp(`^(${d.map(g=>kMe(g.source)).join("|")})$`)}});const a=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(a)return c(d,g);let b=!1;const w=[];for(const E of i.options){const S=E._zod.run({value:d.value,issues:[]},g);if(S instanceof Promise)w.push(S),b=!0;else{if(S.issues.length===0)return S;w.push(S)}}return b?Promise.all(w).then(E=>E9t(E,d,n,g)):E9t(w,d,n,g)}}),cFn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,xGt.init(n,i);const a=n._zod.parse;Ys(n._zod,"propValues",()=>{const d={};for(const g of i.options){const b=g._zod.propValues;if(!b||Object.keys(b).length===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(g)}"`);for(const[w,E]of Object.entries(b)){d[w]||(d[w]=new Set);for(const S of E)d[w].add(S)}}return d});const c=nae(()=>{var b;const d=i.options,g=new Map;for(const w of d){const E=(b=w._zod.propValues)==null?void 0:b[i.discriminator];if(!E||E.size===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(w)}"`);for(const S of E){if(g.has(S))throw new Error(`Duplicate discriminator value "${String(S)}"`);g.set(S,w)}}return g});n._zod.parse=(d,g)=>{const b=d.value;if(!ZH(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=c.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?a(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),lFn=cn("$ZodIntersection",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{const d=a.value,g=i.left._zod.run({value:d,issues:[]},c),b=i.right._zod.run({value:d,issues:[]},c);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>S9t(a,E,S)):S9t(a,g,b)}});function cDe(n,i){if(n===i)return{valid:!0,data:n};if(n instanceof Date&&i instanceof Date&&+n==+i)return{valid:!0,data:n};if(A5(n)&&A5(i)){const a=Object.keys(i),c=Object.keys(n).filter(g=>a.indexOf(g)!==-1),d={...n,...i};for(const g of c){const b=cDe(n[g],i[g]);if(!b.valid)return{valid:!1,mergeErrorPath:[g,...b.mergeErrorPath]};d[g]=b.data}return{valid:!0,data:d}}if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let c=0;cw.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),HM(n))return n;const b=cDe(i.value,a.value);if(!b.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const dFn=cn("$ZodRecord",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{const d=a.value;if(!A5(d))return a.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),a;const g=[],b=i.keyType._zod.values;if(b){a.value={};const w=new Set;for(const S of b)if(typeof S=="string"||typeof S=="number"||typeof S=="symbol"){w.add(typeof S=="number"?S.toString():S);const k=i.valueType._zod.run({value:d[S],issues:[]},c);k instanceof Promise?g.push(k.then(_=>{_.issues.length&&a.issues.push(...zM(S,_.issues)),a.value[S]=_.value})):(k.issues.length&&a.issues.push(...zM(S,k.issues)),a.value[S]=k.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&a.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{a.value={};for(const w of Reflect.ownKeys(d)){if(w==="__proto__")continue;let E=i.keyType._zod.run({value:w,issues:[]},c);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof w=="string"&&yGt.test(w)&&E.issues.length&&E.issues.some(_=>_.code==="invalid_type"&&_.expected==="number")){const _=i.keyType._zod.run({value:Number(w),issues:[]},c);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");_.issues.length===0&&(E=_)}if(E.issues.length){i.mode==="loose"?a.value[w]=d[w]:a.issues.push({code:"invalid_key",origin:"record",issues:E.issues.map(_=>iN(_,c,rN())),input:w,path:[w],inst:n});continue}const k=i.valueType._zod.run({value:d[w],issues:[]},c);k instanceof Promise?g.push(k.then(_=>{_.issues.length&&a.issues.push(...zM(w,_.issues)),a.value[E.value]=_.value})):(k.issues.length&&a.issues.push(...zM(w,k.issues)),a.value[E.value]=k.value)}}return g.length?Promise.all(g).then(()=>a):a}}),fFn=cn("$ZodEnum",(n,i)=>{Wu.init(n,i);const a=lGt(i.entries),c=new Set(a);n._zod.values=c,n._zod.pattern=new RegExp(`^(${a.filter(d=>Ejn.has(typeof d)).map(d=>typeof d=="string"?_5(d):d.toString()).join("|")})$`),n._zod.parse=(d,g)=>{const b=d.value;return c.has(b)||d.issues.push({code:"invalid_value",values:a,input:b,inst:n}),d}}),hFn=cn("$ZodLiteral",(n,i)=>{if(Wu.init(n,i),i.values.length===0)throw new Error("Cannot create literal schema with no valid values");const a=new Set(i.values);n._zod.values=a,n._zod.pattern=new RegExp(`^(${i.values.map(c=>typeof c=="string"?_5(c):c?_5(c.toString()):String(c)).join("|")})$`),n._zod.parse=(c,d)=>{const g=c.value;return a.has(g)||c.issues.push({code:"invalid_value",values:i.values,input:g,inst:n}),c}}),pFn=cn("$ZodTransform",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{if(c.direction==="backward")throw new uGt(n.constructor.name);const d=i.transform(a.value,a);if(c.async)return(d instanceof Promise?d:Promise.resolve(d)).then(b=>(a.value=b,a));if(d instanceof Promise)throw new t5;return a.value=d,a}});function T9t(n,i){return n.issues.length&&i===void 0?{issues:[],value:void 0}:n}const NGt=cn("$ZodOptional",(n,i)=>{Wu.init(n,i),n._zod.optin="optional",n._zod.optout="optional",Ys(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),Ys(n._zod,"pattern",()=>{const a=i.innerType._zod.pattern;return a?new RegExp(`^(${kMe(a.source)})?$`):void 0}),n._zod.parse=(a,c)=>{if(i.innerType._zod.optin==="optional"){const d=i.innerType._zod.run(a,c);return d instanceof Promise?d.then(g=>T9t(g,a.value)):T9t(d,a.value)}return a.value===void 0?a:i.innerType._zod.run(a,c)}}),gFn=cn("$ZodExactOptional",(n,i)=>{NGt.init(n,i),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"pattern",()=>i.innerType._zod.pattern),n._zod.parse=(a,c)=>i.innerType._zod.run(a,c)}),bFn=cn("$ZodNullable",(n,i)=>{Wu.init(n,i),Ys(n._zod,"optin",()=>i.innerType._zod.optin),Ys(n._zod,"optout",()=>i.innerType._zod.optout),Ys(n._zod,"pattern",()=>{const a=i.innerType._zod.pattern;return a?new RegExp(`^(${kMe(a.source)}|null)$`):void 0}),Ys(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),n._zod.parse=(a,c)=>a.value===null?a:i.innerType._zod.run(a,c)}),mFn=cn("$ZodDefault",(n,i)=>{Wu.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(a,c)=>{if(c.direction==="backward")return i.innerType._zod.run(a,c);if(a.value===void 0)return a.value=i.defaultValue,a;const d=i.innerType._zod.run(a,c);return d instanceof Promise?d.then(g=>A9t(g,i)):A9t(d,i)}});function A9t(n,i){return n.value===void 0&&(n.value=i.defaultValue),n}const wFn=cn("$ZodPrefault",(n,i)=>{Wu.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(a,c)=>(c.direction==="backward"||a.value===void 0&&(a.value=i.defaultValue),i.innerType._zod.run(a,c))}),yFn=cn("$ZodNonOptional",(n,i)=>{Wu.init(n,i),Ys(n._zod,"values",()=>{const a=i.innerType._zod.values;return a?new Set([...a].filter(c=>c!==void 0)):void 0}),n._zod.parse=(a,c)=>{const d=i.innerType._zod.run(a,c);return d instanceof Promise?d.then(g=>_9t(g,n)):_9t(d,n)}});function _9t(n,i){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:i}),n}const vFn=cn("$ZodCatch",(n,i)=>{Wu.init(n,i),Ys(n._zod,"optin",()=>i.innerType._zod.optin),Ys(n._zod,"optout",()=>i.innerType._zod.optout),Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(a,c)=>{if(c.direction==="backward")return i.innerType._zod.run(a,c);const d=i.innerType._zod.run(a,c);return d instanceof Promise?d.then(g=>(a.value=g.value,g.issues.length&&(a.value=i.catchValue({...a,error:{issues:g.issues.map(b=>iN(b,c,rN()))},input:a.value}),a.issues=[]),a)):(a.value=d.value,d.issues.length&&(a.value=i.catchValue({...a,error:{issues:d.issues.map(g=>iN(g,c,rN()))},input:a.value}),a.issues=[]),a)}}),EFn=cn("$ZodPipe",(n,i)=>{Wu.init(n,i),Ys(n._zod,"values",()=>i.in._zod.values),Ys(n._zod,"optin",()=>i.in._zod.optin),Ys(n._zod,"optout",()=>i.out._zod.optout),Ys(n._zod,"propValues",()=>i.in._zod.propValues),n._zod.parse=(a,c)=>{if(c.direction==="backward"){const g=i.out._zod.run(a,c);return g instanceof Promise?g.then(b=>yie(b,i.in,c)):yie(g,i.in,c)}const d=i.in._zod.run(a,c);return d instanceof Promise?d.then(g=>yie(g,i.out,c)):yie(d,i.out,c)}});function yie(n,i,a){return n.issues.length?(n.aborted=!0,n):i._zod.run({value:n.value,issues:n.issues},a)}const SFn=cn("$ZodReadonly",(n,i)=>{Wu.init(n,i),Ys(n._zod,"propValues",()=>i.innerType._zod.propValues),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"optin",()=>{var a,c;return(c=(a=i.innerType)==null?void 0:a._zod)==null?void 0:c.optin}),Ys(n._zod,"optout",()=>{var a,c;return(c=(a=i.innerType)==null?void 0:a._zod)==null?void 0:c.optout}),n._zod.parse=(a,c)=>{if(c.direction==="backward")return i.innerType._zod.run(a,c);const d=i.innerType._zod.run(a,c);return d instanceof Promise?d.then(k9t):k9t(d)}});function k9t(n){return n.value=Object.freeze(n.value),n}const TFn=cn("$ZodLazy",(n,i)=>{Wu.init(n,i),Ys(n._zod,"innerType",()=>i.getter()),Ys(n._zod,"pattern",()=>{var a,c;return(c=(a=n._zod.innerType)==null?void 0:a._zod)==null?void 0:c.pattern}),Ys(n._zod,"propValues",()=>{var a,c;return(c=(a=n._zod.innerType)==null?void 0:a._zod)==null?void 0:c.propValues}),Ys(n._zod,"optin",()=>{var a,c;return((c=(a=n._zod.innerType)==null?void 0:a._zod)==null?void 0:c.optin)??void 0}),Ys(n._zod,"optout",()=>{var a,c;return((c=(a=n._zod.innerType)==null?void 0:a._zod)==null?void 0:c.optout)??void 0}),n._zod.parse=(a,c)=>n._zod.innerType._zod.run(a,c)}),AFn=cn("$ZodCustom",(n,i)=>{fb.init(n,i),Wu.init(n,i),n._zod.parse=(a,c)=>a,n._zod.check=a=>{const c=a.value,d=i.fn(c);if(d instanceof Promise)return d.then(g=>x9t(g,a,c,n));x9t(d,a,c,n)}});function x9t(n,i,a,c){if(!n){const d={code:"custom",input:a,inst:c,path:[...c._zod.def.path??[]],continue:!c._zod.def.abort};c._zod.def.params&&(d.params=c._zod.def.params),i.issues.push(QH(d))}}var N9t;class _Fn{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...a){const c=a[0];return this._map.set(i,c),c&&typeof c=="object"&&"id"in c&&this._idmap.set(c.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const a=this._map.get(i);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(i),this}get(i){const a=i._zod.parent;if(a){const c={...this.get(a)??{}};delete c.id;const d={...c,...this._map.get(i)};return Object.keys(d).length?d:void 0}return this._map.get(i)}has(i){return this._map.has(i)}}function kFn(){return new _Fn}(N9t=globalThis).__zod_globalRegistry??(N9t.__zod_globalRegistry=kFn());const JU=globalThis.__zod_globalRegistry;function xFn(n,i){return new n({type:"string",...wi(i)})}function NFn(n,i){return new n({type:"string",format:"email",check:"string_format",abort:!1,...wi(i)})}function C9t(n,i){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...wi(i)})}function CFn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...wi(i)})}function IFn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wi(i)})}function RFn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wi(i)})}function OFn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wi(i)})}function DFn(n,i){return new n({type:"string",format:"url",check:"string_format",abort:!1,...wi(i)})}function LFn(n,i){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...wi(i)})}function MFn(n,i){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...wi(i)})}function PFn(n,i){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...wi(i)})}function jFn(n,i){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...wi(i)})}function FFn(n,i){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...wi(i)})}function $Fn(n,i){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...wi(i)})}function BFn(n,i){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...wi(i)})}function UFn(n,i){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...wi(i)})}function HFn(n,i){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...wi(i)})}function zFn(n,i){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wi(i)})}function GFn(n,i){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wi(i)})}function qFn(n,i){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...wi(i)})}function VFn(n,i){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...wi(i)})}function WFn(n,i){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...wi(i)})}function KFn(n,i){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...wi(i)})}function YFn(n,i){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wi(i)})}function JFn(n,i){return new n({type:"string",format:"date",check:"string_format",...wi(i)})}function XFn(n,i){return new n({type:"string",format:"time",check:"string_format",precision:null,...wi(i)})}function ZFn(n,i){return new n({type:"string",format:"duration",check:"string_format",...wi(i)})}function QFn(n,i){return new n({type:"number",checks:[],...wi(i)})}function e$n(n,i){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...wi(i)})}function t$n(n,i){return new n({type:"boolean",...wi(i)})}function n$n(n,i){return new n({type:"null",...wi(i)})}function r$n(n){return new n({type:"any"})}function i$n(n){return new n({type:"unknown"})}function o$n(n,i){return new n({type:"never",...wi(i)})}function I9t(n,i){return new EGt({check:"less_than",...wi(i),value:n,inclusive:!1})}function jCe(n,i){return new EGt({check:"less_than",...wi(i),value:n,inclusive:!0})}function R9t(n,i){return new SGt({check:"greater_than",...wi(i),value:n,inclusive:!1})}function FCe(n,i){return new SGt({check:"greater_than",...wi(i),value:n,inclusive:!0})}function O9t(n,i){return new g7n({check:"multiple_of",...wi(i),value:n})}function CGt(n,i){return new m7n({check:"max_length",...wi(i),maximum:n})}function Koe(n,i){return new w7n({check:"min_length",...wi(i),minimum:n})}function IGt(n,i){return new y7n({check:"length_equals",...wi(i),length:n})}function s$n(n,i){return new v7n({check:"string_format",format:"regex",...wi(i),pattern:n})}function a$n(n){return new E7n({check:"string_format",format:"lowercase",...wi(n)})}function u$n(n){return new S7n({check:"string_format",format:"uppercase",...wi(n)})}function c$n(n,i){return new T7n({check:"string_format",format:"includes",...wi(i),includes:n})}function l$n(n,i){return new A7n({check:"string_format",format:"starts_with",...wi(i),prefix:n})}function d$n(n,i){return new _7n({check:"string_format",format:"ends_with",...wi(i),suffix:n})}function P5(n){return new k7n({check:"overwrite",tx:n})}function f$n(n){return P5(i=>i.normalize(n))}function h$n(){return P5(n=>n.trim())}function p$n(){return P5(n=>n.toLowerCase())}function g$n(){return P5(n=>n.toUpperCase())}function b$n(){return P5(n=>yjn(n))}function m$n(n,i,a){return new n({type:"array",element:i,...wi(a)})}function w$n(n,i,a){return new n({type:"custom",check:"custom",fn:i,...wi(a)})}function y$n(n){const i=v$n(a=>(a.addIssue=c=>{if(typeof c=="string")a.issues.push(QH(c,a.value,i._zod.def));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=a.value),d.inst??(d.inst=i),d.continue??(d.continue=!i._zod.def.abort),a.issues.push(QH(d))}},n(a.value,a)));return i}function v$n(n,i){const a=new fb({check:"custom",...wi(i)});return a._zod.check=n,a}function RGt(n){let i=(n==null?void 0:n.target)??"draft-2020-12";return i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),{processors:n.processors??{},metadataRegistry:(n==null?void 0:n.metadata)??JU,target:i,unrepresentable:(n==null?void 0:n.unrepresentable)??"throw",override:(n==null?void 0:n.override)??(()=>{}),io:(n==null?void 0:n.io)??"output",counter:0,seen:new Map,cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0}}function gd(n,i,a={path:[],schemaPath:[]}){var k,_;var c;const d=n._zod.def,g=i.seen.get(n);if(g)return g.count++,a.schemaPath.includes(n)&&(g.cycle=a.path),g.schema;const b={schema:{},count:1,cycle:void 0,path:a.path};i.seen.set(n,b);const w=(_=(k=n._zod).toJSONSchema)==null?void 0:_.call(k);if(w)b.schema=w;else{const C={...a,schemaPath:[...a.schemaPath,n],path:a.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(i,b.schema,C);else{const M=b.schema,D=i.processors[d.type];if(!D)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${d.type}`);D(n,i,M,C)}const R=n._zod.parent;R&&(b.ref||(b.ref=R),gd(R,i,C),i.seen.get(R).isParent=!0)}const E=i.metadataRegistry.get(n);return E&&Object.assign(b.schema,E),i.io==="input"&&Fg(n)&&(delete b.schema.examples,delete b.schema.default),i.io==="input"&&b.schema._prefault&&((c=b.schema).default??(c.default=b.schema._prefault)),delete b.schema._prefault,i.seen.get(n).schema}function OGt(n,i){var b,w,E,S;const a=n.seen.get(i);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=new Map;for(const k of n.seen.entries()){const _=(b=n.metadataRegistry.get(k[0]))==null?void 0:b.id;if(_){const C=c.get(_);if(C&&C!==k[0])throw new Error(`Duplicate schema id "${_}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);c.set(_,k[0])}}const d=k=>{var D;const _=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const B=(D=n.external.registry.get(k[0]))==null?void 0:D.id,F=n.external.uri??(P=>P);if(B)return{ref:F(B)};const $=k[1].defId??k[1].schema.id??`schema${n.counter++}`;return k[1].defId=$,{defId:$,ref:`${F("__shared")}#/${_}/${$}`}}if(k[1]===a)return{ref:"#"};const R=`#/${_}/`,M=k[1].schema.id??`__schema${n.counter++}`;return{defId:M,ref:R+M}},g=k=>{if(k[1].schema.$ref)return;const _=k[1],{ref:C,defId:R}=d(k);_.def={..._.schema},R&&(_.defId=R);const M=_.schema;for(const D in M)delete M[D];M.$ref=C};if(n.cycles==="throw")for(const k of n.seen.entries()){const _=k[1];if(_.cycle)throw new Error(`Cycle detected: #/${(w=_.cycle)==null?void 0:w.join("/")}/ - -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const k of n.seen.entries()){const _=k[1];if(i===k[0]){g(k);continue}if(n.external){const R=(E=n.external.registry.get(k[0]))==null?void 0:E.id;if(i!==k[0]&&R){g(k);continue}}if((S=n.metadataRegistry.get(k[0]))==null?void 0:S.id){g(k);continue}if(_.cycle){g(k);continue}if(_.count>1&&n.reused==="ref"){g(k);continue}}}function DGt(n,i){var b,w,E;const a=n.seen.get(i);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=S=>{const k=n.seen.get(S);if(k.ref===null)return;const _=k.def??k.schema,C={..._},R=k.ref;if(k.ref=null,R){c(R);const D=n.seen.get(R),B=D.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(_.allOf=_.allOf??[],_.allOf.push(B)):Object.assign(_,B),Object.assign(_,C),S._zod.parent===R)for(const $ in _)$==="$ref"||$==="allOf"||$ in C||delete _[$];if(B.$ref)for(const $ in _)$==="$ref"||$==="allOf"||$ in D.def&&JSON.stringify(_[$])===JSON.stringify(D.def[$])&&delete _[$]}const M=S._zod.parent;if(M&&M!==R){c(M);const D=n.seen.get(M);if(D!=null&&D.schema.$ref&&(_.$ref=D.schema.$ref,D.def))for(const B in _)B==="$ref"||B==="allOf"||B in D.def&&JSON.stringify(_[B])===JSON.stringify(D.def[B])&&delete _[B]}n.override({zodSchema:S,jsonSchema:_,path:k.path??[]})};for(const S of[...n.seen.entries()].reverse())c(S[0]);const d={};if(n.target==="draft-2020-12"?d.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?d.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?d.$schema="http://json-schema.org/draft-04/schema#":n.target,(b=n.external)!=null&&b.uri){const S=(w=n.external.registry.get(i))==null?void 0:w.id;if(!S)throw new Error("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,a.def??a.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const k=S[1];k.def&&k.defId&&(g[k.defId]=k.def)}n.external||Object.keys(g).length>0&&(n.target==="draft-2020-12"?d.$defs=g:d.definitions=g);try{const S=JSON.parse(JSON.stringify(d));return Object.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:Yoe(i,"input",n.processors),output:Yoe(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function Fg(n,i){const a=i??{seen:new Set};if(a.seen.has(n))return!1;a.seen.add(n);const c=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return Fg(c.element,a);if(c.type==="set")return Fg(c.valueType,a);if(c.type==="lazy")return Fg(c.getter(),a);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return Fg(c.innerType,a);if(c.type==="intersection")return Fg(c.left,a)||Fg(c.right,a);if(c.type==="record"||c.type==="map")return Fg(c.keyType,a)||Fg(c.valueType,a);if(c.type==="pipe")return Fg(c.in,a)||Fg(c.out,a);if(c.type==="object"){for(const d in c.shape)if(Fg(c.shape[d],a))return!0;return!1}if(c.type==="union"){for(const d of c.options)if(Fg(d,a))return!0;return!1}if(c.type==="tuple"){for(const d of c.items)if(Fg(d,a))return!0;return!!(c.rest&&Fg(c.rest,a))}return!1}const E$n=(n,i={})=>a=>{const c=RGt({...a,processors:i});return gd(n,c),OGt(c,n),DGt(c,n)},Yoe=(n,i,a={})=>c=>{const{libraryOptions:d,target:g}=c??{},b=RGt({...d??{},target:g,io:i,processors:a});return gd(n,b),OGt(b,n),DGt(b,n)},S$n={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},T$n=(n,i,a,c)=>{const d=a;d.type="string";const{minimum:g,maximum:b,format:w,patterns:E,contentEncoding:S}=n._zod.bag;if(typeof g=="number"&&(d.minLength=g),typeof b=="number"&&(d.maxLength=b),w&&(d.format=S$n[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const k=[...E];k.length===1?d.pattern=k[0].source:k.length>1&&(d.allOf=[...k.map(_=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:_.source}))])}},A$n=(n,i,a,c)=>{const d=a,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:k}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=k,d.exclusiveMinimum=!0):d.exclusiveMinimum=k),typeof g=="number"&&(d.minimum=g,typeof k=="number"&&i.target!=="draft-04"&&(k>=g?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof b=="number"&&(d.maximum=b,typeof S=="number"&&i.target!=="draft-04"&&(S<=b?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E)},_$n=(n,i,a,c)=>{a.type="boolean"},k$n=(n,i,a,c)=>{i.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},x$n=(n,i,a,c)=>{a.not={}},N$n=(n,i,a,c)=>{},C$n=(n,i,a,c)=>{},I$n=(n,i,a,c)=>{const d=n._zod.def,g=lGt(d.entries);g.every(b=>typeof b=="number")&&(a.type="number"),g.every(b=>typeof b=="string")&&(a.type="string"),a.enum=g},R$n=(n,i,a,c)=>{const d=n._zod.def,g=[];for(const b of d.values)if(b===void 0){if(i.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(i.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");g.push(Number(b))}else g.push(b);if(g.length!==0)if(g.length===1){const b=g[0];a.type=b===null?"null":typeof b,i.target==="draft-04"||i.target==="openapi-3.0"?a.enum=[b]:a.const=b}else g.every(b=>typeof b=="number")&&(a.type="number"),g.every(b=>typeof b=="string")&&(a.type="string"),g.every(b=>typeof b=="boolean")&&(a.type="boolean"),g.every(b=>b===null)&&(a.type="null"),a.enum=g},O$n=(n,i,a,c)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},D$n=(n,i,a,c)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},L$n=(n,i,a,c)=>{const d=a,g=n._zod.def,{minimum:b,maximum:w}=n._zod.bag;typeof b=="number"&&(d.minItems=b),typeof w=="number"&&(d.maxItems=w),d.type="array",d.items=gd(g.element,i,{...c,path:[...c.path,"items"]})},M$n=(n,i,a,c)=>{var S;const d=a,g=n._zod.def;d.type="object",d.properties={};const b=g.shape;for(const k in b)d.properties[k]=gd(b[k],i,{...c,path:[...c.path,"properties",k]});const w=new Set(Object.keys(b)),E=new Set([...w].filter(k=>{const _=g.shape[k]._zod;return i.io==="input"?_.optin===void 0:_.optout===void 0}));E.size>0&&(d.required=Array.from(E)),((S=g.catchall)==null?void 0:S._zod.def.type)==="never"?d.additionalProperties=!1:g.catchall?g.catchall&&(d.additionalProperties=gd(g.catchall,i,{...c,path:[...c.path,"additionalProperties"]})):i.io==="output"&&(d.additionalProperties=!1)},P$n=(n,i,a,c)=>{const d=n._zod.def,g=d.inclusive===!1,b=d.options.map((w,E)=>gd(w,i,{...c,path:[...c.path,g?"oneOf":"anyOf",E]}));g?a.oneOf=b:a.anyOf=b},j$n=(n,i,a,c)=>{const d=n._zod.def,g=gd(d.left,i,{...c,path:[...c.path,"allOf",0]}),b=gd(d.right,i,{...c,path:[...c.path,"allOf",1]}),w=S=>"allOf"in S&&Object.keys(S).length===1,E=[...w(g)?g.allOf:[g],...w(b)?b.allOf:[b]];a.allOf=E},F$n=(n,i,a,c)=>{const d=a,g=n._zod.def;d.type="object";const b=g.keyType,w=b._zod.bag,E=w==null?void 0:w.patterns;if(g.mode==="loose"&&E&&E.size>0){const k=gd(g.valueType,i,{...c,path:[...c.path,"patternProperties","*"]});d.patternProperties={};for(const _ of E)d.patternProperties[_.source]=k}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(d.propertyNames=gd(g.keyType,i,{...c,path:[...c.path,"propertyNames"]})),d.additionalProperties=gd(g.valueType,i,{...c,path:[...c.path,"additionalProperties"]});const S=b._zod.values;if(S){const k=[...S].filter(_=>typeof _=="string"||typeof _=="number");k.length>0&&(d.required=k)}},$$n=(n,i,a,c)=>{const d=n._zod.def,g=gd(d.innerType,i,c),b=i.seen.get(n);i.target==="openapi-3.0"?(b.ref=d.innerType,a.nullable=!0):a.anyOf=[g,{type:"null"}]},B$n=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},U$n=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,a.default=JSON.parse(JSON.stringify(d.defaultValue))},H$n=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,i.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(d.defaultValue)))},z$n=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType;let b;try{b=d.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=b},G$n=(n,i,a,c)=>{const d=n._zod.def,g=i.io==="input"?d.in._zod.def.type==="transform"?d.out:d.in:d.out;gd(g,i,c);const b=i.seen.get(n);b.ref=g},q$n=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,a.readOnly=!0},LGt=(n,i,a,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},V$n=(n,i,a,c)=>{const d=n._zod.innerType;gd(d,i,c);const g=i.seen.get(n);g.ref=d},W$n=cn("ZodISODateTime",(n,i)=>{B7n.init(n,i),hl.init(n,i)});function K$n(n){return YFn(W$n,n)}const Y$n=cn("ZodISODate",(n,i)=>{U7n.init(n,i),hl.init(n,i)});function J$n(n){return JFn(Y$n,n)}const X$n=cn("ZodISOTime",(n,i)=>{H7n.init(n,i),hl.init(n,i)});function Z$n(n){return XFn(X$n,n)}const Q$n=cn("ZodISODuration",(n,i)=>{z7n.init(n,i),hl.init(n,i)});function eBn(n){return ZFn(Q$n,n)}const MGt=(n,i)=>{pGt.init(n,i),n.name="ZodError",Object.defineProperties(n,{format:{value:a=>Ojn(n,a)},flatten:{value:a=>Rjn(n,a)},addIssue:{value:a=>{n.issues.push(a),n.message=JSON.stringify(n.issues,uDe,2)}},addIssues:{value:a=>{n.issues.push(...a),n.message=JSON.stringify(n.issues,uDe,2)}},isEmpty:{get(){return n.issues.length===0}}})},tBn=cn("ZodError",MGt),Aw=cn("ZodError",MGt,{Parent:Error}),nBn=NMe(Aw),rBn=CMe(Aw),iBn=rae(Aw),oBn=iae(Aw),sBn=Mjn(Aw),aBn=Pjn(Aw),uBn=jjn(Aw),cBn=Fjn(Aw),lBn=$jn(Aw),dBn=Bjn(Aw),fBn=Ujn(Aw),hBn=Hjn(Aw),Ku=cn("ZodType",(n,i)=>(Wu.init(n,i),Object.assign(n["~standard"],{jsonSchema:{input:Yoe(n,"input"),output:Yoe(n,"output")}}),n.toJSONSchema=E$n(n,{}),n.def=i,n.type=i.type,Object.defineProperty(n,"_def",{value:i}),n.check=(...a)=>n.clone(mN(i,{checks:[...i.checks??[],...a.map(c=>typeof c=="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]}),{parent:!0}),n.with=n.check,n.clone=(a,c)=>wN(n,a,c),n.brand=()=>n,n.register=(a,c)=>(a.add(n,c),n),n.parse=(a,c)=>nBn(n,a,c,{callee:n.parse}),n.safeParse=(a,c)=>iBn(n,a,c),n.parseAsync=async(a,c)=>rBn(n,a,c,{callee:n.parseAsync}),n.safeParseAsync=async(a,c)=>oBn(n,a,c),n.spa=n.safeParseAsync,n.encode=(a,c)=>sBn(n,a,c),n.decode=(a,c)=>aBn(n,a,c),n.encodeAsync=async(a,c)=>uBn(n,a,c),n.decodeAsync=async(a,c)=>cBn(n,a,c),n.safeEncode=(a,c)=>lBn(n,a,c),n.safeDecode=(a,c)=>dBn(n,a,c),n.safeEncodeAsync=async(a,c)=>fBn(n,a,c),n.safeDecodeAsync=async(a,c)=>hBn(n,a,c),n.refine=(a,c)=>n.check(lUn(a,c)),n.superRefine=a=>n.check(dUn(a)),n.overwrite=a=>n.check(P5(a)),n.optional=()=>P9t(n),n.exactOptional=()=>JBn(n),n.nullable=()=>j9t(n),n.nullish=()=>P9t(j9t(n)),n.nonoptional=a=>nUn(n,a),n.array=()=>ss(n),n.or=a=>ls([n,a]),n.and=a=>GBn(n,a),n.transform=a=>F9t(n,KBn(a)),n.default=a=>QBn(n,a),n.prefault=a=>tUn(n,a),n.catch=a=>iUn(n,a),n.pipe=a=>F9t(n,a),n.readonly=()=>aUn(n),n.describe=a=>{const c=n.clone();return JU.add(c,{description:a}),c},Object.defineProperty(n,"description",{get(){var a;return(a=JU.get(n))==null?void 0:a.description},configurable:!0}),n.meta=(...a)=>{if(a.length===0)return JU.get(n);const c=n.clone();return JU.add(c,a[0]),c},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=a=>a(n),n)),PGt=cn("_ZodString",(n,i)=>{IMe.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(c,d,g)=>T$n(n,c,d);const a=n._zod.bag;n.format=a.format??null,n.minLength=a.minimum??null,n.maxLength=a.maximum??null,n.regex=(...c)=>n.check(s$n(...c)),n.includes=(...c)=>n.check(c$n(...c)),n.startsWith=(...c)=>n.check(l$n(...c)),n.endsWith=(...c)=>n.check(d$n(...c)),n.min=(...c)=>n.check(Koe(...c)),n.max=(...c)=>n.check(CGt(...c)),n.length=(...c)=>n.check(IGt(...c)),n.nonempty=(...c)=>n.check(Koe(1,...c)),n.lowercase=c=>n.check(a$n(c)),n.uppercase=c=>n.check(u$n(c)),n.trim=()=>n.check(h$n()),n.normalize=(...c)=>n.check(f$n(...c)),n.toLowerCase=()=>n.check(p$n()),n.toUpperCase=()=>n.check(g$n()),n.slugify=()=>n.check(b$n())}),pBn=cn("ZodString",(n,i)=>{IMe.init(n,i),PGt.init(n,i),n.email=a=>n.check(NFn(gBn,a)),n.url=a=>n.check(DFn(bBn,a)),n.jwt=a=>n.check(KFn(RBn,a)),n.emoji=a=>n.check(LFn(mBn,a)),n.guid=a=>n.check(C9t(D9t,a)),n.uuid=a=>n.check(CFn(vie,a)),n.uuidv4=a=>n.check(IFn(vie,a)),n.uuidv6=a=>n.check(RFn(vie,a)),n.uuidv7=a=>n.check(OFn(vie,a)),n.nanoid=a=>n.check(MFn(wBn,a)),n.guid=a=>n.check(C9t(D9t,a)),n.cuid=a=>n.check(PFn(yBn,a)),n.cuid2=a=>n.check(jFn(vBn,a)),n.ulid=a=>n.check(FFn(EBn,a)),n.base64=a=>n.check(qFn(NBn,a)),n.base64url=a=>n.check(VFn(CBn,a)),n.xid=a=>n.check($Fn(SBn,a)),n.ksuid=a=>n.check(BFn(TBn,a)),n.ipv4=a=>n.check(UFn(ABn,a)),n.ipv6=a=>n.check(HFn(_Bn,a)),n.cidrv4=a=>n.check(zFn(kBn,a)),n.cidrv6=a=>n.check(GFn(xBn,a)),n.e164=a=>n.check(WFn(IBn,a)),n.datetime=a=>n.check(K$n(a)),n.date=a=>n.check(J$n(a)),n.time=a=>n.check(Z$n(a)),n.duration=a=>n.check(eBn(a))});function nn(n){return xFn(pBn,n)}const hl=cn("ZodStringFormat",(n,i)=>{Pc.init(n,i),PGt.init(n,i)}),gBn=cn("ZodEmail",(n,i)=>{R7n.init(n,i),hl.init(n,i)}),D9t=cn("ZodGUID",(n,i)=>{C7n.init(n,i),hl.init(n,i)}),vie=cn("ZodUUID",(n,i)=>{I7n.init(n,i),hl.init(n,i)}),bBn=cn("ZodURL",(n,i)=>{O7n.init(n,i),hl.init(n,i)}),mBn=cn("ZodEmoji",(n,i)=>{D7n.init(n,i),hl.init(n,i)}),wBn=cn("ZodNanoID",(n,i)=>{L7n.init(n,i),hl.init(n,i)}),yBn=cn("ZodCUID",(n,i)=>{M7n.init(n,i),hl.init(n,i)}),vBn=cn("ZodCUID2",(n,i)=>{P7n.init(n,i),hl.init(n,i)}),EBn=cn("ZodULID",(n,i)=>{j7n.init(n,i),hl.init(n,i)}),SBn=cn("ZodXID",(n,i)=>{F7n.init(n,i),hl.init(n,i)}),TBn=cn("ZodKSUID",(n,i)=>{$7n.init(n,i),hl.init(n,i)}),ABn=cn("ZodIPv4",(n,i)=>{G7n.init(n,i),hl.init(n,i)}),_Bn=cn("ZodIPv6",(n,i)=>{q7n.init(n,i),hl.init(n,i)}),kBn=cn("ZodCIDRv4",(n,i)=>{V7n.init(n,i),hl.init(n,i)}),xBn=cn("ZodCIDRv6",(n,i)=>{W7n.init(n,i),hl.init(n,i)}),NBn=cn("ZodBase64",(n,i)=>{K7n.init(n,i),hl.init(n,i)}),CBn=cn("ZodBase64URL",(n,i)=>{J7n.init(n,i),hl.init(n,i)}),IBn=cn("ZodE164",(n,i)=>{X7n.init(n,i),hl.init(n,i)}),RBn=cn("ZodJWT",(n,i)=>{Q7n.init(n,i),hl.init(n,i)}),jGt=cn("ZodNumber",(n,i)=>{AGt.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(c,d,g)=>A$n(n,c,d),n.gt=(c,d)=>n.check(R9t(c,d)),n.gte=(c,d)=>n.check(FCe(c,d)),n.min=(c,d)=>n.check(FCe(c,d)),n.lt=(c,d)=>n.check(I9t(c,d)),n.lte=(c,d)=>n.check(jCe(c,d)),n.max=(c,d)=>n.check(jCe(c,d)),n.int=c=>n.check(L9t(c)),n.safe=c=>n.check(L9t(c)),n.positive=c=>n.check(R9t(0,c)),n.nonnegative=c=>n.check(FCe(0,c)),n.negative=c=>n.check(I9t(0,c)),n.nonpositive=c=>n.check(jCe(0,c)),n.multipleOf=(c,d)=>n.check(O9t(c,d)),n.step=(c,d)=>n.check(O9t(c,d)),n.finite=()=>n;const a=n._zod.bag;n.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),n.isFinite=!0,n.format=a.format??null});function $a(n){return QFn(jGt,n)}const OBn=cn("ZodNumberFormat",(n,i)=>{eFn.init(n,i),jGt.init(n,i)});function L9t(n){return e$n(OBn,n)}const DBn=cn("ZodBoolean",(n,i)=>{tFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>_$n(n,a,c)});function vw(n){return t$n(DBn,n)}const LBn=cn("ZodNull",(n,i)=>{nFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>k$n(n,a,c)});function M9t(n){return n$n(LBn,n)}const MBn=cn("ZodAny",(n,i)=>{rFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>N$n()});function PBn(){return r$n(MBn)}const jBn=cn("ZodUnknown",(n,i)=>{iFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>C$n()});function lc(){return i$n(jBn)}const FBn=cn("ZodNever",(n,i)=>{oFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>x$n(n,a,c)});function $Bn(n){return o$n(FBn,n)}const BBn=cn("ZodArray",(n,i)=>{sFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>L$n(n,a,c,d),n.element=i.element,n.min=(a,c)=>n.check(Koe(a,c)),n.nonempty=a=>n.check(Koe(1,a)),n.max=(a,c)=>n.check(CGt(a,c)),n.length=(a,c)=>n.check(IGt(a,c)),n.unwrap=()=>n.element});function ss(n,i){return m$n(BBn,n,i)}const FGt=cn("ZodObject",(n,i)=>{uFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>M$n(n,a,c,d),Ys(n,"shape",()=>i.shape),n.keyof=()=>zg(Object.keys(n._zod.def.shape)),n.catchall=a=>n.clone({...n._zod.def,catchall:a}),n.passthrough=()=>n.clone({...n._zod.def,catchall:lc()}),n.loose=()=>n.clone({...n._zod.def,catchall:lc()}),n.strict=()=>n.clone({...n._zod.def,catchall:$Bn()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=a=>kjn(n,a),n.safeExtend=a=>xjn(n,a),n.merge=a=>Njn(n,a),n.pick=a=>Ajn(n,a),n.omit=a=>_jn(n,a),n.partial=(...a)=>Cjn(BGt,n,a[0]),n.required=(...a)=>Ijn(UGt,n,a[0])});function Su(n,i){const a={type:"object",shape:n??{},...wi(i)};return new FGt(a)}function Fp(n,i){return new FGt({type:"object",shape:n,catchall:lc(),...wi(i)})}const $Gt=cn("ZodUnion",(n,i)=>{xGt.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>P$n(n,a,c,d),n.options=i.options});function ls(n,i){return new $Gt({type:"union",options:n,...wi(i)})}const UBn=cn("ZodDiscriminatedUnion",(n,i)=>{$Gt.init(n,i),cFn.init(n,i)});function HBn(n,i,a){return new UBn({type:"union",options:i,discriminator:n,...wi(a)})}const zBn=cn("ZodIntersection",(n,i)=>{lFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>j$n(n,a,c,d)});function GBn(n,i){return new zBn({type:"intersection",left:n,right:i})}const qBn=cn("ZodRecord",(n,i)=>{dFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>F$n(n,a,c,d),n.keyType=i.keyType,n.valueType=i.valueType});function th(n,i,a){return new qBn({type:"record",keyType:n,valueType:i,...wi(a)})}const lDe=cn("ZodEnum",(n,i)=>{fFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(c,d,g)=>I$n(n,c,d),n.enum=i.entries,n.options=Object.values(i.entries);const a=new Set(Object.keys(i.entries));n.extract=(c,d)=>{const g={};for(const b of c)if(a.has(b))g[b]=i.entries[b];else throw new Error(`Key ${b} not found in enum`);return new lDe({...i,checks:[],...wi(d),entries:g})},n.exclude=(c,d)=>{const g={...i.entries};for(const b of c)if(a.has(b))delete g[b];else throw new Error(`Key ${b} not found in enum`);return new lDe({...i,checks:[],...wi(d),entries:g})}});function zg(n,i){const a=Array.isArray(n)?Object.fromEntries(n.map(c=>[c,c])):n;return new lDe({type:"enum",entries:a,...wi(i)})}const VBn=cn("ZodLiteral",(n,i)=>{hFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>R$n(n,a,c),n.values=new Set(i.values),Object.defineProperty(n,"value",{get(){if(i.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function yN(n,i){return new VBn({type:"literal",values:Array.isArray(n)?n:[n],...wi(i)})}const WBn=cn("ZodTransform",(n,i)=>{pFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>D$n(n,a),n._zod.parse=(a,c)=>{if(c.direction==="backward")throw new uGt(n.constructor.name);a.addIssue=g=>{if(typeof g=="string")a.issues.push(QH(g,a.value,i));else{const b=g;b.fatal&&(b.continue=!1),b.code??(b.code="custom"),b.input??(b.input=a.value),b.inst??(b.inst=n),a.issues.push(QH(b))}};const d=i.transform(a.value,a);return d instanceof Promise?d.then(g=>(a.value=g,a)):(a.value=d,a)}});function KBn(n){return new WBn({type:"transform",transform:n})}const BGt=cn("ZodOptional",(n,i)=>{NGt.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>LGt(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function P9t(n){return new BGt({type:"optional",innerType:n})}const YBn=cn("ZodExactOptional",(n,i)=>{gFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>LGt(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function JBn(n){return new YBn({type:"optional",innerType:n})}const XBn=cn("ZodNullable",(n,i)=>{bFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>$$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function j9t(n){return new XBn({type:"nullable",innerType:n})}const ZBn=cn("ZodDefault",(n,i)=>{mFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>U$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function QBn(n,i){return new ZBn({type:"default",innerType:n,get defaultValue(){return typeof i=="function"?i():fGt(i)}})}const eUn=cn("ZodPrefault",(n,i)=>{wFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>H$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function tUn(n,i){return new eUn({type:"prefault",innerType:n,get defaultValue(){return typeof i=="function"?i():fGt(i)}})}const UGt=cn("ZodNonOptional",(n,i)=>{yFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>B$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function nUn(n,i){return new UGt({type:"nonoptional",innerType:n,...wi(i)})}const rUn=cn("ZodCatch",(n,i)=>{vFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>z$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function iUn(n,i){return new rUn({type:"catch",innerType:n,catchValue:typeof i=="function"?i:()=>i})}const oUn=cn("ZodPipe",(n,i)=>{EFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>G$n(n,a,c,d),n.in=i.in,n.out=i.out});function F9t(n,i){return new oUn({type:"pipe",in:n,out:i})}const sUn=cn("ZodReadonly",(n,i)=>{SFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>q$n(n,a,c,d),n.unwrap=()=>n._zod.def.innerType});function aUn(n){return new sUn({type:"readonly",innerType:n})}const uUn=cn("ZodLazy",(n,i)=>{TFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>V$n(n,a,c,d),n.unwrap=()=>n._zod.def.getter()});function RMe(n){return new uUn({type:"lazy",getter:n})}const cUn=cn("ZodCustom",(n,i)=>{AFn.init(n,i),Ku.init(n,i),n._zod.processJSONSchema=(a,c,d)=>O$n(n,a)});function lUn(n,i={}){return w$n(cUn,n,i)}function dUn(n){return y$n(n)}const Pl={custom:"custom"};nn().min(1).brand();const $9t=nn().regex(/^[a-z_]+\.[a-z0-9_]+$/,"Entity ID must be in format: domain.entity_name (e.g., light.living_room)"),j5=Su({x:$a(),y:$a()});Su({id:nn(),type:zg(["source","target"]),position:zg(["top","bottom","left","right"])});const fUn=zg(["single","restart","queued","parallel"]),hUn=zg(["silent","warning","critical"]),HGt=Su({id:nn().min(1),source:nn().min(1),target:nn().min(1),sourceHandle:nn().nullable().optional(),targetHandle:nn().nullable().optional(),label:nn().optional(),animated:vw().optional()});HGt.extend({sourceHandle:zg(["true","false"])});const pUn=["sun","mon","tue","wed","thu","fri","sat"],Bg=Fp({alias:nn().optional(),condition:nn().optional(),enabled:vw().optional(),entity_id:ls([nn(),ss(nn())]).optional(),state:ls([nn(),ss(nn())]).optional(),value_template:nn().optional(),after:nn().optional(),before:nn().optional(),weekday:ss(zg(pUn)).optional(),after_offset:nn().optional(),before_offset:nn().optional(),zone:nn().optional(),conditions:ss(RMe(()=>Bg)).optional(),above:ls([nn(),$a()]).optional(),below:ls([nn(),$a()]).optional(),attribute:nn().optional(),id:ls([nn(),ss(nn())]).optional()});zg(["event","template","zone","state","time","time_pattern","mqtt","webhook","sun","numeric_state","homeassistant","device"]);const oN=Fp({alias:nn().optional(),platform:nn().optional(),trigger:nn().optional(),target:Fp({entity_id:ls([nn(),ss(nn())])}).optional(),options:Fp({}).optional(),entity_id:ls([nn(),ss(nn())]).optional(),from:ls([nn(),ss(nn()),M9t()]).optional(),to:ls([nn(),ss(nn()),M9t()]).optional(),for:ls([nn(),Su({hours:$a().optional(),minutes:$a().optional(),seconds:$a().optional()})]).optional(),at:ls([nn(),ss(nn())]).optional(),event_type:nn().optional(),event_data:th(nn(),lc()).optional(),above:ls([nn(),$a()]).optional(),below:ls([nn(),$a()]).optional(),value_template:nn().optional(),template:nn().optional(),webhook_id:nn().optional(),zone:nn().optional(),topic:nn().optional(),payload:nn().optional(),command:ls([nn(),ss(nn())]).optional()}).transform(n=>{const i=n.trigger??n.platform??"state",{platform:a,...c}=n;return{...c,trigger:i}}),B9t=Su({mode:zg(["single","restart","queued","parallel"]).default("single"),max:$a().optional(),max_exceeded:zg(["silent","warning","critical"]).optional(),initial_state:vw().default(!1),hide_entity:vw().optional(),trace:Su({stored_traces:$a().optional()}).optional()});function gUn(n){return typeof n=="object"&&n!==null&&("platform"in n||"trigger"in n||"entity_id"in n)}function bUn(n){return typeof n=="object"&&n!==null&&("condition"in n||"entity_id"in n||"state"in n)}function OMe(n){return typeof n=="object"&&n!==null&&"type"in n&&"device_id"in n&&"domain"in n}const zGt=Su({version:$a(),nodes:th(nn(),Su({x:$a(),y:$a()})),graph_id:nn(),graph_version:$a(),strategy:zg(["native","state-machine"])}),U9t=RMe(()=>Su({conditions:ls([Bg,ss(Bg)]),sequence:ls([jm,ss(jm)]),alias:nn().optional()})),jm=RMe(()=>Fp({service:nn().optional(),action:nn().optional(),event:nn().optional(),event_data:th(nn(),lc()).optional(),id:nn().optional(),alias:nn().optional(),target:th(nn(),lc()).optional(),data:th(nn(),lc()).optional(),data_template:th(nn(),lc()).optional(),response_variable:nn().optional(),continue_on_error:vw().optional(),enabled:vw().optional(),delay:ls([nn(),$a(),th(nn(),$a())]).optional(),wait_template:ls([nn(),th(nn(),lc())]).optional(),timeout:ls([nn(),$a(),th(nn(),$a())]).optional(),continue_on_timeout:vw().optional(),wait_for_trigger:ls([oN,ss(oN)]).optional(),choose:ls([U9t,ss(U9t)]).optional(),default:ss(jm).optional(),if:ss(Bg).optional(),then:ss(jm).optional(),else:ss(jm).optional(),variables:th(nn(),lc()).optional(),repeat:Su({count:ls([nn(),$a()]).optional(),while:ss(Bg).optional(),until:ls([nn(),ss(nn()),ss(Bg)]).optional(),sequence:ss(jm)}).optional()})),mUn=Su({id:nn().optional(),alias:nn().optional(),description:nn().optional(),trigger_variables:th(nn(),lc()).optional(),trigger:ls([oN,ss(oN)]).optional(),condition:ls([Bg,ss(Bg)]).optional(),action:ls([jm,ss(jm)]),mode:zg(["single","restart","queued","parallel"]).optional().default("single"),max:$a().optional(),max_exceeded:zg(["silent","warning"]).optional(),initial_state:vw().optional(),hide_entity:vw().optional(),trace:th(nn(),lc()).optional(),variables:Su({_cafe_metadata:zGt.optional()}).catchall(lc()).optional()});mUn.omit({action:!0}).extend({action:ls([jm,ss(jm)]).optional(),sequence:ls([jm,ss(jm)])});const wUn=Fp({id:nn().optional(),alias:nn().optional(),delay:ls([nn(),Fp({hours:$a().optional(),minutes:$a().optional(),seconds:$a().optional(),milliseconds:$a().optional()})])}),yUn=Fp({id:nn().optional(),alias:nn().optional(),wait_template:nn().optional(),wait_for_trigger:ss(oN).optional(),timeout:ls([nn(),Fp({hours:$a().optional(),minutes:$a().optional(),seconds:$a().optional(),milliseconds:$a().optional()})]).optional(),continue_on_timeout:vw().optional()}).refine(n=>n.wait_template===void 0||n.wait_for_trigger===void 0,{message:"Provide either `wait_template` or `wait_for_trigger`, but not both.",path:["wait_template"]}),vUn=Fp({id:nn().optional(),alias:nn().optional(),variables:th(nn(),lc())}),EUn=Fp({id:nn().min(1),type:yN("trigger"),position:j5,data:oN}),SUn=Fp({id:nn().min(1),type:yN("condition"),position:j5,data:Bg}),TUn=Fp({id:nn().min(1),type:yN("action"),position:j5,data:jm}),AUn=Fp({id:nn().min(1),type:yN("delay"),position:j5,data:wUn}),_Un=Fp({id:nn().min(1),type:yN("wait"),position:j5,data:yUn}),kUn=Fp({id:nn().min(1),type:yN("set_variables"),position:j5,data:vUn}),xUn=HBn("type",[EUn,SUn,TUn,AUn,_Un,kUn]),NUn=Su({mode:fUn.default("single"),max_exceeded:hUn.optional(),max:$a().positive().optional(),initial_state:vw().default(!0),hide_entity:vw().optional(),trace:Su({stored_traces:$a().optional()}).optional()}),CUn=Su({automation_id:nn(),entity_id:nn(),alias:nn(),node_prefix:nn(),imported_at:nn()}),IUn=Su({mode:yN("merged"),sources:ss(CUn)}),GGt=Su({id:nn().uuid(),name:nn().min(1),description:nn().optional(),nodes:ss(xUn),edges:ss(HGt),metadata:NUn.optional(),version:yN(1).default(1),userVariables:th(nn(),lc()).optional(),workspace:IUn.optional()});function qGt(n){const i=[],a=new Set(n.nodes.map(b=>b.id));a.size!==n.nodes.length&&i.push("Duplicate node IDs detected");for(const b of n.edges)a.has(b.source)||i.push(`Edge ${b.id} references non-existent source node: ${b.source}`),a.has(b.target)||i.push(`Edge ${b.id} references non-existent target node: ${b.target}`);const c=n.nodes.filter(b=>b.type==="trigger");c.length===0&&i.push("Graph must have at least one trigger node");const d=new Set(n.edges.map(b=>b.target));for(const b of c)d.has(b.id)&&i.push(`Trigger node ${b.id} should not have incoming edges`);const g=new Set(n.nodes.filter(b=>b.type==="condition").map(b=>b.id));for(const b of n.edges)g.has(b.source)&&b.sourceHandle!=="true"&&b.sourceHandle!=="false"&&i.push(`Edge ${b.id} from condition node must have sourceHandle 'true' or 'false', got: ${b.sourceHandle}`);return{valid:i.length===0,errors:i}}zg(["state","time","time_pattern","event","mqtt","webhook","sun","zone","numeric_state","template","homeassistant","device"]);zg(["state","numeric_state","template","time","zone","and","or","not","sun","device","trigger"]);Su({entity_id:ls([$9t,ss($9t)]).optional(),area_id:ls([nn(),ss(nn())]).optional(),device_id:ls([nn(),ss(nn())]).optional()}).refine(n=>n.entity_id||n.area_id||n.device_id,{message:"At least one target (entity_id, area_id, or device_id) must be specified"});Su({entity_id:ls([nn(),ss(nn())]).optional(),area_id:ls([nn(),ss(nn())]).optional(),device_id:ls([nn(),ss(nn())]).optional()}).optional();th(nn(),lc());th(nn(),nn());const RUn=Su({wait_template:nn().optional(),wait_for_trigger:ss(PBn()).optional(),timeout:ls([nn(),Su({})]).optional()}).passthrough().refine(n=>{const i=n.wait_template&&n.wait_template.trim()!=="",a=n.wait_for_trigger&&n.wait_for_trigger.length>0;return i||a},{message:"Wait node requires either a template condition or trigger. Use a Delay node for simple time-based pauses.",path:["_root"]}),OUn=Su({service:nn().optional(),event:nn().optional()}).passthrough().superRefine((n,i)=>{const a=typeof n.event=="string"&&n.event.trim()!=="",c=typeof n.service=="string"&&n.service.trim()!=="";if(!a&&!c){i.addIssue({code:Pl.custom,message:"Either a service (e.g. light.turn_on) or an event name is required",path:["service"]});return}c&&!n.service.includes(".")&&i.addIssue({code:Pl.custom,message:"Service must be in domain.service format (e.g., light.turn_on)",path:["service"]})});function n5(n){return Array.isArray(n)?n.length>0:typeof n=="string"?n.trim()!=="":!1}function DUn(n){return Array.isArray(n)?n.length>0&&n.every(i=>typeof i=="string"&&i.trim()!==""):typeof n=="string"?n.trim()!=="":!1}const LUn=Su({trigger:nn().optional(),platform:nn().optional(),entity_id:lc().optional(),to:lc().optional(),from:lc().optional(),event_type:nn().optional(),at:lc().optional(),topic:nn().optional(),webhook_id:nn().optional(),device_id:nn().optional(),zone:nn().optional(),event:nn().optional(),value_template:nn().optional()}).passthrough().superRefine((n,i)=>{const a=n.trigger||n.platform;if(!a||a.trim()===""){i.addIssue({code:Pl.custom,message:"Trigger platform is required",path:["trigger"]});return}switch(a){case"state":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state triggers",path:["entity_id"]});break;case"numeric_state":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state triggers",path:["entity_id"]});break;case"event":(!n.event_type||n.event_type.trim()==="")&&i.addIssue({code:Pl.custom,message:"Event type is required",path:["event_type"]});break;case"time":n.at||i.addIssue({code:Pl.custom,message:"Time value is required",path:["at"]});break;case"mqtt":(!n.topic||n.topic.trim()==="")&&i.addIssue({code:Pl.custom,message:"MQTT topic is required",path:["topic"]});break;case"webhook":(!n.webhook_id||n.webhook_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Webhook ID is required",path:["webhook_id"]});break;case"device":(!n.device_id||n.device_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Device is required",path:["device_id"]});break;case"zone":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for zone triggers",path:["entity_id"]}),(!n.zone||n.zone.trim()==="")&&i.addIssue({code:Pl.custom,message:"Zone is required",path:["zone"]});break;case"sun":case"homeassistant":(!n.event||n.event.trim()==="")&&i.addIssue({code:Pl.custom,message:a==="sun"?"Sun event (sunrise/sunset) is required":"Home Assistant event (start/shutdown) is required",path:["event"]});break;case"template":(!n.value_template||n.value_template.trim()==="")&&i.addIssue({code:Pl.custom,message:"Template is required",path:["value_template"]});break}}),MUn=Su({delay:ls([nn(),Su({})])}).passthrough().refine(n=>typeof n.delay=="string"?n.delay.trim()!=="":!0,{message:"Delay value is required",path:["delay"]}),PUn=Su({condition:nn().min(1,"Condition type is required"),entity_id:lc().optional(),state:lc().optional(),value_template:nn().optional(),zone:nn().optional(),device_id:nn().optional(),id:lc().optional()}).passthrough().superRefine((n,i)=>{switch(n.condition){case"state":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state conditions",path:["entity_id"]}),(!n.state||typeof n.state=="string"&&n.state.trim()==="")&&i.addIssue({code:Pl.custom,message:"State value is required",path:["state"]});break;case"numeric_state":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state conditions",path:["entity_id"]});break;case"trigger":DUn(n.id)||i.addIssue({code:Pl.custom,message:"Trigger ID is required",path:["id"]});break;case"template":(!n.value_template||n.value_template.trim()==="")&&i.addIssue({code:Pl.custom,message:"Template is required",path:["value_template"]});break;case"zone":n5(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for zone conditions",path:["entity_id"]}),(!n.zone||n.zone.trim()==="")&&i.addIssue({code:Pl.custom,message:"Zone is required",path:["zone"]});break;case"device":(!n.device_id||n.device_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Device is required",path:["device_id"]});break}}),jUn=Su({variables:th(nn(),lc()).optional()}).passthrough().refine(n=>n.variables?Object.keys(n.variables).length>0:!1,{message:"At least one variable must be defined",path:["variables"]});function FUn(n){switch(n){case"wait":return RUn;case"action":return OUn;case"trigger":return LUn;case"delay":return MUn;case"condition":return PUn;case"set_variables":return jUn;default:return}}function H9t(n,i){const a=FUn(n);if(!a)return[];const c=a.safeParse(i);return c.success?[]:c.error.issues.map(d=>({path:d.path.map(String),message:d.message}))}function XU(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $Ce,z9t;function $Un(){if(z9t)return $Ce;z9t=1;function n(){this.__data__=[],this.size=0}return $Ce=n,$Ce}var BCe,G9t;function DMe(){if(G9t)return BCe;G9t=1;function n(i,a){return i===a||i!==i&&a!==a}return BCe=n,BCe}var UCe,q9t;function sae(){if(q9t)return UCe;q9t=1;var n=DMe();function i(a,c){for(var d=a.length;d--;)if(n(a[d][0],c))return d;return-1}return UCe=i,UCe}var HCe,V9t;function BUn(){if(V9t)return HCe;V9t=1;var n=sae(),i=Array.prototype,a=i.splice;function c(d){var g=this.__data__,b=n(g,d);if(b<0)return!1;var w=g.length-1;return b==w?g.pop():a.call(g,b,1),--this.size,!0}return HCe=c,HCe}var zCe,W9t;function UUn(){if(W9t)return zCe;W9t=1;var n=sae();function i(a){var c=this.__data__,d=n(c,a);return d<0?void 0:c[d][1]}return zCe=i,zCe}var GCe,K9t;function HUn(){if(K9t)return GCe;K9t=1;var n=sae();function i(a){return n(this.__data__,a)>-1}return GCe=i,GCe}var qCe,Y9t;function zUn(){if(Y9t)return qCe;Y9t=1;var n=sae();function i(a,c){var d=this.__data__,g=n(d,a);return g<0?(++this.size,d.push([a,c])):d[g][1]=c,this}return qCe=i,qCe}var VCe,J9t;function aae(){if(J9t)return VCe;J9t=1;var n=$Un(),i=BUn(),a=UUn(),c=HUn(),d=zUn();function g(b){var w=-1,E=b==null?0:b.length;for(this.clear();++w-1&&c%1==0&&c-1&&a%1==0&&a<=n}return UIe=i,UIe}var HIe,W8t;function bHn(){if(W8t)return HIe;W8t=1;var n=$5(),i=FMe(),a=AA(),c="[object Arguments]",d="[object Array]",g="[object Boolean]",b="[object Date]",w="[object Error]",E="[object Function]",S="[object Map]",k="[object Number]",_="[object Object]",C="[object RegExp]",R="[object Set]",M="[object String]",D="[object WeakMap]",B="[object ArrayBuffer]",F="[object DataView]",$="[object Float32Array]",P="[object Float64Array]",H="[object Int8Array]",Q="[object Int16Array]",re="[object Int32Array]",ee="[object Uint8Array]",ae="[object Uint8ClampedArray]",he="[object Uint16Array]",ve="[object Uint32Array]",de={};de[$]=de[P]=de[H]=de[Q]=de[re]=de[ee]=de[ae]=de[he]=de[ve]=!0,de[c]=de[d]=de[B]=de[g]=de[F]=de[b]=de[w]=de[E]=de[S]=de[k]=de[_]=de[C]=de[R]=de[M]=de[D]=!1;function ge(Y){return a(Y)&&i(Y.length)&&!!de[n(Y)]}return HIe=ge,HIe}var zIe,K8t;function $Me(){if(K8t)return zIe;K8t=1;function n(i){return function(a){return i(a)}}return zIe=n,zIe}var QU={exports:{}};QU.exports;var Y8t;function BMe(){return Y8t||(Y8t=1,function(n,i){var a=VGt(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,b=g&&a.process,w=function(){try{var E=d&&d.require&&d.require("util").types;return E||b&&b.binding&&b.binding("util")}catch{}}();n.exports=w}(QU,QU.exports)),QU.exports}var GIe,J8t;function hae(){if(J8t)return GIe;J8t=1;var n=bHn(),i=$Me(),a=BMe(),c=a&&a.isTypedArray,d=c?i(c):n;return GIe=d,GIe}var qIe,X8t;function ZGt(){if(X8t)return qIe;X8t=1;var n=hHn(),i=fae(),a=ih(),c=Tz(),d=XGt(),g=hae(),b=Object.prototype,w=b.hasOwnProperty;function E(S,k){var _=a(S),C=!_&&i(S),R=!_&&!C&&c(S),M=!_&&!C&&!R&&g(S),D=_||C||R||M,B=D?n(S.length,String):[],F=B.length;for(var $ in S)(k||w.call(S,$))&&!(D&&($=="length"||R&&($=="offset"||$=="parent")||M&&($=="buffer"||$=="byteLength"||$=="byteOffset")||d($,F)))&&B.push($);return B}return qIe=E,qIe}var VIe,Z8t;function pae(){if(Z8t)return VIe;Z8t=1;var n=Object.prototype;function i(a){var c=a&&a.constructor,d=typeof c=="function"&&c.prototype||n;return a===d}return VIe=i,VIe}var WIe,Q8t;function QGt(){if(Q8t)return WIe;Q8t=1;function n(i,a){return function(c){return i(a(c))}}return WIe=n,WIe}var KIe,ePt;function mHn(){if(ePt)return KIe;ePt=1;var n=QGt(),i=n(Object.keys,Object);return KIe=i,KIe}var YIe,tPt;function UMe(){if(tPt)return YIe;tPt=1;var n=pae(),i=mHn(),a=Object.prototype,c=a.hasOwnProperty;function d(g){if(!n(g))return i(g);var b=[];for(var w in Object(g))c.call(g,w)&&w!="constructor"&&b.push(w);return b}return YIe=d,YIe}var JIe,nPt;function CR(){if(nPt)return JIe;nPt=1;var n=uae(),i=FMe();function a(c){return c!=null&&i(c.length)&&!n(c)}return JIe=a,JIe}var XIe,rPt;function IR(){if(rPt)return XIe;rPt=1;var n=ZGt(),i=UMe(),a=CR();function c(d){return a(d)?n(d):i(d)}return XIe=c,XIe}var ZIe,iPt;function wHn(){if(iPt)return ZIe;iPt=1;var n=dae(),i=IR();function a(c,d){return c&&n(d,i(d),c)}return ZIe=a,ZIe}var QIe,oPt;function yHn(){if(oPt)return QIe;oPt=1;function n(i){var a=[];if(i!=null)for(var c in Object(i))a.push(c);return a}return QIe=n,QIe}var e4e,sPt;function vHn(){if(sPt)return e4e;sPt=1;var n=xR(),i=pae(),a=yHn(),c=Object.prototype,d=c.hasOwnProperty;function g(b){if(!n(b))return a(b);var w=i(b),E=[];for(var S in b)S=="constructor"&&(w||!d.call(b,S))||E.push(S);return E}return e4e=g,e4e}var t4e,aPt;function HMe(){if(aPt)return t4e;aPt=1;var n=ZGt(),i=vHn(),a=CR();function c(d){return a(d)?n(d,!0):i(d)}return t4e=c,t4e}var n4e,uPt;function EHn(){if(uPt)return n4e;uPt=1;var n=dae(),i=HMe();function a(c,d){return c&&n(d,i(d),c)}return n4e=a,n4e}var eH={exports:{}};eH.exports;var cPt;function SHn(){return cPt||(cPt=1,function(n,i){var a=W2(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,b=g?a.Buffer:void 0,w=b?b.allocUnsafe:void 0;function E(S,k){if(k)return S.slice();var _=S.length,C=w?w(_):new S.constructor(_);return S.copy(C),C}n.exports=E}(eH,eH.exports)),eH.exports}var r4e,lPt;function THn(){if(lPt)return r4e;lPt=1;function n(i,a){var c=-1,d=i.length;for(a||(a=Array(d));++cR))return!1;var D=_.get(b),B=_.get(w);if(D&&B)return D==w&&B==b;var F=-1,$=!0,P=E&d?new n:void 0;for(_.set(b,w),_.set(w,b);++F0&&g(k)?d>1?a(k,d-1,g,b,w):n(w,k):b||(w[w.length]=k)}return w}return KRe=a,KRe}var YRe,n7t;function Pzn(){if(n7t)return YRe;n7t=1;function n(i,a,c){switch(c.length){case 0:return i.call(a);case 1:return i.call(a,c[0]);case 2:return i.call(a,c[0],c[1]);case 3:return i.call(a,c[0],c[1],c[2])}return i.apply(a,c)}return YRe=n,YRe}var JRe,r7t;function jzn(){if(r7t)return JRe;r7t=1;var n=Pzn(),i=Math.max;function a(c,d,g){return d=i(d===void 0?c.length-1:d,0),function(){for(var b=arguments,w=-1,E=i(b.length-d,0),S=Array(E);++w0){if(++g>=n)return arguments[0]}else g=0;return d.apply(void 0,arguments)}}return ZRe=c,ZRe}var QRe,s7t;function Bzn(){if(s7t)return QRe;s7t=1;var n=Fzn(),i=$zn(),a=i(n);return QRe=a,QRe}var eOe,a7t;function Uzn(){if(a7t)return eOe;a7t=1;var n=bae(),i=jzn(),a=Bzn();function c(d,g){return a(i(d,g,n),d+"")}return eOe=c,eOe}var tOe,u7t;function Hzn(){if(u7t)return tOe;u7t=1;function n(i,a,c,d){for(var g=i.length,b=c+(d?1:-1);d?b--:++b-1}return oOe=i,oOe}var sOe,h7t;function Wzn(){if(h7t)return sOe;h7t=1;function n(i,a,c){for(var d=-1,g=i==null?0:i.length;++d=b){var F=S?null:d(E);if(F)return g(F);M=!1,C=c,B=new n}else B=S?[]:D;e:for(;++_1?c.setNode(d,i):c.setNode(d)}),this};ws.prototype.setNode=function(n,i){return Ro.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=i),this):(this._nodes[n]=arguments.length>1?i:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=hR,this._children[n]={},this._children[hR][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)};ws.prototype.node=function(n){return this._nodes[n]};ws.prototype.hasNode=function(n){return Ro.has(this._nodes,n)};ws.prototype.removeNode=function(n){var i=this;if(Ro.has(this._nodes,n)){var a=function(c){i.removeEdge(i._edgeObjs[c])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],Ro.each(this.children(n),function(c){i.setParent(c)}),delete this._children[n]),Ro.each(Ro.keys(this._in[n]),a),delete this._in[n],delete this._preds[n],Ro.each(Ro.keys(this._out[n]),a),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this};ws.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Ro.isUndefined(i))i=hR;else{i+="";for(var a=i;!Ro.isUndefined(a);a=this.parent(a))if(a===n)throw new Error("Setting "+i+" as parent of "+n+" would create a cycle");this.setNode(i)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=i,this._children[i][n]=!0,this};ws.prototype._removeFromParentsChildList=function(n){delete this._children[this._parent[n]][n]};ws.prototype.parent=function(n){if(this._isCompound){var i=this._parent[n];if(i!==hR)return i}};ws.prototype.children=function(n){if(Ro.isUndefined(n)&&(n=hR),this._isCompound){var i=this._children[n];if(i)return Ro.keys(i)}else{if(n===hR)return this.nodes();if(this.hasNode(n))return[]}};ws.prototype.predecessors=function(n){var i=this._preds[n];if(i)return Ro.keys(i)};ws.prototype.successors=function(n){var i=this._sucs[n];if(i)return Ro.keys(i)};ws.prototype.neighbors=function(n){var i=this.predecessors(n);if(i)return Ro.union(i,this.successors(n))};ws.prototype.isLeaf=function(n){var i;return this.isDirected()?i=this.successors(n):i=this.neighbors(n),i.length===0};ws.prototype.filterNodes=function(n){var i=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});i.setGraph(this.graph());var a=this;Ro.each(this._nodes,function(g,b){n(b)&&i.setNode(b,g)}),Ro.each(this._edgeObjs,function(g){i.hasNode(g.v)&&i.hasNode(g.w)&&i.setEdge(g,a.edge(g))});var c={};function d(g){var b=a.parent(g);return b===void 0||i.hasNode(b)?(c[g]=b,b):b in c?c[b]:d(b)}return this._isCompound&&Ro.each(i.nodes(),function(g){i.setParent(g,d(g))}),i};ws.prototype.setDefaultEdgeLabel=function(n){return Ro.isFunction(n)||(n=Ro.constant(n)),this._defaultEdgeLabelFn=n,this};ws.prototype.edgeCount=function(){return this._edgeCount};ws.prototype.edges=function(){return Ro.values(this._edgeObjs)};ws.prototype.setPath=function(n,i){var a=this,c=arguments;return Ro.reduce(n,function(d,g){return c.length>1?a.setEdge(d,g,i):a.setEdge(d,g),g}),this};ws.prototype.setEdge=function(){var n,i,a,c,d=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(n=g.v,i=g.w,a=g.name,arguments.length===2&&(c=arguments[1],d=!0)):(n=g,i=arguments[1],a=arguments[3],arguments.length>2&&(c=arguments[2],d=!0)),n=""+n,i=""+i,Ro.isUndefined(a)||(a=""+a);var b=Az(this._isDirected,n,i,a);if(Ro.has(this._edgeLabels,b))return d&&(this._edgeLabels[b]=c),this;if(!Ro.isUndefined(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(i),this._edgeLabels[b]=d?c:this._defaultEdgeLabelFn(n,i,a);var w=nGn(this._isDirected,n,i,a);return n=w.v,i=w.w,Object.freeze(w),this._edgeObjs[b]=w,S7t(this._preds[i],n),S7t(this._sucs[n],i),this._in[i][b]=w,this._out[n][b]=w,this._edgeCount++,this};ws.prototype.edge=function(n,i,a){var c=arguments.length===1?ZMe(this._isDirected,arguments[0]):Az(this._isDirected,n,i,a);return this._edgeLabels[c]};ws.prototype.hasEdge=function(n,i,a){var c=arguments.length===1?ZMe(this._isDirected,arguments[0]):Az(this._isDirected,n,i,a);return Ro.has(this._edgeLabels,c)};ws.prototype.removeEdge=function(n,i,a){var c=arguments.length===1?ZMe(this._isDirected,arguments[0]):Az(this._isDirected,n,i,a),d=this._edgeObjs[c];return d&&(n=d.v,i=d.w,delete this._edgeLabels[c],delete this._edgeObjs[c],T7t(this._preds[i],n),T7t(this._sucs[n],i),delete this._in[i][c],delete this._out[n][c],this._edgeCount--),this};ws.prototype.inEdges=function(n,i){var a=this._in[n];if(a){var c=Ro.values(a);return i?Ro.filter(c,function(d){return d.v===i}):c}};ws.prototype.outEdges=function(n,i){var a=this._out[n];if(a){var c=Ro.values(a);return i?Ro.filter(c,function(d){return d.w===i}):c}};ws.prototype.nodeEdges=function(n,i){var a=this.inEdges(n,i);if(a)return a.concat(this.outEdges(n,i))};function S7t(n,i){n[i]?n[i]++:n[i]=1}function T7t(n,i){--n[i]||delete n[i]}function Az(n,i,a,c){var d=""+i,g=""+a;if(!n&&d>g){var b=d;d=g,g=b}return d+E7t+g+E7t+(Ro.isUndefined(c)?tGn:c)}function nGn(n,i,a,c){var d=""+i,g=""+a;if(!n&&d>g){var b=d;d=g,g=b}var w={v:d,w:g};return c&&(w.name=c),w}function ZMe(n,i){return Az(n,i.v,i.w,i.name)}var rGn="2.1.8",iGn={Graph:XMe,version:rGn},$2=_w,oGn=XMe,sGn={write:aGn,read:lGn};function aGn(n){var i={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:uGn(n),edges:cGn(n)};return $2.isUndefined(n.graph())||(i.value=$2.clone(n.graph())),i}function uGn(n){return $2.map(n.nodes(),function(i){var a=n.node(i),c=n.parent(i),d={v:i};return $2.isUndefined(a)||(d.value=a),$2.isUndefined(c)||(d.parent=c),d})}function cGn(n){return $2.map(n.edges(),function(i){var a=n.edge(i),c={v:i.v,w:i.w};return $2.isUndefined(i.name)||(c.name=i.name),$2.isUndefined(a)||(c.value=a),c})}function lGn(n){var i=new oGn(n.options).setGraph(n.value);return $2.each(n.nodes,function(a){i.setNode(a.v,a.value),a.parent&&i.setParent(a.v,a.parent)}),$2.each(n.edges,function(a){i.setEdge({v:a.v,w:a.w,name:a.name},a.value)}),i}var Eie=_w,dGn=fGn;function fGn(n){var i={},a=[],c;function d(g){Eie.has(i,g)||(i[g]=!0,c.push(g),Eie.each(n.successors(g),d),Eie.each(n.predecessors(g),d))}return Eie.each(n.nodes(),function(g){c=[],d(g),c.length&&a.push(c)}),a}var vqt=_w,Eqt=kw;function kw(){this._arr=[],this._keyIndices={}}kw.prototype.size=function(){return this._arr.length};kw.prototype.keys=function(){return this._arr.map(function(n){return n.key})};kw.prototype.has=function(n){return vqt.has(this._keyIndices,n)};kw.prototype.priority=function(n){var i=this._keyIndices[n];if(i!==void 0)return this._arr[i].priority};kw.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};kw.prototype.add=function(n,i){var a=this._keyIndices;if(n=String(n),!vqt.has(a,n)){var c=this._arr,d=c.length;return a[n]=d,c.push({key:n,priority:i}),this._decrease(d),!0}return!1};kw.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key};kw.prototype.decrease=function(n,i){var a=this._keyIndices[n];if(i>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+i);this._arr[a].priority=i,this._decrease(a)};kw.prototype._heapify=function(n){var i=this._arr,a=2*n,c=a+1,d=n;a>1,!(i[c].priority0&&(b=g.removeMin(),w=d[b],w.distance!==Number.POSITIVE_INFINITY);)c(b).forEach(E);return d}var wGn=Sqt,yGn=_w,vGn=EGn;function EGn(n,i,a){return yGn.transform(n.nodes(),function(c,d){c[d]=wGn(n,d,i,a)},{})}var A7t=_w,Tqt=SGn;function SGn(n){var i=0,a=[],c={},d=[];function g(b){var w=c[b]={onStack:!0,lowlink:i,index:i++};if(a.push(b),n.successors(b).forEach(function(k){A7t.has(c,k)?c[k].onStack&&(w.lowlink=Math.min(w.lowlink,c[k].index)):(g(k),w.lowlink=Math.min(w.lowlink,c[k].lowlink))}),w.lowlink===w.index){var E=[],S;do S=a.pop(),c[S].onStack=!1,E.push(S);while(b!==S);d.push(E)}}return n.nodes().forEach(function(b){A7t.has(c,b)||g(b)}),d}var TGn=_w,AGn=Tqt,_Gn=kGn;function kGn(n){return TGn.filter(AGn(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}var xGn=_w,NGn=IGn,CGn=xGn.constant(1);function IGn(n,i,a){return RGn(n,i||CGn,a||function(c){return n.outEdges(c)})}function RGn(n,i,a){var c={},d=n.nodes();return d.forEach(function(g){c[g]={},c[g][g]={distance:0},d.forEach(function(b){g!==b&&(c[g][b]={distance:Number.POSITIVE_INFINITY})}),a(g).forEach(function(b){var w=b.v===g?b.w:b.v,E=i(b);c[g][w]={distance:E,predecessor:g}})}),d.forEach(function(g){var b=c[g];d.forEach(function(w){var E=c[w];d.forEach(function(S){var k=E[g],_=b[S],C=E[S],R=k.distance+_.distance;R0;){if(g=d.removeMin(),k7t.has(c,g))a.setEdge(g,c[g]);else{if(w)throw new Error("Input graph is not connected: "+n);w=!0}n.nodeEdges(g).forEach(b)}return a}var qGn={components:dGn,dijkstra:Sqt,dijkstraAll:vGn,findCycles:_Gn,floydWarshall:NGn,isAcyclic:OGn,postorder:PGn,preorder:$Gn,prim:zGn,tarjan:Tqt,topsort:Aqt},x7t=iGn,VGn={Graph:x7t.Graph,json:sGn,alg:qGn,version:x7t.version};const WGn=vR(VGn),{Graph:KGn,alg:N7t}=WGn;function Nqt(n){const i=new Set,a=new Set,c=new Set,d=new Map;for(const E of n.edges){const S=d.get(E.source)||[];S.push(E),d.set(E.source,S)}const g=new Set(n.edges.map(E=>E.target)),b=n.nodes.filter(E=>!g.has(E.id)).map(E=>E.id);function w(E){if(!a.has(E)){a.add(E),c.add(E);for(const S of d.get(E)||[])c.has(S.target)?i.add(S.id):a.has(S.target)||w(S.target);c.delete(E)}}for(const E of b)w(E);for(const E of n.nodes)a.has(E.id)||w(E.id);return i}function YGn(n){const i=new KGn({directed:!0}),a=Nqt(n),c=new Map(n.nodes.map(B=>[B.id,B.type])),d=new Set;for(const B of n.edges){if(!a.has(B.id))continue;const F=c.get(B.source),$=c.get(B.target);(F==="condition"||$==="condition")&&d.add(B.id)}const g=n.edges.filter(B=>!d.has(B.id)),b={...n,edges:g};for(const B of n.nodes)i.setNode(B.id,B);for(const B of g)i.setEdge(B.source,B.target,B);const w=!N7t.isAcyclic(i),E=n.nodes.filter(B=>{var F;return((F=i.predecessors(B.id))==null?void 0:F.length)===0}).map(B=>B.id),S=n.nodes.filter(B=>g.filter($=>$.source===B.id).length===0).map(B=>B.id);let k=null;if(!w)try{k=N7t.topsort(i)}catch{k=null}const _=JGn(i,b,k),C=QGn(b),R=ZGn(i,b),M=!w&&!_&&!C&&!R,D=M?"native":"state-machine";return{isTree:M,hasCycles:w,hasMultipleEntryPoints:E.length>1,hasCrossLinks:_,hasConvergingPaths:C,hasDivergentTriggerPaths:R,entryNodes:E,exitNodes:S,topologicalOrder:k,recommendedStrategy:D}}function JGn(n,i,a){if(!a||a.length===0)return!1;const c=new Map,g=i.nodes.filter(k=>{var _;return((_=n.predecessors(k.id))==null?void 0:_.length)===0}).map(k=>k.id).map(k=>({nodeId:k,level:0}));for(;g.length>0;){const{nodeId:k,level:_}=g.shift();if(c.has(k))continue;c.set(k,_);const C=n.successors(k)||[];for(const R of C)c.has(R)||g.push({nodeId:R,level:_+1})}const b=new Set,w=new Map;for(const k of i.edges){const _=(w.get(k.source)||0)+1;w.set(k.source,_)}for(const[k,_]of w)if(_>1){const C=i.nodes.find(R=>R.id===k);(C==null?void 0:C.type)!=="condition"&&(i.edges.filter(D=>D.source===k).some(D=>D.sourceHandle==="true"||D.sourceHandle==="false")||b.add(k))}const E=new Set,S=new Map;for(const k of i.edges){const _=(S.get(k.target)||0)+1;S.set(k.target,_)}for(const[k,_]of S)_>1&&E.add(k);for(const k of i.edges){const _=c.get(k.source),C=c.get(k.target);if(_!==void 0&&C!==void 0){if(C>_+1)return!0;if(C<_){if(E.has(k.target)&&b.size>0&&XGn(i,k.source,b))continue;return!0}}}return!1}function XGn(n,i,a){const c=new Set,d=[i];for(;d.length>0;){const g=d.shift();if(c.has(g))continue;if(c.add(g),a.has(g))return!0;const b=n.edges.filter(w=>w.target===g).map(w=>w.source);for(const w of b)c.has(w)||d.push(w)}return!1}function ZGn(n,i){const a=i.nodes.filter(b=>b.type==="trigger");if(a.length<=1)return!1;const c=a.map(b=>{const w=n.successors(b.id)||[];return new Set(w)});if(a.every(b=>{const w=n.successors(b.id)||[];return w.length>0&&w.every(E=>{const S=i.nodes.find(k=>k.id===E);return(S==null?void 0:S.type)==="condition"})}))return!1;const g=c[0];for(let b=1;b1){const g=n.edges.filter(w=>w.target===c),b=new Set(g.map(w=>w.source));if(b.size>1){if([...b].map(k=>n.nodes.find(_=>_.id===k)).every(k=>(k==null?void 0:k.type)==="trigger"))continue;if(!eqn(n,[...b],a,c))return!0}}return!1}function eqn(n,i,a,c){const d=n.edges.filter(D=>D.target===c),g=i.every(D=>{const B=n.nodes.find(F=>F.id===D);return(B==null?void 0:B.type)==="condition"}),b=d.every(D=>D.sourceHandle==="true"),w=d.every(D=>D.sourceHandle==="false");if(g&&(b||w))return!0;const E=D=>n.edges.filter(B=>B.target===D).map(B=>B.source),S=(D,B)=>{if(B.has(D))return null;B.add(D);const F=n.nodes.find(Q=>Q.id===D);if((F==null?void 0:F.type)==="condition")return D;const $=n.edges.filter(Q=>Q.target===D);if($.length===0||$.length>1)return null;const P=$[0].source,H=n.nodes.find(Q=>Q.id===P);return(H==null?void 0:H.type)==="condition"?P:S(P,B)},k=new Set;let _=!0;for(const D of i){const B=S(D,new Set);if(B)k.add(B);else{_=!1;break}}if(_&&k.size===1)return!0;const C=D=>{const B=n.nodes.find(P=>P.id===D);if((B==null?void 0:B.type)==="condition")return!1;const F=n.edges.filter(P=>P.source===D);return F.some(P=>P.sourceHandle==="true"||P.sourceHandle==="false")?!1:F.length>1},R=(D,B)=>{if(B.has(D))return null;B.add(D);const F=E(D);if(F.length===0||F.length>1)return null;const $=F[0];return C($)?$:R($,B)},M=new Set;for(const D of i){const B=E(D);if(B.length===1){const $=B[0];if(C($)){M.add($);continue}}const F=R(D,new Set);if(F)M.add(F);else return!1}return M.size===1}function tqn(n){const i=[];let a;try{a=GGt.parse(n)}catch(g){if(g instanceof tBn)for(const b of g.issues)i.push({code:b.code,message:b.message,path:b.path.map(String)});else i.push({code:"UNKNOWN_ERROR",message:g instanceof Error?g.message:"Unknown validation error"});return{success:!1,errors:i}}const c=qGt(a);if(!c.valid)for(const g of c.errors)i.push({code:"STRUCTURAL_ERROR",message:g});const d=nqn(a);return i.push(...d),{success:i.length===0,graph:i.length===0?a:void 0,errors:i}}function nqn(n){const i=[],a=n.nodes.filter(w=>w.type==="condition");for(const w of a){const E=n.edges.filter(_=>_.source===w.id),S=E.some(_=>_.sourceHandle==="true"),k=E.some(_=>_.sourceHandle==="false");!S&&!k&&i.push({code:"CONDITION_NO_EDGES",message:`Condition node "${w.id}" has no outgoing edges`,path:["nodes",w.id]})}const c=n.nodes.filter(w=>w.type==="action");for(const w of c)if(w.type==="action"){const E=w.data.service,S=["variables","delay","wait","wait_template","wait_for_trigger","stop","repeat","choose","if"];typeof E=="string"&&!E.includes(".")&&!S.includes(E)&&i.push({code:"INVALID_SERVICE",message:`Action node "${w.id}" has invalid service format: "${E}". Expected "domain.service"`,path:["nodes",w.id,"data","service"]})}const d=new Set,b=[...n.nodes.filter(w=>w.type==="trigger").map(w=>w.id)];for(;b.length>0;){const w=b.shift();if(d.has(w))continue;d.add(w);const E=n.edges.filter(S=>S.source===w);for(const S of E)d.has(S.target)||b.push(S.target)}for(const w of n.nodes)!d.has(w.id)&&w.type!=="trigger"&&i.push({code:"ORPHANED_NODE",message:`Node "${w.id}" is not connected to any trigger`,path:["nodes",w.id]});return i}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Cqt(n){return typeof n>"u"||n===null}function rqn(n){return typeof n=="object"&&n!==null}function iqn(n){return Array.isArray(n)?n:Cqt(n)?[]:[n]}function oqn(n,i){var a,c,d,g;if(i)for(g=Object.keys(i),a=0,c=g.length;aw&&(g=" ... ",i=c-w+g.length),a-c>w&&(b=" ...",a=c+w-b.length),{str:g+n.slice(i,a).replace(/\t/g,"→")+b,pos:c-i+g.length}}function gOe(n,i){return vf.repeat(" ",i-n.length)+n}function pqn(n,i){if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var a=/\r?\n|\r|\0/g,c=[0],d=[],g,b=-1;g=a.exec(n.buffer);)d.push(g.index),c.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=c.length-2);b<0&&(b=c.length-1);var w="",E,S,k=Math.min(n.line+i.linesAfter,d.length).toString().length,_=i.maxLength-(i.indent+k+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=pOe(n.buffer,c[b-E],d[b-E],n.position-(c[b]-c[b-E]),_),w=vf.repeat(" ",i.indent)+gOe((n.line-E+1).toString(),k)+" | "+S.str+` -`+w;for(S=pOe(n.buffer,c[b],d[b],n.position,_),w+=vf.repeat(" ",i.indent)+gOe((n.line+1).toString(),k)+" | "+S.str+` -`,w+=vf.repeat("-",i.indent+k+3+S.pos)+`^ -`,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=pOe(n.buffer,c[b+E],d[b+E],n.position-(c[b]-c[b+E]),_),w+=vf.repeat(" ",i.indent)+gOe((n.line+E+1).toString(),k)+" | "+S.str+` -`;return w.replace(/\n$/,"")}var gqn=pqn,bqn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],mqn=["scalar","sequence","mapping"];function wqn(n){var i={};return n!==null&&Object.keys(n).forEach(function(a){n[a].forEach(function(c){i[String(c)]=a})}),i}function yqn(n,i){if(i=i||{},Object.keys(i).forEach(function(a){if(bqn.indexOf(a)===-1)throw new ib('Unknown option "'+a+'" is met in definition of "'+n+'" YAML type.')}),this.options=i,this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(a){return a},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=wqn(i.styleAliases||null),mqn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var $p=yqn;function C7t(n,i){var a=[];return n[i].forEach(function(c){var d=a.length;a.forEach(function(g,b){g.tag===c.tag&&g.kind===c.kind&&g.multi===c.multi&&(d=b)}),a[d]=c}),a}function vqn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,a;function c(d){d.multi?(n.multi[d.kind].push(d),n.multi.fallback.push(d)):n[d.kind][d.tag]=n.fallback[d.tag]=d}for(i=0,a=arguments.length;i=0?"0b"+n.toString(2):"-0b"+n.toString(2).slice(1)},octal:function(n){return n>=0?"0o"+n.toString(8):"-0o"+n.toString(8).slice(1)},decimal:function(n){return n.toString(10)},hexadecimal:function(n){return n>=0?"0x"+n.toString(16).toUpperCase():"-0x"+n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Uqn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Hqn(n){return!(n===null||!Uqn.test(n)||n[n.length-1]==="_")}function zqn(n){var i,a;return i=n.replace(/_/g,"").toLowerCase(),a=i[0]==="-"?-1:1,"+-".indexOf(i[0])>=0&&(i=i.slice(1)),i===".inf"?a===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:i===".nan"?NaN:a*parseFloat(i,10)}var Gqn=/^[-+]?[0-9]+e/;function qqn(n,i){var a;if(isNaN(n))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===n)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===n)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vf.isNegativeZero(n))return"-0.0";return a=n.toString(10),Gqn.test(a)?a.replace("e",".e"):a}function Vqn(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||vf.isNegativeZero(n))}var Wqn=new $p("tag:yaml.org,2002:float",{kind:"scalar",resolve:Hqn,construct:zqn,predicate:Vqn,represent:qqn,defaultStyle:"lowercase"}),Kqn=_qn.extend({implicit:[Cqn,Dqn,Bqn,Wqn]}),Yqn=Kqn,Rqt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oqt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Jqn(n){return n===null?!1:Rqt.exec(n)!==null||Oqt.exec(n)!==null}function Xqn(n){var i,a,c,d,g,b,w,E=0,S=null,k,_,C;if(i=Rqt.exec(n),i===null&&(i=Oqt.exec(n)),i===null)throw new Error("Date resolve error");if(a=+i[1],c=+i[2]-1,d=+i[3],!i[4])return new Date(Date.UTC(a,c,d));if(g=+i[4],b=+i[5],w=+i[6],i[7]){for(E=i[7].slice(0,3);E.length<3;)E+="0";E=+E}return i[9]&&(k=+i[10],_=+(i[11]||0),S=(k*60+_)*6e4,i[9]==="-"&&(S=-S)),C=new Date(Date.UTC(a,c,d,g,b,w,E)),S&&C.setTime(C.getTime()-S),C}function Zqn(n){return n.toISOString()}var Qqn=new $p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jqn,construct:Xqn,instanceOf:Date,represent:Zqn});function eVn(n){return n==="<<"||n===null}var tVn=new $p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eVn}),QMe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function nVn(n){if(n===null)return!1;var i,a,c=0,d=n.length,g=QMe;for(a=0;a64)){if(i<0)return!1;c+=6}return c%8===0}function rVn(n){var i,a,c=n.replace(/[\r\n=]/g,""),d=c.length,g=QMe,b=0,w=[];for(i=0;i>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(c.charAt(i));return a=d%4*6,a===0?(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)):a===18?(w.push(b>>10&255),w.push(b>>2&255)):a===12&&w.push(b>>4&255),new Uint8Array(w)}function iVn(n){var i="",a=0,c,d,g=n.length,b=QMe;for(c=0;c>18&63],i+=b[a>>12&63],i+=b[a>>6&63],i+=b[a&63]),a=(a<<8)+n[c];return d=g%3,d===0?(i+=b[a>>18&63],i+=b[a>>12&63],i+=b[a>>6&63],i+=b[a&63]):d===2?(i+=b[a>>10&63],i+=b[a>>4&63],i+=b[a<<2&63],i+=b[64]):d===1&&(i+=b[a>>2&63],i+=b[a<<4&63],i+=b[64],i+=b[64]),i}function oVn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var sVn=new $p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nVn,construct:rVn,predicate:oVn,represent:iVn}),aVn=Object.prototype.hasOwnProperty,uVn=Object.prototype.toString;function cVn(n){if(n===null)return!0;var i=[],a,c,d,g,b,w=n;for(a=0,c=w.length;a>10)+55296,(n-65536&1023)+56320)}function Fqt(n,i,a){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):n[i]=a}var $qt=new Array(256),Bqt=new Array(256);for(var mM=0;mM<256;mM++)$qt[mM]=O7t(mM)?1:0,Bqt[mM]=O7t(mM);function NVn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||Dqt,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Uqt(n,i){var a={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return a.snippet=gqn(a),new ib(i,a)}function ki(n,i){throw Uqt(n,i)}function tse(n,i){n.onWarning&&n.onWarning.call(null,Uqt(n,i))}var D7t={YAML:function(i,a,c){var d,g,b;i.version!==null&&ki(i,"duplication of %YAML directive"),c.length!==1&&ki(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[0]),d===null&&ki(i,"ill-formed argument of the YAML directive"),g=parseInt(d[1],10),b=parseInt(d[2],10),g!==1&&ki(i,"unacceptable YAML version of the document"),i.version=c[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&tse(i,"unsupported YAML version of the document")},TAG:function(i,a,c){var d,g;c.length!==2&&ki(i,"TAG directive accepts exactly two arguments"),d=c[0],g=c[1],Pqt.test(d)||ki(i,"ill-formed tag handle (first argument) of the TAG directive"),sN.call(i.tagMap,d)&&ki(i,'there is a previously declared suffix for "'+d+'" tag handle'),jqt.test(g)||ki(i,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{ki(i,"tag prefix is malformed: "+g)}i.tagMap[d]=g}};function Zx(n,i,a,c){var d,g,b,w;if(i1&&(n.result+=vf.repeat(` -`,i-1))}function CVn(n,i,a){var c,d,g,b,w,E,S,k,_=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||GM(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(d=n.input.charCodeAt(n.position+1),ub(d)||a&&GM(d)))return!1;for(n.kind="scalar",n.result="",g=b=n.position,w=!1;R!==0;){if(R===58){if(d=n.input.charCodeAt(n.position+1),ub(d)||a&&GM(d))break}else if(R===35){if(c=n.input.charCodeAt(n.position-1),ub(c))break}else{if(n.position===n.lineStart&&yae(n)||a&&GM(R))break;if(B2(R))if(E=n.line,S=n.lineStart,k=n.lineIndent,$d(n,!1,-1),n.lineIndent>=i){w=!0,R=n.input.charCodeAt(n.position);continue}else{n.position=b,n.line=E,n.lineStart=S,n.lineIndent=k;break}}w&&(Zx(n,g,b,!1),t5e(n,n.line-E),g=b=n.position,w=!1),eR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return Zx(n,g,b,!1),n.result?!0:(n.kind=_,n.result=C,!1)}function IVn(n,i){var a,c,d;if(a=n.input.charCodeAt(n.position),a!==39)return!1;for(n.kind="scalar",n.result="",n.position++,c=d=n.position;(a=n.input.charCodeAt(n.position))!==0;)if(a===39)if(Zx(n,c,n.position,!0),a=n.input.charCodeAt(++n.position),a===39)c=n.position,n.position++,d=n.position;else return!0;else B2(a)?(Zx(n,c,d,!0),t5e(n,$d(n,!1,i)),c=d=n.position):n.position===n.lineStart&&yae(n)?ki(n,"unexpected end of the document within a single quoted scalar"):(n.position++,d=n.position);ki(n,"unexpected end of the stream within a single quoted scalar")}function RVn(n,i){var a,c,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,a=c=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return Zx(n,a,n.position,!0),n.position++,!0;if(w===92){if(Zx(n,a,n.position,!0),w=n.input.charCodeAt(++n.position),B2(w))$d(n,!1,i);else if(w<256&&$qt[w])n.result+=Bqt[w],n.position++;else if((b=_Vn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=AVn(w))>=0?g=(g<<4)+b:ki(n,"expected hexadecimal character");n.result+=xVn(g),n.position++}else ki(n,"unknown escape sequence");a=c=n.position}else B2(w)?(Zx(n,a,c,!0),t5e(n,$d(n,!1,i)),a=c=n.position):n.position===n.lineStart&&yae(n)?ki(n,"unexpected end of the document within a double quoted scalar"):(n.position++,c=n.position)}ki(n,"unexpected end of the stream within a double quoted scalar")}function OVn(n,i){var a=!0,c,d,g,b=n.tag,w,E=n.anchor,S,k,_,C,R,M=Object.create(null),D,B,F,$;if($=n.input.charCodeAt(n.position),$===91)k=93,R=!1,w=[];else if($===123)k=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),$=n.input.charCodeAt(++n.position);$!==0;){if($d(n,!0,i),$=n.input.charCodeAt(n.position),$===k)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;a?$===44&&ki(n,"expected the node content, but found ','"):ki(n,"missed comma between flow collection entries"),B=D=F=null,_=C=!1,$===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(_=C=!0,n.position++,$d(n,!0,i))),c=n.line,d=n.lineStart,g=n.position,k5(n,i,Qoe,!1,!0),B=n.tag,D=n.result,$d(n,!0,i),$=n.input.charCodeAt(n.position),(C||n.line===c)&&$===58&&(_=!0,$=n.input.charCodeAt(++n.position),$d(n,!0,i),k5(n,i,Qoe,!1,!0),F=n.result),R?qM(n,w,M,B,D,F,c,d,g):_?w.push(qM(n,null,M,B,D,F,c,d,g)):w.push(D),$d(n,!0,i),$=n.input.charCodeAt(n.position),$===44?(a=!0,$=n.input.charCodeAt(++n.position)):a=!1}ki(n,"unexpected end of the stream within a flow collection")}function DVn(n,i){var a,c,d=bOe,g=!1,b=!1,w=i,E=0,S=!1,k,_;if(_=n.input.charCodeAt(n.position),_===124)c=!1;else if(_===62)c=!0;else return!1;for(n.kind="scalar",n.result="";_!==0;)if(_=n.input.charCodeAt(++n.position),_===43||_===45)bOe===d?d=_===43?I7t:vVn:ki(n,"repeat of a chomping mode identifier");else if((k=kVn(_))>=0)k===0?ki(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?ki(n,"repeat of an indentation width identifier"):(w=i+k-1,b=!0);else break;if(eR(_)){do _=n.input.charCodeAt(++n.position);while(eR(_));if(_===35)do _=n.input.charCodeAt(++n.position);while(!B2(_)&&_!==0)}for(;_!==0;){for(e5e(n),n.lineIndent=0,_=n.input.charCodeAt(n.position);(!b||n.lineIndentw&&(w=n.lineIndent),B2(_)){E++;continue}if(n.lineIndenti)&&E!==0)ki(n,"bad indentation of a sequence entry");else if(n.lineIndenti)&&(B&&(b=n.line,w=n.lineStart,E=n.position),k5(n,i,ese,!0,d)&&(B?M=n.result:D=n.result),B||(qM(n,_,C,R,M,D,b,w,E),R=M=D=null),$d(n,!0,-1),$=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&$!==0)ki(n,"bad indentation of a mapping entry");else if(n.lineIndenti?E=1:n.lineIndent===i?E=0:n.lineIndenti?E=1:n.lineIndent===i?E=0:n.lineIndent tag; it should be "scalar", not "'+n.kind+'"'),_=0,C=n.implicitTypes.length;_"),n.result!==null&&M.kind!==n.kind&&ki(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+M.kind+'", not "'+n.kind+'"'),M.resolve(n.result,n.tag)?(n.result=M.construct(n.result,n.tag),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ki(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")}return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||k}function FVn(n){var i=n.position,a,c,d,g=!1,b;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap=Object.create(null),n.anchorMap=Object.create(null);(b=n.input.charCodeAt(n.position))!==0&&($d(n,!0,-1),b=n.input.charCodeAt(n.position),!(n.lineIndent>0||b!==37));){for(g=!0,b=n.input.charCodeAt(++n.position),a=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);for(c=n.input.slice(a,n.position),d=[],c.length<1&&ki(n,"directive name must not be less than one character in length");b!==0;){for(;eR(b);)b=n.input.charCodeAt(++n.position);if(b===35){do b=n.input.charCodeAt(++n.position);while(b!==0&&!B2(b));break}if(B2(b))break;for(a=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);d.push(n.input.slice(a,n.position))}b!==0&&e5e(n),sN.call(D7t,c)?D7t[c](n,c,d):tse(n,'unknown document directive "'+c+'"')}if($d(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,$d(n,!0,-1)):g&&ki(n,"directives end mark is expected"),k5(n,n.lineIndent-1,ese,!1,!0),$d(n,!0,-1),n.checkLineBreaks&&SVn.test(n.input.slice(i,n.position))&&tse(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&yae(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,$d(n,!0,-1));return}if(n.position=55296&&a<=56319&&i+1=56320&&c<=57343)?(a-55296)*1024+c-56320+65536:a}function Yqt(n){var i=/^\n* /;return i.test(n)}var Jqt=1,pDe=2,Xqt=3,Zqt=4,SM=5;function pWn(n,i,a,c,d,g,b,w){var E,S=0,k=null,_=!1,C=!1,R=c!==-1,M=-1,D=fWn(tH(n,0))&&hWn(tH(n,n.length-1));if(i||b)for(E=0;E=65536?E+=2:E++){if(S=tH(n,E),!rz(S))return SM;D=D&&F7t(S,k,w),k=S}else{for(E=0;E=65536?E+=2:E++){if(S=tH(n,E),S===tz)_=!0,R&&(C=C||E-M-1>c&&n[M+1]!==" ",M=E);else if(!rz(S))return SM;D=D&&F7t(S,k,w),k=S}C=C||R&&E-M-1>c&&n[M+1]!==" "}return!_&&!C?D&&!b&&!d(n)?Jqt:g===nz?SM:pDe:a>9&&Yqt(n)?SM:b?g===nz?SM:pDe:C?Zqt:Xqt}function gWn(n,i,a,c,d){n.dump=function(){if(i.length===0)return n.quotingType===nz?'""':"''";if(!n.noCompatMode&&(oWn.indexOf(i)!==-1||sWn.test(i)))return n.quotingType===nz?'"'+i+'"':"'"+i+"'";var g=n.indent*Math.max(1,a),b=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),w=c||n.flowLevel>-1&&a>=n.flowLevel;function E(S){return dWn(n,S)}switch(pWn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!c,d)){case Jqt:return i;case pDe:return"'"+i.replace(/'/g,"''")+"'";case Xqt:return"|"+$7t(i,n.indent)+B7t(P7t(i,g));case Zqt:return">"+$7t(i,n.indent)+B7t(P7t(bWn(i,b),g));case SM:return'"'+mWn(i)+'"';default:throw new ib("impossible error: invalid scalar style")}}()}function $7t(n,i){var a=Yqt(n)?String(i):"",c=n[n.length-1]===` -`,d=c&&(n[n.length-2]===` -`||n===` -`),g=d?"+":c?"":"-";return a+g+` -`}function B7t(n){return n[n.length-1]===` -`?n.slice(0,-1):n}function bWn(n,i){for(var a=/(\n+)([^\n]*)/g,c=function(){var S=n.indexOf(` -`);return S=S!==-1?S:n.length,a.lastIndex=S,U7t(n.slice(0,S),i)}(),d=n[0]===` -`||n[0]===" ",g,b;b=a.exec(n);){var w=b[1],E=b[2];g=E[0]===" ",c+=w+(!d&&!g&&E!==""?` -`:"")+U7t(E,i),d=g}return c}function U7t(n,i){if(n===""||n[0]===" ")return n;for(var a=/ [^ ]/g,c,d=0,g,b=0,w=0,E="";c=a.exec(n);)w=c.index,w-d>i&&(g=b>d?b:w,E+=` -`+n.slice(d,g),d=g+1),b=w;return E+=` -`,n.length-d>i&&b>d?E+=n.slice(d,b)+` -`+n.slice(b+1):E+=n.slice(d),E.slice(1)}function mWn(n){for(var i="",a=0,c,d=0;d=65536?d+=2:d++)a=tH(n,d),c=Gp[a],!c&&rz(a)?(i+=n[d],a>=65536&&(i+=n[d+1])):i+=c||uWn(a);return i}function wWn(n,i,a){var c="",d=n.tag,g,b,w;for(g=0,b=a.length;g"u"&&wA(n,i,null,!1,!1))&&(c!==""&&(c+=","+(n.condenseFlow?"":" ")),c+=n.dump);n.tag=d,n.dump="["+c+"]"}function H7t(n,i,a,c){var d="",g=n.tag,b,w,E;for(b=0,w=a.length;b"u"&&wA(n,i+1,null,!0,!0,!1,!0))&&((!c||d!=="")&&(d+=hDe(n,i)),n.dump&&tz===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function yWn(n,i,a){var c="",d=n.tag,g=Object.keys(a),b,w,E,S,k;for(b=0,w=g.length;b1024&&(k+="? "),k+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),wA(n,i,S,!1,!1)&&(k+=n.dump,c+=k));n.tag=d,n.dump="{"+c+"}"}function vWn(n,i,a,c){var d="",g=n.tag,b=Object.keys(a),w,E,S,k,_,C;if(n.sortKeys===!0)b.sort();else if(typeof n.sortKeys=="function")b.sort(n.sortKeys);else if(n.sortKeys)throw new ib("sortKeys must be a boolean or a function");for(w=0,E=b.length;w1024,_&&(n.dump&&tz===n.dump.charCodeAt(0)?C+="?":C+="? "),C+=n.dump,_&&(C+=hDe(n,i)),wA(n,i+1,k,!0,_)&&(n.dump&&tz===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function z7t(n,i,a){var c,d,g,b,w,E;for(d=a?n.explicitTypes:n.implicitTypes,g=0,b=d.length;g tag resolver accepts not "'+E+'" style');n.dump=c}return!0}return!1}function wA(n,i,a,c,d,g,b){n.tag=null,n.dump=a,z7t(n,a,!1)||z7t(n,a,!0);var w=Hqt.call(n.dump),E=c,S;c&&(c=n.flowLevel<0||n.flowLevel>i);var k=w==="[object Object]"||w==="[object Array]",_,C;if(k&&(_=n.duplicates.indexOf(a),C=_!==-1),(n.tag!==null&&n.tag!=="?"||C||n.indent!==2&&i>0)&&(d=!1),C&&n.usedDuplicates[_])n.dump="*ref_"+_;else{if(k&&C&&!n.usedDuplicates[_]&&(n.usedDuplicates[_]=!0),w==="[object Object]")c&&Object.keys(n.dump).length!==0?(vWn(n,i,n.dump,d),C&&(n.dump="&ref_"+_+n.dump)):(yWn(n,i,n.dump),C&&(n.dump="&ref_"+_+" "+n.dump));else if(w==="[object Array]")c&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?H7t(n,i-1,n.dump,d):H7t(n,i,n.dump,d),C&&(n.dump="&ref_"+_+n.dump)):(wWn(n,i,n.dump),C&&(n.dump="&ref_"+_+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&gWn(n,n.dump,i,g,E);else{if(w==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new ib("unacceptable kind of an object to dump "+w)}n.tag!==null&&n.tag!=="?"&&(S=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21"),n.tag[0]==="!"?S="!"+S:S.slice(0,18)==="tag:yaml.org,2002:"?S="!!"+S.slice(18):S="!<"+S+">",n.dump=S+" "+n.dump)}return!0}function EWn(n,i){var a=[],c=[],d,g;for(gDe(n,a,c),d=0,g=c.length;d"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mOe=crypto.getRandomValues.bind(crypto)}return mOe(xWn)}const CWn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),G7t={randomUUID:CWn};function IWn(n,i,a){var d;n=n||{};const c=n.random??((d=n.rng)==null?void 0:d.call(n))??NWn();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,kWn(c)}function RWn(n,i,a){return G7t.randomUUID&&!n?G7t.randomUUID():IWn(n)}let OWn=0;function q7t(n,i){return`${n}_${Date.now()}_${i}_${OWn++}`}function DWn(){return RWn()}function LWn(n,i){return`e-${n}-${i}-${Date.now()}`}var Qqt={exports:{}};(function(n,i){(function(a){n.exports=a()})(function(){return function(){function a(c,d,g){function b(S,k){if(!d[S]){if(!c[S]){var _=typeof XU=="function"&&XU;if(!k&&_)return _(S,!0);if(w)return w(S,!0);var C=new Error("Cannot find module '"+S+"'");throw C.code="MODULE_NOT_FOUND",C}var R=d[S]={exports:{}};c[S][0].call(R.exports,function(M){var D=c[S][1][M];return b(D||M)},R,R.exports,a,c,d,g)}return d[S].exports}for(var w=typeof XU=="function"&&XU,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},D=M.defaultLayoutOptions,B=D===void 0?{}:D,F=M.algorithms,$=F===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:F,P=M.workerFactory,H=M.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof H>"u"&&typeof P>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Q=P;typeof H<"u"&&typeof P>"u"&&(Q=function(ae){return new Worker(ae)});var re=Q(H);if(typeof re.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new _(re),this.worker.postMessage({cmd:"register",algorithms:$}).then(function(ee){return R.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=D.layoutOptions,F=B===void 0?this.defaultLayoutOptions:B,$=D.logging,P=$===void 0?!1:$,H=D.measureExecutionTime,Q=H===void 0?!1:H;return M?this.worker.postMessage({cmd:"layout",graph:M,layoutOptions:F,options:{logging:P,measureExecutionTime:Q}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}])}();var _=function(){function C(R){var M=this;if(b(this,C),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(D){setTimeout(function(){M.receive(M,D)},0)}}return E(C,[{key:"postMessage",value:function(M){var D=this.id||0;this.id=D+1,M.id=D;var B=this;return new Promise(function(F,$){B.resolvers[D]=function(P,H){P?(B.convertGwtStyleError(P),$(P)):F(H)},B.worker.postMessage(M)})}},{key:"receive",value:function(M,D){var B=D.data,F=M.resolvers[B.id];F&&(delete M.resolvers[B.id],B.error?F(B.error):F(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(M){if(M){var D=M.__java$exception;D&&(D.cause&&D.cause.backingJsObject&&(M.cause=D.cause.backingJsObject,this.convertGwtStyleError(M.cause)),delete M.__java$exception)}}}])}()},{}],2:[function(a,c,d){(function(g){(function(){var b;typeof window<"u"?b=window:typeof g<"u"?b=g:typeof self<"u"&&(b=self);var w;function E(){}function S(){}function k(){}function _(){}function C(){}function R(){}function M(){}function D(){}function B(){}function F(){}function $(){}function P(){}function H(){}function Q(){}function re(){}function ee(){}function ae(){}function he(){}function ve(){}function de(){}function ge(){}function Y(){}function fe(){}function De(){}function Se(){}function $e(){}function Te(){}function ke(){}function Je(){}function bt(){}function qe(){}function _t(){}function At(){}function ft(){}function Kt(){}function kt(){}function It(){}function Xt(){}function Bn(){}function tr(){}function Zn(){}function Dr(){}function Ui(){}function Qr(){}function Hi(){}function ai(){}function jc(){}function Xs(){}function as(){}function Jo(){}function xa(){}function xi(){}function gb(){}function Yg(){}function qh(){}function bb(){}function Vp(){}function Rw(){}function Vh(){}function Y2(){}function Jg(){}function Wp(){}function Xg(){}function kN(){}function xN(){}function HR(){}function kA(){}function mb(){}function zR(){}function GR(){}function NN(){}function CN(){}function ho(){}function Fc(){}function Fl(){}function Tf(){}function J2(){}function pl(){}function sh(){}function qm(){}function ah(){}function Wh(){}function X2(){}function Vm(){}function e9(){}function t9(){}function Zz(){}function Qz(){}function eG(){}function n9(){}function r9(){}function i9(){}function tG(){}function nG(){}function rG(){}function iG(){}function qR(){}function oG(){}function o9(){}function sG(){}function aG(){}function uG(){}function cG(){}function lG(){}function dG(){}function fG(){}function s9(){}function hG(){}function a9(){}function u9(){}function pG(){}function gG(){}function bG(){}function mG(){}function wG(){}function IN(){}function yG(){}function c9(){}function vG(){}function EG(){}function VR(){}function SG(){}function TG(){}function l9(){}function H7e(){}function z7e(){}function G7e(){}function q7e(){}function V7e(){}function W7e(){}function K7e(){}function Y7e(){}function J7e(){}function X7e(){}function Z7e(){}function Q7e(){}function eFe(){}function tFe(){}function nFe(){}function rFe(){}function iFe(){}function oFe(){}function sFe(){}function aFe(){}function uFe(){}function cFe(){}function lFe(){}function dFe(){}function fFe(){}function hFe(){}function pFe(){}function gFe(){}function bFe(){}function mFe(){}function wFe(){}function yFe(){}function vFe(){}function EFe(){}function SFe(){}function TFe(){}function AFe(){}function _Fe(){}function kFe(){}function xFe(){}function NFe(){}function CFe(){}function IFe(){}function RFe(){}function OFe(){}function DFe(){}function LFe(){}function MFe(){}function PFe(){}function jFe(){}function FFe(){}function $Fe(){}function BFe(){}function UFe(){}function HFe(){}function zFe(){}function GFe(){}function qFe(){}function VFe(){}function WFe(){}function KFe(){}function YFe(){}function JFe(){}function XFe(){}function ZFe(){}function QFe(){}function e$e(){}function t$e(){}function n$e(){}function r$e(){}function i$e(){}function o$e(){}function s$e(){}function a$e(){}function u$e(){}function c$e(){}function l$e(){}function d$e(){}function f$e(){}function h$e(){}function p$e(){}function g$e(){}function b$e(){}function m$e(){}function w$e(){}function y$e(){}function vue(){}function v$e(){}function E$e(){}function S$e(){}function T$e(){}function A$e(){}function _$e(){}function k$e(){}function x$e(){}function N$e(){}function C$e(){}function I$e(){}function R$e(){}function O$e(){}function D$e(){}function L$e(){}function M$e(){}function P$e(){}function j$e(){}function F$e(){}function $$e(){}function B$e(){}function U$e(){}function H$e(){}function z$e(){}function G$e(){}function q$e(){}function V$e(){}function W$e(){}function K$e(){}function Y$e(){}function J$e(){}function X$e(){}function Z$e(){}function Q$e(){}function eBe(){}function tBe(){}function nBe(){}function rBe(){}function iBe(){}function oBe(){}function sBe(){}function aBe(){}function uBe(){}function cBe(){}function lBe(){}function dBe(){}function fBe(){}function hBe(){}function pBe(){}function gBe(){}function bBe(){}function mBe(){}function wBe(){}function yBe(){}function vBe(){}function EBe(){}function SBe(){}function TBe(){}function ABe(){}function _Be(){}function kBe(){}function xBe(){}function NBe(){}function CBe(){}function IBe(){}function RBe(){}function OBe(){}function DBe(){}function LBe(){}function MBe(){}function PBe(){}function jBe(){}function FBe(){}function $Be(){}function BBe(){}function Eue(){}function UBe(){}function HBe(){}function zBe(){}function GBe(){}function qBe(){}function VBe(){}function WBe(){}function KBe(){}function YBe(){}function JBe(){}function d9(){}function f9(){}function XBe(){}function ZBe(){}function Sue(){}function QBe(){}function eUe(){}function tUe(){}function nUe(){}function rUe(){}function Tue(){}function Aue(){}function iUe(){}function _ue(){}function kue(){}function oUe(){}function sUe(){}function WR(){}function aUe(){}function uUe(){}function cUe(){}function lUe(){}function dUe(){}function fUe(){}function hUe(){}function pUe(){}function gUe(){}function bUe(){}function mUe(){}function wUe(){}function yUe(){}function vUe(){}function EUe(){}function SUe(){}function TUe(){}function AUe(){}function _Ue(){}function xue(){}function kUe(){}function xUe(){}function NUe(){}function CUe(){}function IUe(){}function RUe(){}function OUe(){}function DUe(){}function LUe(){}function MUe(){}function PUe(){}function jUe(){}function FUe(){}function $Ue(){}function BUe(){}function UUe(){}function HUe(){}function zUe(){}function GUe(){}function qUe(){}function VUe(){}function WUe(){}function KUe(){}function YUe(){}function JUe(){}function XUe(){}function ZUe(){}function QUe(){}function eHe(){}function tHe(){}function nHe(){}function rHe(){}function iHe(){}function oHe(){}function sHe(){}function aHe(){}function uHe(){}function cHe(){}function lHe(){}function dHe(){}function fHe(){}function hHe(){}function pHe(){}function gHe(){}function bHe(){}function mHe(){}function wHe(){}function yHe(){}function vHe(){}function EHe(){}function SHe(){}function THe(){}function AHe(){}function _He(){}function kHe(){}function xHe(){}function NHe(){}function CHe(){}function IHe(){}function RHe(){}function OHe(){}function DHe(){}function LHe(){}function MHe(){}function PHe(){}function jHe(){}function FHe(){}function $He(){}function UXt(){}function BHe(){}function UHe(){}function HHe(){}function zHe(){}function GHe(){}function qHe(){}function VHe(){}function WHe(){}function KHe(){}function YHe(){}function JHe(){}function XHe(){}function ZHe(){}function QHe(){}function eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function aze(){}function uze(){}function cze(){}function lze(){}function dze(){}function fze(){}function hze(){}function pze(){}function gze(){}function bze(){}function mze(){}function wze(){}function yze(){}function vze(){}function Eze(){}function Sze(){}function Tze(){}function AG(){}function _G(){}function Aze(){}function kG(){}function _ze(){}function kze(){}function xze(){}function Nze(){}function Cze(){}function Ize(){}function Rze(){}function Oze(){}function Dze(){}function Lze(){}function Mze(){}function Pze(){}function jze(){}function Fze(){}function HXt(){}function $ze(){}function Nue(){}function Bze(){}function Uze(){}function Hze(){}function zze(){}function Gze(){}function qze(){}function Vze(){}function Wze(){}function Kze(){}function Yze(){}function wb(){}function Jze(){}function Z2(){}function Cue(){}function Xze(){}function Zze(){}function Qze(){}function eGe(){}function tGe(){}function nGe(){}function rGe(){}function iGe(){}function oGe(){}function sGe(){}function aGe(){}function uGe(){}function cGe(){}function lGe(){}function dGe(){}function fGe(){}function hGe(){}function pGe(){}function gGe(){}function bGe(){}function Xe(){}function mGe(){}function wGe(){}function yGe(){}function vGe(){}function EGe(){}function SGe(){}function TGe(){}function AGe(){}function _Ge(){}function kGe(){}function xGe(){}function xG(){}function NGe(){}function CGe(){}function NG(){}function IGe(){}function RGe(){}function OGe(){}function DGe(){}function CG(){}function h9(){}function p9(){}function LGe(){}function Iue(){}function MGe(){}function PGe(){}function g9(){}function jGe(){}function FGe(){}function $Ge(){}function b9(){}function BGe(){}function UGe(){}function HGe(){}function zGe(){}function m9(){}function GGe(){}function Rue(){}function qGe(){}function IG(){}function Oue(){}function VGe(){}function WGe(){}function KGe(){}function YGe(){}function zXt(){}function JGe(){}function XGe(){}function ZGe(){}function QGe(){}function eqe(){}function tqe(){}function nqe(){}function rqe(){}function iqe(){}function oqe(){}function xA(){}function RG(){}function sqe(){}function aqe(){}function uqe(){}function cqe(){}function lqe(){}function dqe(){}function fqe(){}function hqe(){}function pqe(){}function gqe(){}function bqe(){}function mqe(){}function wqe(){}function yqe(){}function vqe(){}function Eqe(){}function Sqe(){}function Tqe(){}function Aqe(){}function _qe(){}function kqe(){}function xqe(){}function Nqe(){}function Cqe(){}function Iqe(){}function Rqe(){}function Oqe(){}function Dqe(){}function Lqe(){}function Mqe(){}function Pqe(){}function jqe(){}function Fqe(){}function $qe(){}function Bqe(){}function Uqe(){}function Hqe(){}function zqe(){}function Gqe(){}function qqe(){}function Vqe(){}function Wqe(){}function Kqe(){}function Yqe(){}function Jqe(){}function Xqe(){}function Zqe(){}function Qqe(){}function eVe(){}function tVe(){}function nVe(){}function rVe(){}function iVe(){}function oVe(){}function sVe(){}function aVe(){}function uVe(){}function cVe(){}function lVe(){}function dVe(){}function fVe(){}function hVe(){}function pVe(){}function gVe(){}function bVe(){}function mVe(){}function wVe(){}function yVe(){}function vVe(){}function EVe(){}function SVe(){}function TVe(){}function AVe(){}function _Ve(){}function kVe(){}function xVe(){}function NVe(){}function CVe(){}function IVe(){}function RVe(){}function OVe(){}function DVe(){}function LVe(){}function MVe(){}function PVe(){}function jVe(){}function FVe(){}function $Ve(){}function BVe(){}function UVe(){}function HVe(){}function zVe(){}function GVe(){}function qVe(){}function VVe(){}function WVe(){}function KVe(){}function YVe(){}function JVe(){}function XVe(){}function ZVe(){}function Due(){}function QVe(){}function eWe(){}function OG(){jN()}function tWe(){Pbe()}function nWe(){lO()}function rWe(){ed()}function iWe(){V1e()}function oWe(){H6()}function sWe(){jO()}function aWe(){cO()}function uWe(){Let()}function cWe(){US()}function lWe(){plt()}function dWe(){x_()}function fWe(){S1()}function hWe(){Wpe()}function pWe(){$ft()}function gWe(){Bft()}function bWe(){V9()}function mWe(){U0e()}function wWe(){rut()}function yWe(){Ylt()}function vWe(){Vpe()}function EWe(){tut()}function SWe(){eut()}function TWe(){nut()}function AWe(){out()}function _We(){Be()}function kWe(){Uft()}function xWe(){qut()}function NWe(){Hft()}function CWe(){sut()}function IWe(){$S()}function RWe(){hht()}function OWe(){Zme()}function DWe(){T1()}function LWe(){iut()}function MWe(){V1t()}function PWe(){Eyt()}function jWe(){hme()}function FWe(){Ps()}function $We(){ef()}function BWe(){c0e()}function UWe(){Qpt()}function HWe(){cp()}function zWe(){W6()}function GWe(){hJ()}function qWe(){TY()}function VWe(){d1e()}function WWe(){XS()}function KWe(){ej()}function YWe(){S7()}function Lue(){_n()}function JWe(){Mj()}function XWe(){S1e()}function Mue(){z7()}function Pue(){EK()}function bd(){Pit()}function ZWe(){f0e()}function jue(e){Mt(e)}function QWe(e){this.a=e}function w9(e){this.a=e}function eKe(e){this.a=e}function tKe(e){this.a=e}function nKe(e){this.a=e}function Fue(e){this.a=e}function $ue(e){this.a=e}function rKe(e){this.a=e}function DG(e){this.a=e}function iKe(e){this.a=e}function oKe(e){this.a=e}function sKe(e){this.a=e}function aKe(e){this.a=e}function uKe(e){this.c=e}function cKe(e){this.a=e}function LG(e){this.a=e}function lKe(e){this.a=e}function dKe(e){this.a=e}function fKe(e){this.a=e}function MG(e){this.a=e}function hKe(e){this.a=e}function pKe(e){this.a=e}function PG(e){this.a=e}function gKe(e){this.a=e}function jG(e){this.a=e}function bKe(e){this.a=e}function mKe(e){this.a=e}function wKe(e){this.a=e}function yKe(e){this.a=e}function vKe(e){this.a=e}function EKe(e){this.a=e}function SKe(e){this.a=e}function TKe(e){this.a=e}function AKe(e){this.a=e}function _Ke(e){this.a=e}function kKe(e){this.a=e}function xKe(e){this.a=e}function NKe(e){this.a=e}function CKe(e){this.a=e}function Bue(e){this.a=e}function Uue(e){this.a=e}function y9(e){this.a=e}function KR(e){this.a=e}function Hue(e){this.b=e}function yb(){this.a=[]}function IKe(e,t){e.a=t}function GXt(e,t){e.a=t}function qXt(e,t){e.b=t}function VXt(e,t){e.c=t}function WXt(e,t){e.c=t}function KXt(e,t){e.d=t}function YXt(e,t){e.d=t}function Kh(e,t){e.k=t}function zue(e,t){e.j=t}function JXt(e,t){e.c=t}function Gue(e,t){e.c=t}function que(e,t){e.a=t}function XXt(e,t){e.a=t}function ZXt(e,t){e.f=t}function QXt(e,t){e.a=t}function eZt(e,t){e.b=t}function FG(e,t){e.d=t}function v9(e,t){e.i=t}function Vue(e,t){e.o=t}function tZt(e,t){e.r=t}function nZt(e,t){e.a=t}function rZt(e,t){e.b=t}function RKe(e,t){e.e=t}function iZt(e,t){e.f=t}function Wue(e,t){e.g=t}function oZt(e,t){e.e=t}function sZt(e,t){e.f=t}function aZt(e,t){e.f=t}function YR(e,t){e.b=t}function $G(e,t){e.b=t}function BG(e,t){e.a=t}function uZt(e,t){e.n=t}function cZt(e,t){e.a=t}function lZt(e,t){e.c=t}function dZt(e,t){e.c=t}function fZt(e,t){e.c=t}function hZt(e,t){e.a=t}function pZt(e,t){e.a=t}function gZt(e,t){e.d=t}function bZt(e,t){e.d=t}function mZt(e,t){e.e=t}function wZt(e,t){e.e=t}function yZt(e,t){e.g=t}function vZt(e,t){e.f=t}function EZt(e,t){e.j=t}function SZt(e,t){e.a=t}function TZt(e,t){e.a=t}function AZt(e,t){e.b=t}function OKe(e){e.b=e.a}function DKe(e){e.c=e.d.d}function Kue(e){this.a=e}function Yh(e){this.a=e}function E9(e){this.a=e}function Yue(e){this.a=e}function LKe(e){this.a=e}function JR(e){this.a=e}function XR(e){this.a=e}function Jue(e){this.a=e}function Xue(e){this.a=e}function Ow(e){this.a=e}function UG(e){this.a=e}function Jh(e){this.a=e}function Dw(e){this.a=e}function MKe(e){this.a=e}function PKe(e){this.a=e}function Zue(e){this.a=e}function jKe(e){this.a=e}function Mn(e){this.a=e}function RN(e){this.d=e}function HG(e){this.b=e}function NA(e){this.b=e}function Gv(e){this.b=e}function zG(e){this.c=e}function V(e){this.c=e}function FKe(e){this.c=e}function $Ke(e){this.a=e}function Que(e){this.a=e}function ece(e){this.a=e}function tce(e){this.a=e}function nce(e){this.a=e}function rce(e){this.a=e}function ice(e){this.a=e}function CA(e){this.a=e}function BKe(e){this.a=e}function UKe(e){this.a=e}function IA(e){this.a=e}function HKe(e){this.a=e}function zKe(e){this.a=e}function GKe(e){this.a=e}function qKe(e){this.a=e}function VKe(e){this.a=e}function WKe(e){this.a=e}function KKe(e){this.a=e}function YKe(e){this.a=e}function JKe(e){this.a=e}function RA(e){this.a=e}function XKe(e){this.a=e}function ZKe(e){this.a=e}function QKe(e){this.a=e}function eYe(e){this.a=e}function S9(e){this.a=e}function tYe(e){this.a=e}function nYe(e){this.a=e}function oce(e){this.a=e}function rYe(e){this.a=e}function iYe(e){this.a=e}function oYe(e){this.a=e}function sce(e){this.a=e}function ace(e){this.a=e}function uce(e){this.a=e}function ON(e){this.a=e}function T9(e){this.e=e}function OA(e){this.a=e}function sYe(e){this.a=e}function Q2(e){this.a=e}function cce(e){this.a=e}function aYe(e){this.a=e}function uYe(e){this.a=e}function cYe(e){this.a=e}function lYe(e){this.a=e}function dYe(e){this.a=e}function fYe(e){this.a=e}function hYe(e){this.a=e}function pYe(e){this.a=e}function gYe(e){this.a=e}function bYe(e){this.a=e}function mYe(e){this.a=e}function lce(e){this.a=e}function wYe(e){this.a=e}function yYe(e){this.a=e}function vYe(e){this.a=e}function EYe(e){this.a=e}function SYe(e){this.a=e}function TYe(e){this.a=e}function AYe(e){this.a=e}function _Ye(e){this.a=e}function kYe(e){this.a=e}function xYe(e){this.a=e}function NYe(e){this.a=e}function CYe(e){this.a=e}function IYe(e){this.a=e}function RYe(e){this.a=e}function OYe(e){this.a=e}function DYe(e){this.a=e}function LYe(e){this.a=e}function MYe(e){this.a=e}function PYe(e){this.a=e}function jYe(e){this.a=e}function FYe(e){this.a=e}function $Ye(e){this.a=e}function BYe(e){this.a=e}function UYe(e){this.a=e}function HYe(e){this.a=e}function zYe(e){this.a=e}function GYe(e){this.a=e}function qYe(e){this.a=e}function VYe(e){this.a=e}function WYe(e){this.a=e}function KYe(e){this.a=e}function YYe(e){this.a=e}function JYe(e){this.a=e}function XYe(e){this.a=e}function ZYe(e){this.a=e}function QYe(e){this.a=e}function eJe(e){this.a=e}function tJe(e){this.a=e}function nJe(e){this.a=e}function rJe(e){this.a=e}function iJe(e){this.a=e}function oJe(e){this.a=e}function sJe(e){this.c=e}function aJe(e){this.b=e}function uJe(e){this.a=e}function cJe(e){this.a=e}function lJe(e){this.a=e}function dJe(e){this.a=e}function fJe(e){this.a=e}function hJe(e){this.a=e}function pJe(e){this.a=e}function gJe(e){this.a=e}function bJe(e){this.a=e}function mJe(e){this.a=e}function wJe(e){this.a=e}function yJe(e){this.a=e}function vJe(e){this.a=e}function EJe(e){this.a=e}function SJe(e){this.a=e}function TJe(e){this.a=e}function AJe(e){this.a=e}function _Je(e){this.a=e}function kJe(e){this.a=e}function xJe(e){this.a=e}function NJe(e){this.a=e}function CJe(e){this.a=e}function IJe(e){this.a=e}function RJe(e){this.a=e}function OJe(e){this.a=e}function DJe(e){this.a=e}function LJe(e){this.a=e}function Xh(e){this.a=e}function qv(e){this.a=e}function MJe(e){this.a=e}function PJe(e){this.a=e}function jJe(e){this.a=e}function FJe(e){this.a=e}function $Je(e){this.a=e}function BJe(e){this.a=e}function UJe(e){this.a=e}function HJe(e){this.a=e}function zJe(e){this.a=e}function GJe(e){this.a=e}function qJe(e){this.a=e}function VJe(e){this.a=e}function WJe(e){this.a=e}function KJe(e){this.a=e}function YJe(e){this.a=e}function JJe(e){this.a=e}function XJe(e){this.a=e}function ZJe(e){this.a=e}function dce(e){this.a=e}function QJe(e){this.a=e}function eXe(e){this.a=e}function tXe(e){this.a=e}function nXe(e){this.a=e}function rXe(e){this.a=e}function iXe(e){this.a=e}function oXe(e){this.a=e}function sXe(e){this.a=e}function A9(e){this.a=e}function aXe(e){this.f=e}function uXe(e){this.a=e}function cXe(e){this.a=e}function lXe(e){this.a=e}function dXe(e){this.a=e}function fXe(e){this.a=e}function hXe(e){this.a=e}function pXe(e){this.a=e}function gXe(e){this.a=e}function bXe(e){this.a=e}function mXe(e){this.a=e}function wXe(e){this.a=e}function yXe(e){this.a=e}function vXe(e){this.a=e}function EXe(e){this.a=e}function SXe(e){this.a=e}function TXe(e){this.a=e}function AXe(e){this.a=e}function _Xe(e){this.a=e}function kXe(e){this.a=e}function xXe(e){this.a=e}function NXe(e){this.a=e}function CXe(e){this.a=e}function IXe(e){this.a=e}function RXe(e){this.a=e}function OXe(e){this.a=e}function DXe(e){this.a=e}function LXe(e){this.a=e}function GG(e){this.a=e}function fce(e){this.a=e}function cr(e){this.b=e}function MXe(e){this.a=e}function PXe(e){this.a=e}function jXe(e){this.a=e}function FXe(e){this.a=e}function $Xe(e){this.a=e}function BXe(e){this.a=e}function UXe(e){this.a=e}function HXe(e){this.a=e}function ZR(e){this.a=e}function zXe(e){this.a=e}function GXe(e){this.b=e}function hce(e){this.c=e}function _9(e){this.e=e}function qXe(e){this.a=e}function k9(e){this.a=e}function x9(e){this.a=e}function qG(e){this.a=e}function VXe(e){this.d=e}function WXe(e){this.a=e}function pce(e){this.a=e}function gce(e){this.a=e}function Wm(e){this.e=e}function _Zt(){this.a=0}function Pe(){aV(this)}function hn(){Zs(this)}function VG(){Mst(this)}function KXe(){}function Km(){this.c=y3e}function YXe(e,t){e.b+=t}function kZt(e,t){t.Wb(e)}function xZt(e){return e.a}function NZt(e){return e.a}function CZt(e){return e.a}function IZt(e){return e.a}function RZt(e){return e.a}function K(e){return e.e}function OZt(){return null}function DZt(){return null}function LZt(e){throw K(e)}function eS(e){this.a=xn(e)}function JXe(){this.a=this}function vb(){vrt.call(this)}function MZt(e){e.b.Mf(e.e)}function XXe(e){e.b=new cq}function DN(e,t){e.b=t-e.b}function LN(e,t){e.a=t-e.a}function ZXe(e,t){t.gd(e.a)}function PZt(e,t){Ni(t,e)}function Ot(e,t){e.push(t)}function QXe(e,t){e.sort(t)}function jZt(e,t,r){e.Wd(r,t)}function QR(e,t){e.e=t,t.b=e}function FZt(){Kce(),INn()}function eZe(e){c_(),FQ.je(e)}function bce(){vrt.call(this)}function mce(){vb.call(this)}function WG(){vb.call(this)}function tZe(){vb.call(this)}function eO(){vb.call(this)}function lu(){vb.call(this)}function tS(){vb.call(this)}function Nn(){vb.call(this)}function $c(){vb.call(this)}function nZe(){vb.call(this)}function ys(){vb.call(this)}function rZe(){vb.call(this)}function N9(){this.Bb|=256}function iZe(){this.b=new bnt}function wce(){wce=Y,new hn}function oZe(){mce.call(this)}function Lw(e,t){e.length=t}function C9(e,t){je(e.a,t)}function $Zt(e,t){Fbe(e.c,t)}function BZt(e,t){pi(e.b,t)}function UZt(e,t){a7(e.a,t)}function HZt(e,t){YK(e.a,t)}function DA(e,t){hr(e.e,t)}function nS(e){k7(e.c,e.b)}function zZt(e,t){e.kc().Nb(t)}function yce(e){this.a=fgn(e)}function hi(){this.a=new hn}function sZe(){this.a=new hn}function I9(){this.a=new Pe}function KG(){this.a=new Pe}function vce(){this.a=new Pe}function gl(){this.a=new Jg}function Eb(){this.a=new flt}function YG(){this.a=new xet}function Ece(){this.a=new Wat}function Sce(){this.a=new cit}function Tce(){this.a=new ah}function aZe(){this.a=new Tut}function uZe(){this.a=new Pe}function cZe(){this.a=new Pe}function lZe(){this.a=new Pe}function Ace(){this.a=new Pe}function dZe(){this.d=new Pe}function fZe(){this.a=new hi}function hZe(){this.a=new hn}function pZe(){this.b=new hn}function gZe(){this.b=new Pe}function _ce(){this.e=new Pe}function bZe(){this.d=new Pe}function mZe(){this.a=new fWe}function wZe(){Tat.call(this)}function yZe(){Tat.call(this)}function vZe(){Ice.call(this)}function EZe(){Ice.call(this)}function SZe(){Ice.call(this)}function TZe(){Pe.call(this)}function AZe(){Ace.call(this)}function R9(){I9.call(this)}function _Ze(){H8.call(this)}function MN(){KXe.call(this)}function JG(){MN.call(this)}function rS(){KXe.call(this)}function kce(){rS.call(this)}function Du(){Sr.call(this)}function kZe(){Rce.call(this)}function PN(){DGe.call(this)}function xce(){DGe.call(this)}function xZe(){UZe.call(this)}function NZe(){UZe.call(this)}function CZe(){hn.call(this)}function IZe(){hn.call(this)}function RZe(){hn.call(this)}function XG(){Mft.call(this)}function OZe(){hi.call(this)}function DZe(){N9.call(this)}function ZG(){pde.call(this)}function Nce(){hn.call(this)}function QG(){pde.call(this)}function eq(){hn.call(this)}function LZe(){hn.call(this)}function Cce(){m9.call(this)}function MZe(){Cce.call(this)}function PZe(){m9.call(this)}function jZe(){Due.call(this)}function Ice(){this.a=new hi}function FZe(){this.a=new hn}function Rce(){this.a=new hn}function iS(){this.a=new Sr}function $Ze(){this.a=new Pe}function BZe(){this.j=new Pe}function UZe(){this.a=new BGe}function Oce(){this.a=new bze}function HZe(){this.a=new FQe}function jN(){jN=Y,IQ=new S}function tq(){tq=Y,RQ=new GZe}function nq(){nq=Y,OQ=new zZe}function zZe(){PG.call(this,"")}function GZe(){PG.call(this,"")}function qZe(e){aft.call(this,e)}function VZe(e){aft.call(this,e)}function Dce(e){Fue.call(this,e)}function Lce(e){met.call(this,e)}function GZt(e){met.call(this,e)}function qZt(e){Lce.call(this,e)}function VZt(e){Lce.call(this,e)}function WZt(e){Lce.call(this,e)}function WZe(e){$W.call(this,e)}function KZe(e){$W.call(this,e)}function YZe(e){ert.call(this,e)}function JZe(e){ele.call(this,e)}function FN(e){H9.call(this,e)}function Mce(e){H9.call(this,e)}function XZe(e){H9.call(this,e)}function vs(e){Yot.call(this,e)}function ZZe(e){vs.call(this,e)}function oS(){KR.call(this,{})}function rq(e){qA(),this.a=e}function QZe(e){e.b=null,e.c=0}function KZt(e,t){e.e=t,ywt(e,t)}function YZt(e,t){e.a=t,_yn(e)}function iq(e,t,r){e.a[t.g]=r}function JZt(e,t,r){qmn(r,e,t)}function XZt(e,t){$nn(t.i,e.n)}function eQe(e,t){npn(e).Ad(t)}function ZZt(e,t){return e*e/t}function tQe(e,t){return e.g-t.g}function QZt(e,t){e.a.ec().Kc(t)}function eQt(e){return new y9(e)}function tQt(e){return new Zw(e)}function nQe(){nQe=Y,LEe=new E}function Pce(){Pce=Y,MEe=new Q}function O9(){O9=Y,hI=new ae}function D9(){D9=Y,LQ=new Qnt}function rQe(){rQe=Y,M_t=new ve}function L9(e){dge(),this.a=e}function iQe(e){Mit(),this.a=e}function Kp(e){HV(),this.f=e}function oq(e){HV(),this.f=e}function M9(e){vs.call(this,e)}function Na(e){vs.call(this,e)}function oQe(e){vs.call(this,e)}function sq(e){Yot.call(this,e)}function LA(e){vs.call(this,e)}function jt(e){vs.call(this,e)}function Xo(e){vs.call(this,e)}function sQe(e){vs.call(this,e)}function sS(e){vs.call(this,e)}function Yp(e){vs.call(this,e)}function Ds(e){Mt(e),this.a=e}function $N(e){Vfe(e,e.length)}function jce(e){return qb(e),e}function Mw(e){return!!e&&e.b}function nQt(e){return!!e&&e.k}function rQt(e){return!!e&&e.j}function BN(e){return e.b==e.c}function Ke(e){return Mt(e),e}function ue(e){return Mt(e),e}function tO(e){return Mt(e),e}function Fce(e){return Mt(e),e}function iQt(e){return Mt(e),e}function Af(e){vs.call(this,e)}function aS(e){vs.call(this,e)}function _f(e){vs.call(this,e)}function Dn(e){vs.call(this,e)}function aq(e){vs.call(this,e)}function uq(e){Sde.call(this,e,0)}function cq(){Ohe.call(this,12,3)}function lq(){this.a=In(xn(Ma))}function aQe(){throw K(new Nn)}function $ce(){throw K(new Nn)}function uQe(){throw K(new Nn)}function oQt(){throw K(new Nn)}function sQt(){throw K(new Nn)}function aQt(){throw K(new Nn)}function P9(){P9=Y,c_()}function Jp(){JR.call(this,"")}function UN(){JR.call(this,"")}function Zg(){JR.call(this,"")}function uS(){JR.call(this,"")}function Bce(e){Na.call(this,e)}function Uce(e){Na.call(this,e)}function kf(e){jt.call(this,e)}function MA(e){NA.call(this,e)}function cQe(e){MA.call(this,e)}function dq(e){j8.call(this,e)}function uQt(e,t,r){e.c.Cf(t,r)}function cQt(e,t,r){t.Ad(e.a[r])}function lQt(e,t,r){t.Ne(e.a[r])}function dQt(e,t){return e.a-t.a}function fQt(e,t){return e.a-t.a}function hQt(e,t){return e.a-t.a}function j9(e,t){return eK(e,t)}function X(e,t){return Zat(e,t)}function pQt(e,t){return t in e.a}function lQe(e){return e.a?e.b:0}function gQt(e){return e.a?e.b:0}function dQe(e,t){return e.f=t,e}function bQt(e,t){return e.b=t,e}function fQe(e,t){return e.c=t,e}function mQt(e,t){return e.g=t,e}function Hce(e,t){return e.a=t,e}function zce(e,t){return e.f=t,e}function wQt(e,t){return e.k=t,e}function Gce(e,t){return e.e=t,e}function yQt(e,t){return e.e=t,e}function qce(e,t){return e.a=t,e}function vQt(e,t){return e.f=t,e}function EQt(e,t){e.b=new Eo(t)}function hQe(e,t){e._d(t),t.$d(e)}function SQt(e,t){hc(),t.n.a+=e}function TQt(e,t){S1(),Ts(t,e)}function Vce(e){tat.call(this,e)}function pQe(e){tat.call(this,e)}function gQe(){ede.call(this,"")}function bQe(){this.b=0,this.a=0}function mQe(){mQe=Y,K_t=w0n()}function Ym(e,t){return e.b=t,e}function nO(e,t){return e.a=t,e}function Jm(e,t){return e.c=t,e}function Xm(e,t){return e.d=t,e}function Zm(e,t){return e.e=t,e}function fq(e,t){return e.f=t,e}function HN(e,t){return e.a=t,e}function PA(e,t){return e.b=t,e}function jA(e,t){return e.c=t,e}function Qe(e,t){return e.c=t,e}function pt(e,t){return e.b=t,e}function et(e,t){return e.d=t,e}function tt(e,t){return e.e=t,e}function AQt(e,t){return e.f=t,e}function nt(e,t){return e.g=t,e}function rt(e,t){return e.a=t,e}function it(e,t){return e.i=t,e}function ot(e,t){return e.j=t,e}function _Qt(e,t){return e.g-t.g}function kQt(e,t){return e.b-t.b}function xQt(e,t){return e.s-t.s}function NQt(e,t){return e?0:t-1}function wQe(e,t){return e?0:t-1}function CQt(e,t){return e?t-1:0}function IQt(e,t){return t.pg(e)}function yQe(e,t){return e.k=t,e}function RQt(e,t){return e.j=t,e}function to(){this.a=0,this.b=0}function F9(e){kV.call(this,e)}function Qg(e){m0.call(this,e)}function vQe(e){bW.call(this,e)}function EQe(e){bW.call(this,e)}function SQe(e,t){e.b=0,uy(e,t)}function OQt(e,t){e.c=t,e.b=!0}function DQt(e,t,r){Uon(e.a,t,r)}function TQe(e,t){return e.c._b(t)}function md(e){return e.e&&e.e()}function hq(e){return e?e.d:null}function AQe(e,t){return Vpt(e.b,t)}function LQt(e){return e?e.g:null}function MQt(e){return e?e.i:null}function _Qe(e,t){return ien(e.a,t)}function Wce(e,t){for(;e.zd(t););}function kQe(){throw K(new Nn)}function e1(){e1=Y,EDt=Cmn()}function xQe(){xQe=Y,Bi=$0n()}function Kce(){Kce=Y,J1=G3()}function FA(){FA=Y,w3e=Imn()}function NQe(){NQe=Y,oLt=Rmn()}function Yce(){Yce=Y,Ks=Syn()}function Sb(e){return ep(e),e.o}function Vv(e,t){return e.a+=t,e}function pq(e,t){return e.a+=t,e}function Xp(e,t){return e.a+=t,e}function Qm(e,t){return e.a+=t,e}function Jce(e){nEt(),zNn(this,e)}function $9(e){this.a=new cS(e)}function Zp(e){this.a=new KV(e)}function CQe(){throw K(new Nn)}function IQe(){throw K(new Nn)}function RQe(){throw K(new Nn)}function OQe(){throw K(new Nn)}function DQe(){throw K(new Nn)}function LQe(){this.b=new J_(w_e)}function MQe(){this.a=new J_(Q_e)}function B9(e){this.a=0,this.b=e}function PQe(){this.a=new J_(Tke)}function jQe(){this.b=new J_(Dne)}function FQe(){this.b=new J_(Dne)}function $Qe(){this.a=new J_(Txe)}function BQe(e,t){return rSn(e,t)}function PQt(e,t){return F_n(t,e)}function Xce(e,t){return e.d[t.p]}function rO(e){return e.b!=e.d.c}function UQe(e){return e.l|e.m<<22}function $A(e){return u1(e),e.a}function HQe(e){e.c?Mwt(e):Pwt(e)}function Wv(e,t){for(;e.Pe(t););}function Zce(e,t,r){e.splice(t,r)}function zQe(){throw K(new Nn)}function GQe(){throw K(new Nn)}function qQe(){throw K(new Nn)}function VQe(){throw K(new Nn)}function WQe(){throw K(new Nn)}function KQe(){throw K(new Nn)}function YQe(){throw K(new Nn)}function JQe(){throw K(new Nn)}function XQe(){throw K(new Nn)}function ZQe(){throw K(new Nn)}function jQt(){throw K(new ys)}function FQt(){throw K(new ys)}function iO(e){this.a=new QQe(e)}function QQe(e){Ifn(this,e,Uwn())}function oO(e){return!e||Ost(e)}function sO(e){return mf[e]!=-1}function $Qt(){s$!=0&&(s$=0),a$=-1}function eet(){CQ==null&&(CQ=[])}function aO(e,t){sE.call(this,e,t)}function BA(e,t){aO.call(this,e,t)}function tet(e,t){this.a=e,this.b=t}function net(e,t){this.a=e,this.b=t}function ret(e,t){this.a=e,this.b=t}function iet(e,t){this.a=e,this.b=t}function oet(e,t){this.a=e,this.b=t}function set(e,t){this.a=e,this.b=t}function aet(e,t){this.a=e,this.b=t}function UA(e,t){this.e=e,this.d=t}function Qce(e,t){this.b=e,this.c=t}function uet(e,t){this.b=e,this.a=t}function cet(e,t){this.b=e,this.a=t}function det(e,t){this.b=e,this.a=t}function fet(e,t){this.b=e,this.a=t}function het(e,t){this.a=e,this.b=t}function pet(e,t){this.a=e,this.b=t}function gq(e,t){this.a=e,this.b=t}function get(e,t){this.a=e,this.f=t}function e0(e,t){this.g=e,this.i=t}function mn(e,t){this.f=e,this.g=t}function bet(e,t){this.b=e,this.c=t}function met(e){lde(e.dc()),this.c=e}function BQt(e,t){this.a=e,this.b=t}function wet(e,t){this.a=e,this.b=t}function yet(e){this.a=l(xn(e),16)}function ele(e){this.a=l(xn(e),16)}function vet(e){this.a=l(xn(e),93)}function U9(e){this.b=l(xn(e),93)}function H9(e){this.b=l(xn(e),51)}function z9(){this.q=new b.Date}function bq(e,t){this.a=e,this.b=t}function Eet(e,t){return ba(e.b,t)}function zN(e,t){return e.b.Gc(t)}function tle(e,t){return e.b.Hc(t)}function nle(e,t){return e.b.Oc(t)}function Tet(e,t){return e.b.Gc(t)}function Aet(e,t){return e.c.uc(t)}function _et(e,t){return pr(e.c,t)}function bl(e,t){return e.a._b(t)}function ket(e,t){return e>t&&t0}function Eq(e,t){return va(e,t)<0}function Uet(e,t){return BV(e.a,t)}function ien(e,t){return e.a.a.cc(t)}function Sq(e){return e.b=0}function c3(e,t){return va(e,t)!=0}function i1(e,t){return e.Pd().Xb(t)}function k8(e,t){return rhn(e.Jc(),t)}function wen(e){return""+(Mt(e),e)}function Gle(e,t){return e.a+=""+t,e}function l3(e,t){return e.a+=""+t,e}function zo(e,t){return e.a+=""+t,e}function d3(e,t){return e.a+=""+t,e}function ga(e,t){return e.a+=""+t,e}function zn(e,t){return e.a+=""+t,e}function x8(e){return v3(e==null),e}function qle(e){return at(e,0),null}function unt(e){return Fu(e),e.d.gc()}function yen(e){b.clearTimeout(e)}function cnt(e,t){e.q.setTime(jb(t))}function ven(e,t){qdn(new en(e),t)}function lnt(e,t){Hfe.call(this,e,t)}function dnt(e,t){Hfe.call(this,e,t)}function N8(e,t){Hfe.call(this,e,t)}function vo(e,t){Wr(e,t,e.c.b,e.c)}function Zv(e,t){Wr(e,t,e.a,e.a.a)}function Een(e,t){return e.j[t.p]==2}function fnt(e,t){return e.a=t.g+1,e}function wd(e){return e.a=0,e.b=0,e}function hnt(){hnt=Y,$kt=yn(hY())}function pnt(){pnt=Y,Wxt=yn(lwt())}function gnt(){gnt=Y,$4t=yn(wht())}function bnt(){this.b=new cS(dy(12))}function mnt(){this.b=0,this.a=!1}function wnt(){this.b=0,this.a=!1}function f3(e){this.a=e,OG.call(this)}function ynt(e){this.a=e,OG.call(this)}function ht(e,t){Pr.call(this,e,t)}function tV(e,t){Vw.call(this,e,t)}function Qv(e,t){Ule.call(this,e,t)}function vnt(e,t){CO.call(this,e,t)}function nV(e,t){T_.call(this,e,t)}function Qn(e,t){Z9(),Yn(wU,e,t)}function rV(e,t){return yl(e.a,0,t)}function Ent(e,t){return be(e)===be(t)}function Sen(e,t){return yr(e.a,t.a)}function Vle(e,t){return na(e.a,t.a)}function Ten(e,t){return hst(e.a,t.a)}function gS(e){return po((Mt(e),e))}function Aen(e){return po((Mt(e),e))}function Snt(e){return Ua(e.l,e.m,e.h)}function _en(e){return xn(e),new f3(e)}function xf(e,t){return e.indexOf(t)}function ps(e){return typeof e===z0e}function C8(e){return e<10?"0"+e:""+e}function ken(e){return e==J0||e==Fy}function xen(e){return e==J0||e==jy}function Tnt(e,t){return na(e.g,t.g)}function Wle(e){return As(e.b.b,e,0)}function Ant(e){Zs(this),K3(this,e)}function _nt(e){this.a=ltt(),this.b=e}function knt(e){this.a=ltt(),this.b=e}function xnt(e,t){return je(e.a,t),t}function Kle(e,t){p_(e,0,e.length,t)}function Nen(e,t){return na(e.g,t.g)}function Cen(e,t){return yr(t.f,e.f)}function Ien(e,t){return hc(),t.a+=e}function Ren(e,t){return hc(),t.a+=e}function Oen(e,t){return hc(),t.c+=e}function Yle(e,t){return yc(e.a,t),e}function Den(e,t){return je(e.c,t),e}function I8(e){return yc(new ui,e)}function Zh(e){return e==is||e==cs}function eE(e){return e==il||e==ff}function Nnt(e){return e==a2||e==s2}function tE(e){return e!=pf&&e!=W1}function Yu(e){return e.sh()&&e.th()}function Cnt(e){return cW(l(e,127))}function bS(){ql.call(this,0,0,0,0)}function Int(){oP.call(this,0,0,0,0)}function uh(){Que.call(this,new d1)}function iV(e){ent.call(this,e,!0)}function Eo(e){this.a=e.a,this.b=e.b}function oV(e,t){C_(e,t),w_(e,e.D)}function sV(e,t,r){hj(e,t),fj(e,r)}function r0(e,t,r){Bb(e,t),$b(e,r)}function Bc(e,t,r){ya(e,t),gu(e,r)}function _O(e,t,r){w0(e,t),y0(e,r)}function kO(e,t,r){v0(e,t),E0(e,r)}function Rnt(e,t,r){Ide.call(this,e,t,r)}function Ont(){n8.call(this,"Head",1)}function Dnt(){n8.call(this,"Tail",3)}function o1(e){Pf(),shn.call(this,e)}function nE(e){return e!=null?Ir(e):0}function Lnt(e,t){return new T_(t,e)}function Len(e,t){return new T_(t,e)}function Men(e,t){return ay(t,Gd(e))}function Pen(e,t){return ay(t,Gd(e))}function jen(e,t){return e[e.length]=t}function Fen(e,t){return e[e.length]=t}function Jle(e){return ton(e.b.Jc(),e.a)}function $en(e,t){return wj(oW(e.f),t)}function Ben(e,t){return wj(oW(e.n),t)}function Uen(e,t){return wj(oW(e.p),t)}function Mi(e,t){Pr.call(this,e.b,t)}function Ab(e){oP.call(this,e,e,e,e)}function aV(e){e.c=me(Ci,Rt,1,0,5,1)}function Mnt(e,t,r){ii(e.c[t.g],t.g,r)}function Hen(e,t,r){l(e.c,72).Ei(t,r)}function zen(e,t,r){Bc(r,r.i+e,r.j+t)}function Gen(e,t){Tn(oa(e.a),fut(t))}function qen(e,t){Tn(ju(e.a),hut(t))}function Ven(e,t){sf||(e.b=t)}function uV(e,t,r){return ii(e,t,r),r}function Pnt(e){Oa(e.Qf(),new eYe(e))}function jnt(){jnt=Y,Vte=new sC(vre)}function Xle(){Xle=Y,wce(),PEe=new hn}function Cn(){Cn=Y,new Fnt,new Pe}function Fnt(){new hn,new hn,new hn}function Wen(){throw K(new Yp(y_t))}function Ken(){throw K(new Yp(y_t))}function Yen(){throw K(new Yp(v_t))}function Jen(){throw K(new Yp(v_t))}function h3(e){fr(),Wm.call(this,e)}function $nt(e){this.a=e,pfe.call(this,e)}function cV(e){this.a=e,U9.call(this,e)}function lV(e){this.a=e,U9.call(this,e)}function Xen(e){return e==null?0:Ir(e)}function Ss(e){return e.a0?e:t}function na(e,t){return et?1:0}function Bnt(e,t){return e.a?e.b:t.Ue()}function Ua(e,t,r){return{l:e,m:t,h:r}}function Zen(e,t){e.a!=null&&$tt(t,e.a)}function Qen(e,t){xn(t),uE(e).Ic(new $)}function _i(e,t){$V(e.c,e.c.length,t)}function Unt(e){e.a=new ft,e.c=new ft}function R8(e){this.b=e,this.a=new Pe}function Hnt(e){this.b=new sh,this.a=e}function ede(e){qde.call(this),this.a=e}function znt(e){Ehe.call(this),this.b=e}function Gnt(){n8.call(this,"Range",2)}function qnt(){rbe(),this.a=new J_(O2e)}function Ud(){Ud=Y,b.Math.log(2)}function Uc(){Uc=Y,Lh=(Fet(),xDt)}function O8(e){e.j=me(YEe,Me,325,0,0,1)}function Vnt(e){e.a=new hn,e.e=new hn}function tde(e){return new Le(e.c,e.d)}function etn(e){return new Le(e.c,e.d)}function So(e){return new Le(e.a,e.b)}function ttn(e,t){return Yn(e.a,t.a,t)}function ntn(e,t,r){return Yn(e.g,r,t)}function rtn(e,t,r){return Yn(e.k,r,t)}function rE(e,t,r){return T1e(t,r,e.c)}function Wnt(e,t){return uxn(e.a,t,null)}function nde(e,t){return ce(Ut(e.i,t))}function rde(e,t){return ce(Ut(e.j,t))}function Knt(e,t){vn(e),e.Fc(l(t,16))}function itn(e,t,r){e.c._c(t,l(r,138))}function otn(e,t,r){e.c.Si(t,l(r,138))}function stn(e,t,r){return sxn(e,t,r),r}function atn(e,t){return gc(),t.n.b+=e}function p3(e,t){return bkn(e.c,e.b,t)}function dV(e,t){return jhn(e.Jc(),t)!=-1}function se(e,t){return e!=null&&mY(e,t)}function utn(e,t){return new mrt(e.Jc(),t)}function D8(e){return e.Ob()?e.Pb():null}function Ynt(e){return Lf(e,0,e.length)}function ctn(e){go(e,null),Yi(e,null)}function Jnt(e){xW(e,null),NW(e,null)}function Xnt(){CO.call(this,null,null)}function Znt(){$8.call(this,null,null)}function Qnt(){mn.call(this,"INSTANCE",0)}function iE(){this.a=me(Ci,Rt,1,8,5,1)}function ide(e){this.a=e,hn.call(this)}function ert(e){this.a=(St(),new MA(e))}function ltn(e){this.b=(St(),new zG(e))}function qA(){qA=Y,o2e=new rq(null)}function ode(){ode=Y,ode(),X_t=new It}function je(e,t){return Ot(e.c,t),!0}function trt(e,t){e.c&&(Afe(t),Lat(t))}function dtn(e,t){e.q.setHours(t),CC(e,t)}function sde(e,t){return e.a.Ac(t)!=null}function fV(e,t){return e.a.Ac(t)!=null}function Hd(e,t){return e.a[t.c.p][t.p]}function ftn(e,t){return e.c[t.c.p][t.p]}function htn(e,t){return e.e[t.c.p][t.p]}function hV(e,t,r){return e.a[t.g][r.g]}function ptn(e,t){return e.j[t.p]=UEn(t)}function mS(e,t){return e.a*t.a+e.b*t.b}function gtn(e,t){return e.a<_V(t)?-1:1}function btn(e,t){return ape(e.b,t.Og())}function mtn(e,t){return ape(e.f,t.Og())}function wtn(e,t){return ue(ce(t.a))<=e}function ytn(e,t){return ue(ce(t.a))>=e}function vtn(e,t,r){return r?t!=0:t!=e-1}function nrt(e,t,r){e.a=t^1502,e.b=r^EX}function Etn(e,t,r){return e.a=t,e.b=r,e}function Qh(e,t){return e.a*=t,e.b*=t,e}function g3(e,t,r){return ii(e.g,t,r),r}function Stn(e,t,r,o){ii(e.a[t.g],r.g,o)}function yi(e,t,r){UO.call(this,e,t,r)}function L8(e,t,r){yi.call(this,e,t,r)}function du(e,t,r){yi.call(this,e,t,r)}function rrt(e,t,r){L8.call(this,e,t,r)}function ade(e,t,r){UO.call(this,e,t,r)}function oE(e,t,r){UO.call(this,e,t,r)}function irt(e,t,r){ude.call(this,e,t,r)}function ort(e,t,r){ade.call(this,e,t,r)}function ude(e,t,r){J8.call(this,e,t,r)}function srt(e,t,r){J8.call(this,e,t,r)}function s1(e){this.c=e,this.a=this.c.a}function en(e){this.i=e,this.f=this.i.j}function sE(e,t){this.a=e,U9.call(this,t)}function art(e,t){this.a=e,uq.call(this,t)}function urt(e,t){this.a=e,uq.call(this,t)}function crt(e,t){this.a=e,uq.call(this,t)}function cde(e){this.a=e,uKe.call(this,e.d)}function lrt(e){e.b.Qb(),--e.d.f.d,cP(e.d)}function drt(e){e.a=l(qt(e.b.a,4),131)}function frt(e){e.a=l(qt(e.b.a,4),131)}function Ttn(e){WO(e,VTt),O7(e,rNn(e))}function hrt(e){PG.call(this,l(xn(e),34))}function prt(e){PG.call(this,l(xn(e),34))}function lde(e){if(!e)throw K(new eO)}function dde(e){if(!e)throw K(new lu)}function fde(e,t){return ygn(e,new Zg,t).a}function grt(e,t){return new ymt(e.a,e.b,t)}function Gt(e,t){return xn(t),new brt(e,t)}function brt(e,t){this.a=t,H9.call(this,e)}function mrt(e,t){this.a=t,H9.call(this,e)}function hde(e,t){this.a=t,uq.call(this,e)}function wrt(e,t){this.a=t,$W.call(this,e)}function yrt(e,t){this.a=e,$W.call(this,t)}function vrt(){O8(this),AP(this),this.he()}function pde(){this.Bb|=256,this.Bb|=512}function Lt(){Lt=Y,D1=!1,$k=!0}function Ert(){Ert=Y,yq(),nLt=new ZWe}function Atn(e){return rO(e.a)?put(e):null}function _tn(e){return e.l+e.m*lT+e.h*em}function ktn(e){return e==null?null:e.name}function b3(e){return e==null?tu:bs(e)}function M8(e,t){return e.lastIndexOf(t)}function gde(e,t,r){return e.indexOf(t,r)}function fu(e,t){return!!t&&e.b[t.g]==t}function wS(e){return e.a!=null?e.a:null}function Ju(e){return un(e.a!=null),e.a}function xO(e,t,r){return _K(e,t,t,r),e}function Srt(e,t){return je(t.a,e.a),e.a}function Trt(e,t){return je(t.b,e.a),e.a}function P8(e,t){return++e.b,je(e.a,t)}function bde(e,t){return++e.b,Xa(e.a,t)}function i0(e,t){return je(t.a,e.a),e.a}function j8(e){NA.call(this,e),this.a=e}function mde(e){Gv.call(this,e),this.a=e}function wde(e){MA.call(this,e),this.a=e}function yde(e){YG.call(this),bo(this,e)}function ml(e){JR.call(this,(Mt(e),e))}function fc(e){JR.call(this,(Mt(e),e))}function pV(e){Que.call(this,new mpe(e))}function vde(e,t){O1e.call(this,e,t,null)}function xtn(e,t){return yr(e.n.a,t.n.a)}function Ntn(e,t){return yr(e.c.d,t.c.d)}function Ctn(e,t){return yr(e.c.c,t.c.c)}function Ya(e,t){return l(wr(e.b,t),16)}function Itn(e,t){return e.n.b=(Mt(t),t)}function Rtn(e,t){return e.n.b=(Mt(t),t)}function Otn(e,t){return yr(e.e.b,t.e.b)}function Dtn(e,t){return yr(e.e.a,t.e.a)}function Ltn(e,t,r){return gct(e,t,r,e.b)}function Ede(e,t,r){return gct(e,t,r,e.c)}function Mtn(e){return hc(),!!e&&!e.dc()}function Art(){VN(),this.b=new PYe(this)}function _rt(e){this.a=e,HG.call(this,e)}function NO(e){this.c=e,vS.call(this,e)}function yS(e){this.c=e,en.call(this,e)}function vS(e){this.d=e,en.call(this,e)}function F8(e,t){HV(),this.f=t,this.d=e}function CO(e,t){JN(),this.a=e,this.b=t}function $8(e,t){eg(),this.b=e,this.c=t}function Sde(e,t){cpe(t,e),this.c=e,this.b=t}function tg(e){var t;t=e.a,e.a=e.b,e.b=t}function m3(e){return Ss(e.a)||Ss(e.b)}function o0(e){return e.$H||(e.$H=++k3n)}function gV(e,t){return new Cit(e,e.gc(),t)}function Ptn(e,t){return VV(e.c).Kd().Xb(t)}function VA(e,t,r){var o;o=e.dd(t),o.Rb(r)}function Tde(e,t,r){l(l6(e,t),24).Ec(r)}function jtn(e,t,r){YK(e.a,r),a7(e.a,t)}function krt(e,t,r,o){Bfe.call(this,e,t,r,o)}function WA(e,t,r){return gde(e,Qa(t),r)}function Ftn(e){return D9(),wn((Qat(),N_t),e)}function $tn(e){return new iy(3,e)}function ch(e){return wc(e,Cy),new Ra(e)}function KA(e){return un(e.b!=0),e.a.a.c}function zl(e){return un(e.b!=0),e.c.b.c}function Btn(e,t){return _K(e,t,t+1,""),e}function xrt(e){if(!e)throw K(new $c)}function Nrt(e){e.d=new Rrt(e),e.e=new hn}function Ade(e){if(!e)throw K(new eO)}function Utn(e){if(!e)throw K(new WG)}function un(e){if(!e)throw K(new ys)}function Uw(e){if(!e)throw K(new lu)}function Crt(e){return e.b=l(bhe(e.a),45)}function gr(e,t){return!!e.q&&ba(e.q,t)}function Htn(e,t){return e>0?t*t/e:t*t*100}function ztn(e,t){return e>0?t/(e*e):t*100}function Hw(e,t){return l(Wd(e.a,t),34)}function Gtn(e){return e.f!=null?e.f:""+e.g}function bV(e){return e.f!=null?e.f:""+e.g}function Irt(e){return c_(),parseInt(e)||-1}function qtn(e){return cp(),e.e.a+e.f.a/2}function Vtn(e,t,r){return cp(),r.e.a-e*t}function Wtn(e,t,r){return q9(),r.Lg(e,t)}function Ktn(e,t,r){return cp(),r.e.b-e*t}function Ytn(e){return cp(),e.e.b+e.f.b/2}function Jtn(e,t){return S1(),wt(e,t.e,t)}function IO(e){se(e,162)&&l(e,162).mi()}function Rrt(e){gfe.call(this,e,null,null)}function Ort(){mn.call(this,"GROW_TREE",0)}function Drt(e){this.c=e,this.a=1,this.b=1}function mV(e){Pw(),this.b=e,this.a=!0}function Lrt(e){G9(),this.b=e,this.a=!0}function Mrt(e){HJ(),XXe(this),this.Df(e)}function Prt(e){Sr.call(this),q3(this,e)}function jrt(e){this.c=e,ya(e,0),gu(e,0)}function B8(e){return e.a=-e.a,e.b=-e.b,e}function _de(e,t){return e.a=t.a,e.b=t.b,e}function zw(e,t,r){return e.a+=t,e.b+=r,e}function Frt(e,t,r){return e.a-=t,e.b-=r,e}function Xtn(e,t,r){ej(),e.nf(t)&&r.Ad(e)}function Ztn(e,t,r){iC(oa(e.a),t,fut(r))}function Qtn(e,t,r){return je(t,hgt(e,r))}function enn(e,t){return l(Ut(e.e,t),19)}function tnn(e,t){return l(Ut(e.e,t),19)}function nnn(e,t){return e.c.Ec(l(t,138))}function $rt(e,t){JN(),CO.call(this,e,t)}function kde(e,t){eg(),$8.call(this,e,t)}function Brt(e,t){eg(),$8.call(this,e,t)}function Urt(e,t){eg(),kde.call(this,e,t)}function wV(e,t){Uc(),aP.call(this,e,t)}function Hrt(e,t){Uc(),wV.call(this,e,t)}function xde(e,t){Uc(),wV.call(this,e,t)}function zrt(e,t){Uc(),xde.call(this,e,t)}function Nde(e,t){Uc(),aP.call(this,e,t)}function Grt(e,t){Uc(),aP.call(this,e,t)}function qrt(e,t){Uc(),Nde.call(this,e,t)}function Xu(e,t,r){pu.call(this,e,t,r,2)}function rnn(e,t,r){iC(ju(e.a),t,hut(r))}function yV(e,t){return w1(e.e,l(t,52))}function inn(e,t,r){return t.xl(e.e,e.c,r)}function onn(e,t,r){return t.yl(e.e,e.c,r)}function Cde(e,t,r){return W7(d6(e,t),r)}function Vrt(e,t){return Mt(e),e+_V(t)}function snn(e){return e==null?null:bs(e)}function ann(e){return e==null?null:bs(e)}function unn(e){return e==null?null:Kxn(e)}function cnn(e){return e==null?null:Wwn(e)}function ep(e){e.o==null&&pEn(e)}function We(e){return v3(e==null||$w(e)),e}function ce(e){return v3(e==null||Bw(e)),e}function In(e){return v3(e==null||zi(e)),e}function Wrt(){this.a=new g0,this.b=new g0}function lnn(e,t){this.d=e,DKe(this),this.b=t}function RO(e,t){this.c=e,UA.call(this,e,t)}function w3(e,t){this.a=e,RO.call(this,e,t)}function Ide(e,t,r){ZP.call(this,e,t,r,null)}function Krt(e,t,r){ZP.call(this,e,t,r,null)}function Rde(){Mft.call(this),this.Bb|=xo}function Ode(e,t){YW.call(this,e),this.a=t}function Dde(e,t){YW.call(this,e),this.a=t}function Yrt(e,t){sf||je(e.a,t)}function dnn(e,t){return _Y(e,t),new Gst(e,t)}function fnn(e,t,r){return e.Le(t,r)<=0?r:t}function hnn(e,t,r){return e.Le(t,r)<=0?t:r}function Jrt(e){return Mt(e),e?1231:1237}function vV(e){return l(He(e.a,e.b),296)}function Xrt(e){return gc(),Nnt(l(e,205))}function pnn(e,t){return l(Wd(e.b,t),144)}function gnn(e,t){return l(Wd(e.c,t),236)}function Zrt(e){return new Le(e.c,e.d+e.a)}function bnn(e,t){return US(),new syt(t,e)}function mnn(e,t){return lO(),S_(t.d.i,e)}function wnn(e,t){t.a?Lvn(e,t):fV(e.a,t.b)}function Lde(e,t){return l(Ut(e.b,t),280)}function Pr(e,t){cr.call(this,e),this.a=t}function Mde(e,t,r){return r=Sc(e,t,3,r),r}function Pde(e,t,r){return r=Sc(e,t,6,r),r}function jde(e,t,r){return r=Sc(e,t,9,r),r}function Nf(e,t){return WO(t,uwe),e.f=t,e}function Fde(e,t){return(t&sr)%e.d.length}function Qrt(e,t,r){++e.j,e.oj(t,e.Xi(t,r))}function OO(e,t,r){++e.j,e.rj(),KW(e,t,r)}function eit(e,t,r){var o;o=e.dd(t),o.Rb(r)}function tit(e,t){this.c=e,m0.call(this,t)}function nit(e,t){this.a=e,GXe.call(this,t)}function DO(e,t){this.a=e,GXe.call(this,t)}function $de(e){this.q=new b.Date(jb(e))}function rit(e){this.a=(wc(e,Cy),new Ra(e))}function iit(e){this.a=(wc(e,Cy),new Ra(e))}function EV(e){this.a=(St(),new UG(xn(e)))}function U8(){U8=Y,g$=new Pr(N2t,0)}function aE(){aE=Y,l2=new cr("root")}function YA(){YA=Y,aM=new xZe,new NZe}function Gw(){Gw=Y,f2e=ct((oc(),Am))}function ynn(e){return On(Cb(e,32))^On(e)}function SV(e){return String.fromCharCode(e)}function vnn(e){return e==null?null:e.message}function Enn(e,t,r){return e.apply(t,r)}function oit(e,t,r){return S0e(e.c,e.b,t,r)}function Bde(e,t,r){return NS(e,l(t,23),r)}function _b(e,t){return Lt(),e==t?0:e?1:-1}function Ude(e,t){var r;return r=t,!!e.De(r)}function Hde(e,t){var r;return r=e.e,e.e=t,r}function Snn(e,t){var r;r=e[vX],r.call(e,t)}function Tnn(e,t){var r;r=e[vX],r.call(e,t)}function qw(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function sit(e){Zs(e.e),e.d.b=e.d,e.d.a=e.d}function LO(e){e.b?LO(e.b):e.f.c.yc(e.e,e.d)}function MO(e){return!e.a&&(e.a=new de),e.a}function ait(e,t,r){return e.a+=Lf(t,0,r),e}function Ann(e,t,r){Tb(),IKe(e,t.Te(e.a,r))}function zde(e,t,r,o){oP.call(this,e,t,r,o)}function Gde(e,t){hce.call(this,e),this.a=t}function TV(e,t){hce.call(this,e),this.a=t}function uit(){H8.call(this),this.a=new to}function qde(){this.n=new to,this.o=new to}function cit(){this.b=new to,this.c=new Pe}function lit(){this.a=new Pe,this.b=new Pe}function dit(){this.a=new ah,this.b=new iZe}function Vde(){this.b=new d1,this.a=new d1}function fit(){this.b=new hi,this.a=new hi}function hit(){this.b=new hn,this.a=new hn}function pit(){this.a=new Pe,this.d=new Pe}function git(){this.a=new bWe,this.b=new KBe}function bit(){this.b=new LQe,this.a=new oHe}function H8(){this.n=new rS,this.i=new bS}function br(e,t){return e.a+=t.a,e.b+=t.b,e}function Ri(e,t){return e.a-=t.a,e.b-=t.b,e}function _nn(e){return Lw(e.j.c,0),e.a=-1,e}function Wde(e,t,r){return r=Sc(e,t,11,r),r}function mit(e,t,r){r!=null&&yj(t,NY(e,r))}function wit(e,t,r){r!=null&&vj(t,NY(e,r))}function ES(e,t,r,o){xe.call(this,e,t,r,o)}function Vw(e,t){Na.call(this,iI+e+sm+t)}function Kde(e,t,r,o){xe.call(this,e,t,r,o)}function yit(e,t,r,o){Kde.call(this,e,t,r,o)}function vit(e,t,r,o){gP.call(this,e,t,r,o)}function AV(e,t,r,o){gP.call(this,e,t,r,o)}function Eit(e,t,r,o){AV.call(this,e,t,r,o)}function Yde(e,t,r,o){gP.call(this,e,t,r,o)}function Et(e,t,r,o){Yde.call(this,e,t,r,o)}function Jde(e,t,r,o){AV.call(this,e,t,r,o)}function Sit(e,t,r,o){Jde.call(this,e,t,r,o)}function Tit(e,t,r,o){Gfe.call(this,e,t,r,o)}function Xde(e,t){return e.hk().ti().oi(e,t)}function Zde(e,t){return e.hk().ti().qi(e,t)}function knn(e,t){return e.n.a=(Mt(t),t+10)}function xnn(e,t){return e.n.a=(Mt(t),t+10)}function Nnn(e,t){return e.e=l(e.d.Kb(t),163)}function Cnn(e,t){return t==e||G_(R7(t),e)}function Gl(e,t){return j9(new Array(t),e)}function Ait(e,t){return Mt(e),be(e)===be(t)}function mt(e,t){return Mt(e),be(e)===be(t)}function _it(e,t){return Yn(e.a,t,"")==null}function Qde(e,t,r){return e.lastIndexOf(t,r)}function Inn(e,t){return e.b.zd(new qet(e,t))}function Rnn(e,t){return e.b.zd(new Vet(e,t))}function kit(e,t){return e.b.zd(new Wet(e,t))}function Onn(e){return e<100?null:new Qg(e)}function Dnn(e,t){return Ae(t,(Be(),gL),e)}function Lnn(e,t,r){return yr(e[t.a],e[r.a])}function Mnn(e,t){return na(e.a.d.p,t.a.d.p)}function Pnn(e,t){return na(t.a.d.p,e.a.d.p)}function jnn(e,t){return lO(),!S_(t.d.i,e)}function Fnn(e,t){sf||t&&(e.d=t)}function $nn(e,t){Zh(e.f)?sEn(e,t):J0n(e,t)}function xit(e,t){non.call(this,e,e.length,t)}function Nit(e){this.c=e,N8.call(this,bD,0)}function efe(e,t){this.c=e,eW.call(this,e,t)}function Cit(e,t,r){this.a=e,Sde.call(this,t,r)}function Iit(e,t,r){this.c=t,this.b=r,this.a=e}function PO(e){XA(),this.d=e,this.a=new iE}function Bnn(e,t){var r;return r=t.ni(e.a),r}function Unn(e,t){return yr(e.c-e.s,t.c-t.s)}function Hnn(e,t){return yr(e.c.e.a,t.c.e.a)}function znn(e,t){return yr(e.b.e.a,t.b.e.a)}function Rit(e,t){return se(t,16)&&Bwt(e.c,t)}function Gnn(e,t,r){return l(e.c,72).Uk(t,r)}function z8(e,t,r){return l(e.c,72).Vk(t,r)}function qnn(e,t,r){return inn(e,l(t,345),r)}function tfe(e,t,r){return onn(e,l(t,345),r)}function Vnn(e,t,r){return Sbt(e,l(t,345),r)}function Oit(e,t,r){return uwn(e,l(t,345),r)}function y3(e,t){return t==null?null:hy(e.b,t)}function SS(e){return e==Tm||e==Oh||e==fa}function Dit(e){return e.c?As(e.c.a,e,0):-1}function _V(e){return Bw(e)?(Mt(e),e):e.se()}function G8(e){return!isNaN(e)&&!isFinite(e)}function kV(e){Unt(this),ec(this),bo(this,e)}function Tu(e){aV(this),Tfe(this.c,0,e.Nc())}function Lit(e){Lu(e.a),gpe(e.c,e.b),e.b=null}function xV(){xV=Y,i2e=new Kt,Y_t=new kt}function Mit(){Mit=Y,ODt=me(Ci,Rt,1,0,5,1)}function Pit(){Pit=Y,JDt=me(Ci,Rt,1,0,5,1)}function nfe(){nfe=Y,XDt=me(Ci,Rt,1,0,5,1)}function Wnn(e){return g_(),wn((idt(),Z_t),e)}function Knn(e){return Yc(),wn((wlt(),ikt),e)}function Ynn(e){return Sd(),wn((ylt(),fkt),e)}function Jnn(e){return _u(),wn((vlt(),pkt),e)}function Xnn(e){return Za(),wn((Elt(),bkt),e)}function Znn(e){return Z7(),wn((hnt(),$kt),e)}function rfe(e,t){if(!e)throw K(new jt(t))}function JA(e){if(!e)throw K(new Xo(G0e))}function NV(e,t){if(e!=t)throw K(new $c)}function Hc(e,t,r){this.a=e,this.b=t,this.c=r}function jit(e,t,r){this.a=e,this.b=t,this.c=r}function Fit(e,t,r){this.a=e,this.b=t,this.c=r}function ife(e,t,r){this.b=e,this.c=t,this.a=r}function $it(e,t,r){this.d=e,this.b=r,this.a=t}function Qnn(e,t,r){return Tb(),e.a.Wd(t,r),t}function CV(e){var t;return t=new mb,t.e=e,t}function ofe(e){var t;return t=new dZe,t.b=e,t}function q8(e,t,r){this.e=t,this.b=e,this.d=r}function V8(e,t,r){this.b=e,this.a=t,this.c=r}function Bit(e){this.a=e,Qp(),Gs(Date.now())}function Uit(e,t,r){this.a=e,this.b=t,this.c=r}function IV(e){oP.call(this,e.d,e.c,e.a,e.b)}function sfe(e){oP.call(this,e.d,e.c,e.a,e.b)}function ern(e){return Ht(),wn((pht(),Uxt),e)}function trn(e){return T0(),wn((odt(),Ukt),e)}function nrn(e){return __(),wn((sdt(),Rxt),e)}function rrn(e){return aj(),wn((Nct(),Jkt),e)}function irn(e){return U3(),wn((Slt(),Sxt),e)}function orn(e){return Vi(),wn((zdt(),kxt),e)}function srn(e){return WS(),wn((adt(),jxt),e)}function arn(e){return v_(),wn((Cct(),Vxt),e)}function urn(e){return Xi(),wn((pnt(),Wxt),e)}function crn(e){return Dj(),wn((udt(),Jxt),e)}function lrn(e){return Xl(),wn((cdt(),aNt),e)}function drn(e){return wy(),wn((tft(),cNt),e)}function frn(e){return QP(),wn((Rct(),mNt),e)}function hrn(e){return ZS(),wn((vft(),bNt),e)}function prn(e){return S0(),wn((Blt(),pNt),e)}function grn(e){return F7(),wn((ght(),gNt),e)}function brn(e){return aC(),wn((hdt(),wNt),e)}function mrn(e){return gj(),wn((klt(),yNt),e)}function wrn(e){return Q6(),wn((Iht(),vNt),e)}function yrn(e){return g6(),wn((Ict(),ENt),e)}function vrn(e){return Gb(),wn((xlt(),TNt),e)}function Ern(e){return T7(),wn((yft(),ANt),e)}function Srn(e){return u6(),wn((Oct(),_Nt),e)}function Trn(e){return V6(),wn((mft(),kNt),e)}function Arn(e){return V_(),wn((wft(),xNt),e)}function _rn(e){return Mo(),wn((Ght(),NNt),e)}function krn(e){return A_(),wn((_lt(),CNt),e)}function xrn(e){return g1(),wn((Tlt(),INt),e)}function Nrn(e){return up(),wn((Alt(),ONt),e)}function Crn(e){return $P(),wn((Dct(),DNt),e)}function Irn(e){return rc(),wn((rft(),MNt),e)}function Rrn(e){return HP(),wn((Lct(),PNt),e)}function Orn(e){return my(),wn((ddt(),_It),e)}function Drn(e){return eC(),wn((Llt(),AIt),e)}function Lrn(e){return lC(),wn((ift(),kIt),e)}function Mrn(e){return _1(),wn((zht(),xIt),e)}function Prn(e){return tD(),wn((Rht(),TIt),e)}function jrn(e){return pp(),wn((fdt(),NIt),e)}function Frn(e){return h6(),wn((Mct(),CIt),e)}function $rn(e){return Lo(),wn((Nlt(),RIt),e)}function Brn(e){return Ij(),wn((Clt(),OIt),e)}function Urn(e){return Q3(),wn((Ilt(),DIt),e)}function Hrn(e){return I_(),wn((Rlt(),LIt),e)}function zrn(e){return pj(),wn((Olt(),MIt),e)}function Grn(e){return Rj(),wn((Dlt(),PIt),e)}function qrn(e){return Vb(),wn((ldt(),t4t),e)}function Vrn(e){return $3(),wn((Pct(),s4t),e)}function Wrn(e){return Cf(),wn((jct(),h4t),e)}function Krn(e){return zd(),wn((Fct(),g4t),e)}function Yrn(e){return vd(),wn(($ct(),I4t),e)}function Jrn(e,t){return Mt(e),e+(Mt(t),t)}function Xrn(e){return p0(),wn((Bct(),j4t),e)}function Zrn(e){return KS(),wn((mdt(),F4t),e)}function Qrn(e){return xC(),wn((gnt(),$4t),e)}function ein(e){return X3(),wn((Ult(),B4t),e)}function tin(e){return Z3(),wn((pdt(),cRt),e)}function nin(e){return PP(),wn((Uct(),lRt),e)}function rin(e){return Tj(),wn((Hct(),gRt),e)}function iin(e){return w7(),wn((nft(),mRt),e)}function oin(e){return tj(),wn((zct(),wRt),e)}function sin(e){return C6(),wn((Hlt(),yRt),e)}function ain(e){return c7(),wn((gdt(),$Rt),e)}function uin(e){return Nj(),wn((Mlt(),BRt),e)}function cin(e){return Jj(),wn((Plt(),URt),e)}function lin(e){return v7(),wn((bdt(),zRt),e)}function din(e){return qj(),wn((zlt(),VRt),e)}function XA(){XA=Y,b_e=(Ue(),Wt),CB=Zt}function hc(){hc=Y,rNt=new iBe,iNt=new oBe}function jO(){jO=Y,E$=new EFe,S$=new SFe}function W8(){W8=Y,Zxt=new YFe,Xxt=new JFe}function fin(e){return!e.e&&(e.e=new Pe),e.e}function hin(e){return TC(),wn((oft(),wOt),e)}function pin(e){return W9(),wn((nct(),vOt),e)}function gin(e){return D6(),wn((jlt(),yOt),e)}function bin(e){return K9(),wn((rct(),SOt),e)}function min(e){return r6(),wn((qct(),TOt),e)}function win(e){return K6(),wn((sft(),AOt),e)}function yin(e){return VP(),wn((Gct(),pOt),e)}function vin(e){return nj(),wn((Flt(),gOt),e)}function Ein(e){return $j(),wn(($lt(),bOt),e)}function Sin(e){return WN(),wn((ict(),BOt),e)}function Tin(e){return A6(),wn((Vct(),UOt),e)}function Ain(e){return UP(),wn((Wct(),HOt),e)}function _in(e){return h7(),wn((wdt(),GOt),e)}function kin(e){return Y9(),wn((oct(),QOt),e)}function xin(e){return J9(),wn((sct(),t6t),e)}function Nin(e){return X9(),wn((act(),r6t),e)}function Cin(e){return b6(),wn((Kct(),o6t),e)}function Iin(e){return Jd(),wn((eft(),d6t),e)}function Rin(e){return A1(),wn((bht(),h6t),e)}function Oin(e){return mh(),wn((Tft(),p6t),e)}function Din(e){return Jb(),wn((Sft(),v6t),e)}function Lin(e){return vi(),wn((Hdt(),V6t),e)}function Min(e){return R_(),wn((ydt(),W6t),e)}function Pin(e){return Kd(),wn((qlt(),K6t),e)}function jin(e){return hp(),wn((vdt(),Y6t),e)}function Fin(e){return E7(),wn((Eft(),J6t),e)}function $in(e){return fp(),wn((Glt(),Z6t),e)}function Bin(e){return vc(),wn((Edt(),eDt),e)}function Uin(e){return Sy(),wn((Cht(),tDt),e)}function Hin(e){return vE(),wn((Qdt(),nDt),e)}function zin(e){return qi(),wn((Aft(),rDt),e)}function Gin(e){return ku(),wn((_ft(),iDt),e)}function qin(e){return z3(),wn((Wlt(),lDt),e)}function Vin(e){return Ue(),wn((Udt(),oDt),e)}function Win(e){return oc(),wn((Tdt(),dDt),e)}function Kin(e){return Bu(),wn((Nht(),fDt),e)}function Yin(e){return GS(),wn((Vlt(),hDt),e)}function Jin(e){return zP(),wn((Sdt(),pDt),e)}function Xin(e){return Vj(),wn((Adt(),gDt),e)}function Zin(e){return Lj(),wn((_dt(),wDt),e)}function RV(e,t){this.c=e,this.a=t,this.b=t-e}function Zu(e,t,r){this.c=e,this.a=t,this.b=r}function Hit(e,t,r){this.a=e,this.c=t,this.b=r}function zit(e,t,r){this.a=e,this.c=t,this.b=r}function Git(e,t,r){this.a=e,this.b=t,this.c=r}function afe(e,t,r){this.a=e,this.b=t,this.c=r}function ufe(e,t,r){this.a=e,this.b=t,this.c=r}function OV(e,t,r){this.a=e,this.b=t,this.c=r}function qit(e,t,r){this.a=e,this.b=t,this.c=r}function cfe(e,t,r){this.a=e,this.b=t,this.c=r}function Vit(e,t,r){this.a=e,this.b=t,this.c=r}function Wit(e,t,r){this.b=e,this.a=t,this.c=r}function ng(e,t,r){this.e=e,this.a=t,this.c=r}function Kit(e,t,r){Uc(),Ahe.call(this,e,t,r)}function DV(e,t,r){Uc(),ohe.call(this,e,t,r)}function lfe(e,t,r){Uc(),ohe.call(this,e,t,r)}function dfe(e,t,r){Uc(),ohe.call(this,e,t,r)}function Yit(e,t,r){Uc(),DV.call(this,e,t,r)}function ffe(e,t,r){Uc(),DV.call(this,e,t,r)}function Jit(e,t,r){Uc(),ffe.call(this,e,t,r)}function Xit(e,t,r){Uc(),lfe.call(this,e,t,r)}function Zit(e,t,r){Uc(),dfe.call(this,e,t,r)}function Qin(e){return iT(),wn((mht(),RDt),e)}function FO(e,t){return xn(e),xn(t),new net(e,t)}function TS(e,t){return xn(e),xn(t),new sot(e,t)}function eon(e,t){return xn(e),xn(t),new aot(e,t)}function ton(e,t){return xn(e),xn(t),new fet(e,t)}function hfe(e,t){BQt.call(this,e,zj(new Ds(t)))}function Qit(e,t){this.c=e,this.b=t,this.a=!1}function pfe(e){this.d=e,DKe(this),this.b=Von(e.d)}function gfe(e,t,r){this.c=e,Q9.call(this,t,r)}function non(e,t,r){Zot.call(this,t,r),this.a=e}function eot(){this.a=";,;",this.b="",this.c=""}function tot(e,t,r){this.b=e,lnt.call(this,t,r)}function ron(e,t){t&&(e.b=t,e.a=(u1(t),t.a))}function LV(e){return un(e.b!=0),Vc(e,e.a.a)}function ion(e){return un(e.b!=0),Vc(e,e.c.b)}function oon(e){return!e.c&&(e.c=new xA),e.c}function not(e){var t;return t=new YG,yK(t,e),t}function $O(e){var t;return t=new Sr,yK(t,e),t}function ZA(e){var t;return t=new Pe,sK(t,e),t}function son(e){var t;return t=new hi,sK(t,e),t}function l(e,t){return v3(e==null||mY(e,t)),e}function K8(e,t){return t&&vP(e,t.d)?t:null}function BO(e,t){if(!e)throw K(new jt(t))}function bfe(e,t){if(!e)throw K(new oQe(t))}function AS(e,t){if(!e)throw K(new Xo(t))}function aon(e,t){return V9(),na(e.d.p,t.d.p)}function uon(e,t){return cp(),yr(e.e.b,t.e.b)}function con(e,t){return cp(),yr(e.e.a,t.e.a)}function lon(e,t){return na(bot(e.d),bot(t.d))}function don(e,t){return t==(Ue(),Wt)?e.c:e.d}function fon(e){return new Le(e.c+e.b,e.d+e.a)}function mfe(e){var t,r;r=e.d,t=e.a,e.d=t,e.a=r}function wfe(e){var t,r;t=e.b,r=e.c,e.b=r,e.c=t}function lh(e,t,r,o,s){e.b=t,e.c=r,e.d=o,e.a=s}function yfe(e,t,r,o,s){e.d=t,e.c=r,e.a=o,e.b=s}function rot(e,t,r,o,s){e.c=t,e.d=r,e.b=o,e.a=s}function Y8(e,t){return dfn(e),e.a*=t,e.b*=t,e}function vfe(e,t){return t<0?e.g=-1:e.g=t,e}function UO(e,t,r){Hle.call(this,e,t),this.c=r}function Efe(e,t,r){GA.call(this,e,t),this.b=r}function Sfe(e){nfe(),m9.call(this),this._h(e)}function J8(e,t,r){Hle.call(this,e,t),this.c=r}function iot(e,t,r){this.a=e,Qv.call(this,t,r)}function oot(e,t,r){this.a=e,Qv.call(this,t,r)}function MV(e){this.b=e,this.a=xb(this.b.a).Md()}function sot(e,t){this.b=e,this.a=t,OG.call(this)}function aot(e,t){this.a=e,this.b=t,OG.call(this)}function uot(e){Sde.call(this,e.length,0),this.a=e}function Tfe(e,t,r){ume(r,0,e,t,r.length,!1)}function QA(e,t,r){var o;o=new Zw(r),Kl(e,t,o)}function hon(e,t){var r;return r=e.c,Jpe(e,t),r}function pon(e,t){return(Jpt(e)<<4|Jpt(t))&Ei}function cot(e){return e!=null&&!nY(e,C4,I4)}function HO(e){return e==0||isNaN(e)?e:e<0?-1:1}function Afe(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Gn(e,t){return Wr(e,t,e.c.b,e.c),!0}function X8(e){var t;return t=e.slice(),eK(t,e)}function Z8(e){var t;return t=e.n,e.a.b+t.d+t.a}function lot(e){var t;return t=e.n,e.e.b+t.d+t.a}function _fe(e){var t;return t=e.n,e.e.a+t.b+t.c}function dot(e){return fr(),new dh(0,e)}function fot(){fot=Y,jre=(St(),new UG(vQ))}function Q8(){Q8=Y,new M1e((nq(),OQ),(tq(),RQ))}function hot(){f_(),ksn.call(this,(n1(),Ll))}function pot(e,t){Zot.call(this,t,1040),this.a=e}function s0(e,t){return pC(e,new GA(t.a,t.b))}function gon(e){return!lo(e)&&e.c.i.c==e.d.i.c}function bon(e,t){return e.c=t)throw K(new oZe)}function Zs(e){e.f=new _nt(e),e.i=new knt(e),++e.g}function hP(e){this.b=new Ra(11),this.a=(f0(),e)}function KV(e){this.b=null,this.a=(f0(),e||n2e)}function Hfe(e,t){this.e=e,this.d=t&64?t|Ff:t}function Zot(e,t){this.c=0,this.d=e,this.b=t|64|Ff}function Qot(e){this.a=d1t(e.a),this.b=new Tu(e.b)}function rg(e,t,r,o){var s;s=e.i,s.i=t,s.a=r,s.b=o}function zfe(e){var t;for(t=e;t.f;)t=t.f;return t}function Zon(e){return e.e?dpe(e.e):null}function Qon(e,t){return US(),yr(t.a.o.a,e.a.o.a)}function est(e,t,r){return X_(),AK(e,t)&&AK(e,r)}function A3(e){return ku(),!e.Gc(Cp)&&!e.Gc(K1)}function tst(e,t,r){return LEt(e,l(t,12),l(r,12))}function nst(e){return bu(),l(e,12).g.c.length!=0}function rst(e){return bu(),l(e,12).e.c.length!=0}function pP(e){return new Le(e.c+e.b/2,e.d+e.a/2)}function YV(e,t){return t.Sh()?w1(e.b,l(t,52)):t}function esn(e,t,r){t.of(r,ue(ce(Ut(e.b,r)))*e.a)}function tsn(e,t){t.Tg("General 'Rotator",1),Lxn(e)}function Pi(e,t,r,o,s){XW.call(this,e,t,r,o,s,-1)}function _3(e,t,r,o,s){o6.call(this,e,t,r,o,s,-1)}function xe(e,t,r,o){yi.call(this,e,t,r),this.b=o}function gP(e,t,r,o){UO.call(this,e,t,r),this.b=o}function ist(e){ent.call(this,e,!1),this.a=!1}function ost(){eV.call(this,"LOOKAHEAD_LAYOUT",1)}function sst(){eV.call(this,"LAYOUT_NEXT_LEVEL",3)}function ast(){mn.call(this,"ABSOLUTE_XPLACING",0)}function ust(e){this.b=e,vS.call(this,e),drt(this)}function cst(e){this.b=e,NO.call(this,e),frt(this)}function lst(e,t){this.b=e,uKe.call(this,e.b),this.a=t}function Jw(e,t,r){this.a=e,ES.call(this,t,r,5,6)}function Gfe(e,t,r,o){this.b=e,yi.call(this,t,r,o)}function Ib(e,t,r){Pf(),this.e=e,this.d=t,this.a=r}function oo(e,t){for(Mt(t);e.Ob();)t.Ad(e.Pb())}function bP(e,t){return fr(),new ihe(e,t,0)}function JV(e,t){return fr(),new ihe(6,e,t)}function nsn(e,t){return mt(e.substr(0,t.length),t)}function ba(e,t){return zi(t)?yW(e,t):!!Zo(e.f,t)}function rsn(e){return Ua(~e.l&Uu,~e.m&Uu,~e.h&yp)}function XV(e){return typeof e===fD||typeof e===qJ}function hh(e){return new Ft(new hde(e.a.length,e.a))}function ZV(e){return new yt(null,dsn(e,e.length))}function dst(e){if(!e)throw K(new ys);return e.d}function xS(e){var t;return t=J3(e),un(t!=null),t}function isn(e){var t;return t=Zpn(e),un(t!=null),t}function t_(e,t){var r;return r=e.a.gc(),cpe(t,r),r-t}function pi(e,t){var r;return r=e.a.yc(t,e),r==null}function zO(e,t){return e.a.yc(t,(Lt(),D1))==null}function osn(e,t){return e>0?b.Math.log(e/t):-100}function qfe(e,t){return t?bo(e,t):!1}function NS(e,t,r){return Jl(e.a,t),Nfe(e.b,t.g,r)}function ssn(e,t,r){e_(r,e.a.c.length),tc(e.a,r,t)}function pe(e,t,r,o){ypt(t,r,e.length),asn(e,t,r,o)}function asn(e,t,r,o){var s;for(s=t;s0?1:0}function fsn(e,t){return yr(e.c.c+e.c.b,t.c.c+t.c.b)}function mP(e,t){Wr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function pst(e,t){return e.c?pst(e.c,t):je(e.b,t),e}function u0(e,t){ei(Ia(e.Mc(),new xBe),new WYe(t))}function n_(e,t,r,o,s){HY(e,l(wr(t.k,r),16),r,o,s)}function gst(e,t,r,o,s){for(;t=e.g}function C3(e){return b.Math.sqrt(e.a*e.a+e.b*e.b)}function xst(e){return se(e,104)&&(l(e,20).Bb&Ws)!=0}function c0(e){return!e.d&&(e.d=new yi(Uo,e,1)),e.d}function _sn(e){return!e.a&&(e.a=new yi(Y1,e,4)),e.a}function Nst(e){this.c=e,this.a=new Sr,this.b=new Sr}function ksn(e){this.a=(Mt($n),$n),this.b=e,new Nce}function Cst(e,t,r){this.a=e,Hhe.call(this,8,t,null,r)}function rhe(e,t,r){this.a=e,hce.call(this,t),this.b=r}function ihe(e,t,r){Wm.call(this,e),this.a=t,this.b=r}function ohe(e,t,r){_9.call(this,t),this.a=e,this.b=r}function xsn(e,t,r){l(t.b,68),Oa(t.a,new afe(e,r,t))}function uW(e,t){for(Mt(t);e.c=e?new rle:Rfn(e-1)}function wl(e){if(e==null)throw K(new tS);return e}function Mt(e){if(e==null)throw K(new tS);return e}function ji(e){return!e.a&&e.c?e.c.b:e.a}function Dst(e){var t,r;return t=e.c.i.c,r=e.d.i.c,t==r}function Rsn(e,t){return na(t.j.c.length,e.j.c.length)}function Lst(e){fhe(e.a),e.b=me(Ci,Rt,1,e.b.length,5,1)}function I3(e){e.c?e.c.Ye():(e.d=!0,S2n(e))}function u1(e){e.c?u1(e.c):(y1(e),e.d=!0)}function Lu(e){Uw(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function Mst(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function Pst(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ui(){BZe.call(this),Lw(this.j.c,0),this.a=-1}function jst(){mn.call(this,"DELAUNAY_TRIANGULATION",0)}function she(e){for(;e.a.b!=0;)wxn(e,l(Mat(e.a),9))}function Osn(e,t){Tn((!e.a&&(e.a=new DO(e,e)),e.a),t)}function ahe(e,t){e.c<0||e.b.b=0?e.hi(r):Qbe(e,t)}function Fst(e,t){this.b=e,eW.call(this,e,t),drt(this)}function $st(e,t){this.b=e,efe.call(this,e,t),frt(this)}function Bst(){Ibe.call(this,_l,(FA(),w3e)),I_n(this)}function uhe(e){return!e.b&&(e.b=new k9(new eq)),e.b}function Lsn(e){if(e.p!=3)throw K(new lu);return e.e}function Msn(e){if(e.p!=4)throw K(new lu);return e.e}function Psn(e){if(e.p!=4)throw K(new lu);return e.j}function jsn(e){if(e.p!=3)throw K(new lu);return e.j}function Fsn(e){if(e.p!=6)throw K(new lu);return e.f}function $sn(e){if(e.p!=6)throw K(new lu);return e.k}function d0(e){return e.c==-2&&fZt(e,dwn(e.g,e.b)),e.c}function i_(e,t){var r;return r=sW("",e),r.n=t,r.i=1,r}function ph(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function Bsn(e,t){GV(l(t.b,68),e),Oa(t.a,new oce(e))}function Ust(e,t){return Q8(),new M1e(new prt(e),new hrt(t))}function Usn(e,t,r){return zS(),r.Kg(e,l(t.jd(),149))}function Hsn(e){return wc(e,YJ),uj(To(To(5,e),e/10|0))}function che(e){return St(),e?e.Me():(f0(),f0(),r2e)}function Yn(e,t,r){return zi(t)?Qo(e,t,r):eu(e.f,t,r)}function zsn(e){return String.fromCharCode.apply(null,e)}function Hst(e){return!e.d&&(e.d=new NA(e.c.Bc())),e.d}function o_(e){return!e.a&&(e.a=new cQe(e.c.vc())),e.a}function zst(e){return!e.b&&(e.b=new MA(e.c.ec())),e.b}function Gst(e,t){ltn.call(this,Ofn(xn(e),xn(t))),this.a=t}function lhe(e,t,r,o){e0.call(this,e,t),this.d=r,this.a=o}function EP(e,t,r,o){e0.call(this,e,r),this.a=t,this.f=o}function R3(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function qst(){Ibe.call(this,um,(NQe(),oLt)),Ekn(this)}function Vst(){vs.call(this,"There is no more element.")}function uo(e,t){return Yt(t,e.length),e.charCodeAt(t)}function Wst(e,t){e.u.Gc((ku(),Cp))&&uvn(e,t),Xln(e,t)}function ia(e,t){return be(e)===be(t)||e!=null&&pr(e,t)}function Go(e,t){return BV(e.a,t)?e.b[l(t,23).g]:null}function Kst(e,t){var r;return r=new ra(e),Ot(t.c,r),r}function O3(e){return e.j.c.length=0,fhe(e.c),_nn(e.a),e}function Gsn(e){return!e.b&&(e.b=new Et(pn,e,4,7)),e.b}function s_(e){return!e.c&&(e.c=new Et(pn,e,5,8)),e.c}function dhe(e){return!e.c&&(e.c=new xe(zu,e,9,9)),e.c}function cW(e){return!e.n&&(e.n=new xe(Is,e,1,7)),e.n}function nr(e,t,r,o){return fht(e,t,r,!1),Bj(e,o),e}function Yst(e,t){ZK(e,ue(lp(t,"x")),ue(lp(t,"y")))}function Jst(e,t){ZK(e,ue(lp(t,"x")),ue(lp(t,"y")))}function qsn(){return Y9(),Z(X(ZOt,1),Ce,557,0,[Jne])}function Vsn(){return J9(),Z(X(e6t,1),Ce,558,0,[Xne])}function Wsn(){return X9(),Z(X(n6t,1),Ce,559,0,[Zne])}function Ksn(){return K9(),Z(X(EOt,1),Ce,550,0,[Mne])}function Ysn(){return W9(),Z(X(Xke,1),Ce,480,0,[Lne])}function Jsn(){return WN(),Z(X(wxe,1),Ce,531,0,[DL])}function lW(){lW=Y,I_t=new lle(Z(X(cm,1),Q7,45,0,[]))}function Xsn(e,t){return new vat(l(xn(e),50),l(xn(t),50))}function Zsn(e){return e!=null&&zN(yU,e.toLowerCase())}function a_(e){return e.e==Pk&&wZt(e,m1n(e.g,e.b)),e.e}function qO(e){return e.f==Pk&&vZt(e,hmn(e.g,e.b)),e.f}function uE(e){var t;return t=e.b,!t&&(e.b=t=new rKe(e)),t}function fhe(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function Qsn(e,t,r){var o;o=l(e.d.Kb(r),163),o&&o.Nb(t)}function ean(e,t){return yr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function tan(e,t){return yr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function nan(e,t){return sle(),yr((Mt(e),e),(Mt(t),t))}function Ia(e,t){return y1(e),new yt(e,new lpe(t,e.a))}function lr(e,t){return y1(e),new yt(e,new Tpe(t,e.a))}function Qw(e,t){return y1(e),new Ode(e,new alt(t,e.a))}function SP(e,t){return y1(e),new Dde(e,new ult(t,e.a))}function hhe(e,t){this.b=e,this.c=t,this.a=new lS(this.b)}function dW(e,t,r,o){this.a=e,this.e=t,this.d=r,this.c=o}function fW(e,t,r){this.a=J0e,this.d=e,this.b=t,this.c=r}function TP(e,t,r,o){this.a=e,this.c=t,this.b=r,this.d=o}function phe(e,t,r,o){this.c=e,this.b=t,this.a=r,this.d=o}function Xst(e,t,r,o){this.c=e,this.b=t,this.d=r,this.a=o}function Zst(e,t,r,o){this.a=e,this.d=t,this.c=r,this.b=o}function ql(e,t,r,o){this.c=e,this.d=t,this.b=r,this.a=o}function IS(e,t,r,o){mn.call(this,e,t),this.a=r,this.b=o}function Qst(e,t,r,o){rpt.call(this,e,r,o,!1),this.f=t}function eat(e,t){this.d=(Mt(e),e),this.a=16449,this.c=t}function tat(e){this.a=new Pe,this.e=me(Rn,Me,54,e,0,2)}function ran(e){e.Tg("No crossing minimization",1),e.Ug()}function np(e){var t,r;return r=(t=new Km,t),m_(r,e),r}function hW(e){var t,r;return r=(t=new Km,t),Dbe(r,e),r}function pW(e,t,r){var o,s;return o=j0e(e),s=t.qi(r,o),s}function gW(e){var t;return t=Lfn(e),t||null}function nat(e){return!e.b&&(e.b=new xe(Cr,e,12,3)),e.b}function u_(e){if(Fu(e.d),e.d.d!=e.c)throw K(new $c)}function rat(e,t,r,o){this.a=e,this.c=t,this.d=r,this.b=o}function iat(e,t,r,o){this.a=e,this.b=t,this.d=r,this.c=o}function oat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function sat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function Ob(e,t,r,o){this.e=e,this.a=t,this.c=r,this.d=o}function aat(e,t,r,o){Uc(),clt.call(this,t,r,o),this.a=e}function uat(e,t,r,o){Uc(),clt.call(this,t,r,o),this.a=e}function cat(e,t){this.a=e,lnn.call(this,e,l(e.d,16).dd(t))}function bW(e){this.f=e,this.c=this.f.e,e.f>0&&sbt(this)}function AP(e){return e.n&&(e.e!==KEt&&e.he(),e.j=null),e}function lat(e){return v3(e==null||XV(e)&&e.Rm!==ge),e}function ian(e,t,r){return je(e.a,(_Y(t,r),new e0(t,r))),e}function oan(e,t,r){A_n(e.a,r),Ihn(r),Vvn(e.b,r),q_n(t,r)}function san(e,t){return yr(hu(e)*Qu(e),hu(t)*Qu(t))}function aan(e,t){return yr(hu(e)*Qu(e),hu(t)*Qu(t))}function uan(e){hc();var t;t=l(e.g,9),t.n.a=e.d.c+t.d.b}function ec(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function ghe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function bhe(e){return un(e.b0?Wl(e):new Pe}function lan(e,t){return l(j(e,(Ie(),CT)),16).Ec(t),t}function dan(e,t){return wt(e,l(j(t,(Be(),Ky)),15),t)}function fan(e){return I0(e)&&Ke(We(ye(e,(Be(),pm))))}function RS(e){var t;return t=e.f,t||(e.f=new UA(e,e.c))}function han(e,t,r){return VN(),Agn(l(Ut(e.e,t),520),r)}function pan(e,t,r){e.i=0,e.e=0,t!=r&&ipt(e,t,r)}function gan(e,t,r){e.i=0,e.e=0,t!=r&&opt(e,t,r)}function dat(e,t,r,o){this.b=e,this.c=o,N8.call(this,t,r)}function fat(e,t){this.g=e,this.d=Z(X(Nh,1),yg,9,0,[t])}function hat(e,t){e.d&&!e.d.a&&(YXe(e.d,t),hat(e.d,t))}function pat(e,t){e.e&&!e.e.a&&(YXe(e.e,t),pat(e.e,t))}function gat(e,t){return yE(e.j,t.s,t.c)+yE(t.e,e.s,e.c)}function ban(e){return l(e.jd(),149).Og()+":"+bs(e.kd())}function man(e,t){return-yr(hu(e)*Qu(e),hu(t)*Qu(t))}function wan(e,t){return nc(e),nc(t),tQe(l(e,23),l(t,23))}function Db(e,t,r){var o,s;o=_V(r),s=new y9(o),Kl(e,t,s)}function yan(e){P9(),b.setTimeout(function(){throw e},0)}function bat(e){this.b=new Pe,li(this.b,this.b),this.a=e}function mat(e){this.b=new pUe,this.a=e,b.Math.random()}function mhe(e,t){new Sr,this.a=new Du,this.b=e,this.c=t}function wat(e,t,r,o){Hle.call(this,t,r),this.b=e,this.a=o}function mW(e,t,r,o,s,u){o6.call(this,e,t,r,o,s,u?-2:-1)}function yat(){KY(this,new Mue),this.wb=(a1(),Bt),FA()}function whe(){whe=Y,akt=new bb,ckt=new Dfe,ukt=new Vp}function St(){St=Y,No=new $e,kh=new ke,d$=new Se}function f0(){f0=Y,n2e=new bt,zQ=new bt,r2e=new qe}function vr(e){return!e.q&&(e.q=new xe(Dl,e,11,10)),e.q}function Ne(e){return!e.s&&(e.s=new xe(au,e,21,17)),e.s}function _P(e){return!e.a&&(e.a=new xe(En,e,10,11)),e.a}function kP(e,t){if(e==null)throw K(new sS(t));return e}function vat(e,t){qZt.call(this,new KV(e)),this.a=e,this.b=t}function yhe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function vhe(e){return e&&e.hashCode?e.hashCode():o0(e)}function van(e){return new art(e,e.e.Pd().gc()*e.c.Pd().gc())}function Ean(e){return new urt(e,e.e.Pd().gc()*e.c.Pd().gc())}function wW(e){return se(e,18)?new Ww(l(e,18)):son(e.Jc())}function xP(e){return St(),se(e,59)?new dq(e):new j8(e)}function San(e){return xn(e),S1t(new Ft(Gt(e.a.Jc(),new D)))}function yW(e,t){return t==null?!!Zo(e.f,null):Fon(e.i,t)}function Tan(e,t){var r;return r=sde(e.a,t),r&&(t.d=null),r}function Eat(e,t,r){return e.f?e.f.cf(t,r):!1}function VO(e,t,r,o){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o)}function vW(e,t,r,o){ii(e.c[t.g],t.g,r),ii(e.b[t.g],t.g,o)}function Aan(e,t,r){return ue(ce(r.a))<=e&&ue(ce(r.b))>=t}function Sat(){this.d=new Sr,this.b=new hn,this.c=new Pe}function Tat(){this.b=new hi,this.d=new Sr,this.e=new R9}function Ehe(){this.c=new to,this.d=new to,this.e=new to}function h0(){this.a=new Du,this.b=(wc(3,Cy),new Ra(3))}function Aat(e){this.c=e,this.b=new Zp(l(xn(new Rw),50))}function _at(e){this.c=e,this.b=new Zp(l(xn(new aG),50))}function kat(e){this.b=e,this.a=new Zp(l(xn(new pl),50))}function ig(e,t){this.e=e,this.a=Ci,this.b=nyt(t),this.c=t}function NP(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function xat(e,t,r,o,s,u){this.a=e,fK.call(this,t,r,o,s,u)}function Nat(e,t,r,o,s,u){this.a=e,fK.call(this,t,r,o,s,u)}function c1(e,t,r,o,s,u,f){return new FW(e.e,t,r,o,s,u,f)}function _an(e,t,r){return r>=0&&mt(e.substr(r,t.length),t)}function Cat(e,t){return se(t,149)&&mt(e.b,l(t,149).Og())}function kan(e,t){return e.a?t.Dh().Jc():l(t.Dh(),72).Gi()}function Iat(e,t){var r;return r=e.b.Oc(t),Tct(r,e.b.gc()),r}function WO(e,t){if(e==null)throw K(new sS(t));return e}function us(e){return e.u||(Mu(e),e.u=new nit(e,e)),e.u}function c_(){c_=Y;var e,t;t=!i1n(),e=new ee,FQ=t?new re:e}function Ja(e){var t;return t=l(qt(e,16),29),t||e.fi()}function CP(e,t){var r;return r=Sb(e.Pm),t==null?r:r+": "+t}function yl(e,t,r){return no(t,r,e.length),e.substr(t,r-t)}function Rat(e,t){H8.call(this),Lpe(this),this.a=e,this.c=t}function Oat(){eV.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function xan(){return $P(),Z(X(nTe,1),Ce,425,0,[Jee,tTe])}function Nan(){return HP(),Z(X(bTe,1),Ce,428,0,[ste,ote])}function Can(){return h6(),Z(X(r_e,1),Ce,426,0,[Fte,$te])}function Ian(){return QP(),Z(X(ISe,1),Ce,427,0,[CSe,Cee])}function Ran(){return g6(),Z(X($Se,1),Ce,424,0,[V$,FSe])}function Oan(){return u6(),Z(X(HSe,1),Ce,479,0,[USe,K$])}function Dan(){return zd(),Z(X(p4t,1),Ce,512,0,[ym,uf])}function Lan(){return Cf(),Z(X(f4t,1),Ce,513,0,[sw,kg])}function Man(){return vd(),Z(X(C4t,1),Ce,519,0,[nv,U1])}function Pan(){return $3(),Z(X(o4t,1),Ce,522,0,[JI,YI])}function jan(){return p0(),Z(X(P4t,1),Ce,457,0,[H1,u2])}function Fan(){return PP(),Z(X(Z_e,1),Ce,430,0,[ane,X_e])}function $an(){return Tj(),Z(X(Q_e,1),Ce,490,0,[FB,d2])}function Ban(){return tj(),Z(X(tke,1),Ce,431,0,[eke,hne])}function Uan(){return r6(),Z(X(Zke,1),Ce,433,0,[Pne,YB])}function Han(){return VP(),Z(X(Gke,1),Ce,481,0,[Ine,zke])}function zan(){return A6(),Z(X(vxe,1),Ce,432,0,[XB,yxe])}function Gan(){return b6(),Z(X(i6t,1),Ce,498,0,[ere,Qne])}function qan(){return UP(),Z(X(Sxe,1),Ce,389,0,[Hne,Exe])}function Van(){return aj(),Z(X(b2e,1),Ce,429,0,[tee,b$])}function Wan(){return v_(),Z(X(qxt,1),Ce,506,0,[nL,pee])}function IP(e,t,r,o){return r>=0?e.Rh(t,r,o):e.zh(null,r,o)}function KO(e){return e.b.b==0?e.a.uf():LV(e.b)}function Kan(e){if(e.p!=5)throw K(new lu);return On(e.f)}function Yan(e){if(e.p!=5)throw K(new lu);return On(e.k)}function She(e){return be(e.a)===be((EK(),Lre))&&gkn(e),e.a}function Jan(e){e&&CP(e,e.ge())}function Dat(e,t){nZt(this,new Le(e.a,e.b)),rZt(this,$O(t))}function p0(){p0=Y,H1=new Ile(dT,0),u2=new Ile(fT,1)}function Cf(){Cf=Y,sw=new kle(fT,0),kg=new kle(dT,1)}function Xan(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=iP(e.c,e.b,e.a))}function Zan(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=iP(e.c,e.b,e.a))}function Lat(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function Mat(e){return e.b==0?null:(un(e.b!=0),Vc(e,e.a.a))}function ma(e,t){return t==null?Es(Zo(e.f,null)):XN(e.i,t)}function Pat(e,t,r,o,s){return new JY(e,(g_(),WQ),t,r,o,s)}function RP(e,t){return _ct(t),yfn(e,me(Rn,Xn,30,t,15,1),t)}function OP(e,t){return kP(e,"set1"),kP(t,"set2"),new wet(e,t)}function Qan(e,t){var r=jQ[e.charCodeAt(0)];return r??e}function jat(e,t){var r,o;return r=t,o=new Xt,Hvt(e,r,o),o.d}function EW(e,t,r,o){var s;s=new uit,t.a[r.g]=s,NS(e.b,o,s)}function eun(e,t){var r;return r=gfn(e.f,t),br(B8(r),e.f.d)}function D3(e){var t;xfn(e.a),Pnt(e.a),t=new S9(e.a),g1e(t)}function tun(e,t){qwt(e,!0),Oa(e.e.Pf(),new ife(e,!0,t))}function Fat(e){this.a=l(xn(e),279),this.b=(St(),new wde(e))}function $at(e,t,r){this.i=new Pe,this.b=e,this.g=t,this.a=r}function DP(e,t,r){this.c=new Pe,this.e=e,this.f=t,this.b=r}function The(e,t,r){this.a=new Pe,this.e=e,this.f=t,this.c=r}function SW(e,t,r){fr(),Wm.call(this,e),this.b=t,this.a=r}function Ahe(e,t,r){Uc(),_9.call(this,t),this.a=e,this.b=r}function Bat(e){H8.call(this),Lpe(this),this.a=e,this.c=!0}function g0(){VZt.call(this,new cS(dy(12))),lde(!0),this.a=2}function zd(){zd=Y,ym=new xle(xX,0),uf=new xle("UP",1)}function ey(e){return e.Db>>16!=3?null:l(e.Cb,19)}function Gd(e){return e.Db>>16!=9?null:l(e.Cb,19)}function Uat(e){return e.Db>>16!=6?null:l(e.Cb,74)}function nun(e){if(e.ye())return null;var t=e.n;return o$[t]}function run(e){function t(){}return t.prototype=e||{},new t}function Hat(e){var t;return t=new $9(dy(e.length)),xge(t,e),t}function YO(e,t){var r;r=e.q.getHours(),e.q.setDate(t),CC(e,r)}function _he(e,t,r){var o;o=e.Fh(t),o>=0?e.$h(o,r):Nme(e,t,r)}function cE(e,t,r){LP(),e&&Yn(Rre,e,t),e&&Yn(oM,e,r)}function iun(e,t){return cp(),l(j(t,(Ps(),Yf)),15).a==e}function oun(e,t){return W8(),Lt(),l(t.b,15).a=0?e.Th(r):nJ(e,t)}function TW(e,t,r){var o;o=ept(e,t,r),e.b=new kj(o.c.length)}function Vat(e){this.a=e,this.b=me(n4t,Me,2022,e.e.length,0,2)}function Wat(){this.a=new uh,this.e=new hi,this.g=0,this.i=0}function Kat(e,t){O8(this),this.f=t,this.g=e,AP(this),this.he()}function AW(e,t){return b.Math.abs(e)0}function khe(e){var t;return t=e.d,t=e._i(e.f),Tn(e,t),t.Ob()}function Yat(e,t){var r;return r=new Ofe(t),Mbt(r,e),new Tu(r)}function cun(e){if(e.p!=0)throw K(new lu);return c3(e.f,0)}function lun(e){if(e.p!=0)throw K(new lu);return c3(e.k,0)}function Jat(e){return e.Db>>16!=7?null:l(e.Cb,244)}function l_(e){return e.Db>>16!=6?null:l(e.Cb,244)}function xhe(e){return e.Db>>16!=7?null:l(e.Cb,176)}function Br(e){return e.Db>>16!=11?null:l(e.Cb,19)}function ty(e){return e.Db>>16!=17?null:l(e.Cb,29)}function Xat(e){return e.Db>>16!=3?null:l(e.Cb,159)}function Nhe(e){var t;return y1(e),t=new hi,lr(e,new WKe(t))}function Zat(e,t){var r=e.a=e.a||[];return r[t]||(r[t]=e.te(t))}function dun(e,t){var r;r=e.q.getHours(),e.q.setMonth(t),CC(e,r)}function go(e,t){e.c&&Xa(e.c.g,e),e.c=t,e.c&&je(e.c.g,e)}function Yi(e,t){e.d&&Xa(e.d.e,e),e.d=t,e.d&&je(e.d.e,e)}function Ii(e,t){e.c&&Xa(e.c.a,e),e.c=t,e.c&&je(e.c.a,e)}function Ts(e,t){e.i&&Xa(e.i.j,e),e.i=t,e.i&&je(e.i.j,e)}function Qo(e,t,r){return t==null?eu(e.f,null,r):A0(e.i,t,r)}function L3(e,t,r,o,s,u){return new ap(e.e,t,e.Jj(),r,o,s,u)}function fun(e){return UK(),Lt(),l(e.a,84).d.e!=0}function Qat(){Qat=Y,N_t=yn((D9(),Z(X(x_t,1),Ce,541,0,[LQ])))}function eut(){eut=Y,jIt=Ca(new ui,(Vi(),$o),(Xi(),AT))}function tut(){tut=Y,FIt=Ca(new ui,(Vi(),$o),(Xi(),AT))}function nut(){nut=Y,$It=Ca(new ui,(Vi(),$o),(Xi(),AT))}function Che(){Che=Y,BIt=Ca(new ui,(Vi(),$o),(Xi(),AT))}function rut(){rut=Y,HIt=Ca(new ui,(Vi(),$o),(Xi(),AT))}function Ihe(){Ihe=Y,zIt=Ca(new ui,(Vi(),$o),(Xi(),AT))}function iut(){iut=Y,a4t=Fn(new ui,(Vi(),$o),(Xi(),SI))}function gc(){gc=Y,l4t=Fn(new ui,(Vi(),$o),(Xi(),SI))}function out(){out=Y,d4t=Fn(new ui,(Vi(),$o),(Xi(),SI))}function _W(){_W=Y,b4t=Fn(new ui,(Vi(),$o),(Xi(),SI))}function sut(){sut=Y,dRt=Ca(new ui,(KS(),ZI),(xC(),v_e))}function LP(){LP=Y,Rre=new hn,oM=new hn,men(W_t,new FGe)}function aut(e,t,r){this.a=t,this.c=e,this.b=(xn(r),new Tu(r))}function uut(e,t,r){this.a=t,this.c=e,this.b=(xn(r),new Tu(r))}function cut(e,t){this.a=e,this.c=So(this.a),this.b=new NP(t)}function Lb(e,t,r,o){this.c=e,this.d=o,xW(this,t),NW(this,r)}function OS(e){this.c=new Sr,this.b=e.b,this.d=e.c,this.a=e.a}function kW(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function xW(e,t){e.a&&Xa(e.a.k,e),e.a=t,e.a&&je(e.a.k,e)}function NW(e,t){e.b&&Xa(e.b.f,e),e.b=t,e.b&&je(e.b.f,e)}function lut(e,t){xsn(e,e.b,e.c),l(e.b.b,68),t&&l(t.b,68).b}function hun(e,t){o1e(e,t),se(e.Cb,89)&&Ey(Mu(l(e.Cb,89)),2)}function CW(e,t){se(e.Cb,89)&&Ey(Mu(l(e.Cb,89)),4),Da(e,t)}function MP(e,t){se(e.Cb,187)&&(l(e.Cb,187).tb=null),Da(e,t)}function dut(e,t){var r;return r=l(hy(RS(e.a),t),18),r?r.gc():0}function pun(e,t){var r,o;r=t.c,o=r!=null,o&&CS(e,new Zw(t.c))}function fut(e){var t,r;return r=(FA(),t=new Km,t),m_(r,e),r}function hut(e){var t,r;return r=(FA(),t=new Km,t),m_(r,e),r}function put(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function wa(e,t){return Oo(),oK(t)?new eP(t,e):new AO(t,e)}function gun(e,t){return yr(l(e.c,65).c.e.b,l(t.c,65).c.e.b)}function bun(e,t){return yr(l(e.c,65).c.e.a,l(t.c,65).c.e.a)}function gut(e,t,r){return new JY(e,(g_(),KQ),t,r,null,!1)}function but(e,t,r){return new JY(e,(g_(),VQ),null,!1,t,r)}function JO(e){return Pf(),va(e,0)>=0?v1(e):x3(v1(ag(e)))}function mun(){return Yc(),Z(X(ru,1),Ce,132,0,[c2e,nu,l2e])}function wun(){return Sd(),Z(X(Py,1),Ce,240,0,[$s,ja,Bs])}function yun(){return _u(),Z(X(hkt,1),Ce,464,0,[Vf,L1,nd])}function vun(){return Za(),Z(X(gkt,1),Ce,465,0,[Nd,M1,rd])}function Eun(e,t){nrt(e,On(Gi(a0(t,24),rF)),On(Gi(t,rF)))}function ny(e,t){if(e<0||e>t)throw K(new Na(owe+e+swe+t))}function at(e,t){if(e<0||e>=t)throw K(new Na(owe+e+swe+t))}function Yt(e,t){if(e<0||e>=t)throw K(new Bce(owe+e+swe+t))}function vt(e,t){this.b=(Mt(e),e),this.a=t&Iy?t:t|64|Ff}function If(e,t,r){Wpt(t,r,e.gc()),this.c=e,this.a=t,this.b=r-t}function mut(e,t,r){var o;Wpt(t,r,e.c.length),o=r-t,Zce(e.c,t,o)}function Sun(e,t,r){var o;o=new Eo(r.d),br(o,e),ZK(t,o.a,o.b)}function Rhe(e){var t;return y1(e),t=(f0(),f0(),zQ),cj(e,t)}function lE(e){return VN(),se(e.g,9)?l(e.g,9):null}function qd(e){return _s(Z(X($i,1),Me,8,0,[e.i.n,e.n,e.a]))}function Tun(){return U3(),Z(X(R2e,1),Ce,385,0,[oee,iee,see])}function Aun(){return g1(),Z(X(Yee,1),Ce,330,0,[uL,eTe,zy])}function _un(){return up(),Z(X(RNt,1),Ce,316,0,[cL,ZE,_T])}function kun(){return A_(),Z(X(Kee,1),Ce,303,0,[Vee,Wee,aL])}function xun(){return gj(),Z(X(MSe,1),Ce,351,0,[LSe,q$,Iee])}function Nun(){return Gb(),Z(X(SNt,1),Ce,452,0,[Fee,Yk,JE])}function Cun(){return Lo(),Z(X(IIt,1),Ce,455,0,[VI,Cu,Fa])}function Iun(){return Ij(),Z(X(s_e,1),Ce,382,0,[i_e,Bte,o_e])}function Run(){return Q3(),Z(X(a_e,1),Ce,349,0,[Hte,Ute,SL])}function Oun(){return I_(),Z(X(c_e,1),Ce,350,0,[zte,u_e,WI])}function Dun(){return eC(),Z(X(WAe,1),Ce,353,0,[Rte,VAe,TB])}function Lun(){return pj(),Z(X(f_e,1),Ce,352,0,[d_e,Gte,l_e])}function Mun(){return Rj(),Z(X(h_e,1),Ce,383,0,[qte,ax,tv])}function Pun(){return X3(),Z(X(I_e,1),Ce,386,0,[C_e,Kte,_L])}function jun(){return C6(),Z(X(ike,1),Ce,387,0,[$B,nke,rke])}function Fun(){return qj(),Z(X(kke,1),Ce,388,0,[_ke,kne,Ake])}function $un(){return S0(),Z(X(vee,1),Ce,369,0,[Z0,P1,X0])}function Bun(){return $j(),Z(X(Jke,1),Ce,435,0,[Kke,Yke,One])}function Uun(){return nj(),Z(X(Wke,1),Ce,434,0,[Rne,Vke,qke])}function Hun(){return D6(),Z(X(Dne,1),Ce,440,0,[VB,WB,KB])}function zun(){return Jj(),Z(X(Tke,1),Ce,441,0,[r4,HB,yne])}function Gun(){return Nj(),Z(X(Ske,1),Ce,304,0,[wne,Eke,vke])}function qun(){return z3(),Z(X(HNe,1),Ce,301,0,[WL,Sre,UNe])}function Vun(){return Kd(),Z(X(ANe,1),Ce,281,0,[wx,dv,yx])}function Wun(){return GS(),Z(X(qNe,1),Ce,283,0,[GNe,hv,hU])}function Kun(){return fp(),Z(X(PNe,1),Ce,348,0,[aU,Cg,v4])}function bc(e){fr(),Wm.call(this,e),this.c=!1,this.a=!1}function wut(e,t,r){Wm.call(this,25),this.b=e,this.a=t,this.c=r}function Ohe(e,t){GZt.call(this,new cS(dy(e))),wc(t,HEt),this.a=t}function Yun(e,t){var r;return r=(Mt(e),e).g,Ade(!!r),Mt(t),r(t)}function yut(e,t){var r,o;return o=t_(e,t),r=e.a.dd(o),new bet(e,r)}function Jun(e,t,r){var o;return o=OC(e,t,!1),o.b<=t&&o.a<=r}function vut(e,t,r){var o;o=new BUe,o.b=t,o.a=r,++t.b,je(e.d,o)}function PP(){PP=Y,ane=new Rle("DFS",0),X_e=new Rle("BFS",1)}function Xun(e){if(e.p!=2)throw K(new lu);return On(e.f)&Ei}function Zun(e){if(e.p!=2)throw K(new lu);return On(e.k)&Ei}function Qun(e){return e.Db>>16!=6?null:l(oJ(e),244)}function q(e){return un(e.ao?1:0}function lcn(e,t){var r;r=l(Ut(e.g,t),60),Oa(t.d,new itt(e,r))}function Sut(e,t){var r;for(r=e+"";r.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function $ut(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function But(e){return un(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function Uut(e,t){var r;return r=1-t,e.a[r]=Sj(e.a[r],r),Sj(e,t)}function Hut(e,t){var r,o;return o=Gi(e,Po),r=fh(t,32),Rf(r,o)}function bcn(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Gc(r)}function zut(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Kc(r)}function Gut(e,t,r){var o;o=(xn(e),new Tu(e)),emn(new aut(o,t,r))}function ZO(e,t,r){var o;o=(xn(e),new Tu(e)),tmn(new uut(o,t,r))}function qut(){qut=Y,g_e=Ust(Re(1),Re(4)),p_e=Ust(Re(1),Re(2))}function Vut(e){vK.call(this,e,(g_(),qQ),null,!1,null,!1)}function Wut(e,t){Ib.call(this,1,2,Z(X(Rn,1),Xn,30,15,[e,t]))}function Ji(e,t){this.a=e,RN.call(this,e),ny(t,e.gc()),this.b=t}function Kut(e,t){var r;e.e=new Oce,r=Ty(t),_i(r,e.c),Dwt(e,r,0)}function mcn(e,t,r){e.a=t,e.c=r,e.b.a.$b(),ec(e.d),Lw(e.e.a.c,0)}function zr(e,t,r,o){var s;s=new Cue,s.a=t,s.b=r,s.c=o,Gn(e.a,s)}function Oe(e,t,r,o){var s;s=new Cue,s.a=t,s.b=r,s.c=o,Gn(e.b,s)}function Yut(e,t,r,o){return e.a+=""+yl(t==null?tu:bs(t),r,o),e}function Ls(e,t,r,o,s,u){return fht(e,t,r,u),Xge(e,o),Zge(e,s),e}function $he(){var e,t,r;return t=(r=(e=new Km,e),r),je(N3e,t),t}function QO(e,t){if(e<0||e>=t)throw K(new Na(Uyn(e,t)));return e}function Jut(e,t,r){if(e<0||tr)throw K(new Na(uyn(e,t,r)))}function wcn(e){if(!("stack"in e))try{throw e}catch{}return e}function ycn(e){return uE(e).dc()?!1:(Qen(e,new P),!0)}function jb(e){var t;return ps(e)?(t=e,t==-0?0:t):jdn(e)}function Xut(e,t){return se(t,45)?xY(e.a,l(t,45)):!1}function Zut(e,t){return se(t,45)?xY(e.a,l(t,45)):!1}function Qut(e,t){return se(t,45)?xY(e.a,l(t,45)):!1}function vcn(e,t){return $S(),l(j(t,(Ps(),c2)),15).a>=e.gc()}function Ecn(e){return gc(),!lo(e)&&!(!lo(e)&&e.c.i.c==e.d.i.c)}function Of(e){return l(Yd(e,me(Hk,Sk,17,e.c.length,0,1)),324)}function jP(e){return new Ra((wc(e,YJ),uj(To(To(5,e),e/10|0))))}function Scn(e,t){return new OV(t,Frt(So(t.e),e,e),(Lt(),!0))}function Tcn(e){return jV(e.e.Pd().gc()*e.c.Pd().gc(),273,new oKe(e))}function ect(e){return l(Yd(e,me(Hxt,B2t,12,e.c.length,0,1)),2021)}function tct(e){this.a=me(Ci,Rt,1,_ge(b.Math.max(8,e))<<1,5,1)}function Bhe(e){var t;return u1(e),t=new _t,Wv(e.a,new GKe(t)),t}function FP(e){var t;return u1(e),t=new At,Wv(e.a,new qKe(t)),t}function Acn(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function _cn(e,t,r){e.d&&Xa(e.d.e,e),e.d=t,e.d&&kb(e.d.e,r,e)}function Uhe(e,t,r){this.d=new iJe(this),this.e=e,this.i=t,this.f=r}function $P(){$P=Y,Jee=new Tle(hk,0),tTe=new Tle("TOP_LEFT",1)}function nct(){nct=Y,vOt=yn((W9(),Z(X(Xke,1),Ce,480,0,[Lne])))}function rct(){rct=Y,SOt=yn((K9(),Z(X(EOt,1),Ce,550,0,[Mne])))}function ict(){ict=Y,BOt=yn((WN(),Z(X(wxe,1),Ce,531,0,[DL])))}function oct(){oct=Y,QOt=yn((Y9(),Z(X(ZOt,1),Ce,557,0,[Jne])))}function sct(){sct=Y,t6t=yn((J9(),Z(X(e6t,1),Ce,558,0,[Xne])))}function act(){act=Y,r6t=yn((X9(),Z(X(n6t,1),Ce,559,0,[Zne])))}function kcn(e){lgt((!e.a&&(e.a=new xe(En,e,10,11)),e.a),new Eze)}function P3(e,t){ONn(t,e),wfe(e.d),wfe(l(j(e,(Be(),bB)),216))}function LW(e,t){DNn(t,e),mfe(e.d),mfe(l(j(e,(Be(),bB)),216))}function b0(e,t){var r,o;return r=rp(e,t),o=null,r&&(o=r.ne()),o}function j3(e,t){var r,o;return r=rp(e,t),o=null,r&&(o=r.qe()),o}function d_(e,t){var r,o;return r=sy(e,t),o=null,r&&(o=r.qe()),o}function ip(e,t){var r,o;return r=rp(e,t),o=null,r&&(o=Bbe(r)),o}function xcn(e,t,r){var o;return o=$_(r),B7(e.n,o,t),B7(e.o,t,r),t}function Ncn(e,t,r){var o;o=A1n();try{return Enn(e,t,r)}finally{Nln(o)}}function uct(e,t,r,o){return se(r,59)?new krt(e,t,r,o):new Bfe(e,t,r,o)}function Hhe(e,t,r,o){this.d=e,this.n=t,this.g=r,this.o=o,this.p=-1}function cct(e,t,r,o){this.e=null,this.c=e,this.d=t,this.a=r,this.b=o}function lct(e){var t;t=e.Dh(),this.a=se(t,72)?l(t,72).Gi():t.Jc()}function Ccn(e){return new vt(hfn(l(e.a.kd(),18).gc(),e.a.jd()),16)}function ry(e){return se(e,18)?l(e,18).dc():!e.Jc().Ob()}function dct(e){if(e.e.g!=e.b)throw K(new $c);return!!e.c&&e.d>0}function Sn(e){return un(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function zhe(e,t){Mt(t),ii(e.a,e.c,t),e.c=e.c+1&e.a.length-1,$1t(e)}function l1(e,t){Mt(t),e.b=e.b-1&e.a.length-1,ii(e.a,e.b,t),$1t(e)}function Ghe(e,t){var r;return r=l(Wd(e.b,t),66),!r&&(r=new Sr),r}function Icn(e,t){var r;r=t.a,go(r,t.c.d),Yi(r,t.d.d),cy(r.a,e.n)}function fct(e,t){return l(Ju(Yw(l(wr(e.k,t),16).Mc(),WE)),114)}function hct(e,t){return l(Ju(kS(l(wr(e.k,t),16).Mc(),WE)),114)}function Rcn(){return __(),Z(X(Ixt,1),Ce,413,0,[J0,Fy,jy,qE])}function Ocn(){return T0(),Z(X(Bkt,1),Ce,414,0,[ZD,XD,QQ,eee])}function Dcn(){return g_(),Z(X(f$,1),Ce,310,0,[qQ,VQ,WQ,KQ])}function Lcn(){return WS(),Z(X(M2e,1),Ce,384,0,[vI,L2e,dee,fee])}function Mcn(){return Dj(),Z(X(Yxt,1),Ce,368,0,[wee,$$,B$,rL])}function Pcn(){return Xl(),Z(X(sNt,1),Ce,418,0,[Uy,Gk,qk,yee])}function jcn(){return Vb(),Z(X(e4t,1),Ce,409,0,[TL,KI,NB,xB])}function Fcn(){return my(),Z(X(Dte,1),Ce,205,0,[AB,Ote,a2,s2])}function $cn(){return pp(),Z(X(n_e,1),Ce,270,0,[B1,t_e,Pte,jte])}function Bcn(){return aC(),Z(X(DSe,1),Ce,302,0,[AI,RSe,oL,OSe])}function Ucn(){return Z3(),Z(X(J_e,1),Ce,354,0,[sne,jB,one,ine])}function Hcn(){return c7(),Z(X(yke,1),Ce,355,0,[mne,mke,wke,bke])}function zcn(){return v7(),Z(X(HRt,1),Ce,406,0,[Tne,vne,Sne,Ene])}function Gcn(){return KS(),Z(X(w_e,1),Ce,402,0,[OB,XI,ZI,QI])}function qcn(){return h7(),Z(X(Txe,1),Ce,396,0,[Gne,qne,Vne,Wne])}function Vcn(){return R_(),Z(X(TNe,1),Ce,280,0,[UL,sU,ENe,SNe])}function Wcn(){return hp(),Z(X(vre,1),Ce,225,0,[yre,HL,vx,qT])}function Kcn(){return vc(),Z(X(Q6t,1),Ce,293,0,[GL,Ih,q1,zL])}function Ycn(){return oc(),Z(X(_4,1),Ce,381,0,[YL,Am,KL,fv])}function Jcn(){return zP(),Z(X(ZL,1),Ce,290,0,[VNe,KNe,Are,WNe])}function Xcn(){return Vj(),Z(X(ZNe,1),Ce,327,0,[_re,YNe,XNe,JNe])}function Zcn(){return Lj(),Z(X(mDt,1),Ce,412,0,[kre,e3e,QNe,t3e])}function Qcn(e){var t;return e.j==(Ue(),dn)&&(t=v0t(e),fu(t,Zt))}function pct(e,t){var r;for(r=e.j.c.length;r0&&ua(e.g,0,t,0,e.i),t}function LS(e){return VN(),se(e.g,157)?l(e.g,157):null}function nln(e){return LP(),ba(Rre,e)?l(Ut(Rre,e),343).Pg():null}function zc(e,t,r){return t<0?nJ(e,r):l(r,69).uk().zk(e,e.ei(),t)}function rln(e,t){return mS(new Le(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function mct(e,t){return be(t)===be(e)?"(this Map)":t==null?tu:bs(t)}function wct(e,t){Z9();var r;return r=l(Ut(wU,e),58),!r||r.dk(t)}function iln(e){if(e.p!=1)throw K(new lu);return On(e.f)<<24>>24}function oln(e){if(e.p!=1)throw K(new lu);return On(e.k)<<24>>24}function sln(e){if(e.p!=7)throw K(new lu);return On(e.k)<<16>>16}function aln(e){if(e.p!=7)throw K(new lu);return On(e.f)<<16>>16}function dE(e,t){return t.e==0||e.e==0?gI:(Z_(),uJ(e,t))}function uln(e,t,r){if(r){var o=r.me();e.a[t]=o(r)}else delete e.a[t]}function yct(e,t){var r;return r=new uS,e.Ed(r),r.a+="..",t.Fd(r),r.a}function yd(e){var t;for(t=0;e.Ob();)e.Pb(),t=To(t,1);return uj(t)}function cln(e,t,r){var o;o=l(Ut(e.g,r),60),je(e.a.c,new ko(t,o))}function lln(e,t,r,o,s){var u;u=REn(s,r,o),je(t,Dyn(s,u)),kwn(e,s,t)}function vct(e,t,r){e.i=0,e.e=0,t!=r&&(opt(e,t,r),ipt(e,t,r))}function dln(e){e.a=null,e.e=null,Lw(e.b.c,0),Lw(e.f.c,0),e.c=null}function fln(e,t){return l(t==null?Es(Zo(e.f,null)):XN(e.i,t),291)}function hln(e,t,r){return WV(ce(Es(Zo(e.f,t))),ce(Es(Zo(e.f,r))))}function BP(e,t,r){return H7(e,t,r,se(t,104)&&(l(t,20).Bb&xo)!=0)}function pln(e,t,r){return tk(e,t,r,se(t,104)&&(l(t,20).Bb&xo)!=0)}function gln(e,t,r){return SEn(e,t,r,se(t,104)&&(l(t,20).Bb&xo)!=0)}function Vhe(e,t){return e==(Ht(),Xr)&&t==Xr?4:e==Xr||t==Xr?8:32}function Ect(e,t){Ehe.call(this),this.a=e,this.b=t,je(this.a.b,this)}function iy(e,t){fr(),Wm.call(this,e),this.a=t,this.c=-1,this.b=-1}function Whe(e,t,r,o,s){this.i=e,this.a=t,this.e=r,this.j=o,this.f=s}function op(e,t){Pf(),Ib.call(this,e,1,Z(X(Rn,1),Xn,30,15,[t]))}function gh(e,t){Oo();var r;return r=l(e,69).tk(),$wn(r,t),r.vl(t)}function Sct(e,t){var r;for(r=t;r;)zw(e,r.i,r.j),r=Br(r);return e}function Tct(e,t){var r;for(r=0;r"+Lhe(e.d):"e_"+o0(e)}function kct(e){se(e,209)&&!Ke(We(e.mf((_n(),nU))))&&LAn(l(e,19))}function Yhe(e){e.b!=e.c&&(e.a=me(Ci,Rt,1,8,5,1),e.b=0,e.c=0)}function Fb(e,t,r){this.e=e,this.a=Ci,this.b=nyt(t),this.c=t,this.d=r}function oy(e,t,r,o){_ut.call(this,1,r,o),this.c=e,this.b=t}function jW(e,t,r,o){kut.call(this,1,r,o),this.c=e,this.b=t}function FW(e,t,r,o,s,u,f){fK.call(this,t,o,s,u,f),this.c=e,this.a=r}function $W(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function xct(e){this.c=e,this.a=l(Sl(e),160),this.b=this.a.hk().ti()}function wln(e,t){return Qp(),Tn(Ne(e.a),t)}function yln(e,t){return Qp(),Tn(Ne(e.a),t)}function UP(){UP=Y,Hne=new jle("STRAIGHT",0),Exe=new jle("BEND",1)}function $3(){$3=Y,JI=new Nle("UPPER",0),YI=new Nle("LOWER",1)}function HP(){HP=Y,ste=new Ale(_d,0),ote=new Ale("ALTERNATING",1)}function zP(){zP=Y,VNe=new Eot,KNe=new ost,Are=new Oat,WNe=new sst}function GP(e){var t;return e?new Ofe(e):(t=new uh,yK(t,e),t)}function vln(e,t){var r;for(r=e.d-1;r>=0&&e.a[r]===t[r];r--);return r<0}function Eln(e,t){var r;return _ct(t),r=e.slice(0,t),r.length=t,eK(r,e)}function Au(e,t){var r;return t.b.Kb(Ndt(e,t.c.Ve(),(r=new YKe(t),r)))}function qP(e){Abe(),nrt(this,On(Gi(a0(e,24),rF)),On(Gi(e,rF)))}function Nct(){Nct=Y,Jkt=yn((aj(),Z(X(b2e,1),Ce,429,0,[tee,b$])))}function Cct(){Cct=Y,Vxt=yn((v_(),Z(X(qxt,1),Ce,506,0,[nL,pee])))}function Ict(){Ict=Y,ENt=yn((g6(),Z(X($Se,1),Ce,424,0,[V$,FSe])))}function Rct(){Rct=Y,mNt=yn((QP(),Z(X(ISe,1),Ce,427,0,[CSe,Cee])))}function Oct(){Oct=Y,_Nt=yn((u6(),Z(X(HSe,1),Ce,479,0,[USe,K$])))}function Dct(){Dct=Y,DNt=yn(($P(),Z(X(nTe,1),Ce,425,0,[Jee,tTe])))}function Lct(){Lct=Y,PNt=yn((HP(),Z(X(bTe,1),Ce,428,0,[ste,ote])))}function Mct(){Mct=Y,CIt=yn((h6(),Z(X(r_e,1),Ce,426,0,[Fte,$te])))}function Pct(){Pct=Y,s4t=yn(($3(),Z(X(o4t,1),Ce,522,0,[JI,YI])))}function jct(){jct=Y,h4t=yn((Cf(),Z(X(f4t,1),Ce,513,0,[sw,kg])))}function Fct(){Fct=Y,g4t=yn((zd(),Z(X(p4t,1),Ce,512,0,[ym,uf])))}function $ct(){$ct=Y,I4t=yn((vd(),Z(X(C4t,1),Ce,519,0,[nv,U1])))}function Bct(){Bct=Y,j4t=yn((p0(),Z(X(P4t,1),Ce,457,0,[H1,u2])))}function Uct(){Uct=Y,lRt=yn((PP(),Z(X(Z_e,1),Ce,430,0,[ane,X_e])))}function Hct(){Hct=Y,gRt=yn((Tj(),Z(X(Q_e,1),Ce,490,0,[FB,d2])))}function zct(){zct=Y,wRt=yn((tj(),Z(X(tke,1),Ce,431,0,[eke,hne])))}function VP(){VP=Y,Ine=new Lle(Swe,0),zke=new Lle("TARGET_WIDTH",1)}function Gct(){Gct=Y,pOt=yn((VP(),Z(X(Gke,1),Ce,481,0,[Ine,zke])))}function qct(){qct=Y,TOt=yn((r6(),Z(X(Zke,1),Ce,433,0,[Pne,YB])))}function Vct(){Vct=Y,UOt=yn((A6(),Z(X(vxe,1),Ce,432,0,[XB,yxe])))}function Wct(){Wct=Y,HOt=yn((UP(),Z(X(Sxe,1),Ce,389,0,[Hne,Exe])))}function Kct(){Kct=Y,o6t=yn((b6(),Z(X(i6t,1),Ce,498,0,[ere,Qne])))}function Sln(){return vi(),Z(X(w4,1),Ce,87,0,[hf,cs,is,ff,il])}function Tln(){return Ue(),Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt])}function Aln(e){return(e.k==(Ht(),Xr)||e.k==mi)&&gr(e,(Ie(),NI))}function _ln(e,t,r){return l(t==null?eu(e.f,null,r):A0(e.i,t,r),291)}function Jhe(e,t,r){e.a.c.length=0,vkn(e,t,r),e.a.c.length==0||qTn(e,t)}function Wr(e,t,r,o){var s;s=new ft,s.c=t,s.b=r,s.a=o,o.b=r.a=s,++e.b}function Xhe(e,t){var r,o;for(r=t,o=0;r>0;)o+=e.a[r],r-=r&-r;return o}function Yct(e,t){var r;for(r=t;r;)zw(e,-r.i,-r.j),r=Br(r);return e}function kln(e,t){var r,o;o=!1;do r=Vht(e,t),o=o|r;while(r);return o}function co(e,t){var r,o;for(Mt(t),o=e.Jc();o.Ob();)r=o.Pb(),t.Ad(r)}function Jct(e,t){var r,o;return r=t.jd(),o=e.De(r),!!o&&ia(o.e,t.kd())}function Xct(e,t){var r;return r=t.jd(),new e0(r,e.e.pc(r,l(t.kd(),18)))}function xln(e,t){var r;return r=e.a.get(t),r??me(Ci,Rt,1,0,5,1)}function tc(e,t,r){var o;return o=(at(t,e.c.length),e.c[t]),e.c[t]=r,o}function Zct(e,t){this.c=0,this.b=t,dnt.call(this,e,17493),this.a=this.c}function Zhe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function d1(){hn.call(this),Nrt(this),this.d.b=this.d,this.d.a=this.d}function BW(e){WP(),!sf&&(this.c=e,this.e=!0,this.a=new Pe)}function Qct(e){CEt(),XXe(this),this.a=new Sr,Dge(this,e),Gn(this.a,e)}function elt(){aV(this),this.b=new Le(Kr,Kr),this.a=new Le(Oi,Oi)}function Qhe(e){ren.call(this,e==null?tu:bs(e),se(e,81)?l(e,81):null)}function Nln(e){e&&Gdn((Pce(),MEe)),--s$,e&&a$!=-1&&(yen(a$),a$=-1)}function e6(e){e.i=0,dO(e.b,null),dO(e.c,null),e.a=null,e.e=null,++e.g}function WP(){WP=Y,sf=!0,ekt=!1,tkt=!1,rkt=!1,nkt=!1}function lo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function epe(e,t){return se(t,144)?mt(e.c,l(t,144).c):!1}function UW(e,t){var r;return r=l(Wd(e.d,t),21),r||l(Wd(e.e,t),21)}function fE(e,t){return(y1(e),$A(new yt(e,new Tpe(t,e.a)))).zd(ET)}function Cln(){return Vi(),Z(X(O2e,1),Ce,364,0,[id,xh,la,da,$o])}function Iln(){return w7(),Z(X(bRt,1),Ce,365,0,[dne,une,fne,cne,lne])}function Rln(){return wy(),Z(X(uNt,1),Ce,372,0,[iL,z$,G$,H$,U$])}function Oln(){return TC(),Z(X(mOt,1),Ce,370,0,[f2,FT,c4,u4,OL])}function Dln(){return K6(),Z(X(nxe,1),Ce,331,0,[Qke,jne,txe,Fne,exe])}function Lln(){return lC(),Z(X(YAe,1),Ce,329,0,[KAe,Lte,Mte,zI,GI])}function Mln(){return rc(),Z(X(gTe,1),Ce,166,0,[hL,RI,Ap,OI,hm])}function Pln(){return Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Ng,kp])}function jln(){return vE(),Z(X(S4,1),Ce,260,0,[V1,qL,jNe,E4,FNe])}function Fln(e){return P9(),function(){return Ncn(e,this,arguments)}}function Mu(e){return e.t||(e.t=new BXe(e),iC(new iQe(e),0,e.t)),e.t}function tlt(e){var t;return e.c||(t=e.r,se(t,89)&&(e.c=l(t,29))),e.c}function $ln(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function HW(e){var t,r,o;return t=e&Uu,r=e>>22&Uu,o=e<0?yp:0,Ua(t,r,o)}function nlt(e){var t;return t=e.length,mt($t.substr($t.length-t,t),e)}function Qt(e){if(an(e))return e.c=e.a,e.a.Pb();throw K(new ys)}function MS(e,t){return t==0||e.e==0?e:t>0?Cgt(e,t):vwt(e,-t)}function tpe(e,t){return t==0||e.e==0?e:t>0?vwt(e,t):Cgt(e,-t)}function rlt(e){this.b=e,en.call(this,e),this.a=l(qt(this.b.a,4),131)}function ilt(e){this.b=e,yS.call(this,e),this.a=l(qt(this.b.a,4),131)}function Vl(e,t,r,o,s){llt.call(this,t,o,s),this.c=e,this.b=r}function npe(e,t,r,o,s){_ut.call(this,t,o,s),this.c=e,this.a=r}function rpe(e,t,r,o,s){kut.call(this,t,o,s),this.c=e,this.a=r}function ipe(e,t,r,o,s){llt.call(this,t,o,s),this.c=e,this.a=r}function Bln(e,t,r){return yr(mS(B_(e),So(t.b)),mS(B_(e),So(r.b)))}function Uln(e,t,r){return yr(mS(B_(e),So(t.e)),mS(B_(e),So(r.e)))}function Hln(e,t){return b.Math.min(f1(t.a,e.d.d.c),f1(t.b,e.d.d.c))}function zW(e,t,r){var o;return o=e.Fh(t),o>=0?e.Ih(o,r,!0):R0(e,t,r)}function zln(e,t){var r,o;r=l(xpn(e.c,t),18),r&&(o=r.gc(),r.$b(),e.d-=o)}function olt(e){var t,r;return t=e.c.i,r=e.d.i,t.k==(Ht(),mi)&&r.k==mi}function B3(e){var t,r;++e.j,t=e.g,r=e.i,e.g=null,e.i=0,e.Mi(r,t),e.Li()}function t6(e,t){e.Zi(e.i+1),g3(e,e.i,e.Xi(e.i,t)),e.Ki(e.i++,t),e.Li()}function slt(e,t,r){var o;o=new ide(e.a),K3(o,e.a.a),eu(o.f,t,r),e.a.a=o}function ope(e,t,r,o){var s;for(s=0;st)throw K(new Na(Ybe(e,t,"index")));return e}function qln(e,t){var r;r=e.q.getHours()+(t/60|0),e.q.setMinutes(t),CC(e,r)}function PS(e,t){return zi(t)?t==null?fme(e.f,null):_ht(e.i,t):fme(e.f,t)}function alt(e,t){lnt.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function ult(e,t){dnt.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function lpe(e,t){N8.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function clt(e,t,r){_9.call(this,r),this.b=e,this.c=t,this.d=(sY(),Pre)}function llt(e,t,r){this.d=e,this.k=t?1:0,this.f=r?1:0,this.o=-1,this.p=0}function dlt(e,t,r){this.a=e,this.c=t,this.d=r,je(t.e,this),je(r.b,this)}function Vd(e){this.c=e,this.a=new V(this.c.a),this.b=new V(this.c.b)}function KP(){this.e=new Pe,this.c=new Pe,this.d=new Pe,this.b=new Pe}function flt(){this.g=new vce,this.b=new vce,this.a=new Pe,this.k=new Pe}function hlt(){this.a=new Ace,this.b=new AZe,this.d=new dG,this.e=new lG}function YP(e,t,r){this.a=e,this.b=t,this.c=r,je(e.t,this),je(t.i,this)}function n6(){this.b=new Sr,this.a=new Sr,this.b=new Sr,this.a=new Sr}function f_(){f_=Y;var e,t;SU=(FA(),t=new N9,t),TU=(e=new XG,e)}function JP(){JP=Y,d4=new cr("org.eclipse.elk.labels.labelManager")}function plt(){plt=Y,ASe=new Pr("separateLayerConnections",(Dj(),wee))}function r6(){r6=Y,Pne=new Mle("FIXED",0),YB=new Mle("CENTER_NODE",1)}function vd(){vd=Y,nv=new Cle("REGULAR",0),U1=new Cle("CRITICAL",1)}function Vln(e,t){var r;return r=Pkn(e,t),e.b=new kj(r.c.length),ekn(e,r)}function Wln(e,t,r){var o;return++e.e,--e.f,o=l(e.d[t].ed(r),138),o.kd()}function Kln(e){var t,r;return t=e.jd(),r=l(e.kd(),18),FO(r.Lc(),new nKe(t))}function VW(e){var t;return t=e.b,t.b==0?null:l(sa(t,0),65).b}function dpe(e){if(e.a){if(e.e)return dpe(e.e)}else return e;return null}function Yln(e,t){return e.pt.p?-1:0}function XP(e,t){return Mt(t),e.cr||t=0?e.Ih(r,!0,!0):R0(e,t,!0)}function vdn(e,t){return yr(ue(ce(j(e,(Ie(),tw)))),ue(ce(j(t,tw))))}function Tpe(e,t){N8.call(this,t.xd(),t.wd()&-16449),Mt(e),this.a=e,this.c=t}function Ape(e,t,r,o,s){Vnt(this),this.b=e,this.d=t,this.f=r,this.g=o,this.c=s}function Ra(e){aV(this),BO(e>=0,"Initial capacity must not be negative")}function FS(e){var t;return xn(e),se(e,206)?(t=l(e,206),t):new mKe(e)}function Edn(e){for(;!e.a;)if(!kit(e.c,new VKe(e)))return!1;return!0}function Sdn(e){var t;if(!e.a)throw K(new Vst);return t=e.a,e.a=Br(e.a),t}function Tdn(e){if(e.b<=0)throw K(new ys);return--e.b,e.a-=e.c.c,Re(e.a)}function _pe(e,t){if(e.g==null||t>=e.i)throw K(new tV(t,e.i));return e.g[t]}function Zlt(e,t,r){if(N_(e,r),r!=null&&!e.dk(r))throw K(new WG);return r}function Adn(e,t,r){var o;return o=ept(e,t,r),e.b=new kj(o.c.length),Bme(e,o)}function Qlt(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)ie(e,t);return qhe(e)}function _dn(e){ej(),l(e.mf((_n(),uv)),185).Ec((ku(),VL)),e.of(bre,null)}function ej(){ej=Y,u6t=new Kze,l6t=new Yze,c6t=$hn((_n(),bre),u6t,G1,l6t)}function edt(){edt=Y,z7(),P3e=Kr,vLt=Oi,j3e=new XR(Kr),ELt=new XR(Oi)}function tj(){tj=Y,eke=new Dle("LEAF_NUMBER",0),hne=new Dle("NODE_SIZE",1)}function ZW(e){e.a=me(Rn,Xn,30,e.b+1,15,1),e.c=me(Rn,Xn,30,e.b,15,1),e.d=0}function kdn(e,t){e.a.Le(t.d,e.b)>0&&(je(e.c,new Efe(t.c,t.d,e.d)),e.b=t.d)}function p_(e,t,r,o){var s;o=(f0(),o||n2e),s=e.slice(t,r),Jbe(s,e,t,r,-t,o)}function qc(e,t,r,o,s){return t<0?R0(e,r,o):l(r,69).uk().wk(e,e.ei(),t,o,s)}function tdt(e,t){var r,o;return o=t/e.c.Pd().gc()|0,r=t%e.c.Pd().gc(),jS(e,o,r)}function kpe(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[0];)r=t;return r}function ndt(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[1];)r=t;return r}function xdn(e){return se(e,183)?""+l(e,183).a:e==null?null:bs(e)}function Ndn(e){return se(e,183)?""+l(e,183).a:e==null?null:bs(e)}function rdt(e,t){if(t.a)throw K(new vs(f2t));pi(e.a,t),t.a=e,!e.j&&(e.j=t)}function _u(){_u=Y,Vf=new _q(dT,0),L1=new _q(hk,1),nd=new _q(fT,2)}function g_(){g_=Y,qQ=new n8("All",0),VQ=new Ont,WQ=new Gnt,KQ=new Dnt}function idt(){idt=Y,Z_t=yn((g_(),Z(X(f$,1),Ce,310,0,[qQ,VQ,WQ,KQ])))}function odt(){odt=Y,Ukt=yn((T0(),Z(X(Bkt,1),Ce,414,0,[ZD,XD,QQ,eee])))}function sdt(){sdt=Y,Rxt=yn((__(),Z(X(Ixt,1),Ce,413,0,[J0,Fy,jy,qE])))}function adt(){adt=Y,jxt=yn((WS(),Z(X(M2e,1),Ce,384,0,[vI,L2e,dee,fee])))}function udt(){udt=Y,Jxt=yn((Dj(),Z(X(Yxt,1),Ce,368,0,[wee,$$,B$,rL])))}function cdt(){cdt=Y,aNt=yn((Xl(),Z(X(sNt,1),Ce,418,0,[Uy,Gk,qk,yee])))}function ldt(){ldt=Y,t4t=yn((Vb(),Z(X(e4t,1),Ce,409,0,[TL,KI,NB,xB])))}function ddt(){ddt=Y,_It=yn((my(),Z(X(Dte,1),Ce,205,0,[AB,Ote,a2,s2])))}function fdt(){fdt=Y,NIt=yn((pp(),Z(X(n_e,1),Ce,270,0,[B1,t_e,Pte,jte])))}function hdt(){hdt=Y,wNt=yn((aC(),Z(X(DSe,1),Ce,302,0,[AI,RSe,oL,OSe])))}function pdt(){pdt=Y,cRt=yn((Z3(),Z(X(J_e,1),Ce,354,0,[sne,jB,one,ine])))}function gdt(){gdt=Y,$Rt=yn((c7(),Z(X(yke,1),Ce,355,0,[mne,mke,wke,bke])))}function bdt(){bdt=Y,zRt=yn((v7(),Z(X(HRt,1),Ce,406,0,[Tne,vne,Sne,Ene])))}function mdt(){mdt=Y,F4t=yn((KS(),Z(X(w_e,1),Ce,402,0,[OB,XI,ZI,QI])))}function wdt(){wdt=Y,GOt=yn((h7(),Z(X(Txe,1),Ce,396,0,[Gne,qne,Vne,Wne])))}function ydt(){ydt=Y,W6t=yn((R_(),Z(X(TNe,1),Ce,280,0,[UL,sU,ENe,SNe])))}function vdt(){vdt=Y,Y6t=yn((hp(),Z(X(vre,1),Ce,225,0,[yre,HL,vx,qT])))}function Edt(){Edt=Y,eDt=yn((vc(),Z(X(Q6t,1),Ce,293,0,[GL,Ih,q1,zL])))}function Sdt(){Sdt=Y,pDt=yn((zP(),Z(X(ZL,1),Ce,290,0,[VNe,KNe,Are,WNe])))}function Tdt(){Tdt=Y,dDt=yn((oc(),Z(X(_4,1),Ce,381,0,[YL,Am,KL,fv])))}function Adt(){Adt=Y,gDt=yn((Vj(),Z(X(ZNe,1),Ce,327,0,[_re,YNe,XNe,JNe])))}function _dt(){_dt=Y,wDt=yn((Lj(),Z(X(mDt,1),Ce,412,0,[kre,e3e,QNe,t3e])))}function u6(){u6=Y,USe=new Sle(_d,0),K$=new Sle("IMPROVE_STRAIGHTNESS",1)}function nj(){nj=Y,Rne=new Wq(RSt,0),Vke=new Wq(qye,1),qke=new Wq(_d,2)}function xpe(e){var t;if(!gK(e))throw K(new ys);return e.e=1,t=e.d,e.d=null,t}function ag(e){var t;return ps(e)&&(t=0-e,!isNaN(t))?t:p1(k_(e))}function As(e,t,r){for(;r=0;)++t[0]}function Odt(e,t){h2e=new qm,Hkt=t,mI=e,l(mI.b,68),bpe(mI,h2e,null),yvt(mI)}function U3(){U3=Y,oee=new xq("XY",0),iee=new xq("X",1),see=new xq("Y",2)}function Za(){Za=Y,Nd=new kq("TOP",0),M1=new kq(hk,1),rd=new kq(cwe,2)}function up(){up=Y,cL=new Dq(_d,0),ZE=new Dq("TOP",1),_T=new Dq(cwe,2)}function h6(){h6=Y,Fte=new _le("INPUT_ORDER",0),$te=new _le("PORT_DEGREE",1)}function b_(){b_=Y,jEe=Ua(Uu,Uu,524287),P_t=Ua(0,0,yD),FEe=HW(1),HW(2),$Ee=HW(0)}function Cpe(e){var t;return t=BS(qt(e,32)),t==null&&(Ha(e),t=BS(qt(e,32))),t}function Ipe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Ddt(e){(this.q?this.q:(St(),St(),kh)).zc(e.q?e.q:(St(),St(),kh))}function Ldt(e,t){ya(e,t==null||G8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Mdt(e,t){gu(e,t==null||G8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Pdt(e,t){Bb(e,t==null||G8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function jdt(e,t){$b(e,t==null||G8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Ldn(e,t){SS(l(l(e.f,19).mf((_n(),gx)),103))&&lgt(dhe(l(e.f,19)),t)}function rK(e,t){var r;return r=Ur(e.d,t),r>=0?i7(e,r,!0,!0):R0(e,t,!0)}function sj(e,t){var r;return r=e.bd(t),r>=0?(e.ed(r),!0):!1}function iK(e,t,r){var o;return o=e.g[t],g3(e,t,e.Xi(t,r)),e.Pi(t,r,o),e.Li(),o}function oK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==PAt,e.d=t),e.e}function sK(e,t){var r;for(xn(e),xn(t),r=!1;t.Ob();)r=r|e.Ec(t.Pb());return r}function gs(e,t){var r,o;return y1(e),o=new lpe(t,e.a),r=new Nit(o),new yt(e,r)}function Wd(e,t){var r;return r=l(Ut(e.e,t),395),r?(trt(e,r),r.e):null}function Mdn(e,t){var r,o,s;s=t.c.i,r=l(Ut(e.f,s),60),o=r.d.c-r.e.c,uge(t.a,o,0)}function bh(e,t,r){var o,s;for(o=10,s=0;se.a[o]&&(o=r);return o}function Vdt(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&t0?sr:va(e,Zi)<0?Zi:On(e)}function Kl(e,t,r){var o;if(t==null)throw K(new tS);return o=rp(e,t),uln(e,t,r),o}function Jdt(e,t){return Mt(t),Ufe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function Xdt(e){this.b=new Pe,this.a=new Pe,this.c=new Pe,this.d=new Pe,this.e=e}function Zdt(e,t,r){H8.call(this),Lpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function Wdn(){return Ht(),Z(X(hee,1),Ce,252,0,[Xr,gi,mi,Aa,ta,af,tL,EI])}function Qdt(){Qdt=Y,nDt=yn((vE(),Z(X(S4,1),Ce,260,0,[V1,qL,jNe,E4,FNe])))}function eft(){eft=Y,d6t=yn((Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Ng,kp])))}function tft(){tft=Y,cNt=yn((wy(),Z(X(uNt,1),Ce,372,0,[iL,z$,G$,H$,U$])))}function nft(){nft=Y,mRt=yn((w7(),Z(X(bRt,1),Ce,365,0,[dne,une,fne,cne,lne])))}function rft(){rft=Y,MNt=yn((rc(),Z(X(gTe,1),Ce,166,0,[hL,RI,Ap,OI,hm])))}function ift(){ift=Y,kIt=yn((lC(),Z(X(YAe,1),Ce,329,0,[KAe,Lte,Mte,zI,GI])))}function oft(){oft=Y,wOt=yn((TC(),Z(X(mOt,1),Ce,370,0,[f2,FT,c4,u4,OL])))}function sft(){sft=Y,AOt=yn((K6(),Z(X(nxe,1),Ce,331,0,[Qke,jne,txe,Fne,exe])))}function Kdn(){return F7(),Z(X(NSe,1),Ce,277,0,[See,_ee,Eee,Nee,Aee,Tee,xee,kee])}function Ydn(){return A1(),Z(X(f6t,1),Ce,287,0,[Cxe,Ai,wo,BT,Qi,$r,$T,lf])}function Jdn(){return iT(),Z(X(iM,1),Ce,235,0,[Ire,mU,rM,nM,Cre,bU,gU,Nre])}function Xdn(e,t){return $S(),-na(l(j(e,(Ps(),c2)),15).a,l(j(t,c2),15).a)}function Zdn(e,t,r,o){var s;e.j=-1,cme(e,Ube(e,t,r),(Oo(),s=l(t,69).tk(),s.vl(o)))}function Qdn(e,t,r){var o,s;for(s=new V(r);s.a0?t-1:t,yQe(RQt(kft(vfe(new iS,r),e.n),e.j),e.k)}function cj(e,t){var r;return y1(e),r=new dat(e,e.a.xd(),e.a.wd()|4,t),new yt(e,r)}function tfn(e,t){var r,o;return r=l(hy(e.d,t),18),r?(o=t,e.e.pc(o,r)):null}function aft(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(D9(),LQ)}function m0(e){if(e<0)throw K(new jt("Illegal Capacity: "+e));this.g=this.$i(e)}function nfn(e,t){if(0>e||e>t)throw K(new Uce("fromIndex: 0, toIndex: "+e+twe+t))}function uft(e,t){return!!W3(e,t,On(mo(Sh,ph(On(mo(t==null?0:Ir(t),Th)),15))))}function rfn(e,t){SS(l(j(l(e.e,9),(Be(),Zr)),103))&&(St(),_i(l(e.e,9).j,t))}function ifn(e){var t;return t=ue(ce(j(e,(Be(),Ag)))),t<0&&(t=0,Ae(e,Ag,t)),t}function lj(e,t){var r,o;for(o=e.Jc();o.Ob();)r=l(o.Pb(),70),Ae(r,(Ie(),IT),t)}function ofn(e,t,r){var o;o=b.Math.max(0,e.b/2-.5),hC(r,o,1),je(t,new Qet(r,o))}function cft(e,t,r,o,s,u){var f;f=GW(o),go(f,s),Yi(f,u),wt(e.a,o,new V8(f,t,r.f))}function lft(e,t){Vn(e,(yh(),_ne),t.f),Vn(e,qRt,t.e),Vn(e,Ane,t.d),Vn(e,GRt,t.c)}function cK(e){var t;Uw(!!e.c),t=e.c.a,Vc(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function dft(e){return e.a>=-.01&&e.a<=nf&&(e.a=0),e.b>=-.01&&e.b<=nf&&(e.b=0),e}function hE(e){X_();var t,r;for(r=Kye,t=0;tr&&(r=e[t]);return r}function fft(e,t){var r;if(r=nD(e.Ah(),t),!r)throw K(new jt(R1+t+ZZ));return r}function ay(e,t){var r;for(r=e;Br(r);)if(r=Br(r),r==t)return!0;return!1}function sfn(e,t){return t&&e.b[t.g]==t?(ii(e.b,t.g,null),--e.c,!0):!1}function Vc(e,t){var r;return r=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,r}function Oa(e,t){var r,o,s,u;for(Mt(t),o=e.c,s=0,u=o.length;s0&&(e.a/=t,e.b/=t),e}function dj(e){this.b=(xn(e),new Tu(e)),this.a=new Pe,this.d=new Pe,this.e=new to}function Lpe(e){e.b=(_u(),L1),e.f=(Za(),M1),e.d=(wc(2,Cy),new Ra(2)),e.e=new to}function pft(){pft=Y,p$=(Sd(),Z(X(Py,1),Ce,240,0,[$s,ja,Bs])).length,XQ=p$}function Sd(){Sd=Y,$s=new Aq("BEGIN",0),ja=new Aq(hk,1),Bs=new Aq("END",2)}function Kd(){Kd=Y,wx=new Jq(hk,0),dv=new Jq("HEAD",1),yx=new Jq("TAIL",2)}function g6(){g6=Y,V$=new Ele("READING_DIRECTION",0),FSe=new Ele("ROTATION",1)}function b6(){b6=Y,ere=new Fle("DIRECT_ROUTING",0),Qne=new Fle("BEND_ROUTING",1)}function $S(){$S=Y,fRt=Mf(Mf(Mf(YN(new ui,(KS(),XI)),(xC(),Wte)),S_e),k_e)}function cp(){cp=Y,pRt=Mf(Mf(Mf(YN(new ui,(KS(),QI)),(xC(),A_e)),y_e),T_e)}function pE(e,t){return MQt(V3(e,t,On(mo(Sh,ph(On(mo(t==null?0:Ir(t),Th)),15)))))}function Mpe(e,t){return Ud(),Yl(mg),b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)}function Ppe(e,t){return Ud(),Yl(mg),b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)}function mc(e){var t;return e.w?e.w:(t=Qun(e),t&&!t.Sh()&&(e.w=t),t)}function ffn(e){var t;return e==null?null:(t=l(e,198),own(t,t.length))}function ie(e,t){if(e.g==null||t>=e.i)throw K(new tV(t,e.i));return e.Ui(t,e.g[t])}function hfn(e,t){St();var r,o;for(o=new Pe,r=0;r=14&&t<=16))),e}function mft(){mft=Y,kNt=yn((V6(),Z(X(WSe,1),Ce,284,0,[Y$,GSe,VSe,zSe,qSe,Gee])))}function wft(){wft=Y,xNt=yn((V_(),Z(X(QSe,1),Ce,285,0,[_I,YSe,ZSe,XSe,JSe,KSe])))}function yft(){yft=Y,ANt=yn((T7(),Z(X(BSe,1),Ce,286,0,[Bee,$ee,Hee,Uee,zee,W$])))}function vft(){vft=Y,bNt=yn((ZS(),Z(X(Kk,1),Ce,233,0,[Wk,TI,Vk,Hy,YE,KE])))}function Eft(){Eft=Y,J6t=yn((E7(),Z(X(INe,1),Ce,328,0,[Ere,xNe,CNe,_Ne,NNe,kNe])))}function Sft(){Sft=Y,v6t=yn((Jb(),Z(X(are,1),Ce,300,0,[sre,g4,p4,ore,f4,h4])))}function Tft(){Tft=Y,p6t=yn((mh(),Z(X(Oxe,1),Ce,259,0,[rre,ML,PL,eU,ZB,QB])))}function Aft(){Aft=Y,rDt=yn((qi(),Z(X($Ne,1),Ce,103,0,[W1,pf,Ex,Tm,Oh,fa])))}function _ft(){_ft=Y,iDt=yn((ku(),Z(X(uU,1),Ce,282,0,[K1,Cp,VL,A4,T4,VT])))}function bfn(){return Sy(),Z(X(Bo,1),Ce,96,0,[ad,Np,ud,ld,Rh,Il,xc,cd,Cl])}function z3(){z3=Y,WL=new Zq(Jve,0),Sre=new Zq("PARENT",1),UNe=new Zq("ROOT",2)}function kft(e,t){return e.n=t,e.n?(e.f=new Pe,e.e=new Pe):(e.f=null,e.e=null),e}function $b(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,3,r,e.f))}function fj(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,1,r,e.b))}function w0(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,3,r,e.b))}function y0(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,4,r,e.c))}function Bb(e,t){var r;r=e.g,e.g=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,4,r,e.g))}function ya(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,5,r,e.i))}function gu(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,6,r,e.j))}function v0(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,1,r,e.j))}function E0(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,2,r,e.k))}function hj(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&hr(e,new oy(e,0,r,e.a))}function ug(e,t){var r;r=e.s,e.s=t,e.Db&4&&!(e.Db&1)&&hr(e,new jW(e,4,r,e.s))}function uy(e,t){var r;r=e.t,e.t=t,e.Db&4&&!(e.Db&1)&&hr(e,new jW(e,5,r,e.t))}function dK(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new jW(e,2,r,e.d))}function w_(e,t){var r;r=e.F,e.F=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,5,r,t))}function m6(e,t){var r;return r=l(Ut((Z9(),wU),e),58),r?r.ek(t):me(Ci,Rt,1,t,5,1)}function lp(e,t){var r,o;return r=t in e.a,r&&(o=rp(e,t).pe(),o)?o.a:null}function mfn(e,t){var r,o,s;return r=(o=(e1(),s=new Iue,s),t&&Lme(o,t),o),Zpe(r,e),r}function xft(e,t,r){var o;return o=$_(r),Yn(e.c,o,t),Yn(e.d,t,r),Yn(e.e,t,ey(t)),t}function fn(e,t,r,o,s,u){var f;return f=sW(e,t),Cft(r,f),f.i=s?8:0,f.f=o,f.e=s,f.g=u,f}function jpe(e,t,r,o,s){this.d=t,this.k=o,this.f=s,this.o=-1,this.p=1,this.c=e,this.a=r}function Fpe(e,t,r,o,s){this.d=t,this.k=o,this.f=s,this.o=-1,this.p=2,this.c=e,this.a=r}function $pe(e,t,r,o,s){this.d=t,this.k=o,this.f=s,this.o=-1,this.p=6,this.c=e,this.a=r}function Bpe(e,t,r,o,s){this.d=t,this.k=o,this.f=s,this.o=-1,this.p=7,this.c=e,this.a=r}function Upe(e,t,r,o,s){this.d=t,this.j=o,this.e=s,this.o=-1,this.p=4,this.c=e,this.a=r}function Nft(e,t){var r,o,s,u;for(o=t,s=0,u=o.length;s0?l(He(r.a,o-1),9):null}function Yl(e){if(!(e>=0))throw K(new jt("tolerance ("+e+") must be >= 0"));return e}function G3(){return tre||(tre=new tyt,bE(tre,Z(X(GE,1),Rt,139,0,[new Lue]))),tre}function pj(){pj=Y,d_e=new $q("NO",0),Gte=new $q(Swe,1),l_e=new $q("LOOK_BACK",2)}function gj(){gj=Y,LSe=new Cq("ARD",0),q$=new Cq("MSD",1),Iee=new Cq("MANUAL",2)}function Lo(){Lo=Y,VI=new Mq(HC,0),Cu=new Mq("INPUT",1),Fa=new Mq("OUTPUT",2)}function Efn(){return Q6(),Z(X(jSe,1),Ce,268,0,[Dee,PSe,Mee,Pee,Lee,jee,sL,Oee,Ree])}function Sfn(){return tD(),Z(X(qAe,1),Ce,269,0,[Ite,HAe,zAe,Nte,UAe,GAe,SB,xte,Cte])}function Tfn(){return Bu(),Z(X(zNe,1),Ce,267,0,[Sx,XL,cU,k4,lU,fU,dU,Tre,JL])}function qo(e,t,r){return Wb(e,t),Da(e,r),ug(e,0),uy(e,1),hg(e,!0),fg(e,!0),e}function Rft(e,t){var r;return se(t,45)?e.c.Kc(t):(r=iY(e,t),Xj(e,t),r)}function q3(e,t){var r,o,s,u;for(o=t,s=0,u=o.length;sr)throw K(new Vw(t,r));return new efe(e,t)}function Oft(e,t){var r,o;for(r=0,o=e.gc();r=0),c1n(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function xfn(e){var t,r;for(r=new V(P1t(e));r.a=0}function Vpe(){Vpe=Y,GIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function Fft(){Fft=Y,qIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function Wpe(){Wpe=Y,VIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function $ft(){$ft=Y,WIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function Bft(){Bft=Y,KIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function Uft(){Uft=Y,YIt=Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)}function Hft(){Hft=Y,ZIt=Ca(Fn(Fn(new ui,(Vi(),la),(Xi(),R$)),da,k$),$o,I$)}function zft(){zft=Y,j_t=Z(X(Rn,1),Xn,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Kpe(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,r,e.b))}function Ype(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.c))}function hK(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,4,r,e.c))}function Jpe(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.c))}function Xpe(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.d))}function y_(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,2,r,e.k))}function pK(e,t){var r;r=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,2,r,e.D))}function yj(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,8,r,e.f))}function vj(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,7,r,e.i))}function Zpe(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,8,r,e.a))}function Qpe(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,r,e.b))}function Ifn(e,t,r){var o;e.b=t,e.a=r,o=(e.a&512)==512?new jZe:new Due,e.c=bSn(o,e.b,e.a)}function Gft(e,t){return bp(e.e,t)?(Oo(),oK(t)?new eP(t,e):new AO(t,e)):new ont(t,e)}function Rfn(e){var t,r;return 0>e?new rle:(t=e+1,r=new Zct(t,e),new Dde(null,r))}function Ofn(e,t){St();var r;return r=new cS(1),zi(e)?Qo(r,e,t):eu(r.f,e,t),new zG(r)}function Dfn(e,t){var r;r=new qm,l(t.b,68),l(t.b,68),l(t.b,68),Oa(t.a,new ufe(e,r,t))}function qft(e,t){var r;return se(t,8)?(r=l(t,8),e.a==r.a&&e.b==r.b):!1}function Lfn(e){var t;return t=j(e,(Ie(),mr)),se(t,176)?pgt(l(t,176)):null}function Vft(e){var t;return e=b.Math.max(e,2),t=_ge(e),e>t?(t<<=1,t>0?t:jC):t}function gK(e){switch(dde(e.e!=3),e.e){case 2:return!1;case 0:return!0}return $ln(e)}function ege(e){var t;return e.b==null?(eg(),eg(),uM):(t=e.sl()?e.rl():e.ql(),t)}function Wft(e,t){var r,o;for(o=t.vc().Jc();o.Ob();)r=l(o.Pb(),45),G6(e,r.jd(),r.kd())}function tge(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,11,r,e.d))}function Ej(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,13,r,e.j))}function nge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,21,r,e.b))}function rge(e,t){e.r>0&&e.c0&&e.g!=0&&rge(e.i,t/e.r*e.i.d))}function gE(e){var t;return NV(e.f.g,e.d),un(e.b),e.c=e.a,t=l(e.a.Pb(),45),e.b=gge(e),t}function Kft(e,t){var r;return r=t==null?-1:As(e.b,t,0),r<0?!1:(bK(e,r),!0)}function Jl(e,t){var r;return Mt(t),r=t.g,e.b[r]?!1:(ii(e.b,r,t),++e.c,!0)}function Sj(e,t){var r,o;return r=1-t,o=e.a[r],e.a[r]=o.a[t],o.a[t]=e,e.b=!0,o.b=!1,o}function bK(e,t){var r;r=og(e.b,e.b.c.length-1),t0?1:0:(!e.c&&(e.c=JO(Gs(e.f))),e.c).e}function nht(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function oi(e,t,r,o,s,u,f,p,m,y,v,T,N){return kmt(e,t,r,o,s,u,f,p,m,y,v,T,N),XK(e,!1),e}function vK(e,t,r,o,s,u){var f;this.c=e,f=new Pe,H1e(e,f,t,e.b,r,o,s,u),this.a=new Ji(f,0)}function rht(){this.c=new B9(0),this.b=new B9(Wye),this.d=new B9(ESt),this.a=new B9(SSt)}function iht(e){this.e=e,this.d=new $9(dy(_S(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function kj(e){this.b=e,this.a=me(Rn,Xn,30,e+1,15,1),this.c=me(Rn,Xn,30,e,15,1),this.d=0}function Ufn(){return _1(),Z(X(e_e,1),Ce,246,0,[_B,vL,EL,XAe,ZAe,JAe,QAe,kB,sx,qI])}function Hfn(){return Mo(),Z(X(qee,1),Ce,262,0,[J$,rl,kI,X$,Zk,XE,xI,Jk,Xk,Z$])}function oht(e,t){return ue(ce(Ju(O6(Ia(new yt(null,new vt(e.c.b,16)),new QYe(e)),t))))}function age(e,t){return ue(ce(Ju(O6(Ia(new yt(null,new vt(e.c.b,16)),new ZYe(e)),t))))}function sht(e,t){return Ud(),Yl(nf),b.Math.abs(0-t)<=nf||t==0||isNaN(0)&&isNaN(t)?0:e/t}function zfn(e,t){return __(),e==J0&&t==Fy||e==Fy&&t==J0||e==qE&&t==jy||e==jy&&t==qE}function Gfn(e,t){return __(),e==J0&&t==jy||e==J0&&t==qE||e==Fy&&t==qE||e==Fy&&t==jy}function qfn(e,t,r){var o,s,u;for(o=0,s=0;s>>31;o!=0&&(e[r]=o)}function uge(e,t,r){var o,s;for(s=An(e,0);s.b!=s.d.c;)o=l(Sn(s),8),o.a+=t,o.b+=r;return e}function V3(e,t,r){var o;for(o=e.b[r&e.f];o;o=o.b)if(r==o.a&&tp(t,o.g))return o;return null}function W3(e,t,r){var o;for(o=e.c[r&e.f];o;o=o.d)if(r==o.f&&tp(t,o.i))return o;return null}function Vfn(e,t){var r,o;return r=l(ye(e,(T1(),BB)),15),o=l(ye(t,BB),15),na(r.a,o.a)}function Wfn(e,t){var r;t.Tg("General Compactor",1),r=zgn(l(ye(e,(T1(),gne)),387)),r.Bg(e)}function Kfn(e,t,r){r.Tg("DFS Treeifying phase",1),e1n(e,t),F2n(e,t),e.a=null,e.b=null,r.Ug()}function Yfn(e,t,r,o){var s;s=new oS,Db(s,"x",b7(e,t,o.a)),Db(s,"y",m7(e,t,o.b)),CS(r,s)}function Jfn(e,t,r,o){var s;s=new oS,Db(s,"x",b7(e,t,o.a)),Db(s,"y",m7(e,t,o.b)),CS(r,s)}function EK(){EK=Y,R4=new OZe,Lre=Z(X(au,1),UE,182,0,[]),ZDt=Z(X(Dl,1),wEe,62,0,[])}function US(){US=Y,mee=new Pr("edgelabelcenterednessanalysis.includelabel",(Lt(),D1))}function bu(){bu=Y,U2e=new pG,$2e=new gG,B2e=new bG,F2e=new mG,H2e=new wG,z2e=new IN}function Xfn(e,t){t.Tg(J2t,1),g1e(KQt(new S9((qN(),new dW(e,!1,!1,new a9))))),t.Ug()}function SK(e){var t;return t=Bhe(e),u3(t.a,0)?(Pw(),Pw(),GQ):(Pw(),new mV(t.b))}function TK(e){var t;return t=Bhe(e),u3(t.a,0)?(Pw(),Pw(),GQ):(Pw(),new mV(t.c))}function Zfn(e){var t;return t=FP(e),u3(t.a,0)?(G9(),G9(),J_t):(G9(),new Lrt(t.b))}function Qfn(e){return e.b.c.i.k==(Ht(),mi)?l(j(e.b.c.i,(Ie(),mr)),12):e.b.c}function aht(e){return e.b.d.i.k==(Ht(),mi)?l(j(e.b.d.i,(Ie(),mr)),12):e.b.d}function uht(e){switch(e.g){case 2:return Ue(),Wt;case 4:return Ue(),Zt;default:return e}}function cht(e){switch(e.g){case 1:return Ue(),dn;case 3:return Ue(),Vt;default:return e}}function ehn(e,t){var r;return r=kbe(e),rme(new Le(r.c,r.d),new Le(r.b,r.a),e.Kf(),t,e.$f())}function thn(e){var t,r,o;for(o=0,r=new V(e.b);r.a0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function dht(e,t,r){this.g=e,this.d=t,this.e=r,this.a=new Pe,Jyn(this),St(),_i(this.a,null)}function Kc(e,t,r,o,s,u,f){mn.call(this,e,t),this.d=r,this.e=o,this.c=s,this.b=u,this.a=Wl(f)}function lge(e,t){t.q=e,e.d=b.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),je(e.a,t)}function AK(e,t){var r,o,s,u;return s=e.c,r=e.c+e.b,u=e.d,o=e.d+e.a,t.a>s&&t.au&&t.bs?r=s:Yt(t,r+1),e.a=yl(e.a,0,t)+(""+o)+nhe(e.a,r)}function Hb(e,t,r){var o,s;return s=l(y3(e.d,t),15),o=l(y3(e.b,r),15),!s||!o?null:jS(e,s.a,o.a)}function dhn(e,t,r){return yr(mS(B_(e),new Le(t.e.a,t.e.b)),mS(B_(e),new Le(r.e.a,r.e.b)))}function fhn(e,t,r){return e==(Vb(),NB)?new _Ue:$u(t,1)!=0?new Vce(r.length):new pQe(r.length)}function hr(e,t){var r,o,s;if(r=e.qh(),r!=null&&e.th())for(o=0,s=r.length;o1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw K(new ys)}function whn(e){jnt();var t;return Uet(Vte,e)||(t=new HUe,t.a=e,Bde(Vte,e,t)),l(Go(Vte,e),642)}function vl(e){var t,r,o,s;return s=e,o=0,s<0&&(s+=em,o=yp),r=po(s/lT),t=po(s-r*lT),Ua(t,r,o)}function _ht(e,t){var r;return r=e.a.get(t),r===void 0?++e.d:(Tnn(e.a,t),--e.c,++e.b.g),r}function qs(e,t){var r;return t&&(r=t.lf(),r.dc()||(e.q?K3(e.q,r):e.q=new Ant(r))),e}function yhn(e,t){var r,o,s;return r=t.p-e.p,r==0?(o=e.f.a*e.f.b,s=t.f.a*t.f.b,yr(o,s)):r}function fge(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Phe(e,t)}function vhn(e){return e.b.c.length!=0&&l(He(e.b,0),70).a?l(He(e.b,0),70).a:gW(e)}function Ehn(e,t){var r;try{t.be()}catch(o){if(o=ci(o),se(o,81))r=o,Ot(e.c,r);else throw K(o)}}function Shn(e,t){var r;t.Tg("Edge and layer constraint edge reversal",1),r=KSn(e),Ixn(r),t.Ug()}function Thn(e,t){var r,o;return r=e.j,o=t.j,r!=o?r.g-o.g:e.p==t.p?0:r==(Ue(),Vt)?e.p-t.p:t.p-e.p}function T_(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(Oo(),l(e,69).vk()),this.k=za(t.e.Ah(),e)}function zb(e,t,r){this.b=(Mt(e),e),this.d=(Mt(t),t),this.e=(Mt(r),r),this.c=this.d+(""+this.e)}function hge(e,t,r,o,s){rpt.call(this,e,r,o,s),this.f=me(Nh,yg,9,t.a.c.length,0,1),Yd(t.a,this.f)}function Y3(e,t,r,o,s){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o),ii(e.b[t.g],r.g,s),ii(e.b[r.g],t.g,s)}function kht(e,t){e.c&&(dyt(e,t,!0),ei(new yt(null,new vt(t,16)),new oJe(e))),dyt(e,t,!1)}function T6(e){this.n=new Pe,this.e=new Sr,this.j=new Sr,this.k=new Pe,this.f=new Pe,this.p=e}function xht(e){e.r=new hi,e.w=new hi,e.t=new Pe,e.i=new Pe,e.d=new hi,e.a=new bS,e.c=new hn}function T0(){T0=Y,ZD=new r8("UP",0),XD=new r8(xX,1),QQ=new r8(dT,2),eee=new r8(fT,3)}function Ij(){Ij=Y,i_e=new Pq("EQUALLY",0),Bte=new Pq("NORTH",1),o_e=new Pq("NORTH_SOUTH",2)}function A_(){A_=Y,Vee=new Rq("ONE_SIDED",0),Wee=new Rq("TWO_SIDED",1),aL=new Rq("OFF",2)}function Nht(){Nht=Y,fDt=yn((Bu(),Z(X(zNe,1),Ce,267,0,[Sx,XL,cU,k4,lU,fU,dU,Tre,JL])))}function Cht(){Cht=Y,tDt=yn((Sy(),Z(X(Bo,1),Ce,96,0,[ad,Np,ud,ld,Rh,Il,xc,cd,Cl])))}function Iht(){Iht=Y,vNt=yn((Q6(),Z(X(jSe,1),Ce,268,0,[Dee,PSe,Mee,Pee,Lee,jee,sL,Oee,Ree])))}function Rht(){Rht=Y,TIt=yn((tD(),Z(X(qAe,1),Ce,269,0,[Ite,HAe,zAe,Nte,UAe,GAe,SB,xte,Cte])))}function Xl(){Xl=Y,Uy=new a8(hk,0),Gk=new a8(dT,1),qk=new a8(fT,2),yee=new a8("TOP",3)}function Rj(){Rj=Y,qte=new Bq("OFF",0),ax=new Bq("SINGLE_EDGE",1),tv=new Bq("MULTI_EDGE",2)}function A6(){A6=Y,XB=new Ple("MINIMUM_SPANNING_TREE",0),yxe=new Ple("MAXIMUM_SPANNING_TREE",1)}function Ahn(e,t,r){var o,s;s=l(j(e,(Be(),rs)),79),s&&(o=new Du,HK(o,0,s),cy(o,r),bo(t,o))}function pge(e){var t;return t=l(j(e,(Ie(),Us)),64),e.k==(Ht(),mi)&&(t==(Ue(),Wt)||t==Zt)}function _hn(e){var t;if(e){if(t=e,t.dc())throw K(new ys);return t.Xb(t.gc()-1)}return put(e.Jc())}function kK(e,t,r,o){return r==1?(!e.n&&(e.n=new xe(Is,e,1,7)),Ao(e.n,t,o)):Lbe(e,t,r,o)}function _6(e,t){var r,o;return o=(r=new RG,r),Da(o,t),Tn((!e.A&&(e.A=new du(Ka,e,7)),e.A),o),o}function khn(e,t,r){var o,s,u,f;return u=null,f=t,s=b0(f,sQ),o=new Btt(e,r),u=(ubt(o.a,o.b,s),s),u}function Oj(e,t,r){var o,s,u,f;f=ji(e),o=f.d,s=f.c,u=e.n,t&&(u.a=u.a-o.b-s.a),r&&(u.b=u.b-o.d-s.b)}function xhn(e,t){var r,o,s;return r=e.l+t.l,o=e.m+t.m+(r>>22),s=e.h+t.h+(o>>22),Ua(r&Uu,o&Uu,s&yp)}function Oht(e,t){var r,o,s;return r=e.l-t.l,o=e.m-t.m+(r>>22),s=e.h-t.h+(o>>22),Ua(r&Uu,o&Uu,s&yp)}function k6(e,t){var r,o;for(Mt(t),o=t.Jc();o.Ob();)if(r=o.Pb(),!e.Gc(r))return!1;return!0}function xK(e){var t;return(!e.a||!(e.Bb&1)&&e.a.Sh())&&(t=Sl(e),se(t,160)&&(e.a=l(t,160))),e.a}function ci(e){var t;return se(e,81)?e:(t=e&&e.__java$exception,t||(t=new Apt(e),eZe(t)),t)}function NK(e){if(se(e,196))return l(e,127);if(e)return null;throw K(new sS(qTt))}function Dht(e){switch(e.g){case 0:return new Cze;case 1:return new Ize;case 2:default:return null}}function gge(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new wpe(e.f.f),e.a.Ob())}function Lht(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(pr(t,Fj(e)))return!0;return!1}function Mht(e,t){return!e||!t||e==t?!1:Mgt(e.d.c,t.d.c+t.d.b)&&Mgt(t.d.c,e.d.c+e.d.b)}function Nhn(){return WP(),sf?new BW(null):m0t(chn(),"com.google.common.base.Strings")}function li(e,t){var r,o;return r=t.Nc(),o=r.length,o==0?!1:(Tfe(e.c,e.c.length,r),!0)}function Chn(e,t){var r,o;return r=e.c,o=t.e[e.p],o=128?!1:e<64?c3(Gi(fh(1,e),r),0):c3(Gi(fh(1,e-64),t),0)}function Ege(e,t,r){var o;if(o=e.gc(),t>o)throw K(new Vw(t,o));return e.Qi()&&(r=Yat(e,r)),e.Ci(t,r)}function Hhn(e,t){var r,o;return r=l(l(Ut(e.g,t.a),49).a,68),o=l(l(Ut(e.g,t.b),49).a,68),Hyt(r,o)}function k_(e){var t,r,o;return t=~e.l+1&Uu,r=~e.m+(t==0?1:0)&Uu,o=~e.h+(t==0&&r==0?1:0)&yp,Ua(t,r,o)}function zhn(e){X_();var t,r,o;for(r=me($i,Me,8,2,0,1),o=0,t=0;t<2;t++)o+=.5,r[t]=Tbn(o,e);return r}function Vht(e,t){var r,o,s,u;for(r=!1,o=e.a[t].length,u=0;ue.f,r=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||r}function J3(e){var t;return t=e.a[e.b],t==null?null:(ii(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function Zht(e,t,r){var o,s;return o=new JW(t,r),s=new Xt,e.b=Awt(e,e.b,o,s),s.b||++e.c,e.b.b=!1,s.d}function Qht(e){var t,r;return r=X6(e.h),r==32?(t=X6(e.m),t==32?X6(e.l)+32:t+20-10):r-12}function _ge(e){var t;if(e<0)return Zi;if(e==0)return 0;for(t=jC;!(t&e);t>>=1);return t}function Ghn(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+Fdt(e))}function kge(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=Sl(e),se(t,89)&&(e.c=l(t,29))),e.c}function b1(e){var t,r;for(r=new V(e.a.b);r.a1||t>=0&&e.b<3)}function Yhn(e,t,r){return!$A(lr(new yt(null,new vt(e.c,16)),new IA(new Ctt(t,r)))).zd((Tb(),ET))}function MK(e,t,r){this.g=e,this.e=new to,this.f=new to,this.d=new Sr,this.b=new Sr,this.a=t,this.c=r}function PK(e,t,r,o){this.b=new Pe,this.n=new Pe,this.i=o,this.j=r,this.s=e,this.t=t,this.r=0,this.d=0}function rpt(e,t,r,o){this.b=new hn,this.g=new hn,this.d=(eC(),TB),this.c=e,this.e=t,this.d=r,this.a=o}function ipt(e,t,r){e.g=ZY(e,t,(Ue(),Zt),e.b),e.d=ZY(e,r,Zt,e.b),!(e.g.c==0||e.d.c==0)&&qbt(e)}function opt(e,t,r){e.g=ZY(e,t,(Ue(),Wt),e.j),e.d=ZY(e,r,Wt,e.j),!(e.g.c==0||e.d.c==0)&&qbt(e)}function Jhn(e,t,r,o,s){var u;return u=mme(e,t),r&&DK(u),s&&(e=Cbn(e,t),o?O1=k_(e):O1=Ua(e.l,e.m,e.h)),u}function Xhn(e,t,r,o,s){var u,f;if(f=e.length,u=r.length,t<0||o<0||s<0||t+s>f||o+s>u)throw K(new mce)}function spt(e,t){BO(e>=0,"Negative initial capacity"),BO(t>=0,"Non-positive load factor"),Zs(this)}function x_(){x_=Y,kSe=new c$e,xSe=new l$e,tNt=new d$e,eNt=new f$e,Qxt=new h$e,_Se=(Mt(Qxt),new Je)}function X3(){X3=Y,C_e=new Hq(_d,0),Kte=new Hq("MIDDLE_TO_MIDDLE",1),_L=new Hq("AVOID_OVERLAP",2)}function Ige(e,t,r){switch(t){case 0:!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),xj(e.o,r);return}eJ(e,t,r)}function Zhn(e,t){switch(t.g){case 0:se(e.b,638)||(e.b=new Eht);break;case 1:se(e.b,639)||(e.b=new yot)}}function apt(e){switch(e.g){case 0:return new Bze;default:throw K(new jt(PF+(e.f!=null?e.f:""+e.g)))}}function upt(e){switch(e.g){case 0:return new $ze;default:throw K(new jt(PF+(e.f!=null?e.f:""+e.g)))}}function cpt(e){switch(e.g){case 0:return new Hze;default:throw K(new jt(AZ+(e.f!=null?e.f:""+e.g)))}}function lpt(e){switch(e.g){case 0:return new zze;default:throw K(new jt(AZ+(e.f!=null?e.f:""+e.g)))}}function dpt(e){switch(e.g){case 0:return new Mze;default:throw K(new jt(AZ+(e.f!=null?e.f:""+e.g)))}}function N_(e,t){if(!e.Ji()&&t==null)throw K(new jt("The 'no null' constraint is violated"));return t}function Rge(e){var t,r,o;for(t=new Du,o=An(e,0);o.b!=o.d.c;)r=l(Sn(o),8),VA(t,0,new Eo(r));return t}function cg(e){var t,r;for(t=0,r=0;ro?1:0}function fpt(e,t){var r,o,s;for(s=e.b;s;){if(r=e.a.Le(t,s.d),r==0)return s;o=r<0?0:1,s=s.a[o]}return null}function bE(e,t){var r,o,s,u,f;for(o=t,s=0,u=o.length;s=e.b.c.length||(Lge(e,2*t+1),r=2*t+2,r0&&(t.Ad(r),r.i&&M1n(r))}function Mge(e,t,r){var o;for(o=r-1;o>=0&&e[o]===t[o];o--);return o<0?0:Eq(Gi(e[o],Po),Gi(t[o],Po))?-1:1}function apn(e,t){var r;return!e||e==t||!gr(t,(Ie(),ew))?!1:(r=l(j(t,(Ie(),ew)),9),r!=e)}function mE(e,t,r){var o,s;return s=(o=new ZG,o),qo(s,t,r),Tn((!e.q&&(e.q=new xe(Dl,e,11,10)),e.q),s),s}function $K(e,t){var r,o;return o=l(qt(e.a,4),131),r=me(Ore,gQ,420,t,0,1),o!=null&&ua(o,0,r,0,o.length),r}function BK(e){var t,r,o,s;for(s=oen(NDt,e),r=s.length,o=me(Ye,Me,2,r,6,1),t=0;t0)return e_(t-1,e.a.c.length),og(e.a,t-1);throw K(new nZe)}function hpn(e,t,r){if(t<0)throw K(new Na(JSt+t));tt)throw K(new jt(iF+e+c2t+t));if(e<0||t>r)throw K(new Uce(iF+e+iwe+t+twe+r))}function vpt(e){if(!e.a||!(e.a.i&8))throw K(new Xo("Enumeration class expected for layout option "+e.f))}function Ept(e){Kat.call(this,"The given string does not match the expected format for individual spacings.",e)}function Spt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function lg(e){switch(e.c){case 0:return FV(),DEe;case 1:return new eS(jmt(new lS(e)));default:return new YZe(e)}}function Tpt(e){switch(e.gc()){case 0:return FV(),DEe;case 1:return new eS(e.Jc().Pb());default:return new dle(e)}}function Fge(e){var t;return t=(!e.a&&(e.a=new xe(Ip,e,9,5)),e.a),t.i!=0?nen(l(ie(t,0),691)):null}function ppn(e,t){var r;return r=To(e,t),Eq(RW(e,t),0)|_8(RW(e,r),0)?r:To(bD,RW(Cb(r,63),1))}function $ge(e,t,r){var o,s;return ny(t,e.c.length),o=r.Nc(),s=o.length,s==0?!1:(Tfe(e.c,t,o),!0)}function gpn(e,t){var r,o;for(r=e.a.length-1;t!=e.b;)o=t-1&r,ii(e.a,t,e.a[o]),t=o;ii(e.a,e.b,null),e.b=e.b+1&r}function bpn(e,t){var r,o;for(r=e.a.length-1,e.c=e.c-1&r;t!=e.c;)o=t+1&r,ii(e.a,t,e.a[o]),t=o;ii(e.a,e.c,null)}function fy(e){var t;++e.j,e.i==0?e.g=null:e.is&&(gbt(t.q,s),o=r!=t.q.d)),o}function Ipt(e,t){var r,o,s,u,f,p,m,y;return m=t.i,y=t.j,o=e.f,s=o.i,u=o.j,f=m-s,p=y-u,r=b.Math.sqrt(f*f+p*p),r}function Rpt(e,t){var r,o,s;r=e,s=0;do{if(r==t)return s;if(o=r.e,!o)throw K(new eO);r=ji(o),++s}while(!0)}function Wb(e,t){var r,o,s;o=e.Wk(t,null),s=null,t&&(s=(FA(),r=new Km,r),m_(s,e.r)),o=Zd(e,s,o),o&&o.mj()}function Tpn(e,t){var r,o;for(o=$u(e.d,1)!=0,r=!0;r;)r=!1,r=t.c.kg(t.e,o),r=r|rD(e,t,o,!1),o=!o;oge(e)}function Uge(e,t){var r,o;return o=Qj(e),o||(r=(DJ(),j0t(t)),o=new VXe(r),Tn(o.Cl(),e)),o}function I6(e,t){var r,o;return r=l(e.c.Ac(t),18),r?(o=e.hc(),o.Fc(r),e.d-=r.gc(),r.$b(),e.mc(o)):e.jc()}function Apn(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw K(new ys);return t=e.a,e.a+=e.c.c,++e.b,Re(t)}function _pn(e){var t,r;if(e==null)return!1;for(t=0,r=e.length;tIF?e-r>IF:r-e>IF}function va(e,t){var r;return ps(e)&&ps(t)&&(r=e-t,!isNaN(r))?r:nbe(ps(e)?vl(e):e,ps(t)?vl(t):t)}function Npn(e,t,r){var o;o=new a0t(e,t),wt(e.r,t.$f(),o),r&&!A3(e.u)&&(o.c=new Bat(e.d),Oa(t.Pf(),new tYe(o)))}function qK(e){var t;return t=new ede(e.a),qs(t,e),Ae(t,(Ie(),mr),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function Cpn(e){var t;return t=I8(ZIt),l(j(e,(Ie(),_a)),24).Gc((Mo(),Zk))&&Fn(t,(Vi(),la),(Xi(),L$)),t}function Ipn(e){var t,r,o,s;for(s=new hi,o=new V(e);o.a=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(s*=r,o-=1);return t<0?1/s:s}function Rpn(e,t){var r,o,s;for(s=1,r=e,o=t>=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(s*=r,o-=1);return t<0?1/s:s}function w1(e,t){var r,o,s,u;return u=(s=e?Qj(e):null,Nmt((o=t,s&&s.El(),o))),u==t&&(r=Qj(e),r&&r.El()),u}function zge(e,t,r){var o,s;return s=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,1,s,t),r?r.lj(o):r=o),r}function Mpt(e,t,r){var o,s;return s=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,3,s,t),r?r.lj(o):r=o),r}function Ppt(e,t,r){var o,s;return s=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,0,s,t),r?r.lj(o):r=o),r}function Opn(e,t,r,o){var s,u;for(u=e.Jc();u.Ob();)s=l(u.Pb(),70),s.n.a=t.a+(o.a-s.o.a)/2,s.n.b=t.b,t.b+=s.o.b+r}function Dpn(e,t,r,o,s,u,f,p){var m;for(m=r;u=o||t0&&(r=l(He(e.a,e.a.c.length-1),572),Dge(r,t))||je(e.a,new Qct(t))}function Hpt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,me(Nh,yg,9,e.c.length,0,1)),201),Kle(r,new mFe),Zmt(r,t))}function zpt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,me(Nh,yg,9,e.c.length,0,1)),201),Kle(r,new wFe),Zmt(r,t))}function Re(e){var t,r;return e>-129&&e<128?(wot(),t=e+128,r=GEe[t],!r&&(r=GEe[t]=new Jue(e)),r):new Jue(e)}function O_(e){var t,r;return e>-129&&e<128?(kot(),t=e+128,r=KEe[t],!r&&(r=KEe[t]=new Kue(e)),r):new Kue(e)}function Gpt(e){var t;return t=new Zg,t.a+="VerticalSegment ",ga(t,e.e),t.a+=" ",zn(t,fde(new lq,new V(e.k))),t.a}function Fpn(e){hc();var t,r;t=e.d.c-e.e.c,r=l(e.g,157),Oa(r.b,new FYe(t)),Oa(r.c,new $Ye(t)),co(r.i,new BYe(t))}function $pn(e){var t;return t=l(Wd(e.c.c,""),236),t||(t=new OS(jA(PA(new Z2,""),"Other")),Kb(e.c.c,"",t)),t}function tC(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (name: ",zo(t,e.zb),t.a+=")",t.a)}function Wge(e,t,r){var o,s;return s=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,s,t),r?r.lj(o):r=o),r}function WK(e,t){var r,o,s;for(r=0,s=ks(e,t).Jc();s.Ob();)o=l(s.Pb(),12),r+=j(o,(Ie(),Nu))!=null?1:0;return r}function yE(e,t,r){var o,s,u;for(o=0,u=An(e,0);u.b!=u.d.c&&(s=ue(ce(Sn(u))),!(s>r));)s>=t&&++o;return o}function Bpn(e,t,r){var o,s;return o=new ap(e.e,3,13,null,(s=t.c,s||(Tt(),bf)),pg(e,t),!1),r?r.lj(o):r=o,r}function Upn(e,t,r){var o,s;return o=new ap(e.e,4,13,(s=t.c,s||(Tt(),bf)),null,pg(e,t),!1),r?r.lj(o):r=o,r}function Kge(e,t,r){var o,s;return s=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,8,s,e.r),r?r.lj(o):r=o),r}function dg(e,t){var r,o;return r=l(t,688),o=r.cl(),!o&&r.dl(o=se(t,89)?new int(e,l(t,29)):new Put(e,l(t,160))),o}function R6(e,t,r){var o;e.Zi(e.i+1),o=e.Xi(t,r),t!=e.i&&ua(e.g,t,e.g,t+1,e.i-t),ii(e.g,t,o),++e.i,e.Ki(t,r),e.Li()}function Hpn(e,t){var r;e.c=t,e.a=Fgn(t),e.a<54&&(e.f=(r=t.d>1?Hut(t.a[0],t.a[1]):Hut(t.a[0],0),jb(t.e>0?r:ag(r))))}function zpn(e,t){var r;return t.a&&(r=t.a.a.length,e.a?zn(e.a,e.b):e.a=new fc(e.d),Yut(e.a,t.a,t.d.length,r)),e}function Gpn(e,t){var r,o,s,u;if(t.cj(e.a),u=l(qt(e.a,8),2014),u!=null)for(r=u,o=0,s=r.length;or)throw K(new Na(iF+e+iwe+t+", size: "+r));if(e>t)throw K(new jt(iF+e+c2t+t))}function fg(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,2,r,t))}function Xge(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,8,r,t))}function Zge(e,t){var r;r=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,9,r,t))}function hg(e,t){var r;r=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,3,r,t))}function Bj(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,8,r,t))}function Vpn(e,t,r){var o,s;return s=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,5,s,e.a),r?bbe(r,o):r=o),r}function Kpt(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (source: ",zo(t,e.d),t.a+=")",t.a)}function rC(e,t){var r;return e.b==-1&&e.a&&(r=e.a.nk(),e.b=r?e.c.Eh(e.a.Jj(),r):Ur(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function Ypt(e,t){var r,o;for(o=new en(e);o.e!=o.i.gc();)if(r=l(rn(o),29),be(t)===be(r))return!0;return!1}function Wpn(e){Z7();var t,r,o,s;for(r=hY(),o=0,s=r.length;o=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function Xpt(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function Qge(e){var t,r;return t=e.k,t==(Ht(),mi)?(r=l(j(e,(Ie(),Us)),64),r==(Ue(),Vt)||r==dn):!1}function Zpt(e,t){var r,o;for(o=new en(e);o.e!=o.i.gc();)if(r=l(rn(o),146),be(t)===be(r))return!0;return!1}function Kpn(e,t,r){var o,s,u;return u=(s=K_(e.b,t),s),u&&(o=l(W7(d6(e,u),""),29),o)?Tme(e,o,t,r):null}function KK(e,t,r){var o,s,u;return u=(s=K_(e.b,t),s),u&&(o=l(W7(d6(e,u),""),29),o)?Ame(e,o,t,r):null}function iC(e,t,r){var o;if(o=e.gc(),t>o)throw K(new Vw(t,o));if(e.Qi()&&e.Gc(r))throw K(new jt(HD));e.Ei(t,r)}function Ypn(e,t){t.Tg("Sort end labels",1),ei(lr(gs(new yt(null,new vt(e.b,16)),new tFe),new nFe),new rFe),t.Ug()}function vi(){vi=Y,hf=new EO(HC,0),cs=new EO(fT,1),is=new EO(dT,2),ff=new EO(xX,3),il=new EO("UP",4)}function D6(){D6=Y,VB=new Yq("P1_STRUCTURE",0),WB=new Yq("P2_PROCESSING_ORDER",1),KB=new Yq("P3_EXECUTION",2)}function Qpt(){Qpt=Y,hRt=Mf(Mf(YN(Mf(Mf(YN(Fn(new ui,(KS(),XI),(xC(),Wte)),ZI),__e),x_e),QI),E_e),N_e)}function Jpn(e){var t,r,o;for(t=new Pe,o=new V(e.b);o.a=0?v1(e):x3(v1(ag(e))))}function ngt(e,t,r,o,s,u){this.e=new Pe,this.f=(Lo(),VI),je(this.e,e),this.d=t,this.a=r,this.b=o,this.f=s,this.c=u}function tgn(e){var t;if(!e.a)throw K(new Xo("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,hat(e,t),pat(e,t)}function rgt(e){var t;return t=Bhe(e),u3(t.a,0)?(Pw(),Pw(),GQ):(Pw(),new mV(vq(t.a,0)?upe(t)/jb(t.a):0))}function ngn(e,t){var r;if(r=nD(e,t),se(r,336))return l(r,38);throw K(new jt(R1+t+"' is not a valid attribute"))}function yr(e,t){return et?1:e==t?e==0?yr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function oC(e,t,r){var o,s;return e.Nj()?(s=e.Oj(),o=rJ(e,t,r),e.Hj(e.Gj(7,Re(r),o,t,s)),o):rJ(e,t,r)}function YK(e,t){var r,o,s;e.d==null?(++e.e,--e.f):(s=t.jd(),r=t.yi(),o=(r&sr)%e.d.length,Wln(e,o,G0t(e,o,r,s)))}function D_(e,t){var r;r=(e.Bb&Tl)!=0,t?e.Bb|=Tl:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,10,r,t))}function L_(e,t){var r;r=(e.Bb&Iy)!=0,t?e.Bb|=Iy:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,12,r,t))}function M_(e,t){var r;r=(e.Bb&yu)!=0,t?e.Bb|=yu:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,15,r,t))}function P_(e,t){var r;r=(e.Bb&mp)!=0,t?e.Bb|=mp:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,11,r,t))}function rgn(e,t){var r;return r=yr(e.b.c,t.b.c),r!=0||(r=yr(e.a.a,t.a.a),r!=0)?r:yr(e.a.b,t.a.b)}function Hj(e){var t,r;return r=l(j(e,(Be(),kc)),87),r==(vi(),hf)?(t=ue(ce(j(e,oB))),t>=1?cs:ff):r}function ign(e){var t,r;for(r=F0t(mc(e)).Jc();r.Ob();)if(t=In(r.Pb()),NC(e,t))return bln(($et(),BDt),t);return null}function ogn(e,t,r){var o,s;for(s=e.a.ec().Jc();s.Ob();)if(o=l(s.Pb(),9),k6(r,l(He(t,o.p),18)))return o;return null}function sgn(e,t,r){var o,s;for(s=se(t,104)&&l(t,20).Bb&xo?new nV(t,e):new T_(t,e),o=0;o>10)+ED&Ei,t[1]=(e&1023)+56320&Ei,Lf(t,0,t.length)}function i1e(e,t){var r;r=(e.Bb&xo)!=0,t?e.Bb|=xo:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,20,r,t))}function o1e(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,18,r,t))}function XK(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,18,r,t))}function j_(e,t){var r;r=(e.Bb&Ff)!=0,t?e.Bb|=Ff:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,16,r,t))}function s1e(e,t,r){var o;return o=0,t&&(eE(e.a)?o+=t.f.a/2:o+=t.f.b/2),r&&(eE(e.a)?o+=r.f.a/2:o+=r.f.b/2),o}function A0(e,t,r){var o;return o=e.a.get(t),e.a.set(t,r===void 0?null:r),o===void 0?(++e.c,++e.b.g):++e.d,o}function ZK(e,t,r){var o,s;return o=(e1(),s=new p9,s),hj(o,t),fj(o,r),e&&Tn((!e.a&&(e.a=new yi(Ic,e,5)),e.a),o),o}function lgn(e,t,r){var o;o=r,!o&&(o=vfe(new iS,0)),o.Tg(j2t,2),h1t(e.b,t,o.dh(1)),dkn(e,t,o.dh(1)),dNn(t,o.dh(1)),o.Ug()}function ks(e,t){var r;return e.i||Zbe(e),r=l(Go(e.g,t),49),r?new If(e.j,l(r.a,15).a,l(r.b,15).a):(St(),St(),No)}function To(e,t){var r;return ps(e)&&ps(t)&&(r=e+t,vD34028234663852886e22?Kr:t<-34028234663852886e22?Oi:t}function Df(e){var t,r,o;for(t=new Pe,o=new V(e.j);o.a"+Pb(t.c):"e_"+Ir(t),e.b&&e.c?Pb(e.b)+"->"+Pb(e.c):"e_"+Ir(e))}function pgn(e,t){return mt(t.b&&t.c?Pb(t.b)+"->"+Pb(t.c):"e_"+Ir(t),e.b&&e.c?Pb(e.b)+"->"+Pb(e.c):"e_"+Ir(e))}function ggn(e){return UK(),Lt(),!!(cgt(l(e.a,84).j,l(e.b,87))||l(e.a,84).d.e!=0&&cgt(l(e.a,84).j,l(e.b,87)))}function eY(){Abe();var e,t,r;r=S3n+++Date.now(),e=po(b.Math.floor(r*TD))&rF,t=po(r-e*ewe),this.a=e^1502,this.b=t^EX}function sgt(e,t,r,o,s){Vnt(this),this.b=e,this.d=me(Nh,yg,9,t.a.c.length,0,1),this.f=r,Yd(t.a,this.d),this.g=o,this.c=s}function a1e(e,t){e.n.c.length==0&&je(e.n,new DP(e.s,e.t,e.i)),je(e.b,t),U1e(l(He(e.n,e.n.c.length-1),211),t),Wyt(e,t)}function bgn(e,t,r){var o;r.Tg("Straight Line Edge Routing",1),r.bh(t,ive),o=l(ye(t,(aE(),l2)),19),avt(e,o),r.bh(t,DF)}function ct(e){var t,r,o,s;return r=(t=l(md((o=e.Pm,s=o.f,s==bn?o:s)),10),new Hc(t,l(Gl(t,t.length),10),0)),Jl(r,e),r}function mgn(e){var t,r;for(r=Gvn(mc(ty(e))).Jc();r.Ob();)if(t=In(r.Pb()),NC(e,t))return mln((Bet(),UDt),t);return null}function tY(e,t){var r,o,s;for(s=0,o=l(t.Kb(e),22).Jc();o.Ob();)r=l(o.Pb(),17),Ke(We(j(r,(Ie(),Tg))))||++s;return s}function agt(e){var t,r,o,s;for(t=new iit(e.Pd().gc()),s=0,o=FS(e.Pd().Jc());o.Ob();)r=o.Pb(),ian(t,r,Re(s++));return Kwn(t.a)}function wgn(e){var t,r,o;for(r=0,o=e.length;rt){But(r);break}}mP(r,t)}function vgn(e,t){var r,o,s;o=lE(t),s=ue(ce(gy(o,(Be(),od)))),r=b.Math.max(0,s/2-.5),hC(t,r,1),je(e,new stt(t,r))}function st(e,t){var r,o,s,u,f;if(r=t.f,Kb(e.c.d,r,t),t.g!=null)for(s=t.g,u=0,f=s.length;ut&&o.Le(e[u-1],e[u])>0;--u)f=e[u],ii(e,u,e[u-1]),ii(e,u-1,f)}function Xc(e,t,r,o){if(t<0)Nme(e,r,o);else{if(!r.pk())throw K(new jt(R1+r.ve()+tI));l(r,69).uk().Ak(e,e.ei(),t,o)}}function Sgn(e,t){var r;if(r=nD(e.Ah(),t),se(r,104))return l(r,20);throw K(new jt(R1+t+"' is not a valid reference"))}function bs(e){var t;return Array.isArray(e)&&e.Rm===ge?Sb(nc(e))+"@"+(t=Ir(e)>>>0,t.toString(16)):e.toString()}function Tgn(e,t){return e.h==yD&&e.m==0&&e.l==0?(t&&(O1=Ua(0,0,0)),Snt((b_(),FEe))):(t&&(O1=Ua(e.l,e.m,e.h)),Ua(0,0,0))}function Agn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function cgt(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function u1e(e,t,r,o){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return Jge(e,t,r,o)}function Gj(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw K(new jt("Node "+t+" not part of edge "+e))}function _gn(e){return e.e==null?e:(!e.c&&(e.c=new fJ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function kgn(e){return e.k!=(Ht(),Xr)?!1:fE(new yt(null,new Xw(new Ft(Gt(Rr(e).a.Jc(),new D)))),new SBe)}function Fu(e){var t;if(e.b){if(Fu(e.b),e.b.d!=e.c)throw K(new $c)}else e.d.dc()&&(t=l(e.f.c.xc(e.e),18),t&&(e.d=t))}function xgn(e){Gw();var t,r,o,s;for(t=e.o.b,o=l(l(wr(e.r,(Ue(),dn)),24),85).Jc();o.Ob();)r=l(o.Pb(),116),s=r.e,s.b+=t}function Ngn(e,t){var r,o,s;for(o=sTn(e,t),s=o[o.length-1]/2,r=0;r=s)return t.c+r;return t.c+t.b.gc()}function c1e(e,t,r,o,s){var u,f,p;for(f=s;t.b!=t.c;)u=l(xS(t),9),p=l(ks(u,o).Xb(0),12),e.d[p.p]=f++,Ot(r.c,p);return f}function sC(e){var t;this.a=(t=l(e.e&&e.e(),10),new Hc(t,l(Gl(t,t.length),10),0)),this.b=me(Ci,Rt,1,this.a.a.length,5,1)}function l1e(e){oY(),this.c=Wl(Z(X(U3n,1),Rt,837,0,[EIt])),this.b=new hn,this.a=e,Yn(this.b,EB,1),Oa(SIt,new rXe(this))}function rc(){rc=Y,hL=new pO(_d,0),RI=new pO("FIRST",1),Ap=new pO(Q2t,2),OI=new pO("LAST",3),hm=new pO(eSt,4)}function aC(){aC=Y,AI=new u8("LAYER_SWEEP",0),RSe=new u8("MEDIAN_LAYER_SWEEP",1),oL=new u8(jX,2),OSe=new u8(_d,3)}function qj(){qj=Y,_ke=new Vq("ASPECT_RATIO_DRIVEN",0),kne=new Vq("MAX_SCALE_DRIVEN",1),Ake=new Vq("AREA_DRIVEN",2)}function Vj(){Vj=Y,_re=new E8(qye,0),YNe=new E8("GROUP_DEC",1),XNe=new E8("GROUP_MIXED",2),JNe=new E8("GROUP_INC",3)}function hp(){hp=Y,yre=new w8(HC,0),HL=new w8("POLYLINE",1),vx=new w8("ORTHOGONAL",2),qT=new w8("SPLINES",3)}function d1e(){d1e=Y,KOt=new cr(jve),Axe=(UP(),Hne),WOt=new ht(Fve,Axe),VOt=new ht($ve,50),qOt=new ht(Bve,(Lt(),!0))}function Cgn(e){var t,r,o,s,u;return u=_be(e),r=oO(e.c),o=!r,o&&(s=new yb,Kl(u,"knownLayouters",s),t=new DXe(s),co(e.c,t)),u}function f1e(e,t){var r,o,s,u,f,p;for(o=0,r=0,u=t,f=0,p=u.length;f0&&(o+=s,++r);return r>1&&(o+=e.d*(r-1)),o}function h1e(e){var t,r,o;for(o=new Jp,o.a+="[",t=0,r=e.gc();t0&&(Yt(t-1,e.length),e.charCodeAt(t-1)==58)&&!nY(e,C4,I4))}function p1e(e,t){var r;return be(e)===be(t)?!0:se(t,92)?(r=l(t,92),e.e==r.e&&e.d==r.d&&vln(e,r.a)):!1}function qS(e){switch(Ue(),e.g){case 4:return Vt;case 1:return Zt;case 3:return dn;case 2:return Wt;default:return Cs}}function Rgn(e){var t,r;if(e.b)return e.b;for(r=sf?null:e.d;r;){if(t=sf?null:r.b,t)return t;r=sf?null:r.d}return zA(),u2e}function _0(e,t){return Ud(),Yl(mg),b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)?0:et?1:_b(isNaN(e),isNaN(t))}function lgt(e,t){YA();var r,o,s,u;for(o=Qlt(e),s=t,p_(o,0,o.length,s),r=0;r3;)s*=10,--u;e=(e+(s>>1))/s|0}return o.i=e,!0}function Fgn(e){var t,r,o;return e.e==0?0:(t=e.d<<5,r=e.a[e.d-1],e.e<0&&(o=lht(e),o==e.d-1&&(--r,r=r|0)),t-=X6(r),t)}function $gn(e){var t,r,o;return e>5,t=e&31,o=me(Rn,Xn,30,r+1,15,1),o[r]=1<0&&(t.lengthe.i&&ii(t,e.i,null),t}function Ggn(e,t,r){var o,s;return o=ue(e.p[t.i.p])+ue(e.d[t.i.p])+t.n.b+t.a.b,s=ue(e.p[r.i.p])+ue(e.d[r.i.p])+r.n.b+r.a.b,s-o}function Ur(e,t){var r,o,s;if(r=(e.i==null&&jf(e),e.i),o=t.Jj(),o!=-1){for(s=r.length;o0?(e.Zj(),o=t==null?0:Ir(t),s=(o&sr)%e.d.length,r=G0t(e,s,o,t),r!=-1):!1}function Kj(e){var t,r,o,s;for(s=0,r=0,o=e.length;r=0;--o)for(t=r[o],s=0;s0&&(e.Zj(),o=t==null?0:Ir(t),s=(o&sr)%e.d.length,r=sme(e,s,o,t),r)?r.kd():null}function Egt(e,t){var r,o,s;return se(t,45)?(r=l(t,45),o=r.jd(),s=hy(e.Pc(),o),tp(s,r.kd())&&(s!=null||e.Pc()._b(o))):!1}function La(e,t,r){var o,s,u;return e.Nj()?(o=e.i,u=e.Oj(),R6(e,o,t),s=e.Gj(3,null,t,o,u),r?r.lj(s):r=s):R6(e,e.i,t),r}function Jgn(e,t,r){var o,s;return o=new ap(e.e,4,10,(s=t.c,se(s,89)?l(s,29):(Tt(),Ml)),null,pg(e,t),!1),r?r.lj(o):r=o,r}function Xgn(e,t,r){var o,s;return o=new ap(e.e,3,10,null,(s=t.c,se(s,89)?l(s,29):(Tt(),Ml)),pg(e,t),!1),r?r.lj(o):r=o,r}function Sgt(e){my();var t;return(e.q?e.q:(St(),St(),kh))._b((Be(),iw))?t=l(j(e,iw),205):t=l(j(ji(e),BI),205),t}function v1(e){Pf();var t,r;return r=On(e),t=On(Cb(e,32)),t!=0?new Wut(r,t):r>10||r<0?new op(1,r):H_t[r]}function Tgt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!l(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function Agt(e,t,r){pft(),_Ze.call(this),this.a=Kw(dkt,[Me,awe],[599,219],0,[p$,XQ],2),this.c=new bS,this.g=e,this.f=t,this.d=r}function _gt(e){this.e=me(Rn,Xn,30,e.length,15,1),this.c=me(uu,Ad,30,e.length,16,1),this.b=me(uu,Ad,30,e.length,16,1),this.f=0}function Zgn(e){var t,r;for(e.j=me(Ki,Wo,30,e.p.c.length,15,1),r=new V(e.p);r.a>5,t&=31,s=e.d+r+(t==0?0:1),o=me(Rn,Xn,30,s,15,1),Q0n(o,e.a,r,t),u=new Ib(e.e,s,o),M3(u),u}function F_(e,t,r){var o,s,u;for(s=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o>=0?u=u.a[1]:(s=u,u=u.a[0])}return s}function F6(e,t,r){var o,s,u;for(s=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o<=0?u=u.a[0]:(s=u,u=u.a[1])}return s}function Igt(e,t,r){var o,s,u,f;for(s=l(Ut(e.b,r),172),o=0,f=new V(t.j);f.a0?(b.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function oc(){oc=Y,YL=new v8("PORTS",0),Am=new v8("PORT_LABELS",1),KL=new v8("NODE_LABELS",2),fv=new v8("MINIMUM_SIZE",3)}function pp(){pp=Y,B1=new l8(_d,0),t_e=new l8("NODES_AND_EDGES",1),Pte=new l8("PREFER_EDGES",2),jte=new l8("PREFER_NODES",3)}function o1n(e,t){return Ud(),Ud(),Yl(mg),(b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)?0:et?1:_b(isNaN(e),isNaN(t)))>0}function _1e(e,t){return Ud(),Ud(),Yl(mg),(b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)?0:et?1:_b(isNaN(e),isNaN(t)))<0}function Mgt(e,t){return Ud(),Ud(),Yl(mg),(b.Math.abs(e-t)<=mg||e==t||isNaN(e)&&isNaN(t)?0:et?1:_b(isNaN(e),isNaN(t)))<=0}function k1e(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function x1e(e,t,r,o,s,u){this.a=e,this.c=t,this.b=r,this.f=o,this.d=s,this.e=u,this.c>0&&this.b>0&&(this.g=iP(this.c,this.b,this.a))}function s1n(e,t){var r=e.a,o;t=String(t),r.hasOwnProperty(t)&&(o=r[t]);var s=(RK(),$Q)[typeof o],u=s?s(o):qge(typeof o);return u}function $_(e){var t,r,o;if(o=null,t=Gf in e.a,r=!t,r)throw K(new _f("Every element must have an id."));return o=eT(rp(e,Gf)),o}function x0(e){var t,r;for(r=dmt(e),t=null;e.c==2;)dr(e),t||(t=(fr(),fr(),new h3(2)),Zb(t,r),r=t),r.Hm(dmt(e));return r}function Xj(e,t){var r,o,s;return e.Zj(),o=t==null?0:Ir(t),s=(o&sr)%e.d.length,r=sme(e,s,o,t),r?(Rft(e,r),r.kd()):null}function Pgt(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+b.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function a1n(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw K(new jt("Input edge is not connected to the input port."))}function Mf(e,t){if(e.a<0)throw K(new Xo("Did not call before(...) or after(...) before calling add(...)."));return Tde(e,e.a,t),e}function Fgt(e,t){var r,o,s;if(e.c)$b(e.c,t);else for(r=t-Qu(e),s=new V(e.a);s.a=u?(bpn(e,t),-1):(gpn(e,t),1)}function l1n(e,t){var r,o;for(r=(Yt(t,e.length),e.charCodeAt(t)),o=t+1;ot.e?1:e.ft.f?1:Ir(e)-Ir(t)}function Bgt(e,t){var r;return be(t)===be(e)?!0:!se(t,24)||(r=l(t,24),r.gc()!=e.gc())?!1:e.Hc(r)}function Zj(e,t){return Mt(e),t==null?!1:mt(e,t)?!0:e.length==t.length&&mt(e.toLowerCase(),t.toLowerCase())}function by(e){var t,r;return va(e,-129)>0&&va(e,128)<0?(_ot(),t=On(e)+128,r=qEe[t],!r&&(r=qEe[t]=new Xue(e)),r):new Xue(e)}function WS(){WS=Y,vI=new o8(_d,0),L2e=new o8("INSIDE_PORT_SIDE_GROUPS",1),dee=new o8("GROUP_MODEL_ORDER",2),fee=new o8(OX,3)}function Qj(e){var t,r,o;if(o=e.Gh(),!o)for(t=0,r=e.Mh();r;r=r.Mh()){if(++t>mX)return r.Nh();if(o=r.Gh(),o||r==e)break}return o}function h1n(e){var t;return e.b||OQt(e,(t=Bnn(e.e,e.a),!t||!mt(WZ,Td((!t.b&&(t.b=new Xu((Tt(),Io),Hs,t)),t.b),"qualified")))),e.c}function p1n(e){var t,r;for(r=new V(e.a.b);r.a2e3&&(O_t=e,a$=b.setTimeout($Qt,10))),s$++==0?(zdn((Pce(),MEe)),!0):!1}function _1n(e,t,r){var o;(ekt?(Rgn(e),!0):tkt||rkt?(zA(),!0):nkt&&(zA(),!1))&&(o=new Bit(t),o.b=r,Rwn(e,o))}function dY(e,t){var r;r=!e.A.Gc((oc(),Am))||e.q==(qi(),fa),e.u.Gc((ku(),Cp))?r?oNn(e,t):eEt(e,t):e.u.Gc(K1)&&(r?xxn(e,t):gEt(e,t))}function qgt(e){var t;be(ye(e,(_n(),h2)))===be((fp(),aU))&&(Br(e)?(t=l(ye(Br(e),h2),348),Vn(e,h2,t)):Vn(e,h2,v4))}function k1n(e,t,r){var o,s;VY(e.e,t,r,(Ue(),Wt)),VY(e.i,t,r,Zt),e.a&&(s=l(j(t,(Ie(),mr)),12),o=l(j(r,mr),12),OW(e.g,s,o))}function Vgt(e,t,r){return new ql(b.Math.min(e.a,t.a)-r/2,b.Math.min(e.b,t.b)-r/2,b.Math.abs(e.a-t.a)+r,b.Math.abs(e.b-t.b)+r)}function x1n(e,t){var r,o;return r=na(e.a.c.p,t.a.c.p),r!=0?r:(o=na(e.a.d.i.p,t.a.d.i.p),o!=0?o:na(t.a.d.p,e.a.d.p))}function N1n(e,t,r){var o,s,u,f;return u=t.j,f=r.j,u!=f?u.g-f.g:(o=e.f[t.p],s=e.f[r.p],o==0&&s==0?0:o==0?-1:s==0?1:yr(o,s))}function Wgt(e){var t;this.d=new Pe,this.j=new to,this.g=new to,t=e.g.b,this.f=l(j(ji(t),(Be(),kc)),87),this.e=ue(ce(n7(t,Qy)))}function Kgt(e){this.d=new Pe,this.e=new d1,this.c=me(Rn,Xn,30,(Ue(),Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt])).length,15,1),this.b=e}function D1e(e,t,r){var o;switch(o=r[e.g][t],e.g){case 1:case 3:return new Le(0,o);case 2:case 4:return new Le(o,0);default:return null}}function C1n(e,t){var r;if(r=pE(e.o,t),r==null)throw K(new _f("Node did not exist in input."));return Ome(e,t),bJ(e,t),Sme(e,t,r),null}function Ygt(e,t,r){var o,s;s=l(KO(t.f),207);try{s.kf(e,r),ahe(t.f,s)}catch(u){throw u=ci(u),se(u,102)?(o=u,K(o)):K(u)}}function Jgt(e,t,r){var o,s,u,f,p,m;return o=null,p=C0e(G3(),t),u=null,p&&(s=null,m=x0e(p,r),f=null,m!=null&&(f=e.of(p,m)),s=f,u=s),o=u,o}function fY(e,t,r,o){var s;if(s=e.length,t>=s)return s;for(t=t>0?t:0;to&&ii(t,o,null),t}function Xgt(e,t){var r,o;for(o=e.a.length,t.lengtho&&ii(t,o,null),t}function I1n(e){var t;if(e==null)return null;if(t=vEn(Sa(e,!0)),t==null)throw K(new aq("Invalid hexBinary value: '"+e+"'"));return t}function e7(e,t,r){var o;t.a.length>0&&(je(e.b,new Qit(t.a,r)),o=t.a.length,0o&&(t.a+=Ynt(me(al,$f,30,-o,15,1))))}function Zgt(e,t,r){var o,s,u;if(!r[t.d])for(r[t.d]=!0,s=new V(wE(t));s.a=e.b>>1)for(o=e.c,r=e.b;r>t;--r)o=o.b;else for(o=e.a.a,r=0;r=0?e.Th(s):nJ(e,o)):r<0?nJ(e,o):l(o,69).uk().zk(e,e.ei(),r)}function n1t(e){var t,r,o;for(o=(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),e.o),r=o.c.Jc();r.e!=r.i.gc();)t=l(r.Wj(),45),t.kd();return i6(o)}function ze(e){var t;if(se(e.a,4)){if(t=N1e(e.a),t==null)throw K(new Xo(ZSt+e.b+"'. "+XSt+(ep(sM),sM.k)+zve));return t}else return e.a}function B1n(e){var t;if(e==null)return null;if(t=hNn(Sa(e,!0)),t==null)throw K(new aq("Invalid base64Binary value: '"+e+"'"));return t}function rn(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ci(r),se(r,99)?(e.Vj(),K(new ys)):K(r)}}function bY(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ci(r),se(r,99)?(e.Vj(),K(new ys)):K(r)}}function t7(e){var t,r,o,s;for(s=0,r=0,o=e.length;r=64&&t<128&&(s=Rf(s,fh(1,t-64)));return s}function n7(e,t){var r,o;return o=null,gr(e,(_n(),zT))&&(r=l(j(e,zT),105),r.nf(t)&&(o=r.mf(t))),o==null&&ji(e)&&(o=j(ji(e),t)),o}function U1n(e,t){var r;return r=l(j(e,(Be(),rs)),79),dV(t,Fxt)?r?ec(r):(r=new Du,Ae(e,rs,r)):r&&Ae(e,rs,null),r}function H1n(e,t){var r,o,s;for(s=new Ra(t.gc()),o=t.Jc();o.Ob();)r=l(o.Pb(),295),r.c==r.f?W_(e,r,r.c):syn(e,r)||Ot(s.c,r);return s}function r1t(e,t){var r,o,s;for(r=e.o,s=l(l(wr(e.r,t),24),85).Jc();s.Ob();)o=l(s.Pb(),116),o.e.a=qbn(o,r.a),o.e.b=r.b*ue(ce(o.b.mf(g$)))}function z1n(e,t){var r,o,s,u;return s=e.k,r=ue(ce(j(e,(Ie(),tw)))),u=t.k,o=ue(ce(j(t,tw))),u!=(Ht(),mi)?-1:s!=mi?1:r==o?0:rr.b)return!0}return!1}function s1t(e){var t;return t=new Zg,t.a+="n",e.k!=(Ht(),Xr)&&zn(zn((t.a+="(",t),bV(e.k).toLowerCase()),")"),zn((t.a+="_",t),U6(e)),t.a}function lC(){lC=Y,KAe=new gO(qye,0),Lte=new gO(jX,1),Mte=new gO("LINEAR_SEGMENTS",2),zI=new gO("BRANDES_KOEPF",3),GI=new gO(bSt,4)}function KS(){KS=Y,OB=new f8("P1_TREEIFICATION",0),XI=new f8("P2_NODE_ORDERING",1),ZI=new f8("P3_NODE_PLACEMENT",2),QI=new f8(ASt,3)}function YS(e,t,r,o){var s;return r>=0?e.Ph(t,r,o):(e.Mh()&&(o=(s=e.Ch(),s>=0?e.xh(o):e.Mh().Qh(e,-1-s,null,o))),e.zh(t,r,o))}function L1e(e,t){switch(t){case 7:!e.e&&(e.e=new Et(Cr,e,7,4)),vn(e.e);return;case 8:!e.d&&(e.d=new Et(Cr,e,8,5)),vn(e.d);return}y1e(e,t)}function Vn(e,t,r){return r==null?(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),Xj(e.o,t)):(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),G6(e.o,t,r)),e}function sa(e,t){var r;r=e.dd(t);try{return r.Pb()}catch(o){throw o=ci(o),se(o,113)?K(new Na("Can't get element "+t)):K(o)}}function a1t(e,t){var r;switch(r=l(Go(e.b,t),129).n,t.g){case 1:e.t>=0&&(r.d=e.t);break;case 3:e.t>=0&&(r.a=e.t)}e.C&&(r.b=e.C.b,r.c=e.C.c)}function J1n(e){var t;t=e.a;do t=l(Qt(new Ft(Gt(si(t).a.Jc(),new D))),17).c.i,t.k==(Ht(),gi)&&e.b.Ec(t);while(t.k==(Ht(),gi));e.b=ic(e.b)}function u1t(e,t){var r,o,s;for(s=e,o=new Ft(Gt(si(t).a.Jc(),new D));an(o);)r=l(Qt(o),17),r.c.i.c&&(s=b.Math.max(s,r.c.i.c.p));return s}function X1n(e,t){var r,o,s;for(s=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),s+=r.d.d+r.b.Kf().b+r.d.a,o.Ob()&&(s+=e.w);return s}function Z1n(e,t){var r,o,s;for(s=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),s+=r.d.b+r.b.Kf().a+r.d.c,o.Ob()&&(s+=e.w);return s}function c1t(e){var t,r,o,s;if(o=0,s=Ty(e),s.c.length==0)return 1;for(r=new V(s);r.a=0?e.Ih(f,r,!0):R0(e,u,r)):l(u,69).uk().wk(e,e.ei(),s,r,o)}function tbn(e,t,r,o){var s,u;u=t.nf((_n(),g2))?l(t.mf(g2),24):e.j,s=Wpn(u),s!=(Z7(),ZQ)&&(r&&!k1e(s)||Fbe(EEn(e,s,o),t))}function mY(e,t){return zi(e)?!!__t[t]:e.Qm?!!e.Qm[t]:Bw(e)?!!A_t[t]:$w(e)?!!T_t[t]:!1}function nbn(e){switch(e.g){case 1:return T0(),ZD;case 3:return T0(),XD;case 2:return T0(),eee;case 4:return T0(),QQ;default:return null}}function rbn(e,t,r){if(e.e)switch(e.b){case 1:pan(e.c,t,r);break;case 0:gan(e.c,t,r)}else vct(e.c,t,r);e.a[t.p][r.p]=e.c.i,e.a[r.p][t.p]=e.c.e}function d1t(e){var t,r;if(e==null)return null;for(r=me(Nh,Me,201,e.length,0,2),t=0;tu?1:0):0}function my(){my=Y,AB=new c8(_d,0),Ote=new c8("PORT_POSITION",1),a2=new c8("NODE_SIZE_WHERE_SPACE_PERMITS",2),s2=new c8("NODE_SIZE",3)}function mh(){mh=Y,rre=new r3("AUTOMATIC",0),ML=new r3(dT,1),PL=new r3(fT,2),eU=new r3("TOP",3),ZB=new r3(cwe,4),QB=new r3(hk,5)}function EE(e,t,r){var o,s;if(s=e.gc(),t>=s)throw K(new Vw(t,s));if(e.Qi()&&(o=e.bd(r),o>=0&&o!=t))throw K(new jt(HD));return e.Vi(t,r)}function pg(e,t){var r,o,s;if(s=W1t(e,t),s>=0)return s;if(e.ml()){for(o=0;o0||e==(tq(),RQ)||t==(nq(),OQ))throw K(new jt("Invalid range: "+yct(e,t)))}function P1e(e,t,r,o){Z_();var s,u;for(s=0,u=0;u0),(t&-t)==t)return po(t*$u(e,31)*4656612873077393e-25);do r=$u(e,31),o=r%t;while(r-o+(t-1)<0);return po(o)}function obn(e,t){var r,o,s;for(r=i0(new Eb,e),s=new V(t);s.a1&&(u=obn(e,t)),u}function lbn(e){var t,r,o;for(t=0,o=new V(e.c.a);o.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function _Y(e,t){if(e==null)throw K(new sS("null key in entry: null="+t));if(t==null)throw K(new sS("null value in entry: "+e+"=null"))}function y1t(e,t){var r;return r=Z(X(Ki,1),Wo,30,15,[zK(e.a[0],t),zK(e.a[1],t),zK(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function v1t(e,t){var r;return r=Z(X(Ki,1),Wo,30,15,[jj(e.a[0],t),jj(e.a[1],t),jj(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function B1e(e,t,r){SS(l(j(t,(Be(),Zr)),103))||(Jhe(e,t,gg(t,r)),Jhe(e,t,gg(t,(Ue(),dn))),Jhe(e,t,gg(t,Vt)),St(),_i(t.j,new rJe(e)))}function E1t(e){var t,r;for(e.c||ykn(e),r=new Du,t=new V(e.a),q(t);t.a0&&(Yt(0,t.length),t.charCodeAt(0)==43)?(Yt(1,t.length+1),t.substr(1)):t))}function xbn(e){var t;return e==null?null:new o1((t=Sa(e,!0),t.length>0&&(Yt(0,t.length),t.charCodeAt(0)==43)?(Yt(1,t.length+1),t.substr(1)):t))}function H1e(e,t,r,o,s,u,f,p){var m,y;o&&(m=o.a[0],m&&H1e(e,t,r,m,s,u,f,p),LY(e,r,o.d,s,u,f,p)&&t.Ec(o),y=o.a[1],y&&H1e(e,t,r,y,s,u,f,p))}function dC(e,t){var r,o,s,u;for(u=e.gc(),t.lengthu&&ii(t,u,null),t}function Nbn(e,t){var r,o;if(o=e.gc(),t==null){for(r=0;r0&&(m+=s),y[v]=f,f+=p*(m+o)}function Mbn(e){var t;for(t=0;t0?e.c:0),++s;e.b=o,e.d=u}function D1t(e,t){var r;return r=Z(X(Ki,1),Wo,30,15,[j1e(e,(Sd(),$s),t),j1e(e,ja,t),j1e(e,Bs,t)]),e.f&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function L1t(e){var t;gr(e,(Be(),rw))&&(t=l(j(e,rw),24),t.Gc((Sy(),ad))?(t.Kc(ad),t.Ec(ud)):t.Gc(ud)&&(t.Kc(ud),t.Ec(ad)))}function M1t(e){var t;gr(e,(Be(),rw))&&(t=l(j(e,rw),24),t.Gc((Sy(),ld))?(t.Kc(ld),t.Ec(Il)):t.Gc(Il)&&(t.Kc(Il),t.Ec(ld)))}function RY(e,t,r,o){var s,u,f,p;return e.a==null&&Mwn(e,t),f=t.b.j.c.length,u=r.d.p,p=o.d.p,s=p-1,s<0&&(s=f-1),u<=s?e.a[s]-e.a[u]:e.a[f-1]-e.a[u]+e.a[s]}function jbn(e){var t;for(t=0;t0&&(s.b+=t),s}function d7(e,t){var r,o,s;for(s=new to,o=e.Jc();o.Ob();)r=l(o.Pb(),37),Q_(r,0,s.b),s.b+=r.f.b+t,s.a=b.Math.max(s.a,r.f.a);return s.a>0&&(s.a+=t),s}function j1t(e,t){var r,o;if(t.length==0)return 0;for(r=aW(e.a,t[0],(Ue(),Wt)),r+=aW(e.a,t[t.length-1],Zt),o=0;o>16==6?e.Cb.Qh(e,5,Dd,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function zbn(e){c_();var t=e.e;if(t&&t.stack){var r=t.stack,o=t+` -`;return r.substring(0,o.length)==o&&(r=r.substring(o.length)),r.split(` -`)}return[]}function Gbn(e){var t;return t=(zft(),j_t),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function $1t(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=_ge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),Yft(e,t,o),e.a=t,e.b=0):Lw(e.a,r),e.c=o)}function qbn(e,t){var r;return r=e.b,r.nf((_n(),Hu))?r.$f()==(Ue(),Wt)?-r.Kf().a-ue(ce(r.mf(Hu))):t+ue(ce(r.mf(Hu))):r.$f()==(Ue(),Wt)?-r.Kf().a:t}function U6(e){var t;return e.b.c.length!=0&&l(He(e.b,0),70).a?l(He(e.b,0),70).a:(t=gW(e),t??""+(e.c?As(e.c.a,e,0):-1))}function f7(e){var t;return e.f.c.length!=0&&l(He(e.f,0),70).a?l(He(e.f,0),70).a:(t=gW(e),t??""+(e.i?As(e.i.j,e,0):-1))}function Vbn(e,t){var r,o;if(t<0||t>=e.gc())return null;for(r=t;r0?e.c:0),s=b.Math.max(s,t.d),++o;e.e=u,e.b=s}function Wbn(e){var t,r;if(!e.b)for(e.b=jP(l(e.f,127).jh().i),r=new en(l(e.f,127).jh());r.e!=r.i.gc();)t=l(rn(r),158),je(e.b,new oq(t));return e.b}function Kbn(e,t){var r,o,s;if(t.dc())return YA(),YA(),aM;for(r=new tit(e,t.gc()),s=new en(e);s.e!=s.i.gc();)o=rn(s),t.Gc(o)&&Tn(r,o);return r}function q1e(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),e.o):(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),i6(e.o)):i7(e,t,r,o)}function DY(e){var t,r;if(e.rb)for(t=0,r=e.rb.i;t>22),s+=o>>22,s<0)?!1:(e.l=r&Uu,e.m=o&Uu,e.h=s&yp,!0)}function LY(e,t,r,o,s,u,f){var p,m;return!(t.Re()&&(m=e.a.Le(r,o),m<0||!s&&m==0)||t.Se()&&(p=e.a.Le(r,u),p>0||!f&&p==0))}function Zbn(e,t){x_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return tY(t,xSe)-tY(e,xSe);case 4:return tY(e,kSe)-tY(t,kSe)}return 0}function Qbn(e){switch(e.g){case 0:return $ee;case 1:return Bee;case 2:return Uee;case 3:return Hee;case 4:return W$;case 5:return zee;default:return null}}function ns(e,t,r){var o,s;return o=(s=new QG,Wb(s,t),Da(s,r),Tn((!e.c&&(e.c=new xe(cw,e,12,10)),e.c),s),s),ug(o,0),uy(o,1),hg(o,!0),fg(o,!0),o}function JS(e,t){var r,o;if(t>=e.i)throw K(new tV(t,e.i));return++e.j,r=e.g[t],o=e.i-t-1,o>0&&ua(e.g,t+1,e.g,t,o),ii(e.g,--e.i,null),e.Oi(t,r),e.Li(),r}function B1t(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function emn(e){var t,r,o,s;for(St(),_i(e.c,e.a),s=new V(e.c);s.ar.a.c.length))throw K(new jt("index must be >= 0 and <= layer node count"));e.c&&Xa(e.c.a,e),e.c=r,r&&kb(r.a,t,e)}function K1t(e,t){this.c=new hn,this.a=e,this.b=t,this.d=l(j(e,(Ie(),t2)),317),be(j(e,(Be(),SAe)))===be((u6(),K$))?this.e=new yZe:this.e=new wZe}function MY(e,t){var r,o;r=e.dd(t);try{return o=r.Pb(),r.Qb(),o}catch(s){throw s=ci(s),se(s,113)?K(new Na("Can't remove element "+t)):K(s)}}function amn(e,t){var r,o,s;if(o=new z9,s=new Sge(o.q.getFullYear()-x1,o.q.getMonth(),o.q.getDate()),r=o_n(e,t,s),r==0||r0?t:0),++r;return new Le(o,s)}function lmn(e,t,r){var o,s;switch(s=e.o,o=e.d,t.g){case 1:return-o.d-r;case 3:return s.b+o.a+r;case 2:return s.a+o.c+r;case 4:return-o.b-r;default:return 0}}function Y1e(e,t,r,o){var s,u,f,p;for(Ii(t,l(o.Xb(0),26)),p=o.hd(1,o.gc()),u=l(r.Kb(t),22).Jc();u.Ob();)s=l(u.Pb(),17),f=s.c.i==t?s.d.i:s.c.i,Y1e(e,f,r,p)}function J1t(e){var t;return t=new hn,gr(e,(Ie(),rte))?l(j(e,rte),93):(ei(lr(new yt(null,new vt(e.j,16)),new U$e),new OYe(t)),Ae(e,rte,t),t)}function dmn(e,t,r){var o;r.Tg("AbsolutPlacer",1),(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i!=0&&(o=l(ye(t,(wh(),l4)),19),ya(o,o.i-zmt(e,o)),Hbt(e,o)),r.Ug()}function fC(e,t){var r,o;return o=null,e.nf((_n(),zT))&&(r=l(e.mf(zT),105),r.nf(t)&&(o=r.mf(t))),o==null&&e.Rf()&&(o=e.Rf().mf(t)),o==null&&(o=ze(t)),o}function J1e(e,t){var r,o;return e.Db>>16==6?e.Cb.Qh(e,6,Cr,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Qs(),pU)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function X1e(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,1,QL,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Qs(),r3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Z1e(e,t){var r,o;return e.Db>>16==9?e.Cb.Qh(e,9,En,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Qs(),o3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function X1t(e,t){var r,o;return e.Db>>16==5?e.Cb.Qh(e,9,vU,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Tt(),Og)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Z1t(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,6,Dd,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Tt(),Lg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Q1e(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,0,tM,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Tt(),Rg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function ebe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,12,En,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Qs(),n3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function fmn(e,t,r){var o,s,u;for(r<0&&(r=0),u=e.i,s=r;smX)return H_(e,o);if(o==e)return!0}}return!1}function pmn(e){switch(U8(),e.q.g){case 5:Hmt(e,(Ue(),Vt)),Hmt(e,dn);break;case 4:Y0t(e,(Ue(),Vt)),Y0t(e,dn);break;default:iEt(e,(Ue(),Vt)),iEt(e,dn)}}function gmn(e){switch(U8(),e.q.g){case 5:u0t(e,(Ue(),Zt)),u0t(e,Wt);break;case 4:r1t(e,(Ue(),Zt)),r1t(e,Wt);break;default:oEt(e,(Ue(),Zt)),oEt(e,Wt)}}function bmn(e){var t,r;t=l(j(e,(ed(),oxt)),15),t?(r=t.a,r==0?Ae(e,(h1(),y$),new eY):Ae(e,(h1(),y$),new qP(r))):Ae(e,(h1(),y$),new qP(1))}function mmn(e,t){var r;switch(r=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-r.o.a;case 3:return e.n.b-r.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function wmn(e,t){switch(e.g){case 0:return t==(rc(),Ap)?$$:B$;case 1:return t==(rc(),Ap)?$$:rL;case 2:return t==(rc(),Ap)?rL:B$;default:return rL}}function z6(e,t){var r,o,s;for(Xa(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),s=_Z,o=new V(e.a);o.a>16==11?e.Cb.Qh(e,10,En,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Qs(),i3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Q1t(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,11,Ol,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Tt(),Dg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function ebt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,12,Dl,t):(o=Do(l(Nt((r=l(qt(e,16),29),r||(Tt(),wv)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function tbt(e,t){var r,o,s,u,f;if(t)for(s=t.a.length,r=new Nb(s),f=(r.b-r.a)*r.c<0?(r1(),eb):new s1(r);f.Ob();)u=l(f.Pb(),15),o=d_(t,u.a),o&&z0t(e,o)}function _mn(){ule();var e,t;for(e3n((a1(),Bt)),GNn(Bt),DY(Bt),y3e=(Tt(),bf),t=new V(N3e);t.a>19,y=t.h>>19,m!=y?y-m:(s=e.h,p=t.h,s!=p?s-p:(o=e.m,f=t.m,o!=f?o-f:(r=e.l,u=t.l,r-u)))}function nbt(e,t,r){var o,s,u,f,p;for(s=e[r.g],p=new V(t.d);p.a0?e.b:0),++r;t.b=o,t.e=s}function rbt(e){var t,r,o;if(o=e.b,ket(e.i,o.length)){for(r=o.length*2,e.b=me(DQ,mD,309,r,0,1),e.c=me(DQ,mD,309,r,0,1),e.f=r-1,e.i=0,t=e.a;t;t=t.c)J6(e,t,t);++e.g}}function pC(e,t){return e.b.a=b.Math.min(e.b.a,t.c),e.b.b=b.Math.min(e.b.b,t.d),e.a.a=b.Math.max(e.a.a,t.c),e.a.b=b.Math.max(e.a.b,t.d),Ot(e.c,t),!0}function xmn(e,t,r){var o;o=t.c.i,o.k==(Ht(),gi)?(Ae(e,(Ie(),Cd),l(j(o,Cd),12)),Ae(e,Nl,l(j(o,Nl),12))):(Ae(e,(Ie(),Cd),t.c),Ae(e,Nl,r.d))}function Nmn(e,t,r){return r.Tg(TSt,1),O3(e.b),pc(e.b,(KS(),OB),OB),pc(e.b,XI,XI),pc(e.b,ZI,ZI),pc(e.b,QI,QI),e.a=MC(e.b,t),g0n(e,t,r.dh(1)),r.Ug(),t}function z_(e,t,r){X_();var o,s,u,f,p,m;return f=t/2,u=r/2,o=b.Math.abs(e.a),s=b.Math.abs(e.b),p=1,m=1,o>f&&(p=f/o),s>u&&(m=u/s),Qh(e,b.Math.min(p,m)),e}function Cmn(){z7();var e,t;try{if(t=l(fbe((n1(),Ll),Dk),2092),t)return t}catch(r){if(r=ci(r),se(r,102))e=r,Jfe((Cn(),e));else throw K(r)}return new LGe}function Imn(){z7();var e,t;try{if(t=l(fbe((n1(),Ll),_l),2019),t)return t}catch(r){if(r=ci(r),se(r,102))e=r,Jfe((Cn(),e));else throw K(r)}return new sqe}function Rmn(){edt();var e,t;try{if(t=l(fbe((n1(),Ll),um),2101),t)return t}catch(r){if(r=ci(r),se(r,102))e=r,Jfe((Cn(),e));else throw K(r)}return new Qqe}function Omn(e,t,r){var o,s;return s=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,s,t),r?r.lj(o):r=o),s!=t&&(t?r=ik(e,I7(e,t),r):r=ik(e,e.a,r)),r}function ibt(){z9.call(this),this.e=-1,this.a=!1,this.p=Zi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Zi}function Dmn(e,t){var r,o,s;if(o=e.b.d.d,e.a||(o+=e.b.d.a),s=t.b.d.d,t.a||(s+=t.b.d.a),r=yr(o,s),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function Lmn(e,t){var r,o,s;if(o=e.b.b.d,e.a||(o+=e.b.b.a),s=t.b.b.d,t.a||(s+=t.b.b.a),r=yr(o,s),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function Mmn(e,t){var r,o,s;if(o=e.b.g.d,e.a||(o+=e.b.g.a),s=t.b.g.d,t.a||(s+=t.b.g.a),r=yr(o,s),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function rbe(){rbe=Y,Txt=Ca(Fn(Fn(Fn(new ui,(Vi(),da),(Xi(),fSe)),da,hSe),$o,pSe),$o,tSe),_xt=Fn(Fn(new ui,da,K2e),da,nSe),Axt=Ca(new ui,$o,iSe)}function Pmn(e){var t,r,o,s,u;for(t=l(j(e,(Ie(),NI)),93),u=e.n,o=t.Bc().Jc();o.Ob();)r=l(o.Pb(),319),s=r.i,s.c+=u.a,s.d+=u.b,r.c?Mwt(r):Pwt(r);Ae(e,NI,null)}function jmn(e,t,r){var o,s;switch(s=e.b,o=s.d,t.g){case 1:return-o.d-r;case 2:return s.o.a+o.c+r;case 3:return s.o.b+o.a+r;case 4:return-o.b-r;default:return-1}}function obt(e,t){var r,o;for(o=new V(t);o.a0&&(f=(u&sr)%e.d.length,s=sme(e,f,u,t),s)?(p=s.ld(r),p):(o=e.ak(u,t,r),e.c.Ec(o),null)}function sbe(e,t){var r,o,s,u;switch(dg(e,t).Il()){case 3:case 2:{for(r=CE(t),s=0,u=r.i;s=0;o--)if(mt(e[o].d,t)||mt(e[o].d,r)){e.length>=o+1&&e.splice(0,o+1);break}return e}function q6(e,t){var r;return ps(e)&&ps(t)&&(r=e/t,vD0&&(e.b+=2,e.a+=o):(e.b+=1,e.a+=b.Math.min(o,s))}function fbt(e,t){var r,o;if(o=!1,zi(t)&&(o=!0,CS(e,new Zw(In(t)))),o||se(t,245)&&(o=!0,CS(e,(r=_V(l(t,245)),new y9(r)))),!o)throw K(new sq(aEe))}function e0n(e,t,r,o){var s,u,f;return s=new ap(e.e,1,10,(f=t.c,se(f,89)?l(f,29):(Tt(),Ml)),(u=r.c,se(u,89)?l(u,29):(Tt(),Ml)),pg(e,t),!1),o?o.lj(s):o=s,o}function cbe(e){var t,r;switch(l(j(ji(e),(Be(),pAe)),425).g){case 0:return t=e.n,r=e.o,new Le(t.a+r.a/2,t.b+r.b/2);case 1:return new Eo(e.n);default:return null}}function V6(){V6=Y,Y$=new t3(_d,0),GSe=new t3("LEFTUP",1),VSe=new t3("RIGHTUP",2),zSe=new t3("LEFTDOWN",3),qSe=new t3("RIGHTDOWN",4),Gee=new t3("BALANCED",5)}function t0n(e,t,r){var o,s,u;if(o=yr(e.a[t.p],e.a[r.p]),o==0){if(s=l(j(t,(Ie(),CT)),16),u=l(j(r,CT),16),s.Gc(r))return-1;if(u.Gc(t))return 1}return o}function n0n(e){switch(e.g){case 1:return new aze;case 2:return new uze;case 3:return new sze;case 0:return null;default:throw K(new jt(OZ+(e.f!=null?e.f:""+e.g)))}}function lbe(e,t,r){switch(t){case 1:!e.n&&(e.n=new xe(Is,e,1,7)),vn(e.n),!e.n&&(e.n=new xe(Is,e,1,7)),ti(e.n,l(r,18));return;case 2:y_(e,In(r));return}Ige(e,t,r)}function dbe(e,t,r){switch(t){case 3:$b(e,ue(ce(r)));return;case 4:Bb(e,ue(ce(r)));return;case 5:ya(e,ue(ce(r)));return;case 6:gu(e,ue(ce(r)));return}lbe(e,t,r)}function p7(e,t,r){var o,s,u;u=(o=new QG,o),s=Zd(u,t,null),s&&s.mj(),Da(u,r),Tn((!e.c&&(e.c=new xe(cw,e,12,10)),e.c),u),ug(u,0),uy(u,1),hg(u,!0),fg(u,!0)}function fbe(e,t){var r,o,s;return r=XN(e.i,t),se(r,244)?(s=l(r,244),s.wi()==null,s.ti()):se(r,496)?(o=l(r,2016),s=o.b,s):null}function r0n(e,t,r,o){var s,u;return xn(t),xn(r),u=l(y3(e.d,t),15),Bdt(!!u,"Row %s not in %s",t,e.e),s=l(y3(e.b,r),15),Bdt(!!s,"Column %s not in %s",r,e.c),$ht(e,u.a,s.a,o)}function i0n(e){var t,r,o,s,u,f;for(r=null,s=e,u=0,f=s.length;u1||p==-1?(u=l(m,16),s.Wb(Pgn(e,u))):s.Wb(vJ(e,l(m,57)))))}function d0n(e,t,r,o){eet();var s=CQ;function u(){for(var f=0;f0)return!1;return!0}function p0n(e){switch(l(j(e.b,(Be(),aAe)),382).g){case 1:ei(Ia(gs(new yt(null,new vt(e.d,16)),new MBe),new PBe),new jBe);break;case 2:YSn(e);break;case 0:$yn(e)}}function g0n(e,t,r){var o,s,u;for(o=r,!o&&(o=new iS),o.Tg("Layout",e.a.c.length),u=new V(e.a);u.aNZ)return r;s>-1e-6&&++r}return r}function b7(e,t,r){if(se(t,273))return VEn(e,l(t,74),r);if(se(t,278))return ymn(e,l(t,278),r);throw K(new jt(Lk+Qd(new Ds(Z(X(Ci,1),Rt,1,5,[t,r])))))}function m7(e,t,r){if(se(t,273))return WEn(e,l(t,74),r);if(se(t,278))return vmn(e,l(t,278),r);throw K(new jt(Lk+Qd(new Ds(Z(X(Ci,1),Rt,1,5,[t,r])))))}function pbe(e,t){var r;t!=e.b?(r=null,e.b&&(r=IP(e.b,e,-4,r)),t&&(r=YS(t,e,-4,r)),r=Mpt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function bbt(e,t){var r;t!=e.f?(r=null,e.f&&(r=IP(e.f,e,-1,r)),t&&(r=YS(t,e,-1,r)),r=Ppt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,t,t))}function v0n(e,t,r,o){var s,u,f,p;return Yu(e.e)&&(s=t.Jk(),p=t.kd(),u=r.kd(),f=c1(e,1,s,p,u,s.Hk()?tk(e,s,u,se(s,104)&&(l(s,20).Bb&xo)!=0):-1,!0),o?o.lj(f):o=f),o}function mbt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Jp,t=r.Jc();t.Ob();)zo(o,(Er(),In(t.Pb()))),o.a+=" ";return rV(o,o.a.length-1)}function wbt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Jp,t=r.Jc();t.Ob();)zo(o,(Er(),In(t.Pb()))),o.a+=" ";return rV(o,o.a.length-1)}function E0n(e,t){var r,o,s,u,f;for(u=new V(t.a);u.a0&&uo(e,e.length-1)==33)try{return t=j0t(yl(e,0,e.length-1)),t.e==null}catch(r){if(r=ci(r),!se(r,33))throw K(r)}return!1}function A0n(e,t,r){var o,s,u;switch(o=ji(t),s=Hj(o),u=new aa,Ts(u,t),r.g){case 1:Ni(u,L6(qS(s)));break;case 2:Ni(u,qS(s))}return Ae(u,(Be(),Yy),ce(j(e,Yy))),u}function gbe(e){var t,r;return t=l(Qt(new Ft(Gt(si(e.a).a.Jc(),new D))),17),r=l(Qt(new Ft(Gt(Rr(e.a).a.Jc(),new D))),17),Ke(We(j(t,(Ie(),Tg))))||Ke(We(j(r,Tg)))}function wy(){wy=Y,iL=new hO("ONE_SIDE",0),z$=new hO("TWO_SIDES_CORNER",1),G$=new hO("TWO_SIDES_OPPOSING",2),H$=new hO("THREE_SIDES",3),U$=new hO("FOUR_SIDES",4)}function Ebt(e,t){var r,o,s,u;for(u=new Pe,s=0,o=t.Jc();o.Ob();){for(r=Re(l(o.Pb(),15).a+s);r.a=e.f)break;Ot(u.c,r)}return u}function _0n(e){var t,r;for(r=new V(e.e.b);r.a0&&H1t(this,this.c-1,(Ue(),Zt)),this.c0&&e[0].length>0&&(this.c=Ke(We(j(ji(e[0][0]),(Ie(),uTe))))),this.a=me(JIt,Me,2096,e.length,0,2),this.b=me(XIt,Me,2097,e.length,0,2),this.d=new _pt}function C0n(e){return e.c.length==0?!1:(at(0,e.c.length),l(e.c[0],17)).c.i.k==(Ht(),gi)?!0:fE(Ia(new yt(null,new vt(e,16)),new yUe),new bUe)}function Abt(e,t){var r,o,s,u,f,p,m;for(p=Ty(t),u=t.f,m=t.g,f=b.Math.sqrt(u*u+m*m),s=0,o=new V(p);o.a=0?(r=q6(e,tF),o=aY(e,tF)):(t=Cb(e,1),r=q6(t,5e8),o=aY(t,5e8),o=To(fh(o,1),Gi(e,1))),Rf(fh(o,32),Gi(r,Po))}function H0n(e,t,r,o){var s,u,f,p,m;for(s=null,u=0,p=new V(t);p.a1;t>>=1)t&1&&(o=dE(o,r)),r.d==1?r=dE(r,r):r=new Ggt(Tyt(r.a,r.d,me(Rn,Xn,30,r.d<<1,15,1)));return o=dE(o,r),o}function Abe(){Abe=Y;var e,t,r,o;for(s2e=me(Ki,Wo,30,25,15,1),a2e=me(Ki,Wo,30,33,15,1),o=152587890625e-16,t=32;t>=0;t--)a2e[t]=o,o*=.5;for(r=1,e=24;e>=0;e--)s2e[e]=r,r*=.5}function W0n(e){var t,r;if(Ke(We(ye(e,(Be(),Wy))))){for(r=new Ft(Gt(gp(e).a.Jc(),new D));an(r);)if(t=l(Qt(r),74),I0(t)&&Ke(We(ye(t,pm))))return!0}return!1}function Nbt(e){var t,r,o,s;for(t=new Sr,r=new Sr,s=An(e,0);s.b!=s.d.c;)o=l(Sn(s),12),o.e.c.length==0?Wr(r,o,r.c.b,r.c):Wr(t,o,t.c.b,t.c);return ic(t).Fc(r),t}function Cbt(e,t){var r,o,s;pi(e.f,t)&&(t.b=e,o=t.c,As(e.j,o,0)!=-1||je(e.j,o),s=t.d,As(e.j,s,0)!=-1||je(e.j,s),r=t.a.b,r.c.length!=0&&(!e.i&&(e.i=new Wgt(e)),ghn(e.i,r)))}function K0n(e){var t,r,o,s,u;return r=e.c.d,o=r.j,s=e.d.d,u=s.j,o==u?r.p=0&&mt(e.substr(t,3),"GMT")||t>=0&&mt(e.substr(t,3),"UTC"))&&(r[0]=t+3),a0e(e,r,o)}function J0n(e,t){var r,o,s,u,f;for(u=e.g.a,f=e.g.b,o=new V(e.d);o.ar;u--)e[u]|=t[u-r-1]>>>f,e[u-1]=t[u-r-1]<0&&ua(e.g,t,e.g,t+o,p),f=r.Jc(),e.i+=o,s=0;s>4&15,u=e[o]&15,f[s++]=s3e[r],f[s++]=s3e[u];return Lf(f,0,f.length)}function Qa(e){var t,r;return e>=xo?(t=ED+(e-xo>>10&1023)&Ei,r=56320+(e-xo&1023)&Ei,String.fromCharCode(t)+(""+String.fromCharCode(r))):String.fromCharCode(e&Ei)}function swn(e,t){Gw();var r,o,s,u;return s=l(l(wr(e.r,t),24),85),s.gc()>=2?(o=l(s.Jc().Pb(),116),r=e.u.Gc((ku(),A4)),u=e.u.Gc(VT),!o.a&&!r&&(s.gc()==2||u)):!1}function Dbt(e,t,r,o,s){var u,f,p;for(u=xwt(e,t,r,o,s),p=!1;!u;)x7(e,s,!0),p=!0,u=xwt(e,t,r,o,s);p&&x7(e,s,!1),f=IK(s),f.c.length!=0&&(e.d&&e.d.Fg(f),Dbt(e,s,r,o,f))}function v7(){v7=Y,Tne=new g8("NODE_SIZE_REORDERER",0),vne=new g8("INTERACTIVE_NODE_REORDERER",1),Sne=new g8("MIN_SIZE_PRE_PROCESSOR",2),Ene=new g8("MIN_SIZE_POST_PROCESSOR",3)}function E7(){E7=Y,Ere=new o3(_d,0),xNe=new o3("DIRECTED",1),CNe=new o3("UNDIRECTED",2),_Ne=new o3("ASSOCIATION",3),NNe=new o3("GENERALIZATION",4),kNe=new o3("DEPENDENCY",5)}function awn(e,t){var r;if(!Gd(e))throw K(new Xo(STt));switch(r=Gd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-r.g;case 3:return e.j-r.f;case 4:return-(e.i+e.g)}return 0}function uwn(e,t,r){var o,s,u;return o=t.Jk(),u=t.kd(),s=o.Hk()?c1(e,4,o,u,null,tk(e,o,u,se(o,104)&&(l(o,20).Bb&xo)!=0),!0):c1(e,o.rk()?2:1,o,u,o.gk(),-1,!0),r?r.lj(s):r=s,r}function q_(e,t){var r,o;for(Mt(t),o=e.b.c.length,je(e.b,t);o>0;){if(r=o,o=(o-1)/2|0,e.a.Le(He(e.b,o),t)<=0)return tc(e.b,r,t),!0;tc(e.b,r,He(e.b,o))}return tc(e.b,o,t),!0}function xbe(e,t,r,o){var s,u;if(s=0,r)s=jj(e.a[r.g][t.g],o);else for(u=0;u=p)}function Lbt(e){switch(e.g){case 0:return new Aze;case 1:return new _ze;default:throw K(new jt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function Nbe(e,t,r,o){var s;if(s=!1,zi(o)&&(s=!0,QA(t,r,In(o))),s||$w(o)&&(s=!0,Nbe(e,t,r,o)),s||se(o,245)&&(s=!0,Db(t,r,l(o,245))),!s)throw K(new sq(aEe))}function lwn(e,t){var r,o,s;if(r=t.ni(e.a),r&&(s=Td((!r.b&&(r.b=new Xu((Tt(),Io),Hs,r)),r.b),Al),s!=null)){for(o=1;o<(mu(),I3e).length;++o)if(mt(I3e[o],s))return o}return 0}function dwn(e,t){var r,o,s;if(r=t.ni(e.a),r&&(s=Td((!r.b&&(r.b=new Xu((Tt(),Io),Hs,r)),r.b),Al),s!=null)){for(o=1;o<(mu(),R3e).length;++o)if(mt(R3e[o],s))return o}return 0}function Mbt(e,t){var r,o,s,u;if(Mt(t),u=e.a.gc(),u0?1:0;u.a[s]!=r;)u=u.a[s],s=e.a.Le(r.d,u.d)>0?1:0;u.a[s]=o,o.b=r.b,o.a[0]=r.a[0],o.a[1]=r.a[1],r.a[0]=null,r.a[1]=null}function pwn(e){var t,r,o,s;for(t=new Pe,r=me(uu,Ad,30,e.a.c.length,16,1),Vfe(r,r.length),s=new V(e.a);s.a0&&wyt((at(0,r.c.length),l(r.c[0],26)),e),r.c.length>1&&wyt(l(He(r,r.c.length-1),26),e),t.Ug()}function bwn(e){ku();var t,r;return t=Ar(Cp,Z(X(uU,1),Ce,282,0,[K1])),!(E6(OP(t,e))>1||(r=Ar(A4,Z(X(uU,1),Ce,282,0,[T4,VT])),E6(OP(r,e))>1))}function Ibe(e,t){var r;r=ma((n1(),Ll),e),se(r,496)?Qo(Ll,e,new nnt(this,t)):Qo(Ll,e,this),KY(this,t),t==(FA(),w3e)?(this.wb=l(this,2017),l(t,2019)):this.wb=(a1(),Bt)}function mwn(e){var t,r,o;if(e==null)return null;for(t=null,r=0;ru}function $bt(e,t){var r,o,s;if(Obe(e,t))return!0;for(o=new V(t);o.a=s||t<0)throw K(new Na(cQ+t+sm+s));if(r>=s||r<0)throw K(new Na(lQ+r+sm+s));return t!=r?o=(u=e.Aj(r),e.oj(t,u),u):o=e.vj(r),o}function Ubt(e){var t,r,o;if(o=e,e)for(t=0,r=e.Bh();r;r=r.Bh()){if(++t>mX)return Ubt(r);if(o=r,r==e)throw K(new Xo("There is a cycle in the containment hierarchy of "+e))}return o}function Qd(e){var t,r,o;for(o=new zb(Ma,"[","]"),r=e.Jc();r.Ob();)t=r.Pb(),sp(o,be(t)===be(e)?"(this Collection)":t==null?tu:bs(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function Obe(e,t){var r,o;if(o=!1,t.gc()<2)return!1;for(r=0;r0)for(o=0;o1&&(e.j.b+=e.e)):(e.j.a+=r.a,e.j.b=b.Math.max(e.j.b,r.b),e.d.c.length>1&&(e.j.a+=e.e))}function S1(){S1=Y,dNt=Z(X(Co,1),ea,64,0,[(Ue(),Vt),Zt,dn]),lNt=Z(X(Co,1),ea,64,0,[Zt,dn,Wt]),fNt=Z(X(Co,1),ea,64,0,[dn,Wt,Vt]),hNt=Z(X(Co,1),ea,64,0,[Wt,Vt,Zt])}function Gbt(e){var t,r,o,s,u,f,p,m,y;for(this.a=d1t(e),this.b=new Pe,r=e,o=0,s=r.length;ovV(e.d).c?(e.i+=e.g.c,uY(e.d)):vV(e.d).c>vV(e.g).c?(e.e+=e.d.c,uY(e.g)):(e.i+=Rot(e.g),e.e+=Rot(e.d),uY(e.g),uY(e.d))}function kwn(e,t,r){var o,s,u,f;for(u=t.q,f=t.r,new Lb((vd(),U1),t,u,1),new Lb(U1,u,f,1),s=new V(r);s.ap&&(m=p/o),s>u&&(y=u/s),f=b.Math.min(m,y),e.a+=f*(t.a-e.a),e.b+=f*(t.b-e.b)}function Iwn(e,t,r,o,s){var u,f;for(f=!1,u=l(He(r.b,0),19);jAn(e,t,u,o,s)&&(f=!0,b0n(r,u),r.b.c.length!=0);)u=l(He(r.b,0),19);return r.b.c.length==0&&z6(r.j,r),f&&l7(t.q),f}function Lbe(e,t,r,o){var s,u;return r==0?(!e.o&&(e.o=new pu((Qs(),Dh),Ig,e,0)),z8(e.o,t,o)):(u=l(Nt((s=l(qt(e,16),29),s||e.fi()),r),69),u.uk().yk(e,Ha(e),r-ln(e.fi()),t,o))}function KY(e,t){var r;t!=e.sb?(r=null,e.sb&&(r=l(e.sb,52).Qh(e,1,x4,r)),t&&(r=l(t,52).Oh(e,1,x4,r)),r=Wge(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,4,t,t))}function Kbt(e,t){var r,o,s,u;if(t)s=lp(t,"x"),r=new pXe(e),w0(r.a,(Mt(s),s)),u=lp(t,"y"),o=new gXe(e),y0(o.a,(Mt(u),u));else throw K(new _f("All edge sections need an end point."))}function Ybt(e,t){var r,o,s,u;if(t)s=lp(t,"x"),r=new dXe(e),v0(r.a,(Mt(s),s)),u=lp(t,"y"),o=new fXe(e),E0(o.a,(Mt(u),u));else throw K(new _f("All edge sections need a start point."))}function Rwn(e,t){var r,o,s,u,f,p,m;for(o=ppt(e),u=0,p=o.length;u>22-t,s=e.h<>22-t):t<44?(r=0,o=e.l<>44-t):(r=0,o=0,s=e.l<=wg?"error":o>=900?"warn":o>=800?"info":"log"),_st(r,e.a),e.b&&Mme(t,r,e.b,"Exception: ",!0))}function Qbt(e,t){var r,o,s,u,f;for(s=t==1?cee:uee,o=s.a.ec().Jc();o.Ob();)for(r=l(o.Pb(),87),f=l(wr(e.f.c,r),24).Jc();f.Ob();)u=l(f.Pb(),49),je(e.b.b,l(u.b,84)),je(e.b.a,l(u.b,84).d)}function emt(e,t,r,o){var s,u,f,p,m;switch(m=e.b,u=t.d,f=u.j,p=D1e(f,m.d[f.g],r),s=br(So(u.n),u.a),u.j.g){case 3:case 1:p.a+=s.a;break;case 2:p.b+=s.b;break;case 4:p.b+=s.b}Wr(o,p,o.c.b,o.c)}function Mwn(e,t){var r,o,s,u;for(u=t.b.j,e.a=me(Rn,Xn,30,u.c.length,15,1),s=0,o=0;oe)throw K(new jt("k must be smaller than n"));return t==0||t==e?1:e==0?0:abe(e)/(abe(t)*abe(e-t))}function Mbe(e,t){var r,o,s,u;for(r=new iV(e);r.g==null&&!r.c?khe(r):r.g==null||r.i!=0&&l(r.g[r.i-1],51).Ob();)if(u=l(N7(r),57),se(u,176))for(o=l(u,176),s=0;s>4],t[r*2+1]=_U[u&15];return Lf(t,0,t.length)}function Kwn(e){var t,r,o;switch(o=e.c.length,o){case 0:return lW(),I_t;case 1:return t=l(jmt(new V(e)),45),dnn(t.jd(),t.kd());default:return r=l(Yd(e,me(cm,Q7,45,e.c.length,0,1)),178),new cle(r)}}function gg(e,t){switch(t.g){case 1:return TS(e.j,(bu(),B2e));case 2:return TS(e.j,(bu(),F2e));case 3:return TS(e.j,(bu(),H2e));case 4:return TS(e.j,(bu(),z2e));default:return St(),St(),No}}function Ywn(e,t){var r,o,s;r=don(t,e.e),o=l(Ut(e.g.f,r),15).a,s=e.a.c.length-1,e.a.c.length!=0&&l(He(e.a,s),296).c==o?(++l(He(e.a,s),296).a,++l(He(e.a,s),296).b):je(e.a,new Drt(o))}function T1(){T1=Y,jRt=(_n(),HT),FRt=Od,DRt=Sm,LRt=b2,MRt=G1,ORt=g2,lke=m4,PRt=uv,pne=(Zme(),ERt),gne=SRt,fke=kRt,bne=CRt,hke=xRt,pke=NRt,dke=TRt,BB=ARt,UB=_Rt,CL=IRt,gke=RRt,cke=vRt}function rmt(e,t){var r,o,s,u,f;if(e.e<=t||Jun(e,e.g,t))return e.g;for(u=e.r,o=e.g,f=e.r,s=(u-o)/2+o;o+11&&(e.e.b+=e.a)):(e.e.a+=r.a,e.e.b=b.Math.max(e.e.b,r.b),e.d.c.length>1&&(e.e.a+=e.a))}function Zwn(e){var t,r,o,s;switch(s=e.i,t=s.b,o=s.j,r=s.g,s.a.g){case 0:r.a=(e.g.b.o.a-o.a)/2;break;case 1:r.a=t.d.n.a+t.d.a.a;break;case 2:r.a=t.d.n.a+t.d.a.a-o.a;break;case 3:r.b=t.d.n.b+t.d.a.b}}function Qwn(e,t,r){var o,s,u;for(s=new Ft(Gt(Df(r).a.Jc(),new D));an(s);)o=l(Qt(s),17),!lo(o)&&!(!lo(o)&&o.c.i.c==o.d.i.c)&&(u=Z0t(e,o,r,new TZe),u.c.length>1&&Ot(t.c,u))}function smt(e,t,r,o,s){if(oo&&(e.a=o),e.bs&&(e.b=s),e}function eyn(e){if(se(e,144))return _2n(l(e,144));if(se(e,236))return Cgn(l(e,236));if(se(e,21))return Dwn(l(e,21));throw K(new jt(Lk+Qd(new Ds(Z(X(Ci,1),Rt,1,5,[e])))))}function tyn(e,t,r,o,s){var u,f,p;for(u=!0,f=0;f>>s|r[f+o+1]<>>s,++f}return u}function $be(e,t,r,o){var s,u,f;if(t.k==(Ht(),gi)){for(u=new Ft(Gt(si(t).a.Jc(),new D));an(u);)if(s=l(Qt(u),17),f=s.c.i.k,f==gi&&e.c.a[s.c.i.c.p]==o&&e.c.a[t.c.p]==r)return!0}return!1}function nyn(e,t,r){var o;r.Tg("YPlacer",1),e.a=ue(ce(ye(t,(XS(),_xe)))),e.b=ue(ce(ye(t,(_n(),Od)))),(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i!=0&&(o=l(ye(t,(wh(),l4)),19),uwt(e,o,0)),r.Ug()}function ryn(e,t){var r,o,s,u;return t&=63,r=e.h&yp,t<22?(u=r>>>t,s=e.m>>t|r<<22-t,o=e.l>>t|e.m<<22-t):t<44?(u=0,s=r>>>t-22,o=e.m>>t-22|e.h<<44-t):(u=0,s=0,o=r>>>t-44),Ua(o&Uu,s&Uu,u&yp)}function amt(e,t,r,o){var s;this.b=o,this.e=e==(Vb(),KI),s=t[r],this.d=Kw(uu,[Me,Ad],[172,30],16,[s.length,s.length],2),this.a=Kw(Rn,[Me,Xn],[54,30],15,[s.length,s.length],2),this.c=new vbe(t,r)}function iyn(e){var t,r,o;for(e.k=new Ohe((Ue(),Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt])).length,e.j.c.length),o=new V(e.j);o.a=r)return W_(e,t,o.p),!0;return!1}function _E(e,t,r,o){var s,u,f,p,m,y;for(f=r.length,u=0,s=-1,y=Ydt((Yt(t,e.length+1),e.substr(t)),(xV(),i2e)),p=0;pu&&nsn(y,Ydt(r[p],i2e))&&(s=p,u=m);return s>=0&&(o[0]=t+u),s}function ayn(e,t,r){var o,s,u,f,p,m,y,v;u=e.d.p,p=u.e,m=u.r,e.g=new PO(m),f=e.d.o.c.p,o=f>0?p[f-1]:me(Nh,yg,9,0,0,1),s=p[f],y=fr?Ybe(e,r,"start index"):t<0||t>r?Ybe(t,r,"end index"):kC("end index (%s) must not be less than start index (%s)",Z(X(Ci,1),Rt,1,5,[Re(t),Re(e)]))}function fmt(e,t){var r,o,s,u;for(o=0,s=e.length;o0&&hmt(e,u,r));t.p=0}function dyn(e){var t,r,o,s;for(t=Rb(zn(new fc("Predicates."),"and"),40),r=!0,s=new RN(e);s.b=0?e.hi(s):Qbe(e,o);else throw K(new jt(R1+o.ve()+tI));else throw K(new jt(DTt+t+LTt));else Jc(e,r,o)}function Bbe(e){var t,r;if(r=null,t=!1,se(e,213)&&(t=!0,r=l(e,213).a),t||se(e,266)&&(t=!0,r=""+l(e,266).a),t||se(e,482)&&(t=!0,r=""+l(e,482).a),!t)throw K(new sq(aEe));return r}function Ube(e,t,r){var o,s,u,f,p,m;for(m=za(e.e.Ah(),t),o=0,p=e.i,s=l(e.g,123),f=0;f=e.d.b.c.length&&(t=new ra(e.d),t.p=o.p-1,je(e.d.b,t),r=new ra(e.d),r.p=o.p,je(e.d.b,r)),Ii(o,l(He(e.d.b,o.p),26))}function pyn(e){var t,r,o,s;for(r=new Sr,bo(r,e.o),o=new R9;r.b!=0;)t=l(r.b==0?null:(un(r.b!=0),Vc(r,r.a.a)),504),s=dEt(e,t,!0),s&&je(o.a,t);for(;o.a.c.length!=0;)t=l(jge(o),504),dEt(e,t,!1)}function Ze(e){var t;this.c=new Sr,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=l(md(cf),10),new Hc(t,l(Gl(t,t.length),10),0)),this.g=e.f}function A1(){A1=Y,Cxe=new hS(HC,0),Ai=new hS("BOOLEAN",1),wo=new hS("INT",2),BT=new hS("STRING",3),Qi=new hS("DOUBLE",4),$r=new hS("ENUM",5),$T=new hS("ENUMSET",6),lf=new hS("OBJECT",7)}function bC(e,t){var r,o,s,u,f;o=b.Math.min(e.c,t.c),u=b.Math.min(e.d,t.d),s=b.Math.max(e.c+e.b,t.c+t.b),f=b.Math.max(e.d+e.a,t.d+t.a),s=(s/2|0))for(this.e=o?o.c:null,this.d=s;r++0;)Ope(this);this.b=t,this.a=null}function myn(e,t){var r,o;t.a?z2n(e,t):(r=l(wq(e.b,t.b),60),r&&r==e.a[t.b.f]&&r.a&&r.a!=t.b.a&&r.c.Ec(t.b),o=l(mq(e.b,t.b),60),o&&e.a[o.f]==t.b&&o.a&&o.a!=t.b.a&&t.b.c.Ec(o),fV(e.b,t.b))}function vmt(e,t){var r,o;if(r=l(Go(e.b,t),129),l(l(wr(e.r,t),24),85).dc()){r.n.b=0,r.n.c=0;return}r.n.b=e.C.b,r.n.c=e.C.c,e.A.Gc((oc(),Am))&&Zwt(e,t),o=Z1n(e,t),lJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.a=o}function Emt(e,t){var r,o;if(r=l(Go(e.b,t),129),l(l(wr(e.r,t),24),85).dc()){r.n.d=0,r.n.a=0;return}r.n.d=e.C.d,r.n.a=e.C.a,e.A.Gc((oc(),Am))&&Qwt(e,t),o=X1n(e,t),lJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.b=o}function wyn(e,t){var r,o,s,u;for(u=new Pe,o=new V(t);o.ao&&(Yt(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return o>0||tr.a&&(o.Gc((Jb(),f4))?s=(t.a-r.a)/2:o.Gc(h4)&&(s=t.a-r.a)),t.b>r.b&&(o.Gc((Jb(),g4))?u=(t.b-r.b)/2:o.Gc(p4)&&(u=t.b-r.b)),Cbe(e,s,u)}function kmt(e,t,r,o,s,u,f,p,m,y,v,T,N){se(e.Cb,89)&&Ey(Mu(l(e.Cb,89)),4),Da(e,r),e.f=f,L_(e,p),P_(e,m),D_(e,y),M_(e,v),hg(e,T),j_(e,N),fg(e,!0),ug(e,s),e.Xk(u),Wb(e,t),o!=null&&(e.i=null,Ej(e,o))}function Ybe(e,t,r){if(e<0)return kC(jEt,Z(X(Ci,1),Rt,1,5,[r,Re(e)]));if(t<0)throw K(new jt(FEt+t));return kC("%s (%s) must not be greater than size (%s)",Z(X(Ci,1),Rt,1,5,[r,Re(e),Re(t)]))}function Jbe(e,t,r,o,s,u){var f,p,m,y;if(f=o-r,f<7){Egn(t,r,o,u);return}if(m=r+s,p=o+s,y=m+(p-m>>1),Jbe(t,e,m,y,-s,u),Jbe(t,e,y,p,-s,u),u.Le(e[y-1],e[y])<=0){for(;r=0?e.$h(u,r):Nme(e,s,r);else throw K(new jt(R1+s.ve()+tI));else throw K(new jt(DTt+t+LTt));else Xc(e,o,s,r)}function xmt(e){var t,r;if(e.f){for(;e.n>0;){if(t=l(e.k.Xb(e.n-1),76),r=t.Jk(),se(r,104)&&l(r,20).Bb&Ws&&(!e.e||r.nk()!=Tx||r.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Nmt(e){var t,r,o,s;if(r=l(e,52).Yh(),r)try{if(o=null,t=K_((n1(),Ll),Syt(_gn(r))),t&&(s=t.Zh(),s&&(o=s.Dl(iQt(r.e)))),o&&o!=e)return Nmt(o)}catch(u){if(u=ci(u),!se(u,63))throw K(u)}return e}function Lyn(e,t,r){var o,s,u;r.Tg("Remove overlaps",1),r.bh(t,ive),o=l(ye(t,(aE(),l2)),19),e.f=o,e.a=wY(l(ye(t,(T1(),CL)),304)),s=ce(ye(t,(_n(),Od))),Wue(e,(Mt(s),s)),u=Ty(o),Wvt(e,t,u,r),r.bh(t,DF)}function Myn(e){var t,r,o;if(Ke(We(ye(e,(_n(),$L))))){for(o=new Pe,r=new Ft(Gt(gp(e).a.Jc(),new D));an(r);)t=l(Qt(r),74),I0(t)&&Ke(We(ye(t,cre)))&&Ot(o.c,t);return o}else return St(),St(),No}function Cmt(e){if(!e)return rQe(),M_t;var t=e.valueOf?e.valueOf():e;if(t!==e){var r=$Q[typeof t];return r?r(t):qge(typeof t)}else return e instanceof Array||e instanceof b.Array?new Bue(e):new KR(e)}function Imt(e,t,r){var o,s,u;switch(u=e.o,o=l(Go(e.p,r),256),s=o.i,s.b=yC(o),s.a=wC(o),s.b=b.Math.max(s.b,u.a),s.b>u.a&&!t&&(s.b=u.a),s.c=-(s.b-u.a)/2,r.g){case 1:s.d=-s.a;break;case 3:s.d=u.b}TJ(o),AJ(o)}function Rmt(e,t,r){var o,s,u;switch(u=e.o,o=l(Go(e.p,r),256),s=o.i,s.b=yC(o),s.a=wC(o),s.a=b.Math.max(s.a,u.b),s.a>u.b&&!t&&(s.a=u.b),s.d=-(s.a-u.b)/2,r.g){case 4:s.c=-s.b;break;case 2:s.c=u.a}TJ(o),AJ(o)}function Pyn(e,t){var r,o,s;return se(t.g,9)&&l(t.g,9).k==(Ht(),mi)?Kr:(s=LS(t),s?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(ce(gy(r,(Be(),wm)))),b.Math.max(0,o/2-.5)):Kr))}function jyn(e,t){var r,o,s;return se(t.g,9)&&l(t.g,9).k==(Ht(),mi)?Kr:(s=LS(t),s?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(ce(gy(r,(Be(),wm)))),b.Math.max(0,o/2-.5)):Kr))}function Fyn(e,t){var r,o,s,u,f;if(!t.dc()){if(s=l(t.Xb(0),134),t.gc()==1){mwt(e,s,s,1,0,t);return}for(r=1;r0)try{s=Ec(t,Zi,sr)}catch(u){throw u=ci(u),se(u,133)?(o=u,K(new rj(o))):K(u)}return r=(!e.a&&(e.a=new qG(e)),e.a),s=0?l(ie(r,s),57):null}function Uyn(e,t){if(e<0)return kC(jEt,Z(X(Ci,1),Rt,1,5,["index",Re(e)]));if(t<0)throw K(new jt(FEt+t));return kC("%s (%s) must be less than size (%s)",Z(X(Ci,1),Rt,1,5,["index",Re(e),Re(t)]))}function Hyn(e){var t,r,o,s,u;if(e==null)return tu;for(u=new zb(Ma,"[","]"),r=e,o=0,s=r.length;o=0?e.Ih(r,!0,!0):R0(e,s,!0),164)),l(o,222).Xl(t);else throw K(new jt(R1+t.ve()+tI))}function eme(e){var t,r;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),r=po(b.Math.floor(b.Math.log(e)/.6931471805599453)),(!t||e!=b.Math.pow(2,r))&&++r,r):qpt(Gs(e))}function Qyn(e){var t,r,o,s,u,f,p;for(u=new uh,r=new V(e);r.a2&&p.e.b+p.j.b<=2&&(s=p,o=f),u.a.yc(s,u),s.q=o);return u}function evn(e,t,r){r.Tg("Eades radial",1),r.bh(t,DF),e.d=l(ye(t,(aE(),l2)),19),e.c=ue(ce(ye(t,(T1(),UB)))),e.e=wY(l(ye(t,CL),304)),e.a=Hgn(l(ye(t,gke),431)),e.b=n0n(l(ye(t,dke),355)),Bmn(e),r.bh(t,DF)}function tvn(e,t){if(t.Tg("Target Width Setter",1),Gc(e,(ef(),Cne)))Vn(e,(yh(),rv),ce(ye(e,Cne)));else throw K(new Af("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function Fmt(e,t){var r,o,s;return o=new Xd(e),qs(o,t),Ae(o,(Ie(),nB),t),Ae(o,(Be(),Zr),(qi(),fa)),Ae(o,Wf,(mh(),QB)),Kh(o,(Ht(),mi)),r=new aa,Ts(r,o),Ni(r,(Ue(),Wt)),s=new aa,Ts(s,o),Ni(s,Zt),o}function $mt(e,t){var r,o,s,u,f;for(e.c[t.p]=!0,je(e.a,t),f=new V(t.j);f.a=u)f.$b();else for(s=f.Jc(),o=0;o0?$ce():f<0&&qmt(e,t,-f),!0):!1}function svn(e){var t;return t=Z(X(al,1),$f,30,15,[71,77,84,45,48,48,58,48,48]),e<=0&&(t[3]=43,e=-e),t[4]=t[4]+((e/60|0)/10|0)&Ei,t[5]=t[5]+(e/60|0)%10&Ei,t[7]=t[7]+(e%60/10|0)&Ei,t[8]=t[8]+e%10&Ei,Lf(t,0,t.length)}function wC(e){var t,r,o,s,u,f,p;if(p=0,e.b==0){for(f=y1t(e,!0),t=0,o=f,s=0,u=o.length;s0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}else p=lQe(SK(Qw(lr(ZV(e.a),new xN),new Wp)));return p>0?p+e.n.d+e.n.a:0}function yC(e){var t,r,o,s,u,f,p;if(p=0,e.b==0)p=lQe(SK(Qw(lr(ZV(e.a),new Xg),new kN)));else{for(f=v1t(e,!0),t=0,o=f,s=0,u=o.length;s0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}return p>0?p+e.n.b+e.n.c:0}function avn(e){var t,r;if(e.c.length!=2)throw K(new Xo("Order only allowed for two paths."));t=(at(0,e.c.length),l(e.c[0],17)),r=(at(1,e.c.length),l(e.c[1],17)),t.d.i!=r.c.i&&(e.c.length=0,Ot(e.c,r),Ot(e.c,t))}function Vmt(e,t,r){var o;for(r0(r,t.g,t.f),Bc(r,t.i,t.j),o=0;o<(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i;o++)Vmt(e,l(ie((!t.a&&(t.a=new xe(En,t,10,11)),t.a),o),19),l(ie((!r.a&&(r.a=new xe(En,r,10,11)),r.a),o),19))}function uvn(e,t){var r,o,s,u;for(u=l(Go(e.b,t),129),r=u.a,s=l(l(wr(e.r,t),24),85).Jc();s.Ob();)o=l(s.Pb(),116),o.c&&(r.a=b.Math.max(r.a,_fe(o.c)));if(r.a>0)switch(t.g){case 2:u.n.c=e.s;break;case 4:u.n.b=e.s}}function cvn(e,t){var r,o,s;return r=l(j(t,(ed(),ST)),15).a-l(j(e,ST),15).a,r==0?(o=Ri(So(l(j(e,(h1(),QD)),8)),l(j(e,yI),8)),s=Ri(So(l(j(t,QD),8)),l(j(t,yI),8)),yr(o.a*o.b,s.a*s.b)):r}function lvn(e,t){var r,o,s;return r=l(j(t,(Ps(),PB)),15).a-l(j(e,PB),15).a,r==0?(o=Ri(So(l(j(e,(xr(),kL)),8)),l(j(e,ux),8)),s=Ri(So(l(j(t,kL),8)),l(j(t,ux),8)),yr(o.a*o.b,s.a*s.b)):r}function Wmt(e){var t,r;return r=new Zg,r.a+="e_",t=vhn(e),t!=null&&(r.a+=""+t),e.c&&e.d&&(zn((r.a+=" ",r),f7(e.c)),zn(ga((r.a+="[",r),e.c.i),"]"),zn((r.a+=DX,r),f7(e.d)),zn(ga((r.a+="[",r),e.d.i),"]")),r.a}function Kmt(e){switch(e.g){case 0:return new CWe;case 1:return new IWe;case 2:return new UWe;case 3:return new HWe;default:throw K(new jt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function rme(e,t,r,o,s){var u;switch(u=0,s.g){case 1:u=b.Math.max(0,t.b+e.b-(r.b+o));break;case 3:u=b.Math.max(0,-e.b-o);break;case 2:u=b.Math.max(0,-e.a-o);break;case 4:u=b.Math.max(0,t.a+e.a-(r.a+o))}return u}function Ymt(e,t,r){var o,s,u,f,p;if(r)for(s=r.a.length,o=new Nb(s),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),u=d_(r,f.a),nEe in u.a||aQ in u.a?mTn(e,u,t):UNn(e,u,t),Ttn(l(Ut(e.c,$_(u)),74))}function ime(e){var t,r;switch(e.b){case-1:return!0;case 0:return r=e.t,r>1||r==-1?(e.b=-1,!0):(t=Sl(e),t&&(Oo(),t.jk()==PAt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function ome(e,t){var r,o,s,u;if(dr(e),e.c!=0||e.a!=123)throw K(new Dn(Pn((Cn(),iAt))));if(u=t==112,o=e.d,r=WA(e.i,125,o),r<0)throw K(new Dn(Pn((Cn(),oAt))));return s=yl(e.i,o,r),e.d=r+1,Jlt(s,u,(e.e&512)==512)}function dvn(e){var t,r,o,s,u,f,p;for(p=ch(e.c.length),s=new V(e);s.a=0&&o=0?e.Ih(r,!0,!0):R0(e,s,!0),164)),l(o,222).Ul(t);throw K(new jt(R1+t.ve()+ZZ))}function hvn(){ule();var e;return eLt?l(K_((n1(),Ll),_l),2017):(Qn(cm,new qqe),cxn(),e=l(se(ma((n1(),Ll),_l),552)?ma(Ll,_l):new Bst,552),eLt=!0,u3n(e),p3n(e),Yn((ale(),m3e),e,new aqe),Qo(Ll,_l,e),e)}function pvn(e,t){var r,o,s,u;e.j=-1,Yu(e.e)?(r=e.i,u=e.i!=0,t6(e,t),o=new ap(e.e,3,e.c,null,t,r,u),s=t.xl(e.e,e.c,null),s=Sbt(e,t,s),s?(s.lj(o),s.mj()):hr(e.e,o)):(t6(e,t),s=t.xl(e.e,e.c,null),s&&s.mj())}function _7(e,t){var r,o,s;if(s=0,o=t[0],o>=e.length)return-1;for(r=(Yt(o,e.length),e.charCodeAt(o));r>=48&&r<=57&&(s=s*10+(r-48),++o,!(o>=e.length));)r=(Yt(o,e.length),e.charCodeAt(o));return o>t[0]?t[0]=o:s=-1,s}function gvn(e,t,r){var o,s,u,f,p;f=e.c,p=e.d,u=_s(Z(X($i,1),Me,8,0,[f.i.n,f.n,f.a])).b,s=(u+_s(Z(X($i,1),Me,8,0,[p.i.n,p.n,p.a])).b)/2,o=null,f.j==(Ue(),Zt)?o=new Le(t+f.i.c.c.a+r,s):o=new Le(t-r,s),VA(e.a,0,o)}function I0(e){var t,r,o,s;for(t=null,o=hh(Wc(Z(X(nl,1),Rt,22,0,[(!e.b&&(e.b=new Et(pn,e,4,7)),e.b),(!e.c&&(e.c=new Et(pn,e,5,8)),e.c)])));an(o);)if(r=l(Qt(o),83),s=Vo(r),!t)t=s;else if(t!=s)return!1;return!0}function rJ(e,t,r){var o;if(++e.j,t>=e.i)throw K(new Na(cQ+t+sm+e.i));if(r>=e.i)throw K(new Na(lQ+r+sm+e.i));return o=e.g[r],t!=r&&(t>16),t=o>>16&16,r=16-t,e=e>>t,o=e-256,t=o>>16&8,r+=t,e<<=t,o=e-Iy,t=o>>16&4,r+=t,e<<=t,o=e-Ff,t=o>>16&2,r+=t,e<<=t,o=e>>14,t=o&~(o>>1),r+2-t)}function bvn(e,t){var r,o,s;for(s=new Pe,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.c.g==e.g&&be(j(r.b,(Ps(),Yf)))!==be(j(r.c,Yf))&&!fE(new yt(null,new vt(s,16)),new DJe(r))&&Ot(s.c,r);return _i(s,new aHe),s}function Xmt(e,t,r){var o,s,u,f;return se(t,156)&&se(r,156)?(u=l(t,156),f=l(r,156),e.a[u.a][f.a]+e.a[f.a][u.a]):se(t,254)&&se(r,254)&&(o=l(t,254),s=l(r,254),o.a==s.a)?l(j(s.a,(ed(),ST)),15).a:0}function Zmt(e,t){var r,o,s,u,f,p,m,y;for(y=ue(ce(j(t,(Be(),UI)))),m=e[0].n.a+e[0].o.a+e[0].d.c+y,p=1;p=0?r:(p=C3(Ri(new Le(f.c+f.b/2,f.d+f.a/2),new Le(u.c+u.b/2,u.d+u.a/2))),-(Ryt(u,f)-1)*p)}function wvn(e,t,r){var o;ei(new yt(null,(!r.a&&(r.a=new xe(jr,r,6,6)),new vt(r.a,16))),new Ott(e,t)),ei(new yt(null,(!r.n&&(r.n=new xe(Is,r,1,7)),new vt(r.n,16))),new Dtt(e,t)),o=l(ye(r,(_n(),p2)),79),o&&uge(o,e,t)}function R0(e,t,r){var o,s,u;if(u=IE((mu(),so),e.Ah(),t),u)return Oo(),l(u,69).vk()||(u=DS(es(so,u))),s=(o=e.Fh(u),l(o>=0?e.Ih(o,!0,!0):R0(e,u,!0),164)),l(s,222).Ql(t,r);throw K(new jt(R1+t.ve()+ZZ))}function sme(e,t,r,o){var s,u,f,p,m;if(s=e.d[t],s){if(u=s.g,m=s.i,o!=null){for(p=0;p=r&&(o=t,y=(m.c+m.a)/2,f=y-r,m.c<=y-r&&(s=new RV(m.c,f),kb(e,o++,s)),p=y+r,p<=m.a&&(u=new RV(p,m.a),ny(o,e.c.length),ZN(e.c,o,u)))}function n0t(e,t,r){var o,s,u,f,p,m;if(!t.dc()){for(s=new Sr,m=t.Jc();m.Ob();)for(p=l(m.Pb(),41),Yn(e.a,Re(p.g),Re(r)),f=(o=An(new Xh(p).a.d,0),new qv(o));rO(f.a);)u=l(Sn(f.a),65).c,Wr(s,u,s.c.b,s.c);n0t(e,s,r+1)}}function ame(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),Tn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=l(e.g[e.i-1],51)}return t==e.b&&null.Tm>=null.Sm()?(N7(e),ame(e)):t.Ob()}function r0t(e){if(this.a=e,e.c.i.k==(Ht(),mi))this.c=e.c,this.d=l(j(e.c.i,(Ie(),Us)),64);else if(e.d.i.k==mi)this.c=e.d,this.d=l(j(e.d.i,(Ie(),Us)),64);else throw K(new jt("Edge "+e+" is not an external edge."))}function i0t(e,t){var r,o,s;s=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,s,e.b)),t?t!=e&&(Da(e,t.zb),dK(e,t.d),r=(o=t.c,o??t.zb),hK(e,r==null||mt(r,t.zb)?null:r)):(Da(e,null),dK(e,0),hK(e,null))}function o0t(e){!jQ&&(jQ=bNn());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(r){return Qan(r)});return'"'+t+'"'}function ume(e,t,r,o,s,u){var f,p,m,y,v;if(s!=0)for(be(e)===be(r)&&(e=e.slice(t,t+s),t=0),m=r,p=t,y=t+s;p=f)throw K(new Vw(t,f));return s=r[t],f==1?o=null:(o=me(Ore,gQ,420,f-1,0,1),ua(r,0,o,0,t),u=f-t-1,u>0&&ua(r,t+1,o,t,u)),U_(e,o),_mt(e,t,s),s}function s0t(e){var t,r;if(e.f){for(;e.n0)for(f=e.c.d,p=e.d.d,s=Qh(Ri(new Le(p.a,p.b),f),1/(o+1)),u=new Le(f.a,f.b),r=new V(e.a);r.a0?u=qS(r):u=L6(qS(r))),Vn(t,nx,u)}function d0t(e,t){var r,o;if(e.c.length!=0){if(e.c.length==2)oT((at(0,e.c.length),l(e.c[0],9)),(vc(),Ih)),oT((at(1,e.c.length),l(e.c[1],9)),q1);else for(o=new V(e);o.a0&&iD(e,r,t),u):o.a!=null?(iD(e,t,r),-1):s.a!=null?(iD(e,r,t),1):0}function f0t(e){_W();var t,r,o,s,u,f,p;for(r=new d1,s=new V(e.e.b);s.a=0;)o=r[u],f.$l(o.Jk())&&Tn(s,o);!bEt(e,s)&&Yu(e.e)&&DA(e,t.Hk()?c1(e,6,t,(St(),No),null,-1,!1):c1(e,t.rk()?2:1,t,null,null,-1,!1))}function Nvn(e,t){var r,o,s,u,f;return e.a==(V_(),_I)?!0:(u=t.a.c,r=t.a.c+t.a.b,!(t.j&&(o=t.A,f=o.c.c.a-o.o.a/2,s=u-(o.n.a+o.o.a),s>f)||t.q&&(o=t.C,f=o.c.c.a-o.o.a/2,s=o.n.a-r,s>f)))}function p0t(e,t,r){var o,s,u,f,p,m;for(o=0,m=r,t||(o=r*(e.c.length-1),m*=-1),u=new V(e);u.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(l(s,52),r),o&&o.mj(),e.sh()&&e.th()&&r>-1&&hr(e,new Pi(e,9,r,u,s)),s):u}function fme(e,t){var r,o,s,u,f;for(u=e.b.Ae(t),o=(r=e.a.get(u),r??me(Ci,Rt,1,0,5,1)),f=0;f>5,s>=e.d)return e.e<0;if(r=e.a[s],t=1<<(t&31),e.e<0){if(o=lht(e),s>16)),16).bd(u),p0&&(!(Zh(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d+=b.Math.max(0,o/2-.5)),!(Zh(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a-=o-1))}function x0t(e,t,r){var o,s,u,f,p,m;u=l(He(t.e,0),17).c,o=u.i,s=o.k,m=l(He(r.g,0),17).d,f=m.i,p=f.k,s==(Ht(),gi)?Ae(e,(Ie(),Cd),l(j(o,Cd),12)):Ae(e,(Ie(),Cd),u),p==gi?Ae(e,(Ie(),Nl),l(j(f,Nl),12)):Ae(e,(Ie(),Nl),m)}function N0t(e,t){var r,o,s,u,f,p;for(u=new V(e.b);u.a>t,u=e.m>>t|r<<22-t,s=e.l>>t|e.m<<22-t):t<44?(f=o?yp:0,u=r>>t-22,s=e.m>>t-22|r<<44-t):(f=o?yp:0,u=o?Uu:0,s=r>>t-44),Ua(s&Uu,u&Uu,f&yp)}function zvn(e,t){var r;switch(O3(e.a),pc(e.a,(h7(),Gne),(Y9(),Jne)),pc(e.a,qne,(J9(),Xne)),pc(e.a,Vne,(X9(),Zne)),l(ye(t,(XS(),Yne)),389).g){case 1:r=(b6(),Qne);break;case 0:default:r=(b6(),ere)}return pc(e.a,Wne,r),MC(e.a,t)}function C0t(e,t){var r,o,s,u,f,p,m,y,v;if(e.a.f>0&&se(t,45)&&(e.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Ir(m),f=Fde(e.a,u),r=e.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p=2)for(r=s.Jc(),t=ce(r.Pb());r.Ob();)u=t,t=ce(r.Pb()),o=b.Math.min(o,(Mt(t),t-(Mt(u),u)));return o}function Zvn(e,t){var r,o,s;for(s=new Pe,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.b.g==e.g&&!mt(r.b.c,RF)&&be(j(r.b,(Ps(),Yf)))!==be(j(r.c,Yf))&&!fE(new yt(null,new vt(s,16)),new LJe(r))&&Ot(s.c,r);return _i(s,new dHe),s}function Qvn(e,t){var r,o,s;if(be(t)===be(xn(e)))return!0;if(!se(t,16)||(o=l(t,16),s=e.gc(),s!=o.gc()))return!1;if(se(o,59)){for(r=0;r0&&(s=r),f=new V(e.f.e);f.a0?s+=t:s+=1;return s}function aEn(e,t){var r,o,s,u,f,p,m,y,v,T;y=e,m=j3(y,"individualSpacings"),m&&(o=Gc(t,(_n(),zT)),f=!o,f&&(s=new xG,Vn(t,zT,s)),p=l(ye(t,zT),380),T=m,u=null,T&&(u=(v=wK(T,me(Ye,Me,2,0,6,1)),new bq(T,v))),u&&(r=new Qtt(T,p),co(u,r)))}function uEn(e,t){var r,o,s,u,f,p,m,y,v,T,N;return m=null,T=e,v=null,(zTt in T.a||GTt in T.a||BF in T.a)&&(y=null,N=wge(t),f=j3(T,zTt),r=new wXe(N),dgt(r.a,f),p=j3(T,GTt),o=new xXe(N),fgt(o.a,p),u=b0(T,BF),s=new IXe(N),y=(vbt(s.a,u),u),v=y),m=v,m}function cEn(e,t){var r,o,s;if(t===e)return!0;if(se(t,544)){if(s=l(t,841),e.a.d!=s.a.d||uE(e).gc()!=uE(s).gc())return!1;for(o=uE(s).Jc();o.Ob();)if(r=l(o.Pb(),421),dut(e,r.a.jd())!=l(r.a.kd(),18).gc())return!1;return!0}return!1}function lEn(e,t){var r,o,s,u;for(u=new V(t.a);u.at.c?1:e.bt.b?1:e.a!=t.a?Ir(e.a)-Ir(t.a):e.d==($3(),JI)&&t.d==YI?-1:e.d==YI&&t.d==JI?1:0}function sJ(e){var t,r,o,s,u,f,p,m;for(s=Kr,o=Oi,r=new V(e.e.b);r.a0&&s0):s<0&&-s0):!1}function fEn(e,t,r,o){var s,u,f,p,m,y,v,T;for(s=(t-e.d)/e.c.c.length,u=0,e.a+=r,e.d=t,T=new V(e.c);T.a>24;return f}function pEn(e){if(e.xe()){var t=e.c;t.ye()?e.o="["+t.n:t.xe()?e.o="["+t.ve():e.o="[L"+t.ve()+";",e.b=t.ue()+"[]",e.k=t.we()+"[]";return}var r=e.j,o=e.d;o=o.split("/"),e.o=cY(".",[r,cY("$",o)]),e.b=cY(".",[r,cY(".",o)]),e.k=o[o.length-1]}function gEn(e,t){var r,o,s,u,f;for(f=null,u=new V(e.e.a);u.a0&&dD(t,(at(o-1,e.c.length),l(e.c[o-1],9)),s)>0;)tc(e,o,(at(o-1,e.c.length),l(e.c[o-1],9))),--o;at(o,e.c.length),e.c[o]=s}t.b=new hn,t.g=new hn}function U0t(e,t,r){var o,s,u;for(o=1;o0&&t.Le((at(s-1,e.c.length),l(e.c[s-1],9)),u)>0;)tc(e,s,(at(s-1,e.c.length),l(e.c[s-1],9))),--s;at(s,e.c.length),e.c[s]=u}r.a=new hn,r.b=new hn}function x7(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(u=t.Jc();u.Ob();)s=l(u.Pb(),19),v=s.i+s.g/2,N=s.j+s.f/2,m=e.f,f=m.i+m.g/2,p=m.j+m.f/2,y=v-f,T=N-p,o=b.Math.sqrt(y*y+T*T),y*=e.e/o,T*=e.e/o,r?(v-=y,N-=T):(v+=y,N+=T),ya(s,v-s.g/2),gu(s,N-s.f/2)}function kE(e){var t,r,o;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(r=0;r<=t;r+=2)(e.b[r]>e.b[r+2]||e.b[r]===e.b[r+2]&&e.b[r+1]>e.b[r+3])&&(o=e.b[r+2],e.b[r+2]=e.b[r],e.b[r]=o,o=e.b[r+3],e.b[r+3]=e.b[r+1],e.b[r+1]=o);e.c=!0}}function Zl(e){var t,r;return r=new fc(Sb(e.Pm)),r.a+="@",zn(r,(t=Ir(e)>>>0,t.toString(16))),e.Sh()?(r.a+=" (eProxyURI: ",ga(r,e.Yh()),e.Hh()&&(r.a+=" eClass: ",ga(r,e.Hh())),r.a+=")"):e.Hh()&&(r.a+=" (eClass: ",ga(r,e.Hh()),r.a+=")"),r.a}function SC(e){var t,r,o,s;if(e.e)throw K(new Xo((ep(JQ),_X+JQ.k+kX)));for(e.d==(vi(),hf)&&K7(e,is),r=new V(e.a.a);r.a>24}return r}function EEn(e,t,r){var o,s,u;if(s=l(Go(e.i,t),319),!s)if(s=new Zdt(e.d,t,r),NS(e.i,t,s),k1e(t))Stn(e.a,t.c,t.b,s);else switch(u=gyn(t),o=l(Go(e.p,u),256),u.g){case 1:case 3:s.j=!0,iq(o,t.b,s);break;case 4:case 2:s.k=!0,iq(o,t.c,s)}return s}function SEn(e,t,r,o){var s,u,f,p,m,y;if(p=new g9,m=za(e.e.Ah(),t),s=l(e.g,123),Oo(),l(t,69).vk())for(f=0;f=0)return s;for(u=1,p=new V(t.j);p.a=0)return s;for(u=1,p=new V(t.j);p.a=0?(t||(t=new UN,o>0&&zo(t,(no(0,o,e.length),e.substr(0,o)))),t.a+="\\",r_(t,r&Ei)):t&&r_(t,r&Ei);return t?t.a:e}function AEn(e){var t,r,o;for(r=new V(e.a.a.b);r.a0&&(!(Zh(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d-=b.Math.max(0,o/2-.5)),!(Zh(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a+=b.Math.max(0,o-1)))}function W0t(e,t,r){var o,s;if((e.c-e.b&e.a.length-1)==2)t==(Ue(),Vt)||t==Zt?(lj(l(J3(e),16),(vc(),Ih)),lj(l(J3(e),16),q1)):(lj(l(J3(e),16),(vc(),q1)),lj(l(J3(e),16),Ih));else for(s=new R3(e);s.a!=s.b;)o=l(Fj(s),16),lj(o,r)}function _En(e,t,r){var o,s,u,f,p,m,y,v,T;for(v=-1,T=0,p=t,m=0,y=p.length;m0&&++T;++v}return T}function kEn(e,t,r){var o;if(r.Tg("XPlacer",1),e.b=ue(ce(ye(t,(_n(),Od)))),e.a=Ke(We(ye(t,(XS(),Kne)))),(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i!=0)switch(o=l(ye(t,(wh(),l4)),19),l(ye(t,Yne),389).g){case 0:DEt(e,o);break;case 1:OEt(e,o)}r.Ug()}function xEn(e,t){var r,o,s,u,f,p,m;for(s=ZA(new fce(e)),p=new Ji(s,s.c.length),u=ZA(new fce(t)),m=new Ji(u,u.c.length),f=null;p.b>0&&m.b>0&&(r=(un(p.b>0),l(p.a.Xb(p.c=--p.b),19)),o=(un(m.b>0),l(m.a.Xb(m.c=--m.b),19)),r==o);)f=r;return f}function NEn(e,t){var r,o,s,u;for(t.Tg("Self-Loop pre-processing",1),o=new V(e.a);o.aEut(e,r)?(o=ks(r,(Ue(),Zt)),e.d=o.dc()?0:PV(l(o.Xb(0),12)),f=ks(t,Wt),e.b=f.dc()?0:PV(l(f.Xb(0),12))):(s=ks(r,(Ue(),Wt)),e.d=s.dc()?0:PV(l(s.Xb(0),12)),u=ks(t,Zt),e.b=u.dc()?0:PV(l(u.Xb(0),12)))}function CEn(e){var t,r,o,s,u,f,p,m;t=!0,s=null,u=null;e:for(m=new V(e.a);m.ae.c));f++)s.a>=e.s&&(u<0&&(u=f),p=f);return m=(e.s+e.c)/2,u>=0&&(o=gTn(e,t,u,p),m=ten((at(o,t.c.length),l(t.c[o],341))),Svn(t,o,r)),m}function kn(e,t,r){var o,s,u,f,p,m,y;for(f=(u=new Rue,u),Xpe(f,(Mt(t),t)),y=(!f.b&&(f.b=new Xu((Tt(),Io),Hs,f)),f.b),m=1;m=2}function DEn(e,t,r,o,s){var u,f,p,m,y,v;for(u=e.c.d.j,f=l(sa(r,0),8),v=1;v1||(t=Ar(ad,Z(X(Bo,1),Ce,96,0,[Np,ud])),E6(OP(t,e))>1)||(o=Ar(ld,Z(X(Bo,1),Ce,96,0,[Rh,Il])),E6(OP(o,e))>1))}function J0t(e){var t,r,o,s,u,f,p;for(t=0,o=new V(e.a);o.a0&&(o.b.n-=o.c,o.b.n<=0&&o.b.u>0&&Gn(t,o.b));for(s=new V(e.i);s.a0&&(o.a.u-=o.c,o.a.u<=0&&o.a.n>0&&Gn(r,o.a))}function MEn(e){var t,r,o,s,u,f;for(f=l(ye(e,(_n(),df)),100),r=0,o=0,u=new en((!e.a&&(e.a=new xe(En,e,10,11)),e.a));u.e!=u.i.gc();)s=l(rn(u),19),t=l(ye(s,xp),125),r1||r>1)return 2;return t+r==1?2:0}function $u(e,t){var r,o,s,u,f,p;return u=e.a*EX+e.b*1502,p=e.b*EX+11,r=b.Math.floor(p*TD),u+=r,p-=r*ewe,u%=ewe,e.a=u,e.b=p,t<=24?b.Math.floor(e.a*s2e[t]):(s=e.a*(1<=2147483648&&(o-=4294967296),o)}function Q0t(e,t,r){var o,s,u,f,p,m,y;for(u=new Pe,y=new Sr,f=new Sr,r_n(e,y,f,t),Fkn(e,y,f,t,r),m=new V(e);m.ao.b.g&&Ot(u.c,o);return u}function HEn(e,t,r){var o,s,u,f,p,m;for(p=e.c,f=(r.q?r.q:(St(),St(),kh)).vc().Jc();f.Ob();)u=l(f.Pb(),45),o=!$A(lr(new yt(null,new vt(p,16)),new IA(new ktt(t,u)))).zd((Tb(),ET)),o&&(m=u.kd(),se(m,4)&&(s=N1e(m),s!=null&&(m=s)),t.of(l(u.jd(),149),m))}function zEn(e,t){var r,o,s,u;for(t.Tg("Resize child graph to fit parent.",1),o=new V(e.b);o.a1)for(s=new V(e.a);s.a=0?e.Ih(o,!0,!0):R0(e,u,!0),164)),l(s,222).Vl(t,r)}else throw K(new jt(R1+t.ve()+tI))}function VEn(e,t,r){var o,s,u,f,p,m;if(m=Lde(e,l(Ut(e.e,t),19)),p=null,m)switch(m.g){case 3:o=nde(e,ey(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:s=nde(e,ey(t)),f=(Mt(r),r+(Mt(s),s)),u=nde(e,l(Ut(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function WEn(e,t,r){var o,s,u,f,p,m;if(m=Lde(e,l(Ut(e.e,t),19)),p=null,m)switch(m.g){case 3:o=rde(e,ey(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:s=rde(e,ey(t)),f=(Mt(r),r+(Mt(s),s)),u=rde(e,l(Ut(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function I7(e,t){var r,o,s,u,f;if(t){for(u=se(e.Cb,89)||se(e.Cb,104),f=!u&&se(e.Cb,336),o=new en((!t.a&&(t.a=new E3(t,Uo,t)),t.a));o.e!=o.i.gc();)if(r=l(rn(o),88),s=U7(r),u?se(s,89):f?se(s,160):s)return s;return u?(Tt(),Ml):(Tt(),bf)}else return null}function KEn(e,t){var r,o,s,u,f;for(r=new Pe,s=gs(new yt(null,new vt(e,16)),new XUe),u=gs(new yt(null,new vt(e,16)),new ZUe),f=Idn(Jln(Qw(o2n(Z(X(_3n,1),Rt,840,0,[s,u])),new QUe))),o=1;o=2*t&&je(r,new RV(f[o-1]+t,f[o]-t));return r}function ewt(e,t,r){var o,s,u,f,p,m,y,v;if(r)for(u=r.a.length,o=new Nb(u),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),s=d_(r,f.a),s&&(m=tln(e,(y=(e1(),v=new xce,v),t&&Cme(y,t),y),s),y_(m,ip(s,Gf)),y7(s,m),Xbe(s,m),LK(e,s,m))}function R7(e){var t,r,o,s,u,f;if(!e.j){if(f=new YGe,t=R4,u=t.a.yc(e,t),u==null){for(o=new en(us(e));o.e!=o.i.gc();)r=l(rn(o),29),s=R7(r),ti(f,s),Tn(f,r);t.a.Ac(e)!=null}fy(f),e.j=new Qv((l(ie(Ne((a1(),Bt).o),11),20),f.i),f.g),Mu(e).b&=-33}return e.j}function YEn(e){var t,r,o,s;if(e==null)return null;if(o=Sa(e,!0),s=KD.length,mt(o.substr(o.length-s,s),KD)){if(r=o.length,r==4){if(t=(Yt(0,o.length),o.charCodeAt(0)),t==43)return j3e;if(t==45)return ELt}else if(r==3)return j3e}return new yce(o)}function JEn(e){var t,r,o;return r=e.l,r&r-1||(o=e.m,o&o-1)||(t=e.h,t&t-1)||t==0&&o==0&&r==0?-1:t==0&&o==0&&r!=0?Gpe(r):t==0&&o!=0&&r==0?Gpe(o)+22:t!=0&&o==0&&r==0?Gpe(t)+44:-1}function xE(e,t){var r,o,s,u,f;for(s=t.a&e.f,u=null,o=e.b[s];;o=o.b){if(o==t){u?u.b=t.b:e.b[s]=t.b;break}u=o}for(f=t.f&e.f,u=null,r=e.c[f];;r=r.d){if(r==t){u?u.d=t.d:e.c[f]=t.d;break}u=r}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function XEn(e,t){var r;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(r=l(wl(l(PS(e.b,t.a),263)),263),r.a=0,++e.c):(r=l(wl(l(Ut(e.b,t.a),263)),263),--r.a,t.e?t.e.c=t.c:r.b=l(wl(t.c),501),t.c?t.c.e=t.e:r.c=l(wl(t.e),501)),--e.d}function aJ(e,t){var r,o,s,u;for(u=new Ji(e,0),r=(un(u.b0),u.a.Xb(u.c=--u.b),qw(u,s),un(u.b3&&bh(e,0,t-3))}function QEn(e){var t,r,o,s;return be(j(e,(Be(),Vy)))===be((fp(),Cg))?!e.e&&be(j(e,gL))!==be((A_(),aL)):(o=l(j(e,fte),303),s=Ke(We(j(e,hte)))||be(j(e,jI))===be((aC(),oL)),t=l(j(e,tAe),15).a,r=e.a.c.length,!s&&o!=(A_(),aL)&&(t==0||t>r))}function e2n(e,t){var r,o,s,u,f,p,m;for(s=e.Jc();s.Ob();)for(o=l(s.Pb(),9),p=new aa,Ts(p,o),Ni(p,(Ue(),Zt)),Ae(p,(Ie(),rB),(Lt(),!0)),f=t.Jc();f.Ob();)u=l(f.Pb(),9),m=new aa,Ts(m,u),Ni(m,Wt),Ae(m,rB,!0),r=new h0,Ae(r,rB,!0),go(r,p),Yi(r,m)}function t2n(e){var t,r;for(r=0;r0);r++);if(r>0&&r0);t++);return t>0&&r>16!=6&&t){if(H_(e,t))throw K(new jt(nI+g0t(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?J1e(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=YS(t,e,6,o)),o=Pde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,6,t,t))}function O7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(H_(e,t))throw K(new jt(nI+cvt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?ebe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=YS(t,e,12,o)),o=Mde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function Cme(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=9&&t){if(H_(e,t))throw K(new jt(nI+ryt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?Z1e(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=YS(t,e,9,o)),o=jde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,9,t,t))}function Y_(e){var t,r,o,s,u;if(o=Sl(e),u=e.j,u==null&&o)return e.Hk()?null:o.gk();if(se(o,160)){if(r=o.hk(),r&&(s=r.ti(),s!=e.i)){if(t=l(o,160),t.lk())try{e.g=s.qi(t,u)}catch(f){if(f=ci(f),se(f,81))e.g=null;else throw K(f)}e.i=s}return e.g}return null}function owt(e){var t;return t=new Pe,je(t,new dS(new Le(e.c,e.d),new Le(e.c+e.b,e.d))),je(t,new dS(new Le(e.c,e.d),new Le(e.c,e.d+e.a))),je(t,new dS(new Le(e.c+e.b,e.d+e.a),new Le(e.c+e.b,e.d))),je(t,new dS(new Le(e.c+e.b,e.d+e.a),new Le(e.c,e.d+e.a))),t}function r2n(e){var t,r,o,s;for(o=e.a.d.j,s=e.c.d.j,r=new V(e.i.d);r.a>>0),r.toString(16)),_1n(Nhn(),(zA(),"Exception during lenientFormat for "+o),t),"<"+o+" threw "+Sb(t.Pm)+">";throw K(s)}}function o2n(e){var t,r,o,s,u,f,p,m,y;for(o=!1,t=336,r=0,u=new rit(e.length),p=e,m=0,y=p.length;m1)for(t=i0((r=new Eb,++e.b,r),e.d),p=An(u,0);p.b!=p.d.c;)f=l(Sn(p),126),Ql($l(Ul(Hl(Bl(new gl,1),0),t),f))}function D7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=11&&t){if(H_(e,t))throw K(new jt(nI+Jme(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?tbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=YS(t,e,10,o)),o=Wde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,11,t,t))}function l2n(e,t,r){var o,s,u,f,p,m;if(u=0,f=0,e.c)for(m=new V(e.d.i.j);m.au.a?-1:s.am){for(v=e.d,e.d=me(u3e,bEe,67,2*m+4,0,1),u=0;u=9223372036854776e3?(b_(),jEe):(s=!1,e<0&&(s=!0,e=-e),o=0,e>=em&&(o=po(e/em),e-=o*em),r=0,e>=lT&&(r=po(e/lT),e-=r*lT),t=po(e),u=Ua(t,r,o),s&&DK(u),u)}function S2n(e){var t,r,o,s,u;if(u=new Pe,Oa(e.b,new JKe(u)),e.b.c.length=0,u.c.length!=0){for(t=(at(0,u.c.length),l(u.c[0],81)),r=1,o=u.c.length;r>16!=7&&t){if(H_(e,t))throw K(new jt(nI+cmt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?X1e(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,1,QL,o)),o=Pfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,7,t,t))}function cwt(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(H_(e,t))throw K(new jt(nI+Kpt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?Q1e(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,0,tM,o)),o=jfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function uJ(e,t){Z_();var r,o,s,u,f,p,m,y,v;return t.d>e.d&&(p=e,e=t,t=p),t.d<63?fSn(e,t):(f=(e.d&-2)<<4,y=tpe(e,f),v=tpe(t,f),o=NJ(e,MS(y,f)),s=NJ(t,MS(v,f)),m=uJ(y,v),r=uJ(o,s),u=uJ(NJ(y,o),NJ(s,v)),u=MJ(MJ(u,m),r),u=MS(u,f),m=MS(m,f<<1),MJ(MJ(m,u),r))}function tD(){tD=Y,Ite=new Yv(bSt,0),HAe=new Yv("LONGEST_PATH",1),zAe=new Yv("LONGEST_PATH_SOURCE",2),Nte=new Yv("COFFMAN_GRAHAM",3),UAe=new Yv(jX,4),GAe=new Yv("STRETCH_WIDTH",5),SB=new Yv("MIN_WIDTH",6),xte=new Yv("BF_MODEL_ORDER",7),Cte=new Yv("DF_MODEL_ORDER",8)}function x2n(e,t){var r,o,s,u,f,p;if(!e.tb){for(u=(!e.rb&&(e.rb=new Jw(e,Ld,e)),e.rb),p=new cS(u.i),s=new en(u);s.e!=s.i.gc();)o=l(rn(s),146),f=o.ve(),r=l(f==null?eu(p.f,null,o):A0(p.i,f,o),146),r&&(f==null?eu(p.f,null,r):A0(p.i,f,r));e.tb=p}return l(ma(e.tb,t),146)}function nD(e,t){var r,o,s,u,f;if((e.i==null&&jf(e),e.i).length,!e.p){for(f=new cS((3*e.g.i/2|0)+1),s=new yS(e.g);s.e!=s.i.gc();)o=l(bY(s),182),u=o.ve(),r=l(u==null?eu(f.f,null,o):A0(f.i,u,o),182),r&&(u==null?eu(f.f,null,r):A0(f.i,u,r));e.p=f}return l(ma(e.p,t),182)}function Mme(e,t,r,o,s){var u,f,p,m,y;for(w1n(o+CP(r,r.ge()),s),_st(t,Ugn(r)),u=r.f,u&&Mme(e,t,u,"Caused by: ",!1),p=(r.k==null&&(r.k=me(PQ,Me,81,0,0,1)),r.k),m=0,y=p.length;m=0;u+=r?1:-1)f=f|t.c.jg(m,u,r,o&&!Ke(We(j(t.j,(Ie(),j1))))&&!Ke(We(j(t.j,(Ie(),e2))))),f=f|t.q.tg(m,u,r),f=f|Jwt(e,m[u],r,o);return pi(e.c,t),f}function M7(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(v=ect(e.j),T=0,N=v.length;T1&&(e.a=!0),Bon(l(r.b,68),br(So(l(t.b,68).c),Qh(Ri(So(l(r.b,68).a),l(t.b,68).a),s))),lut(e,t),dwt(e,r)}function fwt(e){var t,r,o,s,u,f,p;for(u=new V(e.a.a);u.a0&&u>0?f.p=t++:o>0?f.p=r++:u>0?f.p=s++:f.p=r++}St(),_i(e.j,new e$e)}function O2n(e){var t,r;r=null,t=l(He(e.g,0),17);do{if(r=t.d.i,gr(r,(Ie(),Nl)))return l(j(r,Nl),12).i;if(r.k!=(Ht(),Xr)&&an(new Ft(Gt(Rr(r).a.Jc(),new D))))t=l(Qt(new Ft(Gt(Rr(r).a.Jc(),new D))),17);else if(r.k!=Xr)return null}while(r&&r.k!=(Ht(),Xr));return r}function D2n(e,t){var r,o,s,u,f,p,m,y,v;for(p=t.j,f=t.g,m=l(He(p,p.c.length-1),114),v=(at(0,p.c.length),l(p.c[0],114)),y=RY(e,f,m,v),u=1;uy&&(m=r,v=s,y=o);t.a=v,t.c=m}function O0(e,t,r,o){var s,u;if(s=be(j(r,(Be(),MI)))===be((g1(),zy)),u=l(j(r,eAe),16),gr(e,(Ie(),Nr)))if(s){if(u.Gc(j(e,PI))&&u.Gc(j(t,PI)))return o*l(j(e,PI),15).a+l(j(e,Nr),15).a}else return l(j(e,Nr),15).a;else return-1;return l(j(e,Nr),15).a}function L2n(e,t,r){var o,s,u,f,p,m,y;for(y=new Zp(new bJe(e)),f=Z(X(Hxt,1),B2t,12,0,[t,r]),p=0,m=f.length;pm-e.b&&pm-e.a&&pr.p?1:0:u.Ob()?1:-1}function H2n(e,t){var r,o,s,u,f,p;t.Tg(HSt,1),s=l(ye(e,(ef(),s4)),100),u=(!e.a&&(e.a=new xe(En,e,10,11)),e.a),f=rmn(u),p=b.Math.max(f.a,ue(ce(ye(e,(yh(),o4))))-(s.b+s.c)),o=b.Math.max(f.b,ue(ce(ye(e,zB)))-(s.d+s.a)),r=o-f.b,Vn(e,i4,r),Vn(e,jT,p),Vn(e,lx,o+r),t.Ug()}function AC(e){var t,r;if((!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i==0)return wge(e);for(t=l(ie((!e.a&&(e.a=new xe(jr,e,6,6)),e.a),0),171),vn((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),v0(t,0),E0(t,0),w0(t,0),y0(t,0),r=(!e.a&&(e.a=new xe(jr,e,6,6)),e.a);r.i>1;)Ay(r,r.i-1);return t}function za(e,t){Oo();var r,o,s,u;return t?t==(Er(),yLt)||(t==aLt||t==_m||t==sLt)&&e!=M3e?new L0e(e,t):(o=l(t,689),r=o.Yk(),r||(a_(es((mu(),so),t)),r=o.Yk()),u=(!r.i&&(r.i=new hn),r.i),s=l(Es(Zo(u.f,e)),2020),!s&&Yn(u,e,s=new L0e(e,t)),s):rLt}function z2n(e,t){var r,o;if(o=zO(e.b,t.b),!o)throw K(new Xo("Invalid hitboxes for scanline constraint calculation."));(Mht(t.b,l(zQt(e.b,t.b),60))||Mht(t.b,l(HQt(e.b,t.b),60)))&&Qp(),e.a[t.b.f]=l(wq(e.b,t.b),60),r=l(mq(e.b,t.b),60),r&&(e.a[r.f]=t.b)}function G2n(e,t){var r,o,s,u,f,p,m,y,v;for(m=l(j(e,(Ie(),mr)),12),y=_s(Z(X($i,1),Me,8,0,[m.i.n,m.n,m.a])).a,v=e.i.n.b,r=Of(e.e),s=r,u=0,f=s.length;u0?u.a?(p=u.b.Kf().a,r>p&&(s=(r-p)/2,u.d.b=s,u.d.c=s)):u.d.c=e.s+r:A3(e.u)&&(o=kbe(u.b),o.c<0&&(u.d.b=-o.c),o.c+o.b>u.b.Kf().a&&(u.d.c=o.c+o.b-u.b.Kf().a))}function J2n(e,t){var r,o,s,u,f;f=new Pe,r=t;do u=l(Ut(e.b,r),134),u.B=r.c,u.D=r.d,Ot(f.c,u),r=l(Ut(e.k,r),17);while(r);return o=(at(0,f.c.length),l(f.c[0],134)),o.j=!0,o.A=l(o.d.a.ec().Jc().Pb(),17).c.i,s=l(He(f,f.c.length-1),134),s.q=!0,s.C=l(s.d.a.ec().Jc().Pb(),17).d.i,f}function X2n(e){var t,r;r=l(j(e,(Be(),Ns)),166),t=l(j(e,(Ie(),dm)),316),r==(rc(),Ap)?(Ae(e,Ns,hL),Ae(e,dm,(up(),ZE))):r==hm?(Ae(e,Ns,hL),Ae(e,dm,(up(),_T))):t==(up(),ZE)?(Ae(e,Ns,Ap),Ae(e,dm,cL)):t==_T&&(Ae(e,Ns,hm),Ae(e,dm,cL))}function P7(){P7=Y,AL=new GUe,A4t=Fn(new ui,(Vi(),la),(Xi(),_$)),x4t=Ca(Fn(new ui,la,D$),$o,O$),N4t=Mf(Mf(YN(Ca(Fn(new ui,id,j$),$o,P$),da),M$),F$),_4t=Ca(Fn(Fn(Fn(new ui,xh,x$),da,C$),da,zk),$o,N$),k4t=Ca(Fn(Fn(new ui,da,zk),da,A$),$o,T$)}function _C(){_C=Y,R4t=Fn(Ca(new ui,(Vi(),$o),(Xi(),rSe)),la,_$),M4t=Mf(Mf(YN(Ca(Fn(new ui,id,j$),$o,P$),da),M$),F$),O4t=Ca(Fn(Fn(Fn(new ui,xh,x$),da,C$),da,zk),$o,N$),L4t=Fn(Fn(new ui,la,D$),$o,O$),D4t=Ca(Fn(Fn(new ui,da,zk),da,A$),$o,T$)}function Z2n(e,t,r,o,s){var u,f;(!lo(t)&&t.c.i.c==t.d.i.c||!qft(_s(Z(X($i,1),Me,8,0,[s.i.n,s.n,s.a])),r))&&!lo(t)&&(t.c==s?VA(t.a,0,new Eo(r)):Gn(t.a,new Eo(r)),o&&!bl(e.a,r)&&(f=l(j(t,(Be(),rs)),79),f||(f=new Du,Ae(t,rs,f)),u=new Eo(r),Wr(f,u,f.c.b,f.c),pi(e.a,u)))}function gwt(e,t){var r,o,s,u;for(u=On(mo(Sh,ph(On(mo(t==null?0:Ir(t),Th)),15))),r=u&e.b.length-1,s=null,o=e.b[r];o;s=o,o=o.a)if(o.d==u&&tp(o.i,t))return s?s.a=o.a:e.b[r]=o.a,hQe(l(wl(o.c),600),l(wl(o.f),600)),QR(l(wl(o.b),229),l(wl(o.e),229)),--e.f,++e.e,!0;return!1}function Q2n(e){var t,r;for(r=new Ft(Gt(si(e).a.Jc(),new D));an(r);)if(t=l(Qt(r),17),t.c.i.k!=(Ht(),ta))throw K(new Af(PX+U6(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function bwt(e,t){var r,o,s,u,f,p,m,y,v,T,N;s=t?new XBe:new tUe,u=!1;do for(u=!1,y=t?ic(e.b):e.b,m=y.Jc();m.Ob();)for(p=l(m.Pb(),26),N=Mb(p.a),t||ic(N),T=new V(N);T.a=0;f+=s?1:-1){for(p=t[f],m=o==(Ue(),Zt)?s?ks(p,o):ic(ks(p,o)):s?ic(ks(p,o)):ks(p,o),u&&(e.c[p.p]=m.gc()),T=m.Jc();T.Ob();)v=l(T.Pb(),12),e.d[v.p]=y++;li(r,m)}}function wwt(e,t,r){var o,s,u,f,p,m,y,v;for(u=ue(ce(e.b.Jc().Pb())),y=ue(ce(_hn(t.b))),o=Qh(So(e.a),y-r),s=Qh(So(t.a),r-u),v=br(o,s),Qh(v,1/(y-u)),this.a=v,this.b=new Pe,p=!0,f=e.b.Jc(),f.Pb();f.Ob();)m=ue(ce(f.Pb())),p&&m-r>NZ&&(this.b.Ec(r),p=!1),this.b.Ec(m);p&&this.b.Ec(r)}function tSn(e){var t,r,o,s;if(wTn(e,e.n),e.d.c.length>0){for($N(e.c);gme(e,l(q(new V(e.e.a)),126))>5,t&=31,o>=e.d)return e.e<0?(Pf(),U_t):(Pf(),gI);if(u=e.d-o,s=me(Rn,Xn,30,u+1,15,1),tyn(s,u,e.a,o,t),e.e<0){for(r=0;r0&&e.a[r]<<32-t){for(r=0;r=0?!1:(r=IE((mu(),so),s,t),r?(o=r.Gk(),(o>1||o==-1)&&d0(es(so,r))!=3):!0)):!1}function aSn(e,t,r,o){var s,u,f,p,m,y,v,T,N,I;if(m=e.c.d,y=e.d.d,m.j!=y.j)for(I=e.b,v=null,p=null,f=p1n(e),f&&I.i&&(v=e.b.i.i,p=I.i.j),s=m.j,T=null;s!=y.j;)T=t==0?Uj(s):t1e(s),u=D1e(s,I.d[s.g],r),N=D1e(T,I.d[T.g],r),f&&v&&p&&(s==v?ogt(u,v,p):T==v&&ogt(N,v,p)),Gn(o,br(u,N)),s=T}function Fme(e,t,r){var o,s,u,f,p,m;if(o=CQt(r,e.length),f=e[o],u=wQe(r,f.length),f[u].k==(Ht(),mi))for(m=t.j,s=0;s0&&(r[0]+=e.d,f-=r[0]),r[2]>0&&(r[2]+=e.d,f-=r[2]),u=b.Math.max(0,f),r[1]=b.Math.max(r[1],f),ope(e,ja,s.c+o.b+r[0]-(r[1]-f)/2,r),t==ja&&(e.c.b=u,e.c.c=s.c+o.b+(u-f)/2)}function kwt(){this.c=me(Ki,Wo,30,(Ue(),Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt])).length,15,1),this.b=me(Ki,Wo,30,Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt]).length,15,1),this.a=me(Ki,Wo,30,Z(X(Co,1),ea,64,0,[Cs,Vt,Zt,dn,Wt]).length,15,1),ple(this.c,Kr),ple(this.b,Oi),ple(this.a,Oi)}function hSn(e,t,r,o){var s,u,f,p,m;for(m=t.i,p=r[m.g][e.d[m.g]],s=!1,f=new V(t.d);f.a=s&&(e.c=!1,e.a=!1),e.b[o++]=s,e.b[o]=u,e.c||kE(e)}}function pSn(e,t,r){var o,s,u,f,p,m,y;for(y=t.d,e.a=new Ra(y.c.length),e.c=new hn,p=new V(y);p.a=0?e.Ih(y,!1,!0):R0(e,r,!1),61));e:for(u=T.Jc();u.Ob();){for(s=l(u.Pb(),57),v=0;ve.d[f.p]&&(r+=Xhe(e.b,u),l1(e.a,Re(u)));for(;!BN(e.a);)Rpe(e.b,l(xS(e.a),15).a)}return r}function Cwt(e,t,r){var o,s,u,f;for(u=(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i,s=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));s.e!=s.i.gc();)o=l(rn(s),19),(!o.a&&(o.a=new xe(En,o,10,11)),o.a).i==0||(u+=Cwt(e,o,!1));if(r)for(f=Br(t);f;)u+=(!f.a&&(f.a=new xe(En,f,10,11)),f.a).i,f=Br(f);return u}function Ay(e,t){var r,o,s,u;return e.Nj()?(o=null,s=e.Oj(),e.Rj()&&(o=e.Tj(e.Yi(t),null)),r=e.Gj(4,u=JS(e,t),null,t,s),e.Kj()&&u!=null&&(o=e.Mj(u,o)),o?(o.lj(r),o.mj()):e.Hj(r),u):(u=JS(e,t),e.Kj()&&u!=null&&(o=e.Mj(u,null),o&&o.mj()),u)}function ESn(e){var t,r,o,s,u,f,p,m,y,v;for(y=e.a,t=new hi,m=0,o=new V(e.d);o.ap.d&&(v=p.d+p.a+y));r.c.d=v,t.a.yc(r,t),m=b.Math.max(m,r.c.d+r.c.a)}return m}function SSn(e,t,r){var o,s,u,f,p,m;for(f=l(j(e,(Ie(),Zee)),16).Jc();f.Ob();){switch(u=l(f.Pb(),9),l(j(u,(Be(),Ns)),166).g){case 2:Ii(u,t);break;case 4:Ii(u,r)}for(s=new Ft(Gt(Df(u).a.Jc(),new D));an(s);)o=l(Qt(s),17),!(o.c&&o.d)&&(p=!o.d,m=l(j(o,fTe),12),p?Yi(o,m):go(o,m))}}function Mo(){Mo=Y,J$=new jw("COMMENTS",0),rl=new jw("EXTERNAL_PORTS",1),kI=new jw("HYPEREDGES",2),X$=new jw("HYPERNODES",3),Zk=new jw("NON_FREE_PORTS",4),XE=new jw("NORTH_SOUTH_PORTS",5),xI=new jw(iSt,6),Jk=new jw("CENTER_LABELS",7),Xk=new jw("END_LABELS",8),Z$=new jw("PARTITIONS",9)}function TSn(e,t,r,o,s){return o<0?(o=_E(e,s,Z(X(Ye,1),Me,2,6,[ZJ,QJ,eX,tX,uT,nX,rX,iX,oX,sX,aX,uX]),t),o<0&&(o=_E(e,s,Z(X(Ye,1),Me,2,6,["Jan","Feb","Mar","Apr",uT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function ASn(e,t,r,o,s){return o<0?(o=_E(e,s,Z(X(Ye,1),Me,2,6,[ZJ,QJ,eX,tX,uT,nX,rX,iX,oX,sX,aX,uX]),t),o<0&&(o=_E(e,s,Z(X(Ye,1),Me,2,6,["Jan","Feb","Mar","Apr",uT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function _Sn(e,t,r,o,s,u){var f,p,m,y;if(p=32,o<0){if(t[0]>=e.length||(p=uo(e,t[0]),p!=43&&p!=45)||(++t[0],o=_7(e,t),o<0))return!1;p==45&&(o=-o)}return p==32&&t[0]-r==2&&s.b==2&&(m=new z9,y=m.q.getFullYear()-x1+x1-80,f=y%100,u.a=o==f,o+=(y/100|0)*100+(o=0?v1(e):x3(v1(ag(e)))),bI[t]=_8(fh(e,t),0)?v1(fh(e,t)):x3(v1(ag(fh(e,t)))),e=mo(e,5);for(;t=y&&(m=o);m&&(v=b.Math.max(v,m.a.o.a)),v>N&&(T=y,N=v)}return T}function ISn(e){var t,r,o,s,u,f,p;for(u=new Zp(l(xn(new Tf),50)),p=Oi,r=new V(e.d);r.aPSt?_i(m,e.b):o<=PSt&&o>jSt?_i(m,e.d):o<=jSt&&o>FSt?_i(m,e.c):o<=FSt&&_i(m,e.a),u=Dwt(e,m,u);return s}function Lwt(e,t,r,o){var s,u,f,p,m,y;for(s=(o.c+o.a)/2,ec(t.j),Gn(t.j,s),ec(r.e),Gn(r.e,s),y=new bQe,p=new V(e.f);p.a1,p&&(o=new Le(s,r.b),Gn(t.a,o)),q3(t.a,Z(X($i,1),Me,8,0,[N,T]))}function Ume(e,t,r){var o,s;for(t=48;r--)M4[r]=r-48<<24>>24;for(o=70;o>=65;o--)M4[o]=o-65+10<<24>>24;for(s=102;s>=97;s--)M4[s]=s-97+10<<24>>24;for(u=0;u<10;u++)_U[u]=48+u&Ei;for(e=10;e<=15;e++)_U[e]=65+e-10&Ei}function Fwt(e,t){t.Tg("Process graph bounds",1),Ae(e,(xr(),Zte),bO(TK(Qw(new yt(null,new vt(e.b,16)),new EHe)))),Ae(e,Qte,bO(TK(Qw(new yt(null,new vt(e.b,16)),new SHe)))),Ae(e,D_e,bO(SK(Qw(new yt(null,new vt(e.b,16)),new THe)))),Ae(e,L_e,bO(SK(Qw(new yt(null,new vt(e.b,16)),new AHe)))),t.Ug()}function MSn(e){var t,r,o,s,u;s=l(j(e,(Be(),gm)),24),u=l(j(e,wB),24),r=new Le(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Eo(r),s.Gc((oc(),fv))&&(o=l(j(e,tx),8),u.Gc((Bu(),Sx))&&(o.a<=0&&(o.a=20),o.b<=0&&(o.b=20)),t.a=b.Math.max(r.a,o.a),t.b=b.Math.max(r.b,o.b)),Ke(We(j(e,vte)))||c_n(e,r,t)}function PSn(e){var t,r,o,s,u,f,p;for(t=!1,r=0,s=new V(e.d.b);s.a>19)return"-"+$wt(k_(e));for(r=e,o="";!(r.l==0&&r.m==0&&r.h==0);){if(s=HW(tF),r=k0e(r,s,!0),t=""+UQe(O1),!(r.l==0&&r.m==0&&r.h==0))for(u=9-t.length;u>0;u--)t="0"+t;o=t+o}return o}function jSn(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(t[e]!==void 0)return!1;var r=Object.getOwnPropertyNames(t);return!(r.length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function FSn(e,t,r){var o,s,u,f,p,m,y,v,T;for(o=r.c,s=r.d,p=qd(t.c),m=qd(t.d),o==t.c?(p=xme(e,p,s),m=Pbt(t.d)):(p=Pbt(t.c),m=xme(e,m,s)),y=new F9(t.a),Wr(y,p,y.a,y.a.a),Wr(y,m,y.c.b,y.c),f=t.c==o,T=new cZe,u=0;u=e.a||!Sbe(t,r))return-1;if(ry(l(o.Kb(t),22)))return 1;for(s=0,f=l(o.Kb(t),22).Jc();f.Ob();)if(u=l(f.Pb(),17),m=u.c.i==t?u.d.i:u.c.i,p=Gme(e,m,r,o),p==-1||(s=b.Math.max(s,p),s>e.c-1))return-1;return s+1}function ef(){ef=Y,qB=new Mi((_n(),px),1.3),lOt=new Mi(av,(Lt(),!1)),Pke=new Ab(15),s4=new Mi(df,Pke),a4=new Mi(Od,15),sOt=jL,cOt=Sm,dOt=b2,fOt=G1,uOt=g2,xne=m4,hOt=uv,Bke=(c0e(),rOt),$ke=nOt,Cne=oOt,Uke=iOt,Mke=QRt,Nne=ZRt,Lke=XRt,Fke=tOt,Oke=b4,aOt=lre,IL=KRt,Rke=WRt,RL=YRt,jke=eOt,Dke=JRt}function Bwt(e,t){var r,o,s,u,f,p;if(be(t)===be(e))return!0;if(!se(t,16)||(o=l(t,16),p=e.gc(),o.gc()!=p))return!1;if(f=o.Jc(),e.Wi()){for(r=0;r0){if(e.Zj(),t!=null){for(u=0;u>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw K(new kf("Invalid hexadecimal"))}}function Hwt(e,t,r,o){var s,u,f,p,m,y;for(m=jY(e,r),y=jY(t,r),s=!1;m&&y&&(o||Fbn(m,y,r));)f=jY(m,r),p=jY(y,r),c6(t),c6(e),u=m.c,PJ(m,!1),PJ(y,!1),r?(E1(t,y.p,u),t.p=y.p,E1(e,m.p+1,u),e.p=m.p):(E1(e,m.p,u),e.p=m.p,E1(t,y.p+1,u),t.p=y.p),Ii(m,null),Ii(y,null),m=f,y=p,s=!0;return s}function zwt(e){switch(e.g){case 0:return new kWe;case 1:return new pWe;case 3:return new Met;case 4:return new cUe;case 5:return new fit;case 6:return new xWe;case 2:return new gWe;case 7:return new vWe;case 8:return new hWe;default:throw K(new jt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function HSn(e,t,r,o){var s,u,f,p,m;for(s=!1,u=!1,p=new V(o.j);p.a=t.length)throw K(new Na("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new PO(o),mK(this.e,this.c,(Ue(),Wt)),this.i=new PO(o),mK(this.i,this.c,Zt),this.f=new Pot(this.c),this.a=!u&&s.i&&!s.s&&this.c[0].k==(Ht(),mi),this.a&&ayn(this,e,t.length)}function qwt(e,t){var r,o,s,u,f,p;u=!e.B.Gc((Bu(),JL)),f=e.B.Gc(Tre),e.a=new Agt(f,u,e.c),e.n&&ghe(e.a.n,e.n),iq(e.g,(Sd(),ja),e.a),t||(o=new cC(1,u,e.c),o.n.a=e.k,NS(e.p,(Ue(),Vt),o),s=new cC(1,u,e.c),s.n.d=e.k,NS(e.p,dn,s),p=new cC(0,u,e.c),p.n.c=e.k,NS(e.p,Wt,p),r=new cC(0,u,e.c),r.n.b=e.k,NS(e.p,Zt,r))}function GSn(e){var t,r,o;switch(t=l(j(e.d,(Be(),_p)),225),t.g){case 2:r=MNn(e);break;case 3:r=(o=new Pe,ei(lr(Ia(gs(gs(new yt(null,new vt(e.d.b,16)),new wBe),new yBe),new vBe),new rBe),new VYe(o)),o);break;default:throw K(new Xo("Compaction not supported for "+t+" edges."))}rkn(e,r),co(new Yh(e.g),new HYe(e))}function qSn(e,t){var r,o,s,u,f,p,m;if(t.Tg("Process directions",1),r=l(j(e,(Ps(),aw)),87),r!=(vi(),ff))for(s=An(e.b,0);s.b!=s.d.c;){switch(o=l(Sn(s),41),p=l(j(o,(xr(),xL)),15).a,m=l(j(o,NL),15).a,r.g){case 4:m*=-1;break;case 1:u=p,p=m,m=u;break;case 2:f=p,p=-m,m=f}Ae(o,xL,Re(p)),Ae(o,NL,Re(m))}t.Ug()}function VSn(e){var t,r,o,s,u,f,p,m;for(m=new elt,p=new V(e.a);p.a0&&t=0)return!1;if(t.p=r.b,je(r.e,t),s==(Ht(),gi)||s==Aa){for(f=new V(t.j);f.ae.d[p.p]&&(r+=Xhe(e.b,u),l1(e.a,Re(u)))):++f;for(r+=e.b.d*f;!BN(e.a);)Rpe(e.b,l(xS(e.a),15).a)}return r}function nyt(e){var t,r,o,s,u,f;return u=0,t=Sl(e),t.ik()&&(u|=4),e.Bb&yu&&(u|=2),se(e,104)?(r=l(e,20),s=Do(r),r.Bb&Ws&&(u|=32),s&&(ln(ty(s)),u|=8,f=s.t,(f>1||f==-1)&&(u|=16),s.Bb&Ws&&(u|=64)),r.Bb&xo&&(u|=mp),u|=Tl):se(t,462)?u|=512:(o=t.ik(),o&&o.i&1&&(u|=256)),e.Bb&512&&(u|=128),u}function iTn(e,t){var r;return e.f==jre?(r=d0(es((mu(),so),t)),e.e?r==4&&t!=(tT(),YT)&&t!=(tT(),KT)&&t!=(tT(),Fre)&&t!=(tT(),$re):r==2):e.d&&(e.d.Gc(t)||e.d.Gc(DS(es((mu(),so),t)))||e.d.Gc(IE((mu(),so),e.b,t)))?!0:e.f&&Ime((mu(),e.f),qO(es(so,t)))?(r=d0(es(so,t)),e.e?r==4:r==2):!1}function oTn(e,t){var r,o,s,u,f,p,m,y;for(u=new Pe,t.b.c.length=0,r=l(Au(Rhe(new yt(null,new vt(new Yh(e.a.b),1))),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),s=r.Jc();s.Ob();)if(o=l(s.Pb(),15),f=Ghe(e.a,o),f.b!=0)for(p=new ra(t),Ot(u.c,p),p.p=o.a,y=An(f,0);y.b!=y.d.c;)m=l(Sn(y),9),Ii(m,p);li(t.b,u)}function pJ(e){var t,r,o,s,u,f,p;for(p=new hn,o=new V(e.a.b);o.aim&&(s-=im),p=l(ye(o,HT),8),y=p.a,T=p.b+e,u=b.Math.atan2(T,y),u<0&&(u+=im),u+=t,u>im&&(u-=im),Ud(),Yl(1e-10),b.Math.abs(s-u)<=1e-10||s==u||isNaN(s)&&isNaN(u)?0:su?1:_b(isNaN(s),isNaN(u))}function Yme(e,t,r,o){var s,u,f;t&&(u=ue(ce(j(t,(xr(),xg))))+o,f=r+ue(ce(j(t,MB)))/2,Ae(t,xL,Re(On(Gs(b.Math.round(u))))),Ae(t,NL,Re(On(Gs(b.Math.round(f))))),t.d.b==0||Yme(e,l(D8((s=An(new Xh(t).a.d,0),new qv(s))),41),r+ue(ce(j(t,MB)))+e.b,o+ue(ce(j(t,cx)))),j(t,tne)!=null&&Yme(e,l(j(t,tne),41),r,o))}function cTn(e,t){var r,o,s,u;if(u=l(ye(e,(_n(),m2)),64).g-l(ye(t,m2),64).g,u!=0)return u;if(r=l(ye(e,gre),15),o=l(ye(t,gre),15),r&&o&&(s=r.a-o.a,s!=0))return s;switch(l(ye(e,m2),64).g){case 1:return yr(e.i,t.i);case 2:return yr(e.j,t.j);case 3:return yr(t.i,e.i);case 4:return yr(t.j,e.j);default:throw K(new Xo(Ewe))}}function Jme(e){var t,r,o;return e.Db&64?YY(e):(t=new fc(Qve),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new xe(Is,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new xe(Is,e,1,7)),l(ie(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(Qm(zn(Qm(zn(Qm(zn(Qm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function ryt(e){var t,r,o;return e.Db&64?YY(e):(t=new fc(eEe),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new xe(Is,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new xe(Is,e,1,7)),l(ie(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(Qm(zn(Qm(zn(Qm(zn(Qm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function lTn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L;for(I=-1,L=0,v=t,T=0,N=v.length;T0&&++L;++I}return L}function dTn(e,t){var r,o,s,u,f;for(t==(Q3(),Ute)&&mC(l(wr(e.a,(wy(),iL)),16)),s=l(wr(e.a,(wy(),iL)),16).Jc();s.Ob();)switch(o=l(s.Pb(),108),r=l(He(o.j,0),114).d.j,u=new Tu(o.j),_i(u,new NBe),t.g){case 2:HY(e,u,r,(S0(),P1),1);break;case 1:case 0:f=t2n(u),HY(e,new If(u,0,f),r,(S0(),P1),0),HY(e,new If(u,f,u.c.length),r,P1,1)}}function fTn(e){var t,r,o,s,u,f,p;for(s=l(j(e,(Ie(),ew)),9),o=e.j,r=(at(0,o.c.length),l(o.c[0],12)),f=new V(s.j);f.as.p?(Ni(u,dn),u.d&&(p=u.o.b,t=u.a.b,u.a.b=p-t)):u.j==dn&&s.p>e.p&&(Ni(u,Vt),u.d&&(p=u.o.b,t=u.a.b,u.a.b=-(p-t)));break}return s}function Xme(e,t){var r,o,s,u,f,p,m;if(t==null||t.length==0)return null;if(s=l(ma(e.a,t),144),!s){for(o=(p=new Jh(e.b).a.vc().Jc(),new Dw(p));o.a.Ob();)if(r=(u=l(o.a.Pb(),45),l(u.kd(),144)),f=r.c,m=t.length,mt(f.substr(f.length-m,m),t)&&(t.length==f.length||uo(f,f.length-t.length-1)==46)){if(s)return null;s=r}s&&Qo(e.a,t,s)}return s}function Q_(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(u=new Le(t,r),v=new V(e.a);v.amg&&ZK(p,u,r),ayt(e,v)}function uyt(e,t,r,o,s,u,f){if(e.c=o.Jf().a,e.d=o.Jf().b,s&&(e.c+=s.Jf().a,e.d+=s.Jf().b),e.b=t.Kf().a,e.a=t.Kf().b,!s)r?e.c-=f+t.Kf().a:e.c+=o.Kf().a+f;else switch(s.$f().g){case 0:case 2:e.c+=s.Kf().a+f+u.a+f;break;case 4:e.c-=f+u.a+f+t.Kf().a;break;case 1:e.c+=s.Kf().a+f,e.d-=f+u.b+f+t.Kf().b;break;case 3:e.c+=s.Kf().a+f,e.d+=s.Kf().b+f+u.b+f}}function gTn(e,t,r,o){var s,u,f,p,m,y,v,T,N,I,L;if(u=r,r1,p&&(o=new Le(s,r.b),Gn(t.a,o)),q3(t.a,Z(X($i,1),Me,8,0,[N,T]))}function _1(){_1=Y,_B=new Fw(_d,0),vL=new Fw("NIKOLOV",1),EL=new Fw("NIKOLOV_PIXEL",2),XAe=new Fw("NIKOLOV_IMPROVED",3),ZAe=new Fw("NIKOLOV_IMPROVED_PIXEL",4),JAe=new Fw("DUMMYNODE_PERCENTAGE",5),QAe=new Fw("NODECOUNT_PERCENTAGE",6),kB=new Fw("NO_BOUNDARY",7),sx=new Fw("MODEL_ORDER_LEFT_TO_RIGHT",8),qI=new Fw("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bJ(e,t){var r,o,s,u,f,p,m,y,v,T,N,I;return v=null,N=vme(e,t),o=null,p=l(ye(t,(_n(),C6t)),301),p?o=p:o=(z3(),WL),I=o,I==(z3(),WL)&&(s=null,y=l(Ut(e.r,N),301),y?s=y:s=Sre,I=s),Yn(e.r,t,I),u=null,m=l(ye(t,N6t),280),m?u=m:u=(R_(),UL),T=u,T==(R_(),UL)&&(f=null,r=l(Ut(e.b,N),280),r?f=r:f=sU,T=f),v=l(Yn(e.b,t,T),280),v}function TTn(e){var t,r,o,s,u;for(o=e.length,t=new UN,u=0;u=40,f&&SAn(e),P_n(e),tSn(e),r=egt(e),o=0;r&&o0&&Gn(e.g,u)):(e.d[f]-=y+1,e.d[f]<=0&&e.a[f]>0&&Gn(e.f,u))))}function myt(e,t,r,o){var s,u,f,p,m,y,v;for(m=new Le(r,o),Ri(m,l(j(t,(xr(),ux)),8)),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),br(y.e,m),Gn(e.b,y);for(p=l(Au(Nhe(new yt(null,new vt(t.a,16))),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16).Jc();p.Ob();){for(f=l(p.Pb(),65),u=An(f.a,0);u.b!=u.d.c;)s=l(Sn(u),8),s.a+=m.a,s.b+=m.b;Gn(e.a,f)}}function o0e(e,t){var r,o,s,u;if(0<(se(e,18)?l(e,18).gc():yd(e.Jc()))){if(s=t,1=0&&m1)&&t==1&&l(e.a[e.b],9).k==(Ht(),ta)?oT(l(e.a[e.b],9),(vc(),Ih)):o&&(!r||(e.c-e.b&e.a.length-1)>1)&&t==1&&l(e.a[e.c-1&e.a.length-1],9).k==(Ht(),ta)?oT(l(e.a[e.c-1&e.a.length-1],9),(vc(),q1)):(e.c-e.b&e.a.length-1)==2?(oT(l(J3(e),9),(vc(),Ih)),oT(l(J3(e),9),q1)):wEn(e,s),Yhe(e)}function BTn(e){var t,r,o,s,u,f,p,m;for(m=new hn,t=new KG,f=e.Jc();f.Ob();)s=l(f.Pb(),9),p=i0(uO(new Eb,s),t),eu(m.f,s,p);for(u=e.Jc();u.Ob();)for(s=l(u.Pb(),9),o=new Ft(Gt(Rr(s).a.Jc(),new D));an(o);)r=l(Qt(o),17),!lo(r)&&Ql($l(Ul(Bl(Hl(new gl,b.Math.max(1,l(j(r,(Be(),IAe)),15).a)),1),l(Ut(m,r.c.i),126)),l(Ut(m,r.d.i),126)));return t}function vyt(e,t,r,o){var s,u,f,p,m,y,v,T,N,I;if(lfn(e,t,r),u=t[r],I=o?(Ue(),Wt):(Ue(),Zt),vtn(t.length,r,o)){for(s=t[o?r-1:r+1],hpe(e,s,o?(Lo(),Fa):(Lo(),Cu)),m=u,v=0,N=m.length;vu*2?(v=new dj(T),y=hu(f)/Qu(f),m=BJ(v,t,new rS,r,o,s,y),br(wd(v.e),m),T.c.length=0,u=0,Ot(T.c,v),Ot(T.c,f),u=hu(v)*Qu(v)+hu(f)*Qu(f)):(Ot(T.c,f),u+=hu(f)*Qu(f));return T}function HTn(e,t){var r,o,s,u,f,p,m;for(t.Tg("Port order processing",1),m=l(j(e,(Be(),CAe)),426),o=new V(e.b);o.ar?t:r;y<=T;++y)y==r?p=o++:(u=s[y],v=L.$l(u.Jk()),y==t&&(m=y==T&&!v?o-1:o),v&&++o);return N=l(oC(e,t,r),76),p!=m&&DA(e,new o6(e.e,7,f,Re(p),I.kd(),m)),N}}else return l(rJ(e,t,r),76);return l(oC(e,t,r),76)}function s0e(e,t){var r,o,s,u,f,p,m,y,v,T;for(T=0,u=new iE,l1(u,t);u.b!=u.c;)for(m=l(xS(u),221),y=0,v=l(j(t.j,(Be(),Ch)),270),l(j(t.j,MI),330),f=ue(ce(j(t.j,pL))),p=ue(ce(j(t.j,ute))),v!=(pp(),B1)&&(y+=f*_En(t.j,m.e,v),y+=p*lTn(t.j,m.e)),T+=j1t(m.d,m.e)+y,s=new V(m.b);s.a=0&&(p=Xbn(e,f),!(p&&(y<22?m.l|=1<>>1,f.m=v>>>1|(T&1)<<21,f.l=N>>>1|(v&1)<<21,--y;return r&&DK(m),u&&(o?(O1=k_(e),s&&(O1=Oht(O1,(b_(),FEe)))):O1=Ua(e.l,e.m,e.h)),m}function qTn(e,t){var r,o,s,u,f,p,m,y,v,T;for(y=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,p=new V(e.a);p.a0&&(Yt(0,e.length),e.charCodeAt(0)==45||(Yt(0,e.length),e.charCodeAt(0)==43))?1:0,o=f;or)throw K(new kf(j0+e+'"'));return p}function VTn(e){var t,r,o,s,u,f,p;for(f=new Sr,u=new V(e.a);u.a=e.length)return r.o=0,!0;switch(uo(e,t[0])){case 43:s=1;break;case 45:s=-1;break;default:return r.o=0,!0}if(++t[0],u=t[0],f=_7(e,t),f==0&&t[0]==u)return!1;if(t[0]p&&(p=s,v.c.length=0),s==p&&je(v,new ko(r.c.i,r)));St(),_i(v,e.c),kb(e.b,m.p,v)}}function ZTn(e,t){var r,o,s,u,f,p,m,y,v;for(f=new V(t.b);f.ap&&(p=s,v.c.length=0),s==p&&je(v,new ko(r.d.i,r)));St(),_i(v,e.c),kb(e.f,m.p,v)}}function QTn(e){var t,r,o,s,u,f,p;for(u=Gd(e),s=new en((!e.e&&(e.e=new Et(Cr,e,7,4)),e.e));s.e!=s.i.gc();)if(o=l(rn(s),74),p=Vo(l(ie((!o.c&&(o.c=new Et(pn,o,5,8)),o.c),0),83)),!ay(p,u))return!0;for(r=new en((!e.d&&(e.d=new Et(Cr,e,8,5)),e.d));r.e!=r.i.gc();)if(t=l(rn(r),74),f=Vo(l(ie((!t.b&&(t.b=new Et(pn,t,4,7)),t.b),0),83)),!ay(f,u))return!0;return!1}function eAn(e){var t,r,o,s,u;o=l(j(e,(Ie(),mr)),19),u=l(ye(o,(Be(),gm)),185).Gc((oc(),Am)),e.e||(s=l(j(e,_a),24),t=new Le(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),s.Gc((Mo(),rl))?(Vn(o,Zr,(qi(),fa)),L0(o,t.a,t.b,!1,!0)):Ke(We(ye(o,vte)))||L0(o,t.a,t.b,!0,!0)),u?Vn(o,gm,ct(Am)):Vn(o,gm,(r=l(md(_4),10),new Hc(r,l(Gl(r,r.length),10),0)))}function tAn(e,t){var r,o,s,u,f,p,m,y;if(y=We(j(t,(Ps(),iRt))),y==null||(Mt(y),y)){for(xvn(e,t),s=new Pe,m=An(t.b,0);m.b!=m.d.c;)f=l(Sn(m),41),r=Gbe(e,f,null),r&&(qs(r,t),Ot(s.c,r));if(e.a=null,e.b=null,s.c.length>1)for(o=new V(s);o.a=0&&p!=r&&(u=new Pi(e,1,p,f,null),o?o.lj(u):o=u),r>=0&&(u=new Pi(e,1,r,p==r?f:null,t),o?o.lj(u):o=u)),o}function Syt(e){var t,r,o;if(e.b==null){if(o=new Jp,e.i!=null&&(zo(o,e.i),o.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(Zsn(e.i)||(o.a+="//"),zo(o,e.a)),e.d!=null&&(o.a+="/",zo(o,e.d)),e.f&16&&(o.a+="/"),t=0,r=e.j.length;tN?!1:(T=(m=OC(o,N,!1),m.a),v+p+T<=t.b&&(s6(r,u-r.s),r.c=!0,s6(o,u-r.s),$6(o,r.s,r.t+r.d+p),o.k=!0,lge(r.q,o),I=!0,s&&(mj(t,o),o.j=t,e.c.length>f&&(z6((at(f,e.c.length),l(e.c[f],189)),o),(at(f,e.c.length),l(e.c[f],189)).a.c.length==0&&og(e,f)))),I)}function uAn(e,t){var r,o,s,u,f,p;if(t.Tg("Partition midprocessing",1),s=new g0,ei(lr(new yt(null,new vt(e.a,16)),new n$e),new kYe(s)),s.d!=0){for(p=l(Au(Rhe((u=s.i,new yt(null,(u||(s.i=new sE(s,s.c))).Lc()))),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),o=p.Jc(),r=l(o.Pb(),15);o.Ob();)f=l(o.Pb(),15),e2n(l(wr(s,r),24),l(wr(s,f),24)),r=f;t.Ug()}}function NC(e,t){var r,o,s,u,f;if(e.Ab){if(e.Ab){if(f=e.Ab.i,f>0){if(s=l(e.Ab.g,2012),t==null){for(u=0;ur.s&&pm+L&&(U=T.g+N.g,N.a=(N.g*N.a+T.g*T.a)/U,N.g=U,T.f=N,r=!0)),u=p,T=N;return r}function dAn(e,t,r){var o,s,u,f,p,m,y,v;for(r.Tg(_St,1),Zs(e.b),Zs(e.a),p=null,u=An(t.b,0);!p&&u.b!=u.d.c;)y=l(Sn(u),41),Ke(We(j(y,(xr(),z1))))&&(p=y);for(m=new Sr,Wr(m,p,m.c.b,m.c),sEt(e,m),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),f=In(j(y,(xr(),e4))),s=ma(e.b,f)!=null?l(ma(e.b,f),15).a:0,Ae(y,Xte,Re(s)),o=1+(ma(e.a,f)!=null?l(ma(e.a,f),15).a:0),Ae(y,O_e,Re(o));r.Ug()}function Nyt(e){t0(e,new Xb(Zm(Ym(Xm(Jm(new wb,q0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new mGe))),Oe(e,q0,$0,jxe),Oe(e,q0,F0,15),Oe(e,q0,xD,Re(0)),Oe(e,q0,Gve,ze(Lxe)),Oe(e,q0,ME,ze(b6t)),Oe(e,q0,pT,ze(m6t)),Oe(e,q0,bk,QSt),Oe(e,q0,mk,ze(Mxe)),Oe(e,q0,gT,ze(Pxe)),Oe(e,q0,qve,ze(ire)),Oe(e,q0,xF,ze(g6t))}function Cyt(e,t){var r,o,s,u,f,p,m,y,v;if(s=e.i,f=s.o.a,u=s.o.b,f<=0&&u<=0)return Ue(),Cs;switch(y=e.n.a,v=e.n.b,p=e.o.a,r=e.o.b,t.g){case 2:case 1:if(y<0)return Ue(),Wt;if(y+p>f)return Ue(),Zt;break;case 4:case 3:if(v<0)return Ue(),Vt;if(v+r>u)return Ue(),dn}return m=(y+p/2)/f,o=(v+r/2)/u,m+o<=1&&m-o<=0?(Ue(),Wt):m+o>=1&&m-o>=0?(Ue(),Zt):o<.5?(Ue(),Vt):(Ue(),dn)}function Iyt(e,t,r,o,s,u,f){var p,m,y,v,T,N;for(N=new bS,y=t.Jc();y.Ob();)for(p=l(y.Pb(),845),T=new V(p.Pf());T.a0?p.a?(y=p.b.Kf().b,s>y&&(e.v||p.c.d.c.length==1?(f=(s-y)/2,p.d.d=f,p.d.a=f):(r=l(He(p.c.d,0),190).Kf().b,o=(r-y)/2,p.d.d=b.Math.max(0,o),p.d.a=s-o-y))):p.d.a=e.t+s:A3(e.u)&&(u=kbe(p.b),u.d<0&&(p.d.d=-u.d),u.d+u.a>p.b.Kf().b&&(p.d.a=u.d+u.a-p.b.Kf().b))}function ed(){ed=Y,ST=new Mi((_n(),BL),Re(1)),w$=new Mi(Od,80),axt=new Mi(hNe,5),Xkt=new Mi(px,gk),oxt=new Mi(mre,Re(1)),sxt=new Mi(wre,(Lt(),!0)),v2e=new Ab(50),rxt=new Mi(df,v2e),m2e=b4,E2e=gx,Zkt=new Mi(tU,!1),y2e=m4,txt=av,nxt=G1,ext=Sm,Qkt=g2,ixt=uv,w2e=(Pbe(),Gkt),ree=Kkt,m$=zkt,nee=qkt,S2e=Wkt,lxt=mx,dxt=iU,cxt=lv,uxt=bx,T2e=(GS(),hv),new Mi(GT,T2e)}function pAn(e,t){var r;switch(p6(e)){case 6:return zi(t);case 7:return Bw(t);case 8:return $w(t);case 3:return Array.isArray(t)&&(r=p6(t),!(r>=14&&r<=16));case 11:return t!=null&&typeof t===qJ;case 12:return t!=null&&(typeof t===fD||typeof t==qJ);case 0:return mY(t,e.__elementTypeId$);case 2:return XV(t)&&t.Rm!==ge;case 1:return XV(t)&&t.Rm!==ge||mY(t,e.__elementTypeId$);default:return!0}}function gAn(e){var t,r,o,s;o=e.o,Gw(),e.A.dc()||pr(e.A,f2e)?s=o.a:(e.D?s=b.Math.max(o.a,yC(e.f)):s=yC(e.f),e.A.Gc((oc(),KL))&&!e.B.Gc((Bu(),k4))&&(s=b.Math.max(s,yC(l(Go(e.p,(Ue(),Vt)),256))),s=b.Math.max(s,yC(l(Go(e.p,dn),256)))),t=yht(e),t&&(s=b.Math.max(s,t.a))),Ke(We(e.e.Rf().mf((_n(),av))))?o.a=b.Math.max(o.a,s):o.a=s,r=e.f.i,r.c=0,r.b=s,TJ(e.f)}function Ryt(e,t){var r,o,s,u;return o=b.Math.min(b.Math.abs(e.c-(t.c+t.b)),b.Math.abs(e.c+e.b-t.c)),u=b.Math.min(b.Math.abs(e.d-(t.d+t.a)),b.Math.abs(e.d+e.a-t.d)),r=b.Math.abs(e.c+e.b/2-(t.c+t.b/2)),r>e.b/2+t.b/2||(s=b.Math.abs(e.d+e.a/2-(t.d+t.a/2)),s>e.a/2+t.a/2)?1:r==0&&s==0?0:r==0?u/s+1:s==0?o/r+1:b.Math.min(o/r,u/s)+1}function bAn(e,t){var r,o,s,u,f,p,m;for(u=0,p=0,m=0,s=new V(e.f.e);s.a0&&e.d!=(U3(),see)&&(p+=f*(o.d.a+e.a[t.a][o.a]*(t.d.a-o.d.a)/r)),r>0&&e.d!=(U3(),iee)&&(m+=f*(o.d.b+e.a[t.a][o.a]*(t.d.b-o.d.b)/r)));switch(e.d.g){case 1:return new Le(p/u,t.d.b);case 2:return new Le(t.d.a,m/u);default:return new Le(p/u,m/u)}}function Oyt(e){var t,r,o,s,u,f;for(r=(!e.a&&(e.a=new yi(Ic,e,5)),e.a).i+2,f=new Ra(r),je(f,new Le(e.j,e.k)),ei(new yt(null,(!e.a&&(e.a=new yi(Ic,e,5)),new vt(e.a,16))),new oXe(f)),je(f,new Le(e.b,e.c)),t=1;t0&&(N6(m,!1,(vi(),is)),N6(m,!0,cs)),Oa(t.g,new ott(e,r)),Yn(e.g,t,r)}function c0e(){c0e=Y,eOt=new ht(bve,(Lt(),!1)),Re(-1),WRt=new ht(mve,Re(-1)),Re(-1),KRt=new ht(wve,Re(-1)),YRt=new ht(yve,!1),JRt=new ht(vve,!1),Ike=(VP(),Ine),iOt=new ht(Eve,Ike),oOt=new ht(Sve,-1),Cke=(qj(),kne),rOt=new ht(Tve,Cke),nOt=new ht(Ave,!0),xke=(nj(),Rne),QRt=new ht(_ve,xke),ZRt=new ht(kve,!1),Re(1),XRt=new ht(xve,Re(1)),Nke=($j(),One),tOt=new ht(Nve,Nke)}function Myt(){Myt=Y;var e;for(VEe=Z(X(Rn,1),Xn,30,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),BQ=me(Rn,Xn,30,37,15,1),F_t=Z(X(Rn,1),Xn,30,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),WEe=me(hw,t2t,30,37,14,1),e=2;e<=36;e++)BQ[e]=po(b.Math.pow(e,VEe[e])),WEe[e]=q6(bD,BQ[e])}function mAn(e){var t;if((!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i!=1)throw K(new jt(TTt+(!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i));return t=new Du,NK(l(ie((!e.b&&(e.b=new Et(pn,e,4,7)),e.b),0),83))&&bo(t,AEt(e,NK(l(ie((!e.b&&(e.b=new Et(pn,e,4,7)),e.b),0),83)),!1)),NK(l(ie((!e.c&&(e.c=new Et(pn,e,5,8)),e.c),0),83))&&bo(t,AEt(e,NK(l(ie((!e.c&&(e.c=new Et(pn,e,5,8)),e.c),0),83)),!0)),t}function Pyt(e,t){var r,o,s,u,f;for(t.d?s=e.a.c==(Cf(),sw)?si(t.b):Rr(t.b):s=e.a.c==(Cf(),kg)?si(t.b):Rr(t.b),u=!1,o=new Ft(Gt(s.a.Jc(),new D));an(o);)if(r=l(Qt(o),17),f=Ke(e.a.f[e.a.g[t.b.p].p]),!(!f&&!lo(r)&&r.c.i.c==r.d.i.c)&&!(Ke(e.a.n[e.a.g[t.b.p].p])||Ke(e.a.n[e.a.g[t.b.p].p]))&&(u=!0,bl(e.b,e.a.g[Dbn(r,t.b).p])))return t.c=!0,t.a=r,t;return t.c=u,t.a=null,t}function l0e(e,t,r){var o,s,u,f,p,m,y;if(o=r.gc(),o==0)return!1;if(e.Nj())if(m=e.Oj(),b1e(e,t,r),f=o==1?e.Gj(3,null,r.Jc().Pb(),t,m):e.Gj(5,null,r,t,m),e.Kj()){for(p=o<100?null:new Qg(o),u=t+o,s=t;s0){for(f=0;f>16==-15&&e.Cb.Vh()&&QW(new XW(e.Cb,9,13,r,e.c,pg(ju(l(e.Cb,62)),e))):se(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,se(t,89)||(t=(Tt(),Ml)),se(r,89)||(r=(Tt(),Ml)),QW(new XW(e.Cb,9,10,r,t,pg(oa(l(e.Cb,29)),e)))))),e.c}function $yt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L;if(t==r)return!0;if(t=pme(e,t),r=pme(e,r),o=AY(t),o){if(v=AY(r),v!=o)return v?(m=o.kk(),L=v.kk(),m==L&&m!=null):!1;if(f=(!t.d&&(t.d=new yi(Uo,t,1)),t.d),u=f.i,N=(!r.d&&(r.d=new yi(Uo,r,1)),r.d),u==N.i){for(y=0;y0,p=Gj(t,u),bde(r?p.b:p.g,t),wE(p).c.length==1&&Wr(o,p,o.c.b,o.c),s=new ko(u,t),l1(e.o,s),Xa(e.e.a,u))}function Hyt(e,t){var r,o,s,u,f,p,m;return o=b.Math.abs(pP(e.b).a-pP(t.b).a),p=b.Math.abs(pP(e.b).b-pP(t.b).b),s=0,m=0,r=1,f=1,o>e.b.b/2+t.b.b/2&&(s=b.Math.min(b.Math.abs(e.b.c-(t.b.c+t.b.b)),b.Math.abs(e.b.c+e.b.b-t.b.c)),r=1-s/o),p>e.b.a/2+t.b.a/2&&(m=b.Math.min(b.Math.abs(e.b.d-(t.b.d+t.b.a)),b.Math.abs(e.b.d+e.b.a-t.b.d)),f=1-m/p),u=b.Math.min(r,f),(1-u)*b.Math.sqrt(o*o+p*p)}function TAn(e){var t,r,o,s;for($J(e,e.e,e.f,(p0(),H1),!0,e.c,e.i),$J(e,e.e,e.f,H1,!1,e.c,e.i),$J(e,e.e,e.f,u2,!0,e.c,e.i),$J(e,e.e,e.f,u2,!1,e.c,e.i),vAn(e,e.c,e.e,e.f,e.i),o=new Ji(e.i,0);o.b=65;r--)mf[r]=r-65<<24>>24;for(o=122;o>=97;o--)mf[o]=o-97+26<<24>>24;for(s=57;s>=48;s--)mf[s]=s-48+52<<24>>24;for(mf[43]=62,mf[47]=63,u=0;u<=25;u++)Mg[u]=65+u&Ei;for(f=26,m=0;f<=51;++f,m++)Mg[f]=97+m&Ei;for(e=52,p=0;e<=61;++e,p++)Mg[e]=48+p&Ei;Mg[62]=43,Mg[63]=47}function zyt(e,t){var r,o,s,u,f,p;return s=sge(e),p=sge(t),s==p?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(o=e.e-t.e,r=(e.d>0?e.d:b.Math.floor((e.a-1)*n2t)+1)-(t.d>0?t.d:b.Math.floor((t.a-1)*n2t)+1),r>o+1?s:r0&&(f=dE(f,nvt(o))),Pgt(u,f))):sy&&(N=0,I+=m+t,m=0),Q_(f,N,I),r=b.Math.max(r,N+v.a),m=b.Math.max(m,v.b),N+=v.a+t;return new Le(r+t,I+m+t)}function p0e(e,t){var r,o,s,u,f,p,m;if(!Gd(e))throw K(new Xo(STt));if(o=Gd(e),u=o.g,s=o.f,u<=0&&s<=0)return Ue(),Cs;switch(p=e.i,m=e.j,t.g){case 2:case 1:if(p<0)return Ue(),Wt;if(p+e.g>u)return Ue(),Zt;break;case 4:case 3:if(m<0)return Ue(),Vt;if(m+e.f>s)return Ue(),dn}return f=(p+e.g/2)/u,r=(m+e.f/2)/s,f+r<=1&&f-r<=0?(Ue(),Wt):f+r>=1&&f-r>=0?(Ue(),Zt):r<.5?(Ue(),Vt):(Ue(),dn)}function kAn(e,t,r,o,s){var u,f;if(u=To(Gi(t[0],Po),Gi(o[0],Po)),e[0]=On(u),u=a0(u,32),r>=s){for(f=1;f0&&(s.b[f++]=0,s.b[f++]=u.b[0]-1),t=1;tT?y=0:y=-1,t.a=N+o,f=0,s=y+1;s0&&(FG(m,m.d-s.d),s.c==(vd(),U1)&&QXt(m,m.a-s.d),m.d<=0&&m.i>0&&Wr(t,m,t.c.b,t.c)));for(u=new V(e.f);u.a0&&(v9(p,p.i-s.d),s.c==(vd(),U1)&&eZt(p,p.b-s.d),p.i<=0&&p.d>0&&Wr(r,p,r.c.b,r.c)))}function CAn(e,t,r,o,s){var u,f,p,m,y,v,T,N,I;for(St(),_i(e,new EGe),f=$O(e),I=new Pe,N=new Pe,p=null,m=0;f.b!=0;)u=l(f.b==0?null:(un(f.b!=0),Vc(f,f.a.a)),168),!p||hu(p)*Qu(p)/21&&(m>hu(p)*Qu(p)/2||f.b==0)&&(T=new dj(N),v=hu(p)/Qu(p),y=BJ(T,t,new rS,r,o,s,v),br(wd(T.e),y),p=T,Ot(I.c,T),m=0,N.c.length=0));return li(I,N),I}function ua(e,t,r,o,s){Qp();var u,f,p,m,y,v,T;if(Wfe(e,"src"),Wfe(r,"dest"),T=nc(e),m=nc(r),bfe((T.i&4)!=0,"srcType is not an array"),bfe((m.i&4)!=0,"destType is not an array"),v=T.c,f=m.c,bfe(v.i&1?v==f:(f.i&1)==0,"Array types don't match"),Xhn(e,t,r,o,s),!(v.i&1)&&T!=m)if(y=BS(e),u=BS(r),be(e)===be(r)&&to;)ii(u,p,y[--t]);else for(p=o+s;o0),o.a.Xb(o.c=--o.b),T>N+m&&Lu(o);for(f=new V(I);f.a0),o.a.Xb(o.c=--o.b)}}function RAn(){fr();var e,t,r,o,s,u;if(Ure)return Ure;for(e=new bc(4),xy(e,k1(xQ,!0)),PC(e,k1("M",!0)),PC(e,k1("C",!0)),u=new bc(4),o=0;o<11;o++)Ea(u,o,o);return t=new bc(4),xy(t,k1("M",!0)),Ea(t,4448,4607),Ea(t,65438,65439),s=new h3(2),Zb(s,e),Zb(s,j4),r=new h3(2),r.Hm(uP(u,k1("L",!0))),r.Hm(t),r=new iy(3,r),r=new Yfe(s,r),Ure=r,Ure}function ky(e,t){var r,o,s,u,f,p,m,y;for(r=new RegExp(t,"g"),m=me(Ye,Me,2,0,6,1),o=0,y=e,u=null;;)if(p=r.exec(y),p==null||y==""){m[o]=y;break}else f=p.index,m[o]=(no(0,f,y.length),y.substr(0,f)),y=yl(y,f+p[0].length,y.length),r.lastIndex=0,u==y&&(m[o]=(no(0,1,y.length),y.substr(0,1)),y=(Yt(1,y.length+1),y.substr(1))),u=y,++o;if(e.length>0){for(s=m.length;s>0&&m[s-1]=="";)--s;sv&&(v=m);for(y=b.Math.pow(4,t),v>y&&(y=v),N=(b.Math.log(y)-b.Math.log(1))/t,u=b.Math.exp(N),s=u,f=0;f0&&(T-=o[0]+e.c,o[0]+=e.c),o[2]>0&&(T-=o[2]+e.c),o[1]=b.Math.max(o[1],T),lP(e.a[1],r.c+t.b+o[0]-(o[1]-T)/2,o[1]);for(u=e.a,p=0,y=u.length;p0?(e.n.c.length-1)*e.i:0,o=new V(e.n);o.a1)for(o=An(s,0);o.b!=o.d.c;)for(r=l(Sn(o),238),u=0,m=new V(r.e);m.a0&&(t[0]+=e.c,T-=t[0]),t[2]>0&&(T-=t[2]+e.c),t[1]=b.Math.max(t[1],T),dP(e.a[1],o.d+r.d+t[0]-(t[1]-T)/2,t[1]);else for(L=o.d+r.d,I=o.a-r.d-r.a,f=e.a,m=0,v=f.length;m=t.o&&r.f<=t.f||t.a*.5<=r.f&&t.a*1.5>=r.f){if(f=l(He(t.n,t.n.c.length-1),211),f.e+f.d+r.g+s<=o&&(u=l(He(t.n,t.n.c.length-1),211),u.f-e.f+r.f<=e.b||e.a.c.length==1))return a1e(t,r),!0;if(t.s+r.g<=o&&t.t+t.d+r.f+s<=e.f+e.b)return je(t.b,r),p=l(He(t.n,t.n.c.length-1),211),je(t.n,new DP(t.s,p.f+p.a+t.i,t.i)),U1e(l(He(t.n,t.n.c.length-1),211),r),Wyt(t,r),!0}return!1}function H7(e,t,r,o){var s,u,f,p,m;if(m=za(e.e.Ah(),t),s=l(e.g,123),Oo(),l(t,69).vk()){for(f=0;f0||_0(s.b.d,e.b.d+e.b.a)==0&&o.b<0||_0(s.b.d+s.b.a,e.b.d)==0&&o.b>0){p=0;break}}else p=b.Math.min(p,Dmt(e,s,o));p=b.Math.min(p,Yyt(e,u,p,o))}return p}function b0e(e,t){var r,o,s,u,f,p,m;if(e.b<2)throw K(new jt("The vector chain must contain at least a source and a target point."));for(s=(un(e.b!=0),l(e.a.a.c,8)),kO(t,s.a,s.b),m=new vS((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),f=An(e,1);f.a=0&&u!=r))throw K(new jt(HD));for(s=0,m=0;mue(Hd(f.g,f.d[0]).a)?(un(m.b>0),m.a.Xb(m.c=--m.b),qw(m,f),s=!0):p.e&&p.e.gc()>0&&(u=(!p.e&&(p.e=new Pe),p.e).Kc(t),y=(!p.e&&(p.e=new Pe),p.e).Kc(r),(u||y)&&((!p.e&&(p.e=new Pe),p.e).Ec(f),++f.c));s||Ot(o.c,f)}function BAn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J;return T=e.a.i+e.a.g/2,N=e.a.i+e.a.g/2,L=t.i+t.g/2,G=t.j+t.f/2,p=new Le(L,G),y=l(ye(t,(_n(),HT)),8),y.a=y.a+T,y.b=y.b+N,u=(p.b-y.b)/(p.a-y.a),o=p.b-u*p.a,U=r.i+r.g/2,J=r.j+r.f/2,m=new Le(U,J),v=l(ye(r,HT),8),v.a=v.a+T,v.b=v.b+N,f=(m.b-v.b)/(m.a-v.a),s=m.b-f*m.a,I=(o-s)/(f-u),y.am.a?(s=y.b.c,u=y.b.a-y.a,p=v-T-(m.a-y.a)*s/u,f=b.Math.max(f,p),m=m.b,m&&(v+=m.c)):(y=y.b,T+=y.c);for(m=r,y=o,v=m.c,T=y.c;y&&m.b;)m.b.a>y.a?(s=m.b.c,u=m.b.a-m.a,p=v-T+(y.a-m.a)*s/u,f=b.Math.max(f,p),y=y.b,y&&(T+=y.c)):(m=m.b,v+=m.c);return f}function VAn(e,t,r){var o,s,u,f,p,m;for(o=0,u=new en((!e.a&&(e.a=new xe(En,e,10,11)),e.a));u.e!=u.i.gc();)s=l(rn(u),19),f="",(!s.n&&(s.n=new xe(Is,s,1,7)),s.n).i==0||(f=l(ie((!s.n&&(s.n=new xe(Is,s,1,7)),s.n),0),158).a),p=new znt(f),qs(p,s),Ae(p,(h1(),TT),s),p.a=o++,p.d.a=s.i+s.g/2,p.d.b=s.j+s.f/2,p.e.a=b.Math.max(s.g,1),p.e.b=b.Math.max(s.f,1),je(t.e,p),eu(r.f,s,p),m=l(ye(s,(ed(),E2e)),103),m==(qi(),W1)&&(m=pf)}function Qyt(e){var t,r,o;if(tE(l(j(e,(Be(),Zr)),103)))for(r=new V(e.j);r.a>>0,"0"+t.toString(16)),o="\\x"+yl(r,r.length-2,r.length)):e>=xo?(r=(t=e>>>0,"0"+t.toString(16)),o="\\v"+yl(r,r.length-6,r.length)):o=""+String.fromCharCode(e&Ei)}return o}function evt(e,t){var r,o,s,u,f,p,m,y,v;for(u=new V(e.b);u.ar){t.Ug();return}switch(l(j(e,(Be(),_te)),351).g){case 2:u=new _ue;break;case 0:u=new Sue;break;default:u=new kue}if(o=u.mg(e,s),!u.ng())switch(l(j(e,vB),352).g){case 2:o=Lmt(s,o);break;case 1:o=Ebt(s,o)}z_n(e,s,o),t.Ug()}function CC(e,t){var r,o,s,u,f,p,m,y;t%=24,e.q.getHours()!=t&&(o=new b.Date(e.q.getTime()),o.setDate(o.getDate()+1),p=e.q.getTimezoneOffset()-o.getTimezoneOffset(),p>0&&(m=p/60|0,y=p%60,s=e.q.getDate(),r=e.q.getHours(),r+m>=24&&++s,u=new b.Date(e.q.getFullYear(),e.q.getMonth(),s,t+m,e.q.getMinutes()+y,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(u.getTime()))),f=e.q.getTime(),e.q.setTime(f+36e5),e.q.getHours()!=t&&e.q.setTime(f)}function YAn(e,t){var r,o,s,u;if(Eun(e.d,e.e),e.c.a.$b(),ue(ce(j(t.j,(Be(),pL))))!=0||ue(ce(j(t.j,pL)))!=0)for(r=jE,be(j(t.j,Ch))!==be((pp(),B1))&&Ae(t.j,(Ie(),j1),(Lt(),!0)),u=l(j(t.j,HI),15).a,s=0;ss&&++y,je(f,(at(p+y,t.c.length),l(t.c[p+y],15))),m+=(at(p+y,t.c.length),l(t.c[p+y],15)).a-o,++r;r=G&&e.e[m.p]>L*e.b||oe>=r*G)&&(Ot(N.c,p),p=new Pe,bo(f,u),u.a.$b(),y-=v,I=b.Math.max(I,y*e.b+U),y+=oe,ne=oe,oe=0,v=0,U=0);return new ko(I,N)}function _J(e){var t,r,o,s,u,f,p;if(!e.d){if(p=new WGe,t=R4,u=t.a.yc(e,t),u==null){for(o=new en(us(e));o.e!=o.i.gc();)r=l(rn(o),29),ti(p,_J(r));t.a.Ac(e)!=null,t.a.gc()==0}for(f=p.i,s=(!e.q&&(e.q=new xe(Dl,e,11,10)),new en(e.q));s.e!=s.i.gc();++f)l(rn(s),408);ti(p,(!e.q&&(e.q=new xe(Dl,e,11,10)),e.q)),fy(p),e.d=new Qv((l(ie(Ne((a1(),Bt).o),9),20),p.i),p.g),e.e=l(p.g,685),e.e==null&&(e.e=ZDt),Mu(e).b&=-17}return e.d}function tk(e,t,r,o){var s,u,f,p,m,y;if(y=za(e.e.Ah(),t),m=0,s=l(e.g,123),Oo(),l(t,69).vk()){for(f=0;f1||L==-1)if(T=l(U,72),N=l(v,72),T.dc())N.$b();else for(f=!!Do(t),u=0,p=e.a?T.Jc():T.Gi();p.Ob();)y=l(p.Pb(),57),s=l(Wd(e,y),57),s?(f?(m=N.bd(s),m==-1?N.Ei(u,s):u!=m&&N.Si(u,s)):N.Ei(u,s),++u):e.b&&!f&&(N.Ei(u,y),++u);else U==null?v.Wb(null):(s=Wd(e,U),s==null?e.b&&!Do(t)&&v.Wb(U):v.Wb(s))}function e_n(e,t){var r,o,s,u,f,p,m,y;for(r=new vFe,s=new Ft(Gt(si(t).a.Jc(),new D));an(s);)if(o=l(Qt(s),17),!lo(o)&&(p=o.c.i,Sbe(p,S$))){if(y=Gme(e,p,S$,E$),y==-1)continue;r.b=b.Math.max(r.b,y),!r.a&&(r.a=new Pe),je(r.a,p)}for(f=new Ft(Gt(Rr(t).a.Jc(),new D));an(f);)if(u=l(Qt(f),17),!lo(u)&&(m=u.d.i,Sbe(m,E$))){if(y=Gme(e,m,E$,S$),y==-1)continue;r.d=b.Math.max(r.d,y),!r.c&&(r.c=new Pe),je(r.c,m)}return r}function t_n(e,t,r,o){var s,u,f,p,m,y,v;if(r.d.i!=t.i){for(s=new Xd(e),Kh(s,(Ht(),gi)),Ae(s,(Ie(),mr),r),Ae(s,(Be(),Zr),(qi(),fa)),Ot(o.c,s),f=new aa,Ts(f,s),Ni(f,(Ue(),Wt)),p=new aa,Ts(p,s),Ni(p,Zt),v=r.d,Yi(r,f),u=new h0,qs(u,r),Ae(u,rs,null),go(u,p),Yi(u,v),y=new Ji(r.b,0);y.b1e6)throw K(new M9("power of ten too big"));if(e<=sr)return MS(Z6(vT[1],t),t);for(o=Z6(vT[1],sr),s=o,r=Gs(e-sr),t=po(e%sr);va(r,sr)>0;)s=dE(s,o),r=El(r,sr);for(s=dE(s,Z6(vT[1],t)),s=MS(s,sr),r=Gs(e-sr);va(r,sr)>0;)s=MS(s,sr),r=El(r,sr);return s=MS(s,t),s}function rvt(e){var t,r,o,s,u,f,p,m,y,v;for(m=new V(e.a);m.ay&&o>y)v=p,y=ue(t.p[p.p])+ue(t.d[p.p])+p.o.b+p.d.a;else{s=!1,r.$g()&&r.ah("bk node placement breaks on "+p+" which should have been after "+v);break}if(!s)break}return r.$g()&&r.ah(t+" is feasible: "+s),s}function ovt(e,t){var r,o;o=l(ye(t,(_n(),xp)),125),r=new Zu(0,t.j+t.f+o.a+e.b/2,new Zu(t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,(wh(),vm),new Zu(-o.b-e.b/2+t.g/2,t.j-o.d-e.b/2,new Zu(-t.g/2,t.j-o.d,r))),r=new Zu(0,t.j+t.f+o.a,new Zu(-t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,iv,new Zu(t.g/2+o.c+e.b/2,t.j-o.d,new Zu(t.g/2,t.j-o.d-e.b/2,r))),Vn(t,fx,t.i-o.b),Vn(t,dx,t.i+o.c+t.g),Vn(t,zOt,t.j-o.d),Vn(t,zne,t.j+o.a+t.f),Vn(t,Jf,l(ye(t,vm),107).b.b.a)}function y0e(e,t,r,o){var s,u,f,p,m,y,v,T,N;if(u=new Xd(e),Kh(u,(Ht(),Aa)),Ae(u,(Be(),Zr),(qi(),fa)),s=0,t){for(f=new aa,Ae(f,(Ie(),mr),t),Ae(u,mr,t.i),Ni(f,(Ue(),Wt)),Ts(f,u),N=Of(t.e),y=N,v=0,T=y.length;v0){if(s<0&&v.a&&(s=m,u=y[0],o=0),s>=0){if(p=v.b,m==s&&(p-=o++,p==0))return 0;if(!cEt(t,y,v,p,f)){m=s-1,y[0]=u;continue}}else if(s=-1,!cEt(t,y,v,0,f))return 0}else{if(s=-1,uo(v.c,0)==32){if(T=y[0],Rdt(t,y),y[0]>T)continue}else if(_an(t,v.c,y[0])){y[0]+=v.c.length;continue}return 0}return Yxn(f,r)?y[0]:0}function s_n(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(v=new hP(new rYe(r)),p=me(uu,Ad,30,e.f.e.c.length,16,1),Vfe(p,p.length),r[t.a]=0,y=new V(e.f.e);y.a=p.a?u.b>=p.b?(o.a=p.a+(u.a-p.a)/2+s,o.b=p.b+(u.b-p.b)/2-s-e.e.b):(o.a=p.a+(u.a-p.a)/2+s,o.b=u.b+(p.b-u.b)/2+s):u.b>=p.b?(o.a=u.a+(p.a-u.a)/2+s,o.b=p.b+(u.b-p.b)/2+s):(o.a=u.a+(p.a-u.a)/2+s,o.b=u.b+(p.b-u.b)/2-s-e.e.b))}function RC(e){var t,r,o,s,u,f,p,m;if(!e.f){if(m=new Oue,p=new Oue,t=R4,f=t.a.yc(e,t),f==null){for(u=new en(us(e));u.e!=u.i.gc();)s=l(rn(u),29),ti(m,RC(s));t.a.Ac(e)!=null,t.a.gc()==0}for(o=(!e.s&&(e.s=new xe(au,e,21,17)),new en(e.s));o.e!=o.i.gc();)r=l(rn(o),182),se(r,104)&&Tn(p,l(r,20));fy(p),e.r=new oot(e,(l(ie(Ne((a1(),Bt).o),6),20),p.i),p.g),ti(m,e.r),fy(m),e.f=new Qv((l(ie(Ne(Bt.o),5),20),m.i),m.g),Mu(e).b&=-3}return e.f}function z7(){z7=Y,s3e=Z(X(al,1),$f,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),NDt=new RegExp(`[ -\r\f]+`);try{N4=Z(X(V3n,1),Rt,2093,0,[new ZR((Xle(),Yj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",MO((O9(),O9(),hI))))),new ZR(Yj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",MO(hI))),new ZR(Yj("yyyy-MM-dd'T'HH:mm:ss",MO(hI))),new ZR(Yj("yyyy-MM-dd'T'HH:mm",MO(hI))),new ZR(Yj("yyyy-MM-dd",MO(hI)))])}catch(e){if(e=ci(e),!se(e,81))throw K(e)}}function a_n(e){var t,r,o,s,u,f,p;for(r=null,p=null,o=l(j(e.b,(Be(),pte)),349),o==(Q3(),SL)&&(r=new Pe,p=new Pe),f=new V(e.d);f.ar);return u}function svt(e,t){var r,o,s,u;if(s=$u(e.d,1)!=0,o=A7(e,t),o==0&&Ke(We(j(t.j,(Ie(),j1)))))return 0;!Ke(We(j(t.j,(Ie(),j1))))&&!Ke(We(j(t.j,e2)))||be(j(t.j,(Be(),Ch)))===be((pp(),B1))?t.c.kg(t.e,s):s=Ke(We(j(t.j,j1))),rD(e,t,s,!0),Ke(We(j(t.j,e2)))&&Ae(t.j,e2,(Lt(),!1)),Ke(We(j(t.j,j1)))&&(Ae(t.j,j1,(Lt(),!1)),Ae(t.j,e2,!0)),r=A7(e,t);do{if(oge(e),r==0)return 0;s=!s,u=r,rD(e,t,s,!1),r=A7(e,t)}while(u>r);return u}function c_n(e,t,r){var o,s,u,f,p;if(o=l(j(e,(Be(),dte)),24),r.a>t.a&&(o.Gc((Jb(),f4))?e.c.a+=(r.a-t.a)/2:o.Gc(h4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Jb(),g4))?e.c.b+=(r.b-t.b)/2:o.Gc(p4)&&(e.c.b+=r.b-t.b)),l(j(e,(Ie(),_a)),24).Gc((Mo(),rl))&&(r.a>t.a||r.b>t.b))for(p=new V(e.a);p.at.a&&(o.Gc((Jb(),f4))?e.c.a+=(r.a-t.a)/2:o.Gc(h4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Jb(),g4))?e.c.b+=(r.b-t.b)/2:o.Gc(p4)&&(e.c.b+=r.b-t.b)),l(j(e,(Ie(),_a)),24).Gc((Mo(),rl))&&(r.a>t.a||r.b>t.b))for(f=new V(e.a);f.a=0&&T<=1&&N>=0&&N<=1?br(new Le(e.a,e.b),Qh(new Le(t.a,t.b),T)):null}function OC(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(u=0,f=e.t,s=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,je(e.n,new DP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a0?e.i:0)>t&&m>0&&(u=0,f+=m+e.i,s=b.Math.max(s,N),o+=m+e.i,m=0,N=0,r&&(++T,je(e.n,new DP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&U1e(l(He(e.n,T),211),y),u+=y.g+(p>0?e.i:0),++p;return s=b.Math.max(s,N),o+=m,r&&(e.r=s,e.d=o,G1e(e.j)),new ql(e.s,e.t,s,o)}function G7(e){var t,r,o;return r=be(ye(e,(Be(),MT)))===be((Q6(),Pee))||be(ye(e,MT))===be(Ree)||be(ye(e,MT))===be(Oee)||be(ye(e,MT))===be(Lee)||be(ye(e,MT))===be(jee)||be(ye(e,MT))===be(sL),o=be(ye(e,hB))===be((tD(),xte))||be(ye(e,hB))===be(Cte)||be(ye(e,bL))===be((_1(),sx))||be(ye(e,bL))===be((_1(),qI)),t=be(ye(e,Ch))!==be((pp(),B1))||Ke(We(ye(e,ex)))||be(ye(e,LI))!==be((WS(),vI))||ue(ce(ye(e,pL)))!=0||ue(ce(ye(e,ute)))!=0,r||o||t}function CE(e){var t,r,o,s,u,f,p,m;if(!e.a){if(e.o=null,m=new UXe(e),t=new VGe,r=R4,p=r.a.yc(e,r),p==null){for(f=new en(us(e));f.e!=f.i.gc();)u=l(rn(f),29),ti(m,CE(u));r.a.Ac(e)!=null,r.a.gc()==0}for(s=(!e.s&&(e.s=new xe(au,e,21,17)),new en(e.s));s.e!=s.i.gc();)o=l(rn(s),182),se(o,336)&&Tn(t,l(o,38));fy(t),e.k=new iot(e,(l(ie(Ne((a1(),Bt).o),7),20),t.i),t.g),ti(m,e.k),fy(m),e.a=new Qv((l(ie(Ne(Bt.o),4),20),m.i),m.g),Mu(e).b&=-2}return e.a}function f_n(e){var t,r,o,s,u,f,p,m,y,v,T,N;if(p=e.d,T=l(j(e,(Ie(),DT)),16),t=l(j(e,kT),16),!(!T&&!t)){if(u=ue(ce(gy(e,(Be(),Ete)))),f=ue(ce(gy(e,RAe))),N=0,T){for(y=0,s=T.Jc();s.Ob();)o=l(s.Pb(),9),y=b.Math.max(y,o.o.b),N+=o.o.a;N+=u*(T.gc()-1),p.d+=y+f}if(r=0,t){for(y=0,s=t.Jc();s.Ob();)o=l(s.Pb(),9),y=b.Math.max(y,o.o.b),r+=o.o.a;r+=u*(t.gc()-1),p.a+=y+f}m=b.Math.max(N,r),m>e.o.a&&(v=(m-e.o.a)/2,p.b=b.Math.max(p.b,v),p.c=b.Math.max(p.c,v))}}function S0e(e,t,r,o){var s,u,f,p,m,y,v;if(v=za(e.e.Ah(),t),s=0,u=l(e.g,123),m=null,Oo(),l(t,69).vk()){for(p=0;pp?1:-1:Mge(e.a,t.a,u),s==-1)T=-m,v=f==m?qW(t.a,p,e.a,u):WW(t.a,p,e.a,u);else if(T=f,f==m){if(s==0)return Pf(),gI;v=qW(e.a,u,t.a,p)}else v=WW(e.a,u,t.a,p);return y=new Ib(T,v.length,v),M3(y),y}function g_n(e,t){var r,o,s,u;if(u=Gyt(t),!t.c&&(t.c=new xe(zu,t,9,9)),ei(new yt(null,(!t.c&&(t.c=new xe(zu,t,9,9)),new vt(t.c,16))),new aYe(u)),s=l(j(u,(Ie(),_a)),24),fxn(t,s),s.Gc((Mo(),rl)))for(o=new en((!t.c&&(t.c=new xe(zu,t,9,9)),t.c));o.e!=o.i.gc();)r=l(rn(o),127),jxn(e,t,u,r);return l(ye(t,(Be(),gm)),185).gc()!=0&&Iwt(t,u),Ke(We(j(u,kAe)))&&s.Ec(Z$),gr(u,mL)&&eQe(new l1e(ue(ce(j(u,mL)))),u),be(ye(t,Vy))===be((fp(),Cg))?o3n(e,t,u):zxn(e,t,u),u}function Sa(e,t){var r,o,s,u,f,p,m;if(e==null)return null;if(u=e.length,u==0)return"";for(m=me(al,$f,30,u,15,1),no(0,u,e.length),no(0,u,m.length),gst(e,0,u,m,0),r=null,p=t,s=0,f=0;s0?yl(r.a,0,u-1):""):(no(0,u-1,e.length),e.substr(0,u-1)):r?r.a:e}function b_n(e,t,r){var o,s,u;if(gr(t,(Be(),Ns))&&(be(j(t,Ns))===be((rc(),Ap))||be(j(t,Ns))===be(hm))||gr(r,Ns)&&(be(j(r,Ns))===be((rc(),Ap))||be(j(r,Ns))===be(hm)))return 0;if(o=ji(t),s=nTn(e,t,r),s!=0)return s;if(gr(t,(Ie(),Nr))&&gr(r,Nr)){if(u=na(O0(t,r,o,l(j(o,F1),15).a),O0(r,t,o,l(j(o,F1),15).a)),be(j(o,MI))===be((g1(),uL))&&be(j(t,PI))!==be(j(r,PI))&&(u=0),u<0)return iD(e,t,r),u;if(u>0)return iD(e,r,t),u}return kvn(e,t,r)}function avt(e,t){var r,o,s,u,f,p,m,y,v,T,N;for(o=new Ft(Gt(gp(t).a.Jc(),new D));an(o);)r=l(Qt(o),74),se(ie((!r.b&&(r.b=new Et(pn,r,4,7)),r.b),0),196)||(m=Vo(l(ie((!r.c&&(r.c=new Et(pn,r,5,8)),r.c),0),83)),EC(r)||(f=t.i+t.g/2,p=t.j+t.f/2,v=m.i+m.g/2,T=m.j+m.f/2,N=new to,N.a=v-f,N.b=T-p,u=new Le(N.a,N.b),z_(u,t.g,t.f),N.a-=u.a,N.b-=u.b,f=v-N.a,p=T-N.b,y=new Le(N.a,N.b),z_(y,m.g,m.f),N.a-=y.a,N.b-=y.b,v=f+N.a,T=p+N.b,s=AC(r),v0(s,f),E0(s,p),w0(s,v),y0(s,T),avt(e,m)))}function xy(e,t){var r,o,s,u,f;if(f=l(t,140),kE(e),kE(f),f.b!=null){if(e.c=!0,e.b==null){e.b=me(Rn,Xn,30,f.b.length,15,1),ua(f.b,0,e.b,0,f.b.length);return}for(u=me(Rn,Xn,30,e.b.length+f.b.length,15,1),r=0,o=0,s=0;r=e.b.length?(u[s++]=f.b[o++],u[s++]=f.b[o++]):o>=f.b.length?(u[s++]=e.b[r++],u[s++]=e.b[r++]):f.b[o]0?e.i:0)),++t;for(n1e(e.n,m),e.d=r,e.r=o,e.g=0,e.f=0,e.e=0,e.o=Kr,e.p=Kr,u=new V(e.b);u.a0&&(s=(!e.n&&(e.n=new xe(Is,e,1,7)),l(ie(e.n,0),158)).a,!s||zn(zn((t.a+=' "',t),s),'"'))),r=(!e.b&&(e.b=new Et(pn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Et(pn,e,5,8)),e.c.i<=1))),r?t.a+=" [":t.a+=" ",zn(t,fde(new lq,new en(e.b))),r&&(t.a+="]"),t.a+=DX,r&&(t.a+="["),zn(t,fde(new lq,new en(e.c))),r&&(t.a+="]"),t.a)}function w_n(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct;for(Ee=e.c,we=t.c,r=As(Ee.a,e,0),o=As(we.a,t,0),oe=l(k0(e,(Lo(),Cu)).Jc().Pb(),12),dt=l(k0(e,Fa).Jc().Pb(),12),le=l(k0(t,Cu).Jc().Pb(),12),Ct=l(k0(t,Fa).Jc().Pb(),12),J=Of(oe.e),Ge=Of(dt.g),ne=Of(le.e),lt=Of(Ct.g),E1(e,o,we),f=ne,v=0,L=f.length;v0&&m[o]&&(L=rE(e.b,m[o],s)),U=b.Math.max(U,s.c.c.b+L);for(u=new V(v.e);u.av?new Lb((vd(),nv),r,t,y-v):y>0&&v>0&&(new Lb((vd(),nv),t,r,0),new Lb(nv,r,t,0))),f)}function S_n(e,t,r){var o,s,u;for(e.a=new Pe,u=An(t.b,0);u.b!=u.d.c;){for(s=l(Sn(u),41);l(j(s,(Ps(),Yf)),15).a>e.a.c.length-1;)je(e.a,new ko(jE,Kye));o=l(j(s,Yf),15).a,r==(vi(),is)||r==cs?(s.e.aue(ce(l(He(e.a,o),49).b))&&$G(l(He(e.a,o),49),s.e.a+s.f.a)):(s.e.bue(ce(l(He(e.a,o),49).b))&&$G(l(He(e.a,o),49),s.e.b+s.f.b))}}function lvt(e,t,r,o){var s,u,f,p,m,y,v;if(u=Hj(o),p=Ke(We(j(o,(Be(),vAe)))),(p||Ke(We(j(e,fB))))&&!tE(l(j(e,Zr),103)))s=qS(u),m=u0e(e,r,r==(Lo(),Fa)?s:L6(s));else switch(m=new aa,Ts(m,e),t?(v=m.n,v.a=t.a-e.n.a,v.b=t.b-e.n.b,smt(v,0,0,e.o.a,e.o.b),Ni(m,Cyt(m,u))):(s=qS(u),Ni(m,r==(Lo(),Fa)?s:L6(s))),f=l(j(o,(Ie(),_a)),24),y=m.j,u.g){case 2:case 1:(y==(Ue(),Vt)||y==dn)&&f.Ec((Mo(),XE));break;case 4:case 3:(y==(Ue(),Zt)||y==Wt)&&f.Ec((Mo(),XE))}return m}function dvt(e,t){var r,o,s,u,f,p;for(f=new ly(new Ow(e.f.b).a);f.b;){if(u=gE(f),s=l(u.jd(),598),t==1){if(s.yf()!=(vi(),il)&&s.yf()!=ff)continue}else if(s.yf()!=(vi(),is)&&s.yf()!=cs)continue;switch(o=l(l(u.kd(),49).b,84),p=l(l(u.kd(),49).a,197),r=p.c,s.yf().g){case 2:o.g.c=e.e.a,o.g.b=b.Math.max(1,o.g.b+r);break;case 1:o.g.c=o.g.c+r,o.g.b=b.Math.max(1,o.g.b-r);break;case 4:o.g.d=e.e.b,o.g.a=b.Math.max(1,o.g.a+r);break;case 3:o.g.d=o.g.d+r,o.g.a=b.Math.max(1,o.g.a-r)}}}function T_n(e,t){var r,o,s,u,f,p,m,y,v,T;for(t.Tg("Simple node placement",1),T=l(j(e,(Ie(),t2)),317),p=0,u=new V(e.b);u.a1)throw K(new jt(WD));m||(u=gh(t,o.Jc().Pb()),f.Ec(u))}return Ege(e,Ube(e,t,r),f)}function V7(e,t,r){var o,s,u,f,p,m,y,v;if(bp(e.e,t))m=(Oo(),l(t,69).vk()?new eP(t,e):new AO(t,e)),k7(m.c,m.b),p3(m,l(r,18));else{for(v=za(e.e.Ah(),t),o=l(e.g,123),f=0;f"}m!=null&&(t.a+=""+m)}else e.e?(p=e.e.zb,p!=null&&(t.a+=""+p)):(t.a+="?",e.b?(t.a+=" super ",IJ(e.b,t)):e.f&&(t.a+=" extends ",IJ(e.f,t)))}function I_n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function R_n(e){var t,r,o,s;if(o=zJ((!e.c&&(e.c=JO(Gs(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return o;if(t=sge(e)<0?1:0,r=e.e,s=(o.length+1+b.Math.abs(po(e.e)),new uS),t==1&&(s.a+="-"),e.e>0)if(r-=o.length-t,r>=0){for(s.a+="0.";r>lm.length;r-=lm.length)Cot(s,lm);ait(s,lm,po(r)),zn(s,(Yt(t,o.length+1),o.substr(t)))}else r=t-r,zn(s,yl(o,t,po(r))),s.a+=".",zn(s,nhe(o,po(r)));else{for(zn(s,(Yt(t,o.length+1),o.substr(t)));r<-lm.length;r+=lm.length)Cot(s,lm);ait(s,lm,po(-r))}return s.a}function RJ(e){var t,r,o,s,u,f,p,m,y;return!(e.k!=(Ht(),Xr)||e.j.c.length<=1||(u=l(j(e,(Be(),Zr)),103),u==(qi(),fa))||(s=(my(),(e.q?e.q:(St(),St(),kh))._b(iw)?o=l(j(e,iw),205):o=l(j(ji(e),BI),205),o),s==AB)||!(s==a2||s==s2)&&(f=ue(ce(gy(e,UI))),t=l(j(e,yL),125),!t&&(t=new zde(f,f,f,f)),y=ks(e,(Ue(),Wt)),m=t.d+t.a+(y.gc()-1)*f,m>e.o.b||(r=ks(e,Zt),p=t.d+t.a+(r.gc()-1)*f,p>e.o.b)))}function O_n(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;t.Tg("Orthogonal edge routing",1),y=ue(ce(j(e,(Be(),ev)))),r=ue(ce(j(e,Zy))),o=ue(ce(j(e,$1))),N=new nW(0,r),G=0,f=new Ji(e.b,0),p=null,v=null,m=null,T=null;do v=f.b0?(I=(L-1)*r,p&&(I+=o),v&&(I+=o),I0;for(p=l(j(e.c.i,Ky),15).a,u=l(Au(lr(t.Mc(),new NYe(p)),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),f=new Sr,v=new hi,Gn(f,e.c.i),pi(v,e.c.i);f.b!=0;){if(r=l(f.b==0?null:(un(f.b!=0),Vc(f,f.a.a)),9),u.Gc(r))return!0;for(s=new Ft(Gt(Rr(r).a.Jc(),new D));an(s);)o=l(Qt(s),17),m=o.d.i,v.a._b(m)||(v.a.yc(m,v),Wr(f,m,f.c.b,f.c))}return!1}function bvt(e,t,r){var o,s,u,f,p,m,y,v,T;for(T=new Pe,v=new jhe(0,r),u=0,mj(v,new PK(0,0,v,r)),s=0,y=new en(e);y.e!=y.i.gc();)m=l(rn(y),19),o=l(He(v.a,v.a.c.length-1),175),p=s+m.g+(l(He(v.a,0),175).b.c.length==0?0:r),(p>t||Ke(We(ye(m,(ef(),RL)))))&&(s=0,u+=v.b+r,Ot(T.c,v),v=new jhe(u,r),o=new PK(0,v.f,v,r),mj(v,o),s=0),o.b.c.length==0||!Ke(We(ye(Br(m),(ef(),Nne))))&&(m.f>=o.o&&m.f<=o.f||o.a*.5<=m.f&&o.a*1.5>=m.f)?a1e(o,m):(f=new PK(o.s+o.r+r,v.f,v,r),mj(v,f),a1e(f,m)),s=m.i+m.g;return Ot(T.c,v),T}function DC(e){var t,r,o,s;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,s=0;s=e.b[s+1])s+=2;else if(r0)for(o=new Tu(l(wr(e.a,u),24)),St(),_i(o,new uce(t)),s=new Ji(u.b,0);s.b0&&o>=-6?o>=0?xO(u,r-po(e.e),"."):(_K(u,t-1,t-1,"0."),xO(u,t+1,Lf(lm,0,-po(o)-1))):(r-t>=1&&(xO(u,t,"."),++r),xO(u,r,"E"),o>0&&xO(u,++r,"+"),xO(u,++r,""+T3(Gs(o)))),e.g=u.a,e.g))}function H_n(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge;o=ue(ce(j(t,(Be(),TAe)))),Ee=l(j(t,HI),15).a,N=4,s=3,we=20/Ee,I=!1,m=0,f=sr;do{for(u=m!=1,T=m!=0,Ge=0,G=e.a,ne=0,le=G.length;neEe)?(m=2,f=sr):m==0?(m=1,f=Ge):(m=0,f=Ge)):(I=Ge>=f||f-Ge=xo?zo(r,r1e(o)):r_(r,o&Ei),f=new SW(10,null,0),ssn(e.a,f,p-1)):(r=(f.Km().length+u,new UN),zo(r,f.Km())),t.e==0?(o=t.Im(),o>=xo?zo(r,r1e(o)):r_(r,o&Ei)):zo(r,t.Km()),l(f,521).b=r.a}}function z_n(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G;if(!r.dc()){for(p=0,N=0,o=r.Jc(),L=l(o.Pb(),15).a;p0?1:_b(isNaN(o),isNaN(0)))>=0^(Yl(zf),(b.Math.abs(p)<=zf||p==0||isNaN(p)&&isNaN(0)?0:p<0?-1:p>0?1:_b(isNaN(p),isNaN(0)))>=0)?b.Math.max(p,o):(Yl(zf),(b.Math.abs(o)<=zf||o==0||isNaN(o)&&isNaN(0)?0:o<0?-1:o>0?1:_b(isNaN(o),isNaN(0)))>0?b.Math.sqrt(p*p+o*o):-b.Math.sqrt(p*p+o*o))}function W_n(e){var t,r,o,s;s=e.o,Gw(),e.A.dc()||pr(e.A,f2e)?t=s.b:(e.D?t=b.Math.max(s.b,wC(e.f)):t=wC(e.f),e.A.Gc((oc(),KL))&&!e.B.Gc((Bu(),k4))&&(t=b.Math.max(t,wC(l(Go(e.p,(Ue(),Zt)),256))),t=b.Math.max(t,wC(l(Go(e.p,Wt),256)))),r=yht(e),r&&(t=b.Math.max(t,r.b)),e.A.Gc(YL)&&(e.q==(qi(),Oh)||e.q==fa)&&(t=b.Math.max(t,Z8(l(Go(e.b,(Ue(),Zt)),129))),t=b.Math.max(t,Z8(l(Go(e.b,Wt),129))))),Ke(We(e.e.Rf().mf((_n(),av))))?s.b=b.Math.max(s.b,t):s.b=t,o=e.f.i,o.d=0,o.a=t,AJ(e.f)}function K_n(e,t,r,o,s,u,f,p){var m,y,v,T;switch(m=Wl(Z(X(B3n,1),Rt,241,0,[t,r,o,s])),T=null,e.b.g){case 1:T=Wl(Z(X(Hke,1),Rt,527,0,[new kG,new AG,new _G]));break;case 0:T=Wl(Z(X(Hke,1),Rt,527,0,[new _G,new AG,new kG]));break;case 2:T=Wl(Z(X(Hke,1),Rt,527,0,[new AG,new kG,new _G]))}for(v=new V(T);v.a1&&(m=y.Gg(m,e.a,p));return m.c.length==1?l(He(m,m.c.length-1),241):m.c.length==2?L_n((at(0,m.c.length),l(m.c[0],241)),(at(1,m.c.length),l(m.c[1],241)),f,u):null}function Y_n(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L;s=new KR(e),u=new w0t,o=(e6(u.n),e6(u.p),Zs(u.c),e6(u.f),e6(u.o),Zs(u.q),Zs(u.d),Zs(u.g),Zs(u.k),Zs(u.e),Zs(u.i),Zs(u.j),Zs(u.r),Zs(u.b),N=Umt(u,s,null),z0t(u,s),N),t&&(m=new KR(t),f=h_n(m),Mbe(o,Z(X(Nxe,1),Rt,528,0,[f]))),T=!1,v=!1,r&&(m=new KR(r),zF in m.a&&(T=rp(m,zF).oe().a),KTt in m.a&&(v=rp(m,KTt).oe().a)),y=yQe(kft(new iS,T),v),Jwn(new Gze,o,y),zF in s.a&&Kl(s,zF,null),(T||v)&&(p=new oS,Fyt(y,p,T,v),Kl(s,zF,p)),I=new TXe(u),Jht(new iV(o),I),L=new AXe(u),Jht(new iV(o),L)}function J_n(e,t,r){var o,s,u,f,p,m,y;for(r.Tg("Find roots",1),e.a.c.length=0,s=An(t.b,0);s.b!=s.d.c;)o=l(Sn(s),41),o.b.b==0&&(Ae(o,(xr(),z1),(Lt(),!0)),je(e.a,o));switch(e.a.c.length){case 0:u=new MK(0,t,"DUMMY_ROOT"),Ae(u,(xr(),z1),(Lt(),!0)),Ae(u,Jte,!0),Gn(t.b,u);break;case 1:break;default:for(f=new MK(0,t,RF),m=new V(e.a);m.a=b.Math.abs(o.b)?(o.b=0,u.d+u.a>f.d&&u.df.c&&u.c0){if(t=new Ule(e.i,e.g),r=e.i,u=r<100?null:new Qg(r),e.Rj())for(o=0;o0){for(p=e.g,y=e.i,B3(e),u=y<100?null:new Qg(y),o=0;o>13|(e.m&15)<<9,s=e.m>>4&8191,u=e.m>>17|(e.h&255)<<5,f=(e.h&1048320)>>8,p=t.l&8191,m=t.l>>13|(t.m&15)<<9,y=t.m>>4&8191,v=t.m>>17|(t.h&255)<<5,T=(t.h&1048320)>>8,lt=r*p,dt=o*p,Ct=s*p,Dt=u*p,on=f*p,m!=0&&(dt+=r*m,Ct+=o*m,Dt+=s*m,on+=u*m),y!=0&&(Ct+=r*y,Dt+=o*y,on+=s*y),v!=0&&(Dt+=r*v,on+=o*v),T!=0&&(on+=r*T),I=lt&Uu,L=(dt&511)<<13,N=I+L,G=lt>>22,J=dt>>9,ne=(Ct&262143)<<4,oe=(Dt&31)<<17,U=G+J+ne+oe,Ee=Ct>>18,we=Dt>>5,Ge=(on&4095)<<8,le=Ee+we+Ge,U+=N>>22,N&=Uu,le+=U>>22,U&=Uu,le&=yp,Ua(N,U,le)}function vvt(e){var t,r,o,s,u,f,p;if(p=l(He(e.j,0),12),p.g.c.length!=0&&p.e.c.length!=0)throw K(new Xo("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(p.g.c.length!=0){for(u=Kr,r=new V(p.g);r.a0&&hmt(e,p,T);for(s=new V(T);s.a4)if(e.dk(t)){if(e.$k()){if(s=l(t,52),o=s.Bh(),m=o==e.e&&(e.kl()?s.vh(s.Ch(),e.gl())==e.hl():-1-s.Ch()==e.Jj()),e.ll()&&!m&&!o&&s.Gh()){for(u=0;ue.d[f.p]&&(r+=Xhe(e.b,u)*l(m.b,15).a,l1(e.a,Re(u)));for(;!BN(e.a);)Rpe(e.b,l(xS(e.a),15).a)}return r}function tkn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;for(t.Tg(wSt,1),I=new Pe,v=b.Math.max(e.a.c.length,l(j(e,(Ie(),F1)),15).a),r=v*l(j(e,lL),15).a,p=be(j(e,(Be(),LT)))===be((g1(),zy)),U=new V(e.a);U.a0&&(y=e.n.a/u);break;case 2:case 4:s=e.i.o.b,s>0&&(y=e.n.b/s)}Ae(e,(Ie(),tw),y)}if(m=e.o,f=e.a,o)f.a=o.a,f.b=o.b,e.d=!0;else if(t!=pf&&t!=W1&&p!=Cs)switch(p.g){case 1:f.a=m.a/2;break;case 2:f.a=m.a,f.b=m.b/2;break;case 3:f.a=m.a/2,f.b=m.b;break;case 4:f.b=m.b/2}else f.a=m.a/2,f.b=m.b/2}function LC(e){var t,r,o,s,u,f,p,m,y,v;if(e.Nj())if(v=e.Cj(),m=e.Oj(),v>0)if(t=new cge(e.nj()),r=v,u=r<100?null:new Qg(r),OO(e,r,t.g),s=r==1?e.Gj(4,ie(t,0),null,0,m):e.Gj(6,t,null,-1,m),e.Kj()){for(o=new en(t);o.e!=o.i.gc();)u=e.Mj(rn(o),u);u?(u.lj(s),u.mj()):e.Hj(s)}else u?(u.lj(s),u.mj()):e.Hj(s);else OO(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(St(),No),null,-1,m));else if(e.Kj())if(v=e.Cj(),v>0){for(p=e.Dj(),y=v,OO(e,v,p),u=y<100?null:new Qg(y),o=0;o1&&hu(f)*Qu(f)/2>p[0]){for(u=0;up[u];)++u;L=new If(U,0,u+1),T=new dj(L),v=hu(f)/Qu(f),m=BJ(T,t,new rS,r,o,s,v),br(wd(T.e),m),AS(q_(N,T),dk),I=new If(U,u+1,U.c.length),K1e(N,I),U.c.length=0,y=0,Fot(p,p.length,0)}else G=N.b.c.length==0?null:He(N.b,0),G!=null&&bK(N,0),y>0&&(p[y]=p[y-1]),p[y]+=hu(f)*Qu(f),++y,Ot(U.c,f);return U}function ckn(e,t){var r,o,s,u;r=t.b,u=new Tu(r.j),s=0,o=r.j,o.c.length=0,u0(l(Hb(e.b,(Ue(),Vt),(S0(),Z0)),16),r),s=B6(u,s,new IBe,o),u0(l(Hb(e.b,Vt,P1),16),r),s=B6(u,s,new RBe,o),u0(l(Hb(e.b,Vt,X0),16),r),u0(l(Hb(e.b,Zt,Z0),16),r),u0(l(Hb(e.b,Zt,P1),16),r),s=B6(u,s,new OBe,o),u0(l(Hb(e.b,Zt,X0),16),r),u0(l(Hb(e.b,dn,Z0),16),r),s=B6(u,s,new DBe,o),u0(l(Hb(e.b,dn,P1),16),r),s=B6(u,s,new LBe,o),u0(l(Hb(e.b,dn,X0),16),r),u0(l(Hb(e.b,Wt,Z0),16),r),s=B6(u,s,new kBe,o),u0(l(Hb(e.b,Wt,P1),16),r),u0(l(Hb(e.b,Wt,X0),16),r)}function lkn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U;for(t.Tg("Layer size calculation",1),v=Kr,y=Oi,s=!1,p=new V(e.b);p.a.5?J-=f*2*(L-.5):L<.5&&(J+=u*2*(.5-L)),s=p.d.b,JG.a-U-v&&(J=G.a-U-v),p.n.a=t+J}}function fkn(e){var t,r,o,s,u;if(o=l(j(e,(Be(),Ns)),166),o==(rc(),Ap)){for(r=new Ft(Gt(si(e).a.Jc(),new D));an(r);)if(t=l(Qt(r),17),!olt(t))throw K(new Af(PX+U6(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(o==hm){for(u=new Ft(Gt(Rr(e).a.Jc(),new D));an(u);)if(s=l(Qt(u),17),!olt(s))throw K(new Af(PX+U6(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function MC(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L;if(e.e&&e.c.c>19&&(t=k_(t),m=!m),f=JEn(t),u=!1,s=!1,o=!1,e.h==yD&&e.m==0&&e.l==0)if(s=!0,u=!0,f==-1)e=Snt((b_(),jEe)),o=!0,m=!m;else return p=mme(e,f),m&&DK(p),r&&(O1=Ua(0,0,0)),p;else e.h>>19&&(u=!0,e=k_(e),o=!0,m=!m);return f!=-1?Jhn(e,f,m,u,r):nbe(e,t)<0?(r&&(u?O1=k_(e):O1=Ua(e.l,e.m,e.h)),Ua(0,0,0)):GTn(o?e:Ua(e.l,e.m,e.h),t,m,u,s,r)}function MJ(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L;if(f=e.e,m=t.e,f==0)return t;if(m==0)return e;if(u=e.d,p=t.d,u+p==2)return r=Gi(e.a[0],Po),o=Gi(t.a[0],Po),f==m?(v=To(r,o),L=On(v),I=On(Cb(v,32)),I==0?new op(f,L):new Ib(f,2,Z(X(Rn,1),Xn,30,15,[L,I]))):(Pf(),_8(f<0?El(o,r):El(r,o),0)?v1(f<0?El(o,r):El(r,o)):x3(v1(ag(f<0?El(o,r):El(r,o)))));if(f==m)N=f,T=u>=p?WW(e.a,u,t.a,p):WW(t.a,p,e.a,u);else{if(s=u!=p?u>p?1:-1:Mge(e.a,t.a,u),s==0)return Pf(),gI;s==1?(N=f,T=qW(e.a,u,t.a,p)):(N=m,T=qW(t.a,p,e.a,u))}return y=new Ib(N,T.length,T),M3(y),y}function pkn(e,t){var r,o,s,u,f,p,m;if(!(e.g>t.f||t.g>e.f)){for(r=0,o=0,f=e.w.a.ec().Jc();f.Ob();)s=l(f.Pb(),12),GK(_s(Z(X($i,1),Me,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&++r;for(p=e.r.a.ec().Jc();p.Ob();)s=l(p.Pb(),12),GK(_s(Z(X($i,1),Me,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&--r;for(m=t.w.a.ec().Jc();m.Ob();)s=l(m.Pb(),12),GK(_s(Z(X($i,1),Me,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&++o;for(u=t.r.a.ec().Jc();u.Ob();)s=l(u.Pb(),12),GK(_s(Z(X($i,1),Me,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&--o;r=0)return r;switch(d0(es(e,r))){case 2:{if(mt("",dg(e,r.ok()).ve())){if(m=qO(es(e,r)),p=a_(es(e,r)),v=Tme(e,t,m,p),v)return v;for(s=Qme(e,t),f=0,T=s.gc();f1)throw K(new jt(WD));for(v=za(e.e.Ah(),t),o=l(e.g,123),f=0;f1,y=new Vd(N.b);Ss(y.a)||Ss(y.b);)m=l(Ss(y.a)?q(y.a):q(y.b),17),T=m.c==N?m.d:m.c,b.Math.abs(_s(Z(X($i,1),Me,8,0,[T.i.n,T.n,T.a])).b-f.b)>1&&Z2n(e,m,f,u,N)}}function ykn(e){var t,r,o,s,u,f;if(s=new Ji(e.e,0),o=new Ji(e.a,0),e.d)for(r=0;rNZ;){for(u=t,f=0;b.Math.abs(t-u)0),s.a.Xb(s.c=--s.b),IAn(e,e.b-f,u,o,s),un(s.b0),o.a.Xb(o.c=--o.b)}if(!e.d)for(r=0;r0?(e.f[v.p]=I/(v.e.c.length+v.g.c.length),e.c=b.Math.min(e.c,e.f[v.p]),e.b=b.Math.max(e.b,e.f[v.p])):p&&(e.f[v.p]=I)}}function Ekn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function Skn(e,t,r){var o,s,u,f;for(r.Tg("Graph transformation ("+e.a+")",1),f=Mb(t.a),u=new V(t.b);u.aue(ce(ye(o,hx)))+l(ye(o,xp),125).d)throw K(new Af("Invalid vertical constraints. Node "+o.k+" has a vertical constraint that is too low for its ancestors."));for(f=new en((!t.e&&(t.e=new Et(Cr,t,7,4)),t.e));f.e!=f.i.gc();)u=l(rn(f),74),o=l(ie((!u.c&&(u.c=new Et(pn,u,5,8)),u.c),0),19),Avt(e,o,s)}function Akn(e){H3();var t,r,o,s,u,f,p;for(p=new uZe,r=new V(e);r.a=p.b.c)&&(p.b=t),(!p.c||t.c<=p.c.c)&&(p.d=p.c,p.c=t),(!p.e||t.d>=p.e.d)&&(p.e=t),(!p.f||t.d<=p.f.d)&&(p.f=t);return o=new r7((__(),J0)),ZO(e,Mxt,new Ds(Z(X(eL,1),Rt,378,0,[o]))),f=new r7(Fy),ZO(e,Lxt,new Ds(Z(X(eL,1),Rt,378,0,[f]))),s=new r7(jy),ZO(e,Dxt,new Ds(Z(X(eL,1),Rt,378,0,[s]))),u=new r7(qE),ZO(e,Oxt,new Ds(Z(X(eL,1),Rt,378,0,[u]))),aJ(o.c,J0),aJ(s.c,jy),aJ(u.c,qE),aJ(f.c,Fy),p.a.c.length=0,li(p.a,o.c),li(p.a,ic(s.c)),li(p.a,u.c),li(p.a,ic(f.c)),p}function _kn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L;for(t.Tg(HSt,1),I=ue(ce(ye(e,(yh(),rv)))),f=ue(ce(ye(e,(ef(),a4)))),p=l(ye(e,s4),100),ige((!e.a&&(e.a=new xe(En,e,10,11)),e.a)),v=bvt((!e.a&&(e.a=new xe(En,e,10,11)),e.a),I,f),!e.a&&(e.a=new xe(En,e,10,11)),y=new V(v);y.a0&&(e.a=m+(I-1)*u,t.c.b+=e.a,t.f.b+=e.a)),L.a.gc()!=0&&(N=new nW(1,u),I=I0e(N,t,L,U,t.f.b+m-t.c.b),I>0&&(t.f.b+=m+(I-1)*u))}function _vt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le;for(v=ue(ce(j(e,(Be(),mm)))),o=ue(ce(j(e,DAe))),N=new xG,Ae(N,mm,v+o),y=t,J=y.d,U=y.c.i,ne=y.d.i,G=Wle(U.c),oe=Wle(ne.c),s=new Pe,T=G;T<=oe;T++)p=new Xd(e),Kh(p,(Ht(),gi)),Ae(p,(Ie(),mr),y),Ae(p,Zr,(qi(),fa)),Ae(p,yB,N),I=l(He(e.b,T),26),T==G?E1(p,I.a.c.length-r,I):Ii(p,I),le=ue(ce(j(y,Ag))),le<0&&(le=0,Ae(y,Ag,le)),p.o.b=le,L=b.Math.floor(le/2),f=new aa,Ni(f,(Ue(),Wt)),Ts(f,p),f.n.b=L,m=new aa,Ni(m,Zt),Ts(m,p),m.n.b=L,Yi(y,f),u=new h0,qs(u,y),Ae(u,rs,null),go(u,m),Yi(u,J),xmn(p,y,u),Ot(s.c,u),y=u;return s}function xkn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;if(U=t.b.c.length,!(U<3)){for(I=me(Rn,Xn,30,U,15,1),T=0,v=new V(t.b);v.af)&&pi(e.b,l(G.b,17));++p}u=f}}}function PJ(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;for(m=l(gg(e,(Ue(),Wt)).Jc().Pb(),12).e,I=l(gg(e,Zt).Jc().Pb(),12).g,p=m.c.length,oe=qd(l(He(e.j,0),12));p-- >0;){for(U=(at(0,m.c.length),l(m.c[0],17)),s=(at(0,I.c.length),l(I.c[0],17)),ne=s.d.e,u=As(ne,s,0),_cn(U,s.d,u),go(s,null),Yi(s,null),L=U.a,t&&Gn(L,new Eo(oe)),o=An(s.a,0);o.b!=o.d.c;)r=l(Sn(o),8),Gn(L,new Eo(r));for(J=U.b,N=new V(s.b);N.a-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Ke(We(t))!=c3(e.k,0);case 1:return t!=null&&l(t,224).a!=On(e.k)<<24>>24;case 2:return t!=null&&l(t,183).a!=(On(e.k)&Ei);case 6:return t!=null&&c3(l(t,192).a,e.k);case 5:return t!=null&&l(t,15).a!=On(e.k);case 7:return t!=null&&l(t,193).a!=On(e.k)<<16>>16;case 3:return t!=null&&ue(ce(t))!=e.j;case 4:return t!=null&&l(t,165).a!=e.j;default:return t==null?e.n!=null:!pr(t,e.n)}}function cD(e,t,r){var o,s,u,f;return e.ml()&&e.ll()&&(f=YV(e,l(r,57)),be(f)!==be(r))?(e.vj(t),e.Bj(t,Zlt(e,t,f)),e.$k()&&(u=(s=l(r,52),e.kl()?e.il()?s.Qh(e.b,Do(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),null):s.Qh(e.b,Ur(s.Ah(),Do(l(Nt(Ja(e.b),e.Jj()),20))),null,null):s.Qh(e.b,-1-e.Jj(),null,null)),!l(f,52).Mh()&&(u=(o=l(f,52),e.kl()?e.il()?o.Oh(e.b,Do(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),u):o.Oh(e.b,Ur(o.Ah(),Do(l(Nt(Ja(e.b),e.Jj()),20))),null,u):o.Oh(e.b,-1-e.Jj(),null,u))),u&&u.mj()),Yu(e.b)&&e.Hj(e.Gj(9,r,f,t,!1)),f):r}function kvt(e){var t,r,o,s,u,f,p,m,y,v;for(o=new Pe,f=new V(e.e.a);f.a0&&(f=b.Math.max(f,sht(e.C.b+o.d.b,s))),v=o,T=s,N=u;e.C&&e.C.c>0&&(I=N+e.C.c,y&&(I+=v.d.c),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(T-1)<=nf||T==1||isNaN(T)&&isNaN(1)?0:I/(1-T)))),r.n.b=0,r.a.a=f}function Nvt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I;if(r=l(Go(e.b,t),129),m=l(l(wr(e.r,t),24),85),m.dc()){r.n.d=0,r.n.a=0;return}for(y=e.u.Gc((ku(),Cp)),f=0,e.A.Gc((oc(),Am))&&Qwt(e,t),p=m.Jc(),v=null,N=0,T=0;p.Ob();)o=l(p.Pb(),116),u=ue(ce(o.b.mf((U8(),g$)))),s=o.b.Kf().b,v?(I=T+v.d.a+e.w+o.d.d,f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-u)<=nf||N==u||isNaN(N)&&isNaN(u)?0:I/(u-N)))):e.C&&e.C.d>0&&(f=b.Math.max(f,sht(e.C.d+o.d.d,u))),v=o,N=u,T=s;e.C&&e.C.a>0&&(I=T+e.C.a,y&&(I+=v.d.a),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-1)<=nf||N==1||isNaN(N)&&isNaN(1)?0:I/(1-N)))),r.n.d=0,r.a.b=f}function Cvt(e,t,r){var o,s,u,f,p,m;for(this.g=e,p=t.d.length,m=r.d.length,this.d=me(Nh,yg,9,p+m,0,1),f=0;f0?lK(this,this.f/this.a):Hd(t.g,t.d[0]).a!=null&&Hd(r.g,r.d[0]).a!=null?lK(this,(ue(Hd(t.g,t.d[0]).a)+ue(Hd(r.g,r.d[0]).a))/2):Hd(t.g,t.d[0]).a!=null?lK(this,Hd(t.g,t.d[0]).a):Hd(r.g,r.d[0]).a!=null&&lK(this,Hd(r.g,r.d[0]).a)}function Ckn(e,t,r,o,s,u,f,p){var m,y,v,T,N,I,L,U,G,J;if(L=!1,y=Rme(r.q,t.f+t.b-r.q.f),I=o.f>t.b&&p,J=s-(r.q.e+y-f),T=(m=OC(o,J,!1),m.a),I&&T>o.f)return!1;if(I){for(N=0,G=new V(t.d);G.a=(at(u,e.c.length),l(e.c[u],189)).e,!I&&T>t.b&&!v)?!1:((v||I||T<=t.b)&&(v&&T>t.b?(r.d=T,s6(r,rmt(r,T))):(gbt(r.q,y),r.c=!0),s6(o,s-(r.s+r.r)),$6(o,r.q.e+r.q.d,t.f),mj(t,o),e.c.length>u&&(z6((at(u,e.c.length),l(e.c[u],189)),o),(at(u,e.c.length),l(e.c[u],189)).a.c.length==0&&og(e,u)),L=!0),L)}function Ikn(e){var t,r,o;for(bE(J1,Z(X(GE,1),Rt,139,0,[new Lue])),r=new Bue(e),o=0;o0&&(Yt(0,r.length),r.charCodeAt(0)!=47)))throw K(new jt("invalid opaquePart: "+r));if(e&&!(t!=null&&zN(yU,t.toLowerCase()))&&!(r==null||!nY(r,C4,I4)))throw K(new jt(AAt+r));if(e&&t!=null&&zN(yU,t.toLowerCase())&&!T0n(r))throw K(new jt(AAt+r));if(!Ign(o))throw K(new jt("invalid device: "+o));if(!_pn(s))throw f=s==null?"invalid segments: null":"invalid segment: "+wpn(s),K(new jt(f));if(!(u==null||xf(u,Qa(35))==-1))throw K(new jt("invalid query: "+u))}function Rvt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J;if(N=new Eo(e.o),J=t.a/N.a,p=t.b/N.b,U=t.a-N.a,u=t.b-N.b,r)for(s=be(j(e,(Be(),Zr)))===be((qi(),fa)),L=new V(e.j);L.a=1&&(G-f>0&&T>=0?(m.n.a+=U,m.n.b+=u*f):G-f<0&&v>=0&&(m.n.a+=U*G,m.n.b+=u));e.o.a=t.a,e.o.b=t.b,Ae(e,(Be(),gm),(oc(),o=l(md(_4),10),new Hc(o,l(Gl(o,o.length),10),0)))}function Mkn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J;if(r.Tg("Network simplex layering",1),e.b=t,J=l(j(t,(Be(),HI)),15).a*4,G=e.b.a,G.c.length<1){r.Ug();return}for(u=kTn(e,G),U=null,s=An(u,0);s.b!=s.d.c;){for(o=l(Sn(s),16),p=J*po(b.Math.sqrt(o.gc())),f=BTn(o),yJ(Hce(wQt(zce(CV(f),p),U),!0),r.dh(1)),N=e.b.b,L=new V(f.a);L.a1)for(U=me(Rn,Xn,30,e.b.b.c.length,15,1),T=0,y=new V(e.b.b);y.a0){e7(e,r,0),r.a+=String.fromCharCode(o),s=l1n(t,u),e7(e,r,s),u+=s-1;continue}o==39?u+10&&L.a<=0){m.c.length=0,Ot(m.c,L);break}I=L.i-L.d,I>=p&&(I>p&&(m.c.length=0,p=I),Ot(m.c,L))}m.c.length!=0&&(f=l(He(m,s7(s,m.c.length)),117),oe.a.Ac(f)!=null,f.g=v++,g0e(f,t,r,o),m.c.length=0)}for(G=e.c.length+1,N=new V(e);N.aOi||t.o==ym&&v=p&&s<=m)p<=s&&u<=m?(r[v++]=s,r[v++]=u,o+=2):p<=s?(r[v++]=s,r[v++]=m,e.b[o]=m+1,f+=2):u<=m?(r[v++]=p,r[v++]=u,o+=2):(r[v++]=p,r[v++]=m,e.b[o]=m+1);else if(mmg)&&p<10);Gce(e.c,new r9),Ovt(e),csn(e.c),Tkn(e.f)}function Wkn(e,t){var r,o,s,u,f,p,m,y,v,T,N;switch(e.k.g){case 1:if(o=l(j(e,(Ie(),mr)),17),r=l(j(o,cTe),79),r?Ke(We(j(o,Tg)))&&(r=Rge(r)):r=new Du,y=l(j(e,Cd),12),y){if(v=_s(Z(X($i,1),Me,8,0,[y.i.n,y.n,y.a])),t<=v.a)return v.b;Wr(r,v,r.a,r.a.a)}if(T=l(j(e,Nl),12),T){if(N=_s(Z(X($i,1),Me,8,0,[T.i.n,T.n,T.a])),N.a<=t)return N.b;Wr(r,N,r.c.b,r.c)}if(r.b>=2){for(m=An(r,0),f=l(Sn(m),8),p=l(Sn(m),8);p.a0&&N6(y,!0,(vi(),cs)),p.k==(Ht(),mi)&&Mst(y),Yn(e.f,p,t)}}function Lvt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne;for(y=Kr,v=Kr,p=Oi,m=Oi,N=new V(t.i);N.a=e.j?(++e.j,je(e.b,Re(1)),je(e.c,v)):(o=e.d[t.p][1],tc(e.b,y,Re(l(He(e.b,y),15).a+1-o)),tc(e.c,y,ue(ce(He(e.c,y)))+v-o*e.f)),(e.r==(_1(),vL)&&(l(He(e.b,y),15).a>e.k||l(He(e.b,y-1),15).a>e.k)||e.r==EL&&(ue(ce(He(e.c,y)))>e.n||ue(ce(He(e.c,y-1)))>e.n))&&(m=!1),f=new Ft(Gt(si(t).a.Jc(),new D));an(f);)u=l(Qt(f),17),p=u.c.i,e.g[p.p]==y&&(T=Mvt(e,p),s=s+l(T.a,15).a,m=m&&Ke(We(T.b)));return e.g[t.p]=y,s=s+e.d[t.p][0],new ko(Re(s),(Lt(),!!m))}function Ykn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;return N=e.c[t],I=e.c[r],L=l(j(N,(Ie(),CT)),16),!!L&&L.gc()!=0&&L.Gc(I)||(U=N.k!=(Ht(),gi)&&I.k!=gi,G=l(j(N,ew),9),J=l(j(I,ew),9),ne=G!=J,oe=!!G&&G!=N||!!J&&J!=I,le=kY(N,(Ue(),Vt)),Ee=kY(I,dn),oe=oe|(kY(N,dn)||kY(I,Vt)),we=oe&&ne||le||Ee,U&&we)||N.k==(Ht(),Aa)&&I.k==Xr||I.k==(Ht(),Aa)&&N.k==Xr?!1:(v=e.c[t],u=e.c[r],s=abt(e.e,v,u,(Ue(),Wt)),m=abt(e.i,v,u,Zt),v2n(e.f,v,u),y=wpt(e.b,v,u)+l(s.a,15).a+l(m.a,15).a+e.f.d,p=wpt(e.b,u,v)+l(s.b,15).a+l(m.b,15).a+e.f.b,e.a&&(T=l(j(v,mr),12),f=l(j(u,mr),12),o=q1t(e.g,T,f),y+=l(o.a,15).a,p+=l(o.b,15).a),y>p)}function Pvt(e,t){var r,o,s,u,f;r=ue(ce(j(t,(Be(),od)))),r<2&&Ae(t,od,2),o=l(j(t,kc),87),o==(vi(),hf)&&Ae(t,kc,Hj(t)),s=l(j(t,gIt),15),s.a==0?Ae(t,(Ie(),RT),new eY):Ae(t,(Ie(),RT),new qP(s.a)),u=We(j(t,$I)),u==null&&Ae(t,$I,(Lt(),be(j(t,_p))===be((hp(),vx)))),ei(new yt(null,new vt(t.a,16)),new sce(e)),ei(gs(new yt(null,new vt(t.b,16)),new t9),new ace(e)),f=new Ivt(t),Ae(t,(Ie(),t2),f),O3(e.a),pc(e.a,(Vi(),id),l(j(t,MT),173)),pc(e.a,xh,l(j(t,hB),173)),pc(e.a,la,l(j(t,jI),173)),pc(e.a,da,l(j(t,mB),173)),pc(e.a,$o,whn(l(j(t,_p),225))),Yle(e.a,qNn(t)),Ae(t,nte,MC(e.a,t))}function I0e(e,t,r,o,s){var u,f,p,m,y,v,T,N,I,L,U,G,J;for(T=new hn,f=new Pe,Tmt(e,r,e.d.zg(),f,T),Tmt(e,o,e.d.Ag(),f,T),e.b=.2*(U=I0t(gs(new yt(null,new vt(f,16)),new eHe)),G=I0t(gs(new yt(null,new vt(f,16)),new tHe)),b.Math.min(U,G)),u=0,p=0;p=2&&(J=Q0t(f,!0,N),!e.e&&(e.e=new IJe(e)),u1n(e.e,J,f,e.b)),kbt(f,N),nxn(f),I=-1,v=new V(f);v.al(ye(y,LL),15).a?(Ot(t.c,y),Ot(r.c,f)):(Ot(t.c,f),Ot(r.c,y))),s=new Pe,v=new IGe,v.a=0,v.b=0,o=(at(0,e.c.length),l(e.c[0],19)),Ot(s.c,o),p=1;p0&&(r+=m.n.a+m.o.a/2,++T),L=new V(m.j);L.a0&&(r/=T),J=me(Ki,Wo,30,o.a.c.length,15,1),p=0,y=new V(o.a);y.a-1){for(s=An(p,0);s.b!=s.d.c;)o=l(Sn(s),134),o.v=f;for(;p.b!=0;)for(o=l(MY(p,0),134),r=new V(o.i);r.a-1){for(u=new V(p);u.a0)&&(Vue(m,b.Math.min(m.o,s.o-1)),v9(m,m.i-1),m.i==0&&Ot(p.c,m))}}function $vt(e,t,r,o,s){var u,f,p,m;return m=Kr,f=!1,p=E0e(e,Ri(new Le(t.a,t.b),e),br(new Le(r.a,r.b),s),Ri(new Le(o.a,o.b),r)),u=!!p&&!(b.Math.abs(p.a-e.a)<=G0&&b.Math.abs(p.b-e.b)<=G0||b.Math.abs(p.a-t.a)<=G0&&b.Math.abs(p.b-t.b)<=G0),p=E0e(e,Ri(new Le(t.a,t.b),e),r,s),p&&((b.Math.abs(p.a-e.a)<=G0&&b.Math.abs(p.b-e.b)<=G0)==(b.Math.abs(p.a-t.a)<=G0&&b.Math.abs(p.b-t.b)<=G0)||u?m=b.Math.min(m,C3(Ri(p,r))):f=!0),p=E0e(e,Ri(new Le(t.a,t.b),e),o,s),p&&(f||(b.Math.abs(p.a-e.a)<=G0&&b.Math.abs(p.b-e.b)<=G0)==(b.Math.abs(p.a-t.a)<=G0&&b.Math.abs(p.b-t.b)<=G0)||u)&&(m=b.Math.min(m,C3(Ri(p,o)))),m}function Bvt(e){t0(e,new Xb(nO(Zm(Ym(Xm(Jm(new wb,N1),P2t),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new e9),Ga))),Oe(e,N1,mk,ze(N2e)),Oe(e,N1,ND,(Lt(),!0)),Oe(e,N1,ME,ze(wxt)),Oe(e,N1,gT,ze(yxt)),Oe(e,N1,pT,ze(vxt)),Oe(e,N1,vk,ze(mxt)),Oe(e,N1,wk,ze(I2e)),Oe(e,N1,Ek,ze(Ext)),Oe(e,N1,bwe,ze(x2e)),Oe(e,N1,wwe,ze(_2e)),Oe(e,N1,ywe,ze(k2e)),Oe(e,N1,vwe,ze(C2e)),Oe(e,N1,mwe,ze(v$))}function rxn(e){var t,r,o,s,u,f,p,m;for(t=null,o=new V(e);o.a0&&r.c==0&&(!t&&(t=new Pe),Ot(t.c,r));if(t)for(;t.c.length!=0;){if(r=l(og(t,0),242),r.b&&r.b.c.length>0){for(u=(!r.b&&(r.b=new Pe),new V(r.b));u.aAs(e,r,0))return new ko(s,r)}else if(ue(Hd(s.g,s.d[0]).a)>ue(Hd(r.g,r.d[0]).a))return new ko(s,r)}for(p=(!r.e&&(r.e=new Pe),r.e).Jc();p.Ob();)f=l(p.Pb(),242),m=(!f.b&&(f.b=new Pe),f.b),ny(0,m.c.length),ZN(m.c,0,r),f.c==m.c.length&&Ot(t.c,f)}return null}function PC(e,t){var r,o,s,u,f,p,m,y,v;if(t.e==5){Dvt(e,t);return}if(y=t,!(y.b==null||e.b==null)){for(kE(e),DC(e),kE(y),DC(y),r=me(Rn,Xn,30,e.b.length+y.b.length,15,1),v=0,o=0,f=0;o=p&&s<=m)p<=s&&u<=m?o+=2:p<=s?(e.b[o]=m+1,f+=2):u<=m?(r[v++]=s,r[v++]=p-1,o+=2):(r[v++]=s,r[v++]=p-1,e.b[o]=m+1,f+=2);else if(m0),l(v.a.Xb(v.c=--v.b),17));u!=o&&v.b>0;)e.a[u.p]=!0,e.a[o.p]=!0,u=(un(v.b>0),l(v.a.Xb(v.c=--v.b),17));v.b>0&&Lu(v)}}function Uvt(e,t,r){var o,s,u,f,p,m,y,v,T,N;if(r)for(o=-1,v=new Ji(t,0);v.b0?s-=864e5:s+=864e5,m=new $de(To(Gs(t.q.getTime()),s))),v=new uS,y=e.a.length,u=0;u=97&&o<=122||o>=65&&o<=90){for(f=u+1;f=y)throw K(new jt("Missing trailing '"));f+1=14&&v<=16))?t.a._b(o)?(r.a?zn(r.a,r.b):r.a=new fc(r.d),d3(r.a,"[...]")):(p=BS(o),y=new Ww(t),sp(r,zvt(p,y))):se(o,172)?sp(r,qyn(l(o,172))):se(o,198)?sp(r,R0n(l(o,198))):se(o,203)?sp(r,Fwn(l(o,203))):se(o,2090)?sp(r,O0n(l(o,2090))):se(o,54)?sp(r,Gyn(l(o,54))):se(o,591)?sp(r,rvn(l(o,591))):se(o,838)?sp(r,zyn(l(o,838))):se(o,109)&&sp(r,Hyn(l(o,109))):sp(r,o==null?tu:bs(o));return r.a?r.e.length==0?r.a.a:r.a.a+(""+r.e):r.c}function rk(e,t){var r,o,s,u;u=e.F,t==null?(e.F=null,C_(e,null)):(e.F=(Mt(t),t),o=xf(t,Qa(60)),o!=-1?(s=(no(0,o,t.length),t.substr(0,o)),xf(t,Qa(46))==-1&&!mt(s,sT)&&!mt(s,oI)&&!mt(s,VF)&&!mt(s,sI)&&!mt(s,aI)&&!mt(s,uI)&&!mt(s,cI)&&!mt(s,lI)&&(s=jAt),r=M8(t,Qa(62)),r!=-1&&(s+=""+(Yt(r+1,t.length+1),t.substr(r+1))),C_(e,s)):(s=t,xf(t,Qa(46))==-1&&(o=xf(t,Qa(91)),o!=-1&&(s=(no(0,o,t.length),t.substr(0,o))),!mt(s,sT)&&!mt(s,oI)&&!mt(s,VF)&&!mt(s,sI)&&!mt(s,aI)&&!mt(s,uI)&&!mt(s,cI)&&!mt(s,lI)?(s=jAt,o!=-1&&(s+=""+(Yt(o,t.length+1),t.substr(o)))):s=t),C_(e,s),s==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,5,u,t))}function lxn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L;if(e.c=e.e,L=We(j(t,(Be(),bIt))),I=L==null||(Mt(L),L),u=l(j(t,(Ie(),_a)),24).Gc((Mo(),rl)),s=l(j(t,Zr),103),r=!(s==(qi(),Tm)||s==Oh||s==fa),I&&(r||!u)){for(T=new V(t.a);T.a=0)return s=Sgn(e,(no(1,f,t.length),t.substr(1,f-1))),v=(no(f+1,m,t.length),t.substr(f+1,m-(f+1))),PNn(e,v,s)}else{if(r=-1,HEe==null&&(HEe=new RegExp("\\d")),HEe.test(String.fromCharCode(p))&&(r=Qde(t,Qa(46),m-1),r>=0)){o=l(zW(e,fft(e,(no(1,r,t.length),t.substr(1,r-1))),!1),61),y=0;try{y=Ec((Yt(r+1,t.length+1),t.substr(r+1)),Zi,sr)}catch(N){throw N=ci(N),se(N,133)?(u=N,K(new rj(u))):K(N)}if(y>16==-10?r=l(e.Cb,294).Wk(t,r):e.Db>>16==-15&&(!t&&(t=(Tt(),bf)),!y&&(y=(Tt(),bf)),e.Cb.Vh()&&(m=new ap(e.Cb,1,13,y,t,pg(ju(l(e.Cb,62)),e),!1),r?r.lj(m):r=m));else if(se(e.Cb,89))e.Db>>16==-23&&(se(t,89)||(t=(Tt(),Ml)),se(y,89)||(y=(Tt(),Ml)),e.Cb.Vh()&&(m=new ap(e.Cb,1,10,y,t,pg(oa(l(e.Cb,29)),e),!1),r?r.lj(m):r=m));else if(se(e.Cb,449))for(p=l(e.Cb,842),f=(!p.b&&(p.b=new k9(new eq)),p.b),u=(o=new ly(new Ow(f.a).a),new x9(o));u.a.b;)s=l(gE(u.a).jd(),88),r=ik(s,I7(s,p),r)}return r}function fxn(e,t){var r,o,s,u,f,p,m,y,v,T,N;for(f=Ke(We(ye(e,(Be(),Wy)))),N=l(ye(e,Jy),24),m=!1,y=!1,T=new en((!e.c&&(e.c=new xe(zu,e,9,9)),e.c));T.e!=T.i.gc()&&(!m||!y);){for(u=l(rn(T),127),p=0,s=hh(Wc(Z(X(nl,1),Rt,22,0,[(!u.d&&(u.d=new Et(Cr,u,8,5)),u.d),(!u.e&&(u.e=new Et(Cr,u,7,4)),u.e)])));an(s)&&(o=l(Qt(s),74),v=f&&I0(o)&&Ke(We(ye(o,pm))),r=Svt((!o.b&&(o.b=new Et(pn,o,4,7)),o.b),u)?e==Br(Vo(l(ie((!o.c&&(o.c=new Et(pn,o,5,8)),o.c),0),83))):e==Br(Vo(l(ie((!o.b&&(o.b=new Et(pn,o,4,7)),o.b),0),83))),!((v||r)&&(++p,p>1))););(p>0||N.Gc((ku(),Cp))&&(!u.n&&(u.n=new xe(Is,u,1,7)),u.n).i>0)&&(m=!0),p>1&&(y=!0)}m&&t.Ec((Mo(),rl)),y&&t.Ec((Mo(),kI))}function qvt(e){var t,r,o,s,u,f,p,m,y,v,T,N;if(N=l(ye(e,(_n(),Sm)),24),N.dc())return null;if(p=0,f=0,N.Gc((oc(),YL))){for(v=l(ye(e,gx),103),o=2,r=2,s=2,u=2,t=Br(e)?l(ye(Br(e),Em),87):l(ye(e,Em),87),y=new en((!e.c&&(e.c=new xe(zu,e,9,9)),e.c));y.e!=y.i.gc();)if(m=l(rn(y),127),T=l(ye(m,m2),64),T==(Ue(),Cs)&&(T=p0e(m,t),Vn(m,m2,T)),v==(qi(),fa))switch(T.g){case 1:o=b.Math.max(o,m.i+m.g);break;case 2:r=b.Math.max(r,m.j+m.f);break;case 3:s=b.Math.max(s,m.i+m.g);break;case 4:u=b.Math.max(u,m.j+m.f)}else switch(T.g){case 1:o+=m.g+2;break;case 2:r+=m.f+2;break;case 3:s+=m.g+2;break;case 4:u+=m.f+2}p=b.Math.max(o,s),f=b.Math.max(r,u)}return L0(e,p,f,!0,!0)}function hxn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U;for(s=null,o=new V(t.a);o.a1)for(s=e.e.b,Gn(e.e,m),p=m.a.ec().Jc();p.Ob();)f=l(p.Pb(),9),Yn(e.c,f,Re(s))}}function pxn(e,t,r,o){var s,u,f,p,m,y,v,T,N,I;for(u=new r0t(t),T=FSn(e,t,u),I=b.Math.max(ue(ce(j(t,(Be(),Ag)))),1),v=new V(T.a);v.a=0){for(m=null,p=new Ji(v.a,y+1);p.b0,y?y&&(N=J.p,f?++N:--N,T=l(He(J.c.a,N),9),o=qht(T),I=!(swt(o,we,r[0])||est(o,we,r[0]))):I=!0),L=!1,Ee=t.D.i,Ee&&Ee.c&&p.e&&(v=f&&Ee.p>0||!f&&Ee.p=0&&Uf?1:_b(isNaN(0),isNaN(f)))<0&&(Yl(zf),(b.Math.abs(f-1)<=zf||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:_b(isNaN(f),isNaN(1)))<0)&&(Yl(zf),(b.Math.abs(0-p)<=zf||p==0||isNaN(0)&&isNaN(p)?0:0p?1:_b(isNaN(0),isNaN(p)))<0)&&(Yl(zf),(b.Math.abs(p-1)<=zf||p==1||isNaN(p)&&isNaN(1)?0:p<1?-1:p>1?1:_b(isNaN(p),isNaN(1)))<0)),u)}function Sxn(e){var t,r,o,s,u,f,p,m,y,v,T;for(e.j=me(Rn,Xn,30,e.g,15,1),e.o=new Pe,ei(gs(new yt(null,new vt(e.e.b,16)),new CUe),new _Je(e)),e.a=me(uu,Ad,30,e.b,16,1),O6(new yt(null,new vt(e.e.b,16)),new xJe(e)),o=(T=new Pe,ei(lr(gs(new yt(null,new vt(e.e.b,16)),new RUe),new kJe(e)),new ptt(e,T)),T),m=new V(o);m.a=y.c.c.length?v=Vhe((Ht(),Xr),gi):v=Vhe((Ht(),gi),gi),v*=2,u=r.a.g,r.a.g=b.Math.max(u,u+(v-u)),f=r.b.g,r.b.g=b.Math.max(f,f+(v-f)),s=t}}function K7(e,t){var r;if(e.e)throw K(new Xo((ep(JQ),_X+JQ.k+kX)));if(!len(e.a,t))throw K(new vs(p2t+t+g2t));if(t==e.d)return e;switch(r=e.d,e.d=t,r.g){case 0:switch(t.g){case 2:N0(e);break;case 1:m1(e),N0(e);break;case 4:TE(e),N0(e);break;case 3:TE(e),m1(e),N0(e)}break;case 2:switch(t.g){case 1:m1(e),pJ(e);break;case 4:TE(e),N0(e);break;case 3:TE(e),m1(e),N0(e)}break;case 1:switch(t.g){case 2:m1(e),pJ(e);break;case 4:m1(e),TE(e),N0(e);break;case 3:m1(e),TE(e),m1(e),N0(e)}break;case 4:switch(t.g){case 2:TE(e),N0(e);break;case 1:TE(e),m1(e),N0(e);break;case 3:m1(e),pJ(e)}break;case 3:switch(t.g){case 2:m1(e),TE(e),N0(e);break;case 1:m1(e),TE(e),m1(e),N0(e);break;case 4:m1(e),pJ(e)}}return e}function RE(e,t){var r;if(e.d)throw K(new Xo((ep(lee),_X+lee.k+kX)));if(!den(e.a,t))throw K(new vs(p2t+t+g2t));if(t==e.c)return e;switch(r=e.c,e.c=t,r.g){case 0:switch(t.g){case 2:qb(e);break;case 1:b1(e),qb(e);break;case 4:AE(e),qb(e);break;case 3:AE(e),b1(e),qb(e)}break;case 2:switch(t.g){case 1:b1(e),gJ(e);break;case 4:AE(e),qb(e);break;case 3:AE(e),b1(e),qb(e)}break;case 1:switch(t.g){case 2:b1(e),gJ(e);break;case 4:b1(e),AE(e),qb(e);break;case 3:b1(e),AE(e),b1(e),qb(e)}break;case 4:switch(t.g){case 2:AE(e),qb(e);break;case 1:AE(e),b1(e),qb(e);break;case 3:b1(e),gJ(e)}break;case 3:switch(t.g){case 2:b1(e),AE(e),qb(e);break;case 1:b1(e),AE(e),b1(e),qb(e);break;case 4:b1(e),gJ(e)}}return e}function Txn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;for(T=e.b,v=new Ji(T,0),qw(v,new ra(e)),ne=!1,f=1;v.b0&&(t.a+=Ma),Y7(l(rn(p),176),t);for(t.a+=DX,m=new vS((!o.c&&(o.c=new Et(pn,o,5,8)),o.c));m.e!=m.i.gc();)m.e>0&&(t.a+=Ma),Y7(l(rn(m),176),t);t.a+=")"}}function Axn(e,t,r){var o,s,u,f,p,m,y,v;for(m=new en((!e.a&&(e.a=new xe(En,e,10,11)),e.a));m.e!=m.i.gc();)for(p=l(rn(m),19),s=new Ft(Gt(gp(p).a.Jc(),new D));an(s);){if(o=l(Qt(s),74),!o.b&&(o.b=new Et(pn,o,4,7)),!(o.b.i<=1&&(!o.c&&(o.c=new Et(pn,o,5,8)),o.c.i<=1)))throw K(new aS("Graph must not contain hyperedges."));if(!EC(o)&&p!=Vo(l(ie((!o.c&&(o.c=new Et(pn,o,5,8)),o.c),0),83)))for(y=new lit,qs(y,o),Ae(y,(h1(),TT),o),WXt(y,l(Es(Zo(r.f,p)),156)),KXt(y,l(Ut(r,Vo(l(ie((!o.c&&(o.c=new Et(pn,o,5,8)),o.c),0),83))),156)),je(t.c,y),f=new en((!o.n&&(o.n=new xe(Is,o,1,7)),o.n));f.e!=f.i.gc();)u=l(rn(f),158),v=new Ect(y,u.a),qs(v,u),Ae(v,TT,u),v.e.a=b.Math.max(u.g,1),v.e.b=b.Math.max(u.f,1),v0e(v),je(t.d,v)}}function _xn(e,t,r){var o,s,u,f,p,m,y,v,T,N;switch(r.Tg("Node promotion heuristic",1),e.i=t,e.r=l(j(t,(Be(),bL)),246),e.r!=(_1(),sx)&&e.r!=qI?Xxn(e):vSn(e),v=l(j(e.i,wAe),15).a,u=new XFe,e.r.g){case 2:case 1:nk(e,u);break;case 3:for(e.r=kB,nk(e,u),m=0,p=new V(e.b);p.ae.k&&(e.r=vL,nk(e,u));break;case 4:for(e.r=kB,nk(e,u),y=0,s=new V(e.c);s.ae.n&&(e.r=EL,nk(e,u));break;case 6:N=po(b.Math.ceil(e.g.length*v/100)),nk(e,new AYe(N));break;case 5:T=po(b.Math.ceil(e.e*v/100)),nk(e,new _Ye(T));break;case 8:NEt(e,!0);break;case 9:NEt(e,!1);break;default:nk(e,u)}e.r!=sx&&e.r!=qI?B2n(e,t):oTn(e,t),r.Ug()}function kxn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;for(T=new M0e(e),tun(T,!(t==(vi(),il)||t==ff)),v=T.a,N=new rS,s=(Sd(),Z(X(Py,1),Ce,240,0,[$s,ja,Bs])),f=0,m=s.length;f0&&(N.d+=v.n.d,N.d+=v.d),N.a>0&&(N.a+=v.n.a,N.a+=v.d),N.b>0&&(N.b+=v.n.b,N.b+=v.d),N.c>0&&(N.c+=v.n.c,N.c+=v.d),N}function Kvt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L;for(N=r.d,T=r.c,u=new Le(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a),f=u.b,y=new V(e.a);y.a0&&(e.c[t.c.p][t.p].d+=$u(e.i,24)*TD*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function Nxn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;for(L=new V(e);L.ao.d,o.d=b.Math.max(o.d,t),p&&r&&(o.d=b.Math.max(o.d,o.a),o.a=o.d+s);break;case 3:r=t>o.a,o.a=b.Math.max(o.a,t),p&&r&&(o.a=b.Math.max(o.a,o.d),o.d=o.a+s);break;case 2:r=t>o.c,o.c=b.Math.max(o.c,t),p&&r&&(o.c=b.Math.max(o.b,o.c),o.b=o.c+s);break;case 4:r=t>o.b,o.b=b.Math.max(o.b,t),p&&r&&(o.b=b.Math.max(o.b,o.c),o.c=o.b+s)}}}function Xvt(e,t){var r,o,s,u,f,p,m,y,v;return y="",t.length==0?e.le(J0e,JJ,-1,-1):(v=vy(t),mt(v.substr(0,3),"at ")&&(v=(Yt(3,v.length+1),v.substr(3))),v=v.replace(/\[.*?\]/g,""),f=v.indexOf("("),f==-1?(f=v.indexOf("@"),f==-1?(y=v,v=""):(y=vy((Yt(f+1,v.length+1),v.substr(f+1))),v=vy((no(0,f,v.length),v.substr(0,f))))):(r=v.indexOf(")",f),y=(no(f+1,r,v.length),v.substr(f+1,r-(f+1))),v=vy((no(0,f,v.length),v.substr(0,f)))),f=xf(v,Qa(46)),f!=-1&&(v=(Yt(f+1,v.length+1),v.substr(f+1))),(v.length==0||mt(v,"Anonymous function"))&&(v=JJ),p=M8(y,Qa(58)),s=Qde(y,Qa(58),p-1),m=-1,o=-1,u=J0e,p!=-1&&s!=-1&&(u=(no(0,s,y.length),y.substr(0,s)),m=Irt((no(s+1,p,y.length),y.substr(s+1,p-(s+1)))),o=Irt((Yt(p+1,y.length+1),y.substr(p+1)))),e.le(u,v,m,o))}function Ixn(e){var t,r,o,s,u,f,p,m,y,v,T;for(y=new V(e);y.a0||v.j==Wt&&v.e.c.length-v.g.c.length<0)){t=!1;break}for(s=new V(v.g);s.a=y&&Ee>=G&&(N+=L.n.b+U.n.b+U.a.b-le,++p));if(r)for(f=new V(ne.e);f.a=y&&Ee>=G&&(N+=L.n.b+U.n.b+U.a.b-le,++p))}p>0&&(we+=N/p,++I)}I>0?(t.a=s*we/I,t.g=I):(t.a=0,t.g=0)}function D0e(e,t,r,o){var s,u,f,p,m;return p=new M0e(t),T2n(p,o),s=!0,e&&e.nf((_n(),Em))&&(u=l(e.mf((_n(),Em)),87),s=u==(vi(),hf)||u==is||u==cs),qwt(p,!1),Oa(p.e.Pf(),new ife(p,!1,s)),EW(p,p.f,(Sd(),$s),(Ue(),Vt)),EW(p,p.f,Bs,dn),EW(p,p.g,$s,Wt),EW(p,p.g,Bs,Zt),a1t(p,Vt),a1t(p,dn),Wst(p,Zt),Wst(p,Wt),Gw(),f=p.A.Gc((oc(),fv))&&p.B.Gc((Bu(),XL))?ygt(p):null,f&&EQt(p.a,f),Cxn(p),Ubn(p),Hbn(p),oxn(p),gAn(p),pmn(p),dY(p,Vt),dY(p,dn),rTn(p),W_n(p),r&&(xgn(p),gmn(p),dY(p,Zt),dY(p,Wt),m=p.B.Gc((Bu(),k4)),Imt(p,m,Vt),Imt(p,m,dn),Rmt(p,m,Zt),Rmt(p,m,Wt),ei(new yt(null,new vt(new Jh(p.i),0)),new zR),ei(lr(new yt(null,Xfe(p.r).a.oc()),new GR),new NN),x0n(p),p.e.Nf(p.o),ei(new yt(null,Xfe(p.r).a.oc()),new CN)),p.o}function Oxn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U;for(y=Kr,o=new V(e.a.b);o.a1)for(I=new A0e(L,oe,o),co(oe,new mtt(e,I)),Ot(f.c,I),T=oe.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b);if(p.a.gc()>1)for(I=new A0e(L,p,o),co(p,new wtt(e,I)),Ot(f.c,I),T=p.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b)}}function Pxn(e,t){var r,o,s,u,f,p;if(l(j(t,(Ie(),_a)),24).Gc((Mo(),rl))){for(p=new V(t.a);p.a=0&&f0&&(l(Go(e.b,t),129).a.b=r)}function zxn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J;for(I=0,o=new hi,u=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));u.e!=u.i.gc();)s=l(rn(u),19),Ke(We(ye(s,(Be(),bm))))||(T=Br(s),G7(T)&&!Ke(We(ye(s,uB)))&&(Vn(s,(Ie(),Nr),Re(I)),++I,Gc(s,qy)&&pi(o,l(ye(s,qy),15))),Qvt(e,s,r));for(Ae(r,(Ie(),F1),Re(I)),Ae(r,lL,Re(o.a.gc())),I=0,v=new en((!t.b&&(t.b=new xe(Cr,t,12,3)),t.b));v.e!=v.i.gc();)m=l(rn(v),74),G7(t)&&(Vn(m,Nr,Re(I)),++I),G=WY(m),J=Bbt(m),N=Ke(We(ye(G,(Be(),Wy)))),U=!Ke(We(ye(m,bm))),L=N&&I0(m)&&Ke(We(ye(m,pm))),f=Br(G)==t&&Br(G)==Br(J),p=(Br(G)==t&&J==t)^(Br(J)==t&&G==t),U&&!L&&(p||f)&&B0e(e,m,t,r);if(Br(t))for(y=new en(nat(Br(t)));y.e!=y.i.gc();)m=l(rn(y),74),G=WY(m),G==t&&I0(m)&&(L=Ke(We(ye(G,(Be(),Wy))))&&Ke(We(ye(m,pm))),L&&B0e(e,m,t,r))}function Gxn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt;for(we=new Pe,L=new V(e.b);L.a=t.length)return{done:!0};var s=t[o++];return{value:[s,r.get(s)],done:!1}}}},jSn()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,r){this.obj[":"+t]=r},e.prototype[vX]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var r in this.obj)r.charCodeAt(0)==58&&t.push(r.substring(1));return t}),e}function xr(){xr=Y,t4=new cr(gwe),new Pr("DEPTH",Re(0)),Xte=new Pr("FAN",Re(0)),O_e=new Pr(xSt,Re(0)),z1=new Pr("ROOT",(Lt(),!1)),ene=new Pr("LEFTNEIGHBOR",null),U4t=new Pr("RIGHTNEIGHBOR",null),LB=new Pr("LEFTSIBLING",null),tne=new Pr("RIGHTSIBLING",null),Jte=new Pr("DUMMY",!1),new Pr("LEVEL",Re(0)),M_e=new Pr("REMOVABLE_EDGES",new Sr),xL=new Pr("XCOOR",Re(0)),NL=new Pr("YCOOR",Re(0)),MB=new Pr("LEVELHEIGHT",0),Id=new Pr("LEVELMIN",0),sd=new Pr("LEVELMAX",0),Zte=new Pr("GRAPH_XMIN",0),Qte=new Pr("GRAPH_YMIN",0),D_e=new Pr("GRAPH_XMAX",0),L_e=new Pr("GRAPH_YMAX",0),R_e=new Pr("COMPACT_LEVEL_ASCENSION",!1),Yte=new Pr("COMPACT_CONSTRAINTS",new Pe),e4=new Pr("ID",""),n4=new Pr("POSITION",Re(0)),xg=new Pr("PRELIM",0),cx=new Pr("MODIFIER",0),ux=new cr(L2t),kL=new cr(M2t)}function Kxn(e){h0e();var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;if(e==null)return null;if(T=e.length*8,T==0)return"";for(p=T%24,I=T/24|0,N=p!=0?I+1:I,u=null,u=me(al,$f,30,N*4,15,1),y=0,v=0,t=0,r=0,o=0,f=0,s=0,m=0;m>24,y=(t&3)<<24>>24,L=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,G=o&-128?(o>>6^252)<<24>>24:o>>6<<24>>24,u[f++]=Mg[L],u[f++]=Mg[U|y<<4],u[f++]=Mg[v<<2|G],u[f++]=Mg[o&63];return p==8?(t=e[s],y=(t&3)<<24>>24,L=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,u[f++]=Mg[L],u[f++]=Mg[y<<4],u[f++]=61,u[f++]=61):p==16&&(t=e[s],r=e[s+1],v=(r&15)<<24>>24,y=(t&3)<<24>>24,L=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,u[f++]=Mg[L],u[f++]=Mg[U|y<<4],u[f++]=Mg[v<<2],u[f++]=61),Lf(u,0,u.length)}function Yxn(e,t){var r,o,s,u,f,p,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Zi&&Khe(t,e.p-x1),f=t.q.getDate(),YO(t,1),e.k>=0&&dun(t,e.k),e.c>=0?YO(t,e.c):e.k>=0?(m=new Sge(t.q.getFullYear()-x1,t.q.getMonth(),35),o=35-m.q.getDate(),YO(t,b.Math.min(o,f))):YO(t,f),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),dtn(t,e.f==24&&e.g?0:e.f),e.j>=0&&qln(t,e.j),e.n>=0&&odn(t,e.n),e.i>=0&&cnt(t,To(mo(q6(Gs(t.q.getTime()),wg),wg),e.i)),e.a&&(s=new z9,Khe(s,s.q.getFullYear()-x1-80),Eq(Gs(t.q.getTime()),Gs(s.q.getTime()))&&Khe(t,s.q.getFullYear()-x1+100)),e.d>=0){if(e.c==-1)r=(7+e.d-t.q.getDay())%7,r>3&&(r-=7),p=t.q.getMonth(),YO(t,t.q.getDate()+r),t.q.getMonth()!=p&&YO(t,t.q.getDate()+(r>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Zi&&(u=t.q.getTimezoneOffset(),cnt(t,To(Gs(t.q.getTime()),(e.o-u)*60*wg))),!0}function rEt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le;if(s=j(t,(Ie(),mr)),!!se(s,209)){for(L=l(s,19),U=t.e,N=new Eo(t.c),u=t.d,N.a+=u.b,N.b+=u.d,le=l(ye(L,(Be(),wB)),185),fu(le,(Bu(),cU))&&(I=l(ye(L,AAe),100),GXt(I,u.a),YXt(I,u.d),qXt(I,u.b),VXt(I,u.c)),r=new Pe,v=new V(t.a);v.ao.c.length-1;)je(o,new ko(jE,Kye));r=l(j(s,Yf),15).a,Zh(l(j(e,aw),87))?(s.e.aue(ce((at(r,o.c.length),l(o.c[r],49)).b))&&$G((at(r,o.c.length),l(o.c[r],49)),s.e.a+s.f.a)):(s.e.bue(ce((at(r,o.c.length),l(o.c[r],49)).b))&&$G((at(r,o.c.length),l(o.c[r],49)),s.e.b+s.f.b))}for(u=An(e.b,0);u.b!=u.d.c;)s=l(Sn(u),41),r=l(j(s,(Ps(),Yf)),15).a,Ae(s,(xr(),Id),ce((at(r,o.c.length),l(o.c[r],49)).a)),Ae(s,sd,ce((at(r,o.c.length),l(o.c[r],49)).b));t.Ug()}function Xxn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U;for(e.o=ue(ce(j(e.i,(Be(),wm)))),e.f=ue(ce(j(e.i,$1))),e.j=e.i.b.c.length,p=e.j-1,N=0,e.k=0,e.n=0,e.b=Wl(me(Ti,Me,15,e.j,0,1)),e.c=Wl(me(fi,Me,347,e.j,7,1)),f=new V(e.i.b);f.a0&&je(e.q,v),je(e.p,v);t-=o,I=m+t,y+=t*e.f,tc(e.b,p,Re(I)),tc(e.c,p,y),e.k=b.Math.max(e.k,I),e.n=b.Math.max(e.n,y),e.e+=t,t+=U}}function sEt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;if(t.b!=0){for(I=new Sr,p=null,L=null,o=po(b.Math.floor(b.Math.log(t.b)*b.Math.LOG10E)+1),m=0,oe=An(t,0);oe.b!=oe.d.c;)for(J=l(Sn(oe),41),be(L)!==be(j(J,(xr(),e4)))&&(L=In(j(J,e4)),m=0),L!=null?p=L+Sut(m++,o):p=Sut(m++,o),Ae(J,e4,p),G=(s=An(new Xh(J).a.d,0),new qv(s));rO(G.a);)U=l(Sn(G.a),65).c,Wr(I,U,I.c.b,I.c),Ae(U,e4,p);for(N=new hn,f=0;f0&&(oe-=I),_0e(f,oe),v=0,N=new V(f.a);N.a0),p.a.Xb(p.c=--p.b)),m=.4*o*v,!u&&p.b0&&(m=(Yt(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(T=t.lastIndexOf("%"),y=!1,T!=0&&(T==N-1||(y=(Yt(T+1,t.length),t.charCodeAt(T+1)==46))))){if(f=(no(1,T,t.length),t.substr(1,T-1)),oe=mt("%",f)?null:j0e(f),o=0,y)try{o=Ec((Yt(T+2,t.length+1),t.substr(T+2)),Zi,sr)}catch(le){throw le=ci(le),se(le,133)?(p=le,K(new rj(p))):K(le)}for(G=ege(e.Dh());G.Ob();)if(L=Cj(G),se(L,508)&&(s=l(L,594),ne=s.d,(oe==null?ne==null:mt(oe,ne))&&o--==0))return s;return null}if(v=t.lastIndexOf("."),I=v==-1?t:(no(0,v,t.length),t.substr(0,v)),r=0,v!=-1)try{r=Ec((Yt(v+1,t.length+1),t.substr(v+1)),Zi,sr)}catch(le){if(le=ci(le),se(le,133))I=t;else throw K(le)}for(I=mt("%",I)?null:j0e(I),U=ege(e.Dh());U.Ob();)if(L=Cj(U),se(L,199)&&(u=l(L,199),J=u.ve(),(I==null?J==null:mt(I,J))&&r--==0))return u;return null}return Gvt(e,t)}function iNn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne;for(v=new hn,m=new g0,o=new V(e.a.a.b);o.at.d.c){if(I=e.c[t.a.d],G=e.c[T.a.d],I==G)continue;Ql($l(Ul(Hl(Bl(new gl,1),100),I),G))}}}}}function oNn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;if(N=l(l(wr(e.r,t),24),85),t==(Ue(),Zt)||t==Wt){eEt(e,t);return}for(u=t==Vt?(T0(),XD):(T0(),ZD),le=t==Vt?(Za(),Nd):(Za(),rd),r=l(Go(e.b,t),129),o=r.i,s=o.c+hE(Z(X(Ki,1),Wo,30,15,[r.n.b,e.C.b,e.k])),J=o.c+o.b-hE(Z(X(Ki,1),Wo,30,15,[r.n.c,e.C.c,e.k])),f=qce(ofe(u),e.t),ne=t==Vt?Oi:Kr,T=N.Jc();T.Ob();)y=l(T.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(G=y.b.Kf(),U=y.e,I=y.c,L=I.i,L.b=(m=I.n,I.e.a+m.b+m.c),L.a=(p=I.n,I.e.b+p.d+p.a),WO(le,uwe),I.f=le,Ed(I,(_u(),nd)),L.c=U.a-(L.b-G.a)/2,Ee=b.Math.min(s,U.a),we=b.Math.max(J,U.a+G.a),L.cwe&&(L.c=we-L.b),je(f.d,new zV(L,e1e(f,L))),ne=t==Vt?b.Math.max(ne,U.b+y.b.Kf().b):b.Math.min(ne,U.b));for(ne+=t==Vt?e.t:-e.t,oe=m1e((f.e=ne,f)),oe>0&&(l(Go(e.b,t),129).a.b=oe),v=N.Jc();v.Ob();)y=l(v.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(L=y.c.i,L.c-=y.e.a,L.d-=y.e.b)}function sNn(e,t){xJ();var r,o,s,u,f,p,m,y,v,T,N,I,L,U;if(m=va(e,0)<0,m&&(e=ag(e)),va(e,0)==0)switch(t){case 0:return"0";case 1:return lk;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return I=new Zg,t<0?I.a+="0E+":I.a+="0E",I.a+=t==Zi?"2147483648":""+-t,I.a}v=18,T=me(al,$f,30,v+1,15,1),r=v,U=e;do y=U,U=q6(U,10),T[--r]=On(To(48,El(y,mo(U,10))))&Ei;while(va(U,0)!=0);if(s=El(El(El(v,r),t),1),t==0)return m&&(T[--r]=45),Lf(T,r,v-r);if(t>0&&va(s,-6)>=0){if(va(s,0)>=0){for(u=r+On(s),p=v-1;p>=u;p--)T[p+1]=T[p];return T[++u]=46,m&&(T[--r]=45),Lf(T,r,v-r+1)}for(f=2;Eq(f,To(ag(s),1));f++)T[--r]=48;return T[--r]=46,T[--r]=48,m&&(T[--r]=45),Lf(T,r,v-r)}return L=r+1,o=v,N=new uS,m&&(N.a+="-"),o-L>=1?(Rb(N,T[r]),N.a+=".",N.a+=Lf(T,r+1,v-r-1)):N.a+=Lf(T,r,v-r),N.a+="E",va(s,0)>0&&(N.a+="+"),N.a+=""+T3(s),N.a}function aEt(e){t0(e,new Xb(nO(Zm(Ym(Xm(Jm(new wb,Qc),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new dze),Qc))),Oe(e,Qc,NF,ze(jRt)),Oe(e,Qc,F0,ze(FRt)),Oe(e,Qc,ME,ze(DRt)),Oe(e,Qc,gT,ze(LRt)),Oe(e,Qc,pT,ze(MRt)),Oe(e,Qc,vk,ze(ORt)),Oe(e,Qc,wk,ze(lke)),Oe(e,Qc,Ek,ze(PRt)),Oe(e,Qc,LZ,ze(pne)),Oe(e,Qc,DZ,ze(gne)),Oe(e,Qc,LF,ze(fke)),Oe(e,Qc,MZ,ze(bne)),Oe(e,Qc,PZ,ze(hke)),Oe(e,Qc,hve,ze(pke)),Oe(e,Qc,fve,ze(dke)),Oe(e,Qc,uve,ze(BB)),Oe(e,Qc,cve,ze(UB)),Oe(e,Qc,lve,ze(CL)),Oe(e,Qc,dve,ze(gke)),Oe(e,Qc,ave,ze(cke))}function L0(e,t,r,o,s){var u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;if(G=new Le(e.g,e.f),U=Vbe(e),U.a=b.Math.max(U.a,t),U.b=b.Math.max(U.b,r),we=U.a/G.a,v=U.b/G.b,le=U.a-G.a,m=U.b-G.b,o)for(f=Br(e)?l(ye(Br(e),(_n(),Em)),87):l(ye(e,(_n(),Em)),87),p=be(ye(e,(_n(),gx)))===be((qi(),fa)),ne=new en((!e.c&&(e.c=new xe(zu,e,9,9)),e.c));ne.e!=ne.i.gc();)switch(J=l(rn(ne),127),oe=l(ye(J,m2),64),oe==(Ue(),Cs)&&(oe=p0e(J,f),Vn(J,m2,oe)),oe.g){case 1:p||ya(J,J.i*we);break;case 2:ya(J,J.i+le),p||gu(J,J.j*v);break;case 3:p||ya(J,J.i*we),gu(J,J.j+m);break;case 4:p||gu(J,J.j*v)}if(r0(e,U.a,U.b),s)for(N=new en((!e.n&&(e.n=new xe(Is,e,1,7)),e.n));N.e!=N.i.gc();)T=l(rn(N),158),I=T.i+T.g/2,L=T.j+T.f/2,Ee=I/G.a,y=L/G.b,Ee+y>=1&&(Ee-y>0&&L>=0?(ya(T,T.i+le),gu(T,T.j+m*y)):Ee-y<0&&I>=0&&(ya(T,T.i+le*Ee),gu(T,T.j+m)));return Vn(e,(_n(),Sm),(oc(),u=l(md(_4),10),new Hc(u,l(Gl(u,u.length),10),0))),new Le(we,v)}function J7(e){var t,r,o,s,u,f,p,m,y,v,T;if(e==null)throw K(new kf(tu));if(y=e,u=e.length,m=!1,u>0&&(t=(Yt(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Yt(1,e.length+1),e.substr(1)),--u,m=t==45)),u==0)throw K(new kf(j0+y+'"'));for(;e.length>0&&(Yt(0,e.length),e.charCodeAt(0)==48);)e=(Yt(1,e.length+1),e.substr(1)),--u;if(u>(Myt(),F_t)[10])throw K(new kf(j0+y+'"'));for(s=0;s0&&(T=-parseInt((no(0,o,e.length),e.substr(0,o)),10),e=(Yt(o,e.length+1),e.substr(o)),u-=o,r=!1);u>=f;){if(o=parseInt((no(0,f,e.length),e.substr(0,f)),10),e=(Yt(f,e.length+1),e.substr(f)),u-=f,r)r=!1;else{if(va(T,p)<0)throw K(new kf(j0+y+'"'));T=mo(T,v)}T=El(T,o)}if(va(T,0)>0)throw K(new kf(j0+y+'"'));if(!m&&(T=ag(T),va(T,0)<0))throw K(new kf(j0+y+'"'));return T}function j0e(e){DJ();var t,r,o,s,u,f,p,m;if(e==null)return null;if(s=xf(e,Qa(37)),s<0)return e;for(m=new fc((no(0,s,e.length),e.substr(0,s))),t=me(Eu,BE,30,4,15,1),p=0,o=0,f=e.length;ss+2&&OK((Yt(s+1,e.length),e.charCodeAt(s+1)),f3e,h3e)&&OK((Yt(s+2,e.length),e.charCodeAt(s+2)),f3e,h3e))if(r=pon((Yt(s+1,e.length),e.charCodeAt(s+1)),(Yt(s+2,e.length),e.charCodeAt(s+2))),s+=2,o>0?(r&192)==128?t[p++]=r<<24>>24:o=0:r>=128&&((r&224)==192?(t[p++]=r<<24>>24,o=2):(r&240)==224?(t[p++]=r<<24>>24,o=3):(r&248)==240&&(t[p++]=r<<24>>24,o=4)),o>0){if(p==o){switch(p){case 2:{Rb(m,((t[0]&31)<<6|t[1]&63)&Ei);break}case 3:{Rb(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ei);break}}p=0,o=0}}else{for(u=0;u=2){if((!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i==0)r=(e1(),s=new h9,s),Tn((!e.a&&(e.a=new xe(jr,e,6,6)),e.a),r);else if((!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i>1)for(N=new vS((!e.a&&(e.a=new xe(jr,e,6,6)),e.a));N.e!=N.i.gc();)gC(N);b0e(t,l(ie((!e.a&&(e.a=new xe(jr,e,6,6)),e.a),0),171))}if(T)for(o=new en((!e.a&&(e.a=new xe(jr,e,6,6)),e.a));o.e!=o.i.gc();)for(r=l(rn(o),171),y=new en((!r.a&&(r.a=new yi(Ic,r,5)),r.a));y.e!=y.i.gc();)m=l(rn(y),373),p.a=b.Math.max(p.a,m.a),p.b=b.Math.max(p.b,m.b);for(f=new en((!e.n&&(e.n=new xe(Is,e,1,7)),e.n));f.e!=f.i.gc();)u=l(rn(f),158),v=l(ye(u,y4),8),v&&Bc(u,v.a,v.b),T&&(p.a=b.Math.max(p.a,u.i+u.g),p.b=b.Math.max(p.b,u.j+u.f));return p}function cEt(e,t,r,o,s){var u,f,p;if(Rdt(e,t),f=t[0],u=uo(r.c,0),p=-1,Cge(r))if(o>0){if(f+o>e.length)return!1;p=_7((no(0,f+o,e.length),e.substr(0,f+o)),t)}else p=_7(e,t);switch(u){case 71:return p=_E(e,f,Z(X(Ye,1),Me,2,6,[YEt,JEt]),t),s.e=p,!0;case 77:return TSn(e,t,s,p,f);case 76:return ASn(e,t,s,p,f);case 69:return Tyn(e,t,f,s);case 99:return Ayn(e,t,f,s);case 97:return p=_E(e,f,Z(X(Ye,1),Me,2,6,["AM","PM"]),t),s.b=p,!0;case 121:return _Sn(e,t,f,p,r,s);case 100:return p<=0?!1:(s.c=p,!0);case 83:return p<0?!1:jgn(p,f,t[0],s);case 104:p==12&&(p=0);case 75:case 72:return p<0?!1:(s.f=p,s.g=!1,!0);case 107:return p<0?!1:(s.f=p,s.g=!0,!0);case 109:return p<0?!1:(s.j=p,!0);case 115:return p<0?!1:(s.n=p,!0);case 90:if(flt[m]&&(G=m),T=new V(e.a.b);T.a=p){un(ne.b>0),ne.a.Xb(ne.c=--ne.b);break}else G.a>m&&(o?(li(o.b,G.b),o.a=b.Math.max(o.a,G.a),Lu(ne)):(je(G.b,v),G.c=b.Math.min(G.c,m),G.a=b.Math.max(G.a,p),o=G));o||(o=new gZe,o.c=m,o.a=p,qw(ne,o),je(o.b,v))}for(f=e.b,y=0,J=new V(r);J.a1;){if(s=b2n(t),T=u.g,L=l(ye(t,s4),100),U=ue(ce(ye(t,qB))),(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i>1&&ue(ce(ye(t,(yh(),_ne))))!=Kr&&(u.c+(L.b+L.c))/(u.b+(L.d+L.a))1&&ue(ce(ye(t,(yh(),Ane))))!=Kr&&(u.c+(L.b+L.c))/(u.b+(L.d+L.a))>U&&Vn(s,(yh(),rv),b.Math.max(ue(ce(ye(t,o4))),ue(ce(ye(s,rv)))-ue(ce(ye(t,Ane))))),I=new $le(o,v),m=kEt(I,s,N),y=m.g,y>=T&&y==y){for(f=0;f<(!s.a&&(s.a=new xe(En,s,10,11)),s.a).i;f++)Vmt(e,l(ie((!s.a&&(s.a=new xe(En,s,10,11)),s.a),f),19),l(ie((!t.a&&(t.a=new xe(En,t,10,11)),t.a),f),19));lft(t,I),Xan(u,m.c),Zan(u,m.b)}--p}Vn(t,(yh(),lx),u.b),Vn(t,jT,u.c),r.Ug()}function dNn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt;for(t.Tg("Compound graph postprocessor",1),r=Ke(We(j(e,(Be(),Ate)))),p=l(j(e,(Ie(),sTe)),231),v=new hi,J=p.ec().Jc();J.Ob();){for(G=l(J.Pb(),17),f=new Tu(p.cc(G)),St(),_i(f,new uce(e)),Ee=Qfn((at(0,f.c.length),l(f.c[0],253))),Ge=aht(l(He(f,f.c.length-1),253)),oe=Ee.i,S_(Ge.i,oe)?ne=oe.e:ne=ji(oe),T=U1n(G,f),ec(G.a),N=null,u=new V(f);u.aUf,dt=b.Math.abs(N.b-L.b)>Uf,(!r&<&&dt||r&&(lt||dt))&&Gn(G.a,le)),bo(G.a,o),o.b==0?N=le:N=(un(o.b!=0),l(o.c.b.c,8)),Ahn(I,T,U),aht(s)==Ge&&(ji(Ge.i)!=s.a&&(U=new to,zbe(U,ji(Ge.i),ne)),Ae(G,ite,U)),Bwn(I,G,ne),v.a.yc(I,v);go(G,Ee),Yi(G,Ge)}for(y=v.a.ec().Jc();y.Ob();)m=l(y.Pb(),17),go(m,null),Yi(m,null);t.Ug()}function fNn(e,t){var r,o,s,u,f,p,m,y,v,T,N;for(s=l(j(e,(Ps(),aw)),87),v=s==(vi(),is)||s==cs?ff:cs,r=l(Au(lr(new yt(null,new vt(e.b,16)),new mHe),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),m=l(Au(Ia(r.Mc(),new FJe(t)),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[nu]))),16),m.Fc(l(Au(Ia(r.Mc(),new $Je(t)),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[nu]))),18)),m.gd(new BJe(v)),N=new Zp(new UJe(s)),o=new hn,p=m.Jc();p.Ob();)f=l(p.Pb(),243),y=l(f.a,41),Ke(We(f.c))?(N.a.yc(y,(Lt(),D1))==null,new CA(N.a.Xc(y,!1)).a.gc()>0&&Yn(o,y,l(new CA(N.a.Xc(y,!1)).a.Tc(),41)),new CA(N.a.$c(y,!0)).a.gc()>1&&Yn(o,wgt(N,y),y)):(new CA(N.a.Xc(y,!1)).a.gc()>0&&(u=l(new CA(N.a.Xc(y,!1)).a.Tc(),41),be(u)===be(Es(Zo(o.f,y)))&&l(j(y,(xr(),Yte)),16).Ec(u)),new CA(N.a.$c(y,!0)).a.gc()>1&&(T=wgt(N,y),be(Es(Zo(o.f,T)))===be(y)&&l(j(T,(xr(),Yte)),16).Ec(y)),N.a.Ac(y)!=null)}function lEt(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le;if(e.gc()==1)return l(e.Xb(0),238);if(e.gc()<=0)return new KP;for(s=e.Jc();s.Ob();){for(r=l(s.Pb(),238),L=0,v=sr,T=sr,m=Zi,y=Zi,I=new V(r.e);I.ap&&(oe=0,le+=f+J,f=0),jTn(U,r,oe,le),t=b.Math.max(t,oe+G.a),f=b.Math.max(f,G.b),oe+=G.a+J;return U}function hNn(e){h0e();var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;if(e==null||(u=oj(e),L=Xpn(u),L%4!=0))return null;if(U=L/4|0,U==0)return me(Eu,BE,30,0,15,1);for(T=null,t=0,r=0,o=0,s=0,f=0,p=0,m=0,y=0,I=0,N=0,v=0,T=me(Eu,BE,30,U*3,15,1);I>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|s)<<24>>24}return!sO(f=u[v++])||!sO(p=u[v++])?null:(t=mf[f],r=mf[p],m=u[v++],y=u[v++],mf[m]==-1||mf[y]==-1?m==61&&y==61?r&15?null:(G=me(Eu,BE,30,I*3+1,15,1),ua(T,0,G,0,I*3),G[N]=(t<<2|r>>4)<<24>>24,G):m!=61&&y==61?(o=mf[m],o&3?null:(G=me(Eu,BE,30,I*3+2,15,1),ua(T,0,G,0,I*3),G[N++]=(t<<2|r>>4)<<24>>24,G[N]=((r&15)<<4|o>>2&15)<<24>>24,G)):null:(o=mf[m],s=mf[y],T[N++]=(t<<2|r>>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|s)<<24>>24,T))}function pNn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee;for(t.Tg(tSt,1),L=l(j(e,(Be(),_p)),225),s=new V(e.b);s.a=2){for(U=!0,N=new V(u.j),r=l(q(N),12),I=null;N.a0)if(o=T.gc(),y=po(b.Math.floor((o+1)/2))-1,s=po(b.Math.ceil((o+1)/2))-1,t.o==uf)for(v=s;v>=y;v--)t.a[le.p]==le&&(U=l(T.Xb(v),49),L=l(U.a,9),!bl(r,U.b)&&I>e.b.e[L.p]&&(t.a[L.p]=le,t.g[le.p]=t.g[L.p],t.a[le.p]=t.g[le.p],t.f[t.g[le.p].p]=(Lt(),!!(Ke(t.f[t.g[le.p].p])&le.k==(Ht(),gi))),I=e.b.e[L.p]));else for(v=y;v<=s;v++)t.a[le.p]==le&&(J=l(T.Xb(v),49),G=l(J.a,9),!bl(r,J.b)&&I0&&(s=l(He(G.c.a,we-1),9),f=e.i[s.p],lt=b.Math.ceil(rE(e.n,s,G)),u=Ee.a.e-G.d.d-(f.a.e+s.o.b+s.d.a)-lt),y=Kr,we0&&Ge.a.e.e-Ge.a.a-(Ge.b.e.e-Ge.b.a)<0,L=oe.a.e.e-oe.a.a-(oe.b.e.e-oe.b.a)<0&&Ge.a.e.e-Ge.a.a-(Ge.b.e.e-Ge.b.a)>0,I=oe.a.e.e+oe.b.aGe.b.e.e+Ge.a.a,le=0,!U&&!L&&(N?u+T>0?le=T:y-o>0&&(le=o):I&&(u+p>0?le=p:y-ne>0&&(le=ne))),Ee.a.e+=le,Ee.b&&(Ee.d.e+=le),!1))}function fEt(e,t,r){var o,s,u,f,p,m,y,v,T,N;if(o=new ql(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),s=new bS,e.c)for(f=new V(t.Pf());f.a0&&Ii(I,(at(r,t.c.length),l(t.c[r],26))),u=0,N=!0,J=ic(Mb(si(I))),m=J.Jc();m.Ob();){for(p=l(m.Pb(),17),N=!1,T=p,y=0;y(at(y,t.c.length),l(t.c[y],26)).a.c.length?Ii(s,(at(y,t.c.length),l(t.c[y],26))):E1(s,o+u,(at(y,t.c.length),l(t.c[y],26))),T=cJ(T,s);r>0&&(u+=1)}if(N){for(y=0;y(at(y,t.c.length),l(t.c[y],26)).a.c.length?Ii(s,(at(y,t.c.length),l(t.c[y],26))):E1(s,o+u,(at(y,t.c.length),l(t.c[y],26)));r>0&&(u+=1)}for(f=!1,U=new Ft(Gt(Rr(I).a.Jc(),new D));an(U);){for(L=l(Qt(U),17),T=L,v=r+1;v(at(y,t.c.length),l(t.c[y],26)).a.c.length?Ii(G,(at(y,t.c.length),l(t.c[y],26))):E1(G,o+1,(at(y,t.c.length),l(t.c[y],26))));f&&(u+=1),f=!0}return u>0?u-1:0}function k1(e,t){fr();var r,o,s,u,f,p,m,y,v,T,N,I,L;if(GN(_x)==0){for(T=me(W3n,Me,122,TLt.length,0,1),f=0;fy&&(o.a+=Ynt(me(al,$f,30,-y,15,1))),o.a+="Is",xf(m,Qa(32))>=0)for(s=0;s=o.o.b/2}else ne=!T;ne?(J=l(j(o,(Ie(),DT)),16),J?N?u=J:(s=l(j(o,kT),16),s?J.gc()<=s.gc()?u=J:u=s:(u=new Pe,Ae(o,kT,u))):(u=new Pe,Ae(o,DT,u))):(s=l(j(o,(Ie(),kT)),16),s?T?u=s:(J=l(j(o,DT),16),J?s.gc()<=J.gc()?u=s:u=J:(u=new Pe,Ae(o,DT,u))):(u=new Pe,Ae(o,kT,u))),u.Ec(e),Ae(e,(Ie(),Q$),r),t.d==r?(Yi(t,null),r.e.c.length+r.g.c.length==0&&Ts(r,null),Qhn(r)):(go(t,null),r.e.c.length+r.g.c.length==0&&Ts(r,null)),ec(t.a)}function yNn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt,on,qn,Gr;for(r.Tg("MinWidth layering",1),I=t.b,Ge=t.a,Gr=l(j(t,(Be(),bAe)),15).a,p=l(j(t,mAe),15).a,e.b=ue(ce(j(t,od))),e.d=Kr,le=new V(Ge);le.aI&&(u&&(vo(we,N),vo(lt,Re(y.b-1))),qn=r.b,Gr+=N+t,N=0,v=b.Math.max(v,r.b+r.c+on)),ya(p,qn),gu(p,Gr),v=b.Math.max(v,qn+on+r.c),N=b.Math.max(N,T),qn+=on+t;if(v=b.Math.max(v,o),Dt=Gr+N+r.a,Dt0?(y=0,G&&(y+=p),y+=(dt-1)*f,oe&&(y+=p),lt&&oe&&(y=b.Math.max(y,P2n(oe,f,ne,Ge))),y=e.a&&(o=e_n(e,ne),v=b.Math.max(v,o.b),le=b.Math.max(le,o.d),je(p,new ko(ne,o)));for(lt=new Pe,y=0;y0),G.a.Xb(G.c=--G.b),dt=new ra(e.b),qw(G,dt),un(G.b0){for(N=v<100?null:new Qg(v),y=new cge(t),L=y.g,J=me(Rn,Xn,30,v,15,1),o=0,le=new m0(v),s=0;s=0;)if(I!=null?pr(I,L[m]):be(I)===be(L[m])){J.length<=o&&(G=J,J=me(Rn,Xn,30,2*J.length,15,1),ua(G,0,J,0,o)),J[o++]=s,Tn(le,L[m]);break e}if(I=I,be(I)===be(p))break}}if(y=le,L=le.g,v=o,o>J.length&&(G=J,J=me(Rn,Xn,30,o,15,1),ua(G,0,J,0,o)),o>0){for(oe=!0,u=0;u=0;)JS(e,J[f]);if(o!=v){for(s=v;--s>=o;)JS(y,s);G=J,J=me(Rn,Xn,30,o,15,1),ua(G,0,J,0,o)}t=y}}}else for(t=Kbn(e,t),s=e.i;--s>=0;)t.Gc(e.g[s])&&(JS(e,s),oe=!0);if(oe){if(J!=null){for(r=t.gc(),T=r==1?L3(e,4,t.Jc().Pb(),null,J[0],U):L3(e,6,t,J,J[0],U),N=r<100?null:new Qg(r),s=t.Jc();s.Ob();)I=s.Pb(),N=tfe(e,l(I,76),N);N?(N.lj(T),N.mj()):hr(e.e,T)}else{for(N=Onn(t.gc()),s=t.Jc();s.Ob();)I=s.Pb(),N=tfe(e,l(I,76),N);N&&N.mj()}return!0}else return!1}function ANn(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;for(r=new l1t(t),r.a||KTn(t),y=VSn(t),m=new g0,G=new kwt,U=new V(t.a);U.a0||r.o==uf&&s=r}function kNn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct;for(oe=e.a,le=0,Ee=oe.length;le0?(T=l(He(N.c.a,f-1),9),lt=rE(e.b,N,T),G=N.n.b-N.d.d-(T.n.b+T.o.b+T.d.a+lt)):G=N.n.b-N.d.d,y=b.Math.min(G,y),f1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,1),8).b-v.b)))));else for(U=new V(t.j);U.as&&(u=N.a-s,f=sr,o.c.length=0,s=N.a),N.a>=s&&(Ot(o.c,p),p.a.b>1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,p.a.b-2),8).b-N.b)))));if(o.c.length!=0&&u>t.o.a/2&&f>t.o.b/2){for(I=new aa,Ts(I,t),Ni(I,(Ue(),Vt)),I.n.a=t.o.a/2,J=new aa,Ts(J,t),Ni(J,dn),J.n.a=t.o.a/2,J.n.b=t.o.b,m=new V(o);m.a=y.b?go(p,J):go(p,I)):(y=l(ion(p.a),8),G=p.a.b==0?qd(p.c):l(zl(p.a),8),G.b>=y.b?Yi(p,J):Yi(p,I)),T=l(j(p,(Be(),rs)),79),T&&py(T,y,!0);t.n.a=s-t.o.a/2}}function CNn(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(p=An(e.b,0);p.b!=p.d.c;)if(f=l(Sn(p),41),!mt(f.c,RF))for(y=Zvn(f,e),t==(vi(),is)||t==cs?_i(y,new WHe):_i(y,new KHe),m=y.c.length,o=0;o=0?I=qS(p):I=L6(qS(p)),e.of(nx,I)),y=new to,N=!1,e.nf(ow)?(_de(y,l(e.mf(ow),8)),N=!0):Etn(y,f.a/2,f.b/2),I.g){case 4:Ae(v,Ns,(rc(),Ap)),Ae(v,tB,(Gb(),JE)),v.o.b=f.b,U<0&&(v.o.a=-U),Ni(T,(Ue(),Zt)),N||(y.a=f.a),y.a-=f.a;break;case 2:Ae(v,Ns,(rc(),hm)),Ae(v,tB,(Gb(),Yk)),v.o.b=f.b,U<0&&(v.o.a=-U),Ni(T,(Ue(),Wt)),N||(y.a=0);break;case 1:Ae(v,dm,(up(),ZE)),v.o.a=f.a,U<0&&(v.o.b=-U),Ni(T,(Ue(),dn)),N||(y.b=f.b),y.b-=f.b;break;case 3:Ae(v,dm,(up(),_T)),v.o.a=f.a,U<0&&(v.o.b=-U),Ni(T,(Ue(),Vt)),N||(y.b=0)}if(_de(T.n,y),Ae(v,ow,y),t==Tm||t==Oh||t==fa){if(L=0,t==Tm&&e.nf(_g))switch(I.g){case 1:case 2:L=l(e.mf(_g),15).a;break;case 3:case 4:L=-l(e.mf(_g),15).a}else switch(I.g){case 4:case 2:L=u.b,t==Oh&&(L/=s.b);break;case 1:case 3:L=u.a,t==Oh&&(L/=s.a)}Ae(v,tw,L)}return Ae(v,Us,I),v}function INn(){Kce();function e(o){var s=this;this.dispatch=function(u){var f=u.data;switch(f.cmd){case"algorithms":var p=v1e((St(),new NA(new Jh(J1.b))));o.postMessage({id:f.id,data:p});break;case"categories":var m=v1e((St(),new NA(new Jh(J1.c))));o.postMessage({id:f.id,data:m});break;case"options":var y=v1e((St(),new NA(new Jh(J1.d))));o.postMessage({id:f.id,data:y});break;case"register":Ikn(f.algorithms),o.postMessage({id:f.id});break;case"layout":Y_n(f.graph,f.layoutOptions||{},f.options||{}),o.postMessage({id:f.id,data:f.graph});break}},this.saveDispatch=function(u){try{s.dispatch(u)}catch(f){o.postMessage({id:u.data.id,error:f})}}}function t(o){var s=this;this.dispatcher=new e({postMessage:function(u){s.onmessage({data:u})}}),this.postMessage=function(u){setTimeout(function(){s.dispatcher.saveDispatch({data:u})},0)}}if(typeof document===AX&&typeof self!==AX){var r=new e(self);self.onmessage=r.saveDispatch}else typeof c!==AX&&c.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),c.exports={default:t,Worker:t})}function BJ(e,t,r,o,s,u,f){var p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt,on,qn,Gr;for(U=0,Ct=0,y=new V(e.b);y.aU&&(u&&(vo(we,I),vo(lt,Re(v.b-1)),je(e.d,L),p.c.length=0),qn=r.b,Gr+=I+t,I=0,T=b.Math.max(T,r.b+r.c+on)),Ot(p.c,m),i1t(m,qn,Gr),T=b.Math.max(T,qn+on+r.c),I=b.Math.max(I,N),qn+=on+t,L=m;if(li(e.a,p),je(e.d,l(He(p,p.c.length-1),168)),T=b.Math.max(T,o),Dt=Gr+I+r.a,Dts.d.d+s.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))),o.b!=o.d.c&&(t=r);v&&(u=l(Ut(e.f,f.d.i),60),t.bu.d.d+u.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))}for(p=new Ft(Gt(si(I).a.Jc(),new D));an(p);)f=l(Qt(p),17),f.a.b!=0&&(t=l(zl(f.a),8),f.d.j==(Ue(),Vt)&&(G=new IC(t,new Le(t.a,s.d.d),s,f),G.f.a=!0,G.a=f.d,Ot(U.c,G)),f.d.j==dn&&(G=new IC(t,new Le(t.a,s.d.d+s.d.a),s,f),G.f.d=!0,G.a=f.d,Ot(U.c,G)))}return U}function PNn(e,t,r){var o,s,u,f,p,m,y,v,T,N;for(m=new Pe,T=t.length,f=kge(r),y=0;y=L&&(ne>L&&(I.c.length=0,L=ne),Ot(I.c,f));I.c.length!=0&&(N=l(He(I,s7(t,I.c.length)),134),Dt.a.Ac(N)!=null,N.s=U++,kme(N,dt,we),I.c.length=0)}for(le=e.c.length+1,p=new V(e);p.aCt.s&&(Lu(r),Xa(Ct.i,o),o.c>0&&(o.a=Ct,je(Ct.t,o),o.b=Ge,je(Ge.i,o)))}function wEt(e,t,r,o,s){var u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt;for(U=new Ra(t.b),le=new Ra(t.b),N=new Ra(t.b),lt=new Ra(t.b),G=new Ra(t.b),Ge=An(t,0);Ge.b!=Ge.d.c;)for(Ee=l(Sn(Ge),12),p=new V(Ee.g);p.a0,J=Ee.g.c.length>0,y&&J?Ot(N.c,Ee):y?Ot(U.c,Ee):J&&Ot(le.c,Ee);for(L=new V(U);L.ane.mh()-y.b&&(N=ne.mh()-y.b),I>ne.nh()-y.d&&(I=ne.nh()-y.d),v0){for(oe=An(e.f,0);oe.b!=oe.d.c;)ne=l(Sn(oe),9),ne.p+=N-e.e;Hbe(e),ec(e.f),Ume(e,o,I)}else{for(Gn(e.f,I),I.p=o,e.e=b.Math.max(e.e,o),u=new Ft(Gt(si(I).a.Jc(),new D));an(u);)s=l(Qt(u),17),!s.c.i.c&&s.c.i.k==(Ht(),ta)&&(Gn(e.f,s.c.i),s.c.i.p=o-1);e.c=o}else Hbe(e),ec(e.f),o=0,an(new Ft(Gt(si(I).a.Jc(),new D)))?(N=0,N=u1t(N,I),o=N+2,Ume(e,o,I)):(Gn(e.f,I),I.p=0,e.e=b.Math.max(e.e,0),e.b=l(He(e.d.b,0),26),e.c=0);for(e.f.b==0||Hbe(e),e.d.a.c.length=0,J=new Pe,y=new V(e.d.b);y.a=48&&t<=57){for(o=t-48;s=48&&t<=57;)if(o=o*10+t-48,o<0)throw K(new Dn(Pn((Cn(),pEe))))}else throw K(new Dn(Pn((Cn(),gAt))));if(r=o,t==44){if(s>=e.j)throw K(new Dn(Pn((Cn(),mAt))));if((t=uo(e.i,s++))>=48&&t<=57){for(r=t-48;s=48&&t<=57;)if(r=r*10+t-48,r<0)throw K(new Dn(Pn((Cn(),pEe))));if(o>r)throw K(new Dn(Pn((Cn(),wAt))))}else r=-1}if(t!=125)throw K(new Dn(Pn((Cn(),bAt))));e._l(s)?(u=(fr(),fr(),new iy(9,u)),e.d=s+1):(u=(fr(),fr(),new iy(3,u)),e.d=s),u.Mm(o),u.Lm(r),dr(e)}}return u}function HNn(e){var t,r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee;for(s=1,I=new Pe,o=0;o=l(He(e.b,o),26).a.c.length/4)continue}if(l(He(e.b,o),26).a.c.length>t){for(le=new Pe,je(le,l(He(e.b,o),26)),f=0;f1)for(L=new vS((!e.a&&(e.a=new xe(jr,e,6,6)),e.a));L.e!=L.i.gc();)gC(L);for(f=l(ie((!e.a&&(e.a=new xe(jr,e,6,6)),e.a),0),171),G=qn,qn>Ee+le?G=Ee+le:qnwe+U?J=we+U:GrEe-le&&Gwe-U&&Jqn+on?lt=qn+on:EeGr+Ge?dt=Gr+Ge:weqn-on&<Gr-Ge&&dtr&&(N=r-1),I=Pg+$u(t,24)*TD*T-T/2,I<0?I=1:I>o&&(I=o-1),s=(e1(),m=new p9,m),hj(s,N),fj(s,I),Tn((!f.a&&(f.a=new yi(Ic,f,5)),f.a),s)}function zJ(e,t){xJ();var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge;if(oe=e.e,v=e.d,s=e.a,oe==0)switch(t){case 0:return"0";case 1:return lk;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return J=new Zg,J.a+="0E",J.a+=-t,J.a}if(U=v*10+1+7,G=me(al,$f,30,U+1,15,1),r=U,v==1)if(u=s[0],u<0){Ge=Gi(u,Po);do T=Ge,Ge=q6(Ge,10),G[--r]=48+On(El(T,mo(Ge,10)))&Ei;while(va(Ge,0)!=0)}else{Ge=u;do T=Ge,Ge=Ge/10|0,G[--r]=48+(T-Ge*10)&Ei;while(Ge!=0)}else{le=me(Rn,Xn,30,v,15,1),we=v,ua(s,0,le,0,we);e:for(;;){for(ne=0,p=we-1;p>=0;p--)Ee=To(fh(ne,32),Gi(le[p],Po)),I=U0n(Ee),le[p]=On(I),ne=On(a0(I,32));L=On(ne),N=r;do G[--r]=48+L%10&Ei;while((L=L/10|0)!=0&&r!=0);for(o=9-N+r,f=0;f0;f++)G[--r]=48;for(m=we-1;le[m]==0;m--)if(m==0)break e;we=m+1}for(;G[r]==48;)++r}return y=oe<0,y&&(G[--r]=45),Lf(G,r,U-r)}function SEt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;switch(e.c=t,e.g=new hn,r=(t1(),new Kp(e.c)),o=new S9(r),g1e(o),oe=In(ye(e.c,(W6(),sxe))),m=l(ye(e.c,Bne),331),Ee=l(ye(e.c,Une),432),f=l(ye(e.c,rxe),480),le=l(ye(e.c,$ne),433),e.j=ue(ce(ye(e.c,xOt))),p=e.a,m.g){case 0:p=e.a;break;case 1:p=e.b;break;case 2:p=e.i;break;case 3:p=e.e;break;case 4:p=e.f;break;default:throw K(new jt(PF+(m.f!=null?m.f:""+m.g)))}if(e.d=new $at(p,Ee,f),Ae(e.d,(E_(),wI),We(ye(e.c,_Ot))),e.d.c=Ke(We(ye(e.c,ixe))),_P(e.c).i==0)return e.d;for(T=new en(_P(e.c));T.e!=T.i.gc();){for(v=l(rn(T),19),I=v.g/2,N=v.f/2,we=new Le(v.i+I,v.j+N);ba(e.g,we);)zw(we,(b.Math.random()-.5)*Uf,(b.Math.random()-.5)*Uf);U=l(ye(v,(_n(),xp)),125),G=new cut(we,new ql(we.a-I-e.j/2-U.b,we.b-N-e.j/2-U.d,v.g+e.j+(U.b+U.c),v.f+e.j+(U.d+U.a))),je(e.d.i,G),Yn(e.g,we,new ko(G,v))}switch(le.g){case 0:if(oe==null)e.d.d=l(He(e.d.i,0),68);else for(ne=new V(e.d.i);ne.a0?on+1:1);for(f=new V(we.g);f.a0?on+1:1)}e.d[y]==0?Gn(e.f,U):e.a[y]==0&&Gn(e.g,U),++y}for(L=-1,I=1,T=new Pe,e.e=l(j(t,(Ie(),RT)),237);Rc>0;){for(;e.f.b!=0;)Gr=l(LV(e.f),9),e.c[Gr.p]=L--,i0e(e,Gr),--Rc;for(;e.g.b!=0;)Ou=l(LV(e.g),9),e.c[Ou.p]=I++,i0e(e,Ou),--Rc;if(Rc>0){for(N=Zi,ne=new V(oe);ne.a=N&&(le>N&&(T.c.length=0,N=le),Ot(T.c,U)));v=e.qg(T),e.c[v.p]=I++,i0e(e,v),--Rc}}for(qn=oe.c.length+1,y=0;ye.c[os]&&(bg(o,!0),Ae(t,xT,(Lt(),!0)));e.a=null,e.d=null,e.c=null,ec(e.g),ec(e.f),r.Ug()}function AEt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;for(Ee=l(ie((!e.a&&(e.a=new xe(jr,e,6,6)),e.a),0),171),v=new Du,le=new hn,we=Oyt(Ee),eu(le.f,Ee,we),N=new hn,o=new Sr,L=hh(Wc(Z(X(nl,1),Rt,22,0,[(!t.d&&(t.d=new Et(Cr,t,8,5)),t.d),(!t.e&&(t.e=new Et(Cr,t,7,4)),t.e)])));an(L);){if(I=l(Qt(L),74),(!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i!=1)throw K(new jt(TTt+(!e.a&&(e.a=new xe(jr,e,6,6)),e.a).i));I!=e&&(G=l(ie((!I.a&&(I.a=new xe(jr,I,6,6)),I.a),0),171),Wr(o,G,o.c.b,o.c),U=l(Es(Zo(le.f,G)),13),U||(U=Oyt(G),eu(le.f,G,U)),T=r?Ri(new Eo(l(He(we,we.c.length-1),8)),l(He(U,U.c.length-1),8)):Ri(new Eo((at(0,we.c.length),l(we.c[0],8))),(at(0,U.c.length),l(U.c[0],8))),eu(N.f,G,T))}if(o.b!=0)for(J=l(He(we,r?we.c.length-1:0),8),y=1;y1&&Wr(v,J,v.c.b,v.c),cK(s)));J=ne}return v}function _Et(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct;for(r.Tg(CSt,1),Ct=l(Au(lr(new yt(null,new vt(t,16)),new UHe),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),v=l(Au(lr(new yt(null,new vt(t,16)),new zJe(t)),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[nu]))),16),L=l(Au(lr(new yt(null,new vt(t,16)),new HJe(t)),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[nu]))),16),U=me(DB,OF,41,t.gc(),0,1),f=0;f=0&&dt=0&&!U[I]){U[I]=s,v.ed(p),--p;break}if(I=dt-N,I=0&&!U[I]){U[I]=s,v.ed(p),--p;break}}for(L.gd(new HHe),m=U.length-1;m>=0;m--)!U[m]&&!L.dc()&&(U[m]=l(L.Xb(0),41),L.ed(0));for(y=0;yN&&z6((at(N,t.c.length),l(t.c[N],189)),v),v=null;t.c.length>N&&(at(N,t.c.length),l(t.c[N],189)).a.c.length==0;)Xa(t,(at(N,t.c.length),t.c[N]));if(!v){--f;continue}if(!Ke(We(l(He(v.b,0),19).mf((ef(),RL))))&&aAn(t,L,u,v,G,r,N,o)){U=!0;continue}if(G){if(I=L.b,T=v.f,!Ke(We(l(He(v.b,0),19).mf(RL)))&&Ckn(t,L,u,v,r,N,o,s)){if(U=!0,I=e.j){e.a=-1,e.c=1;return}if(t=uo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(o=10,e.d>=e.j)throw K(new Dn(Pn((Cn(),GF))));e.a=uo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||uo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw K(new Dn(Pn((Cn(),fQ))));switch(t=uo(e.i,e.d++),t){case 58:o=13;break;case 61:o=14;break;case 33:o=15;break;case 91:o=19;break;case 62:o=18;break;case 60:if(e.d>=e.j)throw K(new Dn(Pn((Cn(),fQ))));if(t=uo(e.i,e.d++),t==61)o=16;else if(t==33)o=17;else throw K(new Dn(Pn((Cn(),XTt))));break;case 35:for(;e.d=e.j)throw K(new Dn(Pn((Cn(),GF))));e.a=uo(e.i,e.d++);break;default:o=0}e.c=o}function ZNn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G;if(r.Tg("Process compaction",1),!!Ke(We(j(t,(Ps(),$_e))))){for(s=l(j(t,aw),87),I=ue(ce(j(t,rne))),S_n(e,t,s),fNn(t,I/2/2),L=t.b,Ub(L,new MJe(s)),y=An(L,0);y.b!=y.d.c;)if(m=l(Sn(y),41),!Ke(We(j(m,(xr(),z1))))){if(o=WSn(m,s),U=HAn(m,t),T=0,N=0,o)switch(G=o.e,s.g){case 2:T=G.a-I-m.f.a,U.e.a-I-m.f.aT&&(T=U.e.a+U.f.a+I),N=T+m.f.a;break;case 4:T=G.b-I-m.f.b,U.e.b-I-m.f.bT&&(T=U.e.b+U.f.b+I),N=T+m.f.b}else if(U)switch(s.g){case 2:T=U.e.a-I-m.f.a,N=T+m.f.a;break;case 1:T=U.e.a+U.f.a+I,N=T+m.f.a;break;case 4:T=U.e.b-I-m.f.b,N=T+m.f.b;break;case 3:T=U.e.b+U.f.b+I,N=T+m.f.b}be(j(t,nne))===be((X3(),_L))?(u=T,f=N,p=dp(lr(new yt(null,new vt(e.a,16)),new Ett(u,f))),p.a!=null?s==(vi(),is)||s==cs?m.e.a=T:m.e.b=T:(s==(vi(),is)||s==il?p=dp(lr(gft(new yt(null,new vt(e.a,16))),new PJe(u))):p=dp(lr(gft(new yt(null,new vt(e.a,16))),new jJe(u))),p.a!=null&&(s==is||s==cs?m.e.a=ue(ce((un(p.a!=null),l(p.a,49)).a)):m.e.b=ue(ce((un(p.a!=null),l(p.a,49)).a)))),p.a!=null&&(v=As(e.a,(un(p.a!=null),p.a),0),v>0&&v!=l(j(m,Yf),15).a&&(Ae(m,R_e,(Lt(),!0)),Ae(m,Yf,Re(v))))):s==(vi(),is)||s==cs?m.e.a=T:m.e.b=T}r.Ug()}}function QNn(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee;if(r.Tg("Coffman-Graham Layering",1),t.a.c.length==0){r.Ug();return}for(Ee=l(j(t,(Be(),gAe)),15).a,m=0,f=0,N=new V(t.a);N.a=Ee||!n1n(J,o))&&(o=Kst(t,v)),Ii(J,o),u=new Ft(Gt(si(J).a.Jc(),new D));an(u);)s=l(Qt(u),17),!e.a[s.p]&&(U=s.c.i,--e.e[U.p],e.e[U.p]==0&&AS(q_(I,U),dk));for(y=v.c.length-1;y>=0;--y)je(t.b,(at(y,v.c.length),l(v.c[y],26)));t.a.c.length=0,r.Ug()}function xEt(e){var t,r,o,s,u,f,p,m,y;for(e.b=1,dr(e),t=null,e.c==0&&e.a==94?(dr(e),t=(fr(),fr(),new bc(4)),Ea(t,0,jk),p=new bc(4)):p=(fr(),fr(),new bc(4)),s=!0;(y=e.c)!=1;){if(y==0&&e.a==93&&!s){t&&(PC(t,p),p=t);break}if(r=e.a,o=!1,y==10)switch(r){case 100:case 68:case 119:case 87:case 115:case 83:xy(p,ek(r)),o=!0;break;case 105:case 73:case 99:case 67:r=(xy(p,ek(r)),-1),r<0&&(o=!0);break;case 112:case 80:if(m=ome(e,r),!m)throw K(new Dn(Pn((Cn(),hQ))));xy(p,m),o=!0;break;default:r=zme(e)}else if(y==24&&!s){if(t&&(PC(t,p),p=t),u=xEt(e),PC(p,u),e.c!=0||e.a!=93)throw K(new Dn(Pn((Cn(),aAt))));break}if(dr(e),!o){if(y==0){if(r==91)throw K(new Dn(Pn((Cn(),fEe))));if(r==93)throw K(new Dn(Pn((Cn(),hEe))));if(r==45&&!s&&e.a!=93)throw K(new Dn(Pn((Cn(),pQ))))}if(e.c!=0||e.a!=45||r==45&&s)Ea(p,r,r);else{if(dr(e),(y=e.c)==1)throw K(new Dn(Pn((Cn(),qF))));if(y==0&&e.a==93)Ea(p,r,r),Ea(p,45,45);else{if(y==0&&e.a==93||y==24)throw K(new Dn(Pn((Cn(),pQ))));if(f=e.a,y==0){if(f==91)throw K(new Dn(Pn((Cn(),fEe))));if(f==93)throw K(new Dn(Pn((Cn(),hEe))));if(f==45)throw K(new Dn(Pn((Cn(),pQ))))}else y==10&&(f=zme(e));if(dr(e),r>f)throw K(new Dn(Pn((Cn(),lAt))));Ea(p,r,f)}}}s=!1}if(e.c==1)throw K(new Dn(Pn((Cn(),qF))));return kE(p),DC(p),e.b=0,dr(e),p}function NEt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le;le=!1;do for(le=!1,u=t?new Yh(e.a.b).a.gc()-2:1;t?u>=0:ul(j(G,Nr),15).a)&&(oe=!1);if(oe){for(m=t?u+1:u-1,p=Ghe(e.a,Re(m)),f=!1,ne=!0,o=!1,v=An(p,0);v.b!=v.d.c;)y=l(Sn(v),9),gr(y,Nr)?y.p!=T.p&&(f=f|(t?l(j(y,Nr),15).al(j(T,Nr),15).a),ne=!1):!f&&ne&&y.k==(Ht(),ta)&&(o=!0,t?N=l(Qt(new Ft(Gt(si(y).a.Jc(),new D))),17).c.i:N=l(Qt(new Ft(Gt(Rr(y).a.Jc(),new D))),17).d.i,N==T&&(t?r=l(Qt(new Ft(Gt(Rr(y).a.Jc(),new D))),17).d.i:r=l(Qt(new Ft(Gt(si(y).a.Jc(),new D))),17).c.i,(t?l(Hw(e.a,r),15).a-l(Hw(e.a,N),15).a:l(Hw(e.a,N),15).a-l(Hw(e.a,r),15).a)<=2&&(ne=!1)));if(o&&ne&&(t?r=l(Qt(new Ft(Gt(Rr(T).a.Jc(),new D))),17).d.i:r=l(Qt(new Ft(Gt(si(T).a.Jc(),new D))),17).c.i,(t?l(Hw(e.a,r),15).a-l(Hw(e.a,T),15).a:l(Hw(e.a,T),15).a-l(Hw(e.a,r),15).a)<=2&&r.k==(Ht(),Xr)&&(ne=!1)),f||ne){for(U=nwt(e,T,t);U.a.gc()!=0;)L=l(U.a.ec().Jc().Pb(),9),U.a.Ac(L)!=null,bo(U,nwt(e,L,t));--I,le=!0}}}while(le)}function e3n(e){kn(e.c,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#decimal"])),kn(e.d,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#integer"])),kn(e.e,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#boolean"])),kn(e.f,$n,Z(X(Ye,1),Me,2,6,[fo,"EBoolean",or,"EBoolean:Object"])),kn(e.i,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#byte"])),kn(e.g,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),kn(e.j,$n,Z(X(Ye,1),Me,2,6,[fo,"EByte",or,"EByte:Object"])),kn(e.n,$n,Z(X(Ye,1),Me,2,6,[fo,"EChar",or,"EChar:Object"])),kn(e.t,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#double"])),kn(e.u,$n,Z(X(Ye,1),Me,2,6,[fo,"EDouble",or,"EDouble:Object"])),kn(e.F,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#float"])),kn(e.G,$n,Z(X(Ye,1),Me,2,6,[fo,"EFloat",or,"EFloat:Object"])),kn(e.I,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#int"])),kn(e.J,$n,Z(X(Ye,1),Me,2,6,[fo,"EInt",or,"EInt:Object"])),kn(e.N,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#long"])),kn(e.O,$n,Z(X(Ye,1),Me,2,6,[fo,"ELong",or,"ELong:Object"])),kn(e.Z,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#short"])),kn(e.$,$n,Z(X(Ye,1),Me,2,6,[fo,"EShort",or,"EShort:Object"])),kn(e._,$n,Z(X(Ye,1),Me,2,6,[fo,"http://www.w3.org/2001/XMLSchema#string"]))}function Be(){Be=Y,Ete=(_n(),L6t),RAe=M6t,wL=P6t,od=j6t,o2=hNe,mm=pNe,Qy=gNe,ix=bNe,ox=mNe,Ste=rU,wm=Od,Tte=F6t,UI=vNe,yB=zT,mL=(U0e(),_Ct),Zy=kCt,$1=xCt,ev=NCt,pIt=new Mi(BL,Re(0)),rx=SCt,IAe=TCt,PT=ACt,BAe=JCt,DAe=RCt,LAe=LCt,_te=UCt,MAe=jCt,PAe=$Ct,vB=eIt,kte=XCt,FAe=VCt,jAe=GCt,$Ae=KCt,yAe=iCt,mte=eCt,pB=Q3t,wte=nCt,iw=bCt,BI=mCt,gte=N3t,uAe=I3t,yIt=mx,vIt=iU,wIt=lv,mIt=bx,OAe=(GS(),hv),new Mi(GT,OAe),_Ae=new Ab(12),AAe=new Mi(df,_Ae),oAe=(hp(),vx),_p=new Mi(Gxe,oAe),Yy=new Mi(Hu,0),gIt=new Mi(mre,Re(1)),oB=new Mi(px,gk),bm=nU,Zr=gx,nx=m2,aIt=FL,Wf=E6t,Vy=h2,bIt=new Mi(wre,(Lt(),!0)),Wy=$L,pm=cre,gm=Sm,wB=G1,vte=av,iAe=(vi(),hf),kc=new Mi(Em,iAe),rw=g2,bB=Zxe,Jy=uv,hIt=bre,NAe=dNe,xAe=(vE(),qL),new Mi(sNe,xAe),lIt=fre,dIt=hre,fIt=pre,cIt=dre,Ate=ICt,hB=Z3t,bL=X3t,HI=CCt,Ns=G3t,MT=v3t,jI=y3t,ex=i3t,tAe=o3t,fte=c3t,gL=s3t,hte=m3t,vAe=oCt,EAe=sCt,pAe=F3t,mB=vCt,yte=cCt,bte=D3t,TAe=pCt,aAe=k3t,pte=x3t,dte=jL,SAe=aCt,aB=BNt,XTe=$Nt,sB=FNt,dAe=P3t,lAe=M3t,fAe=j3t,tx=b2,rs=p2,Ag=_6t,Kf=ure,i2=tU,nAe=d3t,_g=gre,DI=A6t,fB=x6t,ow=uNe,kAe=I6t,Ky=R6t,bAe=V3t,mAe=K3t,Xy=HT,ate=jNt,wAe=J3t,dB=T3t,lB=S3t,gB=xp,gAe=U3t,$I=dCt,yL=wNe,rAe=E3t,CAe=ECt,sAe=A3t,iIt=h3t,oIt=p3t,uIt=z3t,sIt=g3t,hAe=lre,FI=q3t,cB=b3t,Ch=r3t,cte=e3t,pL=HNt,ute=zNt,uB=t3t,LI=UNt,lte=n3t,qy=QNt,PI=ZNt,rIt=XNt,LT=GNt,MI=JNt,eAe=YNt,ZTe=qNt,QTe=WNt,cAe=L3t}function t3n(e,t,r,o,s,u,f){var p,m,y,v,T,N,I,L;return N=l(o.a,15).a,I=l(o.b,15).a,T=e.b,L=e.c,p=0,v=0,t==(vi(),is)||t==cs?(v=bO(rgt(Qw(Ia(new yt(null,new vt(r.b,16)),new QHe),new PHe))),T.e.b+T.f.b/2>v?(y=++I,p=ue(ce(Ju(Yw(Ia(new yt(null,new vt(r.b,16)),new Att(s,y)),new jHe))))):(m=++N,p=ue(ce(Ju(kS(Ia(new yt(null,new vt(r.b,16)),new _tt(s,m)),new FHe)))))):(v=bO(rgt(Qw(Ia(new yt(null,new vt(r.b,16)),new VHe),new LHe))),T.e.a+T.f.a/2>v?(y=++I,p=ue(ce(Ju(Yw(Ia(new yt(null,new vt(r.b,16)),new Ttt(s,y)),new $He))))):(m=++N,p=ue(ce(Ju(kS(Ia(new yt(null,new vt(r.b,16)),new Stt(s,m)),new GHe)))))),t==is?(vo(e.a,new Le(ue(ce(j(T,(xr(),Id))))-s,p)),vo(e.a,new Le(L.e.a+L.f.a+s+u,p)),vo(e.a,new Le(L.e.a+L.f.a+s+u,L.e.b+L.f.b/2)),vo(e.a,new Le(L.e.a+L.f.a,L.e.b+L.f.b/2))):t==cs?(vo(e.a,new Le(ue(ce(j(T,(xr(),sd))))+s,T.e.b+T.f.b/2)),vo(e.a,new Le(T.e.a+T.f.a+s,p)),vo(e.a,new Le(L.e.a-s-u,p)),vo(e.a,new Le(L.e.a-s-u,L.e.b+L.f.b/2)),vo(e.a,new Le(L.e.a,L.e.b+L.f.b/2))):t==il?(vo(e.a,new Le(p,ue(ce(j(T,(xr(),Id))))-s)),vo(e.a,new Le(p,L.e.b+L.f.b+s+u)),vo(e.a,new Le(L.e.a+L.f.a/2,L.e.b+L.f.b+s+u)),vo(e.a,new Le(L.e.a+L.f.a/2,L.e.b+L.f.b+s))):(e.a.b==0||(l(zl(e.a),8).b=ue(ce(j(T,(xr(),sd))))+s*l(f.b,15).a),vo(e.a,new Le(p,ue(ce(j(T,(xr(),sd))))+s*l(f.b,15).a)),vo(e.a,new Le(p,L.e.b-s*l(f.a,15).a-u))),new ko(Re(N),Re(I))}function n3n(e){var t,r,o,s,u,f,p,m,y,v,T,N,I;if(f=!0,T=null,o=null,s=null,t=!1,I=jDt,y=null,u=null,p=0,m=fY(e,p,p3e,g3e),m=0&&mt(e.substr(p,2),"//")?(p+=2,m=fY(e,p,C4,I4),o=(no(p,m,e.length),e.substr(p,m-p)),p=m):T!=null&&(p==e.length||(Yt(p,e.length),e.charCodeAt(p)!=47))&&(f=!1,m=gde(e,Qa(35),p),m==-1&&(m=e.length),o=(no(p,m,e.length),e.substr(p,m-p)),p=m);if(!r&&p0&&uo(v,v.length-1)==58&&(s=v,p=m)),pf?(sc(e,t,r),1):(sc(e,r,t),-1)}for(ne=e.f,oe=0,le=ne.length;oe0?sc(e,t,r):sc(e,r,t),o;if(!gr(t,(Ie(),Nr))||!gr(r,Nr))return u=$Y(e,t),p=$Y(e,r),u>p?(sc(e,t,r),1):(sc(e,r,t),-1)}if(!N&&!L&&(o=IEt(e,t,r),o!=0))return o>0?sc(e,t,r):sc(e,r,t),o}return gr(t,(Ie(),Nr))&&gr(r,Nr)?(u=O0(t,r,e.c,l(j(e.c,F1),15).a),p=O0(r,t,e.c,l(j(e.c,F1),15).a),u>p?(sc(e,t,r),1):(sc(e,r,t),-1)):(sc(e,r,t),-1)}function CEt(){CEt=Y,HJ(),Wn=new g0,wt(Wn,(Ue(),dd),gf),wt(Wn,Rl,gf),wt(Wn,Iu,gf),wt(Wn,fd,gf),wt(Wn,su,gf),wt(Wn,Ru,gf),wt(Wn,fd,dd),wt(Wn,gf,ol),wt(Wn,dd,ol),wt(Wn,Rl,ol),wt(Wn,Iu,ol),wt(Wn,ou,ol),wt(Wn,fd,ol),wt(Wn,su,ol),wt(Wn,Ru,ol),wt(Wn,Wa,ol),wt(Wn,gf,Nc),wt(Wn,dd,Nc),wt(Wn,ol,Nc),wt(Wn,Rl,Nc),wt(Wn,Iu,Nc),wt(Wn,ou,Nc),wt(Wn,fd,Nc),wt(Wn,Wa,Nc),wt(Wn,Cc,Nc),wt(Wn,su,Nc),wt(Wn,vu,Nc),wt(Wn,Ru,Nc),wt(Wn,dd,Rl),wt(Wn,Iu,Rl),wt(Wn,fd,Rl),wt(Wn,Ru,Rl),wt(Wn,dd,Iu),wt(Wn,Rl,Iu),wt(Wn,fd,Iu),wt(Wn,Iu,Iu),wt(Wn,su,Iu),wt(Wn,gf,sl),wt(Wn,dd,sl),wt(Wn,ol,sl),wt(Wn,Nc,sl),wt(Wn,Rl,sl),wt(Wn,Iu,sl),wt(Wn,ou,sl),wt(Wn,fd,sl),wt(Wn,Cc,sl),wt(Wn,Wa,sl),wt(Wn,Ru,sl),wt(Wn,su,sl),wt(Wn,ka,sl),wt(Wn,gf,Cc),wt(Wn,dd,Cc),wt(Wn,ol,Cc),wt(Wn,Rl,Cc),wt(Wn,Iu,Cc),wt(Wn,ou,Cc),wt(Wn,fd,Cc),wt(Wn,Wa,Cc),wt(Wn,Ru,Cc),wt(Wn,vu,Cc),wt(Wn,ka,Cc),wt(Wn,dd,Wa),wt(Wn,Rl,Wa),wt(Wn,Iu,Wa),wt(Wn,fd,Wa),wt(Wn,Cc,Wa),wt(Wn,Ru,Wa),wt(Wn,su,Wa),wt(Wn,gf,iu),wt(Wn,dd,iu),wt(Wn,ol,iu),wt(Wn,Rl,iu),wt(Wn,Iu,iu),wt(Wn,ou,iu),wt(Wn,fd,iu),wt(Wn,Wa,iu),wt(Wn,Ru,iu),wt(Wn,dd,su),wt(Wn,ol,su),wt(Wn,Nc,su),wt(Wn,Iu,su),wt(Wn,gf,vu),wt(Wn,dd,vu),wt(Wn,Nc,vu),wt(Wn,Rl,vu),wt(Wn,Iu,vu),wt(Wn,ou,vu),wt(Wn,fd,vu),wt(Wn,fd,ka),wt(Wn,Iu,ka),wt(Wn,Wa,gf),wt(Wn,Wa,Rl),wt(Wn,Wa,ol),wt(Wn,ou,gf),wt(Wn,ou,dd),wt(Wn,ou,Nc)}function r3n(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;switch(r.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=DAn(t),o=l(j(t,(Be(),yte)),284),I=Ke(We(j(t,$I))),e.d=o==(V6(),Y$)&&!I||o==Gee,xkn(e,t),Ee=null,we=null,J=null,ne=null,G=(wc(4,Cy),new Ra(4)),l(j(t,yte),284).g){case 3:J=new NE(t,e.c.d,(zd(),ym),(Cf(),kg)),Ot(G.c,J);break;case 1:ne=new NE(t,e.c.d,(zd(),uf),(Cf(),kg)),Ot(G.c,ne);break;case 4:Ee=new NE(t,e.c.d,(zd(),ym),(Cf(),sw)),Ot(G.c,Ee);break;case 2:we=new NE(t,e.c.d,(zd(),uf),(Cf(),sw)),Ot(G.c,we);break;default:J=new NE(t,e.c.d,(zd(),ym),(Cf(),kg)),ne=new NE(t,e.c.d,uf,kg),Ee=new NE(t,e.c.d,ym,sw),we=new NE(t,e.c.d,uf,sw),Ot(G.c,Ee),Ot(G.c,we),Ot(G.c,J),Ot(G.c,ne)}for(s=new btt(t,e.c),p=new V(G);p.asJ(u))&&(T=u);for(!T&&(T=(at(0,G.c.length),l(G.c[0],188))),U=new V(t.b);U.a0?(sc(e,r,t),1):(sc(e,t,r),-1);if(v&&oe)return sc(e,r,t),1;if(T&&ne)return sc(e,t,r),-1;if(T&&oe)return 0}else for(dt=new V(y.j);dt.aT&&(Dt=0,on+=v+Ge,v=0),myt(Ee,f,Dt,on),t=b.Math.max(t,Dt+we.a),v=b.Math.max(v,we.b),Dt+=we.a+Ge;for(le=new hn,r=new hn,dt=new V(e);dt.a=-1900?1:0,r>=4?zn(e,Z(X(Ye,1),Me,2,6,[YEt,JEt])[p]):zn(e,Z(X(Ye,1),Me,2,6,["BC","AD"])[p]);break;case 121:L1n(e,r,o);break;case 77:PTn(e,r,o);break;case 107:m=s.q.getHours(),m==0?bh(e,24,r):bh(e,m,r);break;case 83:ZEn(e,r,s);break;case 69:v=o.q.getDay(),r==5?zn(e,Z(X(Ye,1),Me,2,6,["S","M","T","W","T","F","S"])[v]):r==4?zn(e,Z(X(Ye,1),Me,2,6,[cX,lX,dX,fX,hX,pX,gX])[v]):zn(e,Z(X(Ye,1),Me,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]);break;case 97:s.q.getHours()>=12&&s.q.getHours()<24?zn(e,Z(X(Ye,1),Me,2,6,["AM","PM"])[1]):zn(e,Z(X(Ye,1),Me,2,6,["AM","PM"])[0]);break;case 104:T=s.q.getHours()%12,T==0?bh(e,12,r):bh(e,T,r);break;case 75:N=s.q.getHours()%12,bh(e,N,r);break;case 72:I=s.q.getHours(),bh(e,I,r);break;case 99:L=o.q.getDay(),r==5?zn(e,Z(X(Ye,1),Me,2,6,["S","M","T","W","T","F","S"])[L]):r==4?zn(e,Z(X(Ye,1),Me,2,6,[cX,lX,dX,fX,hX,pX,gX])[L]):r==3?zn(e,Z(X(Ye,1),Me,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[L]):bh(e,L,1);break;case 76:U=o.q.getMonth(),r==5?zn(e,Z(X(Ye,1),Me,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[U]):r==4?zn(e,Z(X(Ye,1),Me,2,6,[ZJ,QJ,eX,tX,uT,nX,rX,iX,oX,sX,aX,uX])[U]):r==3?zn(e,Z(X(Ye,1),Me,2,6,["Jan","Feb","Mar","Apr",uT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[U]):bh(e,U+1,r);break;case 81:G=o.q.getMonth()/3|0,r<4?zn(e,Z(X(Ye,1),Me,2,6,["Q1","Q2","Q3","Q4"])[G]):zn(e,Z(X(Ye,1),Me,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[G]);break;case 100:J=o.q.getDate(),bh(e,J,r);break;case 109:y=s.q.getMinutes(),bh(e,y,r);break;case 115:f=s.q.getSeconds(),bh(e,f,r);break;case 122:r<4?zn(e,u.c[0]):zn(e,u.c[1]);break;case 118:zn(e,u.b);break;case 90:r<3?zn(e,Zyn(u)):r==3?zn(e,nvn(u)):zn(e,svn(u.a));break;default:return!1}return!0}function B0e(e,t,r,o){var s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt,on,qn;if(iyt(t),m=l(ie((!t.b&&(t.b=new Et(pn,t,4,7)),t.b),0),83),v=l(ie((!t.c&&(t.c=new Et(pn,t,5,8)),t.c),0),83),p=Vo(m),y=Vo(v),f=(!t.a&&(t.a=new xe(jr,t,6,6)),t.a).i==0?null:l(ie((!t.a&&(t.a=new xe(jr,t,6,6)),t.a),0),171),Ge=l(Ut(e.a,p),9),Dt=l(Ut(e.a,y),9),lt=null,on=null,se(m,196)&&(we=l(Ut(e.a,m),248),se(we,12)?lt=l(we,12):se(we,9)&&(Ge=l(we,9),lt=l(He(Ge.j,0),12))),se(v,196)&&(Ct=l(Ut(e.a,v),248),se(Ct,12)?on=l(Ct,12):se(Ct,9)&&(Dt=l(Ct,9),on=l(He(Dt.j,0),12))),!Ge||!Dt)throw K(new aS("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(U=new h0,qs(U,t),Ae(U,(Ie(),mr),t),Ae(U,(Be(),rs),null),I=l(j(o,_a),24),Ge==Dt&&I.Ec((Mo(),xI)),lt||(Ee=(Lo(),Fa),dt=null,f&&tE(l(j(Ge,Zr),103))&&(dt=new Le(f.j,f.k),Sct(dt,ey(t)),Yct(dt,r),ay(y,p)&&(Ee=Cu,br(dt,Ge.n))),lt=lvt(Ge,dt,Ee,o)),on||(Ee=(Lo(),Cu),qn=null,f&&tE(l(j(Dt,Zr),103))&&(qn=new Le(f.b,f.c),Sct(qn,ey(t)),Yct(qn,r)),on=lvt(Dt,qn,Ee,ji(Dt))),go(U,lt),Yi(U,on),(lt.e.c.length>1||lt.g.c.length>1||on.e.c.length>1||on.g.c.length>1)&&I.Ec((Mo(),kI)),N=new en((!t.n&&(t.n=new xe(Is,t,1,7)),t.n));N.e!=N.i.gc();)if(T=l(rn(N),158),!Ke(We(ye(T,bm)))&&T.a)switch(G=qK(T),je(U.b,G),l(j(G,Kf),281).g){case 1:case 2:I.Ec((Mo(),Xk));break;case 0:I.Ec((Mo(),Jk)),Ae(G,Kf,(Kd(),wx))}if(u=l(j(o,jI),302),J=l(j(o,mB),329),s=u==(aC(),oL)||J==(lC(),Lte),f&&(!f.a&&(f.a=new yi(Ic,f,5)),f.a).i!=0&&s){for(ne=Xwn(f),L=new Du,le=An(ne,0);le.b!=le.d.c;)oe=l(Sn(le),8),Gn(L,new Eo(oe));Ae(U,cTe,L)}return U}function a3n(e,t,r,o){var s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt,on,qn,Gr;for(dt=0,Ct=0,Ge=new hn,Ee=l(Ju(Yw(Ia(new yt(null,new vt(e.b,16)),new qHe),new MHe)),15).a+1,lt=me(Rn,Xn,30,Ee,15,1),G=me(Rn,Xn,30,Ee,15,1),U=0;U1)for(p=on+1;py.b.e.b*(1-J)+y.c.e.b*J));L++);if(we.gc()>0&&(qn=y.a.b==0?So(y.b.e):l(zl(y.a),8),oe=br(So(l(we.Xb(we.gc()-1),41).e),l(we.Xb(we.gc()-1),41).f),N=br(So(l(we.Xb(0),41).e),l(we.Xb(0),41).f),L>=we.gc()-1&&qn.b>oe.b&&y.c.e.b>oe.b||L<=0&&qn.by.b.e.a*(1-J)+y.c.e.a*J));L++);if(we.gc()>0&&(qn=y.a.b==0?So(y.b.e):l(zl(y.a),8),oe=br(So(l(we.Xb(we.gc()-1),41).e),l(we.Xb(we.gc()-1),41).f),N=br(So(l(we.Xb(0),41).e),l(we.Xb(0),41).f),L>=we.gc()-1&&qn.a>oe.a&&y.c.e.a>oe.a||L<=0&&qn.a=ue(ce(j(e,(xr(),L_e))))&&++Ct):(I.f&&I.d.e.a<=ue(ce(j(e,(xr(),Zte))))&&++dt,I.g&&I.c.e.a+I.c.f.a>=ue(ce(j(e,(xr(),D_e))))&&++Ct)}else le==0?nme(y):le<0&&(++lt[on],++G[Gr],Dt=t3n(y,t,e,new ko(Re(dt),Re(Ct)),r,o,new ko(Re(G[Gr]),Re(lt[on]))),dt=l(Dt.a,15).a,Ct=l(Dt.b,15).a)}function u3n(e){e.gb||(e.gb=!0,e.b=Ms(e,0),Jr(e.b,18),Lr(e.b,19),e.a=Ms(e,1),Jr(e.a,1),Lr(e.a,2),Lr(e.a,3),Lr(e.a,4),Lr(e.a,5),e.o=Ms(e,2),Jr(e.o,8),Jr(e.o,9),Lr(e.o,10),Lr(e.o,11),Lr(e.o,12),Lr(e.o,13),Lr(e.o,14),Lr(e.o,15),Lr(e.o,16),Lr(e.o,17),Lr(e.o,18),Lr(e.o,19),Lr(e.o,20),Lr(e.o,21),Lr(e.o,22),Lr(e.o,23),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),ts(e.o),e.p=Ms(e,3),Jr(e.p,2),Jr(e.p,3),Jr(e.p,4),Jr(e.p,5),Lr(e.p,6),Lr(e.p,7),ts(e.p),ts(e.p),e.q=Ms(e,4),Jr(e.q,8),e.v=Ms(e,5),Lr(e.v,9),ts(e.v),ts(e.v),ts(e.v),e.w=Ms(e,6),Jr(e.w,2),Jr(e.w,3),Jr(e.w,4),Lr(e.w,5),e.B=Ms(e,7),Lr(e.B,1),ts(e.B),ts(e.B),ts(e.B),e.Q=Ms(e,8),Lr(e.Q,0),ts(e.Q),e.R=Ms(e,9),Jr(e.R,1),e.S=Ms(e,10),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),ts(e.S),e.T=Ms(e,11),Lr(e.T,10),Lr(e.T,11),Lr(e.T,12),Lr(e.T,13),Lr(e.T,14),ts(e.T),ts(e.T),e.U=Ms(e,12),Jr(e.U,2),Jr(e.U,3),Lr(e.U,4),Lr(e.U,5),Lr(e.U,6),Lr(e.U,7),ts(e.U),e.V=Ms(e,13),Lr(e.V,10),e.W=Ms(e,14),Jr(e.W,18),Jr(e.W,19),Jr(e.W,20),Lr(e.W,21),Lr(e.W,22),Lr(e.W,23),e.bb=Ms(e,15),Jr(e.bb,10),Jr(e.bb,11),Jr(e.bb,12),Jr(e.bb,13),Jr(e.bb,14),Jr(e.bb,15),Jr(e.bb,16),Lr(e.bb,17),ts(e.bb),ts(e.bb),e.eb=Ms(e,16),Jr(e.eb,2),Jr(e.eb,3),Jr(e.eb,4),Jr(e.eb,5),Jr(e.eb,6),Jr(e.eb,7),Lr(e.eb,8),Lr(e.eb,9),e.ab=Ms(e,17),Jr(e.ab,0),Jr(e.ab,1),e.H=Ms(e,18),Lr(e.H,0),Lr(e.H,1),Lr(e.H,2),Lr(e.H,3),Lr(e.H,4),Lr(e.H,5),ts(e.H),e.db=Ms(e,19),Lr(e.db,2),e.c=rr(e,20),e.d=rr(e,21),e.e=rr(e,22),e.f=rr(e,23),e.i=rr(e,24),e.g=rr(e,25),e.j=rr(e,26),e.k=rr(e,27),e.n=rr(e,28),e.r=rr(e,29),e.s=rr(e,30),e.t=rr(e,31),e.u=rr(e,32),e.fb=rr(e,33),e.A=rr(e,34),e.C=rr(e,35),e.D=rr(e,36),e.F=rr(e,37),e.G=rr(e,38),e.I=rr(e,39),e.J=rr(e,40),e.L=rr(e,41),e.M=rr(e,42),e.N=rr(e,43),e.O=rr(e,44),e.P=rr(e,45),e.X=rr(e,46),e.Y=rr(e,47),e.Z=rr(e,48),e.$=rr(e,49),e._=rr(e,50),e.cb=rr(e,51),e.K=rr(e,52))}function OEt(e,t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe;if(ovt(e,t),(!t.e&&(t.e=new Et(Cr,t,7,4)),t.e).i!=0){for(p=new Pe,I=0;I<(!t.e&&(t.e=new Et(Cr,t,7,4)),t.e).i;I++)s=l(ie(s_(l(ie((!t.e&&(t.e=new Et(Cr,t,7,4)),t.e),I),74)),0),19),OEt(e,s),Ot(p.c,s);for(m=p.c.length,L=0;L0&&(at(N,p.c.length),l(p.c[N],19)).mh()-l((at(N,p.c.length),l(p.c[N],19)).mf((_n(),xp)),125).b-t.g/2>=0;)--N;if(N=0;r--)y=G;)(at(Ee,f.c.length),l(f.c[Ee],19)).nh()>G&&(J=Ee,G=(at(Ee,f.c.length),l(f.c[Ee],19)).nh()),Ee+=1;if(ne=0,Ee>0&&(ne=((at(J,f.c.length),l(f.c[J],19)).mh()+(at(Ee-1,f.c.length),l(f.c[Ee-1],19)).mh()+(at(Ee-1,f.c.length),l(f.c[Ee-1],19)).lh())/2-t.i-t.g/2),!Ke(We(ye(t,(XS(),Kne))))){if(r=((at(0,f.c.length),l(f.c[0],19)).mh()+l(He(f,f.c.length-1),19).mh()+l(He(f,f.c.length-1),19).lh()-t.g)/2-t.i,rne){for(y=Ee;y0&&(p=l(zl(l(u.Xb(s),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(s),65).a),8).b,I=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-I)/(b.Math.abs(p-N)/40)>50&&(I>m?vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f-o/2)):vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f+o/2)))),vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a,v.e.b+v.f.b*f))):t==cs?(y=ue(ce(j(v,(xr(),Id)))),v.e.a-o>y?vo(l(u.Xb(s),65).a,new Le(y-r,v.e.b+v.f.b*f)):l(u.Xb(s),65).a.b>0&&(p=l(zl(l(u.Xb(s),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(s),65).a),8).b,I=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-I)/(b.Math.abs(p-N)/40)>50&&(I>m?vo(l(u.Xb(s),65).a,new Le(v.e.a-o/5.3,v.e.b+v.f.b*f-o/2)):vo(l(u.Xb(s),65).a,new Le(v.e.a-o/5.3,v.e.b+v.f.b*f+o/2)))),vo(l(u.Xb(s),65).a,new Le(v.e.a,v.e.b+v.f.b*f))):t==il?(y=ue(ce(j(v,(xr(),sd)))),v.e.b+v.f.b+o0&&(p=l(zl(l(u.Xb(s),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(s),65).a),8).b,I=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-I)/40)>50&&(N>p?vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f-o/2,v.e.b+o/5.3+v.f.b)):vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f+o/2,v.e.b+o/5.3+v.f.b)))),vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f,v.e.b+v.f.b))):(y=ue(ce(j(v,(xr(),Id)))),Kht(l(u.Xb(s),65),e)?vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f,l(zl(l(u.Xb(s),65).a),8).b)):v.e.b-o>y?vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f,y-r)):l(u.Xb(s),65).a.b>0&&(p=l(zl(l(u.Xb(s),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(s),65).a),8).b,I=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-I)/40)>50&&(N>p?vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f-o/2,v.e.b-o/5.3)):vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f+o/2,v.e.b-o/5.3)))),vo(l(u.Xb(s),65).a,new Le(v.e.a+v.f.a*f,v.e.b)))}function LEt(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we;if(f=t,N=r,ba(e.a,f)){if(bl(l(Ut(e.a,f),47),N))return 1}else Yn(e.a,f,new hi);if(ba(e.a,N)){if(bl(l(Ut(e.a,N),47),f))return-1}else Yn(e.a,N,new hi);if(ba(e.e,f)){if(bl(l(Ut(e.e,f),47),N))return-1}else Yn(e.e,f,new hi);if(ba(e.e,N)){if(bl(l(Ut(e.a,N),47),f))return 1}else Yn(e.e,N,new hi);if(f.j!=N.j)return Ee=Nen(f.j,N.j),Ee>0?Zc(e,f,N,1):Zc(e,N,f,1),Ee;if(we=1,f.e.c.length!=0&&N.e.c.length!=0){if((f.j==(Ue(),Wt)&&N.j==Wt||f.j==Vt&&N.j==Vt||f.j==dn&&N.j==dn)&&(we=-we),v=l(He(f.e,0),17).c,G=l(He(N.e,0),17).c,m=v.i,L=G.i,m==L)for(oe=new V(m.j);oe.a0?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we);if(o=$pt(l(Au(ZV(e.d),Pu(new Jo,new as,new xi,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),22),m,L),o!=0)return o>0?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we);if(e.c&&(Ee=g1t(e,f,N),Ee!=0))return Ee>0?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we)}return f.g.c.length!=0&&N.g.c.length!=0?((f.j==(Ue(),Wt)&&N.j==Wt||f.j==dn&&N.j==dn)&&(we=-we),T=l(j(f,(Ie(),ete)),9),J=l(j(N,ete),9),e.f==(pp(),jte)&&T&&J&&gr(T,Nr)&&gr(J,Nr)?(p=O0(T,J,e.b,l(j(e.b,F1),15).a),I=O0(J,T,e.b,l(j(e.b,F1),15).a),p>I?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we)):e.c&&(Ee=g1t(e,f,N),Ee!=0)?Ee>0?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we):(y=0,U=0,gr(l(He(f.g,0),17),Nr)&&(y=O0(l(He(f.g,0),248),l(He(N.g,0),248),e.b,f.g.c.length+f.e.c.length)),gr(l(He(N.g,0),17),Nr)&&(U=O0(l(He(N.g,0),248),l(He(f.g,0),248),e.b,N.g.c.length+N.e.c.length)),T&&T==J||e.g&&(e.g._b(T)&&(y=l(e.g.xc(T),15).a),e.g._b(J)&&(U=l(e.g.xc(J),15).a)),y>U?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we))):f.e.c.length!=0&&N.g.c.length!=0?(Zc(e,f,N,we),1):f.g.c.length!=0&&N.e.c.length!=0?(Zc(e,N,f,we),-1):gr(f,(Ie(),Nr))&&gr(N,Nr)?(u=f.i.j.c.length,p=O0(f,N,e.b,u),I=O0(N,f,e.b,u),(f.j==(Ue(),Wt)&&N.j==Wt||f.j==dn&&N.j==dn)&&(we=-we),p>I?(Zc(e,f,N,we),we):(Zc(e,N,f,we),-we)):(Zc(e,N,f,we),-we)}function Ie(){Ie=Y;var e,t;mr=new cr(gwe),oTe=new cr("coordinateOrigin"),nte=new cr("processors"),iTe=new Pr("compoundNode",(Lt(),!1)),dL=new Pr("insideConnections",!1),cTe=new cr("originalBendpoints"),lTe=new cr("originalDummyNodePosition"),dTe=new cr("originalLabelEdge"),CI=new cr("representedLabels"),NI=new cr("endLabels"),NT=new cr("endLabel.origin"),IT=new Pr("labelSide",(vc(),GL)),QE=new Pr("maxEdgeThickness",0),Tg=new Pr("reversed",!1),RT=new cr(D2t),Cd=new Pr("longEdgeSource",null),Nl=new Pr("longEdgeTarget",null),Gy=new Pr("longEdgeHasLabelDummies",!1),fL=new Pr("longEdgeBeforeLabelDummy",!1),tB=new Pr("edgeConstraint",(Gb(),Fee)),ew=new cr("inLayerLayoutUnit"),dm=new Pr("inLayerConstraint",(up(),cL)),CT=new Pr("inLayerSuccessorConstraint",new Pe),uTe=new Pr("inLayerSuccessorConstraintBetweenNonDummies",!1),Nu=new cr("portDummy"),eB=new Pr("crossingHint",Re(0)),_a=new Pr("graphProperties",(t=l(md(qee),10),new Hc(t,l(Gl(t,t.length),10),0))),Us=new Pr("externalPortSide",(Ue(),Cs)),aTe=new Pr("externalPortSize",new to),Xee=new cr("externalPortReplacedDummies"),nB=new cr("externalPortReplacedDummy"),Tp=new Pr("externalPortConnections",(e=l(md(Co),10),new Hc(e,l(Gl(e,e.length),10),0))),tw=new Pr(N2t,0),rTe=new cr("barycenterAssociates"),DT=new cr("TopSideComments"),kT=new cr("BottomSideComments"),Q$=new cr("CommentConnectionPort"),Qee=new Pr("inputCollect",!1),tte=new Pr("outputCollect",!1),xT=new Pr("cyclic",!1),sTe=new cr("crossHierarchyMap"),ite=new cr("targetOffset"),new Pr("splineLabelSize",new to),t2=new cr("spacings"),rB=new Pr("partitionConstraint",!1),Q0=new cr("breakingPoint.info"),pTe=new cr("splines.survivingEdge"),fm=new cr("splines.route.start"),n2=new cr("splines.edgeChain"),hTe=new cr("originalPortConstraints"),nw=new cr("selfLoopHolder"),Qk=new cr("splines.nsPortY"),Nr=new cr("modelOrder"),F1=new cr("modelOrder.maximum"),lL=new cr("modelOrderGroups.cb.number"),ete=new cr("longEdgeTargetNode"),j1=new Pr(oSt,!1),e2=new Pr(oSt,!1),Zee=new cr("layerConstraints.hiddenNodes"),fTe=new cr("layerConstraints.opposidePort"),rte=new cr("targetNode.modelOrder"),OT=new Pr("tarjan.lowlink",Re(sr)),II=new Pr("tarjan.id",Re(-1)),iB=new Pr("tarjan.onstack",!1),LNt=new Pr("partOfCycle",!1),r2=new cr("medianHeuristic.weight")}function _n(){_n=Y;var e,t;UT=new cr(eTt),cv=new cr(tTt),$xe=(mh(),rre),E6t=new ht(_ye,$xe),px=new ht(bk,null),S6t=new cr(Vve),Uxe=(Jb(),Ar(sre,Z(X(are,1),Ce,300,0,[ore]))),jL=new ht(xF,Uxe),FL=new ht($D,(Lt(),!1)),Hxe=(vi(),hf),Em=new ht(vZ,Hxe),qxe=(hp(),yre),Gxe=new ht(FD,qxe),k6t=new ht(Gve,!1),Wxe=(fp(),aU),h2=new ht(kF,Wxe),iNe=new Ab(12),df=new ht($0,iNe),b4=new ht(mk,!1),lre=new ht(CF,!1),m4=new ht(wk,!1),cNe=(qi(),W1),gx=new ht(uF,cNe),HT=new cr(NF),BL=new cr(xD),mre=new cr(aF),wre=new cr(GC),Jxe=new Du,p2=new ht(Pye,Jxe),A6t=new ht(Bye,!1),x6t=new ht(Uye,!1),new ht(nTt,0),Xxe=new MN,xp=new ht(TZ,Xxe),nU=new ht(Tye,!1),D6t=new ht(rTt,1),sv=new cr(iTt),ov=new cr(oTt),mx=new ht(CD,!1),new ht(sTt,!0),Re(0),new ht(aTt,Re(100)),new ht(uTt,!1),Re(0),new ht(cTt,Re(4e3)),Re(0),new ht(lTt,Re(400)),new ht(dTt,!1),new ht(fTt,!1),new ht(hTt,!0),new ht(pTt,!1),Bxe=(Vj(),_re),T6t=new ht(qve,Bxe),Yxe=(z3(),WL),C6t=new ht(gTt,Yxe),Kxe=(R_(),UL),N6t=new ht(bTt,Kxe),L6t=new ht(dye,10),M6t=new ht(fye,10),P6t=new ht(hye,20),j6t=new ht(pye,10),hNe=new ht(RX,2),pNe=new ht(yZ,10),gNe=new ht(gye,0),rU=new ht(wye,5),bNe=new ht(bye,1),mNe=new ht(mye,1),Od=new ht(F0,20),F6t=new ht(yye,10),vNe=new ht(vye,10),zT=new cr(Eye),yNe=new Int,wNe=new ht(zye,yNe),R6t=new cr(SZ),oNe=!1,I6t=new ht(EZ,oNe),Qxe=new Ab(5),Zxe=new ht(Nye,Qxe),eNe=(Sy(),t=l(md(Bo),10),new Hc(t,l(Gl(t,t.length),10),0)),g2=new ht(vk,eNe),aNe=(vE(),V1),sNe=new ht(Rye,aNe),fre=new cr(Oye),hre=new cr(Dye),pre=new cr(Lye),dre=new cr(Mye),tNe=(e=l(md(_4),10),new Hc(e,l(Gl(e,e.length),10),0)),Sm=new ht(ME,tNe),rNe=ct((Bu(),Sx)),G1=new ht(pT,rNe),nNe=new Le(0,0),b2=new ht(gT,nNe),av=new ht(yk,!1),zxe=(Kd(),wx),ure=new ht(Fye,zxe),tU=new ht(ND,!1),Re(1),new ht(mTt,null),uNe=new cr(Hye),gre=new cr($ye),fNe=(Ue(),Cs),m2=new ht(Aye,fNe),Hu=new cr(Sye),lNe=(ku(),ct(K1)),uv=new ht(Ek,lNe),bre=new ht(Cye,!1),dNe=new ht(Iye,!0),Re(1),z6t=new ht(KZ,Re(3)),Re(1),q6t=new ht(Wve,Re(4)),iU=new ht(ID,1),oU=new ht(YZ,null),lv=new ht(RD,150),bx=new ht(OD,1.414),GT=new ht(B0,null),$6t=new ht(Kve,1),$L=new ht(kye,!1),cre=new ht(xye,!1),_6t=new ht(jye,1),Vxe=(E7(),Ere),new ht(wTt,Vxe),O6t=!0,G6t=(zP(),Are),U6t=(GS(),hv),H6t=hv,B6t=hv}function Xi(){Xi=Y,eSe=new bi("DIRECTION_PREPROCESSOR",0),X2e=new bi("COMMENT_PREPROCESSOR",1),VE=new bi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),gee=new bi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),ySe=new bi("PARTITION_PREPROCESSOR",4),x$=new bi("LABEL_DUMMY_INSERTER",5),j$=new bi("SELF_LOOP_PREPROCESSOR",6),By=new bi("LAYER_CONSTRAINT_PREPROCESSOR",7),mSe=new bi("PARTITION_MIDPROCESSOR",8),uSe=new bi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),gSe=new bi("NODE_PROMOTION",10),$y=new bi("LAYER_CONSTRAINT_POSTPROCESSOR",11),wSe=new bi("PARTITION_POSTPROCESSOR",12),oSe=new bi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),vSe=new bi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),q2e=new bi("BREAKING_POINT_INSERTER",15),R$=new bi("LONG_EDGE_SPLITTER",16),bee=new bi("PORT_SIDE_PROCESSOR",17),_$=new bi("INVERTED_PORT_PROCESSOR",18),L$=new bi("PORT_LIST_SORTER",19),SSe=new bi("SORT_BY_INPUT_ORDER_OF_MODEL",20),D$=new bi("NORTH_SOUTH_PORT_PREPROCESSOR",21),V2e=new bi("BREAKING_POINT_PROCESSOR",22),bSe=new bi(X2t,23),TSe=new bi(Z2t,24),M$=new bi("SELF_LOOP_PORT_RESTORER",25),G2e=new bi("ALTERNATING_LAYER_UNZIPPER",26),ESe=new bi("SINGLE_EDGE_GRAPH_WRAPPER",27),k$=new bi("IN_LAYER_CONSTRAINT_PROCESSOR",28),nSe=new bi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),hSe=new bi("LABEL_AND_NODE_SIZE_PROCESSOR",30),fSe=new bi("INNERMOST_NODE_MARGIN_CALCULATOR",31),F$=new bi("SELF_LOOP_ROUTER",32),Y2e=new bi("COMMENT_NODE_MARGIN_CALCULATOR",33),A$=new bi("END_LABEL_PREPROCESSOR",34),C$=new bi("LABEL_DUMMY_SWITCHER",35),K2e=new bi("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),zk=new bi("LABEL_SIDE_SELECTOR",37),lSe=new bi("HYPEREDGE_DUMMY_MERGER",38),sSe=new bi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),pSe=new bi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),SI=new bi("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),Z2e=new bi("CONSTRAINTS_POSTPROCESSOR",42),J2e=new bi("COMMENT_POSTPROCESSOR",43),dSe=new bi("HYPERNODE_PROCESSOR",44),aSe=new bi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),I$=new bi("LONG_EDGE_JOINER",46),P$=new bi("SELF_LOOP_POSTPROCESSOR",47),W2e=new bi("BREAKING_POINT_REMOVER",48),O$=new bi("NORTH_SOUTH_PORT_POSTPROCESSOR",49),cSe=new bi("HORIZONTAL_COMPACTOR",50),N$=new bi("LABEL_DUMMY_REMOVER",51),rSe=new bi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),tSe=new bi("END_LABEL_SORTER",53),AT=new bi("REVERSED_EDGE_RESTORER",54),T$=new bi("END_LABEL_POSTPROCESSOR",55),iSe=new bi("HIERARCHICAL_NODE_RESIZER",56),Q2e=new bi("DIRECTION_POSTPROCESSOR",57)}function l3n(e,t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct,Dt,on,qn,Gr,Ou,os,Rc,T2,Pg,hd,Rp,ul,XT,F4,Op,Md,jg,km,xm,ZT,Nm,Cm,Dp,Ev,Y3e,pw,$4,Hre,QT,B4,Sv,U4,zre,LLt;for(Y3e=0,qn=t,os=0,Pg=qn.length;os0&&(e.a[Md.p]=Y3e++)}for(B4=0,Gr=r,Rc=0,hd=Gr.length;Rc0;){for(Md=(un(ZT.b>0),l(ZT.a.Xb(ZT.c=--ZT.b),12)),xm=0,p=new V(Md.e);p.a0&&(Md.j==(Ue(),Vt)?(e.a[Md.p]=B4,++B4):(e.a[Md.p]=B4+Rp+XT,++XT))}B4+=XT}for(km=new hn,L=new uh,on=t,Ou=0,T2=on.length;Ouy.b&&(y.b=Nm)):Md.i.c==Ev&&(Nmy.c&&(y.c=Nm));for(p_(U,0,U.length,null),QT=me(Rn,Xn,30,U.length,15,1),o=me(Rn,Xn,30,B4+1,15,1),J=0;J0;)Ge%2>0&&(s+=zre[Ge+1]),Ge=(Ge-1)/2|0,++zre[Ge];for(dt=me(i4t,Rt,371,U.length*2,0,1),le=0;le0&&KO(Ou.f),ye(J,oU)!=null&&(!J.a&&(J.a=new xe(En,J,10,11)),!!J.a)&&(!J.a&&(J.a=new xe(En,J,10,11)),J.a).i>0?(p=l(ye(J,oU),525),xm=p.Sg(J),r0(J,b.Math.max(J.g,xm.a+Rp.b+Rp.c),b.Math.max(J.f,xm.b+Rp.d+Rp.a))):(!J.a&&(J.a=new xe(En,J,10,11)),J.a).i!=0&&(xm=new Le(ue(ce(ye(J,lv))),ue(ce(ye(J,lv)))/ue(ce(ye(J,bx)))),r0(J,b.Math.max(J.g,xm.a+Rp.b+Rp.c),b.Math.max(J.f,xm.b+Rp.d+Rp.a)));if(hd=l(ye(t,df),100),I=t.g-(hd.b+hd.c),N=t.f-(hd.d+hd.a),Cm.ah("Available Child Area: ("+I+"|"+N+")"),Vn(t,px,I/N),Ygt(t,s,o.dh(T2)),l(ye(t,GT),283)==hU&&(UJ(t),r0(t,hd.b+ue(ce(ye(t,sv)))+hd.c,hd.d+ue(ce(ye(t,ov)))+hd.a)),Cm.ah("Executed layout algorithm: "+In(ye(t,UT))+" on node "+t.k),l(ye(t,GT),283)==hv){if(I<0||N<0)throw K(new Af("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(Gc(t,sv)||Gc(t,ov)||UJ(t),U=ue(ce(ye(t,sv))),L=ue(ce(ye(t,ov))),Cm.ah("Desired Child Area: ("+U+"|"+L+")"),XT=I/U,F4=N/L,ul=b.Math.min(XT,b.Math.min(F4,ue(ce(ye(t,$6t))))),Vn(t,iU,ul),Cm.ah(t.k+" -- Local Scale Factor (X|Y): ("+XT+"|"+F4+")"),le=l(ye(t,jL),24),u=0,f=0,ul'?":mt(XTt,e)?"'(?<' or '(? toIndex: ",iwe=", toIndex: ",owe="Index: ",swe=", Size: ",fk="org.eclipse.elk.alg.common",Un={50:1},l2t="org.eclipse.elk.alg.common.compaction",d2t="Scanline/EventHandler",Ah="org.eclipse.elk.alg.common.compaction.oned",f2t="CNode belongs to another CGroup.",h2t="ISpacingsHandler/1",_X="The ",kX=" instance has been finished already.",p2t="The direction ",g2t=" is not supported by the CGraph instance.",b2t="OneDimensionalCompactor",m2t="OneDimensionalCompactor/lambda$0$Type",w2t="Quadruplet",y2t="ScanlineConstraintCalculator",v2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler",E2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",S2t="ScanlineConstraintCalculator/Timestamp",T2t="ScanlineConstraintCalculator/lambda$0$Type",Bf={181:1,48:1},UC="org.eclipse.elk.alg.common.networksimplex",Ad={172:1,3:1,4:1},A2t="org.eclipse.elk.alg.common.nodespacing",tm="org.eclipse.elk.alg.common.nodespacing.cellsystem",hk="CENTER",_2t={219:1,338:1},awe={3:1,4:1,5:1,599:1},dT="LEFT",fT="RIGHT",uwe="Vertical alignment cannot be null",cwe="BOTTOM",oF="org.eclipse.elk.alg.common.nodespacing.internal",HC="UNDEFINED",nf=.01,AD="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",k2t="LabelPlacer/lambda$0$Type",x2t="LabelPlacer/lambda$1$Type",N2t="portRatioOrPosition",pk="org.eclipse.elk.alg.common.overlaps",xX="DOWN",hT="org.eclipse.elk.alg.common.spore",Ry={3:1,4:1,5:1,200:1},C2t={3:1,6:1,4:1,5:1,91:1,111:1},NX="org.eclipse.elk.alg.force",lwe="ComponentsProcessor",I2t="ComponentsProcessor/1",dwe="ElkGraphImporter/lambda$0$Type",nm={207:1},LE="org.eclipse.elk.core",_D="org.eclipse.elk.graph.properties",R2t="IPropertyHolder",kD="org.eclipse.elk.alg.force.graph",O2t="Component Layout",fwe="org.eclipse.elk.alg.force.model",xs="org.eclipse.elk.core.data",sF="org.eclipse.elk.force.model",hwe="org.eclipse.elk.force.iterations",pwe="org.eclipse.elk.force.repulsivePower",CX="org.eclipse.elk.force.temperature",Uf=.001,IX="org.eclipse.elk.force.repulsion",td={139:1},zC="org.eclipse.elk.alg.force.options",gk=1.600000023841858,Ga="org.eclipse.elk.force",xD="org.eclipse.elk.priority",F0="org.eclipse.elk.spacing.nodeNode",RX="org.eclipse.elk.spacing.edgeLabel",bk="org.eclipse.elk.aspectRatio",aF="org.eclipse.elk.randomSeed",GC="org.eclipse.elk.separateConnectedComponents",$0="org.eclipse.elk.padding",mk="org.eclipse.elk.interactive",uF="org.eclipse.elk.portConstraints",ND="org.eclipse.elk.edgeLabels.inline",wk="org.eclipse.elk.omitNodeMicroLayout",yk="org.eclipse.elk.nodeSize.fixedGraphSize",pT="org.eclipse.elk.nodeSize.options",ME="org.eclipse.elk.nodeSize.constraints",vk="org.eclipse.elk.nodeLabels.placement",Ek="org.eclipse.elk.portLabels.placement",CD="org.eclipse.elk.topdownLayout",ID="org.eclipse.elk.topdown.scaleFactor",RD="org.eclipse.elk.topdown.hierarchicalNodeWidth",OD="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",B0="org.eclipse.elk.topdown.nodeType",gwe="origin",D2t="random",L2t="boundingBox.upLeft",M2t="boundingBox.lowRight",bwe="org.eclipse.elk.stress.fixed",mwe="org.eclipse.elk.stress.desiredEdgeLength",wwe="org.eclipse.elk.stress.dimension",ywe="org.eclipse.elk.stress.epsilon",vwe="org.eclipse.elk.stress.iterationLimit",N1="org.eclipse.elk.stress",P2t="ELK Stress",gT="org.eclipse.elk.nodeSize.minimum",cF="org.eclipse.elk.alg.force.stress",j2t="Layered layout",bT="org.eclipse.elk.alg.layered",DD="org.eclipse.elk.alg.layered.compaction.components",qC="org.eclipse.elk.alg.layered.compaction.oned",lF="org.eclipse.elk.alg.layered.compaction.oned.algs",rm="org.eclipse.elk.alg.layered.compaction.recthull",rf="org.eclipse.elk.alg.layered.components",_d="NONE",OX="MODEL_ORDER",ea={3:1,6:1,4:1,10:1,5:1,128:1},F2t={3:1,6:1,4:1,5:1,137:1,91:1,111:1},dF="org.eclipse.elk.alg.layered.compound",_r={43:1},ca="org.eclipse.elk.alg.layered.graph",DX=" -> ",$2t="Not supported by LGraph",Ewe="Port side is undefined",Sk={3:1,6:1,4:1,5:1,324:1,137:1,91:1,111:1},yg={3:1,6:1,4:1,5:1,137:1,201:1,212:1,91:1,111:1},B2t={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},U2t=`([{"' \r -`,H2t=`)]}"' \r -`,z2t="The given string contains parts that cannot be parsed as numbers.",LD="org.eclipse.elk.core.math",G2t={3:1,4:1,125:1,216:1,419:1},q2t={3:1,4:1,100:1,216:1,419:1},vg="org.eclipse.elk.alg.layered.graph.transform",V2t="ElkGraphImporter",W2t="ElkGraphImporter/lambda$1$Type",K2t="ElkGraphImporter/lambda$2$Type",Y2t="ElkGraphImporter/lambda$4$Type",Jt="org.eclipse.elk.alg.layered.intermediate",J2t="Node margin calculation",X2t="ONE_SIDED_GREEDY_SWITCH",Z2t="TWO_SIDED_GREEDY_SWITCH",LX="No implementation is available for the layout processor ",MX="IntermediateProcessorStrategy",PX="Node '",Q2t="FIRST_SEPARATE",eSt="LAST_SEPARATE",tSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",VC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",WC={223:1},mT="org.eclipse.elk.alg.layered.intermediate.loops",Ac="org.eclipse.elk.alg.layered.intermediate.loops.ordering",C1="org.eclipse.elk.alg.layered.intermediate.loops.routing",fF="org.eclipse.elk.alg.layered.intermediate.preserveorder",Hf="org.eclipse.elk.alg.layered.intermediate.wrapping",Fs="org.eclipse.elk.alg.layered.options",jX="INTERACTIVE",Swe="GREEDY",nSt="DEPTH_FIRST",rSt="EDGE_LENGTH",iSt="SELF_LOOPS",oSt="firstTryWithInitialOrder",Twe="org.eclipse.elk.layered.directionCongruency",Awe="org.eclipse.elk.layered.feedbackEdges",hF="org.eclipse.elk.layered.interactiveReferencePoint",_we="org.eclipse.elk.layered.mergeEdges",kwe="org.eclipse.elk.layered.mergeHierarchyEdges",xwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Nwe="org.eclipse.elk.layered.portSortingStrategy",Cwe="org.eclipse.elk.layered.thoroughness",Iwe="org.eclipse.elk.layered.unnecessaryBendpoints",Rwe="org.eclipse.elk.layered.generatePositionAndLayerIds",MD="org.eclipse.elk.layered.cycleBreaking.strategy",PD="org.eclipse.elk.layered.layering.strategy",Owe="org.eclipse.elk.layered.layering.layerConstraint",Dwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",Lwe="org.eclipse.elk.layered.layering.layerId",FX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",$X="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",BX="org.eclipse.elk.layered.layering.nodePromotion.strategy",UX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",HX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",KC="org.eclipse.elk.layered.crossingMinimization.strategy",Mwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",zX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",GX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Pwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",jwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Fwe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",$we="org.eclipse.elk.layered.crossingMinimization.positionId",Bwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",qX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",pF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",gF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",VX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",WX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",KX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",YX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",JX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Uwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Hwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bF="org.eclipse.elk.layered.edgeRouting.splines.mode",mF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",XX="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",zwe="org.eclipse.elk.layered.spacing.baseValue",Gwe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",qwe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Vwe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Wwe="org.eclipse.elk.layered.priority.direction",Kwe="org.eclipse.elk.layered.priority.shortness",Ywe="org.eclipse.elk.layered.priority.straightness",ZX="org.eclipse.elk.layered.compaction.connectedComponents",Jwe="org.eclipse.elk.layered.compaction.postCompaction.strategy",Xwe="org.eclipse.elk.layered.compaction.postCompaction.constraints",wF="org.eclipse.elk.layered.highDegreeNodes.treatment",QX="org.eclipse.elk.layered.highDegreeNodes.threshold",eZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",vp="org.eclipse.elk.layered.wrapping.strategy",yF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",vF="org.eclipse.elk.layered.wrapping.correctionFactor",YC="org.eclipse.elk.layered.wrapping.cutting.strategy",tZ="org.eclipse.elk.layered.wrapping.cutting.cuts",nZ="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",EF="org.eclipse.elk.layered.wrapping.validify.strategy",SF="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",TF="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",AF="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",rZ="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",iZ="org.eclipse.elk.layered.layerUnzipping.strategy",oZ="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",sZ="org.eclipse.elk.layered.layerUnzipping.layerSplit",aZ="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",Zwe="org.eclipse.elk.layered.edgeLabels.sideSelection",Qwe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",_F="org.eclipse.elk.layered.considerModelOrder.strategy",eye="org.eclipse.elk.layered.considerModelOrder.portModelOrder",jD="org.eclipse.elk.layered.considerModelOrder.noModelOrder",uZ="org.eclipse.elk.layered.considerModelOrder.components",tye="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",cZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",lZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",dZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",fZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",hZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",nye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",pZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",gZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",rye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",iye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",bZ="layering",sSt="layering.minWidth",aSt="layering.nodePromotion",Tk="crossingMinimization",kF="org.eclipse.elk.hierarchyHandling",uSt="crossingMinimization.greedySwitch",cSt="nodePlacement",lSt="nodePlacement.bk",dSt="edgeRouting",FD="org.eclipse.elk.edgeRouting",of="spacing",oye="priority",sye="compaction",fSt="compaction.postCompaction",hSt="Specifies whether and how post-process compaction is applied.",aye="highDegreeNodes",uye="wrapping",pSt="wrapping.cutting",gSt="wrapping.validify",cye="wrapping.multiEdge",mZ="layerUnzipping",wZ="edgeLabels",JC="considerModelOrder",Ak="considerModelOrder.groupModelOrder",lye="Group ID of the Node Type",dye="org.eclipse.elk.spacing.commentComment",fye="org.eclipse.elk.spacing.commentNode",hye="org.eclipse.elk.spacing.componentComponent",pye="org.eclipse.elk.spacing.edgeEdge",yZ="org.eclipse.elk.spacing.edgeNode",gye="org.eclipse.elk.spacing.labelLabel",bye="org.eclipse.elk.spacing.labelPortHorizontal",mye="org.eclipse.elk.spacing.labelPortVertical",wye="org.eclipse.elk.spacing.labelNode",yye="org.eclipse.elk.spacing.nodeSelfLoop",vye="org.eclipse.elk.spacing.portPort",Eye="org.eclipse.elk.spacing.individual",Sye="org.eclipse.elk.port.borderOffset",Tye="org.eclipse.elk.noLayout",Aye="org.eclipse.elk.port.side",$D="org.eclipse.elk.debugMode",_ye="org.eclipse.elk.alignment",kye="org.eclipse.elk.insideSelfLoops.activate",xye="org.eclipse.elk.insideSelfLoops.yo",vZ="org.eclipse.elk.direction",Nye="org.eclipse.elk.nodeLabels.padding",Cye="org.eclipse.elk.portLabels.nextToPortIfPossible",Iye="org.eclipse.elk.portLabels.treatAsGroup",Rye="org.eclipse.elk.portAlignment.default",Oye="org.eclipse.elk.portAlignment.north",Dye="org.eclipse.elk.portAlignment.south",Lye="org.eclipse.elk.portAlignment.west",Mye="org.eclipse.elk.portAlignment.east",xF="org.eclipse.elk.contentAlignment",Pye="org.eclipse.elk.junctionPoints",jye="org.eclipse.elk.edge.thickness",Fye="org.eclipse.elk.edgeLabels.placement",$ye="org.eclipse.elk.port.index",Bye="org.eclipse.elk.commentBox",Uye="org.eclipse.elk.hypernode",Hye="org.eclipse.elk.port.anchor",EZ="org.eclipse.elk.partitioning.activate",SZ="org.eclipse.elk.partitioning.partition",NF="org.eclipse.elk.position",TZ="org.eclipse.elk.margins",zye="org.eclipse.elk.spacing.portsSurrounding",CF="org.eclipse.elk.interactiveLayout",Vs="org.eclipse.elk.core.util",Gye={3:1,4:1,5:1,597:1},bSt="NETWORK_SIMPLEX",qye="SIMPLE",AZ="No implementation is available for the node placer ",Fi={86:1,43:1},U0="org.eclipse.elk.alg.layered.p1cycles",mSt="Depth-first cycle removal",wSt="Model order cycle breaking",Ep="org.eclipse.elk.alg.layered.p2layers",Vye={411:1,223:1},ySt={838:1,3:1,4:1},qa="org.eclipse.elk.alg.layered.p3order",jE=17976931348623157e292,_Z=5e-324,Fo="org.eclipse.elk.alg.layered.p4nodes",vSt={3:1,4:1,5:1,846:1},zf=1e-5,I1="org.eclipse.elk.alg.layered.p4nodes.bk",kZ="org.eclipse.elk.alg.layered.p5edges",kd="org.eclipse.elk.alg.layered.p5edges.orthogonal",xZ="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",NZ=1e-6,Oy="org.eclipse.elk.alg.layered.p5edges.splines",CZ=.09999999999999998,IF=1e-8,ESt=4.71238898038469,SSt=1.5707963267948966,Wye=3.141592653589793,Sp="org.eclipse.elk.alg.mrtree",TSt="Tree layout",ASt="P4_EDGE_ROUTING",IZ=.10000000149011612,RF="SUPER_ROOT",XC="org.eclipse.elk.alg.mrtree.graph",Kye=-17976931348623157e292,Ta="org.eclipse.elk.alg.mrtree.intermediate",_St="Processor compute fanout",OF={3:1,6:1,4:1,5:1,526:1,91:1,111:1},kSt="Set neighbors in level",BD="org.eclipse.elk.alg.mrtree.options",xSt="DESCENDANTS",Yye="org.eclipse.elk.mrtree.compaction",Jye="org.eclipse.elk.mrtree.edgeEndTextureLength",Xye="org.eclipse.elk.mrtree.treeLevel",Zye="org.eclipse.elk.mrtree.positionConstraint",Qye="org.eclipse.elk.mrtree.weighting",eve="org.eclipse.elk.mrtree.edgeRoutingMode",tve="org.eclipse.elk.mrtree.searchOrder",NSt="Position Constraint",Va="org.eclipse.elk.mrtree",nve="org.eclipse.elk.tree",CSt="Processor arrange level",_k="org.eclipse.elk.alg.mrtree.p2order",ac="org.eclipse.elk.alg.mrtree.p4route",rve="org.eclipse.elk.alg.radial",ISt="The given graph is not a tree!",im=6.283185307179586,ive="Before",DF="After",ove="org.eclipse.elk.alg.radial.intermediate",RSt="COMPACTION",RZ="org.eclipse.elk.alg.radial.intermediate.compaction",OSt={3:1,4:1,5:1,91:1},sve="org.eclipse.elk.alg.radial.intermediate.optimization",OZ="No implementation is available for the layout option ",ZC="org.eclipse.elk.alg.radial.options",DSt="CompactionStrategy",ave="org.eclipse.elk.radial.centerOnRoot",uve="org.eclipse.elk.radial.orderId",cve="org.eclipse.elk.radial.radius",LF="org.eclipse.elk.radial.rotate",DZ="org.eclipse.elk.radial.compactor",LZ="org.eclipse.elk.radial.compactionStepSize",lve="org.eclipse.elk.radial.sorter",dve="org.eclipse.elk.radial.wedgeCriteria",fve="org.eclipse.elk.radial.optimizationCriteria",MZ="org.eclipse.elk.radial.rotation.targetAngle",PZ="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",hve="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",LSt="Compaction",pve="rotation",Qc="org.eclipse.elk.radial",MSt="org.eclipse.elk.alg.radial.p1position.wedge",gve="org.eclipse.elk.alg.radial.sorting",PSt=5.497787143782138,jSt=3.9269908169872414,FSt=2.356194490192345,$St="org.eclipse.elk.alg.rectpacking",QC="org.eclipse.elk.alg.rectpacking.intermediate",jZ="org.eclipse.elk.alg.rectpacking.options",bve="org.eclipse.elk.rectpacking.trybox",mve="org.eclipse.elk.rectpacking.currentPosition",wve="org.eclipse.elk.rectpacking.desiredPosition",yve="org.eclipse.elk.rectpacking.inNewRow",vve="org.eclipse.elk.rectpacking.orderBySize",Eve="org.eclipse.elk.rectpacking.widthApproximation.strategy",Sve="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Tve="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Ave="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",_ve="org.eclipse.elk.rectpacking.packing.strategy",kve="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",xve="org.eclipse.elk.rectpacking.packing.compaction.iterations",Nve="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",FZ="widthApproximation",BSt="Compaction Strategy",USt="packing.compaction",xu="org.eclipse.elk.rectpacking",kk="org.eclipse.elk.alg.rectpacking.p1widthapproximation",MF="org.eclipse.elk.alg.rectpacking.p2packing",HSt="No Compaction",Cve="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",UD="org.eclipse.elk.alg.rectpacking.util",PF="No implementation available for ",Dy="org.eclipse.elk.alg.spore",Ly="org.eclipse.elk.alg.spore.options",H0="org.eclipse.elk.sporeCompaction",$Z="org.eclipse.elk.underlyingLayoutAlgorithm",Ive="org.eclipse.elk.processingOrder.treeConstruction",Rve="org.eclipse.elk.processingOrder.spanningTreeCostFunction",BZ="org.eclipse.elk.processingOrder.preferredRoot",UZ="org.eclipse.elk.processingOrder.rootSelection",HZ="org.eclipse.elk.structure.structureExtractionStrategy",Ove="org.eclipse.elk.compaction.compactionStrategy",Dve="org.eclipse.elk.compaction.orthogonal",Lve="org.eclipse.elk.overlapRemoval.maxIterations",Mve="org.eclipse.elk.overlapRemoval.runScanline",zZ="processingOrder",zSt="overlapRemoval",xk="org.eclipse.elk.sporeOverlap",GSt="org.eclipse.elk.alg.spore.p1structure",GZ="org.eclipse.elk.alg.spore.p2processingorder",qZ="org.eclipse.elk.alg.spore.p3execution",Pve="org.eclipse.elk.alg.vertiflex",jve="org.eclipse.elk.vertiflex.verticalConstraint",Fve="org.eclipse.elk.vertiflex.layoutStrategy",$ve="org.eclipse.elk.vertiflex.layerDistance",Bve="org.eclipse.elk.vertiflex.considerNodeModelOrder",Uve="org.eclipse.elk.alg.vertiflex.options",z0="org.eclipse.elk.vertiflex",qSt="org.eclipse.elk.alg.vertiflex.p1yplacement",VZ="org.eclipse.elk.alg.vertiflex.p2relative",VSt="org.eclipse.elk.alg.vertiflex.p3absolute",WSt="BendEdgeRouter",Hve="org.eclipse.elk.alg.vertiflex.p4edgerouting",KSt="StraightEdgeRouter",YSt="Topdown Layout",JSt="Invalid index: ",Nk="org.eclipse.elk.core.alg",FE={343:1},My={297:1},XSt="Make sure its type is registered with the ",zve=" utility class.",Ck="true",WZ="false",ZSt="Couldn't clone property '",G0=.05,Pa="org.eclipse.elk.core.options",QSt=1.2999999523162842,q0="org.eclipse.elk.box",Gve="org.eclipse.elk.expandNodes",qve="org.eclipse.elk.box.packingMode",eTt="org.eclipse.elk.algorithm",tTt="org.eclipse.elk.resolvedAlgorithm",Vve="org.eclipse.elk.bendPoints",g3n="org.eclipse.elk.labelManager",nTt="org.eclipse.elk.softwrappingFuzziness",rTt="org.eclipse.elk.scaleFactor",iTt="org.eclipse.elk.childAreaWidth",oTt="org.eclipse.elk.childAreaHeight",sTt="org.eclipse.elk.animate",aTt="org.eclipse.elk.animTimeFactor",uTt="org.eclipse.elk.layoutAncestors",cTt="org.eclipse.elk.maxAnimTime",lTt="org.eclipse.elk.minAnimTime",dTt="org.eclipse.elk.progressBar",fTt="org.eclipse.elk.validateGraph",hTt="org.eclipse.elk.validateOptions",pTt="org.eclipse.elk.zoomToFit",gTt="org.eclipse.elk.json.shapeCoords",bTt="org.eclipse.elk.json.edgeCoords",b3n="org.eclipse.elk.font.name",mTt="org.eclipse.elk.font.size",KZ="org.eclipse.elk.topdown.sizeCategories",Wve="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",YZ="org.eclipse.elk.topdown.sizeApproximator",Kve="org.eclipse.elk.topdown.scaleCap",wTt="org.eclipse.elk.edge.type",yTt="partitioning",vTt="nodeLabels",jF="portAlignment",JZ="nodeSize",XZ="port",Yve="portLabels",Ik="topdown",ETt="insideSelfLoops",Jve="INHERIT",Rk="org.eclipse.elk.fixed",FF="org.eclipse.elk.random",$F={3:1,34:1,23:1,525:1,290:1},STt="port must have a parent node to calculate the port side",TTt="The edge needs to have exactly one edge section. Found: ",eI="org.eclipse.elk.core.util.adapters",el="org.eclipse.emf.ecore",$E="org.eclipse.elk.graph",ATt="EMapPropertyHolder",_Tt="ElkBendPoint",kTt="ElkGraphElement",xTt="ElkConnectableShape",Xve="ElkEdge",NTt="ElkEdgeSection",CTt="EModelElement",ITt="ENamedElement",Zve="ElkLabel",Qve="ElkNode",eEe="ElkPort",RTt={95:1,94:1},wT="org.eclipse.emf.common.notify.impl",R1="The feature '",tI="' is not a valid changeable feature",OTt="Expecting null",ZZ="' is not a valid feature",DTt="The feature ID",LTt=" is not a valid feature ID",Ws=32768,MTt={110:1,95:1,94:1,57:1,52:1,101:1},zt="org.eclipse.emf.ecore.impl",om="org.eclipse.elk.graph.impl",nI="Recursive containment not allowed for ",Ok="The datatype '",V0="' is not a valid classifier",QZ="The value '",BE={198:1,3:1,4:1},eQ="The class '",Dk="http://www.eclipse.org/elk/ElkGraph",tEe="property",rI="value",tQ="source",PTt="properties",jTt="identifier",nQ="height",rQ="width",iQ="parent",oQ="text",sQ="children",FTt="hierarchical",nEe="sources",aQ="targets",uQ="sections",BF="bendPoints",rEe="outgoingShape",iEe="incomingShape",oEe="outgoingSections",sEe="incomingSections",_o="org.eclipse.emf.common.util",aEe="Severe implementation error in the Json to ElkGraph importer.",Gf="id",ro="org.eclipse.elk.graph.json",Lk="Unhandled parameter types: ",$Tt="startPoint",BTt="An edge must have at least one source and one target (edge id: '",Mk="').",UTt="Referenced edge section does not exist: ",HTt=" (edge id: '",uEe="target",zTt="sourcePoint",GTt="targetPoint",UF="group",or="name",qTt="connectableShape cannot be null",VTt="edge cannot be null",WTt="Passed edge is not 'simple'.",HF="org.eclipse.elk.graph.util",HD="The 'no duplicates' constraint is violated",cQ="targetIndex=",sm=", size=",lQ="sourceIndex=",qf={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},dQ={3:1,4:1,22:1,32:1,56:1,18:1,51:1,16:1,59:1,71:1,67:1,61:1,592:1},zF="logging",KTt="measureExecutionTime",YTt="parser.parse.1",JTt="parser.parse.2",GF="parser.next.1",fQ="parser.next.2",XTt="parser.next.3",ZTt="parser.next.4",am="parser.factor.1",cEe="parser.factor.2",QTt="parser.factor.3",eAt="parser.factor.4",tAt="parser.factor.5",nAt="parser.factor.6",rAt="parser.atom.1",iAt="parser.atom.2",oAt="parser.atom.3",lEe="parser.atom.4",hQ="parser.atom.5",dEe="parser.cc.1",qF="parser.cc.2",sAt="parser.cc.3",aAt="parser.cc.5",fEe="parser.cc.6",hEe="parser.cc.7",pQ="parser.cc.8",uAt="parser.ope.1",cAt="parser.ope.2",lAt="parser.ope.3",Eg="parser.descape.1",dAt="parser.descape.2",fAt="parser.descape.3",hAt="parser.descape.4",pAt="parser.descape.5",tl="parser.process.1",gAt="parser.quantifier.1",bAt="parser.quantifier.2",mAt="parser.quantifier.3",wAt="parser.quantifier.4",pEe="parser.quantifier.5",yAt="org.eclipse.emf.common.notify",gEe={420:1,683:1},vAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},zD={374:1,152:1},iI="index=",gQ={3:1,4:1,5:1,131:1},EAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},bEe={3:1,6:1,4:1,5:1,200:1},SAt={3:1,4:1,5:1,178:1,375:1},TAt=";/?:@&=+$,",AAt="invalid authority: ",_At="EAnnotation",kAt="ETypedElement",xAt="EStructuralFeature",NAt="EAttribute",CAt="EClassifier",IAt="EEnumLiteral",RAt="EGenericType",OAt="EOperation",DAt="EParameter",LAt="EReference",MAt="ETypeParameter",Fr="org.eclipse.emf.ecore.util",bQ={78:1},mEe={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},PAt="org.eclipse.emf.ecore.util.FeatureMap$Entry",yu=8192,oI="byte",VF="char",sI="double",aI="float",uI="int",cI="long",lI="short",jAt="java.lang.Object",UE={3:1,4:1,5:1,258:1},wEe={3:1,4:1,5:1,685:1},FAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},ms={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,72:1,98:1},GD="mixed",$n="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Al="kind",$At={3:1,4:1,5:1,686:1},yEe={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},WF={22:1,32:1,56:1,18:1,16:1,61:1,72:1},KF={51:1,130:1,289:1},YF={76:1,345:1},JF="The value of type '",XF="' must be of type '",HE=1318,_l="http://www.eclipse.org/emf/2002/Ecore",ZF=-32768,W0="constraints",fo="baseType",BAt="getEStructuralFeature",UAt="getFeatureID",dI="feature",HAt="getOperationID",vEe="operation",zAt="defaultValue",GAt="eTypeParameters",qAt="isInstance",VAt="getEEnumLiteral",WAt="eContainingClass",er={58:1},KAt={3:1,4:1,5:1,123:1},YAt="org.eclipse.emf.ecore.resource",JAt={95:1,94:1,595:1,2013:1},mQ="org.eclipse.emf.ecore.resource.impl",EEe="unspecified",qD="simple",QF="attribute",XAt="attributeWildcard",e$="element",wQ="elementWildcard",xd="collapse",yQ="itemType",t$="namespace",VD="##targetNamespace",kl="whiteSpace",SEe="wildcards",um="http://www.eclipse.org/emf/2003/XMLType",vQ="##any",Pk="uninitialized",WD="The multiplicity constraint is violated",n$="org.eclipse.emf.ecore.xml.type",ZAt="ProcessingInstruction",QAt="SimpleAnyType",e_t="XMLTypeDocumentRoot",Si="org.eclipse.emf.ecore.xml.type.impl",KD="INF",t_t="processing",n_t="ENTITIES_._base",TEe="minLength",AEe="ENTITY",r$="NCName",r_t="IDREFS_._base",_Ee="integer",EQ="token",SQ="pattern",i_t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",kEe="\\i\\c*",o_t="[\\i-[:]][\\c-[:]]*",s_t="nonPositiveInteger",YD="maxInclusive",xEe="NMTOKEN",a_t="NMTOKENS_._base",NEe="nonNegativeInteger",JD="minInclusive",u_t="normalizedString",c_t="unsignedByte",l_t="unsignedInt",d_t="18446744073709551615",f_t="unsignedShort",h_t="processingInstruction",Sg="org.eclipse.emf.ecore.xml.type.internal",jk=1114111,p_t="Internal Error: shorthands: \\u",fI="xml:isDigit",TQ="xml:isWord",AQ="xml:isSpace",_Q="xml:isNameChar",kQ="xml:isInitialNameChar",g_t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",b_t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",m_t="Private Use",xQ="ASSIGNED",NQ="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",CEe="UNASSIGNED",Fk={3:1,122:1},w_t="org.eclipse.emf.ecore.xml.type.util",i$={3:1,4:1,5:1,377:1},IEe="org.eclipse.xtext.xbase.lib",y_t="Cannot add elements to a Range",v_t="Cannot set elements in a Range",E_t="Cannot remove elements from a Range",S_t="user.agent",h,o$,CQ;b.goog=b.goog||{},b.goog.global=b.goog.global||b,o$={},A(1,null,{},E),h.Fb=function(t){return Ent(this,t)},h.Gb=function(){return this.Pm},h.Hb=function(){return o0(this)},h.Ib=function(){var t;return Sb(nc(this))+"@"+(t=Ir(this)>>>0,t.toString(16))},h.equals=function(e){return this.Fb(e)},h.hashCode=function(){return this.Hb()},h.toString=function(){return this.Ib()};var T_t,A_t,__t;A(299,1,{299:1,2103:1},Tge),h.te=function(t){var r;return r=new Tge,r.i=4,t>1?r.c=Zat(this,t-1):r.c=this,r},h.ue=function(){return ep(this),this.b},h.ve=function(){return Sb(this)},h.we=function(){return ep(this),this.k},h.xe=function(){return(this.i&4)!=0},h.ye=function(){return(this.i&1)!=0},h.Ib=function(){return Dpe(this)},h.i=0;var Ci=x(js,"Object",1),REe=x(js,"Class",299);A(2075,1,hD),x(pD,"Optional",2075),A(1172,2075,hD,S),h.Fb=function(t){return t===this},h.Hb=function(){return 2040732332},h.Ib=function(){return"Optional.absent()"},h.Jb=function(t){return xn(t),jN(),IQ};var IQ;x(pD,"Absent",1172),A(634,1,{},lq),x(pD,"Joiner",634);var m3n=Hr(pD,"Predicate");A(584,1,{181:1,584:1,3:1,48:1},QWe),h.Mb=function(t){return tpt(this,t)},h.Lb=function(t){return tpt(this,t)},h.Fb=function(t){var r;return se(t,584)?(r=l(t,584),yme(this.a,r.a)):!1},h.Hb=function(){return Nge(this.a)+306654252},h.Ib=function(){return dyn(this.a)},x(pD,"Predicates/AndPredicate",584),A(416,2075,{416:1,3:1},w9),h.Fb=function(t){var r;return se(t,416)?(r=l(t,416),pr(this.a,r.a)):!1},h.Hb=function(){return 1502476572+Ir(this.a)},h.Ib=function(){return $Et+this.a+")"},h.Jb=function(t){return new w9(kP(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},x(pD,"Present",416),A(206,1,ok),h.Nb=function(t){oo(this,t)},h.Qb=function(){aQe()},x(gt,"UnmodifiableIterator",206),A(2055,206,sk),h.Qb=function(){aQe()},h.Rb=function(t){throw K(new Nn)},h.Wb=function(t){throw K(new Nn)},x(gt,"UnmodifiableListIterator",2055),A(394,2055,sk),h.Ob=function(){return this.b0},h.Pb=function(){if(this.b>=this.c)throw K(new ys);return this.Xb(this.b++)},h.Tb=function(){return this.b},h.Ub=function(){if(this.b<=0)throw K(new ys);return this.Xb(--this.b)},h.Vb=function(){return this.b-1},h.b=0,h.c=0,x(gt,"AbstractIndexedListIterator",394),A(709,206,ok),h.Ob=function(){return gK(this)},h.Pb=function(){return xpe(this)},h.e=1,x(gt,"AbstractIterator",709),A(2063,1,{231:1}),h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.Fb=function(t){return jK(this,t)},h.Hb=function(){return Ir(this.Zb())},h.dc=function(){return this.gc()==0},h.ec=function(){return _S(this)},h.Ib=function(){return bs(this.Zb())},x(gt,"AbstractMultimap",2063),A(737,2063,Qb),h.$b=function(){bj(this)},h._b=function(t){return TQe(this,t)},h.ac=function(){return new UA(this,this.c)},h.ic=function(t){return this.hc()},h.bc=function(){return new sE(this,this.c)},h.jc=function(){return this.mc(this.hc())},h.kc=function(){return new VZe(this)},h.lc=function(){return qY(this.c.vc().Lc(),new C,64,this.d)},h.cc=function(t){return wr(this,t)},h.fc=function(t){return I6(this,t)},h.gc=function(){return this.d},h.mc=function(t){return St(),new NA(t)},h.nc=function(){return new qZe(this)},h.oc=function(){return qY(this.c.Bc().Lc(),new k,64,this.d)},h.pc=function(t,r){return new ZP(this,t,r,null)},h.d=0,x(gt,"AbstractMapBasedMultimap",737),A(1678,737,Qb),h.hc=function(){return new Ra(this.a)},h.jc=function(){return St(),St(),No},h.cc=function(t){return l(wr(this,t),16)},h.fc=function(t){return l(I6(this,t),16)},h.Zb=function(){return RS(this)},h.Fb=function(t){return jK(this,t)},h.qc=function(t){return l(wr(this,t),16)},h.rc=function(t){return l(I6(this,t),16)},h.mc=function(t){return xP(l(t,16))},h.pc=function(t,r){return uct(this,t,l(r,16),null)},x(gt,"AbstractListMultimap",1678),A(743,1,Wi),h.Nb=function(t){oo(this,t)},h.Ob=function(){return this.c.Ob()||this.e.Ob()},h.Pb=function(){var t;return this.e.Ob()||(t=l(this.c.Pb(),45),this.b=t.jd(),this.a=l(t.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},h.Qb=function(){this.e.Qb(),l(wl(this.a),18).dc()&&this.c.Qb(),--this.d.d},x(gt,"AbstractMapBasedMultimap/Itr",743),A(1110,743,Wi,qZe),h.sc=function(t,r){return r},x(gt,"AbstractMapBasedMultimap/1",1110),A(1111,1,{},k),h.Kb=function(t){return l(t,18).Lc()},x(gt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),A(1112,743,Wi,VZe),h.sc=function(t,r){return new e0(t,r)},x(gt,"AbstractMapBasedMultimap/2",1112);var OEe=Hr(gn,"Map");A(2044,1,P0),h.wc=function(t){v6(this,t)},h.$b=function(){this.vc().$b()},h.tc=function(t){return xY(this,t)},h._b=function(t){return!!mbe(this,t,!1)},h.uc=function(t){var r,o,s;for(o=this.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),s=r.kd(),be(t)===be(s)||t!=null&&pr(t,s))return!0;return!1},h.Fb=function(t){var r,o,s;if(t===this)return!0;if(!se(t,93)||(s=l(t,93),this.gc()!=s.gc()))return!1;for(o=s.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),!this.tc(r))return!1;return!0},h.xc=function(t){return Es(mbe(this,t,!1))},h.Hb=function(){return vge(this.vc())},h.dc=function(){return this.gc()==0},h.ec=function(){return new Yh(this)},h.yc=function(t,r){throw K(new Yp("Put not supported on this map"))},h.zc=function(t){K3(this,t)},h.Ac=function(t){return Es(mbe(this,t,!0))},h.gc=function(){return this.vc().gc()},h.Ib=function(){return _bt(this)},h.Bc=function(){return new Jh(this)},x(gn,"AbstractMap",2044),A(2064,2044,P0),h.bc=function(){return new U9(this)},h.vc=function(){return Wot(this)},h.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},h.Bc=function(){var t;return t=this.i,t||(this.i=new vet(this))},x(gt,"Maps/ViewCachingAbstractMap",2064),A(398,2064,P0,UA),h.xc=function(t){return tfn(this,t)},h.Ac=function(t){return fpn(this,t)},h.$b=function(){this.d==this.e.c?this.e.$b():nP(new xfe(this))},h._b=function(t){return Vpt(this.d,t)},h.Dc=function(){return new eKe(this)},h.Cc=function(){return this.Dc()},h.Fb=function(t){return this===t||pr(this.d,t)},h.Hb=function(){return Ir(this.d)},h.ec=function(){return this.e.ec()},h.gc=function(){return this.d.gc()},h.Ib=function(){return bs(this.d)},x(gt,"AbstractMapBasedMultimap/AsMap",398);var nl=Hr(js,"Iterable");A(32,1,Ny),h.Ic=function(t){co(this,t)},h.Lc=function(){return new vt(this,0)},h.Mc=function(){return new yt(null,this.Lc())},h.Ec=function(t){throw K(new Yp("Add not supported on this collection"))},h.Fc=function(t){return bo(this,t)},h.$b=function(){fhe(this)},h.Gc=function(t){return py(this,t,!1)},h.Hc=function(t){return k6(this,t)},h.dc=function(){return this.gc()==0},h.Kc=function(t){return py(this,t,!0)},h.Nc=function(){return $fe(this)},h.Oc=function(t){return dC(this,t)},h.Ib=function(){return Qd(this)},x(gn,"AbstractCollection",32);var xl=Hr(gn,"Set");A(tf,32,wu),h.Lc=function(){return new vt(this,1)},h.Fb=function(t){return Bgt(this,t)},h.Hb=function(){return vge(this)},x(gn,"AbstractSet",tf),A(2047,tf,wu),x(gt,"Sets/ImprovedAbstractSet",2047),A(mp,2047,wu),h.$b=function(){this.Pc().$b()},h.Gc=function(t){return Egt(this,t)},h.dc=function(){return this.Pc().dc()},h.Kc=function(t){var r;return this.Gc(t)&&se(t,45)?(r=l(t,45),this.Pc().ec().Kc(r.jd())):!1},h.gc=function(){return this.Pc().gc()},x(gt,"Maps/EntrySet",mp),A(1108,mp,wu,eKe),h.Gc=function(t){return Yge(this.a.d.vc(),t)},h.Jc=function(){return new xfe(this.a)},h.Pc=function(){return this.a},h.Kc=function(t){var r;return Yge(this.a.d.vc(),t)?(r=l(wl(l(t,45)),45),zln(this.a.e,r.jd()),!0):!1},h.Lc=function(){return FO(this.a.d.vc().Lc(),new tKe(this.a))},x(gt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),A(1109,1,{},tKe),h.Kb=function(t){return Xct(this.a,l(t,45))},x(gt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),A(741,1,Wi,xfe),h.Nb=function(t){oo(this,t)},h.Pb=function(){var t;return t=l(this.b.Pb(),45),this.a=l(t.kd(),18),Xct(this.c,t)},h.Ob=function(){return this.b.Ob()},h.Qb=function(){JA(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},x(gt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",741),A(534,2047,wu,U9),h.$b=function(){this.b.$b()},h.Gc=function(t){return this.b._b(t)},h.Ic=function(t){xn(t),this.b.wc(new yKe(t))},h.dc=function(){return this.b.dc()},h.Jc=function(){return new FN(this.b.vc().Jc())},h.Kc=function(t){return this.b._b(t)?(this.b.Ac(t),!0):!1},h.gc=function(){return this.b.gc()},x(gt,"Maps/KeySet",534),A(333,534,wu,sE),h.$b=function(){var t;nP((t=this.b.vc().Jc(),new Qce(this,t)))},h.Hc=function(t){return this.b.ec().Hc(t)},h.Fb=function(t){return this===t||pr(this.b.ec(),t)},h.Hb=function(){return Ir(this.b.ec())},h.Jc=function(){var t;return t=this.b.vc().Jc(),new Qce(this,t)},h.Kc=function(t){var r,o;return o=0,r=l(this.b.Ac(t),18),r&&(o=r.gc(),r.$b(),this.a.d-=o),o>0},h.Lc=function(){return this.b.ec().Lc()},x(gt,"AbstractMapBasedMultimap/KeySet",333),A(742,1,Wi,Qce),h.Nb=function(t){oo(this,t)},h.Ob=function(){return this.c.Ob()},h.Pb=function(){return this.a=l(this.c.Pb(),45),this.a.jd()},h.Qb=function(){var t;JA(!!this.a),t=l(this.a.kd(),18),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},x(gt,"AbstractMapBasedMultimap/KeySet/1",742),A(492,398,{93:1,136:1},RO),h.bc=function(){return this.Qc()},h.ec=function(){return this.Sc()},h.Qc=function(){return new aO(this.c,this.Uc())},h.Rc=function(){return this.Uc().Rc()},h.Sc=function(){var t;return t=this.b,t||(this.b=this.Qc())},h.Tc=function(){return this.Uc().Tc()},h.Uc=function(){return l(this.d,136)},x(gt,"AbstractMapBasedMultimap/SortedAsMap",492),A(442,492,q0e,w3),h.bc=function(){return new BA(this.a,l(l(this.d,136),141))},h.Qc=function(){return new BA(this.a,l(l(this.d,136),141))},h.ec=function(){var t;return t=this.b,l(t||(this.b=new BA(this.a,l(l(this.d,136),141))),279)},h.Sc=function(){var t;return t=this.b,l(t||(this.b=new BA(this.a,l(l(this.d,136),141))),279)},h.Uc=function(){return l(l(this.d,136),141)},h.Vc=function(t){return l(l(this.d,136),141).Vc(t)},h.Wc=function(t){return l(l(this.d,136),141).Wc(t)},h.Xc=function(t,r){return new w3(this.a,l(l(this.d,136),141).Xc(t,r))},h.Yc=function(t){return l(l(this.d,136),141).Yc(t)},h.Zc=function(t){return l(l(this.d,136),141).Zc(t)},h.$c=function(t,r){return new w3(this.a,l(l(this.d,136),141).$c(t,r))},x(gt,"AbstractMapBasedMultimap/NavigableAsMap",442),A(491,333,BEt,aO),h.Lc=function(){return this.b.ec().Lc()},x(gt,"AbstractMapBasedMultimap/SortedKeySet",491),A(397,491,V0e,BA),x(gt,"AbstractMapBasedMultimap/NavigableKeySet",397),A(543,32,Ny,ZP),h.Ec=function(t){var r,o;return Fu(this),o=this.d.dc(),r=this.d.Ec(t),r&&(++this.f.d,o&&LO(this)),r},h.Fc=function(t){var r,o,s;return t.dc()?!1:(s=(Fu(this),this.d.gc()),r=this.d.Fc(t),r&&(o=this.d.gc(),this.f.d+=o-s,s==0&&LO(this)),r)},h.$b=function(){var t;t=(Fu(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,cP(this))},h.Gc=function(t){return Fu(this),this.d.Gc(t)},h.Hc=function(t){return Fu(this),this.d.Hc(t)},h.Fb=function(t){return t===this?!0:(Fu(this),pr(this.d,t))},h.Hb=function(){return Fu(this),Ir(this.d)},h.Jc=function(){return Fu(this),new pfe(this)},h.Kc=function(t){var r;return Fu(this),r=this.d.Kc(t),r&&(--this.f.d,cP(this)),r},h.gc=function(){return unt(this)},h.Lc=function(){return Fu(this),this.d.Lc()},h.Ib=function(){return Fu(this),bs(this.d)},x(gt,"AbstractMapBasedMultimap/WrappedCollection",543);var _c=Hr(gn,"List");A(739,543,{22:1,32:1,18:1,16:1},Bfe),h.gd=function(t){Ub(this,t)},h.Lc=function(){return Fu(this),this.d.Lc()},h._c=function(t,r){var o;Fu(this),o=this.d.dc(),l(this.d,16)._c(t,r),++this.a.d,o&&LO(this)},h.ad=function(t,r){var o,s,u;return r.dc()?!1:(u=(Fu(this),this.d.gc()),o=l(this.d,16).ad(t,r),o&&(s=this.d.gc(),this.a.d+=s-u,u==0&&LO(this)),o)},h.Xb=function(t){return Fu(this),l(this.d,16).Xb(t)},h.bd=function(t){return Fu(this),l(this.d,16).bd(t)},h.cd=function(){return Fu(this),new $nt(this)},h.dd=function(t){return Fu(this),new cat(this,t)},h.ed=function(t){var r;return Fu(this),r=l(this.d,16).ed(t),--this.a.d,cP(this),r},h.fd=function(t,r){return Fu(this),l(this.d,16).fd(t,r)},h.hd=function(t,r){return Fu(this),uct(this.a,this.e,l(this.d,16).hd(t,r),this.b?this.b:this)},x(gt,"AbstractMapBasedMultimap/WrappedList",739),A(1107,739,{22:1,32:1,18:1,16:1,59:1},krt),x(gt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),A(626,1,Wi,pfe),h.Nb=function(t){oo(this,t)},h.Ob=function(){return u_(this),this.b.Ob()},h.Pb=function(){return u_(this),this.b.Pb()},h.Qb=function(){lrt(this)},x(gt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),A(740,626,vh,$nt,cat),h.Qb=function(){lrt(this)},h.Rb=function(t){var r;r=unt(this.a)==0,(u_(this),l(this.b,130)).Rb(t),++this.a.a.d,r&&LO(this.a)},h.Sb=function(){return(u_(this),l(this.b,130)).Sb()},h.Tb=function(){return(u_(this),l(this.b,130)).Tb()},h.Ub=function(){return(u_(this),l(this.b,130)).Ub()},h.Vb=function(){return(u_(this),l(this.b,130)).Vb()},h.Wb=function(t){(u_(this),l(this.b,130)).Wb(t)},x(gt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),A(738,543,BEt,Ide),h.Lc=function(){return Fu(this),this.d.Lc()},x(gt,"AbstractMapBasedMultimap/WrappedSortedSet",738),A(1106,738,V0e,Rnt),x(gt,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),A(1105,543,wu,Krt),h.Lc=function(){return Fu(this),this.d.Lc()},x(gt,"AbstractMapBasedMultimap/WrappedSet",1105),A(1114,1,{},C),h.Kb=function(t){return Kln(l(t,45))},x(gt,"AbstractMapBasedMultimap/lambda$1$Type",1114),A(1113,1,{},nKe),h.Kb=function(t){return new e0(this.a,t)},x(gt,"AbstractMapBasedMultimap/lambda$2$Type",1113);var cm=Hr(gn,"Map/Entry");A(359,1,VJ),h.Fb=function(t){var r;return se(t,45)?(r=l(t,45),tp(this.jd(),r.jd())&&tp(this.kd(),r.kd())):!1},h.Hb=function(){var t,r;return t=this.jd(),r=this.kd(),(t==null?0:Ir(t))^(r==null?0:Ir(r))},h.ld=function(t){throw K(new Nn)},h.Ib=function(){return this.jd()+"="+this.kd()},x(gt,UEt,359),A(2065,32,Ny),h.$b=function(){this.md().$b()},h.Gc=function(t){var r;return se(t,45)?(r=l(t,45),bcn(this.md(),r.jd(),r.kd())):!1},h.Kc=function(t){var r;return se(t,45)?(r=l(t,45),zut(this.md(),r.jd(),r.kd())):!1},h.gc=function(){return this.md().d},x(gt,"Multimaps/Entries",2065),A(744,2065,Ny,Fue),h.Jc=function(){return this.a.kc()},h.md=function(){return this.a},h.Lc=function(){return this.a.lc()},x(gt,"AbstractMultimap/Entries",744),A(745,744,wu,Dce),h.Lc=function(){return this.a.lc()},h.Fb=function(t){return jbe(this,t)},h.Hb=function(){return eht(this)},x(gt,"AbstractMultimap/EntrySet",745),A(746,32,Ny,$ue),h.$b=function(){this.a.$b()},h.Gc=function(t){return upn(this.a,t)},h.Jc=function(){return this.a.nc()},h.gc=function(){return this.a.d},h.Lc=function(){return this.a.oc()},x(gt,"AbstractMultimap/Values",746),A(2066,32,{841:1,22:1,32:1,18:1}),h.Ic=function(t){xn(t),uE(this).Ic(new xKe(t))},h.Lc=function(){var t;return t=uE(this).Lc(),qY(t,new H,64|t.wd()&1296,this.a.d)},h.Ec=function(t){return $ce(),!0},h.Fc=function(t){return xn(this),xn(t),se(t,544)?ycn(l(t,841)):!t.dc()&&sK(this,t.Jc())},h.Gc=function(t){var r;return r=l(hy(RS(this.a),t),18),(r?r.gc():0)>0},h.Fb=function(t){return cEn(this,t)},h.Hb=function(){return Ir(uE(this))},h.dc=function(){return uE(this).dc()},h.Kc=function(t){return qmt(this,t,1)>0},h.Ib=function(){return bs(uE(this))},x(gt,"AbstractMultiset",2066),A(2068,2047,wu),h.$b=function(){bj(this.a.a)},h.Gc=function(t){var r,o;return se(t,493)?(o=l(t,421),l(o.a.kd(),18).gc()<=0?!1:(r=dut(this.a,o.a.jd()),r==l(o.a.kd(),18).gc())):!1},h.Kc=function(t){var r,o,s,u;return se(t,493)&&(o=l(t,421),r=o.a.jd(),s=l(o.a.kd(),18).gc(),s!=0)?(u=this.a,ovn(u,r,s)):!1},x(gt,"Multisets/EntrySet",2068),A(1120,2068,wu,rKe),h.Jc=function(){return new XZe(Wot(RS(this.a.a)).Jc())},h.gc=function(){return RS(this.a.a).gc()},x(gt,"AbstractMultiset/EntrySet",1120),A(625,737,Qb),h.hc=function(){return this.nd()},h.jc=function(){return this.od()},h.cc=function(t){return this.pd(t)},h.fc=function(t){return this.qd(t)},h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.od=function(){return St(),St(),d$},h.Fb=function(t){return jK(this,t)},h.pd=function(t){return l(wr(this,t),24)},h.qd=function(t){return l(I6(this,t),24)},h.mc=function(t){return St(),new MA(l(t,24))},h.pc=function(t,r){return new Krt(this,t,l(r,24))},x(gt,"AbstractSetMultimap",625),A(1706,625,Qb),h.hc=function(){return new Zp(this.b)},h.nd=function(){return new Zp(this.b)},h.jc=function(){return Zfe(new Zp(this.b))},h.od=function(){return Zfe(new Zp(this.b))},h.cc=function(t){return l(l(wr(this,t),24),85)},h.pd=function(t){return l(l(wr(this,t),24),85)},h.fc=function(t){return l(l(I6(this,t),24),85)},h.qd=function(t){return l(l(I6(this,t),24),85)},h.mc=function(t){return se(t,279)?Zfe(l(t,279)):(St(),new wde(l(t,85)))},h.Zb=function(){var t;return t=this.f,t||(this.f=se(this.c,141)?new w3(this,l(this.c,141)):se(this.c,136)?new RO(this,l(this.c,136)):new UA(this,this.c))},h.pc=function(t,r){return se(r,279)?new Rnt(this,t,l(r,279)):new Ide(this,t,l(r,85))},x(gt,"AbstractSortedSetMultimap",1706),A(1707,1706,Qb),h.Zb=function(){var t;return t=this.f,l(l(t||(this.f=se(this.c,141)?new w3(this,l(this.c,141)):se(this.c,136)?new RO(this,l(this.c,136)):new UA(this,this.c)),136),141)},h.ec=function(){var t;return t=this.i,l(l(t||(this.i=se(this.c,141)?new BA(this,l(this.c,141)):se(this.c,136)?new aO(this,l(this.c,136)):new sE(this,this.c)),85),279)},h.bc=function(){return se(this.c,141)?new BA(this,l(this.c,141)):se(this.c,136)?new aO(this,l(this.c,136)):new sE(this,this.c)},x(gt,"AbstractSortedKeySortedSetMultimap",1707),A(2088,1,{2025:1}),h.Fb=function(t){return Jmn(this,t)},h.Hb=function(){var t;return vge((t=this.g,t||(this.g=new DG(this))))},h.Ib=function(){var t;return _bt((t=this.f,t||(this.f=new cde(this))))},x(gt,"AbstractTable",2088),A(676,tf,wu,DG),h.$b=function(){uQe()},h.Gc=function(t){var r,o;return se(t,471)?(r=l(t,694),o=l(hy(vst(this.a),i1(r.c.e,r.b)),93),!!o&&Yge(o.vc(),new e0(i1(r.c.c,r.a),jS(r.c,r.b,r.a)))):!1},h.Jc=function(){return van(this.a)},h.Kc=function(t){var r,o;return se(t,471)?(r=l(t,694),o=l(hy(vst(this.a),i1(r.c.e,r.b)),93),!!o&&qpn(o.vc(),new e0(i1(r.c.c,r.a),jS(r.c,r.b,r.a)))):!1},h.gc=function(){return Sot(this.a)},h.Lc=function(){return Tcn(this.a)},x(gt,"AbstractTable/CellSet",676),A(2004,32,Ny,iKe),h.$b=function(){uQe()},h.Gc=function(t){return B0n(this.a,t)},h.Jc=function(){return Ean(this.a)},h.gc=function(){return Sot(this.a)},h.Lc=function(){return Fut(this.a)},x(gt,"AbstractTable/Values",2004),A(1679,1678,Qb),x(gt,"ArrayListMultimapGwtSerializationDependencies",1679),A(510,1679,Qb,cq,Ohe),h.hc=function(){return new Ra(this.a)},h.a=0,x(gt,"ArrayListMultimap",510),A(675,2088,{675:1,2025:1,3:1},Gmt),x(gt,"ArrayTable",675),A(2e3,394,sk,art),h.Xb=function(t){return new mge(this.a,t)},x(gt,"ArrayTable/1",2e3),A(2001,1,{},oKe),h.rd=function(t){return new mge(this.a,t)},x(gt,"ArrayTable/1methodref$getCell$Type",2001),A(2089,1,{694:1}),h.Fb=function(t){var r;return t===this?!0:se(t,471)?(r=l(t,694),tp(i1(this.c.e,this.b),i1(r.c.e,r.b))&&tp(i1(this.c.c,this.a),i1(r.c.c,r.a))&&tp(jS(this.c,this.b,this.a),jS(r.c,r.b,r.a))):!1},h.Hb=function(){return Pj(Z(X(Ci,1),Rt,1,5,[i1(this.c.e,this.b),i1(this.c.c,this.a),jS(this.c,this.b,this.a)]))},h.Ib=function(){return"("+i1(this.c.e,this.b)+","+i1(this.c.c,this.a)+")="+jS(this.c,this.b,this.a)},x(gt,"Tables/AbstractCell",2089),A(471,2089,{471:1,694:1},mge),h.a=0,h.b=0,h.d=0,x(gt,"ArrayTable/2",471),A(2003,1,{},sKe),h.rd=function(t){return tdt(this.a,t)},x(gt,"ArrayTable/2methodref$getValue$Type",2003),A(2002,394,sk,urt),h.Xb=function(t){return tdt(this.a,t)},x(gt,"ArrayTable/3",2002),A(2056,2044,P0),h.$b=function(){nP(this.kc())},h.vc=function(){return new SKe(this)},h.lc=function(){return new eat(this.kc(),this.gc())},x(gt,"Maps/IteratorBasedAbstractMap",2056),A(834,2056,P0),h.$b=function(){throw K(new Nn)},h._b=function(t){return AQe(this.c,t)},h.kc=function(){return new crt(this,this.c.b.c.gc())},h.lc=function(){return jV(this.c.b.c.gc(),16,new aKe(this))},h.xc=function(t){var r;return r=l(y3(this.c,t),15),r?this.td(r.a):null},h.dc=function(){return this.c.b.c.dc()},h.ec=function(){return VV(this.c)},h.yc=function(t,r){var o;if(o=l(y3(this.c,t),15),!o)throw K(new jt(this.sd()+" "+t+" not in "+VV(this.c)));return this.ud(o.a,r)},h.Ac=function(t){throw K(new Nn)},h.gc=function(){return this.c.b.c.gc()},x(gt,"ArrayTable/ArrayMap",834),A(1999,1,{},aKe),h.rd=function(t){return Est(this.a,t)},x(gt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),A(1997,359,VJ,tet),h.jd=function(){return Ptn(this.a,this.b)},h.kd=function(){return this.a.td(this.b)},h.ld=function(t){return this.a.ud(this.b,t)},h.b=0,x(gt,"ArrayTable/ArrayMap/1",1997),A(1998,394,sk,crt),h.Xb=function(t){return Est(this.a,t)},x(gt,"ArrayTable/ArrayMap/2",1998),A(1996,834,P0,lst),h.sd=function(){return"Column"},h.td=function(t){return jS(this.b,this.a,t)},h.ud=function(t,r){return $ht(this.b,this.a,t,r)},h.a=0,x(gt,"ArrayTable/Row",1996),A(835,834,P0,cde),h.td=function(t){return new lst(this.a,t)},h.yc=function(t,r){return l(r,93),oQt()},h.ud=function(t,r){return l(r,93),sQt()},h.sd=function(){return"Row"},x(gt,"ArrayTable/RowMap",835),A(1138,1,Tc,net),h.yd=function(t){return(this.a.wd()&-262&t)!=0},h.wd=function(){return this.a.wd()&-262},h.xd=function(){return this.a.xd()},h.Nb=function(t){this.a.Nb(new iet(t,this.b))},h.zd=function(t){return this.a.zd(new ret(t,this.b))},x(gt,"CollectSpliterators/1",1138),A(1139,1,tn,ret),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},x(gt,"CollectSpliterators/1/lambda$0$Type",1139),A(1140,1,tn,iet),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},x(gt,"CollectSpliterators/1/lambda$1$Type",1140),A(1135,1,Tc,Iit),h.yd=function(t){return((16464|this.b)&t)!=0},h.wd=function(){return 16464|this.b},h.xd=function(){return this.a.xd()},h.Nb=function(t){this.a.Oe(new set(t,this.c))},h.zd=function(t){return this.a.Pe(new oet(t,this.c))},h.b=0,x(gt,"CollectSpliterators/1WithCharacteristics",1135),A(1136,1,gD,oet),h.Bd=function(t){this.a.Ad(this.b.rd(t))},x(gt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),A(1137,1,gD,set),h.Bd=function(t){this.a.Ad(this.b.rd(t))},x(gt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),A(1131,1,Tc),h.yd=function(t){return(this.a&t)!=0},h.wd=function(){return this.a},h.xd=function(){return this.e&&(this.b=Qle(this.b,this.e.xd())),Qle(this.b,0)},h.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new aet(this,t)),this.b=0},h.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return c3(this.b,bD)&&(this.b=El(this.b,1)),!0;if(this.e=null,!this.c.zd(new pKe(this)))return!1}},h.a=0,h.b=0,x(gt,"CollectSpliterators/FlatMapSpliterator",1131),A(1133,1,tn,pKe),h.Ad=function(t){Nnn(this.a,t)},x(gt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),A(1134,1,tn,aet),h.Ad=function(t){Qsn(this.a,this.b,t)},x(gt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),A(1132,1131,Tc,cct),x(gt,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),A(257,1,WJ),h.Dd=function(t){return this.Cd(l(t,257))},h.Cd=function(t){var r;return t==(nq(),OQ)?1:t==(tq(),RQ)?-1:(r=(Q8(),y6(this.a,t.a)),r!=0?r:(Lt(),se(this,517)==se(t,517)?0:se(this,517)?1:-1))},h.Gd=function(){return this.a},h.Fb=function(t){return z1e(this,t)},x(gt,"Cut",257),A(1810,257,WJ,GZe),h.Cd=function(t){return t==this?0:1},h.Ed=function(t){throw K(new bce)},h.Fd=function(t){t.a+="+∞)"},h.Gd=function(){throw K(new Xo(zEt))},h.Hb=function(){return Qp(),I1e(this)},h.Hd=function(t){return!1},h.Ib=function(){return"+∞"};var RQ;x(gt,"Cut/AboveAll",1810),A(517,257,{257:1,517:1,3:1,34:1},hrt),h.Ed=function(t){ga((t.a+="(",t),this.a)},h.Fd=function(t){Rb(ga(t,this.a),93)},h.Hb=function(){return~Ir(this.a)},h.Hd=function(t){return Q8(),y6(this.a,t)<0},h.Ib=function(){return"/"+this.a+"\\"},x(gt,"Cut/AboveValue",517),A(1809,257,WJ,zZe),h.Cd=function(t){return t==this?0:-1},h.Ed=function(t){t.a+="(-∞"},h.Fd=function(t){throw K(new bce)},h.Gd=function(){throw K(new Xo(zEt))},h.Hb=function(){return Qp(),I1e(this)},h.Hd=function(t){return!0},h.Ib=function(){return"-∞"};var OQ;x(gt,"Cut/BelowAll",1809),A(1811,257,WJ,prt),h.Ed=function(t){ga((t.a+="[",t),this.a)},h.Fd=function(t){Rb(ga(t,this.a),41)},h.Hb=function(){return Ir(this.a)},h.Hd=function(t){return Q8(),y6(this.a,t)<=0},h.Ib=function(){return"\\"+this.a+"/"},x(gt,"Cut/BelowValue",1811),A(539,1,Eh),h.Ic=function(t){co(this,t)},h.Ib=function(){return cgn(l(kP(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},x(gt,"FluentIterable",539),A(438,539,Eh,f3),h.Jc=function(){return new Ft(Gt(this.a.Jc(),new D))},x(gt,"FluentIterable/2",438),A(36,1,{},D),h.Kb=function(t){return l(t,22).Jc()},h.Fb=function(t){return this===t},x(gt,"FluentIterable/2/0methodref$iterator$Type",36),A(1051,539,Eh,ynt),h.Jc=function(){return hh(this)},x(gt,"FluentIterable/3",1051),A(721,394,sk,hde),h.Xb=function(t){return this.a[t].Jc()},x(gt,"FluentIterable/3/1",721),A(2049,1,{}),h.Ib=function(){return bs(this.Id().b)},x(gt,"ForwardingObject",2049),A(2050,2049,GEt),h.Id=function(){return this.Jd()},h.Ic=function(t){co(this,t)},h.Lc=function(){return new vt(this,0)},h.Mc=function(){return new yt(null,this.Lc())},h.Ec=function(t){return this.Jd(),CQe()},h.Fc=function(t){return this.Jd(),IQe()},h.$b=function(){this.Jd(),RQe()},h.Gc=function(t){return this.Jd().Gc(t)},h.Hc=function(t){return this.Jd().Hc(t)},h.dc=function(){return this.Jd().b.dc()},h.Jc=function(){return this.Jd().Jc()},h.Kc=function(t){return this.Jd(),OQe()},h.gc=function(){return this.Jd().b.gc()},h.Nc=function(){return this.Jd().Nc()},h.Oc=function(t){return this.Jd().Oc(t)},x(gt,"ForwardingCollection",2050),A(2057,32,W0e),h.Jc=function(){return this.Md()},h.Ec=function(t){throw K(new Nn)},h.Fc=function(t){throw K(new Nn)},h.Kd=function(){var t;return t=this.c,t||(this.c=this.Ld())},h.$b=function(){throw K(new Nn)},h.Gc=function(t){return t!=null&&py(this,t,!1)},h.Ld=function(){switch(this.gc()){case 0:return rP(),MQ;case 1:return new EV(xn(this.Md().Pb()));default:return new hfe(this,this.Nc())}},h.Kc=function(t){throw K(new Nn)},x(gt,"ImmutableCollection",2057),A(1271,2057,W0e,gKe),h.Jc=function(){return FS(new Gv(this.a.b.Jc()))},h.Gc=function(t){return t!=null&&zN(this.a,t)},h.Hc=function(t){return tle(this.a,t)},h.dc=function(){return this.a.b.dc()},h.Md=function(){return FS(new Gv(this.a.b.Jc()))},h.gc=function(){return this.a.b.gc()},h.Nc=function(){return this.a.b.Nc()},h.Oc=function(t){return nle(this.a,t)},h.Ib=function(){return bs(this.a.b)},x(gt,"ForwardingImmutableCollection",1271),A(312,2057,ak),h.Jc=function(){return this.Md()},h.cd=function(){return this.Nd(0)},h.dd=function(t){return this.Nd(t)},h.gd=function(t){Ub(this,t)},h.Lc=function(){return new vt(this,16)},h.hd=function(t,r){return this.Od(t,r)},h._c=function(t,r){throw K(new Nn)},h.ad=function(t,r){throw K(new Nn)},h.Kd=function(){return this},h.Fb=function(t){return Qvn(this,t)},h.Hb=function(){return mhn(this)},h.bd=function(t){return t==null?-1:Nbn(this,t)},h.Md=function(){return this.Nd(0)},h.Nd=function(t){return gV(this,t)},h.ed=function(t){throw K(new Nn)},h.fd=function(t,r){throw K(new Nn)},h.Od=function(t,r){var o;return zj((o=new yet(this),new If(o,t,r)))},x(gt,"ImmutableList",312),A(2084,312,ak),h.Jc=function(){return FS(this.Pd().Jc())},h.hd=function(t,r){return zj(this.Pd().hd(t,r))},h.Gc=function(t){return t!=null&&this.Pd().Gc(t)},h.Hc=function(t){return this.Pd().Hc(t)},h.Fb=function(t){return pr(this.Pd(),t)},h.Xb=function(t){return i1(this,t)},h.Hb=function(){return Ir(this.Pd())},h.bd=function(t){return this.Pd().bd(t)},h.dc=function(){return this.Pd().dc()},h.Md=function(){return FS(this.Pd().Jc())},h.gc=function(){return this.Pd().gc()},h.Od=function(t,r){return zj(this.Pd().hd(t,r))},h.Nc=function(){return this.Pd().Oc(me(Ci,Rt,1,this.Pd().gc(),5,1))},h.Oc=function(t){return this.Pd().Oc(t)},h.Ib=function(){return bs(this.Pd())},x(gt,"ForwardingImmutableList",2084),A(724,1,uk),h.vc=function(){return xb(this)},h.wc=function(t){v6(this,t)},h.ec=function(){return VV(this)},h.Bc=function(){return this.Td()},h.$b=function(){throw K(new Nn)},h._b=function(t){return this.xc(t)!=null},h.uc=function(t){return this.Td().Gc(t)},h.Rd=function(){return new lKe(this)},h.Sd=function(){return new dKe(this)},h.Fb=function(t){return cpn(this,t)},h.Hb=function(){return xb(this).Hb()},h.dc=function(){return this.gc()==0},h.yc=function(t,r){return aQt()},h.Ac=function(t){throw K(new Nn)},h.Ib=function(){return Lwn(this)},h.Td=function(){return this.e?this.e:this.e=this.Sd()},h.c=null,h.d=null,h.e=null,x(gt,"ImmutableMap",724),A(725,724,uk),h._b=function(t){return AQe(this,t)},h.uc=function(t){return Aet(this.b,t)},h.Qd=function(){return Tpt(new hKe(this))},h.Rd=function(){return Tpt(zst(this.b))},h.Sd=function(){return new gKe(Hst(this.b))},h.Fb=function(t){return _et(this.b,t)},h.xc=function(t){return y3(this,t)},h.Hb=function(){return Ir(this.b.c)},h.dc=function(){return this.b.c.dc()},h.gc=function(){return this.b.c.gc()},h.Ib=function(){return bs(this.b.c)},x(gt,"ForwardingImmutableMap",725),A(2051,2050,KJ),h.Id=function(){return this.Ud()},h.Jd=function(){return this.Ud()},h.Lc=function(){return new vt(this,1)},h.Fb=function(t){return t===this||this.Ud().Fb(t)},h.Hb=function(){return this.Ud().Hb()},x(gt,"ForwardingSet",2051),A(1066,2051,KJ,hKe),h.Id=function(){return o_(this.a.b)},h.Jd=function(){return o_(this.a.b)},h.Gc=function(t){if(se(t,45)&&l(t,45).jd()==null)return!1;try{return Tet(o_(this.a.b),t)}catch(r){if(r=ci(r),se(r,214))return!1;throw K(r)}},h.Ud=function(){return o_(this.a.b)},h.Oc=function(t){var r,o;return r=Iat(o_(this.a.b),t),o_(this.a.b).b.gc()=0?"+":"")+(o/60|0),r=C8(b.Math.abs(o)%60),(Fbt(),q_t)[this.q.getDay()]+" "+V_t[this.q.getMonth()]+" "+C8(this.q.getDate())+" "+C8(this.q.getHours())+":"+C8(this.q.getMinutes())+":"+C8(this.q.getSeconds())+" GMT"+t+r+" "+this.q.getFullYear()};var u$=x(gn,"Date",208);A(1994,208,QEt,ibt),h.a=!1,h.b=0,h.c=0,h.d=0,h.e=0,h.f=0,h.g=!1,h.i=0,h.j=0,h.k=0,h.n=0,h.o=0,h.p=0,x("com.google.gwt.i18n.shared.impl","DateRecord",1994),A(2043,1,{}),h.ne=function(){return null},h.oe=function(){return null},h.pe=function(){return null},h.qe=function(){return null},h.re=function(){return null},x(cT,"JSONValue",2043),A(142,2043,{142:1},yb,Bue),h.Fb=function(t){return se(t,142)?Mhe(this.a,l(t,142).a):!1},h.me=function(){return xZt},h.Hb=function(){return vhe(this.a)},h.ne=function(){return this},h.Ib=function(){var t,r,o;for(o=new fc("["),r=0,t=this.a.length;r0&&(o.a+=","),ga(o,sy(this,r));return o.a+="]",o.a},x(cT,"JSONArray",142),A(482,2043,{482:1},Uue),h.me=function(){return NZt},h.oe=function(){return this},h.Ib=function(){return Lt(),""+this.a},h.a=!1;var D_t,L_t;x(cT,"JSONBoolean",482),A(990,63,wp,ZZe),x(cT,"JSONException",990),A(1028,2043,{},ve),h.me=function(){return OZt},h.Ib=function(){return tu};var M_t;x(cT,"JSONNull",1028),A(266,2043,{266:1},y9),h.Fb=function(t){return se(t,266)?this.a==l(t,266).a:!1},h.me=function(){return CZt},h.Hb=function(){return gS(this.a)},h.pe=function(){return this},h.Ib=function(){return this.a+""},h.a=0,x(cT,"JSONNumber",266),A(150,2043,{150:1},oS,KR),h.Fb=function(t){return se(t,150)?Mhe(this.a,l(t,150).a):!1},h.me=function(){return IZt},h.Hb=function(){return vhe(this.a)},h.qe=function(){return this},h.Ib=function(){var t,r,o,s,u,f,p;for(p=new fc("{"),t=!0,f=wK(this,me(Ye,Me,2,0,6,1)),o=f,s=0,u=o.length;s=0?":"+this.c:"")+")"},h.c=0;var YEe=x(js,"StackTraceElement",325);__t={3:1,475:1,34:1,2:1};var Ye=x(js,K0e,2);A(112,423,{475:1},Jp,UN,ml),x(js,"StringBuffer",112),A(106,423,{475:1},Zg,uS,fc),x(js,"StringBuilder",106),A(698,99,nF,Bce),x(js,"StringIndexOutOfBoundsException",698),A(2124,1,{});var $_t;A(46,63,{3:1,102:1,63:1,81:1,46:1},Nn,Yp),x(js,"UnsupportedOperationException",46),A(249,245,{3:1,34:1,245:1,249:1},M6,Jce),h.Dd=function(t){return zyt(this,l(t,249))},h.se=function(){return yy(wvt(this))},h.Fb=function(t){var r;return this===t?!0:se(t,249)?(r=l(t,249),this.e==r.e&&zyt(this,r)==0):!1},h.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gs(this.f),this.b=On(Gi(t,-1)),this.b=33*this.b+On(Gi(a0(t,32),-1)),this.b=17*this.b+po(this.e),this.b):(this.b=17*Dpt(this.c)+po(this.e),this.b)},h.Ib=function(){return wvt(this)},h.a=0,h.b=0,h.d=0,h.e=0,h.f=0;var B_t,lm,JEe,XEe,ZEe,QEe,e2e,t2e,UQ=x("java.math","BigDecimal",249);A(92,245,{3:1,34:1,245:1,92:1},op,Wut,Ib,Ggt,o1),h.Dd=function(t){return Pgt(this,l(t,92))},h.se=function(){return yy(zJ(this,0))},h.Fb=function(t){return p1e(this,t)},h.Hb=function(){return Dpt(this)},h.Ib=function(){return zJ(this,0)},h.b=-2,h.c=0,h.d=0,h.e=0;var U_t,c$,H_t,HQ,l$,gI,zE=x("java.math","BigInteger",92),z_t,G_t,vT,bI;A(487,2044,P0),h.$b=function(){Zs(this)},h._b=function(t){return ba(this,t)},h.uc=function(t){return mpt(this,t,this.i)||mpt(this,t,this.f)},h.vc=function(){return new Ow(this)},h.xc=function(t){return Ut(this,t)},h.yc=function(t,r){return Yn(this,t,r)},h.Ac=function(t){return PS(this,t)},h.gc=function(){return GN(this)},h.g=0,x(gn,"AbstractHashMap",487),A(307,tf,wu,Ow),h.$b=function(){this.a.$b()},h.Gc=function(t){return Xut(this,t)},h.Jc=function(){return new ly(this.a)},h.Kc=function(t){var r;return Xut(this,t)?(r=l(t,45).jd(),this.a.Ac(r),!0):!1},h.gc=function(){return this.a.gc()},x(gn,"AbstractHashMap/EntrySet",307),A(308,1,Wi,ly),h.Nb=function(t){oo(this,t)},h.Pb=function(){return gE(this)},h.Ob=function(){return this.b},h.Qb=function(){xdt(this)},h.b=!1,h.d=0,x(gn,"AbstractHashMap/EntrySetIterator",308),A(422,1,Wi,RN),h.Nb=function(t){oo(this,t)},h.Ob=function(){return Sq(this)},h.Pb=function(){return bhe(this)},h.Qb=function(){Lu(this)},h.b=0,h.c=-1,x(gn,"AbstractList/IteratorImpl",422),A(97,422,vh,Ji),h.Qb=function(){Lu(this)},h.Rb=function(t){qw(this,t)},h.Sb=function(){return this.b>0},h.Tb=function(){return this.b},h.Ub=function(){return un(this.b>0),this.a.Xb(this.c=--this.b)},h.Vb=function(){return this.b-1},h.Wb=function(t){Uw(this.c!=-1),this.a.fd(this.c,t)},x(gn,"AbstractList/ListIteratorImpl",97),A(217,56,ck,If),h._c=function(t,r){ny(t,this.b),this.c._c(this.a+t,r),++this.b},h.Xb=function(t){return at(t,this.b),this.c.Xb(this.a+t)},h.ed=function(t){var r;return at(t,this.b),r=this.c.ed(this.a+t),--this.b,r},h.fd=function(t,r){return at(t,this.b),this.c.fd(this.a+t,r)},h.gc=function(){return this.b},h.a=0,h.b=0,x(gn,"AbstractList/SubList",217),A(234,tf,wu,Yh),h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a._b(t)},h.Jc=function(){var t;return t=this.a.vc().Jc(),new E9(t)},h.Kc=function(t){return this.a._b(t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},x(gn,"AbstractMap/1",234),A(533,1,Wi,E9),h.Nb=function(t){oo(this,t)},h.Ob=function(){return this.a.Ob()},h.Pb=function(){var t;return t=l(this.a.Pb(),45),t.jd()},h.Qb=function(){this.a.Qb()},x(gn,"AbstractMap/1/1",533),A(232,32,Ny,Jh),h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a.uc(t)},h.Jc=function(){var t;return t=this.a.vc().Jc(),new Dw(t)},h.gc=function(){return this.a.gc()},x(gn,"AbstractMap/2",232),A(305,1,Wi,Dw),h.Nb=function(t){oo(this,t)},h.Ob=function(){return this.a.Ob()},h.Pb=function(){var t;return t=l(this.a.Pb(),45),t.kd()},h.Qb=function(){this.a.Qb()},x(gn,"AbstractMap/2/1",305),A(483,1,{483:1,45:1}),h.Fb=function(t){var r;return se(t,45)?(r=l(t,45),ia(this.d,r.jd())&&ia(this.e,r.kd())):!1},h.jd=function(){return this.d},h.kd=function(){return this.e},h.Hb=function(){return nE(this.d)^nE(this.e)},h.ld=function(t){return Hde(this,t)},h.Ib=function(){return this.d+"="+this.e},x(gn,"AbstractMap/AbstractEntry",483),A(392,483,{483:1,392:1,45:1},Q9),x(gn,"AbstractMap/SimpleEntry",392),A(2061,1,wX),h.Fb=function(t){var r;return se(t,45)?(r=l(t,45),ia(this.jd(),r.jd())&&ia(this.kd(),r.kd())):!1},h.Hb=function(){return nE(this.jd())^nE(this.kd())},h.Ib=function(){return this.jd()+"="+this.kd()},x(gn,UEt,2061),A(2069,2044,q0e),h.Vc=function(t){return hq(this.Ce(t))},h.tc=function(t){return Jct(this,t)},h._b=function(t){return Ude(this,t)},h.vc=function(){return new HG(this)},h.Rc=function(){return dst(this.Ee())},h.Wc=function(t){return hq(this.Fe(t))},h.xc=function(t){var r;return r=t,Es(this.De(r))},h.Yc=function(t){return hq(this.Ge(t))},h.ec=function(){return new MKe(this)},h.Tc=function(){return dst(this.He())},h.Zc=function(t){return hq(this.Ie(t))},x(gn,"AbstractNavigableMap",2069),A(627,tf,wu,HG),h.Gc=function(t){return se(t,45)&&Jct(this.b,l(t,45))},h.Jc=function(){return this.b.Be()},h.Kc=function(t){var r;return se(t,45)?(r=l(t,45),this.b.Je(r)):!1},h.gc=function(){return this.b.gc()},x(gn,"AbstractNavigableMap/EntrySet",627),A(1127,tf,V0e,MKe),h.Lc=function(){return new t8(this)},h.$b=function(){this.a.$b()},h.Gc=function(t){return Ude(this.a,t)},h.Jc=function(){var t;return t=this.a.vc().b.Be(),new PKe(t)},h.Kc=function(t){return Ude(this.a,t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},x(gn,"AbstractNavigableMap/NavigableKeySet",1127),A(1128,1,Wi,PKe),h.Nb=function(t){oo(this,t)},h.Ob=function(){return Sq(this.a.a)},h.Pb=function(){var t;return t=Crt(this.a),t.jd()},h.Qb=function(){Lit(this.a)},x(gn,"AbstractNavigableMap/NavigableKeySet/1",1128),A(2082,32,Ny),h.Ec=function(t){return AS(q_(this,t),dk),!0},h.Fc=function(t){return Mt(t),BO(t!=this,"Can't add a queue to itself"),bo(this,t)},h.$b=function(){for(;aK(this)!=null;);},x(gn,"AbstractQueue",2082),A(315,32,{4:1,22:1,32:1,18:1},iE,tct),h.Ec=function(t){return zhe(this,t),!0},h.$b=function(){Yhe(this)},h.Gc=function(t){return Lht(new R3(this),t)},h.dc=function(){return BN(this)},h.Jc=function(){return new R3(this)},h.Kc=function(t){return aun(new R3(this),t)},h.gc=function(){return this.c-this.b&this.a.length-1},h.Lc=function(){return new vt(this,272)},h.Oc=function(t){var r;return r=this.c-this.b&this.a.length-1,t.lengthr&&ii(t,r,null),t},h.b=0,h.c=0,x(gn,"ArrayDeque",315),A(451,1,Wi,R3),h.Nb=function(t){oo(this,t)},h.Ob=function(){return this.a!=this.b},h.Pb=function(){return Fj(this)},h.Qb=function(){Dft(this)},h.a=0,h.b=0,h.c=-1,x(gn,"ArrayDeque/IteratorImpl",451),A(13,56,r2t,Pe,Ra,Tu),h._c=function(t,r){kb(this,t,r)},h.Ec=function(t){return je(this,t)},h.ad=function(t,r){return $ge(this,t,r)},h.Fc=function(t){return li(this,t)},h.$b=function(){Lw(this.c,0)},h.Gc=function(t){return As(this,t,0)!=-1},h.Ic=function(t){Oa(this,t)},h.Xb=function(t){return He(this,t)},h.bd=function(t){return As(this,t,0)},h.dc=function(){return this.c.length==0},h.Jc=function(){return new V(this)},h.ed=function(t){return og(this,t)},h.Kc=function(t){return Xa(this,t)},h.ae=function(t,r){mut(this,t,r)},h.fd=function(t,r){return tc(this,t,r)},h.gc=function(){return this.c.length},h.gd=function(t){_i(this,t)},h.Nc=function(){return X8(this.c)},h.Oc=function(t){return Yd(this,t)};var w3n=x(gn,"ArrayList",13);A(7,1,Wi,V),h.Nb=function(t){oo(this,t)},h.Ob=function(){return Ss(this)},h.Pb=function(){return q(this)},h.Qb=function(){k3(this)},h.a=0,h.b=-1,x(gn,"ArrayList/1",7),A(2091,b.Function,{},De),h.Ke=function(t,r){return yr(t,r)},A(124,56,i2t,Ds),h.Gc=function(t){return Oft(this,t)!=-1},h.Ic=function(t){var r,o,s,u;for(Mt(t),o=this.a,s=0,u=o.length;s0)throw K(new jt(nwe+t+" greater than "+this.e));return this.f.Re()?Pat(this.c,this.b,this.a,t,r):but(this.c,t,r)},h.yc=function(t,r){if(!LY(this.c,this.f,t,this.b,this.a,this.e,this.d))throw K(new jt(t+" outside the range "+this.b+" to "+this.e));return Zht(this.c,t,r)},h.Ac=function(t){var r;return r=t,LY(this.c,this.f,r,this.b,this.a,this.e,this.d)?jat(this.c,r):null},h.Je=function(t){return vP(this,t.jd())&&gpe(this.c,t)},h.gc=function(){var t,r,o;if(this.f.Re()?this.a?r=F_(this.c,this.b,!0):r=F_(this.c,this.b,!1):r=kpe(this.c),!(r&&vP(this,r.d)&&r))return 0;for(t=0,o=new vK(this.c,this.f,this.b,this.a,this.e,this.d);Sq(o.a);o.b=l(bhe(o.a),45))++t;return t},h.$c=function(t,r){if(this.f.Re()&&this.c.a.Le(t,this.b)<0)throw K(new jt(nwe+t+a2t+this.b));return this.f.Se()?Pat(this.c,t,r,this.e,this.d):gut(this.c,t,r)},h.a=!1,h.d=!1,x(gn,"TreeMap/SubMap",629),A(310,23,SX,n8),h.Re=function(){return!1},h.Se=function(){return!1};var qQ,VQ,WQ,KQ,f$=fn(gn,"TreeMap/SubMapType",310,bn,Dcn,Wnn);A(1124,310,SX,Ont),h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/1",1124,f$,null,null),A(1125,310,SX,Gnt),h.Re=function(){return!0},h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/2",1125,f$,null,null),A(1126,310,SX,Dnt),h.Re=function(){return!0},fn(gn,"TreeMap/SubMapType/3",1126,f$,null,null);var Z_t;A(143,tf,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},YG,yde,Zp,CA),h.Lc=function(){return new t8(this)},h.Ec=function(t){return zO(this,t)},h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a._b(t)},h.Jc=function(){return this.a.ec().Jc()},h.Kc=function(t){return fV(this,t)},h.gc=function(){return this.a.gc()};var A3n=x(gn,"TreeSet",143);A(1063,1,{},BKe),h.Te=function(t,r){return fnn(this.a,t,r)},x(TX,"BinaryOperator/lambda$0$Type",1063),A(1064,1,{},UKe),h.Te=function(t,r){return hnn(this.a,t,r)},x(TX,"BinaryOperator/lambda$1$Type",1064),A(944,1,{},tr),h.Kb=function(t){return t},x(TX,"Function/lambda$0$Type",944),A(390,1,Ln,IA),h.Mb=function(t){return!this.a.Mb(t)},x(TX,"Predicate/lambda$2$Type",390),A(574,1,{574:1});var Q_t=x(BC,"Handler",574);A(2086,1,hD),h.ve=function(){return"DUMMY"},h.Ib=function(){return this.ve()};var u2e;x(BC,"Level",2086),A(1689,2086,hD,Zn),h.ve=function(){return"INFO"},x(BC,"Level/LevelInfo",1689),A(1841,1,{},sZe);var YQ;x(BC,"LogManager",1841),A(1883,1,hD,Bit),h.b=null,x(BC,"LogRecord",1883),A(515,1,{515:1},BW),h.e=!1;var ekt=!1,tkt=!1,sf=!1,nkt=!1,rkt=!1;x(BC,"Logger",515),A(827,574,{574:1},Dr),x(BC,"SimpleConsoleLogHandler",827),A(132,23,{3:1,34:1,23:1,132:1},Tq);var c2e,nu,l2e,ru=fn(jo,"Collector/Characteristics",132,bn,mun,Knn),ikt;A(753,1,{},Kfe),x(jo,"CollectorImpl",753),A(1061,1,{},Bn),h.Te=function(t,r){return zpn(l(t,215),l(r,215))},x(jo,"Collectors/10methodref$merge$Type",1061),A(1062,1,{},Xs),h.Kb=function(t){return $ut(l(t,215))},x(jo,"Collectors/11methodref$toString$Type",1062),A(153,1,{},as),h.Wd=function(t,r){l(t,18).Ec(r)},x(jo,"Collectors/20methodref$add$Type",153),A(155,1,{},Jo),h.Ve=function(){return new Pe},x(jo,"Collectors/21methodref$ctor$Type",155),A(1060,1,{},xa),h.Wd=function(t,r){sp(l(t,215),l(r,475))},x(jo,"Collectors/9methodref$add$Type",1060),A(1059,1,{},eot),h.Ve=function(){return new zb(this.a,this.b,this.c)},x(jo,"Collectors/lambda$15$Type",1059),A(154,1,{},xi),h.Te=function(t,r){return GQt(l(t,18),l(r,18))},x(jo,"Collectors/lambda$45$Type",154),A(542,1,{}),h.Ye=function(){I3(this)},h.d=!1,x(jo,"TerminatableStream",542),A(775,542,rwe,Ode),h.Ye=function(){I3(this)},x(jo,"DoubleStreamImpl",775),A(1309,731,Tc,tot),h.Pe=function(t){return vbn(this,l(t,191))},h.a=null,x(jo,"DoubleStreamImpl/2",1309),A(1310,1,SD,HKe),h.Ne=function(t){Fen(this.a,t)},x(jo,"DoubleStreamImpl/2/lambda$0$Type",1310),A(1307,1,SD,zKe),h.Ne=function(t){jen(this.a,t)},x(jo,"DoubleStreamImpl/lambda$0$Type",1307),A(1308,1,SD,GKe),h.Ne=function(t){kgt(this.a,t)},x(jo,"DoubleStreamImpl/lambda$2$Type",1308),A(1363,730,Tc,Zct),h.Pe=function(t){return Acn(this,l(t,204))},h.a=0,h.b=0,h.c=0,x(jo,"IntStream/5",1363),A(800,542,rwe,Dde),h.Ye=function(){I3(this)},h.Ze=function(){return u1(this),this.a},x(jo,"IntStreamImpl",800),A(801,542,rwe,rle),h.Ye=function(){I3(this)},h.Ze=function(){return u1(this),ode(),X_t},x(jo,"IntStreamImpl/Empty",801),A(1668,1,gD,qKe),h.Bd=function(t){Sht(this.a,t)},x(jo,"IntStreamImpl/lambda$4$Type",1668);var _3n=Hr(jo,"Stream");A(28,542,{524:1,684:1,840:1},yt),h.Ye=function(){I3(this)};var ET;x(jo,"StreamImpl",28),A(1083,489,Tc,Nit),h.zd=function(t){for(;Edn(this);){if(this.a.zd(t))return!0;I3(this.b),this.b=null,this.a=null}return!1},x(jo,"StreamImpl/1",1083),A(1084,1,tn,VKe),h.Ad=function(t){ron(this.a,l(t,840))},x(jo,"StreamImpl/1/lambda$0$Type",1084),A(1085,1,Ln,WKe),h.Mb=function(t){return pi(this.a,t)},x(jo,"StreamImpl/1methodref$add$Type",1085),A(1086,489,Tc,dat),h.zd=function(t){var r;return this.a||(r=new Pe,this.b.a.Nb(new KKe(r)),St(),_i(r,this.c),this.a=new vt(r,16)),Jdt(this.a,t)},h.a=null,x(jo,"StreamImpl/5",1086),A(1087,1,tn,KKe),h.Ad=function(t){je(this.a,t)},x(jo,"StreamImpl/5/2methodref$add$Type",1087),A(732,489,Tc,Tpe),h.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new Get(this,t)););return this.b},h.b=!1,x(jo,"StreamImpl/FilterSpliterator",732),A(1077,1,tn,Get),h.Ad=function(t){Xon(this.a,this.b,t)},x(jo,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),A(1072,731,Tc,alt),h.Pe=function(t){return Inn(this,l(t,191))},x(jo,"StreamImpl/MapToDoubleSpliterator",1072),A(1076,1,tn,qet),h.Ad=function(t){sen(this.a,this.b,t)},x(jo,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),A(1071,730,Tc,ult),h.Pe=function(t){return Rnn(this,l(t,204))},x(jo,"StreamImpl/MapToIntSpliterator",1071),A(1075,1,tn,Vet),h.Ad=function(t){aen(this.a,this.b,t)},x(jo,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),A(729,489,Tc,lpe),h.zd=function(t){return kit(this,t)},x(jo,"StreamImpl/MapToObjSpliterator",729),A(1074,1,tn,Wet),h.Ad=function(t){uen(this.a,this.b,t)},x(jo,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),A(1073,489,Tc,jft),h.zd=function(t){for(;vq(this.b,0);){if(!this.a.zd(new Qr))return!1;this.b=El(this.b,1)}return this.a.zd(t)},h.b=0,x(jo,"StreamImpl/SkipSpliterator",1073),A(1078,1,tn,Qr),h.Ad=function(t){},x(jo,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),A(624,1,tn,Hi),h.Ad=function(t){IKe(this,t)},x(jo,"StreamImpl/ValueConsumer",624),A(1079,1,tn,ai),h.Ad=function(t){Tb()},x(jo,"StreamImpl/lambda$0$Type",1079),A(1080,1,tn,jc),h.Ad=function(t){Tb()},x(jo,"StreamImpl/lambda$1$Type",1080),A(1081,1,{},YKe),h.Te=function(t,r){return Qnn(this.a,t,r)},x(jo,"StreamImpl/lambda$4$Type",1081),A(1082,1,tn,Ket),h.Ad=function(t){Ann(this.b,this.a,t)},x(jo,"StreamImpl/lambda$5$Type",1082),A(1088,1,tn,JKe),h.Ad=function(t){Ehn(this.a,l(t,376))},x(jo,"TerminatableStream/lambda$0$Type",1088),A(2121,1,{}),A(1993,1,{},Ui),x("javaemul.internal","ConsoleLogger",1993);var k3n=0;A(2113,1,{}),A(1817,1,tn,gb),h.Ad=function(t){l(t,322)},x(fk,"BowyerWatsonTriangulation/lambda$0$Type",1817),A(1818,1,tn,XKe),h.Ad=function(t){bo(this.a,l(t,322).e)},x(fk,"BowyerWatsonTriangulation/lambda$1$Type",1818),A(1819,1,tn,Yg),h.Ad=function(t){l(t,180)},x(fk,"BowyerWatsonTriangulation/lambda$2$Type",1819),A(1814,1,Un,ZKe),h.Le=function(t,r){return hln(this.a,l(t,180),l(r,180))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(fk,"NaiveMinST/lambda$0$Type",1814),A(401,1,{},RA),x(fk,"NodeMicroLayout",401),A(180,1,{180:1},dS),h.Fb=function(t){var r;return se(t,180)?(r=l(t,180),ia(this.a,r.a)&&ia(this.b,r.b)||ia(this.a,r.b)&&ia(this.b,r.a)):!1},h.Hb=function(){return nE(this.a)+nE(this.b)};var x3n=x(fk,"TEdge",180);A(322,1,{322:1},m0e),h.Fb=function(t){var r;return se(t,322)?(r=l(t,322),ij(this,r.a)&&ij(this,r.b)&&ij(this,r.c)):!1},h.Hb=function(){return nE(this.a)+nE(this.b)+nE(this.c)},x(fk,"TTriangle",322),A(227,1,{227:1},R8),x(fk,"Tree",227),A(1195,1,{},aut),x(l2t,"Scanline",1195);var okt=Hr(l2t,d2t);A(1745,1,{},Xdt),x(Ah,"CGraph",1745),A(321,1,{321:1},Wat),h.b=0,h.c=0,h.d=0,h.g=0,h.i=0,h.k=Oi,x(Ah,"CGroup",321),A(821,1,{},Ece),x(Ah,"CGroup/CGroupBuilder",821),A(60,1,{60:1},cit),h.Ib=function(){var t;return this.j?In(this.j.Kb(this)):(ep(h$),h$.o+"@"+(t=o0(this)>>>0,t.toString(16)))},h.f=0,h.i=Oi;var h$=x(Ah,"CNode",60);A(820,1,{},Sce),x(Ah,"CNode/CNodeBuilder",820);var skt;A(1568,1,{},qh),h.df=function(t,r){return 0},h.ef=function(t,r){return 0},x(Ah,h2t,1568),A(1847,1,{},bb),h.af=function(t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G;for(v=Kr,s=new V(t.a.b);s.as.d.c||s.d.c==f.d.c&&s.d.b0?t+this.n.d+this.n.a:0},h.gf=function(){var t,r,o,s,u;if(u=0,this.e)this.b?u=this.b.a:this.a[1][1]&&(u=this.a[1][1].gf());else if(this.g)u=f1e(this,PY(this,null,!0));else for(r=(Sd(),Z(X(Py,1),Ce,240,0,[$s,ja,Bs])),o=0,s=r.length;o0?u+this.n.b+this.n.c:0},h.hf=function(){var t,r,o,s,u;if(this.g)for(t=PY(this,null,!1),o=(Sd(),Z(X(Py,1),Ce,240,0,[$s,ja,Bs])),s=0,u=o.length;s0&&(s[0]+=this.d,o-=s[0]),s[2]>0&&(s[2]+=this.d,o-=s[2]),this.c.a=b.Math.max(0,o),this.c.d=r.d+t.d+(this.c.a-o)/2,s[1]=b.Math.max(s[1],o),spe(this,ja,r.d+t.d+s[0]-(s[1]-o)/2,s)},h.b=null,h.d=0,h.e=!1,h.f=!1,h.g=!1;var XQ=0,p$=0;x(tm,"GridContainerCell",1516),A(464,23,{3:1,34:1,23:1,464:1},_q);var L1,Vf,nd,hkt=fn(tm,"HorizontalLabelAlignment",464,bn,yun,Jnn),pkt;A(319,219,{219:1,319:1},Bat,Zdt,Rat),h.ff=function(){return lot(this)},h.gf=function(){return _fe(this)},h.a=0,h.c=!1;var N3n=x(tm,"LabelCell",319);A(256,338,{219:1,338:1,256:1},cC),h.ff=function(){return wC(this)},h.gf=function(){return yC(this)},h.hf=function(){TJ(this)},h.jf=function(){AJ(this)},h.b=0,h.c=0,h.d=!1,x(tm,"StripContainerCell",256),A(1672,1,Ln,Xg),h.Mb=function(t){return nQt(l(t,219))},x(tm,"StripContainerCell/lambda$0$Type",1672),A(1673,1,{},kN),h.We=function(t){return l(t,219).gf()},x(tm,"StripContainerCell/lambda$1$Type",1673),A(1674,1,Ln,xN),h.Mb=function(t){return rQt(l(t,219))},x(tm,"StripContainerCell/lambda$2$Type",1674),A(1675,1,{},Wp),h.We=function(t){return l(t,219).ff()},x(tm,"StripContainerCell/lambda$3$Type",1675),A(465,23,{3:1,34:1,23:1,465:1},kq);var rd,M1,Nd,gkt=fn(tm,"VerticalLabelAlignment",465,bn,vun,Xnn),bkt;A(794,1,{},M0e),h.c=0,h.d=0,h.k=0,h.s=0,h.t=0,h.v=!1,h.w=0,h.D=!1,h.F=!1,x(oF,"NodeContext",794),A(1514,1,Un,HR),h.Le=function(t,r){return Tnt(l(t,64),l(r,64))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(oF,"NodeContext/0methodref$comparePortSides$Type",1514),A(1515,1,Un,kA),h.Le=function(t,r){return rwn(l(t,116),l(r,116))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(oF,"NodeContext/1methodref$comparePortContexts$Type",1515),A(169,23,{3:1,34:1,23:1,169:1},Kc);var mkt,wkt,ykt,vkt,Ekt,Skt,Tkt,Akt,_kt,kkt,xkt,Nkt,Ckt,Ikt,Rkt,Okt,Dkt,Lkt,Mkt,Pkt,jkt,ZQ,Fkt=fn(oF,"NodeLabelLocation",169,bn,hY,Znn),$kt;A(116,1,{116:1},a0t),h.a=!1,x(oF,"PortContext",116),A(1519,1,tn,zR),h.Ad=function(t){HQe(l(t,319))},x(AD,k2t,1519),A(1520,1,Ln,GR),h.Mb=function(t){return!!l(t,116).c},x(AD,x2t,1520),A(1521,1,tn,NN),h.Ad=function(t){HQe(l(t,116).c)},x(AD,"LabelPlacer/lambda$2$Type",1521);var f2e;A(1518,1,tn,CN),h.Ad=function(t){Gw(),MZt(l(t,116))},x(AD,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),A(795,1,tn,ife),h.Ad=function(t){YQt(this.b,this.c,this.a,l(t,190))},h.a=!1,h.c=!1,x(AD,"NodeLabelCellCreator/lambda$0$Type",795),A(1517,1,tn,tYe),h.Ad=function(t){$Zt(this.a,l(t,190))},x(AD,"PortContextCreator/lambda$0$Type",1517);var g$;A(1889,1,{},ho),x(pk,"GreedyRectangleStripOverlapRemover",1889),A(1890,1,Un,Fc),h.Le=function(t,r){return Ntn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(pk,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1890),A(1843,1,{},dZe),h.a=5,h.e=0,x(pk,"RectangleStripOverlapRemover",1843),A(1844,1,Un,Fl),h.Le=function(t,r){return Ctn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(pk,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1844),A(1846,1,Un,Tf),h.Le=function(t,r){return fsn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(pk,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1846),A(414,23,{3:1,34:1,23:1,414:1},r8);var XD,QQ,eee,ZD,Bkt=fn(pk,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,bn,Ocn,trn),Ukt;A(228,1,{228:1},zV),x(pk,"RectangleStripOverlapRemover/RectangleNode",228),A(1845,1,tn,nYe),h.Ad=function(t){Rbn(this.a,l(t,228))},x(pk,"RectangleStripOverlapRemover/lambda$1$Type",1845);var Hkt=!1,mI,h2e;A(1815,1,tn,J2),h.Ad=function(t){yvt(l(t,227))},x(hT,"DepthFirstCompaction/0methodref$compactTree$Type",1815),A(817,1,tn,oce),h.Ad=function(t){Bsn(this.a,l(t,227))},x(hT,"DepthFirstCompaction/lambda$1$Type",817),A(1816,1,tn,Fit),h.Ad=function(t){y1n(this.a,this.b,this.c,l(t,227))},x(hT,"DepthFirstCompaction/lambda$2$Type",1816);var wI,p2e;A(68,1,{68:1},cut),x(hT,"Node",68),A(1191,1,{},Hnt),x(hT,"ScanlineOverlapCheck",1191),A(1192,1,{690:1},kat),h._e=function(t){wnn(this,l(t,445))},x(hT,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),A(1193,1,Un,pl),h.Le=function(t,r){return rgn(l(t,68),l(r,68))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(hT,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1193),A(445,1,{445:1},mle),h.a=!1,x(hT,"ScanlineOverlapCheck/Timestamp",445),A(1194,1,Un,sh),h.Le=function(t,r){return Lmn(l(t,445),l(r,445))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(hT,"ScanlineOverlapCheck/lambda$0$Type",1194),A(549,1,{},qm),x("org.eclipse.elk.alg.common.utils","SVGImage",549),A(755,1,{},ah),x(NX,lwe,755),A(1176,1,Un,Wh),h.Le=function(t,r){return cvn(l(t,238),l(r,238))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(NX,I2t,1176),A(1177,1,tn,Yet),h.Ad=function(t){Sun(this.b,this.a,l(t,254))},x(NX,dwe,1177),A(207,1,nm),x(LE,"AbstractLayoutProvider",207),A(733,207,nm,Tce),h.kf=function(t,r){X0t(this,t,r)},x(NX,"ForceLayoutProvider",733);var C3n=Hr(_D,R2t);A(151,1,{3:1,105:1,151:1},X2),h.of=function(t,r){return x6(this,t,r)},h.lf=function(){return Iot(this)},h.mf=function(t){return j(this,t)},h.nf=function(t){return gr(this,t)},x(_D,"MapPropertyHolder",151),A(314,151,{3:1,314:1,105:1,151:1}),x(kD,"FParticle",314),A(254,314,{3:1,254:1,314:1,105:1,151:1},mst),h.Ib=function(){var t;return this.a?(t=As(this.a.a,this,0),t>=0?"b"+t+"["+PW(this.a)+"]":"b["+PW(this.a)+"]"):"b_"+o0(this)},x(kD,"FBendpoint",254),A(292,151,{3:1,292:1,105:1,151:1},lit),h.Ib=function(){return PW(this)},x(kD,"FEdge",292),A(238,151,{3:1,238:1,105:1,151:1},KP);var I3n=x(kD,"FGraph",238);A(448,314,{3:1,448:1,314:1,105:1,151:1},Ect),h.Ib=function(){return this.b==null||this.b.length==0?"l["+PW(this.a)+"]":"l_"+this.b},x(kD,"FLabel",448),A(156,314,{3:1,156:1,314:1,105:1,151:1},znt),h.Ib=function(){return Lhe(this)},h.a=0,x(kD,"FNode",156),A(2079,1,{}),h.qf=function(t){d0e(this,t)},h.rf=function(){R1t(this)},h.d=0,x(fwe,"AbstractForceModel",2079),A(638,2079,{638:1},Eht),h.pf=function(t,r){var o,s,u,f,p;return Tvt(this.f,t,r),u=Ri(So(r.d),t.d),p=b.Math.sqrt(u.a*u.a+u.b*u.b),s=b.Math.max(0,p-C3(t.e)/2-C3(r.e)/2),o=Xmt(this.e,t,r),o>0?f=-osn(s,this.c)*o:f=ztn(s,this.b)*l(j(t,(ed(),ST)),15).a,Qh(u,f/p),u},h.qf=function(t){d0e(this,t),this.a=l(j(t,(ed(),m$)),15).a,this.c=ue(ce(j(t,w$))),this.b=ue(ce(j(t,nee)))},h.sf=function(t){return t0&&(f-=ZZt(s,this.a)*o),Qh(u,f*this.b/p),u},h.qf=function(t){var r,o,s,u,f,p,m;for(d0e(this,t),this.b=ue(ce(j(t,(ed(),ree)))),this.c=this.b/l(j(t,m$),15).a,s=t.e.c.length,f=0,u=0,m=new V(t.e);m.a0},h.a=0,h.b=0,h.c=0,x(fwe,"FruchtermanReingoldModel",639);var GE=Hr(xs,"ILayoutMetaDataProvider");A(852,1,td,tWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,sF),""),"Force Model"),"Determines the model for force calculation."),g2e),(A1(),$r)),b2e),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,hwe),""),"Iterations"),"The number of iterations on the force model."),Re(300)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,pwe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Re(0)),wo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,CX),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Uf),Qi),fi),ct(xt)))),zr(t,CX,sF,Ykt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,IX),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),fi),ct(xt)))),zr(t,IX,sF,Vkt),hEt((new rWe,t))};var zkt,Gkt,g2e,qkt,Vkt,Wkt,Kkt,Ykt;x(zC,"ForceMetaDataProvider",852),A(429,23,{3:1,34:1,23:1,429:1},gle);var tee,b$,b2e=fn(zC,"ForceModelStrategy",429,bn,Van,rrn),Jkt;A(993,1,td,rWe),h.tf=function(t){hEt(t)};var Xkt,Zkt,m2e,m$,w2e,Qkt,ext,txt,nxt,y2e,rxt,v2e,E2e,ixt,ST,oxt,nee,S2e,sxt,axt,w$,ree,uxt,cxt,lxt,T2e,dxt;x(zC,"ForceOptions",993),A(994,1,{},Vm),h.uf=function(){var t;return t=new Tce,t},h.vf=function(t){},x(zC,"ForceOptions/ForceFactory",994);var QD,yI,TT,y$;A(853,1,td,iWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,bwe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Lt(),!1)),(A1(),Ai)),Yr),ct((Jd(),ri))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,mwe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),fi),Ar(xt,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,wwe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),A2e),$r),R2e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,ywe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Uf),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vwe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Re(sr)),wo),Ti),ct(xt)))),Bvt((new oWe,t))};var fxt,hxt,A2e,pxt,gxt,bxt;x(zC,"StressMetaDataProvider",853),A(997,1,td,oWe),h.tf=function(t){Bvt(t)};var v$,_2e,k2e,x2e,N2e,C2e,mxt,wxt,yxt,vxt,I2e,Ext;x(zC,"StressOptions",997),A(998,1,{},e9),h.uf=function(){var t;return t=new dit,t},h.vf=function(t){},x(zC,"StressOptions/StressFactory",998),A(1091,207,nm,dit),h.kf=function(t,r){var o,s,u,f,p;for(r.Tg(P2t,1),Ke(We(ye(t,(H6(),N2e))))?Ke(We(ye(t,I2e)))||D3((o=new RA((t1(),new Kp(t))),o)):X0t(new Tce,t,r.dh(1)),u=Wht(t),s=Kyt(this.a,u),p=s.Jc();p.Ob();)f=l(p.Pb(),238),!(f.e.c.length<=1)&&(j_n(this.b,f),oEn(this.b),Oa(f.d,new Zz));u=lEt(s),yEt(u),r.Ug()},x(cF,"StressLayoutProvider",1091),A(1092,1,tn,Zz),h.Ad=function(t){v0e(l(t,448))},x(cF,"StressLayoutProvider/lambda$0$Type",1092),A(995,1,{},iZe),h.c=0,h.e=0,h.g=0,x(cF,"StressMajorization",995),A(385,23,{3:1,34:1,23:1,385:1},xq);var iee,oee,see,R2e=fn(cF,"StressMajorization/Dimension",385,bn,Tun,irn),Sxt;A(996,1,Un,rYe),h.Le=function(t,r){return Lnn(this.a,l(t,156),l(r,156))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(cF,"StressMajorization/lambda$0$Type",996),A(1173,1,{},Tut),x(bT,"ElkLayered",1173),A(1174,1,tn,iYe),h.Ad=function(t){Vyn(this.a,l(t,37))},x(bT,"ElkLayered/lambda$0$Type",1174),A(1175,1,tn,oYe),h.Ad=function(t){Dnn(this.a,l(t,37))},x(bT,"ElkLayered/lambda$1$Type",1175),A(1258,1,{},qnt);var Txt,Axt,_xt;x(bT,"GraphConfigurator",1258),A(764,1,tn,sce),h.Ad=function(t){Jbt(this.a,l(t,9))},x(bT,"GraphConfigurator/lambda$0$Type",764),A(765,1,{},t9),h.Kb=function(t){return rbe(),new yt(null,new vt(l(t,26).a,16))},x(bT,"GraphConfigurator/lambda$1$Type",765),A(766,1,tn,ace),h.Ad=function(t){Jbt(this.a,l(t,9))},x(bT,"GraphConfigurator/lambda$2$Type",766),A(1090,207,nm,aZe),h.kf=function(t,r){var o;o=g_n(new hZe,t),be(ye(t,(Be(),Vy)))===be((fp(),Cg))?lgn(this.a,o,r):tEn(this.a,o,r),r.Zg()||rEt(new nWe,o)},x(bT,"LayeredLayoutProvider",1090),A(364,23,{3:1,34:1,23:1,364:1},fO);var id,xh,la,da,$o,O2e=fn(bT,"LayeredPhases",364,bn,Cln,orn),kxt;A(1700,1,{},Pft),h.i=0;var xxt;x(DD,"ComponentsToCGraphTransformer",1700);var Nxt;A(1701,1,{},Qz),h.wf=function(t,r){return b.Math.min(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},h.xf=function(t,r){return b.Math.min(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},x(DD,"ComponentsToCGraphTransformer/1",1701),A(84,1,{84:1}),h.i=0,h.k=!0,h.o=Oi;var aee=x(qC,"CNode",84);A(463,84,{463:1,84:1},vde,O1e),h.Ib=function(){return""},x(DD,"ComponentsToCGraphTransformer/CRectNode",463),A(1669,1,{},eG);var uee,cee;x(DD,"OneDimensionalComponentsCompaction",1669),A(1670,1,{},n9),h.Kb=function(t){return fun(l(t,49))},h.Fb=function(t){return this===t},x(DD,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),A(1671,1,{},r9),h.Kb=function(t){return ggn(l(t,49))},h.Fb=function(t){return this===t},x(DD,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),A(1703,1,{},Tst),x(qC,"CGraph",1703),A(197,1,{197:1},lY),h.b=0,h.c=0,h.e=0,h.g=!0,h.i=Oi,x(qC,"CGroup",197),A(1702,1,{},o9),h.wf=function(t,r){return b.Math.max(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},h.xf=function(t,r){return b.Math.max(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},x(qC,h2t,1702),A(1704,1,{},Qmt),h.d=!1;var Cxt,lee=x(qC,b2t,1704);A(1705,1,{},sG),h.Kb=function(t){return ile(),Lt(),l(l(t,49).a,84).d.e!=0},h.Fb=function(t){return this===t},x(qC,m2t,1705),A(825,1,{},Rfe),h.a=!1,h.b=!1,h.c=!1,h.d=!1,x(qC,w2t,825),A(1885,1,{},Uot),x(lF,y2t,1885);var eL=Hr(rm,d2t);A(1886,1,{378:1},_at),h._e=function(t){lSn(this,l(t,468))},x(lF,v2t,1886),A(1887,1,Un,aG),h.Le=function(t,r){return tan(l(t,84),l(r,84))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(lF,E2t,1887),A(468,1,{468:1},wle),h.a=!1,x(lF,S2t,468),A(1888,1,Un,uG),h.Le=function(t,r){return Mmn(l(t,468),l(r,468))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(lF,T2t,1888),A(148,1,{148:1},GA,Efe),h.Fb=function(t){var r;return t==null||R3n!=nc(t)?!1:(r=l(t,148),ia(this.c,r.c)&&ia(this.d,r.d))},h.Hb=function(){return Pj(Z(X(Ci,1),Rt,1,5,[this.c,this.d]))},h.Ib=function(){return"("+this.c+Ma+this.d+(this.a?"cx":"")+this.b+")"},h.a=!0,h.c=0,h.d=0;var R3n=x(rm,"Point",148);A(413,23,{3:1,34:1,23:1,413:1},i8);var J0,jy,qE,Fy,Ixt=fn(rm,"Point/Quadrant",413,bn,Rcn,nrn),Rxt;A(1691,1,{},uZe),h.b=null,h.c=null,h.d=null,h.e=null,h.f=null;var Oxt,Dxt,Lxt,Mxt,Pxt;x(rm,"RectilinearConvexHull",1691),A(576,1,{378:1},r7),h._e=function(t){kdn(this,l(t,148))},h.b=0;var D2e;x(rm,"RectilinearConvexHull/MaximalElementsEventHandler",576),A(1693,1,Un,tG),h.Le=function(t,r){return nan(ce(t),ce(r))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1693),A(1692,1,{378:1},Gdt),h._e=function(t){k2n(this,l(t,148))},h.a=0,h.b=null,h.c=null,h.d=null,h.e=null,x(rm,"RectilinearConvexHull/RectangleEventHandler",1692),A(1694,1,Un,nG),h.Le=function(t,r){return icn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/lambda$0$Type",1694),A(1695,1,Un,i9),h.Le=function(t,r){return ocn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/lambda$1$Type",1695),A(1696,1,Un,rG),h.Le=function(t,r){return acn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/lambda$2$Type",1696),A(1697,1,Un,iG),h.Le=function(t,r){return scn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/lambda$3$Type",1697),A(1698,1,Un,oG),h.Le=function(t,r){return wwn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rm,"RectilinearConvexHull/lambda$4$Type",1698),A(1699,1,{},uut),x(rm,"Scanline",1699),A(2083,1,{}),x(rf,"AbstractGraphPlacer",2083),A(337,1,{337:1},Mrt),h.Df=function(t){return this.Ef(t)?(wt(this.b,l(j(t,(Ie(),Tp)),24),t),!0):!1},h.Ef=function(t){var r,o,s,u;for(r=l(j(t,(Ie(),Tp)),24),u=l(wr(Tr,r),24),s=u.Jc();s.Ob();)if(o=l(s.Pb(),24),!l(wr(this.b,o),16).dc())return!1;return!0};var Tr;x(rf,"ComponentGroup",337),A(773,2083,{},Ace),h.Ff=function(t){var r,o;for(o=new V(this.a);o.ao&&(T=0,N+=m+s,m=0),y=f.c,Q_(f,T+y.a,N+y.b),wd(y),u=b.Math.max(u,T+v.a),m=b.Math.max(m,v.b),T+=v.a+s;r.f.a=u,r.f.b=N+m},h.Hf=function(t,r){var o,s,u,f,p;if(be(j(r,(Be(),LI)))===be((WS(),vI))){for(s=t.Jc();s.Ob();){for(o=l(s.Pb(),37),p=0,f=new V(o.a);f.ao&&!l(j(f,(Ie(),Tp)),24).Gc((Ue(),Vt))||y&&l(j(y,(Ie(),Tp)),24).Gc((Ue(),Zt))||l(j(f,(Ie(),Tp)),24).Gc((Ue(),Wt)))&&(I=N,L+=m+s,m=0),v=f.c,l(j(f,(Ie(),Tp)),24).Gc((Ue(),Vt))&&(I=u+s),Q_(f,I+v.a,L+v.b),u=b.Math.max(u,I+T.a),l(j(f,Tp),24).Gc(dn)&&(N=b.Math.max(N,I+T.a+s)),wd(v),m=b.Math.max(m,T.b),I+=T.a+s,y=f;r.f.a=u,r.f.b=L+m},h.Hf=function(t,r){},x(rf,"ModelOrderRowGraphPlacer",1289),A(1287,1,Un,fG),h.Le=function(t,r){return yhn(l(t,37),l(r,37))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(rf,"SimpleRowGraphPlacer/1",1287);var Fxt;A(1257,1,Bf,s9),h.Lb=function(t){var r;return r=l(j(l(t,253).b,(Be(),rs)),79),!!r&&r.b!=0},h.Fb=function(t){return this===t},h.Mb=function(t){var r;return r=l(j(l(t,253).b,(Be(),rs)),79),!!r&&r.b!=0},x(dF,"CompoundGraphPostprocessor/1",1257),A(1256,1,_r,pZe),h.If=function(t,r){h1t(this,l(t,37),r)},x(dF,"CompoundGraphPreprocessor",1256),A(447,1,{447:1},ngt),h.c=!1,x(dF,"CompoundGraphPreprocessor/ExternalPort",447),A(253,1,{253:1},V8),h.Ib=function(){return bV(this.c)+":"+Wmt(this.b)},x(dF,"CrossHierarchyEdge",253),A(771,1,Un,uce),h.Le=function(t,r){return smn(this,l(t,253),l(r,253))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(dF,"CrossHierarchyEdgeComparator",771),A(248,151,{3:1,248:1,105:1,151:1}),h.p=0,x(ca,"LGraphElement",248),A(17,248,{3:1,17:1,248:1,105:1,151:1},h0),h.Ib=function(){return Wmt(this)};var Hk=x(ca,"LEdge",17);A(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},qpe),h.Ic=function(t){co(this,t)},h.Jc=function(){return new V(this.b)},h.Ib=function(){return this.b.c.length==0?"G-unlayered"+Qd(this.a):this.a.c.length==0?"G-layered"+Qd(this.b):"G[layerless"+Qd(this.a)+", layers"+Qd(this.b)+"]"};var $xt=x(ca,"LGraph",37),Bxt;A(662,1,{}),h.Jf=function(){return this.e.n},h.mf=function(t){return j(this.e,t)},h.Kf=function(){return this.e.o},h.Lf=function(){return this.e.p},h.nf=function(t){return gr(this.e,t)},h.Mf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},h.Nf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},h.Of=function(t){this.e.p=t},x(ca,"LGraphAdapters/AbstractLShapeAdapter",662),A(467,1,{845:1},ON),h.Pf=function(){var t,r;if(!this.b)for(this.b=ch(this.a.b.c.length),r=new V(this.a.b);r.a0&&Npt((Yt(r-1,t.length),t.charCodeAt(r-1)),H2t);)--r;if(f> ",t),f7(o)),zn(ga((t.a+="[",t),o.i),"]")),t.a},h.c=!0,h.d=!1;var F2e,$2e,B2e,U2e,H2e,z2e,Hxt=x(ca,"LPort",12);A(404,1,Eh,OA),h.Ic=function(t){co(this,t)},h.Jc=function(){var t;return t=new V(this.a.e),new sYe(t)},x(ca,"LPort/1",404),A(1285,1,Wi,sYe),h.Nb=function(t){oo(this,t)},h.Pb=function(){return l(q(this.a),17).c},h.Ob=function(){return Ss(this.a)},h.Qb=function(){k3(this.a)},x(ca,"LPort/1/1",1285),A(366,1,Eh,Q2),h.Ic=function(t){co(this,t)},h.Jc=function(){var t;return t=new V(this.a.g),new cce(t)},x(ca,"LPort/2",366),A(770,1,Wi,cce),h.Nb=function(t){oo(this,t)},h.Pb=function(){return l(q(this.a),17).d},h.Ob=function(){return Ss(this.a)},h.Qb=function(){k3(this.a)},x(ca,"LPort/2/1",770),A(1278,1,Eh,Xet),h.Ic=function(t){co(this,t)},h.Jc=function(){return new Vd(this)},x(ca,"LPort/CombineIter",1278),A(210,1,Wi,Vd),h.Nb=function(t){oo(this,t)},h.Qb=function(){kQe()},h.Ob=function(){return m3(this)},h.Pb=function(){return Ss(this.a)?q(this.a):q(this.b)},x(ca,"LPort/CombineIter/1",210),A(1279,1,Bf,pG),h.Lb=function(t){return nst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).g.c.length!=0},x(ca,"LPort/lambda$0$Type",1279),A(1280,1,Bf,gG),h.Lb=function(t){return rst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).e.c.length!=0},x(ca,"LPort/lambda$1$Type",1280),A(1281,1,Bf,bG),h.Lb=function(t){return bu(),l(t,12).j==(Ue(),Vt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(Ue(),Vt)},x(ca,"LPort/lambda$2$Type",1281),A(1282,1,Bf,mG),h.Lb=function(t){return bu(),l(t,12).j==(Ue(),Zt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(Ue(),Zt)},x(ca,"LPort/lambda$3$Type",1282),A(1283,1,Bf,wG),h.Lb=function(t){return bu(),l(t,12).j==(Ue(),dn)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(Ue(),dn)},x(ca,"LPort/lambda$4$Type",1283),A(1284,1,Bf,IN),h.Lb=function(t){return bu(),l(t,12).j==(Ue(),Wt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(Ue(),Wt)},x(ca,"LPort/lambda$5$Type",1284),A(26,248,{3:1,22:1,248:1,26:1,105:1,151:1},ra),h.Ic=function(t){co(this,t)},h.Jc=function(){return new V(this.a)},h.Ib=function(){return"L_"+As(this.b.b,this,0)+Qd(this.a)},x(ca,"Layer",26),A(1676,1,{},Klt),h.b=0,x(ca,"Tarjan",1676),A(1294,1,{},hZe),x(vg,V2t,1294),A(1298,1,{},yG),h.Kb=function(t){return Vo(l(t,83))},x(vg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),A(1301,1,{},c9),h.Kb=function(t){return Vo(l(t,83))},x(vg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),A(1295,1,tn,aYe),h.Ad=function(t){l0t(this.a,l(t,127))},x(vg,dwe,1295),A(1296,1,tn,uYe),h.Ad=function(t){l0t(this.a,l(t,127))},x(vg,W2t,1296),A(1297,1,{},vG),h.Kb=function(t){return new yt(null,new vt(s_(l(t,74)),16))},x(vg,K2t,1297),A(1299,1,Ln,cYe),h.Mb=function(t){return Men(this.a,l(t,19))},x(vg,Y2t,1299),A(1300,1,{},EG),h.Kb=function(t){return new yt(null,new vt(Gsn(l(t,74)),16))},x(vg,"ElkGraphImporter/lambda$5$Type",1300),A(1302,1,Ln,lYe),h.Mb=function(t){return Pen(this.a,l(t,19))},x(vg,"ElkGraphImporter/lambda$7$Type",1302),A(1303,1,Ln,VR),h.Mb=function(t){return fan(l(t,74))},x(vg,"ElkGraphImporter/lambda$8$Type",1303),A(1273,1,{},nWe);var zxt;x(vg,"ElkGraphLayoutTransferrer",1273),A(1274,1,Ln,dYe),h.Mb=function(t){return jnn(this.a,l(t,17))},x(vg,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),A(1275,1,tn,fYe),h.Ad=function(t){lO(),je(this.a,l(t,17))},x(vg,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),A(1276,1,Ln,hYe),h.Mb=function(t){return mnn(this.a,l(t,17))},x(vg,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),A(1277,1,tn,pYe),h.Ad=function(t){lO(),je(this.a,l(t,17))},x(vg,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),A(813,1,{},Vde),x(Jt,"BiLinkedHashMultiMap",813),A(1528,1,_r,SG),h.If=function(t,r){Bfn(l(t,37),r)},x(Jt,"CommentNodeMarginCalculator",1528),A(1529,1,{},TG),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"CommentNodeMarginCalculator/lambda$0$Type",1529),A(1530,1,tn,l9),h.Ad=function(t){f_n(l(t,9))},x(Jt,"CommentNodeMarginCalculator/lambda$1$Type",1530),A(1531,1,_r,H7e),h.If=function(t,r){mSn(l(t,37),r)},x(Jt,"CommentPostprocessor",1531),A(1532,1,_r,z7e),h.If=function(t,r){Bxn(l(t,37),r)},x(Jt,"CommentPreprocessor",1532),A(1533,1,_r,G7e),h.If=function(t,r){I2n(l(t,37),r)},x(Jt,"ConstraintsPostprocessor",1533),A(1534,1,_r,q7e),h.If=function(t,r){Shn(l(t,37),r)},x(Jt,"EdgeAndLayerConstraintEdgeReverser",1534),A(1535,1,_r,V7e),h.If=function(t,r){Bgn(l(t,37),r)},x(Jt,"EndLabelPostprocessor",1535),A(1536,1,{},W7e),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"EndLabelPostprocessor/lambda$0$Type",1536),A(1537,1,Ln,K7e),h.Mb=function(t){return Aln(l(t,9))},x(Jt,"EndLabelPostprocessor/lambda$1$Type",1537),A(1538,1,tn,Y7e),h.Ad=function(t){Pmn(l(t,9))},x(Jt,"EndLabelPostprocessor/lambda$2$Type",1538),A(1539,1,_r,J7e),h.If=function(t,r){yyn(l(t,37),r)},x(Jt,"EndLabelPreprocessor",1539),A(1540,1,{},X7e),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"EndLabelPreprocessor/lambda$0$Type",1540),A(1541,1,tn,Uit),h.Ad=function(t){JQt(this.a,this.b,this.c,l(t,9))},h.a=0,h.b=0,h.c=!1,x(Jt,"EndLabelPreprocessor/lambda$1$Type",1541),A(1542,1,Ln,Z7e),h.Mb=function(t){return be(j(l(t,70),(Be(),Kf)))===be((Kd(),yx))},x(Jt,"EndLabelPreprocessor/lambda$2$Type",1542),A(1543,1,tn,gYe),h.Ad=function(t){Gn(this.a,l(t,70))},x(Jt,"EndLabelPreprocessor/lambda$3$Type",1543),A(1544,1,Ln,Q7e),h.Mb=function(t){return be(j(l(t,70),(Be(),Kf)))===be((Kd(),dv))},x(Jt,"EndLabelPreprocessor/lambda$4$Type",1544),A(1545,1,tn,bYe),h.Ad=function(t){Gn(this.a,l(t,70))},x(Jt,"EndLabelPreprocessor/lambda$5$Type",1545),A(1593,1,_r,aWe),h.If=function(t,r){Ypn(l(t,37),r)};var Gxt;x(Jt,"EndLabelSorter",1593),A(1594,1,Un,eFe),h.Le=function(t,r){return x1n(l(t,458),l(r,458))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"EndLabelSorter/1",1594),A(458,1,{458:1},bat),x(Jt,"EndLabelSorter/LabelGroup",458),A(1595,1,{},tFe),h.Kb=function(t){return cO(),new yt(null,new vt(l(t,26).a,16))},x(Jt,"EndLabelSorter/lambda$0$Type",1595),A(1596,1,Ln,nFe),h.Mb=function(t){return cO(),l(t,9).k==(Ht(),Xr)},x(Jt,"EndLabelSorter/lambda$1$Type",1596),A(1597,1,tn,rFe),h.Ad=function(t){Own(l(t,9))},x(Jt,"EndLabelSorter/lambda$2$Type",1597),A(1598,1,Ln,iFe),h.Mb=function(t){return cO(),be(j(l(t,70),(Be(),Kf)))===be((Kd(),dv))},x(Jt,"EndLabelSorter/lambda$3$Type",1598),A(1599,1,Ln,oFe),h.Mb=function(t){return cO(),be(j(l(t,70),(Be(),Kf)))===be((Kd(),yx))},x(Jt,"EndLabelSorter/lambda$4$Type",1599),A(1546,1,_r,sFe),h.If=function(t,r){C_n(this,l(t,37))},h.b=0,h.c=0,x(Jt,"FinalSplineBendpointsCalculator",1546),A(1547,1,{},aFe),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),A(1548,1,{},uFe),h.Kb=function(t){return new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(Jt,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),A(1549,1,Ln,cFe),h.Mb=function(t){return!lo(l(t,17))},x(Jt,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),A(1550,1,Ln,lFe),h.Mb=function(t){return gr(l(t,17),(Ie(),fm))},x(Jt,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),A(1551,1,tn,mYe),h.Ad=function(t){MTn(this.a,l(t,134))},x(Jt,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),A(1552,1,tn,dFe),h.Ad=function(t){mC(l(t,17).a)},x(Jt,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),A(797,1,_r,lce),h.If=function(t,r){Skn(this,l(t,37),r)},x(Jt,"GraphTransformer",797),A(506,23,{3:1,34:1,23:1,506:1},yle);var pee,nL,qxt=fn(Jt,"GraphTransformer/Mode",506,bn,Wan,arn),Vxt;A(1553,1,_r,fFe),h.If=function(t,r){zEn(l(t,37),r)},x(Jt,"HierarchicalNodeResizingProcessor",1553),A(1554,1,_r,hFe),h.If=function(t,r){kfn(l(t,37),r)},x(Jt,"HierarchicalPortConstraintProcessor",1554),A(1555,1,Un,pFe),h.Le=function(t,r){return z1n(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"HierarchicalPortConstraintProcessor/NodeComparator",1555),A(1556,1,_r,gFe),h.If=function(t,r){NAn(l(t,37),r)},x(Jt,"HierarchicalPortDummySizeProcessor",1556),A(1557,1,_r,bFe),h.If=function(t,r){USn(this,l(t,37),r)},h.a=0,x(Jt,"HierarchicalPortOrthogonalEdgeRouter",1557),A(1558,1,Un,mFe),h.Le=function(t,r){return xtn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"HierarchicalPortOrthogonalEdgeRouter/1",1558),A(1559,1,Un,wFe),h.Le=function(t,r){return vdn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"HierarchicalPortOrthogonalEdgeRouter/2",1559),A(1560,1,_r,yFe),h.If=function(t,r){gwn(l(t,37),r)},x(Jt,"HierarchicalPortPositionProcessor",1560),A(1561,1,_r,sWe),h.If=function(t,r){TNn(this,l(t,37))},h.a=0,h.c=0;var E$,S$;x(Jt,"HighDegreeNodeLayeringProcessor",1561),A(573,1,{573:1},vFe),h.b=-1,h.d=-1,x(Jt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),A(1562,1,{},EFe),h.Kb=function(t){return jO(),si(l(t,9))},h.Fb=function(t){return this===t},x(Jt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),A(1563,1,{},SFe),h.Kb=function(t){return jO(),Rr(l(t,9))},h.Fb=function(t){return this===t},x(Jt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),A(1569,1,_r,TFe),h.If=function(t,r){yAn(this,l(t,37),r)},x(Jt,"HyperedgeDummyMerger",1569),A(798,1,{},cfe),h.a=!1,h.b=!1,h.c=!1,x(Jt,"HyperedgeDummyMerger/MergeState",798),A(1570,1,{},AFe),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"HyperedgeDummyMerger/lambda$0$Type",1570),A(1571,1,{},_Fe),h.Kb=function(t){return new yt(null,new vt(l(t,9).j,16))},x(Jt,"HyperedgeDummyMerger/lambda$1$Type",1571),A(1572,1,tn,kFe),h.Ad=function(t){l(t,12).p=-1},x(Jt,"HyperedgeDummyMerger/lambda$2$Type",1572),A(1573,1,_r,xFe),h.If=function(t,r){wAn(l(t,37),r)},x(Jt,"HypernodesProcessor",1573),A(1574,1,_r,NFe),h.If=function(t,r){xAn(l(t,37),r)},x(Jt,"InLayerConstraintProcessor",1574),A(1575,1,_r,CFe),h.If=function(t,r){Xfn(l(t,37),r)},x(Jt,"InnermostNodeMarginCalculator",1575),A(1576,1,_r,IFe),h.If=function(t,r){Pxn(this,l(t,37))},h.a=Oi,h.b=Oi,h.c=Kr,h.d=Kr;var O3n=x(Jt,"InteractiveExternalPortPositioner",1576);A(1577,1,{},RFe),h.Kb=function(t){return l(t,17).d.i},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$0$Type",1577),A(1578,1,{},wYe),h.Kb=function(t){return Itn(this.a,ce(t))},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$1$Type",1578),A(1579,1,{},OFe),h.Kb=function(t){return l(t,17).c.i},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$2$Type",1579),A(1580,1,{},yYe),h.Kb=function(t){return Rtn(this.a,ce(t))},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$3$Type",1580),A(1581,1,{},vYe),h.Kb=function(t){return knn(this.a,ce(t))},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$4$Type",1581),A(1582,1,{},EYe),h.Kb=function(t){return xnn(this.a,ce(t))},h.Fb=function(t){return this===t},x(Jt,"InteractiveExternalPortPositioner/lambda$5$Type",1582),A(80,23,{3:1,34:1,23:1,80:1,177:1},bi),h.bg=function(){switch(this.g){case 15:return new QBe;case 22:return new eUe;case 48:return new nUe;case 29:case 36:return new zFe;case 33:return new SG;case 43:return new H7e;case 1:return new z7e;case 42:return new G7e;case 57:return new lce((v_(),nL));case 0:return new lce((v_(),pee));case 2:return new q7e;case 55:return new V7e;case 34:return new J7e;case 52:return new sFe;case 56:return new fFe;case 13:return new hFe;case 39:return new gFe;case 45:return new bFe;case 41:return new yFe;case 9:return new sWe;case 50:return new Art;case 38:return new TFe;case 44:return new xFe;case 28:return new NFe;case 31:return new CFe;case 3:return new IFe;case 18:return new DFe;case 30:return new LFe;case 5:return new uWe;case 51:return new FFe;case 35:return new cWe;case 37:return new GFe;case 53:return new aWe;case 11:return new qFe;case 7:return new lWe;case 40:return new VFe;case 46:return new WFe;case 16:return new KFe;case 10:return new dtt;case 49:return new ZFe;case 21:return new QFe;case 23:return new L9((Vb(),KI));case 8:return new t$e;case 12:return new r$e;case 4:return new i$e;case 19:return new dWe;case 17:return new p$e;case 54:return new g$e;case 6:return new x$e;case 25:return new mZe;case 26:return new ZBe;case 47:return new v$e;case 32:return new git;case 14:return new M$e;case 27:return new oUe;case 20:return new B$e;case 24:return new L9((Vb(),NB));default:throw K(new jt(LX+(this.f!=null?this.f:""+this.g)))}};var G2e,q2e,V2e,W2e,K2e,Y2e,J2e,X2e,Z2e,Q2e,eSe,VE,T$,A$,tSe,nSe,rSe,iSe,oSe,sSe,aSe,SI,uSe,cSe,lSe,dSe,fSe,gee,_$,k$,hSe,x$,N$,C$,zk,$y,By,pSe,I$,R$,gSe,O$,D$,bSe,mSe,wSe,ySe,L$,bee,AT,M$,P$,j$,F$,vSe,ESe,SSe,TSe,D3n=fn(Jt,MX,80,bn,lwt,urn),Wxt;A(1583,1,_r,DFe),h.If=function(t,r){Dxn(l(t,37),r)},x(Jt,"InvertedPortProcessor",1583),A(1584,1,_r,LFe),h.If=function(t,r){CTn(l(t,37),r)},x(Jt,"LabelAndNodeSizeProcessor",1584),A(1585,1,Ln,MFe),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},x(Jt,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),A(1586,1,Ln,PFe),h.Mb=function(t){return l(t,9).k==(Ht(),mi)},x(Jt,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),A(1587,1,tn,Wit),h.Ad=function(t){XQt(this.b,this.a,this.c,l(t,9))},h.a=!1,h.c=!1,x(Jt,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),A(1588,1,_r,uWe),h.If=function(t,r){dxn(l(t,37),r)};var Kxt;x(Jt,"LabelDummyInserter",1588),A(1589,1,Bf,jFe),h.Lb=function(t){return be(j(l(t,70),(Be(),Kf)))===be((Kd(),wx))},h.Fb=function(t){return this===t},h.Mb=function(t){return be(j(l(t,70),(Be(),Kf)))===be((Kd(),wx))},x(Jt,"LabelDummyInserter/1",1589),A(1590,1,_r,FFe),h.If=function(t,r){Xkn(l(t,37),r)},x(Jt,"LabelDummyRemover",1590),A(1591,1,Ln,$Fe),h.Mb=function(t){return Ke(We(j(l(t,70),(Be(),i2))))},x(Jt,"LabelDummyRemover/lambda$0$Type",1591),A(1344,1,_r,cWe),h.If=function(t,r){qkn(this,l(t,37),r)},h.a=null;var mee;x(Jt,"LabelDummySwitcher",1344),A(295,1,{295:1},syt),h.c=0,h.d=null,h.f=0,x(Jt,"LabelDummySwitcher/LabelDummyInfo",295),A(1345,1,{},BFe),h.Kb=function(t){return US(),new yt(null,new vt(l(t,26).a,16))},x(Jt,"LabelDummySwitcher/lambda$0$Type",1345),A(1346,1,Ln,UFe),h.Mb=function(t){return US(),l(t,9).k==(Ht(),ta)},x(Jt,"LabelDummySwitcher/lambda$1$Type",1346),A(1347,1,{},SYe),h.Kb=function(t){return bnn(this.a,l(t,9))},x(Jt,"LabelDummySwitcher/lambda$2$Type",1347),A(1348,1,tn,TYe),h.Ad=function(t){Tsn(this.a,l(t,295))},x(Jt,"LabelDummySwitcher/lambda$3$Type",1348),A(1349,1,Un,HFe),h.Le=function(t,r){return Qon(l(t,295),l(r,295))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"LabelDummySwitcher/lambda$4$Type",1349),A(796,1,_r,zFe),h.If=function(t,r){Zln(l(t,37),r)},x(Jt,"LabelManagementProcessor",796),A(1592,1,_r,GFe),h.If=function(t,r){sSn(l(t,37),r)},x(Jt,"LabelSideSelector",1592),A(1600,1,_r,qFe),h.If=function(t,r){WAn(l(t,37),r)},x(Jt,"LayerConstraintPostprocessor",1600),A(1601,1,_r,lWe),h.If=function(t,r){Bvn(l(t,37),r)};var ASe;x(Jt,"LayerConstraintPreprocessor",1601),A(368,23,{3:1,34:1,23:1,368:1},s8);var rL,$$,B$,wee,Yxt=fn(Jt,"LayerConstraintPreprocessor/HiddenNodeConnections",368,bn,Mcn,crn),Jxt;A(1602,1,_r,VFe),h.If=function(t,r){lkn(l(t,37),r)},x(Jt,"LayerSizeAndGraphHeightCalculator",1602),A(1603,1,_r,WFe),h.If=function(t,r){GEn(l(t,37),r)},x(Jt,"LongEdgeJoiner",1603),A(1604,1,_r,KFe),h.If=function(t,r){U_n(l(t,37),r)},x(Jt,"LongEdgeSplitter",1604),A(1605,1,_r,dtt),h.If=function(t,r){_xn(this,l(t,37),r)},h.e=0,h.f=0,h.j=0,h.k=0,h.n=0,h.o=0;var Xxt,Zxt;x(Jt,"NodePromotion",1605),A(1606,1,Un,YFe),h.Le=function(t,r){return opn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"NodePromotion/1",1606),A(1607,1,Un,JFe),h.Le=function(t,r){return ipn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"NodePromotion/2",1607),A(1608,1,{},XFe),h.Kb=function(t){return l(t,49),W8(),Lt(),!0},h.Fb=function(t){return this===t},x(Jt,"NodePromotion/lambda$0$Type",1608),A(1609,1,{},AYe),h.Kb=function(t){return oun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,x(Jt,"NodePromotion/lambda$1$Type",1609),A(1610,1,{},_Ye),h.Kb=function(t){return sun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,x(Jt,"NodePromotion/lambda$2$Type",1610),A(1611,1,_r,ZFe),h.If=function(t,r){pNn(l(t,37),r)},x(Jt,"NorthSouthPortPostprocessor",1611),A(1612,1,_r,QFe),h.If=function(t,r){vNn(l(t,37),r)},x(Jt,"NorthSouthPortPreprocessor",1612),A(1613,1,Un,e$e),h.Le=function(t,r){return Thn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"NorthSouthPortPreprocessor/lambda$0$Type",1613),A(1614,1,_r,t$e),h.If=function(t,r){uAn(l(t,37),r)},x(Jt,"PartitionMidprocessor",1614),A(1615,1,Ln,n$e),h.Mb=function(t){return gr(l(t,9),(Be(),Ky))},x(Jt,"PartitionMidprocessor/lambda$0$Type",1615),A(1616,1,tn,kYe),h.Ad=function(t){dan(this.a,l(t,9))},x(Jt,"PartitionMidprocessor/lambda$1$Type",1616),A(1617,1,_r,r$e),h.If=function(t,r){d2n(l(t,37),r)},x(Jt,"PartitionPostprocessor",1617),A(1618,1,_r,i$e),h.If=function(t,r){pTn(l(t,37),r)},x(Jt,"PartitionPreprocessor",1618),A(1619,1,Ln,o$e),h.Mb=function(t){return gr(l(t,9),(Be(),Ky))},x(Jt,"PartitionPreprocessor/lambda$0$Type",1619),A(1620,1,Ln,s$e),h.Mb=function(t){return gr(l(t,9),(Be(),Ky))},x(Jt,"PartitionPreprocessor/lambda$1$Type",1620),A(1621,1,{},a$e),h.Kb=function(t){return new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(Jt,"PartitionPreprocessor/lambda$2$Type",1621),A(1622,1,Ln,xYe),h.Mb=function(t){return PQt(this.a,l(t,17))},x(Jt,"PartitionPreprocessor/lambda$3$Type",1622),A(1623,1,tn,u$e),h.Ad=function(t){Mhn(l(t,17))},x(Jt,"PartitionPreprocessor/lambda$4$Type",1623),A(1624,1,Ln,NYe),h.Mb=function(t){return Ssn(this.a,l(t,9))},h.a=0,x(Jt,"PartitionPreprocessor/lambda$5$Type",1624),A(1625,1,_r,dWe),h.If=function(t,r){HTn(l(t,37),r)};var _Se,Qxt,eNt,tNt,kSe,xSe;x(Jt,"PortListSorter",1625),A(1626,1,{},c$e),h.Kb=function(t){return x_(),l(t,12).e},x(Jt,"PortListSorter/lambda$0$Type",1626),A(1627,1,{},l$e),h.Kb=function(t){return x_(),l(t,12).g},x(Jt,"PortListSorter/lambda$1$Type",1627),A(1628,1,Un,d$e),h.Le=function(t,r){return Act(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"PortListSorter/lambda$2$Type",1628),A(1629,1,Un,f$e),h.Le=function(t,r){return Zbn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"PortListSorter/lambda$3$Type",1629),A(1630,1,Un,h$e),h.Le=function(t,r){return Dyt(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"PortListSorter/lambda$4$Type",1630),A(1631,1,_r,p$e),h.If=function(t,r){Kvn(l(t,37),r)},x(Jt,"PortSideProcessor",1631),A(1632,1,_r,g$e),h.If=function(t,r){eTn(l(t,37),r)},x(Jt,"ReversedEdgeRestorer",1632),A(1637,1,_r,mZe),h.If=function(t,r){Lbn(this,l(t,37),r)},x(Jt,"SelfLoopPortRestorer",1637),A(1638,1,{},b$e),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"SelfLoopPortRestorer/lambda$0$Type",1638),A(1639,1,Ln,m$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},x(Jt,"SelfLoopPortRestorer/lambda$1$Type",1639),A(1640,1,Ln,w$e),h.Mb=function(t){return gr(l(t,9),(Ie(),nw))},x(Jt,"SelfLoopPortRestorer/lambda$2$Type",1640),A(1641,1,{},y$e),h.Kb=function(t){return l(j(l(t,9),(Ie(),nw)),339)},x(Jt,"SelfLoopPortRestorer/lambda$3$Type",1641),A(1642,1,tn,CYe),h.Ad=function(t){Vwn(this.a,l(t,339))},x(Jt,"SelfLoopPortRestorer/lambda$4$Type",1642),A(799,1,tn,vue),h.Ad=function(t){iyn(l(t,108))},x(Jt,"SelfLoopPortRestorer/lambda$5$Type",799),A(1644,1,_r,v$e),h.If=function(t,r){V1n(l(t,37),r)},x(Jt,"SelfLoopPostProcessor",1644),A(1645,1,{},E$e),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"SelfLoopPostProcessor/lambda$0$Type",1645),A(1646,1,Ln,S$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},x(Jt,"SelfLoopPostProcessor/lambda$1$Type",1646),A(1647,1,Ln,T$e),h.Mb=function(t){return gr(l(t,9),(Ie(),nw))},x(Jt,"SelfLoopPostProcessor/lambda$2$Type",1647),A(1648,1,tn,A$e),h.Ad=function(t){Qmn(l(t,9))},x(Jt,"SelfLoopPostProcessor/lambda$3$Type",1648),A(1649,1,{},_$e),h.Kb=function(t){return new yt(null,new vt(l(t,108).f,1))},x(Jt,"SelfLoopPostProcessor/lambda$4$Type",1649),A(1650,1,tn,IYe),h.Ad=function(t){Icn(this.a,l(t,342))},x(Jt,"SelfLoopPostProcessor/lambda$5$Type",1650),A(1651,1,Ln,k$e),h.Mb=function(t){return!!l(t,108).i},x(Jt,"SelfLoopPostProcessor/lambda$6$Type",1651),A(1652,1,tn,RYe),h.Ad=function(t){XZt(this.a,l(t,108))},x(Jt,"SelfLoopPostProcessor/lambda$7$Type",1652),A(1633,1,_r,x$e),h.If=function(t,r){NEn(l(t,37),r)},x(Jt,"SelfLoopPreProcessor",1633),A(1634,1,{},N$e),h.Kb=function(t){return new yt(null,new vt(l(t,108).f,1))},x(Jt,"SelfLoopPreProcessor/lambda$0$Type",1634),A(1635,1,{},C$e),h.Kb=function(t){return l(t,342).a},x(Jt,"SelfLoopPreProcessor/lambda$1$Type",1635),A(1636,1,tn,I$e),h.Ad=function(t){ctn(l(t,17))},x(Jt,"SelfLoopPreProcessor/lambda$2$Type",1636),A(1653,1,_r,git),h.If=function(t,r){Cwn(this,l(t,37),r)},x(Jt,"SelfLoopRouter",1653),A(1654,1,{},R$e),h.Kb=function(t){return new yt(null,new vt(l(t,26).a,16))},x(Jt,"SelfLoopRouter/lambda$0$Type",1654),A(1655,1,Ln,O$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},x(Jt,"SelfLoopRouter/lambda$1$Type",1655),A(1656,1,Ln,D$e),h.Mb=function(t){return gr(l(t,9),(Ie(),nw))},x(Jt,"SelfLoopRouter/lambda$2$Type",1656),A(1657,1,{},L$e),h.Kb=function(t){return l(j(l(t,9),(Ie(),nw)),339)},x(Jt,"SelfLoopRouter/lambda$3$Type",1657),A(1658,1,tn,Zet),h.Ad=function(t){oan(this.a,this.b,l(t,339))},x(Jt,"SelfLoopRouter/lambda$4$Type",1658),A(1659,1,_r,M$e),h.If=function(t,r){W2n(l(t,37),r)},x(Jt,"SemiInteractiveCrossMinProcessor",1659),A(1660,1,Ln,P$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},x(Jt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),A(1661,1,Ln,j$e),h.Mb=function(t){return Iot(l(t,9))._b((Be(),Xy))},x(Jt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),A(1662,1,Un,F$e),h.Le=function(t,r){return Ffn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Jt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),A(1663,1,{},$$e),h.Te=function(t,r){return lan(l(t,9),l(r,9))},x(Jt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),A(1665,1,_r,B$e),h.If=function(t,r){Nkn(l(t,37),r)},x(Jt,"SortByInputModelProcessor",1665),A(1666,1,Ln,U$e),h.Mb=function(t){return l(t,12).g.c.length!=0},x(Jt,"SortByInputModelProcessor/lambda$0$Type",1666),A(1667,1,tn,OYe),h.Ad=function(t){cyn(this.a,l(t,12))},x(Jt,"SortByInputModelProcessor/lambda$1$Type",1667),A(1746,811,{},Xft),h.bf=function(t){var r,o,s,u;switch(this.c=t,this.a.g){case 2:r=new Pe,ei(lr(new yt(null,new vt(this.c.a.b,16)),new tBe),new rtt(this,r)),Y6(this,new z$e),Oa(r,new G$e),r.c.length=0,ei(lr(new yt(null,new vt(this.c.a.b,16)),new q$e),new LYe(r)),Y6(this,new V$e),Oa(r,new W$e),r.c.length=0,o=Bnt(TK(Qw(new yt(null,new vt(this.c.a.b,16)),new MYe(this))),new K$e),ei(new yt(null,new vt(this.c.a.a,16)),new ett(o,r)),Y6(this,new J$e),Oa(r,new X$e),r.c.length=0;break;case 3:s=new Pe,Y6(this,new H$e),u=Bnt(TK(Qw(new yt(null,new vt(this.c.a.b,16)),new DYe(this))),new Y$e),ei(lr(new yt(null,new vt(this.c.a.b,16)),new Z$e),new ntt(u,s)),Y6(this,new Q$e),Oa(s,new eBe),s.c.length=0;break;default:throw K(new rZe)}},h.b=0,x(di,"EdgeAwareScanlineConstraintCalculation",1746),A(1747,1,Bf,H$e),h.Lb=function(t){return se(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,157)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),A(1748,1,{},DYe),h.We=function(t){return Pyn(this.a,l(t,60))},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),A(1756,1,eF,Qet),h.be=function(){hC(this.a,this.b,-1)},h.b=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),A(1758,1,Bf,z$e),h.Lb=function(t){return se(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,157)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),A(1759,1,tn,G$e),h.Ad=function(t){l(t,376).be()},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),A(1760,1,Ln,q$e),h.Mb=function(t){return se(l(t,60).g,9)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),A(1762,1,tn,LYe),h.Ad=function(t){vgn(this.a,l(t,60))},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),A(1761,1,eF,stt),h.be=function(){hC(this.b,this.a,-1)},h.a=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),A(1763,1,Bf,V$e),h.Lb=function(t){return se(l(t,60).g,9)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,9)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),A(1764,1,tn,W$e),h.Ad=function(t){l(t,376).be()},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),A(1765,1,{},MYe),h.We=function(t){return jyn(this.a,l(t,60))},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),A(1766,1,{},K$e),h.Ue=function(){return 0},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),A(1749,1,{},Y$e),h.Ue=function(){return 0},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),A(1768,1,tn,ett),h.Ad=function(t){zon(this.a,this.b,l(t,321))},h.a=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),A(1767,1,eF,ttt),h.be=function(){O0t(this.a,this.b,-1)},h.b=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),A(1769,1,Bf,J$e),h.Lb=function(t){return l(t,60),!0},h.Fb=function(t){return this===t},h.Mb=function(t){return l(t,60),!0},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1769),A(1770,1,tn,X$e),h.Ad=function(t){l(t,376).be()},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),A(1750,1,Ln,Z$e),h.Mb=function(t){return se(l(t,60).g,9)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),A(1752,1,tn,ntt),h.Ad=function(t){Gon(this.a,this.b,l(t,60))},h.a=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),A(1751,1,eF,att),h.be=function(){hC(this.b,this.a,-1)},h.a=0,x(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),A(1753,1,Bf,Q$e),h.Lb=function(t){return l(t,60),!0},h.Fb=function(t){return this===t},h.Mb=function(t){return l(t,60),!0},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1753),A(1754,1,tn,eBe),h.Ad=function(t){l(t,376).be()},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),A(1755,1,Ln,tBe),h.Mb=function(t){return se(l(t,60).g,157)},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),A(1757,1,tn,rtt),h.Ad=function(t){ofn(this.a,this.b,l(t,60))},x(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),A(1564,1,_r,Art),h.If=function(t,r){G_n(this,l(t,37),r)};var nNt;x(di,"HorizontalGraphCompactor",1564),A(1565,1,{},PYe),h.df=function(t,r){var o,s,u;return Npe(t,r)||(o=lE(t),s=lE(r),o&&o.k==(Ht(),mi)||s&&s.k==(Ht(),mi))?0:(u=l(j(this.a.a,(Ie(),t2)),317),Ltn(u,o?o.k:(Ht(),gi),s?s.k:(Ht(),gi)))},h.ef=function(t,r){var o,s,u;return Npe(t,r)?1:(o=lE(t),s=lE(r),u=l(j(this.a.a,(Ie(),t2)),317),Ede(u,o?o.k:(Ht(),gi),s?s.k:(Ht(),gi)))},x(di,"HorizontalGraphCompactor/1",1565),A(1566,1,{},nBe),h.cf=function(t,r){return VN(),t.a.i==0},x(di,"HorizontalGraphCompactor/lambda$0$Type",1566),A(1567,1,{},jYe),h.cf=function(t,r){return han(this.a,t,r)},x(di,"HorizontalGraphCompactor/lambda$1$Type",1567),A(1713,1,{},Cdt);var rNt,iNt;x(di,"LGraphToCGraphTransformer",1713),A(1721,1,Ln,rBe),h.Mb=function(t){return t!=null},x(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),A(1714,1,{},iBe),h.Kb=function(t){return hc(),bs(j(l(l(t,60).g,9),(Ie(),mr)))},x(di,"LGraphToCGraphTransformer/lambda$0$Type",1714),A(1715,1,{},oBe),h.Kb=function(t){return hc(),Gpt(l(l(t,60).g,157))},x(di,"LGraphToCGraphTransformer/lambda$1$Type",1715),A(1724,1,Ln,sBe),h.Mb=function(t){return hc(),se(l(t,60).g,9)},x(di,"LGraphToCGraphTransformer/lambda$10$Type",1724),A(1725,1,tn,aBe),h.Ad=function(t){uan(l(t,60))},x(di,"LGraphToCGraphTransformer/lambda$11$Type",1725),A(1726,1,Ln,uBe),h.Mb=function(t){return hc(),se(l(t,60).g,157)},x(di,"LGraphToCGraphTransformer/lambda$12$Type",1726),A(1730,1,tn,cBe),h.Ad=function(t){Fpn(l(t,60))},x(di,"LGraphToCGraphTransformer/lambda$13$Type",1730),A(1727,1,tn,FYe),h.Ad=function(t){Ien(this.a,l(t,8))},h.a=0,x(di,"LGraphToCGraphTransformer/lambda$14$Type",1727),A(1728,1,tn,$Ye),h.Ad=function(t){Oen(this.a,l(t,120))},h.a=0,x(di,"LGraphToCGraphTransformer/lambda$15$Type",1728),A(1729,1,tn,BYe),h.Ad=function(t){Ren(this.a,l(t,8))},h.a=0,x(di,"LGraphToCGraphTransformer/lambda$16$Type",1729),A(1731,1,{},lBe),h.Kb=function(t){return hc(),new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(di,"LGraphToCGraphTransformer/lambda$17$Type",1731),A(1732,1,Ln,dBe),h.Mb=function(t){return hc(),lo(l(t,17))},x(di,"LGraphToCGraphTransformer/lambda$18$Type",1732),A(1733,1,tn,UYe),h.Ad=function(t){Mdn(this.a,l(t,17))},x(di,"LGraphToCGraphTransformer/lambda$19$Type",1733),A(1717,1,tn,HYe),h.Ad=function(t){lcn(this.a,l(t,157))},x(di,"LGraphToCGraphTransformer/lambda$2$Type",1717),A(1734,1,{},fBe),h.Kb=function(t){return hc(),new yt(null,new vt(l(t,26).a,16))},x(di,"LGraphToCGraphTransformer/lambda$20$Type",1734),A(1735,1,{},hBe),h.Kb=function(t){return hc(),new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(di,"LGraphToCGraphTransformer/lambda$21$Type",1735),A(1736,1,{},pBe),h.Kb=function(t){return hc(),l(j(l(t,17),(Ie(),fm)),16)},x(di,"LGraphToCGraphTransformer/lambda$22$Type",1736),A(1737,1,Ln,gBe),h.Mb=function(t){return Mtn(l(t,16))},x(di,"LGraphToCGraphTransformer/lambda$23$Type",1737),A(1738,1,tn,zYe),h.Ad=function(t){Fyn(this.a,l(t,16))},x(di,"LGraphToCGraphTransformer/lambda$24$Type",1738),A(1739,1,{},bBe),h.Kb=function(t){return hc(),new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(di,"LGraphToCGraphTransformer/lambda$25$Type",1739),A(1740,1,Ln,mBe),h.Mb=function(t){return hc(),lo(l(t,17))},x(di,"LGraphToCGraphTransformer/lambda$26$Type",1740),A(1742,1,tn,GYe),h.Ad=function(t){Nfn(this.a,l(t,17))},x(di,"LGraphToCGraphTransformer/lambda$27$Type",1742),A(1741,1,tn,qYe),h.Ad=function(t){SQt(this.a,l(t,70))},h.a=0,x(di,"LGraphToCGraphTransformer/lambda$28$Type",1741),A(1716,1,tn,itt),h.Ad=function(t){cln(this.a,this.b,l(t,157))},x(di,"LGraphToCGraphTransformer/lambda$3$Type",1716),A(1718,1,{},wBe),h.Kb=function(t){return hc(),new yt(null,new vt(l(t,26).a,16))},x(di,"LGraphToCGraphTransformer/lambda$4$Type",1718),A(1719,1,{},yBe),h.Kb=function(t){return hc(),new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(di,"LGraphToCGraphTransformer/lambda$5$Type",1719),A(1720,1,{},vBe),h.Kb=function(t){return hc(),l(j(l(t,17),(Ie(),fm)),16)},x(di,"LGraphToCGraphTransformer/lambda$6$Type",1720),A(1722,1,tn,VYe),h.Ad=function(t){Yyn(this.a,l(t,16))},x(di,"LGraphToCGraphTransformer/lambda$8$Type",1722),A(1723,1,tn,ott),h.Ad=function(t){ntn(this.a,this.b,l(t,157))},x(di,"LGraphToCGraphTransformer/lambda$9$Type",1723),A(1712,1,{},EBe),h.af=function(t){var r,o,s,u,f;for(this.a=t,this.d=new KG,this.c=me(d2e,Rt,126,this.a.a.a.c.length,0,1),this.b=0,o=new V(this.a.a.a);o.a=G&&(je(f,Re(T)),oe=b.Math.max(oe,le[T-1]-N),m+=U,J+=le[T-1]-J,N=le[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}L=b.Math.min(1/oe,1/r.b/m),L>s&&(s=L,o=f)}return o},h.ng=function(){return!1},x(Hf,"MSDCutIndexHeuristic",810),A(1664,1,_r,oUe),h.If=function(t,r){KAn(l(t,37),r)},x(Hf,"SingleEdgeGraphWrapper",1664),A(233,23,{3:1,34:1,23:1,233:1},QN);var KE,Vk,Wk,Hy,TI,YE,Kk=fn(Fs,"CenterEdgeLabelPlacementStrategy",233,bn,ldn,hrn),bNt;A(427,23,{3:1,34:1,23:1,427:1},vle);var CSe,Cee,ISe=fn(Fs,"ConstraintCalculationStrategy",427,bn,Ian,frn),mNt;A(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},u8),h.bg=function(){return H0t(this)},h.og=function(){return H0t(this)};var oL,AI,RSe,OSe,DSe=fn(Fs,"CrossingMinimizationStrategy",302,bn,Bcn,brn),wNt;A(351,23,{3:1,34:1,23:1,351:1},Cq);var LSe,Iee,q$,MSe=fn(Fs,"CuttingStrategy",351,bn,xun,mrn),yNt;A(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return Wwt(this)},h.og=function(){return Wwt(this)};var Ree,PSe,Oee,Dee,Lee,Mee,Pee,jee,sL,jSe=fn(Fs,"CycleBreakingStrategy",268,bn,Efn,wrn),vNt;A(424,23,{3:1,34:1,23:1,424:1},Ele);var V$,FSe,$Se=fn(Fs,"DirectionCongruency",424,bn,Ran,yrn),ENt;A(452,23,{3:1,34:1,23:1,452:1},Iq);var Yk,Fee,JE,SNt=fn(Fs,"EdgeConstraint",452,bn,Nun,vrn),TNt;A(286,23,{3:1,34:1,23:1,286:1},e3);var $ee,Bee,Uee,Hee,W$,zee,BSe=fn(Fs,"EdgeLabelSideSelection",286,bn,adn,Ern),ANt;A(479,23,{3:1,34:1,23:1,479:1},Sle);var K$,USe,HSe=fn(Fs,"EdgeStraighteningStrategy",479,bn,Oan,Srn),_Nt;A(284,23,{3:1,34:1,23:1,284:1},t3);var Gee,zSe,GSe,Y$,qSe,VSe,WSe=fn(Fs,"FixedAlignment",284,bn,udn,Trn),kNt;A(285,23,{3:1,34:1,23:1,285:1},n3);var KSe,YSe,JSe,XSe,_I,ZSe,QSe=fn(Fs,"GraphCompactionStrategy",285,bn,cdn,Arn),xNt;A(262,23,{3:1,34:1,23:1,262:1},jw);var Jk,J$,Xk,rl,kI,X$,Zk,XE,Z$,xI,qee=fn(Fs,"GraphProperties",262,bn,Hfn,_rn),NNt;A(303,23,{3:1,34:1,23:1,303:1},Rq);var aL,Vee,Wee,Kee=fn(Fs,"GreedySwitchType",303,bn,kun,krn),CNt;A(330,23,{3:1,34:1,23:1,330:1},Oq);var zy,eTe,uL,Yee=fn(Fs,"GroupOrderStrategy",330,bn,Aun,xrn),INt;A(316,23,{3:1,34:1,23:1,316:1},Dq);var _T,cL,ZE,RNt=fn(Fs,"InLayerConstraint",316,bn,_un,Nrn),ONt;A(425,23,{3:1,34:1,23:1,425:1},Tle);var Jee,tTe,nTe=fn(Fs,"InteractiveReferencePoint",425,bn,xan,Crn),DNt,rTe,kT,Q0,lL,Q$,iTe,oTe,eB,sTe,xT,tB,NI,NT,Tp,Xee,nB,Us,aTe,j1,_a,Zee,Qee,dL,dm,ew,CT,uTe,LNt,IT,fL,Gy,Cd,Nl,ete,QE,F1,Nr,mr,cTe,lTe,dTe,fTe,hTe,tte,rB,Nu,tw,nte,RT,CI,Tg,e2,nw,t2,n2,Qk,fm,pTe,rte,ite,II,OT,iB,DT,r2;A(166,23,{3:1,34:1,23:1,166:1},pO);var RI,Ap,OI,hm,hL,gTe=fn(Fs,"LayerConstraint",166,bn,Mln,Irn),MNt;A(428,23,{3:1,34:1,23:1,428:1},Ale);var ote,ste,bTe=fn(Fs,"LayerUnzippingStrategy",428,bn,Nan,Rrn),PNt;A(851,1,td,mWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Twe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),CTe),(A1(),$r)),$Se),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Awe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,hF),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),MTe),$r),nTe),ct(xt)))),zr(t,hF,MD,B3t),zr(t,hF,KC,$3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,_we),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,kwe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(AQt(it(rt(ot(pt(Qe(nt(et(tt(new Xe,xwe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Ai),Yr),ct(Ng)),Z(X(Ye,1),Me,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Nwe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),VTe),$r),r_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Cwe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Re(7)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Iwe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Rwe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,MD),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),NTe),$r),jSe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,PD),bZ),"Node Layering Strategy"),"Strategy for node layering."),FTe),$r),qAe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Owe),bZ),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),PTe),$r),gTe),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Dwe),bZ),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Lwe),bZ),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Re(-1)),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,FX),sSt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Re(4)),wo),Ti),ct(xt)))),zr(t,FX,PD,W3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$X),sSt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Re(2)),wo),Ti),ct(xt)))),zr(t,$X,PD,Y3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,BX),aSt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),jTe),$r),e_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,UX),aSt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Re(0)),wo),Ti),ct(xt)))),zr(t,UX,BX,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,HX),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Re(sr)),wo),Ti),ct(xt)))),zr(t,HX,PD,H3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,KC),Tk),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),xTe),$r),DSe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Mwe),Tk),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,zX),Tk),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),fi),ct(xt)))),zr(t,zX,kF,f3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,GX),Tk),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Ai),Yr),ct(xt)))),zr(t,GX,KC,w3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Pwe),Tk),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),BT),Ye),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,jwe),Tk),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),BT),Ye),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Fwe),Tk),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$we),Tk),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Re(-1)),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Bwe),uSt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Re(40)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,qX),uSt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),kTe),$r),Kee),ct(xt)))),zr(t,qX,KC,l3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,pF),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),_Te),$r),Kee),ct(xt)))),zr(t,pF,KC,a3t),zr(t,pF,kF,u3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,PE),cSt),"Node Placement Strategy"),"Strategy for node placement."),qTe),$r),YAe),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,gF),cSt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Ai),Yr),ct(xt)))),zr(t,gF,PE,fCt),zr(t,gF,PE,hCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,VX),lSt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),HTe),$r),HSe),ct(xt)))),zr(t,VX,PE,uCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,WX),lSt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),zTe),$r),WSe),ct(xt)))),zr(t,WX,PE,lCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,KX),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),fi),ct(xt)))),zr(t,KX,PE,gCt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,YX),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),$r),Dte),ct(ri)))),zr(t,YX,PE,yCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,JX),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),GTe),$r),Dte),ct(xt)))),zr(t,JX,PE,wCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Uwe),dSt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),OTe),$r),s_e),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Hwe),dSt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),DTe),$r),a_e),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,bF),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),LTe),$r),c_e),ct(xt)))),zr(t,bF,FD,C3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,mF),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),fi),ct(xt)))),zr(t,mF,FD,R3t),zr(t,mF,bF,O3t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,XX),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),fi),ct(xt)))),zr(t,XX,FD,_3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,zwe),of),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Gwe),of),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,qwe),of),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Vwe),of),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Wwe),oye),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Re(0)),wo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Kwe),oye),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Re(0)),wo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Ywe),oye),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Re(0)),wo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,ZX),sye),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ai),Yr),ct(xt)))),zr(t,ZX,GC,!0),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Jwe),fSt),"Post Compaction Strategy"),hSt),wTe),$r),QSe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Xwe),fSt),"Post Compaction Constraint Calculation"),hSt),mTe),$r),ISe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,wF),aye),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,QX),aye),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Re(16)),wo),Ti),ct(xt)))),zr(t,QX,wF,!0),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,eZ),aye),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Re(5)),wo),Ti),ct(xt)))),zr(t,eZ,wF,!0),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vp),uye),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),YTe),$r),h_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,yF),uye),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),fi),ct(xt)))),zr(t,yF,vp,OCt),zr(t,yF,vp,DCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vF),uye),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),fi),ct(xt)))),zr(t,vF,vp,MCt),zr(t,vF,vp,PCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,YC),pSt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),KTe),$r),MSe),ct(xt)))),zr(t,YC,vp,HCt),zr(t,YC,vp,zCt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,tZ),pSt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),lf),_c),ct(xt)))),zr(t,tZ,YC,FCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,nZ),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),WTe),wo),Ti),ct(xt)))),zr(t,nZ,YC,BCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,EF),gSt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),JTe),$r),f_e),ct(xt)))),zr(t,EF,vp,tIt),zr(t,EF,vp,nIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,SF),gSt),"Valid Indices for Wrapping"),null),lf),_c),ct(xt)))),zr(t,SF,vp,ZCt),zr(t,SF,vp,QCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,TF),cye),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Ai),Yr),ct(xt)))),zr(t,TF,vp,WCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,AF),cye),"Distance Penalty When Improving Cuts"),null),2),Qi),fi),ct(xt)))),zr(t,AF,vp,qCt),zr(t,AF,TF,!0),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,rZ),cye),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Ai),Yr),ct(xt)))),zr(t,rZ,vp,YCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,iZ),mZ),"Layer Unzipping Strategy"),"The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'."),UTe),$r),bTe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,oZ),mZ),"Minimize Edge Length Heuristic"),"Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer."),!1),Ai),Yr),ct(ri)))),zr(t,oZ,sZ,tCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,sZ),mZ),"Unzipping Layer Split"),"Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen."),$Te),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,aZ),mZ),"Reset Alternation on Long Edges"),"If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer."),BTe),Ai),Yr),ct(ri)))),zr(t,aZ,iZ,rCt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Zwe),wZ),"Edge Label Side Selection"),"Method to decide on edge label sides."),RTe),$r),BSe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Qwe),wZ),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),ITe),$r),Kk),Ar(xt,Z(X(cf,1),Ce,161,0,[kp]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,_F),JC),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),ATe),$r),n_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,eye),JC),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,jD),JC),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,uZ),JC),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),yTe),$r),M2e),ct(xt)))),zr(t,uZ,GC,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,tye),JC),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),TTe),$r),WAe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,cZ),JC),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qi),fi),ct(xt)))),zr(t,cZ,_F,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,lZ),JC),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qi),fi),ct(xt)))),zr(t,lZ,_F,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,dZ),Ak),lye),"Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),wo),Ti),ct(ri)))),zr(t,dZ,jD,!1),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,fZ),Ak),lye),"Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),wo),Ti),Ar(ri,Z(X(cf,1),Ce,161,0,[Rd,Ng]))))),zr(t,fZ,jD,!1),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,hZ),Ak),lye),"Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),wo),Ti),Ar(ri,Z(X(cf,1),Ce,161,0,[Rd,Ng]))))),zr(t,hZ,jD,!1),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,nye),Ak),"Cycle Breaking Group Ordering Strategy"),"Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering."),vTe),$r),Yee),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,pZ),Ak),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),wo),Ti),ct(xt)))),zr(t,pZ,MD,VNt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,gZ),Ak),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),wo),Ti),ct(xt)))),zr(t,gZ,MD,KNt),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,rye),Ak),"Crossing Minimization Group Ordering Strategy"),"Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering."),STe),$r),Yee),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,iye),Ak),"Crossing Minimization Enforced Group Orders"),"Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order."),ETe),lf),_c),ct(xt)))),MEt((new _We,t))};var jNt,FNt,$Nt,mTe,BNt,wTe,UNt,yTe,HNt,zNt,GNt,vTe,qNt,VNt,WNt,KNt,YNt,ETe,JNt,STe,XNt,ZNt,QNt,e3t,TTe,t3t,n3t,r3t,ATe,i3t,o3t,s3t,_Te,a3t,u3t,c3t,kTe,l3t,d3t,f3t,h3t,p3t,g3t,b3t,m3t,w3t,y3t,xTe,v3t,NTe,E3t,CTe,S3t,ITe,T3t,RTe,A3t,_3t,k3t,OTe,x3t,DTe,N3t,LTe,C3t,I3t,R3t,O3t,D3t,L3t,M3t,P3t,j3t,F3t,MTe,$3t,B3t,U3t,H3t,z3t,G3t,PTe,q3t,V3t,W3t,K3t,Y3t,J3t,X3t,jTe,Z3t,FTe,Q3t,$Te,eCt,tCt,nCt,BTe,rCt,iCt,UTe,oCt,sCt,aCt,HTe,uCt,cCt,zTe,lCt,dCt,fCt,hCt,pCt,gCt,bCt,mCt,GTe,wCt,yCt,vCt,qTe,ECt,VTe,SCt,TCt,ACt,_Ct,kCt,xCt,NCt,CCt,ICt,RCt,OCt,DCt,LCt,MCt,PCt,jCt,FCt,$Ct,WTe,BCt,UCt,KTe,HCt,zCt,GCt,qCt,VCt,WCt,KCt,YCt,JCt,YTe,XCt,ZCt,QCt,eIt,JTe,tIt,nIt;x(Fs,"LayeredMetaDataProvider",851),A(991,1,td,_We),h.tf=function(t){MEt(t)};var Wf,ate,oB,DI,sB,XTe,aB,LI,pL,ute,LT,ZTe,QTe,eAe,MI,rIt,PI,qy,cte,uB,lte,Ch,dte,ex,tAe,gL,fte,nAe,iIt,oIt,sIt,cB,hte,jI,MT,aIt,kc,rAe,iAe,lB,i2,Kf,dB,_p,oAe,sAe,aAe,pte,gte,uAe,Ag,bte,cAe,Vy,lAe,dAe,fAe,fB,Wy,pm,hAe,pAe,rs,gAe,uIt,Ns,FI,bAe,mAe,wAe,bL,hB,pB,mte,wte,yAe,gB,vAe,EAe,bB,rw,SAe,yte,$I,TAe,iw,BI,mB,gm,vte,tx,wB,bm,AAe,_Ae,kAe,Ky,xAe,cIt,lIt,dIt,fIt,ow,Yy,Zr,_g,hIt,Jy,NAe,nx,CAe,Xy,pIt,rx,IAe,PT,gIt,bIt,mL,Ete,RAe,wL,od,Zy,o2,mm,$1,yB,Qy,Ste,ix,ox,wm,ev,Tte,yL,UI,HI,mIt,wIt,yIt,OAe,vIt,Ate,DAe,LAe,MAe,PAe,_te,jAe,FAe,$Ae,BAe,kte,vB;x(Fs,"LayeredOptions",991),A(992,1,{},sUe),h.uf=function(){var t;return t=new aZe,t},h.vf=function(t){},x(Fs,"LayeredOptions/LayeredFactory",992),A(1357,1,{}),h.a=0;var EIt;x(Vs,"ElkSpacings/AbstractSpacingsBuilder",1357),A(785,1357,{},l1e);var EB,SIt;x(Fs,"LayeredSpacings/LayeredSpacingsBuilder",785),A(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},Yv),h.bg=function(){return zwt(this)},h.og=function(){return zwt(this)};var xte,Nte,Cte,UAe,HAe,zAe,SB,Ite,GAe,qAe=fn(Fs,"LayeringStrategy",269,bn,Sfn,Prn),TIt;A(353,23,{3:1,34:1,23:1,353:1},Lq);var Rte,VAe,TB,WAe=fn(Fs,"LongEdgeOrderingStrategy",353,bn,Dun,Drn),AIt;A(205,23,{3:1,34:1,23:1,205:1},c8);var s2,a2,AB,Ote,Dte=fn(Fs,"NodeFlexibility",205,bn,Fcn,Orn),_It;A(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},gO),h.bg=function(){return tmt(this)},h.og=function(){return tmt(this)};var zI,Lte,Mte,GI,KAe,YAe=fn(Fs,"NodePlacementStrategy",329,bn,Lln,Lrn),kIt;A(246,23,{3:1,34:1,23:1,246:1},Fw);var JAe,sx,qI,vL,XAe,ZAe,EL,QAe,_B,kB,e_e=fn(Fs,"NodePromotionStrategy",246,bn,Ufn,Mrn),xIt;A(270,23,{3:1,34:1,23:1,270:1},l8);var t_e,B1,Pte,jte,n_e=fn(Fs,"OrderingStrategy",270,bn,$cn,jrn),NIt;A(426,23,{3:1,34:1,23:1,426:1},_le);var Fte,$te,r_e=fn(Fs,"PortSortingStrategy",426,bn,Can,Frn),CIt;A(455,23,{3:1,34:1,23:1,455:1},Mq);var Cu,Fa,VI,IIt=fn(Fs,"PortType",455,bn,Cun,$rn),RIt;A(382,23,{3:1,34:1,23:1,382:1},Pq);var i_e,Bte,o_e,s_e=fn(Fs,"SelfLoopDistributionStrategy",382,bn,Iun,Brn),OIt;A(349,23,{3:1,34:1,23:1,349:1},jq);var Ute,SL,Hte,a_e=fn(Fs,"SelfLoopOrderingStrategy",349,bn,Run,Urn),DIt;A(317,1,{317:1},Ivt),x(Fs,"Spacings",317),A(350,23,{3:1,34:1,23:1,350:1},Fq);var zte,u_e,WI,c_e=fn(Fs,"SplineRoutingMode",350,bn,Oun,Hrn),LIt;A(352,23,{3:1,34:1,23:1,352:1},$q);var Gte,l_e,d_e,f_e=fn(Fs,"ValidifyStrategy",352,bn,Lun,zrn),MIt;A(383,23,{3:1,34:1,23:1,383:1},Bq);var tv,qte,ax,h_e=fn(Fs,"WrappingStrategy",383,bn,Mun,Grn),PIt;A(1373,1,Fi,SWe),h.pg=function(t){return l(t,37),jIt},h.If=function(t,r){Okn(this,l(t,37),r)};var jIt;x(U0,"BFSNodeOrderCycleBreaker",1373),A(1371,1,Fi,EWe),h.pg=function(t){return l(t,37),FIt},h.If=function(t,r){x_n(this,l(t,37),r)};var FIt;x(U0,"DFSNodeOrderCycleBreaker",1371),A(1372,1,tn,Hit),h.Ad=function(t){xTn(this.a,this.c,this.b,l(t,17))},h.b=!1,x(U0,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),A(1365,1,Fi,TWe),h.pg=function(t){return l(t,37),$It},h.If=function(t,r){k_n(this,l(t,37),r)};var $It;x(U0,"DepthFirstCycleBreaker",1365),A(786,1,Fi,Lfe),h.pg=function(t){return l(t,37),BIt},h.If=function(t,r){KNn(this,l(t,37),r)},h.qg=function(t){return l(He(t,s7(this.e,t.c.length)),9)};var BIt;x(U0,"GreedyCycleBreaker",786),A(1368,786,Fi,Ptt),h.qg=function(t){var r,o,s,u,f,p,m,y,v;for(v=null,s=sr,y=b.Math.max(this.b.a.c.length,l(j(this.b,(Ie(),F1)),15).a),r=y*l(j(this.b,lL),15).a,u=new WR,o=be(j(this.b,(Be(),LT)))===be((g1(),zy)),m=new V(t);m.af&&(s=f,v=p));return v||l(He(t,s7(this.e,t.c.length)),9)},x(U0,"GreedyModelOrderCycleBreaker",1368),A(509,1,{},WR),h.a=0,h.b=0,x(U0,"GroupModelOrderCalculator",509),A(1366,1,Fi,yWe),h.pg=function(t){return l(t,37),UIt},h.If=function(t,r){Q_n(this,l(t,37),r)};var UIt;x(U0,"InteractiveCycleBreaker",1366),A(1367,1,Fi,wWe),h.pg=function(t){return l(t,37),HIt},h.If=function(t,r){tkn(l(t,37),r)};var HIt;x(U0,"ModelOrderCycleBreaker",1367),A(787,1,Fi),h.pg=function(t){return l(t,37),zIt},h.If=function(t,r){UAn(this,l(t,37),r)},h.rg=function(t,r){var o,s,u,f,p,m,y,v,T,N;for(p=0;pv&&(y=I,N=v),Tyd(new Ft(Gt(Rr(m).a.Jc(),new D))))for(u=new Ft(Gt(si(y).a.Jc(),new D));an(u);)s=l(Qt(u),17),l(sa(this.d,p),24).Gc(s.c.i)&&je(this.c,s);else for(u=new Ft(Gt(Rr(m).a.Jc(),new D));an(u);)s=l(Qt(u),17),l(sa(this.d,p),24).Gc(s.d.i)&&je(this.c,s)}},x(U0,"SCCNodeTypeCycleBreaker",1370),A(1369,787,Fi,Ftt),h.rg=function(t,r){var o,s,u,f,p,m,y,v,T,N,I,L;for(p=0;pv&&(y=I,N=v),Tyd(new Ft(Gt(Rr(m).a.Jc(),new D))))for(u=new Ft(Gt(si(y).a.Jc(),new D));an(u);)s=l(Qt(u),17),l(sa(this.d,p),24).Gc(s.c.i)&&je(this.c,s);else for(u=new Ft(Gt(Rr(m).a.Jc(),new D));an(u);)s=l(Qt(u),17),l(sa(this.d,p),24).Gc(s.d.i)&&je(this.c,s)}},x(U0,"SCConnectivity",1369),A(1385,1,Fi,vWe),h.pg=function(t){return l(t,37),GIt},h.If=function(t,r){Zxn(this,l(t,37),r)};var GIt;x(Ep,"BreadthFirstModelOrderLayerer",1385),A(1386,1,Un,aUe),h.Le=function(t,r){return Ryn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"BreadthFirstModelOrderLayerer/lambda$0$Type",1386),A(1376,1,Fi,Met),h.pg=function(t){return l(t,37),qIt},h.If=function(t,r){QNn(this,l(t,37),r)};var qIt;x(Ep,"CoffmanGrahamLayerer",1376),A(1377,1,Un,eJe),h.Le=function(t,r){return U2n(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1377),A(1378,1,Un,tJe),h.Le=function(t,r){return Hon(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"CoffmanGrahamLayerer/lambda$1$Type",1378),A(1387,1,Fi,hWe),h.pg=function(t){return l(t,37),VIt},h.If=function(t,r){$Nn(this,l(t,37),r)},h.c=0,h.e=0;var VIt;x(Ep,"DepthFirstModelOrderLayerer",1387),A(1388,1,Un,uUe),h.Le=function(t,r){return Oyn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"DepthFirstModelOrderLayerer/lambda$0$Type",1388),A(1379,1,Fi,cUe),h.pg=function(t){return l(t,37),Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),gee)),xh,By),la,$y)},h.If=function(t,r){cNn(l(t,37),r)},x(Ep,"InteractiveLayerer",1379),A(571,1,{571:1},gZe),h.a=0,h.c=0,x(Ep,"InteractiveLayerer/LayerSpan",571),A(1375,1,Fi,pWe),h.pg=function(t){return l(t,37),WIt},h.If=function(t,r){M2n(this,l(t,37),r)};var WIt;x(Ep,"LongestPathLayerer",1375),A(1384,1,Fi,gWe),h.pg=function(t){return l(t,37),KIt},h.If=function(t,r){nSn(this,l(t,37),r)};var KIt;x(Ep,"LongestPathSourceLayerer",1384),A(1382,1,Fi,xWe),h.pg=function(t){return l(t,37),Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)},h.If=function(t,r){yNn(this,l(t,37),r)},h.a=0,h.b=0,h.d=0;var p_e,g_e;x(Ep,"MinWidthLayerer",1382),A(1383,1,Un,nJe),h.Le=function(t,r){return hhn(this,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"MinWidthLayerer/MinOutgoingEdgesComparator",1383),A(1374,1,Fi,kWe),h.pg=function(t){return l(t,37),YIt},h.If=function(t,r){Mkn(this,l(t,37),r)};var YIt;x(Ep,"NetworkSimplexLayerer",1374),A(1380,1,Fi,fit),h.pg=function(t){return l(t,37),Fn(Fn(Fn(new ui,(Vi(),id),(Xi(),VE)),xh,By),la,$y)},h.If=function(t,r){Exn(this,l(t,37),r)},h.d=0,h.f=0,h.g=0,h.i=0,h.s=0,h.t=0,h.u=0,x(Ep,"StretchWidthLayerer",1380),A(1381,1,Un,gUe),h.Le=function(t,r){return Yln(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ep,"StretchWidthLayerer/1",1381),A(411,1,Vye),h.eg=function(t,r,o,s,u,f){},h.tg=function(t,r,o){return vyt(this,t,r,o)},h.dg=function(){this.g=me(vv,ySt,30,this.d,15,1),this.f=me(vv,ySt,30,this.d,15,1)},h.fg=function(t,r){this.e[t]=me(Rn,Xn,30,r[t].length,15,1)},h.gg=function(t,r,o){var s;s=o[t][r],s.p=r,this.e[t][r]=r},h.hg=function(t,r,o,s){l(He(s[t][r].j,o),12).p=this.d++},h.b=0,h.c=0,h.d=0,x(qa,"AbstractBarycenterPortDistributor",411),A(1680,1,Un,rJe),h.Le=function(t,r){return N1n(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(qa,"AbstractBarycenterPortDistributor/lambda$0$Type",1680),A(823,1,WC,Uhe),h.eg=function(t,r,o,s,u,f){},h.gg=function(t,r,o){},h.hg=function(t,r,o,s){},h.cg=function(){return!1},h.dg=function(){this.c=this.e.a,this.g=this.f.g},h.fg=function(t,r){r[t][0].c.p=t},h.ig=function(){return!1},h.ug=function(t,r,o,s){o?obt(this,t):(dbt(this,t,s),Uvt(this,t,r)),t.c.length>1&&(Ke(We(j(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),ex))))?U0t(t,this.d,l(this,667)):(St(),_i(t,this.d)),kht(this.e,t))},h.jg=function(t,r,o,s){var u,f,p,m,y,v,T;for(r!=Oot(o,t.length)&&(f=t[r-(o?1:-1)],hpe(this.f,f,o?(Lo(),Fa):(Lo(),Cu))),u=t[r][0],T=!s||u.k==(Ht(),mi),v=Wl(t[r]),this.ug(v,T,!1,o),p=0,y=new V(v);y.a"),t0?TW(this.a,t[r-1],t[r]):!o&&r1&&(Ke(We(j(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),ex))))?U0t(t,this.d,this):(St(),_i(t,this.d)),Ke(We(j(ji((at(0,t.c.length),l(t.c[0],9))),ex)))||kht(this.e,t))},x(qa,"ModelOrderBarycenterHeuristic",667),A(1860,1,Un,fJe),h.Le=function(t,r){return b_n(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(qa,"ModelOrderBarycenterHeuristic/lambda$0$Type",1860),A(1395,1,Fi,RWe),h.pg=function(t){var r;return l(t,37),r=I8(r4t),Fn(r,(Vi(),la),(Xi(),L$)),r},h.If=function(t,r){ran((l(t,37),r))};var r4t;x(qa,"NoCrossingMinimizer",1395),A(803,411,Vye,Vce),h.sg=function(t,r,o){var s,u,f,p,m,y,v,T,N,I,L;switch(N=this.g,o.g){case 1:{for(u=0,f=0,T=new V(t.j);T.a1&&(u.j==(Ue(),Zt)?this.b[t]=!0:u.j==Wt&&t>0&&(this.b[t-1]=!0))},h.f=0,x(_h,"AllCrossingsCounter",1855),A(590,1,{},kj),h.b=0,h.d=0,x(_h,"BinaryIndexedTree",590),A(523,1,{},PO);var b_e,CB;x(_h,"CrossingsCounter",523),A(1929,1,Un,hJe),h.Le=function(t,r){return Ion(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_h,"CrossingsCounter/lambda$0$Type",1929),A(1930,1,Un,pJe),h.Le=function(t,r){return Ron(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_h,"CrossingsCounter/lambda$1$Type",1930),A(1931,1,Un,gJe),h.Le=function(t,r){return Oon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_h,"CrossingsCounter/lambda$2$Type",1931),A(1932,1,Un,bJe),h.Le=function(t,r){return Don(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_h,"CrossingsCounter/lambda$3$Type",1932),A(1933,1,tn,mJe),h.Ad=function(t){Odn(this.a,l(t,12))},x(_h,"CrossingsCounter/lambda$4$Type",1933),A(1934,1,Ln,wJe),h.Mb=function(t){return hen(this.a,l(t,12))},x(_h,"CrossingsCounter/lambda$5$Type",1934),A(1935,1,tn,yJe),h.Ad=function(t){$tt(this,t)},x(_h,"CrossingsCounter/lambda$6$Type",1935),A(1936,1,tn,gtt),h.Ad=function(t){var r;XA(),l1(this.b,(r=this.a,l(t,12),r))},x(_h,"CrossingsCounter/lambda$7$Type",1936),A(831,1,Bf,xue),h.Lb=function(t){return XA(),gr(l(t,12),(Ie(),Nu))},h.Fb=function(t){return this===t},h.Mb=function(t){return XA(),gr(l(t,12),(Ie(),Nu))},x(_h,"CrossingsCounter/lambda$8$Type",831),A(1928,1,{},vJe),x(_h,"HyperedgeCrossingsCounter",1928),A(470,1,{34:1,470:1},pit),h.Dd=function(t){return f1n(this,l(t,470))},h.b=0,h.c=0,h.e=0,h.f=0;var L3n=x(_h,"HyperedgeCrossingsCounter/Hyperedge",470);A(371,1,{34:1,371:1},TP),h.Dd=function(t){return dEn(this,l(t,371))},h.b=0,h.c=0;var i4t=x(_h,"HyperedgeCrossingsCounter/HyperedgeCorner",371);A(522,23,{3:1,34:1,23:1,522:1},Nle);var YI,JI,o4t=fn(_h,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,bn,Pan,Vrn),s4t;A(1397,1,Fi,LWe),h.pg=function(t){return l(j(l(t,37),(Ie(),_a)),24).Gc((Mo(),rl))?a4t:null},h.If=function(t,r){$mn(this,l(t,37),r)};var a4t;x(Fo,"InteractiveNodePlacer",1397),A(1398,1,Fi,MWe),h.pg=function(t){return l(j(l(t,37),(Ie(),_a)),24).Gc((Mo(),rl))?u4t:null},h.If=function(t,r){Sbn(this,l(t,37),r)};var u4t,IB,RB;x(Fo,"LinearSegmentsNodePlacer",1398),A(264,1,{34:1,264:1},_ce),h.Dd=function(t){return kQt(this,l(t,264))},h.Fb=function(t){var r;return se(t,264)?(r=l(t,264),this.b==r.b):!1},h.Hb=function(){return this.b},h.Ib=function(){return"ls"+Qd(this.e)},h.a=0,h.b=0,h.c=-1,h.d=-1,h.g=0;var c4t=x(Fo,"LinearSegmentsNodePlacer/LinearSegment",264);A(1400,1,Fi,Jot),h.pg=function(t){return l(j(l(t,37),(Ie(),_a)),24).Gc((Mo(),rl))?l4t:null},h.If=function(t,r){BNn(this,l(t,37),r)},h.b=0,h.g=0;var l4t;x(Fo,"NetworkSimplexPlacer",1400),A(1419,1,Un,mUe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Fo,"NetworkSimplexPlacer/0methodref$compare$Type",1419),A(1421,1,Un,wUe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Fo,"NetworkSimplexPlacer/1methodref$compare$Type",1421),A(651,1,{651:1},ftt);var M3n=x(Fo,"NetworkSimplexPlacer/EdgeRep",651);A(410,1,{410:1},phe),h.b=!1;var P3n=x(Fo,"NetworkSimplexPlacer/NodeRep",410);A(504,13,{3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1,504:1},TZe),x(Fo,"NetworkSimplexPlacer/Path",504),A(1401,1,{},yUe),h.Kb=function(t){return l(t,17).d.i.k},x(Fo,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),A(1402,1,Ln,bUe),h.Mb=function(t){return l(t,252)==(Ht(),gi)},x(Fo,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),A(1403,1,{},vUe),h.Kb=function(t){return l(t,17).d.i},x(Fo,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),A(1404,1,Ln,EJe),h.Mb=function(t){return Xrt(Sgt(l(t,9)))},x(Fo,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),A(1405,1,Ln,EUe),h.Mb=function(t){return mon(l(t,12))},x(Fo,"NetworkSimplexPlacer/lambda$0$Type",1405),A(1406,1,tn,htt),h.Ad=function(t){rtn(this.a,this.b,l(t,12))},x(Fo,"NetworkSimplexPlacer/lambda$1$Type",1406),A(1415,1,tn,SJe),h.Ad=function(t){Xyn(this.a,l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$10$Type",1415),A(1416,1,{},SUe),h.Kb=function(t){return gc(),new yt(null,new vt(l(t,26).a,16))},x(Fo,"NetworkSimplexPlacer/lambda$11$Type",1416),A(1417,1,tn,TJe),h.Ad=function(t){LSn(this.a,l(t,9))},x(Fo,"NetworkSimplexPlacer/lambda$12$Type",1417),A(1418,1,{},TUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},x(Fo,"NetworkSimplexPlacer/lambda$13$Type",1418),A(1420,1,{},AUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},x(Fo,"NetworkSimplexPlacer/lambda$15$Type",1420),A(1422,1,Ln,kUe),h.Mb=function(t){return gc(),l(t,410).c.k==(Ht(),Xr)},x(Fo,"NetworkSimplexPlacer/lambda$17$Type",1422),A(1423,1,Ln,xUe),h.Mb=function(t){return gc(),l(t,410).c.j.c.length>1},x(Fo,"NetworkSimplexPlacer/lambda$18$Type",1423),A(1424,1,tn,Xst),h.Ad=function(t){Mgn(this.c,this.b,this.d,this.a,l(t,410))},h.c=0,h.d=0,x(Fo,"NetworkSimplexPlacer/lambda$19$Type",1424),A(1407,1,{},NUe),h.Kb=function(t){return gc(),new yt(null,new vt(l(t,26).a,16))},x(Fo,"NetworkSimplexPlacer/lambda$2$Type",1407),A(1425,1,tn,AJe),h.Ad=function(t){atn(this.a,l(t,12))},h.a=0,x(Fo,"NetworkSimplexPlacer/lambda$20$Type",1425),A(1426,1,{},CUe),h.Kb=function(t){return gc(),new yt(null,new vt(l(t,26).a,16))},x(Fo,"NetworkSimplexPlacer/lambda$21$Type",1426),A(1427,1,tn,_Je),h.Ad=function(t){ptn(this.a,l(t,9))},x(Fo,"NetworkSimplexPlacer/lambda$22$Type",1427),A(1428,1,Ln,IUe),h.Mb=function(t){return Xrt(t)},x(Fo,"NetworkSimplexPlacer/lambda$23$Type",1428),A(1429,1,{},RUe),h.Kb=function(t){return gc(),new yt(null,new vt(l(t,26).a,16))},x(Fo,"NetworkSimplexPlacer/lambda$24$Type",1429),A(1430,1,Ln,kJe),h.Mb=function(t){return Een(this.a,l(t,9))},x(Fo,"NetworkSimplexPlacer/lambda$25$Type",1430),A(1431,1,tn,ptt),h.Ad=function(t){Qwn(this.a,this.b,l(t,9))},x(Fo,"NetworkSimplexPlacer/lambda$26$Type",1431),A(1432,1,Ln,OUe),h.Mb=function(t){return gc(),!lo(l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$27$Type",1432),A(1433,1,Ln,DUe),h.Mb=function(t){return gc(),!lo(l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$28$Type",1433),A(1434,1,{},xJe),h.Te=function(t,r){return stn(this.a,l(t,26),l(r,26))},x(Fo,"NetworkSimplexPlacer/lambda$29$Type",1434),A(1408,1,{},LUe),h.Kb=function(t){return gc(),new yt(null,new Xw(new Ft(Gt(Rr(l(t,9)).a.Jc(),new D))))},x(Fo,"NetworkSimplexPlacer/lambda$3$Type",1408),A(1409,1,Ln,MUe),h.Mb=function(t){return gc(),Ecn(l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$4$Type",1409),A(1410,1,tn,NJe),h.Ad=function(t){GAn(this.a,l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$5$Type",1410),A(1411,1,{},PUe),h.Kb=function(t){return gc(),new yt(null,new vt(l(t,26).a,16))},x(Fo,"NetworkSimplexPlacer/lambda$6$Type",1411),A(1412,1,Ln,jUe),h.Mb=function(t){return gc(),l(t,9).k==(Ht(),Xr)},x(Fo,"NetworkSimplexPlacer/lambda$7$Type",1412),A(1413,1,{},FUe),h.Kb=function(t){return gc(),new yt(null,new Xw(new Ft(Gt(Df(l(t,9)).a.Jc(),new D))))},x(Fo,"NetworkSimplexPlacer/lambda$8$Type",1413),A(1414,1,Ln,$Ue),h.Mb=function(t){return gc(),gon(l(t,17))},x(Fo,"NetworkSimplexPlacer/lambda$9$Type",1414),A(1396,1,Fi,AWe),h.pg=function(t){return l(j(l(t,37),(Ie(),_a)),24).Gc((Mo(),rl))?d4t:null},h.If=function(t,r){T_n(l(t,37),r)};var d4t;x(Fo,"SimpleNodePlacer",1396),A(188,1,{188:1},NE),h.Ib=function(){var t;return t="",this.c==(Cf(),sw)?t+=fT:this.c==kg&&(t+=dT),this.o==(zd(),ym)?t+=xX:this.o==uf?t+="UP":t+="BALANCED",t},x(I1,"BKAlignedLayout",188),A(513,23,{3:1,34:1,23:1,513:1},kle);var kg,sw,f4t=fn(I1,"BKAlignedLayout/HDirection",513,bn,Lan,Wrn),h4t;A(512,23,{3:1,34:1,23:1,512:1},xle);var ym,uf,p4t=fn(I1,"BKAlignedLayout/VDirection",512,bn,Dan,Krn),g4t;A(1681,1,{},btt),x(I1,"BKAligner",1681),A(1684,1,{},K1t),x(I1,"BKCompactor",1684),A(659,1,{659:1},BUe),h.a=0,x(I1,"BKCompactor/ClassEdge",659),A(459,1,{459:1},bZe),h.a=null,h.b=0,x(I1,"BKCompactor/ClassNode",459),A(1399,1,Fi,Mtt),h.pg=function(t){return l(j(l(t,37),(Ie(),_a)),24).Gc((Mo(),rl))?b4t:null},h.If=function(t,r){r3n(this,l(t,37),r)},h.d=!1;var b4t;x(I1,"BKNodePlacer",1399),A(1682,1,{},UUe),h.d=0,x(I1,"NeighborhoodInformation",1682),A(1683,1,Un,CJe),h.Le=function(t,r){return Vdn(this,l(t,49),l(r,49))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(I1,"NeighborhoodInformation/NeighborComparator",1683),A(816,1,{}),x(I1,"ThresholdStrategy",816),A(1812,816,{},wZe),h.vg=function(t,r,o){return this.a.o==(zd(),uf)?Kr:Oi},h.wg=function(){},x(I1,"ThresholdStrategy/NullThresholdStrategy",1812),A(583,1,{583:1},vtt),h.c=!1,h.d=!1,x(I1,"ThresholdStrategy/Postprocessable",583),A(1813,816,{},yZe),h.vg=function(t,r,o){var s,u,f;return u=r==o,s=this.a.a[o.p]==r,u||s?(f=t,this.a.c==(Cf(),sw)?(u&&(f=CJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&s&&(f=CJ(this,o,!1))):(u&&(f=CJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&s&&(f=CJ(this,o,!1))),f):t},h.wg=function(){for(var t,r,o,s,u;this.d.b!=0;)u=l(Mat(this.d),583),s=Pyt(this,u),s.a&&(t=s.a,o=Ke(this.a.f[this.a.g[u.b.p].p]),!(!o&&!lo(t)&&t.c.i.c==t.d.i.c)&&(r=M0t(this,u),r||xnt(this.e,u)));for(;this.e.a.c.length!=0;)M0t(this,l(jge(this.e),583))},x(I1,"ThresholdStrategy/SimpleThresholdStrategy",1813),A(642,1,{642:1,173:1,177:1},HUe),h.bg=function(){return Tht(this)},h.og=function(){return Tht(this)};var Vte;x(kZ,"EdgeRouterFactory",642),A(1462,1,Fi,PWe),h.pg=function(t){return dSn(l(t,37))},h.If=function(t,r){O_n(l(t,37),r)};var m4t,w4t,y4t,v4t,E4t,m_e,S4t,T4t;x(kZ,"OrthogonalEdgeRouter",1462),A(1455,1,Fi,Ltt),h.pg=function(t){return Kmn(l(t,37))},h.If=function(t,r){nNn(this,l(t,37),r)};var A4t,_4t,k4t,x4t,AL,N4t;x(kZ,"PolylineEdgeRouter",1455),A(1456,1,Bf,GUe),h.Lb=function(t){return pge(l(t,9))},h.Fb=function(t){return this===t},h.Mb=function(t){return pge(l(t,9))},x(kZ,"PolylineEdgeRouter/1",1456),A(1868,1,Ln,qUe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},x(kd,"HyperEdgeCycleDetector/lambda$0$Type",1868),A(1869,1,{},VUe),h.Xe=function(t){return l(t,135).d},x(kd,"HyperEdgeCycleDetector/lambda$1$Type",1869),A(1870,1,Ln,WUe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},x(kd,"HyperEdgeCycleDetector/lambda$2$Type",1870),A(1871,1,{},KUe),h.Xe=function(t){return l(t,135).d},x(kd,"HyperEdgeCycleDetector/lambda$3$Type",1871),A(1872,1,{},YUe),h.Xe=function(t){return l(t,135).d},x(kd,"HyperEdgeCycleDetector/lambda$4$Type",1872),A(1873,1,{},zUe),h.Xe=function(t){return l(t,135).d},x(kd,"HyperEdgeCycleDetector/lambda$5$Type",1873),A(117,1,{34:1,117:1},T6),h.Dd=function(t){return _Qt(this,l(t,117))},h.Fb=function(t){var r;return se(t,117)?(r=l(t,117),this.g==r.g):!1},h.Hb=function(){return this.g},h.Ib=function(){var t,r,o,s;for(t=new fc("{"),s=new V(this.n);s.a"+this.b+" ("+Gtn(this.c)+")"},h.d=0,x(kd,"HyperEdgeSegmentDependency",135),A(519,23,{3:1,34:1,23:1,519:1},Cle);var U1,nv,C4t=fn(kd,"HyperEdgeSegmentDependency/DependencyType",519,bn,Man,Yrn),I4t;A(1874,1,{},IJe),x(kd,"HyperEdgeSegmentSplitter",1874),A(1875,1,{},bQe),h.a=0,h.b=0,x(kd,"HyperEdgeSegmentSplitter/AreaRating",1875),A(341,1,{341:1},RV),h.a=0,h.b=0,h.c=0,x(kd,"HyperEdgeSegmentSplitter/FreeArea",341),A(1876,1,Un,JUe),h.Le=function(t,r){return Unn(l(t,117),l(r,117))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(kd,"HyperEdgeSegmentSplitter/lambda$0$Type",1876),A(1877,1,tn,Zst),h.Ad=function(t){lln(this.a,this.d,this.c,this.b,l(t,117))},h.b=0,x(kd,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),A(1878,1,{},XUe),h.Kb=function(t){return new yt(null,new vt(l(t,117).e,16))},x(kd,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),A(1879,1,{},ZUe),h.Kb=function(t){return new yt(null,new vt(l(t,117).j,16))},x(kd,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),A(1880,1,{},QUe),h.We=function(t){return ue(ce(t))},x(kd,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),A(660,1,{},nW),h.a=0,h.b=0,h.c=0,x(kd,"OrthogonalRoutingGenerator",660),A(1685,1,{},eHe),h.Kb=function(t){return new yt(null,new vt(l(t,117).e,16))},x(kd,"OrthogonalRoutingGenerator/lambda$0$Type",1685),A(1686,1,{},tHe),h.Kb=function(t){return new yt(null,new vt(l(t,117).j,16))},x(kd,"OrthogonalRoutingGenerator/lambda$1$Type",1686),A(668,1,{}),x(xZ,"BaseRoutingDirectionStrategy",668),A(1866,668,{},vZe),h.xg=function(t,r,o){var s,u,f,p,m,y,v,T,N,I,L,U,G;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aUf&&(f=T,u=t,s=new Le(N,f),Gn(p.a,s),D0(this,p,u,s,!1),I=t.r,I&&(L=ue(ce(sa(I.e,0))),s=new Le(L,f),Gn(p.a,s),D0(this,p,u,s,!1),f=r+I.o*o,u=I,s=new Le(L,f),Gn(p.a,s),D0(this,p,u,s,!1)),s=new Le(G,f),Gn(p.a,s),D0(this,p,u,s,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return Ue(),dn},h.Ag=function(){return Ue(),Vt},x(xZ,"NorthToSouthRoutingStrategy",1866),A(1867,668,{},EZe),h.xg=function(t,r,o){var s,u,f,p,m,y,v,T,N,I,L,U,G;if(!(t.r&&!t.q))for(T=r-t.o*o,v=new V(t.n);v.aUf&&(f=T,u=t,s=new Le(N,f),Gn(p.a,s),D0(this,p,u,s,!1),I=t.r,I&&(L=ue(ce(sa(I.e,0))),s=new Le(L,f),Gn(p.a,s),D0(this,p,u,s,!1),f=r-I.o*o,u=I,s=new Le(L,f),Gn(p.a,s),D0(this,p,u,s,!1)),s=new Le(G,f),Gn(p.a,s),D0(this,p,u,s,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return Ue(),Vt},h.Ag=function(){return Ue(),dn},x(xZ,"SouthToNorthRoutingStrategy",1867),A(1865,668,{},SZe),h.xg=function(t,r,o){var s,u,f,p,m,y,v,T,N,I,L,U,G;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aUf&&(f=T,u=t,s=new Le(f,N),Gn(p.a,s),D0(this,p,u,s,!0),I=t.r,I&&(L=ue(ce(sa(I.e,0))),s=new Le(f,L),Gn(p.a,s),D0(this,p,u,s,!0),f=r+I.o*o,u=I,s=new Le(f,L),Gn(p.a,s),D0(this,p,u,s,!0)),s=new Le(f,G),Gn(p.a,s),D0(this,p,u,s,!0)))},h.yg=function(t){return t.i.n.b+t.n.b+t.a.b},h.zg=function(){return Ue(),Zt},h.Ag=function(){return Ue(),Wt},x(xZ,"WestToEastRoutingStrategy",1865),A(819,1,{},w0e),h.Ib=function(){return Qd(this.a)},h.b=0,h.c=!1,h.d=!1,h.f=0,x(Oy,"NubSpline",819),A(415,1,{415:1},wwt,Dat),x(Oy,"NubSpline/PolarCP",415),A(1457,1,Fi,F1t),h.pg=function(t){return L0n(l(t,37))},h.If=function(t,r){SNn(this,l(t,37),r)};var R4t,O4t,D4t,L4t,M4t;x(Oy,"SplineEdgeRouter",1457),A(275,1,{275:1},YP),h.Ib=function(){return this.a+" ->("+this.c+") "+this.b},h.c=0,x(Oy,"SplineEdgeRouter/Dependency",275),A(457,23,{3:1,34:1,23:1,457:1},Ile);var H1,u2,P4t=fn(Oy,"SplineEdgeRouter/SideToProcess",457,bn,jan,Xrn),j4t;A(1458,1,Ln,nHe),h.Mb=function(t){return _C(),!l(t,134).o},x(Oy,"SplineEdgeRouter/lambda$0$Type",1458),A(1459,1,{},rHe),h.Xe=function(t){return _C(),l(t,134).v+1},x(Oy,"SplineEdgeRouter/lambda$1$Type",1459),A(1460,1,tn,mtt),h.Ad=function(t){von(this.a,this.b,l(t,49))},x(Oy,"SplineEdgeRouter/lambda$2$Type",1460),A(1461,1,tn,wtt),h.Ad=function(t){Eon(this.a,this.b,l(t,49))},x(Oy,"SplineEdgeRouter/lambda$3$Type",1461),A(134,1,{34:1,134:1},Amt,A0e),h.Dd=function(t){return xQt(this,l(t,134))},h.b=0,h.e=!1,h.f=0,h.g=0,h.j=!1,h.k=!1,h.n=0,h.o=!1,h.p=!1,h.q=!1,h.s=0,h.u=0,h.v=0,h.F=0,x(Oy,"SplineSegment",134),A(460,1,{460:1},iHe),h.a=0,h.b=!1,h.c=!1,h.d=!1,h.e=!1,h.f=0,x(Oy,"SplineSegment/EdgeInformation",460),A(1179,1,{},oHe),x(Sp,lwe,1179),A(1180,1,Un,sHe),h.Le=function(t,r){return lvn(l(t,121),l(r,121))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Sp,I2t,1180),A(1178,1,{},LQe),x(Sp,"MrTree",1178),A(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},f8),h.bg=function(){return Kmt(this)},h.og=function(){return Kmt(this)};var OB,XI,ZI,QI,w_e=fn(Sp,"TreeLayoutPhases",402,bn,Gcn,Zrn),F4t;A(1093,207,nm,bit),h.kf=function(t,r){var o,s,u,f,p,m,y,v;for(Ke(We(ye(t,(Ps(),z_e))))||D3((o=new RA((t1(),new Kp(t))),o)),p=r.dh(IZ),p.Tg("build tGraph",1),m=(y=new n6,qs(y,t),Ae(y,(xr(),t4),t),v=new hn,YTn(t,y,v),fAn(t,y,v),y),p.Ug(),p=r.dh(IZ),p.Tg("Split graph",1),f=tAn(this.a,m),p.Ug(),u=new V(f);u.a"+Pb(this.c):"e_"+Ir(this)},x(XC,"TEdge",65),A(121,151,{3:1,121:1,105:1,151:1},n6),h.Ib=function(){var t,r,o,s,u;for(u=null,s=An(this.b,0);s.b!=s.d.c;)o=l(Sn(s),41),u+=(o.c==null||o.c.length==0?"n_"+o.g:"n_"+o.c)+` -`;for(r=An(this.a,0);r.b!=r.d.c;)t=l(Sn(r),65),u+=(t.b&&t.c?Pb(t.b)+"->"+Pb(t.c):"e_"+Ir(t))+` -`;return u};var j3n=x(XC,"TGraph",121);A(640,497,{3:1,497:1,640:1,105:1,151:1}),x(XC,"TShape",640),A(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},MK),h.Ib=function(){return Pb(this)};var DB=x(XC,"TNode",41);A(239,1,Eh,Xh),h.Ic=function(t){co(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},x(XC,"TNode/2",239),A(335,1,Wi,qv),h.Nb=function(t){oo(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return rO(this.a)},h.Qb=function(){cK(this.a)},x(XC,"TNode/2/1",335),A(1910,1,_r,hHe),h.If=function(t,r){ZNn(this,l(t,121),r)},x(Ta,"CompactionProcessor",1910),A(1911,1,Un,MJe),h.Le=function(t,r){return dhn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$0$Type",1911),A(1912,1,Ln,Ett),h.Mb=function(t){return Aan(this.b,this.a,l(t,49))},h.a=0,h.b=0,x(Ta,"CompactionProcessor/lambda$1$Type",1912),A(1921,1,Un,pHe),h.Le=function(t,r){return hsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$10$Type",1921),A(1922,1,Un,gHe),h.Le=function(t,r){return Otn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$11$Type",1922),A(1923,1,Un,bHe),h.Le=function(t,r){return psn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$12$Type",1923),A(1913,1,Ln,PJe),h.Mb=function(t){return wtn(this.a,l(t,49))},h.a=0,x(Ta,"CompactionProcessor/lambda$2$Type",1913),A(1914,1,Ln,jJe),h.Mb=function(t){return ytn(this.a,l(t,49))},h.a=0,x(Ta,"CompactionProcessor/lambda$3$Type",1914),A(1915,1,Ln,mHe),h.Mb=function(t){return l(t,41).c.indexOf(RF)==-1},x(Ta,"CompactionProcessor/lambda$4$Type",1915),A(1916,1,{},FJe),h.Kb=function(t){return Scn(this.a,l(t,41))},h.a=0,x(Ta,"CompactionProcessor/lambda$5$Type",1916),A(1917,1,{},$Je),h.Kb=function(t){return Rdn(this.a,l(t,41))},h.a=0,x(Ta,"CompactionProcessor/lambda$6$Type",1917),A(1918,1,Un,BJe),h.Le=function(t,r){return Bln(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$7$Type",1918),A(1919,1,Un,UJe),h.Le=function(t,r){return Uln(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$8$Type",1919),A(1920,1,Un,wHe),h.Le=function(t,r){return Dtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$9$Type",1920),A(1908,1,_r,yHe),h.If=function(t,r){qSn(l(t,121),r)},x(Ta,"DirectionProcessor",1908),A(x1,1,_r,hit),h.If=function(t,r){dAn(this,l(t,121),r)},x(Ta,"FanProcessor",x1),A(1263,1,_r,vHe),h.If=function(t,r){Fwt(l(t,121),r)},x(Ta,"GraphBoundsProcessor",1263),A(1264,1,{},EHe),h.We=function(t){return l(t,41).e.a},x(Ta,"GraphBoundsProcessor/lambda$0$Type",1264),A(1265,1,{},SHe),h.We=function(t){return l(t,41).e.b},x(Ta,"GraphBoundsProcessor/lambda$1$Type",1265),A(1266,1,{},THe),h.We=function(t){return QQt(l(t,41))},x(Ta,"GraphBoundsProcessor/lambda$2$Type",1266),A(1267,1,{},AHe),h.We=function(t){return een(l(t,41))},x(Ta,"GraphBoundsProcessor/lambda$3$Type",1267),A(265,23,{3:1,34:1,23:1,265:1,177:1},n0),h.bg=function(){switch(this.g){case 0:return new $Ze;case 1:return new hit;case 2:return new FZe;case 3:return new CHe;case 4:return new kHe;case 8:return new _He;case 5:return new yHe;case 6:return new RHe;case 7:return new hHe;case 9:return new vHe;case 10:return new OHe;default:throw K(new jt(LX+(this.f!=null?this.f:""+this.g)))}};var y_e,v_e,E_e,S_e,T_e,A_e,__e,k_e,x_e,N_e,Wte,F3n=fn(Ta,MX,265,bn,wht,Qrn),$4t;A(1907,1,_r,_He),h.If=function(t,r){Jxn(l(t,121),r)},x(Ta,"LevelCoordinatesProcessor",1907),A(1905,1,_r,kHe),h.If=function(t,r){g2n(this,l(t,121),r)},h.a=0,x(Ta,"LevelHeightProcessor",1905),A(1906,1,Eh,xHe),h.Ic=function(t){co(this,t)},h.Jc=function(){return St(),HA(),Uk},x(Ta,"LevelHeightProcessor/1",1906),A(1901,1,_r,FZe),h.If=function(t,r){NSn(this,l(t,121),r)},x(Ta,"LevelProcessor",1901),A(1902,1,Ln,NHe),h.Mb=function(t){return Ke(We(j(l(t,41),(xr(),z1))))},x(Ta,"LevelProcessor/lambda$0$Type",1902),A(1903,1,_r,CHe),h.If=function(t,r){vyn(this,l(t,121),r)},h.a=0,x(Ta,"NeighborsProcessor",1903),A(1904,1,Eh,IHe),h.Ic=function(t){co(this,t)},h.Jc=function(){return St(),HA(),Uk},x(Ta,"NeighborsProcessor/1",1904),A(1909,1,_r,RHe),h.If=function(t,r){cAn(this,l(t,121),r)},h.a=0,x(Ta,"NodePositionProcessor",1909),A(1899,1,_r,$Ze),h.If=function(t,r){J_n(this,l(t,121),r)},x(Ta,"RootProcessor",1899),A(1924,1,_r,OHe),h.If=function(t,r){ibn(l(t,121),r)},x(Ta,"Untreeifyer",1924),A(386,23,{3:1,34:1,23:1,386:1},Hq);var _L,Kte,C_e,I_e=fn(BD,"EdgeRoutingMode",386,bn,Pun,ein),B4t,kL,ux,Yte,R_e,O_e,Jte,Xte,D_e,Zte,L_e,Qte,e4,ene,LB,MB,sd,Id,cx,t4,n4,xg,M_e,U4t,tne,z1,xL,NL;A(854,1,td,jWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Yye),""),NSt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Lt(),!1)),(A1(),Ai)),Yr),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Jye),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Xye),""),"Tree Level"),"The index for the tree level the node is in"),Re(0)),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Zye),""),NSt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Re(-1)),wo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Qye),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),F_e),$r),J_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,eve),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),P_e),$r),I_e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,tve),""),"Search Order"),"Which search order to use when computing a spanning tree."),j_e),$r),Z_e),ct(xt)))),pEt((new FWe,t))};var H4t,z4t,G4t,P_e,q4t,V4t,j_e,W4t,K4t,F_e;x(BD,"MrTreeMetaDataProvider",854),A(999,1,td,FWe),h.tf=function(t){pEt(t)};var Y4t,$_e,B_e,aw,U_e,H_e,nne,J4t,X4t,Z4t,Q4t,eRt,tRt,nRt,z_e,G_e,q_e,rRt,c2,PB,V_e,iRt,W_e,rne,oRt,sRt,aRt,K_e,uRt,Yf,Y_e;x(BD,"MrTreeOptions",999),A(wg,1,{},DHe),h.uf=function(){var t;return t=new bit,t},h.vf=function(t){},x(BD,"MrTreeOptions/MrtreeFactory",wg),A(354,23,{3:1,34:1,23:1,354:1},h8);var ine,jB,one,sne,J_e=fn(BD,"OrderWeighting",354,bn,Ucn,tin),cRt;A(430,23,{3:1,34:1,23:1,430:1},Rle);var X_e,ane,Z_e=fn(BD,"TreeifyingOrder",430,bn,Fan,nin),lRt;A(1463,1,Fi,CWe),h.pg=function(t){return l(t,121),dRt},h.If=function(t,r){Kfn(this,l(t,121),r)};var dRt;x("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),A(1464,1,Fi,IWe),h.pg=function(t){return l(t,121),fRt},h.If=function(t,r){OSn(this,l(t,121),r)};var fRt;x(_k,"NodeOrderer",1464),A(1471,1,{},UXt),h.rd=function(t){return mot(t)},x(_k,"NodeOrderer/0methodref$lambda$6$Type",1471),A(1465,1,Ln,BHe),h.Mb=function(t){return $S(),Ke(We(j(l(t,41),(xr(),z1))))},x(_k,"NodeOrderer/lambda$0$Type",1465),A(1466,1,Ln,UHe),h.Mb=function(t){return $S(),l(j(l(t,41),(Ps(),c2)),15).a<0},x(_k,"NodeOrderer/lambda$1$Type",1466),A(1467,1,Ln,zJe),h.Mb=function(t){return Cfn(this.a,l(t,41))},x(_k,"NodeOrderer/lambda$2$Type",1467),A(1468,1,Ln,HJe),h.Mb=function(t){return vcn(this.a,l(t,41))},x(_k,"NodeOrderer/lambda$3$Type",1468),A(1469,1,Un,HHe),h.Le=function(t,r){return Xdn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_k,"NodeOrderer/lambda$4$Type",1469),A(1470,1,Ln,zHe),h.Mb=function(t){return $S(),l(j(l(t,41),(xr(),Xte)),15).a!=0},x(_k,"NodeOrderer/lambda$5$Type",1470),A(1472,1,Fi,UWe),h.pg=function(t){return l(t,121),hRt},h.If=function(t,r){FTn(this,l(t,121),r)},h.b=0;var hRt;x("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),A(1473,1,Fi,HWe),h.pg=function(t){return l(t,121),pRt},h.If=function(t,r){yTn(l(t,121),r)};var pRt,$3n=x(ac,"EdgeRouter",1473);A(1475,1,Un,MHe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/0methodref$compare$Type",1475),A(1480,1,{},PHe),h.We=function(t){return ue(ce(t))},x(ac,"EdgeRouter/1methodref$doubleValue$Type",1480),A(1482,1,Un,jHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/2methodref$compare$Type",1482),A(1484,1,Un,FHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/3methodref$compare$Type",1484),A(1486,1,{},LHe),h.We=function(t){return ue(ce(t))},x(ac,"EdgeRouter/4methodref$doubleValue$Type",1486),A(1488,1,Un,$He),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/5methodref$compare$Type",1488),A(1490,1,Un,GHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/6methodref$compare$Type",1490),A(1474,1,{},qHe),h.Kb=function(t){return cp(),l(j(l(t,41),(Ps(),Yf)),15)},x(ac,"EdgeRouter/lambda$0$Type",1474),A(1485,1,{},VHe),h.Kb=function(t){return qtn(l(t,41))},x(ac,"EdgeRouter/lambda$11$Type",1485),A(1487,1,{},Ttt),h.Kb=function(t){return won(this.b,this.a,l(t,41))},h.a=0,h.b=0,x(ac,"EdgeRouter/lambda$13$Type",1487),A(1489,1,{},Stt),h.Kb=function(t){return Vtn(this.b,this.a,l(t,41))},h.a=0,h.b=0,x(ac,"EdgeRouter/lambda$15$Type",1489),A(1491,1,Un,WHe),h.Le=function(t,r){return P1n(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$17$Type",1491),A(1492,1,Un,KHe),h.Le=function(t,r){return j1n(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$18$Type",1492),A(1493,1,Un,YHe),h.Le=function(t,r){return $1n(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$19$Type",1493),A(1476,1,Ln,GJe),h.Mb=function(t){return iun(this.a,l(t,41))},h.a=0,x(ac,"EdgeRouter/lambda$2$Type",1476),A(1494,1,Un,JHe),h.Le=function(t,r){return F1n(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$20$Type",1494),A(1477,1,Un,XHe),h.Le=function(t,r){return uon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$3$Type",1477),A(1478,1,Un,ZHe),h.Le=function(t,r){return con(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"EdgeRouter/lambda$4$Type",1478),A(1479,1,{},QHe),h.Kb=function(t){return Ytn(l(t,41))},x(ac,"EdgeRouter/lambda$5$Type",1479),A(1481,1,{},Att),h.Kb=function(t){return yon(this.b,this.a,l(t,41))},h.a=0,h.b=0,x(ac,"EdgeRouter/lambda$7$Type",1481),A(1483,1,{},_tt),h.Kb=function(t){return Ktn(this.b,this.a,l(t,41))},h.a=0,h.b=0,x(ac,"EdgeRouter/lambda$9$Type",1483),A(669,1,{669:1},x1t),h.e=0,h.f=!1,h.g=!1,x(ac,"MultiLevelEdgeNodeNodeGap",669),A(1881,1,Un,eze),h.Le=function(t,r){return gun(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),A(1882,1,Un,tze),h.Le=function(t,r){return bun(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(ac,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var l2;A(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},Ole),h.bg=function(){return ggt(this)},h.og=function(){return ggt(this)};var FB,d2,Q_e=fn(rve,"RadialLayoutPhases",490,bn,$an,rin),gRt;A(1094,207,nm,MQe),h.kf=function(t,r){var o,s,u,f,p,m;if(o=pwt(this,t),r.Tg("Radial layout",o.c.length),Ke(We(ye(t,(T1(),lke))))||D3((s=new RA((t1(),new Kp(t))),s)),m=j0n(t),Vn(t,(aE(),l2),m),!m)throw K(new jt(ISt));for(u=ue(ce(ye(t,UB))),u==0&&(u=Bmt(t)),Vn(t,UB,u),p=new V(pwt(this,t));p.a=3)for(we=l(ie(le,0),19),Ge=l(ie(le,1),19),f=0;f+2=we.f+Ge.f+T||Ge.f>=Ee.f+we.f+T){lt=!0;break}else++f;else lt=!0;if(!lt){for(I=le.i,m=new en(le);m.e!=m.i.gc();)p=l(rn(m),19),Vn(p,(_n(),BL),Re(I)),--I;Vyt(t,new iS),r.Ug();return}for(o=(O3(this.a),pc(this.a,(Jj(),r4),l(ye(t,Uke),173)),pc(this.a,HB,l(ye(t,Mke),173)),pc(this.a,yne,l(ye(t,Fke),173)),Yle(this.a,(Ct=new ui,Fn(Ct,r4,(v7(),Sne)),Fn(Ct,HB,Ene),Ke(We(ye(t,Dke)))&&Fn(Ct,r4,Tne),Ke(We(ye(t,Oke)))&&Fn(Ct,r4,vne),Ct)),MC(this.a,t)),v=1/o.c.length,U=new V(o);U.a1)throw K(new Af("The given graph is not an acyclic tree!"));ya(u,0),gu(u,0)}for(Avt(this,I,0),p=0,y=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));y.e!=y.i.gc();)m=l(rn(y),19),Vn(m,LL,Re(p)),p+=1;for(N=new V(o);N.a0&&Opt((Yt(r-1,t.length),t.charCodeAt(r-1)),H2t);)--r;if(s>=r)throw K(new jt("The given string does not contain any numbers."));if(u=ky((no(s,r,t.length),t.substr(s,r-s)),`,|;|\r| -`),u.length!=2)throw K(new jt("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=yy(vy(u[0])),this.b=yy(vy(u[1]))}catch(f){throw f=ci(f),se(f,133)?(o=f,K(new jt(z2t+o))):K(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=x(LD,"KVector",8);A(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Du,F9,Prt),h.Nc=function(){return lpn(this)},h.ag=function(t){var r,o,s,u,f,p;s=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),ec(this);try{for(o=0,f=0,u=0,p=0;o0&&(f%2==0?u=yy(s[o]):p=yy(s[o]),f>0&&f%2!=0&&Gn(this,new Le(u,p)),++f),++o}catch(m){throw m=ci(m),se(m,133)?(r=m,K(new jt("The given string does not match the expected format for vectors."+r))):K(m)}},h.Ib=function(){var t,r,o;for(t=new fc("("),r=An(this,0);r.b!=r.d.c;)o=l(Sn(r),8),zn(t,o.a+","+o.b),r.b!=r.d.c&&(t.a+="; ");return(t.a+=")",t).a};var Rxe=x(LD,"KVectorChain",79);A(259,23,{3:1,34:1,23:1,259:1},r3);var rre,ZB,QB,ML,PL,eU,Oxe=fn(Pa,"Alignment",259,bn,hdn,Oin),p6t;A(984,1,td,YWe),h.tf=function(t){Nyt(t)};var Dxe,ire,g6t,Lxe,Mxe,b6t,Pxe,m6t,w6t,jxe,Fxe,y6t;x(Pa,"BoxLayouterOptions",984),A(985,1,{},mGe),h.uf=function(){var t;return t=new vGe,t},h.vf=function(t){},x(Pa,"BoxLayouterOptions/BoxFactory",985),A(300,23,{3:1,34:1,23:1,300:1},i3);var f4,ore,h4,p4,g4,sre,are=fn(Pa,"ContentAlignment",300,bn,fdn,Din),v6t;A(696,1,td,Lue),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,eTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),BT)),Ye),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,tTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),H3n),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,_ye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),$xe),$r),Oxe),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,bk),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Vve),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),lf),Rxe),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,xF),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Uxe),$T),are),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$D),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Hxe),$r),w4),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,FD),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),qxe),$r),vre),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Gve),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,kF),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Wxe),$r),PNe),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),iNe),lf),j2e),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,mk),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,CF),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,wk),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,uF),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),cNe),$r),$Ne),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,NF),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),lf),$i),Ar(ri,Z(X(cf,1),Ce,161,0,[Ng,kp]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,xD),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),wo),Ti),Ar(ri,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,aF),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,GC),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Pye),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Jxe),lf),Rxe),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Bye),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Uye),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,g3n),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),lf),K3n),Ar(xt,Z(X(cf,1),Ce,161,0,[kp]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,nTt),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Qi),fi),ct(kp)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,TZ),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Xxe),lf),P2e),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Tye),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Ai),Yr),Ar(ri,Z(X(cf,1),Ce,161,0,[Rd,Ng,kp]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,rTt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),fi),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,iTt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,oTt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,CD),""),YSt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),Ai),Yr),ct(xt)))),zr(t,CD,B0,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,sTt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,aTt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Re(100)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,uTt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,cTt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Re(4e3)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,lTt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Re(400)),wo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,dTt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,fTt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,hTt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,pTt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,qve),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Bxe),$r),ZNe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,gTt),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),Yxe),$r),HNe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,bTt),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),Kxe),$r),TNe),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,dye),of),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,fye),of),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,hye),of),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,pye),of),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,RX),of),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,yZ),of),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,gye),of),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,wye),of),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,bye),of),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,mye),of),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,F0),of),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,yye),of),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vye),of),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),fi),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Eye),of),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),lf),bDt),Ar(ri,Z(X(cf,1),Ce,161,0,[Rd,Ng,kp]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,zye),of),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),yNe),lf),P2e),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,SZ),yTt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),wo),Ti),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,SZ,EZ,O6t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,EZ),yTt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),oNe),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Nye),vTt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Qxe),lf),j2e),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vk),vTt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),eNe),$T),Bo),Ar(ri,Z(X(cf,1),Ce,161,0,[kp]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Rye),jF),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),aNe),$r),S4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Oye),jF),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),$r),S4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Dye),jF),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),$r),S4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Lye),jF),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),$r),S4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Mye),jF),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),$r),S4),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,ME),JZ),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),tNe),$T),_4),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,pT),JZ),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),rNe),$T),zNe),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,gT),JZ),"Node Size Minimum"),"The minimal size to which a node can be reduced."),nNe),lf),$i),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,yk),JZ),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Fye),wZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),zxe),$r),ANe),ct(kp)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,ND),wZ),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Ai),Yr),ct(kp)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,b3n),"font"),"Font Name"),"Font name used for a label."),BT),Ye),ct(kp)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mTt),"font"),"Font Size"),"Font size used for a label."),wo),Ti),ct(kp)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Hye),XZ),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),lf),$i),ct(Ng)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,$ye),XZ),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),wo),Ti),ct(Ng)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Aye),XZ),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),fNe),$r),Co),ct(Ng)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Sye),XZ),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),fi),ct(Ng)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Ek),Yve),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),lNe),$T),uU),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Cye),Yve),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Iye),Yve),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,KZ),Ik),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Re(3)),wo),Ti),ct(xt)))),zr(t,KZ,YZ,G6t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Wve),Ik),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),Re(4)),wo),Ti),ct(xt)))),zr(t,Wve,KZ,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,ID),Ik),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),fi),ct(xt)))),zr(t,ID,B0,U6t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,YZ),Ik),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),lf),z3n),ct(ri)))),zr(t,YZ,B0,H6t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,RD),Ik),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),fi),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,RD,B0,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,OD),Ik),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),fi),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,OD,B0,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,B0),Ik),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),$r),qNe),ct(ri)))),zr(t,B0,yk,null),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Kve),Ik),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),fi),ct(xt)))),zr(t,Kve,B0,B6t),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,kye),ETt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,xye),ETt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ai),Yr),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,jye),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),fi),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,wTt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Vxe),$r),INe),ct(Rd)))),KN(t,new OS(HN(jA(PA(new Z2,$t),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),KN(t,new OS(HN(jA(PA(new Z2,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),KN(t,new OS(HN(jA(PA(new Z2,Ga),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),KN(t,new OS(HN(jA(PA(new Z2,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),KN(t,new OS(HN(jA(PA(new Z2,nve),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),KN(t,new OS(HN(jA(PA(new Z2,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),KN(t,new OS(HN(jA(PA(new Z2,Qc),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),fyt((new JWe,t)),Nyt((new YWe,t)),jwt((new XWe,t))};var UT,E6t,$xe,px,S6t,T6t,Bxe,ov,sv,A6t,jL,Uxe,FL,Em,Hxe,tU,ure,zxe,Gxe,qxe,_6t,Vxe,k6t,h2,Wxe,x6t,$L,cre,b4,lre,N6t,Kxe,C6t,Yxe,p2,Jxe,xp,Xxe,Zxe,Qxe,g2,eNe,Sm,tNe,av,b2,nNe,G1,rNe,nU,m4,df,iNe,I6t,oNe,R6t,O6t,sNe,aNe,dre,fre,hre,pre,uNe,Hu,gx,cNe,gre,bre,uv,lNe,dNe,m2,fNe,HT,BL,mre,cv,D6t,wre,L6t,M6t,P6t,j6t,hNe,pNe,zT,gNe,rU,bNe,mNe,Od,F6t,wNe,yNe,vNe,bx,lv,mx,GT,$6t,B6t,iU,U6t,oU,H6t,z6t,G6t,q6t;x(Pa,"CoreOptions",696),A(87,23,{3:1,34:1,23:1,87:1},EO);var ff,is,cs,hf,il,w4=fn(Pa,"Direction",87,bn,Sln,Lin),V6t;A(280,23,{3:1,34:1,23:1,280:1},m8);var sU,UL,ENe,SNe,TNe=fn(Pa,"EdgeCoords",280,bn,Vcn,Min),W6t;A(281,23,{3:1,34:1,23:1,281:1},Jq);var wx,dv,yx,ANe=fn(Pa,"EdgeLabelPlacement",281,bn,Vun,Pin),K6t;A(225,23,{3:1,34:1,23:1,225:1},w8);var vx,HL,qT,yre,vre=fn(Pa,"EdgeRouting",225,bn,Wcn,jin),Y6t;A(328,23,{3:1,34:1,23:1,328:1},o3);var _Ne,kNe,xNe,NNe,Ere,CNe,INe=fn(Pa,"EdgeType",328,bn,ddn,Fin),J6t;A(982,1,td,JWe),h.tf=function(t){fyt(t)};var RNe,ONe,DNe,LNe,X6t,MNe,y4;x(Pa,"FixedLayouterOptions",982),A(983,1,{},wGe),h.uf=function(){var t;return t=new xGe,t},h.vf=function(t){},x(Pa,"FixedLayouterOptions/FixedFactory",983),A(348,23,{3:1,34:1,23:1,348:1},Xq);var Cg,aU,v4,PNe=fn(Pa,"HierarchyHandling",348,bn,Kun,$in),Z6t,z3n=Hr(Pa,"ITopdownSizeApproximator");A(293,23,{3:1,34:1,23:1,293:1},y8);var Ih,q1,zL,GL,Q6t=fn(Pa,"LabelSide",293,bn,Kcn,Bin),eDt;A(96,23,{3:1,34:1,23:1,96:1},Jv);var Np,ad,Cl,ud,xc,cd,Il,Rh,ld,Bo=fn(Pa,"NodeLabelPlacement",96,bn,bfn,Uin),tDt;A(260,23,{3:1,34:1,23:1,260:1},SO);var jNe,E4,V1,FNe,qL,S4=fn(Pa,"PortAlignment",260,bn,jln,Hin),nDt;A(103,23,{3:1,34:1,23:1,103:1},s3);var Tm,fa,Oh,Ex,pf,W1,$Ne=fn(Pa,"PortConstraints",103,bn,pdn,zin),rDt;A(282,23,{3:1,34:1,23:1,282:1},a3);var T4,A4,Cp,VL,K1,VT,uU=fn(Pa,"PortLabelPlacement",282,bn,gdn,Gin),iDt;A(64,23,{3:1,34:1,23:1,64:1},TO);var Zt,Vt,ol,sl,iu,Wa,gf,dd,Iu,vu,ka,Ru,ou,su,fd,Nc,Cc,Rl,dn,Cs,Wt,Co=fn(Pa,"PortSide",64,bn,Tln,Vin),oDt;A(986,1,td,XWe),h.tf=function(t){jwt(t)};var sDt,aDt,BNe,uDt,cDt;x(Pa,"RandomLayouterOptions",986),A(987,1,{},yGe),h.uf=function(){var t;return t=new RGe,t},h.vf=function(t){},x(Pa,"RandomLayouterOptions/RandomFactory",987),A(301,23,{3:1,34:1,23:1,301:1},Zq);var WL,Sre,UNe,HNe=fn(Pa,"ShapeCoords",301,bn,qun,qin),lDt;A(381,23,{3:1,34:1,23:1,381:1},v8);var fv,KL,YL,Am,_4=fn(Pa,"SizeConstraint",381,bn,Ycn,Win),dDt;A(267,23,{3:1,34:1,23:1,267:1},Xv);var JL,cU,Sx,Tre,XL,k4,lU,dU,fU,zNe=fn(Pa,"SizeOptions",267,bn,Tfn,Kin),fDt;A(283,23,{3:1,34:1,23:1,283:1},Qq);var hv,GNe,hU,qNe=fn(Pa,"TopdownNodeTypes",283,bn,Wun,Yin),hDt;A(290,23,$F);var VNe,Are,WNe,KNe,ZL=fn(Pa,"TopdownSizeApproximator",290,bn,Jcn,Jin);A(978,290,$F,Eot),h.Sg=function(t){return b1t(t)},fn(Pa,"TopdownSizeApproximator/1",978,ZL,null,null),A(979,290,$F,ost),h.Sg=function(t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt,Ct;for(r=l(ye(t,(_n(),cv)),144),Ge=(e1(),L=new PN,L),eD(Ge,t),lt=new hn,f=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));f.e!=f.i.gc();)s=l(rn(f),19),oe=(I=new PN,I),D7(oe,Ge),eD(oe,s),Ct=b1t(s),r0(oe,b.Math.max(s.g,Ct.a),b.Math.max(s.f,Ct.b)),eu(lt.f,s,oe);for(u=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));u.e!=u.i.gc();)for(s=l(rn(u),19),T=new en((!s.e&&(s.e=new Et(Cr,s,7,4)),s.e));T.e!=T.i.gc();)v=l(rn(T),74),Ee=l(Es(Zo(lt.f,s)),19),we=l(Ut(lt,ie((!v.c&&(v.c=new Et(pn,v,5,8)),v.c),0)),19),le=(N=new CG,N),Tn((!le.b&&(le.b=new Et(pn,le,4,7)),le.b),Ee),Tn((!le.c&&(le.c=new Et(pn,le,5,8)),le.c),we),O7(le,Br(Ee)),eD(le,v);G=l(KO(r.f),207);try{G.kf(Ge,new NG),ahe(r.f,G)}catch(Dt){throw Dt=ci(Dt),se(Dt,102)?(U=Dt,K(U)):K(Dt)}return Gc(Ge,sv)||Gc(Ge,ov)||UJ(Ge),y=ue(ce(ye(Ge,sv))),m=ue(ce(ye(Ge,ov))),p=y/m,o=ue(ce(ye(Ge,lv)))*b.Math.sqrt((!Ge.a&&(Ge.a=new xe(En,Ge,10,11)),Ge.a).i),dt=l(ye(Ge,df),100),ne=dt.b+dt.c+1,J=dt.d+dt.a+1,new Le(b.Math.max(ne,o),b.Math.max(J,o/p))},fn(Pa,"TopdownSizeApproximator/2",979,ZL,null,null),A(980,290,$F,Oat),h.Sg=function(t){var r,o,s,u,f,p;return o=ue(ce(ye(t,(_n(),lv)))),r=o/ue(ce(ye(t,bx))),s=OAn(t),f=l(ye(t,df),100),u=ue(ce(ze(Od))),Br(t)&&(u=ue(ce(ye(Br(t),Od)))),p=Qh(new Le(o,r),s),br(p,new Le(-(f.b+f.c)-u,-(f.d+f.a)-u))},fn(Pa,"TopdownSizeApproximator/3",980,ZL,null,null),A(981,290,$F,sst),h.Sg=function(t){var r,o,s,u,f,p,m,y,v,T;for(p=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));p.e!=p.i.gc();)f=l(rn(p),19),ye(f,(_n(),oU))!=null&&(!f.a&&(f.a=new xe(En,f,10,11)),!!f.a)&&(!f.a&&(f.a=new xe(En,f,10,11)),f.a).i>0?(o=l(ye(f,oU),525),T=o.Sg(f),v=l(ye(f,df),100),r0(f,b.Math.max(f.g,T.a+v.b+v.c),b.Math.max(f.f,T.b+v.d+v.a))):(!f.a&&(f.a=new xe(En,f,10,11)),f.a).i!=0&&r0(f,ue(ce(ye(f,lv))),ue(ce(ye(f,lv)))/ue(ce(ye(f,bx))));r=l(ye(t,(_n(),cv)),144),y=l(KO(r.f),207);try{y.kf(t,new NG),ahe(r.f,y)}catch(N){throw N=ci(N),se(N,102)?(m=N,K(m)):K(N)}return Vn(t,UT,Rk),kct(t),UJ(t),u=ue(ce(ye(t,sv))),s=ue(ce(ye(t,ov))),new Le(u,s)},fn(Pa,"TopdownSizeApproximator/4",981,ZL,null,null);var pDt;A(346,1,{861:1},iS),h.Tg=function(t,r){return Ibt(this,t,r)},h.Ug=function(){imt(this)},h.Vg=function(){return this.q},h.Wg=function(){return this.f?xP(this.f):null},h.Xg=function(){return xP(this.a)},h.Yg=function(){return this.p},h.Zg=function(){return!1},h.$g=function(){return this.n},h._g=function(){return this.p!=null&&!this.b},h.ah=function(t){var r;this.n&&(r=t,je(this.f,r))},h.bh=function(t,r){var o,s;this.n&&t&&fcn(this,(o=new Ast,s=vJ(o,t),vxn(o),s),(Lj(),kre))},h.dh=function(t){var r;return this.b?null:(r=efn(this,this.g),Gn(this.a,r),r.i=this,this.d=t,r)},h.eh=function(t){t>0&&!this.b&&rge(this,t)},h.b=!1,h.c=0,h.d=-1,h.e=null,h.f=null,h.g=-1,h.j=!1,h.k=!1,h.n=!1,h.o=0,h.q=0,h.r=0,x(Vs,"BasicProgressMonitor",346),A(713,207,nm,vGe),h.kf=function(t,r){Vyt(t,r)},x(Vs,"BoxLayoutProvider",713),A(974,1,Un,nXe),h.Le=function(t,r){return m2n(this,l(t,19),l(r,19))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},h.a=!1,x(Vs,"BoxLayoutProvider/1",974),A(168,1,{168:1},dj,jrt),h.Ib=function(){return this.c?Jme(this.c):Qd(this.b)},x(Vs,"BoxLayoutProvider/Group",168),A(327,23,{3:1,34:1,23:1,327:1},E8);var YNe,JNe,XNe,_re,ZNe=fn(Vs,"BoxLayoutProvider/PackingMode",327,bn,Xcn,Xin),gDt;A(975,1,Un,EGe),h.Le=function(t,r){return man(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Vs,"BoxLayoutProvider/lambda$0$Type",975),A(976,1,Un,SGe),h.Le=function(t,r){return san(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Vs,"BoxLayoutProvider/lambda$1$Type",976),A(977,1,Un,TGe),h.Le=function(t,r){return aan(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Vs,"BoxLayoutProvider/lambda$2$Type",977),A(1350,1,{837:1},AGe),h.Lg=function(t,r){return q9(),!se(r,176)||BQe((zS(),l(t,176)),r)},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),A(1351,1,tn,rXe),h.Ad=function(t){dpn(this.a,l(t,149))},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),A(1352,1,tn,_Ge),h.Ad=function(t){l(t,105),q9()},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),A(1356,1,tn,iXe),h.Ad=function(t){jfn(this.a,l(t,105))},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),A(1354,1,Ln,Ntt),h.Mb=function(t){return Yhn(this.a,this.b,l(t,149))},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),A(1353,1,Ln,Ctt),h.Mb=function(t){return Wtn(this.a,this.b,l(t,837))},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),A(1355,1,tn,Itt),h.Ad=function(t){esn(this.a,this.b,l(t,149))},x(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),A(939,1,{},kGe),h.Kb=function(t){return Cnt(t)},h.Fb=function(t){return this===t},x(Vs,"ElkUtil/lambda$0$Type",939),A(940,1,tn,Rtt),h.Ad=function(t){wvn(this.a,this.b,l(t,74))},h.a=0,h.b=0,x(Vs,"ElkUtil/lambda$1$Type",940),A(941,1,tn,Ott),h.Ad=function(t){JZt(this.a,this.b,l(t,171))},h.a=0,h.b=0,x(Vs,"ElkUtil/lambda$2$Type",941),A(942,1,tn,Dtt),h.Ad=function(t){zen(this.a,this.b,l(t,158))},h.a=0,h.b=0,x(Vs,"ElkUtil/lambda$3$Type",942),A(943,1,tn,oXe),h.Ad=function(t){Son(this.a,l(t,373))},x(Vs,"ElkUtil/lambda$4$Type",943),A(332,1,{34:1,332:1},_Zt),h.Dd=function(t){return gtn(this,l(t,245))},h.Fb=function(t){var r;return se(t,332)?(r=l(t,332),this.a==r.a):!1},h.Hb=function(){return po(this.a)},h.Ib=function(){return this.a+" (exclusive)"},h.a=0,x(Vs,"ExclusiveBounds/ExclusiveLowerBound",332),A(1100,207,nm,xGe),h.kf=function(t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee,we,Ge,lt,dt;for(r.Tg("Fixed Layout",1),f=l(ye(t,(_n(),Gxe)),225),N=0,I=0,oe=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));oe.e!=oe.i.gc();){for(J=l(rn(oe),19),dt=l(ye(J,(Mj(),y4)),8),dt&&(Bc(J,dt.a,dt.b),l(ye(J,ONe),185).Gc((oc(),fv))&&(L=l(ye(J,LNe),8),L.a>0&&L.b>0&&L0(J,L.a,L.b,!0,!0))),N=b.Math.max(N,J.i+J.g),I=b.Math.max(I,J.j+J.f),v=new en((!J.n&&(J.n=new xe(Is,J,1,7)),J.n));v.e!=v.i.gc();)m=l(rn(v),158),dt=l(ye(m,y4),8),dt&&Bc(m,dt.a,dt.b),N=b.Math.max(N,J.i+m.i+m.g),I=b.Math.max(I,J.j+m.j+m.f);for(we=new en((!J.c&&(J.c=new xe(zu,J,9,9)),J.c));we.e!=we.i.gc();)for(Ee=l(rn(we),127),dt=l(ye(Ee,y4),8),dt&&Bc(Ee,dt.a,dt.b),Ge=J.i+Ee.i,lt=J.j+Ee.j,N=b.Math.max(N,Ge+Ee.g),I=b.Math.max(I,lt+Ee.f),y=new en((!Ee.n&&(Ee.n=new xe(Is,Ee,1,7)),Ee.n));y.e!=y.i.gc();)m=l(rn(y),158),dt=l(ye(m,y4),8),dt&&Bc(m,dt.a,dt.b),N=b.Math.max(N,Ge+m.i+m.g),I=b.Math.max(I,lt+m.j+m.f);for(u=new Ft(Gt(gp(J).a.Jc(),new D));an(u);)o=l(Qt(u),74),T=uEt(o),N=b.Math.max(N,T.a),I=b.Math.max(I,T.b);for(s=new Ft(Gt(C7(J).a.Jc(),new D));an(s);)o=l(Qt(s),74),Br(WY(o))!=t&&(T=uEt(o),N=b.Math.max(N,T.a),I=b.Math.max(I,T.b))}if(f==(hp(),vx))for(ne=new en((!t.a&&(t.a=new xe(En,t,10,11)),t.a));ne.e!=ne.i.gc();)for(J=l(rn(ne),19),s=new Ft(Gt(gp(J).a.Jc(),new D));an(s);)o=l(Qt(s),74),p=mAn(o),p.b==0?Vn(o,p2,null):Vn(o,p2,p);Ke(We(ye(t,(Mj(),DNe))))||(le=l(ye(t,X6t),100),G=N+le.b+le.c,U=I+le.d+le.a,L0(t,G,U,!0,!0)),r.Ug()},x(Vs,"FixedLayoutProvider",1100),A(380,151,{3:1,419:1,380:1,105:1,151:1},xG,Ddt),h.ag=function(t){var r,o,s,u,f,p,m,y,v;if(t)try{for(y=ky(t,";,;"),f=y,p=0,m=f.length;p>16&Ei|r^s<<16},h.Jc=function(){return new sXe(this)},h.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+bs(this.b)+")":this.b==null?"pair("+bs(this.a)+",null)":"pair("+bs(this.a)+","+bs(this.b)+")"},x(Vs,"Pair",49),A(988,1,Wi,sXe),h.Nb=function(t){oo(this,t)},h.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},h.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw K(new ys)},h.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),K(new lu)},h.b=!1,h.c=!1,x(Vs,"Pair/1",988),A(1089,207,nm,RGe),h.kf=function(t,r){var o,s,u,f,p;if(r.Tg("Random Layout",1),(!t.a&&(t.a=new xe(En,t,10,11)),t.a).i==0){r.Ug();return}f=l(ye(t,(S1e(),uDt)),15),f&&f.a!=0?u=new qP(f.a):u=new eY,o=tO(ce(ye(t,sDt))),p=tO(ce(ye(t,cDt))),s=l(ye(t,aDt),100),Uxn(t,u,o,p,s),r.Ug()},x(Vs,"RandomLayoutProvider",1089),A(243,1,{243:1},OV),h.Fb=function(t){return ia(this.a,l(t,243).a)&&ia(this.b,l(t,243).b)&&ia(this.c,l(t,243).c)},h.Hb=function(){return Pj(Z(X(Ci,1),Rt,1,5,[this.a,this.b,this.c]))},h.Ib=function(){return"("+this.a+Ma+this.b+Ma+this.c+")"},x(Vs,"Triple",243);var yDt;A(554,1,{}),h.Jf=function(){return new Le(this.f.i,this.f.j)},h.mf=function(t){return Cat(t,(_n(),Hu))?ye(this.f,vDt):ye(this.f,t)},h.Kf=function(){return new Le(this.f.g,this.f.f)},h.Lf=function(){return this.g},h.nf=function(t){return Gc(this.f,t)},h.Mf=function(t){ya(this.f,t.a),gu(this.f,t.b)},h.Nf=function(t){Bb(this.f,t.a),$b(this.f,t.b)},h.Of=function(t){this.g=t},h.g=0;var vDt;x(eI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),A(556,1,{845:1},A9),h.Pf=function(){var t,r;if(!this.b)for(this.b=jP(cW(this.a).i),r=new en(cW(this.a));r.e!=r.i.gc();)t=l(rn(r),158),je(this.b,new oq(t));return this.b},h.b=null,x(eI,"ElkGraphAdapters/ElkEdgeAdapter",556),A(250,554,{},Kp),h.Qf=function(){return P1t(this)},h.a=null,x(eI,"ElkGraphAdapters/ElkGraphAdapter",250),A(637,554,{190:1},oq),x(eI,"ElkGraphAdapters/ElkLabelAdapter",637),A(555,554,{692:1},F8),h.Pf=function(){return $bn(this)},h.Tf=function(){var t;return t=l(ye(this.f,(_n(),xp)),125),!t&&(t=new MN),t},h.Vf=function(){return Bbn(this)},h.Xf=function(t){var r;r=new IV(t),Vn(this.f,(_n(),xp),r)},h.Yf=function(t){Vn(this.f,(_n(),df),new sfe(t))},h.Rf=function(){return this.d},h.Sf=function(){var t,r;if(!this.a)for(this.a=new Pe,r=new Ft(Gt(C7(l(this.f,19)).a.Jc(),new D));an(r);)t=l(Qt(r),74),je(this.a,new A9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=new Pe,r=new Ft(Gt(gp(l(this.f,19)).a.Jc(),new D));an(r);)t=l(Qt(r),74),je(this.c,new A9(t));return this.c},h.Wf=function(){return _P(l(this.f,19)).i!=0||Ke(We(l(this.f,19).mf((_n(),$L))))},h.Zf=function(){Ldn(this,(t1(),yDt))},h.a=null,h.b=null,h.c=null,h.d=null,h.e=null,x(eI,"ElkGraphAdapters/ElkNodeAdapter",555),A(1261,554,{844:1},aXe),h.Pf=function(){return Wbn(this)},h.Sf=function(){var t,r;if(!this.a)for(this.a=ch(l(this.f,127).gh().i),r=new en(l(this.f,127).gh());r.e!=r.i.gc();)t=l(rn(r),74),je(this.a,new A9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=ch(l(this.f,127).hh().i),r=new en(l(this.f,127).hh());r.e!=r.i.gc();)t=l(rn(r),74),je(this.c,new A9(t));return this.c},h.$f=function(){return l(l(this.f,127).mf((_n(),m2)),64)},h._f=function(){var t,r,o,s,u,f,p,m;for(s=Gd(l(this.f,127)),o=new en(l(this.f,127).hh());o.e!=o.i.gc();)for(t=l(rn(o),74),m=new en((!t.c&&(t.c=new Et(pn,t,5,8)),t.c));m.e!=m.i.gc();){if(p=l(rn(m),83),ay(Vo(p),s))return!0;if(Vo(p)==s&&Ke(We(ye(t,(_n(),cre)))))return!0}for(r=new en(l(this.f,127).gh());r.e!=r.i.gc();)for(t=l(rn(r),74),f=new en((!t.b&&(t.b=new Et(pn,t,4,7)),t.b));f.e!=f.i.gc();)if(u=l(rn(f),83),ay(Vo(u),s))return!0;return!1},h.a=null,h.b=null,h.c=null,x(eI,"ElkGraphAdapters/ElkPortAdapter",1261),A(1262,1,Un,OGe),h.Le=function(t,r){return cTn(l(t,127),l(r,127))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(eI,"ElkGraphAdapters/PortComparator",1262);var Y1=Hr(el,"EObject"),Tx=Hr($E,ATt),Ic=Hr($E,_Tt),QL=Hr($E,kTt),eM=Hr($E,"ElkShape"),pn=Hr($E,xTt),Cr=Hr($E,Xve),jr=Hr($E,NTt),tM=Hr(el,CTt),x4=Hr(el,"EFactory"),EDt,xre=Hr(el,ITt),Dd=Hr(el,"EPackage"),Bi,SDt,TDt,n3e,pU,ADt,r3e,i3e,o3e,Dh,_Dt,kDt,Is=Hr($E,Zve),En=Hr($E,Qve),zu=Hr($E,eEe);A(94,1,RTt),h.qh=function(){return this.rh(),null},h.rh=function(){return null},h.sh=function(){return this.rh(),!1},h.th=function(){return!1},h.uh=function(t){hr(this,t)},x(wT,"BasicNotifierImpl",94),A(101,94,MTt),h.Vh=function(){return Yu(this)},h.vh=function(t,r){return t},h.wh=function(){throw K(new Nn)},h.xh=function(t){var r;return r=Do(l(Nt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,r.n,r.f,t)},h.yh=function(t,r){throw K(new Nn)},h.zh=function(t,r,o){return Sc(this,t,r,o)},h.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},h.Bh=function(){return oJ(this)},h.Ch=function(){throw K(new Nn)},h.Dh=function(){var t,r;return r=this.Xh().Mk(),!r&&this.wh().Rk(r=(JN(),t=She(jf(this.Ah())),t==null?Mre:new CO(this,t))),r},h.Eh=function(t,r){return t},h.Fh=function(t){var r;return r=t.nk(),r?t.Jj():Ur(this.Ah(),t)},h.Gh=function(){var t;return t=this.wh(),t?t.Ok():null},h.Hh=function(){return this.wh()?this.wh().Lk():null},h.Ih=function(t,r,o){return i7(this,t,r,o)},h.Jh=function(t){return h_(this,t)},h.Kh=function(t,r){return zW(this,t,r)},h.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},h.Mh=function(){throw K(new Nn)},h.Nh=function(){return Qj(this)},h.Oh=function(t,r,o,s){return YS(this,t,r,s)},h.Ph=function(t,r,o){var s;return s=l(Nt(this.Ah(),r),69),s.uk().xk(this,this.ei(),r-this.gi(),t,o)},h.Qh=function(t,r,o,s){return IP(this,t,r,s)},h.Rh=function(t,r,o){var s;return s=l(Nt(this.Ah(),r),69),s.uk().yk(this,this.ei(),r-this.gi(),t,o)},h.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},h.Th=function(t){return gY(this,t)},h.Uh=function(t){return qat(this,t)},h.Wh=function(t){return Gvt(this,t)},h.Xh=function(){throw K(new Nn)},h.Yh=function(){return this.wh()?this.wh().Nk():null},h.Zh=function(){return Qj(this)},h.$h=function(t,r){eJ(this,t,r)},h._h=function(t){this.Xh().Qk(t)},h.ai=function(t){this.Xh().Tk(t)},h.bi=function(t){this.Xh().Sk(t)},h.ci=function(t,r){var o,s,u,f;return f=this.Gh(),f&&t&&(r=Ao(f.Cl(),this,r),f.Gl(this)),s=this.Mh(),s&&(mJ(this,this.Mh(),this.Ch()).Bb&xo?(u=s.Nh(),u&&(t?!f&&u.Gl(this):u.Fl(this))):(r=(o=this.Ch(),o>=0?this.xh(r):this.Mh().Qh(this,-1-o,null,r)),r=this.zh(null,-1,r))),this.ai(t),r},h.di=function(t){var r,o,s,u,f,p,m,y;if(o=this.Ah(),f=Ur(o,t),r=this.gi(),f>=r)return l(t,69).uk().Bk(this,this.ei(),f-r);if(f<=-1)if(p=IE((mu(),so),o,t),p){if(Oo(),l(p,69).vk()||(p=DS(es(so,p))),u=(s=this.Fh(p),l(s>=0?this.Ih(s,!0,!0):R0(this,p,!0),164)),y=p.Gk(),y>1||y==-1)return l(l(u,222).Ql(t,!1),78)}else throw K(new jt(R1+t.ve()+ZZ));else if(t.Hk())return s=this.Fh(t),l(s>=0?this.Ih(s,!1,!0):R0(this,t,!1),78);return m=new tnt(this,t),m},h.ei=function(){return Ipe(this)},h.fi=function(){return(a1(),Bt).S},h.gi=function(){return ln(this.fi())},h.hi=function(t){XY(this,t)},h.Ib=function(){return Zl(this)},x(zt,"BasicEObjectImpl",101);var xDt;A(118,101,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1}),h.ii=function(t){var r;return r=Cpe(this),r[t]},h.ji=function(t,r){var o;o=Cpe(this),ii(o,t,r)},h.ki=function(t){var r;r=Cpe(this),ii(r,t,null)},h.qh=function(){return l(qt(this,4),131)},h.rh=function(){throw K(new Nn)},h.sh=function(){return(this.Db&4)!=0},h.wh=function(){throw K(new Nn)},h.li=function(t){VS(this,2,t)},h.yh=function(t,r){this.Db=r<<16|this.Db&255,this.li(t)},h.Ah=function(){return Ja(this)},h.Ch=function(){return this.Db>>16},h.Dh=function(){var t,r;return JN(),r=She(jf((t=l(qt(this,16),29),t||this.fi()))),r==null?Mre:new CO(this,r)},h.th=function(){return(this.Db&1)==0},h.Gh=function(){return l(qt(this,128),2013)},h.Hh=function(){return l(qt(this,16),29)},h.Lh=function(){return(this.Db&32)!=0},h.Mh=function(){return l(qt(this,2),52)},h.Sh=function(){return(this.Db&64)!=0},h.Xh=function(){throw K(new Nn)},h.Yh=function(){return l(qt(this,64),291)},h._h=function(t){VS(this,16,t)},h.ai=function(t){VS(this,128,t)},h.bi=function(t){VS(this,64,t)},h.ei=function(){return Ha(this)},h.Db=0,x(zt,"MinimalEObjectImpl",118),A(119,118,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.li=function(t){this.Cb=t},h.Mh=function(){return this.Cb},x(zt,"MinimalEObjectImpl/Container",119),A(2062,119,{110:1,344:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return q1e(this,t,r,o)},h.Rh=function(t,r,o){return Lbe(this,t,r,o)},h.Th=function(t){return Phe(this,t)},h.$h=function(t,r){Ige(this,t,r)},h.fi=function(){return Qs(),kDt},h.hi=function(t){yge(this,t)},h.lf=function(){return n1t(this)},h.fh=function(){return!this.o&&(this.o=new pu((Qs(),Dh),Ig,this,0)),this.o},h.mf=function(t){return ye(this,t)},h.nf=function(t){return Gc(this,t)},h.of=function(t,r){return Vn(this,t,r)},x(om,"EMapPropertyHolderImpl",2062),A(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},p9),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return i7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return gY(this,t)},h.$h=function(t,r){switch(t){case 0:hj(this,ue(ce(r)));return;case 1:fj(this,ue(ce(r)));return}eJ(this,t,r)},h.fi=function(){return Qs(),SDt},h.hi=function(t){switch(t){case 0:hj(this,0);return;case 1:fj(this,0);return}XY(this,t)},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new ml(Zl(this)),t.a+=" (x: ",Vv(t,this.a),t.a+=", y: ",Vv(t,this.b),t.a+=")",t.a)},h.a=0,h.b=0,x(om,"ElkBendPointImpl",566),A(734,2062,{110:1,344:1,176:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return Jge(this,t,r,o)},h.Ph=function(t,r,o){return zY(this,t,r,o)},h.Rh=function(t,r,o){return kK(this,t,r,o)},h.Th=function(t){return fge(this,t)},h.$h=function(t,r){lbe(this,t,r)},h.fi=function(){return Qs(),ADt},h.hi=function(t){Vge(this,t)},h.ih=function(){return this.k},h.jh=function(){return cW(this)},h.Ib=function(){return QK(this)},h.k=null,x(om,"ElkGraphElementImpl",734),A(735,734,{110:1,344:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return u1e(this,t,r,o)},h.Th=function(t){return w1e(this,t)},h.$h=function(t,r){dbe(this,t,r)},h.fi=function(){return Qs(),_Dt},h.hi=function(t){y1e(this,t)},h.kh=function(){return this.f},h.lh=function(){return this.g},h.mh=function(){return this.i},h.nh=function(){return this.j},h.oh=function(t,r){r0(this,t,r)},h.ph=function(t,r){Bc(this,t,r)},h.Ib=function(){return YY(this)},h.f=0,h.g=0,h.i=0,h.j=0,x(om,"ElkShapeImpl",735),A(736,735,{110:1,344:1,83:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return $1e(this,t,r,o)},h.Ph=function(t,r,o){return ibe(this,t,r,o)},h.Rh=function(t,r,o){return obe(this,t,r,o)},h.Th=function(t){return Age(this,t)},h.$h=function(t,r){wme(this,t,r)},h.fi=function(){return Qs(),TDt},h.hi=function(t){L1e(this,t)},h.gh=function(){return!this.d&&(this.d=new Et(Cr,this,8,5)),this.d},h.hh=function(){return!this.e&&(this.e=new Et(Cr,this,7,4)),this.e},x(om,"ElkConnectableShapeImpl",736),A(273,734,{110:1,344:1,74:1,176:1,273:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},CG),h.xh=function(t){return ebe(this,t)},h.Ih=function(t,r,o){switch(t){case 3:return ey(this);case 4:return!this.b&&(this.b=new Et(pn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Et(pn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new xe(jr,this,6,6)),this.a;case 7:return Lt(),!this.b&&(this.b=new Et(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Et(pn,this,5,8)),this.c.i<=1));case 8:return Lt(),!!EC(this);case 9:return Lt(),!!I0(this);case 10:return Lt(),!this.b&&(this.b=new Et(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Et(pn,this,5,8)),this.c.i!=0)}return Jge(this,t,r,o)},h.Ph=function(t,r,o){var s;switch(r){case 3:return this.Cb&&(o=(s=this.Db>>16,s>=0?ebe(this,o):this.Cb.Qh(this,-1-s,null,o))),Mde(this,l(t,19),o);case 4:return!this.b&&(this.b=new Et(pn,this,4,7)),La(this.b,t,o);case 5:return!this.c&&(this.c=new Et(pn,this,5,8)),La(this.c,t,o);case 6:return!this.a&&(this.a=new xe(jr,this,6,6)),La(this.a,t,o)}return zY(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 3:return Mde(this,null,o);case 4:return!this.b&&(this.b=new Et(pn,this,4,7)),Ao(this.b,t,o);case 5:return!this.c&&(this.c=new Et(pn,this,5,8)),Ao(this.c,t,o);case 6:return!this.a&&(this.a=new xe(jr,this,6,6)),Ao(this.a,t,o)}return kK(this,t,r,o)},h.Th=function(t){switch(t){case 3:return!!ey(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Et(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Et(pn,this,5,8)),this.c.i<=1));case 8:return EC(this);case 9:return I0(this);case 10:return!this.b&&(this.b=new Et(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Et(pn,this,5,8)),this.c.i!=0)}return fge(this,t)},h.$h=function(t,r){switch(t){case 3:O7(this,l(r,19));return;case 4:!this.b&&(this.b=new Et(pn,this,4,7)),vn(this.b),!this.b&&(this.b=new Et(pn,this,4,7)),ti(this.b,l(r,18));return;case 5:!this.c&&(this.c=new Et(pn,this,5,8)),vn(this.c),!this.c&&(this.c=new Et(pn,this,5,8)),ti(this.c,l(r,18));return;case 6:!this.a&&(this.a=new xe(jr,this,6,6)),vn(this.a),!this.a&&(this.a=new xe(jr,this,6,6)),ti(this.a,l(r,18));return}lbe(this,t,r)},h.fi=function(){return Qs(),n3e},h.hi=function(t){switch(t){case 3:O7(this,null);return;case 4:!this.b&&(this.b=new Et(pn,this,4,7)),vn(this.b);return;case 5:!this.c&&(this.c=new Et(pn,this,5,8)),vn(this.c);return;case 6:!this.a&&(this.a=new xe(jr,this,6,6)),vn(this.a);return}Vge(this,t)},h.Ib=function(){return cvt(this)},x(om,"ElkEdgeImpl",273),A(446,2062,{110:1,344:1,171:1,446:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},h9),h.xh=function(t){return J1e(this,t)},h.Ih=function(t,r,o){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new yi(Ic,this,5)),this.a;case 6:return Uat(this);case 7:return r?vY(this):this.i;case 8:return r?yY(this):this.f;case 9:return!this.g&&(this.g=new Et(jr,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Et(jr,this,10,9)),this.e;case 11:return this.d}return q1e(this,t,r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?J1e(this,o):this.Cb.Qh(this,-1-u,null,o))),Pde(this,l(t,74),o);case 9:return!this.g&&(this.g=new Et(jr,this,9,10)),La(this.g,t,o);case 10:return!this.e&&(this.e=new Et(jr,this,10,9)),La(this.e,t,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Qs(),pU)),r),69),f.uk().xk(this,Ha(this),r-ln((Qs(),pU)),t,o)},h.Rh=function(t,r,o){switch(r){case 5:return!this.a&&(this.a=new yi(Ic,this,5)),Ao(this.a,t,o);case 6:return Pde(this,null,o);case 9:return!this.g&&(this.g=new Et(jr,this,9,10)),Ao(this.g,t,o);case 10:return!this.e&&(this.e=new Et(jr,this,10,9)),Ao(this.e,t,o)}return Lbe(this,t,r,o)},h.Th=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Uat(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Phe(this,t)},h.$h=function(t,r){switch(t){case 1:v0(this,ue(ce(r)));return;case 2:E0(this,ue(ce(r)));return;case 3:w0(this,ue(ce(r)));return;case 4:y0(this,ue(ce(r)));return;case 5:!this.a&&(this.a=new yi(Ic,this,5)),vn(this.a),!this.a&&(this.a=new yi(Ic,this,5)),ti(this.a,l(r,18));return;case 6:iwt(this,l(r,74));return;case 7:vj(this,l(r,83));return;case 8:yj(this,l(r,83));return;case 9:!this.g&&(this.g=new Et(jr,this,9,10)),vn(this.g),!this.g&&(this.g=new Et(jr,this,9,10)),ti(this.g,l(r,18));return;case 10:!this.e&&(this.e=new Et(jr,this,10,9)),vn(this.e),!this.e&&(this.e=new Et(jr,this,10,9)),ti(this.e,l(r,18));return;case 11:tge(this,In(r));return}Ige(this,t,r)},h.fi=function(){return Qs(),pU},h.hi=function(t){switch(t){case 1:v0(this,0);return;case 2:E0(this,0);return;case 3:w0(this,0);return;case 4:y0(this,0);return;case 5:!this.a&&(this.a=new yi(Ic,this,5)),vn(this.a);return;case 6:iwt(this,null);return;case 7:vj(this,null);return;case 8:yj(this,null);return;case 9:!this.g&&(this.g=new Et(jr,this,9,10)),vn(this.g);return;case 10:!this.e&&(this.e=new Et(jr,this,10,9)),vn(this.e);return;case 11:tge(this,null);return}yge(this,t)},h.Ib=function(){return g0t(this)},h.b=0,h.c=0,h.d=null,h.j=0,h.k=0,x(om,"ElkEdgeSectionImpl",446),A(162,119,{110:1,95:1,94:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),h.Ih=function(t,r,o){var s;return t==0?(!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab):qc(this,t-ln(this.fi()),Nt((s=l(qt(this,16),29),s||this.fi()),t),r,o)},h.Ph=function(t,r,o){var s,u;return r==0?(!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o)):(u=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),u.uk().xk(this,Ha(this),r-ln(this.fi()),t,o))},h.Rh=function(t,r,o){var s,u;return r==0?(!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o)):(u=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o))},h.Th=function(t){var r;return t==0?!!this.Ab&&this.Ab.i!=0:zc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.Wh=function(t){return P0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return}Xc(this,t-ln(this.fi()),Nt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.ai=function(t){VS(this,128,t)},h.fi=function(){return Tt(),qDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return}Jc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.mi=function(){this.Bb|=1},h.ni=function(t){return NC(this,t)},h.Bb=0,x(zt,"EModelElementImpl",162),A(717,162,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},Mue),h.oi=function(t,r){return jvt(this,t,r)},h.pi=function(t){var r,o,s,u,f;if(this.a!=mc(t)||t.Bb&256)throw K(new jt(eQ+t.zb+V0));for(s=us(t);oa(s.a).i!=0;){if(o=l(cD(s,0,(r=l(ie(oa(s.a),0),88),f=r.c,se(f,89)?l(f,29):(Tt(),Ml))),29),C0(o))return u=mc(o).ti().pi(o),l(u,52)._h(t),u;s=us(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new vot(t):new Sfe(t)},h.qi=function(t,r){return M0(this,t,r)},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.a}return qc(this,t-ln((Tt(),Q1)),Nt((s=l(qt(this,16),29),s||Q1),t),r,o)},h.Ph=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 1:return this.a&&(o=l(this.a,52).Qh(this,4,Dd,o)),zge(this,l(t,244),o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Q1)),r),69),u.uk().xk(this,Ha(this),r-ln((Tt(),Q1)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 1:return zge(this,null,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Q1)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Q1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return zc(this,t-ln((Tt(),Q1)),Nt((r=l(qt(this,16),29),r||Q1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:zbt(this,l(r,244));return}Xc(this,t-ln((Tt(),Q1)),Nt((o=l(qt(this,16),29),o||Q1),t),r)},h.fi=function(){return Tt(),Q1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:zbt(this,null);return}Jc(this,t-ln((Tt(),Q1)),Nt((r=l(qt(this,16),29),r||Q1),t))};var N4,s3e,NDt;x(zt,"EFactoryImpl",717),A(1029,717,{110:1,2092:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},LGe),h.oi=function(t,r){switch(t.fk()){case 12:return l(r,149).Og();case 13:return bs(r);default:throw K(new jt(Ok+t.ve()+V0))}},h.pi=function(t){var r,o,s,u,f,p,m,y;switch(t.G==-1&&(t.G=(r=mc(t),r?pg(r.si(),t):-1)),t.G){case 4:return f=new Iue,f;case 6:return p=new PN,p;case 7:return m=new xce,m;case 8:return s=new CG,s;case 9:return o=new p9,o;case 10:return u=new h9,u;case 11:return y=new MGe,y;default:throw K(new jt(eQ+t.zb+V0))}},h.qi=function(t,r){switch(t.fk()){case 13:case 12:return null;default:throw K(new jt(Ok+t.ve()+V0))}},x(om,"ElkGraphFactoryImpl",1029),A(444,162,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),h.Dh=function(){var t,r;return r=(t=l(qt(this,16),29),She(jf(t||this.fi()))),r==null?(JN(),JN(),Mre):new $rt(this,r)},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.ve()}return qc(this,t-ln(this.fi()),Nt((s=l(qt(this,16),29),s||this.fi()),t),r,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return zc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:this.ri(In(r));return}Xc(this,t-ln(this.fi()),Nt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return Tt(),VDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return}Jc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.ve=function(){return this.zb},h.ri=function(t){Da(this,t)},h.Ib=function(){return tC(this)},h.zb=null,x(zt,"ENamedElementImpl",444),A(187,444,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},yat),h.xh=function(t){return Z1t(this,t)},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Jw(this,Ld,this)),this.rb;case 6:return!this.vb&&(this.vb=new ES(Dd,this,6,7)),this.vb;case 7:return r?this.Db>>16==7?l(this.Cb,244):null:Jat(this)}return qc(this,t-ln((Tt(),Lg)),Nt((s=l(qt(this,16),29),s||Lg),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 4:return this.sb&&(o=l(this.sb,52).Qh(this,1,x4,o)),Wge(this,l(t,472),o);case 5:return!this.rb&&(this.rb=new Jw(this,Ld,this)),La(this.rb,t,o);case 6:return!this.vb&&(this.vb=new ES(Dd,this,6,7)),La(this.vb,t,o);case 7:return this.Cb&&(o=(u=this.Db>>16,u>=0?Z1t(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,7,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),Lg)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),Lg)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 4:return Wge(this,null,o);case 5:return!this.rb&&(this.rb=new Jw(this,Ld,this)),Ao(this.rb,t,o);case 6:return!this.vb&&(this.vb=new ES(Dd,this,6,7)),Ao(this.vb,t,o);case 7:return Sc(this,null,7,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Lg)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Lg)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!Jat(this)}return zc(this,t-ln((Tt(),Lg)),Nt((r=l(qt(this,16),29),r||Lg),t))},h.Wh=function(t){var r;return r=x2n(this,t),r||P0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Da(this,In(r));return;case 2:_j(this,In(r));return;case 3:Aj(this,In(r));return;case 4:KY(this,l(r,472));return;case 5:!this.rb&&(this.rb=new Jw(this,Ld,this)),vn(this.rb),!this.rb&&(this.rb=new Jw(this,Ld,this)),ti(this.rb,l(r,18));return;case 6:!this.vb&&(this.vb=new ES(Dd,this,6,7)),vn(this.vb),!this.vb&&(this.vb=new ES(Dd,this,6,7)),ti(this.vb,l(r,18));return}Xc(this,t-ln((Tt(),Lg)),Nt((o=l(qt(this,16),29),o||Lg),t),r)},h.bi=function(t){var r,o;if(t&&this.rb)for(o=new en(this.rb);o.e!=o.i.gc();)r=rn(o),se(r,361)&&(l(r,361).w=null);VS(this,64,t)},h.fi=function(){return Tt(),Lg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:Da(this,null);return;case 2:_j(this,null);return;case 3:Aj(this,null);return;case 4:KY(this,null);return;case 5:!this.rb&&(this.rb=new Jw(this,Ld,this)),vn(this.rb);return;case 6:!this.vb&&(this.vb=new ES(Dd,this,6,7)),vn(this.vb);return}Jc(this,t-ln((Tt(),Lg)),Nt((r=l(qt(this,16),29),r||Lg),t))},h.mi=function(){DY(this)},h.si=function(){return!this.rb&&(this.rb=new Jw(this,Ld,this)),this.rb},h.ti=function(){return this.sb},h.ui=function(){return this.ub},h.vi=function(){return this.xb},h.wi=function(){return this.yb},h.xi=function(t){this.ub=t},h.Ib=function(){var t;return this.Db&64?tC(this):(t=new ml(tC(this)),t.a+=" (nsURI: ",zo(t,this.yb),t.a+=", nsPrefix: ",zo(t,this.xb),t.a+=")",t.a)},h.xb=null,h.yb=null,x(zt,"EPackageImpl",187),A(563,187,{110:1,2094:1,563:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},T0t),h.q=!1,h.r=!1;var CDt=!1;x(om,"ElkGraphPackageImpl",563),A(363,735,{110:1,344:1,176:1,158:1,278:1,363:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},Iue),h.xh=function(t){return X1e(this,t)},h.Ih=function(t,r,o){switch(t){case 7:return xhe(this);case 8:return this.a}return u1e(this,t,r,o)},h.Ph=function(t,r,o){var s;switch(r){case 7:return this.Cb&&(o=(s=this.Db>>16,s>=0?X1e(this,o):this.Cb.Qh(this,-1-s,null,o))),Pfe(this,l(t,176),o)}return zY(this,t,r,o)},h.Rh=function(t,r,o){return r==7?Pfe(this,null,o):kK(this,t,r,o)},h.Th=function(t){switch(t){case 7:return!!xhe(this);case 8:return!mt("",this.a)}return w1e(this,t)},h.$h=function(t,r){switch(t){case 7:Lme(this,l(r,176));return;case 8:Zpe(this,In(r));return}dbe(this,t,r)},h.fi=function(){return Qs(),r3e},h.hi=function(t){switch(t){case 7:Lme(this,null);return;case 8:Zpe(this,"");return}y1e(this,t)},h.Ib=function(){return cmt(this)},h.a="",x(om,"ElkLabelImpl",363),A(209,736,{110:1,344:1,83:1,176:1,19:1,278:1,209:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},PN),h.xh=function(t){return tbe(this,t)},h.Ih=function(t,r,o){switch(t){case 9:return!this.c&&(this.c=new xe(zu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new xe(En,this,10,11)),this.a;case 11:return Br(this);case 12:return!this.b&&(this.b=new xe(Cr,this,12,3)),this.b;case 13:return Lt(),!this.a&&(this.a=new xe(En,this,10,11)),this.a.i>0}return $1e(this,t,r,o)},h.Ph=function(t,r,o){var s;switch(r){case 9:return!this.c&&(this.c=new xe(zu,this,9,9)),La(this.c,t,o);case 10:return!this.a&&(this.a=new xe(En,this,10,11)),La(this.a,t,o);case 11:return this.Cb&&(o=(s=this.Db>>16,s>=0?tbe(this,o):this.Cb.Qh(this,-1-s,null,o))),Wde(this,l(t,19),o);case 12:return!this.b&&(this.b=new xe(Cr,this,12,3)),La(this.b,t,o)}return ibe(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 9:return!this.c&&(this.c=new xe(zu,this,9,9)),Ao(this.c,t,o);case 10:return!this.a&&(this.a=new xe(En,this,10,11)),Ao(this.a,t,o);case 11:return Wde(this,null,o);case 12:return!this.b&&(this.b=new xe(Cr,this,12,3)),Ao(this.b,t,o)}return obe(this,t,r,o)},h.Th=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Br(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new xe(En,this,10,11)),this.a.i>0}return Age(this,t)},h.$h=function(t,r){switch(t){case 9:!this.c&&(this.c=new xe(zu,this,9,9)),vn(this.c),!this.c&&(this.c=new xe(zu,this,9,9)),ti(this.c,l(r,18));return;case 10:!this.a&&(this.a=new xe(En,this,10,11)),vn(this.a),!this.a&&(this.a=new xe(En,this,10,11)),ti(this.a,l(r,18));return;case 11:D7(this,l(r,19));return;case 12:!this.b&&(this.b=new xe(Cr,this,12,3)),vn(this.b),!this.b&&(this.b=new xe(Cr,this,12,3)),ti(this.b,l(r,18));return}wme(this,t,r)},h.fi=function(){return Qs(),i3e},h.hi=function(t){switch(t){case 9:!this.c&&(this.c=new xe(zu,this,9,9)),vn(this.c);return;case 10:!this.a&&(this.a=new xe(En,this,10,11)),vn(this.a);return;case 11:D7(this,null);return;case 12:!this.b&&(this.b=new xe(Cr,this,12,3)),vn(this.b);return}L1e(this,t)},h.Ib=function(){return Jme(this)},x(om,"ElkNodeImpl",209),A(196,736,{110:1,344:1,83:1,176:1,127:1,278:1,196:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},xce),h.xh=function(t){return Z1e(this,t)},h.Ih=function(t,r,o){return t==9?Gd(this):$1e(this,t,r,o)},h.Ph=function(t,r,o){var s;switch(r){case 9:return this.Cb&&(o=(s=this.Db>>16,s>=0?Z1e(this,o):this.Cb.Qh(this,-1-s,null,o))),jde(this,l(t,19),o)}return ibe(this,t,r,o)},h.Rh=function(t,r,o){return r==9?jde(this,null,o):obe(this,t,r,o)},h.Th=function(t){return t==9?!!Gd(this):Age(this,t)},h.$h=function(t,r){switch(t){case 9:Cme(this,l(r,19));return}wme(this,t,r)},h.fi=function(){return Qs(),o3e},h.hi=function(t){switch(t){case 9:Cme(this,null);return}L1e(this,t)},h.Ib=function(){return ryt(this)},x(om,"ElkPortImpl",196);var IDt=Hr(_o,"BasicEMap/Entry");A(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},MGe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.Hb=function(){return o0(this)},h.Ai=function(t){Kpe(this,l(t,149))},h.Ih=function(t,r,o){switch(t){case 0:return this.b;case 1:return this.c}return i7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return gY(this,t)},h.$h=function(t,r){switch(t){case 0:Kpe(this,l(r,149));return;case 1:Ype(this,r);return}eJ(this,t,r)},h.fi=function(){return Qs(),Dh},h.hi=function(t){switch(t){case 0:Kpe(this,null);return;case 1:Ype(this,null);return}XY(this,t)},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Ir(t):0),this.a},h.kd=function(){return this.c},h.zi=function(t){this.a=t},h.ld=function(t){var r;return r=this.c,Ype(this,t),r},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new Zg,zn(zn(zn(t,this.b?this.b.Og():tu),DX),b3(this.c)),t.a)},h.a=-1,h.c=null;var Ig=x(om,"ElkPropertyToValueMapEntryImpl",1103);A(989,1,{},PGe),x(ro,"JsonAdapter",989),A(218,63,wp,_f),x(ro,"JsonImportException",218),A(859,1,{},w0t),x(ro,"JsonImporter",859),A(893,1,{},Btt),h.Bi=function(t){ubt(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$0$Type",893),A(894,1,{},Utt),h.Bi=function(t){Ymt(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$1$Type",894),A(902,1,{},uXe),h.Bi=function(t){Yst(this.a,l(t,150))},x(ro,"JsonImporter/lambda$10$Type",902),A(904,1,{},Htt),h.Bi=function(t){Mmt(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$11$Type",904),A(905,1,{},ztt),h.Bi=function(t){Pmt(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$12$Type",905),A(911,1,{},oat),h.Bi=function(t){omt(this.a,this.b,this.c,this.d,l(t,142))},x(ro,"JsonImporter/lambda$13$Type",911),A(910,1,{},sat),h.Bi=function(t){_yt(this.a,this.b,this.c,this.d,l(t,150))},x(ro,"JsonImporter/lambda$14$Type",910),A(906,1,{},Gtt),h.Bi=function(t){mit(this.a,this.b,In(t))},x(ro,"JsonImporter/lambda$15$Type",906),A(907,1,{},qtt),h.Bi=function(t){wit(this.a,this.b,In(t))},x(ro,"JsonImporter/lambda$16$Type",907),A(908,1,{},Jtt),h.Bi=function(t){z1t(this.b,this.a,l(t,142))},x(ro,"JsonImporter/lambda$17$Type",908),A(909,1,{},Xtt),h.Bi=function(t){G1t(this.b,this.a,l(t,142))},x(ro,"JsonImporter/lambda$18$Type",909),A(914,1,{},cXe),h.Bi=function(t){Ybt(this.a,l(t,150))},x(ro,"JsonImporter/lambda$19$Type",914),A(895,1,{},lXe),h.Bi=function(t){tbt(this.a,l(t,142))},x(ro,"JsonImporter/lambda$2$Type",895),A(912,1,{},dXe),h.Bi=function(t){v0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$20$Type",912),A(913,1,{},fXe),h.Bi=function(t){E0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$21$Type",913),A(917,1,{},hXe),h.Bi=function(t){Kbt(this.a,l(t,150))},x(ro,"JsonImporter/lambda$22$Type",917),A(915,1,{},pXe),h.Bi=function(t){w0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$23$Type",915),A(916,1,{},gXe),h.Bi=function(t){y0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$24$Type",916),A(919,1,{},bXe),h.Bi=function(t){ybt(this.a,l(t,142))},x(ro,"JsonImporter/lambda$25$Type",919),A(918,1,{},mXe),h.Bi=function(t){Jst(this.a,l(t,150))},x(ro,"JsonImporter/lambda$26$Type",918),A(920,1,tn,Ztt),h.Ad=function(t){mdn(this.b,this.a,In(t))},x(ro,"JsonImporter/lambda$27$Type",920),A(921,1,tn,Qtt),h.Ad=function(t){wdn(this.b,this.a,In(t))},x(ro,"JsonImporter/lambda$28$Type",921),A(922,1,{},Vtt),h.Bi=function(t){R0t(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$29$Type",922),A(898,1,{},wXe),h.Bi=function(t){dgt(this.a,l(t,150))},x(ro,"JsonImporter/lambda$3$Type",898),A(923,1,{},Wtt),h.Bi=function(t){ewt(this.a,this.b,l(t,142))},x(ro,"JsonImporter/lambda$30$Type",923),A(924,1,{},yXe),h.Bi=function(t){Ldt(this.a,ce(t))},x(ro,"JsonImporter/lambda$31$Type",924),A(925,1,{},vXe),h.Bi=function(t){Mdt(this.a,ce(t))},x(ro,"JsonImporter/lambda$32$Type",925),A(926,1,{},EXe),h.Bi=function(t){Pdt(this.a,ce(t))},x(ro,"JsonImporter/lambda$33$Type",926),A(927,1,{},SXe),h.Bi=function(t){jdt(this.a,ce(t))},x(ro,"JsonImporter/lambda$34$Type",927),A(928,1,{},TXe),h.Bi=function(t){vwn(this.a,l(t,57))},x(ro,"JsonImporter/lambda$35$Type",928),A(929,1,{},AXe),h.Bi=function(t){Ewn(this.a,l(t,57))},x(ro,"JsonImporter/lambda$36$Type",929),A(933,1,{},iat),x(ro,"JsonImporter/lambda$37$Type",933),A(930,1,tn,zit),h.Ad=function(t){Yfn(this.a,this.c,this.b,l(t,373))},x(ro,"JsonImporter/lambda$38$Type",930),A(931,1,tn,Ktt),h.Ad=function(t){pen(this.a,this.b,l(t,171))},x(ro,"JsonImporter/lambda$39$Type",931),A(896,1,{},_Xe),h.Bi=function(t){v0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$4$Type",896),A(932,1,tn,Ytt),h.Ad=function(t){gen(this.a,this.b,l(t,171))},x(ro,"JsonImporter/lambda$40$Type",932),A(934,1,tn,Git),h.Ad=function(t){Jfn(this.a,this.b,this.c,l(t,8))},x(ro,"JsonImporter/lambda$41$Type",934),A(897,1,{},kXe),h.Bi=function(t){E0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$5$Type",897),A(901,1,{},xXe),h.Bi=function(t){fgt(this.a,l(t,150))},x(ro,"JsonImporter/lambda$6$Type",901),A(899,1,{},NXe),h.Bi=function(t){w0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$7$Type",899),A(900,1,{},CXe),h.Bi=function(t){y0(this.a,ue(ce(t)))},x(ro,"JsonImporter/lambda$8$Type",900),A(903,1,{},IXe),h.Bi=function(t){vbt(this.a,l(t,142))},x(ro,"JsonImporter/lambda$9$Type",903),A(953,1,tn,RXe),h.Ad=function(t){CS(this.a,new Zw(In(t)))},x(ro,"JsonMetaDataConverter/lambda$0$Type",953),A(954,1,tn,OXe),h.Ad=function(t){gsn(this.a,l(t,235))},x(ro,"JsonMetaDataConverter/lambda$1$Type",954),A(955,1,tn,DXe),h.Ad=function(t){pun(this.a,l(t,144))},x(ro,"JsonMetaDataConverter/lambda$2$Type",955),A(956,1,tn,LXe),h.Ad=function(t){bsn(this.a,l(t,161))},x(ro,"JsonMetaDataConverter/lambda$3$Type",956),A(235,23,{3:1,34:1,23:1,235:1},pS);var gU,bU,Nre,nM,mU,rM,Cre,Ire,iM=fn(_D,"GraphFeature",235,bn,Jdn,Qin),RDt;A(11,1,{34:1,149:1},cr,Pr,ht,Mi),h.Dd=function(t){return btn(this,l(t,149))},h.Fb=function(t){return Cat(this,t)},h.Rg=function(){return ze(this)},h.Og=function(){return this.b},h.Hb=function(){return cg(this.b)},h.Ib=function(){return this.b},x(_D,"Property",11),A(664,1,Un,GG),h.Le=function(t,r){return ugn(this,l(t,105),l(r,105))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(_D,"PropertyHolderComparator",664),A(705,1,Wi,fce),h.Nb=function(t){oo(this,t)},h.Pb=function(){return Sdn(this)},h.Qb=function(){kQe()},h.Ob=function(){return!!this.a},x(HF,"ElkGraphUtil/AncestorIterator",705);var a3e=Hr(_o,"EList");A(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),h._c=function(t,r){iC(this,t,r)},h.Ec=function(t){return Tn(this,t)},h.ad=function(t,r){return Ege(this,t,r)},h.Fc=function(t){return ti(this,t)},h.Gi=function(){return new yS(this)},h.Hi=function(){return new NO(this)},h.Ii=function(t){return w6(this,t)},h.Ji=function(){return!0},h.Ki=function(t,r){},h.Li=function(){},h.Mi=function(t,r){KW(this,t,r)},h.Ni=function(t,r,o){},h.Oi=function(t,r){},h.Pi=function(t,r,o){},h.Fb=function(t){return Bwt(this,t)},h.Hb=function(){return bge(this)},h.Qi=function(){return!1},h.Jc=function(){return new en(this)},h.cd=function(){return new vS(this)},h.dd=function(t){var r;if(r=this.gc(),t<0||t>r)throw K(new Vw(t,r));return new eW(this,t)},h.Si=function(t,r){this.Ri(t,this.bd(r))},h.Kc=function(t){return sj(this,t)},h.Ui=function(t,r){return r},h.fd=function(t,r){return EE(this,t,r)},h.Ib=function(){return h1e(this)},h.Wi=function(){return!0},h.Xi=function(t,r){return N_(this,r)},x(_o,"AbstractEList",71),A(67,71,qf,g9,m0,cge),h.Ci=function(t,r){return GY(this,t,r)},h.Di=function(t){return A1t(this,t)},h.Ei=function(t,r){R6(this,t,r)},h.Fi=function(t){t6(this,t)},h.Yi=function(t){return _pe(this,t)},h.$b=function(){B3(this)},h.Gc=function(t){return G_(this,t)},h.Xb=function(t){return ie(this,t)},h.Zi=function(t){var r,o,s;++this.j,o=this.g==null?0:this.g.length,t>o&&(s=this.g,r=o+(o/2|0)+4,r=0?(this.ed(r),!0):!1},h.Vi=function(t,r){return this.Bj(t,this.Xi(t,r))},h.gc=function(){return this.Cj()},h.Nc=function(){return this.Dj()},h.Oc=function(t){return this.Ej(t)},h.Ib=function(){return this.Fj()},x(_o,"DelegatingEList",2072),A(2073,2072,vAt),h.Ci=function(t,r){return l0e(this,t,r)},h.Di=function(t){return this.Ci(this.Cj(),t)},h.Ei=function(t,r){A0t(this,t,r)},h.Fi=function(t){h0t(this,t)},h.Ji=function(){return!this.Kj()},h.$b=function(){LC(this)},h.Gj=function(t,r,o,s,u){return new xat(this,t,r,o,s,u)},h.Hj=function(t){hr(this.hj(),t)},h.Ij=function(){return null},h.Jj=function(){return-1},h.hj=function(){return null},h.Kj=function(){return!1},h.Lj=function(t,r){return r},h.Mj=function(t,r){return r},h.Nj=function(){return!1},h.Oj=function(){return!this.yj()},h.Ri=function(t,r){var o,s;return this.Nj()?(s=this.Oj(),o=Rbe(this,t,r),this.Hj(this.Gj(7,Re(r),o,t,s)),o):Rbe(this,t,r)},h.ed=function(t){var r,o,s,u;return this.Nj()?(o=null,s=this.Oj(),r=this.Gj(4,u=tP(this,t),null,t,s),this.Kj()&&u?(o=this.Mj(u,o),o?(o.lj(r),o.mj()):this.Hj(r)):o?(o.lj(r),o.mj()):this.Hj(r),u):(u=tP(this,t),this.Kj()&&u&&(o=this.Mj(u,null),o&&o.mj()),u)},h.Vi=function(t,r){return jyt(this,t,r)},x(wT,"DelegatingNotifyingListImpl",2073),A(152,1,zD),h.lj=function(t){return bbe(this,t)},h.mj=function(){QW(this)},h.ej=function(){return this.d},h.Ij=function(){return null},h.Pj=function(){return null},h.fj=function(t){return-1},h.gj=function(){return Ewt(this)},h.hj=function(){return null},h.ij=function(){return $me(this)},h.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},h.Qj=function(){return!1},h.kj=function(t){var r,o,s,u,f,p,m,y,v,T,N;switch(this.d){case 1:case 2:switch(u=t.ej(),u){case 1:case 2:if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null))return v=N0e(this),y=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,p=t.jj(),this.d=6,N=new m0(2),y<=p?(Tn(N,this.n),Tn(N,t.ij()),this.g=Z(X(Rn,1),Xn,30,15,[this.o=y,p+1])):(Tn(N,t.ij()),Tn(N,this.n),this.g=Z(X(Rn,1),Xn,30,15,[this.o=p,y])),this.n=N,v||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null)){for(v=N0e(this),p=t.jj(),T=l(this.g,54),s=me(Rn,Xn,30,T.length+1,15,1),r=0;r>>0,r.toString(16))),s.a+=" (eventType: ",this.d){case 1:{s.a+="SET";break}case 2:{s.a+="UNSET";break}case 3:{s.a+="ADD";break}case 5:{s.a+="ADD_MANY";break}case 4:{s.a+="REMOVE";break}case 6:{s.a+="REMOVE_MANY";break}case 7:{s.a+="MOVE";break}case 8:{s.a+="REMOVING_ADAPTER";break}case 9:{s.a+="RESOLVE";break}default:{pq(s,this.d);break}}if(lyt(this)&&(s.a+=", touch: true"),s.a+=", position: ",pq(s,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),s.a+=", notifier: ",l3(s,this.hj()),s.a+=", feature: ",l3(s,this.Ij()),s.a+=", oldValue: ",l3(s,$me(this)),s.a+=", newValue: ",this.d==6&&se(this.g,54)){for(o=l(this.g,54),s.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new Ww(this),this.a=this.j),bl(this.b,t)):G_(this,t)},h.Wi=function(){return!0},h.a=0,x(_o,"AbstractEList/1",958),A(306,99,nF,Vw),x(_o,"AbstractEList/BasicIndexOutOfBoundsException",306),A(39,1,Wi,en),h.Nb=function(t){oo(this,t)},h.Vj=function(){if(this.i.j!=this.f)throw K(new $c)},h.Wj=function(){return rn(this)},h.Ob=function(){return this.e!=this.i.gc()},h.Pb=function(){return this.Wj()},h.Qb=function(){gC(this)},h.e=0,h.f=0,h.g=-1,x(_o,"AbstractEList/EIterator",39),A(288,39,vh,vS,eW),h.Qb=function(){gC(this)},h.Rb=function(t){xgt(this,t)},h.Xj=function(){var t;try{return t=this.d.Xb(--this.e),this.Vj(),this.g=this.e,t}catch(r){throw r=ci(r),se(r,99)?(this.Vj(),K(new ys)):K(r)}},h.Yj=function(t){_1t(this,t)},h.Sb=function(){return this.e!=0},h.Tb=function(){return this.e},h.Ub=function(){return this.Xj()},h.Vb=function(){return this.e-1},h.Wb=function(t){this.Yj(t)},x(_o,"AbstractEList/EListIterator",288),A(356,39,Wi,yS),h.Wj=function(){return bY(this)},h.Qb=function(){throw K(new Nn)},x(_o,"AbstractEList/NonResolvingEIterator",356),A(393,288,vh,NO,efe),h.Rb=function(t){throw K(new Nn)},h.Wj=function(){var t;try{return t=this.c.Ti(this.e),this.Vj(),this.g=this.e++,t}catch(r){throw r=ci(r),se(r,99)?(this.Vj(),K(new ys)):K(r)}},h.Xj=function(){var t;try{return t=this.c.Ti(--this.e),this.Vj(),this.g=this.e,t}catch(r){throw r=ci(r),se(r,99)?(this.Vj(),K(new ys)):K(r)}},h.Qb=function(){throw K(new Nn)},h.Wb=function(t){throw K(new Nn)},x(_o,"AbstractEList/NonResolvingEListIterator",393),A(2059,71,EAt),h.Ci=function(t,r){var o,s,u,f,p,m,y,v,T,N,I;if(u=r.gc(),u!=0){for(v=l(qt(this.a,4),131),T=v==null?0:v.length,I=T+u,s=$K(this,I),N=T-t,N>0&&ua(v,t,s,t+u,N),y=r.Jc(),p=0;po)throw K(new Vw(t,o));return new $st(this,t)},h.$b=function(){var t,r;++this.j,t=l(qt(this.a,4),131),r=t==null?0:t.length,U_(this,null),KW(this,r,t)},h.Gc=function(t){var r,o,s,u,f;if(r=l(qt(this.a,4),131),r!=null){if(t!=null){for(s=r,u=0,f=s.length;u=o)throw K(new Vw(t,o));return r[t]},h.bd=function(t){var r,o,s;if(r=l(qt(this.a,4),131),r!=null){if(t!=null){for(o=0,s=r.length;oo)throw K(new Vw(t,o));return new Fst(this,t)},h.Ri=function(t,r){var o,s,u;if(o=Lgt(this),u=o==null?0:o.length,t>=u)throw K(new Na(cQ+t+sm+u));if(r>=u)throw K(new Na(lQ+r+sm+u));return s=o[r],t!=r&&(t0&&ua(t,0,r,0,o),r},h.Oc=function(t){var r,o,s;return r=l(qt(this.a,4),131),s=r==null?0:r.length,s>0&&(t.lengths&&ii(t,s,null),t};var ODt;x(_o,"ArrayDelegatingEList",2059),A(1043,39,Wi,rlt),h.Vj=function(){if(this.b.j!=this.f||be(l(qt(this.b.a,4),131))!==be(this.a))throw K(new $c)},h.Qb=function(){gC(this),this.a=l(qt(this.b.a,4),131)},x(_o,"ArrayDelegatingEList/EIterator",1043),A(719,288,vh,ust,Fst),h.Vj=function(){if(this.b.j!=this.f||be(l(qt(this.b.a,4),131))!==be(this.a))throw K(new $c)},h.Yj=function(t){_1t(this,t),this.a=l(qt(this.b.a,4),131)},h.Qb=function(){gC(this),this.a=l(qt(this.b.a,4),131)},x(_o,"ArrayDelegatingEList/EListIterator",719),A(1044,356,Wi,ilt),h.Vj=function(){if(this.b.j!=this.f||be(l(qt(this.b.a,4),131))!==be(this.a))throw K(new $c)},x(_o,"ArrayDelegatingEList/NonResolvingEIterator",1044),A(720,393,vh,cst,$st),h.Vj=function(){if(this.b.j!=this.f||be(l(qt(this.b.a,4),131))!==be(this.a))throw K(new $c)},x(_o,"ArrayDelegatingEList/NonResolvingEListIterator",720),A(612,306,nF,tV),x(_o,"BasicEList/BasicIndexOutOfBoundsException",612),A(706,67,qf,Ule),h._c=function(t,r){throw K(new Nn)},h.Ec=function(t){throw K(new Nn)},h.ad=function(t,r){throw K(new Nn)},h.Fc=function(t){throw K(new Nn)},h.$b=function(){throw K(new Nn)},h.Zi=function(t){throw K(new Nn)},h.Jc=function(){return this.Gi()},h.cd=function(){return this.Hi()},h.dd=function(t){return this.Ii(t)},h.Ri=function(t,r){throw K(new Nn)},h.Si=function(t,r){throw K(new Nn)},h.ed=function(t){throw K(new Nn)},h.Kc=function(t){throw K(new Nn)},h.fd=function(t,r){throw K(new Nn)},x(_o,"BasicEList/UnmodifiableEList",706),A(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),h._c=function(t,r){itn(this,t,l(r,45))},h.Ec=function(t){return nnn(this,l(t,45))},h.Ic=function(t){co(this,t)},h.Xb=function(t){return l(ie(this.c,t),138)},h.Ri=function(t,r){return l(this.c.Ri(t,r),45)},h.Si=function(t,r){otn(this,t,l(r,45))},h.ed=function(t){return l(this.c.ed(t),45)},h.fd=function(t,r){return msn(this,t,l(r,45))},h.gd=function(t){Ub(this,t)},h.Lc=function(){return new vt(this,16)},h.Mc=function(){return new yt(null,new vt(this,16))},h.ad=function(t,r){return this.c.ad(t,r)},h.Fc=function(t){return this.c.Fc(t)},h.$b=function(){this.c.$b()},h.Gc=function(t){return this.c.Gc(t)},h.Hc=function(t){return k6(this.c,t)},h.Zj=function(){var t,r,o;if(this.d==null){for(this.d=me(u3e,bEe,67,2*this.f+1,0,1),o=this.e,this.f=0,r=this.c.Jc();r.e!=r.i.gc();)t=l(r.Wj(),138),a7(this,t);this.e=o}},h.Fb=function(t){return Rit(this,t)},h.Hb=function(){return bge(this.c)},h.bd=function(t){return this.c.bd(t)},h.$j=function(){this.c=new MXe(this)},h.dc=function(){return this.f==0},h.Jc=function(){return this.c.Jc()},h.cd=function(){return this.c.cd()},h.dd=function(t){return this.c.dd(t)},h._j=function(){return i6(this)},h.ak=function(t,r,o){return new qit(t,r,o)},h.bk=function(){return new UGe},h.Kc=function(t){return Rft(this,t)},h.gc=function(){return this.f},h.hd=function(t,r){return new If(this.c,t,r)},h.Nc=function(){return this.c.Nc()},h.Oc=function(t){return this.c.Oc(t)},h.Ib=function(){return h1e(this.c)},h.e=0,h.f=0,x(_o,"BasicEMap",718),A(1038,67,qf,MXe),h.Ki=function(t,r){UZt(this,l(r,138))},h.Ni=function(t,r,o){var s;++(s=this,l(r,138),s).a.e},h.Oi=function(t,r){HZt(this,l(r,138))},h.Pi=function(t,r,o){jtn(this,l(r,138),l(o,138))},h.Mi=function(t,r){Aht(this.a)},x(_o,"BasicEMap/1",1038),A(1039,67,qf,UGe),h.$i=function(t){return me(q3n,SAt,618,t,0,1)},x(_o,"BasicEMap/2",1039),A(1040,tf,wu,PXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return iY(this.a,t)},h.Jc=function(){return this.a.f==0?(YA(),aM.a):new vQe(this.a)},h.Kc=function(t){var r;return r=this.a.f,Xj(this.a,t),this.a.f!=r},h.gc=function(){return this.a.f},x(_o,"BasicEMap/3",1040),A(1041,32,Ny,jXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return Uwt(this.a,t)},h.Jc=function(){return this.a.f==0?(YA(),aM.a):new EQe(this.a)},h.gc=function(){return this.a.f},x(_o,"BasicEMap/4",1041),A(1042,tf,wu,FXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){var r,o,s,u,f,p,m,y,v;if(this.a.f>0&&se(t,45)&&(this.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Ir(m),f=Fde(this.a,u),r=this.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p"+this.c},h.a=0;var q3n=x(_o,"BasicEMap/EntryImpl",618);A(538,1,{},b9),x(_o,"BasicEMap/View",538);var aM;A(776,1,{}),h.Fb=function(t){return yme((St(),No),t)},h.Hb=function(){return Nge((St(),No))},h.Ib=function(){return Qd((St(),No))},x(_o,"ECollections/BasicEmptyUnmodifiableEList",776),A(1314,1,vh,BGe),h.Nb=function(t){oo(this,t)},h.Rb=function(t){throw K(new Nn)},h.Ob=function(){return!1},h.Sb=function(){return!1},h.Pb=function(){throw K(new ys)},h.Tb=function(){return 0},h.Ub=function(){throw K(new ys)},h.Vb=function(){return-1},h.Qb=function(){throw K(new Nn)},h.Wb=function(t){throw K(new Nn)},x(_o,"ECollections/BasicEmptyUnmodifiableEList/1",1314),A(1312,776,{22:1,18:1,16:1,61:1},xZe),h._c=function(t,r){zQe()},h.Ec=function(t){return GQe()},h.ad=function(t,r){return qQe()},h.Fc=function(t){return VQe()},h.$b=function(){WQe()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){co(this,t)},h.Xb=function(t){return qle((St(),t)),null},h.bd=function(t){return-1},h.dc=function(){return!0},h.Jc=function(){return this.a},h.cd=function(){return this.a},h.dd=function(t){return this.a},h.Ri=function(t,r){return KQe()},h.Si=function(t,r){YQe()},h.ed=function(t){return JQe()},h.Kc=function(t){return XQe()},h.fd=function(t,r){return ZQe()},h.gc=function(){return 0},h.gd=function(t){Ub(this,t)},h.Lc=function(){return new vt(this,16)},h.Mc=function(){return new yt(null,new vt(this,16))},h.hd=function(t,r){return St(),new If(No,t,r)},h.Nc=function(){return $fe((St(),No))},h.Oc=function(t){return St(),dC(No,t)},x(_o,"ECollections/EmptyUnmodifiableEList",1312),A(1313,776,{22:1,18:1,16:1,61:1,593:1},NZe),h._c=function(t,r){zQe()},h.Ec=function(t){return GQe()},h.ad=function(t,r){return qQe()},h.Fc=function(t){return VQe()},h.$b=function(){WQe()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){co(this,t)},h.Xb=function(t){return qle((St(),t)),null},h.bd=function(t){return-1},h.dc=function(){return!0},h.Jc=function(){return this.a},h.cd=function(){return this.a},h.dd=function(t){return this.a},h.Ri=function(t,r){return KQe()},h.Si=function(t,r){YQe()},h.ed=function(t){return JQe()},h.Kc=function(t){return XQe()},h.fd=function(t,r){return ZQe()},h.gc=function(){return 0},h.gd=function(t){Ub(this,t)},h.Lc=function(){return new vt(this,16)},h.Mc=function(){return new yt(null,new vt(this,16))},h.hd=function(t,r){return St(),new If(No,t,r)},h.Nc=function(){return $fe((St(),No))},h.Oc=function(t){return St(),dC(No,t)},h._j=function(){return St(),St(),kh},x(_o,"ECollections/EmptyUnmodifiableEMap",1313);var l3e=Hr(_o,"Enumerator"),wU;A(291,1,{291:1},fJ),h.Fb=function(t){var r;return this===t?!0:se(t,291)?(r=l(t,291),this.f==r.f&&$on(this.i,r.i)&&UV(this.a,this.f&256?r.f&256?r.a:null:r.f&256?null:r.a)&&UV(this.d,r.d)&&UV(this.g,r.g)&&UV(this.e,r.e)&&K1n(this,r)):!1},h.Hb=function(){return this.f},h.Ib=function(){return Syt(this)},h.f=0;var DDt=0,LDt=0,MDt=0,PDt=0,d3e=0,f3e=0,h3e=0,p3e=0,g3e=0,jDt,C4=0,I4=0,FDt=0,$Dt=0,yU,b3e;x(_o,"URI",291),A(1102,44,DE,CZe),h.yc=function(t,r){return l(Qo(this,In(t),l(r,291)),291)},x(_o,"URI/URICache",1102),A(495,67,qf,HGe,sP),h.Qi=function(){return!0},x(_o,"UniqueEList",495),A(585,63,wp,rj),x(_o,"WrappedException",585);var Kn=Hr(el,_At),pv=Hr(el,kAt),au=Hr(el,xAt),gv=Hr(el,NAt),Ld=Hr(el,CAt),Ol=Hr(el,"EClass"),Dre=Hr(el,"EDataType"),BDt;A(1210,44,DE,IZe),h.xc=function(t){return zi(t)?ma(this,t):Es(Zo(this.f,t))},x(el,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var vU=Hr(el,"EEnum"),Ip=Hr(el,IAt),Uo=Hr(el,RAt),Dl=Hr(el,OAt),Ll,cw=Hr(el,DAt),bv=Hr(el,LAt);A(1034,1,{},zGe),h.Ib=function(){return"NIL"},x(el,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var UDt;A(1033,44,DE,RZe),h.xc=function(t){return zi(t)?ma(this,t):Es(Zo(this.f,t))},x(el,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var Ka=Hr(el,MAt),WT=Hr(el,"EValidator/PatternMatcher"),m3e,w3e,Bt,Rg,mv,X1,HDt,zDt,GDt,Z1,Og,Q1,lw,bf,qDt,VDt,Ml,Dg,WDt,Lg,wv,w2,Io,KDt,YDt,dw,EU=Hr(Fr,"FeatureMap/Entry");A(537,1,{76:1},T8),h.Jk=function(){return this.a},h.kd=function(){return this.b},x(zt,"BasicEObjectImpl/1",537),A(1032,1,bQ,tnt),h.Dk=function(t){return zW(this.a,this.b,t)},h.Oj=function(){return qat(this.a,this.b)},h.Wb=function(t){_he(this.a,this.b,t)},h.Ek=function(){Dsn(this.a,this.b)},x(zt,"BasicEObjectImpl/4",1032),A(2060,1,{115:1}),h.Kk=function(t){this.e=t==0?JDt:me(Ci,Rt,1,t,5,1)},h.ii=function(t){return this.e[t]},h.ji=function(t,r){this.e[t]=r},h.ki=function(t){this.e[t]=null},h.Lk=function(){return this.c},h.Mk=function(){throw K(new Nn)},h.Nk=function(){throw K(new Nn)},h.Ok=function(){return this.d},h.Pk=function(){return this.e!=null},h.Qk=function(t){this.c=t},h.Rk=function(t){throw K(new Nn)},h.Sk=function(t){throw K(new Nn)},h.Tk=function(t){this.d=t};var JDt;x(zt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),A(195,2060,{115:1},bd),h.Mk=function(){return this.a},h.Nk=function(){return this.b},h.Rk=function(t){this.a=t},h.Sk=function(t){this.b=t},x(zt,"BasicEObjectImpl/EPropertiesHolderImpl",195),A(505,101,MTt,m9),h.rh=function(){return this.f},h.wh=function(){return this.k},h.yh=function(t,r){this.g=t,this.i=r},h.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},h.Ch=function(){return this.i},h.th=function(){return(this.j&1)!=0},h.Mh=function(){return this.g},h.Sh=function(){return(this.j&4)!=0},h.Xh=function(){return!this.k&&(this.k=new bd),this.k},h._h=function(t){this.Xh().Qk(t),t?this.j|=2:this.j&=-3},h.bi=function(t){this.Xh().Sk(t),t?this.j|=4:this.j&=-5},h.fi=function(){return(a1(),Bt).S},h.i=0,h.j=1,x(zt,"EObjectImpl",505),A(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},Sfe),h.ii=function(t){return this.e[t]},h.ji=function(t,r){this.e[t]=r},h.ki=function(t){this.e[t]=null},h.Ah=function(){return this.d},h.Fh=function(t){return Ur(this.d,t)},h.Hh=function(){return this.d},h.Lh=function(){return this.e!=null},h.Xh=function(){return!this.k&&(this.k=new GGe),this.k},h._h=function(t){this.d=t},h.ei=function(){var t;return this.e==null&&(t=ln(this.d),this.e=t==0?XDt:me(Ci,Rt,1,t,5,1)),this},h.gi=function(){return 0};var XDt;x(zt,"DynamicEObjectImpl",792),A(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},vot),h.Fb=function(t){return this===t},h.Hb=function(){return o0(this)},h._h=function(t){this.d=t,this.b=nD(t,"key"),this.c=nD(t,rI)},h.yi=function(){var t;return this.a==-1&&(t=rK(this,this.b),this.a=t==null?0:Ir(t)),this.a},h.jd=function(){return rK(this,this.b)},h.kd=function(){return rK(this,this.c)},h.zi=function(t){this.a=t},h.Ai=function(t){_he(this,this.b,t)},h.ld=function(t){var r;return r=rK(this,this.c),_he(this,this.c,t),r},h.a=0,x(zt,"DynamicEObjectImpl/BasicEMapEntry",1500),A(1501,1,{115:1},GGe),h.Kk=function(t){throw K(new Nn)},h.ii=function(t){throw K(new Nn)},h.ji=function(t,r){throw K(new Nn)},h.ki=function(t){throw K(new Nn)},h.Lk=function(){throw K(new Nn)},h.Mk=function(){return this.a},h.Nk=function(){return this.b},h.Ok=function(){return this.c},h.Pk=function(){throw K(new Nn)},h.Qk=function(t){throw K(new Nn)},h.Rk=function(t){this.a=t},h.Sk=function(t){this.b=t},h.Tk=function(t){this.c=t},x(zt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501),A(508,162,{110:1,95:1,94:1,594:1,159:1,57:1,115:1,52:1,101:1,508:1,162:1,118:1,119:1},Rue),h.xh=function(t){return Q1e(this,t)},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.d;case 2:return o?(!this.b&&(this.b=new Xu((Tt(),Io),Hs,this)),this.b):(!this.b&&(this.b=new Xu((Tt(),Io),Hs,this)),i6(this.b));case 3:return Xat(this);case 4:return!this.a&&(this.a=new yi(Y1,this,4)),this.a;case 5:return!this.c&&(this.c=new oE(Y1,this,5)),this.c}return qc(this,t-ln((Tt(),Rg)),Nt((s=l(qt(this,16),29),s||Rg),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 3:return this.Cb&&(o=(u=this.Db>>16,u>=0?Q1e(this,o):this.Cb.Qh(this,-1-u,null,o))),jfe(this,l(t,159),o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),Rg)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),Rg)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 2:return!this.b&&(this.b=new Xu((Tt(),Io),Hs,this)),z8(this.b,t,o);case 3:return jfe(this,null,o);case 4:return!this.a&&(this.a=new yi(Y1,this,4)),Ao(this.a,t,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Rg)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Rg)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!Xat(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zc(this,t-ln((Tt(),Rg)),Nt((r=l(qt(this,16),29),r||Rg),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ton(this,In(r));return;case 2:!this.b&&(this.b=new Xu((Tt(),Io),Hs,this)),xj(this.b,r);return;case 3:cwt(this,l(r,159));return;case 4:!this.a&&(this.a=new yi(Y1,this,4)),vn(this.a),!this.a&&(this.a=new yi(Y1,this,4)),ti(this.a,l(r,18));return;case 5:!this.c&&(this.c=new oE(Y1,this,5)),vn(this.c),!this.c&&(this.c=new oE(Y1,this,5)),ti(this.c,l(r,18));return}Xc(this,t-ln((Tt(),Rg)),Nt((o=l(qt(this,16),29),o||Rg),t),r)},h.fi=function(){return Tt(),Rg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:Xpe(this,null);return;case 2:!this.b&&(this.b=new Xu((Tt(),Io),Hs,this)),this.b.c.$b();return;case 3:cwt(this,null);return;case 4:!this.a&&(this.a=new yi(Y1,this,4)),vn(this.a);return;case 5:!this.c&&(this.c=new oE(Y1,this,5)),vn(this.c);return}Jc(this,t-ln((Tt(),Rg)),Nt((r=l(qt(this,16),29),r||Rg),t))},h.Ib=function(){return Kpt(this)},h.d=null,x(zt,"EAnnotationImpl",508),A(145,718,mEe,pu),h.Ei=function(t,r){Hen(this,t,l(r,45))},h.Uk=function(t,r){return Gnn(this,l(t,45),r)},h.Yi=function(t){return l(l(this.c,72).Yi(t),138)},h.Gi=function(){return l(this.c,72).Gi()},h.Hi=function(){return l(this.c,72).Hi()},h.Ii=function(t){return l(this.c,72).Ii(t)},h.Vk=function(t,r){return z8(this,t,r)},h.Dk=function(t){return l(this.c,78).Dk(t)},h.$j=function(){},h.Oj=function(){return l(this.c,78).Oj()},h.ak=function(t,r,o){var s;return s=l(mc(this.b).ti().pi(this.b),138),s.zi(t),s.Ai(r),s.ld(o),s},h.bk=function(){return new pce(this)},h.Wb=function(t){xj(this,t)},h.Ek=function(){l(this.c,78).Ek()},x(Fr,"EcoreEMap",145),A(170,145,mEe,Xu),h.Zj=function(){var t,r,o,s,u,f;if(this.d==null){for(f=me(u3e,bEe,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)r=l(o.Wj(),138),s=r.yi(),u=(s&sr)%f.length,t=f[u],!t&&(t=f[u]=new pce(this)),t.Ec(r);this.d=f}},x(zt,"EAnnotationImpl/1",170),A(294,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,473:1,52:1,101:1,162:1,294:1,118:1,119:1}),h.Ih=function(t,r,o){var s,u;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q}return qc(this,t-ln(this.fi()),Nt((s=l(qt(this,16),29),s||this.fi()),t),r,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 9:return rW(this,o)}return u=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0)}return zc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,s;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:this.ri(In(r));return;case 2:fg(this,Ke(We(r)));return;case 3:hg(this,Ke(We(r)));return;case 4:ug(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Wb(this,l(r,146));return;case 9:s=Zd(this,l(r,88),null),s&&s.mj();return}Xc(this,t-ln(this.fi()),Nt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return Tt(),YDt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return;case 2:fg(this,!0);return;case 3:hg(this,!0);return;case 4:ug(this,0);return;case 5:this.Xk(1);return;case 8:Wb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return}Jc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.mi=function(){Sl(this),this.Bb|=1},h.Fk=function(){return Sl(this)},h.Gk=function(){return this.t},h.Hk=function(){var t;return t=this.t,t>1||t==-1},h.Qi=function(){return(this.Bb&512)!=0},h.Wk=function(t,r){return Kge(this,t,r)},h.Xk=function(t){uy(this,t)},h.Ib=function(){return lme(this)},h.s=0,h.t=1,x(zt,"ETypedElementImpl",294),A(454,294,{110:1,95:1,94:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,454:1,294:1,118:1,119:1,689:1}),h.xh=function(t){return B1t(this,t)},h.Ih=function(t,r,o){var s,u;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&mp);case 12:return Lt(),!!(this.Bb&Iy);case 13:return this.j;case 14:return Y_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&Ff);case 17:return ty(this)}return qc(this,t-ln(this.fi()),Nt((s=l(qt(this,16),29),s||this.fi()),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 17:return this.Cb&&(o=(u=this.Db>>16,u>=0?B1t(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,17,o)}return f=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 9:return rW(this,o);case 17:return Sc(this,null,17,o)}return u=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&mp)!=0;case 12:return(this.Bb&Iy)!=0;case 13:return this.j!=null;case 14:return Y_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&Ff)!=0;case 17:return!!ty(this)}return zc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,s;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:CW(this,In(r));return;case 2:fg(this,Ke(We(r)));return;case 3:hg(this,Ke(We(r)));return;case 4:ug(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Wb(this,l(r,146));return;case 9:s=Zd(this,l(r,88),null),s&&s.mj();return;case 10:D_(this,Ke(We(r)));return;case 11:P_(this,Ke(We(r)));return;case 12:L_(this,Ke(We(r)));return;case 13:zle(this,In(r));return;case 15:M_(this,Ke(We(r)));return;case 16:j_(this,Ke(We(r)));return}Xc(this,t-ln(this.fi()),Nt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return Tt(),KDt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,89)&&Ey(Mu(l(this.Cb,89)),4),Da(this,null);return;case 2:fg(this,!0);return;case 3:hg(this,!0);return;case 4:ug(this,0);return;case 5:this.Xk(1);return;case 8:Wb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:P_(this,!1);return;case 12:L_(this,!1);return;case 13:this.i=null,Ej(this,null);return;case 15:M_(this,!1);return;case 16:j_(this,!1);return}Jc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.mi=function(){a_(es((mu(),so),this)),Sl(this),this.Bb|=1},h.nk=function(){return this.f},h.gk=function(){return Y_(this)},h.ok=function(){return ty(this)},h.sk=function(){return null},h.Yk=function(){return this.k},h.Jj=function(){return this.n},h.tk=function(){return g7(this)},h.uk=function(){var t,r,o,s,u,f,p,m,y;return this.p||(o=ty(this),(o.i==null&&jf(o),o.i).length,s=this.sk(),s&&ln(ty(s)),u=Sl(this),p=u.ik(),t=p?p.i&1?p==uu?Yr:p==Rn?Ti:p==vv?Bk:p==Ki?fi:p==hw?K0:p==S2?Y0:p==Eu?yT:pI:p:null,r=Y_(this),m=u.gk(),mgn(this),this.Bb&Ff&&((f=sbe((mu(),so),o))&&f!=this||(f=DS(es(so,this))))?this.p=new rnt(this,f):this.Hk()?this.$k()?s?this.Bb&yu?t?this._k()?this.p=new Ob(47,t,this,s):this.p=new Ob(5,t,this,s):this._k()?this.p=new Fb(46,this,s):this.p=new Fb(4,this,s):t?this._k()?this.p=new Ob(49,t,this,s):this.p=new Ob(7,t,this,s):this._k()?this.p=new Fb(48,this,s):this.p=new Fb(6,this,s):this.Bb&yu?t?t==cm?this.p=new ng(50,IDt,this):this._k()?this.p=new ng(43,t,this):this.p=new ng(1,t,this):this._k()?this.p=new ig(42,this):this.p=new ig(0,this):t?t==cm?this.p=new ng(41,IDt,this):this._k()?this.p=new ng(45,t,this):this.p=new ng(3,t,this):this._k()?this.p=new ig(44,this):this.p=new ig(2,this):se(u,160)?t==EU?this.p=new ig(40,this):this.Bb&512?this.Bb&yu?t?this.p=new ng(9,t,this):this.p=new ig(8,this):t?this.p=new ng(11,t,this):this.p=new ig(10,this):this.Bb&yu?t?this.p=new ng(13,t,this):this.p=new ig(12,this):t?this.p=new ng(15,t,this):this.p=new ig(14,this):s?(y=s.t,y>1||y==-1?this._k()?this.Bb&yu?t?this.p=new Ob(25,t,this,s):this.p=new Fb(24,this,s):t?this.p=new Ob(27,t,this,s):this.p=new Fb(26,this,s):this.Bb&yu?t?this.p=new Ob(29,t,this,s):this.p=new Fb(28,this,s):t?this.p=new Ob(31,t,this,s):this.p=new Fb(30,this,s):this._k()?this.Bb&yu?t?this.p=new Ob(33,t,this,s):this.p=new Fb(32,this,s):t?this.p=new Ob(35,t,this,s):this.p=new Fb(34,this,s):this.Bb&yu?t?this.p=new Ob(37,t,this,s):this.p=new Fb(36,this,s):t?this.p=new Ob(39,t,this,s):this.p=new Fb(38,this,s)):this._k()?this.Bb&yu?t?this.p=new ng(17,t,this):this.p=new ig(16,this):t?this.p=new ng(19,t,this):this.p=new ig(18,this):this.Bb&yu?t?this.p=new ng(21,t,this):this.p=new ig(20,this):t?this.p=new ng(23,t,this):this.p=new ig(22,this):this.Zk()?this._k()?this.p=new Kit(l(u,29),this,s):this.p=new Ahe(l(u,29),this,s):se(u,160)?t==EU?this.p=new ig(40,this):this.Bb&yu?t?this.p=new qot(r,m,this,(sY(),p==Rn?_3e:p==uu?v3e:p==hw?k3e:p==vv?A3e:p==Ki?T3e:p==S2?x3e:p==Eu?E3e:p==al?S3e:Pre)):this.p=new uat(l(u,160),r,m,this):t?this.p=new Got(r,m,this,(sY(),p==Rn?_3e:p==uu?v3e:p==hw?k3e:p==vv?A3e:p==Ki?T3e:p==S2?x3e:p==Eu?E3e:p==al?S3e:Pre)):this.p=new aat(l(u,160),r,m,this):this.$k()?s?this.Bb&yu?this._k()?this.p=new Jit(l(u,29),this,s):this.p=new ffe(l(u,29),this,s):this._k()?this.p=new Yit(l(u,29),this,s):this.p=new DV(l(u,29),this,s):this.Bb&yu?this._k()?this.p=new zrt(l(u,29),this):this.p=new xde(l(u,29),this):this._k()?this.p=new Hrt(l(u,29),this):this.p=new wV(l(u,29),this):this._k()?s?this.Bb&yu?this.p=new Xit(l(u,29),this,s):this.p=new lfe(l(u,29),this,s):this.Bb&yu?this.p=new qrt(l(u,29),this):this.p=new Nde(l(u,29),this):s?this.Bb&yu?this.p=new Zit(l(u,29),this,s):this.p=new dfe(l(u,29),this,s):this.Bb&yu?this.p=new Grt(l(u,29),this):this.p=new aP(l(u,29),this)),this.p},h.pk=function(){return(this.Bb&Tl)!=0},h.Zk=function(){return!1},h.$k=function(){return!1},h.qk=function(){return(this.Bb&Ff)!=0},h.vk=function(){return oK(this)},h._k=function(){return!1},h.rk=function(){return(this.Bb&yu)!=0},h.al=function(t){this.k=t},h.ri=function(t){CW(this,t)},h.Ib=function(){return $7(this)},h.e=!1,h.n=0,x(zt,"EStructuralFeatureImpl",454),A(336,454,{110:1,95:1,94:1,38:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,336:1,162:1,454:1,294:1,118:1,119:1,689:1},XG),h.Ih=function(t,r,o){var s,u;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!ime(this);case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&mp);case 12:return Lt(),!!(this.Bb&Iy);case 13:return this.j;case 14:return Y_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&Ff);case 17:return ty(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return r?xK(this):blt(this)}return qc(this,t-ln((Tt(),mv)),Nt((s=l(qt(this,16),29),s||mv),t),r,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return ime(this);case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&mp)!=0;case 12:return(this.Bb&Iy)!=0;case 13:return this.j!=null;case 14:return Y_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&Ff)!=0;case 17:return!!ty(this);case 18:return(this.Bb&Ws)!=0;case 19:return!!blt(this)}return zc(this,t-ln((Tt(),mv)),Nt((r=l(qt(this,16),29),r||mv),t))},h.$h=function(t,r){var o,s;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:CW(this,In(r));return;case 2:fg(this,Ke(We(r)));return;case 3:hg(this,Ke(We(r)));return;case 4:ug(this,l(r,15).a);return;case 5:SQe(this,l(r,15).a);return;case 8:Wb(this,l(r,146));return;case 9:s=Zd(this,l(r,88),null),s&&s.mj();return;case 10:D_(this,Ke(We(r)));return;case 11:P_(this,Ke(We(r)));return;case 12:L_(this,Ke(We(r)));return;case 13:zle(this,In(r));return;case 15:M_(this,Ke(We(r)));return;case 16:j_(this,Ke(We(r)));return;case 18:XK(this,Ke(We(r)));return}Xc(this,t-ln((Tt(),mv)),Nt((o=l(qt(this,16),29),o||mv),t),r)},h.fi=function(){return Tt(),mv},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,89)&&Ey(Mu(l(this.Cb,89)),4),Da(this,null);return;case 2:fg(this,!0);return;case 3:hg(this,!0);return;case 4:ug(this,0);return;case 5:this.b=0,uy(this,1);return;case 8:Wb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:P_(this,!1);return;case 12:L_(this,!1);return;case 13:this.i=null,Ej(this,null);return;case 15:M_(this,!1);return;case 16:j_(this,!1);return;case 18:XK(this,!1);return}Jc(this,t-ln((Tt(),mv)),Nt((r=l(qt(this,16),29),r||mv),t))},h.mi=function(){xK(this),a_(es((mu(),so),this)),Sl(this),this.Bb|=1},h.Hk=function(){return ime(this)},h.Wk=function(t,r){return this.b=0,this.a=null,Kge(this,t,r)},h.Xk=function(t){SQe(this,t)},h.Ib=function(){var t;return this.Db&64?$7(this):(t=new ml($7(this)),t.a+=" (iD: ",Xp(t,(this.Bb&Ws)!=0),t.a+=")",t.a)},h.b=0,x(zt,"EAttributeImpl",336),A(361,444,{110:1,95:1,94:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1}),h.bl=function(t){return t.Ah()==this},h.xh=function(t){return OY(this,t)},h.yh=function(t,r){this.w=null,this.Db=r<<16|this.Db&255,this.Cb=t},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return C0(this);case 4:return this.gk();case 5:return this.F;case 6:return r?mc(this):l_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A}return qc(this,t-ln(this.fi()),Nt((s=l(qt(this,16),29),s||this.fi()),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?OY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o)}return f=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),Ao(this.A,t,o)}return u=l(Nt((s=l(qt(this,16),29),s||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!C0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!l_(this);case 7:return!!this.A&&this.A.i!=0}return zc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:MP(this,In(r));return;case 2:oV(this,In(r));return;case 5:rk(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return}Xc(this,t-ln(this.fi()),Nt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return Tt(),HDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,187)&&(l(this.Cb,187).tb=null),Da(this,null);return;case 2:C_(this,null),w_(this,this.D);return;case 5:rk(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return}Jc(this,t-ln(this.fi()),Nt((r=l(qt(this,16),29),r||this.fi()),t))},h.fk=function(){var t;return this.G==-1&&(this.G=(t=mc(this),t?pg(t.si(),this):-1)),this.G},h.gk=function(){return null},h.hk=function(){return mc(this)},h.cl=function(){return this.v},h.ik=function(){return C0(this)},h.jk=function(){return this.D!=null?this.D:this.B},h.kk=function(){return this.F},h.dk=function(t){return EJ(this,t)},h.dl=function(t){this.v=t},h.el=function(t){nht(this,t)},h.fl=function(t){this.C=t},h.ri=function(t){MP(this,t)},h.Ib=function(){return Wj(this)},h.C=null,h.D=null,h.G=-1,x(zt,"EClassifierImpl",361),A(89,361,{110:1,95:1,94:1,29:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,89:1,361:1,162:1,474:1,118:1,119:1,688:1},Pue),h.bl=function(t){return Cnn(this,t.Ah())},h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return C0(this);case 4:return null;case 5:return this.F;case 6:return r?mc(this):l_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A;case 8:return Lt(),!!(this.Bb&256);case 9:return Lt(),!!(this.Bb&512);case 10:return us(this);case 11:return!this.q&&(this.q=new xe(Dl,this,11,10)),this.q;case 12:return CE(this);case 13:return RC(this);case 14:return RC(this),this.r;case 15:return CE(this),this.k;case 16:return Wbe(this);case 17:return _J(this);case 18:return jf(this);case 19:return R7(this);case 20:return CE(this),this.o;case 21:return!this.s&&(this.s=new xe(au,this,21,17)),this.s;case 22:return oa(this);case 23:return dJ(this)}return qc(this,t-ln((Tt(),X1)),Nt((s=l(qt(this,16),29),s||X1),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?OY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o);case 11:return!this.q&&(this.q=new xe(Dl,this,11,10)),La(this.q,t,o);case 21:return!this.s&&(this.s=new xe(au,this,21,17)),La(this.s,t,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),X1)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),X1)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),Ao(this.A,t,o);case 11:return!this.q&&(this.q=new xe(Dl,this,11,10)),Ao(this.q,t,o);case 21:return!this.s&&(this.s=new xe(au,this,21,17)),Ao(this.s,t,o);case 22:return Ao(oa(this),t,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),X1)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),X1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!C0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!l_(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&oa(this.u.a).i!=0&&!(this.n&&EY(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return CE(this).i!=0;case 13:return RC(this).i!=0;case 14:return RC(this),this.r.i!=0;case 15:return CE(this),this.k.i!=0;case 16:return Wbe(this).i!=0;case 17:return _J(this).i!=0;case 18:return jf(this).i!=0;case 19:return R7(this).i!=0;case 20:return CE(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&EY(this.n);case 23:return dJ(this).i!=0}return zc(this,t-ln((Tt(),X1)),Nt((r=l(qt(this,16),29),r||X1),t))},h.Wh=function(t){var r;return r=this.i==null||this.q&&this.q.i!=0?null:nD(this,t),r||P0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:MP(this,In(r));return;case 2:oV(this,In(r));return;case 5:rk(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return;case 8:Xge(this,Ke(We(r)));return;case 9:Zge(this,Ke(We(r)));return;case 10:LC(us(this)),ti(us(this),l(r,18));return;case 11:!this.q&&(this.q=new xe(Dl,this,11,10)),vn(this.q),!this.q&&(this.q=new xe(Dl,this,11,10)),ti(this.q,l(r,18));return;case 21:!this.s&&(this.s=new xe(au,this,21,17)),vn(this.s),!this.s&&(this.s=new xe(au,this,21,17)),ti(this.s,l(r,18));return;case 22:vn(oa(this)),ti(oa(this),l(r,18));return}Xc(this,t-ln((Tt(),X1)),Nt((o=l(qt(this,16),29),o||X1),t),r)},h.fi=function(){return Tt(),X1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,187)&&(l(this.Cb,187).tb=null),Da(this,null);return;case 2:C_(this,null),w_(this,this.D);return;case 5:rk(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:Xge(this,!1);return;case 9:Zge(this,!1);return;case 10:this.u&&LC(this.u);return;case 11:!this.q&&(this.q=new xe(Dl,this,11,10)),vn(this.q);return;case 21:!this.s&&(this.s=new xe(au,this,21,17)),vn(this.s);return;case 22:this.n&&vn(this.n);return}Jc(this,t-ln((Tt(),X1)),Nt((r=l(qt(this,16),29),r||X1),t))},h.mi=function(){var t,r;if(CE(this),RC(this),Wbe(this),_J(this),jf(this),R7(this),dJ(this),B3(oon(Mu(this))),this.s)for(t=0,r=this.s.i;t=0;--r)ie(this,r);return E1e(this,t)},h.Ek=function(){vn(this)},h.Xi=function(t,r){return Ift(this,t,r)},x(Fr,"EcoreEList",630),A(494,630,ms,UO),h.Ji=function(){return!1},h.Jj=function(){return this.c},h.Kj=function(){return!1},h.ml=function(){return!0},h.Qi=function(){return!0},h.Ui=function(t,r){return r},h.Wi=function(){return!1},h.c=0,x(Fr,"EObjectEList",494),A(82,494,ms,yi),h.Kj=function(){return!0},h.kl=function(){return!1},h.$k=function(){return!0},x(Fr,"EObjectContainmentEList",82),A(547,82,ms,L8),h.Li=function(){this.b=!0},h.Oj=function(){return this.b},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.b,this.b=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.b=!1},h.b=!1,x(Fr,"EObjectContainmentEList/Unsettable",547),A(1142,547,ms,Hot),h.Ri=function(t,r){var o,s;return o=l(oC(this,t,r),88),Yu(this.e)&&DA(this,new o6(this.a,7,(Tt(),zDt),Re(r),(s=o.c,se(s,89)?l(s,29):Ml),t)),o},h.Sj=function(t,r){return Xgn(this,l(t,88),r)},h.Tj=function(t,r){return Jgn(this,l(t,88),r)},h.Uj=function(t,r,o){return e0n(this,l(t,88),l(r,88),o)},h.Gj=function(t,r,o,s,u){switch(t){case 3:return L3(this,t,r,o,s,this.i>1);case 5:return L3(this,t,r,o,s,this.i-l(o,16).gc()>0);default:return new ap(this.e,t,this.c,r,o,s,!0)}},h.Rj=function(){return!0},h.Oj=function(){return EY(this)},h.Ek=function(){vn(this)},x(zt,"EClassImpl/1",1142),A(1156,1155,gEe),h.bj=function(t){var r,o,s,u,f,p,m;if(o=t.ej(),o!=8){if(s=O1n(t),s==0)switch(o){case 1:case 9:{m=t.ij(),m!=null&&(r=Mu(l(m,474)),!r.c&&(r.c=new xA),sj(r.c,t.hj())),p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Mu(u),!r.c&&(r.c=new xA),Tn(r.c,l(t.hj(),29))));break}case 3:{p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Mu(u),!r.c&&(r.c=new xA),Tn(r.c,l(t.hj(),29))));break}case 5:{if(p=t.gj(),p!=null)for(f=l(p,18).Jc();f.Ob();)u=l(f.Pb(),474),u.Bb&1||(r=Mu(u),!r.c&&(r.c=new xA),Tn(r.c,l(t.hj(),29)));break}case 4:{m=t.ij(),m!=null&&(u=l(m,474),u.Bb&1||(r=Mu(u),!r.c&&(r.c=new xA),sj(r.c,t.hj())));break}case 6:{if(m=t.ij(),m!=null)for(f=l(m,18).Jc();f.Ob();)u=l(f.Pb(),474),u.Bb&1||(r=Mu(u),!r.c&&(r.c=new xA),sj(r.c,t.hj()));break}}this.ol(s)}},h.ol=function(t){Ywt(this,t)},h.b=63,x(zt,"ESuperAdapter",1156),A(1157,1156,gEe,BXe),h.ol=function(t){Ey(this,t)},x(zt,"EClassImpl/10",1157),A(1146,706,ms),h.Ci=function(t,r){return GY(this,t,r)},h.Di=function(t){return A1t(this,t)},h.Ei=function(t,r){R6(this,t,r)},h.Fi=function(t){t6(this,t)},h.Yi=function(t){return _pe(this,t)},h.Vi=function(t,r){return iK(this,t,r)},h.Uk=function(t,r){throw K(new Nn)},h.Gi=function(){return new yS(this)},h.Hi=function(){return new NO(this)},h.Ii=function(t){return w6(this,t)},h.Vk=function(t,r){throw K(new Nn)},h.Dk=function(t){return this},h.Oj=function(){return this.i!=0},h.Wb=function(t){throw K(new Nn)},h.Ek=function(){throw K(new Nn)},x(Fr,"EcoreEList/UnmodifiableEList",1146),A(334,1146,ms,Qv),h.Wi=function(){return!1},x(Fr,"EcoreEList/UnmodifiableEList/FastCompare",334),A(1149,334,ms,Yht),h.bd=function(t){var r,o,s;if(se(t,182)&&(r=l(t,182),o=r.Jj(),o!=-1)){for(s=this.i;o4)if(this.dk(t)){if(this.$k()){if(s=l(t,52),o=s.Bh(),m=o==this.b&&(this.kl()?s.vh(s.Ch(),l(Nt(Ja(this.b),this.Jj()).Fk(),29).ik())==Do(l(Nt(Ja(this.b),this.Jj()),20)).n:-1-s.Ch()==this.Jj()),this.ll()&&!m&&!o&&s.Gh()){for(u=0;u1||s==-1)):!1},h.kl=function(){var t,r,o;return r=Nt(Ja(this.b),this.Jj()),se(r,104)?(t=l(r,20),o=Do(t),!!o):!1},h.ll=function(){var t,r;return r=Nt(Ja(this.b),this.Jj()),se(r,104)?(t=l(r,20),(t.Bb&xo)!=0):!1},h.bd=function(t){var r,o,s,u;if(s=this.xj(t),s>=0)return s;if(this.ml()){for(o=0,u=this.Cj();o=0;--t)cD(this,t,this.vj(t));return this.Dj()},h.Oc=function(t){var r;if(this.ll())for(r=this.Cj()-1;r>=0;--r)cD(this,r,this.vj(r));return this.Ej(t)},h.Ek=function(){LC(this)},h.Xi=function(t,r){return Zlt(this,t,r)},x(Fr,"DelegatingEcoreEList",751),A(1152,751,yEe,nit),h.oj=function(t,r){Ztn(this,t,l(r,29))},h.pj=function(t){Gen(this,l(t,29))},h.vj=function(t){var r,o;return r=l(ie(oa(this.a),t),88),o=r.c,se(o,89)?l(o,29):(Tt(),Ml)},h.Aj=function(t){var r,o;return r=l(Ay(oa(this.a),t),88),o=r.c,se(o,89)?l(o,29):(Tt(),Ml)},h.Bj=function(t,r){return _bn(this,t,l(r,29))},h.Ji=function(){return!1},h.Gj=function(t,r,o,s,u){return null},h.qj=function(){return new HXe(this)},h.rj=function(){vn(oa(this.a))},h.sj=function(t){return Ypt(this,t)},h.tj=function(t){var r,o;for(o=t.Jc();o.Ob();)if(r=o.Pb(),!Ypt(this,r))return!1;return!0},h.uj=function(t){var r,o,s;if(se(t,16)&&(s=l(t,16),s.gc()==oa(this.a).i)){for(r=s.Jc(),o=new en(this);r.Ob();)if(be(r.Pb())!==be(rn(o)))return!1;return!0}return!1},h.wj=function(){var t,r,o,s,u;for(o=1,r=new en(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),s=(u=t.c,se(u,89)?l(u,29):(Tt(),Ml)),o=31*o+(s?o0(s):0);return o},h.xj=function(t){var r,o,s,u;for(s=0,o=new en(oa(this.a));o.e!=o.i.gc();){if(r=l(rn(o),88),be(t)===be((u=r.c,se(u,89)?l(u,29):(Tt(),Ml))))return s;++s}return-1},h.yj=function(){return oa(this.a).i==0},h.zj=function(){return null},h.Cj=function(){return oa(this.a).i},h.Dj=function(){var t,r,o,s,u,f;for(f=oa(this.a).i,u=me(Ci,Rt,1,f,5,1),o=0,r=new en(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),u[o++]=(s=t.c,se(s,89)?l(s,29):(Tt(),Ml));return u},h.Ej=function(t){var r,o,s,u,f,p,m;for(m=oa(this.a).i,t.lengthm&&ii(t,m,null),s=0,o=new en(oa(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,se(p,89)?l(p,29):(Tt(),Ml)),ii(t,s++,f);return t},h.Fj=function(){var t,r,o,s,u;for(u=new Jp,u.a+="[",t=oa(this.a),r=0,s=oa(this.a).i;r>16,u>=0?OY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o);case 9:return!this.a&&(this.a=new xe(Ip,this,9,5)),La(this.a,t,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),Z1)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),Z1)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),Ao(this.A,t,o);case 9:return!this.a&&(this.a=new xe(Ip,this,9,5)),Ao(this.a,t,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Z1)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Z1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!C0(this);case 4:return!!Fge(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!l_(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return zc(this,t-ln((Tt(),Z1)),Nt((r=l(qt(this,16),29),r||Z1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:MP(this,In(r));return;case 2:oV(this,In(r));return;case 5:rk(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return;case 8:Bj(this,Ke(We(r)));return;case 9:!this.a&&(this.a=new xe(Ip,this,9,5)),vn(this.a),!this.a&&(this.a=new xe(Ip,this,9,5)),ti(this.a,l(r,18));return}Xc(this,t-ln((Tt(),Z1)),Nt((o=l(qt(this,16),29),o||Z1),t),r)},h.fi=function(){return Tt(),Z1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,187)&&(l(this.Cb,187).tb=null),Da(this,null);return;case 2:C_(this,null),w_(this,this.D);return;case 5:rk(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:Bj(this,!0);return;case 9:!this.a&&(this.a=new xe(Ip,this,9,5)),vn(this.a);return}Jc(this,t-ln((Tt(),Z1)),Nt((r=l(qt(this,16),29),r||Z1),t))},h.mi=function(){var t,r;if(this.a)for(t=0,r=this.a.i;t>16==5?l(this.Cb,682):null}return qc(this,t-ln((Tt(),Og)),Nt((s=l(qt(this,16),29),s||Og),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 5:return this.Cb&&(o=(u=this.Db>>16,u>=0?X1t(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,5,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),Og)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),Og)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 5:return Sc(this,null,5,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Og)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Og)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&l(this.Cb,682))}return zc(this,t-ln((Tt(),Og)),Nt((r=l(qt(this,16),29),r||Og),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Da(this,In(r));return;case 2:dK(this,l(r,15).a);return;case 3:i0t(this,l(r,2018));return;case 4:hK(this,In(r));return}Xc(this,t-ln((Tt(),Og)),Nt((o=l(qt(this,16),29),o||Og),t),r)},h.fi=function(){return Tt(),Og},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:Da(this,null);return;case 2:dK(this,0);return;case 3:i0t(this,null);return;case 4:hK(this,null);return}Jc(this,t-ln((Tt(),Og)),Nt((r=l(qt(this,16),29),r||Og),t))},h.Ib=function(){var t;return t=this.c,t??this.zb},h.b=null,h.c=null,h.d=0,x(zt,"EEnumLiteralImpl",575);var V3n=Hr(zt,"EFactoryImpl/InternalEDateTimeFormat");A(488,1,{2093:1},ZR),x(zt,"EFactoryImpl/1ClientInternalEDateTimeFormat",488),A(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Km),h.zh=function(t,r,o){var s;return o=Sc(this,t,r,o),this.e&&se(t,182)&&(s=I7(this,this.e),s!=this.c&&(o=ik(this,s,o))),o},h.Ih=function(t,r,o){var s;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new yi(Uo,this,1)),this.d;case 2:return r?U7(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return r?AY(this):this.a}return qc(this,t-ln((Tt(),lw)),Nt((s=l(qt(this,16),29),s||lw),t),r,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return Ppt(this,null,o);case 1:return!this.d&&(this.d=new yi(Uo,this,1)),Ao(this.d,t,o);case 3:return Mpt(this,null,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),lw)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),lw)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return zc(this,t-ln((Tt(),lw)),Nt((r=l(qt(this,16),29),r||lw),t))},h.$h=function(t,r){var o;switch(t){case 0:bbt(this,l(r,88));return;case 1:!this.d&&(this.d=new yi(Uo,this,1)),vn(this.d),!this.d&&(this.d=new yi(Uo,this,1)),ti(this.d,l(r,18));return;case 3:pbe(this,l(r,88));return;case 4:Dbe(this,l(r,842));return;case 5:m_(this,l(r,146));return}Xc(this,t-ln((Tt(),lw)),Nt((o=l(qt(this,16),29),o||lw),t),r)},h.fi=function(){return Tt(),lw},h.hi=function(t){var r;switch(t){case 0:bbt(this,null);return;case 1:!this.d&&(this.d=new yi(Uo,this,1)),vn(this.d);return;case 3:pbe(this,null);return;case 4:Dbe(this,null);return;case 5:m_(this,null);return}Jc(this,t-ln((Tt(),lw)),Nt((r=l(qt(this,16),29),r||lw),t))},h.Ib=function(){var t;return t=new fc(Zl(this)),t.a+=" (expression: ",IJ(this,t),t.a+=")",t.a};var y3e;x(zt,"EGenericTypeImpl",251),A(2046,2041,WF),h.Ei=function(t,r){eit(this,t,r)},h.Uk=function(t,r){return eit(this,this.gc(),t),r},h.Yi=function(t){return sa(this.nj(),t)},h.Gi=function(){return this.Hi()},h.nj=function(){return new WXe(this)},h.Hi=function(){return this.Ii(0)},h.Ii=function(t){return this.nj().dd(t)},h.Vk=function(t,r){return py(this,t,!0),r},h.Ri=function(t,r){var o,s;return s=MY(this,r),o=this.dd(t),o.Rb(s),s},h.Si=function(t,r){var o;py(this,r,!0),o=this.dd(t),o.Rb(r)},x(Fr,"AbstractSequentialInternalEList",2046),A(485,2046,WF,CO),h.Yi=function(t){return sa(this.nj(),t)},h.Gi=function(){return this.b==null?(eg(),eg(),uM):this.ql()},h.nj=function(){return new vnt(this.a,this.b)},h.Hi=function(){return this.b==null?(eg(),eg(),uM):this.ql()},h.Ii=function(t){var r,o;if(this.b==null){if(t<0||t>1)throw K(new Na(iI+t+", size=0"));return eg(),eg(),uM}for(o=this.ql(),r=0;r0;)if(r=this.c[--this.d],(!this.e||r.nk()!=Tx||r.Jj()!=0)&&(!this.tl()||this.b.Uh(r))){if(f=this.b.Kh(r,this.sl()),this.f=(Oo(),l(r,69).vk()),this.f||r.Hk()){if(this.sl()?(s=l(f,16),this.k=s):(s=l(f,72),this.k=this.j=s),se(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?mmt(this,this.p):xmt(this))return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}else if(f!=null)return this.k=null,this.p=null,o=f,this.i=o,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}},h.Pb=function(){return Cj(this)},h.Tb=function(){return this.a},h.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw K(new ys)},h.Vb=function(){return this.a-1},h.Qb=function(){throw K(new Nn)},h.sl=function(){return!1},h.Wb=function(t){throw K(new Nn)},h.tl=function(){return!0},h.a=0,h.d=0,h.f=!1,h.g=0,h.n=0,h.o=0;var uM;x(Fr,"EContentsEList/FeatureIteratorImpl",289),A(707,289,KF,kde),h.sl=function(){return!0},x(Fr,"EContentsEList/ResolvingFeatureIteratorImpl",707),A(1159,707,KF,Urt),h.tl=function(){return!1},x(zt,"ENamedElementImpl/1/1",1159),A(1160,289,KF,Brt),h.tl=function(){return!1},x(zt,"ENamedElementImpl/1/2",1160),A(40,152,zD,oy,jW,Pi,XW,ap,Vl,jpe,xut,Fpe,Nut,npe,Cut,Upe,Iut,rpe,Rut,$pe,Out,_3,o6,mW,Bpe,Dut,ipe,Lut),h.Ij=function(){return ype(this)},h.Pj=function(){var t;return t=ype(this),t?t.gk():null},h.fj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,t)},h.hj=function(){return this.c},h.Qj=function(){var t;return t=ype(this),t?t.rk():!1},h.b=-1,x(zt,"ENotificationImpl",40),A(408,294,{110:1,95:1,94:1,159:1,199:1,57:1,62:1,115:1,473:1,52:1,101:1,162:1,408:1,294:1,118:1,119:1},ZG),h.xh=function(t){return Q1t(this,t)},h.Ih=function(t,r,o){var s,u,f;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,29):null;case 11:return!this.d&&(this.d=new du(Ka,this,11)),this.d;case 12:return!this.c&&(this.c=new xe(cw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new DO(this,this)),this.a;case 14:return ju(this)}return qc(this,t-ln((Tt(),Dg)),Nt((s=l(qt(this,16),29),s||Dg),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 10:return this.Cb&&(o=(u=this.Db>>16,u>=0?Q1t(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,10,o);case 12:return!this.c&&(this.c=new xe(cw,this,12,10)),La(this.c,t,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),Dg)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),Dg)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 9:return rW(this,o);case 10:return Sc(this,null,10,o);case 11:return!this.d&&(this.d=new du(Ka,this,11)),Ao(this.d,t,o);case 12:return!this.c&&(this.c=new xe(cw,this,12,10)),Ao(this.c,t,o);case 14:return Ao(ju(this),t,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),Dg)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),Dg)),t,o)},h.Th=function(t){var r,o,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0);case 10:return!!(this.Db>>16==10&&l(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&ju(this.a.a).i!=0&&!(this.b&&SY(this.b));case 14:return!!this.b&&SY(this.b)}return zc(this,t-ln((Tt(),Dg)),Nt((r=l(qt(this,16),29),r||Dg),t))},h.$h=function(t,r){var o,s;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Da(this,In(r));return;case 2:fg(this,Ke(We(r)));return;case 3:hg(this,Ke(We(r)));return;case 4:ug(this,l(r,15).a);return;case 5:uy(this,l(r,15).a);return;case 8:Wb(this,l(r,146));return;case 9:s=Zd(this,l(r,88),null),s&&s.mj();return;case 11:!this.d&&(this.d=new du(Ka,this,11)),vn(this.d),!this.d&&(this.d=new du(Ka,this,11)),ti(this.d,l(r,18));return;case 12:!this.c&&(this.c=new xe(cw,this,12,10)),vn(this.c),!this.c&&(this.c=new xe(cw,this,12,10)),ti(this.c,l(r,18));return;case 13:!this.a&&(this.a=new DO(this,this)),LC(this.a),!this.a&&(this.a=new DO(this,this)),ti(this.a,l(r,18));return;case 14:vn(ju(this)),ti(ju(this),l(r,18));return}Xc(this,t-ln((Tt(),Dg)),Nt((o=l(qt(this,16),29),o||Dg),t),r)},h.fi=function(){return Tt(),Dg},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:Da(this,null);return;case 2:fg(this,!0);return;case 3:hg(this,!0);return;case 4:ug(this,0);return;case 5:uy(this,1);return;case 8:Wb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 11:!this.d&&(this.d=new du(Ka,this,11)),vn(this.d);return;case 12:!this.c&&(this.c=new xe(cw,this,12,10)),vn(this.c);return;case 13:this.a&&LC(this.a);return;case 14:this.b&&vn(this.b);return}Jc(this,t-ln((Tt(),Dg)),Nt((r=l(qt(this,16),29),r||Dg),t))},h.mi=function(){var t,r;if(this.c)for(t=0,r=this.c.i;tm&&ii(t,m,null),s=0,o=new en(ju(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,p||(Tt(),bf)),ii(t,s++,f);return t},h.Fj=function(){var t,r,o,s,u;for(u=new Jp,u.a+="[",t=ju(this.a),r=0,s=ju(this.a).i;r1);case 5:return L3(this,t,r,o,s,this.i-l(o,16).gc()>0);default:return new ap(this.e,t,this.c,r,o,s,!0)}},h.Rj=function(){return!0},h.Oj=function(){return SY(this)},h.Ek=function(){vn(this)},x(zt,"EOperationImpl/2",1343),A(496,1,{2016:1,496:1},nnt),x(zt,"EPackageImpl/1",496),A(14,82,ms,xe),h.gl=function(){return this.d},h.hl=function(){return this.b},h.kl=function(){return!0},h.b=0,x(Fr,"EObjectContainmentWithInverseEList",14),A(362,14,ms,ES),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectContainmentWithInverseEList/Resolving",362),A(313,362,ms,Jw),h.Li=function(){this.a.tb=null},x(zt,"EPackageImpl/2",313),A(1255,1,{},zXt),x(zt,"EPackageImpl/3",1255),A(728,44,DE,Nce),h._b=function(t){return zi(t)?yW(this,t):!!Zo(this.f,t)},x(zt,"EPackageRegistryImpl",728),A(507,294,{110:1,95:1,94:1,159:1,199:1,57:1,2095:1,115:1,473:1,52:1,101:1,162:1,507:1,294:1,118:1,119:1},QG),h.xh=function(t){return ebt(this,t)},h.Ih=function(t,r,o){var s,u,f;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,62):null}return qc(this,t-ln((Tt(),wv)),Nt((s=l(qt(this,16),29),s||wv),t),r,o)},h.Ph=function(t,r,o){var s,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),La(this.Ab,t,o);case 10:return this.Cb&&(o=(u=this.Db>>16,u>=0?ebt(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,10,o)}return f=l(Nt((s=l(qt(this,16),29),s||(Tt(),wv)),r),69),f.uk().xk(this,Ha(this),r-ln((Tt(),wv)),t,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 9:return rW(this,o);case 10:return Sc(this,null,10,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),wv)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),wv)),t,o)},h.Th=function(t){var r,o,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0);case 10:return!!(this.Db>>16==10&&l(this.Cb,62))}return zc(this,t-ln((Tt(),wv)),Nt((r=l(qt(this,16),29),r||wv),t))},h.fi=function(){return Tt(),wv},x(zt,"EParameterImpl",507),A(104,454,{110:1,95:1,94:1,159:1,199:1,57:1,20:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,104:1,454:1,294:1,118:1,119:1,689:1},Rde),h.Ih=function(t,r,o){var s,u,f,p;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),p=this.t,p>1||p==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&mp);case 12:return Lt(),!!(this.Bb&Iy);case 13:return this.j;case 14:return Y_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&Ff);case 17:return ty(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return Lt(),f=Do(this),!!(f&&f.Bb&Ws);case 20:return Lt(),!!(this.Bb&xo);case 21:return r?Do(this):this.b;case 22:return r?kge(this):tlt(this);case 23:return!this.a&&(this.a=new oE(gv,this,23)),this.a}return qc(this,t-ln((Tt(),w2)),Nt((s=l(qt(this,16),29),s||w2),t),r,o)},h.Th=function(t){var r,o,s,u;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return u=this.t,u>1||u==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&c0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&c0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&mp)!=0;case 12:return(this.Bb&Iy)!=0;case 13:return this.j!=null;case 14:return Y_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&Ff)!=0;case 17:return!!ty(this);case 18:return(this.Bb&Ws)!=0;case 19:return s=Do(this),!!s&&(s.Bb&Ws)!=0;case 20:return(this.Bb&xo)==0;case 21:return!!this.b;case 22:return!!tlt(this);case 23:return!!this.a&&this.a.i!=0}return zc(this,t-ln((Tt(),w2)),Nt((r=l(qt(this,16),29),r||w2),t))},h.$h=function(t,r){var o,s;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:CW(this,In(r));return;case 2:fg(this,Ke(We(r)));return;case 3:hg(this,Ke(We(r)));return;case 4:ug(this,l(r,15).a);return;case 5:uy(this,l(r,15).a);return;case 8:Wb(this,l(r,146));return;case 9:s=Zd(this,l(r,88),null),s&&s.mj();return;case 10:D_(this,Ke(We(r)));return;case 11:P_(this,Ke(We(r)));return;case 12:L_(this,Ke(We(r)));return;case 13:zle(this,In(r));return;case 15:M_(this,Ke(We(r)));return;case 16:j_(this,Ke(We(r)));return;case 18:hun(this,Ke(We(r)));return;case 20:i1e(this,Ke(We(r)));return;case 21:nge(this,l(r,20));return;case 23:!this.a&&(this.a=new oE(gv,this,23)),vn(this.a),!this.a&&(this.a=new oE(gv,this,23)),ti(this.a,l(r,18));return}Xc(this,t-ln((Tt(),w2)),Nt((o=l(qt(this,16),29),o||w2),t),r)},h.fi=function(){return Tt(),w2},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:se(this.Cb,89)&&Ey(Mu(l(this.Cb,89)),4),Da(this,null);return;case 2:fg(this,!0);return;case 3:hg(this,!0);return;case 4:ug(this,0);return;case 5:uy(this,1);return;case 8:Wb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:P_(this,!1);return;case 12:L_(this,!1);return;case 13:this.i=null,Ej(this,null);return;case 15:M_(this,!1);return;case 16:j_(this,!1);return;case 18:o1e(this,!1),se(this.Cb,89)&&Ey(Mu(l(this.Cb,89)),2);return;case 20:i1e(this,!0);return;case 21:nge(this,null);return;case 23:!this.a&&(this.a=new oE(gv,this,23)),vn(this.a);return}Jc(this,t-ln((Tt(),w2)),Nt((r=l(qt(this,16),29),r||w2),t))},h.mi=function(){kge(this),a_(es((mu(),so),this)),Sl(this),this.Bb|=1},h.sk=function(){return Do(this)},h.Zk=function(){var t;return t=Do(this),!!t&&(t.Bb&Ws)!=0},h.$k=function(){return(this.Bb&Ws)!=0},h._k=function(){return(this.Bb&xo)!=0},h.Wk=function(t,r){return this.c=null,Kge(this,t,r)},h.Ib=function(){var t;return this.Db&64?$7(this):(t=new ml($7(this)),t.a+=" (containment: ",Xp(t,(this.Bb&Ws)!=0),t.a+=", resolveProxies: ",Xp(t,(this.Bb&xo)!=0),t.a+=")",t.a)},x(zt,"EReferenceImpl",104),A(553,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,553:1,118:1,119:1},JGe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.kd=function(){return this.c},h.Hb=function(){return o0(this)},h.Ai=function(t){Aon(this,In(t))},h.ld=function(t){return hon(this,In(t))},h.Ih=function(t,r,o){var s;switch(t){case 0:return this.b;case 1:return this.c}return qc(this,t-ln((Tt(),Io)),Nt((s=l(qt(this,16),29),s||Io),t),r,o)},h.Th=function(t){var r;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zc(this,t-ln((Tt(),Io)),Nt((r=l(qt(this,16),29),r||Io),t))},h.$h=function(t,r){var o;switch(t){case 0:_on(this,In(r));return;case 1:Jpe(this,In(r));return}Xc(this,t-ln((Tt(),Io)),Nt((o=l(qt(this,16),29),o||Io),t),r)},h.fi=function(){return Tt(),Io},h.hi=function(t){var r;switch(t){case 0:Qpe(this,null);return;case 1:Jpe(this,null);return}Jc(this,t-ln((Tt(),Io)),Nt((r=l(qt(this,16),29),r||Io),t))},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:cg(t)),this.a},h.zi=function(t){this.a=t},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new ml(Zl(this)),t.a+=" (key: ",zo(t,this.b),t.a+=", value: ",zo(t,this.c),t.a+=")",t.a)},h.a=-1,h.b=null,h.c=null;var Hs=x(zt,"EStringToStringMapEntryImpl",553),QDt=Hr(Fr,"FeatureMap/Entry/Internal");A(569,1,YF),h.vl=function(t){return this.wl(l(t,52))},h.wl=function(t){return this.vl(t)},h.Fb=function(t){var r,o;return this===t?!0:se(t,76)?(r=l(t,76),r.Jk()==this.c?(o=this.kd(),o==null?r.kd()==null:pr(o,r.kd())):!1):!1},h.Jk=function(){return this.c},h.Hb=function(){var t;return t=this.kd(),Ir(this.c)^(t==null?0:Ir(t))},h.Ib=function(){var t,r;return t=this.c,r=mc(t.ok()).vi(),t.ve(),(r!=null&&r.length!=0?r+":"+t.ve():t.ve())+"="+this.kd()},x(zt,"EStructuralFeatureImpl/BasicFeatureMapEntry",569),A(784,569,YF,Gde),h.wl=function(t){return new Gde(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return ihn(this,t,this.a,r,o)},h.yl=function(t,r,o){return ohn(this,t,this.a,r,o)},x(zt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),A(1316,1,{},rnt),h.wk=function(t,r,o,s,u){var f;return f=l(h_(t,this.b),222),f.Wl(this.a).Dk(s)},h.xk=function(t,r,o,s,u){var f;return f=l(h_(t,this.b),222),f.Nl(this.a,s,u)},h.yk=function(t,r,o,s,u){var f;return f=l(h_(t,this.b),222),f.Ol(this.a,s,u)},h.zk=function(t,r,o){var s;return s=l(h_(t,this.b),222),s.Wl(this.a).Oj()},h.Ak=function(t,r,o,s){var u;u=l(h_(t,this.b),222),u.Wl(this.a).Wb(s)},h.Bk=function(t,r,o){return l(h_(t,this.b),222).Wl(this.a)},h.Ck=function(t,r,o){var s;s=l(h_(t,this.b),222),s.Wl(this.a).Ek()},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),A(90,1,{},ng,Ob,ig,Fb),h.wk=function(t,r,o,s,u){var f;if(f=r.ii(o),f==null&&r.ji(o,f=X7(this,t)),!u)switch(this.e){case 50:case 41:return l(f,593)._j();case 40:return l(f,222).Tl()}return f},h.xk=function(t,r,o,s,u){var f,p;return p=r.ii(o),p==null&&r.ji(o,p=X7(this,t)),f=l(p,72).Uk(s,u),f},h.yk=function(t,r,o,s,u){var f;return f=r.ii(o),f!=null&&(u=l(f,72).Vk(s,u)),u},h.zk=function(t,r,o){var s;return s=r.ii(o),s!=null&&l(s,78).Oj()},h.Ak=function(t,r,o,s){var u;u=l(r.ii(o),78),!u&&r.ji(o,u=X7(this,t)),u.Wb(s)},h.Bk=function(t,r,o){var s,u;return u=r.ii(o),u==null&&r.ji(o,u=X7(this,t)),se(u,78)?l(u,78):(s=l(r.ii(o),16),new qXe(s))},h.Ck=function(t,r,o){var s;s=l(r.ii(o),78),!s&&r.ji(o,s=X7(this,t)),s.Ek()},h.b=0,h.e=0,x(zt,"EStructuralFeatureImpl/InternalSettingDelegateMany",90),A(502,1,{}),h.xk=function(t,r,o,s,u){throw K(new Nn)},h.yk=function(t,r,o,s,u){throw K(new Nn)},h.Bk=function(t,r,o){return new rat(this,t,r,o)};var Lh;x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),A(1333,1,bQ,rat),h.Dk=function(t){return this.a.wk(this.c,this.d,this.b,t,!0)},h.Oj=function(){return this.a.zk(this.c,this.d,this.b)},h.Wb=function(t){this.a.Ak(this.c,this.d,this.b,t)},h.Ek=function(){this.a.Ck(this.c,this.d,this.b)},h.b=0,x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333),A(777,502,{},Ahe),h.wk=function(t,r,o,s,u){return mJ(t,t.Mh(),t.Ch())==this.b?this._k()&&s?oJ(t):t.Mh():null},h.xk=function(t,r,o,s,u){var f,p;return t.Mh()&&(u=(f=t.Ch(),f>=0?t.xh(u):t.Mh().Qh(t,-1-f,null,u))),p=Ur(t.Ah(),this.e),t.zh(s,p,u)},h.yk=function(t,r,o,s,u){var f;return f=Ur(t.Ah(),this.e),t.zh(null,f,u)},h.zk=function(t,r,o){var s;return s=Ur(t.Ah(),this.e),!!t.Mh()&&t.Ch()==s},h.Ak=function(t,r,o,s){var u,f,p,m,y;if(s!=null&&!EJ(this.a,s))throw K(new LA(JF+(se(s,57)?hbe(l(s,57).Ah()):Dpe(nc(s)))+XF+this.a+"'"));if(u=t.Mh(),p=Ur(t.Ah(),this.e),be(s)!==be(u)||t.Ch()!=p&&s!=null){if(H_(t,l(s,57)))throw K(new jt(nI+t.Ib()));y=null,u&&(y=(f=t.Ch(),f>=0?t.xh(y):t.Mh().Qh(t,-1-f,null,y))),m=l(s,52),m&&(y=m.Oh(t,Ur(m.Ah(),this.b),null,y)),y=t.zh(m,p,y),y&&y.mj()}else t.sh()&&t.th()&&hr(t,new Pi(t,1,p,s,s))},h.Ck=function(t,r,o){var s,u,f,p;s=t.Mh(),s?(p=(u=t.Ch(),u>=0?t.xh(null):t.Mh().Qh(t,-1-u,null,null)),f=Ur(t.Ah(),this.e),p=t.zh(null,f,p),p&&p.mj()):t.sh()&&t.th()&&hr(t,new _3(t,1,this.e,null,null))},h._k=function(){return!1},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),A(1317,777,{},Kit),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317),A(567,502,{}),h.wk=function(t,r,o,s,u){var f;return f=r.ii(o),f==null?this.b:be(f)===be(Lh)?null:f},h.zk=function(t,r,o){var s;return s=r.ii(o),s!=null&&(be(s)===be(Lh)||!pr(s,this.b))},h.Ak=function(t,r,o,s){var u,f;t.sh()&&t.th()?(u=(f=r.ii(o),f==null?this.b:be(f)===be(Lh)?null:f),s==null?this.c!=null?(r.ji(o,null),s=this.b):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(s),r.ji(o,s)),hr(t,this.d.Al(t,1,this.e,u,s))):s==null?this.c!=null?r.ji(o,null):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(s),r.ji(o,s))},h.Ck=function(t,r,o){var s,u;t.sh()&&t.th()?(s=(u=r.ii(o),u==null?this.b:be(u)===be(Lh)?null:u),r.ki(o),hr(t,this.d.Al(t,1,this.e,s,this.b))):r.ki(o)},h.zl=function(t){throw K(new tZe)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),A(HE,1,{},XGe),h.Al=function(t,r,o,s,u){return new _3(t,r,o,s,u)},h.Bl=function(t,r,o,s,u,f){return new mW(t,r,o,s,u,f)};var v3e,E3e,S3e,T3e,A3e,_3e,k3e,Pre,x3e;x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",HE),A(1334,HE,{},ZGe),h.Al=function(t,r,o,s,u){return new ipe(t,r,o,Ke(We(s)),Ke(We(u)))},h.Bl=function(t,r,o,s,u,f){return new Lut(t,r,o,Ke(We(s)),Ke(We(u)),f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),A(1335,HE,{},QGe),h.Al=function(t,r,o,s,u){return new jpe(t,r,o,l(s,224).a,l(u,224).a)},h.Bl=function(t,r,o,s,u,f){return new xut(t,r,o,l(s,224).a,l(u,224).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),A(1336,HE,{},eqe),h.Al=function(t,r,o,s,u){return new Fpe(t,r,o,l(s,183).a,l(u,183).a)},h.Bl=function(t,r,o,s,u,f){return new Nut(t,r,o,l(s,183).a,l(u,183).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),A(1337,HE,{},tqe),h.Al=function(t,r,o,s,u){return new npe(t,r,o,ue(ce(s)),ue(ce(u)))},h.Bl=function(t,r,o,s,u,f){return new Cut(t,r,o,ue(ce(s)),ue(ce(u)),f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),A(1338,HE,{},nqe),h.Al=function(t,r,o,s,u){return new Upe(t,r,o,l(s,165).a,l(u,165).a)},h.Bl=function(t,r,o,s,u,f){return new Iut(t,r,o,l(s,165).a,l(u,165).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),A(1339,HE,{},rqe),h.Al=function(t,r,o,s,u){return new rpe(t,r,o,l(s,15).a,l(u,15).a)},h.Bl=function(t,r,o,s,u,f){return new Rut(t,r,o,l(s,15).a,l(u,15).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),A(1340,HE,{},iqe),h.Al=function(t,r,o,s,u){return new $pe(t,r,o,l(s,192).a,l(u,192).a)},h.Bl=function(t,r,o,s,u,f){return new Out(t,r,o,l(s,192).a,l(u,192).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),A(1341,HE,{},oqe),h.Al=function(t,r,o,s,u){return new Bpe(t,r,o,l(s,193).a,l(u,193).a)},h.Bl=function(t,r,o,s,u,f){return new Dut(t,r,o,l(s,193).a,l(u,193).a,f)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),A(1319,567,{},aat),h.zl=function(t){if(!this.a.dk(t))throw K(new LA(JF+nc(t)+XF+this.a+"'"))},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),A(1320,567,{},Got),h.zl=function(t){},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320),A(778,567,{}),h.zk=function(t,r,o){var s;return s=r.ii(o),s!=null},h.Ak=function(t,r,o,s){var u,f;t.sh()&&t.th()?(u=!0,f=r.ii(o),f==null?(u=!1,f=this.b):be(f)===be(Lh)&&(f=null),s==null?this.c!=null?(r.ji(o,null),s=this.b):r.ji(o,Lh):(this.zl(s),r.ji(o,s)),hr(t,this.d.Bl(t,1,this.e,f,s,!u))):s==null?this.c!=null?r.ji(o,null):r.ji(o,Lh):(this.zl(s),r.ji(o,s))},h.Ck=function(t,r,o){var s,u;t.sh()&&t.th()?(s=!0,u=r.ii(o),u==null?(s=!1,u=this.b):be(u)===be(Lh)&&(u=null),r.ki(o),hr(t,this.d.Bl(t,2,this.e,u,this.b,s))):r.ki(o)},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778),A(1321,778,{},uat),h.zl=function(t){if(!this.a.dk(t))throw K(new LA(JF+nc(t)+XF+this.a+"'"))},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),A(1322,778,{},qot),h.zl=function(t){},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),A(407,502,{},aP),h.wk=function(t,r,o,s,u){var f,p,m,y,v;if(v=r.ii(o),this.rk()&&be(v)===be(Lh))return null;if(this._k()&&s&&v!=null){if(m=l(v,52),m.Sh()&&(y=w1(t,m),m!=y)){if(!EJ(this.a,y))throw K(new LA(JF+nc(y)+XF+this.a+"'"));r.ji(o,v=y),this.$k()&&(f=l(y,52),p=m.Qh(t,this.b?Ur(m.Ah(),this.b):-1-Ur(t.Ah(),this.e),null,null),!f.Mh()&&(p=f.Oh(t,this.b?Ur(f.Ah(),this.b):-1-Ur(t.Ah(),this.e),null,p)),p&&p.mj()),t.sh()&&t.th()&&hr(t,new _3(t,9,this.e,m,y))}return v}else return v},h.xk=function(t,r,o,s,u){var f,p;return p=r.ii(o),be(p)===be(Lh)&&(p=null),r.ji(o,s),this.Kj()?be(p)!==be(s)&&p!=null&&(f=l(p,52),u=f.Qh(t,Ur(f.Ah(),this.b),null,u)):this.$k()&&p!=null&&(u=l(p,52).Qh(t,-1-Ur(t.Ah(),this.e),null,u)),t.sh()&&t.th()&&(!u&&(u=new Qg(4)),u.lj(new _3(t,1,this.e,p,s))),u},h.yk=function(t,r,o,s,u){var f;return f=r.ii(o),be(f)===be(Lh)&&(f=null),r.ki(o),t.sh()&&t.th()&&(!u&&(u=new Qg(4)),this.rk()?u.lj(new _3(t,2,this.e,f,null)):u.lj(new _3(t,1,this.e,f,null))),u},h.zk=function(t,r,o){var s;return s=r.ii(o),s!=null},h.Ak=function(t,r,o,s){var u,f,p,m,y;if(s!=null&&!EJ(this.a,s))throw K(new LA(JF+(se(s,57)?hbe(l(s,57).Ah()):Dpe(nc(s)))+XF+this.a+"'"));y=r.ii(o),m=y!=null,this.rk()&&be(y)===be(Lh)&&(y=null),p=null,this.Kj()?be(y)!==be(s)&&(y!=null&&(u=l(y,52),p=u.Qh(t,Ur(u.Ah(),this.b),null,p)),s!=null&&(u=l(s,52),p=u.Oh(t,Ur(u.Ah(),this.b),null,p))):this.$k()&&be(y)!==be(s)&&(y!=null&&(p=l(y,52).Qh(t,-1-Ur(t.Ah(),this.e),null,p)),s!=null&&(p=l(s,52).Oh(t,-1-Ur(t.Ah(),this.e),null,p))),s==null&&this.rk()?r.ji(o,Lh):r.ji(o,s),t.sh()&&t.th()?(f=new mW(t,1,this.e,y,s,this.rk()&&!m),p?(p.lj(f),p.mj()):hr(t,f)):p&&p.mj()},h.Ck=function(t,r,o){var s,u,f,p,m;m=r.ii(o),p=m!=null,this.rk()&&be(m)===be(Lh)&&(m=null),f=null,m!=null&&(this.Kj()?(s=l(m,52),f=s.Qh(t,Ur(s.Ah(),this.b),null,f)):this.$k()&&(f=l(m,52).Qh(t,-1-Ur(t.Ah(),this.e),null,f))),r.ki(o),t.sh()&&t.th()?(u=new mW(t,this.rk()?2:1,this.e,m,null,p),f?(f.lj(u),f.mj()):hr(t,u)):f&&f.mj()},h.Kj=function(){return!1},h.$k=function(){return!1},h._k=function(){return!1},h.rk=function(){return!1},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407),A(568,407,{},wV),h.$k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),A(1325,568,{},Hrt),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),A(780,568,{},xde),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),A(1327,780,{},zrt),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),A(645,568,{},DV),h.Kj=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),A(1326,645,{},Yit),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),A(781,645,{},ffe),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),A(1328,781,{},Jit),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),A(646,407,{},Nde),h._k=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),A(1329,646,{},qrt),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),A(782,646,{},lfe),h.Kj=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),A(1330,782,{},Xit),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),A(1323,407,{},Grt),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),A(779,407,{},dfe),h.Kj=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),A(1324,779,{},Zit),h.rk=function(){return!0},x(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),A(783,569,YF,rhe),h.wl=function(t){return new rhe(this.a,this.c,t)},h.kd=function(){return this.b},h.xl=function(t,r,o){return ndn(this,t,this.b,o)},h.yl=function(t,r,o){return rdn(this,t,this.b,o)},x(zt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),A(1331,1,bQ,qXe),h.Dk=function(t){return this.a},h.Oj=function(){return se(this.a,98)?l(this.a,98).Oj():!this.a.dc()},h.Wb=function(t){this.a.$b(),this.a.Fc(l(t,16))},h.Ek=function(){se(this.a,98)?l(this.a,98).Ek():this.a.$b()},x(zt,"EStructuralFeatureImpl/SettingMany",1331),A(1332,569,YF,xct),h.vl=function(t){return new TV((Er(),L4),this.b.oi(this.a,t))},h.kd=function(){return null},h.xl=function(t,r,o){return o},h.yl=function(t,r,o){return o},x(zt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332),A(647,569,YF,TV),h.vl=function(t){return new TV(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return o},h.yl=function(t,r,o){return o},x(zt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647),A(399,495,qf,xA),h.$i=function(t){return me(Ol,Rt,29,t,0,1)},h.Wi=function(){return!1},x(zt,"ESuperAdapter/1",399),A(449,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,842:1,52:1,101:1,162:1,449:1,118:1,119:1},RG),h.Ih=function(t,r,o){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new E3(this,Uo,this)),this.a}return qc(this,t-ln((Tt(),dw)),Nt((s=l(qt(this,16),29),s||dw),t),r,o)},h.Rh=function(t,r,o){var s,u;switch(r){case 0:return!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),Ao(this.Ab,t,o);case 2:return!this.a&&(this.a=new E3(this,Uo,this)),Ao(this.a,t,o)}return u=l(Nt((s=l(qt(this,16),29),s||(Tt(),dw)),r),69),u.uk().yk(this,Ha(this),r-ln((Tt(),dw)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return zc(this,t-ln((Tt(),dw)),Nt((r=l(qt(this,16),29),r||dw),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Da(this,In(r));return;case 2:!this.a&&(this.a=new E3(this,Uo,this)),vn(this.a),!this.a&&(this.a=new E3(this,Uo,this)),ti(this.a,l(r,18));return}Xc(this,t-ln((Tt(),dw)),Nt((o=l(qt(this,16),29),o||dw),t),r)},h.fi=function(){return Tt(),dw},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new xe(Kn,this,0,3)),vn(this.Ab);return;case 1:Da(this,null);return;case 2:!this.a&&(this.a=new E3(this,Uo,this)),vn(this.a);return}Jc(this,t-ln((Tt(),dw)),Nt((r=l(qt(this,16),29),r||dw),t))},x(zt,"ETypeParameterImpl",449),A(450,82,ms,E3),h.Lj=function(t,r){return X0n(this,l(t,88),r)},h.Mj=function(t,r){return Z0n(this,l(t,88),r)},x(zt,"ETypeParameterImpl/1",450),A(644,44,DE,eq),h.ec=function(){return new k9(this)},x(zt,"ETypeParameterImpl/2",644),A(564,tf,wu,k9),h.Ec=function(t){return _it(this,l(t,88))},h.Fc=function(t){var r,o,s;for(s=!1,o=t.Jc();o.Ob();)r=l(o.Pb(),88),Yn(this.a,r,"")==null&&(s=!0);return s},h.$b=function(){Zs(this.a)},h.Gc=function(t){return ba(this.a,t)},h.Jc=function(){var t;return t=new ly(new Ow(this.a).a),new x9(t)},h.Kc=function(t){return glt(this,t)},h.gc=function(){return GN(this.a)},x(zt,"ETypeParameterImpl/2/1",564),A(565,1,Wi,x9),h.Nb=function(t){oo(this,t)},h.Pb=function(){return l(gE(this.a).jd(),88)},h.Ob=function(){return this.a.b},h.Qb=function(){xdt(this.a)},x(zt,"ETypeParameterImpl/2/1/1",565),A(1293,44,DE,LZe),h._b=function(t){return zi(t)?yW(this,t):!!Zo(this.f,t)},h.xc=function(t){var r,o;return r=zi(t)?ma(this,t):Es(Zo(this.f,t)),se(r,843)?(o=l(r,843),r=o.Ik(),Yn(this,l(t,244),r),r):r??(t==null?(yq(),tLt):null)},x(zt,"EValidatorRegistryImpl",1293),A(1315,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,2019:1,52:1,101:1,162:1,118:1,119:1},sqe),h.oi=function(t,r){switch(t.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return r==null?null:bs(r);case 25:return ffn(r);case 27:return xdn(r);case 28:return Ndn(r);case 29:return r==null?null:Wnt(N4[0],l(r,208));case 41:return r==null?"":Sb(l(r,299));case 42:return bs(r);case 50:return In(r);default:throw K(new jt(Ok+t.ve()+V0))}},h.pi=function(t){var r,o,s,u,f,p,m,y,v,T,N,I,L,U,G,J;switch(t.G==-1&&(t.G=(I=mc(t),I?pg(I.si(),t):-1)),t.G){case 0:return o=new XG,o;case 1:return r=new Rue,r;case 2:return s=new Pue,s;case 4:return u=new N9,u;case 5:return f=new DZe,f;case 6:return p=new JXe,p;case 7:return m=new Mue,m;case 10:return v=new m9,v;case 11:return T=new ZG,T;case 12:return N=new yat,N;case 13:return L=new QG,L;case 14:return U=new Rde,U;case 17:return G=new JGe,G;case 18:return y=new Km,y;case 19:return J=new RG,J;default:throw K(new jt(eQ+t.zb+V0))}},h.qi=function(t,r){switch(t.fk()){case 20:return r==null?null:new Jce(r);case 21:return r==null?null:new o1(r);case 23:case 22:return r==null?null:d1n(r);case 26:case 24:return r==null?null:f6(Ec(r,-128,127)<<24>>24);case 25:return hEn(r);case 27:return Ybn(r);case 28:return Jbn(r);case 29:return mwn(r);case 32:case 31:return r==null?null:yy(r);case 38:case 37:return r==null?null:new yce(r);case 40:case 39:return r==null?null:Re(Ec(r,Zi,sr));case 41:return null;case 42:return r==null,null;case 44:case 43:return r==null?null:by(J7(r));case 49:case 48:return r==null?null:O_(Ec(r,ZF,32767)<<16>>16);case 50:return r;default:throw K(new jt(Ok+t.ve()+V0))}},x(zt,"EcoreFactoryImpl",1315),A(552,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,2017:1,52:1,101:1,162:1,187:1,552:1,118:1,119:1,687:1},Bst),h.gb=!1,h.hb=!1;var N3e,eLt=!1;x(zt,"EcorePackageImpl",552),A(1211,1,{843:1},aqe),h.Ik=function(){return Ert(),nLt},x(zt,"EcorePackageImpl/1",1211),A(1220,1,er,uqe),h.dk=function(t){return se(t,159)},h.ek=function(t){return me(tM,Rt,159,t,0,1)},x(zt,"EcorePackageImpl/10",1220),A(1221,1,er,cqe),h.dk=function(t){return se(t,199)},h.ek=function(t){return me(xre,Rt,199,t,0,1)},x(zt,"EcorePackageImpl/11",1221),A(1222,1,er,lqe),h.dk=function(t){return se(t,57)},h.ek=function(t){return me(Y1,Rt,57,t,0,1)},x(zt,"EcorePackageImpl/12",1222),A(1223,1,er,dqe),h.dk=function(t){return se(t,408)},h.ek=function(t){return me(Dl,wEe,62,t,0,1)},x(zt,"EcorePackageImpl/13",1223),A(1224,1,er,fqe),h.dk=function(t){return se(t,244)},h.ek=function(t){return me(Dd,Rt,244,t,0,1)},x(zt,"EcorePackageImpl/14",1224),A(1225,1,er,hqe),h.dk=function(t){return se(t,507)},h.ek=function(t){return me(cw,Rt,2095,t,0,1)},x(zt,"EcorePackageImpl/15",1225),A(1226,1,er,pqe),h.dk=function(t){return se(t,104)},h.ek=function(t){return me(bv,UE,20,t,0,1)},x(zt,"EcorePackageImpl/16",1226),A(1227,1,er,gqe),h.dk=function(t){return se(t,182)},h.ek=function(t){return me(au,UE,182,t,0,1)},x(zt,"EcorePackageImpl/17",1227),A(1228,1,er,bqe),h.dk=function(t){return se(t,473)},h.ek=function(t){return me(pv,Rt,473,t,0,1)},x(zt,"EcorePackageImpl/18",1228),A(1229,1,er,mqe),h.dk=function(t){return se(t,553)},h.ek=function(t){return me(Hs,SAt,553,t,0,1)},x(zt,"EcorePackageImpl/19",1229),A(1212,1,er,wqe),h.dk=function(t){return se(t,336)},h.ek=function(t){return me(gv,UE,38,t,0,1)},x(zt,"EcorePackageImpl/2",1212),A(1230,1,er,yqe),h.dk=function(t){return se(t,251)},h.ek=function(t){return me(Uo,$At,88,t,0,1)},x(zt,"EcorePackageImpl/20",1230),A(1231,1,er,vqe),h.dk=function(t){return se(t,449)},h.ek=function(t){return me(Ka,Rt,842,t,0,1)},x(zt,"EcorePackageImpl/21",1231),A(1232,1,er,Eqe),h.dk=function(t){return $w(t)},h.ek=function(t){return me(Yr,Me,476,t,8,1)},x(zt,"EcorePackageImpl/22",1232),A(1233,1,er,Sqe),h.dk=function(t){return se(t,198)},h.ek=function(t){return me(Eu,Me,198,t,0,2)},x(zt,"EcorePackageImpl/23",1233),A(1234,1,er,Tqe),h.dk=function(t){return se(t,224)},h.ek=function(t){return me(yT,Me,224,t,0,1)},x(zt,"EcorePackageImpl/24",1234),A(1235,1,er,Aqe),h.dk=function(t){return se(t,183)},h.ek=function(t){return me(pI,Me,183,t,0,1)},x(zt,"EcorePackageImpl/25",1235),A(1236,1,er,_qe),h.dk=function(t){return se(t,208)},h.ek=function(t){return me(u$,Me,208,t,0,1)},x(zt,"EcorePackageImpl/26",1236),A(1237,1,er,kqe),h.dk=function(t){return!1},h.ek=function(t){return me(V3e,Rt,2191,t,0,1)},x(zt,"EcorePackageImpl/27",1237),A(1238,1,er,xqe),h.dk=function(t){return Bw(t)},h.ek=function(t){return me(fi,Me,347,t,7,1)},x(zt,"EcorePackageImpl/28",1238),A(1239,1,er,Nqe),h.dk=function(t){return se(t,61)},h.ek=function(t){return me(a3e,Ry,61,t,0,1)},x(zt,"EcorePackageImpl/29",1239),A(1213,1,er,Cqe),h.dk=function(t){return se(t,508)},h.ek=function(t){return me(Kn,{3:1,4:1,5:1,2012:1},594,t,0,1)},x(zt,"EcorePackageImpl/3",1213),A(1240,1,er,Iqe),h.dk=function(t){return se(t,575)},h.ek=function(t){return me(l3e,Rt,2018,t,0,1)},x(zt,"EcorePackageImpl/30",1240),A(1241,1,er,Rqe),h.dk=function(t){return se(t,164)},h.ek=function(t){return me(D3e,Ry,164,t,0,1)},x(zt,"EcorePackageImpl/31",1241),A(1242,1,er,Oqe),h.dk=function(t){return se(t,76)},h.ek=function(t){return me(EU,KAt,76,t,0,1)},x(zt,"EcorePackageImpl/32",1242),A(1243,1,er,Dqe),h.dk=function(t){return se(t,165)},h.ek=function(t){return me(Bk,Me,165,t,0,1)},x(zt,"EcorePackageImpl/33",1243),A(1244,1,er,Lqe),h.dk=function(t){return se(t,15)},h.ek=function(t){return me(Ti,Me,15,t,0,1)},x(zt,"EcorePackageImpl/34",1244),A(1245,1,er,Mqe),h.dk=function(t){return se(t,299)},h.ek=function(t){return me(REe,Rt,299,t,0,1)},x(zt,"EcorePackageImpl/35",1245),A(1246,1,er,Pqe),h.dk=function(t){return se(t,192)},h.ek=function(t){return me(K0,Me,192,t,0,1)},x(zt,"EcorePackageImpl/36",1246),A(1247,1,er,jqe),h.dk=function(t){return se(t,93)},h.ek=function(t){return me(OEe,Rt,93,t,0,1)},x(zt,"EcorePackageImpl/37",1247),A(1248,1,er,Fqe),h.dk=function(t){return se(t,595)},h.ek=function(t){return me(C3e,Rt,595,t,0,1)},x(zt,"EcorePackageImpl/38",1248),A(1249,1,er,$qe),h.dk=function(t){return!1},h.ek=function(t){return me(W3e,Rt,2192,t,0,1)},x(zt,"EcorePackageImpl/39",1249),A(1214,1,er,Bqe),h.dk=function(t){return se(t,89)},h.ek=function(t){return me(Ol,Rt,29,t,0,1)},x(zt,"EcorePackageImpl/4",1214),A(1250,1,er,Uqe),h.dk=function(t){return se(t,193)},h.ek=function(t){return me(Y0,Me,193,t,0,1)},x(zt,"EcorePackageImpl/40",1250),A(1251,1,er,Hqe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(zt,"EcorePackageImpl/41",1251),A(1252,1,er,zqe),h.dk=function(t){return se(t,592)},h.ek=function(t){return me(c3e,Rt,592,t,0,1)},x(zt,"EcorePackageImpl/42",1252),A(1253,1,er,Gqe),h.dk=function(t){return!1},h.ek=function(t){return me(K3e,Me,2193,t,0,1)},x(zt,"EcorePackageImpl/43",1253),A(1254,1,er,qqe),h.dk=function(t){return se(t,45)},h.ek=function(t){return me(cm,Q7,45,t,0,1)},x(zt,"EcorePackageImpl/44",1254),A(1215,1,er,Vqe),h.dk=function(t){return se(t,146)},h.ek=function(t){return me(Ld,Rt,146,t,0,1)},x(zt,"EcorePackageImpl/5",1215),A(1216,1,er,Wqe),h.dk=function(t){return se(t,160)},h.ek=function(t){return me(Dre,Rt,160,t,0,1)},x(zt,"EcorePackageImpl/6",1216),A(1217,1,er,Kqe),h.dk=function(t){return se(t,462)},h.ek=function(t){return me(vU,Rt,682,t,0,1)},x(zt,"EcorePackageImpl/7",1217),A(1218,1,er,Yqe),h.dk=function(t){return se(t,575)},h.ek=function(t){return me(Ip,Rt,691,t,0,1)},x(zt,"EcorePackageImpl/8",1218),A(1219,1,er,Jqe),h.dk=function(t){return se(t,472)},h.ek=function(t){return me(x4,Rt,472,t,0,1)},x(zt,"EcorePackageImpl/9",1219),A(1030,2059,EAt,iQe),h.Ki=function(t,r){Gpn(this,l(r,420))},h.Oi=function(t,r){_mt(this,t,l(r,420))},x(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),A(1031,152,zD,Cst),h.hj=function(){return this.a.a},x(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),A(1058,1057,{},Fnt),x("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var C3e=Hr(YAt,"Resource");A(793,1502,JAt),h.Fl=function(t){},h.Gl=function(t){},h.Cl=function(){return!this.a&&(this.a=new qG(this)),this.a},h.Dl=function(t){var r,o,s,u,f;if(s=t.length,s>0)if(Yt(0,t.length),t.charCodeAt(0)==47){for(f=new Ra(4),u=1,r=1;r0&&(t=(no(0,o,t.length),t.substr(0,o))));return ivn(this,t)},h.El=function(){return this.c},h.Ib=function(){var t;return Sb(this.Pm)+"@"+(t=Ir(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},h.b=!1,x(mQ,"ResourceImpl",793),A(1503,793,JAt,VXe),x(mQ,"BinaryResourceImpl",1503),A(1171,704,dQ),h._i=function(t){return se(t,57)?kan(this,l(t,57)):se(t,595)?new en(l(t,595).Cl()):be(t)===be(this.f)?l(t,18).Jc():(YA(),aM.a)},h.Ob=function(){return ame(this)},h.a=!1,x(Fr,"EcoreUtil/ContentTreeIterator",1171),A(1504,1171,dQ,ist),h._i=function(t){return be(t)===be(this.f)?l(t,16).Jc():new lct(l(t,57))},x(mQ,"ResourceImpl/5",1504),A(654,2071,FAt,qG),h.Gc=function(t){return this.i<=4?G_(this,t):se(t,52)&&l(t,52).Gh()==this.a},h.Ki=function(t,r){t==this.i-1&&(this.a.b||(this.a.b=!0))},h.Mi=function(t,r){t==0?this.a.b||(this.a.b=!0):KW(this,t,r)},h.Oi=function(t,r){},h.Pi=function(t,r,o){},h.Jj=function(){return 2},h.hj=function(){return this.a},h.Kj=function(){return!0},h.Lj=function(t,r){var o;return o=l(t,52),r=o.ci(this.a,r),r},h.Mj=function(t,r){var o;return o=l(t,52),o.ci(null,r)},h.Nj=function(){return!1},h.Qi=function(){return!0},h.$i=function(t){return me(Y1,Rt,57,t,0,1)},h.Wi=function(){return!1},x(mQ,"ResourceImpl/ContentsEList",654),A(962,2041,ck,WXe),h.dd=function(t){return this.a.Ii(t)},h.gc=function(){return this.a.gc()},x(Fr,"AbstractSequentialInternalEList/1",962);var I3e,R3e,so,O3e;A(632,1,{},hot);var SU,TU;x(Fr,"BasicExtendedMetaData",632),A(1162,1,{},int),h.Hl=function(){return null},h.Il=function(){return this.a==-2&&cZt(this,lwn(this.d,this.b)),this.a},h.Jl=function(){return null},h.Kl=function(){return St(),St(),No},h.ve=function(){return this.c==Pk&&lZt(this,zgt(this.d,this.b)),this.c},h.Ll=function(){return 0},h.a=-2,h.c=Pk,x(Fr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),A(1163,1,{},Put),h.Hl=function(){return this.a==(f_(),SU)&&hZt(this,ZSn(this.f,this.b)),this.a},h.Il=function(){return 0},h.Jl=function(){return this.c==(f_(),SU)&&dZt(this,QSn(this.f,this.b)),this.c},h.Kl=function(){return!this.d&&gZt(this,PAn(this.f,this.b)),this.d},h.ve=function(){return this.e==Pk&&mZt(this,zgt(this.f,this.b)),this.e},h.Ll=function(){return this.g==-2&&yZt(this,I0n(this.f,this.b)),this.g},h.e=Pk,h.g=-2,x(Fr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),A(1161,1,{},snt),h.b=!1,h.c=!1,x(Fr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),A(1164,1,{},jut),h.c=-2,h.e=Pk,h.f=Pk,x(Fr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),A(588,630,ms,J8),h.Jj=function(){return this.c},h.ml=function(){return!1},h.Ui=function(t,r){return r},h.c=0,x(Fr,"EDataTypeEList",588);var D3e=Hr(Fr,"FeatureMap");A(77,588,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},ni),h._c=function(t,r){y2n(this,t,l(r,76))},h.Ec=function(t){return PEn(this,l(t,76))},h.Fi=function(t){Nsn(this,l(t,76))},h.Lj=function(t,r){return qnn(this,l(t,76),r)},h.Mj=function(t,r){return tfe(this,l(t,76),r)},h.Ri=function(t,r){return zTn(this,t,r)},h.Ui=function(t,r){return Dkn(this,t,l(r,76))},h.fd=function(t,r){return iSn(this,t,l(r,76))},h.Sj=function(t,r){return Vnn(this,l(t,76),r)},h.Tj=function(t,r){return Oit(this,l(t,76),r)},h.Uj=function(t,r,o){return v0n(this,l(t,76),l(r,76),o)},h.Xi=function(t,r){return UY(this,t,l(r,76))},h.Ml=function(t,r){return t0e(this,t,r)},h.ad=function(t,r){var o,s,u,f,p,m,y,v,T;for(v=new m0(r.gc()),u=r.Jc();u.Ob();)if(s=l(u.Pb(),76),f=s.Jk(),bp(this.e,f))(!f.Qi()||!BP(this,f,s.kd())&&!G_(v,s))&&Tn(v,s);else{for(T=za(this.e.Ah(),f),o=l(this.g,123),p=!0,m=0;m=0;)if(r=t[this.c],this.k.$l(r.Jk()))return this.j=this.f?r:r.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},x(Fr,"BasicFeatureMap/FeatureEIterator",417),A(673,417,vh,nV),h.sl=function(){return!0},x(Fr,"BasicFeatureMap/ResolvingFeatureEIterator",673),A(960,485,WF,Xnt),h.nj=function(){return this},x(Fr,"EContentsEList/1",960),A(961,485,WF,vnt),h.sl=function(){return!1},x(Fr,"EContentsEList/2",961),A(959,289,KF,Znt),h.ul=function(t){},h.Ob=function(){return!1},h.Sb=function(){return!1},x(Fr,"EContentsEList/FeatureIteratorImpl/1",959),A(832,588,ms,ude),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,x(Fr,"EDataTypeEList/Unsettable",832),A(1937,588,ms,srt),h.Qi=function(){return!0},x(Fr,"EDataTypeUniqueEList",1937),A(1938,832,ms,irt),h.Qi=function(){return!0},x(Fr,"EDataTypeUniqueEList/Unsettable",1938),A(147,82,ms,du),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectContainmentEList/Resolving",147),A(1165,547,ms,rrt),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectContainmentEList/Unsettable/Resolving",1165),A(760,14,ms,Kde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,x(Fr,"EObjectContainmentWithInverseEList/Unsettable",760),A(1199,760,ms,yit),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),A(752,494,ms,ade),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,x(Fr,"EObjectEList/Unsettable",752),A(340,494,ms,oE),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectResolvingEList",340),A(1842,752,ms,ort),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectResolvingEList/Unsettable",1842),A(1505,1,{},Xqe);var tLt;x(Fr,"EObjectValidator",1505),A(551,494,ms,gP),h.gl=function(){return this.d},h.hl=function(){return this.b},h.Kj=function(){return!0},h.kl=function(){return!0},h.b=0,x(Fr,"EObjectWithInverseEList",551),A(1202,551,ms,vit),h.jl=function(){return!0},x(Fr,"EObjectWithInverseEList/ManyInverse",1202),A(633,551,ms,AV),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,x(Fr,"EObjectWithInverseEList/Unsettable",633),A(1201,633,ms,Eit),h.jl=function(){return!0},x(Fr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),A(761,551,ms,Yde),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectWithInverseResolvingEList",761),A(31,761,ms,Et),h.jl=function(){return!0},x(Fr,"EObjectWithInverseResolvingEList/ManyInverse",31),A(762,633,ms,Jde),h.ll=function(){return!0},h.Ui=function(t,r){return rT(this,t,l(r,57))},x(Fr,"EObjectWithInverseResolvingEList/Unsettable",762),A(1200,762,ms,Sit),h.jl=function(){return!0},x(Fr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),A(1166,630,ms),h.Ji=function(){return(this.b&1792)==0},h.Li=function(){this.b|=1},h.il=function(){return(this.b&4)!=0},h.Kj=function(){return(this.b&40)!=0},h.jl=function(){return(this.b&16)!=0},h.kl=function(){return(this.b&8)!=0},h.ll=function(){return(this.b&mp)!=0},h.$k=function(){return(this.b&32)!=0},h.ml=function(){return(this.b&Tl)!=0},h.dk=function(t){return this.d?wct(this.d,t):this.Jk().Fk().dk(t)},h.Oj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},h.Qi=function(){return(this.b&128)!=0},h.Ek=function(){var t;vn(this),this.b&2&&(Yu(this.e)?(t=(this.b&1)!=0,this.b&=-2,DA(this,new Vl(this.e,2,Ur(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},h.Wi=function(){return(this.b&1536)==0},h.b=0,x(Fr,"EcoreEList/Generic",1166),A(1167,1166,ms,wat),h.Jk=function(){return this.a},x(Fr,"EcoreEList/Dynamic",1167),A(759,67,qf,pce),h.$i=function(t){return m6(this.a.a,t)},x(Fr,"EcoreEMap/1",759),A(758,82,ms,Gfe),h.Ki=function(t,r){a7(this.b,l(r,138))},h.Mi=function(t,r){Aht(this.b)},h.Ni=function(t,r,o){var s;++(s=this.b,l(r,138),s).e},h.Oi=function(t,r){YK(this.b,l(r,138))},h.Pi=function(t,r,o){YK(this.b,l(o,138)),be(o)===be(r)&&l(o,138).zi(Xen(l(r,138).jd())),a7(this.b,l(r,138))},x(Fr,"EcoreEMap/DelegateEObjectContainmentEList",758),A(1197,145,mEe,Lft),x(Fr,"EcoreEMap/Unsettable",1197),A(1198,758,ms,Tit),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Yu(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,x(Fr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),A(1170,226,DE,Ast),h.a=!1,h.b=!1,x(Fr,"EcoreUtil/Copier",1170),A(754,1,Wi,lct),h.Nb=function(t){oo(this,t)},h.Ob=function(){return Tgt(this)},h.Pb=function(){var t;return Tgt(this),t=this.b,this.b=null,t},h.Qb=function(){this.a.Qb()},x(Fr,"EcoreUtil/ProperContentIterator",754),A(1506,1505,{},ZWe);var nLt;x(Fr,"EcoreValidator",1506);var rLt;Hr(Fr,"FeatureMapUtil/Validator"),A(1270,1,{2020:1},Zqe),h.$l=function(t){return!0},x(Fr,"FeatureMapUtil/1",1270),A(767,1,{2020:1},L0e),h.$l=function(t){var r;return this.c==t?!0:(r=We(Ut(this.a,t)),r==null?iTn(this,t)?(slt(this.a,t,(Lt(),$k)),!0):(slt(this.a,t,(Lt(),D1)),!1):r==(Lt(),$k))},h.e=!1;var jre;x(Fr,"FeatureMapUtil/BasicValidator",767),A(768,44,DE,ide),x(Fr,"FeatureMapUtil/BasicValidator/Cache",768),A(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},AO),h._c=function(t,r){Swt(this.c,this.b,t,r)},h.Ec=function(t){return t0e(this.c,this.b,t)},h.ad=function(t,r){return __n(this.c,this.b,t,r)},h.Fc=function(t){return p3(this,t)},h.Ei=function(t,r){Zdn(this.c,this.b,t,r)},h.Uk=function(t,r){return Wme(this.c,this.b,t,r)},h.Yi=function(t){return q7(this.c,this.b,t,!1)},h.Gi=function(){return Lnt(this.c,this.b)},h.Hi=function(){return Len(this.c,this.b)},h.Ii=function(t){return idn(this.c,this.b,t)},h.Vk=function(t,r){return oit(this,t,r)},h.$b=function(){nS(this)},h.Gc=function(t){return BP(this.c,this.b,t)},h.Hc=function(t){return nhn(this.c,this.b,t)},h.Xb=function(t){return q7(this.c,this.b,t,!0)},h.Dk=function(t){return this},h.bd=function(t){return pln(this.c,this.b,t)},h.dc=function(){return A8(this)},h.Oj=function(){return!P6(this.c,this.b)},h.Jc=function(){return Fdn(this.c,this.b)},h.cd=function(){return $dn(this.c,this.b)},h.dd=function(t){return sgn(this.c,this.b,t)},h.Ri=function(t,r){return Byt(this.c,this.b,t,r)},h.Si=function(t,r){sdn(this.c,this.b,t,r)},h.ed=function(t){return lmt(this.c,this.b,t)},h.Kc=function(t){return NTn(this.c,this.b,t)},h.fd=function(t,r){return Jyt(this.c,this.b,t,r)},h.Wb=function(t){k7(this.c,this.b),p3(this,l(t,16))},h.gc=function(){return agn(this.c,this.b)},h.Nc=function(){return hcn(this.c,this.b)},h.Oc=function(t){return gln(this.c,this.b,t)},h.Ib=function(){var t,r;for(r=new Jp,r.a+="[",t=Lnt(this.c,this.b);FK(t);)zo(r,b3(o7(t))),FK(t)&&(r.a+=Ma);return r.a+="]",r.a},h.Ek=function(){k7(this.c,this.b)},x(Fr,"FeatureMapUtil/FeatureEList",499),A(641,40,zD,FW),h.fj=function(t){return rC(this,t)},h.kj=function(t){var r,o,s,u,f,p,m;switch(this.d){case 1:case 2:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return this.d=5,r=new m0(2),Tn(r,this.g),Tn(r,t.gj()),this.g=r,!0;break}}break}case 5:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return o=l(this.g,18),o.Ec(t.gj()),!0;break}}break}case 4:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return this.d=6,m=new m0(2),Tn(m,this.n),Tn(m,t.ij()),this.n=m,p=Z(X(Rn,1),Xn,30,15,[this.o,t.jj()]),this.g=p,!0;break}}break}case 6:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.c)&&rC(this,null)==t.fj(null))return o=l(this.n,18),o.Ec(t.ij()),p=l(this.g,54),s=me(Rn,Xn,30,p.length+1,15,1),ua(p,0,s,0,p.length),s[p.length]=t.jj(),this.g=s,!0;break}}break}}return!1},x(Fr,"FeatureMapUtil/FeatureENotificationImpl",641),A(560,499,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},eP),h.Ml=function(t,r){return t0e(this.c,t,r)},h.Nl=function(t,r,o){return Wme(this.c,t,r,o)},h.Ol=function(t,r,o){return S0e(this.c,t,r,o)},h.Pl=function(){return this},h.Ql=function(t,r){return uD(this.c,t,r)},h.Rl=function(t){return l(q7(this.c,this.b,t,!1),76).Jk()},h.Sl=function(t){return l(q7(this.c,this.b,t,!1),76).kd()},h.Tl=function(){return this.a},h.Ul=function(t){return!P6(this.c,t)},h.Vl=function(t,r){V7(this.c,t,r)},h.Wl=function(t){return Gft(this.c,t)},h.Xl=function(t){N1t(this.c,t)},x(Fr,"FeatureMapUtil/FeatureFeatureMap",560),A(1269,1,bQ,ont),h.Dk=function(t){return q7(this.b,this.a,-1,t)},h.Oj=function(){return!P6(this.b,this.a)},h.Wb=function(t){V7(this.b,this.a,t)},h.Ek=function(){k7(this.b,this.a)},x(Fr,"FeatureMapUtil/FeatureValue",1269);var KT,Fre,$re,YT,iLt,cM=Hr(n$,"AnyType");A(677,63,wp,aq),x(n$,"InvalidDatatypeValueException",677);var AU=Hr(n$,ZAt),lM=Hr(n$,QAt),L3e=Hr(n$,e_t),oLt,Ks,M3e,_m,sLt,aLt,uLt,cLt,lLt,dLt,fLt,hLt,pLt,gLt,bLt,y2,mLt,v2,O4,wLt,fw,dM,fM,yLt,D4,L4;A(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Cce),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.c&&(this.c=new ni(this,0)),this.c):(!this.c&&(this.c=new ni(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(wa(this.c,(Er(),_m)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new ni(this,2)),this.b):(!this.b&&(this.b=new ni(this,2)),this.b.b)}return qc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t),r,o)},h.Rh=function(t,r,o){var s;switch(r){case 0:return!this.c&&(this.c=new ni(this,0)),oD(this.c,t,o);case 1:return(!this.c&&(this.c=new ni(this,0)),l(l(wa(this.c,(Er(),_m)),164),72)).Vk(t,o);case 2:return!this.b&&(this.b=new ni(this,2)),oD(this.b,t,o)}return s=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),r),69),s.uk().yk(this,Ipe(this),r-ln(this.fi()),t,o)},h.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return zc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t))},h.$h=function(t,r){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),GO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(wa(this.c,(Er(),_m)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),GO(this.b,r);return}Xc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t),r)},h.fi=function(){return Er(),M3e},h.hi=function(t){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),vn(this.c);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)).$b();return;case 2:!this.b&&(this.b=new ni(this,2)),vn(this.b);return}Jc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (mixed: ",l3(t,this.c),t.a+=", anyAttribute: ",l3(t,this.b),t.a+=")",t.a)},x(Si,"AnyTypeImpl",836),A(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},lVe),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return qc(this,t-ln((Er(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t),r,o)},h.Th=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return zc(this,t-ln((Er(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t))},h.$h=function(t,r){switch(t){case 0:SZt(this,In(r));return;case 1:AZt(this,In(r));return}Xc(this,t-ln((Er(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t),r)},h.fi=function(){return Er(),y2},h.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Jc(this,t-ln((Er(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (data: ",zo(t,this.a),t.a+=", target: ",zo(t,this.b),t.a+=")",t.a)},h.a=null,h.b=null,x(Si,"ProcessingInstructionImpl",678),A(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},MZe),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.c&&(this.c=new ni(this,0)),this.c):(!this.c&&(this.c=new ni(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(wa(this.c,(Er(),_m)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new ni(this,2)),this.b):(!this.b&&(this.b=new ni(this,2)),this.b.b);case 3:return!this.c&&(this.c=new ni(this,0)),In(uD(this.c,(Er(),O4),!0));case 4:return Zde(this.a,(!this.c&&(this.c=new ni(this,0)),In(uD(this.c,(Er(),O4),!0))));case 5:return this.a}return qc(this,t-ln((Er(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t),r,o)},h.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ni(this,0)),In(uD(this.c,(Er(),O4),!0))!=null;case 4:return Zde(this.a,(!this.c&&(this.c=new ni(this,0)),In(uD(this.c,(Er(),O4),!0))))!=null;case 5:return!!this.a}return zc(this,t-ln((Er(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},h.$h=function(t,r){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),GO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(wa(this.c,(Er(),_m)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),GO(this.b,r);return;case 3:Fhe(this,In(r));return;case 4:Fhe(this,Xde(this.a,r));return;case 5:TZt(this,l(r,160));return}Xc(this,t-ln((Er(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t),r)},h.fi=function(){return Er(),v2},h.hi=function(t){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),vn(this.c);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(wa(this.c,(Er(),_m)),164)).$b();return;case 2:!this.b&&(this.b=new ni(this,2)),vn(this.b);return;case 3:!this.c&&(this.c=new ni(this,0)),V7(this.c,(Er(),O4),null);return;case 4:Fhe(this,Xde(this.a,null));return;case 5:this.a=null;return}Jc(this,t-ln((Er(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},x(Si,"SimpleAnyTypeImpl",679),A(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},PZe),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.a&&(this.a=new ni(this,0)),this.a):(!this.a&&(this.a=new ni(this,0)),this.a.b);case 1:return o?(!this.b&&(this.b=new pu((Tt(),Io),Hs,this,1)),this.b):(!this.b&&(this.b=new pu((Tt(),Io),Hs,this,1)),i6(this.b));case 2:return o?(!this.c&&(this.c=new pu((Tt(),Io),Hs,this,2)),this.c):(!this.c&&(this.c=new pu((Tt(),Io),Hs,this,2)),i6(this.c));case 3:return!this.a&&(this.a=new ni(this,0)),wa(this.a,(Er(),dM));case 4:return!this.a&&(this.a=new ni(this,0)),wa(this.a,(Er(),fM));case 5:return!this.a&&(this.a=new ni(this,0)),wa(this.a,(Er(),D4));case 6:return!this.a&&(this.a=new ni(this,0)),wa(this.a,(Er(),L4))}return qc(this,t-ln((Er(),fw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():fw,t),r,o)},h.Rh=function(t,r,o){var s;switch(r){case 0:return!this.a&&(this.a=new ni(this,0)),oD(this.a,t,o);case 1:return!this.b&&(this.b=new pu((Tt(),Io),Hs,this,1)),z8(this.b,t,o);case 2:return!this.c&&(this.c=new pu((Tt(),Io),Hs,this,2)),z8(this.c,t,o);case 5:return!this.a&&(this.a=new ni(this,0)),oit(wa(this.a,(Er(),D4)),t,o)}return s=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():(Er(),fw),r),69),s.uk().yk(this,Ipe(this),r-ln((Er(),fw)),t,o)},h.Th=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new ni(this,0)),!A8(wa(this.a,(Er(),dM)));case 4:return!this.a&&(this.a=new ni(this,0)),!A8(wa(this.a,(Er(),fM)));case 5:return!this.a&&(this.a=new ni(this,0)),!A8(wa(this.a,(Er(),D4)));case 6:return!this.a&&(this.a=new ni(this,0)),!A8(wa(this.a,(Er(),L4)))}return zc(this,t-ln((Er(),fw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():fw,t))},h.$h=function(t,r){switch(t){case 0:!this.a&&(this.a=new ni(this,0)),GO(this.a,r);return;case 1:!this.b&&(this.b=new pu((Tt(),Io),Hs,this,1)),xj(this.b,r);return;case 2:!this.c&&(this.c=new pu((Tt(),Io),Hs,this,2)),xj(this.c,r);return;case 3:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),dM))),!this.a&&(this.a=new ni(this,0)),p3(wa(this.a,dM),l(r,18));return;case 4:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),fM))),!this.a&&(this.a=new ni(this,0)),p3(wa(this.a,fM),l(r,18));return;case 5:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),D4))),!this.a&&(this.a=new ni(this,0)),p3(wa(this.a,D4),l(r,18));return;case 6:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),L4))),!this.a&&(this.a=new ni(this,0)),p3(wa(this.a,L4),l(r,18));return}Xc(this,t-ln((Er(),fw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():fw,t),r)},h.fi=function(){return Er(),fw},h.hi=function(t){switch(t){case 0:!this.a&&(this.a=new ni(this,0)),vn(this.a);return;case 1:!this.b&&(this.b=new pu((Tt(),Io),Hs,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pu((Tt(),Io),Hs,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),dM)));return;case 4:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),fM)));return;case 5:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),D4)));return;case 6:!this.a&&(this.a=new ni(this,0)),nS(wa(this.a,(Er(),L4)));return}Jc(this,t-ln((Er(),fw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():fw,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (mixed: ",l3(t,this.a),t.a+=")",t.a)},x(Si,"XMLTypeDocumentRootImpl",680),A(2007,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1,2101:1},Qqe),h.oi=function(t,r){switch(t.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return r==null?null:bs(r);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return In(r);case 6:return unn(l(r,198));case 12:case 47:case 49:case 11:return jvt(this,t,r);case 13:return r==null?null:R_n(l(r,249));case 15:case 14:return r==null?null:ysn(ue(ce(r)));case 17:return mbt((Er(),r));case 18:return mbt(r);case 21:case 20:return r==null?null:vsn(l(r,165).a);case 27:return cnn(l(r,198));case 30:return C1t((Er(),l(r,16)));case 31:return C1t(l(r,16));case 40:return ann((Er(),r));case 42:return wbt((Er(),r));case 43:return wbt(r);case 59:case 48:return snn((Er(),r));default:throw K(new jt(Ok+t.ve()+V0))}},h.pi=function(t){var r,o,s,u,f;switch(t.G==-1&&(t.G=(o=mc(t),o?pg(o.si(),t):-1)),t.G){case 0:return r=new Cce,r;case 1:return s=new lVe,s;case 2:return u=new MZe,u;case 3:return f=new PZe,f;default:throw K(new jt(eQ+t.zb+V0))}},h.qi=function(t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne;switch(t.fk()){case 5:case 52:case 4:return r;case 6:return B1n(r);case 8:case 7:return r==null?null:k0n(r);case 9:return r==null?null:f6(Ec((s=Sa(r,!0),s.length>0&&(Yt(0,s.length),s.charCodeAt(0)==43)?(Yt(1,s.length+1),s.substr(1)):s),-128,127)<<24>>24);case 10:return r==null?null:f6(Ec((u=Sa(r,!0),u.length>0&&(Yt(0,u.length),u.charCodeAt(0)==43)?(Yt(1,u.length+1),u.substr(1)):u),-128,127)<<24>>24);case 11:return In(M0(this,(Er(),uLt),r));case 12:return In(M0(this,(Er(),cLt),r));case 13:return r==null?null:new Jce(Sa(r,!0));case 15:case 14:return $En(r);case 16:return In(M0(this,(Er(),lLt),r));case 17:return Rgt((Er(),r));case 18:return Rgt(r);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Sa(r,!0);case 21:case 20:return YEn(r);case 22:return In(M0(this,(Er(),dLt),r));case 23:return In(M0(this,(Er(),fLt),r));case 24:return In(M0(this,(Er(),hLt),r));case 25:return In(M0(this,(Er(),pLt),r));case 26:return In(M0(this,(Er(),gLt),r));case 27:return I1n(r);case 30:return Ogt((Er(),r));case 31:return Ogt(r);case 32:return r==null?null:Re(Ec((T=Sa(r,!0),T.length>0&&(Yt(0,T.length),T.charCodeAt(0)==43)?(Yt(1,T.length+1),T.substr(1)):T),Zi,sr));case 33:return r==null?null:new o1((N=Sa(r,!0),N.length>0&&(Yt(0,N.length),N.charCodeAt(0)==43)?(Yt(1,N.length+1),N.substr(1)):N));case 34:return r==null?null:Re(Ec((I=Sa(r,!0),I.length>0&&(Yt(0,I.length),I.charCodeAt(0)==43)?(Yt(1,I.length+1),I.substr(1)):I),Zi,sr));case 36:return r==null?null:by(J7((L=Sa(r,!0),L.length>0&&(Yt(0,L.length),L.charCodeAt(0)==43)?(Yt(1,L.length+1),L.substr(1)):L)));case 37:return r==null?null:by(J7((U=Sa(r,!0),U.length>0&&(Yt(0,U.length),U.charCodeAt(0)==43)?(Yt(1,U.length+1),U.substr(1)):U)));case 40:return xbn((Er(),r));case 42:return Dgt((Er(),r));case 43:return Dgt(r);case 44:return r==null?null:new o1((G=Sa(r,!0),G.length>0&&(Yt(0,G.length),G.charCodeAt(0)==43)?(Yt(1,G.length+1),G.substr(1)):G));case 45:return r==null?null:new o1((J=Sa(r,!0),J.length>0&&(Yt(0,J.length),J.charCodeAt(0)==43)?(Yt(1,J.length+1),J.substr(1)):J));case 46:return Sa(r,!1);case 47:return In(M0(this,(Er(),bLt),r));case 59:case 48:return kbn((Er(),r));case 49:return In(M0(this,(Er(),mLt),r));case 50:return r==null?null:O_(Ec((ne=Sa(r,!0),ne.length>0&&(Yt(0,ne.length),ne.charCodeAt(0)==43)?(Yt(1,ne.length+1),ne.substr(1)):ne),ZF,32767)<<16>>16);case 51:return r==null?null:O_(Ec((f=Sa(r,!0),f.length>0&&(Yt(0,f.length),f.charCodeAt(0)==43)?(Yt(1,f.length+1),f.substr(1)):f),ZF,32767)<<16>>16);case 53:return In(M0(this,(Er(),wLt),r));case 55:return r==null?null:O_(Ec((p=Sa(r,!0),p.length>0&&(Yt(0,p.length),p.charCodeAt(0)==43)?(Yt(1,p.length+1),p.substr(1)):p),ZF,32767)<<16>>16);case 56:return r==null?null:O_(Ec((m=Sa(r,!0),m.length>0&&(Yt(0,m.length),m.charCodeAt(0)==43)?(Yt(1,m.length+1),m.substr(1)):m),ZF,32767)<<16>>16);case 57:return r==null?null:by(J7((y=Sa(r,!0),y.length>0&&(Yt(0,y.length),y.charCodeAt(0)==43)?(Yt(1,y.length+1),y.substr(1)):y)));case 58:return r==null?null:by(J7((v=Sa(r,!0),v.length>0&&(Yt(0,v.length),v.charCodeAt(0)==43)?(Yt(1,v.length+1),v.substr(1)):v)));case 60:return r==null?null:Re(Ec((o=Sa(r,!0),o.length>0&&(Yt(0,o.length),o.charCodeAt(0)==43)?(Yt(1,o.length+1),o.substr(1)):o),Zi,sr));case 61:return r==null?null:Re(Ec(Sa(r,!0),Zi,sr));default:throw K(new jt(Ok+t.ve()+V0))}};var vLt,P3e,ELt,j3e;x(Si,"XMLTypeFactoryImpl",2007),A(589,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1,2023:1,589:1},qst),h.N=!1,h.O=!1;var SLt=!1;x(Si,"XMLTypePackageImpl",589),A(1940,1,{843:1},eVe),h.Ik=function(){return f0e(),RLt},x(Si,"XMLTypePackageImpl/1",1940),A(1949,1,er,tVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/10",1949),A(1950,1,er,nVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/11",1950),A(1951,1,er,rVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/12",1951),A(1952,1,er,iVe),h.dk=function(t){return Bw(t)},h.ek=function(t){return me(fi,Me,347,t,7,1)},x(Si,"XMLTypePackageImpl/13",1952),A(1953,1,er,oVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/14",1953),A(1954,1,er,sVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/15",1954),A(1955,1,er,aVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/16",1955),A(1956,1,er,uVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/17",1956),A(1957,1,er,cVe),h.dk=function(t){return se(t,165)},h.ek=function(t){return me(Bk,Me,165,t,0,1)},x(Si,"XMLTypePackageImpl/18",1957),A(1958,1,er,dVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/19",1958),A(1941,1,er,fVe),h.dk=function(t){return se(t,849)},h.ek=function(t){return me(cM,Rt,849,t,0,1)},x(Si,"XMLTypePackageImpl/2",1941),A(1959,1,er,hVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/20",1959),A(1960,1,er,pVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/21",1960),A(1961,1,er,gVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/22",1961),A(1962,1,er,bVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/23",1962),A(1963,1,er,mVe),h.dk=function(t){return se(t,198)},h.ek=function(t){return me(Eu,Me,198,t,0,2)},x(Si,"XMLTypePackageImpl/24",1963),A(1964,1,er,wVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/25",1964),A(1965,1,er,yVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/26",1965),A(1966,1,er,vVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/27",1966),A(1967,1,er,EVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/28",1967),A(1968,1,er,SVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/29",1968),A(1942,1,er,TVe),h.dk=function(t){return se(t,678)},h.ek=function(t){return me(AU,Rt,2098,t,0,1)},x(Si,"XMLTypePackageImpl/3",1942),A(1969,1,er,AVe),h.dk=function(t){return se(t,15)},h.ek=function(t){return me(Ti,Me,15,t,0,1)},x(Si,"XMLTypePackageImpl/30",1969),A(1970,1,er,_Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/31",1970),A(1971,1,er,kVe),h.dk=function(t){return se(t,192)},h.ek=function(t){return me(K0,Me,192,t,0,1)},x(Si,"XMLTypePackageImpl/32",1971),A(1972,1,er,xVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/33",1972),A(1973,1,er,NVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/34",1973),A(1974,1,er,CVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/35",1974),A(1975,1,er,IVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/36",1975),A(1976,1,er,RVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/37",1976),A(1977,1,er,OVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return me(_c,Ry,16,t,0,1)},x(Si,"XMLTypePackageImpl/38",1977),A(1978,1,er,DVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/39",1978),A(1943,1,er,LVe),h.dk=function(t){return se(t,679)},h.ek=function(t){return me(lM,Rt,2099,t,0,1)},x(Si,"XMLTypePackageImpl/4",1943),A(1979,1,er,MVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/40",1979),A(1980,1,er,PVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/41",1980),A(1981,1,er,jVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/42",1981),A(1982,1,er,FVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/43",1982),A(1983,1,er,$Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/44",1983),A(1984,1,er,BVe),h.dk=function(t){return se(t,193)},h.ek=function(t){return me(Y0,Me,193,t,0,1)},x(Si,"XMLTypePackageImpl/45",1984),A(1985,1,er,UVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/46",1985),A(1986,1,er,HVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/47",1986),A(1987,1,er,zVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/48",1987),A(1988,1,er,GVe),h.dk=function(t){return se(t,193)},h.ek=function(t){return me(Y0,Me,193,t,0,1)},x(Si,"XMLTypePackageImpl/49",1988),A(1944,1,er,qVe),h.dk=function(t){return se(t,680)},h.ek=function(t){return me(L3e,Rt,2100,t,0,1)},x(Si,"XMLTypePackageImpl/5",1944),A(1989,1,er,VVe),h.dk=function(t){return se(t,192)},h.ek=function(t){return me(K0,Me,192,t,0,1)},x(Si,"XMLTypePackageImpl/50",1989),A(1990,1,er,WVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/51",1990),A(1991,1,er,KVe),h.dk=function(t){return se(t,15)},h.ek=function(t){return me(Ti,Me,15,t,0,1)},x(Si,"XMLTypePackageImpl/52",1991),A(1945,1,er,YVe),h.dk=function(t){return zi(t)},h.ek=function(t){return me(Ye,Me,2,t,6,1)},x(Si,"XMLTypePackageImpl/6",1945),A(1946,1,er,JVe),h.dk=function(t){return se(t,198)},h.ek=function(t){return me(Eu,Me,198,t,0,2)},x(Si,"XMLTypePackageImpl/7",1946),A(1947,1,er,XVe),h.dk=function(t){return $w(t)},h.ek=function(t){return me(Yr,Me,476,t,8,1)},x(Si,"XMLTypePackageImpl/8",1947),A(1948,1,er,ZVe),h.dk=function(t){return se(t,224)},h.ek=function(t){return me(yT,Me,224,t,0,1)},x(Si,"XMLTypePackageImpl/9",1948);var mf,Mg,M4,_U,te;A(53,63,wp,Dn),x(Sg,"RegEx/ParseException",53),A(828,1,{},Due),h._l=function(t){return to*16)throw K(new Dn(Pn((Cn(),dAt))));o=o*16+u}while(!0);if(this.a!=125)throw K(new Dn(Pn((Cn(),fAt))));if(o>jk)throw K(new Dn(Pn((Cn(),hAt))));t=o}else{if(u=0,this.c!=0||(u=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(o=u,dr(this),this.c!=0||(u=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));o=o*16+u,t=o}break;case 117:if(s=0,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));r=r*16+s,t=r;break;case 118:if(dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,dr(this),this.c!=0||(s=Yb(this.a))<0)throw K(new Dn(Pn((Cn(),Eg))));if(r=r*16+s,r>jk)throw K(new Dn(Pn((Cn(),"parser.descappe.4"))));t=r;break;case 65:case 90:case 122:throw K(new Dn(Pn((Cn(),pAt))))}return t},h.bm=function(t){var r,o;switch(t){case 100:o=(this.e&32)==32?k1("Nd",!0):(fr(),kU);break;case 68:o=(this.e&32)==32?k1("Nd",!1):(fr(),z3e);break;case 119:o=(this.e&32)==32?k1("IsWord",!0):(fr(),kx);break;case 87:o=(this.e&32)==32?k1("IsWord",!1):(fr(),q3e);break;case 115:o=(this.e&32)==32?k1("IsSpace",!0):(fr(),JT);break;case 83:o=(this.e&32)==32?k1("IsSpace",!1):(fr(),G3e);break;default:throw K(new vs((r=t,p_t+r.toString(16))))}return o},h.cm=function(t){var r,o,s,u,f,p,m,y,v,T,N,I;for(this.b=1,dr(this),r=null,this.c==0&&this.a==94?(dr(this),t?T=(fr(),fr(),new bc(5)):(r=(fr(),fr(),new bc(4)),Ea(r,0,jk),T=new bc(4))):T=(fr(),fr(),new bc(4)),u=!0;(I=this.c)!=1&&!(I==0&&this.a==93&&!u);){if(u=!1,o=this.a,s=!1,I==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:xy(T,this.bm(o)),s=!0;break;case 105:case 73:case 99:case 67:o=this.sm(T,o),o<0&&(s=!0);break;case 112:case 80:if(N=ome(this,o),!N)throw K(new Dn(Pn((Cn(),hQ))));xy(T,N),s=!0;break;default:o=this.am()}else if(I==20){if(p=WA(this.i,58,this.d),p<0)throw K(new Dn(Pn((Cn(),dEe))));if(m=!0,uo(this.i,this.d)==94&&(++this.d,m=!1),f=yl(this.i,this.d,p),y=Jlt(f,m,(this.e&512)==512),!y)throw K(new Dn(Pn((Cn(),sAt))));if(xy(T,y),s=!0,p+1>=this.j||uo(this.i,p+1)!=93)throw K(new Dn(Pn((Cn(),dEe))));this.d=p+2}if(dr(this),!s)if(this.c!=0||this.a!=45)Ea(T,o,o);else{if(dr(this),(I=this.c)==1)throw K(new Dn(Pn((Cn(),qF))));I==0&&this.a==93?(Ea(T,o,o),Ea(T,45,45)):(v=this.a,I==10&&(v=this.am()),dr(this),Ea(T,o,v))}(this.e&Tl)==Tl&&this.c==0&&this.a==44&&dr(this)}if(this.c==1)throw K(new Dn(Pn((Cn(),qF))));return r&&(PC(r,T),T=r),kE(T),DC(T),this.b=0,dr(this),T},h.dm=function(){var t,r,o,s;for(o=this.cm(!1);(s=this.c)!=7;)if(t=this.a,s==0&&(t==45||t==38)||s==4){if(dr(this),this.c!=9)throw K(new Dn(Pn((Cn(),uAt))));if(r=this.cm(!1),s==4)xy(o,r);else if(t==45)PC(o,r);else if(t==38)Dvt(o,r);else throw K(new vs("ASSERT"))}else throw K(new Dn(Pn((Cn(),cAt))));return dr(this),o},h.em=function(){var t,r;return t=this.a-48,r=(fr(),fr(),new SW(12,null,t)),!this.g&&(this.g=new I9),C9(this.g,new gce(t)),dr(this),r},h.fm=function(){return dr(this),fr(),_Lt},h.gm=function(){return dr(this),fr(),ALt},h.hm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.im=function(){throw K(new Dn(Pn((Cn(),tl))))},h.jm=function(){return dr(this),tpn()},h.km=function(){return dr(this),fr(),xLt},h.lm=function(){return dr(this),fr(),CLt},h.mm=function(){var t;if(this.d>=this.j||((t=uo(this.i,this.d++))&65504)!=64)throw K(new Dn(Pn((Cn(),rAt))));return dr(this),fr(),fr(),new dh(0,t-64)},h.nm=function(){return dr(this),RAn()},h.om=function(){return dr(this),fr(),ILt},h.pm=function(){var t;return t=(fr(),fr(),new dh(0,105)),dr(this),t},h.qm=function(){return dr(this),fr(),NLt},h.rm=function(){return dr(this),fr(),kLt},h.sm=function(t,r){return this.am()},h.tm=function(){return dr(this),fr(),U3e},h.um=function(){var t,r,o,s,u;if(this.d+1>=this.j)throw K(new Dn(Pn((Cn(),eAt))));if(s=-1,r=null,t=uo(this.i,this.d),49<=t&&t<=57){if(s=t-48,!this.g&&(this.g=new I9),C9(this.g,new gce(s)),++this.d,uo(this.i,this.d)!=41)throw K(new Dn(Pn((Cn(),am))));++this.d}else switch(t==63&&--this.d,dr(this),r=F0e(this),r.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw K(new Dn(Pn((Cn(),am))));break;default:throw K(new Dn(Pn((Cn(),tAt))))}if(dr(this),u=x0(this),o=null,u.e==2){if(u.Nm()!=2)throw K(new Dn(Pn((Cn(),nAt))));o=u.Jm(1),u=u.Jm(0)}if(this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),fr(),fr(),new qdt(s,r,u,o)},h.vm=function(){return dr(this),fr(),H3e},h.wm=function(){var t;if(dr(this),t=bP(24,x0(this)),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.xm=function(){var t;if(dr(this),t=bP(20,x0(this)),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.ym=function(){var t;if(dr(this),t=bP(22,x0(this)),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.zm=function(){var t,r,o,s,u;for(t=0,o=0,r=-1;this.d=this.j)throw K(new Dn(Pn((Cn(),cEe))));if(r==45){for(++this.d;this.d=this.j)throw K(new Dn(Pn((Cn(),cEe))))}if(r==58){if(++this.d,dr(this),s=wst(x0(this),t,o),this.c!=7)throw K(new Dn(Pn((Cn(),am))));dr(this)}else if(r==41)++this.d,dr(this),s=wst(x0(this),t,o);else throw K(new Dn(Pn((Cn(),QTt))));return s},h.Am=function(){var t;if(dr(this),t=bP(21,x0(this)),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.Bm=function(){var t;if(dr(this),t=bP(23,x0(this)),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.Cm=function(){var t,r;if(dr(this),t=this.f++,r=JV(x0(this),t),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),r},h.Dm=function(){var t;if(dr(this),t=JV(x0(this),0),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.Em=function(t){return dr(this),this.c==5?(dr(this),uP(t,(fr(),fr(),new iy(9,t)))):uP(t,(fr(),fr(),new iy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new h3(2)),this.c==5?(dr(this),Zb(r,j4),Zb(r,t)):(Zb(r,t),Zb(r,j4)),r},h.Gm=function(t){return dr(this),this.c==5?(dr(this),fr(),fr(),new iy(9,t)):(fr(),fr(),new iy(3,t))},h.a=0,h.b=0,h.c=0,h.d=0,h.e=0,h.f=1,h.g=null,h.j=0,x(Sg,"RegEx/RegexParser",828),A(1927,828,{},jZe),h._l=function(t){return!1},h.am=function(){return zme(this)},h.bm=function(t){return ek(t)},h.cm=function(t){return xEt(this)},h.dm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.em=function(){throw K(new Dn(Pn((Cn(),tl))))},h.fm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.gm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.hm=function(){return dr(this),ek(67)},h.im=function(){return dr(this),ek(73)},h.jm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.km=function(){throw K(new Dn(Pn((Cn(),tl))))},h.lm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.mm=function(){return dr(this),ek(99)},h.nm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.om=function(){throw K(new Dn(Pn((Cn(),tl))))},h.pm=function(){return dr(this),ek(105)},h.qm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.rm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.sm=function(t,r){return xy(t,ek(r)),-1},h.tm=function(){return dr(this),fr(),fr(),new dh(0,94)},h.um=function(){throw K(new Dn(Pn((Cn(),tl))))},h.vm=function(){return dr(this),fr(),fr(),new dh(0,36)},h.wm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.xm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.ym=function(){throw K(new Dn(Pn((Cn(),tl))))},h.zm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.Am=function(){throw K(new Dn(Pn((Cn(),tl))))},h.Bm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.Cm=function(){var t;if(dr(this),t=JV(x0(this),0),this.c!=7)throw K(new Dn(Pn((Cn(),am))));return dr(this),t},h.Dm=function(){throw K(new Dn(Pn((Cn(),tl))))},h.Em=function(t){return dr(this),uP(t,(fr(),fr(),new iy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new h3(2)),Zb(r,t),Zb(r,j4),r},h.Gm=function(t){return dr(this),fr(),fr(),new iy(3,t)};var E2=null,Ax=null;x(Sg,"RegEx/ParserForXMLSchema",1927),A(122,1,Fk,Wm),h.Hm=function(t){throw K(new vs("Not supported."))},h.Im=function(){return-1},h.Jm=function(t){return null},h.Km=function(){return null},h.Lm=function(t){},h.Mm=function(t){},h.Nm=function(){return 0},h.Ib=function(){return this.Om(0)},h.Om=function(t){return this.e==11?".":""},h.e=0;var F3e,_x,P4,TLt,$3e,yv=null,kU,Bre=null,B3e,j4,Ure=null,U3e,H3e,z3e,G3e,q3e,ALt,JT,_Lt,kLt,xLt,NLt,kx,CLt,ILt,W3n=x(Sg,"RegEx/Token",122);A(140,122,{3:1,140:1,122:1},bc),h.Om=function(t){var r,o,s;if(this.e==4)if(this==B3e)o=".";else if(this==kU)o="\\d";else if(this==kx)o="\\w";else if(this==JT)o="\\s";else{for(s=new Jp,s.a+="[",r=0;r0&&(s.a+=","),this.b[r]===this.b[r+1]?zo(s,aD(this.b[r])):(zo(s,aD(this.b[r])),s.a+="-",zo(s,aD(this.b[r+1])));s.a+="]",o=s.a}else if(this==z3e)o="\\D";else if(this==q3e)o="\\W";else if(this==G3e)o="\\S";else{for(s=new Jp,s.a+="[^",r=0;r0&&(s.a+=","),this.b[r]===this.b[r+1]?zo(s,aD(this.b[r])):(zo(s,aD(this.b[r])),s.a+="-",zo(s,aD(this.b[r+1])));s.a+="]",o=s.a}return o},h.a=!1,h.c=!1,x(Sg,"RegEx/RangeToken",140),A(587,1,{587:1},gce),h.a=0,x(Sg,"RegEx/RegexParser/ReferencePosition",587),A(586,1,{3:1,586:1},QQe),h.Fb=function(t){var r;return t==null||!se(t,586)?!1:(r=l(t,586),mt(this.b,r.b)&&this.a==r.a)},h.Hb=function(){return cg(this.b+"/"+Pme(this.a))},h.Ib=function(){return this.c.Om(this.a)},h.a=0,x(Sg,"RegEx/RegularExpression",586),A(230,122,Fk,dh),h.Im=function(){return this.a},h.Om=function(t){var r,o,s;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:s="\\"+SV(this.a&Ei);break;case 12:s="\\f";break;case 10:s="\\n";break;case 13:s="\\r";break;case 9:s="\\t";break;case 27:s="\\e";break;default:this.a>=xo?(o=(r=this.a>>>0,"0"+r.toString(16)),s="\\v"+yl(o,o.length-6,o.length)):s=""+SV(this.a&Ei)}break;case 8:this==U3e||this==H3e?s=""+SV(this.a&Ei):s="\\"+SV(this.a&Ei);break;default:s=null}return s},h.a=0,x(Sg,"RegEx/Token/CharToken",230),A(323,122,Fk,iy),h.Jm=function(t){return this.a},h.Lm=function(t){this.b=t},h.Mm=function(t){this.c=t},h.Nm=function(){return 1},h.Om=function(t){var r;if(this.e==3)if(this.c<0&&this.b<0)r=this.a.Om(t)+"*";else if(this.c==this.b)r=this.a.Om(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)r=this.a.Om(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)r=this.a.Om(t)+"{"+this.c+",}";else throw K(new vs("Token#toString(): CLOSURE "+this.c+Ma+this.b));else if(this.c<0&&this.b<0)r=this.a.Om(t)+"*?";else if(this.c==this.b)r=this.a.Om(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)r=this.a.Om(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)r=this.a.Om(t)+"{"+this.c+",}?";else throw K(new vs("Token#toString(): NONGREEDYCLOSURE "+this.c+Ma+this.b));return r},h.b=0,h.c=0,x(Sg,"RegEx/Token/ClosureToken",323),A(829,122,Fk,Yfe),h.Jm=function(t){return t==0?this.a:this.b},h.Nm=function(){return 2},h.Om=function(t){var r;return this.b.e==3&&this.b.Jm(0)==this.a?r=this.a.Om(t)+"+":this.b.e==9&&this.b.Jm(0)==this.a?r=this.a.Om(t)+"+?":r=this.a.Om(t)+(""+this.b.Om(t)),r},x(Sg,"RegEx/Token/ConcatToken",829),A(1925,122,Fk,qdt),h.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw K(new vs("Internal Error: "+t))},h.Nm=function(){return this.b?2:1},h.Om=function(t){var r;return this.c>0?r="(?("+this.c+")":this.a.e==8?r="(?("+this.a+")":r="(?"+this.a,this.b?r+=this.d+"|"+this.b+")":r+=this.d+")",r},h.c=0,x(Sg,"RegEx/Token/ConditionToken",1925),A(1926,122,Fk,wut),h.Jm=function(t){return this.b},h.Nm=function(){return 1},h.Om=function(t){return"(?"+(this.a==0?"":Pme(this.a))+(this.c==0?"":Pme(this.c))+":"+this.b.Om(t)+")"},h.a=0,h.c=0,x(Sg,"RegEx/Token/ModifierToken",1926),A(830,122,Fk,ihe),h.Jm=function(t){return this.a},h.Nm=function(){return 1},h.Om=function(t){var r;switch(r=null,this.e){case 6:this.b==0?r="(?:"+this.a.Om(t)+")":r="("+this.a.Om(t)+")";break;case 20:r="(?="+this.a.Om(t)+")";break;case 21:r="(?!"+this.a.Om(t)+")";break;case 22:r="(?<="+this.a.Om(t)+")";break;case 23:r="(?"+this.a.Om(t)+")"}return r},h.b=0,x(Sg,"RegEx/Token/ParenToken",830),A(521,122,{3:1,122:1,521:1},SW),h.Km=function(){return this.b},h.Om=function(t){return this.e==12?"\\"+this.a:TEn(this.b)},h.a=0,x(Sg,"RegEx/Token/StringToken",521),A(469,122,Fk,h3),h.Hm=function(t){Zb(this,t)},h.Jm=function(t){return l(l0(this.a,t),122)},h.Nm=function(){return this.a?this.a.a.c.length:0},h.Om=function(t){var r,o,s,u,f;if(this.e==1){if(this.a.a.c.length==2)r=l(l0(this.a,0),122),o=l(l0(this.a,1),122),o.e==3&&o.Jm(0)==r?u=r.Om(t)+"+":o.e==9&&o.Jm(0)==r?u=r.Om(t)+"+?":u=r.Om(t)+(""+o.Om(t));else{for(f=new Jp,s=0;s=this.c.b:this.a<=this.c.b},h.Sb=function(){return this.b>0},h.Tb=function(){return this.b},h.Vb=function(){return this.b-1},h.Qb=function(){throw K(new Yp(E_t))},h.a=0,h.b=0,x(IEe,"ExclusiveRange/RangeIterator",261);var al=i_(VF,"C"),Rn=i_(uI,"I"),uu=i_(sT,"Z"),hw=i_(cI,"J"),Eu=i_(oI,"B"),Ki=i_(sI,"D"),vv=i_(aI,"F"),S2=i_(lI,"S"),K3n=Hr("org.eclipse.elk.core.labels","ILabelManager"),V3e=Hr(_o,"DiagnosticChain"),W3e=Hr(YAt,"ResourceSet"),K3e=x(_o,"InvocationTargetException",null),OLt=(P9(),Fln),DLt=DLt=d0n;Afn(FZt),Pfn("permProps",[[["locale","default"],[S_t,"gecko1_8"]],[["locale","default"],[S_t,"safari"]]]),DLt(null,"elk",null)}).call(this)}).call(this,typeof xM<"u"?xM:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(a,c,d){function g(F){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},g(F)}function b(F,$,P){return Object.defineProperty(F,"prototype",{writable:!1}),F}function w(F,$){if(!(F instanceof $))throw new TypeError("Cannot call a class as a function")}function E(F,$,P){return $=C($),S(F,_()?Reflect.construct($,P||[],C(F).constructor):$.apply(F,P))}function S(F,$){if($&&(g($)=="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(F)}function k(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function _(){try{var F=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!F})()}function C(F){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},C(F)}function R(F,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create($&&$.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),$&&M(F,$)}function M(F,$){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,H){return P.__proto__=H,P},M(F,$)}var D=a("./elk-api.js").default,B=function(F){function $(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w(this,$);var H=Object.assign({},P),Q=!1;try{a.resolve("web-worker"),Q=!0}catch{}if(P.workerUrl)if(Q){var re=a("web-worker");H.workerFactory=function(he){return new re(he)}}else console.warn(`Web worker requested but 'web-worker' package not installed. -Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!H.workerFactory){var ee=a("./elk-worker.min.js"),ae=ee.Worker;H.workerFactory=function(he){return new ae(he)}}return E(this,$,[H])}return R($,F),b($)}(D);Object.defineProperty(c.exports,"__esModule",{value:!0}),c.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(a,c,d){var g=typeof Worker<"u"?Worker:void 0;c.exports=g},{}]},{},[3])(3)})})(Qqt);var MWn=Qqt.exports;const PWn=vR(MWn),jWn=new PWn;async function FWn(n,i){try{const a=n.map(b=>({id:b.id,width:BWn(b.type),height:UWn(b.type)})),c=i.map(b=>({id:b.id,sources:[b.source],targets:[b.target]})),d={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"100","elk.spacing.edgeNode":"40","elk.layered.nodePlacement.strategy":"SIMPLE"},children:a,edges:c},g=await jWn.layout(d);return n.map(b=>{var E;const w=(E=g.children)==null?void 0:E.find(S=>S.id===b.id);return w&&w.x!==void 0&&w.y!==void 0?{...b,position:{x:w.x,y:w.y}}:b})}catch{return $Wn(n)}}function $Wn(n){return n.map((b,w)=>{const E=w%3,S=Math.floor(w/3);return{...b,position:{x:100+E*300,y:100+S*150}}})}function BWn(n){switch(n){case"trigger":return 200;case"condition":return 220;case"action":return 200;case"delay":return 180;case"wait":return 180;default:return 200}}function UWn(n){switch(n){case"trigger":return 80;case"condition":return 100;case"action":return 80;case"delay":return 70;case"wait":return 70;default:return 80}}function HWn(n){return typeof n=="object"&&n!==null&&"delay"in n&&(typeof n.delay=="string"||typeof n.delay=="number"||typeof n.delay=="object"&&n.delay!==null)}function zWn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function GWn(n){return typeof n=="object"&&n!==null&&"choose"in n}function qWn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function VWn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function WWn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function KWn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function YWn(n){return typeof n=="object"&&n!==null&&"variables"in n&&typeof n.variables=="object"&&!("service"in n)&&!("action"in n)&&!("delay"in n)&&!("wait_template"in n)&&!("choose"in n)&&!("if"in n)}function JWn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function XWn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function ZWn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const TM=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function bDe(n){return n.map(i=>QWn(i))}function QWn(n){const{condition:i,conditions:a,...c}=n,d=i||"template",g=TM.includes(d)?d:"template",b=Array.isArray(a)?bDe(a):void 0;return{...c,condition:g,conditions:b}}class eKn{async parse(i){const a=[];try{let c=_Wn(i);if(Array.isArray(c)){if(c.length===0)return{success:!1,errors:["Empty automation array"],warnings:a,hadMetadata:!1};c=c[0]}if(!c||typeof c!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:a,hadMetadata:!1};const d=this.extractMetadata(c),g=d!==null,b=this.extractUserVariables(c),w=c;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:a,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:k,edges:_}=S?this.parseStateMachineStructure(w,a,E):this.parseAutomationStructure(w,a,E);let C;g&&d?C=this.applyMetadataPositions(k,d):C=await FWn(k,_);const R={mode:w.mode,max:w.max,max_exceeded:w.max_exceeded,initial_state:w.initial_state,hide_entity:w.hide_entity,trace:w.trace},M=B9t.safeParse(R),D=M.success?M.data:B9t.parse({}),B={id:(d==null?void 0:d.graph_id)||DWn(),name:typeof w.alias=="string"?w.alias:"Imported Automation",description:typeof w.description=="string"?w.description:"",nodes:C,edges:_,metadata:D,version:1,userVariables:Object.keys(b).length>0?b:void 0},F=GGt.safeParse(B);if(!F.success){const P=F.error.issues.map(H=>{let Q="";if(H.path&&H.path.length>0&&H.path[0]==="nodes"&&typeof H.path[1]=="number"){const re=H.path[1],ee=B.nodes[re];Q=`Node index ${re} (id: ${ee==null?void 0:ee.id}, type: ${ee==null?void 0:ee.type}) -Data: ${JSON.stringify(ee==null?void 0:ee.data,null,2)}`}return`Schema path: ${H.path.join(".")} -Message: ${H.message}${Q?` -${Q}`:""}`});return console.error("Zod validation error details:",P),{success:!1,errors:P,warnings:a,hadMetadata:g}}const $=qGt(F.data);return $.valid?{success:!0,graph:F.data,warnings:a,hadMetadata:g}:{success:!1,errors:$.errors,warnings:a,hadMetadata:g}}catch(c){return console.error("YAML parsing error:",c),console.error("YAML string:",i),{success:!1,errors:[c instanceof Error?c.message:"Unknown parsing error"],warnings:a,hadMetadata:!1}}}extractMetadata(i){try{let a;if(typeof i.variables=="object"&&i.variables!==null&&(a=i.variables),a&&typeof a=="object"&&"_cafe_metadata"in a&&typeof a._cafe_metadata=="object"&&a._cafe_metadata!==null){const c=a._cafe_metadata,d=zGt.safeParse(c);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const a={};if(typeof i.variables=="object"&&i.variables!==null){const c=i.variables;for(const[d,g]of Object.entries(c))d!=="_cafe_metadata"&&(a[d]=g)}return a}detectStateMachineFormat(i){const a=i.actions||i.action;if(!Array.isArray(a))return!1;let c=!1,d=!1;for(const g of a){const b=g;if(b.variables){const w=b.variables;"current_node"in w&&"flow_context"in w&&(c=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const k=S;if(Array.isArray(k.choose)){d=!0;break}}}}return c&&d}parseStateMachineStructure(i,a,c){const d=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))return a.push("No actions found in automation"),{nodes:d,edges:g};let w=null;const E=new Map;for(const F of b){const $=F;if($.variables){const P=$.variables;typeof P.current_node=="string"&&P.current_node!=="END"&&(w=P.current_node)}if($.repeat){const H=$.repeat.sequence;if(Array.isArray(H))for(const Q of H){const re=Q;if(Array.isArray(re.choose))for(const ee of re.choose){const ae=this.parseStateMachineChooseBlock(ee);ae&&E.set(ae.nodeId,ae)}}}}const S=new Set(E.keys()),k=c.filter(F=>!S.has(F));let _=0,C=0;const R=F=>_0)for(let $=0;$0){const b=Math.max(...a.keys());a.set(b+1,g[1].trim())}return a.size>0?a:null}parseStateMachineChooseBlock(i){const a=i.conditions;if(!Array.isArray(a)||a.length===0)return null;const d=a[0].value_template;if(!d)return null;const g=d.match(/current_node\s*==\s*["']([^"']+)["']/);if(!g)return null;const b=g[1],w=i.sequence;if(!Array.isArray(w)||w.length===0)return null;let E="action";const S={};let k=null,_=null;for(const C of w){const R=C;if(R.variables){const D=R.variables.current_node;if(typeof D=="string")if(D.includes("{%")&&D.includes("%}")){E="condition";const B=D.match(/{%\s*if[^%]*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/),F=D.match(/{%\s*else\s*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/);k=B?B[1]:null,_=F?F[1]:null;const $=D.match(/{%\s*if\s+(.+?)\s*%}/);if($){const P=$[1];Object.assign(S,this.parseJinjaCondition(P))}}else k=D==="END"?null:D}else R.delay!==void 0?(E="delay",S.delay=R.delay,R.alias&&(S.alias=R.alias)):R.wait_template!==void 0?(E="wait",S.wait_template=R.wait_template,R.timeout&&(S.timeout=R.timeout),R.continue_on_timeout!==void 0&&(S.continue_on_timeout=R.continue_on_timeout),R.alias&&(S.alias=R.alias)):(R.service||R.action)&&(E="action",S.service=R.service||R.action,R.target&&(S.target=R.target),R.data&&(S.data=R.data),R.alias&&(S.alias=R.alias))}return{nodeId:b,nodeType:E,data:S,trueTarget:k,falseTarget:_}}parseJinjaCondition(i){const a=i.match(/is_state\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)/);if(a){const d=a[1],g=a[2];if(d==="sun.sun"){if(g==="above_horizon")return{condition:"sun",after:"sunrise",before:"sunset"};if(g==="below_horizon")return{condition:"sun",after:"sunset",before:"sunrise"}}return{condition:"state",entity_id:d,state:g}}const c=i.match(/states\s*\(\s*['"]([^'"]+)['"]\s*\)\s*\|\s*float\s*([<>=]+)\s*(\d+(?:\.\d+)?)/);if(c){const d=c[1],g=c[2],b=parseFloat(c[3]),w={condition:"numeric_state",entity_id:d};return g.includes(">")&&(w.above=b),g.includes("<")&&(w.below=b),w}return{condition:"template",value_template:`{{ ${i} }}`}}parseAutomationStructure(i,a,c){var P;const d=[],g=[],b=new Set;let w=0;const E=H=>w0){const H=this.parseConditions(D,a,E);d.push(...H.nodes),g.push(...H.edges);for(const re of H.nodes)b.add(re.id);const Q=H.nodes;if(Q.length===1){for(const re of _)g.push(this.createEdge(re.id,Q[0].id));R=[Q[0].id]}else{for(const re of _)g.push(this.createEdge(re.id,Q[0].id));for(let re=0;reH.id);const B=i.actions||i.action;if(!B)return a.push("No actions found in automation"),{nodes:d,edges:g};const F=Array.isArray(B)?B:[B],$=this.parseActions(F,{warnings:a,previousNodeIds:R,getNextNodeId:E,conditionNodeIds:b,triggerNodeMap:C});return d.push(...$.nodes),g.push(...$.edges),{nodes:d,edges:g}}parseTriggers(i,a,c){return i.filter(gUn).map((d,g)=>{const b=c("trigger");try{const w=oN.safeParse(d);return w.success?{id:b,type:"trigger",position:{x:0,y:0},data:w.data}:(a.push(`Trigger ${g} failed schema validation: ${JSON.stringify(w.error.issues)}`),this.createUnknownNode(b,d))}catch(w){return a.push(`Failed to parse trigger ${g}: ${w}`),this.createUnknownNode(b,d)}})}parseConditions(i,a,c){const d=[],g=[],b=[];return i.filter(bUn).forEach((w,E)=>{const S=c("condition");try{const k=Bg.safeParse(w);if(!k.success){a.push(`Condition ${E} failed schema validation: ${JSON.stringify(k.error.issues)}`),d.push({id:S,type:"condition",position:{x:0,y:0},data:{condition:"template",alias:"Unknown Condition",value_template:JSON.stringify(w)}});return}const _={id:S,type:"condition",position:{x:0,y:0},data:k.data};d.push(_),b.push(S)}catch(k){a.push(`Failed to parse condition ${E}: ${k}`),d.push({id:S,type:"condition",position:{x:0,y:0},data:{condition:"template",alias:"Unknown Condition",value_template:JSON.stringify(w)}})}}),{nodes:d,edges:g,outputNodeIds:b}}parseActions(i,a){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,triggerNodeMap:w,inheritedEnabled:E}=a,S=[],k=[];let _=d;const C=new Set(b),R=new Set,M=B=>E===!1?!1:B,D=B=>{for(const F of _){let $;R.has(F)?$="false":C.has(F)&&($="true"),k.push(this.createEdge(F,B,$))}};return i.forEach((B,F)=>{if(!B||typeof B!="object"){c.push(`Unknown action type (${JSON.stringify(B)}) at index ${F}`);const $=g("unknown");S.push({id:$,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D($),_=[$];return}if(KWn(B)){const $=g("condition"),P=B,H=P.condition||"template",Q=TM.includes(H)?H:"template";let re;try{re=Bg.parse(P)}catch(ae){c.push(`Inline condition at index ${F} failed schema validation: ${ae instanceof Error?ae.message:JSON.stringify(ae)}`),re={condition:Q,alias:typeof P.alias=="string"?P.alias:void 0,value_template:JSON.stringify(P)}}re.enabled=M(re.enabled);const ee={id:$,type:"condition",position:{x:0,y:0},data:re};S.push(ee),D($),C.add($),_=[$]}else if(YWn(B)){const $=g("set_variables"),P=B,H={id:$,type:"set_variables",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,variables:P.variables||{},enabled:M(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(H),D($),_=[$]}else if(HWn(B)){const $=g("delay"),P=B,{alias:H,delay:Q,enabled:re,...ee}=P,ae={id:$,type:"delay",position:{x:0,y:0},data:{...ee,alias:typeof H=="string"?H:void 0,delay:typeof Q=="string"||typeof Q=="object"&&Q!==null?Q:"",enabled:M(typeof re=="boolean"?re:void 0)}};S.push(ae),D($),_=[$]}else if(zWn(B)){const $=g("wait"),P=B,{alias:H,wait_template:Q,wait_for_trigger:re,timeout:ee,continue_on_timeout:ae,enabled:he,...ve}=P;let de;(typeof ee=="string"||typeof ee=="object"&&ee!==null)&&(de=ee);const ge={...ve,alias:typeof H=="string"?H:void 0,timeout:de,continue_on_timeout:typeof ae=="boolean"?ae:void 0,enabled:M(typeof he=="boolean"?he:void 0)};if(typeof Q=="string")ge.wait_template=Q;else if(Array.isArray(re)){const fe=[];for(const De of re){const Se=oN.safeParse(De);Se.success?fe.push(Se.data):c.push(`Failed to parse a trigger inside wait_for_trigger: ${Se.error.message}`)}ge.wait_for_trigger=fe}const Y={id:$,type:"wait",position:{x:0,y:0},data:ge};S.push(Y),D($),_=[$]}else if(GWn(B)){const $=this.parseChooseBlock(B,{warnings:c,previousNodeIds:_,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,inheritedEnabled:E});S.push(...$.nodes),k.push(...$.edges);for(const P of $.outputNodeIds){const H=$.nodes.find(Q=>Q.id===P);(H==null?void 0:H.type)==="condition"&&($.falsePathOutputIds.includes(P)?R.add(P):C.add(P))}_=$.outputNodeIds}else if(VWn(B)){const $=B,P=Array.isArray($.if)?$.if:[],H=Array.isArray($.then)?$.then:[],Q=Array.isArray($.else)?$.else:void 0,re={if:P,then:H,else:Q,alias:typeof $.alias=="string"?$.alias:void 0,enabled:$.enabled},ee=this.parseIfBlock(re,{warnings:c,previousNodeIds:_,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,triggerNodeMap:w,inheritedEnabled:E});S.push(...ee.nodes),k.push(...ee.edges);for(const ae of ee.outputNodeIds){const he=ee.nodes.find(ve=>ve.id===ae);(he==null?void 0:he.type)==="condition"&&(ee.falsePathOutputIds.includes(ae)?R.add(ae):C.add(ae))}ee.unconsumedPreviousIds.length>0?_=ee.unconsumedPreviousIds:_=ee.outputNodeIds}else if(OMe(B)){const $=g("action"),P=B,H=["type","device_id","domain","entity_id","subtype","alias","enabled"],Q={};for(const[ee,ae]of Object.entries(P))!H.includes(ee)&&ae!==void 0&&(Q[ee]=ae);const re={id:$,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,service:`${P.domain}.${P.type}`,target:{device_id:P.device_id},data:{type:P.type,device_id:P.device_id,domain:P.domain,entity_id:P.entity_id,subtype:P.subtype,...Q},enabled:M(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(re),D($),_=[$]}else if(qWn(B)){const P=B.parallel,H=[..._],Q=[];for(const re of P)if(Array.isArray(re)){const ee=this.parseActions(re,{warnings:c,previousNodeIds:H,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ee.nodes.length>0){S.push(...ee.nodes),k.push(...ee.edges);const ae=new Set(ee.edges.map(ve=>ve.source)),he=ee.nodes.filter(ve=>!ae.has(ve.id));Q.push(...he.map(ve=>ve.id))}}else if(typeof re=="object"&&re!==null){const ee=re;if("sequence"in ee&&Array.isArray(ee.sequence)){const ae=this.parseActions(ee.sequence,{warnings:c,previousNodeIds:H,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ae.nodes.length>0){S.push(...ae.nodes),k.push(...ae.edges);const he=new Set(ae.edges.map(de=>de.source)),ve=ae.nodes.filter(de=>!he.has(de.id));Q.push(...ve.map(de=>de.id))}}else{const ae=this.parseActions([re],{warnings:c,previousNodeIds:H,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ae.nodes.length>0){S.push(...ae.nodes),k.push(...ae.edges);const he=ae.nodes[ae.nodes.length-1];Q.push(he.id)}}}_=Q.length>0?Q:H}else if(ZWn(B)){const $=g("action"),P=B,H={id:$,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,event:typeof P.event=="string"?P.event:void 0,event_data:typeof P.event_data=="object"&&P.event_data!==null?P.event_data:void 0,enabled:M(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(H),D($),_=[$]}else if(XWn(B)){const $=B,P=$.repeat,H=Array.isArray(P.sequence)?P.sequence:[],Q=typeof $.alias=="string"?$.alias:void 0,re=M(typeof $.enabled=="boolean"?$.enabled:void 0);if(Array.isArray(P.while)&&P.while.length>0){const ee=P.while,ae=[];for(let De=0;De0){const De=ve.nodes[0].id,Se=k.find($e=>$e.source===he&&$e.target===De);Se&&(Se.sourceHandle="true")}const de=new Set(ve.nodes.map(De=>De.id)),ge=new Set(ve.edges.map(De=>De.source)),Y=ve.nodes.filter(De=>!ge.has(De.id)||![...ve.edges].some(Se=>Se.source===De.id&&de.has(Se.target))),fe=Y.length>0?Y[Y.length-1].id:ve.nodes.length>0?ve.nodes[ve.nodes.length-1].id:he;if(ve.nodes.length>0){const De=this.createEdge(fe,ae[0].id);k.push(De)}_=[ae[0].id],R.add(ae[0].id)}else if(Array.isArray(P.until)&&P.until.length>0||typeof P.until=="string"){const ee=this.parseActions(H,{warnings:c,previousNodeIds:_,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:re});S.push(...ee.nodes),k.push(...ee.edges);const ae=ee.nodes.length>0?ee.nodes[0].id:null,he=new Set(ee.nodes.map(Se=>Se.id)),ve=new Set(ee.edges.filter(Se=>he.has(Se.target)).map(Se=>Se.source)),de=ee.nodes.filter(Se=>!ve.has(Se.id)||!ee.edges.some($e=>$e.source===Se.id&&he.has($e.target))),ge=de.length>0?de[de.length-1].id:ee.nodes.length>0?ee.nodes[ee.nodes.length-1].id:null,Y=typeof P.until=="string"?[{condition:"template",value_template:P.until}]:P.until,fe=[];for(let Se=0;SeTe.id===ge)&&C.has(ge)?"true":void 0;k.push(this.createEdge(ge,fe[0].id,$e))}else D(fe[0].id);for(let Se=0;Seqe.id)),Y=new Set(de.edges.filter(qe=>ge.has(qe.target)).map(qe=>qe.source)),fe=de.nodes.filter(qe=>!Y.has(qe.id)||!de.edges.some(_t=>_t.source===qe.id&&ge.has(_t.target))),De=fe.length>0?fe[fe.length-1].id:de.nodes.length>0?de.nodes[de.nodes.length-1].id:ae,Se=g("set_variables"),$e={id:Se,type:"set_variables",position:{x:0,y:0},data:{variables:{[he]:`{{ ${he} + 1 }}`},enabled:re}};if(S.push($e),de.nodes.length>0){const _t=de.nodes.find(At=>At.id===De)&&C.has(De)?"true":void 0;k.push(this.createEdge(De,Se,_t))}else k.push(this.createEdge(ae,Se));const Te=g("condition"),ke={id:Te,type:"condition",position:{x:0,y:0},data:{condition:"template",value_template:`{{ ${he} < ${ee} }}`,enabled:re}};S.push(ke),C.add(Te),k.push(this.createEdge(Se,Te));const Je=de.nodes.length>0?de.nodes[0].id:Se,bt=this.createEdge(Te,Je,"true");k.push(bt),_=[Te],R.add(Te)}else{const ee=g("action"),ae={id:ee,type:"action",position:{x:0,y:0},data:{alias:Q,repeat:P,enabled:re}};S.push(ae),D(ee),_=[ee]}}else if(WWn(B)){const $=g("action");try{const P=B,{alias:H,service:Q,action:re,target:ee,data:ae,data_template:he,response_variable:ve,continue_on_error:de,enabled:ge,...Y}=P,fe={id:$,type:"action",position:{x:0,y:0},data:{...Y,alias:typeof H=="string"?H:void 0,service:typeof Q=="string"?Q:typeof re=="string"?re:void 0,target:typeof ee=="object"&&ee!==null?ee:void 0,data:typeof ae=="object"&&ae!==null?ae:void 0,data_template:typeof he=="object"&&he!==null?he:void 0,response_variable:typeof ve=="string"?ve:void 0,continue_on_error:typeof de=="boolean"?de:void 0,enabled:M(typeof ge=="boolean"?ge:void 0)}};S.push(fe),D($),_=[$]}catch(P){c.push(`Failed to parse action ${F}: ${P}`),S.push(this.createUnknownNode($,B))}}else if(JWn(B)){const $=g("action"),P=B,H={id:$,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,set_conversation_response:typeof P.set_conversation_response=="string"?P.set_conversation_response:void 0,enabled:M(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(H),D($),_=[$]}else{c.push(`Unknown action type (${JSON.stringify(B)}) at index ${F}`);const $=g("unknown");S.push({id:$,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D($),_=[$]}}),{nodes:S,edges:k,terminalNodeIds:_}}parseChooseBlock(i,a){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,inheritedEnabled:E}=a,S=[],k=[],_=[],C=[],R=new Set(b),M=i.enabled,D=E===!1||M===!1?!1:void 0,B=()=>D,$=(Array.isArray(i.choose)?i.choose:[i.choose]).filter(H=>typeof H=="object"&&H!==null&&H.conditions);let P=[...d];if($.forEach((H,Q)=>{const re=Array.isArray(H.conditions)?H.conditions:[H.conditions],ee=[];for(let ve=0;ve0&&R.has(ve)&&!b.has(ve)||w.has(ve)?de="false":b.has(ve)&&(de="true"),k.push(this.createEdge(ve,ae,de))}for(let ve=0;ve0){const ge=de.nodes[0].id,Y=k.find(De=>De.source===he&&De.target===ge);Y&&(Y.sourceHandle="true");const fe=de.nodes[de.nodes.length-1].id;_.push(fe)}else _.push(he)}else _.push(he);P=[ae]}),i.default){const H=Array.isArray(i.default)?i.default:[i.default],Q=this.parseActions(H,{warnings:c,previousNodeIds:P,getNextNodeId:g,conditionNodeIds:R,inheritedEnabled:D});if(S.push(...Q.nodes),k.push(...Q.edges),P.length>0&&Q.nodes.length>0){const re=P[0],ee=Q.nodes[0].id,ae=k.find(ve=>ve.source===re&&ve.target===ee);ae&&R.has(re)&&(ae.sourceHandle="false");const he=Q.nodes[Q.nodes.length-1].id;_.push(he)}}else if($.length>0){const H=P[0];_.push(H),C.push(H)}return{nodes:S,edges:k,outputNodeIds:_,falsePathOutputIds:C}}parseIfBlock(i,a){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,triggerNodeMap:E,inheritedEnabled:S}=a,k=[],_=[],C=[],R=[],M=new Set(b),D=S===!1||i.enabled===!1?!1:void 0,B=()=>D,F=Array.isArray(i.if)?i.if:[i.if],$=[];for(let ee=0;ee{if(i.else||F.length!==1)return null;const ee=F[0];if((ee==null?void 0:ee.condition)!=="trigger")return null;const ae=ee==null?void 0:ee.id;return typeof ae=="string"?[ae]:Array.isArray(ae)&&ae.length>0&&ae.every(he=>typeof he=="string")?ae:null})();for(const ee of d){if(H!==null&&E){const he=E.get(ee);if(he!==void 0&&!H.includes(he))continue}let ae;w.has(ee)?ae="false":M.has(ee)&&(ae="true"),_.push(this.createEdge(ee,P,ae))}for(let ee=0;ee<$.length-1;ee++)_.push(this.createEdge($[ee].id,$[ee+1].id,"true"));const Q=$[$.length-1].id;if(i.then){const ee=Array.isArray(i.then)?i.then:[i.then],ae=this.parseActions(ee,{warnings:c,previousNodeIds:[Q],getNextNodeId:g,conditionNodeIds:M,inheritedEnabled:D});if(k.push(...ae.nodes),_.push(...ae.edges),ae.nodes.length>0){const he=ae.nodes[0].id,ve=_.find(de=>de.source===Q&&de.target===he);ve&&(ve.sourceHandle="true")}C.push(...ae.terminalNodeIds)}if(i.else){const ee=Array.isArray(i.else)?i.else:[i.else],ae=this.parseActions(ee,{warnings:c,previousNodeIds:[P],getNextNodeId:g,conditionNodeIds:new Set,inheritedEnabled:D});if(k.push(...ae.nodes),ae.nodes.length>0){const he=ae.nodes[0].id,ve=ae.edges.findIndex(de=>de.source===P&&de.target===he);ve>=0&&ae.edges.splice(ve,1),_.push(this.createEdge(P,he,"false"))}_.push(...ae.edges),C.push(...ae.terminalNodeIds)}else if(H===null)for(const ee of $)C.push(ee.id),R.push(ee.id);C.length===0&&H===null&&(C.push(Q),R.push(Q));const re=H!==null&&E?d.filter(ee=>{const ae=E.get(ee);return ae===void 0||!H.includes(ae)}):[];return{nodes:k,edges:_,outputNodeIds:C,falsePathOutputIds:R,unconsumedPreviousIds:re}}createUnknownNode(i,a){const c=a;return{id:i,type:"action",position:{x:0,y:0},data:{alias:`Unknown: ${(c==null?void 0:c.service)||(c==null?void 0:c.trigger)||"Node"}`,service:(c==null?void 0:c.service)||"unknown.unknown",data:c}}}applyMetadataPositions(i,a){return i.map(c=>({...c,position:a.nodes[c.id]||c.position}))}createEdge(i,a,c){return{id:LWn(i,a),source:i,target:a,sourceHandle:c||void 0}}}class eVt{findEntryNodes(i){const a=new Set(i.edges.map(c=>c.target));return i.nodes.filter(c=>!a.has(c.id)).map(c=>c.id)}getOutgoingEdges(i,a){return i.edges.filter(c=>c.source===a)}getIncomingEdges(i,a){return i.edges.filter(c=>c.target===a)}getNode(i,a){return i.nodes.find(c=>c.id===a)}}class tKn extends eVt{constructor(){super(...arguments);Xf(this,"name","native");Xf(this,"description","Generates nested HA YAML for simple tree-shaped automations");Xf(this,"repeatPatterns",new Map);Xf(this,"repeatInternalNodeIds",new Set);Xf(this,"backEdgeIds",new Set)}canHandle(a){return a.isTree}generate(a,c){var M,D,B;const d=[];this.backEdgeIds=Nqt(a),this.repeatPatterns=this.detectRepeatPatterns(a),this.repeatInternalNodeIds=new Set;for(const F of this.repeatPatterns.values()){for(const $ of F.bodyNodeIds)this.repeatInternalNodeIds.add($);for(const $ of F.conditionNodeIds)this.repeatInternalNodeIds.add($);F.initNodeId&&this.repeatInternalNodeIds.add(F.initNodeId),F.incrementNodeId&&this.repeatInternalNodeIds.add(F.incrementNodeId)}const g=this.extractTriggers(a),w=c.entryNodes.flatMap(F=>this.getOutgoingEdges(a,F).map(P=>P.target)),E=[...new Set(w)];let S=null,k=[],_=null;if(E.length===1){const F=this.extractLeadingConditions(a,E[0]);F.conditions.length>0&&(S=F.conditions,k=F.nextNodeIds,_=F.visitedIds)}let C;if(S)k.length>0?C=k.flatMap(F=>this.buildSequenceFromNode(a,F,new Set(_))):C=[];else if(E.length===1)C=this.buildSequenceFromNode(a,E[0],new Set);else if(E.length>1){const F=this.detectOrPattern(a,E);if(F){const $=F.conditions.map(Q=>this.buildCondition(Q)),P=new Set(F.conditions.map(Q=>Q.id)),H=this.buildSequenceFromNode(a,F.convergenceNode,P);C=[{if:[{condition:"or",conditions:$}],then:H,else:F.isFromFalsePaths?[]:[]}]}else E.every(P=>{var Q;const H=a.nodes.find(re=>re.id===P);return(H==null?void 0:H.type)==="condition"&&((Q=H.data)==null?void 0:Q.condition)==="trigger"})?C=E.flatMap(P=>this.buildSequenceFromNode(a,P,new Set)):C=[{parallel:E.map(Q=>this.buildSequenceFromNode(a,Q,new Set)).filter(Q=>Q.length>0).map(Q=>Q.length===1?Q[0]:Q)}]}else C=[],d.push("No actions found after trigger nodes");const R={alias:a.name,description:a.description||"",triggers:g};return S&&S.length>0&&(R.conditions=S),R.actions=C,R.mode=((M=a.metadata)==null?void 0:M.mode)??"single",(D=a.metadata)!=null&&D.max&&(R.max=a.metadata.max),(B=a.metadata)!=null&&B.max_exceeded&&(R.max_exceeded=a.metadata.max_exceeded),{automation:R,warnings:d,strategy:this.name}}detectRepeatPatterns(a){const c=new Map;for(const d of a.edges){if(!this.backEdgeIds.has(d.id))continue;const g=this.getNode(a,d.source),b=this.getNode(a,d.target);if(!(!g||!b)){if(b.type==="condition"&&g.type!=="condition"){const w=d.target,E=d.source,S=[];let k=w;for(;k;){const M=this.getNode(a,k);if((M==null?void 0:M.type)!=="condition")break;S.push(k);const D=a.edges.find(F=>F.source===k&&F.sourceHandle==="true"&&!this.backEdgeIds.has(F.id));if(!D)break;const B=this.getNode(a,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)k=D.target;else break}const _=S[S.length-1],C=this.collectBodyNodes(a,_,"true",new Set(S),E),R=a.edges.find(M=>M.source===w&&M.sourceHandle==="false"&&!this.backEdgeIds.has(M.id));c.set(w,{type:"while",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:C,backEdgeSourceId:E,exitNodeId:(R==null?void 0:R.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="false"){const w=d.target,E=d.source,S=[];let k=E;for(;k;){const M=this.getNode(a,k);if((M==null?void 0:M.type)!=="condition")break;S.push(k);const D=a.edges.find(F=>F.source===k&&F.sourceHandle==="true"&&!this.backEdgeIds.has(F.id));if(!D)break;const B=this.getNode(a,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)k=D.target;else break}const _=this.collectNodesUntil(a,w,new Set(S)),C=S[S.length-1],R=a.edges.find(M=>M.source===C&&M.sourceHandle==="true"&&!this.backEdgeIds.has(M.id));c.set(w,{type:"until",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:_,backEdgeSourceId:E,exitNodeId:(R==null?void 0:R.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="true"){const w=d.target,E=d.source,S=[E],k=a.edges.filter(H=>H.target===E&&!this.backEdgeIds.has(H.id)),_=k.length>0?k[0].source:void 0,C=new Set([E]);_&&C.add(_);const R=this.collectNodesUntil(a,w,C),D=a.edges.filter(H=>H.target===w&&!this.backEdgeIds.has(H.id)).map(H=>H.source).find(H=>{const Q=this.getNode(a,H);return(Q==null?void 0:Q.type)==="set_variables"}),B=this.getNode(a,E);let F;if((B==null?void 0:B.type)==="condition"&&B.data.condition==="template"){const H=B.data.value_template;if(typeof H=="string"){const Q=H.match(/<\s*(\d+)\s*\}\}/);Q&&(F=Number.parseInt(Q[1],10))}}const $=a.edges.find(H=>H.source===E&&H.sourceHandle==="false"&&!this.backEdgeIds.has(H.id)),P=D??w;c.set(P,{type:"count",entryNodeId:P,conditionNodeIds:S,bodyNodeIds:R,backEdgeSourceId:E,initNodeId:D,incrementNodeId:_,count:F,exitNodeId:($==null?void 0:$.target)??null})}}}return c}collectBodyNodes(a,c,d,g,b){const w=a.edges.find(_=>_.source===c&&_.sourceHandle===d&&!this.backEdgeIds.has(_.id));if(!w)return[];const E=[],S=[w.target],k=new Set;for(;S.length>0;){const _=S.shift();if(k.has(_)||g.has(_)||(k.add(_),E.push(_),_===b))continue;const C=a.edges.filter(R=>R.source===_&&!this.backEdgeIds.has(R.id));for(const R of C)!k.has(R.target)&&!g.has(R.target)&&S.push(R.target)}return E}collectNodesUntil(a,c,d){const g=[],b=[c],w=new Set;for(;b.length>0;){const E=b.shift();if(w.has(E)||d.has(E))continue;w.add(E),g.push(E);const S=a.edges.filter(k=>k.source===E&&!this.backEdgeIds.has(k.id));for(const k of S)!w.has(k.target)&&!d.has(k.target)&&b.push(k.target)}return g}buildRepeatBlock(a,c,d){for(const w of c.conditionNodeIds)d.add(w);for(const w of c.bodyNodeIds)d.add(w);c.initNodeId&&d.add(c.initNodeId),c.incrementNodeId&&d.add(c.incrementNodeId),d.add(c.entryNodeId);const g=[];for(const w of c.bodyNodeIds){const E=this.getNode(a,w);if(E)if(E.type==="condition"){const S=a.edges.filter(C=>C.source===w&&!this.backEdgeIds.has(C.id)),k=S.find(C=>C.sourceHandle==="true"),_=S.find(C=>C.sourceHandle==="false");if(k||_){const C={if:[this.buildCondition(E)],then:[],else:[]};k&&c.bodyNodeIds.includes(k.target)&&(C.then=this.buildBodySubsequence(a,k.target,c,d)),_&&c.bodyNodeIds.includes(_.target)&&(C.else=this.buildBodySubsequence(a,_.target,c,d)),g.push(C)}else g.push(this.buildCondition(E))}else{const S=this.buildNodeAction(E);S&&g.push(S)}}let b;if(c.type==="while"){const E={repeat:{while:c.conditionNodeIds.map(S=>{var _;const k=this.getNode(a,S);return!b&&((_=k==null?void 0:k.data)!=null&&_.alias)&&(b=k.data.alias),this.buildCondition(k)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="until"){const E={repeat:{until:c.conditionNodeIds.map(S=>{const k=this.getNode(a,S);return this.buildCondition(k)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="count"){if(c.initNodeId){const E=this.getNode(a,c.initNodeId);E!=null&&E.data&&"alias"in E.data&&(b=E.data.alias)}const w={repeat:{count:c.count,sequence:g}};return b&&(w.alias=b),w}return null}buildBodySubsequence(a,c,d,g){const b=[];let w=c;for(;w&&d.bodyNodeIds.includes(w)&&!g.has(w);){g.add(w);const E=this.getNode(a,w);if(!E)break;const S=this.buildNodeAction(E);S&&b.push(S);const k=a.edges.filter(_=>_.source===w&&!this.backEdgeIds.has(_.id));w=k.length===1?k[0].target:null}return b}extractTriggers(a){return a.nodes.filter(c=>c.type==="trigger").map(c=>this.buildTrigger(c))}detectOrPattern(a,c){const d=c.map(w=>this.getNode(a,w));if(!d.every(w=>(w==null?void 0:w.type)==="condition"))return null;const g=new Set;for(const w of d){const E=a.edges.find(S=>S.source===w.id&&S.sourceHandle==="true");E&&g.add(E.target)}if(g.size===1&&d.length===c.length){const w=[...g][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!1}}const b=new Set;for(const w of d){const E=a.edges.find(S=>S.source===w.id&&S.sourceHandle==="false");E&&b.add(E.target)}if(b.size===1&&d.length===c.length){const w=[...b][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!0}}return null}extractLeadingConditions(a,c){const d=[],g=new Set;let b=c;for(;b;){const w=this.getNode(a,b);if(!w||w.type!=="condition"||this.repeatPatterns.has(b)||this.repeatInternalNodeIds.has(b))break;const S=this.getOutgoingEdges(a,b).filter(R=>!this.backEdgeIds.has(R.id)),k=S.filter(R=>R.sourceHandle==="true"),_=S.filter(R=>R.sourceHandle==="false");if(k.length>0&&_.length>0||k.length===0&&_.length===0)break;const C=this.buildCondition(w);if(w.data.alias&&(C.alias=w.data.alias),_.length>0){if(d.push({condition:"not",conditions:[C]}),g.add(b),_.length>1)return{conditions:d,nextNodeIds:_.map(R=>R.target),visitedIds:g};b=_[0].target}else{if(d.push(C),g.add(b),k.length>1)return{conditions:d,nextNodeIds:k.map(R=>R.target),visitedIds:g};b=k[0].target}}return{conditions:d,nextNodeIds:b?[b]:[],visitedIds:g}}buildTrigger(a){const c={...a.data};return Object.fromEntries(Object.entries(c).filter(([,d])=>d!==void 0&&d!==""&&d!==null))}findOrConditionSources(a,c,d,g){const b=a.edges.filter(w=>w.target===c&&w.sourceHandle===d&&!this.backEdgeIds.has(w.id)).map(w=>this.getNode(a,w.source)).filter(w=>(w==null?void 0:w.type)==="condition"&&!g.has(w.id));return b.length>1?b:[]}buildSequenceFromNode(a,c,d){if(d.has(c))return[];const g=this.getNode(a,c);if(!g)return[];const b=[],w=this.findOrConditionSources(a,c,"true",d),E=this.findOrConditionSources(a,c,"false",d);if(w.length>1){const _=w.map(M=>this.buildCondition(M));for(const M of w)d.add(M.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(a,c,new Set):this.buildSequenceFromNode(a,c,new Set(d));let R;if(g.type!=="condition"){const M=this.buildNodeAction(g);R=M?[M,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:_}],then:R,else:[]}),b}if(E.length>1){const _=E.map(M=>this.buildCondition(M));for(const M of E)d.add(M.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(a,c,new Set):this.buildSequenceFromNode(a,c,new Set(d));let R;if(g.type!=="condition"){const M=this.buildNodeAction(g);R=M?[M,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:_}],then:[],else:R}),b}const S=this.repeatPatterns.get(c);if(S){const _=this.buildRepeatBlock(a,S,d);if(_){if(b.push(_),S.exitNodeId){const C=this.buildSequenceFromNode(a,S.exitNodeId,new Set(d));b.push(...C)}return b}}d.add(c);const k=this.getOutgoingEdges(a,c).filter(_=>!this.backEdgeIds.has(_.id));if(g.type==="condition"){const _=[];let C=g,R=[],M=[];for(M=this.getOutgoingEdges(a,g.id).filter(P=>P.sourceHandle==="false"&&!this.backEdgeIds.has(P.id)).map(P=>P.target);(C==null?void 0:C.type)==="condition";){_.push(this.buildCondition(C));const P=this.getOutgoingEdges(a,C.id).filter(re=>re.sourceHandle==="true"&&!this.backEdgeIds.has(re.id));if(P.length===0)break;if(P.length>1){R=P.map(re=>re.target);break}const H=P[0],Q=this.getNode(a,H.target);if((Q==null?void 0:Q.type)==="condition"&&!d.has(Q.id)&&!this.repeatPatterns.has(Q.id)&&!this.repeatInternalNodeIds.has(Q.id)){const re=this.getOutgoingEdges(a,Q.id).filter(ae=>ae.sourceHandle==="false"&&!this.backEdgeIds.has(ae.id));if(re.length===0||re.length===1&&M.includes(re[0].target))C=Q,d.add(C.id);else{R=[H.target];break}}else{R=[H.target];break}}const B={alias:g.data.alias,if:_,then:[],else:[]},F=[...R,...M],$=R.length>0&&M.length>0?this.findConvergencePoint(a,F):null;if($){if(R.length>0){const H=R.flatMap(Q=>this.buildSequenceUntilNode(a,Q,$,new Set(d)));B.then=H}if(M.length>0){const H=M.flatMap(Q=>this.buildSequenceUntilNode(a,Q,$,new Set(d)));B.else=H}b.push(B);const P=this.buildSequenceFromNode(a,$,new Set(d));b.push(...P)}else{if(R.length>0){const P=R.flatMap(H=>this.buildSequenceFromNode(a,H,new Set(d)));B.then=P}if(M.length>0){const P=M.flatMap(H=>this.buildSequenceFromNode(a,H,new Set(d)));B.else=P}b.push(B)}}else{const _=this.buildNodeAction(g);if(_&&b.push(_),k.length===1){const C=this.buildSequenceFromNode(a,k[0].target,new Set(d));b.push(...C)}else if(k.length>1){const C=this.findConvergencePoint(a,k.map(R=>R.target));if(C){const M=k.map(B=>this.buildSequenceUntilNode(a,B.target,C,new Set(d))).filter(B=>B.length>0);if(M.length>0){const B=M.map(F=>F.length===1?F[0]:F);b.push({parallel:B})}const D=this.buildSequenceFromNode(a,C,new Set(d));b.push(...D)}else{const M=k.map(D=>this.buildSequenceFromNode(a,D.target,new Set(d))).filter(D=>D.length>0);if(M.length>0){const D=M.map(B=>B.length===1?B[0]:B);b.push({parallel:D})}}}}return b}findConvergencePoint(a,c){if(c.length<2)return null;const d=c.map(S=>{const k=new Set,_=[S];for(;_.length>0;){const C=_.shift();if(k.has(C))continue;k.add(C);const R=this.getOutgoingEdges(a,C);for(const M of R)_.push(M.target)}return k}),b=[...d[0]].filter(S=>d.every(k=>k.has(S)));if(b.length===0)return null;let w=null,E=Number.POSITIVE_INFINITY;for(const S of b){const k=c.map(C=>this.getShortestDistance(a,C,S)),_=Math.max(...k);_0;){const{nodeId:w,distance:E}=b.shift();if(g.has(w))continue;g.add(w);const S=this.getOutgoingEdges(a,w);for(const k of S){if(k.target===d)return E+1;g.has(k.target)||b.push({nodeId:k.target,distance:E+1})}}return Number.POSITIVE_INFINITY}buildSequenceUntilNode(a,c,d,g){if(c===d)return[];if(g.has(c))return[];g.add(c);const b=this.getNode(a,c);if(!b)return[];const w=[],E=this.buildNodeAction(b);E&&w.push(E);const S=this.getOutgoingEdges(a,c).filter(k=>!this.backEdgeIds.has(k.id));if(b.type==="condition"){const k=E,_=S.filter(R=>R.sourceHandle==="true"),C=S.filter(R=>R.sourceHandle==="false");if(_.length>0){const R=_.flatMap(M=>this.buildSequenceUntilNode(a,M.target,d,new Set(g)));k.then=R}if(C.length>0){const R=C.flatMap(M=>this.buildSequenceUntilNode(a,M.target,d,new Set(g)));k.else=R}}else if(S.length===1){if(S[0].target!==d){const k=this.buildSequenceUntilNode(a,S[0].target,d,new Set(g));w.push(...k)}}else if(S.length>1){const _=S.map(C=>this.buildSequenceUntilNode(a,C.target,d,new Set(g))).filter(C=>C.length>0);if(_.length>0){const C=_.map(R=>R.length===1?R[0]:R);w.push({parallel:C})}}return w}buildNodeAction(a){switch(a.type){case"trigger":return null;case"condition":return this.buildConditionChoose(a);case"action":return this.buildActionCall(a);case"delay":return this.buildDelay(a);case"wait":return this.buildWait(a);case"set_variables":return this.buildSetVariables(a);default:return null}}buildConditionChoose(a){const c=this.buildCondition(a);return{alias:a.data.alias,if:[c],then:[],else:[]}}mapSingleCondition(a){const{condition:c,conditions:d,alias:g,template:b,...w}=a,E={condition:c,...w};return c==="template"&&!w.value_template&&b&&(E.value_template=b),Array.isArray(d)&&d.length>0&&(E.conditions=d.map(S=>this.mapSingleCondition(S)).filter(S=>S&&(!Array.isArray(S.conditions)||S.conditions.length>0))),Object.fromEntries(Object.entries(E).filter(([,S])=>S!==void 0&&S!==""))}buildCondition(a){function c(d){if(!d||typeof d!="object")return d;const{condition:g,conditions:b,alias:w,template:E,...S}=d,k={condition:g,...S};return g==="template"&&!S.value_template&&E&&(k.value_template=E),Array.isArray(b)&&b.length>0&&(k.conditions=b.map(c).filter(_=>_&&(!Array.isArray(_.conditions)||_.conditions.length>0))),Object.fromEntries(Object.entries(k).filter(([,_])=>_!==void 0&&_!==""))}return c(a.data)}buildActionCall(a){if(OMe(a.data.data)){const D=a.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};a.data.alias&&(B.alias=a.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const F=["type","device_id","domain","entity_id","subtype"];for(const[$,P]of Object.entries(D))!F.includes($)&&P!==void 0&&(B[$]=P);return a.data.enabled===!1&&(B.enabled=!1),B}if(a.data.repeat){const D=a.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return a.data.alias&&(B.alias=a.data.alias),a.data.enabled===!1&&(B.enabled=!1),B}if(typeof a.data.event=="string"&&a.data.event.trim()!==""){const D={event:a.data.event};return a.data.alias&&(D.alias=a.data.alias),a.data.event_data&&Object.keys(a.data.event_data).length>0&&(D.event_data=a.data.event_data),a.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:k,enabled:_,repeat:C,...R}=a.data,M={...R,alias:c,service:d};return g&&(M.id=g),b&&(M.target=b),w&&(M.data=w),E&&(M.data_template=E),S&&(M.response_variable=S),k&&(M.continue_on_error=k),_===!1&&(M.enabled=!1),M}buildDelay(a){const{alias:c,delay:d,id:g,...b}=a.data,w={...b,alias:c,delay:d};return g&&(w.id=g),w}buildWait(a){const{alias:c,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=a.data,k={...S,alias:c};return d&&(k.id=d),g?k.wait_template=g:b&&(k.wait_for_trigger=b.map(_=>{const C={..._};return Object.fromEntries(Object.entries(C).filter(([,R])=>R!==void 0&&R!==""&&R!==null))})),w&&(k.timeout=w),E!==void 0&&(k.continue_on_timeout=E),k}buildSetVariables(a){const{alias:c,id:d,variables:g,...b}=a.data,w={...b,variables:g};return c&&(w.alias=c),d&&(w.id=d),w}}class V7t extends eVt{constructor(){super(...arguments);Xf(this,"name","state-machine");Xf(this,"description","Generates state machine YAML for complex flows with cycles or cross-links")}canHandle(a){return!0}generate(a,c){var C,R,M,D;const d=[],g=this.buildTriggerRouting(a);if(g.size===0){d.push("No action nodes found after triggers");const B=this.extractTriggers(a);return B.length>0?{automation:{alias:a.name,description:a.description||"",triggers:B,actions:[],mode:((C=a.metadata)==null?void 0:C.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:a.name,description:a.description||"",sequence:[],mode:((R=a.metadata)==null?void 0:R.mode)??"single"},warnings:d,strategy:this.name}}const b=a.nodes.filter(B=>B.type!=="trigger").map(B=>this.generateNodeBlock(a,B)),E=[...this.generateParallelEntryBlocks(a,g),...b];if(c.hasCycles){const B=this.detectPotentialInfiniteLoop(a,c);B&&d.push(B)}const S=this.extractTriggers(a),_=[{variables:{current_node:this.generateEntryNodeExpression(g),flow_context:{}}},{alias:"State Machine Loop",repeat:{until:'{{ current_node == "END" }}',sequence:[{choose:E,default:[{service:"system_log.write",data:{message:'C.A.F.E.: Unknown state "{{ current_node }}", ending flow',level:"warning"}},{variables:{current_node:"END"}}]}]}}];return S.length>0?{automation:{alias:a.name,description:a.description||"",triggers:S,actions:_,mode:((M=a.metadata)==null?void 0:M.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:a.name,description:a.description||"",sequence:_,mode:((D=a.metadata)==null?void 0:D.mode)??"single"},warnings:d,strategy:this.name}}buildTriggerRouting(a){const c=new Map;return a.nodes.filter(g=>g.type==="trigger").forEach((g,b)=>{const w=this.getOutgoingEdges(a,g.id);w.length>0&&c.set(b,w.map(E=>E.target))}),c}getEffectiveEntryPoint(a,c){return c.length===1?c[0]:`__parallel_trigger_${a}`}generateEntryNodeExpression(a){const c=new Map;for(const[w,E]of a)c.set(w,this.getEffectiveEntryPoint(w,E));const d=new Set(c.values());if(d.size===1)return[...d][0];const g=[...c.entries()].sort((w,E)=>w[0]-E[0]),b=[];return g.forEach(([w,E],S)=>{S===0?b.push(`{% if trigger.idx == "${w}" %}${E}`):S===g.length-1?b.push(`{% else %}${E}{% endif %}`):b.push(`{% elif trigger.idx == "${w}" %}${E}`)}),g.length===1?g[0][1]:b.join("")}generateParallelEntryBlocks(a,c){const d=[];for(const[g,b]of c){if(b.length<=1)continue;const w=`__parallel_trigger_${g}`,E=b.map(S=>{const k=a.nodes.find(_=>_.id===S);return k?k.type==="action"?this.buildActionCall(k):{service:"system_log.write",data:{message:`Node: ${S}`}}:{service:"system_log.write",data:{message:`Unknown node: ${S}`}}});d.push({conditions:[{condition:"template",value_template:`{{ current_node == "${w}" }}`}],sequence:[{parallel:E},{variables:{current_node:"END"}}]})}return d}extractTriggers(a){return a.nodes.filter(c=>c.type==="trigger").map(c=>{const d={...c.data};return Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0&&g!==""&&g!==null))})}generateNodeBlock(a,c){const d=this.getOutgoingEdges(a,c.id);switch(c.type){case"condition":return this.generateConditionBlock(c,d);case"action":return this.generateActionBlock(c,d);case"delay":return this.generateDelayBlock(c,d);case"wait":return this.generateWaitBlock(c,d);case"set_variables":return this.generateSetVariablesBlock(c,d);default:return this.generatePassthroughBlock(c,d)}}generateActionBlock(a,c){var E;const d=a.id,g=this.buildActionCall(a),b=((E=c[0])==null?void 0:E.target)??"END",w=b==="END"?"END":b;return{conditions:[{condition:"template",value_template:`{{ current_node == "${d}" }}`}],sequence:[g,{variables:{current_node:w}}]}}buildActionCall(a){if(OMe(a.data.data)){const D=a.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};a.data.alias&&(B.alias=a.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const F=["type","device_id","domain","entity_id","subtype"];for(const[$,P]of Object.entries(D))!F.includes($)&&P!==void 0&&(B[$]=P);return a.data.enabled===!1&&(B.enabled=!1),B}if(a.data.repeat){const D=a.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return a.data.alias&&(B.alias=a.data.alias),a.data.enabled===!1&&(B.enabled=!1),B}if(typeof a.data.event=="string"&&a.data.event.trim()!==""){const D={event:a.data.event};return a.data.alias&&(D.alias=a.data.alias),a.data.event_data&&Object.keys(a.data.event_data).length>0&&(D.event_data=a.data.event_data),a.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:k,enabled:_,repeat:C,...R}=a.data,M={...R,alias:c,service:d};return g&&(M.id=g),b&&(M.target=b),w&&(M.data=w),E&&(M.data_template=E),S&&(M.response_variable=S),k&&(M.continue_on_error=k),_===!1&&(M.enabled=!1),M}generateConditionBlock(a,c){const d=c.find(R=>R.sourceHandle==="true"),g=c.find(R=>R.sourceHandle==="false"),b=(d==null?void 0:d.target)??"END",w=(g==null?void 0:g.target)??"END",E=b==="END"?"END":b,S=w==="END"?"END":w,k=a.id;if(this.needsNativeConditionCheck(a)){const R=this.buildNativeCondition(a);return{conditions:[{condition:"template",value_template:`{{ current_node == "${k}" }}`}],sequence:[{alias:a.data.alias,if:[R],then:[{variables:{current_node:E}}],else:[{variables:{current_node:S}}]}]}}const C=this.buildConditionTemplate(a);return{conditions:[{condition:"template",value_template:`{{ current_node == "${k}" }}`}],sequence:[{alias:a.data.alias,variables:{current_node:`{% if ${C} %}${E}{% else %}${S}{% endif %}`}}]}}needsNativeConditionCheck(a){const c=a.data;return c.condition==="template"&&(c.value_template||"").includes("{%")?!0:(c.condition==="and"||c.condition==="or"||c.condition==="not")&&c.conditions?c.conditions.some(d=>d.condition==="template"?(d.value_template||"").includes("{%"):!1):!1}buildNativeCondition(a){const c=a.data,d={condition:c.condition};return c.entity_id&&(d.entity_id=c.entity_id),c.state!==void 0&&(d.state=c.state),c.above!==void 0&&(d.above=c.above),c.below!==void 0&&(d.below=c.below),c.attribute&&(d.attribute=c.attribute),c.value_template&&(d.value_template=c.value_template),c.after&&(d.after=c.after),c.before&&(d.before=c.before),c.after_offset&&(d.after_offset=c.after_offset),c.before_offset&&(d.before_offset=c.before_offset),c.zone&&(d.zone=c.zone),c.weekday&&(d.weekday=c.weekday),c.id&&(d.id=c.id),c.conditions&&c.conditions.length>0&&(d.conditions=c.conditions.map(g=>{const b={condition:g.condition};return g.entity_id&&(b.entity_id=g.entity_id),g.state!==void 0&&(b.state=g.state),g.above!==void 0&&(b.above=g.above),g.below!==void 0&&(b.below=g.below),g.attribute&&(b.attribute=g.attribute),g.value_template&&(b.value_template=g.value_template),g.template&&(b.value_template=g.template),g.after&&(b.after=g.after),g.before&&(b.before=g.before),g.after_offset&&(b.after_offset=g.after_offset),g.before_offset&&(b.before_offset=g.before_offset),g.zone&&(b.zone=g.zone),g.weekday&&(b.weekday=g.weekday),g.id&&(b.id=g.id),Object.fromEntries(Object.entries(b).filter(([,w])=>w!==void 0))})),Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0))}generateDelayBlock(a,c){var C;const d=((C=c[0])==null?void 0:C.target)??"END",g=d==="END"?"END":d,b=a.id,{alias:w,delay:E,id:S,...k}=a.data,_={...k,alias:w,delay:E};return S&&(_.id=S),{conditions:[{condition:"template",value_template:`{{ current_node == "${b}" }}`}],sequence:[_,{variables:{current_node:g}}]}}generateWaitBlock(a,c){var D;const d=((D=c[0])==null?void 0:D.target)??"END",g=d==="END"?"END":d,b=a.id,{alias:w,id:E,wait_template:S,wait_for_trigger:k,timeout:_,continue_on_timeout:C,...R}=a.data,M={...R,alias:w};return E&&(M.id=E),S?M.wait_template=S:k&&(M.wait_for_trigger=k.map(B=>{const{alias:F,...$}=B,P={...$};return Object.fromEntries(Object.entries(P).filter(([,H])=>H!==void 0&&H!==""&&H!==null))})),_&&(M.timeout=_),C!==void 0&&(M.continue_on_timeout=C),{conditions:[{condition:"template",value_template:`{{ current_node == "${b}" }}`}],sequence:[M,{variables:{current_node:g}}]}}generateSetVariablesBlock(a,c){var C;const d=((C=c[0])==null?void 0:C.target)??"END",g=d==="END"?"END":d,b=a.id,{alias:w,id:E,variables:S,...k}=a.data,_={...k,variables:S};return w&&(_.alias=w),E&&(_.id=E),{conditions:[{condition:"template",value_template:`{{ current_node == "${b}" }}`}],sequence:[_,{variables:{current_node:g}}]}}generatePassthroughBlock(a,c){var w;const d=((w=c[0])==null?void 0:w.target)??"END",g=d==="END"?"END":d;return{conditions:[{condition:"template",value_template:`{{ current_node == "${a.id}" }}`}],sequence:[{variables:{current_node:g}}]}}buildConditionTemplate(a){const c=a.data;switch(c.condition){case"state":if(c.attribute){if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`state_attr('${c.entity_id}', '${c.attribute}') in [${d}]`}return`state_attr('${c.entity_id}', '${c.attribute}') == '${c.state}'`}else{if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`states('${c.entity_id}') in [${d}]`}return`is_state('${c.entity_id}', '${c.state}')`}case"numeric_state":return this.buildNumericCondition(c);case"template":{let d=c.value_template||"true";return d.startsWith("{{")&&d.endsWith("}}")&&(d=d.slice(2,-2).trim()),d}case"time":return this.buildTimeCondition(c);case"sun":return this.buildSunCondition(c);case"zone":return`is_state('${c.entity_id}', '${c.zone}')`;case"and":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";case"or":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" or ")})`:"false";case"not":return c.conditions&&c.conditions.length>0?`not (${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";default:return"true"}}buildNumericCondition(a){const c=[],d=a.value_template?`(${a.value_template})`:a.attribute?`state_attr('${a.entity_id}', '${a.attribute}') | float`:`states('${a.entity_id}') | float`;return a.above!==void 0&&c.push(`${d} > ${a.above}`),a.below!==void 0&&c.push(`${d} < ${a.below}`),c.length>0?c.join(" and "):"true"}buildTimeCondition(a){const c=[];if(a.after&&c.push(`now().strftime('%H:%M:%S') >= '${a.after}'`),a.before&&c.push(`now().strftime('%H:%M:%S') < '${a.before}'`),a.weekday&&a.weekday.length>0){const d=a.weekday.map(g=>`'${g}'`).join(", ");c.push(`now().strftime('%a').lower()[:3] in [${d}]`)}return c.length>0?c.join(" and "):"true"}buildSunCondition(a){return a.after==="sunrise"||a.before==="sunset"?"is_state('sun.sun', 'above_horizon')":a.after==="sunset"||a.before==="sunrise"?"is_state('sun.sun', 'below_horizon')":"true"}buildNestedCondition(a){const c={id:"nested",type:"condition",position:{x:0,y:0},data:a};return this.buildConditionTemplate(c)}detectPotentialInfiniteLoop(a,c){return c.hasCycles?a.nodes.some(g=>g.type==="condition")?"Note: This flow contains cycles. Ensure your conditions can eventually evaluate to break the cycle, or the automation may run indefinitely.":"Warning: This flow contains cycles but no conditions. This could result in an infinite loop. Consider adding a condition to break the cycle.":null}}class x5{constructor(){Xf(this,"strategies",[new tKn,new V7t])}validate(i){return tqn(i)}analyzeTopology(i){return YGn(i)}transpile(i,a={}){const c=[],d=this.validate(i);if(!d.success||!d.graph)return{success:!1,errors:d.errors.map(_=>_.message),warnings:c};const g=d.graph,b=this.analyzeTopology(g);let w;if(a.forceStrategy){const _=this.strategies.find(C=>C.name===a.forceStrategy);if(!_)return{success:!1,errors:[`Unknown strategy: ${a.forceStrategy}`],warnings:c};w=_,w.canHandle(b)||c.push(`Strategy "${w.name}" may not be optimal for this flow topology. Recommended: ${b.recommendedStrategy}`)}else{const _=this.strategies.find(C=>C.canHandle(b));_?w=_:w=new V7t}const E=w.generate(g,b);c.push(...E.warnings);const S=E.automation??E.script;let k;if(S&&typeof S=="object"){const _=this.generateCafeMetadata(g,w),C={...S,variables:{...g.userVariables||{},...S.variables||{},_cafe_metadata:_}};k=ise(C,{indent:a.indent??2,lineWidth:a.lineWidth??-1,quotingType:'"',forceQuotes:!1})}else k=ise(S,{indent:a.indent??2,lineWidth:a.lineWidth??-1,quotingType:'"',forceQuotes:!1});return{success:!0,yaml:k,output:E,analysis:b,warnings:c}}toYaml(i,a={}){var d;const c=this.transpile(i,a);if(!c.success)throw new Error(`Transpilation failed: ${(d=c.errors)==null?void 0:d.join(", ")}`);return c.yaml}toNativeYaml(i,a={}){return this.toYaml(i,{...a,forceStrategy:"native"})}toStateMachineYaml(i,a={}){return this.toYaml(i,{...a,forceStrategy:"state-machine"})}fromYaml(i){return new eKn().parse(i)}getStrategies(){return this.strategies.map(i=>({name:i.name,description:i.description}))}addStrategy(i){this.strategies.unshift(i)}generateCafeMetadata(i,a){const c={};for(const d of i.nodes)c[d.id]={x:d.position.x,y:d.position.y};return{version:1,nodes:c,graph_id:i.id,graph_version:i.version,strategy:a.name}}}const mDe=new x5,W7t=n=>{let i;const a=new Set,c=(S,k)=>{const _=typeof S=="function"?S(i):S;if(!Object.is(_,i)){const C=i;i=k??(typeof _!="object"||_===null)?_:Object.assign({},i,_),a.forEach(R=>R(i,C))}},d=()=>i,w={setState:c,getState:d,getInitialState:()=>E,subscribe:S=>(a.add(S),()=>a.delete(S))},E=i=n(c,d,w);return w},nKn=n=>n?W7t(n):W7t,rKn=n=>n;function iKn(n,i=rKn){const a=Hn.useSyncExternalStore(n.subscribe,Hn.useCallback(()=>i(n.getState()),[n,i]),Hn.useCallback(()=>i(n.getInitialState()),[n,i]));return Hn.useDebugValue(a),a}const oKn=n=>{const i=nKn(n),a=c=>iKn(i,c);return Object.assign(a,i),a},sKn=n=>oKn;function aKn(n,i){let a;try{a=n()}catch{return}return{getItem:d=>{var g;const b=E=>E===null?null:JSON.parse(E,void 0),w=(g=a.getItem(d))!=null?g:null;return w instanceof Promise?w.then(b):b(w)},setItem:(d,g)=>a.setItem(d,JSON.stringify(g,void 0)),removeItem:d=>a.removeItem(d)}}const wDe=n=>i=>{try{const a=n(i);return a instanceof Promise?a:{then(c){return wDe(c)(a)},catch(c){return this}}}catch(a){return{then(c){return this},catch(c){return wDe(c)(a)}}}},uKn=(n,i)=>(a,c,d)=>{let g={storage:aKn(()=>localStorage),partialize:D=>D,version:0,merge:(D,B)=>({...B,...D}),...i},b=!1;const w=new Set,E=new Set;let S=g.storage;if(!S)return n((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${g.name}', the given storage is currently unavailable.`),a(...D)},c,d);const k=()=>{const D=g.partialize({...c()});return S.setItem(g.name,{state:D,version:g.version})},_=d.setState;d.setState=(D,B)=>(_(D,B),k());const C=n((...D)=>(a(...D),k()),c,d);d.getInitialState=()=>C;let R;const M=()=>{var D,B;if(!S)return;b=!1,w.forEach($=>{var P;return $((P=c())!=null?P:C)});const F=((B=g.onRehydrateStorage)==null?void 0:B.call(g,(D=c())!=null?D:C))||void 0;return wDe(S.getItem.bind(S))(g.name).then($=>{if($)if(typeof $.version=="number"&&$.version!==g.version){if(g.migrate){const P=g.migrate($.state,$.version);return P instanceof Promise?P.then(H=>[!0,H]):[!0,P]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,$.state];return[!1,void 0]}).then($=>{var P;const[H,Q]=$;if(R=g.merge(Q,(P=c())!=null?P:C),a(R,!0),H)return k()}).then(()=>{F==null||F(R,void 0),R=c(),b=!0,E.forEach($=>$(R))}).catch($=>{F==null||F(void 0,$)})};return d.persist={setOptions:D=>{g={...g,...D},D.storage&&(S=D.storage)},clearStorage:()=>{S==null||S.removeItem(g.name)},getOptions:()=>g,rehydrate:()=>M(),hasHydrated:()=>b,onHydrate:D=>(w.add(D),()=>{w.delete(D)}),onFinishHydration:D=>(E.add(D),()=>{E.delete(D)})},g.skipHydration||M(),R||C},cKn=uKn;class lKn{constructor(i,a){Xf(this,"hass",null);Xf(this,"baseUrl");Xf(this,"token");this.hass=i||null,a!=null&&a.url&&(a!=null&&a.token)?(this.baseUrl=a.url,this.token=a.token):typeof window<"u"&&(this.baseUrl=window.location.origin)}updateHass(i,a){this.hass=i,a!=null&&a.url&&(a!=null&&a.token)?(this.baseUrl=a.url,this.token=a.token):typeof window<"u"&&!this.baseUrl&&(this.baseUrl=window.location.origin)}isConnected(){return this.hass?!!(this.hass.connection||this.hass.callApi||this.hass.callService||this.hass.states&&Object.keys(this.hass.states).length>0):!1}getStates(){return this.hass?this.hass.states:null}getState(i){const a=this.getStates();return(a==null?void 0:a[i])||null}getAutomations(){const i=this.getStates();return i?Object.values(i).filter(a=>a.entity_id.startsWith("automation.")):[]}normalizeTags(i){return Array.isArray(i)?i.filter(a=>typeof a=="string"):typeof i=="string"&&i.trim()?[i]:[]}async sendMessage(i){var a;if(!((a=this.hass)!=null&&a.connection))throw new Error("No Home Assistant connection available");return await this.hass.connection.sendMessagePromise(i)}async callService(i,a,c,d){var g,b;if((g=this.hass)!=null&&g.callService){const w={...c,...d&&{target:d}};return await this.hass.callService(i,a,w)}if((b=this.hass)!=null&&b.connection)return await this.sendMessage({type:"call_service",domain:i,service:a,service_data:c,target:d});throw new Error("No service calling method available")}async executeAction(i){if(!i.service)throw new Error("Action must have a service property");const[a,c]=i.service.split(".");if(!a||!c)throw new Error(`Invalid service format: ${i.service}`);return await this.callService(a,c,i.data,i.target)}async callAPI(i,a,c){var d;if((d=this.hass)!=null&&d.callApi)return await this.hass.callApi(i,a,c);throw new Error("REST API calls not supported in standalone mode")}async fetchRestAPI(i,a="GET",c){var b;if((b=this.hass)!=null&&b.callApi)return await this.hass.callApi(a,i,c);if(!this.baseUrl||!this.token)throw console.error("C.A.F.E.: No authentication configured",{baseUrl:this.baseUrl,hasToken:!!this.token}),new Error("No authentication configured for REST API");const d=`${this.baseUrl}/api/${i}`,g=await fetch(d,{method:a,headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:c?JSON.stringify(c):void 0});if(!g.ok){const w=await g.text();throw console.error("C.A.F.E.: REST API error response:",w),new Error(`REST API error: ${g.status} ${g.statusText}`)}return await g.json()}async getAutomationConfigs(){var i;try{if((i=this.hass)!=null&&i.connection)try{const c=await this.sendMessage({type:"config/automation/list"});if(Array.isArray(c))return c}catch(c){console.warn("WebSocket automation list failed, trying alternative:",c)}return this.getAutomations().map(c=>({id:c.entity_id.replace("automation.",""),alias:typeof c.attributes.friendly_name=="string"?c.attributes.friendly_name:c.entity_id,description:typeof c.attributes.description=="string"?c.attributes.description:""}))}catch(a){return console.error("Failed to get automation configs:",a),[]}}async getAutomationConfig(i){var a;try{if((a=this.hass)!=null&&a.connection)try{const d=await this.sendMessage({type:"config/automation/get",automation_id:i});if(d)return d}catch(d){console.warn("WebSocket automation get failed:",d)}if(!i.startsWith("automation.")&&!Number.isNaN(Number(i)))try{const d=await this.fetchRestAPI(`config/automation/config/${i}`);if(d)return d}catch(d){console.warn(`REST API failed for automation ${i}:`,d)}return(await this.getAutomationConfigs()).find(d=>d.id===i||d.alias===i||`automation.${d.alias}`===i)||null}catch(c){return console.error("C.A.F.E.: Failed to get automation config:",c),null}}async getAutomationConfigFromTrace(i){try{const a=await this.getAutomationTraces(i);if(!a||a.length===0)return null;const c=await this.getAutomationTraceDetails(i,a[0].run_id);return(c==null?void 0:c.config)||null}catch(a){return console.error("C.A.F.E.: Failed to get automation config from trace:",a),null}}async getAutomationConfigWithFallback(i,a){try{return await this.getAutomationConfig(i)}catch(c){return console.error("C.A.F.E.: Failed to get automation config with fallback:",c),null}}async createAutomation(i){var a,c;try{const d=i.id||Date.now().toString(),g={id:d,alias:i.alias||`C.A.F.E. Automation ${d}`,description:i.description||"",triggers:i.trigger||i.triggers||[],conditions:i.condition||i.conditions||[],actions:i.action||i.actions||[],mode:i.mode||"single",variables:i.variables||{}};try{await this.fetchRestAPI(`config/automation/config/${d}`,"POST",g)}catch(b){throw console.error("C.A.F.E.: Failed to save automation config:",b),new Error(`Failed to save automation config: ${b instanceof Error?b.message:"Unknown error"}`)}if((a=this.hass)!=null&&a.callService)return await this.hass.callService("automation","reload",{}),d;if((c=this.hass)!=null&&c.connection)return await this.sendMessage({type:"call_service",domain:"automation",service:"reload"}),d;throw new Error("No working Home Assistant connection method found")}catch(d){throw console.error("C.A.F.E.: Failed to create automation:",d),new Error(`Failed to create automation: ${d instanceof Error?d.message:"Unknown error"}`)}}async updateAutomation(i,a){try{console.log("C.A.F.E.: Updating automation with ID:",i),console.log("C.A.F.E.: Update config:",a);const c={id:i,alias:a.alias||`C.A.F.E. Automation ${i}`,description:a.description||"",triggers:a.trigger||a.triggers||[],conditions:a.condition||a.conditions||[],actions:a.action||a.actions||[],mode:a.mode||"single",variables:a.variables||{}};console.log("C.A.F.E.: Final update payload:",c),await this.fetchRestAPI(`config/automation/config/${i}`,"POST",c),console.log("C.A.F.E.: Successfully updated automation:",i)}catch(c){throw console.error("C.A.F.E.: Failed to update automation:",c),new Error(`Failed to update automation: ${c instanceof Error?c.message:"Unknown error"}`)}}async deleteAutomation(i){try{await this.fetchRestAPI(`config/automation/config/${i}`,"DELETE")}catch(a){throw console.error("C.A.F.E.: Failed to delete automation:",a),new Error(`Failed to delete automation: ${a instanceof Error?a.message:"Unknown error"}`)}}async automationExistsByAlias(i){try{return(await this.getAutomationConfigs()).some(d=>d.alias===i)}catch(a){return console.error("C.A.F.E.: Failed to check automation existence:",a),!1}}async getUniqueAutomationAlias(i){try{let a=i,c=1;for(;await this.automationExistsByAlias(a);)a=`${i} (${c})`,c++;return a}catch(a){return console.error("C.A.F.E.: Failed to get unique automation alias:",a),i}}async triggerAutomation(i,a=!0){await this.callService("automation","trigger",{entity_id:i,skip_condition:a})}async setAutomationState(i,a){const c=a?"turn_on":"turn_off";await this.callService("automation",c,{entity_id:i})}async getAreas(){try{return await this.sendMessage({type:"config/area_registry/list"})}catch(i){return console.error("Failed to get areas:",i),[]}}async getDevices(){try{return await this.sendMessage({type:"config/device_registry/list"})}catch(i){return console.error("Failed to get devices:",i),[]}}async getEntities(){try{return await this.sendMessage({type:"config/entity_registry/list"})}catch(i){return console.error("Failed to get entities:",i),[]}}async getZones(){try{const i=this.getStates();return i?Object.values(i).filter(a=>a.entity_id.startsWith("zone.")).map(a=>{const c=a.entity_id.replace("zone.","");return{entity_id:a.entity_id,zone_id:c,name:typeof a.attributes.friendly_name=="string"?a.attributes.friendly_name:c,latitude:typeof a.attributes.latitude=="number"?a.attributes.latitude:void 0,longitude:typeof a.attributes.longitude=="number"?a.attributes.longitude:void 0,radius:typeof a.attributes.radius=="number"?a.attributes.radius:void 0,passive:typeof a.attributes.passive=="boolean"?a.attributes.passive:void 0}}):[]}catch(i){return console.error("Failed to get zones:",i),[]}}async getAutomationCatalog(){try{const[i]=await Promise.all([this.getEntities()]),a=Array.isArray(i)?i:[],c=new Map;for(const d of a)d.entity_id&&d.area_id&&c.set(d.entity_id,d.area_id);return this.getAutomations().map(d=>{const g=typeof d.attributes.friendly_name=="string"?d.attributes.friendly_name:d.entity_id,b=typeof d.attributes.id=="string"||typeof d.attributes.id=="number"?String(d.attributes.id):d.entity_id.replace("automation.","");return{entity_id:d.entity_id,automation_id:b,friendly_name:g,enabled:d.state==="on",last_triggered:typeof d.attributes.last_triggered=="string"?d.attributes.last_triggered:void 0,description:typeof d.attributes.description=="string"?d.attributes.description:"",mode:typeof d.attributes.mode=="string"?d.attributes.mode:void 0,area_id:c.get(d.entity_id),tags:this.normalizeTags(d.attributes.tags)}})}catch(i){return console.error("Failed to build automation catalog:",i),[]}}async getAutomationConfigsBatch(i,a=4){const c=Array.from(new Set(i.filter(Boolean))),d={};if(c.length===0)return d;const g=[...c],b=Math.max(1,Math.min(a,g.length)),w=Array.from({length:b}).map(async()=>{for(;g.length>0;){const E=g.shift();if(E)try{d[E]=await this.getAutomationConfigWithFallback(E)}catch(S){console.warn(`Failed to fetch automation config for ${E}:`,S),d[E]=null}}});return await Promise.all(w),d}async getServices(){try{return await this.sendMessage({type:"get_services"})}catch(i){return console.error("Failed to get services:",i),{}}}async validateAutomationConfig(i){try{return await this.sendMessage({type:"validate_config",...i})}catch(a){return console.error("Failed to validate config:",a),{valid:!1,error:"Validation failed"}}}async getAutomationTraces(i){try{const a=await this.sendMessage({type:"trace/list",domain:"automation",item_id:i});return Array.isArray(a)?a:[]}catch(a){return console.error("Failed to get automation traces:",a),[]}}async getAutomationTraceDetails(i,a){try{return await this.sendMessage({type:"trace/get",domain:"automation",item_id:i,run_id:a})||null}catch(c){return console.error("Failed to get automation trace details:",c),null}}}let wM=null;function Lv(n,i){return wM?n&&(!wM.hass||!wM.isConnected()||n.states&&Object.keys(n.states).length>0)&&wM.updateHass(n??null,i):wM=new lKn(n,i),wM}function tVt(n){var i,a,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(i=0;i{const i=hKn(n),{conflictingClassGroups:a,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:b=>{const w=b.split(r5e);return w[0]===""&&w.length!==1&&w.shift(),rVt(w,i)||fKn(b)},getConflictingClassGroupIds:(b,w)=>{const E=a[b]||[];return w&&c[b]?[...E,...c[b]]:E}}},rVt=(n,i)=>{var b;if(n.length===0)return i.classGroupId;const a=n[0],c=i.nextPart.get(a),d=c?rVt(n.slice(1),c):void 0;if(d)return d;if(i.validators.length===0)return;const g=n.join(r5e);return(b=i.validators.find(({validator:w})=>w(g)))==null?void 0:b.classGroupId},K7t=/^\[(.+)\]$/,fKn=n=>{if(K7t.test(n)){const i=K7t.exec(n)[1],a=i==null?void 0:i.substring(0,i.indexOf(":"));if(a)return"arbitrary.."+a}},hKn=n=>{const{theme:i,prefix:a}=n,c={nextPart:new Map,validators:[]};return gKn(Object.entries(n.classGroups),a).forEach(([g,b])=>{yDe(b,c,g,i)}),c},yDe=(n,i,a,c)=>{n.forEach(d=>{if(typeof d=="string"){const g=d===""?i:Y7t(i,d);g.classGroupId=a;return}if(typeof d=="function"){if(pKn(d)){yDe(d(c),i,a,c);return}i.validators.push({validator:d,classGroupId:a});return}Object.entries(d).forEach(([g,b])=>{yDe(b,Y7t(i,g),a,c)})})},Y7t=(n,i)=>{let a=n;return i.split(r5e).forEach(c=>{a.nextPart.has(c)||a.nextPart.set(c,{nextPart:new Map,validators:[]}),a=a.nextPart.get(c)}),a},pKn=n=>n.isThemeGetter,gKn=(n,i)=>i?n.map(([a,c])=>{const d=c.map(g=>typeof g=="string"?i+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(([b,w])=>[i+b,w])):g);return[a,d]}):n,bKn=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,a=new Map,c=new Map;const d=(g,b)=>{a.set(g,b),i++,i>n&&(i=0,c=a,a=new Map)};return{get(g){let b=a.get(g);if(b!==void 0)return b;if((b=c.get(g))!==void 0)return d(g,b),b},set(g,b){a.has(g)?a.set(g,b):d(g,b)}}},iVt="!",mKn=n=>{const{separator:i,experimentalParseClassName:a}=n,c=i.length===1,d=i[0],g=i.length,b=w=>{const E=[];let S=0,k=0,_;for(let B=0;Bk?_-k:void 0;return{modifiers:E,hasImportantModifier:R,baseClassName:M,maybePostfixModifierPosition:D}};return a?w=>a({className:w,parseClassName:b}):b},wKn=n=>{if(n.length<=1)return n;const i=[];let a=[];return n.forEach(c=>{c[0]==="["?(i.push(...a.sort(),c),a=[]):a.push(c)}),i.push(...a.sort()),i},yKn=n=>({cache:bKn(n.cacheSize),parseClassName:mKn(n),...dKn(n)}),vKn=/\s+/,EKn=(n,i)=>{const{parseClassName:a,getClassGroupId:c,getConflictingClassGroupIds:d}=i,g=[],b=n.trim().split(vKn);let w="";for(let E=b.length-1;E>=0;E-=1){const S=b[E],{modifiers:k,hasImportantModifier:_,baseClassName:C,maybePostfixModifierPosition:R}=a(S);let M=!!R,D=c(M?C.substring(0,R):C);if(!D){if(!M){w=S+(w.length>0?" "+w:w);continue}if(D=c(C),!D){w=S+(w.length>0?" "+w:w);continue}M=!1}const B=wKn(k).join(":"),F=_?B+iVt:B,$=F+D;if(g.includes($))continue;g.push($);const P=d(D,M);for(let H=0;H0?" "+w:w)}return w};function SKn(){let n=0,i,a,c="";for(;n{if(typeof n=="string")return n;let i,a="";for(let c=0;c_(k),n());return a=yKn(S),c=a.cache.get,d=a.cache.set,g=w,w(E)}function w(E){const S=c(E);if(S)return S;const k=EKn(E,a);return d(E,k),k}return function(){return g(SKn.apply(null,arguments))}}const uc=n=>{const i=a=>a[n]||[];return i.isThemeGetter=!0,i},sVt=/^\[(?:([a-z-]+):)?(.+)\]$/i,AKn=/^\d+\/\d+$/,_Kn=new Set(["px","full","screen"]),kKn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xKn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,NKn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,CKn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IKn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tA=n=>r5(n)||_Kn.has(n)||AKn.test(n),Ix=n=>U5(n,"length",FKn),r5=n=>!!n&&!Number.isNaN(Number(n)),wOe=n=>U5(n,"number",r5),$U=n=>!!n&&Number.isInteger(Number(n)),RKn=n=>n.endsWith("%")&&r5(n.slice(0,-1)),Ko=n=>sVt.test(n),Rx=n=>kKn.test(n),OKn=new Set(["length","size","percentage"]),DKn=n=>U5(n,OKn,aVt),LKn=n=>U5(n,"position",aVt),MKn=new Set(["image","url"]),PKn=n=>U5(n,MKn,BKn),jKn=n=>U5(n,"",$Kn),BU=()=>!0,U5=(n,i,a)=>{const c=sVt.exec(n);return c?c[1]?typeof i=="string"?c[1]===i:i.has(c[1]):a(c[2]):!1},FKn=n=>xKn.test(n)&&!NKn.test(n),aVt=()=>!1,$Kn=n=>CKn.test(n),BKn=n=>IKn.test(n),UKn=()=>{const n=uc("colors"),i=uc("spacing"),a=uc("blur"),c=uc("brightness"),d=uc("borderColor"),g=uc("borderRadius"),b=uc("borderSpacing"),w=uc("borderWidth"),E=uc("contrast"),S=uc("grayscale"),k=uc("hueRotate"),_=uc("invert"),C=uc("gap"),R=uc("gradientColorStops"),M=uc("gradientColorStopPositions"),D=uc("inset"),B=uc("margin"),F=uc("opacity"),$=uc("padding"),P=uc("saturate"),H=uc("scale"),Q=uc("sepia"),re=uc("skew"),ee=uc("space"),ae=uc("translate"),he=()=>["auto","contain","none"],ve=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",Ko,i],ge=()=>[Ko,i],Y=()=>["",tA,Ix],fe=()=>["auto",r5,Ko],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Se=()=>["solid","dashed","dotted","double","none"],$e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Te=()=>["start","end","center","between","around","evenly","stretch"],ke=()=>["","0",Ko],Je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],bt=()=>[r5,Ko];return{cacheSize:500,separator:":",theme:{colors:[BU],spacing:[tA,Ix],blur:["none","",Rx,Ko],brightness:bt(),borderColor:[n],borderRadius:["none","","full",Rx,Ko],borderSpacing:ge(),borderWidth:Y(),contrast:bt(),grayscale:ke(),hueRotate:bt(),invert:ke(),gap:ge(),gradientColorStops:[n],gradientColorStopPositions:[RKn,Ix],inset:de(),margin:de(),opacity:bt(),padding:ge(),saturate:bt(),scale:bt(),sepia:ke(),skew:bt(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",Ko]}],container:["container"],columns:[{columns:[Rx]}],"break-after":[{"break-after":Je()}],"break-before":[{"break-before":Je()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...De(),Ko]}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$U,Ko]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ko]}],grow:[{grow:ke()}],shrink:[{shrink:ke()}],order:[{order:["first","last","none",$U,Ko]}],"grid-cols":[{"grid-cols":[BU]}],"col-start-end":[{col:["auto",{span:["full",$U,Ko]},Ko]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[BU]}],"row-start-end":[{row:["auto",{span:[$U,Ko]},Ko]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ko]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ko]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...Te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],pe:[{pe:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[B]}],mx:[{mx:[B]}],my:[{my:[B]}],ms:[{ms:[B]}],me:[{me:[B]}],mt:[{mt:[B]}],mr:[{mr:[B]}],mb:[{mb:[B]}],ml:[{ml:[B]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ko,i]}],"min-w":[{"min-w":[Ko,i,"min","max","fit"]}],"max-w":[{"max-w":[Ko,i,"none","full","min","max","fit","prose",{screen:[Rx]},Rx]}],h:[{h:[Ko,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ko,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ko,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ko,i,"auto","min","max","fit"]}],"font-size":[{text:["base",Rx,Ix]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wOe]}],"font-family":[{font:[BU]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ko]}],"line-clamp":[{"line-clamp":["none",r5,wOe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tA,Ko]}],"list-image":[{"list-image":["none",Ko]}],"list-style-type":[{list:["none","disc","decimal",Ko]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tA,Ix]}],"underline-offset":[{"underline-offset":["auto",tA,Ko]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ko]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ko]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),LKn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",DKn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PKn]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[g]}],"rounded-s":[{"rounded-s":[g]}],"rounded-e":[{"rounded-e":[g]}],"rounded-t":[{"rounded-t":[g]}],"rounded-r":[{"rounded-r":[g]}],"rounded-b":[{"rounded-b":[g]}],"rounded-l":[{"rounded-l":[g]}],"rounded-ss":[{"rounded-ss":[g]}],"rounded-se":[{"rounded-se":[g]}],"rounded-ee":[{"rounded-ee":[g]}],"rounded-es":[{"rounded-es":[g]}],"rounded-tl":[{"rounded-tl":[g]}],"rounded-tr":[{"rounded-tr":[g]}],"rounded-br":[{"rounded-br":[g]}],"rounded-bl":[{"rounded-bl":[g]}],"border-w":[{border:[w]}],"border-w-x":[{"border-x":[w]}],"border-w-y":[{"border-y":[w]}],"border-w-s":[{"border-s":[w]}],"border-w-e":[{"border-e":[w]}],"border-w-t":[{"border-t":[w]}],"border-w-r":[{"border-r":[w]}],"border-w-b":[{"border-b":[w]}],"border-w-l":[{"border-l":[w]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...Se(),"hidden"]}],"divide-x":[{"divide-x":[w]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[w]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:Se()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...Se()]}],"outline-offset":[{"outline-offset":[tA,Ko]}],"outline-w":[{outline:[tA,Ix]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[tA,Ix]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Rx,jKn]}],"shadow-color":[{shadow:[BU]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...$e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$e()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[c]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Rx,Ko]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[_]}],saturate:[{saturate:[P]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[_]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[b]}],"border-spacing-x":[{"border-spacing-x":[b]}],"border-spacing-y":[{"border-spacing-y":[b]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ko]}],duration:[{duration:bt()}],ease:[{ease:["linear","in","out","in-out",Ko]}],delay:[{delay:bt()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ko]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[$U,Ko]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ko]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ko]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ko]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[tA,Ix,wOe]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},HKn=TKn(UKn);function kr(...n){return HKn(nVt(n))}function i5e(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const i=Math.random()*16|0;return(n==="x"?i:i&3|8).toString(16)})}let zKn=0;function o5e(n){return`${n}_${Date.now()}_${zKn++}`}class s5e{constructor(i,a,c=1){Xf(this,"dbName");Xf(this,"storeName");Xf(this,"dbVersion");Xf(this,"dbPromise",null);this.dbName=i,this.storeName=a,this.dbVersion=c}async initDB(){return this.dbPromise?this.dbPromise:(this.dbPromise=new Promise((i,a)=>{const c=indexedDB.open(this.dbName,this.dbVersion);c.onerror=d=>{console.error("IndexedDB error:",d),a(new Error("Failed to open IndexedDB database"))},c.onsuccess=d=>{const g=d.target.result;i(g)},c.onupgradeneeded=d=>{const g=d.target.result;g.objectStoreNames.contains(this.storeName)||g.createObjectStore(this.storeName)}}),this.dbPromise)}async getItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readonly").objectStore(this.storeName).get(i);return new Promise((b,w)=>{g.onsuccess=()=>{const E=g.result;b(E??null)},g.onerror=()=>{w(new Error("Failed to get item from IndexedDB"))}})}catch(a){return console.error("IndexedDB getItem error:",a),null}}async setItem(i,a){try{const b=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).put(a,i);return new Promise((w,E)=>{b.onsuccess=()=>w(),b.onerror=()=>E(new Error("Failed to set item in IndexedDB"))})}catch(c){throw console.error("IndexedDB setItem error:",c),c}}async removeItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).delete(i);return new Promise((b,w)=>{g.onsuccess=()=>b(),g.onerror=()=>w(new Error("Failed to remove item from IndexedDB"))})}catch(a){throw console.error("IndexedDB removeItem error:",a),a}}static createJSONStorage(i,a){if(!("indexedDB"in globalThis)){const d=new Map;return{getItem:async g=>{const b=d.get(g)??null;return b?JSON.parse(b):null},setItem:async(g,b)=>{d.set(g,JSON.stringify(b))},removeItem:async g=>{d.delete(g)}}}const c=new s5e(i,a);return{getItem:async d=>{const g=await c.getItem(d);return g?JSON.parse(g):null},setItem:async(d,g)=>{await c.setItem(d,JSON.stringify(g))},removeItem:async d=>{await c.removeItem(d)}}}}const GKn=s5e.createJSONStorage("cafe-flow-storage","flow-store");function qKn(n){if("platform"in n&&!("trigger"in n)){const{platform:i,...a}=n;return{...a,trigger:i}}return n}function yOe(n,i){return n==="trigger"?qKn(i):i}const vDe={mode:"single",initial_state:!0},J7t={flowId:i5e(),flowName:"Untitled Automation",flowDescription:"",flowMetadata:vDe,nodes:[],edges:[],selectedNodeId:null,automationId:null,isSaving:!1,lastSaved:null,hasUnsavedChanges:!1,originalSnapshot:null,isSimulating:!1,activeNodeId:null,executionPath:[],isShowingTrace:!1,traceData:null,traceExecutionPath:[],traceTimestamps:{},simulationSpeed:800,nodeErrors:new Map,clipboard:null,pasteCount:0},VKn=n=>({flowId:n.flowId,flowName:n.flowName,flowDescription:n.flowDescription,flowMetadata:n.flowMetadata,nodes:n.nodes,edges:n.edges,selectedNodeId:n.selectedNodeId,automationId:n.automationId,lastSaved:n.lastSaved,originalSnapshot:n.originalSnapshot}),ds=sKn()(cKn((n,i)=>({...J7t,setNodes:a=>n({nodes:a}),setEdges:a=>n({edges:a}),onNodesChange:a=>n(c=>({nodes:mzt(a,c.nodes),hasUnsavedChanges:!0})),onEdgesChange:a=>n(c=>({edges:wzt(a,c.edges),hasUnsavedChanges:!0})),onConnect:a=>n(c=>({edges:JHt({...a,id:`e-${a.source}-${a.target}-${Date.now()}`,animated:!1},c.edges),hasUnsavedChanges:!0})),addNode:a=>{const c=a.type?{...a,data:yOe(a.type,a.data)}:a;n(d=>({nodes:[...d.nodes,c],hasUnsavedChanges:!0})),i().validateNode(a.id)},updateNodeData:(a,c)=>{n(d=>({nodes:d.nodes.map(g=>g.id===a?{...g,data:{...g.data,...c}}:g),hasUnsavedChanges:!0})),i().validateNode(a)},removeNode:a=>n(c=>({nodes:c.nodes.filter(d=>d.id!==a),edges:c.edges.filter(d=>d.source!==a&&d.target!==a),selectedNodeId:c.selectedNodeId===a?null:c.selectedNodeId,hasUnsavedChanges:!0})),selectNode:a=>n({selectedNodeId:a}),setClipboard:a=>n({clipboard:a}),setPasteCount:a=>n({pasteCount:a}),setFlowName:a=>n({flowName:a,hasUnsavedChanges:!0}),setFlowDescription:a=>n({flowDescription:a,hasUnsavedChanges:!0}),setFlowMetadata:a=>n(c=>({flowMetadata:{...c.flowMetadata,...a},hasUnsavedChanges:!0})),setAutomationId:a=>n({automationId:a}),setSaving:a=>n({isSaving:a}),setSaved:()=>n({lastSaved:new Date,hasUnsavedChanges:!1}),setUnsavedChanges:a=>n({hasUnsavedChanges:a}),hasRealChanges:()=>{const a=i();return a.originalSnapshot?JSON.stringify({flowName:a.flowName,flowDescription:a.flowDescription,flowMetadata:a.flowMetadata,nodes:a.nodes.map(d=>({id:d.id,type:d.type,position:d.position,data:d.data})),edges:a.edges.map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle}))})!==a.originalSnapshot:a.nodes.length>0},saveAutomation:async a=>{var g;const c=i(),d=Lv(a);n({isSaving:!0});try{i().validateAllNodes();const b=i();if(b.nodeErrors.size>0){const D=b.nodeErrors.size;throw new Error(`Cannot save: ${D} node(s) have validation errors. Fix the highlighted nodes before saving.`)}const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(D=>D.type==="trigger"),S=w.nodes.filter(D=>D.type==="action");if(E.length===0)throw new Error("Automation must have at least one trigger node. Please add a trigger from the node palette.");if(S.length===0)throw new Error("Automation must have at least one action node. Please add an action from the node palette.");const k=new x5,_=k.validate(w);if(_.errors.length>0)throw console.error("C.A.F.E.: Validation errors:",_.errors),new Error(`Validation failed: ${_.errors.map(D=>D.message).join(", ")}`);const C=k.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((D,B)=>(D[B.id]={x:B.position.x,y:B.position.y},D),{}),graph_id:w.id,graph_version:1}}},M=await d.createAutomation(R);return n({automationId:M,isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1}),M}catch(b){throw n({isSaving:!1}),b}},updateAutomation:async a=>{var g;const c=i(),d=Lv(a);if(!c.automationId)throw new Error("No automation ID set. Use saveAutomation() for new automations.");console.log("C.A.F.E.: Updating automation with ID from store:",c.automationId),n({isSaving:!0});try{i().validateAllNodes();const b=i();if(b.nodeErrors.size>0){const M=b.nodeErrors.size;throw new Error(`Cannot save: ${M} node(s) have validation errors. Fix the highlighted nodes before saving.`)}const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(M=>M.type==="trigger"),S=w.nodes.filter(M=>M.type==="action");if(E.length===0)throw new Error("Automation must have at least one trigger node. Please add a trigger from the node palette.");if(S.length===0)throw new Error("Automation must have at least one action node. Please add an action from the node palette.");const k=new x5,_=k.validate(w);if(_.errors.length>0)throw new Error(`Validation failed: ${_.errors.map(M=>M.message).join(", ")}`);const C=k.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((M,D)=>(M[D.id]={x:D.position.x,y:D.position.y},M),{}),graph_id:w.id,graph_version:1}}};await d.updateAutomation(c.automationId,R),n({isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1})}catch(b){throw n({isSaving:!1}),b}},startSimulation:()=>n({isSimulating:!0,executionPath:[],activeNodeId:null}),stopSimulation:()=>n({isSimulating:!1,activeNodeId:null}),setActiveNode:a=>n({activeNodeId:a}),addToExecutionPath:a=>n(c=>({executionPath:[...c.executionPath,a]})),clearExecutionPath:()=>n({executionPath:[]}),showTrace:a=>{const c=[],d={};if(a!=null&&a.trace){const g=i(),b={trigger:[],condition:[],action:[],wait:[],delay:[]};for(const E of g.nodes){const S=E.type;b[S]&&b[S].push(E)}for(const E in b)b[E].sort((S,k)=>S.position.y-k.position.y);const w=Object.entries(a.trace).flatMap(([E,S])=>Array.isArray(S)?S.map(k=>({...k,path:E})):[]).sort((E,S)=>new Date(E.timestamp).getTime()-new Date(S.timestamp).getTime());for(const E of w){const S=E.path.split("/"),k=S[0],_=parseInt(S[1],10),C=b[k]||[];if(C[_]){const R=C[_].id;c.includes(R)||(c.push(R),d[R]=E.timestamp)}}}n({isShowingTrace:!0,traceData:a,traceExecutionPath:c,traceTimestamps:d,activeNodeId:null})},hideTrace:()=>n({isShowingTrace:!1,traceData:null,traceExecutionPath:[],traceTimestamps:{},activeNodeId:null}),clearTraceExecutionPath:()=>n({traceExecutionPath:[],traceTimestamps:{}}),setSimulationSpeed:a=>n({simulationSpeed:a}),getExecutionStepNumber:a=>{const c=i();if(c.isSimulating&&c.executionPath.length>0){const d=c.executionPath.indexOf(a);return d>=0?d+1:null}if(c.isShowingTrace&&c.traceExecutionPath.length>0){const d=c.traceExecutionPath.indexOf(a);return d>=0?d+1:null}return null},canDeleteEdge:()=>!0,toFlowGraph:()=>{const a=i(),c=new Set(a.nodes.map(d=>d.id));return{id:a.flowId,name:a.flowName,description:a.flowDescription||void 0,nodes:a.nodes.map(d=>{const g={...d.data};return d.type==="trigger"&&!g.trigger&&(console.warn(`C.A.F.E.: Trigger node ${d.id} missing trigger type, adding default 'state'`),g.trigger="state"),d.type==="action"&&!g.service&&(console.warn(`C.A.F.E.: Action node ${d.id} missing service, adding default 'light.turn_on'`),g.service="light.turn_on"),{id:d.id,type:d.type,position:d.position,data:g}}),edges:a.edges.filter(d=>c.has(d.source)&&c.has(d.target)).map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle,label:typeof d.label=="string"?d.label:void 0})),metadata:a.flowMetadata,version:1}},fromFlowGraph:a=>{const c=a.nodes.map(w=>({id:w.id,type:w.type,position:w.position,data:yOe(w.type,w.data)})),d=a.edges.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,label:w.label})),g={...vDe,...a.metadata},b=JSON.stringify({flowName:a.name,flowDescription:a.description||"",flowMetadata:g,nodes:c.map(w=>({id:w.id,type:w.type,position:w.position,data:w.data})),edges:d.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle}))});n({flowId:a.id,flowName:a.name,flowDescription:a.description||"",flowMetadata:g,nodes:c,edges:d,selectedNodeId:null,automationId:null,hasUnsavedChanges:!1,lastSaved:null,originalSnapshot:b,nodeErrors:new Map}),i().validateAllNodes()},reset:()=>n({...J7t,flowId:i5e(),flowMetadata:{...vDe},originalSnapshot:null,nodeErrors:new Map}),validateNode:a=>{const d=i().nodes.find(b=>b.id===a);if(!d||!d.type)return;const g=H9t(d.type,d.data);n(b=>{const w=new Map(b.nodeErrors);return g.length>0?w.set(a,g):w.delete(a),{nodeErrors:w}})},validateAllNodes:()=>{const a=i(),c=new Map;for(const d of a.nodes){if(!d.type)continue;const g=H9t(d.type,d.data);g.length>0&&c.set(d.id,g)}n({nodeErrors:c})},clearNodeErrors:a=>{n(c=>{const d=new Map(c.nodeErrors);return d.delete(a),{nodeErrors:d}})},hasValidationErrors:()=>i().nodeErrors.size>0}),{name:"cafe-flow-storage",storage:GKn,partialize:VKn,version:1,onRehydrateStorage:()=>n=>{if(n){const i=n.nodes.map(c=>({...c,data:c.type?yOe(c.type,c.data):c.data}));i.some((c,d)=>JSON.stringify(c.data)!==JSON.stringify(n.nodes[d].data))&&(n.nodes=i),n.validateAllNodes()}}}));function WKn({id:n,sourceX:i,sourceY:a,targetX:c,targetY:d,sourcePosition:g,targetPosition:b,style:w,markerEnd:E,selected:S}){const{t:k}=zs(["common"]),{setEdges:_}=AR(),C=ds(Y=>Y.setUnsavedChanges),R=ds(Y=>Y.canDeleteEdge),M=tae(),D=c{Y.stopPropagation(),ae&&(_(fe=>fe.filter(De=>De.id!==n)),C(!0))},de=S?{...w,stroke:"#3b82f6",strokeWidth:3}:w??{},ge=de&&typeof de=="object"&&"stroke"in de&&typeof de.stroke=="string"?de.stroke:M?"#94a3b8":"#64748b";return O.jsxs(O.Fragment,{children:[O.jsx(Sz,{id:n,path:$,style:de,markerEnd:E}),D&&Q!==0&&O.jsx(u9t,{children:O.jsx("div",{className:"nodrag nopan pointer-events-none absolute",style:{transform:`translate(-50%, -50%) translate(${Q+(ee-Q)/2}px, ${re}px)`},children:O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("title",{children:k("shortcuts.arrowLeft")}),O.jsx("polygon",{points:"15,5 6,10 15,15",fill:ge})]})})}),S&&ae&&O.jsx(u9t,{children:O.jsx("div",{className:"nodrag nopan pointer-events-auto absolute",style:{transform:`translate(-50%, -50%) translate(${P}px, ${H}px)`},children:O.jsx("button",{onClick:he,className:"flex h-6 w-6 items-center justify-center rounded-full bg-destructive text-destructive-foreground shadow-md transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-destructive focus:ring-offset-2",title:"Delete connection","aria-label":"Delete connection",type:"button",children:O.jsx(eae,{className:"h-3.5 w-3.5"})})})})]})}function xw(n){const i=ds(c=>c.nodeErrors.get(n));return z.useMemo(()=>{const c=i??[],d=b=>{const w=c.find(E=>E.path.includes(b));return w==null?void 0:w.message},g=()=>{const b=c.find(w=>w.path.includes("_root")||w.path.length===0);return b==null?void 0:b.message};return{hasErrors:c.length>0,errors:c,errorMessages:c.map(b=>b.message),getFieldError:d,getRootError:g}},[i])}const KKn=z.memo(function({id:i,data:a,selected:c}){const{t:d}=zs(["nodes"]),g=ds(B=>B.activeNodeId),b=ds(B=>B.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=xw(i),S=g===i,k=b(i),_=a.enabled===!1;let C,R;typeof a.service=="string"&&a.service.includes(".")&&([C,R]=a.service.split("."));const M=typeof a.event=="string"&&a.event.trim()!=="",D=(()=>{if(!a.target)return null;const B=a.target.entity_id;return Array.isArray(B)?`${B.length} entities selected`:B})();return O.jsxs("div",{className:kr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",_&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),_&&!w&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsx(jp,{type:"target",position:Vr.Left,className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-green-200 p-1",children:O.jsx(Zse,{className:"h-4 w-4 text-green-700"})}),O.jsx("span",{className:"font-semibold text-green-900 text-sm",children:a.alias||(M?a.event:R)||"Action"}),k&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-green-600 font-bold text-white text-xs",children:k})]}),O.jsxs("div",{className:"space-y-0.5 text-green-700 text-xs",children:[O.jsx("div",{className:"font-medium",children:M?O.jsx("span",{className:"opacity-60",children:d("nodes:actions.fireEvent")}):O.jsxs(O.Fragment,{children:[O.jsxs("span",{className:"opacity-60",children:[C,"."]}),R]})}),D&&O.jsx("div",{className:"truncate opacity-75",children:D})]}),O.jsx(jp,{type:"source",position:Vr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),YKn=z.memo(function({id:i,data:a,selected:c}){const d=ds(C=>C.activeNodeId),g=ds(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=xw(i),E=d===i,S=g(i),k=a.enabled===!1,_={state:"State",numeric_state:"Numeric",template:"Template",time:"Time",zone:"Zone",sun:"Sun",and:"AND",or:"OR",not:"NOT",device:"Device",trigger:"Trigger"};return O.jsxs("div",{className:kr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",k&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),k&&!b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsx(jp,{type:"target",position:Vr.Left,className:"!w-3 !h-3 !bg-blue-500 !border-blue-700"}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-blue-200 p-1",children:O.jsx(Jzt,{className:"h-4 w-4 text-blue-700"})}),O.jsx("span",{className:"font-semibold text-blue-900 text-sm",children:a.alias||_[a.condition]||"Condition"}),S&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 font-bold text-white text-xs",children:S})]}),O.jsxs("div",{className:"space-y-0.5 text-blue-700 text-xs",children:[O.jsx("div",{className:"font-medium",children:_[a.condition]||a.condition}),a.entity_id&&O.jsx("div",{className:"truncate opacity-75",children:Array.isArray(a.entity_id)?a.entity_id.join(", "):a.entity_id}),a.state&&O.jsxs("div",{className:"opacity-75",children:["= ",a.state]}),a.above!==void 0&&O.jsxs("div",{className:"opacity-75",children:["> ",a.above]}),a.below!==void 0&&O.jsxs("div",{className:"opacity-75",children:["< ",a.below]}),a.after&&O.jsxs("div",{className:"opacity-75",children:["after: ",a.after]}),a.before&&O.jsxs("div",{className:"opacity-75",children:["before: ",a.before]}),a.zone&&O.jsxs("div",{className:"opacity-75",children:["zone: ",a.zone]}),a.attribute&&O.jsxs("div",{className:"opacity-75",children:["attr: ",a.attribute]}),a.for&&O.jsxs("div",{className:"opacity-75",children:["for: ",typeof a.for=="string"?a.for:`${a.for.hours||0}h ${a.for.minutes||0}m ${a.for.seconds||0}s`]}),a.template&&O.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[a.template.slice(0,30),"..."]}),a.value_template&&O.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[a.value_template.slice(0,30),"..."]}),typeof a.id=="string"&&O.jsxs("div",{className:"opacity-75",children:["id: ",a.id]}),Array.isArray(a.conditions)&&a.conditions.length>0&&O.jsx("div",{className:"opacity-75",children:Wie("nodes:conditions.nestedConditions",{count:a.conditions.length})})]}),O.jsx(jp,{type:"source",position:Vr.Right,id:"true",style:{top:"30%"},className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),O.jsx(jp,{type:"source",position:Vr.Right,id:"false",style:{top:"70%"},className:"!w-3 !h-3 !bg-red-500 !border-red-700"}),O.jsx("div",{className:"absolute top-[30%] right-[-40px] -translate-y-1/2 transform rounded border border-green-200 bg-white px-1 py-0.5 font-medium text-[10px] text-green-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Wie("nodes:conditions.yes")}),O.jsx("div",{className:"absolute top-[70%] right-[-36px] -translate-y-1/2 transform rounded border border-red-200 bg-white px-1 py-0.5 font-medium text-[10px] text-red-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Wie("nodes:conditions.no")})]})});function uVt(n){if(!n)return"";if(typeof n=="string")return n;if(typeof n=="object"){const i=[];return n.hours&&i.push(`${n.hours}h`),n.minutes&&i.push(`${n.minutes}m`),n.seconds&&i.push(`${n.seconds}s`),n.milliseconds&&i.push(`${n.milliseconds}ms`),i.join(" ")||"0s"}return String(n)}const JKn=z.memo(function({id:i,data:a,selected:c}){const d=ds(C=>C.activeNodeId),g=ds(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=xw(i),E=d===i,S=g(i),k=a.enabled===!1,_=uVt(a.delay);return O.jsxs("div",{className:kr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",k&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),k&&!b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsx(jp,{type:"target",position:Vr.Left,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-purple-200 p-1",children:O.jsx(TMe,{className:"h-4 w-4 text-purple-700"})}),O.jsx("span",{className:"font-semibold text-purple-900 text-sm",children:a.alias||"Delay"}),S&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-purple-600 font-bold text-white text-xs",children:S})]}),O.jsx("div",{className:"text-purple-700 text-xs",children:O.jsx("div",{className:"font-mono",children:_})}),O.jsx(jp,{type:"source",position:Vr.Right,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"})]})}),XKn=z.memo(function({id:i,data:a,selected:c}){const d=ds(C=>C.activeNodeId),g=ds(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=xw(i),E=d===i,S=g(i),k=a.enabled===!1,_=Object.keys(a.variables||{}).length;return O.jsxs("div",{className:kr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",k&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),k&&!b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsx(jp,{type:"target",position:Vr.Left,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-cyan-200 p-1",children:O.jsx(nGt,{className:"h-4 w-4 text-cyan-700"})}),O.jsx("span",{className:"font-semibold text-cyan-900 text-sm",children:a.alias||"Set Variables"}),S&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-cyan-600 font-bold text-white text-xs",children:S})]}),O.jsx("div",{className:"text-cyan-700 text-xs",children:O.jsx("div",{className:"font-medium opacity-75",children:Wie("nodes:variables.variableCount",{count:_})})}),O.jsx(jp,{type:"source",position:Vr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),ZKn=z.memo(function({id:i,data:a,selected:c}){const d=ds(M=>M.activeNodeId),g=ds(M=>M.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=xw(i),E=d===i,S=g(i),k=a.enabled===!1,_={state:"State Change",time:"Time",time_pattern:"Time Pattern",event:"Event",mqtt:"MQTT",webhook:"Webhook",sun:"Sun",zone:"Zone",numeric_state:"Numeric State",template:"Template",homeassistant:"Home Assistant",device:"Device"},R=(()=>{const M=a.trigger;switch(M){case"device":return{title:a.alias||"Device Trigger",subtitle:a.type?`${a.domain||"device"}: ${a.type}`:"Device",detail:a.device_id?`Device: ${String(a.device_id).substring(0,8)}...`:null};case"state":return{title:a.alias||"State Change",subtitle:Array.isArray(a.entity_id)?`${a.entity_id.length} entities: -${a.entity_id.join(", ")}`:a.entity_id||"State",detail:a.to?`to: ${a.to}`:null};case"numeric_state":return{title:a.alias||"Numeric State",subtitle:Array.isArray(a.entity_id)?a.entity_id.join(", "):a.entity_id||"Numeric State",detail:a.above||a.below?`${a.above?`>${a.above}`:""}${a.above&&a.below?" ":""}${a.below?`<${a.below}`:""}`:null};case"event":return{title:a.alias||"Event",subtitle:_[M],detail:a.event_type||null};case"time":return{title:a.alias||"Time",subtitle:_[M],detail:a.at||null};case"sun":return{title:a.alias||"Sun",subtitle:_[M],detail:a.event?`${a.event}${a.offset?` ${a.offset}`:""}`:null};case"mqtt":return{title:a.alias||"MQTT",subtitle:_[M],detail:a.topic||null};case"webhook":return{title:a.alias||"Webhook",subtitle:_[M],detail:a.webhook_id||null};case"zone":return{title:a.alias||"Zone",subtitle:_[M],detail:a.zone||(Array.isArray(a.entity_id)?a.entity_id.join(", "):a.entity_id)||null};default:return{title:a.alias||_[M]||"Trigger",subtitle:_[M]||M,detail:null}}})();return O.jsxs("div",{className:kr("relative min-w-[180px] max-w-[300px] rounded-lg border-2 border-amber-400 bg-amber-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",k&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),k&&!b&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-amber-200 p-1",children:O.jsx(rGt,{className:"h-4 w-4 text-amber-700"})}),O.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:R.title}),S&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-amber-600 font-bold text-white text-xs",children:S})]}),O.jsxs("div",{className:"space-y-0.5 text-amber-700 text-xs",children:[O.jsx("div",{className:"line-clamp-2 truncate whitespace-pre-line font-medium",children:R.subtitle}),R.detail&&O.jsx("div",{className:"truncate opacity-75",children:String(R.detail)})]}),O.jsx(jp,{type:"source",position:Vr.Right,className:"!w-3 !h-3 !bg-amber-500 !border-amber-700"})]})}),QKn=z.memo(function({id:i,data:a,selected:c}){const{t:d}=zs(["common","nodes"]),g=ds(R=>R.activeNodeId),b=ds(R=>R.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=xw(i),S=g===i,k=b(i),_=a.enabled===!1,C=uVt(a.timeout);return O.jsxs("div",{className:kr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",_&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(` -`),children:O.jsx(Pv,{className:"h-3 w-3"})}),_&&!w&&O.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:O.jsx(_R,{className:"h-3 w-3"})}),O.jsx(jp,{type:"target",position:Vr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),O.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[O.jsx("div",{className:"rounded bg-orange-200 p-1",children:O.jsx(Xzt,{className:"h-4 w-4 text-orange-700"})}),O.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:a.alias||"Wait for"}),k&&O.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:k})]}),O.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[a.wait_template&&O.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[a.wait_template.slice(0,30),"..."]}),a.wait_for_trigger&&O.jsx("div",{className:"truncate text-[10px] opacity-75",children:d("nodes:wait.waitsForNTrigger",{count:a.wait_for_trigger.length})}),C&&O.jsxs("div",{className:"opacity-75",children:[d("nodes:wait.timeoutLabel")," ",C]})]}),O.jsx(jp,{type:"source",position:Vr.Right,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"})]})}),X7t=n=>Symbol.iterator in n,Z7t=n=>"entries"in n,Q7t=(n,i)=>{const a=n instanceof Map?n:new Map(n.entries()),c=i instanceof Map?i:new Map(i.entries());if(a.size!==c.size)return!1;for(const[d,g]of a)if(!c.has(d)||!Object.is(g,c.get(d)))return!1;return!0},eYn=(n,i)=>{const a=n[Symbol.iterator](),c=i[Symbol.iterator]();let d=a.next(),g=c.next();for(;!d.done&&!g.done;){if(!Object.is(d.value,g.value))return!1;d=a.next(),g=c.next()}return!!d.done&&!!g.done};function tYn(n,i){return Object.is(n,i)?!0:typeof n!="object"||n===null||typeof i!="object"||i===null||Object.getPrototypeOf(n)!==Object.getPrototypeOf(i)?!1:X7t(n)&&X7t(i)?Z7t(n)&&Z7t(i)?Q7t(n,i):eYn(n,i):Q7t({entries:()=>Object.entries(n)},{entries:()=>Object.entries(i)})}function nYn(n){const i=Hn.useRef(void 0);return a=>{const c=n(a);return tYn(i.current,c)?i.current:i.current=c}}function eFt(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Gg(...n){return i=>{let a=!1;const c=n.map(d=>{const g=eFt(d,i);return!a&&typeof g=="function"&&(a=!0),g});if(a)return()=>{for(let d=0;d{let{children:g,...b}=c;cVt(g)&&typeof ose=="function"&&(g=ose(g._payload));const w=z.Children.toArray(g),E=w.find(uYn);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}var oYn=vae("Slot");function sYn(n){const i=z.forwardRef((a,c)=>{let{children:d,...g}=a;if(cVt(d)&&typeof ose=="function"&&(d=ose(d._payload)),z.isValidElement(d)){const b=lYn(d),w=cYn(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var aYn=Symbol("radix.slottable");function uYn(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===aYn}function cYn(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function lYn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}const tFt=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,nFt=nVt,Eae=(n,i)=>a=>{var c;if((i==null?void 0:i.variants)==null)return nFt(n,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:d,defaultVariants:g}=i,b=Object.keys(d).map(S=>{const k=a==null?void 0:a[S],_=g==null?void 0:g[S];if(k===null)return null;const C=tFt(k)||tFt(_);return d[S][C]}),w=a&&Object.entries(a).reduce((S,k)=>{let[_,C]=k;return C===void 0||(S[_]=C),S},{}),E=i==null||(c=i.compoundVariants)===null||c===void 0?void 0:c.reduce((S,k)=>{let{class:_,className:C,...R}=k;return Object.entries(R).every(M=>{let[D,B]=M;return Array.isArray(B)?B.includes({...g,...w}[D]):{...g,...w}[D]===B})?[...S,_,C]:S},[]);return nFt(n,b,E,a==null?void 0:a.class,a==null?void 0:a.className)},dYn=Eae("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Di=z.forwardRef(({className:n,variant:i,size:a,asChild:c=!1,...d},g)=>{const b=c?oYn:"button";return O.jsx(b,{className:kr(dYn({variant:i,size:a,className:n})),ref:g,...d})});Di.displayName="Button";var fYn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hYn=fYn.reduce((n,i)=>{const a=vae(`Primitive.${i}`),c=z.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?a:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),pYn="Separator",rFt="horizontal",gYn=["horizontal","vertical"],lVt=z.forwardRef((n,i)=>{const{decorative:a,orientation:c=rFt,...d}=n,g=bYn(c)?c:rFt,w=a?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return O.jsx(hYn.div,{"data-orientation":g,...w,...d,ref:i})});lVt.displayName=pYn;function bYn(n){return gYn.includes(n)}var dVt=lVt;const _z=z.forwardRef(({className:n,orientation:i="horizontal",decorative:a=!0,...c},d)=>O.jsx(dVt,{ref:d,decorative:a,orientation:i,className:kr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...c}));_z.displayName=dVt.displayName;function a5e(){var i;const n=navigator;return(i=n.userAgentData)!=null&&i.platform?n.userAgentData.platform==="macOS":/Mac|iPhone|iPod|iPad/.test(navigator.platform)||/Macintosh/.test(navigator.userAgent)}function mYn(n){return{name:"align-bottom",icon:N9n,tooltip:n("toolbar.alignBottom"),shortcut:"ctrl+shift+b",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const a=Math.max(...i.selectedNodes.map(g=>g.position.y+(g.height||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:a-(g.height||0)}}:g);i.setNodes(d)}}}function wYn(n){return{name:"align-left",icon:L9n,tooltip:n("toolbar.alignLeft"),shortcut:"ctrl+shift+l",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const a=Math.min(...i.selectedNodes.map(g=>g.position.x)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:a}}:g);i.setNodes(d)}}}function yYn(n){return{name:"align-right",icon:I9n,tooltip:n("toolbar.alignRight"),shortcut:"ctrl+shift+r",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const a=Math.max(...i.selectedNodes.map(g=>g.position.x+(g.width||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:a-(g.width||0)}}:g);i.setNodes(d)}}}function vYn(n){return{name:"align-top",icon:O9n,tooltip:n("toolbar.alignTop"),shortcut:"ctrl+shift+t",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const a=Math.min(...i.selectedNodes.map(g=>g.position.y)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:a}}:g);i.setNodes(d)}}}function fVt(n){const i=n.selectedNodes.map(c=>c.id),a=n.edges.filter(c=>i.includes(c.source)&&i.includes(c.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:a})),n.setPasteCount(0)}function hVt(n,i,a){const c=(a.pasteCount||0)+1;a.setPasteCount(c);const d=50*c,g=new Map,b=a.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=o5e(E.type??"node");return g.set(E.id,S),{...E,selected:!0,id:S,position:{x:E.position.x+d,y:E.position.y+d}}});if(a.setNodes([...b,...w]),i.length>0){const E=i.map(S=>({...S,id:`edge-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,source:g.get(S.source)??S.source,target:g.get(S.target)??S.target}));a.setEdges([...a.edges,...E])}}function EYn(n){return{name:"copy",icon:AMe,tooltip:n("toolbar.copy"),shortcut:"ctrl+c",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{fVt(i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} copied`)}}}function SYn(n){return{name:"cut",icon:F8n,tooltip:n("toolbar.cut"),shortcut:"ctrl+x",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const a=i.selectedNodes.length;fVt(i),i.selectedNodes.forEach(c=>{i.removeNode(c.id)}),N2.success(`${a} node${a!==1?"s":""} cut`)}}}function TYn(n){return{name:"delete",icon:M5,tooltip:n("toolbar.deleteNode"),shortcut:["delete","backspace"],variant:"destructive",group:"delete",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(a=>{i.removeNode(a.id)})}}}function AYn(n){return{name:"disconnect",icon:W8n,tooltip:n("toolbar.disconnect"),shortcut:"ctrl+shift+d",group:"edit",isEnabled:i=>{if(i.selectedNodes.length===0)return!1;const a=i.selectedNodes.map(c=>c.id);return i.edges.some(c=>a.includes(c.source)||a.includes(c.target))},execute:i=>{const a=i.selectedNodes.map(d=>d.id),c=i.edges.filter(d=>!a.includes(d.source)&&!a.includes(d.target));i.setEdges(c)}}}function _Yn(n){return{name:"duplicate",icon:u8n,tooltip:n("toolbar.duplicate"),shortcut:"ctrl+d",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const a=i.selectedNodes.map(d=>d.id),c=i.edges.filter(d=>a.includes(d.source)&&a.includes(d.target));hVt(i.selectedNodes,c,i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} duplicated`)}}}function kYn(n){return{name:"paste",icon:o8n,tooltip:n("toolbar.paste"),shortcut:"ctrl+v",group:"clipboard",isEnabled:i=>!!(i.clipboard&&i.clipboard.length>0),execute:i=>{if(i.clipboard)try{const a=JSON.parse(i.clipboard),c=a.nodes||[],d=a.edges||[];if(!Array.isArray(c)||c.length===0)return;hVt(c,d,i)}catch(a){console.warn("Invalid clipboard data, cannot paste.",a)}}}}function xYn(n){return{name:"selectAll",icon:O8n,tooltip:n("toolbar.selectAll"),shortcut:"ctrl+a",group:"selection",isEnabled:()=>!0,execute:i=>{const a=i.nodes.map(d=>({...d,selected:!0}));i.setNodes(a);const c=i.edges.map(d=>({...d,selected:!0}));i.setEdges(c)}}}function NYn(n){return{name:"toggle-enabled",icon:d9t,getIcon:i=>{const a=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return a?t8n:c?_R:d9t},tooltip:i=>{const a=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return n(a?"toolbar.enable":c?"toolbar.disable":"toolbar.toggleEnabled")},shortcut:"ctrl+e",group:"edit",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(a=>{const c=a.data.enabled!==!1;i.updateNodeData(a.id,{enabled:!c})})}}}function CYn(n,i){const a=a5e();return n.split("+").map(c=>c==="ctrl"?i(a?"shortcuts.cmd":"shortcuts.ctrl"):c==="shift"?i("shortcuts.shift"):c==="alt"?i("shortcuts.alt"):c==="arrowup"?i("shortcuts.arrowUp"):c==="arrowdown"?i("shortcuts.arrowDown"):c==="arrowleft"?i("shortcuts.arrowLeft"):c==="arrowright"?i("shortcuts.arrowRight"):c.charAt(0).toUpperCase()+c.slice(1)).join("+")}const vOe=["node-specific","selection","clipboard","edit","align","delete"];function IYn(){var $;const{t:n}=zs(),{nodes:i,edges:a,clipboard:c,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:k,setPasteCount:_}=ds(nYn(P=>({nodes:P.nodes,edges:P.edges,clipboard:P.clipboard,pasteCount:P.pasteCount,addNode:P.addNode,removeNode:P.removeNode,updateNodeData:P.updateNodeData,setNodes:P.setNodes,setEdges:P.setEdges,setClipboard:P.setClipboard,setPasteCount:P.setPasteCount}))),C=z.useMemo(()=>({selectedNodes:i.filter(P=>P.selected),nodes:i,edges:a,clipboard:c,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:k,setPasteCount:_}),[i,a,c,d,g,b,w,E,S,k,_]),R=z.useMemo(()=>[_Yn(n),EYn(n),SYn(n),kYn(n),wYn(n),yYn(n),vYn(n),mYn(n),AYn(n),xYn(n),NYn(n),TYn(n)],[n]),M=R.length>0;z.useEffect(()=>{if(!M)return;const P=H=>{const Q=H.target;if(Q.tagName==="INPUT"||Q.tagName==="TEXTAREA"||Q.isContentEditable)return;const ee=a5e()?H.metaKey:H.ctrlKey;let ae="";ee&&(ae+="ctrl+"),H.shiftKey&&(ae+="shift+"),H.altKey&&(ae+="alt+"),ae+=H.key.toLowerCase();const he=R.find(ve=>!ve.shortcut||!(Array.isArray(ve.shortcut)?ve.shortcut:[ve.shortcut]).includes(ae)?!1:ve.isEnabled?ve.isEnabled(C):!0);he&&(H.preventDefault(),he.execute(C))};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[M,R,C]);const D=z.useMemo(()=>{const P={};for(const H of R){const Q=H.group||"node-specific";P[Q]||(P[Q]=[]),P[Q].push(H)}return P},[R]);if(!M)return null;let B=0;try{c&&(B=(($=JSON.parse(c).nodes)==null?void 0:$.length)||0)}catch{}const F=P=>!P||P.length===0?null:P.map(H=>{const Q=H.getIcon?H.getIcon(C):H.icon,re=typeof H.tooltip=="function"?H.tooltip(C):H.tooltip,ee=H.isEnabled?H.isEnabled(C):!0,ae=H.name==="paste";return O.jsxs(Di,{variant:"ghost",size:"icon",disabled:!ee,className:kr("relative h-8 w-8 shrink-0","sm:h-9 sm:w-9",H.variant==="destructive"&&"text-destructive hover:bg-destructive/10 hover:text-destructive"),title:H.shortcut?`${re} (${CYn(Array.isArray(H.shortcut)?H.shortcut[0]:H.shortcut,n)})`:re,onClick:()=>H.execute(C),children:[O.jsx(Q,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),ae&&B>0&&O.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary font-bold text-[9px] text-primary-foreground",children:B})]},H.name)});return O.jsx(fR,{position:"top-center",className:"!m-0 !p-0 max-w-[calc(100vw-2rem)] sm:max-w-[calc(100vw-4rem)]",children:O.jsx("div",{className:kr("flex items-center gap-0.5 rounded-lg border bg-background/95 px-1.5 py-1 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-background/60 sm:gap-1 sm:px-2 sm:py-1.5","fade-in slide-in-from-top-2 animate-in duration-200","scrollbar-thin scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent overflow-x-auto","max-w-full"),children:O.jsx("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:vOe.map((P,H)=>{var re;const Q=D[P];return!Q||Q.length===0?null:O.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[F(Q),H0&&O.jsx(_z,{orientation:"vertical",className:"mx-0.5 h-6 sm:mx-1"})]},P)})})})})}const RYn={trigger:ZKn,condition:YKn,action:KKn,delay:JKn,wait:QKn,set_variables:XKn},OYn={deletable:WKn};function DYn(){const{t:n}=zs(["common","debug"]),i=tae(),{nodes:a,edges:c,onNodesChange:d,onEdgesChange:g,onConnect:b,selectNode:w,addNode:E,selectedNodeId:S,isSimulating:k,executionPath:_,isShowingTrace:C,traceExecutionPath:R,canDeleteEdge:M}=ds(),D=z.useRef(null),{screenToFlowPosition:B,setViewport:F}=AR();z.useEffect(()=>{F({x:0,y:0,zoom:.75})},[F]);const $=z.useCallback(({nodes:ee})=>{ee.length===1?w(ee[0].id):w(null)},[w]),P=z.useCallback(ee=>{ee.preventDefault(),ee.dataTransfer.dropEffect="move"},[]),H=z.useCallback(async({nodes:ee,edges:ae})=>{const he=ae.filter(ve=>M(ve.id));return{nodes:ee,edges:he}},[M]),Q=z.useCallback(ee=>{ee.preventDefault();const ae=ee.dataTransfer.getData("application/reactflow");if(ae)try{const{type:he,defaultData:ve}=JSON.parse(ae),de=B({x:ee.clientX,y:ee.clientY}),fe={x:de.x-180/2,y:de.y-80/2},De={id:o5e(he),type:he,position:fe,data:{...ve}};E(De)}catch(he){console.error("Failed to parse dropped node data:",he)}},[B,E]),re=z.useMemo(()=>c.map(ee=>{const ae=_.indexOf(ee.source),he=_.indexOf(ee.target),ve=k&&_.length>=2&&ae!==-1&&he!==-1&&he===ae+1,de=R.indexOf(ee.source),ge=R.indexOf(ee.target),Y=C&&R.length>=2&&de!==-1&&ge!==-1&&ge===de+1,fe=S&&(ee.source===S||ee.target===S);let De={strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},Se={type:iA.ArrowClosed,color:i?"#94a3b8":"#64748b"};return ve?(De={stroke:"#22c55e",strokeWidth:3},Se={type:iA.ArrowClosed,color:"#22c55e"}):Y?(De={stroke:"#f59e0b",strokeWidth:3},Se={type:iA.ArrowClosed,color:"#f59e0b"}):fe&&(De={stroke:"#3b82f6",strokeWidth:3},Se={type:iA.ArrowClosed,color:"#3b82f6"}),{...ee,type:"deletable",animated:ve||Y,style:De,markerEnd:Se}}),[c,k,_,C,R,S,i]);return O.jsx("div",{className:"h-full w-full",ref:D,children:O.jsxs(V5n,{colorMode:i?"dark":"light",nodes:a,edges:re,onNodesChange:d,onEdgesChange:g,onConnect:b,onBeforeDelete:H,onSelectionChange:$,onDragOver:P,onDrop:Q,panOnScroll:a5e(),nodeTypes:RYn,edgeTypes:OYn,defaultEdgeOptions:{type:"deletable",style:{strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},markerEnd:{type:iA.ArrowClosed,color:i?"#94a3b8":"#64748b"}},defaultViewport:{x:0,y:0,zoom:.75},maxZoom:2,minZoom:.3,fitView:!0,fitViewOptions:{maxZoom:.75},snapToGrid:!0,snapGrid:[15,15],deleteKeyCode:null,className:i?"dark bg-background":"bg-muted/30",proOptions:{hideAttribution:!0},children:[O.jsx(Z5n,{variant:fA.Dots,gap:20,size:1,color:i?"#475569":"#cbd5e1"}),O.jsx(o9n,{}),O.jsx(w9n,{nodeStrokeWidth:3,zoomable:!0,pannable:!0,nodeClassName:ee=>{switch(ee.type){case"trigger":return"fill-amber-50 stroke-amber-400";case"condition":return"fill-blue-50 stroke-blue-400";case"action":return"fill-green-50 stroke-green-400";case"delay":return"fill-purple-50 stroke-purple-400";case"wait":return"fill-orange-50 stroke-orange-400";case"set_variables":return"fill-cyan-50 stroke-cyan-400";default:return"fill-slate-100 stroke-slate-400"}}}),O.jsx(IYn,{}),k&&O.jsx(fR,{position:"top-left",className:"rounded-lg border border-green-300 bg-green-100 px-4 py-2 dark:border-green-700 dark:bg-green-950",children:O.jsxs("div",{className:"flex items-center gap-2 font-medium text-green-800 text-sm dark:text-green-200",children:[O.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-green-500"}),n("debug:simulation.simulatingExecution")]})}),C&&!k&&O.jsx(fR,{position:"top-left",className:"rounded-lg border border-orange-300 bg-orange-100 px-4 py-2 dark:border-orange-700 dark:bg-orange-950",children:O.jsxs("div",{className:"flex items-center gap-2 font-medium text-orange-800 text-sm dark:text-orange-200",children:[O.jsx("div",{className:"h-2 w-2 rounded-full bg-orange-500"}),n("debug:simulation.showingTraceExecution",{steps:R.length})]})})]})})}const LYn=Eae("inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function u5e({className:n,variant:i,...a}){return O.jsx("div",{className:kr(LYn({variant:i}),n),...a})}function MYn(n,i){const a=z.createContext(i),c=g=>{const{children:b,...w}=g,E=z.useMemo(()=>w,Object.values(w));return O.jsx(a.Provider,{value:E,children:b})};c.displayName=n+"Provider";function d(g){const b=z.useContext(a);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${n}\``)}return[c,d]}function Nw(n,i=[]){let a=[];function c(g,b){const w=z.createContext(b),E=a.length;a=[...a,b];const S=_=>{var F;const{scope:C,children:R,...M}=_,D=((F=C==null?void 0:C[n])==null?void 0:F[E])||w,B=z.useMemo(()=>M,Object.values(M));return O.jsx(D.Provider,{value:B,children:R})};S.displayName=g+"Provider";function k(_,C){var D;const R=((D=C==null?void 0:C[n])==null?void 0:D[E])||w,M=z.useContext(R);if(M)return M;if(b!==void 0)return b;throw new Error(`\`${_}\` must be used within \`${g}\``)}return[S,k]}const d=()=>{const g=a.map(b=>z.createContext(b));return function(w){const E=(w==null?void 0:w[n])||g;return z.useMemo(()=>({[`__scope${n}`]:{...w,[n]:E}}),[w,E])}};return d.scopeName=n,[c,PYn(d,...i)]}function PYn(...n){const i=n[0];if(n.length===1)return i;const a=()=>{const c=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(g){const b=c.reduce((w,{useScope:E,scopeName:S})=>{const _=E(g)[`__scope${S}`];return{...w,..._}},{});return z.useMemo(()=>({[`__scope${i.scopeName}`]:b}),[b])}};return a.scopeName=i.scopeName,a}function Or(n,i,{checkForDefaultPrevented:a=!0}={}){return function(d){if(n==null||n(d),a===!1||!d.defaultPrevented)return i==null?void 0:i(d)}}var Up=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},jYn=gLe[" useInsertionEffect ".trim().toString()]||Up;function z2({prop:n,defaultProp:i,onChange:a=()=>{},caller:c}){const[d,g,b]=FYn({defaultProp:i,onChange:a}),w=n!==void 0,E=w?n:d;{const k=z.useRef(n!==void 0);z.useEffect(()=>{const _=k.current;_!==w&&console.warn(`${c} is changing from ${_?"controlled":"uncontrolled"} to ${w?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),k.current=w},[w,c])}const S=z.useCallback(k=>{var _;if(w){const C=$Yn(k)?k(n):k;C!==n&&((_=b.current)==null||_.call(b,C))}else g(k)},[w,n,g,b]);return[E,S]}function FYn({defaultProp:n,onChange:i}){const[a,c]=z.useState(n),d=z.useRef(a),g=z.useRef(i);return jYn(()=>{g.current=i},[i]),z.useEffect(()=>{var b;d.current!==a&&((b=g.current)==null||b.call(g,a),d.current=a)},[a,d]),[a,c,g]}function $Yn(n){return typeof n=="function"}function Sae(n){const i=z.useRef({value:n,previous:n});return z.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}function Tae(n){const[i,a]=z.useState(void 0);return Up(()=>{if(n){a({width:n.offsetWidth,height:n.offsetHeight});const c=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const g=d[0];let b,w;if("borderBoxSize"in g){const E=g.borderBoxSize,S=Array.isArray(E)?E[0]:E;b=S.inlineSize,w=S.blockSize}else b=n.offsetWidth,w=n.offsetHeight;a({width:b,height:w})});return c.observe(n,{box:"border-box"}),()=>c.unobserve(n)}else a(void 0)},[n]),i}function BYn(n,i){return z.useReducer((a,c)=>i[a][c]??a,n)}var Cw=n=>{const{present:i,children:a}=n,c=UYn(i),d=typeof a=="function"?a({present:c.isPresent}):z.Children.only(a),g=hs(c.ref,HYn(d));return typeof a=="function"||c.isPresent?z.cloneElement(d,{ref:g}):null};Cw.displayName="Presence";function UYn(n){const[i,a]=z.useState(),c=z.useRef(null),d=z.useRef(n),g=z.useRef("none"),b=n?"mounted":"unmounted",[w,E]=BYn(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const S=Sie(c.current);g.current=w==="mounted"?S:"none"},[w]),Up(()=>{const S=c.current,k=d.current;if(k!==n){const C=g.current,R=Sie(S);n?E("MOUNT"):R==="none"||(S==null?void 0:S.display)==="none"?E("UNMOUNT"):E(k&&C!==R?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),Up(()=>{if(i){let S;const k=i.ownerDocument.defaultView??window,_=R=>{const D=Sie(c.current).includes(CSS.escape(R.animationName));if(R.target===i&&D&&(E("ANIMATION_END"),!d.current)){const B=i.style.animationFillMode;i.style.animationFillMode="forwards",S=k.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=B)})}},C=R=>{R.target===i&&(g.current=Sie(c.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",_),i.addEventListener("animationend",_),()=>{k.clearTimeout(S),i.removeEventListener("animationstart",C),i.removeEventListener("animationcancel",_),i.removeEventListener("animationend",_)}}else E("ANIMATION_END")},[i,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:z.useCallback(S=>{c.current=S?getComputedStyle(S):null,a(S)},[])}}function Sie(n){return(n==null?void 0:n.animationName)||"none"}function HYn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}function zYn(n){const i=GYn(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(VYn);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function GYn(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=KYn(d),w=WYn(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var qYn=Symbol("radix.slottable");function VYn(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===qYn}function WYn(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function KYn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}var YYn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eo=YYn.reduce((n,i)=>{const a=zYn(`Primitive.${i}`),c=z.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?a:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{});function pVt(n,i){n&&TR.flushSync(()=>n.dispatchEvent(i))}var Aae="Checkbox",[JYn]=Nw(Aae),[XYn,c5e]=JYn(Aae);function ZYn(n){const{__scopeCheckbox:i,checked:a,children:c,defaultChecked:d,disabled:g,form:b,name:w,onCheckedChange:E,required:S,value:k="on",internal_do_not_use_render:_}=n,[C,R]=z2({prop:a,defaultProp:d??!1,onChange:E,caller:Aae}),[M,D]=z.useState(null),[B,F]=z.useState(null),$=z.useRef(!1),P=M?!!b||!!M.closest("form"):!0,H={checked:C,disabled:g,setChecked:R,control:M,setControl:D,name:w,form:b,value:k,hasConsumerStoppedPropagationRef:$,required:S,defaultChecked:Qx(d)?!1:d,isFormControl:P,bubbleInput:B,setBubbleInput:F};return O.jsx(XYn,{scope:i,...H,children:QYn(_)?_(H):c})}var gVt="CheckboxTrigger",bVt=z.forwardRef(({__scopeCheckbox:n,onKeyDown:i,onClick:a,...c},d)=>{const{control:g,value:b,disabled:w,checked:E,required:S,setControl:k,setChecked:_,hasConsumerStoppedPropagationRef:C,isFormControl:R,bubbleInput:M}=c5e(gVt,n),D=hs(d,k),B=z.useRef(E);return z.useEffect(()=>{const F=g==null?void 0:g.form;if(F){const $=()=>_(B.current);return F.addEventListener("reset",$),()=>F.removeEventListener("reset",$)}},[g,_]),O.jsx(eo.button,{type:"button",role:"checkbox","aria-checked":Qx(E)?"mixed":E,"aria-required":S,"data-state":EVt(E),"data-disabled":w?"":void 0,disabled:w,value:b,...c,ref:D,onKeyDown:Or(i,F=>{F.key==="Enter"&&F.preventDefault()}),onClick:Or(a,F=>{_($=>Qx($)?!0:!$),M&&R&&(C.current=F.isPropagationStopped(),C.current||F.stopPropagation())})})});bVt.displayName=gVt;var l5e=z.forwardRef((n,i)=>{const{__scopeCheckbox:a,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E,onCheckedChange:S,form:k,..._}=n;return O.jsx(ZYn,{__scopeCheckbox:a,checked:d,defaultChecked:g,disabled:w,required:b,onCheckedChange:S,name:c,form:k,value:E,internal_do_not_use_render:({isFormControl:C})=>O.jsxs(O.Fragment,{children:[O.jsx(bVt,{..._,ref:i,__scopeCheckbox:a}),C&&O.jsx(vVt,{__scopeCheckbox:a})]})})});l5e.displayName=Aae;var mVt="CheckboxIndicator",wVt=z.forwardRef((n,i)=>{const{__scopeCheckbox:a,forceMount:c,...d}=n,g=c5e(mVt,a);return O.jsx(Cw,{present:c||Qx(g.checked)||g.checked===!0,children:O.jsx(eo.span,{"data-state":EVt(g.checked),"data-disabled":g.disabled?"":void 0,...d,ref:i,style:{pointerEvents:"none",...n.style}})})});wVt.displayName=mVt;var yVt="CheckboxBubbleInput",vVt=z.forwardRef(({__scopeCheckbox:n,...i},a)=>{const{control:c,hasConsumerStoppedPropagationRef:d,checked:g,defaultChecked:b,required:w,disabled:E,name:S,value:k,form:_,bubbleInput:C,setBubbleInput:R}=c5e(yVt,n),M=hs(a,R),D=Sae(g),B=Tae(c);z.useEffect(()=>{const $=C;if(!$)return;const P=window.HTMLInputElement.prototype,Q=Object.getOwnPropertyDescriptor(P,"checked").set,re=!d.current;if(D!==g&&Q){const ee=new Event("click",{bubbles:re});$.indeterminate=Qx(g),Q.call($,Qx(g)?!1:g),$.dispatchEvent(ee)}},[C,D,g,d]);const F=z.useRef(Qx(g)?!1:g);return O.jsx(eo.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??F.current,required:w,disabled:E,name:S,value:k,form:_,...i,tabIndex:-1,ref:M,style:{...i.style,...B,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vVt.displayName=yVt;function QYn(n){return typeof n=="function"}function Qx(n){return n==="indeterminate"}function EVt(n){return Qx(n)?"indeterminate":n?"checked":"unchecked"}const EDe=z.forwardRef(({className:n,...i},a)=>O.jsx(l5e,{ref:a,className:kr("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...i,children:O.jsx(wVt,{className:kr("grid place-content-center text-current"),children:O.jsx(L5,{className:"h-4 w-4"})})}));EDe.displayName=l5e.displayName;var eJn=gLe[" useId ".trim().toString()]||(()=>{}),tJn=0;function Fh(n){const[i,a]=z.useState(eJn());return Up(()=>{a(c=>c??String(tJn++))},[n]),i?`radix-${i}`:""}function G2(n){const i=z.useRef(n);return z.useEffect(()=>{i.current=n}),z.useMemo(()=>(...a)=>{var c;return(c=i.current)==null?void 0:c.call(i,...a)},[])}function nJn(n,i=globalThis==null?void 0:globalThis.document){const a=G2(n);z.useEffect(()=>{const c=d=>{d.key==="Escape"&&a(d)};return i.addEventListener("keydown",c,{capture:!0}),()=>i.removeEventListener("keydown",c,{capture:!0})},[a,i])}var rJn="DismissableLayer",SDe="dismissableLayer.update",iJn="dismissableLayer.pointerDownOutside",oJn="dismissableLayer.focusOutside",iFt,SVt=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kz=z.forwardRef((n,i)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...E}=n,S=z.useContext(SVt),[k,_]=z.useState(null),C=(k==null?void 0:k.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=z.useState({}),M=hs(i,ee=>_(ee)),D=Array.from(S.layers),[B]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),F=D.indexOf(B),$=k?D.indexOf(k):-1,P=S.layersWithOutsidePointerEventsDisabled.size>0,H=$>=F,Q=uJn(ee=>{const ae=ee.target,he=[...S.branches].some(ve=>ve.contains(ae));!H||he||(d==null||d(ee),b==null||b(ee),ee.defaultPrevented||w==null||w())},C),re=cJn(ee=>{const ae=ee.target;[...S.branches].some(ve=>ve.contains(ae))||(g==null||g(ee),b==null||b(ee),ee.defaultPrevented||w==null||w())},C);return nJn(ee=>{$===S.layers.size-1&&(c==null||c(ee),!ee.defaultPrevented&&w&&(ee.preventDefault(),w()))},C),z.useEffect(()=>{if(k)return a&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(iFt=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(k)),S.layers.add(k),oFt(),()=>{a&&S.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=iFt)}},[k,C,a,S]),z.useEffect(()=>()=>{k&&(S.layers.delete(k),S.layersWithOutsidePointerEventsDisabled.delete(k),oFt())},[k,S]),z.useEffect(()=>{const ee=()=>R({});return document.addEventListener(SDe,ee),()=>document.removeEventListener(SDe,ee)},[]),O.jsx(eo.div,{...E,ref:M,style:{pointerEvents:P?H?"auto":"none":void 0,...n.style},onFocusCapture:Or(n.onFocusCapture,re.onFocusCapture),onBlurCapture:Or(n.onBlurCapture,re.onBlurCapture),onPointerDownCapture:Or(n.onPointerDownCapture,Q.onPointerDownCapture)})});kz.displayName=rJn;var sJn="DismissableLayerBranch",aJn=z.forwardRef((n,i)=>{const a=z.useContext(SVt),c=z.useRef(null),d=hs(i,c);return z.useEffect(()=>{const g=c.current;if(g)return a.branches.add(g),()=>{a.branches.delete(g)}},[a.branches]),O.jsx(eo.div,{...n,ref:d})});aJn.displayName=sJn;function uJn(n,i=globalThis==null?void 0:globalThis.document){const a=G2(n),c=z.useRef(!1),d=z.useRef(()=>{});return z.useEffect(()=>{const g=w=>{if(w.target&&!c.current){let E=function(){TVt(iJn,a,S,{discrete:!0})};const S={originalEvent:w};w.pointerType==="touch"?(i.removeEventListener("click",d.current),d.current=E,i.addEventListener("click",d.current,{once:!0})):E()}else i.removeEventListener("click",d.current);c.current=!1},b=window.setTimeout(()=>{i.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(b),i.removeEventListener("pointerdown",g),i.removeEventListener("click",d.current)}},[i,a]),{onPointerDownCapture:()=>c.current=!0}}function cJn(n,i=globalThis==null?void 0:globalThis.document){const a=G2(n),c=z.useRef(!1);return z.useEffect(()=>{const d=g=>{g.target&&!c.current&&TVt(oJn,a,{originalEvent:g},{discrete:!1})};return i.addEventListener("focusin",d),()=>i.removeEventListener("focusin",d)},[i,a]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function oFt(){const n=new CustomEvent(SDe);document.dispatchEvent(n)}function TVt(n,i,a,{discrete:c}){const d=a.originalEvent.target,g=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:a});i&&d.addEventListener(n,i,{once:!0}),c?pVt(d,g):d.dispatchEvent(g)}var EOe="focusScope.autoFocusOnMount",SOe="focusScope.autoFocusOnUnmount",sFt={bubbles:!1,cancelable:!0},lJn="FocusScope",xz=z.forwardRef((n,i)=>{const{loop:a=!1,trapped:c=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...b}=n,[w,E]=z.useState(null),S=G2(d),k=G2(g),_=z.useRef(null),C=hs(i,D=>E(D)),R=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(c){let D=function(P){if(R.paused||!w)return;const H=P.target;w.contains(H)?_.current=H:Ox(_.current,{select:!0})},B=function(P){if(R.paused||!w)return;const H=P.relatedTarget;H!==null&&(w.contains(H)||Ox(_.current,{select:!0}))},F=function(P){if(document.activeElement===document.body)for(const Q of P)Q.removedNodes.length>0&&Ox(w)};document.addEventListener("focusin",D),document.addEventListener("focusout",B);const $=new MutationObserver(F);return w&&$.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",B),$.disconnect()}}},[c,w,R.paused]),z.useEffect(()=>{if(w){uFt.add(R);const D=document.activeElement;if(!w.contains(D)){const F=new CustomEvent(EOe,sFt);w.addEventListener(EOe,S),w.dispatchEvent(F),F.defaultPrevented||(dJn(bJn(AVt(w)),{select:!0}),document.activeElement===D&&Ox(w))}return()=>{w.removeEventListener(EOe,S),setTimeout(()=>{const F=new CustomEvent(SOe,sFt);w.addEventListener(SOe,k),w.dispatchEvent(F),F.defaultPrevented||Ox(D??document.body,{select:!0}),w.removeEventListener(SOe,k),uFt.remove(R)},0)}}},[w,S,k,R]);const M=z.useCallback(D=>{if(!a&&!c||R.paused)return;const B=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,F=document.activeElement;if(B&&F){const $=D.currentTarget,[P,H]=fJn($);P&&H?!D.shiftKey&&F===H?(D.preventDefault(),a&&Ox(P,{select:!0})):D.shiftKey&&F===P&&(D.preventDefault(),a&&Ox(H,{select:!0})):F===$&&D.preventDefault()}},[a,c,R.paused]);return O.jsx(eo.div,{tabIndex:-1,...b,ref:C,onKeyDown:M})});xz.displayName=lJn;function dJn(n,{select:i=!1}={}){const a=document.activeElement;for(const c of n)if(Ox(c,{select:i}),document.activeElement!==a)return}function fJn(n){const i=AVt(n),a=aFt(i,n),c=aFt(i.reverse(),n);return[a,c]}function AVt(n){const i=[],a=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)i.push(a.currentNode);return i}function aFt(n,i){for(const a of n)if(!hJn(a,{upTo:i}))return a}function hJn(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function pJn(n){return n instanceof HTMLInputElement&&"select"in n}function Ox(n,{select:i=!1}={}){if(n&&n.focus){const a=document.activeElement;n.focus({preventScroll:!0}),n!==a&&pJn(n)&&i&&n.select()}}var uFt=gJn();function gJn(){let n=[];return{add(i){const a=n[0];i!==a&&(a==null||a.pause()),n=cFt(n,i),n.unshift(i)},remove(i){var a;n=cFt(n,i),(a=n[0])==null||a.resume()}}}function cFt(n,i){const a=[...n],c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}function bJn(n){return n.filter(i=>i.tagName!=="A")}var mJn="Portal",Nz=z.forwardRef((n,i)=>{var w;const{container:a,...c}=n,[d,g]=z.useState(!1);Up(()=>g(!0),[]);const b=a||d&&((w=globalThis==null?void 0:globalThis.document)==null?void 0:w.body);return b?VUt.createPortal(O.jsx(eo.div,{...c,ref:i}),b):null});Nz.displayName=mJn;var TOe=0;function _ae(){z.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??lFt()),document.body.insertAdjacentElement("beforeend",n[1]??lFt()),TOe++,()=>{TOe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),TOe--}},[])}function lFt(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var O2=function(){return O2=Object.assign||function(i){for(var a,c=1,d=arguments.length;c"u")return LJn;var i=MJn(n),a=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-a+i[2]-i[0])}},jJn=NVt(),i5="data-scroll-locked",FJn=function(n,i,a,c){var d=n.left,g=n.top,b=n.right,w=n.gap;return a===void 0&&(a="margin"),` - .`.concat(yJn,` { - overflow: hidden `).concat(c,`; - padding-right: `).concat(w,"px ").concat(c,`; - } - body[`).concat(i5,`] { - overflow: hidden `).concat(c,`; - overscroll-behavior: contain; - `).concat([i&&"position: relative ".concat(c,";"),a==="margin"&&` - padding-left: `.concat(d,`px; - padding-top: `).concat(g,`px; - padding-right: `).concat(b,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(w,"px ").concat(c,`; - `),a==="padding"&&"padding-right: ".concat(w,"px ").concat(c,";")].filter(Boolean).join(""),` - } - - .`).concat(Qie,` { - right: `).concat(w,"px ").concat(c,`; - } - - .`).concat(eoe,` { - margin-right: `).concat(w,"px ").concat(c,`; - } - - .`).concat(Qie," .").concat(Qie,` { - right: 0 `).concat(c,`; - } - - .`).concat(eoe," .").concat(eoe,` { - margin-right: 0 `).concat(c,`; - } - - body[`).concat(i5,`] { - `).concat(vJn,": ").concat(w,`px; - } -`)},fFt=function(){var n=parseInt(document.body.getAttribute(i5)||"0",10);return isFinite(n)?n:0},$Jn=function(){z.useEffect(function(){return document.body.setAttribute(i5,(fFt()+1).toString()),function(){var n=fFt()-1;n<=0?document.body.removeAttribute(i5):document.body.setAttribute(i5,n.toString())}},[])},BJn=function(n){var i=n.noRelative,a=n.noImportant,c=n.gapMode,d=c===void 0?"margin":c;$Jn();var g=z.useMemo(function(){return PJn(d)},[d]);return z.createElement(jJn,{styles:FJn(g,!i,d,a?"":"!important")})},TDe=!1;if(typeof window<"u")try{var Tie=Object.defineProperty({},"passive",{get:function(){return TDe=!0,!0}});window.addEventListener("test",Tie,Tie),window.removeEventListener("test",Tie,Tie)}catch{TDe=!1}var yM=TDe?{passive:!1}:!1,UJn=function(n){return n.tagName==="TEXTAREA"},CVt=function(n,i){if(!(n instanceof Element))return!1;var a=window.getComputedStyle(n);return a[i]!=="hidden"&&!(a.overflowY===a.overflowX&&!UJn(n)&&a[i]==="visible")},HJn=function(n){return CVt(n,"overflowY")},zJn=function(n){return CVt(n,"overflowX")},hFt=function(n,i){var a=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=IVt(n,c);if(d){var g=RVt(n,c),b=g[1],w=g[2];if(b>w)return!0}c=c.parentNode}while(c&&c!==a.body);return!1},GJn=function(n){var i=n.scrollTop,a=n.scrollHeight,c=n.clientHeight;return[i,a,c]},qJn=function(n){var i=n.scrollLeft,a=n.scrollWidth,c=n.clientWidth;return[i,a,c]},IVt=function(n,i){return n==="v"?HJn(i):zJn(i)},RVt=function(n,i){return n==="v"?GJn(i):qJn(i)},VJn=function(n,i){return n==="h"&&i==="rtl"?-1:1},WJn=function(n,i,a,c,d){var g=VJn(n,window.getComputedStyle(i).direction),b=g*c,w=a.target,E=i.contains(w),S=!1,k=b>0,_=0,C=0;do{if(!w)break;var R=RVt(n,w),M=R[0],D=R[1],B=R[2],F=D-B-g*M;(M||F)&&IVt(n,w)&&(_+=F,C+=M);var $=w.parentNode;w=$&&$.nodeType===Node.DOCUMENT_FRAGMENT_NODE?$.host:$}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(k&&Math.abs(_)<1||!k&&Math.abs(C)<1)&&(S=!0),S},Aie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},pFt=function(n){return[n.deltaX,n.deltaY]},gFt=function(n){return n&&"current"in n?n.current:n},KJn=function(n,i){return n[0]===i[0]&&n[1]===i[1]},YJn=function(n){return` - .block-interactivity-`.concat(n,` {pointer-events: none;} - .allow-interactivity-`).concat(n,` {pointer-events: all;} -`)},JJn=0,vM=[];function XJn(n){var i=z.useRef([]),a=z.useRef([0,0]),c=z.useRef(),d=z.useState(JJn++)[0],g=z.useState(NVt)[0],b=z.useRef(n);z.useEffect(function(){b.current=n},[n]),z.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var D=wJn([n.lockRef.current],(n.shards||[]).map(gFt),!0).filter(Boolean);return D.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),D.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=z.useCallback(function(D,B){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!b.current.allowPinchZoom;var F=Aie(D),$=a.current,P="deltaX"in D?D.deltaX:$[0]-F[0],H="deltaY"in D?D.deltaY:$[1]-F[1],Q,re=D.target,ee=Math.abs(P)>Math.abs(H)?"h":"v";if("touches"in D&&ee==="h"&&re.type==="range")return!1;var ae=window.getSelection(),he=ae&&ae.anchorNode,ve=he?he===re||he.contains(re):!1;if(ve)return!1;var de=hFt(ee,re);if(!de)return!0;if(de?Q=ee:(Q=ee==="v"?"h":"v",de=hFt(ee,re)),!de)return!1;if(!c.current&&"changedTouches"in D&&(P||H)&&(c.current=Q),!Q)return!0;var ge=c.current||Q;return WJn(ge,B,D,ge==="h"?P:H)},[]),E=z.useCallback(function(D){var B=D;if(!(!vM.length||vM[vM.length-1]!==g)){var F="deltaY"in B?pFt(B):Aie(B),$=i.current.filter(function(Q){return Q.name===B.type&&(Q.target===B.target||B.target===Q.shadowParent)&&KJn(Q.delta,F)})[0];if($&&$.should){B.cancelable&&B.preventDefault();return}if(!$){var P=(b.current.shards||[]).map(gFt).filter(Boolean).filter(function(Q){return Q.contains(B.target)}),H=P.length>0?w(B,P[0]):!b.current.noIsolation;H&&B.cancelable&&B.preventDefault()}}},[]),S=z.useCallback(function(D,B,F,$){var P={name:D,delta:B,target:F,should:$,shadowParent:ZJn(F)};i.current.push(P),setTimeout(function(){i.current=i.current.filter(function(H){return H!==P})},1)},[]),k=z.useCallback(function(D){a.current=Aie(D),c.current=void 0},[]),_=z.useCallback(function(D){S(D.type,pFt(D),D.target,w(D,n.lockRef.current))},[]),C=z.useCallback(function(D){S(D.type,Aie(D),D.target,w(D,n.lockRef.current))},[]);z.useEffect(function(){return vM.push(g),n.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:C}),document.addEventListener("wheel",E,yM),document.addEventListener("touchmove",E,yM),document.addEventListener("touchstart",k,yM),function(){vM=vM.filter(function(D){return D!==g}),document.removeEventListener("wheel",E,yM),document.removeEventListener("touchmove",E,yM),document.removeEventListener("touchstart",k,yM)}},[]);var R=n.removeScrollBar,M=n.inert;return z.createElement(z.Fragment,null,M?z.createElement(g,{styles:YJn(d)}):null,R?z.createElement(BJn,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ZJn(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const QJn=xJn(xVt,XJn);var Cz=z.forwardRef(function(n,i){return z.createElement(kae,O2({},n,{ref:i,sideCar:QJn}))});Cz.classNames=kae.classNames;var eXn=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},EM=new WeakMap,_ie=new WeakMap,kie={},xOe=0,OVt=function(n){return n&&(n.host||OVt(n.parentNode))},tXn=function(n,i){return i.map(function(a){if(n.contains(a))return a;var c=OVt(a);return c&&n.contains(c)?c:(console.error("aria-hidden",a,"in not contained inside",n,". Doing nothing"),null)}).filter(function(a){return!!a})},nXn=function(n,i,a,c){var d=tXn(i,Array.isArray(n)?n:[n]);kie[a]||(kie[a]=new WeakMap);var g=kie[a],b=[],w=new Set,E=new Set(d),S=function(_){!_||w.has(_)||(w.add(_),S(_.parentNode))};d.forEach(S);var k=function(_){!_||E.has(_)||Array.prototype.forEach.call(_.children,function(C){if(w.has(C))k(C);else try{var R=C.getAttribute(c),M=R!==null&&R!=="false",D=(EM.get(C)||0)+1,B=(g.get(C)||0)+1;EM.set(C,D),g.set(C,B),b.push(C),D===1&&M&&_ie.set(C,!0),B===1&&C.setAttribute(a,"true"),M||C.setAttribute(c,"true")}catch(F){console.error("aria-hidden: cannot operate on ",C,F)}})};return k(i),w.clear(),xOe++,function(){b.forEach(function(_){var C=EM.get(_)-1,R=g.get(_)-1;EM.set(_,C),g.set(_,R),C||(_ie.has(_)||_.removeAttribute(c),_ie.delete(_)),R||_.removeAttribute(a)}),xOe--,xOe||(EM=new WeakMap,EM=new WeakMap,_ie=new WeakMap,kie={})}},xae=function(n,i,a){a===void 0&&(a="data-aria-hidden");var c=Array.from(Array.isArray(n)?n:[n]),d=eXn(n);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),nXn(c,d,a,"aria-hidden")):function(){return null}};function rXn(n){const i=iXn(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(sXn);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function iXn(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=uXn(d),w=aXn(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var oXn=Symbol("radix.slottable");function sXn(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===oXn}function aXn(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function uXn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}var Nae="Dialog",[DVt]=Nw(Nae),[cXn,Uv]=DVt(Nae),LVt=n=>{const{__scopeDialog:i,children:a,open:c,defaultOpen:d,onOpenChange:g,modal:b=!0}=n,w=z.useRef(null),E=z.useRef(null),[S,k]=z2({prop:c,defaultProp:d??!1,onChange:g,caller:Nae});return O.jsx(cXn,{scope:i,triggerRef:w,contentRef:E,contentId:Fh(),titleId:Fh(),descriptionId:Fh(),open:S,onOpenChange:k,onOpenToggle:z.useCallback(()=>k(_=>!_),[k]),modal:b,children:a})};LVt.displayName=Nae;var MVt="DialogTrigger",lXn=z.forwardRef((n,i)=>{const{__scopeDialog:a,...c}=n,d=Uv(MVt,a),g=hs(i,d.triggerRef);return O.jsx(eo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":h5e(d.open),...c,ref:g,onClick:Or(n.onClick,d.onOpenToggle)})});lXn.displayName=MVt;var d5e="DialogPortal",[dXn,PVt]=DVt(d5e,{forceMount:void 0}),jVt=n=>{const{__scopeDialog:i,forceMount:a,children:c,container:d}=n,g=Uv(d5e,i);return O.jsx(dXn,{scope:i,forceMount:a,children:z.Children.map(c,b=>O.jsx(Cw,{present:a||g.open,children:O.jsx(Nz,{asChild:!0,container:d,children:b})}))})};jVt.displayName=d5e;var sse="DialogOverlay",FVt=z.forwardRef((n,i)=>{const a=PVt(sse,n.__scopeDialog),{forceMount:c=a.forceMount,...d}=n,g=Uv(sse,n.__scopeDialog);return g.modal?O.jsx(Cw,{present:c||g.open,children:O.jsx(hXn,{...d,ref:i})}):null});FVt.displayName=sse;var fXn=rXn("DialogOverlay.RemoveScroll"),hXn=z.forwardRef((n,i)=>{const{__scopeDialog:a,...c}=n,d=Uv(sse,a);return O.jsx(Cz,{as:fXn,allowPinchZoom:!0,shards:[d.contentRef],children:O.jsx(eo.div,{"data-state":h5e(d.open),...c,ref:i,style:{pointerEvents:"auto",...c.style}})})}),pR="DialogContent",$Vt=z.forwardRef((n,i)=>{const a=PVt(pR,n.__scopeDialog),{forceMount:c=a.forceMount,...d}=n,g=Uv(pR,n.__scopeDialog);return O.jsx(Cw,{present:c||g.open,children:g.modal?O.jsx(pXn,{...d,ref:i}):O.jsx(gXn,{...d,ref:i})})});$Vt.displayName=pR;var pXn=z.forwardRef((n,i)=>{const a=Uv(pR,n.__scopeDialog),c=z.useRef(null),d=hs(i,a.contentRef,c);return z.useEffect(()=>{const g=c.current;if(g)return xae(g)},[]),O.jsx(BVt,{...n,ref:d,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Or(n.onCloseAutoFocus,g=>{var b;g.preventDefault(),(b=a.triggerRef.current)==null||b.focus()}),onPointerDownOutside:Or(n.onPointerDownOutside,g=>{const b=g.detail.originalEvent,w=b.button===0&&b.ctrlKey===!0;(b.button===2||w)&&g.preventDefault()}),onFocusOutside:Or(n.onFocusOutside,g=>g.preventDefault())})}),gXn=z.forwardRef((n,i)=>{const a=Uv(pR,n.__scopeDialog),c=z.useRef(!1),d=z.useRef(!1);return O.jsx(BVt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(c.current||(w=a.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=a.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),BVt=z.forwardRef((n,i)=>{const{__scopeDialog:a,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:g,...b}=n,w=Uv(pR,a),E=z.useRef(null),S=hs(i,E);return _ae(),O.jsxs(O.Fragment,{children:[O.jsx(xz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:O.jsx(kz,{role:"dialog",id:w.contentId,"aria-describedby":w.descriptionId,"aria-labelledby":w.titleId,"data-state":h5e(w.open),...b,ref:S,onDismiss:()=>w.onOpenChange(!1)})}),O.jsxs(O.Fragment,{children:[O.jsx(bXn,{titleId:w.titleId}),O.jsx(wXn,{contentRef:E,descriptionId:w.descriptionId})]})]})}),f5e="DialogTitle",UVt=z.forwardRef((n,i)=>{const{__scopeDialog:a,...c}=n,d=Uv(f5e,a);return O.jsx(eo.h2,{id:d.titleId,...c,ref:i})});UVt.displayName=f5e;var HVt="DialogDescription",zVt=z.forwardRef((n,i)=>{const{__scopeDialog:a,...c}=n,d=Uv(HVt,a);return O.jsx(eo.p,{id:d.descriptionId,...c,ref:i})});zVt.displayName=HVt;var GVt="DialogClose",qVt=z.forwardRef((n,i)=>{const{__scopeDialog:a,...c}=n,d=Uv(GVt,a);return O.jsx(eo.button,{type:"button",...c,ref:i,onClick:Or(n.onClick,()=>d.onOpenChange(!1))})});qVt.displayName=GVt;function h5e(n){return n?"open":"closed"}var VVt="DialogTitleWarning",[tgr,WVt]=MYn(VVt,{contentName:pR,titleName:f5e,docsSlug:"dialog"}),bXn=({titleId:n})=>{const i=WVt(VVt),a=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return z.useEffect(()=>{n&&(document.getElementById(n)||console.error(a))},[a,n]),null},mXn="DialogDescriptionWarning",wXn=({contentRef:n,descriptionId:i})=>{const c=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WVt(mXn).contentName}}.`;return z.useEffect(()=>{var g;const d=(g=n.current)==null?void 0:g.getAttribute("aria-describedby");i&&d&&(document.getElementById(i)||console.warn(c))},[c,n,i]),null},KVt=LVt,YVt=jVt,p5e=FVt,g5e=$Vt,JVt=UVt,XVt=zVt,yXn=qVt;const gR=KVt,vXn=YVt,ZVt=z.forwardRef(({className:n,...i},a)=>O.jsx(p5e,{ref:a,className:kr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-40 bg-black/80 data-[state=closed]:animate-out data-[state=open]:animate-in",n),...i}));ZVt.displayName=p5e.displayName;const aN=z.forwardRef(({className:n,children:i,container:a,...c},d)=>{const{t:g}=zs(["common"]);return O.jsxs(vXn,{container:a,children:[O.jsx(ZVt,{}),O.jsxs(g5e,{ref:d,className:kr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg",n),...c,children:[i,O.jsxs(yXn,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[O.jsx(eae,{className:"h-4 w-4"}),O.jsx("span",{className:"sr-only",children:g("buttons.close")})]})]})]})});aN.displayName=g5e.displayName;const uN=({className:n,...i})=>O.jsx("div",{className:kr("flex flex-col space-y-1.5 text-center sm:text-left",n),...i});uN.displayName="DialogHeader";const cN=z.forwardRef(({className:n,...i},a)=>O.jsx(JVt,{ref:a,className:kr("font-semibold text-lg leading-none tracking-tight",n),...i}));cN.displayName=JVt.displayName;const lN=z.forwardRef(({className:n,...i},a)=>O.jsx(XVt,{ref:a,className:kr("text-muted-foreground text-sm",n),...i}));lN.displayName=XVt.displayName;const Ba=z.forwardRef(({className:n,type:i,...a},c)=>O.jsx("input",{type:i,className:kr("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:c,...a}));Ba.displayName="Input";var Cae="Switch",[EXn]=Nw(Cae),[SXn,TXn]=EXn(Cae),QVt=z.forwardRef((n,i)=>{const{__scopeSwitch:a,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E="on",onCheckedChange:S,form:k,..._}=n,[C,R]=z.useState(null),M=hs(i,P=>R(P)),D=z.useRef(!1),B=C?k||!!C.closest("form"):!0,[F,$]=z2({prop:d,defaultProp:g??!1,onChange:S,caller:Cae});return O.jsxs(SXn,{scope:a,checked:F,disabled:w,children:[O.jsx(eo.button,{type:"button",role:"switch","aria-checked":F,"aria-required":b,"data-state":rWt(F),"data-disabled":w?"":void 0,disabled:w,value:E,..._,ref:M,onClick:Or(n.onClick,P=>{$(H=>!H),B&&(D.current=P.isPropagationStopped(),D.current||P.stopPropagation())})}),B&&O.jsx(nWt,{control:C,bubbles:!D.current,name:c,value:E,checked:F,required:b,disabled:w,form:k,style:{transform:"translateX(-100%)"}})]})});QVt.displayName=Cae;var eWt="SwitchThumb",tWt=z.forwardRef((n,i)=>{const{__scopeSwitch:a,...c}=n,d=TXn(eWt,a);return O.jsx(eo.span,{"data-state":rWt(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:i})});tWt.displayName=eWt;var AXn="SwitchBubbleInput",nWt=z.forwardRef(({__scopeSwitch:n,control:i,checked:a,bubbles:c=!0,...d},g)=>{const b=z.useRef(null),w=hs(b,g),E=Sae(a),S=Tae(i);return z.useEffect(()=>{const k=b.current;if(!k)return;const _=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(_,"checked").set;if(E!==a&&R){const M=new Event("click",{bubbles:c});R.call(k,a),k.dispatchEvent(M)}},[E,a,c]),O.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...d,tabIndex:-1,ref:w,style:{...d.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nWt.displayName=AXn;function rWt(n){return n?"checked":"unchecked"}var iWt=QVt,_Xn=tWt;const _A=z.forwardRef(({className:n,...i},a)=>O.jsx(iWt,{className:kr("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...i,ref:a,children:O.jsx(_Xn,{className:kr("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));_A.displayName=iWt.displayName;function yA(n){return Array.isArray?Array.isArray(n):aWt(n)==="[object Array]"}function kXn(n){if(typeof n=="string")return n;let i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function xXn(n){return n==null?"":kXn(n)}function L2(n){return typeof n=="string"}function oWt(n){return typeof n=="number"}function NXn(n){return n===!0||n===!1||CXn(n)&&aWt(n)=="[object Boolean]"}function sWt(n){return typeof n=="object"}function CXn(n){return sWt(n)&&n!==null}function Dm(n){return n!=null}function NOe(n){return!n.trim().length}function aWt(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const IXn="Incorrect 'index' type",RXn=n=>`Invalid value for key ${n}`,OXn=n=>`Pattern length exceeds max of ${n}.`,DXn=n=>`Missing ${n} property in key`,LXn=n=>`Property 'weight' in key '${n}' must be a positive integer`,bFt=Object.prototype.hasOwnProperty;class MXn{constructor(i){this._keys=[],this._keyMap={};let a=0;i.forEach(c=>{let d=uWt(c);this._keys.push(d),this._keyMap[d.id]=d,a+=d.weight}),this._keys.forEach(c=>{c.weight/=a})}get(i){return this._keyMap[i]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function uWt(n){let i=null,a=null,c=null,d=1,g=null;if(L2(n)||yA(n))c=n,i=mFt(n),a=ADe(n);else{if(!bFt.call(n,"name"))throw new Error(DXn("name"));const b=n.name;if(c=b,bFt.call(n,"weight")&&(d=n.weight,d<=0))throw new Error(LXn(b));i=mFt(b),a=ADe(b),g=n.getFn}return{path:i,id:a,weight:d,src:c,getFn:g}}function mFt(n){return yA(n)?n:n.split(".")}function ADe(n){return yA(n)?n.join("."):n}function PXn(n,i){let a=[],c=!1;const d=(g,b,w)=>{if(Dm(g))if(!b[w])a.push(g);else{let E=b[w];const S=g[E];if(!Dm(S))return;if(w===b.length-1&&(L2(S)||oWt(S)||NXn(S)))a.push(xXn(S));else if(yA(S)){c=!0;for(let k=0,_=S.length;k<_;k+=1)d(S[k],b,w+1)}else b.length&&d(S,b,w+1)}};return d(n,L2(i)?i.split("."):i,0),c?a:a[0]}const jXn={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},FXn={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(n,i)=>n.score===i.score?n.idx{this._keysMap[a.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,L2(this.docs[0])?this.docs.forEach((i,a)=>{this._addString(i,a)}):this.docs.forEach((i,a)=>{this._addObject(i,a)}),this.norm.clear())}add(i){const a=this.size();L2(i)?this._addString(i,a):this._addObject(i,a)}removeAt(i){this.records.splice(i,1);for(let a=i,c=this.size();a{let b=d.getFn?d.getFn(i):this.getFn(i,d.path);if(Dm(b)){if(yA(b)){let w=[];const E=[{nestedArrIndex:-1,value:b}];for(;E.length;){const{nestedArrIndex:S,value:k}=E.pop();if(Dm(k))if(L2(k)&&!NOe(k)){let _={v:k,i:S,n:this.norm.get(k)};w.push(_)}else yA(k)&&k.forEach((_,C)=>{E.push({nestedArrIndex:C,value:_})})}c.$[g]=w}else if(L2(b)&&!NOe(b)){let w={v:b,n:this.norm.get(b)};c.$[g]=w}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function cWt(n,i,{getFn:a=ao.getFn,fieldNormWeight:c=ao.fieldNormWeight}={}){const d=new b5e({getFn:a,fieldNormWeight:c});return d.setKeys(n.map(uWt)),d.setSources(i),d.create(),d}function zXn(n,{getFn:i=ao.getFn,fieldNormWeight:a=ao.fieldNormWeight}={}){const{keys:c,records:d}=n,g=new b5e({getFn:i,fieldNormWeight:a});return g.setKeys(c),g.setIndexRecords(d),g}function xie(n,{errors:i=0,currentLocation:a=0,expectedLocation:c=0,distance:d=ao.distance,ignoreLocation:g=ao.ignoreLocation}={}){const b=i/n.length;if(g)return b;const w=Math.abs(c-a);return d?b+w/d:w?1:b}function GXn(n=[],i=ao.minMatchCharLength){let a=[],c=-1,d=-1,g=0;for(let b=n.length;g=i&&a.push([c,d]),c=-1)}return n[g-1]&&g-c>=i&&a.push([c,g-1]),a}const q4=32;function qXn(n,i,a,{location:c=ao.location,distance:d=ao.distance,threshold:g=ao.threshold,findAllMatches:b=ao.findAllMatches,minMatchCharLength:w=ao.minMatchCharLength,includeMatches:E=ao.includeMatches,ignoreLocation:S=ao.ignoreLocation}={}){if(i.length>q4)throw new Error(OXn(q4));const k=i.length,_=n.length,C=Math.max(0,Math.min(c,_));let R=g,M=C;const D=w>1||E,B=D?Array(_):[];let F;for(;(F=n.indexOf(i,M))>-1;){let ee=xie(i,{currentLocation:F,expectedLocation:C,distance:d,ignoreLocation:S});if(R=Math.min(ee,R),M=F+k,D){let ae=0;for(;ae=ve;fe-=1){let De=fe-1,Se=a[n.charAt(De)];if(D&&(B[De]=+!!Se),ge[fe]=(ge[fe+1]<<1|1)&Se,ee&&(ge[fe]|=($[fe+1]|$[fe])<<1|1|$[fe+1]),ge[fe]&Q&&(P=xie(i,{errors:ee,currentLocation:De,expectedLocation:C,distance:d,ignoreLocation:S}),P<=R)){if(R=P,M=De,M<=C)break;ve=Math.max(1,2*C-M)}}if(xie(i,{errors:ee+1,currentLocation:C,expectedLocation:C,distance:d,ignoreLocation:S})>R)break;$=ge}const re={isMatch:M>=0,score:Math.max(.001,P)};if(D){const ee=GXn(B,w);ee.length?E&&(re.indices=ee):re.isMatch=!1}return re}function VXn(n){let i={};for(let a=0,c=n.length;an.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):n=>n;class lWt{constructor(i,{location:a=ao.location,threshold:c=ao.threshold,distance:d=ao.distance,includeMatches:g=ao.includeMatches,findAllMatches:b=ao.findAllMatches,minMatchCharLength:w=ao.minMatchCharLength,isCaseSensitive:E=ao.isCaseSensitive,ignoreDiacritics:S=ao.ignoreDiacritics,ignoreLocation:k=ao.ignoreLocation}={}){if(this.options={location:a,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:k},i=E?i:i.toLowerCase(),i=S?ase(i):i,this.pattern=i,this.chunks=[],!this.pattern.length)return;const _=(R,M)=>{this.chunks.push({pattern:R,alphabet:VXn(R),startIndex:M})},C=this.pattern.length;if(C>q4){let R=0;const M=C%q4,D=C-M;for(;R{const{isMatch:$,score:P,indices:H}=qXn(i,D,B,{location:g+F,distance:b,threshold:w,findAllMatches:E,minMatchCharLength:S,includeMatches:d,ignoreLocation:k});$&&(R=!0),C+=P,$&&H&&(_=[..._,...H])});let M={isMatch:R,score:R?C/this.chunks.length:1};return R&&d&&(M.indices=_),M}}class vN{constructor(i){this.pattern=i}static isMultiMatch(i){return wFt(i,this.multiRegex)}static isSingleMatch(i){return wFt(i,this.singleRegex)}search(){}}function wFt(n,i){const a=n.match(i);return a?a[1]:null}class WXn extends vN{constructor(i){super(i)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(i){const a=i===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}class KXn extends vN{constructor(i){super(i)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(i){const c=i.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,i.length-1]}}}class YXn extends vN{constructor(i){super(i)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(i){const a=i.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}}class JXn extends vN{constructor(i){super(i)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(i){const a=!i.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,i.length-1]}}}class XXn extends vN{constructor(i){super(i)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(i){const a=i.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[i.length-this.pattern.length,i.length-1]}}}class ZXn extends vN{constructor(i){super(i)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(i){const a=!i.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,i.length-1]}}}class dWt extends vN{constructor(i,{location:a=ao.location,threshold:c=ao.threshold,distance:d=ao.distance,includeMatches:g=ao.includeMatches,findAllMatches:b=ao.findAllMatches,minMatchCharLength:w=ao.minMatchCharLength,isCaseSensitive:E=ao.isCaseSensitive,ignoreDiacritics:S=ao.ignoreDiacritics,ignoreLocation:k=ao.ignoreLocation}={}){super(i),this._bitapSearch=new lWt(i,{location:a,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:k})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(i){return this._bitapSearch.searchIn(i)}}class fWt extends vN{constructor(i){super(i)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(i){let a=0,c;const d=[],g=this.pattern.length;for(;(c=i.indexOf(this.pattern,a))>-1;)a=c+g,d.push([c,a-1]);const b=!!d.length;return{isMatch:b,score:b?0:1,indices:d}}}const _De=[WXn,fWt,YXn,JXn,ZXn,XXn,KXn,dWt],yFt=_De.length,QXn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,eZn="|";function tZn(n,i={}){return n.split(eZn).map(a=>{let c=a.trim().split(QXn).filter(g=>g&&!!g.trim()),d=[];for(let g=0,b=c.length;g!!(n[use.AND]||n[use.OR]),oZn=n=>!!n[NDe.PATH],sZn=n=>!yA(n)&&sWt(n)&&!CDe(n),vFt=n=>({[use.AND]:Object.keys(n).map(i=>({[i]:n[i]}))});function hWt(n,i,{auto:a=!0}={}){const c=d=>{let g=Object.keys(d);const b=oZn(d);if(!b&&g.length>1&&!CDe(d))return c(vFt(d));if(sZn(d)){const E=b?d[NDe.PATH]:g[0],S=b?d[NDe.PATTERN]:d[E];if(!L2(S))throw new Error(RXn(E));const k={keyId:ADe(E),pattern:S};return a&&(k.searcher=xDe(S,i)),k}let w={children:[],operator:g[0]};return g.forEach(E=>{const S=d[E];yA(S)&&S.forEach(k=>{w.children.push(c(k))})}),w};return CDe(n)||(n=vFt(n)),c(n)}function aZn(n,{ignoreFieldNorm:i=ao.ignoreFieldNorm}){n.forEach(a=>{let c=1;a.matches.forEach(({key:d,norm:g,score:b})=>{const w=d?d.weight:null;c*=Math.pow(b===0&&w?Number.EPSILON:b,(w||1)*(i?1:g))}),a.score=c})}function uZn(n,i){const a=n.matches;i.matches=[],Dm(a)&&a.forEach(c=>{if(!Dm(c.indices)||!c.indices.length)return;const{indices:d,value:g}=c;let b={indices:d,value:g};c.key&&(b.key=c.key.src),c.idx>-1&&(b.refIndex=c.idx),i.matches.push(b)})}function cZn(n,i){i.score=n.score}function lZn(n,i,{includeMatches:a=ao.includeMatches,includeScore:c=ao.includeScore}={}){const d=[];return a&&d.push(uZn),c&&d.push(cZn),n.map(g=>{const{idx:b}=g,w={item:i[b],refIndex:b};return d.length&&d.forEach(E=>{E(g,w)}),w})}class RR{constructor(i,a={},c){this.options={...ao,...a},this.options.useExtendedSearch,this._keyStore=new MXn(this.options.keys),this.setCollection(i,c)}setCollection(i,a){if(this._docs=i,a&&!(a instanceof b5e))throw new Error(IXn);this._myIndex=a||cWt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(i){Dm(i)&&(this._docs.push(i),this._myIndex.add(i))}remove(i=()=>!1){const a=[];for(let c=0,d=this._docs.length;c-1&&(E=E.slice(0,a)),lZn(E,this._docs,{includeMatches:c,includeScore:d})}_searchStringList(i){const a=xDe(i,this.options),{records:c}=this._myIndex,d=[];return c.forEach(({v:g,i:b,n:w})=>{if(!Dm(g))return;const{isMatch:E,score:S,indices:k}=a.searchIn(g);E&&d.push({item:g,idx:b,matches:[{score:S,value:g,norm:w,indices:k}]})}),d}_searchLogical(i){const a=hWt(i,this.options),c=(w,E,S)=>{if(!w.children){const{keyId:_,searcher:C}=w,R=this._findMatches({key:this._keyStore.get(_),value:this._myIndex.getValueForItemAtKeyId(E,_),searcher:C});return R&&R.length?[{idx:S,item:E,matches:R}]:[]}const k=[];for(let _=0,C=w.children.length;_{if(Dm(w)){let S=c(a,w,E);S.length&&(g[E]||(g[E]={idx:E,item:w,matches:[]},b.push(g[E])),S.forEach(({matches:k})=>{g[E].matches.push(...k)}))}}),b}_searchObjectList(i){const a=xDe(i,this.options),{keys:c,records:d}=this._myIndex,g=[];return d.forEach(({$:b,i:w})=>{if(!Dm(b))return;let E=[];c.forEach((S,k)=>{E.push(...this._findMatches({key:S,value:b[k],searcher:a}))}),E.length&&g.push({idx:w,item:b,matches:E})}),g}_findMatches({key:i,value:a,searcher:c}){if(!Dm(a))return[];let d=[];if(yA(a))a.forEach(({v:g,i:b,n:w})=>{if(!Dm(g))return;const{isMatch:E,score:S,indices:k}=c.searchIn(g);E&&d.push({score:S,key:i,value:g,idx:b,norm:w,indices:k})});else{const{v:g,n:b}=a,{isMatch:w,score:E,indices:S}=c.searchIn(g);w&&d.push({score:E,key:i,value:g,norm:b,indices:S})}return d}}RR.version="7.1.0";RR.createIndex=cWt;RR.parseIndex=zXn;RR.config=ao;RR.parseQuery=hWt;iZn(rZn);function dZn(n){return Array.isArray(n)?n.filter(i=>typeof i=="string"):typeof n=="string"&&n.trim()?[n]:[]}function fZn(n,i){if(!n.entity_id.startsWith("automation."))return null;const a=typeof n.attributes.friendly_name=="string"?n.attributes.friendly_name:n.entity_id,c=typeof n.attributes.id=="string"||typeof n.attributes.id=="number"?String(n.attributes.id):n.entity_id.replace("automation.","");return{entity_id:n.entity_id,automation_id:c,friendly_name:a,enabled:n.state==="on",last_triggered:typeof n.attributes.last_triggered=="string"?n.attributes.last_triggered:void 0,description:typeof n.attributes.description=="string"?n.attributes.description:"",mode:typeof n.attributes.mode=="string"?n.attributes.mode:void 0,area_id:i,tags:dZn(n.attributes.tags)}}function hZn(n){return[n.entity_id,n.friendly_name,n.description,n.mode||"",n.tags.join(" ")].filter(Boolean).join(" ")}function pZn(n,i,a){return i?[...n].sort((c,d)=>{let g=0;switch(i){case"name":{g=c.friendly_name.toLowerCase().localeCompare(d.friendly_name.toLowerCase());break}case"lastTriggered":{const b=c.last_triggered?new Date(c.last_triggered).getTime():0,w=d.last_triggered?new Date(d.last_triggered).getTime():0;g=b-w;break}case"enabled":{g=Number(c.enabled)-Number(d.enabled);break}}return a==="asc"?g:-g}):[...n]}function gZn(n,i){if(!i.trim())return[...n];const a=n.map(d=>({...d,searchText:hZn(d)}));return new RR(a,{keys:["searchText","entity_id","friendly_name","description"],threshold:.4,ignoreLocation:!0,includeScore:!0,minMatchCharLength:2}).search(i).map(d=>{const{searchText:g,...b}=d.item;return b})}function bZn(n,i,a){const c={};for(const d of n){const g=d.area_id?i[d.area_id]||a.otherArea:a.noArea;c[g]||(c[g]=[]),c[g].push(d)}return c}function mZn({isOpen:n,hass:i,hassConfig:a,entities:c,searchTerm:d,sortColumn:g,sortDirection:b,labels:w}){const[E,S]=z.useState([]),[k,_]=z.useState([]);z.useEffect(()=>{if(!n||!i)return;const $=Lv(i,a);let P=!1;return(async()=>{try{const[H,Q]=await Promise.all([$.getAreas(),$.getEntities()]);P||(S(Array.isArray(H)?H:[]),_(Array.isArray(Q)?Q:[]))}catch{P||(S([]),_([]))}})(),()=>{P=!0}},[n,i,a]);const C=z.useMemo(()=>{const $={};for(const P of k)P.entity_id&&P.area_id&&($[P.entity_id]=P.area_id);return $},[k]),R=z.useMemo(()=>{const $={};for(const P of E)P.area_id&&P.name&&($[P.area_id]=P.name);return $},[E]),M=z.useMemo(()=>c.map($=>fZn($,C[$.entity_id])).filter($=>$!==null),[c,C]),D=z.useMemo(()=>gZn(M,d),[M,d]),B=z.useMemo(()=>pZn(D,g,b),[D,g,b]),F=z.useMemo(()=>bZn(B,R,w),[B,R,w]);return{areas:E,entityRegistry:k,areaIdToName:R,catalogItems:M,filteredCatalogItems:D,sortedCatalogItems:B,catalogByArea:F}}function wZn(n){if(n.length===0)return{minX:0,minY:0,width:0,height:0};let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,d=Number.NEGATIVE_INFINITY;for(const g of n)i=Math.min(i,g.position.x),a=Math.min(a,g.position.y),c=Math.max(c,g.position.x),d=Math.max(d,g.position.y);return{minX:i,minY:a,width:Math.max(0,c-i),height:Math.max(0,d-a)}}function yZn(n,i){return`${n.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||`source_${i+1}`}_${i+1}`}function vZn(n){const i={};for(const a of n)if(a.variables)for(const[c,d]of Object.entries(a.variables)){if(!(c in i)){i[c]=d;continue}JSON.stringify(i[c])!==JSON.stringify(d)&&(i[`${a.prefix}__${c}`]=d)}return Object.keys(i).length>0?i:void 0}function EZn(n){var C;if(n.length<2)throw new Error("At least two automations are required for merge.");const i=Math.max(1,Math.ceil(Math.sqrt(n.length))),a=n.map(R=>wZn(R.graph.nodes)),c=Math.max(...a.map(R=>R.width),0),d=Math.max(...a.map(R=>R.height),0),g=c+260,b=d+220,w=[],E=[],S=[],k=[];n.forEach((R,M)=>{const D=yZn(R.alias||R.automationId||R.entityId,M),B=a[M],F=M%i,$=Math.floor(M/i),P=F*g,H=$*b,Q=new Map;for(const re of R.graph.nodes){const ee=`${D}__${re.id}`;Q.set(re.id,ee),w.push({...re,id:ee,position:{x:re.position.x-B.minX+P,y:re.position.y-B.minY+H}})}for(const re of R.graph.edges){const ee=Q.get(re.source),ae=Q.get(re.target);!ee||!ae||E.push({...re,id:`${D}__${re.id}`,source:ee,target:ae})}S.push({automation_id:R.automationId,entity_id:R.entityId,alias:R.alias,node_prefix:D,imported_at:R.importedAt??new Date().toISOString()}),k.push({prefix:D,variables:R.graph.userVariables})});const _={mode:"single",initial_state:!0,...((C=n[0])==null?void 0:C.graph.metadata)||{}};return{id:i5e(),name:"Merged Automation",description:`Merged from ${n.length} automations`,nodes:w,edges:E,metadata:_,version:1,workspace:{mode:"merged",sources:S},userVariables:vZn(k)}}function SZn({isOpen:n,onClose:i}){const{t:a}=zs(["common","dialogs","errors"]),[c,d]=z.useState(""),[g,b]=z.useState(null),[w,E]=z.useState("asc"),[S,k]=z.useState(new Set),[_,C]=z.useState(!1),[R,M]=z.useState(null),{hass:D,config:B,entities:F}=Gm(),{setFlowName:$,setAutomationId:P,reset:H,fromFlowGraph:Q,hasRealChanges:re}=ds(),{fitView:ee}=AR(),{catalogByArea:ae,sortedCatalogItems:he}=mZn({isOpen:n,hass:D,hassConfig:B,entities:F,searchTerm:c,sortColumn:g,sortDirection:w,labels:{noArea:a("dialogs:import.noArea"),otherArea:a("dialogs:import.otherArea")}});z.useEffect(()=>{n||(k(new Set),d(""))},[n]);const ve=z.useMemo(()=>he.filter(ft=>S.has(ft.entity_id)),[he,S]),de=z.useMemo(()=>he.length===0?!1:he.every(ft=>S.has(ft.entity_id)),[he,S]),ge=he.length>0,Y=ft=>{if(re()){M(()=>ft),C(!0);return}ft()},fe=()=>{R&&R(),C(!1),M(null)},De=()=>{C(!1),M(null)},Se=ft=>{g===ft?E(w==="asc"?"desc":"asc"):(b(ft),E("asc"))},$e=ft=>g!==ft?O.jsx(F9n,{className:"ml-1 inline h-3 w-3 opacity-50"}):w==="asc"?O.jsx(B9n,{className:"ml-1 inline h-3 w-3"}):O.jsx(P9n,{className:"ml-1 inline h-3 w-3"}),Te=ft=>{k(Kt=>{const kt=new Set(Kt);return kt.has(ft)?kt.delete(ft):kt.add(ft),kt})},ke=()=>{k(ft=>{const Kt=new Set(ft);if(de)for(const kt of he)Kt.delete(kt.entity_id);else for(const kt of he)Kt.add(kt.entity_id);return Kt})},Je=async ft=>{var Kt;try{const kt=Lv(D,B);if(!kt.isConnected())throw new Error(a("errors:connection.noConnection"));const It=await kt.getAutomationConfigWithFallback(ft.automation_id,ft.friendly_name);if(H(),It){const Xt=ise(It,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Bn=await mDe.fromYaml(Xt);if(!Bn.success||!Bn.graph)throw new Error(((Kt=Bn.errors)==null?void 0:Kt.join(` -`))||a("errors:import.parseFailed"));Q(Bn.graph),setTimeout(()=>{ee({padding:.2,duration:300})},50),$(ft.friendly_name||ft.automation_id),P(ft.automation_id),N2.success(a("dialogs:import.importSuccess",{name:ft.friendly_name||ft.automation_id}))}else $(ft.friendly_name||ft.automation_id),P(ft.automation_id),N2.warning(a("dialogs:import.openedWarning",{name:ft.friendly_name||ft.automation_id}),{description:a("dialogs:import.openedWarningDescription")});i()}catch(kt){console.error("C.A.F.E.: Failed to open automation:",kt),N2.error(a("dialogs:import.importFailed",{message:kt.message}))}},bt=()=>{ve.length===1&&Y(()=>{Je(ve[0])})},qe=ft=>{const Kt=ft.map(kt=>kt.friendly_name).filter(Boolean);return Kt.length===0?a("dialogs:import.defaultMergedName"):Kt.length<=2?Kt.join(" + "):`${Kt[0]} + ${Kt.length-1} more`},_t=async()=>{if(!(ve.length<2))try{const ft=Lv(D,B);if(!ft.isConnected())throw new Error(a("errors:connection.noConnection"));const Kt=await ft.getAutomationConfigsBatch(ve.map(Xt=>Xt.automation_id)),kt=[];for(const Xt of ve){let Bn=Kt[Xt.automation_id];if(Bn||(Bn=await ft.getAutomationConfigWithFallback(Xt.automation_id,Xt.friendly_name)),!Bn)throw new Error(a("dialogs:import.mergeFailedMissingConfig",{name:Xt.friendly_name}));const tr=ise(Bn,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Zn=await mDe.fromYaml(tr);if(!Zn.success||!Zn.graph)throw new Error(a("dialogs:import.mergeFailedInvalidYaml",{name:Xt.friendly_name}));kt.push({graph:Zn.graph,automationId:Xt.automation_id,entityId:Xt.entity_id,alias:Xt.friendly_name||Xt.automation_id})}const It=EZn(kt);Q(It),$(qe(ve)),P(null),k(new Set),setTimeout(()=>{ee({padding:.2,duration:300})},50),N2.success(a("dialogs:import.mergeSuccess",{count:ve.length})),i()}catch(ft){console.error("C.A.F.E.: Failed to merge automations:",ft),N2.error(a("dialogs:import.mergeFailed",{message:ft.message}))}},At=ft=>{if(!ft)return a("dialogs:import.never");const Kt=new Date(ft),It=new Date().getTime()-Kt.getTime(),Xt=Math.floor(It/(1e3*60)),Bn=Math.floor(Xt/60),tr=Math.floor(Bn/24);return Xt<1?a("dialogs:import.justNow"):Xt<60?a("dialogs:import.minutesAgo",{count:Xt}):Bn<24?a("dialogs:import.hoursAgo",{count:Bn}):tr<7?a("dialogs:import.daysAgo",{count:tr}):Kt.toLocaleDateString()};return n?O.jsxs(gR,{open:n,onOpenChange:i,children:[O.jsxs(aN,{className:"flex max-h-[90vh] max-w-4xl flex-col",children:[O.jsx(uN,{className:"space-y-3",children:O.jsxs("div",{className:"flex items-center justify-between pr-8",children:[O.jsxs("div",{children:[O.jsx(cN,{children:a("dialogs:import.title")}),O.jsx(lN,{children:a("dialogs:import.descriptionFull")})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsxs(Di,{variant:"outline",onClick:ve.length===1?bt:()=>Y(()=>void _t()),disabled:ve.length===0,children:[ve.length>1?O.jsx(x8n,{className:"mr-2 h-4 w-4"}):O.jsx(l9t,{className:"mr-2 h-4 w-4"}),ve.length>1?a("dialogs:import.openTogether"):a("dialogs:import.openSingle")]}),O.jsxs(Di,{onClick:()=>{Y(()=>{H(),$(a("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[O.jsx(Yzt,{className:"mr-2 h-4 w-4"}),a("dialogs:import.createNew")]})]})]})}),O.jsxs("div",{className:"flex min-h-0 flex-col",children:[O.jsxs("div",{className:"relative mb-4",children:[O.jsx(eGt,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),O.jsx(Ba,{type:"text",placeholder:a("dialogs:import.searchPlaceholder"),value:c,onChange:ft=>d(ft.target.value),className:"pl-10"})]}),O.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-t-md",children:O.jsxs("div",{className:"min-w-full",children:[O.jsx("div",{className:"sticky top-0 z-20 bg-background before:absolute before:-top-px before:right-0 before:left-0 before:h-px before:bg-background",children:O.jsxs("div",{className:"flex",children:[O.jsx("div",{className:"flex w-[44px] items-center justify-center border-b bg-muted px-2 py-2",children:O.jsx(EDe,{checked:de,onCheckedChange:ke,title:a(de?"dialogs:import.unselectAll":"dialogs:import.selectAll")})}),O.jsxs("button",{type:"button",onClick:()=>Se("name"),className:"flex-1 cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[a("dialogs:import.columns.name"),$e("name")]}),O.jsxs("button",{type:"button",onClick:()=>Se("lastTriggered"),className:"w-[120px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[a("dialogs:import.columns.lastTriggered"),$e("lastTriggered")]}),O.jsxs("button",{type:"button",onClick:()=>Se("enabled"),className:"w-[80px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[a("dialogs:import.columns.enabled"),$e("enabled")]}),O.jsx("div",{className:"w-[60px] border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs",children:a("dialogs:import.columns.action")})]})}),O.jsxs("div",{children:[Object.entries(ae).flatMap(([ft,Kt])=>{if(Kt.length===0)return[];const kt=O.jsx("div",{className:"sticky top-[32px] z-10 -mt-1 flex border-b bg-accent",children:O.jsx("div",{className:"flex-1 px-3 py-2 font-bold text-accent-foreground text-xs",children:ft})},ft),It=Kt.map(Xt=>{const Bn=S.has(Xt.entity_id);return O.jsxs("div",{className:`flex border-b last:border-0 ${Bn?"bg-accent/40":""}`,children:[O.jsx("div",{className:"flex w-[44px] items-center justify-center px-2 py-2",children:O.jsx(EDe,{checked:Bn,onCheckedChange:()=>Te(Xt.entity_id),title:a(Bn?"dialogs:import.unselect":"dialogs:import.select")})}),O.jsxs("div",{className:"flex-1 px-3 py-2 align-top",children:[O.jsx("div",{className:"max-w-[180px] font-medium",children:Xt.friendly_name}),Xt.description&&O.jsx("div",{className:"mt-1 max-w-[180px] truncate text-muted-foreground text-xs",children:Xt.description}),Xt.tags.length>0&&O.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Xt.tags.map(tr=>O.jsx(u5e,{variant:"secondary",className:"text-xs",children:tr},`${Xt.entity_id}-${tr}`))}),O.jsx("div",{className:"mt-1 truncate text-muted-foreground text-xs",children:a("dialogs:import.ID",{id:Xt.automation_id})}),Xt.mode&&O.jsx("div",{className:"text-muted-foreground text-xs",children:a("dialogs:import.mode",{mode:Xt.mode})})]}),O.jsx("div",{className:"w-[120px] max-w-[120px] px-3 py-2 align-top",children:Xt.last_triggered?O.jsx("span",{className:"whitespace-nowrap text-xs",children:At(Xt.last_triggered)}):O.jsx("span",{className:"text-muted-foreground text-xs",children:a("dialogs:import.never")})}),O.jsx("div",{className:"w-[80px] px-3 py-2 text-center align-top",children:O.jsx(_A,{checked:Xt.enabled,onCheckedChange:async tr=>{try{await Lv(D,B).setAutomationState(Xt.entity_id,tr),N2.success(a(tr?"dialogs:import.automationEnabled":"dialogs:import.automationDisabled"))}catch{N2.error(a("dialogs:import.updateStateFailed"))}},"aria-label":Xt.enabled?a("dialogs:import.columns.enabled"):a("dialogs:import.disabled")})}),O.jsx("div",{className:"w-[60px] px-3 py-2 text-center align-top",children:O.jsx(Di,{size:"icon",variant:"ghost",onClick:()=>Y(()=>void Je(Xt)),title:a("dialogs:import.importAutomation"),children:O.jsx(l9t,{className:"h-4 w-4"})})})]},Xt.entity_id)});return[O.jsxs(Hn.Fragment,{children:[kt,It]},ft)]}),!ge&&O.jsx("div",{className:"flex",children:O.jsx("div",{className:"flex-1 py-8 text-center text-muted-foreground",children:a("dialogs:import.noAutomations")})})]})]})})]}),O.jsx("div",{className:"border-t bg-muted/20 p-6",children:O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("p",{className:"text-muted-foreground text-sm",children:a("dialogs:import.openingWarning")}),O.jsx(Di,{onClick:i,variant:"ghost",children:a("buttons.cancel")})]})})]}),O.jsx(gR,{open:_,onOpenChange:De,children:O.jsxs(aN,{className:"max-w-md",children:[O.jsxs(uN,{children:[O.jsx(cN,{children:a("dialogs:import.discardTitle")}),O.jsx(lN,{children:a("dialogs:import.discardDescription")})]}),O.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[O.jsx(Di,{variant:"outline",onClick:De,children:a("buttons.cancel")}),O.jsx(Di,{variant:"destructive",onClick:fe,children:a("dialogs:import.confirmDiscard")})]})]})})]}):null}const TZn=Eae("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),cA=z.forwardRef(({className:n,variant:i,...a},c)=>O.jsx("div",{ref:c,role:"alert",className:kr(TZn({variant:i}),n),...a}));cA.displayName="Alert";const pWt=z.forwardRef(({className:n,...i},a)=>O.jsx("h5",{ref:a,className:kr("mb-1 font-medium leading-none tracking-tight",n),...i}));pWt.displayName="AlertTitle";const lA=z.forwardRef(({className:n,...i},a)=>O.jsx("div",{ref:a,className:kr("text-sm [&_p]:leading-relaxed",n),...i}));lA.displayName="AlertDescription";var AZn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_Zn=AZn.reduce((n,i)=>{const a=vae(`Primitive.${i}`),c=z.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?a:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),kZn="Label",gWt=z.forwardRef((n,i)=>O.jsx(_Zn.label,{...n,ref:i,onMouseDown:a=>{var d;a.target.closest("button, input, select, textarea")||((d=n.onMouseDown)==null||d.call(n,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));gWt.displayName=kZn;var bWt=gWt;const xZn=Eae("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ll=z.forwardRef(({className:n,...i},a)=>O.jsx(bWt,{ref:a,className:kr(xZn(),n),...i}));ll.displayName=bWt.displayName;const jv=z.forwardRef(({className:n,...i},a)=>O.jsx("textarea",{className:kr("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:a,...i}));jv.displayName="Textarea";function NZn({isOpen:n,onClose:i,onSaved:a}){const{t:c}=zs(["common","dialogs","errors"]),{flowName:d,flowDescription:g,automationId:b,isSaving:w,setFlowName:E,setFlowDescription:S,setAutomationId:k,saveAutomation:_,updateAutomation:C}=ds(),{hass:R}=Gm(),[M,D]=z.useState(g),[B,F]=z.useState(null),[$,P]=z.useState(null),H=!!b;z.useEffect(()=>{n&&(D(g),F(null),P(null))},[n,g]);const Q=async de=>{if(!de.trim()){P(null);return}try{if(await Lv(R).automationExistsByAlias(de)&&!H){const Y=await Lv(R).getUniqueAutomationAlias(de);P(Y)}else P(null)}catch(ge){console.warn("Failed to check name conflict:",ge),P(null)}},re=async()=>{if(!R){F(c("errors:connection.notConnected"));return}if(!d.trim()){F(c("errors:form.nameRequired"));return}F(null);try{S(M.trim());let de;H?(await C(R),de=b||""):de=await _(R),a==null||a(de),i()}catch(de){const ge=de instanceof Error?de.message:c("errors:api.unknownError");F(ge)}},ee=()=>{F(null),P(null),i()},ae=de=>{E(de),Q(de)},he=()=>{$&&(E($),P(null))},ve=async()=>{if(!R){F(c("errors:connection.notConnected"));return}F(null);try{const de=await Lv(R).getUniqueAutomationAlias(d);E(de),S(M.trim()),k(null);const ge=await _(R);a==null||a(ge),i()}catch(de){const ge=de instanceof Error?de.message:c("errors:api.unknownError");F(ge)}};return O.jsx(gR,{open:n,onOpenChange:ee,children:O.jsxs(aN,{className:"max-w-md",children:[O.jsxs(uN,{children:[O.jsxs(cN,{className:"flex items-center gap-2",children:[O.jsx(Qzt,{className:"h-5 w-5"}),c(H?"dialogs:save.titleUpdate":"dialogs:save.title")]}),O.jsx(lN,{children:c(H?"dialogs:save.descriptionUpdate":"dialogs:save.description")})]}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{className:"space-y-2",children:[O.jsx(ll,{htmlFor:"automation-name",children:c("dialogs:save.nameLabel")}),O.jsx(Ba,{id:"automation-name",value:d,onChange:de=>ae(de.target.value),placeholder:c("placeholders.enterAutomationName"),disabled:w})]}),$&&O.jsxs(cA,{children:[O.jsx(f9t,{className:"h-4 w-4"}),O.jsxs(lA,{className:"flex items-center justify-between",children:[O.jsx("span",{children:c("dialogs:save.nameConflict",{suggestedName:$})}),O.jsx(Di,{variant:"outline",size:"sm",onClick:he,disabled:w,children:c("buttons.use")})]})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsx(ll,{htmlFor:"automation-description",children:c("dialogs:save.descriptionLabel")}),O.jsx(jv,{id:"automation-description",value:M,onChange:de=>D(de.target.value),placeholder:c("placeholders.describeAutomation"),rows:3,disabled:w})]}),B&&O.jsxs(cA,{variant:"destructive",children:[O.jsx(f9t,{className:"h-4 w-4"}),O.jsx(lA,{children:B})]}),O.jsxs("div",{className:"flex justify-end gap-2",children:[O.jsx(Di,{variant:"outline",onClick:ee,disabled:w,children:c("buttons.cancel")}),H&&O.jsxs(Di,{variant:"outline",onClick:ve,disabled:w||!d.trim(),children:[w?O.jsx(XH,{className:"mr-2 h-4 w-4 animate-spin"}):O.jsx(AMe,{className:"mr-2 h-4 w-4"}),c("buttons.saveAsCopy")]}),O.jsx(Di,{onClick:re,disabled:w||!d.trim(),children:w?O.jsxs(O.Fragment,{children:[O.jsx(XH,{className:"mr-2 h-4 w-4 animate-spin"}),c(H?"status.updating":"status.saving")]}):O.jsxs(O.Fragment,{children:[O.jsx(L5,{className:"mr-2 h-4 w-4"}),c(H?"buttons.update":"buttons.save")]})})]})]})]})})}function CZn({isOpen:n,onClose:i,config:a,onSave:c}){const{t:d}=zs(["common","dialogs"]),[g,b]=z.useState(a.url),[w,E]=z.useState(a.token),[S,k]=z.useState("idle"),[_,C]=z.useState("");z.useEffect(()=>{n&&(b(a.url),E(a.token),k("idle"),C(""))},[n,a]);const R=async()=>{if(!g||!w){k("error"),C(d("dialogs:settings.errors.missingFields"));return}k("testing"),C("");try{const B=g.replace(/\/$/,""),F=await fetch(`${B}/api/`,{headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}});F.ok?(await F.json()).message==="API running."?k("success"):(k("error"),C(d("dialogs:settings.errors.unexpectedResponse"))):F.status===401?(k("error"),C(d("dialogs:settings.errors.invalidToken"))):(k("error"),C(d("dialogs:settings.errors.httpError",{status:F.status,statusText:F.statusText})))}catch(B){k("error"),B instanceof TypeError&&B.message.includes("fetch")?C(d("dialogs:settings.errors.corsError")):C(B instanceof Error?B.message:d("dialogs:settings.errors.connectionFailed"))}},M=()=>{c({url:g.replace(/\/$/,""),token:w}),i()},D=()=>{b(""),E(""),c({url:"",token:""}),i()};return O.jsx(gR,{open:n,onOpenChange:()=>i(),children:O.jsxs(aN,{className:"max-w-md",children:[O.jsxs(uN,{children:[O.jsx(cN,{children:d("dialogs:settings.title")}),O.jsx(lN,{children:d("dialogs:settings.description")})]}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{className:"space-y-2",children:[O.jsx(ll,{htmlFor:"url",children:d("dialogs:settings.urlLabel")}),O.jsx(Ba,{id:"url",type:"url",value:g,onChange:B=>b(B.target.value),placeholder:d("dialogs:settings.urlPlaceholder")}),O.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.urlHelp")})]}),O.jsxs("div",{className:"space-y-2",children:[O.jsx(ll,{htmlFor:"token",children:d("dialogs:settings.tokenLabel")}),O.jsx(Ba,{id:"token",type:"password",value:w,onChange:B=>E(B.target.value),placeholder:d("dialogs:settings.tokenPlaceholder"),className:"font-mono text-sm"}),O.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.tokenHelp")})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Di,{variant:"outline",onClick:R,disabled:S==="testing",children:S==="testing"?O.jsxs(O.Fragment,{children:[O.jsx(XH,{className:"mr-2 h-4 w-4 animate-spin"}),d("dialogs:settings.testing")]}):d("dialogs:settings.testConnection")}),S==="success"&&O.jsxs("span",{className:"flex items-center gap-1 text-green-600 text-sm",children:[O.jsx(Kzt,{className:"h-4 w-4"}),d("dialogs:settings.connected")]}),S==="error"&&O.jsxs("span",{className:"flex items-center gap-1 text-red-600 text-sm",children:[O.jsx(Pv,{className:"h-4 w-4"}),_]})]}),O.jsx(cA,{children:O.jsxs(lA,{children:[O.jsx("h4",{className:"mb-1 font-medium",children:d("dialogs:settings.corsNote")}),O.jsx("p",{className:"mb-2 text-xs",children:d("dialogs:settings.corsDescription")}),O.jsx("pre",{className:"overflow-x-auto rounded bg-muted p-2 font-mono text-xs",children:`http: - cors_allowed_origins: - - https://my-home-assistant.example.com`})]})}),O.jsx(Di,{variant:"link",asChild:!0,className:"h-auto p-0 text-sm",children:O.jsxs("a",{href:"https://www.home-assistant.io/docs/authentication/#your-account-profile",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1",children:[O.jsx(h8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),O.jsxs("div",{className:"flex items-center justify-between pt-4",children:[O.jsx(Di,{variant:"destructive",onClick:D,size:"sm",children:d("dialogs:settings.disconnect")}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Di,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),O.jsx(Di,{onClick:M,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function IZn({isOpen:n,onClose:i,onImportSuccess:a}){const{t:c}=zs(["common","dialogs"]),[d,g]=z.useState(""),[b,w]=z.useState(!1),[E,S]=z.useState(null),[k,_]=z.useState([]),{fromFlowGraph:C}=ds(),{fitView:R}=AR();if(!n)return null;const M=async()=>{var B;w(!0),S(null),_([]);try{const F=await mDe.fromYaml(d);if(!F.success){S(((B=F.errors)==null?void 0:B.join(` -`))||"Failed to parse YAML. Please check the format."),w(!1);return}F.warnings.length>0&&(yf.warn("Import warnings:",F.warnings),_(F.warnings)),F.graph&&(C(F.graph),setTimeout(()=>{R({padding:.2,duration:300})},50),setTimeout(()=>{a==null||a(),D()},1e3))}catch(F){S(F instanceof Error?F.message:"Unknown error occurred")}finally{w(!1)}},D=()=>{g(""),S(null),_([]),i()};return O.jsx(gR,{open:n,onOpenChange:()=>D(),children:O.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[O.jsxs(uN,{children:[O.jsx(cN,{children:c("dialogs:importYaml.title")}),O.jsx(lN,{children:c("dialogs:importYaml.description")})]}),O.jsxs("div",{className:"flex-1 space-y-4",children:[O.jsx(jv,{value:d,onChange:B=>g(B.target.value),placeholder:`alias: My Automation -description: An example automation -trigger: - - platform: state - entity_id: light.living_room - to: "on" -action: - - service: notify.mobile_app - data: - message: "Light turned on!"`,className:"h-64 resize-none font-mono text-sm",disabled:b}),E&&O.jsxs(cA,{variant:"destructive",children:[O.jsx(Pv,{className:"h-4 w-4"}),O.jsxs(lA,{className:"font-medium",children:[c("dialogs:importYaml.importFailed"),O.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),k.length>0&&O.jsxs(cA,{children:[O.jsx(Pv,{className:"h-4 w-4"}),O.jsxs(lA,{children:[O.jsx("p",{className:"mb-1 font-medium",children:c("dialogs:importYaml.warnings")}),O.jsx("ul",{className:"space-y-1 text-xs",children:k.map((B,F)=>O.jsxs("li",{children:["•"," ",B]},`warning-${F}-${B.slice(0,20)}`))})]})]}),b&&!E&&O.jsxs(cA,{children:[O.jsx(Kzt,{className:"h-4 w-4"}),O.jsx(lA,{children:c("dialogs:importYaml.successLoading")})]}),O.jsx(cA,{children:O.jsxs(lA,{className:"text-xs",children:[O.jsx("strong",{children:c("dialogs:importYaml.tipLabel")})," ",c("dialogs:importYaml.tipText")]})})]}),O.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[O.jsx(Di,{variant:"outline",onClick:D,disabled:b,children:c("buttons.cancel")}),O.jsxs(Di,{onClick:M,disabled:!d.trim()||b,children:[O.jsx(Y8n,{className:"mr-2 h-4 w-4"}),c(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}const RZn=[{type:"trigger",labelKey:"nodes:types.trigger",icon:rGt,color:"bg-amber-100 border-amber-400 text-amber-700 hover:bg-amber-200",defaultData:{trigger:"state",entity_id:""}},{type:"condition",labelKey:"nodes:types.condition",icon:Jzt,color:"bg-blue-100 border-blue-400 text-blue-700 hover:bg-blue-200",defaultData:{condition:"state",entity_id:""}},{type:"action",labelKey:"nodes:types.action",icon:Zse,color:"bg-green-100 border-green-400 text-green-700 hover:bg-green-200",defaultData:{service:"light.turn_on"}},{type:"delay",labelKey:"nodes:types.delay",icon:TMe,color:"bg-purple-100 border-purple-400 text-purple-700 hover:bg-purple-200",defaultData:{delay:"00:00:05"}},{type:"wait",labelKey:"nodes:types.wait",icon:Xzt,color:"bg-orange-100 border-orange-400 text-orange-700 hover:bg-orange-200",defaultData:{wait_template:"",timeout:"00:01:00"}},{type:"set_variables",labelKey:"nodes:types.set_variables",icon:nGt,color:"bg-cyan-100 border-cyan-400 text-cyan-700 hover:bg-cyan-200",defaultData:{variables:{}}}];function OZn(){const{t:n}=zs(["common","nodes"]),i=ds(g=>g.addNode),a=ds(g=>g.nodes),c=z.useCallback(g=>{const b=a.length*250+250;i({id:o5e(g.type),type:g.type,position:{x:b,y:150},data:{...g.defaultData}})},[i,a.length]),d=z.useCallback((g,b)=>{g.dataTransfer.setData("application/reactflow",JSON.stringify({type:b.type,defaultData:b.defaultData})),g.dataTransfer.effectAllowed="move"},[]);return O.jsxs("div",{className:"space-y-2 p-4",children:[O.jsx("h3",{className:"mb-3 font-semibold text-muted-foreground text-sm",children:n("labels.addNode")}),O.jsx("div",{className:"space-y-2",children:RZn.map(g=>O.jsxs(Di,{variant:"outline",onClick:()=>c(g),onDragStart:b=>d(b,g),draggable:!0,className:kr("h-auto w-full justify-start gap-3 py-3","cursor-grab transition-colors active:cursor-grabbing",g.color),children:[O.jsx(g.icon,{className:"h-4 w-4"}),O.jsx("span",{className:"font-medium text-sm",children:n(g.labelKey)})]},g.type))})]})}function fs({label:n,required:i,description:a,children:c}){return O.jsxs("div",{className:"flex flex-col gap-2",children:[O.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[n,i&&O.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),c,a&&O.jsx("p",{className:"text-muted-foreground text-xs",children:a})]})}const EFt={common:["id","alias","enabled","_conditionId"],trigger:["trigger","entity_id","to","from","for","at","event_type","event_data","event","offset","above","below","value_template","template","webhook_id","zone","topic","payload","hours","minutes","seconds","device_id","domain","type","subtype"],condition:["condition","entity_id","state","attribute","above","below","value_template","template","after","before","weekday","device_id","domain","type","subtype","zone","condition","for","conditions"],action:["service","data","target","response_variable","entity_id","action","metadata"],delay:["delay"],wait:["wait_template","timeout","wait_for_trigger","continue_on_timeout"],set_variables:["variables"]};function SFt(n,i=[]){const a=[...EFt.common,...EFt[n]||[]];return new Set([...a,...i])}function cse(n,[i,a]){return Math.min(a,Math.max(i,n))}function TFt(n){const i=DZn(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(MZn);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function DZn(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=jZn(d),w=PZn(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var LZn=Symbol("radix.slottable");function MZn(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===LZn}function PZn(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function jZn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}function Iae(n){const i=n+"CollectionProvider",[a,c]=Nw(i),[d,g]=a(i,{collectionRef:{current:null},itemMap:new Map}),b=D=>{const{scope:B,children:F}=D,$=Hn.useRef(null),P=Hn.useRef(new Map).current;return O.jsx(d,{scope:B,itemMap:P,collectionRef:$,children:F})};b.displayName=i;const w=n+"CollectionSlot",E=TFt(w),S=Hn.forwardRef((D,B)=>{const{scope:F,children:$}=D,P=g(w,F),H=hs(B,P.collectionRef);return O.jsx(E,{ref:H,children:$})});S.displayName=w;const k=n+"CollectionItemSlot",_="data-radix-collection-item",C=TFt(k),R=Hn.forwardRef((D,B)=>{const{scope:F,children:$,...P}=D,H=Hn.useRef(null),Q=hs(B,H),re=g(k,F);return Hn.useEffect(()=>(re.itemMap.set(H,{ref:H,...P}),()=>void re.itemMap.delete(H))),O.jsx(C,{[_]:"",ref:Q,children:$})});R.displayName=k;function M(D){const B=g(n+"CollectionConsumer",D);return Hn.useCallback(()=>{const $=B.collectionRef.current;if(!$)return[];const P=Array.from($.querySelectorAll(`[${_}]`));return Array.from(B.itemMap.values()).sort((re,ee)=>P.indexOf(re.ref.current)-P.indexOf(ee.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:b,Slot:S,ItemSlot:R},M,c]}var FZn=z.createContext(void 0);function Iz(n){const i=z.useContext(FZn);return n||i||"ltr"}const $Zn=["top","right","bottom","left"],dN=Math.min,Lm=Math.max,lse=Math.round,Nie=Math.floor,U2=n=>({x:n,y:n}),BZn={left:"right",right:"left",bottom:"top",top:"bottom"},UZn={start:"end",end:"start"};function IDe(n,i,a){return Lm(n,dN(i,a))}function vA(n,i){return typeof n=="function"?n(i):n}function EA(n){return n.split("-")[0]}function H5(n){return n.split("-")[1]}function m5e(n){return n==="x"?"y":"x"}function w5e(n){return n==="y"?"height":"width"}const HZn=new Set(["top","bottom"]);function M2(n){return HZn.has(EA(n))?"y":"x"}function y5e(n){return m5e(M2(n))}function zZn(n,i,a){a===void 0&&(a=!1);const c=H5(n),d=y5e(n),g=w5e(d);let b=d==="x"?c===(a?"end":"start")?"right":"left":c==="start"?"bottom":"top";return i.reference[g]>i.floating[g]&&(b=dse(b)),[b,dse(b)]}function GZn(n){const i=dse(n);return[RDe(n),i,RDe(i)]}function RDe(n){return n.replace(/start|end/g,i=>UZn[i])}const AFt=["left","right"],_Ft=["right","left"],qZn=["top","bottom"],VZn=["bottom","top"];function WZn(n,i,a){switch(n){case"top":case"bottom":return a?i?_Ft:AFt:i?AFt:_Ft;case"left":case"right":return i?qZn:VZn;default:return[]}}function KZn(n,i,a,c){const d=H5(n);let g=WZn(EA(n),a==="start",c);return d&&(g=g.map(b=>b+"-"+d),i&&(g=g.concat(g.map(RDe)))),g}function dse(n){return n.replace(/left|right|bottom|top/g,i=>BZn[i])}function YZn(n){return{top:0,right:0,bottom:0,left:0,...n}}function mWt(n){return typeof n!="number"?YZn(n):{top:n,right:n,bottom:n,left:n}}function fse(n){const{x:i,y:a,width:c,height:d}=n;return{width:c,height:d,top:a,left:i,right:i+c,bottom:a+d,x:i,y:a}}function kFt(n,i,a){let{reference:c,floating:d}=n;const g=M2(i),b=y5e(i),w=w5e(b),E=EA(i),S=g==="y",k=c.x+c.width/2-d.width/2,_=c.y+c.height/2-d.height/2,C=c[w]/2-d[w]/2;let R;switch(E){case"top":R={x:k,y:c.y-d.height};break;case"bottom":R={x:k,y:c.y+c.height};break;case"right":R={x:c.x+c.width,y:_};break;case"left":R={x:c.x-d.width,y:_};break;default:R={x:c.x,y:c.y}}switch(H5(i)){case"start":R[b]-=C*(a&&S?-1:1);break;case"end":R[b]+=C*(a&&S?-1:1);break}return R}const JZn=async(n,i,a)=>{const{placement:c="bottom",strategy:d="absolute",middleware:g=[],platform:b}=a,w=g.filter(Boolean),E=await(b.isRTL==null?void 0:b.isRTL(i));let S=await b.getElementRects({reference:n,floating:i,strategy:d}),{x:k,y:_}=kFt(S,c,E),C=c,R={},M=0;for(let D=0;D({name:"arrow",options:n,async fn(i){const{x:a,y:c,placement:d,rects:g,platform:b,elements:w,middlewareData:E}=i,{element:S,padding:k=0}=vA(n,i)||{};if(S==null)return{};const _=mWt(k),C={x:a,y:c},R=y5e(d),M=w5e(R),D=await b.getDimensions(S),B=R==="y",F=B?"top":"left",$=B?"bottom":"right",P=B?"clientHeight":"clientWidth",H=g.reference[M]+g.reference[R]-C[R]-g.floating[M],Q=C[R]-g.reference[R],re=await(b.getOffsetParent==null?void 0:b.getOffsetParent(S));let ee=re?re[P]:0;(!ee||!await(b.isElement==null?void 0:b.isElement(re)))&&(ee=w.floating[P]||g.floating[M]);const ae=H/2-Q/2,he=ee/2-D[M]/2-1,ve=dN(_[F],he),de=dN(_[$],he),ge=ve,Y=ee-D[M]-de,fe=ee/2-D[M]/2+ae,De=IDe(ge,fe,Y),Se=!E.arrow&&H5(d)!=null&&fe!==De&&g.reference[M]/2-(fefe<=0)){var de,ge;const fe=(((de=g.flip)==null?void 0:de.index)||0)+1,De=ee[fe];if(De&&(!(_==="alignment"?$!==M2(De):!1)||ve.every(Te=>M2(Te.placement)===$?Te.overflows[0]>0:!0)))return{data:{index:fe,overflows:ve},reset:{placement:De}};let Se=(ge=ve.filter($e=>$e.overflows[0]<=0).sort(($e,Te)=>$e.overflows[1]-Te.overflows[1])[0])==null?void 0:ge.placement;if(!Se)switch(R){case"bestFit":{var Y;const $e=(Y=ve.filter(Te=>{if(re){const ke=M2(Te.placement);return ke===$||ke==="y"}return!0}).map(Te=>[Te.placement,Te.overflows.filter(ke=>ke>0).reduce((ke,Je)=>ke+Je,0)]).sort((Te,ke)=>Te[1]-ke[1])[0])==null?void 0:Y[0];$e&&(Se=$e);break}case"initialPlacement":Se=w;break}if(d!==Se)return{reset:{placement:Se}}}return{}}}};function xFt(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function NFt(n){return $Zn.some(i=>n[i]>=0)}const QZn=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:a}=i,{strategy:c="referenceHidden",...d}=vA(n,i);switch(c){case"referenceHidden":{const g=await iz(i,{...d,elementContext:"reference"}),b=xFt(g,a.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:NFt(b)}}}case"escaped":{const g=await iz(i,{...d,altBoundary:!0}),b=xFt(g,a.floating);return{data:{escapedOffsets:b,escaped:NFt(b)}}}default:return{}}}}},wWt=new Set(["left","top"]);async function eQn(n,i){const{placement:a,platform:c,elements:d}=n,g=await(c.isRTL==null?void 0:c.isRTL(d.floating)),b=EA(a),w=H5(a),E=M2(a)==="y",S=wWt.has(b)?-1:1,k=g&&E?-1:1,_=vA(i,n);let{mainAxis:C,crossAxis:R,alignmentAxis:M}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return w&&typeof M=="number"&&(R=w==="end"?M*-1:M),E?{x:R*k,y:C*S}:{x:C*S,y:R*k}}const tQn=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var a,c;const{x:d,y:g,placement:b,middlewareData:w}=i,E=await eQn(i,n);return b===((a=w.offset)==null?void 0:a.placement)&&(c=w.arrow)!=null&&c.alignmentOffset?{}:{x:d+E.x,y:g+E.y,data:{...E,placement:b}}}}},nQn=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:a,y:c,placement:d}=i,{mainAxis:g=!0,crossAxis:b=!1,limiter:w={fn:B=>{let{x:F,y:$}=B;return{x:F,y:$}}},...E}=vA(n,i),S={x:a,y:c},k=await iz(i,E),_=M2(EA(d)),C=m5e(_);let R=S[C],M=S[_];if(g){const B=C==="y"?"top":"left",F=C==="y"?"bottom":"right",$=R+k[B],P=R-k[F];R=IDe($,R,P)}if(b){const B=_==="y"?"top":"left",F=_==="y"?"bottom":"right",$=M+k[B],P=M-k[F];M=IDe($,M,P)}const D=w.fn({...i,[C]:R,[_]:M});return{...D,data:{x:D.x-a,y:D.y-c,enabled:{[C]:g,[_]:b}}}}}},rQn=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:a,y:c,placement:d,rects:g,middlewareData:b}=i,{offset:w=0,mainAxis:E=!0,crossAxis:S=!0}=vA(n,i),k={x:a,y:c},_=M2(d),C=m5e(_);let R=k[C],M=k[_];const D=vA(w,i),B=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(E){const P=C==="y"?"height":"width",H=g.reference[C]-g.floating[P]+B.mainAxis,Q=g.reference[C]+g.reference[P]-B.mainAxis;RQ&&(R=Q)}if(S){var F,$;const P=C==="y"?"width":"height",H=wWt.has(EA(d)),Q=g.reference[_]-g.floating[P]+(H&&((F=b.offset)==null?void 0:F[_])||0)+(H?0:B.crossAxis),re=g.reference[_]+g.reference[P]+(H?0:(($=b.offset)==null?void 0:$[_])||0)-(H?B.crossAxis:0);Mre&&(M=re)}return{[C]:R,[_]:M}}}},iQn=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var a,c;const{placement:d,rects:g,platform:b,elements:w}=i,{apply:E=()=>{},...S}=vA(n,i),k=await iz(i,S),_=EA(d),C=H5(d),R=M2(d)==="y",{width:M,height:D}=g.floating;let B,F;_==="top"||_==="bottom"?(B=_,F=C===(await(b.isRTL==null?void 0:b.isRTL(w.floating))?"start":"end")?"left":"right"):(F=_,B=C==="end"?"top":"bottom");const $=D-k.top-k.bottom,P=M-k.left-k.right,H=dN(D-k[B],$),Q=dN(M-k[F],P),re=!i.middlewareData.shift;let ee=H,ae=Q;if((a=i.middlewareData.shift)!=null&&a.enabled.x&&(ae=P),(c=i.middlewareData.shift)!=null&&c.enabled.y&&(ee=$),re&&!C){const ve=Lm(k.left,0),de=Lm(k.right,0),ge=Lm(k.top,0),Y=Lm(k.bottom,0);R?ae=M-2*(ve!==0||de!==0?ve+de:Lm(k.left,k.right)):ee=D-2*(ge!==0||Y!==0?ge+Y:Lm(k.top,k.bottom))}await E({...i,availableWidth:ae,availableHeight:ee});const he=await b.getDimensions(w.floating);return M!==he.width||D!==he.height?{reset:{rects:!0}}:{}}}};function Rae(){return typeof window<"u"}function z5(n){return yWt(n)?(n.nodeName||"").toLowerCase():"#document"}function $m(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function K2(n){var i;return(i=(yWt(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function yWt(n){return Rae()?n instanceof Node||n instanceof $m(n).Node:!1}function Fv(n){return Rae()?n instanceof Element||n instanceof $m(n).Element:!1}function q2(n){return Rae()?n instanceof HTMLElement||n instanceof $m(n).HTMLElement:!1}function CFt(n){return!Rae()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof $m(n).ShadowRoot}const oQn=new Set(["inline","contents"]);function Rz(n){const{overflow:i,overflowX:a,overflowY:c,display:d}=$v(n);return/auto|scroll|overlay|hidden|clip/.test(i+c+a)&&!oQn.has(d)}const sQn=new Set(["table","td","th"]);function aQn(n){return sQn.has(z5(n))}const uQn=[":popover-open",":modal"];function Oae(n){return uQn.some(i=>{try{return n.matches(i)}catch{return!1}})}const cQn=["transform","translate","scale","rotate","perspective"],lQn=["transform","translate","scale","rotate","perspective","filter"],dQn=["paint","layout","strict","content"];function v5e(n){const i=E5e(),a=Fv(n)?$v(n):n;return cQn.some(c=>a[c]?a[c]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!i&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!i&&(a.filter?a.filter!=="none":!1)||lQn.some(c=>(a.willChange||"").includes(c))||dQn.some(c=>(a.contain||"").includes(c))}function fQn(n){let i=fN(n);for(;q2(i)&&!N5(i);){if(v5e(i))return i;if(Oae(i))return null;i=fN(i)}return null}function E5e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hQn=new Set(["html","body","#document"]);function N5(n){return hQn.has(z5(n))}function $v(n){return $m(n).getComputedStyle(n)}function Dae(n){return Fv(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fN(n){if(z5(n)==="html")return n;const i=n.assignedSlot||n.parentNode||CFt(n)&&n.host||K2(n);return CFt(i)?i.host:i}function vWt(n){const i=fN(n);return N5(i)?n.ownerDocument?n.ownerDocument.body:n.body:q2(i)&&Rz(i)?i:vWt(i)}function oz(n,i,a){var c;i===void 0&&(i=[]),a===void 0&&(a=!0);const d=vWt(n),g=d===((c=n.ownerDocument)==null?void 0:c.body),b=$m(d);if(g){const w=ODe(b);return i.concat(b,b.visualViewport||[],Rz(d)?d:[],w&&a?oz(w):[])}return i.concat(d,oz(d,[],a))}function ODe(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function EWt(n){const i=$v(n);let a=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const d=q2(n),g=d?n.offsetWidth:a,b=d?n.offsetHeight:c,w=lse(a)!==g||lse(c)!==b;return w&&(a=g,c=b),{width:a,height:c,$:w}}function S5e(n){return Fv(n)?n:n.contextElement}function o5(n){const i=S5e(n);if(!q2(i))return U2(1);const a=i.getBoundingClientRect(),{width:c,height:d,$:g}=EWt(i);let b=(g?lse(a.width):a.width)/c,w=(g?lse(a.height):a.height)/d;return(!b||!Number.isFinite(b))&&(b=1),(!w||!Number.isFinite(w))&&(w=1),{x:b,y:w}}const pQn=U2(0);function SWt(n){const i=$m(n);return!E5e()||!i.visualViewport?pQn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function gQn(n,i,a){return i===void 0&&(i=!1),!a||i&&a!==$m(n)?!1:i}function bR(n,i,a,c){i===void 0&&(i=!1),a===void 0&&(a=!1);const d=n.getBoundingClientRect(),g=S5e(n);let b=U2(1);i&&(c?Fv(c)&&(b=o5(c)):b=o5(n));const w=gQn(g,a,c)?SWt(g):U2(0);let E=(d.left+w.x)/b.x,S=(d.top+w.y)/b.y,k=d.width/b.x,_=d.height/b.y;if(g){const C=$m(g),R=c&&Fv(c)?$m(c):c;let M=C,D=ODe(M);for(;D&&c&&R!==M;){const B=o5(D),F=D.getBoundingClientRect(),$=$v(D),P=F.left+(D.clientLeft+parseFloat($.paddingLeft))*B.x,H=F.top+(D.clientTop+parseFloat($.paddingTop))*B.y;E*=B.x,S*=B.y,k*=B.x,_*=B.y,E+=P,S+=H,M=$m(D),D=ODe(M)}}return fse({width:k,height:_,x:E,y:S})}function Lae(n,i){const a=Dae(n).scrollLeft;return i?i.left+a:bR(K2(n)).left+a}function TWt(n,i){const a=n.getBoundingClientRect(),c=a.left+i.scrollLeft-Lae(n,a),d=a.top+i.scrollTop;return{x:c,y:d}}function bQn(n){let{elements:i,rect:a,offsetParent:c,strategy:d}=n;const g=d==="fixed",b=K2(c),w=i?Oae(i.floating):!1;if(c===b||w&&g)return a;let E={scrollLeft:0,scrollTop:0},S=U2(1);const k=U2(0),_=q2(c);if((_||!_&&!g)&&((z5(c)!=="body"||Rz(b))&&(E=Dae(c)),q2(c))){const R=bR(c);S=o5(c),k.x=R.x+c.clientLeft,k.y=R.y+c.clientTop}const C=b&&!_&&!g?TWt(b,E):U2(0);return{width:a.width*S.x,height:a.height*S.y,x:a.x*S.x-E.scrollLeft*S.x+k.x+C.x,y:a.y*S.y-E.scrollTop*S.y+k.y+C.y}}function mQn(n){return Array.from(n.getClientRects())}function wQn(n){const i=K2(n),a=Dae(n),c=n.ownerDocument.body,d=Lm(i.scrollWidth,i.clientWidth,c.scrollWidth,c.clientWidth),g=Lm(i.scrollHeight,i.clientHeight,c.scrollHeight,c.clientHeight);let b=-a.scrollLeft+Lae(n);const w=-a.scrollTop;return $v(c).direction==="rtl"&&(b+=Lm(i.clientWidth,c.clientWidth)-d),{width:d,height:g,x:b,y:w}}const IFt=25;function yQn(n,i){const a=$m(n),c=K2(n),d=a.visualViewport;let g=c.clientWidth,b=c.clientHeight,w=0,E=0;if(d){g=d.width,b=d.height;const k=E5e();(!k||k&&i==="fixed")&&(w=d.offsetLeft,E=d.offsetTop)}const S=Lae(c);if(S<=0){const k=c.ownerDocument,_=k.body,C=getComputedStyle(_),R=k.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,M=Math.abs(c.clientWidth-_.clientWidth-R);M<=IFt&&(g-=M)}else S<=IFt&&(g+=S);return{width:g,height:b,x:w,y:E}}const vQn=new Set(["absolute","fixed"]);function EQn(n,i){const a=bR(n,!0,i==="fixed"),c=a.top+n.clientTop,d=a.left+n.clientLeft,g=q2(n)?o5(n):U2(1),b=n.clientWidth*g.x,w=n.clientHeight*g.y,E=d*g.x,S=c*g.y;return{width:b,height:w,x:E,y:S}}function RFt(n,i,a){let c;if(i==="viewport")c=yQn(n,a);else if(i==="document")c=wQn(K2(n));else if(Fv(i))c=EQn(i,a);else{const d=SWt(n);c={x:i.x-d.x,y:i.y-d.y,width:i.width,height:i.height}}return fse(c)}function AWt(n,i){const a=fN(n);return a===i||!Fv(a)||N5(a)?!1:$v(a).position==="fixed"||AWt(a,i)}function SQn(n,i){const a=i.get(n);if(a)return a;let c=oz(n,[],!1).filter(w=>Fv(w)&&z5(w)!=="body"),d=null;const g=$v(n).position==="fixed";let b=g?fN(n):n;for(;Fv(b)&&!N5(b);){const w=$v(b),E=v5e(b);!E&&w.position==="fixed"&&(d=null),(g?!E&&!d:!E&&w.position==="static"&&!!d&&vQn.has(d.position)||Rz(b)&&!E&&AWt(n,b))?c=c.filter(k=>k!==b):d=w,b=fN(b)}return i.set(n,c),c}function TQn(n){let{element:i,boundary:a,rootBoundary:c,strategy:d}=n;const b=[...a==="clippingAncestors"?Oae(i)?[]:SQn(i,this._c):[].concat(a),c],w=b[0],E=b.reduce((S,k)=>{const _=RFt(i,k,d);return S.top=Lm(_.top,S.top),S.right=dN(_.right,S.right),S.bottom=dN(_.bottom,S.bottom),S.left=Lm(_.left,S.left),S},RFt(i,w,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}function AQn(n){const{width:i,height:a}=EWt(n);return{width:i,height:a}}function _Qn(n,i,a){const c=q2(i),d=K2(i),g=a==="fixed",b=bR(n,!0,g,i);let w={scrollLeft:0,scrollTop:0};const E=U2(0);function S(){E.x=Lae(d)}if(c||!c&&!g)if((z5(i)!=="body"||Rz(d))&&(w=Dae(i)),c){const R=bR(i,!0,g,i);E.x=R.x+i.clientLeft,E.y=R.y+i.clientTop}else d&&S();g&&!c&&d&&S();const k=d&&!c&&!g?TWt(d,w):U2(0),_=b.left+w.scrollLeft-E.x-k.x,C=b.top+w.scrollTop-E.y-k.y;return{x:_,y:C,width:b.width,height:b.height}}function COe(n){return $v(n).position==="static"}function OFt(n,i){if(!q2(n)||$v(n).position==="fixed")return null;if(i)return i(n);let a=n.offsetParent;return K2(n)===a&&(a=a.ownerDocument.body),a}function _Wt(n,i){const a=$m(n);if(Oae(n))return a;if(!q2(n)){let d=fN(n);for(;d&&!N5(d);){if(Fv(d)&&!COe(d))return d;d=fN(d)}return a}let c=OFt(n,i);for(;c&&aQn(c)&&COe(c);)c=OFt(c,i);return c&&N5(c)&&COe(c)&&!v5e(c)?a:c||fQn(n)||a}const kQn=async function(n){const i=this.getOffsetParent||_Wt,a=this.getDimensions,c=await a(n.floating);return{reference:_Qn(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function xQn(n){return $v(n).direction==="rtl"}const NQn={convertOffsetParentRelativeRectToViewportRelativeRect:bQn,getDocumentElement:K2,getClippingRect:TQn,getOffsetParent:_Wt,getElementRects:kQn,getClientRects:mQn,getDimensions:AQn,getScale:o5,isElement:Fv,isRTL:xQn};function kWt(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function CQn(n,i){let a=null,c;const d=K2(n);function g(){var w;clearTimeout(c),(w=a)==null||w.disconnect(),a=null}function b(w,E){w===void 0&&(w=!1),E===void 0&&(E=1),g();const S=n.getBoundingClientRect(),{left:k,top:_,width:C,height:R}=S;if(w||i(),!C||!R)return;const M=Nie(_),D=Nie(d.clientWidth-(k+C)),B=Nie(d.clientHeight-(_+R)),F=Nie(k),P={rootMargin:-M+"px "+-D+"px "+-B+"px "+-F+"px",threshold:Lm(0,dN(1,E))||1};let H=!0;function Q(re){const ee=re[0].intersectionRatio;if(ee!==E){if(!H)return b();ee?b(!1,ee):c=setTimeout(()=>{b(!1,1e-7)},1e3)}ee===1&&!kWt(S,n.getBoundingClientRect())&&b(),H=!1}try{a=new IntersectionObserver(Q,{...P,root:d.ownerDocument})}catch{a=new IntersectionObserver(Q,P)}a.observe(n)}return b(!0),g}function IQn(n,i,a,c){c===void 0&&(c={});const{ancestorScroll:d=!0,ancestorResize:g=!0,elementResize:b=typeof ResizeObserver=="function",layoutShift:w=typeof IntersectionObserver=="function",animationFrame:E=!1}=c,S=S5e(n),k=d||g?[...S?oz(S):[],...oz(i)]:[];k.forEach(F=>{d&&F.addEventListener("scroll",a,{passive:!0}),g&&F.addEventListener("resize",a)});const _=S&&w?CQn(S,a):null;let C=-1,R=null;b&&(R=new ResizeObserver(F=>{let[$]=F;$&&$.target===S&&R&&(R.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var P;(P=R)==null||P.observe(i)})),a()}),S&&!E&&R.observe(S),R.observe(i));let M,D=E?bR(n):null;E&&B();function B(){const F=bR(n);D&&!kWt(D,F)&&a(),D=F,M=requestAnimationFrame(B)}return a(),()=>{var F;k.forEach($=>{d&&$.removeEventListener("scroll",a),g&&$.removeEventListener("resize",a)}),_==null||_(),(F=R)==null||F.disconnect(),R=null,E&&cancelAnimationFrame(M)}}const RQn=tQn,OQn=nQn,DQn=ZZn,LQn=iQn,MQn=QZn,DFt=XZn,PQn=rQn,jQn=(n,i,a)=>{const c=new Map,d={platform:NQn,...a},g={...d.platform,_c:c};return JZn(n,i,{...d,platform:g})};var FQn=typeof document<"u",$Qn=function(){},toe=FQn?z.useLayoutEffect:$Qn;function hse(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let a,c,d;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(a=n.length,a!==i.length)return!1;for(c=a;c--!==0;)if(!hse(n[c],i[c]))return!1;return!0}if(d=Object.keys(n),a=d.length,a!==Object.keys(i).length)return!1;for(c=a;c--!==0;)if(!{}.hasOwnProperty.call(i,d[c]))return!1;for(c=a;c--!==0;){const g=d[c];if(!(g==="_owner"&&n.$$typeof)&&!hse(n[g],i[g]))return!1}return!0}return n!==n&&i!==i}function xWt(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function LFt(n,i){const a=xWt(n);return Math.round(i*a)/a}function IOe(n){const i=z.useRef(n);return toe(()=>{i.current=n}),i}function BQn(n){n===void 0&&(n={});const{placement:i="bottom",strategy:a="absolute",middleware:c=[],platform:d,elements:{reference:g,floating:b}={},transform:w=!0,whileElementsMounted:E,open:S}=n,[k,_]=z.useState({x:0,y:0,strategy:a,placement:i,middlewareData:{},isPositioned:!1}),[C,R]=z.useState(c);hse(C,c)||R(c);const[M,D]=z.useState(null),[B,F]=z.useState(null),$=z.useCallback(Te=>{Te!==re.current&&(re.current=Te,D(Te))},[]),P=z.useCallback(Te=>{Te!==ee.current&&(ee.current=Te,F(Te))},[]),H=g||M,Q=b||B,re=z.useRef(null),ee=z.useRef(null),ae=z.useRef(k),he=E!=null,ve=IOe(E),de=IOe(d),ge=IOe(S),Y=z.useCallback(()=>{if(!re.current||!ee.current)return;const Te={placement:i,strategy:a,middleware:C};de.current&&(Te.platform=de.current),jQn(re.current,ee.current,Te).then(ke=>{const Je={...ke,isPositioned:ge.current!==!1};fe.current&&!hse(ae.current,Je)&&(ae.current=Je,TR.flushSync(()=>{_(Je)}))})},[C,i,a,de,ge]);toe(()=>{S===!1&&ae.current.isPositioned&&(ae.current.isPositioned=!1,_(Te=>({...Te,isPositioned:!1})))},[S]);const fe=z.useRef(!1);toe(()=>(fe.current=!0,()=>{fe.current=!1}),[]),toe(()=>{if(H&&(re.current=H),Q&&(ee.current=Q),H&&Q){if(ve.current)return ve.current(H,Q,Y);Y()}},[H,Q,Y,ve,he]);const De=z.useMemo(()=>({reference:re,floating:ee,setReference:$,setFloating:P}),[$,P]),Se=z.useMemo(()=>({reference:H,floating:Q}),[H,Q]),$e=z.useMemo(()=>{const Te={position:a,left:0,top:0};if(!Se.floating)return Te;const ke=LFt(Se.floating,k.x),Je=LFt(Se.floating,k.y);return w?{...Te,transform:"translate("+ke+"px, "+Je+"px)",...xWt(Se.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ke,top:Je}},[a,w,Se.floating,k.x,k.y]);return z.useMemo(()=>({...k,update:Y,refs:De,elements:Se,floatingStyles:$e}),[k,Y,De,Se,$e])}const UQn=n=>{function i(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:n,fn(a){const{element:c,padding:d}=typeof n=="function"?n(a):n;return c&&i(c)?c.current!=null?DFt({element:c.current,padding:d}).fn(a):{}:c?DFt({element:c,padding:d}).fn(a):{}}}},HQn=(n,i)=>({...RQn(n),options:[n,i]}),zQn=(n,i)=>({...OQn(n),options:[n,i]}),GQn=(n,i)=>({...PQn(n),options:[n,i]}),qQn=(n,i)=>({...DQn(n),options:[n,i]}),VQn=(n,i)=>({...LQn(n),options:[n,i]}),WQn=(n,i)=>({...MQn(n),options:[n,i]}),KQn=(n,i)=>({...UQn(n),options:[n,i]});var YQn="Arrow",NWt=z.forwardRef((n,i)=>{const{children:a,width:c=10,height:d=5,...g}=n;return O.jsx(eo.svg,{...g,ref:i,width:c,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?a:O.jsx("polygon",{points:"0,0 30,0 15,10"})})});NWt.displayName=YQn;var JQn=NWt,T5e="Popper",[CWt,G5]=Nw(T5e),[XQn,IWt]=CWt(T5e),RWt=n=>{const{__scopePopper:i,children:a}=n,[c,d]=z.useState(null);return O.jsx(XQn,{scope:i,anchor:c,onAnchorChange:d,children:a})};RWt.displayName=T5e;var OWt="PopperAnchor",DWt=z.forwardRef((n,i)=>{const{__scopePopper:a,virtualRef:c,...d}=n,g=IWt(OWt,a),b=z.useRef(null),w=hs(i,b),E=z.useRef(null);return z.useEffect(()=>{const S=E.current;E.current=(c==null?void 0:c.current)||b.current,S!==E.current&&g.onAnchorChange(E.current)}),c?null:O.jsx(eo.div,{...d,ref:w})});DWt.displayName=OWt;var A5e="PopperContent",[ZQn,QQn]=CWt(A5e),LWt=z.forwardRef((n,i)=>{var kt,It,Xt,Bn,tr,Zn;const{__scopePopper:a,side:c="bottom",sideOffset:d=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:k=0,sticky:_="partial",hideWhenDetached:C=!1,updatePositionStrategy:R="optimized",onPlaced:M,...D}=n,B=IWt(A5e,a),[F,$]=z.useState(null),P=hs(i,Dr=>$(Dr)),[H,Q]=z.useState(null),re=Tae(H),ee=(re==null?void 0:re.width)??0,ae=(re==null?void 0:re.height)??0,he=c+(g!=="center"?"-"+g:""),ve=typeof k=="number"?k:{top:0,right:0,bottom:0,left:0,...k},de=Array.isArray(S)?S:[S],ge=de.length>0,Y={padding:ve,boundary:de.filter(ter),altBoundary:ge},{refs:fe,floatingStyles:De,placement:Se,isPositioned:$e,middlewareData:Te}=BQn({strategy:"fixed",placement:he,whileElementsMounted:(...Dr)=>IQn(...Dr,{animationFrame:R==="always"}),elements:{reference:B.anchor},middleware:[HQn({mainAxis:d+ae,alignmentAxis:b}),E&&zQn({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?GQn():void 0,...Y}),E&&qQn({...Y}),VQn({...Y,apply:({elements:Dr,rects:Ui,availableWidth:Qr,availableHeight:Hi})=>{const{width:ai,height:jc}=Ui.reference,Xs=Dr.floating.style;Xs.setProperty("--radix-popper-available-width",`${Qr}px`),Xs.setProperty("--radix-popper-available-height",`${Hi}px`),Xs.setProperty("--radix-popper-anchor-width",`${ai}px`),Xs.setProperty("--radix-popper-anchor-height",`${jc}px`)}}),H&&KQn({element:H,padding:w}),ner({arrowWidth:ee,arrowHeight:ae}),C&&WQn({strategy:"referenceHidden",...Y})]}),[ke,Je]=jWt(Se),bt=G2(M);Up(()=>{$e&&(bt==null||bt())},[$e,bt]);const qe=(kt=Te.arrow)==null?void 0:kt.x,_t=(It=Te.arrow)==null?void 0:It.y,At=((Xt=Te.arrow)==null?void 0:Xt.centerOffset)!==0,[ft,Kt]=z.useState();return Up(()=>{F&&Kt(window.getComputedStyle(F).zIndex)},[F]),O.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...De,transform:$e?De.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ft,"--radix-popper-transform-origin":[(Bn=Te.transformOrigin)==null?void 0:Bn.x,(tr=Te.transformOrigin)==null?void 0:tr.y].join(" "),...((Zn=Te.hide)==null?void 0:Zn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:O.jsx(ZQn,{scope:a,placedSide:ke,onArrowChange:Q,arrowX:qe,arrowY:_t,shouldHideArrow:At,children:O.jsx(eo.div,{"data-side":ke,"data-align":Je,...D,ref:P,style:{...D.style,animation:$e?void 0:"none"}})})})});LWt.displayName=A5e;var MWt="PopperArrow",eer={top:"bottom",right:"left",bottom:"top",left:"right"},PWt=z.forwardRef(function(i,a){const{__scopePopper:c,...d}=i,g=QQn(MWt,c),b=eer[g.placedSide];return O.jsx("span",{ref:g.onArrowChange,style:{position:"absolute",left:g.arrowX,top:g.arrowY,[b]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[g.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[g.placedSide],visibility:g.shouldHideArrow?"hidden":void 0},children:O.jsx(JQn,{...d,ref:a,style:{...d.style,display:"block"}})})});PWt.displayName=MWt;function ter(n){return n!==null}var ner=n=>({name:"transformOrigin",options:n,fn(i){var B,F,$;const{placement:a,rects:c,middlewareData:d}=i,b=((B=d.arrow)==null?void 0:B.centerOffset)!==0,w=b?0:n.arrowWidth,E=b?0:n.arrowHeight,[S,k]=jWt(a),_={start:"0%",center:"50%",end:"100%"}[k],C=(((F=d.arrow)==null?void 0:F.x)??0)+w/2,R=((($=d.arrow)==null?void 0:$.y)??0)+E/2;let M="",D="";return S==="bottom"?(M=b?_:`${C}px`,D=`${-E}px`):S==="top"?(M=b?_:`${C}px`,D=`${c.floating.height+E}px`):S==="right"?(M=`${-E}px`,D=b?_:`${R}px`):S==="left"&&(M=`${c.floating.width+E}px`,D=b?_:`${R}px`),{data:{x:M,y:D}}}});function jWt(n){const[i,a="center"]=n.split("-");return[i,a]}var _5e=RWt,Mae=DWt,k5e=LWt,x5e=PWt;function rer(n){const i=ier(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(ser);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function ier(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=uer(d),w=aer(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var oer=Symbol("radix.slottable");function ser(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===oer}function aer(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function uer(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}var FWt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),cer="VisuallyHidden",ler=z.forwardRef((n,i)=>O.jsx(eo.span,{...n,ref:i,style:{...FWt,...n.style}}));ler.displayName=cer;var der=[" ","Enter","ArrowUp","ArrowDown"],fer=[" ","Enter"],mR="Select",[Pae,jae,her]=Iae(mR),[q5]=Nw(mR,[her,G5]),Fae=G5(),[per,EN]=q5(mR),[ger,ber]=q5(mR),$Wt=n=>{const{__scopeSelect:i,children:a,open:c,defaultOpen:d,onOpenChange:g,value:b,defaultValue:w,onValueChange:E,dir:S,name:k,autoComplete:_,disabled:C,required:R,form:M}=n,D=Fae(i),[B,F]=z.useState(null),[$,P]=z.useState(null),[H,Q]=z.useState(!1),re=Iz(S),[ee,ae]=z2({prop:c,defaultProp:d??!1,onChange:g,caller:mR}),[he,ve]=z2({prop:b,defaultProp:w,onChange:E,caller:mR}),de=z.useRef(null),ge=B?M||!!B.closest("form"):!0,[Y,fe]=z.useState(new Set),De=Array.from(Y).map(Se=>Se.props.value).join(";");return O.jsx(_5e,{...D,children:O.jsxs(per,{required:R,scope:i,trigger:B,onTriggerChange:F,valueNode:$,onValueNodeChange:P,valueNodeHasChildren:H,onValueNodeHasChildrenChange:Q,contentId:Fh(),value:he,onValueChange:ve,open:ee,onOpenChange:ae,dir:re,triggerPointerDownPosRef:de,disabled:C,children:[O.jsx(Pae.Provider,{scope:i,children:O.jsx(ger,{scope:n.__scopeSelect,onNativeOptionAdd:z.useCallback(Se=>{fe($e=>new Set($e).add(Se))},[]),onNativeOptionRemove:z.useCallback(Se=>{fe($e=>{const Te=new Set($e);return Te.delete(Se),Te})},[]),children:a})}),ge?O.jsxs(cKt,{"aria-hidden":!0,required:R,tabIndex:-1,name:k,autoComplete:_,value:he,onChange:Se=>ve(Se.target.value),disabled:C,form:M,children:[he===void 0?O.jsx("option",{value:""}):null,Array.from(Y)]},De):null]})})};$Wt.displayName=mR;var BWt="SelectTrigger",UWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,disabled:c=!1,...d}=n,g=Fae(a),b=EN(BWt,a),w=b.disabled||c,E=hs(i,b.onTriggerChange),S=jae(a),k=z.useRef("touch"),[_,C,R]=dKt(D=>{const B=S().filter(P=>!P.disabled),F=B.find(P=>P.value===b.value),$=fKt(B,D,F);$!==void 0&&b.onValueChange($.value)}),M=D=>{w||(b.onOpenChange(!0),R()),D&&(b.triggerPointerDownPosRef.current={x:Math.round(D.pageX),y:Math.round(D.pageY)})};return O.jsx(Mae,{asChild:!0,...g,children:O.jsx(eo.button,{type:"button",role:"combobox","aria-controls":b.contentId,"aria-expanded":b.open,"aria-required":b.required,"aria-autocomplete":"none",dir:b.dir,"data-state":b.open?"open":"closed",disabled:w,"data-disabled":w?"":void 0,"data-placeholder":lKt(b.value)?"":void 0,...d,ref:E,onClick:Or(d.onClick,D=>{D.currentTarget.focus(),k.current!=="mouse"&&M(D)}),onPointerDown:Or(d.onPointerDown,D=>{k.current=D.pointerType;const B=D.target;B.hasPointerCapture(D.pointerId)&&B.releasePointerCapture(D.pointerId),D.button===0&&D.ctrlKey===!1&&D.pointerType==="mouse"&&(M(D),D.preventDefault())}),onKeyDown:Or(d.onKeyDown,D=>{const B=_.current!=="";!(D.ctrlKey||D.altKey||D.metaKey)&&D.key.length===1&&C(D.key),!(B&&D.key===" ")&&der.includes(D.key)&&(M(),D.preventDefault())})})})});UWt.displayName=BWt;var HWt="SelectValue",zWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,className:c,style:d,children:g,placeholder:b="",...w}=n,E=EN(HWt,a),{onValueNodeHasChildrenChange:S}=E,k=g!==void 0,_=hs(i,E.onValueNodeChange);return Up(()=>{S(k)},[S,k]),O.jsx(eo.span,{...w,ref:_,style:{pointerEvents:"none"},children:lKt(E.value)?O.jsx(O.Fragment,{children:b}):g})});zWt.displayName=HWt;var mer="SelectIcon",GWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,children:c,...d}=n;return O.jsx(eo.span,{"aria-hidden":!0,...d,ref:i,children:c||"▼"})});GWt.displayName=mer;var wer="SelectPortal",qWt=n=>O.jsx(Nz,{asChild:!0,...n});qWt.displayName=wer;var wR="SelectContent",VWt=z.forwardRef((n,i)=>{const a=EN(wR,n.__scopeSelect),[c,d]=z.useState();if(Up(()=>{d(new DocumentFragment)},[]),!a.open){const g=c;return g?TR.createPortal(O.jsx(WWt,{scope:n.__scopeSelect,children:O.jsx(Pae.Slot,{scope:n.__scopeSelect,children:O.jsx("div",{children:n.children})})}),g):null}return O.jsx(KWt,{...n,ref:i})});VWt.displayName=wR;var Av=10,[WWt,SN]=q5(wR),yer="SelectContentImpl",ver=rer("SelectContent.RemoveScroll"),KWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,position:c="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:g,onPointerDownOutside:b,side:w,sideOffset:E,align:S,alignOffset:k,arrowPadding:_,collisionBoundary:C,collisionPadding:R,sticky:M,hideWhenDetached:D,avoidCollisions:B,...F}=n,$=EN(wR,a),[P,H]=z.useState(null),[Q,re]=z.useState(null),ee=hs(i,kt=>H(kt)),[ae,he]=z.useState(null),[ve,de]=z.useState(null),ge=jae(a),[Y,fe]=z.useState(!1),De=z.useRef(!1);z.useEffect(()=>{if(P)return xae(P)},[P]),_ae();const Se=z.useCallback(kt=>{const[It,...Xt]=ge().map(Zn=>Zn.ref.current),[Bn]=Xt.slice(-1),tr=document.activeElement;for(const Zn of kt)if(Zn===tr||(Zn==null||Zn.scrollIntoView({block:"nearest"}),Zn===It&&Q&&(Q.scrollTop=0),Zn===Bn&&Q&&(Q.scrollTop=Q.scrollHeight),Zn==null||Zn.focus(),document.activeElement!==tr))return},[ge,Q]),$e=z.useCallback(()=>Se([ae,P]),[Se,ae,P]);z.useEffect(()=>{Y&&$e()},[Y,$e]);const{onOpenChange:Te,triggerPointerDownPosRef:ke}=$;z.useEffect(()=>{if(P){let kt={x:0,y:0};const It=Bn=>{var tr,Zn;kt={x:Math.abs(Math.round(Bn.pageX)-(((tr=ke.current)==null?void 0:tr.x)??0)),y:Math.abs(Math.round(Bn.pageY)-(((Zn=ke.current)==null?void 0:Zn.y)??0))}},Xt=Bn=>{kt.x<=10&&kt.y<=10?Bn.preventDefault():P.contains(Bn.target)||Te(!1),document.removeEventListener("pointermove",It),ke.current=null};return ke.current!==null&&(document.addEventListener("pointermove",It),document.addEventListener("pointerup",Xt,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",It),document.removeEventListener("pointerup",Xt,{capture:!0})}}},[P,Te,ke]),z.useEffect(()=>{const kt=()=>Te(!1);return window.addEventListener("blur",kt),window.addEventListener("resize",kt),()=>{window.removeEventListener("blur",kt),window.removeEventListener("resize",kt)}},[Te]);const[Je,bt]=dKt(kt=>{const It=ge().filter(tr=>!tr.disabled),Xt=It.find(tr=>tr.ref.current===document.activeElement),Bn=fKt(It,kt,Xt);Bn&&setTimeout(()=>Bn.ref.current.focus())}),qe=z.useCallback((kt,It,Xt)=>{const Bn=!De.current&&!Xt;($.value!==void 0&&$.value===It||Bn)&&(he(kt),Bn&&(De.current=!0))},[$.value]),_t=z.useCallback(()=>P==null?void 0:P.focus(),[P]),At=z.useCallback((kt,It,Xt)=>{const Bn=!De.current&&!Xt;($.value!==void 0&&$.value===It||Bn)&&de(kt)},[$.value]),ft=c==="popper"?DDe:YWt,Kt=ft===DDe?{side:w,sideOffset:E,align:S,alignOffset:k,arrowPadding:_,collisionBoundary:C,collisionPadding:R,sticky:M,hideWhenDetached:D,avoidCollisions:B}:{};return O.jsx(WWt,{scope:a,content:P,viewport:Q,onViewportChange:re,itemRefCallback:qe,selectedItem:ae,onItemLeave:_t,itemTextRefCallback:At,focusSelectedItem:$e,selectedItemText:ve,position:c,isPositioned:Y,searchRef:Je,children:O.jsx(Cz,{as:ver,allowPinchZoom:!0,children:O.jsx(xz,{asChild:!0,trapped:$.open,onMountAutoFocus:kt=>{kt.preventDefault()},onUnmountAutoFocus:Or(d,kt=>{var It;(It=$.trigger)==null||It.focus({preventScroll:!0}),kt.preventDefault()}),children:O.jsx(kz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:kt=>kt.preventDefault(),onDismiss:()=>$.onOpenChange(!1),children:O.jsx(ft,{role:"listbox",id:$.contentId,"data-state":$.open?"open":"closed",dir:$.dir,onContextMenu:kt=>kt.preventDefault(),...F,...Kt,onPlaced:()=>fe(!0),ref:ee,style:{display:"flex",flexDirection:"column",outline:"none",...F.style},onKeyDown:Or(F.onKeyDown,kt=>{const It=kt.ctrlKey||kt.altKey||kt.metaKey;if(kt.key==="Tab"&&kt.preventDefault(),!It&&kt.key.length===1&&bt(kt.key),["ArrowUp","ArrowDown","Home","End"].includes(kt.key)){let Bn=ge().filter(tr=>!tr.disabled).map(tr=>tr.ref.current);if(["ArrowUp","End"].includes(kt.key)&&(Bn=Bn.slice().reverse()),["ArrowUp","ArrowDown"].includes(kt.key)){const tr=kt.target,Zn=Bn.indexOf(tr);Bn=Bn.slice(Zn+1)}setTimeout(()=>Se(Bn)),kt.preventDefault()}})})})})})})});KWt.displayName=yer;var Eer="SelectItemAlignedPosition",YWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,onPlaced:c,...d}=n,g=EN(wR,a),b=SN(wR,a),[w,E]=z.useState(null),[S,k]=z.useState(null),_=hs(i,ee=>k(ee)),C=jae(a),R=z.useRef(!1),M=z.useRef(!0),{viewport:D,selectedItem:B,selectedItemText:F,focusSelectedItem:$}=b,P=z.useCallback(()=>{if(g.trigger&&g.valueNode&&w&&S&&D&&B&&F){const ee=g.trigger.getBoundingClientRect(),ae=S.getBoundingClientRect(),he=g.valueNode.getBoundingClientRect(),ve=F.getBoundingClientRect();if(g.dir!=="rtl"){const tr=ve.left-ae.left,Zn=he.left-tr,Dr=ee.left-Zn,Ui=ee.width+Dr,Qr=Math.max(Ui,ae.width),Hi=window.innerWidth-Av,ai=cse(Zn,[Av,Math.max(Av,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.left=ai+"px"}else{const tr=ae.right-ve.right,Zn=window.innerWidth-he.right-tr,Dr=window.innerWidth-ee.right-Zn,Ui=ee.width+Dr,Qr=Math.max(Ui,ae.width),Hi=window.innerWidth-Av,ai=cse(Zn,[Av,Math.max(Av,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.right=ai+"px"}const de=C(),ge=window.innerHeight-Av*2,Y=D.scrollHeight,fe=window.getComputedStyle(S),De=parseInt(fe.borderTopWidth,10),Se=parseInt(fe.paddingTop,10),$e=parseInt(fe.borderBottomWidth,10),Te=parseInt(fe.paddingBottom,10),ke=De+Se+Y+Te+$e,Je=Math.min(B.offsetHeight*5,ke),bt=window.getComputedStyle(D),qe=parseInt(bt.paddingTop,10),_t=parseInt(bt.paddingBottom,10),At=ee.top+ee.height/2-Av,ft=ge-At,Kt=B.offsetHeight/2,kt=B.offsetTop+Kt,It=De+Se+kt,Xt=ke-It;if(It<=At){const tr=de.length>0&&B===de[de.length-1].ref.current;w.style.bottom="0px";const Zn=S.clientHeight-D.offsetTop-D.offsetHeight,Dr=Math.max(ft,Kt+(tr?_t:0)+Zn+$e),Ui=It+Dr;w.style.height=Ui+"px"}else{const tr=de.length>0&&B===de[0].ref.current;w.style.top="0px";const Dr=Math.max(At,De+D.offsetTop+(tr?qe:0)+Kt)+Xt;w.style.height=Dr+"px",D.scrollTop=It-At+D.offsetTop}w.style.margin=`${Av}px 0`,w.style.minHeight=Je+"px",w.style.maxHeight=ge+"px",c==null||c(),requestAnimationFrame(()=>R.current=!0)}},[C,g.trigger,g.valueNode,w,S,D,B,F,g.dir,c]);Up(()=>P(),[P]);const[H,Q]=z.useState();Up(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]);const re=z.useCallback(ee=>{ee&&M.current===!0&&(P(),$==null||$(),M.current=!1)},[P,$]);return O.jsx(Ter,{scope:a,contentWrapper:w,shouldExpandOnScrollRef:R,onScrollButtonChange:re,children:O.jsx("div",{ref:E,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:H},children:O.jsx(eo.div,{...d,ref:_,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});YWt.displayName=Eer;var Ser="SelectPopperPosition",DDe=z.forwardRef((n,i)=>{const{__scopeSelect:a,align:c="start",collisionPadding:d=Av,...g}=n,b=Fae(a);return O.jsx(k5e,{...b,...g,ref:i,align:c,collisionPadding:d,style:{boxSizing:"border-box",...g.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});DDe.displayName=Ser;var[Ter,N5e]=q5(wR,{}),LDe="SelectViewport",JWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,nonce:c,...d}=n,g=SN(LDe,a),b=N5e(LDe,a),w=hs(i,g.onViewportChange),E=z.useRef(0);return O.jsxs(O.Fragment,{children:[O.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:c}),O.jsx(Pae.Slot,{scope:a,children:O.jsx(eo.div,{"data-radix-select-viewport":"",role:"presentation",...d,ref:w,style:{position:"relative",flex:1,overflow:"hidden auto",...d.style},onScroll:Or(d.onScroll,S=>{const k=S.currentTarget,{contentWrapper:_,shouldExpandOnScrollRef:C}=b;if(C!=null&&C.current&&_){const R=Math.abs(E.current-k.scrollTop);if(R>0){const M=window.innerHeight-Av*2,D=parseFloat(_.style.minHeight),B=parseFloat(_.style.height),F=Math.max(D,B);if(F0?H:0,_.style.justifyContent="flex-end")}}}E.current=k.scrollTop})})})]})});JWt.displayName=LDe;var XWt="SelectGroup",[Aer,_er]=q5(XWt),ker=z.forwardRef((n,i)=>{const{__scopeSelect:a,...c}=n,d=Fh();return O.jsx(Aer,{scope:a,id:d,children:O.jsx(eo.div,{role:"group","aria-labelledby":d,...c,ref:i})})});ker.displayName=XWt;var ZWt="SelectLabel",QWt=z.forwardRef((n,i)=>{const{__scopeSelect:a,...c}=n,d=_er(ZWt,a);return O.jsx(eo.div,{id:d.id,...c,ref:i})});QWt.displayName=ZWt;var pse="SelectItem",[xer,eKt]=q5(pse),tKt=z.forwardRef((n,i)=>{const{__scopeSelect:a,value:c,disabled:d=!1,textValue:g,...b}=n,w=EN(pse,a),E=SN(pse,a),S=w.value===c,[k,_]=z.useState(g??""),[C,R]=z.useState(!1),M=hs(i,$=>{var P;return(P=E.itemRefCallback)==null?void 0:P.call(E,$,c,d)}),D=Fh(),B=z.useRef("touch"),F=()=>{d||(w.onValueChange(c),w.onOpenChange(!1))};if(c==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return O.jsx(xer,{scope:a,value:c,disabled:d,textId:D,isSelected:S,onItemTextChange:z.useCallback($=>{_(P=>P||(($==null?void 0:$.textContent)??"").trim())},[]),children:O.jsx(Pae.ItemSlot,{scope:a,value:c,disabled:d,textValue:k,children:O.jsx(eo.div,{role:"option","aria-labelledby":D,"data-highlighted":C?"":void 0,"aria-selected":S&&C,"data-state":S?"checked":"unchecked","aria-disabled":d||void 0,"data-disabled":d?"":void 0,tabIndex:d?void 0:-1,...b,ref:M,onFocus:Or(b.onFocus,()=>R(!0)),onBlur:Or(b.onBlur,()=>R(!1)),onClick:Or(b.onClick,()=>{B.current!=="mouse"&&F()}),onPointerUp:Or(b.onPointerUp,()=>{B.current==="mouse"&&F()}),onPointerDown:Or(b.onPointerDown,$=>{B.current=$.pointerType}),onPointerMove:Or(b.onPointerMove,$=>{var P;B.current=$.pointerType,d?(P=E.onItemLeave)==null||P.call(E):B.current==="mouse"&&$.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Or(b.onPointerLeave,$=>{var P;$.currentTarget===document.activeElement&&((P=E.onItemLeave)==null||P.call(E))}),onKeyDown:Or(b.onKeyDown,$=>{var H;((H=E.searchRef)==null?void 0:H.current)!==""&&$.key===" "||(fer.includes($.key)&&F(),$.key===" "&&$.preventDefault())})})})})});tKt.displayName=pse;var nH="SelectItemText",nKt=z.forwardRef((n,i)=>{const{__scopeSelect:a,className:c,style:d,...g}=n,b=EN(nH,a),w=SN(nH,a),E=eKt(nH,a),S=ber(nH,a),[k,_]=z.useState(null),C=hs(i,F=>_(F),E.onItemTextChange,F=>{var $;return($=w.itemTextRefCallback)==null?void 0:$.call(w,F,E.value,E.disabled)}),R=k==null?void 0:k.textContent,M=z.useMemo(()=>O.jsx("option",{value:E.value,disabled:E.disabled,children:R},E.value),[E.disabled,E.value,R]),{onNativeOptionAdd:D,onNativeOptionRemove:B}=S;return Up(()=>(D(M),()=>B(M)),[D,B,M]),O.jsxs(O.Fragment,{children:[O.jsx(eo.span,{id:E.textId,...g,ref:C}),E.isSelected&&b.valueNode&&!b.valueNodeHasChildren?TR.createPortal(g.children,b.valueNode):null]})});nKt.displayName=nH;var rKt="SelectItemIndicator",iKt=z.forwardRef((n,i)=>{const{__scopeSelect:a,...c}=n;return eKt(rKt,a).isSelected?O.jsx(eo.span,{"aria-hidden":!0,...c,ref:i}):null});iKt.displayName=rKt;var MDe="SelectScrollUpButton",oKt=z.forwardRef((n,i)=>{const a=SN(MDe,n.__scopeSelect),c=N5e(MDe,n.__scopeSelect),[d,g]=z.useState(!1),b=hs(i,c.onScrollButtonChange);return Up(()=>{if(a.viewport&&a.isPositioned){let w=function(){const S=E.scrollTop>0;g(S)};const E=a.viewport;return w(),E.addEventListener("scroll",w),()=>E.removeEventListener("scroll",w)}},[a.viewport,a.isPositioned]),d?O.jsx(aKt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=a;w&&E&&(w.scrollTop=w.scrollTop-E.offsetHeight)}}):null});oKt.displayName=MDe;var PDe="SelectScrollDownButton",sKt=z.forwardRef((n,i)=>{const a=SN(PDe,n.__scopeSelect),c=N5e(PDe,n.__scopeSelect),[d,g]=z.useState(!1),b=hs(i,c.onScrollButtonChange);return Up(()=>{if(a.viewport&&a.isPositioned){let w=function(){const S=E.scrollHeight-E.clientHeight,k=Math.ceil(E.scrollTop)E.removeEventListener("scroll",w)}},[a.viewport,a.isPositioned]),d?O.jsx(aKt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=a;w&&E&&(w.scrollTop=w.scrollTop+E.offsetHeight)}}):null});sKt.displayName=PDe;var aKt=z.forwardRef((n,i)=>{const{__scopeSelect:a,onAutoScroll:c,...d}=n,g=SN("SelectScrollButton",a),b=z.useRef(null),w=jae(a),E=z.useCallback(()=>{b.current!==null&&(window.clearInterval(b.current),b.current=null)},[]);return z.useEffect(()=>()=>E(),[E]),Up(()=>{var k;const S=w().find(_=>_.ref.current===document.activeElement);(k=S==null?void 0:S.ref.current)==null||k.scrollIntoView({block:"nearest"})},[w]),O.jsx(eo.div,{"aria-hidden":!0,...d,ref:i,style:{flexShrink:0,...d.style},onPointerDown:Or(d.onPointerDown,()=>{b.current===null&&(b.current=window.setInterval(c,50))}),onPointerMove:Or(d.onPointerMove,()=>{var S;(S=g.onItemLeave)==null||S.call(g),b.current===null&&(b.current=window.setInterval(c,50))}),onPointerLeave:Or(d.onPointerLeave,()=>{E()})})}),Ner="SelectSeparator",uKt=z.forwardRef((n,i)=>{const{__scopeSelect:a,...c}=n;return O.jsx(eo.div,{"aria-hidden":!0,...c,ref:i})});uKt.displayName=Ner;var jDe="SelectArrow",Cer=z.forwardRef((n,i)=>{const{__scopeSelect:a,...c}=n,d=Fae(a),g=EN(jDe,a),b=SN(jDe,a);return g.open&&b.position==="popper"?O.jsx(x5e,{...d,...c,ref:i}):null});Cer.displayName=jDe;var Ier="SelectBubbleInput",cKt=z.forwardRef(({__scopeSelect:n,value:i,...a},c)=>{const d=z.useRef(null),g=hs(c,d),b=Sae(i);return z.useEffect(()=>{const w=d.current;if(!w)return;const E=window.HTMLSelectElement.prototype,k=Object.getOwnPropertyDescriptor(E,"value").set;if(b!==i&&k){const _=new Event("change",{bubbles:!0});k.call(w,i),w.dispatchEvent(_)}},[b,i]),O.jsx(eo.select,{...a,style:{...FWt,...a.style},ref:g,defaultValue:i})});cKt.displayName=Ier;function lKt(n){return n===""||n===void 0}function dKt(n){const i=G2(n),a=z.useRef(""),c=z.useRef(0),d=z.useCallback(b=>{const w=a.current+b;i(w),function E(S){a.current=S,window.clearTimeout(c.current),S!==""&&(c.current=window.setTimeout(()=>E(""),1e3))}(w)},[i]),g=z.useCallback(()=>{a.current="",window.clearTimeout(c.current)},[]);return z.useEffect(()=>()=>window.clearTimeout(c.current),[]),[a,d,g]}function fKt(n,i,a){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=a?n.indexOf(a):-1;let b=Rer(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==a));const E=b.find(S=>S.textValue.toLowerCase().startsWith(d.toLowerCase()));return E!==a?E:void 0}function Rer(n,i){return n.map((a,c)=>n[(i+c)%n.length])}var Oer=$Wt,hKt=UWt,Der=zWt,Ler=GWt,Mer=qWt,pKt=VWt,Per=JWt,gKt=QWt,bKt=tKt,jer=nKt,Fer=iKt,mKt=oKt,wKt=sKt,yKt=uKt;const Hp=Oer,zp=Der,Uh=z.forwardRef(({className:n,children:i,...a},c)=>O.jsxs(hKt,{ref:c,className:kr("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",n),...a,children:[i,O.jsx(Ler,{asChild:!0,children:O.jsx(Xse,{className:"h-4 w-4 opacity-50"})})]}));Uh.displayName=hKt.displayName;const vKt=z.forwardRef(({className:n,...i},a)=>O.jsx(mKt,{ref:a,className:kr("flex cursor-default items-center justify-center py-1",n),...i,children:O.jsx(Y9n,{className:"h-4 w-4"})}));vKt.displayName=mKt.displayName;const EKt=z.forwardRef(({className:n,...i},a)=>O.jsx(wKt,{ref:a,className:kr("flex cursor-default items-center justify-center py-1",n),...i,children:O.jsx(Xse,{className:"h-4 w-4"})}));EKt.displayName=wKt.displayName;const Hh=z.forwardRef(({className:n,children:i,position:a="popper",container:c,...d},g)=>O.jsx(Mer,{container:c,children:O.jsxs(pKt,{ref:g,className:kr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",a==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",n),position:a,...d,children:[O.jsx(vKt,{}),O.jsx(Per,{className:kr("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),O.jsx(EKt,{})]})}));Hh.displayName=pKt.displayName;const $er=z.forwardRef(({className:n,...i},a)=>O.jsx(gKt,{ref:a,className:kr("px-2 py-1.5 font-semibold text-sm",n),...i}));$er.displayName=gKt.displayName;const io=z.forwardRef(({className:n,children:i,...a},c)=>O.jsxs(bKt,{ref:c,className:kr("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...a,children:[O.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(Fer,{children:O.jsx(L5,{className:"h-4 w-4"})})}),O.jsx(jer,{children:i})]}));io.displayName=bKt.displayName;const Ber=z.forwardRef(({className:n,...i},a)=>O.jsx(yKt,{ref:a,className:kr("-mx-1 my-1 h-px bg-muted",n),...i}));Ber.displayName=yKt.displayName;const Uer=["single","restart","queued","parallel"],Her=["silent","warning","critical"],MFt=new Set(["queued","parallel"]);function zer(){const{t:n}=zs("common"),i=ds(C=>C.flowName),a=ds(C=>C.flowDescription),c=ds(C=>C.setFlowName),d=ds(C=>C.setFlowDescription),g=ds(C=>C.flowMetadata),b=ds(C=>C.setFlowMetadata),w=g.mode??"single",E=MFt.has(w),S=C=>{const R=C,M={mode:R};MFt.has(R)||(M.max=void 0,M.max_exceeded=void 0),b(M)},k=C=>{const R=Number.parseInt(C,10);C===""||Number.isNaN(R)?b({max:void 0}):R>0&&b({max:R})},_=C=>{b(C==="none"?{max_exceeded:void 0}:{max_exceeded:C})};return O.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[O.jsx("h3",{className:"mt-1.5 font-semibold text-foreground text-sm",children:n("automationSettings.title")}),O.jsx(fs,{label:n("labels.automationName"),children:O.jsx(Ba,{type:"text",value:i,onChange:C=>c(C.target.value),placeholder:n("placeholders.enterAutomationName")})}),O.jsx(fs,{label:n("automationSettings.description"),children:O.jsx(jv,{value:a,onChange:C=>d(C.target.value),placeholder:n("placeholders.describeAutomation"),rows:3})}),O.jsx(_z,{}),O.jsxs(fs,{label:n("automationSettings.mode"),description:n("automationSettings.modeDescription"),children:[O.jsxs(Hp,{value:w,onValueChange:S,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsx(Hh,{children:Uer.map(C=>O.jsx(io,{value:C,children:n(`automationSettings.modes.${C}`)},C))})]}),O.jsx("p",{className:"text-muted-foreground text-xs",children:n(`automationSettings.modeDescriptions.${w}`)})]}),E&&O.jsxs(O.Fragment,{children:[O.jsx(fs,{label:n("automationSettings.max"),description:n("automationSettings.maxDescription"),children:O.jsx(Ba,{type:"number",min:1,value:g.max??"",onChange:C=>k(C.target.value),placeholder:"10"})}),g.max!=null&&O.jsx(fs,{label:n("automationSettings.maxExceeded"),description:n("automationSettings.maxExceededDescription"),children:O.jsxs(Hp,{value:g.max_exceeded??"none",onValueChange:_,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"none",children:n("placeholders.none")}),Her.map(C=>O.jsx(io,{value:C,children:n(`automationSettings.maxExceededOptions.${C}`)},C))]})]})})]})]})}function eN({message:n}){return n?O.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-red-600 text-xs",children:[O.jsx(Pv,{className:"h-3 w-3 flex-shrink-0"}),O.jsx("span",{children:n})]}):null}var PFt=1,Ger=.9,qer=.8,Ver=.17,ROe=.1,OOe=.999,Wer=.9999,Ker=.99,Yer=/[\\\/_+.#"@\[\(\{&]/,Jer=/[\\\/_+.#"@\[\(\{&]/g,Xer=/[\s-]/,SKt=/[\s-]/g;function FDe(n,i,a,c,d,g,b){if(g===i.length)return d===n.length?PFt:Ker;var w=`${d},${g}`;if(b[w]!==void 0)return b[w];for(var E=c.charAt(g),S=a.indexOf(E,d),k=0,_,C,R,M;S>=0;)_=FDe(n,i,a,c,S+1,g+1,b),_>k&&(S===d?_*=PFt:Yer.test(n.charAt(S-1))?(_*=qer,R=n.slice(d,S-1).match(Jer),R&&d>0&&(_*=Math.pow(OOe,R.length))):Xer.test(n.charAt(S-1))?(_*=Ger,M=n.slice(d,S-1).match(SKt),M&&d>0&&(_*=Math.pow(OOe,M.length))):(_*=Ver,d>0&&(_*=Math.pow(OOe,S-d))),n.charAt(S)!==i.charAt(g)&&(_*=Wer)),(__&&(_=C*ROe)),_>k&&(k=_),S=a.indexOf(E,S+1);return b[w]=k,k}function jFt(n){return n.toLowerCase().replace(SKt," ")}function Zer(n,i,a){return n=a&&a.length>0?`${n+" "+a.join(" ")}`:n,FDe(n,i,jFt(n),jFt(i),0,0,{})}var Qer=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],TN=Qer.reduce((n,i)=>{const a=vae(`Primitive.${i}`),c=z.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?a:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),UU='[cmdk-group=""]',DOe='[cmdk-group-items=""]',etr='[cmdk-group-heading=""]',TKt='[cmdk-item=""]',FFt=`${TKt}:not([aria-disabled="true"])`,$De="cmdk-item-select",AM="data-value",ttr=(n,i,a)=>Zer(n,i,a),AKt=z.createContext(void 0),Oz=()=>z.useContext(AKt),_Kt=z.createContext(void 0),C5e=()=>z.useContext(_Kt),kKt=z.createContext(void 0),xKt=z.forwardRef((n,i)=>{let a=_M(()=>{var qe,_t;return{search:"",value:(_t=(qe=n.value)!=null?qe:n.defaultValue)!=null?_t:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=_M(()=>new Set),d=_M(()=>new Map),g=_M(()=>new Map),b=_M(()=>new Set),w=NKt(n),{label:E,children:S,value:k,onValueChange:_,filter:C,shouldFilter:R,loop:M,disablePointerSelection:D=!1,vimBindings:B=!0,...F}=n,$=Fh(),P=Fh(),H=Fh(),Q=z.useRef(null),re=ftr();yR(()=>{if(k!==void 0){let qe=k.trim();a.current.value=qe,ee.emit()}},[k]),yR(()=>{re(6,Y)},[]);let ee=z.useMemo(()=>({subscribe:qe=>(b.current.add(qe),()=>b.current.delete(qe)),snapshot:()=>a.current,setState:(qe,_t,At)=>{var ft,Kt,kt,It;if(!Object.is(a.current[qe],_t)){if(a.current[qe]=_t,qe==="search")ge(),ve(),re(1,de);else if(qe==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Xt=document.getElementById(H);Xt?Xt.focus():(ft=document.getElementById($))==null||ft.focus()}if(re(7,()=>{var Xt;a.current.selectedItemId=(Xt=fe())==null?void 0:Xt.id,ee.emit()}),At||re(5,Y),((Kt=w.current)==null?void 0:Kt.value)!==void 0){let Xt=_t??"";(It=(kt=w.current).onValueChange)==null||It.call(kt,Xt);return}}ee.emit()}},emit:()=>{b.current.forEach(qe=>qe())}}),[]),ae=z.useMemo(()=>({value:(qe,_t,At)=>{var ft;_t!==((ft=g.current.get(qe))==null?void 0:ft.value)&&(g.current.set(qe,{value:_t,keywords:At}),a.current.filtered.items.set(qe,he(_t,At)),re(2,()=>{ve(),ee.emit()}))},item:(qe,_t)=>(c.current.add(qe),_t&&(d.current.has(_t)?d.current.get(_t).add(qe):d.current.set(_t,new Set([qe]))),re(3,()=>{ge(),ve(),a.current.value||de(),ee.emit()}),()=>{g.current.delete(qe),c.current.delete(qe),a.current.filtered.items.delete(qe);let At=fe();re(4,()=>{ge(),(At==null?void 0:At.getAttribute("id"))===qe&&de(),ee.emit()})}),group:qe=>(d.current.has(qe)||d.current.set(qe,new Set),()=>{g.current.delete(qe),d.current.delete(qe)}),filter:()=>w.current.shouldFilter,label:E||n["aria-label"],getDisablePointerSelection:()=>w.current.disablePointerSelection,listId:$,inputId:H,labelId:P,listInnerRef:Q}),[]);function he(qe,_t){var At,ft;let Kt=(ft=(At=w.current)==null?void 0:At.filter)!=null?ft:ttr;return qe?Kt(qe,a.current.search,_t):0}function ve(){if(!a.current.search||w.current.shouldFilter===!1)return;let qe=a.current.filtered.items,_t=[];a.current.filtered.groups.forEach(ft=>{let Kt=d.current.get(ft),kt=0;Kt.forEach(It=>{let Xt=qe.get(It);kt=Math.max(Xt,kt)}),_t.push([ft,kt])});let At=Q.current;De().sort((ft,Kt)=>{var kt,It;let Xt=ft.getAttribute("id"),Bn=Kt.getAttribute("id");return((kt=qe.get(Bn))!=null?kt:0)-((It=qe.get(Xt))!=null?It:0)}).forEach(ft=>{let Kt=ft.closest(DOe);Kt?Kt.appendChild(ft.parentElement===Kt?ft:ft.closest(`${DOe} > *`)):At.appendChild(ft.parentElement===At?ft:ft.closest(`${DOe} > *`))}),_t.sort((ft,Kt)=>Kt[1]-ft[1]).forEach(ft=>{var Kt;let kt=(Kt=Q.current)==null?void 0:Kt.querySelector(`${UU}[${AM}="${encodeURIComponent(ft[0])}"]`);kt==null||kt.parentElement.appendChild(kt)})}function de(){let qe=De().find(At=>At.getAttribute("aria-disabled")!=="true"),_t=qe==null?void 0:qe.getAttribute(AM);ee.setState("value",_t||void 0)}function ge(){var qe,_t,At,ft;if(!a.current.search||w.current.shouldFilter===!1){a.current.filtered.count=c.current.size;return}a.current.filtered.groups=new Set;let Kt=0;for(let kt of c.current){let It=(_t=(qe=g.current.get(kt))==null?void 0:qe.value)!=null?_t:"",Xt=(ft=(At=g.current.get(kt))==null?void 0:At.keywords)!=null?ft:[],Bn=he(It,Xt);a.current.filtered.items.set(kt,Bn),Bn>0&&Kt++}for(let[kt,It]of d.current)for(let Xt of It)if(a.current.filtered.items.get(Xt)>0){a.current.filtered.groups.add(kt);break}a.current.filtered.count=Kt}function Y(){var qe,_t,At;let ft=fe();ft&&(((qe=ft.parentElement)==null?void 0:qe.firstChild)===ft&&((At=(_t=ft.closest(UU))==null?void 0:_t.querySelector(etr))==null||At.scrollIntoView({block:"nearest"})),ft.scrollIntoView({block:"nearest"}))}function fe(){var qe;return(qe=Q.current)==null?void 0:qe.querySelector(`${TKt}[aria-selected="true"]`)}function De(){var qe;return Array.from(((qe=Q.current)==null?void 0:qe.querySelectorAll(FFt))||[])}function Se(qe){let _t=De()[qe];_t&&ee.setState("value",_t.getAttribute(AM))}function $e(qe){var _t;let At=fe(),ft=De(),Kt=ft.findIndex(It=>It===At),kt=ft[Kt+qe];(_t=w.current)!=null&&_t.loop&&(kt=Kt+qe<0?ft[ft.length-1]:Kt+qe===ft.length?ft[0]:ft[Kt+qe]),kt&&ee.setState("value",kt.getAttribute(AM))}function Te(qe){let _t=fe(),At=_t==null?void 0:_t.closest(UU),ft;for(;At&&!ft;)At=qe>0?ltr(At,UU):dtr(At,UU),ft=At==null?void 0:At.querySelector(FFt);ft?ee.setState("value",ft.getAttribute(AM)):$e(qe)}let ke=()=>Se(De().length-1),Je=qe=>{qe.preventDefault(),qe.metaKey?ke():qe.altKey?Te(1):$e(1)},bt=qe=>{qe.preventDefault(),qe.metaKey?Se(0):qe.altKey?Te(-1):$e(-1)};return z.createElement(TN.div,{ref:i,tabIndex:-1,...F,"cmdk-root":"",onKeyDown:qe=>{var _t;(_t=F.onKeyDown)==null||_t.call(F,qe);let At=qe.nativeEvent.isComposing||qe.keyCode===229;if(!(qe.defaultPrevented||At))switch(qe.key){case"n":case"j":{B&&qe.ctrlKey&&Je(qe);break}case"ArrowDown":{Je(qe);break}case"p":case"k":{B&&qe.ctrlKey&&bt(qe);break}case"ArrowUp":{bt(qe);break}case"Home":{qe.preventDefault(),Se(0);break}case"End":{qe.preventDefault(),ke();break}case"Enter":{qe.preventDefault();let ft=fe();if(ft){let Kt=new Event($De);ft.dispatchEvent(Kt)}}}}},z.createElement("label",{"cmdk-label":"",htmlFor:ae.inputId,id:ae.labelId,style:ptr},E),$ae(n,qe=>z.createElement(_Kt.Provider,{value:ee},z.createElement(AKt.Provider,{value:ae},qe))))}),ntr=z.forwardRef((n,i)=>{var a,c;let d=Fh(),g=z.useRef(null),b=z.useContext(kKt),w=Oz(),E=NKt(n),S=(c=(a=E.current)==null?void 0:a.forceMount)!=null?c:b==null?void 0:b.forceMount;yR(()=>{if(!S)return w.item(d,b==null?void 0:b.id)},[S]);let k=CKt(d,g,[n.value,n.children,g],n.keywords),_=C5e(),C=hN(re=>re.value&&re.value===k.current),R=hN(re=>S||w.filter()===!1?!0:re.search?re.filtered.items.get(d)>0:!0);z.useEffect(()=>{let re=g.current;if(!(!re||n.disabled))return re.addEventListener($De,M),()=>re.removeEventListener($De,M)},[R,n.onSelect,n.disabled]);function M(){var re,ee;D(),(ee=(re=E.current).onSelect)==null||ee.call(re,k.current)}function D(){_.setState("value",k.current,!0)}if(!R)return null;let{disabled:B,value:F,onSelect:$,forceMount:P,keywords:H,...Q}=n;return z.createElement(TN.div,{ref:Gg(g,i),...Q,id:d,"cmdk-item":"",role:"option","aria-disabled":!!B,"aria-selected":!!C,"data-disabled":!!B,"data-selected":!!C,onPointerMove:B||w.getDisablePointerSelection()?void 0:D,onClick:B?void 0:M},n.children)}),rtr=z.forwardRef((n,i)=>{let{heading:a,children:c,forceMount:d,...g}=n,b=Fh(),w=z.useRef(null),E=z.useRef(null),S=Fh(),k=Oz(),_=hN(R=>d||k.filter()===!1?!0:R.search?R.filtered.groups.has(b):!0);yR(()=>k.group(b),[]),CKt(b,w,[n.value,n.heading,E]);let C=z.useMemo(()=>({id:b,forceMount:d}),[d]);return z.createElement(TN.div,{ref:Gg(w,i),...g,"cmdk-group":"",role:"presentation",hidden:_?void 0:!0},a&&z.createElement("div",{ref:E,"cmdk-group-heading":"","aria-hidden":!0,id:S},a),$ae(n,R=>z.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?S:void 0},z.createElement(kKt.Provider,{value:C},R))))}),itr=z.forwardRef((n,i)=>{let{alwaysRender:a,...c}=n,d=z.useRef(null),g=hN(b=>!b.search);return!a&&!g?null:z.createElement(TN.div,{ref:Gg(d,i),...c,"cmdk-separator":"",role:"separator"})}),otr=z.forwardRef((n,i)=>{let{onValueChange:a,...c}=n,d=n.value!=null,g=C5e(),b=hN(S=>S.search),w=hN(S=>S.selectedItemId),E=Oz();return z.useEffect(()=>{n.value!=null&&g.setState("search",n.value)},[n.value]),z.createElement(TN.input,{ref:i,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":E.listId,"aria-labelledby":E.labelId,"aria-activedescendant":w,id:E.inputId,type:"text",value:d?n.value:b,onChange:S=>{d||g.setState("search",S.target.value),a==null||a(S.target.value)}})}),str=z.forwardRef((n,i)=>{let{children:a,label:c="Suggestions",...d}=n,g=z.useRef(null),b=z.useRef(null),w=hN(S=>S.selectedItemId),E=Oz();return z.useEffect(()=>{if(b.current&&g.current){let S=b.current,k=g.current,_,C=new ResizeObserver(()=>{_=requestAnimationFrame(()=>{let R=S.offsetHeight;k.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px")})});return C.observe(S),()=>{cancelAnimationFrame(_),C.unobserve(S)}}},[]),z.createElement(TN.div,{ref:Gg(g,i),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":w,"aria-label":c,id:E.listId},$ae(n,S=>z.createElement("div",{ref:Gg(b,E.listInnerRef),"cmdk-list-sizer":""},S)))}),atr=z.forwardRef((n,i)=>{let{open:a,onOpenChange:c,overlayClassName:d,contentClassName:g,container:b,...w}=n;return z.createElement(KVt,{open:a,onOpenChange:c},z.createElement(YVt,{container:b},z.createElement(p5e,{"cmdk-overlay":"",className:d}),z.createElement(g5e,{"aria-label":n.label,"cmdk-dialog":"",className:g},z.createElement(xKt,{ref:i,...w}))))}),utr=z.forwardRef((n,i)=>hN(a=>a.filtered.count===0)?z.createElement(TN.div,{ref:i,...n,"cmdk-empty":"",role:"presentation"}):null),ctr=z.forwardRef((n,i)=>{let{progress:a,children:c,label:d="Loading...",...g}=n;return z.createElement(TN.div,{ref:i,...g,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},$ae(n,b=>z.createElement("div",{"aria-hidden":!0},b)))}),hb=Object.assign(xKt,{List:str,Item:ntr,Input:otr,Group:rtr,Separator:itr,Dialog:atr,Empty:utr,Loading:ctr});function ltr(n,i){let a=n.nextElementSibling;for(;a;){if(a.matches(i))return a;a=a.nextElementSibling}}function dtr(n,i){let a=n.previousElementSibling;for(;a;){if(a.matches(i))return a;a=a.previousElementSibling}}function NKt(n){let i=z.useRef(n);return yR(()=>{i.current=n}),i}var yR=typeof window>"u"?z.useEffect:z.useLayoutEffect;function _M(n){let i=z.useRef();return i.current===void 0&&(i.current=n()),i}function hN(n){let i=C5e(),a=()=>n(i.snapshot());return z.useSyncExternalStore(i.subscribe,a,a)}function CKt(n,i,a,c=[]){let d=z.useRef(),g=Oz();return yR(()=>{var b;let w=(()=>{var S;for(let k of a){if(typeof k=="string")return k.trim();if(typeof k=="object"&&"current"in k)return k.current?(S=k.current.textContent)==null?void 0:S.trim():d.current}})(),E=c.map(S=>S.trim());g.value(n,w,E),(b=i.current)==null||b.setAttribute(AM,w),d.current=w}),d}var ftr=()=>{let[n,i]=z.useState(),a=_M(()=>new Map);return yR(()=>{a.current.forEach(c=>c()),a.current=new Map},[n]),(c,d)=>{a.current.set(c,d),i({})}};function htr(n){let i=n.type;return typeof i=="function"?i(n.props):"render"in i?i.render(n.props):n}function $ae({asChild:n,children:i},a){return n&&z.isValidElement(i)?z.cloneElement(htr(i),{ref:i.ref},a(i.props.children)):a(i)}var ptr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const IKt=z.forwardRef(({className:n,...i},a)=>O.jsx(hb,{ref:a,className:kr("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),...i}));IKt.displayName=hb.displayName;const RKt=z.forwardRef(({className:n,...i},a)=>O.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[O.jsx(eGt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),O.jsx(hb.Input,{ref:a,className:kr("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n),...i})]}));RKt.displayName=hb.Input.displayName;const OKt=z.forwardRef(({className:n,...i},a)=>O.jsx(hb.List,{ref:a,className:kr("max-h-[300px] overflow-y-auto overflow-x-hidden",n),...i}));OKt.displayName=hb.List.displayName;const DKt=z.forwardRef((n,i)=>O.jsx(hb.Empty,{ref:i,className:"py-6 text-center text-sm",...n}));DKt.displayName=hb.Empty.displayName;const LKt=z.forwardRef(({className:n,...i},a)=>O.jsx(hb.Group,{ref:a,className:kr("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",n),...i}));LKt.displayName=hb.Group.displayName;const gtr=z.forwardRef(({className:n,...i},a)=>O.jsx(hb.Separator,{ref:a,className:kr("-mx-1 h-px bg-border",n),...i}));gtr.displayName=hb.Separator.displayName;const MKt=z.forwardRef(({className:n,...i},a)=>O.jsx(hb.Item,{ref:a,className:kr("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n),...i}));MKt.displayName=hb.Item.displayName;function btr(n){const i=mtr(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(ytr);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function mtr(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=Etr(d),w=vtr(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var wtr=Symbol("radix.slottable");function ytr(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===wtr}function vtr(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function Etr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}var Bae="Popover",[PKt]=Nw(Bae,[G5]),Dz=G5(),[Str,AN]=PKt(Bae),jKt=n=>{const{__scopePopover:i,children:a,open:c,defaultOpen:d,onOpenChange:g,modal:b=!1}=n,w=Dz(i),E=z.useRef(null),[S,k]=z.useState(!1),[_,C]=z2({prop:c,defaultProp:d??!1,onChange:g,caller:Bae});return O.jsx(_5e,{...w,children:O.jsx(Str,{scope:i,contentId:Fh(),triggerRef:E,open:_,onOpenChange:C,onOpenToggle:z.useCallback(()=>C(R=>!R),[C]),hasCustomAnchor:S,onCustomAnchorAdd:z.useCallback(()=>k(!0),[]),onCustomAnchorRemove:z.useCallback(()=>k(!1),[]),modal:b,children:a})})};jKt.displayName=Bae;var FKt="PopoverAnchor",Ttr=z.forwardRef((n,i)=>{const{__scopePopover:a,...c}=n,d=AN(FKt,a),g=Dz(a),{onCustomAnchorAdd:b,onCustomAnchorRemove:w}=d;return z.useEffect(()=>(b(),()=>w()),[b,w]),O.jsx(Mae,{...g,...c,ref:i})});Ttr.displayName=FKt;var $Kt="PopoverTrigger",BKt=z.forwardRef((n,i)=>{const{__scopePopover:a,...c}=n,d=AN($Kt,a),g=Dz(a),b=hs(i,d.triggerRef),w=O.jsx(eo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":qKt(d.open),...c,ref:b,onClick:Or(n.onClick,d.onOpenToggle)});return d.hasCustomAnchor?w:O.jsx(Mae,{asChild:!0,...g,children:w})});BKt.displayName=$Kt;var I5e="PopoverPortal",[Atr,_tr]=PKt(I5e,{forceMount:void 0}),UKt=n=>{const{__scopePopover:i,forceMount:a,children:c,container:d}=n,g=AN(I5e,i);return O.jsx(Atr,{scope:i,forceMount:a,children:O.jsx(Cw,{present:a||g.open,children:O.jsx(Nz,{asChild:!0,container:d,children:c})})})};UKt.displayName=I5e;var C5="PopoverContent",HKt=z.forwardRef((n,i)=>{const a=_tr(C5,n.__scopePopover),{forceMount:c=a.forceMount,...d}=n,g=AN(C5,n.__scopePopover);return O.jsx(Cw,{present:c||g.open,children:g.modal?O.jsx(xtr,{...d,ref:i}):O.jsx(Ntr,{...d,ref:i})})});HKt.displayName=C5;var ktr=btr("PopoverContent.RemoveScroll"),xtr=z.forwardRef((n,i)=>{const a=AN(C5,n.__scopePopover),c=z.useRef(null),d=hs(i,c),g=z.useRef(!1);return z.useEffect(()=>{const b=c.current;if(b)return xae(b)},[]),O.jsx(Cz,{as:ktr,allowPinchZoom:!0,children:O.jsx(zKt,{...n,ref:d,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Or(n.onCloseAutoFocus,b=>{var w;b.preventDefault(),g.current||(w=a.triggerRef.current)==null||w.focus()}),onPointerDownOutside:Or(n.onPointerDownOutside,b=>{const w=b.detail.originalEvent,E=w.button===0&&w.ctrlKey===!0,S=w.button===2||E;g.current=S},{checkForDefaultPrevented:!1}),onFocusOutside:Or(n.onFocusOutside,b=>b.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ntr=z.forwardRef((n,i)=>{const a=AN(C5,n.__scopePopover),c=z.useRef(!1),d=z.useRef(!1);return O.jsx(zKt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(c.current||(w=a.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=a.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),zKt=z.forwardRef((n,i)=>{const{__scopePopover:a,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:g,disableOutsidePointerEvents:b,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onInteractOutside:k,..._}=n,C=AN(C5,a),R=Dz(a);return _ae(),O.jsx(xz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:O.jsx(kz,{asChild:!0,disableOutsidePointerEvents:b,onInteractOutside:k,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onDismiss:()=>C.onOpenChange(!1),children:O.jsx(k5e,{"data-state":qKt(C.open),role:"dialog",id:C.contentId,...R,..._,ref:i,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),GKt="PopoverClose",Ctr=z.forwardRef((n,i)=>{const{__scopePopover:a,...c}=n,d=AN(GKt,a);return O.jsx(eo.button,{type:"button",...c,ref:i,onClick:Or(n.onClick,()=>d.onOpenChange(!1))})});Ctr.displayName=GKt;var Itr="PopoverArrow",Rtr=z.forwardRef((n,i)=>{const{__scopePopover:a,...c}=n,d=Dz(a);return O.jsx(x5e,{...d,...c,ref:i})});Rtr.displayName=Itr;function qKt(n){return n?"open":"closed"}var Otr=jKt,Dtr=BKt,Ltr=UKt,VKt=HKt;const Mtr=Otr,Ptr=Dtr,WKt=z.forwardRef(({className:n,align:i="center",sideOffset:a=4,container:c,...d},g)=>O.jsx(Ltr,{container:c,children:O.jsx(VKt,{ref:g,align:i,sideOffset:a,className:kr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",n),...d})}));WKt.displayName=VKt.displayName;function jtr(n,i){const[a,c]=z.useState(""),d=z.useMemo(()=>{const b={threshold:.3,ignoreLocation:!0,includeScore:!0,includeMatches:!0,minMatchCharLength:1,keys:i.keys,...i.threshold!==void 0&&{threshold:i.threshold},...i.includeScore!==void 0&&{includeScore:i.includeScore},...i.ignoreLocation!==void 0&&{ignoreLocation:i.ignoreLocation},...i.includeMatches!==void 0&&{includeMatches:i.includeMatches},...i.minMatchCharLength!==void 0&&{minMatchCharLength:i.minMatchCharLength}};return new RR(n,b)},[n,i]),g=z.useMemo(()=>a.trim()?d.search(a):n.map((b,w)=>({item:b,refIndex:w,score:0})),[a,d,n]);return{query:a,setQuery:c,filteredItems:g.map(b=>b.item),results:g}}function KKt({options:n,value:i,onChange:a,placeholder:c,className:d,buttonClassName:g,disabled:b=!1,renderOption:w,renderValue:E,searchKeys:S=["label","value"],fuzzyOptions:k={}}){const{t:_}=zs(["common"]),[C,R]=z.useState(!1),{query:M,setQuery:D,filteredItems:B}=jtr(n,{keys:S,threshold:.4,includeScore:!0,ignoreLocation:!0,includeMatches:!0,minMatchCharLength:1,...k}),F=n.find(P=>P.value===i),$=P=>{D(P)};return O.jsxs(Mtr,{open:C,onOpenChange:R,children:[O.jsx(Ptr,{asChild:!0,children:O.jsxs(Di,{variant:"outline",role:"combobox","aria-expanded":C,className:kr("flex w-full justify-between",g),disabled:b,children:[F?E?E(F):F.label:c||_("combobox.select"),O.jsx(X9n,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),O.jsx(WKt,{className:kr("w-[286px] p-0",d),children:O.jsxs(IKt,{shouldFilter:!1,children:[O.jsx(RKt,{placeholder:c||_("combobox.select"),className:"h-9",value:M,onValueChange:$}),O.jsxs(OKt,{children:[O.jsx(DKt,{children:_("combobox.noOptions")}),O.jsx(LKt,{children:B.map(P=>O.jsxs(MKt,{value:P.value,onSelect:H=>{a(H===i?"":H),R(!1),D("")},children:[w?w(P):P.label,O.jsx(L5,{className:kr("ml-auto h-4 w-4",i===P.value?"opacity-100":"opacity-0")})]},P.value))})]})]})})]})}function BDe({values:n,onChange:i,placeholder:a="Add ID...",className:c}){const[d,g]=z.useState(""),b=()=>{const S=d.trim();S&&!n.includes(S)&&(i([...n,S]),g(""))},w=S=>{i(n.filter(k=>k!==S))},E=S=>{S.key==="Enter"&&(S.preventDefault(),b())};return O.jsxs("div",{className:kr("space-y-1",c),children:[O.jsxs("div",{className:"flex gap-1",children:[O.jsx(Ba,{value:d,onChange:S=>g(S.target.value),onKeyDown:E,placeholder:a,className:"flex-1 font-mono text-xs"}),O.jsx(Di,{type:"button",size:"icon",variant:"outline",onClick:b,disabled:!d.trim(),children:O.jsx(Qse,{className:"h-4 w-4"})})]}),n.length>0&&O.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(S=>O.jsxs("span",{className:"inline-flex items-center rounded border bg-muted px-2 py-0.5 font-mono text-muted-foreground text-xs",children:[S,O.jsx(eae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>w(S)})]},S))})]})}const Ftr={light:{label:"Light",color:"bg-yellow-100 dark:bg-yellow-900/50 text-yellow-800 dark:text-yellow-200"},switch:{label:"Switch",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"},sensor:{label:"Sensor",color:"bg-green-100 dark:bg-green-900/50 text-green-800 dark:text-green-200"},binary_sensor:{label:"Binary Sensor",color:"bg-purple-100 dark:bg-purple-900/50 text-purple-800 dark:text-purple-200"},climate:{label:"Climate",color:"bg-orange-100 dark:bg-orange-900/50 text-orange-800 dark:text-orange-200"},cover:{label:"Cover",color:"bg-indigo-100 dark:bg-indigo-900/50 text-indigo-800 dark:text-indigo-200"},fan:{label:"Fan",color:"bg-cyan-100 dark:bg-cyan-900/50 text-cyan-800 dark:text-cyan-200"},media_player:{label:"Media",color:"bg-pink-100 dark:bg-pink-900/50 text-pink-800 dark:text-pink-200"},automation:{label:"Automation",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},script:{label:"Script",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},scene:{label:"Scene",color:"bg-violet-100 dark:bg-violet-900/50 text-violet-800 dark:text-violet-200"},input_boolean:{label:"Input Bool",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_number:{label:"Input Num",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_select:{label:"Input Select",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_text:{label:"Input Text",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_datetime:{label:"Input Time",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},person:{label:"Person",color:"bg-amber-100 dark:bg-amber-900/50 text-amber-800 dark:text-amber-200"},device_tracker:{label:"Tracker",color:"bg-amber-100 dark:bg-amber-900/50 text-amber-800 dark:text-amber-200"},zone:{label:"Zone",color:"bg-lime-100 dark:bg-lime-900/50 text-lime-800 dark:text-lime-200"},sun:{label:"Sun",color:"bg-orange-100 dark:bg-orange-900/50 text-orange-800 dark:text-orange-200"},weather:{label:"Weather",color:"bg-sky-100 dark:bg-sky-900/50 text-sky-800 dark:text-sky-200"},camera:{label:"Camera",color:"bg-rose-100 dark:bg-rose-900/50 text-rose-800 dark:text-rose-200"},remote:{label:"Remote",color:"bg-gray-100 dark:bg-gray-700/50 text-gray-800 dark:text-gray-200"},vacuum:{label:"Vacuum",color:"bg-teal-100 dark:bg-teal-900/50 text-teal-800 dark:text-teal-200"},lock:{label:"Lock",color:"bg-red-100 dark:bg-red-900/50 text-red-800 dark:text-red-200"},alarm_control_panel:{label:"Alarm",color:"bg-red-100 dark:bg-red-900/50 text-red-800 dark:text-red-200"},water_heater:{label:"Water Heater",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"},humidifier:{label:"Humidifier",color:"bg-cyan-100 dark:bg-cyan-900/50 text-cyan-800 dark:text-cyan-200"},button:{label:"Button",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},number:{label:"Number",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},select:{label:"Select",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},text:{label:"Text",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},update:{label:"Update",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"}};function $tr(n){if(!n||typeof n!="string")return{label:"Unknown",color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"};const i=n.split(".")[0];return Ftr[i]||{label:i,color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"}}function Btr(n){return n.attributes.friendly_name||n.entity_id}function Uae({value:n,onChange:i,entities:a,placeholder:c="Select entity...",className:d}){const{entities:g,getDeviceNameForEntity:b}=Gm(),w=a??g,E=z.useMemo(()=>w.map(R=>{const M=$tr(R.entity_id);return{value:R.entity_id,label:Btr(R),domainLabel:M.label,domainColor:M.color,deviceLabel:b(R.entity_id)??void 0}}),[w,b]),S=Array.isArray(n)?n[0]:n,k=w.find(R=>R.entity_id===S),_=S&&!k,C=R=>{i(R)};return O.jsxs("div",{className:kr("relative",d),children:[O.jsx(KKt,{options:E,value:S||"",onChange:C,placeholder:c,buttonClassName:kr(!S&&"text-muted-foreground"),disabled:E.length===0,searchKeys:["label","value","deviceLabel"],fuzzyOptions:{threshold:.3,minMatchCharLength:2},renderOption:R=>O.jsxs("div",{className:"flex min-w-0 flex-col gap-2",children:[O.jsx("span",{children:R.label}),O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("span",{className:kr("rounded px-1.5 py-0.5 font-medium text-xs",R.domainColor),children:R.domainLabel}),R.deviceLabel&&O.jsx("span",{className:"truncate text-muted-foreground text-xs",children:R.deviceLabel})]})]}),renderValue:R=>R?O.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[O.jsx("span",{className:kr("rounded px-1.5 py-0.5 font-medium text-xs",R.domainColor),children:R.domainLabel}),O.jsx("span",{className:"truncate",children:R.label})]}):null}),_&&O.jsx("div",{className:"mt-1 truncate font-mono text-red-600",children:S})]})}function R5e({value:n,onChange:i,entities:a,placeholder:c="Select entities...",className:d}){const g=w=>{n.includes(w)||i([...n,w])},b=w=>{i(n.filter(E=>E!==w))};return O.jsxs("div",{className:kr("space-y-1",d),children:[O.jsx(Uae,{value:"",onChange:g,entities:a,placeholder:c,className:"w-full"}),O.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(w=>O.jsxs("span",{className:"inline-flex items-center rounded border bg-muted px-2 py-0.5 font-mono text-muted-foreground text-xs",children:[w,O.jsx(eae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>b(w)})]},w))})]})}function O5e(n,i,a){const d=n.data[i];return d??a}function Ug(n,i,a=""){const c=O5e(n,i,a);if(typeof c=="string")return c;if(typeof c=="object"&&c!==null&&!Array.isArray(c)){const d=c;if(typeof d.value=="string")return d.value}return a}function kM(n,i,a={}){const c=O5e(n,i,a);return typeof c=="object"&&c!==null&&!Array.isArray(c)?c:a}function Utr({response:n,responseVariable:i,showResponseVariable:a,setShowResponseVariable:c,onChange:d,handleResponseVariableChange:g}){const{t:b}=zs(["common","nodes"]),w=O.jsxs(O.Fragment,{children:[O.jsx(Ba,{type:"text",value:i??"",onChange:g,placeholder:b("nodes:responseVariableField.placeholder")}),(i==null?void 0:i.trim())==="current_node"&&O.jsxs(cA,{variant:"destructive",className:"mt-2 border-0 px-0",children:[O.jsx(pWt,{children:b("labels.warning")}),O.jsx(lA,{children:b("nodes:responseVariableField.currentNodeWarning")})]})]});return n.optional?O.jsxs(fs,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.optionalDescription"),children:[O.jsxs("div",{className:"mb-2 flex items-center gap-3",children:[O.jsx(_A,{checked:a,onCheckedChange:E=>{c(E),E||d("response_variable",void 0)},id:"response-variable-switch"}),O.jsx("label",{htmlFor:"response-variable-switch",className:"cursor-pointer select-none text-sm",children:b("nodes:responseVariableField.useResponseVariable")})]}),a&&w]}):O.jsx(fs,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.requiredDescription"),children:w})}function Htr({serviceFields:n,currentData:i,onChange:a}){const{t:c}=zs(["common","nodes"]);return Object.keys(n).length===0?null:O.jsxs("div",{className:"mt-3 flex flex-col gap-3 border-t pt-3",children:[O.jsx("h4",{className:"mb-3 font-semibold text-muted-foreground text-xs",children:c("nodes:serviceDataFields.heading")}),Object.entries(n).map(([d,g])=>{var _;const b=g.selector||{},w=Object.keys(b)[0],E=b[w]||{},S=i[d],k=g.name||d.replace(/_/g," ").replace(/\b\w/g,C=>C.toUpperCase());if(w==="number"){const C=E;return O.jsx(fs,{label:`${k}${C.unit_of_measurement?` (${C.unit_of_measurement})`:""}`,required:g.required,description:g.description,children:O.jsx(Ba,{type:"number",value:S??"",onChange:R=>a(d,R.target.value?Number(R.target.value):""),min:C.min,max:C.max,placeholder:g.example!==void 0?String(g.example):""})},d)}if(w==="select"){const C=E;return O.jsx(fs,{label:k,required:g.required,description:g.description,children:O.jsxs(Hp,{value:String(S===""?"__NONE__":S??"__NONE__"),onValueChange:R=>a(d,R==="__NONE__"?"":R),children:[O.jsx(Uh,{children:O.jsx(zp,{placeholder:c("placeholders.none")})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"__NONE__",children:c("placeholders.none")}),(_=C.options)==null?void 0:_.map(R=>O.jsx(io,{value:R,children:R},R))]})]})},d)}if(w==="boolean")return O.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[O.jsx("input",{type:"checkbox",checked:S??!1,onChange:C=>a(d,C.target.checked),className:"rounded"}),O.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[k,g.required&&O.jsx("span",{className:"ml-0.5 text-destructive",children:c("labels.requiredAsterisk")})]})]},d);if(w==="entity"){if(E.multiple===!0){const M=Array.isArray(S)?S:S?[String(S)]:[];return O.jsx(fs,{label:k,required:g.required,description:g.description,children:O.jsx(R5e,{value:M,onChange:D=>a(d,D),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return O.jsx(fs,{label:k,required:g.required,description:g.description,children:O.jsx(Uae,{value:String(S??""),onChange:M=>a(d,M),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return O.jsx(fs,{label:k,required:g.required,description:g.description,children:O.jsx(Ba,{type:"text",value:S??"",onChange:C=>a(d,C.target.value),placeholder:g.example!==void 0?String(g.example):""})},d)})]})}const ztr=new Set(["homeassistant","group"]);function Gtr(n,i){if(!n||!n.includes("."))return i;const a=n.split(".")[0];if(ztr.has(a))return i;const c=i.filter(d=>d.entity_id.startsWith(`${a}.`));return c.length>0?c:i}function qtr({node:n,onChange:i,entities:a}){const{t:c}=zs(["nodes"]),{getAllServices:d,getServiceDefinition:g}=Gm(),{getFieldError:b}=xw(n.id),w=Ug(n,"service"),E=Ug(n,"event"),S=g(w),k=(S==null?void 0:S.fields)||{},_=kM(n,"data",{}),C=Ug(n,"response_variable"),[R,M]=z.useState(!!C),D=E?"event":"service";z.useEffect(()=>{M(!!C)},[C]);const B=fe=>{fe==="event"?(i("service",void 0),i("target",void 0),i("data",void 0)):(i("event",void 0),i("event_data",void 0))},F=fe=>{i("service",fe),i("data",void 0)},$=fe=>{const Se={...kM(n,"target",{}),entity_id:fe.length>0?fe:void 0};Se.entity_id||delete Se.entity_id,i("target",Object.keys(Se).length>0?Se:void 0)},P=fe=>{const Se={...kM(n,"target",{}),device_id:fe.length>0?fe:void 0};Se.device_id||delete Se.device_id,i("target",Object.keys(Se).length>0?Se:void 0)},H=fe=>{const Se={...kM(n,"target",{}),area_id:fe.length>0?fe:void 0};Se.area_id||delete Se.area_id,i("target",Object.keys(Se).length>0?Se:void 0)},Q=(fe,De)=>{const Se={..._,[fe]:De===""?void 0:De},$e=Object.fromEntries(Object.entries(Se).filter(([,Te])=>Te!==void 0&&Te!==""));i("data",Object.keys($e).length>0?$e:void 0)},re=fe=>{i("response_variable",fe.target.value===""?void 0:fe.target.value)},ee=kM(n,"target",{}),ae=fe=>fe?Array.isArray(fe)?fe:[fe]:[],he=ae(ee.entity_id),ve=ae(ee.device_id),de=ae(ee.area_id),ge=ve.length>0,Y=de.length>0;return O.jsxs(O.Fragment,{children:[O.jsx(fs,{label:c("nodes:actions.actionTypeLabel"),required:!0,children:O.jsxs(Hp,{value:D,onValueChange:B,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"service",children:c("nodes:actions.actionTypes.service")}),O.jsx(io,{value:"event",children:c("nodes:actions.actionTypes.event")})]})]})}),D==="event"?O.jsx(O.Fragment,{children:O.jsxs(fs,{label:c("nodes:actions.eventNameLabel"),required:!0,children:[O.jsx(Ba,{type:"text",value:E,onChange:fe=>i("event",fe.target.value||void 0),placeholder:c("nodes:actions.eventNamePlaceholder")}),O.jsx(eN,{message:b("event")})]})}):O.jsxs(O.Fragment,{children:[O.jsxs(fs,{label:c("nodes:actions.actionLabel"),required:!0,children:[O.jsx(KKt,{options:d().map(({domain:fe,service:De})=>({value:`${fe}.${De}`,label:`${fe}.${De}`})),value:w,onChange:F,placeholder:c("nodes:actions.selectAction")}),O.jsx(eN,{message:b("service")})]}),((S==null?void 0:S.target)||he.length>0)&&O.jsx(fs,{label:c("nodes:actions.targetEntities"),children:O.jsx(R5e,{value:he,onChange:$,entities:Gtr(w,a),placeholder:c("nodes:actions.selectTargetEntities")})}),(ge||(S==null?void 0:S.target))&&O.jsx(fs,{label:c("nodes:actions.targetDevices"),description:c("nodes:actions.targetDevicesDescription"),children:O.jsx(BDe,{values:ve,onChange:P,placeholder:c("nodes:actions.addDeviceId")})}),(Y||(S==null?void 0:S.target))&&O.jsx(fs,{label:c("nodes:actions.targetAreas"),description:c("nodes:actions.targetAreasDescription"),children:O.jsx(BDe,{values:de,onChange:H,placeholder:c("nodes:actions.addAreaId")})}),O.jsx(Htr,{serviceFields:k,currentData:_,onChange:Q}),(S==null?void 0:S.response)&&O.jsx(Utr,{response:S.response,responseVariable:C,showResponseVariable:R,setShowResponseVariable:M,onChange:i,handleResponseVariableChange:re})]})]})}function YKt({value:n,onChange:i}){const{t:a}=zs(["common","nodes"]),c=typeof n=="string",d=!c&&typeof n=="object"&&n!==null?n:{},[g,b]=z.useState(c),w=S=>{if(b(S),S){const k=d.hours??0,_=d.minutes??0,C=d.seconds??0,R=d.milliseconds??0,M=[k,_,C].map(B=>B.toString().padStart(2,"0")).join(":"),D=R?`${M}.${R}`:M;i(D)}else if(c){const k=/^([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(?:\.(\d{1,3}))?$/.exec(n);if(k){const[,_,C,R,M]=k;i({hours:Number(_),minutes:Number(C),seconds:Number(R),...M?{milliseconds:Number(M)}:{}})}else i({})}},E=(S,k)=>{const _=k===""?void 0:Number(k),C={...d,[S]:Number.isNaN(_)?void 0:_};Object.keys(C).forEach(R=>{const M=C[R];M==null&&delete C[R]}),i(C)};return O.jsxs("div",{className:"flex flex-col gap-2",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("span",{className:"text-muted-foreground text-xs",children:a("nodes:durationField.string")}),O.jsx(_A,{checked:g,onCheckedChange:w}),O.jsx("span",{className:"text-muted-foreground text-xs",children:a("nodes:durationField.object")})]}),g?O.jsx(Ba,{type:"text",value:c?n:"",onChange:S=>i(S.target.value),placeholder:a("nodes:durationField.placeholder")}):O.jsxs("div",{className:"flex gap-2",children:[O.jsxs("div",{className:"flex-1",children:[O.jsx(ll,{className:"text-muted-foreground text-xs",children:a("nodes:durationField.hours")}),O.jsx(Ba,{type:"number",min:0,value:d.hours??"",onChange:S=>E("hours",S.target.value),placeholder:"0",className:"mt-1"})]}),O.jsxs("div",{className:"flex-1",children:[O.jsx(ll,{className:"text-muted-foreground text-xs",children:a("nodes:durationField.minutes")}),O.jsx(Ba,{type:"number",min:0,value:d.minutes??"",onChange:S=>E("minutes",S.target.value),placeholder:"0",className:"mt-1"})]}),O.jsxs("div",{className:"flex-1",children:[O.jsx(ll,{className:"text-muted-foreground text-xs",children:a("nodes:durationField.seconds")}),O.jsx(Ba,{type:"number",min:0,value:d.seconds??"",onChange:S=>E("seconds",S.target.value),placeholder:"0",className:"mt-1"})]}),O.jsxs("div",{className:"flex-1",children:[O.jsx(ll,{className:"text-muted-foreground text-xs",children:a("nodes:durationField.milliseconds")}),O.jsx(Ba,{type:"number",min:0,value:d.milliseconds??"",onChange:S=>E("milliseconds",S.target.value),placeholder:"0",className:"mt-1"})]})]})]})}function JKt({label:n,description:i,value:a,onChange:c}){const{t:d}=zs(["common","nodes"]);return O.jsx(fs,{label:n??d("nodes:durationField.label"),description:i||d("nodes:durationField.description"),children:O.jsx(YKt,{value:a,onChange:c})})}var LOe="rovingFocusGroup.onEntryFocus",Vtr={bubbles:!1,cancelable:!0},Lz="RovingFocusGroup",[UDe,XKt,Wtr]=Iae(Lz),[Ktr,Hae]=Nw(Lz,[Wtr]),[Ytr,Jtr]=Ktr(Lz),ZKt=z.forwardRef((n,i)=>O.jsx(UDe.Provider,{scope:n.__scopeRovingFocusGroup,children:O.jsx(UDe.Slot,{scope:n.__scopeRovingFocusGroup,children:O.jsx(Xtr,{...n,ref:i})})}));ZKt.displayName=Lz;var Xtr=z.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:a,orientation:c,loop:d=!1,dir:g,currentTabStopId:b,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:E,onEntryFocus:S,preventScrollOnEntryFocus:k=!1,..._}=n,C=z.useRef(null),R=hs(i,C),M=Iz(g),[D,B]=z2({prop:b,defaultProp:w??null,onChange:E,caller:Lz}),[F,$]=z.useState(!1),P=G2(S),H=XKt(a),Q=z.useRef(!1),[re,ee]=z.useState(0);return z.useEffect(()=>{const ae=C.current;if(ae)return ae.addEventListener(LOe,P),()=>ae.removeEventListener(LOe,P)},[P]),O.jsx(Ytr,{scope:a,orientation:c,dir:M,loop:d,currentTabStopId:D,onItemFocus:z.useCallback(ae=>B(ae),[B]),onItemShiftTab:z.useCallback(()=>$(!0),[]),onFocusableItemAdd:z.useCallback(()=>ee(ae=>ae+1),[]),onFocusableItemRemove:z.useCallback(()=>ee(ae=>ae-1),[]),children:O.jsx(eo.div,{tabIndex:F||re===0?-1:0,"data-orientation":c,..._,ref:R,style:{outline:"none",...n.style},onMouseDown:Or(n.onMouseDown,()=>{Q.current=!0}),onFocus:Or(n.onFocus,ae=>{const he=!Q.current;if(ae.target===ae.currentTarget&&he&&!F){const ve=new CustomEvent(LOe,Vtr);if(ae.currentTarget.dispatchEvent(ve),!ve.defaultPrevented){const de=H().filter(Se=>Se.focusable),ge=de.find(Se=>Se.active),Y=de.find(Se=>Se.id===D),De=[ge,Y,...de].filter(Boolean).map(Se=>Se.ref.current);tYt(De,k)}}Q.current=!1}),onBlur:Or(n.onBlur,()=>$(!1))})})}),QKt="RovingFocusGroupItem",eYt=z.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:a,focusable:c=!0,active:d=!1,tabStopId:g,children:b,...w}=n,E=Fh(),S=g||E,k=Jtr(QKt,a),_=k.currentTabStopId===S,C=XKt(a),{onFocusableItemAdd:R,onFocusableItemRemove:M,currentTabStopId:D}=k;return z.useEffect(()=>{if(c)return R(),()=>M()},[c,R,M]),O.jsx(UDe.ItemSlot,{scope:a,id:S,focusable:c,active:d,children:O.jsx(eo.span,{tabIndex:_?0:-1,"data-orientation":k.orientation,...w,ref:i,onMouseDown:Or(n.onMouseDown,B=>{c?k.onItemFocus(S):B.preventDefault()}),onFocus:Or(n.onFocus,()=>k.onItemFocus(S)),onKeyDown:Or(n.onKeyDown,B=>{if(B.key==="Tab"&&B.shiftKey){k.onItemShiftTab();return}if(B.target!==B.currentTarget)return;const F=enr(B,k.orientation,k.dir);if(F!==void 0){if(B.metaKey||B.ctrlKey||B.altKey||B.shiftKey)return;B.preventDefault();let P=C().filter(H=>H.focusable).map(H=>H.ref.current);if(F==="last")P.reverse();else if(F==="prev"||F==="next"){F==="prev"&&P.reverse();const H=P.indexOf(B.currentTarget);P=k.loop?tnr(P,H+1):P.slice(H+1)}setTimeout(()=>tYt(P))}}),children:typeof b=="function"?b({isCurrentTabStop:_,hasTabStop:D!=null}):b})})});eYt.displayName=QKt;var Ztr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qtr(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function enr(n,i,a){const c=Qtr(n.key,a);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(c))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(c)))return Ztr[c]}function tYt(n,i=!1){const a=document.activeElement;for(const c of n)if(c===a||(c.focus({preventScroll:i}),document.activeElement!==a))return}function tnr(n,i){return n.map((a,c)=>n[(i+c)%n.length])}var nYt=ZKt,rYt=eYt;function nnr(n){const i=rnr(n),a=z.forwardRef((c,d)=>{const{children:g,...b}=c,w=z.Children.toArray(g),E=w.find(onr);if(E){const S=E.props.children,k=w.map(_=>_===E?z.Children.count(S)>1?z.Children.only(null):z.isValidElement(S)?S.props.children:null:_);return O.jsx(i,{...b,ref:d,children:z.isValidElement(S)?z.cloneElement(S,void 0,k):null})}return O.jsx(i,{...b,ref:d,children:g})});return a.displayName=`${n}.Slot`,a}function rnr(n){const i=z.forwardRef((a,c)=>{const{children:d,...g}=a;if(z.isValidElement(d)){const b=anr(d),w=snr(g,d.props);return d.type!==z.Fragment&&(w.ref=c?Gg(c,b):b),z.cloneElement(d,w)}return z.Children.count(d)>1?z.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var inr=Symbol("radix.slottable");function onr(n){return z.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===inr}function snr(n,i){const a={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?a[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(a[c]=d):c==="style"?a[c]={...d,...g}:c==="className"&&(a[c]=[d,g].filter(Boolean).join(" "))}return{...n,...a}}function anr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?n.props.ref:n.props.ref||n.ref)}var HDe=["Enter"," "],unr=["ArrowDown","PageUp","Home"],iYt=["ArrowUp","PageDown","End"],cnr=[...unr,...iYt],lnr={ltr:[...HDe,"ArrowRight"],rtl:[...HDe,"ArrowLeft"]},dnr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mz="Menu",[sz,fnr,hnr]=Iae(Mz),[OR,oYt]=Nw(Mz,[hnr,G5,Hae]),zae=G5(),sYt=Hae(),[pnr,DR]=OR(Mz),[gnr,Pz]=OR(Mz),aYt=n=>{const{__scopeMenu:i,open:a=!1,children:c,dir:d,onOpenChange:g,modal:b=!0}=n,w=zae(i),[E,S]=z.useState(null),k=z.useRef(!1),_=G2(g),C=Iz(d);return z.useEffect(()=>{const R=()=>{k.current=!0,document.addEventListener("pointerdown",M,{capture:!0,once:!0}),document.addEventListener("pointermove",M,{capture:!0,once:!0})},M=()=>k.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",M,{capture:!0}),document.removeEventListener("pointermove",M,{capture:!0})}},[]),O.jsx(_5e,{...w,children:O.jsx(pnr,{scope:i,open:a,onOpenChange:_,content:E,onContentChange:S,children:O.jsx(gnr,{scope:i,onClose:z.useCallback(()=>_(!1),[_]),isUsingKeyboardRef:k,dir:C,modal:b,children:c})})})};aYt.displayName=Mz;var bnr="MenuAnchor",D5e=z.forwardRef((n,i)=>{const{__scopeMenu:a,...c}=n,d=zae(a);return O.jsx(Mae,{...d,...c,ref:i})});D5e.displayName=bnr;var L5e="MenuPortal",[mnr,uYt]=OR(L5e,{forceMount:void 0}),cYt=n=>{const{__scopeMenu:i,forceMount:a,children:c,container:d}=n,g=DR(L5e,i);return O.jsx(mnr,{scope:i,forceMount:a,children:O.jsx(Cw,{present:a||g.open,children:O.jsx(Nz,{asChild:!0,container:d,children:c})})})};cYt.displayName=L5e;var Ew="MenuContent",[wnr,M5e]=OR(Ew),lYt=z.forwardRef((n,i)=>{const a=uYt(Ew,n.__scopeMenu),{forceMount:c=a.forceMount,...d}=n,g=DR(Ew,n.__scopeMenu),b=Pz(Ew,n.__scopeMenu);return O.jsx(sz.Provider,{scope:n.__scopeMenu,children:O.jsx(Cw,{present:c||g.open,children:O.jsx(sz.Slot,{scope:n.__scopeMenu,children:b.modal?O.jsx(ynr,{...d,ref:i}):O.jsx(vnr,{...d,ref:i})})})})}),ynr=z.forwardRef((n,i)=>{const a=DR(Ew,n.__scopeMenu),c=z.useRef(null),d=hs(i,c);return z.useEffect(()=>{const g=c.current;if(g)return xae(g)},[]),O.jsx(P5e,{...n,ref:d,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:Or(n.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),vnr=z.forwardRef((n,i)=>{const a=DR(Ew,n.__scopeMenu);return O.jsx(P5e,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),Enr=nnr("MenuContent.ScrollLock"),P5e=z.forwardRef((n,i)=>{const{__scopeMenu:a,loop:c=!1,trapFocus:d,onOpenAutoFocus:g,onCloseAutoFocus:b,disableOutsidePointerEvents:w,onEntryFocus:E,onEscapeKeyDown:S,onPointerDownOutside:k,onFocusOutside:_,onInteractOutside:C,onDismiss:R,disableOutsideScroll:M,...D}=n,B=DR(Ew,a),F=Pz(Ew,a),$=zae(a),P=sYt(a),H=fnr(a),[Q,re]=z.useState(null),ee=z.useRef(null),ae=hs(i,ee,B.onContentChange),he=z.useRef(0),ve=z.useRef(""),de=z.useRef(0),ge=z.useRef(null),Y=z.useRef("right"),fe=z.useRef(0),De=M?Cz:z.Fragment,Se=M?{as:Enr,allowPinchZoom:!0}:void 0,$e=ke=>{var kt,It;const Je=ve.current+ke,bt=H().filter(Xt=>!Xt.disabled),qe=document.activeElement,_t=(kt=bt.find(Xt=>Xt.ref.current===qe))==null?void 0:kt.textValue,At=bt.map(Xt=>Xt.textValue),ft=Dnr(At,Je,_t),Kt=(It=bt.find(Xt=>Xt.textValue===ft))==null?void 0:It.ref.current;(function Xt(Bn){ve.current=Bn,window.clearTimeout(he.current),Bn!==""&&(he.current=window.setTimeout(()=>Xt(""),1e3))})(Je),Kt&&setTimeout(()=>Kt.focus())};z.useEffect(()=>()=>window.clearTimeout(he.current),[]),_ae();const Te=z.useCallback(ke=>{var bt,qe;return Y.current===((bt=ge.current)==null?void 0:bt.side)&&Mnr(ke,(qe=ge.current)==null?void 0:qe.area)},[]);return O.jsx(wnr,{scope:a,searchRef:ve,onItemEnter:z.useCallback(ke=>{Te(ke)&&ke.preventDefault()},[Te]),onItemLeave:z.useCallback(ke=>{var Je;Te(ke)||((Je=ee.current)==null||Je.focus(),re(null))},[Te]),onTriggerLeave:z.useCallback(ke=>{Te(ke)&&ke.preventDefault()},[Te]),pointerGraceTimerRef:de,onPointerGraceIntentChange:z.useCallback(ke=>{ge.current=ke},[]),children:O.jsx(De,{...Se,children:O.jsx(xz,{asChild:!0,trapped:d,onMountAutoFocus:Or(g,ke=>{var Je;ke.preventDefault(),(Je=ee.current)==null||Je.focus({preventScroll:!0})}),onUnmountAutoFocus:b,children:O.jsx(kz,{asChild:!0,disableOutsidePointerEvents:w,onEscapeKeyDown:S,onPointerDownOutside:k,onFocusOutside:_,onInteractOutside:C,onDismiss:R,children:O.jsx(nYt,{asChild:!0,...P,dir:F.dir,orientation:"vertical",loop:c,currentTabStopId:Q,onCurrentTabStopIdChange:re,onEntryFocus:Or(E,ke=>{F.isUsingKeyboardRef.current||ke.preventDefault()}),preventScrollOnEntryFocus:!0,children:O.jsx(k5e,{role:"menu","aria-orientation":"vertical","data-state":kYt(B.open),"data-radix-menu-content":"",dir:F.dir,...$,...D,ref:ae,style:{outline:"none",...D.style},onKeyDown:Or(D.onKeyDown,ke=>{const bt=ke.target.closest("[data-radix-menu-content]")===ke.currentTarget,qe=ke.ctrlKey||ke.altKey||ke.metaKey,_t=ke.key.length===1;bt&&(ke.key==="Tab"&&ke.preventDefault(),!qe&&_t&&$e(ke.key));const At=ee.current;if(ke.target!==At||!cnr.includes(ke.key))return;ke.preventDefault();const Kt=H().filter(kt=>!kt.disabled).map(kt=>kt.ref.current);iYt.includes(ke.key)&&Kt.reverse(),Rnr(Kt)}),onBlur:Or(n.onBlur,ke=>{ke.currentTarget.contains(ke.target)||(window.clearTimeout(he.current),ve.current="")}),onPointerMove:Or(n.onPointerMove,az(ke=>{const Je=ke.target,bt=fe.current!==ke.clientX;if(ke.currentTarget.contains(Je)&&bt){const qe=ke.clientX>fe.current?"right":"left";Y.current=qe,fe.current=ke.clientX}}))})})})})})})});lYt.displayName=Ew;var Snr="MenuGroup",j5e=z.forwardRef((n,i)=>{const{__scopeMenu:a,...c}=n;return O.jsx(eo.div,{role:"group",...c,ref:i})});j5e.displayName=Snr;var Tnr="MenuLabel",dYt=z.forwardRef((n,i)=>{const{__scopeMenu:a,...c}=n;return O.jsx(eo.div,{...c,ref:i})});dYt.displayName=Tnr;var gse="MenuItem",$Ft="menu.itemSelect",Gae=z.forwardRef((n,i)=>{const{disabled:a=!1,onSelect:c,...d}=n,g=z.useRef(null),b=Pz(gse,n.__scopeMenu),w=M5e(gse,n.__scopeMenu),E=hs(i,g),S=z.useRef(!1),k=()=>{const _=g.current;if(!a&&_){const C=new CustomEvent($Ft,{bubbles:!0,cancelable:!0});_.addEventListener($Ft,R=>c==null?void 0:c(R),{once:!0}),pVt(_,C),C.defaultPrevented?S.current=!1:b.onClose()}};return O.jsx(fYt,{...d,ref:E,disabled:a,onClick:Or(n.onClick,k),onPointerDown:_=>{var C;(C=n.onPointerDown)==null||C.call(n,_),S.current=!0},onPointerUp:Or(n.onPointerUp,_=>{var C;S.current||(C=_.currentTarget)==null||C.click()}),onKeyDown:Or(n.onKeyDown,_=>{const C=w.searchRef.current!=="";a||C&&_.key===" "||HDe.includes(_.key)&&(_.currentTarget.click(),_.preventDefault())})})});Gae.displayName=gse;var fYt=z.forwardRef((n,i)=>{const{__scopeMenu:a,disabled:c=!1,textValue:d,...g}=n,b=M5e(gse,a),w=sYt(a),E=z.useRef(null),S=hs(i,E),[k,_]=z.useState(!1),[C,R]=z.useState("");return z.useEffect(()=>{const M=E.current;M&&R((M.textContent??"").trim())},[g.children]),O.jsx(sz.ItemSlot,{scope:a,disabled:c,textValue:d??C,children:O.jsx(rYt,{asChild:!0,...w,focusable:!c,children:O.jsx(eo.div,{role:"menuitem","data-highlighted":k?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...g,ref:S,onPointerMove:Or(n.onPointerMove,az(M=>{c?b.onItemLeave(M):(b.onItemEnter(M),M.defaultPrevented||M.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Or(n.onPointerLeave,az(M=>b.onItemLeave(M))),onFocus:Or(n.onFocus,()=>_(!0)),onBlur:Or(n.onBlur,()=>_(!1))})})})}),Anr="MenuCheckboxItem",hYt=z.forwardRef((n,i)=>{const{checked:a=!1,onCheckedChange:c,...d}=n;return O.jsx(wYt,{scope:n.__scopeMenu,checked:a,children:O.jsx(Gae,{role:"menuitemcheckbox","aria-checked":bse(a)?"mixed":a,...d,ref:i,"data-state":$5e(a),onSelect:Or(d.onSelect,()=>c==null?void 0:c(bse(a)?!0:!a),{checkForDefaultPrevented:!1})})})});hYt.displayName=Anr;var pYt="MenuRadioGroup",[_nr,knr]=OR(pYt,{value:void 0,onValueChange:()=>{}}),gYt=z.forwardRef((n,i)=>{const{value:a,onValueChange:c,...d}=n,g=G2(c);return O.jsx(_nr,{scope:n.__scopeMenu,value:a,onValueChange:g,children:O.jsx(j5e,{...d,ref:i})})});gYt.displayName=pYt;var bYt="MenuRadioItem",mYt=z.forwardRef((n,i)=>{const{value:a,...c}=n,d=knr(bYt,n.__scopeMenu),g=a===d.value;return O.jsx(wYt,{scope:n.__scopeMenu,checked:g,children:O.jsx(Gae,{role:"menuitemradio","aria-checked":g,...c,ref:i,"data-state":$5e(g),onSelect:Or(c.onSelect,()=>{var b;return(b=d.onValueChange)==null?void 0:b.call(d,a)},{checkForDefaultPrevented:!1})})})});mYt.displayName=bYt;var F5e="MenuItemIndicator",[wYt,xnr]=OR(F5e,{checked:!1}),yYt=z.forwardRef((n,i)=>{const{__scopeMenu:a,forceMount:c,...d}=n,g=xnr(F5e,a);return O.jsx(Cw,{present:c||bse(g.checked)||g.checked===!0,children:O.jsx(eo.span,{...d,ref:i,"data-state":$5e(g.checked)})})});yYt.displayName=F5e;var Nnr="MenuSeparator",vYt=z.forwardRef((n,i)=>{const{__scopeMenu:a,...c}=n;return O.jsx(eo.div,{role:"separator","aria-orientation":"horizontal",...c,ref:i})});vYt.displayName=Nnr;var Cnr="MenuArrow",EYt=z.forwardRef((n,i)=>{const{__scopeMenu:a,...c}=n,d=zae(a);return O.jsx(x5e,{...d,...c,ref:i})});EYt.displayName=Cnr;var Inr="MenuSub",[ngr,SYt]=OR(Inr),rH="MenuSubTrigger",TYt=z.forwardRef((n,i)=>{const a=DR(rH,n.__scopeMenu),c=Pz(rH,n.__scopeMenu),d=SYt(rH,n.__scopeMenu),g=M5e(rH,n.__scopeMenu),b=z.useRef(null),{pointerGraceTimerRef:w,onPointerGraceIntentChange:E}=g,S={__scopeMenu:n.__scopeMenu},k=z.useCallback(()=>{b.current&&window.clearTimeout(b.current),b.current=null},[]);return z.useEffect(()=>k,[k]),z.useEffect(()=>{const _=w.current;return()=>{window.clearTimeout(_),E(null)}},[w,E]),O.jsx(D5e,{asChild:!0,...S,children:O.jsx(fYt,{id:d.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":d.contentId,"data-state":kYt(a.open),...n,ref:Gg(i,d.onTriggerChange),onClick:_=>{var C;(C=n.onClick)==null||C.call(n,_),!(n.disabled||_.defaultPrevented)&&(_.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:Or(n.onPointerMove,az(_=>{g.onItemEnter(_),!_.defaultPrevented&&!n.disabled&&!a.open&&!b.current&&(g.onPointerGraceIntentChange(null),b.current=window.setTimeout(()=>{a.onOpenChange(!0),k()},100))})),onPointerLeave:Or(n.onPointerLeave,az(_=>{var R,M;k();const C=(R=a.content)==null?void 0:R.getBoundingClientRect();if(C){const D=(M=a.content)==null?void 0:M.dataset.side,B=D==="right",F=B?-5:5,$=C[B?"left":"right"],P=C[B?"right":"left"];g.onPointerGraceIntentChange({area:[{x:_.clientX+F,y:_.clientY},{x:$,y:C.top},{x:P,y:C.top},{x:P,y:C.bottom},{x:$,y:C.bottom}],side:D}),window.clearTimeout(w.current),w.current=window.setTimeout(()=>g.onPointerGraceIntentChange(null),300)}else{if(g.onTriggerLeave(_),_.defaultPrevented)return;g.onPointerGraceIntentChange(null)}})),onKeyDown:Or(n.onKeyDown,_=>{var R;const C=g.searchRef.current!=="";n.disabled||C&&_.key===" "||lnr[c.dir].includes(_.key)&&(a.onOpenChange(!0),(R=a.content)==null||R.focus(),_.preventDefault())})})})});TYt.displayName=rH;var AYt="MenuSubContent",_Yt=z.forwardRef((n,i)=>{const a=uYt(Ew,n.__scopeMenu),{forceMount:c=a.forceMount,...d}=n,g=DR(Ew,n.__scopeMenu),b=Pz(Ew,n.__scopeMenu),w=SYt(AYt,n.__scopeMenu),E=z.useRef(null),S=hs(i,E);return O.jsx(sz.Provider,{scope:n.__scopeMenu,children:O.jsx(Cw,{present:c||g.open,children:O.jsx(sz.Slot,{scope:n.__scopeMenu,children:O.jsx(P5e,{id:w.contentId,"aria-labelledby":w.triggerId,...d,ref:S,align:"start",side:b.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:k=>{var _;b.isUsingKeyboardRef.current&&((_=E.current)==null||_.focus()),k.preventDefault()},onCloseAutoFocus:k=>k.preventDefault(),onFocusOutside:Or(n.onFocusOutside,k=>{k.target!==w.trigger&&g.onOpenChange(!1)}),onEscapeKeyDown:Or(n.onEscapeKeyDown,k=>{b.onClose(),k.preventDefault()}),onKeyDown:Or(n.onKeyDown,k=>{var R;const _=k.currentTarget.contains(k.target),C=dnr[b.dir].includes(k.key);_&&C&&(g.onOpenChange(!1),(R=w.trigger)==null||R.focus(),k.preventDefault())})})})})})});_Yt.displayName=AYt;function kYt(n){return n?"open":"closed"}function bse(n){return n==="indeterminate"}function $5e(n){return bse(n)?"indeterminate":n?"checked":"unchecked"}function Rnr(n){const i=document.activeElement;for(const a of n)if(a===i||(a.focus(),document.activeElement!==i))return}function Onr(n,i){return n.map((a,c)=>n[(i+c)%n.length])}function Dnr(n,i,a){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=a?n.indexOf(a):-1;let b=Onr(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==a));const E=b.find(S=>S.toLowerCase().startsWith(d.toLowerCase()));return E!==a?E:void 0}function Lnr(n,i){const{x:a,y:c}=n;let d=!1;for(let g=0,b=i.length-1;gc!=C>c&&a<(_-S)*(c-k)/(C-k)+S&&(d=!d)}return d}function Mnr(n,i){if(!i)return!1;const a={x:n.clientX,y:n.clientY};return Lnr(a,i)}function az(n){return i=>i.pointerType==="mouse"?n(i):void 0}var Pnr=aYt,jnr=D5e,Fnr=cYt,$nr=lYt,Bnr=j5e,Unr=dYt,Hnr=Gae,znr=hYt,Gnr=gYt,qnr=mYt,Vnr=yYt,Wnr=vYt,Knr=EYt,Ynr=TYt,Jnr=_Yt,qae="DropdownMenu",[Xnr]=Nw(qae,[oYt]),Wg=oYt(),[Znr,xYt]=Xnr(qae),NYt=n=>{const{__scopeDropdownMenu:i,children:a,dir:c,open:d,defaultOpen:g,onOpenChange:b,modal:w=!0}=n,E=Wg(i),S=z.useRef(null),[k,_]=z2({prop:d,defaultProp:g??!1,onChange:b,caller:qae});return O.jsx(Znr,{scope:i,triggerId:Fh(),triggerRef:S,contentId:Fh(),open:k,onOpenChange:_,onOpenToggle:z.useCallback(()=>_(C=>!C),[_]),modal:w,children:O.jsx(Pnr,{...E,open:k,onOpenChange:_,dir:c,modal:w,children:a})})};NYt.displayName=qae;var CYt="DropdownMenuTrigger",IYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,disabled:c=!1,...d}=n,g=xYt(CYt,a),b=Wg(a);return O.jsx(jnr,{asChild:!0,...b,children:O.jsx(eo.button,{type:"button",id:g.triggerId,"aria-haspopup":"menu","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":g.open?"open":"closed","data-disabled":c?"":void 0,disabled:c,...d,ref:Gg(i,g.triggerRef),onPointerDown:Or(n.onPointerDown,w=>{!c&&w.button===0&&w.ctrlKey===!1&&(g.onOpenToggle(),g.open||w.preventDefault())}),onKeyDown:Or(n.onKeyDown,w=>{c||(["Enter"," "].includes(w.key)&&g.onOpenToggle(),w.key==="ArrowDown"&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(w.key)&&w.preventDefault())})})})});IYt.displayName=CYt;var Qnr="DropdownMenuPortal",RYt=n=>{const{__scopeDropdownMenu:i,...a}=n,c=Wg(i);return O.jsx(Fnr,{...c,...a})};RYt.displayName=Qnr;var OYt="DropdownMenuContent",DYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=xYt(OYt,a),g=Wg(a),b=z.useRef(!1);return O.jsx($nr,{id:d.contentId,"aria-labelledby":d.triggerId,...g,...c,ref:i,onCloseAutoFocus:Or(n.onCloseAutoFocus,w=>{var E;b.current||(E=d.triggerRef.current)==null||E.focus(),b.current=!1,w.preventDefault()}),onInteractOutside:Or(n.onInteractOutside,w=>{const E=w.detail.originalEvent,S=E.button===0&&E.ctrlKey===!0,k=E.button===2||S;(!d.modal||k)&&(b.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DYt.displayName=OYt;var err="DropdownMenuGroup",trr=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Bnr,{...d,...c,ref:i})});trr.displayName=err;var nrr="DropdownMenuLabel",LYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Unr,{...d,...c,ref:i})});LYt.displayName=nrr;var rrr="DropdownMenuItem",MYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Hnr,{...d,...c,ref:i})});MYt.displayName=rrr;var irr="DropdownMenuCheckboxItem",PYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(znr,{...d,...c,ref:i})});PYt.displayName=irr;var orr="DropdownMenuRadioGroup",srr=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Gnr,{...d,...c,ref:i})});srr.displayName=orr;var arr="DropdownMenuRadioItem",jYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(qnr,{...d,...c,ref:i})});jYt.displayName=arr;var urr="DropdownMenuItemIndicator",FYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Vnr,{...d,...c,ref:i})});FYt.displayName=urr;var crr="DropdownMenuSeparator",$Yt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Wnr,{...d,...c,ref:i})});$Yt.displayName=crr;var lrr="DropdownMenuArrow",drr=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Knr,{...d,...c,ref:i})});drr.displayName=lrr;var frr="DropdownMenuSubTrigger",BYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Ynr,{...d,...c,ref:i})});BYt.displayName=frr;var hrr="DropdownMenuSubContent",UYt=z.forwardRef((n,i)=>{const{__scopeDropdownMenu:a,...c}=n,d=Wg(a);return O.jsx(Jnr,{...d,...c,ref:i,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});UYt.displayName=hrr;var prr=NYt,grr=IYt,brr=RYt,HYt=DYt,zYt=LYt,GYt=MYt,qYt=PYt,VYt=jYt,WYt=FYt,KYt=$Yt,YYt=BYt,JYt=UYt;const XYt=prr,ZYt=grr,mrr=z.forwardRef(({className:n,inset:i,children:a,...c},d)=>O.jsxs(YYt,{ref:d,className:kr("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",i&&"pl-8",n),...c,children:[a,O.jsx(W9n,{className:"ml-auto"})]}));mrr.displayName=YYt.displayName;const wrr=z.forwardRef(({className:n,...i},a)=>O.jsx(JYt,{ref:a,className:kr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",n),...i}));wrr.displayName=JYt.displayName;const B5e=z.forwardRef(({className:n,sideOffset:i=4,container:a,...c},d)=>O.jsx(brr,{container:a,children:O.jsx(HYt,{ref:d,sideOffset:i,className:kr("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] data-[state=closed]:animate-out data-[state=open]:animate-in",n),...c})}));B5e.displayName=HYt.displayName;const zDe=z.forwardRef(({className:n,inset:i,...a},c)=>O.jsx(GYt,{ref:c,className:kr("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",i&&"pl-8",n),...a}));zDe.displayName=GYt.displayName;const QYt=z.forwardRef(({className:n,children:i,checked:a,...c},d)=>O.jsxs(qYt,{ref:d,className:kr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:a,...c,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(WYt,{children:O.jsx(L5,{className:"h-4 w-4"})})}),i]}));QYt.displayName=qYt.displayName;const yrr=z.forwardRef(({className:n,children:i,...a},c)=>O.jsxs(VYt,{ref:c,className:kr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...a,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(WYt,{children:O.jsx(r8n,{className:"h-2 w-2 fill-current"})})}),i]}));yrr.displayName=VYt.displayName;const vrr=z.forwardRef(({className:n,inset:i,...a},c)=>O.jsx(zYt,{ref:c,className:kr("px-2 py-1.5 font-semibold text-sm",i&&"pl-8",n),...a}));vrr.displayName=zYt.displayName;const Err=z.forwardRef(({className:n,...i},a)=>O.jsx(KYt,{ref:a,className:kr("-mx-1 my-1 h-px bg-muted",n),...i}));Err.displayName=KYt.displayName;function jz({field:n,value:i,onChange:a,entities:c,domain:d,translations:g={},error:b}){const{t:w}=zs(["common"]),E=n.name,S=n.required??!1;let k=E,_="",C="";if("label"in n)k=n.label,_=n.description||"",C=n.placeholder||"";else if(d){const P=`component.${d}.device_automation.extra_fields.${E}`,H=`component.${d}.device_automation.extra_fields_descriptions.${E}`;k=g[P]||E.split("_").map(Q=>Q.charAt(0).toUpperCase()+Q.slice(1)).join(" "),_=g[H]||"",console.log(`Field "${E}" in domain "${d}":`),console.log(` Label key: ${P} = ${g[P]||"(not found)"}`),console.log(` Desc key: ${H} = ${g[H]||"(not found)"}`),console.log(` Final label: ${k}`),console.log(` Final description: ${_}`)}else k=E.split("_").map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join(" "),console.log(`Field "${E}" with no domain - using formatted name: ${k}`);let R=null,M={};if("type"in n&&n.type)R=n.type;else if("selector"in n&&n.selector){const P=Object.keys(n.selector);P.length>0&&(R=P[0],M=n.selector[R]||{})}const D=typeof i=="string"?i:String(i??""),B=typeof i=="number"?i:Number(i)||void 0,F=typeof i=="boolean"?i:!!i,$=()=>{switch(R){case"text":{if("multiple"in n&&n.multiple){const H=Array.isArray(i)?i:typeof i=="string"&&i?[i]:[];return O.jsx(BDe,{values:H,onChange:a,placeholder:C||"Add value..."})}return O.jsx(Ba,{type:"text",value:D,onChange:H=>a(H.target.value),placeholder:C,required:S})}case"number":return O.jsx(Ba,{type:"number",value:B??"",onChange:P=>a(P.target.value?Number(P.target.value):null),placeholder:C,required:S});case"boolean":return O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx(_A,{checked:F,onCheckedChange:a}),O.jsx("span",{className:"text-muted-foreground text-sm",children:w(F?"dynamicField.enabled":"dynamicField.disabled")})]});case"select":{let P=[];if("options"in n&&n.options){const Q=n.options;Q.length>0&&(Array.isArray(Q[0])?P=Q.map(([re,ee])=>({value:re,label:ee})):P=Q)}else M.options&&Array.isArray(M.options)&&(P=M.options);if("multiple"in n&&n.multiple||M.multiple===!0){const Q=Array.isArray(i)?i:i?[i]:[],re=()=>{var ee;return Q.length===0?C||w("dynamicField.selectItems"):Q.length===1?((ee=P.find(ae=>ae.value===Q[0]))==null?void 0:ee.label)||Q[0]:w("dynamicField.itemsSelected",{count:Q.length})};return O.jsxs(XYt,{children:[O.jsx(ZYt,{asChild:!0,children:O.jsxs(Di,{variant:"outline",className:"w-full justify-between font-normal",children:[O.jsx("span",{className:Q.length===0?"text-muted-foreground":"",children:re()}),O.jsx(Xse,{className:"ml-2 h-4 w-4 opacity-50"})]})}),O.jsx(B5e,{className:"w-[var(--radix-dropdown-menu-trigger-width)]",children:P.map(ee=>{const ae=Q.includes(ee.value);return O.jsx(QYt,{checked:ae,onCheckedChange:he=>{a(he?[...Q,ee.value]:Q.filter(ve=>ve!==ee.value))},children:ee.label},ee.value)})})]})}return O.jsxs(Hp,{value:D,onValueChange:a,children:[O.jsx(Uh,{children:O.jsx(zp,{placeholder:C||"Select..."})}),O.jsx(Hh,{children:P.map(Q=>O.jsx(io,{value:Q.value,children:Q.label},Q.value))})]})}case"entity":{if("multiple"in n&&n.multiple||M.multiple===!0){const H=Array.isArray(i)?i:typeof i=="string"&&i?i.split(",").map(Q=>Q.trim()):[];return O.jsx(R5e,{value:H,onChange:a,entities:c,placeholder:C||w("dynamicField.selectEntities")})}return O.jsx(Uae,{value:D,onChange:a,entities:c,placeholder:C||w("dynamicField.selectEntity")})}case"template":return O.jsx(jv,{value:D,onChange:P=>a(P.target.value),placeholder:C||w("placeholders.enterTemplate"),className:"font-mono text-sm",rows:4,required:S});case"duration":return O.jsx(YKt,{value:i??"",onChange:a});case"object":return O.jsx(jv,{value:typeof i=="object"?JSON.stringify(i,null,2):D,onChange:P=>{try{a(JSON.parse(P.target.value))}catch{a(P.target.value)}},placeholder:C||w("placeholders.jsonExample"),className:"font-mono text-sm",rows:4,required:S});case"time":return O.jsx(Ba,{type:"time",value:D,onChange:P=>a(P.target.value),required:S});case"date":return O.jsx(Ba,{type:"date",value:D,onChange:P=>a(P.target.value),required:S});default:return O.jsx(Ba,{type:"text",value:D,onChange:P=>a(P.target.value),placeholder:C||w("dynamicField.enterValue",{name:E}),required:S})}};return O.jsxs("div",{className:"space-y-2",children:[O.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[k,S&&O.jsx("span",{className:"ml-1 text-destructive",children:w("labels.requiredAsterisk")})]}),$(),O.jsx(eN,{message:b}),_&&O.jsx("p",{className:"text-muted-foreground text-xs",children:_})]})}const Srr={state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"The entity to check"},{name:"state",label:"State",type:"text",required:!0,placeholder:"e.g., on, off, home",description:"The state value to check for"},{name:"attribute",label:"Attribute (optional)",type:"text",required:!1,placeholder:"e.g., brightness, temperature",description:"Check a specific attribute instead of the state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the condition must be true"}],numeric_state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"The sensor entity to check"},{name:"above",label:"Above (optional)",type:"number",required:!1,placeholder:"Minimum value",description:"Condition is true when value > this"},{name:"below",label:"Below (optional)",type:"number",required:!1,placeholder:"Maximum value",description:"Condition is true when value < this"},{name:"attribute",label:"Attribute (optional)",type:"text",required:!1,placeholder:"e.g., brightness, temperature",description:"Check a specific attribute instead of the state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the condition must be true"}],template:[{name:"value_template",label:"Value Template",type:"template",required:!0,placeholder:'{{ states("sensor.temperature") | float > 20 }}',description:"Template that should evaluate to true/false"}],time:[{name:"after",label:"After (optional)",type:"time",required:!1,description:"Condition is true after this time"},{name:"before",label:"Before (optional)",type:"time",required:!1,description:"Condition is true before this time"},{name:"weekday",label:"Weekday (optional)",type:"select",required:!1,multiple:!0,description:"Days of the week when condition is true",options:[{value:"mon",label:"Monday"},{value:"tue",label:"Tuesday"},{value:"wed",label:"Wednesday"},{value:"thu",label:"Thursday"},{value:"fri",label:"Friday"},{value:"sat",label:"Saturday"},{value:"sun",label:"Sunday"}]}],sun:[{name:"after",label:"After",type:"select",required:!1,description:"Condition is true after this sun event",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}]},{name:"after_offset",label:"After Offset (optional)",type:"text",required:!1,placeholder:"e.g., -00:30:00",description:"Time offset for the after event"},{name:"before",label:"Before",type:"select",required:!1,description:"Condition is true before this sun event",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}]},{name:"before_offset",label:"Before Offset (optional)",type:"text",required:!1,placeholder:"e.g., +01:00:00",description:"Time offset for the before event"}],zone:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"Person or device tracker to monitor"},{name:"zone",label:"Zone",type:"text",required:!0,placeholder:"zone.home",description:"Zone entity to check for presence"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the entity must be in the zone"}],trigger:[{name:"id",label:"Trigger ID(s)",type:"text",required:!0,multiple:!0,placeholder:"e.g., arriving, leaving",description:"The ID(s) of the trigger(s) to match"}],device:[],and:[],or:[],not:[]};function U5e(n){return Srr[n]||[]}function eJt(n){const i=U5e(n),a={condition:n};for(const c of i)c.default!==void 0&&(a[c.name]=c.default);return H5e(n)&&(a.conditions=[]),a}function H5e(n){return n==="and"||n==="or"||n==="not"}const Trr=[{value:"state",labelKey:"nodes:conditions.types.state"},{value:"numeric_state",labelKey:"nodes:conditions.types.numeric_state"},{value:"template",labelKey:"nodes:conditions.types.template"},{value:"trigger",labelKey:"nodes:conditions.types.trigger"},{value:"zone",labelKey:"nodes:conditions.types.zone"},{value:"time",labelKey:"nodes:conditions.types.time"},{value:"sun",labelKey:"nodes:conditions.types.sun"},{value:"and",labelKey:"nodes:conditions.types.and"},{value:"or",labelKey:"nodes:conditions.types.or"},{value:"not",labelKey:"nodes:conditions.types.not"}];function Arr({cond:n,onUpdate:i,entities:a}){const c=n.condition||"state",d=U5e(c);return d.length===0?null:O.jsx("div",{className:"space-y-2",children:d.map(g=>O.jsx(jz,{field:g,value:n[g.name],onChange:b=>i({...n,[g.name]:b}),entities:a},g.name))})}function _rr({cond:n,onUpdate:i,onRemove:a,entities:c,depth:d}){const g=n.condition||"state",b=H5e(g),{t:w}=zs(["common","nodes","panels"]),E=S=>{i(eJt(S))};return O.jsxs("div",{className:kr("space-y-3 rounded-md border bg-card p-3",d>0&&"bg-muted/30"),children:[O.jsxs("div",{className:"flex items-center justify-between gap-2",children:[O.jsxs(Hp,{value:n.condition||"state",onValueChange:E,children:[O.jsx(Uh,{className:"w-full max-w-[180px]",children:O.jsx(zp,{})}),O.jsx(Hh,{children:Trr.map(S=>O.jsx(io,{value:S.value,children:w(S.labelKey)},S.value))})]}),O.jsx(Di,{size:"icon",variant:"ghost",onClick:a,className:"h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive",children:O.jsx(M5,{className:"h-4 w-4"})})]}),b?O.jsx(tJt,{conditions:n.conditions||[],onChange:S=>i({...n,conditions:S}),parentType:n.condition,depth:d+1}):O.jsx(Arr,{cond:n,onUpdate:i,entities:c})]})}const tJt=z.memo(function({conditions:i,onChange:a,depth:c=0}){const{hass:d}=Gm(),g=d?Object.values(d.states):[],{t:b}=zs(["common","nodes","panels"]),w=()=>{a([...i,{condition:"state",entity_id:"",state:""}])},E=k=>{a(i.filter((_,C)=>C!==k))},S=(k,_)=>{a(i.map((C,R)=>R===k?_:C))};return O.jsxs("div",{className:kr("space-y-2",c>0&&"border-muted border-l-2 pl-2"),children:[i.length===0?O.jsx("p",{className:"py-2 text-muted-foreground text-xs italic",children:b("panels:conditionGroupEditor.noConditions")}):i.map((k,_)=>O.jsx(_rr,{cond:k,onUpdate:C=>S(_,C),onRemove:()=>E(_),entities:g,depth:c},_)),O.jsxs(Di,{size:"sm",variant:"outline",onClick:w,className:"w-full",children:[O.jsx(Qse,{className:"mr-1 h-4 w-4"}),b("panels:conditionGroupEditor.addCondition")]})]})});function nJt({value:n,onChange:i,label:a="",required:c=!1,placeholder:d=""}){const{t:g}=zs(["common"]),{hass:b}=Gm(),[w,E]=z.useState(n);z.useEffect(()=>{E(n)},[n]);const S=(b==null?void 0:b.devices)??{},k=Object.keys(S).length>0,_=n&&k&&!S[n],C=()=>{if(!n)return;const R=S[n];return R?R.name_by_user||R.name||R.id:n};return O.jsx(fs,{label:a||g("labels.device"),required:c,children:k?O.jsxs(Hp,{value:n,onValueChange:i,children:[O.jsx(Uh,{className:_?"font-mono text-red-600":void 0,children:O.jsx(zp,{placeholder:d||g("placeholders.selectDevice"),children:C()})}),O.jsx(Hh,{children:Object.values(S).map(R=>O.jsx(io,{value:R.id,children:R.name_by_user||R.name||R.id},R.id))})]}):O.jsxs(O.Fragment,{children:[O.jsx(Ba,{type:"text",value:w,onChange:R=>{E(R.target.value),i(R.target.value)},placeholder:g("deviceSelector.enterId")}),O.jsx("p",{className:"text-muted-foreground text-xs",children:g("deviceSelector.noDevices")})]})})}function krr({node:n,onChange:i}){const a=Ug(n,"device_id"),c=Ug(n,"domain"),d=Ug(n,"type");return O.jsxs(O.Fragment,{children:[O.jsx(nJt,{value:a,onChange:g=>i("device_id",g),label:"Device",required:!0,placeholder:"Select device..."}),O.jsx(fs,{label:"Domain",required:!0,description:"Device integration domain",children:O.jsx(Ba,{type:"text",value:c,onChange:g=>i("domain",g.target.value),placeholder:"e.g., binary_sensor, sensor"})}),O.jsx(fs,{label:"Type",required:!0,description:"Device condition type",children:O.jsx(Ba,{type:"text",value:d,onChange:g=>i("type",g.target.value),placeholder:"e.g., button_short_press"})})]})}function xrr({node:n,onChange:i,entities:a}){const{t:c}=zs(["common","nodes"]),{getFieldError:d}=xw(n.id),g=Ug(n,"condition","state"),b=n.data,w=Array.isArray(b.conditions)&&b.conditions.length>0,E=H5e(g),S=_=>{const C=eJt(_);for(const[R,M]of Object.entries(C))i(R,M)},k=()=>g==="device"?O.jsx(krr,{node:n,onChange:i}):E?null:U5e(g).map(C=>O.jsx(jz,{field:C,value:b[C.name],onChange:R=>i(C.name,R),entities:a,error:d(C.name)},C.name));return O.jsxs(O.Fragment,{children:[O.jsx(fs,{label:c("nodes:conditions.conditionLabel"),required:!0,children:O.jsxs(Hp,{value:g,onValueChange:S,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"state",children:c("nodes:conditions.types.state")}),O.jsx(io,{value:"numeric_state",children:c("nodes:conditions.types.numeric_state")}),O.jsx(io,{value:"template",children:c("nodes:conditions.types.template")}),O.jsx(io,{value:"time",children:c("nodes:conditions.types.time")}),O.jsx(io,{value:"sun",children:c("nodes:conditions.types.sun")}),O.jsx(io,{value:"zone",children:c("nodes:conditions.types.zone")}),O.jsx(io,{value:"device",children:c("nodes:conditions.types.device")}),O.jsx(io,{value:"trigger",children:c("nodes:conditions.types.trigger")}),O.jsx(io,{value:"and",children:c("nodes:conditions.types.and")}),O.jsx(io,{value:"or",children:c("nodes:conditions.types.or")}),O.jsx(io,{value:"not",children:c("nodes:conditions.types.not")})]})]})}),k(),(E||w)&&O.jsx(fs,{label:c("nodes:conditions.nestedConditions"),children:O.jsx(tJt,{conditions:b.conditions||[],onChange:_=>i("conditions",_),parentType:E?g:"and"})})]})}function Nrr({node:n,onChange:i}){const{getFieldError:a}=xw(n.id);return O.jsxs(O.Fragment,{children:[O.jsx(JKt,{label:"Delay",value:n.data.delay,onChange:c=>i("delay",c)}),O.jsx(eN,{message:a("delay")})]})}function Crr({node:n,onChange:i}){const{t:a}=zs(["nodes"]),{getFieldError:c}=xw(n.id),d=kM(n,"variables",{}),g=Object.entries(d),b=()=>{const k=Object.keys(d);let _="variable",C=1;for(;k.includes(_);)_=`variable_${C}`,C++;i("variables",{...d,[_]:""})},w=(k,_)=>{if(k===_)return;const C={};for(const[R,M]of Object.entries(d))R===k?C[_]=M:C[R]=M;i("variables",C)},E=(k,_)=>{i("variables",{...d,[k]:_})},S=k=>{const _={...d};delete _[k],i("variables",_)};return O.jsxs("div",{className:"space-y-4",children:[O.jsx(eN,{message:c("variables")}),g.length===0?O.jsx("p",{className:"text-muted-foreground text-sm",children:a("nodes:setVariablesFields.empty")}):g.map(([k,_],C)=>O.jsxs("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:[O.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[O.jsx("span",{className:"font-medium text-muted-foreground text-xs",children:a("nodes:setVariablesFields.variableLabel",{index:C+1})}),O.jsx(Di,{variant:"ghost",size:"sm",onClick:()=>S(k),className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:O.jsx(M5,{className:"h-3.5 w-3.5"})})]}),O.jsxs("div",{className:"space-y-3",children:[O.jsx(fs,{label:a("nodes:setVariablesFields.name"),children:O.jsx(Ba,{value:k,onChange:R=>w(k,R.target.value),placeholder:a("nodes:setVariablesFields.namePlaceholder"),className:"font-mono text-sm"})}),O.jsx(fs,{label:a("nodes:setVariablesFields.value"),description:a("nodes:setVariablesFields.valueDescription"),children:O.jsx(jv,{value:String(_??""),onChange:R=>E(k,R.target.value),placeholder:a("nodes:setVariablesFields.valuePlaceholder"),className:"font-mono text-sm"})})]})]},`${k}-${C}`)),O.jsxs(Di,{variant:"outline",onClick:b,className:"w-full gap-2",size:"sm",children:[O.jsx(Qse,{className:"h-4 w-4"}),a("nodes:setVariablesFields.addVariable")]})]})}const rJt={state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,multiple:!0,description:"The entity to monitor for state changes"},{name:"to",label:"To State",type:"text",required:!1,placeholder:"e.g., on, off, home",description:"The target state to trigger on"},{name:"from",label:"From State",type:"text",required:!1,placeholder:"e.g., off",description:"Only trigger when transitioning from this state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"State must be stable for this duration"}],numeric_state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,multiple:!0,description:"The sensor entity to monitor"},{name:"above",label:"Above",type:"number",required:!1,placeholder:"e.g., 20",description:"Trigger when value goes above this threshold"},{name:"below",label:"Below",type:"number",required:!1,placeholder:"e.g., 30",description:"Trigger when value goes below this threshold"},{name:"value_template",label:"Value Template (optional)",type:"template",required:!1,placeholder:"e.g., {{ state.attributes.temperature }}",description:"Template to extract numeric value from entity"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"Value must be stable for this duration"}],time:[{name:"at",label:"At (time)",type:"text",required:!0,placeholder:"e.g., 07:00:00 or input_datetime.wake_up",description:"Time to trigger (HH:MM:SS or entity reference)"}],time_pattern:[{name:"hours",label:"Hours",type:"text",required:!1,placeholder:"e.g., */2 (every 2 hours)",description:"Hour pattern (cron-style)"},{name:"minutes",label:"Minutes",type:"text",required:!1,placeholder:"e.g., /5 (every 5 minutes)",description:"Minute pattern (cron-style)"},{name:"seconds",label:"Seconds",type:"text",required:!1,placeholder:"e.g., 0",description:"Second pattern (cron-style)"}],event:[{name:"event_type",label:"Event Type",type:"text",required:!0,placeholder:"e.g., zha_event, call_service",description:"The type of event to listen for"},{name:"event_data",label:"Event Data (optional)",type:"object",required:!1,description:"Filter events by data fields (JSON object)"}],mqtt:[{name:"topic",label:"Topic",type:"text",required:!0,placeholder:"e.g., home/bedroom/temperature",description:"MQTT topic to subscribe to"},{name:"payload",label:"Payload (optional)",type:"text",required:!1,placeholder:"e.g., ON",description:"Only trigger on this specific payload"}],webhook:[{name:"webhook_id",label:"Webhook ID",type:"text",required:!0,placeholder:"e.g., my_webhook",description:"Unique identifier for this webhook"}],sun:[{name:"event",label:"Event",type:"select",required:!0,description:"Trigger at sunrise or sunset",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}],default:"sunset"},{name:"offset",label:"Offset (optional)",type:"text",required:!1,placeholder:"e.g., -00:30:00",description:"Time offset before (-) or after (+) the event"}],zone:[{name:"entity_id",label:"Person/Device",type:"entity",required:!0,multiple:!0,description:"The person or device tracker to monitor"},{name:"zone",label:"Zone",type:"text",required:!0,placeholder:"e.g., zone.home",description:"The zone entity to monitor"},{name:"event",label:"Event",type:"select",required:!0,description:"Trigger on enter or leave",options:[{value:"enter",label:"Enter"},{value:"leave",label:"Leave"}],default:"enter"}],template:[{name:"value_template",label:"Value Template",type:"template",required:!0,placeholder:'e.g., {{ is_state("light.bedroom", "on") }}',description:"Template that evaluates to true/false"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"Template must be true for this duration"}],homeassistant:[{name:"event",label:"Event",type:"select",required:!0,description:"Home Assistant lifecycle event",options:[{value:"start",label:"Start"},{value:"shutdown",label:"Shutdown"}],default:"start"}],device:[]};function z5e(n){return rJt[n]||[]}function Irr(n){const i=z5e(n),a={trigger:n};for(const c of i)c.default!==void 0&&(a[c.name]=c.default);return a}function Rrr(){const{hass:n}=Gm(),i=z.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),[];try{return await n.callWS({type:"device_automation/trigger/list",device_id:c})||[]}catch(d){throw console.error("Failed to fetch device triggers:",d),d}},[n]),a=z.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),{extra_fields:[]};try{return await n.callWS({type:"device_automation/trigger/capabilities",trigger:c})||{extra_fields:[]}}catch(d){throw console.error("Failed to fetch trigger capabilities:",d),d}},[n]);return{getDeviceTriggers:i,getTriggerCapabilities:a}}const Orr=Su({resources:th(nn(),lc()).transform(n=>{const i={};for(const[a,c]of Object.entries(n))typeof c=="string"&&(i[a]=c);return i})});function Drr(){const{hass:n}=Gm(),[i,a]=z.useState({}),[c,d]=z.useState(!0),g=z.useMemo(()=>{const w=n==null?void 0:n.resources;if(!w||Object.keys(w).length===0)return{};const E=Object.values(w)[0];if(typeof E=="string")return w;if(typeof E=="object"&&E!==null){const S={};for(const k of Object.values(w))typeof k=="object"&&k!==null&&Object.assign(S,k);return S}return{}},[n==null?void 0:n.resources]);return z.useEffect(()=>{if(!n){d(!1);return}(async()=>{d(!0);try{const E=await n.callWS({type:"frontend/get_translations",language:navigator.language.split("-")[0]||"en",category:"device_automation"}),S=Orr.safeParse(E);S.success&&a(S.data.resources)}catch{}finally{d(!1)}})()},[n]),{translations:z.useMemo(()=>({...g,...i}),[g,i]),isLoading:c}}function Lrr({node:n,onChange:i,entities:a}){const{t:c}=zs(["common","nodes","errors"]),{getDeviceTriggers:d,getTriggerCapabilities:g}=Rrr(),{translations:b}=Drr(),[w,E]=z.useState([]),[S,k]=z.useState([]),[_,C]=z.useState(!1),R=Ug(n,"device_id"),M=Ug(n,"type"),D=Ug(n,"domain"),B=Ug(n,"entity_id"),F=Ug(n,"subtype"),$=M&&F?`${M}::${F}`:M??"";return z.useEffect(()=>{if(!R){E([]);return}C(!0),d(R).then(P=>{E(P)}).catch(P=>{console.error(c("errors:api.loadDeviceTriggersFailed"),P),E([])}).finally(()=>{C(!1)})},[R,d,c]),z.useEffect(()=>{if(!R||!M){k([]);return}const P=w.find(H=>H.type===M&&H.domain===D&&(H.subtype??"")===(F??""));if(!P){k([]);return}g(P).then(H=>{k(H.extra_fields||[])}).catch(H=>{console.error(c("errors:api.loadTriggerCapabilitiesFailed"),H),k([])})},[R,M,F,D,w,g,c]),O.jsxs(O.Fragment,{children:[O.jsx(nJt,{value:R,onChange:P=>i("device_id",P),label:c("labels.device"),required:!0,placeholder:c("placeholders.selectDevice")}),R&&w.length>0?O.jsx(fs,{label:c("labels.triggerType"),required:!0,children:O.jsxs(Hp,{value:$,onValueChange:P=>{const[H,Q]=P.split("::"),re=w.find(ee=>ee.type===H&&(ee.subtype??"")===(Q??""));re&&(i("type",H),i("domain",re.domain),i("subtype",Q??void 0))},children:[O.jsx(Uh,{children:O.jsx(zp,{placeholder:c("placeholders.selectTriggerType")})}),O.jsx(Hh,{children:Array.from(new Map(w.map(P=>[`${P.domain}-${P.type}-${P.subtype??""}`,P])).values()).map(P=>{const H=P.subtype?`${P.type}::${P.subtype}`:P.type,Q=P.subtype?`${P.type}: ${P.subtype} (${P.domain})`:`${P.type} (${P.domain})`;return O.jsx(io,{value:H,children:Q},`${P.domain}-${P.type}-${P.subtype??""}`)})})]})}):R&&M&&O.jsx(fs,{label:"Trigger Type",children:O.jsxs("div",{className:"truncate rounded-md border bg-muted px-3 py-2 font-mono text-sm",children:[M,F&&O.jsxs("span",{className:"text-muted-foreground",children:[" · ",F]}),D&&O.jsxs("span",{className:"text-muted-foreground",children:[" ",`(${D})`]})]})}),R&&O.jsx(fs,{label:c("labels.entityId"),children:O.jsx(Uae,{value:B||"",onChange:P=>i("entity_id",P),entities:a,placeholder:c("placeholders.selectEntity")})}),_&&O.jsx("div",{className:"text-muted-foreground text-sm",children:c("status.loadingTriggers")}),S.map(P=>O.jsx(jz,{field:P,value:n.data[P.name],onChange:H=>i(P.name,H),entities:a,domain:D,translations:b},P.name))]})}function Mrr({node:n,onChange:i,entities:a}){const{t:c}=zs(["nodes"]),{getFieldError:d}=xw(n.id),g=Ug(n,"trigger","state"),b=Ug(n,"device_id"),w=b&&g!=="device"?"device":g;z.useEffect(()=>{b&&g!=="device"&&i("trigger","device")},[b,g,i]);const E=S=>{const k=Irr(S);for(const[_,C]of Object.entries(k))i(_,C);S!=="device"&&b&&i("device_id",void 0)};return O.jsxs(O.Fragment,{children:[O.jsx(fs,{label:c("nodes:triggers.platformLabel"),required:!0,children:O.jsxs(Hp,{value:w,onValueChange:E,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"state",children:c("nodes:triggers.platforms.state")}),O.jsx(io,{value:"numeric_state",children:c("nodes:triggers.platforms.numeric_state")}),O.jsx(io,{value:"time",children:c("nodes:triggers.platforms.time")}),O.jsx(io,{value:"time_pattern",children:c("nodes:triggers.platforms.time_pattern")}),O.jsx(io,{value:"sun",children:c("nodes:triggers.platforms.sun")}),O.jsx(io,{value:"event",children:c("nodes:triggers.platforms.event")}),O.jsx(io,{value:"mqtt",children:c("nodes:triggers.platforms.mqtt")}),O.jsx(io,{value:"webhook",children:c("nodes:triggers.platforms.webhook")}),O.jsx(io,{value:"zone",children:c("nodes:triggers.platforms.zone")}),O.jsx(io,{value:"template",children:c("nodes:triggers.platforms.template")}),O.jsx(io,{value:"homeassistant",children:c("nodes:triggers.platforms.homeassistant")}),O.jsx(io,{value:"device",children:c("nodes:triggers.platforms.device")})]})]})}),O.jsx(Prr,{effectiveTriggerType:w,deviceId:b,node:n,onChange:i,entities:a,getFieldError:d})]})}function Prr({effectiveTriggerType:n,deviceId:i,node:a,onChange:c,entities:d,getFieldError:g}){return n==="device"||i?O.jsx(Lrr,{node:a,onChange:c,entities:d}):z5e(n).map(w=>O.jsx(jz,{field:w,value:a.data[w.name],onChange:E=>c(w.name,E),entities:d,error:g(w.name)},w.name))}function jrr({node:n,onChange:i}){const{t:a}=zs(["nodes"]),{getFieldError:c,getRootError:d}=xw(n.id),g=Ug(n,"wait_template"),b=O5e(n,"wait_for_trigger"),w=b!==void 0?"trigger":"template",E=d(),S=R=>{R==="template"?(i("wait_for_trigger",void 0),i("wait_template","")):(i("wait_template",void 0),i("wait_for_trigger",[{trigger:"state"}]))},k=(R,M,D)=>{if(!b)return;const B=[...b];B[R]={...B[R],[M]:D},i("wait_for_trigger",B)},_=()=>{const R=[...b||[],{trigger:"state"}];i("wait_for_trigger",R)},C=R=>{if(!b)return;const M=b.filter((D,B)=>B!==R);i("wait_for_trigger",M)};return O.jsxs(O.Fragment,{children:[O.jsx(eN,{message:E}),O.jsx(fs,{label:a("nodes:wait.waitType"),description:a("nodes:wait.waitTypeDescription"),children:O.jsxs(Hp,{value:w,onValueChange:S,children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"template",children:a("nodes:wait.types.template")}),O.jsx(io,{value:"trigger",children:a("nodes:wait.types.triggers")})]})]})}),w==="template"&&O.jsxs(fs,{label:a("nodes:wait.waitTemplate"),required:!0,description:a("nodes:wait.waitTemplateDescription"),children:[O.jsx(jv,{value:g||"",onChange:R=>i("wait_template",R.target.value),className:"font-mono",rows:3,placeholder:a("nodes:placeholders.waitTemplate")}),O.jsx(eN,{message:c("wait_template")})]}),w==="trigger"&&O.jsxs("div",{className:"space-y-4",children:[O.jsx(eN,{message:c("wait_for_trigger")}),O.jsxs("div",{className:"space-y-2",children:[O.jsx("h3",{className:"font-medium",children:a("nodes:wait.triggersHeading")}),b==null?void 0:b.map((R,M)=>O.jsxs("div",{className:"space-y-3 rounded-md border p-3",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("p",{className:"font-semibold text-sm capitalize",children:a("nodes:wait.triggerLabel",{index:M+1,platform:R.trigger})}),O.jsx(Di,{variant:"ghost",size:"sm",onClick:()=>C(M),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:O.jsx(M5,{})})]}),O.jsx(fs,{label:a("nodes:wait.triggerPlatformLabel","Platform"),children:O.jsxs(Hp,{value:R.trigger,onValueChange:D=>k(M,"trigger",D),children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsx(Hh,{children:Object.keys(rJt).map(D=>O.jsx(io,{value:D,children:D},D))})]})}),z5e(R.trigger).map(D=>O.jsx(jz,{field:D,value:R[D.name],onChange:B=>k(M,D.name,B)},D.name))]},M))]}),O.jsx(Di,{onClick:_,variant:"outline",size:"sm",children:a("nodes:wait.addTrigger")})]}),O.jsx(JKt,{label:a("nodes:wait.timeoutLabel"),description:a("nodes:wait.timeoutDescription"),value:n.data.timeout??"",onChange:R=>i("timeout",R||void 0)}),n.data.timeout&&O.jsx(fs,{label:a("nodes:wait.continueOnTimeout"),description:a("nodes:wait.continueOnTimeoutDescription"),children:O.jsx(_A,{checked:n.data.continue_on_timeout??!0,onCheckedChange:R=>i("continue_on_timeout",R)})})]})}function Frr({node:n,onChange:i,entities:a}){switch(n.type){case"trigger":return O.jsx(Mrr,{node:n,onChange:i,entities:a});case"condition":return O.jsx(xrr,{node:n,onChange:i,entities:a});case"action":return O.jsx(qtr,{node:n,onChange:i,entities:a});case"delay":return O.jsx(Nrr,{node:n,onChange:i});case"wait":return O.jsx(jrr,{node:n,onChange:i});case"set_variables":return O.jsx(Crr,{node:n,onChange:i});default:return null}}const GDe={key:"",value:"",type:"string",isAdding:!1};function $rr(n,i){switch(i.type){case"setKey":return{...n,key:i.payload};case"setValue":return{...n,value:i.payload};case"setType":return{...n,type:i.payload};case"startAdding":return{...n,isAdding:!0};case"cancelAdding":return{...GDe};case"reset":return{...GDe};default:return n}}function Brr(n,i){switch(i){case"number":{const a=Number(n);if(Number.isNaN(a))throw new Error("Invalid number value");return a}case"boolean":return n.toLowerCase()==="true";case"array":try{const a=JSON.parse(n);if(!Array.isArray(a))throw new Error("Not an array");return a}catch{throw new Error("Invalid JSON array format")}default:return n}}function Urr(n){const[i,a]=z.useReducer($rr,GDe);return{state:i,setKey:d=>a({type:"setKey",payload:d}),setValue:d=>a({type:"setValue",payload:d}),setType:d=>a({type:"setType",payload:d}),startAdding:()=>a({type:"startAdding"}),cancelAdding:()=>a({type:"cancelAdding"}),handleAdd:()=>{if(!i.key.trim())throw new Error("Property name is required");const d=Brr(i.value,i.type);n(i.key,d),a({type:"reset"})}}}function Hrr({node:n,handledProperties:i,onChange:a,onDelete:c}){const{t:d}=zs(["common","nodes","errors"]),b=Urr((k,_)=>{a(k,_)}),w=n.data,E=Object.entries(w).filter(([k,_])=>!i.has(k)&&_!==void 0&&_!==null&&_!=="");if(E.length===0&&!b.state.isAdding)return null;const S=()=>{try{b.handleAdd()}catch(k){alert(k instanceof Error?k.message:d("errors:properties.addFailed"))}};return O.jsxs("div",{className:"space-y-3",children:[O.jsx("div",{className:"border-t pt-3",children:O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx(ll,{className:"font-medium text-muted-foreground text-xs",children:d("nodes:panel.additionalProperties")}),O.jsxs(Di,{variant:"ghost",size:"sm",onClick:b.startAdding,className:"h-6 px-2 text-xs",children:[O.jsx(Qse,{className:"mr-1 h-3 w-3"}),d("buttons.add")]})]})}),b.state.isAdding&&O.jsxs("div",{className:"space-y-2 rounded border p-3",children:[O.jsx(fs,{label:d("nodes:panel.propertyName"),required:!0,children:O.jsx(Ba,{type:"text",value:b.state.key,onChange:k=>b.setKey(k.target.value),placeholder:d("nodes:placeholders.customProperty")})}),O.jsx(fs,{label:d("nodes:panel.type"),children:O.jsxs(Hp,{value:b.state.type,onValueChange:k=>b.setType(k),children:[O.jsx(Uh,{children:O.jsx(zp,{})}),O.jsxs(Hh,{children:[O.jsx(io,{value:"string",children:d("nodes:triggers.dataTypes.string")}),O.jsx(io,{value:"number",children:d("nodes:triggers.dataTypes.number")}),O.jsx(io,{value:"boolean",children:d("nodes:triggers.dataTypes.boolean")}),O.jsx(io,{value:"array",children:d("nodes:triggers.dataTypes.json")})]})]})}),O.jsx(fs,{label:d("nodes:panel.value"),children:b.state.type==="boolean"?O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx(_A,{checked:b.state.value==="true",onCheckedChange:k=>b.setValue(k?"true":"false")}),O.jsx(ll,{className:"text-sm",children:b.state.value==="true"?d("boolean.true"):d("boolean.false")})]}):b.state.type==="array"?O.jsx(jv,{value:b.state.value,onChange:k=>b.setValue(k.target.value),placeholder:d("nodes:placeholders.jsonArray"),className:"font-mono",rows:2}):O.jsx(Ba,{type:b.state.type==="number"?"number":"text",value:b.state.value,onChange:k=>b.setValue(k.target.value),placeholder:b.state.type==="number"?d("nodes:placeholders.number"):d("nodes:placeholders.enterValue")})}),O.jsxs("div",{className:"flex justify-end gap-2",children:[O.jsx(Di,{variant:"ghost",size:"sm",onClick:b.cancelAdding,children:d("buttons.cancel")}),O.jsx(Di,{size:"sm",onClick:S,children:d("nodes:panel.addProperty")})]})]}),E.map(([k,_])=>O.jsx(zrr,{name:k,value:_,onChange:C=>a(k,C),onDelete:()=>c(k)},k))]})}function zrr({name:n,value:i,onChange:a,onDelete:c}){const{t:d}=zs(["common","nodes"]);return O.jsxs("div",{className:"space-y-2",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx(ll,{className:"font-medium text-muted-foreground text-xs capitalize",children:n.replace(/_/g," ")}),O.jsx(Di,{variant:"ghost",size:"sm",onClick:c,className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10",children:O.jsx(M5,{className:"h-3 w-3"})})]}),typeof i=="boolean"?O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx(_A,{checked:i,onCheckedChange:g=>a(g)}),O.jsx(ll,{className:"text-sm",children:d(i?"boolean.true":"boolean.false")})]}):Array.isArray(i)?O.jsx(jv,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);a(b)}catch{}},className:"font-mono",rows:Math.min(i.length+1,4),placeholder:d("nodes:placeholders.jsonArray")}):typeof i=="object"?O.jsx(jv,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);a(b)}catch{}},className:"font-mono",rows:4,placeholder:d("nodes:placeholders.jsonObject")}):O.jsx(Ba,{type:"text",value:String(i),onChange:g=>{const b=g.target.value;if(typeof i=="number"){const w=Number(b);Number.isNaN(w)||a(w)}else a(b)},placeholder:d("nodes:placeholders.enterType",{type:typeof i})})]})}function Grr(){const{t:n}=zs(["common","nodes"]),i=ds(C=>C.selectedNodeId),a=ds(C=>C.nodes),c=ds(C=>C.updateNodeData),d=ds(C=>C.removeNode),{hass:g,entities:b}=Gm(),w=z.useMemo(()=>g!=null&&g.states&&Object.keys(g.states).length>0?Object.values(g.states).map(C=>({entity_id:C.entity_id,state:C.state,attributes:C.attributes||{},last_changed:C.last_changed||"",last_updated:C.last_updated||"",context:C.context})):b,[g,b]),E=z.useMemo(()=>a.find(C=>C.id===i),[a,i]),S=z.useMemo(()=>{if(!E)return SFt("trigger",[]);const C=SFt(E.type||"trigger",[]),R=E.data,M=typeof R.trigger=="string"?R.trigger:"",D=typeof R.device_id=="string"?R.device_id:"";if((M==="device"||D)&&(E.type==="trigger"||E.type==="condition")){const F=Object.keys(R);return new Set([...C,...F])}return C},[E]);if(!E)return O.jsx(zer,{});const k=(C,R)=>{c(E.id,{[C]:R})},_=C=>{c(E.id,{[C]:void 0})};return O.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("h3",{className:"font-semibold text-foreground text-sm",children:[E.type?n(`nodes:types.${E.type}`):n("nodes:types.node")," ",n("nodes:panel.properties")]}),O.jsx(Di,{variant:"ghost",size:"sm",onClick:()=>d(E.id),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:O.jsx(M5,{className:"h-4 w-4"})})]}),O.jsx(fs,{label:n("labels.alias"),children:O.jsx(Ba,{type:"text",value:typeof E.data.alias=="string"?E.data.alias:"",onChange:C=>k("alias",C.target.value),placeholder:n("placeholders.optionalDisplayName")})}),E.type!=="action"&&O.jsx(fs,{label:n("labels.id"),children:O.jsx(Ba,{type:"text",value:typeof E.data.id=="string"?E.data.id:"",onChange:C=>k("id",C.target.value||void 0),placeholder:n("placeholders.optionalUniqueId"),className:"font-mono"})}),O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx(ll,{htmlFor:"node-enabled",className:"text-sm",children:n("labels.enabled")}),O.jsx(_A,{id:"node-enabled",checked:E.data.enabled!==!1,onCheckedChange:C=>k("enabled",C?void 0:!1)})]}),O.jsx(_z,{}),O.jsx(Frr,{node:E,onChange:k,entities:w}),O.jsx(Hrr,{node:E,handledProperties:S,onChange:k,onDelete:_}),O.jsx("div",{className:"pt-2 text-muted-foreground text-xs",children:n("nodes:panel.nodeId",{id:E.id})})]})}function qrr(n){const i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")}catch(a){console.error("Unable to copy to clipboard",a)}document.body.removeChild(i)}async function Vrr(n){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n):qrr(n)}function Bx(){return Bx=Object.assign?Object.assign.bind():function(n){for(var i=1;i4&&a.slice(0,4)==="data"&&Xrr.test(i)){if(i.charAt(4)==="-"){const g=i.slice(5).replace(UFt,Qrr);c="data"+g.charAt(0).toUpperCase()+g.slice(1)}else{const g=i.slice(4);if(!UFt.test(g)){let b=g.replace(Jrr,Zrr);b.charAt(0)!=="-"&&(b="-"+b),i="data"+b}}d=G5e}return new d(c,i)}function Zrr(n){return"-"+n.toLowerCase()}function Qrr(n){return n.charAt(1).toUpperCase()}const Vae=oJt([sJt,Krr,cJt,lJt,dJt],"html"),$z=oJt([sJt,Yrr,cJt,lJt,dJt],"svg");function mse(n){const i=[],a=String(n||"");let c=a.indexOf(","),d=0,g=!1;for(;!g;){c===-1&&(c=a.length,g=!0);const b=a.slice(d,c).trim();(b||!g)&&i.push(b),d=c+1,c=a.indexOf(",",d)}return i}function eir(n,i){const a=i||{};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const HFt=/[#.]/g;function tir(n,i){const a=n||"",c={};let d=0,g,b;for(;d-1&&g<=i.length){let b=0;for(;;){let w=a[b];if(w===void 0){const E=GFt(i,a[b-1]);w=E===-1?i.length+1:E+1,a[b]=w}if(w>g)return{line:b+1,column:g-(b>0?a[b-1]:0)+1,offset:g};b++}}}function d(g){if(g&&typeof g.line=="number"&&typeof g.column=="number"&&!Number.isNaN(g.line)&&!Number.isNaN(g.column)){for(;a.length1?a[g.line-2]:0)+g.column-1;if(b=55296&&n<=57343}function mir(n){return n>=56320&&n<=57343}function wir(n,i){return(n-55296)*1024+9216+i}function bJt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function mJt(n){return n>=64976&&n<=65007||bir.has(n)}var sn;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comment",n.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",n.eofInDoctype="eof-in-doctype",n.nestedComment="nested-comment",n.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",n.eofInComment="eof-in-comment",n.incorrectlyClosedComment="incorrectly-closed-comment",n.eofInCdata="eof-in-cdata",n.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",n.nullCharacterReference="null-character-reference",n.surrogateCharacterReference="surrogate-character-reference",n.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",n.controlCharacterReference="control-character-reference",n.noncharacterCharacterReference="noncharacter-character-reference",n.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",n.missingDoctypeName="missing-doctype-name",n.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",n.duplicateAttribute="duplicate-attribute",n.nonConformingDoctype="non-conforming-doctype",n.missingDoctype="missing-doctype",n.misplacedDoctype="misplaced-doctype",n.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",n.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",n.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",n.openElementsLeftAfterEof="open-elements-left-after-eof",n.abandonedHeadElementChild="abandoned-head-element-child",n.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",n.nestedNoscriptInHead="nested-noscript-in-head",n.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(sn||(sn={}));const yir=65536;class vir{constructor(i){this.handler=i,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yir,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(i,a){const{line:c,col:d,offset:g}=this,b=d+a,w=g+a;return{code:i,startLine:c,endLine:c,startCol:b,endCol:b,startOffset:w,endOffset:w}}_err(i){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(i,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(i){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(mir(a))return this.pos++,this._addGap(),wir(i,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fe.EOF;return this._err(sn.surrogateInInputStream),i}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(i,a){this.html.length>0?this.html+=i:this.html=i,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(i){this.html=this.html.substring(0,this.pos+1)+i+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(i,a){if(this.pos+i.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(i,this.pos);for(let c=0;c=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Fe.EOF;const c=this.html.charCodeAt(a);return c===Fe.CARRIAGE_RETURN?Fe.LINE_FEED:c}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Fe.EOF;let i=this.html.charCodeAt(this.pos);return i===Fe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Fe.LINE_FEED):i===Fe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,gJt(i)&&(i=this._processSurrogate(i)),this.handler.onParseError===null||i>31&&i<127||i===Fe.LINE_FEED||i===Fe.CARRIAGE_RETURN||i>159&&i<64976||this._checkForProblematicCharacters(i),i)}_checkForProblematicCharacters(i){bJt(i)?this._err(sn.controlCharacterInInputStream):mJt(i)&&this._err(sn.noncharacterInInputStream)}retreat(i){for(this.pos-=i;this.pos=0;a--)if(n.attrs[a].name===i)return n.attrs[a].value;return null}const Eir=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(n=>n.charCodeAt(0))),Sir=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Tir(n){var i;return n>=55296&&n<=57343||n>1114111?65533:(i=Sir.get(n))!==null&&i!==void 0?i:n}var nh;(function(n){n[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z"})(nh||(nh={}));const Air=32;var zx;(function(n){n[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"})(zx||(zx={}));function KDe(n){return n>=nh.ZERO&&n<=nh.NINE}function _ir(n){return n>=nh.UPPER_A&&n<=nh.UPPER_F||n>=nh.LOWER_A&&n<=nh.LOWER_F}function kir(n){return n>=nh.UPPER_A&&n<=nh.UPPER_Z||n>=nh.LOWER_A&&n<=nh.LOWER_Z||KDe(n)}function xir(n){return n===nh.EQUALS||kir(n)}var Zf;(function(n){n[n.EntityStart=0]="EntityStart",n[n.NumericStart=1]="NumericStart",n[n.NumericDecimal=2]="NumericDecimal",n[n.NumericHex=3]="NumericHex",n[n.NamedEntity=4]="NamedEntity"})(Zf||(Zf={}));var oA;(function(n){n[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute"})(oA||(oA={}));class Nir{constructor(i,a,c){this.decodeTree=i,this.emitCodePoint=a,this.errors=c,this.state=Zf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=oA.Strict}startEntity(i){this.decodeMode=i,this.state=Zf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(i,a){switch(this.state){case Zf.EntityStart:return i.charCodeAt(a)===nh.NUM?(this.state=Zf.NumericStart,this.consumed+=1,this.stateNumericStart(i,a+1)):(this.state=Zf.NamedEntity,this.stateNamedEntity(i,a));case Zf.NumericStart:return this.stateNumericStart(i,a);case Zf.NumericDecimal:return this.stateNumericDecimal(i,a);case Zf.NumericHex:return this.stateNumericHex(i,a);case Zf.NamedEntity:return this.stateNamedEntity(i,a)}}stateNumericStart(i,a){return a>=i.length?-1:(i.charCodeAt(a)|Air)===nh.LOWER_X?(this.state=Zf.NumericHex,this.consumed+=1,this.stateNumericHex(i,a+1)):(this.state=Zf.NumericDecimal,this.stateNumericDecimal(i,a))}addToNumericResult(i,a,c,d){if(a!==c){const g=c-a;this.result=this.result*Math.pow(d,g)+Number.parseInt(i.substr(a,g),d),this.consumed+=g}}stateNumericHex(i,a){const c=a;for(;a>14;for(;a>14,g!==0){if(b===nh.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==oA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var i;const{result:a,decodeTree:c}=this,d=(c[a]&zx.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,d,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,a,c){const{decodeTree:d}=this;return this.emitCodePoint(a===1?d[i]&~zx.VALUE_LENGTH:d[i+1],c),a===3&&this.emitCodePoint(d[i+2],c),c}end(){var i;switch(this.state){case Zf.NamedEntity:return this.result!==0&&(this.decodeMode!==oA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Zf.NumericDecimal:return this.emitNumericEntity(0,2);case Zf.NumericHex:return this.emitNumericEntity(0,3);case Zf.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Zf.EntityStart:return 0}}}function Cir(n,i,a,c){const d=(i&zx.BRANCH_LENGTH)>>7,g=i&zx.JUMP_TABLE;if(d===0)return g!==0&&c===g?a:-1;if(g){const E=c-g;return E<0||E>=d?-1:n[a+E]-1}let b=a,w=b+d-1;for(;b<=w;){const E=b+w>>>1,S=n[E];if(Sc)w=E-1;else return n[E+d]}return-1}var jn;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.MATHML="http://www.w3.org/1998/Math/MathML",n.SVG="http://www.w3.org/2000/svg",n.XLINK="http://www.w3.org/1999/xlink",n.XML="http://www.w3.org/XML/1998/namespace",n.XMLNS="http://www.w3.org/2000/xmlns/"})(jn||(jn={}));var tR;(function(n){n.TYPE="type",n.ACTION="action",n.ENCODING="encoding",n.PROMPT="prompt",n.NAME="name",n.COLOR="color",n.FACE="face",n.SIZE="size"})(tR||(tR={}));var mw;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(mw||(mw={}));var Pt;(function(n){n.A="a",n.ADDRESS="address",n.ANNOTATION_XML="annotation-xml",n.APPLET="applet",n.AREA="area",n.ARTICLE="article",n.ASIDE="aside",n.B="b",n.BASE="base",n.BASEFONT="basefont",n.BGSOUND="bgsound",n.BIG="big",n.BLOCKQUOTE="blockquote",n.BODY="body",n.BR="br",n.BUTTON="button",n.CAPTION="caption",n.CENTER="center",n.CODE="code",n.COL="col",n.COLGROUP="colgroup",n.DD="dd",n.DESC="desc",n.DETAILS="details",n.DIALOG="dialog",n.DIR="dir",n.DIV="div",n.DL="dl",n.DT="dt",n.EM="em",n.EMBED="embed",n.FIELDSET="fieldset",n.FIGCAPTION="figcaption",n.FIGURE="figure",n.FONT="font",n.FOOTER="footer",n.FOREIGN_OBJECT="foreignObject",n.FORM="form",n.FRAME="frame",n.FRAMESET="frameset",n.H1="h1",n.H2="h2",n.H3="h3",n.H4="h4",n.H5="h5",n.H6="h6",n.HEAD="head",n.HEADER="header",n.HGROUP="hgroup",n.HR="hr",n.HTML="html",n.I="i",n.IMG="img",n.IMAGE="image",n.INPUT="input",n.IFRAME="iframe",n.KEYGEN="keygen",n.LABEL="label",n.LI="li",n.LINK="link",n.LISTING="listing",n.MAIN="main",n.MALIGNMARK="malignmark",n.MARQUEE="marquee",n.MATH="math",n.MENU="menu",n.META="meta",n.MGLYPH="mglyph",n.MI="mi",n.MO="mo",n.MN="mn",n.MS="ms",n.MTEXT="mtext",n.NAV="nav",n.NOBR="nobr",n.NOFRAMES="noframes",n.NOEMBED="noembed",n.NOSCRIPT="noscript",n.OBJECT="object",n.OL="ol",n.OPTGROUP="optgroup",n.OPTION="option",n.P="p",n.PARAM="param",n.PLAINTEXT="plaintext",n.PRE="pre",n.RB="rb",n.RP="rp",n.RT="rt",n.RTC="rtc",n.RUBY="ruby",n.S="s",n.SCRIPT="script",n.SEARCH="search",n.SECTION="section",n.SELECT="select",n.SOURCE="source",n.SMALL="small",n.SPAN="span",n.STRIKE="strike",n.STRONG="strong",n.STYLE="style",n.SUB="sub",n.SUMMARY="summary",n.SUP="sup",n.TABLE="table",n.TBODY="tbody",n.TEMPLATE="template",n.TEXTAREA="textarea",n.TFOOT="tfoot",n.TD="td",n.TH="th",n.THEAD="thead",n.TITLE="title",n.TR="tr",n.TRACK="track",n.TT="tt",n.U="u",n.UL="ul",n.SVG="svg",n.VAR="var",n.WBR="wbr",n.XMP="xmp"})(Pt||(Pt={}));var W;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.A=1]="A",n[n.ADDRESS=2]="ADDRESS",n[n.ANNOTATION_XML=3]="ANNOTATION_XML",n[n.APPLET=4]="APPLET",n[n.AREA=5]="AREA",n[n.ARTICLE=6]="ARTICLE",n[n.ASIDE=7]="ASIDE",n[n.B=8]="B",n[n.BASE=9]="BASE",n[n.BASEFONT=10]="BASEFONT",n[n.BGSOUND=11]="BGSOUND",n[n.BIG=12]="BIG",n[n.BLOCKQUOTE=13]="BLOCKQUOTE",n[n.BODY=14]="BODY",n[n.BR=15]="BR",n[n.BUTTON=16]="BUTTON",n[n.CAPTION=17]="CAPTION",n[n.CENTER=18]="CENTER",n[n.CODE=19]="CODE",n[n.COL=20]="COL",n[n.COLGROUP=21]="COLGROUP",n[n.DD=22]="DD",n[n.DESC=23]="DESC",n[n.DETAILS=24]="DETAILS",n[n.DIALOG=25]="DIALOG",n[n.DIR=26]="DIR",n[n.DIV=27]="DIV",n[n.DL=28]="DL",n[n.DT=29]="DT",n[n.EM=30]="EM",n[n.EMBED=31]="EMBED",n[n.FIELDSET=32]="FIELDSET",n[n.FIGCAPTION=33]="FIGCAPTION",n[n.FIGURE=34]="FIGURE",n[n.FONT=35]="FONT",n[n.FOOTER=36]="FOOTER",n[n.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",n[n.FORM=38]="FORM",n[n.FRAME=39]="FRAME",n[n.FRAMESET=40]="FRAMESET",n[n.H1=41]="H1",n[n.H2=42]="H2",n[n.H3=43]="H3",n[n.H4=44]="H4",n[n.H5=45]="H5",n[n.H6=46]="H6",n[n.HEAD=47]="HEAD",n[n.HEADER=48]="HEADER",n[n.HGROUP=49]="HGROUP",n[n.HR=50]="HR",n[n.HTML=51]="HTML",n[n.I=52]="I",n[n.IMG=53]="IMG",n[n.IMAGE=54]="IMAGE",n[n.INPUT=55]="INPUT",n[n.IFRAME=56]="IFRAME",n[n.KEYGEN=57]="KEYGEN",n[n.LABEL=58]="LABEL",n[n.LI=59]="LI",n[n.LINK=60]="LINK",n[n.LISTING=61]="LISTING",n[n.MAIN=62]="MAIN",n[n.MALIGNMARK=63]="MALIGNMARK",n[n.MARQUEE=64]="MARQUEE",n[n.MATH=65]="MATH",n[n.MENU=66]="MENU",n[n.META=67]="META",n[n.MGLYPH=68]="MGLYPH",n[n.MI=69]="MI",n[n.MO=70]="MO",n[n.MN=71]="MN",n[n.MS=72]="MS",n[n.MTEXT=73]="MTEXT",n[n.NAV=74]="NAV",n[n.NOBR=75]="NOBR",n[n.NOFRAMES=76]="NOFRAMES",n[n.NOEMBED=77]="NOEMBED",n[n.NOSCRIPT=78]="NOSCRIPT",n[n.OBJECT=79]="OBJECT",n[n.OL=80]="OL",n[n.OPTGROUP=81]="OPTGROUP",n[n.OPTION=82]="OPTION",n[n.P=83]="P",n[n.PARAM=84]="PARAM",n[n.PLAINTEXT=85]="PLAINTEXT",n[n.PRE=86]="PRE",n[n.RB=87]="RB",n[n.RP=88]="RP",n[n.RT=89]="RT",n[n.RTC=90]="RTC",n[n.RUBY=91]="RUBY",n[n.S=92]="S",n[n.SCRIPT=93]="SCRIPT",n[n.SEARCH=94]="SEARCH",n[n.SECTION=95]="SECTION",n[n.SELECT=96]="SELECT",n[n.SOURCE=97]="SOURCE",n[n.SMALL=98]="SMALL",n[n.SPAN=99]="SPAN",n[n.STRIKE=100]="STRIKE",n[n.STRONG=101]="STRONG",n[n.STYLE=102]="STYLE",n[n.SUB=103]="SUB",n[n.SUMMARY=104]="SUMMARY",n[n.SUP=105]="SUP",n[n.TABLE=106]="TABLE",n[n.TBODY=107]="TBODY",n[n.TEMPLATE=108]="TEMPLATE",n[n.TEXTAREA=109]="TEXTAREA",n[n.TFOOT=110]="TFOOT",n[n.TD=111]="TD",n[n.TH=112]="TH",n[n.THEAD=113]="THEAD",n[n.TITLE=114]="TITLE",n[n.TR=115]="TR",n[n.TRACK=116]="TRACK",n[n.TT=117]="TT",n[n.U=118]="U",n[n.UL=119]="UL",n[n.SVG=120]="SVG",n[n.VAR=121]="VAR",n[n.WBR=122]="WBR",n[n.XMP=123]="XMP"})(W||(W={}));const Iir=new Map([[Pt.A,W.A],[Pt.ADDRESS,W.ADDRESS],[Pt.ANNOTATION_XML,W.ANNOTATION_XML],[Pt.APPLET,W.APPLET],[Pt.AREA,W.AREA],[Pt.ARTICLE,W.ARTICLE],[Pt.ASIDE,W.ASIDE],[Pt.B,W.B],[Pt.BASE,W.BASE],[Pt.BASEFONT,W.BASEFONT],[Pt.BGSOUND,W.BGSOUND],[Pt.BIG,W.BIG],[Pt.BLOCKQUOTE,W.BLOCKQUOTE],[Pt.BODY,W.BODY],[Pt.BR,W.BR],[Pt.BUTTON,W.BUTTON],[Pt.CAPTION,W.CAPTION],[Pt.CENTER,W.CENTER],[Pt.CODE,W.CODE],[Pt.COL,W.COL],[Pt.COLGROUP,W.COLGROUP],[Pt.DD,W.DD],[Pt.DESC,W.DESC],[Pt.DETAILS,W.DETAILS],[Pt.DIALOG,W.DIALOG],[Pt.DIR,W.DIR],[Pt.DIV,W.DIV],[Pt.DL,W.DL],[Pt.DT,W.DT],[Pt.EM,W.EM],[Pt.EMBED,W.EMBED],[Pt.FIELDSET,W.FIELDSET],[Pt.FIGCAPTION,W.FIGCAPTION],[Pt.FIGURE,W.FIGURE],[Pt.FONT,W.FONT],[Pt.FOOTER,W.FOOTER],[Pt.FOREIGN_OBJECT,W.FOREIGN_OBJECT],[Pt.FORM,W.FORM],[Pt.FRAME,W.FRAME],[Pt.FRAMESET,W.FRAMESET],[Pt.H1,W.H1],[Pt.H2,W.H2],[Pt.H3,W.H3],[Pt.H4,W.H4],[Pt.H5,W.H5],[Pt.H6,W.H6],[Pt.HEAD,W.HEAD],[Pt.HEADER,W.HEADER],[Pt.HGROUP,W.HGROUP],[Pt.HR,W.HR],[Pt.HTML,W.HTML],[Pt.I,W.I],[Pt.IMG,W.IMG],[Pt.IMAGE,W.IMAGE],[Pt.INPUT,W.INPUT],[Pt.IFRAME,W.IFRAME],[Pt.KEYGEN,W.KEYGEN],[Pt.LABEL,W.LABEL],[Pt.LI,W.LI],[Pt.LINK,W.LINK],[Pt.LISTING,W.LISTING],[Pt.MAIN,W.MAIN],[Pt.MALIGNMARK,W.MALIGNMARK],[Pt.MARQUEE,W.MARQUEE],[Pt.MATH,W.MATH],[Pt.MENU,W.MENU],[Pt.META,W.META],[Pt.MGLYPH,W.MGLYPH],[Pt.MI,W.MI],[Pt.MO,W.MO],[Pt.MN,W.MN],[Pt.MS,W.MS],[Pt.MTEXT,W.MTEXT],[Pt.NAV,W.NAV],[Pt.NOBR,W.NOBR],[Pt.NOFRAMES,W.NOFRAMES],[Pt.NOEMBED,W.NOEMBED],[Pt.NOSCRIPT,W.NOSCRIPT],[Pt.OBJECT,W.OBJECT],[Pt.OL,W.OL],[Pt.OPTGROUP,W.OPTGROUP],[Pt.OPTION,W.OPTION],[Pt.P,W.P],[Pt.PARAM,W.PARAM],[Pt.PLAINTEXT,W.PLAINTEXT],[Pt.PRE,W.PRE],[Pt.RB,W.RB],[Pt.RP,W.RP],[Pt.RT,W.RT],[Pt.RTC,W.RTC],[Pt.RUBY,W.RUBY],[Pt.S,W.S],[Pt.SCRIPT,W.SCRIPT],[Pt.SEARCH,W.SEARCH],[Pt.SECTION,W.SECTION],[Pt.SELECT,W.SELECT],[Pt.SOURCE,W.SOURCE],[Pt.SMALL,W.SMALL],[Pt.SPAN,W.SPAN],[Pt.STRIKE,W.STRIKE],[Pt.STRONG,W.STRONG],[Pt.STYLE,W.STYLE],[Pt.SUB,W.SUB],[Pt.SUMMARY,W.SUMMARY],[Pt.SUP,W.SUP],[Pt.TABLE,W.TABLE],[Pt.TBODY,W.TBODY],[Pt.TEMPLATE,W.TEMPLATE],[Pt.TEXTAREA,W.TEXTAREA],[Pt.TFOOT,W.TFOOT],[Pt.TD,W.TD],[Pt.TH,W.TH],[Pt.THEAD,W.THEAD],[Pt.TITLE,W.TITLE],[Pt.TR,W.TR],[Pt.TRACK,W.TRACK],[Pt.TT,W.TT],[Pt.U,W.U],[Pt.UL,W.UL],[Pt.SVG,W.SVG],[Pt.VAR,W.VAR],[Pt.WBR,W.WBR],[Pt.XMP,W.XMP]]);function Wae(n){var i;return(i=Iir.get(n))!==null&&i!==void 0?i:W.UNKNOWN}const Jn=W,Rir={[jn.HTML]:new Set([Jn.ADDRESS,Jn.APPLET,Jn.AREA,Jn.ARTICLE,Jn.ASIDE,Jn.BASE,Jn.BASEFONT,Jn.BGSOUND,Jn.BLOCKQUOTE,Jn.BODY,Jn.BR,Jn.BUTTON,Jn.CAPTION,Jn.CENTER,Jn.COL,Jn.COLGROUP,Jn.DD,Jn.DETAILS,Jn.DIR,Jn.DIV,Jn.DL,Jn.DT,Jn.EMBED,Jn.FIELDSET,Jn.FIGCAPTION,Jn.FIGURE,Jn.FOOTER,Jn.FORM,Jn.FRAME,Jn.FRAMESET,Jn.H1,Jn.H2,Jn.H3,Jn.H4,Jn.H5,Jn.H6,Jn.HEAD,Jn.HEADER,Jn.HGROUP,Jn.HR,Jn.HTML,Jn.IFRAME,Jn.IMG,Jn.INPUT,Jn.LI,Jn.LINK,Jn.LISTING,Jn.MAIN,Jn.MARQUEE,Jn.MENU,Jn.META,Jn.NAV,Jn.NOEMBED,Jn.NOFRAMES,Jn.NOSCRIPT,Jn.OBJECT,Jn.OL,Jn.P,Jn.PARAM,Jn.PLAINTEXT,Jn.PRE,Jn.SCRIPT,Jn.SECTION,Jn.SELECT,Jn.SOURCE,Jn.STYLE,Jn.SUMMARY,Jn.TABLE,Jn.TBODY,Jn.TD,Jn.TEMPLATE,Jn.TEXTAREA,Jn.TFOOT,Jn.TH,Jn.THEAD,Jn.TITLE,Jn.TR,Jn.TRACK,Jn.UL,Jn.WBR,Jn.XMP]),[jn.MATHML]:new Set([Jn.MI,Jn.MO,Jn.MN,Jn.MS,Jn.MTEXT,Jn.ANNOTATION_XML]),[jn.SVG]:new Set([Jn.TITLE,Jn.FOREIGN_OBJECT,Jn.DESC]),[jn.XLINK]:new Set,[jn.XML]:new Set,[jn.XMLNS]:new Set},YDe=new Set([Jn.H1,Jn.H2,Jn.H3,Jn.H4,Jn.H5,Jn.H6]);Pt.STYLE,Pt.SCRIPT,Pt.XMP,Pt.IFRAME,Pt.NOEMBED,Pt.NOFRAMES,Pt.PLAINTEXT;var Ve;(function(n){n[n.DATA=0]="DATA",n[n.RCDATA=1]="RCDATA",n[n.RAWTEXT=2]="RAWTEXT",n[n.SCRIPT_DATA=3]="SCRIPT_DATA",n[n.PLAINTEXT=4]="PLAINTEXT",n[n.TAG_OPEN=5]="TAG_OPEN",n[n.END_TAG_OPEN=6]="END_TAG_OPEN",n[n.TAG_NAME=7]="TAG_NAME",n[n.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",n[n.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",n[n.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",n[n.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",n[n.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",n[n.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",n[n.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",n[n.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",n[n.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",n[n.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",n[n.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",n[n.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",n[n.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",n[n.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",n[n.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",n[n.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",n[n.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",n[n.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",n[n.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",n[n.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",n[n.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",n[n.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",n[n.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",n[n.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",n[n.BOGUS_COMMENT=40]="BOGUS_COMMENT",n[n.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",n[n.COMMENT_START=42]="COMMENT_START",n[n.COMMENT_START_DASH=43]="COMMENT_START_DASH",n[n.COMMENT=44]="COMMENT",n[n.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",n[n.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",n[n.COMMENT_END_DASH=49]="COMMENT_END_DASH",n[n.COMMENT_END=50]="COMMENT_END",n[n.COMMENT_END_BANG=51]="COMMENT_END_BANG",n[n.DOCTYPE=52]="DOCTYPE",n[n.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",n[n.DOCTYPE_NAME=54]="DOCTYPE_NAME",n[n.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",n[n.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",n[n.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",n[n.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",n[n.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",n[n.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",n[n.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",n[n.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",n[n.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",n[n.CDATA_SECTION=68]="CDATA_SECTION",n[n.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",n[n.CDATA_SECTION_END=70]="CDATA_SECTION_END",n[n.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",n[n.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Ve||(Ve={}));const ob={DATA:Ve.DATA,RCDATA:Ve.RCDATA,RAWTEXT:Ve.RAWTEXT,SCRIPT_DATA:Ve.SCRIPT_DATA,PLAINTEXT:Ve.PLAINTEXT,CDATA_SECTION:Ve.CDATA_SECTION};function Oir(n){return n>=Fe.DIGIT_0&&n<=Fe.DIGIT_9}function iH(n){return n>=Fe.LATIN_CAPITAL_A&&n<=Fe.LATIN_CAPITAL_Z}function Dir(n){return n>=Fe.LATIN_SMALL_A&&n<=Fe.LATIN_SMALL_Z}function Dx(n){return Dir(n)||iH(n)}function VFt(n){return Dx(n)||Oir(n)}function Cie(n){return n+32}function yJt(n){return n===Fe.SPACE||n===Fe.LINE_FEED||n===Fe.TABULATION||n===Fe.FORM_FEED}function WFt(n){return yJt(n)||n===Fe.SOLIDUS||n===Fe.GREATER_THAN_SIGN}function Lir(n){return n===Fe.NULL?sn.nullCharacterReference:n>1114111?sn.characterReferenceOutsideUnicodeRange:gJt(n)?sn.surrogateCharacterReference:mJt(n)?sn.noncharacterCharacterReference:bJt(n)||n===Fe.CARRIAGE_RETURN?sn.controlCharacterReference:null}class Mir{constructor(i,a){this.options=i,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Ve.DATA,this.returnState=Ve.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vir(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Nir(Eir,(c,d)=>{this.preprocessor.pos=this.entityStartPos+d-1,this._flushCodePointConsumedAsCharacterReference(c)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:c=>{this._err(sn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+c)},validateNumericCharacterReference:c=>{const d=Lir(c);d&&this._err(d,1)}}:void 0)}_err(i,a=0){var c,d;(d=(c=this.handler).onParseError)===null||d===void 0||d.call(c,this.preprocessor.getError(i,a))}getCurrentLocation(i){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-i,startOffset:this.preprocessor.offset-i,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const i=this._consume();this._ensureHibernation()||this._callState(i)}this.inLoop=!1}}pause(){this.paused=!0}resume(i){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||i==null||i())}write(i,a,c){this.active=!0,this.preprocessor.write(i,a),this._runParsingLoop(),this.paused||c==null||c()}insertHtmlAtCurrentPos(i){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(i),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(i){this.consumedAfterSnapshot+=i;for(let a=0;a0&&this._err(sn.endTagWithAttributes),i.selfClosing&&this._err(sn.endTagWithTrailingSolidus),this.handler.onEndTag(i)),this.preprocessor.dropParsedChunk()}emitCurrentComment(i){this.prepareToken(i),this.handler.onComment(i),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(i){this.prepareToken(i),this.handler.onDoctype(i),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(i){if(this.currentCharacterToken){switch(i&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentCharacterToken.type){case ha.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ha.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ha.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const i=this.getCurrentLocation(0);i&&(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset),this._emitCurrentCharacterToken(i),this.handler.onEof({type:ha.EOF,location:i}),this.active=!1}_appendCharToCurrentCharacterToken(i,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type===i){this.currentCharacterToken.chars+=a;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(i,a)}_emitCodePoint(i){const a=yJt(i)?ha.WHITESPACE_CHARACTER:i===Fe.NULL?ha.NULL_CHARACTER:ha.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(i))}_emitChars(i){this._appendCharToCurrentCharacterToken(ha.CHARACTER,i)}_startCharacterReference(){this.returnState=this.state,this.state=Ve.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?oA.Attribute:oA.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Ve.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Ve.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Ve.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(i){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(i):this._emitCodePoint(i)}_callState(i){switch(this.state){case Ve.DATA:{this._stateData(i);break}case Ve.RCDATA:{this._stateRcdata(i);break}case Ve.RAWTEXT:{this._stateRawtext(i);break}case Ve.SCRIPT_DATA:{this._stateScriptData(i);break}case Ve.PLAINTEXT:{this._statePlaintext(i);break}case Ve.TAG_OPEN:{this._stateTagOpen(i);break}case Ve.END_TAG_OPEN:{this._stateEndTagOpen(i);break}case Ve.TAG_NAME:{this._stateTagName(i);break}case Ve.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(i);break}case Ve.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(i);break}case Ve.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(i);break}case Ve.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(i);break}case Ve.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(i);break}case Ve.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(i);break}case Ve.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(i);break}case Ve.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(i);break}case Ve.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(i);break}case Ve.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(i);break}case Ve.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(i);break}case Ve.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(i);break}case Ve.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(i);break}case Ve.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(i);break}case Ve.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(i);break}case Ve.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(i);break}case Ve.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(i);break}case Ve.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(i);break}case Ve.ATTRIBUTE_NAME:{this._stateAttributeName(i);break}case Ve.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(i);break}case Ve.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(i);break}case Ve.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(i);break}case Ve.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(i);break}case Ve.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(i);break}case Ve.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(i);break}case Ve.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(i);break}case Ve.BOGUS_COMMENT:{this._stateBogusComment(i);break}case Ve.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(i);break}case Ve.COMMENT_START:{this._stateCommentStart(i);break}case Ve.COMMENT_START_DASH:{this._stateCommentStartDash(i);break}case Ve.COMMENT:{this._stateComment(i);break}case Ve.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(i);break}case Ve.COMMENT_END_DASH:{this._stateCommentEndDash(i);break}case Ve.COMMENT_END:{this._stateCommentEnd(i);break}case Ve.COMMENT_END_BANG:{this._stateCommentEndBang(i);break}case Ve.DOCTYPE:{this._stateDoctype(i);break}case Ve.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(i);break}case Ve.DOCTYPE_NAME:{this._stateDoctypeName(i);break}case Ve.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(i);break}case Ve.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(i);break}case Ve.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(i);break}case Ve.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(i);break}case Ve.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(i);break}case Ve.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(i);break}case Ve.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(i);break}case Ve.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(i);break}case Ve.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(i);break}case Ve.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(i);break}case Ve.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(i);break}case Ve.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(i);break}case Ve.BOGUS_DOCTYPE:{this._stateBogusDoctype(i);break}case Ve.CDATA_SECTION:{this._stateCdataSection(i);break}case Ve.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(i);break}case Ve.CDATA_SECTION_END:{this._stateCdataSectionEnd(i);break}case Ve.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Ve.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(i);break}default:throw new Error("Unknown state")}}_stateData(i){switch(i){case Fe.LESS_THAN_SIGN:{this.state=Ve.TAG_OPEN;break}case Fe.AMPERSAND:{this._startCharacterReference();break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this._emitCodePoint(i);break}case Fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRcdata(i){switch(i){case Fe.AMPERSAND:{this._startCharacterReference();break}case Fe.LESS_THAN_SIGN:{this.state=Ve.RCDATA_LESS_THAN_SIGN;break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case Fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRawtext(i){switch(i){case Fe.LESS_THAN_SIGN:{this.state=Ve.RAWTEXT_LESS_THAN_SIGN;break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case Fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateScriptData(i){switch(i){case Fe.LESS_THAN_SIGN:{this.state=Ve.SCRIPT_DATA_LESS_THAN_SIGN;break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case Fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_statePlaintext(i){switch(i){case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case Fe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateTagOpen(i){if(Dx(i))this._createStartTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case Fe.EXCLAMATION_MARK:{this.state=Ve.MARKUP_DECLARATION_OPEN;break}case Fe.SOLIDUS:{this.state=Ve.END_TAG_OPEN;break}case Fe.QUESTION_MARK:{this._err(sn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Ve.BOGUS_COMMENT,this._stateBogusComment(i);break}case Fe.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(sn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Ve.DATA,this._stateData(i)}}_stateEndTagOpen(i){if(Dx(i))this._createEndTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case Fe.GREATER_THAN_SIGN:{this._err(sn.missingEndTagName),this.state=Ve.DATA;break}case Fe.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("");break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitChars(Oc);break}case Fe.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataEscapedLessThanSign(i){i===Fe.SOLIDUS?this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Dx(i)?(this._emitChars("<"),this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(i)):(this._emitChars("<"),this.state=Ve.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(i))}_stateScriptDataEscapedEndTagOpen(i){Dx(i)?(this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(i)):(this._emitChars("");break}case Fe.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Oc);break}case Fe.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataDoubleEscapedLessThanSign(i){i===Fe.SOLIDUS?(this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(i))}_stateScriptDataDoubleEscapeEnd(i){if(this.preprocessor.startsWith(tb.SCRIPT,!1)&&WFt(this.preprocessor.peek(tb.SCRIPT.length))){this._emitCodePoint(i);for(let a=0;a0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,!0)}replace(i,a){const c=this._indexOf(i);this.items[c]=a,c===this.stackTop&&(this.current=a)}insertAfter(i,a,c){const d=this._indexOf(i)+1;this.items.splice(d,0,a),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(i){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(i,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==jn.HTML);this.shortenToLength(Math.max(a,0))}shortenToLength(i){for(;this.stackTop>=i;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop=0;c--)if(i.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===a)return c;return-1}clearBackTo(i,a){const c=this._indexOfTagNames(i,a);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(Bir,jn.HTML)}clearBackToTableBodyContext(){this.clearBackTo($ir,jn.HTML)}clearBackToTableRowContext(){this.clearBackTo(Fir,jn.HTML)}remove(i){const a=this._indexOf(i);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===W.BODY?this.items[1]:null}contains(i){return this._indexOf(i)>-1}getCommonAncestor(i){const a=this._indexOf(i)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===W.HTML}hasInDynamicScope(i,a){for(let c=this.stackTop;c>=0;c--){const d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case jn.HTML:{if(d===i)return!0;if(a.has(d))return!1;break}case jn.SVG:{if(JFt.has(d))return!1;break}case jn.MATHML:{if(YFt.has(d))return!1;break}}}return!0}hasInScope(i){return this.hasInDynamicScope(i,yse)}hasInListItemScope(i){return this.hasInDynamicScope(i,Pir)}hasInButtonScope(i){return this.hasInDynamicScope(i,jir)}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){const a=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case jn.HTML:{if(YDe.has(a))return!0;if(yse.has(a))return!1;break}case jn.SVG:{if(JFt.has(a))return!1;break}case jn.MATHML:{if(YFt.has(a))return!1;break}}}return!0}hasInTableScope(i){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===jn.HTML)switch(this.tagIDs[a]){case i:return!0;case W.TABLE:case W.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let i=this.stackTop;i>=0;i--)if(this.treeAdapter.getNamespaceURI(this.items[i])===jn.HTML)switch(this.tagIDs[i]){case W.TBODY:case W.THEAD:case W.TFOOT:return!0;case W.TABLE:case W.HTML:return!1}return!0}hasInSelectScope(i){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===jn.HTML)switch(this.tagIDs[a]){case i:return!0;case W.OPTION:case W.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vJt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&KFt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;this.currentTagId!==void 0&&this.currentTagId!==i&&KFt.has(this.currentTagId);)this.pop()}}const POe=3;var I2;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})(I2||(I2={}));const XFt={type:I2.Marker};class zir{constructor(i){this.treeAdapter=i,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(i,a){const c=[],d=a.length,g=this.treeAdapter.getTagName(i),b=this.treeAdapter.getNamespaceURI(i);for(let w=0;w[b.name,b.value]));let g=0;for(let b=0;bd.get(E.name)===E.value)&&(g+=1,g>=POe&&this.entries.splice(w.idx,1))}}insertMarker(){this.entries.unshift(XFt)}pushElement(i,a){this._ensureNoahArkCondition(i),this.entries.unshift({type:I2.Element,element:i,token:a})}insertElementAfterBookmark(i,a){const c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:I2.Element,element:i,token:a})}removeEntry(i){const a=this.entries.indexOf(i);a!==-1&&this.entries.splice(a,1)}clearToLastMarker(){const i=this.entries.indexOf(XFt);i===-1?this.entries.length=0:this.entries.splice(0,i+1)}getElementEntryInScopeWithTagName(i){const a=this.entries.find(c=>c.type===I2.Marker||this.treeAdapter.getTagName(c.element)===i);return a&&a.type===I2.Element?a:null}getElementEntry(i){return this.entries.find(a=>a.type===I2.Element&&a.element===i)}}const Lx={createDocument(){return{nodeName:"#document",mode:mw.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(n,i,a){return{nodeName:n,tagName:n,attrs:a,namespaceURI:i,childNodes:[],parentNode:null}},createCommentNode(n){return{nodeName:"#comment",data:n,parentNode:null}},createTextNode(n){return{nodeName:"#text",value:n,parentNode:null}},appendChild(n,i){n.childNodes.push(i),i.parentNode=n},insertBefore(n,i,a){const c=n.childNodes.indexOf(a);n.childNodes.splice(c,0,i),i.parentNode=n},setTemplateContent(n,i){n.content=i},getTemplateContent(n){return n.content},setDocumentType(n,i,a,c){const d=n.childNodes.find(g=>g.nodeName==="#documentType");if(d)d.name=i,d.publicId=a,d.systemId=c;else{const g={nodeName:"#documentType",name:i,publicId:a,systemId:c,parentNode:null};Lx.appendChild(n,g)}},setDocumentMode(n,i){n.mode=i},getDocumentMode(n){return n.mode},detachNode(n){if(n.parentNode){const i=n.parentNode.childNodes.indexOf(n);n.parentNode.childNodes.splice(i,1),n.parentNode=null}},insertText(n,i){if(n.childNodes.length>0){const a=n.childNodes[n.childNodes.length-1];if(Lx.isTextNode(a)){a.value+=i;return}}Lx.appendChild(n,Lx.createTextNode(i))},insertTextBefore(n,i,a){const c=n.childNodes[n.childNodes.indexOf(a)-1];c&&Lx.isTextNode(c)?c.value+=i:Lx.insertBefore(n,Lx.createTextNode(i),a)},adoptAttributes(n,i){const a=new Set(n.attrs.map(c=>c.name));for(let c=0;cn.startsWith(a))}function Yir(n){return n.name===EJt&&n.publicId===null&&(n.systemId===null||n.systemId===Gir)}function Jir(n){if(n.name!==EJt)return mw.QUIRKS;const{systemId:i}=n;if(i&&i.toLowerCase()===qir)return mw.QUIRKS;let{publicId:a}=n;if(a!==null){if(a=a.toLowerCase(),Wir.has(a))return mw.QUIRKS;let c=i===null?Vir:SJt;if(ZFt(a,c))return mw.QUIRKS;if(c=i===null?TJt:Kir,ZFt(a,c))return mw.LIMITED_QUIRKS}return mw.NO_QUIRKS}const QFt={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Xir="definitionurl",Zir="definitionURL",Qir=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(n=>[n.toLowerCase(),n])),eor=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:jn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:jn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:jn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:jn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:jn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:jn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:jn.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:jn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:jn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:jn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:jn.XMLNS}]]),tor=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(n=>[n.toLowerCase(),n])),nor=new Set([W.B,W.BIG,W.BLOCKQUOTE,W.BODY,W.BR,W.CENTER,W.CODE,W.DD,W.DIV,W.DL,W.DT,W.EM,W.EMBED,W.H1,W.H2,W.H3,W.H4,W.H5,W.H6,W.HEAD,W.HR,W.I,W.IMG,W.LI,W.LISTING,W.MENU,W.META,W.NOBR,W.OL,W.P,W.PRE,W.RUBY,W.S,W.SMALL,W.SPAN,W.STRONG,W.STRIKE,W.SUB,W.SUP,W.TABLE,W.TT,W.U,W.UL,W.VAR]);function ror(n){const i=n.tagID;return i===W.FONT&&n.attrs.some(({name:c})=>c===tR.COLOR||c===tR.SIZE||c===tR.FACE)||nor.has(i)}function AJt(n){for(let i=0;i0&&this._setContextModes(i,a)}onItemPop(i,a){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(i,this.currentToken),(d=(c=this.treeAdapter).onItemPop)===null||d===void 0||d.call(c,i,this.openElements.current),a){let g,b;this.openElements.stackTop===0&&this.fragmentContext?(g=this.fragmentContext,b=this.fragmentContextID):{current:g,currentTagId:b}=this.openElements,this._setContextModes(g,b)}}_setContextModes(i,a){const c=i===this.document||i&&this.treeAdapter.getNamespaceURI(i)===jn.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&i!==void 0&&a!==void 0&&!this._isIntegrationPoint(a,i)}_switchToTextParsing(i,a){this._insertElement(i,jn.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=ut.TEXT}switchToPlaintextParsing(){this.insertionMode=ut.TEXT,this.originalInsertionMode=ut.IN_BODY,this.tokenizer.state=ob.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let i=this.fragmentContext;for(;i;){if(this.treeAdapter.getTagName(i)===Pt.FORM){this.formElement=i;break}i=this.treeAdapter.getParentNode(i)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==jn.HTML))switch(this.fragmentContextID){case W.TITLE:case W.TEXTAREA:{this.tokenizer.state=ob.RCDATA;break}case W.STYLE:case W.XMP:case W.IFRAME:case W.NOEMBED:case W.NOFRAMES:case W.NOSCRIPT:{this.tokenizer.state=ob.RAWTEXT;break}case W.SCRIPT:{this.tokenizer.state=ob.SCRIPT_DATA;break}case W.PLAINTEXT:{this.tokenizer.state=ob.PLAINTEXT;break}}}_setDocumentType(i){const a=i.name||"",c=i.publicId||"",d=i.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,c,d),i.location){const b=this.treeAdapter.getChildNodes(this.document).find(w=>this.treeAdapter.isDocumentTypeNode(w));b&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}}_attachElementToTree(i,a){if(this.options.sourceCodeLocationInfo){const c=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(i,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(i);else{const c=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(c??this.document,i)}}_appendElement(i,a){const c=this.treeAdapter.createElement(i.tagName,a,i.attrs);this._attachElementToTree(c,i.location)}_insertElement(i,a){const c=this.treeAdapter.createElement(i.tagName,a,i.attrs);this._attachElementToTree(c,i.location),this.openElements.push(c,i.tagID)}_insertFakeElement(i,a){const c=this.treeAdapter.createElement(i,jn.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,a)}_insertTemplate(i){const a=this.treeAdapter.createElement(i.tagName,jn.HTML,i.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,c),this._attachElementToTree(a,i.location),this.openElements.push(a,i.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){const i=this.treeAdapter.createElement(Pt.HTML,jn.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null),this.treeAdapter.appendChild(this.openElements.current,i),this.openElements.push(i,W.HTML)}_appendCommentNode(i,a){const c=this.treeAdapter.createCommentNode(i.data);this.treeAdapter.appendChild(a,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,i.location)}_insertCharacters(i){let a,c;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(a,i.chars,c):this.treeAdapter.insertText(a,i.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,i.chars)),!i.location)return;const d=this.treeAdapter.getChildNodes(a),g=c?d.lastIndexOf(c):d.length,b=d[g-1];if(this.treeAdapter.getNodeSourceCodeLocation(b)){const{endLine:E,endCol:S,endOffset:k}=i.location;this.treeAdapter.updateNodeSourceCodeLocation(b,{endLine:E,endCol:S,endOffset:k})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}_adoptNodes(i,a){for(let c=this.treeAdapter.getFirstChild(i);c;c=this.treeAdapter.getFirstChild(i))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(a,c)}_setEndLocation(i,a){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&a.location){const c=a.location,d=this.treeAdapter.getTagName(i),g=a.type===ha.END_TAG&&d===a.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(i,g)}}shouldProcessStartTagTokenInForeignContent(i){if(!this.currentNotInHTML)return!1;let a,c;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,c=this.fragmentContextID):{current:a,currentTagId:c}=this.openElements,i.tagID===W.SVG&&this.treeAdapter.getTagName(a)===Pt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===jn.MATHML?!1:this.tokenizer.inForeignNode||(i.tagID===W.MGLYPH||i.tagID===W.MALIGNMARK)&&c!==void 0&&!this._isIntegrationPoint(c,a,jn.HTML)}_processToken(i){switch(i.type){case ha.CHARACTER:{this.onCharacter(i);break}case ha.NULL_CHARACTER:{this.onNullCharacter(i);break}case ha.COMMENT:{this.onComment(i);break}case ha.DOCTYPE:{this.onDoctype(i);break}case ha.START_TAG:{this._processStartTag(i);break}case ha.END_TAG:{this.onEndTag(i);break}case ha.EOF:{this.onEof(i);break}case ha.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(i);break}}}_isIntegrationPoint(i,a,c){const d=this.treeAdapter.getNamespaceURI(a),g=this.treeAdapter.getAttrList(a);return aor(i,d,g,c)}_reconstructActiveFormattingElements(){const i=this.activeFormattingElements.entries.length;if(i){const a=this.activeFormattingElements.entries.findIndex(d=>d.type===I2.Marker||this.openElements.contains(d.element)),c=a===-1?i-1:a-1;for(let d=c;d>=0;d--){const g=this.activeFormattingElements.entries[d];this._insertElement(g.token,this.treeAdapter.getNamespaceURI(g.element)),g.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ut.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(W.P),this.openElements.popUntilTagNamePopped(W.P)}_resetInsertionMode(){for(let i=this.openElements.stackTop;i>=0;i--)switch(i===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[i]){case W.TR:{this.insertionMode=ut.IN_ROW;return}case W.TBODY:case W.THEAD:case W.TFOOT:{this.insertionMode=ut.IN_TABLE_BODY;return}case W.CAPTION:{this.insertionMode=ut.IN_CAPTION;return}case W.COLGROUP:{this.insertionMode=ut.IN_COLUMN_GROUP;return}case W.TABLE:{this.insertionMode=ut.IN_TABLE;return}case W.BODY:{this.insertionMode=ut.IN_BODY;return}case W.FRAMESET:{this.insertionMode=ut.IN_FRAMESET;return}case W.SELECT:{this._resetInsertionModeForSelect(i);return}case W.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case W.HTML:{this.insertionMode=this.headElement?ut.AFTER_HEAD:ut.BEFORE_HEAD;return}case W.TD:case W.TH:{if(i>0){this.insertionMode=ut.IN_CELL;return}break}case W.HEAD:{if(i>0){this.insertionMode=ut.IN_HEAD;return}break}}this.insertionMode=ut.IN_BODY}_resetInsertionModeForSelect(i){if(i>0)for(let a=i-1;a>0;a--){const c=this.openElements.tagIDs[a];if(c===W.TEMPLATE)break;if(c===W.TABLE){this.insertionMode=ut.IN_SELECT_IN_TABLE;return}}this.insertionMode=ut.IN_SELECT}_isElementCausesFosterParenting(i){return kJt.has(i)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let i=this.openElements.stackTop;i>=0;i--){const a=this.openElements.items[i];switch(this.openElements.tagIDs[i]){case W.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===jn.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case W.TABLE:{const c=this.treeAdapter.getParentNode(a);return c?{parent:c,beforeElement:a}:{parent:this.openElements.items[i-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(i){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,i,a.beforeElement):this.treeAdapter.appendChild(a.parent,i)}_isSpecialElement(i,a){const c=this.treeAdapter.getNamespaceURI(i);return Rir[c].has(a)}onCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Hsr(this,i);return}switch(this.insertionMode){case ut.INITIAL:{HU(this,i);break}case ut.BEFORE_HTML:{wH(this,i);break}case ut.BEFORE_HEAD:{yH(this,i);break}case ut.IN_HEAD:{vH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{EH(this,i);break}case ut.AFTER_HEAD:{SH(this,i);break}case ut.IN_BODY:case ut.IN_CAPTION:case ut.IN_CELL:case ut.IN_TEMPLATE:{CJt(this,i);break}case ut.TEXT:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:{this._insertCharacters(i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{jOe(this,i);break}case ut.IN_TABLE_TEXT:{MJt(this,i);break}case ut.IN_COLUMN_GROUP:{vse(this,i);break}case ut.AFTER_BODY:{Ese(this,i);break}case ut.AFTER_AFTER_BODY:{roe(this,i);break}}}onNullCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Usr(this,i);return}switch(this.insertionMode){case ut.INITIAL:{HU(this,i);break}case ut.BEFORE_HTML:{wH(this,i);break}case ut.BEFORE_HEAD:{yH(this,i);break}case ut.IN_HEAD:{vH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{EH(this,i);break}case ut.AFTER_HEAD:{SH(this,i);break}case ut.TEXT:{this._insertCharacters(i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{jOe(this,i);break}case ut.IN_COLUMN_GROUP:{vse(this,i);break}case ut.AFTER_BODY:{Ese(this,i);break}case ut.AFTER_AFTER_BODY:{roe(this,i);break}}}onComment(i){if(this.skipNextNewLine=!1,this.currentNotInHTML){JDe(this,i);return}switch(this.insertionMode){case ut.INITIAL:case ut.BEFORE_HTML:case ut.BEFORE_HEAD:case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:case ut.IN_BODY:case ut.IN_TABLE:case ut.IN_CAPTION:case ut.IN_COLUMN_GROUP:case ut.IN_TABLE_BODY:case ut.IN_ROW:case ut.IN_CELL:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:case ut.IN_TEMPLATE:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:{JDe(this,i);break}case ut.IN_TABLE_TEXT:{zU(this,i);break}case ut.AFTER_BODY:{yor(this,i);break}case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{vor(this,i);break}}}onDoctype(i){switch(this.skipNextNewLine=!1,this.insertionMode){case ut.INITIAL:{Eor(this,i);break}case ut.BEFORE_HEAD:case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:{this._err(i,sn.misplacedDoctype);break}case ut.IN_TABLE_TEXT:{zU(this,i);break}}}onStartTag(i){this.skipNextNewLine=!1,this.currentToken=i,this._processStartTag(i),i.selfClosing&&!i.ackSelfClosing&&this._err(i,sn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(i){this.shouldProcessStartTagTokenInForeignContent(i)?zsr(this,i):this._startTagOutsideForeignContent(i)}_startTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{HU(this,i);break}case ut.BEFORE_HTML:{Sor(this,i);break}case ut.BEFORE_HEAD:{Aor(this,i);break}case ut.IN_HEAD:{Hv(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{xor(this,i);break}case ut.AFTER_HEAD:{Cor(this,i);break}case ut.IN_BODY:{qp(this,i);break}case ut.IN_TABLE:{I5(this,i);break}case ut.IN_TABLE_TEXT:{zU(this,i);break}case ut.IN_CAPTION:{_sr(this,i);break}case ut.IN_COLUMN_GROUP:{J5e(this,i);break}case ut.IN_TABLE_BODY:{Jae(this,i);break}case ut.IN_ROW:{Xae(this,i);break}case ut.IN_CELL:{Nsr(this,i);break}case ut.IN_SELECT:{FJt(this,i);break}case ut.IN_SELECT_IN_TABLE:{Isr(this,i);break}case ut.IN_TEMPLATE:{Osr(this,i);break}case ut.AFTER_BODY:{Lsr(this,i);break}case ut.IN_FRAMESET:{Msr(this,i);break}case ut.AFTER_FRAMESET:{jsr(this,i);break}case ut.AFTER_AFTER_BODY:{$sr(this,i);break}case ut.AFTER_AFTER_FRAMESET:{Bsr(this,i);break}}}onEndTag(i){this.skipNextNewLine=!1,this.currentToken=i,this.currentNotInHTML?Gsr(this,i):this._endTagOutsideForeignContent(i)}_endTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{HU(this,i);break}case ut.BEFORE_HTML:{Tor(this,i);break}case ut.BEFORE_HEAD:{_or(this,i);break}case ut.IN_HEAD:{kor(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{Nor(this,i);break}case ut.AFTER_HEAD:{Ior(this,i);break}case ut.IN_BODY:{Yae(this,i);break}case ut.TEXT:{gsr(this,i);break}case ut.IN_TABLE:{cz(this,i);break}case ut.IN_TABLE_TEXT:{zU(this,i);break}case ut.IN_CAPTION:{ksr(this,i);break}case ut.IN_COLUMN_GROUP:{xsr(this,i);break}case ut.IN_TABLE_BODY:{XDe(this,i);break}case ut.IN_ROW:{jJt(this,i);break}case ut.IN_CELL:{Csr(this,i);break}case ut.IN_SELECT:{$Jt(this,i);break}case ut.IN_SELECT_IN_TABLE:{Rsr(this,i);break}case ut.IN_TEMPLATE:{Dsr(this,i);break}case ut.AFTER_BODY:{UJt(this,i);break}case ut.IN_FRAMESET:{Psr(this,i);break}case ut.AFTER_FRAMESET:{Fsr(this,i);break}case ut.AFTER_AFTER_BODY:{roe(this,i);break}}}onEof(i){switch(this.insertionMode){case ut.INITIAL:{HU(this,i);break}case ut.BEFORE_HTML:{wH(this,i);break}case ut.BEFORE_HEAD:{yH(this,i);break}case ut.IN_HEAD:{vH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{EH(this,i);break}case ut.AFTER_HEAD:{SH(this,i);break}case ut.IN_BODY:case ut.IN_TABLE:case ut.IN_CAPTION:case ut.IN_COLUMN_GROUP:case ut.IN_TABLE_BODY:case ut.IN_ROW:case ut.IN_CELL:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:{DJt(this,i);break}case ut.TEXT:{bsr(this,i);break}case ut.IN_TABLE_TEXT:{zU(this,i);break}case ut.IN_TEMPLATE:{BJt(this,i);break}case ut.AFTER_BODY:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{Y5e(this,i);break}}}onWhitespaceCharacter(i){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,i.chars.charCodeAt(0)===Fe.LINE_FEED)){if(i.chars.length===1)return;i.chars=i.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(i);return}switch(this.insertionMode){case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:case ut.TEXT:case ut.IN_COLUMN_GROUP:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:{this._insertCharacters(i);break}case ut.IN_BODY:case ut.IN_CAPTION:case ut.IN_CELL:case ut.IN_TEMPLATE:case ut.AFTER_BODY:case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{NJt(this,i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{jOe(this,i);break}case ut.IN_TABLE_TEXT:{LJt(this,i);break}}}}function hor(n,i){let a=n.activeFormattingElements.getElementEntryInScopeWithTagName(i.tagName);return a?n.openElements.contains(a.element)?n.openElements.hasInScope(i.tagID)||(a=null):(n.activeFormattingElements.removeEntry(a),a=null):OJt(n,i),a}function por(n,i){let a=null,c=n.openElements.stackTop;for(;c>=0;c--){const d=n.openElements.items[c];if(d===i.element)break;n._isSpecialElement(d,n.openElements.tagIDs[c])&&(a=d)}return a||(n.openElements.shortenToLength(Math.max(c,0)),n.activeFormattingElements.removeEntry(i)),a}function gor(n,i,a){let c=i,d=n.openElements.getCommonAncestor(i);for(let g=0,b=d;b!==a;g++,b=d){d=n.openElements.getCommonAncestor(b);const w=n.activeFormattingElements.getElementEntry(b),E=w&&g>=lor;!w||E?(E&&n.activeFormattingElements.removeEntry(w),n.openElements.remove(b)):(b=bor(n,w),c===i&&(n.activeFormattingElements.bookmark=w),n.treeAdapter.detachNode(c),n.treeAdapter.appendChild(b,c),c=b)}return c}function bor(n,i){const a=n.treeAdapter.getNamespaceURI(i.element),c=n.treeAdapter.createElement(i.token.tagName,a,i.token.attrs);return n.openElements.replace(i.element,c),i.element=c,c}function mor(n,i,a){const c=n.treeAdapter.getTagName(i),d=Wae(c);if(n._isElementCausesFosterParenting(d))n._fosterParentElement(a);else{const g=n.treeAdapter.getNamespaceURI(i);d===W.TEMPLATE&&g===jn.HTML&&(i=n.treeAdapter.getTemplateContent(i)),n.treeAdapter.appendChild(i,a)}}function wor(n,i,a){const c=n.treeAdapter.getNamespaceURI(a.element),{token:d}=a,g=n.treeAdapter.createElement(d.tagName,c,d.attrs);n._adoptNodes(i,g),n.treeAdapter.appendChild(i,g),n.activeFormattingElements.insertElementAfterBookmark(g,d),n.activeFormattingElements.removeEntry(a),n.openElements.remove(a.element),n.openElements.insertAfter(i,g,d.tagID)}function K5e(n,i){for(let a=0;a=a;c--)n._setEndLocation(n.openElements.items[c],i);if(!n.fragmentContext&&n.openElements.stackTop>=0){const c=n.openElements.items[0],d=n.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(n._setEndLocation(c,i),n.openElements.stackTop>=1)){const g=n.openElements.items[1],b=n.treeAdapter.getNodeSourceCodeLocation(g);b&&!b.endTag&&n._setEndLocation(g,i)}}}}function Eor(n,i){n._setDocumentType(i);const a=i.forceQuirks?mw.QUIRKS:Jir(i);Yir(i)||n._err(i,sn.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,a),n.insertionMode=ut.BEFORE_HTML}function HU(n,i){n._err(i,sn.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,mw.QUIRKS),n.insertionMode=ut.BEFORE_HTML,n._processToken(i)}function Sor(n,i){i.tagID===W.HTML?(n._insertElement(i,jn.HTML),n.insertionMode=ut.BEFORE_HEAD):wH(n,i)}function Tor(n,i){const a=i.tagID;(a===W.HTML||a===W.HEAD||a===W.BODY||a===W.BR)&&wH(n,i)}function wH(n,i){n._insertFakeRootElement(),n.insertionMode=ut.BEFORE_HEAD,n._processToken(i)}function Aor(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.HEAD:{n._insertElement(i,jn.HTML),n.headElement=n.openElements.current,n.insertionMode=ut.IN_HEAD;break}default:yH(n,i)}}function _or(n,i){const a=i.tagID;a===W.HEAD||a===W.BODY||a===W.HTML||a===W.BR?yH(n,i):n._err(i,sn.endTagWithoutMatchingOpenElement)}function yH(n,i){n._insertFakeElement(Pt.HEAD,W.HEAD),n.headElement=n.openElements.current,n.insertionMode=ut.IN_HEAD,n._processToken(i)}function Hv(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:{n._appendElement(i,jn.HTML),i.ackSelfClosing=!0;break}case W.TITLE:{n._switchToTextParsing(i,ob.RCDATA);break}case W.NOSCRIPT:{n.options.scriptingEnabled?n._switchToTextParsing(i,ob.RAWTEXT):(n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_HEAD_NO_SCRIPT);break}case W.NOFRAMES:case W.STYLE:{n._switchToTextParsing(i,ob.RAWTEXT);break}case W.SCRIPT:{n._switchToTextParsing(i,ob.SCRIPT_DATA);break}case W.TEMPLATE:{n._insertTemplate(i),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=ut.IN_TEMPLATE,n.tmplInsertionModeStack.unshift(ut.IN_TEMPLATE);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:vH(n,i)}}function kor(n,i){switch(i.tagID){case W.HEAD:{n.openElements.pop(),n.insertionMode=ut.AFTER_HEAD;break}case W.BODY:case W.BR:case W.HTML:{vH(n,i);break}case W.TEMPLATE:{MR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function MR(n,i){n.openElements.tmplCount>0?(n.openElements.generateImpliedEndTagsThoroughly(),n.openElements.currentTagId!==W.TEMPLATE&&n._err(i,sn.closingOfElementWithOpenChildElements),n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode()):n._err(i,sn.endTagWithoutMatchingOpenElement)}function vH(n,i){n.openElements.pop(),n.insertionMode=ut.AFTER_HEAD,n._processToken(i)}function xor(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.BASEFONT:case W.BGSOUND:case W.HEAD:case W.LINK:case W.META:case W.NOFRAMES:case W.STYLE:{Hv(n,i);break}case W.NOSCRIPT:{n._err(i,sn.nestedNoscriptInHead);break}default:EH(n,i)}}function Nor(n,i){switch(i.tagID){case W.NOSCRIPT:{n.openElements.pop(),n.insertionMode=ut.IN_HEAD;break}case W.BR:{EH(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function EH(n,i){const a=i.type===ha.EOF?sn.openElementsLeftAfterEof:sn.disallowedContentInNoscriptInHead;n._err(i,a),n.openElements.pop(),n.insertionMode=ut.IN_HEAD,n._processToken(i)}function Cor(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.BODY:{n._insertElement(i,jn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_BODY;break}case W.FRAMESET:{n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_FRAMESET;break}case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:case W.NOFRAMES:case W.SCRIPT:case W.STYLE:case W.TEMPLATE:case W.TITLE:{n._err(i,sn.abandonedHeadElementChild),n.openElements.push(n.headElement,W.HEAD),Hv(n,i),n.openElements.remove(n.headElement);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:SH(n,i)}}function Ior(n,i){switch(i.tagID){case W.BODY:case W.HTML:case W.BR:{SH(n,i);break}case W.TEMPLATE:{MR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function SH(n,i){n._insertFakeElement(Pt.BODY,W.BODY),n.insertionMode=ut.IN_BODY,Kae(n,i)}function Kae(n,i){switch(i.type){case ha.CHARACTER:{CJt(n,i);break}case ha.WHITESPACE_CHARACTER:{NJt(n,i);break}case ha.COMMENT:{JDe(n,i);break}case ha.START_TAG:{qp(n,i);break}case ha.END_TAG:{Yae(n,i);break}case ha.EOF:{DJt(n,i);break}}}function NJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i)}function CJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i),n.framesetOk=!1}function Ror(n,i){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],i.attrs)}function Oor(n,i){const a=n.openElements.tryPeekProperlyNestedBodyElement();a&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(a,i.attrs))}function Dor(n,i){const a=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&a&&(n.treeAdapter.detachNode(a),n.openElements.popAllUpToHtmlElement(),n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_FRAMESET)}function Lor(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML)}function Mor(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&YDe.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(i,jn.HTML)}function Por(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function jor(n,i){const a=n.openElements.tmplCount>0;(!n.formElement||a)&&(n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML),a||(n.formElement=n.openElements.current))}function For(n,i){n.framesetOk=!1;const a=i.tagID;for(let c=n.openElements.stackTop;c>=0;c--){const d=n.openElements.tagIDs[c];if(a===W.LI&&d===W.LI||(a===W.DD||a===W.DT)&&(d===W.DD||d===W.DT)){n.openElements.generateImpliedEndTagsWithExclusion(d),n.openElements.popUntilTagNamePopped(d);break}if(d!==W.ADDRESS&&d!==W.DIV&&d!==W.P&&n._isSpecialElement(n.openElements.items[c],d))break}n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML)}function $or(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML),n.tokenizer.state=ob.PLAINTEXT}function Bor(n,i){n.openElements.hasInScope(W.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(W.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML),n.framesetOk=!1}function Uor(n,i){const a=n.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);a&&(K5e(n,i),n.openElements.remove(a.element),n.activeFormattingElements.removeEntry(a)),n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Hor(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function zor(n,i){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(W.NOBR)&&(K5e(n,i),n._reconstructActiveFormattingElements()),n._insertElement(i,jn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Gor(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function qor(n,i){n.treeAdapter.getDocumentMode(n.document)!==mw.QUIRKS&&n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,jn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_TABLE}function IJt(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,jn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function RJt(n){const i=wJt(n,tR.TYPE);return i!=null&&i.toLowerCase()===uor}function Vor(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,jn.HTML),RJt(i)||(n.framesetOk=!1),i.ackSelfClosing=!0}function Wor(n,i){n._appendElement(i,jn.HTML),i.ackSelfClosing=!0}function Kor(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._appendElement(i,jn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function Yor(n,i){i.tagName=Pt.IMG,i.tagID=W.IMG,IJt(n,i)}function Jor(n,i){n._insertElement(i,jn.HTML),n.skipNextNewLine=!0,n.tokenizer.state=ob.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=ut.TEXT}function Xor(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function Zor(n,i){n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function t$t(n,i){n._switchToTextParsing(i,ob.RAWTEXT)}function Qor(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===ut.IN_TABLE||n.insertionMode===ut.IN_CAPTION||n.insertionMode===ut.IN_TABLE_BODY||n.insertionMode===ut.IN_ROW||n.insertionMode===ut.IN_CELL?ut.IN_SELECT_IN_TABLE:ut.IN_SELECT}function esr(n,i){n.openElements.currentTagId===W.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML)}function tsr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(i,jn.HTML)}function nsr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(W.RTC),n._insertElement(i,jn.HTML)}function rsr(n,i){n._reconstructActiveFormattingElements(),AJt(i),W5e(i),i.selfClosing?n._appendElement(i,jn.MATHML):n._insertElement(i,jn.MATHML),i.ackSelfClosing=!0}function isr(n,i){n._reconstructActiveFormattingElements(),_Jt(i),W5e(i),i.selfClosing?n._appendElement(i,jn.SVG):n._insertElement(i,jn.SVG),i.ackSelfClosing=!0}function n$t(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,jn.HTML)}function qp(n,i){switch(i.tagID){case W.I:case W.S:case W.B:case W.U:case W.EM:case W.TT:case W.BIG:case W.CODE:case W.FONT:case W.SMALL:case W.STRIKE:case W.STRONG:{Hor(n,i);break}case W.A:{Uor(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{Mor(n,i);break}case W.P:case W.DL:case W.OL:case W.UL:case W.DIV:case W.DIR:case W.NAV:case W.MAIN:case W.MENU:case W.ASIDE:case W.CENTER:case W.FIGURE:case W.FOOTER:case W.HEADER:case W.HGROUP:case W.DIALOG:case W.DETAILS:case W.ADDRESS:case W.ARTICLE:case W.SEARCH:case W.SECTION:case W.SUMMARY:case W.FIELDSET:case W.BLOCKQUOTE:case W.FIGCAPTION:{Lor(n,i);break}case W.LI:case W.DD:case W.DT:{For(n,i);break}case W.BR:case W.IMG:case W.WBR:case W.AREA:case W.EMBED:case W.KEYGEN:{IJt(n,i);break}case W.HR:{Kor(n,i);break}case W.RB:case W.RTC:{tsr(n,i);break}case W.RT:case W.RP:{nsr(n,i);break}case W.PRE:case W.LISTING:{Por(n,i);break}case W.XMP:{Xor(n,i);break}case W.SVG:{isr(n,i);break}case W.HTML:{Ror(n,i);break}case W.BASE:case W.LINK:case W.META:case W.STYLE:case W.TITLE:case W.SCRIPT:case W.BGSOUND:case W.BASEFONT:case W.TEMPLATE:{Hv(n,i);break}case W.BODY:{Oor(n,i);break}case W.FORM:{jor(n,i);break}case W.NOBR:{zor(n,i);break}case W.MATH:{rsr(n,i);break}case W.TABLE:{qor(n,i);break}case W.INPUT:{Vor(n,i);break}case W.PARAM:case W.TRACK:case W.SOURCE:{Wor(n,i);break}case W.IMAGE:{Yor(n,i);break}case W.BUTTON:{Bor(n,i);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{Gor(n,i);break}case W.IFRAME:{Zor(n,i);break}case W.SELECT:{Qor(n,i);break}case W.OPTION:case W.OPTGROUP:{esr(n,i);break}case W.NOEMBED:case W.NOFRAMES:{t$t(n,i);break}case W.FRAMESET:{Dor(n,i);break}case W.TEXTAREA:{Jor(n,i);break}case W.NOSCRIPT:{n.options.scriptingEnabled?t$t(n,i):n$t(n,i);break}case W.PLAINTEXT:{$or(n,i);break}case W.COL:case W.TH:case W.TD:case W.TR:case W.HEAD:case W.FRAME:case W.TBODY:case W.TFOOT:case W.THEAD:case W.CAPTION:case W.COLGROUP:break;default:n$t(n,i)}}function osr(n,i){if(n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,n.options.sourceCodeLocationInfo)){const a=n.openElements.tryPeekProperlyNestedBodyElement();a&&n._setEndLocation(a,i)}}function ssr(n,i){n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,UJt(n,i))}function asr(n,i){const a=i.tagID;n.openElements.hasInScope(a)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(a))}function usr(n){const i=n.openElements.tmplCount>0,{formElement:a}=n;i||(n.formElement=null),(a||i)&&n.openElements.hasInScope(W.FORM)&&(n.openElements.generateImpliedEndTags(),i?n.openElements.popUntilTagNamePopped(W.FORM):a&&n.openElements.remove(a))}function csr(n){n.openElements.hasInButtonScope(W.P)||n._insertFakeElement(Pt.P,W.P),n._closePElement()}function lsr(n){n.openElements.hasInListItemScope(W.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(W.LI),n.openElements.popUntilTagNamePopped(W.LI))}function dsr(n,i){const a=i.tagID;n.openElements.hasInScope(a)&&(n.openElements.generateImpliedEndTagsWithExclusion(a),n.openElements.popUntilTagNamePopped(a))}function fsr(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function hsr(n,i){const a=i.tagID;n.openElements.hasInScope(a)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(a),n.activeFormattingElements.clearToLastMarker())}function psr(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(Pt.BR,W.BR),n.openElements.pop(),n.framesetOk=!1}function OJt(n,i){const a=i.tagName,c=i.tagID;for(let d=n.openElements.stackTop;d>0;d--){const g=n.openElements.items[d],b=n.openElements.tagIDs[d];if(c===b&&(c!==W.UNKNOWN||n.treeAdapter.getTagName(g)===a)){n.openElements.generateImpliedEndTagsWithExclusion(c),n.openElements.stackTop>=d&&n.openElements.shortenToLength(d);break}if(n._isSpecialElement(g,b))break}}function Yae(n,i){switch(i.tagID){case W.A:case W.B:case W.I:case W.S:case W.U:case W.EM:case W.TT:case W.BIG:case W.CODE:case W.FONT:case W.NOBR:case W.SMALL:case W.STRIKE:case W.STRONG:{K5e(n,i);break}case W.P:{csr(n);break}case W.DL:case W.UL:case W.OL:case W.DIR:case W.DIV:case W.NAV:case W.PRE:case W.MAIN:case W.MENU:case W.ASIDE:case W.BUTTON:case W.CENTER:case W.FIGURE:case W.FOOTER:case W.HEADER:case W.HGROUP:case W.DIALOG:case W.ADDRESS:case W.ARTICLE:case W.DETAILS:case W.SEARCH:case W.SECTION:case W.SUMMARY:case W.LISTING:case W.FIELDSET:case W.BLOCKQUOTE:case W.FIGCAPTION:{asr(n,i);break}case W.LI:{lsr(n);break}case W.DD:case W.DT:{dsr(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{fsr(n);break}case W.BR:{psr(n);break}case W.BODY:{osr(n,i);break}case W.HTML:{ssr(n,i);break}case W.FORM:{usr(n);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{hsr(n,i);break}case W.TEMPLATE:{MR(n,i);break}default:OJt(n,i)}}function DJt(n,i){n.tmplInsertionModeStack.length>0?BJt(n,i):Y5e(n,i)}function gsr(n,i){var a;i.tagID===W.SCRIPT&&((a=n.scriptHandler)===null||a===void 0||a.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function bsr(n,i){n._err(i,sn.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(i)}function jOe(n,i){if(n.openElements.currentTagId!==void 0&&kJt.has(n.openElements.currentTagId))switch(n.pendingCharacterTokens.length=0,n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=ut.IN_TABLE_TEXT,i.type){case ha.CHARACTER:{MJt(n,i);break}case ha.WHITESPACE_CHARACTER:{LJt(n,i);break}}else Bz(n,i)}function msr(n,i){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_CAPTION}function wsr(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_COLUMN_GROUP}function ysr(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.COLGROUP,W.COLGROUP),n.insertionMode=ut.IN_COLUMN_GROUP,J5e(n,i)}function vsr(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,jn.HTML),n.insertionMode=ut.IN_TABLE_BODY}function Esr(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.TBODY,W.TBODY),n.insertionMode=ut.IN_TABLE_BODY,Jae(n,i)}function Ssr(n,i){n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode(),n._processStartTag(i))}function Tsr(n,i){RJt(i)?n._appendElement(i,jn.HTML):Bz(n,i),i.ackSelfClosing=!0}function Asr(n,i){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(i,jn.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function I5(n,i){switch(i.tagID){case W.TD:case W.TH:case W.TR:{Esr(n,i);break}case W.STYLE:case W.SCRIPT:case W.TEMPLATE:{Hv(n,i);break}case W.COL:{ysr(n,i);break}case W.FORM:{Asr(n,i);break}case W.TABLE:{Ssr(n,i);break}case W.TBODY:case W.TFOOT:case W.THEAD:{vsr(n,i);break}case W.INPUT:{Tsr(n,i);break}case W.CAPTION:{msr(n,i);break}case W.COLGROUP:{wsr(n,i);break}default:Bz(n,i)}}function cz(n,i){switch(i.tagID){case W.TABLE:{n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode());break}case W.TEMPLATE:{MR(n,i);break}case W.BODY:case W.CAPTION:case W.COL:case W.COLGROUP:case W.HTML:case W.TBODY:case W.TD:case W.TFOOT:case W.TH:case W.THEAD:case W.TR:break;default:Bz(n,i)}}function Bz(n,i){const a=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,Kae(n,i),n.fosterParentingEnabled=a}function LJt(n,i){n.pendingCharacterTokens.push(i)}function MJt(n,i){n.pendingCharacterTokens.push(i),n.hasNonWhitespacePendingCharacterToken=!0}function zU(n,i){let a=0;if(n.hasNonWhitespacePendingCharacterToken)for(;a0&&n.openElements.currentTagId===W.OPTION&&n.openElements.tagIDs[n.openElements.stackTop-1]===W.OPTGROUP&&n.openElements.pop(),n.openElements.currentTagId===W.OPTGROUP&&n.openElements.pop();break}case W.OPTION:{n.openElements.currentTagId===W.OPTION&&n.openElements.pop();break}case W.SELECT:{n.openElements.hasInSelectScope(W.SELECT)&&(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode());break}case W.TEMPLATE:{MR(n,i);break}}}function Isr(n,i){const a=i.tagID;a===W.CAPTION||a===W.TABLE||a===W.TBODY||a===W.TFOOT||a===W.THEAD||a===W.TR||a===W.TD||a===W.TH?(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n._processStartTag(i)):FJt(n,i)}function Rsr(n,i){const a=i.tagID;a===W.CAPTION||a===W.TABLE||a===W.TBODY||a===W.TFOOT||a===W.THEAD||a===W.TR||a===W.TD||a===W.TH?n.openElements.hasInTableScope(a)&&(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n.onEndTag(i)):$Jt(n,i)}function Osr(n,i){switch(i.tagID){case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:case W.NOFRAMES:case W.SCRIPT:case W.STYLE:case W.TEMPLATE:case W.TITLE:{Hv(n,i);break}case W.CAPTION:case W.COLGROUP:case W.TBODY:case W.TFOOT:case W.THEAD:{n.tmplInsertionModeStack[0]=ut.IN_TABLE,n.insertionMode=ut.IN_TABLE,I5(n,i);break}case W.COL:{n.tmplInsertionModeStack[0]=ut.IN_COLUMN_GROUP,n.insertionMode=ut.IN_COLUMN_GROUP,J5e(n,i);break}case W.TR:{n.tmplInsertionModeStack[0]=ut.IN_TABLE_BODY,n.insertionMode=ut.IN_TABLE_BODY,Jae(n,i);break}case W.TD:case W.TH:{n.tmplInsertionModeStack[0]=ut.IN_ROW,n.insertionMode=ut.IN_ROW,Xae(n,i);break}default:n.tmplInsertionModeStack[0]=ut.IN_BODY,n.insertionMode=ut.IN_BODY,qp(n,i)}}function Dsr(n,i){i.tagID===W.TEMPLATE&&MR(n,i)}function BJt(n,i){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(i)):Y5e(n,i)}function Lsr(n,i){i.tagID===W.HTML?qp(n,i):Ese(n,i)}function UJt(n,i){var a;if(i.tagID===W.HTML){if(n.fragmentContext||(n.insertionMode=ut.AFTER_AFTER_BODY),n.options.sourceCodeLocationInfo&&n.openElements.tagIDs[0]===W.HTML){n._setEndLocation(n.openElements.items[0],i);const c=n.openElements.items[1];c&&!(!((a=n.treeAdapter.getNodeSourceCodeLocation(c))===null||a===void 0)&&a.endTag)&&n._setEndLocation(c,i)}}else Ese(n,i)}function Ese(n,i){n.insertionMode=ut.IN_BODY,Kae(n,i)}function Msr(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.FRAMESET:{n._insertElement(i,jn.HTML);break}case W.FRAME:{n._appendElement(i,jn.HTML),i.ackSelfClosing=!0;break}case W.NOFRAMES:{Hv(n,i);break}}}function Psr(n,i){i.tagID===W.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagId!==W.FRAMESET&&(n.insertionMode=ut.AFTER_FRAMESET))}function jsr(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function Fsr(n,i){i.tagID===W.HTML&&(n.insertionMode=ut.AFTER_AFTER_FRAMESET)}function $sr(n,i){i.tagID===W.HTML?qp(n,i):roe(n,i)}function roe(n,i){n.insertionMode=ut.IN_BODY,Kae(n,i)}function Bsr(n,i){switch(i.tagID){case W.HTML:{qp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function Usr(n,i){i.chars=Oc,n._insertCharacters(i)}function Hsr(n,i){n._insertCharacters(i),n.framesetOk=!1}function HJt(n){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==jn.HTML&&n.openElements.currentTagId!==void 0&&!n._isIntegrationPoint(n.openElements.currentTagId,n.openElements.current);)n.openElements.pop()}function zsr(n,i){if(ror(i))HJt(n),n._startTagOutsideForeignContent(i);else{const a=n._getAdjustedCurrentElement(),c=n.treeAdapter.getNamespaceURI(a);c===jn.MATHML?AJt(i):c===jn.SVG&&(ior(i),_Jt(i)),W5e(i),i.selfClosing?n._appendElement(i,c):n._insertElement(i,c),i.ackSelfClosing=!0}}function Gsr(n,i){if(i.tagID===W.P||i.tagID===W.BR){HJt(n),n._endTagOutsideForeignContent(i);return}for(let a=n.openElements.stackTop;a>0;a--){const c=n.openElements.items[a];if(n.treeAdapter.getNamespaceURI(c)===jn.HTML){n._endTagOutsideForeignContent(i);break}const d=n.treeAdapter.getTagName(c);if(d.toLowerCase()===i.tagName){i.tagName=d,n.openElements.shortenToLength(a);break}}}Pt.AREA,Pt.BASE,Pt.BASEFONT,Pt.BGSOUND,Pt.BR,Pt.COL,Pt.EMBED,Pt.FRAME,Pt.HR,Pt.IMG,Pt.INPUT,Pt.KEYGEN,Pt.LINK,Pt.META,Pt.PARAM,Pt.SOURCE,Pt.TRACK,Pt.WBR;function qsr(n,i){return xJt.parse(n,i)}function Vsr(n,i,a){typeof n=="string"&&(a=i,i=n,n=null);const c=xJt.getFragmentParser(n,a);return c.tokenizer.write(i,!0),c.getFragment()}function Wsr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?r$t(n.position):"start"in n||"end"in n?r$t(n):"line"in n||"column"in n?ZDe(n):""}function ZDe(n){return i$t(n&&n.line)+":"+i$t(n&&n.column)}function r$t(n){return ZDe(n&&n.start)+"-"+ZDe(n&&n.end)}function i$t(n){return n&&typeof n=="number"?n:1}class Kg extends Error{constructor(i,a,c){super(),typeof a=="string"&&(c=a,a=void 0);let d="",g={},b=!1;if(a&&("line"in a&&"column"in a?g={place:a}:"start"in a&&"end"in a?g={place:a}:"type"in a?g={ancestors:[a],place:a.position}:g={...a}),typeof i=="string"?d=i:!g.cause&&i&&(b=!0,d=i.message,g.cause=i),!g.ruleId&&!g.source&&typeof c=="string"){const E=c.indexOf(":");E===-1?g.ruleId=c:(g.source=c.slice(0,E),g.ruleId=c.slice(E+1))}if(!g.place&&g.ancestors&&g.ancestors){const E=g.ancestors[g.ancestors.length-1];E&&(g.place=E.position)}const w=g.place&&"start"in g.place?g.place.start:g.place;this.ancestors=g.ancestors||void 0,this.cause=g.cause||void 0,this.column=w?w.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=w?w.line:void 0,this.name=Wsr(g.place)||"1:1",this.place=g.place||void 0,this.reason=this.message,this.ruleId=g.ruleId||void 0,this.source=g.source||void 0,this.stack=b&&g.cause&&typeof g.cause.stack=="string"?g.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kg.prototype.file="";Kg.prototype.name="";Kg.prototype.reason="";Kg.prototype.message="";Kg.prototype.stack="";Kg.prototype.column=void 0;Kg.prototype.line=void 0;Kg.prototype.ancestors=void 0;Kg.prototype.cause=void 0;Kg.prototype.fatal=void 0;Kg.prototype.place=void 0;Kg.prototype.ruleId=void 0;Kg.prototype.source=void 0;const x2={basename:Ksr,dirname:Ysr,extname:Jsr,join:Xsr,sep:"/"};function Ksr(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Uz(n);let a=0,c=-1,d=n.length,g;if(i===void 0||i.length===0||i.length>n.length){for(;d--;)if(n.codePointAt(d)===47){if(g){a=d+1;break}}else c<0&&(g=!0,c=d+1);return c<0?"":n.slice(a,c)}if(i===n)return"";let b=-1,w=i.length-1;for(;d--;)if(n.codePointAt(d)===47){if(g){a=d+1;break}}else b<0&&(g=!0,b=d+1),w>-1&&(n.codePointAt(d)===i.codePointAt(w--)?w<0&&(c=d):(w=-1,c=b));return a===c?c=b:c<0&&(c=n.length),n.slice(a,c)}function Ysr(n){if(Uz(n),n.length===0)return".";let i=-1,a=n.length,c;for(;--a;)if(n.codePointAt(a)===47){if(c){i=a;break}}else c||(c=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function Jsr(n){Uz(n);let i=n.length,a=-1,c=0,d=-1,g=0,b;for(;i--;){const w=n.codePointAt(i);if(w===47){if(b){c=i+1;break}continue}a<0&&(b=!0,a=i+1),w===46?d<0?d=i:g!==1&&(g=1):d>-1&&(g=-1)}return d<0||a<0||g===0||g===1&&d===a-1&&d===c+1?"":n.slice(d,a)}function Xsr(...n){let i=-1,a;for(;++i0&&n.codePointAt(n.length-1)===47&&(a+="/"),i?"/"+a:a}function Qsr(n,i){let a="",c=0,d=-1,g=0,b=-1,w,E;for(;++b<=n.length;){if(b2){if(E=a.lastIndexOf("/"),E!==a.length-1){E<0?(a="",c=0):(a=a.slice(0,E),c=a.length-1-a.lastIndexOf("/")),d=b,g=0;continue}}else if(a.length>0){a="",c=0,d=b,g=0;continue}}i&&(a=a.length>0?a+"/..":"..",c=2)}else a.length>0?a+="/"+n.slice(d+1,b):a=n.slice(d+1,b),c=b-d-1;d=b,g=0}else w===46&&g>-1?g++:g=-1}return a}function Uz(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const ear={cwd:tar};function tar(){return"/"}function QDe(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function nar(n){if(typeof n=="string")n=new URL(n);else if(!QDe(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return rar(n)}function rar(n){if(n.hostname!==""){const c=new TypeError('File URL host must be "localhost" or empty on darwin');throw c.code="ERR_INVALID_FILE_URL_HOST",c}const i=n.pathname;let a=-1;for(;++a`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `