From 94e9f32a43674e7f2725880b54580f1283886072 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Tue, 22 Sep 2026 20:21:39 +0000 Subject: [PATCH] 148 files --- .storage/lovelace_resources | 4 +- custom_components/cafe/brand/README.md | 27 + custom_components/cafe/manifest.json | 2 +- .../cafe/www/assets/main-B-MXbKCR.js | 573 --- .../cafe/www/assets/main-CCZArAkW.js | 593 +++ .../maintenance_supporter/__init__.py | 11 + .../maintenance_supporter/calendar.py | 5 + .../config_flow_helpers.py | 22 +- .../config_flow_options_task_crud.py | 21 + .../maintenance_supporter/const.py | 4 + .../maintenance_supporter/coordinator.py | 30 + .../maintenance_supporter/export.py | 2 + .../adopt-problem-sensors-dialog.ts | 63 +- .../frontend-src/components/task-dialog.ts | 68 +- .../frontend-src/locales/cs.json | 15 + .../frontend-src/locales/da.json | 15 + .../frontend-src/locales/de.json | 15 + .../frontend-src/locales/en.json | 15 + .../frontend-src/locales/es.json | 15 + .../frontend-src/locales/fi.json | 15 + .../frontend-src/locales/fr.json | 15 + .../frontend-src/locales/hi.json | 15 + .../frontend-src/locales/hu.json | 15 + .../frontend-src/locales/it.json | 15 + .../frontend-src/locales/ja.json | 15 + .../frontend-src/locales/ko.json | 15 + .../frontend-src/locales/nb.json | 15 + .../frontend-src/locales/nl.json | 15 + .../frontend-src/locales/pl.json | 15 + .../frontend-src/locales/pt-br.json | 15 + .../frontend-src/locales/pt.json | 15 + .../frontend-src/locales/ru.json | 15 + .../frontend-src/locales/sv.json | 15 + .../frontend-src/locales/tr.json | 15 + .../frontend-src/locales/uk.json | 15 + .../frontend-src/locales/zh.json | 15 + .../frontend-src/maintenance-panel.ts | 158 +- .../frontend-src/panel-styles.ts | 1 + .../frontend-src/styles.ts | 18 +- .../frontend-src/types.ts | 13 +- .../frontend-src/ws-errors.ts | 1 + .../frontend/locales/cs.json | 15 + .../frontend/locales/da.json | 15 + .../frontend/locales/de.json | 15 + .../frontend/locales/en.json | 15 + .../frontend/locales/es.json | 15 + .../frontend/locales/fi.json | 15 + .../frontend/locales/fr.json | 15 + .../frontend/locales/hi.json | 15 + .../frontend/locales/hu.json | 15 + .../frontend/locales/it.json | 15 + .../frontend/locales/ja.json | 15 + .../frontend/locales/ko.json | 15 + .../frontend/locales/nb.json | 15 + .../frontend/locales/nl.json | 15 + .../frontend/locales/pl.json | 15 + .../frontend/locales/pt-br.json | 15 + .../frontend/locales/pt.json | 15 + .../frontend/locales/ru.json | 15 + .../frontend/locales/sv.json | 15 + .../frontend/locales/tr.json | 15 + .../frontend/locales/uk.json | 15 + .../frontend/locales/zh.json | 15 + .../frontend/maintenance-calendar-card.js | 319 +- .../frontend/maintenance-card.js | 569 +-- .../frontend/maintenance-panel.js | 1133 +++--- .../frontend/maintenance-strategy-shim.js | 4 +- .../adopt-problem-sensors-dialog-YOSPIPSF.js | 271 ++ .../frontend/panel-chunks/chunk-2IGVBRZV.js | 153 + .../frontend/panel-chunks/chunk-2PKU3QXM.js | 88 + .../frontend/panel-chunks/chunk-5XRT3AM7.js | 2 + .../frontend/panel-chunks/chunk-73EHFI76.js | 2 + .../frontend/panel-chunks/chunk-C7OGYVZI.js | 2 + .../frontend/panel-chunks/chunk-EH52ZZY4.js | 79 + .../frontend/panel-chunks/chunk-ENPF2LDM.js | 2 + .../frontend/panel-chunks/chunk-FLCA3VKG.js | 213 ++ .../frontend/panel-chunks/chunk-PDDZINC4.js | 452 +++ .../frontend/panel-chunks/chunk-QOKIQTSS.js | 2 + .../frontend/panel-chunks/chunk-RAW6RFRE.js | 1299 +++++++ .../frontend/panel-chunks/chunk-WQXORDNI.js | 2 + .../frontend/panel-chunks/chunk-XB4BHMUS.js | 2 + .../frontend/panel-chunks/chunk-ZJPHP3YU.js | 1460 ++++++++ .../frontend/panel-chunks/chunk-ZMV2VB57.js | 937 +++++ .../panel-chunks/complete-dialog-4RUZZVM3.js | 2 + .../panel-chunks/dialog-mount-UGGXUPH3.js | 2 + .../panel-chunks/object-dialog-GD4U5DIY.js | 2 + .../panel-chunks/qr-dialog-ZQG2O72E.js | 2 + .../panel-chunks/settings-view-PU2VMIUH.js | 1371 +++++++ .../suggested-setups-dialog-JCV6DSEW.js | 146 + .../panel-chunks/task-dialog-AOPRQNRI.js | 2 + .../chunks/budget-section-card-7UXAZ46X.js | 125 + .../strategy/chunks/chunk-BR3YZILG.js | 2 + .../strategy/chunks/chunk-MSGNUEIB.js | 60 + .../strategy/chunks/chunk-PUCXXZSB.js | 2 + .../strategy/chunks/chunk-R3EVJQWN.js | 88 + .../strategy/chunks/chunk-UI7IMFM7.js | 1299 +++++++ .../strategy/chunks/dialog-mount-WHFRELKY.js | 3265 +++++++++++++++++ .../chunks/groups-section-card-6ZQ3HTXV.js | 137 + .../chunks/vacation-section-card-OWLMOYJJ.js | 134 + .../maintenance-dashboard-strategy.js | 6 +- .../helpers/battery_fleet.py | 46 +- .../helpers/battery_fleet_setup.py | 5 + .../maintenance_supporter/helpers/sanitize.py | 3 + .../maintenance_supporter/helpers/schedule.py | 109 +- .../maintenance_supporter/helpers/vacation.py | 14 +- .../maintenance_supporter/manifest.json | 2 +- .../maintenance_supporter/strings.json | 8 + .../translations/cs.json | 8 + .../translations/da.json | 8 + .../translations/de.json | 8 + .../translations/en.json | 8 + .../translations/es.json | 8 + .../translations/fi.json | 8 + .../translations/fr.json | 8 + .../translations/hi.json | 8 + .../translations/hu.json | 8 + .../translations/it.json | 8 + .../translations/ja.json | 8 + .../translations/ko.json | 8 + .../translations/nb.json | 8 + .../translations/nl.json | 8 + .../translations/pl.json | 8 + .../translations/pt-BR.json | 8 + .../translations/pt.json | 8 + .../translations/ru.json | 8 + .../translations/sv.json | 8 + .../translations/tr.json | 8 + .../translations/uk.json | 8 + .../translations/zh-Hans.json | 8 + .../websocket/__init__.py | 11 +- .../websocket/dashboard.py | 8 +- .../maintenance_supporter/websocket/io.py | 13 + .../websocket/problem_sensors.py | 14 + .../websocket/tasks_crud.py | 46 + custom_components/powercalc/config_flow.py | 2 +- .../powercalc/flow_helper/flows/group.py | 3 +- custom_components/powercalc/manifest.json | 2 +- .../powercalc/power_profile/library.py | 3 + .../powercalc/power_profile/loader/remote.py | 226 +- .../powercalc/strategy/composite.py | 26 +- .../powercalc/strategy/factory.py | 10 +- www/community/lovelace-wallpanel/wallpanel.js | 2 +- .../lovelace-wallpanel/wallpanel.js.gz | Bin 70218 -> 70384 bytes .../simple-thermostat.debug.js | 510 ++- .../simple-thermostat.debug.js.gz | Bin 66965 -> 69206 bytes .../simple-thermostat/simple-thermostat.js | 332 +- .../simple-thermostat/simple-thermostat.js.gz | Bin 53144 -> 54580 bytes zigbee2mqtt/state.json | 58 +- 148 files changed, 15528 insertions(+), 2013 deletions(-) create mode 100644 custom_components/cafe/brand/README.md delete mode 100644 custom_components/cafe/www/assets/main-B-MXbKCR.js create mode 100644 custom_components/cafe/www/assets/main-CCZArAkW.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/adopt-problem-sensors-dialog-YOSPIPSF.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-2IGVBRZV.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-2PKU3QXM.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-5XRT3AM7.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-73EHFI76.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-C7OGYVZI.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-EH52ZZY4.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-ENPF2LDM.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-FLCA3VKG.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-PDDZINC4.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-QOKIQTSS.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-RAW6RFRE.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-WQXORDNI.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-XB4BHMUS.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-ZJPHP3YU.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/chunk-ZMV2VB57.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/complete-dialog-4RUZZVM3.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/dialog-mount-UGGXUPH3.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/object-dialog-GD4U5DIY.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/qr-dialog-ZQG2O72E.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/settings-view-PU2VMIUH.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/suggested-setups-dialog-JCV6DSEW.js create mode 100644 custom_components/maintenance_supporter/frontend/panel-chunks/task-dialog-AOPRQNRI.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/budget-section-card-7UXAZ46X.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/chunk-BR3YZILG.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/chunk-MSGNUEIB.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/chunk-PUCXXZSB.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/chunk-R3EVJQWN.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/chunk-UI7IMFM7.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/dialog-mount-WHFRELKY.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/groups-section-card-6ZQ3HTXV.js create mode 100644 custom_components/maintenance_supporter/frontend/strategy/chunks/vacation-section-card-OWLMOYJJ.js diff --git a/.storage/lovelace_resources b/.storage/lovelace_resources index 9baaec55..e990d669 100644 --- a/.storage/lovelace_resources +++ b/.storage/lovelace_resources @@ -206,7 +206,7 @@ }, { "id": "d3c3e144a91247ce8ac524814737d7f8", - "url": "/hacsfiles/lovelace-wallpanel/wallpanel.js?hacstag=3095064164670", + "url": "/hacsfiles/lovelace-wallpanel/wallpanel.js?hacstag=3095064164671", "type": "module" }, { @@ -261,7 +261,7 @@ }, { "id": "6c3f7d87683d4473b5dc8fe8177535f6", - "url": "/hacsfiles/simple-thermostat/simple-thermostat.js?hacstag=1230152807440", + "url": "/hacsfiles/simple-thermostat/simple-thermostat.js?hacstag=1230152807450", "type": "module" }, { diff --git a/custom_components/cafe/brand/README.md b/custom_components/cafe/brand/README.md new file mode 100644 index 00000000..a62781bc --- /dev/null +++ b/custom_components/cafe/brand/README.md @@ -0,0 +1,27 @@ +# Brand assets + +Home Assistant serves these. Since **2026.3** a custom integration ships its own brand images in a `brand/` folder inside the integration, and HA exposes them at `/api/brands/integration/cafe/`, taking priority over the brands CDN. The central [home-assistant/brands](https://github.com/home-assistant/brands) repository no longer accepts custom integrations, so there is nothing to submit anywhere — the files here are the whole story. See the [Brands Proxy API announcement](https://developers.home-assistant.io/blog/2026/02/24/brands-proxy-api/). + +On Home Assistant older than 2026.3 the integration shows the generic puzzle-piece icon. Nothing breaks. + +| File | Size | Used for | +| --- | --- | --- | +| `icon.png` | 256×256 | The integration tile, the device page, the "add integration" list | +| `icon@2x.png` | 512×512 | The same, on a retina display | +| `logo.png` | ≤256 tall | The wordmark, shown in the config flow header | +| `logo@2x.png` | ≤512 tall | The same, on a retina display | +| `dark_logo.png` / `dark_logo@2x.png` | as above | The logo on a dark theme | + +The icon's tile is self-contained — a roast-brown squircle with the bean on it — so it reads the same on light and dark themes and there is no `dark_icon.png` to keep in sync. The logo is a bare glyph and a wordmark with no background of their own, which is exactly why the dark variant exists. + +The wordmark is drawn by the generator rather than set in a typeface, so there are no glyph outlines in here that someone else owns and no font to install before regenerating. + +## Regenerating + +Every SVG in here is generated, not hand-edited. Change `tools/make_icon.py` and re-run it; it writes all three, renders the PNGs beside them, and copies the icon to `packages/frontend/public/icon.svg`, which is the panel's favicon. + +```sh +python3 tools/make_icon.py +``` + +Needs `rsvg-convert` (`brew install librsvg`). Use it rather than Chromium or Inkscape — librsvg is what Home Assistant's own tooling uses, and the three disagree about filters. diff --git a/custom_components/cafe/manifest.json b/custom_components/cafe/manifest.json index 43dc0c7b..d0378f70 100644 --- a/custom_components/cafe/manifest.json +++ b/custom_components/cafe/manifest.json @@ -1,7 +1,7 @@ { "domain": "cafe", "name": "C.A.F.E.", - "version": "0.9.0", + "version": "0.10.0", "codeowners": [], "config_flow": true, "dependencies": ["frontend", "http"], diff --git a/custom_components/cafe/www/assets/main-B-MXbKCR.js b/custom_components/cafe/www/assets/main-B-MXbKCR.js deleted file mode 100644 index b0cbcf44..00000000 --- a/custom_components/cafe/www/assets/main-B-MXbKCR.js +++ /dev/null @@ -1,573 +0,0 @@ -var wCn=Object.defineProperty;var yCn=(n,i,s)=>i in n?wCn(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Zf=(n,i,s)=>yCn(n,typeof i!="symbol"?i+"":i,s);function vCn(n,i){for(var s=0;su[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"]'))u(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"&&u(b)}).observe(document,{childList:!0,subtree:!0});function s(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 u(d){if(d.ep)return;d.ep=!0;const g=s(d);fetch(d.href,g)}})();var C5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Q$t={exports:{}},Nse={},eBt={exports:{}},Os={};/** - * @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 bz=Symbol.for("react.element"),ECn=Symbol.for("react.portal"),SCn=Symbol.for("react.fragment"),TCn=Symbol.for("react.strict_mode"),ACn=Symbol.for("react.profiler"),_Cn=Symbol.for("react.provider"),xCn=Symbol.for("react.context"),kCn=Symbol.for("react.forward_ref"),NCn=Symbol.for("react.suspense"),CCn=Symbol.for("react.memo"),ICn=Symbol.for("react.lazy"),YDt=Symbol.iterator;function RCn(n){return n===null||typeof n!="object"?null:(n=YDt&&n[YDt]||n["@@iterator"],typeof n=="function"?n:null)}var tBt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nBt=Object.assign,rBt={};function LM(n,i,s){this.props=n,this.context=i,this.refs=rBt,this.updater=s||tBt}LM.prototype.isReactComponent={};LM.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")};LM.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function iBt(){}iBt.prototype=LM.prototype;function xDe(n,i,s){this.props=n,this.context=i,this.refs=rBt,this.updater=s||tBt}var kDe=xDe.prototype=new iBt;kDe.constructor=xDe;nBt(kDe,LM.prototype);kDe.isPureReactComponent=!0;var JDt=Array.isArray,oBt=Object.prototype.hasOwnProperty,NDe={current:null},sBt={key:!0,ref:!0,__self:!0,__source:!0};function aBt(n,i,s){var u,d={},g=null,b=null;if(i!=null)for(u in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)oBt.call(i,u)&&!sBt.hasOwnProperty(u)&&(d[u]=i[u]);var w=arguments.length-2;if(w===1)d.children=s;else if(1>>1,Ue=Ae[dt];if(0>>1;dtd(ht,We))Xtd(vt,ht)?(Ae[dt]=vt,Ae[Xt]=We,dt=Xt):(Ae[dt]=ht,Ae[kt]=We,dt=kt);else if(Xtd(vt,We))Ae[dt]=vt,Ae[Xt]=We,dt=Xt;else break e}}return xe}function d(Ae,xe){var We=Ae.sortIndex-xe.sortIndex;return We!==0?We:Ae.id-xe.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=[],x=1,A=null,C=3,R=!1,D=!1,L=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=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(Ae){for(var xe=s(S);xe!==null;){if(xe.callback===null)u(S);else if(xe.startTime<=Ae)u(S),xe.sortIndex=xe.expirationTime,i(E,xe);else break;xe=s(S)}}function G(Ae){if(L=!1,P(Ae),!D)if(s(E)!==null)D=!0,Se(ee);else{var xe=s(S);xe!==null&&De(G,xe.startTime-Ae)}}function ee(Ae,xe){D=!1,L&&(L=!1,$(ie),ie=-1),R=!0;var We=C;try{for(P(xe),A=s(E);A!==null&&(!(A.expirationTime>xe)||Ae&&!ce());){var dt=A.callback;if(typeof dt=="function"){A.callback=null,C=A.priorityLevel;var Ue=dt(A.expirationTime<=xe);xe=n.unstable_now(),typeof Ue=="function"?A.callback=Ue:A===s(E)&&u(E),P(xe)}else u(E);A=s(E)}if(A!==null)var bt=!0;else{var kt=s(S);kt!==null&&De(G,kt.startTime-xe),bt=!1}return bt}finally{A=null,C=We,R=!1}}var ne=!1,Q=null,ie=-1,he=5,ge=-1;function ce(){return!(n.unstable_now()-geAe||125dt?(Ae.sortIndex=We,i(S,Ae),s(E)===null&&Ae===s(S)&&(L?($(ie),ie=-1):L=!0,De(G,We-dt))):(Ae.sortIndex=Ue,i(E,Ae),D||R||(D=!0,Se(ee))),Ae},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(Ae){var xe=C;return function(){var We=C;C=xe;try{return Ae.apply(this,arguments)}finally{C=We}}}})(fBt);dBt.exports=fBt;var HCn=dBt.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 zCn=H,Hm=HCn;function ir(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c6e=Object.prototype.hasOwnProperty,GCn=/^[: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]*$/,ZDt={},QDt={};function qCn(n){return c6e.call(QDt,n)?!0:c6e.call(ZDt,n)?!1:GCn.test(n)?QDt[n]=!0:(ZDt[n]=!0,!1)}function VCn(n,i,s,u){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function WCn(n,i,s,u){if(i===null||typeof i>"u"||VCn(n,i,s,u))return!0;if(u)return!1;if(s!==null)switch(s.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,s,u,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var Uh={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Uh[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];Uh[i]=new Vg(i,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Uh[n]=new Vg(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Uh[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){Uh[n]=new Vg(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Uh[n]=new Vg(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Uh[n]=new Vg(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Uh[n]=new Vg(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Uh[n]=new Vg(n,5,!1,n.toLowerCase(),null,!1,!1)});var RDe=/[\-:]([a-z])/g;function ODe(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(RDe,ODe);Uh[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(RDe,ODe);Uh[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(RDe,ODe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!1,!1)});Uh.xlinkHref=new Vg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!0,!0)});function LDe(n,i,s,u){var d=Uh.hasOwnProperty(i)?Uh[i]:null;(d!==null?d.type!==0:u||!(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{cCe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?VU(n):""}function KCn(n){switch(n.tag){case 5:return VU(n.type);case 16:return VU("Lazy");case 13:return VU("Suspense");case 19:return VU("SuspenseList");case 0:case 2:case 15:return n=lCe(n.type,!1),n;case 11:return n=lCe(n.type.render,!1),n;case 1:return n=lCe(n.type,!0),n;default:return""}}function h6e(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 R5:return"Fragment";case I5:return"Portal";case l6e:return"Profiler";case DDe:return"StrictMode";case d6e:return"Suspense";case f6e:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gBt:return(n.displayName||"Context")+".Consumer";case pBt:return(n._context.displayName||"Context")+".Provider";case MDe:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case PDe:return i=n.displayName||null,i!==null?i:h6e(n.type)||"Memo";case Pk:i=n._payload,n=n._init;try{return h6e(n(i))}catch{}}return null}function YCn(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 h6e(i);case 8:return i===DDe?"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 nN(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function mBt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function JCn(n){var i=mBt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){u=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(b){u=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Jre(n){n._valueTracker||(n._valueTracker=JCn(n))}function wBt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),u="";return n&&(u=mBt(n)?n.checked?"true":"false":n.value),n=u,n!==s?(i.setValue(n),!0):!1}function hoe(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 p6e(n,i){var s=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function t5t(n,i){var s=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;s=nN(i.value!=null?i.value:s),n._wrapperState={initialChecked:u,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function yBt(n,i){i=i.checked,i!=null&&LDe(n,"checked",i,!1)}function g6e(n,i){yBt(n,i);var s=nN(i.value),u=i.type;if(s!=null)u==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?b6e(n,i.type,s):i.hasOwnProperty("defaultValue")&&b6e(n,i.type,nN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function n5t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function b6e(n,i,s){(i!=="number"||hoe(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var WU=Array.isArray;function Y5(n,i,s,u){if(n=n.options,i){i={};for(var d=0;d"+i.valueOf().toString()+"",i=Xre.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function kH(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var aH={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},XCn=["Webkit","ms","Moz","O"];Object.keys(aH).forEach(function(n){XCn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),aH[i]=aH[n]})});function TBt(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||aH.hasOwnProperty(n)&&aH[n]?(""+i).trim():i+"px"}function ABt(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var u=s.indexOf("--")===0,d=TBt(s,i[s],u);s==="float"&&(s="cssFloat"),u?n.setProperty(s,d):n[s]=d}}var ZCn=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 y6e(n,i){if(i){if(ZCn[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 v6e(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 E6e=null;function jDe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var S6e=null,J5=null,X5=null;function o5t(n){if(n=yz(n)){if(typeof S6e!="function")throw Error(ir(280));var i=n.stateNode;i&&(i=Lse(i),S6e(n.stateNode,n.type,i))}}function _Bt(n){J5?X5?X5.push(n):X5=[n]:J5=n}function xBt(){if(J5){var n=J5,i=X5;if(X5=J5=null,o5t(n),i)for(n=0;n>>=0,n===0?32:31-(cIn(n)/lIn|0)|0}var Zre=64,Qre=4194304;function KU(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 moe(n,i){var s=n.pendingLanes;if(s===0)return 0;var u=0,d=n.suspendedLanes,g=n.pingedLanes,b=s&268435455;if(b!==0){var w=b&~d;w!==0?u=KU(w):(g&=b,g!==0&&(u=KU(g)))}else b=s&~d,b!==0?u=KU(b):g!==0&&(u=KU(g));if(u===0)return 0;if(i!==0&&i!==u&&!(i&d)&&(d=u&-u,g=i&-i,d>=g||d===16&&(g&4194240)!==0))return i;if(u&4&&(u|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=u;0s;s++)i.push(n);return i}function mz(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Lv(i),n[i]=s}function pIn(n,i){var s=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 u=n.eventTimes;for(n=n.expirationTimes;0=cH),p5t=" ",g5t=!1;function VBt(n,i){switch(n){case"keyup":return HIn.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WBt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var O5=!1;function GIn(n,i){switch(n){case"compositionend":return WBt(i);case"keypress":return i.which!==32?null:(g5t=!0,p5t);case"textInput":return n=i.data,n===p5t&&g5t?null:n;default:return null}}function qIn(n,i){if(O5)return n==="compositionend"||!qDe&&VBt(n,i)?(n=GBt(),Hie=HDe=zk=null,O5=!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:s,offset:i-n};n=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=y5t(s)}}function XBt(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?XBt(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function ZBt(){for(var n=window,i=hoe();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=hoe(n.document)}return i}function VDe(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 e4n(n){var i=ZBt(),s=n.focusedElem,u=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&XBt(s.ownerDocument.documentElement,s)){if(u!==null&&VDe(s)){if(i=u.start,n=u.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var d=s.textContent.length,g=Math.min(u.start,d);u=u.end===void 0?g:Math.min(u.end,d),!n.extend&&g>u&&(d=u,u=g,g=d),d=v5t(s,g);var b=v5t(s,u);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>u?(n.addRange(i),n.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,L5=null,N6e=null,dH=null,C6e=!1;function E5t(n,i,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;C6e||L5==null||L5!==hoe(u)||(u=L5,"selectionStart"in u&&VDe(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),dH&&LH(dH,u)||(dH=u,u=voe(N6e,"onSelect"),0P5||(n.current=M6e[P5],M6e[P5]=null,P5--)}function Wu(n,i){P5++,M6e[P5]=n.current,n.current=i}var rN={},Up=wN(rN),cb=wN(!1),oR=rN;function fM(n,i){var s=n.type.contextTypes;if(!s)return rN;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in s)d[g]=i[g];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function lb(n){return n=n.childContextTypes,n!=null}function Soe(){dc(cb),dc(Up)}function N5t(n,i,s){if(Up.current!==rN)throw Error(ir(168));Wu(Up,i),Wu(cb,s)}function aUt(n,i,s){var u=n.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return s;u=u.getChildContext();for(var d in u)if(!(d in i))throw Error(ir(108,YCn(n)||"Unknown",d));return fl({},s,u)}function Toe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||rN,oR=Up.current,Wu(Up,n),Wu(cb,cb.current),!0}function C5t(n,i,s){var u=n.stateNode;if(!u)throw Error(ir(169));s?(n=aUt(n,i,oR),u.__reactInternalMemoizedMergedChildContext=n,dc(cb),dc(Up),Wu(Up,n)):dc(cb),Wu(cb,s)}var oA=null,Dse=!1,ACe=!1;function uUt(n){oA===null?oA=[n]:oA.push(n)}function f4n(n){Dse=!0,uUt(n)}function yN(){if(!ACe&&oA!==null){ACe=!0;var n=0,i=cu;try{var s=oA;for(cu=1;n>=b,d-=b,uA=1<<32-Lv(i)+d|s<ie?(he=Q,Q=null):he=Q.sibling;var ge=C($,Q,P[ie],G);if(ge===null){Q===null&&(Q=he);break}n&&Q&&ge.alternate===null&&i($,Q),j=g(ge,j,ie),ne===null?ee=ge:ne.sibling=ge,ne=ge,Q=he}if(ie===P.length)return s($,Q),Lc&&q4($,ie),ee;if(Q===null){for(;ieie?(he=Q,Q=null):he=Q.sibling;var ce=C($,Q,ge.value,G);if(ce===null){Q===null&&(Q=he);break}n&&Q&&ce.alternate===null&&i($,Q),j=g(ce,j,ie),ne===null?ee=ce:ne.sibling=ce,ne=ce,Q=he}if(ge.done)return s($,Q),Lc&&q4($,ie),ee;if(Q===null){for(;!ge.done;ie++,ge=P.next())ge=A($,ge.value,G),ge!==null&&(j=g(ge,j,ie),ne===null?ee=ge:ne.sibling=ge,ne=ge);return Lc&&q4($,ie),ee}for(Q=u($,Q);!ge.done;ie++,ge=P.next())ge=R(Q,$,ie,ge.value,G),ge!==null&&(n&&ge.alternate!==null&&Q.delete(ge.key===null?ie:ge.key),j=g(ge,j,ie),ne===null?ee=ge:ne.sibling=ge,ne=ge);return n&&Q.forEach(function(fe){return i($,fe)}),Lc&&q4($,ie),ee}function B($,j,P,G){if(typeof P=="object"&&P!==null&&P.type===R5&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Yre:e:{for(var ee=P.key,ne=j;ne!==null;){if(ne.key===ee){if(ee=P.type,ee===R5){if(ne.tag===7){s($,ne.sibling),j=d(ne,P.props.children),j.return=$,$=j;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Pk&&O5t(ee)===ne.type){s($,ne.sibling),j=d(ne,P.props),j.ref=DU($,ne,P),j.return=$,$=j;break e}s($,ne);break}else i($,ne);ne=ne.sibling}P.type===R5?(j=eR(P.props.children,$.mode,G,P.key),j.return=$,$=j):(G=Jie(P.type,P.key,P.props,null,$.mode,G),G.ref=DU($,j,P),G.return=$,$=G)}return b($);case I5:e:{for(ne=P.key;j!==null;){if(j.key===ne)if(j.tag===4&&j.stateNode.containerInfo===P.containerInfo&&j.stateNode.implementation===P.implementation){s($,j.sibling),j=d(j,P.children||[]),j.return=$,$=j;break e}else{s($,j);break}else i($,j);j=j.sibling}j=OCe(P,$.mode,G),j.return=$,$=j}return b($);case Pk:return ne=P._init,B($,j,ne(P._payload),G)}if(WU(P))return D($,j,P,G);if(CU(P))return L($,j,P,G);sie($,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,j!==null&&j.tag===6?(s($,j.sibling),j=d(j,P),j.return=$,$=j):(s($,j),j=RCe(P,$.mode,G),j.return=$,$=j),b($)):s($,j)}return B}var pM=fUt(!0),hUt=fUt(!1),xoe=wN(null),koe=null,$5=null,JDe=null;function XDe(){JDe=$5=koe=null}function ZDe(n){var i=xoe.current;dc(xoe),n._currentValue=i}function F6e(n,i,s){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===s)break;n=n.return}}function Q5(n,i){koe=n,JDe=$5=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&i&&(sb=!0),n.firstContext=null)}function Tw(n){var i=n._currentValue;if(JDe!==n)if(n={context:n,memoizedValue:i,next:null},$5===null){if(koe===null)throw Error(ir(308));$5=n,koe.dependencies={lanes:0,firstContext:n}}else $5=$5.next=n;return i}var J4=null;function QDe(n){J4===null?J4=[n]:J4.push(n)}function pUt(n,i,s,u){var d=i.interleaved;return d===null?(s.next=s,QDe(i)):(s.next=d.next,d.next=s),i.interleaved=s,mA(n,u)}function mA(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var jk=!1;function e5e(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gUt(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 hA(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Jk(n,i,s){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,ga&2){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,mA(n,s)}return d=u.interleaved,d===null?(i.next=i,QDe(u)):(i.next=d.next,d.next=i),u.interleaved=i,mA(n,s)}function Gie(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var u=i.lanes;u&=n.pendingLanes,s|=u,i.lanes=s,$De(n,s)}}function L5t(n,i){var s=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var d=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var b={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?d=g=b:g=g.next=b,s=s.next}while(s!==null);g===null?d=g=i:g=g.next=i}else d=g=i;s={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:u.shared,effects:u.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function Noe(n,i,s,u){var d=n.updateQueue;jk=!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 x=n.alternate;x!==null&&(x=x.updateQueue,w=x.lastBaseUpdate,w!==b&&(w===null?x.firstBaseUpdate=S:w.next=S,x.lastBaseUpdate=E))}if(g!==null){var A=d.baseState;b=0,x=S=E=null,w=g;do{var C=w.lane,R=w.eventTime;if((u&C)===C){x!==null&&(x=x.next={eventTime:R,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var D=n,L=w;switch(C=i,R=s,L.tag){case 1:if(D=L.payload,typeof D=="function"){A=D.call(R,A,C);break e}A=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=L.payload,C=typeof D=="function"?D.call(R,A,C):D,C==null)break e;A=fl({},A,C);break e;case 2:jk=!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},x===null?(S=x=R,E=A):x=x.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(x===null&&(E=A),d.baseState=E,d.firstBaseUpdate=S,d.lastBaseUpdate=x,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);uR|=b,n.lanes=b,n.memoizedState=A}}function D5t(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;is?s:4,n(!0);var u=xCe.transition;xCe.transition={};try{n(!1),i()}finally{cu=s,xCe.transition=u}}function OUt(){return Aw().memoizedState}function b4n(n,i,s){var u=Zk(n);if(s={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null},LUt(n))DUt(i,s);else if(s=pUt(n,i,s,u),s!==null){var d=Hg();Dv(s,n,u,d),MUt(s,i,u)}}function m4n(n,i,s){var u=Zk(n),d={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(LUt(n))DUt(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,s);if(d.hasEagerState=!0,d.eagerState=w,Pv(w,b)){var E=i.interleaved;E===null?(d.next=d,QDe(i)):(d.next=E.next,E.next=d),i.interleaved=d;return}}catch{}finally{}s=pUt(n,i,d,u),s!==null&&(d=Hg(),Dv(s,n,u,d),MUt(s,i,u))}}function LUt(n){var i=n.alternate;return n===dl||i!==null&&i===dl}function DUt(n,i){fH=Ioe=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function MUt(n,i,s){if(s&4194240){var u=i.lanes;u&=n.pendingLanes,s|=u,i.lanes=s,$De(n,s)}}var Roe={readContext:Tw,useCallback:Pp,useContext:Pp,useEffect:Pp,useImperativeHandle:Pp,useInsertionEffect:Pp,useLayoutEffect:Pp,useMemo:Pp,useReducer:Pp,useRef:Pp,useState:Pp,useDebugValue:Pp,useDeferredValue:Pp,useTransition:Pp,useMutableSource:Pp,useSyncExternalStore:Pp,useId:Pp,unstable_isNewReconciler:!1},w4n={readContext:Tw,useCallback:function(n,i){return x2().memoizedState=[n,i===void 0?null:i],n},useContext:Tw,useEffect:P5t,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,Vie(4194308,4,kUt.bind(null,i,n),s)},useLayoutEffect:function(n,i){return Vie(4194308,4,n,i)},useInsertionEffect:function(n,i){return Vie(4,2,n,i)},useMemo:function(n,i){var s=x2();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var u=x2();return i=s!==void 0?s(i):i,u.memoizedState=u.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},u.queue=n,n=n.dispatch=b4n.bind(null,dl,n),[u.memoizedState,n]},useRef:function(n){var i=x2();return n={current:n},i.memoizedState=n},useState:M5t,useDebugValue:u5e,useDeferredValue:function(n){return x2().memoizedState=n},useTransition:function(){var n=M5t(!1),i=n[0];return n=g4n.bind(null,n[1]),x2().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var u=dl,d=x2();if(Lc){if(s===void 0)throw Error(ir(407));s=s()}else{if(s=i(),rh===null)throw Error(ir(349));aR&30||yUt(u,i,s)}d.memoizedState=s;var g={value:s,getSnapshot:i};return d.queue=g,P5t(EUt.bind(null,u,g,n),[n]),u.flags|=2048,UH(9,vUt.bind(null,u,g,s,i),void 0,null),s},useId:function(){var n=x2(),i=rh.identifierPrefix;if(Lc){var s=cA,u=uA;s=(u&~(1<<32-Lv(u)-1)).toString(32)+s,i=":"+i+"R"+s,s=$H++,0<\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=b.createElement(s,{is:u.is}):(n=b.createElement(s),s==="select"&&(b=n,u.multiple?b.multiple=!0:u.size&&(b.size=u.size))):n=b.createElementNS(n,s),n[R2]=i,n[PH]=u,qUt(n,i,!1,!1),i.stateNode=n;e:{switch(b=v6e(s,u),s){case"dialog":lc("cancel",n),lc("close",n),d=u;break;case"iframe":case"object":case"embed":lc("load",n),d=u;break;case"video":case"audio":for(d=0;dmM&&(i.flags|=128,u=!0,MU(g,!1),i.lanes=4194304)}else{if(!u)if(n=Coe(b),n!==null){if(i.flags|=128,u=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),MU(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Lc)return jp(i),null}else 2*pd()-g.renderingStartTime>mM&&s!==1073741824&&(i.flags|=128,u=!0,MU(g,!1),i.lanes=4194304);g.isBackwards?(b.sibling=i.child,i.child=b):(s=g.last,s!==null?s.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,s=cl.current,Wu(cl,u?s&1|2:s&1),i):(jp(i),null);case 22:case 23:return p5e(),u=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(i.flags|=8192),u&&i.mode&1?Dm&1073741824&&(jp(i),i.subtreeFlags&6&&(i.flags|=8192)):jp(i),null;case 24:return null;case 25:return null}throw Error(ir(156,i.tag))}function x4n(n,i){switch(KDe(i),i.tag){case 1:return lb(i.type)&&Soe(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return gM(),dc(cb),dc(Up),r5e(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 5:return n5e(i),null;case 13:if(dc(cl),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(ir(340));hM()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return dc(cl),null;case 4:return gM(),null;case 10:return ZDe(i.type._context),null;case 22:case 23:return p5e(),null;case 24:return null;default:return null}}var uie=!1,Fp=!1,k4n=typeof WeakSet=="function"?WeakSet:Set,Vr=null;function B5(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(u){jl(n,i,u)}else s.current=null}function W6e(n,i,s){try{s()}catch(u){jl(n,i,u)}}var W5t=!1;function N4n(n,i){if(I6e=woe,n=ZBt(),VDe(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var d=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var b=0,w=-1,E=-1,S=0,x=0,A=n,C=null;t:for(;;){for(var R;A!==s||d!==0&&A.nodeType!==3||(w=b+d),A!==g||u!==0&&A.nodeType!==3||(E=b+u),A.nodeType===3&&(b+=A.nodeValue.length),(R=A.firstChild)!==null;)C=A,A=R;for(;;){if(A===n)break t;if(C===s&&++S===d&&(w=b),C===g&&++x===u&&(E=b),(R=A.nextSibling)!==null)break;A=C,C=A.parentNode}A=R}s=w===-1||E===-1?null:{start:w,end:E}}else s=null}s=s||{start:0,end:0}}else s=null;for(R6e={focusedElem:n,selectionRange:s},woe=!1,Vr=i;Vr!==null;)if(i=Vr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Vr=n;else for(;Vr!==null;){i=Vr;try{var D=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var L=D.memoizedProps,B=D.memoizedState,$=i.stateNode,j=$.getSnapshotBeforeUpdate(i.elementType===i.type?L:xv(i.type,L),B);$.__reactInternalSnapshotBeforeUpdate=j}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(G){jl(i,i.return,G)}if(n=i.sibling,n!==null){n.return=i.return,Vr=n;break}Vr=i.return}return D=W5t,W5t=!1,D}function hH(n,i,s){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&n)===n){var g=d.destroy;d.destroy=void 0,g!==void 0&&W6e(i,s,g)}d=d.next}while(d!==u)}}function jse(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var u=s.create;s.destroy=u()}s=s.next}while(s!==i)}}function K6e(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function KUt(n){var i=n.alternate;i!==null&&(n.alternate=null,KUt(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[R2],delete i[PH],delete i[D6e],delete i[l4n],delete i[d4n])),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 YUt(n){return n.tag===5||n.tag===3||n.tag===4}function K5t(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||YUt(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 Y6e(n,i,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Eoe));else if(u!==4&&(n=n.child,n!==null))for(Y6e(n,i,s),n=n.sibling;n!==null;)Y6e(n,i,s),n=n.sibling}function J6e(n,i,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(J6e(n,i,s),n=n.sibling;n!==null;)J6e(n,i,s),n=n.sibling}var Ph=null,kv=!1;function Nk(n,i,s){for(s=s.child;s!==null;)JUt(n,i,s),s=s.sibling}function JUt(n,i,s){if(P2&&typeof P2.onCommitFiberUnmount=="function")try{P2.onCommitFiberUnmount(Cse,s)}catch{}switch(s.tag){case 5:Fp||B5(s,i);case 6:var u=Ph,d=kv;Ph=null,Nk(n,i,s),Ph=u,kv=d,Ph!==null&&(kv?(n=Ph,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Ph.removeChild(s.stateNode));break;case 18:Ph!==null&&(kv?(n=Ph,s=s.stateNode,n.nodeType===8?TCe(n.parentNode,s):n.nodeType===1&&TCe(n,s),RH(n)):TCe(Ph,s.stateNode));break;case 4:u=Ph,d=kv,Ph=s.stateNode.containerInfo,kv=!0,Nk(n,i,s),Ph=u,kv=d;break;case 0:case 11:case 14:case 15:if(!Fp&&(u=s.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var g=d,b=g.destroy;g=g.tag,b!==void 0&&(g&2||g&4)&&W6e(s,i,b),d=d.next}while(d!==u)}Nk(n,i,s);break;case 1:if(!Fp&&(B5(s,i),u=s.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=s.memoizedProps,u.state=s.memoizedState,u.componentWillUnmount()}catch(w){jl(s,i,w)}Nk(n,i,s);break;case 21:Nk(n,i,s);break;case 22:s.mode&1?(Fp=(u=Fp)||s.memoizedState!==null,Nk(n,i,s),Fp=u):Nk(n,i,s);break;default:Nk(n,i,s)}}function Y5t(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new k4n),i.forEach(function(u){var d=j4n.bind(null,n,u);s.has(u)||(s.add(u),u.then(d,d))})}}function Av(n,i){var s=i.deletions;if(s!==null)for(var u=0;ud&&(d=b),u&=~g}if(u=d,u=pd()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*I4n(u/1960))-u,10n?16:n,Gk===null)var u=!1;else{if(n=Gk,Gk=null,Doe=0,ga&6)throw Error(ir(331));var d=ga;for(ga|=4,Vr=n.current;Vr!==null;){var g=Vr,b=g.child;if(Vr.flags&16){var w=g.deletions;if(w!==null){for(var E=0;Epd()-f5e?Q4(n,0):d5e|=s),db(n,i)}function iHt(n,i){i===0&&(n.mode&1?(i=Qre,Qre<<=1,!(Qre&130023424)&&(Qre=4194304)):i=1);var s=Hg();n=mA(n,i),n!==null&&(mz(n,i,s),db(n,s))}function P4n(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),iHt(n,s)}function j4n(n,i){var s=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(ir(314))}u!==null&&u.delete(i),iHt(n,s)}var oHt;oHt=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||cb.current)sb=!0;else{if(!(n.lanes&s)&&!(i.flags&128))return sb=!1,A4n(n,i,s);sb=!!(n.flags&131072)}else sb=!1,Lc&&i.flags&1048576&&cUt(i,_oe,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;Wie(n,i),n=i.pendingProps;var d=fM(i,Up.current);Q5(i,s),d=o5e(null,i,u,n,d,s);var g=s5e();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(u)?(g=!0,Toe(i)):g=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,e5e(i),d.updater=Pse,i.stateNode=d,d._reactInternals=i,B6e(i,u,n,s),i=z6e(null,i,u,!0,g,s)):(i.tag=0,Lc&&g&&WDe(i),Bg(null,i,d,s),i=i.child),i;case 16:u=i.elementType;e:{switch(Wie(n,i),n=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=$4n(u),n=xv(u,n),d){case 0:i=H6e(null,i,u,n,s);break e;case 1:i=G5t(null,i,u,n,s);break e;case 11:i=H5t(null,i,u,n,s);break e;case 14:i=z5t(null,i,u,xv(u.type,n),s);break e}throw Error(ir(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:xv(u,d),H6e(n,i,u,d,s);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:xv(u,d),G5t(n,i,u,d,s);case 3:e:{if(HUt(i),n===null)throw Error(ir(387));u=i.pendingProps,g=i.memoizedState,d=g.element,gUt(n,i),Noe(i,u,null,s);var b=i.memoizedState;if(u=b.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){d=bM(Error(ir(423)),i),i=q5t(n,i,u,s,d);break e}else if(u!==d){d=bM(Error(ir(424)),i),i=q5t(n,i,u,s,d);break e}else for(Fm=Yk(i.stateNode.containerInfo.firstChild),Bm=i,Lc=!0,Cv=null,s=hUt(i,null,u,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(hM(),u===d){i=wA(n,i,s);break e}Bg(n,i,u,s)}i=i.child}return i;case 5:return bUt(i),n===null&&j6e(i),u=i.type,d=i.pendingProps,g=n!==null?n.memoizedProps:null,b=d.children,O6e(u,d)?b=null:g!==null&&O6e(u,g)&&(i.flags|=32),UUt(n,i),Bg(n,i,b,s),i.child;case 6:return n===null&&j6e(i),null;case 13:return zUt(n,i,s);case 4:return t5e(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=pM(i,null,u,s):Bg(n,i,u,s),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:xv(u,d),H5t(n,i,u,d,s);case 7:return Bg(n,i,i.pendingProps,s),i.child;case 8:return Bg(n,i,i.pendingProps.children,s),i.child;case 12:return Bg(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,g=i.memoizedProps,b=d.value,Wu(xoe,u._currentValue),u._currentValue=b,g!==null)if(Pv(g.value,b)){if(g.children===d.children&&!cb.current){i=wA(n,i,s);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===u){if(g.tag===1){E=hA(-1,s&-s),E.tag=2;var S=g.updateQueue;if(S!==null){S=S.shared;var x=S.pending;x===null?E.next=E:(E.next=x.next,x.next=E),S.pending=E}}g.lanes|=s,E=g.alternate,E!==null&&(E.lanes|=s),F6e(g.return,s,i),w.lanes|=s;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|=s,w=b.alternate,w!==null&&(w.lanes|=s),F6e(b,s,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}Bg(n,i,d.children,s),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,Q5(i,s),d=Tw(d),u=u(d),i.flags|=1,Bg(n,i,u,s),i.child;case 14:return u=i.type,d=xv(u,i.pendingProps),d=xv(u.type,d),z5t(n,i,u,d,s);case 15:return $Ut(n,i,i.type,i.pendingProps,s);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:xv(u,d),Wie(n,i),i.tag=1,lb(u)?(n=!0,Toe(i)):n=!1,Q5(i,s),PUt(i,u,d),B6e(i,u,d,s),z6e(null,i,u,!0,n,s);case 19:return GUt(n,i,s);case 22:return BUt(n,i,s)}throw Error(ir(156,i.tag))};function sHt(n,i){return LBt(n,i)}function F4n(n,i,s,u){this.tag=n,this.key=s,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yw(n,i,s,u){return new F4n(n,i,s,u)}function b5e(n){return n=n.prototype,!(!n||!n.isReactComponent)}function $4n(n){if(typeof n=="function")return b5e(n)?1:0;if(n!=null){if(n=n.$$typeof,n===MDe)return 11;if(n===PDe)return 14}return 2}function Qk(n,i){var s=n.alternate;return s===null?(s=yw(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Jie(n,i,s,u,d,g){var b=2;if(u=n,typeof n=="function")b5e(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case R5:return eR(s.children,d,g,i);case DDe:b=8,d|=8;break;case l6e:return n=yw(12,s,i,d|2),n.elementType=l6e,n.lanes=g,n;case d6e:return n=yw(13,s,i,d),n.elementType=d6e,n.lanes=g,n;case f6e:return n=yw(19,s,i,d),n.elementType=f6e,n.lanes=g,n;case bBt:return $se(s,d,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case pBt:b=10;break e;case gBt:b=9;break e;case MDe:b=11;break e;case PDe:b=14;break e;case Pk:b=16,u=null;break e}throw Error(ir(130,n==null?n:typeof n,""))}return i=yw(b,s,i,d),i.elementType=n,i.type=u,i.lanes=g,i}function eR(n,i,s,u){return n=yw(7,n,u,i),n.lanes=s,n}function $se(n,i,s,u){return n=yw(22,n,u,i),n.elementType=bBt,n.lanes=s,n.stateNode={isHidden:!1},n}function RCe(n,i,s){return n=yw(6,n,null,i),n.lanes=s,n}function OCe(n,i,s){return i=yw(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function B4n(n,i,s,u,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=fCe(0),this.expirationTimes=fCe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fCe(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function m5e(n,i,s,u,d,g,b,w,E){return n=new B4n(n,i,s,w,E),i===1?(i=1,g===!0&&(i|=8)):i=0,g=yw(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:u,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},e5e(g),n}function U4n(n,i,s){var u=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lHt)}catch(n){console.error(n)}}lHt(),lBt.exports=Gm;var xR=lBt.exports;const dHt=TR(xR);var rMt=xR;foe.createRoot=rMt.createRoot,foe.hydrateRoot=rMt.hydrateRoot;const vo=n=>typeof n=="string",jU=()=>{let n,i;const s=new Promise((u,d)=>{n=u,i=d});return s.resolve=n,s.reject=i,s},iMt=n=>n==null?"":""+n,V4n=(n,i,s)=>{n.forEach(u=>{i[u]&&(s[u]=i[u])})},W4n=/###/g,oMt=n=>n&&n.indexOf("###")>-1?n.replace(W4n,"."):n,sMt=n=>!n||vo(n),bH=(n,i,s)=>{const u=vo(i)?i.split("."):i;let d=0;for(;d{const{obj:u,k:d}=bH(n,i,Object);if(u!==void 0||i.length===1){u[d]=s;return}let g=i[i.length-1],b=i.slice(0,i.length-1),w=bH(n,b,Object);for(;w.obj===void 0&&b.length;)g=`${b[b.length-1]}.${g}`,b=b.slice(0,b.length-1),w=bH(n,b,Object),w!=null&&w.obj&&typeof w.obj[`${w.k}.${g}`]<"u"&&(w.obj=void 0);w.obj[`${w.k}.${g}`]=s},K4n=(n,i,s,u)=>{const{obj:d,k:g}=bH(n,i,Object);d[g]=d[g]||[],d[g].push(s)},joe=(n,i)=>{const{obj:s,k:u}=bH(n,i);if(s&&Object.prototype.hasOwnProperty.call(s,u))return s[u]},Y4n=(n,i,s)=>{const u=joe(n,s);return u!==void 0?u:joe(i,s)},fHt=(n,i,s)=>{for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in n?vo(n[u])||n[u]instanceof String||vo(i[u])||i[u]instanceof String?s&&(n[u]=i[u]):fHt(n[u],i[u],s):n[u]=i[u]);return n},b5=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var J4n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const X4n=n=>vo(n)?n.replace(/[&<>"'\/]/g,i=>J4n[i]):n;class Z4n{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const u=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,u),this.regExpQueue.push(i),u}}const Q4n=[" ",",","?","!",";"],eRn=new Z4n(20),tRn=(n,i,s)=>{i=i||"",s=s||"";const u=Q4n.filter(b=>i.indexOf(b)<0&&s.indexOf(b)<0);if(u.length===0)return!0;const d=eRn.getRegExp(`(${u.map(b=>b==="?"?"\\?":b).join("|")})`);let g=!d.test(n);if(!g){const b=n.indexOf(s);b>0&&!d.test(n.substring(0,b))&&(g=!0)}return g},tLe=(n,i,s=".")=>{if(!n)return;if(n[i])return Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0;const u=i.split(s);let d=n;for(let g=0;g-1&&En==null?void 0:n.replace("_","-"),nRn={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,i){var s,u;(u=(s=console==null?void 0:console[n])==null?void 0:s.apply)==null||u.call(s,console,i)}};let rRn=class nLe{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||nRn,this.options=s,this.debug=s.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,s,u,d){return d&&!this.debug?null:(vo(i[0])&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new nLe(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new nLe(this.logger,i)}};var L2=new rRn;class Gse{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(u=>{this.observers[u]||(this.observers[u]=new Map);const d=this.observers[u].get(s)||0;this.observers[u].set(s,d+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){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(s,1)}getResource(i,s,u,d={}){var S,x;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,s],u&&(Array.isArray(u)?w.push(...u):vo(u)&&g?w.push(...u.split(g)):w.push(u)));const E=joe(this.data,w);return!E&&!s&&!u&&i.indexOf(".")>-1&&(i=w[0],s=w[1],u=w.slice(2).join(".")),E||!b||!vo(u)?E:tLe((x=(S=this.data)==null?void 0:S[i])==null?void 0:x[s],u,g)}addResource(i,s,u,d,g={silent:!1}){const b=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let w=[i,s];u&&(w=w.concat(b?u.split(b):u)),i.indexOf(".")>-1&&(w=i.split("."),d=s,s=w[1]),this.addNamespaces(s),aMt(this.data,w,d),g.silent||this.emit("added",i,s,u,d)}addResources(i,s,u,d={silent:!1}){for(const g in u)(vo(u[g])||Array.isArray(u[g]))&&this.addResource(i,s,g,u[g],{silent:!0});d.silent||this.emit("added",i,s,u)}addResourceBundle(i,s,u,d,g,b={silent:!1,skipCopy:!1}){let w=[i,s];i.indexOf(".")>-1&&(w=i.split("."),d=u,u=s,s=w[1]),this.addNamespaces(s);let E=joe(this.data,w)||{};b.skipCopy||(u=JSON.parse(JSON.stringify(u))),d?fHt(E,u,g):E={...E,...u},aMt(this.data,w,E),b.silent||this.emit("added",i,s,u)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(d=>s[d]&&Object.keys(s[d]).length>0)}toJSON(){return this.data}}var hHt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,i,s,u,d){return n.forEach(g=>{var b;i=((b=this.processors[g])==null?void 0:b.process(i,s,u,d))??i}),i}};const pHt=Symbol("i18next/PATH_KEY");function iRn(){const n=[],i=Object.create(null);let s;return i.get=(u,d)=>{var g;return(g=s==null?void 0:s.revoke)==null||g.call(s),d===pHt?n:(n.push(d),s=Proxy.revocable(u,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function rLe(n,i){const{[pHt]:s}=n(iRn());return s.join((i==null?void 0:i.keySeparator)??".")}const cMt={},LCe=n=>!vo(n)&&typeof n!="boolean"&&typeof n!="number";class Foe extends Gse{constructor(i,s={}){super(),V4n(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=L2.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const u={...s};if(i==null)return!1;const d=this.resolve(i,u);if((d==null?void 0:d.res)===void 0)return!1;const g=LCe(d.res);return!(u.returnObjects===!1&&g)}extractFromKey(i,s){let u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let g=s.ns||this.options.defaultNS||[];const b=u&&i.indexOf(u)>-1,w=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!tRn(i,u,d);if(b&&!w){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:vo(g)?[g]:g};const S=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(S[0])>-1)&&(g=S.shift()),i=S.join(d)}return{key:i,namespaces:vo(g)?[g]:g}}translate(i,s,u){let d=typeof s=="object"?{...s}:s;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=rLe(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 x=d.nsSeparator!==void 0?d.nsSeparator:this.options.nsSeparator;x===void 0&&(x=":");const A=d.lng||this.language,C=d.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((A==null?void 0:A.toLowerCase())==="cimode")return C?g?{res:`${S}${x}${w}`,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:`${S}${x}${w}`:g?{res:w,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:w;const R=this.resolve(i,d);let D=R==null?void 0:R.res;const L=(R==null?void 0:R.usedKey)||w,B=(R==null?void 0:R.exactUsedKey)||w,$=["[object Number]","[object Function]","[object RegExp]"],j=d.joinArrays!==void 0?d.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,G=d.count!==void 0&&!vo(d.count),ee=Foe.hasDefaultValue(d),ne=G?this.pluralResolver.getSuffix(A,d.count,d):"",Q=d.ordinal&&G?this.pluralResolver.getSuffix(A,d.count,{ordinal:!1}):"",ie=G&&!d.ordinal&&d.count===0,he=ie&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${ne}`]||d[`defaultValue${Q}`]||d.defaultValue;let ge=D;P&&!D&&ee&&(ge=he);const ce=LCe(ge),fe=Object.prototype.toString.apply(ge);if(P&&ge&&ce&&$.indexOf(fe)<0&&!(vo(j)&&Array.isArray(ge))){if(!d.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,ge,{...d,ns:E}):`key '${w} (${this.language})' returned an object instead of string.`;return g?(R.res=K,R.usedParams=this.getUsedParamsDetails(d),R):K}if(b){const K=Array.isArray(ge),pe=K?[]:{},Oe=K?B:L;for(const Se in ge)if(Object.prototype.hasOwnProperty.call(ge,Se)){const De=`${Oe}${b}${Se}`;ee&&!D?pe[Se]=this.translate(De,{...d,defaultValue:LCe(he)?he[Se]:void 0,joinArrays:!1,ns:E}):pe[Se]=this.translate(De,{...d,joinArrays:!1,ns:E}),pe[Se]===De&&(pe[Se]=ge[Se])}D=pe}}else if(P&&vo(j)&&Array.isArray(D))D=D.join(j),D&&(D=this.extendTranslation(D,i,d,u));else{let K=!1,pe=!1;!this.isValidLookup(D)&&ee&&(K=!0,D=he),this.isValidLookup(D)||(pe=!0,D=w);const Se=(d.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&pe?void 0:D,De=ee&&he!==D&&this.options.updateMissing;if(pe||K||De){if(this.logger.log(De?"updateKey":"missingKey",A,S,w,De?he:D),b){const dt=this.resolve(w,{...d,keySeparator:!1});dt&&dt.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 Ae=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,d.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let dt=0;dt{var ht;const kt=ee&&bt!==D?bt:Se;this.options.missingKeyHandler?this.options.missingKeyHandler(dt,S,Ue,kt,De,d):(ht=this.backendConnector)!=null&&ht.saveMissing&&this.backendConnector.saveMissing(dt,S,Ue,kt,De,d),this.emit("missingKey",dt,S,Ue,D)};this.options.saveMissing&&(this.options.saveMissingPlurals&&G?Ae.forEach(dt=>{const Ue=this.pluralResolver.getSuffixes(dt,d);ie&&d[`defaultValue${this.options.pluralSeparator}zero`]&&Ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ue.push(`${this.options.pluralSeparator}zero`),Ue.forEach(bt=>{We([dt],w+bt,d[`defaultValue${bt}`]||he)})}):We(Ae,w,he))}D=this.extendTranslation(D,i,d,R,u),pe&&D===w&&this.options.appendNamespaceToMissingKey&&(D=`${S}${x}${w}`),(pe||K)&&this.options.parseMissingKeyHandler&&(D=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}${x}${w}`:w,K?D:void 0,d))}return g?(R.res=D,R.usedParams=this.getUsedParamsDetails(d),R):D}extendTranslation(i,s,u,d,g){var E,S;if((E=this.i18nFormat)!=null&&E.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const x=vo(i)&&(((S=u==null?void 0:u.interpolation)==null?void 0:S.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let A;if(x){const R=i.match(this.interpolator.nestingRegexp);A=R&&R.length}let C=u.replace&&!vo(u.replace)?u.replace:u;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,u.lng||this.language||d.usedLng,u),x){const R=i.match(this.interpolator.nestingRegexp),D=R&&R.length;A(g==null?void 0:g[0])===R[0]&&!u.context?(this.logger.warn(`It seems you are nesting recursively key: ${R[0]} in key: ${s[0]}`),null):this.translate(...R,s),u)),u.interpolation&&this.interpolator.reset()}const b=u.postProcess||this.options.postProcess,w=vo(b)?[b]:b;return i!=null&&(w!=null&&w.length)&&u.applyPostProcessor!==!1&&(i=hHt.handle(w,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i,s={}){let u,d,g,b,w;return vo(i)&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const S=this.extractFromKey(E,s),x=S.key;d=x;let A=S.namespaces;this.options.fallbackNS&&(A=A.concat(this.options.fallbackNS));const C=s.count!==void 0&&!vo(s.count),R=C&&!s.ordinal&&s.count===0,D=s.context!==void 0&&(vo(s.context)||typeof s.context=="number")&&s.context!=="",L=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);A.forEach(B=>{var $,j;this.isValidLookup(u)||(w=B,!cMt[`${L[0]}-${B}`]&&(($=this.utils)!=null&&$.hasLoadedNamespace)&&!((j=this.utils)!=null&&j.hasLoadedNamespace(w))&&(cMt[`${L[0]}-${B}`]=!0,this.logger.warn(`key "${d}" for languages "${L.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!!!")),L.forEach(P=>{var ne;if(this.isValidLookup(u))return;b=P;const G=[x];if((ne=this.i18nFormat)!=null&&ne.addLookupKeys)this.i18nFormat.addLookupKeys(G,x,P,B,s);else{let Q;C&&(Q=this.pluralResolver.getSuffix(P,s.count,s));const ie=`${this.options.pluralSeparator}zero`,he=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(s.ordinal&&Q.indexOf(he)===0&&G.push(x+Q.replace(he,this.options.pluralSeparator)),G.push(x+Q),R&&G.push(x+ie)),D){const ge=`${x}${this.options.contextSeparator||"_"}${s.context}`;G.push(ge),C&&(s.ordinal&&Q.indexOf(he)===0&&G.push(ge+Q.replace(he,this.options.pluralSeparator)),G.push(ge+Q),R&&G.push(ge+ie))}}let ee;for(;ee=G.pop();)this.isValidLookup(u)||(g=ee,u=this.getResource(P,B,ee,s))}))})}),{res:u,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,s,u,d={}){var g;return(g=this.i18nFormat)!=null&&g.getResource?this.i18nFormat.getResource(i,s,u,d):this.resourceStore.getResource(i,s,u,d)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&!vo(i.replace);let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const g of s)delete d[g]}return d}static hasDefaultValue(i){const s="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&s===u.substring(0,s.length)&&i[u]!==void 0)return!0;return!1}}class lMt{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=L2.create("languageUtils")}getScriptPartFromCode(i){if(i=zH(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=zH(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(vo(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(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 s;return i.forEach(u=>{if(s)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(s=d)}),!s&&this.options.supportedLngs&&i.forEach(u=>{if(s)return;const d=this.getScriptPartFromCode(u);if(this.isSupportedCode(d))return s=d;const g=this.getLanguagePartFromCode(u);if(this.isSupportedCode(g))return s=g;s=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})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),vo(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let u=i[s];return u||(u=i[this.getScriptPartFromCode(s)]),u||(u=i[this.formatLanguageCode(s)]),u||(u=i[this.getLanguagePartFromCode(s)]),u||(u=i.default),u||[]}toResolveHierarchy(i,s){const u=this.getFallbackCodes((s===!1?[]:s)||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 vo(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))):vo(i)&&g(this.formatLanguageCode(i)),u.forEach(b=>{d.indexOf(b)<0&&g(this.formatLanguageCode(b))}),d}}const dMt={zero:0,one:1,two:2,few:3,many:4,other:5},fMt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oRn{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=L2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const u=zH(i==="dev"?"en":i),d=s.ordinal?"ordinal":"cardinal",g=JSON.stringify({cleanedCode:u,type:d});if(g in this.pluralRulesCache)return this.pluralRulesCache[g];let b;try{b=new Intl.PluralRules(u,{type:d})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),fMt;if(!i.match(/-|_/))return fMt;const E=this.languageUtils.getLanguagePartFromCode(i);b=this.getRule(E,s)}return this.pluralRulesCache[g]=b,b}needsPlural(i,s={}){let u=this.getRule(i,s);return u||(u=this.getRule("dev",s)),(u==null?void 0:u.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,u={}){return this.getSuffixes(i,u).map(d=>`${s}${d}`)}getSuffixes(i,s={}){let u=this.getRule(i,s);return u||(u=this.getRule("dev",s)),u?u.resolvedOptions().pluralCategories.sort((d,g)=>dMt[d]-dMt[g]).map(d=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${d}`):[]}getSuffix(i,s,u={}){const d=this.getRule(i,u);return d?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,u))}}const hMt=(n,i,s,u=".",d=!0)=>{let g=Y4n(n,i,s);return!g&&d&&vo(s)&&(g=tLe(n,s,u),g===void 0&&(g=tLe(i,s,u))),g},DCe=n=>n.replace(/\$/g,"$$$$");class pMt{constructor(i={}){var s;this.logger=L2.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(u=>u),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:u,useRawValueToEscape:d,prefix:g,prefixEscaped:b,suffix:w,suffixEscaped:E,formatSeparator:S,unescapeSuffix:x,unescapePrefix:A,nestingPrefix:C,nestingPrefixEscaped:R,nestingSuffix:D,nestingSuffixEscaped:L,nestingOptionsSeparator:B,maxReplaces:$,alwaysFormat:j}=i.interpolation;this.escape=s!==void 0?s:X4n,this.escapeValue=u!==void 0?u:!0,this.useRawValueToEscape=d!==void 0?d:!1,this.prefix=g?b5(g):b||"{{",this.suffix=w?b5(w):E||"}}",this.formatSeparator=S||",",this.unescapePrefix=x?"":A||"-",this.unescapeSuffix=this.unescapePrefix?"":x||"",this.nestingPrefix=C?b5(C):R||b5("$t("),this.nestingSuffix=D?b5(D):L||b5(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=$||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,u)=>(s==null?void 0:s.source)===u?(s.lastIndex=0,s):new RegExp(u,"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,s,u,d){var R;let g,b,w;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},S=D=>{if(D.indexOf(this.formatSeparator)<0){const j=hMt(s,E,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,u,{...d,...s,interpolationkey:D}):j}const L=D.split(this.formatSeparator),B=L.shift().trim(),$=L.join(this.formatSeparator).trim();return this.format(hMt(s,E,B,this.options.keySeparator,this.options.ignoreJSONStructure),$,u,{...d,...s,interpolationkey:B})};this.resetRegExp();const x=(d==null?void 0:d.missingInterpolationHandler)||this.options.missingInterpolationHandler,A=((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:D=>DCe(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?DCe(this.escape(D)):DCe(D)}].forEach(D=>{for(w=0;g=D.regex.exec(i);){const L=g[1].trim();if(b=S(L),b===void 0)if(typeof x=="function"){const $=x(i,g,d);b=vo($)?$:""}else if(d&&Object.prototype.hasOwnProperty.call(d,L))b="";else if(A){b=g[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${i}`),b="";else!vo(b)&&!this.useRawValueToEscape&&(b=iMt(b));const B=D.safeValue(b);if(i=i.replace(g[0],B),A?(D.regex.lastIndex+=b.length,D.regex.lastIndex-=g[0].length):D.regex.lastIndex=0,w++,w>=this.maxReplaces)break}}),i}nest(i,s,u={}){let d,g,b;const w=(E,S)=>{const x=this.nestingOptionsSeparator;if(E.indexOf(x)<0)return E;const A=E.split(new RegExp(`${x}[ ]*{`));let C=`{${A[1]}`;E=A[0],C=this.interpolate(C,b);const R=C.match(/'/g),D=C.match(/"/g);(((R==null?void 0:R.length)??0)%2===0&&!D||D.length%2!==0)&&(C=C.replace(/'/g,'"'));try{b=JSON.parse(C),S&&(b={...S,...b})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,L),`${E}${x}${C}`}return b.defaultValue&&b.defaultValue.indexOf(this.prefix)>-1&&delete b.defaultValue,E};for(;d=this.nestingRegexp.exec(i);){let E=[];b={...u},b=b.replace&&!vo(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(x=>x.trim()).filter(Boolean),d[1]=d[1].slice(0,S)),g=s(w.call(this,d[1].trim(),b),b),g&&d[0]===i&&!vo(g))return g;vo(g)||(g=iMt(g)),g||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),g=""),E.length&&(g=E.reduce((x,A)=>this.format(x,A,u.lng,{...u,interpolationkey:d[1].trim()}),g.trim())),i=i.replace(d[0],g),this.regexp.lastIndex=0}return i}}const sRn=n=>{let i=n.toLowerCase().trim();const s={};if(n.indexOf("(")>-1){const u=n.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?s.currency||(s.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?s.range||(s.range=d.trim()):d.split(";").forEach(b=>{if(b){const[w,...E]=b.split(":"),S=E.join(":").trim().replace(/^'+|'+$/g,""),x=w.trim();s[x]||(s[x]=S),S==="false"&&(s[x]=!1),S==="true"&&(s[x]=!0),isNaN(S)||(s[x]=parseInt(S,10))}})}return{formatName:i,formatOptions:s}},gMt=n=>{const i={};return(s,u,d)=>{let g=d;d&&d.interpolationkey&&d.formatParams&&d.formatParams[d.interpolationkey]&&d[d.interpolationkey]&&(g={...g,[d.interpolationkey]:void 0});const b=u+JSON.stringify(g);let w=i[b];return w||(w=n(zH(u),d),i[b]=w),w(s)}},aRn=n=>(i,s,u)=>n(zH(s),u)(i);class uRn{constructor(i={}){this.logger=L2.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const u=s.cacheInBuiltFormats?gMt:aRn;this.formats={number:u((d,g)=>{const b=new Intl.NumberFormat(d,{...g});return w=>b.format(w)}),currency:u((d,g)=>{const b=new Intl.NumberFormat(d,{...g,style:"currency"});return w=>b.format(w)}),datetime:u((d,g)=>{const b=new Intl.DateTimeFormat(d,{...g});return w=>b.format(w)}),relativetime:u((d,g)=>{const b=new Intl.RelativeTimeFormat(d,{...g});return w=>b.format(w,g.range||"day")}),list:u((d,g)=>{const b=new Intl.ListFormat(d,{...g});return w=>b.format(w)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=gMt(s)}format(i,s,u,d={}){const g=s.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 A;const{formatName:S,formatOptions:x}=sRn(E);if(this.formats[S]){let C=w;try{const R=((A=d==null?void 0:d.formatParams)==null?void 0:A[d.interpolationkey])||{},D=R.locale||R.lng||d.locale||d.lng||u;C=this.formats[S](w,D,{...x,...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 cRn=(n,i)=>{n.pending[i]!==void 0&&(delete n.pending[i],n.pendingCount--)};class lRn extends Gse{constructor(i,s,u,d={}){var g,b;super(),this.backend=i,this.store=s,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=L2.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,u,d.backend,d)}queueLoad(i,s,u,d){const g={},b={},w={},E={};return i.forEach(S=>{let x=!0;s.forEach(A=>{const C=`${S}|${A}`;!u.reload&&this.store.hasResourceBundle(S,A)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?b[C]===void 0&&(b[C]=!0):(this.state[C]=1,x=!1,b[C]===void 0&&(b[C]=!0),g[C]===void 0&&(g[C]=!0),E[A]===void 0&&(E[A]=!0)))}),x||(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,s,u){const d=i.split("|"),g=d[0],b=d[1];s&&this.emit("failedLoading",g,b,s),!s&&u&&this.store.addResourceBundle(g,b,u,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&u&&(this.state[i]=0);const w={};this.queue.forEach(E=>{K4n(E.loaded,[g],b),cRn(E,i),s&&E.errors.push(s),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(S=>{w[S]||(w[S]={});const x=E.loaded[S];x.length&&x.forEach(A=>{w[S][A]===void 0&&(w[S][A]=!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,s,u,d=0,g=this.retryTimeout,b){if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:u,tried:d,wait:g,callback:b});return}this.readingCalls++;const w=(S,x)=>{if(this.readingCalls--,this.waitingReads.length>0){const A=this.waitingReads.shift();this.read(A.lng,A.ns,A.fcName,A.tried,A.wait,A.callback)}if(S&&x&&d{this.read.call(this,i,s,u,d+1,g*2,b)},g);return}b(S,x)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const S=E(i,s);S&&typeof S.then=="function"?S.then(x=>w(null,x)).catch(w):w(null,S)}catch(S){w(S)}return}return E(i,s,w)}prepareLoading(i,s,u={},d){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();vo(i)&&(i=this.languageUtils.toResolveHierarchy(i)),vo(s)&&(s=[s]);const g=this.queueLoad(i,s,u,d);if(!g.toLoad.length)return g.pending.length||d(),null;g.toLoad.forEach(b=>{this.loadOne(b)})}load(i,s,u){this.prepareLoading(i,s,{},u)}reload(i,s,u){this.prepareLoading(i,s,{reload:!0},u)}loadOne(i,s=""){const u=i.split("|"),d=u[0],g=u[1];this.read(d,g,"read",void 0,void 0,(b,w)=>{b&&this.logger.warn(`${s}loading namespace ${g} for language ${d} failed`,b),!b&&w&&this.logger.log(`${s}loaded namespace ${g} for language ${d}`,w),this.loaded(i,b,w)})}saveMissing(i,s,u,d,g,b={},w=()=>{}){var E,S,x,A,C;if((S=(E=this.services)==null?void 0:E.utils)!=null&&S.hasLoadedNamespace&&!((A=(x=this.services)==null?void 0:x.utils)!=null&&A.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${u}" as the namespace "${s}" 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(!(u==null||u==="")){if((C=this.backend)!=null&&C.create){const R={...b,isUpdate:g},D=this.backend.create.bind(this.backend);if(D.length<6)try{let L;D.length===5?L=D(i,s,u,d,R):L=D(i,s,u,d),L&&typeof L.then=="function"?L.then(B=>w(null,B)).catch(w):w(null,L)}catch(L){w(L)}else D(i,s,u,d,w,R)}!i||!i[0]||this.store.addResource(i[0],s,u,d)}}}const MCe=()=>({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]),vo(n[1])&&(i.defaultValue=n[1]),vo(n[2])&&(i.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const s=n[3]||n[2];Object.keys(s).forEach(u=>{i[u]=s[u]})}return i},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),bMt=n=>{var i,s;return vo(n.ns)&&(n.ns=[n.ns]),vo(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),vo(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((s=(i=n.supportedLngs)==null?void 0:i.indexOf)==null?void 0:s.call(i,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},die=()=>{},dRn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(s=>{typeof n[s]=="function"&&(n[s]=n[s].bind(n))})};class mH extends Gse{constructor(i={},s){if(super(),this.options=bMt(i),this.services={},this.logger=L2,this.modules={external:[]},dRn(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(vo(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const u=MCe();this.options={...u,...this.options,...bMt(i)},this.options.interpolation={...u.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=u.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?L2.init(d(this.modules.logger),this.options):L2.init(null,this.options);let S;this.modules.formatter?S=this.modules.formatter:S=uRn;const x=new lMt(this.options);this.store=new uMt(this.options.resources,this.options);const A=this.services;A.logger=L2,A.resourceStore=this.store,A.languageUtils=x,A.pluralResolver=new oRn(x,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==u.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===u.interpolation.format)&&(A.formatter=d(S),A.formatter.init&&A.formatter.init(A,this.options),this.options.interpolation.format=A.formatter.format.bind(A.formatter)),A.interpolator=new pMt(this.options),A.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},A.backendConnector=new lRn(d(this.modules.backend),A.resourceStore,A,this.options),A.backendConnector.on("*",(R,...D)=>{this.emit(R,...D)}),this.modules.languageDetector&&(A.languageDetector=d(this.modules.languageDetector),A.languageDetector.init&&A.languageDetector.init(A,this.options.detection,this.options)),this.modules.i18nFormat&&(A.i18nFormat=d(this.modules.i18nFormat),A.i18nFormat.init&&A.i18nFormat.init(this)),this.translator=new Foe(this.services,this.options),this.translator.on("*",(R,...D)=>{this.emit(R,...D)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,s||(s=die),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]=(...x)=>this.store[S](...x)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(S=>{this[S]=(...x)=>(this.store[S](...x),this)});const w=jU(),E=()=>{const S=(x,A)=>{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),s(x,A)};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,s=die){var g,b;let u=s;const d=vo(i)?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if((d==null?void 0:d.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const w=[],E=S=>{if(!S||S==="cimode")return;this.services.languageUtils.toResolveHierarchy(S).forEach(A=>{A!=="cimode"&&w.indexOf(A)<0&&w.push(A)})};d?E(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(x=>E(x)),(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),u(S)})}else u(null)}reloadResources(i,s,u){const d=jU();return typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),u||(u=die),this.services.backendConnector.reload(i,s,g=>{d.resolve(),u(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"&&hHt.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 s=0;s-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const u=jU();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,u.resolve((...S)=>this.t(...S)),s&&s(w,(...S)=>this.t(...S))},b=w=>{var x,A;!i&&!w&&this.services.languageDetector&&(w=[]);const E=vo(w)?w:w&&w[0],S=this.store.hasLanguageSomeTranslations(E)?E:this.services.languageUtils.getBestMatchFromCodes(vo(w)?[w]:w);S&&(this.language||d(S),this.translator.language||this.translator.changeLanguage(S),(A=(x=this.services.languageDetector)==null?void 0:x.cacheUserLanguage)==null||A.call(x,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),u}getFixedT(i,s,u){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||u||d.keyPrefix);const S=this.options.keySeparator||".";let x;return E.keyPrefix&&Array.isArray(g)?x=g.map(A=>(typeof A=="function"&&(A=rLe(A,{...this.options,...b})),`${E.keyPrefix}${S}${A}`)):(typeof g=="function"&&(g=rLe(g,{...this.options,...b})),x=E.keyPrefix?`${E.keyPrefix}${S}${g}`:g),this.t(x,E)};return vo(i)?d.lng=i:d.lngs=i,d.ns=s,d.keyPrefix=u,d}t(...i){var s;return(s=this.translator)==null?void 0:s.translate(...i)}exists(...i){var s;return(s=this.translator)==null?void 0:s.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){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 u=s.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,g=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(w,E)=>{const S=this.services.backendConnector.state[`${w}|${E}`];return S===-1||S===0||S===2};if(s.precheck){const w=s.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(u,i)&&(!d||b(g,i)))}loadNamespaces(i,s){const u=jU();return this.options.ns?(vo(i)&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),s&&s(d)}),u):(s&&s(),Promise.resolve())}loadLanguages(i,s){const u=jU();vo(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=>{u.resolve(),s&&s(b)}),u):(s&&s(),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 s=["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"],u=((g=this.services)==null?void 0:g.languageUtils)||new lMt(MCe());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const u=new mH(i,s);return u.createInstance=mH.createInstance,u}cloneInstance(i={},s=die){const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},g=new mH(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)},u){const w=Object.keys(this.store.data).reduce((E,S)=>(E[S]={...this.store.data[S]},E[S]=Object.keys(E[S]).reduce((x,A)=>(x[A]={...E[S][A]},x),E[S]),E),{});g.store=new uMt(w,d),g.services.resourceStore=g.store}if(i.interpolation){const E={...MCe().interpolation,...this.options.interpolation,...i.interpolation},S={...d,interpolation:E};g.services.interpolator=new pMt(S)}return g.translator=new Foe(g.services,d),g.translator.on("*",(w,...E)=>{g.emit(w,...E)}),g.init(d,s),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 Hh=mH.createInstance();Hh.createInstance;Hh.dir;Hh.init;Hh.loadResources;Hh.reloadResources;Hh.use;Hh.changeLanguage;Hh.getFixedT;const Xie=Hh.t;Hh.exists;Hh.setDefaultNamespace;Hh.hasLoadedNamespace;Hh.loadNamespaces;Hh.loadLanguages;const fRn=(n,i,s,u)=>{var g,b,w,E;const d=[s,{code:i,...u||{}}];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);lR(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)},mMt={},gHt=(n,i,s,u)=>{lR(s)&&mMt[s]||(lR(s)&&(mMt[s]=new Date),fRn(n,i,s,u))},bHt=(n,i)=>()=>{if(n.isInitialized)i();else{const s=()=>{setTimeout(()=>{n.off("initialized",s)},0),i()};n.on("initialized",s)}},iLe=(n,i,s)=>{n.loadNamespaces(i,bHt(n,s))},wMt=(n,i,s,u)=>{if(lR(s)&&(s=[s]),n.options.preload&&n.options.preload.indexOf(i)>-1)return iLe(n,s,u);s.forEach(d=>{n.options.ns.indexOf(d)<0&&n.options.ns.push(d)}),n.loadLanguages(i,bHt(n,u))},hRn=(n,i,s={})=>!i.languages||!i.languages.length?(gHt(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(n,{lng:s.lng,precheck:(u,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!d(u.isLanguageChangingTo,n))return!1}}),lR=n=>typeof n=="string",pRn=n=>typeof n=="object"&&n!==null,gRn=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,bRn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},mRn=n=>bRn[n],wRn=n=>n.replace(gRn,mRn);let oLe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:wRn,transDefaultProps:void 0};const yRn=(n={})=>{oLe={...oLe,...n}},vRn=()=>oLe;let mHt;const ERn=n=>{mHt=n},SRn=()=>mHt,TRn={type:"3rdParty",init(n){yRn(n.options.react),ERn(n)}},wHt=H.createContext();class ARn{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var yHt={exports:{}},vHt={};/** - * @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 wM=H;function _Rn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var xRn=typeof Object.is=="function"?Object.is:_Rn,kRn=wM.useState,NRn=wM.useEffect,CRn=wM.useLayoutEffect,IRn=wM.useDebugValue;function RRn(n,i){var s=i(),u=kRn({inst:{value:s,getSnapshot:i}}),d=u[0].inst,g=u[1];return CRn(function(){d.value=s,d.getSnapshot=i,PCe(d)&&g({inst:d})},[n,s,i]),NRn(function(){return PCe(d)&&g({inst:d}),n(function(){PCe(d)&&g({inst:d})})},[n]),IRn(s),s}function PCe(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!xRn(n,s)}catch{return!0}}function ORn(n,i){return i()}var LRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ORn:RRn;vHt.useSyncExternalStore=wM.useSyncExternalStore!==void 0?wM.useSyncExternalStore:LRn;yHt.exports=vHt;var EHt=yHt.exports;const DRn=(n,i)=>lR(i)?i:pRn(i)&&lR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,MRn={t:DRn,ready:!1},PRn=()=>()=>{},ps=(n,i={})=>{var he,ge,ce;const{i18n:s}=i,{i18n:u,defaultNS:d}=H.useContext(wHt)||{},g=s||u||SRn();g&&!g.reportNamespaces&&(g.reportNamespaces=new ARn),g||gHt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=H.useMemo(()=>{var fe;return{...vRn(),...(fe=g==null?void 0:g.options)==null?void 0:fe.react,...i}},[g,i]),{useSuspense:w,keyPrefix:E}=b,S=n||d||((he=g==null?void 0:g.options)==null?void 0:he.defaultNS),x=lR(S)?[S]:S||["translation"],A=H.useMemo(()=>x,x);(ce=(ge=g==null?void 0:g.reportNamespaces)==null?void 0:ge.addUsedNamespaces)==null||ce.call(ge,A);const C=H.useRef(0),R=H.useCallback(fe=>{if(!g)return PRn;const{bindI18n:K,bindI18nStore:pe}=b,Oe=()=>{C.current+=1,fe()};return K&&g.on(K,Oe),pe&&g.store.on(pe,Oe),()=>{K&&K.split(" ").forEach(Se=>g.off(Se,Oe)),pe&&pe.split(" ").forEach(Se=>g.store.off(Se,Oe))}},[g,b]),D=H.useRef(),L=H.useCallback(()=>{if(!g)return MRn;const fe=!!(g.isInitialized||g.initializedStoreOnce)&&A.every(Ae=>hRn(Ae,g,b)),K=i.lng||g.language,pe=C.current,Oe=D.current;if(Oe&&Oe.ready===fe&&Oe.lng===K&&Oe.keyPrefix===E&&Oe.revision===pe)return Oe;const De={t:g.getFixedT(K,b.nsMode==="fallback"?A:A[0],E),ready:fe,lng:K,keyPrefix:E,revision:pe};return D.current=De,De},[g,A,E,b,i.lng]),[B,$]=H.useState(0),{t:j,ready:P}=EHt.useSyncExternalStore(R,L,L);H.useEffect(()=>{if(g&&!P&&!w){const fe=()=>$(K=>K+1);i.lng?wMt(g,i.lng,A,fe):iLe(g,A,fe)}},[g,i.lng,A,P,w,B]);const G=g||{},ee=H.useRef(null),ne=H.useRef(),Q=fe=>{const K=Object.getOwnPropertyDescriptors(fe);K.__original&&delete K.__original;const pe=Object.create(Object.getPrototypeOf(fe),K);if(!Object.prototype.hasOwnProperty.call(pe,"__original"))try{Object.defineProperty(pe,"__original",{value:fe,writable:!1,enumerable:!1,configurable:!1})}catch{}return pe},ie=H.useMemo(()=>{const fe=G,K=fe==null?void 0:fe.language;let pe=fe;fe&&(ee.current&&ee.current.__original===fe?ne.current!==K?(pe=Q(fe),ee.current=pe,ne.current=K):pe=ee.current:(pe=Q(fe),ee.current=pe,ne.current=K));const Oe=[j,pe,P];return Oe.t=j,Oe.i18n=pe,Oe.ready=P,Oe},[j,G,P,G.resolvedLanguage,G.language,G.languages]);if(g&&w&&!P)throw new Promise(fe=>{const K=()=>fe();i.lng?wMt(g,i.lng,A,K):iLe(g,A,K)});return ie};function yMt({i18n:n,defaultNS:i,children:s}){const u=H.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return H.createElement(wHt.Provider,{value:u},s)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let s=0,u;s{}};function qse(){for(var n=0,i=arguments.length,s={},u;n=0&&(u=s.slice(d+1),s=s.slice(0,d)),s&&!i.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}Zie.prototype=qse.prototype={constructor:Zie,on:function(n,i){var s=this._,u=FRn(n+"",s),d,g=-1,b=u.length;if(arguments.length<2){for(;++g0)for(var s=new Array(d),u=0,d,g;u=0&&(i=n.slice(0,s))!=="xmlns"&&(n=n.slice(s+1)),EMt.hasOwnProperty(i)?{space:EMt[i],local:n}:n}function BRn(n){return function(){var i=this.ownerDocument,s=this.namespaceURI;return s===sLe&&i.documentElement.namespaceURI===sLe?i.createElement(n):i.createElementNS(s,n)}}function URn(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function SHt(n){var i=Vse(n);return(i.local?URn:BRn)(i)}function HRn(){}function E5e(n){return n==null?HRn:function(){return this.querySelector(n)}}function zRn(n){typeof n!="function"&&(n=E5e(n));for(var i=this._groups,s=i.length,u=new Array(s),d=0;d=P&&(P=j+1);!(ee=B[P])&&++P=0;)(b=u[d])&&(g&&b.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(b,g),g=b);return this}function pOn(n){n||(n=gOn);function i(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var s=this._groups,u=s.length,d=new Array(u),g=0;gi?1:n>=i?0:NaN}function bOn(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function mOn(){return Array.from(this)}function wOn(){for(var n=this._groups,i=0,s=n.length;i1?this.each((i==null?COn:typeof i=="function"?ROn:IOn)(n,i,s??"")):yM(this.node(),n)}function yM(n,i){return n.style.getPropertyValue(i)||kHt(n).getComputedStyle(n,null).getPropertyValue(i)}function LOn(n){return function(){delete this[n]}}function DOn(n,i){return function(){this[n]=i}}function MOn(n,i){return function(){var s=i.apply(this,arguments);s==null?delete this[n]:this[n]=s}}function POn(n,i){return arguments.length>1?this.each((i==null?LOn:typeof i=="function"?MOn:DOn)(n,i)):this.node()[n]}function NHt(n){return n.trim().split(/^|\s+/)}function S5e(n){return n.classList||new CHt(n)}function CHt(n){this._node=n,this._names=NHt(n.getAttribute("class")||"")}CHt.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 IHt(n,i){for(var s=S5e(n),u=-1,d=i.length;++u=0&&(s=i.slice(u+1),i=i.slice(0,u)),{type:i,name:s}})}function l6n(n){return function(){var i=this.__on;if(i){for(var s=0,u=-1,d=i.length,g;s()=>n;function aLe(n,{sourceEvent:i,subject:s,target:u,identifier:d,active:g,x:b,y:w,dx:E,dy:S,dispatch:x}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:s,enumerable:!0,configurable:!0},target:{value:u,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:x}})}aLe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function v6n(n){return!n.ctrlKey&&!n.button}function E6n(){return this.parentNode}function S6n(n,i){return i??{x:n.x,y:n.y}}function T6n(){return navigator.maxTouchPoints||"ontouchstart"in this}function PHt(){var n=v6n,i=E6n,s=S6n,u=T6n,d={},g=qse("start","drag","end"),b=0,w,E,S,x,A=0;function C(G){G.on("mousedown.drag",R).filter(u).on("touchstart.drag",B).on("touchmove.drag",$,y6n).on("touchend.drag touchcancel.drag",j).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(G,ee){if(!(x||!n.call(this,G,ee))){var ne=P(this,i.call(this,G,ee),G,ee,"mouse");ne&&(jm(G.view).on("mousemove.drag",D,GH).on("mouseup.drag",L,GH),DHt(G.view),jCe(G),S=!1,w=G.clientX,E=G.clientY,ne("start",G))}}function D(G){if(tM(G),!S){var ee=G.clientX-w,ne=G.clientY-E;S=ee*ee+ne*ne>A}d.mouse("drag",G)}function L(G){jm(G.view).on("mousemove.drag mouseup.drag",null),MHt(G.view,S),tM(G),d.mouse("end",G)}function B(G,ee){if(n.call(this,G,ee)){var ne=G.changedTouches,Q=i.call(this,G,ee),ie=ne.length,he,ge;for(he=0;he>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):s===8?hie(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):s===4?hie(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=_6n.exec(n))?new ab(i[1],i[2],i[3],1):(i=x6n.exec(n))?new ab(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=k6n.exec(n))?hie(i[1],i[2],i[3],i[4]):(i=N6n.exec(n))?hie(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=C6n.exec(n))?NMt(i[1],i[2]/100,i[3]/100,1):(i=I6n.exec(n))?NMt(i[1],i[2]/100,i[3]/100,i[4]):SMt.hasOwnProperty(n)?_Mt(SMt[n]):n==="transparent"?new ab(NaN,NaN,NaN,0):null}function _Mt(n){return new ab(n>>16&255,n>>8&255,n&255,1)}function hie(n,i,s,u){return u<=0&&(n=i=s=NaN),new ab(n,i,s,u)}function L6n(n){return n instanceof Sz||(n=dR(n)),n?(n=n.rgb(),new ab(n.r,n.g,n.b,n.opacity)):new ab}function uLe(n,i,s,u){return arguments.length===1?L6n(n):new ab(n,i,s,u??1)}function ab(n,i,s,u){this.r=+n,this.g=+i,this.b=+s,this.opacity=+u}T5e(ab,uLe,jHt(Sz,{brighter(n){return n=n==null?Boe:Math.pow(Boe,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?qH:Math.pow(qH,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new ab(tR(this.r),tR(this.g),tR(this.b),Uoe(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:xMt,formatHex:xMt,formatHex8:D6n,formatRgb:kMt,toString:kMt}));function xMt(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}`}function D6n(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}${Z4((isNaN(this.opacity)?1:this.opacity)*255)}`}function kMt(){const n=Uoe(this.opacity);return`${n===1?"rgb(":"rgba("}${tR(this.r)}, ${tR(this.g)}, ${tR(this.b)}${n===1?")":`, ${n})`}`}function Uoe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function tR(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Z4(n){return n=tR(n),(n<16?"0":"")+n.toString(16)}function NMt(n,i,s,u){return u<=0?n=i=s=NaN:s<=0||s>=1?n=i=NaN:i<=0&&(n=NaN),new Iv(n,i,s,u)}function FHt(n){if(n instanceof Iv)return new Iv(n.h,n.s,n.l,n.opacity);if(n instanceof Sz||(n=dR(n)),!n)return new Iv;if(n instanceof Iv)return n;n=n.rgb();var i=n.r/255,s=n.g/255,u=n.b/255,d=Math.min(i,s,u),g=Math.max(i,s,u),b=NaN,w=g-d,E=(g+d)/2;return w?(i===g?b=(s-u)/w+(s0&&E<1?0:b,new Iv(b,w,E,n.opacity)}function M6n(n,i,s,u){return arguments.length===1?FHt(n):new Iv(n,i,s,u??1)}function Iv(n,i,s,u){this.h=+n,this.s=+i,this.l=+s,this.opacity=+u}T5e(Iv,M6n,jHt(Sz,{brighter(n){return n=n==null?Boe:Math.pow(Boe,n),new Iv(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?qH:Math.pow(qH,n),new Iv(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,s=this.l,u=s+(s<.5?s:1-s)*i,d=2*s-u;return new ab(FCe(n>=240?n-240:n+120,d,u),FCe(n,d,u),FCe(n<120?n+240:n-120,d,u),this.opacity)},clamp(){return new Iv(CMt(this.h),pie(this.s),pie(this.l),Uoe(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=Uoe(this.opacity);return`${n===1?"hsl(":"hsla("}${CMt(this.h)}, ${pie(this.s)*100}%, ${pie(this.l)*100}%${n===1?")":`, ${n})`}`}}));function CMt(n){return n=(n||0)%360,n<0?n+360:n}function pie(n){return Math.max(0,Math.min(1,n||0))}function FCe(n,i,s){return(n<60?i+(s-i)*n/60:n<180?s:n<240?i+(s-i)*(240-n)/60:i)*255}const A5e=n=>()=>n;function P6n(n,i){return function(s){return n+s*i}}function j6n(n,i,s){return n=Math.pow(n,s),i=Math.pow(i,s)-n,s=1/s,function(u){return Math.pow(n+u*i,s)}}function F6n(n){return(n=+n)==1?$Ht:function(i,s){return s-i?j6n(i,s,n):A5e(isNaN(i)?s:i)}}function $Ht(n,i){var s=i-n;return s?P6n(n,s):A5e(isNaN(n)?i:n)}const Hoe=function n(i){var s=F6n(i);function u(d,g){var b=s((d=uLe(d)).r,(g=uLe(g)).r),w=s(d.g,g.g),E=s(d.b,g.b),S=$Ht(d.opacity,g.opacity);return function(x){return d.r=b(x),d.g=w(x),d.b=E(x),d.opacity=S(x),d+""}}return u.gamma=n,u}(1);function $6n(n,i){i||(i=[]);var s=n?Math.min(i.length,n.length):0,u=i.slice(),d;return function(g){for(d=0;ds&&(g=i.slice(s,g),w[b]?w[b]+=g:w[++b]=g),(u=u[0])===(d=d[0])?w[b]?w[b]+=d:w[++b]=d:(w[++b]=null,E.push({i:b,x:C2(u,d)})),s=$Ce.lastIndex;return s180?x+=360:x-S>180&&(S+=360),C.push({i:A.push(d(A)+"rotate(",null,u)-2,x:C2(S,x)})):x&&A.push(d(A)+"rotate("+x+u)}function w(S,x,A,C){S!==x?C.push({i:A.push(d(A)+"skewX(",null,u)-2,x:C2(S,x)}):x&&A.push(d(A)+"skewX("+x+u)}function E(S,x,A,C,R,D){if(S!==A||x!==C){var L=R.push(d(R)+"scale(",null,",",null,")");D.push({i:L-4,x:C2(S,A)},{i:L-2,x:C2(x,C)})}else(A!==1||C!==1)&&R.push(d(R)+"scale("+A+","+C+")")}return function(S,x){var A=[],C=[];return S=n(S),x=n(x),g(S.translateX,S.translateY,x.translateX,x.translateY,A,C),b(S.rotate,x.rotate,A,C),w(S.skewX,x.skewX,A,C),E(S.scaleX,S.scaleY,x.scaleX,x.scaleY,A,C),S=x=null,function(R){for(var D=-1,L=C.length,B;++D=0&&n._call.call(void 0,i),n=n._next;--vM}function OMt(){fR=(Goe=WH.now())+Wse,vM=JU=0;try{eLn()}finally{vM=0,nLn(),fR=0}}function tLn(){var n=WH.now(),i=n-Goe;i>zHt&&(Wse-=i,Goe=n)}function nLn(){for(var n,i=zoe,s,u=1/0;i;)i._call?(u>i._time&&(u=i._time),n=i,i=i._next):(s=i._next,i._next=null,i=n?n._next=s:zoe=s);XU=n,dLe(u)}function dLe(n){if(!vM){JU&&(JU=clearTimeout(JU));var i=n-fR;i>24?(n<1/0&&(JU=setTimeout(OMt,n-WH.now()-Wse)),FU&&(FU=clearInterval(FU))):(FU||(Goe=WH.now(),FU=setInterval(tLn,zHt)),vM=1,GHt(OMt))}}function LMt(n,i,s){var u=new qoe;return i=i==null?0:+i,u.restart(d=>{u.stop(),n(d+i)},i,s),u}var rLn=qse("start","end","cancel","interrupt"),iLn=[],VHt=0,DMt=1,fLe=2,eoe=3,MMt=4,hLe=5,toe=6;function Kse(n,i,s,u,d,g){var b=n.__transition;if(!b)n.__transition={};else if(s in b)return;oLn(n,s,{name:i,index:u,group:d,on:rLn,tween:iLn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:VHt})}function x5e(n,i){var s=Bv(n,i);if(s.state>VHt)throw new Error("too late; already scheduled");return s}function W2(n,i){var s=Bv(n,i);if(s.state>eoe)throw new Error("too late; already running");return s}function Bv(n,i){var s=n.__transition;if(!s||!(s=s[i]))throw new Error("transition not found");return s}function oLn(n,i,s){var u=n.__transition,d;u[i]=s,s.timer=qHt(g,0,s.time);function g(S){s.state=DMt,s.timer.restart(b,s.delay,s.time),s.delay<=S&&b(S-s.delay)}function b(S){var x,A,C,R;if(s.state!==DMt)return E();for(x in u)if(R=u[x],R.name===s.name){if(R.state===eoe)return LMt(b);R.state===MMt?(R.state=toe,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete u[x]):+xfLe&&u.state=0&&(i=i.slice(0,s)),!i||i==="start"})}function MLn(n,i,s){var u,d,g=DLn(i)?x5e:W2;return function(){var b=g(this,n),w=b.on;w!==u&&(d=(u=w).copy()).on(i,s),b.on=d}}function PLn(n,i){var s=this._id;return arguments.length<2?Bv(this.node(),s).on.on(n):this.each(MLn(s,n,i))}function jLn(n){return function(){var i=this.parentNode;for(var s in this.__transition)if(+s!==n)return;i&&i.removeChild(this)}}function FLn(){return this.on("end.remove",jLn(this._id))}function $Ln(n){var i=this._name,s=this._id;typeof n!="function"&&(n=E5e(n));for(var u=this._groups,d=u.length,g=new Array(d),b=0;b()=>n;function lDn(n,{sourceEvent:i,target:s,transform:u,dispatch:d}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}function lA(n,i,s){this.k=n,this.x=i,this.y=s}lA.prototype={constructor:lA,scale:function(n){return n===1?this:new lA(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new lA(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 Yse=new lA(1,0,0);JHt.prototype=lA.prototype;function JHt(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Yse;return n.__zoom}function BCe(n){n.stopImmediatePropagation()}function $U(n){n.preventDefault(),n.stopImmediatePropagation()}function dDn(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function fDn(){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 PMt(){return this.__zoom||Yse}function hDn(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function pDn(){return navigator.maxTouchPoints||"ontouchstart"in this}function gDn(n,i,s){var u=n.invertX(i[0][0])-s[0][0],d=n.invertX(i[1][0])-s[1][0],g=n.invertY(i[0][1])-s[0][1],b=n.invertY(i[1][1])-s[1][1];return n.translate(d>u?(u+d)/2:Math.min(0,u)||Math.max(0,d),b>g?(g+b)/2:Math.min(0,g)||Math.max(0,b))}function XHt(){var n=dDn,i=fDn,s=gDn,u=hDn,d=pDn,g=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,E=Qie,S=qse("start","zoom","end"),x,A,C,R=500,D=150,L=0,B=10;function $(pe){pe.property("__zoom",PMt).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",he).on("dblclick.zoom",ge).filter(d).on("touchstart.zoom",ce).on("touchmove.zoom",fe).on("touchend.zoom touchcancel.zoom",K).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}$.transform=function(pe,Oe,Se,De){var Ae=pe.selection?pe.selection():pe;Ae.property("__zoom",PMt),pe!==Ae?ee(pe,Oe,Se,De):Ae.interrupt().each(function(){ne(this,arguments).event(De).start().zoom(null,typeof Oe=="function"?Oe.apply(this,arguments):Oe).end()})},$.scaleBy=function(pe,Oe,Se,De){$.scaleTo(pe,function(){var Ae=this.__zoom.k,xe=typeof Oe=="function"?Oe.apply(this,arguments):Oe;return Ae*xe},Se,De)},$.scaleTo=function(pe,Oe,Se,De){$.transform(pe,function(){var Ae=i.apply(this,arguments),xe=this.__zoom,We=Se==null?G(Ae):typeof Se=="function"?Se.apply(this,arguments):Se,dt=xe.invert(We),Ue=typeof Oe=="function"?Oe.apply(this,arguments):Oe;return s(P(j(xe,Ue),We,dt),Ae,b)},Se,De)},$.translateBy=function(pe,Oe,Se,De){$.transform(pe,function(){return s(this.__zoom.translate(typeof Oe=="function"?Oe.apply(this,arguments):Oe,typeof Se=="function"?Se.apply(this,arguments):Se),i.apply(this,arguments),b)},null,De)},$.translateTo=function(pe,Oe,Se,De,Ae){$.transform(pe,function(){var xe=i.apply(this,arguments),We=this.__zoom,dt=De==null?G(xe):typeof De=="function"?De.apply(this,arguments):De;return s(Yse.translate(dt[0],dt[1]).scale(We.k).translate(typeof Oe=="function"?-Oe.apply(this,arguments):-Oe,typeof Se=="function"?-Se.apply(this,arguments):-Se),xe,b)},De,Ae)};function j(pe,Oe){return Oe=Math.max(g[0],Math.min(g[1],Oe)),Oe===pe.k?pe:new lA(Oe,pe.x,pe.y)}function P(pe,Oe,Se){var De=Oe[0]-Se[0]*pe.k,Ae=Oe[1]-Se[1]*pe.k;return De===pe.x&&Ae===pe.y?pe:new lA(pe.k,De,Ae)}function G(pe){return[(+pe[0][0]+ +pe[1][0])/2,(+pe[0][1]+ +pe[1][1])/2]}function ee(pe,Oe,Se,De){pe.on("start.zoom",function(){ne(this,arguments).event(De).start()}).on("interrupt.zoom end.zoom",function(){ne(this,arguments).event(De).end()}).tween("zoom",function(){var Ae=this,xe=arguments,We=ne(Ae,xe).event(De),dt=i.apply(Ae,xe),Ue=Se==null?G(dt):typeof Se=="function"?Se.apply(Ae,xe):Se,bt=Math.max(dt[1][0]-dt[0][0],dt[1][1]-dt[0][1]),kt=Ae.__zoom,ht=typeof Oe=="function"?Oe.apply(Ae,xe):Oe,Xt=E(kt.invert(Ue).concat(bt/kt.k),ht.invert(Ue).concat(bt/ht.k));return function(vt){if(vt===1)vt=ht;else{var Ct=Xt(vt),Ft=bt/Ct[2];vt=new lA(Ft,Ue[0]-Ct[0]*Ft,Ue[1]-Ct[1]*Ft)}We.zoom(null,vt)}})}function ne(pe,Oe,Se){return!Se&&pe.__zooming||new Q(pe,Oe)}function Q(pe,Oe){this.that=pe,this.args=Oe,this.active=0,this.sourceEvent=null,this.extent=i.apply(pe,Oe),this.taps=0}Q.prototype={event:function(pe){return pe&&(this.sourceEvent=pe),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(pe,Oe){return this.mouse&&pe!=="mouse"&&(this.mouse[1]=Oe.invert(this.mouse[0])),this.touch0&&pe!=="touch"&&(this.touch0[1]=Oe.invert(this.touch0[0])),this.touch1&&pe!=="touch"&&(this.touch1[1]=Oe.invert(this.touch1[0])),this.that.__zoom=Oe,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(pe){var Oe=jm(this.that).datum();S.call(pe,this.that,new lDn(pe,{sourceEvent:this.sourceEvent,target:$,transform:this.that.__zoom,dispatch:S}),Oe)}};function ie(pe,...Oe){if(!n.apply(this,arguments))return;var Se=ne(this,Oe).event(pe),De=this.__zoom,Ae=Math.max(g[0],Math.min(g[1],De.k*Math.pow(2,u.apply(this,arguments)))),xe=Nv(pe);if(Se.wheel)(Se.mouse[0][0]!==xe[0]||Se.mouse[0][1]!==xe[1])&&(Se.mouse[1]=De.invert(Se.mouse[0]=xe)),clearTimeout(Se.wheel);else{if(De.k===Ae)return;Se.mouse=[xe,De.invert(xe)],noe(this),Se.start()}$U(pe),Se.wheel=setTimeout(We,D),Se.zoom("mouse",s(P(j(De,Ae),Se.mouse[0],Se.mouse[1]),Se.extent,b));function We(){Se.wheel=null,Se.end()}}function he(pe,...Oe){if(C||!n.apply(this,arguments))return;var Se=pe.currentTarget,De=ne(this,Oe,!0).event(pe),Ae=jm(pe.view).on("mousemove.zoom",Ue,!0).on("mouseup.zoom",bt,!0),xe=Nv(pe,Se),We=pe.clientX,dt=pe.clientY;DHt(pe.view),BCe(pe),De.mouse=[xe,this.__zoom.invert(xe)],noe(this),De.start();function Ue(kt){if($U(kt),!De.moved){var ht=kt.clientX-We,Xt=kt.clientY-dt;De.moved=ht*ht+Xt*Xt>L}De.event(kt).zoom("mouse",s(P(De.that.__zoom,De.mouse[0]=Nv(kt,Se),De.mouse[1]),De.extent,b))}function bt(kt){Ae.on("mousemove.zoom mouseup.zoom",null),MHt(kt.view,De.moved),$U(kt),De.event(kt).end()}}function ge(pe,...Oe){if(n.apply(this,arguments)){var Se=this.__zoom,De=Nv(pe.changedTouches?pe.changedTouches[0]:pe,this),Ae=Se.invert(De),xe=Se.k*(pe.shiftKey?.5:2),We=s(P(j(Se,xe),De,Ae),i.apply(this,Oe),b);$U(pe),w>0?jm(this).transition().duration(w).call(ee,We,De,pe):jm(this).call($.transform,We,De,pe)}}function ce(pe,...Oe){if(n.apply(this,arguments)){var Se=pe.touches,De=Se.length,Ae=ne(this,Oe,pe.changedTouches.length===De).event(pe),xe,We,dt,Ue;for(BCe(pe),We=0;We"[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:s,targetHandle:u})=>`Couldn't create edge for ${n} handle id: "${n==="source"?s:u}", 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."},KH=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],ZHt=["Enter"," ","Escape"],QHt={"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:s})=>`Moved selected node ${n}. New position, x: ${i}, y: ${s}`,"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 EM;(function(n){n.Strict="strict",n.Loose="loose"})(EM||(EM={}));var nR;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(nR||(nR={}));var YH;(function(n){n.Partial="partial",n.Full="full"})(YH||(YH={}));const ezt={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Bk;(function(n){n.Bezier="default",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n.SimpleBezier="simplebezier"})(Bk||(Bk={}));var sA;(function(n){n.Arrow="arrow",n.ArrowClosed="arrowclosed"})(sA||(sA={}));var qr;(function(n){n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom"})(qr||(qr={}));const jMt={[qr.Left]:qr.Right,[qr.Right]:qr.Left,[qr.Top]:qr.Bottom,[qr.Bottom]:qr.Top};function tzt(n){return n===null?null:n?"valid":"invalid"}const nzt=n=>"id"in n&&"source"in n&&"target"in n,bDn=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),N5e=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),Tz=(n,i=[0,0])=>{const{width:s,height:u}=_A(n),d=n.origin??i,g=s*d[0],b=u*d[1];return{x:n.position.x-g,y:n.position.y-b}},mDn=(n,i={nodeOrigin:[0,0]})=>{if(n.length===0)return{x:0,y:0,width:0,height:0};const s=n.reduce((u,d)=>{const g=typeof d=="string";let b=!i.nodeLookup&&!g?d:void 0;i.nodeLookup&&(b=g?i.nodeLookup.get(d):N5e(d)?d:i.nodeLookup.get(d.id));const w=b?Voe(b,i.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Jse(u,w)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Xse(s)},Az=(n,i={})=>{let s={x:1/0,y:1/0,x2:-1/0,y2:-1/0},u=!1;return n.forEach(d=>{(i.filter===void 0||i.filter(d))&&(s=Jse(s,Voe(d)),u=!0)}),u?Xse(s):{x:0,y:0,width:0,height:0}},C5e=(n,i,[s,u,d]=[0,0,1],g=!1,b=!1)=>{const w={...xz(i,[s,u,d]),width:i.width/d,height:i.height/d},E=[];for(const S of n.values()){const{measured:x,selectable:A=!0,hidden:C=!1}=S;if(b&&!A||C)continue;const R=x.width??S.width??S.initialWidth??null,D=x.height??S.height??S.initialHeight??null,L=JH(w,TM(S)),B=(R??0)*(D??0),$=g&&L>0;(!S.internals.handleBounds||$||L>=B||S.dragging)&&E.push(S)}return E},wDn=(n,i)=>{const s=new Set;return n.forEach(u=>{s.add(u.id)}),i.filter(u=>s.has(u.source)||s.has(u.target))};function yDn(n,i){const s=new Map,u=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)&&(!u||u.has(d.id))&&s.set(d.id,d)}),s}async function vDn({nodes:n,width:i,height:s,panZoom:u,minZoom:d,maxZoom:g},b){if(n.size===0)return Promise.resolve(!0);const w=yDn(n,b),E=Az(w),S=I5e(E,i,s,(b==null?void 0:b.minZoom)??d,(b==null?void 0:b.maxZoom)??g,(b==null?void 0:b.padding)??.1);return await u.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 rzt({nodeId:n,nextPosition:i,nodeLookup:s,nodeOrigin:u=[0,0],nodeExtent:d,onError:g}){const b=s.get(n),w=b.parentId?s.get(b.parentId):void 0,{x:E,y:S}=w?w.internals.positionAbsolute:{x:0,y:0},x=b.origin??u;let A=b.extent||d;if(b.extent==="parent"&&!b.expandParent)if(!w)g==null||g("005",z2.error005());else{const R=w.measured.width,D=w.measured.height;R&&D&&(A=[[E,S],[E+R,S+D]])}else w&&AM(b.extent)&&(A=[[b.extent[0][0]+E,b.extent[0][1]+S],[b.extent[1][0]+E,b.extent[1][1]+S]]);const C=AM(A)?hR(i,A,b.measured):i;return(b.measured.width===void 0||b.measured.height===void 0)&&(g==null||g("015",z2.error015())),{position:{x:C.x-E+(b.measured.width??0)*x[0],y:C.y-S+(b.measured.height??0)*x[1]},positionAbsolute:C}}async function EDn({nodesToRemove:n=[],edgesToRemove:i=[],nodes:s,edges:u,onBeforeDelete:d}){const g=new Set(n.map(C=>C.id)),b=[];for(const C of s){if(C.deletable===!1)continue;const R=g.has(C.id),D=!R&&C.parentId&&b.find(L=>L.id===C.parentId);(R||D)&&b.push(C)}const w=new Set(i.map(C=>C.id)),E=u.filter(C=>C.deletable!==!1),x=wDn(b,E);for(const C of E)w.has(C.id)&&!x.find(D=>D.id===C.id)&&x.push(C);if(!d)return{edges:x,nodes:b};const A=await d({nodes:b,edges:x});return typeof A=="boolean"?A?{edges:x,nodes:b}:{edges:[],nodes:[]}:A}const SM=(n,i=0,s=1)=>Math.min(Math.max(n,i),s),hR=(n={x:0,y:0},i,s)=>({x:SM(n.x,i[0][0],i[1][0]-((s==null?void 0:s.width)??0)),y:SM(n.y,i[0][1],i[1][1]-((s==null?void 0:s.height)??0))});function izt(n,i,s){const{width:u,height:d}=_A(s),{x:g,y:b}=s.internals.positionAbsolute;return hR(n,[[g,b],[g+u,b+d]],i)}const FMt=(n,i,s)=>ns?-SM(Math.abs(n-s),1,i)/i:0,ozt=(n,i,s=15,u=40)=>{const d=FMt(n.x,u,i.width-u)*s,g=FMt(n.y,u,i.height-u)*s;return[d,g]},Jse=(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)}),pLe=({x:n,y:i,width:s,height:u})=>({x:n,y:i,x2:n+s,y2:i+u}),Xse=({x:n,y:i,x2:s,y2:u})=>({x:n,y:i,width:s-n,height:u-i}),TM=(n,i=[0,0])=>{var d,g;const{x:s,y:u}=N5e(n)?n.internals.positionAbsolute:Tz(n,i);return{x:s,y:u,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}},Voe=(n,i=[0,0])=>{var d,g;const{x:s,y:u}=N5e(n)?n.internals.positionAbsolute:Tz(n,i);return{x:s,y:u,x2:s+(((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0),y2:u+(((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0)}},szt=(n,i)=>Xse(Jse(pLe(n),pLe(i))),JH=(n,i)=>{const s=Math.max(0,Math.min(n.x+n.width,i.x+i.width)-Math.max(n.x,i.x)),u=Math.max(0,Math.min(n.y+n.height,i.y+i.height)-Math.max(n.y,i.y));return Math.ceil(s*u)},$Mt=n=>Rv(n.width)&&Rv(n.height)&&Rv(n.x)&&Rv(n.y),Rv=n=>!isNaN(n)&&isFinite(n),SDn=(n,i)=>{},_z=(n,i=[1,1])=>({x:i[0]*Math.round(n.x/i[0]),y:i[1]*Math.round(n.y/i[1])}),xz=({x:n,y:i},[s,u,d],g=!1,b=[1,1])=>{const w={x:(n-s)/d,y:(i-u)/d};return g?_z(w,b):w},Woe=({x:n,y:i},[s,u,d])=>({x:n*d+s,y:i*d+u});function m5(n,i){if(typeof n=="number")return Math.floor((i-i/(1+n))*.5);if(typeof n=="string"&&n.endsWith("px")){const s=parseFloat(n);if(!Number.isNaN(s))return Math.floor(s)}if(typeof n=="string"&&n.endsWith("%")){const s=parseFloat(n);if(!Number.isNaN(s))return Math.floor(i*s*.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 TDn(n,i,s){if(typeof n=="string"||typeof n=="number"){const u=m5(n,s),d=m5(n,i);return{top:u,right:d,bottom:u,left:d,x:d*2,y:u*2}}if(typeof n=="object"){const u=m5(n.top??n.y??0,s),d=m5(n.bottom??n.y??0,s),g=m5(n.left??n.x??0,i),b=m5(n.right??n.x??0,i);return{top:u,right:b,bottom:d,left:g,x:g+b,y:u+d}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function ADn(n,i,s,u,d,g){const{x:b,y:w}=Woe(n,[i,s,u]),{x:E,y:S}=Woe({x:n.x+n.width,y:n.y+n.height},[i,s,u]),x=d-E,A=g-S;return{left:Math.floor(b),top:Math.floor(w),right:Math.floor(x),bottom:Math.floor(A)}}const I5e=(n,i,s,u,d,g)=>{const b=TDn(g,i,s),w=(i-b.x)/n.width,E=(s-b.y)/n.height,S=Math.min(w,E),x=SM(S,u,d),A=n.x+n.width/2,C=n.y+n.height/2,R=i/2-A*x,D=s/2-C*x,L=ADn(n,R,D,x,i,s),B={left:Math.min(L.left-b.left,0),top:Math.min(L.top-b.top,0),right:Math.min(L.right-b.right,0),bottom:Math.min(L.bottom-b.bottom,0)};return{x:R-B.left+B.right,y:D-B.top+B.bottom,zoom:x}},XH=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function AM(n){return n!=null&&n!=="parent"}function _A(n){var i,s;return{width:((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth??0,height:((s=n.measured)==null?void 0:s.height)??n.height??n.initialHeight??0}}function azt(n){var i,s;return(((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth)!==void 0&&(((s=n.measured)==null?void 0:s.height)??n.height??n.initialHeight)!==void 0}function uzt(n,i={width:0,height:0},s,u,d){const g={...n},b=u.get(s);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 BMt(n,i){if(n.size!==i.size)return!1;for(const s of n)if(!i.has(s))return!1;return!0}function _Dn(){let n,i;return{promise:new Promise((u,d)=>{n=u,i=d}),resolve:n,reject:i}}function xDn(n){return{...QHt,...n||{}}}function yH(n,{snapGrid:i=[0,0],snapToGrid:s=!1,transform:u,containerBounds:d}){const{x:g,y:b}=Ov(n),w=xz({x:g-((d==null?void 0:d.left)??0),y:b-((d==null?void 0:d.top)??0)},u),{x:E,y:S}=s?_z(w,i):w;return{xSnapped:E,ySnapped:S,...w}}const R5e=n=>({width:n.offsetWidth,height:n.offsetHeight}),czt=n=>{var i;return((i=n==null?void 0:n.getRootNode)==null?void 0:i.call(n))||(window==null?void 0:window.document)},kDn=["INPUT","SELECT","TEXTAREA"];function lzt(n){var u,d;const i=((d=(u=n.composedPath)==null?void 0:u.call(n))==null?void 0:d[0])||n.target;return(i==null?void 0:i.nodeType)!==1?!1:kDn.includes(i.nodeName)||i.hasAttribute("contenteditable")||!!i.closest(".nokey")}const dzt=n=>"clientX"in n,Ov=(n,i)=>{var g,b;const s=dzt(n),u=s?n.clientX:(g=n.touches)==null?void 0:g[0].clientX,d=s?n.clientY:(b=n.touches)==null?void 0:b[0].clientY;return{x:u-((i==null?void 0:i.left)??0),y:d-((i==null?void 0:i.top)??0)}},UMt=(n,i,s,u,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-s.left)/u,y:(w.top-s.top)/u,...R5e(b)}})};function fzt({sourceX:n,sourceY:i,targetX:s,targetY:u,sourceControlX:d,sourceControlY:g,targetControlX:b,targetControlY:w}){const E=n*.125+d*.375+b*.375+s*.125,S=i*.125+g*.375+w*.375+u*.125,x=Math.abs(E-n),A=Math.abs(S-i);return[E,S,x,A]}function mie(n,i){return n>=0?.5*n:i*25*Math.sqrt(-n)}function HMt({pos:n,x1:i,y1:s,x2:u,y2:d,c:g}){switch(n){case qr.Left:return[i-mie(i-u,g),s];case qr.Right:return[i+mie(u-i,g),s];case qr.Top:return[i,s-mie(s-d,g)];case qr.Bottom:return[i,s+mie(d-s,g)]}}function hzt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:u,targetY:d,targetPosition:g=qr.Top,curvature:b=.25}){const[w,E]=HMt({pos:s,x1:n,y1:i,x2:u,y2:d,c:b}),[S,x]=HMt({pos:g,x1:u,y1:d,x2:n,y2:i,c:b}),[A,C,R,D]=fzt({sourceX:n,sourceY:i,targetX:u,targetY:d,sourceControlX:w,sourceControlY:E,targetControlX:S,targetControlY:x});return[`M${n},${i} C${w},${E} ${S},${x} ${u},${d}`,A,C,R,D]}function pzt({sourceX:n,sourceY:i,targetX:s,targetY:u}){const d=Math.abs(s-n)/2,g=s0}const IDn=({source:n,sourceHandle:i,target:s,targetHandle:u})=>`xy-edge__${n}${i||""}-${s}${u||""}`,RDn=(n,i)=>i.some(s=>s.source===n.source&&s.target===n.target&&(s.sourceHandle===n.sourceHandle||!s.sourceHandle&&!n.sourceHandle)&&(s.targetHandle===n.targetHandle||!s.targetHandle&&!n.targetHandle)),gzt=(n,i,s={})=>{if(!n.source||!n.target)return i;const u=s.getEdgeId||IDn;let d;return nzt(n)?d={...n}:d={...n,id:u(n)},RDn(d,i)?i:(d.sourceHandle===null&&delete d.sourceHandle,d.targetHandle===null&&delete d.targetHandle,i.concat(d))};function bzt({sourceX:n,sourceY:i,targetX:s,targetY:u}){const[d,g,b,w]=pzt({sourceX:n,sourceY:i,targetX:s,targetY:u});return[`M ${n},${i}L ${s},${u}`,d,g,b,w]}const zMt={[qr.Left]:{x:-1,y:0},[qr.Right]:{x:1,y:0},[qr.Top]:{x:0,y:-1},[qr.Bottom]:{x:0,y:1}},ODn=({source:n,sourcePosition:i=qr.Bottom,target:s})=>i===qr.Left||i===qr.Right?n.xMath.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2));function LDn({source:n,sourcePosition:i=qr.Bottom,target:s,targetPosition:u=qr.Top,center:d,offset:g,stepPosition:b}){const w=zMt[i],E=zMt[u],S={x:n.x+w.x*g,y:n.y+w.y*g},x={x:s.x+E.x*g,y:s.y+E.y*g},A=ODn({source:S,sourcePosition:i,target:x}),C=A.x!==0?"x":"y",R=A[C];let D=[],L,B;const $={x:0,y:0},j={x:0,y:0},[,,P,G]=pzt({sourceX:n.x,sourceY:n.y,targetX:s.x,targetY:s.y});if(w[C]*E[C]===-1){C==="x"?(L=d.x??S.x+(x.x-S.x)*b,B=d.y??(S.y+x.y)/2):(L=d.x??(S.x+x.x)/2,B=d.y??S.y+(x.y-S.y)*b);const ne=[{x:L,y:S.y},{x:L,y:x.y}],Q=[{x:S.x,y:B},{x:x.x,y:B}];w[C]===R?D=C==="x"?ne:Q:D=C==="x"?Q:ne}else{const ne=[{x:S.x,y:x.y}],Q=[{x:x.x,y:S.y}];if(C==="x"?D=w.x===R?Q:ne:D=w.y===R?ne:Q,i===u){const fe=Math.abs(n[C]-s[C]);if(fe<=g){const K=Math.min(g-1,g-fe);w[C]===R?$[C]=(S[C]>n[C]?-1:1)*K:j[C]=(x[C]>s[C]?-1:1)*K}}if(i!==u){const fe=C==="x"?"y":"x",K=w[C]===E[fe],pe=S[fe]>x[fe],Oe=S[fe]=ce?(L=(ie.x+he.x)/2,B=D[0].y):(L=D[0].x,B=(ie.y+he.y)/2)}return[[n,{x:S.x+$.x,y:S.y+$.y},...D,{x:x.x+j.x,y:x.y+j.y},s],L,B,P,G]}function DDn(n,i,s,u){const d=Math.min(GMt(n,i)/2,GMt(i,s)/2,u),{x:g,y:b}=i;if(n.x===g&&g===s.x||n.y===b&&b===s.y)return`L${g} ${b}`;if(n.y===b){const S=n.x{let G="";return P>0&&Ps.id===i):n[0])||null}function gLe(n,i){return n?typeof n=="string"?n:`${i?`${i}__`:""}${Object.keys(n).sort().map(u=>`${u}=${n[u]}`).join("&")}`:""}function PDn(n,{id:i,defaultColor:s,defaultMarkerStart:u,defaultMarkerEnd:d}){const g=new Set;return n.reduce((b,w)=>([w.markerStart||u,w.markerEnd||d].forEach(E=>{if(E&&typeof E=="object"){const S=gLe(E,i);g.has(S)||(b.push({id:S,color:E.color||s,...E}),g.add(S))}}),b),[]).sort((b,w)=>b.id.localeCompare(w.id))}const mzt=1e3,jDn=10,O5e={nodeOrigin:[0,0],nodeExtent:KH,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},FDn={...O5e,checkEquality:!0};function L5e(n,i){const s={...n};for(const u in i)i[u]!==void 0&&(s[u]=i[u]);return s}function $Dn(n,i,s){const u=L5e(O5e,s);for(const d of n.values())if(d.parentId)M5e(d,n,i,u);else{const g=Tz(d,u.nodeOrigin),b=AM(d.extent)?d.extent:u.nodeExtent,w=hR(g,b,_A(d));d.internals.positionAbsolute=w}}function BDn(n,i){if(!n.handles)return n.measured?i==null?void 0:i.internals.handleBounds:void 0;const s=[],u=[];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"?s.push(g):d.type==="target"&&u.push(g)}return{source:s,target:u}}function D5e(n){return n==="manual"}function bLe(n,i,s,u={}){var S,x;const d=L5e(FDn,u),g={i:0},b=new Map(i),w=d!=null&&d.elevateNodesOnSelect&&!D5e(d.zIndexMode)?mzt:0;let E=n.length>0;i.clear(),s.clear();for(const A of n){let C=b.get(A.id);if(d.checkEquality&&A===(C==null?void 0:C.internals.userNode))i.set(A.id,C);else{const R=Tz(A,d.nodeOrigin),D=AM(A.extent)?A.extent:d.nodeExtent,L=hR(R,D,_A(A));C={...d.defaults,...A,measured:{width:(S=A.measured)==null?void 0:S.width,height:(x=A.measured)==null?void 0:x.height},internals:{positionAbsolute:L,handleBounds:BDn(A,C),z:wzt(A,w,d.zIndexMode),userNode:A}},i.set(A.id,C)}(C.measured===void 0||C.measured.width===void 0||C.measured.height===void 0)&&!C.hidden&&(E=!1),A.parentId&&M5e(C,i,s,u,g)}return E}function UDn(n,i){if(!n.parentId)return;const s=i.get(n.parentId);s?s.set(n.id,n):i.set(n.parentId,new Map([[n.id,n]]))}function M5e(n,i,s,u,d){const{elevateNodesOnSelect:g,nodeOrigin:b,nodeExtent:w,zIndexMode:E}=L5e(O5e,u),S=n.parentId,x=i.get(S);if(!x){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}UDn(n,s),d&&!x.parentId&&x.internals.rootParentIndex===void 0&&E==="auto"&&(x.internals.rootParentIndex=++d.i,x.internals.z=x.internals.z+d.i*jDn),d&&x.internals.rootParentIndex!==void 0&&(d.i=x.internals.rootParentIndex);const A=g&&!D5e(E)?mzt:0,{x:C,y:R,z:D}=HDn(n,x,b,w,A,E),{positionAbsolute:L}=n.internals,B=C!==L.x||R!==L.y;(B||D!==n.internals.z)&&i.set(n.id,{...n,internals:{...n.internals,positionAbsolute:B?{x:C,y:R}:L,z:D}})}function wzt(n,i,s){const u=Rv(n.zIndex)?n.zIndex:0;return D5e(s)?u:u+(n.selected?i:0)}function HDn(n,i,s,u,d,g){const{x:b,y:w}=i.internals.positionAbsolute,E=_A(n),S=Tz(n,s),x=AM(n.extent)?hR(S,n.extent,E):S;let A=hR({x:b+x.x,y:w+x.y},u,E);n.extent==="parent"&&(A=izt(A,E,i));const C=wzt(n,d,g),R=i.internals.z??0;return{x:A.x,y:A.y,z:R>=C?R+1:C}}function P5e(n,i,s,u=[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)??TM(E),x=szt(S,w.rect);g.set(w.parentId,{expandedRect:x,parent:E})}return g.size>0&&g.forEach(({expandedRect:w,parent:E},S)=>{var P;const x=E.internals.positionAbsolute,A=_A(E),C=E.origin??u,R=w.x0||D>0||$||j)&&(d.push({id:S,type:"position",position:{x:E.position.x-R+$,y:E.position.y-D+j}}),(P=s.get(S))==null||P.forEach(G=>{n.some(ee=>ee.id===G.id)||d.push({id:G.id,type:"position",position:{x:G.position.x+R,y:G.position.y+D}})})),(A.width0){const R=P5e(C,i,s,d);S.push(...R)}return{changes:S,updatedInternals:E}}async function GDn({delta:n,panZoom:i,transform:s,translateExtent:u,width:d,height:g}){if(!i||!n.x&&!n.y)return Promise.resolve(!1);const b=await i.setViewportConstrained({x:s[0]+n.x,y:s[1]+n.y,zoom:s[2]},[[0,0],[d,g]],u),w=!!b&&(b.x!==s[0]||b.y!==s[1]||b.k!==s[2]);return Promise.resolve(w)}function KMt(n,i,s,u,d,g){let b=d;const w=u.get(b)||new Map;u.set(b,w.set(s,i)),b=`${d}-${n}`;const E=u.get(b)||new Map;if(u.set(b,E.set(s,i)),g){b=`${d}-${n}-${g}`;const S=u.get(b)||new Map;u.set(b,S.set(s,i))}}function yzt(n,i,s){n.clear(),i.clear();for(const u of s){const{source:d,target:g,sourceHandle:b=null,targetHandle:w=null}=u,E={edgeId:u.id,source:d,target:g,sourceHandle:b,targetHandle:w},S=`${d}-${b}--${g}-${w}`,x=`${g}-${w}--${d}-${b}`;KMt("source",E,x,n,d,b),KMt("target",E,S,n,g,w),i.set(u.id,u)}}function vzt(n,i){if(!n.parentId)return!1;const s=i.get(n.parentId);return s?s.selected?!0:vzt(s,i):!1}function YMt(n,i,s){var d;let u=n;do{if((d=u==null?void 0:u.matches)!=null&&d.call(u,i))return!0;if(u===s)return!1;u=u==null?void 0:u.parentElement}while(u);return!1}function qDn(n,i,s,u){const d=new Map;for(const[g,b]of n)if((b.selected||b.id===u)&&(!b.parentId||!vzt(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:s.x-w.internals.positionAbsolute.x,y:s.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 UCe({nodeId:n,dragItems:i,nodeLookup:s,dragging:u=!0}){var b,w,E;const d=[];for(const[S,x]of i){const A=(b=s.get(S))==null?void 0:b.internals.userNode;A&&d.push({...A,position:x.position,dragging:u})}if(!n)return[d[0],d];const g=(w=s.get(n))==null?void 0:w.internals.userNode;return[g?{...g,position:((E=i.get(n))==null?void 0:E.position)||g.position,dragging:u}:d[0],d]}function VDn({dragItems:n,snapGrid:i,x:s,y:u}){const d=n.values().next().value;if(!d)return null;const g={x:s-d.distance.x,y:u-d.distance.y},b=_z(g,i);return{x:b.x-g.x,y:b.y-g.y}}function WDn({onNodeMouseDown:n,getStoreItems:i,onDragStart:s,onDrag:u,onDragStop:d}){let g={x:null,y:null},b=0,w=new Map,E=!1,S={x:0,y:0},x=null,A=!1,C=null,R=!1,D=!1,L=null;function B({noDragClassName:j,handleSelector:P,domNode:G,isSelectable:ee,nodeId:ne,nodeClickDistance:Q=0}){C=jm(G);function ie({x:fe,y:K}){const{nodeLookup:pe,nodeExtent:Oe,snapGrid:Se,snapToGrid:De,nodeOrigin:Ae,onNodeDrag:xe,onSelectionDrag:We,onError:dt,updateNodePositions:Ue}=i();g={x:fe,y:K};let bt=!1;const kt=w.size>1,ht=kt&&Oe?pLe(Az(w)):null,Xt=kt&&De?VDn({dragItems:w,snapGrid:Se,x:fe,y:K}):null;for(const[vt,Ct]of w){if(!pe.has(vt))continue;let Ft={x:fe-Ct.distance.x,y:K-Ct.distance.y};De&&(Ft=Xt?{x:Math.round(Ft.x+Xt.x),y:Math.round(Ft.y+Xt.y)}:_z(Ft,Se));let On=null;if(kt&&Oe&&!Ct.extent&&ht){const{positionAbsolute:vr}=Ct.internals,Ui=vr.x-ht.x+Oe[0][0],Qr=vr.x+Ct.measured.width-ht.x2+Oe[1][0],Hi=vr.y-ht.y+Oe[0][1],ai=vr.y+Ct.measured.height-ht.y2+Oe[1][1];On=[[Ui,Hi],[Qr,ai]]}const{position:Zn,positionAbsolute:Yn}=rzt({nodeId:vt,nextPosition:Ft,nodeLookup:pe,nodeExtent:On||Oe,nodeOrigin:Ae,onError:dt});bt=bt||Ct.position.x!==Zn.x||Ct.position.y!==Zn.y,Ct.position=Zn,Ct.internals.positionAbsolute=Yn}if(D=D||bt,!!bt&&(Ue(w,!0),L&&(u||xe||!ne&&We))){const[vt,Ct]=UCe({nodeId:ne,dragItems:w,nodeLookup:pe});u==null||u(L,w,vt,Ct),xe==null||xe(L,vt,Ct),ne||We==null||We(L,Ct)}}async function he(){if(!x)return;const{transform:fe,panBy:K,autoPanSpeed:pe,autoPanOnNodeDrag:Oe}=i();if(!Oe){E=!1,cancelAnimationFrame(b);return}const[Se,De]=ozt(S,x,pe);(Se!==0||De!==0)&&(g.x=(g.x??0)-Se/fe[2],g.y=(g.y??0)-De/fe[2],await K({x:Se,y:De})&&ie(g)),b=requestAnimationFrame(he)}function ge(fe){var kt;const{nodeLookup:K,multiSelectionActive:pe,nodesDraggable:Oe,transform:Se,snapGrid:De,snapToGrid:Ae,selectNodesOnDrag:xe,onNodeDragStart:We,onSelectionDragStart:dt,unselectNodesAndEdges:Ue}=i();A=!0,(!xe||!ee)&&!pe&&ne&&((kt=K.get(ne))!=null&&kt.selected||Ue()),ee&&xe&&ne&&(n==null||n(ne));const bt=yH(fe.sourceEvent,{transform:Se,snapGrid:De,snapToGrid:Ae,containerBounds:x});if(g=bt,w=qDn(K,Oe,bt,ne),w.size>0&&(s||We||!ne&&dt)){const[ht,Xt]=UCe({nodeId:ne,dragItems:w,nodeLookup:K});s==null||s(fe.sourceEvent,w,ht,Xt),We==null||We(fe.sourceEvent,ht,Xt),ne||dt==null||dt(fe.sourceEvent,Xt)}}const ce=PHt().clickDistance(Q).on("start",fe=>{const{domNode:K,nodeDragThreshold:pe,transform:Oe,snapGrid:Se,snapToGrid:De}=i();x=(K==null?void 0:K.getBoundingClientRect())||null,R=!1,D=!1,L=fe.sourceEvent,pe===0&&ge(fe),g=yH(fe.sourceEvent,{transform:Oe,snapGrid:Se,snapToGrid:De,containerBounds:x}),S=Ov(fe.sourceEvent,x)}).on("drag",fe=>{const{autoPanOnNodeDrag:K,transform:pe,snapGrid:Oe,snapToGrid:Se,nodeDragThreshold:De,nodeLookup:Ae}=i(),xe=yH(fe.sourceEvent,{transform:pe,snapGrid:Oe,snapToGrid:Se,containerBounds:x});if(L=fe.sourceEvent,(fe.sourceEvent.type==="touchmove"&&fe.sourceEvent.touches.length>1||ne&&!Ae.has(ne))&&(R=!0),!R){if(!E&&K&&A&&(E=!0,he()),!A){const We=Ov(fe.sourceEvent,x),dt=We.x-S.x,Ue=We.y-S.y;Math.sqrt(dt*dt+Ue*Ue)>De&&ge(fe)}(g.x!==xe.xSnapped||g.y!==xe.ySnapped)&&w&&A&&(S=Ov(fe.sourceEvent,x),ie(xe))}}).on("end",fe=>{if(!(!A||R)&&(E=!1,A=!1,cancelAnimationFrame(b),w.size>0)){const{nodeLookup:K,updateNodePositions:pe,onNodeDragStop:Oe,onSelectionDragStop:Se}=i();if(D&&(pe(w,!1),D=!1),d||Oe||!ne&&Se){const[De,Ae]=UCe({nodeId:ne,dragItems:w,nodeLookup:K,dragging:!1});d==null||d(fe.sourceEvent,w,De,Ae),Oe==null||Oe(fe.sourceEvent,De,Ae),ne||Se==null||Se(fe.sourceEvent,Ae)}}}).filter(fe=>{const K=fe.target;return!fe.button&&(!j||!YMt(K,`.${j}`,G))&&(!P||YMt(K,P,G))});C.call(ce)}function $(){C==null||C.on(".drag",null)}return{update:B,destroy:$}}function KDn(n,i,s){const u=[],d={x:n.x-s,y:n.y-s,width:s*2,height:s*2};for(const g of i.values())JH(d,TM(g))>0&&u.push(g);return u}const YDn=250;function JDn(n,i,s,u){var w,E;let d=[],g=1/0;const b=KDn(n,s,i+YDn);for(const S of b){const x=[...((w=S.internals.handleBounds)==null?void 0:w.source)??[],...((E=S.internals.handleBounds)==null?void 0:E.target)??[]];for(const A of x){if(u.nodeId===A.nodeId&&u.type===A.type&&u.id===A.id)continue;const{x:C,y:R}=pR(S,A,A.position,!0),D=Math.sqrt(Math.pow(C-n.x,2)+Math.pow(R-n.y,2));D>i||(D1){const S=u.type==="source"?"target":"source";return d.find(x=>x.type===S)??d[0]}return d[0]}function Ezt(n,i,s,u,d,g=!1){var S,x,A;const b=u.get(n);if(!b)return null;const w=d==="strict"?(S=b.internals.handleBounds)==null?void 0:S[i]:[...((x=b.internals.handleBounds)==null?void 0:x.source)??[],...((A=b.internals.handleBounds)==null?void 0:A.target)??[]],E=(s?w==null?void 0:w.find(C=>C.id===s):w==null?void 0:w[0])??null;return E&&g?{...E,...pR(b,E,E.position,!0)}:E}function Szt(n,i){return n||(i!=null&&i.classList.contains("target")?"target":i!=null&&i.classList.contains("source")?"source":null)}function XDn(n,i){let s=null;return i?s=!0:n&&!i&&(s=!1),s}const Tzt=()=>!0;function ZDn(n,{connectionMode:i,connectionRadius:s,handleId:u,nodeId:d,edgeUpdaterType:g,isTarget:b,domNode:w,nodeLookup:E,lib:S,autoPanOnConnect:x,flowId:A,panBy:C,cancelConnection:R,onConnectStart:D,onConnect:L,onConnectEnd:B,isValidConnection:$=Tzt,onReconnectEnd:j,updateConnection:P,getTransform:G,getFromHandle:ee,autoPanSpeed:ne,dragThreshold:Q=1,handleDomNode:ie}){const he=czt(n.target);let ge=0,ce;const{x:fe,y:K}=Ov(n),pe=Szt(g,ie),Oe=w==null?void 0:w.getBoundingClientRect();let Se=!1;if(!Oe||!pe)return;const De=Ezt(d,pe,u,E,i);if(!De)return;let Ae=Ov(n,Oe),xe=!1,We=null,dt=!1,Ue=null;function bt(){if(!x||!Oe)return;const[Zn,Yn]=ozt(Ae,Oe,ne);C({x:Zn,y:Yn}),ge=requestAnimationFrame(bt)}const kt={...De,nodeId:d,type:pe,position:De.position},ht=E.get(d);let vt={inProgress:!0,isValid:null,from:pR(ht,kt,qr.Left,!0),fromHandle:kt,fromPosition:kt.position,fromNode:ht,to:Ae,toHandle:null,toPosition:jMt[kt.position],toNode:null,pointer:Ae};function Ct(){Se=!0,P(vt),D==null||D(n,{nodeId:d,handleId:u,handleType:pe})}Q===0&&Ct();function Ft(Zn){if(!Se){const{x:ai,y:jc}=Ov(Zn),Xs=ai-fe,ls=jc-K;if(!(Xs*Xs+ls*ls>Q*Q))return;Ct()}if(!ee()||!kt){On(Zn);return}const Yn=G();Ae=Ov(Zn,Oe),ce=JDn(xz(Ae,Yn,!1,[1,1]),s,E,kt),xe||(bt(),xe=!0);const vr=Azt(Zn,{handle:ce,connectionMode:i,fromNodeId:d,fromHandleId:u,fromType:b?"target":"source",isValidConnection:$,doc:he,lib:S,flowId:A,nodeLookup:E});Ue=vr.handleDomNode,We=vr.connection,dt=XDn(!!ce,vr.isValid);const Ui=E.get(d),Qr=Ui?pR(Ui,kt,qr.Left,!0):vt.from,Hi={...vt,from:Qr,isValid:dt,to:vr.toHandle&&dt?Woe({x:vr.toHandle.x,y:vr.toHandle.y},Yn):Ae,toHandle:vr.toHandle,toPosition:dt&&vr.toHandle?vr.toHandle.position:jMt[kt.position],toNode:vr.toHandle?E.get(vr.toHandle.nodeId):null,pointer:Ae};P(Hi),vt=Hi}function On(Zn){if(!("touches"in Zn&&Zn.touches.length>0)){if(Se){(ce||Ue)&&We&&dt&&(L==null||L(We));const{inProgress:Yn,...vr}=vt,Ui={...vr,toPosition:vt.toHandle?vt.toPosition:null};B==null||B(Zn,Ui),g&&(j==null||j(Zn,Ui))}R(),cancelAnimationFrame(ge),xe=!1,dt=!1,We=null,Ue=null,he.removeEventListener("mousemove",Ft),he.removeEventListener("mouseup",On),he.removeEventListener("touchmove",Ft),he.removeEventListener("touchend",On)}}he.addEventListener("mousemove",Ft),he.addEventListener("mouseup",On),he.addEventListener("touchmove",Ft),he.addEventListener("touchend",On)}function Azt(n,{handle:i,connectionMode:s,fromNodeId:u,fromHandleId:d,fromType:g,doc:b,lib:w,flowId:E,isValidConnection:S=Tzt,nodeLookup:x}){const A=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:D}=Ov(n),L=b.elementFromPoint(R,D),B=L!=null&&L.classList.contains(`${w}-flow__handle`)?L:C,$={handleDomNode:B,isValid:!1,connection:null,toHandle:null};if(B){const j=Szt(void 0,B),P=B.getAttribute("data-nodeid"),G=B.getAttribute("data-handleid"),ee=B.classList.contains("connectable"),ne=B.classList.contains("connectableend");if(!P||!j)return $;const Q={source:A?P:u,sourceHandle:A?G:d,target:A?u:P,targetHandle:A?d:G};$.connection=Q;const he=ee&&ne&&(s===EM.Strict?A&&j==="source"||!A&&j==="target":P!==u||G!==d);$.isValid=he&&S(Q),$.toHandle=Ezt(P,j,G,x,s,!0)}return $}const mLe={onPointerDown:ZDn,isValid:Azt};function QDn({domNode:n,panZoom:i,getTransform:s,getViewScale:u}){const d=jm(n);function g({translateExtent:w,width:E,height:S,zoomStep:x=1,pannable:A=!0,zoomable:C=!0,inversePan:R=!1}){const D=P=>{if(P.sourceEvent.type!=="wheel"||!i)return;const G=s(),ee=P.sourceEvent.ctrlKey&&XH()?10:1,ne=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*x,Q=G[2]*Math.pow(2,ne*ee);i.scaleTo(Q)};let L=[0,0];const B=P=>{(P.sourceEvent.type==="mousedown"||P.sourceEvent.type==="touchstart")&&(L=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY])},$=P=>{const G=s();if(P.sourceEvent.type!=="mousemove"&&P.sourceEvent.type!=="touchmove"||!i)return;const ee=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY],ne=[ee[0]-L[0],ee[1]-L[1]];L=ee;const Q=u()*Math.max(G[2],Math.log(G[2]))*(R?-1:1),ie={x:G[0]-ne[0]*Q,y:G[1]-ne[1]*Q},he=[[0,0],[E,S]];i.setViewportConstrained({x:ie.x,y:ie.y,zoom:G[2]},he,w)},j=XHt().on("start",B).on("zoom",A?$:null).on("zoom.wheel",C?D:null);d.call(j,{})}function b(){d.on("zoom",null)}return{update:g,destroy:b,pointer:Nv}}const Zse=n=>({x:n.x,y:n.y,zoom:n.k}),HCe=({x:n,y:i,zoom:s})=>Yse.translate(n,i).scale(s),H5=(n,i)=>n.target.closest(`.${i}`),_zt=(n,i)=>i===2&&Array.isArray(n)&&n.includes(2),e5n=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,zCe=(n,i=0,s=e5n,u=()=>{})=>{const d=typeof i=="number"&&i>0;return d||u(),d?n.transition().duration(i).ease(s).on("end",u):n},xzt=n=>{const i=n.ctrlKey&&XH()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*i};function t5n({zoomPanValues:n,noWheelClassName:i,d3Selection:s,d3Zoom:u,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:b,onPanZoomStart:w,onPanZoom:E,onPanZoomEnd:S}){return x=>{if(H5(x,i))return x.ctrlKey&&x.preventDefault(),!1;x.preventDefault(),x.stopImmediatePropagation();const A=s.property("__zoom").k||1;if(x.ctrlKey&&b){const B=Nv(x),$=xzt(x),j=A*Math.pow(2,$);u.scaleTo(s,j,B,x);return}const C=x.deltaMode===1?20:1;let R=d===nR.Vertical?0:x.deltaX*C,D=d===nR.Horizontal?0:x.deltaY*C;!XH()&&x.shiftKey&&d!==nR.Vertical&&(R=x.deltaY*C,D=0),u.translateBy(s,-(R/A)*g,-(D/A)*g,{internal:!0});const L=Zse(s.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(E==null||E(x,L),n.panScrollTimeout=setTimeout(()=>{S==null||S(x,L),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,w==null||w(x,L))}}function n5n({noWheelClassName:n,preventScrolling:i,d3ZoomHandler:s}){return function(u,d){const g=u.type==="wheel",b=!i&&g&&!u.ctrlKey,w=H5(u,n);if(u.ctrlKey&&g&&w&&u.preventDefault(),b||w)return null;u.preventDefault(),s.call(this,u,d)}}function r5n({zoomPanValues:n,onDraggingChange:i,onPanZoomStart:s}){return u=>{var g,b,w;if((g=u.sourceEvent)!=null&&g.internal)return;const d=Zse(u.transform);n.mouseButton=((b=u.sourceEvent)==null?void 0:b.button)||0,n.isZoomingOrPanning=!0,n.prevViewport=d,((w=u.sourceEvent)==null?void 0:w.type)==="mousedown"&&i(!0),s&&(s==null||s(u.sourceEvent,d))}}function i5n({zoomPanValues:n,panOnDrag:i,onPaneContextMenu:s,onTransformChange:u,onPanZoom:d}){return g=>{var b,w;n.usedRightMouseButton=!!(s&&_zt(i,n.mouseButton??0)),(b=g.sourceEvent)!=null&&b.sync||u([g.transform.x,g.transform.y,g.transform.k]),d&&!((w=g.sourceEvent)!=null&&w.internal)&&(d==null||d(g.sourceEvent,Zse(g.transform)))}}function o5n({zoomPanValues:n,panOnDrag:i,panOnScroll:s,onDraggingChange:u,onPanZoomEnd:d,onPaneContextMenu:g}){return b=>{var w;if(!((w=b.sourceEvent)!=null&&w.internal)&&(n.isZoomingOrPanning=!1,g&&_zt(i,n.mouseButton??0)&&!n.usedRightMouseButton&&b.sourceEvent&&g(b.sourceEvent),n.usedRightMouseButton=!1,u(!1),d)){const E=Zse(b.transform);n.prevViewport=E,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{d==null||d(b.sourceEvent,E)},s?150:0)}}}function s5n({zoomActivationKeyPressed:n,zoomOnScroll:i,zoomOnPinch:s,panOnDrag:u,panOnScroll:d,zoomOnDoubleClick:g,userSelectionActive:b,noWheelClassName:w,noPanClassName:E,lib:S,connectionInProgress:x}){return A=>{var B;const C=n||i,R=s&&A.ctrlKey,D=A.type==="wheel";if(A.button===1&&A.type==="mousedown"&&(H5(A,`${S}-flow__node`)||H5(A,`${S}-flow__edge`)))return!0;if(!u&&!C&&!d&&!g&&!s||b||x&&!D||H5(A,w)&&D||H5(A,E)&&(!D||d&&D&&!n)||!s&&A.ctrlKey&&D)return!1;if(!s&&A.type==="touchstart"&&((B=A.touches)==null?void 0:B.length)>1)return A.preventDefault(),!1;if(!C&&!d&&!R&&D||!u&&(A.type==="mousedown"||A.type==="touchstart")||Array.isArray(u)&&!u.includes(A.button)&&A.type==="mousedown")return!1;const L=Array.isArray(u)&&u.includes(A.button)||!A.button||A.button<=1;return(!A.ctrlKey||D)&&L}}function a5n({domNode:n,minZoom:i,maxZoom:s,translateExtent:u,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},x=n.getBoundingClientRect(),A=XHt().scaleExtent([i,s]).translateExtent(u),C=jm(n).call(A);j({x:d.x,y:d.y,zoom:SM(d.zoom,i,s)},[[0,0],[x.width,x.height]],u);const R=C.on("wheel.zoom"),D=C.on("dblclick.zoom");A.wheelDelta(xzt);function L(ce,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Qie).transform(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ce)}):Promise.resolve(!1)}function B({noWheelClassName:ce,noPanClassName:fe,onPaneContextMenu:K,userSelectionActive:pe,panOnScroll:Oe,panOnDrag:Se,panOnScrollMode:De,panOnScrollSpeed:Ae,preventScrolling:xe,zoomOnPinch:We,zoomOnScroll:dt,zoomOnDoubleClick:Ue,zoomActivationKeyPressed:bt,lib:kt,onTransformChange:ht,connectionInProgress:Xt,paneClickDistance:vt,selectionOnDrag:Ct}){pe&&!S.isZoomingOrPanning&&$();const Ft=Oe&&!bt&&!pe;A.clickDistance(Ct?1/0:!Rv(vt)||vt<0?0:vt);const On=Ft?t5n({zoomPanValues:S,noWheelClassName:ce,d3Selection:C,d3Zoom:A,panOnScrollMode:De,panOnScrollSpeed:Ae,zoomOnPinch:We,onPanZoomStart:b,onPanZoom:g,onPanZoomEnd:w}):n5n({noWheelClassName:ce,preventScrolling:xe,d3ZoomHandler:R});if(C.on("wheel.zoom",On,{passive:!1}),!pe){const Yn=r5n({zoomPanValues:S,onDraggingChange:E,onPanZoomStart:b});A.on("start",Yn);const vr=i5n({zoomPanValues:S,panOnDrag:Se,onPaneContextMenu:!!K,onPanZoom:g,onTransformChange:ht});A.on("zoom",vr);const Ui=o5n({zoomPanValues:S,panOnDrag:Se,panOnScroll:Oe,onPaneContextMenu:K,onPanZoomEnd:w,onDraggingChange:E});A.on("end",Ui)}const Zn=s5n({zoomActivationKeyPressed:bt,panOnDrag:Se,zoomOnScroll:dt,panOnScroll:Oe,zoomOnDoubleClick:Ue,zoomOnPinch:We,userSelectionActive:pe,noPanClassName:fe,noWheelClassName:ce,lib:kt,connectionInProgress:Xt});A.filter(Zn),Ue?C.on("dblclick.zoom",D):C.on("dblclick.zoom",null)}function $(){A.on("zoom",null)}async function j(ce,fe,K){const pe=HCe(ce),Oe=A==null?void 0:A.constrain()(pe,fe,K);return Oe&&await L(Oe),new Promise(Se=>Se(Oe))}async function P(ce,fe){const K=HCe(ce);return await L(K,fe),new Promise(pe=>pe(K))}function G(ce){if(C){const fe=HCe(ce),K=C.property("__zoom");(K.k!==ce.zoom||K.x!==ce.x||K.y!==ce.y)&&(A==null||A.transform(C,fe,null,{sync:!0}))}}function ee(){const ce=C?JHt(C.node()):{x:0,y:0,k:1};return{x:ce.x,y:ce.y,zoom:ce.k}}function ne(ce,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Qie).scaleTo(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ce)}):Promise.resolve(!1)}function Q(ce,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Qie).scaleBy(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ce)}):Promise.resolve(!1)}function ie(ce){A==null||A.scaleExtent(ce)}function he(ce){A==null||A.translateExtent(ce)}function ge(ce){const fe=!Rv(ce)||ce<0?0:ce;A==null||A.clickDistance(fe)}return{update:B,destroy:$,setViewport:P,setViewportConstrained:j,getViewport:ee,scaleTo:ne,scaleBy:Q,setScaleExtent:ie,setTranslateExtent:he,syncViewport:G,setClickDistance:ge}}var _M;(function(n){n.Line="line",n.Handle="handle"})(_M||(_M={}));function u5n({width:n,prevWidth:i,height:s,prevHeight:u,affectsX:d,affectsY:g}){const b=n-i,w=s-u,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 JMt(n){const i=n.includes("right")||n.includes("left"),s=n.includes("bottom")||n.includes("top"),u=n.includes("left"),d=n.includes("top");return{isHorizontal:i,isVertical:s,affectsX:u,affectsY:d}}function Ck(n,i){return Math.max(0,i-n)}function Ik(n,i){return Math.max(0,n-i)}function wie(n,i,s){return Math.max(0,i-n,n-s)}function XMt(n,i){return n?!i:i}function c5n(n,i,s,u,d,g,b,w){let{affectsX:E,affectsY:S}=i;const{isHorizontal:x,isVertical:A}=i,C=x&&A,{xSnapped:R,ySnapped:D}=s,{minWidth:L,maxWidth:B,minHeight:$,maxHeight:j}=u,{x:P,y:G,width:ee,height:ne,aspectRatio:Q}=n;let ie=Math.floor(x?R-n.pointerX:0),he=Math.floor(A?D-n.pointerY:0);const ge=ee+(E?-ie:ie),ce=ne+(S?-he:he),fe=-g[0]*ee,K=-g[1]*ne;let pe=wie(ge,L,B),Oe=wie(ce,$,j);if(b){let Ae=0,xe=0;E&&ie<0?Ae=Ck(P+ie+fe,b[0][0]):!E&&ie>0&&(Ae=Ik(P+ge+fe,b[1][0])),S&&he<0?xe=Ck(G+he+K,b[0][1]):!S&&he>0&&(xe=Ik(G+ce+K,b[1][1])),pe=Math.max(pe,Ae),Oe=Math.max(Oe,xe)}if(w){let Ae=0,xe=0;E&&ie>0?Ae=Ik(P+ie,w[0][0]):!E&&ie<0&&(Ae=Ck(P+ge,w[1][0])),S&&he>0?xe=Ik(G+he,w[0][1]):!S&&he<0&&(xe=Ck(G+ce,w[1][1])),pe=Math.max(pe,Ae),Oe=Math.max(Oe,xe)}if(d){if(x){const Ae=wie(ge/Q,$,j)*Q;if(pe=Math.max(pe,Ae),b){let xe=0;!E&&!S||E&&!S&&C?xe=Ik(G+K+ge/Q,b[1][1])*Q:xe=Ck(G+K+(E?ie:-ie)/Q,b[0][1])*Q,pe=Math.max(pe,xe)}if(w){let xe=0;!E&&!S||E&&!S&&C?xe=Ck(G+ge/Q,w[1][1])*Q:xe=Ik(G+(E?ie:-ie)/Q,w[0][1])*Q,pe=Math.max(pe,xe)}}if(A){const Ae=wie(ce*Q,L,B)/Q;if(Oe=Math.max(Oe,Ae),b){let xe=0;!E&&!S||S&&!E&&C?xe=Ik(P+ce*Q+fe,b[1][0])/Q:xe=Ck(P+(S?he:-he)*Q+fe,b[0][0])/Q,Oe=Math.max(Oe,xe)}if(w){let xe=0;!E&&!S||S&&!E&&C?xe=Ck(P+ce*Q,w[1][0])/Q:xe=Ik(P+(S?he:-he)*Q,w[0][0])/Q,Oe=Math.max(Oe,xe)}}}he=he+(he<0?Oe:-Oe),ie=ie+(ie<0?pe:-pe),d&&(C?ge>ce*Q?he=(XMt(E,S)?-ie:ie)/Q:ie=(XMt(E,S)?-he:he)*Q:x?(he=ie/Q,S=E):(ie=he*Q,E=S));const Se=E?P+ie:P,De=S?G+he:G;return{width:ee+(E?-ie:ie),height:ne+(S?-he:he),x:g[0]*ie*(E?-1:1)+Se,y:g[1]*he*(S?-1:1)+De}}const kzt={width:0,height:0,x:0,y:0},l5n={...kzt,pointerX:0,pointerY:0,aspectRatio:1};function d5n(n){return[[0,0],[n.measured.width,n.measured.height]]}function f5n(n,i,s){const u=i.position.x+n.position.x,d=i.position.y+n.position.y,g=n.measured.width??0,b=n.measured.height??0,w=s[0]*g,E=s[1]*b;return[[u-w,d-E],[u+g-w,d+b-E]]}function h5n({domNode:n,nodeId:i,getStoreItems:s,onChange:u,onEnd:d}){const g=jm(n);let b={controlDirection:JMt("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:x,keepAspectRatio:A,resizeDirection:C,onResizeStart:R,onResize:D,onResizeEnd:L,shouldResize:B}){let $={...kzt},j={...l5n};b={boundaries:x,resizeDirection:C,keepAspectRatio:A,controlDirection:JMt(S)};let P,G=null,ee=[],ne,Q,ie,he=!1;const ge=PHt().on("start",ce=>{const{nodeLookup:fe,transform:K,snapGrid:pe,snapToGrid:Oe,nodeOrigin:Se,paneDomNode:De}=s();if(P=fe.get(i),!P)return;G=(De==null?void 0:De.getBoundingClientRect())??null;const{xSnapped:Ae,ySnapped:xe}=yH(ce.sourceEvent,{transform:K,snapGrid:pe,snapToGrid:Oe,containerBounds:G});$={width:P.measured.width??0,height:P.measured.height??0,x:P.position.x??0,y:P.position.y??0},j={...$,pointerX:Ae,pointerY:xe,aspectRatio:$.width/$.height},ne=void 0,P.parentId&&(P.extent==="parent"||P.expandParent)&&(ne=fe.get(P.parentId),Q=ne&&P.extent==="parent"?d5n(ne):void 0),ee=[],ie=void 0;for(const[We,dt]of fe)if(dt.parentId===i&&(ee.push({id:We,position:{...dt.position},extent:dt.extent}),dt.extent==="parent"||dt.expandParent)){const Ue=f5n(dt,P,dt.origin??Se);ie?ie=[[Math.min(Ue[0][0],ie[0][0]),Math.min(Ue[0][1],ie[0][1])],[Math.max(Ue[1][0],ie[1][0]),Math.max(Ue[1][1],ie[1][1])]]:ie=Ue}R==null||R(ce,{...$})}).on("drag",ce=>{const{transform:fe,snapGrid:K,snapToGrid:pe,nodeOrigin:Oe}=s(),Se=yH(ce.sourceEvent,{transform:fe,snapGrid:K,snapToGrid:pe,containerBounds:G}),De=[];if(!P)return;const{x:Ae,y:xe,width:We,height:dt}=$,Ue={},bt=P.origin??Oe,{width:kt,height:ht,x:Xt,y:vt}=c5n(j,b.controlDirection,Se,b.boundaries,b.keepAspectRatio,bt,Q,ie),Ct=kt!==We,Ft=ht!==dt,On=Xt!==Ae&&Ct,Zn=vt!==xe&&Ft;if(!On&&!Zn&&!Ct&&!Ft)return;if((On||Zn||bt[0]===1||bt[1]===1)&&(Ue.x=On?Xt:$.x,Ue.y=Zn?vt:$.y,$.x=Ue.x,$.y=Ue.y,ee.length>0)){const Qr=Xt-Ae,Hi=vt-xe;for(const ai of ee)ai.position={x:ai.position.x-Qr+bt[0]*(kt-We),y:ai.position.y-Hi+bt[1]*(ht-dt)},De.push(ai)}if((Ct||Ft)&&(Ue.width=Ct&&(!b.resizeDirection||b.resizeDirection==="horizontal")?kt:$.width,Ue.height=Ft&&(!b.resizeDirection||b.resizeDirection==="vertical")?ht:$.height,$.width=Ue.width,$.height=Ue.height),ne&&P.expandParent){const Qr=bt[0]*(Ue.width??0);Ue.x&&Ue.x{he&&(L==null||L(ce,{...$}),d==null||d({...$}),he=!1)});g.call(ge)}function E(){g.on(".drag",null)}return{update:w,destroy:E}}var Nzt={exports:{}},Czt={};/** - * @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 Qse=H,p5n=EHt;function g5n(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var b5n=typeof Object.is=="function"?Object.is:g5n,m5n=p5n.useSyncExternalStore,w5n=Qse.useRef,y5n=Qse.useEffect,v5n=Qse.useMemo,E5n=Qse.useDebugValue;Czt.useSyncExternalStoreWithSelector=function(n,i,s,u,d){var g=w5n(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=v5n(function(){function E(R){if(!S){if(S=!0,x=R,R=u(R),d!==void 0&&b.hasValue){var D=b.value;if(d(D,R))return A=D}return A=R}if(D=A,b5n(x,R))return D;var L=u(R);return d!==void 0&&d(D,L)?(x=R,D):(x=R,A=L)}var S=!1,x,A,C=s===void 0?null:s;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,s,u,d]);var w=m5n(n,g[0],g[1]);return y5n(function(){b.hasValue=!0,b.value=w},[w]),E5n(w),w};Nzt.exports=Czt;var S5n=Nzt.exports;const T5n=TR(S5n),A5n={},ZMt=n=>{let i;const s=new Set,u=(x,A)=>{const C=typeof x=="function"?x(i):x;if(!Object.is(C,i)){const R=i;i=A??(typeof C!="object"||C===null)?C:Object.assign({},i,C),s.forEach(D=>D(i,R))}},d=()=>i,E={setState:u,getState:d,getInitialState:()=>S,subscribe:x=>(s.add(x),()=>s.delete(x)),destroy:()=>{(A5n?"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."),s.clear()}},S=i=n(u,d,E);return E},_5n=n=>n?ZMt(n):ZMt,{useDebugValue:x5n}=Hn,{useSyncExternalStoreWithSelector:k5n}=T5n,N5n=n=>n;function Izt(n,i=N5n,s){const u=k5n(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,s);return x5n(u),u}const QMt=(n,i)=>{const s=_5n(n),u=(d,g=i)=>Izt(s,d,g);return Object.assign(u,s),u},C5n=(n,i)=>n?QMt(n,i):QMt;function Dc(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[u,d]of n)if(!Object.is(d,i.get(u)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const u of n)if(!i.has(u))return!1;return!0}const s=Object.keys(n);if(s.length!==Object.keys(i).length)return!1;for(const u of s)if(!Object.prototype.hasOwnProperty.call(i,u)||!Object.is(n[u],i[u]))return!1;return!0}const eae=H.createContext(null),I5n=eae.Provider,Rzt=z2.error001();function Js(n,i){const s=H.useContext(eae);if(s===null)throw new Error(Rzt);return Izt(s,n,i)}function Mc(){const n=H.useContext(eae);if(n===null)throw new Error(Rzt);return H.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const e9t={display:"none"},R5n={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Ozt="react-flow__node-desc",Lzt="react-flow__edge-desc",O5n="react-flow__aria-live",L5n=n=>n.ariaLiveMessage,D5n=n=>n.ariaLabelConfig;function M5n({rfId:n}){const i=Js(L5n);return I.jsx("div",{id:`${O5n}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:R5n,children:i})}function P5n({rfId:n,disableKeyboardA11y:i}){const s=Js(D5n);return I.jsxs(I.Fragment,{children:[I.jsx("div",{id:`${Ozt}-${n}`,style:e9t,children:i?s["node.a11yDescription.default"]:s["node.a11yDescription.keyboardDisabled"]}),I.jsx("div",{id:`${Lzt}-${n}`,style:e9t,children:s["edge.a11yDescription.default"]}),!i&&I.jsx(M5n,{rfId:n})]})}const gR=H.forwardRef(({position:n="top-left",children:i,className:s,style:u,...d},g)=>{const b=`${n}`.split("-");return I.jsx("div",{className:Bd(["react-flow__panel",s,...b]),style:u,ref:g,...d,children:i})});gR.displayName="Panel";function j5n({proOptions:n,position:i="bottom-right"}){return n!=null&&n.hideAttribution?null:I.jsx(gR,{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:I.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const F5n=n=>{const i=[],s=[];for(const[,u]of n.nodeLookup)u.selected&&i.push(u.internals.userNode);for(const[,u]of n.edgeLookup)u.selected&&s.push(u);return{selectedNodes:i,selectedEdges:s}},yie=n=>n.id;function $5n(n,i){return Dc(n.selectedNodes.map(yie),i.selectedNodes.map(yie))&&Dc(n.selectedEdges.map(yie),i.selectedEdges.map(yie))}function B5n({onSelectionChange:n}){const i=Mc(),{selectedNodes:s,selectedEdges:u}=Js(F5n,$5n);return H.useEffect(()=>{const d={nodes:s,edges:u};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[s,u,n]),null}const U5n=n=>!!n.onSelectionChangeHandlers;function H5n({onSelectionChange:n}){const i=Js(U5n);return n||i?I.jsx(B5n,{onSelectionChange:n}):null}const Dzt=[0,0],z5n={x:0,y:0,zoom:1},G5n=["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"],t9t=[...G5n,"rfId"],q5n=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}),n9t={translateExtent:KH,nodeOrigin:Dzt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function V5n(n){const{setNodes:i,setEdges:s,setMinZoom:u,setMaxZoom:d,setTranslateExtent:g,setNodeExtent:b,reset:w,setDefaultNodesAndEdges:E}=Js(q5n,Dc),S=Mc();H.useEffect(()=>(E(n.defaultNodes,n.defaultEdges),()=>{x.current=n9t,w()}),[]);const x=H.useRef(n9t);return H.useEffect(()=>{for(const A of t9t){const C=n[A],R=x.current[A];C!==R&&(typeof n[A]>"u"||(A==="nodes"?i(C):A==="edges"?s(C):A==="minZoom"?u(C):A==="maxZoom"?d(C):A==="translateExtent"?g(C):A==="nodeExtent"?b(C):A==="ariaLabelConfig"?S.setState({ariaLabelConfig:xDn(C)}):A==="fitView"?S.setState({fitViewQueued:C}):A==="fitViewOptions"?S.setState({fitViewOptions:C}):S.setState({[A]:C})))}x.current=n},t9t.map(A=>n[A])),null}function r9t(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function W5n(n){var u;const[i,s]=H.useState(n==="system"?null:n);return H.useEffect(()=>{if(n!=="system"){s(n);return}const d=r9t(),g=()=>s(d!=null&&d.matches?"dark":"light");return g(),d==null||d.addEventListener("change",g),()=>{d==null||d.removeEventListener("change",g)}},[n]),i!==null?i:(u=r9t())!=null&&u.matches?"dark":"light"}const i9t=typeof document<"u"?document:null;function ZH(n=null,i={target:i9t,actInsideInputWithModifier:!0}){const[s,u]=H.useState(!1),d=H.useRef(!1),g=H.useRef(new Set([])),[b,w]=H.useMemo(()=>{if(n!==null){const S=(Array.isArray(n)?n:[n]).filter(A=>typeof A=="string").map(A=>A.replace("+",` -`).replace(` - -`,` -+`).split(` -`)),x=S.reduce((A,C)=>A.concat(...C),[]);return[S,x]}return[[],[]]},[n]);return H.useEffect(()=>{const E=(i==null?void 0:i.target)??i9t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const x=R=>{var B,$;if(d.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!d.current||d.current&&!S)&&lzt(R))return!1;const L=s9t(R.code,w);if(g.current.add(R[L]),o9t(b,g.current,!1)){const j=(($=(B=R.composedPath)==null?void 0:B.call(R))==null?void 0:$[0])||R.target,P=(j==null?void 0:j.nodeName)==="BUTTON"||(j==null?void 0:j.nodeName)==="A";i.preventDefault!==!1&&(d.current||!P)&&R.preventDefault(),u(!0)}},A=R=>{const D=s9t(R.code,w);o9t(b,g.current,!0)?(u(!1),g.current.clear()):g.current.delete(R[D]),R.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),u(!1)};return E==null||E.addEventListener("keydown",x),E==null||E.addEventListener("keyup",A),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",x),E==null||E.removeEventListener("keyup",A),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,u]),s}function o9t(n,i,s){return n.filter(u=>s||u.length===i.size).some(u=>u.every(d=>i.has(d)))}function s9t(n,i){return i.includes(n)?"code":"key"}const K5n=()=>{const n=Mc();return H.useMemo(()=>({zoomIn:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomOut:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1/1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomTo:(i,s)=>{const{panZoom:u}=n.getState();return u?u.scaleTo(i,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,s)=>{const{transform:[u,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??u,y:i.y??d,zoom:i.zoom??g},s),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,s,u]=n.getState().transform;return{x:i,y:s,zoom:u}},setCenter:async(i,s,u)=>n.getState().setCenter(i,s,u),fitBounds:async(i,s)=>{const{width:u,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=I5e(i,u,d,g,b,(s==null?void 0:s.padding)??.1);return w?(await w.setViewport(E,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(i,s={})=>{const{transform:u,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},x=s.snapGrid??d,A=s.snapToGrid??g;return xz(S,u,A,x)},flowToScreenPosition:i=>{const{transform:s,domNode:u}=n.getState();if(!u)return i;const{x:d,y:g}=u.getBoundingClientRect(),b=Woe(i,s);return{x:b.x+d,y:b.y+g}}}),[])};function Mzt(n,i){const s=[],u=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")u.set(g.id,[g]);else{const b=u.get(g.id);b?b.push(g):u.set(g.id,[g])}for(const g of i){const b=u.get(g.id);if(!b){s.push(g);continue}if(b[0].type==="remove")continue;if(b[0].type==="replace"){s.push({...b[0].item});continue}const w={...g};for(const E of b)Y5n(E,w);s.push(w)}return d.length&&d.forEach(g=>{g.index!==void 0?s.splice(g.index,0,{...g.item}):s.push({...g.item})}),s}function Y5n(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 Pzt(n,i){return Mzt(n,i)}function jzt(n,i){return Mzt(n,i)}function W4(n,i){return{id:n,type:"select",selected:i}}function z5(n,i=new Set,s=!1){const u=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(s&&(g.selected=b),u.push(W4(g.id,b)))}return u}function a9t({items:n=[],lookup:i}){var d;const s=[],u=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&&s.push({id:b.id,item:b,type:"replace"}),E===void 0&&s.push({item:b,type:"add",index:g})}for(const[g]of i)u.get(g)===void 0&&s.push({id:g,type:"remove"});return s}function u9t(n){return{id:n.id,type:"remove"}}const c9t=n=>bDn(n),J5n=n=>nzt(n);function Fzt(n){return H.forwardRef(n)}const X5n=typeof window<"u"?H.useLayoutEffect:H.useEffect;function l9t(n){const[i,s]=H.useState(BigInt(0)),[u]=H.useState(()=>Z5n(()=>s(d=>d+BigInt(1))));return X5n(()=>{const d=u.get();d.length&&(n(d),u.reset())},[i]),u}function Z5n(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:s=>{i.push(s),n()}}}const $zt=H.createContext(null);function Q5n({children:n}){const i=Mc(),s=H.useCallback(w=>{const{nodes:E=[],setNodes:S,hasDefaultNodes:x,onNodesChange:A,nodeLookup:C,fitViewQueued:R,onNodesChangeMiddlewareMap:D}=i.getState();let L=E;for(const $ of w)L=typeof $=="function"?$(L):$;let B=a9t({items:L,lookup:C});for(const $ of D.values())B=$(B);x&&S(L),B.length>0?A==null||A(B):R&&window.requestAnimationFrame(()=>{const{fitViewQueued:$,nodes:j,setNodes:P}=i.getState();$&&P(j)})},[]),u=l9t(s),d=H.useCallback(w=>{const{edges:E=[],setEdges:S,hasDefaultEdges:x,onEdgesChange:A,edgeLookup:C}=i.getState();let R=E;for(const D of w)R=typeof D=="function"?D(R):D;x?S(R):A&&A(a9t({items:R,lookup:C}))},[]),g=l9t(d),b=H.useMemo(()=>({nodeQueue:u,edgeQueue:g}),[]);return I.jsx($zt.Provider,{value:b,children:n})}function eMn(){const n=H.useContext($zt);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const tMn=n=>!!n.panZoom;function kR(){const n=K5n(),i=Mc(),s=eMn(),u=Js(tMn),d=H.useMemo(()=>{const g=A=>i.getState().nodeLookup.get(A),b=A=>{s.nodeQueue.push(A)},w=A=>{s.edgeQueue.push(A)},E=A=>{var $,j;const{nodeLookup:C,nodeOrigin:R}=i.getState(),D=c9t(A)?A:C.get(A.id),L=D.parentId?uzt(D.position,D.measured,D.parentId,C,R):D.position,B={...D,position:L,width:(($=D.measured)==null?void 0:$.width)??D.width,height:((j=D.measured)==null?void 0:j.height)??D.height};return TM(B)},S=(A,C,R={replace:!1})=>{b(D=>D.map(L=>{if(L.id===A){const B=typeof C=="function"?C(L):C;return R.replace&&c9t(B)?B:{...L,...B}}return L}))},x=(A,C,R={replace:!1})=>{w(D=>D.map(L=>{if(L.id===A){const B=typeof C=="function"?C(L):C;return R.replace&&J5n(B)?B:{...L,...B}}return L}))};return{getNodes:()=>i.getState().nodes.map(A=>({...A})),getNode:A=>{var C;return(C=g(A))==null?void 0:C.internals.userNode},getInternalNode:g,getEdges:()=>{const{edges:A=[]}=i.getState();return A.map(C=>({...C}))},getEdge:A=>i.getState().edgeLookup.get(A),setNodes:b,setEdges:w,addNodes:A=>{const C=Array.isArray(A)?A:[A];s.nodeQueue.push(R=>[...R,...C])},addEdges:A=>{const C=Array.isArray(A)?A:[A];s.edgeQueue.push(R=>[...R,...C])},toObject:()=>{const{nodes:A=[],edges:C=[],transform:R}=i.getState(),[D,L,B]=R;return{nodes:A.map($=>({...$})),edges:C.map($=>({...$})),viewport:{x:D,y:L,zoom:B}}},deleteElements:async({nodes:A=[],edges:C=[]})=>{const{nodes:R,edges:D,onNodesDelete:L,onEdgesDelete:B,triggerNodeChanges:$,triggerEdgeChanges:j,onDelete:P,onBeforeDelete:G}=i.getState(),{nodes:ee,edges:ne}=await EDn({nodesToRemove:A,edgesToRemove:C,nodes:R,edges:D,onBeforeDelete:G}),Q=ne.length>0,ie=ee.length>0;if(Q){const he=ne.map(u9t);B==null||B(ne),j(he)}if(ie){const he=ee.map(u9t);L==null||L(ee),$(he)}return(ie||Q)&&(P==null||P({nodes:ee,edges:ne})),{deletedNodes:ee,deletedEdges:ne}},getIntersectingNodes:(A,C=!0,R)=>{const D=$Mt(A),L=D?A:E(A),B=R!==void 0;return L?(R||i.getState().nodes).filter($=>{const j=i.getState().nodeLookup.get($.id);if(j&&!D&&($.id===A.id||!j.internals.positionAbsolute))return!1;const P=TM(B?$:j),G=JH(P,L);return C&&G>0||G>=P.width*P.height||G>=L.width*L.height}):[]},isNodeIntersecting:(A,C,R=!0)=>{const L=$Mt(A)?A:E(A);if(!L)return!1;const B=JH(L,C);return R&&B>0||B>=C.width*C.height||B>=L.width*L.height},updateNode:S,updateNodeData:(A,C,R={replace:!1})=>{S(A,D=>{const L=typeof C=="function"?C(D):C;return R.replace?{...D,data:L}:{...D,data:{...D.data,...L}}},R)},updateEdge:x,updateEdgeData:(A,C,R={replace:!1})=>{x(A,D=>{const L=typeof C=="function"?C(D):C;return R.replace?{...D,data:L}:{...D,data:{...D.data,...L}}},R)},getNodesBounds:A=>{const{nodeLookup:C,nodeOrigin:R}=i.getState();return mDn(A,{nodeLookup:C,nodeOrigin:R})},getHandleConnections:({type:A,id:C,nodeId:R})=>{var D;return Array.from(((D=i.getState().connectionLookup.get(`${R}-${A}${C?`-${C}`:""}`))==null?void 0:D.values())??[])},getNodeConnections:({type:A,handleId:C,nodeId:R})=>{var D;return Array.from(((D=i.getState().connectionLookup.get(`${R}${A?C?`-${A}-${C}`:`-${A}`:""}`))==null?void 0:D.values())??[])},fitView:async A=>{const C=i.getState().fitViewResolver??_Dn();return i.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:C}),s.nodeQueue.push(R=>[...R]),C.promise}}},[]);return H.useMemo(()=>({...d,...n,viewportInitialized:u}),[u])}const d9t=n=>n.selected,nMn=typeof window<"u"?window:void 0;function rMn({deleteKeyCode:n,multiSelectionKeyCode:i}){const s=Mc(),{deleteElements:u}=kR(),d=ZH(n,{actInsideInputWithModifier:!1}),g=ZH(i,{target:nMn});H.useEffect(()=>{if(d){const{edges:b,nodes:w}=s.getState();u({nodes:w.filter(d9t),edges:b.filter(d9t)}),s.setState({nodesSelectionActive:!1})}},[d]),H.useEffect(()=>{s.setState({multiSelectionActive:g})},[g])}function iMn(n){const i=Mc();H.useEffect(()=>{const s=()=>{var d,g,b,w;if(!n.current||!(((g=(d=n.current).checkVisibility)==null?void 0:g.call(d))??!0))return!1;const u=R5e(n.current);(u.height===0||u.width===0)&&((w=(b=i.getState()).onError)==null||w.call(b,"004",z2.error004())),i.setState({width:u.width||500,height:u.height||500})};if(n.current){s(),window.addEventListener("resize",s);const u=new ResizeObserver(()=>s());return u.observe(n.current),()=>{window.removeEventListener("resize",s),u&&n.current&&u.unobserve(n.current)}}},[])}const tae={position:"absolute",width:"100%",height:"100%",top:0,left:0},oMn=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function sMn({onPaneContextMenu:n,zoomOnScroll:i=!0,zoomOnPinch:s=!0,panOnScroll:u=!1,panOnScrollSpeed:d=.5,panOnScrollMode:g=nR.Free,zoomOnDoubleClick:b=!0,panOnDrag:w=!0,defaultViewport:E,translateExtent:S,minZoom:x,maxZoom:A,zoomActivationKeyCode:C,preventScrolling:R=!0,children:D,noWheelClassName:L,noPanClassName:B,onViewportChange:$,isControlledViewport:j,paneClickDistance:P,selectionOnDrag:G}){const ee=Mc(),ne=H.useRef(null),{userSelectionActive:Q,lib:ie,connectionInProgress:he}=Js(oMn,Dc),ge=ZH(C),ce=H.useRef();iMn(ne);const fe=H.useCallback(K=>{$==null||$({x:K[0],y:K[1],zoom:K[2]}),j||ee.setState({transform:K})},[$,j]);return H.useEffect(()=>{if(ne.current){ce.current=a5n({domNode:ne.current,minZoom:x,maxZoom:A,translateExtent:S,viewport:E,onDraggingChange:Se=>ee.setState({paneDragging:Se}),onPanZoomStart:(Se,De)=>{const{onViewportChangeStart:Ae,onMoveStart:xe}=ee.getState();xe==null||xe(Se,De),Ae==null||Ae(De)},onPanZoom:(Se,De)=>{const{onViewportChange:Ae,onMove:xe}=ee.getState();xe==null||xe(Se,De),Ae==null||Ae(De)},onPanZoomEnd:(Se,De)=>{const{onViewportChangeEnd:Ae,onMoveEnd:xe}=ee.getState();xe==null||xe(Se,De),Ae==null||Ae(De)}});const{x:K,y:pe,zoom:Oe}=ce.current.getViewport();return ee.setState({panZoom:ce.current,transform:[K,pe,Oe],domNode:ne.current.closest(".react-flow")}),()=>{var Se;(Se=ce.current)==null||Se.destroy()}}},[]),H.useEffect(()=>{var K;(K=ce.current)==null||K.update({onPaneContextMenu:n,zoomOnScroll:i,zoomOnPinch:s,panOnScroll:u,panOnScrollSpeed:d,panOnScrollMode:g,zoomOnDoubleClick:b,panOnDrag:w,zoomActivationKeyPressed:ge,preventScrolling:R,noPanClassName:B,userSelectionActive:Q,noWheelClassName:L,lib:ie,onTransformChange:fe,connectionInProgress:he,selectionOnDrag:G,paneClickDistance:P})},[n,i,s,u,d,g,b,w,ge,R,B,Q,L,ie,fe,he,G,P]),I.jsx("div",{className:"react-flow__renderer",ref:ne,style:tae,children:D})}const aMn=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function uMn(){const{userSelectionActive:n,userSelectionRect:i}=Js(aMn,Dc);return n&&i?I.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 GCe=(n,i)=>s=>{s.target===i.current&&(n==null||n(s))},cMn=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function lMn({isSelecting:n,selectionKeyPressed:i,selectionMode:s=YH.Full,panOnDrag:u,paneClickDistance:d,selectionOnDrag:g,onSelectionStart:b,onSelectionEnd:w,onPaneClick:E,onPaneContextMenu:S,onPaneScroll:x,onPaneMouseEnter:A,onPaneMouseMove:C,onPaneMouseLeave:R,children:D}){const L=Mc(),{userSelectionActive:B,elementsSelectable:$,dragging:j,connectionInProgress:P}=Js(cMn,Dc),G=$&&(n||B),ee=H.useRef(null),ne=H.useRef(),Q=H.useRef(new Set),ie=H.useRef(new Set),he=H.useRef(!1),ge=Ae=>{if(he.current||P){he.current=!1;return}E==null||E(Ae),L.getState().resetSelectedElements(),L.setState({nodesSelectionActive:!1})},ce=Ae=>{if(Array.isArray(u)&&(u!=null&&u.includes(2))){Ae.preventDefault();return}S==null||S(Ae)},fe=x?Ae=>x(Ae):void 0,K=Ae=>{he.current&&(Ae.stopPropagation(),he.current=!1)},pe=Ae=>{var ht,Xt;const{domNode:xe}=L.getState();if(ne.current=xe==null?void 0:xe.getBoundingClientRect(),!ne.current)return;const We=Ae.target===ee.current;if(!We&&!!Ae.target.closest(".nokey")||!n||!(g&&We||i)||Ae.button!==0||!Ae.isPrimary)return;(Xt=(ht=Ae.target)==null?void 0:ht.setPointerCapture)==null||Xt.call(ht,Ae.pointerId),he.current=!1;const{x:bt,y:kt}=Ov(Ae.nativeEvent,ne.current);L.setState({userSelectionRect:{width:0,height:0,startX:bt,startY:kt,x:bt,y:kt}}),We||(Ae.stopPropagation(),Ae.preventDefault())},Oe=Ae=>{const{userSelectionRect:xe,transform:We,nodeLookup:dt,edgeLookup:Ue,connectionLookup:bt,triggerNodeChanges:kt,triggerEdgeChanges:ht,defaultEdgeOptions:Xt,resetSelectedElements:vt}=L.getState();if(!ne.current||!xe)return;const{x:Ct,y:Ft}=Ov(Ae.nativeEvent,ne.current),{startX:On,startY:Zn}=xe;if(!he.current){const Hi=i?0:d;if(Math.hypot(Ct-On,Ft-Zn)<=Hi)return;vt(),b==null||b(Ae)}he.current=!0;const Yn={startX:On,startY:Zn,x:CtHi.id)),ie.current=new Set;const Qr=(Xt==null?void 0:Xt.selectable)??!0;for(const Hi of Q.current){const ai=bt.get(Hi);if(ai)for(const{edgeId:jc}of ai.values()){const Xs=Ue.get(jc);Xs&&(Xs.selectable??Qr)&&ie.current.add(jc)}}if(!BMt(vr,Q.current)){const Hi=z5(dt,Q.current,!0);kt(Hi)}if(!BMt(Ui,ie.current)){const Hi=z5(Ue,ie.current);ht(Hi)}L.setState({userSelectionRect:Yn,userSelectionActive:!0,nodesSelectionActive:!1})},Se=Ae=>{var xe,We;Ae.button===0&&((We=(xe=Ae.target)==null?void 0:xe.releasePointerCapture)==null||We.call(xe,Ae.pointerId),!B&&Ae.target===ee.current&&L.getState().userSelectionRect&&(ge==null||ge(Ae)),L.setState({userSelectionActive:!1,userSelectionRect:null}),he.current&&(w==null||w(Ae),L.setState({nodesSelectionActive:Q.current.size>0})))},De=u===!0||Array.isArray(u)&&u.includes(0);return I.jsxs("div",{className:Bd(["react-flow__pane",{draggable:De,dragging:j,selection:n}]),onClick:G?void 0:GCe(ge,ee),onContextMenu:GCe(ce,ee),onWheel:GCe(fe,ee),onPointerEnter:G?void 0:A,onPointerMove:G?Oe:C,onPointerUp:G?Se:void 0,onPointerDownCapture:G?pe:void 0,onClickCapture:G?K:void 0,onPointerLeave:R,ref:ee,style:tae,children:[D,I.jsx(uMn,{})]})}function wLe({id:n,store:i,unselect:s=!1,nodeRef:u}){const{addSelectedNodes:d,unselectNodesAndEdges:g,multiSelectionActive:b,nodeLookup:w,onError:E}=i.getState(),S=w.get(n);if(!S){E==null||E("012",z2.error012(n));return}i.setState({nodesSelectionActive:!1}),S.selected?(s||S.selected&&b)&&(g({nodes:[S],edges:[]}),requestAnimationFrame(()=>{var x;return(x=u==null?void 0:u.current)==null?void 0:x.blur()})):d([n])}function Bzt({nodeRef:n,disabled:i=!1,noDragClassName:s,handleSelector:u,nodeId:d,isSelectable:g,nodeClickDistance:b}){const w=Mc(),[E,S]=H.useState(!1),x=H.useRef();return H.useEffect(()=>{x.current=WDn({getStoreItems:()=>w.getState(),onNodeMouseDown:A=>{wLe({id:A,store:w,nodeRef:n})},onDragStart:()=>{S(!0)},onDragStop:()=>{S(!1)}})},[]),H.useEffect(()=>{var A,C;if(i)(A=x.current)==null||A.destroy();else if(n.current)return(C=x.current)==null||C.update({noDragClassName:s,handleSelector:u,domNode:n.current,isSelectable:g,nodeId:d,nodeClickDistance:b}),()=>{var R;(R=x.current)==null||R.destroy()}},[s,u,i,g,n,d]),E}const dMn=n=>i=>i.selected&&(i.draggable||n&&typeof i.draggable>"u");function Uzt(){const n=Mc();return H.useCallback(s=>{const{nodeExtent:u,snapToGrid:d,snapGrid:g,nodesDraggable:b,onError:w,updateNodePositions:E,nodeLookup:S,nodeOrigin:x}=n.getState(),A=new Map,C=dMn(b),R=d?g[0]:5,D=d?g[1]:5,L=s.direction.x*R*s.factor,B=s.direction.y*D*s.factor;for(const[,$]of S){if(!C($))continue;let j={x:$.internals.positionAbsolute.x+L,y:$.internals.positionAbsolute.y+B};d&&(j=_z(j,g));const{position:P,positionAbsolute:G}=rzt({nodeId:$.id,nextPosition:j,nodeLookup:S,nodeExtent:u,nodeOrigin:x,onError:w});$.position=P,$.internals.positionAbsolute=G,A.set($.id,$)}E(A)},[])}const j5e=H.createContext(null),fMn=j5e.Provider;j5e.Consumer;const Hzt=()=>H.useContext(j5e),hMn=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),pMn=(n,i,s)=>u=>{const{connectionClickStartHandle:d,connectionMode:g,connection:b}=u,{fromHandle:w,toHandle:E,isValid:S}=b,x=(E==null?void 0:E.nodeId)===n&&(E==null?void 0:E.id)===i&&(E==null?void 0:E.type)===s;return{connectingFrom:(w==null?void 0:w.nodeId)===n&&(w==null?void 0:w.id)===i&&(w==null?void 0:w.type)===s,connectingTo:x,clickConnecting:(d==null?void 0:d.nodeId)===n&&(d==null?void 0:d.id)===i&&(d==null?void 0:d.type)===s,isPossibleEndHandle:g===EM.Strict?(w==null?void 0:w.type)!==s:n!==(w==null?void 0:w.nodeId)||i!==(w==null?void 0:w.id),connectionInProcess:!!w,clickConnectionInProcess:!!d,valid:x&&S}};function gMn({type:n="source",position:i=qr.Top,isValidConnection:s,isConnectable:u=!0,isConnectableStart:d=!0,isConnectableEnd:g=!0,id:b,onConnect:w,children:E,className:S,onMouseDown:x,onTouchStart:A,...C},R){var Oe,Se;const D=b||null,L=n==="target",B=Mc(),$=Hzt(),{connectOnClick:j,noPanClassName:P,rfId:G}=Js(hMn,Dc),{connectingFrom:ee,connectingTo:ne,clickConnecting:Q,isPossibleEndHandle:ie,connectionInProcess:he,clickConnectionInProcess:ge,valid:ce}=Js(pMn($,D,n),Dc);$||(Se=(Oe=B.getState()).onError)==null||Se.call(Oe,"010",z2.error010());const fe=De=>{const{defaultEdgeOptions:Ae,onConnect:xe,hasDefaultEdges:We}=B.getState(),dt={...Ae,...De};if(We){const{edges:Ue,setEdges:bt}=B.getState();bt(gzt(dt,Ue))}xe==null||xe(dt),w==null||w(dt)},K=De=>{if(!$)return;const Ae=dzt(De.nativeEvent);if(d&&(Ae&&De.button===0||!Ae)){const xe=B.getState();mLe.onPointerDown(De.nativeEvent,{handleDomNode:De.currentTarget,autoPanOnConnect:xe.autoPanOnConnect,connectionMode:xe.connectionMode,connectionRadius:xe.connectionRadius,domNode:xe.domNode,nodeLookup:xe.nodeLookup,lib:xe.lib,isTarget:L,handleId:D,nodeId:$,flowId:xe.rfId,panBy:xe.panBy,cancelConnection:xe.cancelConnection,onConnectStart:xe.onConnectStart,onConnectEnd:xe.onConnectEnd,updateConnection:xe.updateConnection,onConnect:fe,isValidConnection:s||xe.isValidConnection,getTransform:()=>B.getState().transform,getFromHandle:()=>B.getState().connection.fromHandle,autoPanSpeed:xe.autoPanSpeed,dragThreshold:xe.connectionDragThreshold})}Ae?x==null||x(De):A==null||A(De)},pe=De=>{const{onClickConnectStart:Ae,onClickConnectEnd:xe,connectionClickStartHandle:We,connectionMode:dt,isValidConnection:Ue,lib:bt,rfId:kt,nodeLookup:ht,connection:Xt}=B.getState();if(!$||!We&&!d)return;if(!We){Ae==null||Ae(De.nativeEvent,{nodeId:$,handleId:D,handleType:n}),B.setState({connectionClickStartHandle:{nodeId:$,type:n,id:D}});return}const vt=czt(De.target),Ct=s||Ue,{connection:Ft,isValid:On}=mLe.isValid(De.nativeEvent,{handle:{nodeId:$,id:D,type:n},connectionMode:dt,fromNodeId:We.nodeId,fromHandleId:We.id||null,fromType:We.type,isValidConnection:Ct,flowId:kt,doc:vt,lib:bt,nodeLookup:ht});On&&Ft&&fe(Ft);const Zn=structuredClone(Xt);delete Zn.inProgress,Zn.toPosition=Zn.toHandle?Zn.toHandle.position:null,xe==null||xe(De,Zn),B.setState({connectionClickStartHandle:null})};return I.jsx("div",{"data-handleid":D,"data-nodeid":$,"data-handlepos":i,"data-id":`${G}-${$}-${D}-${n}`,className:Bd(["react-flow__handle",`react-flow__handle-${i}`,"nodrag",P,S,{source:!L,target:L,connectable:u,connectablestart:d,connectableend:g,clickconnecting:Q,connectingfrom:ee,connectingto:ne,valid:ce,connectionindicator:u&&(!he||ie)&&(he||ge?g:d)}]),onMouseDown:K,onTouchStart:K,onClick:j?pe:void 0,ref:R,...C,children:E})}const $h=H.memo(Fzt(gMn));function bMn({data:n,isConnectable:i,sourcePosition:s=qr.Bottom}){return I.jsxs(I.Fragment,{children:[n==null?void 0:n.label,I.jsx($h,{type:"source",position:s,isConnectable:i})]})}function mMn({data:n,isConnectable:i,targetPosition:s=qr.Top,sourcePosition:u=qr.Bottom}){return I.jsxs(I.Fragment,{children:[I.jsx($h,{type:"target",position:s,isConnectable:i}),n==null?void 0:n.label,I.jsx($h,{type:"source",position:u,isConnectable:i})]})}function wMn(){return null}function yMn({data:n,isConnectable:i,targetPosition:s=qr.Top}){return I.jsxs(I.Fragment,{children:[I.jsx($h,{type:"target",position:s,isConnectable:i}),n==null?void 0:n.label]})}const Yoe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},f9t={input:bMn,default:mMn,output:yMn,group:wMn};function vMn(n){var i,s,u,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??((s=n.style)==null?void 0:s.height)}:{width:n.width??((u=n.style)==null?void 0:u.width),height:n.height??((d=n.style)==null?void 0:d.height)}}const EMn=n=>{const{width:i,height:s,x:u,y:d}=Az(n.nodeLookup,{filter:g=>!!g.selected});return{width:Rv(i)?i:null,height:Rv(s)?s:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${u}px,${d}px)`}};function SMn({onSelectionContextMenu:n,noPanClassName:i,disableKeyboardA11y:s}){const u=Mc(),{width:d,height:g,transformString:b,userSelectionActive:w}=Js(EMn,Dc),E=Uzt(),S=H.useRef(null);if(H.useEffect(()=>{var C;s||(C=S.current)==null||C.focus({preventScroll:!0})},[s]),Bzt({nodeRef:S}),w||!d||!g)return null;const x=n?C=>{const R=u.getState().nodes.filter(D=>D.selected);n(C,R)}:void 0,A=C=>{Object.prototype.hasOwnProperty.call(Yoe,C.key)&&(C.preventDefault(),E({direction:Yoe[C.key],factor:C.shiftKey?4:1}))};return I.jsx("div",{className:Bd(["react-flow__nodesselection","react-flow__container",i]),style:{transform:b},children:I.jsx("div",{ref:S,className:"react-flow__nodesselection-rect",onContextMenu:x,tabIndex:s?void 0:-1,onKeyDown:s?void 0:A,style:{width:d,height:g}})})}const h9t=typeof window<"u"?window:void 0,TMn=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function zzt({children:n,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:u,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,paneClickDistance:w,deleteKeyCode:E,selectionKeyCode:S,selectionOnDrag:x,selectionMode:A,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:D,panActivationKeyCode:L,zoomActivationKeyCode:B,elementsSelectable:$,zoomOnScroll:j,zoomOnPinch:P,panOnScroll:G,panOnScrollSpeed:ee,panOnScrollMode:ne,zoomOnDoubleClick:Q,panOnDrag:ie,defaultViewport:he,translateExtent:ge,minZoom:ce,maxZoom:fe,preventScrolling:K,onSelectionContextMenu:pe,noWheelClassName:Oe,noPanClassName:Se,disableKeyboardA11y:De,onViewportChange:Ae,isControlledViewport:xe}){const{nodesSelectionActive:We,userSelectionActive:dt}=Js(TMn,Dc),Ue=ZH(S,{target:h9t}),bt=ZH(L,{target:h9t}),kt=bt||ie,ht=bt||G,Xt=x&&kt!==!0,vt=Ue||dt||Xt;return rMn({deleteKeyCode:E,multiSelectionKeyCode:D}),I.jsx(sMn,{onPaneContextMenu:g,elementsSelectable:$,zoomOnScroll:j,zoomOnPinch:P,panOnScroll:ht,panOnScrollSpeed:ee,panOnScrollMode:ne,zoomOnDoubleClick:Q,panOnDrag:!Ue&&kt,defaultViewport:he,translateExtent:ge,minZoom:ce,maxZoom:fe,zoomActivationKeyCode:B,preventScrolling:K,noWheelClassName:Oe,noPanClassName:Se,onViewportChange:Ae,isControlledViewport:xe,paneClickDistance:w,selectionOnDrag:Xt,children:I.jsxs(lMn,{onSelectionStart:C,onSelectionEnd:R,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:u,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,panOnDrag:kt,isSelecting:!!vt,selectionMode:A,selectionKeyPressed:Ue,paneClickDistance:w,selectionOnDrag:Xt,children:[n,We&&I.jsx(SMn,{onSelectionContextMenu:pe,noPanClassName:Se,disableKeyboardA11y:De})]})})}zzt.displayName="FlowRenderer";const AMn=H.memo(zzt),_Mn=n=>i=>n?C5e(i.nodeLookup,{x:0,y:0,width:i.width,height:i.height},i.transform,!0).map(s=>s.id):Array.from(i.nodeLookup.keys());function xMn(n){return Js(H.useCallback(_Mn(n),[n]),Dc)}const kMn=n=>n.updateNodeInternals;function NMn(){const n=Js(kMn),[i]=H.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(s=>{const u=new Map;s.forEach(d=>{const g=d.target.getAttribute("data-id");u.set(g,{id:g,nodeElement:d.target,force:!0})}),n(u)}));return H.useEffect(()=>()=>{i==null||i.disconnect()},[i]),i}function CMn({node:n,nodeType:i,hasDimensions:s,resizeObserver:u}){const d=Mc(),g=H.useRef(null),b=H.useRef(null),w=H.useRef(n.sourcePosition),E=H.useRef(n.targetPosition),S=H.useRef(i),x=s&&!!n.internals.handleBounds;return H.useEffect(()=>{g.current&&!n.hidden&&(!x||b.current!==g.current)&&(b.current&&(u==null||u.unobserve(b.current)),u==null||u.observe(g.current),b.current=g.current)},[x,n.hidden]),H.useEffect(()=>()=>{b.current&&(u==null||u.unobserve(b.current),b.current=null)},[]),H.useEffect(()=>{if(g.current){const A=S.current!==i,C=w.current!==n.sourcePosition,R=E.current!==n.targetPosition;(A||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 IMn({id:n,onClick:i,onMouseEnter:s,onMouseMove:u,onMouseLeave:d,onContextMenu:g,onDoubleClick:b,nodesDraggable:w,elementsSelectable:E,nodesConnectable:S,nodesFocusable:x,resizeObserver:A,noDragClassName:C,noPanClassName:R,disableKeyboardA11y:D,rfId:L,nodeTypes:B,nodeClickDistance:$,onError:j}){const{node:P,internals:G,isParent:ee}=Js(Ct=>{const Ft=Ct.nodeLookup.get(n),On=Ct.parentLookup.has(n);return{node:Ft,internals:Ft.internals,isParent:On}},Dc);let ne=P.type||"default",Q=(B==null?void 0:B[ne])||f9t[ne];Q===void 0&&(j==null||j("003",z2.error003(ne)),ne="default",Q=(B==null?void 0:B.default)||f9t.default);const ie=!!(P.draggable||w&&typeof P.draggable>"u"),he=!!(P.selectable||E&&typeof P.selectable>"u"),ge=!!(P.connectable||S&&typeof P.connectable>"u"),ce=!!(P.focusable||x&&typeof P.focusable>"u"),fe=Mc(),K=azt(P),pe=CMn({node:P,nodeType:ne,hasDimensions:K,resizeObserver:A}),Oe=Bzt({nodeRef:pe,disabled:P.hidden||!ie,noDragClassName:C,handleSelector:P.dragHandle,nodeId:n,isSelectable:he,nodeClickDistance:$}),Se=Uzt();if(P.hidden)return null;const De=_A(P),Ae=vMn(P),xe=he||ie||i||s||u||d,We=s?Ct=>s(Ct,{...G.userNode}):void 0,dt=u?Ct=>u(Ct,{...G.userNode}):void 0,Ue=d?Ct=>d(Ct,{...G.userNode}):void 0,bt=g?Ct=>g(Ct,{...G.userNode}):void 0,kt=b?Ct=>b(Ct,{...G.userNode}):void 0,ht=Ct=>{const{selectNodesOnDrag:Ft,nodeDragThreshold:On}=fe.getState();he&&(!Ft||!ie||On>0)&&wLe({id:n,store:fe,nodeRef:pe}),i&&i(Ct,{...G.userNode})},Xt=Ct=>{if(!(lzt(Ct.nativeEvent)||D)){if(ZHt.includes(Ct.key)&&he){const Ft=Ct.key==="Escape";wLe({id:n,store:fe,unselect:Ft,nodeRef:pe})}else if(ie&&P.selected&&Object.prototype.hasOwnProperty.call(Yoe,Ct.key)){Ct.preventDefault();const{ariaLabelConfig:Ft}=fe.getState();fe.setState({ariaLiveMessage:Ft["node.a11yDescription.ariaLiveMessage"]({direction:Ct.key.replace("Arrow","").toLowerCase(),x:~~G.positionAbsolute.x,y:~~G.positionAbsolute.y})}),Se({direction:Yoe[Ct.key],factor:Ct.shiftKey?4:1})}}},vt=()=>{var Ui;if(D||!((Ui=pe.current)!=null&&Ui.matches(":focus-visible")))return;const{transform:Ct,width:Ft,height:On,autoPanOnNodeFocus:Zn,setCenter:Yn}=fe.getState();if(!Zn)return;C5e(new Map([[n,P]]),{x:0,y:0,width:Ft,height:On},Ct,!0).length>0||Yn(P.position.x+De.width/2,P.position.y+De.height/2,{zoom:Ct[2]})};return I.jsx("div",{className:Bd(["react-flow__node",`react-flow__node-${ne}`,{[R]:ie},P.className,{selected:P.selected,selectable:he,parent:ee,draggable:ie,dragging:Oe}]),ref:pe,style:{zIndex:G.z,transform:`translate(${G.positionAbsolute.x}px,${G.positionAbsolute.y}px)`,pointerEvents:xe?"all":"none",visibility:K?"visible":"hidden",...P.style,...Ae},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:We,onMouseMove:dt,onMouseLeave:Ue,onContextMenu:bt,onClick:ht,onDoubleClick:kt,onKeyDown:ce?Xt:void 0,tabIndex:ce?0:void 0,onFocus:ce?vt:void 0,role:P.ariaRole??(ce?"group":void 0),"aria-roledescription":"node","aria-describedby":D?void 0:`${Ozt}-${L}`,"aria-label":P.ariaLabel,...P.domAttributes,children:I.jsx(fMn,{value:n,children:I.jsx(Q,{id:n,data:P.data,type:ne,positionAbsoluteX:G.positionAbsolute.x,positionAbsoluteY:G.positionAbsolute.y,selected:P.selected??!1,selectable:he,draggable:ie,deletable:P.deletable??!0,isConnectable:ge,sourcePosition:P.sourcePosition,targetPosition:P.targetPosition,dragging:Oe,dragHandle:P.dragHandle,zIndex:G.z,parentId:P.parentId,...De})})})}var RMn=H.memo(IMn);const OMn=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function Gzt(n){const{nodesDraggable:i,nodesConnectable:s,nodesFocusable:u,elementsSelectable:d,onError:g}=Js(OMn,Dc),b=xMn(n.onlyRenderVisibleElements),w=NMn();return I.jsx("div",{className:"react-flow__nodes",style:tae,children:b.map(E=>I.jsx(RMn,{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:s,nodesFocusable:u,elementsSelectable:d,nodeClickDistance:n.nodeClickDistance,onError:g},E))})}Gzt.displayName="NodeRenderer";const LMn=H.memo(Gzt);function DMn(n){return Js(H.useCallback(s=>{if(!n)return s.edges.map(d=>d.id);const u=[];if(s.width&&s.height)for(const d of s.edges){const g=s.nodeLookup.get(d.source),b=s.nodeLookup.get(d.target);g&&b&&CDn({sourceNode:g,targetNode:b,width:s.width,height:s.height,transform:s.transform})&&u.push(d.id)}return u},[n]),Dc)}const MMn=({color:n="none",strokeWidth:i=1})=>{const s={strokeWidth:i,...n&&{stroke:n}};return I.jsx("polyline",{className:"arrow",style:s,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},PMn=({color:n="none",strokeWidth:i=1})=>{const s={strokeWidth:i,...n&&{stroke:n,fill:n}};return I.jsx("polyline",{className:"arrowclosed",style:s,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},p9t={[sA.Arrow]:MMn,[sA.ArrowClosed]:PMn};function jMn(n){const i=Mc();return H.useMemo(()=>{var d,g;return Object.prototype.hasOwnProperty.call(p9t,n)?p9t[n]:((g=(d=i.getState()).onError)==null||g.call(d,"009",z2.error009(n)),null)},[n])}const FMn=({id:n,type:i,color:s,width:u=12.5,height:d=12.5,markerUnits:g="strokeWidth",strokeWidth:b,orient:w="auto-start-reverse"})=>{const E=jMn(i);return E?I.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${u}`,markerHeight:`${d}`,viewBox:"-10 -10 20 20",markerUnits:g,orient:w,refX:"0",refY:"0",children:I.jsx(E,{color:s,strokeWidth:b})}):null},qzt=({defaultColor:n,rfId:i})=>{const s=Js(g=>g.edges),u=Js(g=>g.defaultEdgeOptions),d=H.useMemo(()=>PDn(s,{id:i,defaultColor:n,defaultMarkerStart:u==null?void 0:u.markerStart,defaultMarkerEnd:u==null?void 0:u.markerEnd}),[s,u,i,n]);return d.length?I.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:I.jsx("defs",{children:d.map(g=>I.jsx(FMn,{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};qzt.displayName="MarkerDefinitions";var $Mn=H.memo(qzt);function Vzt({x:n,y:i,label:s,labelStyle:u,labelShowBg:d=!0,labelBgStyle:g,labelBgPadding:b=[2,4],labelBgBorderRadius:w=2,children:E,className:S,...x}){const[A,C]=H.useState({x:1,y:0,width:0,height:0}),R=Bd(["react-flow__edge-textwrapper",S]),D=H.useRef(null);return H.useEffect(()=>{if(D.current){const L=D.current.getBBox();C({x:L.x,y:L.y,width:L.width,height:L.height})}},[s]),s?I.jsxs("g",{transform:`translate(${n-A.width/2} ${i-A.height/2})`,className:R,visibility:A.width?"visible":"hidden",...x,children:[d&&I.jsx("rect",{width:A.width+2*b[0],x:-b[0],y:-b[1],height:A.height+2*b[1],className:"react-flow__edge-textbg",style:g,rx:w,ry:w}),I.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:D,style:u,children:s}),E]}):null}Vzt.displayName="EdgeText";const BMn=H.memo(Vzt);function kz({path:n,labelX:i,labelY:s,label:u,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E,interactionWidth:S=20,...x}){return I.jsxs(I.Fragment,{children:[I.jsx("path",{...x,d:n,fill:"none",className:Bd(["react-flow__edge-path",x.className])}),S?I.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}):null,u&&Rv(i)&&Rv(s)?I.jsx(BMn,{x:i,y:s,label:u,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E}):null]})}function g9t({pos:n,x1:i,y1:s,x2:u,y2:d}){return n===qr.Left||n===qr.Right?[.5*(i+u),s]:[i,.5*(s+d)]}function Wzt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:u,targetY:d,targetPosition:g=qr.Top}){const[b,w]=g9t({pos:s,x1:n,y1:i,x2:u,y2:d}),[E,S]=g9t({pos:g,x1:u,y1:d,x2:n,y2:i}),[x,A,C,R]=fzt({sourceX:n,sourceY:i,targetX:u,targetY:d,sourceControlX:b,sourceControlY:w,targetControlX:E,targetControlY:S});return[`M${n},${i} C${b},${w} ${E},${S} ${u},${d}`,x,A,C,R]}function Kzt(n){return H.memo(({id:i,sourceX:s,sourceY:u,targetX:d,targetY:g,sourcePosition:b,targetPosition:w,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:D,markerEnd:L,markerStart:B,interactionWidth:$})=>{const[j,P,G]=Wzt({sourceX:s,sourceY:u,sourcePosition:b,targetX:d,targetY:g,targetPosition:w}),ee=n.isInternal?void 0:i;return I.jsx(kz,{id:ee,path:j,labelX:P,labelY:G,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:D,markerEnd:L,markerStart:B,interactionWidth:$})})}const UMn=Kzt({isInternal:!1}),Yzt=Kzt({isInternal:!0});UMn.displayName="SimpleBezierEdge";Yzt.displayName="SimpleBezierEdgeInternal";function Jzt(n){return H.memo(({id:i,sourceX:s,sourceY:u,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,sourcePosition:R=qr.Bottom,targetPosition:D=qr.Top,markerEnd:L,markerStart:B,pathOptions:$,interactionWidth:j})=>{const[P,G,ee]=Koe({sourceX:s,sourceY:u,sourcePosition:R,targetX:d,targetY:g,targetPosition:D,borderRadius:$==null?void 0:$.borderRadius,offset:$==null?void 0:$.offset,stepPosition:$==null?void 0:$.stepPosition}),ne=n.isInternal?void 0:i;return I.jsx(kz,{id:ne,path:P,labelX:G,labelY:ee,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:L,markerStart:B,interactionWidth:j})})}const Xzt=Jzt({isInternal:!1}),Zzt=Jzt({isInternal:!0});Xzt.displayName="SmoothStepEdge";Zzt.displayName="SmoothStepEdgeInternal";function Qzt(n){return H.memo(({id:i,...s})=>{var d;const u=n.isInternal?void 0:i;return I.jsx(Xzt,{...s,id:u,pathOptions:H.useMemo(()=>{var g;return{borderRadius:0,offset:(g=s.pathOptions)==null?void 0:g.offset}},[(d=s.pathOptions)==null?void 0:d.offset])})})}const HMn=Qzt({isInternal:!1}),eGt=Qzt({isInternal:!0});HMn.displayName="StepEdge";eGt.displayName="StepEdgeInternal";function tGt(n){return H.memo(({id:i,sourceX:s,sourceY:u,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:R,markerStart:D,interactionWidth:L})=>{const[B,$,j]=bzt({sourceX:s,sourceY:u,targetX:d,targetY:g}),P=n.isInternal?void 0:i;return I.jsx(kz,{id:P,path:B,labelX:$,labelY:j,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:R,markerStart:D,interactionWidth:L})})}const zMn=tGt({isInternal:!1}),nGt=tGt({isInternal:!0});zMn.displayName="StraightEdge";nGt.displayName="StraightEdgeInternal";function rGt(n){return H.memo(({id:i,sourceX:s,sourceY:u,targetX:d,targetY:g,sourcePosition:b=qr.Bottom,targetPosition:w=qr.Top,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:D,markerEnd:L,markerStart:B,pathOptions:$,interactionWidth:j})=>{const[P,G,ee]=hzt({sourceX:s,sourceY:u,sourcePosition:b,targetX:d,targetY:g,targetPosition:w,curvature:$==null?void 0:$.curvature}),ne=n.isInternal?void 0:i;return I.jsx(kz,{id:ne,path:P,labelX:G,labelY:ee,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:D,markerEnd:L,markerStart:B,interactionWidth:j})})}const GMn=rGt({isInternal:!1}),iGt=rGt({isInternal:!0});GMn.displayName="BezierEdge";iGt.displayName="BezierEdgeInternal";const b9t={default:iGt,straight:nGt,step:eGt,smoothstep:Zzt,simplebezier:Yzt},m9t={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},qMn=(n,i,s)=>s===qr.Left?n-i:s===qr.Right?n+i:n,VMn=(n,i,s)=>s===qr.Top?n-i:s===qr.Bottom?n+i:n,w9t="react-flow__edgeupdater";function y9t({position:n,centerX:i,centerY:s,radius:u=10,onMouseDown:d,onMouseEnter:g,onMouseOut:b,type:w}){return I.jsx("circle",{onMouseDown:d,onMouseEnter:g,onMouseOut:b,className:Bd([w9t,`${w9t}-${w}`]),cx:qMn(i,u,n),cy:VMn(s,u,n),r:u,stroke:"transparent",fill:"transparent"})}function WMn({isReconnectable:n,reconnectRadius:i,edge:s,sourceX:u,sourceY:d,targetX:g,targetY:b,sourcePosition:w,targetPosition:E,onReconnect:S,onReconnectStart:x,onReconnectEnd:A,setReconnecting:C,setUpdateHover:R}){const D=Mc(),L=(G,ee)=>{if(G.button!==0)return;const{autoPanOnConnect:ne,domNode:Q,isValidConnection:ie,connectionMode:he,connectionRadius:ge,lib:ce,onConnectStart:fe,onConnectEnd:K,cancelConnection:pe,nodeLookup:Oe,rfId:Se,panBy:De,updateConnection:Ae}=D.getState(),xe=ee.type==="target",We=(bt,kt)=>{C(!1),A==null||A(bt,s,ee.type,kt)},dt=bt=>S==null?void 0:S(s,bt),Ue=(bt,kt)=>{C(!0),x==null||x(G,s,ee.type),fe==null||fe(bt,kt)};mLe.onPointerDown(G.nativeEvent,{autoPanOnConnect:ne,connectionMode:he,connectionRadius:ge,domNode:Q,handleId:ee.id,nodeId:ee.nodeId,nodeLookup:Oe,isTarget:xe,edgeUpdaterType:ee.type,lib:ce,flowId:Se,cancelConnection:pe,panBy:De,isValidConnection:ie,onConnect:dt,onConnectStart:Ue,onConnectEnd:K,onReconnectEnd:We,updateConnection:Ae,getTransform:()=>D.getState().transform,getFromHandle:()=>D.getState().connection.fromHandle,dragThreshold:D.getState().connectionDragThreshold,handleDomNode:G.currentTarget})},B=G=>L(G,{nodeId:s.target,id:s.targetHandle??null,type:"target"}),$=G=>L(G,{nodeId:s.source,id:s.sourceHandle??null,type:"source"}),j=()=>R(!0),P=()=>R(!1);return I.jsxs(I.Fragment,{children:[(n===!0||n==="source")&&I.jsx(y9t,{position:w,centerX:u,centerY:d,radius:i,onMouseDown:B,onMouseEnter:j,onMouseOut:P,type:"source"}),(n===!0||n==="target")&&I.jsx(y9t,{position:E,centerX:g,centerY:b,radius:i,onMouseDown:$,onMouseEnter:j,onMouseOut:P,type:"target"})]})}function KMn({id:n,edgesFocusable:i,edgesReconnectable:s,elementsSelectable:u,onClick:d,onDoubleClick:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,reconnectRadius:x,onReconnect:A,onReconnectStart:C,onReconnectEnd:R,rfId:D,edgeTypes:L,noPanClassName:B,onError:$,disableKeyboardA11y:j}){let P=Js(Yn=>Yn.edgeLookup.get(n));const G=Js(Yn=>Yn.defaultEdgeOptions);P=G?{...G,...P}:P;let ee=P.type||"default",ne=(L==null?void 0:L[ee])||b9t[ee];ne===void 0&&($==null||$("011",z2.error011(ee)),ee="default",ne=(L==null?void 0:L.default)||b9t.default);const Q=!!(P.focusable||i&&typeof P.focusable>"u"),ie=typeof A<"u"&&(P.reconnectable||s&&typeof P.reconnectable>"u"),he=!!(P.selectable||u&&typeof P.selectable>"u"),ge=H.useRef(null),[ce,fe]=H.useState(!1),[K,pe]=H.useState(!1),Oe=Mc(),{zIndex:Se,sourceX:De,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue}=Js(H.useCallback(Yn=>{const vr=Yn.nodeLookup.get(P.source),Ui=Yn.nodeLookup.get(P.target);if(!vr||!Ui)return{zIndex:P.zIndex,...m9t};const Qr=MDn({id:n,sourceNode:vr,targetNode:Ui,sourceHandle:P.sourceHandle||null,targetHandle:P.targetHandle||null,connectionMode:Yn.connectionMode,onError:$});return{zIndex:NDn({selected:P.selected,zIndex:P.zIndex,sourceNode:vr,targetNode:Ui,elevateOnSelect:Yn.elevateEdgesOnSelect,zIndexMode:Yn.zIndexMode}),...Qr||m9t}},[P.source,P.target,P.sourceHandle,P.targetHandle,P.selected,P.zIndex]),Dc),bt=H.useMemo(()=>P.markerStart?`url('#${gLe(P.markerStart,D)}')`:void 0,[P.markerStart,D]),kt=H.useMemo(()=>P.markerEnd?`url('#${gLe(P.markerEnd,D)}')`:void 0,[P.markerEnd,D]);if(P.hidden||De===null||Ae===null||xe===null||We===null)return null;const ht=Yn=>{var Hi;const{addSelectedEdges:vr,unselectNodesAndEdges:Ui,multiSelectionActive:Qr}=Oe.getState();he&&(Oe.setState({nodesSelectionActive:!1}),P.selected&&Qr?(Ui({nodes:[],edges:[P]}),(Hi=ge.current)==null||Hi.blur()):vr([n])),d&&d(Yn,P)},Xt=g?Yn=>{g(Yn,{...P})}:void 0,vt=b?Yn=>{b(Yn,{...P})}:void 0,Ct=w?Yn=>{w(Yn,{...P})}:void 0,Ft=E?Yn=>{E(Yn,{...P})}:void 0,On=S?Yn=>{S(Yn,{...P})}:void 0,Zn=Yn=>{var vr;if(!j&&ZHt.includes(Yn.key)&&he){const{unselectNodesAndEdges:Ui,addSelectedEdges:Qr}=Oe.getState();Yn.key==="Escape"?((vr=ge.current)==null||vr.blur(),Ui({edges:[P]})):Qr([n])}};return I.jsx("svg",{style:{zIndex:Se},children:I.jsxs("g",{className:Bd(["react-flow__edge",`react-flow__edge-${ee}`,P.className,B,{selected:P.selected,animated:P.animated,inactive:!he&&!d,updating:ce,selectable:he}]),onClick:ht,onDoubleClick:Xt,onContextMenu:vt,onMouseEnter:Ct,onMouseMove:Ft,onMouseLeave:On,onKeyDown:Q?Zn:void 0,tabIndex:Q?0:void 0,role:P.ariaRole??(Q?"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":Q?`${Lzt}-${D}`:void 0,ref:ge,...P.domAttributes,children:[!K&&I.jsx(ne,{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:De,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue,data:P.data,style:P.style,sourceHandleId:P.sourceHandle,targetHandleId:P.targetHandle,markerStart:bt,markerEnd:kt,pathOptions:"pathOptions"in P?P.pathOptions:void 0,interactionWidth:P.interactionWidth}),ie&&I.jsx(WMn,{edge:P,isReconnectable:ie,reconnectRadius:x,onReconnect:A,onReconnectStart:C,onReconnectEnd:R,sourceX:De,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue,setUpdateHover:fe,setReconnecting:pe})]})})}var YMn=H.memo(KMn);const JMn=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function oGt({defaultMarkerColor:n,onlyRenderVisibleElements:i,rfId:s,edgeTypes:u,noPanClassName:d,onReconnect:g,onEdgeContextMenu:b,onEdgeMouseEnter:w,onEdgeMouseMove:E,onEdgeMouseLeave:S,onEdgeClick:x,reconnectRadius:A,onEdgeDoubleClick:C,onReconnectStart:R,onReconnectEnd:D,disableKeyboardA11y:L}){const{edgesFocusable:B,edgesReconnectable:$,elementsSelectable:j,onError:P}=Js(JMn,Dc),G=DMn(i);return I.jsxs("div",{className:"react-flow__edges",children:[I.jsx($Mn,{defaultColor:n,rfId:s}),G.map(ee=>I.jsx(YMn,{id:ee,edgesFocusable:B,edgesReconnectable:$,elementsSelectable:j,noPanClassName:d,onReconnect:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,onClick:x,reconnectRadius:A,onDoubleClick:C,onReconnectStart:R,onReconnectEnd:D,rfId:s,onError:P,edgeTypes:u,disableKeyboardA11y:L},ee))]})}oGt.displayName="EdgeRenderer";const XMn=H.memo(oGt),ZMn=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function QMn({children:n}){const i=Js(ZMn);return I.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:i},children:n})}function e9n(n){const i=kR(),s=H.useRef(!1);H.useEffect(()=>{!s.current&&i.viewportInitialized&&n&&(setTimeout(()=>n(i),1),s.current=!0)},[n,i.viewportInitialized])}const t9n=n=>{var i;return(i=n.panZoom)==null?void 0:i.syncViewport};function n9n(n){const i=Js(t9n),s=Mc();return H.useEffect(()=>{n&&(i==null||i(n),s.setState({transform:[n.x,n.y,n.zoom]}))},[n,i]),null}function r9n(n){return n.connection.inProgress?{...n.connection,to:xz(n.connection.to,n.transform)}:{...n.connection}}function i9n(n){return r9n}function o9n(n){const i=i9n();return Js(i,Dc)}const s9n=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function a9n({containerStyle:n,style:i,type:s,component:u}){const{nodesConnectable:d,width:g,height:b,isValid:w,inProgress:E}=Js(s9n,Dc);return!(g&&d&&E)?null:I.jsx("svg",{style:n,width:g,height:b,className:"react-flow__connectionline react-flow__container",children:I.jsx("g",{className:Bd(["react-flow__connection",tzt(w)]),children:I.jsx(sGt,{style:i,type:s,CustomComponent:u,isValid:w})})})}const sGt=({style:n,type:i=Bk.Bezier,CustomComponent:s,isValid:u})=>{const{inProgress:d,from:g,fromNode:b,fromHandle:w,fromPosition:E,to:S,toNode:x,toHandle:A,toPosition:C,pointer:R}=o9n();if(!d)return;if(s)return I.jsx(s,{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:tzt(u),toNode:x,toHandle:A,pointer:R});let D="";const L={sourceX:g.x,sourceY:g.y,sourcePosition:E,targetX:S.x,targetY:S.y,targetPosition:C};switch(i){case Bk.Bezier:[D]=hzt(L);break;case Bk.SimpleBezier:[D]=Wzt(L);break;case Bk.Step:[D]=Koe({...L,borderRadius:0});break;case Bk.SmoothStep:[D]=Koe(L);break;default:[D]=bzt(L)}return I.jsx("path",{d:D,fill:"none",className:"react-flow__connection-path",style:n})};sGt.displayName="ConnectionLine";const u9n={};function v9t(n=u9n){H.useRef(n),Mc(),H.useEffect(()=>{},[n])}function c9n(){Mc(),H.useRef(!1),H.useEffect(()=>{},[])}function aGt({nodeTypes:n,edgeTypes:i,onInit:s,onNodeClick:u,onEdgeClick:d,onNodeDoubleClick:g,onEdgeDoubleClick:b,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:x,onSelectionContextMenu:A,onSelectionStart:C,onSelectionEnd:R,connectionLineType:D,connectionLineStyle:L,connectionLineComponent:B,connectionLineContainerStyle:$,selectionKeyCode:j,selectionOnDrag:P,selectionMode:G,multiSelectionKeyCode:ee,panActivationKeyCode:ne,zoomActivationKeyCode:Q,deleteKeyCode:ie,onlyRenderVisibleElements:he,elementsSelectable:ge,defaultViewport:ce,translateExtent:fe,minZoom:K,maxZoom:pe,preventScrolling:Oe,defaultMarkerColor:Se,zoomOnScroll:De,zoomOnPinch:Ae,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:dt,zoomOnDoubleClick:Ue,panOnDrag:bt,onPaneClick:kt,onPaneMouseEnter:ht,onPaneMouseMove:Xt,onPaneMouseLeave:vt,onPaneScroll:Ct,onPaneContextMenu:Ft,paneClickDistance:On,nodeClickDistance:Zn,onEdgeContextMenu:Yn,onEdgeMouseEnter:vr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,noDragClassName:ls,noWheelClassName:Qo,noPanClassName:Ca,disableKeyboardA11y:Ci,nodeExtent:mb,rfId:Yg,viewport:Wh,onViewportChange:wb}){return v9t(n),v9t(i),c9n(),e9n(s),n9n(Wh),I.jsx(AMn,{onPaneClick:kt,onPaneMouseEnter:ht,onPaneMouseMove:Xt,onPaneMouseLeave:vt,onPaneContextMenu:Ft,onPaneScroll:Ct,paneClickDistance:On,deleteKeyCode:ie,selectionKeyCode:j,selectionOnDrag:P,selectionMode:G,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:ee,panActivationKeyCode:ne,zoomActivationKeyCode:Q,elementsSelectable:ge,zoomOnScroll:De,zoomOnPinch:Ae,zoomOnDoubleClick:Ue,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:dt,panOnDrag:bt,defaultViewport:ce,translateExtent:fe,minZoom:K,maxZoom:pe,onSelectionContextMenu:A,preventScrolling:Oe,noDragClassName:ls,noWheelClassName:Qo,noPanClassName:Ca,disableKeyboardA11y:Ci,onViewportChange:wb,isControlledViewport:!!Wh,children:I.jsxs(QMn,{children:[I.jsx(XMn,{edgeTypes:i,onEdgeClick:d,onEdgeDoubleClick:b,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,onlyRenderVisibleElements:he,onEdgeContextMenu:Yn,onEdgeMouseEnter:vr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,defaultMarkerColor:Se,noPanClassName:Ca,disableKeyboardA11y:Ci,rfId:Yg}),I.jsx(a9n,{style:L,type:D,component:B,containerStyle:$}),I.jsx("div",{className:"react-flow__edgelabel-renderer"}),I.jsx(LMn,{nodeTypes:n,onNodeClick:u,onNodeDoubleClick:g,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:x,nodeClickDistance:Zn,onlyRenderVisibleElements:he,noPanClassName:Ca,noDragClassName:ls,disableKeyboardA11y:Ci,nodeExtent:mb,rfId:Yg}),I.jsx("div",{className:"react-flow__viewport-portal"})]})})}aGt.displayName="GraphView";const l9n=H.memo(aGt),E9t=({nodes:n,edges:i,defaultNodes:s,defaultEdges:u,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E=.5,maxZoom:S=2,nodeOrigin:x,nodeExtent:A,zIndexMode:C="basic"}={})=>{const R=new Map,D=new Map,L=new Map,B=new Map,$=u??i??[],j=s??n??[],P=x??[0,0],G=A??KH;yzt(L,B,$);const ee=bLe(j,R,D,{nodeOrigin:P,nodeExtent:G,zIndexMode:C});let ne=[0,0,1];if(b&&d&&g){const Q=Az(R,{filter:ce=>!!((ce.width||ce.initialWidth)&&(ce.height||ce.initialHeight))}),{x:ie,y:he,zoom:ge}=I5e(Q,d,g,E,S,(w==null?void 0:w.padding)??.1);ne=[ie,he,ge]}return{rfId:"1",width:d??0,height:g??0,transform:ne,nodes:j,nodesInitialized:ee,nodeLookup:R,parentLookup:D,edges:$,edgeLookup:B,connectionLookup:L,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:s!==void 0,hasDefaultEdges:u!==void 0,panZoom:null,minZoom:E,maxZoom:S,translateExtent:KH,nodeExtent:G,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:EM.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:{...ezt},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:SDn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:QHt,zIndexMode:C,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},d9n=({nodes:n,edges:i,defaultNodes:s,defaultEdges:u,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:x,nodeExtent:A,zIndexMode:C})=>C5n((R,D)=>{async function L(){const{nodeLookup:B,panZoom:$,fitViewOptions:j,fitViewResolver:P,width:G,height:ee,minZoom:ne,maxZoom:Q}=D();$&&(await vDn({nodes:B,width:G,height:ee,panZoom:$,minZoom:ne,maxZoom:Q},j),P==null||P.resolve(!0),R({fitViewResolver:null}))}return{...E9t({nodes:n,edges:i,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:x,nodeExtent:A,defaultNodes:s,defaultEdges:u,zIndexMode:C}),setNodes:B=>{const{nodeLookup:$,parentLookup:j,nodeOrigin:P,elevateNodesOnSelect:G,fitViewQueued:ee,zIndexMode:ne}=D(),Q=bLe(B,$,j,{nodeOrigin:P,nodeExtent:A,elevateNodesOnSelect:G,checkEquality:!0,zIndexMode:ne});ee&&Q?(L(),R({nodes:B,nodesInitialized:Q,fitViewQueued:!1,fitViewOptions:void 0})):R({nodes:B,nodesInitialized:Q})},setEdges:B=>{const{connectionLookup:$,edgeLookup:j}=D();yzt($,j,B),R({edges:B})},setDefaultNodesAndEdges:(B,$)=>{if(B){const{setNodes:j}=D();j(B),R({hasDefaultNodes:!0})}if($){const{setEdges:j}=D();j($),R({hasDefaultEdges:!0})}},updateNodeInternals:B=>{const{triggerNodeChanges:$,nodeLookup:j,parentLookup:P,domNode:G,nodeOrigin:ee,nodeExtent:ne,debug:Q,fitViewQueued:ie,zIndexMode:he}=D(),{changes:ge,updatedInternals:ce}=zDn(B,j,P,G,ee,ne,he);ce&&($Dn(j,P,{nodeOrigin:ee,nodeExtent:ne,zIndexMode:he}),ie?(L(),R({fitViewQueued:!1,fitViewOptions:void 0})):R({}),(ge==null?void 0:ge.length)>0&&(Q&&console.log("React Flow: trigger node changes",ge),$==null||$(ge)))},updateNodePositions:(B,$=!1)=>{const j=[];let P=[];const{nodeLookup:G,triggerNodeChanges:ee,connection:ne,updateConnection:Q,onNodesChangeMiddlewareMap:ie}=D();for(const[he,ge]of B){const ce=G.get(he),fe=!!(ce!=null&&ce.expandParent&&(ce!=null&&ce.parentId)&&(ge!=null&&ge.position)),K={id:he,type:"position",position:fe?{x:Math.max(0,ge.position.x),y:Math.max(0,ge.position.y)}:ge.position,dragging:$};if(ce&&ne.inProgress&&ne.fromNode.id===ce.id){const pe=pR(ce,ne.fromHandle,qr.Left,!0);Q({...ne,from:pe})}fe&&ce.parentId&&j.push({id:he,parentId:ce.parentId,rect:{...ge.internals.positionAbsolute,width:ge.measured.width??0,height:ge.measured.height??0}}),P.push(K)}if(j.length>0){const{parentLookup:he,nodeOrigin:ge}=D(),ce=P5e(j,G,he,ge);P.push(...ce)}for(const he of ie.values())P=he(P);ee(P)},triggerNodeChanges:B=>{const{onNodesChange:$,setNodes:j,nodes:P,hasDefaultNodes:G,debug:ee}=D();if(B!=null&&B.length){if(G){const ne=Pzt(B,P);j(ne)}ee&&console.log("React Flow: trigger node changes",B),$==null||$(B)}},triggerEdgeChanges:B=>{const{onEdgesChange:$,setEdges:j,edges:P,hasDefaultEdges:G,debug:ee}=D();if(B!=null&&B.length){if(G){const ne=jzt(B,P);j(ne)}ee&&console.log("React Flow: trigger edge changes",B),$==null||$(B)}},addSelectedNodes:B=>{const{multiSelectionActive:$,edgeLookup:j,nodeLookup:P,triggerNodeChanges:G,triggerEdgeChanges:ee}=D();if($){const ne=B.map(Q=>W4(Q,!0));G(ne);return}G(z5(P,new Set([...B]),!0)),ee(z5(j))},addSelectedEdges:B=>{const{multiSelectionActive:$,edgeLookup:j,nodeLookup:P,triggerNodeChanges:G,triggerEdgeChanges:ee}=D();if($){const ne=B.map(Q=>W4(Q,!0));ee(ne);return}ee(z5(j,new Set([...B]))),G(z5(P,new Set,!0))},unselectNodesAndEdges:({nodes:B,edges:$}={})=>{const{edges:j,nodes:P,nodeLookup:G,triggerNodeChanges:ee,triggerEdgeChanges:ne}=D(),Q=B||P,ie=$||j,he=Q.map(ce=>{const fe=G.get(ce.id);return fe&&(fe.selected=!1),W4(ce.id,!1)}),ge=ie.map(ce=>W4(ce.id,!1));ee(he),ne(ge)},setMinZoom:B=>{const{panZoom:$,maxZoom:j}=D();$==null||$.setScaleExtent([B,j]),R({minZoom:B})},setMaxZoom:B=>{const{panZoom:$,minZoom:j}=D();$==null||$.setScaleExtent([j,B]),R({maxZoom:B})},setTranslateExtent:B=>{var $;($=D().panZoom)==null||$.setTranslateExtent(B),R({translateExtent:B})},resetSelectedElements:()=>{const{edges:B,nodes:$,triggerNodeChanges:j,triggerEdgeChanges:P,elementsSelectable:G}=D();if(!G)return;const ee=$.reduce((Q,ie)=>ie.selected?[...Q,W4(ie.id,!1)]:Q,[]),ne=B.reduce((Q,ie)=>ie.selected?[...Q,W4(ie.id,!1)]:Q,[]);j(ee),P(ne)},setNodeExtent:B=>{const{nodes:$,nodeLookup:j,parentLookup:P,nodeOrigin:G,elevateNodesOnSelect:ee,nodeExtent:ne,zIndexMode:Q}=D();B[0][0]===ne[0][0]&&B[0][1]===ne[0][1]&&B[1][0]===ne[1][0]&&B[1][1]===ne[1][1]||(bLe($,j,P,{nodeOrigin:G,nodeExtent:B,elevateNodesOnSelect:ee,checkEquality:!1,zIndexMode:Q}),R({nodeExtent:B}))},panBy:B=>{const{transform:$,width:j,height:P,panZoom:G,translateExtent:ee}=D();return GDn({delta:B,panZoom:G,transform:$,translateExtent:ee,width:j,height:P})},setCenter:async(B,$,j)=>{const{width:P,height:G,maxZoom:ee,panZoom:ne}=D();if(!ne)return Promise.resolve(!1);const Q=typeof(j==null?void 0:j.zoom)<"u"?j.zoom:ee;return await ne.setViewport({x:P/2-B*Q,y:G/2-$*Q,zoom:Q},{duration:j==null?void 0:j.duration,ease:j==null?void 0:j.ease,interpolate:j==null?void 0:j.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{R({connection:{...ezt}})},updateConnection:B=>{R({connection:B})},reset:()=>R({...E9t()})}},Object.is);function uGt({initialNodes:n,initialEdges:i,defaultNodes:s,defaultEdges:u,initialWidth:d,initialHeight:g,initialMinZoom:b,initialMaxZoom:w,initialFitViewOptions:E,fitView:S,nodeOrigin:x,nodeExtent:A,zIndexMode:C,children:R}){const[D]=H.useState(()=>d9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:u,width:d,height:g,fitView:S,minZoom:b,maxZoom:w,fitViewOptions:E,nodeOrigin:x,nodeExtent:A,zIndexMode:C}));return I.jsx(I5n,{value:D,children:I.jsx(Q5n,{children:R})})}function f9n({children:n,nodes:i,edges:s,defaultNodes:u,defaultEdges:d,width:g,height:b,fitView:w,fitViewOptions:E,minZoom:S,maxZoom:x,nodeOrigin:A,nodeExtent:C,zIndexMode:R}){return H.useContext(eae)?I.jsx(I.Fragment,{children:n}):I.jsx(uGt,{initialNodes:i,initialEdges:s,defaultNodes:u,defaultEdges:d,initialWidth:g,initialHeight:b,fitView:w,initialFitViewOptions:E,initialMinZoom:S,initialMaxZoom:x,nodeOrigin:A,nodeExtent:C,zIndexMode:R,children:n})}const h9n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function p9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:u,className:d,nodeTypes:g,edgeTypes:b,onNodeClick:w,onEdgeClick:E,onInit:S,onMove:x,onMoveStart:A,onMoveEnd:C,onConnect:R,onConnectStart:D,onConnectEnd:L,onClickConnectStart:B,onClickConnectEnd:$,onNodeMouseEnter:j,onNodeMouseMove:P,onNodeMouseLeave:G,onNodeContextMenu:ee,onNodeDoubleClick:ne,onNodeDragStart:Q,onNodeDrag:ie,onNodeDragStop:he,onNodesDelete:ge,onEdgesDelete:ce,onDelete:fe,onSelectionChange:K,onSelectionDragStart:pe,onSelectionDrag:Oe,onSelectionDragStop:Se,onSelectionContextMenu:De,onSelectionStart:Ae,onSelectionEnd:xe,onBeforeDelete:We,connectionMode:dt,connectionLineType:Ue=Bk.Bezier,connectionLineStyle:bt,connectionLineComponent:kt,connectionLineContainerStyle:ht,deleteKeyCode:Xt="Backspace",selectionKeyCode:vt="Shift",selectionOnDrag:Ct=!1,selectionMode:Ft=YH.Full,panActivationKeyCode:On="Space",multiSelectionKeyCode:Zn=XH()?"Meta":"Control",zoomActivationKeyCode:Yn=XH()?"Meta":"Control",snapToGrid:vr,snapGrid:Ui,onlyRenderVisibleElements:Qr=!1,selectNodesOnDrag:Hi,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:ls,nodeOrigin:Qo=Dzt,edgesFocusable:Ca,edgesReconnectable:Ci,elementsSelectable:mb=!0,defaultViewport:Yg=z5n,minZoom:Wh=.5,maxZoom:wb=2,translateExtent:Wp=KH,preventScrolling:Ow=!0,nodeExtent:Kh,defaultMarkerColor:X2="#b1b1b7",zoomOnScroll:Jg=!0,zoomOnPinch:Kp=!0,panOnScroll:Xg=!1,panOnScrollSpeed:CN=.5,panOnScrollMode:IN=nR.Free,zoomOnDoubleClick:GR=!0,panOnDrag:kA=!0,onPaneClick:yb,onPaneMouseEnter:qR,onPaneMouseMove:VR,onPaneMouseLeave:RN,onPaneScroll:ON,onPaneContextMenu:po,paneClickDistance:Fc=1,nodeClickDistance:Fl=0,children:Af,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:n9=10,onNodesChange:r9,onEdgesChange:nG,noDragClassName:rG="nodrag",noWheelClassName:iG="nowheel",noPanClassName:i9="nopan",fitView:o9,fitViewOptions:s9,connectOnClick:oG,attributionPosition:sG,proOptions:aG,defaultEdgeOptions:uG,elevateNodesOnSelect:WR=!0,elevateEdgesOnSelect:cG=!1,disableKeyboardA11y:a9=!1,autoPanOnConnect:lG,autoPanOnNodeDrag:dG,autoPanSpeed:fG,connectionRadius:hG,isValidConnection:pG,onError:gG,style:bG,id:u9,nodeDragThreshold:mG,connectionDragThreshold:c9,viewport:l9,onViewportChange:wG,width:yG,height:vG,colorMode:EG="light",debug:SG,onScroll:LN,ariaLabelConfig:TG,zIndexMode:d9="basic",...AG},_G){const KR=u9||"1",xG=W5n(EG),kG=H.useCallback(f9=>{f9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),LN==null||LN(f9)},[LN]);return I.jsx("div",{"data-testid":"rf__wrapper",...AG,onScroll:kG,style:{...bG,...h9n},ref:_G,className:Bd(["react-flow",d,xG]),id:u9,role:"application",children:I.jsxs(f9n,{nodes:n,edges:i,width:yG,height:vG,fitView:o9,fitViewOptions:s9,minZoom:Wh,maxZoom:wb,nodeOrigin:Qo,nodeExtent:Kh,zIndexMode:d9,children:[I.jsx(l9n,{onInit:S,onNodeClick:w,onEdgeClick:E,onNodeMouseEnter:j,onNodeMouseMove:P,onNodeMouseLeave:G,onNodeContextMenu:ee,onNodeDoubleClick:ne,nodeTypes:g,edgeTypes:b,connectionLineType:Ue,connectionLineStyle:bt,connectionLineComponent:kt,connectionLineContainerStyle:ht,selectionKeyCode:vt,selectionOnDrag:Ct,selectionMode:Ft,deleteKeyCode:Xt,multiSelectionKeyCode:Zn,panActivationKeyCode:On,zoomActivationKeyCode:Yn,onlyRenderVisibleElements:Qr,defaultViewport:Yg,translateExtent:Wp,minZoom:Wh,maxZoom:wb,preventScrolling:Ow,zoomOnScroll:Jg,zoomOnPinch:Kp,zoomOnDoubleClick:GR,panOnScroll:Xg,panOnScrollSpeed:CN,panOnScrollMode:IN,panOnDrag:kA,onPaneClick:yb,onPaneMouseEnter:qR,onPaneMouseMove:VR,onPaneMouseLeave:RN,onPaneScroll:ON,onPaneContextMenu:po,paneClickDistance:Fc,nodeClickDistance:Fl,onSelectionContextMenu:De,onSelectionStart:Ae,onSelectionEnd:xe,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:n9,defaultMarkerColor:X2,noDragClassName:rG,noWheelClassName:iG,noPanClassName:i9,rfId:KR,disableKeyboardA11y:a9,nodeExtent:Kh,viewport:l9,onViewportChange:wG}),I.jsx(V5n,{nodes:n,edges:i,defaultNodes:s,defaultEdges:u,onConnect:R,onConnectStart:D,onConnectEnd:L,onClickConnectStart:B,onClickConnectEnd:$,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:ls,edgesFocusable:Ca,edgesReconnectable:Ci,elementsSelectable:mb,elevateNodesOnSelect:WR,elevateEdgesOnSelect:cG,minZoom:Wh,maxZoom:wb,nodeExtent:Kh,onNodesChange:r9,onEdgesChange:nG,snapToGrid:vr,snapGrid:Ui,connectionMode:dt,translateExtent:Wp,connectOnClick:oG,defaultEdgeOptions:uG,fitView:o9,fitViewOptions:s9,onNodesDelete:ge,onEdgesDelete:ce,onDelete:fe,onNodeDragStart:Q,onNodeDrag:ie,onNodeDragStop:he,onSelectionDrag:Oe,onSelectionDragStart:pe,onSelectionDragStop:Se,onMove:x,onMoveStart:A,onMoveEnd:C,noPanClassName:i9,nodeOrigin:Qo,rfId:KR,autoPanOnConnect:lG,autoPanOnNodeDrag:dG,autoPanSpeed:fG,onError:gG,connectionRadius:hG,isValidConnection:pG,selectNodesOnDrag:Hi,nodeDragThreshold:mG,connectionDragThreshold:c9,onBeforeDelete:We,debug:SG,ariaLabelConfig:TG,zIndexMode:d9}),I.jsx(H5n,{onSelectionChange:K}),Af,I.jsx(j5n,{proOptions:aG,position:sG}),I.jsx(P5n,{rfId:KR,disableKeyboardA11y:a9})]})})}var g9n=Fzt(p9n);const b9n=n=>{var i;return(i=n.domNode)==null?void 0:i.querySelector(".react-flow__edgelabel-renderer")};function S9t({children:n}){const i=Js(b9n);return i?xR.createPortal(n,i):null}function m9n({dimensions:n,lineWidth:i,variant:s,className:u}){return I.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",s,u])})}function w9n({radius:n,className:i}){return I.jsx("circle",{cx:n,cy:n,r:n,className:Bd(["react-flow__background-pattern","dots",i])})}var pA;(function(n){n.Lines="lines",n.Dots="dots",n.Cross="cross"})(pA||(pA={}));const y9n={[pA.Dots]:1,[pA.Lines]:1,[pA.Cross]:6},v9n=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function cGt({id:n,variant:i=pA.Dots,gap:s=20,size:u,lineWidth:d=1,offset:g=0,color:b,bgColor:w,style:E,className:S,patternClassName:x}){const A=H.useRef(null),{transform:C,patternId:R}=Js(v9n,Dc),D=u||y9n[i],L=i===pA.Dots,B=i===pA.Cross,$=Array.isArray(s)?s:[s,s],j=[$[0]*C[2]||1,$[1]*C[2]||1],P=D*C[2],G=Array.isArray(g)?g:[g,g],ee=B?[P,P]:j,ne=[G[0]*C[2]||1+ee[0]/2,G[1]*C[2]||1+ee[1]/2],Q=`${R}${n||""}`;return I.jsxs("svg",{className:Bd(["react-flow__background",S]),style:{...E,...tae,"--xy-background-color-props":w,"--xy-background-pattern-color-props":b},ref:A,"data-testid":"rf__background",children:[I.jsx("pattern",{id:Q,x:C[0]%j[0],y:C[1]%j[1],width:j[0],height:j[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${ne[0]},-${ne[1]})`,children:L?I.jsx(w9n,{radius:P/2,className:x}):I.jsx(m9n,{dimensions:ee,lineWidth:d,variant:i,className:x})}),I.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${Q})`})]})}cGt.displayName="Background";const E9n=H.memo(cGt);function S9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:I.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function T9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:I.jsx("path",{d:"M0 0h32v4.2H0z"})})}function A9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:I.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 _9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:I.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 x9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:I.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 vie({children:n,className:i,...s}){return I.jsx("button",{type:"button",className:Bd(["react-flow__controls-button",i]),...s,children:n})}const k9n=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function lGt({style:n,showZoom:i=!0,showFitView:s=!0,showInteractive:u=!0,fitViewOptions:d,onZoomIn:g,onZoomOut:b,onFitView:w,onInteractiveChange:E,className:S,children:x,position:A="bottom-left",orientation:C="vertical","aria-label":R}){const D=Mc(),{isInteractive:L,minZoomReached:B,maxZoomReached:$,ariaLabelConfig:j}=Js(k9n,Dc),{zoomIn:P,zoomOut:G,fitView:ee}=kR(),ne=()=>{P(),g==null||g()},Q=()=>{G(),b==null||b()},ie=()=>{ee(d),w==null||w()},he=()=>{D.setState({nodesDraggable:!L,nodesConnectable:!L,elementsSelectable:!L}),E==null||E(!L)},ge=C==="horizontal"?"horizontal":"vertical";return I.jsxs(gR,{className:Bd(["react-flow__controls",ge,S]),position:A,style:n,"data-testid":"rf__controls","aria-label":R??j["controls.ariaLabel"],children:[i&&I.jsxs(I.Fragment,{children:[I.jsx(vie,{onClick:ne,className:"react-flow__controls-zoomin",title:j["controls.zoomIn.ariaLabel"],"aria-label":j["controls.zoomIn.ariaLabel"],disabled:$,children:I.jsx(S9n,{})}),I.jsx(vie,{onClick:Q,className:"react-flow__controls-zoomout",title:j["controls.zoomOut.ariaLabel"],"aria-label":j["controls.zoomOut.ariaLabel"],disabled:B,children:I.jsx(T9n,{})})]}),s&&I.jsx(vie,{className:"react-flow__controls-fitview",onClick:ie,title:j["controls.fitView.ariaLabel"],"aria-label":j["controls.fitView.ariaLabel"],children:I.jsx(A9n,{})}),u&&I.jsx(vie,{className:"react-flow__controls-interactive",onClick:he,title:j["controls.interactive.ariaLabel"],"aria-label":j["controls.interactive.ariaLabel"],children:L?I.jsx(x9n,{}):I.jsx(_9n,{})}),x]})}lGt.displayName="Controls";const N9n=H.memo(lGt);function C9n({id:n,x:i,y:s,width:u,height:d,style:g,color:b,strokeColor:w,strokeWidth:E,className:S,borderRadius:x,shapeRendering:A,selected:C,onClick:R}){const{background:D,backgroundColor:L}=g||{},B=b||D||L;return I.jsx("rect",{className:Bd(["react-flow__minimap-node",{selected:C},S]),x:i,y:s,rx:x,ry:x,width:u,height:d,style:{fill:B,stroke:w,strokeWidth:E},shapeRendering:A,onClick:R?$=>R($,n):void 0})}const I9n=H.memo(C9n),R9n=n=>n.nodes.map(i=>i.id),qCe=n=>n instanceof Function?n:()=>n;function O9n({nodeStrokeColor:n,nodeColor:i,nodeClassName:s="",nodeBorderRadius:u=5,nodeStrokeWidth:d,nodeComponent:g=I9n,onClick:b}){const w=Js(R9n,Dc),E=qCe(i),S=qCe(n),x=qCe(s),A=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return I.jsx(I.Fragment,{children:w.map(C=>I.jsx(D9n,{id:C,nodeColorFunc:E,nodeStrokeColorFunc:S,nodeClassNameFunc:x,nodeBorderRadius:u,nodeStrokeWidth:d,NodeComponent:g,onClick:b,shapeRendering:A},C))})}function L9n({id:n,nodeColorFunc:i,nodeStrokeColorFunc:s,nodeClassNameFunc:u,nodeBorderRadius:d,nodeStrokeWidth:g,shapeRendering:b,NodeComponent:w,onClick:E}){const{node:S,x,y:A,width:C,height:R}=Js(D=>{const{internals:L}=D.nodeLookup.get(n),B=L.userNode,{x:$,y:j}=L.positionAbsolute,{width:P,height:G}=_A(B);return{node:B,x:$,y:j,width:P,height:G}},Dc);return!S||S.hidden||!azt(S)?null:I.jsx(w,{x,y:A,width:C,height:R,style:S.style,selected:!!S.selected,className:u(S),color:i(S),borderRadius:d,strokeColor:s(S),strokeWidth:g,shapeRendering:b,onClick:E,id:S.id})}const D9n=H.memo(L9n);var M9n=H.memo(O9n);const P9n=200,j9n=150,F9n=n=>!n.hidden,$9n=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?szt(Az(n.nodeLookup,{filter:F9n}),i):i,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},B9n="react-flow__minimap-desc";function dGt({style:n,className:i,nodeStrokeColor:s,nodeColor:u,nodeClassName:d="",nodeBorderRadius:g=5,nodeStrokeWidth:b,nodeComponent:w,bgColor:E,maskColor:S,maskStrokeColor:x,maskStrokeWidth:A,position:C="bottom-right",onClick:R,onNodeClick:D,pannable:L=!1,zoomable:B=!1,ariaLabel:$,inversePan:j,zoomStep:P=1,offsetScale:G=5}){const ee=Mc(),ne=H.useRef(null),{boundingRect:Q,viewBB:ie,rfId:he,panZoom:ge,translateExtent:ce,flowWidth:fe,flowHeight:K,ariaLabelConfig:pe}=Js($9n,Dc),Oe=(n==null?void 0:n.width)??P9n,Se=(n==null?void 0:n.height)??j9n,De=Q.width/Oe,Ae=Q.height/Se,xe=Math.max(De,Ae),We=xe*Oe,dt=xe*Se,Ue=G*xe,bt=Q.x-(We-Q.width)/2-Ue,kt=Q.y-(dt-Q.height)/2-Ue,ht=We+Ue*2,Xt=dt+Ue*2,vt=`${B9n}-${he}`,Ct=H.useRef(0),Ft=H.useRef();Ct.current=xe,H.useEffect(()=>{if(ne.current&&ge)return Ft.current=QDn({domNode:ne.current,panZoom:ge,getTransform:()=>ee.getState().transform,getViewScale:()=>Ct.current}),()=>{var vr;(vr=Ft.current)==null||vr.destroy()}},[ge]),H.useEffect(()=>{var vr;(vr=Ft.current)==null||vr.update({translateExtent:ce,width:fe,height:K,inversePan:j,pannable:L,zoomStep:P,zoomable:B})},[L,B,j,P,ce,fe,K]);const On=R?vr=>{var Hi;const[Ui,Qr]=((Hi=Ft.current)==null?void 0:Hi.pointer(vr))||[0,0];R(vr,{x:Ui,y:Qr})}:void 0,Zn=D?H.useCallback((vr,Ui)=>{const Qr=ee.getState().nodeLookup.get(Ui).internals.userNode;D(vr,Qr)},[]):void 0,Yn=$??pe["minimap.ariaLabel"];return I.jsx(gR,{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 x=="string"?x:void 0,"--xy-minimap-mask-stroke-width-props":typeof A=="number"?A*xe:void 0,"--xy-minimap-node-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-node-stroke-color-props":typeof s=="string"?s: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:I.jsxs("svg",{width:Oe,height:Se,viewBox:`${bt} ${kt} ${ht} ${Xt}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":vt,ref:ne,onClick:On,children:[Yn&&I.jsx("title",{id:vt,children:Yn}),I.jsx(M9n,{onClick:Zn,nodeColor:u,nodeStrokeColor:s,nodeBorderRadius:g,nodeClassName:d,nodeStrokeWidth:b,nodeComponent:w}),I.jsx("path",{className:"react-flow__minimap-mask",d:`M${bt-Ue},${kt-Ue}h${ht+Ue*2}v${Xt+Ue*2}h${-ht-Ue*2}z - M${ie.x},${ie.y}h${ie.width}v${ie.height}h${-ie.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}dGt.displayName="MiniMap";const U9n=H.memo(dGt),H9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,z9n={[_M.Line]:"right",[_M.Handle]:"bottom-right"};function G9n({nodeId:n,position:i,variant:s=_M.Handle,className:u,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:x=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:C,autoScale:R=!0,shouldResize:D,onResizeStart:L,onResize:B,onResizeEnd:$}){const j=Hzt(),P=typeof n=="string"?n:j,G=Mc(),ee=H.useRef(null),ne=s===_M.Handle,Q=Js(H.useCallback(H9n(ne&&R),[ne,R]),Dc),ie=H.useRef(null),he=i??z9n[s];H.useEffect(()=>{if(!(!ee.current||!P))return ie.current||(ie.current=h5n({domNode:ee.current,nodeId:P,getStoreItems:()=>{const{nodeLookup:ce,transform:fe,snapGrid:K,snapToGrid:pe,nodeOrigin:Oe,domNode:Se}=G.getState();return{nodeLookup:ce,transform:fe,snapGrid:K,snapToGrid:pe,nodeOrigin:Oe,paneDomNode:Se}},onChange:(ce,fe)=>{const{triggerNodeChanges:K,nodeLookup:pe,parentLookup:Oe,nodeOrigin:Se}=G.getState(),De=[],Ae={x:ce.x,y:ce.y},xe=pe.get(P);if(xe&&xe.expandParent&&xe.parentId){const We=xe.origin??Se,dt=ce.width??xe.measured.width??0,Ue=ce.height??xe.measured.height??0,bt={id:xe.id,parentId:xe.parentId,rect:{width:dt,height:Ue,...uzt({x:ce.x??xe.position.x,y:ce.y??xe.position.y},{width:dt,height:Ue},xe.parentId,pe,We)}},kt=P5e([bt],pe,Oe,Se);De.push(...kt),Ae.x=ce.x?Math.max(We[0]*dt,ce.x):void 0,Ae.y=ce.y?Math.max(We[1]*Ue,ce.y):void 0}if(Ae.x!==void 0&&Ae.y!==void 0){const We={id:P,type:"position",position:{...Ae}};De.push(We)}if(ce.width!==void 0&&ce.height!==void 0){const dt={id:P,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:ce.width,height:ce.height}};De.push(dt)}for(const We of fe){const dt={...We,type:"position"};De.push(dt)}K(De)},onEnd:({width:ce,height:fe})=>{const K={id:P,type:"dimensions",resizing:!1,dimensions:{width:ce,height:fe}};G.getState().triggerNodeChanges([K])}})),ie.current.update({controlPosition:he,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:x},keepAspectRatio:A,resizeDirection:C,onResizeStart:L,onResize:B,onResizeEnd:$,shouldResize:D}),()=>{var ce;(ce=ie.current)==null||ce.destroy()}},[he,w,E,S,x,A,L,B,$,D]);const ge=he.split("-");return I.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...ge,s,u]),ref:ee,style:{...d,scale:Q,...b&&{[ne?"backgroundColor":"borderColor"]:b}},children:g})}H.memo(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 fGt=(...n)=>n.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).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 q9n=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 V9n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.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 T9t=n=>{const i=V9n(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 W9n={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 K9n=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 Y9n=H.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:d="",children:g,iconNode:b,...w},E)=>H.createElement("svg",{ref:E,...W9n,width:i,height:i,stroke:n,strokeWidth:u?Number(s)*24/Number(i):s,className:fGt("lucide",d),...!g&&!K9n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,x])=>H.createElement(S,x)),...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 _i=(n,i)=>{const s=H.forwardRef(({className:u,...d},g)=>H.createElement(Y9n,{ref:g,iconNode:i,className:fGt(`lucide-${q9n(T9t(n))}`,`lucide-${n}`,u),...d}));return s.displayName=T9t(n),s};/** - * @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=[["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"}]],X9n=_i("align-end-horizontal",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=[["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"}]],Q9n=_i("align-end-vertical",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 e8n=[["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"}]],t8n=_i("align-start-horizontal",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=[["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"}]],r8n=_i("align-start-vertical",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=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],o8n=_i("arrow-down",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=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],a8n=_i("arrow-left",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 u8n=[["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"}]],c8n=_i("arrow-up-down",u8n);/** - * @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 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],d8n=_i("arrow-up",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 f8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],iN=_i("ban",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 h8n=[["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"}]],p8n=_i("brush-cleaning",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 g8n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oN=_i("check",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 b8n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nae=_i("chevron-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 m8n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],w8n=_i("chevron-right",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 y8n=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],v8n=_i("chevron-up",y8n);/** - * @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:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],hGt=_i("chevrons-up-down",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 S8n=[["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"}]],_w=_i("circle-alert",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:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pGt=_i("circle-check-big",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 A8n=[["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"}]],_8n=_i("circle-play",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 x8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],k8n=_i("circle",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 N8n=[["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"}]],C8n=_i("clipboard",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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],F5e=_i("clock",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 R8n=[["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"}]],O8n=_i("copy-plus",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 L8n=[["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"}]],$5e=_i("copy",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 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"}]],gGt=_i("diamond-plus",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 M8n=[["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"}]],A9t=_i("download",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 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"}]],j8n=_i("external-link",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 F8n=[["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"}]],$8n=_i("file-code",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 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"}]],U8n=_i("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 H8n=[["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"}]],z8n=_i("file-up",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 G8n=[["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"}]],q8n=_i("folder-open-dot",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 V8n=[["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"}]],B5e=_i("git-branch",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 W8n=[["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"}]],K8n=_i("history",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 Y8n=[["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"}]],bGt=_i("hourglass",Y8n);/** - * @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:"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=_i("layers",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 Z8n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QH=_i("loader-circle",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 Q8n=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ePn=_i("menu",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 tPn=[["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"}]],nPn=_i("mouse-pointer-click",tPn);/** - * @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 rPn=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],iPn=_i("octagon-x",rPn);/** - * @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 oPn=[["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"}]],rae=_i("play",oPn);/** - * @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 sPn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iae=_i("plus",sPn);/** - * @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 aPn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],uPn=_i("redo-2",aPn);/** - * @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 cPn=[["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"}]],mGt=_i("rotate-ccw",cPn);/** - * @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 lPn=[["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"}]],wGt=_i("save",lPn);/** - * @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 dPn=[["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"}]],fPn=_i("scissors",dPn);/** - * @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 hPn=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yGt=_i("search",hPn);/** - * @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 pPn=[["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"}]],gPn=_i("settings",pPn);/** - * @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 bPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],vGt=_i("square",bPn);/** - * @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 mPn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],_9t=_i("toggle-left",mPn);/** - * @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 wPn=[["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"}]],PM=_i("trash-2",wPn);/** - * @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 yPn=[["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"}]],x9t=_i("triangle-alert",yPn);/** - * @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 vPn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],EPn=_i("undo-2",vPn);/** - * @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 SPn=[["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"}]],TPn=_i("unplug",SPn);/** - * @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 APn=[["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"}]],_Pn=_i("upload",APn);/** - * @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 xPn=[["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"}]],EGt=_i("variable",xPn);/** - * @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 kPn=[["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"}]],NPn=_i("wifi",kPn);/** - * @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 CPn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oae=_i("x",CPn);/** - * @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 IPn=[["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"}]],SGt=_i("zap",IPn),RPn=H.createContext(null),VCe={didCatch:!1,error:null};let OPn=class extends H.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=VCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var u,d;const{error:s}=this.state;s!==null&&((d=(u=this.props).onReset)==null||d.call(u,{args:i,reason:"imperative-api"}),this.setState(VCe))}componentDidCatch(i,s){var u,d;(d=(u=this.props).onError)==null||d.call(u,i,s)}componentDidUpdate(i,s){var g,b;const{didCatch:u}=this.state,{resetKeys:d}=this.props;u&&s.error!==null&&LPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(VCe))}render(){const{children:i,fallbackRender:s,FallbackComponent:u,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")w=s(E);else if(u)w=H.createElement(u,E);else if(d!==void 0)w=d;else throw b}return H.createElement(RPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function LPn(n=[],i=[]){return n.length!==i.length||n.some((s,u)=>!Object.is(s,i[u]))}function DPn(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const MPn=n=>{switch(n){case"success":return FPn;case"info":return BPn;case"warning":return $Pn;case"error":return UPn;default:return null}},PPn=Array(12).fill(0),jPn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},PPn.map((s,u)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),FPn=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"})),$Pn=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"})),BPn=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"})),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:"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"})),HPn=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"})),zPn=()=>{const[n,i]=Hn.useState(document.hidden);return Hn.useEffect(()=>{const s=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let yLe=1;class GPn{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const s=this.subscribers.indexOf(i);this.subscribers.splice(s,1)}),this.publish=i=>{this.subscribers.forEach(s=>s(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var s;const{message:u,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:yLe++,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:u}),{...E,...i,id:g,dismissible:w,title:u}):E):this.addToast({title:u,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:i,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(u=>u({id:s.id,dismiss:!0}))}),i),this.message=(i,s)=>this.create({...s,message:i}),this.error=(i,s)=>this.create({...s,message:i,type:"error"}),this.success=(i,s)=>this.create({...s,type:"success",message:i}),this.info=(i,s)=>this.create({...s,type:"info",message:i}),this.warning=(i,s)=>this.create({...s,type:"warning",message:i}),this.loading=(i,s)=>this.create({...s,type:"loading",message:i}),this.promise=(i,s)=>{if(!s)return;let u;s.loading!==void 0&&(u=this.create({...s,promise:i,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const d=Promise.resolve(i instanceof Function?i():i);let g=u!==void 0,b;const w=d.then(async S=>{if(b=["resolve",S],Hn.isValidElement(S))g=!1,this.create({id:u,type:"default",message:S});else if(VPn(S)&&!S.ok){g=!1;const A=typeof s.error=="function"?await s.error(`HTTP error! status: ${S.status}`):s.error,C=typeof s.description=="function"?await s.description(`HTTP error! status: ${S.status}`):s.description,D=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:u,type:"error",description:C,...D})}else if(S instanceof Error){g=!1;const A=typeof s.error=="function"?await s.error(S):s.error,C=typeof s.description=="function"?await s.description(S):s.description,D=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:u,type:"error",description:C,...D})}else if(s.success!==void 0){g=!1;const A=typeof s.success=="function"?await s.success(S):s.success,C=typeof s.description=="function"?await s.description(S):s.description,D=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:u,type:"success",description:C,...D})}}).catch(async S=>{if(b=["reject",S],s.error!==void 0){g=!1;const x=typeof s.error=="function"?await s.error(S):s.error,A=typeof s.description=="function"?await s.description(S):s.description,R=typeof x=="object"&&!Hn.isValidElement(x)?x:{message:x};this.create({id:u,type:"error",description:A,...R})}}).finally(()=>{g&&(this.dismiss(u),u=void 0),s.finally==null||s.finally.call(s)}),E=()=>new Promise((S,x)=>w.then(()=>b[0]==="reject"?x(b[1]):S(b[1])).catch(x));return typeof u!="string"&&typeof u!="number"?{unwrap:E}:Object.assign(u,{unwrap:E})},this.custom=(i,s)=>{const u=(s==null?void 0:s.id)||yLe++;return this.create({jsx:i(u),id:u,...s}),u},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nb=new GPn,qPn=(n,i)=>{const s=(i==null?void 0:i.id)||yLe++;return nb.addToast({title:n,...i,id:s}),s},VPn=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",WPn=qPn,KPn=()=>nb.toasts,YPn=()=>nb.getActiveToasts(),N2=Object.assign(WPn,{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:KPn,getToasts:YPn});DPn("[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 Eie(n){return n.label!==void 0}const JPn=3,XPn="24px",ZPn="16px",k9t=4e3,QPn=356,ejn=14,tjn=45,njn=200;function _2(...n){return n.filter(Boolean).join(" ")}function rjn(n){const[i,s]=n.split("-"),u=[];return i&&u.push(i),s&&u.push(s),u}const ijn=n=>{var i,s,u,d,g,b,w,E,S;const{invert:x,toast:A,unstyled:C,interacting:R,setHeights:D,visibleToasts:L,heights:B,index:$,toasts:j,expanded:P,removeToast:G,defaultRichColors:ee,closeButton:ne,style:Q,cancelButtonStyle:ie,actionButtonStyle:he,className:ge="",descriptionClassName:ce="",duration:fe,position:K,gap:pe,expandByDefault:Oe,classNames:Se,icons:De,closeButtonAriaLabel:Ae="Close toast"}=n,[xe,We]=Hn.useState(null),[dt,Ue]=Hn.useState(null),[bt,kt]=Hn.useState(!1),[ht,Xt]=Hn.useState(!1),[vt,Ct]=Hn.useState(!1),[Ft,On]=Hn.useState(!1),[Zn,Yn]=Hn.useState(!1),[vr,Ui]=Hn.useState(0),[Qr,Hi]=Hn.useState(0),ai=Hn.useRef(A.duration||fe||k9t),jc=Hn.useRef(null),Xs=Hn.useRef(null),ls=$===0,Qo=$+1<=L,Ca=A.type,Ci=A.dismissible!==!1,mb=A.className||"",Yg=A.descriptionClassName||"",Wh=Hn.useMemo(()=>B.findIndex(po=>po.toastId===A.id)||0,[B,A.id]),wb=Hn.useMemo(()=>{var po;return(po=A.closeButton)!=null?po:ne},[A.closeButton,ne]),Wp=Hn.useMemo(()=>A.duration||fe||k9t,[A.duration,fe]),Ow=Hn.useRef(0),Kh=Hn.useRef(0),X2=Hn.useRef(0),Jg=Hn.useRef(null),[Kp,Xg]=K.split("-"),CN=Hn.useMemo(()=>B.reduce((po,Fc,Fl)=>Fl>=Wh?po:po+Fc.height,0),[B,Wh]),IN=zPn(),GR=A.invert||x,kA=Ca==="loading";Kh.current=Hn.useMemo(()=>Wh*pe+CN,[Wh,CN]),Hn.useEffect(()=>{ai.current=Wp},[Wp]),Hn.useEffect(()=>{kt(!0)},[]),Hn.useEffect(()=>{const po=Xs.current;if(po){const Fc=po.getBoundingClientRect().height;return Hi(Fc),D(Fl=>[{toastId:A.id,height:Fc,position:A.position},...Fl]),()=>D(Fl=>Fl.filter(Af=>Af.toastId!==A.id))}},[D,A.id]),Hn.useLayoutEffect(()=>{if(!bt)return;const po=Xs.current,Fc=po.style.height;po.style.height="auto";const Fl=po.getBoundingClientRect().height;po.style.height=Fc,Hi(Fl),D(Af=>Af.find(pl=>pl.toastId===A.id)?Af.map(pl=>pl.toastId===A.id?{...pl,height:Fl}:pl):[{toastId:A.id,height:Fl,position:A.position},...Af])},[bt,A.title,A.description,D,A.id,A.jsx,A.action,A.cancel]);const yb=Hn.useCallback(()=>{Xt(!0),Ui(Kh.current),D(po=>po.filter(Fc=>Fc.toastId!==A.id)),setTimeout(()=>{G(A)},njn)},[A,G,D,Kh]);Hn.useEffect(()=>{if(A.promise&&Ca==="loading"||A.duration===1/0||A.type==="loading")return;let po;return P||R||IN?(()=>{if(X2.current{ai.current!==1/0&&(Ow.current=new Date().getTime(),po=setTimeout(()=>{A.onAutoClose==null||A.onAutoClose.call(A,A),yb()},ai.current))})(),()=>clearTimeout(po)},[P,R,A,Ca,IN,yb]),Hn.useEffect(()=>{A.delete&&(yb(),A.onDismiss==null||A.onDismiss.call(A,A))},[yb,A.delete]);function qR(){var po;if(De!=null&&De.loading){var Fc;return Hn.createElement("div",{className:_2(Se==null?void 0:Se.loader,A==null||(Fc=A.classNames)==null?void 0:Fc.loader,"sonner-loader"),"data-visible":Ca==="loading"},De.loading)}return Hn.createElement(jPn,{className:_2(Se==null?void 0:Se.loader,A==null||(po=A.classNames)==null?void 0:po.loader),visible:Ca==="loading"})}const VR=A.icon||(De==null?void 0:De[Ca])||MPn(Ca);var RN,ON;return Hn.createElement("li",{tabIndex:0,ref:Xs,className:_2(ge,mb,Se==null?void 0:Se.toast,A==null||(i=A.classNames)==null?void 0:i.toast,Se==null?void 0:Se.default,Se==null?void 0:Se[Ca],A==null||(s=A.classNames)==null?void 0:s[Ca]),"data-sonner-toast":"","data-rich-colors":(RN=A.richColors)!=null?RN:ee,"data-styled":!(A.jsx||A.unstyled||C),"data-mounted":bt,"data-promise":!!A.promise,"data-swiped":Zn,"data-removed":ht,"data-visible":Qo,"data-y-position":Kp,"data-x-position":Xg,"data-index":$,"data-front":ls,"data-swiping":vt,"data-dismissible":Ci,"data-type":Ca,"data-invert":GR,"data-swipe-out":Ft,"data-swipe-direction":dt,"data-expanded":!!(P||Oe&&bt),"data-testid":A.testId,style:{"--index":$,"--toasts-before":$,"--z-index":j.length-$,"--offset":`${ht?vr:Kh.current}px`,"--initial-height":Oe?"auto":`${Qr}px`,...Q,...A.style},onDragEnd:()=>{Ct(!1),We(null),Jg.current=null},onPointerDown:po=>{po.button!==2&&(kA||!Ci||(jc.current=new Date,Ui(Kh.current),po.target.setPointerCapture(po.pointerId),po.target.tagName!=="BUTTON"&&(Ct(!0),Jg.current={x:po.clientX,y:po.clientY})))},onPointerUp:()=>{var po,Fc,Fl;if(Ft||!Ci)return;Jg.current=null;const Af=Number(((po=Xs.current)==null?void 0:po.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Z2=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=xe==="x"?Af:Z2,Vm=Math.abs(sh)/pl;if(Math.abs(sh)>=tjn||Vm>.11){Ui(Kh.current),A.onDismiss==null||A.onDismiss.call(A,A),Ue(xe==="x"?Af>0?"right":"left":Z2>0?"down":"up"),yb(),On(!0);return}else{var ah,Yh;(ah=Xs.current)==null||ah.style.setProperty("--swipe-amount-x","0px"),(Yh=Xs.current)==null||Yh.style.setProperty("--swipe-amount-y","0px")}Yn(!1),Ct(!1),We(null)},onPointerMove:po=>{var Fc,Fl,Af;if(!Jg.current||!Ci||((Fc=window.getSelection())==null?void 0:Fc.toString().length)>0)return;const pl=po.clientY-Jg.current.y,sh=po.clientX-Jg.current.x;var Vm;const ah=(Vm=n.swipeDirections)!=null?Vm:rjn(K);!xe&&(Math.abs(sh)>1||Math.abs(pl)>1)&&We(Math.abs(sh)>Math.abs(pl)?"x":"y");let Yh={x:0,y:0};const Q2=Wm=>1/(1.5+Math.abs(Wm)/20);if(xe==="y"){if(ah.includes("top")||ah.includes("bottom"))if(ah.includes("top")&&pl<0||ah.includes("bottom")&&pl>0)Yh.y=pl;else{const Wm=pl*Q2(pl);Yh.y=Math.abs(Wm)0)Yh.x=sh;else{const Wm=sh*Q2(sh);Yh.x=Math.abs(Wm)0||Math.abs(Yh.y)>0)&&Yn(!0),(Fl=Xs.current)==null||Fl.style.setProperty("--swipe-amount-x",`${Yh.x}px`),(Af=Xs.current)==null||Af.style.setProperty("--swipe-amount-y",`${Yh.y}px`)}},wb&&!A.jsx&&Ca!=="loading"?Hn.createElement("button",{"aria-label":Ae,"data-disabled":kA,"data-close-button":!0,onClick:kA||!Ci?()=>{}:()=>{yb(),A.onDismiss==null||A.onDismiss.call(A,A)},className:_2(Se==null?void 0:Se.closeButton,A==null||(u=A.classNames)==null?void 0:u.closeButton)},(ON=De==null?void 0:De.close)!=null?ON:HPn):null,(Ca||A.icon||A.promise)&&A.icon!==null&&((De==null?void 0:De[Ca])!==null||A.icon)?Hn.createElement("div",{"data-icon":"",className:_2(Se==null?void 0:Se.icon,A==null||(d=A.classNames)==null?void 0:d.icon)},A.promise||A.type==="loading"&&!A.icon?A.icon||qR():null,A.type!=="loading"?VR:null):null,Hn.createElement("div",{"data-content":"",className:_2(Se==null?void 0:Se.content,A==null||(g=A.classNames)==null?void 0:g.content)},Hn.createElement("div",{"data-title":"",className:_2(Se==null?void 0:Se.title,A==null||(b=A.classNames)==null?void 0:b.title)},A.jsx?A.jsx:typeof A.title=="function"?A.title():A.title),A.description?Hn.createElement("div",{"data-description":"",className:_2(ce,Yg,Se==null?void 0:Se.description,A==null||(w=A.classNames)==null?void 0:w.description)},typeof A.description=="function"?A.description():A.description):null),Hn.isValidElement(A.cancel)?A.cancel:A.cancel&&Eie(A.cancel)?Hn.createElement("button",{"data-button":!0,"data-cancel":!0,style:A.cancelButtonStyle||ie,onClick:po=>{Eie(A.cancel)&&Ci&&(A.cancel.onClick==null||A.cancel.onClick.call(A.cancel,po),yb())},className:_2(Se==null?void 0:Se.cancelButton,A==null||(E=A.classNames)==null?void 0:E.cancelButton)},A.cancel.label):null,Hn.isValidElement(A.action)?A.action:A.action&&Eie(A.action)?Hn.createElement("button",{"data-button":!0,"data-action":!0,style:A.actionButtonStyle||he,onClick:po=>{Eie(A.action)&&(A.action.onClick==null||A.action.onClick.call(A.action,po),!po.defaultPrevented&&yb())},className:_2(Se==null?void 0:Se.actionButton,A==null||(S=A.classNames)==null?void 0:S.actionButton)},A.action.label):null)};function N9t(){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 ojn(n,i){const s={};return[n,i].forEach((u,d)=>{const g=d===1,b=g?"--mobile-offset":"--offset",w=g?ZPn:XPn;function E(S){["top","right","bottom","left"].forEach(x=>{s[`${b}-${x}`]=typeof S=="number"?`${S}px`:S})}typeof u=="number"||typeof u=="string"?E(u):typeof u=="object"?["top","right","bottom","left"].forEach(S=>{u[S]===void 0?s[`${b}-${S}`]=w:s[`${b}-${S}`]=typeof u[S]=="number"?`${u[S]}px`:u[S]}):E(w)}),s}const sjn=Hn.forwardRef(function(i,s){const{id:u,invert:d,position:g="bottom-right",hotkey:b=["altKey","KeyT"],expand:w,closeButton:E,className:S,offset:x,mobileOffset:A,theme:C="light",richColors:R,duration:D,style:L,visibleToasts:B=JPn,toastOptions:$,dir:j=N9t(),gap:P=ejn,icons:G,containerAriaLabel:ee="Notifications"}=i,[ne,Q]=Hn.useState([]),ie=Hn.useMemo(()=>u?ne.filter(bt=>bt.toasterId===u):ne.filter(bt=>!bt.toasterId),[ne,u]),he=Hn.useMemo(()=>Array.from(new Set([g].concat(ie.filter(bt=>bt.position).map(bt=>bt.position)))),[ie,g]),[ge,ce]=Hn.useState([]),[fe,K]=Hn.useState(!1),[pe,Oe]=Hn.useState(!1),[Se,De]=Hn.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Ae=Hn.useRef(null),xe=b.join("+").replace(/Key/g,"").replace(/Digit/g,""),We=Hn.useRef(null),dt=Hn.useRef(!1),Ue=Hn.useCallback(bt=>{Q(kt=>{var ht;return(ht=kt.find(Xt=>Xt.id===bt.id))!=null&&ht.delete||nb.dismiss(bt.id),kt.filter(({id:Xt})=>Xt!==bt.id)})},[]);return Hn.useEffect(()=>nb.subscribe(bt=>{if(bt.dismiss){requestAnimationFrame(()=>{Q(kt=>kt.map(ht=>ht.id===bt.id?{...ht,delete:!0}:ht))});return}setTimeout(()=>{dHt.flushSync(()=>{Q(kt=>{const ht=kt.findIndex(Xt=>Xt.id===bt.id);return ht!==-1?[...kt.slice(0,ht),{...kt[ht],...bt},...kt.slice(ht+1)]:[bt,...kt]})})})}),[ne]),Hn.useEffect(()=>{if(C!=="system"){De(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?De("dark"):De("light")),typeof window>"u")return;const bt=window.matchMedia("(prefers-color-scheme: dark)");try{bt.addEventListener("change",({matches:kt})=>{De(kt?"dark":"light")})}catch{bt.addListener(({matches:ht})=>{try{De(ht?"dark":"light")}catch(Xt){console.error(Xt)}})}},[C]),Hn.useEffect(()=>{ne.length<=1&&K(!1)},[ne]),Hn.useEffect(()=>{const bt=kt=>{var ht;if(b.every(Ct=>kt[Ct]||kt.code===Ct)){var vt;K(!0),(vt=Ae.current)==null||vt.focus()}kt.code==="Escape"&&(document.activeElement===Ae.current||(ht=Ae.current)!=null&&ht.contains(document.activeElement))&&K(!1)};return document.addEventListener("keydown",bt),()=>document.removeEventListener("keydown",bt)},[b]),Hn.useEffect(()=>{if(Ae.current)return()=>{We.current&&(We.current.focus({preventScroll:!0}),We.current=null,dt.current=!1)}},[Ae.current]),Hn.createElement("section",{ref:s,"aria-label":`${ee} ${xe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},he.map((bt,kt)=>{var ht;const[Xt,vt]=bt.split("-");return ie.length?Hn.createElement("ol",{key:bt,dir:j==="auto"?N9t():j,tabIndex:-1,ref:Ae,className:S,"data-sonner-toaster":!0,"data-sonner-theme":Se,"data-y-position":Xt,"data-x-position":vt,style:{"--front-toast-height":`${((ht=ge[0])==null?void 0:ht.height)||0}px`,"--width":`${QPn}px`,"--gap":`${P}px`,...L,...ojn(x,A)},onBlur:Ct=>{dt.current&&!Ct.currentTarget.contains(Ct.relatedTarget)&&(dt.current=!1,We.current&&(We.current.focus({preventScroll:!0}),We.current=null))},onFocus:Ct=>{Ct.target instanceof HTMLElement&&Ct.target.dataset.dismissible==="false"||dt.current||(dt.current=!0,We.current=Ct.relatedTarget)},onMouseEnter:()=>K(!0),onMouseMove:()=>K(!0),onMouseLeave:()=>{pe||K(!1)},onDragEnd:()=>K(!1),onPointerDown:Ct=>{Ct.target instanceof HTMLElement&&Ct.target.dataset.dismissible==="false"||Oe(!0)},onPointerUp:()=>Oe(!1)},ie.filter(Ct=>!Ct.position&&kt===0||Ct.position===bt).map((Ct,Ft)=>{var On,Zn;return Hn.createElement(ijn,{key:Ct.id,icons:G,index:Ft,toast:Ct,defaultRichColors:R,duration:(On=$==null?void 0:$.duration)!=null?On:D,className:$==null?void 0:$.className,descriptionClassName:$==null?void 0:$.descriptionClassName,invert:d,visibleToasts:B,closeButton:(Zn=$==null?void 0:$.closeButton)!=null?Zn:E,interacting:pe,position:bt,style:$==null?void 0:$.style,unstyled:$==null?void 0:$.unstyled,classNames:$==null?void 0:$.classNames,cancelButtonStyle:$==null?void 0:$.cancelButtonStyle,actionButtonStyle:$==null?void 0:$.actionButtonStyle,closeButtonAriaLabel:$==null?void 0:$.closeButtonAriaLabel,removeToast:Ue,toasts:ie.filter(Yn=>Yn.position==Ct.position),heights:ge.filter(Yn=>Yn.position==Ct.position),setHeights:ce,expandByDefault:w,gap:P,expanded:fe,swipeDirections:i.swipeDirections})})):null}))});var C9t=1,ajn=.9,ujn=.8,cjn=.17,WCe=.1,KCe=.999,ljn=.9999,djn=.99,fjn=/[\\\/_+.#"@\[\(\{&]/,hjn=/[\\\/_+.#"@\[\(\{&]/g,pjn=/[\s-]/,TGt=/[\s-]/g;function vLe(n,i,s,u,d,g,b){if(g===i.length)return d===n.length?C9t:djn;var w=`${d},${g}`;if(b[w]!==void 0)return b[w];for(var E=u.charAt(g),S=s.indexOf(E,d),x=0,A,C,R,D;S>=0;)A=vLe(n,i,s,u,S+1,g+1,b),A>x&&(S===d?A*=C9t:fjn.test(n.charAt(S-1))?(A*=ujn,R=n.slice(d,S-1).match(hjn),R&&d>0&&(A*=Math.pow(KCe,R.length))):pjn.test(n.charAt(S-1))?(A*=ajn,D=n.slice(d,S-1).match(TGt),D&&d>0&&(A*=Math.pow(KCe,D.length))):(A*=cjn,d>0&&(A*=Math.pow(KCe,S-d))),n.charAt(S)!==i.charAt(g)&&(A*=ljn)),(AA&&(A=C*WCe)),A>x&&(x=A),S=s.indexOf(E,S+1);return b[w]=x,x}function I9t(n){return n.toLowerCase().replace(TGt," ")}function gjn(n,i,s){return n=s&&s.length>0?`${n+" "+s.join(" ")}`:n,vLe(n,i,I9t(n),I9t(i),0,0,{})}function Lr(n,i,{checkForDefaultPrevented:s=!0}={}){return function(d){if(n==null||n(d),s===!1||!d.defaultPrevented)return i==null?void 0:i(d)}}function R9t(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function zg(...n){return i=>{let s=!1;const u=n.map(d=>{const g=R9t(d,i);return!s&&typeof g=="function"&&(s=!0),g});if(s)return()=>{for(let d=0;d{const{children:b,...w}=g,E=H.useMemo(()=>w,Object.values(w));return I.jsx(s.Provider,{value:E,children:b})};u.displayName=n+"Provider";function d(g){const b=H.useContext(s);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${n}\``)}return[u,d]}function xw(n,i=[]){let s=[];function u(g,b){const w=H.createContext(b),E=s.length;s=[...s,b];const S=A=>{var $;const{scope:C,children:R,...D}=A,L=(($=C==null?void 0:C[n])==null?void 0:$[E])||w,B=H.useMemo(()=>D,Object.values(D));return I.jsx(L.Provider,{value:B,children:R})};S.displayName=g+"Provider";function x(A,C){var L;const R=((L=C==null?void 0:C[n])==null?void 0:L[E])||w,D=H.useContext(R);if(D)return D;if(b!==void 0)return b;throw new Error(`\`${A}\` must be used within \`${g}\``)}return[S,x]}const d=()=>{const g=s.map(b=>H.createContext(b));return function(w){const E=(w==null?void 0:w[n])||g;return H.useMemo(()=>({[`__scope${n}`]:{...w,[n]:E}}),[w,E])}};return d.scopeName=n,[u,mjn(d,...i)]}function mjn(...n){const i=n[0];if(n.length===1)return i;const s=()=>{const u=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(g){const b=u.reduce((w,{useScope:E,scopeName:S})=>{const A=E(g)[`__scope${S}`];return{...w,...A}},{});return H.useMemo(()=>({[`__scope${i.scopeName}`]:b}),[b])}};return s.scopeName=i.scopeName,s}var Hp=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},wjn=IDe[" useId ".trim().toString()]||(()=>{}),yjn=0;function Bh(n){const[i,s]=H.useState(wjn());return Hp(()=>{s(u=>u??String(yjn++))},[n]),i?`radix-${i}`:""}var vjn=IDe[" useInsertionEffect ".trim().toString()]||Hp;function G2({prop:n,defaultProp:i,onChange:s=()=>{},caller:u}){const[d,g,b]=Ejn({defaultProp:i,onChange:s}),w=n!==void 0,E=w?n:d;{const x=H.useRef(n!==void 0);H.useEffect(()=>{const A=x.current;A!==w&&console.warn(`${u} is changing from ${A?"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.`),x.current=w},[w,u])}const S=H.useCallback(x=>{var A;if(w){const C=Sjn(x)?x(n):x;C!==n&&((A=b.current)==null||A.call(b,C))}else g(x)},[w,n,g,b]);return[E,S]}function Ejn({defaultProp:n,onChange:i}){const[s,u]=H.useState(n),d=H.useRef(s),g=H.useRef(i);return vjn(()=>{g.current=i},[i]),H.useEffect(()=>{var b;d.current!==s&&((b=g.current)==null||b.call(g,s),d.current=s)},[s,d]),[s,u,g]}function Sjn(n){return typeof n=="function"}function Tjn(n){const i=Ajn(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(xjn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Ajn(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Njn(d),w=kjn(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var _jn=Symbol("radix.slottable");function xjn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===_jn}function kjn(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Njn(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Cjn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],no=Cjn.reduce((n,i)=>{const s=Tjn(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{});function AGt(n,i){n&&xR.flushSync(()=>n.dispatchEvent(i))}function q2(n){const i=H.useRef(n);return H.useEffect(()=>{i.current=n}),H.useMemo(()=>(...s)=>{var u;return(u=i.current)==null?void 0:u.call(i,...s)},[])}function Ijn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n);H.useEffect(()=>{const u=d=>{d.key==="Escape"&&s(d)};return i.addEventListener("keydown",u,{capture:!0}),()=>i.removeEventListener("keydown",u,{capture:!0})},[s,i])}var Rjn="DismissableLayer",ELe="dismissableLayer.update",Ojn="dismissableLayer.pointerDownOutside",Ljn="dismissableLayer.focusOutside",O9t,_Gt=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nz=H.forwardRef((n,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...E}=n,S=H.useContext(_Gt),[x,A]=H.useState(null),C=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=H.useState({}),D=hs(i,Q=>A(Q)),L=Array.from(S.layers),[B]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),$=L.indexOf(B),j=x?L.indexOf(x):-1,P=S.layersWithOutsidePointerEventsDisabled.size>0,G=j>=$,ee=Pjn(Q=>{const ie=Q.target,he=[...S.branches].some(ge=>ge.contains(ie));!G||he||(d==null||d(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C),ne=jjn(Q=>{const ie=Q.target;[...S.branches].some(ge=>ge.contains(ie))||(g==null||g(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C);return Ijn(Q=>{j===S.layers.size-1&&(u==null||u(Q),!Q.defaultPrevented&&w&&(Q.preventDefault(),w()))},C),H.useEffect(()=>{if(x)return s&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(O9t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(x)),S.layers.add(x),L9t(),()=>{s&&S.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=O9t)}},[x,C,s,S]),H.useEffect(()=>()=>{x&&(S.layers.delete(x),S.layersWithOutsidePointerEventsDisabled.delete(x),L9t())},[x,S]),H.useEffect(()=>{const Q=()=>R({});return document.addEventListener(ELe,Q),()=>document.removeEventListener(ELe,Q)},[]),I.jsx(no.div,{...E,ref:D,style:{pointerEvents:P?G?"auto":"none":void 0,...n.style},onFocusCapture:Lr(n.onFocusCapture,ne.onFocusCapture),onBlurCapture:Lr(n.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:Lr(n.onPointerDownCapture,ee.onPointerDownCapture)})});Nz.displayName=Rjn;var Djn="DismissableLayerBranch",Mjn=H.forwardRef((n,i)=>{const s=H.useContext(_Gt),u=H.useRef(null),d=hs(i,u);return H.useEffect(()=>{const g=u.current;if(g)return s.branches.add(g),()=>{s.branches.delete(g)}},[s.branches]),I.jsx(no.div,{...n,ref:d})});Mjn.displayName=Djn;function Pjn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),u=H.useRef(!1),d=H.useRef(()=>{});return H.useEffect(()=>{const g=w=>{if(w.target&&!u.current){let E=function(){xGt(Ojn,s,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);u.current=!1},b=window.setTimeout(()=>{i.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(b),i.removeEventListener("pointerdown",g),i.removeEventListener("click",d.current)}},[i,s]),{onPointerDownCapture:()=>u.current=!0}}function jjn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),u=H.useRef(!1);return H.useEffect(()=>{const d=g=>{g.target&&!u.current&&xGt(Ljn,s,{originalEvent:g},{discrete:!1})};return i.addEventListener("focusin",d),()=>i.removeEventListener("focusin",d)},[i,s]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}function L9t(){const n=new CustomEvent(ELe);document.dispatchEvent(n)}function xGt(n,i,s,{discrete:u}){const d=s.originalEvent.target,g=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});i&&d.addEventListener(n,i,{once:!0}),u?AGt(d,g):d.dispatchEvent(g)}var YCe="focusScope.autoFocusOnMount",JCe="focusScope.autoFocusOnUnmount",D9t={bubbles:!1,cancelable:!0},Fjn="FocusScope",Cz=H.forwardRef((n,i)=>{const{loop:s=!1,trapped:u=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...b}=n,[w,E]=H.useState(null),S=q2(d),x=q2(g),A=H.useRef(null),C=hs(i,L=>E(L)),R=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(u){let L=function(P){if(R.paused||!w)return;const G=P.target;w.contains(G)?A.current=G:Lk(A.current,{select:!0})},B=function(P){if(R.paused||!w)return;const G=P.relatedTarget;G!==null&&(w.contains(G)||Lk(A.current,{select:!0}))},$=function(P){if(document.activeElement===document.body)for(const ee of P)ee.removedNodes.length>0&&Lk(w)};document.addEventListener("focusin",L),document.addEventListener("focusout",B);const j=new MutationObserver($);return w&&j.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",B),j.disconnect()}}},[u,w,R.paused]),H.useEffect(()=>{if(w){P9t.add(R);const L=document.activeElement;if(!w.contains(L)){const $=new CustomEvent(YCe,D9t);w.addEventListener(YCe,S),w.dispatchEvent($),$.defaultPrevented||($jn(Gjn(kGt(w)),{select:!0}),document.activeElement===L&&Lk(w))}return()=>{w.removeEventListener(YCe,S),setTimeout(()=>{const $=new CustomEvent(JCe,D9t);w.addEventListener(JCe,x),w.dispatchEvent($),$.defaultPrevented||Lk(L??document.body,{select:!0}),w.removeEventListener(JCe,x),P9t.remove(R)},0)}}},[w,S,x,R]);const D=H.useCallback(L=>{if(!s&&!u||R.paused)return;const B=L.key==="Tab"&&!L.altKey&&!L.ctrlKey&&!L.metaKey,$=document.activeElement;if(B&&$){const j=L.currentTarget,[P,G]=Bjn(j);P&&G?!L.shiftKey&&$===G?(L.preventDefault(),s&&Lk(P,{select:!0})):L.shiftKey&&$===P&&(L.preventDefault(),s&&Lk(G,{select:!0})):$===j&&L.preventDefault()}},[s,u,R.paused]);return I.jsx(no.div,{tabIndex:-1,...b,ref:C,onKeyDown:D})});Cz.displayName=Fjn;function $jn(n,{select:i=!1}={}){const s=document.activeElement;for(const u of n)if(Lk(u,{select:i}),document.activeElement!==s)return}function Bjn(n){const i=kGt(n),s=M9t(i,n),u=M9t(i.reverse(),n);return[s,u]}function kGt(n){const i=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const d=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||d?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function M9t(n,i){for(const s of n)if(!Ujn(s,{upTo:i}))return s}function Ujn(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 Hjn(n){return n instanceof HTMLInputElement&&"select"in n}function Lk(n,{select:i=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&Hjn(n)&&i&&n.select()}}var P9t=zjn();function zjn(){let n=[];return{add(i){const s=n[0];i!==s&&(s==null||s.pause()),n=j9t(n,i),n.unshift(i)},remove(i){var s;n=j9t(n,i),(s=n[0])==null||s.resume()}}}function j9t(n,i){const s=[...n],u=s.indexOf(i);return u!==-1&&s.splice(u,1),s}function Gjn(n){return n.filter(i=>i.tagName!=="A")}var qjn="Portal",Iz=H.forwardRef((n,i)=>{var w;const{container:s,...u}=n,[d,g]=H.useState(!1);Hp(()=>g(!0),[]);const b=s||d&&((w=globalThis==null?void 0:globalThis.document)==null?void 0:w.body);return b?dHt.createPortal(I.jsx(no.div,{...u,ref:i}),b):null});Iz.displayName=qjn;function Vjn(n,i){return H.useReducer((s,u)=>i[s][u]??s,n)}var kw=n=>{const{present:i,children:s}=n,u=Wjn(i),d=typeof s=="function"?s({present:u.isPresent}):H.Children.only(s),g=hs(u.ref,Kjn(d));return typeof s=="function"||u.isPresent?H.cloneElement(d,{ref:g}):null};kw.displayName="Presence";function Wjn(n){const[i,s]=H.useState(),u=H.useRef(null),d=H.useRef(n),g=H.useRef("none"),b=n?"mounted":"unmounted",[w,E]=Vjn(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H.useEffect(()=>{const S=Sie(u.current);g.current=w==="mounted"?S:"none"},[w]),Hp(()=>{const S=u.current,x=d.current;if(x!==n){const C=g.current,R=Sie(S);n?E("MOUNT"):R==="none"||(S==null?void 0:S.display)==="none"?E("UNMOUNT"):E(x&&C!==R?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),Hp(()=>{if(i){let S;const x=i.ownerDocument.defaultView??window,A=R=>{const L=Sie(u.current).includes(CSS.escape(R.animationName));if(R.target===i&&L&&(E("ANIMATION_END"),!d.current)){const B=i.style.animationFillMode;i.style.animationFillMode="forwards",S=x.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=B)})}},C=R=>{R.target===i&&(g.current=Sie(u.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",A),i.addEventListener("animationend",A),()=>{x.clearTimeout(S),i.removeEventListener("animationstart",C),i.removeEventListener("animationcancel",A),i.removeEventListener("animationend",A)}}else E("ANIMATION_END")},[i,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:H.useCallback(S=>{u.current=S?getComputedStyle(S):null,s(S)},[])}}function Sie(n){return(n==null?void 0:n.animationName)||"none"}function Kjn(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var XCe=0;function sae(){H.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??F9t()),document.body.insertAdjacentElement("beforeend",n[1]??F9t()),XCe++,()=>{XCe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),XCe--}},[])}function F9t(){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 s,u=1,d=arguments.length;u"u")return d7n;var i=f7n(n),s=document.documentElement.clientWidth,u=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,u-s+i[2]-i[0])}},p7n=RGt(),rM="data-scroll-locked",g7n=function(n,i,s,u){var d=n.left,g=n.top,b=n.right,w=n.gap;return s===void 0&&(s="margin"),` - .`.concat(Jjn,` { - overflow: hidden `).concat(u,`; - padding-right: `).concat(w,"px ").concat(u,`; - } - body[`).concat(rM,`] { - overflow: hidden `).concat(u,`; - overscroll-behavior: contain; - `).concat([i&&"position: relative ".concat(u,";"),s==="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(u,`; - `),s==="padding"&&"padding-right: ".concat(w,"px ").concat(u,";")].filter(Boolean).join(""),` - } - - .`).concat(roe,` { - right: `).concat(w,"px ").concat(u,`; - } - - .`).concat(ioe,` { - margin-right: `).concat(w,"px ").concat(u,`; - } - - .`).concat(roe," .").concat(roe,` { - right: 0 `).concat(u,`; - } - - .`).concat(ioe," .").concat(ioe,` { - margin-right: 0 `).concat(u,`; - } - - body[`).concat(rM,`] { - `).concat(Xjn,": ").concat(w,`px; - } -`)},B9t=function(){var n=parseInt(document.body.getAttribute(rM)||"0",10);return isFinite(n)?n:0},b7n=function(){H.useEffect(function(){return document.body.setAttribute(rM,(B9t()+1).toString()),function(){var n=B9t()-1;n<=0?document.body.removeAttribute(rM):document.body.setAttribute(rM,n.toString())}},[])},m7n=function(n){var i=n.noRelative,s=n.noImportant,u=n.gapMode,d=u===void 0?"margin":u;b7n();var g=H.useMemo(function(){return h7n(d)},[d]);return H.createElement(p7n,{styles:g7n(g,!i,d,s?"":"!important")})},SLe=!1;if(typeof window<"u")try{var Tie=Object.defineProperty({},"passive",{get:function(){return SLe=!0,!0}});window.addEventListener("test",Tie,Tie),window.removeEventListener("test",Tie,Tie)}catch{SLe=!1}var w5=SLe?{passive:!1}:!1,w7n=function(n){return n.tagName==="TEXTAREA"},OGt=function(n,i){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!w7n(n)&&s[i]==="visible")},y7n=function(n){return OGt(n,"overflowY")},v7n=function(n){return OGt(n,"overflowX")},U9t=function(n,i){var s=i.ownerDocument,u=i;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var d=LGt(n,u);if(d){var g=DGt(n,u),b=g[1],w=g[2];if(b>w)return!0}u=u.parentNode}while(u&&u!==s.body);return!1},E7n=function(n){var i=n.scrollTop,s=n.scrollHeight,u=n.clientHeight;return[i,s,u]},S7n=function(n){var i=n.scrollLeft,s=n.scrollWidth,u=n.clientWidth;return[i,s,u]},LGt=function(n,i){return n==="v"?y7n(i):v7n(i)},DGt=function(n,i){return n==="v"?E7n(i):S7n(i)},T7n=function(n,i){return n==="h"&&i==="rtl"?-1:1},A7n=function(n,i,s,u,d){var g=T7n(n,window.getComputedStyle(i).direction),b=g*u,w=s.target,E=i.contains(w),S=!1,x=b>0,A=0,C=0;do{if(!w)break;var R=DGt(n,w),D=R[0],L=R[1],B=R[2],$=L-B-g*D;(D||$)&&LGt(n,w)&&(A+=$,C+=D);var j=w.parentNode;w=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(x&&Math.abs(A)<1||!x&&Math.abs(C)<1)&&(S=!0),S},Aie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},H9t=function(n){return[n.deltaX,n.deltaY]},z9t=function(n){return n&&"current"in n?n.current:n},_7n=function(n,i){return n[0]===i[0]&&n[1]===i[1]},x7n=function(n){return` - .block-interactivity-`.concat(n,` {pointer-events: none;} - .allow-interactivity-`).concat(n,` {pointer-events: all;} -`)},k7n=0,y5=[];function N7n(n){var i=H.useRef([]),s=H.useRef([0,0]),u=H.useRef(),d=H.useState(k7n++)[0],g=H.useState(RGt)[0],b=H.useRef(n);H.useEffect(function(){b.current=n},[n]),H.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var L=Yjn([n.lockRef.current],(n.shards||[]).map(z9t),!0).filter(Boolean);return L.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),L.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=H.useCallback(function(L,B){if("touches"in L&&L.touches.length===2||L.type==="wheel"&&L.ctrlKey)return!b.current.allowPinchZoom;var $=Aie(L),j=s.current,P="deltaX"in L?L.deltaX:j[0]-$[0],G="deltaY"in L?L.deltaY:j[1]-$[1],ee,ne=L.target,Q=Math.abs(P)>Math.abs(G)?"h":"v";if("touches"in L&&Q==="h"&&ne.type==="range")return!1;var ie=window.getSelection(),he=ie&&ie.anchorNode,ge=he?he===ne||he.contains(ne):!1;if(ge)return!1;var ce=U9t(Q,ne);if(!ce)return!0;if(ce?ee=Q:(ee=Q==="v"?"h":"v",ce=U9t(Q,ne)),!ce)return!1;if(!u.current&&"changedTouches"in L&&(P||G)&&(u.current=ee),!ee)return!0;var fe=u.current||ee;return A7n(fe,B,L,fe==="h"?P:G)},[]),E=H.useCallback(function(L){var B=L;if(!(!y5.length||y5[y5.length-1]!==g)){var $="deltaY"in B?H9t(B):Aie(B),j=i.current.filter(function(ee){return ee.name===B.type&&(ee.target===B.target||B.target===ee.shadowParent)&&_7n(ee.delta,$)})[0];if(j&&j.should){B.cancelable&&B.preventDefault();return}if(!j){var P=(b.current.shards||[]).map(z9t).filter(Boolean).filter(function(ee){return ee.contains(B.target)}),G=P.length>0?w(B,P[0]):!b.current.noIsolation;G&&B.cancelable&&B.preventDefault()}}},[]),S=H.useCallback(function(L,B,$,j){var P={name:L,delta:B,target:$,should:j,shadowParent:C7n($)};i.current.push(P),setTimeout(function(){i.current=i.current.filter(function(G){return G!==P})},1)},[]),x=H.useCallback(function(L){s.current=Aie(L),u.current=void 0},[]),A=H.useCallback(function(L){S(L.type,H9t(L),L.target,w(L,n.lockRef.current))},[]),C=H.useCallback(function(L){S(L.type,Aie(L),L.target,w(L,n.lockRef.current))},[]);H.useEffect(function(){return y5.push(g),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:C}),document.addEventListener("wheel",E,w5),document.addEventListener("touchmove",E,w5),document.addEventListener("touchstart",x,w5),function(){y5=y5.filter(function(L){return L!==g}),document.removeEventListener("wheel",E,w5),document.removeEventListener("touchmove",E,w5),document.removeEventListener("touchstart",x,w5)}},[]);var R=n.removeScrollBar,D=n.inert;return H.createElement(H.Fragment,null,D?H.createElement(g,{styles:x7n(d)}):null,R?H.createElement(m7n,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function C7n(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const I7n=i7n(IGt,N7n);var Rz=H.forwardRef(function(n,i){return H.createElement(aae,O2({},n,{ref:i,sideCar:I7n}))});Rz.classNames=aae.classNames;var R7n=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},v5=new WeakMap,_ie=new WeakMap,xie={},tIe=0,MGt=function(n){return n&&(n.host||MGt(n.parentNode))},O7n=function(n,i){return i.map(function(s){if(n.contains(s))return s;var u=MGt(s);return u&&n.contains(u)?u:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},L7n=function(n,i,s,u){var d=O7n(i,Array.isArray(n)?n:[n]);xie[s]||(xie[s]=new WeakMap);var g=xie[s],b=[],w=new Set,E=new Set(d),S=function(A){!A||w.has(A)||(w.add(A),S(A.parentNode))};d.forEach(S);var x=function(A){!A||E.has(A)||Array.prototype.forEach.call(A.children,function(C){if(w.has(C))x(C);else try{var R=C.getAttribute(u),D=R!==null&&R!=="false",L=(v5.get(C)||0)+1,B=(g.get(C)||0)+1;v5.set(C,L),g.set(C,B),b.push(C),L===1&&D&&_ie.set(C,!0),B===1&&C.setAttribute(s,"true"),D||C.setAttribute(u,"true")}catch($){console.error("aria-hidden: cannot operate on ",C,$)}})};return x(i),w.clear(),tIe++,function(){b.forEach(function(A){var C=v5.get(A)-1,R=g.get(A)-1;v5.set(A,C),g.set(A,R),C||(_ie.has(A)||A.removeAttribute(u),_ie.delete(A)),R||A.removeAttribute(s)}),tIe--,tIe||(v5=new WeakMap,v5=new WeakMap,_ie=new WeakMap,xie={})}},uae=function(n,i,s){s===void 0&&(s="data-aria-hidden");var u=Array.from(Array.isArray(n)?n:[n]),d=R7n(n);return d?(u.push.apply(u,Array.from(d.querySelectorAll("[aria-live], script"))),L7n(u,d,s,"aria-hidden")):function(){return null}};function D7n(n){const i=M7n(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(j7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function M7n(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=$7n(d),w=F7n(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var P7n=Symbol("radix.slottable");function j7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===P7n}function F7n(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function $7n(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var cae="Dialog",[PGt]=xw(cae),[B7n,Uv]=PGt(cae),jGt=n=>{const{__scopeDialog:i,children:s,open:u,defaultOpen:d,onOpenChange:g,modal:b=!0}=n,w=H.useRef(null),E=H.useRef(null),[S,x]=G2({prop:u,defaultProp:d??!1,onChange:g,caller:cae});return I.jsx(B7n,{scope:i,triggerRef:w,contentRef:E,contentId:Bh(),titleId:Bh(),descriptionId:Bh(),open:S,onOpenChange:x,onOpenToggle:H.useCallback(()=>x(A=>!A),[x]),modal:b,children:s})};jGt.displayName=cae;var FGt="DialogTrigger",U7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...u}=n,d=Uv(FGt,s),g=hs(i,d.triggerRef);return I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":z5e(d.open),...u,ref:g,onClick:Lr(n.onClick,d.onOpenToggle)})});U7n.displayName=FGt;var U5e="DialogPortal",[H7n,$Gt]=PGt(U5e,{forceMount:void 0}),BGt=n=>{const{__scopeDialog:i,forceMount:s,children:u,container:d}=n,g=Uv(U5e,i);return I.jsx(H7n,{scope:i,forceMount:s,children:H.Children.map(u,b=>I.jsx(kw,{present:s||g.open,children:I.jsx(Iz,{asChild:!0,container:d,children:b})}))})};BGt.displayName=U5e;var Joe="DialogOverlay",UGt=H.forwardRef((n,i)=>{const s=$Gt(Joe,n.__scopeDialog),{forceMount:u=s.forceMount,...d}=n,g=Uv(Joe,n.__scopeDialog);return g.modal?I.jsx(kw,{present:u||g.open,children:I.jsx(G7n,{...d,ref:i})}):null});UGt.displayName=Joe;var z7n=D7n("DialogOverlay.RemoveScroll"),G7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...u}=n,d=Uv(Joe,s);return I.jsx(Rz,{as:z7n,allowPinchZoom:!0,shards:[d.contentRef],children:I.jsx(no.div,{"data-state":z5e(d.open),...u,ref:i,style:{pointerEvents:"auto",...u.style}})})}),bR="DialogContent",HGt=H.forwardRef((n,i)=>{const s=$Gt(bR,n.__scopeDialog),{forceMount:u=s.forceMount,...d}=n,g=Uv(bR,n.__scopeDialog);return I.jsx(kw,{present:u||g.open,children:g.modal?I.jsx(q7n,{...d,ref:i}):I.jsx(V7n,{...d,ref:i})})});HGt.displayName=bR;var q7n=H.forwardRef((n,i)=>{const s=Uv(bR,n.__scopeDialog),u=H.useRef(null),d=hs(i,s.contentRef,u);return H.useEffect(()=>{const g=u.current;if(g)return uae(g)},[]),I.jsx(zGt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lr(n.onCloseAutoFocus,g=>{var b;g.preventDefault(),(b=s.triggerRef.current)==null||b.focus()}),onPointerDownOutside:Lr(n.onPointerDownOutside,g=>{const b=g.detail.originalEvent,w=b.button===0&&b.ctrlKey===!0;(b.button===2||w)&&g.preventDefault()}),onFocusOutside:Lr(n.onFocusOutside,g=>g.preventDefault())})}),V7n=H.forwardRef((n,i)=>{const s=Uv(bR,n.__scopeDialog),u=H.useRef(!1),d=H.useRef(!1);return I.jsx(zGt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(u.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),u.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(u.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=s.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),zGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,trapFocus:u,onOpenAutoFocus:d,onCloseAutoFocus:g,...b}=n,w=Uv(bR,s),E=H.useRef(null),S=hs(i,E);return sae(),I.jsxs(I.Fragment,{children:[I.jsx(Cz,{asChild:!0,loop:!0,trapped:u,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(Nz,{role:"dialog",id:w.contentId,"aria-describedby":w.descriptionId,"aria-labelledby":w.titleId,"data-state":z5e(w.open),...b,ref:S,onDismiss:()=>w.onOpenChange(!1)})}),I.jsxs(I.Fragment,{children:[I.jsx(W7n,{titleId:w.titleId}),I.jsx(Y7n,{contentRef:E,descriptionId:w.descriptionId})]})]})}),H5e="DialogTitle",GGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...u}=n,d=Uv(H5e,s);return I.jsx(no.h2,{id:d.titleId,...u,ref:i})});GGt.displayName=H5e;var qGt="DialogDescription",VGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...u}=n,d=Uv(qGt,s);return I.jsx(no.p,{id:d.descriptionId,...u,ref:i})});VGt.displayName=qGt;var WGt="DialogClose",KGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...u}=n,d=Uv(WGt,s);return I.jsx(no.button,{type:"button",...u,ref:i,onClick:Lr(n.onClick,()=>d.onOpenChange(!1))})});KGt.displayName=WGt;function z5e(n){return n?"open":"closed"}var YGt="DialogTitleWarning",[Qgr,JGt]=bjn(YGt,{contentName:bR,titleName:H5e,docsSlug:"dialog"}),W7n=({titleId:n})=>{const i=JGt(YGt),s=`\`${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 H.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},K7n="DialogDescriptionWarning",Y7n=({contentRef:n,descriptionId:i})=>{const u=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JGt(K7n).contentName}}.`;return H.useEffect(()=>{var g;const d=(g=n.current)==null?void 0:g.getAttribute("aria-describedby");i&&d&&(document.getElementById(i)||console.warn(u))},[u,n,i]),null},XGt=jGt,ZGt=BGt,G5e=UGt,q5e=HGt,QGt=GGt,eqt=VGt,J7n=KGt,X7n=Symbol.for("react.lazy"),Xoe=IDe[" use ".trim().toString()];function Z7n(n){return typeof n=="object"&&n!==null&&"then"in n}function tqt(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===X7n&&"_payload"in n&&Z7n(n._payload)}function lae(n){const i=eFn(n),s=H.forwardRef((u,d)=>{let{children:g,...b}=u;tqt(g)&&typeof Xoe=="function"&&(g=Xoe(g._payload));const w=H.Children.toArray(g),E=w.find(nFn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}var Q7n=lae("Slot");function eFn(n){const i=H.forwardRef((s,u)=>{let{children:d,...g}=s;if(tqt(d)&&typeof Xoe=="function"&&(d=Xoe(d._payload)),H.isValidElement(d)){const b=iFn(d),w=rFn(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var tFn=Symbol("radix.slottable");function nFn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===tFn}function rFn(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function iFn(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var oFn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vN=oFn.reduce((n,i)=>{const s=lae(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{}),BU='[cmdk-group=""]',nIe='[cmdk-group-items=""]',sFn='[cmdk-group-heading=""]',nqt='[cmdk-item=""]',G9t=`${nqt}:not([aria-disabled="true"])`,TLe="cmdk-item-select",A5="data-value",aFn=(n,i,s)=>gjn(n,i,s),rqt=H.createContext(void 0),Oz=()=>H.useContext(rqt),iqt=H.createContext(void 0),V5e=()=>H.useContext(iqt),oqt=H.createContext(void 0),sqt=H.forwardRef((n,i)=>{let s=_5(()=>{var Ue,bt;return{search:"",value:(bt=(Ue=n.value)!=null?Ue:n.defaultValue)!=null?bt:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=_5(()=>new Set),d=_5(()=>new Map),g=_5(()=>new Map),b=_5(()=>new Set),w=aqt(n),{label:E,children:S,value:x,onValueChange:A,filter:C,shouldFilter:R,loop:D,disablePointerSelection:L=!1,vimBindings:B=!0,...$}=n,j=Bh(),P=Bh(),G=Bh(),ee=H.useRef(null),ne=wFn();mR(()=>{if(x!==void 0){let Ue=x.trim();s.current.value=Ue,Q.emit()}},[x]),mR(()=>{ne(6,K)},[]);let Q=H.useMemo(()=>({subscribe:Ue=>(b.current.add(Ue),()=>b.current.delete(Ue)),snapshot:()=>s.current,setState:(Ue,bt,kt)=>{var ht,Xt,vt,Ct;if(!Object.is(s.current[Ue],bt)){if(s.current[Ue]=bt,Ue==="search")fe(),ge(),ne(1,ce);else if(Ue==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ft=document.getElementById(G);Ft?Ft.focus():(ht=document.getElementById(j))==null||ht.focus()}if(ne(7,()=>{var Ft;s.current.selectedItemId=(Ft=pe())==null?void 0:Ft.id,Q.emit()}),kt||ne(5,K),((Xt=w.current)==null?void 0:Xt.value)!==void 0){let Ft=bt??"";(Ct=(vt=w.current).onValueChange)==null||Ct.call(vt,Ft);return}}Q.emit()}},emit:()=>{b.current.forEach(Ue=>Ue())}}),[]),ie=H.useMemo(()=>({value:(Ue,bt,kt)=>{var ht;bt!==((ht=g.current.get(Ue))==null?void 0:ht.value)&&(g.current.set(Ue,{value:bt,keywords:kt}),s.current.filtered.items.set(Ue,he(bt,kt)),ne(2,()=>{ge(),Q.emit()}))},item:(Ue,bt)=>(u.current.add(Ue),bt&&(d.current.has(bt)?d.current.get(bt).add(Ue):d.current.set(bt,new Set([Ue]))),ne(3,()=>{fe(),ge(),s.current.value||ce(),Q.emit()}),()=>{g.current.delete(Ue),u.current.delete(Ue),s.current.filtered.items.delete(Ue);let kt=pe();ne(4,()=>{fe(),(kt==null?void 0:kt.getAttribute("id"))===Ue&&ce(),Q.emit()})}),group:Ue=>(d.current.has(Ue)||d.current.set(Ue,new Set),()=>{g.current.delete(Ue),d.current.delete(Ue)}),filter:()=>w.current.shouldFilter,label:E||n["aria-label"],getDisablePointerSelection:()=>w.current.disablePointerSelection,listId:j,inputId:G,labelId:P,listInnerRef:ee}),[]);function he(Ue,bt){var kt,ht;let Xt=(ht=(kt=w.current)==null?void 0:kt.filter)!=null?ht:aFn;return Ue?Xt(Ue,s.current.search,bt):0}function ge(){if(!s.current.search||w.current.shouldFilter===!1)return;let Ue=s.current.filtered.items,bt=[];s.current.filtered.groups.forEach(ht=>{let Xt=d.current.get(ht),vt=0;Xt.forEach(Ct=>{let Ft=Ue.get(Ct);vt=Math.max(Ft,vt)}),bt.push([ht,vt])});let kt=ee.current;Oe().sort((ht,Xt)=>{var vt,Ct;let Ft=ht.getAttribute("id"),On=Xt.getAttribute("id");return((vt=Ue.get(On))!=null?vt:0)-((Ct=Ue.get(Ft))!=null?Ct:0)}).forEach(ht=>{let Xt=ht.closest(nIe);Xt?Xt.appendChild(ht.parentElement===Xt?ht:ht.closest(`${nIe} > *`)):kt.appendChild(ht.parentElement===kt?ht:ht.closest(`${nIe} > *`))}),bt.sort((ht,Xt)=>Xt[1]-ht[1]).forEach(ht=>{var Xt;let vt=(Xt=ee.current)==null?void 0:Xt.querySelector(`${BU}[${A5}="${encodeURIComponent(ht[0])}"]`);vt==null||vt.parentElement.appendChild(vt)})}function ce(){let Ue=Oe().find(kt=>kt.getAttribute("aria-disabled")!=="true"),bt=Ue==null?void 0:Ue.getAttribute(A5);Q.setState("value",bt||void 0)}function fe(){var Ue,bt,kt,ht;if(!s.current.search||w.current.shouldFilter===!1){s.current.filtered.count=u.current.size;return}s.current.filtered.groups=new Set;let Xt=0;for(let vt of u.current){let Ct=(bt=(Ue=g.current.get(vt))==null?void 0:Ue.value)!=null?bt:"",Ft=(ht=(kt=g.current.get(vt))==null?void 0:kt.keywords)!=null?ht:[],On=he(Ct,Ft);s.current.filtered.items.set(vt,On),On>0&&Xt++}for(let[vt,Ct]of d.current)for(let Ft of Ct)if(s.current.filtered.items.get(Ft)>0){s.current.filtered.groups.add(vt);break}s.current.filtered.count=Xt}function K(){var Ue,bt,kt;let ht=pe();ht&&(((Ue=ht.parentElement)==null?void 0:Ue.firstChild)===ht&&((kt=(bt=ht.closest(BU))==null?void 0:bt.querySelector(sFn))==null||kt.scrollIntoView({block:"nearest"})),ht.scrollIntoView({block:"nearest"}))}function pe(){var Ue;return(Ue=ee.current)==null?void 0:Ue.querySelector(`${nqt}[aria-selected="true"]`)}function Oe(){var Ue;return Array.from(((Ue=ee.current)==null?void 0:Ue.querySelectorAll(G9t))||[])}function Se(Ue){let bt=Oe()[Ue];bt&&Q.setState("value",bt.getAttribute(A5))}function De(Ue){var bt;let kt=pe(),ht=Oe(),Xt=ht.findIndex(Ct=>Ct===kt),vt=ht[Xt+Ue];(bt=w.current)!=null&&bt.loop&&(vt=Xt+Ue<0?ht[ht.length-1]:Xt+Ue===ht.length?ht[0]:ht[Xt+Ue]),vt&&Q.setState("value",vt.getAttribute(A5))}function Ae(Ue){let bt=pe(),kt=bt==null?void 0:bt.closest(BU),ht;for(;kt&&!ht;)kt=Ue>0?bFn(kt,BU):mFn(kt,BU),ht=kt==null?void 0:kt.querySelector(G9t);ht?Q.setState("value",ht.getAttribute(A5)):De(Ue)}let xe=()=>Se(Oe().length-1),We=Ue=>{Ue.preventDefault(),Ue.metaKey?xe():Ue.altKey?Ae(1):De(1)},dt=Ue=>{Ue.preventDefault(),Ue.metaKey?Se(0):Ue.altKey?Ae(-1):De(-1)};return H.createElement(vN.div,{ref:i,tabIndex:-1,...$,"cmdk-root":"",onKeyDown:Ue=>{var bt;(bt=$.onKeyDown)==null||bt.call($,Ue);let kt=Ue.nativeEvent.isComposing||Ue.keyCode===229;if(!(Ue.defaultPrevented||kt))switch(Ue.key){case"n":case"j":{B&&Ue.ctrlKey&&We(Ue);break}case"ArrowDown":{We(Ue);break}case"p":case"k":{B&&Ue.ctrlKey&&dt(Ue);break}case"ArrowUp":{dt(Ue);break}case"Home":{Ue.preventDefault(),Se(0);break}case"End":{Ue.preventDefault(),xe();break}case"Enter":{Ue.preventDefault();let ht=pe();if(ht){let Xt=new Event(TLe);ht.dispatchEvent(Xt)}}}}},H.createElement("label",{"cmdk-label":"",htmlFor:ie.inputId,id:ie.labelId,style:vFn},E),dae(n,Ue=>H.createElement(iqt.Provider,{value:Q},H.createElement(rqt.Provider,{value:ie},Ue))))}),uFn=H.forwardRef((n,i)=>{var s,u;let d=Bh(),g=H.useRef(null),b=H.useContext(oqt),w=Oz(),E=aqt(n),S=(u=(s=E.current)==null?void 0:s.forceMount)!=null?u:b==null?void 0:b.forceMount;mR(()=>{if(!S)return w.item(d,b==null?void 0:b.id)},[S]);let x=uqt(d,g,[n.value,n.children,g],n.keywords),A=V5e(),C=sN(ne=>ne.value&&ne.value===x.current),R=sN(ne=>S||w.filter()===!1?!0:ne.search?ne.filtered.items.get(d)>0:!0);H.useEffect(()=>{let ne=g.current;if(!(!ne||n.disabled))return ne.addEventListener(TLe,D),()=>ne.removeEventListener(TLe,D)},[R,n.onSelect,n.disabled]);function D(){var ne,Q;L(),(Q=(ne=E.current).onSelect)==null||Q.call(ne,x.current)}function L(){A.setState("value",x.current,!0)}if(!R)return null;let{disabled:B,value:$,onSelect:j,forceMount:P,keywords:G,...ee}=n;return H.createElement(vN.div,{ref:zg(g,i),...ee,id:d,"cmdk-item":"",role:"option","aria-disabled":!!B,"aria-selected":!!C,"data-disabled":!!B,"data-selected":!!C,onPointerMove:B||w.getDisablePointerSelection()?void 0:L,onClick:B?void 0:D},n.children)}),cFn=H.forwardRef((n,i)=>{let{heading:s,children:u,forceMount:d,...g}=n,b=Bh(),w=H.useRef(null),E=H.useRef(null),S=Bh(),x=Oz(),A=sN(R=>d||x.filter()===!1?!0:R.search?R.filtered.groups.has(b):!0);mR(()=>x.group(b),[]),uqt(b,w,[n.value,n.heading,E]);let C=H.useMemo(()=>({id:b,forceMount:d}),[d]);return H.createElement(vN.div,{ref:zg(w,i),...g,"cmdk-group":"",role:"presentation",hidden:A?void 0:!0},s&&H.createElement("div",{ref:E,"cmdk-group-heading":"","aria-hidden":!0,id:S},s),dae(n,R=>H.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":s?S:void 0},H.createElement(oqt.Provider,{value:C},R))))}),lFn=H.forwardRef((n,i)=>{let{alwaysRender:s,...u}=n,d=H.useRef(null),g=sN(b=>!b.search);return!s&&!g?null:H.createElement(vN.div,{ref:zg(d,i),...u,"cmdk-separator":"",role:"separator"})}),dFn=H.forwardRef((n,i)=>{let{onValueChange:s,...u}=n,d=n.value!=null,g=V5e(),b=sN(S=>S.search),w=sN(S=>S.selectedItemId),E=Oz();return H.useEffect(()=>{n.value!=null&&g.setState("search",n.value)},[n.value]),H.createElement(vN.input,{ref:i,...u,"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),s==null||s(S.target.value)}})}),fFn=H.forwardRef((n,i)=>{let{children:s,label:u="Suggestions",...d}=n,g=H.useRef(null),b=H.useRef(null),w=sN(S=>S.selectedItemId),E=Oz();return H.useEffect(()=>{if(b.current&&g.current){let S=b.current,x=g.current,A,C=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{let R=S.offsetHeight;x.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px")})});return C.observe(S),()=>{cancelAnimationFrame(A),C.unobserve(S)}}},[]),H.createElement(vN.div,{ref:zg(g,i),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":w,"aria-label":u,id:E.listId},dae(n,S=>H.createElement("div",{ref:zg(b,E.listInnerRef),"cmdk-list-sizer":""},S)))}),hFn=H.forwardRef((n,i)=>{let{open:s,onOpenChange:u,overlayClassName:d,contentClassName:g,container:b,...w}=n;return H.createElement(XGt,{open:s,onOpenChange:u},H.createElement(ZGt,{container:b},H.createElement(G5e,{"cmdk-overlay":"",className:d}),H.createElement(q5e,{"aria-label":n.label,"cmdk-dialog":"",className:g},H.createElement(sqt,{ref:i,...w}))))}),pFn=H.forwardRef((n,i)=>sN(s=>s.filtered.count===0)?H.createElement(vN.div,{ref:i,...n,"cmdk-empty":"",role:"presentation"}):null),gFn=H.forwardRef((n,i)=>{let{progress:s,children:u,label:d="Loading...",...g}=n;return H.createElement(vN.div,{ref:i,...g,"cmdk-loading":"",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},dae(n,b=>H.createElement("div",{"aria-hidden":!0},b)))}),fb=Object.assign(sqt,{List:fFn,Item:uFn,Input:dFn,Group:cFn,Separator:lFn,Dialog:hFn,Empty:pFn,Loading:gFn});function bFn(n,i){let s=n.nextElementSibling;for(;s;){if(s.matches(i))return s;s=s.nextElementSibling}}function mFn(n,i){let s=n.previousElementSibling;for(;s;){if(s.matches(i))return s;s=s.previousElementSibling}}function aqt(n){let i=H.useRef(n);return mR(()=>{i.current=n}),i}var mR=typeof window>"u"?H.useEffect:H.useLayoutEffect;function _5(n){let i=H.useRef();return i.current===void 0&&(i.current=n()),i}function sN(n){let i=V5e(),s=()=>n(i.snapshot());return H.useSyncExternalStore(i.subscribe,s,s)}function uqt(n,i,s,u=[]){let d=H.useRef(),g=Oz();return mR(()=>{var b;let w=(()=>{var S;for(let x of s){if(typeof x=="string")return x.trim();if(typeof x=="object"&&"current"in x)return x.current?(S=x.current.textContent)==null?void 0:S.trim():d.current}})(),E=u.map(S=>S.trim());g.value(n,w,E),(b=i.current)==null||b.setAttribute(A5,w),d.current=w}),d}var wFn=()=>{let[n,i]=H.useState(),s=_5(()=>new Map);return mR(()=>{s.current.forEach(u=>u()),s.current=new Map},[n]),(u,d)=>{s.current.set(u,d),i({})}};function yFn(n){let i=n.type;return typeof i=="function"?i(n.props):"render"in i?i.render(n.props):n}function dae({asChild:n,children:i},s){return n&&H.isValidElement(i)?H.cloneElement(yFn(i),{ref:i.ref},s(i.props.children)):s(i)}var vFn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function cqt(n){var i,s,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(i=0;i{const i=TFn(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:u}=n;return{getClassGroupId:b=>{const w=b.split(W5e);return w[0]===""&&w.length!==1&&w.shift(),dqt(w,i)||SFn(b)},getConflictingClassGroupIds:(b,w)=>{const E=s[b]||[];return w&&u[b]?[...E,...u[b]]:E}}},dqt=(n,i)=>{var b;if(n.length===0)return i.classGroupId;const s=n[0],u=i.nextPart.get(s),d=u?dqt(n.slice(1),u):void 0;if(d)return d;if(i.validators.length===0)return;const g=n.join(W5e);return(b=i.validators.find(({validator:w})=>w(g)))==null?void 0:b.classGroupId},q9t=/^\[(.+)\]$/,SFn=n=>{if(q9t.test(n)){const i=q9t.exec(n)[1],s=i==null?void 0:i.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},TFn=n=>{const{theme:i,prefix:s}=n,u={nextPart:new Map,validators:[]};return _Fn(Object.entries(n.classGroups),s).forEach(([g,b])=>{ALe(b,u,g,i)}),u},ALe=(n,i,s,u)=>{n.forEach(d=>{if(typeof d=="string"){const g=d===""?i:V9t(i,d);g.classGroupId=s;return}if(typeof d=="function"){if(AFn(d)){ALe(d(u),i,s,u);return}i.validators.push({validator:d,classGroupId:s});return}Object.entries(d).forEach(([g,b])=>{ALe(b,V9t(i,g),s,u)})})},V9t=(n,i)=>{let s=n;return i.split(W5e).forEach(u=>{s.nextPart.has(u)||s.nextPart.set(u,{nextPart:new Map,validators:[]}),s=s.nextPart.get(u)}),s},AFn=n=>n.isThemeGetter,_Fn=(n,i)=>i?n.map(([s,u])=>{const d=u.map(g=>typeof g=="string"?i+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(([b,w])=>[i+b,w])):g);return[s,d]}):n,xFn=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,u=new Map;const d=(g,b)=>{s.set(g,b),i++,i>n&&(i=0,u=s,s=new Map)};return{get(g){let b=s.get(g);if(b!==void 0)return b;if((b=u.get(g))!==void 0)return d(g,b),b},set(g,b){s.has(g)?s.set(g,b):d(g,b)}}},fqt="!",kFn=n=>{const{separator:i,experimentalParseClassName:s}=n,u=i.length===1,d=i[0],g=i.length,b=w=>{const E=[];let S=0,x=0,A;for(let B=0;Bx?A-x:void 0;return{modifiers:E,hasImportantModifier:R,baseClassName:D,maybePostfixModifierPosition:L}};return s?w=>s({className:w,parseClassName:b}):b},NFn=n=>{if(n.length<=1)return n;const i=[];let s=[];return n.forEach(u=>{u[0]==="["?(i.push(...s.sort(),u),s=[]):s.push(u)}),i.push(...s.sort()),i},CFn=n=>({cache:xFn(n.cacheSize),parseClassName:kFn(n),...EFn(n)}),IFn=/\s+/,RFn=(n,i)=>{const{parseClassName:s,getClassGroupId:u,getConflictingClassGroupIds:d}=i,g=[],b=n.trim().split(IFn);let w="";for(let E=b.length-1;E>=0;E-=1){const S=b[E],{modifiers:x,hasImportantModifier:A,baseClassName:C,maybePostfixModifierPosition:R}=s(S);let D=!!R,L=u(D?C.substring(0,R):C);if(!L){if(!D){w=S+(w.length>0?" "+w:w);continue}if(L=u(C),!L){w=S+(w.length>0?" "+w:w);continue}D=!1}const B=NFn(x).join(":"),$=A?B+fqt:B,j=$+L;if(g.includes(j))continue;g.push(j);const P=d(L,D);for(let G=0;G0?" "+w:w)}return w};function OFn(){let n=0,i,s,u="";for(;n{if(typeof n=="string")return n;let i,s="";for(let u=0;uA(x),n());return s=CFn(S),u=s.cache.get,d=s.cache.set,g=w,w(E)}function w(E){const S=u(E);if(S)return S;const x=RFn(E,s);return d(E,x),x}return function(){return g(OFn.apply(null,arguments))}}const cc=n=>{const i=s=>s[n]||[];return i.isThemeGetter=!0,i},pqt=/^\[(?:([a-z-]+):)?(.+)\]$/i,DFn=/^\d+\/\d+$/,MFn=new Set(["px","full","screen"]),PFn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jFn=/\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$/,FFn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$Fn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BFn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rA=n=>iM(n)||MFn.has(n)||DFn.test(n),Rk=n=>jM(n,"length",KFn),iM=n=>!!n&&!Number.isNaN(Number(n)),rIe=n=>jM(n,"number",iM),UU=n=>!!n&&Number.isInteger(Number(n)),UFn=n=>n.endsWith("%")&&iM(n.slice(0,-1)),Xo=n=>pqt.test(n),Ok=n=>PFn.test(n),HFn=new Set(["length","size","percentage"]),zFn=n=>jM(n,HFn,gqt),GFn=n=>jM(n,"position",gqt),qFn=new Set(["image","url"]),VFn=n=>jM(n,qFn,JFn),WFn=n=>jM(n,"",YFn),HU=()=>!0,jM=(n,i,s)=>{const u=pqt.exec(n);return u?u[1]?typeof i=="string"?u[1]===i:i.has(u[1]):s(u[2]):!1},KFn=n=>jFn.test(n)&&!FFn.test(n),gqt=()=>!1,YFn=n=>$Fn.test(n),JFn=n=>BFn.test(n),XFn=()=>{const n=cc("colors"),i=cc("spacing"),s=cc("blur"),u=cc("brightness"),d=cc("borderColor"),g=cc("borderRadius"),b=cc("borderSpacing"),w=cc("borderWidth"),E=cc("contrast"),S=cc("grayscale"),x=cc("hueRotate"),A=cc("invert"),C=cc("gap"),R=cc("gradientColorStops"),D=cc("gradientColorStopPositions"),L=cc("inset"),B=cc("margin"),$=cc("opacity"),j=cc("padding"),P=cc("saturate"),G=cc("scale"),ee=cc("sepia"),ne=cc("skew"),Q=cc("space"),ie=cc("translate"),he=()=>["auto","contain","none"],ge=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",Xo,i],fe=()=>[Xo,i],K=()=>["",rA,Rk],pe=()=>["auto",iM,Xo],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Se=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",Xo],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],dt=()=>[iM,Xo];return{cacheSize:500,separator:":",theme:{colors:[HU],spacing:[rA,Rk],blur:["none","",Ok,Xo],brightness:dt(),borderColor:[n],borderRadius:["none","","full",Ok,Xo],borderSpacing:fe(),borderWidth:K(),contrast:dt(),grayscale:xe(),hueRotate:dt(),invert:xe(),gap:fe(),gradientColorStops:[n],gradientColorStopPositions:[UFn,Rk],inset:ce(),margin:ce(),opacity:dt(),padding:fe(),saturate:dt(),scale:dt(),sepia:xe(),skew:dt(),space:fe(),translate:fe()},classGroups:{aspect:[{aspect:["auto","square","video",Xo]}],container:["container"],columns:[{columns:[Ok]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"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:[...Oe(),Xo]}],overflow:[{overflow:ge()}],"overflow-x":[{"overflow-x":ge()}],"overflow-y":[{"overflow-y":ge()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",UU,Xo]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Xo]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",UU,Xo]}],"grid-cols":[{"grid-cols":[HU]}],"col-start-end":[{col:["auto",{span:["full",UU,Xo]},Xo]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[HU]}],"row-start-end":[{row:["auto",{span:[UU,Xo]},Xo]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Xo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Xo]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...Ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],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":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Xo,i]}],"min-w":[{"min-w":[Xo,i,"min","max","fit"]}],"max-w":[{"max-w":[Xo,i,"none","full","min","max","fit","prose",{screen:[Ok]},Ok]}],h:[{h:[Xo,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Xo,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Xo,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Xo,i,"auto","min","max","fit"]}],"font-size":[{text:["base",Ok,Rk]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rIe]}],"font-family":[{font:[HU]}],"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",Xo]}],"line-clamp":[{"line-clamp":["none",iM,rIe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rA,Xo]}],"list-image":[{"list-image":["none",Xo]}],"list-style-type":[{list:["none","disc","decimal",Xo]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rA,Rk]}],"underline-offset":[{"underline-offset":["auto",rA,Xo]}],"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:fe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xo]}],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",Xo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),GFn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zFn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},VFn]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"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":[$]}],"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":[$]}],"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":[rA,Xo]}],"outline-w":[{outline:[rA,Rk]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[rA,Rk]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Ok,WFn]}],"shadow-color":[{shadow:[HU]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[u]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Ok,Xo]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[A]}],saturate:[{saturate:[P]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"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",Xo]}],duration:[{duration:dt()}],ease:[{ease:["linear","in","out","in-out",Xo]}],delay:[{delay:dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",Xo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[UU,Xo]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Xo]}],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",Xo]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":fe()}],"scroll-mx":[{"scroll-mx":fe()}],"scroll-my":[{"scroll-my":fe()}],"scroll-ms":[{"scroll-ms":fe()}],"scroll-me":[{"scroll-me":fe()}],"scroll-mt":[{"scroll-mt":fe()}],"scroll-mr":[{"scroll-mr":fe()}],"scroll-mb":[{"scroll-mb":fe()}],"scroll-ml":[{"scroll-ml":fe()}],"scroll-p":[{"scroll-p":fe()}],"scroll-px":[{"scroll-px":fe()}],"scroll-py":[{"scroll-py":fe()}],"scroll-ps":[{"scroll-ps":fe()}],"scroll-pe":[{"scroll-pe":fe()}],"scroll-pt":[{"scroll-pt":fe()}],"scroll-pr":[{"scroll-pr":fe()}],"scroll-pb":[{"scroll-pb":fe()}],"scroll-pl":[{"scroll-pl":fe()}],"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",Xo]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[rA,Rk,rIe]}],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"]}}},ZFn=LFn(XFn);function Sr(...n){return ZFn(lqt(n))}function K5e(){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 QFn=0;function ez(n){return`${n}_${Date.now()}_${QFn++}`}const wR=XGt,e$n=ZGt,bqt=H.forwardRef(({className:n,...i},s)=>I.jsx(G5e,{ref:s,className:Sr("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}));bqt.displayName=G5e.displayName;const aN=H.forwardRef(({className:n,children:i,container:s,...u},d)=>{const{t:g}=ps(["common"]);return I.jsxs(e$n,{container:s,children:[I.jsx(bqt,{}),I.jsxs(q5e,{ref:d,className:Sr("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),...u,children:[i,I.jsxs(J7n,{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:[I.jsx(oae,{className:"h-4 w-4"}),I.jsx("span",{className:"sr-only",children:g("buttons.close")})]})]})]})});aN.displayName=q5e.displayName;const uN=({className:n,...i})=>I.jsx("div",{className:Sr("flex flex-col space-y-1.5 text-center sm:text-left",n),...i});uN.displayName="DialogHeader";const cN=H.forwardRef(({className:n,...i},s)=>I.jsx(QGt,{ref:s,className:Sr("font-semibold text-lg leading-none tracking-tight",n),...i}));cN.displayName=QGt.displayName;const lN=H.forwardRef(({className:n,...i},s)=>I.jsx(eqt,{ref:s,className:Sr("text-muted-foreground text-sm",n),...i}));lN.displayName=eqt.displayName;const fae=H.forwardRef(({className:n,...i},s)=>I.jsx(fb,{ref:s,className:Sr("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),...i}));fae.displayName=fb.displayName;const hae=H.forwardRef(({className:n,...i},s)=>I.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[I.jsx(yGt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),I.jsx(fb.Input,{ref:s,autoComplete:"off",className:Sr("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})]}));hae.displayName=fb.Input.displayName;const pae=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.List,{ref:s,className:Sr("max-h-[300px] overflow-y-auto overflow-x-hidden",n),...i}));pae.displayName=fb.List.displayName;const gae=H.forwardRef((n,i)=>I.jsx(fb.Empty,{ref:i,className:"py-6 text-center text-sm",...n}));gae.displayName=fb.Empty.displayName;const tz=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Group,{ref:s,className:Sr("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}));tz.displayName=fb.Group.displayName;const t$n=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Separator,{ref:s,className:Sr("-mx-1 h-px bg-border",n),...i}));t$n.displayName=fb.Separator.displayName;const nz=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Item,{ref:s,className:Sr("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}));nz.displayName=fb.Item.displayName;const n$n=["top","right","bottom","left"],dN=Math.min,Mm=Math.max,Zoe=Math.round,kie=Math.floor,$2=n=>({x:n,y:n}),r$n={left:"right",right:"left",bottom:"top",top:"bottom"},i$n={start:"end",end:"start"};function _Le(n,i,s){return Mm(n,dN(i,s))}function vA(n,i){return typeof n=="function"?n(i):n}function EA(n){return n.split("-")[0]}function FM(n){return n.split("-")[1]}function Y5e(n){return n==="x"?"y":"x"}function J5e(n){return n==="y"?"height":"width"}const o$n=new Set(["top","bottom"]);function D2(n){return o$n.has(EA(n))?"y":"x"}function X5e(n){return Y5e(D2(n))}function s$n(n,i,s){s===void 0&&(s=!1);const u=FM(n),d=X5e(n),g=J5e(d);let b=d==="x"?u===(s?"end":"start")?"right":"left":u==="start"?"bottom":"top";return i.reference[g]>i.floating[g]&&(b=Qoe(b)),[b,Qoe(b)]}function a$n(n){const i=Qoe(n);return[xLe(n),i,xLe(i)]}function xLe(n){return n.replace(/start|end/g,i=>i$n[i])}const W9t=["left","right"],K9t=["right","left"],u$n=["top","bottom"],c$n=["bottom","top"];function l$n(n,i,s){switch(n){case"top":case"bottom":return s?i?K9t:W9t:i?W9t:K9t;case"left":case"right":return i?u$n:c$n;default:return[]}}function d$n(n,i,s,u){const d=FM(n);let g=l$n(EA(n),s==="start",u);return d&&(g=g.map(b=>b+"-"+d),i&&(g=g.concat(g.map(xLe)))),g}function Qoe(n){return n.replace(/left|right|bottom|top/g,i=>r$n[i])}function f$n(n){return{top:0,right:0,bottom:0,left:0,...n}}function mqt(n){return typeof n!="number"?f$n(n):{top:n,right:n,bottom:n,left:n}}function ese(n){const{x:i,y:s,width:u,height:d}=n;return{width:u,height:d,top:s,left:i,right:i+u,bottom:s+d,x:i,y:s}}function Y9t(n,i,s){let{reference:u,floating:d}=n;const g=D2(i),b=X5e(i),w=J5e(b),E=EA(i),S=g==="y",x=u.x+u.width/2-d.width/2,A=u.y+u.height/2-d.height/2,C=u[w]/2-d[w]/2;let R;switch(E){case"top":R={x,y:u.y-d.height};break;case"bottom":R={x,y:u.y+u.height};break;case"right":R={x:u.x+u.width,y:A};break;case"left":R={x:u.x-d.width,y:A};break;default:R={x:u.x,y:u.y}}switch(FM(i)){case"start":R[b]-=C*(s&&S?-1:1);break;case"end":R[b]+=C*(s&&S?-1:1);break}return R}const h$n=async(n,i,s)=>{const{placement:u="bottom",strategy:d="absolute",middleware:g=[],platform:b}=s,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,y:A}=Y9t(S,u,E),C=u,R={},D=0;for(let L=0;L({name:"arrow",options:n,async fn(i){const{x:s,y:u,placement:d,rects:g,platform:b,elements:w,middlewareData:E}=i,{element:S,padding:x=0}=vA(n,i)||{};if(S==null)return{};const A=mqt(x),C={x:s,y:u},R=X5e(d),D=J5e(R),L=await b.getDimensions(S),B=R==="y",$=B?"top":"left",j=B?"bottom":"right",P=B?"clientHeight":"clientWidth",G=g.reference[D]+g.reference[R]-C[R]-g.floating[D],ee=C[R]-g.reference[R],ne=await(b.getOffsetParent==null?void 0:b.getOffsetParent(S));let Q=ne?ne[P]:0;(!Q||!await(b.isElement==null?void 0:b.isElement(ne)))&&(Q=w.floating[P]||g.floating[D]);const ie=G/2-ee/2,he=Q/2-L[D]/2-1,ge=dN(A[$],he),ce=dN(A[j],he),fe=ge,K=Q-L[D]-ce,pe=Q/2-L[D]/2+ie,Oe=_Le(fe,pe,K),Se=!E.arrow&&FM(d)!=null&&pe!==Oe&&g.reference[D]/2-(pepe<=0)){var ce,fe;const pe=(((ce=g.flip)==null?void 0:ce.index)||0)+1,Oe=Q[pe];if(Oe&&(!(A==="alignment"?j!==D2(Oe):!1)||ge.every(Ae=>D2(Ae.placement)===j?Ae.overflows[0]>0:!0)))return{data:{index:pe,overflows:ge},reset:{placement:Oe}};let Se=(fe=ge.filter(De=>De.overflows[0]<=0).sort((De,Ae)=>De.overflows[1]-Ae.overflows[1])[0])==null?void 0:fe.placement;if(!Se)switch(R){case"bestFit":{var K;const De=(K=ge.filter(Ae=>{if(ne){const xe=D2(Ae.placement);return xe===j||xe==="y"}return!0}).map(Ae=>[Ae.placement,Ae.overflows.filter(xe=>xe>0).reduce((xe,We)=>xe+We,0)]).sort((Ae,xe)=>Ae[1]-xe[1])[0])==null?void 0:K[0];De&&(Se=De);break}case"initialPlacement":Se=w;break}if(d!==Se)return{reset:{placement:Se}}}return{}}}};function J9t(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function X9t(n){return n$n.some(i=>n[i]>=0)}const b$n=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:s}=i,{strategy:u="referenceHidden",...d}=vA(n,i);switch(u){case"referenceHidden":{const g=await rz(i,{...d,elementContext:"reference"}),b=J9t(g,s.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:X9t(b)}}}case"escaped":{const g=await rz(i,{...d,altBoundary:!0}),b=J9t(g,s.floating);return{data:{escapedOffsets:b,escaped:X9t(b)}}}default:return{}}}}},wqt=new Set(["left","top"]);async function m$n(n,i){const{placement:s,platform:u,elements:d}=n,g=await(u.isRTL==null?void 0:u.isRTL(d.floating)),b=EA(s),w=FM(s),E=D2(s)==="y",S=wqt.has(b)?-1:1,x=g&&E?-1:1,A=vA(i,n);let{mainAxis:C,crossAxis:R,alignmentAxis:D}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return w&&typeof D=="number"&&(R=w==="end"?D*-1:D),E?{x:R*x,y:C*S}:{x:C*S,y:R*x}}const w$n=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var s,u;const{x:d,y:g,placement:b,middlewareData:w}=i,E=await m$n(i,n);return b===((s=w.offset)==null?void 0:s.placement)&&(u=w.arrow)!=null&&u.alignmentOffset?{}:{x:d+E.x,y:g+E.y,data:{...E,placement:b}}}}},y$n=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:s,y:u,placement:d}=i,{mainAxis:g=!0,crossAxis:b=!1,limiter:w={fn:B=>{let{x:$,y:j}=B;return{x:$,y:j}}},...E}=vA(n,i),S={x:s,y:u},x=await rz(i,E),A=D2(EA(d)),C=Y5e(A);let R=S[C],D=S[A];if(g){const B=C==="y"?"top":"left",$=C==="y"?"bottom":"right",j=R+x[B],P=R-x[$];R=_Le(j,R,P)}if(b){const B=A==="y"?"top":"left",$=A==="y"?"bottom":"right",j=D+x[B],P=D-x[$];D=_Le(j,D,P)}const L=w.fn({...i,[C]:R,[A]:D});return{...L,data:{x:L.x-s,y:L.y-u,enabled:{[C]:g,[A]:b}}}}}},v$n=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:s,y:u,placement:d,rects:g,middlewareData:b}=i,{offset:w=0,mainAxis:E=!0,crossAxis:S=!0}=vA(n,i),x={x:s,y:u},A=D2(d),C=Y5e(A);let R=x[C],D=x[A];const L=vA(w,i),B=typeof L=="number"?{mainAxis:L,crossAxis:0}:{mainAxis:0,crossAxis:0,...L};if(E){const P=C==="y"?"height":"width",G=g.reference[C]-g.floating[P]+B.mainAxis,ee=g.reference[C]+g.reference[P]-B.mainAxis;Ree&&(R=ee)}if(S){var $,j;const P=C==="y"?"width":"height",G=wqt.has(EA(d)),ee=g.reference[A]-g.floating[P]+(G&&(($=b.offset)==null?void 0:$[A])||0)+(G?0:B.crossAxis),ne=g.reference[A]+g.reference[P]+(G?0:((j=b.offset)==null?void 0:j[A])||0)-(G?B.crossAxis:0);Dne&&(D=ne)}return{[C]:R,[A]:D}}}},E$n=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var s,u;const{placement:d,rects:g,platform:b,elements:w}=i,{apply:E=()=>{},...S}=vA(n,i),x=await rz(i,S),A=EA(d),C=FM(d),R=D2(d)==="y",{width:D,height:L}=g.floating;let B,$;A==="top"||A==="bottom"?(B=A,$=C===(await(b.isRTL==null?void 0:b.isRTL(w.floating))?"start":"end")?"left":"right"):($=A,B=C==="end"?"top":"bottom");const j=L-x.top-x.bottom,P=D-x.left-x.right,G=dN(L-x[B],j),ee=dN(D-x[$],P),ne=!i.middlewareData.shift;let Q=G,ie=ee;if((s=i.middlewareData.shift)!=null&&s.enabled.x&&(ie=P),(u=i.middlewareData.shift)!=null&&u.enabled.y&&(Q=j),ne&&!C){const ge=Mm(x.left,0),ce=Mm(x.right,0),fe=Mm(x.top,0),K=Mm(x.bottom,0);R?ie=D-2*(ge!==0||ce!==0?ge+ce:Mm(x.left,x.right)):Q=L-2*(fe!==0||K!==0?fe+K:Mm(x.top,x.bottom))}await E({...i,availableWidth:ie,availableHeight:Q});const he=await b.getDimensions(w.floating);return D!==he.width||L!==he.height?{reset:{rects:!0}}:{}}}};function bae(){return typeof window<"u"}function $M(n){return yqt(n)?(n.nodeName||"").toLowerCase():"#document"}function Um(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function K2(n){var i;return(i=(yqt(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function yqt(n){return bae()?n instanceof Node||n instanceof Um(n).Node:!1}function jv(n){return bae()?n instanceof Element||n instanceof Um(n).Element:!1}function V2(n){return bae()?n instanceof HTMLElement||n instanceof Um(n).HTMLElement:!1}function Z9t(n){return!bae()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Um(n).ShadowRoot}const S$n=new Set(["inline","contents"]);function Lz(n){const{overflow:i,overflowX:s,overflowY:u,display:d}=Fv(n);return/auto|scroll|overlay|hidden|clip/.test(i+u+s)&&!S$n.has(d)}const T$n=new Set(["table","td","th"]);function A$n(n){return T$n.has($M(n))}const _$n=[":popover-open",":modal"];function mae(n){return _$n.some(i=>{try{return n.matches(i)}catch{return!1}})}const x$n=["transform","translate","scale","rotate","perspective"],k$n=["transform","translate","scale","rotate","perspective","filter"],N$n=["paint","layout","strict","content"];function Z5e(n){const i=Q5e(),s=jv(n)?Fv(n):n;return x$n.some(u=>s[u]?s[u]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!i&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!i&&(s.filter?s.filter!=="none":!1)||k$n.some(u=>(s.willChange||"").includes(u))||N$n.some(u=>(s.contain||"").includes(u))}function C$n(n){let i=fN(n);for(;V2(i)&&!xM(i);){if(Z5e(i))return i;if(mae(i))return null;i=fN(i)}return null}function Q5e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const I$n=new Set(["html","body","#document"]);function xM(n){return I$n.has($M(n))}function Fv(n){return Um(n).getComputedStyle(n)}function wae(n){return jv(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fN(n){if($M(n)==="html")return n;const i=n.assignedSlot||n.parentNode||Z9t(n)&&n.host||K2(n);return Z9t(i)?i.host:i}function vqt(n){const i=fN(n);return xM(i)?n.ownerDocument?n.ownerDocument.body:n.body:V2(i)&&Lz(i)?i:vqt(i)}function iz(n,i,s){var u;i===void 0&&(i=[]),s===void 0&&(s=!0);const d=vqt(n),g=d===((u=n.ownerDocument)==null?void 0:u.body),b=Um(d);if(g){const w=kLe(b);return i.concat(b,b.visualViewport||[],Lz(d)?d:[],w&&s?iz(w):[])}return i.concat(d,iz(d,[],s))}function kLe(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Eqt(n){const i=Fv(n);let s=parseFloat(i.width)||0,u=parseFloat(i.height)||0;const d=V2(n),g=d?n.offsetWidth:s,b=d?n.offsetHeight:u,w=Zoe(s)!==g||Zoe(u)!==b;return w&&(s=g,u=b),{width:s,height:u,$:w}}function eMe(n){return jv(n)?n:n.contextElement}function oM(n){const i=eMe(n);if(!V2(i))return $2(1);const s=i.getBoundingClientRect(),{width:u,height:d,$:g}=Eqt(i);let b=(g?Zoe(s.width):s.width)/u,w=(g?Zoe(s.height):s.height)/d;return(!b||!Number.isFinite(b))&&(b=1),(!w||!Number.isFinite(w))&&(w=1),{x:b,y:w}}const R$n=$2(0);function Sqt(n){const i=Um(n);return!Q5e()||!i.visualViewport?R$n:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function O$n(n,i,s){return i===void 0&&(i=!1),!s||i&&s!==Um(n)?!1:i}function yR(n,i,s,u){i===void 0&&(i=!1),s===void 0&&(s=!1);const d=n.getBoundingClientRect(),g=eMe(n);let b=$2(1);i&&(u?jv(u)&&(b=oM(u)):b=oM(n));const w=O$n(g,s,u)?Sqt(g):$2(0);let E=(d.left+w.x)/b.x,S=(d.top+w.y)/b.y,x=d.width/b.x,A=d.height/b.y;if(g){const C=Um(g),R=u&&jv(u)?Um(u):u;let D=C,L=kLe(D);for(;L&&u&&R!==D;){const B=oM(L),$=L.getBoundingClientRect(),j=Fv(L),P=$.left+(L.clientLeft+parseFloat(j.paddingLeft))*B.x,G=$.top+(L.clientTop+parseFloat(j.paddingTop))*B.y;E*=B.x,S*=B.y,x*=B.x,A*=B.y,E+=P,S+=G,D=Um(L),L=kLe(D)}}return ese({width:x,height:A,x:E,y:S})}function yae(n,i){const s=wae(n).scrollLeft;return i?i.left+s:yR(K2(n)).left+s}function Tqt(n,i){const s=n.getBoundingClientRect(),u=s.left+i.scrollLeft-yae(n,s),d=s.top+i.scrollTop;return{x:u,y:d}}function L$n(n){let{elements:i,rect:s,offsetParent:u,strategy:d}=n;const g=d==="fixed",b=K2(u),w=i?mae(i.floating):!1;if(u===b||w&&g)return s;let E={scrollLeft:0,scrollTop:0},S=$2(1);const x=$2(0),A=V2(u);if((A||!A&&!g)&&(($M(u)!=="body"||Lz(b))&&(E=wae(u)),V2(u))){const R=yR(u);S=oM(u),x.x=R.x+u.clientLeft,x.y=R.y+u.clientTop}const C=b&&!A&&!g?Tqt(b,E):$2(0);return{width:s.width*S.x,height:s.height*S.y,x:s.x*S.x-E.scrollLeft*S.x+x.x+C.x,y:s.y*S.y-E.scrollTop*S.y+x.y+C.y}}function D$n(n){return Array.from(n.getClientRects())}function M$n(n){const i=K2(n),s=wae(n),u=n.ownerDocument.body,d=Mm(i.scrollWidth,i.clientWidth,u.scrollWidth,u.clientWidth),g=Mm(i.scrollHeight,i.clientHeight,u.scrollHeight,u.clientHeight);let b=-s.scrollLeft+yae(n);const w=-s.scrollTop;return Fv(u).direction==="rtl"&&(b+=Mm(i.clientWidth,u.clientWidth)-d),{width:d,height:g,x:b,y:w}}const Q9t=25;function P$n(n,i){const s=Um(n),u=K2(n),d=s.visualViewport;let g=u.clientWidth,b=u.clientHeight,w=0,E=0;if(d){g=d.width,b=d.height;const x=Q5e();(!x||x&&i==="fixed")&&(w=d.offsetLeft,E=d.offsetTop)}const S=yae(u);if(S<=0){const x=u.ownerDocument,A=x.body,C=getComputedStyle(A),R=x.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(u.clientWidth-A.clientWidth-R);D<=Q9t&&(g-=D)}else S<=Q9t&&(g+=S);return{width:g,height:b,x:w,y:E}}const j$n=new Set(["absolute","fixed"]);function F$n(n,i){const s=yR(n,!0,i==="fixed"),u=s.top+n.clientTop,d=s.left+n.clientLeft,g=V2(n)?oM(n):$2(1),b=n.clientWidth*g.x,w=n.clientHeight*g.y,E=d*g.x,S=u*g.y;return{width:b,height:w,x:E,y:S}}function e8t(n,i,s){let u;if(i==="viewport")u=P$n(n,s);else if(i==="document")u=M$n(K2(n));else if(jv(i))u=F$n(i,s);else{const d=Sqt(n);u={x:i.x-d.x,y:i.y-d.y,width:i.width,height:i.height}}return ese(u)}function Aqt(n,i){const s=fN(n);return s===i||!jv(s)||xM(s)?!1:Fv(s).position==="fixed"||Aqt(s,i)}function $$n(n,i){const s=i.get(n);if(s)return s;let u=iz(n,[],!1).filter(w=>jv(w)&&$M(w)!=="body"),d=null;const g=Fv(n).position==="fixed";let b=g?fN(n):n;for(;jv(b)&&!xM(b);){const w=Fv(b),E=Z5e(b);!E&&w.position==="fixed"&&(d=null),(g?!E&&!d:!E&&w.position==="static"&&!!d&&j$n.has(d.position)||Lz(b)&&!E&&Aqt(n,b))?u=u.filter(x=>x!==b):d=w,b=fN(b)}return i.set(n,u),u}function B$n(n){let{element:i,boundary:s,rootBoundary:u,strategy:d}=n;const b=[...s==="clippingAncestors"?mae(i)?[]:$$n(i,this._c):[].concat(s),u],w=b[0],E=b.reduce((S,x)=>{const A=e8t(i,x,d);return S.top=Mm(A.top,S.top),S.right=dN(A.right,S.right),S.bottom=dN(A.bottom,S.bottom),S.left=Mm(A.left,S.left),S},e8t(i,w,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}function U$n(n){const{width:i,height:s}=Eqt(n);return{width:i,height:s}}function H$n(n,i,s){const u=V2(i),d=K2(i),g=s==="fixed",b=yR(n,!0,g,i);let w={scrollLeft:0,scrollTop:0};const E=$2(0);function S(){E.x=yae(d)}if(u||!u&&!g)if(($M(i)!=="body"||Lz(d))&&(w=wae(i)),u){const R=yR(i,!0,g,i);E.x=R.x+i.clientLeft,E.y=R.y+i.clientTop}else d&&S();g&&!u&&d&&S();const x=d&&!u&&!g?Tqt(d,w):$2(0),A=b.left+w.scrollLeft-E.x-x.x,C=b.top+w.scrollTop-E.y-x.y;return{x:A,y:C,width:b.width,height:b.height}}function iIe(n){return Fv(n).position==="static"}function t8t(n,i){if(!V2(n)||Fv(n).position==="fixed")return null;if(i)return i(n);let s=n.offsetParent;return K2(n)===s&&(s=s.ownerDocument.body),s}function _qt(n,i){const s=Um(n);if(mae(n))return s;if(!V2(n)){let d=fN(n);for(;d&&!xM(d);){if(jv(d)&&!iIe(d))return d;d=fN(d)}return s}let u=t8t(n,i);for(;u&&A$n(u)&&iIe(u);)u=t8t(u,i);return u&&xM(u)&&iIe(u)&&!Z5e(u)?s:u||C$n(n)||s}const z$n=async function(n){const i=this.getOffsetParent||_qt,s=this.getDimensions,u=await s(n.floating);return{reference:H$n(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function G$n(n){return Fv(n).direction==="rtl"}const q$n={convertOffsetParentRelativeRectToViewportRelativeRect:L$n,getDocumentElement:K2,getClippingRect:B$n,getOffsetParent:_qt,getElementRects:z$n,getClientRects:D$n,getDimensions:U$n,getScale:oM,isElement:jv,isRTL:G$n};function xqt(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function V$n(n,i){let s=null,u;const d=K2(n);function g(){var w;clearTimeout(u),(w=s)==null||w.disconnect(),s=null}function b(w,E){w===void 0&&(w=!1),E===void 0&&(E=1),g();const S=n.getBoundingClientRect(),{left:x,top:A,width:C,height:R}=S;if(w||i(),!C||!R)return;const D=kie(A),L=kie(d.clientWidth-(x+C)),B=kie(d.clientHeight-(A+R)),$=kie(x),P={rootMargin:-D+"px "+-L+"px "+-B+"px "+-$+"px",threshold:Mm(0,dN(1,E))||1};let G=!0;function ee(ne){const Q=ne[0].intersectionRatio;if(Q!==E){if(!G)return b();Q?b(!1,Q):u=setTimeout(()=>{b(!1,1e-7)},1e3)}Q===1&&!xqt(S,n.getBoundingClientRect())&&b(),G=!1}try{s=new IntersectionObserver(ee,{...P,root:d.ownerDocument})}catch{s=new IntersectionObserver(ee,P)}s.observe(n)}return b(!0),g}function W$n(n,i,s,u){u===void 0&&(u={});const{ancestorScroll:d=!0,ancestorResize:g=!0,elementResize:b=typeof ResizeObserver=="function",layoutShift:w=typeof IntersectionObserver=="function",animationFrame:E=!1}=u,S=eMe(n),x=d||g?[...S?iz(S):[],...iz(i)]:[];x.forEach($=>{d&&$.addEventListener("scroll",s,{passive:!0}),g&&$.addEventListener("resize",s)});const A=S&&w?V$n(S,s):null;let C=-1,R=null;b&&(R=new ResizeObserver($=>{let[j]=$;j&&j.target===S&&R&&(R.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var P;(P=R)==null||P.observe(i)})),s()}),S&&!E&&R.observe(S),R.observe(i));let D,L=E?yR(n):null;E&&B();function B(){const $=yR(n);L&&!xqt(L,$)&&s(),L=$,D=requestAnimationFrame(B)}return s(),()=>{var $;x.forEach(j=>{d&&j.removeEventListener("scroll",s),g&&j.removeEventListener("resize",s)}),A==null||A(),($=R)==null||$.disconnect(),R=null,E&&cancelAnimationFrame(D)}}const K$n=w$n,Y$n=y$n,J$n=g$n,X$n=E$n,Z$n=b$n,n8t=p$n,Q$n=v$n,eBn=(n,i,s)=>{const u=new Map,d={platform:q$n,...s},g={...d.platform,_c:u};return h$n(n,i,{...d,platform:g})};var tBn=typeof document<"u",nBn=function(){},ooe=tBn?H.useLayoutEffect:nBn;function tse(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 s,u,d;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==i.length)return!1;for(u=s;u--!==0;)if(!tse(n[u],i[u]))return!1;return!0}if(d=Object.keys(n),s=d.length,s!==Object.keys(i).length)return!1;for(u=s;u--!==0;)if(!{}.hasOwnProperty.call(i,d[u]))return!1;for(u=s;u--!==0;){const g=d[u];if(!(g==="_owner"&&n.$$typeof)&&!tse(n[g],i[g]))return!1}return!0}return n!==n&&i!==i}function kqt(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function r8t(n,i){const s=kqt(n);return Math.round(i*s)/s}function oIe(n){const i=H.useRef(n);return ooe(()=>{i.current=n}),i}function rBn(n){n===void 0&&(n={});const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:d,elements:{reference:g,floating:b}={},transform:w=!0,whileElementsMounted:E,open:S}=n,[x,A]=H.useState({x:0,y:0,strategy:s,placement:i,middlewareData:{},isPositioned:!1}),[C,R]=H.useState(u);tse(C,u)||R(u);const[D,L]=H.useState(null),[B,$]=H.useState(null),j=H.useCallback(Ae=>{Ae!==ne.current&&(ne.current=Ae,L(Ae))},[]),P=H.useCallback(Ae=>{Ae!==Q.current&&(Q.current=Ae,$(Ae))},[]),G=g||D,ee=b||B,ne=H.useRef(null),Q=H.useRef(null),ie=H.useRef(x),he=E!=null,ge=oIe(E),ce=oIe(d),fe=oIe(S),K=H.useCallback(()=>{if(!ne.current||!Q.current)return;const Ae={placement:i,strategy:s,middleware:C};ce.current&&(Ae.platform=ce.current),eBn(ne.current,Q.current,Ae).then(xe=>{const We={...xe,isPositioned:fe.current!==!1};pe.current&&!tse(ie.current,We)&&(ie.current=We,xR.flushSync(()=>{A(We)}))})},[C,i,s,ce,fe]);ooe(()=>{S===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,A(Ae=>({...Ae,isPositioned:!1})))},[S]);const pe=H.useRef(!1);ooe(()=>(pe.current=!0,()=>{pe.current=!1}),[]),ooe(()=>{if(G&&(ne.current=G),ee&&(Q.current=ee),G&&ee){if(ge.current)return ge.current(G,ee,K);K()}},[G,ee,K,ge,he]);const Oe=H.useMemo(()=>({reference:ne,floating:Q,setReference:j,setFloating:P}),[j,P]),Se=H.useMemo(()=>({reference:G,floating:ee}),[G,ee]),De=H.useMemo(()=>{const Ae={position:s,left:0,top:0};if(!Se.floating)return Ae;const xe=r8t(Se.floating,x.x),We=r8t(Se.floating,x.y);return w?{...Ae,transform:"translate("+xe+"px, "+We+"px)",...kqt(Se.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:xe,top:We}},[s,w,Se.floating,x.x,x.y]);return H.useMemo(()=>({...x,update:K,refs:Oe,elements:Se,floatingStyles:De}),[x,K,Oe,Se,De])}const iBn=n=>{function i(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:u,padding:d}=typeof n=="function"?n(s):n;return u&&i(u)?u.current!=null?n8t({element:u.current,padding:d}).fn(s):{}:u?n8t({element:u,padding:d}).fn(s):{}}}},oBn=(n,i)=>({...K$n(n),options:[n,i]}),sBn=(n,i)=>({...Y$n(n),options:[n,i]}),aBn=(n,i)=>({...Q$n(n),options:[n,i]}),uBn=(n,i)=>({...J$n(n),options:[n,i]}),cBn=(n,i)=>({...X$n(n),options:[n,i]}),lBn=(n,i)=>({...Z$n(n),options:[n,i]}),dBn=(n,i)=>({...iBn(n),options:[n,i]});var fBn="Arrow",Nqt=H.forwardRef((n,i)=>{const{children:s,width:u=10,height:d=5,...g}=n;return I.jsx(no.svg,{...g,ref:i,width:u,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:I.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nqt.displayName=fBn;var hBn=Nqt;function vae(n){const[i,s]=H.useState(void 0);return Hp(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const u=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;s({width:b,height:w})});return u.observe(n,{box:"border-box"}),()=>u.unobserve(n)}else s(void 0)},[n]),i}var tMe="Popper",[Cqt,BM]=xw(tMe),[pBn,Iqt]=Cqt(tMe),Rqt=n=>{const{__scopePopper:i,children:s}=n,[u,d]=H.useState(null);return I.jsx(pBn,{scope:i,anchor:u,onAnchorChange:d,children:s})};Rqt.displayName=tMe;var Oqt="PopperAnchor",Lqt=H.forwardRef((n,i)=>{const{__scopePopper:s,virtualRef:u,...d}=n,g=Iqt(Oqt,s),b=H.useRef(null),w=hs(i,b),E=H.useRef(null);return H.useEffect(()=>{const S=E.current;E.current=(u==null?void 0:u.current)||b.current,S!==E.current&&g.onAnchorChange(E.current)}),u?null:I.jsx(no.div,{...d,ref:w})});Lqt.displayName=Oqt;var nMe="PopperContent",[gBn,bBn]=Cqt(nMe),Dqt=H.forwardRef((n,i)=>{var vt,Ct,Ft,On,Zn,Yn;const{__scopePopper:s,side:u="bottom",sideOffset:d=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:x=0,sticky:A="partial",hideWhenDetached:C=!1,updatePositionStrategy:R="optimized",onPlaced:D,...L}=n,B=Iqt(nMe,s),[$,j]=H.useState(null),P=hs(i,vr=>j(vr)),[G,ee]=H.useState(null),ne=vae(G),Q=(ne==null?void 0:ne.width)??0,ie=(ne==null?void 0:ne.height)??0,he=u+(g!=="center"?"-"+g:""),ge=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ce=Array.isArray(S)?S:[S],fe=ce.length>0,K={padding:ge,boundary:ce.filter(wBn),altBoundary:fe},{refs:pe,floatingStyles:Oe,placement:Se,isPositioned:De,middlewareData:Ae}=rBn({strategy:"fixed",placement:he,whileElementsMounted:(...vr)=>W$n(...vr,{animationFrame:R==="always"}),elements:{reference:B.anchor},middleware:[oBn({mainAxis:d+ie,alignmentAxis:b}),E&&sBn({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?aBn():void 0,...K}),E&&uBn({...K}),cBn({...K,apply:({elements:vr,rects:Ui,availableWidth:Qr,availableHeight:Hi})=>{const{width:ai,height:jc}=Ui.reference,Xs=vr.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`)}}),G&&dBn({element:G,padding:w}),yBn({arrowWidth:Q,arrowHeight:ie}),C&&lBn({strategy:"referenceHidden",...K})]}),[xe,We]=jqt(Se),dt=q2(D);Hp(()=>{De&&(dt==null||dt())},[De,dt]);const Ue=(vt=Ae.arrow)==null?void 0:vt.x,bt=(Ct=Ae.arrow)==null?void 0:Ct.y,kt=((Ft=Ae.arrow)==null?void 0:Ft.centerOffset)!==0,[ht,Xt]=H.useState();return Hp(()=>{$&&Xt(window.getComputedStyle($).zIndex)},[$]),I.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Oe,transform:De?Oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ht,"--radix-popper-transform-origin":[(On=Ae.transformOrigin)==null?void 0:On.x,(Zn=Ae.transformOrigin)==null?void 0:Zn.y].join(" "),...((Yn=Ae.hide)==null?void 0:Yn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:I.jsx(gBn,{scope:s,placedSide:xe,onArrowChange:ee,arrowX:Ue,arrowY:bt,shouldHideArrow:kt,children:I.jsx(no.div,{"data-side":xe,"data-align":We,...L,ref:P,style:{...L.style,animation:De?void 0:"none"}})})})});Dqt.displayName=nMe;var Mqt="PopperArrow",mBn={top:"bottom",right:"left",bottom:"top",left:"right"},Pqt=H.forwardRef(function(i,s){const{__scopePopper:u,...d}=i,g=bBn(Mqt,u),b=mBn[g.placedSide];return I.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:I.jsx(hBn,{...d,ref:s,style:{...d.style,display:"block"}})})});Pqt.displayName=Mqt;function wBn(n){return n!==null}var yBn=n=>({name:"transformOrigin",options:n,fn(i){var B,$,j;const{placement:s,rects:u,middlewareData:d}=i,b=((B=d.arrow)==null?void 0:B.centerOffset)!==0,w=b?0:n.arrowWidth,E=b?0:n.arrowHeight,[S,x]=jqt(s),A={start:"0%",center:"50%",end:"100%"}[x],C=((($=d.arrow)==null?void 0:$.x)??0)+w/2,R=(((j=d.arrow)==null?void 0:j.y)??0)+E/2;let D="",L="";return S==="bottom"?(D=b?A:`${C}px`,L=`${-E}px`):S==="top"?(D=b?A:`${C}px`,L=`${u.floating.height+E}px`):S==="right"?(D=`${-E}px`,L=b?A:`${R}px`):S==="left"&&(D=`${u.floating.width+E}px`,L=b?A:`${R}px`),{data:{x:D,y:L}}}});function jqt(n){const[i,s="center"]=n.split("-");return[i,s]}var rMe=Rqt,Eae=Lqt,iMe=Dqt,oMe=Pqt;function vBn(n){const i=EBn(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(TBn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function EBn(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=_Bn(d),w=ABn(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var SBn=Symbol("radix.slottable");function TBn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===SBn}function ABn(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function _Bn(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Sae="Popover",[Fqt]=xw(Sae,[BM]),Dz=BM(),[xBn,EN]=Fqt(Sae),$qt=n=>{const{__scopePopover:i,children:s,open:u,defaultOpen:d,onOpenChange:g,modal:b=!1}=n,w=Dz(i),E=H.useRef(null),[S,x]=H.useState(!1),[A,C]=G2({prop:u,defaultProp:d??!1,onChange:g,caller:Sae});return I.jsx(rMe,{...w,children:I.jsx(xBn,{scope:i,contentId:Bh(),triggerRef:E,open:A,onOpenChange:C,onOpenToggle:H.useCallback(()=>C(R=>!R),[C]),hasCustomAnchor:S,onCustomAnchorAdd:H.useCallback(()=>x(!0),[]),onCustomAnchorRemove:H.useCallback(()=>x(!1),[]),modal:b,children:s})})};$qt.displayName=Sae;var Bqt="PopoverAnchor",Uqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...u}=n,d=EN(Bqt,s),g=Dz(s),{onCustomAnchorAdd:b,onCustomAnchorRemove:w}=d;return H.useEffect(()=>(b(),()=>w()),[b,w]),I.jsx(Eae,{...g,...u,ref:i})});Uqt.displayName=Bqt;var Hqt="PopoverTrigger",zqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...u}=n,d=EN(Hqt,s),g=Dz(s),b=hs(i,d.triggerRef),w=I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":Kqt(d.open),...u,ref:b,onClick:Lr(n.onClick,d.onOpenToggle)});return d.hasCustomAnchor?w:I.jsx(Eae,{asChild:!0,...g,children:w})});zqt.displayName=Hqt;var sMe="PopoverPortal",[kBn,NBn]=Fqt(sMe,{forceMount:void 0}),Gqt=n=>{const{__scopePopover:i,forceMount:s,children:u,container:d}=n,g=EN(sMe,i);return I.jsx(kBn,{scope:i,forceMount:s,children:I.jsx(kw,{present:s||g.open,children:I.jsx(Iz,{asChild:!0,container:d,children:u})})})};Gqt.displayName=sMe;var kM="PopoverContent",qqt=H.forwardRef((n,i)=>{const s=NBn(kM,n.__scopePopover),{forceMount:u=s.forceMount,...d}=n,g=EN(kM,n.__scopePopover);return I.jsx(kw,{present:u||g.open,children:g.modal?I.jsx(IBn,{...d,ref:i}):I.jsx(RBn,{...d,ref:i})})});qqt.displayName=kM;var CBn=vBn("PopoverContent.RemoveScroll"),IBn=H.forwardRef((n,i)=>{const s=EN(kM,n.__scopePopover),u=H.useRef(null),d=hs(i,u),g=H.useRef(!1);return H.useEffect(()=>{const b=u.current;if(b)return uae(b)},[]),I.jsx(Rz,{as:CBn,allowPinchZoom:!0,children:I.jsx(Vqt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lr(n.onCloseAutoFocus,b=>{var w;b.preventDefault(),g.current||(w=s.triggerRef.current)==null||w.focus()}),onPointerDownOutside:Lr(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:Lr(n.onFocusOutside,b=>b.preventDefault(),{checkForDefaultPrevented:!1})})})}),RBn=H.forwardRef((n,i)=>{const s=EN(kM,n.__scopePopover),u=H.useRef(!1),d=H.useRef(!1);return I.jsx(Vqt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(u.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),u.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(u.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=s.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),Vqt=H.forwardRef((n,i)=>{const{__scopePopover:s,trapFocus:u,onOpenAutoFocus:d,onCloseAutoFocus:g,disableOutsidePointerEvents:b,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onInteractOutside:x,...A}=n,C=EN(kM,s),R=Dz(s);return sae(),I.jsx(Cz,{asChild:!0,loop:!0,trapped:u,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(Nz,{asChild:!0,disableOutsidePointerEvents:b,onInteractOutside:x,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onDismiss:()=>C.onOpenChange(!1),children:I.jsx(iMe,{"data-state":Kqt(C.open),role:"dialog",id:C.contentId,...R,...A,ref:i,style:{...A.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)"}})})})}),Wqt="PopoverClose",OBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...u}=n,d=EN(Wqt,s);return I.jsx(no.button,{type:"button",...u,ref:i,onClick:Lr(n.onClick,()=>d.onOpenChange(!1))})});OBn.displayName=Wqt;var LBn="PopoverArrow",DBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...u}=n,d=Dz(s);return I.jsx(oMe,{...d,...u,ref:i})});DBn.displayName=LBn;function Kqt(n){return n?"open":"closed"}var MBn=$qt,PBn=Uqt,jBn=zqt,FBn=Gqt,Yqt=qqt;const aMe=MBn,Jqt=jBn,$Bn=PBn,Tae=H.forwardRef(({className:n,align:i="center",sideOffset:s=4,container:u,...d},g)=>I.jsx(FBn,{container:u,children:I.jsx(Yqt,{ref:g,align:i,sideOffset:s,className:Sr("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})}));Tae.displayName=Yqt.displayName;function SA(n){return Array.isArray?Array.isArray(n):Qqt(n)==="[object Array]"}function BBn(n){if(typeof n=="string")return n;let i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function UBn(n){return n==null?"":BBn(n)}function M2(n){return typeof n=="string"}function Xqt(n){return typeof n=="number"}function HBn(n){return n===!0||n===!1||zBn(n)&&Qqt(n)=="[object Boolean]"}function Zqt(n){return typeof n=="object"}function zBn(n){return Zqt(n)&&n!==null}function Pm(n){return n!=null}function sIe(n){return!n.trim().length}function Qqt(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const GBn="Incorrect 'index' type",qBn=n=>`Invalid value for key ${n}`,VBn=n=>`Pattern length exceeds max of ${n}.`,WBn=n=>`Missing ${n} property in key`,KBn=n=>`Property 'weight' in key '${n}' must be a positive integer`,i8t=Object.prototype.hasOwnProperty;class YBn{constructor(i){this._keys=[],this._keyMap={};let s=0;i.forEach(u=>{let d=eVt(u);this._keys.push(d),this._keyMap[d.id]=d,s+=d.weight}),this._keys.forEach(u=>{u.weight/=s})}get(i){return this._keyMap[i]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function eVt(n){let i=null,s=null,u=null,d=1,g=null;if(M2(n)||SA(n))u=n,i=o8t(n),s=NLe(n);else{if(!i8t.call(n,"name"))throw new Error(WBn("name"));const b=n.name;if(u=b,i8t.call(n,"weight")&&(d=n.weight,d<=0))throw new Error(KBn(b));i=o8t(b),s=NLe(b),g=n.getFn}return{path:i,id:s,weight:d,src:u,getFn:g}}function o8t(n){return SA(n)?n:n.split(".")}function NLe(n){return SA(n)?n.join("."):n}function JBn(n,i){let s=[],u=!1;const d=(g,b,w)=>{if(Pm(g))if(!b[w])s.push(g);else{let E=b[w];const S=g[E];if(!Pm(S))return;if(w===b.length-1&&(M2(S)||Xqt(S)||HBn(S)))s.push(UBn(S));else if(SA(S)){u=!0;for(let x=0,A=S.length;xn.score===i.score?n.idx{this._keysMap[s.id]=u})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,M2(this.docs[0])?this.docs.forEach((i,s)=>{this._addString(i,s)}):this.docs.forEach((i,s)=>{this._addObject(i,s)}),this.norm.clear())}add(i){const s=this.size();M2(i)?this._addString(i,s):this._addObject(i,s)}removeAt(i){this.records.splice(i,1);for(let s=i,u=this.size();s{let b=d.getFn?d.getFn(i):this.getFn(i,d.path);if(Pm(b)){if(SA(b)){let w=[];const E=[{nestedArrIndex:-1,value:b}];for(;E.length;){const{nestedArrIndex:S,value:x}=E.pop();if(Pm(x))if(M2(x)&&!sIe(x)){let A={v:x,i:S,n:this.norm.get(x)};w.push(A)}else SA(x)&&x.forEach((A,C)=>{E.push({nestedArrIndex:C,value:A})})}u.$[g]=w}else if(M2(b)&&!sIe(b)){let w={v:b,n:this.norm.get(b)};u.$[g]=w}}}),this.records.push(u)}toJSON(){return{keys:this.keys,records:this.records}}}function tVt(n,i,{getFn:s=uo.getFn,fieldNormWeight:u=uo.fieldNormWeight}={}){const d=new uMe({getFn:s,fieldNormWeight:u});return d.setKeys(n.map(eVt)),d.setSources(i),d.create(),d}function rUn(n,{getFn:i=uo.getFn,fieldNormWeight:s=uo.fieldNormWeight}={}){const{keys:u,records:d}=n,g=new uMe({getFn:i,fieldNormWeight:s});return g.setKeys(u),g.setIndexRecords(d),g}function Nie(n,{errors:i=0,currentLocation:s=0,expectedLocation:u=0,distance:d=uo.distance,ignoreLocation:g=uo.ignoreLocation}={}){const b=i/n.length;if(g)return b;const w=Math.abs(u-s);return d?b+w/d:w?1:b}function iUn(n=[],i=uo.minMatchCharLength){let s=[],u=-1,d=-1,g=0;for(let b=n.length;g=i&&s.push([u,d]),u=-1)}return n[g-1]&&g-u>=i&&s.push([u,g-1]),s}const K4=32;function oUn(n,i,s,{location:u=uo.location,distance:d=uo.distance,threshold:g=uo.threshold,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,includeMatches:E=uo.includeMatches,ignoreLocation:S=uo.ignoreLocation}={}){if(i.length>K4)throw new Error(VBn(K4));const x=i.length,A=n.length,C=Math.max(0,Math.min(u,A));let R=g,D=C;const L=w>1||E,B=L?Array(A):[];let $;for(;($=n.indexOf(i,D))>-1;){let Q=Nie(i,{currentLocation:$,expectedLocation:C,distance:d,ignoreLocation:S});if(R=Math.min(Q,R),D=$+x,L){let ie=0;for(;ie=ge;pe-=1){let Oe=pe-1,Se=s[n.charAt(Oe)];if(L&&(B[Oe]=+!!Se),fe[pe]=(fe[pe+1]<<1|1)&Se,Q&&(fe[pe]|=(j[pe+1]|j[pe])<<1|1|j[pe+1]),fe[pe]&ee&&(P=Nie(i,{errors:Q,currentLocation:Oe,expectedLocation:C,distance:d,ignoreLocation:S}),P<=R)){if(R=P,D=Oe,D<=C)break;ge=Math.max(1,2*C-D)}}if(Nie(i,{errors:Q+1,currentLocation:C,expectedLocation:C,distance:d,ignoreLocation:S})>R)break;j=fe}const ne={isMatch:D>=0,score:Math.max(.001,P)};if(L){const Q=iUn(B,w);Q.length?E&&(ne.indices=Q):ne.isMatch=!1}return ne}function sUn(n){let i={};for(let s=0,u=n.length;sn.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 nVt{constructor(i,{location:s=uo.location,threshold:u=uo.threshold,distance:d=uo.distance,includeMatches:g=uo.includeMatches,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,isCaseSensitive:E=uo.isCaseSensitive,ignoreDiacritics:S=uo.ignoreDiacritics,ignoreLocation:x=uo.ignoreLocation}={}){if(this.options={location:s,threshold:u,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:x},i=E?i:i.toLowerCase(),i=S?nse(i):i,this.pattern=i,this.chunks=[],!this.pattern.length)return;const A=(R,D)=>{this.chunks.push({pattern:R,alphabet:sUn(R),startIndex:D})},C=this.pattern.length;if(C>K4){let R=0;const D=C%K4,L=C-D;for(;R{const{isMatch:j,score:P,indices:G}=oUn(i,L,B,{location:g+$,distance:b,threshold:w,findAllMatches:E,minMatchCharLength:S,includeMatches:d,ignoreLocation:x});j&&(R=!0),C+=P,j&&G&&(A=[...A,...G])});let D={isMatch:R,score:R?C/this.chunks.length:1};return R&&d&&(D.indices=A),D}}class SN{constructor(i){this.pattern=i}static isMultiMatch(i){return s8t(i,this.multiRegex)}static isSingleMatch(i){return s8t(i,this.singleRegex)}search(){}}function s8t(n,i){const s=n.match(i);return s?s[1]:null}class aUn extends SN{constructor(i){super(i)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(i){const s=i===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class uUn extends SN{constructor(i){super(i)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(i){const u=i.indexOf(this.pattern)===-1;return{isMatch:u,score:u?0:1,indices:[0,i.length-1]}}}class cUn extends SN{constructor(i){super(i)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(i){const s=i.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lUn extends SN{constructor(i){super(i)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(i){const s=!i.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,i.length-1]}}}class dUn extends SN{constructor(i){super(i)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(i){const s=i.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[i.length-this.pattern.length,i.length-1]}}}class fUn extends SN{constructor(i){super(i)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(i){const s=!i.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,i.length-1]}}}class rVt extends SN{constructor(i,{location:s=uo.location,threshold:u=uo.threshold,distance:d=uo.distance,includeMatches:g=uo.includeMatches,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,isCaseSensitive:E=uo.isCaseSensitive,ignoreDiacritics:S=uo.ignoreDiacritics,ignoreLocation:x=uo.ignoreLocation}={}){super(i),this._bitapSearch=new nVt(i,{location:s,threshold:u,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:x})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(i){return this._bitapSearch.searchIn(i)}}class iVt extends SN{constructor(i){super(i)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(i){let s=0,u;const d=[],g=this.pattern.length;for(;(u=i.indexOf(this.pattern,s))>-1;)s=u+g,d.push([u,s-1]);const b=!!d.length;return{isMatch:b,score:b?0:1,indices:d}}}const CLe=[aUn,iVt,cUn,lUn,fUn,dUn,uUn,rVt],a8t=CLe.length,hUn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pUn="|";function gUn(n,i={}){return n.split(pUn).map(s=>{let u=s.trim().split(hUn).filter(g=>g&&!!g.trim()),d=[];for(let g=0,b=u.length;g!!(n[rse.AND]||n[rse.OR]),yUn=n=>!!n[OLe.PATH],vUn=n=>!SA(n)&&Zqt(n)&&!LLe(n),u8t=n=>({[rse.AND]:Object.keys(n).map(i=>({[i]:n[i]}))});function oVt(n,i,{auto:s=!0}={}){const u=d=>{let g=Object.keys(d);const b=yUn(d);if(!b&&g.length>1&&!LLe(d))return u(u8t(d));if(vUn(d)){const E=b?d[OLe.PATH]:g[0],S=b?d[OLe.PATTERN]:d[E];if(!M2(S))throw new Error(qBn(E));const x={keyId:NLe(E),pattern:S};return s&&(x.searcher=RLe(S,i)),x}let w={children:[],operator:g[0]};return g.forEach(E=>{const S=d[E];SA(S)&&S.forEach(x=>{w.children.push(u(x))})}),w};return LLe(n)||(n=u8t(n)),u(n)}function EUn(n,{ignoreFieldNorm:i=uo.ignoreFieldNorm}){n.forEach(s=>{let u=1;s.matches.forEach(({key:d,norm:g,score:b})=>{const w=d?d.weight:null;u*=Math.pow(b===0&&w?Number.EPSILON:b,(w||1)*(i?1:g))}),s.score=u})}function SUn(n,i){const s=n.matches;i.matches=[],Pm(s)&&s.forEach(u=>{if(!Pm(u.indices)||!u.indices.length)return;const{indices:d,value:g}=u;let b={indices:d,value:g};u.key&&(b.key=u.key.src),u.idx>-1&&(b.refIndex=u.idx),i.matches.push(b)})}function TUn(n,i){i.score=n.score}function AUn(n,i,{includeMatches:s=uo.includeMatches,includeScore:u=uo.includeScore}={}){const d=[];return s&&d.push(SUn),u&&d.push(TUn),n.map(g=>{const{idx:b}=g,w={item:i[b],refIndex:b};return d.length&&d.forEach(E=>{E(g,w)}),w})}class NR{constructor(i,s={},u){this.options={...uo,...s},this.options.useExtendedSearch,this._keyStore=new YBn(this.options.keys),this.setCollection(i,u)}setCollection(i,s){if(this._docs=i,s&&!(s instanceof uMe))throw new Error(GBn);this._myIndex=s||tVt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(i){Pm(i)&&(this._docs.push(i),this._myIndex.add(i))}remove(i=()=>!1){const s=[];for(let u=0,d=this._docs.length;u-1&&(E=E.slice(0,s)),AUn(E,this._docs,{includeMatches:u,includeScore:d})}_searchStringList(i){const s=RLe(i,this.options),{records:u}=this._myIndex,d=[];return u.forEach(({v:g,i:b,n:w})=>{if(!Pm(g))return;const{isMatch:E,score:S,indices:x}=s.searchIn(g);E&&d.push({item:g,idx:b,matches:[{score:S,value:g,norm:w,indices:x}]})}),d}_searchLogical(i){const s=oVt(i,this.options),u=(w,E,S)=>{if(!w.children){const{keyId:A,searcher:C}=w,R=this._findMatches({key:this._keyStore.get(A),value:this._myIndex.getValueForItemAtKeyId(E,A),searcher:C});return R&&R.length?[{idx:S,item:E,matches:R}]:[]}const x=[];for(let A=0,C=w.children.length;A{if(Pm(w)){let S=u(s,w,E);S.length&&(g[E]||(g[E]={idx:E,item:w,matches:[]},b.push(g[E])),S.forEach(({matches:x})=>{g[E].matches.push(...x)}))}}),b}_searchObjectList(i){const s=RLe(i,this.options),{keys:u,records:d}=this._myIndex,g=[];return d.forEach(({$:b,i:w})=>{if(!Pm(b))return;let E=[];u.forEach((S,x)=>{E.push(...this._findMatches({key:S,value:b[x],searcher:s}))}),E.length&&g.push({idx:w,item:b,matches:E})}),g}_findMatches({key:i,value:s,searcher:u}){if(!Pm(s))return[];let d=[];if(SA(s))s.forEach(({v:g,i:b,n:w})=>{if(!Pm(g))return;const{isMatch:E,score:S,indices:x}=u.searchIn(g);E&&d.push({score:S,key:i,value:g,idx:b,norm:w,indices:x})});else{const{v:g,n:b}=s,{isMatch:w,score:E,indices:S}=u.searchIn(g);w&&d.push({score:E,key:i,value:g,norm:b,indices:S})}return d}}NR.version="7.1.0";NR.createIndex=tVt;NR.parseIndex=rUn;NR.config=uo;NR.parseQuery=oVt;wUn(mUn);function sVt(n,i){const[s,u]=H.useState(""),d=H.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 NR(n,b)},[n,i]),g=H.useMemo(()=>s.trim()?d.search(s):n.map((b,w)=>({item:b,refIndex:w,score:0})),[s,d,n]);return{query:s,setQuery:u,filteredItems:g.map(b=>b.item),results:g}}const c8t=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l8t=lqt,Aae=(n,i)=>s=>{var u;if((i==null?void 0:i.variants)==null)return l8t(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:d,defaultVariants:g}=i,b=Object.keys(d).map(S=>{const x=s==null?void 0:s[S],A=g==null?void 0:g[S];if(x===null)return null;const C=c8t(x)||c8t(A);return d[S][C]}),w=s&&Object.entries(s).reduce((S,x)=>{let[A,C]=x;return C===void 0||(S[A]=C),S},{}),E=i==null||(u=i.compoundVariants)===null||u===void 0?void 0:u.reduce((S,x)=>{let{class:A,className:C,...R}=x;return Object.entries(R).every(D=>{let[L,B]=D;return Array.isArray(B)?B.includes({...g,...w}[L]):{...g,...w}[L]===B})?[...S,A,C]:S},[]);return l8t(n,b,E,s==null?void 0:s.class,s==null?void 0:s.className)},_Un=Aae("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"}}),ki=H.forwardRef(({className:n,variant:i,size:s,asChild:u=!1,...d},g)=>{const b=u?Q7n:"button";return I.jsx(b,{className:Sr(_Un({variant:i,size:s,className:n})),ref:g,...d})});ki.displayName="Button";function cn(n,i,s){function u(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,x=Object.keys(S);for(let A=0;A{var E,S;return s!=null&&s.Parent&&w instanceof s.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 sM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class aVt extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const uVt={};function hN(n){return uVt}function cVt(n){const i=Object.values(n).filter(u=>typeof u=="number");return Object.entries(n).filter(([u,d])=>i.indexOf(+u)===-1).map(([u,d])=>d)}function DLe(n,i){return typeof i=="bigint"?i.toString():i}function _ae(n){return{get value(){{const i=n();return Object.defineProperty(this,"value",{value:i}),i}}}}function cMe(n){return n==null}function lMe(n){const i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;return n.slice(i,s)}function xUn(n,i){const s=(n.toString().split(".")[1]||"").length,u=i.toString();let d=(u.split(".")[1]||"").length;if(d===0&&/\d?e-\d?/.test(u)){const E=u.match(/\d?e-(\d?)/);E!=null&&E[1]&&(d=Number.parseInt(E[1]))}const g=s>d?s:d,b=Number.parseInt(n.toFixed(g).replace(".","")),w=Number.parseInt(i.toFixed(g).replace(".",""));return b%w/10**g}const d8t=Symbol("evaluating");function Ys(n,i,s){let u;Object.defineProperty(n,i,{get(){if(u!==d8t)return u===void 0&&(u=d8t,u=s()),u},set(d){Object.defineProperty(n,i,{value:d})},configurable:!0})}function CR(n,i,s){Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}function TN(...n){const i={};for(const s of n){const u=Object.getOwnPropertyDescriptors(s);Object.assign(i,u)}return Object.defineProperties({},i)}function f8t(n){return JSON.stringify(n)}function kUn(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const lVt="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function oz(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const NUn=_ae(()=>{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 NM(n){if(oz(n)===!1)return!1;const i=n.constructor;if(i===void 0||typeof i!="function")return!0;const s=i.prototype;return!(oz(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function dVt(n){return NM(n)?{...n}:Array.isArray(n)?[...n]:n}const CUn=new Set(["string","number","symbol"]);function CM(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function AN(n,i,s){const u=new n._zod.constr(i??n._zod.def);return(!i||s!=null&&s.parent)&&(u._zod.parent=n),u}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 IUn(n){return Object.keys(n).filter(i=>n[i]._zod.optin==="optional"&&n[i]._zod.optout==="optional")}const RUn={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 OUn(n,i){const s=n._zod.def,u=s.checks;if(u&&u.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const g=TN(n._zod.def,{get shape(){const b={};for(const w in i){if(!(w in s.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&(b[w]=s.shape[w])}return CR(this,"shape",b),b},checks:[]});return AN(n,g)}function LUn(n,i){const s=n._zod.def,u=s.checks;if(u&&u.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const g=TN(n._zod.def,{get shape(){const b={...n._zod.def.shape};for(const w in i){if(!(w in s.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&delete b[w]}return CR(this,"shape",b),b},checks:[]});return AN(n,g)}function DUn(n,i){if(!NM(i))throw new Error("Invalid input to extend: expected a plain object");const s=n._zod.def.checks;if(s&&s.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=TN(n._zod.def,{get shape(){const g={...n._zod.def.shape,...i};return CR(this,"shape",g),g}});return AN(n,d)}function MUn(n,i){if(!NM(i))throw new Error("Invalid input to safeExtend: expected a plain object");const s=TN(n._zod.def,{get shape(){const u={...n._zod.def.shape,...i};return CR(this,"shape",u),u}});return AN(n,s)}function PUn(n,i){const s=TN(n._zod.def,{get shape(){const u={...n._zod.def.shape,...i._zod.def.shape};return CR(this,"shape",u),u},get catchall(){return i._zod.def.catchall},checks:[]});return AN(n,s)}function jUn(n,i,s){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=TN(i._zod.def,{get shape(){const w=i._zod.def.shape,E={...w};if(s)for(const S in s){if(!(S in w))throw new Error(`Unrecognized key: "${S}"`);s[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 CR(this,"shape",E),E},checks:[]});return AN(i,b)}function FUn(n,i,s){const u=TN(i._zod.def,{get shape(){const d=i._zod.def.shape,g={...d};if(s)for(const b in s){if(!(b in g))throw new Error(`Unrecognized key: "${b}"`);s[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 CR(this,"shape",g),g}});return AN(i,u)}function G5(n,i=0){var s;if(n.aborted===!0)return!0;for(let u=i;u{var u;return(u=s).path??(u.path=[]),s.path.unshift(n),s})}function Cie(n){return typeof n=="string"?n:n==null?void 0:n.message}function pN(n,i,s){var d,g,b,w,E,S;const u={...n,path:n.path??[]};if(!n.message){const x=Cie((b=(g=(d=n.inst)==null?void 0:d._zod.def)==null?void 0:g.error)==null?void 0:b.call(g,n))??Cie((w=i==null?void 0:i.error)==null?void 0:w.call(i,n))??Cie((E=s.customError)==null?void 0:E.call(s,n))??Cie((S=s.localeError)==null?void 0:S.call(s,n))??"Invalid input";u.message=x}return delete u.inst,delete u.continue,i!=null&&i.reportInput||delete u.input,u}function dMe(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function sz(...n){const[i,s,u]=n;return typeof i=="string"?{message:i,code:"custom",input:s,inst:u}:{...i}}const fVt=(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,DLe,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},hVt=cn("$ZodError",fVt),pVt=cn("$ZodError",fVt,{Parent:Error});function $Un(n,i=s=>s.message){const s={},u=[];for(const d of n.issues)d.path.length>0?(s[d.path[0]]=s[d.path[0]]||[],s[d.path[0]].push(i(d))):u.push(i(d));return{formErrors:u,fieldErrors:s}}function BUn(n,i=s=>s.message){const s={_errors:[]},u=d=>{for(const g of d.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(b=>u({issues:b}));else if(g.code==="invalid_key")u({issues:g.issues});else if(g.code==="invalid_element")u({issues:g.issues});else if(g.path.length===0)s._errors.push(i(g));else{let b=s,w=0;for(;w(i,s,u,d)=>{const g=u?Object.assign(u,{async:!1}):{async:!1},b=i._zod.run({value:s,issues:[]},g);if(b instanceof Promise)throw new sM;if(b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>pN(E,g,hN())));throw lVt(w,d==null?void 0:d.callee),w}return b.value},hMe=n=>async(i,s,u,d)=>{const g=u?Object.assign(u,{async:!0}):{async:!0};let b=i._zod.run({value:s,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=>pN(E,g,hN())));throw lVt(w,d==null?void 0:d.callee),w}return b.value},xae=n=>(i,s,u)=>{const d=u?{...u,async:!1}:{async:!1},g=i._zod.run({value:s,issues:[]},d);if(g instanceof Promise)throw new sM;return g.issues.length?{success:!1,error:new(n??hVt)(g.issues.map(b=>pN(b,d,hN())))}:{success:!0,data:g.value}},UUn=xae(pVt),kae=n=>async(i,s,u)=>{const d=u?Object.assign(u,{async:!0}):{async:!0};let g=i._zod.run({value:s,issues:[]},d);return g instanceof Promise&&(g=await g),g.issues.length?{success:!1,error:new n(g.issues.map(b=>pN(b,d,hN())))}:{success:!0,data:g.value}},HUn=kae(pVt),zUn=n=>(i,s,u)=>{const d=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return fMe(n)(i,s,d)},GUn=n=>(i,s,u)=>fMe(n)(i,s,u),qUn=n=>async(i,s,u)=>{const d=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return hMe(n)(i,s,d)},VUn=n=>async(i,s,u)=>hMe(n)(i,s,u),WUn=n=>(i,s,u)=>{const d=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return xae(n)(i,s,d)},KUn=n=>(i,s,u)=>xae(n)(i,s,u),YUn=n=>async(i,s,u)=>{const d=u?Object.assign(u,{direction:"backward"}):{direction:"backward"};return kae(n)(i,s,d)},JUn=n=>async(i,s,u)=>kae(n)(i,s,u),XUn=/^[cC][^\s-]{8,}$/,ZUn=/^[0-9a-z]+$/,QUn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eHn=/^[0-9a-vA-V]{20}$/,tHn=/^[A-Za-z0-9]{27}$/,nHn=/^[a-zA-Z0-9_-]{21}$/,rHn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,iHn=/^([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})$/,h8t=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)$/,oHn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sHn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function aHn(){return new RegExp(sHn,"u")}const uHn=/^(?:(?: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])$/,cHn=/^(([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}|:))$/,lHn=/^((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])$/,dHn=/^(([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])$/,fHn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gVt=/^[A-Za-z0-9_-]*$/,hHn=/^\+[1-9]\d{6,14}$/,bVt="(?:(?:\\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])))",pHn=new RegExp(`^${bVt}$`);function mVt(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 gHn(n){return new RegExp(`^${mVt(n)}$`)}function bHn(n){const i=mVt({precision:n.precision}),s=["Z"];n.local&&s.push(""),n.offset&&s.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const u=`${i}(?:${s.join("|")})`;return new RegExp(`^${bVt}T(?:${u})$`)}const mHn=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}$`)},wHn=/^-?\d+$/,wVt=/^-?\d+(?:\.\d+)?$/,yHn=/^(?:true|false)$/i,vHn=/^null$/i,EHn=/^[^A-Z]*$/,SHn=/^[^a-z]*$/,hb=cn("$ZodCheck",(n,i)=>{var s;n._zod??(n._zod={}),n._zod.def=i,(s=n._zod).onattach??(s.onattach=[])}),yVt={number:"number",bigint:"bigint",object:"date"},vVt=cn("$ZodCheckLessThan",(n,i)=>{hb.init(n,i);const s=yVt[typeof i.value];n._zod.onattach.push(u=>{const d=u._zod.bag,g=(i.inclusive?d.maximum:d.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value{(i.inclusive?u.value<=i.value:u.value{hb.init(n,i);const s=yVt[typeof i.value];n._zod.onattach.push(u=>{const d=u._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=u=>{(i.inclusive?u.value>=i.value:u.value>i.value)||u.issues.push({origin:s,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:u.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),THn=cn("$ZodCheckMultipleOf",(n,i)=>{hb.init(n,i),n._zod.onattach.push(s=>{var u;(u=s._zod.bag).multipleOf??(u.multipleOf=i.value)}),n._zod.check=s=>{if(typeof s.value!=typeof i.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof s.value=="bigint"?s.value%i.value===BigInt(0):xUn(s.value,i.value)===0)||s.issues.push({origin:typeof s.value,code:"not_multiple_of",divisor:i.value,input:s.value,inst:n,continue:!i.abort})}}),AHn=cn("$ZodCheckNumberFormat",(n,i)=>{var b;hb.init(n,i),i.format=i.format||"float64";const s=(b=i.format)==null?void 0:b.includes("int"),u=s?"int":"number",[d,g]=RUn[i.format];n._zod.onattach.push(w=>{const E=w._zod.bag;E.format=i.format,E.minimum=d,E.maximum=g,s&&(E.pattern=wHn)}),n._zod.check=w=>{const E=w.value;if(s){if(!Number.isInteger(E)){w.issues.push({expected:u,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:u,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:u,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})}}),_Hn=cn("$ZodCheckMaxLength",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=u=>{const d=u.value;return!cMe(d)&&d.length!==void 0}),n._zod.onattach.push(u=>{const d=u._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum{const d=u.value;if(d.length<=i.maximum)return;const b=dMe(d);u.issues.push({origin:b,code:"too_big",maximum:i.maximum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),xHn=cn("$ZodCheckMinLength",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=u=>{const d=u.value;return!cMe(d)&&d.length!==void 0}),n._zod.onattach.push(u=>{const d=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>d&&(u._zod.bag.minimum=i.minimum)}),n._zod.check=u=>{const d=u.value;if(d.length>=i.minimum)return;const b=dMe(d);u.issues.push({origin:b,code:"too_small",minimum:i.minimum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),kHn=cn("$ZodCheckLengthEquals",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=u=>{const d=u.value;return!cMe(d)&&d.length!==void 0}),n._zod.onattach.push(u=>{const d=u._zod.bag;d.minimum=i.length,d.maximum=i.length,d.length=i.length}),n._zod.check=u=>{const d=u.value,g=d.length;if(g===i.length)return;const b=dMe(d),w=g>i.length;u.issues.push({origin:b,...w?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:u.value,inst:n,continue:!i.abort})}}),Nae=cn("$ZodCheckStringFormat",(n,i)=>{var s,u;hb.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?(s=n._zod).check??(s.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})}):(u=n._zod).check??(u.check=()=>{})}),NHn=cn("$ZodCheckRegex",(n,i)=>{Nae.init(n,i),n._zod.check=s=>{i.pattern.lastIndex=0,!i.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:"regex",input:s.value,pattern:i.pattern.toString(),inst:n,continue:!i.abort})}}),CHn=cn("$ZodCheckLowerCase",(n,i)=>{i.pattern??(i.pattern=EHn),Nae.init(n,i)}),IHn=cn("$ZodCheckUpperCase",(n,i)=>{i.pattern??(i.pattern=SHn),Nae.init(n,i)}),RHn=cn("$ZodCheckIncludes",(n,i)=>{hb.init(n,i);const s=CM(i.includes),u=new RegExp(typeof i.position=="number"?`^.{${i.position}}${s}`:s);i.pattern=u,n._zod.onattach.push(d=>{const g=d._zod.bag;g.patterns??(g.patterns=new Set),g.patterns.add(u)}),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})}}),OHn=cn("$ZodCheckStartsWith",(n,i)=>{hb.init(n,i);const s=new RegExp(`^${CM(i.prefix)}.*`);i.pattern??(i.pattern=s),n._zod.onattach.push(u=>{const d=u._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=u=>{u.value.startsWith(i.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:u.value,inst:n,continue:!i.abort})}}),LHn=cn("$ZodCheckEndsWith",(n,i)=>{hb.init(n,i);const s=new RegExp(`.*${CM(i.suffix)}$`);i.pattern??(i.pattern=s),n._zod.onattach.push(u=>{const d=u._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=u=>{u.value.endsWith(i.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:u.value,inst:n,continue:!i.abort})}}),DHn=cn("$ZodCheckOverwrite",(n,i)=>{hb.init(n,i),n._zod.check=s=>{s.value=i.tx(s.value)}});class MHn{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 u=i.split(` -`).filter(b=>b),d=Math.min(...u.map(b=>b.length-b.trimStart().length)),g=u.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,s=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...s,d.join(` -`))}}const PHn={major:4,minor:3,patch:5},Ku=cn("$ZodType",(n,i)=>{var d;var s;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=PHn;const u=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&u.unshift(n);for(const g of u)for(const b of g._zod.onattach)b(n);if(u.length===0)(s=n._zod).deferred??(s.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let x=G5(w),A;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(x)continue;const R=w.issues.length,D=C._zod.check(w);if(D instanceof Promise&&(S==null?void 0:S.async)===!1)throw new sM;if(A||D instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await D,w.issues.length!==R&&(x||(x=G5(w,R)))});else{if(w.issues.length===R)continue;x||(x=G5(w,R))}}return A?A.then(()=>w):w},b=(w,E,S)=>{if(G5(w))return w.aborted=!0,w;const x=g(E,u,S);if(x instanceof Promise){if(S.async===!1)throw new sM;return x.then(A=>n._zod.parse(A,S))}return n._zod.parse(x,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const x=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return x instanceof Promise?x.then(A=>b(A,w,E)):b(x,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new sM;return S.then(x=>g(x,u,E))}return g(S,u,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=UUn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return HUn(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}))}),pMe=cn("$ZodString",(n,i)=>{var s;Ku.init(n,i),n._zod.pattern=[...((s=n==null?void 0:n._zod.bag)==null?void 0:s.patterns)??[]].pop()??mHn(n._zod.bag),n._zod.parse=(u,d)=>{if(i.coerce)try{u.value=String(u.value)}catch{}return typeof u.value=="string"||u.issues.push({expected:"string",code:"invalid_type",input:u.value,inst:n}),u}}),Pc=cn("$ZodStringFormat",(n,i)=>{Nae.init(n,i),pMe.init(n,i)}),jHn=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=iHn),Pc.init(n,i)}),FHn=cn("$ZodUUID",(n,i)=>{if(i.version){const u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(u===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=h8t(u))}else i.pattern??(i.pattern=h8t());Pc.init(n,i)}),$Hn=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=oHn),Pc.init(n,i)}),BHn=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{try{const u=s.value.trim(),d=new URL(u);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:s.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)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:s.value,inst:n,continue:!i.abort})),i.normalize?s.value=d.href:s.value=u;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:n,continue:!i.abort})}}}),UHn=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=aHn()),Pc.init(n,i)}),HHn=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=nHn),Pc.init(n,i)}),zHn=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=XUn),Pc.init(n,i)}),GHn=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=ZUn),Pc.init(n,i)}),qHn=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=QUn),Pc.init(n,i)}),VHn=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=eHn),Pc.init(n,i)}),WHn=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=tHn),Pc.init(n,i)}),KHn=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=bHn(i)),Pc.init(n,i)}),YHn=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=pHn),Pc.init(n,i)}),JHn=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=gHn(i)),Pc.init(n,i)}),XHn=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=rHn),Pc.init(n,i)}),ZHn=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=uHn),Pc.init(n,i),n._zod.bag.format="ipv4"}),QHn=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=cHn),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:n,continue:!i.abort})}}}),ezn=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=lHn),Pc.init(n,i)}),tzn=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=dHn),Pc.init(n,i),n._zod.check=s=>{const u=s.value.split("/");try{if(u.length!==2)throw new Error;const[d,g]=u;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{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:n,continue:!i.abort})}}});function SVt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const nzn=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=fHn),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=s=>{SVt(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst:n,continue:!i.abort})}});function rzn(n){if(!gVt.test(n))return!1;const i=n.replace(/[-_]/g,u=>u==="-"?"+":"/"),s=i.padEnd(Math.ceil(i.length/4)*4,"=");return SVt(s)}const izn=cn("$ZodBase64URL",(n,i)=>{i.pattern??(i.pattern=gVt),Pc.init(n,i),n._zod.bag.contentEncoding="base64url",n._zod.check=s=>{rzn(s.value)||s.issues.push({code:"invalid_format",format:"base64url",input:s.value,inst:n,continue:!i.abort})}}),ozn=cn("$ZodE164",(n,i)=>{i.pattern??(i.pattern=hHn),Pc.init(n,i)});function szn(n,i=null){try{const s=n.split(".");if(s.length!==3)return!1;const[u]=s;if(!u)return!1;const d=JSON.parse(atob(u));return!("typ"in d&&(d==null?void 0:d.typ)!=="JWT"||!d.alg||i&&(!("alg"in d)||d.alg!==i))}catch{return!1}}const azn=cn("$ZodJWT",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{szn(s.value,i.alg)||s.issues.push({code:"invalid_format",format:"jwt",input:s.value,inst:n,continue:!i.abort})}}),TVt=cn("$ZodNumber",(n,i)=>{Ku.init(n,i),n._zod.pattern=n._zod.bag.pattern??wVt,n._zod.parse=(s,u)=>{if(i.coerce)try{s.value=Number(s.value)}catch{}const d=s.value;if(typeof d=="number"&&!Number.isNaN(d)&&Number.isFinite(d))return s;const g=typeof d=="number"?Number.isNaN(d)?"NaN":Number.isFinite(d)?void 0:"Infinity":void 0;return s.issues.push({expected:"number",code:"invalid_type",input:d,inst:n,...g?{received:g}:{}}),s}}),uzn=cn("$ZodNumberFormat",(n,i)=>{AHn.init(n,i),TVt.init(n,i)}),czn=cn("$ZodBoolean",(n,i)=>{Ku.init(n,i),n._zod.pattern=yHn,n._zod.parse=(s,u)=>{if(i.coerce)try{s.value=!!s.value}catch{}const d=s.value;return typeof d=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:d,inst:n}),s}}),lzn=cn("$ZodNull",(n,i)=>{Ku.init(n,i),n._zod.pattern=vHn,n._zod.values=new Set([null]),n._zod.parse=(s,u)=>{const d=s.value;return d===null||s.issues.push({expected:"null",code:"invalid_type",input:d,inst:n}),s}}),dzn=cn("$ZodAny",(n,i)=>{Ku.init(n,i),n._zod.parse=s=>s}),fzn=cn("$ZodUnknown",(n,i)=>{Ku.init(n,i),n._zod.parse=s=>s}),hzn=cn("$ZodNever",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:n}),s)});function p8t(n,i,s){n.issues.length&&i.issues.push(...q5(s,n.issues)),i.value[s]=n.value}const pzn=cn("$ZodArray",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{const d=s.value;if(!Array.isArray(d))return s.issues.push({expected:"array",code:"invalid_type",input:d,inst:n}),s;s.value=Array(d.length);const g=[];for(let b=0;bp8t(S,s,b))):p8t(E,s,b)}return g.length?Promise.all(g).then(()=>s):s}});function ise(n,i,s,u,d){if(n.issues.length){if(d&&!(s in u))return;i.issues.push(...q5(s,n.issues))}n.value===void 0?s in u&&(i.value[s]=void 0):i.value[s]=n.value}function AVt(n){var u,d,g,b;const i=Object.keys(n.shape);for(const w of i)if(!((b=(g=(d=(u=n.shape)==null?void 0:u[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 s=IUn(n.shape);return{...n,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(s)}}function _Vt(n,i,s,u,d,g){const b=[],w=d.keySet,E=d.catchall._zod,S=E.def.type,x=E.optout==="optional";for(const A in i){if(w.has(A))continue;if(S==="never"){b.push(A);continue}const C=E.run({value:i[A],issues:[]},u);C instanceof Promise?n.push(C.then(R=>ise(R,s,A,i,x))):ise(C,s,A,i,x)}return b.length&&s.issues.push({code:"unrecognized_keys",keys:b,input:i,inst:g}),n.length?Promise.all(n).then(()=>s):s}const gzn=cn("$ZodObject",(n,i)=>{Ku.init(n,i);const s=Object.getOwnPropertyDescriptor(i,"shape");if(!(s!=null&&s.get)){const w=i.shape;Object.defineProperty(i,"shape",{get:()=>{const E={...w};return Object.defineProperty(i,"shape",{value:E}),E}})}const u=_ae(()=>AVt(i));Ys(n._zod,"propValues",()=>{const w=i.shape,E={};for(const S in w){const x=w[S]._zod;if(x.values){E[S]??(E[S]=new Set);for(const A of x.values)E[S].add(A)}}return E});const d=oz,g=i.catchall;let b;n._zod.parse=(w,E)=>{b??(b=u.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 x=[],A=b.shape;for(const C of b.keys){const R=A[C],D=R._zod.optout==="optional",L=R._zod.run({value:S[C],issues:[]},E);L instanceof Promise?x.push(L.then(B=>ise(B,w,C,S,D))):ise(L,w,C,S,D)}return g?_Vt(x,S,w,E,u.value,n):x.length?Promise.all(x).then(()=>w):w}}),bzn=cn("$ZodObjectJIT",(n,i)=>{gzn.init(n,i);const s=n._zod.parse,u=_ae(()=>AVt(i)),d=C=>{var P;const R=new MHn(["shape","payload","ctx"]),D=u.value,L=G=>{const ee=f8t(G);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`};R.write("const input = payload.value;");const B=Object.create(null);let $=0;for(const G of D.keys)B[G]=`key_${$++}`;R.write("const newResult = {};");for(const G of D.keys){const ee=B[G],ne=f8t(G),Q=C[G],ie=((P=Q==null?void 0:Q._zod)==null?void 0:P.optout)==="optional";R.write(`const ${ee} = ${L(G)};`),ie?R.write(` - if (${ee}.issues.length) { - if (${ne} in input) { - payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${ne}, ...iss.path] : [${ne}] - }))); - } - } - - if (${ee}.value === undefined) { - if (${ne} in input) { - newResult[${ne}] = undefined; - } - } else { - newResult[${ne}] = ${ee}.value; - } - - `):R.write(` - if (${ee}.issues.length) { - payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${ne}, ...iss.path] : [${ne}] - }))); - } - - if (${ee}.value === undefined) { - if (${ne} in input) { - newResult[${ne}] = undefined; - } - } else { - newResult[${ne}] = ${ee}.value; - } - - `)}R.write("payload.value = newResult;"),R.write("return payload;");const j=R.compile();return(G,ee)=>j(C,G,ee)};let g;const b=oz,w=!uVt.jitless,S=w&&NUn.value,x=i.catchall;let A;n._zod.parse=(C,R)=>{A??(A=u.value);const D=C.value;return b(D)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),x?_Vt([],D,C,R,A,n):C):s(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:D,inst:n}),C)}});function g8t(n,i,s,u){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!G5(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:s,errors:n.map(g=>g.issues.map(b=>pN(b,u,hN())))}),i)}const xVt=cn("$ZodUnion",(n,i)=>{Ku.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=>lMe(g.source)).join("|")})$`)}});const s=i.options.length===1,u=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(s)return u(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=>g8t(E,d,n,g)):g8t(w,d,n,g)}}),mzn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,xVt.init(n,i);const s=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 u=_ae(()=>{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(!oz(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=u.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?s(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),wzn=cn("$ZodIntersection",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{const d=s.value,g=i.left._zod.run({value:d,issues:[]},u),b=i.right._zod.run({value:d,issues:[]},u);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>b8t(s,E,S)):b8t(s,g,b)}});function MLe(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(NM(n)&&NM(i)){const s=Object.keys(i),u=Object.keys(n).filter(g=>s.indexOf(g)!==-1),d={...n,...i};for(const g of u){const b=MLe(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 s=[];for(let u=0;uw.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),G5(n))return n;const b=MLe(i.value,s.value);if(!b.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const yzn=cn("$ZodRecord",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{const d=s.value;if(!NM(d))return s.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),s;const g=[],b=i.keyType._zod.values;if(b){s.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 x=i.valueType._zod.run({value:d[S],issues:[]},u);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(S,A.issues)),s.value[S]=A.value})):(x.issues.length&&s.issues.push(...q5(S,x.issues)),s.value[S]=x.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&s.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{s.value={};for(const w of Reflect.ownKeys(d)){if(w==="__proto__")continue;let E=i.keyType._zod.run({value:w,issues:[]},u);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof w=="string"&&wVt.test(w)&&E.issues.length&&E.issues.some(A=>A.code==="invalid_type"&&A.expected==="number")){const A=i.keyType._zod.run({value:Number(w),issues:[]},u);if(A instanceof Promise)throw new Error("Async schemas not supported in object keys currently");A.issues.length===0&&(E=A)}if(E.issues.length){i.mode==="loose"?s.value[w]=d[w]:s.issues.push({code:"invalid_key",origin:"record",issues:E.issues.map(A=>pN(A,u,hN())),input:w,path:[w],inst:n});continue}const x=i.valueType._zod.run({value:d[w],issues:[]},u);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(w,A.issues)),s.value[E.value]=A.value})):(x.issues.length&&s.issues.push(...q5(w,x.issues)),s.value[E.value]=x.value)}}return g.length?Promise.all(g).then(()=>s):s}}),vzn=cn("$ZodEnum",(n,i)=>{Ku.init(n,i);const s=cVt(i.entries),u=new Set(s);n._zod.values=u,n._zod.pattern=new RegExp(`^(${s.filter(d=>CUn.has(typeof d)).map(d=>typeof d=="string"?CM(d):d.toString()).join("|")})$`),n._zod.parse=(d,g)=>{const b=d.value;return u.has(b)||d.issues.push({code:"invalid_value",values:s,input:b,inst:n}),d}}),Ezn=cn("$ZodLiteral",(n,i)=>{if(Ku.init(n,i),i.values.length===0)throw new Error("Cannot create literal schema with no valid values");const s=new Set(i.values);n._zod.values=s,n._zod.pattern=new RegExp(`^(${i.values.map(u=>typeof u=="string"?CM(u):u?CM(u.toString()):String(u)).join("|")})$`),n._zod.parse=(u,d)=>{const g=u.value;return s.has(g)||u.issues.push({code:"invalid_value",values:i.values,input:g,inst:n}),u}}),Szn=cn("$ZodTransform",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{if(u.direction==="backward")throw new aVt(n.constructor.name);const d=i.transform(s.value,s);if(u.async)return(d instanceof Promise?d:Promise.resolve(d)).then(b=>(s.value=b,s));if(d instanceof Promise)throw new sM;return s.value=d,s}});function m8t(n,i){return n.issues.length&&i===void 0?{issues:[],value:void 0}:n}const kVt=cn("$ZodOptional",(n,i)=>{Ku.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 s=i.innerType._zod.pattern;return s?new RegExp(`^(${lMe(s.source)})?$`):void 0}),n._zod.parse=(s,u)=>{if(i.innerType._zod.optin==="optional"){const d=i.innerType._zod.run(s,u);return d instanceof Promise?d.then(g=>m8t(g,s.value)):m8t(d,s.value)}return s.value===void 0?s:i.innerType._zod.run(s,u)}}),Tzn=cn("$ZodExactOptional",(n,i)=>{kVt.init(n,i),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"pattern",()=>i.innerType._zod.pattern),n._zod.parse=(s,u)=>i.innerType._zod.run(s,u)}),Azn=cn("$ZodNullable",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.innerType._zod.optin),Ys(n._zod,"optout",()=>i.innerType._zod.optout),Ys(n._zod,"pattern",()=>{const s=i.innerType._zod.pattern;return s?new RegExp(`^(${lMe(s.source)}|null)$`):void 0}),Ys(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),n._zod.parse=(s,u)=>s.value===null?s:i.innerType._zod.run(s,u)}),_zn=cn("$ZodDefault",(n,i)=>{Ku.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,u)=>{if(u.direction==="backward")return i.innerType._zod.run(s,u);if(s.value===void 0)return s.value=i.defaultValue,s;const d=i.innerType._zod.run(s,u);return d instanceof Promise?d.then(g=>w8t(g,i)):w8t(d,i)}});function w8t(n,i){return n.value===void 0&&(n.value=i.defaultValue),n}const xzn=cn("$ZodPrefault",(n,i)=>{Ku.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,u)=>(u.direction==="backward"||s.value===void 0&&(s.value=i.defaultValue),i.innerType._zod.run(s,u))}),kzn=cn("$ZodNonOptional",(n,i)=>{Ku.init(n,i),Ys(n._zod,"values",()=>{const s=i.innerType._zod.values;return s?new Set([...s].filter(u=>u!==void 0)):void 0}),n._zod.parse=(s,u)=>{const d=i.innerType._zod.run(s,u);return d instanceof Promise?d.then(g=>y8t(g,n)):y8t(d,n)}});function y8t(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 Nzn=cn("$ZodCatch",(n,i)=>{Ku.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=(s,u)=>{if(u.direction==="backward")return i.innerType._zod.run(s,u);const d=i.innerType._zod.run(s,u);return d instanceof Promise?d.then(g=>(s.value=g.value,g.issues.length&&(s.value=i.catchValue({...s,error:{issues:g.issues.map(b=>pN(b,u,hN()))},input:s.value}),s.issues=[]),s)):(s.value=d.value,d.issues.length&&(s.value=i.catchValue({...s,error:{issues:d.issues.map(g=>pN(g,u,hN()))},input:s.value}),s.issues=[]),s)}}),Czn=cn("$ZodPipe",(n,i)=>{Ku.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=(s,u)=>{if(u.direction==="backward"){const g=i.out._zod.run(s,u);return g instanceof Promise?g.then(b=>Iie(b,i.in,u)):Iie(g,i.in,u)}const d=i.in._zod.run(s,u);return d instanceof Promise?d.then(g=>Iie(g,i.out,u)):Iie(d,i.out,u)}});function Iie(n,i,s){return n.issues.length?(n.aborted=!0,n):i._zod.run({value:n.value,issues:n.issues},s)}const Izn=cn("$ZodReadonly",(n,i)=>{Ku.init(n,i),Ys(n._zod,"propValues",()=>i.innerType._zod.propValues),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"optin",()=>{var s,u;return(u=(s=i.innerType)==null?void 0:s._zod)==null?void 0:u.optin}),Ys(n._zod,"optout",()=>{var s,u;return(u=(s=i.innerType)==null?void 0:s._zod)==null?void 0:u.optout}),n._zod.parse=(s,u)=>{if(u.direction==="backward")return i.innerType._zod.run(s,u);const d=i.innerType._zod.run(s,u);return d instanceof Promise?d.then(v8t):v8t(d)}});function v8t(n){return n.value=Object.freeze(n.value),n}const Rzn=cn("$ZodLazy",(n,i)=>{Ku.init(n,i),Ys(n._zod,"innerType",()=>i.getter()),Ys(n._zod,"pattern",()=>{var s,u;return(u=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:u.pattern}),Ys(n._zod,"propValues",()=>{var s,u;return(u=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:u.propValues}),Ys(n._zod,"optin",()=>{var s,u;return((u=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:u.optin)??void 0}),Ys(n._zod,"optout",()=>{var s,u;return((u=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:u.optout)??void 0}),n._zod.parse=(s,u)=>n._zod.innerType._zod.run(s,u)}),Ozn=cn("$ZodCustom",(n,i)=>{hb.init(n,i),Ku.init(n,i),n._zod.parse=(s,u)=>s,n._zod.check=s=>{const u=s.value,d=i.fn(u);if(d instanceof Promise)return d.then(g=>E8t(g,s,u,n));E8t(d,s,u,n)}});function E8t(n,i,s,u){if(!n){const d={code:"custom",input:s,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};u._zod.def.params&&(d.params=u._zod.def.params),i.issues.push(sz(d))}}var S8t;class Lzn{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...s){const u=s[0];return this._map.set(i,u),u&&typeof u=="object"&&"id"in u&&this._idmap.set(u.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const s=this._map.get(i);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(i),this}get(i){const s=i._zod.parent;if(s){const u={...this.get(s)??{}};delete u.id;const d={...u,...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 Dzn(){return new Lzn}(S8t=globalThis).__zod_globalRegistry??(S8t.__zod_globalRegistry=Dzn());const ZU=globalThis.__zod_globalRegistry;function Mzn(n,i){return new n({type:"string",...wi(i)})}function Pzn(n,i){return new n({type:"string",format:"email",check:"string_format",abort:!1,...wi(i)})}function T8t(n,i){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...wi(i)})}function jzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...wi(i)})}function Fzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wi(i)})}function $zn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wi(i)})}function Bzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wi(i)})}function Uzn(n,i){return new n({type:"string",format:"url",check:"string_format",abort:!1,...wi(i)})}function Hzn(n,i){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...wi(i)})}function zzn(n,i){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...wi(i)})}function Gzn(n,i){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...wi(i)})}function qzn(n,i){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...wi(i)})}function Vzn(n,i){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...wi(i)})}function Wzn(n,i){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...wi(i)})}function Kzn(n,i){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...wi(i)})}function Yzn(n,i){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...wi(i)})}function Jzn(n,i){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...wi(i)})}function Xzn(n,i){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wi(i)})}function Zzn(n,i){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wi(i)})}function Qzn(n,i){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...wi(i)})}function eGn(n,i){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...wi(i)})}function tGn(n,i){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...wi(i)})}function nGn(n,i){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...wi(i)})}function rGn(n,i){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wi(i)})}function iGn(n,i){return new n({type:"string",format:"date",check:"string_format",...wi(i)})}function oGn(n,i){return new n({type:"string",format:"time",check:"string_format",precision:null,...wi(i)})}function sGn(n,i){return new n({type:"string",format:"duration",check:"string_format",...wi(i)})}function aGn(n,i){return new n({type:"number",checks:[],...wi(i)})}function uGn(n,i){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...wi(i)})}function cGn(n,i){return new n({type:"boolean",...wi(i)})}function lGn(n,i){return new n({type:"null",...wi(i)})}function dGn(n){return new n({type:"any"})}function fGn(n){return new n({type:"unknown"})}function hGn(n,i){return new n({type:"never",...wi(i)})}function A8t(n,i){return new vVt({check:"less_than",...wi(i),value:n,inclusive:!1})}function aIe(n,i){return new vVt({check:"less_than",...wi(i),value:n,inclusive:!0})}function _8t(n,i){return new EVt({check:"greater_than",...wi(i),value:n,inclusive:!1})}function uIe(n,i){return new EVt({check:"greater_than",...wi(i),value:n,inclusive:!0})}function x8t(n,i){return new THn({check:"multiple_of",...wi(i),value:n})}function NVt(n,i){return new _Hn({check:"max_length",...wi(i),maximum:n})}function ose(n,i){return new xHn({check:"min_length",...wi(i),minimum:n})}function CVt(n,i){return new kHn({check:"length_equals",...wi(i),length:n})}function pGn(n,i){return new NHn({check:"string_format",format:"regex",...wi(i),pattern:n})}function gGn(n){return new CHn({check:"string_format",format:"lowercase",...wi(n)})}function bGn(n){return new IHn({check:"string_format",format:"uppercase",...wi(n)})}function mGn(n,i){return new RHn({check:"string_format",format:"includes",...wi(i),includes:n})}function wGn(n,i){return new OHn({check:"string_format",format:"starts_with",...wi(i),prefix:n})}function yGn(n,i){return new LHn({check:"string_format",format:"ends_with",...wi(i),suffix:n})}function UM(n){return new DHn({check:"overwrite",tx:n})}function vGn(n){return UM(i=>i.normalize(n))}function EGn(){return UM(n=>n.trim())}function SGn(){return UM(n=>n.toLowerCase())}function TGn(){return UM(n=>n.toUpperCase())}function AGn(){return UM(n=>kUn(n))}function _Gn(n,i,s){return new n({type:"array",element:i,...wi(s)})}function xGn(n,i,s){return new n({type:"custom",check:"custom",fn:i,...wi(s)})}function kGn(n){const i=NGn(s=>(s.addIssue=u=>{if(typeof u=="string")s.issues.push(sz(u,s.value,i._zod.def));else{const d=u;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=s.value),d.inst??(d.inst=i),d.continue??(d.continue=!i._zod.def.abort),s.issues.push(sz(d))}},n(s.value,s)));return i}function NGn(n,i){const s=new hb({check:"custom",...wi(i)});return s._zod.check=n,s}function IVt(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)??ZU,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,s={path:[],schemaPath:[]}){var x,A;var u;const d=n._zod.def,g=i.seen.get(n);if(g)return g.count++,s.schemaPath.includes(n)&&(g.cycle=s.path),g.schema;const b={schema:{},count:1,cycle:void 0,path:s.path};i.seen.set(n,b);const w=(A=(x=n._zod).toJSONSchema)==null?void 0:A.call(x);if(w)b.schema=w;else{const C={...s,schemaPath:[...s.schemaPath,n],path:s.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(i,b.schema,C);else{const D=b.schema,L=i.processors[d.type];if(!L)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${d.type}`);L(n,i,D,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"&&$g(n)&&(delete b.schema.examples,delete b.schema.default),i.io==="input"&&b.schema._prefault&&((u=b.schema).default??(u.default=b.schema._prefault)),delete b.schema._prefault,i.seen.get(n).schema}function RVt(n,i){var b,w,E,S;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=new Map;for(const x of n.seen.entries()){const A=(b=n.metadataRegistry.get(x[0]))==null?void 0:b.id;if(A){const C=u.get(A);if(C&&C!==x[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);u.set(A,x[0])}}const d=x=>{var L;const A=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const B=(L=n.external.registry.get(x[0]))==null?void 0:L.id,$=n.external.uri??(P=>P);if(B)return{ref:$(B)};const j=x[1].defId??x[1].schema.id??`schema${n.counter++}`;return x[1].defId=j,{defId:j,ref:`${$("__shared")}#/${A}/${j}`}}if(x[1]===s)return{ref:"#"};const R=`#/${A}/`,D=x[1].schema.id??`__schema${n.counter++}`;return{defId:D,ref:R+D}},g=x=>{if(x[1].schema.$ref)return;const A=x[1],{ref:C,defId:R}=d(x);A.def={...A.schema},R&&(A.defId=R);const D=A.schema;for(const L in D)delete D[L];D.$ref=C};if(n.cycles==="throw")for(const x of n.seen.entries()){const A=x[1];if(A.cycle)throw new Error(`Cycle detected: #/${(w=A.cycle)==null?void 0:w.join("/")}/ - -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of n.seen.entries()){const A=x[1];if(i===x[0]){g(x);continue}if(n.external){const R=(E=n.external.registry.get(x[0]))==null?void 0:E.id;if(i!==x[0]&&R){g(x);continue}}if((S=n.metadataRegistry.get(x[0]))==null?void 0:S.id){g(x);continue}if(A.cycle){g(x);continue}if(A.count>1&&n.reused==="ref"){g(x);continue}}}function OVt(n,i){var b,w,E;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=S=>{const x=n.seen.get(S);if(x.ref===null)return;const A=x.def??x.schema,C={...A},R=x.ref;if(x.ref=null,R){u(R);const L=n.seen.get(R),B=L.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(A.allOf=A.allOf??[],A.allOf.push(B)):Object.assign(A,B),Object.assign(A,C),S._zod.parent===R)for(const j in A)j==="$ref"||j==="allOf"||j in C||delete A[j];if(B.$ref)for(const j in A)j==="$ref"||j==="allOf"||j in L.def&&JSON.stringify(A[j])===JSON.stringify(L.def[j])&&delete A[j]}const D=S._zod.parent;if(D&&D!==R){u(D);const L=n.seen.get(D);if(L!=null&&L.schema.$ref&&(A.$ref=L.schema.$ref,L.def))for(const B in A)B==="$ref"||B==="allOf"||B in L.def&&JSON.stringify(A[B])===JSON.stringify(L.def[B])&&delete A[B]}n.override({zodSchema:S,jsonSchema:A,path:x.path??[]})};for(const S of[...n.seen.entries()].reverse())u(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,s.def??s.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const x=S[1];x.def&&x.defId&&(g[x.defId]=x.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:sse(i,"input",n.processors),output:sse(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function $g(n,i){const s=i??{seen:new Set};if(s.seen.has(n))return!1;s.seen.add(n);const u=n._zod.def;if(u.type==="transform")return!0;if(u.type==="array")return $g(u.element,s);if(u.type==="set")return $g(u.valueType,s);if(u.type==="lazy")return $g(u.getter(),s);if(u.type==="promise"||u.type==="optional"||u.type==="nonoptional"||u.type==="nullable"||u.type==="readonly"||u.type==="default"||u.type==="prefault")return $g(u.innerType,s);if(u.type==="intersection")return $g(u.left,s)||$g(u.right,s);if(u.type==="record"||u.type==="map")return $g(u.keyType,s)||$g(u.valueType,s);if(u.type==="pipe")return $g(u.in,s)||$g(u.out,s);if(u.type==="object"){for(const d in u.shape)if($g(u.shape[d],s))return!0;return!1}if(u.type==="union"){for(const d of u.options)if($g(d,s))return!0;return!1}if(u.type==="tuple"){for(const d of u.items)if($g(d,s))return!0;return!!(u.rest&&$g(u.rest,s))}return!1}const CGn=(n,i={})=>s=>{const u=IVt({...s,processors:i});return gd(n,u),RVt(u,n),OVt(u,n)},sse=(n,i,s={})=>u=>{const{libraryOptions:d,target:g}=u??{},b=IVt({...d??{},target:g,io:i,processors:s});return gd(n,b),RVt(b,n),OVt(b,n)},IGn={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},RGn=(n,i,s,u)=>{const d=s;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=IGn[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const x=[...E];x.length===1?d.pattern=x[0].source:x.length>1&&(d.allOf=[...x.map(A=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}},OGn=(n,i,s,u)=>{const d=s,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:x}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof x=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=x,d.exclusiveMinimum=!0):d.exclusiveMinimum=x),typeof g=="number"&&(d.minimum=g,typeof x=="number"&&i.target!=="draft-04"&&(x>=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)},LGn=(n,i,s,u)=>{s.type="boolean"},DGn=(n,i,s,u)=>{i.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},MGn=(n,i,s,u)=>{s.not={}},PGn=(n,i,s,u)=>{},jGn=(n,i,s,u)=>{},FGn=(n,i,s,u)=>{const d=n._zod.def,g=cVt(d.entries);g.every(b=>typeof b=="number")&&(s.type="number"),g.every(b=>typeof b=="string")&&(s.type="string"),s.enum=g},$Gn=(n,i,s,u)=>{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];s.type=b===null?"null":typeof b,i.target==="draft-04"||i.target==="openapi-3.0"?s.enum=[b]:s.const=b}else g.every(b=>typeof b=="number")&&(s.type="number"),g.every(b=>typeof b=="string")&&(s.type="string"),g.every(b=>typeof b=="boolean")&&(s.type="boolean"),g.every(b=>b===null)&&(s.type="null"),s.enum=g},BGn=(n,i,s,u)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},UGn=(n,i,s,u)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HGn=(n,i,s,u)=>{const d=s,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,{...u,path:[...u.path,"items"]})},zGn=(n,i,s,u)=>{var S;const d=s,g=n._zod.def;d.type="object",d.properties={};const b=g.shape;for(const x in b)d.properties[x]=gd(b[x],i,{...u,path:[...u.path,"properties",x]});const w=new Set(Object.keys(b)),E=new Set([...w].filter(x=>{const A=g.shape[x]._zod;return i.io==="input"?A.optin===void 0:A.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,{...u,path:[...u.path,"additionalProperties"]})):i.io==="output"&&(d.additionalProperties=!1)},GGn=(n,i,s,u)=>{const d=n._zod.def,g=d.inclusive===!1,b=d.options.map((w,E)=>gd(w,i,{...u,path:[...u.path,g?"oneOf":"anyOf",E]}));g?s.oneOf=b:s.anyOf=b},qGn=(n,i,s,u)=>{const d=n._zod.def,g=gd(d.left,i,{...u,path:[...u.path,"allOf",0]}),b=gd(d.right,i,{...u,path:[...u.path,"allOf",1]}),w=S=>"allOf"in S&&Object.keys(S).length===1,E=[...w(g)?g.allOf:[g],...w(b)?b.allOf:[b]];s.allOf=E},VGn=(n,i,s,u)=>{const d=s,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 x=gd(g.valueType,i,{...u,path:[...u.path,"patternProperties","*"]});d.patternProperties={};for(const A of E)d.patternProperties[A.source]=x}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(d.propertyNames=gd(g.keyType,i,{...u,path:[...u.path,"propertyNames"]})),d.additionalProperties=gd(g.valueType,i,{...u,path:[...u.path,"additionalProperties"]});const S=b._zod.values;if(S){const x=[...S].filter(A=>typeof A=="string"||typeof A=="number");x.length>0&&(d.required=x)}},WGn=(n,i,s,u)=>{const d=n._zod.def,g=gd(d.innerType,i,u),b=i.seen.get(n);i.target==="openapi-3.0"?(b.ref=d.innerType,s.nullable=!0):s.anyOf=[g,{type:"null"}]},KGn=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);const g=i.seen.get(n);g.ref=d.innerType},YGn=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);const g=i.seen.get(n);g.ref=d.innerType,s.default=JSON.parse(JSON.stringify(d.defaultValue))},JGn=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);const g=i.seen.get(n);g.ref=d.innerType,i.io==="input"&&(s._prefault=JSON.parse(JSON.stringify(d.defaultValue)))},XGn=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);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")}s.default=b},ZGn=(n,i,s,u)=>{const d=n._zod.def,g=i.io==="input"?d.in._zod.def.type==="transform"?d.out:d.in:d.out;gd(g,i,u);const b=i.seen.get(n);b.ref=g},QGn=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);const g=i.seen.get(n);g.ref=d.innerType,s.readOnly=!0},LVt=(n,i,s,u)=>{const d=n._zod.def;gd(d.innerType,i,u);const g=i.seen.get(n);g.ref=d.innerType},eqn=(n,i,s,u)=>{const d=n._zod.innerType;gd(d,i,u);const g=i.seen.get(n);g.ref=d},tqn=cn("ZodISODateTime",(n,i)=>{KHn.init(n,i),hl.init(n,i)});function nqn(n){return rGn(tqn,n)}const rqn=cn("ZodISODate",(n,i)=>{YHn.init(n,i),hl.init(n,i)});function iqn(n){return iGn(rqn,n)}const oqn=cn("ZodISOTime",(n,i)=>{JHn.init(n,i),hl.init(n,i)});function sqn(n){return oGn(oqn,n)}const aqn=cn("ZodISODuration",(n,i)=>{XHn.init(n,i),hl.init(n,i)});function uqn(n){return sGn(aqn,n)}const DVt=(n,i)=>{hVt.init(n,i),n.name="ZodError",Object.defineProperties(n,{format:{value:s=>BUn(n,s)},flatten:{value:s=>$Un(n,s)},addIssue:{value:s=>{n.issues.push(s),n.message=JSON.stringify(n.issues,DLe,2)}},addIssues:{value:s=>{n.issues.push(...s),n.message=JSON.stringify(n.issues,DLe,2)}},isEmpty:{get(){return n.issues.length===0}}})},cqn=cn("ZodError",DVt),Nw=cn("ZodError",DVt,{Parent:Error}),lqn=fMe(Nw),dqn=hMe(Nw),fqn=xae(Nw),hqn=kae(Nw),pqn=zUn(Nw),gqn=GUn(Nw),bqn=qUn(Nw),mqn=VUn(Nw),wqn=WUn(Nw),yqn=KUn(Nw),vqn=YUn(Nw),Eqn=JUn(Nw),Yu=cn("ZodType",(n,i)=>(Ku.init(n,i),Object.assign(n["~standard"],{jsonSchema:{input:sse(n,"input"),output:sse(n,"output")}}),n.toJSONSchema=CGn(n,{}),n.def=i,n.type=i.type,Object.defineProperty(n,"_def",{value:i}),n.check=(...s)=>n.clone(TN(i,{checks:[...i.checks??[],...s.map(u=>typeof u=="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]}),{parent:!0}),n.with=n.check,n.clone=(s,u)=>AN(n,s,u),n.brand=()=>n,n.register=(s,u)=>(s.add(n,u),n),n.parse=(s,u)=>lqn(n,s,u,{callee:n.parse}),n.safeParse=(s,u)=>fqn(n,s,u),n.parseAsync=async(s,u)=>dqn(n,s,u,{callee:n.parseAsync}),n.safeParseAsync=async(s,u)=>hqn(n,s,u),n.spa=n.safeParseAsync,n.encode=(s,u)=>pqn(n,s,u),n.decode=(s,u)=>gqn(n,s,u),n.encodeAsync=async(s,u)=>bqn(n,s,u),n.decodeAsync=async(s,u)=>mqn(n,s,u),n.safeEncode=(s,u)=>wqn(n,s,u),n.safeDecode=(s,u)=>yqn(n,s,u),n.safeEncodeAsync=async(s,u)=>vqn(n,s,u),n.safeDecodeAsync=async(s,u)=>Eqn(n,s,u),n.refine=(s,u)=>n.check(wVn(s,u)),n.superRefine=s=>n.check(yVn(s)),n.overwrite=s=>n.check(UM(s)),n.optional=()=>I8t(n),n.exactOptional=()=>iVn(n),n.nullable=()=>R8t(n),n.nullish=()=>I8t(R8t(n)),n.nonoptional=s=>lVn(n,s),n.array=()=>cs(n),n.or=s=>Yi([n,s]),n.and=s=>Zqn(n,s),n.transform=s=>O8t(n,nVn(s)),n.default=s=>aVn(n,s),n.prefault=s=>cVn(n,s),n.catch=s=>fVn(n,s),n.pipe=s=>O8t(n,s),n.readonly=()=>gVn(n),n.describe=s=>{const u=n.clone();return ZU.add(u,{description:s}),u},Object.defineProperty(n,"description",{get(){var s;return(s=ZU.get(n))==null?void 0:s.description},configurable:!0}),n.meta=(...s)=>{if(s.length===0)return ZU.get(n);const u=n.clone();return ZU.add(u,s[0]),u},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=s=>s(n),n)),MVt=cn("_ZodString",(n,i)=>{pMe.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(u,d,g)=>RGn(n,u,d);const s=n._zod.bag;n.format=s.format??null,n.minLength=s.minimum??null,n.maxLength=s.maximum??null,n.regex=(...u)=>n.check(pGn(...u)),n.includes=(...u)=>n.check(mGn(...u)),n.startsWith=(...u)=>n.check(wGn(...u)),n.endsWith=(...u)=>n.check(yGn(...u)),n.min=(...u)=>n.check(ose(...u)),n.max=(...u)=>n.check(NVt(...u)),n.length=(...u)=>n.check(CVt(...u)),n.nonempty=(...u)=>n.check(ose(1,...u)),n.lowercase=u=>n.check(gGn(u)),n.uppercase=u=>n.check(bGn(u)),n.trim=()=>n.check(EGn()),n.normalize=(...u)=>n.check(vGn(...u)),n.toLowerCase=()=>n.check(SGn()),n.toUpperCase=()=>n.check(TGn()),n.slugify=()=>n.check(AGn())}),Sqn=cn("ZodString",(n,i)=>{pMe.init(n,i),MVt.init(n,i),n.email=s=>n.check(Pzn(Tqn,s)),n.url=s=>n.check(Uzn(Aqn,s)),n.jwt=s=>n.check(nGn($qn,s)),n.emoji=s=>n.check(Hzn(_qn,s)),n.guid=s=>n.check(T8t(k8t,s)),n.uuid=s=>n.check(jzn(Rie,s)),n.uuidv4=s=>n.check(Fzn(Rie,s)),n.uuidv6=s=>n.check($zn(Rie,s)),n.uuidv7=s=>n.check(Bzn(Rie,s)),n.nanoid=s=>n.check(zzn(xqn,s)),n.guid=s=>n.check(T8t(k8t,s)),n.cuid=s=>n.check(Gzn(kqn,s)),n.cuid2=s=>n.check(qzn(Nqn,s)),n.ulid=s=>n.check(Vzn(Cqn,s)),n.base64=s=>n.check(Qzn(Pqn,s)),n.base64url=s=>n.check(eGn(jqn,s)),n.xid=s=>n.check(Wzn(Iqn,s)),n.ksuid=s=>n.check(Kzn(Rqn,s)),n.ipv4=s=>n.check(Yzn(Oqn,s)),n.ipv6=s=>n.check(Jzn(Lqn,s)),n.cidrv4=s=>n.check(Xzn(Dqn,s)),n.cidrv6=s=>n.check(Zzn(Mqn,s)),n.e164=s=>n.check(tGn(Fqn,s)),n.datetime=s=>n.check(nqn(s)),n.date=s=>n.check(iqn(s)),n.time=s=>n.check(sqn(s)),n.duration=s=>n.check(uqn(s))});function Jt(n){return Mzn(Sqn,n)}const hl=cn("ZodStringFormat",(n,i)=>{Pc.init(n,i),MVt.init(n,i)}),Tqn=cn("ZodEmail",(n,i)=>{$Hn.init(n,i),hl.init(n,i)}),k8t=cn("ZodGUID",(n,i)=>{jHn.init(n,i),hl.init(n,i)}),Rie=cn("ZodUUID",(n,i)=>{FHn.init(n,i),hl.init(n,i)}),Aqn=cn("ZodURL",(n,i)=>{BHn.init(n,i),hl.init(n,i)}),_qn=cn("ZodEmoji",(n,i)=>{UHn.init(n,i),hl.init(n,i)}),xqn=cn("ZodNanoID",(n,i)=>{HHn.init(n,i),hl.init(n,i)}),kqn=cn("ZodCUID",(n,i)=>{zHn.init(n,i),hl.init(n,i)}),Nqn=cn("ZodCUID2",(n,i)=>{GHn.init(n,i),hl.init(n,i)}),Cqn=cn("ZodULID",(n,i)=>{qHn.init(n,i),hl.init(n,i)}),Iqn=cn("ZodXID",(n,i)=>{VHn.init(n,i),hl.init(n,i)}),Rqn=cn("ZodKSUID",(n,i)=>{WHn.init(n,i),hl.init(n,i)}),Oqn=cn("ZodIPv4",(n,i)=>{ZHn.init(n,i),hl.init(n,i)}),Lqn=cn("ZodIPv6",(n,i)=>{QHn.init(n,i),hl.init(n,i)}),Dqn=cn("ZodCIDRv4",(n,i)=>{ezn.init(n,i),hl.init(n,i)}),Mqn=cn("ZodCIDRv6",(n,i)=>{tzn.init(n,i),hl.init(n,i)}),Pqn=cn("ZodBase64",(n,i)=>{nzn.init(n,i),hl.init(n,i)}),jqn=cn("ZodBase64URL",(n,i)=>{izn.init(n,i),hl.init(n,i)}),Fqn=cn("ZodE164",(n,i)=>{ozn.init(n,i),hl.init(n,i)}),$qn=cn("ZodJWT",(n,i)=>{azn.init(n,i),hl.init(n,i)}),PVt=cn("ZodNumber",(n,i)=>{TVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(u,d,g)=>OGn(n,u,d),n.gt=(u,d)=>n.check(_8t(u,d)),n.gte=(u,d)=>n.check(uIe(u,d)),n.min=(u,d)=>n.check(uIe(u,d)),n.lt=(u,d)=>n.check(A8t(u,d)),n.lte=(u,d)=>n.check(aIe(u,d)),n.max=(u,d)=>n.check(aIe(u,d)),n.int=u=>n.check(N8t(u)),n.safe=u=>n.check(N8t(u)),n.positive=u=>n.check(_8t(0,u)),n.nonnegative=u=>n.check(uIe(0,u)),n.negative=u=>n.check(A8t(0,u)),n.nonpositive=u=>n.check(aIe(0,u)),n.multipleOf=(u,d)=>n.check(x8t(u,d)),n.step=(u,d)=>n.check(x8t(u,d)),n.finite=()=>n;const s=n._zod.bag;n.minValue=Math.max(s.minimum??Number.NEGATIVE_INFINITY,s.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(s.maximum??Number.POSITIVE_INFINITY,s.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(s.format??"").includes("int")||Number.isSafeInteger(s.multipleOf??.5),n.isFinite=!0,n.format=s.format??null});function pa(n){return aGn(PVt,n)}const Bqn=cn("ZodNumberFormat",(n,i)=>{uzn.init(n,i),PVt.init(n,i)});function N8t(n){return uGn(Bqn,n)}const Uqn=cn("ZodBoolean",(n,i)=>{czn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>LGn(n,s,u)});function Ew(n){return cGn(Uqn,n)}const Hqn=cn("ZodNull",(n,i)=>{lzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>DGn(n,s,u)});function C8t(n){return lGn(Hqn,n)}const zqn=cn("ZodAny",(n,i)=>{dzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>PGn()});function Gqn(){return dGn(zqn)}const qqn=cn("ZodUnknown",(n,i)=>{fzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>jGn()});function Lu(){return fGn(qqn)}const Vqn=cn("ZodNever",(n,i)=>{hzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>MGn(n,s,u)});function Wqn(n){return hGn(Vqn,n)}const Kqn=cn("ZodArray",(n,i)=>{pzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>HGn(n,s,u,d),n.element=i.element,n.min=(s,u)=>n.check(ose(s,u)),n.nonempty=s=>n.check(ose(1,s)),n.max=(s,u)=>n.check(NVt(s,u)),n.length=(s,u)=>n.check(CVt(s,u)),n.unwrap=()=>n.element});function cs(n,i){return _Gn(Kqn,n,i)}const jVt=cn("ZodObject",(n,i)=>{bzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>zGn(n,s,u,d),Ys(n,"shape",()=>i.shape),n.keyof=()=>Gg(Object.keys(n._zod.def.shape)),n.catchall=s=>n.clone({...n._zod.def,catchall:s}),n.passthrough=()=>n.clone({...n._zod.def,catchall:Lu()}),n.loose=()=>n.clone({...n._zod.def,catchall:Lu()}),n.strict=()=>n.clone({...n._zod.def,catchall:Wqn()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=s=>DUn(n,s),n.safeExtend=s=>MUn(n,s),n.merge=s=>PUn(n,s),n.pick=s=>OUn(n,s),n.omit=s=>LUn(n,s),n.partial=(...s)=>jUn($Vt,n,s[0]),n.required=(...s)=>FUn(BVt,n,s[0])});function Su(n,i){const s={type:"object",shape:n??{},...wi(i)};return new jVt(s)}function $p(n,i){return new jVt({type:"object",shape:n,catchall:Lu(),...wi(i)})}const FVt=cn("ZodUnion",(n,i)=>{xVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>GGn(n,s,u,d),n.options=i.options});function Yi(n,i){return new FVt({type:"union",options:n,...wi(i)})}const Yqn=cn("ZodDiscriminatedUnion",(n,i)=>{FVt.init(n,i),mzn.init(n,i)});function Jqn(n,i,s){return new Yqn({type:"union",options:i,discriminator:n,...wi(s)})}const Xqn=cn("ZodIntersection",(n,i)=>{wzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>qGn(n,s,u,d)});function Zqn(n,i){return new Xqn({type:"intersection",left:n,right:i})}const Qqn=cn("ZodRecord",(n,i)=>{yzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>VGn(n,s,u,d),n.keyType=i.keyType,n.valueType=i.valueType});function yf(n,i,s){return new Qqn({type:"record",keyType:n,valueType:i,...wi(s)})}const PLe=cn("ZodEnum",(n,i)=>{vzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(u,d,g)=>FGn(n,u,d),n.enum=i.entries,n.options=Object.values(i.entries);const s=new Set(Object.keys(i.entries));n.extract=(u,d)=>{const g={};for(const b of u)if(s.has(b))g[b]=i.entries[b];else throw new Error(`Key ${b} not found in enum`);return new PLe({...i,checks:[],...wi(d),entries:g})},n.exclude=(u,d)=>{const g={...i.entries};for(const b of u)if(s.has(b))delete g[b];else throw new Error(`Key ${b} not found in enum`);return new PLe({...i,checks:[],...wi(d),entries:g})}});function Gg(n,i){const s=Array.isArray(n)?Object.fromEntries(n.map(u=>[u,u])):n;return new PLe({type:"enum",entries:s,...wi(i)})}const eVn=cn("ZodLiteral",(n,i)=>{Ezn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>$Gn(n,s,u),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 _N(n,i){return new eVn({type:"literal",values:Array.isArray(n)?n:[n],...wi(i)})}const tVn=cn("ZodTransform",(n,i)=>{Szn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>UGn(n,s),n._zod.parse=(s,u)=>{if(u.direction==="backward")throw new aVt(n.constructor.name);s.addIssue=g=>{if(typeof g=="string")s.issues.push(sz(g,s.value,i));else{const b=g;b.fatal&&(b.continue=!1),b.code??(b.code="custom"),b.input??(b.input=s.value),b.inst??(b.inst=n),s.issues.push(sz(b))}};const d=i.transform(s.value,s);return d instanceof Promise?d.then(g=>(s.value=g,s)):(s.value=d,s)}});function nVn(n){return new tVn({type:"transform",transform:n})}const $Vt=cn("ZodOptional",(n,i)=>{kVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>LVt(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function I8t(n){return new $Vt({type:"optional",innerType:n})}const rVn=cn("ZodExactOptional",(n,i)=>{Tzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>LVt(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function iVn(n){return new rVn({type:"optional",innerType:n})}const oVn=cn("ZodNullable",(n,i)=>{Azn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>WGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function R8t(n){return new oVn({type:"nullable",innerType:n})}const sVn=cn("ZodDefault",(n,i)=>{_zn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>YGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function aVn(n,i){return new sVn({type:"default",innerType:n,get defaultValue(){return typeof i=="function"?i():dVt(i)}})}const uVn=cn("ZodPrefault",(n,i)=>{xzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>JGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function cVn(n,i){return new uVn({type:"prefault",innerType:n,get defaultValue(){return typeof i=="function"?i():dVt(i)}})}const BVt=cn("ZodNonOptional",(n,i)=>{kzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>KGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function lVn(n,i){return new BVt({type:"nonoptional",innerType:n,...wi(i)})}const dVn=cn("ZodCatch",(n,i)=>{Nzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>XGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function fVn(n,i){return new dVn({type:"catch",innerType:n,catchValue:typeof i=="function"?i:()=>i})}const hVn=cn("ZodPipe",(n,i)=>{Czn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>ZGn(n,s,u,d),n.in=i.in,n.out=i.out});function O8t(n,i){return new hVn({type:"pipe",in:n,out:i})}const pVn=cn("ZodReadonly",(n,i)=>{Izn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>QGn(n,s,u,d),n.unwrap=()=>n._zod.def.innerType});function gVn(n){return new pVn({type:"readonly",innerType:n})}const bVn=cn("ZodLazy",(n,i)=>{Rzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>eqn(n,s,u,d),n.unwrap=()=>n._zod.def.getter()});function gMe(n){return new bVn({type:"lazy",getter:n})}const mVn=cn("ZodCustom",(n,i)=>{Ozn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,u,d)=>BGn(n,s)});function wVn(n,i={}){return xGn(mVn,n,i)}function yVn(n){return kGn(n)}const Pl={custom:"custom"};Jt().min(1).brand();const L8t=Jt().regex(/^[a-z_]+\.[a-z0-9_]+$/,"Entity ID must be in format: domain.entity_name (e.g., light.living_room)"),HM=Su({x:pa(),y:pa()});Su({id:Jt(),type:Gg(["source","target"]),position:Gg(["top","bottom","left","right"])});const vVn=Gg(["single","restart","queued","parallel"]),EVn=Gg(["silent","warning","critical"]),UVt=Su({id:Jt().min(1),source:Jt().min(1),target:Jt().min(1),sourceHandle:Jt().nullable().optional(),targetHandle:Jt().nullable().optional(),label:Jt().optional(),animated:Ew().optional()});UVt.extend({sourceHandle:Gg(["true","false"])});const SVn=["sun","mon","tue","wed","thu","fri","sat"],Ug=$p({alias:Jt().optional(),condition:Jt().optional(),enabled:Ew().optional(),entity_id:Yi([Jt(),cs(Jt())]).optional(),state:Yi([Jt(),cs(Jt())]).optional(),value_template:Jt().optional(),after:Jt().optional(),before:Jt().optional(),weekday:cs(Gg(SVn)).optional(),after_offset:Jt().optional(),before_offset:Jt().optional(),zone:Jt().optional(),conditions:cs(gMe(()=>Ug)).optional(),above:Yi([Jt(),pa()]).optional(),below:Yi([Jt(),pa()]).optional(),attribute:Jt().optional(),id:Yi([Jt(),cs(Jt())]).optional()});Gg(["event","template","zone","state","time","time_pattern","mqtt","webhook","sun","numeric_state","homeassistant","device","calendar"]);const gN=$p({alias:Jt().optional(),platform:Jt().optional(),trigger:Jt().optional(),target:$p({entity_id:Yi([Jt(),cs(Jt())])}).optional(),options:$p({}).optional(),entity_id:Yi([Jt(),cs(Jt())]).optional(),from:Yi([Jt(),cs(Jt()),C8t()]).optional(),to:Yi([Jt(),cs(Jt()),C8t()]).optional(),for:Yi([Jt(),pa(),Su({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})]).optional(),at:Lu().optional(),offset:Jt().optional(),event:Jt().optional(),event_type:Yi([Jt(),cs(Jt())]).optional(),event_data:yf(Jt(),Lu()).optional(),above:Yi([Jt(),pa()]).optional(),below:Yi([Jt(),pa()]).optional(),value_template:Jt().optional(),template:Jt().optional(),webhook_id:Jt().optional(),zone:Jt().optional(),topic:Jt().optional(),payload:Jt().optional(),command:Yi([Jt(),cs(Jt())]).optional()}).transform(n=>{const i=n.trigger??n.platform??"state",{platform:s,...u}=n;return{...u,trigger:i}}),D8t=Su({mode:Gg(["single","restart","queued","parallel"]).default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning","critical"]).optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:Su({stored_traces:pa().optional()}).optional()});function TVn(n){return typeof n=="object"&&n!==null&&("condition"in n||"entity_id"in n||"state"in n)}function bMe(n){return typeof n=="object"&&n!==null&&"type"in n&&"device_id"in n&&"domain"in n}const HVt=Su({version:pa(),nodes:yf(Jt(),Su({x:pa(),y:pa()})),graph_id:Jt(),graph_version:pa(),strategy:Gg(["native","state-machine"])}),M8t=gMe(()=>Su({conditions:Yi([Ug,cs(Ug)]),sequence:Yi([$m,cs($m)]),alias:Jt().optional()})),$m=gMe(()=>$p({service:Jt().optional(),action:Jt().optional(),event:Jt().optional(),event_data:yf(Jt(),Lu()).optional(),id:Jt().optional(),alias:Jt().optional(),target:yf(Jt(),Lu()).optional(),data:yf(Jt(),Lu()).optional(),data_template:yf(Jt(),Lu()).optional(),response_variable:Jt().optional(),continue_on_error:Ew().optional(),enabled:Ew().optional(),delay:Yi([Jt(),pa(),yf(Jt(),pa())]).optional(),wait_template:Yi([Jt(),yf(Jt(),Lu())]).optional(),timeout:Yi([Jt(),pa(),yf(Jt(),pa())]).optional(),continue_on_timeout:Ew().optional(),wait_for_trigger:Yi([gN,cs(gN)]).optional(),choose:Yi([M8t,cs(M8t)]).optional(),default:cs($m).optional(),if:cs(Ug).optional(),then:cs($m).optional(),else:cs($m).optional(),variables:yf(Jt(),Lu()).optional(),repeat:Su({count:Yi([Jt(),pa()]).optional(),while:cs(Ug).optional(),until:Yi([Jt(),cs(Jt()),cs(Ug)]).optional(),sequence:cs($m)}).optional()})),AVn=Su({id:Jt().optional(),alias:Jt().optional(),description:Jt().optional(),trigger_variables:yf(Jt(),Lu()).optional(),trigger:Yi([gN,cs(gN)]).optional(),condition:Yi([Ug,cs(Ug)]).optional(),action:Yi([$m,cs($m)]),mode:Gg(["single","restart","queued","parallel"]).optional().default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning"]).optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:yf(Jt(),Lu()).optional(),variables:Su({_cafe_metadata:HVt.optional()}).catchall(Lu()).optional()});AVn.omit({action:!0}).extend({action:Yi([$m,cs($m)]).optional(),sequence:Yi([$m,cs($m)])});const _Vn=$p({id:Jt().optional(),alias:Jt().optional(),delay:Yi([Jt(),$p({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})])}),xVn=$p({id:Jt().optional(),alias:Jt().optional(),wait_template:Jt().optional(),wait_for_trigger:cs(gN).optional(),timeout:Yi([Jt(),$p({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})]).optional(),continue_on_timeout:Ew().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"]}),kVn=$p({id:Jt().optional(),alias:Jt().optional(),variables:yf(Jt(),Lu())}),NVn=$p({id:Jt().min(1),type:_N("trigger"),position:HM,data:gN}),CVn=$p({id:Jt().min(1),type:_N("condition"),position:HM,data:Ug}),IVn=$p({id:Jt().min(1),type:_N("action"),position:HM,data:$m}),RVn=$p({id:Jt().min(1),type:_N("delay"),position:HM,data:_Vn}),OVn=$p({id:Jt().min(1),type:_N("wait"),position:HM,data:xVn}),LVn=$p({id:Jt().min(1),type:_N("set_variables"),position:HM,data:kVn}),DVn=Jqn("type",[NVn,CVn,IVn,RVn,OVn,LVn]),MVn=Su({mode:vVn.default("single"),max_exceeded:EVn.optional(),max:pa().positive().optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:Su({stored_traces:pa().optional()}).optional()}),PVn=Su({automation_id:Jt(),entity_id:Jt(),alias:Jt(),node_prefix:Jt(),imported_at:Jt()}),jVn=Su({mode:_N("merged"),sources:cs(PVn)}),zVt=Su({id:Jt().uuid(),name:Jt().min(1),description:Jt().optional(),nodes:cs(DVn),edges:cs(UVt),metadata:MVn.optional(),version:_N(1).default(1),userVariables:yf(Jt(),Lu()).optional(),userTriggerVariables:yf(Jt(),Lu()).optional(),workspace:jVn.optional()});function GVt(n){const i=[],s=new Set(n.nodes.map(b=>b.id));s.size!==n.nodes.length&&i.push("Duplicate node IDs detected");for(const b of n.edges)s.has(b.source)||i.push(`Edge ${b.id} references non-existent source node: ${b.source}`),s.has(b.target)||i.push(`Edge ${b.id} references non-existent target node: ${b.target}`);const u=n.nodes.filter(b=>b.type==="trigger");u.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 u)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}}Gg(["state","time","time_pattern","event","mqtt","webhook","sun","zone","numeric_state","template","homeassistant","device"]);Gg(["state","numeric_state","template","time","zone","and","or","not","sun","device","trigger"]);Su({entity_id:Yi([L8t,cs(L8t)]).optional(),area_id:Yi([Jt(),cs(Jt())]).optional(),device_id:Yi([Jt(),cs(Jt())]).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:Yi([Jt(),cs(Jt())]).optional(),area_id:Yi([Jt(),cs(Jt())]).optional(),device_id:Yi([Jt(),cs(Jt())]).optional()}).optional();yf(Jt(),Lu());yf(Jt(),Jt());const FVn=Su({wait_template:Jt().optional(),wait_for_trigger:cs(Gqn()).optional(),timeout:Yi([Jt(),Su({})]).optional()}).passthrough().refine(n=>{const i=n.wait_template&&n.wait_template.trim()!=="",s=n.wait_for_trigger&&n.wait_for_trigger.length>0;return i||s},{message:"Wait node requires either a template condition or trigger. Use a Delay node for simple time-based pauses.",path:["_root"]}),$Vn=Su({service:Jt().optional(),event:Jt().optional()}).passthrough().superRefine((n,i)=>{const s=typeof n.event=="string"&&n.event.trim()!=="",u=typeof n.service=="string"&&n.service.trim()!=="";if(!s&&!u){i.addIssue({code:Pl.custom,message:"Either a service (e.g. light.turn_on) or an event name is required",path:["service"]});return}u&&!n.service.includes(".")&&i.addIssue({code:Pl.custom,message:"Service must be in domain.service format (e.g., light.turn_on)",path:["service"]})});function aM(n){return Array.isArray(n)?n.length>0:typeof n=="string"?n.trim()!=="":!1}function BVn(n){return Array.isArray(n)?n.length>0&&n.every(i=>typeof i=="string"&&i.trim()!==""):typeof n=="string"?n.trim()!=="":!1}const UVn=Su({trigger:Jt().optional(),platform:Jt().optional(),entity_id:Lu().optional(),to:Lu().optional(),from:Lu().optional(),event_type:Jt().optional(),at:Lu().optional(),topic:Jt().optional(),webhook_id:Jt().optional(),device_id:Jt().optional(),zone:Jt().optional(),event:Jt().optional(),value_template:Jt().optional()}).passthrough().superRefine((n,i)=>{const s=n.trigger||n.platform;if(!s||s.trim()===""){i.addIssue({code:Pl.custom,message:"Trigger platform is required",path:["trigger"]});return}switch(s){case"state":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state triggers",path:["entity_id"]});break;case"numeric_state":aM(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":aM(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:s==="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}}),HVn=Su({delay:Yi([Jt(),Su({})])}).passthrough().refine(n=>typeof n.delay=="string"?n.delay.trim()!=="":!0,{message:"Delay value is required",path:["delay"]}),zVn=Su({condition:Jt().min(1,"Condition type is required"),entity_id:Lu().optional(),state:Lu().optional(),value_template:Jt().optional(),zone:Jt().optional(),device_id:Jt().optional(),id:Lu().optional()}).passthrough().superRefine((n,i)=>{switch(n.condition){case"state":aM(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":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state conditions",path:["entity_id"]});break;case"trigger":BVn(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":aM(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}}),qVt=["current_node"];function VVt(n){return qVt.includes(n.trim())}const GVn=Su({variables:yf(Jt(),Lu()).optional()}).passthrough().refine(n=>n.variables?Object.keys(n.variables).length>0:!1,{message:"At least one variable must be defined",path:["variables"]}).refine(n=>!Object.keys(n.variables??{}).some(VVt),{message:`These names are reserved by the transpiler and cannot be used as variables: ${qVt.join(", ")}`,path:["variables"]});function qVn(n){switch(n){case"wait":return FVn;case"action":return $Vn;case"trigger":return UVn;case"delay":return HVn;case"condition":return zVn;case"set_variables":return GVn;default:return}}function P8t(n,i){const s=qVn(n);if(!s)return[];const u=s.safeParse(i);return u.success?[]:u.error.issues.map(d=>({path:d.path.map(String),message:d.message}))}function QU(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 cIe,j8t;function VVn(){if(j8t)return cIe;j8t=1;function n(){this.__data__=[],this.size=0}return cIe=n,cIe}var lIe,F8t;function mMe(){if(F8t)return lIe;F8t=1;function n(i,s){return i===s||i!==i&&s!==s}return lIe=n,lIe}var dIe,$8t;function Cae(){if($8t)return dIe;$8t=1;var n=mMe();function i(s,u){for(var d=s.length;d--;)if(n(s[d][0],u))return d;return-1}return dIe=i,dIe}var fIe,B8t;function WVn(){if(B8t)return fIe;B8t=1;var n=Cae(),i=Array.prototype,s=i.splice;function u(d){var g=this.__data__,b=n(g,d);if(b<0)return!1;var w=g.length-1;return b==w?g.pop():s.call(g,b,1),--this.size,!0}return fIe=u,fIe}var hIe,U8t;function KVn(){if(U8t)return hIe;U8t=1;var n=Cae();function i(s){var u=this.__data__,d=n(u,s);return d<0?void 0:u[d][1]}return hIe=i,hIe}var pIe,H8t;function YVn(){if(H8t)return pIe;H8t=1;var n=Cae();function i(s){return n(this.__data__,s)>-1}return pIe=i,pIe}var gIe,z8t;function JVn(){if(z8t)return gIe;z8t=1;var n=Cae();function i(s,u){var d=this.__data__,g=n(d,s);return g<0?(++this.size,d.push([s,u])):d[g][1]=u,this}return gIe=i,gIe}var bIe,G8t;function Iae(){if(G8t)return bIe;G8t=1;var n=VVn(),i=WVn(),s=KVn(),u=YVn(),d=JVn();function g(b){var w=-1,E=b==null?0:b.length;for(this.clear();++w-1&&u%1==0&&u-1&&s%1==0&&s<=n}return d4e=i,d4e}var f4e,UPt;function TWn(){if(UPt)return f4e;UPt=1;var n=GM(),i=SMe(),s=xA(),u="[object Arguments]",d="[object Array]",g="[object Boolean]",b="[object Date]",w="[object Error]",E="[object Function]",S="[object Map]",x="[object Number]",A="[object Object]",C="[object RegExp]",R="[object Set]",D="[object String]",L="[object WeakMap]",B="[object ArrayBuffer]",$="[object DataView]",j="[object Float32Array]",P="[object Float64Array]",G="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",Q="[object Uint8Array]",ie="[object Uint8ClampedArray]",he="[object Uint16Array]",ge="[object Uint32Array]",ce={};ce[j]=ce[P]=ce[G]=ce[ee]=ce[ne]=ce[Q]=ce[ie]=ce[he]=ce[ge]=!0,ce[u]=ce[d]=ce[B]=ce[g]=ce[$]=ce[b]=ce[w]=ce[E]=ce[S]=ce[x]=ce[A]=ce[C]=ce[R]=ce[D]=ce[L]=!1;function fe(K){return s(K)&&i(K.length)&&!!ce[n(K)]}return f4e=fe,f4e}var h4e,HPt;function TMe(){if(HPt)return h4e;HPt=1;function n(i){return function(s){return i(s)}}return h4e=n,h4e}var tH={exports:{}};tH.exports;var zPt;function AMe(){return zPt||(zPt=1,function(n,i){var s=WVt(),u=i&&!i.nodeType&&i,d=u&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===u,b=g&&s.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}(tH,tH.exports)),tH.exports}var p4e,GPt;function Pae(){if(GPt)return p4e;GPt=1;var n=TWn(),i=TMe(),s=AMe(),u=s&&s.isTypedArray,d=u?i(u):n;return p4e=d,p4e}var g4e,qPt;function QVt(){if(qPt)return g4e;qPt=1;var n=vWn(),i=Mae(),s=ih(),u=Mz(),d=ZVt(),g=Pae(),b=Object.prototype,w=b.hasOwnProperty;function E(S,x){var A=s(S),C=!A&&i(S),R=!A&&!C&&u(S),D=!A&&!C&&!R&&g(S),L=A||C||R||D,B=L?n(S.length,String):[],$=B.length;for(var j in S)(x||w.call(S,j))&&!(L&&(j=="length"||R&&(j=="offset"||j=="parent")||D&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||d(j,$)))&&B.push(j);return B}return g4e=E,g4e}var b4e,VPt;function jae(){if(VPt)return b4e;VPt=1;var n=Object.prototype;function i(s){var u=s&&s.constructor,d=typeof u=="function"&&u.prototype||n;return s===d}return b4e=i,b4e}var m4e,WPt;function eWt(){if(WPt)return m4e;WPt=1;function n(i,s){return function(u){return i(s(u))}}return m4e=n,m4e}var w4e,KPt;function AWn(){if(KPt)return w4e;KPt=1;var n=eWt(),i=n(Object.keys,Object);return w4e=i,w4e}var y4e,YPt;function _Me(){if(YPt)return y4e;YPt=1;var n=jae(),i=AWn(),s=Object.prototype,u=s.hasOwnProperty;function d(g){if(!n(g))return i(g);var b=[];for(var w in Object(g))u.call(g,w)&&w!="constructor"&&b.push(w);return b}return y4e=d,y4e}var v4e,JPt;function OR(){if(JPt)return v4e;JPt=1;var n=Rae(),i=SMe();function s(u){return u!=null&&i(u.length)&&!n(u)}return v4e=s,v4e}var E4e,XPt;function LR(){if(XPt)return E4e;XPt=1;var n=QVt(),i=_Me(),s=OR();function u(d){return s(d)?n(d):i(d)}return E4e=u,E4e}var S4e,ZPt;function _Wn(){if(ZPt)return S4e;ZPt=1;var n=Dae(),i=LR();function s(u,d){return u&&n(d,i(d),u)}return S4e=s,S4e}var T4e,QPt;function xWn(){if(QPt)return T4e;QPt=1;function n(i){var s=[];if(i!=null)for(var u in Object(i))s.push(u);return s}return T4e=n,T4e}var A4e,ejt;function kWn(){if(ejt)return A4e;ejt=1;var n=IR(),i=jae(),s=xWn(),u=Object.prototype,d=u.hasOwnProperty;function g(b){if(!n(b))return s(b);var w=i(b),E=[];for(var S in b)S=="constructor"&&(w||!d.call(b,S))||E.push(S);return E}return A4e=g,A4e}var _4e,tjt;function xMe(){if(tjt)return _4e;tjt=1;var n=QVt(),i=kWn(),s=OR();function u(d){return s(d)?n(d,!0):i(d)}return _4e=u,_4e}var x4e,njt;function NWn(){if(njt)return x4e;njt=1;var n=Dae(),i=xMe();function s(u,d){return u&&n(d,i(d),u)}return x4e=s,x4e}var nH={exports:{}};nH.exports;var rjt;function CWn(){return rjt||(rjt=1,function(n,i){var s=Y2(),u=i&&!i.nodeType&&i,d=u&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===u,b=g?s.Buffer:void 0,w=b?b.allocUnsafe:void 0;function E(S,x){if(x)return S.slice();var A=S.length,C=w?w(A):new S.constructor(A);return S.copy(C),C}n.exports=E}(nH,nH.exports)),nH.exports}var k4e,ijt;function IWn(){if(ijt)return k4e;ijt=1;function n(i,s){var u=-1,d=i.length;for(s||(s=Array(d));++uR))return!1;var L=A.get(b),B=A.get(w);if(L&&B)return L==w&&B==b;var $=-1,j=!0,P=E&d?new n:void 0;for(A.set(b,w),A.set(w,b);++$0&&g(x)?d>1?s(x,d-1,g,b,w):n(w,x):b||(w[w.length]=x)}return w}return wOe=s,wOe}var yOe,J7t;function zKn(){if(J7t)return yOe;J7t=1;function n(i,s,u){switch(u.length){case 0:return i.call(s);case 1:return i.call(s,u[0]);case 2:return i.call(s,u[0],u[1]);case 3:return i.call(s,u[0],u[1],u[2])}return i.apply(s,u)}return yOe=n,yOe}var vOe,X7t;function GKn(){if(X7t)return vOe;X7t=1;var n=zKn(),i=Math.max;function s(u,d,g){return d=i(d===void 0?u.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 SOe=u,SOe}var TOe,eFt;function WKn(){if(eFt)return TOe;eFt=1;var n=qKn(),i=VKn(),s=i(n);return TOe=s,TOe}var AOe,tFt;function KKn(){if(tFt)return AOe;tFt=1;var n=$ae(),i=GKn(),s=WKn();function u(d,g){return s(i(d,g,n),d+"")}return AOe=u,AOe}var _Oe,nFt;function YKn(){if(nFt)return _Oe;nFt=1;function n(i,s,u,d){for(var g=i.length,b=u+(d?1:-1);d?b--:++b-1}return COe=i,COe}var IOe,aFt;function eYn(){if(aFt)return IOe;aFt=1;function n(i,s,u){for(var d=-1,g=i==null?0:i.length;++d=b){var $=S?null:d(E);if($)return g($);D=!1,C=u,B=new n}else B=S?[]:L;e:for(;++A1?u.setNode(d,i):u.setNode(d)}),this};ys.prototype.setNode=function(n,i){return Do.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]=vR,this._children[n]={},this._children[vR][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)};ys.prototype.node=function(n){return this._nodes[n]};ys.prototype.hasNode=function(n){return Do.has(this._nodes,n)};ys.prototype.removeNode=function(n){var i=this;if(Do.has(this._nodes,n)){var s=function(u){i.removeEdge(i._edgeObjs[u])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],Do.each(this.children(n),function(u){i.setParent(u)}),delete this._children[n]),Do.each(Do.keys(this._in[n]),s),delete this._in[n],delete this._preds[n],Do.each(Do.keys(this._out[n]),s),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this};ys.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Do.isUndefined(i))i=vR;else{i+="";for(var s=i;!Do.isUndefined(s);s=this.parent(s))if(s===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};ys.prototype._removeFromParentsChildList=function(n){delete this._children[this._parent[n]][n]};ys.prototype.parent=function(n){if(this._isCompound){var i=this._parent[n];if(i!==vR)return i}};ys.prototype.children=function(n){if(Do.isUndefined(n)&&(n=vR),this._isCompound){var i=this._children[n];if(i)return Do.keys(i)}else{if(n===vR)return this.nodes();if(this.hasNode(n))return[]}};ys.prototype.predecessors=function(n){var i=this._preds[n];if(i)return Do.keys(i)};ys.prototype.successors=function(n){var i=this._sucs[n];if(i)return Do.keys(i)};ys.prototype.neighbors=function(n){var i=this.predecessors(n);if(i)return Do.union(i,this.successors(n))};ys.prototype.isLeaf=function(n){var i;return this.isDirected()?i=this.successors(n):i=this.neighbors(n),i.length===0};ys.prototype.filterNodes=function(n){var i=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});i.setGraph(this.graph());var s=this;Do.each(this._nodes,function(g,b){n(b)&&i.setNode(b,g)}),Do.each(this._edgeObjs,function(g){i.hasNode(g.v)&&i.hasNode(g.w)&&i.setEdge(g,s.edge(g))});var u={};function d(g){var b=s.parent(g);return b===void 0||i.hasNode(b)?(u[g]=b,b):b in u?u[b]:d(b)}return this._isCompound&&Do.each(i.nodes(),function(g){i.setParent(g,d(g))}),i};ys.prototype.setDefaultEdgeLabel=function(n){return Do.isFunction(n)||(n=Do.constant(n)),this._defaultEdgeLabelFn=n,this};ys.prototype.edgeCount=function(){return this._edgeCount};ys.prototype.edges=function(){return Do.values(this._edgeObjs)};ys.prototype.setPath=function(n,i){var s=this,u=arguments;return Do.reduce(n,function(d,g){return u.length>1?s.setEdge(d,g,i):s.setEdge(d,g),g}),this};ys.prototype.setEdge=function(){var n,i,s,u,d=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(n=g.v,i=g.w,s=g.name,arguments.length===2&&(u=arguments[1],d=!0)):(n=g,i=arguments[1],s=arguments[3],arguments.length>2&&(u=arguments[2],d=!0)),n=""+n,i=""+i,Do.isUndefined(s)||(s=""+s);var b=Pz(this._isDirected,n,i,s);if(Do.has(this._edgeLabels,b))return d&&(this._edgeLabels[b]=u),this;if(!Do.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(i),this._edgeLabels[b]=d?u:this._defaultEdgeLabelFn(n,i,s);var w=cYn(this._isDirected,n,i,s);return n=w.v,i=w.w,Object.freeze(w),this._edgeObjs[b]=w,bFt(this._preds[i],n),bFt(this._sucs[n],i),this._in[i][b]=w,this._out[n][b]=w,this._edgeCount++,this};ys.prototype.edge=function(n,i,s){var u=arguments.length===1?PMe(this._isDirected,arguments[0]):Pz(this._isDirected,n,i,s);return this._edgeLabels[u]};ys.prototype.hasEdge=function(n,i,s){var u=arguments.length===1?PMe(this._isDirected,arguments[0]):Pz(this._isDirected,n,i,s);return Do.has(this._edgeLabels,u)};ys.prototype.removeEdge=function(n,i,s){var u=arguments.length===1?PMe(this._isDirected,arguments[0]):Pz(this._isDirected,n,i,s),d=this._edgeObjs[u];return d&&(n=d.v,i=d.w,delete this._edgeLabels[u],delete this._edgeObjs[u],mFt(this._preds[i],n),mFt(this._sucs[n],i),delete this._in[i][u],delete this._out[n][u],this._edgeCount--),this};ys.prototype.inEdges=function(n,i){var s=this._in[n];if(s){var u=Do.values(s);return i?Do.filter(u,function(d){return d.v===i}):u}};ys.prototype.outEdges=function(n,i){var s=this._out[n];if(s){var u=Do.values(s);return i?Do.filter(u,function(d){return d.w===i}):u}};ys.prototype.nodeEdges=function(n,i){var s=this.inEdges(n,i);if(s)return s.concat(this.outEdges(n,i))};function bFt(n,i){n[i]?n[i]++:n[i]=1}function mFt(n,i){--n[i]||delete n[i]}function Pz(n,i,s,u){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}return d+gFt+g+gFt+(Do.isUndefined(u)?uYn:u)}function cYn(n,i,s,u){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}var w={v:d,w:g};return u&&(w.name=u),w}function PMe(n,i){return Pz(n,i.v,i.w,i.name)}var lYn="2.1.8",dYn={Graph:MMe,version:lYn},B2=Cw,fYn=MMe,hYn={write:pYn,read:mYn};function pYn(n){var i={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:gYn(n),edges:bYn(n)};return B2.isUndefined(n.graph())||(i.value=B2.clone(n.graph())),i}function gYn(n){return B2.map(n.nodes(),function(i){var s=n.node(i),u=n.parent(i),d={v:i};return B2.isUndefined(s)||(d.value=s),B2.isUndefined(u)||(d.parent=u),d})}function bYn(n){return B2.map(n.edges(),function(i){var s=n.edge(i),u={v:i.v,w:i.w};return B2.isUndefined(i.name)||(u.name=i.name),B2.isUndefined(s)||(u.value=s),u})}function mYn(n){var i=new fYn(n.options).setGraph(n.value);return B2.each(n.nodes,function(s){i.setNode(s.v,s.value),s.parent&&i.setParent(s.v,s.parent)}),B2.each(n.edges,function(s){i.setEdge({v:s.v,w:s.w,name:s.name},s.value)}),i}var Oie=Cw,wYn=yYn;function yYn(n){var i={},s=[],u;function d(g){Oie.has(i,g)||(i[g]=!0,u.push(g),Oie.each(n.successors(g),d),Oie.each(n.predecessors(g),d))}return Oie.each(n.nodes(),function(g){u=[],d(g),u.length&&s.push(u)}),s}var EWt=Cw,SWt=Iw;function Iw(){this._arr=[],this._keyIndices={}}Iw.prototype.size=function(){return this._arr.length};Iw.prototype.keys=function(){return this._arr.map(function(n){return n.key})};Iw.prototype.has=function(n){return EWt.has(this._keyIndices,n)};Iw.prototype.priority=function(n){var i=this._keyIndices[n];if(i!==void 0)return this._arr[i].priority};Iw.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Iw.prototype.add=function(n,i){var s=this._keyIndices;if(n=String(n),!EWt.has(s,n)){var u=this._arr,d=u.length;return s[n]=d,u.push({key:n,priority:i}),this._decrease(d),!0}return!1};Iw.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};Iw.prototype.decrease=function(n,i){var s=this._keyIndices[n];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)};Iw.prototype._heapify=function(n){var i=this._arr,s=2*n,u=s+1,d=n;s>1,!(i[u].priority0&&(b=g.removeMin(),w=d[b],w.distance!==Number.POSITIVE_INFINITY);)u(b).forEach(E);return d}var _Yn=TWt,xYn=Cw,kYn=NYn;function NYn(n,i,s){return xYn.transform(n.nodes(),function(u,d){u[d]=_Yn(n,d,i,s)},{})}var wFt=Cw,AWt=CYn;function CYn(n){var i=0,s=[],u={},d=[];function g(b){var w=u[b]={onStack:!0,lowlink:i,index:i++};if(s.push(b),n.successors(b).forEach(function(x){wFt.has(u,x)?u[x].onStack&&(w.lowlink=Math.min(w.lowlink,u[x].index)):(g(x),w.lowlink=Math.min(w.lowlink,u[x].lowlink))}),w.lowlink===w.index){var E=[],S;do S=s.pop(),u[S].onStack=!1,E.push(S);while(b!==S);d.push(E)}}return n.nodes().forEach(function(b){wFt.has(u,b)||g(b)}),d}var IYn=Cw,RYn=AWt,OYn=LYn;function LYn(n){return IYn.filter(RYn(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}var DYn=Cw,MYn=jYn,PYn=DYn.constant(1);function jYn(n,i,s){return FYn(n,i||PYn,s||function(u){return n.outEdges(u)})}function FYn(n,i,s){var u={},d=n.nodes();return d.forEach(function(g){u[g]={},u[g][g]={distance:0},d.forEach(function(b){g!==b&&(u[g][b]={distance:Number.POSITIVE_INFINITY})}),s(g).forEach(function(b){var w=b.v===g?b.w:b.v,E=i(b);u[g][w]={distance:E,predecessor:g}})}),d.forEach(function(g){var b=u[g];d.forEach(function(w){var E=u[w];d.forEach(function(S){var x=E[g],A=b[S],C=E[S],R=x.distance+A.distance;R0;){if(g=d.removeMin(),vFt.has(u,g))s.setEdge(g,u[g]);else{if(w)throw new Error("Input graph is not connected: "+n);w=!0}n.nodeEdges(g).forEach(b)}return s}var ZYn={components:wYn,dijkstra:TWt,dijkstraAll:kYn,findCycles:OYn,floydWarshall:MYn,isAcyclic:$Yn,postorder:zYn,preorder:VYn,prim:JYn,tarjan:AWt,topsort:_Wt},EFt=dYn,QYn={Graph:EFt.Graph,json:hYn,alg:ZYn,version:EFt.version};const eJn=TR(QYn),{Graph:tJn,alg:SFt}=eJn;function CWt(n){const i=new Set,s=new Set,u=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(!s.has(E)){s.add(E),u.add(E);for(const S of d.get(E)||[])u.has(S.target)?i.add(S.id):s.has(S.target)||w(S.target);u.delete(E)}}for(const E of b)w(E);for(const E of n.nodes)s.has(E.id)||w(E.id);return i}function nJn(n){const i=new tJn({directed:!0}),s=CWt(n),u=new Map(n.nodes.map(B=>[B.id,B.type])),d=new Set;for(const B of n.edges){if(!s.has(B.id))continue;const $=u.get(B.source),j=u.get(B.target);($==="condition"||j==="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=!SFt.isAcyclic(i),E=n.nodes.filter(B=>{var $;return(($=i.predecessors(B.id))==null?void 0:$.length)===0}).map(B=>B.id),S=n.nodes.filter(B=>g.filter(j=>j.source===B.id).length===0).map(B=>B.id);let x=null;if(!w)try{x=SFt.topsort(i)}catch{x=null}const A=rJn(i,b,x),C=sJn(b),R=oJn(i,b),D=!w&&!A&&!C&&!R,L=D?"native":"state-machine";return{isTree:D,hasCycles:w,hasMultipleEntryPoints:E.length>1,hasCrossLinks:A,hasConvergingPaths:C,hasDivergentTriggerPaths:R,entryNodes:E,exitNodes:S,topologicalOrder:x,recommendedStrategy:L}}function rJn(n,i,s){if(!s||s.length===0)return!1;const u=new Map,g=i.nodes.filter(x=>{var A;return((A=n.predecessors(x.id))==null?void 0:A.length)===0}).map(x=>x.id).map(x=>({nodeId:x,level:0}));for(;g.length>0;){const{nodeId:x,level:A}=g.shift();if(u.has(x))continue;u.set(x,A);const C=n.successors(x)||[];for(const R of C)u.has(R)||g.push({nodeId:R,level:A+1})}const b=new Set,w=new Map;for(const x of i.edges){const A=(w.get(x.source)||0)+1;w.set(x.source,A)}for(const[x,A]of w)if(A>1){const C=i.nodes.find(R=>R.id===x);(C==null?void 0:C.type)!=="condition"&&(i.edges.filter(L=>L.source===x).some(L=>L.sourceHandle==="true"||L.sourceHandle==="false")||b.add(x))}const E=new Set,S=new Map;for(const x of i.edges){const A=(S.get(x.target)||0)+1;S.set(x.target,A)}for(const[x,A]of S)A>1&&E.add(x);for(const x of i.edges){const A=u.get(x.source),C=u.get(x.target);if(A!==void 0&&C!==void 0){if(C>A+1)return!0;if(C0&&iJn(i,x.source,b))continue;return!0}}}return!1}function iJn(n,i,s){const u=new Set,d=[i];for(;d.length>0;){const g=d.shift();if(u.has(g))continue;if(u.add(g),s.has(g))return!0;const b=n.edges.filter(w=>w.target===g).map(w=>w.source);for(const w of b)u.has(w)||d.push(w)}return!1}function oJn(n,i){const s=i.nodes.filter(b=>b.type==="trigger");if(s.length<=1)return!1;const u=s.map(b=>{const w=n.successors(b.id)||[];return new Set(w)});if(s.every(b=>{const w=n.successors(b.id)||[];return w.length>0&&w.every(E=>{const S=i.nodes.find(x=>x.id===E);return(S==null?void 0:S.type)==="condition"})}))return!1;const g=u[0];for(let b=1;b1){const g=n.edges.filter(w=>w.target===u),b=new Set(g.map(w=>w.source));if(b.size>1){if([...b].map(x=>n.nodes.find(A=>A.id===x)).every(x=>(x==null?void 0:x.type)==="trigger"))continue;if(!aJn(n,[...b],s,u))return!0}}return!1}function aJn(n,i,s,u){const d=n.edges.filter(L=>L.target===u),g=i.every(L=>{const B=n.nodes.find($=>$.id===L);return(B==null?void 0:B.type)==="condition"}),b=d.every(L=>L.sourceHandle==="true"),w=d.every(L=>L.sourceHandle==="false");if(g&&(b||w))return!0;const E=L=>n.edges.filter(B=>B.target===L).map(B=>B.source),S=(L,B)=>{if(B.has(L))return null;B.add(L);const $=n.nodes.find(ee=>ee.id===L);if(($==null?void 0:$.type)==="condition")return L;const j=n.edges.filter(ee=>ee.target===L);if(j.length===0||j.length>1)return null;const P=j[0].source,G=n.nodes.find(ee=>ee.id===P);return(G==null?void 0:G.type)==="condition"?P:S(P,B)},x=new Set;let A=!0;for(const L of i){const B=S(L,new Set);if(B)x.add(B);else{A=!1;break}}if(A&&x.size===1)return!0;const C=L=>{const B=n.nodes.find(P=>P.id===L);if((B==null?void 0:B.type)==="condition")return!1;const $=n.edges.filter(P=>P.source===L);return $.some(P=>P.sourceHandle==="true"||P.sourceHandle==="false")?!1:$.length>1},R=(L,B)=>{if(B.has(L))return null;B.add(L);const $=E(L);if($.length===0||$.length>1)return null;const j=$[0];return C(j)?j:R(j,B)},D=new Set;for(const L of i){const B=E(L);if(B.length===1){const j=B[0];if(C(j)){D.add(j);continue}}const $=R(L,new Set);if($)D.add($);else return!1}return D.size===1}function uJn(n){const i=[];let s;try{s=zVt.parse(n)}catch(g){if(g instanceof cqn)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 u=GVt(s);if(!u.valid)for(const g of u.errors)i.push({code:"STRUCTURAL_ERROR",message:g});const d=cJn(s);return i.push(...d),{success:i.length===0,graph:i.length===0?s:void 0,errors:i}}function cJn(n){const i=[],s=n.nodes.filter(w=>w.type==="condition");for(const w of s){const E=n.edges.filter(A=>A.source===w.id),S=E.some(A=>A.sourceHandle==="true"),x=E.some(A=>A.sourceHandle==="false");!S&&!x&&i.push({code:"CONDITION_NO_EDGES",message:`Condition node "${w.id}" has no outgoing edges`,path:["nodes",w.id]})}const u=n.nodes.filter(w=>w.type==="action");for(const w of u)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 IWt(n){return typeof n>"u"||n===null}function lJn(n){return typeof n=="object"&&n!==null}function dJn(n){return Array.isArray(n)?n:IWt(n)?[]:[n]}function fJn(n,i){var s,u,d,g;if(i)for(g=Object.keys(i),s=0,u=g.length;sw&&(g=" ... ",i=u-w+g.length),s-u>w&&(b=" ...",s=u+w-b.length),{str:g+n.slice(i,s).replace(/\t/g,"→")+b,pos:u-i+g.length}}function $Oe(n,i){return vf.repeat(" ",i-n.length)+n}function EJn(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 s=/\r?\n|\r|\0/g,u=[0],d=[],g,b=-1;g=s.exec(n.buffer);)d.push(g.index),u.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=u.length-2);b<0&&(b=u.length-1);var w="",E,S,x=Math.min(n.line+i.linesAfter,d.length).toString().length,A=i.maxLength-(i.indent+x+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=FOe(n.buffer,u[b-E],d[b-E],n.position-(u[b]-u[b-E]),A),w=vf.repeat(" ",i.indent)+$Oe((n.line-E+1).toString(),x)+" | "+S.str+` -`+w;for(S=FOe(n.buffer,u[b],d[b],n.position,A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+1).toString(),x)+" | "+S.str+` -`,w+=vf.repeat("-",i.indent+x+3+S.pos)+`^ -`,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=FOe(n.buffer,u[b+E],d[b+E],n.position-(u[b]-u[b+E]),A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+E+1).toString(),x)+" | "+S.str+` -`;return w.replace(/\n$/,"")}var SJn=EJn,TJn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AJn=["scalar","sequence","mapping"];function _Jn(n){var i={};return n!==null&&Object.keys(n).forEach(function(s){n[s].forEach(function(u){i[String(u)]=s})}),i}function xJn(n,i){if(i=i||{},Object.keys(i).forEach(function(s){if(TJn.indexOf(s)===-1)throw new ib('Unknown option "'+s+'" 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(s){return s},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=_Jn(i.styleAliases||null),AJn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var Bp=xJn;function TFt(n,i){var s=[];return n[i].forEach(function(u){var d=s.length;s.forEach(function(g,b){g.tag===u.tag&&g.kind===u.kind&&g.multi===u.multi&&(d=b)}),s[d]=u}),s}function kJn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,s;function u(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,s=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"]}}),KJn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function YJn(n){return!(n===null||!KJn.test(n)||n[n.length-1]==="_")}function JJn(n){var i,s;return i=n.replace(/_/g,"").toLowerCase(),s=i[0]==="-"?-1:1,"+-".indexOf(i[0])>=0&&(i=i.slice(1)),i===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:i===".nan"?NaN:s*parseFloat(i,10)}var XJn=/^[-+]?[0-9]+e/;function ZJn(n,i){var s;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 s=n.toString(10),XJn.test(s)?s.replace("e",".e"):s}function QJn(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||vf.isNegativeZero(n))}var eXn=new Bp("tag:yaml.org,2002:float",{kind:"scalar",resolve:YJn,construct:JJn,predicate:QJn,represent:ZJn,defaultStyle:"lowercase"}),tXn=OJn.extend({implicit:[PJn,BJn,WJn,eXn]}),nXn=tXn,OWt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),LWt=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 rXn(n){return n===null?!1:OWt.exec(n)!==null||LWt.exec(n)!==null}function iXn(n){var i,s,u,d,g,b,w,E=0,S=null,x,A,C;if(i=OWt.exec(n),i===null&&(i=LWt.exec(n)),i===null)throw new Error("Date resolve error");if(s=+i[1],u=+i[2]-1,d=+i[3],!i[4])return new Date(Date.UTC(s,u,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]&&(x=+i[10],A=+(i[11]||0),S=(x*60+A)*6e4,i[9]==="-"&&(S=-S)),C=new Date(Date.UTC(s,u,d,g,b,w,E)),S&&C.setTime(C.getTime()-S),C}function oXn(n){return n.toISOString()}var sXn=new Bp("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:rXn,construct:iXn,instanceOf:Date,represent:oXn});function aXn(n){return n==="<<"||n===null}var uXn=new Bp("tag:yaml.org,2002:merge",{kind:"scalar",resolve:aXn}),jMe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function cXn(n){if(n===null)return!1;var i,s,u=0,d=n.length,g=jMe;for(s=0;s64)){if(i<0)return!1;u+=6}return u%8===0}function lXn(n){var i,s,u=n.replace(/[\r\n=]/g,""),d=u.length,g=jMe,b=0,w=[];for(i=0;i>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(u.charAt(i));return s=d%4*6,s===0?(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)):s===18?(w.push(b>>10&255),w.push(b>>2&255)):s===12&&w.push(b>>4&255),new Uint8Array(w)}function dXn(n){var i="",s=0,u,d,g=n.length,b=jMe;for(u=0;u>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]),s=(s<<8)+n[u];return d=g%3,d===0?(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]):d===2?(i+=b[s>>10&63],i+=b[s>>4&63],i+=b[s<<2&63],i+=b[64]):d===1&&(i+=b[s>>2&63],i+=b[s<<4&63],i+=b[64],i+=b[64]),i}function fXn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var hXn=new Bp("tag:yaml.org,2002:binary",{kind:"scalar",resolve:cXn,construct:lXn,predicate:fXn,represent:dXn}),pXn=Object.prototype.hasOwnProperty,gXn=Object.prototype.toString;function bXn(n){if(n===null)return!0;var i=[],s,u,d,g,b,w=n;for(s=0,u=w.length;s>10)+55296,(n-65536&1023)+56320)}function $Wt(n,i,s){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):n[i]=s}var BWt=new Array(256),UWt=new Array(256);for(var E5=0;E5<256;E5++)BWt[E5]=xFt(E5)?1:0,UWt[E5]=xFt(E5);function MXn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||DWt,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 HWt(n,i){var s={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return s.snippet=SJn(s),new ib(i,s)}function Ni(n,i){throw HWt(n,i)}function fse(n,i){n.onWarning&&n.onWarning.call(null,HWt(n,i))}var kFt={YAML:function(i,s,u){var d,g,b;i.version!==null&&Ni(i,"duplication of %YAML directive"),u.length!==1&&Ni(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(u[0]),d===null&&Ni(i,"ill-formed argument of the YAML directive"),g=parseInt(d[1],10),b=parseInt(d[2],10),g!==1&&Ni(i,"unacceptable YAML version of the document"),i.version=u[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&fse(i,"unsupported YAML version of the document")},TAG:function(i,s,u){var d,g;u.length!==2&&Ni(i,"TAG directive accepts exactly two arguments"),d=u[0],g=u[1],jWt.test(d)||Ni(i,"ill-formed tag handle (first argument) of the TAG directive"),bN.call(i.tagMap,d)&&Ni(i,'there is a previously declared suffix for "'+d+'" tag handle'),FWt.test(g)||Ni(i,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{Ni(i,"tag prefix is malformed: "+g)}i.tagMap[d]=g}};function eN(n,i,s,u){var d,g,b,w;if(i1&&(n.result+=vf.repeat(` -`,i-1))}function PXn(n,i,s){var u,d,g,b,w,E,S,x,A=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||V5(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)||s&&V5(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)||s&&V5(d))break}else if(R===35){if(u=n.input.charCodeAt(n.position-1),ub(u))break}else{if(n.position===n.lineStart&&Hae(n)||s&&V5(R))break;if(U2(R))if(E=n.line,S=n.lineStart,x=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=x;break}}w&&(eN(n,g,b,!1),$Me(n,n.line-E),g=b=n.position,w=!1),rR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return eN(n,g,b,!1),n.result?!0:(n.kind=A,n.result=C,!1)}function jXn(n,i){var s,u,d;if(s=n.input.charCodeAt(n.position),s!==39)return!1;for(n.kind="scalar",n.result="",n.position++,u=d=n.position;(s=n.input.charCodeAt(n.position))!==0;)if(s===39)if(eN(n,u,n.position,!0),s=n.input.charCodeAt(++n.position),s===39)u=n.position,n.position++,d=n.position;else return!0;else U2(s)?(eN(n,u,d,!0),$Me(n,$d(n,!1,i)),u=d=n.position):n.position===n.lineStart&&Hae(n)?Ni(n,"unexpected end of the document within a single quoted scalar"):(n.position++,d=n.position);Ni(n,"unexpected end of the stream within a single quoted scalar")}function FXn(n,i){var s,u,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,s=u=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return eN(n,s,n.position,!0),n.position++,!0;if(w===92){if(eN(n,s,n.position,!0),w=n.input.charCodeAt(++n.position),U2(w))$d(n,!1,i);else if(w<256&&BWt[w])n.result+=UWt[w],n.position++;else if((b=OXn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=RXn(w))>=0?g=(g<<4)+b:Ni(n,"expected hexadecimal character");n.result+=DXn(g),n.position++}else Ni(n,"unknown escape sequence");s=u=n.position}else U2(w)?(eN(n,s,u,!0),$Me(n,$d(n,!1,i)),s=u=n.position):n.position===n.lineStart&&Hae(n)?Ni(n,"unexpected end of the document within a double quoted scalar"):(n.position++,u=n.position)}Ni(n,"unexpected end of the stream within a double quoted scalar")}function $Xn(n,i){var s=!0,u,d,g,b=n.tag,w,E=n.anchor,S,x,A,C,R,D=Object.create(null),L,B,$,j;if(j=n.input.charCodeAt(n.position),j===91)x=93,R=!1,w=[];else if(j===123)x=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),j=n.input.charCodeAt(++n.position);j!==0;){if($d(n,!0,i),j=n.input.charCodeAt(n.position),j===x)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;s?j===44&&Ni(n,"expected the node content, but found ','"):Ni(n,"missed comma between flow collection entries"),B=L=$=null,A=C=!1,j===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(A=C=!0,n.position++,$d(n,!0,i))),u=n.line,d=n.lineStart,g=n.position,IM(n,i,lse,!1,!0),B=n.tag,L=n.result,$d(n,!0,i),j=n.input.charCodeAt(n.position),(C||n.line===u)&&j===58&&(A=!0,j=n.input.charCodeAt(++n.position),$d(n,!0,i),IM(n,i,lse,!1,!0),$=n.result),R?W5(n,w,D,B,L,$,u,d,g):A?w.push(W5(n,null,D,B,L,$,u,d,g)):w.push(L),$d(n,!0,i),j=n.input.charCodeAt(n.position),j===44?(s=!0,j=n.input.charCodeAt(++n.position)):s=!1}Ni(n,"unexpected end of the stream within a flow collection")}function BXn(n,i){var s,u,d=BOe,g=!1,b=!1,w=i,E=0,S=!1,x,A;if(A=n.input.charCodeAt(n.position),A===124)u=!1;else if(A===62)u=!0;else return!1;for(n.kind="scalar",n.result="";A!==0;)if(A=n.input.charCodeAt(++n.position),A===43||A===45)BOe===d?d=A===43?AFt:kXn:Ni(n,"repeat of a chomping mode identifier");else if((x=LXn(A))>=0)x===0?Ni(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?Ni(n,"repeat of an indentation width identifier"):(w=i+x-1,b=!0);else break;if(rR(A)){do A=n.input.charCodeAt(++n.position);while(rR(A));if(A===35)do A=n.input.charCodeAt(++n.position);while(!U2(A)&&A!==0)}for(;A!==0;){for(FMe(n),n.lineIndent=0,A=n.input.charCodeAt(n.position);(!b||n.lineIndentw&&(w=n.lineIndent),U2(A)){E++;continue}if(n.lineIndenti)&&E!==0)Ni(n,"bad indentation of a sequence entry");else if(n.lineIndenti)&&(B&&(b=n.line,w=n.lineStart,E=n.position),IM(n,i,dse,!0,d)&&(B?D=n.result:L=n.result),B||(W5(n,A,C,R,D,L,b,w,E),R=D=L=null),$d(n,!0,-1),j=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&j!==0)Ni(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+'"'),A=0,C=n.implicitTypes.length;A"),n.result!==null&&D.kind!==n.kind&&Ni(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+D.kind+'", not "'+n.kind+'"'),D.resolve(n.result,n.tag)?(n.result=D.construct(n.result,n.tag),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):Ni(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")}return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||x}function qXn(n){var i=n.position,s,u,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),s=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);for(u=n.input.slice(s,n.position),d=[],u.length<1&&Ni(n,"directive name must not be less than one character in length");b!==0;){for(;rR(b);)b=n.input.charCodeAt(++n.position);if(b===35){do b=n.input.charCodeAt(++n.position);while(b!==0&&!U2(b));break}if(U2(b))break;for(s=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);d.push(n.input.slice(s,n.position))}b!==0&&FMe(n),bN.call(kFt,u)?kFt[u](n,u,d):fse(n,'unknown document directive "'+u+'"')}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&&Ni(n,"directives end mark is expected"),IM(n,n.lineIndent-1,dse,!1,!0),$d(n,!0,-1),n.checkLineBreaks&&CXn.test(n.input.slice(i,n.position))&&fse(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&Hae(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,$d(n,!0,-1));return}if(n.position=55296&&s<=56319&&i+1=56320&&u<=57343)?(s-55296)*1024+u-56320+65536:s}function JWt(n){var i=/^\n* /;return i.test(n)}var XWt=1,BLe=2,ZWt=3,QWt=4,x5=5;function EZn(n,i,s,u,d,g,b,w){var E,S=0,x=null,A=!1,C=!1,R=u!==-1,D=-1,L=yZn(rH(n,0))&&vZn(rH(n,n.length-1));if(i||b)for(E=0;E=65536?E+=2:E++){if(S=rH(n,E),!lz(S))return x5;L=L&&OFt(S,x,w),x=S}else{for(E=0;E=65536?E+=2:E++){if(S=rH(n,E),S===uz)A=!0,R&&(C=C||E-D-1>u&&n[D+1]!==" ",D=E);else if(!lz(S))return x5;L=L&&OFt(S,x,w),x=S}C=C||R&&E-D-1>u&&n[D+1]!==" "}return!A&&!C?L&&!b&&!d(n)?XWt:g===cz?x5:BLe:s>9&&JWt(n)?x5:b?g===cz?x5:BLe:C?QWt:ZWt}function SZn(n,i,s,u,d){n.dump=function(){if(i.length===0)return n.quotingType===cz?'""':"''";if(!n.noCompatMode&&(fZn.indexOf(i)!==-1||hZn.test(i)))return n.quotingType===cz?'"'+i+'"':"'"+i+"'";var g=n.indent*Math.max(1,s),b=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),w=u||n.flowLevel>-1&&s>=n.flowLevel;function E(S){return wZn(n,S)}switch(EZn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!u,d)){case XWt:return i;case BLe:return"'"+i.replace(/'/g,"''")+"'";case ZWt:return"|"+LFt(i,n.indent)+DFt(IFt(i,g));case QWt:return">"+LFt(i,n.indent)+DFt(IFt(TZn(i,b),g));case x5:return'"'+AZn(i)+'"';default:throw new ib("impossible error: invalid scalar style")}}()}function LFt(n,i){var s=JWt(n)?String(i):"",u=n[n.length-1]===` -`,d=u&&(n[n.length-2]===` -`||n===` -`),g=d?"+":u?"":"-";return s+g+` -`}function DFt(n){return n[n.length-1]===` -`?n.slice(0,-1):n}function TZn(n,i){for(var s=/(\n+)([^\n]*)/g,u=function(){var S=n.indexOf(` -`);return S=S!==-1?S:n.length,s.lastIndex=S,MFt(n.slice(0,S),i)}(),d=n[0]===` -`||n[0]===" ",g,b;b=s.exec(n);){var w=b[1],E=b[2];g=E[0]===" ",u+=w+(!d&&!g&&E!==""?` -`:"")+MFt(E,i),d=g}return u}function MFt(n,i){if(n===""||n[0]===" ")return n;for(var s=/ [^ ]/g,u,d=0,g,b=0,w=0,E="";u=s.exec(n);)w=u.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 AZn(n){for(var i="",s=0,u,d=0;d=65536?d+=2:d++)s=rH(n,d),u=qp[s],!u&&lz(s)?(i+=n[d],s>=65536&&(i+=n[d+1])):i+=u||gZn(s);return i}function _Zn(n,i,s){var u="",d=n.tag,g,b,w;for(g=0,b=s.length;g"u"&&TA(n,i,null,!1,!1))&&(u!==""&&(u+=","+(n.condenseFlow?"":" ")),u+=n.dump);n.tag=d,n.dump="["+u+"]"}function PFt(n,i,s,u){var d="",g=n.tag,b,w,E;for(b=0,w=s.length;b"u"&&TA(n,i+1,null,!0,!0,!1,!0))&&((!u||d!=="")&&(d+=$Le(n,i)),n.dump&&uz===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function xZn(n,i,s){var u="",d=n.tag,g=Object.keys(s),b,w,E,S,x;for(b=0,w=g.length;b1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),TA(n,i,S,!1,!1)&&(x+=n.dump,u+=x));n.tag=d,n.dump="{"+u+"}"}function kZn(n,i,s,u){var d="",g=n.tag,b=Object.keys(s),w,E,S,x,A,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,A&&(n.dump&&uz===n.dump.charCodeAt(0)?C+="?":C+="? "),C+=n.dump,A&&(C+=$Le(n,i)),TA(n,i+1,x,!0,A)&&(n.dump&&uz===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function jFt(n,i,s){var u,d,g,b,w,E;for(d=s?n.explicitTypes:n.implicitTypes,g=0,b=d.length;g tag resolver accepts not "'+E+'" style');n.dump=u}return!0}return!1}function TA(n,i,s,u,d,g,b){n.tag=null,n.dump=s,jFt(n,s,!1)||jFt(n,s,!0);var w=zWt.call(n.dump),E=u,S;u&&(u=n.flowLevel<0||n.flowLevel>i);var x=w==="[object Object]"||w==="[object Array]",A,C;if(x&&(A=n.duplicates.indexOf(s),C=A!==-1),(n.tag!==null&&n.tag!=="?"||C||n.indent!==2&&i>0)&&(d=!1),C&&n.usedDuplicates[A])n.dump="*ref_"+A;else{if(x&&C&&!n.usedDuplicates[A]&&(n.usedDuplicates[A]=!0),w==="[object Object]")u&&Object.keys(n.dump).length!==0?(kZn(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(xZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object Array]")u&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?PFt(n,i-1,n.dump,d):PFt(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(_Zn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&SZn(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 NZn(n,i){var s=[],u=[],d,g;for(ULe(n,s,u),d=0,g=u.length;d"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");UOe=crypto.getRandomValues.bind(crypto)}return UOe(DZn)}const PZn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),FFt={randomUUID:PZn};function jZn(n,i,s){var d;n=n||{};const u=n.random??((d=n.rng)==null?void 0:d.call(n))??MZn();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,LZn(u)}function FZn(n,i,s){return FFt.randomUUID&&!n?FFt.randomUUID():jZn(n)}let $Zn=0;function $Ft(n,i){return`${n}_${Date.now()}_${i}_${$Zn++}`}function BZn(){return FZn()}function UZn(n,i){return`e-${n}-${i}-${Date.now()}`}var eKt={exports:{}};(function(n,i){(function(s){n.exports=s()})(function(){return function(){function s(u,d,g){function b(S,x){if(!d[S]){if(!u[S]){var A=typeof QU=="function"&&QU;if(!x&&A)return A(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:{}};u[S][0].call(R.exports,function(D){var L=u[S][1][D];return b(L||D)},R,R.exports,s,u,d,g)}return d[S].exports}for(var w=typeof QU=="function"&&QU,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},L=D.defaultLayoutOptions,B=L===void 0?{}:L,$=D.algorithms,j=$===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:$,P=D.workerFactory,G=D.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof G>"u"&&typeof P>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ee=P;typeof G<"u"&&typeof P>"u"&&(ee=function(ie){return new Worker(ie)});var ne=ee(G);if(typeof ne.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new A(ne),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(Q){return R.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(D){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=L.layoutOptions,$=B===void 0?this.defaultLayoutOptions:B,j=L.logging,P=j===void 0?!1:j,G=L.measureExecutionTime,ee=G===void 0?!1:G;return D?this.worker.postMessage({cmd:"layout",graph:D,layoutOptions:$,options:{logging:P,measureExecutionTime:ee}}):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 A=function(){function C(R){var D=this;if(b(this,C),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(L){setTimeout(function(){D.receive(D,L)},0)}}return E(C,[{key:"postMessage",value:function(D){var L=this.id||0;this.id=L+1,D.id=L;var B=this;return new Promise(function($,j){B.resolvers[L]=function(P,G){P?(B.convertGwtStyleError(P),j(P)):$(G)},B.worker.postMessage(D)})}},{key:"receive",value:function(D,L){var B=L.data,$=D.resolvers[B.id];$&&(delete D.resolvers[B.id],B.error?$(B.error):$(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(D){if(D){var L=D.__java$exception;L&&(L.cause&&L.cause.backingJsObject&&(D.cause=L.cause.backingJsObject,this.convertGwtStyleError(D.cause)),delete D.__java$exception)}}}])}()},{}],2:[function(s,u,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 x(){}function A(){}function C(){}function R(){}function D(){}function L(){}function B(){}function $(){}function j(){}function P(){}function G(){}function ee(){}function ne(){}function Q(){}function ie(){}function he(){}function ge(){}function ce(){}function fe(){}function K(){}function pe(){}function Oe(){}function Se(){}function De(){}function Ae(){}function xe(){}function We(){}function dt(){}function Ue(){}function bt(){}function kt(){}function ht(){}function Xt(){}function vt(){}function Ct(){}function Ft(){}function On(){}function Zn(){}function Yn(){}function vr(){}function Ui(){}function Qr(){}function Hi(){}function ai(){}function jc(){}function Xs(){}function ls(){}function Qo(){}function Ca(){}function Ci(){}function mb(){}function Yg(){}function Wh(){}function wb(){}function Wp(){}function Ow(){}function Kh(){}function X2(){}function Jg(){}function Kp(){}function Xg(){}function CN(){}function IN(){}function GR(){}function kA(){}function yb(){}function qR(){}function VR(){}function RN(){}function ON(){}function po(){}function Fc(){}function Fl(){}function Af(){}function Z2(){}function pl(){}function sh(){}function Vm(){}function ah(){}function Yh(){}function Q2(){}function Wm(){}function n9(){}function r9(){}function nG(){}function rG(){}function iG(){}function i9(){}function o9(){}function s9(){}function oG(){}function sG(){}function aG(){}function uG(){}function WR(){}function cG(){}function a9(){}function lG(){}function dG(){}function fG(){}function hG(){}function pG(){}function gG(){}function bG(){}function u9(){}function mG(){}function c9(){}function l9(){}function wG(){}function yG(){}function vG(){}function EG(){}function SG(){}function LN(){}function TG(){}function d9(){}function AG(){}function _G(){}function KR(){}function xG(){}function kG(){}function f9(){}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 xFe(){}function kFe(){}function NFe(){}function CFe(){}function IFe(){}function RFe(){}function OFe(){}function LFe(){}function DFe(){}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 v$e(){}function E$e(){}function S$e(){}function T$e(){}function A$e(){}function _$e(){}function x$e(){}function k$e(){}function N$e(){}function C$e(){}function I$e(){}function R$e(){}function O$e(){}function L$e(){}function Rue(){}function D$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 xBe(){}function kBe(){}function NBe(){}function CBe(){}function IBe(){}function RBe(){}function OBe(){}function LBe(){}function DBe(){}function MBe(){}function PBe(){}function jBe(){}function FBe(){}function $Be(){}function BBe(){}function UBe(){}function HBe(){}function zBe(){}function GBe(){}function qBe(){}function VBe(){}function WBe(){}function KBe(){}function YBe(){}function JBe(){}function XBe(){}function ZBe(){}function QBe(){}function eUe(){}function Oue(){}function tUe(){}function nUe(){}function rUe(){}function iUe(){}function oUe(){}function sUe(){}function aUe(){}function uUe(){}function cUe(){}function lUe(){}function h9(){}function p9(){}function dUe(){}function fUe(){}function Lue(){}function hUe(){}function pUe(){}function gUe(){}function bUe(){}function mUe(){}function Due(){}function Mue(){}function wUe(){}function Pue(){}function jue(){}function yUe(){}function vUe(){}function YR(){}function EUe(){}function SUe(){}function TUe(){}function AUe(){}function _Ue(){}function xUe(){}function kUe(){}function NUe(){}function CUe(){}function IUe(){}function RUe(){}function OUe(){}function LUe(){}function DUe(){}function MUe(){}function PUe(){}function jUe(){}function FUe(){}function $Ue(){}function Fue(){}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 xHe(){}function kHe(){}function NHe(){}function CHe(){}function IHe(){}function RHe(){}function OHe(){}function LHe(){}function DHe(){}function MHe(){}function PHe(){}function jHe(){}function FHe(){}function $He(){}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 lZt(){}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 Aze(){}function _ze(){}function xze(){}function kze(){}function Nze(){}function Cze(){}function Ize(){}function Rze(){}function Oze(){}function Lze(){}function Dze(){}function Mze(){}function Pze(){}function jze(){}function NG(){}function CG(){}function Fze(){}function IG(){}function $ze(){}function Bze(){}function Uze(){}function Hze(){}function zze(){}function Gze(){}function qze(){}function Vze(){}function Wze(){}function Kze(){}function Yze(){}function Jze(){}function Xze(){}function Zze(){}function dZt(){}function Qze(){}function $ue(){}function eGe(){}function tGe(){}function nGe(){}function rGe(){}function iGe(){}function oGe(){}function sGe(){}function aGe(){}function uGe(){}function cGe(){}function vb(){}function lGe(){}function eS(){}function Bue(){}function dGe(){}function fGe(){}function hGe(){}function pGe(){}function gGe(){}function bGe(){}function mGe(){}function wGe(){}function yGe(){}function vGe(){}function EGe(){}function SGe(){}function TGe(){}function AGe(){}function _Ge(){}function xGe(){}function kGe(){}function NGe(){}function CGe(){}function IGe(){}function Xe(){}function RGe(){}function OGe(){}function LGe(){}function DGe(){}function MGe(){}function PGe(){}function jGe(){}function FGe(){}function $Ge(){}function BGe(){}function UGe(){}function RG(){}function HGe(){}function zGe(){}function OG(){}function GGe(){}function qGe(){}function VGe(){}function WGe(){}function LG(){}function g9(){}function b9(){}function KGe(){}function Uue(){}function YGe(){}function JGe(){}function m9(){}function XGe(){}function ZGe(){}function QGe(){}function w9(){}function eqe(){}function tqe(){}function nqe(){}function rqe(){}function y9(){}function iqe(){}function Hue(){}function oqe(){}function DG(){}function zue(){}function sqe(){}function aqe(){}function uqe(){}function cqe(){}function fZt(){}function lqe(){}function dqe(){}function fqe(){}function hqe(){}function pqe(){}function gqe(){}function bqe(){}function mqe(){}function wqe(){}function yqe(){}function NA(){}function MG(){}function vqe(){}function Eqe(){}function Sqe(){}function Tqe(){}function Aqe(){}function _qe(){}function xqe(){}function kqe(){}function Nqe(){}function Cqe(){}function Iqe(){}function Rqe(){}function Oqe(){}function Lqe(){}function Dqe(){}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 xVe(){}function kVe(){}function NVe(){}function CVe(){}function IVe(){}function RVe(){}function OVe(){}function LVe(){}function DVe(){}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 QVe(){}function eWe(){}function tWe(){}function nWe(){}function rWe(){}function iWe(){}function oWe(){}function sWe(){}function aWe(){}function uWe(){}function cWe(){}function lWe(){}function dWe(){}function fWe(){}function Gue(){}function hWe(){}function pWe(){}function PG(){BN()}function gWe(){Wbe()}function bWe(){fO()}function mWe(){ed()}function wWe(){rbe()}function yWe(){G6()}function vWe(){$O()}function EWe(){dO()}function SWe(){Ket()}function TWe(){zS()}function AWe(){Nlt()}function _We(){N_()}function xWe(){S1()}function kWe(){ige()}function NWe(){Qft()}function CWe(){eht()}function IWe(){K9()}function RWe(){Z0e()}function OWe(){mut()}function LWe(){cdt()}function DWe(){rge()}function MWe(){gut()}function PWe(){put()}function jWe(){but()}function FWe(){yut()}function $We(){Be()}function BWe(){tht()}function UWe(){oct()}function HWe(){nht()}function zWe(){vut()}function GWe(){US()}function qWe(){kht()}function VWe(){c0e()}function WWe(){T1()}function KWe(){wut()}function YWe(){sbt()}function JWe(){Myt()}function XWe(){Ame()}function ZWe(){js()}function QWe(){ef()}function eKe(){v0e()}function tKe(){hgt()}function nKe(){dp()}function rKe(){Y6()}function iKe(){mJ()}function oKe(){kY()}function sKe(){S1e()}function aKe(){QS()}function uKe(){nj()}function cKe(){A7()}function que(){_n()}function lKe(){jj()}function dKe(){L1e()}function Vue(){q7()}function Wue(){_K()}function bd(){Jit()}function fKe(){T0e()}function Kue(e){Mt(e)}function hKe(e){this.a=e}function v9(e){this.a=e}function pKe(e){this.a=e}function gKe(e){this.a=e}function bKe(e){this.a=e}function Yue(e){this.a=e}function Jue(e){this.a=e}function mKe(e){this.a=e}function jG(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.c=e}function TKe(e){this.a=e}function FG(e){this.a=e}function AKe(e){this.a=e}function _Ke(e){this.a=e}function xKe(e){this.a=e}function $G(e){this.a=e}function kKe(e){this.a=e}function NKe(e){this.a=e}function BG(e){this.a=e}function CKe(e){this.a=e}function UG(e){this.a=e}function IKe(e){this.a=e}function RKe(e){this.a=e}function OKe(e){this.a=e}function LKe(e){this.a=e}function DKe(e){this.a=e}function MKe(e){this.a=e}function PKe(e){this.a=e}function jKe(e){this.a=e}function FKe(e){this.a=e}function $Ke(e){this.a=e}function BKe(e){this.a=e}function UKe(e){this.a=e}function HKe(e){this.a=e}function zKe(e){this.a=e}function Xue(e){this.a=e}function Zue(e){this.a=e}function E9(e){this.a=e}function JR(e){this.a=e}function Que(e){this.b=e}function Eb(){this.a=[]}function GKe(e,t){e.a=t}function hZt(e,t){e.a=t}function pZt(e,t){e.b=t}function gZt(e,t){e.c=t}function bZt(e,t){e.c=t}function mZt(e,t){e.d=t}function wZt(e,t){e.d=t}function Jh(e,t){e.k=t}function ece(e,t){e.j=t}function yZt(e,t){e.c=t}function tce(e,t){e.c=t}function nce(e,t){e.a=t}function vZt(e,t){e.a=t}function EZt(e,t){e.f=t}function SZt(e,t){e.a=t}function TZt(e,t){e.b=t}function HG(e,t){e.d=t}function S9(e,t){e.i=t}function rce(e,t){e.o=t}function AZt(e,t){e.r=t}function _Zt(e,t){e.a=t}function xZt(e,t){e.b=t}function qKe(e,t){e.e=t}function kZt(e,t){e.f=t}function ice(e,t){e.g=t}function NZt(e,t){e.e=t}function CZt(e,t){e.f=t}function IZt(e,t){e.f=t}function XR(e,t){e.b=t}function zG(e,t){e.b=t}function GG(e,t){e.a=t}function RZt(e,t){e.n=t}function OZt(e,t){e.a=t}function LZt(e,t){e.c=t}function DZt(e,t){e.c=t}function MZt(e,t){e.c=t}function PZt(e,t){e.a=t}function jZt(e,t){e.a=t}function FZt(e,t){e.d=t}function $Zt(e,t){e.d=t}function BZt(e,t){e.e=t}function UZt(e,t){e.e=t}function HZt(e,t){e.g=t}function zZt(e,t){e.f=t}function GZt(e,t){e.j=t}function qZt(e,t){e.a=t}function VZt(e,t){e.a=t}function WZt(e,t){e.b=t}function VKe(e){e.b=e.a}function WKe(e){e.c=e.d.d}function oce(e){this.a=e}function Xh(e){this.a=e}function T9(e){this.a=e}function sce(e){this.a=e}function KKe(e){this.a=e}function ZR(e){this.a=e}function QR(e){this.a=e}function ace(e){this.a=e}function uce(e){this.a=e}function Lw(e){this.a=e}function qG(e){this.a=e}function Zh(e){this.a=e}function Dw(e){this.a=e}function YKe(e){this.a=e}function JKe(e){this.a=e}function cce(e){this.a=e}function XKe(e){this.a=e}function Pn(e){this.a=e}function DN(e){this.d=e}function VG(e){this.b=e}function CA(e){this.b=e}function Gv(e){this.b=e}function WG(e){this.c=e}function V(e){this.c=e}function ZKe(e){this.c=e}function QKe(e){this.a=e}function lce(e){this.a=e}function dce(e){this.a=e}function fce(e){this.a=e}function hce(e){this.a=e}function pce(e){this.a=e}function gce(e){this.a=e}function IA(e){this.a=e}function eYe(e){this.a=e}function tYe(e){this.a=e}function RA(e){this.a=e}function nYe(e){this.a=e}function rYe(e){this.a=e}function iYe(e){this.a=e}function oYe(e){this.a=e}function sYe(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 OA(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 A9(e){this.a=e}function gYe(e){this.a=e}function bYe(e){this.a=e}function bce(e){this.a=e}function mYe(e){this.a=e}function wYe(e){this.a=e}function yYe(e){this.a=e}function mce(e){this.a=e}function wce(e){this.a=e}function yce(e){this.a=e}function MN(e){this.a=e}function _9(e){this.e=e}function LA(e){this.a=e}function vYe(e){this.a=e}function tS(e){this.a=e}function vce(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 xYe(e){this.a=e}function kYe(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 Ece(e){this.a=e}function OYe(e){this.a=e}function LYe(e){this.a=e}function DYe(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.a=e}function aJe(e){this.a=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.c=e}function EJe(e){this.b=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 xJe(e){this.a=e}function kJe(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 LJe(e){this.a=e}function DJe(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 Qh(e){this.a=e}function qv(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 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 aXe(e){this.a=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 Sce(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 x9(e){this.a=e}function EXe(e){this.f=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 xXe(e){this.a=e}function kXe(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 LXe(e){this.a=e}function DXe(e){this.a=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 zXe(e){this.a=e}function GXe(e){this.a=e}function qXe(e){this.a=e}function VXe(e){this.a=e}function WXe(e){this.a=e}function KXe(e){this.a=e}function KG(e){this.a=e}function Tce(e){this.a=e}function cr(e){this.b=e}function YXe(e){this.a=e}function JXe(e){this.a=e}function XXe(e){this.a=e}function ZXe(e){this.a=e}function QXe(e){this.a=e}function eZe(e){this.a=e}function tZe(e){this.a=e}function nZe(e){this.a=e}function eO(e){this.a=e}function rZe(e){this.a=e}function iZe(e){this.b=e}function Ace(e){this.c=e}function k9(e){this.e=e}function oZe(e){this.a=e}function N9(e){this.a=e}function C9(e){this.a=e}function YG(e){this.a=e}function sZe(e){this.d=e}function aZe(e){this.a=e}function _ce(e){this.a=e}function xce(e){this.a=e}function Km(e){this.e=e}function KZt(){this.a=0}function je(){dV(this)}function hn(){Zs(this)}function JG(){Yst(this)}function uZe(){}function Ym(){this.c=I3e}function cZe(e,t){e.b+=t}function YZt(e,t){t.Wb(e)}function JZt(e){return e.a}function XZt(e){return e.a}function ZZt(e){return e.a}function QZt(e){return e.a}function eQt(e){return e.a}function Y(e){return e.e}function tQt(){return null}function nQt(){return null}function rQt(e){throw Y(e)}function nS(e){this.a=kn(e)}function lZe(){this.a=this}function Sb(){Drt.call(this)}function iQt(e){e.b.Mf(e.e)}function dZe(e){e.b=new hq}function PN(e,t){e.b=t-e.b}function jN(e,t){e.a=t-e.a}function fZe(e,t){t.gd(e.a)}function oQt(e,t){Ii(t,e)}function Ot(e,t){e.push(t)}function hZe(e,t){e.sort(t)}function sQt(e,t,r){e.Wd(r,t)}function tO(e,t){e.e=t,t.b=e}function aQt(){ole(),QNn()}function pZe(e){l_(),HQ.je(e)}function kce(){Drt.call(this)}function Nce(){Sb.call(this)}function XG(){Sb.call(this)}function gZe(){Sb.call(this)}function nO(){Sb.call(this)}function lu(){Sb.call(this)}function rS(){Sb.call(this)}function Nn(){Sb.call(this)}function $c(){Sb.call(this)}function bZe(){Sb.call(this)}function vs(){Sb.call(this)}function mZe(){Sb.call(this)}function I9(){this.Bb|=256}function wZe(){this.b=new Int}function Cce(){Cce=K,new hn}function yZe(){Nce.call(this)}function Mw(e,t){e.length=t}function R9(e,t){Fe(e.a,t)}function uQt(e,t){Ybe(e.c,t)}function cQt(e,t){pi(e.b,t)}function lQt(e,t){c7(e.a,t)}function dQt(e,t){QK(e.a,t)}function DA(e,t){hr(e.e,t)}function iS(e){N7(e.c,e.b)}function fQt(e,t){e.kc().Nb(t)}function Ice(e){this.a=Mgn(e)}function hi(){this.a=new hn}function vZe(){this.a=new hn}function O9(){this.a=new je}function ZG(){this.a=new je}function Rce(){this.a=new je}function gl(){this.a=new Jg}function Tb(){this.a=new xlt}function QG(){this.a=new Uet}function Oce(){this.a=new aut}function Lce(){this.a=new Tit}function Dce(){this.a=new ah}function EZe(){this.a=new jut}function SZe(){this.a=new je}function TZe(){this.a=new je}function AZe(){this.a=new je}function Mce(){this.a=new je}function _Ze(){this.d=new je}function xZe(){this.a=new hi}function kZe(){this.a=new hn}function NZe(){this.b=new hn}function CZe(){this.b=new je}function Pce(){this.e=new je}function IZe(){this.d=new je}function RZe(){this.a=new xWe}function OZe(){jat.call(this)}function LZe(){jat.call(this)}function DZe(){Uce.call(this)}function MZe(){Uce.call(this)}function PZe(){Uce.call(this)}function jZe(){je.call(this)}function FZe(){Mce.call(this)}function L9(){O9.call(this)}function $Ze(){G8.call(this)}function FN(){uZe.call(this)}function eq(){FN.call(this)}function oS(){uZe.call(this)}function jce(){oS.call(this)}function Du(){Ar.call(this)}function BZe(){Hce.call(this)}function $N(){WGe.call(this)}function Fce(){WGe.call(this)}function UZe(){tQe.call(this)}function HZe(){tQe.call(this)}function zZe(){hn.call(this)}function GZe(){hn.call(this)}function qZe(){hn.call(this)}function tq(){Yft.call(this)}function VZe(){hi.call(this)}function WZe(){I9.call(this)}function nq(){_de.call(this)}function $ce(){hn.call(this)}function rq(){_de.call(this)}function iq(){hn.call(this)}function KZe(){hn.call(this)}function Bce(){y9.call(this)}function YZe(){Bce.call(this)}function JZe(){y9.call(this)}function XZe(){Gue.call(this)}function Uce(){this.a=new hi}function ZZe(){this.a=new hn}function Hce(){this.a=new hn}function sS(){this.a=new Ar}function QZe(){this.a=new je}function eQe(){this.j=new je}function tQe(){this.a=new eqe}function zce(){this.a=new Ize}function nQe(){this.a=new ZQe}function BN(){BN=K,DQ=new S}function oq(){oq=K,MQ=new iQe}function sq(){sq=K,PQ=new rQe}function rQe(){BG.call(this,"")}function iQe(){BG.call(this,"")}function oQe(e){Eft.call(this,e)}function sQe(e){Eft.call(this,e)}function Gce(e){Yue.call(this,e)}function qce(e){Oet.call(this,e)}function hQt(e){Oet.call(this,e)}function pQt(e){qce.call(this,e)}function gQt(e){qce.call(this,e)}function bQt(e){qce.call(this,e)}function aQe(e){zW.call(this,e)}function uQe(e){zW.call(this,e)}function cQe(e){prt.call(this,e)}function lQe(e){dle.call(this,e)}function UN(e){G9.call(this,e)}function Vce(e){G9.call(this,e)}function dQe(e){G9.call(this,e)}function Es(e){cst.call(this,e)}function fQe(e){Es.call(this,e)}function aS(){JR.call(this,{})}function aq(e){VA(),this.a=e}function hQe(e){e.b=null,e.c=0}function mQt(e,t){e.e=t,Lwt(e,t)}function wQt(e,t){e.a=t,Kyn(e)}function uq(e,t,r){e.a[t.g]=r}function yQt(e,t,r){p0n(r,e,t)}function vQt(e,t){urn(t.i,e.n)}function pQe(e,t){_pn(e).Ad(t)}function EQt(e,t){return e*e/t}function gQe(e,t){return e.g-t.g}function SQt(e,t){e.a.ec().Kc(t)}function TQt(e){return new E9(e)}function AQt(e){return new Qw(e)}function bQe(){bQe=K,qEe=new E}function Wce(){Wce=K,VEe=new ee}function D9(){D9=K,bI=new ie}function M9(){M9=K,FQ=new hrt}function mQe(){mQe=K,Y_t=new ge}function P9(e){Sge(),this.a=e}function wQe(e){Yit(),this.a=e}function Yp(e){VV(),this.f=e}function cq(e){VV(),this.f=e}function j9(e){Es.call(this,e)}function Ia(e){Es.call(this,e)}function yQe(e){Es.call(this,e)}function lq(e){cst.call(this,e)}function MA(e){Es.call(this,e)}function jt(e){Es.call(this,e)}function es(e){Es.call(this,e)}function vQe(e){Es.call(this,e)}function uS(e){Es.call(this,e)}function Jp(e){Es.call(this,e)}function Ds(e){Mt(e),this.a=e}function HN(e){rhe(e,e.length)}function Kce(e){return Wb(e),e}function Pw(e){return!!e&&e.b}function _Qt(e){return!!e&&e.k}function xQt(e){return!!e&&e.j}function zN(e){return e.b==e.c}function Ye(e){return Mt(e),e}function ue(e){return Mt(e),e}function rO(e){return Mt(e),e}function Yce(e){return Mt(e),e}function kQt(e){return Mt(e),e}function _f(e){Es.call(this,e)}function cS(e){Es.call(this,e)}function xf(e){Es.call(this,e)}function Dn(e){Es.call(this,e)}function dq(e){Es.call(this,e)}function fq(e){Lde.call(this,e,0)}function hq(){zhe.call(this,12,3)}function pq(){this.a=In(kn(ja))}function EQe(){throw Y(new Nn)}function Jce(){throw Y(new Nn)}function SQe(){throw Y(new Nn)}function NQt(){throw Y(new Nn)}function CQt(){throw Y(new Nn)}function IQt(){throw Y(new Nn)}function F9(){F9=K,l_()}function Xp(){ZR.call(this,"")}function GN(){ZR.call(this,"")}function Zg(){ZR.call(this,"")}function lS(){ZR.call(this,"")}function Xce(e){Ia.call(this,e)}function Zce(e){Ia.call(this,e)}function kf(e){jt.call(this,e)}function PA(e){CA.call(this,e)}function TQe(e){PA.call(this,e)}function gq(e){$8.call(this,e)}function RQt(e,t,r){e.c.Cf(t,r)}function OQt(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 MQt(e,t){return e.a-t.a}function PQt(e,t){return e.a-t.a}function $9(e,t){return iK(e,t)}function X(e,t){return fut(e,t)}function jQt(e,t){return t in e.a}function AQe(e){return e.a?e.b:0}function FQt(e){return e.a?e.b:0}function _Qe(e,t){return e.f=t,e}function $Qt(e,t){return e.b=t,e}function xQe(e,t){return e.c=t,e}function BQt(e,t){return e.g=t,e}function Qce(e,t){return e.a=t,e}function ele(e,t){return e.f=t,e}function UQt(e,t){return e.k=t,e}function tle(e,t){return e.e=t,e}function HQt(e,t){return e.e=t,e}function nle(e,t){return e.a=t,e}function zQt(e,t){return e.f=t,e}function GQt(e,t){e.b=new So(t)}function kQe(e,t){e._d(t),t.$d(e)}function qQt(e,t){hc(),t.n.a+=e}function VQt(e,t){S1(),As(t,e)}function rle(e){gat.call(this,e)}function NQe(e){gat.call(this,e)}function CQe(){dde.call(this,"")}function IQe(){this.b=0,this.a=0}function RQe(){RQe=K,uxt=U0n()}function Jm(e,t){return e.b=t,e}function iO(e,t){return e.a=t,e}function Xm(e,t){return e.c=t,e}function Zm(e,t){return e.d=t,e}function Qm(e,t){return e.e=t,e}function bq(e,t){return e.f=t,e}function qN(e,t){return e.a=t,e}function jA(e,t){return e.b=t,e}function FA(e,t){return e.c=t,e}function Qe(e,t){return e.c=t,e}function gt(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 WQt(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 KQt(e,t){return e.g-t.g}function YQt(e,t){return e.b-t.b}function JQt(e,t){return e.s-t.s}function XQt(e,t){return e?0:t-1}function OQe(e,t){return e?0:t-1}function ZQt(e,t){return e?t-1:0}function QQt(e,t){return t.pg(e)}function LQe(e,t){return e.k=t,e}function een(e,t){return e.j=t,e}function ro(){this.a=0,this.b=0}function B9(e){IV.call(this,e)}function Qg(e){w0.call(this,e)}function DQe(e){vW.call(this,e)}function MQe(e){vW.call(this,e)}function PQe(e,t){e.b=0,cy(e,t)}function ten(e,t){e.c=t,e.b=!0}function nen(e,t,r){lsn(e.a,t,r)}function jQe(e,t){return e.c._b(t)}function md(e){return e.e&&e.e()}function mq(e){return e?e.d:null}function FQe(e,t){return sgt(e.b,t)}function ren(e){return e?e.g:null}function ien(e){return e?e.i:null}function $Qe(e,t){return ken(e.a,t)}function ile(e,t){for(;e.zd(t););}function BQe(){throw Y(new Nn)}function e1(){e1=K,MLt=Zmn()}function UQe(){UQe=K,Bi=uwn()}function ole(){ole=K,J1=W3()}function $A(){$A=K,C3e=Qmn()}function HQe(){HQe=K,yDt=e0n()}function sle(){sle=K,Ks=qyn()}function Ab(e){return np(e),e.o}function Vv(e,t){return e.a+=t,e}function wq(e,t){return e.a+=t,e}function Zp(e,t){return e.a+=t,e}function e0(e,t){return e.a+=t,e}function ale(e){bEt(),f3n(this,e)}function U9(e){this.a=new dS(e)}function Qp(e){this.a=new ZV(e)}function zQe(){throw Y(new Nn)}function GQe(){throw Y(new Nn)}function qQe(){throw Y(new Nn)}function VQe(){throw Y(new Nn)}function WQe(){throw Y(new Nn)}function KQe(){this.b=new X_(C_e)}function YQe(){this.a=new X_(lxe)}function H9(e){this.a=0,this.b=e}function JQe(){this.a=new X_(Dxe)}function XQe(){this.b=new X_(jne)}function ZQe(){this.b=new X_(jne)}function QQe(){this.a=new X_(Dke)}function eet(e,t){return xSn(e,t)}function oen(e,t){return axn(t,e)}function ule(e,t){return e.d[t.p]}function oO(e){return e.b!=e.d.c}function tet(e){return e.l|e.m<<22}function BA(e){return u1(e),e.a}function net(e){e.c?Ywt(e):Jwt(e)}function Wv(e,t){for(;e.Pe(t););}function cle(e,t,r){e.splice(t,r)}function ret(){throw Y(new Nn)}function iet(){throw Y(new Nn)}function oet(){throw Y(new Nn)}function set(){throw Y(new Nn)}function aet(){throw Y(new Nn)}function uet(){throw Y(new Nn)}function cet(){throw Y(new Nn)}function det(){throw Y(new Nn)}function fet(){throw Y(new Nn)}function het(){throw Y(new Nn)}function sen(){throw Y(new vs)}function aen(){throw Y(new vs)}function sO(e){this.a=new pet(e)}function pet(e){Qfn(this,e,lyn())}function aO(e){return!e||Vst(e)}function uO(e){return mf[e]!=-1}function uen(){u$!=0&&(u$=0),c$=-1}function get(){LQ==null&&(LQ=[])}function cO(e,t){sE.call(this,e,t)}function UA(e,t){cO.call(this,e,t)}function bet(e,t){this.a=e,this.b=t}function met(e,t){this.a=e,this.b=t}function wet(e,t){this.a=e,this.b=t}function yet(e,t){this.a=e,this.b=t}function vet(e,t){this.a=e,this.b=t}function Eet(e,t){this.a=e,this.b=t}function Tet(e,t){this.a=e,this.b=t}function HA(e,t){this.e=e,this.d=t}function lle(e,t){this.b=e,this.c=t}function Aet(e,t){this.b=e,this.a=t}function _et(e,t){this.b=e,this.a=t}function xet(e,t){this.b=e,this.a=t}function ket(e,t){this.b=e,this.a=t}function Net(e,t){this.a=e,this.b=t}function Cet(e,t){this.a=e,this.b=t}function yq(e,t){this.a=e,this.b=t}function Iet(e,t){this.a=e,this.f=t}function t0(e,t){this.g=e,this.i=t}function mn(e,t){this.f=e,this.g=t}function Ret(e,t){this.b=e,this.c=t}function Oet(e){Ede(e.dc()),this.c=e}function cen(e,t){this.a=e,this.b=t}function Let(e,t){this.a=e,this.b=t}function Det(e){this.a=l(kn(e),16)}function dle(e){this.a=l(kn(e),16)}function Met(e){this.a=l(kn(e),93)}function z9(e){this.b=l(kn(e),93)}function G9(e){this.b=l(kn(e),51)}function q9(){this.q=new b.Date}function vq(e,t){this.a=e,this.b=t}function Pet(e,t){return ma(e.b,t)}function VN(e,t){return e.b.Gc(t)}function fle(e,t){return e.b.Hc(t)}function hle(e,t){return e.b.Oc(t)}function jet(e,t){return e.b.Gc(t)}function Fet(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 Bet(e,t){return e>t&&t0}function _q(e,t){return Ea(e,t)<0}function ttt(e,t){return GV(e.a,t)}function ken(e,t){return e.a.a.cc(t)}function xq(e){return e.b=0}function f3(e,t){return Ea(e,t)!=0}function i1(e,t){return e.Pd().Xb(t)}function N8(e,t){return xhn(e.Jc(),t)}function Uen(e){return""+(Mt(e),e)}function tde(e,t){return e.a+=""+t,e}function h3(e,t){return e.a+=""+t,e}function Vo(e,t){return e.a+=""+t,e}function p3(e,t){return e.a+=""+t,e}function ba(e,t){return e.a+=""+t,e}function zn(e,t){return e.a+=""+t,e}function C8(e){return T3(e==null),e}function nde(e){return at(e,0),null}function Snt(e){return $u(e),e.d.gc()}function Hen(e){b.clearTimeout(e)}function Tnt(e,t){e.q.setTime($b(t))}function zen(e,t){pfn(new tn(e),t)}function Ant(e,t){Qfe.call(this,e,t)}function _nt(e,t){Qfe.call(this,e,t)}function I8(e,t){Qfe.call(this,e,t)}function Eo(e,t){Wr(e,t,e.c.b,e.c)}function Zv(e,t){Wr(e,t,e.a,e.a.a)}function Gen(e,t){return e.j[t.p]==2}function xnt(e,t){return e.a=t.g+1,e}function wd(e){return e.a=0,e.b=0,e}function knt(){knt=K,Qxt=yn(mY())}function Nnt(){Nnt=K,aNt=yn(Awt())}function Cnt(){Cnt=K,Q4t=yn(Oht())}function Int(){this.b=new dS(fy(12))}function Rnt(){this.b=0,this.a=!1}function Ont(){this.b=0,this.a=!1}function g3(e){this.a=e,PG.call(this)}function Lnt(e){this.a=e,PG.call(this)}function pt(e,t){Pr.call(this,e,t)}function oV(e,t){Ww.call(this,e,t)}function Qv(e,t){Zle.call(this,e,t)}function Dnt(e,t){RO.call(this,e,t)}function sV(e,t){A_.call(this,e,t)}function er(e,t){e8(),Jn(vU,e,t)}function aV(e,t){return yl(e.a,0,t)}function Mnt(e,t){return me(e)===me(t)}function qen(e,t){return yr(e.a,t.a)}function rde(e,t){return na(e.a,t.a)}function Ven(e,t){return kst(e.a,t.a)}function mS(e){return go((Mt(e),e))}function Wen(e){return go((Mt(e),e))}function Pnt(e){return Ua(e.l,e.m,e.h)}function Ken(e){return kn(e),new g3(e)}function Nf(e,t){return e.indexOf(t)}function gs(e){return typeof e===ewe}function R8(e){return e<10?"0"+e:""+e}function Yen(e){return e==X0||e==$y}function Jen(e){return e==X0||e==Fy}function jnt(e,t){return na(e.g,t.g)}function ide(e){return _s(e.b.b,e,0)}function Fnt(e){Zs(this),X3(this,e)}function $nt(e){this.a=Att(),this.b=e}function Bnt(e){this.a=Att(),this.b=e}function Unt(e,t){return Fe(e.a,t),t}function ode(e,t){g_(e,0,e.length,t)}function Xen(e,t){return na(e.g,t.g)}function Zen(e,t){return yr(t.f,e.f)}function Qen(e,t){return hc(),t.a+=e}function etn(e,t){return hc(),t.a+=e}function ttn(e,t){return hc(),t.c+=e}function sde(e,t){return yc(e.a,t),e}function ntn(e,t){return Fe(e.c,t),e}function O8(e){return yc(new ui,e)}function ep(e){return e==as||e==fs}function eE(e){return e==il||e==ff}function Hnt(e){return e==a2||e==s2}function tE(e){return e!=pf&&e!=W1}function Ju(e){return e.sh()&&e.th()}function znt(e){return hW(l(e,127))}function wS(){ql.call(this,0,0,0,0)}function Gnt(){aP.call(this,0,0,0,0)}function uh(){lce.call(this,new d1)}function uV(e){pnt.call(this,e,!0)}function So(e){this.a=e.a,this.b=e.b}function cV(e,t){I_(e,t),y_(e,e.D)}function lV(e,t,r){gj(e,t),pj(e,r)}function i0(e,t,r){Hb(e,t),Ub(e,r)}function Bc(e,t,r){va(e,t),gu(e,r)}function kO(e,t,r){y0(e,t),v0(e,r)}function NO(e,t,r){E0(e,t),S0(e,r)}function qnt(e,t,r){Ude.call(this,e,t,r)}function Vnt(){i8.call(this,"Head",1)}function Wnt(){i8.call(this,"Tail",3)}function o1(e){jf(),Chn.call(this,e)}function nE(e){return e!=null?Rr(e):0}function Knt(e,t){return new A_(t,e)}function rtn(e,t){return new A_(t,e)}function itn(e,t){return uy(t,Gd(e))}function otn(e,t){return uy(t,Gd(e))}function stn(e,t){return e[e.length]=t}function atn(e,t){return e[e.length]=t}function ade(e){return Aon(e.b.Jc(),e.a)}function utn(e,t){return vj(cW(e.f),t)}function ctn(e,t){return vj(cW(e.n),t)}function ltn(e,t){return vj(cW(e.p),t)}function Mi(e,t){Pr.call(this,e.b,t)}function xb(e){aP.call(this,e,e,e,e)}function dV(e){e.c=we(Ri,Rt,1,0,5,1)}function Ynt(e,t,r){ii(e.c[t.g],t.g,r)}function dtn(e,t,r){l(e.c,72).Ei(t,r)}function ftn(e,t,r){Bc(r,r.i+e,r.j+t)}function htn(e,t){Tn(oa(e.a),xut(t))}function ptn(e,t){Tn(Fu(e.a),kut(t))}function gtn(e,t){sf||(e.b=t)}function fV(e,t,r){return ii(e,t,r),r}function Jnt(e){Da(e.Qf(),new pYe(e))}function Xnt(){Xnt=K,Jte=new cC(Are)}function ude(){ude=K,Cce(),WEe=new hn}function Cn(){Cn=K,new Znt,new je}function Znt(){new hn,new hn,new hn}function btn(){throw Y(new Jp(L_t))}function mtn(){throw Y(new Jp(L_t))}function wtn(){throw Y(new Jp(D_t))}function ytn(){throw Y(new Jp(D_t))}function b3(e){fr(),Km.call(this,e)}function Qnt(e){this.a=e,_fe.call(this,e)}function hV(e){this.a=e,z9.call(this,e)}function pV(e){this.a=e,z9.call(this,e)}function vtn(e){return e==null?0:Rr(e)}function Ts(e){return e.a0?e:t}function na(e,t){return et?1:0}function ert(e,t){return e.a?e.b:t.Ue()}function Ua(e,t,r){return{l:e,m:t,h:r}}function Etn(e,t){e.a!=null&&Qtt(t,e.a)}function Stn(e,t){kn(t),uE(e).Ic(new j)}function xi(e,t){zV(e.c,e.c.length,t)}function trt(e){e.a=new ht,e.c=new ht}function L8(e){this.b=e,this.a=new je}function nrt(e){this.b=new sh,this.a=e}function dde(e){nfe.call(this),this.a=e}function rrt(e){Ohe.call(this),this.b=e}function irt(){i8.call(this,"Range",2)}function ort(){pbe(),this.a=new X_(z2e)}function Ud(){Ud=K,b.Math.log(2)}function Uc(){Uc=K,Dh=(Zet(),ULt)}function D8(e){e.j=we(s2e,Pe,325,0,0,1)}function srt(e){e.a=new hn,e.e=new hn}function fde(e){return new Me(e.c,e.d)}function Ttn(e){return new Me(e.c,e.d)}function To(e){return new Me(e.a,e.b)}function Atn(e,t){return Jn(e.a,t.a,t)}function _tn(e,t,r){return Jn(e.g,r,t)}function xtn(e,t,r){return Jn(e.k,r,t)}function rE(e,t,r){return D1e(t,r,e.c)}function art(e,t){return Rkn(e.a,t,null)}function hde(e,t){return le(Ht(e.i,t))}function pde(e,t){return le(Ht(e.j,t))}function urt(e,t){vn(e),e.Fc(l(t,16))}function ktn(e,t,r){e.c._c(t,l(r,138))}function Ntn(e,t,r){e.c.Si(t,l(r,138))}function Ctn(e,t,r){return Ckn(e,t,r),r}function Itn(e,t){return gc(),t.n.b+=e}function m3(e,t){return $xn(e.c,e.b,t)}function gV(e,t){return spn(e.Jc(),t)!=-1}function ae(e,t){return e!=null&&EY(e,t)}function Rtn(e,t){return new Rrt(e.Jc(),t)}function M8(e){return e.Ob()?e.Pb():null}function crt(e){return Mf(e,0,e.length)}function Otn(e){bo(e,null),Ji(e,null)}function lrt(e){RW(e,null),OW(e,null)}function drt(){RO.call(this,null,null)}function frt(){U8.call(this,null,null)}function hrt(){mn.call(this,"INSTANCE",0)}function iE(){this.a=we(Ri,Rt,1,8,5,1)}function gde(e){this.a=e,hn.call(this)}function prt(e){this.a=(At(),new PA(e))}function Ltn(e){this.b=(At(),new WG(e))}function VA(){VA=K,b2e=new aq(null)}function bde(){bde=K,bde(),dxt=new Ct}function Fe(e,t){return Ot(e.c,t),!0}function grt(e,t){e.c&&(Mfe(t),Kat(t))}function Dtn(e,t){e.q.setHours(t),OC(e,t)}function mde(e,t){return e.a.Ac(t)!=null}function bV(e,t){return e.a.Ac(t)!=null}function Hd(e,t){return e.a[t.c.p][t.p]}function Mtn(e,t){return e.c[t.c.p][t.p]}function Ptn(e,t){return e.e[t.c.p][t.p]}function mV(e,t,r){return e.a[t.g][r.g]}function jtn(e,t){return e.j[t.p]=l2n(t)}function yS(e,t){return e.a*t.a+e.b*t.b}function Ftn(e,t){return e.a=e}function ztn(e,t,r){return r?t!=0:t!=e-1}function brt(e,t,r){e.a=t^1502,e.b=r^_X}function Gtn(e,t,r){return e.a=t,e.b=r,e}function tp(e,t){return e.a*=t,e.b*=t,e}function w3(e,t,r){return ii(e.g,t,r),r}function qtn(e,t,r,o){ii(e.a[t.g],r.g,o)}function yi(e,t,r){zO.call(this,e,t,r)}function P8(e,t,r){yi.call(this,e,t,r)}function du(e,t,r){yi.call(this,e,t,r)}function mrt(e,t,r){P8.call(this,e,t,r)}function wde(e,t,r){zO.call(this,e,t,r)}function oE(e,t,r){zO.call(this,e,t,r)}function wrt(e,t,r){yde.call(this,e,t,r)}function yrt(e,t,r){wde.call(this,e,t,r)}function yde(e,t,r){Z8.call(this,e,t,r)}function vrt(e,t,r){Z8.call(this,e,t,r)}function s1(e){this.c=e,this.a=this.c.a}function tn(e){this.i=e,this.f=this.i.j}function sE(e,t){this.a=e,z9.call(this,t)}function Ert(e,t){this.a=e,fq.call(this,t)}function Srt(e,t){this.a=e,fq.call(this,t)}function Trt(e,t){this.a=e,fq.call(this,t)}function vde(e){this.a=e,SKe.call(this,e.d)}function Art(e){e.b.Qb(),--e.d.f.d,dP(e.d)}function _rt(e){e.a=l(Vt(e.b.a,4),131)}function xrt(e){e.a=l(Vt(e.b.a,4),131)}function Vtn(e){YO(e,sAt),D7(e,xNn(e))}function krt(e){BG.call(this,l(kn(e),34))}function Nrt(e){BG.call(this,l(kn(e),34))}function Ede(e){if(!e)throw Y(new nO)}function Sde(e){if(!e)throw Y(new lu)}function Tde(e,t){return Hgn(e,new Zg,t).a}function Crt(e,t){return new Lmt(e.a,e.b,t)}function qt(e,t){return kn(t),new Irt(e,t)}function Irt(e,t){this.a=t,G9.call(this,e)}function Rrt(e,t){this.a=t,G9.call(this,e)}function Ade(e,t){this.a=t,fq.call(this,e)}function Ort(e,t){this.a=t,zW.call(this,e)}function Lrt(e,t){this.a=e,zW.call(this,t)}function Drt(){D8(this),xP(this),this.he()}function _de(){this.Bb|=256,this.Bb|=512}function Dt(){Dt=K,L1=!1,Bx=!0}function Mrt(){Mrt=K,Tq(),bDt=new fKe}function Wtn(e){return oO(e.a)?Nut(e):null}function Ktn(e){return e.l+e.m*fT+e.h*nm}function Ytn(e){return e==null?null:e.name}function y3(e){return e==null?tu:ms(e)}function j8(e,t){return e.lastIndexOf(t)}function xde(e,t,r){return e.indexOf(t,r)}function fu(e,t){return!!t&&e.b[t.g]==t}function vS(e){return e.a!=null?e.a:null}function Xu(e){return un(e.a!=null),e.a}function CO(e,t,r){return CK(e,t,t,r),e}function Prt(e,t){return Fe(t.a,e.a),e.a}function jrt(e,t){return Fe(t.b,e.a),e.a}function F8(e,t){return++e.b,Fe(e.a,t)}function kde(e,t){return++e.b,Xa(e.a,t)}function o0(e,t){return Fe(t.a,e.a),e.a}function $8(e){CA.call(this,e),this.a=e}function Nde(e){Gv.call(this,e),this.a=e}function Cde(e){PA.call(this,e),this.a=e}function Ide(e){QG.call(this),mo(this,e)}function ml(e){ZR.call(this,(Mt(e),e))}function fc(e){ZR.call(this,(Mt(e),e))}function wV(e){lce.call(this,new Npe(e))}function Rde(e,t){z1e.call(this,e,t,null)}function Jtn(e,t){return yr(e.n.a,t.n.a)}function Xtn(e,t){return yr(e.c.d,t.c.d)}function Ztn(e,t){return yr(e.c.c,t.c.c)}function Ya(e,t){return l(wr(e.b,t),16)}function Qtn(e,t){return e.n.b=(Mt(t),t)}function enn(e,t){return e.n.b=(Mt(t),t)}function tnn(e,t){return yr(e.e.b,t.e.b)}function nnn(e,t){return yr(e.e.a,t.e.a)}function rnn(e,t,r){return Cct(e,t,r,e.b)}function Ode(e,t,r){return Cct(e,t,r,e.c)}function inn(e){return hc(),!!e&&!e.dc()}function Frt(){YN(),this.b=new JYe(this)}function $rt(e){this.a=e,VG.call(this,e)}function IO(e){this.c=e,SS.call(this,e)}function ES(e){this.c=e,tn.call(this,e)}function SS(e){this.d=e,tn.call(this,e)}function B8(e,t){VV(),this.f=t,this.d=e}function RO(e,t){QN(),this.a=e,this.b=t}function U8(e,t){tg(),this.b=e,this.c=t}function Lde(e,t){vpe(t,e),this.c=e,this.b=t}function ng(e){var t;t=e.a,e.a=e.b,e.b=t}function v3(e){return Ts(e.a)||Ts(e.b)}function s0(e){return e.$H||(e.$H=++Y3n)}function yV(e,t){return new zit(e,e.gc(),t)}function onn(e,t){return JV(e.c).Kd().Xb(t)}function WA(e,t,r){var o;o=e.dd(t),o.Rb(r)}function Dde(e,t,r){l(f6(e,t),24).Ec(r)}function snn(e,t,r){QK(e.a,r),c7(e.a,t)}function Brt(e,t,r,o){Xfe.call(this,e,t,r,o)}function KA(e,t,r){return xde(e,Qa(t),r)}function ann(e){return M9(),wn((hut(),H_t),e)}function unn(e){return new oy(3,e)}function ch(e){return wc(e,Iy),new La(e)}function YA(e){return un(e.b!=0),e.a.a.c}function zl(e){return un(e.b!=0),e.c.b.c}function cnn(e,t){return CK(e,t,t+1,""),e}function Urt(e){if(!e)throw Y(new $c)}function Hrt(e){e.d=new qrt(e),e.e=new hn}function Mde(e){if(!e)throw Y(new nO)}function lnn(e){if(!e)throw Y(new XG)}function un(e){if(!e)throw Y(new vs)}function Hw(e){if(!e)throw Y(new lu)}function zrt(e){return e.b=l(khe(e.a),45)}function gr(e,t){return!!e.q&&ma(e.q,t)}function dnn(e,t){return e>0?t*t/e:t*t*100}function fnn(e,t){return e>0?t/(e*e):t*100}function zw(e,t){return l(Wd(e.a,t),34)}function hnn(e){return e.f!=null?e.f:""+e.g}function vV(e){return e.f!=null?e.f:""+e.g}function Grt(e){return l_(),parseInt(e)||-1}function pnn(e){return dp(),e.e.a+e.f.a/2}function gnn(e,t,r){return dp(),r.e.a-e*t}function bnn(e,t,r){return W9(),r.Lg(e,t)}function mnn(e,t,r){return dp(),r.e.b-e*t}function wnn(e){return dp(),e.e.b+e.f.b/2}function ynn(e,t){return S1(),yt(e,t.e,t)}function OO(e){ae(e,162)&&l(e,162).mi()}function qrt(e){xfe.call(this,e,null,null)}function Vrt(){mn.call(this,"GROW_TREE",0)}function Wrt(e){this.c=e,this.a=1,this.b=1}function EV(e){jw(),this.b=e,this.a=!0}function Krt(e){V9(),this.b=e,this.a=!0}function Yrt(e){VJ(),dZe(this),this.Df(e)}function Jrt(e){Ar.call(this),K3(this,e)}function Xrt(e){this.c=e,va(e,0),gu(e,0)}function H8(e){return e.a=-e.a,e.b=-e.b,e}function Pde(e,t){return e.a=t.a,e.b=t.b,e}function Gw(e,t,r){return e.a+=t,e.b+=r,e}function Zrt(e,t,r){return e.a-=t,e.b-=r,e}function vnn(e,t,r){nj(),e.nf(t)&&r.Ad(e)}function Enn(e,t,r){aC(oa(e.a),t,xut(r))}function Snn(e,t,r){return Fe(t,kgt(e,r))}function Tnn(e,t){return l(Ht(e.e,t),19)}function Ann(e,t){return l(Ht(e.e,t),19)}function _nn(e,t){return e.c.Ec(l(t,138))}function Qrt(e,t){QN(),RO.call(this,e,t)}function jde(e,t){tg(),U8.call(this,e,t)}function eit(e,t){tg(),U8.call(this,e,t)}function tit(e,t){tg(),jde.call(this,e,t)}function SV(e,t){Uc(),cP.call(this,e,t)}function nit(e,t){Uc(),SV.call(this,e,t)}function Fde(e,t){Uc(),SV.call(this,e,t)}function rit(e,t){Uc(),Fde.call(this,e,t)}function $de(e,t){Uc(),cP.call(this,e,t)}function iit(e,t){Uc(),cP.call(this,e,t)}function oit(e,t){Uc(),$de.call(this,e,t)}function Zu(e,t,r){pu.call(this,e,t,r,2)}function xnn(e,t,r){aC(Fu(e.a),t,kut(r))}function TV(e,t){return w1(e.e,l(t,52))}function knn(e,t,r){return t.xl(e.e,e.c,r)}function Nnn(e,t,r){return t.yl(e.e,e.c,r)}function Bde(e,t,r){return Y7(h6(e,t),r)}function sit(e,t){return Mt(e),e+CV(t)}function Cnn(e){return e==null?null:ms(e)}function Inn(e){return e==null?null:ms(e)}function Rnn(e){return e==null?null:mNn(e)}function Onn(e){return e==null?null:byn(e)}function np(e){e.o==null&&jEn(e)}function Ke(e){return T3(e==null||Bw(e)),e}function le(e){return T3(e==null||Uw(e)),e}function In(e){return T3(e==null||zi(e)),e}function ait(){this.a=new b0,this.b=new b0}function Lnn(e,t){this.d=e,WKe(this),this.b=t}function LO(e,t){this.c=e,HA.call(this,e,t)}function E3(e,t){this.a=e,LO.call(this,e,t)}function Ude(e,t,r){ej.call(this,e,t,r,null)}function uit(e,t,r){ej.call(this,e,t,r,null)}function Hde(){Yft.call(this),this.Bb|=Co}function zde(e,t){QW.call(this,e),this.a=t}function Gde(e,t){QW.call(this,e),this.a=t}function cit(e,t){sf||Fe(e.a,t)}function Dnn(e,t){return CY(e,t),new iat(e,t)}function Mnn(e,t,r){return e.Le(t,r)<=0?r:t}function Pnn(e,t,r){return e.Le(t,r)<=0?t:r}function lit(e){return Mt(e),e?1231:1237}function AV(e){return l(ze(e.a,e.b),296)}function dit(e){return gc(),Hnt(l(e,205))}function jnn(e,t){return l(Wd(e.b,t),144)}function Fnn(e,t){return l(Wd(e.c,t),236)}function fit(e){return new Me(e.c,e.d+e.a)}function $nn(e,t){return zS(),new vyt(t,e)}function Bnn(e,t){return fO(),T_(t.d.i,e)}function Unn(e,t){t.a?rEn(e,t):bV(e.a,t.b)}function qde(e,t){return l(Ht(e.b,t),280)}function Pr(e,t){cr.call(this,e),this.a=t}function Vde(e,t,r){return r=Sc(e,t,3,r),r}function Wde(e,t,r){return r=Sc(e,t,6,r),r}function Kde(e,t,r){return r=Sc(e,t,9,r),r}function Cf(e,t){return YO(t,ywe),e.f=t,e}function Yde(e,t){return(t&sr)%e.d.length}function hit(e,t,r){++e.j,e.oj(t,e.Xi(t,r))}function DO(e,t,r){++e.j,e.rj(),ZW(e,t,r)}function pit(e,t,r){var o;o=e.dd(t),o.Rb(r)}function git(e,t){this.c=e,w0.call(this,t)}function bit(e,t){this.a=e,iZe.call(this,t)}function MO(e,t){this.a=e,iZe.call(this,t)}function Jde(e){this.q=new b.Date($b(e))}function mit(e){this.a=(wc(e,Iy),new La(e))}function wit(e){this.a=(wc(e,Iy),new La(e))}function _V(e){this.a=(At(),new qG(kn(e)))}function z8(){z8=K,m$=new Pr(H2t,0)}function aE(){aE=K,l2=new cr("root")}function JA(){JA=K,c5=new UZe,new HZe}function qw(){qw=K,T2e=ct((sc(),xm))}function Hnn(e){return Ln(Rb(e,32))^Ln(e)}function xV(e){return String.fromCharCode(e)}function znn(e){return e==null?null:e.message}function Gnn(e,t,r){return e.apply(t,r)}function yit(e,t,r){return L0e(e.c,e.b,t,r)}function Xde(e,t,r){return IS(e,l(t,23),r)}function kb(e,t){return Dt(),e==t?0:e?1:-1}function Zde(e,t){var r;return r=t,!!e.De(r)}function Qde(e,t){var r;return r=e.e,e.e=t,r}function qnn(e,t){var r;r=e[AX],r.call(e,t)}function Vnn(e,t){var r;r=e[AX],r.call(e,t)}function Vw(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function vit(e){Zs(e.e),e.d.b=e.d,e.d.a=e.d}function PO(e){e.b?PO(e.b):e.f.c.yc(e.e,e.d)}function jO(e){return!e.a&&(e.a=new ce),e.a}function Eit(e,t,r){return e.a+=Mf(t,0,r),e}function Wnn(e,t,r){_b(),GKe(e,t.Te(e.a,r))}function efe(e,t,r,o){aP.call(this,e,t,r,o)}function tfe(e,t){Ace.call(this,e),this.a=t}function kV(e,t){Ace.call(this,e),this.a=t}function Sit(){G8.call(this),this.a=new ro}function nfe(){this.n=new ro,this.o=new ro}function Tit(){this.b=new ro,this.c=new je}function Ait(){this.a=new je,this.b=new je}function _it(){this.a=new ah,this.b=new wZe}function rfe(){this.b=new d1,this.a=new d1}function xit(){this.b=new hi,this.a=new hi}function kit(){this.b=new hn,this.a=new hn}function Nit(){this.a=new je,this.d=new je}function Cit(){this.a=new IWe,this.b=new uUe}function Iit(){this.b=new KQe,this.a=new yHe}function G8(){this.n=new oS,this.i=new wS}function br(e,t){return e.a+=t.a,e.b+=t.b,e}function Li(e,t){return e.a-=t.a,e.b-=t.b,e}function Knn(e){return Mw(e.j.c,0),e.a=-1,e}function ife(e,t,r){return r=Sc(e,t,11,r),r}function Rit(e,t,r){r!=null&&Ej(t,OY(e,r))}function Oit(e,t,r){r!=null&&Sj(t,OY(e,r))}function TS(e,t,r,o){ke.call(this,e,t,r,o)}function Ww(e,t){Ia.call(this,aI+e+um+t)}function ofe(e,t,r,o){ke.call(this,e,t,r,o)}function Lit(e,t,r,o){ofe.call(this,e,t,r,o)}function Dit(e,t,r,o){mP.call(this,e,t,r,o)}function NV(e,t,r,o){mP.call(this,e,t,r,o)}function Mit(e,t,r,o){NV.call(this,e,t,r,o)}function sfe(e,t,r,o){mP.call(this,e,t,r,o)}function Tt(e,t,r,o){sfe.call(this,e,t,r,o)}function afe(e,t,r,o){NV.call(this,e,t,r,o)}function Pit(e,t,r,o){afe.call(this,e,t,r,o)}function jit(e,t,r,o){the.call(this,e,t,r,o)}function ufe(e,t){return e.hk().ti().oi(e,t)}function cfe(e,t){return e.hk().ti().qi(e,t)}function Ynn(e,t){return e.n.a=(Mt(t),t+10)}function Jnn(e,t){return e.n.a=(Mt(t),t+10)}function Xnn(e,t){return e.e=l(e.d.Kb(t),163)}function Znn(e,t){return t==e||q_(L7(t),e)}function Gl(e,t){return $9(new Array(t),e)}function Fit(e,t){return Mt(e),me(e)===me(t)}function wt(e,t){return Mt(e),me(e)===me(t)}function $it(e,t){return Jn(e.a,t,"")==null}function lfe(e,t,r){return e.lastIndexOf(t,r)}function Qnn(e,t){return e.b.zd(new ott(e,t))}function ern(e,t){return e.b.zd(new stt(e,t))}function Bit(e,t){return e.b.zd(new att(e,t))}function trn(e){return e<100?null:new Qg(e)}function nrn(e,t){return Te(t,(Be(),mD),e)}function rrn(e,t,r){return yr(e[t.a],e[r.a])}function irn(e,t){return na(e.a.d.p,t.a.d.p)}function orn(e,t){return na(t.a.d.p,e.a.d.p)}function srn(e,t){return fO(),!T_(t.d.i,e)}function arn(e,t){sf||t&&(e.d=t)}function urn(e,t){ep(e.f)?CEn(e,t):ywn(e,t)}function Uit(e,t){_on.call(this,e,e.length,t)}function Hit(e){this.c=e,I8.call(this,wL,0)}function dfe(e,t){this.c=e,iW.call(this,e,t)}function zit(e,t,r){this.a=e,Lde.call(this,t,r)}function Git(e,t,r){this.c=t,this.b=r,this.a=e}function FO(e){ZA(),this.d=e,this.a=new iE}function crn(e,t){var r;return r=t.ni(e.a),r}function lrn(e,t){return yr(e.c-e.s,t.c-t.s)}function drn(e,t){return yr(e.c.e.a,t.c.e.a)}function frn(e,t){return yr(e.b.e.a,t.b.e.a)}function qit(e,t){return ae(t,16)&&eyt(e.c,t)}function hrn(e,t,r){return l(e.c,72).Uk(t,r)}function q8(e,t,r){return l(e.c,72).Vk(t,r)}function prn(e,t,r){return knn(e,l(t,345),r)}function ffe(e,t,r){return Nnn(e,l(t,345),r)}function grn(e,t,r){return Pbt(e,l(t,345),r)}function Vit(e,t,r){return Rwn(e,l(t,345),r)}function S3(e,t){return t==null?null:py(e.b,t)}function AS(e){return e==_m||e==Oh||e==fa}function Wit(e){return e.c?_s(e.c.a,e,0):-1}function CV(e){return Uw(e)?(Mt(e),e):e.se()}function V8(e){return!isNaN(e)&&!isFinite(e)}function IV(e){trt(this),tc(this),mo(this,e)}function Tu(e){dV(this),Dfe(this.c,0,e.Nc())}function Kit(e){Mu(e.a),xpe(e.c,e.b),e.b=null}function RV(){RV=K,g2e=new Xt,cxt=new vt}function Yit(){Yit=K,VLt=we(Ri,Rt,1,0,5,1)}function Jit(){Jit=K,lDt=we(Ri,Rt,1,0,5,1)}function hfe(){hfe=K,dDt=we(Ri,Rt,1,0,5,1)}function brn(e){return b_(),wn((wdt(),fxt),e)}function mrn(e){return Yc(),wn((Olt(),wxt),e)}function wrn(e){return Sd(),wn((Llt(),xxt),e)}function yrn(e){return _u(),wn((Dlt(),Nxt),e)}function vrn(e){return Za(),wn((Mlt(),Ixt),e)}function Ern(e){return eF(),wn((knt(),Qxt),e)}function pfe(e,t){if(!e)throw Y(new jt(t))}function XA(e){if(!e)throw Y(new es(twe))}function OV(e,t){if(e!=t)throw Y(new $c)}function Hc(e,t,r){this.a=e,this.b=t,this.c=r}function Xit(e,t,r){this.a=e,this.b=t,this.c=r}function Zit(e,t,r){this.a=e,this.b=t,this.c=r}function gfe(e,t,r){this.b=e,this.c=t,this.a=r}function Qit(e,t,r){this.d=e,this.b=r,this.a=t}function Srn(e,t,r){return _b(),e.a.Wd(t,r),t}function LV(e){var t;return t=new yb,t.e=e,t}function bfe(e){var t;return t=new _Ze,t.b=e,t}function W8(e,t,r){this.e=t,this.b=e,this.d=r}function K8(e,t,r){this.b=e,this.a=t,this.c=r}function eot(e){this.a=e,eg(),Gs(Date.now())}function tot(e,t,r){this.a=e,this.b=t,this.c=r}function DV(e){aP.call(this,e.d,e.c,e.a,e.b)}function mfe(e){aP.call(this,e.d,e.c,e.a,e.b)}function Trn(e){return zt(),wn((Nht(),tNt),e)}function Arn(e){return A0(),wn((ydt(),tkt),e)}function _rn(e){return x_(),wn((vdt(),qkt),e)}function xrn(e){return cj(),wn((Hct(),lkt),e)}function krn(e){return G3(),wn((Plt(),Pkt),e)}function Nrn(e){return Vi(),wn((rft(),Bkt),e)}function Crn(e){return YS(),wn((Edt(),Xkt),e)}function Irn(e){return E_(),wn((zct(),sNt),e)}function Rrn(e){return Zi(),wn((Nnt(),aNt),e)}function Orn(e){return Mj(),wn((Sdt(),lNt),e)}function Lrn(e){return Xl(),wn((Tdt(),ENt),e)}function Drn(e){return yy(),wn((gft(),TNt),e)}function Mrn(e){return tj(),wn((qct(),RNt),e)}function Prn(e){return eT(),wn((Dft(),INt),e)}function jrn(e){return T0(),wn((edt(),NNt),e)}function Frn(e){return B7(),wn((Cht(),CNt),e)}function $rn(e){return lC(),wn((kdt(),ONt),e)}function Brn(e){return mj(),wn((Blt(),LNt),e)}function Urn(e){return tL(),wn((Ght(),DNt),e)}function Hrn(e){return m6(),wn((Gct(),MNt),e)}function zrn(e){return Vb(),wn((Ult(),jNt),e)}function Grn(e){return _7(),wn((Lft(),FNt),e)}function qrn(e){return l6(),wn((Vct(),$Nt),e)}function Vrn(e){return K6(),wn((Rft(),BNt),e)}function Wrn(e){return W_(),wn((Oft(),UNt),e)}function Krn(e){return Fo(),wn((ipt(),HNt),e)}function Yrn(e){return __(),wn(($lt(),zNt),e)}function Jrn(e){return g1(),wn((jlt(),GNt),e)}function Xrn(e){return lp(),wn((Flt(),VNt),e)}function Zrn(e){return UP(),wn((Wct(),WNt),e)}function Qrn(e){return ic(),wn((mft(),YNt),e)}function ein(e){return GP(),wn((Kct(),JNt),e)}function tin(e){return wy(),wn((_dt(),$It),e)}function nin(e){return rC(),wn((Klt(),FIt),e)}function rin(e){return hC(),wn((wft(),BIt),e)}function iin(e){return _1(),wn((rpt(),UIt),e)}function oin(e){return rL(),wn((qht(),jIt),e)}function sin(e){return bp(),wn((xdt(),HIt),e)}function ain(e){return g6(),wn((Yct(),zIt),e)}function uin(e){return jo(),wn((Hlt(),qIt),e)}function cin(e){return Oj(),wn((zlt(),VIt),e)}function lin(e){return nC(),wn((Glt(),WIt),e)}function din(e){return R_(),wn((qlt(),KIt),e)}function fin(e){return bj(),wn((Vlt(),YIt),e)}function hin(e){return Lj(),wn((Wlt(),JIt),e)}function pin(e){return Kb(),wn((Adt(),g4t),e)}function gin(e){return H3(),wn((Jct(),v4t),e)}function bin(e){return If(),wn((Xct(),k4t),e)}function min(e){return zd(),wn((Zct(),C4t),e)}function win(e){return vd(),wn((Qct(),G4t),e)}function yin(e,t){return Mt(e),e+(Mt(t),t)}function vin(e){return g0(),wn((elt(),X4t),e)}function Ein(e){return JS(),wn((Rdt(),Z4t),e)}function Sin(e){return IC(),wn((Cnt(),Q4t),e)}function Tin(e){return eC(),wn((tdt(),eRt),e)}function Ain(e){return tC(),wn((Ndt(),TRt),e)}function _in(e){return FP(),wn((tlt(),ARt),e)}function xin(e){return _j(),wn((nlt(),CRt),e)}function kin(e){return v7(),wn((bft(),RRt),e)}function Nin(e){return rj(),wn((rlt(),ORt),e)}function Cin(e){return R6(),wn((ndt(),LRt),e)}function Iin(e){return d7(),wn((Cdt(),QRt),e)}function Rin(e){return Ij(),wn((Ylt(),eOt),e)}function Oin(e){return Zj(),wn((Jlt(),tOt),e)}function Lin(e){return S7(),wn((Idt(),rOt),e)}function Din(e){return Wj(),wn((rdt(),sOt),e)}function ZA(){ZA=K,k_e=(He(),Kt),RB=Qt}function hc(){hc=K,mNt=new wBe,wNt=new yBe}function $O(){$O=K,T$=new MFe,A$=new PFe}function Y8(){Y8=K,fNt=new c$e,dNt=new l$e}function Min(e){return!e.e&&(e.e=new je),e.e}function Pin(e){return xC(),wn((yft(),OOt),e)}function jin(e){return Y9(),wn((bct(),DOt),e)}function Fin(e){return M6(),wn((Xlt(),LOt),e)}function $in(e){return J9(),wn((mct(),POt),e)}function Bin(e){return o6(),wn((olt(),jOt),e)}function Uin(e){return J6(),wn((vft(),FOt),e)}function Hin(e){return KP(),wn((ilt(),NOt),e)}function zin(e){return ij(),wn((Zlt(),COt),e)}function Gin(e){return Uj(),wn((Qlt(),IOt),e)}function qin(e){return JN(),wn((wct(),e6t),e)}function Vin(e){return x6(),wn((slt(),t6t),e)}function Win(e){return zP(),wn((alt(),n6t),e)}function Kin(e){return g7(),wn((Odt(),i6t),e)}function Yin(e){return X9(),wn((yct(),h6t),e)}function Jin(e){return Z9(),wn((vct(),g6t),e)}function Xin(e){return Q9(),wn((Ect(),m6t),e)}function Zin(e){return w6(),wn((ult(),y6t),e)}function Qin(e){return Jd(),wn((pft(),_6t),e)}function eon(e){return A1(),wn((Iht(),k6t),e)}function ton(e){return mh(),wn((jft(),N6t),e)}function non(e){return Zb(),wn((Pft(),D6t),e)}function ron(e){return vi(),wn((nft(),sLt),e)}function ion(e){return O_(),wn((Ldt(),aLt),e)}function oon(e){return Kd(),wn((odt(),uLt),e)}function son(e){return gp(),wn((Ddt(),cLt),e)}function aon(e){return T7(),wn((Mft(),lLt),e)}function uon(e){return pp(),wn((idt(),fLt),e)}function con(e){return vc(),wn((Mdt(),pLt),e)}function lon(e){return Ty(),wn((zht(),gLt),e)}function don(e){return vE(),wn((hft(),bLt),e)}function fon(e){return qi(),wn((Fft(),mLt),e)}function hon(e){return xu(),wn(($ft(),wLt),e)}function pon(e){return V3(),wn((adt(),ALt),e)}function gon(e){return He(),wn((tft(),yLt),e)}function bon(e){return sc(),wn((jdt(),_Lt),e)}function mon(e){return Uu(),wn((Hht(),xLt),e)}function won(e){return VS(),wn((sdt(),kLt),e)}function yon(e){return qP(),wn((Pdt(),NLt),e)}function von(e){return Kj(),wn((Fdt(),CLt),e)}function Eon(e){return Pj(),wn(($dt(),OLt),e)}function MV(e,t){this.c=e,this.a=t,this.b=t-e}function Qu(e,t,r){this.c=e,this.a=t,this.b=r}function not(e,t,r){this.a=e,this.c=t,this.b=r}function rot(e,t,r){this.a=e,this.c=t,this.b=r}function iot(e,t,r){this.a=e,this.b=t,this.c=r}function wfe(e,t,r){this.a=e,this.b=t,this.c=r}function yfe(e,t,r){this.a=e,this.b=t,this.c=r}function PV(e,t,r){this.a=e,this.b=t,this.c=r}function oot(e,t,r){this.a=e,this.b=t,this.c=r}function vfe(e,t,r){this.a=e,this.b=t,this.c=r}function sot(e,t,r){this.a=e,this.b=t,this.c=r}function aot(e,t,r){this.b=e,this.a=t,this.c=r}function rg(e,t,r){this.e=e,this.a=t,this.c=r}function uot(e,t,r){Uc(),Mhe.call(this,e,t,r)}function jV(e,t,r){Uc(),bhe.call(this,e,t,r)}function Efe(e,t,r){Uc(),bhe.call(this,e,t,r)}function Sfe(e,t,r){Uc(),bhe.call(this,e,t,r)}function cot(e,t,r){Uc(),jV.call(this,e,t,r)}function Tfe(e,t,r){Uc(),jV.call(this,e,t,r)}function lot(e,t,r){Uc(),Tfe.call(this,e,t,r)}function dot(e,t,r){Uc(),Efe.call(this,e,t,r)}function fot(e,t,r){Uc(),Sfe.call(this,e,t,r)}function Son(e){return sT(),wn((Rht(),qLt),e)}function BO(e,t){return kn(e),kn(t),new met(e,t)}function _S(e,t){return kn(e),kn(t),new vot(e,t)}function Ton(e,t){return kn(e),kn(t),new Eot(e,t)}function Aon(e,t){return kn(e),kn(t),new ket(e,t)}function Afe(e,t){cen.call(this,e,qj(new Ds(t)))}function hot(e,t){this.c=e,this.b=t,this.a=!1}function _fe(e){this.d=e,WKe(this),this.b=gsn(e.d)}function xfe(e,t,r){this.c=e,t8.call(this,t,r)}function _on(e,t,r){fst.call(this,t,r),this.a=e}function pot(){this.a=";,;",this.b="",this.c=""}function got(e,t,r){this.b=e,Ant.call(this,t,r)}function xon(e,t){t&&(e.b=t,e.a=(u1(t),t.a))}function FV(e){return un(e.b!=0),Vc(e,e.a.a)}function kon(e){return un(e.b!=0),Vc(e,e.c.b)}function Non(e){return!e.c&&(e.c=new NA),e.c}function bot(e){var t;return t=new QG,TK(t,e),t}function UO(e){var t;return t=new Ar,TK(t,e),t}function QA(e){var t;return t=new je,lK(t,e),t}function Con(e){var t;return t=new hi,lK(t,e),t}function l(e,t){return T3(e==null||EY(e,t)),e}function J8(e,t){return t&&SP(e,t.d)?t:null}function HO(e,t){if(!e)throw Y(new jt(t))}function kfe(e,t){if(!e)throw Y(new yQe(t))}function xS(e,t){if(!e)throw Y(new es(t))}function Ion(e,t){return K9(),na(e.d.p,t.d.p)}function Ron(e,t){return dp(),yr(e.e.b,t.e.b)}function Oon(e,t){return dp(),yr(e.e.a,t.e.a)}function Lon(e,t){return na(Iot(e.d),Iot(t.d))}function Don(e,t){return t==(He(),Kt)?e.c:e.d}function Mon(e){return new Me(e.c+e.b,e.d+e.a)}function Nfe(e){var t,r;r=e.d,t=e.a,e.d=t,e.a=r}function Cfe(e){var t,r;t=e.b,r=e.c,e.b=r,e.c=t}function lh(e,t,r,o,a){e.b=t,e.c=r,e.d=o,e.a=a}function Ife(e,t,r,o,a){e.d=t,e.c=r,e.a=o,e.b=a}function mot(e,t,r,o,a){e.c=t,e.d=r,e.b=o,e.a=a}function X8(e,t){return Dfn(e),e.a*=t,e.b*=t,e}function Rfe(e,t){return t<0?e.g=-1:e.g=t,e}function zO(e,t,r){Qle.call(this,e,t),this.c=r}function Ofe(e,t,r){qA.call(this,e,t),this.b=r}function Lfe(e){hfe(),y9.call(this),this._h(e)}function Z8(e,t,r){Qle.call(this,e,t),this.c=r}function wot(e,t,r){this.a=e,Qv.call(this,t,r)}function yot(e,t,r){this.a=e,Qv.call(this,t,r)}function $V(e){this.b=e,this.a=Cb(this.b.a).Md()}function vot(e,t){this.b=e,this.a=t,PG.call(this)}function Eot(e,t){this.a=e,this.b=t,PG.call(this)}function Sot(e){Lde.call(this,e.length,0),this.a=e}function Dfe(e,t,r){yme(r,0,e,t,r.length,!1)}function e_(e,t,r){var o;o=new Qw(r),Kl(e,t,o)}function Pon(e,t){var r;return r=e.c,age(e,t),r}function jon(e,t){return(lgt(e)<<4|lgt(t))&Ei}function Tot(e){return e!=null&&!sY(e,O4,L4)}function GO(e){return e==0||isNaN(e)?e:e<0?-1:1}function Mfe(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 Q8(e){var t;return t=e.slice(),iK(t,e)}function eP(e){var t;return t=e.n,e.a.b+t.d+t.a}function Aot(e){var t;return t=e.n,e.e.b+t.d+t.a}function Pfe(e){var t;return t=e.n,e.e.a+t.b+t.c}function _ot(e){return fr(),new dh(0,e)}function xot(){xot=K,Ure=(At(),new qG(AQ))}function tP(){tP=K,new V1e((sq(),PQ),(oq(),MQ))}function kot(){h_(),Ysn.call(this,(n1(),Dl))}function Not(e,t){fst.call(this,t,1040),this.a=e}function a0(e,t){return mC(e,new qA(t.a,t.b))}function Fon(e){return!fo(e)&&e.c.i.c==e.d.i.c}function $on(e,t){return e.c=t)throw Y(new yZe)}function Zs(e){e.f=new $nt(e),e.i=new Bnt(e),++e.g}function gP(e){this.b=new La(11),this.a=(h0(),e)}function ZV(e){this.b=null,this.a=(h0(),e||h2e)}function Qfe(e,t){this.e=e,this.d=t&64?t|$f:t}function fst(e,t){this.c=0,this.d=e,this.b=t|64|$f}function hst(e){this.a=_1t(e.a),this.b=new Tu(e.b)}function ig(e,t,r,o){var a;a=e.i,a.i=t,a.a=r,a.b=o}function ehe(e){var t;for(t=e;t.f;)t=t.f;return t}function Esn(e){return e.e?Spe(e.e):null}function Ssn(e,t){return zS(),yr(t.a.o.a,e.a.o.a)}function pst(e,t,r){return Z_(),NK(e,t)&&NK(e,r)}function k3(e){return xu(),!e.Gc(Rp)&&!e.Gc(K1)}function gst(e,t,r){return KEt(e,l(t,12),l(r,12))}function bst(e){return bu(),l(e,12).g.c.length!=0}function mst(e){return bu(),l(e,12).e.c.length!=0}function bP(e){return new Me(e.c+e.b/2,e.d+e.a/2)}function QV(e,t){return t.Sh()?w1(e.b,l(t,52)):t}function Tsn(e,t,r){t.of(r,ue(le(Ht(e.b,r)))*e.a)}function Asn(e,t){t.Tg("General 'Rotator",1),rNn(e)}function Pi(e,t,r,o,a){tK.call(this,e,t,r,o,a,-1)}function N3(e,t,r,o,a){a6.call(this,e,t,r,o,a,-1)}function ke(e,t,r,o){yi.call(this,e,t,r),this.b=o}function mP(e,t,r,o){zO.call(this,e,t,r),this.b=o}function wst(e){pnt.call(this,e,!1),this.a=!1}function yst(){iV.call(this,"LOOKAHEAD_LAYOUT",1)}function vst(){iV.call(this,"LAYOUT_NEXT_LEVEL",3)}function Est(){mn.call(this,"ABSOLUTE_XPLACING",0)}function Sst(e){this.b=e,SS.call(this,e),_rt(this)}function Tst(e){this.b=e,IO.call(this,e),xrt(this)}function Ast(e,t){this.b=e,SKe.call(this,e.b),this.a=t}function Xw(e,t,r){this.a=e,TS.call(this,t,r,5,6)}function the(e,t,r,o){this.b=e,yi.call(this,t,r,o)}function Ob(e,t,r){jf(),this.e=e,this.d=t,this.a=r}function so(e,t){for(Mt(t);e.Ob();)t.Ad(e.Pb())}function wP(e,t){return fr(),new ghe(e,t,0)}function eW(e,t){return fr(),new ghe(6,e,t)}function _sn(e,t){return wt(e.substr(0,t.length),t)}function ma(e,t){return zi(t)?TW(e,t):!!ts(e.f,t)}function xsn(e){return Ua(~e.l&Hu,~e.m&Hu,~e.h&Ep)}function tW(e){return typeof e===pL||typeof e===YJ}function hh(e){return new $t(new Ade(e.a.length,e.a))}function nW(e){return new Et(null,Dsn(e,e.length))}function _st(e){if(!e)throw Y(new vs);return e.d}function CS(e){var t;return t=Q3(e),un(t!=null),t}function ksn(e){var t;return t=Egn(e),un(t!=null),t}function n_(e,t){var r;return r=e.a.gc(),vpe(t,r),r-t}function pi(e,t){var r;return r=e.a.yc(t,e),r==null}function qO(e,t){return e.a.yc(t,(Dt(),L1))==null}function Nsn(e,t){return e>0?b.Math.log(e/t):-100}function nhe(e,t){return t?mo(e,t):!1}function IS(e,t,r){return Jl(e.a,t),$fe(e.b,t.g,r)}function Csn(e,t,r){t_(r,e.a.c.length),nc(e.a,r,t)}function be(e,t,r,o){Lpt(t,r,e.length),Isn(e,t,r,o)}function Isn(e,t,r,o){var a;for(a=t;a0?1:0}function Msn(e,t){return yr(e.c.c+e.c.b,t.c.c+t.c.b)}function yP(e,t){Wr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Nst(e,t){return e.c?Nst(e.c,t):Fe(e.b,t),e}function c0(e,t){ei(Oa(e.Mc(),new UBe),new aJe(t))}function r_(e,t,r,o,a){VY(e,l(wr(t.k,r),16),r,o,a)}function Cst(e,t,r,o,a){for(;t=e.g}function O3(e){return b.Math.sqrt(e.a*e.a+e.b*e.b)}function Ust(e){return ae(e,104)&&(l(e,20).Bb&Ws)!=0}function l0(e){return!e.d&&(e.d=new yi(Go,e,1)),e.d}function Ksn(e){return!e.a&&(e.a=new yi(Y1,e,4)),e.a}function Hst(e){this.c=e,this.a=new Ar,this.b=new Ar}function Ysn(e){this.a=(Mt(Bn),Bn),this.b=e,new $ce}function zst(e,t,r){this.a=e,Qhe.call(this,8,t,null,r)}function phe(e,t,r){this.a=e,Ace.call(this,t),this.b=r}function ghe(e,t,r){Km.call(this,e),this.a=t,this.b=r}function bhe(e,t,r){k9.call(this,t),this.a=e,this.b=r}function Jsn(e,t,r){l(t.b,68),Da(t.a,new wfe(e,r,t))}function fW(e,t){for(Mt(t);e.c=e?new ple:ehn(e-1)}function wl(e){if(e==null)throw Y(new rS);return e}function Mt(e){if(e==null)throw Y(new rS);return e}function ji(e){return!e.a&&e.c?e.c.b:e.a}function Wst(e){var t,r;return t=e.c.i.c,r=e.d.i.c,t==r}function ean(e,t){return na(t.j.c.length,e.j.c.length)}function Kst(e){The(e.a),e.b=we(Ri,Rt,1,e.b.length,5,1)}function L3(e){e.c?e.c.Ye():(e.d=!0,q2n(e))}function u1(e){e.c?u1(e.c):(y1(e),e.d=!0)}function Mu(e){Hw(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function Yst(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function Jst(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ui(){eQe.call(this),Mw(this.j.c,0),this.a=-1}function Xst(){mn.call(this,"DELAUNAY_TRIANGULATION",0)}function mhe(e){for(;e.a.b!=0;)Ukn(e,l(Yat(e.a),9))}function tan(e,t){Tn((!e.a&&(e.a=new MO(e,e)),e.a),t)}function whe(e,t){e.c<0||e.b.b=0?e.hi(r):lme(e,t)}function Zst(e,t){this.b=e,iW.call(this,e,t),_rt(this)}function Qst(e,t){this.b=e,dfe.call(this,e,t),xrt(this)}function eat(){Ube.call(this,_l,($A(),C3e)),Q_n(this)}function yhe(e){return!e.b&&(e.b=new N9(new iq)),e.b}function ran(e){if(e.p!=3)throw Y(new lu);return e.e}function ian(e){if(e.p!=4)throw Y(new lu);return e.e}function oan(e){if(e.p!=4)throw Y(new lu);return e.j}function san(e){if(e.p!=3)throw Y(new lu);return e.j}function aan(e){if(e.p!=6)throw Y(new lu);return e.f}function uan(e){if(e.p!=6)throw Y(new lu);return e.k}function f0(e){return e.c==-2&&MZt(e,Dwn(e.g,e.b)),e.c}function o_(e,t){var r;return r=lW("",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 can(e,t){KV(l(t.b,68),e),Da(t.a,new bce(e))}function tat(e,t){return tP(),new V1e(new Nrt(e),new krt(t))}function lan(e,t,r){return qS(),r.Kg(e,l(t.jd(),149))}function dan(e){return wc(e,QJ),lj(Ao(Ao(5,e),e/10|0))}function vhe(e){return At(),e?e.Me():(h0(),h0(),p2e)}function Jn(e,t,r){return zi(t)?ns(e,t,r):eu(e.f,t,r)}function fan(e){return String.fromCharCode.apply(null,e)}function nat(e){return!e.d&&(e.d=new CA(e.c.Bc())),e.d}function s_(e){return!e.a&&(e.a=new TQe(e.c.vc())),e.a}function rat(e){return!e.b&&(e.b=new PA(e.c.ec())),e.b}function iat(e,t){Ltn.call(this,thn(kn(e),kn(t))),this.a=t}function Ehe(e,t,r,o){t0.call(this,e,t),this.d=r,this.a=o}function TP(e,t,r,o){t0.call(this,e,r),this.a=t,this.f=o}function D3(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function oat(){Ube.call(this,lm,(HQe(),yDt)),Gxn(this)}function sat(){Es.call(this,"There is no more element.")}function co(e,t){return Yt(t,e.length),e.charCodeAt(t)}function aat(e,t){e.u.Gc((xu(),Rp))&&Rvn(e,t),vdn(e,t)}function ia(e,t){return me(e)===me(t)||e!=null&&pr(e,t)}function Wo(e,t){return GV(e.a,t)?e.b[l(t,23).g]:null}function uat(e,t){var r;return r=new ra(e),Ot(t.c,r),r}function M3(e){return e.j.c.length=0,The(e.c),Knn(e.a),e}function han(e){return!e.b&&(e.b=new Tt(pn,e,4,7)),e.b}function a_(e){return!e.c&&(e.c=new Tt(pn,e,5,8)),e.c}function She(e){return!e.c&&(e.c=new ke(Gu,e,9,9)),e.c}function hW(e){return!e.n&&(e.n=new ke(Rs,e,1,7)),e.n}function nr(e,t,r,o){return xht(e,t,r,!1),Hj(e,o),e}function cat(e,t){nY(e,ue(fp(t,"x")),ue(fp(t,"y")))}function lat(e,t){nY(e,ue(fp(t,"x")),ue(fp(t,"y")))}function pan(){return X9(),Z(X(f6t,1),Ce,557,0,[ere])}function gan(){return Z9(),Z(X(p6t,1),Ce,558,0,[tre])}function ban(){return Q9(),Z(X(b6t,1),Ce,559,0,[nre])}function man(){return J9(),Z(X(MOt,1),Ce,550,0,[$ne])}function wan(){return Y9(),Z(X(uke,1),Ce,480,0,[Fne])}function yan(){return JN(),Z(X(Cke,1),Ce,531,0,[MD])}function pW(){pW=K,G_t=new Ele(Z(X(dm,1),tF,45,0,[]))}function van(e,t){return new Dat(l(kn(e),50),l(kn(t),50))}function Ean(e){return e!=null&&VN(EU,e.toLowerCase())}function u_(e){return e.e==jx&&UZt(e,B1n(e.g,e.b)),e.e}function WO(e){return e.f==jx&&zZt(e,Pmn(e.g,e.b)),e.f}function uE(e){var t;return t=e.b,!t&&(e.b=t=new mKe(e)),t}function The(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function San(e,t,r){var o;o=l(e.d.Kb(r),163),o&&o.Nb(t)}function Tan(e,t){return yr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function Aan(e,t){return yr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function _an(e,t){return mle(),yr((Mt(e),e),(Mt(t),t))}function Oa(e,t){return y1(e),new Et(e,new Epe(t,e.a))}function lr(e,t){return y1(e),new Et(e,new Dpe(t,e.a))}function ey(e,t){return y1(e),new zde(e,new Elt(t,e.a))}function AP(e,t){return y1(e),new Gde(e,new Slt(t,e.a))}function Ahe(e,t){this.b=e,this.c=t,this.a=new fS(this.b)}function gW(e,t,r,o){this.a=e,this.e=t,this.d=r,this.c=o}function bW(e,t,r){this.a=awe,this.d=e,this.b=t,this.c=r}function _P(e,t,r,o){this.a=e,this.c=t,this.b=r,this.d=o}function _he(e,t,r,o){this.c=e,this.b=t,this.a=r,this.d=o}function dat(e,t,r,o){this.c=e,this.b=t,this.d=r,this.a=o}function fat(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 OS(e,t,r,o){mn.call(this,e,t),this.a=r,this.b=o}function hat(e,t,r,o){mpt.call(this,e,r,o,!1),this.f=t}function pat(e,t){this.d=(Mt(e),e),this.a=16449,this.c=t}function gat(e){this.a=new je,this.e=we(Rn,Pe,54,e,0,2)}function xan(e){e.Tg("No crossing minimization",1),e.Ug()}function ip(e){var t,r;return r=(t=new Ym,t),w_(r,e),r}function mW(e){var t,r;return r=(t=new Ym,t),Gbe(r,e),r}function wW(e,t,r){var o,a;return o=K0e(e),a=t.qi(r,o),a}function yW(e){var t;return t=rhn(e),t||null}function bat(e){return!e.b&&(e.b=new ke(Ir,e,12,3)),e.b}function c_(e){if($u(e.d),e.d.d!=e.c)throw Y(new $c)}function mat(e,t,r,o){this.a=e,this.c=t,this.d=r,this.b=o}function wat(e,t,r,o){this.a=e,this.b=t,this.d=r,this.c=o}function yat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function vat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function Db(e,t,r,o){this.e=e,this.a=t,this.c=r,this.d=o}function Eat(e,t,r,o){Uc(),Tlt.call(this,t,r,o),this.a=e}function Sat(e,t,r,o){Uc(),Tlt.call(this,t,r,o),this.a=e}function Tat(e,t){this.a=e,Lnn.call(this,e,l(e.d,16).dd(t))}function vW(e){this.f=e,this.c=this.f.e,e.f>0&&vbt(this)}function xP(e){return e.n&&(e.e!==u2t&&e.he(),e.j=null),e}function Aat(e){return T3(e==null||tW(e)&&e.Rm!==fe),e}function kan(e,t,r){return Fe(e.a,(CY(t,r),new t0(t,r))),e}function Nan(e,t,r){W_n(e.a,r),Qhn(r),gEn(e.b,r),pxn(t,r)}function Can(e,t){return yr(hu(e)*ec(e),hu(t)*ec(t))}function Ian(e,t){return yr(hu(e)*ec(e),hu(t)*ec(t))}function Ran(e){hc();var t;t=l(e.g,9),t.n.a=e.d.c+t.d.b}function tc(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function xhe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function khe(e){return un(e.b0?Wl(e):new je}function Lan(e,t){return l(F(e,(Ie(),RT)),16).Ec(t),t}function Dan(e,t){return yt(e,l(F(t,(Be(),Yy)),15),t)}function Man(e){return R0(e)&&Ye(Ke(ve(e,(Be(),bm))))}function LS(e){var t;return t=e.f,t||(e.f=new HA(e,e.c))}function Pan(e,t,r){return YN(),Wgn(l(Ht(e.e,t),520),r)}function jan(e,t,r){e.i=0,e.e=0,t!=r&&wpt(e,t,r)}function Fan(e,t,r){e.i=0,e.e=0,t!=r&&ypt(e,t,r)}function _at(e,t,r,o){this.b=e,this.c=o,I8.call(this,t,r)}function xat(e,t){this.g=e,this.d=Z(X(Nh,1),vg,9,0,[t])}function kat(e,t){e.d&&!e.d.a&&(cZe(e.d,t),kat(e.d,t))}function Nat(e,t){e.e&&!e.e.a&&(cZe(e.e,t),Nat(e.e,t))}function Cat(e,t){return yE(e.j,t.s,t.c)+yE(t.e,e.s,e.c)}function $an(e){return l(e.jd(),149).Og()+":"+ms(e.kd())}function Ban(e,t){return-yr(hu(e)*ec(e),hu(t)*ec(t))}function Uan(e,t){return rc(e),rc(t),gQe(l(e,23),l(t,23))}function Mb(e,t,r){var o,a;o=CV(r),a=new E9(o),Kl(e,t,a)}function Han(e){F9(),b.setTimeout(function(){throw e},0)}function Iat(e){this.b=new je,li(this.b,this.b),this.a=e}function Rat(e){this.b=new NUe,this.a=e,b.Math.random()}function Nhe(e,t){new Ar,this.a=new Du,this.b=e,this.c=t}function Oat(e,t,r,o){Qle.call(this,t,r),this.b=e,this.a=o}function EW(e,t,r,o,a,c){a6.call(this,e,t,r,o,a,c?-2:-1)}function Lat(){ZY(this,new Vue),this.wb=(a1(),Ut),$A()}function Che(){Che=K,Ext=new wb,Txt=new Gfe,Sxt=new Wp}function At(){At=K,Io=new De,xh=new xe,h$=new Se}function h0(){h0=K,h2e=new dt,WQ=new dt,p2e=new Ue}function Er(e){return!e.q&&(e.q=new ke(Ll,e,11,10)),e.q}function Ne(e){return!e.s&&(e.s=new ke(au,e,21,17)),e.s}function kP(e){return!e.a&&(e.a=new ke(En,e,10,11)),e.a}function NP(e,t){if(e==null)throw Y(new uS(t));return e}function Dat(e,t){pQt.call(this,new ZV(e)),this.a=e,this.b=t}function Ihe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function Rhe(e){return e&&e.hashCode?e.hashCode():s0(e)}function zan(e){return new Ert(e,e.e.Pd().gc()*e.c.Pd().gc())}function Gan(e){return new Srt(e,e.e.Pd().gc()*e.c.Pd().gc())}function SW(e){return ae(e,18)?new Kw(l(e,18)):Con(e.Jc())}function CP(e){return At(),ae(e,59)?new gq(e):new $8(e)}function qan(e){return kn(e),P1t(new $t(qt(e.a.Jc(),new L)))}function TW(e,t){return t==null?!!ts(e.f,null):asn(e.i,t)}function Van(e,t){var r;return r=mde(e.a,t),r&&(t.d=null),r}function Mat(e,t,r){return e.f?e.f.cf(t,r):!1}function KO(e,t,r,o){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o)}function AW(e,t,r,o){ii(e.c[t.g],t.g,r),ii(e.b[t.g],t.g,o)}function Wan(e,t,r){return ue(le(r.a))<=e&&ue(le(r.b))>=t}function Pat(){this.d=new Ar,this.b=new hn,this.c=new je}function jat(){this.b=new hi,this.d=new Ar,this.e=new L9}function Ohe(){this.c=new ro,this.d=new ro,this.e=new ro}function p0(){this.a=new Du,this.b=(wc(3,Iy),new La(3))}function Fat(e){this.c=e,this.b=new Qp(l(kn(new Ow),50))}function $at(e){this.c=e,this.b=new Qp(l(kn(new dG),50))}function Bat(e){this.b=e,this.a=new Qp(l(kn(new pl),50))}function og(e,t){this.e=e,this.a=Ri,this.b=byt(t),this.c=t}function IP(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function Uat(e,t,r,o,a,c){this.a=e,bK.call(this,t,r,o,a,c)}function Hat(e,t,r,o,a,c){this.a=e,bK.call(this,t,r,o,a,c)}function c1(e,t,r,o,a,c,f){return new HW(e.e,t,r,o,a,c,f)}function Kan(e,t,r){return r>=0&&wt(e.substr(r,t.length),t)}function zat(e,t){return ae(t,149)&&wt(e.b,l(t,149).Og())}function Yan(e,t){return e.a?t.Dh().Jc():l(t.Dh(),72).Gi()}function Gat(e,t){var r;return r=e.b.Oc(t),jct(r,e.b.gc()),r}function YO(e,t){if(e==null)throw Y(new uS(t));return e}function ds(e){return e.u||(Pu(e),e.u=new bit(e,e)),e.u}function l_(){l_=K;var e,t;t=!k1n(),e=new Q,HQ=t?new ne:e}function Ja(e){var t;return t=l(Vt(e,16),29),t||e.fi()}function RP(e,t){var r;return r=Ab(e.Pm),t==null?r:r+": "+t}function yl(e,t,r){return io(t,r,e.length),e.substr(t,r-t)}function qat(e,t){G8.call(this),qpe(this),this.a=e,this.c=t}function Vat(){iV.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function Jan(){return UP(),Z(X(hTe,1),Ce,425,0,[ete,fTe])}function Xan(){return GP(),Z(X(kTe,1),Ce,428,0,[lte,cte])}function Zan(){return g6(),Z(X(p_e,1),Ce,426,0,[Hte,zte])}function Qan(){return tj(),Z(X(USe,1),Ce,427,0,[BSe,Lee])}function eun(){return m6(),Z(X(JSe,1),Ce,424,0,[K$,YSe])}function tun(){return l6(),Z(X(QSe,1),Ce,479,0,[ZSe,J$])}function nun(){return zd(),Z(X(N4t,1),Ce,512,0,[Em,uf])}function run(){return If(),Z(X(x4t,1),Ce,513,0,[aw,kg])}function iun(){return vd(),Z(X(z4t,1),Ce,519,0,[rv,U1])}function oun(){return H3(),Z(X(y4t,1),Ce,522,0,[QI,ZI])}function sun(){return g0(),Z(X(J4t,1),Ce,457,0,[H1,u2])}function aun(){return FP(),Z(X(cxe,1),Ce,430,0,[dne,uxe])}function uun(){return _j(),Z(X(lxe,1),Ce,490,0,[BB,d2])}function cun(){return rj(),Z(X(fxe,1),Ce,431,0,[dxe,mne])}function lun(){return o6(),Z(X(cke,1),Ce,433,0,[Bne,XB])}function dun(){return KP(),Z(X(tke,1),Ce,481,0,[Dne,eke])}function fun(){return x6(),Z(X(Rke,1),Ce,432,0,[QB,Ike])}function hun(){return w6(),Z(X(w6t,1),Ce,498,0,[ire,rre])}function pun(){return zP(),Z(X(Lke,1),Ce,389,0,[Vne,Oke])}function gun(){return cj(),Z(X(k2e,1),Ce,429,0,[oee,w$])}function bun(){return E_(),Z(X(oNt,1),Ce,506,0,[iD,wee])}function OP(e,t,r,o){return r>=0?e.Rh(t,r,o):e.zh(null,r,o)}function JO(e){return e.b.b==0?e.a.uf():FV(e.b)}function mun(e){if(e.p!=5)throw Y(new lu);return Ln(e.f)}function wun(e){if(e.p!=5)throw Y(new lu);return Ln(e.k)}function Lhe(e){return me(e.a)===me((_K(),Fre))&&Fxn(e),e.a}function yun(e){e&&RP(e,e.ge())}function Wat(e,t){_Zt(this,new Me(e.a,e.b)),xZt(this,UO(t))}function g0(){g0=K,H1=new Ule(hT,0),u2=new Ule(pT,1)}function If(){If=K,aw=new jle(pT,0),kg=new jle(hT,1)}function vun(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=sP(e.c,e.b,e.a))}function Eun(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=sP(e.c,e.b,e.a))}function Kat(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function Yat(e){return e.b==0?null:(un(e.b!=0),Vc(e,e.a.a))}function wa(e,t){return t==null?Ss(ts(e.f,null)):e3(e.i,t)}function Jat(e,t,r,o,a){return new eJ(e,(b_(),XQ),t,r,o,a)}function LP(e,t){return $ct(t),Hfn(e,we(Rn,Qn,30,t,15,1),t)}function DP(e,t){return NP(e,"set1"),NP(t,"set2"),new Let(e,t)}function Sun(e,t){var r=UQ[e.charCodeAt(0)];return r??e}function Xat(e,t){var r,o;return r=t,o=new Ft,nEt(e,r,o),o.d}function _W(e,t,r,o){var a;a=new Sit,t.a[r.g]=a,IS(e.b,o,a)}function Tun(e,t){var r;return r=Ffn(e.f,t),br(H8(r),e.f.d)}function P3(e){var t;Jfn(e.a),Jnt(e.a),t=new A9(e.a),x1e(t)}function Aun(e,t){oyt(e,!0),Da(e.e.Pf(),new gfe(e,!0,t))}function Zat(e){this.a=l(kn(e),279),this.b=(At(),new Cde(e))}function Qat(e,t,r){this.i=new je,this.b=e,this.g=t,this.a=r}function MP(e,t,r){this.c=new je,this.e=e,this.f=t,this.b=r}function Dhe(e,t,r){this.a=new je,this.e=e,this.f=t,this.c=r}function xW(e,t,r){fr(),Km.call(this,e),this.b=t,this.a=r}function Mhe(e,t,r){Uc(),k9.call(this,t),this.a=e,this.b=r}function eut(e){G8.call(this),qpe(this),this.a=e,this.c=!0}function b0(){gQt.call(this,new dS(fy(12))),Ede(!0),this.a=2}function zd(){zd=K,Em=new Fle(RX,0),uf=new Fle("UP",1)}function ty(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 tut(e){return e.Db>>16!=6?null:l(e.Cb,74)}function _un(e){if(e.ye())return null;var t=e.n;return a$[t]}function xun(e){function t(){}return t.prototype=e||{},new t}function nut(e){var t;return t=new U9(fy(e.length)),Fge(t,e),t}function XO(e,t){var r;r=e.q.getHours(),e.q.setDate(t),OC(e,r)}function Phe(e,t,r){var o;o=e.Fh(t),o>=0?e.$h(o,r):$me(e,t,r)}function cE(e,t,r){PP(),e&&Jn(Mre,e,t),e&&Jn(a5,e,r)}function kun(e,t){return dp(),l(F(t,(js(),Jf)),15).a==e}function Nun(e,t){return Y8(),Dt(),l(t.b,15).a=0?e.Th(r):sJ(e,t)}function kW(e,t,r){var o;o=ppt(e,t,r),e.b=new Nj(o.c.length)}function sut(e){this.a=e,this.b=we(b4t,Pe,2022,e.e.length,0,2)}function aut(){this.a=new uh,this.e=new hi,this.g=0,this.i=0}function uut(e,t){D8(this),this.f=t,this.g=e,xP(this),this.he()}function NW(e,t){return b.Math.abs(e)0}function jhe(e){var t;return t=e.d,t=e._i(e.f),Tn(e,t),t.Ob()}function cut(e,t){var r;return r=new zfe(t),Ybt(r,e),new Tu(r)}function Oun(e){if(e.p!=0)throw Y(new lu);return f3(e.f,0)}function Lun(e){if(e.p!=0)throw Y(new lu);return f3(e.k,0)}function lut(e){return e.Db>>16!=7?null:l(e.Cb,244)}function d_(e){return e.Db>>16!=6?null:l(e.Cb,244)}function Fhe(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 ny(e){return e.Db>>16!=17?null:l(e.Cb,29)}function dut(e){return e.Db>>16!=3?null:l(e.Cb,159)}function $he(e){var t;return y1(e),t=new hi,lr(e,new aYe(t))}function fut(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),OC(e,r)}function bo(e,t){e.c&&Xa(e.c.g,e),e.c=t,e.c&&Fe(e.c.g,e)}function Ji(e,t){e.d&&Xa(e.d.e,e),e.d=t,e.d&&Fe(e.d.e,e)}function Oi(e,t){e.c&&Xa(e.c.a,e),e.c=t,e.c&&Fe(e.c.a,e)}function As(e,t){e.i&&Xa(e.i.j,e),e.i=t,e.i&&Fe(e.i.j,e)}function ns(e,t,r){return t==null?eu(e.f,null,r):_0(e.i,t,r)}function j3(e,t,r,o,a,c){return new cp(e.e,t,e.Jj(),r,o,a,c)}function Mun(e){return qK(),Dt(),l(e.a,84).d.e!=0}function hut(){hut=K,H_t=yn((M9(),Z(X(U_t,1),Ce,541,0,[FQ])))}function put(){put=K,XIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function gut(){gut=K,ZIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function but(){but=K,QIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function Bhe(){Bhe=K,e4t=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function mut(){mut=K,n4t=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function Uhe(){Uhe=K,r4t=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function wut(){wut=K,E4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function gc(){gc=K,A4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function yut(){yut=K,_4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function CW(){CW=K,I4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function vut(){vut=K,_Rt=Ra(new ui,(JS(),t4),(IC(),R_e))}function PP(){PP=K,Mre=new hn,a5=new hn,Ben(axt,new ZGe)}function Eut(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tu(r))}function Sut(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tu(r))}function Tut(e,t){this.a=e,this.c=To(this.a),this.b=new IP(t)}function Pb(e,t,r,o){this.c=e,this.d=o,RW(this,t),OW(this,r)}function DS(e){this.c=new Ar,this.b=e.b,this.d=e.c,this.a=e.a}function IW(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function RW(e,t){e.a&&Xa(e.a.k,e),e.a=t,e.a&&Fe(e.a.k,e)}function OW(e,t){e.b&&Xa(e.b.f,e),e.b=t,e.b&&Fe(e.b.f,e)}function Aut(e,t){Jsn(e,e.b,e.c),l(e.b.b,68),t&&l(t.b,68).b}function Pun(e,t){b1e(e,t),ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),2)}function LW(e,t){ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),4),Ma(e,t)}function jP(e,t){ae(e.Cb,187)&&(l(e.Cb,187).tb=null),Ma(e,t)}function _ut(e,t){var r;return r=l(py(LS(e.a),t),18),r?r.gc():0}function jun(e,t){var r,o;r=t.c,o=r!=null,o&&RS(e,new Qw(t.c))}function xut(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function kut(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function Nut(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function ya(e,t){return Mo(),cK(t)?new nP(t,e):new xO(t,e)}function Fun(e,t){return yr(l(e.c,65).c.e.b,l(t.c,65).c.e.b)}function $un(e,t){return yr(l(e.c,65).c.e.a,l(t.c,65).c.e.a)}function Cut(e,t,r){return new eJ(e,(b_(),ZQ),t,r,null,!1)}function Iut(e,t,r){return new eJ(e,(b_(),JQ),null,!1,t,r)}function ZO(e){return jf(),Ea(e,0)>=0?v1(e):I3(v1(ug(e)))}function Bun(){return Yc(),Z(X(ru,1),Ce,132,0,[v2e,nu,E2e])}function Uun(){return Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])}function Hun(){return _u(),Z(X(kxt,1),Ce,464,0,[Wf,D1,nd])}function zun(){return Za(),Z(X(Cxt,1),Ce,465,0,[Nd,M1,rd])}function Gun(e,t){brt(e,Ln(Gi(u0(t,24),oF)),Ln(Gi(t,oF)))}function ry(e,t){if(e<0||e>t)throw Y(new Ia(bwe+e+mwe+t))}function at(e,t){if(e<0||e>=t)throw Y(new Ia(bwe+e+mwe+t))}function Yt(e,t){if(e<0||e>=t)throw Y(new Xce(bwe+e+mwe+t))}function St(e,t){this.b=(Mt(e),e),this.a=t&Ry?t:t|64|$f}function Rf(e,t,r){agt(t,r,e.gc()),this.c=e,this.a=t,this.b=r-t}function Rut(e,t,r){var o;agt(t,r,e.c.length),o=r-t,cle(e.c,t,o)}function qun(e,t,r){var o;o=new So(r.d),br(o,e),nY(t,o.a,o.b)}function Hhe(e){var t;return y1(e),t=(h0(),h0(),WQ),dj(e,t)}function lE(e){return YN(),ae(e.g,9)?l(e.g,9):null}function qd(e){return xs(Z(X($i,1),Pe,8,0,[e.i.n,e.n,e.a]))}function Vun(){return G3(),Z(X(H2e,1),Ce,385,0,[cee,uee,lee])}function Wun(){return g1(),Z(X(Qee,1),Ce,330,0,[lD,dTe,Gy])}function Kun(){return lp(),Z(X(qNt,1),Ce,316,0,[dD,ZE,kT])}function Yun(){return __(),Z(X(Zee,1),Ce,303,0,[Jee,Xee,cD])}function Jun(){return mj(),Z(X(VSe,1),Ce,351,0,[qSe,W$,Dee])}function Xun(){return Vb(),Z(X(PNt,1),Ce,452,0,[Hee,Jx,JE])}function Zun(){return jo(),Z(X(GIt,1),Ce,455,0,[YI,Cu,Ba])}function Qun(){return Oj(),Z(X(m_e,1),Ce,382,0,[g_e,Gte,b_e])}function ecn(){return nC(),Z(X(w_e,1),Ce,349,0,[Vte,qte,AD])}function tcn(){return R_(),Z(X(v_e,1),Ce,350,0,[Wte,y_e,JI])}function ncn(){return rC(),Z(X(i_e,1),Ce,353,0,[Mte,r_e,_B])}function rcn(){return bj(),Z(X(T_e,1),Ce,352,0,[S_e,Kte,E_e])}function icn(){return Lj(),Z(X(A_e,1),Ce,383,0,[Yte,uk,nv])}function ocn(){return eC(),Z(X(U_e,1),Ce,386,0,[B_e,Zte,kD])}function scn(){return R6(),Z(X(gxe,1),Ce,387,0,[UB,hxe,pxe])}function acn(){return Wj(),Z(X(jxe,1),Ce,388,0,[Pxe,Ine,Mxe])}function ucn(){return T0(),Z(X(Aee,1),Ce,369,0,[Q0,P1,Z0])}function ccn(){return Uj(),Z(X(ake,1),Ce,435,0,[oke,ske,Pne])}function lcn(){return ij(),Z(X(ike,1),Ce,434,0,[Mne,rke,nke])}function dcn(){return M6(),Z(X(jne,1),Ce,440,0,[KB,YB,JB])}function fcn(){return Zj(),Z(X(Dxe,1),Ce,441,0,[s4,GB,Tne])}function hcn(){return Ij(),Z(X(Lxe,1),Ce,304,0,[Sne,Oxe,Rxe])}function pcn(){return V3(),Z(X(QNe,1),Ce,301,0,[YD,xre,ZNe])}function gcn(){return Kd(),Z(X(MNe,1),Ce,281,0,[yk,fv,vk])}function bcn(){return VS(),Z(X(n3e,1),Ce,283,0,[t3e,pv,gU])}function mcn(){return pp(),Z(X(WNe,1),Ce,348,0,[cU,Ig,T4])}function bc(e){fr(),Km.call(this,e),this.c=!1,this.a=!1}function Out(e,t,r){Km.call(this,25),this.b=e,this.a=t,this.c=r}function zhe(e,t){hQt.call(this,new dS(fy(e))),wc(t,n2t),this.a=t}function wcn(e,t){var r;return r=(Mt(e),e).g,Mde(!!r),Mt(t),r(t)}function Lut(e,t){var r,o;return o=n_(e,t),r=e.a.dd(o),new Ret(e,r)}function ycn(e,t,r){var o;return o=MC(e,t,!1),o.b<=t&&o.a<=r}function Dut(e,t,r){var o;o=new eHe,o.b=t,o.a=r,++t.b,Fe(e.d,o)}function FP(){FP=K,dne=new Hle("DFS",0),uxe=new Hle("BFS",1)}function vcn(e){if(e.p!=2)throw Y(new lu);return Ln(e.f)&Ei}function Ecn(e){if(e.p!=2)throw Y(new lu);return Ln(e.k)&Ei}function Scn(e){return e.Db>>16!=6?null:l(cJ(e),244)}function q(e){return un(e.ao?1:0}function Lcn(e,t){var r;r=l(Ht(e.g,t),60),Da(t.d,new wtt(e,r))}function Put(e,t){var r;for(r=e+"";r.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function Qut(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function ect(e){return un(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function tct(e,t){var r;return r=1-t,e.a[r]=Aj(e.a[r],r),Aj(e,t)}function nct(e,t){var r,o;return o=Gi(e,$o),r=fh(t,32),Of(r,o)}function $cn(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Gc(r)}function rct(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Kc(r)}function ict(e,t,r){var o;o=(kn(e),new Tu(e)),Tmn(new Eut(o,t,r))}function e6(e,t,r){var o;o=(kn(e),new Tu(e)),Amn(new Sut(o,t,r))}function oct(){oct=K,x_e=tat(Re(1),Re(4)),__e=tat(Re(1),Re(2))}function sct(e){AK.call(this,e,(b_(),YQ),null,!1,null,!1)}function act(e,t){Ob.call(this,1,2,Z(X(Rn,1),Qn,30,15,[e,t]))}function Xi(e,t){this.a=e,DN.call(this,e),ry(t,e.gc()),this.b=t}function uct(e,t){var r;e.e=new zce,r=Ay(t),xi(r,e.c),Wwt(e,r,0)}function Bcn(e,t,r){e.a=t,e.c=r,e.b.a.$b(),tc(e.d),Mw(e.e.a.c,0)}function zr(e,t,r,o){var a;a=new Bue,a.a=t,a.b=r,a.c=o,Gn(e.a,a)}function Le(e,t,r,o){var a;a=new Bue,a.a=t,a.b=r,a.c=o,Gn(e.b,a)}function cct(e,t,r,o){return e.a+=""+yl(t==null?tu:ms(t),r,o),e}function Ms(e,t,r,o,a,c){return xht(e,t,r,c),u1e(e,o),c1e(e,a),e}function Jhe(){var e,t,r;return t=(r=(e=new Ym,e),r),Fe($3e,t),t}function t6(e,t){if(e<0||e>=t)throw Y(new Ia(lvn(e,t)));return e}function lct(e,t,r){if(e<0||tr)throw Y(new Ia(Ryn(e,t,r)))}function Ucn(e){if(!("stack"in e))try{throw e}catch{}return e}function Hcn(e){return uE(e).dc()?!1:(Stn(e,new P),!0)}function $b(e){var t;return gs(e)?(t=e,t==-0?0:t):sfn(e)}function dct(e,t){return ae(t,45)?RY(e.a,l(t,45)):!1}function fct(e,t){return ae(t,45)?RY(e.a,l(t,45)):!1}function hct(e,t){return ae(t,45)?RY(e.a,l(t,45)):!1}function zcn(e,t){return US(),l(F(t,(js(),c2)),15).a>=e.gc()}function Gcn(e){return gc(),!fo(e)&&!(!fo(e)&&e.c.i.c==e.d.i.c)}function Lf(e){return l(Yd(e,we(zx,Tx,17,e.c.length,0,1)),324)}function $P(e){return new La((wc(e,QJ),lj(Ao(Ao(5,e),e/10|0))))}function qcn(e,t){return new PV(t,Zrt(To(t.e),e,e),(Dt(),!0))}function Vcn(e){return UV(e.e.Pd().gc()*e.c.Pd().gc(),273,new yKe(e))}function pct(e){return l(Yd(e,we(nNt,eSt,12,e.c.length,0,1)),2021)}function gct(e){this.a=we(Ri,Rt,1,Pge(b.Math.max(8,e))<<1,5,1)}function Xhe(e){var t;return u1(e),t=new bt,Wv(e.a,new iYe(t)),t}function BP(e){var t;return u1(e),t=new kt,Wv(e.a,new oYe(t)),t}function Wcn(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function Kcn(e,t,r){e.d&&Xa(e.d.e,e),e.d=t,e.d&&Nb(e.d.e,r,e)}function Zhe(e,t,r){this.d=new wJe(this),this.e=e,this.i=t,this.f=r}function UP(){UP=K,ete=new Dle(px,0),fTe=new Dle("TOP_LEFT",1)}function bct(){bct=K,DOt=yn((Y9(),Z(X(uke,1),Ce,480,0,[Fne])))}function mct(){mct=K,POt=yn((J9(),Z(X(MOt,1),Ce,550,0,[$ne])))}function wct(){wct=K,e6t=yn((JN(),Z(X(Cke,1),Ce,531,0,[MD])))}function yct(){yct=K,h6t=yn((X9(),Z(X(f6t,1),Ce,557,0,[ere])))}function vct(){vct=K,g6t=yn((Z9(),Z(X(p6t,1),Ce,558,0,[tre])))}function Ect(){Ect=K,m6t=yn((Q9(),Z(X(b6t,1),Ce,559,0,[nre])))}function Ycn(e){Agt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),new Mze)}function $3(e,t){t3n(t,e),Cfe(e.d),Cfe(l(F(e,(Be(),wB)),216))}function FW(e,t){n3n(t,e),Nfe(e.d),Nfe(l(F(e,(Be(),wB)),216))}function m0(e,t){var r,o;return r=op(e,t),o=null,r&&(o=r.ne()),o}function B3(e,t){var r,o;return r=op(e,t),o=null,r&&(o=r.qe()),o}function f_(e,t){var r,o;return r=ay(e,t),o=null,r&&(o=r.qe()),o}function sp(e,t){var r,o;return r=op(e,t),o=null,r&&(o=Xbe(r)),o}function Jcn(e,t,r){var o;return o=B_(r),H7(e.n,o,t),H7(e.o,t,r),t}function Xcn(e,t,r){var o;o=W1n();try{return Gnn(e,t,r)}finally{Xln(o)}}function Sct(e,t,r,o){return ae(r,59)?new Brt(e,t,r,o):new Xfe(e,t,r,o)}function Qhe(e,t,r,o){this.d=e,this.n=t,this.g=r,this.o=o,this.p=-1}function Tct(e,t,r,o){this.e=null,this.c=e,this.d=t,this.a=r,this.b=o}function Act(e){var t;t=e.Dh(),this.a=ae(t,72)?l(t,72).Gi():t.Jc()}function Zcn(e){return new St(Pfn(l(e.a.kd(),18).gc(),e.a.jd()),16)}function iy(e){return ae(e,18)?l(e,18).dc():!e.Jc().Ob()}function _ct(e){if(e.e.g!=e.b)throw Y(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 epe(e,t){Mt(t),ii(e.a,e.c,t),e.c=e.c+1&e.a.length-1,Q1t(e)}function l1(e,t){Mt(t),e.b=e.b-1&e.a.length-1,ii(e.a,e.b,t),Q1t(e)}function tpe(e,t){var r;return r=l(Wd(e.b,t),66),!r&&(r=new Ar),r}function Qcn(e,t){var r;r=t.a,bo(r,t.c.d),Ji(r,t.d.d),ly(r.a,e.n)}function xct(e,t){return l(Xu(Jw(l(wr(e.k,t),16).Mc(),WE)),114)}function kct(e,t){return l(Xu(NS(l(wr(e.k,t),16).Mc(),WE)),114)}function eln(){return x_(),Z(X(Gkt,1),Ce,413,0,[X0,$y,Fy,qE])}function tln(){return A0(),Z(X(ekt,1),Ce,414,0,[eD,QL,ree,iee])}function nln(){return b_(),Z(X(p$,1),Ce,310,0,[YQ,JQ,XQ,ZQ])}function rln(){return YS(),Z(X(V2e,1),Ce,384,0,[TI,q2e,gee,bee])}function iln(){return Mj(),Z(X(cNt,1),Ce,368,0,[See,U$,H$,oD])}function oln(){return Xl(),Z(X(vNt,1),Ce,418,0,[Hy,qx,Vx,Tee])}function sln(){return Kb(),Z(X(p4t,1),Ce,409,0,[_D,XI,IB,CB])}function aln(){return wy(),Z(X(jte,1),Ce,205,0,[xB,Pte,a2,s2])}function uln(){return bp(),Z(X(h_e,1),Ce,270,0,[B1,f_e,Bte,Ute])}function cln(){return lC(),Z(X(GSe,1),Ce,302,0,[kI,HSe,aD,zSe])}function lln(){return tC(),Z(X(axe,1),Ce,354,0,[lne,$B,cne,une])}function dln(){return d7(),Z(X(Ixe,1),Ce,355,0,[Ene,Nxe,Cxe,kxe])}function fln(){return S7(),Z(X(nOt,1),Ce,406,0,[kne,Ane,xne,_ne])}function hln(){return JS(),Z(X(C_e,1),Ce,402,0,[DB,e4,t4,n4])}function pln(){return g7(),Z(X(Dke,1),Ce,396,0,[Kne,Yne,Jne,Xne])}function gln(){return O_(),Z(X(DNe,1),Ce,280,0,[zD,uU,ONe,LNe])}function bln(){return gp(),Z(X(Are,1),Ce,225,0,[Tre,GD,Ek,WT])}function mln(){return vc(),Z(X(hLt,1),Ce,293,0,[VD,Ih,q1,qD])}function wln(){return sc(),Z(X(N4,1),Ce,381,0,[XD,xm,JD,hv])}function yln(){return qP(),Z(X(e5,1),Ce,290,0,[r3e,o3e,Nre,i3e])}function vln(){return Kj(),Z(X(c3e,1),Ce,327,0,[Cre,s3e,u3e,a3e])}function Eln(){return Pj(),Z(X(RLt,1),Ce,412,0,[Ire,d3e,l3e,f3e])}function Sln(e){var t;return e.j==(He(),dn)&&(t=D0t(e),fu(t,Qt))}function Nct(e,t){var r;for(r=e.j.c.length;r0&&ua(e.g,0,t,0,e.i),t}function PS(e){return YN(),ae(e.g,157)?l(e.g,157):null}function _ln(e){return PP(),ma(Mre,e)?l(Ht(Mre,e),343).Pg():null}function zc(e,t,r){return t<0?sJ(e,r):l(r,69).uk().zk(e,e.ei(),t)}function xln(e,t){return yS(new Me(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function Rct(e,t){return me(t)===me(e)?"(this Map)":t==null?tu:ms(t)}function Oct(e,t){e8();var r;return r=l(Ht(vU,e),58),!r||r.dk(t)}function kln(e){if(e.p!=1)throw Y(new lu);return Ln(e.f)<<24>>24}function Nln(e){if(e.p!=1)throw Y(new lu);return Ln(e.k)<<24>>24}function Cln(e){if(e.p!=7)throw Y(new lu);return Ln(e.k)<<16>>16}function Iln(e){if(e.p!=7)throw Y(new lu);return Ln(e.f)<<16>>16}function dE(e,t){return t.e==0||e.e==0?wI:(Q_(),fJ(e,t))}function Rln(e,t,r){if(r){var o=r.me();e.a[t]=o(r)}else delete e.a[t]}function Lct(e,t){var r;return r=new lS,e.Ed(r),r.a+="..",t.Fd(r),r.a}function yd(e){var t;for(t=0;e.Ob();)e.Pb(),t=Ao(t,1);return lj(t)}function Oln(e,t,r){var o;o=l(Ht(e.g,r),60),Fe(e.a.c,new No(t,o))}function Lln(e,t,r,o,a){var c;c=e2n(a,r,o),Fe(t,nvn(a,c)),Ywn(e,a,t)}function Dct(e,t,r){e.i=0,e.e=0,t!=r&&(ypt(e,t,r),wpt(e,t,r))}function Dln(e){e.a=null,e.e=null,Mw(e.b.c,0),Mw(e.f.c,0),e.c=null}function Mln(e,t){return l(t==null?Ss(ts(e.f,null)):e3(e.i,t),291)}function Pln(e,t,r){return XV(le(Ss(ts(e.f,t))),le(Ss(ts(e.f,r))))}function HP(e,t,r){return G7(e,t,r,ae(t,104)&&(l(t,20).Bb&Co)!=0)}function jln(e,t,r){return nx(e,t,r,ae(t,104)&&(l(t,20).Bb&Co)!=0)}function Fln(e,t,r){return qEn(e,t,r,ae(t,104)&&(l(t,20).Bb&Co)!=0)}function rpe(e,t){return e==(zt(),Xr)&&t==Xr?4:e==Xr||t==Xr?8:32}function Mct(e,t){Ohe.call(this),this.a=e,this.b=t,Fe(this.a.b,this)}function oy(e,t){fr(),Km.call(this,e),this.a=t,this.c=-1,this.b=-1}function ipe(e,t,r,o,a){this.i=e,this.a=t,this.e=r,this.j=o,this.f=a}function ap(e,t){jf(),Ob.call(this,e,1,Z(X(Rn,1),Qn,30,15,[t]))}function gh(e,t){Mo();var r;return r=l(e,69).tk(),uyn(r,t),r.vl(t)}function Pct(e,t){var r;for(r=t;r;)Gw(e,r.i,r.j),r=Br(r);return e}function jct(e,t){var r;for(r=0;r"+qhe(e.d):"e_"+s0(e)}function Bct(e){ae(e,209)&&!Ye(Ke(e.mf((_n(),iU))))&&r_n(l(e,19))}function spe(e){e.b!=e.c&&(e.a=we(Ri,Rt,1,8,5,1),e.b=0,e.c=0)}function Bb(e,t,r){this.e=e,this.a=Ri,this.b=byt(t),this.c=t,this.d=r}function sy(e,t,r,o){$ut.call(this,1,r,o),this.c=e,this.b=t}function UW(e,t,r,o){But.call(this,1,r,o),this.c=e,this.b=t}function HW(e,t,r,o,a,c,f){bK.call(this,t,o,a,c,f),this.c=e,this.a=r}function zW(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function Uct(e){this.c=e,this.a=l(Sl(e),160),this.b=this.a.hk().ti()}function Uln(e,t){return eg(),Tn(Ne(e.a),t)}function Hln(e,t){return eg(),Tn(Ne(e.a),t)}function zP(){zP=K,Vne=new Kle("STRAIGHT",0),Oke=new Kle("BEND",1)}function H3(){H3=K,QI=new $le("UPPER",0),ZI=new $le("LOWER",1)}function GP(){GP=K,lte=new Mle(_d,0),cte=new Mle("ALTERNATING",1)}function qP(){qP=K,r3e=new Mot,o3e=new yst,Nre=new Vat,i3e=new vst}function VP(e){var t;return e?new zfe(e):(t=new uh,TK(t,e),t)}function zln(e,t){var r;for(r=e.d-1;r>=0&&e.a[r]===t[r];r--);return r<0}function Gln(e,t){var r;return $ct(t),r=e.slice(0,t),r.length=t,iK(r,e)}function Au(e,t){var r;return t.b.Kb(Hdt(e,t.c.Ve(),(r=new cYe(t),r)))}function WP(e){Mbe(),brt(this,Ln(Gi(u0(e,24),oF)),Ln(Gi(e,oF)))}function Hct(){Hct=K,lkt=yn((cj(),Z(X(k2e,1),Ce,429,0,[oee,w$])))}function zct(){zct=K,sNt=yn((E_(),Z(X(oNt,1),Ce,506,0,[iD,wee])))}function Gct(){Gct=K,MNt=yn((m6(),Z(X(JSe,1),Ce,424,0,[K$,YSe])))}function qct(){qct=K,RNt=yn((tj(),Z(X(USe,1),Ce,427,0,[BSe,Lee])))}function Vct(){Vct=K,$Nt=yn((l6(),Z(X(QSe,1),Ce,479,0,[ZSe,J$])))}function Wct(){Wct=K,WNt=yn((UP(),Z(X(hTe,1),Ce,425,0,[ete,fTe])))}function Kct(){Kct=K,JNt=yn((GP(),Z(X(kTe,1),Ce,428,0,[lte,cte])))}function Yct(){Yct=K,zIt=yn((g6(),Z(X(p_e,1),Ce,426,0,[Hte,zte])))}function Jct(){Jct=K,v4t=yn((H3(),Z(X(y4t,1),Ce,522,0,[QI,ZI])))}function Xct(){Xct=K,k4t=yn((If(),Z(X(x4t,1),Ce,513,0,[aw,kg])))}function Zct(){Zct=K,C4t=yn((zd(),Z(X(N4t,1),Ce,512,0,[Em,uf])))}function Qct(){Qct=K,G4t=yn((vd(),Z(X(z4t,1),Ce,519,0,[rv,U1])))}function elt(){elt=K,X4t=yn((g0(),Z(X(J4t,1),Ce,457,0,[H1,u2])))}function tlt(){tlt=K,ARt=yn((FP(),Z(X(cxe,1),Ce,430,0,[dne,uxe])))}function nlt(){nlt=K,CRt=yn((_j(),Z(X(lxe,1),Ce,490,0,[BB,d2])))}function rlt(){rlt=K,ORt=yn((rj(),Z(X(fxe,1),Ce,431,0,[dxe,mne])))}function KP(){KP=K,Dne=new qle(Lwe,0),eke=new qle("TARGET_WIDTH",1)}function ilt(){ilt=K,NOt=yn((KP(),Z(X(tke,1),Ce,481,0,[Dne,eke])))}function olt(){olt=K,jOt=yn((o6(),Z(X(cke,1),Ce,433,0,[Bne,XB])))}function slt(){slt=K,t6t=yn((x6(),Z(X(Rke,1),Ce,432,0,[QB,Ike])))}function alt(){alt=K,n6t=yn((zP(),Z(X(Lke,1),Ce,389,0,[Vne,Oke])))}function ult(){ult=K,y6t=yn((w6(),Z(X(w6t,1),Ce,498,0,[ire,rre])))}function qln(){return vi(),Z(X(E4,1),Ce,87,0,[hf,fs,as,ff,il])}function Vln(){return He(),Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt])}function Wln(e){return(e.k==(zt(),Xr)||e.k==mi)&&gr(e,(Ie(),RI))}function Kln(e,t,r){return l(t==null?eu(e.f,null,r):_0(e.i,t,r),291)}function ape(e,t,r){e.a.c.length=0,zxn(e,t,r),e.a.c.length==0||pAn(e,t)}function Wr(e,t,r,o){var a;a=new ht,a.c=t,a.b=r,a.a=o,o.b=r.a=a,++e.b}function upe(e,t){var r,o;for(r=t,o=0;r>0;)o+=e.a[r],r-=r&-r;return o}function clt(e,t){var r;for(r=t;r;)Gw(e,-r.i,-r.j),r=Br(r);return e}function Yln(e,t){var r,o;o=!1;do r=spt(e,t),o=o|r;while(r);return o}function lo(e,t){var r,o;for(Mt(t),o=e.Jc();o.Ob();)r=o.Pb(),t.Ad(r)}function llt(e,t){var r,o;return r=t.jd(),o=e.De(r),!!o&&ia(o.e,t.kd())}function dlt(e,t){var r;return r=t.jd(),new t0(r,e.e.pc(r,l(t.kd(),18)))}function Jln(e,t){var r;return r=e.a.get(t),r??we(Ri,Rt,1,0,5,1)}function nc(e,t,r){var o;return o=(at(t,e.c.length),e.c[t]),e.c[t]=r,o}function flt(e,t){this.c=0,this.b=t,_nt.call(this,e,17493),this.a=this.c}function cpe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function d1(){hn.call(this),Hrt(this),this.d.b=this.d,this.d.a=this.d}function GW(e){YP(),!sf&&(this.c=e,this.e=!0,this.a=new je)}function hlt(e){zEt(),dZe(this),this.a=new Ar,Gge(this,e),Gn(this.a,e)}function plt(){dV(this),this.b=new Me(Kr,Kr),this.a=new Me(Di,Di)}function lpe(e){xen.call(this,e==null?tu:ms(e),ae(e,81)?l(e,81):null)}function Xln(e){e&&hfn((Wce(),VEe)),--u$,e&&c$!=-1&&(Hen(c$),c$=-1)}function n6(e){e.i=0,hO(e.b,null),hO(e.c,null),e.a=null,e.e=null,++e.g}function YP(){YP=K,sf=!0,pxt=!1,gxt=!1,mxt=!1,bxt=!1}function fo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function dpe(e,t){return ae(t,144)?wt(e.c,l(t,144).c):!1}function qW(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),BA(new Et(e,new Dpe(t,e.a)))).zd(TT)}function Zln(){return Vi(),Z(X(z2e,1),Ce,364,0,[id,kh,la,da,Ho])}function Qln(){return v7(),Z(X(IRt,1),Ce,365,0,[gne,fne,bne,hne,pne])}function edn(){return yy(),Z(X(SNt,1),Ce,372,0,[sD,q$,V$,G$,z$])}function tdn(){return xC(),Z(X(ROt,1),Ce,370,0,[f2,BT,f4,d4,DD])}function ndn(){return J6(),Z(X(hke,1),Ce,331,0,[lke,Une,fke,Hne,dke])}function rdn(){return hC(),Z(X(s_e,1),Ce,329,0,[o_e,Fte,$te,VI,WI])}function idn(){return ic(),Z(X(xTe,1),Ce,166,0,[gD,DI,xp,MI,gm])}function odn(){return Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])}function sdn(){return vE(),Z(X(_4,1),Ce,260,0,[V1,WD,KNe,A4,YNe])}function adn(e){return F9(),function(){return Xcn(e,this,arguments)}}function Pu(e){return e.t||(e.t=new eZe(e),aC(new wQe(e),0,e.t)),e.t}function glt(e){var t;return e.c||(t=e.r,ae(t,89)&&(e.c=l(t,29))),e.c}function udn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function VW(e){var t,r,o;return t=e&Hu,r=e>>22&Hu,o=e<0?Ep:0,Ua(t,r,o)}function blt(e){var t;return t=e.length,wt(Bt.substr(Bt.length-t,t),e)}function en(e){if(an(e))return e.c=e.a,e.a.Pb();throw Y(new vs)}function jS(e,t){return t==0||e.e==0?e:t>0?zgt(e,t):Dwt(e,-t)}function fpe(e,t){return t==0||e.e==0?e:t>0?Dwt(e,t):zgt(e,-t)}function mlt(e){this.b=e,tn.call(this,e),this.a=l(Vt(this.b.a,4),131)}function wlt(e){this.b=e,ES.call(this,e),this.a=l(Vt(this.b.a,4),131)}function Vl(e,t,r,o,a){Alt.call(this,t,o,a),this.c=e,this.b=r}function hpe(e,t,r,o,a){$ut.call(this,t,o,a),this.c=e,this.a=r}function ppe(e,t,r,o,a){But.call(this,t,o,a),this.c=e,this.a=r}function gpe(e,t,r,o,a){Alt.call(this,t,o,a),this.c=e,this.a=r}function cdn(e,t,r){return yr(yS(U_(e),To(t.b)),yS(U_(e),To(r.b)))}function ldn(e,t,r){return yr(yS(U_(e),To(t.e)),yS(U_(e),To(r.e)))}function ddn(e,t){return b.Math.min(f1(t.a,e.d.d.c),f1(t.b,e.d.d.c))}function WW(e,t,r){var o;return o=e.Fh(t),o>=0?e.Ih(o,r,!0):O0(e,t,r)}function fdn(e,t){var r,o;r=l(Jpn(e.c,t),18),r&&(o=r.gc(),r.$b(),e.d-=o)}function ylt(e){var t,r;return t=e.c.i,r=e.d.i,t.k==(zt(),mi)&&r.k==mi}function z3(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 r6(e,t){e.Zi(e.i+1),w3(e,e.i,e.Xi(e.i,t)),e.Ki(e.i++,t),e.Li()}function vlt(e,t,r){var o;o=new gde(e.a),X3(o,e.a.a),eu(o.f,t,r),e.a.a=o}function bpe(e,t,r,o){var a;for(a=0;at)throw Y(new Ia(sme(e,t,"index")));return e}function pdn(e,t){var r;r=e.q.getHours()+(t/60|0),e.q.setMinutes(t),OC(e,r)}function FS(e,t){return zi(t)?t==null?Tme(e.f,null):$ht(e.i,t):Tme(e.f,t)}function Elt(e,t){Ant.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Slt(e,t){_nt.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Epe(e,t){I8.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Tlt(e,t,r){k9.call(this,r),this.b=e,this.c=t,this.d=(lY(),Bre)}function Alt(e,t,r){this.d=e,this.k=t?1:0,this.f=r?1:0,this.o=-1,this.p=0}function _lt(e,t,r){this.a=e,this.c=t,this.d=r,Fe(t.e,this),Fe(r.b,this)}function Vd(e){this.c=e,this.a=new V(this.c.a),this.b=new V(this.c.b)}function JP(){this.e=new je,this.c=new je,this.d=new je,this.b=new je}function xlt(){this.g=new Rce,this.b=new Rce,this.a=new je,this.k=new je}function klt(){this.a=new Mce,this.b=new FZe,this.d=new gG,this.e=new pG}function XP(e,t,r){this.a=e,this.b=t,this.c=r,Fe(e.t,this),Fe(t.i,this)}function i6(){this.b=new Ar,this.a=new Ar,this.b=new Ar,this.a=new Ar}function h_(){h_=K;var e,t;AU=($A(),t=new I9,t),_U=(e=new tq,e)}function ZP(){ZP=K,p4=new cr("org.eclipse.elk.labels.labelManager")}function Nlt(){Nlt=K,MSe=new Pr("separateLayerConnections",(Mj(),See))}function o6(){o6=K,Bne=new Vle("FIXED",0),XB=new Vle("CENTER_NODE",1)}function vd(){vd=K,rv=new Ble("REGULAR",0),U1=new Ble("CRITICAL",1)}function gdn(e,t){var r;return r=okn(e,t),e.b=new Nj(r.c.length),Txn(e,r)}function bdn(e,t,r){var o;return++e.e,--e.f,o=l(e.d[t].ed(r),138),o.kd()}function mdn(e){var t,r;return t=e.jd(),r=l(e.kd(),18),BO(r.Lc(),new bKe(t))}function JW(e){var t;return t=e.b,t.b==0?null:l(sa(t,0),65).b}function Spe(e){if(e.a){if(e.e)return Spe(e.e)}else return e;return null}function wdn(e,t){return e.pt.p?-1:0}function QP(e,t){return Mt(t),e.cr||t=0?e.Ih(r,!0,!0):O0(e,t,!0)}function zdn(e,t){return yr(ue(le(F(e,(Ie(),nw)))),ue(le(F(t,nw))))}function Dpe(e,t){I8.call(this,t.xd(),t.wd()&-16449),Mt(e),this.a=e,this.c=t}function Mpe(e,t,r,o,a){srt(this),this.b=e,this.d=t,this.f=r,this.g=o,this.c=a}function La(e){dV(this),HO(e>=0,"Initial capacity must not be negative")}function BS(e){var t;return kn(e),ae(e,206)?(t=l(e,206),t):new RKe(e)}function Gdn(e){for(;!e.a;)if(!Bit(e.c,new sYe(e)))return!1;return!0}function qdn(e){var t;if(!e.a)throw Y(new sat);return t=e.a,e.a=Br(e.a),t}function Vdn(e){if(e.b<=0)throw Y(new vs);return--e.b,e.a-=e.c.c,Re(e.a)}function Ppe(e,t){if(e.g==null||t>=e.i)throw Y(new oV(t,e.i));return e.g[t]}function fdt(e,t,r){if(C_(e,r),r!=null&&!e.dk(r))throw Y(new XG);return r}function Wdn(e,t,r){var o;return o=ppt(e,t,r),e.b=new Nj(o.c.length),Xme(e,o)}function hdt(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)oe(e,t);return npe(e)}function Kdn(e){nj(),l(e.mf((_n(),cv)),185).Ec((xu(),KD)),e.of(vre,null)}function nj(){nj=K,S6t=new uGe,A6t=new cGe,T6t=upn((_n(),vre),S6t,G1,A6t)}function pdt(){pdt=K,q7(),W3e=Kr,DDt=Di,K3e=new QR(Kr),MDt=new QR(Di)}function rj(){rj=K,dxe=new Gle("LEAF_NUMBER",0),mne=new Gle("NODE_SIZE",1)}function nK(e){e.a=we(Rn,Qn,30,e.b+1,15,1),e.c=we(Rn,Qn,30,e.b,15,1),e.d=0}function Ydn(e,t){e.a.Le(t.d,e.b)>0&&(Fe(e.c,new Ofe(t.c,t.d,e.d)),e.b=t.d)}function g_(e,t,r,o){var a;o=(h0(),o||h2e),a=e.slice(t,r),ame(a,e,t,r,-t,o)}function qc(e,t,r,o,a){return t<0?O0(e,r,o):l(r,69).uk().wk(e,e.ei(),t,o,a)}function gdt(e,t){var r,o;return o=t/e.c.Pd().gc()|0,r=t%e.c.Pd().gc(),$S(e,o,r)}function jpe(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[0];)r=t;return r}function bdt(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[1];)r=t;return r}function Jdn(e){return ae(e,183)?""+l(e,183).a:e==null?null:ms(e)}function Xdn(e){return ae(e,183)?""+l(e,183).a:e==null?null:ms(e)}function mdt(e,t){if(t.a)throw Y(new Es(x2t));pi(e.a,t),t.a=e,!e.j&&(e.j=t)}function _u(){_u=K,Wf=new Cq(hT,0),D1=new Cq(px,1),nd=new Cq(pT,2)}function b_(){b_=K,YQ=new i8("All",0),JQ=new Vnt,XQ=new irt,ZQ=new Wnt}function wdt(){wdt=K,fxt=yn((b_(),Z(X(p$,1),Ce,310,0,[YQ,JQ,XQ,ZQ])))}function ydt(){ydt=K,tkt=yn((A0(),Z(X(ekt,1),Ce,414,0,[eD,QL,ree,iee])))}function vdt(){vdt=K,qkt=yn((x_(),Z(X(Gkt,1),Ce,413,0,[X0,$y,Fy,qE])))}function Edt(){Edt=K,Xkt=yn((YS(),Z(X(V2e,1),Ce,384,0,[TI,q2e,gee,bee])))}function Sdt(){Sdt=K,lNt=yn((Mj(),Z(X(cNt,1),Ce,368,0,[See,U$,H$,oD])))}function Tdt(){Tdt=K,ENt=yn((Xl(),Z(X(vNt,1),Ce,418,0,[Hy,qx,Vx,Tee])))}function Adt(){Adt=K,g4t=yn((Kb(),Z(X(p4t,1),Ce,409,0,[_D,XI,IB,CB])))}function _dt(){_dt=K,$It=yn((wy(),Z(X(jte,1),Ce,205,0,[xB,Pte,a2,s2])))}function xdt(){xdt=K,HIt=yn((bp(),Z(X(h_e,1),Ce,270,0,[B1,f_e,Bte,Ute])))}function kdt(){kdt=K,ONt=yn((lC(),Z(X(GSe,1),Ce,302,0,[kI,HSe,aD,zSe])))}function Ndt(){Ndt=K,TRt=yn((tC(),Z(X(axe,1),Ce,354,0,[lne,$B,cne,une])))}function Cdt(){Cdt=K,QRt=yn((d7(),Z(X(Ixe,1),Ce,355,0,[Ene,Nxe,Cxe,kxe])))}function Idt(){Idt=K,rOt=yn((S7(),Z(X(nOt,1),Ce,406,0,[kne,Ane,xne,_ne])))}function Rdt(){Rdt=K,Z4t=yn((JS(),Z(X(C_e,1),Ce,402,0,[DB,e4,t4,n4])))}function Odt(){Odt=K,i6t=yn((g7(),Z(X(Dke,1),Ce,396,0,[Kne,Yne,Jne,Xne])))}function Ldt(){Ldt=K,aLt=yn((O_(),Z(X(DNe,1),Ce,280,0,[zD,uU,ONe,LNe])))}function Ddt(){Ddt=K,cLt=yn((gp(),Z(X(Are,1),Ce,225,0,[Tre,GD,Ek,WT])))}function Mdt(){Mdt=K,pLt=yn((vc(),Z(X(hLt,1),Ce,293,0,[VD,Ih,q1,qD])))}function Pdt(){Pdt=K,NLt=yn((qP(),Z(X(e5,1),Ce,290,0,[r3e,o3e,Nre,i3e])))}function jdt(){jdt=K,_Lt=yn((sc(),Z(X(N4,1),Ce,381,0,[XD,xm,JD,hv])))}function Fdt(){Fdt=K,CLt=yn((Kj(),Z(X(c3e,1),Ce,327,0,[Cre,s3e,u3e,a3e])))}function $dt(){$dt=K,OLt=yn((Pj(),Z(X(RLt,1),Ce,412,0,[Ire,d3e,l3e,f3e])))}function l6(){l6=K,ZSe=new Lle(_d,0),J$=new Lle("IMPROVE_STRAIGHTNESS",1)}function ij(){ij=K,Mne=new Xq(qSt,0),rke=new Xq(nve,1),nke=new Xq(_d,2)}function Fpe(e){var t;if(!yK(e))throw Y(new vs);return e.e=1,t=e.d,e.d=null,t}function ug(e){var t;return gs(e)&&(t=0-e,!isNaN(t))?t:p1(k_(e))}function _s(e,t,r){for(;r=0;)++t[0]}function Vdt(e,t){A2e=new Vm,nkt=t,vI=e,l(vI.b,68),kpe(vI,A2e,null),Lvt(vI)}function G3(){G3=K,cee=new Rq("XY",0),uee=new Rq("X",1),lee=new Rq("Y",2)}function Za(){Za=K,Nd=new Iq("TOP",0),M1=new Iq(px,1),rd=new Iq(vwe,2)}function lp(){lp=K,dD=new jq(_d,0),ZE=new jq("TOP",1),kT=new jq(vwe,2)}function g6(){g6=K,Hte=new Ple("INPUT_ORDER",0),zte=new Ple("PORT_DEGREE",1)}function m_(){m_=K,KEe=Ua(Hu,Hu,524287),J_t=Ua(0,0,EL),YEe=VW(1),VW(2),JEe=VW(0)}function Bpe(e){var t;return t=HS(Vt(e,32)),t==null&&(Ha(e),t=HS(Vt(e,32))),t}function Upe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Wdt(e){(this.q?this.q:(At(),At(),xh)).zc(e.q?e.q:(At(),At(),xh))}function Kdt(e,t){va(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Ydt(e,t){gu(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Jdt(e,t){Hb(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Xdt(e,t){Ub(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function rfn(e,t){AS(l(l(e.f,19).mf((_n(),bk)),103))&&Agt(She(l(e.f,19)),t)}function aK(e,t){var r;return r=Ur(e.d,t),r>=0?s7(e,r,!0,!0):O0(e,t,!0)}function uj(e,t){var r;return r=e.bd(t),r>=0?(e.ed(r),!0):!1}function uK(e,t,r){var o;return o=e.g[t],w3(e,t,e.Xi(t,r)),e.Pi(t,r,o),e.Li(),o}function cK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==JAt,e.d=t),e.e}function lK(e,t){var r;for(kn(e),kn(t),r=!1;t.Ob();)r=r|e.Ec(t.Pb());return r}function bs(e,t){var r,o;return y1(e),o=new Epe(t,e.a),r=new Hit(o),new Et(e,r)}function Wd(e,t){var r;return r=l(Ht(e.e,t),395),r?(grt(e,r),r.e):null}function ifn(e,t){var r,o,a;a=t.c.i,r=l(Ht(e.f,a),60),o=r.d.c-r.e.c,yge(t.a,o,0)}function bh(e,t,r){var o,a;for(o=10,a=0;ae.a[o]&&(o=r);return o}function sft(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&t0?sr:Ea(e,Qi)<0?Qi:Ln(e)}function Kl(e,t,r){var o;if(t==null)throw Y(new rS);return o=op(e,t),Rln(e,t,r),o}function lft(e,t){return Mt(t),Zfe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function dft(e){this.b=new je,this.a=new je,this.c=new je,this.d=new je,this.e=e}function fft(e,t,r){G8.call(this),qpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function bfn(){return zt(),Z(X(mee,1),Ce,252,0,[Xr,gi,mi,_a,ta,af,rD,AI])}function hft(){hft=K,bLt=yn((vE(),Z(X(_4,1),Ce,260,0,[V1,WD,KNe,A4,YNe])))}function pft(){pft=K,_6t=yn((Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])))}function gft(){gft=K,TNt=yn((yy(),Z(X(SNt,1),Ce,372,0,[sD,q$,V$,G$,z$])))}function bft(){bft=K,RRt=yn((v7(),Z(X(IRt,1),Ce,365,0,[gne,fne,bne,hne,pne])))}function mft(){mft=K,YNt=yn((ic(),Z(X(xTe,1),Ce,166,0,[gD,DI,xp,MI,gm])))}function wft(){wft=K,BIt=yn((hC(),Z(X(s_e,1),Ce,329,0,[o_e,Fte,$te,VI,WI])))}function yft(){yft=K,OOt=yn((xC(),Z(X(ROt,1),Ce,370,0,[f2,BT,f4,d4,DD])))}function vft(){vft=K,FOt=yn((J6(),Z(X(hke,1),Ce,331,0,[lke,Une,fke,Hne,dke])))}function mfn(){return B7(),Z(X($Se,1),Ce,277,0,[xee,Cee,_ee,Oee,Nee,kee,Ree,Iee])}function wfn(){return A1(),Z(X(x6t,1),Ce,287,0,[Bke,Ai,yo,HT,eo,$r,UT,lf])}function yfn(){return sT(),Z(X(s5,1),Ce,235,0,[Dre,yU,o5,i5,Lre,wU,mU,Ore])}function vfn(e,t){return US(),-na(l(F(e,(js(),c2)),15).a,l(F(t,c2),15).a)}function Efn(e,t,r,o){var a;e.j=-1,vme(e,Zbe(e,t,r),(Mo(),a=l(t,69).tk(),a.vl(o)))}function Sfn(e,t,r){var o,a;for(a=new V(r);a.a0?t-1:t,LQe(een(Bft(Rfe(new sS,r),e.n),e.j),e.k)}function dj(e,t){var r;return y1(e),r=new _at(e,e.a.xd(),e.a.wd()|4,t),new Et(e,r)}function Afn(e,t){var r,o;return r=l(py(e.d,t),18),r?(o=t,e.e.pc(o,r)):null}function Eft(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(M9(),FQ)}function w0(e){if(e<0)throw Y(new jt("Illegal Capacity: "+e));this.g=this.$i(e)}function _fn(e,t){if(0>e||e>t)throw Y(new Zce("fromIndex: 0, toIndex: "+e+fwe+t))}function Sft(e,t){return!!J3(e,t,Ln(wo(Sh,ph(Ln(wo(t==null?0:Rr(t),Th)),15))))}function xfn(e,t){AS(l(F(l(e.e,9),(Be(),Zr)),103))&&(At(),xi(l(e.e,9).j,t))}function kfn(e){var t;return t=ue(le(F(e,(Be(),_g)))),t<0&&(t=0,Te(e,_g,t)),t}function fj(e,t){var r,o;for(o=e.Jc();o.Ob();)r=l(o.Pb(),70),Te(r,(Ie(),OT),t)}function Nfn(e,t,r){var o;o=b.Math.max(0,e.b/2-.5),bC(r,o,1),Fe(t,new htt(r,o))}function Tft(e,t,r,o,a,c){var f;f=KW(o),bo(f,a),Ji(f,c),yt(e.a,o,new K8(f,t,r.f))}function Aft(e,t){Vn(e,(yh(),Cne),t.f),Vn(e,oOt,t.e),Vn(e,Nne,t.d),Vn(e,iOt,t.c)}function hK(e){var t;Hw(!!e.c),t=e.c.a,Vc(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function _ft(e){return e.a>=-.01&&e.a<=nf&&(e.a=0),e.b>=-.01&&e.b<=nf&&(e.b=0),e}function hE(e){Z_();var t,r;for(r=ove,t=0;tr&&(r=e[t]);return r}function xft(e,t){var r;if(r=iL(e.Ah(),t),!r)throw Y(new jt(R1+t+nQ));return r}function uy(e,t){var r;for(r=e;Br(r);)if(r=Br(r),r==t)return!0;return!1}function Cfn(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 Da(e,t){var r,o,a,c;for(Mt(t),o=e.c,a=0,c=o.length;a0&&(e.a/=t,e.b/=t),e}function hj(e){this.b=(kn(e),new Tu(e)),this.a=new je,this.d=new je,this.e=new ro}function qpe(e){e.b=(_u(),D1),e.f=(Za(),M1),e.d=(wc(2,Iy),new La(2)),e.e=new ro}function Nft(){Nft=K,b$=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])).length,tee=b$}function Sd(){Sd=K,Bs=new Nq("BEGIN",0),$a=new Nq(px,1),Us=new Nq("END",2)}function Kd(){Kd=K,yk=new eV(px,0),fv=new eV("HEAD",1),vk=new eV("TAIL",2)}function m6(){m6=K,K$=new Ole("READING_DIRECTION",0),YSe=new Ole("ROTATION",1)}function w6(){w6=K,ire=new Yle("DIRECT_ROUTING",0),rre=new Yle("BEND_ROUTING",1)}function US(){US=K,xRt=Pf(Pf(Pf(ZN(new ui,(JS(),e4)),(IC(),Xte)),L_e),j_e)}function dp(){dp=K,NRt=Pf(Pf(Pf(ZN(new ui,(JS(),n4)),(IC(),M_e)),I_e),D_e)}function pE(e,t){return ien(Y3(e,t,Ln(wo(Sh,ph(Ln(wo(t==null?0:Rr(t),Th)),15)))))}function Vpe(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function Wpe(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function mc(e){var t;return e.w?e.w:(t=Scn(e),t&&!t.Sh()&&(e.w=t),t)}function Mfn(e){var t;return e==null?null:(t=l(e,198),Nwn(t,t.length))}function oe(e,t){if(e.g==null||t>=e.i)throw Y(new oV(t,e.i));return e.Ui(t,e.g[t])}function Pfn(e,t){At();var r,o;for(o=new je,r=0;r=14&&t<=16))),e}function Rft(){Rft=K,BNt=yn((K6(),Z(X(iTe,1),Ce,284,0,[X$,tTe,rTe,eTe,nTe,Kee])))}function Oft(){Oft=K,UNt=yn((W_(),Z(X(lTe,1),Ce,285,0,[NI,sTe,cTe,uTe,aTe,oTe])))}function Lft(){Lft=K,FNt=yn((_7(),Z(X(XSe,1),Ce,286,0,[Gee,zee,Vee,qee,Wee,Y$])))}function Dft(){Dft=K,INt=yn((eT(),Z(X(Yx,1),Ce,233,0,[Kx,xI,Wx,zy,YE,KE])))}function Mft(){Mft=K,lLt=yn((T7(),Z(X(UNe,1),Ce,328,0,[_re,FNe,BNe,PNe,$Ne,jNe])))}function Pft(){Pft=K,D6t=yn((Zb(),Z(X(dre,1),Ce,300,0,[lre,w4,m4,cre,g4,b4])))}function jft(){jft=K,N6t=yn((mh(),Z(X(zke,1),Ce,259,0,[are,jD,FD,nU,eU,tU])))}function Fft(){Fft=K,mLt=yn((qi(),Z(X(JNe,1),Ce,103,0,[W1,pf,Sk,_m,Oh,fa])))}function $ft(){$ft=K,wLt=yn((xu(),Z(X(lU,1),Ce,282,0,[K1,Rp,KD,k4,x4,KT])))}function $fn(){return Ty(),Z(X(zo,1),Ce,96,0,[ad,Ip,ud,ld,Rh,Il,kc,cd,Cl])}function V3(){V3=K,YD=new nV(aEe,0),xre=new nV("PARENT",1),ZNe=new nV("ROOT",2)}function Bft(e,t){return e.n=t,e.n?(e.f=new je,e.e=new je):(e.f=null,e.e=null),e}function Ub(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,3,r,e.f))}function pj(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,1,r,e.b))}function y0(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,3,r,e.b))}function v0(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,4,r,e.c))}function Hb(e,t){var r;r=e.g,e.g=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,4,r,e.g))}function va(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(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 sy(e,6,r,e.j))}function E0(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,1,r,e.j))}function S0(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,2,r,e.k))}function gj(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,0,r,e.a))}function cg(e,t){var r;r=e.s,e.s=t,e.Db&4&&!(e.Db&1)&&hr(e,new UW(e,4,r,e.s))}function cy(e,t){var r;r=e.t,e.t=t,e.Db&4&&!(e.Db&1)&&hr(e,new UW(e,5,r,e.t))}function gK(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new UW(e,2,r,e.d))}function y_(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 y6(e,t){var r;return r=l(Ht((e8(),vU),e),58),r?r.ek(t):we(Ri,Rt,1,t,5,1)}function fp(e,t){var r,o;return r=t in e.a,r&&(o=op(e,t).pe(),o)?o.a:null}function Bfn(e,t){var r,o,a;return r=(o=(e1(),a=new Uue,a),t&&qme(o,t),o),cge(r,e),r}function Uft(e,t,r){var o;return o=B_(r),Jn(e.c,o,t),Jn(e.d,t,r),Jn(e.e,t,ty(t)),t}function fn(e,t,r,o,a,c){var f;return f=lW(e,t),zft(r,f),f.i=a?8:0,f.f=o,f.e=a,f.g=c,f}function Kpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=1,this.c=e,this.a=r}function Ype(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=2,this.c=e,this.a=r}function Jpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=6,this.c=e,this.a=r}function Xpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=7,this.c=e,this.a=r}function Zpe(e,t,r,o,a){this.d=t,this.j=o,this.e=a,this.o=-1,this.p=4,this.c=e,this.a=r}function Hft(e,t){var r,o,a,c;for(o=t,a=0,c=o.length;a0?l(ze(r.a,o-1),9):null}function Yl(e){if(!(e>=0))throw Y(new jt("tolerance ("+e+") must be >= 0"));return e}function W3(){return ore||(ore=new gyt,bE(ore,Z(X(GE,1),Rt,139,0,[new que]))),ore}function bj(){bj=K,S_e=new zq("NO",0),Kte=new zq(Lwe,1),E_e=new zq("LOOK_BACK",2)}function mj(){mj=K,qSe=new Lq("ARD",0),W$=new Lq("MSD",1),Dee=new Lq("MANUAL",2)}function jo(){jo=K,YI=new $q(qC,0),Cu=new $q("INPUT",1),Ba=new $q("OUTPUT",2)}function Gfn(){return tL(),Z(X(KSe,1),Ce,268,0,[jee,WSe,$ee,Bee,Fee,Uee,uD,Pee,Mee])}function qfn(){return rL(),Z(X(n_e,1),Ce,269,0,[Dte,QAe,e_e,Ote,ZAe,t_e,AB,Rte,Lte])}function Vfn(){return Uu(),Z(X(e3e,1),Ce,267,0,[Tk,QD,dU,C4,fU,pU,hU,kre,ZD])}function Ko(e,t,r){return Yb(e,t),Ma(e,r),cg(e,0),cy(e,1),pg(e,!0),hg(e,!0),e}function qft(e,t){var r;return ae(t,45)?e.c.Kc(t):(r=uY(e,t),Qj(e,t),r)}function K3(e,t){var r,o,a,c;for(o=t,a=0,c=o.length;ar)throw Y(new Ww(t,r));return new dfe(e,t)}function Vft(e,t){var r,o;for(r=0,o=e.gc();r=0),O1n(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function Jfn(e){var t,r;for(r=new V(J1t(e));r.a=0}function rge(){rge=K,i4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function Zft(){Zft=K,o4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function ige(){ige=K,s4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function Qft(){Qft=K,a4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function eht(){eht=K,u4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function tht(){tht=K,c4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function nht(){nht=K,f4t=Ra($n($n(new ui,(Vi(),la),(Zi(),L$)),da,N$),Ho,O$)}function rht(){rht=K,X_t=Z(X(Rn,1),Qn,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function oge(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 sge(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 mK(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 age(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 uge(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 v_(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 wK(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 Ej(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 Sj(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 cge(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 lge(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 Qfn(e,t,r){var o;e.b=t,e.a=r,o=(e.a&512)==512?new XZe:new Gue,e.c=$Sn(o,e.b,e.a)}function iht(e,t){return wp(e.e,t)?(Mo(),cK(t)?new nP(t,e):new xO(t,e)):new ynt(t,e)}function ehn(e){var t,r;return 0>e?new ple:(t=e+1,r=new flt(t,e),new Gde(null,r))}function thn(e,t){At();var r;return r=new dS(1),zi(e)?ns(r,e,t):eu(r.f,e,t),new WG(r)}function nhn(e,t){var r;r=new Vm,l(t.b,68),l(t.b,68),l(t.b,68),Da(t.a,new yfe(e,r,t))}function oht(e,t){var r;return ae(t,8)?(r=l(t,8),e.a==r.a&&e.b==r.b):!1}function rhn(e){var t;return t=F(e,(Ie(),mr)),ae(t,176)?Ngt(l(t,176)):null}function sht(e){var t;return e=b.Math.max(e,2),t=Pge(e),e>t?(t<<=1,t>0?t:BC):t}function yK(e){switch(Sde(e.e!=3),e.e){case 2:return!1;case 0:return!0}return udn(e)}function dge(e){var t;return e.b==null?(tg(),tg(),l5):(t=e.sl()?e.rl():e.ql(),t)}function aht(e,t){var r,o;for(o=t.vc().Jc();o.Ob();)r=l(o.Pb(),45),V6(e,r.jd(),r.kd())}function fge(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 Tj(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 hge(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 pge(e,t){e.r>0&&e.c0&&e.g!=0&&pge(e.i,t/e.r*e.i.d))}function gE(e){var t;return OV(e.f.g,e.d),un(e.b),e.c=e.a,t=l(e.a.Pb(),45),e.b=xge(e),t}function uht(e,t){var r;return r=t==null?-1:_s(e.b,t,0),r<0?!1:(vK(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 Aj(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 vK(e,t){var r;r=sg(e.b,e.b.c.length-1),t0?1:0:(!e.c&&(e.c=ZO(Gs(e.f))),e.c).e}function bht(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,a,c,f,p,m,y,v,T,N){return Bmt(e,t,r,o,a,c,f,p,m,y,v,T,N),tY(e,!1),e}function AK(e,t,r,o,a,c){var f;this.c=e,f=new je,Q1e(e,f,t,e.b,r,o,a,c),this.a=new Xi(f,0)}function mht(){this.c=new H9(0),this.b=new H9(ive),this.d=new H9(MSt),this.a=new H9(PSt)}function wht(e){this.e=e,this.d=new U9(fy(kS(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function Nj(e){this.b=e,this.a=we(Rn,Qn,30,e+1,15,1),this.c=we(Rn,Qn,30,e,15,1),this.d=0}function lhn(){return _1(),Z(X(d_e,1),Ce,246,0,[kB,SD,TD,u_e,c_e,a_e,l_e,NB,ak,KI])}function dhn(){return Fo(),Z(X(Yee,1),Ce,262,0,[Z$,rl,CI,Q$,Qx,XE,II,Xx,Zx,eB])}function yht(e,t){return ue(le(Xu(D6(Oa(new Et(null,new St(e.c.b,16)),new hJe(e)),t))))}function wge(e,t){return ue(le(Xu(D6(Oa(new Et(null,new St(e.c.b,16)),new fJe(e)),t))))}function vht(e,t){return Ud(),Yl(nf),b.Math.abs(0-t)<=nf||t==0||isNaN(0)&&isNaN(t)?0:e/t}function fhn(e,t){return x_(),e==X0&&t==$y||e==$y&&t==X0||e==qE&&t==Fy||e==Fy&&t==qE}function hhn(e,t){return x_(),e==X0&&t==Fy||e==X0&&t==qE||e==$y&&t==qE||e==$y&&t==Fy}function phn(e,t,r){var o,a,c;for(o=0,a=0;a>>31;o!=0&&(e[r]=o)}function yge(e,t,r){var o,a;for(a=An(e,0);a.b!=a.d.c;)o=l(Sn(a),8),o.a+=t,o.b+=r;return e}function Y3(e,t,r){var o;for(o=e.b[r&e.f];o;o=o.b)if(r==o.a&&rp(t,o.g))return o;return null}function J3(e,t,r){var o;for(o=e.c[r&e.f];o;o=o.d)if(r==o.f&&rp(t,o.i))return o;return null}function ghn(e,t){var r,o;return r=l(ve(e,(T1(),HB)),15),o=l(ve(t,HB),15),na(r.a,o.a)}function bhn(e,t){var r;t.Tg("General Compactor",1),r=f1n(l(ve(e,(T1(),yne)),387)),r.Bg(e)}function mhn(e,t,r){r.Tg("DFS Treeifying phase",1),T1n(e,t),aSn(e,t),e.a=null,e.b=null,r.Ug()}function whn(e,t,r,o){var a;a=new aS,Mb(a,"x",w7(e,t,o.a)),Mb(a,"y",y7(e,t,o.b)),RS(r,a)}function yhn(e,t,r,o){var a;a=new aS,Mb(a,"x",w7(e,t,o.a)),Mb(a,"y",y7(e,t,o.b)),RS(r,a)}function _K(){_K=K,D4=new VZe,Fre=Z(X(au,1),UE,182,0,[]),fDt=Z(X(Ll,1),CEe,62,0,[])}function zS(){zS=K,Eee=new Pr("edgelabelcenterednessanalysis.includelabel",(Dt(),L1))}function bu(){bu=K,Z2e=new wG,J2e=new yG,X2e=new vG,Y2e=new EG,Q2e=new SG,eSe=new LN}function vhn(e,t){t.Tg(lSt,1),x1e(men(new A9((KN(),new gW(e,!1,!1,new c9))))),t.Ug()}function xK(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),KQ):(jw(),new EV(t.b))}function kK(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),KQ):(jw(),new EV(t.c))}function Ehn(e){var t;return t=BP(e),d3(t.a,0)?(V9(),V9(),lxt):(V9(),new Krt(t.b))}function Shn(e){return e.b.c.i.k==(zt(),mi)?l(F(e.b.c.i,(Ie(),mr)),12):e.b.c}function Eht(e){return e.b.d.i.k==(zt(),mi)?l(F(e.b.d.i,(Ie(),mr)),12):e.b.d}function Sht(e){switch(e.g){case 2:return He(),Kt;case 4:return He(),Qt;default:return e}}function Tht(e){switch(e.g){case 1:return He(),dn;case 3:return He(),Wt;default:return e}}function Thn(e,t){var r;return r=jbe(e),pme(new Me(r.c,r.d),new Me(r.b,r.a),e.Kf(),t,e.$f())}function Ahn(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 _ht(e,t,r){this.g=e,this.d=t,this.e=r,this.a=new je,yvn(this),At(),xi(this.a,null)}function Kc(e,t,r,o,a,c,f){mn.call(this,e,t),this.d=r,this.e=o,this.c=a,this.b=c,this.a=Wl(f)}function Ege(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),Fe(e.a,t)}function NK(e,t){var r,o,a,c;return a=e.c,r=e.c+e.b,c=e.d,o=e.d+e.a,t.a>a&&t.ac&&t.ba?r=a:Yt(t,r+1),e.a=yl(e.a,0,t)+(""+o)+hhe(e.a,r)}function Gb(e,t,r){var o,a;return a=l(S3(e.d,t),15),o=l(S3(e.b,r),15),!a||!o?null:$S(e,a.a,o.a)}function Dhn(e,t,r){return yr(yS(U_(e),new Me(t.e.a,t.e.b)),yS(U_(e),new Me(r.e.a,r.e.b)))}function Mhn(e,t,r){return e==(Kb(),IB)?new $Ue:Bu(t,1)!=0?new rle(r.length):new NQe(r.length)}function hr(e,t){var r,o,a;if(r=e.qh(),r!=null&&e.th())for(o=0,a=r.length;o1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw Y(new vs)}function Uhn(e){Xnt();var t;return ttt(Jte,e)||(t=new nHe,t.a=e,Xde(Jte,e,t)),l(Wo(Jte,e),642)}function vl(e){var t,r,o,a;return a=e,o=0,a<0&&(a+=nm,o=Ep),r=go(a/fT),t=go(a-r*fT),Ua(t,r,o)}function $ht(e,t){var r;return r=e.a.get(t),r===void 0?++e.d:(Vnn(e.a,t),--e.c,++e.b.g),r}function qs(e,t){var r;return t&&(r=t.lf(),r.dc()||(e.q?X3(e.q,r):e.q=new Fnt(r))),e}function Hhn(e,t){var r,o,a;return r=t.p-e.p,r==0?(o=e.f.a*e.f.b,a=t.f.a*t.f.b,yr(o,a)):r}function Tge(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Whe(e,t)}function zhn(e){return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:yW(e)}function Ghn(e,t){var r;try{t.be()}catch(o){if(o=ci(o),ae(o,81))r=o,Ot(e.c,r);else throw Y(o)}}function qhn(e,t){var r;t.Tg("Edge and layer constraint edge reversal",1),r=mTn(e),Qkn(r),t.Ug()}function Vhn(e,t){var r,o;return r=e.j,o=t.j,r!=o?r.g-o.g:e.p==t.p?0:r==(He(),Wt)?e.p-t.p:t.p-e.p}function A_(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(Mo(),l(e,69).vk()),this.k=za(t.e.Ah(),e)}function qb(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 Age(e,t,r,o,a){mpt.call(this,e,r,o,a),this.f=we(Nh,vg,9,t.a.c.length,0,1),Yd(t.a,this.f)}function Z3(e,t,r,o,a){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o),ii(e.b[t.g],r.g,a),ii(e.b[r.g],t.g,a)}function Bht(e,t){e.c&&(_yt(e,t,!0),ei(new Et(null,new St(t,16)),new yJe(e))),_yt(e,t,!1)}function _6(e){this.n=new je,this.e=new Ar,this.j=new Ar,this.k=new je,this.f=new je,this.p=e}function Uht(e){e.r=new hi,e.w=new hi,e.t=new je,e.i=new je,e.d=new hi,e.a=new wS,e.c=new hn}function A0(){A0=K,eD=new o8("UP",0),QL=new o8(RX,1),ree=new o8(hT,2),iee=new o8(pT,3)}function Oj(){Oj=K,g_e=new Bq("EQUALLY",0),Gte=new Bq("NORTH",1),b_e=new Bq("NORTH_SOUTH",2)}function __(){__=K,Jee=new Mq("ONE_SIDED",0),Xee=new Mq("TWO_SIDED",1),cD=new Mq("OFF",2)}function Hht(){Hht=K,xLt=yn((Uu(),Z(X(e3e,1),Ce,267,0,[Tk,QD,dU,C4,fU,pU,hU,kre,ZD])))}function zht(){zht=K,gLt=yn((Ty(),Z(X(zo,1),Ce,96,0,[ad,Ip,ud,ld,Rh,Il,kc,cd,Cl])))}function Ght(){Ght=K,DNt=yn((tL(),Z(X(KSe,1),Ce,268,0,[jee,WSe,$ee,Bee,Fee,Uee,uD,Pee,Mee])))}function qht(){qht=K,jIt=yn((rL(),Z(X(n_e,1),Ce,269,0,[Dte,QAe,e_e,Ote,ZAe,t_e,AB,Rte,Lte])))}function Xl(){Xl=K,Hy=new c8(px,0),qx=new c8(hT,1),Vx=new c8(pT,2),Tee=new c8("TOP",3)}function Lj(){Lj=K,Yte=new Gq("OFF",0),uk=new Gq("SINGLE_EDGE",1),nv=new Gq("MULTI_EDGE",2)}function x6(){x6=K,QB=new Wle("MINIMUM_SPANNING_TREE",0),Ike=new Wle("MAXIMUM_SPANNING_TREE",1)}function Whn(e,t,r){var o,a;a=l(F(e,(Be(),ss)),79),a&&(o=new Du,VK(o,0,a),ly(o,r),mo(t,o))}function _ge(e){var t;return t=l(F(e,(Ie(),Hs)),64),e.k==(zt(),mi)&&(t==(He(),Kt)||t==Qt)}function Khn(e){var t;if(e){if(t=e,t.dc())throw Y(new vs);return t.Xb(t.gc()-1)}return Nut(e.Jc())}function IK(e,t,r,o){return r==1?(!e.n&&(e.n=new ke(Rs,e,1,7)),_o(e.n,t,o)):qbe(e,t,r,o)}function k6(e,t){var r,o;return o=(r=new MG,r),Ma(o,t),Tn((!e.A&&(e.A=new du(Ka,e,7)),e.A),o),o}function Yhn(e,t,r){var o,a,c,f;return c=null,f=t,a=m0(f,lQ),o=new ent(e,r),c=(Sbt(o.a,o.b,a),a),c}function Dj(e,t,r){var o,a,c,f;f=ji(e),o=f.d,a=f.c,c=e.n,t&&(c.a=c.a-o.b-a.a),r&&(c.b=c.b-o.d-a.b)}function Jhn(e,t){var r,o,a;return r=e.l+t.l,o=e.m+t.m+(r>>22),a=e.h+t.h+(o>>22),Ua(r&Hu,o&Hu,a&Ep)}function Vht(e,t){var r,o,a;return r=e.l-t.l,o=e.m-t.m+(r>>22),a=e.h-t.h+(o>>22),Ua(r&Hu,o&Hu,a&Ep)}function N6(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 RK(e){var t;return(!e.a||!(e.Bb&1)&&e.a.Sh())&&(t=Sl(e),ae(t,160)&&(e.a=l(t,160))),e.a}function ci(e){var t;return ae(e,81)?e:(t=e&&e.__java$exception,t||(t=new Fpt(e),pZe(t)),t)}function OK(e){if(ae(e,196))return l(e,127);if(e)return null;throw Y(new uS(oAt))}function Wht(e){switch(e.g){case 0:return new zze;case 1:return new Gze;case 2:default:return null}}function xge(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new Cpe(e.f.f),e.a.Ob())}function Kht(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(pr(t,Bj(e)))return!0;return!1}function Yht(e,t){return!e||!t||e==t?!1:Ygt(e.d.c,t.d.c+t.d.b)&&Ygt(t.d.c,e.d.c+e.d.b)}function Xhn(){return YP(),sf?new GW(null):R0t(Ohn(),"com.google.common.base.Strings")}function li(e,t){var r,o;return r=t.Nc(),o=r.length,o==0?!1:(Dfe(e.c,e.c.length,r),!0)}function Zhn(e,t){var r,o;return r=e.c,o=t.e[e.p],o=128?!1:e<64?f3(Gi(fh(1,e),r),0):f3(Gi(fh(1,e-64),t),0)}function Oge(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Ww(t,o));return e.Qi()&&(r=cut(e,r)),e.Ci(t,r)}function dpn(e,t){var r,o;return r=l(l(Ht(e.g,t.a),49).a,68),o=l(l(Ht(e.g,t.b),49).a,68),nvt(r,o)}function k_(e){var t,r,o;return t=~e.l+1&Hu,r=~e.m+(t==0?1:0)&Hu,o=~e.h+(t==0&&r==0?1:0)&Ep,Ua(t,r,o)}function fpn(e){Z_();var t,r,o;for(r=we($i,Pe,8,2,0,1),o=0,t=0;t<2;t++)o+=.5,r[t]=Vbn(o,e);return r}function spt(e,t){var r,o,a,c;for(r=!1,o=e.a[t].length,c=0;ce.f,r=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||r}function Q3(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 fpt(e,t,r){var o,a;return o=new eK(t,r),a=new Ft,e.b=Fwt(e,e.b,o,a),a.b||++e.c,e.b.b=!1,a.d}function hpt(e){var t,r;return r=Q6(e.h),r==32?(t=Q6(e.m),t==32?Q6(e.l)+32:t+20-10):r-12}function Pge(e){var t;if(e<0)return Qi;if(e==0)return 0;for(t=BC;!(t&e);t>>=1);return t}function hpn(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+Zdt(e))}function jge(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=Sl(e),ae(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 wpn(e,t,r){return!BA(lr(new Et(null,new St(e.c,16)),new RA(new ztt(t,r)))).zd((_b(),TT))}function $K(e,t,r){this.g=e,this.e=new ro,this.f=new ro,this.d=new Ar,this.b=new Ar,this.a=t,this.c=r}function BK(e,t,r,o){this.b=new je,this.n=new je,this.i=o,this.j=r,this.s=e,this.t=t,this.r=0,this.d=0}function mpt(e,t,r,o){this.b=new hn,this.g=new hn,this.d=(rC(),_B),this.c=e,this.e=t,this.d=r,this.a=o}function wpt(e,t,r){e.g=nJ(e,t,(He(),Qt),e.b),e.d=nJ(e,r,Qt,e.b),!(e.g.c==0||e.d.c==0)&&omt(e)}function ypt(e,t,r){e.g=nJ(e,t,(He(),Kt),e.j),e.d=nJ(e,r,Kt,e.j),!(e.g.c==0||e.d.c==0)&&omt(e)}function ypn(e,t,r,o,a){var c;return c=Nme(e,t),r&&jK(c),a&&(e=Zbn(e,t),o?O1=k_(e):O1=Ua(e.l,e.m,e.h)),c}function vpn(e,t,r,o,a){var c,f;if(f=e.length,c=r.length,t<0||o<0||a<0||t+a>f||o+a>c)throw Y(new Nce)}function vpt(e,t){HO(e>=0,"Negative initial capacity"),HO(t>=0,"Non-positive load factor"),Zs(this)}function N_(){N_=K,jSe=new T$e,FSe=new A$e,gNt=new _$e,pNt=new x$e,hNt=new k$e,PSe=(Mt(hNt),new We)}function eC(){eC=K,B_e=new Vq(_d,0),Zte=new Vq("MIDDLE_TO_MIDDLE",1),kD=new Vq("AVOID_OVERLAP",2)}function Uge(e,t,r){switch(t){case 0:!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),Cj(e.o,r);return}iJ(e,t,r)}function Epn(e,t){switch(t.g){case 0:ae(e.b,638)||(e.b=new Mht);break;case 1:ae(e.b,639)||(e.b=new Lot)}}function Ept(e){switch(e.g){case 0:return new eGe;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function Spt(e){switch(e.g){case 0:return new Qze;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function Tpt(e){switch(e.g){case 0:return new nGe;default:throw Y(new jt(NZ+(e.f!=null?e.f:""+e.g)))}}function Apt(e){switch(e.g){case 0:return new rGe;default:throw Y(new jt(NZ+(e.f!=null?e.f:""+e.g)))}}function _pt(e){switch(e.g){case 0:return new Yze;default:throw Y(new jt(NZ+(e.f!=null?e.f:""+e.g)))}}function C_(e,t){if(!e.Ji()&&t==null)throw Y(new jt("The 'no null' constraint is violated"));return t}function Hge(e){var t,r,o;for(t=new Du,o=An(e,0);o.b!=o.d.c;)r=l(Sn(o),8),WA(t,0,new So(r));return t}function lg(e){var t,r;for(t=0,r=0;ro?1:0}function xpt(e,t){var r,o,a;for(a=e.b;a;){if(r=e.a.Le(t,a.d),r==0)return a;o=r<0?0:1,a=a.a[o]}return null}function bE(e,t){var r,o,a,c,f;for(o=t,a=0,c=o.length;a=e.b.c.length||(qge(e,2*t+1),r=2*t+2,r0&&(t.Ad(r),r.i&&ibn(r))}function Vge(e,t,r){var o;for(o=r-1;o>=0&&e[o]===t[o];o--);return o<0?0:_q(Gi(e[o],$o),Gi(t[o],$o))?-1:1}function Ipn(e,t){var r;return!e||e==t||!gr(t,(Ie(),tw))?!1:(r=l(F(t,(Ie(),tw)),9),r!=e)}function mE(e,t,r){var o,a;return a=(o=new nq,o),Ko(a,t,r),Tn((!e.q&&(e.q=new ke(Ll,e,11,10)),e.q),a),a}function zK(e,t){var r,o;return o=l(Vt(e.a,4),131),r=we(Pre,yQ,420,t,0,1),o!=null&&ua(o,0,r,0,o.length),r}function GK(e){var t,r,o,a;for(a=Nen(HLt,e),r=a.length,o=we(Je,Pe,2,r,6,1),t=0;t0)return t_(t-1,e.a.c.length),sg(e.a,t-1);throw Y(new bZe)}function Ppn(e,t,r){if(t<0)throw Y(new Ia(lTt+t));tt)throw Y(new jt(sF+e+T2t+t));if(e<0||t>r)throw Y(new Zce(sF+e+gwe+t+fwe+r))}function Dpt(e){if(!e.a||!(e.a.i&8))throw Y(new es("Enumeration class expected for layout option "+e.f))}function Mpt(e){uut.call(this,"The given string does not match the expected format for individual spacings.",e)}function Ppt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function dg(e){switch(e.c){case 0:return HV(),GEe;case 1:return new nS(Xmt(new fS(e)));default:return new cQe(e)}}function jpt(e){switch(e.gc()){case 0:return HV(),GEe;case 1:return new nS(e.Jc().Pb());default:return new Sle(e)}}function Yge(e){var t;return t=(!e.a&&(e.a=new ke(Op,e,9,5)),e.a),t.i!=0?_en(l(oe(t,0),691)):null}function jpn(e,t){var r;return r=Ao(e,t),_q(MW(e,t),0)|k8(MW(e,r),0)?r:Ao(wL,MW(Rb(r,63),1))}function Jge(e,t,r){var o,a;return ry(t,e.c.length),o=r.Nc(),a=o.length,a==0?!1:(Dfe(e.c,t,o),!0)}function Fpn(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 $pn(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 hy(e){var t;++e.j,e.i==0?e.g=null:e.ia&&(Cbt(t.q,a),o=r!=t.q.d)),o}function Gpt(e,t){var r,o,a,c,f,p,m,y;return m=t.i,y=t.j,o=e.f,a=o.i,c=o.j,f=m-a,p=y-c,r=b.Math.sqrt(f*f+p*p),r}function qpt(e,t){var r,o,a;r=e,a=0;do{if(r==t)return a;if(o=r.e,!o)throw Y(new nO);r=ji(o),++a}while(!0)}function Yb(e,t){var r,o,a;o=e.Wk(t,null),a=null,t&&(a=($A(),r=new Ym,r),w_(a,e.r)),o=Zd(e,a,o),o&&o.mj()}function Vpn(e,t){var r,o;for(o=Bu(e.d,1)!=0,r=!0;r;)r=!1,r=t.c.kg(t.e,o),r=r|oL(e,t,o,!1),o=!o;bge(e)}function Zge(e,t){var r,o;return o=t7(e),o||(r=(jJ(),X0t(t)),o=new sZe(r),Tn(o.Cl(),e)),o}function O6(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 Wpn(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw Y(new vs);return t=e.a,e.a+=e.c.c,++e.b,Re(t)}function Kpn(e){var t,r;if(e==null)return!1;for(t=0,r=e.length;tOF?e-r>OF:r-e>OF}function Ea(e,t){var r;return gs(e)&&gs(t)&&(r=e-t,!isNaN(r))?r:hbe(gs(e)?vl(e):e,gs(t)?vl(t):t)}function Xpn(e,t,r){var o;o=new E0t(e,t),yt(e.r,t.$f(),o),r&&!k3(e.u)&&(o.c=new eut(e.d),Da(t.Pf(),new gYe(o)))}function YK(e){var t;return t=new dde(e.a),qs(t,e),Te(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 Zpn(e){var t;return t=O8(f4t),l(F(e,(Ie(),xa)),24).Gc((Fo(),Qx))&&$n(t,(Vi(),la),(Zi(),P$)),t}function Qpn(e){var t,r,o,a;for(a=new hi,o=new V(e);o.a=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(a*=r,o-=1);return t<0?1/a:a}function egn(e,t){var r,o,a;for(a=1,r=e,o=t>=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(a*=r,o-=1);return t<0?1/a:a}function w1(e,t){var r,o,a,c;return c=(a=e?t7(e):null,Hmt((o=t,a&&a.El(),o))),c==t&&(r=t7(e),r&&r.El()),c}function e1e(e,t,r){var o,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,1,a,t),r?r.lj(o):r=o),r}function Ypt(e,t,r){var o,a;return a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,3,a,t),r?r.lj(o):r=o),r}function Jpt(e,t,r){var o,a;return a=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,0,a,t),r?r.lj(o):r=o),r}function tgn(e,t,r,o){var a,c;for(c=e.Jc();c.Ob();)a=l(c.Pb(),70),a.n.a=t.a+(o.a-a.o.a)/2,a.n.b=t.b,t.b+=a.o.b+r}function ngn(e,t,r,o,a,c,f,p){var m;for(m=r;c=o||t0&&(r=l(ze(e.a,e.a.c.length-1),572),Gge(r,t))||Fe(e.a,new hlt(t))}function ngt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ode(r,new RFe),f0t(r,t))}function rgt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ode(r,new OFe),f0t(r,t))}function Re(e){var t,r;return e>-129&&e<128?(Oot(),t=e+128,r=t2e[t],!r&&(r=t2e[t]=new ace(e)),r):new ace(e)}function L_(e){var t,r;return e>-129&&e<128?(Bot(),t=e+128,r=o2e[t],!r&&(r=o2e[t]=new oce(e)),r):new oce(e)}function igt(e){var t;return t=new Zg,t.a+="VerticalSegment ",ba(t,e.e),t.a+=" ",zn(t,Tde(new pq,new V(e.k))),t.a}function agn(e){hc();var t,r;t=e.d.c-e.e.c,r=l(e.g,157),Da(r.b,new ZYe(t)),Da(r.c,new QYe(t)),lo(r.i,new eJe(t))}function ugn(e){var t;return t=l(Wd(e.c.c,""),236),t||(t=new DS(FA(jA(new eS,""),"Other")),Jb(e.c.c,"",t)),t}function iC(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (name: ",Vo(t,e.zb),t.a+=")",t.a)}function i1e(e,t,r){var o,a;return a=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,a,t),r?r.lj(o):r=o),r}function XK(e,t){var r,o,a;for(r=0,a=ks(e,t).Jc();a.Ob();)o=l(a.Pb(),12),r+=F(o,(Ie(),Nu))!=null?1:0;return r}function yE(e,t,r){var o,a,c;for(o=0,c=An(e,0);c.b!=c.d.c&&(a=ue(le(Sn(c))),!(a>r));)a>=t&&++o;return o}function cgn(e,t,r){var o,a;return o=new cp(e.e,3,13,null,(a=t.c,a||(_t(),bf)),gg(e,t),!1),r?r.lj(o):r=o,r}function lgn(e,t,r){var o,a;return o=new cp(e.e,4,13,(a=t.c,a||(_t(),bf)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function o1e(e,t,r){var o,a;return a=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,8,a,e.r),r?r.lj(o):r=o),r}function fg(e,t){var r,o;return r=l(t,688),o=r.cl(),!o&&r.dl(o=ae(t,89)?new wnt(e,l(t,29)):new Jut(e,l(t,160))),o}function L6(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 dgn(e,t){var r;e.c=t,e.a=a1n(t),e.a<54&&(e.f=(r=t.d>1?nct(t.a[0],t.a[1]):nct(t.a[0],0),$b(t.e>0?r:ug(r))))}function fgn(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),cct(e.a,t.a,t.d.length,r)),e}function hgn(e,t){var r,o,a,c;if(t.cj(e.a),c=l(Vt(e.a,8),2014),c!=null)for(r=c,o=0,a=r.length;or)throw Y(new Ia(sF+e+gwe+t+", size: "+r));if(e>t)throw Y(new jt(sF+e+T2t+t))}function hg(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 u1e(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 c1e(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 pg(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 Hj(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 ggn(e,t,r){var o,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,5,a,e.a),r?kbe(r,o):r=o),r}function ugt(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (source: ",Vo(t,e.d),t.a+=")",t.a)}function sC(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 cgt(e,t){var r,o;for(o=new tn(e);o.e!=o.i.gc();)if(r=l(rn(o),29),me(t)===me(r))return!0;return!1}function bgn(e){eF();var t,r,o,a;for(r=mY(),o=0,a=r.length;o=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function dgt(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 l1e(e){var t,r;return t=e.k,t==(zt(),mi)?(r=l(F(e,(Ie(),Hs)),64),r==(He(),Wt)||r==dn):!1}function fgt(e,t){var r,o;for(o=new tn(e);o.e!=o.i.gc();)if(r=l(rn(o),146),me(t)===me(r))return!0;return!1}function mgn(e,t,r){var o,a,c;return c=(a=Y_(e.b,t),a),c&&(o=l(Y7(h6(e,c),""),29),o)?Dme(e,o,t,r):null}function ZK(e,t,r){var o,a,c;return c=(a=Y_(e.b,t),a),c&&(o=l(Y7(h6(e,c),""),29),o)?Mme(e,o,t,r):null}function aC(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Ww(t,o));if(e.Qi()&&e.Gc(r))throw Y(new jt(GL));e.Ei(t,r)}function wgn(e,t){t.Tg("Sort end labels",1),ei(lr(bs(new Et(null,new St(e.b,16)),new gFe),new bFe),new mFe),t.Ug()}function vi(){vi=K,hf=new TO(qC,0),fs=new TO(pT,1),as=new TO(hT,2),ff=new TO(RX,3),il=new TO("UP",4)}function M6(){M6=K,KB=new Qq("P1_STRUCTURE",0),YB=new Qq("P2_PROCESSING_ORDER",1),JB=new Qq("P3_EXECUTION",2)}function hgt(){hgt=K,kRt=Pf(Pf(ZN(Pf(Pf(ZN($n(new ui,(JS(),e4),(IC(),Xte)),t4),P_e),F_e),n4),O_e),$_e)}function ygn(e){var t,r,o;for(t=new je,o=new V(e.b);o.a=0?v1(e):I3(v1(ug(e))))}function bgt(e,t,r,o,a,c){this.e=new je,this.f=(jo(),YI),Fe(this.e,e),this.d=t,this.a=r,this.b=o,this.f=a,this.c=c}function Agn(e){var t;if(!e.a)throw Y(new es("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,kat(e,t),Nat(e,t)}function mgt(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),KQ):(jw(),new EV(Aq(t.a,0)?ype(t)/$b(t.a):0))}function _gn(e,t){var r;if(r=iL(e,t),ae(r,336))return l(r,38);throw Y(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 uC(e,t,r){var o,a;return e.Nj()?(a=e.Oj(),o=aJ(e,t,r),e.Hj(e.Gj(7,Re(r),o,t,a)),o):aJ(e,t,r)}function QK(e,t){var r,o,a;e.d==null?(++e.e,--e.f):(a=t.jd(),r=t.yi(),o=(r&sr)%e.d.length,bdn(e,o,iwt(e,o,r,a)))}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 M_(e,t){var r;r=(e.Bb&Ry)!=0,t?e.Bb|=Ry:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,12,r,t))}function P_(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 j_(e,t){var r;r=(e.Bb&yp)!=0,t?e.Bb|=yp:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,11,r,t))}function xgn(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 Gj(e){var t,r;return r=l(F(e,(Be(),xc)),87),r==(vi(),hf)?(t=ue(le(F(e,aB))),t>=1?fs:ff):r}function kgn(e){var t,r;for(r=Z0t(mc(e)).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return $ln((Qet(),eDt),t);return null}function Ngn(e,t,r){var o,a;for(a=e.a.ec().Jc();a.Ob();)if(o=l(a.Pb(),9),N6(r,l(ze(t,o.p),18)))return o;return null}function Cgn(e,t,r){var o,a;for(a=ae(t,104)&&l(t,20).Bb&Co?new sV(t,e):new A_(t,e),o=0;o>10)+TL&Ei,t[1]=(e&1023)+56320&Ei,Mf(t,0,t.length)}function g1e(e,t){var r;r=(e.Bb&Co)!=0,t?e.Bb|=Co:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,20,r,t))}function b1e(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 tY(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 F_(e,t){var r;r=(e.Bb&$f)!=0,t?e.Bb|=$f:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,16,r,t))}function m1e(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 _0(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 nY(e,t,r){var o,a;return o=(e1(),a=new b9,a),gj(o,t),pj(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=Rfe(new sS,0)),o.Tg(X2t,2),k1t(e.b,t,o.dh(1)),Dxn(e,t,o.dh(1)),DNn(t,o.dh(1)),o.Ug()}function ks(e,t){var r;return e.i||cme(e),r=l(Wo(e.g,t),49),r?new Rf(e.j,l(r.a,15).a,l(r.b,15).a):(At(),At(),Io)}function Ao(e,t){var r;return gs(e)&&gs(t)&&(r=e+t,SL34028234663852886e22?Kr:t<-34028234663852886e22?Di:t}function Df(e){var t,r,o;for(t=new je,o=new V(e.j);o.a"+Fb(t.c):"e_"+Rr(t),e.b&&e.c?Fb(e.b)+"->"+Fb(e.c):"e_"+Rr(e))}function jgn(e,t){return wt(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t),e.b&&e.c?Fb(e.b)+"->"+Fb(e.c):"e_"+Rr(e))}function Fgn(e){return qK(),Dt(),!!(Tgt(l(e.a,84).j,l(e.b,87))||l(e.a,84).d.e!=0&&Tgt(l(e.a,84).j,l(e.b,87)))}function iY(){Mbe();var e,t,r;r=q3n+++Date.now(),e=go(b.Math.floor(r*_L))&oF,t=go(r-e*dwe),this.a=e^1502,this.b=t^_X}function vgt(e,t,r,o,a){srt(this),this.b=e,this.d=we(Nh,vg,9,t.a.c.length,0,1),this.f=r,Yd(t.a,this.d),this.g=o,this.c=a}function w1e(e,t){e.n.c.length==0&&Fe(e.n,new MP(e.s,e.t,e.i)),Fe(e.b,t),Z1e(l(ze(e.n,e.n.c.length-1),211),t),avt(e,t)}function $gn(e,t,r){var o;r.Tg("Straight Line Edge Routing",1),r.bh(t,gve),o=l(ve(t,(aE(),l2)),19),Evt(e,o),r.bh(t,MF)}function ct(e){var t,r,o,a;return r=(t=l(md((o=e.Pm,a=o.f,a==bn?o:a)),10),new Hc(t,l(Gl(t,t.length),10),0)),Jl(r,e),r}function Bgn(e){var t,r;for(r=hEn(mc(ny(e))).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return Bln((ett(),tDt),t);return null}function oY(e,t){var r,o,a;for(a=0,o=l(t.Kb(e),22).Jc();o.Ob();)r=l(o.Pb(),17),Ye(Ke(F(r,(Ie(),Ag))))||++a;return a}function Egt(e){var t,r,o,a;for(t=new wit(e.Pd().gc()),a=0,o=BS(e.Pd().Jc());o.Ob();)r=o.Pb(),kan(t,r,Re(a++));return myn(t.a)}function Ugn(e){var t,r,o;for(r=0,o=e.length;rt){ect(r);break}}yP(r,t)}function zgn(e,t){var r,o,a;o=lE(t),a=ue(le(by(o,(Be(),od)))),r=b.Math.max(0,a/2-.5),bC(t,r,1),Fe(e,new vtt(t,r))}function st(e,t){var r,o,a,c,f;if(r=t.f,Jb(e.c.d,r,t),t.g!=null)for(a=t.g,c=0,f=a.length;ct&&o.Le(e[c-1],e[c])>0;--c)f=e[c],ii(e,c,e[c-1]),ii(e,c-1,f)}function Xc(e,t,r,o){if(t<0)$me(e,r,o);else{if(!r.pk())throw Y(new jt(R1+r.ve()+iI));l(r,69).uk().Ak(e,e.ei(),t,o)}}function qgn(e,t){var r;if(r=iL(e.Ah(),t),ae(r,104))return l(r,20);throw Y(new jt(R1+t+"' is not a valid reference"))}function ms(e){var t;return Array.isArray(e)&&e.Rm===fe?Ab(rc(e))+"@"+(t=Rr(e)>>>0,t.toString(16)):e.toString()}function Vgn(e,t){return e.h==EL&&e.m==0&&e.l==0?(t&&(O1=Ua(0,0,0)),Pnt((m_(),YEe))):(t&&(O1=Ua(e.l,e.m,e.h)),Ua(0,0,0))}function Wgn(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 Tgt(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 y1e(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 a1e(e,t,r,o)}function Vj(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw Y(new jt("Node "+t+" not part of edge "+e))}function Kgn(e){return e.e==null?e:(!e.c&&(e.c=new bJ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function Ygn(e){return e.k!=(zt(),Xr)?!1:fE(new Et(null,new Zw(new $t(qt(Or(e).a.Jc(),new L)))),new PBe)}function $u(e){var t;if(e.b){if($u(e.b),e.b.d!=e.c)throw Y(new $c)}else e.d.dc()&&(t=l(e.f.c.xc(e.e),18),t&&(e.d=t))}function Jgn(e){qw();var t,r,o,a;for(t=e.o.b,o=l(l(wr(e.r,(He(),dn)),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a=r.e,a.b+=t}function Xgn(e,t){var r,o,a;for(o=CTn(e,t),a=o[o.length-1]/2,r=0;r=a)return t.c+r;return t.c+t.b.gc()}function v1e(e,t,r,o,a){var c,f,p;for(f=a;t.b!=t.c;)c=l(CS(t),9),p=l(ks(c,o).Xb(0),12),e.d[p.p]=f++,Ot(r.c,p);return f}function cC(e){var t;this.a=(t=l(e.e&&e.e(),10),new Hc(t,l(Gl(t,t.length),10),0)),this.b=we(Ri,Rt,1,this.a.a.length,5,1)}function E1e(e){cY(),this.c=Wl(Z(X(lCn,1),Rt,837,0,[MIt])),this.b=new hn,this.a=e,Jn(this.b,TB,1),Da(PIt,new mXe(this))}function ic(){ic=K,gD=new bO(_d,0),DI=new bO("FIRST",1),xp=new bO(hSt,2),MI=new bO("LAST",3),gm=new bO(pSt,4)}function lC(){lC=K,kI=new l8("LAYER_SWEEP",0),HSe=new l8("MEDIAN_LAYER_SWEEP",1),aD=new l8(UX,2),zSe=new l8(_d,3)}function Wj(){Wj=K,Pxe=new Jq("ASPECT_RATIO_DRIVEN",0),Ine=new Jq("MAX_SCALE_DRIVEN",1),Mxe=new Jq("AREA_DRIVEN",2)}function Kj(){Kj=K,Cre=new T8(nve,0),s3e=new T8("GROUP_DEC",1),u3e=new T8("GROUP_MIXED",2),a3e=new T8("GROUP_INC",3)}function gp(){gp=K,Tre=new v8(qC,0),GD=new v8("POLYLINE",1),Ek=new v8("ORTHOGONAL",2),WT=new v8("SPLINES",3)}function S1e(){S1e=K,u6t=new cr(Kve),Mke=(zP(),Vne),a6t=new pt(Yve,Mke),s6t=new pt(Jve,50),o6t=new pt(Xve,(Dt(),!0))}function Zgn(e){var t,r,o,a,c;return c=Pbe(e),r=aO(e.c),o=!r,o&&(a=new Eb,Kl(c,"knownLayouters",a),t=new WXe(a),lo(e.c,t)),c}function T1e(e,t){var r,o,a,c,f,p;for(o=0,r=0,c=t,f=0,p=c.length;f0&&(o+=a,++r);return r>1&&(o+=e.d*(r-1)),o}function A1e(e){var t,r,o;for(o=new Xp,o.a+="[",t=0,r=e.gc();t0&&(Yt(t-1,e.length),e.charCodeAt(t-1)==58)&&!sY(e,O4,L4))}function _1e(e,t){var r;return me(e)===me(t)?!0:ae(t,92)?(r=l(t,92),e.e==r.e&&e.d==r.d&&zln(e,r.a)):!1}function WS(e){switch(He(),e.g){case 4:return Wt;case 1:return Qt;case 3:return dn;case 2:return Kt;default:return Is}}function e1n(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 GA(),y2e}function x0(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t))}function Agt(e,t){JA();var r,o,a,c;for(o=hdt(e),a=t,g_(o,0,o.length,a),r=0;r3;)a*=10,--c;e=(e+(a>>1))/a|0}return o.i=e,!0}function a1n(e){var t,r,o;return e.e==0?0:(t=e.d<<5,r=e.a[e.d-1],e.e<0&&(o=Aht(e),o==e.d-1&&(--r,r=r|0)),t-=Q6(r),t)}function u1n(e){var t,r,o;return e>5,t=e&31,o=we(Rn,Qn,30,r+1,15,1),o[r]=1<0&&(t.lengthe.i&&ii(t,e.i,null),t}function h1n(e,t,r){var o,a;return o=ue(e.p[t.i.p])+ue(e.d[t.i.p])+t.n.b+t.a.b,a=ue(e.p[r.i.p])+ue(e.d[r.i.p])+r.n.b+r.a.b,a-o}function Ur(e,t){var r,o,a;if(r=(e.i==null&&Ff(e),e.i),o=t.Jj(),o!=-1){for(a=r.length;o0?(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=iwt(e,a,o,t),r!=-1):!1}function Jj(e){var t,r,o,a;for(a=0,r=0,o=e.length;r=0;--o)for(t=r[o],a=0;a0&&(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r)?r.kd():null}function Mgt(e,t){var r,o,a;return ae(t,45)?(r=l(t,45),o=r.jd(),a=py(e.Pc(),o),rp(a,r.kd())&&(a!=null||e.Pc()._b(o))):!1}function Pa(e,t,r){var o,a,c;return e.Nj()?(o=e.i,c=e.Oj(),L6(e,o,t),a=e.Gj(3,null,t,o,c),r?r.lj(a):r=a):L6(e,e.i,t),r}function y1n(e,t,r){var o,a;return o=new cp(e.e,4,10,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function v1n(e,t,r){var o,a;return o=new cp(e.e,3,10,null,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),gg(e,t),!1),r?r.lj(o):r=o,r}function Pgt(e){wy();var t;return(e.q?e.q:(At(),At(),xh))._b((Be(),ow))?t=l(F(e,ow),205):t=l(F(ji(e),zI),205),t}function v1(e){jf();var t,r;return r=Ln(e),t=Ln(Rb(e,32)),t!=0?new act(r,t):r>10||r<0?new ap(1,r):nxt[r]}function jgt(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 Fgt(e,t,r){Nft(),$Ze.call(this),this.a=Yw(_xt,[Pe,wwe],[599,219],0,[b$,tee],2),this.c=new wS,this.g=e,this.f=t,this.d=r}function $gt(e){this.e=we(Rn,Qn,30,e.length,15,1),this.c=we(uu,Ad,30,e.length,16,1),this.b=we(uu,Ad,30,e.length,16,1),this.f=0}function E1n(e){var t,r;for(e.j=we(Ki,Jo,30,e.p.c.length,15,1),r=new V(e.p);r.a>5,t&=31,a=e.d+r+(t==0?0:1),o=we(Rn,Qn,30,a,15,1),Swn(o,e.a,r,t),c=new Ob(e.e,a,o),F3(c),c}function $_(e,t,r){var o,a,c;for(a=null,c=e.b;c;){if(o=e.a.Le(t,c.d),r&&o==0)return c;o>=0?c=c.a[1]:(a=c,c=c.a[0])}return a}function B6(e,t,r){var o,a,c;for(a=null,c=e.b;c;){if(o=e.a.Le(t,c.d),r&&o==0)return c;o<=0?c=c.a[0]:(a=c,c=c.a[1])}return a}function Ggt(e,t,r){var o,a,c,f;for(a=l(Ht(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 sc(){sc=K,XD=new S8("PORTS",0),xm=new S8("PORT_LABELS",1),JD=new S8("NODE_LABELS",2),hv=new S8("MINIMUM_SIZE",3)}function bp(){bp=K,B1=new f8(_d,0),f_e=new f8("NODES_AND_EDGES",1),Bte=new f8("PREFER_EDGES",2),Ute=new f8("PREFER_NODES",3)}function N1n(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))>0}function P1e(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))<0}function Ygt(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))<=0}function j1e(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 F1e(e,t,r,o,a,c){this.a=e,this.c=t,this.b=r,this.f=o,this.d=a,this.e=c,this.c>0&&this.b>0&&(this.g=sP(this.c,this.b,this.a))}function C1n(e,t){var r=e.a,o;t=String(t),r.hasOwnProperty(t)&&(o=r[t]);var a=(MK(),zQ)[typeof o],c=a?a(o):n1e(typeof o);return c}function B_(e){var t,r,o;if(o=null,t=qf in e.a,r=!t,r)throw Y(new xf("Every element must have an id."));return o=nT(op(e,qf)),o}function N0(e){var t,r;for(r=_mt(e),t=null;e.c==2;)dr(e),t||(t=(fr(),fr(),new b3(2)),em(t,r),r=t),r.Hm(_mt(e));return r}function Qj(e,t){var r,o,a;return e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r?(qft(e,r),r.kd()):null}function Jgt(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 I1n(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw Y(new jt("Input edge is not connected to the input port."))}function Pf(e,t){if(e.a<0)throw Y(new es("Did not call before(...) or after(...) before calling add(...)."));return Dde(e,e.a,t),e}function Zgt(e,t){var r,o,a;if(e.c)Ub(e.c,t);else for(r=t-ec(e),a=new V(e.a);a.a=c?($pn(e,t),-1):(Fpn(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:Rr(e)-Rr(t)}function e1t(e,t){var r;return me(t)===me(e)?!0:!ae(t,24)||(r=l(t,24),r.gc()!=e.gc())?!1:e.Hc(r)}function e7(e,t){return Mt(e),t==null?!1:wt(e,t)?!0:e.length==t.length&&wt(e.toLowerCase(),t.toLowerCase())}function my(e){var t,r;return Ea(e,-129)>0&&Ea(e,128)<0?($ot(),t=Ln(e)+128,r=n2e[t],!r&&(r=n2e[t]=new uce(e)),r):new uce(e)}function YS(){YS=K,TI=new a8(_d,0),q2e=new a8("INSIDE_PORT_SIDE_GROUPS",1),gee=new a8("GROUP_MODEL_ORDER",2),bee=new a8(PX,3)}function t7(e){var t,r,o;if(o=e.Gh(),!o)for(t=0,r=e.Mh();r;r=r.Mh()){if(++t>EX)return r.Nh();if(o=r.Gh(),o||r==e)break}return o}function P1n(e){var t;return e.b||ten(e,(t=crn(e.e,e.a),!t||!wt(XZ,Td((!t.b&&(t.b=new Zu((_t(),Oo),zs,t)),t.b),"qualified")))),e.c}function j1n(e){var t,r;for(r=new V(e.a.b);r.a2e3&&(V_t=e,c$=b.setTimeout(uen,10))),u$++==0?(ffn((Wce(),VEe)),!0):!1}function K1n(e,t,r){var o;(pxt?(e1n(e),!0):gxt||mxt?(GA(),!0):bxt&&(GA(),!1))&&(o=new eot(t),o.b=r,eyn(e,o))}function gY(e,t){var r;r=!e.A.Gc((sc(),xm))||e.q==(qi(),fa),e.u.Gc((xu(),Rp))?r?NNn(e,t):pEt(e,t):e.u.Gc(K1)&&(r?Jkn(e,t):CEt(e,t))}function o1t(e){var t;me(ve(e,(_n(),h2)))===me((pp(),cU))&&(Br(e)?(t=l(ve(Br(e),h2),348),Vn(e,h2,t)):Vn(e,h2,T4))}function Y1n(e,t,r){var o,a;JY(e.e,t,r,(He(),Kt)),JY(e.i,t,r,Qt),e.a&&(a=l(F(t,(Ie(),mr)),12),o=l(F(r,mr),12),PW(e.g,a,o))}function s1t(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 J1n(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 X1n(e,t,r){var o,a,c,f;return c=t.j,f=r.j,c!=f?c.g-f.g:(o=e.f[t.p],a=e.f[r.p],o==0&&a==0?0:o==0?-1:a==0?1:yr(o,a))}function a1t(e){var t;this.d=new je,this.j=new ro,this.g=new ro,t=e.g.b,this.f=l(F(ji(t),(Be(),xc)),87),this.e=ue(le(i7(t,ev)))}function u1t(e){this.d=new je,this.e=new d1,this.c=we(Rn,Qn,30,(He(),Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,15,1),this.b=e}function G1e(e,t,r){var o;switch(o=r[e.g][t],e.g){case 1:case 3:return new Me(0,o);case 2:case 4:return new Me(o,0);default:return null}}function Z1n(e,t){var r;if(r=pE(e.o,t),r==null)throw Y(new xf("Node did not exist in input."));return zme(e,t),vJ(e,t),Lme(e,t,r),null}function c1t(e,t,r){var o,a;a=l(JO(t.f),207);try{a.kf(e,r),whe(t.f,a)}catch(c){throw c=ci(c),ae(c,102)?(o=c,Y(o)):Y(c)}}function l1t(e,t,r){var o,a,c,f,p,m;return o=null,p=B0e(W3(),t),c=null,p&&(a=null,m=F0e(p,r),f=null,m!=null&&(f=e.of(p,m)),a=f,c=a),o=c,o}function bY(e,t,r,o){var a;if(a=e.length,t>=a)return a;for(t=t>0?t:0;to&&ii(t,o,null),t}function d1t(e,t){var r,o;for(o=e.a.length,t.lengtho&&ii(t,o,null),t}function Q1n(e){var t;if(e==null)return null;if(t=zEn(Ta(e,!0)),t==null)throw Y(new dq("Invalid hexBinary value: '"+e+"'"));return t}function n7(e,t,r){var o;t.a.length>0&&(Fe(e.b,new hot(t.a,r)),o=t.a.length,0o&&(t.a+=crt(we(al,Bf,30,-o,15,1))))}function f1t(e,t,r){var o,a,c;if(!r[t.d])for(r[t.d]=!0,a=new V(wE(t));a.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(a):sJ(e,o)):r<0?sJ(e,o):l(o,69).uk().zk(e,e.ei(),r)}function b1t(e){var t,r,o;for(o=(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),e.o),r=o.c.Jc();r.e!=r.i.gc();)t=l(r.Wj(),45),t.kd();return s6(o)}function Ge(e){var t;if(ae(e.a,4)){if(t=$1e(e.a),t==null)throw Y(new es(fTt+e.b+"'. "+dTt+(np(u5),u5.k)+eEe));return t}else return e.a}function cbn(e){var t;if(e==null)return null;if(t=PNn(Ta(e,!0)),t==null)throw Y(new dq("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),ae(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function vY(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ci(r),ae(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function r7(e){var t,r,o,a;for(a=0,r=0,o=e.length;r=64&&t<128&&(a=Of(a,fh(1,t-64)));return a}function i7(e,t){var r,o;return o=null,gr(e,(_n(),qT))&&(r=l(F(e,qT),105),r.nf(t)&&(o=r.mf(t))),o==null&&ji(e)&&(o=F(ji(e),t)),o}function lbn(e,t){var r;return r=l(F(e,(Be(),ss)),79),gV(t,Zkt)?r?tc(r):(r=new Du,Te(e,ss,r)):r&&Te(e,ss,null),r}function dbn(e,t){var r,o,a;for(a=new La(t.gc()),o=t.Jc();o.Ob();)r=l(o.Pb(),295),r.c==r.f?K_(e,r,r.c):Cyn(e,r)||Ot(a.c,r);return a}function m1t(e,t){var r,o,a;for(r=e.o,a=l(l(wr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.e.a=pmn(o,r.a),o.e.b=r.b*ue(le(o.b.mf(m$)))}function fbn(e,t){var r,o,a,c;return a=e.k,r=ue(le(F(e,(Ie(),nw)))),c=t.k,o=ue(le(F(t,nw))),c!=(zt(),mi)?-1:a!=mi?1:r==o?0:rr.b)return!0}return!1}function v1t(e){var t;return t=new Zg,t.a+="n",e.k!=(zt(),Xr)&&zn(zn((t.a+="(",t),vV(e.k).toLowerCase()),")"),zn((t.a+="_",t),z6(e)),t.a}function hC(){hC=K,o_e=new mO(nve,0),Fte=new mO(UX,1),$te=new mO("LINEAR_SEGMENTS",2),VI=new mO("BRANDES_KOEPF",3),WI=new mO(ISt,4)}function JS(){JS=K,DB=new p8("P1_TREEIFICATION",0),e4=new p8("P2_NODE_ORDERING",1),t4=new p8("P3_NODE_PLACEMENT",2),n4=new p8(FSt,3)}function XS(e,t,r,o){var a;return r>=0?e.Ph(t,r,o):(e.Mh()&&(o=(a=e.Ch(),a>=0?e.xh(o):e.Mh().Qh(e,-1-a,null,o))),e.zh(t,r,o))}function q1e(e,t){switch(t){case 7:!e.e&&(e.e=new Tt(Ir,e,7,4)),vn(e.e);return;case 8:!e.d&&(e.d=new Tt(Ir,e,8,5)),vn(e.d);return}I1e(e,t)}function Vn(e,t,r){return r==null?(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),Qj(e.o,t)):(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),V6(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),ae(o,113)?Y(new Ia("Can't get element "+t)):Y(o)}}function E1t(e,t){var r;switch(r=l(Wo(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 ybn(e){var t;t=e.a;do t=l(en(new $t(qt(si(t).a.Jc(),new L))),17).c.i,t.k==(zt(),gi)&&e.b.Ec(t);while(t.k==(zt(),gi));e.b=oc(e.b)}function S1t(e,t){var r,o,a;for(a=e,o=new $t(qt(si(t).a.Jc(),new L));an(o);)r=l(en(o),17),r.c.i.c&&(a=b.Math.max(a,r.c.i.c.p));return a}function vbn(e,t){var r,o,a;for(a=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a+=r.d.d+r.b.Kf().b+r.d.a,o.Ob()&&(a+=e.w);return a}function Ebn(e,t){var r,o,a;for(a=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a+=r.d.b+r.b.Kf().a+r.d.c,o.Ob()&&(a+=e.w);return a}function T1t(e){var t,r,o,a;if(o=0,a=Ay(e),a.c.length==0)return 1;for(r=new V(a);r.a=0?e.Ih(f,r,!0):O0(e,c,r)):l(c,69).uk().wk(e,e.ei(),a,r,o)}function Abn(e,t,r,o){var a,c;c=t.nf((_n(),g2))?l(t.mf(g2),24):e.j,a=bgn(c),a!=(eF(),nee)&&(r&&!j1e(a)||Ybe(GEn(e,a,o),t))}function EY(e,t){return zi(e)?!!$_t[t]:e.Qm?!!e.Qm[t]:Uw(e)?!!F_t[t]:Bw(e)?!!j_t[t]:!1}function _bn(e){switch(e.g){case 1:return A0(),eD;case 3:return A0(),QL;case 2:return A0(),iee;case 4:return A0(),ree;default:return null}}function xbn(e,t,r){if(e.e)switch(e.b){case 1:jan(e.c,t,r);break;case 0:Fan(e.c,t,r)}else Dct(e.c,t,r);e.a[t.p][r.p]=e.c.i,e.a[r.p][t.p]=e.c.e}function _1t(e){var t,r;if(e==null)return null;for(r=we(Nh,Pe,201,e.length,0,2),t=0;tc?1:0):0}function wy(){wy=K,xB=new d8(_d,0),Pte=new d8("PORT_POSITION",1),a2=new d8("NODE_SIZE_WHERE_SPACE_PERMITS",2),s2=new d8("NODE_SIZE",3)}function mh(){mh=K,are=new s3("AUTOMATIC",0),jD=new s3(hT,1),FD=new s3(pT,2),nU=new s3("TOP",3),eU=new s3(vwe,4),tU=new s3(px,5)}function EE(e,t,r){var o,a;if(a=e.gc(),t>=a)throw Y(new Ww(t,a));if(e.Qi()&&(o=e.bd(r),o>=0&&o!=t))throw Y(new jt(GL));return e.Vi(t,r)}function gg(e,t){var r,o,a;if(a=abt(e,t),a>=0)return a;if(e.ml()){for(o=0;o0||e==(oq(),MQ)||t==(sq(),PQ))throw Y(new jt("Invalid range: "+Lct(e,t)))}function W1e(e,t,r,o){Q_();var a,c;for(a=0,c=0;c0),(t&-t)==t)return go(t*Bu(e,31)*4656612873077393e-25);do r=Bu(e,31),o=r%t;while(r-o+(t-1)<0);return go(o)}function Nbn(e,t){var r,o,a;for(r=o0(new Tb,e),a=new V(t);a.a1&&(c=Nbn(e,t)),c}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 CY(e,t){if(e==null)throw Y(new uS("null key in entry: null="+t));if(t==null)throw Y(new uS("null value in entry: "+e+"=null"))}function L1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[WK(e.a[0],t),WK(e.a[1],t),WK(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function D1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[$j(e.a[0],t),$j(e.a[1],t),$j(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function X1e(e,t,r){AS(l(F(t,(Be(),Zr)),103))||(ape(e,t,bg(t,r)),ape(e,t,bg(t,(He(),dn))),ape(e,t,bg(t,Wt)),At(),xi(t.j,new mJe(e)))}function M1t(e){var t,r;for(e.c||Hxn(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 Jbn(e){var t;return e==null?null:new o1((t=Ta(e,!0),t.length>0&&(Yt(0,t.length),t.charCodeAt(0)==43)?(Yt(1,t.length+1),t.substr(1)):t))}function Q1e(e,t,r,o,a,c,f,p){var m,y;o&&(m=o.a[0],m&&Q1e(e,t,r,m,a,c,f,p),FY(e,r,o.d,a,c,f,p)&&t.Ec(o),y=o.a[1],y&&Q1e(e,t,r,y,a,c,f,p))}function pC(e,t){var r,o,a,c;for(c=e.gc(),t.lengthc&&ii(t,c,null),t}function Xbn(e,t){var r,o;if(o=e.gc(),t==null){for(r=0;r0&&(m+=a),y[v]=f,f+=p*(m+o)}function imn(e){var t;for(t=0;t0?e.c:0),++a;e.b=o,e.d=c}function W1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[K1e(e,(Sd(),Bs),t),K1e(e,$a,t),K1e(e,Us,t)]),e.f&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function K1t(e){var t;gr(e,(Be(),iw))&&(t=l(F(e,iw),24),t.Gc((Ty(),ad))?(t.Kc(ad),t.Ec(ud)):t.Gc(ud)&&(t.Kc(ud),t.Ec(ad)))}function Y1t(e){var t;gr(e,(Be(),iw))&&(t=l(F(e,iw),24),t.Gc((Ty(),ld))?(t.Kc(ld),t.Ec(Il)):t.Gc(Il)&&(t.Kc(Il),t.Ec(ld)))}function MY(e,t,r,o){var a,c,f,p;return e.a==null&&iyn(e,t),f=t.b.j.c.length,c=r.d.p,p=o.d.p,a=p-1,a<0&&(a=f-1),c<=a?e.a[a]-e.a[c]:e.a[f-1]-e.a[c]+e.a[a]}function smn(e){var t;for(t=0;t0&&(a.b+=t),a}function h7(e,t){var r,o,a;for(a=new ro,o=e.Jc();o.Ob();)r=l(o.Pb(),37),ex(r,0,a.b),a.b+=r.f.b+t,a.a=b.Math.max(a.a,r.f.a);return a.a>0&&(a.a+=t),a}function X1t(e,t){var r,o;if(t.length==0)return 0;for(r=dW(e.a,t[0],(He(),Kt)),r+=dW(e.a,t[t.length-1],Qt),o=0;o>16==6?e.Cb.Qh(e,5,Ld,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function fmn(e){l_();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 hmn(e){var t;return t=(rht(),X_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 Q1t(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=Pge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),cht(e,t,o),e.a=t,e.b=0):Mw(e.a,r),e.c=o)}function pmn(e,t){var r;return r=e.b,r.nf((_n(),zu))?r.$f()==(He(),Kt)?-r.Kf().a-ue(le(r.mf(zu))):t+ue(le(r.mf(zu))):r.$f()==(He(),Kt)?-r.Kf().a:t}function z6(e){var t;return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:(t=yW(e),t??""+(e.c?_s(e.c.a,e,0):-1))}function p7(e){var t;return e.f.c.length!=0&&l(ze(e.f,0),70).a?l(ze(e.f,0),70).a:(t=yW(e),t??""+(e.i?_s(e.i.j,e,0):-1))}function gmn(e,t){var r,o;if(t<0||t>=e.gc())return null;for(r=t;r0?e.c:0),a=b.Math.max(a,t.d),++o;e.e=c,e.b=a}function bmn(e){var t,r;if(!e.b)for(e.b=$P(l(e.f,127).jh().i),r=new tn(l(e.f,127).jh());r.e!=r.i.gc();)t=l(rn(r),158),Fe(e.b,new cq(t));return e.b}function mmn(e,t){var r,o,a;if(t.dc())return JA(),JA(),c5;for(r=new git(e,t.gc()),a=new tn(e);a.e!=a.i.gc();)o=rn(a),t.Gc(o)&&Tn(r,o);return r}function nbe(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),e.o):(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),s6(e.o)):s7(e,t,r,o)}function jY(e){var t,r;if(e.rb)for(t=0,r=e.rb.i;t>22),a+=o>>22,a<0)?!1:(e.l=r&Hu,e.m=o&Hu,e.h=a&Ep,!0)}function FY(e,t,r,o,a,c,f){var p,m;return!(t.Re()&&(m=e.a.Le(r,o),m<0||!a&&m==0)||t.Se()&&(p=e.a.Le(r,c),p>0||!f&&p==0))}function Emn(e,t){N_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return oY(t,FSe)-oY(e,FSe);case 4:return oY(e,jSe)-oY(t,jSe)}return 0}function Smn(e){switch(e.g){case 0:return zee;case 1:return Gee;case 2:return qee;case 3:return Vee;case 4:return Y$;case 5:return Wee;default:return null}}function os(e,t,r){var o,a;return o=(a=new rq,Yb(a,t),Ma(a,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),a),a),cg(o,0),cy(o,1),pg(o,!0),hg(o,!0),o}function ZS(e,t){var r,o;if(t>=e.i)throw Y(new oV(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 ebt(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Tmn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.ar.a.c.length))throw Y(new jt("index must be >= 0 and <= layer node count"));e.c&&Xa(e.c.a,e),e.c=r,r&&Nb(r.a,t,e)}function ubt(e,t){this.c=new hn,this.a=e,this.b=t,this.d=l(F(e,(Ie(),t2)),317),me(F(e,(Be(),LAe)))===me((l6(),J$))?this.e=new LZe:this.e=new OZe}function $Y(e,t){var r,o;r=e.dd(t);try{return o=r.Pb(),r.Qb(),o}catch(a){throw a=ci(a),ae(a,113)?Y(new Ia("Can't remove element "+t)):Y(a)}}function Imn(e,t){var r,o,a;if(o=new q9,a=new Lge(o.q.getFullYear()-k1,o.q.getMonth(),o.q.getDate()),r=N_n(e,t,a),r==0||r0?t:0),++r;return new Me(o,a)}function Lmn(e,t,r){var o,a;switch(a=e.o,o=e.d,t.g){case 1:return-o.d-r;case 3:return a.b+o.a+r;case 2:return a.a+o.c+r;case 4:return-o.b-r;default:return 0}}function sbe(e,t,r,o){var a,c,f,p;for(Oi(t,l(o.Xb(0),26)),p=o.hd(1,o.gc()),c=l(r.Kb(t),22).Jc();c.Ob();)a=l(c.Pb(),17),f=a.c.i==t?a.d.i:a.c.i,sbe(e,f,r,p)}function lbt(e){var t;return t=new hn,gr(e,(Ie(),ate))?l(F(e,ate),93):(ei(lr(new Et(null,new St(e.j,16)),new tBe),new VYe(t)),Te(e,ate,t),t)}function Dmn(e,t,r){var o;r.Tg("AbsolutPlacer",1),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0&&(o=l(ve(t,(wh(),h4)),19),va(o,o.i-r0t(e,o)),nmt(e,o)),r.Ug()}function gC(e,t){var r,o;return o=null,e.nf((_n(),qT))&&(r=l(e.mf(qT),105),r.nf(t)&&(o=r.mf(t))),o==null&&e.Rf()&&(o=e.Rf().mf(t)),o==null&&(o=Ge(t)),o}function abe(e,t){var r,o;return e.Db>>16==6?e.Cb.Qh(e,6,Ir,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(Qs(),bU)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function ube(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,1,t5,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(Qs(),p3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function cbe(e,t){var r,o;return e.Db>>16==9?e.Cb.Qh(e,9,En,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(Qs(),b3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function dbt(e,t){var r,o;return e.Db>>16==5?e.Cb.Qh(e,9,SU,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(_t(),Lg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function fbt(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,6,Ld,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(_t(),Mg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function lbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,0,r5,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(_t(),Og)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function dbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,12,En,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(Qs(),h3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Mmn(e,t,r){var o,a,c;for(r<0&&(r=0),c=e.i,a=r;aEX)return z_(e,o);if(o==e)return!0}}return!1}function jmn(e){switch(z8(),e.q.g){case 5:n0t(e,(He(),Wt)),n0t(e,dn);break;case 4:cwt(e,(He(),Wt)),cwt(e,dn);break;default:wEt(e,(He(),Wt)),wEt(e,dn)}}function Fmn(e){switch(z8(),e.q.g){case 5:S0t(e,(He(),Qt)),S0t(e,Kt);break;case 4:m1t(e,(He(),Qt)),m1t(e,Kt);break;default:yEt(e,(He(),Qt)),yEt(e,Kt)}}function $mn(e){var t,r;t=l(F(e,(ed(),ykt)),15),t?(r=t.a,r==0?Te(e,(h1(),E$),new iY):Te(e,(h1(),E$),new WP(r))):Te(e,(h1(),E$),new WP(1))}function Bmn(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 Umn(e,t){switch(e.g){case 0:return t==(ic(),xp)?U$:H$;case 1:return t==(ic(),xp)?U$:oD;case 2:return t==(ic(),xp)?oD:H$;default:return oD}}function q6(e,t){var r,o,a;for(Xa(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=CZ,o=new V(e.a);o.a>16==11?e.Cb.Qh(e,10,En,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(Qs(),g3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function hbt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,11,Ol,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(_t(),Dg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function pbt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,12,Ll,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||(_t(),yv)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function gbt(e,t){var r,o,a,c,f;if(t)for(a=t.a.length,r=new Ib(a),f=(r.b-r.a)*r.c<0?(r1(),eb):new s1(r);f.Ob();)c=l(f.Pb(),15),o=f_(t,c.a),o&&rwt(e,o)}function Kmn(){yle();var e,t;for(T3n((a1(),Ut)),h3n(Ut),jY(Ut),I3e=(_t(),bf),t=new V($3e);t.a>19,y=t.h>>19,m!=y?y-m:(a=e.h,p=t.h,a!=p?a-p:(o=e.m,f=t.m,o!=f?o-f:(r=e.l,c=t.l,r-c)))}function bbt(e,t,r){var o,a,c,f,p;for(a=e[r.g],p=new V(t.d);p.a0?e.b:0),++r;t.b=o,t.e=a}function mbt(e){var t,r,o;if(o=e.b,Bet(e.i,o.length)){for(r=o.length*2,e.b=we(jQ,yL,309,r,0,1),e.c=we(jQ,yL,309,r,0,1),e.f=r-1,e.i=0,t=e.a;t;t=t.c)Z6(e,t,t);++e.g}}function mC(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 Jmn(e,t,r){var o;o=t.c.i,o.k==(zt(),gi)?(Te(e,(Ie(),Cd),l(F(o,Cd),12)),Te(e,Nl,l(F(o,Nl),12))):(Te(e,(Ie(),Cd),t.c),Te(e,Nl,r.d))}function Xmn(e,t,r){return r.Tg(jSt,1),M3(e.b),pc(e.b,(JS(),DB),DB),pc(e.b,e4,e4),pc(e.b,t4,t4),pc(e.b,n4,n4),e.a=FC(e.b,t),F0n(e,t,r.dh(1)),r.Ug(),t}function G_(e,t,r){Z_();var o,a,c,f,p,m;return f=t/2,c=r/2,o=b.Math.abs(e.a),a=b.Math.abs(e.b),p=1,m=1,o>f&&(p=f/o),a>c&&(m=c/a),tp(e,b.Math.min(p,m)),e}function Zmn(){q7();var e,t;try{if(t=l(Tbe((n1(),Dl),Dx),2092),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new KGe}function Qmn(){q7();var e,t;try{if(t=l(Tbe((n1(),Dl),_l),2019),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new vqe}function e0n(){pdt();var e,t;try{if(t=l(Tbe((n1(),Dl),lm),2101),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new hVe}function t0n(e,t,r){var o,a;return a=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,a,t),r?r.lj(o):r=o),a!=t&&(t?r=ox(e,O7(e,t),r):r=ox(e,e.a,r)),r}function wbt(){q9.call(this),this.e=-1,this.a=!1,this.p=Qi,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=Qi}function n0n(e,t){var r,o,a;if(o=e.b.d.d,e.a||(o+=e.b.d.a),a=t.b.d.d,t.a||(a+=t.b.d.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function r0n(e,t){var r,o,a;if(o=e.b.b.d,e.a||(o+=e.b.b.a),a=t.b.b.d,t.a||(a+=t.b.b.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function i0n(e,t){var r,o,a;if(o=e.b.g.d,e.a||(o+=e.b.g.a),a=t.b.g.d,t.a||(a+=t.b.g.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function pbe(){pbe=K,jkt=Ra($n($n($n(new ui,(Vi(),da),(Zi(),TSe)),da,ASe),Ho,_Se),Ho,fSe),$kt=$n($n(new ui,da,oSe),da,hSe),Fkt=Ra(new ui,Ho,gSe)}function o0n(e){var t,r,o,a,c;for(t=l(F(e,(Ie(),RI)),93),c=e.n,o=t.Bc().Jc();o.Ob();)r=l(o.Pb(),319),a=r.i,a.c+=c.a,a.d+=c.b,r.c?Ywt(r):Jwt(r);Te(e,RI,null)}function s0n(e,t,r){var o,a;switch(a=e.b,o=a.d,t.g){case 1:return-o.d-r;case 2:return a.o.a+o.c+r;case 3:return a.o.b+o.a+r;case 4:return-o.b-r;default:return-1}}function ybt(e,t){var r,o;for(o=new V(t);o.a0&&(f=(c&sr)%e.d.length,a=mme(e,f,c,t),a)?(p=a.ld(r),p):(o=e.ak(c,t,r),e.c.Ec(o),null)}function mbe(e,t){var r,o,a,c;switch(fg(e,t).Il()){case 3:case 2:{for(r=CE(t),a=0,c=r.i;a=0;o--)if(wt(e[o].d,t)||wt(e[o].d,r)){e.length>=o+1&&e.splice(0,o+1);break}return e}function W6(e,t){var r;return gs(e)&&gs(t)&&(r=e/t,SL0&&(e.b+=2,e.a+=o):(e.b+=1,e.a+=b.Math.min(o,a))}function xbt(e,t){var r,o;if(o=!1,zi(t)&&(o=!0,RS(e,new Qw(In(t)))),o||ae(t,245)&&(o=!0,RS(e,(r=CV(l(t,245)),new E9(r)))),!o)throw Y(new lq(wEe))}function T0n(e,t,r,o){var a,c,f;return a=new cp(e.e,1,10,(f=t.c,ae(f,89)?l(f,29):(_t(),Ml)),(c=r.c,ae(c,89)?l(c,29):(_t(),Ml)),gg(e,t),!1),o?o.lj(a):o=a,o}function vbe(e){var t,r;switch(l(F(ji(e),(Be(),_Ae)),425).g){case 0:return t=e.n,r=e.o,new Me(t.a+r.a/2,t.b+r.b/2);case 1:return new So(e.n);default:return null}}function K6(){K6=K,X$=new i3(_d,0),tTe=new i3("LEFTUP",1),rTe=new i3("RIGHTUP",2),eTe=new i3("LEFTDOWN",3),nTe=new i3("RIGHTDOWN",4),Kee=new i3("BALANCED",5)}function A0n(e,t,r){var o,a,c;if(o=yr(e.a[t.p],e.a[r.p]),o==0){if(a=l(F(t,(Ie(),RT)),16),c=l(F(r,RT),16),a.Gc(r))return-1;if(c.Gc(t))return 1}return o}function _0n(e){switch(e.g){case 1:return new Eze;case 2:return new Sze;case 3:return new vze;case 0:return null;default:throw Y(new jt(PZ+(e.f!=null?e.f:""+e.g)))}}function Ebe(e,t,r){switch(t){case 1:!e.n&&(e.n=new ke(Rs,e,1,7)),vn(e.n),!e.n&&(e.n=new ke(Rs,e,1,7)),ti(e.n,l(r,18));return;case 2:v_(e,In(r));return}Uge(e,t,r)}function Sbe(e,t,r){switch(t){case 3:Ub(e,ue(le(r)));return;case 4:Hb(e,ue(le(r)));return;case 5:va(e,ue(le(r)));return;case 6:gu(e,ue(le(r)));return}Ebe(e,t,r)}function b7(e,t,r){var o,a,c;c=(o=new rq,o),a=Zd(c,t,null),a&&a.mj(),Ma(c,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),c),cg(c,0),cy(c,1),pg(c,!0),hg(c,!0)}function Tbe(e,t){var r,o,a;return r=e3(e.i,t),ae(r,244)?(a=l(r,244),a.wi()==null,a.ti()):ae(r,496)?(o=l(r,2016),a=o.b,a):null}function x0n(e,t,r,o){var a,c;return kn(t),kn(r),c=l(S3(e.d,t),15),eft(!!c,"Row %s not in %s",t,e.e),a=l(S3(e.b,r),15),eft(!!a,"Column %s not in %s",r,e.c),Qht(e,c.a,a.a,o)}function k0n(e){var t,r,o,a,c,f;for(r=null,a=e,c=0,f=a.length;c1||p==-1?(c=l(m,16),a.Wb(o1n(e,c))):a.Wb(AJ(e,l(m,57)))))}function D0n(e,t,r,o){get();var a=LQ;function c(){for(var f=0;f0)return!1;return!0}function j0n(e){switch(l(F(e.b,(Be(),wAe)),382).g){case 1:ei(Oa(bs(new Et(null,new St(e.d,16)),new YBe),new JBe),new XBe);break;case 2:wTn(e);break;case 0:uvn(e)}}function F0n(e,t,r){var o,a,c;for(o=r,!o&&(o=new sS),o.Tg("Layout",e.a.c.length),c=new V(e.a);c.aOZ)return r;a>-1e-6&&++r}return r}function w7(e,t,r){if(ae(t,273))return g2n(e,l(t,74),r);if(ae(t,278))return Hmn(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ds(Z(X(Ri,1),Rt,1,5,[t,r])))))}function y7(e,t,r){if(ae(t,273))return b2n(e,l(t,74),r);if(ae(t,278))return zmn(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ds(Z(X(Ri,1),Rt,1,5,[t,r])))))}function _be(e,t){var r;t!=e.b?(r=null,e.b&&(r=OP(e.b,e,-4,r)),t&&(r=XS(t,e,-4,r)),r=Ypt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function Ibt(e,t){var r;t!=e.f?(r=null,e.f&&(r=OP(e.f,e,-1,r)),t&&(r=XS(t,e,-1,r)),r=Jpt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,t,t))}function z0n(e,t,r,o){var a,c,f,p;return Ju(e.e)&&(a=t.Jk(),p=t.kd(),c=r.kd(),f=c1(e,1,a,p,c,a.Hk()?nx(e,a,c,ae(a,104)&&(l(a,20).Bb&Co)!=0):-1,!0),o?o.lj(f):o=f),o}function Rbt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Xp,t=r.Jc();t.Ob();)Vo(o,(Tr(),In(t.Pb()))),o.a+=" ";return aV(o,o.a.length-1)}function Obt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Xp,t=r.Jc();t.Ob();)Vo(o,(Tr(),In(t.Pb()))),o.a+=" ";return aV(o,o.a.length-1)}function G0n(e,t){var r,o,a,c,f;for(c=new V(t.a);c.a0&&co(e,e.length-1)==33)try{return t=X0t(yl(e,0,e.length-1)),t.e==null}catch(r){if(r=ci(r),!ae(r,33))throw Y(r)}return!1}function W0n(e,t,r){var o,a,c;switch(o=ji(t),a=Gj(o),c=new aa,As(c,t),r.g){case 1:Ii(c,P6(WS(a)));break;case 2:Ii(c,WS(a))}return Te(c,(Be(),Jy),le(F(e,Jy))),c}function xbe(e){var t,r;return t=l(en(new $t(qt(si(e.a).a.Jc(),new L))),17),r=l(en(new $t(qt(Or(e.a).a.Jc(),new L))),17),Ye(Ke(F(t,(Ie(),Ag))))||Ye(Ke(F(r,Ag)))}function yy(){yy=K,sD=new gO("ONE_SIDE",0),q$=new gO("TWO_SIDES_CORNER",1),V$=new gO("TWO_SIDES_OPPOSING",2),G$=new gO("THREE_SIDES",3),z$=new gO("FOUR_SIDES",4)}function Mbt(e,t){var r,o,a,c;for(c=new je,a=0,o=t.Jc();o.Ob();){for(r=Re(l(o.Pb(),15).a+a);r.a=e.f)break;Ot(c.c,r)}return c}function K0n(e){var t,r;for(r=new V(e.e.b);r.a0&&nbt(this,this.c-1,(He(),Qt)),this.c0&&e[0].length>0&&(this.c=Ye(Ke(F(ji(e[0][0]),(Ie(),yTe))))),this.a=we(l4t,Pe,2096,e.length,0,2),this.b=we(d4t,Pe,2097,e.length,0,2),this.d=new $pt}function Z0n(e){return e.c.length==0?!1:(at(0,e.c.length),l(e.c[0],17)).c.i.k==(zt(),gi)?!0:fE(Oa(new Et(null,new St(e,16)),new LUe),new IUe)}function Fbt(e,t){var r,o,a,c,f,p,m;for(p=Ay(t),c=t.f,m=t.g,f=b.Math.sqrt(c*c+m*m),a=0,o=new V(p);o.a=0?(r=W6(e,rF),o=dY(e,rF)):(t=Rb(e,1),r=W6(t,5e8),o=dY(t,5e8),o=Ao(fh(o,1),Gi(e,1))),Of(fh(o,32),Gi(r,$o))}function dwn(e,t,r,o){var a,c,f,p,m;for(a=null,c=0,p=new V(t);p.a1;t>>=1)t&1&&(o=dE(o,r)),r.d==1?r=dE(r,r):r=new i1t(jyt(r.a,r.d,we(Rn,Qn,30,r.d<<1,15,1)));return o=dE(o,r),o}function Mbe(){Mbe=K;var e,t,r,o;for(m2e=we(Ki,Jo,30,25,15,1),w2e=we(Ki,Jo,30,33,15,1),o=152587890625e-16,t=32;t>=0;t--)w2e[t]=o,o*=.5;for(r=1,e=24;e>=0;e--)m2e[e]=r,r*=.5}function bwn(e){var t,r;if(Ye(Ke(ve(e,(Be(),Ky))))){for(r=new $t(qt(mp(e).a.Jc(),new L));an(r);)if(t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,bm))))return!0}return!1}function Hbt(e){var t,r,o,a;for(t=new Ar,r=new Ar,a=An(e,0);a.b!=a.d.c;)o=l(Sn(a),12),o.e.c.length==0?Wr(r,o,r.c.b,r.c):Wr(t,o,t.c.b,t.c);return oc(t).Fc(r),t}function zbt(e,t){var r,o,a;pi(e.f,t)&&(t.b=e,o=t.c,_s(e.j,o,0)!=-1||Fe(e.j,o),a=t.d,_s(e.j,a,0)!=-1||Fe(e.j,a),r=t.a.b,r.c.length!=0&&(!e.i&&(e.i=new a1t(e)),Fhn(e.i,r)))}function mwn(e){var t,r,o,a,c;return r=e.c.d,o=r.j,a=e.d.d,c=a.j,o==c?r.p=0&&wt(e.substr(t,3),"GMT")||t>=0&&wt(e.substr(t,3),"UTC"))&&(r[0]=t+3),w0e(e,r,o)}function ywn(e,t){var r,o,a,c,f;for(c=e.g.a,f=e.g.b,o=new V(e.d);o.ar;c--)e[c]|=t[c-r-1]>>>f,e[c-1]=t[c-r-1]<0&&ua(e.g,t,e.g,t+o,p),f=r.Jc(),e.i+=o,a=0;a>4&15,c=e[o]&15,f[a++]=m3e[r],f[a++]=m3e[c];return Mf(f,0,f.length)}function Qa(e){var t,r;return e>=Co?(t=TL+(e-Co>>10&1023)&Ei,r=56320+(e-Co&1023)&Ei,String.fromCharCode(t)+(""+String.fromCharCode(r))):String.fromCharCode(e&Ei)}function Cwn(e,t){qw();var r,o,a,c;return a=l(l(wr(e.r,t),24),85),a.gc()>=2?(o=l(a.Jc().Pb(),116),r=e.u.Gc((xu(),k4)),c=e.u.Gc(KT),!o.a&&!r&&(a.gc()==2||c)):!1}function Wbt(e,t,r,o,a){var c,f,p;for(c=Uwt(e,t,r,o,a),p=!1;!c;)C7(e,a,!0),p=!0,c=Uwt(e,t,r,o,a);p&&C7(e,a,!1),f=DK(a),f.c.length!=0&&(e.d&&e.d.Fg(f),Wbt(e,a,r,o,f))}function S7(){S7=K,kne=new m8("NODE_SIZE_REORDERER",0),Ane=new m8("INTERACTIVE_NODE_REORDERER",1),xne=new m8("MIN_SIZE_PRE_PROCESSOR",2),_ne=new m8("MIN_SIZE_POST_PROCESSOR",3)}function T7(){T7=K,_re=new u3(_d,0),FNe=new u3("DIRECTED",1),BNe=new u3("UNDIRECTED",2),PNe=new u3("ASSOCIATION",3),$Ne=new u3("GENERALIZATION",4),jNe=new u3("DEPENDENCY",5)}function Iwn(e,t){var r;if(!Gd(e))throw Y(new es(PTt));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 Rwn(e,t,r){var o,a,c;return o=t.Jk(),c=t.kd(),a=o.Hk()?c1(e,4,o,c,null,nx(e,o,c,ae(o,104)&&(l(o,20).Bb&Co)!=0),!0):c1(e,o.rk()?2:1,o,c,o.gk(),-1,!0),r?r.lj(a):r=a,r}function V_(e,t){var r,o;for(Mt(t),o=e.b.c.length,Fe(e.b,t);o>0;){if(r=o,o=(o-1)/2|0,e.a.Le(ze(e.b,o),t)<=0)return nc(e.b,r,t),!0;nc(e.b,r,ze(e.b,o))}return nc(e.b,o,t),!0}function Fbe(e,t,r,o){var a,c;if(a=0,r)a=$j(e.a[r.g][t.g],o);else for(c=0;c=p)}function Kbt(e){switch(e.g){case 0:return new Fze;case 1:return new $ze;default:throw Y(new jt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function $be(e,t,r,o){var a;if(a=!1,zi(o)&&(a=!0,e_(t,r,In(o))),a||Bw(o)&&(a=!0,$be(e,t,r,o)),a||ae(o,245)&&(a=!0,Mb(t,r,l(o,245))),!a)throw Y(new lq(wEe))}function Lwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zu((_t(),Oo),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mu(),U3e).length;++o)if(wt(U3e[o],a))return o}return 0}function Dwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zu((_t(),Oo),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mu(),H3e).length;++o)if(wt(H3e[o],a))return o}return 0}function Ybt(e,t){var r,o,a,c;if(Mt(t),c=e.a.gc(),c0?1:0;c.a[a]!=r;)c=c.a[a],a=e.a.Le(r.d,c.d)>0?1:0;c.a[a]=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 jwn(e){var t,r,o,a;for(t=new je,r=we(uu,Ad,30,e.a.c.length,16,1),rhe(r,r.length),a=new V(e.a);a.a0&&Oyt((at(0,r.c.length),l(r.c[0],26)),e),r.c.length>1&&Oyt(l(ze(r,r.c.length-1),26),e),t.Ug()}function $wn(e){xu();var t,r;return t=xr(Rp,Z(X(lU,1),Ce,282,0,[K1])),!(T6(DP(t,e))>1||(r=xr(k4,Z(X(lU,1),Ce,282,0,[x4,KT])),T6(DP(r,e))>1))}function Ube(e,t){var r;r=wa((n1(),Dl),e),ae(r,496)?ns(Dl,e,new bnt(this,t)):ns(Dl,e,this),ZY(this,t),t==($A(),C3e)?(this.wb=l(this,2017),l(t,2019)):this.wb=(a1(),Ut)}function Bwn(e){var t,r,o;if(e==null)return null;for(t=null,r=0;rc}function Qbt(e,t){var r,o,a;if(zbe(e,t))return!0;for(o=new V(t);o.a=a||t<0)throw Y(new Ia(hQ+t+um+a));if(r>=a||r<0)throw Y(new Ia(pQ+r+um+a));return t!=r?o=(c=e.Aj(r),e.oj(t,c),c):o=e.vj(r),o}function tmt(e){var t,r,o;if(o=e,e)for(t=0,r=e.Bh();r;r=r.Bh()){if(++t>EX)return tmt(r);if(o=r,r==e)throw Y(new es("There is a cycle in the containment hierarchy of "+e))}return o}function Qd(e){var t,r,o;for(o=new qb(ja,"[","]"),r=e.Jc();r.Ob();)t=r.Pb(),up(o,me(t)===me(e)?"(this Collection)":t==null?tu:ms(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function zbe(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=K,_Nt=Z(X(Ro,1),ea,64,0,[(He(),Wt),Qt,dn]),ANt=Z(X(Ro,1),ea,64,0,[Qt,dn,Kt]),xNt=Z(X(Ro,1),ea,64,0,[dn,Kt,Wt]),kNt=Z(X(Ro,1),ea,64,0,[Kt,Wt,Qt])}function imt(e){var t,r,o,a,c,f,p,m,y;for(this.a=_1t(e),this.b=new je,r=e,o=0,a=r.length;oAV(e.d).c?(e.i+=e.g.c,fY(e.d)):AV(e.d).c>AV(e.g).c?(e.e+=e.d.c,fY(e.g)):(e.i+=qot(e.g),e.e+=qot(e.d),fY(e.g),fY(e.d))}function Ywn(e,t,r){var o,a,c,f;for(c=t.q,f=t.r,new Pb((vd(),U1),t,c,1),new Pb(U1,c,f,1),a=new V(r);a.ap&&(m=p/o),a>c&&(y=c/a),f=b.Math.min(m,y),e.a+=f*(t.a-e.a),e.b+=f*(t.b-e.b)}function Qwn(e,t,r,o,a){var c,f;for(f=!1,c=l(ze(r.b,0),19);s_n(e,t,c,o,a)&&(f=!0,$0n(r,c),r.b.c.length!=0);)c=l(ze(r.b,0),19);return r.b.c.length==0&&q6(r.j,r),f&&f7(t.q),f}function qbe(e,t,r,o){var a,c;return r==0?(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),q8(e.o,t,o)):(c=l(Nt((a=l(Vt(e,16),29),a||e.fi()),r),69),c.uk().yk(e,Ha(e),r-ln(e.fi()),t,o))}function ZY(e,t){var r;t!=e.sb?(r=null,e.sb&&(r=l(e.sb,52).Qh(e,1,I4,r)),t&&(r=l(t,52).Oh(e,1,I4,r)),r=i1e(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,4,t,t))}function umt(e,t){var r,o,a,c;if(t)a=fp(t,"x"),r=new NXe(e),y0(r.a,(Mt(a),a)),c=fp(t,"y"),o=new CXe(e),v0(o.a,(Mt(c),c));else throw Y(new xf("All edge sections need an end point."))}function cmt(e,t){var r,o,a,c;if(t)a=fp(t,"x"),r=new _Xe(e),E0(r.a,(Mt(a),a)),c=fp(t,"y"),o=new xXe(e),S0(o.a,(Mt(c),c));else throw Y(new xf("All edge sections need a start point."))}function eyn(e,t){var r,o,a,c,f,p,m;for(o=Npt(e),c=0,p=o.length;c>22-t,a=e.h<>22-t):t<44?(r=0,o=e.l<>44-t):(r=0,o=0,a=e.l<=yg?"error":o>=900?"warn":o>=800?"info":"log"),$st(r,e.a),e.b&&Vme(t,r,e.b,"Exception: ",!0))}function hmt(e,t){var r,o,a,c,f;for(a=t==1?hee:fee,o=a.a.ec().Jc();o.Ob();)for(r=l(o.Pb(),87),f=l(wr(e.f.c,r),24).Jc();f.Ob();)c=l(f.Pb(),49),Fe(e.b.b,l(c.b,84)),Fe(e.b.a,l(c.b,84).d)}function pmt(e,t,r,o){var a,c,f,p,m;switch(m=e.b,c=t.d,f=c.j,p=G1e(f,m.d[f.g],r),a=br(To(c.n),c.a),c.j.g){case 3:case 1:p.a+=a.a;break;case 2:p.b+=a.b;break;case 4:p.b+=a.b}Wr(o,p,o.c.b,o.c)}function iyn(e,t){var r,o,a,c;for(c=t.b.j,e.a=we(Rn,Qn,30,c.c.length,15,1),a=0,o=0;oe)throw Y(new jt("k must be smaller than n"));return t==0||t==e?1:e==0?0:wbe(e)/(wbe(t)*wbe(e-t))}function Vbe(e,t){var r,o,a,c;for(r=new uV(e);r.g==null&&!r.c?jhe(r):r.g==null||r.i!=0&&l(r.g[r.i-1],51).Ob();)if(c=l(I7(r),57),ae(c,176))for(o=l(c,176),a=0;a>4],t[r*2+1]=kU[c&15];return Mf(t,0,t.length)}function myn(e){var t,r,o;switch(o=e.c.length,o){case 0:return pW(),G_t;case 1:return t=l(Xmt(new V(e)),45),Dnn(t.jd(),t.kd());default:return r=l(Yd(e,we(dm,tF,45,e.c.length,0,1)),178),new vle(r)}}function bg(e,t){switch(t.g){case 1:return _S(e.j,(bu(),X2e));case 2:return _S(e.j,(bu(),Y2e));case 3:return _S(e.j,(bu(),Q2e));case 4:return _S(e.j,(bu(),eSe));default:return At(),At(),Io}}function wyn(e,t){var r,o,a;r=Don(t,e.e),o=l(Ht(e.g.f,r),15).a,a=e.a.c.length-1,e.a.c.length!=0&&l(ze(e.a,a),296).c==o?(++l(ze(e.a,a),296).a,++l(ze(e.a,a),296).b):Fe(e.a,new Wrt(o))}function T1(){T1=K,XRt=(_n(),GT),ZRt=Od,WRt=Am,KRt=b2,YRt=G1,VRt=g2,Exe=v4,JRt=cv,wne=(c0e(),MRt),yne=PRt,Txe=BRt,vne=zRt,Axe=URt,_xe=HRt,Sxe=jRt,HB=FRt,zB=$Rt,RD=GRt,xxe=qRt,vxe=DRt}function mmt(e,t){var r,o,a,c,f;if(e.e<=t||ycn(e,e.g,t))return e.g;for(c=e.r,o=e.g,f=e.r,a=(c-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 Eyn(e){var t,r,o,a;switch(a=e.i,t=a.b,o=a.j,r=a.g,a.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 Syn(e,t,r){var o,a,c;for(a=new $t(qt(Df(r).a.Jc(),new L));an(a);)o=l(en(a),17),!fo(o)&&!(!fo(o)&&o.c.i.c==o.d.i.c)&&(c=fwt(e,o,r,new jZe),c.c.length>1&&Ot(t.c,c))}function vmt(e,t,r,o,a){if(oo&&(e.a=o),e.ba&&(e.b=a),e}function Tyn(e){if(ae(e,144))return K2n(l(e,144));if(ae(e,236))return Zgn(l(e,236));if(ae(e,21))return nyn(l(e,21));throw Y(new jt(Mx+Qd(new Ds(Z(X(Ri,1),Rt,1,5,[e])))))}function Ayn(e,t,r,o,a){var c,f,p;for(c=!0,f=0;f>>a|r[f+o+1]<>>a,++f}return c}function Jbe(e,t,r,o){var a,c,f;if(t.k==(zt(),gi)){for(c=new $t(qt(si(t).a.Jc(),new L));an(c);)if(a=l(en(c),17),f=a.c.i.k,f==gi&&e.c.a[a.c.i.c.p]==o&&e.c.a[t.c.p]==r)return!0}return!1}function _yn(e,t,r){var o;r.Tg("YPlacer",1),e.a=ue(le(ve(t,(QS(),Pke)))),e.b=ue(le(ve(t,(_n(),Od)))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0&&(o=l(ve(t,(wh(),h4)),19),Swt(e,o,0)),r.Ug()}function xyn(e,t){var r,o,a,c;return t&=63,r=e.h&Ep,t<22?(c=r>>>t,a=e.m>>t|r<<22-t,o=e.l>>t|e.m<<22-t):t<44?(c=0,a=r>>>t-22,o=e.m>>t-22|e.h<<44-t):(c=0,a=0,o=r>>>t-44),Ua(o&Hu,a&Hu,c&Ep)}function Emt(e,t,r,o){var a;this.b=o,this.e=e==(Kb(),XI),a=t[r],this.d=Yw(uu,[Pe,Ad],[172,30],16,[a.length,a.length],2),this.a=Yw(Rn,[Pe,Qn],[54,30],15,[a.length,a.length],2),this.c=new Rbe(t,r)}function kyn(e){var t,r,o;for(e.k=new zhe((He(),Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,e.j.c.length),o=new V(e.j);o.a=r)return K_(e,t,o.p),!0;return!1}function _E(e,t,r,o){var a,c,f,p,m,y;for(f=r.length,c=0,a=-1,y=cft((Yt(t,e.length+1),e.substr(t)),(RV(),g2e)),p=0;pc&&_sn(y,cft(r[p],g2e))&&(a=p,c=m);return a>=0&&(o[0]=t+c),a}function Iyn(e,t,r){var o,a,c,f,p,m,y,v;c=e.d.p,p=c.e,m=c.r,e.g=new FO(m),f=e.d.o.c.p,o=f>0?p[f-1]:we(Nh,vg,9,0,0,1),a=p[f],y=fr?sme(e,r,"start index"):t<0||t>r?sme(t,r,"end index"):CC("end index (%s) must not be less than start index (%s)",Z(X(Ri,1),Rt,1,5,[Re(t),Re(e)]))}function xmt(e,t){var r,o,a,c;for(o=0,a=e.length;o0&&kmt(e,c,r));t.p=0}function Dyn(e){var t,r,o,a;for(t=Lb(zn(new fc("Predicates."),"and"),40),r=!0,a=new DN(e);a.b=0?e.hi(a):lme(e,o);else throw Y(new jt(R1+o.ve()+iI));else throw Y(new jt(WTt+t+KTt));else Jc(e,r,o)}function Xbe(e){var t,r;if(r=null,t=!1,ae(e,213)&&(t=!0,r=l(e,213).a),t||ae(e,266)&&(t=!0,r=""+l(e,266).a),t||ae(e,482)&&(t=!0,r=""+l(e,482).a),!t)throw Y(new lq(wEe));return r}function Zbe(e,t,r){var o,a,c,f,p,m;for(m=za(e.e.Ah(),t),o=0,p=e.i,a=l(e.g,123),f=0;f=e.d.b.c.length&&(t=new ra(e.d),t.p=o.p-1,Fe(e.d.b,t),r=new ra(e.d),r.p=o.p,Fe(e.d.b,r)),Oi(o,l(ze(e.d.b,o.p),26))}function jyn(e){var t,r,o,a;for(r=new Ar,mo(r,e.o),o=new L9;r.b!=0;)t=l(r.b==0?null:(un(r.b!=0),Vc(r,r.a.a)),504),a=_Et(e,t,!0),a&&Fe(o.a,t);for(;o.a.c.length!=0;)t=l(Kge(o),504),_Et(e,t,!1)}function Ze(e){var t;this.c=new Ar,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=K,Bke=new gS(qC,0),Ai=new gS("BOOLEAN",1),yo=new gS("INT",2),HT=new gS("STRING",3),eo=new gS("DOUBLE",4),$r=new gS("ENUM",5),UT=new gS("ENUMSET",6),lf=new gS("OBJECT",7)}function yC(e,t){var r,o,a,c,f;o=b.Math.min(e.c,t.c),c=b.Math.min(e.d,t.d),a=b.Math.max(e.c+e.b,t.c+t.b),f=b.Math.max(e.d+e.a,t.d+t.a),a=(a/2|0))for(this.e=o?o.c:null,this.d=a;r++0;)zpe(this);this.b=t,this.a=null}function Byn(e,t){var r,o;t.a?fSn(e,t):(r=l(Sq(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(Eq(e.b,t.b),60),o&&e.a[o.f]==t.b&&o.a&&o.a!=t.b.a&&t.b.c.Ec(o),bV(e.b,t.b))}function Dmt(e,t){var r,o;if(r=l(Wo(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((sc(),xm))&&fyt(e,t),o=Ebn(e,t),pJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.a=o}function Mmt(e,t){var r,o;if(r=l(Wo(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((sc(),xm))&&hyt(e,t),o=vbn(e,t),pJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.b=o}function Uyn(e,t){var r,o,a,c;for(c=new je,o=new V(t);o.ao&&(Yt(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return o>0||tr.a&&(o.Gc((Zb(),g4))?a=(t.a-r.a)/2:o.Gc(b4)&&(a=t.a-r.a)),t.b>r.b&&(o.Gc((Zb(),w4))?c=(t.b-r.b)/2:o.Gc(m4)&&(c=t.b-r.b)),Bbe(e,a,c)}function Bmt(e,t,r,o,a,c,f,p,m,y,v,T,N){ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),4),Ma(e,r),e.f=f,M_(e,p),j_(e,m),D_(e,y),P_(e,v),pg(e,T),F_(e,N),hg(e,!0),cg(e,a),e.Xk(c),Yb(e,t),o!=null&&(e.i=null,Tj(e,o))}function sme(e,t,r){if(e<0)return CC(XEt,Z(X(Ri,1),Rt,1,5,[r,Re(e)]));if(t<0)throw Y(new jt(ZEt+t));return CC("%s (%s) must not be greater than size (%s)",Z(X(Ri,1),Rt,1,5,[r,Re(e),Re(t)]))}function ame(e,t,r,o,a,c){var f,p,m,y;if(f=o-r,f<7){Ggn(t,r,o,c);return}if(m=r+a,p=o+a,y=m+(p-m>>1),ame(t,e,m,y,-a,c),ame(t,e,y,p,-a,c),c.Le(e[y-1],e[y])<=0){for(;r=0?e.$h(c,r):$me(e,a,r);else throw Y(new jt(R1+a.ve()+iI));else throw Y(new jt(WTt+t+KTt));else Xc(e,o,a,r)}function Umt(e){var t,r;if(e.f){for(;e.n>0;){if(t=l(e.k.Xb(e.n-1),76),r=t.Jk(),ae(r,104)&&l(r,20).Bb&Ws&&(!e.e||r.nk()!=Ak||r.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Hmt(e){var t,r,o,a;if(r=l(e,52).Yh(),r)try{if(o=null,t=Y_((n1(),Dl),Pyt(Kgn(r))),t&&(a=t.Zh(),a&&(o=a.Dl(kQt(r.e)))),o&&o!=e)return Hmt(o)}catch(c){if(c=ci(c),!ae(c,63))throw Y(c)}return e}function rvn(e,t,r){var o,a,c;r.Tg("Remove overlaps",1),r.bh(t,gve),o=l(ve(t,(aE(),l2)),19),e.f=o,e.a=SY(l(ve(t,(T1(),RD)),304)),a=le(ve(t,(_n(),Od))),ice(e,(Mt(a),a)),c=Ay(o),aEt(e,t,c,r),r.bh(t,MF)}function ivn(e){var t,r,o;if(Ye(Ke(ve(e,(_n(),UD))))){for(o=new je,r=new $t(qt(mp(e).a.Jc(),new L));an(r);)t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,hre)))&&Ot(o.c,t);return o}else return At(),At(),Io}function zmt(e){if(!e)return mQe(),Y_t;var t=e.valueOf?e.valueOf():e;if(t!==e){var r=zQ[typeof t];return r?r(t):n1e(typeof t)}else return e instanceof Array||e instanceof b.Array?new Xue(e):new JR(e)}function Gmt(e,t,r){var o,a,c;switch(c=e.o,o=l(Wo(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.b=b.Math.max(a.b,c.a),a.b>c.a&&!t&&(a.b=c.a),a.c=-(a.b-c.a)/2,r.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}kJ(o),NJ(o)}function qmt(e,t,r){var o,a,c;switch(c=e.o,o=l(Wo(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.a=b.Math.max(a.a,c.b),a.a>c.b&&!t&&(a.a=c.b),a.d=-(a.a-c.b)/2,r.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}kJ(o),NJ(o)}function ovn(e,t){var r,o,a;return ae(t.g,9)&&l(t.g,9).k==(zt(),mi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(le(by(r,(Be(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function svn(e,t){var r,o,a;return ae(t.g,9)&&l(t.g,9).k==(zt(),mi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(le(by(r,(Be(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function avn(e,t){var r,o,a,c,f;if(!t.dc()){if(a=l(t.Xb(0),134),t.gc()==1){Rwt(e,a,a,1,0,t);return}for(r=1;r0)try{a=Ec(t,Qi,sr)}catch(c){throw c=ci(c),ae(c,133)?(o=c,Y(new oj(o))):Y(c)}return r=(!e.a&&(e.a=new YG(e)),e.a),a=0?l(oe(r,a),57):null}function lvn(e,t){if(e<0)return CC(XEt,Z(X(Ri,1),Rt,1,5,["index",Re(e)]));if(t<0)throw Y(new jt(ZEt+t));return CC("%s (%s) must be less than size (%s)",Z(X(Ri,1),Rt,1,5,["index",Re(e),Re(t)]))}function dvn(e){var t,r,o,a,c;if(e==null)return tu;for(c=new qb(ja,"[","]"),r=e,o=0,a=r.length;o=0?e.Ih(r,!0,!0):O0(e,a,!0),164)),l(o,222).Xl(t);else throw Y(new jt(R1+t.ve()+iI))}function dme(e){var t,r;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),r=go(b.Math.floor(b.Math.log(e)/.6931471805599453)),(!t||e!=b.Math.pow(2,r))&&++r,r):ogt(Gs(e))}function Svn(e){var t,r,o,a,c,f,p;for(c=new uh,r=new V(e);r.a2&&p.e.b+p.j.b<=2&&(a=p,o=f),c.a.yc(a,c),a.q=o);return c}function Tvn(e,t,r){r.Tg("Eades radial",1),r.bh(t,MF),e.d=l(ve(t,(aE(),l2)),19),e.c=ue(le(ve(t,(T1(),zB)))),e.e=SY(l(ve(t,RD),304)),e.a=d1n(l(ve(t,xxe),431)),e.b=_0n(l(ve(t,Sxe),355)),c0n(e),r.bh(t,MF)}function Avn(e,t){if(t.Tg("Target Width Setter",1),Gc(e,(ef(),Lne)))Vn(e,(yh(),iv),le(ve(e,Lne)));else throw Y(new _f("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function Zmt(e,t){var r,o,a;return o=new Xd(e),qs(o,t),Te(o,(Ie(),iB),t),Te(o,(Be(),Zr),(qi(),fa)),Te(o,Kf,(mh(),tU)),Jh(o,(zt(),mi)),r=new aa,As(r,o),Ii(r,(He(),Kt)),a=new aa,As(a,o),Ii(a,Qt),o}function Qmt(e,t){var r,o,a,c,f;for(e.c[t.p]=!0,Fe(e.a,t),f=new V(t.j);f.a=c)f.$b();else for(a=f.Jc(),o=0;o0?Jce():f<0&&o0t(e,t,-f),!0):!1}function Cvn(e){var t;return t=Z(X(al,1),Bf,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,Mf(t,0,t.length)}function EC(e){var t,r,o,a,c,f,p;if(p=0,e.b==0){for(f=L1t(e,!0),t=0,o=f,a=0,c=o.length;a0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}else p=AQe(xK(ey(lr(nW(e.a),new IN),new Kp)));return p>0?p+e.n.d+e.n.a:0}function SC(e){var t,r,o,a,c,f,p;if(p=0,e.b==0)p=AQe(xK(ey(lr(nW(e.a),new Xg),new CN)));else{for(f=D1t(e,!0),t=0,o=f,a=0,c=o.length;a0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}return p>0?p+e.n.b+e.n.c:0}function Ivn(e){var t,r;if(e.c.length!=2)throw Y(new es("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 s0t(e,t,r){var o;for(i0(r,t.g,t.f),Bc(r,t.i,t.j),o=0;o<(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i;o++)s0t(e,l(oe((!t.a&&(t.a=new ke(En,t,10,11)),t.a),o),19),l(oe((!r.a&&(r.a=new ke(En,r,10,11)),r.a),o),19))}function Rvn(e,t){var r,o,a,c;for(c=l(Wo(e.b,t),129),r=c.a,a=l(l(wr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.c&&(r.a=b.Math.max(r.a,Pfe(o.c)));if(r.a>0)switch(t.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function Ovn(e,t){var r,o,a;return r=l(F(t,(ed(),AT)),15).a-l(F(e,AT),15).a,r==0?(o=Li(To(l(F(e,(h1(),tD)),8)),l(F(e,SI),8)),a=Li(To(l(F(t,tD),8)),l(F(t,SI),8)),yr(o.a*o.b,a.a*a.b)):r}function Lvn(e,t){var r,o,a;return r=l(F(t,(js(),FB)),15).a-l(F(e,FB),15).a,r==0?(o=Li(To(l(F(e,(Nr(),ND)),8)),l(F(e,ck),8)),a=Li(To(l(F(t,ND),8)),l(F(t,ck),8)),yr(o.a*o.b,a.a*a.b)):r}function a0t(e){var t,r;return r=new Zg,r.a+="e_",t=zhn(e),t!=null&&(r.a+=""+t),e.c&&e.d&&(zn((r.a+=" ",r),p7(e.c)),zn(ba((r.a+="[",r),e.c.i),"]"),zn((r.a+=jX,r),p7(e.d)),zn(ba((r.a+="[",r),e.d.i),"]")),r.a}function u0t(e){switch(e.g){case 0:return new zWe;case 1:return new GWe;case 2:return new tKe;case 3:return new nKe;default:throw Y(new jt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function pme(e,t,r,o,a){var c;switch(c=0,a.g){case 1:c=b.Math.max(0,t.b+e.b-(r.b+o));break;case 3:c=b.Math.max(0,-e.b-o);break;case 2:c=b.Math.max(0,-e.a-o);break;case 4:c=b.Math.max(0,t.a+e.a-(r.a+o))}return c}function c0t(e,t,r){var o,a,c,f,p;if(r)for(a=r.a.length,o=new Ib(a),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),c=f_(r,f.a),hEe in c.a||dQ in c.a?BTn(e,c,t):l3n(e,c,t),Vtn(l(Ht(e.c,B_(c)),74))}function gme(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&&(Mo(),t.jk()==JAt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function bme(e,t){var r,o,a,c;if(dr(e),e.c!=0||e.a!=123)throw Y(new Dn(jn((Cn(),wAt))));if(c=t==112,o=e.d,r=KA(e.i,125,o),r<0)throw Y(new Dn(jn((Cn(),yAt))));return a=yl(e.i,o,r),e.d=r+1,ldt(a,c,(e.e&512)==512)}function Dvn(e){var t,r,o,a,c,f,p;for(p=ch(e.c.length),a=new V(e);a.a=0&&o=0?e.Ih(r,!0,!0):O0(e,a,!0),164)),l(o,222).Ul(t);throw Y(new jt(R1+t.ve()+nQ))}function Pvn(){yle();var e;return pDt?l(Y_((n1(),Dl),_l),2017):(er(dm,new oVe),Okn(),e=l(ae(wa((n1(),Dl),_l),552)?wa(Dl,_l):new eat,552),pDt=!0,R3n(e),j3n(e),Jn((wle(),N3e),e,new Eqe),ns(Dl,_l,e),e)}function jvn(e,t){var r,o,a,c;e.j=-1,Ju(e.e)?(r=e.i,c=e.i!=0,r6(e,t),o=new cp(e.e,3,e.c,null,t,r,c),a=t.xl(e.e,e.c,null),a=Pbt(e,t,a),a?(a.lj(o),a.mj()):hr(e.e,o)):(r6(e,t),a=t.xl(e.e,e.c,null),a&&a.mj())}function k7(e,t){var r,o,a;if(a=0,o=t[0],o>=e.length)return-1;for(r=(Yt(o,e.length),e.charCodeAt(o));r>=48&&r<=57&&(a=a*10+(r-48),++o,!(o>=e.length));)r=(Yt(o,e.length),e.charCodeAt(o));return o>t[0]?t[0]=o:a=-1,a}function Fvn(e,t,r){var o,a,c,f,p;f=e.c,p=e.d,c=xs(Z(X($i,1),Pe,8,0,[f.i.n,f.n,f.a])).b,a=(c+xs(Z(X($i,1),Pe,8,0,[p.i.n,p.n,p.a])).b)/2,o=null,f.j==(He(),Qt)?o=new Me(t+f.i.c.c.a+r,a):o=new Me(t-r,a),WA(e.a,0,o)}function R0(e){var t,r,o,a;for(t=null,o=hh(Wc(Z(X(nl,1),Rt,22,0,[(!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),(!e.c&&(e.c=new Tt(pn,e,5,8)),e.c)])));an(o);)if(r=l(en(o),83),a=Yo(r),!t)t=a;else if(t!=a)return!1;return!0}function aJ(e,t,r){var o;if(++e.j,t>=e.i)throw Y(new Ia(hQ+t+um+e.i));if(r>=e.i)throw Y(new Ia(pQ+r+um+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-Ry,t=o>>16&4,r+=t,e<<=t,o=e-$f,t=o>>16&2,r+=t,e<<=t,o=e>>14,t=o&~(o>>1),r+2-t)}function $vn(e,t){var r,o,a;for(a=new je,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.c.g==e.g&&me(F(r.b,(js(),Jf)))!==me(F(r.c,Jf))&&!fE(new Et(null,new St(a,16)),new WJe(r))&&Ot(a.c,r);return xi(a,new EHe),a}function d0t(e,t,r){var o,a,c,f;return ae(t,156)&&ae(r,156)?(c=l(t,156),f=l(r,156),e.a[c.a][f.a]+e.a[f.a][c.a]):ae(t,254)&&ae(r,254)&&(o=l(t,254),a=l(r,254),o.a==a.a)?l(F(a.a,(ed(),AT)),15).a:0}function f0t(e,t){var r,o,a,c,f,p,m,y;for(y=ue(le(F(t,(Be(),GI)))),m=e[0].n.a+e[0].o.a+e[0].d.c+y,p=1;p=0?r:(p=O3(Li(new Me(f.c+f.b/2,f.d+f.a/2),new Me(c.c+c.b/2,c.d+c.a/2))),-(qyt(c,f)-1)*p)}function Uvn(e,t,r){var o;ei(new Et(null,(!r.a&&(r.a=new ke(jr,r,6,6)),new St(r.a,16))),new Vtt(e,t)),ei(new Et(null,(!r.n&&(r.n=new ke(Rs,r,1,7)),new St(r.n,16))),new Wtt(e,t)),o=l(ve(r,(_n(),p2)),79),o&&yge(o,e,t)}function O0(e,t,r){var o,a,c;if(c=IE((mu(),ao),e.Ah(),t),c)return Mo(),l(c,69).vk()||(c=MS(rs(ao,c))),a=(o=e.Fh(c),l(o>=0?e.Ih(o,!0,!0):O0(e,c,!0),164)),l(a,222).Ql(t,r);throw Y(new jt(R1+t.ve()+nQ))}function mme(e,t,r,o){var a,c,f,p,m;if(a=e.d[t],a){if(c=a.g,m=a.i,o!=null){for(p=0;p=r&&(o=t,y=(m.c+m.a)/2,f=y-r,m.c<=y-r&&(a=new MV(m.c,f),Nb(e,o++,a)),p=y+r,p<=m.a&&(c=new MV(p,m.a),ry(o,e.c.length),t3(e.c,o,c)))}function b0t(e,t,r){var o,a,c,f,p,m;if(!t.dc()){for(a=new Ar,m=t.Jc();m.Ob();)for(p=l(m.Pb(),41),Jn(e.a,Re(p.g),Re(r)),f=(o=An(new Qh(p).a.d,0),new qv(o));oO(f.a);)c=l(Sn(f.a),65).c,Wr(a,c,a.c.b,a.c);b0t(e,a,r+1)}}function wme(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()?(I7(e),wme(e)):t.Ob()}function m0t(e){if(this.a=e,e.c.i.k==(zt(),mi))this.c=e.c,this.d=l(F(e.c.i,(Ie(),Hs)),64);else if(e.d.i.k==mi)this.c=e.d,this.d=l(F(e.d.i,(Ie(),Hs)),64);else throw Y(new jt("Edge "+e+" is not an external edge."))}function w0t(e,t){var r,o,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,a,e.b)),t?t!=e&&(Ma(e,t.zb),gK(e,t.d),r=(o=t.c,o??t.zb),mK(e,r==null||wt(r,t.zb)?null:r)):(Ma(e,null),gK(e,0),mK(e,null))}function y0t(e){!UQ&&(UQ=$Nn());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 Sun(r)});return'"'+t+'"'}function yme(e,t,r,o,a,c){var f,p,m,y,v;if(a!=0)for(me(e)===me(r)&&(e=e.slice(t,t+a),t=0),m=r,p=t,y=t+a;p=f)throw Y(new Ww(t,f));return a=r[t],f==1?o=null:(o=we(Pre,yQ,420,f-1,0,1),ua(r,0,o,0,t),c=f-t-1,c>0&&ua(r,t+1,o,t,c)),H_(e,o),$mt(e,t,a),a}function v0t(e){var t,r;if(e.f){for(;e.n0)for(f=e.c.d,p=e.d.d,a=tp(Li(new Me(p.a,p.b),f),1/(o+1)),c=new Me(f.a,f.b),r=new V(e.a);r.a0?c=WS(r):c=P6(WS(r))),Vn(t,rk,c)}function _0t(e,t){var r,o;if(e.c.length!=0){if(e.c.length==2)aT((at(0,e.c.length),l(e.c[0],9)),(vc(),Ih)),aT((at(1,e.c.length),l(e.c[1],9)),q1);else for(o=new V(e);o.a0&&sL(e,r,t),c):o.a!=null?(sL(e,t,r),-1):a.a!=null?(sL(e,r,t),1):0}function x0t(e){CW();var t,r,o,a,c,f,p;for(r=new d1,a=new V(e.e.b);a.a=0;)o=r[c],f.$l(o.Jk())&&Tn(a,o);!IEt(e,a)&&Ju(e.e)&&DA(e,t.Hk()?c1(e,6,t,(At(),Io),null,-1,!1):c1(e,t.rk()?2:1,t,null,null,-1,!1))}function Xvn(e,t){var r,o,a,c,f;return e.a==(W_(),NI)?!0:(c=t.a.c,r=t.a.c+t.a.b,!(t.j&&(o=t.A,f=o.c.c.a-o.o.a/2,a=c-(o.n.a+o.o.a),a>f)||t.q&&(o=t.C,f=o.c.c.a-o.o.a/2,a=o.n.a-r,a>f)))}function N0t(e,t,r){var o,a,c,f,p,m;for(o=0,m=r,t||(o=r*(e.c.length-1),m*=-1),c=new V(e);c.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(l(a,52),r),o&&o.mj(),e.sh()&&e.th()&&r>-1&&hr(e,new Pi(e,9,r,c,a)),a):c}function Tme(e,t){var r,o,a,c,f;for(c=e.b.Ae(t),o=(r=e.a.get(c),r??we(Ri,Rt,1,0,5,1)),f=0;f>5,a>=e.d)return e.e<0;if(r=e.a[a],t=1<<(t&31),e.e<0){if(o=Aht(e),a>16)),16).bd(c),p0&&(!(ep(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d+=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a-=o-1))}function U0t(e,t,r){var o,a,c,f,p,m;c=l(ze(t.e,0),17).c,o=c.i,a=o.k,m=l(ze(r.g,0),17).d,f=m.i,p=f.k,a==(zt(),gi)?Te(e,(Ie(),Cd),l(F(o,Cd),12)):Te(e,(Ie(),Cd),c),p==gi?Te(e,(Ie(),Nl),l(F(f,Nl),12)):Te(e,(Ie(),Nl),m)}function H0t(e,t){var r,o,a,c,f,p;for(c=new V(e.b);c.a>t,c=e.m>>t|r<<22-t,a=e.l>>t|e.m<<22-t):t<44?(f=o?Ep:0,c=r>>t-22,a=e.m>>t-22|r<<44-t):(f=o?Ep:0,c=o?Hu:0,a=r>>t-44),Ua(a&Hu,c&Hu,f&Ep)}function fEn(e,t){var r;switch(M3(e.a),pc(e.a,(g7(),Kne),(X9(),ere)),pc(e.a,Yne,(Z9(),tre)),pc(e.a,Jne,(Q9(),nre)),l(ve(t,(QS(),Qne)),389).g){case 1:r=(w6(),rre);break;case 0:default:r=(w6(),ire)}return pc(e.a,Xne,r),FC(e.a,t)}function z0t(e,t){var r,o,a,c,f,p,m,y,v;if(e.a.f>0&&ae(t,45)&&(e.a.Zj(),y=l(t,45),m=y.jd(),c=m==null?0:Rr(m),f=Yde(e.a,c),r=e.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p=2)for(r=a.Jc(),t=le(r.Pb());r.Ob();)c=t,t=le(r.Pb()),o=b.Math.min(o,(Mt(t),t-(Mt(c),c)));return o}function EEn(e,t){var r,o,a;for(a=new je,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.b.g==e.g&&!wt(r.b.c,LF)&&me(F(r.b,(js(),Jf)))!==me(F(r.c,Jf))&&!fE(new Et(null,new St(a,16)),new KJe(r))&&Ot(a.c,r);return xi(a,new _He),a}function SEn(e,t){var r,o,a;if(me(t)===me(kn(e)))return!0;if(!ae(t,16)||(o=l(t,16),a=e.gc(),a!=o.gc()))return!1;if(ae(o,59)){for(r=0;r0&&(a=r),f=new V(e.f.e);f.a0?a+=t:a+=1;return a}function IEn(e,t){var r,o,a,c,f,p,m,y,v,T;y=e,m=B3(y,"individualSpacings"),m&&(o=Gc(t,(_n(),qT)),f=!o,f&&(a=new RG,Vn(t,qT,a)),p=l(ve(t,qT),380),T=m,c=null,T&&(c=(v=SK(T,we(Je,Pe,2,0,6,1)),new vq(T,v))),c&&(r=new hnt(T,p),lo(c,r)))}function REn(e,t){var r,o,a,c,f,p,m,y,v,T,N;return m=null,T=e,v=null,(rAt in T.a||iAt in T.a||HF in T.a)&&(y=null,N=Cge(t),f=B3(T,rAt),r=new OXe(N),_gt(r.a,f),p=B3(T,iAt),o=new UXe(N),xgt(o.a,p),c=m0(T,HF),a=new GXe(N),y=(Dbt(a.a,c),c),v=y),m=v,m}function OEn(e,t){var r,o,a;if(t===e)return!0;if(ae(t,544)){if(a=l(t,841),e.a.d!=a.a.d||uE(e).gc()!=uE(a).gc())return!1;for(o=uE(a).Jc();o.Ob();)if(r=l(o.Pb(),421),_ut(e,r.a.jd())!=l(r.a.kd(),18).gc())return!1;return!0}return!1}function LEn(e,t){var r,o,a,c;for(c=new V(t.a);c.at.c?1:e.bt.b?1:e.a!=t.a?Rr(e.a)-Rr(t.a):e.d==(H3(),QI)&&t.d==ZI?-1:e.d==ZI&&t.d==QI?1:0}function lJ(e){var t,r,o,a,c,f,p,m;for(a=Kr,o=Di,r=new V(e.e.b);r.a0&&a0):a<0&&-a0):!1}function MEn(e,t,r,o){var a,c,f,p,m,y,v,T;for(a=(t-e.d)/e.c.c.length,c=0,e.a+=r,e.d=t,T=new V(e.c);T.a>24;return f}function jEn(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=hY(".",[r,hY("$",o)]),e.b=hY(".",[r,hY(".",o)]),e.k=o[o.length-1]}function FEn(e,t){var r,o,a,c,f;for(f=null,c=new V(e.e.a);c.a0&&hL(t,(at(o-1,e.c.length),l(e.c[o-1],9)),a)>0;)nc(e,o,(at(o-1,e.c.length),l(e.c[o-1],9))),--o;at(o,e.c.length),e.c[o]=a}t.b=new hn,t.g=new hn}function twt(e,t,r){var o,a,c;for(o=1;o0&&t.Le((at(a-1,e.c.length),l(e.c[a-1],9)),c)>0;)nc(e,a,(at(a-1,e.c.length),l(e.c[a-1],9))),--a;at(a,e.c.length),e.c[a]=c}r.a=new hn,r.b=new hn}function C7(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(c=t.Jc();c.Ob();)a=l(c.Pb(),19),v=a.i+a.g/2,N=a.j+a.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),va(a,v-a.g/2),gu(a,N-a.f/2)}function xE(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(Ab(e.Pm)),r.a+="@",zn(r,(t=Rr(e)>>>0,t.toString(16))),e.Sh()?(r.a+=" (eProxyURI: ",ba(r,e.Yh()),e.Hh()&&(r.a+=" eClass: ",ba(r,e.Hh())),r.a+=")"):e.Hh()&&(r.a+=" (eClass: ",ba(r,e.Hh()),r.a+=")"),r.a}function _C(e){var t,r,o,a;if(e.e)throw Y(new es((np(eee),CX+eee.k+IX)));for(e.d==(vi(),hf)&&J7(e,as),r=new V(e.a.a);r.a>24}return r}function GEn(e,t,r){var o,a,c;if(a=l(Wo(e.i,t),319),!a)if(a=new fft(e.d,t,r),IS(e.i,t,a),j1e(t))qtn(e.a,t.c,t.b,a);else switch(c=Fyn(t),o=l(Wo(e.p,c),256),c.g){case 1:case 3:a.j=!0,uq(o,t.b,a);break;case 4:case 2:a.k=!0,uq(o,t.c,a)}return a}function qEn(e,t,r,o){var a,c,f,p,m,y;if(p=new m9,m=za(e.e.Ah(),t),a=l(e.g,123),Mo(),l(t,69).vk())for(f=0;f=0)return a;for(c=1,p=new V(t.j);p.a=0)return a;for(c=1,p=new V(t.j);p.a=0?(t||(t=new GN,o>0&&Vo(t,(io(0,o,e.length),e.substr(0,o)))),t.a+="\\",i_(t,r&Ei)):t&&i_(t,r&Ei);return t?t.a:e}function WEn(e){var t,r,o;for(r=new V(e.a.a.b);r.a0&&(!(ep(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d-=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a+=b.Math.max(0,o-1)))}function awt(e,t,r){var o,a;if((e.c-e.b&e.a.length-1)==2)t==(He(),Wt)||t==Qt?(fj(l(Q3(e),16),(vc(),Ih)),fj(l(Q3(e),16),q1)):(fj(l(Q3(e),16),(vc(),q1)),fj(l(Q3(e),16),Ih));else for(a=new D3(e);a.a!=a.b;)o=l(Bj(a),16),fj(o,r)}function KEn(e,t,r){var o,a,c,f,p,m,y,v,T;for(v=-1,T=0,p=t,m=0,y=p.length;m0&&++T;++v}return T}function YEn(e,t,r){var o;if(r.Tg("XPlacer",1),e.b=ue(le(ve(t,(_n(),Od)))),e.a=Ye(Ke(ve(t,(QS(),Zne)))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0)switch(o=l(ve(t,(wh(),h4)),19),l(ve(t,Qne),389).g){case 0:WEt(e,o);break;case 1:VEt(e,o)}r.Ug()}function JEn(e,t){var r,o,a,c,f,p,m;for(a=QA(new Tce(e)),p=new Xi(a,a.c.length),c=QA(new Tce(t)),m=new Xi(c,c.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 XEn(e,t){var r,o,a,c;for(t.Tg("Self-Loop pre-processing",1),o=new V(e.a);o.aMut(e,r)?(o=ks(r,(He(),Qt)),e.d=o.dc()?0:BV(l(o.Xb(0),12)),f=ks(t,Kt),e.b=f.dc()?0:BV(l(f.Xb(0),12))):(a=ks(r,(He(),Kt)),e.d=a.dc()?0:BV(l(a.Xb(0),12)),c=ks(t,Qt),e.b=c.dc()?0:BV(l(c.Xb(0),12)))}function ZEn(e){var t,r,o,a,c,f,p,m;t=!0,a=null,c=null;e:for(m=new V(e.a);m.ae.c));f++)a.a>=e.s&&(c<0&&(c=f),p=f);return m=(e.s+e.c)/2,c>=0&&(o=FTn(e,t,c,p),m=Aen((at(o,t.c.length),l(t.c[o],341))),qvn(t,o,r)),m}function xn(e,t,r){var o,a,c,f,p,m,y;for(f=(c=new Hue,c),uge(f,(Mt(t),t)),y=(!f.b&&(f.b=new Zu((_t(),Oo),zs,f)),f.b),m=1;m=2}function n2n(e,t,r,o,a){var c,f,p,m,y,v;for(c=e.c.d.j,f=l(sa(r,0),8),v=1;v1||(t=xr(ad,Z(X(zo,1),Ce,96,0,[Ip,ud])),T6(DP(t,e))>1)||(o=xr(ld,Z(X(zo,1),Ce,96,0,[Rh,Il])),T6(DP(o,e))>1))}function lwt(e){var t,r,o,a,c,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(a=new V(e.i);a.a0&&(o.a.u-=o.c,o.a.u<=0&&o.a.n>0&&Gn(r,o.a))}function i2n(e){var t,r,o,a,c,f;for(f=l(ve(e,(_n(),df)),100),r=0,o=0,c=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));c.e!=c.i.gc();)a=l(rn(c),19),t=l(ve(a,Cp),125),r1||r>1)return 2;return t+r==1?2:0}function Bu(e,t){var r,o,a,c,f,p;return c=e.a*_X+e.b*1502,p=e.b*_X+11,r=b.Math.floor(p*_L),c+=r,p-=r*dwe,c%=dwe,e.a=c,e.b=p,t<=24?b.Math.floor(e.a*m2e[t]):(a=e.a*(1<=2147483648&&(o-=4294967296),o)}function hwt(e,t,r){var o,a,c,f,p,m,y;for(c=new je,y=new Ar,f=new Ar,x_n(e,y,f,t),akn(e,y,f,t,r),m=new V(e);m.ao.b.g&&Ot(c.c,o);return c}function d2n(e,t,r){var o,a,c,f,p,m;for(p=e.c,f=(r.q?r.q:(At(),At(),xh)).vc().Jc();f.Ob();)c=l(f.Pb(),45),o=!BA(lr(new Et(null,new St(p,16)),new RA(new Btt(t,c)))).zd((_b(),TT)),o&&(m=c.kd(),ae(m,4)&&(a=$1e(m),a!=null&&(m=a)),t.of(l(c.jd(),149),m))}function f2n(e,t){var r,o,a,c;for(t.Tg("Resize child graph to fit parent.",1),o=new V(e.b);o.a1)for(a=new V(e.a);a.a=0?e.Ih(o,!0,!0):O0(e,c,!0),164)),l(a,222).Vl(t,r)}else throw Y(new jt(R1+t.ve()+iI))}function g2n(e,t,r){var o,a,c,f,p,m;if(m=qde(e,l(Ht(e.e,t),19)),p=null,m)switch(m.g){case 3:o=hde(e,ty(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=hde(e,ty(t)),f=(Mt(r),r+(Mt(a),a)),c=hde(e,l(Ht(e.e,t),19)),p=f-(Mt(c),c);break;default:p=r}else p=r;return p}function b2n(e,t,r){var o,a,c,f,p,m;if(m=qde(e,l(Ht(e.e,t),19)),p=null,m)switch(m.g){case 3:o=pde(e,ty(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=pde(e,ty(t)),f=(Mt(r),r+(Mt(a),a)),c=pde(e,l(Ht(e.e,t),19)),p=f-(Mt(c),c);break;default:p=r}else p=r;return p}function O7(e,t){var r,o,a,c,f;if(t){for(c=ae(e.Cb,89)||ae(e.Cb,104),f=!c&&ae(e.Cb,336),o=new tn((!t.a&&(t.a=new A3(t,Go,t)),t.a));o.e!=o.i.gc();)if(r=l(rn(o),88),a=z7(r),c?ae(a,89):f?ae(a,160):a)return a;return c?(_t(),Ml):(_t(),bf)}else return null}function m2n(e,t){var r,o,a,c,f;for(r=new je,a=bs(new Et(null,new St(e,16)),new dHe),c=bs(new Et(null,new St(e,16)),new fHe),f=Qdn(ydn(ey(N2n(Z(X(K3n,1),Rt,840,0,[a,c])),new hHe))),o=1;o=2*t&&Fe(r,new MV(f[o-1]+t,f[o]-t));return r}function pwt(e,t,r){var o,a,c,f,p,m,y,v;if(r)for(c=r.a.length,o=new Ib(c),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),a=f_(r,f.a),a&&(m=Aln(e,(y=(e1(),v=new Fce,v),t&&Bme(y,t),y),a),v_(m,sp(a,qf)),E7(a,m),ume(a,m),FK(e,a,m))}function L7(e){var t,r,o,a,c,f;if(!e.j){if(f=new cqe,t=D4,c=t.a.yc(e,t),c==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),a=L7(r),ti(f,a),Tn(f,r);t.a.Ac(e)!=null}hy(f),e.j=new Qv((l(oe(Ne((a1(),Ut).o),11),20),f.i),f.g),Pu(e).b&=-33}return e.j}function w2n(e){var t,r,o,a;if(e==null)return null;if(o=Ta(e,!0),a=JL.length,wt(o.substr(o.length-a,a),JL)){if(r=o.length,r==4){if(t=(Yt(0,o.length),o.charCodeAt(0)),t==43)return K3e;if(t==45)return MDt}else if(r==3)return K3e}return new Ice(o)}function y2n(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?tge(r):t==0&&o!=0&&r==0?tge(o)+22:t!=0&&o==0&&r==0?tge(t)+44:-1}function kE(e,t){var r,o,a,c,f;for(a=t.a&e.f,c=null,o=e.b[a];;o=o.b){if(o==t){c?c.b=t.b:e.b[a]=t.b;break}c=o}for(f=t.f&e.f,c=null,r=e.c[f];;r=r.d){if(r==t){c?c.d=t.d:e.c[f]=t.d;break}c=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 v2n(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(FS(e.b,t.a),263)),263),r.a=0,++e.c):(r=l(wl(l(Ht(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 dJ(e,t){var r,o,a,c;for(c=new Xi(e,0),r=(un(c.b0),c.a.Xb(c.c=--c.b),Vw(c,a),un(c.b3&&bh(e,0,t-3))}function S2n(e){var t,r,o,a;return me(F(e,(Be(),Wy)))===me((pp(),Ig))?!e.e&&me(F(e,mD))!==me((__(),cD)):(o=l(F(e,bte),303),a=Ye(Ke(F(e,mte)))||me(F(e,BI))===me((lC(),aD)),t=l(F(e,fAe),15).a,r=e.a.c.length,!a&&o!=(__(),cD)&&(t==0||t>r))}function T2n(e,t){var r,o,a,c,f,p,m;for(a=e.Jc();a.Ob();)for(o=l(a.Pb(),9),p=new aa,As(p,o),Ii(p,(He(),Qt)),Te(p,(Ie(),oB),(Dt(),!0)),f=t.Jc();f.Ob();)c=l(f.Pb(),9),m=new aa,As(m,c),Ii(m,Kt),Te(m,oB,!0),r=new p0,Te(r,oB,!0),bo(r,p),Ji(r,m)}function A2n(e){var t,r;for(r=0;r0);r++);if(r>0&&r0);t++);return t>0&&r>16!=6&&t){if(z_(e,t))throw Y(new jt(oI+C0t(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?abe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,6,o)),o=Wde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,6,t,t))}function D7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+Tvt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?dbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,12,o)),o=Vde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function Bme(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=9&&t){if(z_(e,t))throw Y(new jt(oI+myt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?cbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,9,o)),o=Kde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,9,t,t))}function J_(e){var t,r,o,a,c;if(o=Sl(e),c=e.j,c==null&&o)return e.Hk()?null:o.gk();if(ae(o,160)){if(r=o.hk(),r&&(a=r.ti(),a!=e.i)){if(t=l(o,160),t.lk())try{e.g=a.qi(t,c)}catch(f){if(f=ci(f),ae(f,81))e.g=null;else throw Y(f)}e.i=a}return e.g}return null}function ywt(e){var t;return t=new je,Fe(t,new hS(new Me(e.c,e.d),new Me(e.c+e.b,e.d))),Fe(t,new hS(new Me(e.c,e.d),new Me(e.c,e.d+e.a))),Fe(t,new hS(new Me(e.c+e.b,e.d+e.a),new Me(e.c+e.b,e.d))),Fe(t,new hS(new Me(e.c+e.b,e.d+e.a),new Me(e.c,e.d+e.a))),t}function x2n(e){var t,r,o,a;for(o=e.a.d.j,a=e.c.d.j,r=new V(e.i.d);r.a>>0),r.toString(16)),K1n(Xhn(),(GA(),"Exception during lenientFormat for "+o),t),"<"+o+" threw "+Ab(t.Pm)+">";throw Y(a)}}function N2n(e){var t,r,o,a,c,f,p,m,y;for(o=!1,t=336,r=0,c=new mit(e.length),p=e,m=0,y=p.length;m1)for(t=o0((r=new Tb,++e.b,r),e.d),p=An(c,0);p.b!=p.d.c;)f=l(Sn(p),126),Ql($l(Ul(Hl(Bl(new gl,1),0),t),f))}function M7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=11&&t){if(z_(e,t))throw Y(new jt(oI+a0e(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?fbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,10,o)),o=ife(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,a,c,f,p,m;if(c=0,f=0,e.c)for(m=new V(e.d.i.j);m.ac.a?-1:a.am){for(v=e.d,e.d=we(y3e,kEe,67,2*m+4,0,1),c=0;c=9223372036854776e3?(m_(),KEe):(a=!1,e<0&&(a=!0,e=-e),o=0,e>=nm&&(o=go(e/nm),e-=o*nm),r=0,e>=fT&&(r=go(e/fT),e-=r*fT),t=go(e),c=Ua(t,r,o),a&&jK(c),c)}function q2n(e){var t,r,o,a,c;if(c=new je,Da(e.b,new lYe(c)),e.b.c.length=0,c.c.length!=0){for(t=(at(0,c.c.length),l(c.c[0],81)),r=1,o=c.c.length;r>16!=7&&t){if(z_(e,t))throw Y(new jt(oI+Tmt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?ube(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,1,t5,o)),o=Wfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,7,t,t))}function Twt(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+ugt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?lbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,0,r5,o)),o=Kfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function fJ(e,t){Q_();var r,o,a,c,f,p,m,y,v;return t.d>e.d&&(p=e,e=t,t=p),t.d<63?MSn(e,t):(f=(e.d&-2)<<4,y=fpe(e,f),v=fpe(t,f),o=OJ(e,jS(y,f)),a=OJ(t,jS(v,f)),m=fJ(y,v),r=fJ(o,a),c=fJ(OJ(y,o),OJ(a,v)),c=$J($J(c,m),r),c=jS(c,f),m=jS(m,f<<1),$J($J(m,c),r))}function rL(){rL=K,Dte=new Yv(ISt,0),QAe=new Yv("LONGEST_PATH",1),e_e=new Yv("LONGEST_PATH_SOURCE",2),Ote=new Yv("COFFMAN_GRAHAM",3),ZAe=new Yv(UX,4),t_e=new Yv("STRETCH_WIDTH",5),AB=new Yv("MIN_WIDTH",6),Rte=new Yv("BF_MODEL_ORDER",7),Lte=new Yv("DF_MODEL_ORDER",8)}function J2n(e,t){var r,o,a,c,f,p;if(!e.tb){for(c=(!e.rb&&(e.rb=new Xw(e,Dd,e)),e.rb),p=new dS(c.i),a=new tn(c);a.e!=a.i.gc();)o=l(rn(a),146),f=o.ve(),r=l(f==null?eu(p.f,null,o):_0(p.i,f,o),146),r&&(f==null?eu(p.f,null,r):_0(p.i,f,r));e.tb=p}return l(wa(e.tb,t),146)}function iL(e,t){var r,o,a,c,f;if((e.i==null&&Ff(e),e.i).length,!e.p){for(f=new dS((3*e.g.i/2|0)+1),a=new ES(e.g);a.e!=a.i.gc();)o=l(vY(a),182),c=o.ve(),r=l(c==null?eu(f.f,null,o):_0(f.i,c,o),182),r&&(c==null?eu(f.f,null,r):_0(f.i,c,r));e.p=f}return l(wa(e.p,t),182)}function Vme(e,t,r,o,a){var c,f,p,m,y;for(U1n(o+RP(r,r.ge()),a),$st(t,l1n(r)),c=r.f,c&&Vme(e,t,c,"Caused by: ",!1),p=(r.k==null&&(r.k=we(BQ,Pe,81,0,0,1)),r.k),m=0,y=p.length;m=0;c+=r?1:-1)f=f|t.c.jg(m,c,r,o&&!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,(Ie(),e2))))),f=f|t.q.tg(m,c,r),f=f|lyt(e,m[c],r,o);return pi(e.c,t),f}function j7(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(v=pct(e.j),T=0,N=v.length;T1&&(e.a=!0),csn(l(r.b,68),br(To(l(t.b,68).c),tp(Li(To(l(r.b,68).a),l(t.b,68).a),a))),Aut(e,t),_wt(e,r)}function xwt(e){var t,r,o,a,c,f,p;for(c=new V(e.a.a);c.a0&&c>0?f.p=t++:o>0?f.p=r++:c>0?f.p=a++:f.p=r++}At(),xi(e.j,new p$e)}function tSn(e){var t,r;r=null,t=l(ze(e.g,0),17);do{if(r=t.d.i,gr(r,(Ie(),Nl)))return l(F(r,Nl),12).i;if(r.k!=(zt(),Xr)&&an(new $t(qt(Or(r).a.Jc(),new L))))t=l(en(new $t(qt(Or(r).a.Jc(),new L))),17);else if(r.k!=Xr)return null}while(r&&r.k!=(zt(),Xr));return r}function nSn(e,t){var r,o,a,c,f,p,m,y,v;for(p=t.j,f=t.g,m=l(ze(p,p.c.length-1),114),v=(at(0,p.c.length),l(p.c[0],114)),y=MY(e,f,m,v),c=1;cy&&(m=r,v=a,y=o);t.a=v,t.c=m}function L0(e,t,r,o){var a,c;if(a=me(F(r,(Be(),FI)))===me((g1(),Gy)),c=l(F(r,dAe),16),gr(e,(Ie(),Cr)))if(a){if(c.Gc(F(e,$I))&&c.Gc(F(t,$I)))return o*l(F(e,$I),15).a+l(F(e,Cr),15).a}else return l(F(e,Cr),15).a;else return-1;return l(F(e,Cr),15).a}function rSn(e,t,r){var o,a,c,f,p,m,y;for(y=new Qp(new IJe(e)),f=Z(X(nNt,1),eSt,12,0,[t,r]),p=0,m=f.length;pm-e.b&&pm-e.a&&pr.p?1:0:c.Ob()?1:-1}function dSn(e,t){var r,o,a,c,f,p;t.Tg(nTt,1),a=l(ve(e,(ef(),c4)),100),c=(!e.a&&(e.a=new ke(En,e,10,11)),e.a),f=xmn(c),p=b.Math.max(f.a,ue(le(ve(e,(yh(),u4))))-(a.b+a.c)),o=b.Math.max(f.b,ue(le(ve(e,qB)))-(a.d+a.a)),r=o-f.b,Vn(e,a4,r),Vn(e,$T,p),Vn(e,dk,o+r),t.Ug()}function kC(e){var t,r;if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i==0)return Cge(e);for(t=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),vn((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),E0(t,0),S0(t,0),y0(t,0),v0(t,0),r=(!e.a&&(e.a=new ke(jr,e,6,6)),e.a);r.i>1;)_y(r,r.i-1);return t}function za(e,t){Mo();var r,o,a,c;return t?t==(Tr(),LDt)||(t==EDt||t==km||t==vDt)&&e!=V3e?new q0e(e,t):(o=l(t,689),r=o.Yk(),r||(u_(rs((mu(),ao),t)),r=o.Yk()),c=(!r.i&&(r.i=new hn),r.i),a=l(Ss(ts(c.f,e)),2020),!a&&Jn(c,e,a=new q0e(e,t)),a):mDt}function fSn(e,t){var r,o;if(o=qO(e.b,t.b),!o)throw Y(new es("Invalid hitboxes for scanline constraint calculation."));(Yht(t.b,l(fen(e.b,t.b),60))||Yht(t.b,l(den(e.b,t.b),60)))&&eg(),e.a[t.b.f]=l(Sq(e.b,t.b),60),r=l(Eq(e.b,t.b),60),r&&(e.a[r.f]=t.b)}function hSn(e,t){var r,o,a,c,f,p,m,y,v;for(m=l(F(e,(Ie(),mr)),12),y=xs(Z(X($i,1),Pe,8,0,[m.i.n,m.n,m.a])).a,v=e.i.n.b,r=Lf(e.e),a=r,c=0,f=a.length;c0?c.a?(p=c.b.Kf().a,r>p&&(a=(r-p)/2,c.d.b=a,c.d.c=a)):c.d.c=e.s+r:k3(e.u)&&(o=jbe(c.b),o.c<0&&(c.d.b=-o.c),o.c+o.b>c.b.Kf().a&&(c.d.c=o.c+o.b-c.b.Kf().a))}function ySn(e,t){var r,o,a,c,f;f=new je,r=t;do c=l(Ht(e.b,r),134),c.B=r.c,c.D=r.d,Ot(f.c,c),r=l(Ht(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,a=l(ze(f,f.c.length-1),134),a.q=!0,a.C=l(a.d.a.ec().Jc().Pb(),17).d.i,f}function vSn(e){var t,r;r=l(F(e,(Be(),Cs)),166),t=l(F(e,(Ie(),hm)),316),r==(ic(),xp)?(Te(e,Cs,gD),Te(e,hm,(lp(),ZE))):r==gm?(Te(e,Cs,gD),Te(e,hm,(lp(),kT))):t==(lp(),ZE)?(Te(e,Cs,xp),Te(e,hm,dD)):t==kT&&(Te(e,Cs,gm),Te(e,hm,dD))}function F7(){F7=K,xD=new iHe,F4t=$n(new ui,(Vi(),la),(Zi(),k$)),U4t=Ra($n(new ui,la,M$),Ho,D$),H4t=Pf(Pf(ZN(Ra($n(new ui,id,$$),Ho,F$),da),j$),B$),$4t=Ra($n($n($n(new ui,kh,C$),da,R$),da,Gx),Ho,I$),B4t=Ra($n($n(new ui,da,Gx),da,x$),Ho,_$)}function NC(){NC=K,q4t=$n(Ra(new ui,(Vi(),Ho),(Zi(),pSe)),la,k$),Y4t=Pf(Pf(ZN(Ra($n(new ui,id,$$),Ho,F$),da),j$),B$),V4t=Ra($n($n($n(new ui,kh,C$),da,R$),da,Gx),Ho,I$),K4t=$n($n(new ui,la,M$),Ho,D$),W4t=Ra($n($n(new ui,da,Gx),da,x$),Ho,_$)}function ESn(e,t,r,o,a){var c,f;(!fo(t)&&t.c.i.c==t.d.i.c||!oht(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])),r))&&!fo(t)&&(t.c==a?WA(t.a,0,new So(r)):Gn(t.a,new So(r)),o&&!bl(e.a,r)&&(f=l(F(t,(Be(),ss)),79),f||(f=new Du,Te(t,ss,f)),c=new So(r),Wr(f,c,f.c.b,f.c),pi(e.a,c)))}function Cwt(e,t){var r,o,a,c;for(c=Ln(wo(Sh,ph(Ln(wo(t==null?0:Rr(t),Th)),15))),r=c&e.b.length-1,a=null,o=e.b[r];o;a=o,o=o.a)if(o.d==c&&rp(o.i,t))return a?a.a=o.a:e.b[r]=o.a,kQe(l(wl(o.c),600),l(wl(o.f),600)),tO(l(wl(o.b),229),l(wl(o.e),229)),--e.f,++e.e,!0;return!1}function SSn(e){var t,r;for(r=new $t(qt(si(e).a.Jc(),new L));an(r);)if(t=l(en(r),17),t.c.i.k!=(zt(),ta))throw Y(new _f(BX+z6(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 Iwt(e,t){var r,o,a,c,f,p,m,y,v,T,N;a=t?new dUe:new gUe,c=!1;do for(c=!1,y=t?oc(e.b):e.b,m=y.Jc();m.Ob();)for(p=l(m.Pb(),26),N=jb(p.a),t||oc(N),T=new V(N);T.a=0;f+=a?1:-1){for(p=t[f],m=o==(He(),Qt)?a?ks(p,o):oc(ks(p,o)):a?oc(ks(p,o)):ks(p,o),c&&(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 Owt(e,t,r){var o,a,c,f,p,m,y,v;for(c=ue(le(e.b.Jc().Pb())),y=ue(le(Khn(t.b))),o=tp(To(e.a),y-r),a=tp(To(t.a),r-c),v=br(o,a),tp(v,1/(y-c)),this.a=v,this.b=new je,p=!0,f=e.b.Jc(),f.Pb();f.Ob();)m=ue(le(f.Pb())),p&&m-r>OZ&&(this.b.Ec(r),p=!1),this.b.Ec(m);p&&this.b.Ec(r)}function ASn(e){var t,r,o,a;if(UTn(e,e.n),e.d.c.length>0){for(HN(e.c);xme(e,l(q(new V(e.e.a)),126))>5,t&=31,o>=e.d)return e.e<0?(jf(),txt):(jf(),wI);if(c=e.d-o,a=we(Rn,Qn,30,c+1,15,1),Ayn(a,c,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(),ao),a,t),r?(o=r.Gk(),(o>1||o==-1)&&f0(rs(ao,r))!=3):!0)):!1}function ISn(e,t,r,o){var a,c,f,p,m,y,v,T,N,O;if(m=e.c.d,y=e.d.d,m.j!=y.j)for(O=e.b,v=null,p=null,f=j1n(e),f&&O.i&&(v=e.b.i.i,p=O.i.j),a=m.j,T=null;a!=y.j;)T=t==0?zj(a):f1e(a),c=G1e(a,O.d[a.g],r),N=G1e(T,O.d[T.g],r),f&&v&&p&&(a==v?ygt(c,v,p):T==v&&ygt(N,v,p)),Gn(o,br(c,N)),a=T}function Yme(e,t,r){var o,a,c,f,p,m;if(o=ZQt(r,e.length),f=e[o],c=OQe(r,f.length),f[c].k==(zt(),mi))for(m=t.j,a=0;a0&&(r[0]+=e.d,f-=r[0]),r[2]>0&&(r[2]+=e.d,f-=r[2]),c=b.Math.max(0,f),r[1]=b.Math.max(r[1],f),bpe(e,$a,a.c+o.b+r[0]-(r[1]-f)/2,r),t==$a&&(e.c.b=c,e.c.c=a.c+o.b+(c-f)/2)}function Bwt(){this.c=we(Ki,Jo,30,(He(),Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,15,1),this.b=we(Ki,Jo,30,Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt]).length,15,1),this.a=we(Ki,Jo,30,Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt]).length,15,1),_le(this.c,Kr),_le(this.b,Di),_le(this.a,Di)}function PSn(e,t,r,o){var a,c,f,p,m;for(m=t.i,p=r[m.g][e.d[m.g]],a=!1,f=new V(t.d);f.a=a&&(e.c=!1,e.a=!1),e.b[o++]=a,e.b[o]=c,e.c||xE(e)}}function jSn(e,t,r){var o,a,c,f,p,m,y;for(y=t.d,e.a=new La(y.c.length),e.c=new hn,p=new V(y);p.a=0?e.Ih(y,!1,!0):O0(e,r,!1),61));e:for(c=T.Jc();c.Ob();){for(a=l(c.Pb(),57),v=0;ve.d[f.p]&&(r+=upe(e.b,c),l1(e.a,Re(c)));for(;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function zwt(e,t,r){var o,a,c,f;for(c=(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i,a=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));a.e!=a.i.gc();)o=l(rn(a),19),(!o.a&&(o.a=new ke(En,o,10,11)),o.a).i==0||(c+=zwt(e,o,!1));if(r)for(f=Br(t);f;)c+=(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i,f=Br(f);return c}function _y(e,t){var r,o,a,c;return e.Nj()?(o=null,a=e.Oj(),e.Rj()&&(o=e.Tj(e.Yi(t),null)),r=e.Gj(4,c=ZS(e,t),null,t,a),e.Kj()&&c!=null&&(o=e.Mj(c,o)),o?(o.lj(r),o.mj()):e.Hj(r),c):(c=ZS(e,t),e.Kj()&&c!=null&&(o=e.Mj(c,null),o&&o.mj()),c)}function GSn(e){var t,r,o,a,c,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 qSn(e,t,r){var o,a,c,f,p,m;for(f=l(F(e,(Ie(),nte)),16).Jc();f.Ob();){switch(c=l(f.Pb(),9),l(F(c,(Be(),Cs)),166).g){case 2:Oi(c,t);break;case 4:Oi(c,r)}for(a=new $t(qt(Df(c).a.Jc(),new L));an(a);)o=l(en(a),17),!(o.c&&o.d)&&(p=!o.d,m=l(F(o,TTe),12),p?Ji(o,m):bo(o,m))}}function Fo(){Fo=K,Z$=new Fw("COMMENTS",0),rl=new Fw("EXTERNAL_PORTS",1),CI=new Fw("HYPEREDGES",2),Q$=new Fw("HYPERNODES",3),Qx=new Fw("NON_FREE_PORTS",4),XE=new Fw("NORTH_SOUTH_PORTS",5),II=new Fw(wSt,6),Xx=new Fw("CENTER_LABELS",7),Zx=new Fw("END_LABELS",8),eB=new Fw("PARTITIONS",9)}function VSn(e,t,r,o,a){return o<0?(o=_E(e,a,Z(X(Je,1),Pe,2,6,[nX,rX,iX,oX,lT,sX,aX,uX,cX,lX,dX,fX]),t),o<0&&(o=_E(e,a,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function WSn(e,t,r,o,a){return o<0?(o=_E(e,a,Z(X(Je,1),Pe,2,6,[nX,rX,iX,oX,lT,sX,aX,uX,cX,lX,dX,fX]),t),o<0&&(o=_E(e,a,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function KSn(e,t,r,o,a,c){var f,p,m,y;if(p=32,o<0){if(t[0]>=e.length||(p=co(e,t[0]),p!=43&&p!=45)||(++t[0],o=k7(e,t),o<0))return!1;p==45&&(o=-o)}return p==32&&t[0]-r==2&&a.b==2&&(m=new q9,y=m.q.getFullYear()-k1+k1-80,f=y%100,c.a=o==f,o+=(y/100|0)*100+(o=0?v1(e):I3(v1(ug(e)))),yI[t]=k8(fh(e,t),0)?v1(fh(e,t)):I3(v1(ug(fh(e,t)))),e=wo(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 QSn(e){var t,r,o,a,c,f,p;for(c=new Qp(l(kn(new Af),50)),p=Di,r=new V(e.d);r.aJSt?xi(m,e.b):o<=JSt&&o>XSt?xi(m,e.d):o<=XSt&&o>ZSt?xi(m,e.c):o<=ZSt&&xi(m,e.a),c=Wwt(e,m,c);return a}function Kwt(e,t,r,o){var a,c,f,p,m,y;for(a=(o.c+o.a)/2,tc(t.j),Gn(t.j,a),tc(r.e),Gn(r.e,a),y=new IQe,p=new V(e.f);p.a1,p&&(o=new Me(a,r.b),Gn(t.a,o)),K3(t.a,Z(X($i,1),Pe,8,0,[N,T]))}function Zme(e,t,r){var o,a;for(t=48;r--)F4[r]=r-48<<24>>24;for(o=70;o>=65;o--)F4[o]=o-65+10<<24>>24;for(a=102;a>=97;a--)F4[a]=a-97+10<<24>>24;for(c=0;c<10;c++)kU[c]=48+c&Ei;for(e=10;e<=15;e++)kU[e]=65+e-10&Ei}function Zwt(e,t){t.Tg("Process graph bounds",1),Te(e,(Nr(),nne),wO(kK(ey(new Et(null,new St(e.b,16)),new MHe)))),Te(e,rne,wO(kK(ey(new Et(null,new St(e.b,16)),new PHe)))),Te(e,G_e,wO(xK(ey(new Et(null,new St(e.b,16)),new jHe)))),Te(e,q_e,wO(xK(ey(new Et(null,new St(e.b,16)),new FHe)))),t.Ug()}function iTn(e){var t,r,o,a,c;a=l(F(e,(Be(),mm)),24),c=l(F(e,vB),24),r=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new So(r),a.Gc((sc(),hv))&&(o=l(F(e,nk),8),c.Gc((Uu(),Tk))&&(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)),Ye(Ke(F(e,Ate)))||O_n(e,r,t)}function oTn(e){var t,r,o,a,c,f,p;for(t=!1,r=0,a=new V(e.d.b);a.a>19)return"-"+Qwt(k_(e));for(r=e,o="";!(r.l==0&&r.m==0&&r.h==0);){if(a=VW(rF),r=j0e(r,a,!0),t=""+tet(O1),!(r.l==0&&r.m==0&&r.h==0))for(c=9-t.length;c>0;c--)t="0"+t;o=t+o}return o}function sTn(){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 aTn(e,t,r){var o,a,c,f,p,m,y,v,T;for(o=r.c,a=r.d,p=qd(t.c),m=qd(t.d),o==t.c?(p=Fme(e,p,a),m=Jbt(t.d)):(p=Jbt(t.c),m=Fme(e,m,a)),y=new B9(t.a),Wr(y,p,y.a,y.a.a),Wr(y,m,y.c.b,y.c),f=t.c==o,T=new TZe,c=0;c=e.a||!Lbe(t,r))return-1;if(iy(l(o.Kb(t),22)))return 1;for(a=0,f=l(o.Kb(t),22).Jc();f.Ob();)if(c=l(f.Pb(),17),m=c.c.i==t?c.d.i:c.c.i,p=t0e(e,m,r,o),p==-1||(a=b.Math.max(a,p),a>e.c-1))return-1;return a+1}function ef(){ef=K,WB=new Mi((_n(),gk),1.3),AOt=new Mi(uv,(Dt(),!1)),Wxe=new xb(15),c4=new Mi(df,Wxe),l4=new Mi(Od,15),vOt=$D,TOt=Am,_Ot=b2,xOt=G1,SOt=g2,Rne=v4,kOt=cv,Xxe=(v0e(),mOt),Jxe=bOt,Lne=yOt,Zxe=wOt,Vxe=hOt,One=fOt,qxe=dOt,Yxe=gOt,zxe=y4,EOt=pre,OD=uOt,Hxe=aOt,LD=cOt,Kxe=pOt,Gxe=lOt}function eyt(e,t){var r,o,a,c,f,p;if(me(t)===me(e))return!0;if(!ae(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(c=0;c>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 Y(new kf("Invalid hexadecimal"))}}function nyt(e,t,r,o){var a,c,f,p,m,y;for(m=UY(e,r),y=UY(t,r),a=!1;m&&y&&(o||amn(m,y,r));)f=UY(m,r),p=UY(y,r),d6(t),d6(e),c=m.c,BJ(m,!1),BJ(y,!1),r?(E1(t,y.p,c),t.p=y.p,E1(e,m.p+1,c),e.p=m.p):(E1(e,m.p,c),e.p=m.p,E1(t,y.p+1,c),t.p=y.p),Oi(m,null),Oi(y,null),m=f,y=p,a=!0;return a}function ryt(e){switch(e.g){case 0:return new BWe;case 1:return new NWe;case 3:return new Yet;case 4:return new TUe;case 5:return new xit;case 6:return new UWe;case 2:return new CWe;case 7:return new DWe;case 8:return new kWe;default:throw Y(new jt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function dTn(e,t,r,o){var a,c,f,p,m;for(a=!1,c=!1,p=new V(o.j);p.a=t.length)throw Y(new Ia("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new FO(o),EK(this.e,this.c,(He(),Kt)),this.i=new FO(o),EK(this.i,this.c,Qt),this.f=new Jot(this.c),this.a=!c&&a.i&&!a.s&&this.c[0].k==(zt(),mi),this.a&&Iyn(this,e,t.length)}function oyt(e,t){var r,o,a,c,f,p;c=!e.B.Gc((Uu(),ZD)),f=e.B.Gc(kre),e.a=new Fgt(f,c,e.c),e.n&&xhe(e.a.n,e.n),uq(e.g,(Sd(),$a),e.a),t||(o=new fC(1,c,e.c),o.n.a=e.k,IS(e.p,(He(),Wt),o),a=new fC(1,c,e.c),a.n.d=e.k,IS(e.p,dn,a),p=new fC(0,c,e.c),p.n.c=e.k,IS(e.p,Kt,p),r=new fC(0,c,e.c),r.n.b=e.k,IS(e.p,Qt,r))}function hTn(e){var t,r,o;switch(t=l(F(e.d,(Be(),kp)),225),t.g){case 2:r=i3n(e);break;case 3:r=(o=new je,ei(lr(Oa(bs(bs(new Et(null,new St(e.d.b,16)),new OBe),new LBe),new DBe),new mBe),new sJe(o)),o);break;default:throw Y(new es("Compaction not supported for "+t+" edges."))}xxn(e,r),lo(new Xh(e.g),new nJe(e))}function pTn(e,t){var r,o,a,c,f,p,m;if(t.Tg("Process directions",1),r=l(F(e,(js(),uw)),87),r!=(vi(),ff))for(a=An(e.b,0);a.b!=a.d.c;){switch(o=l(Sn(a),41),p=l(F(o,(Nr(),CD)),15).a,m=l(F(o,ID),15).a,r.g){case 4:m*=-1;break;case 1:c=p,p=m,m=c;break;case 2:f=p,p=-m,m=f}Te(o,CD,Re(p)),Te(o,ID,Re(m))}t.Ug()}function gTn(e){var t,r,o,a,c,f,p,m;for(m=new plt,p=new V(e.a);p.a0&&t=0)return!1;if(t.p=r.b,Fe(r.e,t),a==(zt(),gi)||a==_a){for(f=new V(t.j);f.ae.d[p.p]&&(r+=upe(e.b,c),l1(e.a,Re(c)))):++f;for(r+=e.b.d*f;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function byt(e){var t,r,o,a,c,f;return c=0,t=Sl(e),t.ik()&&(c|=4),e.Bb&yu&&(c|=2),ae(e,104)?(r=l(e,20),a=Po(r),r.Bb&Ws&&(c|=32),a&&(ln(ny(a)),c|=8,f=a.t,(f>1||f==-1)&&(c|=16),a.Bb&Ws&&(c|=64)),r.Bb&Co&&(c|=yp),c|=Tl):ae(t,462)?c|=512:(o=t.ik(),o&&o.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function kTn(e,t){var r;return e.f==Ure?(r=f0(rs((mu(),ao),t)),e.e?r==4&&t!=(rT(),XT)&&t!=(rT(),JT)&&t!=(rT(),Hre)&&t!=(rT(),zre):r==2):e.d&&(e.d.Gc(t)||e.d.Gc(MS(rs((mu(),ao),t)))||e.d.Gc(IE((mu(),ao),e.b,t)))?!0:e.f&&Ume((mu(),e.f),WO(rs(ao,t)))?(r=f0(rs(ao,t)),e.e?r==4:r==2):!1}function NTn(e,t){var r,o,a,c,f,p,m,y;for(c=new je,t.b.c.length=0,r=l(Au(Hhe(new Et(null,new St(new Xh(e.a.b),1))),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),a=r.Jc();a.Ob();)if(o=l(a.Pb(),15),f=tpe(e.a,o),f.b!=0)for(p=new ra(t),Ot(c.c,p),p.p=o.a,y=An(f,0);y.b!=y.d.c;)m=l(Sn(y),9),Oi(m,p);li(t.b,c)}function wJ(e){var t,r,o,a,c,f,p;for(p=new hn,o=new V(e.a.b);o.asm&&(a-=sm),p=l(ve(o,GT),8),y=p.a,T=p.b+e,c=b.Math.atan2(T,y),c<0&&(c+=sm),c+=t,c>sm&&(c-=sm),Ud(),Yl(1e-10),b.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:kb(isNaN(a),isNaN(c))}function s0e(e,t,r,o){var a,c,f;t&&(c=ue(le(F(t,(Nr(),Ng))))+o,f=r+ue(le(F(t,jB)))/2,Te(t,CD,Re(Ln(Gs(b.Math.round(c))))),Te(t,ID,Re(Ln(Gs(b.Math.round(f))))),t.d.b==0||s0e(e,l(M8((a=An(new Qh(t).a.d,0),new qv(a))),41),r+ue(le(F(t,jB)))+e.b,o+ue(le(F(t,lk)))),F(t,one)!=null&&s0e(e,l(F(t,one),41),r,o))}function OTn(e,t){var r,o,a,c;if(c=l(ve(e,(_n(),m2)),64).g-l(ve(t,m2),64).g,c!=0)return c;if(r=l(ve(e,yre),15),o=l(ve(t,yre),15),r&&o&&(a=r.a-o.a,a!=0))return a;switch(l(ve(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 Y(new es(Owe))}}function a0e(e){var t,r,o;return e.Db&64?QY(e):(t=new fc(lEe),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new ke(Rs,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(e0(zn(e0(zn(e0(zn(e0((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function myt(e){var t,r,o;return e.Db&64?QY(e):(t=new fc(dEe),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new ke(Rs,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(e0(zn(e0(zn(e0(zn(e0((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function LTn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M;for(O=-1,M=0,v=t,T=0,N=v.length;T0&&++M;++O}return M}function DTn(e,t){var r,o,a,c,f;for(t==(nC(),qte)&&vC(l(wr(e.a,(yy(),sD)),16)),a=l(wr(e.a,(yy(),sD)),16).Jc();a.Ob();)switch(o=l(a.Pb(),108),r=l(ze(o.j,0),114).d.j,c=new Tu(o.j),xi(c,new HBe),t.g){case 2:VY(e,c,r,(T0(),P1),1);break;case 1:case 0:f=A2n(c),VY(e,new Rf(c,0,f),r,(T0(),P1),0),VY(e,new Rf(c,f,c.c.length),r,P1,1)}}function MTn(e){var t,r,o,a,c,f,p;for(a=l(F(e,(Ie(),tw)),9),o=e.j,r=(at(0,o.c.length),l(o.c[0],12)),f=new V(a.j);f.aa.p?(Ii(c,dn),c.d&&(p=c.o.b,t=c.a.b,c.a.b=p-t)):c.j==dn&&a.p>e.p&&(Ii(c,Wt),c.d&&(p=c.o.b,t=c.a.b,c.a.b=-(p-t)));break}return a}function u0e(e,t){var r,o,a,c,f,p,m;if(t==null||t.length==0)return null;if(a=l(wa(e.a,t),144),!a){for(o=(p=new Zh(e.b).a.vc().Jc(),new Dw(p));o.a.Ob();)if(r=(c=l(o.a.Pb(),45),l(c.kd(),144)),f=r.c,m=t.length,wt(f.substr(f.length-m,m),t)&&(t.length==f.length||co(f,f.length-t.length-1)==46)){if(a)return null;a=r}a&&ns(e.a,t,a)}return a}function ex(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(c=new Me(t,r),v=new V(e.a);v.awg&&nY(p,c,r),Eyt(e,v)}function Syt(e,t,r,o,a,c,f){if(e.c=o.Jf().a,e.d=o.Jf().b,a&&(e.c+=a.Jf().a,e.d+=a.Jf().b),e.b=t.Kf().a,e.a=t.Kf().b,!a)r?e.c-=f+t.Kf().a:e.c+=o.Kf().a+f;else switch(a.$f().g){case 0:case 2:e.c+=a.Kf().a+f+c.a+f;break;case 4:e.c-=f+c.a+f+t.Kf().a;break;case 1:e.c+=a.Kf().a+f,e.d-=f+c.b+f+t.Kf().b;break;case 3:e.c+=a.Kf().a+f,e.d+=a.Kf().b+f+c.b+f}}function FTn(e,t,r,o){var a,c,f,p,m,y,v,T,N,O,M;if(c=r,r1,p&&(o=new Me(a,r.b),Gn(t.a,o)),K3(t.a,Z(X($i,1),Pe,8,0,[N,T]))}function _1(){_1=K,kB=new $w(_d,0),SD=new $w("NIKOLOV",1),TD=new $w("NIKOLOV_PIXEL",2),u_e=new $w("NIKOLOV_IMPROVED",3),c_e=new $w("NIKOLOV_IMPROVED_PIXEL",4),a_e=new $w("DUMMYNODE_PERCENTAGE",5),l_e=new $w("NODECOUNT_PERCENTAGE",6),NB=new $w("NO_BOUNDARY",7),ak=new $w("MODEL_ORDER_LEFT_TO_RIGHT",8),KI=new $w("MODEL_ORDER_RIGHT_TO_LEFT",9)}function vJ(e,t){var r,o,a,c,f,p,m,y,v,T,N,O;return v=null,N=Rme(e,t),o=null,p=l(ve(t,(_n(),z6t)),301),p?o=p:o=(V3(),YD),O=o,O==(V3(),YD)&&(a=null,y=l(Ht(e.r,N),301),y?a=y:a=xre,O=a),Jn(e.r,t,O),c=null,m=l(ve(t,H6t),280),m?c=m:c=(O_(),zD),T=c,T==(O_(),zD)&&(f=null,r=l(Ht(e.b,N),280),r?f=r:f=uU,T=f),v=l(Jn(e.b,t,T),280),v}function VTn(e){var t,r,o,a,c;for(o=e.length,t=new GN,c=0;c=40,f&&qAn(e),oxn(e),ASn(e),r=pgt(e),o=0;r&&o0&&Gn(e.g,c)):(e.d[f]-=y+1,e.d[f]<=0&&e.a[f]>0&&Gn(e.f,c))))}function Ryt(e,t,r,o){var a,c,f,p,m,y,v;for(m=new Me(r,o),Li(m,l(F(t,(Nr(),ck)),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($he(new Et(null,new St(t.a,16))),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16).Jc();p.Ob();){for(f=l(p.Pb(),65),c=An(f.a,0);c.b!=c.d.c;)a=l(Sn(c),8),a.a+=m.a,a.b+=m.b;Gn(e.a,f)}}function b0e(e,t){var r,o,a,c;if(0<(ae(e,18)?l(e,18).gc():yd(e.Jc()))){if(a=t,1=0&&m1)&&t==1&&l(e.a[e.b],9).k==(zt(),ta)?aT(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==(zt(),ta)?aT(l(e.a[e.c-1&e.a.length-1],9),(vc(),q1)):(e.c-e.b&e.a.length-1)==2?(aT(l(Q3(e),9),(vc(),Ih)),aT(l(Q3(e),9),q1)):UEn(e,a),spe(e)}function cAn(e){var t,r,o,a,c,f,p,m;for(m=new hn,t=new ZG,f=e.Jc();f.Ob();)a=l(f.Pb(),9),p=o0(lO(new Tb,a),t),eu(m.f,a,p);for(c=e.Jc();c.Ob();)for(a=l(c.Pb(),9),o=new $t(qt(Or(a).a.Jc(),new L));an(o);)r=l(en(o),17),!fo(r)&&Ql($l(Ul(Bl(Hl(new gl,b.Math.max(1,l(F(r,(Be(),UAe)),15).a)),1),l(Ht(m,r.c.i),126)),l(Ht(m,r.d.i),126)));return t}function Dyt(e,t,r,o){var a,c,f,p,m,y,v,T,N,O;if(Lfn(e,t,r),c=t[r],O=o?(He(),Kt):(He(),Qt),ztn(t.length,r,o)){for(a=t[o?r-1:r+1],Ape(e,a,o?(jo(),Ba):(jo(),Cu)),m=c,v=0,N=m.length;vc*2?(v=new hj(T),y=hu(f)/ec(f),m=GJ(v,t,new oS,r,o,a,y),br(wd(v.e),m),T.c.length=0,c=0,Ot(T.c,v),Ot(T.c,f),c=hu(v)*ec(v)+hu(f)*ec(f)):(Ot(T.c,f),c+=hu(f)*ec(f));return T}function dAn(e,t){var r,o,a,c,f,p,m;for(t.Tg("Port order processing",1),m=l(F(e,(Be(),BAe)),426),o=new V(e.b);o.ar?t:r;y<=T;++y)y==r?p=o++:(c=a[y],v=M.$l(c.Jk()),y==t&&(m=y==T&&!v?o-1:o),v&&++o);return N=l(uC(e,t,r),76),p!=m&&DA(e,new a6(e.e,7,f,Re(p),O.kd(),m)),N}}else return l(aJ(e,t,r),76);return l(uC(e,t,r),76)}function m0e(e,t){var r,o,a,c,f,p,m,y,v,T;for(T=0,c=new iE,l1(c,t);c.b!=c.c;)for(m=l(CS(c),221),y=0,v=l(F(t.j,(Be(),Ch)),270),l(F(t.j,FI),330),f=ue(le(F(t.j,bD))),p=ue(le(F(t.j,fte))),v!=(bp(),B1)&&(y+=f*KEn(t.j,m.e,v),y+=p*LTn(t.j,m.e)),T+=X1t(m.d,m.e)+y,a=new V(m.b);a.a=0&&(p=vmn(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&&jK(m),c&&(o?(O1=k_(e),a&&(O1=Vht(O1,(m_(),YEe)))):O1=Ua(e.l,e.m,e.h)),m}function pAn(e,t){var r,o,a,c,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 Y(new kf(F0+e+'"'));return p}function gAn(e){var t,r,o,a,c,f,p;for(f=new Ar,c=new V(e.a);c.a=e.length)return r.o=0,!0;switch(co(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return r.o=0,!0}if(++t[0],c=t[0],f=k7(e,t),f==0&&t[0]==c)return!1;if(t[0]p&&(p=a,v.c.length=0),a==p&&Fe(v,new No(r.c.i,r)));At(),xi(v,e.c),Nb(e.b,m.p,v)}}function EAn(e,t){var r,o,a,c,f,p,m,y,v;for(f=new V(t.b);f.ap&&(p=a,v.c.length=0),a==p&&Fe(v,new No(r.d.i,r)));At(),xi(v,e.c),Nb(e.f,m.p,v)}}function SAn(e){var t,r,o,a,c,f,p;for(c=Gd(e),a=new tn((!e.e&&(e.e=new Tt(Ir,e,7,4)),e.e));a.e!=a.i.gc();)if(o=l(rn(a),74),p=Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)),!uy(p,c))return!0;for(r=new tn((!e.d&&(e.d=new Tt(Ir,e,8,5)),e.d));r.e!=r.i.gc();)if(t=l(rn(r),74),f=Yo(l(oe((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83)),!uy(f,c))return!0;return!1}function TAn(e){var t,r,o,a,c;o=l(F(e,(Ie(),mr)),19),c=l(ve(o,(Be(),mm)),185).Gc((sc(),xm)),e.e||(a=l(F(e,xa),24),t=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),a.Gc((Fo(),rl))?(Vn(o,Zr,(qi(),fa)),M0(o,t.a,t.b,!1,!0)):Ye(Ke(ve(o,Ate)))||M0(o,t.a,t.b,!0,!0)),c?Vn(o,mm,ct(xm)):Vn(o,mm,(r=l(md(N4),10),new Hc(r,l(Gl(r,r.length),10),0)))}function AAn(e,t){var r,o,a,c,f,p,m,y;if(y=Ke(F(t,(js(),wRt))),y==null||(Mt(y),y)){for(Jvn(e,t),a=new je,m=An(t.b,0);m.b!=m.d.c;)f=l(Sn(m),41),r=tme(e,f,null),r&&(qs(r,t),Ot(a.c,r));if(e.a=null,e.b=null,a.c.length>1)for(o=new V(a);o.a=0&&p!=r&&(c=new Pi(e,1,p,f,null),o?o.lj(c):o=c),r>=0&&(c=new Pi(e,1,r,p==r?f:null,t),o?o.lj(c):o=c)),o}function Pyt(e){var t,r,o;if(e.b==null){if(o=new Xp,e.i!=null&&(Vo(o,e.i),o.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(Ean(e.i)||(o.a+="//"),Vo(o,e.a)),e.d!=null&&(o.a+="/",Vo(o,e.d)),e.f&16&&(o.a+="/"),t=0,r=e.j.length;tN?!1:(T=(m=MC(o,N,!1),m.a),v+p+T<=t.b&&(u6(r,c-r.s),r.c=!0,u6(o,c-r.s),U6(o,r.s,r.t+r.d+p),o.k=!0,Ege(r.q,o),O=!0,a&&(yj(t,o),o.j=t,e.c.length>f&&(q6((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&&sg(e,f)))),O)}function RAn(e,t){var r,o,a,c,f,p;if(t.Tg("Partition midprocessing",1),a=new b0,ei(lr(new Et(null,new St(e.a,16)),new b$e),new BYe(a)),a.d!=0){for(p=l(Au(Hhe((c=a.i,new Et(null,(c||(a.i=new sE(a,a.c))).Lc()))),ju(new Qo,new ls,new Ci,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),T2n(l(wr(a,r),24),l(wr(a,f),24)),r=f;t.Ug()}}function RC(e,t){var r,o,a,c,f;if(e.Ab){if(e.Ab){if(f=e.Ab.i,f>0){if(a=l(e.Ab.g,2012),t==null){for(c=0;cr.s&&pm+M&&(U=T.g+N.g,N.a=(N.g*N.a+T.g*T.a)/U,N.g=U,T.f=N,r=!0)),c=p,T=N;return r}function DAn(e,t,r){var o,a,c,f,p,m,y,v;for(r.Tg($St,1),Zs(e.b),Zs(e.a),p=null,c=An(t.b,0);!p&&c.b!=c.d.c;)y=l(Sn(c),41),Ye(Ke(F(y,(Nr(),z1))))&&(p=y);for(m=new Ar,Wr(m,p,m.c.b,m.c),vEt(e,m),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),f=In(F(y,(Nr(),r4))),a=wa(e.b,f)!=null?l(wa(e.b,f),15).a:0,Te(y,tne,Re(a)),o=1+(wa(e.a,f)!=null?l(wa(e.a,f),15).a:0),Te(y,z_e,Re(o));r.Ug()}function Hyt(e){n0(e,new Qb(Qm(Jm(Zm(Xm(new vb,V0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new RGe))),Le(e,V0,B0,Kke),Le(e,V0,$0,15),Le(e,V0,CL,Re(0)),Le(e,V0,tEe,Ge(qke)),Le(e,V0,ME,Ge(I6t)),Le(e,V0,bT,Ge(R6t)),Le(e,V0,mx,hTt),Le(e,V0,wx,Ge(Vke)),Le(e,V0,mT,Ge(Wke)),Le(e,V0,nEe,Ge(ure)),Le(e,V0,CF,Ge(C6t))}function zyt(e,t){var r,o,a,c,f,p,m,y,v;if(a=e.i,f=a.o.a,c=a.o.b,f<=0&&c<=0)return He(),Is;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 He(),Kt;if(y+p>f)return He(),Qt;break;case 4:case 3:if(v<0)return He(),Wt;if(v+r>c)return He(),dn}return m=(y+p/2)/f,o=(v+r/2)/c,m+o<=1&&m-o<=0?(He(),Kt):m+o>=1&&m-o>=0?(He(),Qt):o<.5?(He(),Wt):(He(),dn)}function Gyt(e,t,r,o,a,c,f){var p,m,y,v,T,N;for(N=new wS,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,a>y&&(e.v||p.c.d.c.length==1?(f=(a-y)/2,p.d.d=f,p.d.a=f):(r=l(ze(p.c.d,0),190).Kf().b,o=(r-y)/2,p.d.d=b.Math.max(0,o),p.d.a=a-o-y))):p.d.a=e.t+a:k3(e.u)&&(c=jbe(p.b),c.d<0&&(p.d.d=-c.d),c.d+c.a>p.b.Kf().b&&(p.d.a=c.d+c.a-p.b.Kf().b))}function ed(){ed=K,AT=new Mi((_n(),HD),Re(1)),v$=new Mi(Od,80),Ekt=new Mi(ANe,5),dkt=new Mi(gk,bx),ykt=new Mi(Ere,Re(1)),vkt=new Mi(Sre,(Dt(),!0)),R2e=new xb(50),mkt=new Mi(df,R2e),N2e=y4,O2e=bk,fkt=new Mi(rU,!1),I2e=v4,gkt=uv,bkt=G1,pkt=Am,hkt=g2,wkt=cv,C2e=(Wbe(),ikt),aee=ukt,y$=rkt,see=okt,L2e=akt,Akt=wk,_kt=sU,Tkt=dv,Skt=mk,D2e=(VS(),pv),new Mi(VT,D2e)}function jAn(e,t){var r;switch(b6(e)){case 6:return zi(t);case 7:return Uw(t);case 8:return Bw(t);case 3:return Array.isArray(t)&&(r=b6(t),!(r>=14&&r<=16));case 11:return t!=null&&typeof t===YJ;case 12:return t!=null&&(typeof t===pL||typeof t==YJ);case 0:return EY(t,e.__elementTypeId$);case 2:return tW(t)&&t.Rm!==fe;case 1:return tW(t)&&t.Rm!==fe||EY(t,e.__elementTypeId$);default:return!0}}function FAn(e){var t,r,o,a;o=e.o,qw(),e.A.dc()||pr(e.A,T2e)?a=o.a:(e.D?a=b.Math.max(o.a,SC(e.f)):a=SC(e.f),e.A.Gc((sc(),JD))&&!e.B.Gc((Uu(),C4))&&(a=b.Math.max(a,SC(l(Wo(e.p,(He(),Wt)),256))),a=b.Math.max(a,SC(l(Wo(e.p,dn),256)))),t=Lht(e),t&&(a=b.Math.max(a,t.a))),Ye(Ke(e.e.Rf().mf((_n(),uv))))?o.a=b.Math.max(o.a,a):o.a=a,r=e.f.i,r.c=0,r.b=a,kJ(e.f)}function qyt(e,t){var r,o,a,c;return o=b.Math.min(b.Math.abs(e.c-(t.c+t.b)),b.Math.abs(e.c+e.b-t.c)),c=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||(a=b.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:r==0&&a==0?0:r==0?c/a+1:a==0?o/r+1:b.Math.min(o/r,c/a)+1}function $An(e,t){var r,o,a,c,f,p,m;for(c=0,p=0,m=0,a=new V(e.f.e);a.a0&&e.d!=(G3(),lee)&&(p+=f*(o.d.a+e.a[t.a][o.a]*(t.d.a-o.d.a)/r)),r>0&&e.d!=(G3(),uee)&&(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 Me(p/c,t.d.b);case 2:return new Me(t.d.a,m/c);default:return new Me(p/c,m/c)}}function Vyt(e){var t,r,o,a,c,f;for(r=(!e.a&&(e.a=new yi(Ic,e,5)),e.a).i+2,f=new La(r),Fe(f,new Me(e.j,e.k)),ei(new Et(null,(!e.a&&(e.a=new yi(Ic,e,5)),new St(e.a,16))),new yXe(f)),Fe(f,new Me(e.b,e.c)),t=1;t0&&(I6(m,!1,(vi(),as)),I6(m,!0,fs)),Da(t.g,new ytt(e,r)),Jn(e.g,t,r)}function v0e(){v0e=K,pOt=new pt(kve,(Dt(),!1)),Re(-1),aOt=new pt(Nve,Re(-1)),Re(-1),uOt=new pt(Cve,Re(-1)),cOt=new pt(Ive,!1),lOt=new pt(Rve,!1),Uxe=(KP(),Dne),wOt=new pt(Ove,Uxe),yOt=new pt(Lve,-1),Bxe=(Wj(),Ine),mOt=new pt(Dve,Bxe),bOt=new pt(Mve,!0),Fxe=(ij(),Mne),hOt=new pt(Pve,Fxe),fOt=new pt(jve,!1),Re(1),dOt=new pt(Fve,Re(1)),$xe=(Uj(),Pne),gOt=new pt($ve,$xe)}function Yyt(){Yyt=K;var e;for(r2e=Z(X(Rn,1),Qn,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]),GQ=we(Rn,Qn,30,37,15,1),Z_t=Z(X(Rn,1),Qn,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]),i2e=we(pw,g2t,30,37,14,1),e=2;e<=36;e++)GQ[e]=go(b.Math.pow(e,r2e[e])),i2e[e]=W6(wL,GQ[e])}function BAn(e){var t;if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(jTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));return t=new Du,OK(l(oe((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83))&&mo(t,FEt(e,OK(l(oe((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83)),!1)),OK(l(oe((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83))&&mo(t,FEt(e,OK(l(oe((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83)),!0)),t}function Jyt(e,t){var r,o,a,c,f;for(t.d?a=e.a.c==(If(),aw)?si(t.b):Or(t.b):a=e.a.c==(If(),kg)?si(t.b):Or(t.b),c=!1,o=new $t(qt(a.a.Jc(),new L));an(o);)if(r=l(en(o),17),f=Ye(e.a.f[e.a.g[t.b.p].p]),!(!f&&!fo(r)&&r.c.i.c==r.d.i.c)&&!(Ye(e.a.n[e.a.g[t.b.p].p])||Ye(e.a.n[e.a.g[t.b.p].p]))&&(c=!0,bl(e.b,e.a.g[nmn(r,t.b).p])))return t.c=!0,t.a=r,t;return t.c=c,t.a=null,t}function E0e(e,t,r){var o,a,c,f,p,m,y;if(o=r.gc(),o==0)return!1;if(e.Nj())if(m=e.Oj(),k1e(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),c=t+o,a=t;a0){for(f=0;f>16==-15&&e.Cb.Vh()&&rK(new tK(e.Cb,9,13,r,e.c,gg(Fu(l(e.Cb,62)),e))):ae(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,ae(t,89)||(t=(_t(),Ml)),ae(r,89)||(r=(_t(),Ml)),rK(new tK(e.Cb,9,10,r,t,gg(oa(l(e.Cb,29)),e)))))),e.c}function Qyt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M;if(t==r)return!0;if(t=_me(e,t),r=_me(e,r),o=NY(t),o){if(v=NY(r),v!=o)return v?(m=o.kk(),M=v.kk(),m==M&&m!=null):!1;if(f=(!t.d&&(t.d=new yi(Go,t,1)),t.d),c=f.i,N=(!r.d&&(r.d=new yi(Go,r,1)),r.d),c==N.i){for(y=0;y0,p=Vj(t,c),kde(r?p.b:p.g,t),wE(p).c.length==1&&Wr(o,p,o.c.b,o.c),a=new No(c,t),l1(e.o,a),Xa(e.e.a,c))}function nvt(e,t){var r,o,a,c,f,p,m;return o=b.Math.abs(bP(e.b).a-bP(t.b).a),p=b.Math.abs(bP(e.b).b-bP(t.b).b),a=0,m=0,r=1,f=1,o>e.b.b/2+t.b.b/2&&(a=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-a/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),c=b.Math.min(r,f),(1-c)*b.Math.sqrt(o*o+p*p)}function VAn(e){var t,r,o,a;for(zJ(e,e.e,e.f,(g0(),H1),!0,e.c,e.i),zJ(e,e.e,e.f,H1,!1,e.c,e.i),zJ(e,e.e,e.f,u2,!0,e.c,e.i),zJ(e,e.e,e.f,u2,!1,e.c,e.i),zAn(e,e.c,e.e,e.f,e.i),o=new Xi(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(a=57;a>=48;a--)mf[a]=a-48+52<<24>>24;for(mf[43]=62,mf[47]=63,c=0;c<=25;c++)Pg[c]=65+c&Ei;for(f=26,m=0;f<=51;++f,m++)Pg[f]=97+m&Ei;for(e=52,p=0;e<=61;++e,p++)Pg[e]=48+p&Ei;Pg[62]=43,Pg[63]=47}function rvt(e,t){var r,o,a,c,f,p;return a=mge(e),p=mge(t),a==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)*b2t)+1)-(t.d>0?t.d:b.Math.floor((t.a-1)*b2t)+1),r>o+1?a:r0&&(f=dE(f,bvt(o))),Jgt(c,f))):ay&&(N=0,O+=m+t,m=0),ex(f,N,O),r=b.Math.max(r,N+v.a),m=b.Math.max(m,v.b),N+=v.a+t;return new Me(r+t,O+m+t)}function _0e(e,t){var r,o,a,c,f,p,m;if(!Gd(e))throw Y(new es(PTt));if(o=Gd(e),c=o.g,a=o.f,c<=0&&a<=0)return He(),Is;switch(p=e.i,m=e.j,t.g){case 2:case 1:if(p<0)return He(),Kt;if(p+e.g>c)return He(),Qt;break;case 4:case 3:if(m<0)return He(),Wt;if(m+e.f>a)return He(),dn}return f=(p+e.g/2)/c,r=(m+e.f/2)/a,f+r<=1&&f-r<=0?(He(),Kt):f+r>=1&&f-r>=0?(He(),Qt):r<.5?(He(),Wt):(He(),dn)}function YAn(e,t,r,o,a){var c,f;if(c=Ao(Gi(t[0],$o),Gi(o[0],$o)),e[0]=Ln(c),c=u0(c,32),r>=a){for(f=1;f0&&(a.b[f++]=0,a.b[f++]=c.b[0]-1),t=1;tT?y=0:y=-1,t.a=N+o,f=0,a=y+1;a0&&(HG(m,m.d-a.d),a.c==(vd(),U1)&&SZt(m,m.a-a.d),m.d<=0&&m.i>0&&Wr(t,m,t.c.b,t.c)));for(c=new V(e.f);c.a0&&(S9(p,p.i-a.d),a.c==(vd(),U1)&&TZt(p,p.b-a.d),p.i<=0&&p.d>0&&Wr(r,p,r.c.b,r.c)))}function ZAn(e,t,r,o,a){var c,f,p,m,y,v,T,N,O;for(At(),xi(e,new MGe),f=UO(e),O=new je,N=new je,p=null,m=0;f.b!=0;)c=l(f.b==0?null:(un(f.b!=0),Vc(f,f.a.a)),168),!p||hu(p)*ec(p)/21&&(m>hu(p)*ec(p)/2||f.b==0)&&(T=new hj(N),v=hu(p)/ec(p),y=GJ(T,t,new oS,r,o,a,v),br(wd(T.e),y),p=T,Ot(O.c,T),m=0,N.c.length=0));return li(O,N),O}function ua(e,t,r,o,a){eg();var c,f,p,m,y,v,T;if(ihe(e,"src"),ihe(r,"dest"),T=rc(e),m=rc(r),kfe((T.i&4)!=0,"srcType is not an array"),kfe((m.i&4)!=0,"destType is not an array"),v=T.c,f=m.c,kfe(v.i&1?v==f:(f.i&1)==0,"Array types don't match"),vpn(e,t,r,o,a),!(v.i&1)&&T!=m)if(y=HS(e),c=HS(r),me(e)===me(r)&&to;)ii(c,p,y[--t]);else for(p=o+a;o0),o.a.Xb(o.c=--o.b),T>N+m&&Mu(o);for(f=new V(O);f.a0),o.a.Xb(o.c=--o.b)}}function e_n(){fr();var e,t,r,o,a,c;if(qre)return qre;for(e=new bc(4),Ny(e,x1(RQ,!0)),$C(e,x1("M",!0)),$C(e,x1("C",!0)),c=new bc(4),o=0;o<11;o++)Sa(c,o,o);return t=new bc(4),Ny(t,x1("M",!0)),Sa(t,4448,4607),Sa(t,65438,65439),a=new b3(2),em(a,e),em(a,B4),r=new b3(2),r.Hm(lP(c,x1("L",!0))),r.Hm(t),r=new oy(3,r),r=new she(a,r),qre=r,qre}function ky(e,t){var r,o,a,c,f,p,m,y;for(r=new RegExp(t,"g"),m=we(Je,Pe,2,0,6,1),o=0,y=e,c=null;;)if(p=r.exec(y),p==null||y==""){m[o]=y;break}else f=p.index,m[o]=(io(0,f,y.length),y.substr(0,f)),y=yl(y,f+p[0].length,y.length),r.lastIndex=0,c==y&&(m[o]=(io(0,1,y.length),y.substr(0,1)),y=(Yt(1,y.length+1),y.substr(1))),c=y,++o;if(e.length>0){for(a=m.length;a>0&&m[a-1]=="";)--a;av&&(v=m);for(y=b.Math.pow(4,t),v>y&&(y=v),N=(b.Math.log(y)-b.Math.log(1))/t,c=b.Math.exp(N),a=c,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),fP(e.a[1],r.c+t.b+o[0]-(o[1]-T)/2,o[1]);for(c=e.a,p=0,y=c.length;p0?(e.n.c.length-1)*e.i:0,o=new V(e.n);o.a1)for(o=An(a,0);o.b!=o.d.c;)for(r=l(Sn(o),238),c=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),hP(e.a[1],o.d+r.d+t[0]-(t[1]-T)/2,t[1]);else for(M=o.d+r.d,O=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(ze(t.n,t.n.c.length-1),211),f.e+f.d+r.g+a<=o&&(c=l(ze(t.n,t.n.c.length-1),211),c.f-e.f+r.f<=e.b||e.a.c.length==1))return w1e(t,r),!0;if(t.s+r.g<=o&&t.t+t.d+r.f+a<=e.f+e.b)return Fe(t.b,r),p=l(ze(t.n,t.n.c.length-1),211),Fe(t.n,new MP(t.s,p.f+p.a+t.i,t.i)),Z1e(l(ze(t.n,t.n.c.length-1),211),r),avt(t,r),!0}return!1}function G7(e,t,r,o){var a,c,f,p,m;if(m=za(e.e.Ah(),t),a=l(e.g,123),Mo(),l(t,69).vk()){for(f=0;f0||x0(a.b.d,e.b.d+e.b.a)==0&&o.b<0||x0(a.b.d+a.b.a,e.b.d)==0&&o.b>0){p=0;break}}else p=b.Math.min(p,Wmt(e,a,o));p=b.Math.min(p,cvt(e,c,p,o))}return p}function k0e(e,t){var r,o,a,c,f,p,m;if(e.b<2)throw Y(new jt("The vector chain must contain at least a source and a target point."));for(a=(un(e.b!=0),l(e.a.a.c,8)),NO(t,a.a,a.b),m=new SS((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),f=An(e,1);f.a=0&&c!=r))throw Y(new jt(GL));for(a=0,m=0;mue(Hd(f.g,f.d[0]).a)?(un(m.b>0),m.a.Xb(m.c=--m.b),Vw(m,f),a=!0):p.e&&p.e.gc()>0&&(c=(!p.e&&(p.e=new je),p.e).Kc(t),y=(!p.e&&(p.e=new je),p.e).Kc(r),(c||y)&&((!p.e&&(p.e=new je),p.e).Ec(f),++f.c));a||Ot(o.c,f)}function c_n(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J;return T=e.a.i+e.a.g/2,N=e.a.i+e.a.g/2,M=t.i+t.g/2,z=t.j+t.f/2,p=new Me(M,z),y=l(ve(t,(_n(),GT)),8),y.a=y.a+T,y.b=y.b+N,c=(p.b-y.b)/(p.a-y.a),o=p.b-c*p.a,U=r.i+r.g/2,J=r.j+r.f/2,m=new Me(U,J),v=l(ve(r,GT),8),v.a=v.a+T,v.b=v.b+N,f=(m.b-v.b)/(m.a-v.a),a=m.b-f*m.a,O=(o-a)/(f-c),y.am.a?(a=y.b.c,c=y.b.a-y.a,p=v-T-(m.a-y.a)*a/c,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?(a=m.b.c,c=m.b.a-m.a,p=v-T+(y.a-m.a)*a/c,f=b.Math.max(f,p),y=y.b,y&&(T+=y.c)):(m=m.b,v+=m.c);return f}function g_n(e,t,r){var o,a,c,f,p,m;for(o=0,c=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));c.e!=c.i.gc();)a=l(rn(c),19),f="",(!a.n&&(a.n=new ke(Rs,a,1,7)),a.n).i==0||(f=l(oe((!a.n&&(a.n=new ke(Rs,a,1,7)),a.n),0),158).a),p=new rrt(f),qs(p,a),Te(p,(h1(),_T),a),p.a=o++,p.d.a=a.i+a.g/2,p.d.b=a.j+a.f/2,p.e.a=b.Math.max(a.g,1),p.e.b=b.Math.max(a.f,1),Fe(t.e,p),eu(r.f,a,p),m=l(ve(a,(ed(),O2e)),103),m==(qi(),W1)&&(m=pf)}function hvt(e){var t,r,o;if(tE(l(F(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>=Co?(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 pvt(e,t){var r,o,a,c,f,p,m,y,v;for(c=new V(e.b);c.ar){t.Ug();return}switch(l(F(e,(Be(),Cte)),351).g){case 2:c=new Pue;break;case 0:c=new Lue;break;default:c=new jue}if(o=c.mg(e,a),!c.ng())switch(l(F(e,SB),352).g){case 2:o=Kmt(a,o);break;case 1:o=Mbt(a,o)}fxn(e,a,o),t.Ug()}function OC(e,t){var r,o,a,c,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,a=e.q.getDate(),r=e.q.getHours(),r+m>=24&&++a,c=new b.Date(e.q.getFullYear(),e.q.getMonth(),a,t+m,e.q.getMinutes()+y,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),f=e.q.getTime(),e.q.setTime(f+36e5),e.q.getHours()!=t&&e.q.setTime(f)}function w_n(e,t){var r,o,a,c;if(Gun(e.d,e.e),e.c.a.$b(),ue(le(F(t.j,(Be(),bD))))!=0||ue(le(F(t.j,bD)))!=0)for(r=jE,me(F(t.j,Ch))!==me((bp(),B1))&&Te(t.j,(Ie(),j1),(Dt(),!0)),c=l(F(t.j,qI),15).a,a=0;aa&&++y,Fe(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=z&&e.e[m.p]>M*e.b||se>=r*z)&&(Ot(N.c,p),p=new je,mo(f,c),c.a.$b(),y-=v,O=b.Math.max(O,y*e.b+U),y+=se,re=se,se=0,v=0,U=0);return new No(O,N)}function CJ(e){var t,r,o,a,c,f,p;if(!e.d){if(p=new aqe,t=D4,c=t.a.yc(e,t),c==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),ti(p,CJ(r));t.a.Ac(e)!=null,t.a.gc()==0}for(f=p.i,a=(!e.q&&(e.q=new ke(Ll,e,11,10)),new tn(e.q));a.e!=a.i.gc();++f)l(rn(a),408);ti(p,(!e.q&&(e.q=new ke(Ll,e,11,10)),e.q)),hy(p),e.d=new Qv((l(oe(Ne((a1(),Ut).o),9),20),p.i),p.g),e.e=l(p.g,685),e.e==null&&(e.e=fDt),Pu(e).b&=-17}return e.d}function nx(e,t,r,o){var a,c,f,p,m,y;if(y=za(e.e.Ah(),t),m=0,a=l(e.g,123),Mo(),l(t,69).vk()){for(f=0;f1||M==-1)if(T=l(U,72),N=l(v,72),T.dc())N.$b();else for(f=!!Po(t),c=0,p=e.a?T.Jc():T.Gi();p.Ob();)y=l(p.Pb(),57),a=l(Wd(e,y),57),a?(f?(m=N.bd(a),m==-1?N.Ei(c,a):c!=m&&N.Si(c,a)):N.Ei(c,a),++c):e.b&&!f&&(N.Ei(c,y),++c);else U==null?v.Wb(null):(a=Wd(e,U),a==null?e.b&&!Po(t)&&v.Wb(U):v.Wb(a))}function T_n(e,t){var r,o,a,c,f,p,m,y;for(r=new DFe,a=new $t(qt(si(t).a.Jc(),new L));an(a);)if(o=l(en(a),17),!fo(o)&&(p=o.c.i,Lbe(p,A$))){if(y=t0e(e,p,A$,T$),y==-1)continue;r.b=b.Math.max(r.b,y),!r.a&&(r.a=new je),Fe(r.a,p)}for(f=new $t(qt(Or(t).a.Jc(),new L));an(f);)if(c=l(en(f),17),!fo(c)&&(m=c.d.i,Lbe(m,T$))){if(y=t0e(e,m,T$,A$),y==-1)continue;r.d=b.Math.max(r.d,y),!r.c&&(r.c=new je),Fe(r.c,m)}return r}function A_n(e,t,r,o){var a,c,f,p,m,y,v;if(r.d.i!=t.i){for(a=new Xd(e),Jh(a,(zt(),gi)),Te(a,(Ie(),mr),r),Te(a,(Be(),Zr),(qi(),fa)),Ot(o.c,a),f=new aa,As(f,a),Ii(f,(He(),Kt)),p=new aa,As(p,a),Ii(p,Qt),v=r.d,Ji(r,f),c=new p0,qs(c,r),Te(c,ss,null),bo(c,p),Ji(c,v),y=new Xi(r.b,0);y.b1e6)throw Y(new j9("power of ten too big"));if(e<=sr)return jS(eL(ST[1],t),t);for(o=eL(ST[1],sr),a=o,r=Gs(e-sr),t=go(e%sr);Ea(r,sr)>0;)a=dE(a,o),r=El(r,sr);for(a=dE(a,eL(ST[1],t)),a=jS(a,sr),r=Gs(e-sr);Ea(r,sr)>0;)a=jS(a,sr),r=El(r,sr);return a=jS(a,t),a}function mvt(e){var t,r,o,a,c,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{a=!1,r.$g()&&r.ah("bk node placement breaks on "+p+" which should have been after "+v);break}if(!a)break}return r.$g()&&r.ah(t+" is feasible: "+a),a}function yvt(e,t){var r,o;o=l(ve(t,(_n(),Cp)),125),r=new Qu(0,t.j+t.f+o.a+e.b/2,new Qu(t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,(wh(),Sm),new Qu(-o.b-e.b/2+t.g/2,t.j-o.d-e.b/2,new Qu(-t.g/2,t.j-o.d,r))),r=new Qu(0,t.j+t.f+o.a,new Qu(-t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,ov,new Qu(t.g/2+o.c+e.b/2,t.j-o.d,new Qu(t.g/2,t.j-o.d-e.b/2,r))),Vn(t,hk,t.i-o.b),Vn(t,fk,t.i+o.c+t.g),Vn(t,r6t,t.j-o.d),Vn(t,Wne,t.j+o.a+t.f),Vn(t,Xf,l(ve(t,Sm),107).b.b.a)}function I0e(e,t,r,o){var a,c,f,p,m,y,v,T,N;if(c=new Xd(e),Jh(c,(zt(),_a)),Te(c,(Be(),Zr),(qi(),fa)),a=0,t){for(f=new aa,Te(f,(Ie(),mr),t),Te(c,mr,t.i),Ii(f,(He(),Kt)),As(f,c),N=Lf(t.e),y=N,v=0,T=y.length;v0){if(a<0&&v.a&&(a=m,c=y[0],o=0),a>=0){if(p=v.b,m==a&&(p-=o++,p==0))return 0;if(!TEt(t,y,v,p,f)){m=a-1,y[0]=c;continue}}else if(a=-1,!TEt(t,y,v,0,f))return 0}else{if(a=-1,co(v.c,0)==32){if(T=y[0],qdt(t,y),y[0]>T)continue}else if(Kan(t,v.c,y[0])){y[0]+=v.c.length;continue}return 0}return wNn(f,r)?y[0]:0}function C_n(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(v=new gP(new mYe(r)),p=we(uu,Ad,30,e.f.e.c.length,16,1),rhe(p,p.length),r[t.a]=0,y=new V(e.f.e);y.a=p.a?c.b>=p.b?(o.a=p.a+(c.a-p.a)/2+a,o.b=p.b+(c.b-p.b)/2-a-e.e.b):(o.a=p.a+(c.a-p.a)/2+a,o.b=c.b+(p.b-c.b)/2+a):c.b>=p.b?(o.a=c.a+(p.a-c.a)/2+a,o.b=p.b+(c.b-p.b)/2+a):(o.a=c.a+(p.a-c.a)/2+a,o.b=c.b+(p.b-c.b)/2-a-e.e.b))}function DC(e){var t,r,o,a,c,f,p,m;if(!e.f){if(m=new zue,p=new zue,t=D4,f=t.a.yc(e,t),f==null){for(c=new tn(ds(e));c.e!=c.i.gc();)a=l(rn(c),29),ti(m,DC(a));t.a.Ac(e)!=null,t.a.gc()==0}for(o=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));o.e!=o.i.gc();)r=l(rn(o),182),ae(r,104)&&Tn(p,l(r,20));hy(p),e.r=new yot(e,(l(oe(Ne((a1(),Ut).o),6),20),p.i),p.g),ti(m,e.r),hy(m),e.f=new Qv((l(oe(Ne(Ut.o),5),20),m.i),m.g),Pu(e).b&=-3}return e.f}function q7(){q7=K,m3e=Z(X(al,1),Bf,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),HLt=new RegExp(`[ -\r\f]+`);try{R4=Z(X(gCn,1),Rt,2093,0,[new eO((ude(),Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",jO((D9(),D9(),bI))))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm",jO(bI))),new eO(Xj("yyyy-MM-dd",jO(bI)))])}catch(e){if(e=ci(e),!ae(e,81))throw Y(e)}}function I_n(e){var t,r,o,a,c,f,p;for(r=null,p=null,o=l(F(e.b,(Be(),wte)),349),o==(nC(),AD)&&(r=new je,p=new je),f=new V(e.d);f.ar);return c}function vvt(e,t){var r,o,a,c;if(a=Bu(e.d,1)!=0,o=x7(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||me(F(t.j,(Be(),Ch)))===me((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oL(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Dt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Dt(),!1)),Te(t.j,e2,!0)),r=x7(e,t);do{if(bge(e),r==0)return 0;a=!a,c=r,oL(e,t,a,!1),r=x7(e,t)}while(c>r);return c}function O_n(e,t,r){var o,a,c,f,p;if(o=l(F(e,(Be(),gte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(p=new V(e.a);p.at.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),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 Me(e.a,e.b),tp(new Me(t.a,t.b),T)):null}function MC(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(c=0,f=e.t,a=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,Fe(e.n,new MP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a0?e.i:0)>t&&m>0&&(c=0,f+=m+e.i,a=b.Math.max(a,N),o+=m+e.i,m=0,N=0,r&&(++T,Fe(e.n,new MP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&Z1e(l(ze(e.n,T),211),y),c+=y.g+(p>0?e.i:0),++p;return a=b.Math.max(a,N),o+=m,r&&(e.r=a,e.d=o,tbe(e.j)),new ql(e.s,e.t,a,o)}function V7(e){var t,r,o;return r=me(ve(e,(Be(),jT)))===me((tL(),Bee))||me(ve(e,jT))===me(Mee)||me(ve(e,jT))===me(Pee)||me(ve(e,jT))===me(Fee)||me(ve(e,jT))===me(Uee)||me(ve(e,jT))===me(uD),o=me(ve(e,gB))===me((rL(),Rte))||me(ve(e,gB))===me(Lte)||me(ve(e,wD))===me((_1(),ak))||me(ve(e,wD))===me((_1(),KI)),t=me(ve(e,Ch))!==me((bp(),B1))||Ye(Ke(ve(e,tk)))||me(ve(e,jI))!==me((YS(),TI))||ue(le(ve(e,bD)))!=0||ue(le(ve(e,fte)))!=0,r||o||t}function CE(e){var t,r,o,a,c,f,p,m;if(!e.a){if(e.o=null,m=new tZe(e),t=new sqe,r=D4,p=r.a.yc(e,r),p==null){for(f=new tn(ds(e));f.e!=f.i.gc();)c=l(rn(f),29),ti(m,CE(c));r.a.Ac(e)!=null,r.a.gc()==0}for(a=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));a.e!=a.i.gc();)o=l(rn(a),182),ae(o,336)&&Tn(t,l(o,38));hy(t),e.k=new wot(e,(l(oe(Ne((a1(),Ut).o),7),20),t.i),t.g),ti(m,e.k),hy(m),e.a=new Qv((l(oe(Ne(Ut.o),4),20),m.i),m.g),Pu(e).b&=-2}return e.a}function M_n(e){var t,r,o,a,c,f,p,m,y,v,T,N;if(p=e.d,T=l(F(e,(Ie(),MT)),16),t=l(F(e,NT),16),!(!T&&!t)){if(c=ue(le(by(e,(Be(),_te)))),f=ue(le(by(e,HAe))),N=0,T){for(y=0,a=T.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),N+=o.o.a;N+=c*(T.gc()-1),p.d+=y+f}if(r=0,t){for(y=0,a=t.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),r+=o.o.a;r+=c*(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 L0e(e,t,r,o){var a,c,f,p,m,y,v;if(v=za(e.e.Ah(),t),a=0,c=l(e.g,123),m=null,Mo(),l(t,69).vk()){for(p=0;pp?1:-1:Vge(e.a,t.a,c),a==-1)T=-m,v=f==m?YW(t.a,p,e.a,c):XW(t.a,p,e.a,c);else if(T=f,f==m){if(a==0)return jf(),wI;v=YW(e.a,c,t.a,p)}else v=XW(e.a,c,t.a,p);return y=new Ob(T,v.length,v),F3(y),y}function F_n(e,t){var r,o,a,c;if(c=ivt(t),!t.c&&(t.c=new ke(Gu,t,9,9)),ei(new Et(null,(!t.c&&(t.c=new ke(Gu,t,9,9)),new St(t.c,16))),new EYe(c)),a=l(F(c,(Ie(),xa)),24),Mkn(t,a),a.Gc((Fo(),rl)))for(o=new tn((!t.c&&(t.c=new ke(Gu,t,9,9)),t.c));o.e!=o.i.gc();)r=l(rn(o),127),sNn(e,t,c,r);return l(ve(t,(Be(),mm)),185).gc()!=0&&Gwt(t,c),Ye(Ke(F(c,jAe)))&&a.Ec(eB),gr(c,yD)&&pQe(new E1e(ue(le(F(c,yD)))),c),me(ve(t,Wy))===me((pp(),Ig))?N3n(e,t,c):fNn(e,t,c),c}function Ta(e,t){var r,o,a,c,f,p,m;if(e==null)return null;if(c=e.length,c==0)return"";for(m=we(al,Bf,30,c,15,1),io(0,c,e.length),io(0,c,m.length),Cst(e,0,c,m,0),r=null,p=t,a=0,f=0;a0?yl(r.a,0,c-1):""):(io(0,c-1,e.length),e.substr(0,c-1)):r?r.a:e}function $_n(e,t,r){var o,a,c;if(gr(t,(Be(),Cs))&&(me(F(t,Cs))===me((ic(),xp))||me(F(t,Cs))===me(gm))||gr(r,Cs)&&(me(F(r,Cs))===me((ic(),xp))||me(F(r,Cs))===me(gm)))return 0;if(o=ji(t),a=_Tn(e,t,r),a!=0)return a;if(gr(t,(Ie(),Cr))&&gr(r,Cr)){if(c=na(L0(t,r,o,l(F(o,F1),15).a),L0(r,t,o,l(F(o,F1),15).a)),me(F(o,FI))===me((g1(),lD))&&me(F(t,$I))!==me(F(r,$I))&&(c=0),c<0)return sL(e,t,r),c;if(c>0)return sL(e,r,t),c}return Yvn(e,t,r)}function Evt(e,t){var r,o,a,c,f,p,m,y,v,T,N;for(o=new $t(qt(mp(t).a.Jc(),new L));an(o);)r=l(en(o),74),ae(oe((!r.b&&(r.b=new Tt(pn,r,4,7)),r.b),0),196)||(m=Yo(l(oe((!r.c&&(r.c=new Tt(pn,r,5,8)),r.c),0),83)),AC(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 ro,N.a=v-f,N.b=T-p,c=new Me(N.a,N.b),G_(c,t.g,t.f),N.a-=c.a,N.b-=c.b,f=v-N.a,p=T-N.b,y=new Me(N.a,N.b),G_(y,m.g,m.f),N.a-=y.a,N.b-=y.b,v=f+N.a,T=p+N.b,a=kC(r),E0(a,f),S0(a,p),y0(a,v),v0(a,T),Evt(e,m)))}function Ny(e,t){var r,o,a,c,f;if(f=l(t,140),xE(e),xE(f),f.b!=null){if(e.c=!0,e.b==null){e.b=we(Rn,Qn,30,f.b.length,15,1),ua(f.b,0,e.b,0,f.b.length);return}for(c=we(Rn,Qn,30,e.b.length+f.b.length,15,1),r=0,o=0,a=0;r=e.b.length?(c[a++]=f.b[o++],c[a++]=f.b[o++]):o>=f.b.length?(c[a++]=e.b[r++],c[a++]=e.b[r++]):f.b[o]0?e.i:0)),++t;for(h1e(e.n,m),e.d=r,e.r=o,e.g=0,e.f=0,e.e=0,e.o=Kr,e.p=Kr,c=new V(e.b);c.a0&&(a=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!a||zn(zn((t.a+=' "',t),a),'"'))),r=(!e.b&&(e.b=new Tt(pn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Tt(pn,e,5,8)),e.c.i<=1))),r?t.a+=" [":t.a+=" ",zn(t,Tde(new pq,new tn(e.b))),r&&(t.a+="]"),t.a+=jX,r&&(t.a+="["),zn(t,Tde(new pq,new tn(e.c))),r&&(t.a+="]"),t.a)}function U_n(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It;for(Ee=e.c,ye=t.c,r=_s(Ee.a,e,0),o=_s(ye.a,t,0),se=l(k0(e,(jo(),Cu)).Jc().Pb(),12),ft=l(k0(e,Ba).Jc().Pb(),12),de=l(k0(t,Cu).Jc().Pb(),12),It=l(k0(t,Ba).Jc().Pb(),12),J=Lf(se.e),qe=Lf(ft.g),re=Lf(de.e),lt=Lf(It.g),E1(e,o,ye),f=re,v=0,M=f.length;v0&&m[o]&&(M=rE(e.b,m[o],a)),U=b.Math.max(U,a.c.c.b+M);for(c=new V(v.e);c.av?new Pb((vd(),rv),r,t,y-v):y>0&&v>0&&(new Pb((vd(),rv),t,r,0),new Pb(rv,r,t,0))),f)}function q_n(e,t,r){var o,a,c;for(e.a=new je,c=An(t.b,0);c.b!=c.d.c;){for(a=l(Sn(c),41);l(F(a,(js(),Jf)),15).a>e.a.c.length-1;)Fe(e.a,new No(jE,ove));o=l(F(a,Jf),15).a,r==(vi(),as)||r==fs?(a.e.aue(le(l(ze(e.a,o),49).b))&&zG(l(ze(e.a,o),49),a.e.a+a.f.a)):(a.e.bue(le(l(ze(e.a,o),49).b))&&zG(l(ze(e.a,o),49),a.e.b+a.f.b))}}function Avt(e,t,r,o){var a,c,f,p,m,y,v;if(c=Gj(o),p=Ye(Ke(F(o,(Be(),RAe)))),(p||Ye(Ke(F(e,pB))))&&!tE(l(F(e,Zr),103)))a=WS(c),m=y0e(e,r,r==(jo(),Ba)?a:P6(a));else switch(m=new aa,As(m,e),t?(v=m.n,v.a=t.a-e.n.a,v.b=t.b-e.n.b,vmt(v,0,0,e.o.a,e.o.b),Ii(m,zyt(m,c))):(a=WS(c),Ii(m,r==(jo(),Ba)?a:P6(a))),f=l(F(o,(Ie(),xa)),24),y=m.j,c.g){case 2:case 1:(y==(He(),Wt)||y==dn)&&f.Ec((Fo(),XE));break;case 4:case 3:(y==(He(),Qt)||y==Kt)&&f.Ec((Fo(),XE))}return m}function _vt(e,t){var r,o,a,c,f,p;for(f=new dy(new Lw(e.f.b).a);f.b;){if(c=gE(f),a=l(c.jd(),598),t==1){if(a.yf()!=(vi(),il)&&a.yf()!=ff)continue}else if(a.yf()!=(vi(),as)&&a.yf()!=fs)continue;switch(o=l(l(c.kd(),49).b,84),p=l(l(c.kd(),49).a,197),r=p.c,a.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 V_n(e,t){var r,o,a,c,f,p,m,y,v,T;for(t.Tg("Simple node placement",1),T=l(F(e,(Ie(),t2)),317),p=0,c=new V(e.b);c.a1)throw Y(new jt(YL));m||(c=gh(t,o.Jc().Pb()),f.Ec(c))}return Oge(e,Zbe(e,t,r),f)}function K7(e,t,r){var o,a,c,f,p,m,y,v;if(wp(e.e,t))m=(Mo(),l(t,69).vk()?new nP(t,e):new xO(t,e)),N7(m.c,m.b),m3(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 ",DJ(e.b,t)):e.f&&(t.a+=" extends ",DJ(e.f,t)))}function Q_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 exn(e){var t,r,o,a;if(o=WJ((!e.c&&(e.c=ZO(Gs(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return o;if(t=mge(e)<0?1:0,r=e.e,a=(o.length+1+b.Math.abs(go(e.e)),new lS),t==1&&(a.a+="-"),e.e>0)if(r-=o.length-t,r>=0){for(a.a+="0.";r>fm.length;r-=fm.length)zot(a,fm);Eit(a,fm,go(r)),zn(a,(Yt(t,o.length+1),o.substr(t)))}else r=t-r,zn(a,yl(o,t,go(r))),a.a+=".",zn(a,hhe(o,go(r)));else{for(zn(a,(Yt(t,o.length+1),o.substr(t)));r<-fm.length;r+=fm.length)zot(a,fm);Eit(a,fm,go(-r))}return a.a}function MJ(e){var t,r,o,a,c,f,p,m,y;return!(e.k!=(zt(),Xr)||e.j.c.length<=1||(c=l(F(e,(Be(),Zr)),103),c==(qi(),fa))||(a=(wy(),(e.q?e.q:(At(),At(),xh))._b(ow)?o=l(F(e,ow),205):o=l(F(ji(e),zI),205),o),a==xB)||!(a==a2||a==s2)&&(f=ue(le(by(e,GI))),t=l(F(e,ED),125),!t&&(t=new efe(f,f,f,f)),y=ks(e,(He(),Kt)),m=t.d+t.a+(y.gc()-1)*f,m>e.o.b||(r=ks(e,Qt),p=t.d+t.a+(r.gc()-1)*f,p>e.o.b)))}function txn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;t.Tg("Orthogonal edge routing",1),y=ue(le(F(e,(Be(),tv)))),r=ue(le(F(e,Qy))),o=ue(le(F(e,$1))),N=new sW(0,r),z=0,f=new Xi(e.b,0),p=null,v=null,m=null,T=null;do v=f.b0?(O=(M-1)*r,p&&(O+=o),v&&(O+=o),O0;for(p=l(F(e.c.i,Yy),15).a,c=l(Au(lr(t.Mc(),new HYe(p)),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),f=new Ar,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),c.Gc(r))return!0;for(a=new $t(qt(Or(r).a.Jc(),new L));an(a);)o=l(en(a),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 Ivt(e,t,r){var o,a,c,f,p,m,y,v,T;for(T=new je,v=new Khe(0,r),c=0,yj(v,new BK(0,0,v,r)),a=0,y=new tn(e);y.e!=y.i.gc();)m=l(rn(y),19),o=l(ze(v.a,v.a.c.length-1),175),p=a+m.g+(l(ze(v.a,0),175).b.c.length==0?0:r),(p>t||Ye(Ke(ve(m,(ef(),LD)))))&&(a=0,c+=v.b+r,Ot(T.c,v),v=new Khe(c,r),o=new BK(0,v.f,v,r),yj(v,o),a=0),o.b.c.length==0||!Ye(Ke(ve(Br(m),(ef(),One))))&&(m.f>=o.o&&m.f<=o.f||o.a*.5<=m.f&&o.a*1.5>=m.f)?w1e(o,m):(f=new BK(o.s+o.r+r,v.f,v,r),yj(v,f),w1e(f,m)),a=m.i+m.g;return Ot(T.c,v),T}function PC(e){var t,r,o,a;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,a=0;a=e.b[a+1])a+=2;else if(r0)for(o=new Tu(l(wr(e.a,c),24)),At(),xi(o,new yce(t)),a=new Xi(c.b,0);a.b0&&o>=-6?o>=0?CO(c,r-go(e.e),"."):(CK(c,t-1,t-1,"0."),CO(c,t+1,Mf(fm,0,-go(o)-1))):(r-t>=1&&(CO(c,t,"."),++r),CO(c,r,"E"),o>0&&CO(c,++r,"+"),CO(c,++r,""+x3(Gs(o)))),e.g=c.a,e.g))}function dxn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe;o=ue(le(F(t,(Be(),DAe)))),Ee=l(F(t,qI),15).a,N=4,a=3,ye=20/Ee,O=!1,m=0,f=sr;do{for(c=m!=1,T=m!=0,qe=0,z=e.a,re=0,de=z.length;reEe)?(m=2,f=sr):m==0?(m=1,f=qe):(m=0,f=qe)):(O=qe>=f||f-qe=Co?Vo(r,p1e(o)):i_(r,o&Ei),f=new xW(10,null,0),Csn(e.a,f,p-1)):(r=(f.Km().length+c,new GN),Vo(r,f.Km())),t.e==0?(o=t.Im(),o>=Co?Vo(r,p1e(o)):i_(r,o&Ei)):Vo(r,t.Km()),l(f,521).b=r.a}}function fxn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z;if(!r.dc()){for(p=0,N=0,o=r.Jc(),M=l(o.Pb(),15).a;p0?1:kb(isNaN(o),isNaN(0)))>=0^(Yl(Gf),(b.Math.abs(p)<=Gf||p==0||isNaN(p)&&isNaN(0)?0:p<0?-1:p>0?1:kb(isNaN(p),isNaN(0)))>=0)?b.Math.max(p,o):(Yl(Gf),(b.Math.abs(o)<=Gf||o==0||isNaN(o)&&isNaN(0)?0:o<0?-1:o>0?1:kb(isNaN(o),isNaN(0)))>0?b.Math.sqrt(p*p+o*o):-b.Math.sqrt(p*p+o*o))}function bxn(e){var t,r,o,a;a=e.o,qw(),e.A.dc()||pr(e.A,T2e)?t=a.b:(e.D?t=b.Math.max(a.b,EC(e.f)):t=EC(e.f),e.A.Gc((sc(),JD))&&!e.B.Gc((Uu(),C4))&&(t=b.Math.max(t,EC(l(Wo(e.p,(He(),Qt)),256))),t=b.Math.max(t,EC(l(Wo(e.p,Kt),256)))),r=Lht(e),r&&(t=b.Math.max(t,r.b)),e.A.Gc(XD)&&(e.q==(qi(),Oh)||e.q==fa)&&(t=b.Math.max(t,eP(l(Wo(e.b,(He(),Qt)),129))),t=b.Math.max(t,eP(l(Wo(e.b,Kt),129))))),Ye(Ke(e.e.Rf().mf((_n(),uv))))?a.b=b.Math.max(a.b,t):a.b=t,o=e.f.i,o.d=0,o.a=t,NJ(e.f)}function mxn(e,t,r,o,a,c,f,p){var m,y,v,T;switch(m=Wl(Z(X(cCn,1),Rt,241,0,[t,r,o,a])),T=null,e.b.g){case 1:T=Wl(Z(X(Qxe,1),Rt,527,0,[new IG,new NG,new CG]));break;case 0:T=Wl(Z(X(Qxe,1),Rt,527,0,[new CG,new NG,new IG]));break;case 2:T=Wl(Z(X(Qxe,1),Rt,527,0,[new NG,new IG,new CG]))}for(v=new V(T);v.a1&&(m=y.Gg(m,e.a,p));return m.c.length==1?l(ze(m,m.c.length-1),241):m.c.length==2?rxn((at(0,m.c.length),l(m.c[0],241)),(at(1,m.c.length),l(m.c[1],241)),f,c):null}function wxn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M;a=new JR(e),c=new O0t,o=(n6(c.n),n6(c.p),Zs(c.c),n6(c.f),n6(c.o),Zs(c.q),Zs(c.d),Zs(c.g),Zs(c.k),Zs(c.e),Zs(c.i),Zs(c.j),Zs(c.r),Zs(c.b),N=t0t(c,a,null),rwt(c,a),N),t&&(m=new JR(t),f=P_n(m),Vbe(o,Z(X($ke,1),Rt,528,0,[f]))),T=!1,v=!1,r&&(m=new JR(r),qF in m.a&&(T=op(m,qF).oe().a),uAt in m.a&&(v=op(m,uAt).oe().a)),y=LQe(Bft(new sS,T),v),yyn(new iGe,o,y),qF in a.a&&Kl(a,qF,null),(T||v)&&(p=new aS,Zyt(y,p,T,v),Kl(a,qF,p)),O=new jXe(c),lpt(new uV(o),O),M=new FXe(c),lpt(new uV(o),M)}function yxn(e,t,r){var o,a,c,f,p,m,y;for(r.Tg("Find roots",1),e.a.c.length=0,a=An(t.b,0);a.b!=a.d.c;)o=l(Sn(a),41),o.b.b==0&&(Te(o,(Nr(),z1),(Dt(),!0)),Fe(e.a,o));switch(e.a.c.length){case 0:c=new $K(0,t,"DUMMY_ROOT"),Te(c,(Nr(),z1),(Dt(),!0)),Te(c,ene,!0),Gn(t.b,c);break;case 1:break;default:for(f=new $K(0,t,LF),m=new V(e.a);m.a=b.Math.abs(o.b)?(o.b=0,c.d+c.a>f.d&&c.df.c&&c.c0){if(t=new Zle(e.i,e.g),r=e.i,c=r<100?null:new Qg(r),e.Rj())for(o=0;o0){for(p=e.g,y=e.i,z3(e),c=y<100?null:new Qg(y),o=0;o>13|(e.m&15)<<9,a=e.m>>4&8191,c=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,ft=o*p,It=a*p,Lt=c*p,on=f*p,m!=0&&(ft+=r*m,It+=o*m,Lt+=a*m,on+=c*m),y!=0&&(It+=r*y,Lt+=o*y,on+=a*y),v!=0&&(Lt+=r*v,on+=o*v),T!=0&&(on+=r*T),O=lt&Hu,M=(ft&511)<<13,N=O+M,z=lt>>22,J=ft>>9,re=(It&262143)<<4,se=(Lt&31)<<17,U=z+J+re+se,Ee=It>>18,ye=Lt>>5,qe=(on&4095)<<8,de=Ee+ye+qe,U+=N>>22,N&=Hu,de+=U>>22,U&=Hu,de&=Ep,Ua(N,U,de)}function Dvt(e){var t,r,o,a,c,f,p;if(p=l(ze(e.j,0),12),p.g.c.length!=0&&p.e.c.length!=0)throw Y(new es("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(p.g.c.length!=0){for(c=Kr,r=new V(p.g);r.a0&&kmt(e,p,T);for(a=new V(T);a.a4)if(e.dk(t)){if(e.$k()){if(a=l(t,52),o=a.Bh(),m=o==e.e&&(e.kl()?a.vh(a.Ch(),e.gl())==e.hl():-1-a.Ch()==e.Jj()),e.ll()&&!m&&!o&&a.Gh()){for(c=0;ce.d[f.p]&&(r+=upe(e.b,c)*l(m.b,15).a,l1(e.a,Re(c)));for(;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function Axn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;for(t.Tg(OSt,1),O=new je,v=b.Math.max(e.a.c.length,l(F(e,(Ie(),F1)),15).a),r=v*l(F(e,fD),15).a,p=me(F(e,(Be(),PT)))===me((g1(),Gy)),U=new V(e.a);U.a0&&(y=e.n.a/c);break;case 2:case 4:a=e.i.o.b,a>0&&(y=e.n.b/a)}Te(e,(Ie(),nw),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!=Is)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 jC(e){var t,r,o,a,c,f,p,m,y,v;if(e.Nj())if(v=e.Cj(),m=e.Oj(),v>0)if(t=new vge(e.nj()),r=v,c=r<100?null:new Qg(r),DO(e,r,t.g),a=r==1?e.Gj(4,oe(t,0),null,0,m):e.Gj(6,t,null,-1,m),e.Kj()){for(o=new tn(t);o.e!=o.i.gc();)c=e.Mj(rn(o),c);c?(c.lj(a),c.mj()):e.Hj(a)}else c?(c.lj(a),c.mj()):e.Hj(a);else DO(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(At(),Io),null,-1,m));else if(e.Kj())if(v=e.Cj(),v>0){for(p=e.Dj(),y=v,DO(e,v,p),c=y<100?null:new Qg(y),o=0;o1&&hu(f)*ec(f)/2>p[0]){for(c=0;cp[c];)++c;M=new Rf(U,0,c+1),T=new hj(M),v=hu(f)/ec(f),m=GJ(T,t,new oS,r,o,a,v),br(wd(T.e),m),xS(V_(N,T),fx),O=new Rf(U,c+1,U.c.length),obe(N,O),U.c.length=0,y=0,Zot(p,p.length,0)}else z=N.b.c.length==0?null:ze(N.b,0),z!=null&&vK(N,0),y>0&&(p[y]=p[y-1]),p[y]+=hu(f)*ec(f),++y,Ot(U.c,f);return U}function Oxn(e,t){var r,o,a,c;r=t.b,c=new Tu(r.j),a=0,o=r.j,o.c.length=0,c0(l(Gb(e.b,(He(),Wt),(T0(),Q0)),16),r),a=H6(c,a,new GBe,o),c0(l(Gb(e.b,Wt,P1),16),r),a=H6(c,a,new qBe,o),c0(l(Gb(e.b,Wt,Z0),16),r),c0(l(Gb(e.b,Qt,Q0),16),r),c0(l(Gb(e.b,Qt,P1),16),r),a=H6(c,a,new VBe,o),c0(l(Gb(e.b,Qt,Z0),16),r),c0(l(Gb(e.b,dn,Q0),16),r),a=H6(c,a,new WBe,o),c0(l(Gb(e.b,dn,P1),16),r),a=H6(c,a,new KBe,o),c0(l(Gb(e.b,dn,Z0),16),r),c0(l(Gb(e.b,Kt,Q0),16),r),a=H6(c,a,new BBe,o),c0(l(Gb(e.b,Kt,P1),16),r),c0(l(Gb(e.b,Kt,Z0),16),r)}function Lxn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U;for(t.Tg("Layer size calculation",1),v=Kr,y=Di,a=!1,p=new V(e.b);p.a.5?J-=f*2*(M-.5):M<.5&&(J+=c*2*(.5-M)),a=p.d.b,Jz.a-U-v&&(J=z.a-U-v),p.n.a=t+J}}function Mxn(e){var t,r,o,a,c;if(o=l(F(e,(Be(),Cs)),166),o==(ic(),xp)){for(r=new $t(qt(si(e).a.Jc(),new L));an(r);)if(t=l(en(r),17),!ylt(t))throw Y(new _f(BX+z6(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==gm){for(c=new $t(qt(Or(e).a.Jc(),new L));an(c);)if(a=l(en(c),17),!ylt(a))throw Y(new _f(BX+z6(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 FC(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M;if(e.e&&e.c.c>19&&(t=k_(t),m=!m),f=y2n(t),c=!1,a=!1,o=!1,e.h==EL&&e.m==0&&e.l==0)if(a=!0,c=!0,f==-1)e=Pnt((m_(),KEe)),o=!0,m=!m;else return p=Nme(e,f),m&&jK(p),r&&(O1=Ua(0,0,0)),p;else e.h>>19&&(c=!0,e=k_(e),o=!0,m=!m);return f!=-1?ypn(e,f,m,c,r):hbe(e,t)<0?(r&&(c?O1=k_(e):O1=Ua(e.l,e.m,e.h)),Ua(0,0,0)):hAn(o?e:Ua(e.l,e.m,e.h),t,m,c,a,r)}function $J(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M;if(f=e.e,m=t.e,f==0)return t;if(m==0)return e;if(c=e.d,p=t.d,c+p==2)return r=Gi(e.a[0],$o),o=Gi(t.a[0],$o),f==m?(v=Ao(r,o),M=Ln(v),O=Ln(Rb(v,32)),O==0?new ap(f,M):new Ob(f,2,Z(X(Rn,1),Qn,30,15,[M,O]))):(jf(),k8(f<0?El(o,r):El(r,o),0)?v1(f<0?El(o,r):El(r,o)):I3(v1(ug(f<0?El(o,r):El(r,o)))));if(f==m)N=f,T=c>=p?XW(e.a,c,t.a,p):XW(t.a,p,e.a,c);else{if(a=c!=p?c>p?1:-1:Vge(e.a,t.a,c),a==0)return jf(),wI;a==1?(N=f,T=YW(e.a,c,t.a,p)):(N=m,T=YW(t.a,p,e.a,c))}return y=new Ob(N,T.length,T),F3(y),y}function jxn(e,t){var r,o,a,c,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();)a=l(f.Pb(),12),KK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&++r;for(p=e.r.a.ec().Jc();p.Ob();)a=l(p.Pb(),12),KK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&--r;for(m=t.w.a.ec().Jc();m.Ob();)a=l(m.Pb(),12),KK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++o;for(c=t.r.a.ec().Jc();c.Ob();)a=l(c.Pb(),12),KK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&--o;r=0)return r;switch(f0(rs(e,r))){case 2:{if(wt("",fg(e,r.ok()).ve())){if(m=WO(rs(e,r)),p=u_(rs(e,r)),v=Dme(e,t,m,p),v)return v;for(a=l0e(e,t),f=0,T=a.gc();f1)throw Y(new jt(YL));for(v=za(e.e.Ah(),t),o=l(e.g,123),f=0;f1,y=new Vd(N.b);Ts(y.a)||Ts(y.b);)m=l(Ts(y.a)?q(y.a):q(y.b),17),T=m.c==N?m.d:m.c,b.Math.abs(xs(Z(X($i,1),Pe,8,0,[T.i.n,T.n,T.a])).b-f.b)>1&&ESn(e,m,f,c,N)}}function Hxn(e){var t,r,o,a,c,f;if(a=new Xi(e.e,0),o=new Xi(e.a,0),e.d)for(r=0;rOZ;){for(c=t,f=0;b.Math.abs(t-c)0),a.a.Xb(a.c=--a.b),QAn(e,e.b-f,c,o,a),un(a.b0),o.a.Xb(o.c=--o.b)}if(!e.d)for(r=0;r0?(e.f[v.p]=O/(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]=O)}}function Gxn(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 qxn(e,t,r){var o,a,c,f;for(r.Tg("Graph transformation ("+e.a+")",1),f=jb(t.a),c=new V(t.b);c.aue(le(ve(o,pk)))+l(ve(o,Cp),125).d)throw Y(new _f("Invalid vertical constraints. Node "+o.k+" has a vertical constraint that is too low for its ancestors."));for(f=new tn((!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e));f.e!=f.i.gc();)c=l(rn(f),74),o=l(oe((!c.c&&(c.c=new Tt(pn,c,5,8)),c.c),0),19),Fvt(e,o,a)}function Wxn(e){q3();var t,r,o,a,c,f,p;for(p=new SZe,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 o7((x_(),X0)),e6(e,Ykt,new Ds(Z(X(nD,1),Rt,378,0,[o]))),f=new o7($y),e6(e,Kkt,new Ds(Z(X(nD,1),Rt,378,0,[f]))),a=new o7(Fy),e6(e,Wkt,new Ds(Z(X(nD,1),Rt,378,0,[a]))),c=new o7(qE),e6(e,Vkt,new Ds(Z(X(nD,1),Rt,378,0,[c]))),dJ(o.c,X0),dJ(a.c,Fy),dJ(c.c,qE),dJ(f.c,$y),p.a.c.length=0,li(p.a,o.c),li(p.a,oc(a.c)),li(p.a,c.c),li(p.a,oc(f.c)),p}function Kxn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M;for(t.Tg(nTt,1),O=ue(le(ve(e,(yh(),iv)))),f=ue(le(ve(e,(ef(),l4)))),p=l(ve(e,c4),100),gge((!e.a&&(e.a=new ke(En,e,10,11)),e.a)),v=Ivt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),O,f),!e.a&&(e.a=new ke(En,e,10,11)),y=new V(v);y.a0&&(e.a=m+(O-1)*c,t.c.b+=e.a,t.f.b+=e.a)),M.a.gc()!=0&&(N=new sW(1,c),O=U0e(N,t,M,U,t.f.b+m-t.c.b),O>0&&(t.f.b+=m+(O-1)*c))}function $vt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de;for(v=ue(le(F(e,(Be(),ym)))),o=ue(le(F(e,GAe))),N=new RG,Te(N,ym,v+o),y=t,J=y.d,U=y.c.i,re=y.d.i,z=ide(U.c),se=ide(re.c),a=new je,T=z;T<=se;T++)p=new Xd(e),Jh(p,(zt(),gi)),Te(p,(Ie(),mr),y),Te(p,Zr,(qi(),fa)),Te(p,EB,N),O=l(ze(e.b,T),26),T==z?E1(p,O.a.c.length-r,O):Oi(p,O),de=ue(le(F(y,_g))),de<0&&(de=0,Te(y,_g,de)),p.o.b=de,M=b.Math.floor(de/2),f=new aa,Ii(f,(He(),Kt)),As(f,p),f.n.b=M,m=new aa,Ii(m,Qt),As(m,p),m.n.b=M,Ji(y,f),c=new p0,qs(c,y),Te(c,ss,null),bo(c,m),Ji(c,J),Jmn(p,y,c),Ot(a.c,c),y=c;return a}function Jxn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;if(U=t.b.c.length,!(U<3)){for(O=we(Rn,Qn,30,U,15,1),T=0,v=new V(t.b);v.af)&&pi(e.b,l(z.b,17));++p}c=f}}}function BJ(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;for(m=l(bg(e,(He(),Kt)).Jc().Pb(),12).e,O=l(bg(e,Qt).Jc().Pb(),12).g,p=m.c.length,se=qd(l(ze(e.j,0),12));p-- >0;){for(U=(at(0,m.c.length),l(m.c[0],17)),a=(at(0,O.c.length),l(O.c[0],17)),re=a.d.e,c=_s(re,a,0),Kcn(U,a.d,c),bo(a,null),Ji(a,null),M=U.a,t&&Gn(M,new So(se)),o=An(a.a,0);o.b!=o.d.c;)r=l(Sn(o),8),Gn(M,new So(r));for(J=U.b,N=new V(a.b);N.a-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Ye(Ke(t))!=f3(e.k,0);case 1:return t!=null&&l(t,224).a!=Ln(e.k)<<24>>24;case 2:return t!=null&&l(t,183).a!=(Ln(e.k)&Ei);case 6:return t!=null&&f3(l(t,192).a,e.k);case 5:return t!=null&&l(t,15).a!=Ln(e.k);case 7:return t!=null&&l(t,193).a!=Ln(e.k)<<16>>16;case 3:return t!=null&&ue(le(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 dL(e,t,r){var o,a,c,f;return e.ml()&&e.ll()&&(f=QV(e,l(r,57)),me(f)!==me(r))?(e.vj(t),e.Bj(t,fdt(e,t,f)),e.$k()&&(c=(a=l(r,52),e.kl()?e.il()?a.Qh(e.b,Po(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),null):a.Qh(e.b,Ur(a.Ah(),Po(l(Nt(Ja(e.b),e.Jj()),20))),null,null):a.Qh(e.b,-1-e.Jj(),null,null)),!l(f,52).Mh()&&(c=(o=l(f,52),e.kl()?e.il()?o.Oh(e.b,Po(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),c):o.Oh(e.b,Ur(o.Ah(),Po(l(Nt(Ja(e.b),e.Jj()),20))),null,c):o.Oh(e.b,-1-e.Jj(),null,c))),c&&c.mj()),Ju(e.b)&&e.Hj(e.Gj(9,r,f,t,!1)),f):r}function Bvt(e){var t,r,o,a,c,f,p,m,y,v;for(o=new je,f=new V(e.e.a);f.a0&&(f=b.Math.max(f,vht(e.C.b+o.d.b,a))),v=o,T=a,N=c;e.C&&e.C.c>0&&(O=N+e.C.c,y&&(O+=v.d.c),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(T-1)<=nf||T==1||isNaN(T)&&isNaN(1)?0:O/(1-T)))),r.n.b=0,r.a.a=f}function Hvt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O;if(r=l(Wo(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((xu(),Rp)),f=0,e.A.Gc((sc(),xm))&&hyt(e,t),p=m.Jc(),v=null,N=0,T=0;p.Ob();)o=l(p.Pb(),116),c=ue(le(o.b.mf((z8(),m$)))),a=o.b.Kf().b,v?(O=T+v.d.a+e.w+o.d.d,f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-c)<=nf||N==c||isNaN(N)&&isNaN(c)?0:O/(c-N)))):e.C&&e.C.d>0&&(f=b.Math.max(f,vht(e.C.d+o.d.d,c))),v=o,N=c,T=a;e.C&&e.C.a>0&&(O=T+e.C.a,y&&(O+=v.d.a),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-1)<=nf||N==1||isNaN(N)&&isNaN(1)?0:O/(1-N)))),r.n.d=0,r.a.b=f}function zvt(e,t,r){var o,a,c,f,p,m;for(this.g=e,p=t.d.length,m=r.d.length,this.d=we(Nh,vg,9,p+m,0,1),f=0;f0?pK(this,this.f/this.a):Hd(t.g,t.d[0]).a!=null&&Hd(r.g,r.d[0]).a!=null?pK(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?pK(this,Hd(t.g,t.d[0]).a):Hd(r.g,r.d[0]).a!=null&&pK(this,Hd(r.g,r.d[0]).a)}function Zxn(e,t,r,o,a,c,f,p){var m,y,v,T,N,O,M,U,z,J;if(M=!1,y=Hme(r.q,t.f+t.b-r.q.f),O=o.f>t.b&&p,J=a-(r.q.e+y-f),T=(m=MC(o,J,!1),m.a),O&&T>o.f)return!1;if(O){for(N=0,z=new V(t.d);z.a=(at(c,e.c.length),l(e.c[c],189)).e,!O&&T>t.b&&!v)?!1:((v||O||T<=t.b)&&(v&&T>t.b?(r.d=T,u6(r,mmt(r,T))):(Cbt(r.q,y),r.c=!0),u6(o,a-(r.s+r.r)),U6(o,r.q.e+r.q.d,t.f),yj(t,o),e.c.length>c&&(q6((at(c,e.c.length),l(e.c[c],189)),o),(at(c,e.c.length),l(e.c[c],189)).a.c.length==0&&sg(e,c)),M=!0),M)}function Qxn(e){var t,r,o;for(bE(J1,Z(X(GE,1),Rt,139,0,[new que])),r=new Xue(e),o=0;o0&&(Yt(0,r.length),r.charCodeAt(0)!=47)))throw Y(new jt("invalid opaquePart: "+r));if(e&&!(t!=null&&VN(EU,t.toLowerCase()))&&!(r==null||!sY(r,O4,L4)))throw Y(new jt(FAt+r));if(e&&t!=null&&VN(EU,t.toLowerCase())&&!V0n(r))throw Y(new jt(FAt+r));if(!Qgn(o))throw Y(new jt("invalid device: "+o));if(!Kpn(a))throw f=a==null?"invalid segments: null":"invalid segment: "+Upn(a),Y(new jt(f));if(!(c==null||Nf(c,Qa(35))==-1))throw Y(new jt("invalid query: "+c))}function qvt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J;if(N=new So(e.o),J=t.a/N.a,p=t.b/N.b,U=t.a-N.a,c=t.b-N.b,r)for(a=me(F(e,(Be(),Zr)))===me((qi(),fa)),M=new V(e.j);M.a=1&&(z-f>0&&T>=0?(m.n.a+=U,m.n.b+=c*f):z-f<0&&v>=0&&(m.n.a+=U*z,m.n.b+=c));e.o.a=t.a,e.o.b=t.b,Te(e,(Be(),mm),(sc(),o=l(md(N4),10),new Hc(o,l(Gl(o,o.length),10),0)))}function ikn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J;if(r.Tg("Network simplex layering",1),e.b=t,J=l(F(t,(Be(),qI)),15).a*4,z=e.b.a,z.c.length<1){r.Ug();return}for(c=YTn(e,z),U=null,a=An(c,0);a.b!=a.d.c;){for(o=l(Sn(a),16),p=J*go(b.Math.sqrt(o.gc())),f=cAn(o),TJ(Qce(UQt(ele(LV(f),p),U),!0),r.dh(1)),N=e.b.b,M=new V(f.a);M.a1)for(U=we(Rn,Qn,30,e.b.b.c.length,15,1),T=0,y=new V(e.b.b);y.a0){n7(e,r,0),r.a+=String.fromCharCode(o),a=L1n(t,c),n7(e,r,a),c+=a-1;continue}o==39?c+10&&M.a<=0){m.c.length=0,Ot(m.c,M);break}O=M.i-M.d,O>=p&&(O>p&&(m.c.length=0,p=O),Ot(m.c,M))}m.c.length!=0&&(f=l(ze(m,u7(a,m.c.length)),117),se.a.Ac(f)!=null,f.g=v++,x0e(f,t,r,o),m.c.length=0)}for(z=e.c.length+1,N=new V(e);N.aDi||t.o==Em&&v=p&&a<=m)p<=a&&c<=m?(r[v++]=a,r[v++]=c,o+=2):p<=a?(r[v++]=a,r[v++]=m,e.b[o]=m+1,f+=2):c<=m?(r[v++]=p,r[v++]=c,o+=2):(r[v++]=p,r[v++]=m,e.b[o]=m+1);else if(mwg)&&p<10);tle(e.c,new o9),Vvt(e),Osn(e.c),Vxn(e.f)}function bkn(e,t){var r,o,a,c,f,p,m,y,v,T,N;switch(e.k.g){case 1:if(o=l(F(e,(Ie(),mr)),17),r=l(F(o,vTe),79),r?Ye(Ke(F(o,Ag)))&&(r=Hge(r)):r=new Du,y=l(F(e,Cd),12),y){if(v=xs(Z(X($i,1),Pe,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(F(e,Nl),12),T){if(N=xs(Z(X($i,1),Pe,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&&I6(y,!0,(vi(),fs)),p.k==(zt(),mi)&&Yst(y),Jn(e.f,p,t)}}function Kvt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re;for(y=Kr,v=Kr,p=Di,m=Di,N=new V(t.i);N.a=e.j?(++e.j,Fe(e.b,Re(1)),Fe(e.c,v)):(o=e.d[t.p][1],nc(e.b,y,Re(l(ze(e.b,y),15).a+1-o)),nc(e.c,y,ue(le(ze(e.c,y)))+v-o*e.f)),(e.r==(_1(),SD)&&(l(ze(e.b,y),15).a>e.k||l(ze(e.b,y-1),15).a>e.k)||e.r==TD&&(ue(le(ze(e.c,y)))>e.n||ue(le(ze(e.c,y-1)))>e.n))&&(m=!1),f=new $t(qt(si(t).a.Jc(),new L));an(f);)c=l(en(f),17),p=c.c.i,e.g[p.p]==y&&(T=Yvt(e,p),a=a+l(T.a,15).a,m=m&&Ye(Ke(T.b)));return e.g[t.p]=y,a=a+e.d[t.p][0],new No(Re(a),(Dt(),!!m))}function wkn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;return N=e.c[t],O=e.c[r],M=l(F(N,(Ie(),RT)),16),!!M&&M.gc()!=0&&M.Gc(O)||(U=N.k!=(zt(),gi)&&O.k!=gi,z=l(F(N,tw),9),J=l(F(O,tw),9),re=z!=J,se=!!z&&z!=N||!!J&&J!=O,de=IY(N,(He(),Wt)),Ee=IY(O,dn),se=se|(IY(N,dn)||IY(O,Wt)),ye=se&&re||de||Ee,U&&ye)||N.k==(zt(),_a)&&O.k==Xr||O.k==(zt(),_a)&&N.k==Xr?!1:(v=e.c[t],c=e.c[r],a=Ebt(e.e,v,c,(He(),Kt)),m=Ebt(e.i,v,c,Qt),z2n(e.f,v,c),y=Opt(e.b,v,c)+l(a.a,15).a+l(m.a,15).a+e.f.d,p=Opt(e.b,c,v)+l(a.b,15).a+l(m.b,15).a+e.f.b,e.a&&(T=l(F(v,mr),12),f=l(F(c,mr),12),o=obt(e.g,T,f),y+=l(o.a,15).a,p+=l(o.b,15).a),y>p)}function Jvt(e,t){var r,o,a,c,f;r=ue(le(F(t,(Be(),od)))),r<2&&Te(t,od,2),o=l(F(t,xc),87),o==(vi(),hf)&&Te(t,xc,Gj(t)),a=l(F(t,CIt),15),a.a==0?Te(t,(Ie(),LT),new iY):Te(t,(Ie(),LT),new WP(a.a)),c=Ke(F(t,HI)),c==null&&Te(t,HI,(Dt(),me(F(t,kp))===me((gp(),Ek)))),ei(new Et(null,new St(t.a,16)),new mce(e)),ei(bs(new Et(null,new St(t.b,16)),new r9),new wce(e)),f=new Gvt(t),Te(t,(Ie(),t2),f),M3(e.a),pc(e.a,(Vi(),id),l(F(t,jT),173)),pc(e.a,kh,l(F(t,gB),173)),pc(e.a,la,l(F(t,BI),173)),pc(e.a,da,l(F(t,yB),173)),pc(e.a,Ho,Uhn(l(F(t,kp),225))),sde(e.a,p3n(t)),Te(t,ste,FC(e.a,t))}function U0e(e,t,r,o,a){var c,f,p,m,y,v,T,N,O,M,U,z,J;for(T=new hn,f=new je,jmt(e,r,e.d.zg(),f,T),jmt(e,o,e.d.Ag(),f,T),e.b=.2*(U=G0t(bs(new Et(null,new St(f,16)),new pHe)),z=G0t(bs(new Et(null,new St(f,16)),new gHe)),b.Math.min(U,z)),c=0,p=0;p=2&&(J=hwt(f,!0,N),!e.e&&(e.e=new GJe(e)),R1n(e.e,J,f,e.b)),Bbt(f,N),_kn(f),O=-1,v=new V(f);v.al(ve(y,PD),15).a?(Ot(t.c,y),Ot(r.c,f)):(Ot(t.c,f),Ot(r.c,y))),a=new je,v=new GGe,v.a=0,v.b=0,o=(at(0,e.c.length),l(e.c[0],19)),Ot(a.c,o),p=1;p0&&(r+=m.n.a+m.o.a/2,++T),M=new V(m.j);M.a0&&(r/=T),J=we(Ki,Jo,30,o.a.c.length,15,1),p=0,y=new V(o.a);y.a-1){for(a=An(p,0);a.b!=a.d.c;)o=l(Sn(a),134),o.v=f;for(;p.b!=0;)for(o=l($Y(p,0),134),r=new V(o.i);r.a-1){for(c=new V(p);c.a0)&&(rce(m,b.Math.min(m.o,a.o-1)),S9(m,m.i-1),m.i==0&&Ot(p.c,m))}}function Qvt(e,t,r,o,a){var c,f,p,m;return m=Kr,f=!1,p=O0e(e,Li(new Me(t.a,t.b),e),br(new Me(r.a,r.b),a),Li(new Me(o.a,o.b),r)),c=!!p&&!(b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0||b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0),p=O0e(e,Li(new Me(t.a,t.b),e),r,a),p&&((b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0)==(b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0)||c?m=b.Math.min(m,O3(Li(p,r))):f=!0),p=O0e(e,Li(new Me(t.a,t.b),e),o,a),p&&(f||(b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0)==(b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0)||c)&&(m=b.Math.min(m,O3(Li(p,o)))),m}function eEt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,N1),J2t),"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 n9),Ga))),Le(e,N1,wx,Ge($2e)),Le(e,N1,IL,(Dt(),!0)),Le(e,N1,ME,Ge(Okt)),Le(e,N1,mT,Ge(Lkt)),Le(e,N1,bT,Ge(Dkt)),Le(e,N1,Ex,Ge(Rkt)),Le(e,N1,yx,Ge(U2e)),Le(e,N1,Sx,Ge(Mkt)),Le(e,N1,kwe,Ge(F2e)),Le(e,N1,Cwe,Ge(P2e)),Le(e,N1,Iwe,Ge(j2e)),Le(e,N1,Rwe,Ge(B2e)),Le(e,N1,Nwe,Ge(S$))}function xkn(e){var t,r,o,a,c,f,p,m;for(t=null,o=new V(e);o.a0&&r.c==0&&(!t&&(t=new je),Ot(t.c,r));if(t)for(;t.c.length!=0;){if(r=l(sg(t,0),242),r.b&&r.b.c.length>0){for(c=(!r.b&&(r.b=new je),new V(r.b));c.a_s(e,r,0))return new No(a,r)}else if(ue(Hd(a.g,a.d[0]).a)>ue(Hd(r.g,r.d[0]).a))return new No(a,r)}for(p=(!r.e&&(r.e=new je),r.e).Jc();p.Ob();)f=l(p.Pb(),242),m=(!f.b&&(f.b=new je),f.b),ry(0,m.c.length),t3(m.c,0,r),f.c==m.c.length&&Ot(t.c,f)}return null}function $C(e,t){var r,o,a,c,f,p,m,y,v;if(t.e==5){Wvt(e,t);return}if(y=t,!(y.b==null||e.b==null)){for(xE(e),PC(e),xE(y),PC(y),r=we(Rn,Qn,30,e.b.length+y.b.length,15,1),v=0,o=0,f=0;o=p&&a<=m)p<=a&&c<=m?o+=2:p<=a?(e.b[o]=m+1,f+=2):c<=m?(r[v++]=a,r[v++]=p-1,o+=2):(r[v++]=a,r[v++]=p-1,e.b[o]=m+1,f+=2);else if(m0),l(v.a.Xb(v.c=--v.b),17));c!=o&&v.b>0;)e.a[c.p]=!0,e.a[o.p]=!0,c=(un(v.b>0),l(v.a.Xb(v.c=--v.b),17));v.b>0&&Mu(v)}}function tEt(e,t,r){var o,a,c,f,p,m,y,v,T,N;if(r)for(o=-1,v=new Xi(t,0);v.b0?a-=864e5:a+=864e5,m=new Jde(Ao(Gs(t.q.getTime()),a))),v=new lS,y=e.a.length,c=0;c=97&&o<=122||o>=65&&o<=90){for(f=c+1;f=y)throw Y(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),p3(r.a,"[...]")):(p=HS(o),y=new Kw(t),up(r,rEt(p,y))):ae(o,172)?up(r,pvn(l(o,172))):ae(o,198)?up(r,ewn(l(o,198))):ae(o,203)?up(r,ayn(l(o,203))):ae(o,2090)?up(r,twn(l(o,2090))):ae(o,54)?up(r,hvn(l(o,54))):ae(o,591)?up(r,xvn(l(o,591))):ae(o,838)?up(r,fvn(l(o,838))):ae(o,109)&&up(r,dvn(l(o,109))):up(r,o==null?tu:ms(o));return r.a?r.e.length==0?r.a.a:r.a.a+(""+r.e):r.c}function ix(e,t){var r,o,a,c;c=e.F,t==null?(e.F=null,I_(e,null)):(e.F=(Mt(t),t),o=Nf(t,Qa(60)),o!=-1?(a=(io(0,o,t.length),t.substr(0,o)),Nf(t,Qa(46))==-1&&!wt(a,uT)&&!wt(a,uI)&&!wt(a,KF)&&!wt(a,cI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)&&(a=XAt),r=j8(t,Qa(62)),r!=-1&&(a+=""+(Yt(r+1,t.length+1),t.substr(r+1))),I_(e,a)):(a=t,Nf(t,Qa(46))==-1&&(o=Nf(t,Qa(91)),o!=-1&&(a=(io(0,o,t.length),t.substr(0,o))),!wt(a,uT)&&!wt(a,uI)&&!wt(a,KF)&&!wt(a,cI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)?(a=XAt,o!=-1&&(a+=""+(Yt(o,t.length+1),t.substr(o)))):a=t),I_(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,5,c,t))}function Lkn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M;if(e.c=e.e,M=Ke(F(t,(Be(),IIt))),O=M==null||(Mt(M),M),c=l(F(t,(Ie(),xa)),24).Gc((Fo(),rl)),a=l(F(t,Zr),103),r=!(a==(qi(),_m)||a==Oh||a==fa),O&&(r||!c)){for(T=new V(t.a);T.a=0)return a=qgn(e,(io(1,f,t.length),t.substr(1,f-1))),v=(io(f+1,m,t.length),t.substr(f+1,m-(f+1))),o3n(e,v,a)}else{if(r=-1,QEe==null&&(QEe=new RegExp("\\d")),QEe.test(String.fromCharCode(p))&&(r=lfe(t,Qa(46),m-1),r>=0)){o=l(WW(e,xft(e,(io(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)),Qi,sr)}catch(N){throw N=ci(N),ae(N,133)?(c=N,Y(new oj(c))):Y(N)}if(y>16==-10?r=l(e.Cb,294).Wk(t,r):e.Db>>16==-15&&(!t&&(t=(_t(),bf)),!y&&(y=(_t(),bf)),e.Cb.Vh()&&(m=new cp(e.Cb,1,13,y,t,gg(Fu(l(e.Cb,62)),e),!1),r?r.lj(m):r=m));else if(ae(e.Cb,89))e.Db>>16==-23&&(ae(t,89)||(t=(_t(),Ml)),ae(y,89)||(y=(_t(),Ml)),e.Cb.Vh()&&(m=new cp(e.Cb,1,10,y,t,gg(oa(l(e.Cb,29)),e),!1),r?r.lj(m):r=m));else if(ae(e.Cb,449))for(p=l(e.Cb,842),f=(!p.b&&(p.b=new N9(new iq)),p.b),c=(o=new dy(new Lw(f.a).a),new C9(o));c.a.b;)a=l(gE(c.a).jd(),88),r=ox(a,O7(a,p),r)}return r}function Mkn(e,t){var r,o,a,c,f,p,m,y,v,T,N;for(f=Ye(Ke(ve(e,(Be(),Ky)))),N=l(ve(e,Xy),24),m=!1,y=!1,T=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));T.e!=T.i.gc()&&(!m||!y);){for(c=l(rn(T),127),p=0,a=hh(Wc(Z(X(nl,1),Rt,22,0,[(!c.d&&(c.d=new Tt(Ir,c,8,5)),c.d),(!c.e&&(c.e=new Tt(Ir,c,7,4)),c.e)])));an(a)&&(o=l(en(a),74),v=f&&R0(o)&&Ye(Ke(ve(o,bm))),r=Pvt((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),c)?e==Br(Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83))):e==Br(Yo(l(oe((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),0),83))),!((v||r)&&(++p,p>1))););(p>0||N.Gc((xu(),Rp))&&(!c.n&&(c.n=new ke(Rs,c,1,7)),c.n).i>0)&&(m=!0),p>1&&(y=!0)}m&&t.Ec((Fo(),rl)),y&&t.Ec((Fo(),CI))}function oEt(e){var t,r,o,a,c,f,p,m,y,v,T,N;if(N=l(ve(e,(_n(),Am)),24),N.dc())return null;if(p=0,f=0,N.Gc((sc(),XD))){for(v=l(ve(e,bk),103),o=2,r=2,a=2,c=2,t=Br(e)?l(ve(Br(e),Tm),87):l(ve(e,Tm),87),y=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));y.e!=y.i.gc();)if(m=l(rn(y),127),T=l(ve(m,m2),64),T==(He(),Is)&&(T=_0e(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:a=b.Math.max(a,m.i+m.g);break;case 4:c=b.Math.max(c,m.j+m.f)}else switch(T.g){case 1:o+=m.g+2;break;case 2:r+=m.f+2;break;case 3:a+=m.g+2;break;case 4:c+=m.f+2}p=b.Math.max(o,a),f=b.Math.max(r,c)}return M0(e,p,f,!0,!0)}function Pkn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U;for(a=null,o=new V(t.a);o.a1)for(a=e.e.b,Gn(e.e,m),p=m.a.ec().Jc();p.Ob();)f=l(p.Pb(),9),Jn(e.c,f,Re(a))}}function jkn(e,t,r,o){var a,c,f,p,m,y,v,T,N,O;for(c=new m0t(t),T=aTn(e,t,c),O=b.Math.max(ue(le(F(t,(Be(),_g)))),1),v=new V(T.a);v.a=0){for(m=null,p=new Xi(v.a,y+1);p.b0,y?y&&(N=J.p,f?++N:--N,T=l(ze(J.c.a,N),9),o=opt(T),O=!(vwt(o,ye,r[0])||pst(o,ye,r[0]))):O=!0),M=!1,Ee=t.D.i,Ee&&Ee.c&&p.e&&(v=f&&Ee.p>0||!f&&Ee.p=0&&Uf?1:kb(isNaN(0),isNaN(f)))<0&&(Yl(Gf),(b.Math.abs(f-1)<=Gf||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:kb(isNaN(f),isNaN(1)))<0)&&(Yl(Gf),(b.Math.abs(0-p)<=Gf||p==0||isNaN(0)&&isNaN(p)?0:0p?1:kb(isNaN(0),isNaN(p)))<0)&&(Yl(Gf),(b.Math.abs(p-1)<=Gf||p==1||isNaN(p)&&isNaN(1)?0:p<1?-1:p>1?1:kb(isNaN(p),isNaN(1)))<0)),c)}function qkn(e){var t,r,o,a,c,f,p,m,y,v,T;for(e.j=we(Rn,Qn,30,e.g,15,1),e.o=new je,ei(bs(new Et(null,new St(e.e.b,16)),new zUe),new $Je(e)),e.a=we(uu,Ad,30,e.b,16,1),D6(new Et(null,new St(e.e.b,16)),new UJe(e)),o=(T=new je,ei(lr(bs(new Et(null,new St(e.e.b,16)),new qUe),new BJe(e)),new Ntt(e,T)),T),m=new V(o);m.a=y.c.c.length?v=rpe((zt(),Xr),gi):v=rpe((zt(),gi),gi),v*=2,c=r.a.g,r.a.g=b.Math.max(c,c+(v-c)),f=r.b.g,r.b.g=b.Math.max(f,f+(v-f)),a=t}}function J7(e,t){var r;if(e.e)throw Y(new es((np(eee),CX+eee.k+IX)));if(!Len(e.a,t))throw Y(new Es(N2t+t+C2t));if(t==e.d)return e;switch(r=e.d,e.d=t,r.g){case 0:switch(t.g){case 2:C0(e);break;case 1:m1(e),C0(e);break;case 4:TE(e),C0(e);break;case 3:TE(e),m1(e),C0(e)}break;case 2:switch(t.g){case 1:m1(e),wJ(e);break;case 4:TE(e),C0(e);break;case 3:TE(e),m1(e),C0(e)}break;case 1:switch(t.g){case 2:m1(e),wJ(e);break;case 4:m1(e),TE(e),C0(e);break;case 3:m1(e),TE(e),m1(e),C0(e)}break;case 4:switch(t.g){case 2:TE(e),C0(e);break;case 1:TE(e),m1(e),C0(e);break;case 3:m1(e),wJ(e)}break;case 3:switch(t.g){case 2:m1(e),TE(e),C0(e);break;case 1:m1(e),TE(e),m1(e),C0(e);break;case 4:m1(e),wJ(e)}}return e}function RE(e,t){var r;if(e.d)throw Y(new es((np(pee),CX+pee.k+IX)));if(!Den(e.a,t))throw Y(new Es(N2t+t+C2t));if(t==e.c)return e;switch(r=e.c,e.c=t,r.g){case 0:switch(t.g){case 2:Wb(e);break;case 1:b1(e),Wb(e);break;case 4:AE(e),Wb(e);break;case 3:AE(e),b1(e),Wb(e)}break;case 2:switch(t.g){case 1:b1(e),yJ(e);break;case 4:AE(e),Wb(e);break;case 3:AE(e),b1(e),Wb(e)}break;case 1:switch(t.g){case 2:b1(e),yJ(e);break;case 4:b1(e),AE(e),Wb(e);break;case 3:b1(e),AE(e),b1(e),Wb(e)}break;case 4:switch(t.g){case 2:AE(e),Wb(e);break;case 1:AE(e),b1(e),Wb(e);break;case 3:b1(e),yJ(e)}break;case 3:switch(t.g){case 2:b1(e),AE(e),Wb(e);break;case 1:b1(e),AE(e),b1(e),Wb(e);break;case 4:b1(e),yJ(e)}}return e}function Vkn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;for(T=e.b,v=new Xi(T,0),Vw(v,new ra(e)),re=!1,f=1;v.b0&&(t.a+=ja),X7(l(rn(p),176),t);for(t.a+=jX,m=new SS((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c));m.e!=m.i.gc();)m.e>0&&(t.a+=ja),X7(l(rn(m),176),t);t.a+=")"}}function Wkn(e,t,r){var o,a,c,f,p,m,y,v;for(m=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));m.e!=m.i.gc();)for(p=l(rn(m),19),a=new $t(qt(mp(p).a.Jc(),new L));an(a);){if(o=l(en(a),74),!o.b&&(o.b=new Tt(pn,o,4,7)),!(o.b.i<=1&&(!o.c&&(o.c=new Tt(pn,o,5,8)),o.c.i<=1)))throw Y(new cS("Graph must not contain hyperedges."));if(!AC(o)&&p!=Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)))for(y=new Ait,qs(y,o),Te(y,(h1(),_T),o),bZt(y,l(Ss(ts(r.f,p)),156)),mZt(y,l(Ht(r,Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83))),156)),Fe(t.c,y),f=new tn((!o.n&&(o.n=new ke(Rs,o,1,7)),o.n));f.e!=f.i.gc();)c=l(rn(f),158),v=new Mct(y,c.a),qs(v,c),Te(v,_T,c),v.e.a=b.Math.max(c.g,1),v.e.b=b.Math.max(c.f,1),R0e(v),Fe(t.d,v)}}function Kkn(e,t,r){var o,a,c,f,p,m,y,v,T,N;switch(r.Tg("Node promotion heuristic",1),e.i=t,e.r=l(F(t,(Be(),wD)),246),e.r!=(_1(),ak)&&e.r!=KI?vNn(e):zSn(e),v=l(F(e.i,CAe),15).a,c=new d$e,e.r.g){case 2:case 1:rx(e,c);break;case 3:for(e.r=NB,rx(e,c),m=0,p=new V(e.b);p.ae.k&&(e.r=SD,rx(e,c));break;case 4:for(e.r=NB,rx(e,c),y=0,a=new V(e.c);a.ae.n&&(e.r=TD,rx(e,c));break;case 6:N=go(b.Math.ceil(e.g.length*v/100)),rx(e,new FYe(N));break;case 5:T=go(b.Math.ceil(e.e*v/100)),rx(e,new $Ye(T));break;case 8:HEt(e,!0);break;case 9:HEt(e,!1);break;default:rx(e,c)}e.r!=ak&&e.r!=KI?cSn(e,t):NTn(e,t),r.Ug()}function Ykn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;for(T=new V0e(e),Aun(T,!(t==(vi(),il)||t==ff)),v=T.a,N=new oS,a=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),f=0,m=a.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 uEt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M;for(N=r.d,T=r.c,c=new Me(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a),f=c.b,y=new V(e.a);y.a0&&(e.c[t.c.p][t.p].d+=Bu(e.i,24)*_L*.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 Xkn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;for(M=new V(e);M.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+a);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+a);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+a);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+a)}}}function dEt(e,t){var r,o,a,c,f,p,m,y,v;return y="",t.length==0?e.le(awe,eX,-1,-1):(v=Ey(t),wt(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=Ey((Yt(f+1,v.length+1),v.substr(f+1))),v=Ey((io(0,f,v.length),v.substr(0,f))))):(r=v.indexOf(")",f),y=(io(f+1,r,v.length),v.substr(f+1,r-(f+1))),v=Ey((io(0,f,v.length),v.substr(0,f)))),f=Nf(v,Qa(46)),f!=-1&&(v=(Yt(f+1,v.length+1),v.substr(f+1))),(v.length==0||wt(v,"Anonymous function"))&&(v=eX),p=j8(y,Qa(58)),a=lfe(y,Qa(58),p-1),m=-1,o=-1,c=awe,p!=-1&&a!=-1&&(c=(io(0,a,y.length),y.substr(0,a)),m=Grt((io(a+1,p,y.length),y.substr(a+1,p-(a+1)))),o=Grt((Yt(p+1,y.length+1),y.substr(p+1)))),e.le(c,v,m,o))}function Qkn(e){var t,r,o,a,c,f,p,m,y,v,T;for(y=new V(e);y.a0||v.j==Kt&&v.e.c.length-v.g.c.length<0)){t=!1;break}for(a=new V(v.g);a.a=y&&Ee>=z&&(N+=M.n.b+U.n.b+U.a.b-de,++p));if(r)for(f=new V(re.e);f.a=y&&Ee>=z&&(N+=M.n.b+U.n.b+U.a.b-de,++p))}p>0&&(ye+=N/p,++O)}O>0?(t.a=a*ye/O,t.g=O):(t.a=0,t.g=0)}function G0e(e,t,r,o){var a,c,f,p,m;return p=new V0e(t),V2n(p,o),a=!0,e&&e.nf((_n(),Tm))&&(c=l(e.mf((_n(),Tm)),87),a=c==(vi(),hf)||c==as||c==fs),oyt(p,!1),Da(p.e.Pf(),new gfe(p,!1,a)),_W(p,p.f,(Sd(),Bs),(He(),Wt)),_W(p,p.f,Us,dn),_W(p,p.g,Bs,Kt),_W(p,p.g,Us,Qt),E1t(p,Wt),E1t(p,dn),aat(p,Qt),aat(p,Kt),qw(),f=p.A.Gc((sc(),hv))&&p.B.Gc((Uu(),QD))?Lgt(p):null,f&&GQt(p.a,f),Zkn(p),lmn(p),dmn(p),Nkn(p),FAn(p),jmn(p),gY(p,Wt),gY(p,dn),xTn(p),bxn(p),r&&(Jgn(p),Fmn(p),gY(p,Qt),gY(p,Kt),m=p.B.Gc((Uu(),C4)),Gmt(p,m,Wt),Gmt(p,m,dn),qmt(p,m,Qt),qmt(p,m,Kt),ei(new Et(null,new St(new Zh(p.i),0)),new qR),ei(lr(new Et(null,uhe(p.r).a.oc()),new VR),new RN),J0n(p),p.e.Nf(p.o),ei(new Et(null,uhe(p.r).a.oc()),new ON)),p.o}function tNn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U;for(y=Kr,o=new V(e.a.b);o.a1)for(O=new M0e(M,se,o),lo(se,new Rtt(e,O)),Ot(f.c,O),T=se.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(c,v.b);if(p.a.gc()>1)for(O=new M0e(M,p,o),lo(p,new Ott(e,O)),Ot(f.c,O),T=p.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(c,v.b)}}function oNn(e,t){var r,o,a,c,f,p;if(l(F(t,(Ie(),xa)),24).Gc((Fo(),rl))){for(p=new V(t.a);p.a=0&&f0&&(l(Wo(e.b,t),129).a.b=r)}function fNn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J;for(O=0,o=new hi,c=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));c.e!=c.i.gc();)a=l(rn(c),19),Ye(Ke(ve(a,(Be(),wm))))||(T=Br(a),V7(T)&&!Ye(Ke(ve(a,lB)))&&(Vn(a,(Ie(),Cr),Re(O)),++O,Gc(a,Vy)&&pi(o,l(ve(a,Vy),15))),hEt(e,a,r));for(Te(r,(Ie(),F1),Re(O)),Te(r,fD,Re(o.a.gc())),O=0,v=new tn((!t.b&&(t.b=new ke(Ir,t,12,3)),t.b));v.e!=v.i.gc();)m=l(rn(v),74),V7(t)&&(Vn(m,Cr,Re(O)),++O),z=XY(m),J=emt(m),N=Ye(Ke(ve(z,(Be(),Ky)))),U=!Ye(Ke(ve(m,wm))),M=N&&R0(m)&&Ye(Ke(ve(m,bm))),f=Br(z)==t&&Br(z)==Br(J),p=(Br(z)==t&&J==t)^(Br(J)==t&&z==t),U&&!M&&(p||f)&&X0e(e,m,t,r);if(Br(t))for(y=new tn(bat(Br(t)));y.e!=y.i.gc();)m=l(rn(y),74),z=XY(m),z==t&&R0(m)&&(M=Ye(Ke(ve(z,(Be(),Ky))))&&Ye(Ke(ve(m,bm))),M&&X0e(e,m,t,r))}function hNn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt;for(ye=new je,M=new V(e.b);M.a=t.length)return{done:!0};var a=t[o++];return{value:[a,r.get(a)],done:!1}}}},sTn()||(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[AX]=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 Nr(){Nr=K,i4=new cr(xwe),new Pr("DEPTH",Re(0)),tne=new Pr("FAN",Re(0)),z_e=new Pr(USt,Re(0)),z1=new Pr("ROOT",(Dt(),!1)),ine=new Pr("LEFTNEIGHBOR",null),tRt=new Pr("RIGHTNEIGHBOR",null),PB=new Pr("LEFTSIBLING",null),one=new Pr("RIGHTSIBLING",null),ene=new Pr("DUMMY",!1),new Pr("LEVEL",Re(0)),V_e=new Pr("REMOVABLE_EDGES",new Ar),CD=new Pr("XCOOR",Re(0)),ID=new Pr("YCOOR",Re(0)),jB=new Pr("LEVELHEIGHT",0),Id=new Pr("LEVELMIN",0),sd=new Pr("LEVELMAX",0),nne=new Pr("GRAPH_XMIN",0),rne=new Pr("GRAPH_YMIN",0),G_e=new Pr("GRAPH_XMAX",0),q_e=new Pr("GRAPH_YMAX",0),H_e=new Pr("COMPACT_LEVEL_ASCENSION",!1),Qte=new Pr("COMPACT_CONSTRAINTS",new je),r4=new Pr("ID",""),o4=new Pr("POSITION",Re(0)),Ng=new Pr("PRELIM",0),lk=new Pr("MODIFIER",0),ck=new cr(K2t),ND=new cr(Y2t)}function mNn(e){A0e();var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;if(e==null)return null;if(T=e.length*8,T==0)return"";for(p=T%24,O=T/24|0,N=p!=0?O+1:O,c=null,c=we(al,Bf,30,N*4,15,1),y=0,v=0,t=0,r=0,o=0,f=0,a=0,m=0;m>24,y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,z=o&-128?(o>>6^252)<<24>>24:o>>6<<24>>24,c[f++]=Pg[M],c[f++]=Pg[U|y<<4],c[f++]=Pg[v<<2|z],c[f++]=Pg[o&63];return p==8?(t=e[a],y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,c[f++]=Pg[M],c[f++]=Pg[y<<4],c[f++]=61,c[f++]=61):p==16&&(t=e[a],r=e[a+1],v=(r&15)<<24>>24,y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,c[f++]=Pg[M],c[f++]=Pg[U|y<<4],c[f++]=Pg[v<<2],c[f++]=61),Mf(c,0,c.length)}function wNn(e,t){var r,o,a,c,f,p,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Qi&&ope(t,e.p-k1),f=t.q.getDate(),XO(t,1),e.k>=0&&Dun(t,e.k),e.c>=0?XO(t,e.c):e.k>=0?(m=new Lge(t.q.getFullYear()-k1,t.q.getMonth(),35),o=35-m.q.getDate(),XO(t,b.Math.min(o,f))):XO(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&&pdn(t,e.j),e.n>=0&&Ndn(t,e.n),e.i>=0&&Tnt(t,Ao(wo(W6(Gs(t.q.getTime()),yg),yg),e.i)),e.a&&(a=new q9,ope(a,a.q.getFullYear()-k1-80),_q(Gs(t.q.getTime()),Gs(a.q.getTime()))&&ope(t,a.q.getFullYear()-k1+100)),e.d>=0){if(e.c==-1)r=(7+e.d-t.q.getDay())%7,r>3&&(r-=7),p=t.q.getMonth(),XO(t,t.q.getDate()+r),t.q.getMonth()!=p&&XO(t,t.q.getDate()+(r>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Qi&&(c=t.q.getTimezoneOffset(),Tnt(t,Ao(Gs(t.q.getTime()),(e.o-c)*60*yg))),!0}function mEt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de;if(a=F(t,(Ie(),mr)),!!ae(a,209)){for(M=l(a,19),U=t.e,N=new So(t.c),c=t.d,N.a+=c.b,N.b+=c.d,de=l(ve(M,(Be(),vB)),185),fu(de,(Uu(),dU))&&(O=l(ve(M,MAe),100),hZt(O,c.a),wZt(O,c.d),pZt(O,c.b),gZt(O,c.c)),r=new je,v=new V(t.a);v.ao.c.length-1;)Fe(o,new No(jE,ove));r=l(F(a,Jf),15).a,ep(l(F(e,uw),87))?(a.e.aue(le((at(r,o.c.length),l(o.c[r],49)).b))&&zG((at(r,o.c.length),l(o.c[r],49)),a.e.a+a.f.a)):(a.e.bue(le((at(r,o.c.length),l(o.c[r],49)).b))&&zG((at(r,o.c.length),l(o.c[r],49)),a.e.b+a.f.b))}for(c=An(e.b,0);c.b!=c.d.c;)a=l(Sn(c),41),r=l(F(a,(js(),Jf)),15).a,Te(a,(Nr(),Id),le((at(r,o.c.length),l(o.c[r],49)).a)),Te(a,sd,le((at(r,o.c.length),l(o.c[r],49)).b));t.Ug()}function vNn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U;for(e.o=ue(le(F(e.i,(Be(),vm)))),e.f=ue(le(F(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(we(Ti,Pe,15,e.j,0,1)),e.c=Wl(we(fi,Pe,347,e.j,7,1)),f=new V(e.i.b);f.a0&&Fe(e.q,v),Fe(e.p,v);t-=o,O=m+t,y+=t*e.f,nc(e.b,p,Re(O)),nc(e.c,p,y),e.k=b.Math.max(e.k,O),e.n=b.Math.max(e.n,y),e.e+=t,t+=U}}function vEt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;if(t.b!=0){for(O=new Ar,p=null,M=null,o=go(b.Math.floor(b.Math.log(t.b)*b.Math.LOG10E)+1),m=0,se=An(t,0);se.b!=se.d.c;)for(J=l(Sn(se),41),me(M)!==me(F(J,(Nr(),r4)))&&(M=In(F(J,r4)),m=0),M!=null?p=M+Put(m++,o):p=Put(m++,o),Te(J,r4,p),z=(a=An(new Qh(J).a.d,0),new qv(a));oO(z.a);)U=l(Sn(z.a),65).c,Wr(O,U,O.c.b,O.c),Te(U,r4,p);for(N=new hn,f=0;f0&&(se-=O),P0e(f,se),v=0,N=new V(f.a);N.a0),p.a.Xb(p.c=--p.b)),m=.4*o*v,!c&&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=(io(1,T,t.length),t.substr(1,T-1)),se=wt("%",f)?null:K0e(f),o=0,y)try{o=Ec((Yt(T+2,t.length+1),t.substr(T+2)),Qi,sr)}catch(de){throw de=ci(de),ae(de,133)?(p=de,Y(new oj(p))):Y(de)}for(z=dge(e.Dh());z.Ob();)if(M=Rj(z),ae(M,508)&&(a=l(M,594),re=a.d,(se==null?re==null:wt(se,re))&&o--==0))return a;return null}if(v=t.lastIndexOf("."),O=v==-1?t:(io(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)),Qi,sr)}catch(de){if(de=ci(de),ae(de,133))O=t;else throw Y(de)}for(O=wt("%",O)?null:K0e(O),U=dge(e.Dh());U.Ob();)if(M=Rj(U),ae(M,199)&&(c=l(M,199),J=c.ve(),(O==null?J==null:wt(O,J))&&r--==0))return c;return null}return iEt(e,t)}function kNn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re;for(v=new hn,m=new b0,o=new V(e.a.a.b);o.at.d.c){if(O=e.c[t.a.d],z=e.c[T.a.d],O==z)continue;Ql($l(Ul(Hl(Bl(new gl,1),100),O),z))}}}}}function NNn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;if(N=l(l(wr(e.r,t),24),85),t==(He(),Qt)||t==Kt){pEt(e,t);return}for(c=t==Wt?(A0(),QL):(A0(),eD),de=t==Wt?(Za(),Nd):(Za(),rd),r=l(Wo(e.b,t),129),o=r.i,a=o.c+hE(Z(X(Ki,1),Jo,30,15,[r.n.b,e.C.b,e.k])),J=o.c+o.b-hE(Z(X(Ki,1),Jo,30,15,[r.n.c,e.C.c,e.k])),f=nle(bfe(c),e.t),re=t==Wt?Di:Kr,T=N.Jc();T.Ob();)y=l(T.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(z=y.b.Kf(),U=y.e,O=y.c,M=O.i,M.b=(m=O.n,O.e.a+m.b+m.c),M.a=(p=O.n,O.e.b+p.d+p.a),YO(de,ywe),O.f=de,Ed(O,(_u(),nd)),M.c=U.a-(M.b-z.a)/2,Ee=b.Math.min(a,U.a),ye=b.Math.max(J,U.a+z.a),M.cye&&(M.c=ye-M.b),Fe(f.d,new WV(M,d1e(f,M))),re=t==Wt?b.Math.max(re,U.b+y.b.Kf().b):b.Math.min(re,U.b));for(re+=t==Wt?e.t:-e.t,se=N1e((f.e=re,f)),se>0&&(l(Wo(e.b,t),129).a.b=se),v=N.Jc();v.Ob();)y=l(v.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(M=y.c.i,M.c-=y.e.a,M.d-=y.e.b)}function CNn(e,t){RJ();var r,o,a,c,f,p,m,y,v,T,N,O,M,U;if(m=Ea(e,0)<0,m&&(e=ug(e)),Ea(e,0)==0)switch(t){case 0:return"0";case 1:return dx;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 O=new Zg,t<0?O.a+="0E+":O.a+="0E",O.a+=t==Qi?"2147483648":""+-t,O.a}v=18,T=we(al,Bf,30,v+1,15,1),r=v,U=e;do y=U,U=W6(U,10),T[--r]=Ln(Ao(48,El(y,wo(U,10))))&Ei;while(Ea(U,0)!=0);if(a=El(El(El(v,r),t),1),t==0)return m&&(T[--r]=45),Mf(T,r,v-r);if(t>0&&Ea(a,-6)>=0){if(Ea(a,0)>=0){for(c=r+Ln(a),p=v-1;p>=c;p--)T[p+1]=T[p];return T[++c]=46,m&&(T[--r]=45),Mf(T,r,v-r+1)}for(f=2;_q(f,Ao(ug(a),1));f++)T[--r]=48;return T[--r]=46,T[--r]=48,m&&(T[--r]=45),Mf(T,r,v-r)}return M=r+1,o=v,N=new lS,m&&(N.a+="-"),o-M>=1?(Lb(N,T[r]),N.a+=".",N.a+=Mf(T,r+1,v-r-1)):N.a+=Mf(T,r,v-r),N.a+="E",Ea(a,0)>0&&(N.a+="+"),N.a+=""+x3(a),N.a}function EEt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,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 _ze),Qc))),Le(e,Qc,IF,Ge(XRt)),Le(e,Qc,$0,Ge(ZRt)),Le(e,Qc,ME,Ge(WRt)),Le(e,Qc,mT,Ge(KRt)),Le(e,Qc,bT,Ge(YRt)),Le(e,Qc,Ex,Ge(VRt)),Le(e,Qc,yx,Ge(Exe)),Le(e,Qc,Sx,Ge(JRt)),Le(e,Qc,FZ,Ge(wne)),Le(e,Qc,jZ,Ge(yne)),Le(e,Qc,PF,Ge(Txe)),Le(e,Qc,$Z,Ge(vne)),Le(e,Qc,BZ,Ge(Axe)),Le(e,Qc,Ave,Ge(_xe)),Le(e,Qc,Tve,Ge(Sxe)),Le(e,Qc,yve,Ge(HB)),Le(e,Qc,vve,Ge(zB)),Le(e,Qc,Eve,Ge(RD)),Le(e,Qc,Sve,Ge(xxe)),Le(e,Qc,wve,Ge(vxe))}function M0(e,t,r,o,a){var c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;if(z=new Me(e.g,e.f),U=rme(e),U.a=b.Math.max(U.a,t),U.b=b.Math.max(U.b,r),ye=U.a/z.a,v=U.b/z.b,de=U.a-z.a,m=U.b-z.b,o)for(f=Br(e)?l(ve(Br(e),(_n(),Tm)),87):l(ve(e,(_n(),Tm)),87),p=me(ve(e,(_n(),bk)))===me((qi(),fa)),re=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));re.e!=re.i.gc();)switch(J=l(rn(re),127),se=l(ve(J,m2),64),se==(He(),Is)&&(se=_0e(J,f),Vn(J,m2,se)),se.g){case 1:p||va(J,J.i*ye);break;case 2:va(J,J.i+de),p||gu(J,J.j*v);break;case 3:p||va(J,J.i*ye),gu(J,J.j+m);break;case 4:p||gu(J,J.j*v)}if(i0(e,U.a,U.b),a)for(N=new tn((!e.n&&(e.n=new ke(Rs,e,1,7)),e.n));N.e!=N.i.gc();)T=l(rn(N),158),O=T.i+T.g/2,M=T.j+T.f/2,Ee=O/z.a,y=M/z.b,Ee+y>=1&&(Ee-y>0&&M>=0?(va(T,T.i+de),gu(T,T.j+m*y)):Ee-y<0&&O>=0&&(va(T,T.i+de*Ee),gu(T,T.j+m)));return Vn(e,(_n(),Am),(sc(),c=l(md(N4),10),new Hc(c,l(Gl(c,c.length),10),0))),new Me(ye,v)}function Z7(e){var t,r,o,a,c,f,p,m,y,v,T;if(e==null)throw Y(new kf(tu));if(y=e,c=e.length,m=!1,c>0&&(t=(Yt(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Yt(1,e.length+1),e.substr(1)),--c,m=t==45)),c==0)throw Y(new kf(F0+y+'"'));for(;e.length>0&&(Yt(0,e.length),e.charCodeAt(0)==48);)e=(Yt(1,e.length+1),e.substr(1)),--c;if(c>(Yyt(),Z_t)[10])throw Y(new kf(F0+y+'"'));for(a=0;a0&&(T=-parseInt((io(0,o,e.length),e.substr(0,o)),10),e=(Yt(o,e.length+1),e.substr(o)),c-=o,r=!1);c>=f;){if(o=parseInt((io(0,f,e.length),e.substr(0,f)),10),e=(Yt(f,e.length+1),e.substr(f)),c-=f,r)r=!1;else{if(Ea(T,p)<0)throw Y(new kf(F0+y+'"'));T=wo(T,v)}T=El(T,o)}if(Ea(T,0)>0)throw Y(new kf(F0+y+'"'));if(!m&&(T=ug(T),Ea(T,0)<0))throw Y(new kf(F0+y+'"'));return T}function K0e(e){jJ();var t,r,o,a,c,f,p,m;if(e==null)return null;if(a=Nf(e,Qa(37)),a<0)return e;for(m=new fc((io(0,a,e.length),e.substr(0,a))),t=we(Eu,BE,30,4,15,1),p=0,o=0,f=e.length;aa+2&&PK((Yt(a+1,e.length),e.charCodeAt(a+1)),T3e,A3e)&&PK((Yt(a+2,e.length),e.charCodeAt(a+2)),T3e,A3e))if(r=jon((Yt(a+1,e.length),e.charCodeAt(a+1)),(Yt(a+2,e.length),e.charCodeAt(a+2))),a+=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:{Lb(m,((t[0]&31)<<6|t[1]&63)&Ei);break}case 3:{Lb(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ei);break}}p=0,o=0}}else{for(c=0;c=2){if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i==0)r=(e1(),a=new g9,a),Tn((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),r);else if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i>1)for(N=new SS((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));N.e!=N.i.gc();)wC(N);k0e(t,l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171))}if(T)for(o=new tn((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));o.e!=o.i.gc();)for(r=l(rn(o),171),y=new tn((!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 tn((!e.n&&(e.n=new ke(Rs,e,1,7)),e.n));f.e!=f.i.gc();)c=l(rn(f),158),v=l(ve(c,S4),8),v&&Bc(c,v.a,v.b),T&&(p.a=b.Math.max(p.a,c.i+c.g),p.b=b.Math.max(p.b,c.j+c.f));return p}function TEt(e,t,r,o,a){var c,f,p;if(qdt(e,t),f=t[0],c=co(r.c,0),p=-1,Bge(r))if(o>0){if(f+o>e.length)return!1;p=k7((io(0,f+o,e.length),e.substr(0,f+o)),t)}else p=k7(e,t);switch(c){case 71:return p=_E(e,f,Z(X(Je,1),Pe,2,6,[c2t,l2t]),t),a.e=p,!0;case 77:return VSn(e,t,a,p,f);case 76:return WSn(e,t,a,p,f);case 69:return Vyn(e,t,f,a);case 99:return Wyn(e,t,f,a);case 97:return p=_E(e,f,Z(X(Je,1),Pe,2,6,["AM","PM"]),t),a.b=p,!0;case 121:return KSn(e,t,f,p,r,a);case 100:return p<=0?!1:(a.c=p,!0);case 83:return p<0?!1:s1n(p,f,t[0],a);case 104:p==12&&(p=0);case 75:case 72:return p<0?!1:(a.f=p,a.g=!1,!0);case 107:return p<0?!1:(a.f=p,a.g=!0,!0);case 109:return p<0?!1:(a.j=p,!0);case 115:return p<0?!1:(a.n=p,!0);case 90:if(flt[m]&&(z=m),T=new V(e.a.b);T.a=p){un(re.b>0),re.a.Xb(re.c=--re.b);break}else z.a>m&&(o?(li(o.b,z.b),o.a=b.Math.max(o.a,z.a),Mu(re)):(Fe(z.b,v),z.c=b.Math.min(z.c,m),z.a=b.Math.max(z.a,p),o=z));o||(o=new CZe,o.c=m,o.a=p,Vw(re,o),Fe(o.b,v))}for(f=e.b,y=0,J=new V(r);J.a1;){if(a=$2n(t),T=c.g,M=l(ve(t,c4),100),U=ue(le(ve(t,WB))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i>1&&ue(le(ve(t,(yh(),Cne))))!=Kr&&(c.c+(M.b+M.c))/(c.b+(M.d+M.a))1&&ue(le(ve(t,(yh(),Nne))))!=Kr&&(c.c+(M.b+M.c))/(c.b+(M.d+M.a))>U&&Vn(a,(yh(),iv),b.Math.max(ue(le(ve(t,u4))),ue(le(ve(a,iv)))-ue(le(ve(t,Nne))))),O=new Jle(o,v),m=BEt(O,a,N),y=m.g,y>=T&&y==y){for(f=0;f<(!a.a&&(a.a=new ke(En,a,10,11)),a.a).i;f++)s0t(e,l(oe((!a.a&&(a.a=new ke(En,a,10,11)),a.a),f),19),l(oe((!t.a&&(t.a=new ke(En,t,10,11)),t.a),f),19));Aft(t,O),vun(c,m.c),Eun(c,m.b)}--p}Vn(t,(yh(),dk),c.b),Vn(t,$T,c.c),r.Ug()}function DNn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft;for(t.Tg("Compound graph postprocessor",1),r=Ye(Ke(F(e,(Be(),Nte)))),p=l(F(e,(Ie(),mTe)),231),v=new hi,J=p.ec().Jc();J.Ob();){for(z=l(J.Pb(),17),f=new Tu(p.cc(z)),At(),xi(f,new yce(e)),Ee=Shn((at(0,f.c.length),l(f.c[0],253))),qe=Eht(l(ze(f,f.c.length-1),253)),se=Ee.i,T_(qe.i,se)?re=se.e:re=ji(se),T=lbn(z,f),tc(z.a),N=null,c=new V(f);c.aHf,ft=b.Math.abs(N.b-M.b)>Hf,(!r&<&&ft||r&&(lt||ft))&&Gn(z.a,de)),mo(z.a,o),o.b==0?N=de:N=(un(o.b!=0),l(o.c.b.c,8)),Whn(O,T,U),Eht(a)==qe&&(ji(qe.i)!=a.a&&(U=new ro,eme(U,ji(qe.i),re)),Te(z,ute,U)),cyn(O,z,re),v.a.yc(O,v);bo(z,Ee),Ji(z,qe)}for(y=v.a.ec().Jc();y.Ob();)m=l(y.Pb(),17),bo(m,null),Ji(m,null);t.Ug()}function MNn(e,t){var r,o,a,c,f,p,m,y,v,T,N;for(a=l(F(e,(js(),uw)),87),v=a==(vi(),as)||a==fs?ff:fs,r=l(Au(lr(new Et(null,new St(e.b,16)),new RHe),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),m=l(Au(Oa(r.Mc(),new ZJe(t)),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[nu]))),16),m.Fc(l(Au(Oa(r.Mc(),new QJe(t)),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[nu]))),18)),m.gd(new eXe(v)),N=new Qp(new tXe(a)),o=new hn,p=m.Jc();p.Ob();)f=l(p.Pb(),243),y=l(f.a,41),Ye(Ke(f.c))?(N.a.yc(y,(Dt(),L1))==null,new IA(N.a.Xc(y,!1)).a.gc()>0&&Jn(o,y,l(new IA(N.a.Xc(y,!1)).a.Tc(),41)),new IA(N.a.$c(y,!0)).a.gc()>1&&Jn(o,Ogt(N,y),y)):(new IA(N.a.Xc(y,!1)).a.gc()>0&&(c=l(new IA(N.a.Xc(y,!1)).a.Tc(),41),me(c)===me(Ss(ts(o.f,y)))&&l(F(y,(Nr(),Qte)),16).Ec(c)),new IA(N.a.$c(y,!0)).a.gc()>1&&(T=Ogt(N,y),me(Ss(ts(o.f,T)))===me(y)&&l(F(T,(Nr(),Qte)),16).Ec(y)),N.a.Ac(y)!=null)}function AEt(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de;if(e.gc()==1)return l(e.Xb(0),238);if(e.gc()<=0)return new JP;for(a=e.Jc();a.Ob();){for(r=l(a.Pb(),238),M=0,v=sr,T=sr,m=Qi,y=Qi,O=new V(r.e);O.ap&&(se=0,de+=f+J,f=0),sAn(U,r,se,de),t=b.Math.max(t,se+z.a),f=b.Math.max(f,z.b),se+=z.a+J;return U}function PNn(e){A0e();var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;if(e==null||(c=aj(e),M=vgn(c),M%4!=0))return null;if(U=M/4|0,U==0)return we(Eu,BE,30,0,15,1);for(T=null,t=0,r=0,o=0,a=0,f=0,p=0,m=0,y=0,O=0,N=0,v=0,T=we(Eu,BE,30,U*3,15,1);O>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|a)<<24>>24}return!uO(f=c[v++])||!uO(p=c[v++])?null:(t=mf[f],r=mf[p],m=c[v++],y=c[v++],mf[m]==-1||mf[y]==-1?m==61&&y==61?r&15?null:(z=we(Eu,BE,30,O*3+1,15,1),ua(T,0,z,0,O*3),z[N]=(t<<2|r>>4)<<24>>24,z):m!=61&&y==61?(o=mf[m],o&3?null:(z=we(Eu,BE,30,O*3+2,15,1),ua(T,0,z,0,O*3),z[N++]=(t<<2|r>>4)<<24>>24,z[N]=((r&15)<<4|o>>2&15)<<24>>24,z)):null:(o=mf[m],a=mf[y],T[N++]=(t<<2|r>>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|a)<<24>>24,T))}function jNn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee;for(t.Tg(gSt,1),M=l(F(e,(Be(),kp)),225),a=new V(e.b);a.a=2){for(U=!0,N=new V(c.j),r=l(q(N),12),O=null;N.a0)if(o=T.gc(),y=go(b.Math.floor((o+1)/2))-1,a=go(b.Math.ceil((o+1)/2))-1,t.o==uf)for(v=a;v>=y;v--)t.a[de.p]==de&&(U=l(T.Xb(v),49),M=l(U.a,9),!bl(r,U.b)&&O>e.b.e[M.p]&&(t.a[M.p]=de,t.g[de.p]=t.g[M.p],t.a[de.p]=t.g[de.p],t.f[t.g[de.p].p]=(Dt(),!!(Ye(t.f[t.g[de.p].p])&de.k==(zt(),gi))),O=e.b.e[M.p]));else for(v=y;v<=a;v++)t.a[de.p]==de&&(J=l(T.Xb(v),49),z=l(J.a,9),!bl(r,J.b)&&O0&&(a=l(ze(z.c.a,ye-1),9),f=e.i[a.p],lt=b.Math.ceil(rE(e.n,a,z)),c=Ee.a.e-z.d.d-(f.a.e+a.o.b+a.d.a)-lt),y=Kr,ye0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)<0,M=se.a.e.e-se.a.a-(se.b.e.e-se.b.a)<0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)>0,O=se.a.e.e+se.b.aqe.b.e.e+qe.a.a,de=0,!U&&!M&&(N?c+T>0?de=T:y-o>0&&(de=o):O&&(c+p>0?de=p:y-re>0&&(de=re))),Ee.a.e+=de,Ee.b&&(Ee.d.e+=de),!1))}function xEt(e,t,r){var o,a,c,f,p,m,y,v,T,N;if(o=new ql(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),a=new wS,e.c)for(f=new V(t.Pf());f.a0&&Oi(O,(at(r,t.c.length),l(t.c[r],26))),c=0,N=!0,J=oc(jb(si(O))),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?Oi(a,(at(y,t.c.length),l(t.c[y],26))):E1(a,o+c,(at(y,t.c.length),l(t.c[y],26))),T=hJ(T,a);r>0&&(c+=1)}if(N){for(y=0;y(at(y,t.c.length),l(t.c[y],26)).a.c.length?Oi(a,(at(y,t.c.length),l(t.c[y],26))):E1(a,o+c,(at(y,t.c.length),l(t.c[y],26)));r>0&&(c+=1)}for(f=!1,U=new $t(qt(Or(O).a.Jc(),new L));an(U);){for(M=l(en(U),17),T=M,v=r+1;v(at(y,t.c.length),l(t.c[y],26)).a.c.length?Oi(z,(at(y,t.c.length),l(t.c[y],26))):E1(z,o+1,(at(y,t.c.length),l(t.c[y],26))));f&&(c+=1),f=!0}return c>0?c-1:0}function x1(e,t){fr();var r,o,a,c,f,p,m,y,v,T,N,O,M;if(WN(xk)==0){for(T=we(bCn,Pe,122,jDt.length,0,1),f=0;fy&&(o.a+=crt(we(al,Bf,30,-y,15,1))),o.a+="Is",Nf(m,Qa(32))>=0)for(a=0;a=o.o.b/2}else re=!T;re?(J=l(F(o,(Ie(),MT)),16),J?N?c=J:(a=l(F(o,NT),16),a?J.gc()<=a.gc()?c=J:c=a:(c=new je,Te(o,NT,c))):(c=new je,Te(o,MT,c))):(a=l(F(o,(Ie(),NT)),16),a?T?c=a:(J=l(F(o,MT),16),J?a.gc()<=J.gc()?c=a:c=J:(c=new je,Te(o,MT,c))):(c=new je,Te(o,NT,c))),c.Ec(e),Te(e,(Ie(),tB),r),t.d==r?(Ji(t,null),r.e.c.length+r.g.c.length==0&&As(r,null),Spn(r)):(bo(t,null),r.e.c.length+r.g.c.length==0&&As(r,null)),tc(t.a)}function HNn(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt,on,qn,Gr;for(r.Tg("MinWidth layering",1),O=t.b,qe=t.a,Gr=l(F(t,(Be(),kAe)),15).a,p=l(F(t,NAe),15).a,e.b=ue(le(F(t,od))),e.d=Kr,de=new V(qe);de.aO&&(c&&(Eo(ye,N),Eo(lt,Re(y.b-1))),qn=r.b,Gr+=N+t,N=0,v=b.Math.max(v,r.b+r.c+on)),va(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),Lt=Gr+N+r.a,Lt0?(y=0,z&&(y+=p),y+=(ft-1)*f,se&&(y+=p),lt&&se&&(y=b.Math.max(y,oSn(se,f,re,qe))),y=e.a&&(o=T_n(e,re),v=b.Math.max(v,o.b),de=b.Math.max(de,o.d),Fe(p,new No(re,o)));for(lt=new je,y=0;y0),z.a.Xb(z.c=--z.b),ft=new ra(e.b),Vw(z,ft),un(z.b0){for(N=v<100?null:new Qg(v),y=new vge(t),M=y.g,J=we(Rn,Qn,30,v,15,1),o=0,de=new w0(v),a=0;a=0;)if(O!=null?pr(O,M[m]):me(O)===me(M[m])){J.length<=o&&(z=J,J=we(Rn,Qn,30,2*J.length,15,1),ua(z,0,J,0,o)),J[o++]=a,Tn(de,M[m]);break e}if(O=O,me(O)===me(p))break}}if(y=de,M=de.g,v=o,o>J.length&&(z=J,J=we(Rn,Qn,30,o,15,1),ua(z,0,J,0,o)),o>0){for(se=!0,c=0;c=0;)ZS(e,J[f]);if(o!=v){for(a=v;--a>=o;)ZS(y,a);z=J,J=we(Rn,Qn,30,o,15,1),ua(z,0,J,0,o)}t=y}}}else for(t=mmn(e,t),a=e.i;--a>=0;)t.Gc(e.g[a])&&(ZS(e,a),se=!0);if(se){if(J!=null){for(r=t.gc(),T=r==1?j3(e,4,t.Jc().Pb(),null,J[0],U):j3(e,6,t,J,J[0],U),N=r<100?null:new Qg(r),a=t.Jc();a.Ob();)O=a.Pb(),N=ffe(e,l(O,76),N);N?(N.lj(T),N.mj()):hr(e.e,T)}else{for(N=trn(t.gc()),a=t.Jc();a.Ob();)O=a.Pb(),N=ffe(e,l(O,76),N);N&&N.mj()}return!0}else return!1}function WNn(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;for(r=new A1t(t),r.a||mAn(t),y=gTn(t),m=new b0,z=new Bwt,U=new V(t.a);U.a0||r.o==uf&&a=r}function YNn(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It;for(se=e.a,de=0,Ee=se.length;de0?(T=l(ze(N.c.a,f-1),9),lt=rE(e.b,N,T),z=N.n.b-N.d.d-(T.n.b+T.o.b+T.d.a+lt)):z=N.n.b-N.d.d,y=b.Math.min(z,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.aa&&(c=N.a-a,f=sr,o.c.length=0,a=N.a),N.a>=a&&(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&&c>t.o.a/2&&f>t.o.b/2){for(O=new aa,As(O,t),Ii(O,(He(),Wt)),O.n.a=t.o.a/2,J=new aa,As(J,t),Ii(J,dn),J.n.a=t.o.a/2,J.n.b=t.o.b,m=new V(o);m.a=y.b?bo(p,J):bo(p,O)):(y=l(kon(p.a),8),z=p.a.b==0?qd(p.c):l(zl(p.a),8),z.b>=y.b?Ji(p,J):Ji(p,O)),T=l(F(p,(Be(),ss)),79),T&&gy(T,y,!0);t.n.a=a-t.o.a/2}}function ZNn(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(p=An(e.b,0);p.b!=p.d.c;)if(f=l(Sn(p),41),!wt(f.c,LF))for(y=EEn(f,e),t==(vi(),as)||t==fs?xi(y,new aze):xi(y,new uze),m=y.c.length,o=0;o=0?O=WS(p):O=P6(WS(p)),e.of(rk,O)),y=new ro,N=!1,e.nf(sw)?(Pde(y,l(e.mf(sw),8)),N=!0):Gtn(y,f.a/2,f.b/2),O.g){case 4:Te(v,Cs,(ic(),xp)),Te(v,rB,(Vb(),JE)),v.o.b=f.b,U<0&&(v.o.a=-U),Ii(T,(He(),Qt)),N||(y.a=f.a),y.a-=f.a;break;case 2:Te(v,Cs,(ic(),gm)),Te(v,rB,(Vb(),Jx)),v.o.b=f.b,U<0&&(v.o.a=-U),Ii(T,(He(),Kt)),N||(y.a=0);break;case 1:Te(v,hm,(lp(),ZE)),v.o.a=f.a,U<0&&(v.o.b=-U),Ii(T,(He(),dn)),N||(y.b=f.b),y.b-=f.b;break;case 3:Te(v,hm,(lp(),kT)),v.o.a=f.a,U<0&&(v.o.b=-U),Ii(T,(He(),Wt)),N||(y.b=0)}if(Pde(T.n,y),Te(v,sw,y),t==_m||t==Oh||t==fa){if(M=0,t==_m&&e.nf(xg))switch(O.g){case 1:case 2:M=l(e.mf(xg),15).a;break;case 3:case 4:M=-l(e.mf(xg),15).a}else switch(O.g){case 4:case 2:M=c.b,t==Oh&&(M/=a.b);break;case 1:case 3:M=c.a,t==Oh&&(M/=a.a)}Te(v,nw,M)}return Te(v,Hs,O),v}function QNn(){ole();function e(o){var a=this;this.dispatch=function(c){var f=c.data;switch(f.cmd){case"algorithms":var p=R1e((At(),new CA(new Zh(J1.b))));o.postMessage({id:f.id,data:p});break;case"categories":var m=R1e((At(),new CA(new Zh(J1.c))));o.postMessage({id:f.id,data:m});break;case"options":var y=R1e((At(),new CA(new Zh(J1.d))));o.postMessage({id:f.id,data:y});break;case"register":Qxn(f.algorithms),o.postMessage({id:f.id});break;case"layout":wxn(f.graph,f.layoutOptions||{},f.options||{}),o.postMessage({id:f.id,data:f.graph});break}},this.saveDispatch=function(c){try{a.dispatch(c)}catch(f){o.postMessage({id:c.data.id,error:f})}}}function t(o){var a=this;this.dispatcher=new e({postMessage:function(c){a.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){a.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===NX&&typeof self!==NX){var r=new e(self);self.onmessage=r.saveDispatch}else typeof u!==NX&&u.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),u.exports={default:t,Worker:t})}function GJ(e,t,r,o,a,c,f){var p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt,on,qn,Gr;for(U=0,It=0,y=new V(e.b);y.aU&&(c&&(Eo(ye,O),Eo(lt,Re(v.b-1)),Fe(e.d,M),p.c.length=0),qn=r.b,Gr+=O+t,O=0,T=b.Math.max(T,r.b+r.c+on)),Ot(p.c,m),w1t(m,qn,Gr),T=b.Math.max(T,qn+on+r.c),O=b.Math.max(O,N),qn+=on+t,M=m;if(li(e.a,p),Fe(e.d,l(ze(p,p.c.length-1),168)),T=b.Math.max(T,o),Lt=Gr+O+r.a,Lta.d.d+a.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))),o.b!=o.d.c&&(t=r);v&&(c=l(Ht(e.f,f.d.i),60),t.bc.d.d+c.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))}for(p=new $t(qt(si(O).a.Jc(),new L));an(p);)f=l(en(p),17),f.a.b!=0&&(t=l(zl(f.a),8),f.d.j==(He(),Wt)&&(z=new LC(t,new Me(t.a,a.d.d),a,f),z.f.a=!0,z.a=f.d,Ot(U.c,z)),f.d.j==dn&&(z=new LC(t,new Me(t.a,a.d.d+a.d.a),a,f),z.f.d=!0,z.a=f.d,Ot(U.c,z)))}return U}function o3n(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(m=new je,T=t.length,f=jge(r),y=0;y=M&&(re>M&&(O.c.length=0,M=re),Ot(O.c,f));O.c.length!=0&&(N=l(ze(O,u7(t,O.c.length)),134),Lt.a.Ac(N)!=null,N.s=U++,jme(N,ft,ye),O.c.length=0)}for(de=e.c.length+1,p=new V(e);p.aIt.s&&(Mu(r),Xa(It.i,o),o.c>0&&(o.a=It,Fe(It.t,o),o.b=qe,Fe(qe.i,o)))}function OEt(e,t,r,o,a){var c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt;for(U=new La(t.b),de=new La(t.b),N=new La(t.b),lt=new La(t.b),z=new La(t.b),qe=An(t,0);qe.b!=qe.d.c;)for(Ee=l(Sn(qe),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(de.c,Ee);for(M=new V(U);M.are.mh()-y.b&&(N=re.mh()-y.b),O>re.nh()-y.d&&(O=re.nh()-y.d),v0){for(se=An(e.f,0);se.b!=se.d.c;)re=l(Sn(se),9),re.p+=N-e.e;Qbe(e),tc(e.f),Zme(e,o,O)}else{for(Gn(e.f,O),O.p=o,e.e=b.Math.max(e.e,o),c=new $t(qt(si(O).a.Jc(),new L));an(c);)a=l(en(c),17),!a.c.i.c&&a.c.i.k==(zt(),ta)&&(Gn(e.f,a.c.i),a.c.i.p=o-1);e.c=o}else Qbe(e),tc(e.f),o=0,an(new $t(qt(si(O).a.Jc(),new L)))?(N=0,N=S1t(N,O),o=N+2,Zme(e,o,O)):(Gn(e.f,O),O.p=0,e.e=b.Math.max(e.e,0),e.b=l(ze(e.d.b,0),26),e.c=0);for(e.f.b==0||Qbe(e),e.d.a.c.length=0,J=new je,y=new V(e.d.b);y.a=48&&t<=57){for(o=t-48;a=48&&t<=57;)if(o=o*10+t-48,o<0)throw Y(new Dn(jn((Cn(),_Ee))))}else throw Y(new Dn(jn((Cn(),CAt))));if(r=o,t==44){if(a>=e.j)throw Y(new Dn(jn((Cn(),RAt))));if((t=co(e.i,a++))>=48&&t<=57){for(r=t-48;a=48&&t<=57;)if(r=r*10+t-48,r<0)throw Y(new Dn(jn((Cn(),_Ee))));if(o>r)throw Y(new Dn(jn((Cn(),OAt))))}else r=-1}if(t!=125)throw Y(new Dn(jn((Cn(),IAt))));e._l(a)?(c=(fr(),fr(),new oy(9,c)),e.d=a+1):(c=(fr(),fr(),new oy(3,c)),e.d=a),c.Mm(o),c.Lm(r),dr(e)}}return c}function d3n(e){var t,r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee;for(a=1,O=new je,o=0;o=l(ze(e.b,o),26).a.c.length/4)continue}if(l(ze(e.b,o),26).a.c.length>t){for(de=new je,Fe(de,l(ze(e.b,o),26)),f=0;f1)for(M=new SS((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));M.e!=M.i.gc();)wC(M);for(f=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),z=qn,qn>Ee+de?z=Ee+de:qnye+U?J=ye+U:GrEe-de&&zye-U&&Jqn+on?lt=qn+on:EeGr+qe?ft=Gr+qe:yeqn-on&<Gr-qe&&ftr&&(N=r-1),O=jg+Bu(t,24)*_L*T-T/2,O<0?O=1:O>o&&(O=o-1),a=(e1(),m=new b9,m),gj(a,N),pj(a,O),Tn((!f.a&&(f.a=new yi(Ic,f,5)),f.a),a)}function WJ(e,t){RJ();var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe;if(se=e.e,v=e.d,a=e.a,se==0)switch(t){case 0:return"0";case 1:return dx;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,z=we(al,Bf,30,U+1,15,1),r=U,v==1)if(c=a[0],c<0){qe=Gi(c,$o);do T=qe,qe=W6(qe,10),z[--r]=48+Ln(El(T,wo(qe,10)))&Ei;while(Ea(qe,0)!=0)}else{qe=c;do T=qe,qe=qe/10|0,z[--r]=48+(T-qe*10)&Ei;while(qe!=0)}else{de=we(Rn,Qn,30,v,15,1),ye=v,ua(a,0,de,0,ye);e:for(;;){for(re=0,p=ye-1;p>=0;p--)Ee=Ao(fh(re,32),Gi(de[p],$o)),O=lwn(Ee),de[p]=Ln(O),re=Ln(u0(O,32));M=Ln(re),N=r;do z[--r]=48+M%10&Ei;while((M=M/10|0)!=0&&r!=0);for(o=9-N+r,f=0;f0;f++)z[--r]=48;for(m=ye-1;de[m]==0;m--)if(m==0)break e;ye=m+1}for(;z[r]==48;)++r}return y=se<0,y&&(z[--r]=45),Mf(z,r,U-r)}function PEt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;switch(e.c=t,e.g=new hn,r=(t1(),new Yp(e.c)),o=new A9(r),x1e(o),se=In(ve(e.c,(Y6(),mke))),m=l(ve(e.c,Gne),331),Ee=l(ve(e.c,qne),432),f=l(ve(e.c,pke),480),de=l(ve(e.c,zne),433),e.j=ue(le(ve(e.c,UOt))),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 Y(new jt(FF+(m.f!=null?m.f:""+m.g)))}if(e.d=new Qat(p,Ee,f),Te(e.d,(S_(),EI),Ke(ve(e.c,$Ot))),e.d.c=Ye(Ke(ve(e.c,gke))),kP(e.c).i==0)return e.d;for(T=new tn(kP(e.c));T.e!=T.i.gc();){for(v=l(rn(T),19),O=v.g/2,N=v.f/2,ye=new Me(v.i+O,v.j+N);ma(e.g,ye);)Gw(ye,(b.Math.random()-.5)*Hf,(b.Math.random()-.5)*Hf);U=l(ve(v,(_n(),Cp)),125),z=new Tut(ye,new ql(ye.a-O-e.j/2-U.b,ye.b-N-e.j/2-U.d,v.g+e.j+(U.b+U.c),v.f+e.j+(U.d+U.a))),Fe(e.d.i,z),Jn(e.g,ye,new No(z,v))}switch(de.g){case 0:if(se==null)e.d.d=l(ze(e.d.i,0),68);else for(re=new V(e.d.i);re.a0?on+1:1);for(f=new V(ye.g);f.a0?on+1:1)}e.d[y]==0?Gn(e.f,U):e.a[y]==0&&Gn(e.g,U),++y}for(M=-1,O=1,T=new je,e.e=l(F(t,(Ie(),LT)),237);Rc>0;){for(;e.f.b!=0;)Gr=l(FV(e.f),9),e.c[Gr.p]=M--,g0e(e,Gr),--Rc;for(;e.g.b!=0;)Ou=l(FV(e.g),9),e.c[Ou.p]=O++,g0e(e,Ou),--Rc;if(Rc>0){for(N=Qi,re=new V(se);re.a=N&&(de>N&&(T.c.length=0,N=de),Ot(T.c,U)));v=e.qg(T),e.c[v.p]=O++,g0e(e,v),--Rc}}for(qn=se.c.length+1,y=0;ye.c[us]&&(mg(o,!0),Te(t,CT,(Dt(),!0)));e.a=null,e.d=null,e.c=null,tc(e.g),tc(e.f),r.Ug()}function FEt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;for(Ee=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),v=new Du,de=new hn,ye=Vyt(Ee),eu(de.f,Ee,ye),N=new hn,o=new Ar,M=hh(Wc(Z(X(nl,1),Rt,22,0,[(!t.d&&(t.d=new Tt(Ir,t,8,5)),t.d),(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e)])));an(M);){if(O=l(en(M),74),(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(jTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));O!=e&&(z=l(oe((!O.a&&(O.a=new ke(jr,O,6,6)),O.a),0),171),Wr(o,z,o.c.b,o.c),U=l(Ss(ts(de.f,z)),13),U||(U=Vyt(z),eu(de.f,z,U)),T=r?Li(new So(l(ze(ye,ye.c.length-1),8)),l(ze(U,U.c.length-1),8)):Li(new So((at(0,ye.c.length),l(ye.c[0],8))),(at(0,U.c.length),l(U.c[0],8))),eu(N.f,z,T))}if(o.b!=0)for(J=l(ze(ye,r?ye.c.length-1:0),8),y=1;y1&&Wr(v,J,v.c.b,v.c),hK(a)));J=re}return v}function $Et(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It;for(r.Tg(zSt,1),It=l(Au(lr(new Et(null,new St(t,16)),new tze),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),v=l(Au(lr(new Et(null,new St(t,16)),new rXe(t)),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[nu]))),16),M=l(Au(lr(new Et(null,new St(t,16)),new nXe(t)),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[nu]))),16),U=we(MB,DF,41,t.gc(),0,1),f=0;f=0&&ft=0&&!U[O]){U[O]=a,v.ed(p),--p;break}if(O=ft-N,O=0&&!U[O]){U[O]=a,v.ed(p),--p;break}}for(M.gd(new nze),m=U.length-1;m>=0;m--)!U[m]&&!M.dc()&&(U[m]=l(M.Xb(0),41),M.ed(0));for(y=0;yN&&q6((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(!Ye(Ke(l(ze(v.b,0),19).mf((ef(),LD))))&&IAn(t,M,c,v,z,r,N,o)){U=!0;continue}if(z){if(O=M.b,T=v.f,!Ye(Ke(l(ze(v.b,0),19).mf(LD)))&&Zxn(t,M,c,v,r,N,o,a)){if(U=!0,O=e.j){e.a=-1,e.c=1;return}if(t=co(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(o=10,e.d>=e.j)throw Y(new Dn(jn((Cn(),VF))));e.a=co(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||co(e.i,e.d)!=63)break;if(++e.d>=e.j)throw Y(new Dn(jn((Cn(),bQ))));switch(t=co(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 Y(new Dn(jn((Cn(),bQ))));if(t=co(e.i,e.d++),t==61)o=16;else if(t==33)o=17;else throw Y(new Dn(jn((Cn(),dAt))));break;case 35:for(;e.d=e.j)throw Y(new Dn(jn((Cn(),VF))));e.a=co(e.i,e.d++);break;default:o=0}e.c=o}function E3n(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z;if(r.Tg("Process compaction",1),!!Ye(Ke(F(t,(js(),J_e))))){for(a=l(F(t,uw),87),O=ue(le(F(t,ane))),q_n(e,t,a),MNn(t,O/2/2),M=t.b,zb(M,new YJe(a)),y=An(M,0);y.b!=y.d.c;)if(m=l(Sn(y),41),!Ye(Ke(F(m,(Nr(),z1))))){if(o=bTn(m,a),U=d_n(m,t),T=0,N=0,o)switch(z=o.e,a.g){case 2:T=z.a-O-m.f.a,U.e.a-O-m.f.aT&&(T=U.e.a+U.f.a+O),N=T+m.f.a;break;case 4:T=z.b-O-m.f.b,U.e.b-O-m.f.bT&&(T=U.e.b+U.f.b+O),N=T+m.f.b}else if(U)switch(a.g){case 2:T=U.e.a-O-m.f.a,N=T+m.f.a;break;case 1:T=U.e.a+U.f.a+O,N=T+m.f.a;break;case 4:T=U.e.b-O-m.f.b,N=T+m.f.b;break;case 3:T=U.e.b+U.f.b+O,N=T+m.f.b}me(F(t,sne))===me((eC(),kD))?(c=T,f=N,p=hp(lr(new Et(null,new St(e.a,16)),new Mtt(c,f))),p.a!=null?a==(vi(),as)||a==fs?m.e.a=T:m.e.b=T:(a==(vi(),as)||a==il?p=hp(lr(Cft(new Et(null,new St(e.a,16))),new JJe(c))):p=hp(lr(Cft(new Et(null,new St(e.a,16))),new XJe(c))),p.a!=null&&(a==as||a==fs?m.e.a=ue(le((un(p.a!=null),l(p.a,49)).a)):m.e.b=ue(le((un(p.a!=null),l(p.a,49)).a)))),p.a!=null&&(v=_s(e.a,(un(p.a!=null),p.a),0),v>0&&v!=l(F(m,Jf),15).a&&(Te(m,H_e,(Dt(),!0)),Te(m,Jf,Re(v))))):a==(vi(),as)||a==fs?m.e.a=T:m.e.b=T}r.Ug()}}function S3n(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee;if(r.Tg("Coffman-Graham Layering",1),t.a.c.length==0){r.Ug();return}for(Ee=l(F(t,(Be(),xAe)),15).a,m=0,f=0,N=new V(t.a);N.a=Ee||!_1n(J,o))&&(o=uat(t,v)),Oi(J,o),c=new $t(qt(si(J).a.Jc(),new L));an(c);)a=l(en(c),17),!e.a[a.p]&&(U=a.c.i,--e.e[U.p],e.e[U.p]==0&&xS(V_(O,U),fx));for(y=v.c.length-1;y>=0;--y)Fe(t.b,(at(y,v.c.length),l(v.c[y],26)));t.a.c.length=0,r.Ug()}function UEt(e){var t,r,o,a,c,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)),Sa(t,0,Fx),p=new bc(4)):p=(fr(),fr(),new bc(4)),a=!0;(y=e.c)!=1;){if(y==0&&e.a==93&&!a){t&&($C(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:Ny(p,tx(r)),o=!0;break;case 105:case 73:case 99:case 67:r=(Ny(p,tx(r)),-1),r<0&&(o=!0);break;case 112:case 80:if(m=bme(e,r),!m)throw Y(new Dn(jn((Cn(),mQ))));Ny(p,m),o=!0;break;default:r=e0e(e)}else if(y==24&&!a){if(t&&($C(t,p),p=t),c=UEt(e),$C(p,c),e.c!=0||e.a!=93)throw Y(new Dn(jn((Cn(),EAt))));break}if(dr(e),!o){if(y==0){if(r==91)throw Y(new Dn(jn((Cn(),TEe))));if(r==93)throw Y(new Dn(jn((Cn(),AEe))));if(r==45&&!a&&e.a!=93)throw Y(new Dn(jn((Cn(),wQ))))}if(e.c!=0||e.a!=45||r==45&&a)Sa(p,r,r);else{if(dr(e),(y=e.c)==1)throw Y(new Dn(jn((Cn(),WF))));if(y==0&&e.a==93)Sa(p,r,r),Sa(p,45,45);else{if(y==0&&e.a==93||y==24)throw Y(new Dn(jn((Cn(),wQ))));if(f=e.a,y==0){if(f==91)throw Y(new Dn(jn((Cn(),TEe))));if(f==93)throw Y(new Dn(jn((Cn(),AEe))));if(f==45)throw Y(new Dn(jn((Cn(),wQ))))}else y==10&&(f=e0e(e));if(dr(e),r>f)throw Y(new Dn(jn((Cn(),AAt))));Sa(p,r,f)}}}a=!1}if(e.c==1)throw Y(new Dn(jn((Cn(),WF))));return xE(p),PC(p),e.b=0,dr(e),p}function HEt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de;de=!1;do for(de=!1,c=t?new Xh(e.a.b).a.gc()-2:1;t?c>=0:cl(F(z,Cr),15).a)&&(se=!1);if(se){for(m=t?c+1:c-1,p=tpe(e.a,Re(m)),f=!1,re=!0,o=!1,v=An(p,0);v.b!=v.d.c;)y=l(Sn(v),9),gr(y,Cr)?y.p!=T.p&&(f=f|(t?l(F(y,Cr),15).al(F(T,Cr),15).a),re=!1):!f&&re&&y.k==(zt(),ta)&&(o=!0,t?N=l(en(new $t(qt(si(y).a.Jc(),new L))),17).c.i:N=l(en(new $t(qt(Or(y).a.Jc(),new L))),17).d.i,N==T&&(t?r=l(en(new $t(qt(Or(y).a.Jc(),new L))),17).d.i:r=l(en(new $t(qt(si(y).a.Jc(),new L))),17).c.i,(t?l(zw(e.a,r),15).a-l(zw(e.a,N),15).a:l(zw(e.a,N),15).a-l(zw(e.a,r),15).a)<=2&&(re=!1)));if(o&&re&&(t?r=l(en(new $t(qt(Or(T).a.Jc(),new L))),17).d.i:r=l(en(new $t(qt(si(T).a.Jc(),new L))),17).c.i,(t?l(zw(e.a,r),15).a-l(zw(e.a,T),15).a:l(zw(e.a,T),15).a-l(zw(e.a,r),15).a)<=2&&r.k==(zt(),Xr)&&(re=!1)),f||re){for(U=bwt(e,T,t);U.a.gc()!=0;)M=l(U.a.ec().Jc().Pb(),9),U.a.Ac(M)!=null,mo(U,bwt(e,M,t));--O,de=!0}}}while(de)}function T3n(e){xn(e.c,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#decimal"])),xn(e.d,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#integer"])),xn(e.e,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#boolean"])),xn(e.f,Bn,Z(X(Je,1),Pe,2,6,[ho,"EBoolean",or,"EBoolean:Object"])),xn(e.i,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#byte"])),xn(e.g,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#hexBinary"])),xn(e.j,Bn,Z(X(Je,1),Pe,2,6,[ho,"EByte",or,"EByte:Object"])),xn(e.n,Bn,Z(X(Je,1),Pe,2,6,[ho,"EChar",or,"EChar:Object"])),xn(e.t,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#double"])),xn(e.u,Bn,Z(X(Je,1),Pe,2,6,[ho,"EDouble",or,"EDouble:Object"])),xn(e.F,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#float"])),xn(e.G,Bn,Z(X(Je,1),Pe,2,6,[ho,"EFloat",or,"EFloat:Object"])),xn(e.I,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#int"])),xn(e.J,Bn,Z(X(Je,1),Pe,2,6,[ho,"EInt",or,"EInt:Object"])),xn(e.N,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#long"])),xn(e.O,Bn,Z(X(Je,1),Pe,2,6,[ho,"ELong",or,"ELong:Object"])),xn(e.Z,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#short"])),xn(e.$,Bn,Z(X(Je,1),Pe,2,6,[ho,"EShort",or,"EShort:Object"])),xn(e._,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#string"]))}function Be(){Be=K,_te=(_n(),K6t),HAe=Y6t,vD=J6t,od=X6t,o2=ANe,ym=_Ne,ev=xNe,ok=kNe,sk=NNe,xte=oU,vm=Od,kte=Z6t,GI=RNe,EB=qT,yD=(Z0e(),$Ct),Qy=BCt,$1=UCt,tv=HCt,NIt=new Mi(HD,Re(0)),ik=PCt,UAe=jCt,FT=FCt,XAe=lIt,GAe=qCt,qAe=KCt,Cte=tIt,VAe=XCt,WAe=QCt,SB=pIt,Ite=dIt,YAe=sIt,KAe=iIt,JAe=uIt,IAe=wCt,Ete=pCt,bB=hCt,Ste=bCt,ow=ICt,zI=RCt,yte=H3t,yAe=G3t,LIt=wk,DIt=sU,OIt=dv,RIt=mk,zAe=(VS(),pv),new Mi(VT,zAe),PAe=new xb(12),MAe=new Mi(df,PAe),bAe=(gp(),Ek),kp=new Mi(tNe,bAe),Jy=new Mi(zu,0),CIt=new Mi(Ere,Re(1)),aB=new Mi(gk,bx),wm=iU,Zr=bk,rk=m2,EIt=BD,Kf=M6t,Wy=h2,IIt=new Mi(Sre,(Dt(),!0)),Ky=UD,bm=hre,mm=Am,vB=G1,Ate=uv,gAe=(vi(),hf),xc=new Mi(Tm,gAe),iw=g2,wB=cNe,Xy=cv,kIt=vre,$Ae=SNe,FAe=(vE(),WD),new Mi(mNe,FAe),AIt=bre,_It=mre,xIt=wre,TIt=gre,Nte=GCt,gB=fCt,wD=dCt,qI=zCt,Cs=iCt,jT=D3t,BI=L3t,tk=w3t,fAe=y3t,bte=T3t,mD=v3t,mte=R3t,RAe=yCt,OAe=vCt,_Ae=Z3t,yB=DCt,Tte=TCt,vte=W3t,DAe=NCt,wAe=B3t,wte=U3t,gte=$D,LAe=ECt,cB=e3t,uAe=QNt,uB=ZNt,SAe=J3t,EAe=Y3t,TAe=X3t,nk=b2,ss=p2,_g=$6t,Yf=fre,i2=rU,hAe=_3t,xg=yre,PI=F6t,pB=U6t,sw=yNe,jAe=G6t,Yy=q6t,kAe=sCt,NAe=uCt,Zy=GT,dte=XNt,CAe=lCt,hB=j3t,fB=P3t,mB=Cp,xAe=tCt,HI=_Ct,ED=CNe,pAe=M3t,BAe=MCt,mAe=F3t,wIt=k3t,yIt=N3t,SIt=rCt,vIt=C3t,AAe=pre,UI=oCt,dB=I3t,Ch=m3t,hte=p3t,bD=n3t,fte=r3t,lB=g3t,jI=t3t,pte=b3t,Vy=h3t,$I=f3t,mIt=d3t,PT=i3t,FI=l3t,dAe=c3t,cAe=o3t,lAe=a3t,vAe=K3t}function A3n(e,t,r,o,a,c,f){var p,m,y,v,T,N,O,M;return N=l(o.a,15).a,O=l(o.b,15).a,T=e.b,M=e.c,p=0,v=0,t==(vi(),as)||t==fs?(v=wO(mgt(ey(Oa(new Et(null,new St(r.b,16)),new hze),new JHe))),T.e.b+T.f.b/2>v?(y=++O,p=ue(le(Xu(Jw(Oa(new Et(null,new St(r.b,16)),new Ftt(a,y)),new XHe))))):(m=++N,p=ue(le(Xu(NS(Oa(new Et(null,new St(r.b,16)),new $tt(a,m)),new ZHe)))))):(v=wO(mgt(ey(Oa(new Et(null,new St(r.b,16)),new sze),new KHe))),T.e.a+T.f.a/2>v?(y=++O,p=ue(le(Xu(Jw(Oa(new Et(null,new St(r.b,16)),new jtt(a,y)),new QHe))))):(m=++N,p=ue(le(Xu(NS(Oa(new Et(null,new St(r.b,16)),new Ptt(a,m)),new ize)))))),t==as?(Eo(e.a,new Me(ue(le(F(T,(Nr(),Id))))-a,p)),Eo(e.a,new Me(M.e.a+M.f.a+a+c,p)),Eo(e.a,new Me(M.e.a+M.f.a+a+c,M.e.b+M.f.b/2)),Eo(e.a,new Me(M.e.a+M.f.a,M.e.b+M.f.b/2))):t==fs?(Eo(e.a,new Me(ue(le(F(T,(Nr(),sd))))+a,T.e.b+T.f.b/2)),Eo(e.a,new Me(T.e.a+T.f.a+a,p)),Eo(e.a,new Me(M.e.a-a-c,p)),Eo(e.a,new Me(M.e.a-a-c,M.e.b+M.f.b/2)),Eo(e.a,new Me(M.e.a,M.e.b+M.f.b/2))):t==il?(Eo(e.a,new Me(p,ue(le(F(T,(Nr(),Id))))-a)),Eo(e.a,new Me(p,M.e.b+M.f.b+a+c)),Eo(e.a,new Me(M.e.a+M.f.a/2,M.e.b+M.f.b+a+c)),Eo(e.a,new Me(M.e.a+M.f.a/2,M.e.b+M.f.b+a))):(e.a.b==0||(l(zl(e.a),8).b=ue(le(F(T,(Nr(),sd))))+a*l(f.b,15).a),Eo(e.a,new Me(p,ue(le(F(T,(Nr(),sd))))+a*l(f.b,15).a)),Eo(e.a,new Me(p,M.e.b-a*l(f.a,15).a-c))),new No(Re(N),Re(O))}function _3n(e){var t,r,o,a,c,f,p,m,y,v,T,N,O;if(f=!0,T=null,o=null,a=null,t=!1,O=XLt,y=null,c=null,p=0,m=bY(e,p,_3e,x3e),m=0&&wt(e.substr(p,2),"//")?(p+=2,m=bY(e,p,O4,L4),o=(io(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=xde(e,Qa(35),p),m==-1&&(m=e.length),o=(io(p,m,e.length),e.substr(p,m-p)),p=m);if(!r&&p0&&co(v,v.length-1)==58&&(a=v,p=m)),pf?(ac(e,t,r),1):(ac(e,r,t),-1)}for(re=e.f,se=0,de=re.length;se0?ac(e,t,r):ac(e,r,t),o;if(!gr(t,(Ie(),Cr))||!gr(r,Cr))return c=zY(e,t),p=zY(e,r),c>p?(ac(e,t,r),1):(ac(e,r,t),-1)}if(!N&&!M&&(o=GEt(e,t,r),o!=0))return o>0?ac(e,t,r):ac(e,r,t),o}return gr(t,(Ie(),Cr))&&gr(r,Cr)?(c=L0(t,r,e.c,l(F(e.c,F1),15).a),p=L0(r,t,e.c,l(F(e.c,F1),15).a),c>p?(ac(e,t,r),1):(ac(e,r,t),-1)):(ac(e,r,t),-1)}function zEt(){zEt=K,VJ(),Wn=new b0,yt(Wn,(He(),dd),gf),yt(Wn,Rl,gf),yt(Wn,Iu,gf),yt(Wn,fd,gf),yt(Wn,su,gf),yt(Wn,Ru,gf),yt(Wn,fd,dd),yt(Wn,gf,ol),yt(Wn,dd,ol),yt(Wn,Rl,ol),yt(Wn,Iu,ol),yt(Wn,ou,ol),yt(Wn,fd,ol),yt(Wn,su,ol),yt(Wn,Ru,ol),yt(Wn,Wa,ol),yt(Wn,gf,Nc),yt(Wn,dd,Nc),yt(Wn,ol,Nc),yt(Wn,Rl,Nc),yt(Wn,Iu,Nc),yt(Wn,ou,Nc),yt(Wn,fd,Nc),yt(Wn,Wa,Nc),yt(Wn,Cc,Nc),yt(Wn,su,Nc),yt(Wn,vu,Nc),yt(Wn,Ru,Nc),yt(Wn,dd,Rl),yt(Wn,Iu,Rl),yt(Wn,fd,Rl),yt(Wn,Ru,Rl),yt(Wn,dd,Iu),yt(Wn,Rl,Iu),yt(Wn,fd,Iu),yt(Wn,Iu,Iu),yt(Wn,su,Iu),yt(Wn,gf,sl),yt(Wn,dd,sl),yt(Wn,ol,sl),yt(Wn,Nc,sl),yt(Wn,Rl,sl),yt(Wn,Iu,sl),yt(Wn,ou,sl),yt(Wn,fd,sl),yt(Wn,Cc,sl),yt(Wn,Wa,sl),yt(Wn,Ru,sl),yt(Wn,su,sl),yt(Wn,ka,sl),yt(Wn,gf,Cc),yt(Wn,dd,Cc),yt(Wn,ol,Cc),yt(Wn,Rl,Cc),yt(Wn,Iu,Cc),yt(Wn,ou,Cc),yt(Wn,fd,Cc),yt(Wn,Wa,Cc),yt(Wn,Ru,Cc),yt(Wn,vu,Cc),yt(Wn,ka,Cc),yt(Wn,dd,Wa),yt(Wn,Rl,Wa),yt(Wn,Iu,Wa),yt(Wn,fd,Wa),yt(Wn,Cc,Wa),yt(Wn,Ru,Wa),yt(Wn,su,Wa),yt(Wn,gf,iu),yt(Wn,dd,iu),yt(Wn,ol,iu),yt(Wn,Rl,iu),yt(Wn,Iu,iu),yt(Wn,ou,iu),yt(Wn,fd,iu),yt(Wn,Wa,iu),yt(Wn,Ru,iu),yt(Wn,dd,su),yt(Wn,ol,su),yt(Wn,Nc,su),yt(Wn,Iu,su),yt(Wn,gf,vu),yt(Wn,dd,vu),yt(Wn,Nc,vu),yt(Wn,Rl,vu),yt(Wn,Iu,vu),yt(Wn,ou,vu),yt(Wn,fd,vu),yt(Wn,fd,ka),yt(Wn,Iu,ka),yt(Wn,Wa,gf),yt(Wn,Wa,Rl),yt(Wn,Wa,ol),yt(Wn,ou,gf),yt(Wn,ou,dd),yt(Wn,ou,Nc)}function x3n(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;switch(r.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=n_n(t),o=l(F(t,(Be(),Tte)),284),O=Ye(Ke(F(t,HI))),e.d=o==(K6(),X$)&&!O||o==Kee,Jxn(e,t),Ee=null,ye=null,J=null,re=null,z=(wc(4,Iy),new La(4)),l(F(t,Tte),284).g){case 3:J=new NE(t,e.c.d,(zd(),Em),(If(),kg)),Ot(z.c,J);break;case 1:re=new NE(t,e.c.d,(zd(),uf),(If(),kg)),Ot(z.c,re);break;case 4:Ee=new NE(t,e.c.d,(zd(),Em),(If(),aw)),Ot(z.c,Ee);break;case 2:ye=new NE(t,e.c.d,(zd(),uf),(If(),aw)),Ot(z.c,ye);break;default:J=new NE(t,e.c.d,(zd(),Em),(If(),kg)),re=new NE(t,e.c.d,uf,kg),Ee=new NE(t,e.c.d,Em,aw),ye=new NE(t,e.c.d,uf,aw),Ot(z.c,Ee),Ot(z.c,ye),Ot(z.c,J),Ot(z.c,re)}for(a=new Itt(t,e.c),p=new V(z);p.alJ(c))&&(T=c);for(!T&&(T=(at(0,z.c.length),l(z.c[0],188))),U=new V(t.b);U.a0?(ac(e,r,t),1):(ac(e,t,r),-1);if(v&&se)return ac(e,r,t),1;if(T&&re)return ac(e,t,r),-1;if(T&&se)return 0}else for(ft=new V(y.j);ft.aT&&(Lt=0,on+=v+qe,v=0),Ryt(Ee,f,Lt,on),t=b.Math.max(t,Lt+ye.a),v=b.Math.max(v,ye.b),Lt+=ye.a+qe;for(de=new hn,r=new hn,ft=new V(e);ft.a=-1900?1:0,r>=4?zn(e,Z(X(Je,1),Pe,2,6,[c2t,l2t])[p]):zn(e,Z(X(Je,1),Pe,2,6,["BC","AD"])[p]);break;case 121:rbn(e,r,o);break;case 77:oAn(e,r,o);break;case 107:m=a.q.getHours(),m==0?bh(e,24,r):bh(e,m,r);break;case 83:E2n(e,r,a);break;case 69:v=o.q.getDay(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["S","M","T","W","T","F","S"])[v]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[hX,pX,gX,bX,mX,wX,yX])[v]):zn(e,Z(X(Je,1),Pe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?zn(e,Z(X(Je,1),Pe,2,6,["AM","PM"])[1]):zn(e,Z(X(Je,1),Pe,2,6,["AM","PM"])[0]);break;case 104:T=a.q.getHours()%12,T==0?bh(e,12,r):bh(e,T,r);break;case 75:N=a.q.getHours()%12,bh(e,N,r);break;case 72:O=a.q.getHours(),bh(e,O,r);break;case 99:M=o.q.getDay(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["S","M","T","W","T","F","S"])[M]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[hX,pX,gX,bX,mX,wX,yX])[M]):r==3?zn(e,Z(X(Je,1),Pe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[M]):bh(e,M,1);break;case 76:U=o.q.getMonth(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[U]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[nX,rX,iX,oX,lT,sX,aX,uX,cX,lX,dX,fX])[U]):r==3?zn(e,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[U]):bh(e,U+1,r);break;case 81:z=o.q.getMonth()/3|0,r<4?zn(e,Z(X(Je,1),Pe,2,6,["Q1","Q2","Q3","Q4"])[z]):zn(e,Z(X(Je,1),Pe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[z]);break;case 100:J=o.q.getDate(),bh(e,J,r);break;case 109:y=a.q.getMinutes(),bh(e,y,r);break;case 115:f=a.q.getSeconds(),bh(e,f,r);break;case 122:r<4?zn(e,c.c[0]):zn(e,c.c[1]);break;case 118:zn(e,c.b);break;case 90:r<3?zn(e,Evn(c)):r==3?zn(e,_vn(c)):zn(e,Cvn(c.a));break;default:return!1}return!0}function X0e(e,t,r,o){var a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt,on,qn;if(wyt(t),m=l(oe((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83),v=l(oe((!t.c&&(t.c=new Tt(pn,t,5,8)),t.c),0),83),p=Yo(m),y=Yo(v),f=(!t.a&&(t.a=new ke(jr,t,6,6)),t.a).i==0?null:l(oe((!t.a&&(t.a=new ke(jr,t,6,6)),t.a),0),171),qe=l(Ht(e.a,p),9),Lt=l(Ht(e.a,y),9),lt=null,on=null,ae(m,196)&&(ye=l(Ht(e.a,m),248),ae(ye,12)?lt=l(ye,12):ae(ye,9)&&(qe=l(ye,9),lt=l(ze(qe.j,0),12))),ae(v,196)&&(It=l(Ht(e.a,v),248),ae(It,12)?on=l(It,12):ae(It,9)&&(Lt=l(It,9),on=l(ze(Lt.j,0),12))),!qe||!Lt)throw Y(new cS("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 p0,qs(U,t),Te(U,(Ie(),mr),t),Te(U,(Be(),ss),null),O=l(F(o,xa),24),qe==Lt&&O.Ec((Fo(),II)),lt||(Ee=(jo(),Ba),ft=null,f&&tE(l(F(qe,Zr),103))&&(ft=new Me(f.j,f.k),Pct(ft,ty(t)),clt(ft,r),uy(y,p)&&(Ee=Cu,br(ft,qe.n))),lt=Avt(qe,ft,Ee,o)),on||(Ee=(jo(),Cu),qn=null,f&&tE(l(F(Lt,Zr),103))&&(qn=new Me(f.b,f.c),Pct(qn,ty(t)),clt(qn,r)),on=Avt(Lt,qn,Ee,ji(Lt))),bo(U,lt),Ji(U,on),(lt.e.c.length>1||lt.g.c.length>1||on.e.c.length>1||on.g.c.length>1)&&O.Ec((Fo(),CI)),N=new tn((!t.n&&(t.n=new ke(Rs,t,1,7)),t.n));N.e!=N.i.gc();)if(T=l(rn(N),158),!Ye(Ke(ve(T,wm)))&&T.a)switch(z=YK(T),Fe(U.b,z),l(F(z,Yf),281).g){case 1:case 2:O.Ec((Fo(),Zx));break;case 0:O.Ec((Fo(),Xx)),Te(z,Yf,(Kd(),yk))}if(c=l(F(o,BI),302),J=l(F(o,yB),329),a=c==(lC(),aD)||J==(hC(),Fte),f&&(!f.a&&(f.a=new yi(Ic,f,5)),f.a).i!=0&&a){for(re=vyn(f),M=new Du,de=An(re,0);de.b!=de.d.c;)se=l(Sn(de),8),Gn(M,new So(se));Te(U,vTe,M)}return U}function I3n(e,t,r,o){var a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt,on,qn,Gr;for(ft=0,It=0,qe=new hn,Ee=l(Xu(Jw(Oa(new Et(null,new St(e.b,16)),new oze),new YHe)),15).a+1,lt=we(Rn,Qn,30,Ee,15,1),z=we(Rn,Qn,30,Ee,15,1),U=0;U1)for(p=on+1;py.b.e.b*(1-J)+y.c.e.b*J));M++);if(ye.gc()>0&&(qn=y.a.b==0?To(y.b.e):l(zl(y.a),8),se=br(To(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=br(To(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.b>se.b&&y.c.e.b>se.b||M<=0&&qn.by.b.e.a*(1-J)+y.c.e.a*J));M++);if(ye.gc()>0&&(qn=y.a.b==0?To(y.b.e):l(zl(y.a),8),se=br(To(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=br(To(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.a>se.a&&y.c.e.a>se.a||M<=0&&qn.a=ue(le(F(e,(Nr(),q_e))))&&++It):(O.f&&O.d.e.a<=ue(le(F(e,(Nr(),nne))))&&++ft,O.g&&O.c.e.a+O.c.f.a>=ue(le(F(e,(Nr(),G_e))))&&++It)}else de==0?hme(y):de<0&&(++lt[on],++z[Gr],Lt=A3n(y,t,e,new No(Re(ft),Re(It)),r,o,new No(Re(z[Gr]),Re(lt[on]))),ft=l(Lt.a,15).a,It=l(Lt.b,15).a)}function R3n(e){e.gb||(e.gb=!0,e.b=Ps(e,0),Jr(e.b,18),Dr(e.b,19),e.a=Ps(e,1),Jr(e.a,1),Dr(e.a,2),Dr(e.a,3),Dr(e.a,4),Dr(e.a,5),e.o=Ps(e,2),Jr(e.o,8),Jr(e.o,9),Dr(e.o,10),Dr(e.o,11),Dr(e.o,12),Dr(e.o,13),Dr(e.o,14),Dr(e.o,15),Dr(e.o,16),Dr(e.o,17),Dr(e.o,18),Dr(e.o,19),Dr(e.o,20),Dr(e.o,21),Dr(e.o,22),Dr(e.o,23),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),e.p=Ps(e,3),Jr(e.p,2),Jr(e.p,3),Jr(e.p,4),Jr(e.p,5),Dr(e.p,6),Dr(e.p,7),is(e.p),is(e.p),e.q=Ps(e,4),Jr(e.q,8),e.v=Ps(e,5),Dr(e.v,9),is(e.v),is(e.v),is(e.v),e.w=Ps(e,6),Jr(e.w,2),Jr(e.w,3),Jr(e.w,4),Dr(e.w,5),e.B=Ps(e,7),Dr(e.B,1),is(e.B),is(e.B),is(e.B),e.Q=Ps(e,8),Dr(e.Q,0),is(e.Q),e.R=Ps(e,9),Jr(e.R,1),e.S=Ps(e,10),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),e.T=Ps(e,11),Dr(e.T,10),Dr(e.T,11),Dr(e.T,12),Dr(e.T,13),Dr(e.T,14),is(e.T),is(e.T),e.U=Ps(e,12),Jr(e.U,2),Jr(e.U,3),Dr(e.U,4),Dr(e.U,5),Dr(e.U,6),Dr(e.U,7),is(e.U),e.V=Ps(e,13),Dr(e.V,10),e.W=Ps(e,14),Jr(e.W,18),Jr(e.W,19),Jr(e.W,20),Dr(e.W,21),Dr(e.W,22),Dr(e.W,23),e.bb=Ps(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),Dr(e.bb,17),is(e.bb),is(e.bb),e.eb=Ps(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),Dr(e.eb,8),Dr(e.eb,9),e.ab=Ps(e,17),Jr(e.ab,0),Jr(e.ab,1),e.H=Ps(e,18),Dr(e.H,0),Dr(e.H,1),Dr(e.H,2),Dr(e.H,3),Dr(e.H,4),Dr(e.H,5),is(e.H),e.db=Ps(e,19),Dr(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 VEt(e,t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se;if(yvt(e,t),(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i!=0){for(p=new je,O=0;O<(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i;O++)a=l(oe(a_(l(oe((!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e),O),74)),0),19),VEt(e,a),Ot(p.c,a);for(m=p.c.length,M=0;M0&&(at(N,p.c.length),l(p.c[N],19)).mh()-l((at(N,p.c.length),l(p.c[N],19)).mf((_n(),Cp)),125).b-t.g/2>=0;)--N;if(N=0;r--)y=z;)(at(Ee,f.c.length),l(f.c[Ee],19)).nh()>z&&(J=Ee,z=(at(Ee,f.c.length),l(f.c[Ee],19)).nh()),Ee+=1;if(re=0,Ee>0&&(re=((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),!Ye(Ke(ve(t,(QS(),Zne))))){if(r=((at(0,f.c.length),l(f.c[0],19)).mh()+l(ze(f,f.c.length-1),19).mh()+l(ze(f,f.c.length-1),19).lh()-t.g)/2-t.i,rre){for(y=Ee;y0&&(p=l(zl(l(c.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(c.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-O)/(b.Math.abs(p-N)/40)>50&&(O>m?Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f-o/2)):Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f+o/2)))),Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a,v.e.b+v.f.b*f))):t==fs?(y=ue(le(F(v,(Nr(),Id)))),v.e.a-o>y?Eo(l(c.Xb(a),65).a,new Me(y-r,v.e.b+v.f.b*f)):l(c.Xb(a),65).a.b>0&&(p=l(zl(l(c.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(c.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-O)/(b.Math.abs(p-N)/40)>50&&(O>m?Eo(l(c.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f-o/2)):Eo(l(c.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f+o/2)))),Eo(l(c.Xb(a),65).a,new Me(v.e.a,v.e.b+v.f.b*f))):t==il?(y=ue(le(F(v,(Nr(),sd)))),v.e.b+v.f.b+o0&&(p=l(zl(l(c.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(c.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-O)/40)>50&&(N>p?Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b+o/5.3+v.f.b)):Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b+o/5.3+v.f.b)))),Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b+v.f.b))):(y=ue(le(F(v,(Nr(),Id)))),upt(l(c.Xb(a),65),e)?Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f,l(zl(l(c.Xb(a),65).a),8).b)):v.e.b-o>y?Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f,y-r)):l(c.Xb(a),65).a.b>0&&(p=l(zl(l(c.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(c.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-O)/40)>50&&(N>p?Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b-o/5.3)):Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b-o/5.3)))),Eo(l(c.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b)))}function KEt(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye;if(f=t,N=r,ma(e.a,f)){if(bl(l(Ht(e.a,f),47),N))return 1}else Jn(e.a,f,new hi);if(ma(e.a,N)){if(bl(l(Ht(e.a,N),47),f))return-1}else Jn(e.a,N,new hi);if(ma(e.e,f)){if(bl(l(Ht(e.e,f),47),N))return-1}else Jn(e.e,f,new hi);if(ma(e.e,N)){if(bl(l(Ht(e.a,N),47),f))return 1}else Jn(e.e,N,new hi);if(f.j!=N.j)return Ee=Xen(f.j,N.j),Ee>0?Zc(e,f,N,1):Zc(e,N,f,1),Ee;if(ye=1,f.e.c.length!=0&&N.e.c.length!=0){if((f.j==(He(),Kt)&&N.j==Kt||f.j==Wt&&N.j==Wt||f.j==dn&&N.j==dn)&&(ye=-ye),v=l(ze(f.e,0),17).c,z=l(ze(N.e,0),17).c,m=v.i,M=z.i,m==M)for(se=new V(m.j);se.a0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye);if(o=Qpt(l(Au(nW(e.d),ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),22),m,M),o!=0)return o>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye);if(e.c&&(Ee=C1t(e,f,N),Ee!=0))return Ee>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)}return f.g.c.length!=0&&N.g.c.length!=0?((f.j==(He(),Kt)&&N.j==Kt||f.j==dn&&N.j==dn)&&(ye=-ye),T=l(F(f,(Ie(),ite)),9),J=l(F(N,ite),9),e.f==(bp(),Ute)&&T&&J&&gr(T,Cr)&&gr(J,Cr)?(p=L0(T,J,e.b,l(F(e.b,F1),15).a),O=L0(J,T,e.b,l(F(e.b,F1),15).a),p>O?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)):e.c&&(Ee=C1t(e,f,N),Ee!=0)?Ee>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye):(y=0,U=0,gr(l(ze(f.g,0),17),Cr)&&(y=L0(l(ze(f.g,0),248),l(ze(N.g,0),248),e.b,f.g.c.length+f.e.c.length)),gr(l(ze(N.g,0),17),Cr)&&(U=L0(l(ze(N.g,0),248),l(ze(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,ye),ye):(Zc(e,N,f,ye),-ye))):f.e.c.length!=0&&N.g.c.length!=0?(Zc(e,f,N,ye),1):f.g.c.length!=0&&N.e.c.length!=0?(Zc(e,N,f,ye),-1):gr(f,(Ie(),Cr))&&gr(N,Cr)?(c=f.i.j.c.length,p=L0(f,N,e.b,c),O=L0(N,f,e.b,c),(f.j==(He(),Kt)&&N.j==Kt||f.j==dn&&N.j==dn)&&(ye=-ye),p>O?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)):(Zc(e,N,f,ye),-ye)}function Ie(){Ie=K;var e,t;mr=new cr(xwe),bTe=new cr("coordinateOrigin"),ste=new cr("processors"),gTe=new Pr("compoundNode",(Dt(),!1)),hD=new Pr("insideConnections",!1),vTe=new cr("originalBendpoints"),ETe=new cr("originalDummyNodePosition"),STe=new cr("originalLabelEdge"),OI=new cr("representedLabels"),RI=new cr("endLabels"),IT=new cr("endLabel.origin"),OT=new Pr("labelSide",(vc(),VD)),QE=new Pr("maxEdgeThickness",0),Ag=new Pr("reversed",!1),LT=new cr(W2t),Cd=new Pr("longEdgeSource",null),Nl=new Pr("longEdgeTarget",null),qy=new Pr("longEdgeHasLabelDummies",!1),pD=new Pr("longEdgeBeforeLabelDummy",!1),rB=new Pr("edgeConstraint",(Vb(),Hee)),tw=new cr("inLayerLayoutUnit"),hm=new Pr("inLayerConstraint",(lp(),dD)),RT=new Pr("inLayerSuccessorConstraint",new je),yTe=new Pr("inLayerSuccessorConstraintBetweenNonDummies",!1),Nu=new cr("portDummy"),nB=new Pr("crossingHint",Re(0)),xa=new Pr("graphProperties",(t=l(md(Yee),10),new Hc(t,l(Gl(t,t.length),10),0))),Hs=new Pr("externalPortSide",(He(),Is)),wTe=new Pr("externalPortSize",new ro),tte=new cr("externalPortReplacedDummies"),iB=new cr("externalPortReplacedDummy"),_p=new Pr("externalPortConnections",(e=l(md(Ro),10),new Hc(e,l(Gl(e,e.length),10),0))),nw=new Pr(H2t,0),pTe=new cr("barycenterAssociates"),MT=new cr("TopSideComments"),NT=new cr("BottomSideComments"),tB=new cr("CommentConnectionPort"),rte=new Pr("inputCollect",!1),ote=new Pr("outputCollect",!1),CT=new Pr("cyclic",!1),mTe=new cr("crossHierarchyMap"),ute=new cr("targetOffset"),new Pr("splineLabelSize",new ro),t2=new cr("spacings"),oB=new Pr("partitionConstraint",!1),ew=new cr("breakingPoint.info"),_Te=new cr("splines.survivingEdge"),pm=new cr("splines.route.start"),n2=new cr("splines.edgeChain"),ATe=new cr("originalPortConstraints"),rw=new cr("selfLoopHolder"),ek=new cr("splines.nsPortY"),Cr=new cr("modelOrder"),F1=new cr("modelOrder.maximum"),fD=new cr("modelOrderGroups.cb.number"),ite=new cr("longEdgeTargetNode"),j1=new Pr(ySt,!1),e2=new Pr(ySt,!1),nte=new cr("layerConstraints.hiddenNodes"),TTe=new cr("layerConstraints.opposidePort"),ate=new cr("targetNode.modelOrder"),DT=new Pr("tarjan.lowlink",Re(sr)),LI=new Pr("tarjan.id",Re(-1)),sB=new Pr("tarjan.onstack",!1),KNt=new Pr("partOfCycle",!1),r2=new cr("medianHeuristic.weight")}function _n(){_n=K;var e,t;zT=new cr(pTt),lv=new cr(gTt),Jke=(mh(),are),M6t=new pt(Pye,Jke),gk=new pt(mx,null),P6t=new cr(rEe),Zke=(Zb(),xr(lre,Z(X(dre,1),Ce,300,0,[cre]))),$D=new pt(CF,Zke),BD=new pt(UL,(Dt(),!1)),Qke=(vi(),hf),Tm=new pt(AZ,Qke),nNe=(gp(),Tre),tNe=new pt(BL,nNe),B6t=new pt(tEe,!1),iNe=(pp(),cU),h2=new pt(NF,iNe),gNe=new xb(12),df=new pt(B0,gNe),y4=new pt(wx,!1),pre=new pt(RF,!1),v4=new pt(yx,!1),vNe=(qi(),W1),bk=new pt(lF,vNe),GT=new cr(IF),HD=new cr(CL),Ere=new cr(cF),Sre=new cr(WC),aNe=new Du,p2=new pt(Wye,aNe),F6t=new pt(Xye,!1),U6t=new pt(Zye,!1),new pt(bTt,0),uNe=new FN,Cp=new pt(kZ,uNe),iU=new pt(Dye,!1),W6t=new pt(mTt,1),av=new cr(wTt),sv=new cr(yTt),wk=new pt(RL,!1),new pt(vTt,!0),Re(0),new pt(ETt,Re(100)),new pt(STt,!1),Re(0),new pt(TTt,Re(4e3)),Re(0),new pt(ATt,Re(400)),new pt(_Tt,!1),new pt(xTt,!1),new pt(kTt,!0),new pt(NTt,!1),Xke=(Kj(),Cre),j6t=new pt(nEe,Xke),sNe=(V3(),YD),z6t=new pt(CTt,sNe),oNe=(O_(),zD),H6t=new pt(ITt,oNe),K6t=new pt(Sye,10),Y6t=new pt(Tye,10),J6t=new pt(Aye,20),X6t=new pt(_ye,10),ANe=new pt(MX,2),_Ne=new pt(TZ,10),xNe=new pt(xye,0),oU=new pt(Cye,5),kNe=new pt(kye,1),NNe=new pt(Nye,1),Od=new pt($0,20),Z6t=new pt(Iye,10),RNe=new pt(Rye,10),qT=new cr(Oye),INe=new Gnt,CNe=new pt(eve,INe),q6t=new cr(xZ),bNe=!1,G6t=new pt(_Z,bNe),lNe=new xb(5),cNe=new pt($ye,lNe),dNe=(Ty(),t=l(md(zo),10),new Hc(t,l(Gl(t,t.length),10),0)),g2=new pt(Ex,dNe),wNe=(vE(),V1),mNe=new pt(Hye,wNe),bre=new cr(zye),mre=new cr(Gye),wre=new cr(qye),gre=new cr(Vye),fNe=(e=l(md(N4),10),new Hc(e,l(Gl(e,e.length),10),0)),Am=new pt(ME,fNe),pNe=ct((Uu(),Tk)),G1=new pt(bT,pNe),hNe=new Me(0,0),b2=new pt(mT,hNe),uv=new pt(vx,!1),eNe=(Kd(),yk),fre=new pt(Yye,eNe),rU=new pt(IL,!1),Re(1),new pt(RTt,null),yNe=new cr(Qye),yre=new cr(Jye),TNe=(He(),Is),m2=new pt(Mye,TNe),zu=new cr(Lye),ENe=(xu(),ct(K1)),cv=new pt(Sx,ENe),vre=new pt(Bye,!1),SNe=new pt(Uye,!0),Re(1),rLt=new pt(ZZ,Re(3)),Re(1),oLt=new pt(iEe,Re(4)),sU=new pt(OL,1),aU=new pt(QZ,null),dv=new pt(LL,150),mk=new pt(DL,1.414),VT=new pt(U0,null),Q6t=new pt(oEe,1),UD=new pt(jye,!1),hre=new pt(Fye,!1),$6t=new pt(Kye,1),rNe=(T7(),_re),new pt(OTt,rNe),V6t=!0,iLt=(qP(),Nre),tLt=(VS(),pv),nLt=pv,eLt=pv}function Zi(){Zi=K,dSe=new bi("DIRECTION_PREPROCESSOR",0),uSe=new bi("COMMENT_PREPROCESSOR",1),VE=new bi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),yee=new bi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),ISe=new bi("PARTITION_PREPROCESSOR",4),C$=new bi("LABEL_DUMMY_INSERTER",5),$$=new bi("SELF_LOOP_PREPROCESSOR",6),Uy=new bi("LAYER_CONSTRAINT_PREPROCESSOR",7),NSe=new bi("PARTITION_MIDPROCESSOR",8),ySe=new bi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),xSe=new bi("NODE_PROMOTION",10),By=new bi("LAYER_CONSTRAINT_POSTPROCESSOR",11),CSe=new bi("PARTITION_POSTPROCESSOR",12),bSe=new bi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),RSe=new bi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),nSe=new bi("BREAKING_POINT_INSERTER",15),L$=new bi("LONG_EDGE_SPLITTER",16),vee=new bi("PORT_SIDE_PROCESSOR",17),k$=new bi("INVERTED_PORT_PROCESSOR",18),P$=new bi("PORT_LIST_SORTER",19),LSe=new bi("SORT_BY_INPUT_ORDER_OF_MODEL",20),M$=new bi("NORTH_SOUTH_PORT_PREPROCESSOR",21),rSe=new bi("BREAKING_POINT_PROCESSOR",22),kSe=new bi(dSt,23),DSe=new bi(fSt,24),j$=new bi("SELF_LOOP_PORT_RESTORER",25),tSe=new bi("ALTERNATING_LAYER_UNZIPPER",26),OSe=new bi("SINGLE_EDGE_GRAPH_WRAPPER",27),N$=new bi("IN_LAYER_CONSTRAINT_PROCESSOR",28),hSe=new bi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),ASe=new bi("LABEL_AND_NODE_SIZE_PROCESSOR",30),TSe=new bi("INNERMOST_NODE_MARGIN_CALCULATOR",31),B$=new bi("SELF_LOOP_ROUTER",32),sSe=new bi("COMMENT_NODE_MARGIN_CALCULATOR",33),x$=new bi("END_LABEL_PREPROCESSOR",34),R$=new bi("LABEL_DUMMY_SWITCHER",35),oSe=new bi("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),Gx=new bi("LABEL_SIDE_SELECTOR",37),ESe=new bi("HYPEREDGE_DUMMY_MERGER",38),mSe=new bi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),_Se=new bi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),_I=new bi("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),cSe=new bi("CONSTRAINTS_POSTPROCESSOR",42),aSe=new bi("COMMENT_POSTPROCESSOR",43),SSe=new bi("HYPERNODE_PROCESSOR",44),wSe=new bi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),O$=new bi("LONG_EDGE_JOINER",46),F$=new bi("SELF_LOOP_POSTPROCESSOR",47),iSe=new bi("BREAKING_POINT_REMOVER",48),D$=new bi("NORTH_SOUTH_PORT_POSTPROCESSOR",49),vSe=new bi("HORIZONTAL_COMPACTOR",50),I$=new bi("LABEL_DUMMY_REMOVER",51),pSe=new bi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),fSe=new bi("END_LABEL_SORTER",53),xT=new bi("REVERSED_EDGE_RESTORER",54),_$=new bi("END_LABEL_POSTPROCESSOR",55),gSe=new bi("HIERARCHICAL_NODE_RESIZER",56),lSe=new bi("DIRECTION_POSTPROCESSOR",57)}function L3n(e,t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It,Lt,on,qn,Gr,Ou,us,Rc,T2,jg,hd,Lp,ul,QT,U4,Dp,Md,Fg,Nm,Cm,eA,Im,Rm,Mp,Sv,sCe,gw,H4,Vre,tA,z4,Tv,G4,Wre,KDt;for(sCe=0,qn=t,us=0,jg=qn.length;us0&&(e.a[Md.p]=sCe++)}for(z4=0,Gr=r,Rc=0,hd=Gr.length;Rc0;){for(Md=(un(eA.b>0),l(eA.a.Xb(eA.c=--eA.b),12)),Cm=0,p=new V(Md.e);p.a0&&(Md.j==(He(),Wt)?(e.a[Md.p]=z4,++z4):(e.a[Md.p]=z4+Lp+QT,++QT))}z4+=QT}for(Nm=new hn,M=new uh,on=t,Ou=0,T2=on.length;Ouy.b&&(y.b=Im)):Md.i.c==Sv&&(Imy.c&&(y.c=Im));for(g_(U,0,U.length,null),tA=we(Rn,Qn,30,U.length,15,1),o=we(Rn,Qn,30,z4+1,15,1),J=0;J0;)qe%2>0&&(a+=Wre[qe+1]),qe=(qe-1)/2|0,++Wre[qe];for(ft=we(w4t,Rt,371,U.length*2,0,1),de=0;de0&&JO(Ou.f),ve(J,aU)!=null&&(!J.a&&(J.a=new ke(En,J,10,11)),!!J.a)&&(!J.a&&(J.a=new ke(En,J,10,11)),J.a).i>0?(p=l(ve(J,aU),525),Cm=p.Sg(J),i0(J,b.Math.max(J.g,Cm.a+Lp.b+Lp.c),b.Math.max(J.f,Cm.b+Lp.d+Lp.a))):(!J.a&&(J.a=new ke(En,J,10,11)),J.a).i!=0&&(Cm=new Me(ue(le(ve(J,dv))),ue(le(ve(J,dv)))/ue(le(ve(J,mk)))),i0(J,b.Math.max(J.g,Cm.a+Lp.b+Lp.c),b.Math.max(J.f,Cm.b+Lp.d+Lp.a)));if(hd=l(ve(t,df),100),O=t.g-(hd.b+hd.c),N=t.f-(hd.d+hd.a),Rm.ah("Available Child Area: ("+O+"|"+N+")"),Vn(t,gk,O/N),c1t(t,a,o.dh(T2)),l(ve(t,VT),283)==gU&&(qJ(t),i0(t,hd.b+ue(le(ve(t,av)))+hd.c,hd.d+ue(le(ve(t,sv)))+hd.a)),Rm.ah("Executed layout algorithm: "+In(ve(t,zT))+" on node "+t.k),l(ve(t,VT),283)==pv){if(O<0||N<0)throw Y(new _f("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,av)||Gc(t,sv)||qJ(t),U=ue(le(ve(t,av))),M=ue(le(ve(t,sv))),Rm.ah("Desired Child Area: ("+U+"|"+M+")"),QT=O/U,U4=N/M,ul=b.Math.min(QT,b.Math.min(U4,ue(le(ve(t,Q6t))))),Vn(t,sU,ul),Rm.ah(t.k+" -- Local Scale Factor (X|Y): ("+QT+"|"+U4+")"),de=l(ve(t,$D),24),c=0,f=0,ul'?":wt(dAt,e)?"'(?<' or '(? toIndex: ",gwe=", toIndex: ",bwe="Index: ",mwe=", Size: ",hx="org.eclipse.elk.alg.common",Un={50:1},A2t="org.eclipse.elk.alg.common.compaction",_2t="Scanline/EventHandler",Ah="org.eclipse.elk.alg.common.compaction.oned",x2t="CNode belongs to another CGroup.",k2t="ISpacingsHandler/1",CX="The ",IX=" instance has been finished already.",N2t="The direction ",C2t=" is not supported by the CGraph instance.",I2t="OneDimensionalCompactor",R2t="OneDimensionalCompactor/lambda$0$Type",O2t="Quadruplet",L2t="ScanlineConstraintCalculator",D2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler",M2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",P2t="ScanlineConstraintCalculator/Timestamp",j2t="ScanlineConstraintCalculator/lambda$0$Type",Uf={181:1,48:1},GC="org.eclipse.elk.alg.common.networksimplex",Ad={172:1,3:1,4:1},F2t="org.eclipse.elk.alg.common.nodespacing",rm="org.eclipse.elk.alg.common.nodespacing.cellsystem",px="CENTER",$2t={219:1,338:1},wwe={3:1,4:1,5:1,599:1},hT="LEFT",pT="RIGHT",ywe="Vertical alignment cannot be null",vwe="BOTTOM",aF="org.eclipse.elk.alg.common.nodespacing.internal",qC="UNDEFINED",nf=.01,xL="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",B2t="LabelPlacer/lambda$0$Type",U2t="LabelPlacer/lambda$1$Type",H2t="portRatioOrPosition",gx="org.eclipse.elk.alg.common.overlaps",RX="DOWN",gT="org.eclipse.elk.alg.common.spore",Oy={3:1,4:1,5:1,200:1},z2t={3:1,6:1,4:1,5:1,91:1,111:1},OX="org.eclipse.elk.alg.force",Ewe="ComponentsProcessor",G2t="ComponentsProcessor/1",Swe="ElkGraphImporter/lambda$0$Type",im={207:1},DE="org.eclipse.elk.core",kL="org.eclipse.elk.graph.properties",q2t="IPropertyHolder",NL="org.eclipse.elk.alg.force.graph",V2t="Component Layout",Twe="org.eclipse.elk.alg.force.model",Ns="org.eclipse.elk.core.data",uF="org.eclipse.elk.force.model",Awe="org.eclipse.elk.force.iterations",_we="org.eclipse.elk.force.repulsivePower",LX="org.eclipse.elk.force.temperature",Hf=.001,DX="org.eclipse.elk.force.repulsion",td={139:1},VC="org.eclipse.elk.alg.force.options",bx=1.600000023841858,Ga="org.eclipse.elk.force",CL="org.eclipse.elk.priority",$0="org.eclipse.elk.spacing.nodeNode",MX="org.eclipse.elk.spacing.edgeLabel",mx="org.eclipse.elk.aspectRatio",cF="org.eclipse.elk.randomSeed",WC="org.eclipse.elk.separateConnectedComponents",B0="org.eclipse.elk.padding",wx="org.eclipse.elk.interactive",lF="org.eclipse.elk.portConstraints",IL="org.eclipse.elk.edgeLabels.inline",yx="org.eclipse.elk.omitNodeMicroLayout",vx="org.eclipse.elk.nodeSize.fixedGraphSize",bT="org.eclipse.elk.nodeSize.options",ME="org.eclipse.elk.nodeSize.constraints",Ex="org.eclipse.elk.nodeLabels.placement",Sx="org.eclipse.elk.portLabels.placement",RL="org.eclipse.elk.topdownLayout",OL="org.eclipse.elk.topdown.scaleFactor",LL="org.eclipse.elk.topdown.hierarchicalNodeWidth",DL="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",U0="org.eclipse.elk.topdown.nodeType",xwe="origin",W2t="random",K2t="boundingBox.upLeft",Y2t="boundingBox.lowRight",kwe="org.eclipse.elk.stress.fixed",Nwe="org.eclipse.elk.stress.desiredEdgeLength",Cwe="org.eclipse.elk.stress.dimension",Iwe="org.eclipse.elk.stress.epsilon",Rwe="org.eclipse.elk.stress.iterationLimit",N1="org.eclipse.elk.stress",J2t="ELK Stress",mT="org.eclipse.elk.nodeSize.minimum",dF="org.eclipse.elk.alg.force.stress",X2t="Layered layout",wT="org.eclipse.elk.alg.layered",ML="org.eclipse.elk.alg.layered.compaction.components",KC="org.eclipse.elk.alg.layered.compaction.oned",fF="org.eclipse.elk.alg.layered.compaction.oned.algs",om="org.eclipse.elk.alg.layered.compaction.recthull",rf="org.eclipse.elk.alg.layered.components",_d="NONE",PX="MODEL_ORDER",ea={3:1,6:1,4:1,10:1,5:1,128:1},Z2t={3:1,6:1,4:1,5:1,137:1,91:1,111:1},hF="org.eclipse.elk.alg.layered.compound",kr={43:1},ca="org.eclipse.elk.alg.layered.graph",jX=" -> ",Q2t="Not supported by LGraph",Owe="Port side is undefined",Tx={3:1,6:1,4:1,5:1,324:1,137:1,91:1,111:1},vg={3:1,6:1,4:1,5:1,137:1,201:1,212:1,91:1,111:1},eSt={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},tSt=`([{"' \r -`,nSt=`)]}"' \r -`,rSt="The given string contains parts that cannot be parsed as numbers.",PL="org.eclipse.elk.core.math",iSt={3:1,4:1,125:1,216:1,419:1},oSt={3:1,4:1,100:1,216:1,419:1},Eg="org.eclipse.elk.alg.layered.graph.transform",sSt="ElkGraphImporter",aSt="ElkGraphImporter/lambda$1$Type",uSt="ElkGraphImporter/lambda$2$Type",cSt="ElkGraphImporter/lambda$4$Type",Zt="org.eclipse.elk.alg.layered.intermediate",lSt="Node margin calculation",dSt="ONE_SIDED_GREEDY_SWITCH",fSt="TWO_SIDED_GREEDY_SWITCH",FX="No implementation is available for the layout processor ",$X="IntermediateProcessorStrategy",BX="Node '",hSt="FIRST_SEPARATE",pSt="LAST_SEPARATE",gSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",YC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",JC={223:1},yT="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",pF="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",$s="org.eclipse.elk.alg.layered.options",UX="INTERACTIVE",Lwe="GREEDY",bSt="DEPTH_FIRST",mSt="EDGE_LENGTH",wSt="SELF_LOOPS",ySt="firstTryWithInitialOrder",Dwe="org.eclipse.elk.layered.directionCongruency",Mwe="org.eclipse.elk.layered.feedbackEdges",gF="org.eclipse.elk.layered.interactiveReferencePoint",Pwe="org.eclipse.elk.layered.mergeEdges",jwe="org.eclipse.elk.layered.mergeHierarchyEdges",Fwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",$we="org.eclipse.elk.layered.portSortingStrategy",Bwe="org.eclipse.elk.layered.thoroughness",Uwe="org.eclipse.elk.layered.unnecessaryBendpoints",Hwe="org.eclipse.elk.layered.generatePositionAndLayerIds",jL="org.eclipse.elk.layered.cycleBreaking.strategy",FL="org.eclipse.elk.layered.layering.strategy",zwe="org.eclipse.elk.layered.layering.layerConstraint",Gwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",qwe="org.eclipse.elk.layered.layering.layerId",HX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",zX="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",GX="org.eclipse.elk.layered.layering.nodePromotion.strategy",qX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",VX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",XC="org.eclipse.elk.layered.crossingMinimization.strategy",Vwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",WX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",KX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Wwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Kwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Ywe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Jwe="org.eclipse.elk.layered.crossingMinimization.positionId",Xwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",YX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",bF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",mF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",JX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",XX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",ZX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",QX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",eZ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Zwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Qwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",wF="org.eclipse.elk.layered.edgeRouting.splines.mode",yF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",tZ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",eye="org.eclipse.elk.layered.spacing.baseValue",tye="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",nye="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",rye="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",iye="org.eclipse.elk.layered.priority.direction",oye="org.eclipse.elk.layered.priority.shortness",sye="org.eclipse.elk.layered.priority.straightness",nZ="org.eclipse.elk.layered.compaction.connectedComponents",aye="org.eclipse.elk.layered.compaction.postCompaction.strategy",uye="org.eclipse.elk.layered.compaction.postCompaction.constraints",vF="org.eclipse.elk.layered.highDegreeNodes.treatment",rZ="org.eclipse.elk.layered.highDegreeNodes.threshold",iZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Sp="org.eclipse.elk.layered.wrapping.strategy",EF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",SF="org.eclipse.elk.layered.wrapping.correctionFactor",ZC="org.eclipse.elk.layered.wrapping.cutting.strategy",oZ="org.eclipse.elk.layered.wrapping.cutting.cuts",sZ="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",TF="org.eclipse.elk.layered.wrapping.validify.strategy",AF="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",_F="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",xF="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",aZ="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",uZ="org.eclipse.elk.layered.layerUnzipping.strategy",cZ="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",lZ="org.eclipse.elk.layered.layerUnzipping.layerSplit",dZ="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",cye="org.eclipse.elk.layered.edgeLabels.sideSelection",lye="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",kF="org.eclipse.elk.layered.considerModelOrder.strategy",dye="org.eclipse.elk.layered.considerModelOrder.portModelOrder",$L="org.eclipse.elk.layered.considerModelOrder.noModelOrder",fZ="org.eclipse.elk.layered.considerModelOrder.components",fye="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",hZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",pZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",gZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",bZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",mZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",hye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",wZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",yZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",pye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",gye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",vZ="layering",vSt="layering.minWidth",ESt="layering.nodePromotion",Ax="crossingMinimization",NF="org.eclipse.elk.hierarchyHandling",SSt="crossingMinimization.greedySwitch",TSt="nodePlacement",ASt="nodePlacement.bk",_St="edgeRouting",BL="org.eclipse.elk.edgeRouting",of="spacing",bye="priority",mye="compaction",xSt="compaction.postCompaction",kSt="Specifies whether and how post-process compaction is applied.",wye="highDegreeNodes",yye="wrapping",NSt="wrapping.cutting",CSt="wrapping.validify",vye="wrapping.multiEdge",EZ="layerUnzipping",SZ="edgeLabels",QC="considerModelOrder",_x="considerModelOrder.groupModelOrder",Eye="Group ID of the Node Type",Sye="org.eclipse.elk.spacing.commentComment",Tye="org.eclipse.elk.spacing.commentNode",Aye="org.eclipse.elk.spacing.componentComponent",_ye="org.eclipse.elk.spacing.edgeEdge",TZ="org.eclipse.elk.spacing.edgeNode",xye="org.eclipse.elk.spacing.labelLabel",kye="org.eclipse.elk.spacing.labelPortHorizontal",Nye="org.eclipse.elk.spacing.labelPortVertical",Cye="org.eclipse.elk.spacing.labelNode",Iye="org.eclipse.elk.spacing.nodeSelfLoop",Rye="org.eclipse.elk.spacing.portPort",Oye="org.eclipse.elk.spacing.individual",Lye="org.eclipse.elk.port.borderOffset",Dye="org.eclipse.elk.noLayout",Mye="org.eclipse.elk.port.side",UL="org.eclipse.elk.debugMode",Pye="org.eclipse.elk.alignment",jye="org.eclipse.elk.insideSelfLoops.activate",Fye="org.eclipse.elk.insideSelfLoops.yo",AZ="org.eclipse.elk.direction",$ye="org.eclipse.elk.nodeLabels.padding",Bye="org.eclipse.elk.portLabels.nextToPortIfPossible",Uye="org.eclipse.elk.portLabels.treatAsGroup",Hye="org.eclipse.elk.portAlignment.default",zye="org.eclipse.elk.portAlignment.north",Gye="org.eclipse.elk.portAlignment.south",qye="org.eclipse.elk.portAlignment.west",Vye="org.eclipse.elk.portAlignment.east",CF="org.eclipse.elk.contentAlignment",Wye="org.eclipse.elk.junctionPoints",Kye="org.eclipse.elk.edge.thickness",Yye="org.eclipse.elk.edgeLabels.placement",Jye="org.eclipse.elk.port.index",Xye="org.eclipse.elk.commentBox",Zye="org.eclipse.elk.hypernode",Qye="org.eclipse.elk.port.anchor",_Z="org.eclipse.elk.partitioning.activate",xZ="org.eclipse.elk.partitioning.partition",IF="org.eclipse.elk.position",kZ="org.eclipse.elk.margins",eve="org.eclipse.elk.spacing.portsSurrounding",RF="org.eclipse.elk.interactiveLayout",Vs="org.eclipse.elk.core.util",tve={3:1,4:1,5:1,597:1},ISt="NETWORK_SIMPLEX",nve="SIMPLE",NZ="No implementation is available for the node placer ",Fi={86:1,43:1},H0="org.eclipse.elk.alg.layered.p1cycles",RSt="Depth-first cycle removal",OSt="Model order cycle breaking",Tp="org.eclipse.elk.alg.layered.p2layers",rve={411:1,223:1},LSt={838:1,3:1,4:1},qa="org.eclipse.elk.alg.layered.p3order",jE=17976931348623157e292,CZ=5e-324,Uo="org.eclipse.elk.alg.layered.p4nodes",DSt={3:1,4:1,5:1,846:1},Gf=1e-5,I1="org.eclipse.elk.alg.layered.p4nodes.bk",IZ="org.eclipse.elk.alg.layered.p5edges",xd="org.eclipse.elk.alg.layered.p5edges.orthogonal",RZ="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",OZ=1e-6,Ly="org.eclipse.elk.alg.layered.p5edges.splines",LZ=.09999999999999998,OF=1e-8,MSt=4.71238898038469,PSt=1.5707963267948966,ive=3.141592653589793,Ap="org.eclipse.elk.alg.mrtree",jSt="Tree layout",FSt="P4_EDGE_ROUTING",DZ=.10000000149011612,LF="SUPER_ROOT",eI="org.eclipse.elk.alg.mrtree.graph",ove=-17976931348623157e292,Aa="org.eclipse.elk.alg.mrtree.intermediate",$St="Processor compute fanout",DF={3:1,6:1,4:1,5:1,526:1,91:1,111:1},BSt="Set neighbors in level",HL="org.eclipse.elk.alg.mrtree.options",USt="DESCENDANTS",sve="org.eclipse.elk.mrtree.compaction",ave="org.eclipse.elk.mrtree.edgeEndTextureLength",uve="org.eclipse.elk.mrtree.treeLevel",cve="org.eclipse.elk.mrtree.positionConstraint",lve="org.eclipse.elk.mrtree.weighting",dve="org.eclipse.elk.mrtree.edgeRoutingMode",fve="org.eclipse.elk.mrtree.searchOrder",HSt="Position Constraint",Va="org.eclipse.elk.mrtree",hve="org.eclipse.elk.tree",zSt="Processor arrange level",xx="org.eclipse.elk.alg.mrtree.p2order",uc="org.eclipse.elk.alg.mrtree.p4route",pve="org.eclipse.elk.alg.radial",GSt="The given graph is not a tree!",sm=6.283185307179586,gve="Before",MF="After",bve="org.eclipse.elk.alg.radial.intermediate",qSt="COMPACTION",MZ="org.eclipse.elk.alg.radial.intermediate.compaction",VSt={3:1,4:1,5:1,91:1},mve="org.eclipse.elk.alg.radial.intermediate.optimization",PZ="No implementation is available for the layout option ",tI="org.eclipse.elk.alg.radial.options",WSt="CompactionStrategy",wve="org.eclipse.elk.radial.centerOnRoot",yve="org.eclipse.elk.radial.orderId",vve="org.eclipse.elk.radial.radius",PF="org.eclipse.elk.radial.rotate",jZ="org.eclipse.elk.radial.compactor",FZ="org.eclipse.elk.radial.compactionStepSize",Eve="org.eclipse.elk.radial.sorter",Sve="org.eclipse.elk.radial.wedgeCriteria",Tve="org.eclipse.elk.radial.optimizationCriteria",$Z="org.eclipse.elk.radial.rotation.targetAngle",BZ="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Ave="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",KSt="Compaction",_ve="rotation",Qc="org.eclipse.elk.radial",YSt="org.eclipse.elk.alg.radial.p1position.wedge",xve="org.eclipse.elk.alg.radial.sorting",JSt=5.497787143782138,XSt=3.9269908169872414,ZSt=2.356194490192345,QSt="org.eclipse.elk.alg.rectpacking",nI="org.eclipse.elk.alg.rectpacking.intermediate",UZ="org.eclipse.elk.alg.rectpacking.options",kve="org.eclipse.elk.rectpacking.trybox",Nve="org.eclipse.elk.rectpacking.currentPosition",Cve="org.eclipse.elk.rectpacking.desiredPosition",Ive="org.eclipse.elk.rectpacking.inNewRow",Rve="org.eclipse.elk.rectpacking.orderBySize",Ove="org.eclipse.elk.rectpacking.widthApproximation.strategy",Lve="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Dve="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Mve="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Pve="org.eclipse.elk.rectpacking.packing.strategy",jve="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",Fve="org.eclipse.elk.rectpacking.packing.compaction.iterations",$ve="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",HZ="widthApproximation",eTt="Compaction Strategy",tTt="packing.compaction",ku="org.eclipse.elk.rectpacking",kx="org.eclipse.elk.alg.rectpacking.p1widthapproximation",jF="org.eclipse.elk.alg.rectpacking.p2packing",nTt="No Compaction",Bve="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zL="org.eclipse.elk.alg.rectpacking.util",FF="No implementation available for ",Dy="org.eclipse.elk.alg.spore",My="org.eclipse.elk.alg.spore.options",z0="org.eclipse.elk.sporeCompaction",zZ="org.eclipse.elk.underlyingLayoutAlgorithm",Uve="org.eclipse.elk.processingOrder.treeConstruction",Hve="org.eclipse.elk.processingOrder.spanningTreeCostFunction",GZ="org.eclipse.elk.processingOrder.preferredRoot",qZ="org.eclipse.elk.processingOrder.rootSelection",VZ="org.eclipse.elk.structure.structureExtractionStrategy",zve="org.eclipse.elk.compaction.compactionStrategy",Gve="org.eclipse.elk.compaction.orthogonal",qve="org.eclipse.elk.overlapRemoval.maxIterations",Vve="org.eclipse.elk.overlapRemoval.runScanline",WZ="processingOrder",rTt="overlapRemoval",Nx="org.eclipse.elk.sporeOverlap",iTt="org.eclipse.elk.alg.spore.p1structure",KZ="org.eclipse.elk.alg.spore.p2processingorder",YZ="org.eclipse.elk.alg.spore.p3execution",Wve="org.eclipse.elk.alg.vertiflex",Kve="org.eclipse.elk.vertiflex.verticalConstraint",Yve="org.eclipse.elk.vertiflex.layoutStrategy",Jve="org.eclipse.elk.vertiflex.layerDistance",Xve="org.eclipse.elk.vertiflex.considerNodeModelOrder",Zve="org.eclipse.elk.alg.vertiflex.options",G0="org.eclipse.elk.vertiflex",oTt="org.eclipse.elk.alg.vertiflex.p1yplacement",JZ="org.eclipse.elk.alg.vertiflex.p2relative",sTt="org.eclipse.elk.alg.vertiflex.p3absolute",aTt="BendEdgeRouter",Qve="org.eclipse.elk.alg.vertiflex.p4edgerouting",uTt="StraightEdgeRouter",cTt="Topdown Layout",lTt="Invalid index: ",Cx="org.eclipse.elk.core.alg",FE={343:1},Py={297:1},dTt="Make sure its type is registered with the ",eEe=" utility class.",Ix="true",XZ="false",fTt="Couldn't clone property '",q0=.05,Fa="org.eclipse.elk.core.options",hTt=1.2999999523162842,V0="org.eclipse.elk.box",tEe="org.eclipse.elk.expandNodes",nEe="org.eclipse.elk.box.packingMode",pTt="org.eclipse.elk.algorithm",gTt="org.eclipse.elk.resolvedAlgorithm",rEe="org.eclipse.elk.bendPoints",F3n="org.eclipse.elk.labelManager",bTt="org.eclipse.elk.softwrappingFuzziness",mTt="org.eclipse.elk.scaleFactor",wTt="org.eclipse.elk.childAreaWidth",yTt="org.eclipse.elk.childAreaHeight",vTt="org.eclipse.elk.animate",ETt="org.eclipse.elk.animTimeFactor",STt="org.eclipse.elk.layoutAncestors",TTt="org.eclipse.elk.maxAnimTime",ATt="org.eclipse.elk.minAnimTime",_Tt="org.eclipse.elk.progressBar",xTt="org.eclipse.elk.validateGraph",kTt="org.eclipse.elk.validateOptions",NTt="org.eclipse.elk.zoomToFit",CTt="org.eclipse.elk.json.shapeCoords",ITt="org.eclipse.elk.json.edgeCoords",$3n="org.eclipse.elk.font.name",RTt="org.eclipse.elk.font.size",ZZ="org.eclipse.elk.topdown.sizeCategories",iEe="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",QZ="org.eclipse.elk.topdown.sizeApproximator",oEe="org.eclipse.elk.topdown.scaleCap",OTt="org.eclipse.elk.edge.type",LTt="partitioning",DTt="nodeLabels",$F="portAlignment",eQ="nodeSize",tQ="port",sEe="portLabels",Rx="topdown",MTt="insideSelfLoops",aEe="INHERIT",Ox="org.eclipse.elk.fixed",BF="org.eclipse.elk.random",UF={3:1,34:1,23:1,525:1,290:1},PTt="port must have a parent node to calculate the port side",jTt="The edge needs to have exactly one edge section. Found: ",rI="org.eclipse.elk.core.util.adapters",el="org.eclipse.emf.ecore",$E="org.eclipse.elk.graph",FTt="EMapPropertyHolder",$Tt="ElkBendPoint",BTt="ElkGraphElement",UTt="ElkConnectableShape",uEe="ElkEdge",HTt="ElkEdgeSection",zTt="EModelElement",GTt="ENamedElement",cEe="ElkLabel",lEe="ElkNode",dEe="ElkPort",qTt={95:1,94:1},vT="org.eclipse.emf.common.notify.impl",R1="The feature '",iI="' is not a valid changeable feature",VTt="Expecting null",nQ="' is not a valid feature",WTt="The feature ID",KTt=" is not a valid feature ID",Ws=32768,YTt={110:1,95:1,94:1,57:1,52:1,101:1},Gt="org.eclipse.emf.ecore.impl",am="org.eclipse.elk.graph.impl",oI="Recursive containment not allowed for ",Lx="The datatype '",W0="' is not a valid classifier",rQ="The value '",BE={198:1,3:1,4:1},iQ="The class '",Dx="http://www.eclipse.org/elk/ElkGraph",fEe="property",sI="value",oQ="source",JTt="properties",XTt="identifier",sQ="height",aQ="width",uQ="parent",cQ="text",lQ="children",ZTt="hierarchical",hEe="sources",dQ="targets",fQ="sections",HF="bendPoints",pEe="outgoingShape",gEe="incomingShape",bEe="outgoingSections",mEe="incomingSections",xo="org.eclipse.emf.common.util",wEe="Severe implementation error in the Json to ElkGraph importer.",qf="id",oo="org.eclipse.elk.graph.json",Mx="Unhandled parameter types: ",QTt="startPoint",eAt="An edge must have at least one source and one target (edge id: '",Px="').",tAt="Referenced edge section does not exist: ",nAt=" (edge id: '",yEe="target",rAt="sourcePoint",iAt="targetPoint",zF="group",or="name",oAt="connectableShape cannot be null",sAt="edge cannot be null",aAt="Passed edge is not 'simple'.",GF="org.eclipse.elk.graph.util",GL="The 'no duplicates' constraint is violated",hQ="targetIndex=",um=", size=",pQ="sourceIndex=",Vf={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},gQ={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},qF="logging",uAt="measureExecutionTime",cAt="parser.parse.1",lAt="parser.parse.2",VF="parser.next.1",bQ="parser.next.2",dAt="parser.next.3",fAt="parser.next.4",cm="parser.factor.1",vEe="parser.factor.2",hAt="parser.factor.3",pAt="parser.factor.4",gAt="parser.factor.5",bAt="parser.factor.6",mAt="parser.atom.1",wAt="parser.atom.2",yAt="parser.atom.3",EEe="parser.atom.4",mQ="parser.atom.5",SEe="parser.cc.1",WF="parser.cc.2",vAt="parser.cc.3",EAt="parser.cc.5",TEe="parser.cc.6",AEe="parser.cc.7",wQ="parser.cc.8",SAt="parser.ope.1",TAt="parser.ope.2",AAt="parser.ope.3",Sg="parser.descape.1",_At="parser.descape.2",xAt="parser.descape.3",kAt="parser.descape.4",NAt="parser.descape.5",tl="parser.process.1",CAt="parser.quantifier.1",IAt="parser.quantifier.2",RAt="parser.quantifier.3",OAt="parser.quantifier.4",_Ee="parser.quantifier.5",LAt="org.eclipse.emf.common.notify",xEe={420:1,683:1},DAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},qL={374:1,152:1},aI="index=",yQ={3:1,4:1,5:1,131:1},MAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},kEe={3:1,6:1,4:1,5:1,200:1},PAt={3:1,4:1,5:1,178:1,375:1},jAt=";/?:@&=+$,",FAt="invalid authority: ",$At="EAnnotation",BAt="ETypedElement",UAt="EStructuralFeature",HAt="EAttribute",zAt="EClassifier",GAt="EEnumLiteral",qAt="EGenericType",VAt="EOperation",WAt="EParameter",KAt="EReference",YAt="ETypeParameter",Fr="org.eclipse.emf.ecore.util",vQ={78:1},NEe={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},JAt="org.eclipse.emf.ecore.util.FeatureMap$Entry",yu=8192,uI="byte",KF="char",cI="double",lI="float",dI="int",fI="long",hI="short",XAt="java.lang.Object",UE={3:1,4:1,5:1,258:1},CEe={3:1,4:1,5:1,685:1},ZAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},ws={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},VL="mixed",Bn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Al="kind",QAt={3:1,4:1,5:1,686:1},IEe={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},YF={22:1,32:1,56:1,18:1,16:1,61:1,72:1},JF={51:1,130:1,289:1},XF={76:1,345:1},ZF="The value of type '",QF="' must be of type '",HE=1318,_l="http://www.eclipse.org/emf/2002/Ecore",e$=-32768,K0="constraints",ho="baseType",e_t="getEStructuralFeature",t_t="getFeatureID",pI="feature",n_t="getOperationID",REe="operation",r_t="defaultValue",i_t="eTypeParameters",o_t="isInstance",s_t="getEEnumLiteral",a_t="eContainingClass",tr={58:1},u_t={3:1,4:1,5:1,123:1},c_t="org.eclipse.emf.ecore.resource",l_t={95:1,94:1,595:1,2013:1},EQ="org.eclipse.emf.ecore.resource.impl",OEe="unspecified",WL="simple",t$="attribute",d_t="attributeWildcard",n$="element",SQ="elementWildcard",kd="collapse",TQ="itemType",r$="namespace",KL="##targetNamespace",xl="whiteSpace",LEe="wildcards",lm="http://www.eclipse.org/emf/2003/XMLType",AQ="##any",jx="uninitialized",YL="The multiplicity constraint is violated",i$="org.eclipse.emf.ecore.xml.type",f_t="ProcessingInstruction",h_t="SimpleAnyType",p_t="XMLTypeDocumentRoot",Si="org.eclipse.emf.ecore.xml.type.impl",JL="INF",g_t="processing",b_t="ENTITIES_._base",DEe="minLength",MEe="ENTITY",o$="NCName",m_t="IDREFS_._base",PEe="integer",_Q="token",xQ="pattern",w_t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",jEe="\\i\\c*",y_t="[\\i-[:]][\\c-[:]]*",v_t="nonPositiveInteger",XL="maxInclusive",FEe="NMTOKEN",E_t="NMTOKENS_._base",$Ee="nonNegativeInteger",ZL="minInclusive",S_t="normalizedString",T_t="unsignedByte",A_t="unsignedInt",__t="18446744073709551615",x_t="unsignedShort",k_t="processingInstruction",Tg="org.eclipse.emf.ecore.xml.type.internal",Fx=1114111,N_t="Internal Error: shorthands: \\u",gI="xml:isDigit",kQ="xml:isWord",NQ="xml:isSpace",CQ="xml:isNameChar",IQ="xml:isInitialNameChar",C_t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",I_t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",R_t="Private Use",RQ="ASSIGNED",OQ="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",BEe="UNASSIGNED",$x={3:1,122:1},O_t="org.eclipse.emf.ecore.xml.type.util",s$={3:1,4:1,5:1,377:1},UEe="org.eclipse.xtext.xbase.lib",L_t="Cannot add elements to a Range",D_t="Cannot set elements in a Range",M_t="Cannot remove elements from a Range",P_t="user.agent",h,a$,LQ;b.goog=b.goog||{},b.goog.global=b.goog.global||b,a$={},_(1,null,{},E),h.Fb=function(t){return Mnt(this,t)},h.Gb=function(){return this.Pm},h.Hb=function(){return s0(this)},h.Ib=function(){var t;return Ab(rc(this))+"@"+(t=Rr(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 j_t,F_t,$_t;_(299,1,{299:1,2103:1},Dge),h.te=function(t){var r;return r=new Dge,r.i=4,t>1?r.c=fut(this,t-1):r.c=this,r},h.ue=function(){return np(this),this.b},h.ve=function(){return Ab(this)},h.we=function(){return np(this),this.k},h.xe=function(){return(this.i&4)!=0},h.ye=function(){return(this.i&1)!=0},h.Ib=function(){return Gpe(this)},h.i=0;var Ri=k(Fs,"Object",1),HEe=k(Fs,"Class",299);_(2075,1,gL),k(bL,"Optional",2075),_(1172,2075,gL,S),h.Fb=function(t){return t===this},h.Hb=function(){return 2040732332},h.Ib=function(){return"Optional.absent()"},h.Jb=function(t){return kn(t),BN(),DQ};var DQ;k(bL,"Absent",1172),_(634,1,{},pq),k(bL,"Joiner",634);var B3n=Hr(bL,"Predicate");_(584,1,{181:1,584:1,3:1,48:1},hKe),h.Mb=function(t){return gpt(this,t)},h.Lb=function(t){return gpt(this,t)},h.Fb=function(t){var r;return ae(t,584)?(r=l(t,584),Ime(this.a,r.a)):!1},h.Hb=function(){return $ge(this.a)+306654252},h.Ib=function(){return Dyn(this.a)},k(bL,"Predicates/AndPredicate",584),_(416,2075,{416:1,3:1},v9),h.Fb=function(t){var r;return ae(t,416)?(r=l(t,416),pr(this.a,r.a)):!1},h.Hb=function(){return 1502476572+Rr(this.a)},h.Ib=function(){return QEt+this.a+")"},h.Jb=function(t){return new v9(NP(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},k(bL,"Present",416),_(206,1,sx),h.Nb=function(t){so(this,t)},h.Qb=function(){EQe()},k(mt,"UnmodifiableIterator",206),_(2055,206,ax),h.Qb=function(){EQe()},h.Rb=function(t){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(mt,"UnmodifiableListIterator",2055),_(394,2055,ax),h.Ob=function(){return this.b0},h.Pb=function(){if(this.b>=this.c)throw Y(new vs);return this.Xb(this.b++)},h.Tb=function(){return this.b},h.Ub=function(){if(this.b<=0)throw Y(new vs);return this.Xb(--this.b)},h.Vb=function(){return this.b-1},h.b=0,h.c=0,k(mt,"AbstractIndexedListIterator",394),_(709,206,sx),h.Ob=function(){return yK(this)},h.Pb=function(){return Fpe(this)},h.e=1,k(mt,"AbstractIterator",709),_(2063,1,{231:1}),h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.Fb=function(t){return UK(this,t)},h.Hb=function(){return Rr(this.Zb())},h.dc=function(){return this.gc()==0},h.ec=function(){return kS(this)},h.Ib=function(){return ms(this.Zb())},k(mt,"AbstractMultimap",2063),_(737,2063,tm),h.$b=function(){wj(this)},h._b=function(t){return jQe(this,t)},h.ac=function(){return new HA(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 sQe(this)},h.lc=function(){return YY(this.c.vc().Lc(),new C,64,this.d)},h.cc=function(t){return wr(this,t)},h.fc=function(t){return O6(this,t)},h.gc=function(){return this.d},h.mc=function(t){return At(),new CA(t)},h.nc=function(){return new oQe(this)},h.oc=function(){return YY(this.c.Bc().Lc(),new x,64,this.d)},h.pc=function(t,r){return new ej(this,t,r,null)},h.d=0,k(mt,"AbstractMapBasedMultimap",737),_(1678,737,tm),h.hc=function(){return new La(this.a)},h.jc=function(){return At(),At(),Io},h.cc=function(t){return l(wr(this,t),16)},h.fc=function(t){return l(O6(this,t),16)},h.Zb=function(){return LS(this)},h.Fb=function(t){return UK(this,t)},h.qc=function(t){return l(wr(this,t),16)},h.rc=function(t){return l(O6(this,t),16)},h.mc=function(t){return CP(l(t,16))},h.pc=function(t,r){return Sct(this,t,l(r,16),null)},k(mt,"AbstractListMultimap",1678),_(743,1,Wi),h.Nb=function(t){so(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},k(mt,"AbstractMapBasedMultimap/Itr",743),_(1110,743,Wi,oQe),h.sc=function(t,r){return r},k(mt,"AbstractMapBasedMultimap/1",1110),_(1111,1,{},x),h.Kb=function(t){return l(t,18).Lc()},k(mt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),_(1112,743,Wi,sQe),h.sc=function(t,r){return new t0(t,r)},k(mt,"AbstractMapBasedMultimap/2",1112);var zEe=Hr(gn,"Map");_(2044,1,j0),h.wc=function(t){S6(this,t)},h.$b=function(){this.vc().$b()},h.tc=function(t){return RY(this,t)},h._b=function(t){return!!Nbe(this,t,!1)},h.uc=function(t){var r,o,a;for(o=this.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),a=r.kd(),me(t)===me(a)||t!=null&&pr(t,a))return!0;return!1},h.Fb=function(t){var r,o,a;if(t===this)return!0;if(!ae(t,93)||(a=l(t,93),this.gc()!=a.gc()))return!1;for(o=a.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),!this.tc(r))return!1;return!0},h.xc=function(t){return Ss(Nbe(this,t,!1))},h.Hb=function(){return Rge(this.vc())},h.dc=function(){return this.gc()==0},h.ec=function(){return new Xh(this)},h.yc=function(t,r){throw Y(new Jp("Put not supported on this map"))},h.zc=function(t){X3(this,t)},h.Ac=function(t){return Ss(Nbe(this,t,!0))},h.gc=function(){return this.vc().gc()},h.Ib=function(){return $bt(this)},h.Bc=function(){return new Zh(this)},k(gn,"AbstractMap",2044),_(2064,2044,j0),h.bc=function(){return new z9(this)},h.vc=function(){return ast(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 Met(this))},k(mt,"Maps/ViewCachingAbstractMap",2064),_(398,2064,j0,HA),h.xc=function(t){return Afn(this,t)},h.Ac=function(t){return Mpn(this,t)},h.$b=function(){this.d==this.e.c?this.e.$b():iP(new Ffe(this))},h._b=function(t){return sgt(this.d,t)},h.Dc=function(){return new pKe(this)},h.Cc=function(){return this.Dc()},h.Fb=function(t){return this===t||pr(this.d,t)},h.Hb=function(){return Rr(this.d)},h.ec=function(){return this.e.ec()},h.gc=function(){return this.d.gc()},h.Ib=function(){return ms(this.d)},k(mt,"AbstractMapBasedMultimap/AsMap",398);var nl=Hr(Fs,"Iterable");_(32,1,Cy),h.Ic=function(t){lo(this,t)},h.Lc=function(){return new St(this,0)},h.Mc=function(){return new Et(null,this.Lc())},h.Ec=function(t){throw Y(new Jp("Add not supported on this collection"))},h.Fc=function(t){return mo(this,t)},h.$b=function(){The(this)},h.Gc=function(t){return gy(this,t,!1)},h.Hc=function(t){return N6(this,t)},h.dc=function(){return this.gc()==0},h.Kc=function(t){return gy(this,t,!0)},h.Nc=function(){return Jfe(this)},h.Oc=function(t){return pC(this,t)},h.Ib=function(){return Qd(this)},k(gn,"AbstractCollection",32);var kl=Hr(gn,"Set");_(tf,32,wu),h.Lc=function(){return new St(this,1)},h.Fb=function(t){return e1t(this,t)},h.Hb=function(){return Rge(this)},k(gn,"AbstractSet",tf),_(2047,tf,wu),k(mt,"Sets/ImprovedAbstractSet",2047),_(yp,2047,wu),h.$b=function(){this.Pc().$b()},h.Gc=function(t){return Mgt(this,t)},h.dc=function(){return this.Pc().dc()},h.Kc=function(t){var r;return this.Gc(t)&&ae(t,45)?(r=l(t,45),this.Pc().ec().Kc(r.jd())):!1},h.gc=function(){return this.Pc().gc()},k(mt,"Maps/EntrySet",yp),_(1108,yp,wu,pKe),h.Gc=function(t){return s1e(this.a.d.vc(),t)},h.Jc=function(){return new Ffe(this.a)},h.Pc=function(){return this.a},h.Kc=function(t){var r;return s1e(this.a.d.vc(),t)?(r=l(wl(l(t,45)),45),fdn(this.a.e,r.jd()),!0):!1},h.Lc=function(){return BO(this.a.d.vc().Lc(),new gKe(this.a))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),_(1109,1,{},gKe),h.Kb=function(t){return dlt(this.a,l(t,45))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),_(741,1,Wi,Ffe),h.Nb=function(t){so(this,t)},h.Pb=function(){var t;return t=l(this.b.Pb(),45),this.a=l(t.kd(),18),dlt(this.c,t)},h.Ob=function(){return this.b.Ob()},h.Qb=function(){XA(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",741),_(534,2047,wu,z9),h.$b=function(){this.b.$b()},h.Gc=function(t){return this.b._b(t)},h.Ic=function(t){kn(t),this.b.wc(new LKe(t))},h.dc=function(){return this.b.dc()},h.Jc=function(){return new UN(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()},k(mt,"Maps/KeySet",534),_(333,534,wu,sE),h.$b=function(){var t;iP((t=this.b.vc().Jc(),new lle(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 Rr(this.b.ec())},h.Jc=function(){var t;return t=this.b.vc().Jc(),new lle(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()},k(mt,"AbstractMapBasedMultimap/KeySet",333),_(742,1,Wi,lle),h.Nb=function(t){so(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;XA(!!this.a),t=l(this.a.kd(),18),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},k(mt,"AbstractMapBasedMultimap/KeySet/1",742),_(492,398,{93:1,136:1},LO),h.bc=function(){return this.Qc()},h.ec=function(){return this.Sc()},h.Qc=function(){return new cO(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)},k(mt,"AbstractMapBasedMultimap/SortedAsMap",492),_(442,492,nwe,E3),h.bc=function(){return new UA(this.a,l(l(this.d,136),141))},h.Qc=function(){return new UA(this.a,l(l(this.d,136),141))},h.ec=function(){var t;return t=this.b,l(t||(this.b=new UA(this.a,l(l(this.d,136),141))),279)},h.Sc=function(){var t;return t=this.b,l(t||(this.b=new UA(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 E3(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 E3(this.a,l(l(this.d,136),141).$c(t,r))},k(mt,"AbstractMapBasedMultimap/NavigableAsMap",442),_(491,333,e2t,cO),h.Lc=function(){return this.b.ec().Lc()},k(mt,"AbstractMapBasedMultimap/SortedKeySet",491),_(397,491,rwe,UA),k(mt,"AbstractMapBasedMultimap/NavigableKeySet",397),_(543,32,Cy,ej),h.Ec=function(t){var r,o;return $u(this),o=this.d.dc(),r=this.d.Ec(t),r&&(++this.f.d,o&&PO(this)),r},h.Fc=function(t){var r,o,a;return t.dc()?!1:(a=($u(this),this.d.gc()),r=this.d.Fc(t),r&&(o=this.d.gc(),this.f.d+=o-a,a==0&&PO(this)),r)},h.$b=function(){var t;t=($u(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,dP(this))},h.Gc=function(t){return $u(this),this.d.Gc(t)},h.Hc=function(t){return $u(this),this.d.Hc(t)},h.Fb=function(t){return t===this?!0:($u(this),pr(this.d,t))},h.Hb=function(){return $u(this),Rr(this.d)},h.Jc=function(){return $u(this),new _fe(this)},h.Kc=function(t){var r;return $u(this),r=this.d.Kc(t),r&&(--this.f.d,dP(this)),r},h.gc=function(){return Snt(this)},h.Lc=function(){return $u(this),this.d.Lc()},h.Ib=function(){return $u(this),ms(this.d)},k(mt,"AbstractMapBasedMultimap/WrappedCollection",543);var _c=Hr(gn,"List");_(739,543,{22:1,32:1,18:1,16:1},Xfe),h.gd=function(t){zb(this,t)},h.Lc=function(){return $u(this),this.d.Lc()},h._c=function(t,r){var o;$u(this),o=this.d.dc(),l(this.d,16)._c(t,r),++this.a.d,o&&PO(this)},h.ad=function(t,r){var o,a,c;return r.dc()?!1:(c=($u(this),this.d.gc()),o=l(this.d,16).ad(t,r),o&&(a=this.d.gc(),this.a.d+=a-c,c==0&&PO(this)),o)},h.Xb=function(t){return $u(this),l(this.d,16).Xb(t)},h.bd=function(t){return $u(this),l(this.d,16).bd(t)},h.cd=function(){return $u(this),new Qnt(this)},h.dd=function(t){return $u(this),new Tat(this,t)},h.ed=function(t){var r;return $u(this),r=l(this.d,16).ed(t),--this.a.d,dP(this),r},h.fd=function(t,r){return $u(this),l(this.d,16).fd(t,r)},h.hd=function(t,r){return $u(this),Sct(this.a,this.e,l(this.d,16).hd(t,r),this.b?this.b:this)},k(mt,"AbstractMapBasedMultimap/WrappedList",739),_(1107,739,{22:1,32:1,18:1,16:1,59:1},Brt),k(mt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),_(626,1,Wi,_fe),h.Nb=function(t){so(this,t)},h.Ob=function(){return c_(this),this.b.Ob()},h.Pb=function(){return c_(this),this.b.Pb()},h.Qb=function(){Art(this)},k(mt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),_(740,626,vh,Qnt,Tat),h.Qb=function(){Art(this)},h.Rb=function(t){var r;r=Snt(this.a)==0,(c_(this),l(this.b,130)).Rb(t),++this.a.a.d,r&&PO(this.a)},h.Sb=function(){return(c_(this),l(this.b,130)).Sb()},h.Tb=function(){return(c_(this),l(this.b,130)).Tb()},h.Ub=function(){return(c_(this),l(this.b,130)).Ub()},h.Vb=function(){return(c_(this),l(this.b,130)).Vb()},h.Wb=function(t){(c_(this),l(this.b,130)).Wb(t)},k(mt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),_(738,543,e2t,Ude),h.Lc=function(){return $u(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSortedSet",738),_(1106,738,rwe,qnt),k(mt,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),_(1105,543,wu,uit),h.Lc=function(){return $u(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSet",1105),_(1114,1,{},C),h.Kb=function(t){return mdn(l(t,45))},k(mt,"AbstractMapBasedMultimap/lambda$1$Type",1114),_(1113,1,{},bKe),h.Kb=function(t){return new t0(this.a,t)},k(mt,"AbstractMapBasedMultimap/lambda$2$Type",1113);var dm=Hr(gn,"Map/Entry");_(359,1,JJ),h.Fb=function(t){var r;return ae(t,45)?(r=l(t,45),rp(this.jd(),r.jd())&&rp(this.kd(),r.kd())):!1},h.Hb=function(){var t,r;return t=this.jd(),r=this.kd(),(t==null?0:Rr(t))^(r==null?0:Rr(r))},h.ld=function(t){throw Y(new Nn)},h.Ib=function(){return this.jd()+"="+this.kd()},k(mt,t2t,359),_(2065,32,Cy),h.$b=function(){this.md().$b()},h.Gc=function(t){var r;return ae(t,45)?(r=l(t,45),$cn(this.md(),r.jd(),r.kd())):!1},h.Kc=function(t){var r;return ae(t,45)?(r=l(t,45),rct(this.md(),r.jd(),r.kd())):!1},h.gc=function(){return this.md().d},k(mt,"Multimaps/Entries",2065),_(744,2065,Cy,Yue),h.Jc=function(){return this.a.kc()},h.md=function(){return this.a},h.Lc=function(){return this.a.lc()},k(mt,"AbstractMultimap/Entries",744),_(745,744,wu,Gce),h.Lc=function(){return this.a.lc()},h.Fb=function(t){return Kbe(this,t)},h.Hb=function(){return pht(this)},k(mt,"AbstractMultimap/EntrySet",745),_(746,32,Cy,Jue),h.$b=function(){this.a.$b()},h.Gc=function(t){return Rpn(this.a,t)},h.Jc=function(){return this.a.nc()},h.gc=function(){return this.a.d},h.Lc=function(){return this.a.oc()},k(mt,"AbstractMultimap/Values",746),_(2066,32,{841:1,22:1,32:1,18:1}),h.Ic=function(t){kn(t),uE(this).Ic(new UKe(t))},h.Lc=function(){var t;return t=uE(this).Lc(),YY(t,new G,64|t.wd()&1296,this.a.d)},h.Ec=function(t){return Jce(),!0},h.Fc=function(t){return kn(this),kn(t),ae(t,544)?Hcn(l(t,841)):!t.dc()&&lK(this,t.Jc())},h.Gc=function(t){var r;return r=l(py(LS(this.a),t),18),(r?r.gc():0)>0},h.Fb=function(t){return OEn(this,t)},h.Hb=function(){return Rr(uE(this))},h.dc=function(){return uE(this).dc()},h.Kc=function(t){return o0t(this,t,1)>0},h.Ib=function(){return ms(uE(this))},k(mt,"AbstractMultiset",2066),_(2068,2047,wu),h.$b=function(){wj(this.a.a)},h.Gc=function(t){var r,o;return ae(t,493)?(o=l(t,421),l(o.a.kd(),18).gc()<=0?!1:(r=_ut(this.a,o.a.jd()),r==l(o.a.kd(),18).gc())):!1},h.Kc=function(t){var r,o,a,c;return ae(t,493)&&(o=l(t,421),r=o.a.jd(),a=l(o.a.kd(),18).gc(),a!=0)?(c=this.a,Nvn(c,r,a)):!1},k(mt,"Multisets/EntrySet",2068),_(1120,2068,wu,mKe),h.Jc=function(){return new dQe(ast(LS(this.a.a)).Jc())},h.gc=function(){return LS(this.a.a).gc()},k(mt,"AbstractMultiset/EntrySet",1120),_(625,737,tm),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 At(),At(),h$},h.Fb=function(t){return UK(this,t)},h.pd=function(t){return l(wr(this,t),24)},h.qd=function(t){return l(O6(this,t),24)},h.mc=function(t){return At(),new PA(l(t,24))},h.pc=function(t,r){return new uit(this,t,l(r,24))},k(mt,"AbstractSetMultimap",625),_(1706,625,tm),h.hc=function(){return new Qp(this.b)},h.nd=function(){return new Qp(this.b)},h.jc=function(){return che(new Qp(this.b))},h.od=function(){return che(new Qp(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(O6(this,t),24),85)},h.qd=function(t){return l(l(O6(this,t),24),85)},h.mc=function(t){return ae(t,279)?che(l(t,279)):(At(),new Cde(l(t,85)))},h.Zb=function(){var t;return t=this.f,t||(this.f=ae(this.c,141)?new E3(this,l(this.c,141)):ae(this.c,136)?new LO(this,l(this.c,136)):new HA(this,this.c))},h.pc=function(t,r){return ae(r,279)?new qnt(this,t,l(r,279)):new Ude(this,t,l(r,85))},k(mt,"AbstractSortedSetMultimap",1706),_(1707,1706,tm),h.Zb=function(){var t;return t=this.f,l(l(t||(this.f=ae(this.c,141)?new E3(this,l(this.c,141)):ae(this.c,136)?new LO(this,l(this.c,136)):new HA(this,this.c)),136),141)},h.ec=function(){var t;return t=this.i,l(l(t||(this.i=ae(this.c,141)?new UA(this,l(this.c,141)):ae(this.c,136)?new cO(this,l(this.c,136)):new sE(this,this.c)),85),279)},h.bc=function(){return ae(this.c,141)?new UA(this,l(this.c,141)):ae(this.c,136)?new cO(this,l(this.c,136)):new sE(this,this.c)},k(mt,"AbstractSortedKeySortedSetMultimap",1707),_(2088,1,{2025:1}),h.Fb=function(t){return y0n(this,t)},h.Hb=function(){var t;return Rge((t=this.g,t||(this.g=new jG(this))))},h.Ib=function(){var t;return $bt((t=this.f,t||(this.f=new vde(this))))},k(mt,"AbstractTable",2088),_(676,tf,wu,jG),h.$b=function(){SQe()},h.Gc=function(t){var r,o;return ae(t,471)?(r=l(t,694),o=l(py(Dst(this.a),i1(r.c.e,r.b)),93),!!o&&s1e(o.vc(),new t0(i1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.Jc=function(){return zan(this.a)},h.Kc=function(t){var r,o;return ae(t,471)?(r=l(t,694),o=l(py(Dst(this.a),i1(r.c.e,r.b)),93),!!o&&pgn(o.vc(),new t0(i1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.gc=function(){return Pot(this.a)},h.Lc=function(){return Vcn(this.a)},k(mt,"AbstractTable/CellSet",676),_(2004,32,Cy,wKe),h.$b=function(){SQe()},h.Gc=function(t){return cwn(this.a,t)},h.Jc=function(){return Gan(this.a)},h.gc=function(){return Pot(this.a)},h.Lc=function(){return Zut(this.a)},k(mt,"AbstractTable/Values",2004),_(1679,1678,tm),k(mt,"ArrayListMultimapGwtSerializationDependencies",1679),_(510,1679,tm,hq,zhe),h.hc=function(){return new La(this.a)},h.a=0,k(mt,"ArrayListMultimap",510),_(675,2088,{675:1,2025:1,3:1},i0t),k(mt,"ArrayTable",675),_(2e3,394,ax,Ert),h.Xb=function(t){return new Nge(this.a,t)},k(mt,"ArrayTable/1",2e3),_(2001,1,{},yKe),h.rd=function(t){return new Nge(this.a,t)},k(mt,"ArrayTable/1methodref$getCell$Type",2001),_(2089,1,{694:1}),h.Fb=function(t){var r;return t===this?!0:ae(t,471)?(r=l(t,694),rp(i1(this.c.e,this.b),i1(r.c.e,r.b))&&rp(i1(this.c.c,this.a),i1(r.c.c,r.a))&&rp($S(this.c,this.b,this.a),$S(r.c,r.b,r.a))):!1},h.Hb=function(){return Fj(Z(X(Ri,1),Rt,1,5,[i1(this.c.e,this.b),i1(this.c.c,this.a),$S(this.c,this.b,this.a)]))},h.Ib=function(){return"("+i1(this.c.e,this.b)+","+i1(this.c.c,this.a)+")="+$S(this.c,this.b,this.a)},k(mt,"Tables/AbstractCell",2089),_(471,2089,{471:1,694:1},Nge),h.a=0,h.b=0,h.d=0,k(mt,"ArrayTable/2",471),_(2003,1,{},vKe),h.rd=function(t){return gdt(this.a,t)},k(mt,"ArrayTable/2methodref$getValue$Type",2003),_(2002,394,ax,Srt),h.Xb=function(t){return gdt(this.a,t)},k(mt,"ArrayTable/3",2002),_(2056,2044,j0),h.$b=function(){iP(this.kc())},h.vc=function(){return new PKe(this)},h.lc=function(){return new pat(this.kc(),this.gc())},k(mt,"Maps/IteratorBasedAbstractMap",2056),_(834,2056,j0),h.$b=function(){throw Y(new Nn)},h._b=function(t){return FQe(this.c,t)},h.kc=function(){return new Trt(this,this.c.b.c.gc())},h.lc=function(){return UV(this.c.b.c.gc(),16,new EKe(this))},h.xc=function(t){var r;return r=l(S3(this.c,t),15),r?this.td(r.a):null},h.dc=function(){return this.c.b.c.dc()},h.ec=function(){return JV(this.c)},h.yc=function(t,r){var o;if(o=l(S3(this.c,t),15),!o)throw Y(new jt(this.sd()+" "+t+" not in "+JV(this.c)));return this.ud(o.a,r)},h.Ac=function(t){throw Y(new Nn)},h.gc=function(){return this.c.b.c.gc()},k(mt,"ArrayTable/ArrayMap",834),_(1999,1,{},EKe),h.rd=function(t){return Mst(this.a,t)},k(mt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),_(1997,359,JJ,bet),h.jd=function(){return onn(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,k(mt,"ArrayTable/ArrayMap/1",1997),_(1998,394,ax,Trt),h.Xb=function(t){return Mst(this.a,t)},k(mt,"ArrayTable/ArrayMap/2",1998),_(1996,834,j0,Ast),h.sd=function(){return"Column"},h.td=function(t){return $S(this.b,this.a,t)},h.ud=function(t,r){return Qht(this.b,this.a,t,r)},h.a=0,k(mt,"ArrayTable/Row",1996),_(835,834,j0,vde),h.td=function(t){return new Ast(this.a,t)},h.yc=function(t,r){return l(r,93),NQt()},h.ud=function(t,r){return l(r,93),CQt()},h.sd=function(){return"Row"},k(mt,"ArrayTable/RowMap",835),_(1138,1,Tc,met),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 yet(t,this.b))},h.zd=function(t){return this.a.zd(new wet(t,this.b))},k(mt,"CollectSpliterators/1",1138),_(1139,1,nn,wet),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$0$Type",1139),_(1140,1,nn,yet),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$1$Type",1140),_(1135,1,Tc,Git),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 Eet(t,this.c))},h.zd=function(t){return this.a.Pe(new vet(t,this.c))},h.b=0,k(mt,"CollectSpliterators/1WithCharacteristics",1135),_(1136,1,mL,vet),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),_(1137,1,mL,Eet),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),_(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=lde(this.b,this.e.xd())),lde(this.b,0)},h.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Tet(this,t)),this.b=0},h.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return f3(this.b,wL)&&(this.b=El(this.b,1)),!0;if(this.e=null,!this.c.zd(new NKe(this)))return!1}},h.a=0,h.b=0,k(mt,"CollectSpliterators/FlatMapSpliterator",1131),_(1133,1,nn,NKe),h.Ad=function(t){Xnn(this.a,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),_(1134,1,nn,Tet),h.Ad=function(t){San(this.a,this.b,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),_(1132,1131,Tc,Tct),k(mt,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),_(257,1,XJ),h.Dd=function(t){return this.Cd(l(t,257))},h.Cd=function(t){var r;return t==(sq(),PQ)?1:t==(oq(),MQ)?-1:(r=(tP(),E6(this.a,t.a)),r!=0?r:(Dt(),ae(this,517)==ae(t,517)?0:ae(this,517)?1:-1))},h.Gd=function(){return this.a},h.Fb=function(t){return ebe(this,t)},k(mt,"Cut",257),_(1810,257,XJ,iQe),h.Cd=function(t){return t==this?0:1},h.Ed=function(t){throw Y(new kce)},h.Fd=function(t){t.a+="+∞)"},h.Gd=function(){throw Y(new es(r2t))},h.Hb=function(){return eg(),U1e(this)},h.Hd=function(t){return!1},h.Ib=function(){return"+∞"};var MQ;k(mt,"Cut/AboveAll",1810),_(517,257,{257:1,517:1,3:1,34:1},krt),h.Ed=function(t){ba((t.a+="(",t),this.a)},h.Fd=function(t){Lb(ba(t,this.a),93)},h.Hb=function(){return~Rr(this.a)},h.Hd=function(t){return tP(),E6(this.a,t)<0},h.Ib=function(){return"/"+this.a+"\\"},k(mt,"Cut/AboveValue",517),_(1809,257,XJ,rQe),h.Cd=function(t){return t==this?0:-1},h.Ed=function(t){t.a+="(-∞"},h.Fd=function(t){throw Y(new kce)},h.Gd=function(){throw Y(new es(r2t))},h.Hb=function(){return eg(),U1e(this)},h.Hd=function(t){return!0},h.Ib=function(){return"-∞"};var PQ;k(mt,"Cut/BelowAll",1809),_(1811,257,XJ,Nrt),h.Ed=function(t){ba((t.a+="[",t),this.a)},h.Fd=function(t){Lb(ba(t,this.a),41)},h.Hb=function(){return Rr(this.a)},h.Hd=function(t){return tP(),E6(this.a,t)<=0},h.Ib=function(){return"\\"+this.a+"/"},k(mt,"Cut/BelowValue",1811),_(539,1,Eh),h.Ic=function(t){lo(this,t)},h.Ib=function(){return Ogn(l(NP(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},k(mt,"FluentIterable",539),_(438,539,Eh,g3),h.Jc=function(){return new $t(qt(this.a.Jc(),new L))},k(mt,"FluentIterable/2",438),_(36,1,{},L),h.Kb=function(t){return l(t,22).Jc()},h.Fb=function(t){return this===t},k(mt,"FluentIterable/2/0methodref$iterator$Type",36),_(1051,539,Eh,Lnt),h.Jc=function(){return hh(this)},k(mt,"FluentIterable/3",1051),_(721,394,ax,Ade),h.Xb=function(t){return this.a[t].Jc()},k(mt,"FluentIterable/3/1",721),_(2049,1,{}),h.Ib=function(){return ms(this.Id().b)},k(mt,"ForwardingObject",2049),_(2050,2049,i2t),h.Id=function(){return this.Jd()},h.Ic=function(t){lo(this,t)},h.Lc=function(){return new St(this,0)},h.Mc=function(){return new Et(null,this.Lc())},h.Ec=function(t){return this.Jd(),zQe()},h.Fc=function(t){return this.Jd(),GQe()},h.$b=function(){this.Jd(),qQe()},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(),VQe()},h.gc=function(){return this.Jd().b.gc()},h.Nc=function(){return this.Jd().Nc()},h.Oc=function(t){return this.Jd().Oc(t)},k(mt,"ForwardingCollection",2050),_(2057,32,iwe),h.Jc=function(){return this.Md()},h.Ec=function(t){throw Y(new Nn)},h.Fc=function(t){throw Y(new Nn)},h.Kd=function(){var t;return t=this.c,t||(this.c=this.Ld())},h.$b=function(){throw Y(new Nn)},h.Gc=function(t){return t!=null&&gy(this,t,!1)},h.Ld=function(){switch(this.gc()){case 0:return oP(),$Q;case 1:return new _V(kn(this.Md().Pb()));default:return new Afe(this,this.Nc())}},h.Kc=function(t){throw Y(new Nn)},k(mt,"ImmutableCollection",2057),_(1271,2057,iwe,CKe),h.Jc=function(){return BS(new Gv(this.a.b.Jc()))},h.Gc=function(t){return t!=null&&VN(this.a,t)},h.Hc=function(t){return fle(this.a,t)},h.dc=function(){return this.a.b.dc()},h.Md=function(){return BS(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 hle(this.a,t)},h.Ib=function(){return ms(this.a.b)},k(mt,"ForwardingImmutableCollection",1271),_(312,2057,ux),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){zb(this,t)},h.Lc=function(){return new St(this,16)},h.hd=function(t,r){return this.Od(t,r)},h._c=function(t,r){throw Y(new Nn)},h.ad=function(t,r){throw Y(new Nn)},h.Kd=function(){return this},h.Fb=function(t){return SEn(this,t)},h.Hb=function(){return Bhn(this)},h.bd=function(t){return t==null?-1:Xbn(this,t)},h.Md=function(){return this.Nd(0)},h.Nd=function(t){return yV(this,t)},h.ed=function(t){throw Y(new Nn)},h.fd=function(t,r){throw Y(new Nn)},h.Od=function(t,r){var o;return qj((o=new Det(this),new Rf(o,t,r)))},k(mt,"ImmutableList",312),_(2084,312,ux),h.Jc=function(){return BS(this.Pd().Jc())},h.hd=function(t,r){return qj(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 Rr(this.Pd())},h.bd=function(t){return this.Pd().bd(t)},h.dc=function(){return this.Pd().dc()},h.Md=function(){return BS(this.Pd().Jc())},h.gc=function(){return this.Pd().gc()},h.Od=function(t,r){return qj(this.Pd().hd(t,r))},h.Nc=function(){return this.Pd().Oc(we(Ri,Rt,1,this.Pd().gc(),5,1))},h.Oc=function(t){return this.Pd().Oc(t)},h.Ib=function(){return ms(this.Pd())},k(mt,"ForwardingImmutableList",2084),_(724,1,cx),h.vc=function(){return Cb(this)},h.wc=function(t){S6(this,t)},h.ec=function(){return JV(this)},h.Bc=function(){return this.Td()},h.$b=function(){throw Y(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 AKe(this)},h.Sd=function(){return new _Ke(this)},h.Fb=function(t){return Opn(this,t)},h.Hb=function(){return Cb(this).Hb()},h.dc=function(){return this.gc()==0},h.yc=function(t,r){return IQt()},h.Ac=function(t){throw Y(new Nn)},h.Ib=function(){return ryn(this)},h.Td=function(){return this.e?this.e:this.e=this.Sd()},h.c=null,h.d=null,h.e=null,k(mt,"ImmutableMap",724),_(725,724,cx),h._b=function(t){return FQe(this,t)},h.uc=function(t){return Fet(this.b,t)},h.Qd=function(){return jpt(new kKe(this))},h.Rd=function(){return jpt(rat(this.b))},h.Sd=function(){return new CKe(nat(this.b))},h.Fb=function(t){return $et(this.b,t)},h.xc=function(t){return S3(this,t)},h.Hb=function(){return Rr(this.b.c)},h.dc=function(){return this.b.c.dc()},h.gc=function(){return this.b.c.gc()},h.Ib=function(){return ms(this.b.c)},k(mt,"ForwardingImmutableMap",725),_(2051,2050,ZJ),h.Id=function(){return this.Ud()},h.Jd=function(){return this.Ud()},h.Lc=function(){return new St(this,1)},h.Fb=function(t){return t===this||this.Ud().Fb(t)},h.Hb=function(){return this.Ud().Hb()},k(mt,"ForwardingSet",2051),_(1066,2051,ZJ,kKe),h.Id=function(){return s_(this.a.b)},h.Jd=function(){return s_(this.a.b)},h.Gc=function(t){if(ae(t,45)&&l(t,45).jd()==null)return!1;try{return jet(s_(this.a.b),t)}catch(r){if(r=ci(r),ae(r,214))return!1;throw Y(r)}},h.Ud=function(){return s_(this.a.b)},h.Oc=function(t){var r,o;return r=Gat(s_(this.a.b),t),s_(this.a.b).b.gc()=0?"+":"")+(o/60|0),r=R8(b.Math.abs(o)%60),(Zbt(),oxt)[this.q.getDay()]+" "+sxt[this.q.getMonth()]+" "+R8(this.q.getDate())+" "+R8(this.q.getHours())+":"+R8(this.q.getMinutes())+":"+R8(this.q.getSeconds())+" GMT"+t+r+" "+this.q.getFullYear()};var l$=k(gn,"Date",208);_(1994,208,h2t,wbt),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,k("com.google.gwt.i18n.shared.impl","DateRecord",1994),_(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},k(dT,"JSONValue",2043),_(142,2043,{142:1},Eb,Xue),h.Fb=function(t){return ae(t,142)?Vhe(this.a,l(t,142).a):!1},h.me=function(){return JZt},h.Hb=function(){return Rhe(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+=","),ba(o,ay(this,r));return o.a+="]",o.a},k(dT,"JSONArray",142),_(482,2043,{482:1},Zue),h.me=function(){return XZt},h.oe=function(){return this},h.Ib=function(){return Dt(),""+this.a},h.a=!1;var W_t,K_t;k(dT,"JSONBoolean",482),_(990,63,vp,fQe),k(dT,"JSONException",990),_(1028,2043,{},ge),h.me=function(){return tQt},h.Ib=function(){return tu};var Y_t;k(dT,"JSONNull",1028),_(266,2043,{266:1},E9),h.Fb=function(t){return ae(t,266)?this.a==l(t,266).a:!1},h.me=function(){return ZZt},h.Hb=function(){return mS(this.a)},h.pe=function(){return this},h.Ib=function(){return this.a+""},h.a=0,k(dT,"JSONNumber",266),_(150,2043,{150:1},aS,JR),h.Fb=function(t){return ae(t,150)?Vhe(this.a,l(t,150).a):!1},h.me=function(){return QZt},h.Hb=function(){return Rhe(this.a)},h.qe=function(){return this},h.Ib=function(){var t,r,o,a,c,f,p;for(p=new fc("{"),t=!0,f=SK(this,we(Je,Pe,2,0,6,1)),o=f,a=0,c=o.length;a=0?":"+this.c:"")+")"},h.c=0;var s2e=k(Fs,"StackTraceElement",325);$_t={3:1,475:1,34:1,2:1};var Je=k(Fs,owe,2);_(112,423,{475:1},Xp,GN,ml),k(Fs,"StringBuffer",112),_(106,423,{475:1},Zg,lS,fc),k(Fs,"StringBuilder",106),_(698,99,iF,Xce),k(Fs,"StringIndexOutOfBoundsException",698),_(2124,1,{});var Q_t;_(46,63,{3:1,102:1,63:1,81:1,46:1},Nn,Jp),k(Fs,"UnsupportedOperationException",46),_(249,245,{3:1,34:1,245:1,249:1},j6,ale),h.Dd=function(t){return rvt(this,l(t,249))},h.se=function(){return vy(Ovt(this))},h.Fb=function(t){var r;return this===t?!0:ae(t,249)?(r=l(t,249),this.e==r.e&&rvt(this,r)==0):!1},h.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gs(this.f),this.b=Ln(Gi(t,-1)),this.b=33*this.b+Ln(Gi(u0(t,32),-1)),this.b=17*this.b+go(this.e),this.b):(this.b=17*Wpt(this.c)+go(this.e),this.b)},h.Ib=function(){return Ovt(this)},h.a=0,h.b=0,h.d=0,h.e=0,h.f=0;var ext,fm,a2e,u2e,c2e,l2e,d2e,f2e,qQ=k("java.math","BigDecimal",249);_(92,245,{3:1,34:1,245:1,92:1},ap,act,Ob,i1t,o1),h.Dd=function(t){return Jgt(this,l(t,92))},h.se=function(){return vy(WJ(this,0))},h.Fb=function(t){return _1e(this,t)},h.Hb=function(){return Wpt(this)},h.Ib=function(){return WJ(this,0)},h.b=-2,h.c=0,h.d=0,h.e=0;var txt,d$,nxt,VQ,f$,wI,zE=k("java.math","BigInteger",92),rxt,ixt,ST,yI;_(487,2044,j0),h.$b=function(){Zs(this)},h._b=function(t){return ma(this,t)},h.uc=function(t){return Rpt(this,t,this.i)||Rpt(this,t,this.f)},h.vc=function(){return new Lw(this)},h.xc=function(t){return Ht(this,t)},h.yc=function(t,r){return Jn(this,t,r)},h.Ac=function(t){return FS(this,t)},h.gc=function(){return WN(this)},h.g=0,k(gn,"AbstractHashMap",487),_(307,tf,wu,Lw),h.$b=function(){this.a.$b()},h.Gc=function(t){return dct(this,t)},h.Jc=function(){return new dy(this.a)},h.Kc=function(t){var r;return dct(this,t)?(r=l(t,45).jd(),this.a.Ac(r),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractHashMap/EntrySet",307),_(308,1,Wi,dy),h.Nb=function(t){so(this,t)},h.Pb=function(){return gE(this)},h.Ob=function(){return this.b},h.Qb=function(){Udt(this)},h.b=!1,h.d=0,k(gn,"AbstractHashMap/EntrySetIterator",308),_(422,1,Wi,DN),h.Nb=function(t){so(this,t)},h.Ob=function(){return xq(this)},h.Pb=function(){return khe(this)},h.Qb=function(){Mu(this)},h.b=0,h.c=-1,k(gn,"AbstractList/IteratorImpl",422),_(97,422,vh,Xi),h.Qb=function(){Mu(this)},h.Rb=function(t){Vw(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){Hw(this.c!=-1),this.a.fd(this.c,t)},k(gn,"AbstractList/ListIteratorImpl",97),_(217,56,lx,Rf),h._c=function(t,r){ry(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,k(gn,"AbstractList/SubList",217),_(234,tf,wu,Xh),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 T9(t)},h.Kc=function(t){return this.a._b(t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractMap/1",234),_(533,1,Wi,T9),h.Nb=function(t){so(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()},k(gn,"AbstractMap/1/1",533),_(232,32,Cy,Zh),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()},k(gn,"AbstractMap/2",232),_(305,1,Wi,Dw),h.Nb=function(t){so(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()},k(gn,"AbstractMap/2/1",305),_(483,1,{483:1,45:1}),h.Fb=function(t){var r;return ae(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 Qde(this,t)},h.Ib=function(){return this.d+"="+this.e},k(gn,"AbstractMap/AbstractEntry",483),_(392,483,{483:1,392:1,45:1},t8),k(gn,"AbstractMap/SimpleEntry",392),_(2061,1,SX),h.Fb=function(t){var r;return ae(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()},k(gn,t2t,2061),_(2069,2044,nwe),h.Vc=function(t){return mq(this.Ce(t))},h.tc=function(t){return llt(this,t)},h._b=function(t){return Zde(this,t)},h.vc=function(){return new VG(this)},h.Rc=function(){return _st(this.Ee())},h.Wc=function(t){return mq(this.Fe(t))},h.xc=function(t){var r;return r=t,Ss(this.De(r))},h.Yc=function(t){return mq(this.Ge(t))},h.ec=function(){return new YKe(this)},h.Tc=function(){return _st(this.He())},h.Zc=function(t){return mq(this.Ie(t))},k(gn,"AbstractNavigableMap",2069),_(627,tf,wu,VG),h.Gc=function(t){return ae(t,45)&&llt(this.b,l(t,45))},h.Jc=function(){return this.b.Be()},h.Kc=function(t){var r;return ae(t,45)?(r=l(t,45),this.b.Je(r)):!1},h.gc=function(){return this.b.gc()},k(gn,"AbstractNavigableMap/EntrySet",627),_(1127,tf,rwe,YKe),h.Lc=function(){return new r8(this)},h.$b=function(){this.a.$b()},h.Gc=function(t){return Zde(this.a,t)},h.Jc=function(){var t;return t=this.a.vc().b.Be(),new JKe(t)},h.Kc=function(t){return Zde(this.a,t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractNavigableMap/NavigableKeySet",1127),_(1128,1,Wi,JKe),h.Nb=function(t){so(this,t)},h.Ob=function(){return xq(this.a.a)},h.Pb=function(){var t;return t=zrt(this.a),t.jd()},h.Qb=function(){Kit(this.a)},k(gn,"AbstractNavigableMap/NavigableKeySet/1",1128),_(2082,32,Cy),h.Ec=function(t){return xS(V_(this,t),fx),!0},h.Fc=function(t){return Mt(t),HO(t!=this,"Can't add a queue to itself"),mo(this,t)},h.$b=function(){for(;dK(this)!=null;);},k(gn,"AbstractQueue",2082),_(315,32,{4:1,22:1,32:1,18:1},iE,gct),h.Ec=function(t){return epe(this,t),!0},h.$b=function(){spe(this)},h.Gc=function(t){return Kht(new D3(this),t)},h.dc=function(){return zN(this)},h.Jc=function(){return new D3(this)},h.Kc=function(t){return Iun(new D3(this),t)},h.gc=function(){return this.c-this.b&this.a.length-1},h.Lc=function(){return new St(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,k(gn,"ArrayDeque",315),_(451,1,Wi,D3),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.a!=this.b},h.Pb=function(){return Bj(this)},h.Qb=function(){Wft(this)},h.a=0,h.b=0,h.c=-1,k(gn,"ArrayDeque/IteratorImpl",451),_(13,56,m2t,je,La,Tu),h._c=function(t,r){Nb(this,t,r)},h.Ec=function(t){return Fe(this,t)},h.ad=function(t,r){return Jge(this,t,r)},h.Fc=function(t){return li(this,t)},h.$b=function(){Mw(this.c,0)},h.Gc=function(t){return _s(this,t,0)!=-1},h.Ic=function(t){Da(this,t)},h.Xb=function(t){return ze(this,t)},h.bd=function(t){return _s(this,t,0)},h.dc=function(){return this.c.length==0},h.Jc=function(){return new V(this)},h.ed=function(t){return sg(this,t)},h.Kc=function(t){return Xa(this,t)},h.ae=function(t,r){Rut(this,t,r)},h.fd=function(t,r){return nc(this,t,r)},h.gc=function(){return this.c.length},h.gd=function(t){xi(this,t)},h.Nc=function(){return Q8(this.c)},h.Oc=function(t){return Yd(this,t)};var U3n=k(gn,"ArrayList",13);_(7,1,Wi,V),h.Nb=function(t){so(this,t)},h.Ob=function(){return Ts(this)},h.Pb=function(){return q(this)},h.Qb=function(){C3(this)},h.a=0,h.b=-1,k(gn,"ArrayList/1",7),_(2091,b.Function,{},Oe),h.Ke=function(t,r){return yr(t,r)},_(124,56,w2t,Ds),h.Gc=function(t){return Vft(this,t)!=-1},h.Ic=function(t){var r,o,a,c;for(Mt(t),o=this.a,a=0,c=o.length;a0)throw Y(new jt(hwe+t+" greater than "+this.e));return this.f.Re()?Jat(this.c,this.b,this.a,t,r):Iut(this.c,t,r)},h.yc=function(t,r){if(!FY(this.c,this.f,t,this.b,this.a,this.e,this.d))throw Y(new jt(t+" outside the range "+this.b+" to "+this.e));return fpt(this.c,t,r)},h.Ac=function(t){var r;return r=t,FY(this.c,this.f,r,this.b,this.a,this.e,this.d)?Xat(this.c,r):null},h.Je=function(t){return SP(this,t.jd())&&xpe(this.c,t)},h.gc=function(){var t,r,o;if(this.f.Re()?this.a?r=$_(this.c,this.b,!0):r=$_(this.c,this.b,!1):r=jpe(this.c),!(r&&SP(this,r.d)&&r))return 0;for(t=0,o=new AK(this.c,this.f,this.b,this.a,this.e,this.d);xq(o.a);o.b=l(khe(o.a),45))++t;return t},h.$c=function(t,r){if(this.f.Re()&&this.c.a.Le(t,this.b)<0)throw Y(new jt(hwe+t+E2t+this.b));return this.f.Se()?Jat(this.c,t,r,this.e,this.d):Cut(this.c,t,r)},h.a=!1,h.d=!1,k(gn,"TreeMap/SubMap",629),_(310,23,xX,i8),h.Re=function(){return!1},h.Se=function(){return!1};var YQ,JQ,XQ,ZQ,p$=fn(gn,"TreeMap/SubMapType",310,bn,nln,brn);_(1124,310,xX,Vnt),h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/1",1124,p$,null,null),_(1125,310,xX,irt),h.Re=function(){return!0},h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/2",1125,p$,null,null),_(1126,310,xX,Wnt),h.Re=function(){return!0},fn(gn,"TreeMap/SubMapType/3",1126,p$,null,null);var fxt;_(143,tf,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},QG,Ide,Qp,IA),h.Lc=function(){return new r8(this)},h.Ec=function(t){return qO(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 bV(this,t)},h.gc=function(){return this.a.gc()};var W3n=k(gn,"TreeSet",143);_(1063,1,{},eYe),h.Te=function(t,r){return Mnn(this.a,t,r)},k(kX,"BinaryOperator/lambda$0$Type",1063),_(1064,1,{},tYe),h.Te=function(t,r){return Pnn(this.a,t,r)},k(kX,"BinaryOperator/lambda$1$Type",1064),_(944,1,{},Zn),h.Kb=function(t){return t},k(kX,"Function/lambda$0$Type",944),_(390,1,Mn,RA),h.Mb=function(t){return!this.a.Mb(t)},k(kX,"Predicate/lambda$2$Type",390),_(574,1,{574:1});var hxt=k(zC,"Handler",574);_(2086,1,gL),h.ve=function(){return"DUMMY"},h.Ib=function(){return this.ve()};var y2e;k(zC,"Level",2086),_(1689,2086,gL,Yn),h.ve=function(){return"INFO"},k(zC,"Level/LevelInfo",1689),_(1841,1,{},vZe);var QQ;k(zC,"LogManager",1841),_(1883,1,gL,eot),h.b=null,k(zC,"LogRecord",1883),_(515,1,{515:1},GW),h.e=!1;var pxt=!1,gxt=!1,sf=!1,bxt=!1,mxt=!1;k(zC,"Logger",515),_(827,574,{574:1},vr),k(zC,"SimpleConsoleLogHandler",827),_(132,23,{3:1,34:1,23:1,132:1},kq);var v2e,nu,E2e,ru=fn(Bo,"Collector/Characteristics",132,bn,Bun,mrn),wxt;_(753,1,{},ohe),k(Bo,"CollectorImpl",753),_(1061,1,{},On),h.Te=function(t,r){return fgn(l(t,215),l(r,215))},k(Bo,"Collectors/10methodref$merge$Type",1061),_(1062,1,{},Xs),h.Kb=function(t){return Qut(l(t,215))},k(Bo,"Collectors/11methodref$toString$Type",1062),_(153,1,{},ls),h.Wd=function(t,r){l(t,18).Ec(r)},k(Bo,"Collectors/20methodref$add$Type",153),_(155,1,{},Qo),h.Ve=function(){return new je},k(Bo,"Collectors/21methodref$ctor$Type",155),_(1060,1,{},Ca),h.Wd=function(t,r){up(l(t,215),l(r,475))},k(Bo,"Collectors/9methodref$add$Type",1060),_(1059,1,{},pot),h.Ve=function(){return new qb(this.a,this.b,this.c)},k(Bo,"Collectors/lambda$15$Type",1059),_(154,1,{},Ci),h.Te=function(t,r){return hen(l(t,18),l(r,18))},k(Bo,"Collectors/lambda$45$Type",154),_(542,1,{}),h.Ye=function(){L3(this)},h.d=!1,k(Bo,"TerminatableStream",542),_(775,542,pwe,zde),h.Ye=function(){L3(this)},k(Bo,"DoubleStreamImpl",775),_(1309,731,Tc,got),h.Pe=function(t){return zbn(this,l(t,191))},h.a=null,k(Bo,"DoubleStreamImpl/2",1309),_(1310,1,AL,nYe),h.Ne=function(t){atn(this.a,t)},k(Bo,"DoubleStreamImpl/2/lambda$0$Type",1310),_(1307,1,AL,rYe),h.Ne=function(t){stn(this.a,t)},k(Bo,"DoubleStreamImpl/lambda$0$Type",1307),_(1308,1,AL,iYe),h.Ne=function(t){Bgt(this.a,t)},k(Bo,"DoubleStreamImpl/lambda$2$Type",1308),_(1363,730,Tc,flt),h.Pe=function(t){return Wcn(this,l(t,204))},h.a=0,h.b=0,h.c=0,k(Bo,"IntStream/5",1363),_(800,542,pwe,Gde),h.Ye=function(){L3(this)},h.Ze=function(){return u1(this),this.a},k(Bo,"IntStreamImpl",800),_(801,542,pwe,ple),h.Ye=function(){L3(this)},h.Ze=function(){return u1(this),bde(),dxt},k(Bo,"IntStreamImpl/Empty",801),_(1668,1,mL,oYe),h.Bd=function(t){Pht(this.a,t)},k(Bo,"IntStreamImpl/lambda$4$Type",1668);var K3n=Hr(Bo,"Stream");_(28,542,{524:1,684:1,840:1},Et),h.Ye=function(){L3(this)};var TT;k(Bo,"StreamImpl",28),_(1083,489,Tc,Hit),h.zd=function(t){for(;Gdn(this);){if(this.a.zd(t))return!0;L3(this.b),this.b=null,this.a=null}return!1},k(Bo,"StreamImpl/1",1083),_(1084,1,nn,sYe),h.Ad=function(t){xon(this.a,l(t,840))},k(Bo,"StreamImpl/1/lambda$0$Type",1084),_(1085,1,Mn,aYe),h.Mb=function(t){return pi(this.a,t)},k(Bo,"StreamImpl/1methodref$add$Type",1085),_(1086,489,Tc,_at),h.zd=function(t){var r;return this.a||(r=new je,this.b.a.Nb(new uYe(r)),At(),xi(r,this.c),this.a=new St(r,16)),lft(this.a,t)},h.a=null,k(Bo,"StreamImpl/5",1086),_(1087,1,nn,uYe),h.Ad=function(t){Fe(this.a,t)},k(Bo,"StreamImpl/5/2methodref$add$Type",1087),_(732,489,Tc,Dpe),h.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new itt(this,t)););return this.b},h.b=!1,k(Bo,"StreamImpl/FilterSpliterator",732),_(1077,1,nn,itt),h.Ad=function(t){vsn(this.a,this.b,t)},k(Bo,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),_(1072,731,Tc,Elt),h.Pe=function(t){return Qnn(this,l(t,191))},k(Bo,"StreamImpl/MapToDoubleSpliterator",1072),_(1076,1,nn,ott),h.Ad=function(t){Cen(this.a,this.b,t)},k(Bo,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),_(1071,730,Tc,Slt),h.Pe=function(t){return ern(this,l(t,204))},k(Bo,"StreamImpl/MapToIntSpliterator",1071),_(1075,1,nn,stt),h.Ad=function(t){Ien(this.a,this.b,t)},k(Bo,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),_(729,489,Tc,Epe),h.zd=function(t){return Bit(this,t)},k(Bo,"StreamImpl/MapToObjSpliterator",729),_(1074,1,nn,att),h.Ad=function(t){Ren(this.a,this.b,t)},k(Bo,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),_(1073,489,Tc,Xft),h.zd=function(t){for(;Aq(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,k(Bo,"StreamImpl/SkipSpliterator",1073),_(1078,1,nn,Qr),h.Ad=function(t){},k(Bo,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),_(624,1,nn,Hi),h.Ad=function(t){GKe(this,t)},k(Bo,"StreamImpl/ValueConsumer",624),_(1079,1,nn,ai),h.Ad=function(t){_b()},k(Bo,"StreamImpl/lambda$0$Type",1079),_(1080,1,nn,jc),h.Ad=function(t){_b()},k(Bo,"StreamImpl/lambda$1$Type",1080),_(1081,1,{},cYe),h.Te=function(t,r){return Srn(this.a,t,r)},k(Bo,"StreamImpl/lambda$4$Type",1081),_(1082,1,nn,utt),h.Ad=function(t){Wnn(this.b,this.a,t)},k(Bo,"StreamImpl/lambda$5$Type",1082),_(1088,1,nn,lYe),h.Ad=function(t){Ghn(this.a,l(t,376))},k(Bo,"TerminatableStream/lambda$0$Type",1088),_(2121,1,{}),_(1993,1,{},Ui),k("javaemul.internal","ConsoleLogger",1993);var Y3n=0;_(2113,1,{}),_(1817,1,nn,mb),h.Ad=function(t){l(t,322)},k(hx,"BowyerWatsonTriangulation/lambda$0$Type",1817),_(1818,1,nn,dYe),h.Ad=function(t){mo(this.a,l(t,322).e)},k(hx,"BowyerWatsonTriangulation/lambda$1$Type",1818),_(1819,1,nn,Yg),h.Ad=function(t){l(t,180)},k(hx,"BowyerWatsonTriangulation/lambda$2$Type",1819),_(1814,1,Un,fYe),h.Le=function(t,r){return Pln(this.a,l(t,180),l(r,180))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(hx,"NaiveMinST/lambda$0$Type",1814),_(401,1,{},OA),k(hx,"NodeMicroLayout",401),_(180,1,{180:1},hS),h.Fb=function(t){var r;return ae(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 J3n=k(hx,"TEdge",180);_(322,1,{322:1},N0e),h.Fb=function(t){var r;return ae(t,322)?(r=l(t,322),sj(this,r.a)&&sj(this,r.b)&&sj(this,r.c)):!1},h.Hb=function(){return nE(this.a)+nE(this.b)+nE(this.c)},k(hx,"TTriangle",322),_(227,1,{227:1},L8),k(hx,"Tree",227),_(1195,1,{},Eut),k(A2t,"Scanline",1195);var yxt=Hr(A2t,_2t);_(1745,1,{},dft),k(Ah,"CGraph",1745),_(321,1,{321:1},aut),h.b=0,h.c=0,h.d=0,h.g=0,h.i=0,h.k=Di,k(Ah,"CGroup",321),_(821,1,{},Oce),k(Ah,"CGroup/CGroupBuilder",821),_(60,1,{60:1},Tit),h.Ib=function(){var t;return this.j?In(this.j.Kb(this)):(np(g$),g$.o+"@"+(t=s0(this)>>>0,t.toString(16)))},h.f=0,h.i=Di;var g$=k(Ah,"CNode",60);_(820,1,{},Lce),k(Ah,"CNode/CNodeBuilder",820);var vxt;_(1568,1,{},Wh),h.df=function(t,r){return 0},h.ef=function(t,r){return 0},k(Ah,k2t,1568),_(1847,1,{},wb),h.af=function(t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z;for(v=Kr,a=new V(t.a.b);a.aa.d.c||a.d.c==f.d.c&&a.d.b0?t+this.n.d+this.n.a:0},h.gf=function(){var t,r,o,a,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].gf());else if(this.g)c=T1e(this,BY(this,null,!0));else for(r=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),o=0,a=r.length;o0?c+this.n.b+this.n.c:0},h.hf=function(){var t,r,o,a,c;if(this.g)for(t=BY(this,null,!1),o=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),a=0,c=o.length;a0&&(a[0]+=this.d,o-=a[0]),a[2]>0&&(a[2]+=this.d,o-=a[2]),this.c.a=b.Math.max(0,o),this.c.d=r.d+t.d+(this.c.a-o)/2,a[1]=b.Math.max(a[1],o),mpe(this,$a,r.d+t.d+a[0]-(a[1]-o)/2,a)},h.b=null,h.d=0,h.e=!1,h.f=!1,h.g=!1;var tee=0,b$=0;k(rm,"GridContainerCell",1516),_(464,23,{3:1,34:1,23:1,464:1},Cq);var D1,Wf,nd,kxt=fn(rm,"HorizontalLabelAlignment",464,bn,Hun,yrn),Nxt;_(319,219,{219:1,319:1},eut,fft,qat),h.ff=function(){return Aot(this)},h.gf=function(){return Pfe(this)},h.a=0,h.c=!1;var X3n=k(rm,"LabelCell",319);_(256,338,{219:1,338:1,256:1},fC),h.ff=function(){return EC(this)},h.gf=function(){return SC(this)},h.hf=function(){kJ(this)},h.jf=function(){NJ(this)},h.b=0,h.c=0,h.d=!1,k(rm,"StripContainerCell",256),_(1672,1,Mn,Xg),h.Mb=function(t){return _Qt(l(t,219))},k(rm,"StripContainerCell/lambda$0$Type",1672),_(1673,1,{},CN),h.We=function(t){return l(t,219).gf()},k(rm,"StripContainerCell/lambda$1$Type",1673),_(1674,1,Mn,IN),h.Mb=function(t){return xQt(l(t,219))},k(rm,"StripContainerCell/lambda$2$Type",1674),_(1675,1,{},Kp),h.We=function(t){return l(t,219).ff()},k(rm,"StripContainerCell/lambda$3$Type",1675),_(465,23,{3:1,34:1,23:1,465:1},Iq);var rd,M1,Nd,Cxt=fn(rm,"VerticalLabelAlignment",465,bn,zun,vrn),Ixt;_(794,1,{},V0e),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,k(aF,"NodeContext",794),_(1514,1,Un,GR),h.Le=function(t,r){return jnt(l(t,64),l(r,64))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(aF,"NodeContext/0methodref$comparePortSides$Type",1514),_(1515,1,Un,kA),h.Le=function(t,r){return xwn(l(t,116),l(r,116))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(aF,"NodeContext/1methodref$comparePortContexts$Type",1515),_(169,23,{3:1,34:1,23:1,169:1},Kc);var Rxt,Oxt,Lxt,Dxt,Mxt,Pxt,jxt,Fxt,$xt,Bxt,Uxt,Hxt,zxt,Gxt,qxt,Vxt,Wxt,Kxt,Yxt,Jxt,Xxt,nee,Zxt=fn(aF,"NodeLabelLocation",169,bn,mY,Ern),Qxt;_(116,1,{116:1},E0t),h.a=!1,k(aF,"PortContext",116),_(1519,1,nn,qR),h.Ad=function(t){net(l(t,319))},k(xL,B2t,1519),_(1520,1,Mn,VR),h.Mb=function(t){return!!l(t,116).c},k(xL,U2t,1520),_(1521,1,nn,RN),h.Ad=function(t){net(l(t,116).c)},k(xL,"LabelPlacer/lambda$2$Type",1521);var T2e;_(1518,1,nn,ON),h.Ad=function(t){qw(),iQt(l(t,116))},k(xL,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),_(795,1,nn,gfe),h.Ad=function(t){wen(this.b,this.c,this.a,l(t,190))},h.a=!1,h.c=!1,k(xL,"NodeLabelCellCreator/lambda$0$Type",795),_(1517,1,nn,gYe),h.Ad=function(t){uQt(this.a,l(t,190))},k(xL,"PortContextCreator/lambda$0$Type",1517);var m$;_(1889,1,{},po),k(gx,"GreedyRectangleStripOverlapRemover",1889),_(1890,1,Un,Fc),h.Le=function(t,r){return Xtn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1890),_(1843,1,{},_Ze),h.a=5,h.e=0,k(gx,"RectangleStripOverlapRemover",1843),_(1844,1,Un,Fl),h.Le=function(t,r){return Ztn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1844),_(1846,1,Un,Af),h.Le=function(t,r){return Msn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1846),_(414,23,{3:1,34:1,23:1,414:1},o8);var QL,ree,iee,eD,ekt=fn(gx,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,bn,tln,Arn),tkt;_(228,1,{228:1},WV),k(gx,"RectangleStripOverlapRemover/RectangleNode",228),_(1845,1,nn,bYe),h.Ad=function(t){emn(this.a,l(t,228))},k(gx,"RectangleStripOverlapRemover/lambda$1$Type",1845);var nkt=!1,vI,A2e;_(1815,1,nn,Z2),h.Ad=function(t){Lvt(l(t,227))},k(gT,"DepthFirstCompaction/0methodref$compactTree$Type",1815),_(817,1,nn,bce),h.Ad=function(t){can(this.a,l(t,227))},k(gT,"DepthFirstCompaction/lambda$1$Type",817),_(1816,1,nn,Zit),h.Ad=function(t){H1n(this.a,this.b,this.c,l(t,227))},k(gT,"DepthFirstCompaction/lambda$2$Type",1816);var EI,_2e;_(68,1,{68:1},Tut),k(gT,"Node",68),_(1191,1,{},nrt),k(gT,"ScanlineOverlapCheck",1191),_(1192,1,{690:1},Bat),h._e=function(t){Unn(this,l(t,445))},k(gT,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),_(1193,1,Un,pl),h.Le=function(t,r){return xgn(l(t,68),l(r,68))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gT,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1193),_(445,1,{445:1},Nle),h.a=!1,k(gT,"ScanlineOverlapCheck/Timestamp",445),_(1194,1,Un,sh),h.Le=function(t,r){return r0n(l(t,445),l(r,445))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gT,"ScanlineOverlapCheck/lambda$0$Type",1194),_(549,1,{},Vm),k("org.eclipse.elk.alg.common.utils","SVGImage",549),_(755,1,{},ah),k(OX,Ewe,755),_(1176,1,Un,Yh),h.Le=function(t,r){return Ovn(l(t,238),l(r,238))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(OX,G2t,1176),_(1177,1,nn,ctt),h.Ad=function(t){qun(this.b,this.a,l(t,254))},k(OX,Swe,1177),_(207,1,im),k(DE,"AbstractLayoutProvider",207),_(733,207,im,Dce),h.kf=function(t,r){dwt(this,t,r)},k(OX,"ForceLayoutProvider",733);var Z3n=Hr(kL,q2t);_(151,1,{3:1,105:1,151:1},Q2),h.of=function(t,r){return C6(this,t,r)},h.lf=function(){return Got(this)},h.mf=function(t){return F(this,t)},h.nf=function(t){return gr(this,t)},k(kL,"MapPropertyHolder",151),_(314,151,{3:1,314:1,105:1,151:1}),k(NL,"FParticle",314),_(254,314,{3:1,254:1,314:1,105:1,151:1},Rst),h.Ib=function(){var t;return this.a?(t=_s(this.a.a,this,0),t>=0?"b"+t+"["+BW(this.a)+"]":"b["+BW(this.a)+"]"):"b_"+s0(this)},k(NL,"FBendpoint",254),_(292,151,{3:1,292:1,105:1,151:1},Ait),h.Ib=function(){return BW(this)},k(NL,"FEdge",292),_(238,151,{3:1,238:1,105:1,151:1},JP);var Q3n=k(NL,"FGraph",238);_(448,314,{3:1,448:1,314:1,105:1,151:1},Mct),h.Ib=function(){return this.b==null||this.b.length==0?"l["+BW(this.a)+"]":"l_"+this.b},k(NL,"FLabel",448),_(156,314,{3:1,156:1,314:1,105:1,151:1},rrt),h.Ib=function(){return qhe(this)},h.a=0,k(NL,"FNode",156),_(2079,1,{}),h.qf=function(t){S0e(this,t)},h.rf=function(){q1t(this)},h.d=0,k(Twe,"AbstractForceModel",2079),_(638,2079,{638:1},Mht),h.pf=function(t,r){var o,a,c,f,p;return jvt(this.f,t,r),c=Li(To(r.d),t.d),p=b.Math.sqrt(c.a*c.a+c.b*c.b),a=b.Math.max(0,p-O3(t.e)/2-O3(r.e)/2),o=d0t(this.e,t,r),o>0?f=-Nsn(a,this.c)*o:f=fnn(a,this.b)*l(F(t,(ed(),AT)),15).a,tp(c,f/p),c},h.qf=function(t){S0e(this,t),this.a=l(F(t,(ed(),y$)),15).a,this.c=ue(le(F(t,v$))),this.b=ue(le(F(t,see)))},h.sf=function(t){return t0&&(f-=EQt(a,this.a)*o),tp(c,f*this.b/p),c},h.qf=function(t){var r,o,a,c,f,p,m;for(S0e(this,t),this.b=ue(le(F(t,(ed(),aee)))),this.c=this.b/l(F(t,y$),15).a,a=t.e.c.length,f=0,c=0,m=new V(t.e);m.a0},h.a=0,h.b=0,h.c=0,k(Twe,"FruchtermanReingoldModel",639);var GE=Hr(Ns,"ILayoutMetaDataProvider");_(852,1,td,gWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uF),""),"Force Model"),"Determines the model for force calculation."),x2e),(A1(),$r)),k2e),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Awe),""),"Iterations"),"The number of iterations on the force model."),Re(300)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_we),""),"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)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LX),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Hf),eo),fi),ct(xt)))),zr(t,LX,uF,ckt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DX),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),eo),fi),ct(xt)))),zr(t,DX,uF,skt),kEt((new mWe,t))};var rkt,ikt,x2e,okt,skt,akt,ukt,ckt;k(VC,"ForceMetaDataProvider",852),_(429,23,{3:1,34:1,23:1,429:1},xle);var oee,w$,k2e=fn(VC,"ForceModelStrategy",429,bn,gun,xrn),lkt;_(993,1,td,mWe),h.tf=function(t){kEt(t)};var dkt,fkt,N2e,y$,C2e,hkt,pkt,gkt,bkt,I2e,mkt,R2e,O2e,wkt,AT,ykt,see,L2e,vkt,Ekt,v$,aee,Skt,Tkt,Akt,D2e,_kt;k(VC,"ForceOptions",993),_(994,1,{},Wm),h.uf=function(){var t;return t=new Dce,t},h.vf=function(t){},k(VC,"ForceOptions/ForceFactory",994);var tD,SI,_T,E$;_(853,1,td,wWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kwe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Dt(),!1)),(A1(),Ai)),Yr),ct((Jd(),ri))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Nwe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cwe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),M2e),$r),H2e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iwe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Hf),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rwe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Re(sr)),yo),Ti),ct(xt)))),eEt((new yWe,t))};var xkt,kkt,M2e,Nkt,Ckt,Ikt;k(VC,"StressMetaDataProvider",853),_(997,1,td,yWe),h.tf=function(t){eEt(t)};var S$,P2e,j2e,F2e,$2e,B2e,Rkt,Okt,Lkt,Dkt,U2e,Mkt;k(VC,"StressOptions",997),_(998,1,{},n9),h.uf=function(){var t;return t=new _it,t},h.vf=function(t){},k(VC,"StressOptions/StressFactory",998),_(1091,207,im,_it),h.kf=function(t,r){var o,a,c,f,p;for(r.Tg(J2t,1),Ye(Ke(ve(t,(G6(),$2e))))?Ye(Ke(ve(t,U2e)))||P3((o=new OA((t1(),new Yp(t))),o)):dwt(new Dce,t,r.dh(1)),c=apt(t),a=uvt(this.a,c),p=a.Jc();p.Ob();)f=l(p.Pb(),238),!(f.e.c.length<=1)&&(sxn(this.b,f),NEn(this.b),Da(f.d,new nG));c=AEt(a),LEt(c),r.Ug()},k(dF,"StressLayoutProvider",1091),_(1092,1,nn,nG),h.Ad=function(t){R0e(l(t,448))},k(dF,"StressLayoutProvider/lambda$0$Type",1092),_(995,1,{},wZe),h.c=0,h.e=0,h.g=0,k(dF,"StressMajorization",995),_(385,23,{3:1,34:1,23:1,385:1},Rq);var uee,cee,lee,H2e=fn(dF,"StressMajorization/Dimension",385,bn,Vun,krn),Pkt;_(996,1,Un,mYe),h.Le=function(t,r){return rrn(this.a,l(t,156),l(r,156))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(dF,"StressMajorization/lambda$0$Type",996),_(1173,1,{},jut),k(wT,"ElkLayered",1173),_(1174,1,nn,wYe),h.Ad=function(t){gvn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$0$Type",1174),_(1175,1,nn,yYe),h.Ad=function(t){nrn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$1$Type",1175),_(1258,1,{},ort);var jkt,Fkt,$kt;k(wT,"GraphConfigurator",1258),_(764,1,nn,mce),h.Ad=function(t){lmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$0$Type",764),_(765,1,{},r9),h.Kb=function(t){return pbe(),new Et(null,new St(l(t,26).a,16))},k(wT,"GraphConfigurator/lambda$1$Type",765),_(766,1,nn,wce),h.Ad=function(t){lmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$2$Type",766),_(1090,207,im,EZe),h.kf=function(t,r){var o;o=F_n(new kZe,t),me(ve(t,(Be(),Wy)))===me((pp(),Ig))?Lgn(this.a,o,r):AEn(this.a,o,r),r.Zg()||mEt(new bWe,o)},k(wT,"LayeredLayoutProvider",1090),_(364,23,{3:1,34:1,23:1,364:1},pO);var id,kh,la,da,Ho,z2e=fn(wT,"LayeredPhases",364,bn,Zln,Nrn),Bkt;_(1700,1,{},Jft),h.i=0;var Ukt;k(ML,"ComponentsToCGraphTransformer",1700);var Hkt;_(1701,1,{},rG),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)},k(ML,"ComponentsToCGraphTransformer/1",1701),_(84,1,{84:1}),h.i=0,h.k=!0,h.o=Di;var dee=k(KC,"CNode",84);_(463,84,{463:1,84:1},Rde,z1e),h.Ib=function(){return""},k(ML,"ComponentsToCGraphTransformer/CRectNode",463),_(1669,1,{},iG);var fee,hee;k(ML,"OneDimensionalComponentsCompaction",1669),_(1670,1,{},i9),h.Kb=function(t){return Mun(l(t,49))},h.Fb=function(t){return this===t},k(ML,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),_(1671,1,{},o9),h.Kb=function(t){return Fgn(l(t,49))},h.Fb=function(t){return this===t},k(ML,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),_(1703,1,{},jst),k(KC,"CGraph",1703),_(197,1,{197:1},pY),h.b=0,h.c=0,h.e=0,h.g=!0,h.i=Di,k(KC,"CGroup",197),_(1702,1,{},a9),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)},k(KC,k2t,1702),_(1704,1,{},h0t),h.d=!1;var zkt,pee=k(KC,I2t,1704);_(1705,1,{},lG),h.Kb=function(t){return gle(),Dt(),l(l(t,49).a,84).d.e!=0},h.Fb=function(t){return this===t},k(KC,R2t,1705),_(825,1,{},Hfe),h.a=!1,h.b=!1,h.c=!1,h.d=!1,k(KC,O2t,825),_(1885,1,{},tst),k(fF,L2t,1885);var nD=Hr(om,_2t);_(1886,1,{378:1},$at),h._e=function(t){LSn(this,l(t,468))},k(fF,D2t,1886),_(1887,1,Un,dG),h.Le=function(t,r){return Aan(l(t,84),l(r,84))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(fF,M2t,1887),_(468,1,{468:1},Cle),h.a=!1,k(fF,P2t,468),_(1888,1,Un,fG),h.Le=function(t,r){return i0n(l(t,468),l(r,468))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(fF,j2t,1888),_(148,1,{148:1},qA,Ofe),h.Fb=function(t){var r;return t==null||eCn!=rc(t)?!1:(r=l(t,148),ia(this.c,r.c)&&ia(this.d,r.d))},h.Hb=function(){return Fj(Z(X(Ri,1),Rt,1,5,[this.c,this.d]))},h.Ib=function(){return"("+this.c+ja+this.d+(this.a?"cx":"")+this.b+")"},h.a=!0,h.c=0,h.d=0;var eCn=k(om,"Point",148);_(413,23,{3:1,34:1,23:1,413:1},s8);var X0,Fy,qE,$y,Gkt=fn(om,"Point/Quadrant",413,bn,eln,_rn),qkt;_(1691,1,{},SZe),h.b=null,h.c=null,h.d=null,h.e=null,h.f=null;var Vkt,Wkt,Kkt,Ykt,Jkt;k(om,"RectilinearConvexHull",1691),_(576,1,{378:1},o7),h._e=function(t){Ydn(this,l(t,148))},h.b=0;var G2e;k(om,"RectilinearConvexHull/MaximalElementsEventHandler",576),_(1693,1,Un,oG),h.Le=function(t,r){return _an(le(t),le(r))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1693),_(1692,1,{378:1},ift),h._e=function(t){Y2n(this,l(t,148))},h.a=0,h.b=null,h.c=null,h.d=null,h.e=null,k(om,"RectilinearConvexHull/RectangleEventHandler",1692),_(1694,1,Un,sG),h.Le=function(t,r){return kcn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$0$Type",1694),_(1695,1,Un,s9),h.Le=function(t,r){return Ncn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$1$Type",1695),_(1696,1,Un,aG),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 Pn(this)},k(om,"RectilinearConvexHull/lambda$2$Type",1696),_(1697,1,Un,uG),h.Le=function(t,r){return Ccn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$3$Type",1697),_(1698,1,Un,cG),h.Le=function(t,r){return Uwn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$4$Type",1698),_(1699,1,{},Sut),k(om,"Scanline",1699),_(2083,1,{}),k(rf,"AbstractGraphPlacer",2083),_(337,1,{337:1},Yrt),h.Df=function(t){return this.Ef(t)?(yt(this.b,l(F(t,(Ie(),_p)),24),t),!0):!1},h.Ef=function(t){var r,o,a,c;for(r=l(F(t,(Ie(),_p)),24),c=l(wr(_r,r),24),a=c.Jc();a.Ob();)if(o=l(a.Pb(),24),!l(wr(this.b,o),16).dc())return!1;return!0};var _r;k(rf,"ComponentGroup",337),_(773,2083,{},Mce),h.Ff=function(t){var r,o;for(o=new V(this.a);o.ao&&(T=0,N+=m+a,m=0),y=f.c,ex(f,T+y.a,N+y.b),wd(y),c=b.Math.max(c,T+v.a),m=b.Math.max(m,v.b),T+=v.a+a;r.f.a=c,r.f.b=N+m},h.Hf=function(t,r){var o,a,c,f,p;if(me(F(r,(Be(),jI)))===me((YS(),TI))){for(a=t.Jc();a.Ob();){for(o=l(a.Pb(),37),p=0,f=new V(o.a);f.ao&&!l(F(f,(Ie(),_p)),24).Gc((He(),Wt))||y&&l(F(y,(Ie(),_p)),24).Gc((He(),Qt))||l(F(f,(Ie(),_p)),24).Gc((He(),Kt)))&&(O=N,M+=m+a,m=0),v=f.c,l(F(f,(Ie(),_p)),24).Gc((He(),Wt))&&(O=c+a),ex(f,O+v.a,M+v.b),c=b.Math.max(c,O+T.a),l(F(f,_p),24).Gc(dn)&&(N=b.Math.max(N,O+T.a+a)),wd(v),m=b.Math.max(m,T.b),O+=T.a+a,y=f;r.f.a=c,r.f.b=M+m},h.Hf=function(t,r){},k(rf,"ModelOrderRowGraphPlacer",1289),_(1287,1,Un,bG),h.Le=function(t,r){return Hhn(l(t,37),l(r,37))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(rf,"SimpleRowGraphPlacer/1",1287);var Zkt;_(1257,1,Uf,u9),h.Lb=function(t){var r;return r=l(F(l(t,253).b,(Be(),ss)),79),!!r&&r.b!=0},h.Fb=function(t){return this===t},h.Mb=function(t){var r;return r=l(F(l(t,253).b,(Be(),ss)),79),!!r&&r.b!=0},k(hF,"CompoundGraphPostprocessor/1",1257),_(1256,1,kr,NZe),h.If=function(t,r){k1t(this,l(t,37),r)},k(hF,"CompoundGraphPreprocessor",1256),_(447,1,{447:1},bgt),h.c=!1,k(hF,"CompoundGraphPreprocessor/ExternalPort",447),_(253,1,{253:1},K8),h.Ib=function(){return vV(this.c)+":"+a0t(this.b)},k(hF,"CrossHierarchyEdge",253),_(771,1,Un,yce),h.Le=function(t,r){return Cmn(this,l(t,253),l(r,253))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(hF,"CrossHierarchyEdgeComparator",771),_(248,151,{3:1,248:1,105:1,151:1}),h.p=0,k(ca,"LGraphElement",248),_(17,248,{3:1,17:1,248:1,105:1,151:1},p0),h.Ib=function(){return a0t(this)};var zx=k(ca,"LEdge",17);_(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},nge),h.Ic=function(t){lo(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 Qkt=k(ca,"LGraph",37),eNt;_(662,1,{}),h.Jf=function(){return this.e.n},h.mf=function(t){return F(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},k(ca,"LGraphAdapters/AbstractLShapeAdapter",662),_(467,1,{845:1},MN),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&&Hpt((Yt(r-1,t.length),t.charCodeAt(r-1)),nSt);)--r;if(f> ",t),p7(o)),zn(ba((t.a+="[",t),o.i),"]")),t.a},h.c=!0,h.d=!1;var Y2e,J2e,X2e,Z2e,Q2e,eSe,nNt=k(ca,"LPort",12);_(404,1,Eh,LA),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.e),new vYe(t)},k(ca,"LPort/1",404),_(1285,1,Wi,vYe),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(q(this.a),17).c},h.Ob=function(){return Ts(this.a)},h.Qb=function(){C3(this.a)},k(ca,"LPort/1/1",1285),_(366,1,Eh,tS),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.g),new vce(t)},k(ca,"LPort/2",366),_(770,1,Wi,vce),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(q(this.a),17).d},h.Ob=function(){return Ts(this.a)},h.Qb=function(){C3(this.a)},k(ca,"LPort/2/1",770),_(1278,1,Eh,dtt),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new Vd(this)},k(ca,"LPort/CombineIter",1278),_(210,1,Wi,Vd),h.Nb=function(t){so(this,t)},h.Qb=function(){BQe()},h.Ob=function(){return v3(this)},h.Pb=function(){return Ts(this.a)?q(this.a):q(this.b)},k(ca,"LPort/CombineIter/1",210),_(1279,1,Uf,wG),h.Lb=function(t){return bst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).g.c.length!=0},k(ca,"LPort/lambda$0$Type",1279),_(1280,1,Uf,yG),h.Lb=function(t){return mst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).e.c.length!=0},k(ca,"LPort/lambda$1$Type",1280),_(1281,1,Uf,vG),h.Lb=function(t){return bu(),l(t,12).j==(He(),Wt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Wt)},k(ca,"LPort/lambda$2$Type",1281),_(1282,1,Uf,EG),h.Lb=function(t){return bu(),l(t,12).j==(He(),Qt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Qt)},k(ca,"LPort/lambda$3$Type",1282),_(1283,1,Uf,SG),h.Lb=function(t){return bu(),l(t,12).j==(He(),dn)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),dn)},k(ca,"LPort/lambda$4$Type",1283),_(1284,1,Uf,LN),h.Lb=function(t){return bu(),l(t,12).j==(He(),Kt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Kt)},k(ca,"LPort/lambda$5$Type",1284),_(26,248,{3:1,22:1,248:1,26:1,105:1,151:1},ra),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new V(this.a)},h.Ib=function(){return"L_"+_s(this.b.b,this,0)+Qd(this.a)},k(ca,"Layer",26),_(1676,1,{},udt),h.b=0,k(ca,"Tarjan",1676),_(1294,1,{},kZe),k(Eg,sSt,1294),_(1298,1,{},TG),h.Kb=function(t){return Yo(l(t,83))},k(Eg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),_(1301,1,{},d9),h.Kb=function(t){return Yo(l(t,83))},k(Eg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),_(1295,1,nn,EYe),h.Ad=function(t){A0t(this.a,l(t,127))},k(Eg,Swe,1295),_(1296,1,nn,SYe),h.Ad=function(t){A0t(this.a,l(t,127))},k(Eg,aSt,1296),_(1297,1,{},AG),h.Kb=function(t){return new Et(null,new St(a_(l(t,74)),16))},k(Eg,uSt,1297),_(1299,1,Mn,TYe),h.Mb=function(t){return itn(this.a,l(t,19))},k(Eg,cSt,1299),_(1300,1,{},_G),h.Kb=function(t){return new Et(null,new St(han(l(t,74)),16))},k(Eg,"ElkGraphImporter/lambda$5$Type",1300),_(1302,1,Mn,AYe),h.Mb=function(t){return otn(this.a,l(t,19))},k(Eg,"ElkGraphImporter/lambda$7$Type",1302),_(1303,1,Mn,KR),h.Mb=function(t){return Man(l(t,74))},k(Eg,"ElkGraphImporter/lambda$8$Type",1303),_(1273,1,{},bWe);var rNt;k(Eg,"ElkGraphLayoutTransferrer",1273),_(1274,1,Mn,_Ye),h.Mb=function(t){return srn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),_(1275,1,nn,xYe),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),_(1276,1,Mn,kYe),h.Mb=function(t){return Bnn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),_(1277,1,nn,NYe),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),_(813,1,{},rfe),k(Zt,"BiLinkedHashMultiMap",813),_(1528,1,kr,xG),h.If=function(t,r){chn(l(t,37),r)},k(Zt,"CommentNodeMarginCalculator",1528),_(1529,1,{},kG),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"CommentNodeMarginCalculator/lambda$0$Type",1529),_(1530,1,nn,f9),h.Ad=function(t){M_n(l(t,9))},k(Zt,"CommentNodeMarginCalculator/lambda$1$Type",1530),_(1531,1,kr,nFe),h.If=function(t,r){BSn(l(t,37),r)},k(Zt,"CommentPostprocessor",1531),_(1532,1,kr,rFe),h.If=function(t,r){cNn(l(t,37),r)},k(Zt,"CommentPreprocessor",1532),_(1533,1,kr,iFe),h.If=function(t,r){Q2n(l(t,37),r)},k(Zt,"ConstraintsPostprocessor",1533),_(1534,1,kr,oFe),h.If=function(t,r){qhn(l(t,37),r)},k(Zt,"EdgeAndLayerConstraintEdgeReverser",1534),_(1535,1,kr,sFe),h.If=function(t,r){c1n(l(t,37),r)},k(Zt,"EndLabelPostprocessor",1535),_(1536,1,{},aFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelPostprocessor/lambda$0$Type",1536),_(1537,1,Mn,uFe),h.Mb=function(t){return Wln(l(t,9))},k(Zt,"EndLabelPostprocessor/lambda$1$Type",1537),_(1538,1,nn,cFe),h.Ad=function(t){o0n(l(t,9))},k(Zt,"EndLabelPostprocessor/lambda$2$Type",1538),_(1539,1,kr,lFe),h.If=function(t,r){Hyn(l(t,37),r)},k(Zt,"EndLabelPreprocessor",1539),_(1540,1,{},dFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelPreprocessor/lambda$0$Type",1540),_(1541,1,nn,tot),h.Ad=function(t){yen(this.a,this.b,this.c,l(t,9))},h.a=0,h.b=0,h.c=!1,k(Zt,"EndLabelPreprocessor/lambda$1$Type",1541),_(1542,1,Mn,fFe),h.Mb=function(t){return me(F(l(t,70),(Be(),Yf)))===me((Kd(),vk))},k(Zt,"EndLabelPreprocessor/lambda$2$Type",1542),_(1543,1,nn,CYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Zt,"EndLabelPreprocessor/lambda$3$Type",1543),_(1544,1,Mn,hFe),h.Mb=function(t){return me(F(l(t,70),(Be(),Yf)))===me((Kd(),fv))},k(Zt,"EndLabelPreprocessor/lambda$4$Type",1544),_(1545,1,nn,IYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Zt,"EndLabelPreprocessor/lambda$5$Type",1545),_(1593,1,kr,EWe),h.If=function(t,r){wgn(l(t,37),r)};var iNt;k(Zt,"EndLabelSorter",1593),_(1594,1,Un,pFe),h.Le=function(t,r){return J1n(l(t,458),l(r,458))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"EndLabelSorter/1",1594),_(458,1,{458:1},Iat),k(Zt,"EndLabelSorter/LabelGroup",458),_(1595,1,{},gFe),h.Kb=function(t){return dO(),new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelSorter/lambda$0$Type",1595),_(1596,1,Mn,bFe),h.Mb=function(t){return dO(),l(t,9).k==(zt(),Xr)},k(Zt,"EndLabelSorter/lambda$1$Type",1596),_(1597,1,nn,mFe),h.Ad=function(t){tyn(l(t,9))},k(Zt,"EndLabelSorter/lambda$2$Type",1597),_(1598,1,Mn,wFe),h.Mb=function(t){return dO(),me(F(l(t,70),(Be(),Yf)))===me((Kd(),fv))},k(Zt,"EndLabelSorter/lambda$3$Type",1598),_(1599,1,Mn,yFe),h.Mb=function(t){return dO(),me(F(l(t,70),(Be(),Yf)))===me((Kd(),vk))},k(Zt,"EndLabelSorter/lambda$4$Type",1599),_(1546,1,kr,vFe),h.If=function(t,r){Z_n(this,l(t,37))},h.b=0,h.c=0,k(Zt,"FinalSplineBendpointsCalculator",1546),_(1547,1,{},EFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),_(1548,1,{},SFe),h.Kb=function(t){return new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(Zt,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),_(1549,1,Mn,TFe),h.Mb=function(t){return!fo(l(t,17))},k(Zt,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),_(1550,1,Mn,AFe),h.Mb=function(t){return gr(l(t,17),(Ie(),pm))},k(Zt,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),_(1551,1,nn,RYe),h.Ad=function(t){iAn(this.a,l(t,134))},k(Zt,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),_(1552,1,nn,_Fe),h.Ad=function(t){vC(l(t,17).a)},k(Zt,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),_(797,1,kr,Ece),h.If=function(t,r){qxn(this,l(t,37),r)},k(Zt,"GraphTransformer",797),_(506,23,{3:1,34:1,23:1,506:1},Ile);var wee,iD,oNt=fn(Zt,"GraphTransformer/Mode",506,bn,bun,Irn),sNt;_(1553,1,kr,xFe),h.If=function(t,r){f2n(l(t,37),r)},k(Zt,"HierarchicalNodeResizingProcessor",1553),_(1554,1,kr,kFe),h.If=function(t,r){Yfn(l(t,37),r)},k(Zt,"HierarchicalPortConstraintProcessor",1554),_(1555,1,Un,NFe),h.Le=function(t,r){return fbn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortConstraintProcessor/NodeComparator",1555),_(1556,1,kr,CFe),h.If=function(t,r){XAn(l(t,37),r)},k(Zt,"HierarchicalPortDummySizeProcessor",1556),_(1557,1,kr,IFe),h.If=function(t,r){lTn(this,l(t,37),r)},h.a=0,k(Zt,"HierarchicalPortOrthogonalEdgeRouter",1557),_(1558,1,Un,RFe),h.Le=function(t,r){return Jtn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortOrthogonalEdgeRouter/1",1558),_(1559,1,Un,OFe),h.Le=function(t,r){return zdn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortOrthogonalEdgeRouter/2",1559),_(1560,1,kr,LFe),h.If=function(t,r){Fwn(l(t,37),r)},k(Zt,"HierarchicalPortPositionProcessor",1560),_(1561,1,kr,vWe),h.If=function(t,r){VNn(this,l(t,37))},h.a=0,h.c=0;var T$,A$;k(Zt,"HighDegreeNodeLayeringProcessor",1561),_(573,1,{573:1},DFe),h.b=-1,h.d=-1,k(Zt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),_(1562,1,{},MFe),h.Kb=function(t){return $O(),si(l(t,9))},h.Fb=function(t){return this===t},k(Zt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),_(1563,1,{},PFe),h.Kb=function(t){return $O(),Or(l(t,9))},h.Fb=function(t){return this===t},k(Zt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),_(1569,1,kr,jFe),h.If=function(t,r){HAn(this,l(t,37),r)},k(Zt,"HyperedgeDummyMerger",1569),_(798,1,{},vfe),h.a=!1,h.b=!1,h.c=!1,k(Zt,"HyperedgeDummyMerger/MergeState",798),_(1570,1,{},FFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"HyperedgeDummyMerger/lambda$0$Type",1570),_(1571,1,{},$Fe),h.Kb=function(t){return new Et(null,new St(l(t,9).j,16))},k(Zt,"HyperedgeDummyMerger/lambda$1$Type",1571),_(1572,1,nn,BFe),h.Ad=function(t){l(t,12).p=-1},k(Zt,"HyperedgeDummyMerger/lambda$2$Type",1572),_(1573,1,kr,UFe),h.If=function(t,r){UAn(l(t,37),r)},k(Zt,"HypernodesProcessor",1573),_(1574,1,kr,HFe),h.If=function(t,r){JAn(l(t,37),r)},k(Zt,"InLayerConstraintProcessor",1574),_(1575,1,kr,zFe),h.If=function(t,r){vhn(l(t,37),r)},k(Zt,"InnermostNodeMarginCalculator",1575),_(1576,1,kr,GFe),h.If=function(t,r){oNn(this,l(t,37))},h.a=Di,h.b=Di,h.c=Kr,h.d=Kr;var tCn=k(Zt,"InteractiveExternalPortPositioner",1576);_(1577,1,{},qFe),h.Kb=function(t){return l(t,17).d.i},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$0$Type",1577),_(1578,1,{},OYe),h.Kb=function(t){return Qtn(this.a,le(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$1$Type",1578),_(1579,1,{},VFe),h.Kb=function(t){return l(t,17).c.i},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$2$Type",1579),_(1580,1,{},LYe),h.Kb=function(t){return enn(this.a,le(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$3$Type",1580),_(1581,1,{},DYe),h.Kb=function(t){return Ynn(this.a,le(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$4$Type",1581),_(1582,1,{},MYe),h.Kb=function(t){return Jnn(this.a,le(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$5$Type",1582),_(80,23,{3:1,34:1,23:1,80:1,177:1},bi),h.bg=function(){switch(this.g){case 15:return new hUe;case 22:return new pUe;case 48:return new bUe;case 29:case 36:return new r$e;case 33:return new xG;case 43:return new nFe;case 1:return new rFe;case 42:return new iFe;case 57:return new Ece((E_(),iD));case 0:return new Ece((E_(),wee));case 2:return new oFe;case 55:return new sFe;case 34:return new lFe;case 52:return new vFe;case 56:return new xFe;case 13:return new kFe;case 39:return new CFe;case 45:return new IFe;case 41:return new LFe;case 9:return new vWe;case 50:return new Frt;case 38:return new jFe;case 44:return new UFe;case 28:return new HFe;case 31:return new zFe;case 3:return new GFe;case 18:return new WFe;case 30:return new KFe;case 5:return new SWe;case 51:return new ZFe;case 35:return new TWe;case 37:return new i$e;case 53:return new EWe;case 11:return new o$e;case 7:return new AWe;case 40:return new s$e;case 46:return new a$e;case 16:return new u$e;case 10:return new _tt;case 49:return new f$e;case 21:return new h$e;case 23:return new P9((Kb(),XI));case 8:return new g$e;case 12:return new m$e;case 4:return new w$e;case 19:return new _We;case 17:return new N$e;case 54:return new C$e;case 6:return new U$e;case 25:return new RZe;case 26:return new fUe;case 47:return new D$e;case 32:return new Cit;case 14:return new Y$e;case 27:return new yUe;case 20:return new eBe;case 24:return new P9((Kb(),IB));default:throw Y(new jt(FX+(this.f!=null?this.f:""+this.g)))}};var tSe,nSe,rSe,iSe,oSe,sSe,aSe,uSe,cSe,lSe,dSe,VE,_$,x$,fSe,hSe,pSe,gSe,bSe,mSe,wSe,_I,ySe,vSe,ESe,SSe,TSe,yee,k$,N$,ASe,C$,I$,R$,Gx,By,Uy,_Se,O$,L$,xSe,D$,M$,kSe,NSe,CSe,ISe,P$,vee,xT,j$,F$,$$,B$,RSe,OSe,LSe,DSe,nCn=fn(Zt,$X,80,bn,Awt,Rrn),aNt;_(1583,1,kr,WFe),h.If=function(t,r){nNn(l(t,37),r)},k(Zt,"InvertedPortProcessor",1583),_(1584,1,kr,KFe),h.If=function(t,r){ZTn(l(t,37),r)},k(Zt,"LabelAndNodeSizeProcessor",1584),_(1585,1,Mn,YFe),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),_(1586,1,Mn,JFe),h.Mb=function(t){return l(t,9).k==(zt(),mi)},k(Zt,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),_(1587,1,nn,aot),h.Ad=function(t){ven(this.b,this.a,this.c,l(t,9))},h.a=!1,h.c=!1,k(Zt,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),_(1588,1,kr,SWe),h.If=function(t,r){Dkn(l(t,37),r)};var uNt;k(Zt,"LabelDummyInserter",1588),_(1589,1,Uf,XFe),h.Lb=function(t){return me(F(l(t,70),(Be(),Yf)))===me((Kd(),yk))},h.Fb=function(t){return this===t},h.Mb=function(t){return me(F(l(t,70),(Be(),Yf)))===me((Kd(),yk))},k(Zt,"LabelDummyInserter/1",1589),_(1590,1,kr,ZFe),h.If=function(t,r){vkn(l(t,37),r)},k(Zt,"LabelDummyRemover",1590),_(1591,1,Mn,QFe),h.Mb=function(t){return Ye(Ke(F(l(t,70),(Be(),i2))))},k(Zt,"LabelDummyRemover/lambda$0$Type",1591),_(1344,1,kr,TWe),h.If=function(t,r){pkn(this,l(t,37),r)},h.a=null;var Eee;k(Zt,"LabelDummySwitcher",1344),_(295,1,{295:1},vyt),h.c=0,h.d=null,h.f=0,k(Zt,"LabelDummySwitcher/LabelDummyInfo",295),_(1345,1,{},e$e),h.Kb=function(t){return zS(),new Et(null,new St(l(t,26).a,16))},k(Zt,"LabelDummySwitcher/lambda$0$Type",1345),_(1346,1,Mn,t$e),h.Mb=function(t){return zS(),l(t,9).k==(zt(),ta)},k(Zt,"LabelDummySwitcher/lambda$1$Type",1346),_(1347,1,{},PYe),h.Kb=function(t){return $nn(this.a,l(t,9))},k(Zt,"LabelDummySwitcher/lambda$2$Type",1347),_(1348,1,nn,jYe),h.Ad=function(t){Vsn(this.a,l(t,295))},k(Zt,"LabelDummySwitcher/lambda$3$Type",1348),_(1349,1,Un,n$e),h.Le=function(t,r){return Ssn(l(t,295),l(r,295))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"LabelDummySwitcher/lambda$4$Type",1349),_(796,1,kr,r$e),h.If=function(t,r){Edn(l(t,37),r)},k(Zt,"LabelManagementProcessor",796),_(1592,1,kr,i$e),h.If=function(t,r){CSn(l(t,37),r)},k(Zt,"LabelSideSelector",1592),_(1600,1,kr,o$e),h.If=function(t,r){b_n(l(t,37),r)},k(Zt,"LayerConstraintPostprocessor",1600),_(1601,1,kr,AWe),h.If=function(t,r){cEn(l(t,37),r)};var MSe;k(Zt,"LayerConstraintPreprocessor",1601),_(368,23,{3:1,34:1,23:1,368:1},u8);var oD,U$,H$,See,cNt=fn(Zt,"LayerConstraintPreprocessor/HiddenNodeConnections",368,bn,iln,Orn),lNt;_(1602,1,kr,s$e),h.If=function(t,r){Lxn(l(t,37),r)},k(Zt,"LayerSizeAndGraphHeightCalculator",1602),_(1603,1,kr,a$e),h.If=function(t,r){h2n(l(t,37),r)},k(Zt,"LongEdgeJoiner",1603),_(1604,1,kr,u$e),h.If=function(t,r){lxn(l(t,37),r)},k(Zt,"LongEdgeSplitter",1604),_(1605,1,kr,_tt),h.If=function(t,r){Kkn(this,l(t,37),r)},h.e=0,h.f=0,h.j=0,h.k=0,h.n=0,h.o=0;var dNt,fNt;k(Zt,"NodePromotion",1605),_(1606,1,Un,c$e),h.Le=function(t,r){return Npn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NodePromotion/1",1606),_(1607,1,Un,l$e),h.Le=function(t,r){return kpn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NodePromotion/2",1607),_(1608,1,{},d$e),h.Kb=function(t){return l(t,49),Y8(),Dt(),!0},h.Fb=function(t){return this===t},k(Zt,"NodePromotion/lambda$0$Type",1608),_(1609,1,{},FYe),h.Kb=function(t){return Nun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Zt,"NodePromotion/lambda$1$Type",1609),_(1610,1,{},$Ye),h.Kb=function(t){return Cun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Zt,"NodePromotion/lambda$2$Type",1610),_(1611,1,kr,f$e),h.If=function(t,r){jNn(l(t,37),r)},k(Zt,"NorthSouthPortPostprocessor",1611),_(1612,1,kr,h$e),h.If=function(t,r){zNn(l(t,37),r)},k(Zt,"NorthSouthPortPreprocessor",1612),_(1613,1,Un,p$e),h.Le=function(t,r){return Vhn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NorthSouthPortPreprocessor/lambda$0$Type",1613),_(1614,1,kr,g$e),h.If=function(t,r){RAn(l(t,37),r)},k(Zt,"PartitionMidprocessor",1614),_(1615,1,Mn,b$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionMidprocessor/lambda$0$Type",1615),_(1616,1,nn,BYe),h.Ad=function(t){Dan(this.a,l(t,9))},k(Zt,"PartitionMidprocessor/lambda$1$Type",1616),_(1617,1,kr,m$e),h.If=function(t,r){D2n(l(t,37),r)},k(Zt,"PartitionPostprocessor",1617),_(1618,1,kr,w$e),h.If=function(t,r){jTn(l(t,37),r)},k(Zt,"PartitionPreprocessor",1618),_(1619,1,Mn,y$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionPreprocessor/lambda$0$Type",1619),_(1620,1,Mn,v$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionPreprocessor/lambda$1$Type",1620),_(1621,1,{},E$e),h.Kb=function(t){return new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(Zt,"PartitionPreprocessor/lambda$2$Type",1621),_(1622,1,Mn,UYe),h.Mb=function(t){return oen(this.a,l(t,17))},k(Zt,"PartitionPreprocessor/lambda$3$Type",1622),_(1623,1,nn,S$e),h.Ad=function(t){ipn(l(t,17))},k(Zt,"PartitionPreprocessor/lambda$4$Type",1623),_(1624,1,Mn,HYe),h.Mb=function(t){return qsn(this.a,l(t,9))},h.a=0,k(Zt,"PartitionPreprocessor/lambda$5$Type",1624),_(1625,1,kr,_We),h.If=function(t,r){dAn(l(t,37),r)};var PSe,hNt,pNt,gNt,jSe,FSe;k(Zt,"PortListSorter",1625),_(1626,1,{},T$e),h.Kb=function(t){return N_(),l(t,12).e},k(Zt,"PortListSorter/lambda$0$Type",1626),_(1627,1,{},A$e),h.Kb=function(t){return N_(),l(t,12).g},k(Zt,"PortListSorter/lambda$1$Type",1627),_(1628,1,Un,_$e),h.Le=function(t,r){return Fct(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$2$Type",1628),_(1629,1,Un,x$e),h.Le=function(t,r){return Emn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$3$Type",1629),_(1630,1,Un,k$e),h.Le=function(t,r){return Wyt(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$4$Type",1630),_(1631,1,kr,N$e),h.If=function(t,r){mEn(l(t,37),r)},k(Zt,"PortSideProcessor",1631),_(1632,1,kr,C$e),h.If=function(t,r){TTn(l(t,37),r)},k(Zt,"ReversedEdgeRestorer",1632),_(1637,1,kr,RZe),h.If=function(t,r){rmn(this,l(t,37),r)},k(Zt,"SelfLoopPortRestorer",1637),_(1638,1,{},I$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopPortRestorer/lambda$0$Type",1638),_(1639,1,Mn,R$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopPortRestorer/lambda$1$Type",1639),_(1640,1,Mn,O$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopPortRestorer/lambda$2$Type",1640),_(1641,1,{},L$e),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Zt,"SelfLoopPortRestorer/lambda$3$Type",1641),_(1642,1,nn,zYe),h.Ad=function(t){gyn(this.a,l(t,339))},k(Zt,"SelfLoopPortRestorer/lambda$4$Type",1642),_(799,1,nn,Rue),h.Ad=function(t){kyn(l(t,108))},k(Zt,"SelfLoopPortRestorer/lambda$5$Type",799),_(1644,1,kr,D$e),h.If=function(t,r){gbn(l(t,37),r)},k(Zt,"SelfLoopPostProcessor",1644),_(1645,1,{},M$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopPostProcessor/lambda$0$Type",1645),_(1646,1,Mn,P$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopPostProcessor/lambda$1$Type",1646),_(1647,1,Mn,j$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopPostProcessor/lambda$2$Type",1647),_(1648,1,nn,F$e),h.Ad=function(t){S0n(l(t,9))},k(Zt,"SelfLoopPostProcessor/lambda$3$Type",1648),_(1649,1,{},$$e),h.Kb=function(t){return new Et(null,new St(l(t,108).f,1))},k(Zt,"SelfLoopPostProcessor/lambda$4$Type",1649),_(1650,1,nn,GYe),h.Ad=function(t){Qcn(this.a,l(t,342))},k(Zt,"SelfLoopPostProcessor/lambda$5$Type",1650),_(1651,1,Mn,B$e),h.Mb=function(t){return!!l(t,108).i},k(Zt,"SelfLoopPostProcessor/lambda$6$Type",1651),_(1652,1,nn,qYe),h.Ad=function(t){vQt(this.a,l(t,108))},k(Zt,"SelfLoopPostProcessor/lambda$7$Type",1652),_(1633,1,kr,U$e),h.If=function(t,r){XEn(l(t,37),r)},k(Zt,"SelfLoopPreProcessor",1633),_(1634,1,{},H$e),h.Kb=function(t){return new Et(null,new St(l(t,108).f,1))},k(Zt,"SelfLoopPreProcessor/lambda$0$Type",1634),_(1635,1,{},z$e),h.Kb=function(t){return l(t,342).a},k(Zt,"SelfLoopPreProcessor/lambda$1$Type",1635),_(1636,1,nn,G$e),h.Ad=function(t){Otn(l(t,17))},k(Zt,"SelfLoopPreProcessor/lambda$2$Type",1636),_(1653,1,kr,Cit),h.If=function(t,r){Zwn(this,l(t,37),r)},k(Zt,"SelfLoopRouter",1653),_(1654,1,{},q$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopRouter/lambda$0$Type",1654),_(1655,1,Mn,V$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopRouter/lambda$1$Type",1655),_(1656,1,Mn,W$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopRouter/lambda$2$Type",1656),_(1657,1,{},K$e),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Zt,"SelfLoopRouter/lambda$3$Type",1657),_(1658,1,nn,ftt),h.Ad=function(t){Nan(this.a,this.b,l(t,339))},k(Zt,"SelfLoopRouter/lambda$4$Type",1658),_(1659,1,kr,Y$e),h.If=function(t,r){bSn(l(t,37),r)},k(Zt,"SemiInteractiveCrossMinProcessor",1659),_(1660,1,Mn,J$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),_(1661,1,Mn,X$e),h.Mb=function(t){return Got(l(t,9))._b((Be(),Zy))},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),_(1662,1,Un,Z$e),h.Le=function(t,r){return ahn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),_(1663,1,{},Q$e),h.Te=function(t,r){return Lan(l(t,9),l(r,9))},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),_(1665,1,kr,eBe),h.If=function(t,r){Xxn(l(t,37),r)},k(Zt,"SortByInputModelProcessor",1665),_(1666,1,Mn,tBe),h.Mb=function(t){return l(t,12).g.c.length!=0},k(Zt,"SortByInputModelProcessor/lambda$0$Type",1666),_(1667,1,nn,VYe),h.Ad=function(t){Oyn(this.a,l(t,12))},k(Zt,"SortByInputModelProcessor/lambda$1$Type",1667),_(1746,811,{},dht),h.bf=function(t){var r,o,a,c;switch(this.c=t,this.a.g){case 2:r=new je,ei(lr(new Et(null,new St(this.c.a.b,16)),new gBe),new mtt(this,r)),X6(this,new rBe),Da(r,new iBe),r.c.length=0,ei(lr(new Et(null,new St(this.c.a.b,16)),new oBe),new KYe(r)),X6(this,new sBe),Da(r,new aBe),r.c.length=0,o=ert(kK(ey(new Et(null,new St(this.c.a.b,16)),new YYe(this))),new uBe),ei(new Et(null,new St(this.c.a.a,16)),new ptt(o,r)),X6(this,new lBe),Da(r,new dBe),r.c.length=0;break;case 3:a=new je,X6(this,new nBe),c=ert(kK(ey(new Et(null,new St(this.c.a.b,16)),new WYe(this))),new cBe),ei(lr(new Et(null,new St(this.c.a.b,16)),new fBe),new btt(c,a)),X6(this,new hBe),Da(a,new pBe),a.c.length=0;break;default:throw Y(new mZe)}},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation",1746),_(1747,1,Uf,nBe),h.Lb=function(t){return ae(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),_(1748,1,{},WYe),h.We=function(t){return ovn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),_(1756,1,nF,htt),h.be=function(){bC(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),_(1758,1,Uf,rBe),h.Lb=function(t){return ae(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),_(1759,1,nn,iBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),_(1760,1,Mn,oBe),h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),_(1762,1,nn,KYe),h.Ad=function(t){zgn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),_(1761,1,nF,vtt),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),_(1763,1,Uf,sBe),h.Lb=function(t){return ae(l(t,60).g,9)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),_(1764,1,nn,aBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),_(1765,1,{},YYe),h.We=function(t){return svn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),_(1766,1,{},uBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),_(1749,1,{},cBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),_(1768,1,nn,ptt),h.Ad=function(t){fsn(this.a,this.b,l(t,321))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),_(1767,1,nF,gtt),h.be=function(){V0t(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),_(1769,1,Uf,lBe),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},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1769),_(1770,1,nn,dBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),_(1750,1,Mn,fBe),h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),_(1752,1,nn,btt),h.Ad=function(t){hsn(this.a,this.b,l(t,60))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),_(1751,1,nF,Ett),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),_(1753,1,Uf,hBe),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},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1753),_(1754,1,nn,pBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),_(1755,1,Mn,gBe),h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),_(1757,1,nn,mtt),h.Ad=function(t){Nfn(this.a,this.b,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),_(1564,1,kr,Frt),h.If=function(t,r){hxn(this,l(t,37),r)};var bNt;k(di,"HorizontalGraphCompactor",1564),_(1565,1,{},JYe),h.df=function(t,r){var o,a,c;return $pe(t,r)||(o=lE(t),a=lE(r),o&&o.k==(zt(),mi)||a&&a.k==(zt(),mi))?0:(c=l(F(this.a.a,(Ie(),t2)),317),rnn(c,o?o.k:(zt(),gi),a?a.k:(zt(),gi)))},h.ef=function(t,r){var o,a,c;return $pe(t,r)?1:(o=lE(t),a=lE(r),c=l(F(this.a.a,(Ie(),t2)),317),Ode(c,o?o.k:(zt(),gi),a?a.k:(zt(),gi)))},k(di,"HorizontalGraphCompactor/1",1565),_(1566,1,{},bBe),h.cf=function(t,r){return YN(),t.a.i==0},k(di,"HorizontalGraphCompactor/lambda$0$Type",1566),_(1567,1,{},XYe),h.cf=function(t,r){return Pan(this.a,t,r)},k(di,"HorizontalGraphCompactor/lambda$1$Type",1567),_(1713,1,{},zdt);var mNt,wNt;k(di,"LGraphToCGraphTransformer",1713),_(1721,1,Mn,mBe),h.Mb=function(t){return t!=null},k(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),_(1714,1,{},wBe),h.Kb=function(t){return hc(),ms(F(l(l(t,60).g,9),(Ie(),mr)))},k(di,"LGraphToCGraphTransformer/lambda$0$Type",1714),_(1715,1,{},yBe),h.Kb=function(t){return hc(),igt(l(l(t,60).g,157))},k(di,"LGraphToCGraphTransformer/lambda$1$Type",1715),_(1724,1,Mn,vBe),h.Mb=function(t){return hc(),ae(l(t,60).g,9)},k(di,"LGraphToCGraphTransformer/lambda$10$Type",1724),_(1725,1,nn,EBe),h.Ad=function(t){Ran(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$11$Type",1725),_(1726,1,Mn,SBe),h.Mb=function(t){return hc(),ae(l(t,60).g,157)},k(di,"LGraphToCGraphTransformer/lambda$12$Type",1726),_(1730,1,nn,TBe),h.Ad=function(t){agn(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$13$Type",1730),_(1727,1,nn,ZYe),h.Ad=function(t){Qen(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$14$Type",1727),_(1728,1,nn,QYe),h.Ad=function(t){ttn(this.a,l(t,120))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$15$Type",1728),_(1729,1,nn,eJe),h.Ad=function(t){etn(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$16$Type",1729),_(1731,1,{},ABe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(di,"LGraphToCGraphTransformer/lambda$17$Type",1731),_(1732,1,Mn,_Be),h.Mb=function(t){return hc(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$18$Type",1732),_(1733,1,nn,tJe),h.Ad=function(t){ifn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$19$Type",1733),_(1717,1,nn,nJe),h.Ad=function(t){Lcn(this.a,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$2$Type",1717),_(1734,1,{},xBe),h.Kb=function(t){return hc(),new Et(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$20$Type",1734),_(1735,1,{},kBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(di,"LGraphToCGraphTransformer/lambda$21$Type",1735),_(1736,1,{},NBe),h.Kb=function(t){return hc(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$22$Type",1736),_(1737,1,Mn,CBe),h.Mb=function(t){return inn(l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$23$Type",1737),_(1738,1,nn,rJe),h.Ad=function(t){avn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$24$Type",1738),_(1739,1,{},IBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(di,"LGraphToCGraphTransformer/lambda$25$Type",1739),_(1740,1,Mn,RBe),h.Mb=function(t){return hc(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$26$Type",1740),_(1742,1,nn,iJe),h.Ad=function(t){Xfn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$27$Type",1742),_(1741,1,nn,oJe),h.Ad=function(t){qQt(this.a,l(t,70))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$28$Type",1741),_(1716,1,nn,wtt),h.Ad=function(t){Oln(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$3$Type",1716),_(1718,1,{},OBe),h.Kb=function(t){return hc(),new Et(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$4$Type",1718),_(1719,1,{},LBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(di,"LGraphToCGraphTransformer/lambda$5$Type",1719),_(1720,1,{},DBe),h.Kb=function(t){return hc(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$6$Type",1720),_(1722,1,nn,sJe),h.Ad=function(t){wvn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$8$Type",1722),_(1723,1,nn,ytt),h.Ad=function(t){_tn(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$9$Type",1723),_(1712,1,{},MBe),h.af=function(t){var r,o,a,c,f;for(this.a=t,this.d=new ZG,this.c=we(S2e,Rt,126,this.a.a.a.c.length,0,1),this.b=0,o=new V(this.a.a.a);o.a=z&&(Fe(f,Re(T)),se=b.Math.max(se,de[T-1]-N),m+=U,J+=de[T-1]-J,N=de[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}M=b.Math.min(1/se,1/r.b/m),M>a&&(a=M,o=f)}return o},h.ng=function(){return!1},k(zf,"MSDCutIndexHeuristic",810),_(1664,1,kr,yUe),h.If=function(t,r){m_n(l(t,37),r)},k(zf,"SingleEdgeGraphWrapper",1664),_(233,23,{3:1,34:1,23:1,233:1},n3);var KE,Wx,Kx,zy,xI,YE,Yx=fn($s,"CenterEdgeLabelPlacementStrategy",233,bn,Ldn,Prn),INt;_(427,23,{3:1,34:1,23:1,427:1},Rle);var BSe,Lee,USe=fn($s,"ConstraintCalculationStrategy",427,bn,Qan,Mrn),RNt;_(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},l8),h.bg=function(){return nwt(this)},h.og=function(){return nwt(this)};var aD,kI,HSe,zSe,GSe=fn($s,"CrossingMinimizationStrategy",302,bn,cln,$rn),ONt;_(351,23,{3:1,34:1,23:1,351:1},Lq);var qSe,Dee,W$,VSe=fn($s,"CuttingStrategy",351,bn,Jun,Brn),LNt;_(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return ayt(this)},h.og=function(){return ayt(this)};var Mee,WSe,Pee,jee,Fee,$ee,Bee,Uee,uD,KSe=fn($s,"CycleBreakingStrategy",268,bn,Gfn,Urn),DNt;_(424,23,{3:1,34:1,23:1,424:1},Ole);var K$,YSe,JSe=fn($s,"DirectionCongruency",424,bn,eun,Hrn),MNt;_(452,23,{3:1,34:1,23:1,452:1},Dq);var Jx,Hee,JE,PNt=fn($s,"EdgeConstraint",452,bn,Xun,zrn),jNt;_(286,23,{3:1,34:1,23:1,286:1},r3);var zee,Gee,qee,Vee,Y$,Wee,XSe=fn($s,"EdgeLabelSideSelection",286,bn,Idn,Grn),FNt;_(479,23,{3:1,34:1,23:1,479:1},Lle);var J$,ZSe,QSe=fn($s,"EdgeStraighteningStrategy",479,bn,tun,qrn),$Nt;_(284,23,{3:1,34:1,23:1,284:1},i3);var Kee,eTe,tTe,X$,nTe,rTe,iTe=fn($s,"FixedAlignment",284,bn,Rdn,Vrn),BNt;_(285,23,{3:1,34:1,23:1,285:1},o3);var oTe,sTe,aTe,uTe,NI,cTe,lTe=fn($s,"GraphCompactionStrategy",285,bn,Odn,Wrn),UNt;_(262,23,{3:1,34:1,23:1,262:1},Fw);var Xx,Z$,Zx,rl,CI,Q$,Qx,XE,eB,II,Yee=fn($s,"GraphProperties",262,bn,dhn,Krn),HNt;_(303,23,{3:1,34:1,23:1,303:1},Mq);var cD,Jee,Xee,Zee=fn($s,"GreedySwitchType",303,bn,Yun,Yrn),zNt;_(330,23,{3:1,34:1,23:1,330:1},Pq);var Gy,dTe,lD,Qee=fn($s,"GroupOrderStrategy",330,bn,Wun,Jrn),GNt;_(316,23,{3:1,34:1,23:1,316:1},jq);var kT,dD,ZE,qNt=fn($s,"InLayerConstraint",316,bn,Kun,Xrn),VNt;_(425,23,{3:1,34:1,23:1,425:1},Dle);var ete,fTe,hTe=fn($s,"InteractiveReferencePoint",425,bn,Jan,Zrn),WNt,pTe,NT,ew,fD,tB,gTe,bTe,nB,mTe,CT,rB,RI,IT,_p,tte,iB,Hs,wTe,j1,xa,nte,rte,hD,hm,tw,RT,yTe,KNt,OT,pD,qy,Cd,Nl,ite,QE,F1,Cr,mr,vTe,ETe,STe,TTe,ATe,ote,oB,Nu,nw,ste,LT,OI,Ag,e2,rw,t2,n2,ek,pm,_Te,ate,ute,LI,DT,sB,MT,r2;_(166,23,{3:1,34:1,23:1,166:1},bO);var DI,xp,MI,gm,gD,xTe=fn($s,"LayerConstraint",166,bn,idn,Qrn),YNt;_(428,23,{3:1,34:1,23:1,428:1},Mle);var cte,lte,kTe=fn($s,"LayerUnzippingStrategy",428,bn,Xan,ein),JNt;_(851,1,td,RWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Dwe),""),"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."),BTe),(A1(),$r)),JSe),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mwe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Dt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gF),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),VTe),$r),hTe),ct(xt)))),zr(t,gF,jL,eCt),zr(t,gF,XC,Q3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pwe),""),"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(gt(Qe(nt(et(tt(new Xe,jwe),""),"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(WQt(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Fwe),""),"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(Cg)),Z(X(Je,1),Pe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$we),""),"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."),rAe),$r),p_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bwe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Re(7)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Uwe),""),"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(gt(Qe(nt(et(tt(new Xe,Hwe),""),"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(gt(Qe(nt(et(tt(new Xe,jL),"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)."),$Te),$r),KSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,FL),vZ),"Node Layering Strategy"),"Strategy for node layering."),YTe),$r),n_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zwe),vZ),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),WTe),$r),xTe),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Gwe),vZ),"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),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qwe),vZ),"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)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,HX),vSt),"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)),yo),Ti),ct(xt)))),zr(t,HX,FL,aCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zX),vSt),"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)),yo),Ti),ct(xt)))),zr(t,zX,FL,cCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,GX),ESt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),KTe),$r),d_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qX),ESt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Re(0)),yo),Ti),ct(xt)))),zr(t,qX,GX,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,VX),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Re(sr)),yo),Ti),ct(xt)))),zr(t,VX,FL,nCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XC),Ax),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),FTe),$r),GSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Vwe),Ax),"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(gt(Qe(nt(et(tt(new Xe,WX),Ax),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),eo),fi),ct(xt)))),zr(t,WX,NF,x3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,KX),Ax),"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,KX,XC,O3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Wwe),Ax),"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),HT),Je),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Kwe),Ax),"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),HT),Je),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ywe),Ax),"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),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Jwe),Ax),"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)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xwe),SSt),"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)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,YX),SSt),"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."),jTe),$r),Zee),ct(xt)))),zr(t,YX,XC,A3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bF),"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."),PTe),$r),Zee),ct(xt)))),zr(t,bF,XC,E3t),zr(t,bF,NF,S3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,PE),TSt),"Node Placement Strategy"),"Strategy for node placement."),nAe),$r),s_e),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mF),TSt),"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,mF,PE,xCt),zr(t,mF,PE,kCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,JX),ASt),"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."),QTe),$r),QSe),ct(xt)))),zr(t,JX,PE,SCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XX),ASt),"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."),eAe),$r),iTe),ct(xt)))),zr(t,XX,PE,ACt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZX),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),eo),fi),ct(xt)))),zr(t,ZX,PE,CCt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,QX),"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),jte),ct(ri)))),zr(t,QX,PE,LCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eZ),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),tAe),$r),jte),ct(xt)))),zr(t,eZ,PE,OCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Zwe),_St),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),zTe),$r),m_e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Qwe),_St),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),GTe),$r),w_e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wF),"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."),qTe),$r),v_e),ct(xt)))),zr(t,wF,BL,z3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yF),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),eo),fi),ct(xt)))),zr(t,yF,BL,q3t),zr(t,yF,wF,V3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tZ),"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),eo),fi),ct(xt)))),zr(t,tZ,BL,$3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,eye),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."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iye),bye),"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)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oye),bye),"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)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sye),bye),"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)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nZ),mye),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ai),Yr),ct(xt)))),zr(t,nZ,WC,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aye),xSt),"Post Compaction Strategy"),kSt),CTe),$r),lTe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uye),xSt),"Post Compaction Constraint Calculation"),kSt),NTe),$r),USe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vF),wye),"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(gt(Qe(nt(et(tt(new Xe,rZ),wye),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Re(16)),yo),Ti),ct(xt)))),zr(t,rZ,vF,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iZ),wye),"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)),yo),Ti),ct(xt)))),zr(t,iZ,vF,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sp),yye),"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'."),sAe),$r),A_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,EF),yye),"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),eo),fi),ct(xt)))),zr(t,EF,Sp,VCt),zr(t,EF,Sp,WCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,SF),yye),"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),eo),fi),ct(xt)))),zr(t,SF,Sp,YCt),zr(t,SF,Sp,JCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZC),NSt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),oAe),$r),VSe),ct(xt)))),zr(t,ZC,Sp,nIt),zr(t,ZC,Sp,rIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,oZ),NSt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),lf),_c),ct(xt)))),zr(t,oZ,ZC,ZCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sZ),"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."),iAe),yo),Ti),ct(xt)))),zr(t,sZ,ZC,eIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TF),CSt),"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."),aAe),$r),T_e),ct(xt)))),zr(t,TF,Sp,gIt),zr(t,TF,Sp,bIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,AF),CSt),"Valid Indices for Wrapping"),null),lf),_c),ct(xt)))),zr(t,AF,Sp,fIt),zr(t,AF,Sp,hIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_F),vye),"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,_F,Sp,aIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xF),vye),"Distance Penalty When Improving Cuts"),null),2),eo),fi),ct(xt)))),zr(t,xF,Sp,oIt),zr(t,xF,_F,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aZ),vye),"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,aZ,Sp,cIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uZ),EZ),"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'."),ZTe),$r),kTe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cZ),EZ),"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,cZ,lZ,gCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lZ),EZ),"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."),JTe),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dZ),EZ),"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."),XTe),Ai),Yr),ct(ri)))),zr(t,dZ,uZ,mCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cye),SZ),"Edge Label Side Selection"),"Method to decide on edge label sides."),HTe),$r),XSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lye),SZ),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),UTe),$r),Yx),xr(xt,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kF),QC),"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."),MTe),$r),h_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dye),QC),"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(gt(Qe(nt(et(tt(new Xe,$L),QC),"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(gt(Qe(nt(et(tt(new Xe,fZ),QC),"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."),ITe),$r),V2e),ct(xt)))),zr(t,fZ,WC,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fye),QC),"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."),DTe),$r),i_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hZ),QC),"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),eo),fi),ct(xt)))),zr(t,hZ,kF,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pZ),QC),"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),eo),fi),ct(xt)))),zr(t,pZ,kF,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gZ),_x),Eye),"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)),yo),Ti),ct(ri)))),zr(t,gZ,$L,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bZ),_x),Eye),"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)),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg]))))),zr(t,bZ,$L,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mZ),_x),Eye),"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)),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg]))))),zr(t,mZ,$L,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hye),_x),"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."),RTe),$r),Qee),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,wZ),_x),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),yo),Ti),ct(xt)))),zr(t,wZ,jL,s3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,yZ),_x),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),yo),Ti),ct(xt)))),zr(t,yZ,jL,u3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pye),_x),"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."),LTe),$r),Qee),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gye),_x),"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."),OTe),lf),_c),ct(xt)))),YEt((new $We,t))};var XNt,ZNt,QNt,NTe,e3t,CTe,t3t,ITe,n3t,r3t,i3t,RTe,o3t,s3t,a3t,u3t,c3t,OTe,l3t,LTe,d3t,f3t,h3t,p3t,DTe,g3t,b3t,m3t,MTe,w3t,y3t,v3t,PTe,E3t,S3t,T3t,jTe,A3t,_3t,x3t,k3t,N3t,C3t,I3t,R3t,O3t,L3t,FTe,D3t,$Te,M3t,BTe,P3t,UTe,j3t,HTe,F3t,$3t,B3t,zTe,U3t,GTe,H3t,qTe,z3t,G3t,q3t,V3t,W3t,K3t,Y3t,J3t,X3t,Z3t,VTe,Q3t,eCt,tCt,nCt,rCt,iCt,WTe,oCt,sCt,aCt,uCt,cCt,lCt,dCt,KTe,fCt,YTe,hCt,JTe,pCt,gCt,bCt,XTe,mCt,wCt,ZTe,yCt,vCt,ECt,QTe,SCt,TCt,eAe,ACt,_Ct,xCt,kCt,NCt,CCt,ICt,RCt,tAe,OCt,LCt,DCt,nAe,MCt,rAe,PCt,jCt,FCt,$Ct,BCt,UCt,HCt,zCt,GCt,qCt,VCt,WCt,KCt,YCt,JCt,XCt,ZCt,QCt,iAe,eIt,tIt,oAe,nIt,rIt,iIt,oIt,sIt,aIt,uIt,cIt,lIt,sAe,dIt,fIt,hIt,pIt,aAe,gIt,bIt;k($s,"LayeredMetaDataProvider",851),_(991,1,td,$We),h.tf=function(t){YEt(t)};var Kf,dte,aB,PI,uB,uAe,cB,jI,bD,fte,PT,cAe,lAe,dAe,FI,mIt,$I,Vy,hte,lB,pte,Ch,gte,tk,fAe,mD,bte,hAe,wIt,yIt,vIt,dB,mte,BI,jT,EIt,xc,pAe,gAe,fB,i2,Yf,hB,kp,bAe,mAe,wAe,wte,yte,yAe,_g,vte,vAe,Wy,EAe,SAe,TAe,pB,Ky,bm,AAe,_Ae,ss,xAe,SIt,Cs,UI,kAe,NAe,CAe,wD,gB,bB,Ete,Ste,IAe,mB,RAe,OAe,wB,iw,LAe,Tte,HI,DAe,ow,zI,yB,mm,Ate,nk,vB,wm,MAe,PAe,jAe,Yy,FAe,TIt,AIt,_It,xIt,sw,Jy,Zr,xg,kIt,Xy,$Ae,rk,BAe,Zy,NIt,ik,UAe,FT,CIt,IIt,yD,_te,HAe,vD,od,Qy,o2,ym,$1,EB,ev,xte,ok,sk,vm,tv,kte,ED,GI,qI,RIt,OIt,LIt,zAe,DIt,Nte,GAe,qAe,VAe,WAe,Cte,KAe,YAe,JAe,XAe,Ite,SB;k($s,"LayeredOptions",991),_(992,1,{},vUe),h.uf=function(){var t;return t=new EZe,t},h.vf=function(t){},k($s,"LayeredOptions/LayeredFactory",992),_(1357,1,{}),h.a=0;var MIt;k(Vs,"ElkSpacings/AbstractSpacingsBuilder",1357),_(785,1357,{},E1e);var TB,PIt;k($s,"LayeredSpacings/LayeredSpacingsBuilder",785),_(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},Yv),h.bg=function(){return ryt(this)},h.og=function(){return ryt(this)};var Rte,Ote,Lte,ZAe,QAe,e_e,AB,Dte,t_e,n_e=fn($s,"LayeringStrategy",269,bn,qfn,oin),jIt;_(353,23,{3:1,34:1,23:1,353:1},Fq);var Mte,r_e,_B,i_e=fn($s,"LongEdgeOrderingStrategy",353,bn,ncn,nin),FIt;_(205,23,{3:1,34:1,23:1,205:1},d8);var s2,a2,xB,Pte,jte=fn($s,"NodeFlexibility",205,bn,aln,tin),$It;_(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},mO),h.bg=function(){return gmt(this)},h.og=function(){return gmt(this)};var VI,Fte,$te,WI,o_e,s_e=fn($s,"NodePlacementStrategy",329,bn,rdn,rin),BIt;_(246,23,{3:1,34:1,23:1,246:1},$w);var a_e,ak,KI,SD,u_e,c_e,TD,l_e,kB,NB,d_e=fn($s,"NodePromotionStrategy",246,bn,lhn,iin),UIt;_(270,23,{3:1,34:1,23:1,270:1},f8);var f_e,B1,Bte,Ute,h_e=fn($s,"OrderingStrategy",270,bn,uln,sin),HIt;_(426,23,{3:1,34:1,23:1,426:1},Ple);var Hte,zte,p_e=fn($s,"PortSortingStrategy",426,bn,Zan,ain),zIt;_(455,23,{3:1,34:1,23:1,455:1},$q);var Cu,Ba,YI,GIt=fn($s,"PortType",455,bn,Zun,uin),qIt;_(382,23,{3:1,34:1,23:1,382:1},Bq);var g_e,Gte,b_e,m_e=fn($s,"SelfLoopDistributionStrategy",382,bn,Qun,cin),VIt;_(349,23,{3:1,34:1,23:1,349:1},Uq);var qte,AD,Vte,w_e=fn($s,"SelfLoopOrderingStrategy",349,bn,ecn,lin),WIt;_(317,1,{317:1},Gvt),k($s,"Spacings",317),_(350,23,{3:1,34:1,23:1,350:1},Hq);var Wte,y_e,JI,v_e=fn($s,"SplineRoutingMode",350,bn,tcn,din),KIt;_(352,23,{3:1,34:1,23:1,352:1},zq);var Kte,E_e,S_e,T_e=fn($s,"ValidifyStrategy",352,bn,rcn,fin),YIt;_(383,23,{3:1,34:1,23:1,383:1},Gq);var nv,Yte,uk,A_e=fn($s,"WrappingStrategy",383,bn,icn,hin),JIt;_(1373,1,Fi,PWe),h.pg=function(t){return l(t,37),XIt},h.If=function(t,r){tkn(this,l(t,37),r)};var XIt;k(H0,"BFSNodeOrderCycleBreaker",1373),_(1371,1,Fi,MWe),h.pg=function(t){return l(t,37),ZIt},h.If=function(t,r){J_n(this,l(t,37),r)};var ZIt;k(H0,"DFSNodeOrderCycleBreaker",1371),_(1372,1,nn,not),h.Ad=function(t){JTn(this.a,this.c,this.b,l(t,17))},h.b=!1,k(H0,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),_(1365,1,Fi,jWe),h.pg=function(t){return l(t,37),QIt},h.If=function(t,r){Y_n(this,l(t,37),r)};var QIt;k(H0,"DepthFirstCycleBreaker",1365),_(786,1,Fi,qfe),h.pg=function(t){return l(t,37),e4t},h.If=function(t,r){m3n(this,l(t,37),r)},h.qg=function(t){return l(ze(t,u7(this.e,t.c.length)),9)};var e4t;k(H0,"GreedyCycleBreaker",786),_(1368,786,Fi,Jtt),h.qg=function(t){var r,o,a,c,f,p,m,y,v;for(v=null,a=sr,y=b.Math.max(this.b.a.c.length,l(F(this.b,(Ie(),F1)),15).a),r=y*l(F(this.b,fD),15).a,c=new YR,o=me(F(this.b,(Be(),PT)))===me((g1(),Gy)),m=new V(t);m.af&&(a=f,v=p));return v||l(ze(t,u7(this.e,t.c.length)),9)},k(H0,"GreedyModelOrderCycleBreaker",1368),_(509,1,{},YR),h.a=0,h.b=0,k(H0,"GroupModelOrderCalculator",509),_(1366,1,Fi,LWe),h.pg=function(t){return l(t,37),t4t},h.If=function(t,r){Sxn(this,l(t,37),r)};var t4t;k(H0,"InteractiveCycleBreaker",1366),_(1367,1,Fi,OWe),h.pg=function(t){return l(t,37),n4t},h.If=function(t,r){Axn(l(t,37),r)};var n4t;k(H0,"ModelOrderCycleBreaker",1367),_(787,1,Fi),h.pg=function(t){return l(t,37),r4t},h.If=function(t,r){l_n(this,l(t,37),r)},h.rg=function(t,r){var o,a,c,f,p,m,y,v,T,N;for(p=0;pv&&(y=O,N=v),Tyd(new $t(qt(Or(m).a.Jc(),new L))))for(c=new $t(qt(si(y).a.Jc(),new L));an(c);)a=l(en(c),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(c=new $t(qt(Or(m).a.Jc(),new L));an(c);)a=l(en(c),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCCNodeTypeCycleBreaker",1370),_(1369,787,Fi,Ztt),h.rg=function(t,r){var o,a,c,f,p,m,y,v,T,N,O,M;for(p=0;pv&&(y=O,N=v),Tyd(new $t(qt(Or(m).a.Jc(),new L))))for(c=new $t(qt(si(y).a.Jc(),new L));an(c);)a=l(en(c),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(c=new $t(qt(Or(m).a.Jc(),new L));an(c);)a=l(en(c),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCConnectivity",1369),_(1385,1,Fi,DWe),h.pg=function(t){return l(t,37),i4t},h.If=function(t,r){ENn(this,l(t,37),r)};var i4t;k(Tp,"BreadthFirstModelOrderLayerer",1385),_(1386,1,Un,EUe),h.Le=function(t,r){return evn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"BreadthFirstModelOrderLayerer/lambda$0$Type",1386),_(1376,1,Fi,Yet),h.pg=function(t){return l(t,37),o4t},h.If=function(t,r){S3n(this,l(t,37),r)};var o4t;k(Tp,"CoffmanGrahamLayerer",1376),_(1377,1,Un,pJe),h.Le=function(t,r){return lSn(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1377),_(1378,1,Un,gJe),h.Le=function(t,r){return dsn(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"CoffmanGrahamLayerer/lambda$1$Type",1378),_(1387,1,Fi,kWe),h.pg=function(t){return l(t,37),s4t},h.If=function(t,r){u3n(this,l(t,37),r)},h.c=0,h.e=0;var s4t;k(Tp,"DepthFirstModelOrderLayerer",1387),_(1388,1,Un,SUe),h.Le=function(t,r){return tvn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"DepthFirstModelOrderLayerer/lambda$0$Type",1388),_(1379,1,Fi,TUe),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),yee)),kh,Uy),la,By)},h.If=function(t,r){ONn(l(t,37),r)},k(Tp,"InteractiveLayerer",1379),_(571,1,{571:1},CZe),h.a=0,h.c=0,k(Tp,"InteractiveLayerer/LayerSpan",571),_(1375,1,Fi,NWe),h.pg=function(t){return l(t,37),a4t},h.If=function(t,r){iSn(this,l(t,37),r)};var a4t;k(Tp,"LongestPathLayerer",1375),_(1384,1,Fi,CWe),h.pg=function(t){return l(t,37),u4t},h.If=function(t,r){_Sn(this,l(t,37),r)};var u4t;k(Tp,"LongestPathSourceLayerer",1384),_(1382,1,Fi,UWe),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)},h.If=function(t,r){HNn(this,l(t,37),r)},h.a=0,h.b=0,h.d=0;var __e,x_e;k(Tp,"MinWidthLayerer",1382),_(1383,1,Un,bJe),h.Le=function(t,r){return Phn(this,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"MinWidthLayerer/MinOutgoingEdgesComparator",1383),_(1374,1,Fi,BWe),h.pg=function(t){return l(t,37),c4t},h.If=function(t,r){ikn(this,l(t,37),r)};var c4t;k(Tp,"NetworkSimplexLayerer",1374),_(1380,1,Fi,xit),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)},h.If=function(t,r){Gkn(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,k(Tp,"StretchWidthLayerer",1380),_(1381,1,Un,CUe),h.Le=function(t,r){return wdn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"StretchWidthLayerer/1",1381),_(411,1,rve),h.eg=function(t,r,o,a,c,f){},h.tg=function(t,r,o){return Dyt(this,t,r,o)},h.dg=function(){this.g=we(Ev,LSt,30,this.d,15,1),this.f=we(Ev,LSt,30,this.d,15,1)},h.fg=function(t,r){this.e[t]=we(Rn,Qn,30,r[t].length,15,1)},h.gg=function(t,r,o){var a;a=o[t][r],a.p=r,this.e[t][r]=r},h.hg=function(t,r,o,a){l(ze(a[t][r].j,o),12).p=this.d++},h.b=0,h.c=0,h.d=0,k(qa,"AbstractBarycenterPortDistributor",411),_(1680,1,Un,mJe),h.Le=function(t,r){return X1n(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(qa,"AbstractBarycenterPortDistributor/lambda$0$Type",1680),_(823,1,JC,Zhe),h.eg=function(t,r,o,a,c,f){},h.gg=function(t,r,o){},h.hg=function(t,r,o,a){},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,a){o?ybt(this,t):(_bt(this,t,a),tEt(this,t,r)),t.c.length>1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),tk))))?twt(t,this.d,l(this,667)):(At(),xi(t,this.d)),Bht(this.e,t))},h.jg=function(t,r,o,a){var c,f,p,m,y,v,T;for(r!=Vot(o,t.length)&&(f=t[r-(o?1:-1)],Ape(this.f,f,o?(jo(),Ba):(jo(),Cu))),c=t[r][0],T=!a||c.k==(zt(),mi),v=Wl(t[r]),this.ug(v,T,!1,o),p=0,y=new V(v);y.a"),t0?kW(this.a,t[r-1],t[r]):!o&&r1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),tk))))?twt(t,this.d,this):(At(),xi(t,this.d)),Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),tk)))||Bht(this.e,t))},k(qa,"ModelOrderBarycenterHeuristic",667),_(1860,1,Un,xJe),h.Le=function(t,r){return $_n(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(qa,"ModelOrderBarycenterHeuristic/lambda$0$Type",1860),_(1395,1,Fi,qWe),h.pg=function(t){var r;return l(t,37),r=O8(m4t),$n(r,(Vi(),la),(Zi(),P$)),r},h.If=function(t,r){xan((l(t,37),r))};var m4t;k(qa,"NoCrossingMinimizer",1395),_(803,411,rve,rle),h.sg=function(t,r,o){var a,c,f,p,m,y,v,T,N,O,M;switch(N=this.g,o.g){case 1:{for(c=0,f=0,T=new V(t.j);T.a1&&(c.j==(He(),Qt)?this.b[t]=!0:c.j==Kt&&t>0&&(this.b[t-1]=!0))},h.f=0,k(_h,"AllCrossingsCounter",1855),_(590,1,{},Nj),h.b=0,h.d=0,k(_h,"BinaryIndexedTree",590),_(523,1,{},FO);var k_e,RB;k(_h,"CrossingsCounter",523),_(1929,1,Un,kJe),h.Le=function(t,r){return Qon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$0$Type",1929),_(1930,1,Un,NJe),h.Le=function(t,r){return esn(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$1$Type",1930),_(1931,1,Un,CJe),h.Le=function(t,r){return tsn(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$2$Type",1931),_(1932,1,Un,IJe),h.Le=function(t,r){return nsn(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$3$Type",1932),_(1933,1,nn,RJe),h.Ad=function(t){tfn(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$4$Type",1933),_(1934,1,Mn,OJe),h.Mb=function(t){return Pen(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$5$Type",1934),_(1935,1,nn,LJe),h.Ad=function(t){Qtt(this,t)},k(_h,"CrossingsCounter/lambda$6$Type",1935),_(1936,1,nn,Ctt),h.Ad=function(t){var r;ZA(),l1(this.b,(r=this.a,l(t,12),r))},k(_h,"CrossingsCounter/lambda$7$Type",1936),_(831,1,Uf,Fue),h.Lb=function(t){return ZA(),gr(l(t,12),(Ie(),Nu))},h.Fb=function(t){return this===t},h.Mb=function(t){return ZA(),gr(l(t,12),(Ie(),Nu))},k(_h,"CrossingsCounter/lambda$8$Type",831),_(1928,1,{},DJe),k(_h,"HyperedgeCrossingsCounter",1928),_(470,1,{34:1,470:1},Nit),h.Dd=function(t){return M1n(this,l(t,470))},h.b=0,h.c=0,h.e=0,h.f=0;var rCn=k(_h,"HyperedgeCrossingsCounter/Hyperedge",470);_(371,1,{34:1,371:1},_P),h.Dd=function(t){return DEn(this,l(t,371))},h.b=0,h.c=0;var w4t=k(_h,"HyperedgeCrossingsCounter/HyperedgeCorner",371);_(522,23,{3:1,34:1,23:1,522:1},$le);var ZI,QI,y4t=fn(_h,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,bn,oun,gin),v4t;_(1397,1,Fi,KWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?E4t:null},h.If=function(t,r){u0n(this,l(t,37),r)};var E4t;k(Uo,"InteractiveNodePlacer",1397),_(1398,1,Fi,YWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?S4t:null},h.If=function(t,r){qbn(this,l(t,37),r)};var S4t,OB,LB;k(Uo,"LinearSegmentsNodePlacer",1398),_(264,1,{34:1,264:1},Pce),h.Dd=function(t){return YQt(this,l(t,264))},h.Fb=function(t){var r;return ae(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 T4t=k(Uo,"LinearSegmentsNodePlacer/LinearSegment",264);_(1400,1,Fi,lst),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?A4t:null},h.If=function(t,r){c3n(this,l(t,37),r)},h.b=0,h.g=0;var A4t;k(Uo,"NetworkSimplexPlacer",1400),_(1419,1,Un,RUe),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 Pn(this)},k(Uo,"NetworkSimplexPlacer/0methodref$compare$Type",1419),_(1421,1,Un,OUe),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 Pn(this)},k(Uo,"NetworkSimplexPlacer/1methodref$compare$Type",1421),_(651,1,{651:1},xtt);var iCn=k(Uo,"NetworkSimplexPlacer/EdgeRep",651);_(410,1,{410:1},_he),h.b=!1;var oCn=k(Uo,"NetworkSimplexPlacer/NodeRep",410);_(504,13,{3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1,504:1},jZe),k(Uo,"NetworkSimplexPlacer/Path",504),_(1401,1,{},LUe),h.Kb=function(t){return l(t,17).d.i.k},k(Uo,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),_(1402,1,Mn,IUe),h.Mb=function(t){return l(t,252)==(zt(),gi)},k(Uo,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),_(1403,1,{},DUe),h.Kb=function(t){return l(t,17).d.i},k(Uo,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),_(1404,1,Mn,MJe),h.Mb=function(t){return dit(Pgt(l(t,9)))},k(Uo,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),_(1405,1,Mn,MUe),h.Mb=function(t){return Bon(l(t,12))},k(Uo,"NetworkSimplexPlacer/lambda$0$Type",1405),_(1406,1,nn,ktt),h.Ad=function(t){xtn(this.a,this.b,l(t,12))},k(Uo,"NetworkSimplexPlacer/lambda$1$Type",1406),_(1415,1,nn,PJe),h.Ad=function(t){vvn(this.a,l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$10$Type",1415),_(1416,1,{},PUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$11$Type",1416),_(1417,1,nn,jJe),h.Ad=function(t){rTn(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$12$Type",1417),_(1418,1,{},jUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},k(Uo,"NetworkSimplexPlacer/lambda$13$Type",1418),_(1420,1,{},FUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},k(Uo,"NetworkSimplexPlacer/lambda$15$Type",1420),_(1422,1,Mn,BUe),h.Mb=function(t){return gc(),l(t,410).c.k==(zt(),Xr)},k(Uo,"NetworkSimplexPlacer/lambda$17$Type",1422),_(1423,1,Mn,UUe),h.Mb=function(t){return gc(),l(t,410).c.j.c.length>1},k(Uo,"NetworkSimplexPlacer/lambda$18$Type",1423),_(1424,1,nn,dat),h.Ad=function(t){i1n(this.c,this.b,this.d,this.a,l(t,410))},h.c=0,h.d=0,k(Uo,"NetworkSimplexPlacer/lambda$19$Type",1424),_(1407,1,{},HUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$2$Type",1407),_(1425,1,nn,FJe),h.Ad=function(t){Itn(this.a,l(t,12))},h.a=0,k(Uo,"NetworkSimplexPlacer/lambda$20$Type",1425),_(1426,1,{},zUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$21$Type",1426),_(1427,1,nn,$Je),h.Ad=function(t){jtn(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$22$Type",1427),_(1428,1,Mn,GUe),h.Mb=function(t){return dit(t)},k(Uo,"NetworkSimplexPlacer/lambda$23$Type",1428),_(1429,1,{},qUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$24$Type",1429),_(1430,1,Mn,BJe),h.Mb=function(t){return Gen(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$25$Type",1430),_(1431,1,nn,Ntt),h.Ad=function(t){Syn(this.a,this.b,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$26$Type",1431),_(1432,1,Mn,VUe),h.Mb=function(t){return gc(),!fo(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$27$Type",1432),_(1433,1,Mn,WUe),h.Mb=function(t){return gc(),!fo(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$28$Type",1433),_(1434,1,{},UJe),h.Te=function(t,r){return Ctn(this.a,l(t,26),l(r,26))},k(Uo,"NetworkSimplexPlacer/lambda$29$Type",1434),_(1408,1,{},KUe),h.Kb=function(t){return gc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new L))))},k(Uo,"NetworkSimplexPlacer/lambda$3$Type",1408),_(1409,1,Mn,YUe),h.Mb=function(t){return gc(),Gcn(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$4$Type",1409),_(1410,1,nn,HJe),h.Ad=function(t){h_n(this.a,l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$5$Type",1410),_(1411,1,{},JUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$6$Type",1411),_(1412,1,Mn,XUe),h.Mb=function(t){return gc(),l(t,9).k==(zt(),Xr)},k(Uo,"NetworkSimplexPlacer/lambda$7$Type",1412),_(1413,1,{},ZUe),h.Kb=function(t){return gc(),new Et(null,new Zw(new $t(qt(Df(l(t,9)).a.Jc(),new L))))},k(Uo,"NetworkSimplexPlacer/lambda$8$Type",1413),_(1414,1,Mn,QUe),h.Mb=function(t){return gc(),Fon(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$9$Type",1414),_(1396,1,Fi,FWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?_4t:null},h.If=function(t,r){V_n(l(t,37),r)};var _4t;k(Uo,"SimpleNodePlacer",1396),_(188,1,{188:1},NE),h.Ib=function(){var t;return t="",this.c==(If(),aw)?t+=pT:this.c==kg&&(t+=hT),this.o==(zd(),Em)?t+=RX:this.o==uf?t+="UP":t+="BALANCED",t},k(I1,"BKAlignedLayout",188),_(513,23,{3:1,34:1,23:1,513:1},jle);var kg,aw,x4t=fn(I1,"BKAlignedLayout/HDirection",513,bn,run,bin),k4t;_(512,23,{3:1,34:1,23:1,512:1},Fle);var Em,uf,N4t=fn(I1,"BKAlignedLayout/VDirection",512,bn,nun,min),C4t;_(1681,1,{},Itt),k(I1,"BKAligner",1681),_(1684,1,{},ubt),k(I1,"BKCompactor",1684),_(659,1,{659:1},eHe),h.a=0,k(I1,"BKCompactor/ClassEdge",659),_(459,1,{459:1},IZe),h.a=null,h.b=0,k(I1,"BKCompactor/ClassNode",459),_(1399,1,Fi,Ytt),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?I4t:null},h.If=function(t,r){x3n(this,l(t,37),r)},h.d=!1;var I4t;k(I1,"BKNodePlacer",1399),_(1682,1,{},tHe),h.d=0,k(I1,"NeighborhoodInformation",1682),_(1683,1,Un,zJe),h.Le=function(t,r){return gfn(this,l(t,49),l(r,49))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(I1,"NeighborhoodInformation/NeighborComparator",1683),_(816,1,{}),k(I1,"ThresholdStrategy",816),_(1812,816,{},OZe),h.vg=function(t,r,o){return this.a.o==(zd(),uf)?Kr:Di},h.wg=function(){},k(I1,"ThresholdStrategy/NullThresholdStrategy",1812),_(583,1,{583:1},Dtt),h.c=!1,h.d=!1,k(I1,"ThresholdStrategy/Postprocessable",583),_(1813,816,{},LZe),h.vg=function(t,r,o){var a,c,f;return c=r==o,a=this.a.a[o.p]==r,c||a?(f=t,this.a.c==(If(),aw)?(c&&(f=LJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=LJ(this,o,!1))):(c&&(f=LJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=LJ(this,o,!1))),f):t},h.wg=function(){for(var t,r,o,a,c;this.d.b!=0;)c=l(Yat(this.d),583),a=Jyt(this,c),a.a&&(t=a.a,o=Ye(this.a.f[this.a.g[c.b.p].p]),!(!o&&!fo(t)&&t.c.i.c==t.d.i.c)&&(r=Y0t(this,c),r||Unt(this.e,c)));for(;this.e.a.c.length!=0;)Y0t(this,l(Kge(this.e),583))},k(I1,"ThresholdStrategy/SimpleThresholdStrategy",1813),_(642,1,{642:1,173:1,177:1},nHe),h.bg=function(){return jht(this)},h.og=function(){return jht(this)};var Jte;k(IZ,"EdgeRouterFactory",642),_(1462,1,Fi,JWe),h.pg=function(t){return DSn(l(t,37))},h.If=function(t,r){txn(l(t,37),r)};var R4t,O4t,L4t,D4t,M4t,N_e,P4t,j4t;k(IZ,"OrthogonalEdgeRouter",1462),_(1455,1,Fi,Ktt),h.pg=function(t){return m0n(l(t,37))},h.If=function(t,r){_Nn(this,l(t,37),r)};var F4t,$4t,B4t,U4t,xD,H4t;k(IZ,"PolylineEdgeRouter",1455),_(1456,1,Uf,iHe),h.Lb=function(t){return _ge(l(t,9))},h.Fb=function(t){return this===t},h.Mb=function(t){return _ge(l(t,9))},k(IZ,"PolylineEdgeRouter/1",1456),_(1868,1,Mn,oHe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},k(xd,"HyperEdgeCycleDetector/lambda$0$Type",1868),_(1869,1,{},sHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$1$Type",1869),_(1870,1,Mn,aHe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},k(xd,"HyperEdgeCycleDetector/lambda$2$Type",1870),_(1871,1,{},uHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$3$Type",1871),_(1872,1,{},cHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$4$Type",1872),_(1873,1,{},rHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$5$Type",1873),_(117,1,{34:1,117:1},_6),h.Dd=function(t){return KQt(this,l(t,117))},h.Fb=function(t){var r;return ae(t,117)?(r=l(t,117),this.g==r.g):!1},h.Hb=function(){return this.g},h.Ib=function(){var t,r,o,a;for(t=new fc("{"),a=new V(this.n);a.a"+this.b+" ("+hnn(this.c)+")"},h.d=0,k(xd,"HyperEdgeSegmentDependency",135),_(519,23,{3:1,34:1,23:1,519:1},Ble);var U1,rv,z4t=fn(xd,"HyperEdgeSegmentDependency/DependencyType",519,bn,iun,win),G4t;_(1874,1,{},GJe),k(xd,"HyperEdgeSegmentSplitter",1874),_(1875,1,{},IQe),h.a=0,h.b=0,k(xd,"HyperEdgeSegmentSplitter/AreaRating",1875),_(341,1,{341:1},MV),h.a=0,h.b=0,h.c=0,k(xd,"HyperEdgeSegmentSplitter/FreeArea",341),_(1876,1,Un,lHe),h.Le=function(t,r){return lrn(l(t,117),l(r,117))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(xd,"HyperEdgeSegmentSplitter/lambda$0$Type",1876),_(1877,1,nn,fat),h.Ad=function(t){Lln(this.a,this.d,this.c,this.b,l(t,117))},h.b=0,k(xd,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),_(1878,1,{},dHe),h.Kb=function(t){return new Et(null,new St(l(t,117).e,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),_(1879,1,{},fHe),h.Kb=function(t){return new Et(null,new St(l(t,117).j,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),_(1880,1,{},hHe),h.We=function(t){return ue(le(t))},k(xd,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),_(660,1,{},sW),h.a=0,h.b=0,h.c=0,k(xd,"OrthogonalRoutingGenerator",660),_(1685,1,{},pHe),h.Kb=function(t){return new Et(null,new St(l(t,117).e,16))},k(xd,"OrthogonalRoutingGenerator/lambda$0$Type",1685),_(1686,1,{},gHe),h.Kb=function(t){return new Et(null,new St(l(t,117).j,16))},k(xd,"OrthogonalRoutingGenerator/lambda$1$Type",1686),_(668,1,{}),k(RZ,"BaseRoutingDirectionStrategy",668),_(1866,668,{},DZe),h.xg=function(t,r,o){var a,c,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,c=t,a=new Me(N,f),Gn(p.a,a),D0(this,p,c,a,!1),O=t.r,O&&(M=ue(le(sa(O.e,0))),a=new Me(M,f),Gn(p.a,a),D0(this,p,c,a,!1),f=r+O.o*o,c=O,a=new Me(M,f),Gn(p.a,a),D0(this,p,c,a,!1)),a=new Me(z,f),Gn(p.a,a),D0(this,p,c,a,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return He(),dn},h.Ag=function(){return He(),Wt},k(RZ,"NorthToSouthRoutingStrategy",1866),_(1867,668,{},MZe),h.xg=function(t,r,o){var a,c,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r-t.o*o,v=new V(t.n);v.aHf&&(f=T,c=t,a=new Me(N,f),Gn(p.a,a),D0(this,p,c,a,!1),O=t.r,O&&(M=ue(le(sa(O.e,0))),a=new Me(M,f),Gn(p.a,a),D0(this,p,c,a,!1),f=r-O.o*o,c=O,a=new Me(M,f),Gn(p.a,a),D0(this,p,c,a,!1)),a=new Me(z,f),Gn(p.a,a),D0(this,p,c,a,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return He(),Wt},h.Ag=function(){return He(),dn},k(RZ,"SouthToNorthRoutingStrategy",1867),_(1865,668,{},PZe),h.xg=function(t,r,o){var a,c,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,c=t,a=new Me(f,N),Gn(p.a,a),D0(this,p,c,a,!0),O=t.r,O&&(M=ue(le(sa(O.e,0))),a=new Me(f,M),Gn(p.a,a),D0(this,p,c,a,!0),f=r+O.o*o,c=O,a=new Me(f,M),Gn(p.a,a),D0(this,p,c,a,!0)),a=new Me(f,z),Gn(p.a,a),D0(this,p,c,a,!0)))},h.yg=function(t){return t.i.n.b+t.n.b+t.a.b},h.zg=function(){return He(),Qt},h.Ag=function(){return He(),Kt},k(RZ,"WestToEastRoutingStrategy",1865),_(819,1,{},C0e),h.Ib=function(){return Qd(this.a)},h.b=0,h.c=!1,h.d=!1,h.f=0,k(Ly,"NubSpline",819),_(415,1,{415:1},Owt,Wat),k(Ly,"NubSpline/PolarCP",415),_(1457,1,Fi,Z1t),h.pg=function(t){return rwn(l(t,37))},h.If=function(t,r){qNn(this,l(t,37),r)};var q4t,V4t,W4t,K4t,Y4t;k(Ly,"SplineEdgeRouter",1457),_(275,1,{275:1},XP),h.Ib=function(){return this.a+" ->("+this.c+") "+this.b},h.c=0,k(Ly,"SplineEdgeRouter/Dependency",275),_(457,23,{3:1,34:1,23:1,457:1},Ule);var H1,u2,J4t=fn(Ly,"SplineEdgeRouter/SideToProcess",457,bn,sun,vin),X4t;_(1458,1,Mn,bHe),h.Mb=function(t){return NC(),!l(t,134).o},k(Ly,"SplineEdgeRouter/lambda$0$Type",1458),_(1459,1,{},mHe),h.Xe=function(t){return NC(),l(t,134).v+1},k(Ly,"SplineEdgeRouter/lambda$1$Type",1459),_(1460,1,nn,Rtt),h.Ad=function(t){zon(this.a,this.b,l(t,49))},k(Ly,"SplineEdgeRouter/lambda$2$Type",1460),_(1461,1,nn,Ott),h.Ad=function(t){Gon(this.a,this.b,l(t,49))},k(Ly,"SplineEdgeRouter/lambda$3$Type",1461),_(134,1,{34:1,134:1},Fmt,M0e),h.Dd=function(t){return JQt(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,k(Ly,"SplineSegment",134),_(460,1,{460:1},wHe),h.a=0,h.b=!1,h.c=!1,h.d=!1,h.e=!1,h.f=0,k(Ly,"SplineSegment/EdgeInformation",460),_(1179,1,{},yHe),k(Ap,Ewe,1179),_(1180,1,Un,vHe),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 Pn(this)},k(Ap,G2t,1180),_(1178,1,{},KQe),k(Ap,"MrTree",1178),_(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},p8),h.bg=function(){return u0t(this)},h.og=function(){return u0t(this)};var DB,e4,t4,n4,C_e=fn(Ap,"TreeLayoutPhases",402,bn,hln,Ein),Z4t;_(1093,207,im,Iit),h.kf=function(t,r){var o,a,c,f,p,m,y,v;for(Ye(Ke(ve(t,(js(),exe))))||P3((o=new OA((t1(),new Yp(t))),o)),p=r.dh(DZ),p.Tg("build tGraph",1),m=(y=new i6,qs(y,t),Te(y,(Nr(),i4),t),v=new hn,wAn(t,y,v),MAn(t,y,v),y),p.Ug(),p=r.dh(DZ),p.Tg("Split graph",1),f=AAn(this.a,m),p.Ug(),c=new V(f);c.a"+Fb(this.c):"e_"+Rr(this)},k(eI,"TEdge",65),_(121,151,{3:1,121:1,105:1,151:1},i6),h.Ib=function(){var t,r,o,a,c;for(c=null,a=An(this.b,0);a.b!=a.d.c;)o=l(Sn(a),41),c+=(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),c+=(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t))+` -`;return c};var sCn=k(eI,"TGraph",121);_(640,497,{3:1,497:1,640:1,105:1,151:1}),k(eI,"TShape",640),_(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},$K),h.Ib=function(){return Fb(this)};var MB=k(eI,"TNode",41);_(239,1,Eh,Qh),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},k(eI,"TNode/2",239),_(335,1,Wi,qv),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return oO(this.a)},h.Qb=function(){hK(this.a)},k(eI,"TNode/2/1",335),_(1910,1,kr,kHe),h.If=function(t,r){E3n(this,l(t,121),r)},k(Aa,"CompactionProcessor",1910),_(1911,1,Un,YJe),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 Pn(this)},k(Aa,"CompactionProcessor/lambda$0$Type",1911),_(1912,1,Mn,Mtt),h.Mb=function(t){return Wan(this.b,this.a,l(t,49))},h.a=0,h.b=0,k(Aa,"CompactionProcessor/lambda$1$Type",1912),_(1921,1,Un,NHe),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 Pn(this)},k(Aa,"CompactionProcessor/lambda$10$Type",1921),_(1922,1,Un,CHe),h.Le=function(t,r){return tnn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$11$Type",1922),_(1923,1,Un,IHe),h.Le=function(t,r){return jsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$12$Type",1923),_(1913,1,Mn,JJe),h.Mb=function(t){return Utn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$2$Type",1913),_(1914,1,Mn,XJe),h.Mb=function(t){return Htn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$3$Type",1914),_(1915,1,Mn,RHe),h.Mb=function(t){return l(t,41).c.indexOf(LF)==-1},k(Aa,"CompactionProcessor/lambda$4$Type",1915),_(1916,1,{},ZJe),h.Kb=function(t){return qcn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$5$Type",1916),_(1917,1,{},QJe),h.Kb=function(t){return efn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$6$Type",1917),_(1918,1,Un,eXe),h.Le=function(t,r){return cdn(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$7$Type",1918),_(1919,1,Un,tXe),h.Le=function(t,r){return ldn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$8$Type",1919),_(1920,1,Un,OHe),h.Le=function(t,r){return nnn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$9$Type",1920),_(1908,1,kr,LHe),h.If=function(t,r){pTn(l(t,121),r)},k(Aa,"DirectionProcessor",1908),_(k1,1,kr,kit),h.If=function(t,r){DAn(this,l(t,121),r)},k(Aa,"FanProcessor",k1),_(1263,1,kr,DHe),h.If=function(t,r){Zwt(l(t,121),r)},k(Aa,"GraphBoundsProcessor",1263),_(1264,1,{},MHe),h.We=function(t){return l(t,41).e.a},k(Aa,"GraphBoundsProcessor/lambda$0$Type",1264),_(1265,1,{},PHe),h.We=function(t){return l(t,41).e.b},k(Aa,"GraphBoundsProcessor/lambda$1$Type",1265),_(1266,1,{},jHe),h.We=function(t){return Sen(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$2$Type",1266),_(1267,1,{},FHe),h.We=function(t){return Ten(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$3$Type",1267),_(265,23,{3:1,34:1,23:1,265:1,177:1},r0),h.bg=function(){switch(this.g){case 0:return new QZe;case 1:return new kit;case 2:return new ZZe;case 3:return new zHe;case 4:return new BHe;case 8:return new $He;case 5:return new LHe;case 6:return new qHe;case 7:return new kHe;case 9:return new DHe;case 10:return new VHe;default:throw Y(new jt(FX+(this.f!=null?this.f:""+this.g)))}};var I_e,R_e,O_e,L_e,D_e,M_e,P_e,j_e,F_e,$_e,Xte,aCn=fn(Aa,$X,265,bn,Oht,Sin),Q4t;_(1907,1,kr,$He),h.If=function(t,r){yNn(l(t,121),r)},k(Aa,"LevelCoordinatesProcessor",1907),_(1905,1,kr,BHe),h.If=function(t,r){F2n(this,l(t,121),r)},h.a=0,k(Aa,"LevelHeightProcessor",1905),_(1906,1,Eh,UHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"LevelHeightProcessor/1",1906),_(1901,1,kr,ZZe),h.If=function(t,r){XSn(this,l(t,121),r)},k(Aa,"LevelProcessor",1901),_(1902,1,Mn,HHe),h.Mb=function(t){return Ye(Ke(F(l(t,41),(Nr(),z1))))},k(Aa,"LevelProcessor/lambda$0$Type",1902),_(1903,1,kr,zHe),h.If=function(t,r){zyn(this,l(t,121),r)},h.a=0,k(Aa,"NeighborsProcessor",1903),_(1904,1,Eh,GHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"NeighborsProcessor/1",1904),_(1909,1,kr,qHe),h.If=function(t,r){OAn(this,l(t,121),r)},h.a=0,k(Aa,"NodePositionProcessor",1909),_(1899,1,kr,QZe),h.If=function(t,r){yxn(this,l(t,121),r)},k(Aa,"RootProcessor",1899),_(1924,1,kr,VHe),h.If=function(t,r){kbn(l(t,121),r)},k(Aa,"Untreeifyer",1924),_(386,23,{3:1,34:1,23:1,386:1},Vq);var kD,Zte,B_e,U_e=fn(HL,"EdgeRoutingMode",386,bn,ocn,Tin),eRt,ND,ck,Qte,H_e,z_e,ene,tne,G_e,nne,q_e,rne,r4,ine,PB,jB,sd,Id,lk,i4,o4,Ng,V_e,tRt,one,z1,CD,ID;_(854,1,td,XWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sve),""),HSt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Dt(),!1)),(A1(),Ai)),Yr),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ave),""),"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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uve),""),"Tree Level"),"The index for the tree level the node is in"),Re(0)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cve),""),HSt),"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)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lve),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Y_e),$r),axe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dve),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),W_e),$r),U_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fve),""),"Search Order"),"Which search order to use when computing a spanning tree."),K_e),$r),cxe),ct(xt)))),NEt((new ZWe,t))};var nRt,rRt,iRt,W_e,oRt,sRt,K_e,aRt,uRt,Y_e;k(HL,"MrTreeMetaDataProvider",854),_(999,1,td,ZWe),h.tf=function(t){NEt(t)};var cRt,J_e,X_e,uw,Z_e,Q_e,sne,lRt,dRt,fRt,hRt,pRt,gRt,bRt,exe,txe,nxe,mRt,c2,FB,rxe,wRt,ixe,ane,yRt,vRt,ERt,oxe,SRt,Jf,sxe;k(HL,"MrTreeOptions",999),_(yg,1,{},WHe),h.uf=function(){var t;return t=new Iit,t},h.vf=function(t){},k(HL,"MrTreeOptions/MrtreeFactory",yg),_(354,23,{3:1,34:1,23:1,354:1},g8);var une,$B,cne,lne,axe=fn(HL,"OrderWeighting",354,bn,lln,Ain),TRt;_(430,23,{3:1,34:1,23:1,430:1},Hle);var uxe,dne,cxe=fn(HL,"TreeifyingOrder",430,bn,aun,_in),ARt;_(1463,1,Fi,zWe),h.pg=function(t){return l(t,121),_Rt},h.If=function(t,r){mhn(this,l(t,121),r)};var _Rt;k("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),_(1464,1,Fi,GWe),h.pg=function(t){return l(t,121),xRt},h.If=function(t,r){tTn(this,l(t,121),r)};var xRt;k(xx,"NodeOrderer",1464),_(1471,1,{},lZt),h.rd=function(t){return Rot(t)},k(xx,"NodeOrderer/0methodref$lambda$6$Type",1471),_(1465,1,Mn,eze),h.Mb=function(t){return US(),Ye(Ke(F(l(t,41),(Nr(),z1))))},k(xx,"NodeOrderer/lambda$0$Type",1465),_(1466,1,Mn,tze),h.Mb=function(t){return US(),l(F(l(t,41),(js(),c2)),15).a<0},k(xx,"NodeOrderer/lambda$1$Type",1466),_(1467,1,Mn,rXe),h.Mb=function(t){return Zfn(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$2$Type",1467),_(1468,1,Mn,nXe),h.Mb=function(t){return zcn(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$3$Type",1468),_(1469,1,Un,nze),h.Le=function(t,r){return vfn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(xx,"NodeOrderer/lambda$4$Type",1469),_(1470,1,Mn,rze),h.Mb=function(t){return US(),l(F(l(t,41),(Nr(),tne)),15).a!=0},k(xx,"NodeOrderer/lambda$5$Type",1470),_(1472,1,Fi,tKe),h.pg=function(t){return l(t,121),kRt},h.If=function(t,r){aAn(this,l(t,121),r)},h.b=0;var kRt;k("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),_(1473,1,Fi,nKe),h.pg=function(t){return l(t,121),NRt},h.If=function(t,r){HTn(l(t,121),r)};var NRt,uCn=k(uc,"EdgeRouter",1473);_(1475,1,Un,YHe),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 Pn(this)},k(uc,"EdgeRouter/0methodref$compare$Type",1475),_(1480,1,{},JHe),h.We=function(t){return ue(le(t))},k(uc,"EdgeRouter/1methodref$doubleValue$Type",1480),_(1482,1,Un,XHe),h.Le=function(t,r){return yr(ue(le(t)),ue(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/2methodref$compare$Type",1482),_(1484,1,Un,ZHe),h.Le=function(t,r){return yr(ue(le(t)),ue(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/3methodref$compare$Type",1484),_(1486,1,{},KHe),h.We=function(t){return ue(le(t))},k(uc,"EdgeRouter/4methodref$doubleValue$Type",1486),_(1488,1,Un,QHe),h.Le=function(t,r){return yr(ue(le(t)),ue(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/5methodref$compare$Type",1488),_(1490,1,Un,ize),h.Le=function(t,r){return yr(ue(le(t)),ue(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/6methodref$compare$Type",1490),_(1474,1,{},oze),h.Kb=function(t){return dp(),l(F(l(t,41),(js(),Jf)),15)},k(uc,"EdgeRouter/lambda$0$Type",1474),_(1485,1,{},sze),h.Kb=function(t){return pnn(l(t,41))},k(uc,"EdgeRouter/lambda$11$Type",1485),_(1487,1,{},jtt),h.Kb=function(t){return Uon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$13$Type",1487),_(1489,1,{},Ptt),h.Kb=function(t){return gnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$15$Type",1489),_(1491,1,Un,aze),h.Le=function(t,r){return obn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$17$Type",1491),_(1492,1,Un,uze),h.Le=function(t,r){return sbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$18$Type",1492),_(1493,1,Un,cze),h.Le=function(t,r){return ubn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$19$Type",1493),_(1476,1,Mn,iXe),h.Mb=function(t){return kun(this.a,l(t,41))},h.a=0,k(uc,"EdgeRouter/lambda$2$Type",1476),_(1494,1,Un,lze),h.Le=function(t,r){return abn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$20$Type",1494),_(1477,1,Un,dze),h.Le=function(t,r){return Ron(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$3$Type",1477),_(1478,1,Un,fze),h.Le=function(t,r){return Oon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$4$Type",1478),_(1479,1,{},hze),h.Kb=function(t){return wnn(l(t,41))},k(uc,"EdgeRouter/lambda$5$Type",1479),_(1481,1,{},Ftt),h.Kb=function(t){return Hon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$7$Type",1481),_(1483,1,{},$tt),h.Kb=function(t){return mnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$9$Type",1483),_(669,1,{669:1},U1t),h.e=0,h.f=!1,h.g=!1,k(uc,"MultiLevelEdgeNodeNodeGap",669),_(1881,1,Un,pze),h.Le=function(t,r){return Fun(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),_(1882,1,Un,gze),h.Le=function(t,r){return $un(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var l2;_(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},zle),h.bg=function(){return Cgt(this)},h.og=function(){return Cgt(this)};var BB,d2,lxe=fn(pve,"RadialLayoutPhases",490,bn,uun,xin),CRt;_(1094,207,im,YQe),h.kf=function(t,r){var o,a,c,f,p,m;if(o=Nwt(this,t),r.Tg("Radial layout",o.c.length),Ye(Ke(ve(t,(T1(),Exe))))||P3((a=new OA((t1(),new Yp(t))),a)),m=swn(t),Vn(t,(aE(),l2),m),!m)throw Y(new jt(GSt));for(c=ue(le(ve(t,zB))),c==0&&(c=e0t(t)),Vn(t,zB,c),p=new V(Nwt(this,t));p.a=3)for(ye=l(oe(de,0),19),qe=l(oe(de,1),19),f=0;f+2=ye.f+qe.f+T||qe.f>=Ee.f+ye.f+T){lt=!0;break}else++f;else lt=!0;if(!lt){for(O=de.i,m=new tn(de);m.e!=m.i.gc();)p=l(rn(m),19),Vn(p,(_n(),HD),Re(O)),--O;svt(t,new sS),r.Ug();return}for(o=(M3(this.a),pc(this.a,(Zj(),s4),l(ve(t,Zxe),173)),pc(this.a,GB,l(ve(t,Vxe),173)),pc(this.a,Tne,l(ve(t,Yxe),173)),sde(this.a,(It=new ui,$n(It,s4,(S7(),xne)),$n(It,GB,_ne),Ye(Ke(ve(t,Gxe)))&&$n(It,s4,kne),Ye(Ke(ve(t,zxe)))&&$n(It,s4,Ane),It)),FC(this.a,t)),v=1/o.c.length,U=new V(o);U.a1)throw Y(new _f("The given graph is not an acyclic tree!"));va(c,0),gu(c,0)}for(Fvt(this,O,0),p=0,y=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));y.e!=y.i.gc();)m=l(rn(y),19),Vn(m,PD,Re(p)),p+=1;for(N=new V(o);N.a0&&Vpt((Yt(r-1,t.length),t.charCodeAt(r-1)),nSt);)--r;if(a>=r)throw Y(new jt("The given string does not contain any numbers."));if(c=ky((io(a,r,t.length),t.substr(a,r-a)),`,|;|\r| -`),c.length!=2)throw Y(new jt("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=vy(Ey(c[0])),this.b=vy(Ey(c[1]))}catch(f){throw f=ci(f),ae(f,133)?(o=f,Y(new jt(rSt+o))):Y(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=k(PL,"KVector",8);_(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Du,B9,Jrt),h.Nc=function(){return Lpn(this)},h.ag=function(t){var r,o,a,c,f,p;a=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),tc(this);try{for(o=0,f=0,c=0,p=0;o0&&(f%2==0?c=vy(a[o]):p=vy(a[o]),f>0&&f%2!=0&&Gn(this,new Me(c,p)),++f),++o}catch(m){throw m=ci(m),ae(m,133)?(r=m,Y(new jt("The given string does not match the expected format for vectors."+r))):Y(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 Hke=k(PL,"KVectorChain",79);_(259,23,{3:1,34:1,23:1,259:1},s3);var are,eU,tU,jD,FD,nU,zke=fn(Fa,"Alignment",259,bn,Pdn,ton),N6t;_(984,1,td,cKe),h.tf=function(t){Hyt(t)};var Gke,ure,C6t,qke,Vke,I6t,Wke,R6t,O6t,Kke,Yke,L6t;k(Fa,"BoxLayouterOptions",984),_(985,1,{},RGe),h.uf=function(){var t;return t=new DGe,t},h.vf=function(t){},k(Fa,"BoxLayouterOptions/BoxFactory",985),_(300,23,{3:1,34:1,23:1,300:1},a3);var g4,cre,b4,m4,w4,lre,dre=fn(Fa,"ContentAlignment",300,bn,Mdn,non),D6t;_(696,1,td,que),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,pTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),HT)),Je),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,gTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),dCn),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Jke),$r),zke),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,rEe),""),"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),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CF),""),"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."),Zke),UT),dre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UL),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Dt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,AZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Qke),$r),E4),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,BL),""),"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."),nNe),$r),Are),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tEe),""),"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(gt(Qe(nt(et(tt(new Xe,NF),""),"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`."),iNe),$r),WNe),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,B0),""),"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."),gNe),lf),K2e),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wx),""),"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(gt(Qe(nt(et(tt(new Xe,RF),""),"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(gt(Qe(nt(et(tt(new Xe,yx),""),"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(gt(Qe(nt(et(tt(new Xe,lF),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),vNe),$r),JNe),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,IF),""),"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),xr(ri,Z(X(cf,1),Ce,161,0,[Cg,Np]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,CL),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,cF),""),"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)."),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,WC),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Wye),""),"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."),aNe),lf),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xye),""),"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(gt(Qe(nt(et(tt(new Xe,Zye),""),"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,F3n),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),lf),mCn),xr(xt,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bTt),""),"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),eo),fi),ct(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kZ),""),"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."),uNe),lf),W2e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Dye),""),"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),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mTt),""),"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),eo),fi),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,wTt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,yTt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RL),""),cTt),"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,RL,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vTt),""),"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(gt(Qe(nt(et(tt(new Xe,ETt),""),"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)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,STt),""),"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(gt(Qe(nt(et(tt(new Xe,TTt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Re(4e3)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ATt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Re(400)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_Tt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xTt),""),"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(gt(Qe(nt(et(tt(new Xe,kTt),""),"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(gt(Qe(nt(et(tt(new Xe,NTt),""),"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(gt(Qe(nt(et(tt(new Xe,nEe),"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."),Xke),$r),c3e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CTt),"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."),sNe),$r),QNe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ITt),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),oNe),$r),DNe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Tye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Aye),of),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_ye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,MX),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TZ),of),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xye),of),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Nye),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),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$0),of),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iye),of),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rye),of),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Oye),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),ILt),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eve),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."),INe),lf),W2e),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,xZ),LTt),"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)."),yo),Ti),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,xZ,_Z,V6t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_Z),LTt),"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."),bNe),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$ye),DTt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),lNe),lf),K2e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ex),DTt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),dNe),UT),zo),xr(ri,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Hye),$F),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),wNe),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,zye),$F),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Gye),$F),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,qye),$F),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Vye),$F),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ME),eQ),"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."),fNe),UT),N4),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bT),eQ),"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."),pNe),UT),e3e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mT),eQ),"Node Size Minimum"),"The minimal size to which a node can be reduced."),hNe),lf),$i),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vx),eQ),"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(gt(Qe(nt(et(tt(new Xe,Yye),SZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),eNe),$r),MNe),ct(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,IL),SZ),"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(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,$3n),"font"),"Font Name"),"Font name used for a label."),HT),Je),ct(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,RTt),"font"),"Font Size"),"Font size used for a label."),yo),Ti),ct(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Qye),tQ),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),lf),$i),ct(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Jye),tQ),"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."),yo),Ti),ct(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mye),tQ),"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."),TNe),$r),Ro),ct(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Lye),tQ),"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."),eo),fi),ct(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sx),sEe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),ENe),UT),lU),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bye),sEe),"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(gt(Qe(nt(et(tt(new Xe,Uye),sEe),"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(gt(Qe(nt(et(tt(new Xe,ZZ),Rx),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Re(3)),yo),Ti),ct(xt)))),zr(t,ZZ,QZ,iLt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iEe),Rx),"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)),yo),Ti),ct(xt)))),zr(t,iEe,ZZ,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OL),Rx),"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),eo),fi),ct(xt)))),zr(t,OL,U0,tLt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,QZ),Rx),"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),fCn),ct(ri)))),zr(t,QZ,U0,nLt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LL),Rx),"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),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,LL,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DL),Rx),"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),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,DL,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,U0),Rx),"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),n3e),ct(ri)))),zr(t,U0,vx,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oEe),Rx),"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),eo),fi),ct(xt)))),zr(t,oEe,U0,eLt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jye),MTt),"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(gt(Qe(nt(et(tt(new Xe,Fye),MTt),"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(gt(Qe(nt(et(tt(new Xe,Kye),"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),eo),fi),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OTt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),rNe),$r),UNe),ct(Rd)))),XN(t,new DS(qN(FA(jA(new eS,Bt),"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.'))),XN(t,new DS(qN(FA(jA(new eS,"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.`))),XN(t,new DS(qN(FA(jA(new eS,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."))),XN(t,new DS(qN(FA(jA(new eS,"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."))),XN(t,new DS(qN(FA(jA(new eS,hve),"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."))),XN(t,new DS(qN(FA(jA(new eS,"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."))),XN(t,new DS(qN(FA(jA(new eS,Qc),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),xyt((new lKe,t)),Hyt((new cKe,t)),Xwt((new dKe,t))};var zT,M6t,Jke,gk,P6t,j6t,Xke,sv,av,F6t,$D,Zke,BD,Tm,Qke,rU,fre,eNe,tNe,nNe,$6t,rNe,B6t,h2,iNe,U6t,UD,hre,y4,pre,H6t,oNe,z6t,sNe,p2,aNe,Cp,uNe,cNe,lNe,g2,dNe,Am,fNe,uv,b2,hNe,G1,pNe,iU,v4,df,gNe,G6t,bNe,q6t,V6t,mNe,wNe,gre,bre,mre,wre,yNe,zu,bk,vNe,yre,vre,cv,ENe,SNe,m2,TNe,GT,HD,Ere,lv,W6t,Sre,K6t,Y6t,J6t,X6t,ANe,_Ne,qT,xNe,oU,kNe,NNe,Od,Z6t,CNe,INe,RNe,mk,dv,wk,VT,Q6t,eLt,sU,tLt,aU,nLt,rLt,iLt,oLt;k(Fa,"CoreOptions",696),_(87,23,{3:1,34:1,23:1,87:1},TO);var ff,as,fs,hf,il,E4=fn(Fa,"Direction",87,bn,qln,ron),sLt;_(280,23,{3:1,34:1,23:1,280:1},y8);var uU,zD,ONe,LNe,DNe=fn(Fa,"EdgeCoords",280,bn,gln,ion),aLt;_(281,23,{3:1,34:1,23:1,281:1},eV);var yk,fv,vk,MNe=fn(Fa,"EdgeLabelPlacement",281,bn,gcn,oon),uLt;_(225,23,{3:1,34:1,23:1,225:1},v8);var Ek,GD,WT,Tre,Are=fn(Fa,"EdgeRouting",225,bn,bln,son),cLt;_(328,23,{3:1,34:1,23:1,328:1},u3);var PNe,jNe,FNe,$Ne,_re,BNe,UNe=fn(Fa,"EdgeType",328,bn,Ddn,aon),lLt;_(982,1,td,lKe),h.tf=function(t){xyt(t)};var HNe,zNe,GNe,qNe,dLt,VNe,S4;k(Fa,"FixedLayouterOptions",982),_(983,1,{},OGe),h.uf=function(){var t;return t=new UGe,t},h.vf=function(t){},k(Fa,"FixedLayouterOptions/FixedFactory",983),_(348,23,{3:1,34:1,23:1,348:1},tV);var Ig,cU,T4,WNe=fn(Fa,"HierarchyHandling",348,bn,mcn,uon),fLt,fCn=Hr(Fa,"ITopdownSizeApproximator");_(293,23,{3:1,34:1,23:1,293:1},E8);var Ih,q1,qD,VD,hLt=fn(Fa,"LabelSide",293,bn,mln,con),pLt;_(96,23,{3:1,34:1,23:1,96:1},Jv);var Ip,ad,Cl,ud,kc,cd,Il,Rh,ld,zo=fn(Fa,"NodeLabelPlacement",96,bn,$fn,lon),gLt;_(260,23,{3:1,34:1,23:1,260:1},AO);var KNe,A4,V1,YNe,WD,_4=fn(Fa,"PortAlignment",260,bn,sdn,don),bLt;_(103,23,{3:1,34:1,23:1,103:1},c3);var _m,fa,Oh,Sk,pf,W1,JNe=fn(Fa,"PortConstraints",103,bn,jdn,fon),mLt;_(282,23,{3:1,34:1,23:1,282:1},l3);var x4,k4,Rp,KD,K1,KT,lU=fn(Fa,"PortLabelPlacement",282,bn,Fdn,hon),wLt;_(64,23,{3:1,34:1,23:1,64:1},_O);var Qt,Wt,ol,sl,iu,Wa,gf,dd,Iu,vu,ka,Ru,ou,su,fd,Nc,Cc,Rl,dn,Is,Kt,Ro=fn(Fa,"PortSide",64,bn,Vln,gon),yLt;_(986,1,td,dKe),h.tf=function(t){Xwt(t)};var vLt,ELt,XNe,SLt,TLt;k(Fa,"RandomLayouterOptions",986),_(987,1,{},LGe),h.uf=function(){var t;return t=new qGe,t},h.vf=function(t){},k(Fa,"RandomLayouterOptions/RandomFactory",987),_(301,23,{3:1,34:1,23:1,301:1},nV);var YD,xre,ZNe,QNe=fn(Fa,"ShapeCoords",301,bn,pcn,pon),ALt;_(381,23,{3:1,34:1,23:1,381:1},S8);var hv,JD,XD,xm,N4=fn(Fa,"SizeConstraint",381,bn,wln,bon),_Lt;_(267,23,{3:1,34:1,23:1,267:1},Xv);var ZD,dU,Tk,kre,QD,C4,fU,hU,pU,e3e=fn(Fa,"SizeOptions",267,bn,Vfn,mon),xLt;_(283,23,{3:1,34:1,23:1,283:1},rV);var pv,t3e,gU,n3e=fn(Fa,"TopdownNodeTypes",283,bn,bcn,won),kLt;_(290,23,UF);var r3e,Nre,i3e,o3e,e5=fn(Fa,"TopdownSizeApproximator",290,bn,yln,yon);_(978,290,UF,Mot),h.Sg=function(t){return I1t(t)},fn(Fa,"TopdownSizeApproximator/1",978,e5,null,null),_(979,290,UF,yst),h.Sg=function(t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft,It;for(r=l(ve(t,(_n(),lv)),144),qe=(e1(),M=new $N,M),nL(qe,t),lt=new hn,f=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));f.e!=f.i.gc();)a=l(rn(f),19),se=(O=new $N,O),M7(se,qe),nL(se,a),It=I1t(a),i0(se,b.Math.max(a.g,It.a),b.Math.max(a.f,It.b)),eu(lt.f,a,se);for(c=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));c.e!=c.i.gc();)for(a=l(rn(c),19),T=new tn((!a.e&&(a.e=new Tt(Ir,a,7,4)),a.e));T.e!=T.i.gc();)v=l(rn(T),74),Ee=l(Ss(ts(lt.f,a)),19),ye=l(Ht(lt,oe((!v.c&&(v.c=new Tt(pn,v,5,8)),v.c),0)),19),de=(N=new LG,N),Tn((!de.b&&(de.b=new Tt(pn,de,4,7)),de.b),Ee),Tn((!de.c&&(de.c=new Tt(pn,de,5,8)),de.c),ye),D7(de,Br(Ee)),nL(de,v);z=l(JO(r.f),207);try{z.kf(qe,new OG),whe(r.f,z)}catch(Lt){throw Lt=ci(Lt),ae(Lt,102)?(U=Lt,Y(U)):Y(Lt)}return Gc(qe,av)||Gc(qe,sv)||qJ(qe),y=ue(le(ve(qe,av))),m=ue(le(ve(qe,sv))),p=y/m,o=ue(le(ve(qe,dv)))*b.Math.sqrt((!qe.a&&(qe.a=new ke(En,qe,10,11)),qe.a).i),ft=l(ve(qe,df),100),re=ft.b+ft.c+1,J=ft.d+ft.a+1,new Me(b.Math.max(re,o),b.Math.max(J,o/p))},fn(Fa,"TopdownSizeApproximator/2",979,e5,null,null),_(980,290,UF,Vat),h.Sg=function(t){var r,o,a,c,f,p;return o=ue(le(ve(t,(_n(),dv)))),r=o/ue(le(ve(t,mk))),a=t_n(t),f=l(ve(t,df),100),c=ue(le(Ge(Od))),Br(t)&&(c=ue(le(ve(Br(t),Od)))),p=tp(new Me(o,r),a),br(p,new Me(-(f.b+f.c)-c,-(f.d+f.a)-c))},fn(Fa,"TopdownSizeApproximator/3",980,e5,null,null),_(981,290,UF,vst),h.Sg=function(t){var r,o,a,c,f,p,m,y,v,T;for(p=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));p.e!=p.i.gc();)f=l(rn(p),19),ve(f,(_n(),aU))!=null&&(!f.a&&(f.a=new ke(En,f,10,11)),!!f.a)&&(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i>0?(o=l(ve(f,aU),525),T=o.Sg(f),v=l(ve(f,df),100),i0(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 ke(En,f,10,11)),f.a).i!=0&&i0(f,ue(le(ve(f,dv))),ue(le(ve(f,dv)))/ue(le(ve(f,mk))));r=l(ve(t,(_n(),lv)),144),y=l(JO(r.f),207);try{y.kf(t,new OG),whe(r.f,y)}catch(N){throw N=ci(N),ae(N,102)?(m=N,Y(m)):Y(N)}return Vn(t,zT,Ox),Bct(t),qJ(t),c=ue(le(ve(t,av))),a=ue(le(ve(t,sv))),new Me(c,a)},fn(Fa,"TopdownSizeApproximator/4",981,e5,null,null);var NLt;_(346,1,{861:1},sS),h.Tg=function(t,r){return Gbt(this,t,r)},h.Ug=function(){wmt(this)},h.Vg=function(){return this.q},h.Wg=function(){return this.f?CP(this.f):null},h.Xg=function(){return CP(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,Fe(this.f,r))},h.bh=function(t,r){var o,a;this.n&&t&&Mcn(this,(o=new Fst,a=AJ(o,t),zkn(o),a),(Pj(),Ire))},h.dh=function(t){var r;return this.b?null:(r=Tfn(this,this.g),Gn(this.a,r),r.i=this,this.d=t,r)},h.eh=function(t){t>0&&!this.b&&pge(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,k(Vs,"BasicProgressMonitor",346),_(713,207,im,DGe),h.kf=function(t,r){svt(t,r)},k(Vs,"BoxLayoutProvider",713),_(974,1,Un,bXe),h.Le=function(t,r){return B2n(this,l(t,19),l(r,19))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},h.a=!1,k(Vs,"BoxLayoutProvider/1",974),_(168,1,{168:1},hj,Xrt),h.Ib=function(){return this.c?a0e(this.c):Qd(this.b)},k(Vs,"BoxLayoutProvider/Group",168),_(327,23,{3:1,34:1,23:1,327:1},T8);var s3e,a3e,u3e,Cre,c3e=fn(Vs,"BoxLayoutProvider/PackingMode",327,bn,vln,von),CLt;_(975,1,Un,MGe),h.Le=function(t,r){return Ban(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$0$Type",975),_(976,1,Un,PGe),h.Le=function(t,r){return Can(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$1$Type",976),_(977,1,Un,jGe),h.Le=function(t,r){return Ian(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$2$Type",977),_(1350,1,{837:1},FGe),h.Lg=function(t,r){return W9(),!ae(r,176)||eet((qS(),l(t,176)),r)},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),_(1351,1,nn,mXe),h.Ad=function(t){Dpn(this.a,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),_(1352,1,nn,$Ge),h.Ad=function(t){l(t,105),W9()},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),_(1356,1,nn,wXe),h.Ad=function(t){shn(this.a,l(t,105))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),_(1354,1,Mn,Htt),h.Mb=function(t){return wpn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),_(1353,1,Mn,ztt),h.Mb=function(t){return bnn(this.a,this.b,l(t,837))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),_(1355,1,nn,Gtt),h.Ad=function(t){Tsn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),_(939,1,{},BGe),h.Kb=function(t){return znt(t)},h.Fb=function(t){return this===t},k(Vs,"ElkUtil/lambda$0$Type",939),_(940,1,nn,qtt),h.Ad=function(t){Uvn(this.a,this.b,l(t,74))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$1$Type",940),_(941,1,nn,Vtt),h.Ad=function(t){yQt(this.a,this.b,l(t,171))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$2$Type",941),_(942,1,nn,Wtt),h.Ad=function(t){ftn(this.a,this.b,l(t,158))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$3$Type",942),_(943,1,nn,yXe),h.Ad=function(t){qon(this.a,l(t,373))},k(Vs,"ElkUtil/lambda$4$Type",943),_(332,1,{34:1,332:1},KZt),h.Dd=function(t){return Ftn(this,l(t,245))},h.Fb=function(t){var r;return ae(t,332)?(r=l(t,332),this.a==r.a):!1},h.Hb=function(){return go(this.a)},h.Ib=function(){return this.a+" (exclusive)"},h.a=0,k(Vs,"ExclusiveBounds/ExclusiveLowerBound",332),_(1100,207,im,UGe),h.kf=function(t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee,ye,qe,lt,ft;for(r.Tg("Fixed Layout",1),f=l(ve(t,(_n(),tNe)),225),N=0,O=0,se=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));se.e!=se.i.gc();){for(J=l(rn(se),19),ft=l(ve(J,(jj(),S4)),8),ft&&(Bc(J,ft.a,ft.b),l(ve(J,zNe),185).Gc((sc(),hv))&&(M=l(ve(J,qNe),8),M.a>0&&M.b>0&&M0(J,M.a,M.b,!0,!0))),N=b.Math.max(N,J.i+J.g),O=b.Math.max(O,J.j+J.f),v=new tn((!J.n&&(J.n=new ke(Rs,J,1,7)),J.n));v.e!=v.i.gc();)m=l(rn(v),158),ft=l(ve(m,S4),8),ft&&Bc(m,ft.a,ft.b),N=b.Math.max(N,J.i+m.i+m.g),O=b.Math.max(O,J.j+m.j+m.f);for(ye=new tn((!J.c&&(J.c=new ke(Gu,J,9,9)),J.c));ye.e!=ye.i.gc();)for(Ee=l(rn(ye),127),ft=l(ve(Ee,S4),8),ft&&Bc(Ee,ft.a,ft.b),qe=J.i+Ee.i,lt=J.j+Ee.j,N=b.Math.max(N,qe+Ee.g),O=b.Math.max(O,lt+Ee.f),y=new tn((!Ee.n&&(Ee.n=new ke(Rs,Ee,1,7)),Ee.n));y.e!=y.i.gc();)m=l(rn(y),158),ft=l(ve(m,S4),8),ft&&Bc(m,ft.a,ft.b),N=b.Math.max(N,qe+m.i+m.g),O=b.Math.max(O,lt+m.j+m.f);for(c=new $t(qt(mp(J).a.Jc(),new L));an(c);)o=l(en(c),74),T=SEt(o),N=b.Math.max(N,T.a),O=b.Math.max(O,T.b);for(a=new $t(qt(R7(J).a.Jc(),new L));an(a);)o=l(en(a),74),Br(XY(o))!=t&&(T=SEt(o),N=b.Math.max(N,T.a),O=b.Math.max(O,T.b))}if(f==(gp(),Ek))for(re=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));re.e!=re.i.gc();)for(J=l(rn(re),19),a=new $t(qt(mp(J).a.Jc(),new L));an(a);)o=l(en(a),74),p=BAn(o),p.b==0?Vn(o,p2,null):Vn(o,p2,p);Ye(Ke(ve(t,(jj(),GNe))))||(de=l(ve(t,dLt),100),z=N+de.b+de.c,U=O+de.d+de.a,M0(t,z,U,!0,!0)),r.Ug()},k(Vs,"FixedLayoutProvider",1100),_(380,151,{3:1,419:1,380:1,105:1,151:1},RG,Wdt),h.ag=function(t){var r,o,a,c,f,p,m,y,v;if(t)try{for(y=ky(t,";,;"),f=y,p=0,m=f.length;p>16&Ei|r^a<<16},h.Jc=function(){return new vXe(this)},h.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+ms(this.b)+")":this.b==null?"pair("+ms(this.a)+",null)":"pair("+ms(this.a)+","+ms(this.b)+")"},k(Vs,"Pair",49),_(988,1,Wi,vXe),h.Nb=function(t){so(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 Y(new vs)},h.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Y(new lu)},h.b=!1,h.c=!1,k(Vs,"Pair/1",988),_(1089,207,im,qGe),h.kf=function(t,r){var o,a,c,f,p;if(r.Tg("Random Layout",1),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i==0){r.Ug();return}f=l(ve(t,(L1e(),SLt)),15),f&&f.a!=0?c=new WP(f.a):c=new iY,o=rO(le(ve(t,vLt))),p=rO(le(ve(t,TLt))),a=l(ve(t,ELt),100),lNn(t,c,o,p,a),r.Ug()},k(Vs,"RandomLayoutProvider",1089),_(243,1,{243:1},PV),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 Fj(Z(X(Ri,1),Rt,1,5,[this.a,this.b,this.c]))},h.Ib=function(){return"("+this.a+ja+this.b+ja+this.c+")"},k(Vs,"Triple",243);var LLt;_(554,1,{}),h.Jf=function(){return new Me(this.f.i,this.f.j)},h.mf=function(t){return zat(t,(_n(),zu))?ve(this.f,DLt):ve(this.f,t)},h.Kf=function(){return new Me(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){va(this.f,t.a),gu(this.f,t.b)},h.Nf=function(t){Hb(this.f,t.a),Ub(this.f,t.b)},h.Of=function(t){this.g=t},h.g=0;var DLt;k(rI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),_(556,1,{845:1},x9),h.Pf=function(){var t,r;if(!this.b)for(this.b=$P(hW(this.a).i),r=new tn(hW(this.a));r.e!=r.i.gc();)t=l(rn(r),158),Fe(this.b,new cq(t));return this.b},h.b=null,k(rI,"ElkGraphAdapters/ElkEdgeAdapter",556),_(250,554,{},Yp),h.Qf=function(){return J1t(this)},h.a=null,k(rI,"ElkGraphAdapters/ElkGraphAdapter",250),_(637,554,{190:1},cq),k(rI,"ElkGraphAdapters/ElkLabelAdapter",637),_(555,554,{692:1},B8),h.Pf=function(){return umn(this)},h.Tf=function(){var t;return t=l(ve(this.f,(_n(),Cp)),125),!t&&(t=new FN),t},h.Vf=function(){return cmn(this)},h.Xf=function(t){var r;r=new DV(t),Vn(this.f,(_n(),Cp),r)},h.Yf=function(t){Vn(this.f,(_n(),df),new mfe(t))},h.Rf=function(){return this.d},h.Sf=function(){var t,r;if(!this.a)for(this.a=new je,r=new $t(qt(R7(l(this.f,19)).a.Jc(),new L));an(r);)t=l(en(r),74),Fe(this.a,new x9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=new je,r=new $t(qt(mp(l(this.f,19)).a.Jc(),new L));an(r);)t=l(en(r),74),Fe(this.c,new x9(t));return this.c},h.Wf=function(){return kP(l(this.f,19)).i!=0||Ye(Ke(l(this.f,19).mf((_n(),UD))))},h.Zf=function(){rfn(this,(t1(),LLt))},h.a=null,h.b=null,h.c=null,h.d=null,h.e=null,k(rI,"ElkGraphAdapters/ElkNodeAdapter",555),_(1261,554,{844:1},EXe),h.Pf=function(){return bmn(this)},h.Sf=function(){var t,r;if(!this.a)for(this.a=ch(l(this.f,127).gh().i),r=new tn(l(this.f,127).gh());r.e!=r.i.gc();)t=l(rn(r),74),Fe(this.a,new x9(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 tn(l(this.f,127).hh());r.e!=r.i.gc();)t=l(rn(r),74),Fe(this.c,new x9(t));return this.c},h.$f=function(){return l(l(this.f,127).mf((_n(),m2)),64)},h._f=function(){var t,r,o,a,c,f,p,m;for(a=Gd(l(this.f,127)),o=new tn(l(this.f,127).hh());o.e!=o.i.gc();)for(t=l(rn(o),74),m=new tn((!t.c&&(t.c=new Tt(pn,t,5,8)),t.c));m.e!=m.i.gc();){if(p=l(rn(m),83),uy(Yo(p),a))return!0;if(Yo(p)==a&&Ye(Ke(ve(t,(_n(),hre)))))return!0}for(r=new tn(l(this.f,127).gh());r.e!=r.i.gc();)for(t=l(rn(r),74),f=new tn((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b));f.e!=f.i.gc();)if(c=l(rn(f),83),uy(Yo(c),a))return!0;return!1},h.a=null,h.b=null,h.c=null,k(rI,"ElkGraphAdapters/ElkPortAdapter",1261),_(1262,1,Un,VGe),h.Le=function(t,r){return OTn(l(t,127),l(r,127))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(rI,"ElkGraphAdapters/PortComparator",1262);var Y1=Hr(el,"EObject"),Ak=Hr($E,FTt),Ic=Hr($E,$Tt),t5=Hr($E,BTt),n5=Hr($E,"ElkShape"),pn=Hr($E,UTt),Ir=Hr($E,uEe),jr=Hr($E,HTt),r5=Hr(el,zTt),I4=Hr(el,"EFactory"),MLt,Rre=Hr(el,GTt),Ld=Hr(el,"EPackage"),Bi,PLt,jLt,h3e,bU,FLt,p3e,g3e,b3e,Lh,$Lt,BLt,Rs=Hr($E,cEe),En=Hr($E,lEe),Gu=Hr($E,dEe);_(94,1,qTt),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)},k(vT,"BasicNotifierImpl",94),_(101,94,YTt),h.Vh=function(){return Ju(this)},h.vh=function(t,r){return t},h.wh=function(){throw Y(new Nn)},h.xh=function(t){var r;return r=Po(l(Nt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,r.n,r.f,t)},h.yh=function(t,r){throw Y(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 cJ(this)},h.Ch=function(){throw Y(new Nn)},h.Dh=function(){var t,r;return r=this.Xh().Mk(),!r&&this.wh().Rk(r=(QN(),t=Lhe(Ff(this.Ah())),t==null?$re:new RO(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 s7(this,t,r,o)},h.Jh=function(t){return p_(this,t)},h.Kh=function(t,r){return WW(this,t,r)},h.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},h.Mh=function(){throw Y(new Nn)},h.Nh=function(){return t7(this)},h.Oh=function(t,r,o,a){return XS(this,t,r,a)},h.Ph=function(t,r,o){var a;return a=l(Nt(this.Ah(),r),69),a.uk().xk(this,this.ei(),r-this.gi(),t,o)},h.Qh=function(t,r,o,a){return OP(this,t,r,a)},h.Rh=function(t,r,o){var a;return a=l(Nt(this.Ah(),r),69),a.uk().yk(this,this.ei(),r-this.gi(),t,o)},h.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},h.Th=function(t){return yY(this,t)},h.Uh=function(t){return out(this,t)},h.Wh=function(t){return iEt(this,t)},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return this.wh()?this.wh().Nk():null},h.Zh=function(){return t7(this)},h.$h=function(t,r){iJ(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,a,c,f;return f=this.Gh(),f&&t&&(r=_o(f.Cl(),this,r),f.Gl(this)),a=this.Mh(),a&&(EJ(this,this.Mh(),this.Ch()).Bb&Co?(c=a.Nh(),c&&(t?!f&&c.Gl(this):c.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,a,c,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(),ao),o,t),p){if(Mo(),l(p,69).vk()||(p=MS(rs(ao,p))),c=(a=this.Fh(p),l(a>=0?this.Ih(a,!0,!0):O0(this,p,!0),164)),y=p.Gk(),y>1||y==-1)return l(l(c,222).Ql(t,!1),78)}else throw Y(new jt(R1+t.ve()+nQ));else if(t.Hk())return a=this.Fh(t),l(a>=0?this.Ih(a,!1,!0):O0(this,t,!1),78);return m=new gnt(this,t),m},h.ei=function(){return Upe(this)},h.fi=function(){return(a1(),Ut).S},h.gi=function(){return ln(this.fi())},h.hi=function(t){tJ(this,t)},h.Ib=function(){return Zl(this)},k(Gt,"BasicEObjectImpl",101);var ULt;_(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=Bpe(this),r[t]},h.ji=function(t,r){var o;o=Bpe(this),ii(o,t,r)},h.ki=function(t){var r;r=Bpe(this),ii(r,t,null)},h.qh=function(){return l(Vt(this,4),131)},h.rh=function(){throw Y(new Nn)},h.sh=function(){return(this.Db&4)!=0},h.wh=function(){throw Y(new Nn)},h.li=function(t){KS(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 QN(),r=Lhe(Ff((t=l(Vt(this,16),29),t||this.fi()))),r==null?$re:new RO(this,r)},h.th=function(){return(this.Db&1)==0},h.Gh=function(){return l(Vt(this,128),2013)},h.Hh=function(){return l(Vt(this,16),29)},h.Lh=function(){return(this.Db&32)!=0},h.Mh=function(){return l(Vt(this,2),52)},h.Sh=function(){return(this.Db&64)!=0},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return l(Vt(this,64),291)},h._h=function(t){KS(this,16,t)},h.ai=function(t){KS(this,128,t)},h.bi=function(t){KS(this,64,t)},h.ei=function(){return Ha(this)},h.Db=0,k(Gt,"MinimalEObjectImpl",118),_(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},k(Gt,"MinimalEObjectImpl/Container",119),_(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 nbe(this,t,r,o)},h.Rh=function(t,r,o){return qbe(this,t,r,o)},h.Th=function(t){return Whe(this,t)},h.$h=function(t,r){Uge(this,t,r)},h.fi=function(){return Qs(),BLt},h.hi=function(t){Ige(this,t)},h.lf=function(){return b1t(this)},h.fh=function(){return!this.o&&(this.o=new pu((Qs(),Lh),Rg,this,0)),this.o},h.mf=function(t){return ve(this,t)},h.nf=function(t){return Gc(this,t)},h.of=function(t,r){return Vn(this,t,r)},k(am,"EMapPropertyHolderImpl",2062),_(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},b9),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return s7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return yY(this,t)},h.$h=function(t,r){switch(t){case 0:gj(this,ue(le(r)));return;case 1:pj(this,ue(le(r)));return}iJ(this,t,r)},h.fi=function(){return Qs(),PLt},h.hi=function(t){switch(t){case 0:gj(this,0);return;case 1:pj(this,0);return}tJ(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,k(am,"ElkBendPointImpl",566),_(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 a1e(this,t,r,o)},h.Ph=function(t,r,o){return WY(this,t,r,o)},h.Rh=function(t,r,o){return IK(this,t,r,o)},h.Th=function(t){return Tge(this,t)},h.$h=function(t,r){Ebe(this,t,r)},h.fi=function(){return Qs(),FLt},h.hi=function(t){r1e(this,t)},h.ih=function(){return this.k},h.jh=function(){return hW(this)},h.Ib=function(){return rY(this)},h.k=null,k(am,"ElkGraphElementImpl",734),_(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 y1e(this,t,r,o)},h.Th=function(t){return C1e(this,t)},h.$h=function(t,r){Sbe(this,t,r)},h.fi=function(){return Qs(),$Lt},h.hi=function(t){I1e(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){i0(this,t,r)},h.ph=function(t,r){Bc(this,t,r)},h.Ib=function(){return QY(this)},h.f=0,h.g=0,h.i=0,h.j=0,k(am,"ElkShapeImpl",735),_(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 J1e(this,t,r,o)},h.Ph=function(t,r,o){return gbe(this,t,r,o)},h.Rh=function(t,r,o){return bbe(this,t,r,o)},h.Th=function(t){return Mge(this,t)},h.$h=function(t,r){Cme(this,t,r)},h.fi=function(){return Qs(),jLt},h.hi=function(t){q1e(this,t)},h.gh=function(){return!this.d&&(this.d=new Tt(Ir,this,8,5)),this.d},h.hh=function(){return!this.e&&(this.e=new Tt(Ir,this,7,4)),this.e},k(am,"ElkConnectableShapeImpl",736),_(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},LG),h.xh=function(t){return dbe(this,t)},h.Ih=function(t,r,o){switch(t){case 3:return ty(this);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),this.a;case 7:return Dt(),!this.b&&(this.b=new Tt(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i<=1));case 8:return Dt(),!!AC(this);case 9:return Dt(),!!R0(this);case 10:return Dt(),!this.b&&(this.b=new Tt(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i!=0)}return a1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 3:return this.Cb&&(o=(a=this.Db>>16,a>=0?dbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Vde(this,l(t,19),o);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),Pa(this.b,t,o);case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),Pa(this.c,t,o);case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),Pa(this.a,t,o)}return WY(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 3:return Vde(this,null,o);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),_o(this.b,t,o);case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),_o(this.c,t,o);case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),_o(this.a,t,o)}return IK(this,t,r,o)},h.Th=function(t){switch(t){case 3:return!!ty(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 Tt(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i<=1));case 8:return AC(this);case 9:return R0(this);case 10:return!this.b&&(this.b=new Tt(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i!=0)}return Tge(this,t)},h.$h=function(t,r){switch(t){case 3:D7(this,l(r,19));return;case 4:!this.b&&(this.b=new Tt(pn,this,4,7)),vn(this.b),!this.b&&(this.b=new Tt(pn,this,4,7)),ti(this.b,l(r,18));return;case 5:!this.c&&(this.c=new Tt(pn,this,5,8)),vn(this.c),!this.c&&(this.c=new Tt(pn,this,5,8)),ti(this.c,l(r,18));return;case 6:!this.a&&(this.a=new ke(jr,this,6,6)),vn(this.a),!this.a&&(this.a=new ke(jr,this,6,6)),ti(this.a,l(r,18));return}Ebe(this,t,r)},h.fi=function(){return Qs(),h3e},h.hi=function(t){switch(t){case 3:D7(this,null);return;case 4:!this.b&&(this.b=new Tt(pn,this,4,7)),vn(this.b);return;case 5:!this.c&&(this.c=new Tt(pn,this,5,8)),vn(this.c);return;case 6:!this.a&&(this.a=new ke(jr,this,6,6)),vn(this.a);return}r1e(this,t)},h.Ib=function(){return Tvt(this)},k(am,"ElkEdgeImpl",273),_(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},g9),h.xh=function(t){return abe(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 tut(this);case 7:return r?AY(this):this.i;case 8:return r?TY(this):this.f;case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),this.e;case 11:return this.d}return nbe(this,t,r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 6:return this.Cb&&(o=(c=this.Db>>16,c>=0?abe(this,o):this.Cb.Qh(this,-1-c,null,o))),Wde(this,l(t,74),o);case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),Pa(this.g,t,o);case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),Pa(this.e,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(Qs(),bU)),r),69),f.uk().xk(this,Ha(this),r-ln((Qs(),bU)),t,o)},h.Rh=function(t,r,o){switch(r){case 5:return!this.a&&(this.a=new yi(Ic,this,5)),_o(this.a,t,o);case 6:return Wde(this,null,o);case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),_o(this.g,t,o);case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),_o(this.e,t,o)}return qbe(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!!tut(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 Whe(this,t)},h.$h=function(t,r){switch(t){case 1:E0(this,ue(le(r)));return;case 2:S0(this,ue(le(r)));return;case 3:y0(this,ue(le(r)));return;case 4:v0(this,ue(le(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:wwt(this,l(r,74));return;case 7:Sj(this,l(r,83));return;case 8:Ej(this,l(r,83));return;case 9:!this.g&&(this.g=new Tt(jr,this,9,10)),vn(this.g),!this.g&&(this.g=new Tt(jr,this,9,10)),ti(this.g,l(r,18));return;case 10:!this.e&&(this.e=new Tt(jr,this,10,9)),vn(this.e),!this.e&&(this.e=new Tt(jr,this,10,9)),ti(this.e,l(r,18));return;case 11:fge(this,In(r));return}Uge(this,t,r)},h.fi=function(){return Qs(),bU},h.hi=function(t){switch(t){case 1:E0(this,0);return;case 2:S0(this,0);return;case 3:y0(this,0);return;case 4:v0(this,0);return;case 5:!this.a&&(this.a=new yi(Ic,this,5)),vn(this.a);return;case 6:wwt(this,null);return;case 7:Sj(this,null);return;case 8:Ej(this,null);return;case 9:!this.g&&(this.g=new Tt(jr,this,9,10)),vn(this.g);return;case 10:!this.e&&(this.e=new Tt(jr,this,10,9)),vn(this.e);return;case 11:fge(this,null);return}Ige(this,t)},h.Ib=function(){return C0t(this)},h.b=0,h.c=0,h.d=null,h.j=0,h.k=0,k(am,"ElkEdgeSectionImpl",446),_(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 a;return t==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab):qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,c;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o)):(c=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),c.uk().xk(this,Ha(this),r-ln(this.fi()),t,o))},h.Rh=function(t,r,o){var a,c;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o)):(c=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),c.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(Vt(this,16),29),r||this.fi()),t))},h.Wh=function(t){return W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.ai=function(t){KS(this,128,t)},h.fi=function(){return _t(),oDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.mi=function(){this.Bb|=1},h.ni=function(t){return RC(this,t)},h.Bb=0,k(Gt,"EModelElementImpl",162),_(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},Vue),h.oi=function(t,r){return Xvt(this,t,r)},h.pi=function(t){var r,o,a,c,f;if(this.a!=mc(t)||t.Bb&256)throw Y(new jt(iQ+t.zb+W0));for(a=ds(t);oa(a.a).i!=0;){if(o=l(dL(a,0,(r=l(oe(oa(a.a),0),88),f=r.c,ae(f,89)?l(f,29):(_t(),Ml))),29),I0(o))return c=mc(o).ti().pi(o),l(c,52)._h(t),c;a=ds(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Dot(t):new Lfe(t)},h.qi=function(t,r){return P0(this,t,r)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.a}return qc(this,t-ln((_t(),Q1)),Nt((a=l(Vt(this,16),29),a||Q1),t),r,o)},h.Ph=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 1:return this.a&&(o=l(this.a,52).Qh(this,4,Ld,o)),e1e(this,l(t,244),o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Q1)),r),69),c.uk().xk(this,Ha(this),r-ln((_t(),Q1)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 1:return e1e(this,null,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Q1)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),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((_t(),Q1)),Nt((r=l(Vt(this,16),29),r||Q1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:rmt(this,l(r,244));return}Xc(this,t-ln((_t(),Q1)),Nt((o=l(Vt(this,16),29),o||Q1),t),r)},h.fi=function(){return _t(),Q1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:rmt(this,null);return}Jc(this,t-ln((_t(),Q1)),Nt((r=l(Vt(this,16),29),r||Q1),t))};var R4,m3e,HLt;k(Gt,"EFactoryImpl",717),_(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},KGe),h.oi=function(t,r){switch(t.fk()){case 12:return l(r,149).Og();case 13:return ms(r);default:throw Y(new jt(Lx+t.ve()+W0))}},h.pi=function(t){var r,o,a,c,f,p,m,y;switch(t.G==-1&&(t.G=(r=mc(t),r?gg(r.si(),t):-1)),t.G){case 4:return f=new Uue,f;case 6:return p=new $N,p;case 7:return m=new Fce,m;case 8:return a=new LG,a;case 9:return o=new b9,o;case 10:return c=new g9,c;case 11:return y=new YGe,y;default:throw Y(new jt(iQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 13:case 12:return null;default:throw Y(new jt(Lx+t.ve()+W0))}},k(am,"ElkGraphFactoryImpl",1029),_(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(Vt(this,16),29),Lhe(Ff(t||this.fi()))),r==null?(QN(),QN(),$re):new Qrt(this,r)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.ve()}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||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(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(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(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),sDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.ve=function(){return this.zb},h.ri=function(t){Ma(this,t)},h.Ib=function(){return iC(this)},h.zb=null,k(Gt,"ENamedElementImpl",444),_(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},Lat),h.xh=function(t){return fbt(this,t)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(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 Xw(this,Dd,this)),this.rb;case 6:return!this.vb&&(this.vb=new TS(Ld,this,6,7)),this.vb;case 7:return r?this.Db>>16==7?l(this.Cb,244):null:lut(this)}return qc(this,t-ln((_t(),Mg)),Nt((a=l(Vt(this,16),29),a||Mg),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 4:return this.sb&&(o=l(this.sb,52).Qh(this,1,I4,o)),i1e(this,l(t,472),o);case 5:return!this.rb&&(this.rb=new Xw(this,Dd,this)),Pa(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Ld,this,6,7)),Pa(this.vb,t,o);case 7:return this.Cb&&(o=(c=this.Db>>16,c>=0?fbt(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,7,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Mg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Mg)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 4:return i1e(this,null,o);case 5:return!this.rb&&(this.rb=new Xw(this,Dd,this)),_o(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Ld,this,6,7)),_o(this.vb,t,o);case 7:return Sc(this,null,7,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Mg)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),Mg)),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!!lut(this)}return zc(this,t-ln((_t(),Mg)),Nt((r=l(Vt(this,16),29),r||Mg),t))},h.Wh=function(t){var r;return r=J2n(this,t),r||W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:kj(this,In(r));return;case 3:xj(this,In(r));return;case 4:ZY(this,l(r,472));return;case 5:!this.rb&&(this.rb=new Xw(this,Dd,this)),vn(this.rb),!this.rb&&(this.rb=new Xw(this,Dd,this)),ti(this.rb,l(r,18));return;case 6:!this.vb&&(this.vb=new TS(Ld,this,6,7)),vn(this.vb),!this.vb&&(this.vb=new TS(Ld,this,6,7)),ti(this.vb,l(r,18));return}Xc(this,t-ln((_t(),Mg)),Nt((o=l(Vt(this,16),29),o||Mg),t),r)},h.bi=function(t){var r,o;if(t&&this.rb)for(o=new tn(this.rb);o.e!=o.i.gc();)r=rn(o),ae(r,361)&&(l(r,361).w=null);KS(this,64,t)},h.fi=function(){return _t(),Mg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:kj(this,null);return;case 3:xj(this,null);return;case 4:ZY(this,null);return;case 5:!this.rb&&(this.rb=new Xw(this,Dd,this)),vn(this.rb);return;case 6:!this.vb&&(this.vb=new TS(Ld,this,6,7)),vn(this.vb);return}Jc(this,t-ln((_t(),Mg)),Nt((r=l(Vt(this,16),29),r||Mg),t))},h.mi=function(){jY(this)},h.si=function(){return!this.rb&&(this.rb=new Xw(this,Dd,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?iC(this):(t=new ml(iC(this)),t.a+=" (nsURI: ",Vo(t,this.yb),t.a+=", nsPrefix: ",Vo(t,this.xb),t.a+=")",t.a)},h.xb=null,h.yb=null,k(Gt,"EPackageImpl",187),_(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},j0t),h.q=!1,h.r=!1;var zLt=!1;k(am,"ElkGraphPackageImpl",563),_(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},Uue),h.xh=function(t){return ube(this,t)},h.Ih=function(t,r,o){switch(t){case 7:return Fhe(this);case 8:return this.a}return y1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 7:return this.Cb&&(o=(a=this.Db>>16,a>=0?ube(this,o):this.Cb.Qh(this,-1-a,null,o))),Wfe(this,l(t,176),o)}return WY(this,t,r,o)},h.Rh=function(t,r,o){return r==7?Wfe(this,null,o):IK(this,t,r,o)},h.Th=function(t){switch(t){case 7:return!!Fhe(this);case 8:return!wt("",this.a)}return C1e(this,t)},h.$h=function(t,r){switch(t){case 7:qme(this,l(r,176));return;case 8:cge(this,In(r));return}Sbe(this,t,r)},h.fi=function(){return Qs(),p3e},h.hi=function(t){switch(t){case 7:qme(this,null);return;case 8:cge(this,"");return}I1e(this,t)},h.Ib=function(){return Tmt(this)},h.a="",k(am,"ElkLabelImpl",363),_(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},$N),h.xh=function(t){return fbe(this,t)},h.Ih=function(t,r,o){switch(t){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new ke(En,this,10,11)),this.a;case 11:return Br(this);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),this.b;case 13:return Dt(),!this.a&&(this.a=new ke(En,this,10,11)),this.a.i>0}return J1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),Pa(this.c,t,o);case 10:return!this.a&&(this.a=new ke(En,this,10,11)),Pa(this.a,t,o);case 11:return this.Cb&&(o=(a=this.Db>>16,a>=0?fbe(this,o):this.Cb.Qh(this,-1-a,null,o))),ife(this,l(t,19),o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),Pa(this.b,t,o)}return gbe(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),_o(this.c,t,o);case 10:return!this.a&&(this.a=new ke(En,this,10,11)),_o(this.a,t,o);case 11:return ife(this,null,o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),_o(this.b,t,o)}return bbe(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 ke(En,this,10,11)),this.a.i>0}return Mge(this,t)},h.$h=function(t,r){switch(t){case 9:!this.c&&(this.c=new ke(Gu,this,9,9)),vn(this.c),!this.c&&(this.c=new ke(Gu,this,9,9)),ti(this.c,l(r,18));return;case 10:!this.a&&(this.a=new ke(En,this,10,11)),vn(this.a),!this.a&&(this.a=new ke(En,this,10,11)),ti(this.a,l(r,18));return;case 11:M7(this,l(r,19));return;case 12:!this.b&&(this.b=new ke(Ir,this,12,3)),vn(this.b),!this.b&&(this.b=new ke(Ir,this,12,3)),ti(this.b,l(r,18));return}Cme(this,t,r)},h.fi=function(){return Qs(),g3e},h.hi=function(t){switch(t){case 9:!this.c&&(this.c=new ke(Gu,this,9,9)),vn(this.c);return;case 10:!this.a&&(this.a=new ke(En,this,10,11)),vn(this.a);return;case 11:M7(this,null);return;case 12:!this.b&&(this.b=new ke(Ir,this,12,3)),vn(this.b);return}q1e(this,t)},h.Ib=function(){return a0e(this)},k(am,"ElkNodeImpl",209),_(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},Fce),h.xh=function(t){return cbe(this,t)},h.Ih=function(t,r,o){return t==9?Gd(this):J1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 9:return this.Cb&&(o=(a=this.Db>>16,a>=0?cbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Kde(this,l(t,19),o)}return gbe(this,t,r,o)},h.Rh=function(t,r,o){return r==9?Kde(this,null,o):bbe(this,t,r,o)},h.Th=function(t){return t==9?!!Gd(this):Mge(this,t)},h.$h=function(t,r){switch(t){case 9:Bme(this,l(r,19));return}Cme(this,t,r)},h.fi=function(){return Qs(),b3e},h.hi=function(t){switch(t){case 9:Bme(this,null);return}q1e(this,t)},h.Ib=function(){return myt(this)},k(am,"ElkPortImpl",196);var GLt=Hr(xo,"BasicEMap/Entry");_(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},YGe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.Hb=function(){return s0(this)},h.Ai=function(t){oge(this,l(t,149))},h.Ih=function(t,r,o){switch(t){case 0:return this.b;case 1:return this.c}return s7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return yY(this,t)},h.$h=function(t,r){switch(t){case 0:oge(this,l(r,149));return;case 1:sge(this,r);return}iJ(this,t,r)},h.fi=function(){return Qs(),Lh},h.hi=function(t){switch(t){case 0:oge(this,null);return;case 1:sge(this,null);return}tJ(this,t)},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Rr(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,sge(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),jX),y3(this.c)),t.a)},h.a=-1,h.c=null;var Rg=k(am,"ElkPropertyToValueMapEntryImpl",1103);_(989,1,{},JGe),k(oo,"JsonAdapter",989),_(218,63,vp,xf),k(oo,"JsonImportException",218),_(859,1,{},O0t),k(oo,"JsonImporter",859),_(893,1,{},ent),h.Bi=function(t){Sbt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$0$Type",893),_(894,1,{},tnt),h.Bi=function(t){c0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$1$Type",894),_(902,1,{},SXe),h.Bi=function(t){cat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$10$Type",902),_(904,1,{},nnt),h.Bi=function(t){Ymt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$11$Type",904),_(905,1,{},rnt),h.Bi=function(t){Jmt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$12$Type",905),_(911,1,{},yat),h.Bi=function(t){ymt(this.a,this.b,this.c,this.d,l(t,142))},k(oo,"JsonImporter/lambda$13$Type",911),_(910,1,{},vat),h.Bi=function(t){$yt(this.a,this.b,this.c,this.d,l(t,150))},k(oo,"JsonImporter/lambda$14$Type",910),_(906,1,{},int),h.Bi=function(t){Rit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$15$Type",906),_(907,1,{},ont),h.Bi=function(t){Oit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$16$Type",907),_(908,1,{},lnt),h.Bi=function(t){rbt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$17$Type",908),_(909,1,{},dnt),h.Bi=function(t){ibt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$18$Type",909),_(914,1,{},TXe),h.Bi=function(t){cmt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$19$Type",914),_(895,1,{},AXe),h.Bi=function(t){gbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$2$Type",895),_(912,1,{},_Xe),h.Bi=function(t){E0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$20$Type",912),_(913,1,{},xXe),h.Bi=function(t){S0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$21$Type",913),_(917,1,{},kXe),h.Bi=function(t){umt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$22$Type",917),_(915,1,{},NXe),h.Bi=function(t){y0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$23$Type",915),_(916,1,{},CXe),h.Bi=function(t){v0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$24$Type",916),_(919,1,{},IXe),h.Bi=function(t){Lbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$25$Type",919),_(918,1,{},RXe),h.Bi=function(t){lat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$26$Type",918),_(920,1,nn,fnt),h.Ad=function(t){Bdn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$27$Type",920),_(921,1,nn,hnt),h.Ad=function(t){Udn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$28$Type",921),_(922,1,{},snt),h.Bi=function(t){q0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$29$Type",922),_(898,1,{},OXe),h.Bi=function(t){_gt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$3$Type",898),_(923,1,{},ant),h.Bi=function(t){pwt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$30$Type",923),_(924,1,{},LXe),h.Bi=function(t){Kdt(this.a,le(t))},k(oo,"JsonImporter/lambda$31$Type",924),_(925,1,{},DXe),h.Bi=function(t){Ydt(this.a,le(t))},k(oo,"JsonImporter/lambda$32$Type",925),_(926,1,{},MXe),h.Bi=function(t){Jdt(this.a,le(t))},k(oo,"JsonImporter/lambda$33$Type",926),_(927,1,{},PXe),h.Bi=function(t){Xdt(this.a,le(t))},k(oo,"JsonImporter/lambda$34$Type",927),_(928,1,{},jXe),h.Bi=function(t){zwn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$35$Type",928),_(929,1,{},FXe),h.Bi=function(t){Gwn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$36$Type",929),_(933,1,{},wat),k(oo,"JsonImporter/lambda$37$Type",933),_(930,1,nn,rot),h.Ad=function(t){whn(this.a,this.c,this.b,l(t,373))},k(oo,"JsonImporter/lambda$38$Type",930),_(931,1,nn,unt),h.Ad=function(t){jen(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$39$Type",931),_(896,1,{},$Xe),h.Bi=function(t){E0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$4$Type",896),_(932,1,nn,cnt),h.Ad=function(t){Fen(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$40$Type",932),_(934,1,nn,iot),h.Ad=function(t){yhn(this.a,this.b,this.c,l(t,8))},k(oo,"JsonImporter/lambda$41$Type",934),_(897,1,{},BXe),h.Bi=function(t){S0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$5$Type",897),_(901,1,{},UXe),h.Bi=function(t){xgt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$6$Type",901),_(899,1,{},HXe),h.Bi=function(t){y0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$7$Type",899),_(900,1,{},zXe),h.Bi=function(t){v0(this.a,ue(le(t)))},k(oo,"JsonImporter/lambda$8$Type",900),_(903,1,{},GXe),h.Bi=function(t){Dbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$9$Type",903),_(953,1,nn,qXe),h.Ad=function(t){RS(this.a,new Qw(In(t)))},k(oo,"JsonMetaDataConverter/lambda$0$Type",953),_(954,1,nn,VXe),h.Ad=function(t){Fsn(this.a,l(t,235))},k(oo,"JsonMetaDataConverter/lambda$1$Type",954),_(955,1,nn,WXe),h.Ad=function(t){jun(this.a,l(t,144))},k(oo,"JsonMetaDataConverter/lambda$2$Type",955),_(956,1,nn,KXe),h.Ad=function(t){$sn(this.a,l(t,161))},k(oo,"JsonMetaDataConverter/lambda$3$Type",956),_(235,23,{3:1,34:1,23:1,235:1},bS);var mU,wU,Ore,i5,yU,o5,Lre,Dre,s5=fn(kL,"GraphFeature",235,bn,yfn,Son),qLt;_(11,1,{34:1,149:1},cr,Pr,pt,Mi),h.Dd=function(t){return $tn(this,l(t,149))},h.Fb=function(t){return zat(this,t)},h.Rg=function(){return Ge(this)},h.Og=function(){return this.b},h.Hb=function(){return lg(this.b)},h.Ib=function(){return this.b},k(kL,"Property",11),_(664,1,Un,KG),h.Le=function(t,r){return Rgn(this,l(t,105),l(r,105))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(kL,"PropertyHolderComparator",664),_(705,1,Wi,Tce),h.Nb=function(t){so(this,t)},h.Pb=function(){return qdn(this)},h.Qb=function(){BQe()},h.Ob=function(){return!!this.a},k(GF,"ElkGraphUtil/AncestorIterator",705);var w3e=Hr(xo,"EList");_(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),h._c=function(t,r){aC(this,t,r)},h.Ec=function(t){return Tn(this,t)},h.ad=function(t,r){return Oge(this,t,r)},h.Fc=function(t){return ti(this,t)},h.Gi=function(){return new ES(this)},h.Hi=function(){return new IO(this)},h.Ii=function(t){return v6(this,t)},h.Ji=function(){return!0},h.Ki=function(t,r){},h.Li=function(){},h.Mi=function(t,r){ZW(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 eyt(this,t)},h.Hb=function(){return kge(this)},h.Qi=function(){return!1},h.Jc=function(){return new tn(this)},h.cd=function(){return new SS(this)},h.dd=function(t){var r;if(r=this.gc(),t<0||t>r)throw Y(new Ww(t,r));return new iW(this,t)},h.Si=function(t,r){this.Ri(t,this.bd(r))},h.Kc=function(t){return uj(this,t)},h.Ui=function(t,r){return r},h.fd=function(t,r){return EE(this,t,r)},h.Ib=function(){return A1e(this)},h.Wi=function(){return!0},h.Xi=function(t,r){return C_(this,r)},k(xo,"AbstractEList",71),_(67,71,Vf,m9,w0,vge),h.Ci=function(t,r){return KY(this,t,r)},h.Di=function(t){return F1t(this,t)},h.Ei=function(t,r){L6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Ppe(this,t)},h.$b=function(){z3(this)},h.Gc=function(t){return q_(this,t)},h.Xb=function(t){return oe(this,t)},h.Zi=function(t){var r,o,a;++this.j,o=this.g==null?0:this.g.length,t>o&&(a=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()},k(xo,"DelegatingEList",2072),_(2073,2072,DAt),h.Ci=function(t,r){return E0e(this,t,r)},h.Di=function(t){return this.Ci(this.Cj(),t)},h.Ei=function(t,r){F0t(this,t,r)},h.Fi=function(t){k0t(this,t)},h.Ji=function(){return!this.Kj()},h.$b=function(){jC(this)},h.Gj=function(t,r,o,a,c){return new Uat(this,t,r,o,a,c)},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,a;return this.Nj()?(a=this.Oj(),o=Hbe(this,t,r),this.Hj(this.Gj(7,Re(r),o,t,a)),o):Hbe(this,t,r)},h.ed=function(t){var r,o,a,c;return this.Nj()?(o=null,a=this.Oj(),r=this.Gj(4,c=rP(this,t),null,t,a),this.Kj()&&c?(o=this.Mj(c,o),o?(o.lj(r),o.mj()):this.Hj(r)):o?(o.lj(r),o.mj()):this.Hj(r),c):(c=rP(this,t),this.Kj()&&c&&(o=this.Mj(c,null),o&&o.mj()),c)},h.Vi=function(t,r){return Xyt(this,t,r)},k(vT,"DelegatingNotifyingListImpl",2073),_(152,1,qL),h.lj=function(t){return kbe(this,t)},h.mj=function(){rK(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 Mwt(this)},h.hj=function(){return null},h.ij=function(){return Jme(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,a,c,f,p,m,y,v,T,N;switch(this.d){case 1:case 2:switch(c=t.ej(),c){case 1:case 2:if(f=t.hj(),me(f)===me(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(c=t.ej(),c){case 4:{if(f=t.hj(),me(f)===me(this.hj())&&this.fj(null)==t.fj(null))return v=$0e(this),y=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,p=t.jj(),this.d=6,N=new w0(2),y<=p?(Tn(N,this.n),Tn(N,t.ij()),this.g=Z(X(Rn,1),Qn,30,15,[this.o=y,p+1])):(Tn(N,t.ij()),Tn(N,this.n),this.g=Z(X(Rn,1),Qn,30,15,[this.o=p,y])),this.n=N,v||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=t.ej(),c){case 4:{if(f=t.hj(),me(f)===me(this.hj())&&this.fj(null)==t.fj(null)){for(v=$0e(this),p=t.jj(),T=l(this.g,54),a=we(Rn,Qn,30,T.length+1,15,1),r=0;r>>0,r.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{wq(a,this.d);break}}if(Ayt(this)&&(a.a+=", touch: true"),a.a+=", position: ",wq(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",h3(a,this.hj()),a.a+=", feature: ",h3(a,this.Ij()),a.a+=", oldValue: ",h3(a,Jme(this)),a.a+=", newValue: ",this.d==6&&ae(this.g,54)){for(o=l(this.g,54),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new Kw(this),this.a=this.j),bl(this.b,t)):q_(this,t)},h.Wi=function(){return!0},h.a=0,k(xo,"AbstractEList/1",958),_(306,99,iF,Ww),k(xo,"AbstractEList/BasicIndexOutOfBoundsException",306),_(39,1,Wi,tn),h.Nb=function(t){so(this,t)},h.Vj=function(){if(this.i.j!=this.f)throw Y(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(){wC(this)},h.e=0,h.f=0,h.g=-1,k(xo,"AbstractEList/EIterator",39),_(288,39,vh,SS,iW),h.Qb=function(){wC(this)},h.Rb=function(t){Ugt(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),ae(r,99)?(this.Vj(),Y(new vs)):Y(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)},k(xo,"AbstractEList/EListIterator",288),_(356,39,Wi,ES),h.Wj=function(){return vY(this)},h.Qb=function(){throw Y(new Nn)},k(xo,"AbstractEList/NonResolvingEIterator",356),_(393,288,vh,IO,dfe),h.Rb=function(t){throw Y(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),ae(r,99)?(this.Vj(),Y(new vs)):Y(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),ae(r,99)?(this.Vj(),Y(new vs)):Y(r)}},h.Qb=function(){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(xo,"AbstractEList/NonResolvingEListIterator",393),_(2059,71,MAt),h.Ci=function(t,r){var o,a,c,f,p,m,y,v,T,N,O;if(c=r.gc(),c!=0){for(v=l(Vt(this.a,4),131),T=v==null?0:v.length,O=T+c,a=zK(this,O),N=T-t,N>0&&ua(v,t,a,t+c,N),y=r.Jc(),p=0;po)throw Y(new Ww(t,o));return new Qst(this,t)},h.$b=function(){var t,r;++this.j,t=l(Vt(this.a,4),131),r=t==null?0:t.length,H_(this,null),ZW(this,r,t)},h.Gc=function(t){var r,o,a,c,f;if(r=l(Vt(this.a,4),131),r!=null){if(t!=null){for(a=r,c=0,f=a.length;c=o)throw Y(new Ww(t,o));return r[t]},h.bd=function(t){var r,o,a;if(r=l(Vt(this.a,4),131),r!=null){if(t!=null){for(o=0,a=r.length;oo)throw Y(new Ww(t,o));return new Zst(this,t)},h.Ri=function(t,r){var o,a,c;if(o=Kgt(this),c=o==null?0:o.length,t>=c)throw Y(new Ia(hQ+t+um+c));if(r>=c)throw Y(new Ia(pQ+r+um+c));return a=o[r],t!=r&&(t0&&ua(t,0,r,0,o),r},h.Oc=function(t){var r,o,a;return r=l(Vt(this.a,4),131),a=r==null?0:r.length,a>0&&(t.lengtha&&ii(t,a,null),t};var VLt;k(xo,"ArrayDelegatingEList",2059),_(1043,39,Wi,mlt),h.Vj=function(){if(this.b.j!=this.f||me(l(Vt(this.b.a,4),131))!==me(this.a))throw Y(new $c)},h.Qb=function(){wC(this),this.a=l(Vt(this.b.a,4),131)},k(xo,"ArrayDelegatingEList/EIterator",1043),_(719,288,vh,Sst,Zst),h.Vj=function(){if(this.b.j!=this.f||me(l(Vt(this.b.a,4),131))!==me(this.a))throw Y(new $c)},h.Yj=function(t){$1t(this,t),this.a=l(Vt(this.b.a,4),131)},h.Qb=function(){wC(this),this.a=l(Vt(this.b.a,4),131)},k(xo,"ArrayDelegatingEList/EListIterator",719),_(1044,356,Wi,wlt),h.Vj=function(){if(this.b.j!=this.f||me(l(Vt(this.b.a,4),131))!==me(this.a))throw Y(new $c)},k(xo,"ArrayDelegatingEList/NonResolvingEIterator",1044),_(720,393,vh,Tst,Qst),h.Vj=function(){if(this.b.j!=this.f||me(l(Vt(this.b.a,4),131))!==me(this.a))throw Y(new $c)},k(xo,"ArrayDelegatingEList/NonResolvingEListIterator",720),_(612,306,iF,oV),k(xo,"BasicEList/BasicIndexOutOfBoundsException",612),_(706,67,Vf,Zle),h._c=function(t,r){throw Y(new Nn)},h.Ec=function(t){throw Y(new Nn)},h.ad=function(t,r){throw Y(new Nn)},h.Fc=function(t){throw Y(new Nn)},h.$b=function(){throw Y(new Nn)},h.Zi=function(t){throw Y(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 Y(new Nn)},h.Si=function(t,r){throw Y(new Nn)},h.ed=function(t){throw Y(new Nn)},h.Kc=function(t){throw Y(new Nn)},h.fd=function(t,r){throw Y(new Nn)},k(xo,"BasicEList/UnmodifiableEList",706),_(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),h._c=function(t,r){ktn(this,t,l(r,45))},h.Ec=function(t){return _nn(this,l(t,45))},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return l(oe(this.c,t),138)},h.Ri=function(t,r){return l(this.c.Ri(t,r),45)},h.Si=function(t,r){Ntn(this,t,l(r,45))},h.ed=function(t){return l(this.c.ed(t),45)},h.fd=function(t,r){return Bsn(this,t,l(r,45))},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(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 N6(this.c,t)},h.Zj=function(){var t,r,o;if(this.d==null){for(this.d=we(y3e,kEe,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),c7(this,t);this.e=o}},h.Fb=function(t){return qit(this,t)},h.Hb=function(){return kge(this.c)},h.bd=function(t){return this.c.bd(t)},h.$j=function(){this.c=new YXe(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 s6(this)},h.ak=function(t,r,o){return new oot(t,r,o)},h.bk=function(){return new tqe},h.Kc=function(t){return qft(this,t)},h.gc=function(){return this.f},h.hd=function(t,r){return new Rf(this.c,t,r)},h.Nc=function(){return this.c.Nc()},h.Oc=function(t){return this.c.Oc(t)},h.Ib=function(){return A1e(this.c)},h.e=0,h.f=0,k(xo,"BasicEMap",718),_(1038,67,Vf,YXe),h.Ki=function(t,r){lQt(this,l(r,138))},h.Ni=function(t,r,o){var a;++(a=this,l(r,138),a).a.e},h.Oi=function(t,r){dQt(this,l(r,138))},h.Pi=function(t,r,o){snn(this,l(r,138),l(o,138))},h.Mi=function(t,r){Fht(this.a)},k(xo,"BasicEMap/1",1038),_(1039,67,Vf,tqe),h.$i=function(t){return we(pCn,PAt,618,t,0,1)},k(xo,"BasicEMap/2",1039),_(1040,tf,wu,JXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return uY(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),c5.a):new DQe(this.a)},h.Kc=function(t){var r;return r=this.a.f,Qj(this.a,t),this.a.f!=r},h.gc=function(){return this.a.f},k(xo,"BasicEMap/3",1040),_(1041,32,Cy,XXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return tyt(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),c5.a):new MQe(this.a)},h.gc=function(){return this.a.f},k(xo,"BasicEMap/4",1041),_(1042,tf,wu,ZXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){var r,o,a,c,f,p,m,y,v;if(this.a.f>0&&ae(t,45)&&(this.a.Zj(),y=l(t,45),m=y.jd(),c=m==null?0:Rr(m),f=Yde(this.a,c),r=this.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p"+this.c},h.a=0;var pCn=k(xo,"BasicEMap/EntryImpl",618);_(538,1,{},w9),k(xo,"BasicEMap/View",538);var c5;_(776,1,{}),h.Fb=function(t){return Ime((At(),Io),t)},h.Hb=function(){return $ge((At(),Io))},h.Ib=function(){return Qd((At(),Io))},k(xo,"ECollections/BasicEmptyUnmodifiableEList",776),_(1314,1,vh,eqe),h.Nb=function(t){so(this,t)},h.Rb=function(t){throw Y(new Nn)},h.Ob=function(){return!1},h.Sb=function(){return!1},h.Pb=function(){throw Y(new vs)},h.Tb=function(){return 0},h.Ub=function(){throw Y(new vs)},h.Vb=function(){return-1},h.Qb=function(){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(xo,"ECollections/BasicEmptyUnmodifiableEList/1",1314),_(1312,776,{22:1,18:1,16:1,61:1},UZe),h._c=function(t,r){ret()},h.Ec=function(t){return iet()},h.ad=function(t,r){return oet()},h.Fc=function(t){return set()},h.$b=function(){aet()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return nde((At(),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 uet()},h.Si=function(t,r){cet()},h.ed=function(t){return det()},h.Kc=function(t){return fet()},h.fd=function(t,r){return het()},h.gc=function(){return 0},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Io,t,r)},h.Nc=function(){return Jfe((At(),Io))},h.Oc=function(t){return At(),pC(Io,t)},k(xo,"ECollections/EmptyUnmodifiableEList",1312),_(1313,776,{22:1,18:1,16:1,61:1,593:1},HZe),h._c=function(t,r){ret()},h.Ec=function(t){return iet()},h.ad=function(t,r){return oet()},h.Fc=function(t){return set()},h.$b=function(){aet()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return nde((At(),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 uet()},h.Si=function(t,r){cet()},h.ed=function(t){return det()},h.Kc=function(t){return fet()},h.fd=function(t,r){return het()},h.gc=function(){return 0},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Io,t,r)},h.Nc=function(){return Jfe((At(),Io))},h.Oc=function(t){return At(),pC(Io,t)},h._j=function(){return At(),At(),xh},k(xo,"ECollections/EmptyUnmodifiableEMap",1313);var E3e=Hr(xo,"Enumerator"),vU;_(291,1,{291:1},bJ),h.Fb=function(t){var r;return this===t?!0:ae(t,291)?(r=l(t,291),this.f==r.f&&usn(this.i,r.i)&&qV(this.a,this.f&256?r.f&256?r.a:null:r.f&256?null:r.a)&&qV(this.d,r.d)&&qV(this.g,r.g)&&qV(this.e,r.e)&&mbn(this,r)):!1},h.Hb=function(){return this.f},h.Ib=function(){return Pyt(this)},h.f=0;var WLt=0,KLt=0,YLt=0,JLt=0,S3e=0,T3e=0,A3e=0,_3e=0,x3e=0,XLt,O4=0,L4=0,ZLt=0,QLt=0,EU,k3e;k(xo,"URI",291),_(1102,44,LE,zZe),h.yc=function(t,r){return l(ns(this,In(t),l(r,291)),291)},k(xo,"URI/URICache",1102),_(495,67,Vf,nqe,uP),h.Qi=function(){return!0},k(xo,"UniqueEList",495),_(585,63,vp,oj),k(xo,"WrappedException",585);var Kn=Hr(el,$At),gv=Hr(el,BAt),au=Hr(el,UAt),bv=Hr(el,HAt),Dd=Hr(el,zAt),Ol=Hr(el,"EClass"),jre=Hr(el,"EDataType"),eDt;_(1210,44,LE,GZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ts(this.f,t))},k(el,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var SU=Hr(el,"EEnum"),Op=Hr(el,GAt),Go=Hr(el,qAt),Ll=Hr(el,VAt),Dl,lw=Hr(el,WAt),mv=Hr(el,KAt);_(1034,1,{},rqe),h.Ib=function(){return"NIL"},k(el,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var tDt;_(1033,44,LE,qZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ts(this.f,t))},k(el,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var Ka=Hr(el,YAt),YT=Hr(el,"EValidator/PatternMatcher"),N3e,C3e,Ut,Og,wv,X1,nDt,rDt,iDt,Z1,Lg,Q1,dw,bf,oDt,sDt,Ml,Dg,aDt,Mg,yv,w2,Oo,uDt,cDt,fw,TU=Hr(Fr,"FeatureMap/Entry");_(537,1,{76:1},_8),h.Jk=function(){return this.a},h.kd=function(){return this.b},k(Gt,"BasicEObjectImpl/1",537),_(1032,1,vQ,gnt),h.Dk=function(t){return WW(this.a,this.b,t)},h.Oj=function(){return out(this.a,this.b)},h.Wb=function(t){Phe(this.a,this.b,t)},h.Ek=function(){nan(this.a,this.b)},k(Gt,"BasicEObjectImpl/4",1032),_(2060,1,{115:1}),h.Kk=function(t){this.e=t==0?lDt:we(Ri,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 Y(new Nn)},h.Nk=function(){throw Y(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 Y(new Nn)},h.Sk=function(t){throw Y(new Nn)},h.Tk=function(t){this.d=t};var lDt;k(Gt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),_(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},k(Gt,"BasicEObjectImpl/EPropertiesHolderImpl",195),_(505,101,YTt,y9),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(),Ut).S},h.i=0,h.j=1,k(Gt,"EObjectImpl",505),_(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},Lfe),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 iqe),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?dDt:we(Ri,Rt,1,t,5,1)),this},h.gi=function(){return 0};var dDt;k(Gt,"DynamicEObjectImpl",792),_(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},Dot),h.Fb=function(t){return this===t},h.Hb=function(){return s0(this)},h._h=function(t){this.d=t,this.b=iL(t,"key"),this.c=iL(t,sI)},h.yi=function(){var t;return this.a==-1&&(t=aK(this,this.b),this.a=t==null?0:Rr(t)),this.a},h.jd=function(){return aK(this,this.b)},h.kd=function(){return aK(this,this.c)},h.zi=function(t){this.a=t},h.Ai=function(t){Phe(this,this.b,t)},h.ld=function(t){var r;return r=aK(this,this.c),Phe(this,this.c,t),r},h.a=0,k(Gt,"DynamicEObjectImpl/BasicEMapEntry",1500),_(1501,1,{115:1},iqe),h.Kk=function(t){throw Y(new Nn)},h.ii=function(t){throw Y(new Nn)},h.ji=function(t,r){throw Y(new Nn)},h.ki=function(t){throw Y(new Nn)},h.Lk=function(){throw Y(new Nn)},h.Mk=function(){return this.a},h.Nk=function(){return this.b},h.Ok=function(){return this.c},h.Pk=function(){throw Y(new Nn)},h.Qk=function(t){throw Y(new Nn)},h.Rk=function(t){this.a=t},h.Sk=function(t){this.b=t},h.Tk=function(t){this.c=t},k(Gt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501),_(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},Hue),h.xh=function(t){return lbe(this,t)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.d;case 2:return o?(!this.b&&(this.b=new Zu((_t(),Oo),zs,this)),this.b):(!this.b&&(this.b=new Zu((_t(),Oo),zs,this)),s6(this.b));case 3:return dut(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((_t(),Og)),Nt((a=l(Vt(this,16),29),a||Og),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 3:return this.Cb&&(o=(c=this.Db>>16,c>=0?lbe(this,o):this.Cb.Qh(this,-1-c,null,o))),Kfe(this,l(t,159),o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Og)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Og)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 2:return!this.b&&(this.b=new Zu((_t(),Oo),zs,this)),q8(this.b,t,o);case 3:return Kfe(this,null,o);case 4:return!this.a&&(this.a=new yi(Y1,this,4)),_o(this.a,t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Og)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),Og)),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!!dut(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zc(this,t-ln((_t(),Og)),Nt((r=l(Vt(this,16),29),r||Og),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Von(this,In(r));return;case 2:!this.b&&(this.b=new Zu((_t(),Oo),zs,this)),Cj(this.b,r);return;case 3:Twt(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((_t(),Og)),Nt((o=l(Vt(this,16),29),o||Og),t),r)},h.fi=function(){return _t(),Og},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:uge(this,null);return;case 2:!this.b&&(this.b=new Zu((_t(),Oo),zs,this)),this.b.c.$b();return;case 3:Twt(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((_t(),Og)),Nt((r=l(Vt(this,16),29),r||Og),t))},h.Ib=function(){return ugt(this)},h.d=null,k(Gt,"EAnnotationImpl",508),_(145,718,NEe,pu),h.Ei=function(t,r){dtn(this,t,l(r,45))},h.Uk=function(t,r){return hrn(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 q8(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 a;return a=l(mc(this.b).ti().pi(this.b),138),a.zi(t),a.Ai(r),a.ld(o),a},h.bk=function(){return new _ce(this)},h.Wb=function(t){Cj(this,t)},h.Ek=function(){l(this.c,78).Ek()},k(Fr,"EcoreEMap",145),_(170,145,NEe,Zu),h.Zj=function(){var t,r,o,a,c,f;if(this.d==null){for(f=we(y3e,kEe,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)r=l(o.Wj(),138),a=r.yi(),c=(a&sr)%f.length,t=f[c],!t&&(t=f[c]=new _ce(this)),t.Ec(r);this.d=f}},k(Gt,"EAnnotationImpl/1",170),_(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 a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),!!this.Hk();case 7:return Dt(),c=this.s,c>=1;case 8:return r?Sl(this):this.r;case 9:return this.q}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return aW(this,o)}return c=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),c.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&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0)}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:this.ri(In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),cDt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.Xk(1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(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 o1e(this,t,r)},h.Xk=function(t){cy(this,t)},h.Ib=function(){return Eme(this)},h.s=0,h.t=1,k(Gt,"ETypedElementImpl",294),_(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 ebt(this,t)},h.Ih=function(t,r,o){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),!!this.Hk();case 7:return Dt(),c=this.s,c>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Dt(),!!(this.Bb&Tl);case 11:return Dt(),!!(this.Bb&yp);case 12:return Dt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Dt(),!!(this.Bb&yu);case 16:return Dt(),!!(this.Bb&$f);case 17:return ny(this)}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 17:return this.Cb&&(o=(c=this.Db>>16,c>=0?ebt(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,17,o)}return f=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return aW(this,o);case 17:return Sc(this,null,17,o)}return c=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),c.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&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this)}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:LW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:D_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),uDt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.Xk(1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.mi=function(){u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.nk=function(){return this.f},h.gk=function(){return J_(this)},h.ok=function(){return ny(this)},h.sk=function(){return null},h.Yk=function(){return this.k},h.Jj=function(){return this.n},h.tk=function(){return m7(this)},h.uk=function(){var t,r,o,a,c,f,p,m,y;return this.p||(o=ny(this),(o.i==null&&Ff(o),o.i).length,a=this.sk(),a&&ln(ny(a)),c=Sl(this),p=c.ik(),t=p?p.i&1?p==uu?Yr:p==Rn?Ti:p==Ev?Ux:p==Ki?fi:p==pw?Y0:p==S2?J0:p==Eu?ET:mI:p:null,r=J_(this),m=c.gk(),Bgn(this),this.Bb&$f&&((f=mbe((mu(),ao),o))&&f!=this||(f=MS(rs(ao,this))))?this.p=new mnt(this,f):this.Hk()?this.$k()?a?this.Bb&yu?t?this._k()?this.p=new Db(47,t,this,a):this.p=new Db(5,t,this,a):this._k()?this.p=new Bb(46,this,a):this.p=new Bb(4,this,a):t?this._k()?this.p=new Db(49,t,this,a):this.p=new Db(7,t,this,a):this._k()?this.p=new Bb(48,this,a):this.p=new Bb(6,this,a):this.Bb&yu?t?t==dm?this.p=new rg(50,GLt,this):this._k()?this.p=new rg(43,t,this):this.p=new rg(1,t,this):this._k()?this.p=new og(42,this):this.p=new og(0,this):t?t==dm?this.p=new rg(41,GLt,this):this._k()?this.p=new rg(45,t,this):this.p=new rg(3,t,this):this._k()?this.p=new og(44,this):this.p=new og(2,this):ae(c,160)?t==TU?this.p=new og(40,this):this.Bb&512?this.Bb&yu?t?this.p=new rg(9,t,this):this.p=new og(8,this):t?this.p=new rg(11,t,this):this.p=new og(10,this):this.Bb&yu?t?this.p=new rg(13,t,this):this.p=new og(12,this):t?this.p=new rg(15,t,this):this.p=new og(14,this):a?(y=a.t,y>1||y==-1?this._k()?this.Bb&yu?t?this.p=new Db(25,t,this,a):this.p=new Bb(24,this,a):t?this.p=new Db(27,t,this,a):this.p=new Bb(26,this,a):this.Bb&yu?t?this.p=new Db(29,t,this,a):this.p=new Bb(28,this,a):t?this.p=new Db(31,t,this,a):this.p=new Bb(30,this,a):this._k()?this.Bb&yu?t?this.p=new Db(33,t,this,a):this.p=new Bb(32,this,a):t?this.p=new Db(35,t,this,a):this.p=new Bb(34,this,a):this.Bb&yu?t?this.p=new Db(37,t,this,a):this.p=new Bb(36,this,a):t?this.p=new Db(39,t,this,a):this.p=new Bb(38,this,a)):this._k()?this.Bb&yu?t?this.p=new rg(17,t,this):this.p=new og(16,this):t?this.p=new rg(19,t,this):this.p=new og(18,this):this.Bb&yu?t?this.p=new rg(21,t,this):this.p=new og(20,this):t?this.p=new rg(23,t,this):this.p=new og(22,this):this.Zk()?this._k()?this.p=new uot(l(c,29),this,a):this.p=new Mhe(l(c,29),this,a):ae(c,160)?t==TU?this.p=new og(40,this):this.Bb&yu?t?this.p=new ost(r,m,this,(lY(),p==Rn?P3e:p==uu?R3e:p==pw?j3e:p==Ev?M3e:p==Ki?D3e:p==S2?F3e:p==Eu?O3e:p==al?L3e:Bre)):this.p=new Sat(l(c,160),r,m,this):t?this.p=new ist(r,m,this,(lY(),p==Rn?P3e:p==uu?R3e:p==pw?j3e:p==Ev?M3e:p==Ki?D3e:p==S2?F3e:p==Eu?O3e:p==al?L3e:Bre)):this.p=new Eat(l(c,160),r,m,this):this.$k()?a?this.Bb&yu?this._k()?this.p=new lot(l(c,29),this,a):this.p=new Tfe(l(c,29),this,a):this._k()?this.p=new cot(l(c,29),this,a):this.p=new jV(l(c,29),this,a):this.Bb&yu?this._k()?this.p=new rit(l(c,29),this):this.p=new Fde(l(c,29),this):this._k()?this.p=new nit(l(c,29),this):this.p=new SV(l(c,29),this):this._k()?a?this.Bb&yu?this.p=new dot(l(c,29),this,a):this.p=new Efe(l(c,29),this,a):this.Bb&yu?this.p=new oit(l(c,29),this):this.p=new $de(l(c,29),this):a?this.Bb&yu?this.p=new fot(l(c,29),this,a):this.p=new Sfe(l(c,29),this,a):this.Bb&yu?this.p=new iit(l(c,29),this):this.p=new cP(l(c,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&$f)!=0},h.vk=function(){return cK(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){LW(this,t)},h.Ib=function(){return U7(this)},h.e=!1,h.n=0,k(Gt,"EStructuralFeatureImpl",454),_(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},tq),h.Ih=function(t,r,o){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),!!gme(this);case 7:return Dt(),c=this.s,c>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Dt(),!!(this.Bb&Tl);case 11:return Dt(),!!(this.Bb&yp);case 12:return Dt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Dt(),!!(this.Bb&yu);case 16:return Dt(),!!(this.Bb&$f);case 17:return ny(this);case 18:return Dt(),!!(this.Bb&Ws);case 19:return r?RK(this):Ilt(this)}return qc(this,t-ln((_t(),wv)),Nt((a=l(Vt(this,16),29),a||wv),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 gme(this);case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this);case 18:return(this.Bb&Ws)!=0;case 19:return!!Ilt(this)}return zc(this,t-ln((_t(),wv)),Nt((r=l(Vt(this,16),29),r||wv),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:LW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:PQe(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:D_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:tY(this,Ye(Ke(r)));return}Xc(this,t-ln((_t(),wv)),Nt((o=l(Vt(this,16),29),o||wv),t),r)},h.fi=function(){return _t(),wv},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.b=0,cy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:tY(this,!1);return}Jc(this,t-ln((_t(),wv)),Nt((r=l(Vt(this,16),29),r||wv),t))},h.mi=function(){RK(this),u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.Hk=function(){return gme(this)},h.Wk=function(t,r){return this.b=0,this.a=null,o1e(this,t,r)},h.Xk=function(t){PQe(this,t)},h.Ib=function(){var t;return this.Db&64?U7(this):(t=new ml(U7(this)),t.a+=" (iD: ",Zp(t,(this.Bb&Ws)!=0),t.a+=")",t.a)},h.b=0,k(Gt,"EAttributeImpl",336),_(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 PY(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 a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return I0(this);case 4:return this.gk();case 5:return this.F;case 6:return r?mc(this):d_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 6:return this.Cb&&(o=(c=this.Db>>16,c>=0?PY(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,6,o)}return f=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),c.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!!I0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(this);case 7:return!!this.A&&this.A.i!=0}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:cV(this,In(r));return;case 5:ix(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(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),nDt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(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(Vt(this,16),29),r||this.fi()),t))},h.fk=function(){var t;return this.G==-1&&(this.G=(t=mc(this),t?gg(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 I0(this)},h.jk=function(){return this.D!=null?this.D:this.B},h.kk=function(){return this.F},h.dk=function(t){return _J(this,t)},h.dl=function(t){this.v=t},h.el=function(t){bht(this,t)},h.fl=function(t){this.C=t},h.ri=function(t){jP(this,t)},h.Ib=function(){return Yj(this)},h.C=null,h.D=null,h.G=-1,k(Gt,"EClassifierImpl",361),_(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},Wue),h.bl=function(t){return Znn(this,t.Ah())},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return I0(this);case 4:return null;case 5:return this.F;case 6:return r?mc(this):d_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A;case 8:return Dt(),!!(this.Bb&256);case 9:return Dt(),!!(this.Bb&512);case 10:return ds(this);case 11:return!this.q&&(this.q=new ke(Ll,this,11,10)),this.q;case 12:return CE(this);case 13:return DC(this);case 14:return DC(this),this.r;case 15:return CE(this),this.k;case 16:return ime(this);case 17:return CJ(this);case 18:return Ff(this);case 19:return L7(this);case 20:return CE(this),this.o;case 21:return!this.s&&(this.s=new ke(au,this,21,17)),this.s;case 22:return oa(this);case 23:return gJ(this)}return qc(this,t-ln((_t(),X1)),Nt((a=l(Vt(this,16),29),a||X1),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 6:return this.Cb&&(o=(c=this.Db>>16,c>=0?PY(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,6,o);case 11:return!this.q&&(this.q=new ke(Ll,this,11,10)),Pa(this.q,t,o);case 21:return!this.s&&(this.s=new ke(au,this,21,17)),Pa(this.s,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),X1)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),X1)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o);case 11:return!this.q&&(this.q=new ke(Ll,this,11,10)),_o(this.q,t,o);case 21:return!this.s&&(this.s=new ke(au,this,21,17)),_o(this.s,t,o);case 22:return _o(oa(this),t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),X1)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),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!!I0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(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&&_Y(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return CE(this).i!=0;case 13:return DC(this).i!=0;case 14:return DC(this),this.r.i!=0;case 15:return CE(this),this.k.i!=0;case 16:return ime(this).i!=0;case 17:return CJ(this).i!=0;case 18:return Ff(this).i!=0;case 19:return L7(this).i!=0;case 20:return CE(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&_Y(this.n);case 23:return gJ(this).i!=0}return zc(this,t-ln((_t(),X1)),Nt((r=l(Vt(this,16),29),r||X1),t))},h.Wh=function(t){var r;return r=this.i==null||this.q&&this.q.i!=0?null:iL(this,t),r||W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:cV(this,In(r));return;case 5:ix(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:u1e(this,Ye(Ke(r)));return;case 9:c1e(this,Ye(Ke(r)));return;case 10:jC(ds(this)),ti(ds(this),l(r,18));return;case 11:!this.q&&(this.q=new ke(Ll,this,11,10)),vn(this.q),!this.q&&(this.q=new ke(Ll,this,11,10)),ti(this.q,l(r,18));return;case 21:!this.s&&(this.s=new ke(au,this,21,17)),vn(this.s),!this.s&&(this.s=new ke(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((_t(),X1)),Nt((o=l(Vt(this,16),29),o||X1),t),r)},h.fi=function(){return _t(),X1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:u1e(this,!1);return;case 9:c1e(this,!1);return;case 10:this.u&&jC(this.u);return;case 11:!this.q&&(this.q=new ke(Ll,this,11,10)),vn(this.q);return;case 21:!this.s&&(this.s=new ke(au,this,21,17)),vn(this.s);return;case 22:this.n&&vn(this.n);return}Jc(this,t-ln((_t(),X1)),Nt((r=l(Vt(this,16),29),r||X1),t))},h.mi=function(){var t,r;if(CE(this),DC(this),ime(this),CJ(this),Ff(this),L7(this),gJ(this),z3(Non(Pu(this))),this.s)for(t=0,r=this.s.i;t=0;--r)oe(this,r);return O1e(this,t)},h.Ek=function(){vn(this)},h.Xi=function(t,r){return Gft(this,t,r)},k(Fr,"EcoreEList",630),_(494,630,ws,zO),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,k(Fr,"EObjectEList",494),_(82,494,ws,yi),h.Kj=function(){return!0},h.kl=function(){return!1},h.$k=function(){return!0},k(Fr,"EObjectContainmentEList",82),_(547,82,ws,P8),h.Li=function(){this.b=!0},h.Oj=function(){return this.b},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EObjectContainmentEList/Unsettable",547),_(1142,547,ws,nst),h.Ri=function(t,r){var o,a;return o=l(uC(this,t,r),88),Ju(this.e)&&DA(this,new a6(this.a,7,(_t(),rDt),Re(r),(a=o.c,ae(a,89)?l(a,29):Ml),t)),o},h.Sj=function(t,r){return v1n(this,l(t,88),r)},h.Tj=function(t,r){return y1n(this,l(t,88),r)},h.Uj=function(t,r,o){return T0n(this,l(t,88),l(r,88),o)},h.Gj=function(t,r,o,a,c){switch(t){case 3:return j3(this,t,r,o,a,this.i>1);case 5:return j3(this,t,r,o,a,this.i-l(o,16).gc()>0);default:return new cp(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return _Y(this)},h.Ek=function(){vn(this)},k(Gt,"EClassImpl/1",1142),_(1156,1155,xEe),h.bj=function(t){var r,o,a,c,f,p,m;if(o=t.ej(),o!=8){if(a=tbn(t),a==0)switch(o){case 1:case 9:{m=t.ij(),m!=null&&(r=Pu(l(m,474)),!r.c&&(r.c=new NA),uj(r.c,t.hj())),p=t.gj(),p!=null&&(c=l(p,474),c.Bb&1||(r=Pu(c),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29))));break}case 3:{p=t.gj(),p!=null&&(c=l(p,474),c.Bb&1||(r=Pu(c),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29))));break}case 5:{if(p=t.gj(),p!=null)for(f=l(p,18).Jc();f.Ob();)c=l(f.Pb(),474),c.Bb&1||(r=Pu(c),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29)));break}case 4:{m=t.ij(),m!=null&&(c=l(m,474),c.Bb&1||(r=Pu(c),!r.c&&(r.c=new NA),uj(r.c,t.hj())));break}case 6:{if(m=t.ij(),m!=null)for(f=l(m,18).Jc();f.Ob();)c=l(f.Pb(),474),c.Bb&1||(r=Pu(c),!r.c&&(r.c=new NA),uj(r.c,t.hj()));break}}this.ol(a)}},h.ol=function(t){cyt(this,t)},h.b=63,k(Gt,"ESuperAdapter",1156),_(1157,1156,xEe,eZe),h.ol=function(t){Sy(this,t)},k(Gt,"EClassImpl/10",1157),_(1146,706,ws),h.Ci=function(t,r){return KY(this,t,r)},h.Di=function(t){return F1t(this,t)},h.Ei=function(t,r){L6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Ppe(this,t)},h.Vi=function(t,r){return uK(this,t,r)},h.Uk=function(t,r){throw Y(new Nn)},h.Gi=function(){return new ES(this)},h.Hi=function(){return new IO(this)},h.Ii=function(t){return v6(this,t)},h.Vk=function(t,r){throw Y(new Nn)},h.Dk=function(t){return this},h.Oj=function(){return this.i!=0},h.Wb=function(t){throw Y(new Nn)},h.Ek=function(){throw Y(new Nn)},k(Fr,"EcoreEList/UnmodifiableEList",1146),_(334,1146,ws,Qv),h.Wi=function(){return!1},k(Fr,"EcoreEList/UnmodifiableEList/FastCompare",334),_(1149,334,ws,cpt),h.bd=function(t){var r,o,a;if(ae(t,182)&&(r=l(t,182),o=r.Jj(),o!=-1)){for(a=this.i;o4)if(this.dk(t)){if(this.$k()){if(a=l(t,52),o=a.Bh(),m=o==this.b&&(this.kl()?a.vh(a.Ch(),l(Nt(Ja(this.b),this.Jj()).Fk(),29).ik())==Po(l(Nt(Ja(this.b),this.Jj()),20)).n:-1-a.Ch()==this.Jj()),this.ll()&&!m&&!o&&a.Gh()){for(c=0;c1||a==-1)):!1},h.kl=function(){var t,r,o;return r=Nt(Ja(this.b),this.Jj()),ae(r,104)?(t=l(r,20),o=Po(t),!!o):!1},h.ll=function(){var t,r;return r=Nt(Ja(this.b),this.Jj()),ae(r,104)?(t=l(r,20),(t.Bb&Co)!=0):!1},h.bd=function(t){var r,o,a,c;if(a=this.xj(t),a>=0)return a;if(this.ml()){for(o=0,c=this.Cj();o=0;--t)dL(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)dL(this,r,this.vj(r));return this.Ej(t)},h.Ek=function(){jC(this)},h.Xi=function(t,r){return fdt(this,t,r)},k(Fr,"DelegatingEcoreEList",751),_(1152,751,IEe,bit),h.oj=function(t,r){Enn(this,t,l(r,29))},h.pj=function(t){htn(this,l(t,29))},h.vj=function(t){var r,o;return r=l(oe(oa(this.a),t),88),o=r.c,ae(o,89)?l(o,29):(_t(),Ml)},h.Aj=function(t){var r,o;return r=l(_y(oa(this.a),t),88),o=r.c,ae(o,89)?l(o,29):(_t(),Ml)},h.Bj=function(t,r){return Kbn(this,t,l(r,29))},h.Ji=function(){return!1},h.Gj=function(t,r,o,a,c){return null},h.qj=function(){return new nZe(this)},h.rj=function(){vn(oa(this.a))},h.sj=function(t){return cgt(this,t)},h.tj=function(t){var r,o;for(o=t.Jc();o.Ob();)if(r=o.Pb(),!cgt(this,r))return!1;return!0},h.uj=function(t){var r,o,a;if(ae(t,16)&&(a=l(t,16),a.gc()==oa(this.a).i)){for(r=a.Jc(),o=new tn(this);r.Ob();)if(me(r.Pb())!==me(rn(o)))return!1;return!0}return!1},h.wj=function(){var t,r,o,a,c;for(o=1,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),a=(c=t.c,ae(c,89)?l(c,29):(_t(),Ml)),o=31*o+(a?s0(a):0);return o},h.xj=function(t){var r,o,a,c;for(a=0,o=new tn(oa(this.a));o.e!=o.i.gc();){if(r=l(rn(o),88),me(t)===me((c=r.c,ae(c,89)?l(c,29):(_t(),Ml))))return a;++a}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,a,c,f;for(f=oa(this.a).i,c=we(Ri,Rt,1,f,5,1),o=0,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),c[o++]=(a=t.c,ae(a,89)?l(a,29):(_t(),Ml));return c},h.Ej=function(t){var r,o,a,c,f,p,m;for(m=oa(this.a).i,t.lengthm&&ii(t,m,null),a=0,o=new tn(oa(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,ae(p,89)?l(p,29):(_t(),Ml)),ii(t,a++,f);return t},h.Fj=function(){var t,r,o,a,c;for(c=new Xp,c.a+="[",t=oa(this.a),r=0,a=oa(this.a).i;r>16,c>=0?PY(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,6,o);case 9:return!this.a&&(this.a=new ke(Op,this,9,5)),Pa(this.a,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Z1)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Z1)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o);case 9:return!this.a&&(this.a=new ke(Op,this,9,5)),_o(this.a,t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Z1)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),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!!I0(this);case 4:return!!Yge(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(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((_t(),Z1)),Nt((r=l(Vt(this,16),29),r||Z1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:cV(this,In(r));return;case 5:ix(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:Hj(this,Ye(Ke(r)));return;case 9:!this.a&&(this.a=new ke(Op,this,9,5)),vn(this.a),!this.a&&(this.a=new ke(Op,this,9,5)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),Z1)),Nt((o=l(Vt(this,16),29),o||Z1),t),r)},h.fi=function(){return _t(),Z1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:Hj(this,!0);return;case 9:!this.a&&(this.a=new ke(Op,this,9,5)),vn(this.a);return}Jc(this,t-ln((_t(),Z1)),Nt((r=l(Vt(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((_t(),Lg)),Nt((a=l(Vt(this,16),29),a||Lg),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 5:return this.Cb&&(o=(c=this.Db>>16,c>=0?dbt(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,5,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Lg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Lg)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 5:return Sc(this,null,5,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Lg)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),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.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((_t(),Lg)),Nt((r=l(Vt(this,16),29),r||Lg),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:gK(this,l(r,15).a);return;case 3:w0t(this,l(r,2018));return;case 4:mK(this,In(r));return}Xc(this,t-ln((_t(),Lg)),Nt((o=l(Vt(this,16),29),o||Lg),t),r)},h.fi=function(){return _t(),Lg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:gK(this,0);return;case 3:w0t(this,null);return;case 4:mK(this,null);return}Jc(this,t-ln((_t(),Lg)),Nt((r=l(Vt(this,16),29),r||Lg),t))},h.Ib=function(){var t;return t=this.c,t??this.zb},h.b=null,h.c=null,h.d=0,k(Gt,"EEnumLiteralImpl",575);var gCn=Hr(Gt,"EFactoryImpl/InternalEDateTimeFormat");_(488,1,{2093:1},eO),k(Gt,"EFactoryImpl/1ClientInternalEDateTimeFormat",488),_(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Ym),h.zh=function(t,r,o){var a;return o=Sc(this,t,r,o),this.e&&ae(t,182)&&(a=O7(this,this.e),a!=this.c&&(o=ox(this,a,o))),o},h.Ih=function(t,r,o){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new yi(Go,this,1)),this.d;case 2:return r?z7(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return r?NY(this):this.a}return qc(this,t-ln((_t(),dw)),Nt((a=l(Vt(this,16),29),a||dw),t),r,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return Jpt(this,null,o);case 1:return!this.d&&(this.d=new yi(Go,this,1)),_o(this.d,t,o);case 3:return Ypt(this,null,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),dw)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),dw)),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((_t(),dw)),Nt((r=l(Vt(this,16),29),r||dw),t))},h.$h=function(t,r){var o;switch(t){case 0:Ibt(this,l(r,88));return;case 1:!this.d&&(this.d=new yi(Go,this,1)),vn(this.d),!this.d&&(this.d=new yi(Go,this,1)),ti(this.d,l(r,18));return;case 3:_be(this,l(r,88));return;case 4:Gbe(this,l(r,842));return;case 5:w_(this,l(r,146));return}Xc(this,t-ln((_t(),dw)),Nt((o=l(Vt(this,16),29),o||dw),t),r)},h.fi=function(){return _t(),dw},h.hi=function(t){var r;switch(t){case 0:Ibt(this,null);return;case 1:!this.d&&(this.d=new yi(Go,this,1)),vn(this.d);return;case 3:_be(this,null);return;case 4:Gbe(this,null);return;case 5:w_(this,null);return}Jc(this,t-ln((_t(),dw)),Nt((r=l(Vt(this,16),29),r||dw),t))},h.Ib=function(){var t;return t=new fc(Zl(this)),t.a+=" (expression: ",DJ(this,t),t.a+=")",t.a};var I3e;k(Gt,"EGenericTypeImpl",251),_(2046,2041,YF),h.Ei=function(t,r){pit(this,t,r)},h.Uk=function(t,r){return pit(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 aZe(this)},h.Hi=function(){return this.Ii(0)},h.Ii=function(t){return this.nj().dd(t)},h.Vk=function(t,r){return gy(this,t,!0),r},h.Ri=function(t,r){var o,a;return a=$Y(this,r),o=this.dd(t),o.Rb(a),a},h.Si=function(t,r){var o;gy(this,r,!0),o=this.dd(t),o.Rb(r)},k(Fr,"AbstractSequentialInternalEList",2046),_(485,2046,YF,RO),h.Yi=function(t){return sa(this.nj(),t)},h.Gi=function(){return this.b==null?(tg(),tg(),l5):this.ql()},h.nj=function(){return new Dnt(this.a,this.b)},h.Hi=function(){return this.b==null?(tg(),tg(),l5):this.ql()},h.Ii=function(t){var r,o;if(this.b==null){if(t<0||t>1)throw Y(new Ia(aI+t+", size=0"));return tg(),tg(),l5}for(o=this.ql(),r=0;r0;)if(r=this.c[--this.d],(!this.e||r.nk()!=Ak||r.Jj()!=0)&&(!this.tl()||this.b.Uh(r))){if(f=this.b.Kh(r,this.sl()),this.f=(Mo(),l(r,69).vk()),this.f||r.Hk()){if(this.sl()?(a=l(f,16),this.k=a):(a=l(f,72),this.k=this.j=a),ae(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?Rmt(this,this.p):Umt(this))return c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(c,76),t.Jk(),o=t.kd(),this.i=o):(o=c,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 c=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(c,76),t.Jk(),o=t.kd(),this.i=o):(o=c,this.i=o),this.g=-3,!0}},h.Pb=function(){return Rj(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 Y(new vs)},h.Vb=function(){return this.a-1},h.Qb=function(){throw Y(new Nn)},h.sl=function(){return!1},h.Wb=function(t){throw Y(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 l5;k(Fr,"EContentsEList/FeatureIteratorImpl",289),_(707,289,JF,jde),h.sl=function(){return!0},k(Fr,"EContentsEList/ResolvingFeatureIteratorImpl",707),_(1159,707,JF,tit),h.tl=function(){return!1},k(Gt,"ENamedElementImpl/1/1",1159),_(1160,289,JF,eit),h.tl=function(){return!1},k(Gt,"ENamedElementImpl/1/2",1160),_(40,152,qL,sy,UW,Pi,tK,cp,Vl,Kpe,Uut,Ype,Hut,hpe,zut,Zpe,Gut,ppe,qut,Jpe,Vut,N3,a6,EW,Xpe,Wut,gpe,Kut),h.Ij=function(){return Ipe(this)},h.Pj=function(){var t;return t=Ipe(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=Ipe(this),t?t.rk():!1},h.b=-1,k(Gt,"ENotificationImpl",40),_(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},nq),h.xh=function(t){return hbt(this,t)},h.Ih=function(t,r,o){var a,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),f=this.t,f>1||f==-1;case 7:return Dt(),c=this.s,c>=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 ke(lw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new MO(this,this)),this.a;case 14:return Fu(this)}return qc(this,t-ln((_t(),Dg)),Nt((a=l(Vt(this,16),29),a||Dg),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 10:return this.Cb&&(o=(c=this.Db>>16,c>=0?hbt(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,10,o);case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),Pa(this.c,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Dg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Dg)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return aW(this,o);case 10:return Sc(this,null,10,o);case 11:return!this.d&&(this.d=new du(Ka,this,11)),_o(this.d,t,o);case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),_o(this.c,t,o);case 14:return _o(Fu(this),t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),Dg)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),Dg)),t,o)},h.Th=function(t){var r,o,a;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 a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(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&&Fu(this.a.a).i!=0&&!(this.b&&xY(this.b));case 14:return!!this.b&&xY(this.b)}return zc(this,t-ln((_t(),Dg)),Nt((r=l(Vt(this,16),29),r||Dg),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:cy(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.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 ke(lw,this,12,10)),vn(this.c),!this.c&&(this.c=new ke(lw,this,12,10)),ti(this.c,l(r,18));return;case 13:!this.a&&(this.a=new MO(this,this)),jC(this.a),!this.a&&(this.a=new MO(this,this)),ti(this.a,l(r,18));return;case 14:vn(Fu(this)),ti(Fu(this),l(r,18));return}Xc(this,t-ln((_t(),Dg)),Nt((o=l(Vt(this,16),29),o||Dg),t),r)},h.fi=function(){return _t(),Dg},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:cy(this,1);return;case 8:Yb(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 ke(lw,this,12,10)),vn(this.c);return;case 13:this.a&&jC(this.a);return;case 14:this.b&&vn(this.b);return}Jc(this,t-ln((_t(),Dg)),Nt((r=l(Vt(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),a=0,o=new tn(Fu(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,p||(_t(),bf)),ii(t,a++,f);return t},h.Fj=function(){var t,r,o,a,c;for(c=new Xp,c.a+="[",t=Fu(this.a),r=0,a=Fu(this.a).i;r1);case 5:return j3(this,t,r,o,a,this.i-l(o,16).gc()>0);default:return new cp(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return xY(this)},h.Ek=function(){vn(this)},k(Gt,"EOperationImpl/2",1343),_(496,1,{2016:1,496:1},bnt),k(Gt,"EPackageImpl/1",496),_(14,82,ws,ke),h.gl=function(){return this.d},h.hl=function(){return this.b},h.kl=function(){return!0},h.b=0,k(Fr,"EObjectContainmentWithInverseEList",14),_(362,14,ws,TS),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentWithInverseEList/Resolving",362),_(313,362,ws,Xw),h.Li=function(){this.a.tb=null},k(Gt,"EPackageImpl/2",313),_(1255,1,{},fZt),k(Gt,"EPackageImpl/3",1255),_(728,44,LE,$ce),h._b=function(t){return zi(t)?TW(this,t):!!ts(this.f,t)},k(Gt,"EPackageRegistryImpl",728),_(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},rq),h.xh=function(t){return pbt(this,t)},h.Ih=function(t,r,o){var a,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),f=this.t,f>1||f==-1;case 7:return Dt(),c=this.s,c>=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((_t(),yv)),Nt((a=l(Vt(this,16),29),a||yv),t),r,o)},h.Ph=function(t,r,o){var a,c,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 10:return this.Cb&&(o=(c=this.Db>>16,c>=0?pbt(this,o):this.Cb.Qh(this,-1-c,null,o))),Sc(this,t,10,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),yv)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),yv)),t,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return aW(this,o);case 10:return Sc(this,null,10,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),yv)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),yv)),t,o)},h.Th=function(t){var r,o,a;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 a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return!!(this.Db>>16==10&&l(this.Cb,62))}return zc(this,t-ln((_t(),yv)),Nt((r=l(Vt(this,16),29),r||yv),t))},h.fi=function(){return _t(),yv},k(Gt,"EParameterImpl",507),_(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},Hde),h.Ih=function(t,r,o){var a,c,f,p;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Dt(),!!(this.Bb&256);case 3:return Dt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Dt(),p=this.t,p>1||p==-1;case 7:return Dt(),c=this.s,c>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Dt(),!!(this.Bb&Tl);case 11:return Dt(),!!(this.Bb&yp);case 12:return Dt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Dt(),!!(this.Bb&yu);case 16:return Dt(),!!(this.Bb&$f);case 17:return ny(this);case 18:return Dt(),!!(this.Bb&Ws);case 19:return Dt(),f=Po(this),!!(f&&f.Bb&Ws);case 20:return Dt(),!!(this.Bb&Co);case 21:return r?Po(this):this.b;case 22:return r?jge(this):glt(this);case 23:return!this.a&&(this.a=new oE(bv,this,23)),this.a}return qc(this,t-ln((_t(),w2)),Nt((a=l(Vt(this,16),29),a||w2),t),r,o)},h.Th=function(t){var r,o,a,c;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 c=this.t,c>1||c==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this);case 18:return(this.Bb&Ws)!=0;case 19:return a=Po(this),!!a&&(a.Bb&Ws)!=0;case 20:return(this.Bb&Co)==0;case 21:return!!this.b;case 22:return!!glt(this);case 23:return!!this.a&&this.a.i!=0}return zc(this,t-ln((_t(),w2)),Nt((r=l(Vt(this,16),29),r||w2),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:LW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:cy(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:D_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:Pun(this,Ye(Ke(r)));return;case 20:g1e(this,Ye(Ke(r)));return;case 21:hge(this,l(r,20));return;case 23:!this.a&&(this.a=new oE(bv,this,23)),vn(this.a),!this.a&&(this.a=new oE(bv,this,23)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),w2)),Nt((o=l(Vt(this,16),29),o||w2),t),r)},h.fi=function(){return _t(),w2},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:cy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:D_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:b1e(this,!1),ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),2);return;case 20:g1e(this,!0);return;case 21:hge(this,null);return;case 23:!this.a&&(this.a=new oE(bv,this,23)),vn(this.a);return}Jc(this,t-ln((_t(),w2)),Nt((r=l(Vt(this,16),29),r||w2),t))},h.mi=function(){jge(this),u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.sk=function(){return Po(this)},h.Zk=function(){var t;return t=Po(this),!!t&&(t.Bb&Ws)!=0},h.$k=function(){return(this.Bb&Ws)!=0},h._k=function(){return(this.Bb&Co)!=0},h.Wk=function(t,r){return this.c=null,o1e(this,t,r)},h.Ib=function(){var t;return this.Db&64?U7(this):(t=new ml(U7(this)),t.a+=" (containment: ",Zp(t,(this.Bb&Ws)!=0),t.a+=", resolveProxies: ",Zp(t,(this.Bb&Co)!=0),t.a+=")",t.a)},k(Gt,"EReferenceImpl",104),_(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},lqe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.kd=function(){return this.c},h.Hb=function(){return s0(this)},h.Ai=function(t){Won(this,In(t))},h.ld=function(t){return Pon(this,In(t))},h.Ih=function(t,r,o){var a;switch(t){case 0:return this.b;case 1:return this.c}return qc(this,t-ln((_t(),Oo)),Nt((a=l(Vt(this,16),29),a||Oo),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((_t(),Oo)),Nt((r=l(Vt(this,16),29),r||Oo),t))},h.$h=function(t,r){var o;switch(t){case 0:Kon(this,In(r));return;case 1:age(this,In(r));return}Xc(this,t-ln((_t(),Oo)),Nt((o=l(Vt(this,16),29),o||Oo),t),r)},h.fi=function(){return _t(),Oo},h.hi=function(t){var r;switch(t){case 0:lge(this,null);return;case 1:age(this,null);return}Jc(this,t-ln((_t(),Oo)),Nt((r=l(Vt(this,16),29),r||Oo),t))},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:lg(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: ",Vo(t,this.b),t.a+=", value: ",Vo(t,this.c),t.a+=")",t.a)},h.a=-1,h.b=null,h.c=null;var zs=k(Gt,"EStringToStringMapEntryImpl",553),hDt=Hr(Fr,"FeatureMap/Entry/Internal");_(569,1,XF),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:ae(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(),Rr(this.c)^(t==null?0:Rr(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()},k(Gt,"EStructuralFeatureImpl/BasicFeatureMapEntry",569),_(784,569,XF,tfe),h.wl=function(t){return new tfe(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return khn(this,t,this.a,r,o)},h.yl=function(t,r,o){return Nhn(this,t,this.a,r,o)},k(Gt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),_(1316,1,{},mnt),h.wk=function(t,r,o,a,c){var f;return f=l(p_(t,this.b),222),f.Wl(this.a).Dk(a)},h.xk=function(t,r,o,a,c){var f;return f=l(p_(t,this.b),222),f.Nl(this.a,a,c)},h.yk=function(t,r,o,a,c){var f;return f=l(p_(t,this.b),222),f.Ol(this.a,a,c)},h.zk=function(t,r,o){var a;return a=l(p_(t,this.b),222),a.Wl(this.a).Oj()},h.Ak=function(t,r,o,a){var c;c=l(p_(t,this.b),222),c.Wl(this.a).Wb(a)},h.Bk=function(t,r,o){return l(p_(t,this.b),222).Wl(this.a)},h.Ck=function(t,r,o){var a;a=l(p_(t,this.b),222),a.Wl(this.a).Ek()},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),_(90,1,{},rg,Db,og,Bb),h.wk=function(t,r,o,a,c){var f;if(f=r.ii(o),f==null&&r.ji(o,f=Q7(this,t)),!c)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,a,c){var f,p;return p=r.ii(o),p==null&&r.ji(o,p=Q7(this,t)),f=l(p,72).Uk(a,c),f},h.yk=function(t,r,o,a,c){var f;return f=r.ii(o),f!=null&&(c=l(f,72).Vk(a,c)),c},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null&&l(a,78).Oj()},h.Ak=function(t,r,o,a){var c;c=l(r.ii(o),78),!c&&r.ji(o,c=Q7(this,t)),c.Wb(a)},h.Bk=function(t,r,o){var a,c;return c=r.ii(o),c==null&&r.ji(o,c=Q7(this,t)),ae(c,78)?l(c,78):(a=l(r.ii(o),16),new oZe(a))},h.Ck=function(t,r,o){var a;a=l(r.ii(o),78),!a&&r.ji(o,a=Q7(this,t)),a.Ek()},h.b=0,h.e=0,k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateMany",90),_(502,1,{}),h.xk=function(t,r,o,a,c){throw Y(new Nn)},h.yk=function(t,r,o,a,c){throw Y(new Nn)},h.Bk=function(t,r,o){return new mat(this,t,r,o)};var Dh;k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),_(1333,1,vQ,mat),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,k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333),_(777,502,{},Mhe),h.wk=function(t,r,o,a,c){return EJ(t,t.Mh(),t.Ch())==this.b?this._k()&&a?cJ(t):t.Mh():null},h.xk=function(t,r,o,a,c){var f,p;return t.Mh()&&(c=(f=t.Ch(),f>=0?t.xh(c):t.Mh().Qh(t,-1-f,null,c))),p=Ur(t.Ah(),this.e),t.zh(a,p,c)},h.yk=function(t,r,o,a,c){var f;return f=Ur(t.Ah(),this.e),t.zh(null,f,c)},h.zk=function(t,r,o){var a;return a=Ur(t.Ah(),this.e),!!t.Mh()&&t.Ch()==a},h.Ak=function(t,r,o,a){var c,f,p,m,y;if(a!=null&&!_J(this.a,a))throw Y(new MA(ZF+(ae(a,57)?Abe(l(a,57).Ah()):Gpe(rc(a)))+QF+this.a+"'"));if(c=t.Mh(),p=Ur(t.Ah(),this.e),me(a)!==me(c)||t.Ch()!=p&&a!=null){if(z_(t,l(a,57)))throw Y(new jt(oI+t.Ib()));y=null,c&&(y=(f=t.Ch(),f>=0?t.xh(y):t.Mh().Qh(t,-1-f,null,y))),m=l(a,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,a,a))},h.Ck=function(t,r,o){var a,c,f,p;a=t.Mh(),a?(p=(c=t.Ch(),c>=0?t.xh(null):t.Mh().Qh(t,-1-c,null,null)),f=Ur(t.Ah(),this.e),p=t.zh(null,f,p),p&&p.mj()):t.sh()&&t.th()&&hr(t,new N3(t,1,this.e,null,null))},h._k=function(){return!1},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),_(1317,777,{},uot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317),_(567,502,{}),h.wk=function(t,r,o,a,c){var f;return f=r.ii(o),f==null?this.b:me(f)===me(Dh)?null:f},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null&&(me(a)===me(Dh)||!pr(a,this.b))},h.Ak=function(t,r,o,a){var c,f;t.sh()&&t.th()?(c=(f=r.ii(o),f==null?this.b:me(f)===me(Dh)?null:f),a==null?this.c!=null?(r.ji(o,null),a=this.b):this.b!=null?r.ji(o,Dh):r.ji(o,null):(this.zl(a),r.ji(o,a)),hr(t,this.d.Al(t,1,this.e,c,a))):a==null?this.c!=null?r.ji(o,null):this.b!=null?r.ji(o,Dh):r.ji(o,null):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,c;t.sh()&&t.th()?(a=(c=r.ii(o),c==null?this.b:me(c)===me(Dh)?null:c),r.ki(o),hr(t,this.d.Al(t,1,this.e,a,this.b))):r.ki(o)},h.zl=function(t){throw Y(new gZe)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),_(HE,1,{},dqe),h.Al=function(t,r,o,a,c){return new N3(t,r,o,a,c)},h.Bl=function(t,r,o,a,c,f){return new EW(t,r,o,a,c,f)};var R3e,O3e,L3e,D3e,M3e,P3e,j3e,Bre,F3e;k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",HE),_(1334,HE,{},fqe),h.Al=function(t,r,o,a,c){return new gpe(t,r,o,Ye(Ke(a)),Ye(Ke(c)))},h.Bl=function(t,r,o,a,c,f){return new Kut(t,r,o,Ye(Ke(a)),Ye(Ke(c)),f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),_(1335,HE,{},hqe),h.Al=function(t,r,o,a,c){return new Kpe(t,r,o,l(a,224).a,l(c,224).a)},h.Bl=function(t,r,o,a,c,f){return new Uut(t,r,o,l(a,224).a,l(c,224).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),_(1336,HE,{},pqe),h.Al=function(t,r,o,a,c){return new Ype(t,r,o,l(a,183).a,l(c,183).a)},h.Bl=function(t,r,o,a,c,f){return new Hut(t,r,o,l(a,183).a,l(c,183).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),_(1337,HE,{},gqe),h.Al=function(t,r,o,a,c){return new hpe(t,r,o,ue(le(a)),ue(le(c)))},h.Bl=function(t,r,o,a,c,f){return new zut(t,r,o,ue(le(a)),ue(le(c)),f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),_(1338,HE,{},bqe),h.Al=function(t,r,o,a,c){return new Zpe(t,r,o,l(a,165).a,l(c,165).a)},h.Bl=function(t,r,o,a,c,f){return new Gut(t,r,o,l(a,165).a,l(c,165).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),_(1339,HE,{},mqe),h.Al=function(t,r,o,a,c){return new ppe(t,r,o,l(a,15).a,l(c,15).a)},h.Bl=function(t,r,o,a,c,f){return new qut(t,r,o,l(a,15).a,l(c,15).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),_(1340,HE,{},wqe),h.Al=function(t,r,o,a,c){return new Jpe(t,r,o,l(a,192).a,l(c,192).a)},h.Bl=function(t,r,o,a,c,f){return new Vut(t,r,o,l(a,192).a,l(c,192).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),_(1341,HE,{},yqe),h.Al=function(t,r,o,a,c){return new Xpe(t,r,o,l(a,193).a,l(c,193).a)},h.Bl=function(t,r,o,a,c,f){return new Wut(t,r,o,l(a,193).a,l(c,193).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),_(1319,567,{},Eat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(ZF+rc(t)+QF+this.a+"'"))},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),_(1320,567,{},ist),h.zl=function(t){},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320),_(778,567,{}),h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null},h.Ak=function(t,r,o,a){var c,f;t.sh()&&t.th()?(c=!0,f=r.ii(o),f==null?(c=!1,f=this.b):me(f)===me(Dh)&&(f=null),a==null?this.c!=null?(r.ji(o,null),a=this.b):r.ji(o,Dh):(this.zl(a),r.ji(o,a)),hr(t,this.d.Bl(t,1,this.e,f,a,!c))):a==null?this.c!=null?r.ji(o,null):r.ji(o,Dh):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,c;t.sh()&&t.th()?(a=!0,c=r.ii(o),c==null?(a=!1,c=this.b):me(c)===me(Dh)&&(c=null),r.ki(o),hr(t,this.d.Bl(t,2,this.e,c,this.b,a))):r.ki(o)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778),_(1321,778,{},Sat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(ZF+rc(t)+QF+this.a+"'"))},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),_(1322,778,{},ost),h.zl=function(t){},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),_(407,502,{},cP),h.wk=function(t,r,o,a,c){var f,p,m,y,v;if(v=r.ii(o),this.rk()&&me(v)===me(Dh))return null;if(this._k()&&a&&v!=null){if(m=l(v,52),m.Sh()&&(y=w1(t,m),m!=y)){if(!_J(this.a,y))throw Y(new MA(ZF+rc(y)+QF+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 N3(t,9,this.e,m,y))}return v}else return v},h.xk=function(t,r,o,a,c){var f,p;return p=r.ii(o),me(p)===me(Dh)&&(p=null),r.ji(o,a),this.Kj()?me(p)!==me(a)&&p!=null&&(f=l(p,52),c=f.Qh(t,Ur(f.Ah(),this.b),null,c)):this.$k()&&p!=null&&(c=l(p,52).Qh(t,-1-Ur(t.Ah(),this.e),null,c)),t.sh()&&t.th()&&(!c&&(c=new Qg(4)),c.lj(new N3(t,1,this.e,p,a))),c},h.yk=function(t,r,o,a,c){var f;return f=r.ii(o),me(f)===me(Dh)&&(f=null),r.ki(o),t.sh()&&t.th()&&(!c&&(c=new Qg(4)),this.rk()?c.lj(new N3(t,2,this.e,f,null)):c.lj(new N3(t,1,this.e,f,null))),c},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null},h.Ak=function(t,r,o,a){var c,f,p,m,y;if(a!=null&&!_J(this.a,a))throw Y(new MA(ZF+(ae(a,57)?Abe(l(a,57).Ah()):Gpe(rc(a)))+QF+this.a+"'"));y=r.ii(o),m=y!=null,this.rk()&&me(y)===me(Dh)&&(y=null),p=null,this.Kj()?me(y)!==me(a)&&(y!=null&&(c=l(y,52),p=c.Qh(t,Ur(c.Ah(),this.b),null,p)),a!=null&&(c=l(a,52),p=c.Oh(t,Ur(c.Ah(),this.b),null,p))):this.$k()&&me(y)!==me(a)&&(y!=null&&(p=l(y,52).Qh(t,-1-Ur(t.Ah(),this.e),null,p)),a!=null&&(p=l(a,52).Oh(t,-1-Ur(t.Ah(),this.e),null,p))),a==null&&this.rk()?r.ji(o,Dh):r.ji(o,a),t.sh()&&t.th()?(f=new EW(t,1,this.e,y,a,this.rk()&&!m),p?(p.lj(f),p.mj()):hr(t,f)):p&&p.mj()},h.Ck=function(t,r,o){var a,c,f,p,m;m=r.ii(o),p=m!=null,this.rk()&&me(m)===me(Dh)&&(m=null),f=null,m!=null&&(this.Kj()?(a=l(m,52),f=a.Qh(t,Ur(a.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()?(c=new EW(t,this.rk()?2:1,this.e,m,null,p),f?(f.lj(c),f.mj()):hr(t,c)):f&&f.mj()},h.Kj=function(){return!1},h.$k=function(){return!1},h._k=function(){return!1},h.rk=function(){return!1},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407),_(568,407,{},SV),h.$k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),_(1325,568,{},nit),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),_(780,568,{},Fde),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),_(1327,780,{},rit),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),_(645,568,{},jV),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),_(1326,645,{},cot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),_(781,645,{},Tfe),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),_(1328,781,{},lot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),_(646,407,{},$de),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),_(1329,646,{},oit),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),_(782,646,{},Efe),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),_(1330,782,{},dot),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),_(1323,407,{},iit),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),_(779,407,{},Sfe),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),_(1324,779,{},fot),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),_(783,569,XF,phe),h.wl=function(t){return new phe(this.a,this.c,t)},h.kd=function(){return this.b},h.xl=function(t,r,o){return _dn(this,t,this.b,o)},h.yl=function(t,r,o){return xdn(this,t,this.b,o)},k(Gt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),_(1331,1,vQ,oZe),h.Dk=function(t){return this.a},h.Oj=function(){return ae(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(){ae(this.a,98)?l(this.a,98).Ek():this.a.$b()},k(Gt,"EStructuralFeatureImpl/SettingMany",1331),_(1332,569,XF,Uct),h.vl=function(t){return new kV((Tr(),j4),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},k(Gt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332),_(647,569,XF,kV),h.vl=function(t){return new kV(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},k(Gt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647),_(399,495,Vf,NA),h.$i=function(t){return we(Ol,Rt,29,t,0,1)},h.Wi=function(){return!1},k(Gt,"ESuperAdapter/1",399),_(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},MG),h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new A3(this,Go,this)),this.a}return qc(this,t-ln((_t(),fw)),Nt((a=l(Vt(this,16),29),a||fw),t),r,o)},h.Rh=function(t,r,o){var a,c;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 2:return!this.a&&(this.a=new A3(this,Go,this)),_o(this.a,t,o)}return c=l(Nt((a=l(Vt(this,16),29),a||(_t(),fw)),r),69),c.uk().yk(this,Ha(this),r-ln((_t(),fw)),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((_t(),fw)),Nt((r=l(Vt(this,16),29),r||fw),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:!this.a&&(this.a=new A3(this,Go,this)),vn(this.a),!this.a&&(this.a=new A3(this,Go,this)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),fw)),Nt((o=l(Vt(this,16),29),o||fw),t),r)},h.fi=function(){return _t(),fw},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:!this.a&&(this.a=new A3(this,Go,this)),vn(this.a);return}Jc(this,t-ln((_t(),fw)),Nt((r=l(Vt(this,16),29),r||fw),t))},k(Gt,"ETypeParameterImpl",449),_(450,82,ws,A3),h.Lj=function(t,r){return vwn(this,l(t,88),r)},h.Mj=function(t,r){return Ewn(this,l(t,88),r)},k(Gt,"ETypeParameterImpl/1",450),_(644,44,LE,iq),h.ec=function(){return new N9(this)},k(Gt,"ETypeParameterImpl/2",644),_(564,tf,wu,N9),h.Ec=function(t){return $it(this,l(t,88))},h.Fc=function(t){var r,o,a;for(a=!1,o=t.Jc();o.Ob();)r=l(o.Pb(),88),Jn(this.a,r,"")==null&&(a=!0);return a},h.$b=function(){Zs(this.a)},h.Gc=function(t){return ma(this.a,t)},h.Jc=function(){var t;return t=new dy(new Lw(this.a).a),new C9(t)},h.Kc=function(t){return Clt(this,t)},h.gc=function(){return WN(this.a)},k(Gt,"ETypeParameterImpl/2/1",564),_(565,1,Wi,C9),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(gE(this.a).jd(),88)},h.Ob=function(){return this.a.b},h.Qb=function(){Udt(this.a)},k(Gt,"ETypeParameterImpl/2/1/1",565),_(1293,44,LE,KZe),h._b=function(t){return zi(t)?TW(this,t):!!ts(this.f,t)},h.xc=function(t){var r,o;return r=zi(t)?wa(this,t):Ss(ts(this.f,t)),ae(r,843)?(o=l(r,843),r=o.Ik(),Jn(this,l(t,244),r),r):r??(t==null?(Tq(),gDt):null)},k(Gt,"EValidatorRegistryImpl",1293),_(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},vqe),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:ms(r);case 25:return Mfn(r);case 27:return Jdn(r);case 28:return Xdn(r);case 29:return r==null?null:art(R4[0],l(r,208));case 41:return r==null?"":Ab(l(r,299));case 42:return ms(r);case 50:return In(r);default:throw Y(new jt(Lx+t.ve()+W0))}},h.pi=function(t){var r,o,a,c,f,p,m,y,v,T,N,O,M,U,z,J;switch(t.G==-1&&(t.G=(O=mc(t),O?gg(O.si(),t):-1)),t.G){case 0:return o=new tq,o;case 1:return r=new Hue,r;case 2:return a=new Wue,a;case 4:return c=new I9,c;case 5:return f=new WZe,f;case 6:return p=new lZe,p;case 7:return m=new Vue,m;case 10:return v=new y9,v;case 11:return T=new nq,T;case 12:return N=new Lat,N;case 13:return M=new rq,M;case 14:return U=new Hde,U;case 17:return z=new lqe,z;case 18:return y=new Ym,y;case 19:return J=new MG,J;default:throw Y(new jt(iQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 20:return r==null?null:new ale(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:p6(Ec(r,-128,127)<<24>>24);case 25:return PEn(r);case 27:return wmn(r);case 28:return ymn(r);case 29:return Bwn(r);case 32:case 31:return r==null?null:vy(r);case 38:case 37:return r==null?null:new Ice(r);case 40:case 39:return r==null?null:Re(Ec(r,Qi,sr));case 41:return null;case 42:return r==null,null;case 44:case 43:return r==null?null:my(Z7(r));case 49:case 48:return r==null?null:L_(Ec(r,e$,32767)<<16>>16);case 50:return r;default:throw Y(new jt(Lx+t.ve()+W0))}},k(Gt,"EcoreFactoryImpl",1315),_(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},eat),h.gb=!1,h.hb=!1;var $3e,pDt=!1;k(Gt,"EcorePackageImpl",552),_(1211,1,{843:1},Eqe),h.Ik=function(){return Mrt(),bDt},k(Gt,"EcorePackageImpl/1",1211),_(1220,1,tr,Sqe),h.dk=function(t){return ae(t,159)},h.ek=function(t){return we(r5,Rt,159,t,0,1)},k(Gt,"EcorePackageImpl/10",1220),_(1221,1,tr,Tqe),h.dk=function(t){return ae(t,199)},h.ek=function(t){return we(Rre,Rt,199,t,0,1)},k(Gt,"EcorePackageImpl/11",1221),_(1222,1,tr,Aqe),h.dk=function(t){return ae(t,57)},h.ek=function(t){return we(Y1,Rt,57,t,0,1)},k(Gt,"EcorePackageImpl/12",1222),_(1223,1,tr,_qe),h.dk=function(t){return ae(t,408)},h.ek=function(t){return we(Ll,CEe,62,t,0,1)},k(Gt,"EcorePackageImpl/13",1223),_(1224,1,tr,xqe),h.dk=function(t){return ae(t,244)},h.ek=function(t){return we(Ld,Rt,244,t,0,1)},k(Gt,"EcorePackageImpl/14",1224),_(1225,1,tr,kqe),h.dk=function(t){return ae(t,507)},h.ek=function(t){return we(lw,Rt,2095,t,0,1)},k(Gt,"EcorePackageImpl/15",1225),_(1226,1,tr,Nqe),h.dk=function(t){return ae(t,104)},h.ek=function(t){return we(mv,UE,20,t,0,1)},k(Gt,"EcorePackageImpl/16",1226),_(1227,1,tr,Cqe),h.dk=function(t){return ae(t,182)},h.ek=function(t){return we(au,UE,182,t,0,1)},k(Gt,"EcorePackageImpl/17",1227),_(1228,1,tr,Iqe),h.dk=function(t){return ae(t,473)},h.ek=function(t){return we(gv,Rt,473,t,0,1)},k(Gt,"EcorePackageImpl/18",1228),_(1229,1,tr,Rqe),h.dk=function(t){return ae(t,553)},h.ek=function(t){return we(zs,PAt,553,t,0,1)},k(Gt,"EcorePackageImpl/19",1229),_(1212,1,tr,Oqe),h.dk=function(t){return ae(t,336)},h.ek=function(t){return we(bv,UE,38,t,0,1)},k(Gt,"EcorePackageImpl/2",1212),_(1230,1,tr,Lqe),h.dk=function(t){return ae(t,251)},h.ek=function(t){return we(Go,QAt,88,t,0,1)},k(Gt,"EcorePackageImpl/20",1230),_(1231,1,tr,Dqe),h.dk=function(t){return ae(t,449)},h.ek=function(t){return we(Ka,Rt,842,t,0,1)},k(Gt,"EcorePackageImpl/21",1231),_(1232,1,tr,Mqe),h.dk=function(t){return Bw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(Gt,"EcorePackageImpl/22",1232),_(1233,1,tr,Pqe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Gt,"EcorePackageImpl/23",1233),_(1234,1,tr,jqe),h.dk=function(t){return ae(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(Gt,"EcorePackageImpl/24",1234),_(1235,1,tr,Fqe),h.dk=function(t){return ae(t,183)},h.ek=function(t){return we(mI,Pe,183,t,0,1)},k(Gt,"EcorePackageImpl/25",1235),_(1236,1,tr,$qe),h.dk=function(t){return ae(t,208)},h.ek=function(t){return we(l$,Pe,208,t,0,1)},k(Gt,"EcorePackageImpl/26",1236),_(1237,1,tr,Bqe),h.dk=function(t){return!1},h.ek=function(t){return we(rCe,Rt,2191,t,0,1)},k(Gt,"EcorePackageImpl/27",1237),_(1238,1,tr,Uqe),h.dk=function(t){return Uw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(Gt,"EcorePackageImpl/28",1238),_(1239,1,tr,Hqe),h.dk=function(t){return ae(t,61)},h.ek=function(t){return we(w3e,Oy,61,t,0,1)},k(Gt,"EcorePackageImpl/29",1239),_(1213,1,tr,zqe),h.dk=function(t){return ae(t,508)},h.ek=function(t){return we(Kn,{3:1,4:1,5:1,2012:1},594,t,0,1)},k(Gt,"EcorePackageImpl/3",1213),_(1240,1,tr,Gqe),h.dk=function(t){return ae(t,575)},h.ek=function(t){return we(E3e,Rt,2018,t,0,1)},k(Gt,"EcorePackageImpl/30",1240),_(1241,1,tr,qqe),h.dk=function(t){return ae(t,164)},h.ek=function(t){return we(G3e,Oy,164,t,0,1)},k(Gt,"EcorePackageImpl/31",1241),_(1242,1,tr,Vqe),h.dk=function(t){return ae(t,76)},h.ek=function(t){return we(TU,u_t,76,t,0,1)},k(Gt,"EcorePackageImpl/32",1242),_(1243,1,tr,Wqe),h.dk=function(t){return ae(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(Gt,"EcorePackageImpl/33",1243),_(1244,1,tr,Kqe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Gt,"EcorePackageImpl/34",1244),_(1245,1,tr,Yqe),h.dk=function(t){return ae(t,299)},h.ek=function(t){return we(HEe,Rt,299,t,0,1)},k(Gt,"EcorePackageImpl/35",1245),_(1246,1,tr,Jqe),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Gt,"EcorePackageImpl/36",1246),_(1247,1,tr,Xqe),h.dk=function(t){return ae(t,93)},h.ek=function(t){return we(zEe,Rt,93,t,0,1)},k(Gt,"EcorePackageImpl/37",1247),_(1248,1,tr,Zqe),h.dk=function(t){return ae(t,595)},h.ek=function(t){return we(B3e,Rt,595,t,0,1)},k(Gt,"EcorePackageImpl/38",1248),_(1249,1,tr,Qqe),h.dk=function(t){return!1},h.ek=function(t){return we(iCe,Rt,2192,t,0,1)},k(Gt,"EcorePackageImpl/39",1249),_(1214,1,tr,eVe),h.dk=function(t){return ae(t,89)},h.ek=function(t){return we(Ol,Rt,29,t,0,1)},k(Gt,"EcorePackageImpl/4",1214),_(1250,1,tr,tVe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Gt,"EcorePackageImpl/40",1250),_(1251,1,tr,nVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Gt,"EcorePackageImpl/41",1251),_(1252,1,tr,rVe),h.dk=function(t){return ae(t,592)},h.ek=function(t){return we(v3e,Rt,592,t,0,1)},k(Gt,"EcorePackageImpl/42",1252),_(1253,1,tr,iVe),h.dk=function(t){return!1},h.ek=function(t){return we(oCe,Pe,2193,t,0,1)},k(Gt,"EcorePackageImpl/43",1253),_(1254,1,tr,oVe),h.dk=function(t){return ae(t,45)},h.ek=function(t){return we(dm,tF,45,t,0,1)},k(Gt,"EcorePackageImpl/44",1254),_(1215,1,tr,sVe),h.dk=function(t){return ae(t,146)},h.ek=function(t){return we(Dd,Rt,146,t,0,1)},k(Gt,"EcorePackageImpl/5",1215),_(1216,1,tr,aVe),h.dk=function(t){return ae(t,160)},h.ek=function(t){return we(jre,Rt,160,t,0,1)},k(Gt,"EcorePackageImpl/6",1216),_(1217,1,tr,uVe),h.dk=function(t){return ae(t,462)},h.ek=function(t){return we(SU,Rt,682,t,0,1)},k(Gt,"EcorePackageImpl/7",1217),_(1218,1,tr,cVe),h.dk=function(t){return ae(t,575)},h.ek=function(t){return we(Op,Rt,691,t,0,1)},k(Gt,"EcorePackageImpl/8",1218),_(1219,1,tr,lVe),h.dk=function(t){return ae(t,472)},h.ek=function(t){return we(I4,Rt,472,t,0,1)},k(Gt,"EcorePackageImpl/9",1219),_(1030,2059,MAt,wQe),h.Ki=function(t,r){hgn(this,l(r,420))},h.Oi=function(t,r){$mt(this,t,l(r,420))},k(Gt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),_(1031,152,qL,zst),h.hj=function(){return this.a.a},k(Gt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),_(1058,1057,{},Znt),k("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var B3e=Hr(c_t,"Resource");_(793,1502,l_t),h.Fl=function(t){},h.Gl=function(t){},h.Cl=function(){return!this.a&&(this.a=new YG(this)),this.a},h.Dl=function(t){var r,o,a,c,f;if(a=t.length,a>0)if(Yt(0,t.length),t.charCodeAt(0)==47){for(f=new La(4),c=1,r=1;r0&&(t=(io(0,o,t.length),t.substr(0,o))));return kvn(this,t)},h.El=function(){return this.c},h.Ib=function(){var t;return Ab(this.Pm)+"@"+(t=Rr(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},h.b=!1,k(EQ,"ResourceImpl",793),_(1503,793,l_t,sZe),k(EQ,"BinaryResourceImpl",1503),_(1171,704,gQ),h._i=function(t){return ae(t,57)?Yan(this,l(t,57)):ae(t,595)?new tn(l(t,595).Cl()):me(t)===me(this.f)?l(t,18).Jc():(JA(),c5.a)},h.Ob=function(){return wme(this)},h.a=!1,k(Fr,"EcoreUtil/ContentTreeIterator",1171),_(1504,1171,gQ,wst),h._i=function(t){return me(t)===me(this.f)?l(t,16).Jc():new Act(l(t,57))},k(EQ,"ResourceImpl/5",1504),_(654,2071,ZAt,YG),h.Gc=function(t){return this.i<=4?q_(this,t):ae(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):ZW(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 we(Y1,Rt,57,t,0,1)},h.Wi=function(){return!1},k(EQ,"ResourceImpl/ContentsEList",654),_(962,2041,lx,aZe),h.dd=function(t){return this.a.Ii(t)},h.gc=function(){return this.a.gc()},k(Fr,"AbstractSequentialInternalEList/1",962);var U3e,H3e,ao,z3e;_(632,1,{},kot);var AU,_U;k(Fr,"BasicExtendedMetaData",632),_(1162,1,{},wnt),h.Hl=function(){return null},h.Il=function(){return this.a==-2&&OZt(this,Lwn(this.d,this.b)),this.a},h.Jl=function(){return null},h.Kl=function(){return At(),At(),Io},h.ve=function(){return this.c==jx&&LZt(this,r1t(this.d,this.b)),this.c},h.Ll=function(){return 0},h.a=-2,h.c=jx,k(Fr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),_(1163,1,{},Jut),h.Hl=function(){return this.a==(h_(),AU)&&PZt(this,ETn(this.f,this.b)),this.a},h.Il=function(){return 0},h.Jl=function(){return this.c==(h_(),AU)&&DZt(this,STn(this.f,this.b)),this.c},h.Kl=function(){return!this.d&&FZt(this,o_n(this.f,this.b)),this.d},h.ve=function(){return this.e==jx&&BZt(this,r1t(this.f,this.b)),this.e},h.Ll=function(){return this.g==-2&&HZt(this,Q0n(this.f,this.b)),this.g},h.e=jx,h.g=-2,k(Fr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),_(1161,1,{},vnt),h.b=!1,h.c=!1,k(Fr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),_(1164,1,{},Xut),h.c=-2,h.e=jx,h.f=jx,k(Fr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),_(588,630,ws,Z8),h.Jj=function(){return this.c},h.ml=function(){return!1},h.Ui=function(t,r){return r},h.c=0,k(Fr,"EDataTypeEList",588);var G3e=Hr(Fr,"FeatureMap");_(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){H2n(this,t,l(r,76))},h.Ec=function(t){return o2n(this,l(t,76))},h.Fi=function(t){Xsn(this,l(t,76))},h.Lj=function(t,r){return prn(this,l(t,76),r)},h.Mj=function(t,r){return ffe(this,l(t,76),r)},h.Ri=function(t,r){return fAn(this,t,r)},h.Ui=function(t,r){return nkn(this,t,l(r,76))},h.fd=function(t,r){return kSn(this,t,l(r,76))},h.Sj=function(t,r){return grn(this,l(t,76),r)},h.Tj=function(t,r){return Vit(this,l(t,76),r)},h.Uj=function(t,r,o){return z0n(this,l(t,76),l(r,76),o)},h.Xi=function(t,r){return qY(this,t,l(r,76))},h.Ml=function(t,r){return f0e(this,t,r)},h.ad=function(t,r){var o,a,c,f,p,m,y,v,T;for(v=new w0(r.gc()),c=r.Jc();c.Ob();)if(a=l(c.Pb(),76),f=a.Jk(),wp(this.e,f))(!f.Qi()||!HP(this,f,a.kd())&&!q_(v,a))&&Tn(v,a);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},k(Fr,"BasicFeatureMap/FeatureEIterator",417),_(673,417,vh,sV),h.sl=function(){return!0},k(Fr,"BasicFeatureMap/ResolvingFeatureEIterator",673),_(960,485,YF,drt),h.nj=function(){return this},k(Fr,"EContentsEList/1",960),_(961,485,YF,Dnt),h.sl=function(){return!1},k(Fr,"EContentsEList/2",961),_(959,289,JF,frt),h.ul=function(t){},h.Ob=function(){return!1},h.Sb=function(){return!1},k(Fr,"EContentsEList/FeatureIteratorImpl/1",959),_(832,588,ws,yde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EDataTypeEList/Unsettable",832),_(1937,588,ws,vrt),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList",1937),_(1938,832,ws,wrt),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList/Unsettable",1938),_(147,82,ws,du),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Resolving",147),_(1165,547,ws,mrt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Unsettable/Resolving",1165),_(760,14,ws,ofe),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EObjectContainmentWithInverseEList/Unsettable",760),_(1199,760,ws,Lit),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),_(752,494,ws,wde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EObjectEList/Unsettable",752),_(340,494,ws,oE),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList",340),_(1842,752,ws,yrt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList/Unsettable",1842),_(1505,1,{},dVe);var gDt;k(Fr,"EObjectValidator",1505),_(551,494,ws,mP),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,k(Fr,"EObjectWithInverseEList",551),_(1202,551,ws,Dit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/ManyInverse",1202),_(633,551,ws,NV),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EObjectWithInverseEList/Unsettable",633),_(1201,633,ws,Mit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),_(761,551,ws,sfe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList",761),_(31,761,ws,Tt),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/ManyInverse",31),_(762,633,ws,afe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList/Unsettable",762),_(1200,762,ws,Pit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),_(1166,630,ws),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&yp)!=0},h.$k=function(){return(this.b&32)!=0},h.ml=function(){return(this.b&Tl)!=0},h.dk=function(t){return this.d?Oct(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&&(Ju(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,k(Fr,"EcoreEList/Generic",1166),_(1167,1166,ws,Oat),h.Jk=function(){return this.a},k(Fr,"EcoreEList/Dynamic",1167),_(759,67,Vf,_ce),h.$i=function(t){return y6(this.a.a,t)},k(Fr,"EcoreEMap/1",759),_(758,82,ws,the),h.Ki=function(t,r){c7(this.b,l(r,138))},h.Mi=function(t,r){Fht(this.b)},h.Ni=function(t,r,o){var a;++(a=this.b,l(r,138),a).e},h.Oi=function(t,r){QK(this.b,l(r,138))},h.Pi=function(t,r,o){QK(this.b,l(o,138)),me(o)===me(r)&&l(o,138).zi(vtn(l(r,138).jd())),c7(this.b,l(r,138))},k(Fr,"EcoreEMap/DelegateEObjectContainmentEList",758),_(1197,145,NEe,Kft),k(Fr,"EcoreEMap/Unsettable",1197),_(1198,758,ws,jit),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(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,k(Fr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),_(1170,226,LE,Fst),h.a=!1,h.b=!1,k(Fr,"EcoreUtil/Copier",1170),_(754,1,Wi,Act),h.Nb=function(t){so(this,t)},h.Ob=function(){return jgt(this)},h.Pb=function(){var t;return jgt(this),t=this.b,this.b=null,t},h.Qb=function(){this.a.Qb()},k(Fr,"EcoreUtil/ProperContentIterator",754),_(1506,1505,{},fKe);var bDt;k(Fr,"EcoreValidator",1506);var mDt;Hr(Fr,"FeatureMapUtil/Validator"),_(1270,1,{2020:1},fVe),h.$l=function(t){return!0},k(Fr,"FeatureMapUtil/1",1270),_(767,1,{2020:1},q0e),h.$l=function(t){var r;return this.c==t?!0:(r=Ke(Ht(this.a,t)),r==null?kTn(this,t)?(vlt(this.a,t,(Dt(),Bx)),!0):(vlt(this.a,t,(Dt(),L1)),!1):r==(Dt(),Bx))},h.e=!1;var Ure;k(Fr,"FeatureMapUtil/BasicValidator",767),_(768,44,LE,gde),k(Fr,"FeatureMapUtil/BasicValidator/Cache",768),_(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},xO),h._c=function(t,r){Pwt(this.c,this.b,t,r)},h.Ec=function(t){return f0e(this.c,this.b,t)},h.ad=function(t,r){return K_n(this.c,this.b,t,r)},h.Fc=function(t){return m3(this,t)},h.Ei=function(t,r){Efn(this.c,this.b,t,r)},h.Uk=function(t,r){return i0e(this.c,this.b,t,r)},h.Yi=function(t){return W7(this.c,this.b,t,!1)},h.Gi=function(){return Knt(this.c,this.b)},h.Hi=function(){return rtn(this.c,this.b)},h.Ii=function(t){return kdn(this.c,this.b,t)},h.Vk=function(t,r){return yit(this,t,r)},h.$b=function(){iS(this)},h.Gc=function(t){return HP(this.c,this.b,t)},h.Hc=function(t){return _hn(this.c,this.b,t)},h.Xb=function(t){return W7(this.c,this.b,t,!0)},h.Dk=function(t){return this},h.bd=function(t){return jln(this.c,this.b,t)},h.dc=function(){return x8(this)},h.Oj=function(){return!F6(this.c,this.b)},h.Jc=function(){return afn(this.c,this.b)},h.cd=function(){return ufn(this.c,this.b)},h.dd=function(t){return Cgn(this.c,this.b,t)},h.Ri=function(t,r){return evt(this.c,this.b,t,r)},h.Si=function(t,r){Cdn(this.c,this.b,t,r)},h.ed=function(t){return Amt(this.c,this.b,t)},h.Kc=function(t){return XTn(this.c,this.b,t)},h.fd=function(t,r){return lvt(this.c,this.b,t,r)},h.Wb=function(t){N7(this.c,this.b),m3(this,l(t,16))},h.gc=function(){return Ign(this.c,this.b)},h.Nc=function(){return Pcn(this.c,this.b)},h.Oc=function(t){return Fln(this.c,this.b,t)},h.Ib=function(){var t,r;for(r=new Xp,r.a+="[",t=Knt(this.c,this.b);HK(t);)Vo(r,y3(a7(t))),HK(t)&&(r.a+=ja);return r.a+="]",r.a},h.Ek=function(){N7(this.c,this.b)},k(Fr,"FeatureMapUtil/FeatureEList",499),_(641,40,qL,HW),h.fj=function(t){return sC(this,t)},h.kj=function(t){var r,o,a,c,f,p,m;switch(this.d){case 1:case 2:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(c=t.ej(),c){case 3:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return this.d=5,r=new w0(2),Tn(r,this.g),Tn(r,t.gj()),this.g=r,!0;break}}break}case 5:{switch(c=t.ej(),c){case 3:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return o=l(this.g,18),o.Ec(t.gj()),!0;break}}break}case 4:{switch(c=t.ej(),c){case 3:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return this.d=6,m=new w0(2),Tn(m,this.n),Tn(m,t.ij()),this.n=m,p=Z(X(Rn,1),Qn,30,15,[this.o,t.jj()]),this.g=p,!0;break}}break}case 6:{switch(c=t.ej(),c){case 4:{if(f=t.hj(),me(f)===me(this.c)&&sC(this,null)==t.fj(null))return o=l(this.n,18),o.Ec(t.ij()),p=l(this.g,54),a=we(Rn,Qn,30,p.length+1,15,1),ua(p,0,a,0,p.length),a[p.length]=t.jj(),this.g=a,!0;break}}break}}return!1},k(Fr,"FeatureMapUtil/FeatureENotificationImpl",641),_(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},nP),h.Ml=function(t,r){return f0e(this.c,t,r)},h.Nl=function(t,r,o){return i0e(this.c,t,r,o)},h.Ol=function(t,r,o){return L0e(this.c,t,r,o)},h.Pl=function(){return this},h.Ql=function(t,r){return lL(this.c,t,r)},h.Rl=function(t){return l(W7(this.c,this.b,t,!1),76).Jk()},h.Sl=function(t){return l(W7(this.c,this.b,t,!1),76).kd()},h.Tl=function(){return this.a},h.Ul=function(t){return!F6(this.c,t)},h.Vl=function(t,r){K7(this.c,t,r)},h.Wl=function(t){return iht(this.c,t)},h.Xl=function(t){H1t(this.c,t)},k(Fr,"FeatureMapUtil/FeatureFeatureMap",560),_(1269,1,vQ,ynt),h.Dk=function(t){return W7(this.b,this.a,-1,t)},h.Oj=function(){return!F6(this.b,this.a)},h.Wb=function(t){K7(this.b,this.a,t)},h.Ek=function(){N7(this.b,this.a)},k(Fr,"FeatureMapUtil/FeatureValue",1269);var JT,Hre,zre,XT,wDt,d5=Hr(i$,"AnyType");_(677,63,vp,dq),k(i$,"InvalidDatatypeValueException",677);var xU=Hr(i$,f_t),f5=Hr(i$,h_t),q3e=Hr(i$,p_t),yDt,Ks,V3e,km,vDt,EDt,SDt,TDt,ADt,_Dt,xDt,kDt,NDt,CDt,IDt,y2,RDt,v2,M4,ODt,hw,h5,p5,LDt,P4,j4;_(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Bce),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(ya(this.c,(Tr(),km)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),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 a;switch(r){case 0:return!this.c&&(this.c=new ni(this,0)),aL(this.c,t,o);case 1:return(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),72)).Vk(t,o);case 2:return!this.b&&(this.b=new ni(this,2)),aL(this.b,t,o)}return a=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),r),69),a.uk().yk(this,Upe(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(ya(this.c,(Tr(),km)),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)),VO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),VO(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 Tr(),V3e},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(ya(this.c,(Tr(),km)),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: ",h3(t,this.c),t.a+=", anyAttribute: ",h3(t,this.b),t.a+=")",t.a)},k(Si,"AnyTypeImpl",836),_(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},AVe),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return qc(this,t-ln((Tr(),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((Tr(),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:qZt(this,In(r));return;case 1:WZt(this,In(r));return}Xc(this,t-ln((Tr(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t),r)},h.fi=function(){return Tr(),y2},h.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Jc(this,t-ln((Tr(),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: ",Vo(t,this.a),t.a+=", target: ",Vo(t,this.b),t.a+=")",t.a)},h.a=null,h.b=null,k(Si,"ProcessingInstructionImpl",678),_(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},YZe),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(ya(this.c,(Tr(),km)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),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(lL(this.c,(Tr(),M4),!0));case 4:return cfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lL(this.c,(Tr(),M4),!0))));case 5:return this.a}return qc(this,t-ln((Tr(),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(ya(this.c,(Tr(),km)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ni(this,0)),In(lL(this.c,(Tr(),M4),!0))!=null;case 4:return cfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lL(this.c,(Tr(),M4),!0))))!=null;case 5:return!!this.a}return zc(this,t-ln((Tr(),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)),VO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),VO(this.b,r);return;case 3:Yhe(this,In(r));return;case 4:Yhe(this,ufe(this.a,r));return;case 5:VZt(this,l(r,160));return}Xc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t),r)},h.fi=function(){return Tr(),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(ya(this.c,(Tr(),km)),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)),K7(this.c,(Tr(),M4),null);return;case 4:Yhe(this,ufe(this.a,null));return;case 5:this.a=null;return}Jc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},k(Si,"SimpleAnyTypeImpl",679),_(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},JZe),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((_t(),Oo),zs,this,1)),this.b):(!this.b&&(this.b=new pu((_t(),Oo),zs,this,1)),s6(this.b));case 2:return o?(!this.c&&(this.c=new pu((_t(),Oo),zs,this,2)),this.c):(!this.c&&(this.c=new pu((_t(),Oo),zs,this,2)),s6(this.c));case 3:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),h5));case 4:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),p5));case 5:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),P4));case 6:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),j4))}return qc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t),r,o)},h.Rh=function(t,r,o){var a;switch(r){case 0:return!this.a&&(this.a=new ni(this,0)),aL(this.a,t,o);case 1:return!this.b&&(this.b=new pu((_t(),Oo),zs,this,1)),q8(this.b,t,o);case 2:return!this.c&&(this.c=new pu((_t(),Oo),zs,this,2)),q8(this.c,t,o);case 5:return!this.a&&(this.a=new ni(this,0)),yit(ya(this.a,(Tr(),P4)),t,o)}return a=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():(Tr(),hw),r),69),a.uk().yk(this,Upe(this),r-ln((Tr(),hw)),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)),!x8(ya(this.a,(Tr(),h5)));case 4:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),p5)));case 5:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),P4)));case 6:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),j4)))}return zc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t))},h.$h=function(t,r){switch(t){case 0:!this.a&&(this.a=new ni(this,0)),VO(this.a,r);return;case 1:!this.b&&(this.b=new pu((_t(),Oo),zs,this,1)),Cj(this.b,r);return;case 2:!this.c&&(this.c=new pu((_t(),Oo),zs,this,2)),Cj(this.c,r);return;case 3:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),h5))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,h5),l(r,18));return;case 4:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),p5))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,p5),l(r,18));return;case 5:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),P4))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,P4),l(r,18));return;case 6:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),j4))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,j4),l(r,18));return}Xc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t),r)},h.fi=function(){return Tr(),hw},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((_t(),Oo),zs,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pu((_t(),Oo),zs,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),h5)));return;case 4:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),p5)));return;case 5:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),P4)));return;case 6:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),j4)));return}Jc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (mixed: ",h3(t,this.a),t.a+=")",t.a)},k(Si,"XMLTypeDocumentRootImpl",680),_(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},hVe),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:ms(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 Rnn(l(r,198));case 12:case 47:case 49:case 11:return Xvt(this,t,r);case 13:return r==null?null:exn(l(r,249));case 15:case 14:return r==null?null:Hsn(ue(le(r)));case 17:return Rbt((Tr(),r));case 18:return Rbt(r);case 21:case 20:return r==null?null:zsn(l(r,165).a);case 27:return Onn(l(r,198));case 30:return z1t((Tr(),l(r,16)));case 31:return z1t(l(r,16));case 40:return Inn((Tr(),r));case 42:return Obt((Tr(),r));case 43:return Obt(r);case 59:case 48:return Cnn((Tr(),r));default:throw Y(new jt(Lx+t.ve()+W0))}},h.pi=function(t){var r,o,a,c,f;switch(t.G==-1&&(t.G=(o=mc(t),o?gg(o.si(),t):-1)),t.G){case 0:return r=new Bce,r;case 1:return a=new AVe,a;case 2:return c=new YZe,c;case 3:return f=new JZe,f;default:throw Y(new jt(iQ+t.zb+W0))}},h.qi=function(t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re;switch(t.fk()){case 5:case 52:case 4:return r;case 6:return cbn(r);case 8:case 7:return r==null?null:Y0n(r);case 9:return r==null?null:p6(Ec((a=Ta(r,!0),a.length>0&&(Yt(0,a.length),a.charCodeAt(0)==43)?(Yt(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return r==null?null:p6(Ec((c=Ta(r,!0),c.length>0&&(Yt(0,c.length),c.charCodeAt(0)==43)?(Yt(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return In(P0(this,(Tr(),SDt),r));case 12:return In(P0(this,(Tr(),TDt),r));case 13:return r==null?null:new ale(Ta(r,!0));case 15:case 14:return u2n(r);case 16:return In(P0(this,(Tr(),ADt),r));case 17:return qgt((Tr(),r));case 18:return qgt(r);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ta(r,!0);case 21:case 20:return w2n(r);case 22:return In(P0(this,(Tr(),_Dt),r));case 23:return In(P0(this,(Tr(),xDt),r));case 24:return In(P0(this,(Tr(),kDt),r));case 25:return In(P0(this,(Tr(),NDt),r));case 26:return In(P0(this,(Tr(),CDt),r));case 27:return Q1n(r);case 30:return Vgt((Tr(),r));case 31:return Vgt(r);case 32:return r==null?null:Re(Ec((T=Ta(r,!0),T.length>0&&(Yt(0,T.length),T.charCodeAt(0)==43)?(Yt(1,T.length+1),T.substr(1)):T),Qi,sr));case 33:return r==null?null:new o1((N=Ta(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((O=Ta(r,!0),O.length>0&&(Yt(0,O.length),O.charCodeAt(0)==43)?(Yt(1,O.length+1),O.substr(1)):O),Qi,sr));case 36:return r==null?null:my(Z7((M=Ta(r,!0),M.length>0&&(Yt(0,M.length),M.charCodeAt(0)==43)?(Yt(1,M.length+1),M.substr(1)):M)));case 37:return r==null?null:my(Z7((U=Ta(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 Jbn((Tr(),r));case 42:return Wgt((Tr(),r));case 43:return Wgt(r);case 44:return r==null?null:new o1((z=Ta(r,!0),z.length>0&&(Yt(0,z.length),z.charCodeAt(0)==43)?(Yt(1,z.length+1),z.substr(1)):z));case 45:return r==null?null:new o1((J=Ta(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 Ta(r,!1);case 47:return In(P0(this,(Tr(),IDt),r));case 59:case 48:return Ybn((Tr(),r));case 49:return In(P0(this,(Tr(),RDt),r));case 50:return r==null?null:L_(Ec((re=Ta(r,!0),re.length>0&&(Yt(0,re.length),re.charCodeAt(0)==43)?(Yt(1,re.length+1),re.substr(1)):re),e$,32767)<<16>>16);case 51:return r==null?null:L_(Ec((f=Ta(r,!0),f.length>0&&(Yt(0,f.length),f.charCodeAt(0)==43)?(Yt(1,f.length+1),f.substr(1)):f),e$,32767)<<16>>16);case 53:return In(P0(this,(Tr(),ODt),r));case 55:return r==null?null:L_(Ec((p=Ta(r,!0),p.length>0&&(Yt(0,p.length),p.charCodeAt(0)==43)?(Yt(1,p.length+1),p.substr(1)):p),e$,32767)<<16>>16);case 56:return r==null?null:L_(Ec((m=Ta(r,!0),m.length>0&&(Yt(0,m.length),m.charCodeAt(0)==43)?(Yt(1,m.length+1),m.substr(1)):m),e$,32767)<<16>>16);case 57:return r==null?null:my(Z7((y=Ta(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:my(Z7((v=Ta(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=Ta(r,!0),o.length>0&&(Yt(0,o.length),o.charCodeAt(0)==43)?(Yt(1,o.length+1),o.substr(1)):o),Qi,sr));case 61:return r==null?null:Re(Ec(Ta(r,!0),Qi,sr));default:throw Y(new jt(Lx+t.ve()+W0))}};var DDt,W3e,MDt,K3e;k(Si,"XMLTypeFactoryImpl",2007),_(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},oat),h.N=!1,h.O=!1;var PDt=!1;k(Si,"XMLTypePackageImpl",589),_(1940,1,{843:1},pVe),h.Ik=function(){return T0e(),qDt},k(Si,"XMLTypePackageImpl/1",1940),_(1949,1,tr,gVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/10",1949),_(1950,1,tr,bVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/11",1950),_(1951,1,tr,mVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/12",1951),_(1952,1,tr,wVe),h.dk=function(t){return Uw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(Si,"XMLTypePackageImpl/13",1952),_(1953,1,tr,yVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/14",1953),_(1954,1,tr,vVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/15",1954),_(1955,1,tr,EVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/16",1955),_(1956,1,tr,SVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/17",1956),_(1957,1,tr,TVe),h.dk=function(t){return ae(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(Si,"XMLTypePackageImpl/18",1957),_(1958,1,tr,_Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/19",1958),_(1941,1,tr,xVe),h.dk=function(t){return ae(t,849)},h.ek=function(t){return we(d5,Rt,849,t,0,1)},k(Si,"XMLTypePackageImpl/2",1941),_(1959,1,tr,kVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/20",1959),_(1960,1,tr,NVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/21",1960),_(1961,1,tr,CVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/22",1961),_(1962,1,tr,IVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/23",1962),_(1963,1,tr,RVe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Si,"XMLTypePackageImpl/24",1963),_(1964,1,tr,OVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/25",1964),_(1965,1,tr,LVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/26",1965),_(1966,1,tr,DVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/27",1966),_(1967,1,tr,MVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/28",1967),_(1968,1,tr,PVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/29",1968),_(1942,1,tr,jVe),h.dk=function(t){return ae(t,678)},h.ek=function(t){return we(xU,Rt,2098,t,0,1)},k(Si,"XMLTypePackageImpl/3",1942),_(1969,1,tr,FVe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Si,"XMLTypePackageImpl/30",1969),_(1970,1,tr,$Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/31",1970),_(1971,1,tr,BVe),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Si,"XMLTypePackageImpl/32",1971),_(1972,1,tr,UVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/33",1972),_(1973,1,tr,HVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/34",1973),_(1974,1,tr,zVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/35",1974),_(1975,1,tr,GVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/36",1975),_(1976,1,tr,qVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/37",1976),_(1977,1,tr,VVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/38",1977),_(1978,1,tr,WVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/39",1978),_(1943,1,tr,KVe),h.dk=function(t){return ae(t,679)},h.ek=function(t){return we(f5,Rt,2099,t,0,1)},k(Si,"XMLTypePackageImpl/4",1943),_(1979,1,tr,YVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/40",1979),_(1980,1,tr,JVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/41",1980),_(1981,1,tr,XVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/42",1981),_(1982,1,tr,ZVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/43",1982),_(1983,1,tr,QVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/44",1983),_(1984,1,tr,eWe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Si,"XMLTypePackageImpl/45",1984),_(1985,1,tr,tWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/46",1985),_(1986,1,tr,nWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/47",1986),_(1987,1,tr,rWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/48",1987),_(1988,1,tr,iWe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Si,"XMLTypePackageImpl/49",1988),_(1944,1,tr,oWe),h.dk=function(t){return ae(t,680)},h.ek=function(t){return we(q3e,Rt,2100,t,0,1)},k(Si,"XMLTypePackageImpl/5",1944),_(1989,1,tr,sWe),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Si,"XMLTypePackageImpl/50",1989),_(1990,1,tr,aWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/51",1990),_(1991,1,tr,uWe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Si,"XMLTypePackageImpl/52",1991),_(1945,1,tr,cWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/6",1945),_(1946,1,tr,lWe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Si,"XMLTypePackageImpl/7",1946),_(1947,1,tr,dWe),h.dk=function(t){return Bw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(Si,"XMLTypePackageImpl/8",1947),_(1948,1,tr,fWe),h.dk=function(t){return ae(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(Si,"XMLTypePackageImpl/9",1948);var mf,Pg,F4,kU,te;_(53,63,vp,Dn),k(Tg,"RegEx/ParseException",53),_(828,1,{},Gue),h._l=function(t){return to*16)throw Y(new Dn(jn((Cn(),_At))));o=o*16+c}while(!0);if(this.a!=125)throw Y(new Dn(jn((Cn(),xAt))));if(o>Fx)throw Y(new Dn(jn((Cn(),kAt))));t=o}else{if(c=0,this.c!=0||(c=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(o=c,dr(this),this.c!=0||(c=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));o=o*16+c,t=o}break;case 117:if(a=0,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));r=r*16+a,t=r;break;case 118:if(dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,r>Fx)throw Y(new Dn(jn((Cn(),"parser.descappe.4"))));t=r;break;case 65:case 90:case 122:throw Y(new Dn(jn((Cn(),NAt))))}return t},h.bm=function(t){var r,o;switch(t){case 100:o=(this.e&32)==32?x1("Nd",!0):(fr(),NU);break;case 68:o=(this.e&32)==32?x1("Nd",!1):(fr(),eCe);break;case 119:o=(this.e&32)==32?x1("IsWord",!0):(fr(),kk);break;case 87:o=(this.e&32)==32?x1("IsWord",!1):(fr(),nCe);break;case 115:o=(this.e&32)==32?x1("IsSpace",!0):(fr(),ZT);break;case 83:o=(this.e&32)==32?x1("IsSpace",!1):(fr(),tCe);break;default:throw Y(new Es((r=t,N_t+r.toString(16))))}return o},h.cm=function(t){var r,o,a,c,f,p,m,y,v,T,N,O;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)),Sa(r,0,Fx),T=new bc(4))):T=(fr(),fr(),new bc(4)),c=!0;(O=this.c)!=1&&!(O==0&&this.a==93&&!c);){if(c=!1,o=this.a,a=!1,O==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:Ny(T,this.bm(o)),a=!0;break;case 105:case 73:case 99:case 67:o=this.sm(T,o),o<0&&(a=!0);break;case 112:case 80:if(N=bme(this,o),!N)throw Y(new Dn(jn((Cn(),mQ))));Ny(T,N),a=!0;break;default:o=this.am()}else if(O==20){if(p=KA(this.i,58,this.d),p<0)throw Y(new Dn(jn((Cn(),SEe))));if(m=!0,co(this.i,this.d)==94&&(++this.d,m=!1),f=yl(this.i,this.d,p),y=ldt(f,m,(this.e&512)==512),!y)throw Y(new Dn(jn((Cn(),vAt))));if(Ny(T,y),a=!0,p+1>=this.j||co(this.i,p+1)!=93)throw Y(new Dn(jn((Cn(),SEe))));this.d=p+2}if(dr(this),!a)if(this.c!=0||this.a!=45)Sa(T,o,o);else{if(dr(this),(O=this.c)==1)throw Y(new Dn(jn((Cn(),WF))));O==0&&this.a==93?(Sa(T,o,o),Sa(T,45,45)):(v=this.a,O==10&&(v=this.am()),dr(this),Sa(T,o,v))}(this.e&Tl)==Tl&&this.c==0&&this.a==44&&dr(this)}if(this.c==1)throw Y(new Dn(jn((Cn(),WF))));return r&&($C(r,T),T=r),xE(T),PC(T),this.b=0,dr(this),T},h.dm=function(){var t,r,o,a;for(o=this.cm(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(dr(this),this.c!=9)throw Y(new Dn(jn((Cn(),SAt))));if(r=this.cm(!1),a==4)Ny(o,r);else if(t==45)$C(o,r);else if(t==38)Wvt(o,r);else throw Y(new Es("ASSERT"))}else throw Y(new Dn(jn((Cn(),TAt))));return dr(this),o},h.em=function(){var t,r;return t=this.a-48,r=(fr(),fr(),new xW(12,null,t)),!this.g&&(this.g=new O9),R9(this.g,new xce(t)),dr(this),r},h.fm=function(){return dr(this),fr(),$Dt},h.gm=function(){return dr(this),fr(),FDt},h.hm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.im=function(){throw Y(new Dn(jn((Cn(),tl))))},h.jm=function(){return dr(this),Apn()},h.km=function(){return dr(this),fr(),UDt},h.lm=function(){return dr(this),fr(),zDt},h.mm=function(){var t;if(this.d>=this.j||((t=co(this.i,this.d++))&65504)!=64)throw Y(new Dn(jn((Cn(),mAt))));return dr(this),fr(),fr(),new dh(0,t-64)},h.nm=function(){return dr(this),e_n()},h.om=function(){return dr(this),fr(),GDt},h.pm=function(){var t;return t=(fr(),fr(),new dh(0,105)),dr(this),t},h.qm=function(){return dr(this),fr(),HDt},h.rm=function(){return dr(this),fr(),BDt},h.sm=function(t,r){return this.am()},h.tm=function(){return dr(this),fr(),Z3e},h.um=function(){var t,r,o,a,c;if(this.d+1>=this.j)throw Y(new Dn(jn((Cn(),pAt))));if(a=-1,r=null,t=co(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new O9),R9(this.g,new xce(a)),++this.d,co(this.i,this.d)!=41)throw Y(new Dn(jn((Cn(),cm))));++this.d}else switch(t==63&&--this.d,dr(this),r=Y0e(this),r.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Y(new Dn(jn((Cn(),cm))));break;default:throw Y(new Dn(jn((Cn(),gAt))))}if(dr(this),c=N0(this),o=null,c.e==2){if(c.Nm()!=2)throw Y(new Dn(jn((Cn(),bAt))));o=c.Jm(1),c=c.Jm(0)}if(this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),fr(),fr(),new oft(a,r,c,o)},h.vm=function(){return dr(this),fr(),Q3e},h.wm=function(){var t;if(dr(this),t=wP(24,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.xm=function(){var t;if(dr(this),t=wP(20,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.ym=function(){var t;if(dr(this),t=wP(22,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.zm=function(){var t,r,o,a,c;for(t=0,o=0,r=-1;this.d=this.j)throw Y(new Dn(jn((Cn(),vEe))));if(r==45){for(++this.d;this.d=this.j)throw Y(new Dn(jn((Cn(),vEe))))}if(r==58){if(++this.d,dr(this),a=Ost(N0(this),t,o),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));dr(this)}else if(r==41)++this.d,dr(this),a=Ost(N0(this),t,o);else throw Y(new Dn(jn((Cn(),hAt))));return a},h.Am=function(){var t;if(dr(this),t=wP(21,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.Bm=function(){var t;if(dr(this),t=wP(23,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.Cm=function(){var t,r;if(dr(this),t=this.f++,r=eW(N0(this),t),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),r},h.Dm=function(){var t;if(dr(this),t=eW(N0(this),0),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.Em=function(t){return dr(this),this.c==5?(dr(this),lP(t,(fr(),fr(),new oy(9,t)))):lP(t,(fr(),fr(),new oy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new b3(2)),this.c==5?(dr(this),em(r,B4),em(r,t)):(em(r,t),em(r,B4)),r},h.Gm=function(t){return dr(this),this.c==5?(dr(this),fr(),fr(),new oy(9,t)):(fr(),fr(),new oy(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,k(Tg,"RegEx/RegexParser",828),_(1927,828,{},XZe),h._l=function(t){return!1},h.am=function(){return e0e(this)},h.bm=function(t){return tx(t)},h.cm=function(t){return UEt(this)},h.dm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.em=function(){throw Y(new Dn(jn((Cn(),tl))))},h.fm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.gm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.hm=function(){return dr(this),tx(67)},h.im=function(){return dr(this),tx(73)},h.jm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.km=function(){throw Y(new Dn(jn((Cn(),tl))))},h.lm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.mm=function(){return dr(this),tx(99)},h.nm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.om=function(){throw Y(new Dn(jn((Cn(),tl))))},h.pm=function(){return dr(this),tx(105)},h.qm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.rm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.sm=function(t,r){return Ny(t,tx(r)),-1},h.tm=function(){return dr(this),fr(),fr(),new dh(0,94)},h.um=function(){throw Y(new Dn(jn((Cn(),tl))))},h.vm=function(){return dr(this),fr(),fr(),new dh(0,36)},h.wm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.xm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.ym=function(){throw Y(new Dn(jn((Cn(),tl))))},h.zm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.Am=function(){throw Y(new Dn(jn((Cn(),tl))))},h.Bm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.Cm=function(){var t;if(dr(this),t=eW(N0(this),0),this.c!=7)throw Y(new Dn(jn((Cn(),cm))));return dr(this),t},h.Dm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.Em=function(t){return dr(this),lP(t,(fr(),fr(),new oy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new b3(2)),em(r,t),em(r,B4),r},h.Gm=function(t){return dr(this),fr(),fr(),new oy(3,t)};var E2=null,_k=null;k(Tg,"RegEx/ParserForXMLSchema",1927),_(122,1,$x,Km),h.Hm=function(t){throw Y(new Es("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 Y3e,xk,$4,jDt,J3e,vv=null,NU,Gre=null,X3e,B4,qre=null,Z3e,Q3e,eCe,tCe,nCe,FDt,ZT,$Dt,BDt,UDt,HDt,kk,zDt,GDt,bCn=k(Tg,"RegEx/Token",122);_(140,122,{3:1,140:1,122:1},bc),h.Om=function(t){var r,o,a;if(this.e==4)if(this==X3e)o=".";else if(this==NU)o="\\d";else if(this==kk)o="\\w";else if(this==ZT)o="\\s";else{for(a=new Xp,a.a+="[",r=0;r0&&(a.a+=","),this.b[r]===this.b[r+1]?Vo(a,cL(this.b[r])):(Vo(a,cL(this.b[r])),a.a+="-",Vo(a,cL(this.b[r+1])));a.a+="]",o=a.a}else if(this==eCe)o="\\D";else if(this==nCe)o="\\W";else if(this==tCe)o="\\S";else{for(a=new Xp,a.a+="[^",r=0;r0&&(a.a+=","),this.b[r]===this.b[r+1]?Vo(a,cL(this.b[r])):(Vo(a,cL(this.b[r])),a.a+="-",Vo(a,cL(this.b[r+1])));a.a+="]",o=a.a}return o},h.a=!1,h.c=!1,k(Tg,"RegEx/RangeToken",140),_(587,1,{587:1},xce),h.a=0,k(Tg,"RegEx/RegexParser/ReferencePosition",587),_(586,1,{3:1,586:1},pet),h.Fb=function(t){var r;return t==null||!ae(t,586)?!1:(r=l(t,586),wt(this.b,r.b)&&this.a==r.a)},h.Hb=function(){return lg(this.b+"/"+Wme(this.a))},h.Ib=function(){return this.c.Om(this.a)},h.a=0,k(Tg,"RegEx/RegularExpression",586),_(230,122,$x,dh),h.Im=function(){return this.a},h.Om=function(t){var r,o,a;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:a="\\"+xV(this.a&Ei);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=Co?(o=(r=this.a>>>0,"0"+r.toString(16)),a="\\v"+yl(o,o.length-6,o.length)):a=""+xV(this.a&Ei)}break;case 8:this==Z3e||this==Q3e?a=""+xV(this.a&Ei):a="\\"+xV(this.a&Ei);break;default:a=null}return a},h.a=0,k(Tg,"RegEx/Token/CharToken",230),_(323,122,$x,oy),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 Y(new Es("Token#toString(): CLOSURE "+this.c+ja+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 Y(new Es("Token#toString(): NONGREEDYCLOSURE "+this.c+ja+this.b));return r},h.b=0,h.c=0,k(Tg,"RegEx/Token/ClosureToken",323),_(829,122,$x,she),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},k(Tg,"RegEx/Token/ConcatToken",829),_(1925,122,$x,oft),h.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw Y(new Es("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,k(Tg,"RegEx/Token/ConditionToken",1925),_(1926,122,$x,Out),h.Jm=function(t){return this.b},h.Nm=function(){return 1},h.Om=function(t){return"(?"+(this.a==0?"":Wme(this.a))+(this.c==0?"":Wme(this.c))+":"+this.b.Om(t)+")"},h.a=0,h.c=0,k(Tg,"RegEx/Token/ModifierToken",1926),_(830,122,$x,ghe),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,k(Tg,"RegEx/Token/ParenToken",830),_(521,122,{3:1,122:1,521:1},xW),h.Km=function(){return this.b},h.Om=function(t){return this.e==12?"\\"+this.a:VEn(this.b)},h.a=0,k(Tg,"RegEx/Token/StringToken",521),_(469,122,$x,b3),h.Hm=function(t){em(this,t)},h.Jm=function(t){return l(d0(this.a,t),122)},h.Nm=function(){return this.a?this.a.a.c.length:0},h.Om=function(t){var r,o,a,c,f;if(this.e==1){if(this.a.a.c.length==2)r=l(d0(this.a,0),122),o=l(d0(this.a,1),122),o.e==3&&o.Jm(0)==r?c=r.Om(t)+"+":o.e==9&&o.Jm(0)==r?c=r.Om(t)+"+?":c=r.Om(t)+(""+o.Om(t));else{for(f=new Xp,a=0;a=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 Y(new Jp(M_t))},h.a=0,h.b=0,k(UEe,"ExclusiveRange/RangeIterator",261);var al=o_(KF,"C"),Rn=o_(dI,"I"),uu=o_(uT,"Z"),pw=o_(fI,"J"),Eu=o_(uI,"B"),Ki=o_(cI,"D"),Ev=o_(lI,"F"),S2=o_(hI,"S"),mCn=Hr("org.eclipse.elk.core.labels","ILabelManager"),rCe=Hr(xo,"DiagnosticChain"),iCe=Hr(c_t,"ResourceSet"),oCe=k(xo,"InvocationTargetException",null),VDt=(F9(),adn),WDt=WDt=D0n;Wfn(aQt),ohn("permProps",[[["locale","default"],[P_t,"gecko1_8"]],[["locale","default"],[P_t,"safari"]]]),WDt(null,"elk",null)}).call(this)}).call(this,typeof C5<"u"?C5:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(s,u,d){function g($){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},g($)}function b($,j,P){return Object.defineProperty($,"prototype",{writable:!1}),$}function w($,j){if(!($ instanceof j))throw new TypeError("Cannot call a class as a function")}function E($,j,P){return j=C(j),S($,A()?Reflect.construct(j,P||[],C($).constructor):j.apply($,P))}function S($,j){if(j&&(g(j)=="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x($)}function x($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function A(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A=function(){return!!$})()}function C($){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)},C($)}function R($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&D($,j)}function D($,j){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,G){return P.__proto__=G,P},D($,j)}var L=s("./elk-api.js").default,B=function($){function j(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w(this,j);var G=Object.assign({},P),ee=!1;try{s.resolve("web-worker"),ee=!0}catch{}if(P.workerUrl)if(ee){var ne=s("web-worker");G.workerFactory=function(he){return new ne(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(!G.workerFactory){var Q=s("./elk-worker.min.js"),ie=Q.Worker;G.workerFactory=function(he){return new ie(he)}}return E(this,j,[G])}return R(j,$),b(j)}(L);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,u,d){var g=typeof Worker<"u"?Worker:void 0;u.exports=g},{}]},{},[3])(3)})})(eKt);var HZn=eKt.exports;const zZn=TR(HZn),GZn=new zZn;async function qZn(n,i){try{const s=n.map(b=>({id:b.id,width:WZn(b.type),height:KZn(b.type)})),u=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:s,edges:u},g=await GZn.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 VZn(n)}}function VZn(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 WZn(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 KZn(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 YZn(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)}const tKt={hours:60*60*1e3,minutes:60*1e3,seconds:1e3,milliseconds:1};function HLe(n){return typeof n=="number"&&Number.isFinite(n)}function JZn(n){const i=n.trim(),s=/^\{\{\s*([\s\S]*?)\s*\}\}$/.exec(i);return s?s[1].trim():i}function XZn(n){if(HLe(n))return String(n);if(typeof n!="string"||n.trim()==="")return null;const i=n.trim(),s=Number(i);return Number.isFinite(s)?String(s):`(${JZn(i)})`}function ZZn(n){const i=Object.entries(tKt).flatMap(([w,E])=>{const S=XZn(n[w]);return S?E===1?[S]:[`(${S}) * ${E}`]:[]}),s=i.length>0?i.join(" + "):"0",u=`(${s}) // 3600000`,d=`((${s}) % 3600000) // 60000`,g=`((${s}) % 60000) // 1000`,b=`(${s}) % 1000`;return Object.hasOwn(n,"milliseconds")?`{{ '%02d:%02d:%02d.%03d' | format(${u}, ${d}, ${g}, ${b}) }}`:`{{ '%02d:%02d:%02d' | format(${u}, ${d}, ${g}) }}`}function QZn(n){if(typeof n=="string")return n;if(HLe(n))return String(n);if(typeof n!="object"||n===null)return"";const i=n,s={};let u=!1;for(const d of Object.keys(tKt)){const g=i[d];if(g!==void 0){if(HLe(g)){s[d]=g;continue}if(typeof g=="string"&&g.trim()!==""){const b=Number(g.trim());Number.isFinite(b)?s[d]=b:u=!0;continue}u=!0}}return u?ZZn(i):s}function eQn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function tQn(n){return typeof n=="object"&&n!==null&&"choose"in n}function nQn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function rQn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function iQn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function oQn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function sQn(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 aQn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function uQn(n){return typeof n=="object"&&n!==null&&"stop"in n}function cQn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function lQn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const k5=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function zLe(n){return n.map(i=>dQn(i))}function dQn(n){const{condition:i,conditions:s,...u}=n,d=i||"template",g=k5.includes(d)?d:"template",b=Array.isArray(s)?zLe(s):void 0;return{...u,condition:g,conditions:b}}class fQn{async parse(i){const s=[];try{let u=OZn(i);if(Array.isArray(u)){if(u.length===0)return{success:!1,errors:["Empty automation array"],warnings:s,hadMetadata:!1};u=u[0]}if(!u||typeof u!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:s,hadMetadata:!1};const d=this.extractMetadata(u),g=d!==null,b=this.extractUserVariables(u),w=u;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:s,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:x,edges:A}=S?this.parseStateMachineStructure(w,s,E):this.parseAutomationStructure(w,s,E);let C;g&&d?C=this.applyMetadataPositions(x,d):C=await qZn(x,A);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},D=D8t.safeParse(R),L=D.success?D.data:D8t.parse({}),B=typeof w.trigger_variables=="object"&&w.trigger_variables!==null&&!Array.isArray(w.trigger_variables)?w.trigger_variables:void 0,$={id:(d==null?void 0:d.graph_id)||BZn(),name:typeof w.alias=="string"?w.alias:"Imported Automation",description:typeof w.description=="string"?w.description:"",nodes:C,edges:A,metadata:L,version:1,userVariables:Object.keys(b).length>0?b:void 0,userTriggerVariables:B&&Object.keys(B).length>0?B:void 0},j=zVt.safeParse($);if(!j.success){const G=j.error.issues.map(ee=>{let ne="";if(ee.path&&ee.path.length>0&&ee.path[0]==="nodes"&&typeof ee.path[1]=="number"){const Q=ee.path[1],ie=$.nodes[Q];ne=`Node index ${Q} (id: ${ie==null?void 0:ie.id}, type: ${ie==null?void 0:ie.type}) -Data: ${JSON.stringify(ie==null?void 0:ie.data,null,2)}`}return`Schema path: ${ee.path.join(".")} -Message: ${ee.message}${ne?` -${ne}`:""}`});return console.error("Zod validation error details:",G),{success:!1,errors:G,warnings:s,hadMetadata:g}}const P=GVt(j.data);return P.valid?{success:!0,graph:j.data,warnings:s,hadMetadata:g}:{success:!1,errors:P.errors,warnings:s,hadMetadata:g}}catch(u){return console.error("YAML parsing error:",u),console.error("YAML string:",i),{success:!1,errors:[u instanceof Error?u.message:"Unknown parsing error"],warnings:s,hadMetadata:!1}}}extractMetadata(i){try{let s;if(typeof i.variables=="object"&&i.variables!==null&&(s=i.variables),s&&typeof s=="object"&&"_cafe_metadata"in s&&typeof s._cafe_metadata=="object"&&s._cafe_metadata!==null){const u=s._cafe_metadata,d=HVt.safeParse(u);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const s={};if(typeof i.variables=="object"&&i.variables!==null){const u=i.variables;for(const[d,g]of Object.entries(u))d!=="_cafe_metadata"&&(s[d]=g)}return s}detectStateMachineFormat(i){const s=i.actions||i.action;if(!Array.isArray(s))return!1;let u=!1,d=!1;for(const g of s){const b=g;if(b.variables){const w=b.variables;"current_node"in w&&"flow_context"in w&&(u=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const x=S;if(Array.isArray(x.choose)){d=!0;break}}}}return u&&d}parseStateMachineStructure(i,s,u){const d=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))return s.push("No actions found in automation"),{nodes:d,edges:g};let w=null;const E=new Map;for(const G of b){const ee=G;if(ee.variables){const ne=ee.variables;typeof ne.current_node=="string"&&ne.current_node!=="END"&&(w=ne.current_node)}if(ee.repeat){const Q=ee.repeat.sequence;if(Array.isArray(Q))for(const ie of Q){const he=ie;if(Array.isArray(he.choose))for(const ge of he.choose){const ce=this.parseStateMachineChooseBlock(ge);ce&&E.set(ce.nodeId,ce)}}}}const S=/^__parallel_(trigger_\d+|cond_.+__(?:true|false))$/,x=new Map;for(const[G,ee]of E){if(!S.test(G))continue;const ne=this.parseInlineParallelBranches(ee.parallelItems??[],E);ne.length>0&&x.set(G,ne),E.delete(G)}const A=this.resolveParallelFanOuts(E),C=new Set(E.keys()),R=u.filter(G=>!C.has(G));let D=0,L=0;const B=G=>D0)for(let ee=0;ee{for(const S of u.get(w)??[w])g.push({id:`edge-${i}-${S}`,source:i,target:S,sourceHandle:E})};if(s.trueTarget&&s.trueTarget!=="END"){const w=s.nodeType==="condition"||s.falseTarget;b(s.trueTarget,w?"true":void 0)}s.falseTarget&&s.falseTarget!=="END"&&b(s.falseTarget,"false");for(const w of d.get(i)??[])g.push(this.createEdge(i,w));return g}parseEntryNodeTemplate(i){if(!i.includes("{%")||!i.includes("trigger.idx"))return null;const s=new Map,u=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(u);for(const b of d){const w=parseInt(b[1],10),E=b[2].trim();s.set(w,E)}const g=i.match(/{%\s*else\s*%}\s*([^{%]+?)(?={%|$)/);if(g&&s.size>0){const b=Math.max(...s.keys());s.set(b+1,g[1].trim())}return s.size>0?s:null}resolveParallelFanOuts(i){const s=new Map,u=new Set;let d=!0;for(;d;){d=!1;for(const[g,b]of[...i]){if(!b.parallelItems||b.parallelItems.length===0||u.has(g))continue;u.add(g),d=!0;const w=this.parseInlineParallelBranches(b.parallelItems,i);w.length>0&&s.set(g,w)}}return s}parseInlineParallelBranches(i,s){const u=[];let d=0;const g=b=>`inline_${b}_${d++}`;for(const b of i){const w=b,E=w.alias,S=E==null?void 0:E.match(/^parallel_branch:(.+)$/);if(S){const A=S[1];u.push(A),Array.isArray(w.sequence)?this.parseInlineActionList(w.sequence,A,s,g):this.parseInlineActionItem(w,A,s,g);continue}if((w.service??w.action)==="system_log.write"){const A=w.data,C=A==null?void 0:A.message;if(C){const R=C.match(/^Node:\s*(.+)$/);R&&u.push(R[1])}}}return u}parseInlineActionList(i,s,u,d){let g=null;for(let b=0;b0){const{nodeId:L}=this.extractCafeNodeId(R[0].alias),B=L??d(this.inferInlineNodeType(R[0]));A=B,this.parseInlineActionList(R,B,u,d)}const D=i.else;if(D&&D.length>0){const{nodeId:L}=this.extractCafeNodeId(D[0].alias),B=L??d(this.inferInlineNodeType(D[0]));C=B,this.parseInlineActionList(D,B,u,d)}u.set(s,{nodeId:s,nodeType:"condition",data:x,trueTarget:A,falseTarget:C})}else if(i.service||i.action){const E={};E.service=i.service??i.action,i.target&&(E.target=i.target),i.data&&(E.data=i.data),w&&(E.alias=w),u.set(s,{nodeId:s,nodeType:"action",data:E,trueTarget:null,falseTarget:null})}else if(i.delay!==void 0){const E={delay:i.delay};w&&(E.alias=w),u.set(s,{nodeId:s,nodeType:"delay",data:E,trueTarget:null,falseTarget:null})}else if(i.wait_template!==void 0||i.wait_for_trigger!==void 0){const E={};i.wait_template&&(E.wait_template=i.wait_template),i.wait_for_trigger&&(E.wait_for_trigger=i.wait_for_trigger),i.timeout&&(E.timeout=i.timeout),i.continue_on_timeout!==void 0&&(E.continue_on_timeout=i.continue_on_timeout),w&&(E.alias=w),u.set(s,{nodeId:s,nodeType:"wait",data:E,trueTarget:null,falseTarget:null})}else if(i.variables!==void 0){const E={variables:i.variables};w&&(E.alias=w),i.id&&(E.id=i.id),u.set(s,{nodeId:s,nodeType:"set_variables",data:E,trueTarget:null,falseTarget:null})}}extractCafeNodeId(i){if(!i)return{nodeId:null,cleanAlias:void 0};const s=i.match(/^cafe_node:([^:]+)(?::(.+))?$/);return s?{nodeId:s[1],cleanAlias:s[2]||void 0}:{nodeId:null,cleanAlias:i}}inferInlineNodeType(i){return i.if?"condition":i.delay!==void 0?"delay":i.wait_template!==void 0||i.wait_for_trigger!==void 0?"wait":i.variables!==void 0?"set_variables":"action"}parseStateMachineChooseBlock(i){const s=i.conditions;if(!Array.isArray(s)||s.length===0)return null;const d=s[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 x=null,A=null,C;for(const R of w){const D=R;if(D.variables){const L=D.variables;if(!("current_node"in L&&Object.keys(L).every(j=>j==="current_node"||j==="flow_context"))){E="set_variables",S.variables=L,D.alias&&(S.alias=D.alias),D.id&&(S.id=D.id);continue}const $=L.current_node;if(typeof $=="string")if($.includes("{%")&&$.includes("%}")){E="condition";const j=$.match(/{%\s*if[^%]*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/),P=$.match(/{%\s*else\s*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/);x=j?j[1]:null,A=P?P[1]:null;const G=$.match(/{%\s*if\s+(.+?)\s*%}/);if(G){const ee=G[1];Object.assign(S,this.parseJinjaCondition(ee))}}else x=$==="END"?null:$}else D.delay!==void 0?(E="delay",S.delay=D.delay,D.alias&&(S.alias=D.alias)):D.wait_template!==void 0?(E="wait",S.wait_template=D.wait_template,D.timeout&&(S.timeout=D.timeout),D.continue_on_timeout!==void 0&&(S.continue_on_timeout=D.continue_on_timeout),D.alias&&(S.alias=D.alias)):Array.isArray(D.parallel)?C=D.parallel:(D.service||D.action)&&(E="action",S.service=D.service||D.action,D.target&&(S.target=D.target),D.data&&(S.data=D.data),D.alias&&(S.alias=D.alias))}return{nodeId:b,nodeType:E,data:S,trueTarget:x,falseTarget:A,parallelItems:C}}parseJinjaCondition(i){const s=this.stripOuterParens(i.trim()),u=this.splitTopLevelJinja(s," or ");if(u.length>1)return{condition:"or",conditions:u.map(S=>this.parseJinjaCondition(S))};const d=this.splitTopLevelJinja(s," and ");if(d.length>1)return{condition:"and",conditions:d.map(S=>this.parseJinjaCondition(S))};const g=s.match(/^not\s*\((.*)\)$/s);if(g)return{condition:"not",conditions:this.splitTopLevelJinja(g[1].trim()," and ").map(x=>this.parseJinjaCondition(x))};const b=s.match(/^is_state\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)$/);if(b){const S=b[1],x=b[2];if(S==="sun.sun"){if(x==="above_horizon")return{condition:"sun",after:"sunrise",before:"sunset"};if(x==="below_horizon")return{condition:"sun",after:"sunset",before:"sunrise"}}return{condition:"state",entity_id:S,state:x}}const w=s.match(/^state_attr\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)\s*==\s*['"]([^'"]*)['"]$/);if(w)return{condition:"state",entity_id:w[1],attribute:w[2],state:w[3]};const E=s.match(/^states\s*\(\s*['"]([^'"]+)['"]\s*\)\s*\|\s*float\s*([<>=]+)\s*(\d+(?:\.\d+)?)$/);if(E){const S=E[1],x=E[2],A=parseFloat(E[3]),C={condition:"numeric_state",entity_id:S};return x.includes(">")&&(C.above=A),x.includes("<")&&(C.below=A),C}return{condition:"template",value_template:`{{ ${s} }}`}}stripOuterParens(i){let s=i.trim();for(;s.startsWith("(")&&s.endsWith(")");){let u=0,d=!0;for(let g=0;ghe.startsWith(`${ce}_`));ge&&(E.has(ge)||E.set(ge,[]),E.get(ge).push(he))}const x=new Map;let A=0,C=u.length;const R=he=>{const ge=E.get(he),ce=x.get(he)??0;if(ge&&ce0){const he=this.parseConditions(G,s,R);d.push(...he.nodes),g.push(...he.edges);for(const ce of he.nodes)b.add(ce.id);const ge=he.nodes;if(ge.length===1){for(const ce of B)g.push(this.createEdge(ce.id,ge[0].id));j=[ge[0].id]}else{for(const ce of B)g.push(this.createEdge(ce.id,ge[0].id));for(let ce=0;cehe.id);const ee=i.actions||i.action;if(!ee)return s.push("No actions found in automation"),{nodes:d,edges:g};const ne=Array.isArray(ee)?ee:[ee],Q=this.parseActions(ne,{warnings:s,previousNodeIds:j,getNextNodeId:R,conditionNodeIds:b,triggerNodeMap:$});return d.push(...Q.nodes),g.push(...Q.edges),{nodes:d,edges:g}}parseTriggers(i,s,u){return i.filter(d=>typeof d=="object"&&d!==null).map((d,g)=>{const b=u("trigger");try{const w=gN.safeParse(d);return w.success?{id:b,type:"trigger",position:{x:0,y:0},data:w.data}:(s.push(`Trigger ${g} failed schema validation: ${JSON.stringify(w.error.issues)}`),this.createFallbackTriggerNode(b,d))}catch(w){return s.push(`Failed to parse trigger ${g}: ${w}`),this.createFallbackTriggerNode(b,d)}})}createFallbackTriggerNode(i,s){const u=typeof s=="object"&&s!==null?s:{};let d,g={};if(typeof u.trigger=="string"){d=u.trigger;const{platform:b,trigger:w,...E}=u;g=E}else if(typeof u.platform=="string"){d=u.platform;const{platform:b,...w}=u;g=w}else{const b=Object.keys(u).find(w=>!["alias","id","enabled","variables"].includes(w));b&&typeof u[b]=="object"&&u[b]!==null?(d=b,g=u[b]):d="state"}return{id:i,type:"trigger",position:{x:0,y:0},data:{trigger:d,...g}}}parseConditions(i,s,u){const d=[],g=[],b=[];return i.filter(TVn).forEach((w,E)=>{const S=u("condition");try{const x=Ug.safeParse(w);if(!x.success){s.push(`Condition ${E} failed schema validation: ${JSON.stringify(x.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 A={id:S,type:"condition",position:{x:0,y:0},data:x.data};d.push(A),b.push(S)}catch(x){s.push(`Failed to parse condition ${E}: ${x}`),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,s){const{warnings:u,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,triggerNodeMap:w,inheritedEnabled:E}=s,S=[],x=[];let A=d;const C=new Set(b),R=new Set,D=B=>E===!1?!1:B,L=B=>{for(const $ of A){let j;R.has($)?j="false":C.has($)&&(j="true"),x.push(this.createEdge($,B,j))}};return i.forEach((B,$)=>{if(!B||typeof B!="object"){u.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const j=g("unknown");S.push({id:j,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),L(j),A=[j];return}if(oQn(B)){const j=g("condition"),P=B,G=P.condition||"template",ee=k5.includes(G)?G:"template";let ne;try{ne=Ug.parse(P)}catch(ie){u.push(`Inline condition at index ${$} failed schema validation: ${ie instanceof Error?ie.message:JSON.stringify(ie)}`),ne={condition:ee,alias:typeof P.alias=="string"?P.alias:void 0,value_template:JSON.stringify(P)}}ne.enabled=D(ne.enabled);const Q={id:j,type:"condition",position:{x:0,y:0},data:ne};S.push(Q),L(j),C.add(j),A=[j]}else if(sQn(B)){const j=g("set_variables"),P=B,G={id:j,type:"set_variables",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,variables:P.variables||{},enabled:D(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),L(j),A=[j]}else if(YZn(B)){const j=g("delay"),P=B,{alias:G,delay:ee,enabled:ne,...Q}=P,ie={id:j,type:"delay",position:{x:0,y:0},data:{...Q,alias:typeof G=="string"?G:void 0,delay:QZn(ee),enabled:D(typeof ne=="boolean"?ne:void 0)}};S.push(ie),L(j),A=[j]}else if(eQn(B)){const j=g("wait"),P=B,{alias:G,wait_template:ee,wait_for_trigger:ne,timeout:Q,continue_on_timeout:ie,enabled:he,...ge}=P;let ce;(typeof Q=="string"||typeof Q=="object"&&Q!==null)&&(ce=Q);const fe={...ge,alias:typeof G=="string"?G:void 0,timeout:ce,continue_on_timeout:typeof ie=="boolean"?ie:void 0,enabled:D(typeof he=="boolean"?he:void 0)};if(typeof ee=="string")fe.wait_template=ee;else if(Array.isArray(ne)){const pe=[];for(const Oe of ne){const Se=gN.safeParse(Oe);Se.success?pe.push(Se.data):u.push(`Failed to parse a trigger inside wait_for_trigger: ${Se.error.message}`)}fe.wait_for_trigger=pe}const K={id:j,type:"wait",position:{x:0,y:0},data:fe};S.push(K),L(j),A=[j]}else if(tQn(B)){const j=this.parseChooseBlock(B,{warnings:u,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,inheritedEnabled:E});S.push(...j.nodes),x.push(...j.edges);for(const P of j.outputNodeIds){const G=j.nodes.find(ee=>ee.id===P);(G==null?void 0:G.type)==="condition"&&(j.falsePathOutputIds.includes(P)?R.add(P):C.add(P))}A=j.outputNodeIds}else if(rQn(B)){const j=B,P=Array.isArray(j.if)?j.if:[],G=Array.isArray(j.then)?j.then:[],ee=Array.isArray(j.else)?j.else:void 0,ne={if:P,then:G,else:ee,alias:typeof j.alias=="string"?j.alias:void 0,enabled:j.enabled},Q=this.parseIfBlock(ne,{warnings:u,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,triggerNodeMap:w,inheritedEnabled:E});S.push(...Q.nodes),x.push(...Q.edges);for(const ie of Q.outputNodeIds){const he=Q.nodes.find(ge=>ge.id===ie);(he==null?void 0:he.type)==="condition"&&(Q.falsePathOutputIds.includes(ie)?R.add(ie):C.add(ie))}Q.unconsumedPreviousIds.length>0?A=Q.unconsumedPreviousIds:A=Q.outputNodeIds}else if(bMe(B)){const j=g("action"),P=B,G=["type","device_id","domain","entity_id","subtype","alias","enabled"],ee={};for(const[Q,ie]of Object.entries(P))!G.includes(Q)&&ie!==void 0&&(ee[Q]=ie);const ne={id:j,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,...ee},enabled:D(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(ne),L(j),A=[j]}else if(nQn(B)){const P=B.parallel,G=[...A],ee=[];for(const ne of P)if(Array.isArray(ne)){const Q=this.parseActions(ne,{warnings:u,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(Q.nodes.length>0){S.push(...Q.nodes),x.push(...Q.edges);const ie=new Set(Q.edges.map(ge=>ge.source)),he=Q.nodes.filter(ge=>!ie.has(ge.id));ee.push(...he.map(ge=>ge.id))}}else if(typeof ne=="object"&&ne!==null){const Q=ne;if("sequence"in Q&&Array.isArray(Q.sequence)){const ie=this.parseActions(Q.sequence,{warnings:u,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ie.nodes.length>0){S.push(...ie.nodes),x.push(...ie.edges);const he=new Set(ie.edges.map(ce=>ce.source)),ge=ie.nodes.filter(ce=>!he.has(ce.id));ee.push(...ge.map(ce=>ce.id))}}else{const ie=this.parseActions([ne],{warnings:u,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ie.nodes.length>0){S.push(...ie.nodes),x.push(...ie.edges);const he=ie.nodes[ie.nodes.length-1];ee.push(he.id)}}}A=ee.length>0?ee:G}else if(lQn(B)){const j=g("action"),P=B,G={id:j,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:D(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),L(j),A=[j]}else if(cQn(B)){const j=B,P=j.repeat,G=Array.isArray(P.sequence)?P.sequence:[],ee=typeof j.alias=="string"?j.alias:void 0,ne=D(typeof j.enabled=="boolean"?j.enabled:void 0);if(Array.isArray(P.while)&&P.while.length>0){const Q=P.while,ie=[];for(let Oe=0;Oe0){const Oe=ge.nodes[0].id,Se=x.find(De=>De.source===he&&De.target===Oe);Se&&(Se.sourceHandle="true")}const ce=new Set(ge.nodes.map(Oe=>Oe.id)),fe=new Set(ge.edges.map(Oe=>Oe.source)),K=ge.nodes.filter(Oe=>!fe.has(Oe.id)||![...ge.edges].some(Se=>Se.source===Oe.id&&ce.has(Se.target))),pe=K.length>0?K[K.length-1].id:ge.nodes.length>0?ge.nodes[ge.nodes.length-1].id:he;if(ge.nodes.length>0){const Oe=this.createEdge(pe,ie[0].id);x.push(Oe)}A=[ie[0].id],R.add(ie[0].id)}else if(Array.isArray(P.until)&&P.until.length>0||typeof P.until=="string"){const Q=this.parseActions(G,{warnings:u,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:ne});S.push(...Q.nodes),x.push(...Q.edges);const ie=Q.nodes.length>0?Q.nodes[0].id:null,he=new Set(Q.nodes.map(Se=>Se.id)),ge=new Set(Q.edges.filter(Se=>he.has(Se.target)).map(Se=>Se.source)),ce=Q.nodes.filter(Se=>!ge.has(Se.id)||!Q.edges.some(De=>De.source===Se.id&&he.has(De.target))),fe=ce.length>0?ce[ce.length-1].id:Q.nodes.length>0?Q.nodes[Q.nodes.length-1].id:null,K=typeof P.until=="string"?[{condition:"template",value_template:P.until}]:P.until,pe=[];for(let Se=0;SeAe.id===fe)&&C.has(fe)?"true":void 0;x.push(this.createEdge(fe,pe[0].id,De))}else L(pe[0].id);for(let Se=0;SeUe.id)),K=new Set(ce.edges.filter(Ue=>fe.has(Ue.target)).map(Ue=>Ue.source)),pe=ce.nodes.filter(Ue=>!K.has(Ue.id)||!ce.edges.some(bt=>bt.source===Ue.id&&fe.has(bt.target))),Oe=pe.length>0?pe[pe.length-1].id:ce.nodes.length>0?ce.nodes[ce.nodes.length-1].id:ie,Se=g("set_variables"),De={id:Se,type:"set_variables",position:{x:0,y:0},data:{variables:{[he]:`{{ ${he} + 1 }}`},enabled:ne}};if(S.push(De),ce.nodes.length>0){const bt=ce.nodes.find(kt=>kt.id===Oe)&&C.has(Oe)?"true":void 0;x.push(this.createEdge(Oe,Se,bt))}else x.push(this.createEdge(ie,Se));const Ae=g("condition"),xe={id:Ae,type:"condition",position:{x:0,y:0},data:{condition:"template",value_template:`{{ ${he} < ${Q} }}`,enabled:ne}};S.push(xe),C.add(Ae),x.push(this.createEdge(Se,Ae));const We=ce.nodes.length>0?ce.nodes[0].id:Se,dt=this.createEdge(Ae,We,"true");x.push(dt),A=[Ae],R.add(Ae)}else{const Q=g("action"),ie={id:Q,type:"action",position:{x:0,y:0},data:{alias:ee,repeat:P,enabled:ne}};S.push(ie),L(Q),A=[Q]}}else if(iQn(B)){const j=g("action");try{const P=B,{alias:G,service:ee,action:ne,target:Q,data:ie,data_template:he,response_variable:ge,continue_on_error:ce,enabled:fe,...K}=P,pe={id:j,type:"action",position:{x:0,y:0},data:{...K,alias:typeof G=="string"?G:void 0,service:typeof ee=="string"?ee:typeof ne=="string"?ne:void 0,target:typeof Q=="object"&&Q!==null?Q:void 0,data:typeof ie=="object"&&ie!==null?ie:void 0,data_template:typeof he=="object"&&he!==null?he:void 0,response_variable:typeof ge=="string"?ge:void 0,continue_on_error:typeof ce=="boolean"?ce:void 0,enabled:D(typeof fe=="boolean"?fe:void 0)}};S.push(pe),L(j),A=[j]}catch(P){u.push(`Failed to parse action ${$}: ${P}`),S.push(this.createUnknownNode(j,B))}}else if(aQn(B)){const j=g("action"),P=B,G={id:j,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:D(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),L(j),A=[j]}else if(uQn(B)){const j=g("action"),P=B,G={id:j,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,stop:typeof P.stop=="string"?P.stop:"",...P.error===!0?{error:!0}:{},enabled:D(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),L(j),A=[j]}else{u.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const j=g("unknown");S.push({id:j,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),L(j),A=[j]}}),{nodes:S,edges:x,terminalNodeIds:A}}parseChooseBlock(i,s){const{warnings:u,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,inheritedEnabled:E}=s,S=[],x=[],A=[],C=[],R=new Set(b),D=i.enabled,L=E===!1||D===!1?!1:void 0,B=()=>L,j=(Array.isArray(i.choose)?i.choose:[i.choose]).filter(G=>{if(typeof G!="object"||G===null)return!1;const ee=G.conditions;return Array.isArray(ee)?ee.length>0:!!ee});let P=[...d];if(j.forEach((G,ee)=>{const ne=Array.isArray(G.conditions)?G.conditions:[G.conditions],Q=[];for(let ge=0;ge0&&R.has(ge)&&!b.has(ge)||w.has(ge)?ce="false":b.has(ge)&&(ce="true"),x.push(this.createEdge(ge,ie,ce))}for(let ge=0;ge0){const fe=ce.nodes[0].id,K=x.find(Oe=>Oe.source===he&&Oe.target===fe);K&&(K.sourceHandle="true");const pe=ce.nodes[ce.nodes.length-1].id;A.push(pe)}else A.push(he)}else A.push(he);P=[ie]}),i.default){const G=Array.isArray(i.default)?i.default:[i.default],ee=this.parseActions(G,{warnings:u,previousNodeIds:P,getNextNodeId:g,conditionNodeIds:R,inheritedEnabled:L});if(S.push(...ee.nodes),x.push(...ee.edges),P.length>0&&ee.nodes.length>0){const ne=P[0],Q=ee.nodes[0].id,ie=x.find(ge=>ge.source===ne&&ge.target===Q);ie&&R.has(ne)&&(ie.sourceHandle="false");const he=ee.nodes[ee.nodes.length-1].id;A.push(he)}}else if(j.length>0){const G=P[0];A.push(G),C.push(G)}return{nodes:S,edges:x,outputNodeIds:A,falsePathOutputIds:C}}parseIfBlock(i,s){const{warnings:u,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,triggerNodeMap:E,inheritedEnabled:S}=s,x=[],A=[],C=[],R=[],D=new Set(b),L=S===!1||i.enabled===!1?!1:void 0,B=()=>L,$=Array.isArray(i.if)?i.if:[i.if],j=[];for(let Q=0;Q<$.length;Q++){const ie=$[Q],he=g("condition");let ge;if(ie&&Array.isArray(ie.conditions)){const ce=ie.condition||"and",fe=k5.includes(ce)?ce:"template";ge={id:he,type:"condition",position:{x:0,y:0},data:{alias:Q===0?i.alias:void 0,condition:fe,conditions:zLe(ie.conditions),enabled:B()}}}else{const ce=(ie==null?void 0:ie.condition)||"numeric_state",fe=k5.includes(ce)?ce:"template",K={...ie,alias:Q===0?i.alias??(ie==null?void 0:ie.alias):ie==null?void 0:ie.alias,condition:fe,enabled:B()};let pe;try{pe=Ug.parse(K)}catch{pe={alias:Q===0?i.alias:void 0,condition:"template",value_template:JSON.stringify(ie),enabled:B()}}ge={id:he,type:"condition",position:{x:0,y:0},data:pe}}j.push(ge),x.push(ge),D.add(he)}const P=j[0].id,G=(()=>{if(i.else||$.length!==1)return null;const Q=$[0];if((Q==null?void 0:Q.condition)!=="trigger")return null;const ie=Q==null?void 0:Q.id;return typeof ie=="string"?[ie]:Array.isArray(ie)&&ie.length>0&&ie.every(he=>typeof he=="string")?ie:null})();for(const Q of d){if(G!==null&&E){const he=E.get(Q);if(he!==void 0&&!G.includes(he))continue}let ie;w.has(Q)?ie="false":D.has(Q)&&(ie="true"),A.push(this.createEdge(Q,P,ie))}for(let Q=0;Q0){const he=ie.nodes[0].id,ge=A.find(ce=>ce.source===ee&&ce.target===he);ge&&(ge.sourceHandle="true")}C.push(...ie.terminalNodeIds)}if(i.else){const Q=Array.isArray(i.else)?i.else:[i.else],ie=this.parseActions(Q,{warnings:u,previousNodeIds:[P],getNextNodeId:g,conditionNodeIds:new Set,inheritedEnabled:L});if(x.push(...ie.nodes),ie.nodes.length>0){const he=ie.nodes[0].id,ge=ie.edges.findIndex(ce=>ce.source===P&&ce.target===he);ge>=0&&ie.edges.splice(ge,1),A.push(this.createEdge(P,he,"false"))}A.push(...ie.edges),C.push(...ie.terminalNodeIds)}else if(G===null)for(const Q of j)C.push(Q.id),R.push(Q.id);C.length===0&&G===null&&(C.push(ee),R.push(ee));const ne=G!==null&&E?d.filter(Q=>{const ie=E.get(Q);return ie===void 0||!G.includes(ie)}):[];return{nodes:x,edges:A,outputNodeIds:C,falsePathOutputIds:R,unconsumedPreviousIds:ne}}createUnknownNode(i,s){const u=s;return{id:i,type:"action",position:{x:0,y:0},data:{alias:`Unknown: ${(u==null?void 0:u.service)||(u==null?void 0:u.trigger)||"Node"}`,service:(u==null?void 0:u.service)||"unknown.unknown",data:u}}}applyMetadataPositions(i,s){return i.map(u=>({...u,position:s.nodes[u.id]||u.position}))}createEdge(i,s,u){return{id:UZn(i,s),source:i,target:s,sourceHandle:u||void 0}}}class nKt{findEntryNodes(i){const s=new Set(i.edges.map(u=>u.target));return i.nodes.filter(u=>!s.has(u.id)).map(u=>u.id)}getOutgoingEdges(i,s){return i.edges.filter(u=>u.source===s)}getIncomingEdges(i,s){return i.edges.filter(u=>u.target===s)}getNode(i,s){return i.nodes.find(u=>u.id===s)}}class hQn extends nKt{constructor(){super(...arguments);Zf(this,"name","native");Zf(this,"description","Generates nested HA YAML for simple tree-shaped automations");Zf(this,"repeatPatterns",new Map);Zf(this,"repeatInternalNodeIds",new Set);Zf(this,"backEdgeIds",new Set)}canHandle(s){return s.isTree}generate(s,u){var D,L,B,$,j;const d=[];this.backEdgeIds=CWt(s),this.repeatPatterns=this.detectRepeatPatterns(s),this.repeatInternalNodeIds=new Set;for(const P of this.repeatPatterns.values()){for(const G of P.bodyNodeIds)this.repeatInternalNodeIds.add(G);for(const G of P.conditionNodeIds)this.repeatInternalNodeIds.add(G);P.initNodeId&&this.repeatInternalNodeIds.add(P.initNodeId),P.incrementNodeId&&this.repeatInternalNodeIds.add(P.incrementNodeId)}const g=this.extractTriggers(s),w=u.entryNodes.flatMap(P=>this.getOutgoingEdges(s,P).map(ee=>ee.target)),E=[...new Set(w)];let S=null,x=[],A=null;if(E.length===1){const P=this.extractLeadingConditions(s,E[0]);P.conditions.length>0&&(S=P.conditions,x=P.nextNodeIds,A=P.visitedIds)}let C;if(S)x.length>0?C=x.flatMap(P=>this.buildSequenceFromNode(s,P,new Set(A))):C=[];else if(E.length===1)C=this.buildSequenceFromNode(s,E[0],new Set);else if(E.length>1){const P=this.detectOrPattern(s,E);if(P){const G=P.conditions.map(Q=>this.buildCondition(Q)),ee=new Set(P.conditions.map(Q=>Q.id)),ne=this.buildSequenceFromNode(s,P.convergenceNode,ee);C=[{if:[{condition:"or",conditions:G}],then:ne,else:P.isFromFalsePaths?[]:[]}]}else E.every(ee=>{var Q;const ne=s.nodes.find(ie=>ie.id===ee);return(ne==null?void 0:ne.type)==="condition"&&((Q=ne.data)==null?void 0:Q.condition)==="trigger"})?C=E.flatMap(ee=>this.buildSequenceFromNode(s,ee,new Set)):C=[{parallel:E.map(Q=>this.buildSequenceFromNode(s,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:s.name,description:s.description||"",triggers:g};return S&&S.length>0&&(R.conditions=S),R.actions=C,R.mode=((D=s.metadata)==null?void 0:D.mode)??"single",(L=s.metadata)!=null&&L.max&&(R.max=s.metadata.max),(B=s.metadata)!=null&&B.max_exceeded&&(R.max_exceeded=s.metadata.max_exceeded),(($=s.metadata)==null?void 0:$.initial_state)===!1&&(R.initial_state=!1),(j=s.metadata)!=null&&j.trace&&(R.trace=s.metadata.trace),s.userTriggerVariables&&Object.keys(s.userTriggerVariables).length>0&&(R.trigger_variables=s.userTriggerVariables),{automation:R,warnings:d,strategy:this.name}}detectRepeatPatterns(s){const u=new Map;for(const d of s.edges){if(!this.backEdgeIds.has(d.id))continue;const g=this.getNode(s,d.source),b=this.getNode(s,d.target);if(!(!g||!b)){if(b.type==="condition"&&g.type!=="condition"){const w=d.target,E=d.source,S=[];let x=w;for(;x;){const D=this.getNode(s,x);if((D==null?void 0:D.type)!=="condition")break;S.push(x);const L=s.edges.find($=>$.source===x&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!L)break;const B=this.getNode(s,L.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(L.target)===-1)x=L.target;else break}const A=S[S.length-1],C=this.collectBodyNodes(s,A,"true",new Set(S),E),R=s.edges.find(D=>D.source===w&&D.sourceHandle==="false"&&!this.backEdgeIds.has(D.id));u.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 x=E;for(;x;){const D=this.getNode(s,x);if((D==null?void 0:D.type)!=="condition")break;S.push(x);const L=s.edges.find($=>$.source===x&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!L)break;const B=this.getNode(s,L.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(L.target)===-1)x=L.target;else break}const A=this.collectNodesUntil(s,w,new Set(S)),C=S[S.length-1],R=s.edges.find(D=>D.source===C&&D.sourceHandle==="true"&&!this.backEdgeIds.has(D.id));u.set(w,{type:"until",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:A,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],x=s.edges.filter(G=>G.target===E&&!this.backEdgeIds.has(G.id)),A=x.length>0?x[0].source:void 0,C=new Set([E]);A&&C.add(A);const R=this.collectNodesUntil(s,w,C),L=s.edges.filter(G=>G.target===w&&!this.backEdgeIds.has(G.id)).map(G=>G.source).find(G=>{const ee=this.getNode(s,G);return(ee==null?void 0:ee.type)==="set_variables"}),B=this.getNode(s,E);let $;if((B==null?void 0:B.type)==="condition"&&B.data.condition==="template"){const G=B.data.value_template;if(typeof G=="string"){const ee=G.match(/<\s*(\d+)\s*\}\}/);ee&&($=Number.parseInt(ee[1],10))}}const j=s.edges.find(G=>G.source===E&&G.sourceHandle==="false"&&!this.backEdgeIds.has(G.id)),P=L??w;u.set(P,{type:"count",entryNodeId:P,conditionNodeIds:S,bodyNodeIds:R,backEdgeSourceId:E,initNodeId:L,incrementNodeId:A,count:$,exitNodeId:(j==null?void 0:j.target)??null})}}}return u}collectBodyNodes(s,u,d,g,b){const w=s.edges.find(A=>A.source===u&&A.sourceHandle===d&&!this.backEdgeIds.has(A.id));if(!w)return[];const E=[],S=[w.target],x=new Set;for(;S.length>0;){const A=S.shift();if(x.has(A)||g.has(A)||(x.add(A),E.push(A),A===b))continue;const C=s.edges.filter(R=>R.source===A&&!this.backEdgeIds.has(R.id));for(const R of C)!x.has(R.target)&&!g.has(R.target)&&S.push(R.target)}return E}collectNodesUntil(s,u,d){const g=[],b=[u],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=s.edges.filter(x=>x.source===E&&!this.backEdgeIds.has(x.id));for(const x of S)!w.has(x.target)&&!d.has(x.target)&&b.push(x.target)}return g}buildRepeatBlock(s,u,d){for(const w of u.conditionNodeIds)d.add(w);for(const w of u.bodyNodeIds)d.add(w);u.initNodeId&&d.add(u.initNodeId),u.incrementNodeId&&d.add(u.incrementNodeId),d.add(u.entryNodeId);const g=[];for(const w of u.bodyNodeIds){const E=this.getNode(s,w);if(E)if(E.type==="condition"){const S=s.edges.filter(C=>C.source===w&&!this.backEdgeIds.has(C.id)),x=S.find(C=>C.sourceHandle==="true"),A=S.find(C=>C.sourceHandle==="false");if(x||A){const C={if:[this.buildCondition(E)],then:[],else:[]};x&&u.bodyNodeIds.includes(x.target)&&(C.then=this.buildBodySubsequence(s,x.target,u,d)),A&&u.bodyNodeIds.includes(A.target)&&(C.else=this.buildBodySubsequence(s,A.target,u,d)),g.push(C)}else g.push(this.buildCondition(E))}else{const S=this.buildNodeAction(E);S&&g.push(S)}}let b;if(u.type==="while"){const E={repeat:{while:u.conditionNodeIds.map(S=>{var A;const x=this.getNode(s,S);return!b&&((A=x==null?void 0:x.data)!=null&&A.alias)&&(b=x.data.alias),this.buildCondition(x)}),sequence:g}};return b&&(E.alias=b),E}if(u.type==="until"){const E={repeat:{until:u.conditionNodeIds.map(S=>{const x=this.getNode(s,S);return this.buildCondition(x)}),sequence:g}};return b&&(E.alias=b),E}if(u.type==="count"){if(u.initNodeId){const E=this.getNode(s,u.initNodeId);E!=null&&E.data&&"alias"in E.data&&(b=E.data.alias)}const w={repeat:{count:u.count,sequence:g}};return b&&(w.alias=b),w}return null}buildBodySubsequence(s,u,d,g){const b=[];let w=u;for(;w&&d.bodyNodeIds.includes(w)&&!g.has(w);){g.add(w);const E=this.getNode(s,w);if(!E)break;const S=this.buildNodeAction(E);S&&b.push(S);const x=s.edges.filter(A=>A.source===w&&!this.backEdgeIds.has(A.id));w=x.length===1?x[0].target:null}return b}extractTriggers(s){return s.nodes.filter(u=>u.type==="trigger").map(u=>this.buildTrigger(u))}detectOrPattern(s,u){const d=u.map(w=>this.getNode(s,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=s.edges.find(S=>S.source===w.id&&S.sourceHandle==="true");E&&g.add(E.target)}if(g.size===1&&d.length===u.length){const w=[...g][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!1}}const b=new Set;for(const w of d){const E=s.edges.find(S=>S.source===w.id&&S.sourceHandle==="false");E&&b.add(E.target)}if(b.size===1&&d.length===u.length){const w=[...b][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!0}}return null}extractLeadingConditions(s,u){const d=[],g=new Set;let b=u;for(;b;){const w=this.getNode(s,b);if(!w||w.type!=="condition"||this.repeatPatterns.has(b)||this.repeatInternalNodeIds.has(b))break;const S=this.getOutgoingEdges(s,b).filter(R=>!this.backEdgeIds.has(R.id)),x=S.filter(R=>R.sourceHandle==="true"),A=S.filter(R=>R.sourceHandle==="false");if(x.length>0&&A.length>0||x.length===0&&A.length===0)break;const C=this.buildCondition(w);if(w.data.alias&&(C.alias=w.data.alias),A.length>0){if(d.push({condition:"not",conditions:[C]}),g.add(b),A.length>1)return{conditions:d,nextNodeIds:A.map(R=>R.target),visitedIds:g};b=A[0].target}else{if(d.push(C),g.add(b),x.length>1)return{conditions:d,nextNodeIds:x.map(R=>R.target),visitedIds:g};b=x[0].target}}return{conditions:d,nextNodeIds:b?[b]:[],visitedIds:g}}buildTrigger(s){const u={...s.data};return Object.fromEntries(Object.entries(u).filter(([,d])=>d!==void 0&&d!==""&&d!==null))}findOrConditionSources(s,u,d,g){const b=s.edges.filter(w=>w.target===u&&w.sourceHandle===d&&!this.backEdgeIds.has(w.id)).map(w=>this.getNode(s,w.source)).filter(w=>(w==null?void 0:w.type)==="condition"&&!g.has(w.id));return b.length>1?b:[]}buildSequenceFromNode(s,u,d){if(d.has(u))return[];const g=this.getNode(s,u);if(!g)return[];const b=[],w=this.findOrConditionSources(s,u,"true",d),E=this.findOrConditionSources(s,u,"false",d);if(w.length>1){const A=w.map(D=>this.buildCondition(D));for(const D of w)d.add(D.id);d.add(u);const C=g.type==="condition"?this.buildSequenceFromNode(s,u,new Set):this.buildSequenceFromNode(s,u,new Set(d));let R;if(g.type!=="condition"){const D=this.buildNodeAction(g);R=D?[D,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:A}],then:R,else:[]}),b}if(E.length>1){const A=E.map(D=>this.buildCondition(D));for(const D of E)d.add(D.id);d.add(u);const C=g.type==="condition"?this.buildSequenceFromNode(s,u,new Set):this.buildSequenceFromNode(s,u,new Set(d));let R;if(g.type!=="condition"){const D=this.buildNodeAction(g);R=D?[D,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:A}],then:[],else:R}),b}const S=this.repeatPatterns.get(u);if(S){const A=this.buildRepeatBlock(s,S,d);if(A){if(b.push(A),S.exitNodeId){const C=this.buildSequenceFromNode(s,S.exitNodeId,new Set(d));b.push(...C)}return b}}d.add(u);const x=this.getOutgoingEdges(s,u).filter(A=>!this.backEdgeIds.has(A.id));if(g.type==="condition"){const A=[];let C=g,R=[],D=[];for(D=this.getOutgoingEdges(s,g.id).filter(P=>P.sourceHandle==="false"&&!this.backEdgeIds.has(P.id)).map(P=>P.target);(C==null?void 0:C.type)==="condition";){A.push(this.buildCondition(C));const P=this.getOutgoingEdges(s,C.id).filter(ne=>ne.sourceHandle==="true"&&!this.backEdgeIds.has(ne.id));if(P.length===0)break;if(P.length>1){R=P.map(ne=>ne.target);break}const G=P[0],ee=this.getNode(s,G.target);if((ee==null?void 0:ee.type)==="condition"&&!d.has(ee.id)&&!this.repeatPatterns.has(ee.id)&&!this.repeatInternalNodeIds.has(ee.id)){const ne=this.getOutgoingEdges(s,ee.id).filter(ie=>ie.sourceHandle==="false"&&!this.backEdgeIds.has(ie.id));if(ne.length===0||ne.length===1&&D.includes(ne[0].target))C=ee,d.add(C.id);else{R=[G.target];break}}else{R=[G.target];break}}const B={alias:g.data.alias,if:A,then:[],else:[]},$=[...R,...D],j=R.length>0&&D.length>0?this.findConvergencePoint(s,$):null;if(j){if(R.length>0){const G=R.flatMap(ee=>this.buildSequenceUntilNode(s,ee,j,new Set(d)));B.then=G}if(D.length>0){const G=D.flatMap(ee=>this.buildSequenceUntilNode(s,ee,j,new Set(d)));B.else=G}b.push(B);const P=this.buildSequenceFromNode(s,j,new Set(d));b.push(...P)}else{if(R.length>0){const P=R.flatMap(G=>this.buildSequenceFromNode(s,G,new Set(d)));B.then=P}if(D.length>0){const P=D.flatMap(G=>this.buildSequenceFromNode(s,G,new Set(d)));B.else=P}b.push(B)}}else{const A=this.buildNodeAction(g);if(A&&b.push(A),x.length===1){const C=this.buildSequenceFromNode(s,x[0].target,new Set(d));b.push(...C)}else if(x.length>1){const C=this.findConvergencePoint(s,x.map(R=>R.target));if(C){const D=x.map(B=>this.buildSequenceUntilNode(s,B.target,C,new Set(d))).filter(B=>B.length>0);if(D.length>0){const B=D.map($=>$.length===1?$[0]:$);b.push({parallel:B})}const L=this.buildSequenceFromNode(s,C,new Set(d));b.push(...L)}else{const D=x.map(L=>this.buildSequenceFromNode(s,L.target,new Set(d))).filter(L=>L.length>0);if(D.length>0){const L=D.map(B=>B.length===1?B[0]:B);b.push({parallel:L})}}}}return b}findConvergencePoint(s,u){if(u.length<2)return null;const d=u.map(S=>{const x=new Set,A=[S];for(;A.length>0;){const C=A.shift();if(x.has(C))continue;x.add(C);const R=this.getOutgoingEdges(s,C);for(const D of R)A.push(D.target)}return x}),b=[...d[0]].filter(S=>d.every(x=>x.has(S)));if(b.length===0)return null;let w=null,E=Number.POSITIVE_INFINITY;for(const S of b){const x=u.map(C=>this.getShortestDistance(s,C,S)),A=Math.max(...x);A0;){const{nodeId:w,distance:E}=b.shift();if(g.has(w))continue;g.add(w);const S=this.getOutgoingEdges(s,w);for(const x of S){if(x.target===d)return E+1;g.has(x.target)||b.push({nodeId:x.target,distance:E+1})}}return Number.POSITIVE_INFINITY}buildSequenceUntilNode(s,u,d,g){if(u===d)return[];if(g.has(u))return[];g.add(u);const b=this.getNode(s,u);if(!b)return[];const w=[],E=this.buildNodeAction(b);E&&w.push(E);const S=this.getOutgoingEdges(s,u).filter(x=>!this.backEdgeIds.has(x.id));if(b.type==="condition"){const x=E,A=S.filter(R=>R.sourceHandle==="true"),C=S.filter(R=>R.sourceHandle==="false");if(A.length>0){const R=A.flatMap(D=>this.buildSequenceUntilNode(s,D.target,d,new Set(g)));x.then=R}if(C.length>0){const R=C.flatMap(D=>this.buildSequenceUntilNode(s,D.target,d,new Set(g)));x.else=R}}else if(S.length===1){if(S[0].target!==d){const x=this.buildSequenceUntilNode(s,S[0].target,d,new Set(g));w.push(...x)}}else if(S.length>1){const A=S.map(C=>this.buildSequenceUntilNode(s,C.target,d,new Set(g))).filter(C=>C.length>0);if(A.length>0){const C=A.map(R=>R.length===1?R[0]:R);w.push({parallel:C})}}return w}buildNodeAction(s){switch(s.type){case"trigger":return null;case"condition":return this.buildConditionChoose(s);case"action":return this.buildActionCall(s);case"delay":return this.buildDelay(s);case"wait":return this.buildWait(s);case"set_variables":return this.buildSetVariables(s);default:return null}}buildConditionChoose(s){const u=this.buildCondition(s);return{alias:s.data.alias,if:[u],then:[],else:[]}}mapSingleCondition(s){const{condition:u,conditions:d,alias:g,template:b,...w}=s,E={condition:u,...w};return u==="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(s){function u(d){if(!d||typeof d!="object")return d;const{condition:g,conditions:b,alias:w,template:E,...S}=d,x={condition:g,...S};return g==="template"&&!S.value_template&&E&&(x.value_template=E),Array.isArray(b)&&b.length>0&&(x.conditions=b.map(u).filter(A=>A&&(!Array.isArray(A.conditions)||A.conditions.length>0))),Object.fromEntries(Object.entries(x).filter(([,A])=>A!==void 0&&A!==""))}return u(s.data)}buildActionCall(s){if(bMe(s.data.data)){const L=s.data.data,B={device_id:L.device_id,domain:L.domain,type:L.type};s.data.alias&&(B.alias=s.data.alias),L.entity_id&&(B.entity_id=L.entity_id),L.subtype&&(B.subtype=L.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[j,P]of Object.entries(L))!$.includes(j)&&P!==void 0&&(B[j]=P);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const L=s.data.repeat,B={repeat:{...L.count!==void 0?{count:L.count}:{},...L.while?{while:L.while}:{},...L.until?{until:L.until}:{},sequence:L.sequence??[]}};return s.data.alias&&(B.alias=s.data.alias),s.data.enabled===!1&&(B.enabled=!1),B}if(typeof s.data.event=="string"&&s.data.event.trim()!==""){const L={event:s.data.event};return s.data.alias&&(L.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(L.event_data=s.data.event_data),s.data.enabled===!1&&(L.enabled=!1),L}if("stop"in s.data){const L={stop:s.data.stop??""};return s.data.alias&&(L.alias=s.data.alias),s.data.error===!0&&(L.error=!0),s.data.enabled===!1&&(L.enabled=!1),L}const{alias:u,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:x,enabled:A,repeat:C,...R}=s.data,D={...R,alias:u,service:d};return b&&(D.target=b),w&&(D.data=w),E&&(D.data_template=E),S&&(D.response_variable=S),x&&(D.continue_on_error=x),A===!1&&(D.enabled=!1),D}buildDelay(s){const{alias:u,delay:d,id:g,...b}=s.data;return{...b,alias:u,delay:d}}buildWait(s){const{alias:u,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,x={...S,alias:u};return g?x.wait_template=g:b&&(x.wait_for_trigger=b.map(A=>{const C={...A};return Object.fromEntries(Object.entries(C).filter(([,R])=>R!==void 0&&R!==""&&R!==null))})),w&&(x.timeout=w),E!==void 0&&(x.continue_on_timeout=E),x}buildSetVariables(s){const{alias:u,id:d,variables:g,...b}=s.data,w={...b,variables:g};return u&&(w.alias=u),w}}class BFt extends nKt{constructor(){super(...arguments);Zf(this,"name","state-machine");Zf(this,"description","Generates state machine YAML for complex flows with cycles or cross-links")}canHandle(s){return!0}generate(s,u){var j,P,G,ee,ne;const d=[],g=this.buildTriggerRouting(s);if(g.size===0){d.push("No action nodes found after triggers");const Q=this.extractTriggers(s);return Q.length>0?{automation:{alias:s.name,description:s.description||"",triggers:Q,actions:[],mode:((j=s.metadata)==null?void 0:j.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:s.name,description:s.description||"",sequence:[],mode:((P=s.metadata)==null?void 0:P.mode)??"single"},warnings:d,strategy:this.name}}const b=s.nodes.filter(Q=>Q.type==="trigger"),w=new Set,E=new Map;for(const[Q,ie]of g){const he=(G=b[Q])==null?void 0:G.id;if(!he)continue;const ge=[...new Set(ie)].filter(fe=>fe!=="END");if(ge.length<=1)continue;const ce=this.planFanOut(s,this.getOutgoingEdges(s,he));if(!ce.ok){d.push(this.describeFanOutRejection(`Trigger ${Q+1}`,ge,ce));continue}E.set(Q,ge);for(const fe of ce.owned)w.add(fe)}const S=this.generateParallelEntryBlocks(s,E),x=new Map;for(const Q of this.orderNodesFromEntry(s)){if(Q.type==="trigger"||Q.type==="condition"||w.has(Q.id))continue;const ie=this.getFanOutTargets(s,Q.id);if(ie.length<=1)continue;const he=this.planFanOut(s,this.getFanOutEdges(s,Q.id));if(!he.ok){d.push(this.describeFanOutRejection(`Node "${Q.id}"`,ie,he));continue}x.set(Q.id,ie);for(const ge of he.owned)w.add(ge);for(const ge of he.reachable){const ce=this.getFanOutTargets(s,ge);if(ce.length<=1)continue;const fe=this.planFanOut(s,this.getFanOutEdges(s,ge));fe.ok||d.push(this.describeFanOutRejection(`Node "${ge}"`,ce,fe,!0))}}const A=[],C=new Map;for(const Q of this.orderNodesFromEntry(s))if(!(Q.type!=="condition"||w.has(Q.id)))for(const ie of["true","false"]){const he=this.getConditionHandleTargets(s,Q.id,ie);if(he.length<=1)continue;const ge=this.getOutgoingEdges(s,Q.id).filter(K=>K.sourceHandle===ie),ce=this.planFanOut(s,ge);if(!ce.ok){d.push(this.describeFanOutRejection(`The "${ie}" branch of condition "${Q.id}"`,he,ce));continue}const fe=`__parallel_cond_${Q.id}__${ie}`;C.set(`${Q.id}:${ie}`,fe),A.push(this.buildParallelEntryBlock(s,fe,he));for(const K of ce.owned)w.add(K)}const R=s.nodes.filter(Q=>Q.type!=="trigger"&&!w.has(Q.id)).map(Q=>this.generateNodeBlock(s,Q,x,C)),D=[...S,...A,...R];if(u.hasCycles){const Q=this.detectPotentialInfiniteLoop(s,u);Q&&d.push(Q)}const L=this.extractTriggers(s),$=[{variables:{current_node:this.generateEntryNodeExpression(g,E),flow_context:{}}},{alias:"State Machine Loop",repeat:{until:'{{ current_node == "END" }}',sequence:[{choose:D,default:[{service:"system_log.write",data:{message:'C.A.F.E.: Unknown state "{{ current_node }}", ending flow',level:"warning"}},{variables:{current_node:"END"}}]}]}}];return L.length>0?{automation:{alias:s.name,description:s.description||"",triggers:L,actions:$,mode:((ee=s.metadata)==null?void 0:ee.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:s.name,description:s.description||"",sequence:$,mode:((ne=s.metadata)==null?void 0:ne.mode)??"single"},warnings:d,strategy:this.name}}buildTriggerRouting(s){const u=new Map;return s.nodes.filter(g=>g.type==="trigger").forEach((g,b)=>{const w=this.getOutgoingEdges(s,g.id);w.length>0&&u.set(b,w.map(E=>E.target))}),u}getEffectiveEntryPoint(s,u,d){return u.length===1||!d.has(s)?u[0]:`__parallel_trigger_${s}`}generateEntryNodeExpression(s,u){const d=new Map;for(const[E,S]of s)d.set(E,this.getEffectiveEntryPoint(E,S,u));const g=new Set(d.values());if(g.size===1)return[...g][0];const b=[...d.entries()].sort((E,S)=>E[0]-S[0]),w=[];return b.forEach(([E,S],x)=>{x===0?w.push(`{% if trigger.idx == "${E}" %}${S}`):x===b.length-1?w.push(`{% else %}${S}{% endif %}`):w.push(`{% elif trigger.idx == "${E}" %}${S}`)}),b.length===1?b[0][1]:w.join("")}generateParallelEntryBlocks(s,u){const d=[];for(const[g,b]of u)b.length<=1||d.push(this.buildParallelEntryBlock(s,`__parallel_trigger_${g}`,[...new Set(b)]));return d}buildParallelEntryBlock(s,u,d){return{conditions:[{condition:"template",value_template:`{{ current_node == "${u}" }}`}],sequence:[{parallel:this.buildParallelBranches(s,d)},{variables:{current_node:"END"}}]}}getFanOutEdges(s,u){return this.getOutgoingEdges(s,u).filter(d=>d.sourceHandle!=="true"&&d.sourceHandle!=="false")}orderNodesFromEntry(s){const u=new Map(s.nodes.map(w=>[w.id,w])),d=[],g=new Set,b=s.nodes.filter(w=>w.type==="trigger").flatMap(w=>this.getOutgoingEdges(s,w.id).map(E=>E.target));for(;b.length>0;){const w=b.shift();if(w===void 0||w==="END"||g.has(w))continue;g.add(w);const E=u.get(w);if(E){d.push(E);for(const S of this.getOutgoingEdges(s,w))b.push(S.target)}}for(const w of s.nodes)w.type!=="trigger"&&!g.has(w.id)&&d.push(w);return d}getConditionHandleTargets(s,u,d){const g=this.getOutgoingEdges(s,u).filter(b=>b.sourceHandle===d).map(b=>b.target);return[...new Set(g)].filter(b=>b!=="END")}getFanOutTargets(s,u){return[...new Set(this.getFanOutEdges(s,u).map(d=>d.target))].filter(d=>d!=="END"&&d!==u)}planFanOut(s,u){var C;const d=(C=u[0])==null?void 0:C.source;if(!d)return{ok:!1,reason:"cycle",nodes:[]};const g=[...new Set(u.map(R=>R.target))],b=new Set;for(const R of g)this.collectSubgraphNodeIds(s,R,b);if(b.has(d))return{ok:!1,reason:"cycle",nodes:[d]};const w=this.findJoinNodes(s,g);if(w.length>0)return{ok:!1,reason:"join",nodes:w};const E=[...b].find(R=>this.hasMultiTargetHandle(s,R));if(E)return{ok:!1,reason:"nested-condition",nodes:[E]};const S=new Set(u.map(R=>R.id)),x=new Set(b);let A=!0;for(;A;){A=!1;for(const R of[...x])s.edges.some(L=>L.target===R&&!S.has(L.id)&&!x.has(L.source))&&(x.delete(R),A=!0)}return{ok:!0,owned:x,reachable:b}}hasMultiTargetHandle(s,u){const d=s.nodes.find(g=>g.id===u);return(d==null?void 0:d.type)!=="condition"?!1:this.getConditionHandleTargets(s,u,"true").length>1||this.getConditionHandleTargets(s,u,"false").length>1}describeFanOutRejection(s,u,d,g=!1){return d.reason==="nested-condition"?`${s} branches to [${u.join(", ")}], but condition "${d.nodes.join(", ")}" downstream sends one of its branches to several nodes, which cannot be nested inside a parallel block. Only the first branch will run. Move that condition out of the parallel section to run these in parallel.`:d.reason==="cycle"?g?`${s} branches to [${u.join(", ")}] inside a parallel section, but one of those loops back. The loop cannot be expressed there and will stop after one pass.`:`${s} branches to [${u.join(", ")}], but one of those leads back into the same path. A parallel branch cannot loop back, so only the first branch will run.`:g?`${s} branches to [${u.join(", ")}] inside a parallel section, and those branches re-join at [${d.nodes.join(", ")}]. Nested parallel branches cannot re-join, so [${d.nodes.join(", ")}] will run once per branch.`:`${s} branches to [${u.join(", ")}], but those branches re-join at [${d.nodes.join(", ")}]. Parallel branches cannot re-join, so only the first branch will run. Give each branch its own downstream nodes to run them in parallel.`}findJoinNodes(s,u){const d=new Set,g=new Set;for(const b of u){const w=new Set;this.collectSubgraphNodeIds(s,b,w);for(const E of w)d.has(E)&&g.add(E),d.add(E)}return[...g]}buildParallelBranches(s,u,d=new Set){return u.map(g=>{const b=this.generateInlineBranch(s,g,new Set(d));return b.length===0?{alias:`parallel_branch:${g}`,stop:"Empty branch"}:{alias:`parallel_branch:${g}`,sequence:b}})}buildTransitionTail(s,u,d,g){var w;const b=g.get(u);return b&&b.length>1?[{parallel:this.buildParallelBranches(s,b)},{variables:{current_node:"END"}}]:[{variables:{current_node:((w=d[0])==null?void 0:w.target)??"END"}}]}collectSubgraphNodeIds(s,u,d){if(u==="END"||d.has(u))return;const g=s.nodes.find(w=>w.id===u);if(!g||g.type==="trigger")return;d.add(u);const b=this.getOutgoingEdges(s,g.id);for(const w of b)this.collectSubgraphNodeIds(s,w.target,d)}encodeNodeIdInAlias(s,u){const d=s.alias;s.alias=d?`cafe_node:${u}:${d}`:`cafe_node:${u}`}continueInlineBranch(s,u,d,g){var w;const b=this.getFanOutTargets(s,u);return b.length>1?[{parallel:this.buildParallelBranches(s,b,g)}]:this.generateInlineBranch(s,b[0]??((w=d[0])==null?void 0:w.target)??"END",g)}generateInlineBranch(s,u,d){if(u==="END"||d.has(u))return[];const g=s.nodes.find(w=>w.id===u);if(!g)return[];d.add(u);const b=this.getOutgoingEdges(s,g.id);switch(g.type){case"action":{const w=this.buildActionCall(g);return this.encodeNodeIdInAlias(w,g.id),[w,...this.continueInlineBranch(s,g.id,b,d)]}case"condition":{const w=b.find(L=>L.sourceHandle==="true"),E=b.find(L=>L.sourceHandle==="false"),S=(w==null?void 0:w.target)??"END",x=(E==null?void 0:E.target)??"END",A=this.buildNativeCondition(g),C=this.generateInlineBranch(s,S,new Set(d)),R=this.generateInlineBranch(s,x,new Set(d)),D={alias:g.data.alias,if:[A],then:C};return this.encodeNodeIdInAlias(D,g.id),R.length>0&&(D.else=R),[D]}case"delay":{const w=this.buildDelayAction(g);return this.encodeNodeIdInAlias(w,g.id),[w,...this.continueInlineBranch(s,g.id,b,d)]}case"wait":{const w=this.buildWaitAction(g);return this.encodeNodeIdInAlias(w,g.id),[w,...this.continueInlineBranch(s,g.id,b,d)]}case"set_variables":{const w=this.buildSetVariablesAction(g);return this.encodeNodeIdInAlias(w,g.id),[w,...this.continueInlineBranch(s,g.id,b,d)]}default:return this.continueInlineBranch(s,g.id,b,d)}}extractTriggers(s){return s.nodes.filter(u=>u.type==="trigger").map(u=>{const d={...u.data};return Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0&&g!==""&&g!==null))})}generateNodeBlock(s,u,d,g){const b=this.getOutgoingEdges(s,u.id);switch(u.type){case"condition":return this.generateConditionBlock(u,b,g);case"action":return this.generateActionBlock(s,u,b,d);case"delay":return this.generateDelayBlock(s,u,b,d);case"wait":return this.generateWaitBlock(s,u,b,d);case"set_variables":return this.generateSetVariablesBlock(s,u,b,d);default:return this.generatePassthroughBlock(s,u,b,d)}}generateActionBlock(s,u,d,g){const b=u.id,w=this.buildActionCall(u);return{conditions:[{condition:"template",value_template:`{{ current_node == "${b}" }}`}],sequence:[w,...this.buildTransitionTail(s,u.id,d,g)]}}buildActionCall(s){if(bMe(s.data.data)){const L=s.data.data,B={device_id:L.device_id,domain:L.domain,type:L.type};s.data.alias&&(B.alias=s.data.alias),L.entity_id&&(B.entity_id=L.entity_id),L.subtype&&(B.subtype=L.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[j,P]of Object.entries(L))!$.includes(j)&&P!==void 0&&(B[j]=P);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const L=s.data.repeat,B={repeat:{...L.count!==void 0?{count:L.count}:{},...L.while?{while:L.while}:{},...L.until?{until:L.until}:{},sequence:L.sequence??[]}};return s.data.alias&&(B.alias=s.data.alias),s.data.enabled===!1&&(B.enabled=!1),B}if(typeof s.data.event=="string"&&s.data.event.trim()!==""){const L={event:s.data.event};return s.data.alias&&(L.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(L.event_data=s.data.event_data),s.data.enabled===!1&&(L.enabled=!1),L}const{alias:u,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:x,enabled:A,repeat:C,...R}=s.data,D={...R,alias:u,service:d};return g&&(D.id=g),b&&(D.target=b),w&&(D.data=w),E&&(D.data_template=E),S&&(D.response_variable=S),x&&(D.continue_on_error=x),A===!1&&(D.enabled=!1),D}generateConditionBlock(s,u,d){const g=u.find(D=>D.sourceHandle==="true"),b=u.find(D=>D.sourceHandle==="false"),w=d.get(`${s.id}:true`)??(g==null?void 0:g.target)??"END",E=d.get(`${s.id}:false`)??(b==null?void 0:b.target)??"END",S=w==="END"?"END":w,x=E==="END"?"END":E,A=s.id;if(this.needsNativeConditionCheck(s)){const D=this.buildNativeCondition(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${A}" }}`}],sequence:[{alias:s.data.alias,if:[D],then:[{variables:{current_node:S}}],else:[{variables:{current_node:x}}]}]}}const R=this.buildConditionTemplate(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${A}" }}`}],sequence:[{alias:s.data.alias,variables:{current_node:`{% if ${R} %}${S}{% else %}${x}{% endif %}`}}]}}needsNativeConditionCheck(s){const u=s.data;return u.condition==="template"&&(u.value_template||"").includes("{%")?!0:(u.condition==="and"||u.condition==="or"||u.condition==="not")&&u.conditions?u.conditions.some(d=>d.condition==="template"?(d.value_template||"").includes("{%"):!1):!1}buildNativeCondition(s){const u=s.data,d={condition:u.condition};return u.entity_id&&(d.entity_id=u.entity_id),u.state!==void 0&&(d.state=u.state),u.above!=null&&u.above!==""&&(d.above=u.above),u.below!=null&&u.below!==""&&(d.below=u.below),u.attribute&&(d.attribute=u.attribute),u.value_template&&(d.value_template=u.value_template),u.after&&(d.after=u.after),u.before&&(d.before=u.before),u.after_offset&&(d.after_offset=u.after_offset),u.before_offset&&(d.before_offset=u.before_offset),u.zone&&(d.zone=u.zone),u.weekday&&(d.weekday=u.weekday),u.id&&(d.id=u.id),u.conditions&&u.conditions.length>0&&(d.conditions=u.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))}buildDelayAction(s){const{alias:u,delay:d,id:g,...b}=s.data,w={...b,alias:u,delay:d};return g&&(w.id=g),w}generateDelayBlock(s,u,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${u.id}" }}`}],sequence:[this.buildDelayAction(u),...this.buildTransitionTail(s,u.id,d,g)]}}buildWaitAction(s){const{alias:u,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,x={...S,alias:u};return d&&(x.id=d),g?x.wait_template=g:b&&(x.wait_for_trigger=b.map(A=>{const{alias:C,...R}=A,D={...R};return Object.fromEntries(Object.entries(D).filter(([,L])=>L!==void 0&&L!==""&&L!==null))})),w&&(x.timeout=w),E!==void 0&&(x.continue_on_timeout=E),x}generateWaitBlock(s,u,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${u.id}" }}`}],sequence:[this.buildWaitAction(u),...this.buildTransitionTail(s,u.id,d,g)]}}buildSetVariablesAction(s){const{alias:u,id:d,variables:g,...b}=s.data,w={...b,variables:g};return u&&(w.alias=u),d&&(w.id=d),w}generateSetVariablesBlock(s,u,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${u.id}" }}`}],sequence:[this.buildSetVariablesAction(u),...this.buildTransitionTail(s,u.id,d,g)]}}generatePassthroughBlock(s,u,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${u.id}" }}`}],sequence:this.buildTransitionTail(s,u.id,d,g)}}buildConditionTemplate(s){const u=s.data;switch(u.condition){case"state":if(u.attribute){if(Array.isArray(u.state)){const d=u.state.map(g=>`'${g}'`).join(", ");return`state_attr('${u.entity_id}', '${u.attribute}') in [${d}]`}return`state_attr('${u.entity_id}', '${u.attribute}') == '${u.state}'`}else{if(Array.isArray(u.state)){const d=u.state.map(g=>`'${g}'`).join(", ");return`states('${u.entity_id}') in [${d}]`}return`is_state('${u.entity_id}', '${u.state}')`}case"numeric_state":return this.buildNumericCondition(u);case"template":{let d=u.value_template||"true";return d.startsWith("{{")&&d.endsWith("}}")&&(d=d.slice(2,-2).trim()),d}case"time":return this.buildTimeCondition(u);case"sun":return this.buildSunCondition(u);case"zone":return`is_state('${u.entity_id}', '${u.zone}')`;case"and":return u.conditions&&u.conditions.length>0?`(${u.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";case"or":return u.conditions&&u.conditions.length>0?`(${u.conditions.map(d=>this.buildNestedCondition(d)).join(" or ")})`:"false";case"not":return u.conditions&&u.conditions.length>0?`not (${u.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";default:return"true"}}buildNumericCondition(s){const u=[],d=s.value_template?`(${s.value_template})`:s.attribute?`state_attr('${s.entity_id}', '${s.attribute}') | float`:`states('${s.entity_id}') | float`;return s.above!=null&&s.above!==""&&u.push(`${d} > ${s.above}`),s.below!=null&&s.below!==""&&u.push(`${d} < ${s.below}`),u.length>0?u.join(" and "):"true"}buildTimeCondition(s){const u=[];if(s.after&&u.push(`now().strftime('%H:%M:%S') >= '${s.after}'`),s.before&&u.push(`now().strftime('%H:%M:%S') < '${s.before}'`),s.weekday&&s.weekday.length>0){const d=s.weekday.map(g=>`'${g}'`).join(", ");u.push(`now().strftime('%a').lower()[:3] in [${d}]`)}return u.length>0?u.join(" and "):"true"}buildSunCondition(s){return s.after==="sunrise"||s.before==="sunset"?"is_state('sun.sun', 'above_horizon')":s.after==="sunset"||s.before==="sunrise"?"is_state('sun.sun', 'below_horizon')":"true"}buildNestedCondition(s){const u={id:"nested",type:"condition",position:{x:0,y:0},data:s};return this.buildConditionTemplate(u)}detectPotentialInfiniteLoop(s,u){return u.hasCycles?s.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}}function UFt(n){return n==="true"?0:n==="false"?2:1}function pQn(n){const i=[],s=new Set,u=n.nodes.filter(w=>w.type==="trigger");for(const w of u)i.push(w.id),s.add(w.id);const d=new Map(n.nodes.map(w=>[w.id,w.type])),g=new Map;for(const w of n.edges){const E=g.get(w.source);E?E.push(w):g.set(w.source,[w])}const b=w=>{if(s.has(w))return;s.add(w),d.get(w)!==void 0&&i.push(w);const E=[...g.get(w)??[]].sort((S,x)=>UFt(S.sourceHandle)-UFt(x.sourceHandle));for(const S of E)b(S.target)};for(const w of u)for(const E of g.get(w.id)??[])b(E.target);for(const w of n.nodes)s.has(w.id)||(i.push(w.id),s.add(w.id));return i}class RM{constructor(){Zf(this,"strategies",[new hQn,new BFt])}validate(i){return uJn(i)}analyzeTopology(i){return nJn(i)}transpile(i,s={}){const u=[],d=this.validate(i);if(!d.success||!d.graph)return{success:!1,errors:d.errors.map(A=>A.message),warnings:u};const g=d.graph,b=this.analyzeTopology(g);let w;if(s.forceStrategy){const A=this.strategies.find(C=>C.name===s.forceStrategy);if(!A)return{success:!1,errors:[`Unknown strategy: ${s.forceStrategy}`],warnings:u};w=A,w.canHandle(b)||u.push(`Strategy "${w.name}" may not be optimal for this flow topology. Recommended: ${b.recommendedStrategy}`)}else{const A=this.strategies.find(C=>C.canHandle(b));A?w=A:w=new BFt}const E=w.generate(g,b);u.push(...E.warnings);const S=E.automation??E.script;let x;if(S&&typeof S=="object"){const A=this.generateCafeMetadata(g,w),C={...S,variables:{...g.userVariables||{},...S.variables||{},_cafe_metadata:A}};x=gse(C,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1})}else x=gse(S,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1});return{success:!0,yaml:x,output:E,analysis:b,warnings:u}}toYaml(i,s={}){var d;const u=this.transpile(i,s);if(!u.success)throw new Error(`Transpilation failed: ${(d=u.errors)==null?void 0:d.join(", ")}`);return u.yaml}toNativeYaml(i,s={}){return this.toYaml(i,{...s,forceStrategy:"native"})}toStateMachineYaml(i,s={}){return this.toYaml(i,{...s,forceStrategy:"state-machine"})}fromYaml(i){return new fQn().parse(i)}getStrategies(){return this.strategies.map(i=>({name:i.name,description:i.description}))}addStrategy(i){this.strategies.unshift(i)}generateCafeMetadata(i,s){const u={},d=new Map(i.nodes.map(g=>[g.id,g]));for(const g of pQn(i)){const b=d.get(g);b&&(u[b.id]={x:b.position.x,y:b.position.y})}return{version:1,nodes:u,graph_id:i.id,graph_version:i.version,strategy:s.name}}}const GLe=new RM,HFt=n=>{let i;const s=new Set,u=(S,x)=>{const A=typeof S=="function"?S(i):S;if(!Object.is(A,i)){const C=i;i=x??(typeof A!="object"||A===null)?A:Object.assign({},i,A),s.forEach(R=>R(i,C))}},d=()=>i,w={setState:u,getState:d,getInitialState:()=>E,subscribe:S=>(s.add(S),()=>s.delete(S))},E=i=n(u,d,w);return w},rKt=n=>n?HFt(n):HFt,gQn=n=>n;function iKt(n,i=gQn){const s=Hn.useSyncExternalStore(n.subscribe,Hn.useCallback(()=>i(n.getState()),[n,i]),Hn.useCallback(()=>i(n.getInitialState()),[n,i]));return Hn.useDebugValue(s),s}const bQn=n=>{const i=rKt(n),s=u=>iKt(i,u);return Object.assign(s,i),s},mQn=n=>bQn;var zFt=(n,i,s)=>(d,g)=>({pastStates:(s==null?void 0:s.pastStates)||[],futureStates:(s==null?void 0:s.futureStates)||[],undo:(b=1)=>{var w,E;if(g().pastStates.length){const S=((w=s==null?void 0:s.partialize)==null?void 0:w.call(s,i()))||i(),x=g().pastStates.splice(-b,b),A=x.shift();n(A),d({pastStates:g().pastStates,futureStates:g().futureStates.concat(((E=s==null?void 0:s.diff)==null?void 0:E.call(s,S,A))||S,x.reverse())})}},redo:(b=1)=>{var w,E;if(g().futureStates.length){const S=((w=s==null?void 0:s.partialize)==null?void 0:w.call(s,i()))||i(),x=g().futureStates.splice(-b,b),A=x.shift();n(A),d({pastStates:g().pastStates.concat(((E=s==null?void 0:s.diff)==null?void 0:E.call(s,S,A))||S,x.reverse()),futureStates:g().futureStates})}},clear:()=>d({pastStates:[],futureStates:[]}),isTracking:!0,pause:()=>d({isTracking:!1}),resume:()=>d({isTracking:!0}),setOnSave:b=>d({_onSave:b}),_onSave:s==null?void 0:s.onSave,_handleSet:(b,w,E,S)=>{var x,A;s!=null&&s.limit&&g().pastStates.length>=(s==null?void 0:s.limit)&&g().pastStates.shift(),(A=(x=g())._onSave)==null||A.call(x,b,E),d({pastStates:g().pastStates.concat(S||b),futureStates:[]})}}),wQn=(n,i)=>(u,d,g)=>{var S,x;g.temporal=rKt(((S=i==null?void 0:i.wrapTemporal)==null?void 0:S.call(i,zFt(u,d,i)))||zFt(u,d,i));const b=((x=i==null?void 0:i.handleSet)==null?void 0:x.call(i,g.temporal.getState()._handleSet))||g.temporal.getState()._handleSet,w=A=>{var D,L,B;if(!g.temporal.getState().isTracking)return;const C=((D=i==null?void 0:i.partialize)==null?void 0:D.call(i,d()))||d(),R=(L=i==null?void 0:i.diff)==null?void 0:L.call(i,A,C);R===null||(B=i==null?void 0:i.equality)!=null&&B.call(i,A,C)||b(A,void 0,C,R)},E=g.setState;return g.setState=(...A)=>{var R;const C=((R=i==null?void 0:i.partialize)==null?void 0:R.call(i,d()))||d();E(...A),w(C)},n((...A)=>{var R;const C=((R=i==null?void 0:i.partialize)==null?void 0:R.call(i,d()))||d();u(...A),w(C)},d,g)};function yQn(n,i){let s;try{s=n()}catch{return}return{getItem:d=>{var g;const b=E=>E===null?null:JSON.parse(E,void 0),w=(g=s.getItem(d))!=null?g:null;return w instanceof Promise?w.then(b):b(w)},setItem:(d,g)=>s.setItem(d,JSON.stringify(g,void 0)),removeItem:d=>s.removeItem(d)}}const qLe=n=>i=>{try{const s=n(i);return s instanceof Promise?s:{then(u){return qLe(u)(s)},catch(u){return this}}}catch(s){return{then(u){return this},catch(u){return qLe(u)(s)}}}},vQn=(n,i)=>(s,u,d)=>{let g={storage:yQn(()=>localStorage),partialize:L=>L,version:0,merge:(L,B)=>({...B,...L}),...i},b=!1;const w=new Set,E=new Set;let S=g.storage;if(!S)return n((...L)=>{console.warn(`[zustand persist middleware] Unable to update item '${g.name}', the given storage is currently unavailable.`),s(...L)},u,d);const x=()=>{const L=g.partialize({...u()});return S.setItem(g.name,{state:L,version:g.version})},A=d.setState;d.setState=(L,B)=>(A(L,B),x());const C=n((...L)=>(s(...L),x()),u,d);d.getInitialState=()=>C;let R;const D=()=>{var L,B;if(!S)return;b=!1,w.forEach(j=>{var P;return j((P=u())!=null?P:C)});const $=((B=g.onRehydrateStorage)==null?void 0:B.call(g,(L=u())!=null?L:C))||void 0;return qLe(S.getItem.bind(S))(g.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==g.version){if(g.migrate){const P=g.migrate(j.state,j.version);return P instanceof Promise?P.then(G=>[!0,G]):[!0,P]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,j.state];return[!1,void 0]}).then(j=>{var P;const[G,ee]=j;if(R=g.merge(ee,(P=u())!=null?P:C),s(R,!0),G)return x()}).then(()=>{$==null||$(R,void 0),R=u(),b=!0,E.forEach(j=>j(R))}).catch(j=>{$==null||$(void 0,j)})};return d.persist={setOptions:L=>{g={...g,...L},L.storage&&(S=L.storage)},clearStorage:()=>{S==null||S.removeItem(g.name)},getOptions:()=>g,rehydrate:()=>D(),hasHydrated:()=>b,onHydrate:L=>(w.add(L),()=>{w.delete(L)}),onFinishHydration:L=>(E.add(L),()=>{E.delete(L)})},g.skipHydration||D(),R||C},EQn=vQn,GFt=n=>Symbol.iterator in n,qFt=n=>"entries"in n,VFt=(n,i)=>{const s=n instanceof Map?n:new Map(n.entries()),u=i instanceof Map?i:new Map(i.entries());if(s.size!==u.size)return!1;for(const[d,g]of s)if(!u.has(d)||!Object.is(g,u.get(d)))return!1;return!0},SQn=(n,i)=>{const s=n[Symbol.iterator](),u=i[Symbol.iterator]();let d=s.next(),g=u.next();for(;!d.done&&!g.done;){if(!Object.is(d.value,g.value))return!1;d=s.next(),g=u.next()}return!!d.done&&!!g.done};function oKt(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:GFt(n)&&GFt(i)?qFt(n)&&qFt(i)?VFt(n,i):SQn(n,i):VFt({entries:()=>Object.entries(n)},{entries:()=>Object.entries(i)})}function sKt(n){const i=Hn.useRef(void 0);return s=>{const u=n(s);return oKt(i.current,u)?i.current:i.current=u}}class TQn{constructor(i,s){Zf(this,"hass",null);Zf(this,"baseUrl");Zf(this,"token");this.hass=i||null,s!=null&&s.url&&(s!=null&&s.token)?(this.baseUrl=s.url,this.token=s.token):typeof window<"u"&&(this.baseUrl=window.location.origin)}updateHass(i,s){this.hass=i,s!=null&&s.url&&(s!=null&&s.token)?(this.baseUrl=s.url,this.token=s.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 s=this.getStates();return(s==null?void 0:s[i])||null}getAutomations(){const i=this.getStates();return i?Object.values(i).filter(s=>s.entity_id.startsWith("automation.")):[]}normalizeTags(i){return Array.isArray(i)?i.filter(s=>typeof s=="string"):typeof i=="string"&&i.trim()?[i]:[]}async sendMessage(i){var s;if(!((s=this.hass)!=null&&s.connection))throw new Error("No Home Assistant connection available");return await this.hass.connection.sendMessagePromise(i)}async callService(i,s,u,d){var g,b;if((g=this.hass)!=null&&g.callService){const w={...u,...d&&{target:d}};return await this.hass.callService(i,s,w)}if((b=this.hass)!=null&&b.connection)return await this.sendMessage({type:"call_service",domain:i,service:s,service_data:u,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[s,u]=i.service.split(".");if(!s||!u)throw new Error(`Invalid service format: ${i.service}`);return await this.callService(s,u,i.data,i.target)}async callAPI(i,s,u){var d;if((d=this.hass)!=null&&d.callApi)return await this.hass.callApi(i,s,u);throw new Error("REST API calls not supported in standalone mode")}async fetchRestAPI(i,s="GET",u){var b;if((b=this.hass)!=null&&b.callApi)return await this.hass.callApi(s,i,u);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:s,headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:u?JSON.stringify(u):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 u=await this.sendMessage({type:"config/automation/list"});if(Array.isArray(u))return u}catch(u){console.warn("WebSocket automation list failed, trying alternative:",u)}return this.getAutomations().map(u=>({id:u.entity_id.replace("automation.",""),alias:typeof u.attributes.friendly_name=="string"?u.attributes.friendly_name:u.entity_id,description:typeof u.attributes.description=="string"?u.attributes.description:""}))}catch(s){return console.error("Failed to get automation configs:",s),[]}}async getAutomationConfig(i){var s;try{if((s=this.hass)!=null&&s.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."))try{const d=await this.fetchRestAPI(`config/automation/config/${i}`);if(d)return d}catch(d){console.warn("REST API failed for automation %s:",i,d)}return(await this.getAutomationConfigs()).find(d=>d.id===i||d.alias===i||`automation.${d.alias}`===i)||null}catch(u){return console.error("C.A.F.E.: Failed to get automation config:",u),null}}async getAutomationConfigFromTrace(i){try{const s=await this.getAutomationTraces(i);if(!s||s.length===0)return null;const u=await this.getAutomationTraceDetails(i,s[0].run_id);return(u==null?void 0:u.config)||null}catch(s){return console.error("C.A.F.E.: Failed to get automation config from trace:",s),null}}async getAutomationConfigWithFallback(i,s){try{const u=await this.getAutomationConfig(i);return u||(await this.getAutomationConfigFromTrace(i)??null)}catch(u){return console.error("C.A.F.E.: Failed to get automation config with fallback:",u),null}}async createAutomation(i){var s,u;try{const d=i.id||Date.now().toString(),{trigger:g,condition:b,action:w,...E}=i,S={...E,id:d,alias:i.alias||`C.A.F.E. Automation ${d}`,description:i.description||"",triggers:g||i.triggers||[],conditions:b||i.conditions||[],actions:w||i.actions||[],mode:i.mode||"single",variables:i.variables||{}};try{await this.fetchRestAPI(`config/automation/config/${d}`,"POST",S)}catch(x){throw console.error("C.A.F.E.: Failed to save automation config:",x),new Error(`Failed to save automation config: ${x instanceof Error?x.message:"Unknown error"}`)}if((s=this.hass)!=null&&s.callService)return await this.hass.callService("automation","reload",{}),d;if((u=this.hass)!=null&&u.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,s){try{console.log("C.A.F.E.: Updating automation with ID:",i),console.log("C.A.F.E.: Update config:",s);const{trigger:u,condition:d,action:g,...b}=s,w={...b,id:i,alias:s.alias||`C.A.F.E. Automation ${i}`,description:s.description||"",triggers:u||s.triggers||[],conditions:d||s.conditions||[],actions:g||s.actions||[],mode:s.mode||"single",variables:s.variables||{}};console.log("C.A.F.E.: Final update payload:",w),await this.fetchRestAPI(`config/automation/config/${i}`,"POST",w),console.log("C.A.F.E.: Successfully updated automation:",i)}catch(u){throw console.error("C.A.F.E.: Failed to update automation:",u),new Error(`Failed to update automation: ${u instanceof Error?u.message:"Unknown error"}`)}}async deleteAutomation(i){try{await this.fetchRestAPI(`config/automation/config/${i}`,"DELETE")}catch(s){throw console.error("C.A.F.E.: Failed to delete automation:",s),new Error(`Failed to delete automation: ${s instanceof Error?s.message:"Unknown error"}`)}}async automationExistsByAlias(i){try{return(await this.getAutomationConfigs()).some(d=>d.alias===i)}catch(s){return console.error("C.A.F.E.: Failed to check automation existence:",s),!1}}async getUniqueAutomationAlias(i){try{let s=i,u=1;for(;await this.automationExistsByAlias(s);)s=`${i} (${u})`,u++;return s}catch(s){return console.error("C.A.F.E.: Failed to get unique automation alias:",s),i}}async triggerAutomation(i,s=!0){await this.callService("automation","trigger",{entity_id:i,skip_condition:s})}async setAutomationState(i,s){const u=s?"turn_on":"turn_off";await this.callService("automation",u,{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(s=>s.entity_id.startsWith("zone.")).map(s=>{const u=s.entity_id.replace("zone.","");return{entity_id:s.entity_id,zone_id:u,name:typeof s.attributes.friendly_name=="string"?s.attributes.friendly_name:u,latitude:typeof s.attributes.latitude=="number"?s.attributes.latitude:void 0,longitude:typeof s.attributes.longitude=="number"?s.attributes.longitude:void 0,radius:typeof s.attributes.radius=="number"?s.attributes.radius:void 0,passive:typeof s.attributes.passive=="boolean"?s.attributes.passive:void 0}}):[]}catch(i){return console.error("Failed to get zones:",i),[]}}async getAutomationCatalog(){try{const[i]=await Promise.all([this.getEntities()]),s=Array.isArray(i)?i:[],u=new Map;for(const d of s)d.entity_id&&d.area_id&&u.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:u.get(d.entity_id),tags:this.normalizeTags(d.attributes.tags)}})}catch(i){return console.error("Failed to build automation catalog:",i),[]}}async getAutomationConfigsBatch(i,s=4){const u=Array.from(new Set(i.filter(Boolean))),d={};if(u.length===0)return d;const g=[...u],b=Math.max(1,Math.min(s,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 %s:",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(s){return console.error("Failed to validate config:",s),{valid:!1,error:"Validation failed"}}}async getAutomationTraces(i){try{const s=await this.sendMessage({type:"trace/list",domain:"automation",item_id:i});return Array.isArray(s)?s:[]}catch(s){return console.error("Failed to get automation traces:",s),[]}}async getAutomationTraceDetails(i,s){try{return await this.sendMessage({type:"trace/get",domain:"automation",item_id:i,run_id:s})||null}catch(u){return console.error("Failed to get automation trace details:",u),null}}}let S5=null;function Mv(n,i){return S5?n&&(!S5.hass||!S5.isConnected()||n.states&&Object.keys(n.states).length>0)&&S5.updateHass(n??null,i):S5=new TQn(n,i),S5}class UMe{constructor(i,s,u=1){Zf(this,"dbName");Zf(this,"storeName");Zf(this,"dbVersion");Zf(this,"dbPromise",null);this.dbName=i,this.storeName=s,this.dbVersion=u}async initDB(){return this.dbPromise?this.dbPromise:(this.dbPromise=new Promise((i,s)=>{const u=indexedDB.open(this.dbName,this.dbVersion);u.onerror=d=>{console.error("IndexedDB error:",d),s(new Error("Failed to open IndexedDB database"))},u.onsuccess=d=>{const g=d.target.result;i(g)},u.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(s){return console.error("IndexedDB getItem error:",s),null}}async setItem(i,s){try{const b=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).put(s,i);return new Promise((w,E)=>{b.onsuccess=()=>w(),b.onerror=()=>E(new Error("Failed to set item in IndexedDB"))})}catch(u){throw console.error("IndexedDB setItem error:",u),u}}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(s){throw console.error("IndexedDB removeItem error:",s),s}}static createJSONStorage(i,s){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 u=new UMe(i,s);return{getItem:async d=>{const g=await u.getItem(d);return g?JSON.parse(g):null},setItem:async(d,g)=>{await u.setItem(d,JSON.stringify(g))},removeItem:async d=>{await u.removeItem(d)}}}}const AQn=UMe.createJSONStorage("cafe-flow-storage","flow-store");function _Qn(n){if("platform"in n&&!("trigger"in n)){const{platform:i,...s}=n;return{...s,trigger:i}}return n}function HOe(n,i){return n==="trigger"?_Qn(i):i}function WFt(n,i){if(n.size===0)return n;const s=new Set(i.map(g=>g.id)),u=[...n.keys()].filter(g=>!s.has(g));if(u.length===0)return n;const d=new Map(n);for(const g of u)d.delete(g);return d}function xQn(n){const i=n.data,u=[i.alias,i.service,i.event,i.trigger,i.condition].find(d=>typeof d=="string"&&d.trim()!=="");return u?`${u} (${n.id})`:n.id}function KFt(n,i,s){if(i.size===0)return;const u=n.filter(S=>i.has(S.id)),d=u[0];d&&s(d.id);const g=u.map(xQn),b=g.slice(0,3).join(", "),w=g.length>3?`, and ${g.length-3} more`:"",E=g.length>0?`: ${b}${w}`:"";throw new Error(`Cannot save: ${i.size} node(s) have validation errors${E}. They are highlighted in red — the first one is now selected, and "fit view" will bring it into sight if it is off-screen.`)}function kQn(n){const i=new Map;for(const u of n){const d=u.data.id;typeof d!="string"||d.trim()===""||i.set(d,[...i.get(d)??[],u.id])}const s=new Map;for(const[,u]of i)if(!(u.length<2))for(const d of u)s.set(d,{path:["id"],message:"errors:validation.node.duplicateId"});return s}const VLe={mode:"single",initial_state:!0},YFt={flowId:K5e(),flowName:"Untitled Automation",flowDescription:"",flowMetadata:VLe,userVariables:void 0,userTriggerVariables:void 0,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},NQn=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}),CQn=n=>({nodes:n.nodes,edges:n.edges,flowName:n.flowName,flowDescription:n.flowDescription,flowMetadata:n.flowMetadata,userVariables:n.userVariables,userTriggerVariables:n.userTriggerVariables});let Uk;function zOe(){Uk&&(clearTimeout(Uk.timeoutId),Uk=void 0)}const ko=mQn()(EQn(wQn((n,i)=>({...YFt,setNodes:s=>n({nodes:s}),setEdges:s=>n({edges:s}),onNodesChange:s=>n(u=>{const d=Pzt(s,u.nodes);return{nodes:d,nodeErrors:WFt(u.nodeErrors,d),hasUnsavedChanges:!0}}),onEdgesChange:s=>n(u=>({edges:jzt(s,u.edges),hasUnsavedChanges:!0})),onConnect:s=>n(u=>({edges:gzt({...s,id:`e-${s.source}-${s.target}-${Date.now()}`,animated:!1},u.edges),hasUnsavedChanges:!0})),addNode:s=>{const u=s.type?{...s,data:HOe(s.type,s.data)}:s;n(d=>({nodes:[...d.nodes,u],hasUnsavedChanges:!0})),i().validateNode(s.id)},updateNodeData:(s,u)=>{n(d=>({nodes:d.nodes.map(g=>g.id===s?{...g,data:{...g.data,...u}}:g),hasUnsavedChanges:!0})),"id"in u?i().validateAllNodes():i().validateNode(s)},removeNode:s=>n(u=>{const d=u.nodes.filter(g=>g.id!==s);return{nodes:d,edges:u.edges.filter(g=>g.source!==s&&g.target!==s),selectedNodeId:u.selectedNodeId===s?null:u.selectedNodeId,nodeErrors:WFt(u.nodeErrors,d),hasUnsavedChanges:!0}}),addWaitTimeoutBranch:s=>{const d=i().nodes.find(S=>S.id===s);if(!d||d.type!=="wait")return;const g=d.data;if(!g.timeout)return;const b=ez("condition"),w=g.wait_for_trigger!==void 0?"{{ wait.trigger is not none }}":"{{ wait.completed }}",E={id:b,type:"condition",position:{x:d.position.x+260,y:d.position.y},data:{alias:"Wait completed?",condition:"template",value_template:w}};n(S=>({nodes:[...S.nodes.map(x=>x.id===s?{...x,data:{...x.data,continue_on_timeout:!0}}:x),E],edges:[...S.edges.map(x=>x.source===s?{...x,source:b,sourceHandle:"true"}:x),{id:`e-${s}-${b}-${Date.now()}`,source:s,target:b,animated:!1}],hasUnsavedChanges:!0})),i().validateNode(b)},selectNode:s=>n({selectedNodeId:s}),setClipboard:s=>n({clipboard:s}),setPasteCount:s=>n({pasteCount:s}),setFlowName:s=>n({flowName:s,hasUnsavedChanges:!0}),setFlowDescription:s=>n({flowDescription:s,hasUnsavedChanges:!0}),setFlowMetadata:s=>n(u=>({flowMetadata:{...u.flowMetadata,...s},hasUnsavedChanges:!0})),setAutomationId:s=>n({automationId:s}),setSaving:s=>n({isSaving:s}),setSaved:()=>n({lastSaved:new Date,hasUnsavedChanges:!1}),setUnsavedChanges:s=>n({hasUnsavedChanges:s}),hasRealChanges:()=>{const s=i();return s.originalSnapshot?JSON.stringify({flowName:s.flowName,flowDescription:s.flowDescription,flowMetadata:s.flowMetadata,nodes:s.nodes.map(d=>({id:d.id,type:d.type,position:d.position,data:d.data})),edges:s.edges.map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle}))})!==s.originalSnapshot:s.nodes.length>0},saveAutomation:async s=>{var g;const u=i(),d=Mv(s);n({isSaving:!0});try{i().validateAllNodes();const b=i();KFt(b.nodes,b.nodeErrors,L=>n({selectedNodeId:L}));const w=u.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(L=>L.type==="trigger"),S=w.nodes.filter(L=>L.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 x=new RM,A=x.validate(w);if(A.errors.length>0)throw console.error("C.A.F.E.: Validation errors:",A.errors),new Error(`Validation failed: ${A.errors.map(L=>L.message).join(", ")}`);const C=x.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:u.flowName,description:u.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((L,B)=>(L[B.id]={x:B.position.x,y:B.position.y},L),{}),graph_id:w.id,graph_version:1}}},D=await d.createAutomation(R);return n({automationId:D,isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1}),D}catch(b){throw n({isSaving:!1}),b}},updateAutomation:async s=>{var g;const u=i(),d=Mv(s);if(!u.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:",u.automationId),n({isSaving:!0});try{i().validateAllNodes();const b=i();KFt(b.nodes,b.nodeErrors,D=>n({selectedNodeId:D}));const w=u.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 x=new RM,A=x.validate(w);if(A.errors.length>0)throw new Error(`Validation failed: ${A.errors.map(D=>D.message).join(", ")}`);const C=x.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:u.flowName,description:u.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((D,L)=>(D[L.id]={x:L.position.x,y:L.position.y},D),{}),graph_id:w.id,graph_version:1}}};await d.updateAutomation(u.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:s=>n({activeNodeId:s}),addToExecutionPath:s=>n(u=>({executionPath:[...u.executionPath,s]})),clearExecutionPath:()=>n({executionPath:[]}),showTrace:s=>{const u=[],d={};if(s!=null&&s.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,x)=>S.position.y-x.position.y);const w=Object.entries(s.trace).flatMap(([E,S])=>Array.isArray(S)?S.map(x=>({...x,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("/"),x=S[0],A=parseInt(S[1],10),C=b[x]||[];if(C[A]){const R=C[A].id;u.includes(R)||(u.push(R),d[R]=E.timestamp)}}}n({isShowingTrace:!0,traceData:s,traceExecutionPath:u,traceTimestamps:d,activeNodeId:null})},hideTrace:()=>n({isShowingTrace:!1,traceData:null,traceExecutionPath:[],traceTimestamps:{},activeNodeId:null}),clearTraceExecutionPath:()=>n({traceExecutionPath:[],traceTimestamps:{}}),setSimulationSpeed:s=>n({simulationSpeed:s}),getExecutionStepNumber:s=>{const u=i();if(u.isSimulating&&u.executionPath.length>0){const d=u.executionPath.indexOf(s);return d>=0?d+1:null}if(u.isShowingTrace&&u.traceExecutionPath.length>0){const d=u.traceExecutionPath.indexOf(s);return d>=0?d+1:null}return null},canDeleteEdge:()=>!0,toFlowGraph:()=>{const s=i(),u=new Set(s.nodes.map(d=>d.id));return{id:s.flowId,name:s.flowName,description:s.flowDescription||void 0,nodes:s.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:s.edges.filter(d=>u.has(d.source)&&u.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:s.flowMetadata,version:1,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables}},fromFlowGraph:s=>{const u=s.nodes.map(w=>({id:w.id,type:w.type,position:w.position,data:HOe(w.type,w.data)})),d=s.edges.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,label:w.label})),g={...VLe,...s.metadata},b=JSON.stringify({flowName:s.name,flowDescription:s.description||"",flowMetadata:g,nodes:u.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:s.id,flowName:s.name,flowDescription:s.description||"",flowMetadata:g,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables,nodes:u,edges:d,selectedNodeId:null,automationId:null,hasUnsavedChanges:!1,lastSaved:null,originalSnapshot:b,nodeErrors:new Map}),i().validateAllNodes(),zOe(),ko.temporal.getState().clear()},reset:()=>{n({...YFt,flowId:K5e(),flowMetadata:{...VLe},originalSnapshot:null,nodeErrors:new Map}),zOe(),ko.temporal.getState().clear()},validateNode:s=>{const d=i().nodes.find(b=>b.id===s);if(!d||!d.type)return;const g=P8t(d.type,d.data);n(b=>{const w=new Map(b.nodeErrors);return g.length>0?w.set(s,g):w.delete(s),{nodeErrors:w}})},validateAllNodes:()=>{const s=i(),u=new Map;for(const g of s.nodes){if(!g.type)continue;const b=P8t(g.type,g.data);b.length>0&&u.set(g.id,b)}const d=kQn(s.nodes);for(const[g,b]of d)u.set(g,[...u.get(g)??[],b]);n({nodeErrors:u})},clearNodeErrors:s=>{n(u=>{const d=new Map(u.nodeErrors);return d.delete(s),{nodeErrors:d}})},hasValidationErrors:()=>i().nodeErrors.size>0}),{partialize:CQn,limit:100,equality:oKt,handleSet:n=>i=>{const s=i,u=(Uk==null?void 0:Uk.burstStart)??s;zOe(),Uk={timeoutId:setTimeout(()=>{Uk=void 0,n(u)},300),burstStart:u}}}),{name:"cafe-flow-storage",storage:AQn,partialize:NQn,version:1,onRehydrateStorage:()=>n=>{if(n){const i=n.nodes.map(u=>({...u,data:u.type?HOe(u.type,u.data):u.data}));i.some((u,d)=>JSON.stringify(u.data)!==JSON.stringify(n.nodes[d].data))&&(n.nodes=i),n.validateAllNodes()}}})),WLe=[{type:"trigger",labelKey:"nodes:types.trigger",icon:SGt,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:B5e,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:rae,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:F5e,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:bGt,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:EGt,color:"bg-cyan-100 border-cyan-400 text-cyan-700 hover:bg-cyan-200",defaultData:{variables:{}}}];function IQn(){const{t:n}=ps(["common","nodes"]),i=ko(g=>g.addNode),s=ko(g=>g.nodes),u=H.useCallback(g=>{const b=s.length*250+250;i({id:ez(g.type),type:g.type,position:{x:b,y:150},data:{...g.defaultData}})},[i,s.length]),d=H.useCallback((g,b)=>{g.dataTransfer.setData("application/reactflow",JSON.stringify({type:b.type,defaultData:b.defaultData})),g.dataTransfer.effectAllowed="move"},[]);return I.jsxs("div",{className:"space-y-2 p-4",children:[I.jsx("h3",{className:"mb-3 font-semibold text-muted-foreground text-sm",children:n("labels.addNode")}),I.jsx("div",{className:"space-y-2",children:WLe.map(g=>I.jsxs(ki,{variant:"outline",onClick:()=>u(g),onDragStart:b=>d(b,g),draggable:!0,className:Sr("h-auto w-full justify-start gap-3 py-3","cursor-grab transition-colors active:cursor-grabbing",g.color),children:[I.jsx(g.icon,{className:"h-4 w-4"}),I.jsx("span",{className:"font-medium text-sm",children:n(g.labelKey)})]},g.type))})]})}function RQn(n){return n==="forward"?WLe.filter(i=>i.type!=="trigger"):[...WLe]}function OQn(n,i,s,u){return n==="forward"?{source:i,sourceHandle:s,target:u,targetHandle:null}:{source:u,sourceHandle:null,target:i,targetHandle:s}}function LQn({position:n,direction:i,onSelect:s,onClose:u}){const{t:d}=ps(["common","nodes"]),g=H.useMemo(()=>n?RQn(i).map(S=>({config:S,label:d(S.labelKey)})):[],[n,i,d]),{query:b,setQuery:w,filteredItems:E}=sVt(g,{keys:["label"],threshold:.4,ignoreLocation:!0});return I.jsx(aMe,{open:n!==null,onOpenChange:S=>{S||u()},children:n&&I.jsxs(I.Fragment,{children:[I.jsx($Bn,{asChild:!0,children:I.jsx("div",{style:{position:"fixed",left:n.screenX,top:n.screenY,width:0,height:0}})}),I.jsx(Tae,{className:"w-64 p-0",children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{autoFocus:!0,placeholder:d("nodes:quickAdd.searchPlaceholder"),value:b,onValueChange:w}),I.jsxs(pae,{children:[I.jsx(gae,{children:d("combobox.noOptions")}),I.jsx(tz,{children:E.map(S=>I.jsxs(nz,{value:S.label,onSelect:()=>s(S.config),children:[I.jsx(S.config.icon,{className:"mr-2 h-4 w-4"}),S.label]},S.config.type))})]})]})})]})})}const DQn=typeof window<"u"&&(localStorage.getItem("cafe_debug")==="true"||window.location.search.includes("debug=true")),T5={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 MQn{constructor(i=DQn){Zf(this,"enabled");Zf(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,...s){this.enabled&&console.log(`%c${this.prefix} ${i}`,T5.info,...s)}warn(i,...s){this.enabled&&console.warn(`%c${this.prefix} ${i}`,T5.warn,...s)}error(i,...s){this.enabled&&console.error(`%c${this.prefix} ${i}`,T5.error,...s)}success(i,...s){this.enabled&&console.log(`%c${this.prefix} ${i}`,T5.success,...s)}debug(i,...s){this.enabled&&console.log(`%c${this.prefix} DEBUG: ${i}`,T5.debug,...s)}object(i,s){this.enabled&&(console.group(`%c${this.prefix} ${i}`,T5.info),console.log(s),console.groupEnd())}time(i){this.enabled&&console.time(`${this.prefix} ${i}`)}timeEnd(i){this.enabled&&console.timeEnd(`${this.prefix} ${i}`)}}const Ef=new MQn;typeof window<"u"&&(window.cafeLogger=Ef);const PQn=1,bse=2,GOe=3,jQn=4,FQn=5;function $Qn(n){return{type:"auth",access_token:n}}function BQn(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function UQn(){return{type:"get_states"}}function HQn(){return{type:"get_services"}}function zQn(n){const i={type:"subscribe_events"};return n&&(i.event_type=n),i}function JFt(n){return{type:"unsubscribe_events",subscription:n}}function GQn(){return{type:"ping"}}function qQn(n,i){return{type:"result",success:!1,error:{code:n,message:i}}}const VQn=(n,i,s=!1)=>{let u;return function(...d){const g=this,b=()=>{u=void 0,s||n.apply(g,d)},w=s&&!u;clearTimeout(u),u=setTimeout(b,i),w&&n.apply(g,d)}},aKt=(n,i,s,u)=>{const[d,g,b]=n.split(".",3);return Number(d)>i||Number(d)===i&&(u===void 0?Number(g)>=s:Number(g)>s)||u!==void 0&&Number(d)===i&&Number(g)===s&&Number(b)>=u},WQn="auth_invalid",KQn="auth_ok";function YQn(n){if(!n.auth)throw jQn;const i=n.auth;let s=i.expired?i.refreshAccessToken().then(()=>{s=void 0},()=>{s=void 0}):void 0;const u=i.wsUrl;function d(g,b,w){const E=new WebSocket(u);let S=!1;const x=()=>{if(E.removeEventListener("close",x),S){w(bse);return}if(g===0){w(PQn);return}const R=g===-1?-1:g-1;setTimeout(()=>d(R,b,w),1e3)},A=async R=>{try{i.expired&&await(s||i.refreshAccessToken()),E.send(JSON.stringify($Qn(i.accessToken)))}catch(D){S=D===bse,E.close()}},C=async R=>{const D=JSON.parse(R.data);switch(D.type){case WQn:S=!0,E.close();break;case KQn:E.removeEventListener("open",A),E.removeEventListener("message",C),E.removeEventListener("close",x),E.removeEventListener("error",x),E.haVersion=D.ha_version,aKt(E.haVersion,2022,9)&&E.send(JSON.stringify(BQn())),b(E);break}};E.addEventListener("open",A),E.addEventListener("message",C),E.addEventListener("close",x),E.addEventListener("error",x)}return new Promise((g,b)=>d(n.setupRetry,g,b))}class JQn{constructor(i,s){this._handleMessage=u=>{let d=JSON.parse(u.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(JFt(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 u=this.commands;if(this.commandId=1,this.oldSubscriptions=this.commands,this.commands=new Map,this.socket=void 0,u.forEach(b=>{"subscribe"in b||b.reject(qQn(GOe,"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(GOe)}w===bse?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=s,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 s=this.oldSubscriptions;s&&(this.oldSubscriptions=void 0,s.forEach(d=>{"subscribe"in d&&d.subscribe&&d.subscribe().then(g=>{d.unsubscribe=g,d.resolve()})}));const u=this._queuedMessages;if(u){this._queuedMessages=void 0;for(const d of u)d.resolve()}this.fireEvent("ready")}addEventListener(i,s){let u=this.eventListeners.get(i);u||(u=[],this.eventListeners.set(i,u)),u.push(s)}removeEventListener(i,s){const u=this.eventListeners.get(i);if(!u)return;const d=u.indexOf(s);d!==-1&&u.splice(d,1)}fireEvent(i,s){(this.eventListeners.get(i)||[]).forEach(u=>u(this,s))}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,s){return this.subscribeMessage(i,zQn(s))}ping(){return this.sendMessagePromise(GQn())}sendMessage(i,s){if(!this.connected)throw GOe;if(this._queuedMessages){if(s)throw new Error("Cannot queue with commandId");this._queuedMessages.push({resolve:()=>this.sendMessage(i)});return}s||(s=this._genCmdId()),i.id=s,this.socket.send(JSON.stringify(i))}sendMessagePromise(i){return new Promise((s,u)=>{if(this._queuedMessages){this._queuedMessages.push({reject:u,resolve:async()=>{try{s(await this.sendMessagePromise(i))}catch(g){u(g)}}});return}const d=this._genCmdId();this.commands.set(d,{resolve:s,reject:u}),this.sendMessage(i,d)})}async subscribeMessage(i,s,u){if(this._queuedMessages&&await new Promise((g,b)=>{this._queuedMessages.push({resolve:g,reject:b})}),u!=null&&u.preCheck&&!await u.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:(u==null?void 0:u.resubscribe)!==!1?()=>this.subscribeMessage(i,s,u):void 0,unsubscribe:async()=>{this.connected&&await this.sendMessagePromise(JFt(w)),this.commands.delete(w)}},this.commands.set(w,d);try{this.sendMessage(s,w)}catch{}}),()=>d.unsubscribe()}_genCmdId(){return++this.commandId}}const XQn=n=>n*1e3+Date.now();async function ZQn(n,i,s){const u=typeof location<"u"&&location;if(u&&u.protocol==="https:"){const w=document.createElement("a");if(w.href=n,w.protocol==="http:"&&w.hostname!=="localhost")throw FQn}const d=new FormData;i!==null&&d.append("client_id",i),Object.keys(s).forEach(w=>{d.append(w,s[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?bse:new Error("Unable to fetch tokens");const b=await g.json();return b.hassUrl=n,b.clientId=i,b.expires=XQn(b.expires_in),b}class QQn{constructor(i,s){this.data=i,this._saveTokens=s}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 ZQn(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 eer(n,i){return new QQn({hassUrl:n,clientId:null,expires:Date.now()+1e11,refresh_token:"",access_token:i,expires_in:1e11})}const ter=n=>{let i=[];function s(d){let g=[];for(let b=0;b{s(d)}}}},ner=5e3,KLe=(n,i,s,u,d={unsubGrace:!0})=>{if(n[i])return n[i];let g=0,b,w,E=ter();const S=()=>{if(!s)throw new Error("Collection does not support refresh");return s(n).then(L=>E.setState(L,!0))},x=()=>S().catch(L=>{if(n.connected)throw L}),A=()=>{if(w!==void 0){clearTimeout(w),w=void 0;return}u&&(b=u(n,E)),s&&(n.addEventListener("ready",x),x()),n.addEventListener("disconnected",D)},C=()=>{w=void 0,b&&b.then(L=>{L()}),E.clearState(),n.removeEventListener("ready",S),n.removeEventListener("disconnected",D)},R=()=>{w=setTimeout(C,ner)},D=()=>{w&&(clearTimeout(w),C())};return n[i]={get state(){return E.state},refresh:S,subscribe(L){g++,g===1&&A();const B=E.subscribe(L);return E.state!==void 0&&setTimeout(()=>L(E.state),0),()=>{B(),g--,g||(d.unsubGrace?R():C())}}},n[i]},rer=n=>n.sendMessagePromise(UQn()),ier=n=>n.sendMessagePromise(HQn());function oer(n,i,s){var u;const d=i.state;if(d===void 0)return;const{domain:g,service:b}=s.data;if(!(!((u=d.domain)===null||u===void 0)&&u.service)){const w=Object.assign(Object.assign({},d[g]),{[b]:{description:"",fields:{}}});i.setState({[g]:w})}aer(n,i)}function ser(n,i){if(n===void 0)return null;const{domain:s,service:u}=i.data,d=n[s];if(!d||!(u in d))return null;const g={};return Object.keys(d).forEach(b=>{b!==u&&(g[b]=d[b])}),{[s]:g}}const aer=VQn((n,i)=>uKt(n).then(s=>i.setState(s,!0)),5e3),uKt=n=>ier(n),uer=(n,i)=>Promise.all([n.subscribeEvents(s=>oer(n,i,s),"service_registered"),n.subscribeEvents(i.action(ser),"service_removed")]).then(s=>()=>s.forEach(u=>u())),cer=n=>KLe(n,"_srv",uKt,uer),ler=(n,i)=>cer(n).subscribe(i);function der(n,i){const s=Object.assign({},n.state);if(i.a)for(const u in i.a){const d=i.a[u];let g=new Date(d.lc*1e3).toISOString();s[u]={entity_id:u,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 u of i.r)delete s[u];if(i.c)for(const u in i.c){let d=s[u];if(!d){console.warn("Received state update for unknown entity",u);continue}d=Object.assign({},d);const{"+":g,"-":b}=i.c[u],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),s[u]=d}n.setState(s,!0)}const fer=(n,i)=>n.subscribeMessage(s=>der(i,s),{type:"subscribe_entities"});function her(n,i){const s=n.state;if(s===void 0)return;const{entity_id:u,new_state:d}=i.data;if(d)n.setState({[d.entity_id]:d});else{const g=Object.assign({},s);delete g[u],n.setState(g,!0)}}async function per(n){const i=await rer(n),s={};for(let u=0;un.subscribeEvents(s=>her(i,s),"state_changed"),ber=n=>aKt(n.haVersion,2022,4,0)?KLe(n,"_ent",void 0,fer):KLe(n,"_ent",per,ger),mer=(n,i)=>ber(n).subscribe(i);async function wer(n){const i=Object.assign({setupRetry:0,createSocket:YQn},n),s=await i.createSocket(i);return new JQn(s,i)}const cKt="cafe_hass_config";function yer(){try{const n=localStorage.getItem(cKt);if(n)return JSON.parse(n)}catch{}return{url:"",token:""}}function ver(n){try{localStorage.setItem(cKt,JSON.stringify(n))}catch{}}const lKt=H.createContext(void 0),XFt=({children:n,forceMode:i,externalHass:s})=>{const[u,d]=H.useState(i?yer():{url:"",token:""}),[g,b]=H.useState([]),[w,E]=H.useState({}),[S,x]=H.useState(new Map),[A,C]=H.useState(new Map),[R,D]=H.useState(new Map),[L,B]=H.useState(!1),[$,j]=H.useState(null),[P,G]=H.useState(null),ee=!!(u.url&&u.token),ne=i==="remote",Q=H.useCallback(We=>{d(We),ver(We),b([]),E({}),x(new Map),C(new Map),D(new Map),j(null)},[]);H.useEffect(()=>{if(!ne)return;const dt=(async()=>{B(!0),j(null);try{const Ue=eer(u.url,u.token),bt=await wer({auth:Ue});G(bt),bt.addEventListener("ready",()=>{j(null),B(!1)}),bt.addEventListener("disconnected",()=>{j("Connection lost")}),bt.addEventListener("reconnect-error",vt=>{console.error("C.A.F.E.: WebSocket reconnection failed:",vt),j("Reconnection failed")});const kt=mer(bt,vt=>{const Ct=Object.values(vt).map(Ft=>({entity_id:Ft.entity_id,state:Ft.state,attributes:Ft.attributes||{},last_changed:Ft.last_changed||"",last_updated:Ft.last_updated||"",context:Ft.context}));b(Ct),B(!1)}),ht=ler(bt,vt=>{E(vt)});return(async()=>{try{const vt=await bt.sendMessagePromise({type:"config/area_registry/list"}),Ct=new Map;for(const vr of vt)Ct.set(vr.area_id,vr);x(Ct);const Ft=await bt.sendMessagePromise({type:"config/device_registry/list"}),On=new Map;for(const vr of Ft)On.set(vr.id,vr);C(On);const Zn=await bt.sendMessagePromise({type:"config/entity_registry/list"}),Yn=new Map;for(const vr of Zn)Yn.set(vr.entity_id,vr);D(Yn)}catch(vt){console.error("C.A.F.E.: Failed to fetch registries:",vt)}})(),()=>{kt(),ht(),bt.close(),G(null)}}catch(Ue){console.error("C.A.F.E.: Failed to establish WebSocket connection:",Ue);const bt=Ue instanceof Error?Ue.message:"Connection failed";j(bt),B(!1)}})();return()=>{dt instanceof Promise&&dt.then(Ue=>Ue==null?void 0:Ue())}},[ne,u.url,u.token]),H.useEffect(()=>{if(!(s!=null&&s.connection))return;(async()=>{try{const dt=await s.connection.sendMessagePromise({type:"config/area_registry/list"}),Ue=new Map;for(const vt of dt)Ue.set(vt.area_id,vt);x(Ue);const bt=await s.connection.sendMessagePromise({type:"config/device_registry/list"}),kt=new Map;for(const vt of bt)kt.set(vt.id,vt);C(kt);const ht=await s.connection.sendMessagePromise({type:"config/entity_registry/list"}),Xt=new Map;for(const vt of ht)Xt.set(vt.entity_id,vt);D(Xt)}catch(dt){console.error("C.A.F.E.: Failed to fetch registries from externalHass:",dt)}})()},[s==null?void 0:s.connection]);const ie=H.useRef({}),he=H.useRef({}),ge=H.useRef({});ie.current=H.useMemo(()=>Object.fromEntries(g.map(We=>[We.entity_id,We])),[g]),he.current=w,ge.current=H.useMemo(()=>Object.fromEntries(A),[A]);const ce=H.useMemo(()=>{if(s)return s;if(P&&ne)return{auth:null,get connected(){return P.connected},config:{},themes:{darkMode:!1},panels:{},selectedTheme:null,panelUrl:"",language:"en",locale:{},selectedLanguage:null,resources:{},get devices(){return ge.current},localize:()=>"",translationMetadata:{fragments:[],translations:{}},dockedSidebar:!1,moreInfoEntityId:"",user:null,fetchWithAuth:async()=>new Response,sendWS:async(...We)=>{P.sendMessage(...We)},callWS:We=>P.sendMessagePromise(We),get states(){return ie.current},get services(){return he.current},connection:P,callApi:async(We,dt,Ue)=>{if(!u.url||!u.token)throw new Error("No authentication configured");const bt=`${u.url}/api/${dt}`,kt=await fetch(bt,{method:We,headers:{Authorization:`Bearer ${u.token}`,"Content-Type":"application/json"},body:Ue?JSON.stringify(Ue):void 0});if(!kt.ok){const ht=await kt.json();throw new Error(`API error: ${ht.message}`)}return await kt.json()},callService:async(We,dt,Ue)=>{if(!P)throw new Error("WebSocket connection not available");return P.sendMessagePromise({type:"call_service",domain:We,service:dt,service_data:Ue||{}})}}},[s,ne,P,u.url,u.token]),fe=H.useMemo(()=>ne?g:Object.values((ce==null?void 0:ce.states)??{}),[ne,g,ce==null?void 0:ce.states]),K=H.useMemo(()=>ne?w:(ce==null?void 0:ce.services)??{},[ne,w,ce==null?void 0:ce.services]),pe=H.useCallback(We=>fe.filter(dt=>dt.entity_id.startsWith(`${We}.`)),[fe]),Oe=H.useCallback(()=>{const We=[];for(const[dt,Ue]of Object.entries(K))for(const[bt,kt]of Object.entries(Ue))We.push({domain:dt,service:bt,definition:kt});return We},[K]),Se=H.useCallback(We=>{var bt;if(!We||!We.includes("."))return null;const[dt,Ue]=We.split(".");return((bt=K[dt])==null?void 0:bt[Ue])||null},[K]),De=H.useCallback(We=>{const dt=R.get(We);if(!(dt!=null&&dt.device_id))return null;const Ue=A.get(dt.device_id);return Ue&&(Ue.name_by_user||Ue.name)||null},[R,A]),Ae=H.useCallback(We=>{var bt,kt;const dt=R.get(We),Ue=(dt==null?void 0:dt.area_id)??(dt!=null&&dt.device_id?(bt=A.get(dt.device_id))==null?void 0:bt.area_id:null);return Ue?((kt=S.get(Ue))==null?void 0:kt.name)??null:null},[R,A,S]),xe={hass:ce,isRemote:ne,isLoading:ne&&ee?L:!1,connectionError:ne?$:null,entities:fe,services:K,config:u,setConfig:Q,getEntitiesByDomain:pe,getAllServices:Oe,getServiceDefinition:Se,getDeviceNameForEntity:De,getAreaNameForEntity:Ae};return I.jsx(lKt.Provider,{value:xe,children:n})};function pb(){const n=H.useContext(lKt);if(n===void 0)throw new Error("useHass must be used within a HassProvider");return n}function zae(){var u;const{hass:n}=pb(),[i,s]=H.useState(((u=n==null?void 0:n.themes)==null?void 0:u.darkMode)??!1);return H.useEffect(()=>{var d,g;if(Ef.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;Ef.debug("[C.A.F.E.] Dark mode from hass.themes.darkMode:",b),s(b)}else n&&Object.keys(n.states||{}).length>0?(Ef.debug("[C.A.F.E.] Hass available but no themes.darkMode property, defaulting to light mode"),s(!1)):Ef.debug("[C.A.F.E.] Hass not available yet or no entities loaded")},[n]),i}function Eer({id:n,sourceX:i,sourceY:s,targetX:u,targetY:d,sourcePosition:g,targetPosition:b,style:w,markerEnd:E,selected:S}){const{t:x}=ps(["common"]),{setEdges:A}=kR(),C=ko(K=>K.setUnsavedChanges),R=ko(K=>K.canDeleteEdge),D=zae(),L=u{K.stopPropagation(),ie&&(A(pe=>pe.filter(Oe=>Oe.id!==n)),C(!0))},ce=S?{...w,stroke:"#3b82f6",strokeWidth:3}:w??{},fe=ce&&typeof ce=="object"&&"stroke"in ce&&typeof ce.stroke=="string"?ce.stroke:D?"#94a3b8":"#64748b";return I.jsxs(I.Fragment,{children:[I.jsx(kz,{id:n,path:j,style:ce,markerEnd:E}),L&&ee!==0&&I.jsx(S9t,{children:I.jsx("div",{className:"nodrag nopan pointer-events-none absolute",style:{transform:`translate(-50%, -50%) translate(${ee+(Q-ee)/2}px, ${ne}px)`},children:I.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("title",{children:x("shortcuts.arrowLeft")}),I.jsx("polygon",{points:"15,5 6,10 15,15",fill:fe})]})})}),S&&ie&&I.jsx(S9t,{children:I.jsx("div",{className:"nodrag nopan pointer-events-auto absolute",style:{transform:`translate(-50%, -50%) translate(${P}px, ${G}px)`},children:I.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:I.jsx(oae,{className:"h-3.5 w-3.5"})})})})]})}function gb(n){const i=ko(u=>u.nodeErrors.get(n));return H.useMemo(()=>{const u=i??[],d=b=>{const w=u.find(E=>E.path.includes(b));return w==null?void 0:w.message},g=()=>{const b=u.find(w=>w.path.includes("_root")||w.path.length===0);return b==null?void 0:b.message};return{hasErrors:u.length>0,errors:u,errorMessages:u.map(b=>b.message),getFieldError:d,getRootError:g}},[i])}const Ser=H.memo(function({id:i,data:s,selected:u}){var G;const{t:d}=ps(["nodes"]),g=ko(ee=>ee.activeNodeId),b=ko(ee=>ee.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=typeof s.stop=="string",R=C?s.stop:void 0,D=C&&s.error===!0;let L,B;!C&&typeof s.service=="string"&&s.service.includes(".")&&([L,B]=s.service.split("."));const $=!C&&typeof s.event=="string"&&s.event.trim()!=="",j=(G=s.target)==null?void 0:G.entity_id,P=C||!s.target?null:Array.isArray(j)?`${j.length} entities selected`:j;return C?I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-orange-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(iPn,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||d("nodes:types.stop")}),x&&I.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:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[I.jsx("div",{className:"font-medium opacity-70",children:d(D?"nodes:actions.stopError":"nodes:actions.stopExecution")}),R&&I.jsx("div",{className:"truncate opacity-75 italic",children:R})]})]}):I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-green-200 p-1",children:I.jsx(rae,{className:"h-4 w-4 text-green-700"})}),I.jsx("span",{className:"font-semibold text-green-900 text-sm",children:s.alias||($?s.event:B)||"Action"}),x&&I.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:x})]}),I.jsxs("div",{className:"space-y-0.5 text-green-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:$?I.jsx("span",{className:"opacity-60",children:d("nodes:actions.fireEvent")}):I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"opacity-60",children:[L,"."]}),B]})}),P&&I.jsx("div",{className:"truncate opacity-75",children:P})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),Ter=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State",numeric_state:"Numeric",template:"Template",time:"Time",zone:"Zone",sun:"Sun",and:"AND",or:"OR",not:"NOT",device:"Device",trigger:"Trigger"};return I.jsxs("div",{className:Sr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-blue-500 !border-blue-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-blue-200 p-1",children:I.jsx(B5e,{className:"h-4 w-4 text-blue-700"})}),I.jsx("span",{className:"font-semibold text-blue-900 text-sm",children:s.alias||A[s.condition]||"Condition"}),S&&I.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})]}),I.jsxs("div",{className:"space-y-0.5 text-blue-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:A[s.condition]||s.condition}),s.entity_id&&I.jsx("div",{className:"truncate opacity-75",children:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id}),s.state&&I.jsxs("div",{className:"opacity-75",children:["= ",s.state]}),s.above!=null&&I.jsxs("div",{className:"opacity-75",children:["> ",s.above]}),s.below!=null&&I.jsxs("div",{className:"opacity-75",children:["< ",s.below]}),s.after&&I.jsxs("div",{className:"opacity-75",children:["after: ",s.after]}),s.before&&I.jsxs("div",{className:"opacity-75",children:["before: ",s.before]}),s.zone&&I.jsxs("div",{className:"opacity-75",children:["zone: ",s.zone]}),s.attribute&&I.jsxs("div",{className:"opacity-75",children:["attr: ",s.attribute]}),s.for&&I.jsxs("div",{className:"opacity-75",children:["for: ",typeof s.for=="string"?s.for:`${s.for.hours||0}h ${s.for.minutes||0}m ${s.for.seconds||0}s`]}),s.template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.template.slice(0,30),"..."]}),s.value_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.value_template.slice(0,30),"..."]}),typeof s.id=="string"&&I.jsxs("div",{className:"opacity-75",children:["id: ",s.id]}),Array.isArray(s.conditions)&&s.conditions.length>0&&I.jsx("div",{className:"opacity-75",children:Xie("nodes:conditions.nestedConditions",{count:s.conditions.length})})]}),I.jsx($h,{type:"source",position:qr.Right,id:"true",style:{top:"30%"},className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsx($h,{type:"source",position:qr.Right,id:"false",style:{top:"70%"},className:"!w-3 !h-3 !bg-red-500 !border-red-700"}),I.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:Xie("nodes:conditions.yes")}),I.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:Xie("nodes:conditions.no")})]})});function dKt(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 Aer=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=dKt(s.delay);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-purple-200 p-1",children:I.jsx(F5e,{className:"h-4 w-4 text-purple-700"})}),I.jsx("span",{className:"font-semibold text-purple-900 text-sm",children:s.alias||"Delay"}),S&&I.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})]}),I.jsx("div",{className:"text-purple-700 text-xs",children:I.jsx("div",{className:"font-mono",children:A})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"})]})}),_er=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=Object.keys(s.variables||{}).length;return I.jsxs("div",{className:Sr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-cyan-200 p-1",children:I.jsx(EGt,{className:"h-4 w-4 text-cyan-700"})}),I.jsx("span",{className:"font-semibold text-cyan-900 text-sm",children:s.alias||"Set Variables"}),S&&I.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})]}),I.jsx("div",{className:"text-cyan-700 text-xs",children:I.jsx("div",{className:"font-medium opacity-75",children:Xie("nodes:variables.variableCount",{count:A})})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),xer=H.memo(function({id:i,data:s,selected:u}){const d=ko(D=>D.activeNodeId),g=ko(D=>D.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={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 D=s.trigger;switch(D){case"device":return{title:s.alias||"Device Trigger",subtitle:s.type?`${s.domain||"device"}: ${s.type}`:"Device",detail:s.device_id?`Device: ${String(s.device_id).substring(0,8)}...`:null};case"state":return{title:s.alias||"State Change",subtitle:Array.isArray(s.entity_id)?`${s.entity_id.length} entities: -${s.entity_id.join(", ")}`:s.entity_id||"State",detail:s.to?`to: ${s.to}`:null};case"numeric_state":return{title:s.alias||"Numeric State",subtitle:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id||"Numeric State",detail:s.above||s.below?`${s.above?`>${s.above}`:""}${s.above&&s.below?" ":""}${s.below?`<${s.below}`:""}`:null};case"event":return{title:s.alias||"Event",subtitle:A[D],detail:s.event_type||null};case"time":return{title:s.alias||"Time",subtitle:A[D],detail:s.at||null};case"sun":return{title:s.alias||"Sun",subtitle:A[D],detail:s.event?`${s.event}${s.offset?` ${s.offset}`:""}`:null};case"mqtt":return{title:s.alias||"MQTT",subtitle:A[D],detail:s.topic||null};case"webhook":return{title:s.alias||"Webhook",subtitle:A[D],detail:s.webhook_id||null};case"zone":return{title:s.alias||"Zone",subtitle:A[D],detail:s.zone||(Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id)||null};default:return{title:s.alias||A[D]||"Trigger",subtitle:A[D]||D,detail:null}}})();return I.jsxs("div",{className:Sr("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",u&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-amber-200 p-1",children:I.jsx(SGt,{className:"h-4 w-4 text-amber-700"})}),I.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:R.title}),S&&I.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})]}),I.jsxs("div",{className:"space-y-0.5 text-amber-700 text-xs",children:[I.jsx("div",{className:"line-clamp-2 truncate whitespace-pre-line font-medium",children:R.subtitle}),R.detail&&I.jsx("div",{className:"truncate opacity-75",children:String(R.detail)})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-amber-500 !border-amber-700"})]})}),ker=H.memo(function({id:i,data:s,selected:u}){const{t:d}=ps(["common","nodes"]),g=ko(R=>R.activeNodeId),b=ko(R=>R.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=dKt(s.timeout);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.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:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.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:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(bGt,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||"Wait for"}),x&&I.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:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[s.wait_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.wait_template.slice(0,30),"..."]}),s.wait_for_trigger&&I.jsx("div",{className:"truncate text-[10px] opacity-75",children:d("nodes:wait.waitsForNTrigger",{count:s.wait_for_trigger.length})}),C&&I.jsxs("div",{className:"opacity-75",children:[d("nodes:wait.timeoutLabel")," ",C]})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"})]})});var Ner=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cer=Ner.reduce((n,i)=>{const s=lae(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{}),Ier="Separator",ZFt="horizontal",Rer=["horizontal","vertical"],fKt=H.forwardRef((n,i)=>{const{decorative:s,orientation:u=ZFt,...d}=n,g=Oer(u)?u:ZFt,w=s?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return I.jsx(Cer.div,{"data-orientation":g,...w,...d,ref:i})});fKt.displayName=Ier;function Oer(n){return Rer.includes(n)}var hKt=fKt;const jz=H.forwardRef(({className:n,orientation:i="horizontal",decorative:s=!0,...u},d)=>I.jsx(hKt,{ref:d,decorative:s,orientation:i,className:Sr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...u}));jz.displayName=hKt.displayName;function Ler(){const{undo:n,redo:i,canUndo:s,canRedo:u}=iKt(ko.temporal,sKt(b=>({undo:b.undo,redo:b.redo,canUndo:b.pastStates.length>0,canRedo:b.futureStates.length>0}))),d=H.useCallback(()=>{n(),ko.getState().validateAllNodes()},[n]),g=H.useCallback(()=>{i(),ko.getState().validateAllNodes()},[i]);return{undo:d,redo:g,canUndo:s,canRedo:u}}function HMe(){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 Der(n){return{name:"align-bottom",icon:X9n,tooltip:n("toolbar.alignBottom"),shortcut:"ctrl+shift+b",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.y+(g.height||0))),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,y:s-(g.height||0)}}:g);i.setNodes(d)}}}function Mer(n){return{name:"align-left",icon:r8n,tooltip:n("toolbar.alignLeft"),shortcut:"ctrl+shift+l",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.x)),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,x:s}}:g);i.setNodes(d)}}}function Per(n){return{name:"align-right",icon:Q9n,tooltip:n("toolbar.alignRight"),shortcut:"ctrl+shift+r",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.x+(g.width||0))),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,x:s-(g.width||0)}}:g);i.setNodes(d)}}}function jer(n){return{name:"align-top",icon:t8n,tooltip:n("toolbar.alignTop"),shortcut:"ctrl+shift+t",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.y)),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,y:s}}:g);i.setNodes(d)}}}function pKt(n){const i=n.selectedNodes.map(u=>u.id),s=n.edges.filter(u=>i.includes(u.source)&&i.includes(u.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:s})),n.setPasteCount(0)}function gKt(n,i,s){const u=(s.pasteCount||0)+1;s.setPasteCount(u);const d=50*u,g=new Map,b=s.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=ez(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(s.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}));s.setEdges([...s.edges,...E])}}function Fer(n){return{name:"copy",icon:$5e,tooltip:n("toolbar.copy"),shortcut:"ctrl+c",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{pKt(i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} copied`)}}}function $er(n){return{name:"cut",icon:fPn,tooltip:n("toolbar.cut"),shortcut:"ctrl+x",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const s=i.selectedNodes.length;pKt(i),i.selectedNodes.forEach(u=>{i.removeNode(u.id)}),N2.success(`${s} node${s!==1?"s":""} cut`)}}}function Ber(n){return{name:"delete",icon:PM,tooltip:n("toolbar.deleteNode"),shortcut:["delete","backspace"],variant:"destructive",group:"delete",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(s=>{i.removeNode(s.id)})}}}function Uer(n){return{name:"disconnect",icon:TPn,tooltip:n("toolbar.disconnect"),shortcut:"ctrl+shift+d",group:"edit",isEnabled:i=>{if(i.selectedNodes.length===0)return!1;const s=i.selectedNodes.map(u=>u.id);return i.edges.some(u=>s.includes(u.source)||s.includes(u.target))},execute:i=>{const s=i.selectedNodes.map(d=>d.id),u=i.edges.filter(d=>!s.includes(d.source)&&!s.includes(d.target));i.setEdges(u)}}}function Her(n){return{name:"duplicate",icon:O8n,tooltip:n("toolbar.duplicate"),shortcut:"ctrl+d",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const s=i.selectedNodes.map(d=>d.id),u=i.edges.filter(d=>s.includes(d.source)&&s.includes(d.target));gKt(i.selectedNodes,u,i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} duplicated`)}}}function zer(n){return{name:"paste",icon:C8n,tooltip:n("toolbar.paste"),shortcut:"ctrl+v",group:"clipboard",isEnabled:i=>!!(i.clipboard&&i.clipboard.length>0),execute:i=>{if(i.clipboard)try{const s=JSON.parse(i.clipboard),u=s.nodes||[],d=s.edges||[];if(!Array.isArray(u)||u.length===0)return;gKt(u,d,i)}catch(s){console.warn("Invalid clipboard data, cannot paste.",s)}}}}function Ger(n){return{name:"redo",icon:uPn,tooltip:n("toolbar.redo"),shortcut:["ctrl+shift+z","ctrl+y"],group:"history",isEnabled:i=>i.canRedo,execute:i=>i.redo()}}function qer(n){return{name:"selectAll",icon:nPn,tooltip:n("toolbar.selectAll"),shortcut:"ctrl+a",group:"selection",isEnabled:()=>!0,execute:i=>{const s=i.nodes.map(d=>({...d,selected:!0}));i.setNodes(s);const u=i.edges.map(d=>({...d,selected:!0}));i.setEdges(u)}}}function Ver(n){return{name:"toggle-enabled",icon:_9t,getIcon:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),u=i.selectedNodes.every(d=>d.data.enabled!==!1);return s?_8n:u?iN:_9t},tooltip:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),u=i.selectedNodes.every(d=>d.data.enabled!==!1);return n(s?"toolbar.enable":u?"toolbar.disable":"toolbar.toggleEnabled")},shortcut:"ctrl+e",group:"edit",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(s=>{const u=s.data.enabled!==!1;i.updateNodeData(s.id,{enabled:!u})})}}}function Wer(n){return{name:"undo",icon:EPn,tooltip:n("toolbar.undo"),shortcut:"ctrl+z",group:"history",isEnabled:i=>i.canUndo,execute:i=>i.undo()}}function Ker(n,i){const s=HMe();return n.split("+").map(u=>u==="ctrl"?i(s?"shortcuts.cmd":"shortcuts.ctrl"):u==="shift"?i("shortcuts.shift"):u==="alt"?i("shortcuts.alt"):u==="arrowup"?i("shortcuts.arrowUp"):u==="arrowdown"?i("shortcuts.arrowDown"):u==="arrowleft"?i("shortcuts.arrowLeft"):u==="arrowright"?i("shortcuts.arrowRight"):u.charAt(0).toUpperCase()+u.slice(1)).join("+")}const qOe=["history","node-specific","selection","clipboard","edit","align","delete"];function Yer(){var ne;const{t:n}=ps(),{nodes:i,edges:s,clipboard:u,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:x,setPasteCount:A}=ko(sKt(Q=>({nodes:Q.nodes,edges:Q.edges,clipboard:Q.clipboard,pasteCount:Q.pasteCount,addNode:Q.addNode,removeNode:Q.removeNode,updateNodeData:Q.updateNodeData,setNodes:Q.setNodes,setEdges:Q.setEdges,setClipboard:Q.setClipboard,setPasteCount:Q.setPasteCount}))),{undo:C,redo:R,canUndo:D,canRedo:L}=Ler(),B=H.useMemo(()=>({selectedNodes:i.filter(Q=>Q.selected),nodes:i,edges:s,clipboard:u,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:x,setPasteCount:A,undo:C,redo:R,canUndo:D,canRedo:L}),[i,s,u,d,g,b,w,E,S,x,A,C,R,D,L]),$=H.useMemo(()=>[Wer(n),Ger(n),Her(n),Fer(n),$er(n),zer(n),Mer(n),Per(n),jer(n),Der(n),Uer(n),qer(n),Ver(n),Ber(n)],[n]),j=$.length>0;H.useEffect(()=>{if(!j)return;const Q=ie=>{const he=ie.target;if(he.tagName==="INPUT"||he.tagName==="TEXTAREA"||he.isContentEditable)return;const ce=HMe()?ie.metaKey:ie.ctrlKey;let fe="";ce&&(fe+="ctrl+"),ie.shiftKey&&(fe+="shift+"),ie.altKey&&(fe+="alt+"),fe+=ie.key.toLowerCase();const K=$.find(pe=>!pe.shortcut||!(Array.isArray(pe.shortcut)?pe.shortcut:[pe.shortcut]).includes(fe)?!1:pe.isEnabled?pe.isEnabled(B):!0);K&&(ie.preventDefault(),K.execute(B))};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[j,$,B]);const P=H.useMemo(()=>{const Q={};for(const ie of $){const he=ie.group||"node-specific";Q[he]||(Q[he]=[]),Q[he].push(ie)}return Q},[$]);if(!j)return null;let G=0;try{u&&(G=((ne=JSON.parse(u).nodes)==null?void 0:ne.length)||0)}catch{}const ee=Q=>!Q||Q.length===0?null:Q.map(ie=>{const he=ie.getIcon?ie.getIcon(B):ie.icon,ge=typeof ie.tooltip=="function"?ie.tooltip(B):ie.tooltip,ce=ie.isEnabled?ie.isEnabled(B):!0,fe=ie.name==="paste";return I.jsxs(ki,{variant:"ghost",size:"icon",disabled:!ce,className:Sr("relative h-8 w-8 shrink-0","sm:h-9 sm:w-9",ie.variant==="destructive"&&"text-destructive hover:bg-destructive/10 hover:text-destructive"),title:ie.shortcut?`${ge} (${Ker(Array.isArray(ie.shortcut)?ie.shortcut[0]:ie.shortcut,n)})`:ge,onClick:()=>ie.execute(B),children:[I.jsx(he,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),fe&&G>0&&I.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:G})]},ie.name)});return I.jsx(gR,{position:"top-center",className:"!m-0 !p-0 max-w-[calc(100vw-2rem)] sm:max-w-[calc(100vw-4rem)]",children:I.jsx("div",{className:Sr("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:I.jsx("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:qOe.map((Q,ie)=>{var ge;const he=P[Q];return!he||he.length===0?null:I.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[ee(he),ie0&&I.jsx(jz,{orientation:"vertical",className:"mx-0.5 h-6 sm:mx-1"})]},Q)})})})})}const Jer={trigger:xer,condition:Ter,action:Ser,delay:Aer,wait:ker,set_variables:_er},Xer={deletable:Eer};function Zer(){const{t:n}=ps(["common","debug"]),i=zae(),{nodes:s,edges:u,onNodesChange:d,onEdgesChange:g,onConnect:b,selectNode:w,addNode:E,selectedNodeId:S,isSimulating:x,executionPath:A,isShowingTrace:C,traceExecutionPath:R,canDeleteEdge:D}=ko(),L=H.useRef(null),{screenToFlowPosition:B,setViewport:$}=kR(),[j,P]=H.useState(null),G=H.useCallback((fe,K)=>{var De;if(K.toNode||!K.fromHandle||!K.fromNode)return;const pe=fe.target;if(!((De=pe==null?void 0:pe.closest)!=null&&De.call(pe,".react-flow__pane")))return;const Oe="changedTouches"in fe?fe.changedTouches[0]:fe;if(!Oe)return;const Se=B({x:Oe.clientX,y:Oe.clientY});P({screenPosition:{screenX:Oe.clientX,screenY:Oe.clientY},flowPosition:Se,fromNodeId:K.fromHandle.nodeId,fromHandleId:K.fromHandle.id??null,direction:K.fromHandle.type==="source"?"forward":"backward"})},[B]),ee=H.useCallback(()=>P(null),[]),ne=H.useCallback(fe=>{if(!j)return;const Oe={id:ez(fe.type),type:fe.type,position:{x:j.flowPosition.x-180/2,y:j.flowPosition.y-80/2},data:{...fe.defaultData}};E(Oe),b(OQn(j.direction,j.fromNodeId,j.fromHandleId,Oe.id)),P(null)},[j,E,b]);H.useEffect(()=>{$({x:0,y:0,zoom:.75})},[$]);const Q=H.useCallback(({nodes:fe})=>{fe.length===1?w(fe[0].id):w(null)},[w]),ie=H.useCallback(fe=>{fe.preventDefault(),fe.dataTransfer.dropEffect="move"},[]),he=H.useCallback(async({nodes:fe,edges:K})=>{const pe=K.filter(Oe=>D(Oe.id));return{nodes:fe,edges:pe}},[D]),ge=H.useCallback(fe=>{fe.preventDefault();const K=fe.dataTransfer.getData("application/reactflow");if(K)try{const{type:pe,defaultData:Oe}=JSON.parse(K),Se=B({x:fe.clientX,y:fe.clientY}),xe={x:Se.x-180/2,y:Se.y-80/2},We={id:ez(pe),type:pe,position:xe,data:{...Oe}};E(We)}catch(pe){console.error("Failed to parse dropped node data:",pe)}},[B,E]),ce=H.useMemo(()=>u.map(fe=>{const K=A.indexOf(fe.source),pe=A.indexOf(fe.target),Oe=x&&A.length>=2&&K!==-1&&pe!==-1&&pe===K+1,Se=R.indexOf(fe.source),De=R.indexOf(fe.target),Ae=C&&R.length>=2&&Se!==-1&&De!==-1&&De===Se+1,xe=S&&(fe.source===S||fe.target===S);let We={strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},dt={type:sA.ArrowClosed,color:i?"#94a3b8":"#64748b"};return Oe?(We={stroke:"#22c55e",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#22c55e"}):Ae?(We={stroke:"#f59e0b",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#f59e0b"}):xe&&(We={stroke:"#3b82f6",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#3b82f6"}),{...fe,type:"deletable",animated:Oe||Ae,style:We,markerEnd:dt}}),[u,x,A,C,R,S,i]);return I.jsxs("div",{className:"h-full w-full",ref:L,children:[I.jsxs(g9n,{colorMode:i?"dark":"light",nodes:s,edges:ce,onNodesChange:d,onEdgesChange:g,onConnect:b,onConnectEnd:G,onBeforeDelete:he,onSelectionChange:Q,onDragOver:ie,onDrop:ge,panOnScroll:HMe(),nodeTypes:Jer,edgeTypes:Xer,defaultEdgeOptions:{type:"deletable",style:{strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},markerEnd:{type:sA.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:[I.jsx(E9n,{variant:pA.Dots,gap:20,size:1,color:i?"#475569":"#cbd5e1"}),I.jsx(N9n,{}),I.jsx(U9n,{nodeStrokeWidth:3,zoomable:!0,pannable:!0,nodeClassName:fe=>{switch(fe.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"}}}),I.jsx(Yer,{}),x&&I.jsx(gR,{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:I.jsxs("div",{className:"flex items-center gap-2 font-medium text-green-800 text-sm dark:text-green-200",children:[I.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-green-500"}),n("debug:simulation.simulatingExecution")]})}),C&&!x&&I.jsx(gR,{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:I.jsxs("div",{className:"flex items-center gap-2 font-medium text-orange-800 text-sm dark:text-orange-200",children:[I.jsx("div",{className:"h-2 w-2 rounded-full bg-orange-500"}),n("debug:simulation.showingTraceExecution",{steps:R.length})]})})]}),I.jsx(LQn,{position:(j==null?void 0:j.screenPosition)??null,direction:(j==null?void 0:j.direction)??"forward",onSelect:ne,onClose:ee})]})}const Qer=Aae("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 zMe({className:n,variant:i,...s}){return I.jsx("div",{className:Sr(Qer({variant:i}),n),...s})}function Gae(n){const i=H.useRef({value:n,previous:n});return H.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}var qae="Checkbox",[etr]=xw(qae),[ttr,GMe]=etr(qae);function ntr(n){const{__scopeCheckbox:i,checked:s,children:u,defaultChecked:d,disabled:g,form:b,name:w,onCheckedChange:E,required:S,value:x="on",internal_do_not_use_render:A}=n,[C,R]=G2({prop:s,defaultProp:d??!1,onChange:E,caller:qae}),[D,L]=H.useState(null),[B,$]=H.useState(null),j=H.useRef(!1),P=D?!!b||!!D.closest("form"):!0,G={checked:C,disabled:g,setChecked:R,control:D,setControl:L,name:w,form:b,value:x,hasConsumerStoppedPropagationRef:j,required:S,defaultChecked:tN(d)?!1:d,isFormControl:P,bubbleInput:B,setBubbleInput:$};return I.jsx(ttr,{scope:i,...G,children:rtr(A)?A(G):u})}var bKt="CheckboxTrigger",mKt=H.forwardRef(({__scopeCheckbox:n,onKeyDown:i,onClick:s,...u},d)=>{const{control:g,value:b,disabled:w,checked:E,required:S,setControl:x,setChecked:A,hasConsumerStoppedPropagationRef:C,isFormControl:R,bubbleInput:D}=GMe(bKt,n),L=hs(d,x),B=H.useRef(E);return H.useEffect(()=>{const $=g==null?void 0:g.form;if($){const j=()=>A(B.current);return $.addEventListener("reset",j),()=>$.removeEventListener("reset",j)}},[g,A]),I.jsx(no.button,{type:"button",role:"checkbox","aria-checked":tN(E)?"mixed":E,"aria-required":S,"data-state":SKt(E),"data-disabled":w?"":void 0,disabled:w,value:b,...u,ref:L,onKeyDown:Lr(i,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:Lr(s,$=>{A(j=>tN(j)?!0:!j),D&&R&&(C.current=$.isPropagationStopped(),C.current||$.stopPropagation())})})});mKt.displayName=bKt;var qMe=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,name:u,checked:d,defaultChecked:g,required:b,disabled:w,value:E,onCheckedChange:S,form:x,...A}=n;return I.jsx(ntr,{__scopeCheckbox:s,checked:d,defaultChecked:g,disabled:w,required:b,onCheckedChange:S,name:u,form:x,value:E,internal_do_not_use_render:({isFormControl:C})=>I.jsxs(I.Fragment,{children:[I.jsx(mKt,{...A,ref:i,__scopeCheckbox:s}),C&&I.jsx(EKt,{__scopeCheckbox:s})]})})});qMe.displayName=qae;var wKt="CheckboxIndicator",yKt=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,forceMount:u,...d}=n,g=GMe(wKt,s);return I.jsx(kw,{present:u||tN(g.checked)||g.checked===!0,children:I.jsx(no.span,{"data-state":SKt(g.checked),"data-disabled":g.disabled?"":void 0,...d,ref:i,style:{pointerEvents:"none",...n.style}})})});yKt.displayName=wKt;var vKt="CheckboxBubbleInput",EKt=H.forwardRef(({__scopeCheckbox:n,...i},s)=>{const{control:u,hasConsumerStoppedPropagationRef:d,checked:g,defaultChecked:b,required:w,disabled:E,name:S,value:x,form:A,bubbleInput:C,setBubbleInput:R}=GMe(vKt,n),D=hs(s,R),L=Gae(g),B=vae(u);H.useEffect(()=>{const j=C;if(!j)return;const P=window.HTMLInputElement.prototype,ee=Object.getOwnPropertyDescriptor(P,"checked").set,ne=!d.current;if(L!==g&&ee){const Q=new Event("click",{bubbles:ne});j.indeterminate=tN(g),ee.call(j,tN(g)?!1:g),j.dispatchEvent(Q)}},[C,L,g,d]);const $=H.useRef(tN(g)?!1:g);return I.jsx(no.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??$.current,required:w,disabled:E,name:S,value:x,form:A,...i,tabIndex:-1,ref:D,style:{...i.style,...B,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});EKt.displayName=vKt;function rtr(n){return typeof n=="function"}function tN(n){return n==="indeterminate"}function SKt(n){return tN(n)?"indeterminate":n?"checked":"unchecked"}const YLe=H.forwardRef(({className:n,...i},s)=>I.jsx(qMe,{ref:s,className:Sr("peer grid h-4 w-4 shrink-0 place-content-center 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:I.jsx(yKt,{className:Sr("grid place-content-center text-current"),children:I.jsx(oN,{className:"h-4 w-4"})})}));YLe.displayName=qMe.displayName;const Na=H.forwardRef(({className:n,type:i,...s},u)=>I.jsx("input",{type:i,autoComplete:"off",className:Sr("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors caret-foreground 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:u,...s}));Na.displayName="Input";var Vae="Switch",[itr]=xw(Vae),[otr,str]=itr(Vae),TKt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,name:u,checked:d,defaultChecked:g,required:b,disabled:w,value:E="on",onCheckedChange:S,form:x,...A}=n,[C,R]=H.useState(null),D=hs(i,P=>R(P)),L=H.useRef(!1),B=C?x||!!C.closest("form"):!0,[$,j]=G2({prop:d,defaultProp:g??!1,onChange:S,caller:Vae});return I.jsxs(otr,{scope:s,checked:$,disabled:w,children:[I.jsx(no.button,{type:"button",role:"switch","aria-checked":$,"aria-required":b,"data-state":kKt($),"data-disabled":w?"":void 0,disabled:w,value:E,...A,ref:D,onClick:Lr(n.onClick,P=>{j(G=>!G),B&&(L.current=P.isPropagationStopped(),L.current||P.stopPropagation())})}),B&&I.jsx(xKt,{control:C,bubbles:!L.current,name:u,value:E,checked:$,required:b,disabled:w,form:x,style:{transform:"translateX(-100%)"}})]})});TKt.displayName=Vae;var AKt="SwitchThumb",_Kt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,...u}=n,d=str(AKt,s);return I.jsx(no.span,{"data-state":kKt(d.checked),"data-disabled":d.disabled?"":void 0,...u,ref:i})});_Kt.displayName=AKt;var atr="SwitchBubbleInput",xKt=H.forwardRef(({__scopeSwitch:n,control:i,checked:s,bubbles:u=!0,...d},g)=>{const b=H.useRef(null),w=hs(b,g),E=Gae(s),S=vae(i);return H.useEffect(()=>{const x=b.current;if(!x)return;const A=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(A,"checked").set;if(E!==s&&R){const D=new Event("click",{bubbles:u});R.call(x,s),x.dispatchEvent(D)}},[E,s,u]),I.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...d,tabIndex:-1,ref:w,style:{...d.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xKt.displayName=atr;function kKt(n){return n?"checked":"unchecked"}var NKt=TKt,utr=_Kt;const J2=H.forwardRef(({className:n,...i},s)=>I.jsx(NKt,{className:Sr("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:s,children:I.jsx(utr,{className:Sr("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")})}));J2.displayName=NKt.displayName;function ctr(n){return Array.isArray(n)?n.filter(i=>typeof i=="string"):typeof n=="string"&&n.trim()?[n]:[]}function ltr(n,i){if(!n.entity_id.startsWith("automation."))return null;const s=typeof n.attributes.friendly_name=="string"?n.attributes.friendly_name:n.entity_id,u=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:u,friendly_name:s,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:ctr(n.attributes.tags)}}function dtr(n){return[n.entity_id,n.friendly_name,n.description,n.mode||"",n.tags.join(" ")].filter(Boolean).join(" ")}function ftr(n,i,s){return i?[...n].sort((u,d)=>{let g=0;switch(i){case"name":{g=u.friendly_name.toLowerCase().localeCompare(d.friendly_name.toLowerCase());break}case"lastTriggered":{const b=u.last_triggered?new Date(u.last_triggered).getTime():0,w=d.last_triggered?new Date(d.last_triggered).getTime():0;g=b-w;break}case"enabled":{g=Number(u.enabled)-Number(d.enabled);break}}return s==="asc"?g:-g}):[...n]}function htr(n,i){if(!i.trim())return[...n];const s=n.map(d=>({...d,searchText:dtr(d)}));return new NR(s,{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 ptr(n,i,s){const u={};for(const d of n){const g=d.area_id?i[d.area_id]||s.otherArea:s.noArea;u[g]||(u[g]=[]),u[g].push(d)}return u}function gtr({isOpen:n,hass:i,hassConfig:s,entities:u,searchTerm:d,sortColumn:g,sortDirection:b,labels:w}){const[E,S]=H.useState([]),[x,A]=H.useState([]);H.useEffect(()=>{if(!n||!i)return;const j=Mv(i,s);let P=!1;return(async()=>{try{const[G,ee]=await Promise.all([j.getAreas(),j.getEntities()]);P||(S(Array.isArray(G)?G:[]),A(Array.isArray(ee)?ee:[]))}catch{P||(S([]),A([]))}})(),()=>{P=!0}},[n,i,s]);const C=H.useMemo(()=>{const j={};for(const P of x)P.entity_id&&P.area_id&&(j[P.entity_id]=P.area_id);return j},[x]),R=H.useMemo(()=>{const j={};for(const P of E)P.area_id&&P.name&&(j[P.area_id]=P.name);return j},[E]),D=H.useMemo(()=>u.map(j=>ltr(j,C[j.entity_id])).filter(j=>j!==null),[u,C]),L=H.useMemo(()=>htr(D,d),[D,d]),B=H.useMemo(()=>ftr(L,g,b),[L,g,b]),$=H.useMemo(()=>ptr(B,R,w),[B,R,w]);return{areas:E,entityRegistry:x,areaIdToName:R,catalogItems:D,filteredCatalogItems:L,sortedCatalogItems:B,catalogByArea:$}}function btr(n){if(n.length===0)return{minX:0,minY:0,width:0,height:0};let i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,d=Number.NEGATIVE_INFINITY;for(const g of n)i=Math.min(i,g.position.x),s=Math.min(s,g.position.y),u=Math.max(u,g.position.x),d=Math.max(d,g.position.y);return{minX:i,minY:s,width:Math.max(0,u-i),height:Math.max(0,d-s)}}function mtr(n,i){return`${n.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||`source_${i+1}`}_${i+1}`}function wtr(n){const i={};for(const s of n)if(s.variables)for(const[u,d]of Object.entries(s.variables)){if(!(u in i)){i[u]=d;continue}JSON.stringify(i[u])!==JSON.stringify(d)&&(i[`${s.prefix}__${u}`]=d)}return Object.keys(i).length>0?i:void 0}function ytr(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))),s=n.map(R=>btr(R.graph.nodes)),u=Math.max(...s.map(R=>R.width),0),d=Math.max(...s.map(R=>R.height),0),g=u+260,b=d+220,w=[],E=[],S=[],x=[];n.forEach((R,D)=>{const L=mtr(R.alias||R.automationId||R.entityId,D),B=s[D],$=D%i,j=Math.floor(D/i),P=$*g,G=j*b,ee=new Map;for(const ne of R.graph.nodes){const Q=`${L}__${ne.id}`;ee.set(ne.id,Q),w.push({...ne,id:Q,position:{x:ne.position.x-B.minX+P,y:ne.position.y-B.minY+G}})}for(const ne of R.graph.edges){const Q=ee.get(ne.source),ie=ee.get(ne.target);!Q||!ie||E.push({...ne,id:`${L}__${ne.id}`,source:Q,target:ie})}S.push({automation_id:R.automationId,entity_id:R.entityId,alias:R.alias,node_prefix:L,imported_at:R.importedAt??new Date().toISOString()}),x.push({prefix:L,variables:R.graph.userVariables})});const A={mode:"single",initial_state:!0,...((C=n[0])==null?void 0:C.graph.metadata)||{}};return{id:K5e(),name:"Merged Automation",description:`Merged from ${n.length} automations`,nodes:w,edges:E,metadata:A,version:1,workspace:{mode:"merged",sources:S},userVariables:wtr(x)}}function vtr({isOpen:n,onClose:i}){const{t:s}=ps(["common","dialogs","errors"]),[u,d]=H.useState(""),[g,b]=H.useState(null),[w,E]=H.useState("asc"),[S,x]=H.useState(new Set),[A,C]=H.useState(!1),[R,D]=H.useState(null),{hass:L,config:B,entities:$}=pb(),{setFlowName:j,setAutomationId:P,reset:G,fromFlowGraph:ee,hasRealChanges:ne}=ko(),{fitView:Q}=kR(),{catalogByArea:ie,sortedCatalogItems:he}=gtr({isOpen:n,hass:L,hassConfig:B,entities:$,searchTerm:u,sortColumn:g,sortDirection:w,labels:{noArea:s("dialogs:import.noArea"),otherArea:s("dialogs:import.otherArea")}});H.useEffect(()=>{n||(x(new Set),d(""))},[n]);const ge=H.useMemo(()=>he.filter(ht=>S.has(ht.entity_id)),[he,S]),ce=H.useMemo(()=>he.length===0?!1:he.every(ht=>S.has(ht.entity_id)),[he,S]),fe=he.length>0,K=ht=>{if(ne()){D(()=>ht),C(!0);return}ht()},pe=()=>{R&&R(),C(!1),D(null)},Oe=()=>{C(!1),D(null)},Se=ht=>{g===ht?E(w==="asc"?"desc":"asc"):(b(ht),E("asc"))},De=ht=>g!==ht?I.jsx(c8n,{className:"ml-1 inline h-3 w-3 opacity-50"}):w==="asc"?I.jsx(d8n,{className:"ml-1 inline h-3 w-3"}):I.jsx(o8n,{className:"ml-1 inline h-3 w-3"}),Ae=ht=>{x(Xt=>{const vt=new Set(Xt);return vt.has(ht)?vt.delete(ht):vt.add(ht),vt})},xe=()=>{x(ht=>{const Xt=new Set(ht);if(ce)for(const vt of he)Xt.delete(vt.entity_id);else for(const vt of he)Xt.add(vt.entity_id);return Xt})},We=async ht=>{var Xt;try{const vt=Mv(L,B);if(!vt.isConnected())throw new Error(s("errors:connection.noConnection"));const Ct=await vt.getAutomationConfigWithFallback(ht.automation_id,ht.friendly_name);if(G(),Ct){const Ft=gse(Ct,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),On=await GLe.fromYaml(Ft);if(!On.success||!On.graph)throw new Error(((Xt=On.errors)==null?void 0:Xt.join(` -`))||s("errors:import.parseFailed"));ee(On.graph),setTimeout(()=>{Q({padding:.2,duration:300})},50),j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.success(s("dialogs:import.importSuccess",{name:ht.friendly_name||ht.automation_id}))}else j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.warning(s("dialogs:import.openedWarning",{name:ht.friendly_name||ht.automation_id}),{description:s("dialogs:import.openedWarningDescription")});i()}catch(vt){console.error("C.A.F.E.: Failed to open automation:",vt),N2.error(s("dialogs:import.importFailed",{message:vt.message}))}},dt=()=>{ge.length===1&&K(()=>{We(ge[0])})},Ue=ht=>{const Xt=ht.map(vt=>vt.friendly_name).filter(Boolean);return Xt.length===0?s("dialogs:import.defaultMergedName"):Xt.length<=2?Xt.join(" + "):`${Xt[0]} + ${Xt.length-1} more`},bt=async()=>{if(!(ge.length<2))try{const ht=Mv(L,B);if(!ht.isConnected())throw new Error(s("errors:connection.noConnection"));const Xt=await ht.getAutomationConfigsBatch(ge.map(Ft=>Ft.automation_id)),vt=[];for(const Ft of ge){let On=Xt[Ft.automation_id];if(On||(On=await ht.getAutomationConfigWithFallback(Ft.automation_id,Ft.friendly_name)),!On)throw new Error(s("dialogs:import.mergeFailedMissingConfig",{name:Ft.friendly_name}));const Zn=gse(On,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Yn=await GLe.fromYaml(Zn);if(!Yn.success||!Yn.graph)throw new Error(s("dialogs:import.mergeFailedInvalidYaml",{name:Ft.friendly_name}));vt.push({graph:Yn.graph,automationId:Ft.automation_id,entityId:Ft.entity_id,alias:Ft.friendly_name||Ft.automation_id})}const Ct=ytr(vt);ee(Ct),j(Ue(ge)),P(null),x(new Set),setTimeout(()=>{Q({padding:.2,duration:300})},50),N2.success(s("dialogs:import.mergeSuccess",{count:ge.length})),i()}catch(ht){console.error("C.A.F.E.: Failed to merge automations:",ht),N2.error(s("dialogs:import.mergeFailed",{message:ht.message}))}},kt=ht=>{if(!ht)return s("dialogs:import.never");const Xt=new Date(ht),Ct=new Date().getTime()-Xt.getTime(),Ft=Math.floor(Ct/(1e3*60)),On=Math.floor(Ft/60),Zn=Math.floor(On/24);return Ft<1?s("dialogs:import.justNow"):Ft<60?s("dialogs:import.minutesAgo",{count:Ft}):On<24?s("dialogs:import.hoursAgo",{count:On}):Zn<7?s("dialogs:import.daysAgo",{count:Zn}):Xt.toLocaleDateString()};return n?I.jsxs(wR,{open:n,onOpenChange:i,children:[I.jsxs(aN,{className:"flex max-h-[90vh] max-w-4xl flex-col",children:[I.jsx(uN,{className:"space-y-3",children:I.jsxs("div",{className:"flex items-center justify-between pr-8",children:[I.jsxs("div",{children:[I.jsx(cN,{children:s("dialogs:import.title")}),I.jsx(lN,{children:s("dialogs:import.descriptionFull")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(ki,{variant:"outline",onClick:ge.length===1?dt:()=>K(()=>void bt()),disabled:ge.length===0,children:[ge.length>1?I.jsx(X8n,{className:"mr-2 h-4 w-4"}):I.jsx(A9t,{className:"mr-2 h-4 w-4"}),ge.length>1?s("dialogs:import.openTogether"):s("dialogs:import.openSingle")]}),I.jsxs(ki,{onClick:()=>{K(()=>{G(),j(s("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[I.jsx(gGt,{className:"mr-2 h-4 w-4"}),s("dialogs:import.createNew")]})]})]})}),I.jsxs("div",{className:"flex min-h-0 flex-col",children:[I.jsxs("div",{className:"relative mb-4",children:[I.jsx(yGt,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),I.jsx(Na,{type:"text",placeholder:s("dialogs:import.searchPlaceholder"),value:u,onChange:ht=>d(ht.target.value),className:"pl-10"})]}),I.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-t-md",children:I.jsxs("div",{className:"min-w-full",children:[I.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:I.jsxs("div",{className:"flex",children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center border-b bg-muted px-2 py-2",children:I.jsx(YLe,{checked:ce,onCheckedChange:xe,title:s(ce?"dialogs:import.unselectAll":"dialogs:import.selectAll")})}),I.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:[s("dialogs:import.columns.name"),De("name")]}),I.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:[s("dialogs:import.columns.lastTriggered"),De("lastTriggered")]}),I.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:[s("dialogs:import.columns.enabled"),De("enabled")]}),I.jsx("div",{className:"w-[60px] border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs",children:s("dialogs:import.columns.action")})]})}),I.jsxs("div",{children:[Object.entries(ie).flatMap(([ht,Xt])=>{if(Xt.length===0)return[];const vt=I.jsx("div",{className:"sticky top-[32px] z-10 -mt-1 flex border-b bg-accent",children:I.jsx("div",{className:"flex-1 px-3 py-2 font-bold text-accent-foreground text-xs",children:ht})},ht),Ct=Xt.map(Ft=>{const On=S.has(Ft.entity_id);return I.jsxs("div",{className:`flex border-b last:border-0 ${On?"bg-accent/40":""}`,children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center px-2 py-2",children:I.jsx(YLe,{checked:On,onCheckedChange:()=>Ae(Ft.entity_id),title:s(On?"dialogs:import.unselect":"dialogs:import.select")})}),I.jsxs("div",{className:"flex-1 px-3 py-2 align-top",children:[I.jsx("div",{className:"max-w-[180px] font-medium",children:Ft.friendly_name}),Ft.description&&I.jsx("div",{className:"mt-1 max-w-[180px] truncate text-muted-foreground text-xs",children:Ft.description}),Ft.tags.length>0&&I.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Ft.tags.map(Zn=>I.jsx(zMe,{variant:"secondary",className:"text-xs",children:Zn},`${Ft.entity_id}-${Zn}`))}),I.jsx("div",{className:"mt-1 truncate text-muted-foreground text-xs",children:s("dialogs:import.ID",{id:Ft.automation_id})}),Ft.mode&&I.jsx("div",{className:"text-muted-foreground text-xs",children:s("dialogs:import.mode",{mode:Ft.mode})})]}),I.jsx("div",{className:"w-[120px] max-w-[120px] px-3 py-2 align-top",children:Ft.last_triggered?I.jsx("span",{className:"whitespace-nowrap text-xs",children:kt(Ft.last_triggered)}):I.jsx("span",{className:"text-muted-foreground text-xs",children:s("dialogs:import.never")})}),I.jsx("div",{className:"w-[80px] px-3 py-2 text-center align-top",children:I.jsx(J2,{checked:Ft.enabled,onCheckedChange:async Zn=>{try{await Mv(L,B).setAutomationState(Ft.entity_id,Zn),N2.success(s(Zn?"dialogs:import.automationEnabled":"dialogs:import.automationDisabled"))}catch{N2.error(s("dialogs:import.updateStateFailed"))}},"aria-label":Ft.enabled?s("dialogs:import.columns.enabled"):s("dialogs:import.disabled")})}),I.jsx("div",{className:"w-[60px] px-3 py-2 text-center align-top",children:I.jsx(ki,{size:"icon",variant:"ghost",onClick:()=>K(()=>void We(Ft)),title:s("dialogs:import.importAutomation"),children:I.jsx(A9t,{className:"h-4 w-4"})})})]},Ft.entity_id)});return[I.jsxs(Hn.Fragment,{children:[vt,Ct]},ht)]}),!fe&&I.jsx("div",{className:"flex",children:I.jsx("div",{className:"flex-1 py-8 text-center text-muted-foreground",children:s("dialogs:import.noAutomations")})})]})]})})]}),I.jsx("div",{className:"border-t bg-muted/20 p-6",children:I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("p",{className:"text-muted-foreground text-sm",children:s("dialogs:import.openingWarning")}),I.jsx(ki,{onClick:i,variant:"ghost",children:s("buttons.cancel")})]})})]}),I.jsx(wR,{open:A,onOpenChange:Oe,children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:s("dialogs:import.discardTitle")}),I.jsx(lN,{children:s("dialogs:import.discardDescription")})]}),I.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[I.jsx(ki,{variant:"outline",onClick:Oe,children:s("buttons.cancel")}),I.jsx(ki,{variant:"destructive",onClick:pe,children:s("dialogs:import.confirmDiscard")})]})]})})]}):null}const Etr=Aae("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"}}),dA=H.forwardRef(({className:n,variant:i,...s},u)=>I.jsx("div",{ref:u,role:"alert",className:Sr(Etr({variant:i}),n),...s}));dA.displayName="Alert";const CKt=H.forwardRef(({className:n,...i},s)=>I.jsx("h5",{ref:s,className:Sr("mb-1 font-medium leading-none tracking-tight",n),...i}));CKt.displayName="AlertTitle";const fA=H.forwardRef(({className:n,...i},s)=>I.jsx("div",{ref:s,className:Sr("text-sm [&_p]:leading-relaxed",n),...i}));fA.displayName="AlertDescription";var Str=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ttr=Str.reduce((n,i)=>{const s=lae(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{}),Atr="Label",IKt=H.forwardRef((n,i)=>I.jsx(Ttr.label,{...n,ref:i,onMouseDown:s=>{var d;s.target.closest("button, input, select, textarea")||((d=n.onMouseDown)==null||d.call(n,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));IKt.displayName=Atr;var RKt=IKt;const _tr=Aae("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ll=H.forwardRef(({className:n,...i},s)=>I.jsx(RKt,{ref:s,className:Sr(_tr(),n),...i}));ll.displayName=RKt.displayName;const $v=H.forwardRef(({className:n,...i},s)=>I.jsx("textarea",{className:Sr("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:s,...i}));$v.displayName="Textarea";function xtr({isOpen:n,onClose:i,onSaved:s}){const{t:u}=ps(["common","dialogs","errors"]),{flowName:d,flowDescription:g,automationId:b,isSaving:w,setFlowName:E,setFlowDescription:S,setAutomationId:x,saveAutomation:A,updateAutomation:C}=ko(),{hass:R}=pb(),[D,L]=H.useState(g),[B,$]=H.useState(null),[j,P]=H.useState(null),G=!!b;H.useEffect(()=>{n&&(L(g),$(null),P(null))},[n,g]);const ee=async ce=>{if(!ce.trim()){P(null);return}try{if(await Mv(R).automationExistsByAlias(ce)&&!G){const K=await Mv(R).getUniqueAutomationAlias(ce);P(K)}else P(null)}catch(fe){console.warn("Failed to check name conflict:",fe),P(null)}},ne=async()=>{if(!R){$(u("errors:connection.notConnected"));return}if(!d.trim()){$(u("errors:form.nameRequired"));return}$(null);try{S(D.trim());let ce;G?(await C(R),ce=b||""):ce=await A(R),s==null||s(ce),i()}catch(ce){const fe=ce instanceof Error?ce.message:u("errors:api.unknownError");$(fe)}},Q=()=>{$(null),P(null),i()},ie=ce=>{E(ce),ee(ce)},he=()=>{j&&(E(j),P(null))},ge=async()=>{if(!R){$(u("errors:connection.notConnected"));return}$(null);try{const ce=await Mv(R).getUniqueAutomationAlias(d);E(ce),S(D.trim()),x(null);const fe=await A(R);s==null||s(fe),i()}catch(ce){const fe=ce instanceof Error?ce.message:u("errors:api.unknownError");$(fe)}};return I.jsx(wR,{open:n,onOpenChange:Q,children:I.jsxs(aN,{className:"max-w-md max-h-[90vh] overflow-y-auto",children:[I.jsxs(uN,{children:[I.jsxs(cN,{className:"flex items-center gap-2",children:[I.jsx(wGt,{className:"h-5 w-5"}),u(G?"dialogs:save.titleUpdate":"dialogs:save.title")]}),I.jsx(lN,{children:u(G?"dialogs:save.descriptionUpdate":"dialogs:save.description")})]}),I.jsxs("div",{className:"space-y-4",children:[I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"automation-name",children:u("dialogs:save.nameLabel")}),I.jsx(Na,{id:"automation-name",value:d,onChange:ce=>ie(ce.target.value),placeholder:u("placeholders.enterAutomationName"),disabled:w})]}),j&&I.jsxs(dA,{children:[I.jsx(x9t,{className:"h-4 w-4"}),I.jsxs(fA,{className:"flex items-center justify-between",children:[I.jsx("span",{children:u("dialogs:save.nameConflict",{suggestedName:j})}),I.jsx(ki,{variant:"outline",size:"sm",onClick:he,disabled:w,children:u("buttons.use")})]})]}),I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"automation-description",children:u("dialogs:save.descriptionLabel")}),I.jsx($v,{id:"automation-description",value:D,onChange:ce=>L(ce.target.value),placeholder:u("placeholders.describeAutomation"),rows:3,disabled:w})]}),B&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(x9t,{className:"h-4 w-4"}),I.jsx(fA,{children:B})]}),I.jsxs("div",{className:"flex justify-end gap-2",children:[I.jsx(ki,{variant:"outline",onClick:Q,disabled:w,children:u("buttons.cancel")}),G&&I.jsxs(ki,{variant:"outline",onClick:ge,disabled:w||!d.trim(),children:[w?I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}):I.jsx($5e,{className:"mr-2 h-4 w-4"}),u("buttons.saveAsCopy")]}),I.jsx(ki,{onClick:ne,disabled:w||!d.trim(),children:w?I.jsxs(I.Fragment,{children:[I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}),u(G?"status.updating":"status.saving")]}):I.jsxs(I.Fragment,{children:[I.jsx(oN,{className:"mr-2 h-4 w-4"}),u(G?"buttons.update":"buttons.save")]})})]})]})]})})}function ktr({isOpen:n,onClose:i,config:s,onSave:u}){const{t:d}=ps(["common","dialogs"]),[g,b]=H.useState(s.url),[w,E]=H.useState(s.token),[S,x]=H.useState("idle"),[A,C]=H.useState("");H.useEffect(()=>{n&&(b(s.url),E(s.token),x("idle"),C(""))},[n,s]);const R=async()=>{if(!g||!w){x("error"),C(d("dialogs:settings.errors.missingFields"));return}x("testing"),C("");try{const B=g.replace(/\/$/,""),$=await fetch(`${B}/api/`,{headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}});$.ok?(await $.json()).message==="API running."?x("success"):(x("error"),C(d("dialogs:settings.errors.unexpectedResponse"))):$.status===401?(x("error"),C(d("dialogs:settings.errors.invalidToken"))):(x("error"),C(d("dialogs:settings.errors.httpError",{status:$.status,statusText:$.statusText})))}catch(B){x("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"))}},D=()=>{u({url:g.replace(/\/$/,""),token:w}),i()},L=()=>{b(""),E(""),u({url:"",token:""}),i()};return I.jsx(wR,{open:n,onOpenChange:()=>i(),children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:d("dialogs:settings.title")}),I.jsx(lN,{children:d("dialogs:settings.description")})]}),I.jsxs("div",{className:"space-y-4",children:[I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"url",children:d("dialogs:settings.urlLabel")}),I.jsx(Na,{id:"url",type:"url",value:g,onChange:B=>b(B.target.value),placeholder:d("dialogs:settings.urlPlaceholder")}),I.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.urlHelp")})]}),I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"token",children:d("dialogs:settings.tokenLabel")}),I.jsx(Na,{id:"token",type:"password",value:w,onChange:B=>E(B.target.value),placeholder:d("dialogs:settings.tokenPlaceholder"),className:"font-mono text-sm"}),I.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.tokenHelp")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(ki,{variant:"outline",onClick:R,disabled:S==="testing",children:S==="testing"?I.jsxs(I.Fragment,{children:[I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}),d("dialogs:settings.testing")]}):d("dialogs:settings.testConnection")}),S==="success"&&I.jsxs("span",{className:"flex items-center gap-1 text-green-600 text-sm",children:[I.jsx(pGt,{className:"h-4 w-4"}),d("dialogs:settings.connected")]}),S==="error"&&I.jsxs("span",{className:"flex items-center gap-1 text-red-600 text-sm",children:[I.jsx(_w,{className:"h-4 w-4"}),A]})]}),I.jsx(dA,{children:I.jsxs(fA,{children:[I.jsx("h4",{className:"mb-1 font-medium",children:d("dialogs:settings.corsNote")}),I.jsx("p",{className:"mb-2 text-xs",children:d("dialogs:settings.corsDescription")}),I.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`})]})}),I.jsx(ki,{variant:"link",asChild:!0,className:"h-auto p-0 text-sm",children:I.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:[I.jsx(j8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),I.jsxs("div",{className:"flex items-center justify-between pt-4",children:[I.jsx(ki,{variant:"destructive",onClick:L,size:"sm",children:d("dialogs:settings.disconnect")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(ki,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),I.jsx(ki,{onClick:D,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function Ntr({isOpen:n,onClose:i,onImportSuccess:s}){const{t:u}=ps(["common","dialogs"]),[d,g]=H.useState(""),[b,w]=H.useState(!1),[E,S]=H.useState(null),[x,A]=H.useState([]),{fromFlowGraph:C}=ko(),{fitView:R}=kR();if(!n)return null;const D=async()=>{var B;w(!0),S(null),A([]);try{const $=await GLe.fromYaml(d);if(!$.success){S(((B=$.errors)==null?void 0:B.join(` -`))||"Failed to parse YAML. Please check the format."),w(!1);return}$.warnings.length>0&&(Ef.warn("Import warnings:",$.warnings),A($.warnings)),$.graph&&(C($.graph),setTimeout(()=>{R({padding:.2,duration:300})},50),setTimeout(()=>{s==null||s(),L()},1e3))}catch($){S($ instanceof Error?$.message:"Unknown error occurred")}finally{w(!1)}},L=()=>{g(""),S(null),A([]),i()};return I.jsx(wR,{open:n,onOpenChange:()=>L(),children:I.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:u("dialogs:importYaml.title")}),I.jsx(lN,{children:u("dialogs:importYaml.description")})]}),I.jsxs("div",{className:"flex-1 space-y-4",children:[I.jsx($v,{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&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{className:"font-medium",children:[u("dialogs:importYaml.importFailed"),I.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),x.length>0&&I.jsxs(dA,{children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{children:[I.jsx("p",{className:"mb-1 font-medium",children:u("dialogs:importYaml.warnings")}),I.jsx("ul",{className:"space-y-1 text-xs",children:x.map((B,$)=>I.jsxs("li",{children:["•"," ",B]},`warning-${$}-${B.slice(0,20)}`))})]})]}),b&&!E&&I.jsxs(dA,{children:[I.jsx(pGt,{className:"h-4 w-4"}),I.jsx(fA,{children:u("dialogs:importYaml.successLoading")})]}),I.jsx(dA,{children:I.jsxs(fA,{className:"text-xs",children:[I.jsx("strong",{children:u("dialogs:importYaml.tipLabel")})," ",u("dialogs:importYaml.tipText")]})})]}),I.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[I.jsx(ki,{variant:"outline",onClick:L,disabled:b,children:u("buttons.cancel")}),I.jsxs(ki,{onClick:D,disabled:!d.trim()||b,children:[I.jsx(_Pn,{className:"mr-2 h-4 w-4"}),u(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}function H2({message:n}){return n?I.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-red-600 text-xs",children:[I.jsx(_w,{className:"h-3 w-3 flex-shrink-0"}),I.jsx("span",{children:n})]}):null}function Lo({label:n,required:i,description:s,children:u}){return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[n,i&&I.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),u,s&&I.jsx("p",{className:"text-muted-foreground text-xs",children:s})]})}const QFt={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","stop","error","entity_id","action","metadata"],delay:["delay"],wait:["wait_template","timeout","wait_for_trigger","continue_on_timeout"],set_variables:["variables"]};function e$t(n,i=[]){const s=[...QFt.common,...QFt[n]||[]];return new Set([...s,...i])}function mse(n,[i,s]){return Math.min(s,Math.max(i,n))}function t$t(n){const i=Ctr(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(Rtr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Ctr(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Ltr(d),w=Otr(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Itr=Symbol("radix.slottable");function Rtr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Itr}function Otr(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Ltr(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Wae(n){const i=n+"CollectionProvider",[s,u]=xw(i),[d,g]=s(i,{collectionRef:{current:null},itemMap:new Map}),b=L=>{const{scope:B,children:$}=L,j=Hn.useRef(null),P=Hn.useRef(new Map).current;return I.jsx(d,{scope:B,itemMap:P,collectionRef:j,children:$})};b.displayName=i;const w=n+"CollectionSlot",E=t$t(w),S=Hn.forwardRef((L,B)=>{const{scope:$,children:j}=L,P=g(w,$),G=hs(B,P.collectionRef);return I.jsx(E,{ref:G,children:j})});S.displayName=w;const x=n+"CollectionItemSlot",A="data-radix-collection-item",C=t$t(x),R=Hn.forwardRef((L,B)=>{const{scope:$,children:j,...P}=L,G=Hn.useRef(null),ee=hs(B,G),ne=g(x,$);return Hn.useEffect(()=>(ne.itemMap.set(G,{ref:G,...P}),()=>void ne.itemMap.delete(G))),I.jsx(C,{[A]:"",ref:ee,children:j})});R.displayName=x;function D(L){const B=g(n+"CollectionConsumer",L);return Hn.useCallback(()=>{const j=B.collectionRef.current;if(!j)return[];const P=Array.from(j.querySelectorAll(`[${A}]`));return Array.from(B.itemMap.values()).sort((ne,Q)=>P.indexOf(ne.ref.current)-P.indexOf(Q.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:b,Slot:S,ItemSlot:R},D,u]}var Dtr=H.createContext(void 0);function Fz(n){const i=H.useContext(Dtr);return n||i||"ltr"}function Mtr(n){const i=Ptr(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(Ftr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Ptr(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Btr(d),w=$tr(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var jtr=Symbol("radix.slottable");function Ftr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===jtr}function $tr(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Btr(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var OKt=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"}),Utr="VisuallyHidden",Htr=H.forwardRef((n,i)=>I.jsx(no.span,{...n,ref:i,style:{...OKt,...n.style}}));Htr.displayName=Utr;var ztr=[" ","Enter","ArrowUp","ArrowDown"],Gtr=[" ","Enter"],ER="Select",[Kae,Yae,qtr]=Wae(ER),[VM]=xw(ER,[qtr,BM]),Jae=BM(),[Vtr,xN]=VM(ER),[Wtr,Ktr]=VM(ER),LKt=n=>{const{__scopeSelect:i,children:s,open:u,defaultOpen:d,onOpenChange:g,value:b,defaultValue:w,onValueChange:E,dir:S,name:x,autoComplete:A,disabled:C,required:R,form:D}=n,L=Jae(i),[B,$]=H.useState(null),[j,P]=H.useState(null),[G,ee]=H.useState(!1),ne=Fz(S),[Q,ie]=G2({prop:u,defaultProp:d??!1,onChange:g,caller:ER}),[he,ge]=G2({prop:b,defaultProp:w,onChange:E,caller:ER}),ce=H.useRef(null),fe=B?D||!!B.closest("form"):!0,[K,pe]=H.useState(new Set),Oe=Array.from(K).map(Se=>Se.props.value).join(";");return I.jsx(rMe,{...L,children:I.jsxs(Vtr,{required:R,scope:i,trigger:B,onTriggerChange:$,valueNode:j,onValueNodeChange:P,valueNodeHasChildren:G,onValueNodeHasChildrenChange:ee,contentId:Bh(),value:he,onValueChange:ge,open:Q,onOpenChange:ie,dir:ne,triggerPointerDownPosRef:ce,disabled:C,children:[I.jsx(Kae.Provider,{scope:i,children:I.jsx(Wtr,{scope:n.__scopeSelect,onNativeOptionAdd:H.useCallback(Se=>{pe(De=>new Set(De).add(Se))},[]),onNativeOptionRemove:H.useCallback(Se=>{pe(De=>{const Ae=new Set(De);return Ae.delete(Se),Ae})},[]),children:s})}),fe?I.jsxs(rYt,{"aria-hidden":!0,required:R,tabIndex:-1,name:x,autoComplete:A,value:he,onChange:Se=>ge(Se.target.value),disabled:C,form:D,children:[he===void 0?I.jsx("option",{value:""}):null,Array.from(K)]},Oe):null]})})};LKt.displayName=ER;var DKt="SelectTrigger",MKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,disabled:u=!1,...d}=n,g=Jae(s),b=xN(DKt,s),w=b.disabled||u,E=hs(i,b.onTriggerChange),S=Yae(s),x=H.useRef("touch"),[A,C,R]=oYt(L=>{const B=S().filter(P=>!P.disabled),$=B.find(P=>P.value===b.value),j=sYt(B,L,$);j!==void 0&&b.onValueChange(j.value)}),D=L=>{w||(b.onOpenChange(!0),R()),L&&(b.triggerPointerDownPosRef.current={x:Math.round(L.pageX),y:Math.round(L.pageY)})};return I.jsx(Eae,{asChild:!0,...g,children:I.jsx(no.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":iYt(b.value)?"":void 0,...d,ref:E,onClick:Lr(d.onClick,L=>{L.currentTarget.focus(),x.current!=="mouse"&&D(L)}),onPointerDown:Lr(d.onPointerDown,L=>{x.current=L.pointerType;const B=L.target;B.hasPointerCapture(L.pointerId)&&B.releasePointerCapture(L.pointerId),L.button===0&&L.ctrlKey===!1&&L.pointerType==="mouse"&&(D(L),L.preventDefault())}),onKeyDown:Lr(d.onKeyDown,L=>{const B=A.current!=="";!(L.ctrlKey||L.altKey||L.metaKey)&&L.key.length===1&&C(L.key),!(B&&L.key===" ")&&ztr.includes(L.key)&&(D(),L.preventDefault())})})})});MKt.displayName=DKt;var PKt="SelectValue",jKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:u,style:d,children:g,placeholder:b="",...w}=n,E=xN(PKt,s),{onValueNodeHasChildrenChange:S}=E,x=g!==void 0,A=hs(i,E.onValueNodeChange);return Hp(()=>{S(x)},[S,x]),I.jsx(no.span,{...w,ref:A,style:{pointerEvents:"none"},children:iYt(E.value)?I.jsx(I.Fragment,{children:b}):g})});jKt.displayName=PKt;var Ytr="SelectIcon",FKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,children:u,...d}=n;return I.jsx(no.span,{"aria-hidden":!0,...d,ref:i,children:u||"▼"})});FKt.displayName=Ytr;var Jtr="SelectPortal",$Kt=n=>I.jsx(Iz,{asChild:!0,...n});$Kt.displayName=Jtr;var SR="SelectContent",BKt=H.forwardRef((n,i)=>{const s=xN(SR,n.__scopeSelect),[u,d]=H.useState();if(Hp(()=>{d(new DocumentFragment)},[]),!s.open){const g=u;return g?xR.createPortal(I.jsx(UKt,{scope:n.__scopeSelect,children:I.jsx(Kae.Slot,{scope:n.__scopeSelect,children:I.jsx("div",{children:n.children})})}),g):null}return I.jsx(HKt,{...n,ref:i})});BKt.displayName=SR;var _v=10,[UKt,kN]=VM(SR),Xtr="SelectContentImpl",Ztr=Mtr("SelectContent.RemoveScroll"),HKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,position:u="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:g,onPointerDownOutside:b,side:w,sideOffset:E,align:S,alignOffset:x,arrowPadding:A,collisionBoundary:C,collisionPadding:R,sticky:D,hideWhenDetached:L,avoidCollisions:B,...$}=n,j=xN(SR,s),[P,G]=H.useState(null),[ee,ne]=H.useState(null),Q=hs(i,vt=>G(vt)),[ie,he]=H.useState(null),[ge,ce]=H.useState(null),fe=Yae(s),[K,pe]=H.useState(!1),Oe=H.useRef(!1);H.useEffect(()=>{if(P)return uae(P)},[P]),sae();const Se=H.useCallback(vt=>{const[Ct,...Ft]=fe().map(Yn=>Yn.ref.current),[On]=Ft.slice(-1),Zn=document.activeElement;for(const Yn of vt)if(Yn===Zn||(Yn==null||Yn.scrollIntoView({block:"nearest"}),Yn===Ct&&ee&&(ee.scrollTop=0),Yn===On&&ee&&(ee.scrollTop=ee.scrollHeight),Yn==null||Yn.focus(),document.activeElement!==Zn))return},[fe,ee]),De=H.useCallback(()=>Se([ie,P]),[Se,ie,P]);H.useEffect(()=>{K&&De()},[K,De]);const{onOpenChange:Ae,triggerPointerDownPosRef:xe}=j;H.useEffect(()=>{if(P){let vt={x:0,y:0};const Ct=On=>{var Zn,Yn;vt={x:Math.abs(Math.round(On.pageX)-(((Zn=xe.current)==null?void 0:Zn.x)??0)),y:Math.abs(Math.round(On.pageY)-(((Yn=xe.current)==null?void 0:Yn.y)??0))}},Ft=On=>{vt.x<=10&&vt.y<=10?On.preventDefault():P.contains(On.target)||Ae(!1),document.removeEventListener("pointermove",Ct),xe.current=null};return xe.current!==null&&(document.addEventListener("pointermove",Ct),document.addEventListener("pointerup",Ft,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ct),document.removeEventListener("pointerup",Ft,{capture:!0})}}},[P,Ae,xe]),H.useEffect(()=>{const vt=()=>Ae(!1);return window.addEventListener("blur",vt),window.addEventListener("resize",vt),()=>{window.removeEventListener("blur",vt),window.removeEventListener("resize",vt)}},[Ae]);const[We,dt]=oYt(vt=>{const Ct=fe().filter(Zn=>!Zn.disabled),Ft=Ct.find(Zn=>Zn.ref.current===document.activeElement),On=sYt(Ct,vt,Ft);On&&setTimeout(()=>On.ref.current.focus())}),Ue=H.useCallback((vt,Ct,Ft)=>{const On=!Oe.current&&!Ft;(j.value!==void 0&&j.value===Ct||On)&&(he(vt),On&&(Oe.current=!0))},[j.value]),bt=H.useCallback(()=>P==null?void 0:P.focus(),[P]),kt=H.useCallback((vt,Ct,Ft)=>{const On=!Oe.current&&!Ft;(j.value!==void 0&&j.value===Ct||On)&&ce(vt)},[j.value]),ht=u==="popper"?JLe:zKt,Xt=ht===JLe?{side:w,sideOffset:E,align:S,alignOffset:x,arrowPadding:A,collisionBoundary:C,collisionPadding:R,sticky:D,hideWhenDetached:L,avoidCollisions:B}:{};return I.jsx(UKt,{scope:s,content:P,viewport:ee,onViewportChange:ne,itemRefCallback:Ue,selectedItem:ie,onItemLeave:bt,itemTextRefCallback:kt,focusSelectedItem:De,selectedItemText:ge,position:u,isPositioned:K,searchRef:We,children:I.jsx(Rz,{as:Ztr,allowPinchZoom:!0,children:I.jsx(Cz,{asChild:!0,trapped:j.open,onMountAutoFocus:vt=>{vt.preventDefault()},onUnmountAutoFocus:Lr(d,vt=>{var Ct;(Ct=j.trigger)==null||Ct.focus({preventScroll:!0}),vt.preventDefault()}),children:I.jsx(Nz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:vt=>vt.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:I.jsx(ht,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:vt=>vt.preventDefault(),...$,...Xt,onPlaced:()=>pe(!0),ref:Q,style:{display:"flex",flexDirection:"column",outline:"none",...$.style},onKeyDown:Lr($.onKeyDown,vt=>{const Ct=vt.ctrlKey||vt.altKey||vt.metaKey;if(vt.key==="Tab"&&vt.preventDefault(),!Ct&&vt.key.length===1&&dt(vt.key),["ArrowUp","ArrowDown","Home","End"].includes(vt.key)){let On=fe().filter(Zn=>!Zn.disabled).map(Zn=>Zn.ref.current);if(["ArrowUp","End"].includes(vt.key)&&(On=On.slice().reverse()),["ArrowUp","ArrowDown"].includes(vt.key)){const Zn=vt.target,Yn=On.indexOf(Zn);On=On.slice(Yn+1)}setTimeout(()=>Se(On)),vt.preventDefault()}})})})})})})});HKt.displayName=Xtr;var Qtr="SelectItemAlignedPosition",zKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onPlaced:u,...d}=n,g=xN(SR,s),b=kN(SR,s),[w,E]=H.useState(null),[S,x]=H.useState(null),A=hs(i,Q=>x(Q)),C=Yae(s),R=H.useRef(!1),D=H.useRef(!0),{viewport:L,selectedItem:B,selectedItemText:$,focusSelectedItem:j}=b,P=H.useCallback(()=>{if(g.trigger&&g.valueNode&&w&&S&&L&&B&&$){const Q=g.trigger.getBoundingClientRect(),ie=S.getBoundingClientRect(),he=g.valueNode.getBoundingClientRect(),ge=$.getBoundingClientRect();if(g.dir!=="rtl"){const Zn=ge.left-ie.left,Yn=he.left-Zn,vr=Q.left-Yn,Ui=Q.width+vr,Qr=Math.max(Ui,ie.width),Hi=window.innerWidth-_v,ai=mse(Yn,[_v,Math.max(_v,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.left=ai+"px"}else{const Zn=ie.right-ge.right,Yn=window.innerWidth-he.right-Zn,vr=window.innerWidth-Q.right-Yn,Ui=Q.width+vr,Qr=Math.max(Ui,ie.width),Hi=window.innerWidth-_v,ai=mse(Yn,[_v,Math.max(_v,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.right=ai+"px"}const ce=C(),fe=window.innerHeight-_v*2,K=L.scrollHeight,pe=window.getComputedStyle(S),Oe=parseInt(pe.borderTopWidth,10),Se=parseInt(pe.paddingTop,10),De=parseInt(pe.borderBottomWidth,10),Ae=parseInt(pe.paddingBottom,10),xe=Oe+Se+K+Ae+De,We=Math.min(B.offsetHeight*5,xe),dt=window.getComputedStyle(L),Ue=parseInt(dt.paddingTop,10),bt=parseInt(dt.paddingBottom,10),kt=Q.top+Q.height/2-_v,ht=fe-kt,Xt=B.offsetHeight/2,vt=B.offsetTop+Xt,Ct=Oe+Se+vt,Ft=xe-Ct;if(Ct<=kt){const Zn=ce.length>0&&B===ce[ce.length-1].ref.current;w.style.bottom="0px";const Yn=S.clientHeight-L.offsetTop-L.offsetHeight,vr=Math.max(ht,Xt+(Zn?bt:0)+Yn+De),Ui=Ct+vr;w.style.height=Ui+"px"}else{const Zn=ce.length>0&&B===ce[0].ref.current;w.style.top="0px";const vr=Math.max(kt,Oe+L.offsetTop+(Zn?Ue:0)+Xt)+Ft;w.style.height=vr+"px",L.scrollTop=Ct-kt+L.offsetTop}w.style.margin=`${_v}px 0`,w.style.minHeight=We+"px",w.style.maxHeight=fe+"px",u==null||u(),requestAnimationFrame(()=>R.current=!0)}},[C,g.trigger,g.valueNode,w,S,L,B,$,g.dir,u]);Hp(()=>P(),[P]);const[G,ee]=H.useState();Hp(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);const ne=H.useCallback(Q=>{Q&&D.current===!0&&(P(),j==null||j(),D.current=!1)},[P,j]);return I.jsx(tnr,{scope:s,contentWrapper:w,shouldExpandOnScrollRef:R,onScrollButtonChange:ne,children:I.jsx("div",{ref:E,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:G},children:I.jsx(no.div,{...d,ref:A,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});zKt.displayName=Qtr;var enr="SelectPopperPosition",JLe=H.forwardRef((n,i)=>{const{__scopeSelect:s,align:u="start",collisionPadding:d=_v,...g}=n,b=Jae(s);return I.jsx(iMe,{...b,...g,ref:i,align:u,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)"}})});JLe.displayName=enr;var[tnr,VMe]=VM(SR,{}),XLe="SelectViewport",GKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,nonce:u,...d}=n,g=kN(XLe,s),b=VMe(XLe,s),w=hs(i,g.onViewportChange),E=H.useRef(0);return I.jsxs(I.Fragment,{children:[I.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:u}),I.jsx(Kae.Slot,{scope:s,children:I.jsx(no.div,{"data-radix-select-viewport":"",role:"presentation",...d,ref:w,style:{position:"relative",flex:1,overflow:"hidden auto",...d.style},onScroll:Lr(d.onScroll,S=>{const x=S.currentTarget,{contentWrapper:A,shouldExpandOnScrollRef:C}=b;if(C!=null&&C.current&&A){const R=Math.abs(E.current-x.scrollTop);if(R>0){const D=window.innerHeight-_v*2,L=parseFloat(A.style.minHeight),B=parseFloat(A.style.height),$=Math.max(L,B);if($0?G:0,A.style.justifyContent="flex-end")}}}E.current=x.scrollTop})})})]})});GKt.displayName=XLe;var qKt="SelectGroup",[nnr,rnr]=VM(qKt),inr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...u}=n,d=Bh();return I.jsx(nnr,{scope:s,id:d,children:I.jsx(no.div,{role:"group","aria-labelledby":d,...u,ref:i})})});inr.displayName=qKt;var VKt="SelectLabel",WKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...u}=n,d=rnr(VKt,s);return I.jsx(no.div,{id:d.id,...u,ref:i})});WKt.displayName=VKt;var wse="SelectItem",[onr,KKt]=VM(wse),YKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,value:u,disabled:d=!1,textValue:g,...b}=n,w=xN(wse,s),E=kN(wse,s),S=w.value===u,[x,A]=H.useState(g??""),[C,R]=H.useState(!1),D=hs(i,j=>{var P;return(P=E.itemRefCallback)==null?void 0:P.call(E,j,u,d)}),L=Bh(),B=H.useRef("touch"),$=()=>{d||(w.onValueChange(u),w.onOpenChange(!1))};if(u==="")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 I.jsx(onr,{scope:s,value:u,disabled:d,textId:L,isSelected:S,onItemTextChange:H.useCallback(j=>{A(P=>P||((j==null?void 0:j.textContent)??"").trim())},[]),children:I.jsx(Kae.ItemSlot,{scope:s,value:u,disabled:d,textValue:x,children:I.jsx(no.div,{role:"option","aria-labelledby":L,"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:D,onFocus:Lr(b.onFocus,()=>R(!0)),onBlur:Lr(b.onBlur,()=>R(!1)),onClick:Lr(b.onClick,()=>{B.current!=="mouse"&&$()}),onPointerUp:Lr(b.onPointerUp,()=>{B.current==="mouse"&&$()}),onPointerDown:Lr(b.onPointerDown,j=>{B.current=j.pointerType}),onPointerMove:Lr(b.onPointerMove,j=>{var P;B.current=j.pointerType,d?(P=E.onItemLeave)==null||P.call(E):B.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Lr(b.onPointerLeave,j=>{var P;j.currentTarget===document.activeElement&&((P=E.onItemLeave)==null||P.call(E))}),onKeyDown:Lr(b.onKeyDown,j=>{var G;((G=E.searchRef)==null?void 0:G.current)!==""&&j.key===" "||(Gtr.includes(j.key)&&$(),j.key===" "&&j.preventDefault())})})})})});YKt.displayName=wse;var iH="SelectItemText",JKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:u,style:d,...g}=n,b=xN(iH,s),w=kN(iH,s),E=KKt(iH,s),S=Ktr(iH,s),[x,A]=H.useState(null),C=hs(i,$=>A($),E.onItemTextChange,$=>{var j;return(j=w.itemTextRefCallback)==null?void 0:j.call(w,$,E.value,E.disabled)}),R=x==null?void 0:x.textContent,D=H.useMemo(()=>I.jsx("option",{value:E.value,disabled:E.disabled,children:R},E.value),[E.disabled,E.value,R]),{onNativeOptionAdd:L,onNativeOptionRemove:B}=S;return Hp(()=>(L(D),()=>B(D)),[L,B,D]),I.jsxs(I.Fragment,{children:[I.jsx(no.span,{id:E.textId,...g,ref:C}),E.isSelected&&b.valueNode&&!b.valueNodeHasChildren?xR.createPortal(g.children,b.valueNode):null]})});JKt.displayName=iH;var XKt="SelectItemIndicator",ZKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...u}=n;return KKt(XKt,s).isSelected?I.jsx(no.span,{"aria-hidden":!0,...u,ref:i}):null});ZKt.displayName=XKt;var ZLe="SelectScrollUpButton",QKt=H.forwardRef((n,i)=>{const s=kN(ZLe,n.__scopeSelect),u=VMe(ZLe,n.__scopeSelect),[d,g]=H.useState(!1),b=hs(i,u.onScrollButtonChange);return Hp(()=>{if(s.viewport&&s.isPositioned){let w=function(){const S=E.scrollTop>0;g(S)};const E=s.viewport;return w(),E.addEventListener("scroll",w),()=>E.removeEventListener("scroll",w)}},[s.viewport,s.isPositioned]),d?I.jsx(tYt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop-E.offsetHeight)}}):null});QKt.displayName=ZLe;var QLe="SelectScrollDownButton",eYt=H.forwardRef((n,i)=>{const s=kN(QLe,n.__scopeSelect),u=VMe(QLe,n.__scopeSelect),[d,g]=H.useState(!1),b=hs(i,u.onScrollButtonChange);return Hp(()=>{if(s.viewport&&s.isPositioned){let w=function(){const S=E.scrollHeight-E.clientHeight,x=Math.ceil(E.scrollTop)E.removeEventListener("scroll",w)}},[s.viewport,s.isPositioned]),d?I.jsx(tYt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop+E.offsetHeight)}}):null});eYt.displayName=QLe;var tYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onAutoScroll:u,...d}=n,g=kN("SelectScrollButton",s),b=H.useRef(null),w=Yae(s),E=H.useCallback(()=>{b.current!==null&&(window.clearInterval(b.current),b.current=null)},[]);return H.useEffect(()=>()=>E(),[E]),Hp(()=>{var x;const S=w().find(A=>A.ref.current===document.activeElement);(x=S==null?void 0:S.ref.current)==null||x.scrollIntoView({block:"nearest"})},[w]),I.jsx(no.div,{"aria-hidden":!0,...d,ref:i,style:{flexShrink:0,...d.style},onPointerDown:Lr(d.onPointerDown,()=>{b.current===null&&(b.current=window.setInterval(u,50))}),onPointerMove:Lr(d.onPointerMove,()=>{var S;(S=g.onItemLeave)==null||S.call(g),b.current===null&&(b.current=window.setInterval(u,50))}),onPointerLeave:Lr(d.onPointerLeave,()=>{E()})})}),snr="SelectSeparator",nYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...u}=n;return I.jsx(no.div,{"aria-hidden":!0,...u,ref:i})});nYt.displayName=snr;var eDe="SelectArrow",anr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...u}=n,d=Jae(s),g=xN(eDe,s),b=kN(eDe,s);return g.open&&b.position==="popper"?I.jsx(oMe,{...d,...u,ref:i}):null});anr.displayName=eDe;var unr="SelectBubbleInput",rYt=H.forwardRef(({__scopeSelect:n,value:i,...s},u)=>{const d=H.useRef(null),g=hs(u,d),b=Gae(i);return H.useEffect(()=>{const w=d.current;if(!w)return;const E=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(E,"value").set;if(b!==i&&x){const A=new Event("change",{bubbles:!0});x.call(w,i),w.dispatchEvent(A)}},[b,i]),I.jsx(no.select,{...s,style:{...OKt,...s.style},ref:g,defaultValue:i})});rYt.displayName=unr;function iYt(n){return n===""||n===void 0}function oYt(n){const i=q2(n),s=H.useRef(""),u=H.useRef(0),d=H.useCallback(b=>{const w=s.current+b;i(w),function E(S){s.current=S,window.clearTimeout(u.current),S!==""&&(u.current=window.setTimeout(()=>E(""),1e3))}(w)},[i]),g=H.useCallback(()=>{s.current="",window.clearTimeout(u.current)},[]);return H.useEffect(()=>()=>window.clearTimeout(u.current),[]),[s,d,g]}function sYt(n,i,s){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=s?n.indexOf(s):-1;let b=cnr(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==s));const E=b.find(S=>S.textValue.toLowerCase().startsWith(d.toLowerCase()));return E!==s?E:void 0}function cnr(n,i){return n.map((s,u)=>n[(i+u)%n.length])}var lnr=LKt,aYt=MKt,dnr=jKt,fnr=FKt,hnr=$Kt,uYt=BKt,pnr=GKt,cYt=WKt,lYt=YKt,gnr=JKt,bnr=ZKt,dYt=QKt,fYt=eYt,hYt=nYt;const zp=lnr,Gp=dnr,zh=H.forwardRef(({className:n,children:i,...s},u)=>I.jsxs(aYt,{ref:u,className:Sr("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),...s,children:[i,I.jsx(fnr,{asChild:!0,children:I.jsx(nae,{className:"h-4 w-4 opacity-50"})})]}));zh.displayName=aYt.displayName;const pYt=H.forwardRef(({className:n,...i},s)=>I.jsx(dYt,{ref:s,className:Sr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(v8n,{className:"h-4 w-4"})}));pYt.displayName=dYt.displayName;const gYt=H.forwardRef(({className:n,...i},s)=>I.jsx(fYt,{ref:s,className:Sr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(nae,{className:"h-4 w-4"})}));gYt.displayName=fYt.displayName;const Gh=H.forwardRef(({className:n,children:i,position:s="popper",container:u,...d},g)=>I.jsx(hnr,{container:u,children:I.jsxs(uYt,{ref:g,className:Sr("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",s==="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:s,...d,children:[I.jsx(pYt,{}),I.jsx(pnr,{className:Sr("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),I.jsx(gYt,{})]})}));Gh.displayName=uYt.displayName;const mnr=H.forwardRef(({className:n,...i},s)=>I.jsx(cYt,{ref:s,className:Sr("px-2 py-1.5 font-semibold text-sm",n),...i}));mnr.displayName=cYt.displayName;const to=H.forwardRef(({className:n,children:i,...s},u)=>I.jsxs(lYt,{ref:u,className:Sr("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),...s,children:[I.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(bnr,{children:I.jsx(oN,{className:"h-4 w-4"})})}),I.jsx(gnr,{children:i})]}));to.displayName=lYt.displayName;const wnr=H.forwardRef(({className:n,...i},s)=>I.jsx(hYt,{ref:s,className:Sr("-mx-1 my-1 h-px bg-muted",n),...i}));wnr.displayName=hYt.displayName;const ynr=["single","restart","queued","parallel"],vnr=["silent","warning","critical"],n$t=new Set(["queued","parallel"]);function Enr(){const{t:n}=ps("common"),i=ko(C=>C.flowName),s=ko(C=>C.flowDescription),u=ko(C=>C.setFlowName),d=ko(C=>C.setFlowDescription),g=ko(C=>C.flowMetadata),b=ko(C=>C.setFlowMetadata),w=g.mode??"single",E=n$t.has(w),S=C=>{const R=C,D={mode:R};n$t.has(R)||(D.max=void 0,D.max_exceeded=void 0),b(D)},x=C=>{const R=Number.parseInt(C,10);C===""||Number.isNaN(R)?b({max:void 0}):R>0&&b({max:R})},A=C=>{b(C==="none"?{max_exceeded:void 0}:{max_exceeded:C})};return I.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[I.jsx("h3",{className:"mt-1.5 font-semibold text-foreground text-sm",children:n("automationSettings.title")}),I.jsx(Lo,{label:n("labels.automationName"),children:I.jsx(Na,{type:"text",value:i,onChange:C=>u(C.target.value),placeholder:n("placeholders.enterAutomationName")})}),I.jsx(Lo,{label:n("automationSettings.description"),children:I.jsx($v,{value:s,onChange:C=>d(C.target.value),placeholder:n("placeholders.describeAutomation"),rows:3})}),I.jsx(jz,{}),I.jsxs(Lo,{label:n("automationSettings.mode"),description:n("automationSettings.modeDescription"),children:[I.jsxs(zp,{value:w,onValueChange:S,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsx(Gh,{children:ynr.map(C=>I.jsx(to,{value:C,children:n(`automationSettings.modes.${C}`)},C))})]}),I.jsx("p",{className:"text-muted-foreground text-xs",children:n(`automationSettings.modeDescriptions.${w}`)})]}),E&&I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:n("automationSettings.max"),description:n("automationSettings.maxDescription"),children:I.jsx(Na,{type:"number",min:1,value:g.max??"",onChange:C=>x(C.target.value),placeholder:"10"})}),g.max!=null&&I.jsx(Lo,{label:n("automationSettings.maxExceeded"),description:n("automationSettings.maxExceededDescription"),children:I.jsxs(zp,{value:g.max_exceeded??"none",onValueChange:A,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"none",children:n("placeholders.none")}),vnr.map(C=>I.jsx(to,{value:C,children:n(`automationSettings.maxExceededOptions.${C}`)},C))]})]})})]})]})}function bYt({options:n,value:i,onChange:s,placeholder:u,className:d,buttonClassName:g,disabled:b=!1,renderOption:w,renderValue:E,searchKeys:S=["label","value"],fuzzyOptions:x={}}){const{t:A}=ps(["common"]),[C,R]=H.useState(!1),{query:D,setQuery:L,filteredItems:B}=sVt(n,{keys:S,threshold:.4,includeScore:!0,ignoreLocation:!0,includeMatches:!0,minMatchCharLength:1,...x}),$=n.find(P=>P.value===i),j=P=>{L(P)};return I.jsxs(aMe,{open:C,onOpenChange:R,children:[I.jsx(Jqt,{asChild:!0,children:I.jsxs(ki,{variant:"outline",role:"combobox","aria-expanded":C,className:Sr("flex w-full justify-between",g),disabled:b,children:[$?E?E($):$.label:u||A("combobox.select"),I.jsx(hGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(Tae,{className:Sr("w-[286px] p-0",d),children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{placeholder:u||A("combobox.select"),className:"h-9",value:D,onValueChange:j}),I.jsxs(pae,{children:[I.jsx(gae,{children:A("combobox.noOptions")}),I.jsx(tz,{children:B.map(P=>I.jsxs(nz,{value:P.value,onSelect:G=>{s(G===i?"":G),R(!1),L("")},children:[w?w(P):P.label,I.jsx(oN,{className:Sr("ml-auto h-4 w-4",i===P.value?"opacity-100":"opacity-0")})]},P.value))})]})]})})]})}function tDe({values:n,onChange:i,placeholder:s="Add ID...",className:u}){const[d,g]=H.useState(""),b=()=>{const S=d.trim();S&&!n.includes(S)&&(i([...n,S]),g(""))},w=S=>{i(n.filter(x=>x!==S))},E=S=>{S.key==="Enter"&&(S.preventDefault(),b())};return I.jsxs("div",{className:Sr("space-y-1",u),children:[I.jsxs("div",{className:"flex gap-1",children:[I.jsx(Na,{value:d,onChange:S=>g(S.target.value),onKeyDown:E,placeholder:s,className:"flex-1 font-mono text-xs"}),I.jsx(ki,{type:"button",size:"icon",variant:"outline",onClick:b,disabled:!d.trim(),children:I.jsx(iae,{className:"h-4 w-4"})})]}),n.length>0&&I.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(S=>I.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,I.jsx(oae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>w(S)})]},S))})]})}const Snr={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 Tnr(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 Snr[i]||{label:i,color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"}}function Anr(n){return n.attributes.friendly_name||n.entity_id}function yse({value:n,onChange:i,entities:s,placeholder:u="Select entity...",className:d,domainFilter:g}){const{entities:b,getDeviceNameForEntity:w,getAreaNameForEntity:E}=pb(),S=s??b,x=H.useMemo(()=>{if(!g)return S;const B=Array.isArray(g)?g:[g];return S.filter($=>{const j=$.entity_id.split(".")[0];return B.includes(j)})},[S,g]),A=H.useMemo(()=>x.map(B=>{const $=Tnr(B.entity_id);return{value:B.entity_id,label:Anr(B),domainLabel:$.label,domainColor:$.color,deviceLabel:w(B.entity_id)??void 0,areaLabel:E(B.entity_id)??void 0}}),[x,w,E]),C=Array.isArray(n)?n[0]:n,R=x.find(B=>B.entity_id===C),D=C&&!R,L=B=>{i(B)};return I.jsxs("div",{className:Sr("relative",d),children:[I.jsx(bYt,{options:A,value:C||"",onChange:L,placeholder:u,buttonClassName:Sr(!C&&"text-muted-foreground"),disabled:A.length===0,searchKeys:["label","value","deviceLabel","areaLabel"],fuzzyOptions:{threshold:.3,minMatchCharLength:2},renderOption:B=>I.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[I.jsx("span",{children:B.label}),I.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[I.jsx("span",{className:Sr("rounded px-1.5 py-0.5 font-medium text-xs",B.domainColor),children:B.domainLabel}),B.deviceLabel&&I.jsx("span",{className:"truncate text-muted-foreground text-xs",children:B.deviceLabel}),B.areaLabel&&I.jsx("span",{className:"ml-auto shrink-0 text-muted-foreground text-xs",children:B.areaLabel})]})]}),renderValue:B=>B?I.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[I.jsx("span",{className:Sr("rounded px-1.5 py-0.5 font-medium text-xs",B.domainColor),children:B.domainLabel}),I.jsx("span",{className:"truncate",children:B.label})]}):null}),D&&I.jsx("div",{className:"mt-1 truncate font-mono text-red-600",children:C})]})}function Xae({value:n,onChange:i,entities:s,placeholder:u="Select entities...",className:d}){const g=w=>{n.includes(w)||i([...n,w])},b=w=>{i(n.filter(E=>E!==w))};return I.jsxs("div",{className:Sr("space-y-1",d),children:[I.jsx(yse,{value:"",onChange:g,entities:s,placeholder:u,className:"w-full"}),I.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(w=>I.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,I.jsx(oae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>b(w)})]},w))})]})}function WMe(n,i,s){const d=n.data[i];return d??s}function jh(n,i,s=""){const u=WMe(n,i,s);if(typeof u=="string")return u;if(typeof u=="object"&&u!==null&&!Array.isArray(u)){const d=u;if(typeof d.value=="string")return d.value}return s}function N5(n,i,s={}){const u=WMe(n,i,s);return typeof u=="object"&&u!==null&&!Array.isArray(u)?u:s}function _nr({response:n,responseVariable:i,showResponseVariable:s,setShowResponseVariable:u,onChange:d,handleResponseVariableChange:g}){const{t:b}=ps(["common","nodes"]),w=I.jsxs(I.Fragment,{children:[I.jsx(Na,{type:"text",value:i??"",onChange:g,placeholder:b("nodes:responseVariableField.placeholder")}),i!==void 0&&VVt(i)&&I.jsxs(dA,{variant:"destructive",className:"mt-2 border-0 px-0",children:[I.jsx(CKt,{children:b("labels.warning")}),I.jsx(fA,{children:b("nodes:responseVariableField.currentNodeWarning")})]})]});return n.optional?I.jsxs(Lo,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.optionalDescription"),children:[I.jsxs("div",{className:"mb-2 flex items-center gap-3",children:[I.jsx(J2,{checked:s,onCheckedChange:E=>{u(E),E||d("response_variable",void 0)},id:"response-variable-switch"}),I.jsx("label",{htmlFor:"response-variable-switch",className:"cursor-pointer select-none text-sm",children:b("nodes:responseVariableField.useResponseVariable")})]}),s&&w]}):I.jsx(Lo,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.requiredDescription"),children:w})}function xnr({serviceFields:n,currentData:i,onChange:s}){const{t:u}=ps(["common","nodes"]);return Object.keys(n).length===0?null:I.jsxs("div",{className:"mt-3 flex flex-col gap-3 border-t pt-3",children:[I.jsx("h4",{className:"mb-3 font-semibold text-muted-foreground text-xs",children:u("nodes:serviceDataFields.heading")}),Object.entries(n).map(([d,g])=>{var A;const b=g.selector||{},w=Object.keys(b)[0],E=b[w]||{},S=i[d],x=g.name||d.replace(/_/g," ").replace(/\b\w/g,C=>C.toUpperCase());if(w==="number"){const C=E;return I.jsx(Lo,{label:`${x}${C.unit_of_measurement?` (${C.unit_of_measurement})`:""}`,required:g.required,description:g.description,children:I.jsx(Na,{type:"number",value:S??"",onChange:R=>s(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 I.jsx(Lo,{label:x,required:g.required,description:g.description,children:I.jsxs(zp,{value:String(S===""?"__NONE__":S??"__NONE__"),onValueChange:R=>s(d,R==="__NONE__"?"":R),children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:u("placeholders.none")})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"__NONE__",children:u("placeholders.none")}),(A=C.options)==null?void 0:A.map(R=>I.jsx(to,{value:R,children:R},R))]})]})},d)}if(w==="boolean")return I.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[I.jsx("input",{type:"checkbox",checked:S??!1,onChange:C=>s(d,C.target.checked),className:"rounded"}),I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[x,g.required&&I.jsx("span",{className:"ml-0.5 text-destructive",children:u("labels.requiredAsterisk")})]})]},d);if(w==="entity"){if(E.multiple===!0){const D=Array.isArray(S)?S:S?[String(S)]:[];return I.jsx(Lo,{label:x,required:g.required,description:g.description,children:I.jsx(Xae,{value:D,onChange:L=>s(d,L),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return I.jsx(Lo,{label:x,required:g.required,description:g.description,children:I.jsx(yse,{value:String(S??""),onChange:D=>s(d,D),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return I.jsx(Lo,{label:x,required:g.required,description:g.description,children:I.jsx(Na,{type:"text",value:S??"",onChange:C=>s(d,C.target.value),placeholder:g.example!==void 0?String(g.example):""})},d)})]})}const knr=new Set(["homeassistant","group"]);function Nnr(n,i){if(!n||!n.includes("."))return i;const s=n.split(".")[0];if(knr.has(s))return i;const u=i.filter(d=>d.entity_id.startsWith(`${s}.`));return u.length>0?u:i}function Cnr({node:n,onChange:i,entities:s}){const{t:u}=ps(["nodes"]),{getAllServices:d,getServiceDefinition:g}=pb(),{getFieldError:b}=gb(n.id),w=jh(n,"service"),E=jh(n,"event"),S=n.data,x=typeof S.stop=="string"?S.stop:void 0,A=S.error===!0,C=g(w),R=(C==null?void 0:C.fields)||{},D=N5(n,"data",{}),L=jh(n,"response_variable"),[B,$]=H.useState(!!L),j=x!==void 0?"stop":E?"event":"service";H.useEffect(()=>{$(!!L)},[L]);const P=De=>{De==="stop"?(i("service",void 0),i("target",void 0),i("data",void 0),i("event",void 0),i("event_data",void 0),i("stop",""),i("error",void 0)):De==="event"?(i("service",void 0),i("target",void 0),i("data",void 0),i("stop",void 0),i("error",void 0)):(i("event",void 0),i("event_data",void 0),i("stop",void 0),i("error",void 0))},G=De=>{i("service",De),i("data",void 0)},ee=De=>{const xe={...N5(n,"target",{}),entity_id:De.length>0?De:void 0};xe.entity_id||delete xe.entity_id,i("target",Object.keys(xe).length>0?xe:void 0)},ne=De=>{const xe={...N5(n,"target",{}),device_id:De.length>0?De:void 0};xe.device_id||delete xe.device_id,i("target",Object.keys(xe).length>0?xe:void 0)},Q=De=>{const xe={...N5(n,"target",{}),area_id:De.length>0?De:void 0};xe.area_id||delete xe.area_id,i("target",Object.keys(xe).length>0?xe:void 0)},ie=(De,Ae)=>{const xe={...D,[De]:Ae===""?void 0:Ae},We=Object.fromEntries(Object.entries(xe).filter(([,dt])=>dt!==void 0&&dt!==""));i("data",Object.keys(We).length>0?We:void 0)},he=De=>{i("response_variable",De.target.value===""?void 0:De.target.value)},ge=N5(n,"target",{}),ce=De=>De?Array.isArray(De)?De:[De]:[],fe=ce(ge.entity_id),K=ce(ge.device_id),pe=ce(ge.area_id),Oe=K.length>0,Se=pe.length>0;return I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:u("nodes:actions.actionTypeLabel"),required:!0,children:I.jsxs(zp,{value:j,onValueChange:P,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"service",children:u("nodes:actions.actionTypes.service")}),I.jsx(to,{value:"event",children:u("nodes:actions.actionTypes.event")}),I.jsx(to,{value:"stop",children:u("nodes:actions.actionTypes.stop")})]})]})}),j==="stop"?I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:u("nodes:actions.stopMessageLabel"),children:I.jsx(Na,{type:"text",value:x??"",onChange:De=>i("stop",De.target.value),placeholder:u("nodes:actions.stopMessagePlaceholder")})}),I.jsx(Lo,{label:u("nodes:actions.markAsError"),children:I.jsx(J2,{checked:A,onCheckedChange:De=>i("error",De||void 0)})})]}):j==="event"?I.jsx(I.Fragment,{children:I.jsxs(Lo,{label:u("nodes:actions.eventNameLabel"),required:!0,children:[I.jsx(Na,{type:"text",value:E,onChange:De=>i("event",De.target.value||void 0),placeholder:u("nodes:actions.eventNamePlaceholder")}),I.jsx(H2,{message:b("event")})]})}):I.jsxs(I.Fragment,{children:[I.jsxs(Lo,{label:u("nodes:actions.actionLabel"),required:!0,children:[I.jsx(bYt,{options:d().map(({domain:De,service:Ae})=>({value:`${De}.${Ae}`,label:`${De}.${Ae}`})),value:w,onChange:G,placeholder:u("nodes:actions.selectAction")}),I.jsx(H2,{message:b("service")})]}),((C==null?void 0:C.target)||fe.length>0)&&I.jsx(Lo,{label:u("nodes:actions.targetEntities"),children:I.jsx(Xae,{value:fe,onChange:ee,entities:Nnr(w,s),placeholder:u("nodes:actions.selectTargetEntities")})}),(Oe||(C==null?void 0:C.target))&&I.jsx(Lo,{label:u("nodes:actions.targetDevices"),description:u("nodes:actions.targetDevicesDescription"),children:I.jsx(tDe,{values:K,onChange:ne,placeholder:u("nodes:actions.addDeviceId")})}),(Se||(C==null?void 0:C.target))&&I.jsx(Lo,{label:u("nodes:actions.targetAreas"),description:u("nodes:actions.targetAreasDescription"),children:I.jsx(tDe,{values:pe,onChange:Q,placeholder:u("nodes:actions.addAreaId")})}),I.jsx(xnr,{serviceFields:R,currentData:D,onChange:ie}),(C==null?void 0:C.response)&&I.jsx(_nr,{response:C.response,responseVariable:L,showResponseVariable:B,setShowResponseVariable:$,onChange:i,handleResponseVariableChange:he})]})]})}function mYt({value:n,onChange:i}){const{t:s}=ps(["common","nodes"]),u=typeof n=="string",d=!u&&typeof n=="object"&&n!==null?n:{},[g,b]=H.useState(u),w=S=>{if(b(S),S){const x=d.hours??0,A=d.minutes??0,C=d.seconds??0,R=d.milliseconds??0,D=[x,A,C].map(B=>B.toString().padStart(2,"0")).join(":"),L=R?`${D}.${R}`:D;i(L)}else if(u){const x=/^([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(?:\.(\d{1,3}))?$/.exec(n);if(x){const[,A,C,R,D]=x;i({hours:Number(A),minutes:Number(C),seconds:Number(R),...D?{milliseconds:Number(D)}:{}})}else i({})}},E=(S,x)=>{const A=x===""?void 0:Number(x),C={...d,[S]:Number.isNaN(A)?void 0:A};Object.keys(C).forEach(R=>{const D=C[R];D==null&&delete C[R]}),i(C)};return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx("span",{className:"text-muted-foreground text-xs",children:s("nodes:durationField.string")}),I.jsx(J2,{checked:g,onCheckedChange:w}),I.jsx("span",{className:"text-muted-foreground text-xs",children:s("nodes:durationField.object")})]}),g?I.jsx(Na,{type:"text",value:u?n:"",onChange:S=>i(S.target.value),placeholder:s("nodes:durationField.placeholder")}):I.jsxs("div",{className:"flex gap-2",children:[I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.hours")}),I.jsx(Na,{type:"number",min:0,value:d.hours??"",onChange:S=>E("hours",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.minutes")}),I.jsx(Na,{type:"number",min:0,value:d.minutes??"",onChange:S=>E("minutes",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.seconds")}),I.jsx(Na,{type:"number",min:0,value:d.seconds??"",onChange:S=>E("seconds",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.milliseconds")}),I.jsx(Na,{type:"number",min:0,value:d.milliseconds??"",onChange:S=>E("milliseconds",S.target.value),placeholder:"0",className:"mt-1"})]})]})]})}function wYt({label:n,description:i,value:s,onChange:u}){const{t:d}=ps(["common","nodes"]);return I.jsx(Lo,{label:n??d("nodes:durationField.label"),description:i||d("nodes:durationField.description"),children:I.jsx(mYt,{value:s,onChange:u})})}var VOe="rovingFocusGroup.onEntryFocus",Inr={bubbles:!1,cancelable:!0},$z="RovingFocusGroup",[nDe,yYt,Rnr]=Wae($z),[Onr,Zae]=xw($z,[Rnr]),[Lnr,Dnr]=Onr($z),vYt=H.forwardRef((n,i)=>I.jsx(nDe.Provider,{scope:n.__scopeRovingFocusGroup,children:I.jsx(nDe.Slot,{scope:n.__scopeRovingFocusGroup,children:I.jsx(Mnr,{...n,ref:i})})}));vYt.displayName=$z;var Mnr=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,orientation:u,loop:d=!1,dir:g,currentTabStopId:b,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:E,onEntryFocus:S,preventScrollOnEntryFocus:x=!1,...A}=n,C=H.useRef(null),R=hs(i,C),D=Fz(g),[L,B]=G2({prop:b,defaultProp:w??null,onChange:E,caller:$z}),[$,j]=H.useState(!1),P=q2(S),G=yYt(s),ee=H.useRef(!1),[ne,Q]=H.useState(0);return H.useEffect(()=>{const ie=C.current;if(ie)return ie.addEventListener(VOe,P),()=>ie.removeEventListener(VOe,P)},[P]),I.jsx(Lnr,{scope:s,orientation:u,dir:D,loop:d,currentTabStopId:L,onItemFocus:H.useCallback(ie=>B(ie),[B]),onItemShiftTab:H.useCallback(()=>j(!0),[]),onFocusableItemAdd:H.useCallback(()=>Q(ie=>ie+1),[]),onFocusableItemRemove:H.useCallback(()=>Q(ie=>ie-1),[]),children:I.jsx(no.div,{tabIndex:$||ne===0?-1:0,"data-orientation":u,...A,ref:R,style:{outline:"none",...n.style},onMouseDown:Lr(n.onMouseDown,()=>{ee.current=!0}),onFocus:Lr(n.onFocus,ie=>{const he=!ee.current;if(ie.target===ie.currentTarget&&he&&!$){const ge=new CustomEvent(VOe,Inr);if(ie.currentTarget.dispatchEvent(ge),!ge.defaultPrevented){const ce=G().filter(Se=>Se.focusable),fe=ce.find(Se=>Se.active),K=ce.find(Se=>Se.id===L),Oe=[fe,K,...ce].filter(Boolean).map(Se=>Se.ref.current);TYt(Oe,x)}}ee.current=!1}),onBlur:Lr(n.onBlur,()=>j(!1))})})}),EYt="RovingFocusGroupItem",SYt=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,focusable:u=!0,active:d=!1,tabStopId:g,children:b,...w}=n,E=Bh(),S=g||E,x=Dnr(EYt,s),A=x.currentTabStopId===S,C=yYt(s),{onFocusableItemAdd:R,onFocusableItemRemove:D,currentTabStopId:L}=x;return H.useEffect(()=>{if(u)return R(),()=>D()},[u,R,D]),I.jsx(nDe.ItemSlot,{scope:s,id:S,focusable:u,active:d,children:I.jsx(no.span,{tabIndex:A?0:-1,"data-orientation":x.orientation,...w,ref:i,onMouseDown:Lr(n.onMouseDown,B=>{u?x.onItemFocus(S):B.preventDefault()}),onFocus:Lr(n.onFocus,()=>x.onItemFocus(S)),onKeyDown:Lr(n.onKeyDown,B=>{if(B.key==="Tab"&&B.shiftKey){x.onItemShiftTab();return}if(B.target!==B.currentTarget)return;const $=Fnr(B,x.orientation,x.dir);if($!==void 0){if(B.metaKey||B.ctrlKey||B.altKey||B.shiftKey)return;B.preventDefault();let P=C().filter(G=>G.focusable).map(G=>G.ref.current);if($==="last")P.reverse();else if($==="prev"||$==="next"){$==="prev"&&P.reverse();const G=P.indexOf(B.currentTarget);P=x.loop?$nr(P,G+1):P.slice(G+1)}setTimeout(()=>TYt(P))}}),children:typeof b=="function"?b({isCurrentTabStop:A,hasTabStop:L!=null}):b})})});SYt.displayName=EYt;var Pnr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jnr(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Fnr(n,i,s){const u=jnr(n.key,s);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(u))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(u)))return Pnr[u]}function TYt(n,i=!1){const s=document.activeElement;for(const u of n)if(u===s||(u.focus({preventScroll:i}),document.activeElement!==s))return}function $nr(n,i){return n.map((s,u)=>n[(i+u)%n.length])}var AYt=vYt,_Yt=SYt;function Bnr(n){const i=Unr(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(znr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Unr(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=qnr(d),w=Gnr(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Hnr=Symbol("radix.slottable");function znr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Hnr}function Gnr(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function qnr(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var rDe=["Enter"," "],Vnr=["ArrowDown","PageUp","Home"],xYt=["ArrowUp","PageDown","End"],Wnr=[...Vnr,...xYt],Knr={ltr:[...rDe,"ArrowRight"],rtl:[...rDe,"ArrowLeft"]},Ynr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bz="Menu",[dz,Jnr,Xnr]=Wae(Bz),[DR,kYt]=xw(Bz,[Xnr,BM,Zae]),Qae=BM(),NYt=Zae(),[Znr,MR]=DR(Bz),[Qnr,Uz]=DR(Bz),CYt=n=>{const{__scopeMenu:i,open:s=!1,children:u,dir:d,onOpenChange:g,modal:b=!0}=n,w=Qae(i),[E,S]=H.useState(null),x=H.useRef(!1),A=q2(g),C=Fz(d);return H.useEffect(()=>{const R=()=>{x.current=!0,document.addEventListener("pointerdown",D,{capture:!0,once:!0}),document.addEventListener("pointermove",D,{capture:!0,once:!0})},D=()=>x.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",D,{capture:!0}),document.removeEventListener("pointermove",D,{capture:!0})}},[]),I.jsx(rMe,{...w,children:I.jsx(Znr,{scope:i,open:s,onOpenChange:A,content:E,onContentChange:S,children:I.jsx(Qnr,{scope:i,onClose:H.useCallback(()=>A(!1),[A]),isUsingKeyboardRef:x,dir:C,modal:b,children:u})})})};CYt.displayName=Bz;var err="MenuAnchor",KMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,...u}=n,d=Qae(s);return I.jsx(Eae,{...d,...u,ref:i})});KMe.displayName=err;var YMe="MenuPortal",[trr,IYt]=DR(YMe,{forceMount:void 0}),RYt=n=>{const{__scopeMenu:i,forceMount:s,children:u,container:d}=n,g=MR(YMe,i);return I.jsx(trr,{scope:i,forceMount:s,children:I.jsx(kw,{present:s||g.open,children:I.jsx(Iz,{asChild:!0,container:d,children:u})})})};RYt.displayName=YMe;var Sw="MenuContent",[nrr,JMe]=DR(Sw),OYt=H.forwardRef((n,i)=>{const s=IYt(Sw,n.__scopeMenu),{forceMount:u=s.forceMount,...d}=n,g=MR(Sw,n.__scopeMenu),b=Uz(Sw,n.__scopeMenu);return I.jsx(dz.Provider,{scope:n.__scopeMenu,children:I.jsx(kw,{present:u||g.open,children:I.jsx(dz.Slot,{scope:n.__scopeMenu,children:b.modal?I.jsx(rrr,{...d,ref:i}):I.jsx(irr,{...d,ref:i})})})})}),rrr=H.forwardRef((n,i)=>{const s=MR(Sw,n.__scopeMenu),u=H.useRef(null),d=hs(i,u);return H.useEffect(()=>{const g=u.current;if(g)return uae(g)},[]),I.jsx(XMe,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:Lr(n.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),irr=H.forwardRef((n,i)=>{const s=MR(Sw,n.__scopeMenu);return I.jsx(XMe,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),orr=Bnr("MenuContent.ScrollLock"),XMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,loop:u=!1,trapFocus:d,onOpenAutoFocus:g,onCloseAutoFocus:b,disableOutsidePointerEvents:w,onEntryFocus:E,onEscapeKeyDown:S,onPointerDownOutside:x,onFocusOutside:A,onInteractOutside:C,onDismiss:R,disableOutsideScroll:D,...L}=n,B=MR(Sw,s),$=Uz(Sw,s),j=Qae(s),P=NYt(s),G=Jnr(s),[ee,ne]=H.useState(null),Q=H.useRef(null),ie=hs(i,Q,B.onContentChange),he=H.useRef(0),ge=H.useRef(""),ce=H.useRef(0),fe=H.useRef(null),K=H.useRef("right"),pe=H.useRef(0),Oe=D?Rz:H.Fragment,Se=D?{as:orr,allowPinchZoom:!0}:void 0,De=xe=>{var vt,Ct;const We=ge.current+xe,dt=G().filter(Ft=>!Ft.disabled),Ue=document.activeElement,bt=(vt=dt.find(Ft=>Ft.ref.current===Ue))==null?void 0:vt.textValue,kt=dt.map(Ft=>Ft.textValue),ht=mrr(kt,We,bt),Xt=(Ct=dt.find(Ft=>Ft.textValue===ht))==null?void 0:Ct.ref.current;(function Ft(On){ge.current=On,window.clearTimeout(he.current),On!==""&&(he.current=window.setTimeout(()=>Ft(""),1e3))})(We),Xt&&setTimeout(()=>Xt.focus())};H.useEffect(()=>()=>window.clearTimeout(he.current),[]),sae();const Ae=H.useCallback(xe=>{var dt,Ue;return K.current===((dt=fe.current)==null?void 0:dt.side)&&yrr(xe,(Ue=fe.current)==null?void 0:Ue.area)},[]);return I.jsx(nrr,{scope:s,searchRef:ge,onItemEnter:H.useCallback(xe=>{Ae(xe)&&xe.preventDefault()},[Ae]),onItemLeave:H.useCallback(xe=>{var We;Ae(xe)||((We=Q.current)==null||We.focus(),ne(null))},[Ae]),onTriggerLeave:H.useCallback(xe=>{Ae(xe)&&xe.preventDefault()},[Ae]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:H.useCallback(xe=>{fe.current=xe},[]),children:I.jsx(Oe,{...Se,children:I.jsx(Cz,{asChild:!0,trapped:d,onMountAutoFocus:Lr(g,xe=>{var We;xe.preventDefault(),(We=Q.current)==null||We.focus({preventScroll:!0})}),onUnmountAutoFocus:b,children:I.jsx(Nz,{asChild:!0,disableOutsidePointerEvents:w,onEscapeKeyDown:S,onPointerDownOutside:x,onFocusOutside:A,onInteractOutside:C,onDismiss:R,children:I.jsx(AYt,{asChild:!0,...P,dir:$.dir,orientation:"vertical",loop:u,currentTabStopId:ee,onCurrentTabStopIdChange:ne,onEntryFocus:Lr(E,xe=>{$.isUsingKeyboardRef.current||xe.preventDefault()}),preventScrollOnEntryFocus:!0,children:I.jsx(iMe,{role:"menu","aria-orientation":"vertical","data-state":KYt(B.open),"data-radix-menu-content":"",dir:$.dir,...j,...L,ref:ie,style:{outline:"none",...L.style},onKeyDown:Lr(L.onKeyDown,xe=>{const dt=xe.target.closest("[data-radix-menu-content]")===xe.currentTarget,Ue=xe.ctrlKey||xe.altKey||xe.metaKey,bt=xe.key.length===1;dt&&(xe.key==="Tab"&&xe.preventDefault(),!Ue&&bt&&De(xe.key));const kt=Q.current;if(xe.target!==kt||!Wnr.includes(xe.key))return;xe.preventDefault();const Xt=G().filter(vt=>!vt.disabled).map(vt=>vt.ref.current);xYt.includes(xe.key)&&Xt.reverse(),grr(Xt)}),onBlur:Lr(n.onBlur,xe=>{xe.currentTarget.contains(xe.target)||(window.clearTimeout(he.current),ge.current="")}),onPointerMove:Lr(n.onPointerMove,fz(xe=>{const We=xe.target,dt=pe.current!==xe.clientX;if(xe.currentTarget.contains(We)&&dt){const Ue=xe.clientX>pe.current?"right":"left";K.current=Ue,pe.current=xe.clientX}}))})})})})})})});OYt.displayName=Sw;var srr="MenuGroup",ZMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,...u}=n;return I.jsx(no.div,{role:"group",...u,ref:i})});ZMe.displayName=srr;var arr="MenuLabel",LYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...u}=n;return I.jsx(no.div,{...u,ref:i})});LYt.displayName=arr;var vse="MenuItem",r$t="menu.itemSelect",eue=H.forwardRef((n,i)=>{const{disabled:s=!1,onSelect:u,...d}=n,g=H.useRef(null),b=Uz(vse,n.__scopeMenu),w=JMe(vse,n.__scopeMenu),E=hs(i,g),S=H.useRef(!1),x=()=>{const A=g.current;if(!s&&A){const C=new CustomEvent(r$t,{bubbles:!0,cancelable:!0});A.addEventListener(r$t,R=>u==null?void 0:u(R),{once:!0}),AGt(A,C),C.defaultPrevented?S.current=!1:b.onClose()}};return I.jsx(DYt,{...d,ref:E,disabled:s,onClick:Lr(n.onClick,x),onPointerDown:A=>{var C;(C=n.onPointerDown)==null||C.call(n,A),S.current=!0},onPointerUp:Lr(n.onPointerUp,A=>{var C;S.current||(C=A.currentTarget)==null||C.click()}),onKeyDown:Lr(n.onKeyDown,A=>{const C=w.searchRef.current!=="";s||C&&A.key===" "||rDe.includes(A.key)&&(A.currentTarget.click(),A.preventDefault())})})});eue.displayName=vse;var DYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,disabled:u=!1,textValue:d,...g}=n,b=JMe(vse,s),w=NYt(s),E=H.useRef(null),S=hs(i,E),[x,A]=H.useState(!1),[C,R]=H.useState("");return H.useEffect(()=>{const D=E.current;D&&R((D.textContent??"").trim())},[g.children]),I.jsx(dz.ItemSlot,{scope:s,disabled:u,textValue:d??C,children:I.jsx(_Yt,{asChild:!0,...w,focusable:!u,children:I.jsx(no.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...g,ref:S,onPointerMove:Lr(n.onPointerMove,fz(D=>{u?b.onItemLeave(D):(b.onItemEnter(D),D.defaultPrevented||D.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Lr(n.onPointerLeave,fz(D=>b.onItemLeave(D))),onFocus:Lr(n.onFocus,()=>A(!0)),onBlur:Lr(n.onBlur,()=>A(!1))})})})}),urr="MenuCheckboxItem",MYt=H.forwardRef((n,i)=>{const{checked:s=!1,onCheckedChange:u,...d}=n;return I.jsx(BYt,{scope:n.__scopeMenu,checked:s,children:I.jsx(eue,{role:"menuitemcheckbox","aria-checked":Ese(s)?"mixed":s,...d,ref:i,"data-state":e9e(s),onSelect:Lr(d.onSelect,()=>u==null?void 0:u(Ese(s)?!0:!s),{checkForDefaultPrevented:!1})})})});MYt.displayName=urr;var PYt="MenuRadioGroup",[crr,lrr]=DR(PYt,{value:void 0,onValueChange:()=>{}}),jYt=H.forwardRef((n,i)=>{const{value:s,onValueChange:u,...d}=n,g=q2(u);return I.jsx(crr,{scope:n.__scopeMenu,value:s,onValueChange:g,children:I.jsx(ZMe,{...d,ref:i})})});jYt.displayName=PYt;var FYt="MenuRadioItem",$Yt=H.forwardRef((n,i)=>{const{value:s,...u}=n,d=lrr(FYt,n.__scopeMenu),g=s===d.value;return I.jsx(BYt,{scope:n.__scopeMenu,checked:g,children:I.jsx(eue,{role:"menuitemradio","aria-checked":g,...u,ref:i,"data-state":e9e(g),onSelect:Lr(u.onSelect,()=>{var b;return(b=d.onValueChange)==null?void 0:b.call(d,s)},{checkForDefaultPrevented:!1})})})});$Yt.displayName=FYt;var QMe="MenuItemIndicator",[BYt,drr]=DR(QMe,{checked:!1}),UYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,forceMount:u,...d}=n,g=drr(QMe,s);return I.jsx(kw,{present:u||Ese(g.checked)||g.checked===!0,children:I.jsx(no.span,{...d,ref:i,"data-state":e9e(g.checked)})})});UYt.displayName=QMe;var frr="MenuSeparator",HYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...u}=n;return I.jsx(no.div,{role:"separator","aria-orientation":"horizontal",...u,ref:i})});HYt.displayName=frr;var hrr="MenuArrow",zYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...u}=n,d=Qae(s);return I.jsx(oMe,{...d,...u,ref:i})});zYt.displayName=hrr;var prr="MenuSub",[e1r,GYt]=DR(prr),oH="MenuSubTrigger",qYt=H.forwardRef((n,i)=>{const s=MR(oH,n.__scopeMenu),u=Uz(oH,n.__scopeMenu),d=GYt(oH,n.__scopeMenu),g=JMe(oH,n.__scopeMenu),b=H.useRef(null),{pointerGraceTimerRef:w,onPointerGraceIntentChange:E}=g,S={__scopeMenu:n.__scopeMenu},x=H.useCallback(()=>{b.current&&window.clearTimeout(b.current),b.current=null},[]);return H.useEffect(()=>x,[x]),H.useEffect(()=>{const A=w.current;return()=>{window.clearTimeout(A),E(null)}},[w,E]),I.jsx(KMe,{asChild:!0,...S,children:I.jsx(DYt,{id:d.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":d.contentId,"data-state":KYt(s.open),...n,ref:zg(i,d.onTriggerChange),onClick:A=>{var C;(C=n.onClick)==null||C.call(n,A),!(n.disabled||A.defaultPrevented)&&(A.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:Lr(n.onPointerMove,fz(A=>{g.onItemEnter(A),!A.defaultPrevented&&!n.disabled&&!s.open&&!b.current&&(g.onPointerGraceIntentChange(null),b.current=window.setTimeout(()=>{s.onOpenChange(!0),x()},100))})),onPointerLeave:Lr(n.onPointerLeave,fz(A=>{var R,D;x();const C=(R=s.content)==null?void 0:R.getBoundingClientRect();if(C){const L=(D=s.content)==null?void 0:D.dataset.side,B=L==="right",$=B?-5:5,j=C[B?"left":"right"],P=C[B?"right":"left"];g.onPointerGraceIntentChange({area:[{x:A.clientX+$,y:A.clientY},{x:j,y:C.top},{x:P,y:C.top},{x:P,y:C.bottom},{x:j,y:C.bottom}],side:L}),window.clearTimeout(w.current),w.current=window.setTimeout(()=>g.onPointerGraceIntentChange(null),300)}else{if(g.onTriggerLeave(A),A.defaultPrevented)return;g.onPointerGraceIntentChange(null)}})),onKeyDown:Lr(n.onKeyDown,A=>{var R;const C=g.searchRef.current!=="";n.disabled||C&&A.key===" "||Knr[u.dir].includes(A.key)&&(s.onOpenChange(!0),(R=s.content)==null||R.focus(),A.preventDefault())})})})});qYt.displayName=oH;var VYt="MenuSubContent",WYt=H.forwardRef((n,i)=>{const s=IYt(Sw,n.__scopeMenu),{forceMount:u=s.forceMount,...d}=n,g=MR(Sw,n.__scopeMenu),b=Uz(Sw,n.__scopeMenu),w=GYt(VYt,n.__scopeMenu),E=H.useRef(null),S=hs(i,E);return I.jsx(dz.Provider,{scope:n.__scopeMenu,children:I.jsx(kw,{present:u||g.open,children:I.jsx(dz.Slot,{scope:n.__scopeMenu,children:I.jsx(XMe,{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:x=>{var A;b.isUsingKeyboardRef.current&&((A=E.current)==null||A.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:Lr(n.onFocusOutside,x=>{x.target!==w.trigger&&g.onOpenChange(!1)}),onEscapeKeyDown:Lr(n.onEscapeKeyDown,x=>{b.onClose(),x.preventDefault()}),onKeyDown:Lr(n.onKeyDown,x=>{var R;const A=x.currentTarget.contains(x.target),C=Ynr[b.dir].includes(x.key);A&&C&&(g.onOpenChange(!1),(R=w.trigger)==null||R.focus(),x.preventDefault())})})})})})});WYt.displayName=VYt;function KYt(n){return n?"open":"closed"}function Ese(n){return n==="indeterminate"}function e9e(n){return Ese(n)?"indeterminate":n?"checked":"unchecked"}function grr(n){const i=document.activeElement;for(const s of n)if(s===i||(s.focus(),document.activeElement!==i))return}function brr(n,i){return n.map((s,u)=>n[(i+u)%n.length])}function mrr(n,i,s){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=s?n.indexOf(s):-1;let b=brr(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==s));const E=b.find(S=>S.toLowerCase().startsWith(d.toLowerCase()));return E!==s?E:void 0}function wrr(n,i){const{x:s,y:u}=n;let d=!1;for(let g=0,b=i.length-1;gu!=C>u&&s<(A-S)*(u-x)/(C-x)+S&&(d=!d)}return d}function yrr(n,i){if(!i)return!1;const s={x:n.clientX,y:n.clientY};return wrr(s,i)}function fz(n){return i=>i.pointerType==="mouse"?n(i):void 0}var vrr=CYt,Err=KMe,Srr=RYt,Trr=OYt,Arr=ZMe,_rr=LYt,xrr=eue,krr=MYt,Nrr=jYt,Crr=$Yt,Irr=UYt,Rrr=HYt,Orr=zYt,Lrr=qYt,Drr=WYt,tue="DropdownMenu",[Mrr]=xw(tue,[kYt]),Wg=kYt(),[Prr,YYt]=Mrr(tue),JYt=n=>{const{__scopeDropdownMenu:i,children:s,dir:u,open:d,defaultOpen:g,onOpenChange:b,modal:w=!0}=n,E=Wg(i),S=H.useRef(null),[x,A]=G2({prop:d,defaultProp:g??!1,onChange:b,caller:tue});return I.jsx(Prr,{scope:i,triggerId:Bh(),triggerRef:S,contentId:Bh(),open:x,onOpenChange:A,onOpenToggle:H.useCallback(()=>A(C=>!C),[A]),modal:w,children:I.jsx(vrr,{...E,open:x,onOpenChange:A,dir:u,modal:w,children:s})})};JYt.displayName=tue;var XYt="DropdownMenuTrigger",ZYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,disabled:u=!1,...d}=n,g=YYt(XYt,s),b=Wg(s);return I.jsx(Err,{asChild:!0,...b,children:I.jsx(no.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":u?"":void 0,disabled:u,...d,ref:zg(i,g.triggerRef),onPointerDown:Lr(n.onPointerDown,w=>{!u&&w.button===0&&w.ctrlKey===!1&&(g.onOpenToggle(),g.open||w.preventDefault())}),onKeyDown:Lr(n.onKeyDown,w=>{u||(["Enter"," "].includes(w.key)&&g.onOpenToggle(),w.key==="ArrowDown"&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(w.key)&&w.preventDefault())})})})});ZYt.displayName=XYt;var jrr="DropdownMenuPortal",QYt=n=>{const{__scopeDropdownMenu:i,...s}=n,u=Wg(i);return I.jsx(Srr,{...u,...s})};QYt.displayName=jrr;var eJt="DropdownMenuContent",tJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=YYt(eJt,s),g=Wg(s),b=H.useRef(!1);return I.jsx(Trr,{id:d.contentId,"aria-labelledby":d.triggerId,...g,...u,ref:i,onCloseAutoFocus:Lr(n.onCloseAutoFocus,w=>{var E;b.current||(E=d.triggerRef.current)==null||E.focus(),b.current=!1,w.preventDefault()}),onInteractOutside:Lr(n.onInteractOutside,w=>{const E=w.detail.originalEvent,S=E.button===0&&E.ctrlKey===!0,x=E.button===2||S;(!d.modal||x)&&(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)"}})});tJt.displayName=eJt;var Frr="DropdownMenuGroup",$rr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Arr,{...d,...u,ref:i})});$rr.displayName=Frr;var Brr="DropdownMenuLabel",nJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(_rr,{...d,...u,ref:i})});nJt.displayName=Brr;var Urr="DropdownMenuItem",rJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(xrr,{...d,...u,ref:i})});rJt.displayName=Urr;var Hrr="DropdownMenuCheckboxItem",iJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(krr,{...d,...u,ref:i})});iJt.displayName=Hrr;var zrr="DropdownMenuRadioGroup",Grr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Nrr,{...d,...u,ref:i})});Grr.displayName=zrr;var qrr="DropdownMenuRadioItem",oJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Crr,{...d,...u,ref:i})});oJt.displayName=qrr;var Vrr="DropdownMenuItemIndicator",sJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Irr,{...d,...u,ref:i})});sJt.displayName=Vrr;var Wrr="DropdownMenuSeparator",aJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Rrr,{...d,...u,ref:i})});aJt.displayName=Wrr;var Krr="DropdownMenuArrow",Yrr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Orr,{...d,...u,ref:i})});Yrr.displayName=Krr;var Jrr="DropdownMenuSubTrigger",uJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Lrr,{...d,...u,ref:i})});uJt.displayName=Jrr;var Xrr="DropdownMenuSubContent",cJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...u}=n,d=Wg(s);return I.jsx(Drr,{...d,...u,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)"}})});cJt.displayName=Xrr;var Zrr=JYt,Qrr=ZYt,eir=QYt,lJt=tJt,dJt=nJt,fJt=rJt,hJt=iJt,pJt=oJt,gJt=sJt,bJt=aJt,mJt=uJt,wJt=cJt;const yJt=Zrr,vJt=Qrr,tir=H.forwardRef(({className:n,inset:i,children:s,...u},d)=>I.jsxs(mJt,{ref:d,className:Sr("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),...u,children:[s,I.jsx(w8n,{className:"ml-auto"})]}));tir.displayName=mJt.displayName;const nir=H.forwardRef(({className:n,...i},s)=>I.jsx(wJt,{ref:s,className:Sr("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}));nir.displayName=wJt.displayName;const t9e=H.forwardRef(({className:n,sideOffset:i=4,container:s,...u},d)=>I.jsx(eir,{container:s,children:I.jsx(lJt,{ref:d,sideOffset:i,className:Sr("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),...u})}));t9e.displayName=lJt.displayName;const iDe=H.forwardRef(({className:n,inset:i,...s},u)=>I.jsx(fJt,{ref:u,className:Sr("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),...s}));iDe.displayName=fJt.displayName;const EJt=H.forwardRef(({className:n,children:i,checked:s,...u},d)=>I.jsxs(hJt,{ref:d,className:Sr("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:s,...u,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(gJt,{children:I.jsx(oN,{className:"h-4 w-4"})})}),i]}));EJt.displayName=hJt.displayName;const rir=H.forwardRef(({className:n,children:i,...s},u)=>I.jsxs(pJt,{ref:u,className:Sr("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),...s,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(gJt,{children:I.jsx(k8n,{className:"h-2 w-2 fill-current"})})}),i]}));rir.displayName=pJt.displayName;const iir=H.forwardRef(({className:n,inset:i,...s},u)=>I.jsx(dJt,{ref:u,className:Sr("px-2 py-1.5 font-semibold text-sm",i&&"pl-8",n),...s}));iir.displayName=dJt.displayName;const oir=H.forwardRef(({className:n,...i},s)=>I.jsx(bJt,{ref:s,className:Sr("-mx-1 my-1 h-px bg-muted",n),...i}));oir.displayName=bJt.displayName;function WM({field:n,value:i,onChange:s,entities:u,domain:d,translations:g={},error:b}){const{t:w}=ps(["common"]),E=n.name,S=n.required??!1;let x=E,A="",C="";if("label"in n)x=n.label,A=n.description||"",C=n.placeholder||"";else if(d){const P=`component.${d}.device_automation.extra_fields.${E}`,G=`component.${d}.device_automation.extra_fields_descriptions.${E}`;x=g[P]||E.split("_").map(ee=>ee.charAt(0).toUpperCase()+ee.slice(1)).join(" "),A=g[G]||"",console.log(`Field "${E}" in domain "${d}":`),console.log(` Label key: ${P} = ${g[P]||"(not found)"}`),console.log(` Desc key: ${G} = ${g[G]||"(not found)"}`),console.log(` Final label: ${x}`),console.log(` Final description: ${A}`)}else x=E.split("_").map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join(" "),console.log(`Field "${E}" with no domain - using formatted name: ${x}`);let R=null,D={};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],D=n.selector[R]||{})}const L=typeof i=="string"?i:String(i??""),B=typeof i=="number"?i:Number(i)||void 0,$=typeof i=="boolean"?i:!!i,j=()=>{switch(R){case"text":{if("multiple"in n&&n.multiple){const G=Array.isArray(i)?i:typeof i=="string"&&i?[i]:[];return I.jsx(tDe,{values:G,onChange:s,placeholder:C||"Add value..."})}return I.jsx(Na,{type:"text",value:L,onChange:G=>s(G.target.value),placeholder:C,required:S})}case"number":return I.jsx(Na,{type:"number",value:B??"",onChange:P=>s(P.target.value?Number(P.target.value):void 0),placeholder:C,required:S});case"boolean":return I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:$,onCheckedChange:s}),I.jsx("span",{className:"text-muted-foreground text-sm",children:w($?"dynamicField.enabled":"dynamicField.disabled")})]});case"select":{let P=[];if("options"in n&&n.options){const ee=n.options;ee.length>0&&(Array.isArray(ee[0])?P=ee.map(([ne,Q])=>({value:ne,label:Q})):P=ee)}else D.options&&Array.isArray(D.options)&&(P=D.options);if("multiple"in n&&n.multiple||D.multiple===!0){const ee=Array.isArray(i)?i:i?[i]:[],ne=()=>{var Q;return ee.length===0?C||w("dynamicField.selectItems"):ee.length===1?((Q=P.find(ie=>ie.value===ee[0]))==null?void 0:Q.label)||ee[0]:w("dynamicField.itemsSelected",{count:ee.length})};return I.jsxs(yJt,{children:[I.jsx(vJt,{asChild:!0,children:I.jsxs(ki,{variant:"outline",className:"w-full justify-between font-normal",children:[I.jsx("span",{className:ee.length===0?"text-muted-foreground":"",children:ne()}),I.jsx(nae,{className:"ml-2 h-4 w-4 opacity-50"})]})}),I.jsx(t9e,{className:"w-[var(--radix-dropdown-menu-trigger-width)]",children:P.map(Q=>{const ie=ee.includes(Q.value);return I.jsx(EJt,{checked:ie,onCheckedChange:he=>{s(he?[...ee,Q.value]:ee.filter(ge=>ge!==Q.value))},children:Q.label},Q.value)})})]})}return I.jsxs(zp,{value:L,onValueChange:s,children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:C||"Select..."})}),I.jsx(Gh,{children:P.map(ee=>I.jsx(to,{value:ee.value,children:ee.label},ee.value))})]})}case"entity":{if("multiple"in n&&n.multiple||D.multiple===!0){const G=Array.isArray(i)?i:typeof i=="string"&&i?i.split(",").map(ee=>ee.trim()):[];return I.jsx(Xae,{value:G,onChange:s,entities:u,placeholder:C||w("dynamicField.selectEntities")})}return I.jsx(yse,{value:L,onChange:s,entities:u,placeholder:C||w("dynamicField.selectEntity")})}case"zone":return I.jsx(yse,{value:L,onChange:s,entities:u,domainFilter:"zone",placeholder:C||w("dynamicField.selectZone")});case"template":return I.jsx($v,{value:L,onChange:P=>s(P.target.value),placeholder:C||w("placeholders.enterTemplate"),className:"font-mono text-sm",rows:4,required:S});case"duration":return I.jsx(mYt,{value:i??"",onChange:s});case"object":return I.jsx($v,{value:typeof i=="object"?JSON.stringify(i,null,2):L,onChange:P=>{try{s(JSON.parse(P.target.value))}catch{s(P.target.value)}},placeholder:C||w("placeholders.jsonExample"),className:"font-mono text-sm",rows:4,required:S});case"time":return I.jsx(Na,{type:"time",value:L,onChange:P=>s(P.target.value),required:S});case"date":return I.jsx(Na,{type:"date",value:L,onChange:P=>s(P.target.value),required:S});default:return I.jsx(Na,{type:"text",value:L,onChange:P=>s(P.target.value),placeholder:C||w("dynamicField.enterValue",{name:E}),required:S})}};return I.jsxs("div",{className:"space-y-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[x,S&&I.jsx("span",{className:"ml-1 text-destructive",children:w("labels.requiredAsterisk")})]}),j(),I.jsx(H2,{message:b}),A&&I.jsx("p",{className:"text-muted-foreground text-xs",children:A})]})}const sir={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:"zone",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 n9e(n){return sir[n]||[]}function SJt(n){const i=n9e(n),s={condition:n};for(const u of i)u.default!==void 0&&(s[u.name]=u.default);return r9e(n)&&(s.conditions=[]),s}function r9e(n){return n==="and"||n==="or"||n==="not"}const air=[{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 uir({cond:n,onUpdate:i,entities:s}){const u=n.condition||"state",d=n9e(u);return d.length===0?null:I.jsx("div",{className:"space-y-2",children:d.map(g=>I.jsx(WM,{field:g,value:n[g.name],onChange:b=>i({...n,[g.name]:b}),entities:s},g.name))})}function cir({cond:n,onUpdate:i,onRemove:s,entities:u,depth:d}){const g=n.condition||"state",b=r9e(g),{t:w}=ps(["common","nodes","panels"]),E=S=>{i(SJt(S))};return I.jsxs("div",{className:Sr("space-y-3 rounded-md border bg-card p-3",d>0&&"bg-muted/30"),children:[I.jsxs("div",{className:"flex items-center justify-between gap-2",children:[I.jsxs(zp,{value:n.condition||"state",onValueChange:E,children:[I.jsx(zh,{className:"w-full max-w-[180px]",children:I.jsx(Gp,{})}),I.jsx(Gh,{children:air.map(S=>I.jsx(to,{value:S.value,children:w(S.labelKey)},S.value))})]}),I.jsx(ki,{size:"icon",variant:"ghost",onClick:s,className:"h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive",children:I.jsx(PM,{className:"h-4 w-4"})})]}),b?I.jsx(TJt,{conditions:n.conditions||[],onChange:S=>i({...n,conditions:S}),parentType:n.condition,depth:d+1}):I.jsx(uir,{cond:n,onUpdate:i,entities:u})]})}const TJt=H.memo(function({conditions:i,onChange:s,depth:u=0}){const{hass:d}=pb(),g=d?Object.values(d.states):[],{t:b}=ps(["common","nodes","panels"]),w=()=>{s([...i,{condition:"state",entity_id:"",state:""}])},E=x=>{s(i.filter((A,C)=>C!==x))},S=(x,A)=>{s(i.map((C,R)=>R===x?A:C))};return I.jsxs("div",{className:Sr("space-y-2",u>0&&"border-muted border-l-2 pl-2"),children:[i.length===0?I.jsx("p",{className:"py-2 text-muted-foreground text-xs italic",children:b("panels:conditionGroupEditor.noConditions")}):i.map((x,A)=>I.jsx(cir,{cond:x,onUpdate:C=>S(A,C),onRemove:()=>E(A),entities:g,depth:u},A)),I.jsxs(ki,{size:"sm",variant:"outline",onClick:w,className:"w-full",children:[I.jsx(iae,{className:"mr-1 h-4 w-4"}),b("panels:conditionGroupEditor.addCondition")]})]})});function AJt({value:n,onChange:i,label:s="",required:u=!1,placeholder:d=""}){const{t:g}=ps(["common"]),{hass:b}=pb(),[w,E]=H.useState(n);H.useEffect(()=>{E(n)},[n]);const S=(b==null?void 0:b.devices)??{},x=Object.keys(S).length>0,A=n&&x&&!S[n],C=()=>{if(!n)return;const R=S[n];return R?R.name_by_user||R.name||R.id:n};return I.jsx(Lo,{label:s||g("labels.device"),required:u,children:x?I.jsxs(zp,{value:n,onValueChange:i,children:[I.jsx(zh,{className:A?"font-mono text-red-600":void 0,children:I.jsx(Gp,{placeholder:d||g("placeholders.selectDevice"),children:C()})}),I.jsx(Gh,{children:Object.values(S).map(R=>I.jsx(to,{value:R.id,children:R.name_by_user||R.name||R.id},R.id))})]}):I.jsxs(I.Fragment,{children:[I.jsx(Na,{type:"text",value:w,onChange:R=>{E(R.target.value),i(R.target.value)},placeholder:g("deviceSelector.enterId")}),I.jsx("p",{className:"text-muted-foreground text-xs",children:g("deviceSelector.noDevices")})]})})}function lir({node:n,onChange:i}){const s=jh(n,"device_id"),u=jh(n,"domain"),d=jh(n,"type");return I.jsxs(I.Fragment,{children:[I.jsx(AJt,{value:s,onChange:g=>i("device_id",g),label:"Device",required:!0,placeholder:"Select device..."}),I.jsx(Lo,{label:"Domain",required:!0,description:"Device integration domain",children:I.jsx(Na,{type:"text",value:u,onChange:g=>i("domain",g.target.value),placeholder:"e.g., binary_sensor, sensor"})}),I.jsx(Lo,{label:"Type",required:!0,description:"Device condition type",children:I.jsx(Na,{type:"text",value:d,onChange:g=>i("type",g.target.value),placeholder:"e.g., button_short_press"})})]})}function dir({node:n,onChange:i,entities:s}){const{t:u}=ps(["common","nodes"]),{getFieldError:d}=gb(n.id),g=jh(n,"condition","state"),b=n.data,w=Array.isArray(b.conditions)&&b.conditions.length>0,E=r9e(g),S=A=>{const C=SJt(A);for(const[R,D]of Object.entries(C))i(R,D)},x=()=>g==="device"?I.jsx(lir,{node:n,onChange:i}):E?null:n9e(g).map(C=>I.jsx(WM,{field:C,value:b[C.name],onChange:R=>i(C.name,R),entities:s,error:d(C.name)},C.name));return I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:u("nodes:conditions.conditionLabel"),required:!0,children:I.jsxs(zp,{value:g,onValueChange:S,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"state",children:u("nodes:conditions.types.state")}),I.jsx(to,{value:"numeric_state",children:u("nodes:conditions.types.numeric_state")}),I.jsx(to,{value:"template",children:u("nodes:conditions.types.template")}),I.jsx(to,{value:"time",children:u("nodes:conditions.types.time")}),I.jsx(to,{value:"sun",children:u("nodes:conditions.types.sun")}),I.jsx(to,{value:"zone",children:u("nodes:conditions.types.zone")}),I.jsx(to,{value:"device",children:u("nodes:conditions.types.device")}),I.jsx(to,{value:"trigger",children:u("nodes:conditions.types.trigger")}),I.jsx(to,{value:"and",children:u("nodes:conditions.types.and")}),I.jsx(to,{value:"or",children:u("nodes:conditions.types.or")}),I.jsx(to,{value:"not",children:u("nodes:conditions.types.not")})]})]})}),x(),(E||w)&&I.jsx(Lo,{label:u("nodes:conditions.nestedConditions"),children:I.jsx(TJt,{conditions:b.conditions||[],onChange:A=>i("conditions",A),parentType:E?g:"and"})})]})}function fir({node:n,onChange:i}){const{getFieldError:s}=gb(n.id);return I.jsxs(I.Fragment,{children:[I.jsx(wYt,{label:"Delay",value:n.data.delay,onChange:u=>i("delay",u)}),I.jsx(H2,{message:s("delay")})]})}function hir({node:n,onChange:i}){const{t:s}=ps(["nodes"]),{getFieldError:u}=gb(n.id),d=N5(n,"variables",{}),g=Object.entries(d),b=()=>{const x=Object.keys(d);let A="variable",C=1;for(;x.includes(A);)A=`variable_${C}`,C++;i("variables",{...d,[A]:""})},w=(x,A)=>{if(x===A)return;const C={};for(const[R,D]of Object.entries(d))R===x?C[A]=D:C[R]=D;i("variables",C)},E=(x,A)=>{i("variables",{...d,[x]:A})},S=x=>{const A={...d};delete A[x],i("variables",A)};return I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:u("variables")}),g.length===0?I.jsx("p",{className:"text-muted-foreground text-sm",children:s("nodes:setVariablesFields.empty")}):g.map(([x,A],C)=>I.jsxs("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:[I.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[I.jsx("span",{className:"font-medium text-muted-foreground text-xs",children:s("nodes:setVariablesFields.variableLabel",{index:C+1})}),I.jsx(ki,{variant:"ghost",size:"sm",onClick:()=>S(x),className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(PM,{className:"h-3.5 w-3.5"})})]}),I.jsxs("div",{className:"space-y-3",children:[I.jsx(Lo,{label:s("nodes:setVariablesFields.name"),children:I.jsx(Na,{value:x,onChange:R=>w(x,R.target.value),placeholder:s("nodes:setVariablesFields.namePlaceholder"),className:"font-mono text-sm"})}),I.jsx(Lo,{label:s("nodes:setVariablesFields.value"),description:s("nodes:setVariablesFields.valueDescription"),children:I.jsx($v,{value:String(A??""),onChange:R=>E(x,R.target.value),placeholder:s("nodes:setVariablesFields.valuePlaceholder"),className:"font-mono text-sm"})})]})]},`${x}-${C}`)),I.jsxs(ki,{variant:"outline",onClick:b,className:"w-full gap-2",size:"sm",children:[I.jsx(iae,{className:"h-4 w-4"}),s("nodes:setVariablesFields.addVariable")]})]})}const _Jt={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:"zone",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 nue(n){return _Jt[n]||[]}function pir(n){const i=nue(n),s={trigger:n};for(const u of i)u.default!==void 0&&(s[u.name]=u.default);return s}function gir(){const{hass:n}=pb(),i=H.useCallback(async u=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),[];try{return await n.callWS({type:"device_automation/trigger/list",device_id:u})||[]}catch(d){throw console.error("Failed to fetch device triggers:",d),d}},[n]),s=H.useCallback(async u=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),{extra_fields:[]};try{return await n.callWS({type:"device_automation/trigger/capabilities",trigger:u})||{extra_fields:[]}}catch(d){throw console.error("Failed to fetch trigger capabilities:",d),d}},[n]);return{getDeviceTriggers:i,getTriggerCapabilities:s}}const bir=Su({resources:yf(Jt(),Lu()).transform(n=>{const i={};for(const[s,u]of Object.entries(n))typeof u=="string"&&(i[s]=u);return i})});function mir(){const{hass:n}=pb(),[i,s]=H.useState({}),[u,d]=H.useState(!0),g=H.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 x of Object.values(w))typeof x=="object"&&x!==null&&Object.assign(S,x);return S}return{}},[n==null?void 0:n.resources]);return H.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=bir.safeParse(E);S.success&&s(S.data.resources)}catch{}finally{d(!1)}})()},[n]),{translations:H.useMemo(()=>({...g,...i}),[g,i]),isLoading:u}}function WOe(n){const i=[n.type];return n.subtype&&i.push(n.subtype),n.entity_id&&i.push(n.entity_id),i.join("::")}function wir(n,i){const s=`component.${n.domain}.device_automation.trigger_type.${n.type}`,u=i[s]??n.type;if(n.subtype){const d=`component.${n.domain}.device_automation.trigger_subtype.${n.subtype}`,g=i[d]??n.subtype;return`${u}: ${g}`}return u}function yir({node:n,onChange:i,entities:s}){const{t:u}=ps(["common","nodes","errors"]),{getDeviceTriggers:d,getTriggerCapabilities:g}=gir(),{translations:b}=mir(),[w,E]=H.useState([]),[S,x]=H.useState([]),[A,C]=H.useState(!1),R=jh(n,"device_id"),D=jh(n,"type"),L=jh(n,"domain"),B=jh(n,"entity_id"),$=jh(n,"subtype"),j=(()=>{const P=[D].filter(Boolean);return $&&P.push($),B&&P.push(B),P.join("::")})();return H.useEffect(()=>{if(!R){E([]);return}C(!0),d(R).then(P=>{E(P)}).catch(P=>{console.error(u("errors:api.loadDeviceTriggersFailed"),P),E([])}).finally(()=>{C(!1)})},[R,d,u]),H.useEffect(()=>{if(!R||!D){x([]);return}const P=w.find(G=>G.type===D&&G.domain===L&&(G.subtype??"")===($??"")&&(G.entity_id??"")===(B??""));if(!P){x([]);return}g(P).then(G=>{x(G.extra_fields||[])}).catch(G=>{console.error(u("errors:api.loadTriggerCapabilitiesFailed"),G),x([])})},[R,D,$,B,L,w,g,u]),I.jsxs(I.Fragment,{children:[I.jsx(AJt,{value:R,onChange:P=>i("device_id",P),label:u("labels.device"),required:!0,placeholder:u("placeholders.selectDevice")}),R&&w.length>0?I.jsx(Lo,{label:u("labels.triggerType"),required:!0,children:I.jsxs(zp,{value:j,onValueChange:P=>{const G=w.find(ee=>WOe(ee)===P);G&&(i("type",G.type),i("domain",G.domain),i("subtype",G.subtype??void 0),i("entity_id",G.entity_id??void 0))},children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:u("placeholders.selectTriggerType")})}),I.jsx(Gh,{children:w.map(P=>I.jsx(to,{value:WOe(P),children:wir(P,b)},WOe(P)))})]})}):R&&D&&I.jsx(Lo,{label:"Trigger Type",children:I.jsxs("div",{className:"truncate rounded-md border bg-muted px-3 py-2 font-mono text-sm",children:[D,$&&I.jsxs("span",{className:"text-muted-foreground",children:[" · ",$]}),L&&I.jsxs("span",{className:"text-muted-foreground",children:[" ",`(${L})`]})]})}),A&&I.jsx("div",{className:"text-muted-foreground text-sm",children:u("status.loadingTriggers")}),S.map(P=>I.jsx(WM,{field:P,value:n.data[P.name],onChange:G=>i(P.name,G),entities:s,domain:L,translations:b},P.name))]})}const vir={light:["on","off","unavailable"],switch:["on","off","unavailable"],binary_sensor:["on","off","unavailable"],input_boolean:["on","off"],cover:["open","closed","opening","closing","unavailable"],lock:["locked","unlocked","locking","unlocking","unavailable"],alarm_control_panel:["disarmed","armed_home","armed_away","armed_night","armed_vacation","armed_custom_bypass","pending","arming","disarming","triggered","unavailable"],climate:["heat","cool","heat_cool","auto","dry","fan_only","off","unavailable"],fan:["on","off","unavailable"],media_player:["playing","paused","idle","off","on","standby","buffering","unavailable"],vacuum:["cleaning","docked","paused","idle","returning","error","unavailable"],person:["home","not_home","unavailable"],device_tracker:["home","not_home","unavailable"],water_heater:["electric","gas","heat_pump","eco","performance","high_demand","off","unavailable"],humidifier:["on","off","unavailable"],update:["on","off","unavailable"]},xJt=["on","off","unavailable","unknown"];function Eir(n,i){const s=i.find(b=>b.entity_id===n),u=n.split(".")[0],d=vir[u]??xJt,g=new Set(d);return s!=null&&s.state?[s.state,...d.filter(b=>b!==s.state)]:Array.from(g)}function i$t({value:n,onChange:i,suggestions:s,placeholder:u}){const{t:d}=ps(["common"]),[g,b]=H.useState(!1),[w,E]=H.useState(""),S=H.useMemo(()=>w?s.filter(C=>C.toLowerCase().includes(w.toLowerCase())):s,[w,s]),x=w&&!s.includes(w),A=C=>{i(C===n?"":C),b(!1),E("")};return I.jsxs(aMe,{open:g,onOpenChange:b,children:[I.jsx(Jqt,{asChild:!0,children:I.jsxs(ki,{variant:"outline",role:"combobox","aria-expanded":g,className:Sr("flex w-full justify-between",!n&&"text-muted-foreground"),children:[I.jsx("span",{className:"truncate",children:n||u}),I.jsx(hGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(Tae,{className:"w-[286px] p-0",children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{placeholder:u,value:w,onValueChange:E}),I.jsxs(pae,{children:[S.length===0&&!x&&I.jsx(gae,{children:d("combobox.noOptions")}),x&&I.jsx(tz,{children:I.jsxs(nz,{value:w,onSelect:A,children:[I.jsx("span",{className:"text-muted-foreground text-xs mr-2",children:d("stateTrigger.useValue")}),I.jsx("span",{className:"font-mono",children:w}),I.jsx(oN,{className:Sr("ml-auto h-4 w-4",n===w?"opacity-100":"opacity-0")})]})}),S.length>0&&I.jsx(tz,{children:S.map(C=>I.jsxs(nz,{value:C,onSelect:A,children:[I.jsx("span",{className:"font-mono",children:C}),I.jsx(oN,{className:Sr("ml-auto h-4 w-4",n===C?"opacity-100":"opacity-0")})]},C))})]})]})})]})}function Sir({node:n,onChange:i,entities:s}){const{t:u}=ps(["nodes","common"]),{getFieldError:d}=gb(n.id),{entities:g}=pb(),b=s.length>0?s:g,w=n.data.entity_id,E=Array.isArray(w)?w:typeof w=="string"&&w?[w]:[],S=jh(n,"to"),x=jh(n,"from"),A=H.useMemo(()=>{if(E.length===0)return xJt;const R=new Set;for(const D of E)for(const L of Eir(D,b))R.add(L);return Array.from(R)},[E,b]),C=nue("state").find(R=>R.name==="for");return I.jsxs(I.Fragment,{children:[I.jsxs(Lo,{label:u("nodes:triggers.fields.entityId"),required:!0,children:[I.jsx(Xae,{value:E,onChange:R=>i("entity_id",R),entities:b,placeholder:u("common:placeholders.selectEntity")}),I.jsx(H2,{message:d("entity_id")})]}),I.jsx(Lo,{label:u("nodes:triggers.fields.toState"),children:I.jsx(i$t,{value:S,onChange:R=>i("to",R||void 0),suggestions:A,placeholder:u("nodes:triggers.fields.toStatePlaceholder")})}),I.jsx(Lo,{label:u("nodes:triggers.fields.fromState"),children:I.jsx(i$t,{value:x,onChange:R=>i("from",R||void 0),suggestions:A,placeholder:u("nodes:triggers.fields.fromStatePlaceholder")})}),C&&I.jsx(WM,{field:C,value:n.data[C.name],onChange:R=>i(C.name,R),entities:b,error:d(C.name)})]})}function Tir({node:n,onChange:i,entities:s}){const{t:u}=ps(["nodes"]),{getFieldError:d}=gb(n.id),g=jh(n,"trigger","state"),b=jh(n,"device_id"),w=b&&g!=="device"?"device":g;H.useEffect(()=>{b&&g!=="device"&&i("trigger","device")},[b,g,i]);const E=S=>{const x=pir(S);for(const[A,C]of Object.entries(x))i(A,C);S!=="device"&&b&&i("device_id",void 0)};return I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:u("nodes:triggers.platformLabel"),required:!0,children:I.jsxs(zp,{value:w,onValueChange:E,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"state",children:u("nodes:triggers.platforms.state")}),I.jsx(to,{value:"numeric_state",children:u("nodes:triggers.platforms.numeric_state")}),I.jsx(to,{value:"time",children:u("nodes:triggers.platforms.time")}),I.jsx(to,{value:"time_pattern",children:u("nodes:triggers.platforms.time_pattern")}),I.jsx(to,{value:"sun",children:u("nodes:triggers.platforms.sun")}),I.jsx(to,{value:"event",children:u("nodes:triggers.platforms.event")}),I.jsx(to,{value:"mqtt",children:u("nodes:triggers.platforms.mqtt")}),I.jsx(to,{value:"webhook",children:u("nodes:triggers.platforms.webhook")}),I.jsx(to,{value:"zone",children:u("nodes:triggers.platforms.zone")}),I.jsx(to,{value:"template",children:u("nodes:triggers.platforms.template")}),I.jsx(to,{value:"homeassistant",children:u("nodes:triggers.platforms.homeassistant")}),I.jsx(to,{value:"device",children:u("nodes:triggers.platforms.device")})]})]})}),I.jsx(Air,{effectiveTriggerType:w,deviceId:b,node:n,onChange:i,entities:s,getFieldError:d})]})}function Air({effectiveTriggerType:n,deviceId:i,node:s,onChange:u,entities:d,getFieldError:g}){return n==="device"||i?I.jsx(yir,{node:s,onChange:u,entities:d}):n==="state"?I.jsx(Sir,{node:s,onChange:u,entities:d}):nue(n).map(w=>I.jsx(WM,{field:w,value:s.data[w.name],onChange:E=>u(w.name,E),entities:d,error:g(w.name)},w.name))}function _ir({node:n,onChange:i}){const{t:s}=ps(["nodes"]),{getFieldError:u,getRootError:d}=gb(n.id),g=ko(D=>D.addWaitTimeoutBranch),b=jh(n,"wait_template"),w=WMe(n,"wait_for_trigger"),E=w!==void 0?"trigger":"template",S=d(),x=D=>{D==="template"?(i("wait_for_trigger",void 0),i("wait_template","")):(i("wait_template",void 0),i("wait_for_trigger",[{trigger:"state"}]))},A=(D,L,B)=>{if(!w)return;const $=[...w];$[D]={...$[D],[L]:B},i("wait_for_trigger",$)},C=()=>{const D=[...w||[],{trigger:"state"}];i("wait_for_trigger",D)},R=D=>{if(!w)return;const L=w.filter((B,$)=>$!==D);i("wait_for_trigger",L)};return I.jsxs(I.Fragment,{children:[I.jsx(H2,{message:S}),I.jsx(Lo,{label:s("nodes:wait.waitType"),description:s("nodes:wait.waitTypeDescription"),children:I.jsxs(zp,{value:E,onValueChange:x,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"template",children:s("nodes:wait.types.template")}),I.jsx(to,{value:"trigger",children:s("nodes:wait.types.triggers")})]})]})}),E==="template"&&I.jsxs(Lo,{label:s("nodes:wait.waitTemplate"),required:!0,description:s("nodes:wait.waitTemplateDescription"),children:[I.jsx($v,{value:b||"",onChange:D=>i("wait_template",D.target.value),className:"font-mono",rows:3,placeholder:s("nodes:placeholders.waitTemplate")}),I.jsx(H2,{message:u("wait_template")})]}),E==="trigger"&&I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:u("wait_for_trigger")}),I.jsxs("div",{className:"space-y-2",children:[I.jsx("h3",{className:"font-medium",children:s("nodes:wait.triggersHeading")}),w==null?void 0:w.map((D,L)=>I.jsxs("div",{className:"space-y-3 rounded-md border p-3",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("p",{className:"font-semibold text-sm capitalize",children:s("nodes:wait.triggerLabel",{index:L+1,platform:D.trigger})}),I.jsx(ki,{variant:"ghost",size:"sm",onClick:()=>R(L),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(PM,{})})]}),I.jsx(Lo,{label:s("nodes:wait.triggerPlatformLabel","Platform"),children:I.jsxs(zp,{value:D.trigger,onValueChange:B=>A(L,"trigger",B),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsx(Gh,{children:Object.keys(_Jt).map(B=>I.jsx(to,{value:B,children:B},B))})]})}),nue(D.trigger).map(B=>I.jsx(WM,{field:B,value:D[B.name],onChange:$=>A(L,B.name,$)},B.name))]},L))]}),I.jsx(ki,{onClick:C,variant:"outline",size:"sm",children:s("nodes:wait.addTrigger")})]}),I.jsx(wYt,{label:s("nodes:wait.timeoutLabel"),description:s("nodes:wait.timeoutDescription"),value:n.data.timeout??"",onChange:D=>i("timeout",D||void 0)}),n.data.timeout&&I.jsxs(I.Fragment,{children:[I.jsx(Lo,{label:s("nodes:wait.continueOnTimeout"),description:s("nodes:wait.continueOnTimeoutDescription"),children:I.jsx(J2,{checked:n.data.continue_on_timeout??!0,onCheckedChange:D=>i("continue_on_timeout",D)})}),I.jsx(Lo,{label:s("nodes:wait.branchOnTimeout"),description:s("nodes:wait.branchOnTimeoutDescription"),children:I.jsxs(ki,{variant:"outline",size:"sm",onClick:()=>g(n.id),className:"gap-2",children:[I.jsx(B5e,{className:"h-4 w-4"}),s("nodes:wait.addTimeoutBranch")]})})]})]})}function xir({node:n,onChange:i,entities:s}){switch(n.type){case"trigger":return I.jsx(Tir,{node:n,onChange:i,entities:s});case"condition":return I.jsx(dir,{node:n,onChange:i,entities:s});case"action":return I.jsx(Cnr,{node:n,onChange:i,entities:s});case"delay":return I.jsx(fir,{node:n,onChange:i});case"wait":return I.jsx(_ir,{node:n,onChange:i});case"set_variables":return I.jsx(hir,{node:n,onChange:i});default:return null}}const oDe={key:"",value:"",type:"string",isAdding:!1};function kir(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{...oDe};case"reset":return{...oDe};default:return n}}function Nir(n,i){switch(i){case"number":{const s=Number(n);if(Number.isNaN(s))throw new Error("Invalid number value");return s}case"boolean":return n.toLowerCase()==="true";case"array":try{const s=JSON.parse(n);if(!Array.isArray(s))throw new Error("Not an array");return s}catch{throw new Error("Invalid JSON array format")}default:return n}}function Cir(n){const[i,s]=H.useReducer(kir,oDe);return{state:i,setKey:d=>s({type:"setKey",payload:d}),setValue:d=>s({type:"setValue",payload:d}),setType:d=>s({type:"setType",payload:d}),startAdding:()=>s({type:"startAdding"}),cancelAdding:()=>s({type:"cancelAdding"}),handleAdd:()=>{if(!i.key.trim())throw new Error("Property name is required");const d=Nir(i.value,i.type);n(i.key,d),s({type:"reset"})}}}function Iir({node:n,handledProperties:i,onChange:s,onDelete:u}){const{t:d}=ps(["common","nodes","errors"]),b=Cir((x,A)=>{s(x,A)}),w=n.data,E=Object.entries(w).filter(([x,A])=>!i.has(x)&&A!==void 0&&A!==null&&A!=="");if(E.length===0&&!b.state.isAdding)return null;const S=()=>{try{b.handleAdd()}catch(x){alert(x instanceof Error?x.message:d("errors:properties.addFailed"))}};return I.jsxs("div",{className:"space-y-3",children:[I.jsx("div",{className:"border-t pt-3",children:I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{className:"font-medium text-muted-foreground text-xs",children:d("nodes:panel.additionalProperties")}),I.jsxs(ki,{variant:"ghost",size:"sm",onClick:b.startAdding,className:"h-6 px-2 text-xs",children:[I.jsx(iae,{className:"mr-1 h-3 w-3"}),d("buttons.add")]})]})}),b.state.isAdding&&I.jsxs("div",{className:"space-y-2 rounded border p-3",children:[I.jsx(Lo,{label:d("nodes:panel.propertyName"),required:!0,children:I.jsx(Na,{type:"text",value:b.state.key,onChange:x=>b.setKey(x.target.value),placeholder:d("nodes:placeholders.customProperty")})}),I.jsx(Lo,{label:d("nodes:panel.type"),children:I.jsxs(zp,{value:b.state.type,onValueChange:x=>b.setType(x),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"string",children:d("nodes:triggers.dataTypes.string")}),I.jsx(to,{value:"number",children:d("nodes:triggers.dataTypes.number")}),I.jsx(to,{value:"boolean",children:d("nodes:triggers.dataTypes.boolean")}),I.jsx(to,{value:"array",children:d("nodes:triggers.dataTypes.json")})]})]})}),I.jsx(Lo,{label:d("nodes:panel.value"),children:b.state.type==="boolean"?I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:b.state.value==="true",onCheckedChange:x=>b.setValue(x?"true":"false")}),I.jsx(ll,{className:"text-sm",children:b.state.value==="true"?d("boolean.true"):d("boolean.false")})]}):b.state.type==="array"?I.jsx($v,{value:b.state.value,onChange:x=>b.setValue(x.target.value),placeholder:d("nodes:placeholders.jsonArray"),className:"font-mono",rows:2}):I.jsx(Na,{type:b.state.type==="number"?"number":"text",value:b.state.value,onChange:x=>b.setValue(x.target.value),placeholder:b.state.type==="number"?d("nodes:placeholders.number"):d("nodes:placeholders.enterValue")})}),I.jsxs("div",{className:"flex justify-end gap-2",children:[I.jsx(ki,{variant:"ghost",size:"sm",onClick:b.cancelAdding,children:d("buttons.cancel")}),I.jsx(ki,{size:"sm",onClick:S,children:d("nodes:panel.addProperty")})]})]}),E.map(([x,A])=>I.jsx(Rir,{name:x,value:A,onChange:C=>s(x,C),onDelete:()=>u(x)},x))]})}function Rir({name:n,value:i,onChange:s,onDelete:u}){const{t:d}=ps(["common","nodes"]);return I.jsxs("div",{className:"space-y-2",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{className:"font-medium text-muted-foreground text-xs capitalize",children:n.replace(/_/g," ")}),I.jsx(ki,{variant:"ghost",size:"sm",onClick:u,className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10",children:I.jsx(PM,{className:"h-3 w-3"})})]}),typeof i=="boolean"?I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:i,onCheckedChange:g=>s(g)}),I.jsx(ll,{className:"text-sm",children:d(i?"boolean.true":"boolean.false")})]}):Array.isArray(i)?I.jsx($v,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);s(b)}catch{}},className:"font-mono",rows:Math.min(i.length+1,4),placeholder:d("nodes:placeholders.jsonArray")}):typeof i=="object"?I.jsx($v,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);s(b)}catch{}},className:"font-mono",rows:4,placeholder:d("nodes:placeholders.jsonObject")}):I.jsx(Na,{type:"text",value:String(i),onChange:g=>{const b=g.target.value;if(typeof i=="number"){const w=Number(b);Number.isNaN(w)||s(w)}else s(b)},placeholder:d("nodes:placeholders.enterType",{type:typeof i})})]})}function Oir(){const{t:n}=ps(["common","nodes"]),i=ko(R=>R.selectedNodeId),s=ko(R=>R.nodes),u=ko(R=>R.updateNodeData),d=ko(R=>R.removeNode),{hass:g,entities:b}=pb(),w=H.useMemo(()=>g!=null&&g.states&&Object.keys(g.states).length>0?Object.values(g.states).map(R=>({entity_id:R.entity_id,state:R.state,attributes:R.attributes||{},last_changed:R.last_changed||"",last_updated:R.last_updated||"",context:R.context})):b,[g,b]),E=H.useMemo(()=>s.find(R=>R.id===i),[s,i]),S=H.useMemo(()=>{if(!E)return e$t("trigger",[]);const R=e$t(E.type||"trigger",[]),D=E.data,L=typeof D.trigger=="string"?D.trigger:"",B=typeof D.device_id=="string"?D.device_id:"";if((L==="device"||B)&&(E.type==="trigger"||E.type==="condition")){const j=Object.keys(D);return new Set([...R,...j])}return R},[E]),{getFieldError:x}=gb((E==null?void 0:E.id)??"");if(!E)return I.jsx(Enr,{});const A=(R,D)=>{u(E.id,{[R]:D})},C=R=>{u(E.id,{[R]:void 0})};return I.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.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")]}),I.jsx(ki,{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:I.jsx(PM,{className:"h-4 w-4"})})]}),I.jsx(Lo,{label:n("labels.alias"),children:I.jsx(Na,{type:"text",value:typeof E.data.alias=="string"?E.data.alias:"",onChange:R=>A("alias",R.target.value),placeholder:n("placeholders.optionalDisplayName")})}),E.type==="trigger"&&I.jsxs(Lo,{label:n("labels.id"),children:[I.jsx(Na,{type:"text",value:typeof E.data.id=="string"?E.data.id:"",onChange:R=>A("id",R.target.value||void 0),placeholder:n("placeholders.optionalUniqueId"),className:"font-mono"}),I.jsx(H2,{message:x("id")})]}),I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{htmlFor:"node-enabled",className:"text-sm",children:n("labels.enabled")}),I.jsx(J2,{id:"node-enabled",checked:E.data.enabled!==!1,onCheckedChange:R=>A("enabled",R?void 0:!1)})]}),I.jsx(jz,{}),I.jsx(xir,{node:E,onChange:A,entities:w}),I.jsx(Iir,{node:E,handledProperties:S,onChange:A,onDelete:C}),I.jsx("div",{className:"pt-2 text-muted-foreground text-xs",children:n("nodes:panel.nodeId",{id:E.id})})]})}function Lir(n){const i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")}catch(s){console.error("Unable to copy to clipboard",s)}document.body.removeChild(i)}async function Dir(n){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n):Lir(n)}function Hk(){return Hk=Object.assign?Object.assign.bind():function(n){for(var i=1;i4&&s.slice(0,4)==="data"&&$ir.test(i)){if(i.charAt(4)==="-"){const g=i.slice(5).replace(s$t,Uir);u="data"+g.charAt(0).toUpperCase()+g.slice(1)}else{const g=i.slice(4);if(!s$t.test(g)){let b=g.replace(Fir,Bir);b.charAt(0)!=="-"&&(b="-"+b),i="data"+b}}d=i9e}return new d(u,i)}function Bir(n){return"-"+n.toLowerCase()}function Uir(n){return n.charAt(1).toUpperCase()}const rue=NJt([CJt,Pir,OJt,LJt,DJt],"html"),zz=NJt([CJt,jir,OJt,LJt,DJt],"svg");function Sse(n){const i=[],s=String(n||"");let u=s.indexOf(","),d=0,g=!1;for(;!g;){u===-1&&(u=s.length,g=!0);const b=s.slice(d,u).trim();(b||!g)&&i.push(b),d=u+1,u=s.indexOf(",",d)}return i}function Hir(n,i){const s=i||{};return(n[n.length-1]===""?[...n,""]:n).join((s.padRight?" ":"")+","+(s.padLeft===!1?"":" ")).trim()}const a$t=/[#.]/g;function zir(n,i){const s=n||"",u={};let d=0,g,b;for(;d-1&&g<=i.length){let b=0;for(;;){let w=s[b];if(w===void 0){const E=c$t(i,s[b-1]);w=E===-1?i.length+1:E+1,s[b]=w}if(w>g)return{line:b+1,column:g-(b>0?s[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(;s.length1?s[g.line-2]:0)+g.column-1;if(b=55296&&n<=57343}function oor(n){return n>=56320&&n<=57343}function sor(n,i){return(n-55296)*1024+9216+i}function $Jt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function BJt(n){return n>=64976&&n<=65007||ior.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 aor=65536;class uor{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=aor,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,s){const{line:u,col:d,offset:g}=this,b=d+s,w=g+s;return{code:i,startLine:u,endLine:u,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 s=this.html.charCodeAt(this.pos+1);if(oor(s))return this.pos++,this._addGap(),sor(i,s)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$e.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,s){this.html.length>0?this.html+=i:this.html=i,this.endOfChunkHit=!1,this.lastChunkWritten=s}insertHtmlAtCurrentPos(i){this.html=this.html.substring(0,this.pos+1)+i+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(i,s){if(this.pos+i.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(s)return this.html.startsWith(i,this.pos);for(let u=0;u=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;const u=this.html.charCodeAt(s);return u===$e.CARRIAGE_RETURN?$e.LINE_FEED:u}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,$e.EOF;let i=this.html.charCodeAt(this.pos);return i===$e.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$e.LINE_FEED):i===$e.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,FJt(i)&&(i=this._processSurrogate(i)),this.handler.onParseError===null||i>31&&i<127||i===$e.LINE_FEED||i===$e.CARRIAGE_RETURN||i>159&&i<64976||this._checkForProblematicCharacters(i),i)}_checkForProblematicCharacters(i){$Jt(i)?this._err(sn.controlCharacterInInputStream):BJt(i)&&this._err(sn.noncharacterInInputStream)}retreat(i){for(this.pos-=i;this.pos=0;s--)if(n.attrs[s].name===i)return n.attrs[s].value;return null}const cor=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))),lor=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 dor(n){var i;return n>=55296&&n<=57343||n>1114111?65533:(i=lor.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 hor=32;var qk;(function(n){n[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"})(qk||(qk={}));function cDe(n){return n>=nh.ZERO&&n<=nh.NINE}function por(n){return n>=nh.UPPER_A&&n<=nh.UPPER_F||n>=nh.LOWER_A&&n<=nh.LOWER_F}function gor(n){return n>=nh.UPPER_A&&n<=nh.UPPER_Z||n>=nh.LOWER_A&&n<=nh.LOWER_Z||cDe(n)}function bor(n){return n===nh.EQUALS||gor(n)}var Qf;(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"})(Qf||(Qf={}));var aA;(function(n){n[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute"})(aA||(aA={}));class mor{constructor(i,s,u){this.decodeTree=i,this.emitCodePoint=s,this.errors=u,this.state=Qf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=aA.Strict}startEntity(i){this.decodeMode=i,this.state=Qf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(i,s){switch(this.state){case Qf.EntityStart:return i.charCodeAt(s)===nh.NUM?(this.state=Qf.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Qf.NamedEntity,this.stateNamedEntity(i,s));case Qf.NumericStart:return this.stateNumericStart(i,s);case Qf.NumericDecimal:return this.stateNumericDecimal(i,s);case Qf.NumericHex:return this.stateNumericHex(i,s);case Qf.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|hor)===nh.LOWER_X?(this.state=Qf.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Qf.NumericDecimal,this.stateNumericDecimal(i,s))}addToNumericResult(i,s,u,d){if(s!==u){const g=u-s;this.result=this.result*Math.pow(d,g)+Number.parseInt(i.substr(s,g),d),this.consumed+=g}}stateNumericHex(i,s){const u=s;for(;s>14;for(;s>14,g!==0){if(b===nh.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==aA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var i;const{result:s,decodeTree:u}=this,d=(u[s]&qk.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,d,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,u){const{decodeTree:d}=this;return this.emitCodePoint(s===1?d[i]&~qk.VALUE_LENGTH:d[i+1],u),s===3&&this.emitCodePoint(d[i+2],u),u}end(){var i;switch(this.state){case Qf.NamedEntity:return this.result!==0&&(this.decodeMode!==aA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qf.NumericDecimal:return this.emitNumericEntity(0,2);case Qf.NumericHex:return this.emitNumericEntity(0,3);case Qf.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qf.EntityStart:return 0}}}function wor(n,i,s,u){const d=(i&qk.BRANCH_LENGTH)>>7,g=i&qk.JUMP_TABLE;if(d===0)return g!==0&&u===g?s:-1;if(g){const E=u-g;return E<0||E>=d?-1:n[s+E]-1}let b=s,w=b+d-1;for(;b<=w;){const E=b+w>>>1,S=n[E];if(Su)w=E-1;else return n[E+d]}return-1}var Fn;(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/"})(Fn||(Fn={}));var iR;(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"})(iR||(iR={}));var ww;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(ww||(ww={}));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 yor=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 iue(n){var i;return(i=yor.get(n))!==null&&i!==void 0?i:W.UNKNOWN}const Xn=W,vor={[Fn.HTML]:new Set([Xn.ADDRESS,Xn.APPLET,Xn.AREA,Xn.ARTICLE,Xn.ASIDE,Xn.BASE,Xn.BASEFONT,Xn.BGSOUND,Xn.BLOCKQUOTE,Xn.BODY,Xn.BR,Xn.BUTTON,Xn.CAPTION,Xn.CENTER,Xn.COL,Xn.COLGROUP,Xn.DD,Xn.DETAILS,Xn.DIR,Xn.DIV,Xn.DL,Xn.DT,Xn.EMBED,Xn.FIELDSET,Xn.FIGCAPTION,Xn.FIGURE,Xn.FOOTER,Xn.FORM,Xn.FRAME,Xn.FRAMESET,Xn.H1,Xn.H2,Xn.H3,Xn.H4,Xn.H5,Xn.H6,Xn.HEAD,Xn.HEADER,Xn.HGROUP,Xn.HR,Xn.HTML,Xn.IFRAME,Xn.IMG,Xn.INPUT,Xn.LI,Xn.LINK,Xn.LISTING,Xn.MAIN,Xn.MARQUEE,Xn.MENU,Xn.META,Xn.NAV,Xn.NOEMBED,Xn.NOFRAMES,Xn.NOSCRIPT,Xn.OBJECT,Xn.OL,Xn.P,Xn.PARAM,Xn.PLAINTEXT,Xn.PRE,Xn.SCRIPT,Xn.SECTION,Xn.SELECT,Xn.SOURCE,Xn.STYLE,Xn.SUMMARY,Xn.TABLE,Xn.TBODY,Xn.TD,Xn.TEMPLATE,Xn.TEXTAREA,Xn.TFOOT,Xn.TH,Xn.THEAD,Xn.TITLE,Xn.TR,Xn.TRACK,Xn.UL,Xn.WBR,Xn.XMP]),[Fn.MATHML]:new Set([Xn.MI,Xn.MO,Xn.MN,Xn.MS,Xn.MTEXT,Xn.ANNOTATION_XML]),[Fn.SVG]:new Set([Xn.TITLE,Xn.FOREIGN_OBJECT,Xn.DESC]),[Fn.XLINK]:new Set,[Fn.XML]:new Set,[Fn.XMLNS]:new Set},lDe=new Set([Xn.H1,Xn.H2,Xn.H3,Xn.H4,Xn.H5,Xn.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 Eor(n){return n>=$e.DIGIT_0&&n<=$e.DIGIT_9}function sH(n){return n>=$e.LATIN_CAPITAL_A&&n<=$e.LATIN_CAPITAL_Z}function Sor(n){return n>=$e.LATIN_SMALL_A&&n<=$e.LATIN_SMALL_Z}function Dk(n){return Sor(n)||sH(n)}function d$t(n){return Dk(n)||Eor(n)}function Lie(n){return n+32}function HJt(n){return n===$e.SPACE||n===$e.LINE_FEED||n===$e.TABULATION||n===$e.FORM_FEED}function f$t(n){return HJt(n)||n===$e.SOLIDUS||n===$e.GREATER_THAN_SIGN}function Tor(n){return n===$e.NULL?sn.nullCharacterReference:n>1114111?sn.characterReferenceOutsideUnicodeRange:FJt(n)?sn.surrogateCharacterReference:BJt(n)?sn.noncharacterCharacterReference:$Jt(n)||n===$e.CARRIAGE_RETURN?sn.controlCharacterReference:null}class Aor{constructor(i,s){this.options=i,this.handler=s,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 uor(s),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mor(cor,(u,d)=>{this.preprocessor.pos=this.entityStartPos+d-1,this._flushCodePointConsumedAsCharacterReference(u)},s.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:u=>{this._err(sn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+u)},validateNumericCharacterReference:u=>{const d=Tor(u);d&&this._err(d,1)}}:void 0)}_err(i,s=0){var u,d;(d=(u=this.handler).onParseError)===null||d===void 0||d.call(u,this.preprocessor.getError(i,s))}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,s,u){this.active=!0,this.preprocessor.write(i,s),this._runParsingLoop(),this.paused||u==null||u()}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 s=0;s0&&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,s){if(this.currentCharacterToken)if(this.currentCharacterToken.type===i){this.currentCharacterToken.chars+=s;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(i,s)}_emitCodePoint(i){const s=HJt(i)?ha.WHITESPACE_CHARACTER:i===$e.NULL?ha.NULL_CHARACTER:ha.CHARACTER;this._appendCharToCurrentCharacterToken(s,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()?aA.Attribute:aA.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 $e.LESS_THAN_SIGN:{this.state=Ve.TAG_OPEN;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitCodePoint(i);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRcdata(i){switch(i){case $e.AMPERSAND:{this._startCharacterReference();break}case $e.LESS_THAN_SIGN:{this.state=Ve.RCDATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRawtext(i){switch(i){case $e.LESS_THAN_SIGN:{this.state=Ve.RAWTEXT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateScriptData(i){switch(i){case $e.LESS_THAN_SIGN:{this.state=Ve.SCRIPT_DATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_statePlaintext(i){switch(i){case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateTagOpen(i){if(Dk(i))this._createStartTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case $e.EXCLAMATION_MARK:{this.state=Ve.MARKUP_DECLARATION_OPEN;break}case $e.SOLIDUS:{this.state=Ve.END_TAG_OPEN;break}case $e.QUESTION_MARK:{this._err(sn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Ve.BOGUS_COMMENT,this._stateBogusComment(i);break}case $e.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(Dk(i))this._createEndTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case $e.GREATER_THAN_SIGN:{this._err(sn.missingEndTagName),this.state=Ve.DATA;break}case $e.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("");break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitChars(Oc);break}case $e.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataEscapedLessThanSign(i){i===$e.SOLIDUS?this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Dk(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){Dk(i)?(this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(i)):(this._emitChars("");break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Oc);break}case $e.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataDoubleEscapedLessThanSign(i){i===$e.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)&&f$t(this.preprocessor.peek(tb.SCRIPT.length))){this._emitCodePoint(i);for(let s=0;s0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,!0)}replace(i,s){const u=this._indexOf(i);this.items[u]=s,u===this.stackTop&&(this.current=s)}insertAfter(i,s,u){const d=this._indexOf(i)+1;this.items.splice(d,0,s),this.tagIDs.splice(d,0,u),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 s=this.stackTop+1;do s=this.tagIDs.lastIndexOf(i,s-1);while(s>0&&this.treeAdapter.getNamespaceURI(this.items[s])!==Fn.HTML);this.shortenToLength(Math.max(s,0))}shortenToLength(i){for(;this.stackTop>=i;){const s=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(s,this.stackTop=0;u--)if(i.has(this.tagIDs[u])&&this.treeAdapter.getNamespaceURI(this.items[u])===s)return u;return-1}clearBackTo(i,s){const u=this._indexOfTagNames(i,s);this.shortenToLength(u+1)}clearBackToTableContext(){this.clearBackTo(Cor,Fn.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Nor,Fn.HTML)}clearBackToTableRowContext(){this.clearBackTo(kor,Fn.HTML)}remove(i){const s=this._indexOf(i);s>=0&&(s===this.stackTop?this.pop():(this.items.splice(s,1),this.tagIDs.splice(s,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 s=this._indexOf(i)-1;return s>=0?this.items[s]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===W.HTML}hasInDynamicScope(i,s){for(let u=this.stackTop;u>=0;u--){const d=this.tagIDs[u];switch(this.treeAdapter.getNamespaceURI(this.items[u])){case Fn.HTML:{if(d===i)return!0;if(s.has(d))return!1;break}case Fn.SVG:{if(g$t.has(d))return!1;break}case Fn.MATHML:{if(p$t.has(d))return!1;break}}}return!0}hasInScope(i){return this.hasInDynamicScope(i,Ase)}hasInListItemScope(i){return this.hasInDynamicScope(i,_or)}hasInButtonScope(i){return this.hasInDynamicScope(i,xor)}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case Fn.HTML:{if(lDe.has(s))return!0;if(Ase.has(s))return!1;break}case Fn.SVG:{if(g$t.has(s))return!1;break}case Fn.MATHML:{if(p$t.has(s))return!1;break}}}return!0}hasInTableScope(i){for(let s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===Fn.HTML)switch(this.tagIDs[s]){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])===Fn.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 s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===Fn.HTML)switch(this.tagIDs[s]){case i:return!0;case W.OPTION:case W.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zJt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&h$t.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;this.currentTagId!==void 0&&this.currentTagId!==i&&h$t.has(this.currentTagId);)this.pop()}}const YOe=3;var I2;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})(I2||(I2={}));const b$t={type:I2.Marker};class Oor{constructor(i){this.treeAdapter=i,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(i,s){const u=[],d=s.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>=YOe&&this.entries.splice(w.idx,1))}}insertMarker(){this.entries.unshift(b$t)}pushElement(i,s){this._ensureNoahArkCondition(i),this.entries.unshift({type:I2.Element,element:i,token:s})}insertElementAfterBookmark(i,s){const u=this.entries.indexOf(this.bookmark);this.entries.splice(u,0,{type:I2.Element,element:i,token:s})}removeEntry(i){const s=this.entries.indexOf(i);s!==-1&&this.entries.splice(s,1)}clearToLastMarker(){const i=this.entries.indexOf(b$t);i===-1?this.entries.length=0:this.entries.splice(0,i+1)}getElementEntryInScopeWithTagName(i){const s=this.entries.find(u=>u.type===I2.Marker||this.treeAdapter.getTagName(u.element)===i);return s&&s.type===I2.Element?s:null}getElementEntry(i){return this.entries.find(s=>s.type===I2.Element&&s.element===i)}}const Mk={createDocument(){return{nodeName:"#document",mode:ww.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(n,i,s){return{nodeName:n,tagName:n,attrs:s,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,s){const u=n.childNodes.indexOf(s);n.childNodes.splice(u,0,i),i.parentNode=n},setTemplateContent(n,i){n.content=i},getTemplateContent(n){return n.content},setDocumentType(n,i,s,u){const d=n.childNodes.find(g=>g.nodeName==="#documentType");if(d)d.name=i,d.publicId=s,d.systemId=u;else{const g={nodeName:"#documentType",name:i,publicId:s,systemId:u,parentNode:null};Mk.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 s=n.childNodes[n.childNodes.length-1];if(Mk.isTextNode(s)){s.value+=i;return}}Mk.appendChild(n,Mk.createTextNode(i))},insertTextBefore(n,i,s){const u=n.childNodes[n.childNodes.indexOf(s)-1];u&&Mk.isTextNode(u)?u.value+=i:Mk.insertBefore(n,Mk.createTextNode(i),s)},adoptAttributes(n,i){const s=new Set(n.attrs.map(u=>u.name));for(let u=0;un.startsWith(s))}function For(n){return n.name===GJt&&n.publicId===null&&(n.systemId===null||n.systemId===Lor)}function $or(n){if(n.name!==GJt)return ww.QUIRKS;const{systemId:i}=n;if(i&&i.toLowerCase()===Dor)return ww.QUIRKS;let{publicId:s}=n;if(s!==null){if(s=s.toLowerCase(),Por.has(s))return ww.QUIRKS;let u=i===null?Mor:qJt;if(m$t(s,u))return ww.QUIRKS;if(u=i===null?VJt:jor,m$t(s,u))return ww.LIMITED_QUIRKS}return ww.NO_QUIRKS}const w$t={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Bor="definitionurl",Uor="definitionURL",Hor=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])),zor=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Fn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Fn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Fn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Fn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Fn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Fn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Fn.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Fn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Fn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Fn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Fn.XMLNS}]]),Gor=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])),qor=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 Vor(n){const i=n.tagID;return i===W.FONT&&n.attrs.some(({name:u})=>u===iR.COLOR||u===iR.SIZE||u===iR.FACE)||qor.has(i)}function WJt(n){for(let i=0;i0&&this._setContextModes(i,s)}onItemPop(i,s){var u,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(i,this.currentToken),(d=(u=this.treeAdapter).onItemPop)===null||d===void 0||d.call(u,i,this.openElements.current),s){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,s){const u=i===this.document||i&&this.treeAdapter.getNamespaceURI(i)===Fn.HTML;this.currentNotInHTML=!u,this.tokenizer.inForeignNode=!u&&i!==void 0&&s!==void 0&&!this._isIntegrationPoint(s,i)}_switchToTextParsing(i,s){this._insertElement(i,Fn.HTML),this.tokenizer.state=s,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)!==Fn.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 s=i.name||"",u=i.publicId||"",d=i.systemId||"";if(this.treeAdapter.setDocumentType(this.document,s,u,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,s){if(this.options.sourceCodeLocationInfo){const u=s&&{...s,startTag:s};this.treeAdapter.setNodeSourceCodeLocation(i,u)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(i);else{const u=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(u??this.document,i)}}_appendElement(i,s){const u=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(u,i.location)}_insertElement(i,s){const u=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(u,i.location),this.openElements.push(u,i.tagID)}_insertFakeElement(i,s){const u=this.treeAdapter.createElement(i,Fn.HTML,[]);this._attachElementToTree(u,null),this.openElements.push(u,s)}_insertTemplate(i){const s=this.treeAdapter.createElement(i.tagName,Fn.HTML,i.attrs),u=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(s,u),this._attachElementToTree(s,i.location),this.openElements.push(s,i.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,null)}_insertFakeRootElement(){const i=this.treeAdapter.createElement(Pt.HTML,Fn.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null),this.treeAdapter.appendChild(this.openElements.current,i),this.openElements.push(i,W.HTML)}_appendCommentNode(i,s){const u=this.treeAdapter.createCommentNode(i.data);this.treeAdapter.appendChild(s,u),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,i.location)}_insertCharacters(i){let s,u;if(this._shouldFosterParentOnInsertion()?({parent:s,beforeElement:u}=this._findFosterParentingLocation(),u?this.treeAdapter.insertTextBefore(s,i.chars,u):this.treeAdapter.insertText(s,i.chars)):(s=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(s,i.chars)),!i.location)return;const d=this.treeAdapter.getChildNodes(s),g=u?d.lastIndexOf(u):d.length,b=d[g-1];if(this.treeAdapter.getNodeSourceCodeLocation(b)){const{endLine:E,endCol:S,endOffset:x}=i.location;this.treeAdapter.updateNodeSourceCodeLocation(b,{endLine:E,endCol:S,endOffset:x})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}_adoptNodes(i,s){for(let u=this.treeAdapter.getFirstChild(i);u;u=this.treeAdapter.getFirstChild(i))this.treeAdapter.detachNode(u),this.treeAdapter.appendChild(s,u)}_setEndLocation(i,s){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&s.location){const u=s.location,d=this.treeAdapter.getTagName(i),g=s.type===ha.END_TAG&&d===s.tagName?{endTag:{...u},endLine:u.endLine,endCol:u.endCol,endOffset:u.endOffset}:{endLine:u.startLine,endCol:u.startCol,endOffset:u.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(i,g)}}shouldProcessStartTagTokenInForeignContent(i){if(!this.currentNotInHTML)return!1;let s,u;return this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,u=this.fragmentContextID):{current:s,currentTagId:u}=this.openElements,i.tagID===W.SVG&&this.treeAdapter.getTagName(s)===Pt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(s)===Fn.MATHML?!1:this.tokenizer.inForeignNode||(i.tagID===W.MGLYPH||i.tagID===W.MALIGNMARK)&&u!==void 0&&!this._isIntegrationPoint(u,s,Fn.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,s,u){const d=this.treeAdapter.getNamespaceURI(s),g=this.treeAdapter.getAttrList(s);return Jor(i,d,g,u)}_reconstructActiveFormattingElements(){const i=this.activeFormattingElements.entries.length;if(i){const s=this.activeFormattingElements.entries.findIndex(d=>d.type===I2.Marker||this.openElements.contains(d.element)),u=s===-1?i-1:s-1;for(let d=u;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 s=i-1;s>0;s--){const u=this.openElements.tagIDs[s];if(u===W.TEMPLATE)break;if(u===W.TABLE){this.insertionMode=ut.IN_SELECT_IN_TABLE;return}}this.insertionMode=ut.IN_SELECT}_isElementCausesFosterParenting(i){return YJt.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 s=this.openElements.items[i];switch(this.openElements.tagIDs[i]){case W.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(s)===Fn.HTML)return{parent:this.treeAdapter.getTemplateContent(s),beforeElement:null};break}case W.TABLE:{const u=this.treeAdapter.getParentNode(s);return u?{parent:u,beforeElement:s}:{parent:this.openElements.items[i-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(i){const s=this._findFosterParentingLocation();s.beforeElement?this.treeAdapter.insertBefore(s.parent,i,s.beforeElement):this.treeAdapter.appendChild(s.parent,i)}_isSpecialElement(i,s){const u=this.treeAdapter.getNamespaceURI(i);return vor[u].has(s)}onCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Rar(this,i);return}switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(this,i);break}case ut.IN_BODY:case ut.IN_CAPTION:case ut.IN_CELL:case ut.IN_TEMPLATE:{ZJt(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:{iXt(this,i);break}case ut.IN_COLUMN_GROUP:{_se(this,i);break}case ut.AFTER_BODY:{xse(this,i);break}case ut.AFTER_AFTER_BODY:{aoe(this,i);break}}}onNullCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Iar(this,i);return}switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(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:{_se(this,i);break}case ut.AFTER_BODY:{xse(this,i);break}case ut.AFTER_AFTER_BODY:{aoe(this,i);break}}}onComment(i){if(this.skipNextNewLine=!1,this.currentNotInHTML){dDe(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:{dDe(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.AFTER_BODY:{asr(this,i);break}case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{usr(this,i);break}}}onDoctype(i){switch(this.skipNextNewLine=!1,this.insertionMode){case ut.INITIAL:{csr(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:{qU(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)?Oar(this,i):this._startTagOutsideForeignContent(i)}_startTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{lsr(this,i);break}case ut.BEFORE_HEAD:{fsr(this,i);break}case ut.IN_HEAD:{Hv(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{gsr(this,i);break}case ut.AFTER_HEAD:{msr(this,i);break}case ut.IN_BODY:{Vp(this,i);break}case ut.IN_TABLE:{OM(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_CAPTION:{har(this,i);break}case ut.IN_COLUMN_GROUP:{l9e(this,i);break}case ut.IN_TABLE_BODY:{aue(this,i);break}case ut.IN_ROW:{uue(this,i);break}case ut.IN_CELL:{bar(this,i);break}case ut.IN_SELECT:{aXt(this,i);break}case ut.IN_SELECT_IN_TABLE:{war(this,i);break}case ut.IN_TEMPLATE:{Ear(this,i);break}case ut.AFTER_BODY:{Tar(this,i);break}case ut.IN_FRAMESET:{Aar(this,i);break}case ut.AFTER_FRAMESET:{xar(this,i);break}case ut.AFTER_AFTER_BODY:{Nar(this,i);break}case ut.AFTER_AFTER_FRAMESET:{Car(this,i);break}}}onEndTag(i){this.skipNextNewLine=!1,this.currentToken=i,this.currentNotInHTML?Lar(this,i):this._endTagOutsideForeignContent(i)}_endTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{dsr(this,i);break}case ut.BEFORE_HEAD:{hsr(this,i);break}case ut.IN_HEAD:{psr(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{bsr(this,i);break}case ut.AFTER_HEAD:{wsr(this,i);break}case ut.IN_BODY:{sue(this,i);break}case ut.TEXT:{rar(this,i);break}case ut.IN_TABLE:{pz(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_CAPTION:{par(this,i);break}case ut.IN_COLUMN_GROUP:{gar(this,i);break}case ut.IN_TABLE_BODY:{fDe(this,i);break}case ut.IN_ROW:{sXt(this,i);break}case ut.IN_CELL:{mar(this,i);break}case ut.IN_SELECT:{uXt(this,i);break}case ut.IN_SELECT_IN_TABLE:{yar(this,i);break}case ut.IN_TEMPLATE:{Sar(this,i);break}case ut.AFTER_BODY:{lXt(this,i);break}case ut.IN_FRAMESET:{_ar(this,i);break}case ut.AFTER_FRAMESET:{kar(this,i);break}case ut.AFTER_AFTER_BODY:{aoe(this,i);break}}}onEof(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(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:{nXt(this,i);break}case ut.TEXT:{iar(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_TEMPLATE:{cXt(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:{c9e(this,i);break}}}onWhitespaceCharacter(i){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,i.chars.charCodeAt(0)===$e.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:{XJt(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:{rXt(this,i);break}}}}function tsr(n,i){let s=n.activeFormattingElements.getElementEntryInScopeWithTagName(i.tagName);return s?n.openElements.contains(s.element)?n.openElements.hasInScope(i.tagID)||(s=null):(n.activeFormattingElements.removeEntry(s),s=null):tXt(n,i),s}function nsr(n,i){let s=null,u=n.openElements.stackTop;for(;u>=0;u--){const d=n.openElements.items[u];if(d===i.element)break;n._isSpecialElement(d,n.openElements.tagIDs[u])&&(s=d)}return s||(n.openElements.shortenToLength(Math.max(u,0)),n.activeFormattingElements.removeEntry(i)),s}function rsr(n,i,s){let u=i,d=n.openElements.getCommonAncestor(i);for(let g=0,b=d;b!==s;g++,b=d){d=n.openElements.getCommonAncestor(b);const w=n.activeFormattingElements.getElementEntry(b),E=w&&g>=Qor;!w||E?(E&&n.activeFormattingElements.removeEntry(w),n.openElements.remove(b)):(b=isr(n,w),u===i&&(n.activeFormattingElements.bookmark=w),n.treeAdapter.detachNode(u),n.treeAdapter.appendChild(b,u),u=b)}return u}function isr(n,i){const s=n.treeAdapter.getNamespaceURI(i.element),u=n.treeAdapter.createElement(i.token.tagName,s,i.token.attrs);return n.openElements.replace(i.element,u),i.element=u,u}function osr(n,i,s){const u=n.treeAdapter.getTagName(i),d=iue(u);if(n._isElementCausesFosterParenting(d))n._fosterParentElement(s);else{const g=n.treeAdapter.getNamespaceURI(i);d===W.TEMPLATE&&g===Fn.HTML&&(i=n.treeAdapter.getTemplateContent(i)),n.treeAdapter.appendChild(i,s)}}function ssr(n,i,s){const u=n.treeAdapter.getNamespaceURI(s.element),{token:d}=s,g=n.treeAdapter.createElement(d.tagName,u,d.attrs);n._adoptNodes(i,g),n.treeAdapter.appendChild(i,g),n.activeFormattingElements.insertElementAfterBookmark(g,d),n.activeFormattingElements.removeEntry(s),n.openElements.remove(s.element),n.openElements.insertAfter(i,g,d.tagID)}function u9e(n,i){for(let s=0;s=s;u--)n._setEndLocation(n.openElements.items[u],i);if(!n.fragmentContext&&n.openElements.stackTop>=0){const u=n.openElements.items[0],d=n.treeAdapter.getNodeSourceCodeLocation(u);if(d&&!d.endTag&&(n._setEndLocation(u,i),n.openElements.stackTop>=1)){const g=n.openElements.items[1],b=n.treeAdapter.getNodeSourceCodeLocation(g);b&&!b.endTag&&n._setEndLocation(g,i)}}}}function csr(n,i){n._setDocumentType(i);const s=i.forceQuirks?ww.QUIRKS:$or(i);For(i)||n._err(i,sn.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,s),n.insertionMode=ut.BEFORE_HTML}function GU(n,i){n._err(i,sn.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,ww.QUIRKS),n.insertionMode=ut.BEFORE_HTML,n._processToken(i)}function lsr(n,i){i.tagID===W.HTML?(n._insertElement(i,Fn.HTML),n.insertionMode=ut.BEFORE_HEAD):vH(n,i)}function dsr(n,i){const s=i.tagID;(s===W.HTML||s===W.HEAD||s===W.BODY||s===W.BR)&&vH(n,i)}function vH(n,i){n._insertFakeRootElement(),n.insertionMode=ut.BEFORE_HEAD,n._processToken(i)}function fsr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.HEAD:{n._insertElement(i,Fn.HTML),n.headElement=n.openElements.current,n.insertionMode=ut.IN_HEAD;break}default:EH(n,i)}}function hsr(n,i){const s=i.tagID;s===W.HEAD||s===W.BODY||s===W.HTML||s===W.BR?EH(n,i):n._err(i,sn.endTagWithoutMatchingOpenElement)}function EH(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:{Vp(n,i);break}case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:{n._appendElement(i,Fn.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,Fn.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:SH(n,i)}}function psr(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:{SH(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function jR(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 SH(n,i){n.openElements.pop(),n.insertionMode=ut.AFTER_HEAD,n._processToken(i)}function gsr(n,i){switch(i.tagID){case W.HTML:{Vp(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:TH(n,i)}}function bsr(n,i){switch(i.tagID){case W.NOSCRIPT:{n.openElements.pop(),n.insertionMode=ut.IN_HEAD;break}case W.BR:{TH(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function TH(n,i){const s=i.type===ha.EOF?sn.openElementsLeftAfterEof:sn.disallowedContentInNoscriptInHead;n._err(i,s),n.openElements.pop(),n.insertionMode=ut.IN_HEAD,n._processToken(i)}function msr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.BODY:{n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_BODY;break}case W.FRAMESET:{n._insertElement(i,Fn.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:AH(n,i)}}function wsr(n,i){switch(i.tagID){case W.BODY:case W.HTML:case W.BR:{AH(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function AH(n,i){n._insertFakeElement(Pt.BODY,W.BODY),n.insertionMode=ut.IN_BODY,oue(n,i)}function oue(n,i){switch(i.type){case ha.CHARACTER:{ZJt(n,i);break}case ha.WHITESPACE_CHARACTER:{XJt(n,i);break}case ha.COMMENT:{dDe(n,i);break}case ha.START_TAG:{Vp(n,i);break}case ha.END_TAG:{sue(n,i);break}case ha.EOF:{nXt(n,i);break}}}function XJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i)}function ZJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i),n.framesetOk=!1}function ysr(n,i){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],i.attrs)}function vsr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(s,i.attrs))}function Esr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&s&&(n.treeAdapter.detachNode(s),n.openElements.popAllUpToHtmlElement(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_FRAMESET)}function Ssr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function Tsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&lDe.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(i,Fn.HTML)}function Asr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function _sr(n,i){const s=n.openElements.tmplCount>0;(!n.formElement||s)&&(n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),s||(n.formElement=n.openElements.current))}function xsr(n,i){n.framesetOk=!1;const s=i.tagID;for(let u=n.openElements.stackTop;u>=0;u--){const d=n.openElements.tagIDs[u];if(s===W.LI&&d===W.LI||(s===W.DD||s===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[u],d))break}n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function ksr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.tokenizer.state=ob.PLAINTEXT}function Nsr(n,i){n.openElements.hasInScope(W.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(W.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.framesetOk=!1}function Csr(n,i){const s=n.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);s&&(u9e(n,i),n.openElements.remove(s.element),n.activeFormattingElements.removeEntry(s)),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Isr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Rsr(n,i){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(W.NOBR)&&(u9e(n,i),n._reconstructActiveFormattingElements()),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Osr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function Lsr(n,i){n.treeAdapter.getDocumentMode(n.document)!==ww.QUIRKS&&n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_TABLE}function QJt(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function eXt(n){const i=UJt(n,iR.TYPE);return i!=null&&i.toLowerCase()===Xor}function Dsr(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),eXt(i)||(n.framesetOk=!1),i.ackSelfClosing=!0}function Msr(n,i){n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0}function Psr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function jsr(n,i){i.tagName=Pt.IMG,i.tagID=W.IMG,QJt(n,i)}function Fsr(n,i){n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.tokenizer.state=ob.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=ut.TEXT}function $sr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function Bsr(n,i){n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function v$t(n,i){n._switchToTextParsing(i,ob.RAWTEXT)}function Usr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.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 Hsr(n,i){n.openElements.currentTagId===W.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML)}function zsr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(i,Fn.HTML)}function Gsr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(W.RTC),n._insertElement(i,Fn.HTML)}function qsr(n,i){n._reconstructActiveFormattingElements(),WJt(i),a9e(i),i.selfClosing?n._appendElement(i,Fn.MATHML):n._insertElement(i,Fn.MATHML),i.ackSelfClosing=!0}function Vsr(n,i){n._reconstructActiveFormattingElements(),KJt(i),a9e(i),i.selfClosing?n._appendElement(i,Fn.SVG):n._insertElement(i,Fn.SVG),i.ackSelfClosing=!0}function E$t(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML)}function Vp(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:{Isr(n,i);break}case W.A:{Csr(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{Tsr(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:{Ssr(n,i);break}case W.LI:case W.DD:case W.DT:{xsr(n,i);break}case W.BR:case W.IMG:case W.WBR:case W.AREA:case W.EMBED:case W.KEYGEN:{QJt(n,i);break}case W.HR:{Psr(n,i);break}case W.RB:case W.RTC:{zsr(n,i);break}case W.RT:case W.RP:{Gsr(n,i);break}case W.PRE:case W.LISTING:{Asr(n,i);break}case W.XMP:{$sr(n,i);break}case W.SVG:{Vsr(n,i);break}case W.HTML:{ysr(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:{vsr(n,i);break}case W.FORM:{_sr(n,i);break}case W.NOBR:{Rsr(n,i);break}case W.MATH:{qsr(n,i);break}case W.TABLE:{Lsr(n,i);break}case W.INPUT:{Dsr(n,i);break}case W.PARAM:case W.TRACK:case W.SOURCE:{Msr(n,i);break}case W.IMAGE:{jsr(n,i);break}case W.BUTTON:{Nsr(n,i);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{Osr(n,i);break}case W.IFRAME:{Bsr(n,i);break}case W.SELECT:{Usr(n,i);break}case W.OPTION:case W.OPTGROUP:{Hsr(n,i);break}case W.NOEMBED:case W.NOFRAMES:{v$t(n,i);break}case W.FRAMESET:{Esr(n,i);break}case W.TEXTAREA:{Fsr(n,i);break}case W.NOSCRIPT:{n.options.scriptingEnabled?v$t(n,i):E$t(n,i);break}case W.PLAINTEXT:{ksr(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:E$t(n,i)}}function Wsr(n,i){if(n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,n.options.sourceCodeLocationInfo)){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n._setEndLocation(s,i)}}function Ksr(n,i){n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,lXt(n,i))}function Ysr(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s))}function Jsr(n){const i=n.openElements.tmplCount>0,{formElement:s}=n;i||(n.formElement=null),(s||i)&&n.openElements.hasInScope(W.FORM)&&(n.openElements.generateImpliedEndTags(),i?n.openElements.popUntilTagNamePopped(W.FORM):s&&n.openElements.remove(s))}function Xsr(n){n.openElements.hasInButtonScope(W.P)||n._insertFakeElement(Pt.P,W.P),n._closePElement()}function Zsr(n){n.openElements.hasInListItemScope(W.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(W.LI),n.openElements.popUntilTagNamePopped(W.LI))}function Qsr(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTagsWithExclusion(s),n.openElements.popUntilTagNamePopped(s))}function ear(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function tar(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s),n.activeFormattingElements.clearToLastMarker())}function nar(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(Pt.BR,W.BR),n.openElements.pop(),n.framesetOk=!1}function tXt(n,i){const s=i.tagName,u=i.tagID;for(let d=n.openElements.stackTop;d>0;d--){const g=n.openElements.items[d],b=n.openElements.tagIDs[d];if(u===b&&(u!==W.UNKNOWN||n.treeAdapter.getTagName(g)===s)){n.openElements.generateImpliedEndTagsWithExclusion(u),n.openElements.stackTop>=d&&n.openElements.shortenToLength(d);break}if(n._isSpecialElement(g,b))break}}function sue(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:{u9e(n,i);break}case W.P:{Xsr(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:{Ysr(n,i);break}case W.LI:{Zsr(n);break}case W.DD:case W.DT:{Qsr(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{ear(n);break}case W.BR:{nar(n);break}case W.BODY:{Wsr(n,i);break}case W.HTML:{Ksr(n,i);break}case W.FORM:{Jsr(n);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{tar(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:tXt(n,i)}}function nXt(n,i){n.tmplInsertionModeStack.length>0?cXt(n,i):c9e(n,i)}function rar(n,i){var s;i.tagID===W.SCRIPT&&((s=n.scriptHandler)===null||s===void 0||s.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function iar(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&&YJt.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:{iXt(n,i);break}case ha.WHITESPACE_CHARACTER:{rXt(n,i);break}}else Gz(n,i)}function oar(n,i){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_CAPTION}function sar(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_COLUMN_GROUP}function aar(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.COLGROUP,W.COLGROUP),n.insertionMode=ut.IN_COLUMN_GROUP,l9e(n,i)}function uar(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_TABLE_BODY}function car(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.TBODY,W.TBODY),n.insertionMode=ut.IN_TABLE_BODY,aue(n,i)}function lar(n,i){n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode(),n._processStartTag(i))}function dar(n,i){eXt(i)?n._appendElement(i,Fn.HTML):Gz(n,i),i.ackSelfClosing=!0}function far(n,i){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(i,Fn.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function OM(n,i){switch(i.tagID){case W.TD:case W.TH:case W.TR:{car(n,i);break}case W.STYLE:case W.SCRIPT:case W.TEMPLATE:{Hv(n,i);break}case W.COL:{aar(n,i);break}case W.FORM:{far(n,i);break}case W.TABLE:{lar(n,i);break}case W.TBODY:case W.TFOOT:case W.THEAD:{uar(n,i);break}case W.INPUT:{dar(n,i);break}case W.CAPTION:{oar(n,i);break}case W.COLGROUP:{sar(n,i);break}default:Gz(n,i)}}function pz(n,i){switch(i.tagID){case W.TABLE:{n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode());break}case W.TEMPLATE:{jR(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:Gz(n,i)}}function Gz(n,i){const s=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,oue(n,i),n.fosterParentingEnabled=s}function rXt(n,i){n.pendingCharacterTokens.push(i)}function iXt(n,i){n.pendingCharacterTokens.push(i),n.hasNonWhitespacePendingCharacterToken=!0}function qU(n,i){let s=0;if(n.hasNonWhitespacePendingCharacterToken)for(;s0&&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:{jR(n,i);break}}}function war(n,i){const s=i.tagID;s===W.CAPTION||s===W.TABLE||s===W.TBODY||s===W.TFOOT||s===W.THEAD||s===W.TR||s===W.TD||s===W.TH?(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n._processStartTag(i)):aXt(n,i)}function yar(n,i){const s=i.tagID;s===W.CAPTION||s===W.TABLE||s===W.TBODY||s===W.TFOOT||s===W.THEAD||s===W.TR||s===W.TD||s===W.TH?n.openElements.hasInTableScope(s)&&(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n.onEndTag(i)):uXt(n,i)}function Ear(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,OM(n,i);break}case W.COL:{n.tmplInsertionModeStack[0]=ut.IN_COLUMN_GROUP,n.insertionMode=ut.IN_COLUMN_GROUP,l9e(n,i);break}case W.TR:{n.tmplInsertionModeStack[0]=ut.IN_TABLE_BODY,n.insertionMode=ut.IN_TABLE_BODY,aue(n,i);break}case W.TD:case W.TH:{n.tmplInsertionModeStack[0]=ut.IN_ROW,n.insertionMode=ut.IN_ROW,uue(n,i);break}default:n.tmplInsertionModeStack[0]=ut.IN_BODY,n.insertionMode=ut.IN_BODY,Vp(n,i)}}function Sar(n,i){i.tagID===W.TEMPLATE&&jR(n,i)}function cXt(n,i){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(i)):c9e(n,i)}function Tar(n,i){i.tagID===W.HTML?Vp(n,i):xse(n,i)}function lXt(n,i){var s;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 u=n.openElements.items[1];u&&!(!((s=n.treeAdapter.getNodeSourceCodeLocation(u))===null||s===void 0)&&s.endTag)&&n._setEndLocation(u,i)}}else xse(n,i)}function xse(n,i){n.insertionMode=ut.IN_BODY,oue(n,i)}function Aar(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.FRAMESET:{n._insertElement(i,Fn.HTML);break}case W.FRAME:{n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0;break}case W.NOFRAMES:{Hv(n,i);break}}}function _ar(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 xar(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function kar(n,i){i.tagID===W.HTML&&(n.insertionMode=ut.AFTER_AFTER_FRAMESET)}function Nar(n,i){i.tagID===W.HTML?Vp(n,i):aoe(n,i)}function aoe(n,i){n.insertionMode=ut.IN_BODY,oue(n,i)}function Car(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function Iar(n,i){i.chars=Oc,n._insertCharacters(i)}function Rar(n,i){n._insertCharacters(i),n.framesetOk=!1}function dXt(n){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==Fn.HTML&&n.openElements.currentTagId!==void 0&&!n._isIntegrationPoint(n.openElements.currentTagId,n.openElements.current);)n.openElements.pop()}function Oar(n,i){if(Vor(i))dXt(n),n._startTagOutsideForeignContent(i);else{const s=n._getAdjustedCurrentElement(),u=n.treeAdapter.getNamespaceURI(s);u===Fn.MATHML?WJt(i):u===Fn.SVG&&(Wor(i),KJt(i)),a9e(i),i.selfClosing?n._appendElement(i,u):n._insertElement(i,u),i.ackSelfClosing=!0}}function Lar(n,i){if(i.tagID===W.P||i.tagID===W.BR){dXt(n),n._endTagOutsideForeignContent(i);return}for(let s=n.openElements.stackTop;s>0;s--){const u=n.openElements.items[s];if(n.treeAdapter.getNamespaceURI(u)===Fn.HTML){n._endTagOutsideForeignContent(i);break}const d=n.treeAdapter.getTagName(u);if(d.toLowerCase()===i.tagName){i.tagName=d,n.openElements.shortenToLength(s);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 Dar(n,i){return JJt.parse(n,i)}function Mar(n,i,s){typeof n=="string"&&(s=i,i=n,n=null);const u=JJt.getFragmentParser(n,s);return u.tokenizer.write(i,!0),u.getFragment()}function Par(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?S$t(n.position):"start"in n||"end"in n?S$t(n):"line"in n||"column"in n?hDe(n):""}function hDe(n){return T$t(n&&n.line)+":"+T$t(n&&n.column)}function S$t(n){return hDe(n&&n.start)+"-"+hDe(n&&n.end)}function T$t(n){return n&&typeof n=="number"?n:1}class Kg extends Error{constructor(i,s,u){super(),typeof s=="string"&&(u=s,s=void 0);let d="",g={},b=!1;if(s&&("line"in s&&"column"in s?g={place:s}:"start"in s&&"end"in s?g={place:s}:"type"in s?g={ancestors:[s],place:s.position}:g={...s}),typeof i=="string"?d=i:!g.cause&&i&&(b=!0,d=i.message,g.cause=i),!g.ruleId&&!g.source&&typeof u=="string"){const E=u.indexOf(":");E===-1?g.ruleId=u:(g.source=u.slice(0,E),g.ruleId=u.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=Par(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 k2={basename:jar,dirname:Far,extname:$ar,join:Bar,sep:"/"};function jar(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');qz(n);let s=0,u=-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){s=d+1;break}}else u<0&&(g=!0,u=d+1);return u<0?"":n.slice(s,u)}if(i===n)return"";let b=-1,w=i.length-1;for(;d--;)if(n.codePointAt(d)===47){if(g){s=d+1;break}}else b<0&&(g=!0,b=d+1),w>-1&&(n.codePointAt(d)===i.codePointAt(w--)?w<0&&(u=d):(w=-1,u=b));return s===u?u=b:u<0&&(u=n.length),n.slice(s,u)}function Far(n){if(qz(n),n.length===0)return".";let i=-1,s=n.length,u;for(;--s;)if(n.codePointAt(s)===47){if(u){i=s;break}}else u||(u=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function $ar(n){qz(n);let i=n.length,s=-1,u=0,d=-1,g=0,b;for(;i--;){const w=n.codePointAt(i);if(w===47){if(b){u=i+1;break}continue}s<0&&(b=!0,s=i+1),w===46?d<0?d=i:g!==1&&(g=1):d>-1&&(g=-1)}return d<0||s<0||g===0||g===1&&d===s-1&&d===u+1?"":n.slice(d,s)}function Bar(...n){let i=-1,s;for(;++i0&&n.codePointAt(n.length-1)===47&&(s+="/"),i?"/"+s:s}function Har(n,i){let s="",u=0,d=-1,g=0,b=-1,w,E;for(;++b<=n.length;){if(b2){if(E=s.lastIndexOf("/"),E!==s.length-1){E<0?(s="",u=0):(s=s.slice(0,E),u=s.length-1-s.lastIndexOf("/")),d=b,g=0;continue}}else if(s.length>0){s="",u=0,d=b,g=0;continue}}i&&(s=s.length>0?s+"/..":"..",u=2)}else s.length>0?s+="/"+n.slice(d+1,b):s=n.slice(d+1,b),u=b-d-1;d=b,g=0}else w===46&&g>-1?g++:g=-1}return s}function qz(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const zar={cwd:Gar};function Gar(){return"/"}function pDe(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function qar(n){if(typeof n=="string")n=new URL(n);else if(!pDe(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 Var(n)}function Var(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const i=n.pathname;let s=-1;for(;++s`",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 `