var CCn=Object.defineProperty;var ICn=(n,i,s)=>i in n?CCn(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Zf=(n,i,s)=>ICn(n,typeof i!="symbol"?i+"":i,s);function RCn(n,i){for(var s=0;sc[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const g of d)if(g.type==="childList")for(const b of g.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&c(b)}).observe(document,{childList:!0,subtree:!0});function 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 c(d){if(d.ep)return;d.ep=!0;const g=s(d);fetch(d.href,g)}})();var I5=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 aBt={exports:{}},Rse={},cBt={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 mz=Symbol.for("react.element"),OCn=Symbol.for("react.portal"),DCn=Symbol.for("react.fragment"),LCn=Symbol.for("react.strict_mode"),MCn=Symbol.for("react.profiler"),PCn=Symbol.for("react.provider"),jCn=Symbol.for("react.context"),FCn=Symbol.for("react.forward_ref"),$Cn=Symbol.for("react.suspense"),BCn=Symbol.for("react.memo"),UCn=Symbol.for("react.lazy"),t5t=Symbol.iterator;function HCn(n){return n===null||typeof n!="object"?null:(n=t5t&&n[t5t]||n["@@iterator"],typeof n=="function"?n:null)}var uBt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lBt=Object.assign,dBt={};function LM(n,i,s){this.props=n,this.context=i,this.refs=dBt,this.updater=s||uBt}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 fBt(){}fBt.prototype=LM.prototype;function ILe(n,i,s){this.props=n,this.context=i,this.refs=dBt,this.updater=s||uBt}var RLe=ILe.prototype=new fBt;RLe.constructor=ILe;lBt(RLe,LM.prototype);RLe.isPureReactComponent=!0;var n5t=Array.isArray,hBt=Object.prototype.hasOwnProperty,OLe={current:null},pBt={key:!0,ref:!0,__self:!0,__source:!0};function gBt(n,i,s){var c,d={},g=null,b=null;if(i!=null)for(c in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)hBt.call(i,c)&&!pBt.hasOwnProperty(c)&&(d[c]=i[c]);var w=arguments.length-2;if(w===1)d.children=s;else if(1>>1,Be=Ae[ut];if(0>>1;utd(pt,We))Ktd(Et,pt)?(Ae[ut]=Et,Ae[Kt]=We,ut=Kt):(Ae[ut]=pt,Ae[Nt]=We,ut=Nt);else if(Ktd(Et,We))Ae[ut]=Et,Ae[Kt]=We,ut=Kt;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=[],_=1,A=null,C=3,O=!1,L=!1,D=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(Ae){for(var xe=s(S);xe!==null;){if(xe.callback===null)c(S);else if(xe.startTime<=Ae)c(S),xe.sortIndex=xe.expirationTime,i(E,xe);else break;xe=s(S)}}function z(Ae){if(D=!1,j(Ae),!L)if(s(E)!==null)L=!0,Se(ee);else{var xe=s(S);xe!==null&&Re(z,xe.startTime-Ae)}}function ee(Ae,xe){L=!1,D&&(D=!1,$(ae),ae=-1),O=!0;var We=C;try{for(j(xe),A=s(E);A!==null&&(!(A.expirationTime>xe)||Ae&&!ue());){var ut=A.callback;if(typeof ut=="function"){A.callback=null,C=A.priorityLevel;var Be=ut(A.expirationTime<=xe);xe=n.unstable_now(),typeof Be=="function"?A.callback=Be:A===s(E)&&c(E),j(xe)}else c(E);A=s(E)}if(A!==null)var bt=!0;else{var Nt=s(S);Nt!==null&&Re(z,Nt.startTime-xe),bt=!1}return bt}finally{A=null,C=We,O=!1}}var ne=!1,Q=null,ae=-1,he=5,pe=-1;function ue(){return!(n.unstable_now()-peAe||125ut?(Ae.sortIndex=We,i(S,Ae),s(E)===null&&Ae===s(S)&&(D?($(ae),ae=-1):D=!0,Re(z,We-ut))):(Ae.sortIndex=Be,i(E,Ae),L||O||(L=!0,Se(ee))),Ae},n.unstable_shouldYield=ue,n.unstable_wrapCallback=function(Ae){var xe=C;return function(){var We=C;C=xe;try{return Ae.apply(this,arguments)}finally{C=We}}}})(vBt);yBt.exports=vBt;var QCn=yBt.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 eIn=H,Hm=QCn;function or(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"),f6e=Object.prototype.hasOwnProperty,tIn=/^[: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]*$/,i5t={},o5t={};function nIn(n){return f6e.call(o5t,n)?!0:f6e.call(i5t,n)?!1:tIn.test(n)?o5t[n]=!0:(i5t[n]=!0,!1)}function rIn(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function iIn(n,i,s,c){if(i===null||typeof i>"u"||rIn(n,i,s,c))return!0;if(c)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,c,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,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 MLe=/[\-:]([a-z])/g;function PLe(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(MLe,PLe);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(MLe,PLe);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(MLe,PLe);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 jLe(n,i,s,c){var d=Uh.hasOwnProperty(i)?Uh[i]:null;(d!==null?d.type!==0:c||!(2w||d[b]!==g[w]){var E=` `+d[b].replace(" at new "," at ");return n.displayName&&E.includes("")&&(E=E.replace("",n.displayName)),E}while(1<=b&&0<=w);break}}}finally{dCe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?WU(n):""}function oIn(n){switch(n.tag){case 5:return WU(n.type);case 16:return WU("Lazy");case 13:return WU("Suspense");case 19:return WU("SuspenseList");case 0:case 2:case 15:return n=fCe(n.type,!1),n;case 11:return n=fCe(n.type.render,!1),n;case 1:return n=fCe(n.type,!0),n;default:return""}}function b6e(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 O5:return"Fragment";case R5:return"Portal";case h6e:return"Profiler";case FLe:return"StrictMode";case p6e:return"Suspense";case g6e:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TBt:return(n.displayName||"Context")+".Consumer";case SBt:return(n._context.displayName||"Context")+".Provider";case $Le:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case BLe:return i=n.displayName||null,i!==null?i:b6e(n.type)||"Memo";case Pk:i=n._payload,n=n._init;try{return b6e(n(i))}catch{}}return null}function sIn(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 b6e(i);case 8:return i===FLe?"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 _Bt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function aIn(n){var i=_Bt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+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){c=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Zre(n){n._valueTracker||(n._valueTracker=aIn(n))}function xBt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=_Bt(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function boe(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 m6e(n,i){var s=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function a5t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=nN(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function kBt(n,i){i=i.checked,i!=null&&jLe(n,"checked",i,!1)}function w6e(n,i){kBt(n,i);var s=nN(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?y6e(n,i.type,s):i.hasOwnProperty("defaultValue")&&y6e(n,i.type,nN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function c5t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,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 y6e(n,i,s){(i!=="number"||boe(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var KU=Array.isArray;function J5(n,i,s,c){if(n=n.options,i){i={};for(var d=0;d"+i.valueOf().toString()+"",i=Qre.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function NH(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var cH={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},cIn=["Webkit","ms","Moz","O"];Object.keys(cH).forEach(function(n){cIn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),cH[i]=cH[n]})});function RBt(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||cH.hasOwnProperty(n)&&cH[n]?(""+i).trim():i+"px"}function OBt(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,d=RBt(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,d):n[s]=d}}var uIn=fl({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function S6e(n,i){if(i){if(uIn[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(or(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(or(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(or(61))}if(i.style!=null&&typeof i.style!="object")throw Error(or(62))}}function T6e(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 A6e=null;function ULe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var _6e=null,X5=null,Z5=null;function d5t(n){if(n=vz(n)){if(typeof _6e!="function")throw Error(or(280));var i=n.stateNode;i&&(i=Pse(i),_6e(n.stateNode,n.type,i))}}function DBt(n){X5?Z5?Z5.push(n):Z5=[n]:X5=n}function LBt(){if(X5){var n=X5,i=Z5;if(Z5=X5=null,d5t(n),i)for(n=0;n>>=0,n===0?32:31-(vIn(n)/EIn|0)|0}var eie=64,tie=4194304;function YU(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 voe(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,d=n.suspendedLanes,g=n.pingedLanes,b=s&268435455;if(b!==0){var w=b&~d;w!==0?c=YU(w):(g&=b,g!==0&&(c=YU(g)))}else b=s&~d,b!==0?c=YU(b):g!==0&&(c=YU(g));if(c===0)return 0;if(i!==0&&i!==c&&!(i&d)&&(d=c&-c,g=i&-i,d>=g||d===16&&(g&4194240)!==0))return i;if(c&4&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0s;s++)i.push(n);return i}function wz(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Mv(i),n[i]=s}function _In(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 c=n.eventTimes;for(n=n.expirationTimes;0=lH),v5t=" ",E5t=!1;function eUt(n,i){switch(n){case"keyup":return QIn.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tUt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var D5=!1;function t4n(n,i){switch(n){case"compositionend":return tUt(i);case"keypress":return i.which!==32?null:(E5t=!0,v5t);case"textInput":return n=i.data,n===v5t&&E5t?null:n;default:return null}}function n4n(n,i){if(D5)return n==="compositionend"||!YLe&&eUt(n,i)?(n=ZBt(),qie=VLe=zk=null,D5=!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=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=_5t(s)}}function oUt(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?oUt(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function sUt(){for(var n=window,i=boe();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=boe(n.document)}return i}function JLe(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 d4n(n){var i=sUt(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&oUt(s.ownerDocument.documentElement,s)){if(c!==null&&JLe(s)){if(i=c.start,n=c.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(c.start,d);c=c.end===void 0?g:Math.min(c.end,d),!n.extend&&g>c&&(d=c,c=g,g=d),d=x5t(s,g);var b=x5t(s,c);d&&b&&(n.rangeCount!==1||n.anchorNode!==d.node||n.anchorOffset!==d.offset||n.focusNode!==b.node||n.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(d.node,d.offset),n.removeAllRanges(),g>c?(n.addRange(i),n.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),n.addRange(i)))}}for(i=[],n=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,R6e=null,fH=null,O6e=!1;function k5t(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;O6e||L5==null||L5!==boe(c)||(c=L5,"selectionStart"in c&&JLe(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),fH&&LH(fH,c)||(fH=c,c=Toe(R6e,"onSelect"),0j5||(n.current=F6e[j5],F6e[j5]=null,j5--)}function Wc(n,i){j5++,F6e[j5]=n.current,n.current=i}var rN={},Bp=wN(rN),lb=wN(!1),oR=rN;function hM(n,i){var s=n.type.contextTypes;if(!s)return rN;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in s)d[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function db(n){return n=n.childContextTypes,n!=null}function _oe(){du(lb),du(Bp)}function L5t(n,i,s){if(Bp.current!==rN)throw Error(or(168));Wc(Bp,i),Wc(lb,s)}function gUt(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var d in c)if(!(d in i))throw Error(or(108,sIn(n)||"Unknown",d));return fl({},s,c)}function xoe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||rN,oR=Bp.current,Wc(Bp,n),Wc(lb,lb.current),!0}function M5t(n,i,s){var c=n.stateNode;if(!c)throw Error(or(169));s?(n=gUt(n,i,oR),c.__reactInternalMemoizedMergedChildContext=n,du(lb),du(Bp),Wc(Bp,n)):du(lb),Wc(lb,s)}var oA=null,jse=!1,xCe=!1;function bUt(n){oA===null?oA=[n]:oA.push(n)}function T4n(n){jse=!0,bUt(n)}function yN(){if(!xCe&&oA!==null){xCe=!0;var n=0,i=uc;try{var s=oA;for(uc=1;n>=b,d-=b,cA=1<<32-Mv(i)+d|s<ae?(he=Q,Q=null):he=Q.sibling;var pe=C($,Q,j[ae],z);if(pe===null){Q===null&&(Q=he);break}n&&Q&&pe.alternate===null&&i($,Q),P=g(pe,P,ae),ne===null?ee=pe:ne.sibling=pe,ne=pe,Q=he}if(ae===j.length)return s($,Q),Du&&q4($,ae),ee;if(Q===null){for(;aeae?(he=Q,Q=null):he=Q.sibling;var ue=C($,Q,pe.value,z);if(ue===null){Q===null&&(Q=he);break}n&&Q&&ue.alternate===null&&i($,Q),P=g(ue,P,ae),ne===null?ee=ue:ne.sibling=ue,ne=ue,Q=he}if(pe.done)return s($,Q),Du&&q4($,ae),ee;if(Q===null){for(;!pe.done;ae++,pe=j.next())pe=A($,pe.value,z),pe!==null&&(P=g(pe,P,ae),ne===null?ee=pe:ne.sibling=pe,ne=pe);return Du&&q4($,ae),ee}for(Q=c($,Q);!pe.done;ae++,pe=j.next())pe=O(Q,$,ae,pe.value,z),pe!==null&&(n&&pe.alternate!==null&&Q.delete(pe.key===null?ae:pe.key),P=g(pe,P,ae),ne===null?ee=pe:ne.sibling=pe,ne=pe);return n&&Q.forEach(function(fe){return i($,fe)}),Du&&q4($,ae),ee}function B($,P,j,z){if(typeof j=="object"&&j!==null&&j.type===O5&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Xre:e:{for(var ee=j.key,ne=P;ne!==null;){if(ne.key===ee){if(ee=j.type,ee===O5){if(ne.tag===7){s($,ne.sibling),P=d(ne,j.props.children),P.return=$,$=P;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Pk&&F5t(ee)===ne.type){s($,ne.sibling),P=d(ne,j.props),P.ref=MU($,ne,j),P.return=$,$=P;break e}s($,ne);break}else i($,ne);ne=ne.sibling}j.type===O5?(P=eR(j.props.children,$.mode,z,j.key),P.return=$,$=P):(z=Qie(j.type,j.key,j.props,null,$.mode,z),z.ref=MU($,P,j),z.return=$,$=z)}return b($);case R5:e:{for(ne=j.key;P!==null;){if(P.key===ne)if(P.tag===4&&P.stateNode.containerInfo===j.containerInfo&&P.stateNode.implementation===j.implementation){s($,P.sibling),P=d(P,j.children||[]),P.return=$,$=P;break e}else{s($,P);break}else i($,P);P=P.sibling}P=LCe(j,$.mode,z),P.return=$,$=P}return b($);case Pk:return ne=j._init,B($,P,ne(j._payload),z)}if(KU(j))return L($,P,j,z);if(IU(j))return D($,P,j,z);cie($,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,P!==null&&P.tag===6?(s($,P.sibling),P=d(P,j),P.return=$,$=P):(s($,P),P=DCe(j,$.mode,z),P.return=$,$=P),b($)):s($,P)}return B}var gM=vUt(!0),EUt=vUt(!1),Coe=wN(null),Ioe=null,B5=null,e5e=null;function t5e(){e5e=B5=Ioe=null}function n5e(n){var i=Coe.current;du(Coe),n._currentValue=i}function U6e(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function eM(n,i){Ioe=n,e5e=B5=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&i&&(ab=!0),n.firstContext=null)}function _w(n){var i=n._currentValue;if(e5e!==n)if(n={context:n,memoizedValue:i,next:null},B5===null){if(Ioe===null)throw Error(or(308));B5=n,Ioe.dependencies={lanes:0,firstContext:n}}else B5=B5.next=n;return i}var J4=null;function r5e(n){J4===null?J4=[n]:J4.push(n)}function SUt(n,i,s,c){var d=i.interleaved;return d===null?(s.next=s,r5e(i)):(s.next=d.next,d.next=s),i.interleaved=s,mA(n,c)}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 i5e(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function TUt(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 c=n.updateQueue;if(c===null)return null;if(c=c.shared,ga&2){var d=c.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),c.pending=i,mA(n,s)}return d=c.interleaved,d===null?(i.next=i,r5e(c)):(i.next=d.next,d.next=i),c.interleaved=i,mA(n,s)}function Wie(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,zLe(n,s)}}function $5t(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){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:c.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function Roe(n,i,s,c){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 _=n.alternate;_!==null&&(_=_.updateQueue,w=_.lastBaseUpdate,w!==b&&(w===null?_.firstBaseUpdate=S:w.next=S,_.lastBaseUpdate=E))}if(g!==null){var A=d.baseState;b=0,_=S=E=null,w=g;do{var C=w.lane,O=w.eventTime;if((c&C)===C){_!==null&&(_=_.next={eventTime:O,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var L=n,D=w;switch(C=i,O=s,D.tag){case 1:if(L=D.payload,typeof L=="function"){A=L.call(O,A,C);break e}A=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=D.payload,C=typeof L=="function"?L.call(O,A,C):L,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 O={eventTime:O,lane:C,tag:w.tag,payload:w.payload,callback:w.callback,next:null},_===null?(S=_=O,E=A):_=_.next=O,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(_===null&&(E=A),d.baseState=E,d.firstBaseUpdate=S,d.lastBaseUpdate=_,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);cR|=b,n.lanes=b,n.memoizedState=A}}function B5t(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;is?s:4,n(!0);var c=NCe.transition;NCe.transition={};try{n(!1),i()}finally{uc=s,NCe.transition=c}}function BUt(){return xw().memoizedState}function k4n(n,i,s){var c=Zk(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},UUt(n))HUt(i,s);else if(s=SUt(n,i,s,c),s!==null){var d=Hg();Pv(s,n,c,d),zUt(s,i,c)}}function N4n(n,i,s){var c=Zk(n),d={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(UUt(n))HUt(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,jv(w,b)){var E=i.interleaved;E===null?(d.next=d,r5e(i)):(d.next=E.next,E.next=d),i.interleaved=d;return}}catch{}finally{}s=SUt(n,i,d,c),s!==null&&(d=Hg(),Pv(s,n,c,d),zUt(s,i,c))}}function UUt(n){var i=n.alternate;return n===dl||i!==null&&i===dl}function HUt(n,i){hH=Doe=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function zUt(n,i,s){if(s&4194240){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,zLe(n,s)}}var Loe={readContext:_w,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},C4n={readContext:_w,useCallback:function(n,i){return k2().memoizedState=[n,i===void 0?null:i],n},useContext:_w,useEffect:H5t,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,Yie(4194308,4,MUt.bind(null,i,n),s)},useLayoutEffect:function(n,i){return Yie(4194308,4,n,i)},useInsertionEffect:function(n,i){return Yie(4,2,n,i)},useMemo:function(n,i){var s=k2();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=k2();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=k4n.bind(null,dl,n),[c.memoizedState,n]},useRef:function(n){var i=k2();return n={current:n},i.memoizedState=n},useState:U5t,useDebugValue:f5e,useDeferredValue:function(n){return k2().memoizedState=n},useTransition:function(){var n=U5t(!1),i=n[0];return n=x4n.bind(null,n[1]),k2().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=dl,d=k2();if(Du){if(s===void 0)throw Error(or(407));s=s()}else{if(s=i(),rh===null)throw Error(or(349));aR&30||kUt(c,i,s)}d.memoizedState=s;var g={value:s,getSnapshot:i};return d.queue=g,H5t(CUt.bind(null,c,g,n),[n]),c.flags|=2048,HH(9,NUt.bind(null,c,g,s,i),void 0,null),s},useId:function(){var n=k2(),i=rh.identifierPrefix;if(Du){var s=uA,c=cA;s=(c&~(1<<32-Mv(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=BH++,0<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=b.createElement(s,{is:c.is}):(n=b.createElement(s),s==="select"&&(b=n,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):n=b.createElementNS(n,s),n[R2]=i,n[jH]=c,QUt(n,i,!1,!1),i.stateNode=n;e:{switch(b=T6e(s,c),s){case"dialog":lu("cancel",n),lu("close",n),d=c;break;case"iframe":case"object":case"embed":lu("load",n),d=c;break;case"video":case"audio":for(d=0;dwM&&(i.flags|=128,c=!0,PU(g,!1),i.lanes=4194304)}else{if(!c)if(n=Ooe(b),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),PU(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Du)return jp(i),null}else 2*pd()-g.renderingStartTime>wM&&s!==1073741824&&(i.flags|=128,c=!0,PU(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=ul.current,Wc(ul,c?s&1|2:s&1),i):(jp(i),null);case 22:case 23:return w5e(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&i.mode&1?Lm&1073741824&&(jp(i),i.subtreeFlags&6&&(i.flags|=8192)):jp(i),null;case 24:return null;case 25:return null}throw Error(or(156,i.tag))}function j4n(n,i){switch(ZLe(i),i.tag){case 1:return db(i.type)&&_oe(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return bM(),du(lb),du(Bp),a5e(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 5:return s5e(i),null;case 13:if(du(ul),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(or(340));pM()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return du(ul),null;case 4:return bM(),null;case 10:return n5e(i.type._context),null;case 22:case 23:return w5e(),null;case 24:return null;default:return null}}var lie=!1,Fp=!1,F4n=typeof WeakSet=="function"?WeakSet:Set,Vr=null;function U5(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){jl(n,i,c)}else s.current=null}function J6e(n,i,s){try{s()}catch(c){jl(n,i,c)}}var Q5t=!1;function $4n(n,i){if(D6e=Eoe,n=sUt(),JLe(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var d=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var b=0,w=-1,E=-1,S=0,_=0,A=n,C=null;t:for(;;){for(var O;A!==s||d!==0&&A.nodeType!==3||(w=b+d),A!==g||c!==0&&A.nodeType!==3||(E=b+c),A.nodeType===3&&(b+=A.nodeValue.length),(O=A.firstChild)!==null;)C=A,A=O;for(;;){if(A===n)break t;if(C===s&&++S===d&&(w=b),C===g&&++_===c&&(E=b),(O=A.nextSibling)!==null)break;A=C,C=A.parentNode}A=O}s=w===-1||E===-1?null:{start:w,end:E}}else s=null}s=s||{start:0,end:0}}else s=null;for(L6e={focusedElem:n,selectionRange:s},Eoe=!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 L=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var D=L.memoizedProps,B=L.memoizedState,$=i.stateNode,P=$.getSnapshotBeforeUpdate(i.elementType===i.type?D:Nv(i.type,D),B);$.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var j=i.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(or(163))}}catch(z){jl(i,i.return,z)}if(n=i.sibling,n!==null){n.return=i.return,Vr=n;break}Vr=i.return}return L=Q5t,Q5t=!1,L}function pH(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&n)===n){var g=d.destroy;d.destroy=void 0,g!==void 0&&J6e(i,s,g)}d=d.next}while(d!==c)}}function Bse(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 c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function X6e(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 nHt(n){var i=n.alternate;i!==null&&(n.alternate=null,nHt(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[R2],delete i[jH],delete i[j6e],delete i[E4n],delete i[S4n])),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 rHt(n){return n.tag===5||n.tag===3||n.tag===4}function eMt(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||rHt(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 Z6e(n,i,s){var c=n.tag;if(c===5||c===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=Aoe));else if(c!==4&&(n=n.child,n!==null))for(Z6e(n,i,s),n=n.sibling;n!==null;)Z6e(n,i,s),n=n.sibling}function Q6e(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Q6e(n,i,s),n=n.sibling;n!==null;)Q6e(n,i,s),n=n.sibling}var Ph=null,Cv=!1;function Nk(n,i,s){for(s=s.child;s!==null;)iHt(n,i,s),s=s.sibling}function iHt(n,i,s){if(P2&&typeof P2.onCommitFiberUnmount=="function")try{P2.onCommitFiberUnmount(Ose,s)}catch{}switch(s.tag){case 5:Fp||U5(s,i);case 6:var c=Ph,d=Cv;Ph=null,Nk(n,i,s),Ph=c,Cv=d,Ph!==null&&(Cv?(n=Ph,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Ph.removeChild(s.stateNode));break;case 18:Ph!==null&&(Cv?(n=Ph,s=s.stateNode,n.nodeType===8?_Ce(n.parentNode,s):n.nodeType===1&&_Ce(n,s),OH(n)):_Ce(Ph,s.stateNode));break;case 4:c=Ph,d=Cv,Ph=s.stateNode.containerInfo,Cv=!0,Nk(n,i,s),Ph=c,Cv=d;break;case 0:case 11:case 14:case 15:if(!Fp&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var g=d,b=g.destroy;g=g.tag,b!==void 0&&(g&2||g&4)&&J6e(s,i,b),d=d.next}while(d!==c)}Nk(n,i,s);break;case 1:if(!Fp&&(U5(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.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=(c=Fp)||s.memoizedState!==null,Nk(n,i,s),Fp=c):Nk(n,i,s);break;default:Nk(n,i,s)}}function tMt(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new F4n),i.forEach(function(c){var d=K4n.bind(null,n,c);s.has(c)||(s.add(c),c.then(d,d))})}}function xv(n,i){var s=i.deletions;if(s!==null)for(var c=0;cd&&(d=b),c&=~g}if(c=d,c=pd()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*U4n(c/1960))-c,10n?16:n,Gk===null)var c=!1;else{if(n=Gk,Gk=null,joe=0,ga&6)throw Error(or(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()-b5e?Q4(n,0):g5e|=s),fb(n,i)}function fHt(n,i){i===0&&(n.mode&1?(i=tie,tie<<=1,!(tie&130023424)&&(tie=4194304)):i=1);var s=Hg();n=mA(n,i),n!==null&&(wz(n,i,s),fb(n,s))}function W4n(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),fHt(n,s)}function K4n(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(or(314))}c!==null&&c.delete(i),fHt(n,s)}var hHt;hHt=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||lb.current)ab=!0;else{if(!(n.lanes&s)&&!(i.flags&128))return ab=!1,M4n(n,i,s);ab=!!(n.flags&131072)}else ab=!1,Du&&i.flags&1048576&&mUt(i,Noe,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;Jie(n,i),n=i.pendingProps;var d=hM(i,Bp.current);eM(i,s),d=u5e(null,i,c,n,d,s);var g=l5e();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,db(c)?(g=!0,xoe(i)):g=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,i5e(i),d.updater=$se,i.stateNode=d,d._reactInternals=i,z6e(i,c,n,s),i=V6e(null,i,c,!0,g,s)):(i.tag=0,Du&&g&&XLe(i),Bg(null,i,d,s),i=i.child),i;case 16:c=i.elementType;e:{switch(Jie(n,i),n=i.pendingProps,d=c._init,c=d(c._payload),i.type=c,d=i.tag=J4n(c),n=Nv(c,n),d){case 0:i=q6e(null,i,c,n,s);break e;case 1:i=J5t(null,i,c,n,s);break e;case 11:i=K5t(null,i,c,n,s);break e;case 14:i=Y5t(null,i,c,Nv(c.type,n),s);break e}throw Error(or(306,c,""))}return i;case 0:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:Nv(c,d),q6e(n,i,c,d,s);case 1:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:Nv(c,d),J5t(n,i,c,d,s);case 3:e:{if(JUt(i),n===null)throw Error(or(387));c=i.pendingProps,g=i.memoizedState,d=g.element,TUt(n,i),Roe(i,c,null,s);var b=i.memoizedState;if(c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){d=mM(Error(or(423)),i),i=X5t(n,i,c,s,d);break e}else if(c!==d){d=mM(Error(or(424)),i),i=X5t(n,i,c,s,d);break e}else for(Fm=Yk(i.stateNode.containerInfo.firstChild),Bm=i,Du=!0,Rv=null,s=EUt(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(pM(),c===d){i=wA(n,i,s);break e}Bg(n,i,c,s)}i=i.child}return i;case 5:return AUt(i),n===null&&B6e(i),c=i.type,d=i.pendingProps,g=n!==null?n.memoizedProps:null,b=d.children,M6e(c,d)?b=null:g!==null&&M6e(c,g)&&(i.flags|=32),YUt(n,i),Bg(n,i,b,s),i.child;case 6:return n===null&&B6e(i),null;case 13:return XUt(n,i,s);case 4:return o5e(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=gM(i,null,c,s):Bg(n,i,c,s),i.child;case 11:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:Nv(c,d),K5t(n,i,c,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(c=i.type._context,d=i.pendingProps,g=i.memoizedProps,b=d.value,Wc(Coe,c._currentValue),c._currentValue=b,g!==null)if(jv(g.value,b)){if(g.children===d.children&&!lb.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===c){if(g.tag===1){E=hA(-1,s&-s),E.tag=2;var S=g.updateQueue;if(S!==null){S=S.shared;var _=S.pending;_===null?E.next=E:(E.next=_.next,_.next=E),S.pending=E}}g.lanes|=s,E=g.alternate,E!==null&&(E.lanes|=s),U6e(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(or(341));b.lanes|=s,w=b.alternate,w!==null&&(w.lanes|=s),U6e(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,c=i.pendingProps.children,eM(i,s),d=_w(d),c=c(d),i.flags|=1,Bg(n,i,c,s),i.child;case 14:return c=i.type,d=Nv(c,i.pendingProps),d=Nv(c.type,d),Y5t(n,i,c,d,s);case 15:return WUt(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:Nv(c,d),Jie(n,i),i.tag=1,db(c)?(n=!0,xoe(i)):n=!1,eM(i,s),GUt(i,c,d),z6e(i,c,d,s),V6e(null,i,c,!0,n,s);case 19:return ZUt(n,i,s);case 22:return KUt(n,i,s)}throw Error(or(156,i.tag))};function pHt(n,i){return UBt(n,i)}function Y4n(n,i,s,c){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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vw(n,i,s,c){return new Y4n(n,i,s,c)}function v5e(n){return n=n.prototype,!(!n||!n.isReactComponent)}function J4n(n){if(typeof n=="function")return v5e(n)?1:0;if(n!=null){if(n=n.$$typeof,n===$Le)return 11;if(n===BLe)return 14}return 2}function Qk(n,i){var s=n.alternate;return s===null?(s=vw(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 Qie(n,i,s,c,d,g){var b=2;if(c=n,typeof n=="function")v5e(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case O5:return eR(s.children,d,g,i);case FLe:b=8,d|=8;break;case h6e:return n=vw(12,s,i,d|2),n.elementType=h6e,n.lanes=g,n;case p6e:return n=vw(13,s,i,d),n.elementType=p6e,n.lanes=g,n;case g6e:return n=vw(19,s,i,d),n.elementType=g6e,n.lanes=g,n;case ABt:return Hse(s,d,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case SBt:b=10;break e;case TBt:b=9;break e;case $Le:b=11;break e;case BLe:b=14;break e;case Pk:b=16,c=null;break e}throw Error(or(130,n==null?n:typeof n,""))}return i=vw(b,s,i,d),i.elementType=n,i.type=c,i.lanes=g,i}function eR(n,i,s,c){return n=vw(7,n,c,i),n.lanes=s,n}function Hse(n,i,s,c){return n=vw(22,n,c,i),n.elementType=ABt,n.lanes=s,n.stateNode={isHidden:!1},n}function DCe(n,i,s){return n=vw(6,n,null,i),n.lanes=s,n}function LCe(n,i,s){return i=vw(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function X4n(n,i,s,c,d){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pCe(0),this.expirationTimes=pCe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pCe(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function E5e(n,i,s,c,d,g,b,w,E){return n=new X4n(n,i,s,w,E),i===1?(i=1,g===!0&&(i|=8)):i=0,g=vw(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},i5e(g),n}function Z4n(n,i,s){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wHt)}catch(n){console.error(n)}}wHt(),wBt.exports=Gm;var xR=wBt.exports;const yHt=TR(xR);var uMt=xR;goe.createRoot=uMt.createRoot,goe.hydrateRoot=uMt.hydrateRoot;const Eo=n=>typeof n=="string",FU=()=>{let n,i;const s=new Promise((c,d)=>{n=c,i=d});return s.resolve=n,s.reject=i,s},lMt=n=>n==null?"":""+n,rRn=(n,i,s)=>{n.forEach(c=>{i[c]&&(s[c]=i[c])})},iRn=/###/g,dMt=n=>n&&n.indexOf("###")>-1?n.replace(iRn,"."):n,fMt=n=>!n||Eo(n),mH=(n,i,s)=>{const c=Eo(i)?i.split("."):i;let d=0;for(;d{const{obj:c,k:d}=mH(n,i,Object);if(c!==void 0||i.length===1){c[d]=s;return}let g=i[i.length-1],b=i.slice(0,i.length-1),w=mH(n,b,Object);for(;w.obj===void 0&&b.length;)g=`${b[b.length-1]}.${g}`,b=b.slice(0,b.length-1),w=mH(n,b,Object),w!=null&&w.obj&&typeof w.obj[`${w.k}.${g}`]<"u"&&(w.obj=void 0);w.obj[`${w.k}.${g}`]=s},oRn=(n,i,s,c)=>{const{obj:d,k:g}=mH(n,i,Object);d[g]=d[g]||[],d[g].push(s)},Boe=(n,i)=>{const{obj:s,k:c}=mH(n,i);if(s&&Object.prototype.hasOwnProperty.call(s,c))return s[c]},sRn=(n,i,s)=>{const c=Boe(n,s);return c!==void 0?c:Boe(i,s)},vHt=(n,i,s)=>{for(const c in i)c!=="__proto__"&&c!=="constructor"&&(c in n?Eo(n[c])||n[c]instanceof String||Eo(i[c])||i[c]instanceof String?s&&(n[c]=i[c]):vHt(n[c],i[c],s):n[c]=i[c]);return n},b5=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var aRn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const cRn=n=>Eo(n)?n.replace(/[&<>"'\/]/g,i=>aRn[i]):n;class uRn{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 c=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,c),this.regExpQueue.push(i),c}}const lRn=[" ",",","?","!",";"],dRn=new uRn(20),fRn=(n,i,s)=>{i=i||"",s=s||"";const c=lRn.filter(b=>i.indexOf(b)<0&&s.indexOf(b)<0);if(c.length===0)return!0;const d=dRn.getRegExp(`(${c.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},iDe=(n,i,s=".")=>{if(!n)return;if(n[i])return Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0;const c=i.split(s);let d=n;for(let g=0;g-1&&En==null?void 0:n.replace("_","-"),hRn={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,c;(c=(s=console==null?void 0:console[n])==null?void 0:s.apply)==null||c.call(s,console,i)}};let pRn=class oDe{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||hRn,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,c,d){return d&&!this.debug?null:(Eo(i[0])&&(i[0]=`${c}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new oDe(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new oDe(this.logger,i)}};var D2=new pRn;class Wse{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const d=this.observers[c].get(s)||0;this.observers[c].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,c,d={}){var S,_;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],c&&(Array.isArray(c)?w.push(...c):Eo(c)&&g?w.push(...c.split(g)):w.push(c)));const E=Boe(this.data,w);return!E&&!s&&!c&&i.indexOf(".")>-1&&(i=w[0],s=w[1],c=w.slice(2).join(".")),E||!b||!Eo(c)?E:iDe((_=(S=this.data)==null?void 0:S[i])==null?void 0:_[s],c,g)}addResource(i,s,c,d,g={silent:!1}){const b=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let w=[i,s];c&&(w=w.concat(b?c.split(b):c)),i.indexOf(".")>-1&&(w=i.split("."),d=s,s=w[1]),this.addNamespaces(s),hMt(this.data,w,d),g.silent||this.emit("added",i,s,c,d)}addResources(i,s,c,d={silent:!1}){for(const g in c)(Eo(c[g])||Array.isArray(c[g]))&&this.addResource(i,s,g,c[g],{silent:!0});d.silent||this.emit("added",i,s,c)}addResourceBundle(i,s,c,d,g,b={silent:!1,skipCopy:!1}){let w=[i,s];i.indexOf(".")>-1&&(w=i.split("."),d=c,c=s,s=w[1]),this.addNamespaces(s);let E=Boe(this.data,w)||{};b.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?vHt(E,c,g):E={...E,...c},hMt(this.data,w,E),b.silent||this.emit("added",i,s,c)}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 EHt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,i,s,c,d){return n.forEach(g=>{var b;i=((b=this.processors[g])==null?void 0:b.process(i,s,c,d))??i}),i}};const SHt=Symbol("i18next/PATH_KEY");function gRn(){const n=[],i=Object.create(null);let s;return i.get=(c,d)=>{var g;return(g=s==null?void 0:s.revoke)==null||g.call(s),d===SHt?n:(n.push(d),s=Proxy.revocable(c,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function sDe(n,i){const{[SHt]:s}=n(gRn());return s.join((i==null?void 0:i.keySeparator)??".")}const gMt={},MCe=n=>!Eo(n)&&typeof n!="boolean"&&typeof n!="number";class Uoe extends Wse{constructor(i,s={}){super(),rRn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=D2.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const c={...s};if(i==null)return!1;const d=this.resolve(i,c);if((d==null?void 0:d.res)===void 0)return!1;const g=MCe(d.res);return!(c.returnObjects===!1&&g)}extractFromKey(i,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let g=s.ns||this.options.defaultNS||[];const b=c&&i.indexOf(c)>-1,w=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!fRn(i,c,d);if(b&&!w){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:Eo(g)?[g]:g};const S=i.split(c);(c!==d||c===d&&this.options.ns.indexOf(S[0])>-1)&&(g=S.shift()),i=S.join(d)}return{key:i,namespaces:Eo(g)?[g]:g}}translate(i,s,c){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=sDe(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 _=d.nsSeparator!==void 0?d.nsSeparator:this.options.nsSeparator;_===void 0&&(_=":");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}${_}${w}`,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:`${S}${_}${w}`:g?{res:w,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:w;const O=this.resolve(i,d);let L=O==null?void 0:O.res;const D=(O==null?void 0:O.usedKey)||w,B=(O==null?void 0:O.exactUsedKey)||w,$=["[object Number]","[object Function]","[object RegExp]"],P=d.joinArrays!==void 0?d.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,z=d.count!==void 0&&!Eo(d.count),ee=Uoe.hasDefaultValue(d),ne=z?this.pluralResolver.getSuffix(A,d.count,d):"",Q=d.ordinal&&z?this.pluralResolver.getSuffix(A,d.count,{ordinal:!1}):"",ae=z&&!d.ordinal&&d.count===0,he=ae&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${ne}`]||d[`defaultValue${Q}`]||d.defaultValue;let pe=L;j&&!L&&ee&&(pe=he);const ue=MCe(pe),fe=Object.prototype.toString.apply(pe);if(j&&pe&&ue&&$.indexOf(fe)<0&&!(Eo(P)&&Array.isArray(pe))){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(D,pe,{...d,ns:E}):`key '${w} (${this.language})' returned an object instead of string.`;return g?(O.res=K,O.usedParams=this.getUsedParamsDetails(d),O):K}if(b){const K=Array.isArray(pe),ge=K?[]:{},De=K?B:D;for(const Se in pe)if(Object.prototype.hasOwnProperty.call(pe,Se)){const Re=`${De}${b}${Se}`;ee&&!L?ge[Se]=this.translate(Re,{...d,defaultValue:MCe(he)?he[Se]:void 0,joinArrays:!1,ns:E}):ge[Se]=this.translate(Re,{...d,joinArrays:!1,ns:E}),ge[Se]===Re&&(ge[Se]=pe[Se])}L=ge}}else if(j&&Eo(P)&&Array.isArray(L))L=L.join(P),L&&(L=this.extendTranslation(L,i,d,c));else{let K=!1,ge=!1;!this.isValidLookup(L)&&ee&&(K=!0,L=he),this.isValidLookup(L)||(ge=!0,L=w);const Se=(d.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ge?void 0:L,Re=ee&&he!==L&&this.options.updateMissing;if(ge||K||Re){if(this.logger.log(Re?"updateKey":"missingKey",A,S,w,Re?he:L),b){const ut=this.resolve(w,{...d,keySeparator:!1});ut&&ut.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 ut=0;ut{var pt;const Nt=ee&&bt!==L?bt:Se;this.options.missingKeyHandler?this.options.missingKeyHandler(ut,S,Be,Nt,Re,d):(pt=this.backendConnector)!=null&&pt.saveMissing&&this.backendConnector.saveMissing(ut,S,Be,Nt,Re,d),this.emit("missingKey",ut,S,Be,L)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?Ae.forEach(ut=>{const Be=this.pluralResolver.getSuffixes(ut,d);ae&&d[`defaultValue${this.options.pluralSeparator}zero`]&&Be.indexOf(`${this.options.pluralSeparator}zero`)<0&&Be.push(`${this.options.pluralSeparator}zero`),Be.forEach(bt=>{We([ut],w+bt,d[`defaultValue${bt}`]||he)})}):We(Ae,w,he))}L=this.extendTranslation(L,i,d,O,c),ge&&L===w&&this.options.appendNamespaceToMissingKey&&(L=`${S}${_}${w}`),(ge||K)&&this.options.parseMissingKeyHandler&&(L=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}${_}${w}`:w,K?L:void 0,d))}return g?(O.res=L,O.usedParams=this.getUsedParamsDetails(d),O):L}extendTranslation(i,s,c,d,g){var E,S;if((E=this.i18nFormat)!=null&&E.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const _=Eo(i)&&(((S=c==null?void 0:c.interpolation)==null?void 0:S.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let A;if(_){const O=i.match(this.interpolator.nestingRegexp);A=O&&O.length}let C=c.replace&&!Eo(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,c.lng||this.language||d.usedLng,c),_){const O=i.match(this.interpolator.nestingRegexp),L=O&&O.length;A(g==null?void 0:g[0])===O[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${s[0]}`),null):this.translate(...O,s),c)),c.interpolation&&this.interpolator.reset()}const b=c.postProcess||this.options.postProcess,w=Eo(b)?[b]:b;return i!=null&&(w!=null&&w.length)&&c.applyPostProcessor!==!1&&(i=EHt.handle(w,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),i}resolve(i,s={}){let c,d,g,b,w;return Eo(i)&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(c))return;const S=this.extractFromKey(E,s),_=S.key;d=_;let A=S.namespaces;this.options.fallbackNS&&(A=A.concat(this.options.fallbackNS));const C=s.count!==void 0&&!Eo(s.count),O=C&&!s.ordinal&&s.count===0,L=s.context!==void 0&&(Eo(s.context)||typeof s.context=="number")&&s.context!=="",D=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);A.forEach(B=>{var $,P;this.isValidLookup(c)||(w=B,!gMt[`${D[0]}-${B}`]&&(($=this.utils)!=null&&$.hasLoadedNamespace)&&!((P=this.utils)!=null&&P.hasLoadedNamespace(w))&&(gMt[`${D[0]}-${B}`]=!0,this.logger.warn(`key "${d}" for languages "${D.join(", ")}" won't get resolved as namespace "${w}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(j=>{var ne;if(this.isValidLookup(c))return;b=j;const z=[_];if((ne=this.i18nFormat)!=null&&ne.addLookupKeys)this.i18nFormat.addLookupKeys(z,_,j,B,s);else{let Q;C&&(Q=this.pluralResolver.getSuffix(j,s.count,s));const ae=`${this.options.pluralSeparator}zero`,he=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(s.ordinal&&Q.indexOf(he)===0&&z.push(_+Q.replace(he,this.options.pluralSeparator)),z.push(_+Q),O&&z.push(_+ae)),L){const pe=`${_}${this.options.contextSeparator||"_"}${s.context}`;z.push(pe),C&&(s.ordinal&&Q.indexOf(he)===0&&z.push(pe+Q.replace(he,this.options.pluralSeparator)),z.push(pe+Q),O&&z.push(pe+ae))}}let ee;for(;ee=z.pop();)this.isValidLookup(c)||(g=ee,c=this.getResource(j,B,ee,s))}))})}),{res:c,usedKey:d,exactUsedKey:g,usedLng:b,usedNS:w}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,c,d={}){var g;return(g=this.i18nFormat)!=null&&g.getResource?this.i18nFormat.getResource(i,s,c,d):this.resourceStore.getResource(i,s,c,d)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=i.replace&&!Eo(i.replace);let d=c?i.replace:i;if(c&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!c){d={...d};for(const g of s)delete d[g]}return d}static hasDefaultValue(i){const s="defaultValue";for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&s===c.substring(0,s.length)&&i[c]!==void 0)return!0;return!1}}class bMt{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D2.create("languageUtils")}getScriptPartFromCode(i){if(i=GH(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=GH(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(Eo(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(c=>{if(s)return;const d=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(d))&&(s=d)}),!s&&this.options.supportedLngs&&i.forEach(c=>{if(s)return;const d=this.getScriptPartFromCode(c);if(this.isSupportedCode(d))return s=d;const g=this.getLanguagePartFromCode(c);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)),Eo(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let c=i[s];return c||(c=i[this.getScriptPartFromCode(s)]),c||(c=i[this.formatLanguageCode(s)]),c||(c=i[this.getLanguagePartFromCode(s)]),c||(c=i.default),c||[]}toResolveHierarchy(i,s){const c=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 Eo(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))):Eo(i)&&g(this.formatLanguageCode(i)),c.forEach(b=>{d.indexOf(b)<0&&g(this.formatLanguageCode(b))}),d}}const mMt={zero:0,one:1,two:2,few:3,many:4,other:5},wMt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class bRn{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=D2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const c=GH(i==="dev"?"en":i),d=s.ordinal?"ordinal":"cardinal",g=JSON.stringify({cleanedCode:c,type:d});if(g in this.pluralRulesCache)return this.pluralRulesCache[g];let b;try{b=new Intl.PluralRules(c,{type:d})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),wMt;if(!i.match(/-|_/))return wMt;const E=this.languageUtils.getLanguagePartFromCode(i);b=this.getRule(E,s)}return this.pluralRulesCache[g]=b,b}needsPlural(i,s={}){let c=this.getRule(i,s);return c||(c=this.getRule("dev",s)),(c==null?void 0:c.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,c={}){return this.getSuffixes(i,c).map(d=>`${s}${d}`)}getSuffixes(i,s={}){let c=this.getRule(i,s);return c||(c=this.getRule("dev",s)),c?c.resolvedOptions().pluralCategories.sort((d,g)=>mMt[d]-mMt[g]).map(d=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${d}`):[]}getSuffix(i,s,c={}){const d=this.getRule(i,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,c))}}const yMt=(n,i,s,c=".",d=!0)=>{let g=sRn(n,i,s);return!g&&d&&Eo(s)&&(g=iDe(n,s,c),g===void 0&&(g=iDe(i,s,c))),g},PCe=n=>n.replace(/\$/g,"$$$$");class vMt{constructor(i={}){var s;this.logger=D2.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(c=>c),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:c,useRawValueToEscape:d,prefix:g,prefixEscaped:b,suffix:w,suffixEscaped:E,formatSeparator:S,unescapeSuffix:_,unescapePrefix:A,nestingPrefix:C,nestingPrefixEscaped:O,nestingSuffix:L,nestingSuffixEscaped:D,nestingOptionsSeparator:B,maxReplaces:$,alwaysFormat:P}=i.interpolation;this.escape=s!==void 0?s:cRn,this.escapeValue=c!==void 0?c:!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=_?"":A||"-",this.unescapeSuffix=this.unescapePrefix?"":_||"",this.nestingPrefix=C?b5(C):O||b5("$t("),this.nestingSuffix=L?b5(L):D||b5(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=$||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,c)=>(s==null?void 0:s.source)===c?(s.lastIndex=0,s):new RegExp(c,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,c,d){var O;let g,b,w;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},S=L=>{if(L.indexOf(this.formatSeparator)<0){const P=yMt(s,E,L,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(P,void 0,c,{...d,...s,interpolationkey:L}):P}const D=L.split(this.formatSeparator),B=D.shift().trim(),$=D.join(this.formatSeparator).trim();return this.format(yMt(s,E,B,this.options.keySeparator,this.options.ignoreJSONStructure),$,c,{...d,...s,interpolationkey:B})};this.resetRegExp();const _=(d==null?void 0:d.missingInterpolationHandler)||this.options.missingInterpolationHandler,A=((O=d==null?void 0:d.interpolation)==null?void 0:O.skipOnVariables)!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:L=>PCe(L)},{regex:this.regexp,safeValue:L=>this.escapeValue?PCe(this.escape(L)):PCe(L)}].forEach(L=>{for(w=0;g=L.regex.exec(i);){const D=g[1].trim();if(b=S(D),b===void 0)if(typeof _=="function"){const $=_(i,g,d);b=Eo($)?$:""}else if(d&&Object.prototype.hasOwnProperty.call(d,D))b="";else if(A){b=g[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),b="";else!Eo(b)&&!this.useRawValueToEscape&&(b=lMt(b));const B=L.safeValue(b);if(i=i.replace(g[0],B),A?(L.regex.lastIndex+=b.length,L.regex.lastIndex-=g[0].length):L.regex.lastIndex=0,w++,w>=this.maxReplaces)break}}),i}nest(i,s,c={}){let d,g,b;const w=(E,S)=>{const _=this.nestingOptionsSeparator;if(E.indexOf(_)<0)return E;const A=E.split(new RegExp(`${_}[ ]*{`));let C=`{${A[1]}`;E=A[0],C=this.interpolate(C,b);const O=C.match(/'/g),L=C.match(/"/g);(((O==null?void 0:O.length)??0)%2===0&&!L||L.length%2!==0)&&(C=C.replace(/'/g,'"'));try{b=JSON.parse(C),S&&(b={...S,...b})}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,D),`${E}${_}${C}`}return b.defaultValue&&b.defaultValue.indexOf(this.prefix)>-1&&delete b.defaultValue,E};for(;d=this.nestingRegexp.exec(i);){let E=[];b={...c},b=b.replace&&!Eo(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(_=>_.trim()).filter(Boolean),d[1]=d[1].slice(0,S)),g=s(w.call(this,d[1].trim(),b),b),g&&d[0]===i&&!Eo(g))return g;Eo(g)||(g=lMt(g)),g||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),g=""),E.length&&(g=E.reduce((_,A)=>this.format(_,A,c.lng,{...c,interpolationkey:d[1].trim()}),g.trim())),i=i.replace(d[0],g),this.regexp.lastIndex=0}return i}}const mRn=n=>{let i=n.toLowerCase().trim();const s={};if(n.indexOf("(")>-1){const c=n.split("(");i=c[0].toLowerCase().trim();const d=c[1].substring(0,c[1].length-1);i==="currency"&&d.indexOf(":")<0?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,""),_=w.trim();s[_]||(s[_]=S),S==="false"&&(s[_]=!1),S==="true"&&(s[_]=!0),isNaN(S)||(s[_]=parseInt(S,10))}})}return{formatName:i,formatOptions:s}},EMt=n=>{const i={};return(s,c,d)=>{let g=d;d&&d.interpolationkey&&d.formatParams&&d.formatParams[d.interpolationkey]&&d[d.interpolationkey]&&(g={...g,[d.interpolationkey]:void 0});const b=c+JSON.stringify(g);let w=i[b];return w||(w=n(GH(c),d),i[b]=w),w(s)}},wRn=n=>(i,s,c)=>n(GH(s),c)(i);class yRn{constructor(i={}){this.logger=D2.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const c=s.cacheInBuiltFormats?EMt:wRn;this.formats={number:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g});return w=>b.format(w)}),currency:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g,style:"currency"});return w=>b.format(w)}),datetime:c((d,g)=>{const b=new Intl.DateTimeFormat(d,{...g});return w=>b.format(w)}),relativetime:c((d,g)=>{const b=new Intl.RelativeTimeFormat(d,{...g});return w=>b.format(w,g.range||"day")}),list:c((d,g)=>{const b=new Intl.ListFormat(d,{...g});return w=>b.format(w)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=EMt(s)}format(i,s,c,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:_}=mRn(E);if(this.formats[S]){let C=w;try{const O=((A=d==null?void 0:d.formatParams)==null?void 0:A[d.interpolationkey])||{},L=O.locale||O.lng||d.locale||d.lng||c;C=this.formats[S](w,L,{..._,...d,...O})}catch(O){this.logger.warn(O)}return C}else this.logger.warn(`there was no format function for ${S}`);return w},i)}}const vRn=(n,i)=>{n.pending[i]!==void 0&&(delete n.pending[i],n.pendingCount--)};class ERn extends Wse{constructor(i,s,c,d={}){var g,b;super(),this.backend=i,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=D2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],(b=(g=this.backend)==null?void 0:g.init)==null||b.call(g,c,d.backend,d)}queueLoad(i,s,c,d){const g={},b={},w={},E={};return i.forEach(S=>{let _=!0;s.forEach(A=>{const C=`${S}|${A}`;!c.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,_=!1,b[C]===void 0&&(b[C]=!0),g[C]===void 0&&(g[C]=!0),E[A]===void 0&&(E[A]=!0)))}),_||(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,c){const d=i.split("|"),g=d[0],b=d[1];s&&this.emit("failedLoading",g,b,s),!s&&c&&this.store.addResourceBundle(g,b,c,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&c&&(this.state[i]=0);const w={};this.queue.forEach(E=>{oRn(E.loaded,[g],b),vRn(E,i),s&&E.errors.push(s),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(S=>{w[S]||(w[S]={});const _=E.loaded[S];_.length&&_.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,c,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:c,tried:d,wait:g,callback:b});return}this.readingCalls++;const w=(S,_)=>{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&&_&&d{this.read.call(this,i,s,c,d+1,g*2,b)},g);return}b(S,_)},E=this.backend[c].bind(this.backend);if(E.length===2){try{const S=E(i,s);S&&typeof S.then=="function"?S.then(_=>w(null,_)).catch(w):w(null,S)}catch(S){w(S)}return}return E(i,s,w)}prepareLoading(i,s,c={},d){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();Eo(i)&&(i=this.languageUtils.toResolveHierarchy(i)),Eo(s)&&(s=[s]);const g=this.queueLoad(i,s,c,d);if(!g.toLoad.length)return g.pending.length||d(),null;g.toLoad.forEach(b=>{this.loadOne(b)})}load(i,s,c){this.prepareLoading(i,s,{},c)}reload(i,s,c){this.prepareLoading(i,s,{reload:!0},c)}loadOne(i,s=""){const c=i.split("|"),d=c[0],g=c[1];this.read(d,g,"read",void 0,void 0,(b,w)=>{b&&this.logger.warn(`${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,c,d,g,b={},w=()=>{}){var E,S,_,A,C;if((S=(E=this.services)==null?void 0:E.utils)!=null&&S.hasLoadedNamespace&&!((A=(_=this.services)==null?void 0:_.utils)!=null&&A.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${c}" 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(!(c==null||c==="")){if((C=this.backend)!=null&&C.create){const O={...b,isUpdate:g},L=this.backend.create.bind(this.backend);if(L.length<6)try{let D;L.length===5?D=L(i,s,c,d,O):D=L(i,s,c,d),D&&typeof D.then=="function"?D.then(B=>w(null,B)).catch(w):w(null,D)}catch(D){w(D)}else L(i,s,c,d,w,O)}!i||!i[0]||this.store.addResource(i[0],s,c,d)}}}const jCe=()=>({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]),Eo(n[1])&&(i.defaultValue=n[1]),Eo(n[2])&&(i.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const s=n[3]||n[2];Object.keys(s).forEach(c=>{i[c]=s[c]})}return i},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),SMt=n=>{var i,s;return Eo(n.ns)&&(n.ns=[n.ns]),Eo(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Eo(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},hie=()=>{},SRn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(s=>{typeof n[s]=="function"&&(n[s]=n[s].bind(n))})};class wH extends Wse{constructor(i={},s){if(super(),this.options=SMt(i),this.services={},this.logger=D2,this.modules={external:[]},SRn(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&&(Eo(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=jCe();this.options={...c,...this.options,...SMt(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const d=S=>S?typeof S=="function"?new S:S:null;if(!this.options.isClone){this.modules.logger?D2.init(d(this.modules.logger),this.options):D2.init(null,this.options);let S;this.modules.formatter?S=this.modules.formatter:S=yRn;const _=new bMt(this.options);this.store=new pMt(this.options.resources,this.options);const A=this.services;A.logger=D2,A.resourceStore=this.store,A.languageUtils=_,A.pluralResolver=new bRn(_,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),S&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(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 vMt(this.options),A.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},A.backendConnector=new ERn(d(this.modules.backend),A.resourceStore,A,this.options),A.backendConnector.on("*",(O,...L)=>{this.emit(O,...L)}),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 Uoe(this.services,this.options),this.translator.on("*",(O,...L)=>{this.emit(O,...L)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,s||(s=hie),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]=(..._)=>this.store[S](..._)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(S=>{this[S]=(..._)=>(this.store[S](..._),this)});const w=FU(),E=()=>{const S=(_,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(_,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=hie){var g,b;let c=s;const d=Eo(i)?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if((d==null?void 0:d.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const w=[],E=S=>{if(!S||S==="cimode")return;this.services.languageUtils.toResolveHierarchy(S).forEach(A=>{A!=="cimode"&&w.indexOf(A)<0&&w.push(A)})};d?E(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(_=>E(_)),(b=(g=this.options.preload)==null?void 0:g.forEach)==null||b.call(g,S=>E(S)),this.services.backendConnector.load(w,this.options.ns,S=>{!S&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(S)})}else c(null)}reloadResources(i,s,c){const d=FU();return typeof i=="function"&&(c=i,i=void 0),typeof s=="function"&&(c=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),c||(c=hie),this.services.backendConnector.reload(i,s,g=>{d.resolve(),c(g)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&EHt.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(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const c=FU();this.emit("languageChanging",i);const d=w=>{this.language=w,this.languages=this.services.languageUtils.toResolveHierarchy(w),this.resolvedLanguage=void 0,this.setResolvedLanguage(w)},g=(w,E)=>{E?this.isLanguageChangingTo===i&&(d(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,c.resolve((...S)=>this.t(...S)),s&&s(w,(...S)=>this.t(...S))},b=w=>{var _,A;!i&&!w&&this.services.languageDetector&&(w=[]);const E=Eo(w)?w:w&&w[0],S=this.store.hasLanguageSomeTranslations(E)?E:this.services.languageUtils.getBestMatchFromCodes(Eo(w)?[w]:w);S&&(this.language||d(S),this.translator.language||this.translator.changeLanguage(S),(A=(_=this.services.languageDetector)==null?void 0:_.cacheUserLanguage)==null||A.call(_,S)),this.loadResources(S,C=>{g(C,S)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?b(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(b):this.services.languageDetector.detect(b):b(i),c}getFixedT(i,s,c){const d=(g,b,...w)=>{let E;typeof b!="object"?E=this.options.overloadTranslationOptionHandler([g,b].concat(w)):E={...b},E.lng=E.lng||d.lng,E.lngs=E.lngs||d.lngs,E.ns=E.ns||d.ns,E.keyPrefix!==""&&(E.keyPrefix=E.keyPrefix||c||d.keyPrefix);const S=this.options.keySeparator||".";let _;return E.keyPrefix&&Array.isArray(g)?_=g.map(A=>(typeof A=="function"&&(A=sDe(A,{...this.options,...b})),`${E.keyPrefix}${S}${A}`)):(typeof g=="function"&&(g=sDe(g,{...this.options,...b})),_=E.keyPrefix?`${E.keyPrefix}${S}${g}`:g),this.t(_,E)};return Eo(i)?d.lng=i:d.lngs=i,d.ns=s,d.keyPrefix=c,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 c=s.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,g=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const b=(w,E)=>{const S=this.services.backendConnector.state[`${w}|${E}`];return S===-1||S===0||S===2};if(s.precheck){const w=s.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(c,i)&&(!d||b(g,i)))}loadNamespaces(i,s){const c=FU();return this.options.ns?(Eo(i)&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{c.resolve(),s&&s(d)}),c):(s&&s(),Promise.resolve())}loadLanguages(i,s){const c=FU();Eo(i)&&(i=[i]);const d=this.options.preload||[],g=i.filter(b=>d.indexOf(b)<0&&this.services.languageUtils.isSupportedCode(b));return g.length?(this.options.preload=d.concat(g),this.loadResources(b=>{c.resolve(),s&&s(b)}),c):(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"],c=((g=this.services)==null?void 0:g.languageUtils)||new bMt(jCe());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(c.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const c=new wH(i,s);return c.createInstance=wH.createInstance,c}cloneInstance(i={},s=hie){const c=i.forkResourceStore;c&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},g=new wH(d);if((i.debug!==void 0||i.prefix!==void 0)&&(g.logger=g.logger.clone(i)),["store","services","language"].forEach(w=>{g[w]=this[w]}),g.services={...this.services},g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},c){const w=Object.keys(this.store.data).reduce((E,S)=>(E[S]={...this.store.data[S]},E[S]=Object.keys(E[S]).reduce((_,A)=>(_[A]={...E[S][A]},_),E[S]),E),{});g.store=new pMt(w,d),g.services.resourceStore=g.store}if(i.interpolation){const E={...jCe().interpolation,...this.options.interpolation,...i.interpolation},S={...d,interpolation:E};g.services.interpolator=new vMt(S)}return g.translator=new Uoe(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=wH.createInstance();Hh.createInstance;Hh.dir;Hh.init;Hh.loadResources;Hh.reloadResources;Hh.use;Hh.changeLanguage;Hh.getFixedT;const eoe=Hh.t;Hh.exists;Hh.setDefaultNamespace;Hh.hasLoadedNamespace;Hh.loadNamespaces;Hh.loadLanguages;const TRn=(n,i,s,c)=>{var g,b,w,E;const d=[s,{code:i,...c||{}}];if((b=(g=n==null?void 0:n.services)==null?void 0:g.logger)!=null&&b.forward)return n.services.logger.forward(d,"warn","react-i18next::",!0);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)},TMt={},THt=(n,i,s,c)=>{lR(s)&&TMt[s]||(lR(s)&&(TMt[s]=new Date),TRn(n,i,s,c))},AHt=(n,i)=>()=>{if(n.isInitialized)i();else{const s=()=>{setTimeout(()=>{n.off("initialized",s)},0),i()};n.on("initialized",s)}},aDe=(n,i,s)=>{n.loadNamespaces(i,AHt(n,s))},AMt=(n,i,s,c)=>{if(lR(s)&&(s=[s]),n.options.preload&&n.options.preload.indexOf(i)>-1)return aDe(n,s,c);s.forEach(d=>{n.options.ns.indexOf(d)<0&&n.options.ns.push(d)}),n.loadLanguages(i,AHt(n,c))},ARn=(n,i,s={})=>!i.languages||!i.languages.length?(THt(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(n,{lng:s.lng,precheck:(c,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!d(c.isLanguageChangingTo,n))return!1}}),lR=n=>typeof n=="string",_Rn=n=>typeof n=="object"&&n!==null,xRn=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,kRn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},NRn=n=>kRn[n],CRn=n=>n.replace(xRn,NRn);let cDe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:CRn,transDefaultProps:void 0};const IRn=(n={})=>{cDe={...cDe,...n}},RRn=()=>cDe;let _Ht;const ORn=n=>{_Ht=n},DRn=()=>_Ht,LRn={type:"3rdParty",init(n){IRn(n.options.react),ORn(n)}},xHt=H.createContext();class MRn{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var kHt={exports:{}},NHt={};/** * @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 yM=H;function PRn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var jRn=typeof Object.is=="function"?Object.is:PRn,FRn=yM.useState,$Rn=yM.useEffect,BRn=yM.useLayoutEffect,URn=yM.useDebugValue;function HRn(n,i){var s=i(),c=FRn({inst:{value:s,getSnapshot:i}}),d=c[0].inst,g=c[1];return BRn(function(){d.value=s,d.getSnapshot=i,FCe(d)&&g({inst:d})},[n,s,i]),$Rn(function(){return FCe(d)&&g({inst:d}),n(function(){FCe(d)&&g({inst:d})})},[n]),URn(s),s}function FCe(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!jRn(n,s)}catch{return!0}}function zRn(n,i){return i()}var GRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zRn:HRn;NHt.useSyncExternalStore=yM.useSyncExternalStore!==void 0?yM.useSyncExternalStore:GRn;kHt.exports=NHt;var CHt=kHt.exports;const qRn=(n,i)=>lR(i)?i:_Rn(i)&&lR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,VRn={t:qRn,ready:!1},WRn=()=>()=>{},jo=(n,i={})=>{var he,pe,ue;const{i18n:s}=i,{i18n:c,defaultNS:d}=H.useContext(xHt)||{},g=s||c||DRn();g&&!g.reportNamespaces&&(g.reportNamespaces=new MRn),g||THt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=H.useMemo(()=>{var fe;return{...RRn(),...(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),_=lR(S)?[S]:S||["translation"],A=H.useMemo(()=>_,_);(ue=(pe=g==null?void 0:g.reportNamespaces)==null?void 0:pe.addUsedNamespaces)==null||ue.call(pe,A);const C=H.useRef(0),O=H.useCallback(fe=>{if(!g)return WRn;const{bindI18n:K,bindI18nStore:ge}=b,De=()=>{C.current+=1,fe()};return K&&g.on(K,De),ge&&g.store.on(ge,De),()=>{K&&K.split(" ").forEach(Se=>g.off(Se,De)),ge&&ge.split(" ").forEach(Se=>g.store.off(Se,De))}},[g,b]),L=H.useRef(),D=H.useCallback(()=>{if(!g)return VRn;const fe=!!(g.isInitialized||g.initializedStoreOnce)&&A.every(Ae=>ARn(Ae,g,b)),K=i.lng||g.language,ge=C.current,De=L.current;if(De&&De.ready===fe&&De.lng===K&&De.keyPrefix===E&&De.revision===ge)return De;const Re={t:g.getFixedT(K,b.nsMode==="fallback"?A:A[0],E),ready:fe,lng:K,keyPrefix:E,revision:ge};return L.current=Re,Re},[g,A,E,b,i.lng]),[B,$]=H.useState(0),{t:P,ready:j}=CHt.useSyncExternalStore(O,D,D);H.useEffect(()=>{if(g&&!j&&!w){const fe=()=>$(K=>K+1);i.lng?AMt(g,i.lng,A,fe):aDe(g,A,fe)}},[g,i.lng,A,j,w,B]);const z=g||{},ee=H.useRef(null),ne=H.useRef(),Q=fe=>{const K=Object.getOwnPropertyDescriptors(fe);K.__original&&delete K.__original;const ge=Object.create(Object.getPrototypeOf(fe),K);if(!Object.prototype.hasOwnProperty.call(ge,"__original"))try{Object.defineProperty(ge,"__original",{value:fe,writable:!1,enumerable:!1,configurable:!1})}catch{}return ge},ae=H.useMemo(()=>{const fe=z,K=fe==null?void 0:fe.language;let ge=fe;fe&&(ee.current&&ee.current.__original===fe?ne.current!==K?(ge=Q(fe),ee.current=ge,ne.current=K):ge=ee.current:(ge=Q(fe),ee.current=ge,ne.current=K));const De=[P,ge,j];return De.t=P,De.i18n=ge,De.ready=j,De},[P,z,j,z.resolvedLanguage,z.language,z.languages]);if(g&&w&&!j)throw new Promise(fe=>{const K=()=>fe();i.lng?AMt(g,i.lng,A,K):aDe(g,A,K)});return ae};function _Mt({i18n:n,defaultNS:i,children:s}){const c=H.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return H.createElement(xHt.Provider,{value:c},s)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let s=0,c;s{}};function Kse(){for(var n=0,i=arguments.length,s={},c;n=0&&(c=s.slice(d+1),s=s.slice(0,d)),s&&!i.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:c}})}toe.prototype=Kse.prototype={constructor:toe,on:function(n,i){var s=this._,c=YRn(n+"",s),d,g=-1,b=c.length;if(arguments.length<2){for(;++g0)for(var s=new Array(d),c=0,d,g;c=0&&(i=n.slice(0,s))!=="xmlns"&&(n=n.slice(s+1)),kMt.hasOwnProperty(i)?{space:kMt[i],local:n}:n}function XRn(n){return function(){var i=this.ownerDocument,s=this.namespaceURI;return s===uDe&&i.documentElement.namespaceURI===uDe?i.createElement(n):i.createElementNS(s,n)}}function ZRn(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function IHt(n){var i=Yse(n);return(i.local?ZRn:XRn)(i)}function QRn(){}function _5e(n){return n==null?QRn:function(){return this.querySelector(n)}}function eOn(n){typeof n!="function"&&(n=_5e(n));for(var i=this._groups,s=i.length,c=new Array(s),d=0;d=j&&(j=P+1);!(ee=B[j])&&++j=0;)(b=c[d])&&(g&&b.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(b,g),g=b);return this}function _On(n){n||(n=xOn);function i(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var s=this._groups,c=s.length,d=new Array(c),g=0;gi?1:n>=i?0:NaN}function kOn(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function NOn(){return Array.from(this)}function COn(){for(var n=this._groups,i=0,s=n.length;i1?this.each((i==null?BOn:typeof i=="function"?HOn:UOn)(n,i,s??"")):vM(this.node(),n)}function vM(n,i){return n.style.getPropertyValue(i)||MHt(n).getComputedStyle(n,null).getPropertyValue(i)}function GOn(n){return function(){delete this[n]}}function qOn(n,i){return function(){this[n]=i}}function VOn(n,i){return function(){var s=i.apply(this,arguments);s==null?delete this[n]:this[n]=s}}function WOn(n,i){return arguments.length>1?this.each((i==null?GOn:typeof i=="function"?VOn:qOn)(n,i)):this.node()[n]}function PHt(n){return n.trim().split(/^|\s+/)}function x5e(n){return n.classList||new jHt(n)}function jHt(n){this._node=n,this._names=PHt(n.getAttribute("class")||"")}jHt.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 FHt(n,i){for(var s=x5e(n),c=-1,d=i.length;++c=0&&(s=i.slice(c+1),i=i.slice(0,c)),{type:i,name:s}})}function E6n(n){return function(){var i=this.__on;if(i){for(var s=0,c=-1,d=i.length,g;s()=>n;function lDe(n,{sourceEvent:i,subject:s,target:c,identifier:d,active:g,x:b,y:w,dx:E,dy:S,dispatch:_}){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:c,enumerable:!0,configurable:!0},identifier:{value:d,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:b,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:E,enumerable:!0,configurable:!0},dy:{value:S,enumerable:!0,configurable:!0},_:{value:_}})}lDe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function R6n(n){return!n.ctrlKey&&!n.button}function O6n(){return this.parentNode}function D6n(n,i){return i??{x:n.x,y:n.y}}function L6n(){return navigator.maxTouchPoints||"ontouchstart"in this}function GHt(){var n=R6n,i=O6n,s=D6n,c=L6n,d={},g=Kse("start","drag","end"),b=0,w,E,S,_,A=0;function C(z){z.on("mousedown.drag",O).filter(c).on("touchstart.drag",B).on("touchmove.drag",$,I6n).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function O(z,ee){if(!(_||!n.call(this,z,ee))){var ne=j(this,i.call(this,z,ee),z,ee,"mouse");ne&&(jm(z.view).on("mousemove.drag",L,qH).on("mouseup.drag",D,qH),HHt(z.view),$Ce(z),S=!1,w=z.clientX,E=z.clientY,ne("start",z))}}function L(z){if(nM(z),!S){var ee=z.clientX-w,ne=z.clientY-E;S=ee*ee+ne*ne>A}d.mouse("drag",z)}function D(z){jm(z.view).on("mousemove.drag mouseup.drag",null),zHt(z.view,S),nM(z),d.mouse("end",z)}function B(z,ee){if(n.call(this,z,ee)){var ne=z.changedTouches,Q=i.call(this,z,ee),ae=ne.length,he,pe;for(he=0;he>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):s===8?gie(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):s===4?gie(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=P6n.exec(n))?new cb(i[1],i[2],i[3],1):(i=j6n.exec(n))?new cb(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=F6n.exec(n))?gie(i[1],i[2],i[3],i[4]):(i=$6n.exec(n))?gie(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=B6n.exec(n))?LMt(i[1],i[2]/100,i[3]/100,1):(i=U6n.exec(n))?LMt(i[1],i[2]/100,i[3]/100,i[4]):NMt.hasOwnProperty(n)?RMt(NMt[n]):n==="transparent"?new cb(NaN,NaN,NaN,0):null}function RMt(n){return new cb(n>>16&255,n>>8&255,n&255,1)}function gie(n,i,s,c){return c<=0&&(n=i=s=NaN),new cb(n,i,s,c)}function G6n(n){return n instanceof Tz||(n=dR(n)),n?(n=n.rgb(),new cb(n.r,n.g,n.b,n.opacity)):new cb}function dDe(n,i,s,c){return arguments.length===1?G6n(n):new cb(n,i,s,c??1)}function cb(n,i,s,c){this.r=+n,this.g=+i,this.b=+s,this.opacity=+c}k5e(cb,dDe,qHt(Tz,{brighter(n){return n=n==null?zoe:Math.pow(zoe,n),new cb(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?VH:Math.pow(VH,n),new cb(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new cb(tR(this.r),tR(this.g),tR(this.b),Goe(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:OMt,formatHex:OMt,formatHex8:q6n,formatRgb:DMt,toString:DMt}));function OMt(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}`}function q6n(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}${Z4((isNaN(this.opacity)?1:this.opacity)*255)}`}function DMt(){const n=Goe(this.opacity);return`${n===1?"rgb(":"rgba("}${tR(this.r)}, ${tR(this.g)}, ${tR(this.b)}${n===1?")":`, ${n})`}`}function Goe(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 LMt(n,i,s,c){return c<=0?n=i=s=NaN:s<=0||s>=1?n=i=NaN:i<=0&&(n=NaN),new Ov(n,i,s,c)}function VHt(n){if(n instanceof Ov)return new Ov(n.h,n.s,n.l,n.opacity);if(n instanceof Tz||(n=dR(n)),!n)return new Ov;if(n instanceof Ov)return n;n=n.rgb();var i=n.r/255,s=n.g/255,c=n.b/255,d=Math.min(i,s,c),g=Math.max(i,s,c),b=NaN,w=g-d,E=(g+d)/2;return w?(i===g?b=(s-c)/w+(s0&&E<1?0:b,new Ov(b,w,E,n.opacity)}function V6n(n,i,s,c){return arguments.length===1?VHt(n):new Ov(n,i,s,c??1)}function Ov(n,i,s,c){this.h=+n,this.s=+i,this.l=+s,this.opacity=+c}k5e(Ov,V6n,qHt(Tz,{brighter(n){return n=n==null?zoe:Math.pow(zoe,n),new Ov(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?VH:Math.pow(VH,n),new Ov(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,c=s+(s<.5?s:1-s)*i,d=2*s-c;return new cb(BCe(n>=240?n-240:n+120,d,c),BCe(n,d,c),BCe(n<120?n+240:n-120,d,c),this.opacity)},clamp(){return new Ov(MMt(this.h),bie(this.s),bie(this.l),Goe(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=Goe(this.opacity);return`${n===1?"hsl(":"hsla("}${MMt(this.h)}, ${bie(this.s)*100}%, ${bie(this.l)*100}%${n===1?")":`, ${n})`}`}}));function MMt(n){return n=(n||0)%360,n<0?n+360:n}function bie(n){return Math.max(0,Math.min(1,n||0))}function BCe(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 N5e=n=>()=>n;function W6n(n,i){return function(s){return n+s*i}}function K6n(n,i,s){return n=Math.pow(n,s),i=Math.pow(i,s)-n,s=1/s,function(c){return Math.pow(n+c*i,s)}}function Y6n(n){return(n=+n)==1?WHt:function(i,s){return s-i?K6n(i,s,n):N5e(isNaN(i)?s:i)}}function WHt(n,i){var s=i-n;return s?W6n(n,s):N5e(isNaN(n)?i:n)}const qoe=function n(i){var s=Y6n(i);function c(d,g){var b=s((d=dDe(d)).r,(g=dDe(g)).r),w=s(d.g,g.g),E=s(d.b,g.b),S=WHt(d.opacity,g.opacity);return function(_){return d.r=b(_),d.g=w(_),d.b=E(_),d.opacity=S(_),d+""}}return c.gamma=n,c}(1);function J6n(n,i){i||(i=[]);var s=n?Math.min(i.length,n.length):0,c=i.slice(),d;return function(g){for(d=0;ds&&(g=i.slice(s,g),w[b]?w[b]+=g:w[++b]=g),(c=c[0])===(d=d[0])?w[b]?w[b]+=d:w[++b]=d:(w[++b]=null,E.push({i:b,x:C2(c,d)})),s=UCe.lastIndex;return s180?_+=360:_-S>180&&(S+=360),C.push({i:A.push(d(A)+"rotate(",null,c)-2,x:C2(S,_)})):_&&A.push(d(A)+"rotate("+_+c)}function w(S,_,A,C){S!==_?C.push({i:A.push(d(A)+"skewX(",null,c)-2,x:C2(S,_)}):_&&A.push(d(A)+"skewX("+_+c)}function E(S,_,A,C,O,L){if(S!==A||_!==C){var D=O.push(d(O)+"scale(",null,",",null,")");L.push({i:D-4,x:C2(S,A)},{i:D-2,x:C2(_,C)})}else(A!==1||C!==1)&&O.push(d(O)+"scale("+A+","+C+")")}return function(S,_){var A=[],C=[];return S=n(S),_=n(_),g(S.translateX,S.translateY,_.translateX,_.translateY,A,C),b(S.rotate,_.rotate,A,C),w(S.skewX,_.skewX,A,C),E(S.scaleX,S.scaleY,_.scaleX,_.scaleY,A,C),S=_=null,function(O){for(var L=-1,D=C.length,B;++L=0&&n._call.call(void 0,i),n=n._next;--EM}function FMt(){fR=(Woe=KH.now())+Jse,EM=XU=0;try{dDn()}finally{EM=0,hDn(),fR=0}}function fDn(){var n=KH.now(),i=n-Woe;i>XHt&&(Jse-=i,Woe=n)}function hDn(){for(var n,i=Voe,s,c=1/0;i;)i._call?(c>i._time&&(c=i._time),n=i,i=i._next):(s=i._next,i._next=null,i=n?n._next=s:Voe=s);ZU=n,pDe(c)}function pDe(n){if(!EM){XU&&(XU=clearTimeout(XU));var i=n-fR;i>24?(n<1/0&&(XU=setTimeout(FMt,n-KH.now()-Jse)),$U&&($U=clearInterval($U))):($U||(Woe=KH.now(),$U=setInterval(fDn,XHt)),EM=1,ZHt(FMt))}}function $Mt(n,i,s){var c=new Koe;return i=i==null?0:+i,c.restart(d=>{c.stop(),n(d+i)},i,s),c}var pDn=Kse("start","end","cancel","interrupt"),gDn=[],ezt=0,BMt=1,gDe=2,roe=3,UMt=4,bDe=5,ioe=6;function Xse(n,i,s,c,d,g){var b=n.__transition;if(!b)n.__transition={};else if(s in b)return;bDn(n,s,{name:i,index:c,group:d,on:pDn,tween:gDn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:ezt})}function I5e(n,i){var s=Uv(n,i);if(s.state>ezt)throw new Error("too late; already scheduled");return s}function W2(n,i){var s=Uv(n,i);if(s.state>roe)throw new Error("too late; already running");return s}function Uv(n,i){var s=n.__transition;if(!s||!(s=s[i]))throw new Error("transition not found");return s}function bDn(n,i,s){var c=n.__transition,d;c[i]=s,s.timer=QHt(g,0,s.time);function g(S){s.state=BMt,s.timer.restart(b,s.delay,s.time),s.delay<=S&&b(S-s.delay)}function b(S){var _,A,C,O;if(s.state!==BMt)return E();for(_ in c)if(O=c[_],O.name===s.name){if(O.state===roe)return $Mt(b);O.state===UMt?(O.state=ioe,O.timer.stop(),O.on.call("interrupt",n,n.__data__,O.index,O.group),delete c[_]):+_gDe&&c.state=0&&(i=i.slice(0,s)),!i||i==="start"})}function VDn(n,i,s){var c,d,g=qDn(i)?I5e:W2;return function(){var b=g(this,n),w=b.on;w!==c&&(d=(c=w).copy()).on(i,s),b.on=d}}function WDn(n,i){var s=this._id;return arguments.length<2?Uv(this.node(),s).on.on(n):this.each(VDn(s,n,i))}function KDn(n){return function(){var i=this.parentNode;for(var s in this.__transition)if(+s!==n)return;i&&i.removeChild(this)}}function YDn(){return this.on("end.remove",KDn(this._id))}function JDn(n){var i=this._name,s=this._id;typeof n!="function"&&(n=_5e(n));for(var c=this._groups,d=c.length,g=new Array(d),b=0;b()=>n;function ELn(n,{sourceEvent:i,target:s,transform:c,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:c,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 Zse=new lA(1,0,0);izt.prototype=lA.prototype;function izt(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Zse;return n.__zoom}function HCe(n){n.stopImmediatePropagation()}function BU(n){n.preventDefault(),n.stopImmediatePropagation()}function SLn(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function TLn(){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 HMt(){return this.__zoom||Zse}function ALn(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function _Ln(){return navigator.maxTouchPoints||"ontouchstart"in this}function xLn(n,i,s){var c=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>c?(c+d)/2:Math.min(0,c)||Math.max(0,d),b>g?(g+b)/2:Math.min(0,g)||Math.max(0,b))}function ozt(){var n=SLn,i=TLn,s=xLn,c=ALn,d=_Ln,g=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,E=noe,S=Kse("start","zoom","end"),_,A,C,O=500,L=150,D=0,B=10;function $(ge){ge.property("__zoom",HMt).on("wheel.zoom",ae,{passive:!1}).on("mousedown.zoom",he).on("dblclick.zoom",pe).filter(d).on("touchstart.zoom",ue).on("touchmove.zoom",fe).on("touchend.zoom touchcancel.zoom",K).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}$.transform=function(ge,De,Se,Re){var Ae=ge.selection?ge.selection():ge;Ae.property("__zoom",HMt),ge!==Ae?ee(ge,De,Se,Re):Ae.interrupt().each(function(){ne(this,arguments).event(Re).start().zoom(null,typeof De=="function"?De.apply(this,arguments):De).end()})},$.scaleBy=function(ge,De,Se,Re){$.scaleTo(ge,function(){var Ae=this.__zoom.k,xe=typeof De=="function"?De.apply(this,arguments):De;return Ae*xe},Se,Re)},$.scaleTo=function(ge,De,Se,Re){$.transform(ge,function(){var Ae=i.apply(this,arguments),xe=this.__zoom,We=Se==null?z(Ae):typeof Se=="function"?Se.apply(this,arguments):Se,ut=xe.invert(We),Be=typeof De=="function"?De.apply(this,arguments):De;return s(j(P(xe,Be),We,ut),Ae,b)},Se,Re)},$.translateBy=function(ge,De,Se,Re){$.transform(ge,function(){return s(this.__zoom.translate(typeof De=="function"?De.apply(this,arguments):De,typeof Se=="function"?Se.apply(this,arguments):Se),i.apply(this,arguments),b)},null,Re)},$.translateTo=function(ge,De,Se,Re,Ae){$.transform(ge,function(){var xe=i.apply(this,arguments),We=this.__zoom,ut=Re==null?z(xe):typeof Re=="function"?Re.apply(this,arguments):Re;return s(Zse.translate(ut[0],ut[1]).scale(We.k).translate(typeof De=="function"?-De.apply(this,arguments):-De,typeof Se=="function"?-Se.apply(this,arguments):-Se),xe,b)},Re,Ae)};function P(ge,De){return De=Math.max(g[0],Math.min(g[1],De)),De===ge.k?ge:new lA(De,ge.x,ge.y)}function j(ge,De,Se){var Re=De[0]-Se[0]*ge.k,Ae=De[1]-Se[1]*ge.k;return Re===ge.x&&Ae===ge.y?ge:new lA(ge.k,Re,Ae)}function z(ge){return[(+ge[0][0]+ +ge[1][0])/2,(+ge[0][1]+ +ge[1][1])/2]}function ee(ge,De,Se,Re){ge.on("start.zoom",function(){ne(this,arguments).event(Re).start()}).on("interrupt.zoom end.zoom",function(){ne(this,arguments).event(Re).end()}).tween("zoom",function(){var Ae=this,xe=arguments,We=ne(Ae,xe).event(Re),ut=i.apply(Ae,xe),Be=Se==null?z(ut):typeof Se=="function"?Se.apply(Ae,xe):Se,bt=Math.max(ut[1][0]-ut[0][0],ut[1][1]-ut[0][1]),Nt=Ae.__zoom,pt=typeof De=="function"?De.apply(Ae,xe):De,Kt=E(Nt.invert(Be).concat(bt/Nt.k),pt.invert(Be).concat(bt/pt.k));return function(Et){if(Et===1)Et=pt;else{var Dt=Kt(Et),Yt=bt/Dt[2];Et=new lA(Yt,Be[0]-Dt[0]*Yt,Be[1]-Dt[1]*Yt)}We.zoom(null,Et)}})}function ne(ge,De,Se){return!Se&&ge.__zooming||new Q(ge,De)}function Q(ge,De){this.that=ge,this.args=De,this.active=0,this.sourceEvent=null,this.extent=i.apply(ge,De),this.taps=0}Q.prototype={event:function(ge){return ge&&(this.sourceEvent=ge),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ge,De){return this.mouse&&ge!=="mouse"&&(this.mouse[1]=De.invert(this.mouse[0])),this.touch0&&ge!=="touch"&&(this.touch0[1]=De.invert(this.touch0[0])),this.touch1&&ge!=="touch"&&(this.touch1[1]=De.invert(this.touch1[0])),this.that.__zoom=De,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ge){var De=jm(this.that).datum();S.call(ge,this.that,new ELn(ge,{sourceEvent:this.sourceEvent,target:$,transform:this.that.__zoom,dispatch:S}),De)}};function ae(ge,...De){if(!n.apply(this,arguments))return;var Se=ne(this,De).event(ge),Re=this.__zoom,Ae=Math.max(g[0],Math.min(g[1],Re.k*Math.pow(2,c.apply(this,arguments)))),xe=Iv(ge);if(Se.wheel)(Se.mouse[0][0]!==xe[0]||Se.mouse[0][1]!==xe[1])&&(Se.mouse[1]=Re.invert(Se.mouse[0]=xe)),clearTimeout(Se.wheel);else{if(Re.k===Ae)return;Se.mouse=[xe,Re.invert(xe)],ooe(this),Se.start()}BU(ge),Se.wheel=setTimeout(We,L),Se.zoom("mouse",s(j(P(Re,Ae),Se.mouse[0],Se.mouse[1]),Se.extent,b));function We(){Se.wheel=null,Se.end()}}function he(ge,...De){if(C||!n.apply(this,arguments))return;var Se=ge.currentTarget,Re=ne(this,De,!0).event(ge),Ae=jm(ge.view).on("mousemove.zoom",Be,!0).on("mouseup.zoom",bt,!0),xe=Iv(ge,Se),We=ge.clientX,ut=ge.clientY;HHt(ge.view),HCe(ge),Re.mouse=[xe,this.__zoom.invert(xe)],ooe(this),Re.start();function Be(Nt){if(BU(Nt),!Re.moved){var pt=Nt.clientX-We,Kt=Nt.clientY-ut;Re.moved=pt*pt+Kt*Kt>D}Re.event(Nt).zoom("mouse",s(j(Re.that.__zoom,Re.mouse[0]=Iv(Nt,Se),Re.mouse[1]),Re.extent,b))}function bt(Nt){Ae.on("mousemove.zoom mouseup.zoom",null),zHt(Nt.view,Re.moved),BU(Nt),Re.event(Nt).end()}}function pe(ge,...De){if(n.apply(this,arguments)){var Se=this.__zoom,Re=Iv(ge.changedTouches?ge.changedTouches[0]:ge,this),Ae=Se.invert(Re),xe=Se.k*(ge.shiftKey?.5:2),We=s(j(P(Se,xe),Re,Ae),i.apply(this,De),b);BU(ge),w>0?jm(this).transition().duration(w).call(ee,We,Re,ge):jm(this).call($.transform,We,Re,ge)}}function ue(ge,...De){if(n.apply(this,arguments)){var Se=ge.touches,Re=Se.length,Ae=ne(this,De,ge.changedTouches.length===Re).event(ge),xe,We,ut,Be;for(HCe(ge),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:c})=>`Couldn't create edge for ${n} handle id: "${n==="source"?s:c}", edge id: ${i}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:n=>`Edge type "${n}" not found. Using fallback type "default".`,error012:n=>`Node with id "${n}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(n="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${n}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},YH=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],szt=["Enter"," ","Escape"],azt={"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 SM;(function(n){n.Strict="strict",n.Loose="loose"})(SM||(SM={}));var nR;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(nR||(nR={}));var JH;(function(n){n.Partial="partial",n.Full="full"})(JH||(JH={}));const czt={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 zMt={[qr.Left]:qr.Right,[qr.Right]:qr.Left,[qr.Top]:qr.Bottom,[qr.Bottom]:qr.Top};function uzt(n){return n===null?null:n?"valid":"invalid"}const lzt=n=>"id"in n&&"source"in n&&"target"in n,kLn=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),O5e=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),Az=(n,i=[0,0])=>{const{width:s,height:c}=_A(n),d=n.origin??i,g=s*d[0],b=c*d[1];return{x:n.position.x-g,y:n.position.y-b}},NLn=(n,i={nodeOrigin:[0,0]})=>{if(n.length===0)return{x:0,y:0,width:0,height:0};const s=n.reduce((c,d)=>{const g=typeof d=="string";let b=!i.nodeLookup&&!g?d:void 0;i.nodeLookup&&(b=g?i.nodeLookup.get(d):O5e(d)?d:i.nodeLookup.get(d.id));const w=b?Yoe(b,i.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Qse(c,w)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return eae(s)},_z=(n,i={})=>{let s={x:1/0,y:1/0,x2:-1/0,y2:-1/0},c=!1;return n.forEach(d=>{(i.filter===void 0||i.filter(d))&&(s=Qse(s,Yoe(d)),c=!0)}),c?eae(s):{x:0,y:0,width:0,height:0}},D5e=(n,i,[s,c,d]=[0,0,1],g=!1,b=!1)=>{const w={...kz(i,[s,c,d]),width:i.width/d,height:i.height/d},E=[];for(const S of n.values()){const{measured:_,selectable:A=!0,hidden:C=!1}=S;if(b&&!A||C)continue;const O=_.width??S.width??S.initialWidth??null,L=_.height??S.height??S.initialHeight??null,D=XH(w,AM(S)),B=(O??0)*(L??0),$=g&&D>0;(!S.internals.handleBounds||$||D>=B||S.dragging)&&E.push(S)}return E},CLn=(n,i)=>{const s=new Set;return n.forEach(c=>{s.add(c.id)}),i.filter(c=>s.has(c.source)||s.has(c.target))};function ILn(n,i){const s=new Map,c=i!=null&&i.nodes?new Set(i.nodes.map(d=>d.id)):null;return n.forEach(d=>{d.measured.width&&d.measured.height&&((i==null?void 0:i.includeHiddenNodes)||!d.hidden)&&(!c||c.has(d.id))&&s.set(d.id,d)}),s}async function RLn({nodes:n,width:i,height:s,panZoom:c,minZoom:d,maxZoom:g},b){if(n.size===0)return Promise.resolve(!0);const w=ILn(n,b),E=_z(w),S=L5e(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 c.setViewport(S,{duration:b==null?void 0:b.duration,ease:b==null?void 0:b.ease,interpolate:b==null?void 0:b.interpolate}),Promise.resolve(!0)}function dzt({nodeId:n,nextPosition:i,nodeLookup:s,nodeOrigin:c=[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},_=b.origin??c;let A=b.extent||d;if(b.extent==="parent"&&!b.expandParent)if(!w)g==null||g("005",z2.error005());else{const O=w.measured.width,L=w.measured.height;O&&L&&(A=[[E,S],[E+O,S+L]])}else w&&_M(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=_M(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)*_[0],y:C.y-S+(b.measured.height??0)*_[1]},positionAbsolute:C}}async function OLn({nodesToRemove:n=[],edgesToRemove:i=[],nodes:s,edges:c,onBeforeDelete:d}){const g=new Set(n.map(C=>C.id)),b=[];for(const C of s){if(C.deletable===!1)continue;const O=g.has(C.id),L=!O&&C.parentId&&b.find(D=>D.id===C.parentId);(O||L)&&b.push(C)}const w=new Set(i.map(C=>C.id)),E=c.filter(C=>C.deletable!==!1),_=CLn(b,E);for(const C of E)w.has(C.id)&&!_.find(L=>L.id===C.id)&&_.push(C);if(!d)return{edges:_,nodes:b};const A=await d({nodes:b,edges:_});return typeof A=="boolean"?A?{edges:_,nodes:b}:{edges:[],nodes:[]}:A}const TM=(n,i=0,s=1)=>Math.min(Math.max(n,i),s),hR=(n={x:0,y:0},i,s)=>({x:TM(n.x,i[0][0],i[1][0]-((s==null?void 0:s.width)??0)),y:TM(n.y,i[0][1],i[1][1]-((s==null?void 0:s.height)??0))});function fzt(n,i,s){const{width:c,height:d}=_A(s),{x:g,y:b}=s.internals.positionAbsolute;return hR(n,[[g,b],[g+c,b+d]],i)}const GMt=(n,i,s)=>ns?-TM(Math.abs(n-s),1,i)/i:0,hzt=(n,i,s=15,c=40)=>{const d=GMt(n.x,c,i.width-c)*s,g=GMt(n.y,c,i.height-c)*s;return[d,g]},Qse=(n,i)=>({x:Math.min(n.x,i.x),y:Math.min(n.y,i.y),x2:Math.max(n.x2,i.x2),y2:Math.max(n.y2,i.y2)}),mDe=({x:n,y:i,width:s,height:c})=>({x:n,y:i,x2:n+s,y2:i+c}),eae=({x:n,y:i,x2:s,y2:c})=>({x:n,y:i,width:s-n,height:c-i}),AM=(n,i=[0,0])=>{var d,g;const{x:s,y:c}=O5e(n)?n.internals.positionAbsolute:Az(n,i);return{x:s,y:c,width:((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0,height:((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0}},Yoe=(n,i=[0,0])=>{var d,g;const{x:s,y:c}=O5e(n)?n.internals.positionAbsolute:Az(n,i);return{x:s,y:c,x2:s+(((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0),y2:c+(((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0)}},pzt=(n,i)=>eae(Qse(mDe(n),mDe(i))),XH=(n,i)=>{const s=Math.max(0,Math.min(n.x+n.width,i.x+i.width)-Math.max(n.x,i.x)),c=Math.max(0,Math.min(n.y+n.height,i.y+i.height)-Math.max(n.y,i.y));return Math.ceil(s*c)},qMt=n=>Dv(n.width)&&Dv(n.height)&&Dv(n.x)&&Dv(n.y),Dv=n=>!isNaN(n)&&isFinite(n),DLn=(n,i)=>{},xz=(n,i=[1,1])=>({x:i[0]*Math.round(n.x/i[0]),y:i[1]*Math.round(n.y/i[1])}),kz=({x:n,y:i},[s,c,d],g=!1,b=[1,1])=>{const w={x:(n-s)/d,y:(i-c)/d};return g?xz(w,b):w},Joe=({x:n,y:i},[s,c,d])=>({x:n*d+s,y:i*d+c});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 LLn(n,i,s){if(typeof n=="string"||typeof n=="number"){const c=m5(n,s),d=m5(n,i);return{top:c,right:d,bottom:c,left:d,x:d*2,y:c*2}}if(typeof n=="object"){const c=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:c,right:b,bottom:d,left:g,x:g+b,y:c+d}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function MLn(n,i,s,c,d,g){const{x:b,y:w}=Joe(n,[i,s,c]),{x:E,y:S}=Joe({x:n.x+n.width,y:n.y+n.height},[i,s,c]),_=d-E,A=g-S;return{left:Math.floor(b),top:Math.floor(w),right:Math.floor(_),bottom:Math.floor(A)}}const L5e=(n,i,s,c,d,g)=>{const b=LLn(g,i,s),w=(i-b.x)/n.width,E=(s-b.y)/n.height,S=Math.min(w,E),_=TM(S,c,d),A=n.x+n.width/2,C=n.y+n.height/2,O=i/2-A*_,L=s/2-C*_,D=MLn(n,O,L,_,i,s),B={left:Math.min(D.left-b.left,0),top:Math.min(D.top-b.top,0),right:Math.min(D.right-b.right,0),bottom:Math.min(D.bottom-b.bottom,0)};return{x:O-B.left+B.right,y:L-B.top+B.bottom,zoom:_}},ZH=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function _M(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 gzt(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 bzt(n,i={width:0,height:0},s,c,d){const g={...n},b=c.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 VMt(n,i){if(n.size!==i.size)return!1;for(const s of n)if(!i.has(s))return!1;return!0}function PLn(){let n,i;return{promise:new Promise((c,d)=>{n=c,i=d}),resolve:n,reject:i}}function jLn(n){return{...azt,...n||{}}}function vH(n,{snapGrid:i=[0,0],snapToGrid:s=!1,transform:c,containerBounds:d}){const{x:g,y:b}=Lv(n),w=kz({x:g-((d==null?void 0:d.left)??0),y:b-((d==null?void 0:d.top)??0)},c),{x:E,y:S}=s?xz(w,i):w;return{xSnapped:E,ySnapped:S,...w}}const M5e=n=>({width:n.offsetWidth,height:n.offsetHeight}),mzt=n=>{var i;return((i=n==null?void 0:n.getRootNode)==null?void 0:i.call(n))||(window==null?void 0:window.document)},FLn=["INPUT","SELECT","TEXTAREA"];function wzt(n){var c,d;const i=((d=(c=n.composedPath)==null?void 0:c.call(n))==null?void 0:d[0])||n.target;return(i==null?void 0:i.nodeType)!==1?!1:FLn.includes(i.nodeName)||i.hasAttribute("contenteditable")||!!i.closest(".nokey")}const yzt=n=>"clientX"in n,Lv=(n,i)=>{var g,b;const s=yzt(n),c=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:c-((i==null?void 0:i.left)??0),y:d-((i==null?void 0:i.top)??0)}},WMt=(n,i,s,c,d)=>{const g=i.querySelectorAll(`.${n}`);return!g||!g.length?null:Array.from(g).map(b=>{const w=b.getBoundingClientRect();return{id:b.getAttribute("data-handleid"),type:n,nodeId:d,position:b.getAttribute("data-handlepos"),x:(w.left-s.left)/c,y:(w.top-s.top)/c,...M5e(b)}})};function vzt({sourceX:n,sourceY:i,targetX:s,targetY:c,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+c*.125,_=Math.abs(E-n),A=Math.abs(S-i);return[E,S,_,A]}function yie(n,i){return n>=0?.5*n:i*25*Math.sqrt(-n)}function KMt({pos:n,x1:i,y1:s,x2:c,y2:d,c:g}){switch(n){case qr.Left:return[i-yie(i-c,g),s];case qr.Right:return[i+yie(c-i,g),s];case qr.Top:return[i,s-yie(s-d,g)];case qr.Bottom:return[i,s+yie(d-s,g)]}}function Ezt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:c,targetY:d,targetPosition:g=qr.Top,curvature:b=.25}){const[w,E]=KMt({pos:s,x1:n,y1:i,x2:c,y2:d,c:b}),[S,_]=KMt({pos:g,x1:c,y1:d,x2:n,y2:i,c:b}),[A,C,O,L]=vzt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:w,sourceControlY:E,targetControlX:S,targetControlY:_});return[`M${n},${i} C${w},${E} ${S},${_} ${c},${d}`,A,C,O,L]}function Szt({sourceX:n,sourceY:i,targetX:s,targetY:c}){const d=Math.abs(s-n)/2,g=s0}const ULn=({source:n,sourceHandle:i,target:s,targetHandle:c})=>`xy-edge__${n}${i||""}-${s}${c||""}`,HLn=(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)),Tzt=(n,i,s={})=>{if(!n.source||!n.target)return i;const c=s.getEdgeId||ULn;let d;return lzt(n)?d={...n}:d={...n,id:c(n)},HLn(d,i)?i:(d.sourceHandle===null&&delete d.sourceHandle,d.targetHandle===null&&delete d.targetHandle,i.concat(d))};function Azt({sourceX:n,sourceY:i,targetX:s,targetY:c}){const[d,g,b,w]=Szt({sourceX:n,sourceY:i,targetX:s,targetY:c});return[`M ${n},${i}L ${s},${c}`,d,g,b,w]}const YMt={[qr.Left]:{x:-1,y:0},[qr.Right]:{x:1,y:0},[qr.Top]:{x:0,y:-1},[qr.Bottom]:{x:0,y:1}},zLn=({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 GLn({source:n,sourcePosition:i=qr.Bottom,target:s,targetPosition:c=qr.Top,center:d,offset:g,stepPosition:b}){const w=YMt[i],E=YMt[c],S={x:n.x+w.x*g,y:n.y+w.y*g},_={x:s.x+E.x*g,y:s.y+E.y*g},A=zLn({source:S,sourcePosition:i,target:_}),C=A.x!==0?"x":"y",O=A[C];let L=[],D,B;const $={x:0,y:0},P={x:0,y:0},[,,j,z]=Szt({sourceX:n.x,sourceY:n.y,targetX:s.x,targetY:s.y});if(w[C]*E[C]===-1){C==="x"?(D=d.x??S.x+(_.x-S.x)*b,B=d.y??(S.y+_.y)/2):(D=d.x??(S.x+_.x)/2,B=d.y??S.y+(_.y-S.y)*b);const ne=[{x:D,y:S.y},{x:D,y:_.y}],Q=[{x:S.x,y:B},{x:_.x,y:B}];w[C]===O?L=C==="x"?ne:Q:L=C==="x"?Q:ne}else{const ne=[{x:S.x,y:_.y}],Q=[{x:_.x,y:S.y}];if(C==="x"?L=w.x===O?Q:ne:L=w.y===O?ne:Q,i===c){const fe=Math.abs(n[C]-s[C]);if(fe<=g){const K=Math.min(g-1,g-fe);w[C]===O?$[C]=(S[C]>n[C]?-1:1)*K:P[C]=(_[C]>s[C]?-1:1)*K}}if(i!==c){const fe=C==="x"?"y":"x",K=w[C]===E[fe],ge=S[fe]>_[fe],De=S[fe]<_[fe];(w[C]===1&&(!K&&ge||K&&De)||w[C]!==1&&(!K&&De||K&&ge))&&(L=C==="x"?ne:Q)}const ae={x:S.x+$.x,y:S.y+$.y},he={x:_.x+P.x,y:_.y+P.y},pe=Math.max(Math.abs(ae.x-L[0].x),Math.abs(he.x-L[0].x)),ue=Math.max(Math.abs(ae.y-L[0].y),Math.abs(he.y-L[0].y));pe>=ue?(D=(ae.x+he.x)/2,B=L[0].y):(D=L[0].x,B=(ae.y+he.y)/2)}return[[n,{x:S.x+$.x,y:S.y+$.y},...L,{x:_.x+P.x,y:_.y+P.y},s],D,B,j,z]}function qLn(n,i,s,c){const d=Math.min(JMt(n,i)/2,JMt(i,s)/2,c),{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 z="";return j>0&&js.id===i):n[0])||null}function wDe(n,i){return n?typeof n=="string"?n:`${i?`${i}__`:""}${Object.keys(n).sort().map(c=>`${c}=${n[c]}`).join("&")}`:""}function WLn(n,{id:i,defaultColor:s,defaultMarkerStart:c,defaultMarkerEnd:d}){const g=new Set;return n.reduce((b,w)=>([w.markerStart||c,w.markerEnd||d].forEach(E=>{if(E&&typeof E=="object"){const S=wDe(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 _zt=1e3,KLn=10,P5e={nodeOrigin:[0,0],nodeExtent:YH,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},YLn={...P5e,checkEquality:!0};function j5e(n,i){const s={...n};for(const c in i)i[c]!==void 0&&(s[c]=i[c]);return s}function JLn(n,i,s){const c=j5e(P5e,s);for(const d of n.values())if(d.parentId)$5e(d,n,i,c);else{const g=Az(d,c.nodeOrigin),b=_M(d.extent)?d.extent:c.nodeExtent,w=hR(g,b,_A(d));d.internals.positionAbsolute=w}}function XLn(n,i){if(!n.handles)return n.measured?i==null?void 0:i.internals.handleBounds:void 0;const s=[],c=[];for(const d of n.handles){const g={id:d.id,width:d.width??1,height:d.height??1,nodeId:n.id,x:d.x,y:d.y,position:d.position,type:d.type};d.type==="source"?s.push(g):d.type==="target"&&c.push(g)}return{source:s,target:c}}function F5e(n){return n==="manual"}function yDe(n,i,s,c={}){var S,_;const d=j5e(YLn,c),g={i:0},b=new Map(i),w=d!=null&&d.elevateNodesOnSelect&&!F5e(d.zIndexMode)?_zt: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 O=Az(A,d.nodeOrigin),L=_M(A.extent)?A.extent:d.nodeExtent,D=hR(O,L,_A(A));C={...d.defaults,...A,measured:{width:(S=A.measured)==null?void 0:S.width,height:(_=A.measured)==null?void 0:_.height},internals:{positionAbsolute:D,handleBounds:XLn(A,C),z:xzt(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&&$5e(C,i,s,c,g)}return E}function ZLn(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 $5e(n,i,s,c,d){const{elevateNodesOnSelect:g,nodeOrigin:b,nodeExtent:w,zIndexMode:E}=j5e(P5e,c),S=n.parentId,_=i.get(S);if(!_){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}ZLn(n,s),d&&!_.parentId&&_.internals.rootParentIndex===void 0&&E==="auto"&&(_.internals.rootParentIndex=++d.i,_.internals.z=_.internals.z+d.i*KLn),d&&_.internals.rootParentIndex!==void 0&&(d.i=_.internals.rootParentIndex);const A=g&&!F5e(E)?_zt:0,{x:C,y:O,z:L}=QLn(n,_,b,w,A,E),{positionAbsolute:D}=n.internals,B=C!==D.x||O!==D.y;(B||L!==n.internals.z)&&i.set(n.id,{...n,internals:{...n.internals,positionAbsolute:B?{x:C,y:O}:D,z:L}})}function xzt(n,i,s){const c=Dv(n.zIndex)?n.zIndex:0;return F5e(s)?c:c+(n.selected?i:0)}function QLn(n,i,s,c,d,g){const{x:b,y:w}=i.internals.positionAbsolute,E=_A(n),S=Az(n,s),_=_M(n.extent)?hR(S,n.extent,E):S;let A=hR({x:b+_.x,y:w+_.y},c,E);n.extent==="parent"&&(A=fzt(A,E,i));const C=xzt(n,d,g),O=i.internals.z??0;return{x:A.x,y:A.y,z:O>=C?O+1:C}}function B5e(n,i,s,c=[0,0]){var b;const d=[],g=new Map;for(const w of n){const E=i.get(w.parentId);if(!E)continue;const S=((b=g.get(w.parentId))==null?void 0:b.expandedRect)??AM(E),_=pzt(S,w.rect);g.set(w.parentId,{expandedRect:_,parent:E})}return g.size>0&&g.forEach(({expandedRect:w,parent:E},S)=>{var j;const _=E.internals.positionAbsolute,A=_A(E),C=E.origin??c,O=w.x<_.x?Math.round(Math.abs(_.x-w.x)):0,L=w.y<_.y?Math.round(Math.abs(_.y-w.y)):0,D=Math.max(A.width,Math.round(w.width)),B=Math.max(A.height,Math.round(w.height)),$=(D-A.width)*C[0],P=(B-A.height)*C[1];(O>0||L>0||$||P)&&(d.push({id:S,type:"position",position:{x:E.position.x-O+$,y:E.position.y-L+P}}),(j=s.get(S))==null||j.forEach(z=>{n.some(ee=>ee.id===z.id)||d.push({id:z.id,type:"position",position:{x:z.position.x+O,y:z.position.y+L}})})),(A.width0){const O=B5e(C,i,s,d);S.push(...O)}return{changes:S,updatedInternals:E}}async function t5n({delta:n,panZoom:i,transform:s,translateExtent:c,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]],c),w=!!b&&(b.x!==s[0]||b.y!==s[1]||b.k!==s[2]);return Promise.resolve(w)}function e9t(n,i,s,c,d,g){let b=d;const w=c.get(b)||new Map;c.set(b,w.set(s,i)),b=`${d}-${n}`;const E=c.get(b)||new Map;if(c.set(b,E.set(s,i)),g){b=`${d}-${n}-${g}`;const S=c.get(b)||new Map;c.set(b,S.set(s,i))}}function kzt(n,i,s){n.clear(),i.clear();for(const c of s){const{source:d,target:g,sourceHandle:b=null,targetHandle:w=null}=c,E={edgeId:c.id,source:d,target:g,sourceHandle:b,targetHandle:w},S=`${d}-${b}--${g}-${w}`,_=`${g}-${w}--${d}-${b}`;e9t("source",E,_,n,d,b),e9t("target",E,S,n,g,w),i.set(c.id,c)}}function Nzt(n,i){if(!n.parentId)return!1;const s=i.get(n.parentId);return s?s.selected?!0:Nzt(s,i):!1}function t9t(n,i,s){var d;let c=n;do{if((d=c==null?void 0:c.matches)!=null&&d.call(c,i))return!0;if(c===s)return!1;c=c==null?void 0:c.parentElement}while(c);return!1}function n5n(n,i,s,c){const d=new Map;for(const[g,b]of n)if((b.selected||b.id===c)&&(!b.parentId||!Nzt(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 zCe({nodeId:n,dragItems:i,nodeLookup:s,dragging:c=!0}){var b,w,E;const d=[];for(const[S,_]of i){const A=(b=s.get(S))==null?void 0:b.internals.userNode;A&&d.push({...A,position:_.position,dragging:c})}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:c}:d[0],d]}function r5n({dragItems:n,snapGrid:i,x:s,y:c}){const d=n.values().next().value;if(!d)return null;const g={x:s-d.distance.x,y:c-d.distance.y},b=xz(g,i);return{x:b.x-g.x,y:b.y-g.y}}function i5n({onNodeMouseDown:n,getStoreItems:i,onDragStart:s,onDrag:c,onDragStop:d}){let g={x:null,y:null},b=0,w=new Map,E=!1,S={x:0,y:0},_=null,A=!1,C=null,O=!1,L=!1,D=null;function B({noDragClassName:P,handleSelector:j,domNode:z,isSelectable:ee,nodeId:ne,nodeClickDistance:Q=0}){C=jm(z);function ae({x:fe,y:K}){const{nodeLookup:ge,nodeExtent:De,snapGrid:Se,snapToGrid:Re,nodeOrigin:Ae,onNodeDrag:xe,onSelectionDrag:We,onError:ut,updateNodePositions:Be}=i();g={x:fe,y:K};let bt=!1;const Nt=w.size>1,pt=Nt&&De?mDe(_z(w)):null,Kt=Nt&&Re?r5n({dragItems:w,snapGrid:Se,x:fe,y:K}):null;for(const[Et,Dt]of w){if(!ge.has(Et))continue;let Yt={x:fe-Dt.distance.x,y:K-Dt.distance.y};Re&&(Yt=Kt?{x:Math.round(Yt.x+Kt.x),y:Math.round(Yt.y+Kt.y)}:xz(Yt,Se));let Ln=null;if(Nt&&De&&!Dt.extent&&pt){const{positionAbsolute:Er}=Dt.internals,Ui=Er.x-pt.x+De[0][0],Qr=Er.x+Dt.measured.width-pt.x2+De[1][0],Hi=Er.y-pt.y+De[0][1],ai=Er.y+Dt.measured.height-pt.y2+De[1][1];Ln=[[Ui,Hi],[Qr,ai]]}const{position:Zn,positionAbsolute:Yn}=dzt({nodeId:Et,nextPosition:Yt,nodeLookup:ge,nodeExtent:Ln||De,nodeOrigin:Ae,onError:ut});bt=bt||Dt.position.x!==Zn.x||Dt.position.y!==Zn.y,Dt.position=Zn,Dt.internals.positionAbsolute=Yn}if(L=L||bt,!!bt&&(Be(w,!0),D&&(c||xe||!ne&&We))){const[Et,Dt]=zCe({nodeId:ne,dragItems:w,nodeLookup:ge});c==null||c(D,w,Et,Dt),xe==null||xe(D,Et,Dt),ne||We==null||We(D,Dt)}}async function he(){if(!_)return;const{transform:fe,panBy:K,autoPanSpeed:ge,autoPanOnNodeDrag:De}=i();if(!De){E=!1,cancelAnimationFrame(b);return}const[Se,Re]=hzt(S,_,ge);(Se!==0||Re!==0)&&(g.x=(g.x??0)-Se/fe[2],g.y=(g.y??0)-Re/fe[2],await K({x:Se,y:Re})&&ae(g)),b=requestAnimationFrame(he)}function pe(fe){var Nt;const{nodeLookup:K,multiSelectionActive:ge,nodesDraggable:De,transform:Se,snapGrid:Re,snapToGrid:Ae,selectNodesOnDrag:xe,onNodeDragStart:We,onSelectionDragStart:ut,unselectNodesAndEdges:Be}=i();A=!0,(!xe||!ee)&&!ge&&ne&&((Nt=K.get(ne))!=null&&Nt.selected||Be()),ee&&xe&&ne&&(n==null||n(ne));const bt=vH(fe.sourceEvent,{transform:Se,snapGrid:Re,snapToGrid:Ae,containerBounds:_});if(g=bt,w=n5n(K,De,bt,ne),w.size>0&&(s||We||!ne&&ut)){const[pt,Kt]=zCe({nodeId:ne,dragItems:w,nodeLookup:K});s==null||s(fe.sourceEvent,w,pt,Kt),We==null||We(fe.sourceEvent,pt,Kt),ne||ut==null||ut(fe.sourceEvent,Kt)}}const ue=GHt().clickDistance(Q).on("start",fe=>{const{domNode:K,nodeDragThreshold:ge,transform:De,snapGrid:Se,snapToGrid:Re}=i();_=(K==null?void 0:K.getBoundingClientRect())||null,O=!1,L=!1,D=fe.sourceEvent,ge===0&&pe(fe),g=vH(fe.sourceEvent,{transform:De,snapGrid:Se,snapToGrid:Re,containerBounds:_}),S=Lv(fe.sourceEvent,_)}).on("drag",fe=>{const{autoPanOnNodeDrag:K,transform:ge,snapGrid:De,snapToGrid:Se,nodeDragThreshold:Re,nodeLookup:Ae}=i(),xe=vH(fe.sourceEvent,{transform:ge,snapGrid:De,snapToGrid:Se,containerBounds:_});if(D=fe.sourceEvent,(fe.sourceEvent.type==="touchmove"&&fe.sourceEvent.touches.length>1||ne&&!Ae.has(ne))&&(O=!0),!O){if(!E&&K&&A&&(E=!0,he()),!A){const We=Lv(fe.sourceEvent,_),ut=We.x-S.x,Be=We.y-S.y;Math.sqrt(ut*ut+Be*Be)>Re&&pe(fe)}(g.x!==xe.xSnapped||g.y!==xe.ySnapped)&&w&&A&&(S=Lv(fe.sourceEvent,_),ae(xe))}}).on("end",fe=>{if(!(!A||O)&&(E=!1,A=!1,cancelAnimationFrame(b),w.size>0)){const{nodeLookup:K,updateNodePositions:ge,onNodeDragStop:De,onSelectionDragStop:Se}=i();if(L&&(ge(w,!1),L=!1),d||De||!ne&&Se){const[Re,Ae]=zCe({nodeId:ne,dragItems:w,nodeLookup:K,dragging:!1});d==null||d(fe.sourceEvent,w,Re,Ae),De==null||De(fe.sourceEvent,Re,Ae),ne||Se==null||Se(fe.sourceEvent,Ae)}}}).filter(fe=>{const K=fe.target;return!fe.button&&(!P||!t9t(K,`.${P}`,z))&&(!j||t9t(K,j,z))});C.call(ue)}function $(){C==null||C.on(".drag",null)}return{update:B,destroy:$}}function o5n(n,i,s){const c=[],d={x:n.x-s,y:n.y-s,width:s*2,height:s*2};for(const g of i.values())XH(d,AM(g))>0&&c.push(g);return c}const s5n=250;function a5n(n,i,s,c){var w,E;let d=[],g=1/0;const b=o5n(n,s,i+s5n);for(const S of b){const _=[...((w=S.internals.handleBounds)==null?void 0:w.source)??[],...((E=S.internals.handleBounds)==null?void 0:E.target)??[]];for(const A of _){if(c.nodeId===A.nodeId&&c.type===A.type&&c.id===A.id)continue;const{x:C,y:O}=pR(S,A,A.position,!0),L=Math.sqrt(Math.pow(C-n.x,2)+Math.pow(O-n.y,2));L>i||(L1){const S=c.type==="source"?"target":"source";return d.find(_=>_.type===S)??d[0]}return d[0]}function Czt(n,i,s,c,d,g=!1){var S,_,A;const b=c.get(n);if(!b)return null;const w=d==="strict"?(S=b.internals.handleBounds)==null?void 0:S[i]:[...((_=b.internals.handleBounds)==null?void 0:_.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 Izt(n,i){return n||(i!=null&&i.classList.contains("target")?"target":i!=null&&i.classList.contains("source")?"source":null)}function c5n(n,i){let s=null;return i?s=!0:n&&!i&&(s=!1),s}const Rzt=()=>!0;function u5n(n,{connectionMode:i,connectionRadius:s,handleId:c,nodeId:d,edgeUpdaterType:g,isTarget:b,domNode:w,nodeLookup:E,lib:S,autoPanOnConnect:_,flowId:A,panBy:C,cancelConnection:O,onConnectStart:L,onConnect:D,onConnectEnd:B,isValidConnection:$=Rzt,onReconnectEnd:P,updateConnection:j,getTransform:z,getFromHandle:ee,autoPanSpeed:ne,dragThreshold:Q=1,handleDomNode:ae}){const he=mzt(n.target);let pe=0,ue;const{x:fe,y:K}=Lv(n),ge=Izt(g,ae),De=w==null?void 0:w.getBoundingClientRect();let Se=!1;if(!De||!ge)return;const Re=Czt(d,ge,c,E,i);if(!Re)return;let Ae=Lv(n,De),xe=!1,We=null,ut=!1,Be=null;function bt(){if(!_||!De)return;const[Zn,Yn]=hzt(Ae,De,ne);C({x:Zn,y:Yn}),pe=requestAnimationFrame(bt)}const Nt={...Re,nodeId:d,type:ge,position:Re.position},pt=E.get(d);let Et={inProgress:!0,isValid:null,from:pR(pt,Nt,qr.Left,!0),fromHandle:Nt,fromPosition:Nt.position,fromNode:pt,to:Ae,toHandle:null,toPosition:zMt[Nt.position],toNode:null,pointer:Ae};function Dt(){Se=!0,j(Et),L==null||L(n,{nodeId:d,handleId:c,handleType:ge})}Q===0&&Dt();function Yt(Zn){if(!Se){const{x:ai,y:ju}=Lv(Zn),Xs=ai-fe,ls=ju-K;if(!(Xs*Xs+ls*ls>Q*Q))return;Dt()}if(!ee()||!Nt){Ln(Zn);return}const Yn=z();Ae=Lv(Zn,De),ue=a5n(kz(Ae,Yn,!1,[1,1]),s,E,Nt),xe||(bt(),xe=!0);const Er=Ozt(Zn,{handle:ue,connectionMode:i,fromNodeId:d,fromHandleId:c,fromType:b?"target":"source",isValidConnection:$,doc:he,lib:S,flowId:A,nodeLookup:E});Be=Er.handleDomNode,We=Er.connection,ut=c5n(!!ue,Er.isValid);const Ui=E.get(d),Qr=Ui?pR(Ui,Nt,qr.Left,!0):Et.from,Hi={...Et,from:Qr,isValid:ut,to:Er.toHandle&&ut?Joe({x:Er.toHandle.x,y:Er.toHandle.y},Yn):Ae,toHandle:Er.toHandle,toPosition:ut&&Er.toHandle?Er.toHandle.position:zMt[Nt.position],toNode:Er.toHandle?E.get(Er.toHandle.nodeId):null,pointer:Ae};j(Hi),Et=Hi}function Ln(Zn){if(!("touches"in Zn&&Zn.touches.length>0)){if(Se){(ue||Be)&&We&&ut&&(D==null||D(We));const{inProgress:Yn,...Er}=Et,Ui={...Er,toPosition:Et.toHandle?Et.toPosition:null};B==null||B(Zn,Ui),g&&(P==null||P(Zn,Ui))}O(),cancelAnimationFrame(pe),xe=!1,ut=!1,We=null,Be=null,he.removeEventListener("mousemove",Yt),he.removeEventListener("mouseup",Ln),he.removeEventListener("touchmove",Yt),he.removeEventListener("touchend",Ln)}}he.addEventListener("mousemove",Yt),he.addEventListener("mouseup",Ln),he.addEventListener("touchmove",Yt),he.addEventListener("touchend",Ln)}function Ozt(n,{handle:i,connectionMode:s,fromNodeId:c,fromHandleId:d,fromType:g,doc:b,lib:w,flowId:E,isValidConnection:S=Rzt,nodeLookup:_}){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:O,y:L}=Lv(n),D=b.elementFromPoint(O,L),B=D!=null&&D.classList.contains(`${w}-flow__handle`)?D:C,$={handleDomNode:B,isValid:!1,connection:null,toHandle:null};if(B){const P=Izt(void 0,B),j=B.getAttribute("data-nodeid"),z=B.getAttribute("data-handleid"),ee=B.classList.contains("connectable"),ne=B.classList.contains("connectableend");if(!j||!P)return $;const Q={source:A?j:c,sourceHandle:A?z:d,target:A?c:j,targetHandle:A?d:z};$.connection=Q;const he=ee&&ne&&(s===SM.Strict?A&&P==="source"||!A&&P==="target":j!==c||z!==d);$.isValid=he&&S(Q),$.toHandle=Czt(j,P,z,_,s,!0)}return $}const vDe={onPointerDown:u5n,isValid:Ozt};function l5n({domNode:n,panZoom:i,getTransform:s,getViewScale:c}){const d=jm(n);function g({translateExtent:w,width:E,height:S,zoomStep:_=1,pannable:A=!0,zoomable:C=!0,inversePan:O=!1}){const L=j=>{if(j.sourceEvent.type!=="wheel"||!i)return;const z=s(),ee=j.sourceEvent.ctrlKey&&ZH()?10:1,ne=-j.sourceEvent.deltaY*(j.sourceEvent.deltaMode===1?.05:j.sourceEvent.deltaMode?1:.002)*_,Q=z[2]*Math.pow(2,ne*ee);i.scaleTo(Q)};let D=[0,0];const B=j=>{(j.sourceEvent.type==="mousedown"||j.sourceEvent.type==="touchstart")&&(D=[j.sourceEvent.clientX??j.sourceEvent.touches[0].clientX,j.sourceEvent.clientY??j.sourceEvent.touches[0].clientY])},$=j=>{const z=s();if(j.sourceEvent.type!=="mousemove"&&j.sourceEvent.type!=="touchmove"||!i)return;const ee=[j.sourceEvent.clientX??j.sourceEvent.touches[0].clientX,j.sourceEvent.clientY??j.sourceEvent.touches[0].clientY],ne=[ee[0]-D[0],ee[1]-D[1]];D=ee;const Q=c()*Math.max(z[2],Math.log(z[2]))*(O?-1:1),ae={x:z[0]-ne[0]*Q,y:z[1]-ne[1]*Q},he=[[0,0],[E,S]];i.setViewportConstrained({x:ae.x,y:ae.y,zoom:z[2]},he,w)},P=ozt().on("start",B).on("zoom",A?$:null).on("zoom.wheel",C?L:null);d.call(P,{})}function b(){d.on("zoom",null)}return{update:g,destroy:b,pointer:Iv}}const tae=n=>({x:n.x,y:n.y,zoom:n.k}),GCe=({x:n,y:i,zoom:s})=>Zse.translate(n,i).scale(s),z5=(n,i)=>n.target.closest(`.${i}`),Dzt=(n,i)=>i===2&&Array.isArray(n)&&n.includes(2),d5n=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,qCe=(n,i=0,s=d5n,c=()=>{})=>{const d=typeof i=="number"&&i>0;return d||c(),d?n.transition().duration(i).ease(s).on("end",c):n},Lzt=n=>{const i=n.ctrlKey&&ZH()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*i};function f5n({zoomPanValues:n,noWheelClassName:i,d3Selection:s,d3Zoom:c,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:b,onPanZoomStart:w,onPanZoom:E,onPanZoomEnd:S}){return _=>{if(z5(_,i))return _.ctrlKey&&_.preventDefault(),!1;_.preventDefault(),_.stopImmediatePropagation();const A=s.property("__zoom").k||1;if(_.ctrlKey&&b){const B=Iv(_),$=Lzt(_),P=A*Math.pow(2,$);c.scaleTo(s,P,B,_);return}const C=_.deltaMode===1?20:1;let O=d===nR.Vertical?0:_.deltaX*C,L=d===nR.Horizontal?0:_.deltaY*C;!ZH()&&_.shiftKey&&d!==nR.Vertical&&(O=_.deltaY*C,L=0),c.translateBy(s,-(O/A)*g,-(L/A)*g,{internal:!0});const D=tae(s.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(E==null||E(_,D),n.panScrollTimeout=setTimeout(()=>{S==null||S(_,D),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,w==null||w(_,D))}}function h5n({noWheelClassName:n,preventScrolling:i,d3ZoomHandler:s}){return function(c,d){const g=c.type==="wheel",b=!i&&g&&!c.ctrlKey,w=z5(c,n);if(c.ctrlKey&&g&&w&&c.preventDefault(),b||w)return null;c.preventDefault(),s.call(this,c,d)}}function p5n({zoomPanValues:n,onDraggingChange:i,onPanZoomStart:s}){return c=>{var g,b,w;if((g=c.sourceEvent)!=null&&g.internal)return;const d=tae(c.transform);n.mouseButton=((b=c.sourceEvent)==null?void 0:b.button)||0,n.isZoomingOrPanning=!0,n.prevViewport=d,((w=c.sourceEvent)==null?void 0:w.type)==="mousedown"&&i(!0),s&&(s==null||s(c.sourceEvent,d))}}function g5n({zoomPanValues:n,panOnDrag:i,onPaneContextMenu:s,onTransformChange:c,onPanZoom:d}){return g=>{var b,w;n.usedRightMouseButton=!!(s&&Dzt(i,n.mouseButton??0)),(b=g.sourceEvent)!=null&&b.sync||c([g.transform.x,g.transform.y,g.transform.k]),d&&!((w=g.sourceEvent)!=null&&w.internal)&&(d==null||d(g.sourceEvent,tae(g.transform)))}}function b5n({zoomPanValues:n,panOnDrag:i,panOnScroll:s,onDraggingChange:c,onPanZoomEnd:d,onPaneContextMenu:g}){return b=>{var w;if(!((w=b.sourceEvent)!=null&&w.internal)&&(n.isZoomingOrPanning=!1,g&&Dzt(i,n.mouseButton??0)&&!n.usedRightMouseButton&&b.sourceEvent&&g(b.sourceEvent),n.usedRightMouseButton=!1,c(!1),d)){const E=tae(b.transform);n.prevViewport=E,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{d==null||d(b.sourceEvent,E)},s?150:0)}}}function m5n({zoomActivationKeyPressed:n,zoomOnScroll:i,zoomOnPinch:s,panOnDrag:c,panOnScroll:d,zoomOnDoubleClick:g,userSelectionActive:b,noWheelClassName:w,noPanClassName:E,lib:S,connectionInProgress:_}){return A=>{var B;const C=n||i,O=s&&A.ctrlKey,L=A.type==="wheel";if(A.button===1&&A.type==="mousedown"&&(z5(A,`${S}-flow__node`)||z5(A,`${S}-flow__edge`)))return!0;if(!c&&!C&&!d&&!g&&!s||b||_&&!L||z5(A,w)&&L||z5(A,E)&&(!L||d&&L&&!n)||!s&&A.ctrlKey&&L)return!1;if(!s&&A.type==="touchstart"&&((B=A.touches)==null?void 0:B.length)>1)return A.preventDefault(),!1;if(!C&&!d&&!O&&L||!c&&(A.type==="mousedown"||A.type==="touchstart")||Array.isArray(c)&&!c.includes(A.button)&&A.type==="mousedown")return!1;const D=Array.isArray(c)&&c.includes(A.button)||!A.button||A.button<=1;return(!A.ctrlKey||L)&&D}}function w5n({domNode:n,minZoom:i,maxZoom:s,translateExtent:c,viewport:d,onPanZoom:g,onPanZoomStart:b,onPanZoomEnd:w,onDraggingChange:E}){const S={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},_=n.getBoundingClientRect(),A=ozt().scaleExtent([i,s]).translateExtent(c),C=jm(n).call(A);P({x:d.x,y:d.y,zoom:TM(d.zoom,i,s)},[[0,0],[_.width,_.height]],c);const O=C.on("wheel.zoom"),L=C.on("dblclick.zoom");A.wheelDelta(Lzt);function D(ue,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?yH:noe).transform(qCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ue)}):Promise.resolve(!1)}function B({noWheelClassName:ue,noPanClassName:fe,onPaneContextMenu:K,userSelectionActive:ge,panOnScroll:De,panOnDrag:Se,panOnScrollMode:Re,panOnScrollSpeed:Ae,preventScrolling:xe,zoomOnPinch:We,zoomOnScroll:ut,zoomOnDoubleClick:Be,zoomActivationKeyPressed:bt,lib:Nt,onTransformChange:pt,connectionInProgress:Kt,paneClickDistance:Et,selectionOnDrag:Dt}){ge&&!S.isZoomingOrPanning&&$();const Yt=De&&!bt&&!ge;A.clickDistance(Dt?1/0:!Dv(Et)||Et<0?0:Et);const Ln=Yt?f5n({zoomPanValues:S,noWheelClassName:ue,d3Selection:C,d3Zoom:A,panOnScrollMode:Re,panOnScrollSpeed:Ae,zoomOnPinch:We,onPanZoomStart:b,onPanZoom:g,onPanZoomEnd:w}):h5n({noWheelClassName:ue,preventScrolling:xe,d3ZoomHandler:O});if(C.on("wheel.zoom",Ln,{passive:!1}),!ge){const Yn=p5n({zoomPanValues:S,onDraggingChange:E,onPanZoomStart:b});A.on("start",Yn);const Er=g5n({zoomPanValues:S,panOnDrag:Se,onPaneContextMenu:!!K,onPanZoom:g,onTransformChange:pt});A.on("zoom",Er);const Ui=b5n({zoomPanValues:S,panOnDrag:Se,panOnScroll:De,onPaneContextMenu:K,onPanZoomEnd:w,onDraggingChange:E});A.on("end",Ui)}const Zn=m5n({zoomActivationKeyPressed:bt,panOnDrag:Se,zoomOnScroll:ut,panOnScroll:De,zoomOnDoubleClick:Be,zoomOnPinch:We,userSelectionActive:ge,noPanClassName:fe,noWheelClassName:ue,lib:Nt,connectionInProgress:Kt});A.filter(Zn),Be?C.on("dblclick.zoom",L):C.on("dblclick.zoom",null)}function $(){A.on("zoom",null)}async function P(ue,fe,K){const ge=GCe(ue),De=A==null?void 0:A.constrain()(ge,fe,K);return De&&await D(De),new Promise(Se=>Se(De))}async function j(ue,fe){const K=GCe(ue);return await D(K,fe),new Promise(ge=>ge(K))}function z(ue){if(C){const fe=GCe(ue),K=C.property("__zoom");(K.k!==ue.zoom||K.x!==ue.x||K.y!==ue.y)&&(A==null||A.transform(C,fe,null,{sync:!0}))}}function ee(){const ue=C?izt(C.node()):{x:0,y:0,k:1};return{x:ue.x,y:ue.y,zoom:ue.k}}function ne(ue,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?yH:noe).scaleTo(qCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ue)}):Promise.resolve(!1)}function Q(ue,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?yH:noe).scaleBy(qCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),ue)}):Promise.resolve(!1)}function ae(ue){A==null||A.scaleExtent(ue)}function he(ue){A==null||A.translateExtent(ue)}function pe(ue){const fe=!Dv(ue)||ue<0?0:ue;A==null||A.clickDistance(fe)}return{update:B,destroy:$,setViewport:j,setViewportConstrained:P,getViewport:ee,scaleTo:ne,scaleBy:Q,setScaleExtent:ae,setTranslateExtent:he,syncViewport:z,setClickDistance:pe}}var xM;(function(n){n.Line="line",n.Handle="handle"})(xM||(xM={}));function y5n({width:n,prevWidth:i,height:s,prevHeight:c,affectsX:d,affectsY:g}){const b=n-i,w=s-c,E=[b>0?1:b<0?-1:0,w>0?1:w<0?-1:0];return b&&d&&(E[0]=E[0]*-1),w&&g&&(E[1]=E[1]*-1),E}function n9t(n){const i=n.includes("right")||n.includes("left"),s=n.includes("bottom")||n.includes("top"),c=n.includes("left"),d=n.includes("top");return{isHorizontal:i,isVertical:s,affectsX:c,affectsY:d}}function Ck(n,i){return Math.max(0,i-n)}function Ik(n,i){return Math.max(0,n-i)}function vie(n,i,s){return Math.max(0,i-n,n-s)}function r9t(n,i){return n?!i:i}function v5n(n,i,s,c,d,g,b,w){let{affectsX:E,affectsY:S}=i;const{isHorizontal:_,isVertical:A}=i,C=_&&A,{xSnapped:O,ySnapped:L}=s,{minWidth:D,maxWidth:B,minHeight:$,maxHeight:P}=c,{x:j,y:z,width:ee,height:ne,aspectRatio:Q}=n;let ae=Math.floor(_?O-n.pointerX:0),he=Math.floor(A?L-n.pointerY:0);const pe=ee+(E?-ae:ae),ue=ne+(S?-he:he),fe=-g[0]*ee,K=-g[1]*ne;let ge=vie(pe,D,B),De=vie(ue,$,P);if(b){let Ae=0,xe=0;E&&ae<0?Ae=Ck(j+ae+fe,b[0][0]):!E&&ae>0&&(Ae=Ik(j+pe+fe,b[1][0])),S&&he<0?xe=Ck(z+he+K,b[0][1]):!S&&he>0&&(xe=Ik(z+ue+K,b[1][1])),ge=Math.max(ge,Ae),De=Math.max(De,xe)}if(w){let Ae=0,xe=0;E&&ae>0?Ae=Ik(j+ae,w[0][0]):!E&&ae<0&&(Ae=Ck(j+pe,w[1][0])),S&&he>0?xe=Ik(z+he,w[0][1]):!S&&he<0&&(xe=Ck(z+ue,w[1][1])),ge=Math.max(ge,Ae),De=Math.max(De,xe)}if(d){if(_){const Ae=vie(pe/Q,$,P)*Q;if(ge=Math.max(ge,Ae),b){let xe=0;!E&&!S||E&&!S&&C?xe=Ik(z+K+pe/Q,b[1][1])*Q:xe=Ck(z+K+(E?ae:-ae)/Q,b[0][1])*Q,ge=Math.max(ge,xe)}if(w){let xe=0;!E&&!S||E&&!S&&C?xe=Ck(z+pe/Q,w[1][1])*Q:xe=Ik(z+(E?ae:-ae)/Q,w[0][1])*Q,ge=Math.max(ge,xe)}}if(A){const Ae=vie(ue*Q,D,B)/Q;if(De=Math.max(De,Ae),b){let xe=0;!E&&!S||S&&!E&&C?xe=Ik(j+ue*Q+fe,b[1][0])/Q:xe=Ck(j+(S?he:-he)*Q+fe,b[0][0])/Q,De=Math.max(De,xe)}if(w){let xe=0;!E&&!S||S&&!E&&C?xe=Ck(j+ue*Q,w[1][0])/Q:xe=Ik(j+(S?he:-he)*Q,w[0][0])/Q,De=Math.max(De,xe)}}}he=he+(he<0?De:-De),ae=ae+(ae<0?ge:-ge),d&&(C?pe>ue*Q?he=(r9t(E,S)?-ae:ae)/Q:ae=(r9t(E,S)?-he:he)*Q:_?(he=ae/Q,S=E):(ae=he*Q,E=S));const Se=E?j+ae:j,Re=S?z+he:z;return{width:ee+(E?-ae:ae),height:ne+(S?-he:he),x:g[0]*ae*(E?-1:1)+Se,y:g[1]*he*(S?-1:1)+Re}}const Mzt={width:0,height:0,x:0,y:0},E5n={...Mzt,pointerX:0,pointerY:0,aspectRatio:1};function S5n(n){return[[0,0],[n.measured.width,n.measured.height]]}function T5n(n,i,s){const c=i.position.x+n.position.x,d=i.position.y+n.position.y,g=n.measured.width??0,b=n.measured.height??0,w=s[0]*g,E=s[1]*b;return[[c-w,d-E],[c+g-w,d+b-E]]}function A5n({domNode:n,nodeId:i,getStoreItems:s,onChange:c,onEnd:d}){const g=jm(n);let b={controlDirection:n9t("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:_,keepAspectRatio:A,resizeDirection:C,onResizeStart:O,onResize:L,onResizeEnd:D,shouldResize:B}){let $={...Mzt},P={...E5n};b={boundaries:_,resizeDirection:C,keepAspectRatio:A,controlDirection:n9t(S)};let j,z=null,ee=[],ne,Q,ae,he=!1;const pe=GHt().on("start",ue=>{const{nodeLookup:fe,transform:K,snapGrid:ge,snapToGrid:De,nodeOrigin:Se,paneDomNode:Re}=s();if(j=fe.get(i),!j)return;z=(Re==null?void 0:Re.getBoundingClientRect())??null;const{xSnapped:Ae,ySnapped:xe}=vH(ue.sourceEvent,{transform:K,snapGrid:ge,snapToGrid:De,containerBounds:z});$={width:j.measured.width??0,height:j.measured.height??0,x:j.position.x??0,y:j.position.y??0},P={...$,pointerX:Ae,pointerY:xe,aspectRatio:$.width/$.height},ne=void 0,j.parentId&&(j.extent==="parent"||j.expandParent)&&(ne=fe.get(j.parentId),Q=ne&&j.extent==="parent"?S5n(ne):void 0),ee=[],ae=void 0;for(const[We,ut]of fe)if(ut.parentId===i&&(ee.push({id:We,position:{...ut.position},extent:ut.extent}),ut.extent==="parent"||ut.expandParent)){const Be=T5n(ut,j,ut.origin??Se);ae?ae=[[Math.min(Be[0][0],ae[0][0]),Math.min(Be[0][1],ae[0][1])],[Math.max(Be[1][0],ae[1][0]),Math.max(Be[1][1],ae[1][1])]]:ae=Be}O==null||O(ue,{...$})}).on("drag",ue=>{const{transform:fe,snapGrid:K,snapToGrid:ge,nodeOrigin:De}=s(),Se=vH(ue.sourceEvent,{transform:fe,snapGrid:K,snapToGrid:ge,containerBounds:z}),Re=[];if(!j)return;const{x:Ae,y:xe,width:We,height:ut}=$,Be={},bt=j.origin??De,{width:Nt,height:pt,x:Kt,y:Et}=v5n(P,b.controlDirection,Se,b.boundaries,b.keepAspectRatio,bt,Q,ae),Dt=Nt!==We,Yt=pt!==ut,Ln=Kt!==Ae&&Dt,Zn=Et!==xe&&Yt;if(!Ln&&!Zn&&!Dt&&!Yt)return;if((Ln||Zn||bt[0]===1||bt[1]===1)&&(Be.x=Ln?Kt:$.x,Be.y=Zn?Et:$.y,$.x=Be.x,$.y=Be.y,ee.length>0)){const Qr=Kt-Ae,Hi=Et-xe;for(const ai of ee)ai.position={x:ai.position.x-Qr+bt[0]*(Nt-We),y:ai.position.y-Hi+bt[1]*(pt-ut)},Re.push(ai)}if((Dt||Yt)&&(Be.width=Dt&&(!b.resizeDirection||b.resizeDirection==="horizontal")?Nt:$.width,Be.height=Yt&&(!b.resizeDirection||b.resizeDirection==="vertical")?pt:$.height,$.width=Be.width,$.height=Be.height),ne&&j.expandParent){const Qr=bt[0]*(Be.width??0);Be.x&&Be.x{he&&(D==null||D(ue,{...$}),d==null||d({...$}),he=!1)});g.call(pe)}function E(){g.on(".drag",null)}return{update:w,destroy:E}}var Pzt={exports:{}},jzt={};/** * @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 nae=H,_5n=CHt;function x5n(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var k5n=typeof Object.is=="function"?Object.is:x5n,N5n=_5n.useSyncExternalStore,C5n=nae.useRef,I5n=nae.useEffect,R5n=nae.useMemo,O5n=nae.useDebugValue;jzt.useSyncExternalStoreWithSelector=function(n,i,s,c,d){var g=C5n(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=R5n(function(){function E(O){if(!S){if(S=!0,_=O,O=c(O),d!==void 0&&b.hasValue){var L=b.value;if(d(L,O))return A=L}return A=O}if(L=A,k5n(_,O))return L;var D=c(O);return d!==void 0&&d(L,D)?(_=O,L):(_=O,A=D)}var S=!1,_,A,C=s===void 0?null:s;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,s,c,d]);var w=N5n(n,g[0],g[1]);return I5n(function(){b.hasValue=!0,b.value=w},[w]),O5n(w),w};Pzt.exports=jzt;var D5n=Pzt.exports;const L5n=TR(D5n),M5n={},i9t=n=>{let i;const s=new Set,c=(_,A)=>{const C=typeof _=="function"?_(i):_;if(!Object.is(C,i)){const O=i;i=A??(typeof C!="object"||C===null)?C:Object.assign({},i,C),s.forEach(L=>L(i,O))}},d=()=>i,E={setState:c,getState:d,getInitialState:()=>S,subscribe:_=>(s.add(_),()=>s.delete(_)),destroy:()=>{(M5n?"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(c,d,E);return E},P5n=n=>n?i9t(n):i9t,{useDebugValue:j5n}=Hn,{useSyncExternalStoreWithSelector:F5n}=L5n,$5n=n=>n;function Fzt(n,i=$5n,s){const c=F5n(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,s);return j5n(c),c}const o9t=(n,i)=>{const s=P5n(n),c=(d,g=i)=>Fzt(s,d,g);return Object.assign(c,s),c},B5n=(n,i)=>n?o9t(n,i):o9t;function Lu(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[c,d]of n)if(!Object.is(d,i.get(c)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const c of n)if(!i.has(c))return!1;return!0}const s=Object.keys(n);if(s.length!==Object.keys(i).length)return!1;for(const c of s)if(!Object.prototype.hasOwnProperty.call(i,c)||!Object.is(n[c],i[c]))return!1;return!0}const rae=H.createContext(null),U5n=rae.Provider,$zt=z2.error001();function Js(n,i){const s=H.useContext(rae);if(s===null)throw new Error($zt);return Fzt(s,n,i)}function Mu(){const n=H.useContext(rae);if(n===null)throw new Error($zt);return H.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const s9t={display:"none"},H5n={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Bzt="react-flow__node-desc",Uzt="react-flow__edge-desc",z5n="react-flow__aria-live",G5n=n=>n.ariaLiveMessage,q5n=n=>n.ariaLabelConfig;function V5n({rfId:n}){const i=Js(G5n);return I.jsx("div",{id:`${z5n}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:H5n,children:i})}function W5n({rfId:n,disableKeyboardA11y:i}){const s=Js(q5n);return I.jsxs(I.Fragment,{children:[I.jsx("div",{id:`${Bzt}-${n}`,style:s9t,children:i?s["node.a11yDescription.default"]:s["node.a11yDescription.keyboardDisabled"]}),I.jsx("div",{id:`${Uzt}-${n}`,style:s9t,children:s["edge.a11yDescription.default"]}),!i&&I.jsx(V5n,{rfId:n})]})}const gR=H.forwardRef(({position:n="top-left",children:i,className:s,style:c,...d},g)=>{const b=`${n}`.split("-");return I.jsx("div",{className:Bd(["react-flow__panel",s,...b]),style:c,ref:g,...d,children:i})});gR.displayName="Panel";function K5n({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 Y5n=n=>{const i=[],s=[];for(const[,c]of n.nodeLookup)c.selected&&i.push(c.internals.userNode);for(const[,c]of n.edgeLookup)c.selected&&s.push(c);return{selectedNodes:i,selectedEdges:s}},Eie=n=>n.id;function J5n(n,i){return Lu(n.selectedNodes.map(Eie),i.selectedNodes.map(Eie))&&Lu(n.selectedEdges.map(Eie),i.selectedEdges.map(Eie))}function X5n({onSelectionChange:n}){const i=Mu(),{selectedNodes:s,selectedEdges:c}=Js(Y5n,J5n);return H.useEffect(()=>{const d={nodes:s,edges:c};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[s,c,n]),null}const Z5n=n=>!!n.onSelectionChangeHandlers;function Q5n({onSelectionChange:n}){const i=Js(Z5n);return n||i?I.jsx(X5n,{onSelectionChange:n}):null}const Hzt=[0,0],eMn={x:0,y:0,zoom:1},tMn=["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"],a9t=[...tMn,"rfId"],nMn=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}),c9t={translateExtent:YH,nodeOrigin:Hzt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function rMn(n){const{setNodes:i,setEdges:s,setMinZoom:c,setMaxZoom:d,setTranslateExtent:g,setNodeExtent:b,reset:w,setDefaultNodesAndEdges:E}=Js(nMn,Lu),S=Mu();H.useEffect(()=>(E(n.defaultNodes,n.defaultEdges),()=>{_.current=c9t,w()}),[]);const _=H.useRef(c9t);return H.useEffect(()=>{for(const A of a9t){const C=n[A],O=_.current[A];C!==O&&(typeof n[A]>"u"||(A==="nodes"?i(C):A==="edges"?s(C):A==="minZoom"?c(C):A==="maxZoom"?d(C):A==="translateExtent"?g(C):A==="nodeExtent"?b(C):A==="ariaLabelConfig"?S.setState({ariaLabelConfig:jLn(C)}):A==="fitView"?S.setState({fitViewQueued:C}):A==="fitViewOptions"?S.setState({fitViewOptions:C}):S.setState({[A]:C})))}_.current=n},a9t.map(A=>n[A])),null}function u9t(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function iMn(n){var c;const[i,s]=H.useState(n==="system"?null:n);return H.useEffect(()=>{if(n!=="system"){s(n);return}const d=u9t(),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:(c=u9t())!=null&&c.matches?"dark":"light"}const l9t=typeof document<"u"?document:null;function QH(n=null,i={target:l9t,actInsideInputWithModifier:!0}){const[s,c]=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(` `)),_=S.reduce((A,C)=>A.concat(...C),[]);return[S,_]}return[[],[]]},[n]);return H.useEffect(()=>{const E=(i==null?void 0:i.target)??l9t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const _=O=>{var B,$;if(d.current=O.ctrlKey||O.metaKey||O.shiftKey||O.altKey,(!d.current||d.current&&!S)&&wzt(O))return!1;const D=f9t(O.code,w);if(g.current.add(O[D]),d9t(b,g.current,!1)){const P=(($=(B=O.composedPath)==null?void 0:B.call(O))==null?void 0:$[0])||O.target,j=(P==null?void 0:P.nodeName)==="BUTTON"||(P==null?void 0:P.nodeName)==="A";i.preventDefault!==!1&&(d.current||!j)&&O.preventDefault(),c(!0)}},A=O=>{const L=f9t(O.code,w);d9t(b,g.current,!0)?(c(!1),g.current.clear()):g.current.delete(O[L]),O.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),c(!1)};return E==null||E.addEventListener("keydown",_),E==null||E.addEventListener("keyup",A),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",_),E==null||E.removeEventListener("keyup",A),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,c]),s}function d9t(n,i,s){return n.filter(c=>s||c.length===i.size).some(c=>c.every(d=>i.has(d)))}function f9t(n,i){return i.includes(n)?"code":"key"}const oMn=()=>{const n=Mu();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:c}=n.getState();return c?c.scaleTo(i,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,s)=>{const{transform:[c,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??c,y:i.y??d,zoom:i.zoom??g},s),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,s,c]=n.getState().transform;return{x:i,y:s,zoom:c}},setCenter:async(i,s,c)=>n.getState().setCenter(i,s,c),fitBounds:async(i,s)=>{const{width:c,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=L5e(i,c,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:c,snapGrid:d,snapToGrid:g,domNode:b}=n.getState();if(!b)return i;const{x:w,y:E}=b.getBoundingClientRect(),S={x:i.x-w,y:i.y-E},_=s.snapGrid??d,A=s.snapToGrid??g;return kz(S,c,A,_)},flowToScreenPosition:i=>{const{transform:s,domNode:c}=n.getState();if(!c)return i;const{x:d,y:g}=c.getBoundingClientRect(),b=Joe(i,s);return{x:b.x+d,y:b.y+g}}}),[])};function zzt(n,i){const s=[],c=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")c.set(g.id,[g]);else{const b=c.get(g.id);b?b.push(g):c.set(g.id,[g])}for(const g of i){const b=c.get(g.id);if(!b){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)sMn(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 sMn(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 Gzt(n,i){return zzt(n,i)}function qzt(n,i){return zzt(n,i)}function W4(n,i){return{id:n,type:"select",selected:i}}function G5(n,i=new Set,s=!1){const c=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(s&&(g.selected=b),c.push(W4(g.id,b)))}return c}function h9t({items:n=[],lookup:i}){var d;const s=[],c=new Map(n.map(g=>[g.id,g]));for(const[g,b]of n.entries()){const w=i.get(b.id),E=((d=w==null?void 0:w.internals)==null?void 0:d.userNode)??w;E!==void 0&&E!==b&&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)c.get(g)===void 0&&s.push({id:g,type:"remove"});return s}function p9t(n){return{id:n.id,type:"remove"}}const g9t=n=>kLn(n),aMn=n=>lzt(n);function Vzt(n){return H.forwardRef(n)}const cMn=typeof window<"u"?H.useLayoutEffect:H.useEffect;function b9t(n){const[i,s]=H.useState(BigInt(0)),[c]=H.useState(()=>uMn(()=>s(d=>d+BigInt(1))));return cMn(()=>{const d=c.get();d.length&&(n(d),c.reset())},[i]),c}function uMn(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:s=>{i.push(s),n()}}}const Wzt=H.createContext(null);function lMn({children:n}){const i=Mu(),s=H.useCallback(w=>{const{nodes:E=[],setNodes:S,hasDefaultNodes:_,onNodesChange:A,nodeLookup:C,fitViewQueued:O,onNodesChangeMiddlewareMap:L}=i.getState();let D=E;for(const $ of w)D=typeof $=="function"?$(D):$;let B=h9t({items:D,lookup:C});for(const $ of L.values())B=$(B);_&&S(D),B.length>0?A==null||A(B):O&&window.requestAnimationFrame(()=>{const{fitViewQueued:$,nodes:P,setNodes:j}=i.getState();$&&j(P)})},[]),c=b9t(s),d=H.useCallback(w=>{const{edges:E=[],setEdges:S,hasDefaultEdges:_,onEdgesChange:A,edgeLookup:C}=i.getState();let O=E;for(const L of w)O=typeof L=="function"?L(O):L;_?S(O):A&&A(h9t({items:O,lookup:C}))},[]),g=b9t(d),b=H.useMemo(()=>({nodeQueue:c,edgeQueue:g}),[]);return I.jsx(Wzt.Provider,{value:b,children:n})}function dMn(){const n=H.useContext(Wzt);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const fMn=n=>!!n.panZoom;function kR(){const n=oMn(),i=Mu(),s=dMn(),c=Js(fMn),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 $,P;const{nodeLookup:C,nodeOrigin:O}=i.getState(),L=g9t(A)?A:C.get(A.id),D=L.parentId?bzt(L.position,L.measured,L.parentId,C,O):L.position,B={...L,position:D,width:(($=L.measured)==null?void 0:$.width)??L.width,height:((P=L.measured)==null?void 0:P.height)??L.height};return AM(B)},S=(A,C,O={replace:!1})=>{b(L=>L.map(D=>{if(D.id===A){const B=typeof C=="function"?C(D):C;return O.replace&&g9t(B)?B:{...D,...B}}return D}))},_=(A,C,O={replace:!1})=>{w(L=>L.map(D=>{if(D.id===A){const B=typeof C=="function"?C(D):C;return O.replace&&aMn(B)?B:{...D,...B}}return D}))};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(O=>[...O,...C])},addEdges:A=>{const C=Array.isArray(A)?A:[A];s.edgeQueue.push(O=>[...O,...C])},toObject:()=>{const{nodes:A=[],edges:C=[],transform:O}=i.getState(),[L,D,B]=O;return{nodes:A.map($=>({...$})),edges:C.map($=>({...$})),viewport:{x:L,y:D,zoom:B}}},deleteElements:async({nodes:A=[],edges:C=[]})=>{const{nodes:O,edges:L,onNodesDelete:D,onEdgesDelete:B,triggerNodeChanges:$,triggerEdgeChanges:P,onDelete:j,onBeforeDelete:z}=i.getState(),{nodes:ee,edges:ne}=await OLn({nodesToRemove:A,edgesToRemove:C,nodes:O,edges:L,onBeforeDelete:z}),Q=ne.length>0,ae=ee.length>0;if(Q){const he=ne.map(p9t);B==null||B(ne),P(he)}if(ae){const he=ee.map(p9t);D==null||D(ee),$(he)}return(ae||Q)&&(j==null||j({nodes:ee,edges:ne})),{deletedNodes:ee,deletedEdges:ne}},getIntersectingNodes:(A,C=!0,O)=>{const L=qMt(A),D=L?A:E(A),B=O!==void 0;return D?(O||i.getState().nodes).filter($=>{const P=i.getState().nodeLookup.get($.id);if(P&&!L&&($.id===A.id||!P.internals.positionAbsolute))return!1;const j=AM(B?$:P),z=XH(j,D);return C&&z>0||z>=j.width*j.height||z>=D.width*D.height}):[]},isNodeIntersecting:(A,C,O=!0)=>{const D=qMt(A)?A:E(A);if(!D)return!1;const B=XH(D,C);return O&&B>0||B>=C.width*C.height||B>=D.width*D.height},updateNode:S,updateNodeData:(A,C,O={replace:!1})=>{S(A,L=>{const D=typeof C=="function"?C(L):C;return O.replace?{...L,data:D}:{...L,data:{...L.data,...D}}},O)},updateEdge:_,updateEdgeData:(A,C,O={replace:!1})=>{_(A,L=>{const D=typeof C=="function"?C(L):C;return O.replace?{...L,data:D}:{...L,data:{...L.data,...D}}},O)},getNodesBounds:A=>{const{nodeLookup:C,nodeOrigin:O}=i.getState();return NLn(A,{nodeLookup:C,nodeOrigin:O})},getHandleConnections:({type:A,id:C,nodeId:O})=>{var L;return Array.from(((L=i.getState().connectionLookup.get(`${O}-${A}${C?`-${C}`:""}`))==null?void 0:L.values())??[])},getNodeConnections:({type:A,handleId:C,nodeId:O})=>{var L;return Array.from(((L=i.getState().connectionLookup.get(`${O}${A?C?`-${A}-${C}`:`-${A}`:""}`))==null?void 0:L.values())??[])},fitView:async A=>{const C=i.getState().fitViewResolver??PLn();return i.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:C}),s.nodeQueue.push(O=>[...O]),C.promise}}},[]);return H.useMemo(()=>({...d,...n,viewportInitialized:c}),[c])}const m9t=n=>n.selected,hMn=typeof window<"u"?window:void 0;function pMn({deleteKeyCode:n,multiSelectionKeyCode:i}){const s=Mu(),{deleteElements:c}=kR(),d=QH(n,{actInsideInputWithModifier:!1}),g=QH(i,{target:hMn});H.useEffect(()=>{if(d){const{edges:b,nodes:w}=s.getState();c({nodes:w.filter(m9t),edges:b.filter(m9t)}),s.setState({nodesSelectionActive:!1})}},[d]),H.useEffect(()=>{s.setState({multiSelectionActive:g})},[g])}function gMn(n){const i=Mu();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 c=M5e(n.current);(c.height===0||c.width===0)&&((w=(b=i.getState()).onError)==null||w.call(b,"004",z2.error004())),i.setState({width:c.width||500,height:c.height||500})};if(n.current){s(),window.addEventListener("resize",s);const c=new ResizeObserver(()=>s());return c.observe(n.current),()=>{window.removeEventListener("resize",s),c&&n.current&&c.unobserve(n.current)}}},[])}const iae={position:"absolute",width:"100%",height:"100%",top:0,left:0},bMn=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function mMn({onPaneContextMenu:n,zoomOnScroll:i=!0,zoomOnPinch:s=!0,panOnScroll:c=!1,panOnScrollSpeed:d=.5,panOnScrollMode:g=nR.Free,zoomOnDoubleClick:b=!0,panOnDrag:w=!0,defaultViewport:E,translateExtent:S,minZoom:_,maxZoom:A,zoomActivationKeyCode:C,preventScrolling:O=!0,children:L,noWheelClassName:D,noPanClassName:B,onViewportChange:$,isControlledViewport:P,paneClickDistance:j,selectionOnDrag:z}){const ee=Mu(),ne=H.useRef(null),{userSelectionActive:Q,lib:ae,connectionInProgress:he}=Js(bMn,Lu),pe=QH(C),ue=H.useRef();gMn(ne);const fe=H.useCallback(K=>{$==null||$({x:K[0],y:K[1],zoom:K[2]}),P||ee.setState({transform:K})},[$,P]);return H.useEffect(()=>{if(ne.current){ue.current=w5n({domNode:ne.current,minZoom:_,maxZoom:A,translateExtent:S,viewport:E,onDraggingChange:Se=>ee.setState({paneDragging:Se}),onPanZoomStart:(Se,Re)=>{const{onViewportChangeStart:Ae,onMoveStart:xe}=ee.getState();xe==null||xe(Se,Re),Ae==null||Ae(Re)},onPanZoom:(Se,Re)=>{const{onViewportChange:Ae,onMove:xe}=ee.getState();xe==null||xe(Se,Re),Ae==null||Ae(Re)},onPanZoomEnd:(Se,Re)=>{const{onViewportChangeEnd:Ae,onMoveEnd:xe}=ee.getState();xe==null||xe(Se,Re),Ae==null||Ae(Re)}});const{x:K,y:ge,zoom:De}=ue.current.getViewport();return ee.setState({panZoom:ue.current,transform:[K,ge,De],domNode:ne.current.closest(".react-flow")}),()=>{var Se;(Se=ue.current)==null||Se.destroy()}}},[]),H.useEffect(()=>{var K;(K=ue.current)==null||K.update({onPaneContextMenu:n,zoomOnScroll:i,zoomOnPinch:s,panOnScroll:c,panOnScrollSpeed:d,panOnScrollMode:g,zoomOnDoubleClick:b,panOnDrag:w,zoomActivationKeyPressed:pe,preventScrolling:O,noPanClassName:B,userSelectionActive:Q,noWheelClassName:D,lib:ae,onTransformChange:fe,connectionInProgress:he,selectionOnDrag:z,paneClickDistance:j})},[n,i,s,c,d,g,b,w,pe,O,B,Q,D,ae,fe,he,z,j]),I.jsx("div",{className:"react-flow__renderer",ref:ne,style:iae,children:L})}const wMn=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function yMn(){const{userSelectionActive:n,userSelectionRect:i}=Js(wMn,Lu);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 VCe=(n,i)=>s=>{s.target===i.current&&(n==null||n(s))},vMn=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function EMn({isSelecting:n,selectionKeyPressed:i,selectionMode:s=JH.Full,panOnDrag:c,paneClickDistance:d,selectionOnDrag:g,onSelectionStart:b,onSelectionEnd:w,onPaneClick:E,onPaneContextMenu:S,onPaneScroll:_,onPaneMouseEnter:A,onPaneMouseMove:C,onPaneMouseLeave:O,children:L}){const D=Mu(),{userSelectionActive:B,elementsSelectable:$,dragging:P,connectionInProgress:j}=Js(vMn,Lu),z=$&&(n||B),ee=H.useRef(null),ne=H.useRef(),Q=H.useRef(new Set),ae=H.useRef(new Set),he=H.useRef(!1),pe=Ae=>{if(he.current||j){he.current=!1;return}E==null||E(Ae),D.getState().resetSelectedElements(),D.setState({nodesSelectionActive:!1})},ue=Ae=>{if(Array.isArray(c)&&(c!=null&&c.includes(2))){Ae.preventDefault();return}S==null||S(Ae)},fe=_?Ae=>_(Ae):void 0,K=Ae=>{he.current&&(Ae.stopPropagation(),he.current=!1)},ge=Ae=>{var pt,Kt;const{domNode:xe}=D.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;(Kt=(pt=Ae.target)==null?void 0:pt.setPointerCapture)==null||Kt.call(pt,Ae.pointerId),he.current=!1;const{x:bt,y:Nt}=Lv(Ae.nativeEvent,ne.current);D.setState({userSelectionRect:{width:0,height:0,startX:bt,startY:Nt,x:bt,y:Nt}}),We||(Ae.stopPropagation(),Ae.preventDefault())},De=Ae=>{const{userSelectionRect:xe,transform:We,nodeLookup:ut,edgeLookup:Be,connectionLookup:bt,triggerNodeChanges:Nt,triggerEdgeChanges:pt,defaultEdgeOptions:Kt,resetSelectedElements:Et}=D.getState();if(!ne.current||!xe)return;const{x:Dt,y:Yt}=Lv(Ae.nativeEvent,ne.current),{startX:Ln,startY:Zn}=xe;if(!he.current){const Hi=i?0:d;if(Math.hypot(Dt-Ln,Yt-Zn)<=Hi)return;Et(),b==null||b(Ae)}he.current=!0;const Yn={startX:Ln,startY:Zn,x:DtHi.id)),ae.current=new Set;const Qr=(Kt==null?void 0:Kt.selectable)??!0;for(const Hi of Q.current){const ai=bt.get(Hi);if(ai)for(const{edgeId:ju}of ai.values()){const Xs=Be.get(ju);Xs&&(Xs.selectable??Qr)&&ae.current.add(ju)}}if(!VMt(Er,Q.current)){const Hi=G5(ut,Q.current,!0);Nt(Hi)}if(!VMt(Ui,ae.current)){const Hi=G5(Be,ae.current);pt(Hi)}D.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&&D.getState().userSelectionRect&&(pe==null||pe(Ae)),D.setState({userSelectionActive:!1,userSelectionRect:null}),he.current&&(w==null||w(Ae),D.setState({nodesSelectionActive:Q.current.size>0})))},Re=c===!0||Array.isArray(c)&&c.includes(0);return I.jsxs("div",{className:Bd(["react-flow__pane",{draggable:Re,dragging:P,selection:n}]),onClick:z?void 0:VCe(pe,ee),onContextMenu:VCe(ue,ee),onWheel:VCe(fe,ee),onPointerEnter:z?void 0:A,onPointerMove:z?De:C,onPointerUp:z?Se:void 0,onPointerDownCapture:z?ge:void 0,onClickCapture:z?K:void 0,onPointerLeave:O,ref:ee,style:iae,children:[L,I.jsx(yMn,{})]})}function EDe({id:n,store:i,unselect:s=!1,nodeRef:c}){const{addSelectedNodes:d,unselectNodesAndEdges:g,multiSelectionActive:b,nodeLookup:w,onError:E}=i.getState(),S=w.get(n);if(!S){E==null||E("012",z2.error012(n));return}i.setState({nodesSelectionActive:!1}),S.selected?(s||S.selected&&b)&&(g({nodes:[S],edges:[]}),requestAnimationFrame(()=>{var _;return(_=c==null?void 0:c.current)==null?void 0:_.blur()})):d([n])}function Kzt({nodeRef:n,disabled:i=!1,noDragClassName:s,handleSelector:c,nodeId:d,isSelectable:g,nodeClickDistance:b}){const w=Mu(),[E,S]=H.useState(!1),_=H.useRef();return H.useEffect(()=>{_.current=i5n({getStoreItems:()=>w.getState(),onNodeMouseDown:A=>{EDe({id:A,store:w,nodeRef:n})},onDragStart:()=>{S(!0)},onDragStop:()=>{S(!1)}})},[]),H.useEffect(()=>{var A,C;if(i)(A=_.current)==null||A.destroy();else if(n.current)return(C=_.current)==null||C.update({noDragClassName:s,handleSelector:c,domNode:n.current,isSelectable:g,nodeId:d,nodeClickDistance:b}),()=>{var O;(O=_.current)==null||O.destroy()}},[s,c,i,g,n,d]),E}const SMn=n=>i=>i.selected&&(i.draggable||n&&typeof i.draggable>"u");function Yzt(){const n=Mu();return H.useCallback(s=>{const{nodeExtent:c,snapToGrid:d,snapGrid:g,nodesDraggable:b,onError:w,updateNodePositions:E,nodeLookup:S,nodeOrigin:_}=n.getState(),A=new Map,C=SMn(b),O=d?g[0]:5,L=d?g[1]:5,D=s.direction.x*O*s.factor,B=s.direction.y*L*s.factor;for(const[,$]of S){if(!C($))continue;let P={x:$.internals.positionAbsolute.x+D,y:$.internals.positionAbsolute.y+B};d&&(P=xz(P,g));const{position:j,positionAbsolute:z}=dzt({nodeId:$.id,nextPosition:P,nodeLookup:S,nodeExtent:c,nodeOrigin:_,onError:w});$.position=j,$.internals.positionAbsolute=z,A.set($.id,$)}E(A)},[])}const U5e=H.createContext(null),TMn=U5e.Provider;U5e.Consumer;const Jzt=()=>H.useContext(U5e),AMn=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),_Mn=(n,i,s)=>c=>{const{connectionClickStartHandle:d,connectionMode:g,connection:b}=c,{fromHandle:w,toHandle:E,isValid:S}=b,_=(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:_,clickConnecting:(d==null?void 0:d.nodeId)===n&&(d==null?void 0:d.id)===i&&(d==null?void 0:d.type)===s,isPossibleEndHandle:g===SM.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:_&&S}};function xMn({type:n="source",position:i=qr.Top,isValidConnection:s,isConnectable:c=!0,isConnectableStart:d=!0,isConnectableEnd:g=!0,id:b,onConnect:w,children:E,className:S,onMouseDown:_,onTouchStart:A,...C},O){var De,Se;const L=b||null,D=n==="target",B=Mu(),$=Jzt(),{connectOnClick:P,noPanClassName:j,rfId:z}=Js(AMn,Lu),{connectingFrom:ee,connectingTo:ne,clickConnecting:Q,isPossibleEndHandle:ae,connectionInProcess:he,clickConnectionInProcess:pe,valid:ue}=Js(_Mn($,L,n),Lu);$||(Se=(De=B.getState()).onError)==null||Se.call(De,"010",z2.error010());const fe=Re=>{const{defaultEdgeOptions:Ae,onConnect:xe,hasDefaultEdges:We}=B.getState(),ut={...Ae,...Re};if(We){const{edges:Be,setEdges:bt}=B.getState();bt(Tzt(ut,Be))}xe==null||xe(ut),w==null||w(ut)},K=Re=>{if(!$)return;const Ae=yzt(Re.nativeEvent);if(d&&(Ae&&Re.button===0||!Ae)){const xe=B.getState();vDe.onPointerDown(Re.nativeEvent,{handleDomNode:Re.currentTarget,autoPanOnConnect:xe.autoPanOnConnect,connectionMode:xe.connectionMode,connectionRadius:xe.connectionRadius,domNode:xe.domNode,nodeLookup:xe.nodeLookup,lib:xe.lib,isTarget:D,handleId:L,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?_==null||_(Re):A==null||A(Re)},ge=Re=>{const{onClickConnectStart:Ae,onClickConnectEnd:xe,connectionClickStartHandle:We,connectionMode:ut,isValidConnection:Be,lib:bt,rfId:Nt,nodeLookup:pt,connection:Kt}=B.getState();if(!$||!We&&!d)return;if(!We){Ae==null||Ae(Re.nativeEvent,{nodeId:$,handleId:L,handleType:n}),B.setState({connectionClickStartHandle:{nodeId:$,type:n,id:L}});return}const Et=mzt(Re.target),Dt=s||Be,{connection:Yt,isValid:Ln}=vDe.isValid(Re.nativeEvent,{handle:{nodeId:$,id:L,type:n},connectionMode:ut,fromNodeId:We.nodeId,fromHandleId:We.id||null,fromType:We.type,isValidConnection:Dt,flowId:Nt,doc:Et,lib:bt,nodeLookup:pt});Ln&&Yt&&fe(Yt);const Zn=structuredClone(Kt);delete Zn.inProgress,Zn.toPosition=Zn.toHandle?Zn.toHandle.position:null,xe==null||xe(Re,Zn),B.setState({connectionClickStartHandle:null})};return I.jsx("div",{"data-handleid":L,"data-nodeid":$,"data-handlepos":i,"data-id":`${z}-${$}-${L}-${n}`,className:Bd(["react-flow__handle",`react-flow__handle-${i}`,"nodrag",j,S,{source:!D,target:D,connectable:c,connectablestart:d,connectableend:g,clickconnecting:Q,connectingfrom:ee,connectingto:ne,valid:ue,connectionindicator:c&&(!he||ae)&&(he||pe?g:d)}]),onMouseDown:K,onTouchStart:K,onClick:P?ge:void 0,ref:O,...C,children:E})}const $h=H.memo(Vzt(xMn));function kMn({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 NMn({data:n,isConnectable:i,targetPosition:s=qr.Top,sourcePosition:c=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:c,isConnectable:i})]})}function CMn(){return null}function IMn({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 Zoe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},w9t={input:kMn,default:NMn,output:IMn,group:CMn};function RMn(n){var i,s,c,d;return n.internals.handleBounds===void 0?{width:n.width??n.initialWidth??((i=n.style)==null?void 0:i.width),height:n.height??n.initialHeight??((s=n.style)==null?void 0:s.height)}:{width:n.width??((c=n.style)==null?void 0:c.width),height:n.height??((d=n.style)==null?void 0:d.height)}}const OMn=n=>{const{width:i,height:s,x:c,y:d}=_z(n.nodeLookup,{filter:g=>!!g.selected});return{width:Dv(i)?i:null,height:Dv(s)?s:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${c}px,${d}px)`}};function DMn({onSelectionContextMenu:n,noPanClassName:i,disableKeyboardA11y:s}){const c=Mu(),{width:d,height:g,transformString:b,userSelectionActive:w}=Js(OMn,Lu),E=Yzt(),S=H.useRef(null);if(H.useEffect(()=>{var C;s||(C=S.current)==null||C.focus({preventScroll:!0})},[s]),Kzt({nodeRef:S}),w||!d||!g)return null;const _=n?C=>{const O=c.getState().nodes.filter(L=>L.selected);n(C,O)}:void 0,A=C=>{Object.prototype.hasOwnProperty.call(Zoe,C.key)&&(C.preventDefault(),E({direction:Zoe[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:_,tabIndex:s?void 0:-1,onKeyDown:s?void 0:A,style:{width:d,height:g}})})}const y9t=typeof window<"u"?window:void 0,LMn=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function Xzt({children:n,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,paneClickDistance:w,deleteKeyCode:E,selectionKeyCode:S,selectionOnDrag:_,selectionMode:A,onSelectionStart:C,onSelectionEnd:O,multiSelectionKeyCode:L,panActivationKeyCode:D,zoomActivationKeyCode:B,elementsSelectable:$,zoomOnScroll:P,zoomOnPinch:j,panOnScroll:z,panOnScrollSpeed:ee,panOnScrollMode:ne,zoomOnDoubleClick:Q,panOnDrag:ae,defaultViewport:he,translateExtent:pe,minZoom:ue,maxZoom:fe,preventScrolling:K,onSelectionContextMenu:ge,noWheelClassName:De,noPanClassName:Se,disableKeyboardA11y:Re,onViewportChange:Ae,isControlledViewport:xe}){const{nodesSelectionActive:We,userSelectionActive:ut}=Js(LMn,Lu),Be=QH(S,{target:y9t}),bt=QH(D,{target:y9t}),Nt=bt||ae,pt=bt||z,Kt=_&&Nt!==!0,Et=Be||ut||Kt;return pMn({deleteKeyCode:E,multiSelectionKeyCode:L}),I.jsx(mMn,{onPaneContextMenu:g,elementsSelectable:$,zoomOnScroll:P,zoomOnPinch:j,panOnScroll:pt,panOnScrollSpeed:ee,panOnScrollMode:ne,zoomOnDoubleClick:Q,panOnDrag:!Be&&Nt,defaultViewport:he,translateExtent:pe,minZoom:ue,maxZoom:fe,zoomActivationKeyCode:B,preventScrolling:K,noWheelClassName:De,noPanClassName:Se,onViewportChange:Ae,isControlledViewport:xe,paneClickDistance:w,selectionOnDrag:Kt,children:I.jsxs(EMn,{onSelectionStart:C,onSelectionEnd:O,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,panOnDrag:Nt,isSelecting:!!Et,selectionMode:A,selectionKeyPressed:Be,paneClickDistance:w,selectionOnDrag:Kt,children:[n,We&&I.jsx(DMn,{onSelectionContextMenu:ge,noPanClassName:Se,disableKeyboardA11y:Re})]})})}Xzt.displayName="FlowRenderer";const MMn=H.memo(Xzt),PMn=n=>i=>n?D5e(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 jMn(n){return Js(H.useCallback(PMn(n),[n]),Lu)}const FMn=n=>n.updateNodeInternals;function $Mn(){const n=Js(FMn),[i]=H.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(s=>{const c=new Map;s.forEach(d=>{const g=d.target.getAttribute("data-id");c.set(g,{id:g,nodeElement:d.target,force:!0})}),n(c)}));return H.useEffect(()=>()=>{i==null||i.disconnect()},[i]),i}function BMn({node:n,nodeType:i,hasDimensions:s,resizeObserver:c}){const d=Mu(),g=H.useRef(null),b=H.useRef(null),w=H.useRef(n.sourcePosition),E=H.useRef(n.targetPosition),S=H.useRef(i),_=s&&!!n.internals.handleBounds;return H.useEffect(()=>{g.current&&!n.hidden&&(!_||b.current!==g.current)&&(b.current&&(c==null||c.unobserve(b.current)),c==null||c.observe(g.current),b.current=g.current)},[_,n.hidden]),H.useEffect(()=>()=>{b.current&&(c==null||c.unobserve(b.current),b.current=null)},[]),H.useEffect(()=>{if(g.current){const A=S.current!==i,C=w.current!==n.sourcePosition,O=E.current!==n.targetPosition;(A||C||O)&&(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 UMn({id:n,onClick:i,onMouseEnter:s,onMouseMove:c,onMouseLeave:d,onContextMenu:g,onDoubleClick:b,nodesDraggable:w,elementsSelectable:E,nodesConnectable:S,nodesFocusable:_,resizeObserver:A,noDragClassName:C,noPanClassName:O,disableKeyboardA11y:L,rfId:D,nodeTypes:B,nodeClickDistance:$,onError:P}){const{node:j,internals:z,isParent:ee}=Js(Dt=>{const Yt=Dt.nodeLookup.get(n),Ln=Dt.parentLookup.has(n);return{node:Yt,internals:Yt.internals,isParent:Ln}},Lu);let ne=j.type||"default",Q=(B==null?void 0:B[ne])||w9t[ne];Q===void 0&&(P==null||P("003",z2.error003(ne)),ne="default",Q=(B==null?void 0:B.default)||w9t.default);const ae=!!(j.draggable||w&&typeof j.draggable>"u"),he=!!(j.selectable||E&&typeof j.selectable>"u"),pe=!!(j.connectable||S&&typeof j.connectable>"u"),ue=!!(j.focusable||_&&typeof j.focusable>"u"),fe=Mu(),K=gzt(j),ge=BMn({node:j,nodeType:ne,hasDimensions:K,resizeObserver:A}),De=Kzt({nodeRef:ge,disabled:j.hidden||!ae,noDragClassName:C,handleSelector:j.dragHandle,nodeId:n,isSelectable:he,nodeClickDistance:$}),Se=Yzt();if(j.hidden)return null;const Re=_A(j),Ae=RMn(j),xe=he||ae||i||s||c||d,We=s?Dt=>s(Dt,{...z.userNode}):void 0,ut=c?Dt=>c(Dt,{...z.userNode}):void 0,Be=d?Dt=>d(Dt,{...z.userNode}):void 0,bt=g?Dt=>g(Dt,{...z.userNode}):void 0,Nt=b?Dt=>b(Dt,{...z.userNode}):void 0,pt=Dt=>{const{selectNodesOnDrag:Yt,nodeDragThreshold:Ln}=fe.getState();he&&(!Yt||!ae||Ln>0)&&EDe({id:n,store:fe,nodeRef:ge}),i&&i(Dt,{...z.userNode})},Kt=Dt=>{if(!(wzt(Dt.nativeEvent)||L)){if(szt.includes(Dt.key)&&he){const Yt=Dt.key==="Escape";EDe({id:n,store:fe,unselect:Yt,nodeRef:ge})}else if(ae&&j.selected&&Object.prototype.hasOwnProperty.call(Zoe,Dt.key)){Dt.preventDefault();const{ariaLabelConfig:Yt}=fe.getState();fe.setState({ariaLiveMessage:Yt["node.a11yDescription.ariaLiveMessage"]({direction:Dt.key.replace("Arrow","").toLowerCase(),x:~~z.positionAbsolute.x,y:~~z.positionAbsolute.y})}),Se({direction:Zoe[Dt.key],factor:Dt.shiftKey?4:1})}}},Et=()=>{var Ui;if(L||!((Ui=ge.current)!=null&&Ui.matches(":focus-visible")))return;const{transform:Dt,width:Yt,height:Ln,autoPanOnNodeFocus:Zn,setCenter:Yn}=fe.getState();if(!Zn)return;D5e(new Map([[n,j]]),{x:0,y:0,width:Yt,height:Ln},Dt,!0).length>0||Yn(j.position.x+Re.width/2,j.position.y+Re.height/2,{zoom:Dt[2]})};return I.jsx("div",{className:Bd(["react-flow__node",`react-flow__node-${ne}`,{[O]:ae},j.className,{selected:j.selected,selectable:he,parent:ee,draggable:ae,dragging:De}]),ref:ge,style:{zIndex:z.z,transform:`translate(${z.positionAbsolute.x}px,${z.positionAbsolute.y}px)`,pointerEvents:xe?"all":"none",visibility:K?"visible":"hidden",...j.style,...Ae},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:We,onMouseMove:ut,onMouseLeave:Be,onContextMenu:bt,onClick:pt,onDoubleClick:Nt,onKeyDown:ue?Kt:void 0,tabIndex:ue?0:void 0,onFocus:ue?Et:void 0,role:j.ariaRole??(ue?"group":void 0),"aria-roledescription":"node","aria-describedby":L?void 0:`${Bzt}-${D}`,"aria-label":j.ariaLabel,...j.domAttributes,children:I.jsx(TMn,{value:n,children:I.jsx(Q,{id:n,data:j.data,type:ne,positionAbsoluteX:z.positionAbsolute.x,positionAbsoluteY:z.positionAbsolute.y,selected:j.selected??!1,selectable:he,draggable:ae,deletable:j.deletable??!0,isConnectable:pe,sourcePosition:j.sourcePosition,targetPosition:j.targetPosition,dragging:De,dragHandle:j.dragHandle,zIndex:z.z,parentId:j.parentId,...Re})})})}var HMn=H.memo(UMn);const zMn=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function Zzt(n){const{nodesDraggable:i,nodesConnectable:s,nodesFocusable:c,elementsSelectable:d,onError:g}=Js(zMn,Lu),b=jMn(n.onlyRenderVisibleElements),w=$Mn();return I.jsx("div",{className:"react-flow__nodes",style:iae,children:b.map(E=>I.jsx(HMn,{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:c,elementsSelectable:d,nodeClickDistance:n.nodeClickDistance,onError:g},E))})}Zzt.displayName="NodeRenderer";const GMn=H.memo(Zzt);function qMn(n){return Js(H.useCallback(s=>{if(!n)return s.edges.map(d=>d.id);const c=[];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&&BLn({sourceNode:g,targetNode:b,width:s.width,height:s.height,transform:s.transform})&&c.push(d.id)}return c},[n]),Lu)}const VMn=({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"})},WMn=({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"})},v9t={[sA.Arrow]:VMn,[sA.ArrowClosed]:WMn};function KMn(n){const i=Mu();return H.useMemo(()=>{var d,g;return Object.prototype.hasOwnProperty.call(v9t,n)?v9t[n]:((g=(d=i.getState()).onError)==null||g.call(d,"009",z2.error009(n)),null)},[n])}const YMn=({id:n,type:i,color:s,width:c=12.5,height:d=12.5,markerUnits:g="strokeWidth",strokeWidth:b,orient:w="auto-start-reverse"})=>{const E=KMn(i);return E?I.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${c}`,markerHeight:`${d}`,viewBox:"-10 -10 20 20",markerUnits:g,orient:w,refX:"0",refY:"0",children:I.jsx(E,{color:s,strokeWidth:b})}):null},Qzt=({defaultColor:n,rfId:i})=>{const s=Js(g=>g.edges),c=Js(g=>g.defaultEdgeOptions),d=H.useMemo(()=>WLn(s,{id:i,defaultColor:n,defaultMarkerStart:c==null?void 0:c.markerStart,defaultMarkerEnd:c==null?void 0:c.markerEnd}),[s,c,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(YMn,{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 JMn=H.memo(Qzt);function eGt({x:n,y:i,label:s,labelStyle:c,labelShowBg:d=!0,labelBgStyle:g,labelBgPadding:b=[2,4],labelBgBorderRadius:w=2,children:E,className:S,..._}){const[A,C]=H.useState({x:1,y:0,width:0,height:0}),O=Bd(["react-flow__edge-textwrapper",S]),L=H.useRef(null);return H.useEffect(()=>{if(L.current){const D=L.current.getBBox();C({x:D.x,y:D.y,width:D.width,height:D.height})}},[s]),s?I.jsxs("g",{transform:`translate(${n-A.width/2} ${i-A.height/2})`,className:O,visibility:A.width?"visible":"hidden",..._,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:L,style:c,children:s}),E]}):null}eGt.displayName="EdgeText";const XMn=H.memo(eGt);function Nz({path:n,labelX:i,labelY:s,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E,interactionWidth:S=20,..._}){return I.jsxs(I.Fragment,{children:[I.jsx("path",{..._,d:n,fill:"none",className:Bd(["react-flow__edge-path",_.className])}),S?I.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}):null,c&&Dv(i)&&Dv(s)?I.jsx(XMn,{x:i,y:s,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E}):null]})}function E9t({pos:n,x1:i,y1:s,x2:c,y2:d}){return n===qr.Left||n===qr.Right?[.5*(i+c),s]:[i,.5*(s+d)]}function tGt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:c,targetY:d,targetPosition:g=qr.Top}){const[b,w]=E9t({pos:s,x1:n,y1:i,x2:c,y2:d}),[E,S]=E9t({pos:g,x1:c,y1:d,x2:n,y2:i}),[_,A,C,O]=vzt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:b,sourceControlY:w,targetControlX:E,targetControlY:S});return[`M${n},${i} C${b},${w} ${E},${S} ${c},${d}`,_,A,C,O]}function nGt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,sourcePosition:b,targetPosition:w,label:E,labelStyle:S,labelShowBg:_,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:O,style:L,markerEnd:D,markerStart:B,interactionWidth:$})=>{const[P,j,z]=tGt({sourceX:s,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w}),ee=n.isInternal?void 0:i;return I.jsx(Nz,{id:ee,path:P,labelX:j,labelY:z,label:E,labelStyle:S,labelShowBg:_,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:O,style:L,markerEnd:D,markerStart:B,interactionWidth:$})})}const ZMn=nGt({isInternal:!1}),rGt=nGt({isInternal:!0});ZMn.displayName="SimpleBezierEdge";rGt.displayName="SimpleBezierEdgeInternal";function iGt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:_,labelBgBorderRadius:A,style:C,sourcePosition:O=qr.Bottom,targetPosition:L=qr.Top,markerEnd:D,markerStart:B,pathOptions:$,interactionWidth:P})=>{const[j,z,ee]=Xoe({sourceX:s,sourceY:c,sourcePosition:O,targetX:d,targetY:g,targetPosition:L,borderRadius:$==null?void 0:$.borderRadius,offset:$==null?void 0:$.offset,stepPosition:$==null?void 0:$.stepPosition}),ne=n.isInternal?void 0:i;return I.jsx(Nz,{id:ne,path:j,labelX:z,labelY:ee,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:_,labelBgBorderRadius:A,style:C,markerEnd:D,markerStart:B,interactionWidth:P})})}const oGt=iGt({isInternal:!1}),sGt=iGt({isInternal:!0});oGt.displayName="SmoothStepEdge";sGt.displayName="SmoothStepEdgeInternal";function aGt(n){return H.memo(({id:i,...s})=>{var d;const c=n.isInternal?void 0:i;return I.jsx(oGt,{...s,id:c,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 QMn=aGt({isInternal:!1}),cGt=aGt({isInternal:!0});QMn.displayName="StepEdge";cGt.displayName="StepEdgeInternal";function uGt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:_,labelBgBorderRadius:A,style:C,markerEnd:O,markerStart:L,interactionWidth:D})=>{const[B,$,P]=Azt({sourceX:s,sourceY:c,targetX:d,targetY:g}),j=n.isInternal?void 0:i;return I.jsx(Nz,{id:j,path:B,labelX:$,labelY:P,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:_,labelBgBorderRadius:A,style:C,markerEnd:O,markerStart:L,interactionWidth:D})})}const e9n=uGt({isInternal:!1}),lGt=uGt({isInternal:!0});e9n.displayName="StraightEdge";lGt.displayName="StraightEdgeInternal";function dGt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,sourcePosition:b=qr.Bottom,targetPosition:w=qr.Top,label:E,labelStyle:S,labelShowBg:_,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:O,style:L,markerEnd:D,markerStart:B,pathOptions:$,interactionWidth:P})=>{const[j,z,ee]=Ezt({sourceX:s,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w,curvature:$==null?void 0:$.curvature}),ne=n.isInternal?void 0:i;return I.jsx(Nz,{id:ne,path:j,labelX:z,labelY:ee,label:E,labelStyle:S,labelShowBg:_,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:O,style:L,markerEnd:D,markerStart:B,interactionWidth:P})})}const t9n=dGt({isInternal:!1}),fGt=dGt({isInternal:!0});t9n.displayName="BezierEdge";fGt.displayName="BezierEdgeInternal";const S9t={default:fGt,straight:lGt,step:cGt,smoothstep:sGt,simplebezier:rGt},T9t={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},n9n=(n,i,s)=>s===qr.Left?n-i:s===qr.Right?n+i:n,r9n=(n,i,s)=>s===qr.Top?n-i:s===qr.Bottom?n+i:n,A9t="react-flow__edgeupdater";function _9t({position:n,centerX:i,centerY:s,radius:c=10,onMouseDown:d,onMouseEnter:g,onMouseOut:b,type:w}){return I.jsx("circle",{onMouseDown:d,onMouseEnter:g,onMouseOut:b,className:Bd([A9t,`${A9t}-${w}`]),cx:n9n(i,c,n),cy:r9n(s,c,n),r:c,stroke:"transparent",fill:"transparent"})}function i9n({isReconnectable:n,reconnectRadius:i,edge:s,sourceX:c,sourceY:d,targetX:g,targetY:b,sourcePosition:w,targetPosition:E,onReconnect:S,onReconnectStart:_,onReconnectEnd:A,setReconnecting:C,setUpdateHover:O}){const L=Mu(),D=(z,ee)=>{if(z.button!==0)return;const{autoPanOnConnect:ne,domNode:Q,isValidConnection:ae,connectionMode:he,connectionRadius:pe,lib:ue,onConnectStart:fe,onConnectEnd:K,cancelConnection:ge,nodeLookup:De,rfId:Se,panBy:Re,updateConnection:Ae}=L.getState(),xe=ee.type==="target",We=(bt,Nt)=>{C(!1),A==null||A(bt,s,ee.type,Nt)},ut=bt=>S==null?void 0:S(s,bt),Be=(bt,Nt)=>{C(!0),_==null||_(z,s,ee.type),fe==null||fe(bt,Nt)};vDe.onPointerDown(z.nativeEvent,{autoPanOnConnect:ne,connectionMode:he,connectionRadius:pe,domNode:Q,handleId:ee.id,nodeId:ee.nodeId,nodeLookup:De,isTarget:xe,edgeUpdaterType:ee.type,lib:ue,flowId:Se,cancelConnection:ge,panBy:Re,isValidConnection:ae,onConnect:ut,onConnectStart:Be,onConnectEnd:K,onReconnectEnd:We,updateConnection:Ae,getTransform:()=>L.getState().transform,getFromHandle:()=>L.getState().connection.fromHandle,dragThreshold:L.getState().connectionDragThreshold,handleDomNode:z.currentTarget})},B=z=>D(z,{nodeId:s.target,id:s.targetHandle??null,type:"target"}),$=z=>D(z,{nodeId:s.source,id:s.sourceHandle??null,type:"source"}),P=()=>O(!0),j=()=>O(!1);return I.jsxs(I.Fragment,{children:[(n===!0||n==="source")&&I.jsx(_9t,{position:w,centerX:c,centerY:d,radius:i,onMouseDown:B,onMouseEnter:P,onMouseOut:j,type:"source"}),(n===!0||n==="target")&&I.jsx(_9t,{position:E,centerX:g,centerY:b,radius:i,onMouseDown:$,onMouseEnter:P,onMouseOut:j,type:"target"})]})}function o9n({id:n,edgesFocusable:i,edgesReconnectable:s,elementsSelectable:c,onClick:d,onDoubleClick:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,reconnectRadius:_,onReconnect:A,onReconnectStart:C,onReconnectEnd:O,rfId:L,edgeTypes:D,noPanClassName:B,onError:$,disableKeyboardA11y:P}){let j=Js(Yn=>Yn.edgeLookup.get(n));const z=Js(Yn=>Yn.defaultEdgeOptions);j=z?{...z,...j}:j;let ee=j.type||"default",ne=(D==null?void 0:D[ee])||S9t[ee];ne===void 0&&($==null||$("011",z2.error011(ee)),ee="default",ne=(D==null?void 0:D.default)||S9t.default);const Q=!!(j.focusable||i&&typeof j.focusable>"u"),ae=typeof A<"u"&&(j.reconnectable||s&&typeof j.reconnectable>"u"),he=!!(j.selectable||c&&typeof j.selectable>"u"),pe=H.useRef(null),[ue,fe]=H.useState(!1),[K,ge]=H.useState(!1),De=Mu(),{zIndex:Se,sourceX:Re,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:ut,targetPosition:Be}=Js(H.useCallback(Yn=>{const Er=Yn.nodeLookup.get(j.source),Ui=Yn.nodeLookup.get(j.target);if(!Er||!Ui)return{zIndex:j.zIndex,...T9t};const Qr=VLn({id:n,sourceNode:Er,targetNode:Ui,sourceHandle:j.sourceHandle||null,targetHandle:j.targetHandle||null,connectionMode:Yn.connectionMode,onError:$});return{zIndex:$Ln({selected:j.selected,zIndex:j.zIndex,sourceNode:Er,targetNode:Ui,elevateOnSelect:Yn.elevateEdgesOnSelect,zIndexMode:Yn.zIndexMode}),...Qr||T9t}},[j.source,j.target,j.sourceHandle,j.targetHandle,j.selected,j.zIndex]),Lu),bt=H.useMemo(()=>j.markerStart?`url('#${wDe(j.markerStart,L)}')`:void 0,[j.markerStart,L]),Nt=H.useMemo(()=>j.markerEnd?`url('#${wDe(j.markerEnd,L)}')`:void 0,[j.markerEnd,L]);if(j.hidden||Re===null||Ae===null||xe===null||We===null)return null;const pt=Yn=>{var Hi;const{addSelectedEdges:Er,unselectNodesAndEdges:Ui,multiSelectionActive:Qr}=De.getState();he&&(De.setState({nodesSelectionActive:!1}),j.selected&&Qr?(Ui({nodes:[],edges:[j]}),(Hi=pe.current)==null||Hi.blur()):Er([n])),d&&d(Yn,j)},Kt=g?Yn=>{g(Yn,{...j})}:void 0,Et=b?Yn=>{b(Yn,{...j})}:void 0,Dt=w?Yn=>{w(Yn,{...j})}:void 0,Yt=E?Yn=>{E(Yn,{...j})}:void 0,Ln=S?Yn=>{S(Yn,{...j})}:void 0,Zn=Yn=>{var Er;if(!P&&szt.includes(Yn.key)&&he){const{unselectNodesAndEdges:Ui,addSelectedEdges:Qr}=De.getState();Yn.key==="Escape"?((Er=pe.current)==null||Er.blur(),Ui({edges:[j]})):Qr([n])}};return I.jsx("svg",{style:{zIndex:Se},children:I.jsxs("g",{className:Bd(["react-flow__edge",`react-flow__edge-${ee}`,j.className,B,{selected:j.selected,animated:j.animated,inactive:!he&&!d,updating:ue,selectable:he}]),onClick:pt,onDoubleClick:Kt,onContextMenu:Et,onMouseEnter:Dt,onMouseMove:Yt,onMouseLeave:Ln,onKeyDown:Q?Zn:void 0,tabIndex:Q?0:void 0,role:j.ariaRole??(Q?"group":"img"),"aria-roledescription":"edge","data-id":n,"data-testid":`rf__edge-${n}`,"aria-label":j.ariaLabel===null?void 0:j.ariaLabel||`Edge from ${j.source} to ${j.target}`,"aria-describedby":Q?`${Uzt}-${L}`:void 0,ref:pe,...j.domAttributes,children:[!K&&I.jsx(ne,{id:n,source:j.source,target:j.target,type:j.type,selected:j.selected,animated:j.animated,selectable:he,deletable:j.deletable??!0,label:j.label,labelStyle:j.labelStyle,labelShowBg:j.labelShowBg,labelBgStyle:j.labelBgStyle,labelBgPadding:j.labelBgPadding,labelBgBorderRadius:j.labelBgBorderRadius,sourceX:Re,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:ut,targetPosition:Be,data:j.data,style:j.style,sourceHandleId:j.sourceHandle,targetHandleId:j.targetHandle,markerStart:bt,markerEnd:Nt,pathOptions:"pathOptions"in j?j.pathOptions:void 0,interactionWidth:j.interactionWidth}),ae&&I.jsx(i9n,{edge:j,isReconnectable:ae,reconnectRadius:_,onReconnect:A,onReconnectStart:C,onReconnectEnd:O,sourceX:Re,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:ut,targetPosition:Be,setUpdateHover:fe,setReconnecting:ge})]})})}var s9n=H.memo(o9n);const a9n=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function hGt({defaultMarkerColor:n,onlyRenderVisibleElements:i,rfId:s,edgeTypes:c,noPanClassName:d,onReconnect:g,onEdgeContextMenu:b,onEdgeMouseEnter:w,onEdgeMouseMove:E,onEdgeMouseLeave:S,onEdgeClick:_,reconnectRadius:A,onEdgeDoubleClick:C,onReconnectStart:O,onReconnectEnd:L,disableKeyboardA11y:D}){const{edgesFocusable:B,edgesReconnectable:$,elementsSelectable:P,onError:j}=Js(a9n,Lu),z=qMn(i);return I.jsxs("div",{className:"react-flow__edges",children:[I.jsx(JMn,{defaultColor:n,rfId:s}),z.map(ee=>I.jsx(s9n,{id:ee,edgesFocusable:B,edgesReconnectable:$,elementsSelectable:P,noPanClassName:d,onReconnect:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,onClick:_,reconnectRadius:A,onDoubleClick:C,onReconnectStart:O,onReconnectEnd:L,rfId:s,onError:j,edgeTypes:c,disableKeyboardA11y:D},ee))]})}hGt.displayName="EdgeRenderer";const c9n=H.memo(hGt),u9n=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function l9n({children:n}){const i=Js(u9n);return I.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:i},children:n})}function d9n(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 f9n=n=>{var i;return(i=n.panZoom)==null?void 0:i.syncViewport};function h9n(n){const i=Js(f9n),s=Mu();return H.useEffect(()=>{n&&(i==null||i(n),s.setState({transform:[n.x,n.y,n.zoom]}))},[n,i]),null}function p9n(n){return n.connection.inProgress?{...n.connection,to:kz(n.connection.to,n.transform)}:{...n.connection}}function g9n(n){return p9n}function b9n(n){const i=g9n();return Js(i,Lu)}const m9n=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function w9n({containerStyle:n,style:i,type:s,component:c}){const{nodesConnectable:d,width:g,height:b,isValid:w,inProgress:E}=Js(m9n,Lu);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",uzt(w)]),children:I.jsx(pGt,{style:i,type:s,CustomComponent:c,isValid:w})})})}const pGt=({style:n,type:i=Bk.Bezier,CustomComponent:s,isValid:c})=>{const{inProgress:d,from:g,fromNode:b,fromHandle:w,fromPosition:E,to:S,toNode:_,toHandle:A,toPosition:C,pointer:O}=b9n();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:uzt(c),toNode:_,toHandle:A,pointer:O});let L="";const D={sourceX:g.x,sourceY:g.y,sourcePosition:E,targetX:S.x,targetY:S.y,targetPosition:C};switch(i){case Bk.Bezier:[L]=Ezt(D);break;case Bk.SimpleBezier:[L]=tGt(D);break;case Bk.Step:[L]=Xoe({...D,borderRadius:0});break;case Bk.SmoothStep:[L]=Xoe(D);break;default:[L]=Azt(D)}return I.jsx("path",{d:L,fill:"none",className:"react-flow__connection-path",style:n})};pGt.displayName="ConnectionLine";const y9n={};function x9t(n=y9n){H.useRef(n),Mu(),H.useEffect(()=>{},[n])}function v9n(){Mu(),H.useRef(!1),H.useEffect(()=>{},[])}function gGt({nodeTypes:n,edgeTypes:i,onInit:s,onNodeClick:c,onEdgeClick:d,onNodeDoubleClick:g,onEdgeDoubleClick:b,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:_,onSelectionContextMenu:A,onSelectionStart:C,onSelectionEnd:O,connectionLineType:L,connectionLineStyle:D,connectionLineComponent:B,connectionLineContainerStyle:$,selectionKeyCode:P,selectionOnDrag:j,selectionMode:z,multiSelectionKeyCode:ee,panActivationKeyCode:ne,zoomActivationKeyCode:Q,deleteKeyCode:ae,onlyRenderVisibleElements:he,elementsSelectable:pe,defaultViewport:ue,translateExtent:fe,minZoom:K,maxZoom:ge,preventScrolling:De,defaultMarkerColor:Se,zoomOnScroll:Re,zoomOnPinch:Ae,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:ut,zoomOnDoubleClick:Be,panOnDrag:bt,onPaneClick:Nt,onPaneMouseEnter:pt,onPaneMouseMove:Kt,onPaneMouseLeave:Et,onPaneScroll:Dt,onPaneContextMenu:Yt,paneClickDistance:Ln,nodeClickDistance:Zn,onEdgeContextMenu:Yn,onEdgeMouseEnter:Er,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,onReconnect:ai,onReconnectStart:ju,onReconnectEnd:Xs,noDragClassName:ls,noWheelClassName:es,noPanClassName:Ca,disableKeyboardA11y:Ci,nodeExtent:mb,rfId:Jg,viewport:Wh,onViewportChange:wb}){return x9t(n),x9t(i),v9n(),d9n(s),h9n(Wh),I.jsx(MMn,{onPaneClick:Nt,onPaneMouseEnter:pt,onPaneMouseMove:Kt,onPaneMouseLeave:Et,onPaneContextMenu:Yt,onPaneScroll:Dt,paneClickDistance:Ln,deleteKeyCode:ae,selectionKeyCode:P,selectionOnDrag:j,selectionMode:z,onSelectionStart:C,onSelectionEnd:O,multiSelectionKeyCode:ee,panActivationKeyCode:ne,zoomActivationKeyCode:Q,elementsSelectable:pe,zoomOnScroll:Re,zoomOnPinch:Ae,zoomOnDoubleClick:Be,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:ut,panOnDrag:bt,defaultViewport:ue,translateExtent:fe,minZoom:K,maxZoom:ge,onSelectionContextMenu:A,preventScrolling:De,noDragClassName:ls,noWheelClassName:es,noPanClassName:Ca,disableKeyboardA11y:Ci,onViewportChange:wb,isControlledViewport:!!Wh,children:I.jsxs(l9n,{children:[I.jsx(c9n,{edgeTypes:i,onEdgeClick:d,onEdgeDoubleClick:b,onReconnect:ai,onReconnectStart:ju,onReconnectEnd:Xs,onlyRenderVisibleElements:he,onEdgeContextMenu:Yn,onEdgeMouseEnter:Er,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,defaultMarkerColor:Se,noPanClassName:Ca,disableKeyboardA11y:Ci,rfId:Jg}),I.jsx(w9n,{style:D,type:L,component:B,containerStyle:$}),I.jsx("div",{className:"react-flow__edgelabel-renderer"}),I.jsx(GMn,{nodeTypes:n,onNodeClick:c,onNodeDoubleClick:g,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:_,nodeClickDistance:Zn,onlyRenderVisibleElements:he,noPanClassName:Ca,noDragClassName:ls,disableKeyboardA11y:Ci,nodeExtent:mb,rfId:Jg}),I.jsx("div",{className:"react-flow__viewport-portal"})]})})}gGt.displayName="GraphView";const E9n=H.memo(gGt),k9t=({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E=.5,maxZoom:S=2,nodeOrigin:_,nodeExtent:A,zIndexMode:C="basic"}={})=>{const O=new Map,L=new Map,D=new Map,B=new Map,$=c??i??[],P=s??n??[],j=_??[0,0],z=A??YH;kzt(D,B,$);const ee=yDe(P,O,L,{nodeOrigin:j,nodeExtent:z,zIndexMode:C});let ne=[0,0,1];if(b&&d&&g){const Q=_z(O,{filter:ue=>!!((ue.width||ue.initialWidth)&&(ue.height||ue.initialHeight))}),{x:ae,y:he,zoom:pe}=L5e(Q,d,g,E,S,(w==null?void 0:w.padding)??.1);ne=[ae,he,pe]}return{rfId:"1",width:d??0,height:g??0,transform:ne,nodes:P,nodesInitialized:ee,nodeLookup:O,parentLookup:L,edges:$,edgeLookup:B,connectionLookup:D,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:s!==void 0,hasDefaultEdges:c!==void 0,panZoom:null,minZoom:E,maxZoom:S,translateExtent:YH,nodeExtent:z,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:SM.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:j,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:{...czt},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:DLn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:azt,zIndexMode:C,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},S9n=({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:_,nodeExtent:A,zIndexMode:C})=>B5n((O,L)=>{async function D(){const{nodeLookup:B,panZoom:$,fitViewOptions:P,fitViewResolver:j,width:z,height:ee,minZoom:ne,maxZoom:Q}=L();$&&(await RLn({nodes:B,width:z,height:ee,panZoom:$,minZoom:ne,maxZoom:Q},P),j==null||j.resolve(!0),O({fitViewResolver:null}))}return{...k9t({nodes:n,edges:i,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:_,nodeExtent:A,defaultNodes:s,defaultEdges:c,zIndexMode:C}),setNodes:B=>{const{nodeLookup:$,parentLookup:P,nodeOrigin:j,elevateNodesOnSelect:z,fitViewQueued:ee,zIndexMode:ne}=L(),Q=yDe(B,$,P,{nodeOrigin:j,nodeExtent:A,elevateNodesOnSelect:z,checkEquality:!0,zIndexMode:ne});ee&&Q?(D(),O({nodes:B,nodesInitialized:Q,fitViewQueued:!1,fitViewOptions:void 0})):O({nodes:B,nodesInitialized:Q})},setEdges:B=>{const{connectionLookup:$,edgeLookup:P}=L();kzt($,P,B),O({edges:B})},setDefaultNodesAndEdges:(B,$)=>{if(B){const{setNodes:P}=L();P(B),O({hasDefaultNodes:!0})}if($){const{setEdges:P}=L();P($),O({hasDefaultEdges:!0})}},updateNodeInternals:B=>{const{triggerNodeChanges:$,nodeLookup:P,parentLookup:j,domNode:z,nodeOrigin:ee,nodeExtent:ne,debug:Q,fitViewQueued:ae,zIndexMode:he}=L(),{changes:pe,updatedInternals:ue}=e5n(B,P,j,z,ee,ne,he);ue&&(JLn(P,j,{nodeOrigin:ee,nodeExtent:ne,zIndexMode:he}),ae?(D(),O({fitViewQueued:!1,fitViewOptions:void 0})):O({}),(pe==null?void 0:pe.length)>0&&(Q&&console.log("React Flow: trigger node changes",pe),$==null||$(pe)))},updateNodePositions:(B,$=!1)=>{const P=[];let j=[];const{nodeLookup:z,triggerNodeChanges:ee,connection:ne,updateConnection:Q,onNodesChangeMiddlewareMap:ae}=L();for(const[he,pe]of B){const ue=z.get(he),fe=!!(ue!=null&&ue.expandParent&&(ue!=null&&ue.parentId)&&(pe!=null&&pe.position)),K={id:he,type:"position",position:fe?{x:Math.max(0,pe.position.x),y:Math.max(0,pe.position.y)}:pe.position,dragging:$};if(ue&&ne.inProgress&&ne.fromNode.id===ue.id){const ge=pR(ue,ne.fromHandle,qr.Left,!0);Q({...ne,from:ge})}fe&&ue.parentId&&P.push({id:he,parentId:ue.parentId,rect:{...pe.internals.positionAbsolute,width:pe.measured.width??0,height:pe.measured.height??0}}),j.push(K)}if(P.length>0){const{parentLookup:he,nodeOrigin:pe}=L(),ue=B5e(P,z,he,pe);j.push(...ue)}for(const he of ae.values())j=he(j);ee(j)},triggerNodeChanges:B=>{const{onNodesChange:$,setNodes:P,nodes:j,hasDefaultNodes:z,debug:ee}=L();if(B!=null&&B.length){if(z){const ne=Gzt(B,j);P(ne)}ee&&console.log("React Flow: trigger node changes",B),$==null||$(B)}},triggerEdgeChanges:B=>{const{onEdgesChange:$,setEdges:P,edges:j,hasDefaultEdges:z,debug:ee}=L();if(B!=null&&B.length){if(z){const ne=qzt(B,j);P(ne)}ee&&console.log("React Flow: trigger edge changes",B),$==null||$(B)}},addSelectedNodes:B=>{const{multiSelectionActive:$,edgeLookup:P,nodeLookup:j,triggerNodeChanges:z,triggerEdgeChanges:ee}=L();if($){const ne=B.map(Q=>W4(Q,!0));z(ne);return}z(G5(j,new Set([...B]),!0)),ee(G5(P))},addSelectedEdges:B=>{const{multiSelectionActive:$,edgeLookup:P,nodeLookup:j,triggerNodeChanges:z,triggerEdgeChanges:ee}=L();if($){const ne=B.map(Q=>W4(Q,!0));ee(ne);return}ee(G5(P,new Set([...B]))),z(G5(j,new Set,!0))},unselectNodesAndEdges:({nodes:B,edges:$}={})=>{const{edges:P,nodes:j,nodeLookup:z,triggerNodeChanges:ee,triggerEdgeChanges:ne}=L(),Q=B||j,ae=$||P,he=Q.map(ue=>{const fe=z.get(ue.id);return fe&&(fe.selected=!1),W4(ue.id,!1)}),pe=ae.map(ue=>W4(ue.id,!1));ee(he),ne(pe)},setMinZoom:B=>{const{panZoom:$,maxZoom:P}=L();$==null||$.setScaleExtent([B,P]),O({minZoom:B})},setMaxZoom:B=>{const{panZoom:$,minZoom:P}=L();$==null||$.setScaleExtent([P,B]),O({maxZoom:B})},setTranslateExtent:B=>{var $;($=L().panZoom)==null||$.setTranslateExtent(B),O({translateExtent:B})},resetSelectedElements:()=>{const{edges:B,nodes:$,triggerNodeChanges:P,triggerEdgeChanges:j,elementsSelectable:z}=L();if(!z)return;const ee=$.reduce((Q,ae)=>ae.selected?[...Q,W4(ae.id,!1)]:Q,[]),ne=B.reduce((Q,ae)=>ae.selected?[...Q,W4(ae.id,!1)]:Q,[]);P(ee),j(ne)},setNodeExtent:B=>{const{nodes:$,nodeLookup:P,parentLookup:j,nodeOrigin:z,elevateNodesOnSelect:ee,nodeExtent:ne,zIndexMode:Q}=L();B[0][0]===ne[0][0]&&B[0][1]===ne[0][1]&&B[1][0]===ne[1][0]&&B[1][1]===ne[1][1]||(yDe($,P,j,{nodeOrigin:z,nodeExtent:B,elevateNodesOnSelect:ee,checkEquality:!1,zIndexMode:Q}),O({nodeExtent:B}))},panBy:B=>{const{transform:$,width:P,height:j,panZoom:z,translateExtent:ee}=L();return t5n({delta:B,panZoom:z,transform:$,translateExtent:ee,width:P,height:j})},setCenter:async(B,$,P)=>{const{width:j,height:z,maxZoom:ee,panZoom:ne}=L();if(!ne)return Promise.resolve(!1);const Q=typeof(P==null?void 0:P.zoom)<"u"?P.zoom:ee;return await ne.setViewport({x:j/2-B*Q,y:z/2-$*Q,zoom:Q},{duration:P==null?void 0:P.duration,ease:P==null?void 0:P.ease,interpolate:P==null?void 0:P.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{O({connection:{...czt}})},updateConnection:B=>{O({connection:B})},reset:()=>O({...k9t()})}},Object.is);function bGt({initialNodes:n,initialEdges:i,defaultNodes:s,defaultEdges:c,initialWidth:d,initialHeight:g,initialMinZoom:b,initialMaxZoom:w,initialFitViewOptions:E,fitView:S,nodeOrigin:_,nodeExtent:A,zIndexMode:C,children:O}){const[L]=H.useState(()=>S9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:S,minZoom:b,maxZoom:w,fitViewOptions:E,nodeOrigin:_,nodeExtent:A,zIndexMode:C}));return I.jsx(U5n,{value:L,children:I.jsx(lMn,{children:O})})}function T9n({children:n,nodes:i,edges:s,defaultNodes:c,defaultEdges:d,width:g,height:b,fitView:w,fitViewOptions:E,minZoom:S,maxZoom:_,nodeOrigin:A,nodeExtent:C,zIndexMode:O}){return H.useContext(rae)?I.jsx(I.Fragment,{children:n}):I.jsx(bGt,{initialNodes:i,initialEdges:s,defaultNodes:c,defaultEdges:d,initialWidth:g,initialHeight:b,fitView:w,initialFitViewOptions:E,initialMinZoom:S,initialMaxZoom:_,nodeOrigin:A,nodeExtent:C,zIndexMode:O,children:n})}const A9n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function _9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,className:d,nodeTypes:g,edgeTypes:b,onNodeClick:w,onEdgeClick:E,onInit:S,onMove:_,onMoveStart:A,onMoveEnd:C,onConnect:O,onConnectStart:L,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:$,onNodeMouseEnter:P,onNodeMouseMove:j,onNodeMouseLeave:z,onNodeContextMenu:ee,onNodeDoubleClick:ne,onNodeDragStart:Q,onNodeDrag:ae,onNodeDragStop:he,onNodesDelete:pe,onEdgesDelete:ue,onDelete:fe,onSelectionChange:K,onSelectionDragStart:ge,onSelectionDrag:De,onSelectionDragStop:Se,onSelectionContextMenu:Re,onSelectionStart:Ae,onSelectionEnd:xe,onBeforeDelete:We,connectionMode:ut,connectionLineType:Be=Bk.Bezier,connectionLineStyle:bt,connectionLineComponent:Nt,connectionLineContainerStyle:pt,deleteKeyCode:Kt="Backspace",selectionKeyCode:Et="Shift",selectionOnDrag:Dt=!1,selectionMode:Yt=JH.Full,panActivationKeyCode:Ln="Space",multiSelectionKeyCode:Zn=ZH()?"Meta":"Control",zoomActivationKeyCode:Yn=ZH()?"Meta":"Control",snapToGrid:Er,snapGrid:Ui,onlyRenderVisibleElements:Qr=!1,selectNodesOnDrag:Hi,nodesDraggable:ai,autoPanOnNodeFocus:ju,nodesConnectable:Xs,nodesFocusable:ls,nodeOrigin:es=Hzt,edgesFocusable:Ca,edgesReconnectable:Ci,elementsSelectable:mb=!0,defaultViewport:Jg=eMn,minZoom:Wh=.5,maxZoom:wb=2,translateExtent:Wp=YH,preventScrolling:Lw=!0,nodeExtent:Kh,defaultMarkerColor:X2="#b1b1b7",zoomOnScroll:Xg=!0,zoomOnPinch:Kp=!0,panOnScroll:Zg=!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:go,paneClickDistance:Fu=1,nodeClickDistance:Fl=0,children:Af,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:r9=10,onNodesChange:i9,onEdgesChange:iG,noDragClassName:oG="nodrag",noWheelClassName:sG="nowheel",noPanClassName:o9="nopan",fitView:s9,fitViewOptions:a9,connectOnClick:aG,attributionPosition:cG,proOptions:uG,defaultEdgeOptions:lG,elevateNodesOnSelect:WR=!0,elevateEdgesOnSelect:dG=!1,disableKeyboardA11y:c9=!1,autoPanOnConnect:fG,autoPanOnNodeDrag:hG,autoPanSpeed:pG,connectionRadius:gG,isValidConnection:bG,onError:mG,style:wG,id:u9,nodeDragThreshold:yG,connectionDragThreshold:l9,viewport:d9,onViewportChange:vG,width:EG,height:SG,colorMode:TG="light",debug:AG,onScroll:DN,ariaLabelConfig:_G,zIndexMode:f9="basic",...xG},kG){const KR=u9||"1",NG=iMn(TG),CG=H.useCallback(h9=>{h9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),DN==null||DN(h9)},[DN]);return I.jsx("div",{"data-testid":"rf__wrapper",...xG,onScroll:CG,style:{...wG,...A9n},ref:kG,className:Bd(["react-flow",d,NG]),id:u9,role:"application",children:I.jsxs(T9n,{nodes:n,edges:i,width:EG,height:SG,fitView:s9,fitViewOptions:a9,minZoom:Wh,maxZoom:wb,nodeOrigin:es,nodeExtent:Kh,zIndexMode:f9,children:[I.jsx(E9n,{onInit:S,onNodeClick:w,onEdgeClick:E,onNodeMouseEnter:P,onNodeMouseMove:j,onNodeMouseLeave:z,onNodeContextMenu:ee,onNodeDoubleClick:ne,nodeTypes:g,edgeTypes:b,connectionLineType:Be,connectionLineStyle:bt,connectionLineComponent:Nt,connectionLineContainerStyle:pt,selectionKeyCode:Et,selectionOnDrag:Dt,selectionMode:Yt,deleteKeyCode:Kt,multiSelectionKeyCode:Zn,panActivationKeyCode:Ln,zoomActivationKeyCode:Yn,onlyRenderVisibleElements:Qr,defaultViewport:Jg,translateExtent:Wp,minZoom:Wh,maxZoom:wb,preventScrolling:Lw,zoomOnScroll:Xg,zoomOnPinch:Kp,zoomOnDoubleClick:GR,panOnScroll:Zg,panOnScrollSpeed:CN,panOnScrollMode:IN,panOnDrag:kA,onPaneClick:yb,onPaneMouseEnter:qR,onPaneMouseMove:VR,onPaneMouseLeave:RN,onPaneScroll:ON,onPaneContextMenu:go,paneClickDistance:Fu,nodeClickDistance:Fl,onSelectionContextMenu:Re,onSelectionStart:Ae,onSelectionEnd:xe,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:r9,defaultMarkerColor:X2,noDragClassName:oG,noWheelClassName:sG,noPanClassName:o9,rfId:KR,disableKeyboardA11y:c9,nodeExtent:Kh,viewport:d9,onViewportChange:vG}),I.jsx(rMn,{nodes:n,edges:i,defaultNodes:s,defaultEdges:c,onConnect:O,onConnectStart:L,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:$,nodesDraggable:ai,autoPanOnNodeFocus:ju,nodesConnectable:Xs,nodesFocusable:ls,edgesFocusable:Ca,edgesReconnectable:Ci,elementsSelectable:mb,elevateNodesOnSelect:WR,elevateEdgesOnSelect:dG,minZoom:Wh,maxZoom:wb,nodeExtent:Kh,onNodesChange:i9,onEdgesChange:iG,snapToGrid:Er,snapGrid:Ui,connectionMode:ut,translateExtent:Wp,connectOnClick:aG,defaultEdgeOptions:lG,fitView:s9,fitViewOptions:a9,onNodesDelete:pe,onEdgesDelete:ue,onDelete:fe,onNodeDragStart:Q,onNodeDrag:ae,onNodeDragStop:he,onSelectionDrag:De,onSelectionDragStart:ge,onSelectionDragStop:Se,onMove:_,onMoveStart:A,onMoveEnd:C,noPanClassName:o9,nodeOrigin:es,rfId:KR,autoPanOnConnect:fG,autoPanOnNodeDrag:hG,autoPanSpeed:pG,onError:mG,connectionRadius:gG,isValidConnection:bG,selectNodesOnDrag:Hi,nodeDragThreshold:yG,connectionDragThreshold:l9,onBeforeDelete:We,debug:AG,ariaLabelConfig:_G,zIndexMode:f9}),I.jsx(Q5n,{onSelectionChange:K}),Af,I.jsx(K5n,{proOptions:uG,position:cG}),I.jsx(W5n,{rfId:KR,disableKeyboardA11y:c9})]})})}var x9n=Vzt(_9n);const k9n=n=>{var i;return(i=n.domNode)==null?void 0:i.querySelector(".react-flow__edgelabel-renderer")};function N9t({children:n}){const i=Js(k9n);return i?xR.createPortal(n,i):null}function N9n({dimensions:n,lineWidth:i,variant:s,className:c}){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,c])})}function C9n({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 I9n={[pA.Dots]:1,[pA.Lines]:1,[pA.Cross]:6},R9n=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function mGt({id:n,variant:i=pA.Dots,gap:s=20,size:c,lineWidth:d=1,offset:g=0,color:b,bgColor:w,style:E,className:S,patternClassName:_}){const A=H.useRef(null),{transform:C,patternId:O}=Js(R9n,Lu),L=c||I9n[i],D=i===pA.Dots,B=i===pA.Cross,$=Array.isArray(s)?s:[s,s],P=[$[0]*C[2]||1,$[1]*C[2]||1],j=L*C[2],z=Array.isArray(g)?g:[g,g],ee=B?[j,j]:P,ne=[z[0]*C[2]||1+ee[0]/2,z[1]*C[2]||1+ee[1]/2],Q=`${O}${n||""}`;return I.jsxs("svg",{className:Bd(["react-flow__background",S]),style:{...E,...iae,"--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]%P[0],y:C[1]%P[1],width:P[0],height:P[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${ne[0]},-${ne[1]})`,children:D?I.jsx(C9n,{radius:j/2,className:_}):I.jsx(N9n,{dimensions:ee,lineWidth:d,variant:i,className:_})}),I.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${Q})`})]})}mGt.displayName="Background";const O9n=H.memo(mGt);function D9n(){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 L9n(){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 M9n(){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 P9n(){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 j9n(){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 Sie({children:n,className:i,...s}){return I.jsx("button",{type:"button",className:Bd(["react-flow__controls-button",i]),...s,children:n})}const F9n=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function wGt({style:n,showZoom:i=!0,showFitView:s=!0,showInteractive:c=!0,fitViewOptions:d,onZoomIn:g,onZoomOut:b,onFitView:w,onInteractiveChange:E,className:S,children:_,position:A="bottom-left",orientation:C="vertical","aria-label":O}){const L=Mu(),{isInteractive:D,minZoomReached:B,maxZoomReached:$,ariaLabelConfig:P}=Js(F9n,Lu),{zoomIn:j,zoomOut:z,fitView:ee}=kR(),ne=()=>{j(),g==null||g()},Q=()=>{z(),b==null||b()},ae=()=>{ee(d),w==null||w()},he=()=>{L.setState({nodesDraggable:!D,nodesConnectable:!D,elementsSelectable:!D}),E==null||E(!D)},pe=C==="horizontal"?"horizontal":"vertical";return I.jsxs(gR,{className:Bd(["react-flow__controls",pe,S]),position:A,style:n,"data-testid":"rf__controls","aria-label":O??P["controls.ariaLabel"],children:[i&&I.jsxs(I.Fragment,{children:[I.jsx(Sie,{onClick:ne,className:"react-flow__controls-zoomin",title:P["controls.zoomIn.ariaLabel"],"aria-label":P["controls.zoomIn.ariaLabel"],disabled:$,children:I.jsx(D9n,{})}),I.jsx(Sie,{onClick:Q,className:"react-flow__controls-zoomout",title:P["controls.zoomOut.ariaLabel"],"aria-label":P["controls.zoomOut.ariaLabel"],disabled:B,children:I.jsx(L9n,{})})]}),s&&I.jsx(Sie,{className:"react-flow__controls-fitview",onClick:ae,title:P["controls.fitView.ariaLabel"],"aria-label":P["controls.fitView.ariaLabel"],children:I.jsx(M9n,{})}),c&&I.jsx(Sie,{className:"react-flow__controls-interactive",onClick:he,title:P["controls.interactive.ariaLabel"],"aria-label":P["controls.interactive.ariaLabel"],children:D?I.jsx(j9n,{}):I.jsx(P9n,{})}),_]})}wGt.displayName="Controls";const $9n=H.memo(wGt);function B9n({id:n,x:i,y:s,width:c,height:d,style:g,color:b,strokeColor:w,strokeWidth:E,className:S,borderRadius:_,shapeRendering:A,selected:C,onClick:O}){const{background:L,backgroundColor:D}=g||{},B=b||L||D;return I.jsx("rect",{className:Bd(["react-flow__minimap-node",{selected:C},S]),x:i,y:s,rx:_,ry:_,width:c,height:d,style:{fill:B,stroke:w,strokeWidth:E},shapeRendering:A,onClick:O?$=>O($,n):void 0})}const U9n=H.memo(B9n),H9n=n=>n.nodes.map(i=>i.id),WCe=n=>n instanceof Function?n:()=>n;function z9n({nodeStrokeColor:n,nodeColor:i,nodeClassName:s="",nodeBorderRadius:c=5,nodeStrokeWidth:d,nodeComponent:g=U9n,onClick:b}){const w=Js(H9n,Lu),E=WCe(i),S=WCe(n),_=WCe(s),A=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return I.jsx(I.Fragment,{children:w.map(C=>I.jsx(q9n,{id:C,nodeColorFunc:E,nodeStrokeColorFunc:S,nodeClassNameFunc:_,nodeBorderRadius:c,nodeStrokeWidth:d,NodeComponent:g,onClick:b,shapeRendering:A},C))})}function G9n({id:n,nodeColorFunc:i,nodeStrokeColorFunc:s,nodeClassNameFunc:c,nodeBorderRadius:d,nodeStrokeWidth:g,shapeRendering:b,NodeComponent:w,onClick:E}){const{node:S,x:_,y:A,width:C,height:O}=Js(L=>{const{internals:D}=L.nodeLookup.get(n),B=D.userNode,{x:$,y:P}=D.positionAbsolute,{width:j,height:z}=_A(B);return{node:B,x:$,y:P,width:j,height:z}},Lu);return!S||S.hidden||!gzt(S)?null:I.jsx(w,{x:_,y:A,width:C,height:O,style:S.style,selected:!!S.selected,className:c(S),color:i(S),borderRadius:d,strokeColor:s(S),strokeWidth:g,shapeRendering:b,onClick:E,id:S.id})}const q9n=H.memo(G9n);var V9n=H.memo(z9n);const W9n=200,K9n=150,Y9n=n=>!n.hidden,J9n=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?pzt(_z(n.nodeLookup,{filter:Y9n}),i):i,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},X9n="react-flow__minimap-desc";function yGt({style:n,className:i,nodeStrokeColor:s,nodeColor:c,nodeClassName:d="",nodeBorderRadius:g=5,nodeStrokeWidth:b,nodeComponent:w,bgColor:E,maskColor:S,maskStrokeColor:_,maskStrokeWidth:A,position:C="bottom-right",onClick:O,onNodeClick:L,pannable:D=!1,zoomable:B=!1,ariaLabel:$,inversePan:P,zoomStep:j=1,offsetScale:z=5}){const ee=Mu(),ne=H.useRef(null),{boundingRect:Q,viewBB:ae,rfId:he,panZoom:pe,translateExtent:ue,flowWidth:fe,flowHeight:K,ariaLabelConfig:ge}=Js(J9n,Lu),De=(n==null?void 0:n.width)??W9n,Se=(n==null?void 0:n.height)??K9n,Re=Q.width/De,Ae=Q.height/Se,xe=Math.max(Re,Ae),We=xe*De,ut=xe*Se,Be=z*xe,bt=Q.x-(We-Q.width)/2-Be,Nt=Q.y-(ut-Q.height)/2-Be,pt=We+Be*2,Kt=ut+Be*2,Et=`${X9n}-${he}`,Dt=H.useRef(0),Yt=H.useRef();Dt.current=xe,H.useEffect(()=>{if(ne.current&&pe)return Yt.current=l5n({domNode:ne.current,panZoom:pe,getTransform:()=>ee.getState().transform,getViewScale:()=>Dt.current}),()=>{var Er;(Er=Yt.current)==null||Er.destroy()}},[pe]),H.useEffect(()=>{var Er;(Er=Yt.current)==null||Er.update({translateExtent:ue,width:fe,height:K,inversePan:P,pannable:D,zoomStep:j,zoomable:B})},[D,B,P,j,ue,fe,K]);const Ln=O?Er=>{var Hi;const[Ui,Qr]=((Hi=Yt.current)==null?void 0:Hi.pointer(Er))||[0,0];O(Er,{x:Ui,y:Qr})}:void 0,Zn=L?H.useCallback((Er,Ui)=>{const Qr=ee.getState().nodeLookup.get(Ui).internals.userNode;L(Er,Qr)},[]):void 0,Yn=$??ge["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 _=="string"?_:void 0,"--xy-minimap-mask-stroke-width-props":typeof A=="number"?A*xe:void 0,"--xy-minimap-node-background-color-props":typeof c=="string"?c: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:De,height:Se,viewBox:`${bt} ${Nt} ${pt} ${Kt}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Et,ref:ne,onClick:Ln,children:[Yn&&I.jsx("title",{id:Et,children:Yn}),I.jsx(V9n,{onClick:Zn,nodeColor:c,nodeStrokeColor:s,nodeBorderRadius:g,nodeClassName:d,nodeStrokeWidth:b,nodeComponent:w}),I.jsx("path",{className:"react-flow__minimap-mask",d:`M${bt-Be},${Nt-Be}h${pt+Be*2}v${Kt+Be*2}h${-pt-Be*2}z M${ae.x},${ae.y}h${ae.width}v${ae.height}h${-ae.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}yGt.displayName="MiniMap";const Z9n=H.memo(yGt),Q9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,e8n={[xM.Line]:"right",[xM.Handle]:"bottom-right"};function t8n({nodeId:n,position:i,variant:s=xM.Handle,className:c,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:_=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:C,autoScale:O=!0,shouldResize:L,onResizeStart:D,onResize:B,onResizeEnd:$}){const P=Jzt(),j=typeof n=="string"?n:P,z=Mu(),ee=H.useRef(null),ne=s===xM.Handle,Q=Js(H.useCallback(Q9n(ne&&O),[ne,O]),Lu),ae=H.useRef(null),he=i??e8n[s];H.useEffect(()=>{if(!(!ee.current||!j))return ae.current||(ae.current=A5n({domNode:ee.current,nodeId:j,getStoreItems:()=>{const{nodeLookup:ue,transform:fe,snapGrid:K,snapToGrid:ge,nodeOrigin:De,domNode:Se}=z.getState();return{nodeLookup:ue,transform:fe,snapGrid:K,snapToGrid:ge,nodeOrigin:De,paneDomNode:Se}},onChange:(ue,fe)=>{const{triggerNodeChanges:K,nodeLookup:ge,parentLookup:De,nodeOrigin:Se}=z.getState(),Re=[],Ae={x:ue.x,y:ue.y},xe=ge.get(j);if(xe&&xe.expandParent&&xe.parentId){const We=xe.origin??Se,ut=ue.width??xe.measured.width??0,Be=ue.height??xe.measured.height??0,bt={id:xe.id,parentId:xe.parentId,rect:{width:ut,height:Be,...bzt({x:ue.x??xe.position.x,y:ue.y??xe.position.y},{width:ut,height:Be},xe.parentId,ge,We)}},Nt=B5e([bt],ge,De,Se);Re.push(...Nt),Ae.x=ue.x?Math.max(We[0]*ut,ue.x):void 0,Ae.y=ue.y?Math.max(We[1]*Be,ue.y):void 0}if(Ae.x!==void 0&&Ae.y!==void 0){const We={id:j,type:"position",position:{...Ae}};Re.push(We)}if(ue.width!==void 0&&ue.height!==void 0){const ut={id:j,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:ue.width,height:ue.height}};Re.push(ut)}for(const We of fe){const ut={...We,type:"position"};Re.push(ut)}K(Re)},onEnd:({width:ue,height:fe})=>{const K={id:j,type:"dimensions",resizing:!1,dimensions:{width:ue,height:fe}};z.getState().triggerNodeChanges([K])}})),ae.current.update({controlPosition:he,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:_},keepAspectRatio:A,resizeDirection:C,onResizeStart:D,onResize:B,onResizeEnd:$,shouldResize:L}),()=>{var ue;(ue=ae.current)==null||ue.destroy()}},[he,w,E,S,_,A,D,B,$,L]);const pe=he.split("-");return I.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...pe,s,c]),ref:ee,style:{...d,scale:Q,...b&&{[ne?"backgroundColor":"borderColor"]:b}},children:g})}H.memo(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 vGt=(...n)=>n.filter((i,s,c)=>!!i&&i.trim()!==""&&c.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 n8n=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 r8n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,c)=>c?c.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 C9t=n=>{const i=r8n(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 i8n={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 o8n=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 s8n=H.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:d="",children:g,iconNode:b,...w},E)=>H.createElement("svg",{ref:E,...i8n,width:i,height:i,stroke:n,strokeWidth:c?Number(s)*24/Number(i):s,className:vGt("lucide",d),...!g&&!o8n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,_])=>H.createElement(S,_)),...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 hi=(n,i)=>{const s=H.forwardRef(({className:c,...d},g)=>H.createElement(s8n,{ref:g,iconNode:i,className:vGt(`lucide-${n8n(C9t(n))}`,`lucide-${n}`,c),...d}));return s.displayName=C9t(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 a8n=[["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"}]],c8n=hi("align-end-horizontal",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 u8n=[["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"}]],l8n=hi("align-end-vertical",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 d8n=[["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"}]],f8n=hi("align-start-horizontal",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 h8n=[["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"}]],p8n=hi("align-start-vertical",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:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],b8n=hi("arrow-down",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 m8n=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],w8n=hi("arrow-left",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:"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"}]],v8n=hi("arrow-up-down",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:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],S8n=hi("arrow-up",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 T8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],iN=hi("ban",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:"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"}]],_8n=hi("brush-cleaning",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=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oN=hi("check",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 k8n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oae=hi("chevron-down",k8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N8n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],C8n=hi("chevron-right",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:"m18 15-6-6-6 6",key:"153udz"}]],R8n=hi("chevron-up",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 O8n=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],EGt=hi("chevrons-up-down",O8n);/** * @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=[["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"}]],kw=hi("circle-alert",D8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L8n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],SGt=hi("circle-check-big",L8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M8n=[["path",{d:"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"}]],P8n=hi("circle-play",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 j8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],F8n=hi("circle",j8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $8n=[["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"}]],B8n=hi("clipboard",$8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],H5e=hi("clock",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 H8n=[["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"}]],z8n=hi("copy-plus",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=[["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"}]],z5e=hi("copy",G8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q8n=[["path",{d:"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"}]],TGt=hi("diamond-plus",q8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V8n=[["path",{d:"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"}]],I9t=hi("download",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:"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"}]],K8n=hi("external-link",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:"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"}]],J8n=hi("file-code",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 X8n=[["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"}]],Z8n=hi("file-down",X8n);/** * @license lucide-react v0.577.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q8n=[["path",{d:"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"}]],ePn=hi("file-up",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:"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"}]],nPn=hi("folder-open-dot",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 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"}]],G5e=hi("git-branch",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 iPn=[["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"}]],oPn=hi("history",iPn);/** * @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 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"}]],AGt=hi("hourglass",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.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"}]],cPn=hi("layers",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 uPn=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ez=hi("loader-circle",uPn);/** * @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:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],dPn=hi("menu",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 fPn=[["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"}]],hPn=hi("mouse-pointer-click",fPn);/** * @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:"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"}]],gPn=hi("octagon-x",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"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],mPn=hi("panel-left-close",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 wPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],yPn=hi("panel-left-open",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 vPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],EPn=hi("panel-right-close",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=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],TPn=hi("panel-right-open",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:"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"}]],Cz=hi("play",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 _Pn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],sae=hi("plus",_Pn);/** * @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:"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"}]],kPn=hi("redo-2",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 NPn=[["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"}]],_Gt=hi("rotate-ccw",NPn);/** * @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:"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"}]],xGt=hi("save",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=[["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"}]],RPn=hi("scissors",IPn);/** * @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:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],kGt=hi("search",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 DPn=[["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"}]],LPn=hi("settings",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 MPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],NGt=hi("square",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 PPn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],R9t=hi("toggle-left",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 jPn=[["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"}]],jM=hi("trash-2",jPn);/** * @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 FPn=[["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"}]],O9t=hi("triangle-alert",FPn);/** * @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 $Pn=[["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"}]],BPn=hi("undo-2",$Pn);/** * @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 UPn=[["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"}]],HPn=hi("unplug",UPn);/** * @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 zPn=[["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"}]],GPn=hi("upload",zPn);/** * @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 qPn=[["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"}]],CGt=hi("variable",qPn);/** * @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:"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"}]],IGt=hi("wifi",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 WPn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],aae=hi("x",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 KPn=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],RGt=hi("zap",KPn),YPn=H.createContext(null),KCe={didCatch:!1,error:null};let JPn=class extends H.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=KCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var c,d;const{error:s}=this.state;s!==null&&((d=(c=this.props).onReset)==null||d.call(c,{args:i,reason:"imperative-api"}),this.setState(KCe))}componentDidCatch(i,s){var c,d;(d=(c=this.props).onError)==null||d.call(c,i,s)}componentDidUpdate(i,s){var g,b;const{didCatch:c}=this.state,{resetKeys:d}=this.props;c&&s.error!==null&&XPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(KCe))}render(){const{children:i,fallbackRender:s,FallbackComponent:c,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")w=s(E);else if(c)w=H.createElement(c,E);else if(d!==void 0)w=d;else throw b}return H.createElement(YPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function XPn(n=[],i=[]){return n.length!==i.length||n.some((s,c)=>!Object.is(s,i[c]))}function ZPn(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 QPn=n=>{switch(n){case"success":return njn;case"info":return ijn;case"warning":return rjn;case"error":return ojn;default:return null}},ejn=Array(12).fill(0),tjn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},ejn.map((s,c)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),njn=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"})),rjn=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"})),ijn=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"})),ojn=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"})),sjn=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"})),ajn=()=>{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 SDe=1;class cjn{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:c,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:SDe++,b=this.toasts.find(E=>E.id===g),w=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(g)&&this.dismissedToasts.delete(g),b?this.toasts=this.toasts.map(E=>E.id===g?(this.publish({...E,...i,id:g,title:c}),{...E,...i,id:g,dismissible:w,title:c}):E):this.addToast({title:c,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:i,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(c=>c({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 c;s.loading!==void 0&&(c=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=c!==void 0,b;const w=d.then(async S=>{if(b=["resolve",S],Hn.isValidElement(S))g=!1,this.create({id:c,type:"default",message:S});else if(ljn(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,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"error",description:C,...L})}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,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"error",description:C,...L})}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,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"success",description:C,...L})}}).catch(async S=>{if(b=["reject",S],s.error!==void 0){g=!1;const _=typeof s.error=="function"?await s.error(S):s.error,A=typeof s.description=="function"?await s.description(S):s.description,O=typeof _=="object"&&!Hn.isValidElement(_)?_:{message:_};this.create({id:c,type:"error",description:A,...O})}}).finally(()=>{g&&(this.dismiss(c),c=void 0),s.finally==null||s.finally.call(s)}),E=()=>new Promise((S,_)=>w.then(()=>b[0]==="reject"?_(b[1]):S(b[1])).catch(_));return typeof c!="string"&&typeof c!="number"?{unwrap:E}:Object.assign(c,{unwrap:E})},this.custom=(i,s)=>{const c=(s==null?void 0:s.id)||SDe++;return this.create({jsx:i(c),id:c,...s}),c},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const rb=new cjn,ujn=(n,i)=>{const s=(i==null?void 0:i.id)||SDe++;return rb.addToast({title:n,...i,id:s}),s},ljn=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",djn=ujn,fjn=()=>rb.toasts,hjn=()=>rb.getActiveToasts(),bw=Object.assign(djn,{success:rb.success,info:rb.info,warning:rb.warning,error:rb.error,custom:rb.custom,message:rb.message,promise:rb.promise,dismiss:rb.dismiss,loading:rb.loading},{getHistory:fjn,getToasts:hjn});ZPn("[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 Tie(n){return n.label!==void 0}const pjn=3,gjn="24px",bjn="16px",D9t=4e3,mjn=356,wjn=14,yjn=45,vjn=200;function x2(...n){return n.filter(Boolean).join(" ")}function Ejn(n){const[i,s]=n.split("-"),c=[];return i&&c.push(i),s&&c.push(s),c}const Sjn=n=>{var i,s,c,d,g,b,w,E,S;const{invert:_,toast:A,unstyled:C,interacting:O,setHeights:L,visibleToasts:D,heights:B,index:$,toasts:P,expanded:j,removeToast:z,defaultRichColors:ee,closeButton:ne,style:Q,cancelButtonStyle:ae,actionButtonStyle:he,className:pe="",descriptionClassName:ue="",duration:fe,position:K,gap:ge,expandByDefault:De,classNames:Se,icons:Re,closeButtonAriaLabel:Ae="Close toast"}=n,[xe,We]=Hn.useState(null),[ut,Be]=Hn.useState(null),[bt,Nt]=Hn.useState(!1),[pt,Kt]=Hn.useState(!1),[Et,Dt]=Hn.useState(!1),[Yt,Ln]=Hn.useState(!1),[Zn,Yn]=Hn.useState(!1),[Er,Ui]=Hn.useState(0),[Qr,Hi]=Hn.useState(0),ai=Hn.useRef(A.duration||fe||D9t),ju=Hn.useRef(null),Xs=Hn.useRef(null),ls=$===0,es=$+1<=D,Ca=A.type,Ci=A.dismissible!==!1,mb=A.className||"",Jg=A.descriptionClassName||"",Wh=Hn.useMemo(()=>B.findIndex(go=>go.toastId===A.id)||0,[B,A.id]),wb=Hn.useMemo(()=>{var go;return(go=A.closeButton)!=null?go:ne},[A.closeButton,ne]),Wp=Hn.useMemo(()=>A.duration||fe||D9t,[A.duration,fe]),Lw=Hn.useRef(0),Kh=Hn.useRef(0),X2=Hn.useRef(0),Xg=Hn.useRef(null),[Kp,Zg]=K.split("-"),CN=Hn.useMemo(()=>B.reduce((go,Fu,Fl)=>Fl>=Wh?go:go+Fu.height,0),[B,Wh]),IN=ajn(),GR=A.invert||_,kA=Ca==="loading";Kh.current=Hn.useMemo(()=>Wh*ge+CN,[Wh,CN]),Hn.useEffect(()=>{ai.current=Wp},[Wp]),Hn.useEffect(()=>{Nt(!0)},[]),Hn.useEffect(()=>{const go=Xs.current;if(go){const Fu=go.getBoundingClientRect().height;return Hi(Fu),L(Fl=>[{toastId:A.id,height:Fu,position:A.position},...Fl]),()=>L(Fl=>Fl.filter(Af=>Af.toastId!==A.id))}},[L,A.id]),Hn.useLayoutEffect(()=>{if(!bt)return;const go=Xs.current,Fu=go.style.height;go.style.height="auto";const Fl=go.getBoundingClientRect().height;go.style.height=Fu,Hi(Fl),L(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,L,A.id,A.jsx,A.action,A.cancel]);const yb=Hn.useCallback(()=>{Kt(!0),Ui(Kh.current),L(go=>go.filter(Fu=>Fu.toastId!==A.id)),setTimeout(()=>{z(A)},vjn)},[A,z,L,Kh]);Hn.useEffect(()=>{if(A.promise&&Ca==="loading"||A.duration===1/0||A.type==="loading")return;let go;return j||O||IN?(()=>{if(X2.current{ai.current!==1/0&&(Lw.current=new Date().getTime(),go=setTimeout(()=>{A.onAutoClose==null||A.onAutoClose.call(A,A),yb()},ai.current))})(),()=>clearTimeout(go)},[j,O,A,Ca,IN,yb]),Hn.useEffect(()=>{A.delete&&(yb(),A.onDismiss==null||A.onDismiss.call(A,A))},[yb,A.delete]);function qR(){var go;if(Re!=null&&Re.loading){var Fu;return Hn.createElement("div",{className:x2(Se==null?void 0:Se.loader,A==null||(Fu=A.classNames)==null?void 0:Fu.loader,"sonner-loader"),"data-visible":Ca==="loading"},Re.loading)}return Hn.createElement(tjn,{className:x2(Se==null?void 0:Se.loader,A==null||(go=A.classNames)==null?void 0:go.loader),visible:Ca==="loading"})}const VR=A.icon||(Re==null?void 0:Re[Ca])||QPn(Ca);var RN,ON;return Hn.createElement("li",{tabIndex:0,ref:Xs,className:x2(pe,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":pt,"data-visible":es,"data-y-position":Kp,"data-x-position":Zg,"data-index":$,"data-front":ls,"data-swiping":Et,"data-dismissible":Ci,"data-type":Ca,"data-invert":GR,"data-swipe-out":Yt,"data-swipe-direction":ut,"data-expanded":!!(j||De&&bt),"data-testid":A.testId,style:{"--index":$,"--toasts-before":$,"--z-index":P.length-$,"--offset":`${pt?Er:Kh.current}px`,"--initial-height":De?"auto":`${Qr}px`,...Q,...A.style},onDragEnd:()=>{Dt(!1),We(null),Xg.current=null},onPointerDown:go=>{go.button!==2&&(kA||!Ci||(ju.current=new Date,Ui(Kh.current),go.target.setPointerCapture(go.pointerId),go.target.tagName!=="BUTTON"&&(Dt(!0),Xg.current={x:go.clientX,y:go.clientY})))},onPointerUp:()=>{var go,Fu,Fl;if(Yt||!Ci)return;Xg.current=null;const Af=Number(((go=Xs.current)==null?void 0:go.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Z2=Number(((Fu=Xs.current)==null?void 0:Fu.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pl=new Date().getTime()-((Fl=ju.current)==null?void 0:Fl.getTime()),sh=xe==="x"?Af:Z2,Vm=Math.abs(sh)/pl;if(Math.abs(sh)>=yjn||Vm>.11){Ui(Kh.current),A.onDismiss==null||A.onDismiss.call(A,A),Be(xe==="x"?Af>0?"right":"left":Z2>0?"down":"up"),yb(),Ln(!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),Dt(!1),We(null)},onPointerMove:go=>{var Fu,Fl,Af;if(!Xg.current||!Ci||((Fu=window.getSelection())==null?void 0:Fu.toString().length)>0)return;const pl=go.clientY-Xg.current.y,sh=go.clientX-Xg.current.x;var Vm;const ah=(Vm=n.swipeDirections)!=null?Vm:Ejn(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:x2(Se==null?void 0:Se.closeButton,A==null||(c=A.classNames)==null?void 0:c.closeButton)},(ON=Re==null?void 0:Re.close)!=null?ON:sjn):null,(Ca||A.icon||A.promise)&&A.icon!==null&&((Re==null?void 0:Re[Ca])!==null||A.icon)?Hn.createElement("div",{"data-icon":"",className:x2(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:x2(Se==null?void 0:Se.content,A==null||(g=A.classNames)==null?void 0:g.content)},Hn.createElement("div",{"data-title":"",className:x2(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:x2(ue,Jg,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&&Tie(A.cancel)?Hn.createElement("button",{"data-button":!0,"data-cancel":!0,style:A.cancelButtonStyle||ae,onClick:go=>{Tie(A.cancel)&&Ci&&(A.cancel.onClick==null||A.cancel.onClick.call(A.cancel,go),yb())},className:x2(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&&Tie(A.action)?Hn.createElement("button",{"data-button":!0,"data-action":!0,style:A.actionButtonStyle||he,onClick:go=>{Tie(A.action)&&(A.action.onClick==null||A.action.onClick.call(A.action,go),!go.defaultPrevented&&yb())},className:x2(Se==null?void 0:Se.actionButton,A==null||(S=A.classNames)==null?void 0:S.actionButton)},A.action.label):null)};function L9t(){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 Tjn(n,i){const s={};return[n,i].forEach((c,d)=>{const g=d===1,b=g?"--mobile-offset":"--offset",w=g?bjn:gjn;function E(S){["top","right","bottom","left"].forEach(_=>{s[`${b}-${_}`]=typeof S=="number"?`${S}px`:S})}typeof c=="number"||typeof c=="string"?E(c):typeof c=="object"?["top","right","bottom","left"].forEach(S=>{c[S]===void 0?s[`${b}-${S}`]=w:s[`${b}-${S}`]=typeof c[S]=="number"?`${c[S]}px`:c[S]}):E(w)}),s}const Ajn=Hn.forwardRef(function(i,s){const{id:c,invert:d,position:g="bottom-right",hotkey:b=["altKey","KeyT"],expand:w,closeButton:E,className:S,offset:_,mobileOffset:A,theme:C="light",richColors:O,duration:L,style:D,visibleToasts:B=pjn,toastOptions:$,dir:P=L9t(),gap:j=wjn,icons:z,containerAriaLabel:ee="Notifications"}=i,[ne,Q]=Hn.useState([]),ae=Hn.useMemo(()=>c?ne.filter(bt=>bt.toasterId===c):ne.filter(bt=>!bt.toasterId),[ne,c]),he=Hn.useMemo(()=>Array.from(new Set([g].concat(ae.filter(bt=>bt.position).map(bt=>bt.position)))),[ae,g]),[pe,ue]=Hn.useState([]),[fe,K]=Hn.useState(!1),[ge,De]=Hn.useState(!1),[Se,Re]=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),ut=Hn.useRef(!1),Be=Hn.useCallback(bt=>{Q(Nt=>{var pt;return(pt=Nt.find(Kt=>Kt.id===bt.id))!=null&&pt.delete||rb.dismiss(bt.id),Nt.filter(({id:Kt})=>Kt!==bt.id)})},[]);return Hn.useEffect(()=>rb.subscribe(bt=>{if(bt.dismiss){requestAnimationFrame(()=>{Q(Nt=>Nt.map(pt=>pt.id===bt.id?{...pt,delete:!0}:pt))});return}setTimeout(()=>{yHt.flushSync(()=>{Q(Nt=>{const pt=Nt.findIndex(Kt=>Kt.id===bt.id);return pt!==-1?[...Nt.slice(0,pt),{...Nt[pt],...bt},...Nt.slice(pt+1)]:[bt,...Nt]})})})}),[ne]),Hn.useEffect(()=>{if(C!=="system"){Re(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Re("dark"):Re("light")),typeof window>"u")return;const bt=window.matchMedia("(prefers-color-scheme: dark)");try{bt.addEventListener("change",({matches:Nt})=>{Re(Nt?"dark":"light")})}catch{bt.addListener(({matches:pt})=>{try{Re(pt?"dark":"light")}catch(Kt){console.error(Kt)}})}},[C]),Hn.useEffect(()=>{ne.length<=1&&K(!1)},[ne]),Hn.useEffect(()=>{const bt=Nt=>{var pt;if(b.every(Dt=>Nt[Dt]||Nt.code===Dt)){var Et;K(!0),(Et=Ae.current)==null||Et.focus()}Nt.code==="Escape"&&(document.activeElement===Ae.current||(pt=Ae.current)!=null&&pt.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,ut.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,Nt)=>{var pt;const[Kt,Et]=bt.split("-");return ae.length?Hn.createElement("ol",{key:bt,dir:P==="auto"?L9t():P,tabIndex:-1,ref:Ae,className:S,"data-sonner-toaster":!0,"data-sonner-theme":Se,"data-y-position":Kt,"data-x-position":Et,style:{"--front-toast-height":`${((pt=pe[0])==null?void 0:pt.height)||0}px`,"--width":`${mjn}px`,"--gap":`${j}px`,...D,...Tjn(_,A)},onBlur:Dt=>{ut.current&&!Dt.currentTarget.contains(Dt.relatedTarget)&&(ut.current=!1,We.current&&(We.current.focus({preventScroll:!0}),We.current=null))},onFocus:Dt=>{Dt.target instanceof HTMLElement&&Dt.target.dataset.dismissible==="false"||ut.current||(ut.current=!0,We.current=Dt.relatedTarget)},onMouseEnter:()=>K(!0),onMouseMove:()=>K(!0),onMouseLeave:()=>{ge||K(!1)},onDragEnd:()=>K(!1),onPointerDown:Dt=>{Dt.target instanceof HTMLElement&&Dt.target.dataset.dismissible==="false"||De(!0)},onPointerUp:()=>De(!1)},ae.filter(Dt=>!Dt.position&&Nt===0||Dt.position===bt).map((Dt,Yt)=>{var Ln,Zn;return Hn.createElement(Sjn,{key:Dt.id,icons:z,index:Yt,toast:Dt,defaultRichColors:O,duration:(Ln=$==null?void 0:$.duration)!=null?Ln:L,className:$==null?void 0:$.className,descriptionClassName:$==null?void 0:$.descriptionClassName,invert:d,visibleToasts:B,closeButton:(Zn=$==null?void 0:$.closeButton)!=null?Zn:E,interacting:ge,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:Be,toasts:ae.filter(Yn=>Yn.position==Dt.position),heights:pe.filter(Yn=>Yn.position==Dt.position),setHeights:ue,expandByDefault:w,gap:j,expanded:fe,swipeDirections:i.swipeDirections})})):null}))});var M9t=1,_jn=.9,xjn=.8,kjn=.17,YCe=.1,JCe=.999,Njn=.9999,Cjn=.99,Ijn=/[\\\/_+.#"@\[\(\{&]/,Rjn=/[\\\/_+.#"@\[\(\{&]/g,Ojn=/[\s-]/,OGt=/[\s-]/g;function TDe(n,i,s,c,d,g,b){if(g===i.length)return d===n.length?M9t:Cjn;var w=`${d},${g}`;if(b[w]!==void 0)return b[w];for(var E=c.charAt(g),S=s.indexOf(E,d),_=0,A,C,O,L;S>=0;)A=TDe(n,i,s,c,S+1,g+1,b),A>_&&(S===d?A*=M9t:Ijn.test(n.charAt(S-1))?(A*=xjn,O=n.slice(d,S-1).match(Rjn),O&&d>0&&(A*=Math.pow(JCe,O.length))):Ojn.test(n.charAt(S-1))?(A*=_jn,L=n.slice(d,S-1).match(OGt),L&&d>0&&(A*=Math.pow(JCe,L.length))):(A*=kjn,d>0&&(A*=Math.pow(JCe,S-d))),n.charAt(S)!==i.charAt(g)&&(A*=Njn)),(AA&&(A=C*YCe)),A>_&&(_=A),S=s.indexOf(E,S+1);return b[w]=_,_}function P9t(n){return n.toLowerCase().replace(OGt," ")}function Djn(n,i,s){return n=s&&s.length>0?`${n+" "+s.join(" ")}`:n,TDe(n,i,P9t(n),P9t(i),0,0,{})}function Dr(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 j9t(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function zg(...n){return i=>{let s=!1;const c=n.map(d=>{const g=j9t(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})};c.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[c,d]}function Nw(n,i=[]){let s=[];function c(g,b){const w=H.createContext(b),E=s.length;s=[...s,b];const S=A=>{var $;const{scope:C,children:O,...L}=A,D=(($=C==null?void 0:C[n])==null?void 0:$[E])||w,B=H.useMemo(()=>L,Object.values(L));return I.jsx(D.Provider,{value:B,children:O})};S.displayName=g+"Provider";function _(A,C){var D;const O=((D=C==null?void 0:C[n])==null?void 0:D[E])||w,L=H.useContext(O);if(L)return L;if(b!==void 0)return b;throw new Error(`\`${A}\` must be used within \`${g}\``)}return[S,_]}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,[c,Mjn(d,...i)]}function Mjn(...n){const i=n[0];if(n.length===1)return i;const s=()=>{const c=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(g){const b=c.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 Up=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},Pjn=LLe[" useId ".trim().toString()]||(()=>{}),jjn=0;function Bh(n){const[i,s]=H.useState(Pjn());return Up(()=>{s(c=>c??String(jjn++))},[n]),i?`radix-${i}`:""}var Fjn=LLe[" useInsertionEffect ".trim().toString()]||Up;function G2({prop:n,defaultProp:i,onChange:s=()=>{},caller:c}){const[d,g,b]=$jn({defaultProp:i,onChange:s}),w=n!==void 0,E=w?n:d;{const _=H.useRef(n!==void 0);H.useEffect(()=>{const A=_.current;A!==w&&console.warn(`${c} 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.`),_.current=w},[w,c])}const S=H.useCallback(_=>{var A;if(w){const C=Bjn(_)?_(n):_;C!==n&&((A=b.current)==null||A.call(b,C))}else g(_)},[w,n,g,b]);return[E,S]}function $jn({defaultProp:n,onChange:i}){const[s,c]=H.useState(n),d=H.useRef(s),g=H.useRef(i);return Fjn(()=>{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,c,g]}function Bjn(n){return typeof n=="function"}function Ujn(n){const i=Hjn(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Gjn);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Hjn(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Vjn(d),w=qjn(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var zjn=Symbol("radix.slottable");function Gjn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===zjn}function qjn(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Vjn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 Wjn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],no=Wjn.reduce((n,i)=>{const s=Ujn(`Primitive.${i}`),c=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 c.displayName=`Primitive.${i}`,{...n,[i]:c}},{});function DGt(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 c;return(c=i.current)==null?void 0:c.call(i,...s)},[])}function Kjn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n);H.useEffect(()=>{const c=d=>{d.key==="Escape"&&s(d)};return i.addEventListener("keydown",c,{capture:!0}),()=>i.removeEventListener("keydown",c,{capture:!0})},[s,i])}var Yjn="DismissableLayer",ADe="dismissableLayer.update",Jjn="dismissableLayer.pointerDownOutside",Xjn="dismissableLayer.focusOutside",F9t,LGt=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Iz=H.forwardRef((n,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...E}=n,S=H.useContext(LGt),[_,A]=H.useState(null),C=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,O]=H.useState({}),L=ps(i,Q=>A(Q)),D=Array.from(S.layers),[B]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),$=D.indexOf(B),P=_?D.indexOf(_):-1,j=S.layersWithOutsidePointerEventsDisabled.size>0,z=P>=$,ee=eFn(Q=>{const ae=Q.target,he=[...S.branches].some(pe=>pe.contains(ae));!z||he||(d==null||d(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C),ne=tFn(Q=>{const ae=Q.target;[...S.branches].some(pe=>pe.contains(ae))||(g==null||g(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C);return Kjn(Q=>{P===S.layers.size-1&&(c==null||c(Q),!Q.defaultPrevented&&w&&(Q.preventDefault(),w()))},C),H.useEffect(()=>{if(_)return s&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(F9t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(_)),S.layers.add(_),$9t(),()=>{s&&S.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=F9t)}},[_,C,s,S]),H.useEffect(()=>()=>{_&&(S.layers.delete(_),S.layersWithOutsidePointerEventsDisabled.delete(_),$9t())},[_,S]),H.useEffect(()=>{const Q=()=>O({});return document.addEventListener(ADe,Q),()=>document.removeEventListener(ADe,Q)},[]),I.jsx(no.div,{...E,ref:L,style:{pointerEvents:j?z?"auto":"none":void 0,...n.style},onFocusCapture:Dr(n.onFocusCapture,ne.onFocusCapture),onBlurCapture:Dr(n.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:Dr(n.onPointerDownCapture,ee.onPointerDownCapture)})});Iz.displayName=Yjn;var Zjn="DismissableLayerBranch",Qjn=H.forwardRef((n,i)=>{const s=H.useContext(LGt),c=H.useRef(null),d=ps(i,c);return H.useEffect(()=>{const g=c.current;if(g)return s.branches.add(g),()=>{s.branches.delete(g)}},[s.branches]),I.jsx(no.div,{...n,ref:d})});Qjn.displayName=Zjn;function eFn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),c=H.useRef(!1),d=H.useRef(()=>{});return H.useEffect(()=>{const g=w=>{if(w.target&&!c.current){let E=function(){MGt(Jjn,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);c.current=!1},b=window.setTimeout(()=>{i.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(b),i.removeEventListener("pointerdown",g),i.removeEventListener("click",d.current)}},[i,s]),{onPointerDownCapture:()=>c.current=!0}}function tFn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),c=H.useRef(!1);return H.useEffect(()=>{const d=g=>{g.target&&!c.current&&MGt(Xjn,s,{originalEvent:g},{discrete:!1})};return i.addEventListener("focusin",d),()=>i.removeEventListener("focusin",d)},[i,s]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function $9t(){const n=new CustomEvent(ADe);document.dispatchEvent(n)}function MGt(n,i,s,{discrete:c}){const d=s.originalEvent.target,g=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});i&&d.addEventListener(n,i,{once:!0}),c?DGt(d,g):d.dispatchEvent(g)}var XCe="focusScope.autoFocusOnMount",ZCe="focusScope.autoFocusOnUnmount",B9t={bubbles:!1,cancelable:!0},nFn="FocusScope",Rz=H.forwardRef((n,i)=>{const{loop:s=!1,trapped:c=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...b}=n,[w,E]=H.useState(null),S=q2(d),_=q2(g),A=H.useRef(null),C=ps(i,D=>E(D)),O=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(c){let D=function(j){if(O.paused||!w)return;const z=j.target;w.contains(z)?A.current=z:Dk(A.current,{select:!0})},B=function(j){if(O.paused||!w)return;const z=j.relatedTarget;z!==null&&(w.contains(z)||Dk(A.current,{select:!0}))},$=function(j){if(document.activeElement===document.body)for(const ee of j)ee.removedNodes.length>0&&Dk(w)};document.addEventListener("focusin",D),document.addEventListener("focusout",B);const P=new MutationObserver($);return w&&P.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",B),P.disconnect()}}},[c,w,O.paused]),H.useEffect(()=>{if(w){H9t.add(O);const D=document.activeElement;if(!w.contains(D)){const $=new CustomEvent(XCe,B9t);w.addEventListener(XCe,S),w.dispatchEvent($),$.defaultPrevented||(rFn(cFn(PGt(w)),{select:!0}),document.activeElement===D&&Dk(w))}return()=>{w.removeEventListener(XCe,S),setTimeout(()=>{const $=new CustomEvent(ZCe,B9t);w.addEventListener(ZCe,_),w.dispatchEvent($),$.defaultPrevented||Dk(D??document.body,{select:!0}),w.removeEventListener(ZCe,_),H9t.remove(O)},0)}}},[w,S,_,O]);const L=H.useCallback(D=>{if(!s&&!c||O.paused)return;const B=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,$=document.activeElement;if(B&&$){const P=D.currentTarget,[j,z]=iFn(P);j&&z?!D.shiftKey&&$===z?(D.preventDefault(),s&&Dk(j,{select:!0})):D.shiftKey&&$===j&&(D.preventDefault(),s&&Dk(z,{select:!0})):$===P&&D.preventDefault()}},[s,c,O.paused]);return I.jsx(no.div,{tabIndex:-1,...b,ref:C,onKeyDown:L})});Rz.displayName=nFn;function rFn(n,{select:i=!1}={}){const s=document.activeElement;for(const c of n)if(Dk(c,{select:i}),document.activeElement!==s)return}function iFn(n){const i=PGt(n),s=U9t(i,n),c=U9t(i.reverse(),n);return[s,c]}function PGt(n){const i=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function U9t(n,i){for(const s of n)if(!oFn(s,{upTo:i}))return s}function oFn(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 sFn(n){return n instanceof HTMLInputElement&&"select"in n}function Dk(n,{select:i=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&sFn(n)&&i&&n.select()}}var H9t=aFn();function aFn(){let n=[];return{add(i){const s=n[0];i!==s&&(s==null||s.pause()),n=z9t(n,i),n.unshift(i)},remove(i){var s;n=z9t(n,i),(s=n[0])==null||s.resume()}}}function z9t(n,i){const s=[...n],c=s.indexOf(i);return c!==-1&&s.splice(c,1),s}function cFn(n){return n.filter(i=>i.tagName!=="A")}var uFn="Portal",Oz=H.forwardRef((n,i)=>{var w;const{container:s,...c}=n,[d,g]=H.useState(!1);Up(()=>g(!0),[]);const b=s||d&&((w=globalThis==null?void 0:globalThis.document)==null?void 0:w.body);return b?yHt.createPortal(I.jsx(no.div,{...c,ref:i}),b):null});Oz.displayName=uFn;function lFn(n,i){return H.useReducer((s,c)=>i[s][c]??s,n)}var Cw=n=>{const{present:i,children:s}=n,c=dFn(i),d=typeof s=="function"?s({present:c.isPresent}):H.Children.only(s),g=ps(c.ref,fFn(d));return typeof s=="function"||c.isPresent?H.cloneElement(d,{ref:g}):null};Cw.displayName="Presence";function dFn(n){const[i,s]=H.useState(),c=H.useRef(null),d=H.useRef(n),g=H.useRef("none"),b=n?"mounted":"unmounted",[w,E]=lFn(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H.useEffect(()=>{const S=Aie(c.current);g.current=w==="mounted"?S:"none"},[w]),Up(()=>{const S=c.current,_=d.current;if(_!==n){const C=g.current,O=Aie(S);n?E("MOUNT"):O==="none"||(S==null?void 0:S.display)==="none"?E("UNMOUNT"):E(_&&C!==O?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),Up(()=>{if(i){let S;const _=i.ownerDocument.defaultView??window,A=O=>{const D=Aie(c.current).includes(CSS.escape(O.animationName));if(O.target===i&&D&&(E("ANIMATION_END"),!d.current)){const B=i.style.animationFillMode;i.style.animationFillMode="forwards",S=_.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=B)})}},C=O=>{O.target===i&&(g.current=Aie(c.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",A),i.addEventListener("animationend",A),()=>{_.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=>{c.current=S?getComputedStyle(S):null,s(S)},[])}}function Aie(n){return(n==null?void 0:n.animationName)||"none"}function fFn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 QCe=0;function cae(){H.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??G9t()),document.body.insertAdjacentElement("beforeend",n[1]??G9t()),QCe++,()=>{QCe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),QCe--}},[])}function G9t(){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,c=1,d=arguments.length;c"u")return CFn;var i=IFn(n),s=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-s+i[2]-i[0])}},OFn=BGt(),iM="data-scroll-locked",DFn=function(n,i,s,c){var d=n.left,g=n.top,b=n.right,w=n.gap;return s===void 0&&(s="margin"),` .`.concat(pFn,` { overflow: hidden `).concat(c,`; padding-right: `).concat(w,"px ").concat(c,`; } body[`).concat(iM,`] { overflow: hidden `).concat(c,`; overscroll-behavior: contain; `).concat([i&&"position: relative ".concat(c,";"),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(c,`; `),s==="padding"&&"padding-right: ".concat(w,"px ").concat(c,";")].filter(Boolean).join(""),` } .`).concat(soe,` { right: `).concat(w,"px ").concat(c,`; } .`).concat(aoe,` { margin-right: `).concat(w,"px ").concat(c,`; } .`).concat(soe," .").concat(soe,` { right: 0 `).concat(c,`; } .`).concat(aoe," .").concat(aoe,` { margin-right: 0 `).concat(c,`; } body[`).concat(iM,`] { `).concat(gFn,": ").concat(w,`px; } `)},V9t=function(){var n=parseInt(document.body.getAttribute(iM)||"0",10);return isFinite(n)?n:0},LFn=function(){H.useEffect(function(){return document.body.setAttribute(iM,(V9t()+1).toString()),function(){var n=V9t()-1;n<=0?document.body.removeAttribute(iM):document.body.setAttribute(iM,n.toString())}},[])},MFn=function(n){var i=n.noRelative,s=n.noImportant,c=n.gapMode,d=c===void 0?"margin":c;LFn();var g=H.useMemo(function(){return RFn(d)},[d]);return H.createElement(OFn,{styles:DFn(g,!i,d,s?"":"!important")})},_De=!1;if(typeof window<"u")try{var _ie=Object.defineProperty({},"passive",{get:function(){return _De=!0,!0}});window.addEventListener("test",_ie,_ie),window.removeEventListener("test",_ie,_ie)}catch{_De=!1}var w5=_De?{passive:!1}:!1,PFn=function(n){return n.tagName==="TEXTAREA"},UGt=function(n,i){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!PFn(n)&&s[i]==="visible")},jFn=function(n){return UGt(n,"overflowY")},FFn=function(n){return UGt(n,"overflowX")},W9t=function(n,i){var s=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=HGt(n,c);if(d){var g=zGt(n,c),b=g[1],w=g[2];if(b>w)return!0}c=c.parentNode}while(c&&c!==s.body);return!1},$Fn=function(n){var i=n.scrollTop,s=n.scrollHeight,c=n.clientHeight;return[i,s,c]},BFn=function(n){var i=n.scrollLeft,s=n.scrollWidth,c=n.clientWidth;return[i,s,c]},HGt=function(n,i){return n==="v"?jFn(i):FFn(i)},zGt=function(n,i){return n==="v"?$Fn(i):BFn(i)},UFn=function(n,i){return n==="h"&&i==="rtl"?-1:1},HFn=function(n,i,s,c,d){var g=UFn(n,window.getComputedStyle(i).direction),b=g*c,w=s.target,E=i.contains(w),S=!1,_=b>0,A=0,C=0;do{if(!w)break;var O=zGt(n,w),L=O[0],D=O[1],B=O[2],$=D-B-g*L;(L||$)&&HGt(n,w)&&(A+=$,C+=L);var P=w.parentNode;w=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(_&&Math.abs(A)<1||!_&&Math.abs(C)<1)&&(S=!0),S},xie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},K9t=function(n){return[n.deltaX,n.deltaY]},Y9t=function(n){return n&&"current"in n?n.current:n},zFn=function(n,i){return n[0]===i[0]&&n[1]===i[1]},GFn=function(n){return` .block-interactivity-`.concat(n,` {pointer-events: none;} .allow-interactivity-`).concat(n,` {pointer-events: all;} `)},qFn=0,y5=[];function VFn(n){var i=H.useRef([]),s=H.useRef([0,0]),c=H.useRef(),d=H.useState(qFn++)[0],g=H.useState(BGt)[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 D=hFn([n.lockRef.current],(n.shards||[]).map(Y9t),!0).filter(Boolean);return D.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),D.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=H.useCallback(function(D,B){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!b.current.allowPinchZoom;var $=xie(D),P=s.current,j="deltaX"in D?D.deltaX:P[0]-$[0],z="deltaY"in D?D.deltaY:P[1]-$[1],ee,ne=D.target,Q=Math.abs(j)>Math.abs(z)?"h":"v";if("touches"in D&&Q==="h"&&ne.type==="range")return!1;var ae=window.getSelection(),he=ae&&ae.anchorNode,pe=he?he===ne||he.contains(ne):!1;if(pe)return!1;var ue=W9t(Q,ne);if(!ue)return!0;if(ue?ee=Q:(ee=Q==="v"?"h":"v",ue=W9t(Q,ne)),!ue)return!1;if(!c.current&&"changedTouches"in D&&(j||z)&&(c.current=ee),!ee)return!0;var fe=c.current||ee;return HFn(fe,B,D,fe==="h"?j:z)},[]),E=H.useCallback(function(D){var B=D;if(!(!y5.length||y5[y5.length-1]!==g)){var $="deltaY"in B?K9t(B):xie(B),P=i.current.filter(function(ee){return ee.name===B.type&&(ee.target===B.target||B.target===ee.shadowParent)&&zFn(ee.delta,$)})[0];if(P&&P.should){B.cancelable&&B.preventDefault();return}if(!P){var j=(b.current.shards||[]).map(Y9t).filter(Boolean).filter(function(ee){return ee.contains(B.target)}),z=j.length>0?w(B,j[0]):!b.current.noIsolation;z&&B.cancelable&&B.preventDefault()}}},[]),S=H.useCallback(function(D,B,$,P){var j={name:D,delta:B,target:$,should:P,shadowParent:WFn($)};i.current.push(j),setTimeout(function(){i.current=i.current.filter(function(z){return z!==j})},1)},[]),_=H.useCallback(function(D){s.current=xie(D),c.current=void 0},[]),A=H.useCallback(function(D){S(D.type,K9t(D),D.target,w(D,n.lockRef.current))},[]),C=H.useCallback(function(D){S(D.type,xie(D),D.target,w(D,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",_,w5),function(){y5=y5.filter(function(D){return D!==g}),document.removeEventListener("wheel",E,w5),document.removeEventListener("touchmove",E,w5),document.removeEventListener("touchstart",_,w5)}},[]);var O=n.removeScrollBar,L=n.inert;return H.createElement(H.Fragment,null,L?H.createElement(g,{styles:GFn(d)}):null,O?H.createElement(MFn,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function WFn(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const KFn=SFn($Gt,VFn);var Dz=H.forwardRef(function(n,i){return H.createElement(uae,O2({},n,{ref:i,sideCar:KFn}))});Dz.classNames=uae.classNames;var YFn=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},v5=new WeakMap,kie=new WeakMap,Nie={},rIe=0,GGt=function(n){return n&&(n.host||GGt(n.parentNode))},JFn=function(n,i){return i.map(function(s){if(n.contains(s))return s;var c=GGt(s);return c&&n.contains(c)?c:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},XFn=function(n,i,s,c){var d=JFn(i,Array.isArray(n)?n:[n]);Nie[s]||(Nie[s]=new WeakMap);var g=Nie[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 _=function(A){!A||E.has(A)||Array.prototype.forEach.call(A.children,function(C){if(w.has(C))_(C);else try{var O=C.getAttribute(c),L=O!==null&&O!=="false",D=(v5.get(C)||0)+1,B=(g.get(C)||0)+1;v5.set(C,D),g.set(C,B),b.push(C),D===1&&L&&kie.set(C,!0),B===1&&C.setAttribute(s,"true"),L||C.setAttribute(c,"true")}catch($){console.error("aria-hidden: cannot operate on ",C,$)}})};return _(i),w.clear(),rIe++,function(){b.forEach(function(A){var C=v5.get(A)-1,O=g.get(A)-1;v5.set(A,C),g.set(A,O),C||(kie.has(A)||A.removeAttribute(c),kie.delete(A)),O||A.removeAttribute(s)}),rIe--,rIe||(v5=new WeakMap,v5=new WeakMap,kie=new WeakMap,Nie={})}},lae=function(n,i,s){s===void 0&&(s="data-aria-hidden");var c=Array.from(Array.isArray(n)?n:[n]),d=YFn(n);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),XFn(c,d,s,"aria-hidden")):function(){return null}};function ZFn(n){const i=QFn(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(t7n);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function QFn(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=r7n(d),w=n7n(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var e7n=Symbol("radix.slottable");function t7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===e7n}function n7n(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function r7n(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 dae="Dialog",[qGt]=Nw(dae),[i7n,Hv]=qGt(dae),VGt=n=>{const{__scopeDialog:i,children:s,open:c,defaultOpen:d,onOpenChange:g,modal:b=!0}=n,w=H.useRef(null),E=H.useRef(null),[S,_]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:dae});return I.jsx(i7n,{scope:i,triggerRef:w,contentRef:E,contentId:Bh(),titleId:Bh(),descriptionId:Bh(),open:S,onOpenChange:_,onOpenToggle:H.useCallback(()=>_(A=>!A),[_]),modal:b,children:s})};VGt.displayName=dae;var WGt="DialogTrigger",o7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Hv(WGt,s),g=ps(i,d.triggerRef);return I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":W5e(d.open),...c,ref:g,onClick:Dr(n.onClick,d.onOpenToggle)})});o7n.displayName=WGt;var q5e="DialogPortal",[s7n,KGt]=qGt(q5e,{forceMount:void 0}),YGt=n=>{const{__scopeDialog:i,forceMount:s,children:c,container:d}=n,g=Hv(q5e,i);return I.jsx(s7n,{scope:i,forceMount:s,children:H.Children.map(c,b=>I.jsx(Cw,{present:s||g.open,children:I.jsx(Oz,{asChild:!0,container:d,children:b})}))})};YGt.displayName=q5e;var Qoe="DialogOverlay",JGt=H.forwardRef((n,i)=>{const s=KGt(Qoe,n.__scopeDialog),{forceMount:c=s.forceMount,...d}=n,g=Hv(Qoe,n.__scopeDialog);return g.modal?I.jsx(Cw,{present:c||g.open,children:I.jsx(c7n,{...d,ref:i})}):null});JGt.displayName=Qoe;var a7n=ZFn("DialogOverlay.RemoveScroll"),c7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Hv(Qoe,s);return I.jsx(Dz,{as:a7n,allowPinchZoom:!0,shards:[d.contentRef],children:I.jsx(no.div,{"data-state":W5e(d.open),...c,ref:i,style:{pointerEvents:"auto",...c.style}})})}),bR="DialogContent",XGt=H.forwardRef((n,i)=>{const s=KGt(bR,n.__scopeDialog),{forceMount:c=s.forceMount,...d}=n,g=Hv(bR,n.__scopeDialog);return I.jsx(Cw,{present:c||g.open,children:g.modal?I.jsx(u7n,{...d,ref:i}):I.jsx(l7n,{...d,ref:i})})});XGt.displayName=bR;var u7n=H.forwardRef((n,i)=>{const s=Hv(bR,n.__scopeDialog),c=H.useRef(null),d=ps(i,s.contentRef,c);return H.useEffect(()=>{const g=c.current;if(g)return lae(g)},[]),I.jsx(ZGt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(n.onCloseAutoFocus,g=>{var b;g.preventDefault(),(b=s.triggerRef.current)==null||b.focus()}),onPointerDownOutside:Dr(n.onPointerDownOutside,g=>{const b=g.detail.originalEvent,w=b.button===0&&b.ctrlKey===!0;(b.button===2||w)&&g.preventDefault()}),onFocusOutside:Dr(n.onFocusOutside,g=>g.preventDefault())})}),l7n=H.forwardRef((n,i)=>{const s=Hv(bR,n.__scopeDialog),c=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||(c.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=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:c,onOpenAutoFocus:d,onCloseAutoFocus:g,...b}=n,w=Hv(bR,s),E=H.useRef(null),S=ps(i,E);return cae(),I.jsxs(I.Fragment,{children:[I.jsx(Rz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(Iz,{role:"dialog",id:w.contentId,"aria-describedby":w.descriptionId,"aria-labelledby":w.titleId,"data-state":W5e(w.open),...b,ref:S,onDismiss:()=>w.onOpenChange(!1)})}),I.jsxs(I.Fragment,{children:[I.jsx(d7n,{titleId:w.titleId}),I.jsx(h7n,{contentRef:E,descriptionId:w.descriptionId})]})]})}),V5e="DialogTitle",QGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Hv(V5e,s);return I.jsx(no.h2,{id:d.titleId,...c,ref:i})});QGt.displayName=V5e;var eqt="DialogDescription",tqt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Hv(eqt,s);return I.jsx(no.p,{id:d.descriptionId,...c,ref:i})});tqt.displayName=eqt;var nqt="DialogClose",rqt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Hv(nqt,s);return I.jsx(no.button,{type:"button",...c,ref:i,onClick:Dr(n.onClick,()=>d.onOpenChange(!1))})});rqt.displayName=nqt;function W5e(n){return n?"open":"closed"}var iqt="DialogTitleWarning",[O1r,oqt]=Ljn(iqt,{contentName:bR,titleName:V5e,docsSlug:"dialog"}),d7n=({titleId:n})=>{const i=oqt(iqt),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},f7n="DialogDescriptionWarning",h7n=({contentRef:n,descriptionId:i})=>{const c=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oqt(f7n).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(c))},[c,n,i]),null},sqt=VGt,aqt=YGt,K5e=JGt,Y5e=XGt,cqt=QGt,uqt=tqt,p7n=rqt,g7n=Symbol.for("react.lazy"),ese=LLe[" use ".trim().toString()];function b7n(n){return typeof n=="object"&&n!==null&&"then"in n}function lqt(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===g7n&&"_payload"in n&&b7n(n._payload)}function fae(n){const i=w7n(n),s=H.forwardRef((c,d)=>{let{children:g,...b}=c;lqt(g)&&typeof ese=="function"&&(g=ese(g._payload));const w=H.Children.toArray(g),E=w.find(v7n);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}var m7n=fae("Slot");function w7n(n){const i=H.forwardRef((s,c)=>{let{children:d,...g}=s;if(lqt(d)&&typeof ese=="function"&&(d=ese(d._payload)),H.isValidElement(d)){const b=S7n(d),w=E7n(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var y7n=Symbol("radix.slottable");function v7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===y7n}function E7n(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function S7n(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 T7n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vN=T7n.reduce((n,i)=>{const s=fae(`Primitive.${i}`),c=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 c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),UU='[cmdk-group=""]',iIe='[cmdk-group-items=""]',A7n='[cmdk-group-heading=""]',dqt='[cmdk-item=""]',J9t=`${dqt}:not([aria-disabled="true"])`,xDe="cmdk-item-select",A5="data-value",_7n=(n,i,s)=>Djn(n,i,s),fqt=H.createContext(void 0),Lz=()=>H.useContext(fqt),hqt=H.createContext(void 0),J5e=()=>H.useContext(hqt),pqt=H.createContext(void 0),gqt=H.forwardRef((n,i)=>{let s=_5(()=>{var Be,bt;return{search:"",value:(bt=(Be=n.value)!=null?Be:n.defaultValue)!=null?bt:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=_5(()=>new Set),d=_5(()=>new Map),g=_5(()=>new Map),b=_5(()=>new Set),w=bqt(n),{label:E,children:S,value:_,onValueChange:A,filter:C,shouldFilter:O,loop:L,disablePointerSelection:D=!1,vimBindings:B=!0,...$}=n,P=Bh(),j=Bh(),z=Bh(),ee=H.useRef(null),ne=P7n();mR(()=>{if(_!==void 0){let Be=_.trim();s.current.value=Be,Q.emit()}},[_]),mR(()=>{ne(6,K)},[]);let Q=H.useMemo(()=>({subscribe:Be=>(b.current.add(Be),()=>b.current.delete(Be)),snapshot:()=>s.current,setState:(Be,bt,Nt)=>{var pt,Kt,Et,Dt;if(!Object.is(s.current[Be],bt)){if(s.current[Be]=bt,Be==="search")fe(),pe(),ne(1,ue);else if(Be==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Yt=document.getElementById(z);Yt?Yt.focus():(pt=document.getElementById(P))==null||pt.focus()}if(ne(7,()=>{var Yt;s.current.selectedItemId=(Yt=ge())==null?void 0:Yt.id,Q.emit()}),Nt||ne(5,K),((Kt=w.current)==null?void 0:Kt.value)!==void 0){let Yt=bt??"";(Dt=(Et=w.current).onValueChange)==null||Dt.call(Et,Yt);return}}Q.emit()}},emit:()=>{b.current.forEach(Be=>Be())}}),[]),ae=H.useMemo(()=>({value:(Be,bt,Nt)=>{var pt;bt!==((pt=g.current.get(Be))==null?void 0:pt.value)&&(g.current.set(Be,{value:bt,keywords:Nt}),s.current.filtered.items.set(Be,he(bt,Nt)),ne(2,()=>{pe(),Q.emit()}))},item:(Be,bt)=>(c.current.add(Be),bt&&(d.current.has(bt)?d.current.get(bt).add(Be):d.current.set(bt,new Set([Be]))),ne(3,()=>{fe(),pe(),s.current.value||ue(),Q.emit()}),()=>{g.current.delete(Be),c.current.delete(Be),s.current.filtered.items.delete(Be);let Nt=ge();ne(4,()=>{fe(),(Nt==null?void 0:Nt.getAttribute("id"))===Be&&ue(),Q.emit()})}),group:Be=>(d.current.has(Be)||d.current.set(Be,new Set),()=>{g.current.delete(Be),d.current.delete(Be)}),filter:()=>w.current.shouldFilter,label:E||n["aria-label"],getDisablePointerSelection:()=>w.current.disablePointerSelection,listId:P,inputId:z,labelId:j,listInnerRef:ee}),[]);function he(Be,bt){var Nt,pt;let Kt=(pt=(Nt=w.current)==null?void 0:Nt.filter)!=null?pt:_7n;return Be?Kt(Be,s.current.search,bt):0}function pe(){if(!s.current.search||w.current.shouldFilter===!1)return;let Be=s.current.filtered.items,bt=[];s.current.filtered.groups.forEach(pt=>{let Kt=d.current.get(pt),Et=0;Kt.forEach(Dt=>{let Yt=Be.get(Dt);Et=Math.max(Yt,Et)}),bt.push([pt,Et])});let Nt=ee.current;De().sort((pt,Kt)=>{var Et,Dt;let Yt=pt.getAttribute("id"),Ln=Kt.getAttribute("id");return((Et=Be.get(Ln))!=null?Et:0)-((Dt=Be.get(Yt))!=null?Dt:0)}).forEach(pt=>{let Kt=pt.closest(iIe);Kt?Kt.appendChild(pt.parentElement===Kt?pt:pt.closest(`${iIe} > *`)):Nt.appendChild(pt.parentElement===Nt?pt:pt.closest(`${iIe} > *`))}),bt.sort((pt,Kt)=>Kt[1]-pt[1]).forEach(pt=>{var Kt;let Et=(Kt=ee.current)==null?void 0:Kt.querySelector(`${UU}[${A5}="${encodeURIComponent(pt[0])}"]`);Et==null||Et.parentElement.appendChild(Et)})}function ue(){let Be=De().find(Nt=>Nt.getAttribute("aria-disabled")!=="true"),bt=Be==null?void 0:Be.getAttribute(A5);Q.setState("value",bt||void 0)}function fe(){var Be,bt,Nt,pt;if(!s.current.search||w.current.shouldFilter===!1){s.current.filtered.count=c.current.size;return}s.current.filtered.groups=new Set;let Kt=0;for(let Et of c.current){let Dt=(bt=(Be=g.current.get(Et))==null?void 0:Be.value)!=null?bt:"",Yt=(pt=(Nt=g.current.get(Et))==null?void 0:Nt.keywords)!=null?pt:[],Ln=he(Dt,Yt);s.current.filtered.items.set(Et,Ln),Ln>0&&Kt++}for(let[Et,Dt]of d.current)for(let Yt of Dt)if(s.current.filtered.items.get(Yt)>0){s.current.filtered.groups.add(Et);break}s.current.filtered.count=Kt}function K(){var Be,bt,Nt;let pt=ge();pt&&(((Be=pt.parentElement)==null?void 0:Be.firstChild)===pt&&((Nt=(bt=pt.closest(UU))==null?void 0:bt.querySelector(A7n))==null||Nt.scrollIntoView({block:"nearest"})),pt.scrollIntoView({block:"nearest"}))}function ge(){var Be;return(Be=ee.current)==null?void 0:Be.querySelector(`${dqt}[aria-selected="true"]`)}function De(){var Be;return Array.from(((Be=ee.current)==null?void 0:Be.querySelectorAll(J9t))||[])}function Se(Be){let bt=De()[Be];bt&&Q.setState("value",bt.getAttribute(A5))}function Re(Be){var bt;let Nt=ge(),pt=De(),Kt=pt.findIndex(Dt=>Dt===Nt),Et=pt[Kt+Be];(bt=w.current)!=null&&bt.loop&&(Et=Kt+Be<0?pt[pt.length-1]:Kt+Be===pt.length?pt[0]:pt[Kt+Be]),Et&&Q.setState("value",Et.getAttribute(A5))}function Ae(Be){let bt=ge(),Nt=bt==null?void 0:bt.closest(UU),pt;for(;Nt&&!pt;)Nt=Be>0?L7n(Nt,UU):M7n(Nt,UU),pt=Nt==null?void 0:Nt.querySelector(J9t);pt?Q.setState("value",pt.getAttribute(A5)):Re(Be)}let xe=()=>Se(De().length-1),We=Be=>{Be.preventDefault(),Be.metaKey?xe():Be.altKey?Ae(1):Re(1)},ut=Be=>{Be.preventDefault(),Be.metaKey?Se(0):Be.altKey?Ae(-1):Re(-1)};return H.createElement(vN.div,{ref:i,tabIndex:-1,...$,"cmdk-root":"",onKeyDown:Be=>{var bt;(bt=$.onKeyDown)==null||bt.call($,Be);let Nt=Be.nativeEvent.isComposing||Be.keyCode===229;if(!(Be.defaultPrevented||Nt))switch(Be.key){case"n":case"j":{B&&Be.ctrlKey&&We(Be);break}case"ArrowDown":{We(Be);break}case"p":case"k":{B&&Be.ctrlKey&&ut(Be);break}case"ArrowUp":{ut(Be);break}case"Home":{Be.preventDefault(),Se(0);break}case"End":{Be.preventDefault(),xe();break}case"Enter":{Be.preventDefault();let pt=ge();if(pt){let Kt=new Event(xDe);pt.dispatchEvent(Kt)}}}}},H.createElement("label",{"cmdk-label":"",htmlFor:ae.inputId,id:ae.labelId,style:F7n},E),hae(n,Be=>H.createElement(hqt.Provider,{value:Q},H.createElement(fqt.Provider,{value:ae},Be))))}),x7n=H.forwardRef((n,i)=>{var s,c;let d=Bh(),g=H.useRef(null),b=H.useContext(pqt),w=Lz(),E=bqt(n),S=(c=(s=E.current)==null?void 0:s.forceMount)!=null?c:b==null?void 0:b.forceMount;mR(()=>{if(!S)return w.item(d,b==null?void 0:b.id)},[S]);let _=mqt(d,g,[n.value,n.children,g],n.keywords),A=J5e(),C=sN(ne=>ne.value&&ne.value===_.current),O=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(xDe,L),()=>ne.removeEventListener(xDe,L)},[O,n.onSelect,n.disabled]);function L(){var ne,Q;D(),(Q=(ne=E.current).onSelect)==null||Q.call(ne,_.current)}function D(){A.setState("value",_.current,!0)}if(!O)return null;let{disabled:B,value:$,onSelect:P,forceMount:j,keywords:z,...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:D,onClick:B?void 0:L},n.children)}),k7n=H.forwardRef((n,i)=>{let{heading:s,children:c,forceMount:d,...g}=n,b=Bh(),w=H.useRef(null),E=H.useRef(null),S=Bh(),_=Lz(),A=sN(O=>d||_.filter()===!1?!0:O.search?O.filtered.groups.has(b):!0);mR(()=>_.group(b),[]),mqt(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),hae(n,O=>H.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":s?S:void 0},H.createElement(pqt.Provider,{value:C},O))))}),N7n=H.forwardRef((n,i)=>{let{alwaysRender:s,...c}=n,d=H.useRef(null),g=sN(b=>!b.search);return!s&&!g?null:H.createElement(vN.div,{ref:zg(d,i),...c,"cmdk-separator":"",role:"separator"})}),C7n=H.forwardRef((n,i)=>{let{onValueChange:s,...c}=n,d=n.value!=null,g=J5e(),b=sN(S=>S.search),w=sN(S=>S.selectedItemId),E=Lz();return H.useEffect(()=>{n.value!=null&&g.setState("search",n.value)},[n.value]),H.createElement(vN.input,{ref:i,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":E.listId,"aria-labelledby":E.labelId,"aria-activedescendant":w,id:E.inputId,type:"text",value:d?n.value:b,onChange:S=>{d||g.setState("search",S.target.value),s==null||s(S.target.value)}})}),I7n=H.forwardRef((n,i)=>{let{children:s,label:c="Suggestions",...d}=n,g=H.useRef(null),b=H.useRef(null),w=sN(S=>S.selectedItemId),E=Lz();return H.useEffect(()=>{if(b.current&&g.current){let S=b.current,_=g.current,A,C=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{let O=S.offsetHeight;_.style.setProperty("--cmdk-list-height",O.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":c,id:E.listId},hae(n,S=>H.createElement("div",{ref:zg(b,E.listInnerRef),"cmdk-list-sizer":""},S)))}),R7n=H.forwardRef((n,i)=>{let{open:s,onOpenChange:c,overlayClassName:d,contentClassName:g,container:b,...w}=n;return H.createElement(sqt,{open:s,onOpenChange:c},H.createElement(aqt,{container:b},H.createElement(K5e,{"cmdk-overlay":"",className:d}),H.createElement(Y5e,{"aria-label":n.label,"cmdk-dialog":"",className:g},H.createElement(gqt,{ref:i,...w}))))}),O7n=H.forwardRef((n,i)=>sN(s=>s.filtered.count===0)?H.createElement(vN.div,{ref:i,...n,"cmdk-empty":"",role:"presentation"}):null),D7n=H.forwardRef((n,i)=>{let{progress:s,children:c,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},hae(n,b=>H.createElement("div",{"aria-hidden":!0},b)))}),hb=Object.assign(gqt,{List:I7n,Item:x7n,Input:C7n,Group:k7n,Separator:N7n,Dialog:R7n,Empty:O7n,Loading:D7n});function L7n(n,i){let s=n.nextElementSibling;for(;s;){if(s.matches(i))return s;s=s.nextElementSibling}}function M7n(n,i){let s=n.previousElementSibling;for(;s;){if(s.matches(i))return s;s=s.previousElementSibling}}function bqt(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=J5e(),s=()=>n(i.snapshot());return H.useSyncExternalStore(i.subscribe,s,s)}function mqt(n,i,s,c=[]){let d=H.useRef(),g=Lz();return mR(()=>{var b;let w=(()=>{var S;for(let _ of s){if(typeof _=="string")return _.trim();if(typeof _=="object"&&"current"in _)return _.current?(S=_.current.textContent)==null?void 0:S.trim():d.current}})(),E=c.map(S=>S.trim());g.value(n,w,E),(b=i.current)==null||b.setAttribute(A5,w),d.current=w}),d}var P7n=()=>{let[n,i]=H.useState(),s=_5(()=>new Map);return mR(()=>{s.current.forEach(c=>c()),s.current=new Map},[n]),(c,d)=>{s.current.set(c,d),i({})}};function j7n(n){let i=n.type;return typeof i=="function"?i(n.props):"render"in i?i.render(n.props):n}function hae({asChild:n,children:i},s){return n&&H.isValidElement(i)?H.cloneElement(j7n(i),{ref:i.ref},s(i.props.children)):s(i)}var F7n={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function wqt(n){var i,s,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(i=0;i{const i=U7n(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:b=>{const w=b.split(X5e);return w[0]===""&&w.length!==1&&w.shift(),vqt(w,i)||B7n(b)},getConflictingClassGroupIds:(b,w)=>{const E=s[b]||[];return w&&c[b]?[...E,...c[b]]:E}}},vqt=(n,i)=>{var b;if(n.length===0)return i.classGroupId;const s=n[0],c=i.nextPart.get(s),d=c?vqt(n.slice(1),c):void 0;if(d)return d;if(i.validators.length===0)return;const g=n.join(X5e);return(b=i.validators.find(({validator:w})=>w(g)))==null?void 0:b.classGroupId},X9t=/^\[(.+)\]$/,B7n=n=>{if(X9t.test(n)){const i=X9t.exec(n)[1],s=i==null?void 0:i.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},U7n=n=>{const{theme:i,prefix:s}=n,c={nextPart:new Map,validators:[]};return z7n(Object.entries(n.classGroups),s).forEach(([g,b])=>{kDe(b,c,g,i)}),c},kDe=(n,i,s,c)=>{n.forEach(d=>{if(typeof d=="string"){const g=d===""?i:Z9t(i,d);g.classGroupId=s;return}if(typeof d=="function"){if(H7n(d)){kDe(d(c),i,s,c);return}i.validators.push({validator:d,classGroupId:s});return}Object.entries(d).forEach(([g,b])=>{kDe(b,Z9t(i,g),s,c)})})},Z9t=(n,i)=>{let s=n;return i.split(X5e).forEach(c=>{s.nextPart.has(c)||s.nextPart.set(c,{nextPart:new Map,validators:[]}),s=s.nextPart.get(c)}),s},H7n=n=>n.isThemeGetter,z7n=(n,i)=>i?n.map(([s,c])=>{const d=c.map(g=>typeof g=="string"?i+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(([b,w])=>[i+b,w])):g);return[s,d]}):n,G7n=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,c=new Map;const d=(g,b)=>{s.set(g,b),i++,i>n&&(i=0,c=s,s=new Map)};return{get(g){let b=s.get(g);if(b!==void 0)return b;if((b=c.get(g))!==void 0)return d(g,b),b},set(g,b){s.has(g)?s.set(g,b):d(g,b)}}},Eqt="!",q7n=n=>{const{separator:i,experimentalParseClassName:s}=n,c=i.length===1,d=i[0],g=i.length,b=w=>{const E=[];let S=0,_=0,A;for(let B=0;B_?A-_:void 0;return{modifiers:E,hasImportantModifier:O,baseClassName:L,maybePostfixModifierPosition:D}};return s?w=>s({className:w,parseClassName:b}):b},V7n=n=>{if(n.length<=1)return n;const i=[];let s=[];return n.forEach(c=>{c[0]==="["?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i},W7n=n=>({cache:G7n(n.cacheSize),parseClassName:q7n(n),...$7n(n)}),K7n=/\s+/,Y7n=(n,i)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:d}=i,g=[],b=n.trim().split(K7n);let w="";for(let E=b.length-1;E>=0;E-=1){const S=b[E],{modifiers:_,hasImportantModifier:A,baseClassName:C,maybePostfixModifierPosition:O}=s(S);let L=!!O,D=c(L?C.substring(0,O):C);if(!D){if(!L){w=S+(w.length>0?" "+w:w);continue}if(D=c(C),!D){w=S+(w.length>0?" "+w:w);continue}L=!1}const B=V7n(_).join(":"),$=A?B+Eqt:B,P=$+D;if(g.includes(P))continue;g.push(P);const j=d(D,L);for(let z=0;z0?" "+w:w)}return w};function J7n(){let n=0,i,s,c="";for(;n{if(typeof n=="string")return n;let i,s="";for(let c=0;cA(_),n());return s=W7n(S),c=s.cache.get,d=s.cache.set,g=w,w(E)}function w(E){const S=c(E);if(S)return S;const _=Y7n(E,s);return d(E,_),_}return function(){return g(J7n.apply(null,arguments))}}const uu=n=>{const i=s=>s[n]||[];return i.isThemeGetter=!0,i},Tqt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Z7n=/^\d+\/\d+$/,Q7n=new Set(["px","full","screen"]),e$n=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t$n=/\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$/,n$n=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,r$n=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,i$n=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rA=n=>oM(n)||Q7n.has(n)||Z7n.test(n),Rk=n=>FM(n,"length",f$n),oM=n=>!!n&&!Number.isNaN(Number(n)),oIe=n=>FM(n,"number",oM),HU=n=>!!n&&Number.isInteger(Number(n)),o$n=n=>n.endsWith("%")&&oM(n.slice(0,-1)),Zo=n=>Tqt.test(n),Ok=n=>e$n.test(n),s$n=new Set(["length","size","percentage"]),a$n=n=>FM(n,s$n,Aqt),c$n=n=>FM(n,"position",Aqt),u$n=new Set(["image","url"]),l$n=n=>FM(n,u$n,p$n),d$n=n=>FM(n,"",h$n),zU=()=>!0,FM=(n,i,s)=>{const c=Tqt.exec(n);return c?c[1]?typeof i=="string"?c[1]===i:i.has(c[1]):s(c[2]):!1},f$n=n=>t$n.test(n)&&!n$n.test(n),Aqt=()=>!1,h$n=n=>r$n.test(n),p$n=n=>i$n.test(n),g$n=()=>{const n=uu("colors"),i=uu("spacing"),s=uu("blur"),c=uu("brightness"),d=uu("borderColor"),g=uu("borderRadius"),b=uu("borderSpacing"),w=uu("borderWidth"),E=uu("contrast"),S=uu("grayscale"),_=uu("hueRotate"),A=uu("invert"),C=uu("gap"),O=uu("gradientColorStops"),L=uu("gradientColorStopPositions"),D=uu("inset"),B=uu("margin"),$=uu("opacity"),P=uu("padding"),j=uu("saturate"),z=uu("scale"),ee=uu("sepia"),ne=uu("skew"),Q=uu("space"),ae=uu("translate"),he=()=>["auto","contain","none"],pe=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",Zo,i],fe=()=>[Zo,i],K=()=>["",rA,Rk],ge=()=>["auto",oM,Zo],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Se=()=>["solid","dashed","dotted","double","none"],Re=()=>["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",Zo],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ut=()=>[oM,Zo];return{cacheSize:500,separator:":",theme:{colors:[zU],spacing:[rA,Rk],blur:["none","",Ok,Zo],brightness:ut(),borderColor:[n],borderRadius:["none","","full",Ok,Zo],borderSpacing:fe(),borderWidth:K(),contrast:ut(),grayscale:xe(),hueRotate:ut(),invert:xe(),gap:fe(),gradientColorStops:[n],gradientColorStopPositions:[o$n,Rk],inset:ue(),margin:ue(),opacity:ut(),padding:fe(),saturate:ut(),scale:ut(),sepia:xe(),skew:ut(),space:fe(),translate:fe()},classGroups:{aspect:[{aspect:["auto","square","video",Zo]}],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:[...De(),Zo]}],overflow:[{overflow:pe()}],"overflow-x":[{"overflow-x":pe()}],"overflow-y":[{"overflow-y":pe()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",HU,Zo]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Zo]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",HU,Zo]}],"grid-cols":[{"grid-cols":[zU]}],"col-start-end":[{col:["auto",{span:["full",HU,Zo]},Zo]}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":[zU]}],"row-start-end":[{row:["auto",{span:[HU,Zo]},Zo]}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Zo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Zo]}],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:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],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",Zo,i]}],"min-w":[{"min-w":[Zo,i,"min","max","fit"]}],"max-w":[{"max-w":[Zo,i,"none","full","min","max","fit","prose",{screen:[Ok]},Ok]}],h:[{h:[Zo,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Zo,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Zo,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Zo,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",oIe]}],"font-family":[{font:[zU]}],"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",Zo]}],"line-clamp":[{"line-clamp":["none",oM,oIe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rA,Zo]}],"list-image":[{"list-image":["none",Zo]}],"list-style-type":[{list:["none","disc","decimal",Zo]}],"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,Zo]}],"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",Zo]}],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",Zo]}],"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:[...De(),c$n]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",a$n]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},l$n]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],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,Zo]}],"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,d$n]}],"shadow-color":[{shadow:[zU]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...Re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Re()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[c]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Ok,Zo]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[_]}],invert:[{invert:[A]}],saturate:[{saturate:[j]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"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",Zo]}],duration:[{duration:ut()}],ease:[{ease:["linear","in","out","in-out",Zo]}],delay:[{delay:ut()}],animate:[{animate:["none","spin","ping","pulse","bounce",Zo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[HU,Zo]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"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",Zo]}],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",Zo]}],"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",Zo]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[rA,Rk,oIe]}],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"]}}},b$n=X7n(g$n);function nr(...n){return b$n(yqt(n))}function Z5e(){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 m$n=0;function tz(n){return`${n}_${Date.now()}_${m$n++}`}const wR=sqt,w$n=aqt,_qt=H.forwardRef(({className:n,...i},s)=>I.jsx(K5e,{ref:s,className:nr("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}));_qt.displayName=K5e.displayName;const aN=H.forwardRef(({className:n,children:i,container:s,...c},d)=>{const{t:g}=jo(["common"]);return I.jsxs(w$n,{container:s,children:[I.jsx(_qt,{}),I.jsxs(Y5e,{ref:d,className:nr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg",n),...c,children:[i,I.jsxs(p7n,{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(aae,{className:"h-4 w-4"}),I.jsx("span",{className:"sr-only",children:g("buttons.close")})]})]})]})});aN.displayName=Y5e.displayName;const cN=({className:n,...i})=>I.jsx("div",{className:nr("flex flex-col space-y-1.5 text-center sm:text-left",n),...i});cN.displayName="DialogHeader";const uN=H.forwardRef(({className:n,...i},s)=>I.jsx(cqt,{ref:s,className:nr("font-semibold text-lg leading-none tracking-tight",n),...i}));uN.displayName=cqt.displayName;const lN=H.forwardRef(({className:n,...i},s)=>I.jsx(uqt,{ref:s,className:nr("text-muted-foreground text-sm",n),...i}));lN.displayName=uqt.displayName;const pae=H.forwardRef(({className:n,...i},s)=>I.jsx(hb,{ref:s,className:nr("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),...i}));pae.displayName=hb.displayName;const gae=H.forwardRef(({className:n,...i},s)=>I.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[I.jsx(kGt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),I.jsx(hb.Input,{ref:s,autoComplete:"off",className:nr("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})]}));gae.displayName=hb.Input.displayName;const bae=H.forwardRef(({className:n,...i},s)=>I.jsx(hb.List,{ref:s,className:nr("max-h-[300px] overflow-y-auto overflow-x-hidden",n),...i}));bae.displayName=hb.List.displayName;const mae=H.forwardRef((n,i)=>I.jsx(hb.Empty,{ref:i,className:"py-6 text-center text-sm",...n}));mae.displayName=hb.Empty.displayName;const nz=H.forwardRef(({className:n,...i},s)=>I.jsx(hb.Group,{ref:s,className:nr("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}));nz.displayName=hb.Group.displayName;const y$n=H.forwardRef(({className:n,...i},s)=>I.jsx(hb.Separator,{ref:s,className:nr("-mx-1 h-px bg-border",n),...i}));y$n.displayName=hb.Separator.displayName;const rz=H.forwardRef(({className:n,...i},s)=>I.jsx(hb.Item,{ref:s,className:nr("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}));rz.displayName=hb.Item.displayName;const v$n=["top","right","bottom","left"],dN=Math.min,Mm=Math.max,tse=Math.round,Cie=Math.floor,$2=n=>({x:n,y:n}),E$n={left:"right",right:"left",bottom:"top",top:"bottom"},S$n={start:"end",end:"start"};function NDe(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 $M(n){return n.split("-")[1]}function Q5e(n){return n==="x"?"y":"x"}function eMe(n){return n==="y"?"height":"width"}const T$n=new Set(["top","bottom"]);function L2(n){return T$n.has(EA(n))?"y":"x"}function tMe(n){return Q5e(L2(n))}function A$n(n,i,s){s===void 0&&(s=!1);const c=$M(n),d=tMe(n),g=eMe(d);let b=d==="x"?c===(s?"end":"start")?"right":"left":c==="start"?"bottom":"top";return i.reference[g]>i.floating[g]&&(b=nse(b)),[b,nse(b)]}function _$n(n){const i=nse(n);return[CDe(n),i,CDe(i)]}function CDe(n){return n.replace(/start|end/g,i=>S$n[i])}const Q9t=["left","right"],e8t=["right","left"],x$n=["top","bottom"],k$n=["bottom","top"];function N$n(n,i,s){switch(n){case"top":case"bottom":return s?i?e8t:Q9t:i?Q9t:e8t;case"left":case"right":return i?x$n:k$n;default:return[]}}function C$n(n,i,s,c){const d=$M(n);let g=N$n(EA(n),s==="start",c);return d&&(g=g.map(b=>b+"-"+d),i&&(g=g.concat(g.map(CDe)))),g}function nse(n){return n.replace(/left|right|bottom|top/g,i=>E$n[i])}function I$n(n){return{top:0,right:0,bottom:0,left:0,...n}}function xqt(n){return typeof n!="number"?I$n(n):{top:n,right:n,bottom:n,left:n}}function rse(n){const{x:i,y:s,width:c,height:d}=n;return{width:c,height:d,top:s,left:i,right:i+c,bottom:s+d,x:i,y:s}}function t8t(n,i,s){let{reference:c,floating:d}=n;const g=L2(i),b=tMe(i),w=eMe(b),E=EA(i),S=g==="y",_=c.x+c.width/2-d.width/2,A=c.y+c.height/2-d.height/2,C=c[w]/2-d[w]/2;let O;switch(E){case"top":O={x:_,y:c.y-d.height};break;case"bottom":O={x:_,y:c.y+c.height};break;case"right":O={x:c.x+c.width,y:A};break;case"left":O={x:c.x-d.width,y:A};break;default:O={x:c.x,y:c.y}}switch($M(i)){case"start":O[b]-=C*(s&&S?-1:1);break;case"end":O[b]+=C*(s&&S?-1:1);break}return O}const R$n=async(n,i,s)=>{const{placement:c="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}=t8t(S,c,E),C=c,O={},L=0;for(let D=0;D({name:"arrow",options:n,async fn(i){const{x:s,y:c,placement:d,rects:g,platform:b,elements:w,middlewareData:E}=i,{element:S,padding:_=0}=vA(n,i)||{};if(S==null)return{};const A=xqt(_),C={x:s,y:c},O=tMe(d),L=eMe(O),D=await b.getDimensions(S),B=O==="y",$=B?"top":"left",P=B?"bottom":"right",j=B?"clientHeight":"clientWidth",z=g.reference[L]+g.reference[O]-C[O]-g.floating[L],ee=C[O]-g.reference[O],ne=await(b.getOffsetParent==null?void 0:b.getOffsetParent(S));let Q=ne?ne[j]:0;(!Q||!await(b.isElement==null?void 0:b.isElement(ne)))&&(Q=w.floating[j]||g.floating[L]);const ae=z/2-ee/2,he=Q/2-D[L]/2-1,pe=dN(A[$],he),ue=dN(A[P],he),fe=pe,K=Q-D[L]-ue,ge=Q/2-D[L]/2+ae,De=NDe(fe,ge,K),Se=!E.arrow&&$M(d)!=null&&ge!==De&&g.reference[L]/2-(gege<=0)){var ue,fe;const ge=(((ue=g.flip)==null?void 0:ue.index)||0)+1,De=Q[ge];if(De&&(!(A==="alignment"?P!==L2(De):!1)||pe.every(Ae=>L2(Ae.placement)===P?Ae.overflows[0]>0:!0)))return{data:{index:ge,overflows:pe},reset:{placement:De}};let Se=(fe=pe.filter(Re=>Re.overflows[0]<=0).sort((Re,Ae)=>Re.overflows[1]-Ae.overflows[1])[0])==null?void 0:fe.placement;if(!Se)switch(O){case"bestFit":{var K;const Re=(K=pe.filter(Ae=>{if(ne){const xe=L2(Ae.placement);return xe===P||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];Re&&(Se=Re);break}case"initialPlacement":Se=w;break}if(d!==Se)return{reset:{placement:Se}}}return{}}}};function n8t(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function r8t(n){return v$n.some(i=>n[i]>=0)}const L$n=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:s}=i,{strategy:c="referenceHidden",...d}=vA(n,i);switch(c){case"referenceHidden":{const g=await iz(i,{...d,elementContext:"reference"}),b=n8t(g,s.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:r8t(b)}}}case"escaped":{const g=await iz(i,{...d,altBoundary:!0}),b=n8t(g,s.floating);return{data:{escapedOffsets:b,escaped:r8t(b)}}}default:return{}}}}},kqt=new Set(["left","top"]);async function M$n(n,i){const{placement:s,platform:c,elements:d}=n,g=await(c.isRTL==null?void 0:c.isRTL(d.floating)),b=EA(s),w=$M(s),E=L2(s)==="y",S=kqt.has(b)?-1:1,_=g&&E?-1:1,A=vA(i,n);let{mainAxis:C,crossAxis:O,alignmentAxis:L}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return w&&typeof L=="number"&&(O=w==="end"?L*-1:L),E?{x:O*_,y:C*S}:{x:C*S,y:O*_}}const P$n=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var s,c;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)&&(c=w.arrow)!=null&&c.alignmentOffset?{}:{x:d+E.x,y:g+E.y,data:{...E,placement:b}}}}},j$n=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:s,y:c,placement:d}=i,{mainAxis:g=!0,crossAxis:b=!1,limiter:w={fn:B=>{let{x:$,y:P}=B;return{x:$,y:P}}},...E}=vA(n,i),S={x:s,y:c},_=await iz(i,E),A=L2(EA(d)),C=Q5e(A);let O=S[C],L=S[A];if(g){const B=C==="y"?"top":"left",$=C==="y"?"bottom":"right",P=O+_[B],j=O-_[$];O=NDe(P,O,j)}if(b){const B=A==="y"?"top":"left",$=A==="y"?"bottom":"right",P=L+_[B],j=L-_[$];L=NDe(P,L,j)}const D=w.fn({...i,[C]:O,[A]:L});return{...D,data:{x:D.x-s,y:D.y-c,enabled:{[C]:g,[A]:b}}}}}},F$n=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:s,y:c,placement:d,rects:g,middlewareData:b}=i,{offset:w=0,mainAxis:E=!0,crossAxis:S=!0}=vA(n,i),_={x:s,y:c},A=L2(d),C=Q5e(A);let O=_[C],L=_[A];const D=vA(w,i),B=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(E){const j=C==="y"?"height":"width",z=g.reference[C]-g.floating[j]+B.mainAxis,ee=g.reference[C]+g.reference[j]-B.mainAxis;Oee&&(O=ee)}if(S){var $,P;const j=C==="y"?"width":"height",z=kqt.has(EA(d)),ee=g.reference[A]-g.floating[j]+(z&&(($=b.offset)==null?void 0:$[A])||0)+(z?0:B.crossAxis),ne=g.reference[A]+g.reference[j]+(z?0:((P=b.offset)==null?void 0:P[A])||0)-(z?B.crossAxis:0);Lne&&(L=ne)}return{[C]:O,[A]:L}}}},$$n=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var s,c;const{placement:d,rects:g,platform:b,elements:w}=i,{apply:E=()=>{},...S}=vA(n,i),_=await iz(i,S),A=EA(d),C=$M(d),O=L2(d)==="y",{width:L,height:D}=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 P=D-_.top-_.bottom,j=L-_.left-_.right,z=dN(D-_[B],P),ee=dN(L-_[$],j),ne=!i.middlewareData.shift;let Q=z,ae=ee;if((s=i.middlewareData.shift)!=null&&s.enabled.x&&(ae=j),(c=i.middlewareData.shift)!=null&&c.enabled.y&&(Q=P),ne&&!C){const pe=Mm(_.left,0),ue=Mm(_.right,0),fe=Mm(_.top,0),K=Mm(_.bottom,0);O?ae=L-2*(pe!==0||ue!==0?pe+ue:Mm(_.left,_.right)):Q=D-2*(fe!==0||K!==0?fe+K:Mm(_.top,_.bottom))}await E({...i,availableWidth:ae,availableHeight:Q});const he=await b.getDimensions(w.floating);return L!==he.width||D!==he.height?{reset:{rects:!0}}:{}}}};function wae(){return typeof window<"u"}function BM(n){return Nqt(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=(Nqt(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function Nqt(n){return wae()?n instanceof Node||n instanceof Um(n).Node:!1}function Fv(n){return wae()?n instanceof Element||n instanceof Um(n).Element:!1}function V2(n){return wae()?n instanceof HTMLElement||n instanceof Um(n).HTMLElement:!1}function i8t(n){return!wae()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Um(n).ShadowRoot}const B$n=new Set(["inline","contents"]);function Mz(n){const{overflow:i,overflowX:s,overflowY:c,display:d}=$v(n);return/auto|scroll|overlay|hidden|clip/.test(i+c+s)&&!B$n.has(d)}const U$n=new Set(["table","td","th"]);function H$n(n){return U$n.has(BM(n))}const z$n=[":popover-open",":modal"];function yae(n){return z$n.some(i=>{try{return n.matches(i)}catch{return!1}})}const G$n=["transform","translate","scale","rotate","perspective"],q$n=["transform","translate","scale","rotate","perspective","filter"],V$n=["paint","layout","strict","content"];function nMe(n){const i=rMe(),s=Fv(n)?$v(n):n;return G$n.some(c=>s[c]?s[c]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!i&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!i&&(s.filter?s.filter!=="none":!1)||q$n.some(c=>(s.willChange||"").includes(c))||V$n.some(c=>(s.contain||"").includes(c))}function W$n(n){let i=fN(n);for(;V2(i)&&!kM(i);){if(nMe(i))return i;if(yae(i))return null;i=fN(i)}return null}function rMe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const K$n=new Set(["html","body","#document"]);function kM(n){return K$n.has(BM(n))}function $v(n){return Um(n).getComputedStyle(n)}function vae(n){return Fv(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fN(n){if(BM(n)==="html")return n;const i=n.assignedSlot||n.parentNode||i8t(n)&&n.host||K2(n);return i8t(i)?i.host:i}function Cqt(n){const i=fN(n);return kM(i)?n.ownerDocument?n.ownerDocument.body:n.body:V2(i)&&Mz(i)?i:Cqt(i)}function oz(n,i,s){var c;i===void 0&&(i=[]),s===void 0&&(s=!0);const d=Cqt(n),g=d===((c=n.ownerDocument)==null?void 0:c.body),b=Um(d);if(g){const w=IDe(b);return i.concat(b,b.visualViewport||[],Mz(d)?d:[],w&&s?oz(w):[])}return i.concat(d,oz(d,[],s))}function IDe(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Iqt(n){const i=$v(n);let s=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const d=V2(n),g=d?n.offsetWidth:s,b=d?n.offsetHeight:c,w=tse(s)!==g||tse(c)!==b;return w&&(s=g,c=b),{width:s,height:c,$:w}}function iMe(n){return Fv(n)?n:n.contextElement}function sM(n){const i=iMe(n);if(!V2(i))return $2(1);const s=i.getBoundingClientRect(),{width:c,height:d,$:g}=Iqt(i);let b=(g?tse(s.width):s.width)/c,w=(g?tse(s.height):s.height)/d;return(!b||!Number.isFinite(b))&&(b=1),(!w||!Number.isFinite(w))&&(w=1),{x:b,y:w}}const Y$n=$2(0);function Rqt(n){const i=Um(n);return!rMe()||!i.visualViewport?Y$n:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function J$n(n,i,s){return i===void 0&&(i=!1),!s||i&&s!==Um(n)?!1:i}function yR(n,i,s,c){i===void 0&&(i=!1),s===void 0&&(s=!1);const d=n.getBoundingClientRect(),g=iMe(n);let b=$2(1);i&&(c?Fv(c)&&(b=sM(c)):b=sM(n));const w=J$n(g,s,c)?Rqt(g):$2(0);let E=(d.left+w.x)/b.x,S=(d.top+w.y)/b.y,_=d.width/b.x,A=d.height/b.y;if(g){const C=Um(g),O=c&&Fv(c)?Um(c):c;let L=C,D=IDe(L);for(;D&&c&&O!==L;){const B=sM(D),$=D.getBoundingClientRect(),P=$v(D),j=$.left+(D.clientLeft+parseFloat(P.paddingLeft))*B.x,z=$.top+(D.clientTop+parseFloat(P.paddingTop))*B.y;E*=B.x,S*=B.y,_*=B.x,A*=B.y,E+=j,S+=z,L=Um(D),D=IDe(L)}}return rse({width:_,height:A,x:E,y:S})}function Eae(n,i){const s=vae(n).scrollLeft;return i?i.left+s:yR(K2(n)).left+s}function Oqt(n,i){const s=n.getBoundingClientRect(),c=s.left+i.scrollLeft-Eae(n,s),d=s.top+i.scrollTop;return{x:c,y:d}}function X$n(n){let{elements:i,rect:s,offsetParent:c,strategy:d}=n;const g=d==="fixed",b=K2(c),w=i?yae(i.floating):!1;if(c===b||w&&g)return s;let E={scrollLeft:0,scrollTop:0},S=$2(1);const _=$2(0),A=V2(c);if((A||!A&&!g)&&((BM(c)!=="body"||Mz(b))&&(E=vae(c)),V2(c))){const O=yR(c);S=sM(c),_.x=O.x+c.clientLeft,_.y=O.y+c.clientTop}const C=b&&!A&&!g?Oqt(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+C.x,y:s.y*S.y-E.scrollTop*S.y+_.y+C.y}}function Z$n(n){return Array.from(n.getClientRects())}function Q$n(n){const i=K2(n),s=vae(n),c=n.ownerDocument.body,d=Mm(i.scrollWidth,i.clientWidth,c.scrollWidth,c.clientWidth),g=Mm(i.scrollHeight,i.clientHeight,c.scrollHeight,c.clientHeight);let b=-s.scrollLeft+Eae(n);const w=-s.scrollTop;return $v(c).direction==="rtl"&&(b+=Mm(i.clientWidth,c.clientWidth)-d),{width:d,height:g,x:b,y:w}}const o8t=25;function eBn(n,i){const s=Um(n),c=K2(n),d=s.visualViewport;let g=c.clientWidth,b=c.clientHeight,w=0,E=0;if(d){g=d.width,b=d.height;const _=rMe();(!_||_&&i==="fixed")&&(w=d.offsetLeft,E=d.offsetTop)}const S=Eae(c);if(S<=0){const _=c.ownerDocument,A=_.body,C=getComputedStyle(A),O=_.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,L=Math.abs(c.clientWidth-A.clientWidth-O);L<=o8t&&(g-=L)}else S<=o8t&&(g+=S);return{width:g,height:b,x:w,y:E}}const tBn=new Set(["absolute","fixed"]);function nBn(n,i){const s=yR(n,!0,i==="fixed"),c=s.top+n.clientTop,d=s.left+n.clientLeft,g=V2(n)?sM(n):$2(1),b=n.clientWidth*g.x,w=n.clientHeight*g.y,E=d*g.x,S=c*g.y;return{width:b,height:w,x:E,y:S}}function s8t(n,i,s){let c;if(i==="viewport")c=eBn(n,s);else if(i==="document")c=Q$n(K2(n));else if(Fv(i))c=nBn(i,s);else{const d=Rqt(n);c={x:i.x-d.x,y:i.y-d.y,width:i.width,height:i.height}}return rse(c)}function Dqt(n,i){const s=fN(n);return s===i||!Fv(s)||kM(s)?!1:$v(s).position==="fixed"||Dqt(s,i)}function rBn(n,i){const s=i.get(n);if(s)return s;let c=oz(n,[],!1).filter(w=>Fv(w)&&BM(w)!=="body"),d=null;const g=$v(n).position==="fixed";let b=g?fN(n):n;for(;Fv(b)&&!kM(b);){const w=$v(b),E=nMe(b);!E&&w.position==="fixed"&&(d=null),(g?!E&&!d:!E&&w.position==="static"&&!!d&&tBn.has(d.position)||Mz(b)&&!E&&Dqt(n,b))?c=c.filter(_=>_!==b):d=w,b=fN(b)}return i.set(n,c),c}function iBn(n){let{element:i,boundary:s,rootBoundary:c,strategy:d}=n;const b=[...s==="clippingAncestors"?yae(i)?[]:rBn(i,this._c):[].concat(s),c],w=b[0],E=b.reduce((S,_)=>{const A=s8t(i,_,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},s8t(i,w,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}function oBn(n){const{width:i,height:s}=Iqt(n);return{width:i,height:s}}function sBn(n,i,s){const c=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=Eae(d)}if(c||!c&&!g)if((BM(i)!=="body"||Mz(d))&&(w=vae(i)),c){const O=yR(i,!0,g,i);E.x=O.x+i.clientLeft,E.y=O.y+i.clientTop}else d&&S();g&&!c&&d&&S();const _=d&&!c&&!g?Oqt(d,w):$2(0),A=b.left+w.scrollLeft-E.x-_.x,C=b.top+w.scrollTop-E.y-_.y;return{x:A,y:C,width:b.width,height:b.height}}function sIe(n){return $v(n).position==="static"}function a8t(n,i){if(!V2(n)||$v(n).position==="fixed")return null;if(i)return i(n);let s=n.offsetParent;return K2(n)===s&&(s=s.ownerDocument.body),s}function Lqt(n,i){const s=Um(n);if(yae(n))return s;if(!V2(n)){let d=fN(n);for(;d&&!kM(d);){if(Fv(d)&&!sIe(d))return d;d=fN(d)}return s}let c=a8t(n,i);for(;c&&H$n(c)&&sIe(c);)c=a8t(c,i);return c&&kM(c)&&sIe(c)&&!nMe(c)?s:c||W$n(n)||s}const aBn=async function(n){const i=this.getOffsetParent||Lqt,s=this.getDimensions,c=await s(n.floating);return{reference:sBn(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function cBn(n){return $v(n).direction==="rtl"}const uBn={convertOffsetParentRelativeRectToViewportRelativeRect:X$n,getDocumentElement:K2,getClippingRect:iBn,getOffsetParent:Lqt,getElementRects:aBn,getClientRects:Z$n,getDimensions:oBn,getScale:sM,isElement:Fv,isRTL:cBn};function Mqt(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function lBn(n,i){let s=null,c;const d=K2(n);function g(){var w;clearTimeout(c),(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:_,top:A,width:C,height:O}=S;if(w||i(),!C||!O)return;const L=Cie(A),D=Cie(d.clientWidth-(_+C)),B=Cie(d.clientHeight-(A+O)),$=Cie(_),j={rootMargin:-L+"px "+-D+"px "+-B+"px "+-$+"px",threshold:Mm(0,dN(1,E))||1};let z=!0;function ee(ne){const Q=ne[0].intersectionRatio;if(Q!==E){if(!z)return b();Q?b(!1,Q):c=setTimeout(()=>{b(!1,1e-7)},1e3)}Q===1&&!Mqt(S,n.getBoundingClientRect())&&b(),z=!1}try{s=new IntersectionObserver(ee,{...j,root:d.ownerDocument})}catch{s=new IntersectionObserver(ee,j)}s.observe(n)}return b(!0),g}function dBn(n,i,s,c){c===void 0&&(c={});const{ancestorScroll:d=!0,ancestorResize:g=!0,elementResize:b=typeof ResizeObserver=="function",layoutShift:w=typeof IntersectionObserver=="function",animationFrame:E=!1}=c,S=iMe(n),_=d||g?[...S?oz(S):[],...oz(i)]:[];_.forEach($=>{d&&$.addEventListener("scroll",s,{passive:!0}),g&&$.addEventListener("resize",s)});const A=S&&w?lBn(S,s):null;let C=-1,O=null;b&&(O=new ResizeObserver($=>{let[P]=$;P&&P.target===S&&O&&(O.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var j;(j=O)==null||j.observe(i)})),s()}),S&&!E&&O.observe(S),O.observe(i));let L,D=E?yR(n):null;E&&B();function B(){const $=yR(n);D&&!Mqt(D,$)&&s(),D=$,L=requestAnimationFrame(B)}return s(),()=>{var $;_.forEach(P=>{d&&P.removeEventListener("scroll",s),g&&P.removeEventListener("resize",s)}),A==null||A(),($=O)==null||$.disconnect(),O=null,E&&cancelAnimationFrame(L)}}const fBn=P$n,hBn=j$n,pBn=D$n,gBn=$$n,bBn=L$n,c8t=O$n,mBn=F$n,wBn=(n,i,s)=>{const c=new Map,d={platform:uBn,...s},g={...d.platform,_c:c};return R$n(n,i,{...d,platform:g})};var yBn=typeof document<"u",vBn=function(){},coe=yBn?H.useLayoutEffect:vBn;function ise(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,c,d;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==i.length)return!1;for(c=s;c--!==0;)if(!ise(n[c],i[c]))return!1;return!0}if(d=Object.keys(n),s=d.length,s!==Object.keys(i).length)return!1;for(c=s;c--!==0;)if(!{}.hasOwnProperty.call(i,d[c]))return!1;for(c=s;c--!==0;){const g=d[c];if(!(g==="_owner"&&n.$$typeof)&&!ise(n[g],i[g]))return!1}return!0}return n!==n&&i!==i}function Pqt(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function u8t(n,i){const s=Pqt(n);return Math.round(i*s)/s}function aIe(n){const i=H.useRef(n);return coe(()=>{i.current=n}),i}function EBn(n){n===void 0&&(n={});const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:d,elements:{reference:g,floating:b}={},transform:w=!0,whileElementsMounted:E,open:S}=n,[_,A]=H.useState({x:0,y:0,strategy:s,placement:i,middlewareData:{},isPositioned:!1}),[C,O]=H.useState(c);ise(C,c)||O(c);const[L,D]=H.useState(null),[B,$]=H.useState(null),P=H.useCallback(Ae=>{Ae!==ne.current&&(ne.current=Ae,D(Ae))},[]),j=H.useCallback(Ae=>{Ae!==Q.current&&(Q.current=Ae,$(Ae))},[]),z=g||L,ee=b||B,ne=H.useRef(null),Q=H.useRef(null),ae=H.useRef(_),he=E!=null,pe=aIe(E),ue=aIe(d),fe=aIe(S),K=H.useCallback(()=>{if(!ne.current||!Q.current)return;const Ae={placement:i,strategy:s,middleware:C};ue.current&&(Ae.platform=ue.current),wBn(ne.current,Q.current,Ae).then(xe=>{const We={...xe,isPositioned:fe.current!==!1};ge.current&&!ise(ae.current,We)&&(ae.current=We,xR.flushSync(()=>{A(We)}))})},[C,i,s,ue,fe]);coe(()=>{S===!1&&ae.current.isPositioned&&(ae.current.isPositioned=!1,A(Ae=>({...Ae,isPositioned:!1})))},[S]);const ge=H.useRef(!1);coe(()=>(ge.current=!0,()=>{ge.current=!1}),[]),coe(()=>{if(z&&(ne.current=z),ee&&(Q.current=ee),z&&ee){if(pe.current)return pe.current(z,ee,K);K()}},[z,ee,K,pe,he]);const De=H.useMemo(()=>({reference:ne,floating:Q,setReference:P,setFloating:j}),[P,j]),Se=H.useMemo(()=>({reference:z,floating:ee}),[z,ee]),Re=H.useMemo(()=>{const Ae={position:s,left:0,top:0};if(!Se.floating)return Ae;const xe=u8t(Se.floating,_.x),We=u8t(Se.floating,_.y);return w?{...Ae,transform:"translate("+xe+"px, "+We+"px)",...Pqt(Se.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:xe,top:We}},[s,w,Se.floating,_.x,_.y]);return H.useMemo(()=>({..._,update:K,refs:De,elements:Se,floatingStyles:Re}),[_,K,De,Se,Re])}const SBn=n=>{function i(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:c,padding:d}=typeof n=="function"?n(s):n;return c&&i(c)?c.current!=null?c8t({element:c.current,padding:d}).fn(s):{}:c?c8t({element:c,padding:d}).fn(s):{}}}},TBn=(n,i)=>({...fBn(n),options:[n,i]}),ABn=(n,i)=>({...hBn(n),options:[n,i]}),_Bn=(n,i)=>({...mBn(n),options:[n,i]}),xBn=(n,i)=>({...pBn(n),options:[n,i]}),kBn=(n,i)=>({...gBn(n),options:[n,i]}),NBn=(n,i)=>({...bBn(n),options:[n,i]}),CBn=(n,i)=>({...SBn(n),options:[n,i]});var IBn="Arrow",jqt=H.forwardRef((n,i)=>{const{children:s,width:c=10,height:d=5,...g}=n;return I.jsx(no.svg,{...g,ref:i,width:c,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:I.jsx("polygon",{points:"0,0 30,0 15,10"})})});jqt.displayName=IBn;var RBn=jqt;function Sae(n){const[i,s]=H.useState(void 0);return Up(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const c=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const g=d[0];let b,w;if("borderBoxSize"in g){const E=g.borderBoxSize,S=Array.isArray(E)?E[0]:E;b=S.inlineSize,w=S.blockSize}else b=n.offsetWidth,w=n.offsetHeight;s({width:b,height:w})});return c.observe(n,{box:"border-box"}),()=>c.unobserve(n)}else s(void 0)},[n]),i}var oMe="Popper",[Fqt,UM]=Nw(oMe),[OBn,$qt]=Fqt(oMe),Bqt=n=>{const{__scopePopper:i,children:s}=n,[c,d]=H.useState(null);return I.jsx(OBn,{scope:i,anchor:c,onAnchorChange:d,children:s})};Bqt.displayName=oMe;var Uqt="PopperAnchor",Hqt=H.forwardRef((n,i)=>{const{__scopePopper:s,virtualRef:c,...d}=n,g=$qt(Uqt,s),b=H.useRef(null),w=ps(i,b),E=H.useRef(null);return H.useEffect(()=>{const S=E.current;E.current=(c==null?void 0:c.current)||b.current,S!==E.current&&g.onAnchorChange(E.current)}),c?null:I.jsx(no.div,{...d,ref:w})});Hqt.displayName=Uqt;var sMe="PopperContent",[DBn,LBn]=Fqt(sMe),zqt=H.forwardRef((n,i)=>{var Et,Dt,Yt,Ln,Zn,Yn;const{__scopePopper:s,side:c="bottom",sideOffset:d=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:_=0,sticky:A="partial",hideWhenDetached:C=!1,updatePositionStrategy:O="optimized",onPlaced:L,...D}=n,B=$qt(sMe,s),[$,P]=H.useState(null),j=ps(i,Er=>P(Er)),[z,ee]=H.useState(null),ne=Sae(z),Q=(ne==null?void 0:ne.width)??0,ae=(ne==null?void 0:ne.height)??0,he=c+(g!=="center"?"-"+g:""),pe=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},ue=Array.isArray(S)?S:[S],fe=ue.length>0,K={padding:pe,boundary:ue.filter(PBn),altBoundary:fe},{refs:ge,floatingStyles:De,placement:Se,isPositioned:Re,middlewareData:Ae}=EBn({strategy:"fixed",placement:he,whileElementsMounted:(...Er)=>dBn(...Er,{animationFrame:O==="always"}),elements:{reference:B.anchor},middleware:[TBn({mainAxis:d+ae,alignmentAxis:b}),E&&ABn({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?_Bn():void 0,...K}),E&&xBn({...K}),kBn({...K,apply:({elements:Er,rects:Ui,availableWidth:Qr,availableHeight:Hi})=>{const{width:ai,height:ju}=Ui.reference,Xs=Er.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",`${ju}px`)}}),z&&CBn({element:z,padding:w}),jBn({arrowWidth:Q,arrowHeight:ae}),C&&NBn({strategy:"referenceHidden",...K})]}),[xe,We]=Vqt(Se),ut=q2(L);Up(()=>{Re&&(ut==null||ut())},[Re,ut]);const Be=(Et=Ae.arrow)==null?void 0:Et.x,bt=(Dt=Ae.arrow)==null?void 0:Dt.y,Nt=((Yt=Ae.arrow)==null?void 0:Yt.centerOffset)!==0,[pt,Kt]=H.useState();return Up(()=>{$&&Kt(window.getComputedStyle($).zIndex)},[$]),I.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...De,transform:Re?De.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pt,"--radix-popper-transform-origin":[(Ln=Ae.transformOrigin)==null?void 0:Ln.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(DBn,{scope:s,placedSide:xe,onArrowChange:ee,arrowX:Be,arrowY:bt,shouldHideArrow:Nt,children:I.jsx(no.div,{"data-side":xe,"data-align":We,...D,ref:j,style:{...D.style,animation:Re?void 0:"none"}})})})});zqt.displayName=sMe;var Gqt="PopperArrow",MBn={top:"bottom",right:"left",bottom:"top",left:"right"},qqt=H.forwardRef(function(i,s){const{__scopePopper:c,...d}=i,g=LBn(Gqt,c),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(RBn,{...d,ref:s,style:{...d.style,display:"block"}})})});qqt.displayName=Gqt;function PBn(n){return n!==null}var jBn=n=>({name:"transformOrigin",options:n,fn(i){var B,$,P;const{placement:s,rects:c,middlewareData:d}=i,b=((B=d.arrow)==null?void 0:B.centerOffset)!==0,w=b?0:n.arrowWidth,E=b?0:n.arrowHeight,[S,_]=Vqt(s),A={start:"0%",center:"50%",end:"100%"}[_],C=((($=d.arrow)==null?void 0:$.x)??0)+w/2,O=(((P=d.arrow)==null?void 0:P.y)??0)+E/2;let L="",D="";return S==="bottom"?(L=b?A:`${C}px`,D=`${-E}px`):S==="top"?(L=b?A:`${C}px`,D=`${c.floating.height+E}px`):S==="right"?(L=`${-E}px`,D=b?A:`${O}px`):S==="left"&&(L=`${c.floating.width+E}px`,D=b?A:`${O}px`),{data:{x:L,y:D}}}});function Vqt(n){const[i,s="center"]=n.split("-");return[i,s]}var aMe=Bqt,Tae=Hqt,cMe=zqt,uMe=qqt;function FBn(n){const i=$Bn(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(UBn);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function $Bn(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=zBn(d),w=HBn(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var BBn=Symbol("radix.slottable");function UBn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===BBn}function HBn(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function zBn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 Aae="Popover",[Wqt]=Nw(Aae,[UM]),Pz=UM(),[GBn,EN]=Wqt(Aae),Kqt=n=>{const{__scopePopover:i,children:s,open:c,defaultOpen:d,onOpenChange:g,modal:b=!1}=n,w=Pz(i),E=H.useRef(null),[S,_]=H.useState(!1),[A,C]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:Aae});return I.jsx(aMe,{...w,children:I.jsx(GBn,{scope:i,contentId:Bh(),triggerRef:E,open:A,onOpenChange:C,onOpenToggle:H.useCallback(()=>C(O=>!O),[C]),hasCustomAnchor:S,onCustomAnchorAdd:H.useCallback(()=>_(!0),[]),onCustomAnchorRemove:H.useCallback(()=>_(!1),[]),modal:b,children:s})})};Kqt.displayName=Aae;var Yqt="PopoverAnchor",Jqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN(Yqt,s),g=Pz(s),{onCustomAnchorAdd:b,onCustomAnchorRemove:w}=d;return H.useEffect(()=>(b(),()=>w()),[b,w]),I.jsx(Tae,{...g,...c,ref:i})});Jqt.displayName=Yqt;var Xqt="PopoverTrigger",Zqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN(Xqt,s),g=Pz(s),b=ps(i,d.triggerRef),w=I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":rVt(d.open),...c,ref:b,onClick:Dr(n.onClick,d.onOpenToggle)});return d.hasCustomAnchor?w:I.jsx(Tae,{asChild:!0,...g,children:w})});Zqt.displayName=Xqt;var lMe="PopoverPortal",[qBn,VBn]=Wqt(lMe,{forceMount:void 0}),Qqt=n=>{const{__scopePopover:i,forceMount:s,children:c,container:d}=n,g=EN(lMe,i);return I.jsx(qBn,{scope:i,forceMount:s,children:I.jsx(Cw,{present:s||g.open,children:I.jsx(Oz,{asChild:!0,container:d,children:c})})})};Qqt.displayName=lMe;var NM="PopoverContent",eVt=H.forwardRef((n,i)=>{const s=VBn(NM,n.__scopePopover),{forceMount:c=s.forceMount,...d}=n,g=EN(NM,n.__scopePopover);return I.jsx(Cw,{present:c||g.open,children:g.modal?I.jsx(KBn,{...d,ref:i}):I.jsx(YBn,{...d,ref:i})})});eVt.displayName=NM;var WBn=FBn("PopoverContent.RemoveScroll"),KBn=H.forwardRef((n,i)=>{const s=EN(NM,n.__scopePopover),c=H.useRef(null),d=ps(i,c),g=H.useRef(!1);return H.useEffect(()=>{const b=c.current;if(b)return lae(b)},[]),I.jsx(Dz,{as:WBn,allowPinchZoom:!0,children:I.jsx(tVt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(n.onCloseAutoFocus,b=>{var w;b.preventDefault(),g.current||(w=s.triggerRef.current)==null||w.focus()}),onPointerDownOutside:Dr(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:Dr(n.onFocusOutside,b=>b.preventDefault(),{checkForDefaultPrevented:!1})})})}),YBn=H.forwardRef((n,i)=>{const s=EN(NM,n.__scopePopover),c=H.useRef(!1),d=H.useRef(!1);return I.jsx(tVt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(c.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=s.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),tVt=H.forwardRef((n,i)=>{const{__scopePopover:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:g,disableOutsidePointerEvents:b,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onInteractOutside:_,...A}=n,C=EN(NM,s),O=Pz(s);return cae(),I.jsx(Rz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(Iz,{asChild:!0,disableOutsidePointerEvents:b,onInteractOutside:_,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onDismiss:()=>C.onOpenChange(!1),children:I.jsx(cMe,{"data-state":rVt(C.open),role:"dialog",id:C.contentId,...O,...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)"}})})})}),nVt="PopoverClose",JBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN(nVt,s);return I.jsx(no.button,{type:"button",...c,ref:i,onClick:Dr(n.onClick,()=>d.onOpenChange(!1))})});JBn.displayName=nVt;var XBn="PopoverArrow",ZBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=Pz(s);return I.jsx(uMe,{...d,...c,ref:i})});ZBn.displayName=XBn;function rVt(n){return n?"open":"closed"}var QBn=Kqt,eUn=Jqt,tUn=Zqt,nUn=Qqt,iVt=eVt;const dMe=QBn,oVt=tUn,rUn=eUn,_ae=H.forwardRef(({className:n,align:i="center",sideOffset:s=4,container:c,...d},g)=>I.jsx(nUn,{container:c,children:I.jsx(iVt,{ref:g,align:i,sideOffset:s,className:nr("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})}));_ae.displayName=iVt.displayName;function SA(n){return Array.isArray?Array.isArray(n):cVt(n)==="[object Array]"}function iUn(n){if(typeof n=="string")return n;let i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function oUn(n){return n==null?"":iUn(n)}function M2(n){return typeof n=="string"}function sVt(n){return typeof n=="number"}function sUn(n){return n===!0||n===!1||aUn(n)&&cVt(n)=="[object Boolean]"}function aVt(n){return typeof n=="object"}function aUn(n){return aVt(n)&&n!==null}function Pm(n){return n!=null}function cIe(n){return!n.trim().length}function cVt(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const cUn="Incorrect 'index' type",uUn=n=>`Invalid value for key ${n}`,lUn=n=>`Pattern length exceeds max of ${n}.`,dUn=n=>`Missing ${n} property in key`,fUn=n=>`Property 'weight' in key '${n}' must be a positive integer`,l8t=Object.prototype.hasOwnProperty;class hUn{constructor(i){this._keys=[],this._keyMap={};let s=0;i.forEach(c=>{let d=uVt(c);this._keys.push(d),this._keyMap[d.id]=d,s+=d.weight}),this._keys.forEach(c=>{c.weight/=s})}get(i){return this._keyMap[i]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function uVt(n){let i=null,s=null,c=null,d=1,g=null;if(M2(n)||SA(n))c=n,i=d8t(n),s=RDe(n);else{if(!l8t.call(n,"name"))throw new Error(dUn("name"));const b=n.name;if(c=b,l8t.call(n,"weight")&&(d=n.weight,d<=0))throw new Error(fUn(b));i=d8t(b),s=RDe(b),g=n.getFn}return{path:i,id:s,weight:d,src:c,getFn:g}}function d8t(n){return SA(n)?n:n.split(".")}function RDe(n){return SA(n)?n.join("."):n}function pUn(n,i){let s=[],c=!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)||sVt(S)||sUn(S)))s.push(oUn(S));else if(SA(S)){c=!0;for(let _=0,A=S.length;_n.score===i.score?n.idx{this._keysMap[s.id]=c})}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,c=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:_}=E.pop();if(Pm(_))if(M2(_)&&!cIe(_)){let A={v:_,i:S,n:this.norm.get(_)};w.push(A)}else SA(_)&&_.forEach((A,C)=>{E.push({nestedArrIndex:C,value:A})})}c.$[g]=w}else if(M2(b)&&!cIe(b)){let w={v:b,n:this.norm.get(b)};c.$[g]=w}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function lVt(n,i,{getFn:s=co.getFn,fieldNormWeight:c=co.fieldNormWeight}={}){const d=new fMe({getFn:s,fieldNormWeight:c});return d.setKeys(n.map(uVt)),d.setSources(i),d.create(),d}function EUn(n,{getFn:i=co.getFn,fieldNormWeight:s=co.fieldNormWeight}={}){const{keys:c,records:d}=n,g=new fMe({getFn:i,fieldNormWeight:s});return g.setKeys(c),g.setIndexRecords(d),g}function Iie(n,{errors:i=0,currentLocation:s=0,expectedLocation:c=0,distance:d=co.distance,ignoreLocation:g=co.ignoreLocation}={}){const b=i/n.length;if(g)return b;const w=Math.abs(c-s);return d?b+w/d:w?1:b}function SUn(n=[],i=co.minMatchCharLength){let s=[],c=-1,d=-1,g=0;for(let b=n.length;g=i&&s.push([c,d]),c=-1)}return n[g-1]&&g-c>=i&&s.push([c,g-1]),s}const K4=32;function TUn(n,i,s,{location:c=co.location,distance:d=co.distance,threshold:g=co.threshold,findAllMatches:b=co.findAllMatches,minMatchCharLength:w=co.minMatchCharLength,includeMatches:E=co.includeMatches,ignoreLocation:S=co.ignoreLocation}={}){if(i.length>K4)throw new Error(lUn(K4));const _=i.length,A=n.length,C=Math.max(0,Math.min(c,A));let O=g,L=C;const D=w>1||E,B=D?Array(A):[];let $;for(;($=n.indexOf(i,L))>-1;){let Q=Iie(i,{currentLocation:$,expectedLocation:C,distance:d,ignoreLocation:S});if(O=Math.min(Q,O),L=$+_,D){let ae=0;for(;ae<_;)B[$+ae]=1,ae+=1}}L=-1;let P=[],j=1,z=_+A;const ee=1<<_-1;for(let Q=0;Q<_;Q+=1){let ae=0,he=z;for(;ae=pe;ge-=1){let De=ge-1,Se=s[n.charAt(De)];if(D&&(B[De]=+!!Se),fe[ge]=(fe[ge+1]<<1|1)&Se,Q&&(fe[ge]|=(P[ge+1]|P[ge])<<1|1|P[ge+1]),fe[ge]&ee&&(j=Iie(i,{errors:Q,currentLocation:De,expectedLocation:C,distance:d,ignoreLocation:S}),j<=O)){if(O=j,L=De,L<=C)break;pe=Math.max(1,2*C-L)}}if(Iie(i,{errors:Q+1,currentLocation:C,expectedLocation:C,distance:d,ignoreLocation:S})>O)break;P=fe}const ne={isMatch:L>=0,score:Math.max(.001,j)};if(D){const Q=SUn(B,w);Q.length?E&&(ne.indices=Q):ne.isMatch=!1}return ne}function AUn(n){let i={};for(let s=0,c=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 dVt{constructor(i,{location:s=co.location,threshold:c=co.threshold,distance:d=co.distance,includeMatches:g=co.includeMatches,findAllMatches:b=co.findAllMatches,minMatchCharLength:w=co.minMatchCharLength,isCaseSensitive:E=co.isCaseSensitive,ignoreDiacritics:S=co.ignoreDiacritics,ignoreLocation:_=co.ignoreLocation}={}){if(this.options={location:s,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:_},i=E?i:i.toLowerCase(),i=S?ose(i):i,this.pattern=i,this.chunks=[],!this.pattern.length)return;const A=(O,L)=>{this.chunks.push({pattern:O,alphabet:AUn(O),startIndex:L})},C=this.pattern.length;if(C>K4){let O=0;const L=C%K4,D=C-L;for(;O{const{isMatch:P,score:j,indices:z}=TUn(i,D,B,{location:g+$,distance:b,threshold:w,findAllMatches:E,minMatchCharLength:S,includeMatches:d,ignoreLocation:_});P&&(O=!0),C+=j,P&&z&&(A=[...A,...z])});let L={isMatch:O,score:O?C/this.chunks.length:1};return O&&d&&(L.indices=A),L}}class SN{constructor(i){this.pattern=i}static isMultiMatch(i){return f8t(i,this.multiRegex)}static isSingleMatch(i){return f8t(i,this.singleRegex)}search(){}}function f8t(n,i){const s=n.match(i);return s?s[1]:null}class _Un 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 xUn extends SN{constructor(i){super(i)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(i){const c=i.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,i.length-1]}}}class kUn 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 NUn 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 CUn 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 IUn 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 fVt extends SN{constructor(i,{location:s=co.location,threshold:c=co.threshold,distance:d=co.distance,includeMatches:g=co.includeMatches,findAllMatches:b=co.findAllMatches,minMatchCharLength:w=co.minMatchCharLength,isCaseSensitive:E=co.isCaseSensitive,ignoreDiacritics:S=co.ignoreDiacritics,ignoreLocation:_=co.ignoreLocation}={}){super(i),this._bitapSearch=new dVt(i,{location:s,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:_})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(i){return this._bitapSearch.searchIn(i)}}class hVt extends SN{constructor(i){super(i)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(i){let s=0,c;const d=[],g=this.pattern.length;for(;(c=i.indexOf(this.pattern,s))>-1;)s=c+g,d.push([c,s-1]);const b=!!d.length;return{isMatch:b,score:b?0:1,indices:d}}}const ODe=[_Un,hVt,kUn,NUn,IUn,CUn,xUn,fVt],h8t=ODe.length,RUn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OUn="|";function DUn(n,i={}){return n.split(OUn).map(s=>{let c=s.trim().split(RUn).filter(g=>g&&!!g.trim()),d=[];for(let g=0,b=c.length;g!!(n[sse.AND]||n[sse.OR]),jUn=n=>!!n[MDe.PATH],FUn=n=>!SA(n)&&aVt(n)&&!PDe(n),p8t=n=>({[sse.AND]:Object.keys(n).map(i=>({[i]:n[i]}))});function pVt(n,i,{auto:s=!0}={}){const c=d=>{let g=Object.keys(d);const b=jUn(d);if(!b&&g.length>1&&!PDe(d))return c(p8t(d));if(FUn(d)){const E=b?d[MDe.PATH]:g[0],S=b?d[MDe.PATTERN]:d[E];if(!M2(S))throw new Error(uUn(E));const _={keyId:RDe(E),pattern:S};return s&&(_.searcher=LDe(S,i)),_}let w={children:[],operator:g[0]};return g.forEach(E=>{const S=d[E];SA(S)&&S.forEach(_=>{w.children.push(c(_))})}),w};return PDe(n)||(n=p8t(n)),c(n)}function $Un(n,{ignoreFieldNorm:i=co.ignoreFieldNorm}){n.forEach(s=>{let c=1;s.matches.forEach(({key:d,norm:g,score:b})=>{const w=d?d.weight:null;c*=Math.pow(b===0&&w?Number.EPSILON:b,(w||1)*(i?1:g))}),s.score=c})}function BUn(n,i){const s=n.matches;i.matches=[],Pm(s)&&s.forEach(c=>{if(!Pm(c.indices)||!c.indices.length)return;const{indices:d,value:g}=c;let b={indices:d,value:g};c.key&&(b.key=c.key.src),c.idx>-1&&(b.refIndex=c.idx),i.matches.push(b)})}function UUn(n,i){i.score=n.score}function HUn(n,i,{includeMatches:s=co.includeMatches,includeScore:c=co.includeScore}={}){const d=[];return s&&d.push(BUn),c&&d.push(UUn),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={},c){this.options={...co,...s},this.options.useExtendedSearch,this._keyStore=new hUn(this.options.keys),this.setCollection(i,c)}setCollection(i,s){if(this._docs=i,s&&!(s instanceof fMe))throw new Error(cUn);this._myIndex=s||lVt(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 c=0,d=this._docs.length;c-1&&(E=E.slice(0,s)),HUn(E,this._docs,{includeMatches:c,includeScore:d})}_searchStringList(i){const s=LDe(i,this.options),{records:c}=this._myIndex,d=[];return c.forEach(({v:g,i:b,n:w})=>{if(!Pm(g))return;const{isMatch:E,score:S,indices:_}=s.searchIn(g);E&&d.push({item:g,idx:b,matches:[{score:S,value:g,norm:w,indices:_}]})}),d}_searchLogical(i){const s=pVt(i,this.options),c=(w,E,S)=>{if(!w.children){const{keyId:A,searcher:C}=w,O=this._findMatches({key:this._keyStore.get(A),value:this._myIndex.getValueForItemAtKeyId(E,A),searcher:C});return O&&O.length?[{idx:S,item:E,matches:O}]:[]}const _=[];for(let A=0,C=w.children.length;A{if(Pm(w)){let S=c(s,w,E);S.length&&(g[E]||(g[E]={idx:E,item:w,matches:[]},b.push(g[E])),S.forEach(({matches:_})=>{g[E].matches.push(..._)}))}}),b}_searchObjectList(i){const s=LDe(i,this.options),{keys:c,records:d}=this._myIndex,g=[];return d.forEach(({$:b,i:w})=>{if(!Pm(b))return;let E=[];c.forEach((S,_)=>{E.push(...this._findMatches({key:S,value:b[_],searcher:s}))}),E.length&&g.push({idx:w,item:b,matches:E})}),g}_findMatches({key:i,value:s,searcher:c}){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:_}=c.searchIn(g);E&&d.push({score:S,key:i,value:g,idx:b,norm:w,indices:_})});else{const{v:g,n:b}=s,{isMatch:w,score:E,indices:S}=c.searchIn(g);w&&d.push({score:E,key:i,value:g,norm:b,indices:S})}return d}}NR.version="7.1.0";NR.createIndex=lVt;NR.parseIndex=EUn;NR.config=co;NR.parseQuery=pVt;PUn(MUn);function gVt(n,i){const[s,c]=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:c,filteredItems:g.map(b=>b.item),results:g}}const g8t=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,b8t=yqt,xae=(n,i)=>s=>{var c;if((i==null?void 0:i.variants)==null)return b8t(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 _=s==null?void 0:s[S],A=g==null?void 0:g[S];if(_===null)return null;const C=g8t(_)||g8t(A);return d[S][C]}),w=s&&Object.entries(s).reduce((S,_)=>{let[A,C]=_;return C===void 0||(S[A]=C),S},{}),E=i==null||(c=i.compoundVariants)===null||c===void 0?void 0:c.reduce((S,_)=>{let{class:A,className:C,...O}=_;return Object.entries(O).every(L=>{let[D,B]=L;return Array.isArray(B)?B.includes({...g,...w}[D]):{...g,...w}[D]===B})?[...S,A,C]:S},[]);return b8t(n,b,E,s==null?void 0:s.class,s==null?void 0:s.className)},zUn=xae("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"}}),mi=H.forwardRef(({className:n,variant:i,size:s,asChild:c=!1,...d},g)=>{const b=c?m7n:"button";return I.jsx(b,{className:nr(zUn({variant:i,size:s,className:n})),ref:g,...d})});mi.displayName="Button";const hMe={IN_SEQUENCE:"cafe_in_sequence"},GUn=new Set(Object.values(hMe));function jDe(n){return GUn.has(n)}function m8t(n){return Object.keys(n).some(jDe)?Object.fromEntries(Object.entries(n).filter(([i])=>!jDe(i))):n}function qUn(n){return(n==null?void 0:n[hMe.IN_SEQUENCE])===!0}function uIe(n){return{...n,[hMe.IN_SEQUENCE]:!0}}function un(n,i,s){function c(w,E){if(w._zod||Object.defineProperty(w,"_zod",{value:{def:E,constr:b,traits:new Set},enumerable:!1}),w._zod.traits.has(n))return;w._zod.traits.add(n),i(w,E);const S=b.prototype,_=Object.keys(S);for(let A=0;A<_.length;A++){const C=_[A];C in w||(w[C]=S[C].bind(w))}}const d=(s==null?void 0:s.Parent)??Object;class g extends d{}Object.defineProperty(g,"name",{value:n});function b(w){var E;const S=s!=null&&s.Parent?new g:this;c(S,w),(E=S._zod).deferred??(E.deferred=[]);for(const _ of S._zod.deferred)_();return S}return Object.defineProperty(b,"init",{value:c}),Object.defineProperty(b,Symbol.hasInstance,{value:w=>{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 aM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class bVt extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const mVt={};function hN(n){return mVt}function wVt(n){const i=Object.values(n).filter(c=>typeof c=="number");return Object.entries(n).filter(([c,d])=>i.indexOf(+c)===-1).map(([c,d])=>d)}function FDe(n,i){return typeof i=="bigint"?i.toString():i}function kae(n){return{get value(){{const i=n();return Object.defineProperty(this,"value",{value:i}),i}}}}function pMe(n){return n==null}function gMe(n){const i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;return n.slice(i,s)}function VUn(n,i){const s=(n.toString().split(".")[1]||"").length,c=i.toString();let d=(c.split(".")[1]||"").length;if(d===0&&/\d?e-\d?/.test(c)){const E=c.match(/\d?e-(\d?)/);E!=null&&E[1]&&(d=Number.parseInt(E[1]))}const g=s>d?s:d,b=Number.parseInt(n.toFixed(g).replace(".","")),w=Number.parseInt(i.toFixed(g).replace(".",""));return b%w/10**g}const w8t=Symbol("evaluating");function Ys(n,i,s){let c;Object.defineProperty(n,i,{get(){if(c!==w8t)return c===void 0&&(c=w8t,c=s()),c},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 c=Object.getOwnPropertyDescriptors(s);Object.assign(i,c)}return Object.defineProperties({},i)}function y8t(n){return JSON.stringify(n)}function WUn(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const yVt="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function sz(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const KUn=kae(()=>{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 CM(n){if(sz(n)===!1)return!1;const i=n.constructor;if(i===void 0||typeof i!="function")return!0;const s=i.prototype;return!(sz(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function vVt(n){return CM(n)?{...n}:Array.isArray(n)?[...n]:n}const YUn=new Set(["string","number","symbol"]);function IM(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function AN(n,i,s){const c=new n._zod.constr(i??n._zod.def);return(!i||s!=null&&s.parent)&&(c._zod.parent=n),c}function vi(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 JUn(n){return Object.keys(n).filter(i=>n[i]._zod.optin==="optional"&&n[i]._zod.optout==="optional")}const XUn={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 ZUn(n,i){const s=n._zod.def,c=s.checks;if(c&&c.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 QUn(n,i){const s=n._zod.def,c=s.checks;if(c&&c.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 eHn(n,i){if(!CM(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 tHn(n,i){if(!CM(i))throw new Error("Invalid input to safeExtend: expected a plain object");const s=TN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i};return CR(this,"shape",c),c}});return AN(n,s)}function nHn(n,i){const s=TN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i._zod.def.shape};return CR(this,"shape",c),c},get catchall(){return i._zod.def.catchall},checks:[]});return AN(n,s)}function rHn(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 iHn(n,i,s){const c=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,c)}function q5(n,i=0){var s;if(n.aborted===!0)return!0;for(let c=i;c{var c;return(c=s).path??(c.path=[]),s.path.unshift(n),s})}function Rie(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 c={...n,path:n.path??[]};if(!n.message){const _=Rie((b=(g=(d=n.inst)==null?void 0:d._zod.def)==null?void 0:g.error)==null?void 0:b.call(g,n))??Rie((w=i==null?void 0:i.error)==null?void 0:w.call(i,n))??Rie((E=s.customError)==null?void 0:E.call(s,n))??Rie((S=s.localeError)==null?void 0:S.call(s,n))??"Invalid input";c.message=_}return delete c.inst,delete c.continue,i!=null&&i.reportInput||delete c.input,c}function bMe(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function az(...n){const[i,s,c]=n;return typeof i=="string"?{message:i,code:"custom",input:s,inst:c}:{...i}}const EVt=(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,FDe,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},SVt=un("$ZodError",EVt),TVt=un("$ZodError",EVt,{Parent:Error});function oHn(n,i=s=>s.message){const s={},c=[];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))):c.push(i(d));return{formErrors:c,fieldErrors:s}}function sHn(n,i=s=>s.message){const s={_errors:[]},c=d=>{for(const g of d.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(b=>c({issues:b}));else if(g.code==="invalid_key")c({issues:g.issues});else if(g.code==="invalid_element")c({issues:g.issues});else if(g.path.length===0)s._errors.push(i(g));else{let b=s,w=0;for(;w(i,s,c,d)=>{const g=c?Object.assign(c,{async:!1}):{async:!1},b=i._zod.run({value:s,issues:[]},g);if(b instanceof Promise)throw new aM;if(b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>pN(E,g,hN())));throw yVt(w,d==null?void 0:d.callee),w}return b.value},wMe=n=>async(i,s,c,d)=>{const g=c?Object.assign(c,{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 yVt(w,d==null?void 0:d.callee),w}return b.value},Nae=n=>(i,s,c)=>{const d=c?{...c,async:!1}:{async:!1},g=i._zod.run({value:s,issues:[]},d);if(g instanceof Promise)throw new aM;return g.issues.length?{success:!1,error:new(n??SVt)(g.issues.map(b=>pN(b,d,hN())))}:{success:!0,data:g.value}},aHn=Nae(TVt),Cae=n=>async(i,s,c)=>{const d=c?Object.assign(c,{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}},cHn=Cae(TVt),uHn=n=>(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return mMe(n)(i,s,d)},lHn=n=>(i,s,c)=>mMe(n)(i,s,c),dHn=n=>async(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return wMe(n)(i,s,d)},fHn=n=>async(i,s,c)=>wMe(n)(i,s,c),hHn=n=>(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Nae(n)(i,s,d)},pHn=n=>(i,s,c)=>Nae(n)(i,s,c),gHn=n=>async(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return Cae(n)(i,s,d)},bHn=n=>async(i,s,c)=>Cae(n)(i,s,c),mHn=/^[cC][^\s-]{8,}$/,wHn=/^[0-9a-z]+$/,yHn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,vHn=/^[0-9a-vA-V]{20}$/,EHn=/^[A-Za-z0-9]{27}$/,SHn=/^[a-zA-Z0-9_-]{21}$/,THn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,AHn=/^([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})$/,v8t=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)$/,_Hn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xHn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function kHn(){return new RegExp(xHn,"u")}const NHn=/^(?:(?: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}|:))$/,IHn=/^((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])$/,RHn=/^(([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])$/,OHn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,AVt=/^[A-Za-z0-9_-]*$/,DHn=/^\+[1-9]\d{6,14}$/,_Vt="(?:(?:\\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])))",LHn=new RegExp(`^${_Vt}$`);function xVt(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 MHn(n){return new RegExp(`^${xVt(n)}$`)}function PHn(n){const i=xVt({precision:n.precision}),s=["Z"];n.local&&s.push(""),n.offset&&s.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const c=`${i}(?:${s.join("|")})`;return new RegExp(`^${_Vt}T(?:${c})$`)}const jHn=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}$`)},FHn=/^-?\d+$/,kVt=/^-?\d+(?:\.\d+)?$/,$Hn=/^(?:true|false)$/i,BHn=/^null$/i,UHn=/^[^A-Z]*$/,HHn=/^[^a-z]*$/,pb=un("$ZodCheck",(n,i)=>{var s;n._zod??(n._zod={}),n._zod.def=i,(s=n._zod).onattach??(s.onattach=[])}),NVt={number:"number",bigint:"bigint",object:"date"},CVt=un("$ZodCheckLessThan",(n,i)=>{pb.init(n,i);const s=NVt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.maximum:d.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value{(i.inclusive?c.value<=i.value:c.value{pb.init(n,i);const s=NVt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.minimum:d.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>g&&(i.inclusive?d.minimum=i.value:d.exclusiveMinimum=i.value)}),n._zod.check=c=>{(i.inclusive?c.value>=i.value:c.value>i.value)||c.issues.push({origin:s,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),zHn=un("$ZodCheckMultipleOf",(n,i)=>{pb.init(n,i),n._zod.onattach.push(s=>{var c;(c=s._zod.bag).multipleOf??(c.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):VUn(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})}}),GHn=un("$ZodCheckNumberFormat",(n,i)=>{var b;pb.init(n,i),i.format=i.format||"float64";const s=(b=i.format)==null?void 0:b.includes("int"),c=s?"int":"number",[d,g]=XUn[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=FHn)}),n._zod.check=w=>{const E=w.value;if(s){if(!Number.isInteger(E)){w.issues.push({expected:c,format:i.format,code:"invalid_type",continue:!1,input:E,inst:n});return}if(!Number.isSafeInteger(E)){E>0?w.issues.push({input:E,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort}):w.issues.push({input:E,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort});return}}Eg&&w.issues.push({origin:"number",input:E,code:"too_big",maximum:g,inclusive:!0,inst:n,continue:!i.abort})}}),qHn=un("$ZodCheckMaxLength",(n,i)=>{var s;pb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!pMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum{const d=c.value;if(d.length<=i.maximum)return;const b=bMe(d);c.issues.push({origin:b,code:"too_big",maximum:i.maximum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),VHn=un("$ZodCheckMinLength",(n,i)=>{var s;pb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!pMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>d&&(c._zod.bag.minimum=i.minimum)}),n._zod.check=c=>{const d=c.value;if(d.length>=i.minimum)return;const b=bMe(d);c.issues.push({origin:b,code:"too_small",minimum:i.minimum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),WHn=un("$ZodCheckLengthEquals",(n,i)=>{var s;pb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!pMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag;d.minimum=i.length,d.maximum=i.length,d.length=i.length}),n._zod.check=c=>{const d=c.value,g=d.length;if(g===i.length)return;const b=bMe(d),w=g>i.length;c.issues.push({origin:b,...w?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:c.value,inst:n,continue:!i.abort})}}),Iae=un("$ZodCheckStringFormat",(n,i)=>{var s,c;pb.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})}):(c=n._zod).check??(c.check=()=>{})}),KHn=un("$ZodCheckRegex",(n,i)=>{Iae.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})}}),YHn=un("$ZodCheckLowerCase",(n,i)=>{i.pattern??(i.pattern=UHn),Iae.init(n,i)}),JHn=un("$ZodCheckUpperCase",(n,i)=>{i.pattern??(i.pattern=HHn),Iae.init(n,i)}),XHn=un("$ZodCheckIncludes",(n,i)=>{pb.init(n,i);const s=IM(i.includes),c=new RegExp(typeof i.position=="number"?`^.{${i.position}}${s}`:s);i.pattern=c,n._zod.onattach.push(d=>{const g=d._zod.bag;g.patterns??(g.patterns=new Set),g.patterns.add(c)}),n._zod.check=d=>{d.value.includes(i.includes,i.position)||d.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:d.value,inst:n,continue:!i.abort})}}),ZHn=un("$ZodCheckStartsWith",(n,i)=>{pb.init(n,i);const s=new RegExp(`^${IM(i.prefix)}.*`);i.pattern??(i.pattern=s),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=c=>{c.value.startsWith(i.prefix)||c.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:c.value,inst:n,continue:!i.abort})}}),QHn=un("$ZodCheckEndsWith",(n,i)=>{pb.init(n,i);const s=new RegExp(`.*${IM(i.suffix)}$`);i.pattern??(i.pattern=s),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=c=>{c.value.endsWith(i.suffix)||c.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:c.value,inst:n,continue:!i.abort})}}),ezn=un("$ZodCheckOverwrite",(n,i)=>{pb.init(n,i),n._zod.check=s=>{s.value=i.tx(s.value)}});class tzn{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}const c=i.split(` `).filter(b=>b),d=Math.min(...c.map(b=>b.length-b.trimStart().length)),g=c.map(b=>b.slice(d)).map(b=>" ".repeat(this.indent*2)+b);for(const b of g)this.content.push(b)}compile(){const i=Function,s=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...s,d.join(` `))}}const nzn={major:4,minor:3,patch:5},Kc=un("$ZodType",(n,i)=>{var d;var s;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=nzn;const c=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&c.unshift(n);for(const g of c)for(const b of g._zod.onattach)b(n);if(c.length===0)(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 _=q5(w),A;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(_)continue;const O=w.issues.length,L=C._zod.check(w);if(L instanceof Promise&&(S==null?void 0:S.async)===!1)throw new aM;if(A||L instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await L,w.issues.length!==O&&(_||(_=q5(w,O)))});else{if(w.issues.length===O)continue;_||(_=q5(w,O))}}return A?A.then(()=>w):w},b=(w,E,S)=>{if(q5(w))return w.aborted=!0,w;const _=g(E,c,S);if(_ instanceof Promise){if(S.async===!1)throw new aM;return _.then(A=>n._zod.parse(A,S))}return n._zod.parse(_,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const _=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return _ instanceof Promise?_.then(A=>b(A,w,E)):b(_,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new aM;return S.then(_=>g(_,c,E))}return g(S,c,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=aHn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return cHn(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}))}),yMe=un("$ZodString",(n,i)=>{var s;Kc.init(n,i),n._zod.pattern=[...((s=n==null?void 0:n._zod.bag)==null?void 0:s.patterns)??[]].pop()??jHn(n._zod.bag),n._zod.parse=(c,d)=>{if(i.coerce)try{c.value=String(c.value)}catch{}return typeof c.value=="string"||c.issues.push({expected:"string",code:"invalid_type",input:c.value,inst:n}),c}}),Pu=un("$ZodStringFormat",(n,i)=>{Iae.init(n,i),yMe.init(n,i)}),rzn=un("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=AHn),Pu.init(n,i)}),izn=un("$ZodUUID",(n,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=v8t(c))}else i.pattern??(i.pattern=v8t());Pu.init(n,i)}),ozn=un("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=_Hn),Pu.init(n,i)}),szn=un("$ZodURL",(n,i)=>{Pu.init(n,i),n._zod.check=s=>{try{const c=s.value.trim(),d=new URL(c);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=c;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:n,continue:!i.abort})}}}),azn=un("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=kHn()),Pu.init(n,i)}),czn=un("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=SHn),Pu.init(n,i)}),uzn=un("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=mHn),Pu.init(n,i)}),lzn=un("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=wHn),Pu.init(n,i)}),dzn=un("$ZodULID",(n,i)=>{i.pattern??(i.pattern=yHn),Pu.init(n,i)}),fzn=un("$ZodXID",(n,i)=>{i.pattern??(i.pattern=vHn),Pu.init(n,i)}),hzn=un("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=EHn),Pu.init(n,i)}),pzn=un("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=PHn(i)),Pu.init(n,i)}),gzn=un("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=LHn),Pu.init(n,i)}),bzn=un("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=MHn(i)),Pu.init(n,i)}),mzn=un("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=THn),Pu.init(n,i)}),wzn=un("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=NHn),Pu.init(n,i),n._zod.bag.format="ipv4"}),yzn=un("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=CHn),Pu.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})}}}),vzn=un("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=IHn),Pu.init(n,i)}),Ezn=un("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=RHn),Pu.init(n,i),n._zod.check=s=>{const c=s.value.split("/");try{if(c.length!==2)throw new Error;const[d,g]=c;if(!g)throw new Error;const b=Number(g);if(`${b}`!==g)throw new Error;if(b<0||b>128)throw new Error;new URL(`http://[${d}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:n,continue:!i.abort})}}});function RVt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const Szn=un("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=OHn),Pu.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=s=>{RVt(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst:n,continue:!i.abort})}});function Tzn(n){if(!AVt.test(n))return!1;const i=n.replace(/[-_]/g,c=>c==="-"?"+":"/"),s=i.padEnd(Math.ceil(i.length/4)*4,"=");return RVt(s)}const Azn=un("$ZodBase64URL",(n,i)=>{i.pattern??(i.pattern=AVt),Pu.init(n,i),n._zod.bag.contentEncoding="base64url",n._zod.check=s=>{Tzn(s.value)||s.issues.push({code:"invalid_format",format:"base64url",input:s.value,inst:n,continue:!i.abort})}}),_zn=un("$ZodE164",(n,i)=>{i.pattern??(i.pattern=DHn),Pu.init(n,i)});function xzn(n,i=null){try{const s=n.split(".");if(s.length!==3)return!1;const[c]=s;if(!c)return!1;const d=JSON.parse(atob(c));return!("typ"in d&&(d==null?void 0:d.typ)!=="JWT"||!d.alg||i&&(!("alg"in d)||d.alg!==i))}catch{return!1}}const kzn=un("$ZodJWT",(n,i)=>{Pu.init(n,i),n._zod.check=s=>{xzn(s.value,i.alg)||s.issues.push({code:"invalid_format",format:"jwt",input:s.value,inst:n,continue:!i.abort})}}),OVt=un("$ZodNumber",(n,i)=>{Kc.init(n,i),n._zod.pattern=n._zod.bag.pattern??kVt,n._zod.parse=(s,c)=>{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}}),Nzn=un("$ZodNumberFormat",(n,i)=>{GHn.init(n,i),OVt.init(n,i)}),Czn=un("$ZodBoolean",(n,i)=>{Kc.init(n,i),n._zod.pattern=$Hn,n._zod.parse=(s,c)=>{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}}),Izn=un("$ZodNull",(n,i)=>{Kc.init(n,i),n._zod.pattern=BHn,n._zod.values=new Set([null]),n._zod.parse=(s,c)=>{const d=s.value;return d===null||s.issues.push({expected:"null",code:"invalid_type",input:d,inst:n}),s}}),Rzn=un("$ZodAny",(n,i)=>{Kc.init(n,i),n._zod.parse=s=>s}),Ozn=un("$ZodUnknown",(n,i)=>{Kc.init(n,i),n._zod.parse=s=>s}),Dzn=un("$ZodNever",(n,i)=>{Kc.init(n,i),n._zod.parse=(s,c)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:n}),s)});function E8t(n,i,s){n.issues.length&&i.issues.push(...V5(s,n.issues)),i.value[s]=n.value}const Lzn=un("$ZodArray",(n,i)=>{Kc.init(n,i),n._zod.parse=(s,c)=>{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;bE8t(S,s,b))):E8t(E,s,b)}return g.length?Promise.all(g).then(()=>s):s}});function ase(n,i,s,c,d){if(n.issues.length){if(d&&!(s in c))return;i.issues.push(...V5(s,n.issues))}n.value===void 0?s in c&&(i.value[s]=void 0):i.value[s]=n.value}function DVt(n){var c,d,g,b;const i=Object.keys(n.shape);for(const w of i)if(!((b=(g=(d=(c=n.shape)==null?void 0:c[w])==null?void 0:d._zod)==null?void 0:g.traits)!=null&&b.has("$ZodType")))throw new Error(`Invalid element at key "${w}": expected a Zod schema`);const s=JUn(n.shape);return{...n,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(s)}}function LVt(n,i,s,c,d,g){const b=[],w=d.keySet,E=d.catchall._zod,S=E.def.type,_=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:[]},c);C instanceof Promise?n.push(C.then(O=>ase(O,s,A,i,_))):ase(C,s,A,i,_)}return b.length&&s.issues.push({code:"unrecognized_keys",keys:b,input:i,inst:g}),n.length?Promise.all(n).then(()=>s):s}const Mzn=un("$ZodObject",(n,i)=>{Kc.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 c=kae(()=>DVt(i));Ys(n._zod,"propValues",()=>{const w=i.shape,E={};for(const S in w){const _=w[S]._zod;if(_.values){E[S]??(E[S]=new Set);for(const A of _.values)E[S].add(A)}}return E});const d=sz,g=i.catchall;let b;n._zod.parse=(w,E)=>{b??(b=c.value);const S=w.value;if(!d(S))return w.issues.push({expected:"object",code:"invalid_type",input:S,inst:n}),w;w.value={};const _=[],A=b.shape;for(const C of b.keys){const O=A[C],L=O._zod.optout==="optional",D=O._zod.run({value:S[C],issues:[]},E);D instanceof Promise?_.push(D.then(B=>ase(B,w,C,S,L))):ase(D,w,C,S,L)}return g?LVt(_,S,w,E,c.value,n):_.length?Promise.all(_).then(()=>w):w}}),Pzn=un("$ZodObjectJIT",(n,i)=>{Mzn.init(n,i);const s=n._zod.parse,c=kae(()=>DVt(i)),d=C=>{var j;const O=new tzn(["shape","payload","ctx"]),L=c.value,D=z=>{const ee=y8t(z);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`};O.write("const input = payload.value;");const B=Object.create(null);let $=0;for(const z of L.keys)B[z]=`key_${$++}`;O.write("const newResult = {};");for(const z of L.keys){const ee=B[z],ne=y8t(z),Q=C[z],ae=((j=Q==null?void 0:Q._zod)==null?void 0:j.optout)==="optional";O.write(`const ${ee} = ${D(z)};`),ae?O.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; } `):O.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; } `)}O.write("payload.value = newResult;"),O.write("return payload;");const P=O.compile();return(z,ee)=>P(C,z,ee)};let g;const b=sz,w=!mVt.jitless,S=w&&KUn.value,_=i.catchall;let A;n._zod.parse=(C,O)=>{A??(A=c.value);const L=C.value;return b(L)?w&&S&&(O==null?void 0:O.async)===!1&&O.jitless!==!0?(g||(g=d(i.shape)),C=g(C,O),_?LVt([],L,C,O,A,n):C):s(C,O):(C.issues.push({expected:"object",code:"invalid_type",input:L,inst:n}),C)}});function S8t(n,i,s,c){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!q5(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,c,hN())))}),i)}const MVt=un("$ZodUnion",(n,i)=>{Kc.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=>gMe(g.source)).join("|")})$`)}});const s=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(s)return c(d,g);let b=!1;const w=[];for(const E of i.options){const S=E._zod.run({value:d.value,issues:[]},g);if(S instanceof Promise)w.push(S),b=!0;else{if(S.issues.length===0)return S;w.push(S)}}return b?Promise.all(w).then(E=>S8t(E,d,n,g)):S8t(w,d,n,g)}}),jzn=un("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,MVt.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 c=kae(()=>{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(!sz(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=c.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?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)}}),Fzn=un("$ZodIntersection",(n,i)=>{Kc.init(n,i),n._zod.parse=(s,c)=>{const d=s.value,g=i.left._zod.run({value:d,issues:[]},c),b=i.right._zod.run({value:d,issues:[]},c);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>T8t(s,E,S)):T8t(s,g,b)}});function $De(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(CM(n)&&CM(i)){const s=Object.keys(i),c=Object.keys(n).filter(g=>s.indexOf(g)!==-1),d={...n,...i};for(const g of c){const b=$De(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 c=0;cw.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),q5(n))return n;const b=$De(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 $zn=un("$ZodRecord",(n,i)=>{Kc.init(n,i),n._zod.parse=(s,c)=>{const d=s.value;if(!CM(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 _=i.valueType._zod.run({value:d[S],issues:[]},c);_ instanceof Promise?g.push(_.then(A=>{A.issues.length&&s.issues.push(...V5(S,A.issues)),s.value[S]=A.value})):(_.issues.length&&s.issues.push(...V5(S,_.issues)),s.value[S]=_.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:[]},c);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof w=="string"&&kVt.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:[]},c);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,c,hN())),input:w,path:[w],inst:n});continue}const _=i.valueType._zod.run({value:d[w],issues:[]},c);_ instanceof Promise?g.push(_.then(A=>{A.issues.length&&s.issues.push(...V5(w,A.issues)),s.value[E.value]=A.value})):(_.issues.length&&s.issues.push(...V5(w,_.issues)),s.value[E.value]=_.value)}}return g.length?Promise.all(g).then(()=>s):s}}),Bzn=un("$ZodEnum",(n,i)=>{Kc.init(n,i);const s=wVt(i.entries),c=new Set(s);n._zod.values=c,n._zod.pattern=new RegExp(`^(${s.filter(d=>YUn.has(typeof d)).map(d=>typeof d=="string"?IM(d):d.toString()).join("|")})$`),n._zod.parse=(d,g)=>{const b=d.value;return c.has(b)||d.issues.push({code:"invalid_value",values:s,input:b,inst:n}),d}}),Uzn=un("$ZodLiteral",(n,i)=>{if(Kc.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(c=>typeof c=="string"?IM(c):c?IM(c.toString()):String(c)).join("|")})$`),n._zod.parse=(c,d)=>{const g=c.value;return s.has(g)||c.issues.push({code:"invalid_value",values:i.values,input:g,inst:n}),c}}),Hzn=un("$ZodTransform",(n,i)=>{Kc.init(n,i),n._zod.parse=(s,c)=>{if(c.direction==="backward")throw new bVt(n.constructor.name);const d=i.transform(s.value,s);if(c.async)return(d instanceof Promise?d:Promise.resolve(d)).then(b=>(s.value=b,s));if(d instanceof Promise)throw new aM;return s.value=d,s}});function A8t(n,i){return n.issues.length&&i===void 0?{issues:[],value:void 0}:n}const PVt=un("$ZodOptional",(n,i)=>{Kc.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(`^(${gMe(s.source)})?$`):void 0}),n._zod.parse=(s,c)=>{if(i.innerType._zod.optin==="optional"){const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>A8t(g,s.value)):A8t(d,s.value)}return s.value===void 0?s:i.innerType._zod.run(s,c)}}),zzn=un("$ZodExactOptional",(n,i)=>{PVt.init(n,i),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"pattern",()=>i.innerType._zod.pattern),n._zod.parse=(s,c)=>i.innerType._zod.run(s,c)}),Gzn=un("$ZodNullable",(n,i)=>{Kc.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(`^(${gMe(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,c)=>s.value===null?s:i.innerType._zod.run(s,c)}),qzn=un("$ZodDefault",(n,i)=>{Kc.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);if(s.value===void 0)return s.value=i.defaultValue,s;const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>_8t(g,i)):_8t(d,i)}});function _8t(n,i){return n.value===void 0&&(n.value=i.defaultValue),n}const Vzn=un("$ZodPrefault",(n,i)=>{Kc.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,c)=>(c.direction==="backward"||s.value===void 0&&(s.value=i.defaultValue),i.innerType._zod.run(s,c))}),Wzn=un("$ZodNonOptional",(n,i)=>{Kc.init(n,i),Ys(n._zod,"values",()=>{const s=i.innerType._zod.values;return s?new Set([...s].filter(c=>c!==void 0)):void 0}),n._zod.parse=(s,c)=>{const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>x8t(g,n)):x8t(d,n)}});function x8t(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 Kzn=un("$ZodCatch",(n,i)=>{Kc.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,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);const d=i.innerType._zod.run(s,c);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,c,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,c,hN()))},input:s.value}),s.issues=[]),s)}}),Yzn=un("$ZodPipe",(n,i)=>{Kc.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,c)=>{if(c.direction==="backward"){const g=i.out._zod.run(s,c);return g instanceof Promise?g.then(b=>Oie(b,i.in,c)):Oie(g,i.in,c)}const d=i.in._zod.run(s,c);return d instanceof Promise?d.then(g=>Oie(g,i.out,c)):Oie(d,i.out,c)}});function Oie(n,i,s){return n.issues.length?(n.aborted=!0,n):i._zod.run({value:n.value,issues:n.issues},s)}const Jzn=un("$ZodReadonly",(n,i)=>{Kc.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,c;return(c=(s=i.innerType)==null?void 0:s._zod)==null?void 0:c.optin}),Ys(n._zod,"optout",()=>{var s,c;return(c=(s=i.innerType)==null?void 0:s._zod)==null?void 0:c.optout}),n._zod.parse=(s,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(k8t):k8t(d)}});function k8t(n){return n.value=Object.freeze(n.value),n}const Xzn=un("$ZodLazy",(n,i)=>{Kc.init(n,i),Ys(n._zod,"innerType",()=>i.getter()),Ys(n._zod,"pattern",()=>{var s,c;return(c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.pattern}),Ys(n._zod,"propValues",()=>{var s,c;return(c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.propValues}),Ys(n._zod,"optin",()=>{var s,c;return((c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.optin)??void 0}),Ys(n._zod,"optout",()=>{var s,c;return((c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.optout)??void 0}),n._zod.parse=(s,c)=>n._zod.innerType._zod.run(s,c)}),Zzn=un("$ZodCustom",(n,i)=>{pb.init(n,i),Kc.init(n,i),n._zod.parse=(s,c)=>s,n._zod.check=s=>{const c=s.value,d=i.fn(c);if(d instanceof Promise)return d.then(g=>N8t(g,s,c,n));N8t(d,s,c,n)}});function N8t(n,i,s,c){if(!n){const d={code:"custom",input:s,inst:c,path:[...c._zod.def.path??[]],continue:!c._zod.def.abort};c._zod.def.params&&(d.params=c._zod.def.params),i.issues.push(az(d))}}var C8t;class Qzn{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...s){const c=s[0];return this._map.set(i,c),c&&typeof c=="object"&&"id"in c&&this._idmap.set(c.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const 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 c={...this.get(s)??{}};delete c.id;const d={...c,...this._map.get(i)};return Object.keys(d).length?d:void 0}return this._map.get(i)}has(i){return this._map.has(i)}}function eGn(){return new Qzn}(C8t=globalThis).__zod_globalRegistry??(C8t.__zod_globalRegistry=eGn());const QU=globalThis.__zod_globalRegistry;function tGn(n,i){return new n({type:"string",...vi(i)})}function nGn(n,i){return new n({type:"string",format:"email",check:"string_format",abort:!1,...vi(i)})}function I8t(n,i){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...vi(i)})}function rGn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...vi(i)})}function iGn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...vi(i)})}function oGn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...vi(i)})}function sGn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...vi(i)})}function aGn(n,i){return new n({type:"string",format:"url",check:"string_format",abort:!1,...vi(i)})}function cGn(n,i){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...vi(i)})}function uGn(n,i){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...vi(i)})}function lGn(n,i){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...vi(i)})}function dGn(n,i){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...vi(i)})}function fGn(n,i){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...vi(i)})}function hGn(n,i){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...vi(i)})}function pGn(n,i){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...vi(i)})}function gGn(n,i){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...vi(i)})}function bGn(n,i){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...vi(i)})}function mGn(n,i){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...vi(i)})}function wGn(n,i){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...vi(i)})}function yGn(n,i){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...vi(i)})}function vGn(n,i){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...vi(i)})}function EGn(n,i){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...vi(i)})}function SGn(n,i){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...vi(i)})}function TGn(n,i){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...vi(i)})}function AGn(n,i){return new n({type:"string",format:"date",check:"string_format",...vi(i)})}function _Gn(n,i){return new n({type:"string",format:"time",check:"string_format",precision:null,...vi(i)})}function xGn(n,i){return new n({type:"string",format:"duration",check:"string_format",...vi(i)})}function kGn(n,i){return new n({type:"number",checks:[],...vi(i)})}function NGn(n,i){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...vi(i)})}function CGn(n,i){return new n({type:"boolean",...vi(i)})}function IGn(n,i){return new n({type:"null",...vi(i)})}function RGn(n){return new n({type:"any"})}function OGn(n){return new n({type:"unknown"})}function DGn(n,i){return new n({type:"never",...vi(i)})}function R8t(n,i){return new CVt({check:"less_than",...vi(i),value:n,inclusive:!1})}function lIe(n,i){return new CVt({check:"less_than",...vi(i),value:n,inclusive:!0})}function O8t(n,i){return new IVt({check:"greater_than",...vi(i),value:n,inclusive:!1})}function dIe(n,i){return new IVt({check:"greater_than",...vi(i),value:n,inclusive:!0})}function D8t(n,i){return new zHn({check:"multiple_of",...vi(i),value:n})}function jVt(n,i){return new qHn({check:"max_length",...vi(i),maximum:n})}function cse(n,i){return new VHn({check:"min_length",...vi(i),minimum:n})}function FVt(n,i){return new WHn({check:"length_equals",...vi(i),length:n})}function LGn(n,i){return new KHn({check:"string_format",format:"regex",...vi(i),pattern:n})}function MGn(n){return new YHn({check:"string_format",format:"lowercase",...vi(n)})}function PGn(n){return new JHn({check:"string_format",format:"uppercase",...vi(n)})}function jGn(n,i){return new XHn({check:"string_format",format:"includes",...vi(i),includes:n})}function FGn(n,i){return new ZHn({check:"string_format",format:"starts_with",...vi(i),prefix:n})}function $Gn(n,i){return new QHn({check:"string_format",format:"ends_with",...vi(i),suffix:n})}function HM(n){return new ezn({check:"overwrite",tx:n})}function BGn(n){return HM(i=>i.normalize(n))}function UGn(){return HM(n=>n.trim())}function HGn(){return HM(n=>n.toLowerCase())}function zGn(){return HM(n=>n.toUpperCase())}function GGn(){return HM(n=>WUn(n))}function qGn(n,i,s){return new n({type:"array",element:i,...vi(s)})}function VGn(n,i,s){return new n({type:"custom",check:"custom",fn:i,...vi(s)})}function WGn(n){const i=KGn(s=>(s.addIssue=c=>{if(typeof c=="string")s.issues.push(az(c,s.value,i._zod.def));else{const d=c;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(az(d))}},n(s.value,s)));return i}function KGn(n,i){const s=new pb({check:"custom",...vi(i)});return s._zod.check=n,s}function $Vt(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)??QU,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 _,A;var c;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=(_=n._zod).toJSONSchema)==null?void 0:A.call(_);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 L=b.schema,D=i.processors[d.type];if(!D)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${d.type}`);D(n,i,L,C)}const O=n._zod.parent;O&&(b.ref||(b.ref=O),gd(O,i,C),i.seen.get(O).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&&((c=b.schema).default??(c.default=b.schema._prefault)),delete b.schema._prefault,i.seen.get(n).schema}function BVt(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 c=new Map;for(const _ of n.seen.entries()){const A=(b=n.metadataRegistry.get(_[0]))==null?void 0:b.id;if(A){const C=c.get(A);if(C&&C!==_[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);c.set(A,_[0])}}const d=_=>{var D;const A=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const B=(D=n.external.registry.get(_[0]))==null?void 0:D.id,$=n.external.uri??(j=>j);if(B)return{ref:$(B)};const P=_[1].defId??_[1].schema.id??`schema${n.counter++}`;return _[1].defId=P,{defId:P,ref:`${$("__shared")}#/${A}/${P}`}}if(_[1]===s)return{ref:"#"};const O=`#/${A}/`,L=_[1].schema.id??`__schema${n.counter++}`;return{defId:L,ref:O+L}},g=_=>{if(_[1].schema.$ref)return;const A=_[1],{ref:C,defId:O}=d(_);A.def={...A.schema},O&&(A.defId=O);const L=A.schema;for(const D in L)delete L[D];L.$ref=C};if(n.cycles==="throw")for(const _ of n.seen.entries()){const A=_[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 _ of n.seen.entries()){const A=_[1];if(i===_[0]){g(_);continue}if(n.external){const O=(E=n.external.registry.get(_[0]))==null?void 0:E.id;if(i!==_[0]&&O){g(_);continue}}if((S=n.metadataRegistry.get(_[0]))==null?void 0:S.id){g(_);continue}if(A.cycle){g(_);continue}if(A.count>1&&n.reused==="ref"){g(_);continue}}}function UVt(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 c=S=>{const _=n.seen.get(S);if(_.ref===null)return;const A=_.def??_.schema,C={...A},O=_.ref;if(_.ref=null,O){c(O);const D=n.seen.get(O),B=D.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===O)for(const P in A)P==="$ref"||P==="allOf"||P in C||delete A[P];if(B.$ref)for(const P in A)P==="$ref"||P==="allOf"||P in D.def&&JSON.stringify(A[P])===JSON.stringify(D.def[P])&&delete A[P]}const L=S._zod.parent;if(L&&L!==O){c(L);const D=n.seen.get(L);if(D!=null&&D.schema.$ref&&(A.$ref=D.schema.$ref,D.def))for(const B in A)B==="$ref"||B==="allOf"||B in D.def&&JSON.stringify(A[B])===JSON.stringify(D.def[B])&&delete A[B]}n.override({zodSchema:S,jsonSchema:A,path:_.path??[]})};for(const S of[...n.seen.entries()].reverse())c(S[0]);const d={};if(n.target==="draft-2020-12"?d.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?d.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?d.$schema="http://json-schema.org/draft-04/schema#":n.target,(b=n.external)!=null&&b.uri){const S=(w=n.external.registry.get(i))==null?void 0:w.id;if(!S)throw new Error("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,s.def??s.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const _=S[1];_.def&&_.defId&&(g[_.defId]=_.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:use(i,"input",n.processors),output:use(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 c=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return $g(c.element,s);if(c.type==="set")return $g(c.valueType,s);if(c.type==="lazy")return $g(c.getter(),s);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return $g(c.innerType,s);if(c.type==="intersection")return $g(c.left,s)||$g(c.right,s);if(c.type==="record"||c.type==="map")return $g(c.keyType,s)||$g(c.valueType,s);if(c.type==="pipe")return $g(c.in,s)||$g(c.out,s);if(c.type==="object"){for(const d in c.shape)if($g(c.shape[d],s))return!0;return!1}if(c.type==="union"){for(const d of c.options)if($g(d,s))return!0;return!1}if(c.type==="tuple"){for(const d of c.items)if($g(d,s))return!0;return!!(c.rest&&$g(c.rest,s))}return!1}const YGn=(n,i={})=>s=>{const c=$Vt({...s,processors:i});return gd(n,c),BVt(c,n),UVt(c,n)},use=(n,i,s={})=>c=>{const{libraryOptions:d,target:g}=c??{},b=$Vt({...d??{},target:g,io:i,processors:s});return gd(n,b),BVt(b,n),UVt(b,n)},JGn={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},XGn=(n,i,s,c)=>{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=JGn[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const _=[...E];_.length===1?d.pattern=_[0].source:_.length>1&&(d.allOf=[..._.map(A=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}},ZGn=(n,i,s,c)=>{const d=s,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:_}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof _=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=_,d.exclusiveMinimum=!0):d.exclusiveMinimum=_),typeof g=="number"&&(d.minimum=g,typeof _=="number"&&i.target!=="draft-04"&&(_>=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)},QGn=(n,i,s,c)=>{s.type="boolean"},eqn=(n,i,s,c)=>{i.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},tqn=(n,i,s,c)=>{s.not={}},nqn=(n,i,s,c)=>{},rqn=(n,i,s,c)=>{},iqn=(n,i,s,c)=>{const d=n._zod.def,g=wVt(d.entries);g.every(b=>typeof b=="number")&&(s.type="number"),g.every(b=>typeof b=="string")&&(s.type="string"),s.enum=g},oqn=(n,i,s,c)=>{const d=n._zod.def,g=[];for(const b of d.values)if(b===void 0){if(i.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(i.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");g.push(Number(b))}else g.push(b);if(g.length!==0)if(g.length===1){const b=g[0];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},sqn=(n,i,s,c)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},aqn=(n,i,s,c)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cqn=(n,i,s,c)=>{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,{...c,path:[...c.path,"items"]})},uqn=(n,i,s,c)=>{var S;const d=s,g=n._zod.def;d.type="object",d.properties={};const b=g.shape;for(const _ in b)d.properties[_]=gd(b[_],i,{...c,path:[...c.path,"properties",_]});const w=new Set(Object.keys(b)),E=new Set([...w].filter(_=>{const A=g.shape[_]._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,{...c,path:[...c.path,"additionalProperties"]})):i.io==="output"&&(d.additionalProperties=!1)},lqn=(n,i,s,c)=>{const d=n._zod.def,g=d.inclusive===!1,b=d.options.map((w,E)=>gd(w,i,{...c,path:[...c.path,g?"oneOf":"anyOf",E]}));g?s.oneOf=b:s.anyOf=b},dqn=(n,i,s,c)=>{const d=n._zod.def,g=gd(d.left,i,{...c,path:[...c.path,"allOf",0]}),b=gd(d.right,i,{...c,path:[...c.path,"allOf",1]}),w=S=>"allOf"in S&&Object.keys(S).length===1,E=[...w(g)?g.allOf:[g],...w(b)?b.allOf:[b]];s.allOf=E},fqn=(n,i,s,c)=>{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 _=gd(g.valueType,i,{...c,path:[...c.path,"patternProperties","*"]});d.patternProperties={};for(const A of E)d.patternProperties[A.source]=_}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(d.propertyNames=gd(g.keyType,i,{...c,path:[...c.path,"propertyNames"]})),d.additionalProperties=gd(g.valueType,i,{...c,path:[...c.path,"additionalProperties"]});const S=b._zod.values;if(S){const _=[...S].filter(A=>typeof A=="string"||typeof A=="number");_.length>0&&(d.required=_)}},hqn=(n,i,s,c)=>{const d=n._zod.def,g=gd(d.innerType,i,c),b=i.seen.get(n);i.target==="openapi-3.0"?(b.ref=d.innerType,s.nullable=!0):s.anyOf=[g,{type:"null"}]},pqn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},gqn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,s.default=JSON.parse(JSON.stringify(d.defaultValue))},bqn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,i.io==="input"&&(s._prefault=JSON.parse(JSON.stringify(d.defaultValue)))},mqn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType;let b;try{b=d.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}s.default=b},wqn=(n,i,s,c)=>{const d=n._zod.def,g=i.io==="input"?d.in._zod.def.type==="transform"?d.out:d.in:d.out;gd(g,i,c);const b=i.seen.get(n);b.ref=g},yqn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,s.readOnly=!0},HVt=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},vqn=(n,i,s,c)=>{const d=n._zod.innerType;gd(d,i,c);const g=i.seen.get(n);g.ref=d},Eqn=un("ZodISODateTime",(n,i)=>{pzn.init(n,i),hl.init(n,i)});function Sqn(n){return TGn(Eqn,n)}const Tqn=un("ZodISODate",(n,i)=>{gzn.init(n,i),hl.init(n,i)});function Aqn(n){return AGn(Tqn,n)}const _qn=un("ZodISOTime",(n,i)=>{bzn.init(n,i),hl.init(n,i)});function xqn(n){return _Gn(_qn,n)}const kqn=un("ZodISODuration",(n,i)=>{mzn.init(n,i),hl.init(n,i)});function Nqn(n){return xGn(kqn,n)}const zVt=(n,i)=>{SVt.init(n,i),n.name="ZodError",Object.defineProperties(n,{format:{value:s=>sHn(n,s)},flatten:{value:s=>oHn(n,s)},addIssue:{value:s=>{n.issues.push(s),n.message=JSON.stringify(n.issues,FDe,2)}},addIssues:{value:s=>{n.issues.push(...s),n.message=JSON.stringify(n.issues,FDe,2)}},isEmpty:{get(){return n.issues.length===0}}})},Cqn=un("ZodError",zVt),Iw=un("ZodError",zVt,{Parent:Error}),Iqn=mMe(Iw),Rqn=wMe(Iw),Oqn=Nae(Iw),Dqn=Cae(Iw),Lqn=uHn(Iw),Mqn=lHn(Iw),Pqn=dHn(Iw),jqn=fHn(Iw),Fqn=hHn(Iw),$qn=pHn(Iw),Bqn=gHn(Iw),Uqn=bHn(Iw),Yc=un("ZodType",(n,i)=>(Kc.init(n,i),Object.assign(n["~standard"],{jsonSchema:{input:use(n,"input"),output:use(n,"output")}}),n.toJSONSchema=YGn(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(c=>typeof c=="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]}),{parent:!0}),n.with=n.check,n.clone=(s,c)=>AN(n,s,c),n.brand=()=>n,n.register=(s,c)=>(s.add(n,c),n),n.parse=(s,c)=>Iqn(n,s,c,{callee:n.parse}),n.safeParse=(s,c)=>Oqn(n,s,c),n.parseAsync=async(s,c)=>Rqn(n,s,c,{callee:n.parseAsync}),n.safeParseAsync=async(s,c)=>Dqn(n,s,c),n.spa=n.safeParseAsync,n.encode=(s,c)=>Lqn(n,s,c),n.decode=(s,c)=>Mqn(n,s,c),n.encodeAsync=async(s,c)=>Pqn(n,s,c),n.decodeAsync=async(s,c)=>jqn(n,s,c),n.safeEncode=(s,c)=>Fqn(n,s,c),n.safeDecode=(s,c)=>$qn(n,s,c),n.safeEncodeAsync=async(s,c)=>Bqn(n,s,c),n.safeDecodeAsync=async(s,c)=>Uqn(n,s,c),n.refine=(s,c)=>n.check(FVn(s,c)),n.superRefine=s=>n.check($Vn(s)),n.overwrite=s=>n.check(HM(s)),n.optional=()=>j8t(n),n.exactOptional=()=>AVn(n),n.nullable=()=>F8t(n),n.nullish=()=>j8t(F8t(n)),n.nonoptional=s=>IVn(n,s),n.array=()=>hs(n),n.or=s=>to([n,s]),n.and=s=>wVn(n,s),n.transform=s=>$8t(n,SVn(s)),n.default=s=>kVn(n,s),n.prefault=s=>CVn(n,s),n.catch=s=>OVn(n,s),n.pipe=s=>$8t(n,s),n.readonly=()=>MVn(n),n.describe=s=>{const c=n.clone();return QU.add(c,{description:s}),c},Object.defineProperty(n,"description",{get(){var s;return(s=QU.get(n))==null?void 0:s.description},configurable:!0}),n.meta=(...s)=>{if(s.length===0)return QU.get(n);const c=n.clone();return QU.add(c,s[0]),c},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=s=>s(n),n)),GVt=un("_ZodString",(n,i)=>{yMe.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(c,d,g)=>XGn(n,c,d);const s=n._zod.bag;n.format=s.format??null,n.minLength=s.minimum??null,n.maxLength=s.maximum??null,n.regex=(...c)=>n.check(LGn(...c)),n.includes=(...c)=>n.check(jGn(...c)),n.startsWith=(...c)=>n.check(FGn(...c)),n.endsWith=(...c)=>n.check($Gn(...c)),n.min=(...c)=>n.check(cse(...c)),n.max=(...c)=>n.check(jVt(...c)),n.length=(...c)=>n.check(FVt(...c)),n.nonempty=(...c)=>n.check(cse(1,...c)),n.lowercase=c=>n.check(MGn(c)),n.uppercase=c=>n.check(PGn(c)),n.trim=()=>n.check(UGn()),n.normalize=(...c)=>n.check(BGn(...c)),n.toLowerCase=()=>n.check(HGn()),n.toUpperCase=()=>n.check(zGn()),n.slugify=()=>n.check(GGn())}),Hqn=un("ZodString",(n,i)=>{yMe.init(n,i),GVt.init(n,i),n.email=s=>n.check(nGn(zqn,s)),n.url=s=>n.check(aGn(Gqn,s)),n.jwt=s=>n.check(SGn(oVn,s)),n.emoji=s=>n.check(cGn(qqn,s)),n.guid=s=>n.check(I8t(L8t,s)),n.uuid=s=>n.check(rGn(Die,s)),n.uuidv4=s=>n.check(iGn(Die,s)),n.uuidv6=s=>n.check(oGn(Die,s)),n.uuidv7=s=>n.check(sGn(Die,s)),n.nanoid=s=>n.check(uGn(Vqn,s)),n.guid=s=>n.check(I8t(L8t,s)),n.cuid=s=>n.check(lGn(Wqn,s)),n.cuid2=s=>n.check(dGn(Kqn,s)),n.ulid=s=>n.check(fGn(Yqn,s)),n.base64=s=>n.check(yGn(nVn,s)),n.base64url=s=>n.check(vGn(rVn,s)),n.xid=s=>n.check(hGn(Jqn,s)),n.ksuid=s=>n.check(pGn(Xqn,s)),n.ipv4=s=>n.check(gGn(Zqn,s)),n.ipv6=s=>n.check(bGn(Qqn,s)),n.cidrv4=s=>n.check(mGn(eVn,s)),n.cidrv6=s=>n.check(wGn(tVn,s)),n.e164=s=>n.check(EGn(iVn,s)),n.datetime=s=>n.check(Sqn(s)),n.date=s=>n.check(Aqn(s)),n.time=s=>n.check(xqn(s)),n.duration=s=>n.check(Nqn(s))});function Zt(n){return tGn(Hqn,n)}const hl=un("ZodStringFormat",(n,i)=>{Pu.init(n,i),GVt.init(n,i)}),zqn=un("ZodEmail",(n,i)=>{ozn.init(n,i),hl.init(n,i)}),L8t=un("ZodGUID",(n,i)=>{rzn.init(n,i),hl.init(n,i)}),Die=un("ZodUUID",(n,i)=>{izn.init(n,i),hl.init(n,i)}),Gqn=un("ZodURL",(n,i)=>{szn.init(n,i),hl.init(n,i)}),qqn=un("ZodEmoji",(n,i)=>{azn.init(n,i),hl.init(n,i)}),Vqn=un("ZodNanoID",(n,i)=>{czn.init(n,i),hl.init(n,i)}),Wqn=un("ZodCUID",(n,i)=>{uzn.init(n,i),hl.init(n,i)}),Kqn=un("ZodCUID2",(n,i)=>{lzn.init(n,i),hl.init(n,i)}),Yqn=un("ZodULID",(n,i)=>{dzn.init(n,i),hl.init(n,i)}),Jqn=un("ZodXID",(n,i)=>{fzn.init(n,i),hl.init(n,i)}),Xqn=un("ZodKSUID",(n,i)=>{hzn.init(n,i),hl.init(n,i)}),Zqn=un("ZodIPv4",(n,i)=>{wzn.init(n,i),hl.init(n,i)}),Qqn=un("ZodIPv6",(n,i)=>{yzn.init(n,i),hl.init(n,i)}),eVn=un("ZodCIDRv4",(n,i)=>{vzn.init(n,i),hl.init(n,i)}),tVn=un("ZodCIDRv6",(n,i)=>{Ezn.init(n,i),hl.init(n,i)}),nVn=un("ZodBase64",(n,i)=>{Szn.init(n,i),hl.init(n,i)}),rVn=un("ZodBase64URL",(n,i)=>{Azn.init(n,i),hl.init(n,i)}),iVn=un("ZodE164",(n,i)=>{_zn.init(n,i),hl.init(n,i)}),oVn=un("ZodJWT",(n,i)=>{kzn.init(n,i),hl.init(n,i)}),qVt=un("ZodNumber",(n,i)=>{OVt.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(c,d,g)=>ZGn(n,c,d),n.gt=(c,d)=>n.check(O8t(c,d)),n.gte=(c,d)=>n.check(dIe(c,d)),n.min=(c,d)=>n.check(dIe(c,d)),n.lt=(c,d)=>n.check(R8t(c,d)),n.lte=(c,d)=>n.check(lIe(c,d)),n.max=(c,d)=>n.check(lIe(c,d)),n.int=c=>n.check(M8t(c)),n.safe=c=>n.check(M8t(c)),n.positive=c=>n.check(O8t(0,c)),n.nonnegative=c=>n.check(dIe(0,c)),n.negative=c=>n.check(R8t(0,c)),n.nonpositive=c=>n.check(lIe(0,c)),n.multipleOf=(c,d)=>n.check(D8t(c,d)),n.step=(c,d)=>n.check(D8t(c,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 kGn(qVt,n)}const sVn=un("ZodNumberFormat",(n,i)=>{Nzn.init(n,i),qVt.init(n,i)});function M8t(n){return NGn(sVn,n)}const aVn=un("ZodBoolean",(n,i)=>{Czn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>QGn(n,s,c)});function Sw(n){return CGn(aVn,n)}const cVn=un("ZodNull",(n,i)=>{Izn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>eqn(n,s,c)});function P8t(n){return IGn(cVn,n)}const uVn=un("ZodAny",(n,i)=>{Rzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>nqn()});function lVn(){return RGn(uVn)}const dVn=un("ZodUnknown",(n,i)=>{Ozn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>rqn()});function Dc(){return OGn(dVn)}const fVn=un("ZodNever",(n,i)=>{Dzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>tqn(n,s,c)});function hVn(n){return DGn(fVn,n)}const pVn=un("ZodArray",(n,i)=>{Lzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>cqn(n,s,c,d),n.element=i.element,n.min=(s,c)=>n.check(cse(s,c)),n.nonempty=s=>n.check(cse(1,s)),n.max=(s,c)=>n.check(jVt(s,c)),n.length=(s,c)=>n.check(FVt(s,c)),n.unwrap=()=>n.element});function hs(n,i){return qGn(pVn,n,i)}const VVt=un("ZodObject",(n,i)=>{Pzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>uqn(n,s,c,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:Dc()}),n.loose=()=>n.clone({...n._zod.def,catchall:Dc()}),n.strict=()=>n.clone({...n._zod.def,catchall:hVn()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=s=>eHn(n,s),n.safeExtend=s=>tHn(n,s),n.merge=s=>nHn(n,s),n.pick=s=>ZUn(n,s),n.omit=s=>QUn(n,s),n.partial=(...s)=>rHn(KVt,n,s[0]),n.required=(...s)=>iHn(YVt,n,s[0])});function Sc(n,i){const s={type:"object",shape:n??{},...vi(i)};return new VVt(s)}function Hp(n,i){return new VVt({type:"object",shape:n,catchall:Dc(),...vi(i)})}const WVt=un("ZodUnion",(n,i)=>{MVt.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>lqn(n,s,c,d),n.options=i.options});function to(n,i){return new WVt({type:"union",options:n,...vi(i)})}const gVn=un("ZodDiscriminatedUnion",(n,i)=>{WVt.init(n,i),jzn.init(n,i)});function bVn(n,i,s){return new gVn({type:"union",options:i,discriminator:n,...vi(s)})}const mVn=un("ZodIntersection",(n,i)=>{Fzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>dqn(n,s,c,d)});function wVn(n,i){return new mVn({type:"intersection",left:n,right:i})}const yVn=un("ZodRecord",(n,i)=>{$zn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>fqn(n,s,c,d),n.keyType=i.keyType,n.valueType=i.valueType});function yf(n,i,s){return new yVn({type:"record",keyType:n,valueType:i,...vi(s)})}const BDe=un("ZodEnum",(n,i)=>{Bzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(c,d,g)=>iqn(n,c,d),n.enum=i.entries,n.options=Object.values(i.entries);const s=new Set(Object.keys(i.entries));n.extract=(c,d)=>{const g={};for(const b of c)if(s.has(b))g[b]=i.entries[b];else throw new Error(`Key ${b} not found in enum`);return new BDe({...i,checks:[],...vi(d),entries:g})},n.exclude=(c,d)=>{const g={...i.entries};for(const b of c)if(s.has(b))delete g[b];else throw new Error(`Key ${b} not found in enum`);return new BDe({...i,checks:[],...vi(d),entries:g})}});function Gg(n,i){const s=Array.isArray(n)?Object.fromEntries(n.map(c=>[c,c])):n;return new BDe({type:"enum",entries:s,...vi(i)})}const vVn=un("ZodLiteral",(n,i)=>{Uzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>oqn(n,s,c),n.values=new Set(i.values),Object.defineProperty(n,"value",{get(){if(i.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function _N(n,i){return new vVn({type:"literal",values:Array.isArray(n)?n:[n],...vi(i)})}const EVn=un("ZodTransform",(n,i)=>{Hzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>aqn(n,s),n._zod.parse=(s,c)=>{if(c.direction==="backward")throw new bVt(n.constructor.name);s.addIssue=g=>{if(typeof g=="string")s.issues.push(az(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(az(b))}};const d=i.transform(s.value,s);return d instanceof Promise?d.then(g=>(s.value=g,s)):(s.value=d,s)}});function SVn(n){return new EVn({type:"transform",transform:n})}const KVt=un("ZodOptional",(n,i)=>{PVt.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>HVt(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function j8t(n){return new KVt({type:"optional",innerType:n})}const TVn=un("ZodExactOptional",(n,i)=>{zzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>HVt(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function AVn(n){return new TVn({type:"optional",innerType:n})}const _Vn=un("ZodNullable",(n,i)=>{Gzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>hqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function F8t(n){return new _Vn({type:"nullable",innerType:n})}const xVn=un("ZodDefault",(n,i)=>{qzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>gqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function kVn(n,i){return new xVn({type:"default",innerType:n,get defaultValue(){return typeof i=="function"?i():vVt(i)}})}const NVn=un("ZodPrefault",(n,i)=>{Vzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>bqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function CVn(n,i){return new NVn({type:"prefault",innerType:n,get defaultValue(){return typeof i=="function"?i():vVt(i)}})}const YVt=un("ZodNonOptional",(n,i)=>{Wzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>pqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function IVn(n,i){return new YVt({type:"nonoptional",innerType:n,...vi(i)})}const RVn=un("ZodCatch",(n,i)=>{Kzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>mqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function OVn(n,i){return new RVn({type:"catch",innerType:n,catchValue:typeof i=="function"?i:()=>i})}const DVn=un("ZodPipe",(n,i)=>{Yzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>wqn(n,s,c,d),n.in=i.in,n.out=i.out});function $8t(n,i){return new DVn({type:"pipe",in:n,out:i})}const LVn=un("ZodReadonly",(n,i)=>{Jzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>yqn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function MVn(n){return new LVn({type:"readonly",innerType:n})}const PVn=un("ZodLazy",(n,i)=>{Xzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>vqn(n,s,c,d),n.unwrap=()=>n._zod.def.getter()});function vMe(n){return new PVn({type:"lazy",getter:n})}const jVn=un("ZodCustom",(n,i)=>{Zzn.init(n,i),Yc.init(n,i),n._zod.processJSONSchema=(s,c,d)=>sqn(n,s)});function FVn(n,i={}){return VGn(jVn,n,i)}function $Vn(n){return WGn(n)}const Pl={custom:"custom"};Zt().min(1).brand();const B8t=Zt().regex(/^[a-z_]+\.[a-z0-9_]+$/,"Entity ID must be in format: domain.entity_name (e.g., light.living_room)"),zM=Sc({x:pa(),y:pa()});Sc({id:Zt(),type:Gg(["source","target"]),position:Gg(["top","bottom","left","right"])});const BVn=Gg(["single","restart","queued","parallel"]),UVn=Gg(["silent","warning","critical"]),JVt=Sc({id:Zt().min(1),source:Zt().min(1),target:Zt().min(1),sourceHandle:Zt().nullable().optional(),targetHandle:Zt().nullable().optional(),label:Zt().optional(),animated:Sw().optional()});JVt.extend({sourceHandle:Gg(["true","false"])});const HVn=["sun","mon","tue","wed","thu","fri","sat"],Ug=Hp({alias:Zt().optional(),condition:Zt().optional(),enabled:Sw().optional(),entity_id:to([Zt(),hs(Zt())]).optional(),state:to([Zt(),hs(Zt())]).optional(),value_template:Zt().optional(),after:Zt().optional(),before:Zt().optional(),weekday:hs(Gg(HVn)).optional(),after_offset:Zt().optional(),before_offset:Zt().optional(),zone:Zt().optional(),conditions:hs(vMe(()=>Ug)).optional(),above:to([Zt(),pa()]).optional(),below:to([Zt(),pa()]).optional(),attribute:Zt().optional(),id:to([Zt(),hs(Zt())]).optional()});Gg(["event","template","zone","state","time","time_pattern","mqtt","webhook","sun","numeric_state","homeassistant","device","calendar"]);const x5=to([Zt(),hs(Zt())]),zVn=Hp({entity_id:x5.optional(),device_id:x5.optional(),label_id:x5.optional(),area_id:x5.optional(),floor_id:x5.optional()}),gN=Hp({alias:Zt().optional(),platform:Zt().optional(),trigger:Zt().optional(),target:zVn.optional(),options:Hp({}).optional(),entity_id:x5.optional(),from:to([Zt(),hs(Zt()),P8t()]).optional(),to:to([Zt(),hs(Zt()),P8t()]).optional(),for:to([Zt(),pa(),Sc({hours:to([pa(),Zt()]).optional(),minutes:to([pa(),Zt()]).optional(),seconds:to([pa(),Zt()]).optional(),milliseconds:to([pa(),Zt()]).optional()})]).optional(),at:Dc().optional(),offset:Zt().optional(),event:Zt().optional(),event_type:to([Zt(),hs(Zt())]).optional(),event_data:yf(Zt(),Dc()).optional(),above:to([Zt(),pa()]).optional(),below:to([Zt(),pa()]).optional(),value_template:Zt().optional(),template:Zt().optional(),webhook_id:Zt().optional(),zone:Zt().optional(),topic:Zt().optional(),payload:Zt().optional(),command:to([Zt(),hs(Zt())]).optional()}).transform(n=>{const i=n.trigger??n.platform??"state",{platform:s,...c}=n;return{...c,trigger:i}}),U8t=Sc({mode:Gg(["single","restart","queued","parallel"]).default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning","critical"]).optional(),initial_state:Sw().optional(),hide_entity:Sw().optional(),trace:Sc({stored_traces:pa().optional()}).optional()});function GVn(n){return typeof n=="object"&&n!==null&&("condition"in n||"entity_id"in n||"state"in n)}function EMe(n){return typeof n=="object"&&n!==null&&"type"in n&&"device_id"in n&&"domain"in n}const XVt=Sc({version:pa(),nodes:yf(Zt(),Sc({x:pa(),y:pa()})),graph_id:Zt(),graph_version:pa(),strategy:Gg(["native","state-machine"])}),H8t=vMe(()=>Sc({conditions:to([Ug,hs(Ug)]),sequence:to([$m,hs($m)]),alias:Zt().optional()})),$m=vMe(()=>Hp({service:Zt().optional(),action:Zt().optional(),event:Zt().optional(),event_data:yf(Zt(),Dc()).optional(),id:Zt().optional(),alias:Zt().optional(),target:yf(Zt(),Dc()).optional(),data:yf(Zt(),Dc()).optional(),data_template:yf(Zt(),Dc()).optional(),response_variable:Zt().optional(),continue_on_error:Sw().optional(),enabled:Sw().optional(),delay:to([Zt(),pa(),yf(Zt(),pa())]).optional(),wait_template:to([Zt(),yf(Zt(),Dc())]).optional(),timeout:to([Zt(),pa(),yf(Zt(),pa())]).optional(),continue_on_timeout:Sw().optional(),wait_for_trigger:to([gN,hs(gN)]).optional(),choose:to([H8t,hs(H8t)]).optional(),default:hs($m).optional(),if:hs(Ug).optional(),then:hs($m).optional(),else:hs($m).optional(),variables:yf(Zt(),Dc()).optional(),repeat:Sc({count:to([Zt(),pa()]).optional(),while:hs(Ug).optional(),until:to([Zt(),hs(Zt()),hs(Ug)]).optional(),sequence:hs($m)}).optional()})),qVn=Sc({id:Zt().optional(),alias:Zt().optional(),description:Zt().optional(),trigger_variables:yf(Zt(),Dc()).optional(),trigger:to([gN,hs(gN)]).optional(),condition:to([Ug,hs(Ug)]).optional(),action:to([$m,hs($m)]),mode:Gg(["single","restart","queued","parallel"]).optional().default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning"]).optional(),initial_state:Sw().optional(),hide_entity:Sw().optional(),trace:yf(Zt(),Dc()).optional(),variables:Sc({_cafe_metadata:XVt.optional()}).catchall(Dc()).optional()});qVn.omit({action:!0}).extend({action:to([$m,hs($m)]).optional(),sequence:to([$m,hs($m)])});const VVn=Hp({id:Zt().optional(),alias:Zt().optional(),delay:to([Zt(),Hp({hours:to([pa(),Zt()]).optional(),minutes:to([pa(),Zt()]).optional(),seconds:to([pa(),Zt()]).optional(),milliseconds:to([pa(),Zt()]).optional()})])}),WVn=Hp({id:Zt().optional(),alias:Zt().optional(),wait_template:Zt().optional(),wait_for_trigger:hs(gN).optional(),timeout:to([Zt(),Hp({hours:to([pa(),Zt()]).optional(),minutes:to([pa(),Zt()]).optional(),seconds:to([pa(),Zt()]).optional(),milliseconds:to([pa(),Zt()]).optional()})]).optional(),continue_on_timeout:Sw().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=Hp({id:Zt().optional(),alias:Zt().optional(),variables:yf(Zt(),Dc())}),YVn=Hp({id:Zt().min(1),type:_N("trigger"),position:zM,data:gN}),JVn=Hp({id:Zt().min(1),type:_N("condition"),position:zM,data:Ug}),XVn=Hp({id:Zt().min(1),type:_N("action"),position:zM,data:$m}),ZVn=Hp({id:Zt().min(1),type:_N("delay"),position:zM,data:VVn}),QVn=Hp({id:Zt().min(1),type:_N("wait"),position:zM,data:WVn}),eWn=Hp({id:Zt().min(1),type:_N("set_variables"),position:zM,data:KVn}),tWn=bVn("type",[YVn,JVn,XVn,ZVn,QVn,eWn]),nWn=Sc({mode:BVn.default("single"),max_exceeded:UVn.optional(),max:pa().positive().optional(),initial_state:Sw().optional(),hide_entity:Sw().optional(),trace:Sc({stored_traces:pa().optional()}).optional()}),rWn=Sc({automation_id:Zt(),entity_id:Zt(),alias:Zt(),node_prefix:Zt(),imported_at:Zt()}),iWn=Sc({mode:_N("merged"),sources:hs(rWn)}),SMe=Sc({id:Zt().uuid(),name:Zt().min(1),description:Zt().optional(),nodes:hs(tWn),edges:hs(JVt),metadata:nWn.optional(),version:_N(1).default(1),userVariables:yf(Zt(),Dc()).optional(),userTriggerVariables:yf(Zt(),Dc()).optional(),workspace:iWn.optional()});function ZVt(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 c=n.nodes.filter(b=>b.type==="trigger");c.length===0&&i.push("Graph must have at least one trigger node");const d=new Set(n.edges.map(b=>b.target));for(const b of c)d.has(b.id)&&i.push(`Trigger node ${b.id} should not have incoming edges`);const g=new Set(n.nodes.filter(b=>b.type==="condition").map(b=>b.id));for(const b of n.edges)g.has(b.source)&&b.sourceHandle!=="true"&&b.sourceHandle!=="false"&&i.push(`Edge ${b.id} from condition node must have sourceHandle 'true' or 'false', got: ${b.sourceHandle}`);return{valid:i.length===0,errors:i}}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"]);Sc({entity_id:to([B8t,hs(B8t)]).optional(),area_id:to([Zt(),hs(Zt())]).optional(),device_id:to([Zt(),hs(Zt())]).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"});Sc({entity_id:to([Zt(),hs(Zt())]).optional(),area_id:to([Zt(),hs(Zt())]).optional(),device_id:to([Zt(),hs(Zt())]).optional()}).optional();yf(Zt(),Dc());yf(Zt(),Zt());const oWn=Sc({wait_template:Zt().optional(),wait_for_trigger:hs(lVn()).optional(),timeout:to([Zt(),Sc({})]).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"]}),sWn=Sc({service:Zt().optional(),event:Zt().optional()}).passthrough().superRefine((n,i)=>{const s=typeof n.event=="string"&&n.event.trim()!=="",c=typeof n.service=="string"&&n.service.trim()!=="";if(!s&&!c){i.addIssue({code:Pl.custom,message:"Either a service (e.g. light.turn_on) or an event name is required",path:["service"]});return}c&&!n.service.includes(".")&&i.addIssue({code:Pl.custom,message:"Service must be in domain.service format (e.g., light.turn_on)",path:["service"]})});function cM(n){return Array.isArray(n)?n.length>0:typeof n=="string"?n.trim()!=="":!1}function aWn(n){return Array.isArray(n)?n.length>0&&n.every(i=>typeof i=="string"&&i.trim()!==""):typeof n=="string"?n.trim()!=="":!1}const cWn=Sc({trigger:Zt().optional(),platform:Zt().optional(),entity_id:Dc().optional(),to:Dc().optional(),from:Dc().optional(),event_type:Zt().optional(),at:Dc().optional(),topic:Zt().optional(),webhook_id:Zt().optional(),device_id:Zt().optional(),zone:Zt().optional(),event:Zt().optional(),value_template:Zt().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":cM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state triggers",path:["entity_id"]});break;case"numeric_state":cM(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":cM(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}}),uWn=Sc({delay:to([Zt(),Sc({})])}).passthrough().refine(n=>typeof n.delay=="string"?n.delay.trim()!=="":!0,{message:"Delay value is required",path:["delay"]}),lWn=Sc({condition:Zt().min(1,"Condition type is required"),entity_id:Dc().optional(),state:Dc().optional(),value_template:Zt().optional(),zone:Zt().optional(),device_id:Zt().optional(),id:Dc().optional()}).passthrough().superRefine((n,i)=>{switch(n.condition){case"state":cM(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":cM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state conditions",path:["entity_id"]});break;case"trigger":aWn(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":cM(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 eWt(n){return QVt.includes(n.trim())}const dWn=Sc({variables:yf(Zt(),Dc()).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(eWt),{message:`These names are reserved by the transpiler and cannot be used as variables: ${QVt.join(", ")}`,path:["variables"]});function fWn(n){switch(n){case"wait":return oWn;case"action":return sWn;case"trigger":return cWn;case"delay":return uWn;case"condition":return lWn;case"set_variables":return dWn;default:return}}function z8t(n,i){const s=fWn(n);if(!s)return[];const c=s.safeParse(i);return c.success?[]:c.error.issues.map(d=>({path:d.path.map(String),message:d.message}))}function eH(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 fIe,G8t;function hWn(){if(G8t)return fIe;G8t=1;function n(){this.__data__=[],this.size=0}return fIe=n,fIe}var hIe,q8t;function TMe(){if(q8t)return hIe;q8t=1;function n(i,s){return i===s||i!==i&&s!==s}return hIe=n,hIe}var pIe,V8t;function Rae(){if(V8t)return pIe;V8t=1;var n=TMe();function i(s,c){for(var d=s.length;d--;)if(n(s[d][0],c))return d;return-1}return pIe=i,pIe}var gIe,W8t;function pWn(){if(W8t)return gIe;W8t=1;var n=Rae(),i=Array.prototype,s=i.splice;function c(d){var g=this.__data__,b=n(g,d);if(b<0)return!1;var w=g.length-1;return b==w?g.pop():s.call(g,b,1),--this.size,!0}return gIe=c,gIe}var bIe,K8t;function gWn(){if(K8t)return bIe;K8t=1;var n=Rae();function i(s){var c=this.__data__,d=n(c,s);return d<0?void 0:c[d][1]}return bIe=i,bIe}var mIe,Y8t;function bWn(){if(Y8t)return mIe;Y8t=1;var n=Rae();function i(s){return n(this.__data__,s)>-1}return mIe=i,mIe}var wIe,J8t;function mWn(){if(J8t)return wIe;J8t=1;var n=Rae();function i(s,c){var d=this.__data__,g=n(d,s);return g<0?(++this.size,d.push([s,c])):d[g][1]=c,this}return wIe=i,wIe}var yIe,X8t;function Oae(){if(X8t)return yIe;X8t=1;var n=hWn(),i=pWn(),s=gWn(),c=bWn(),d=mWn();function g(b){var w=-1,E=b==null?0:b.length;for(this.clear();++w-1&&c%1==0&&c-1&&s%1==0&&s<=n}return p4e=i,p4e}var g4e,KPt;function GWn(){if(KPt)return g4e;KPt=1;var n=qM(),i=NMe(),s=xA(),c="[object Arguments]",d="[object Array]",g="[object Boolean]",b="[object Date]",w="[object Error]",E="[object Function]",S="[object Map]",_="[object Number]",A="[object Object]",C="[object RegExp]",O="[object Set]",L="[object String]",D="[object WeakMap]",B="[object ArrayBuffer]",$="[object DataView]",P="[object Float32Array]",j="[object Float64Array]",z="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",Q="[object Uint8Array]",ae="[object Uint8ClampedArray]",he="[object Uint16Array]",pe="[object Uint32Array]",ue={};ue[P]=ue[j]=ue[z]=ue[ee]=ue[ne]=ue[Q]=ue[ae]=ue[he]=ue[pe]=!0,ue[c]=ue[d]=ue[B]=ue[g]=ue[$]=ue[b]=ue[w]=ue[E]=ue[S]=ue[_]=ue[A]=ue[C]=ue[O]=ue[L]=ue[D]=!1;function fe(K){return s(K)&&i(K.length)&&!!ue[n(K)]}return g4e=fe,g4e}var b4e,YPt;function CMe(){if(YPt)return b4e;YPt=1;function n(i){return function(s){return i(s)}}return b4e=n,b4e}var nH={exports:{}};nH.exports;var JPt;function IMe(){return JPt||(JPt=1,function(n,i){var s=tWt(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,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}(nH,nH.exports)),nH.exports}var m4e,XPt;function Fae(){if(XPt)return m4e;XPt=1;var n=GWn(),i=CMe(),s=IMe(),c=s&&s.isTypedArray,d=c?i(c):n;return m4e=d,m4e}var w4e,ZPt;function aWt(){if(ZPt)return w4e;ZPt=1;var n=UWn(),i=jae(),s=ih(),c=jz(),d=sWt(),g=Fae(),b=Object.prototype,w=b.hasOwnProperty;function E(S,_){var A=s(S),C=!A&&i(S),O=!A&&!C&&c(S),L=!A&&!C&&!O&&g(S),D=A||C||O||L,B=D?n(S.length,String):[],$=B.length;for(var P in S)(_||w.call(S,P))&&!(D&&(P=="length"||O&&(P=="offset"||P=="parent")||L&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||d(P,$)))&&B.push(P);return B}return w4e=E,w4e}var y4e,QPt;function $ae(){if(QPt)return y4e;QPt=1;var n=Object.prototype;function i(s){var c=s&&s.constructor,d=typeof c=="function"&&c.prototype||n;return s===d}return y4e=i,y4e}var v4e,ejt;function cWt(){if(ejt)return v4e;ejt=1;function n(i,s){return function(c){return i(s(c))}}return v4e=n,v4e}var E4e,tjt;function qWn(){if(tjt)return E4e;tjt=1;var n=cWt(),i=n(Object.keys,Object);return E4e=i,E4e}var S4e,njt;function RMe(){if(njt)return S4e;njt=1;var n=$ae(),i=qWn(),s=Object.prototype,c=s.hasOwnProperty;function d(g){if(!n(g))return i(g);var b=[];for(var w in Object(g))c.call(g,w)&&w!="constructor"&&b.push(w);return b}return S4e=d,S4e}var T4e,rjt;function OR(){if(rjt)return T4e;rjt=1;var n=Dae(),i=NMe();function s(c){return c!=null&&i(c.length)&&!n(c)}return T4e=s,T4e}var A4e,ijt;function DR(){if(ijt)return A4e;ijt=1;var n=aWt(),i=RMe(),s=OR();function c(d){return s(d)?n(d):i(d)}return A4e=c,A4e}var _4e,ojt;function VWn(){if(ojt)return _4e;ojt=1;var n=Pae(),i=DR();function s(c,d){return c&&n(d,i(d),c)}return _4e=s,_4e}var x4e,sjt;function WWn(){if(sjt)return x4e;sjt=1;function n(i){var s=[];if(i!=null)for(var c in Object(i))s.push(c);return s}return x4e=n,x4e}var k4e,ajt;function KWn(){if(ajt)return k4e;ajt=1;var n=IR(),i=$ae(),s=WWn(),c=Object.prototype,d=c.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 k4e=g,k4e}var N4e,cjt;function OMe(){if(cjt)return N4e;cjt=1;var n=aWt(),i=KWn(),s=OR();function c(d){return s(d)?n(d,!0):i(d)}return N4e=c,N4e}var C4e,ujt;function YWn(){if(ujt)return C4e;ujt=1;var n=Pae(),i=OMe();function s(c,d){return c&&n(d,i(d),c)}return C4e=s,C4e}var rH={exports:{}};rH.exports;var ljt;function JWn(){return ljt||(ljt=1,function(n,i){var s=Y2(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,b=g?s.Buffer:void 0,w=b?b.allocUnsafe:void 0;function E(S,_){if(_)return S.slice();var A=S.length,C=w?w(A):new S.constructor(A);return S.copy(C),C}n.exports=E}(rH,rH.exports)),rH.exports}var I4e,djt;function XWn(){if(djt)return I4e;djt=1;function n(i,s){var c=-1,d=i.length;for(s||(s=Array(d));++cO))return!1;var D=A.get(b),B=A.get(w);if(D&&B)return D==w&&B==b;var $=-1,P=!0,j=E&d?new n:void 0;for(A.set(b,w),A.set(w,b);++$0&&g(_)?d>1?s(_,d-1,g,b,w):n(w,_):b||(w[w.length]=_)}return w}return EOe=s,EOe}var SOe,r7t;function lYn(){if(r7t)return SOe;r7t=1;function n(i,s,c){switch(c.length){case 0:return i.call(s);case 1:return i.call(s,c[0]);case 2:return i.call(s,c[0],c[1]);case 3:return i.call(s,c[0],c[1],c[2])}return i.apply(s,c)}return SOe=n,SOe}var TOe,i7t;function dYn(){if(i7t)return TOe;i7t=1;var n=lYn(),i=Math.max;function s(c,d,g){return d=i(d===void 0?c.length-1:d,0),function(){for(var b=arguments,w=-1,E=i(b.length-d,0),S=Array(E);++w0){if(++g>=n)return arguments[0]}else g=0;return d.apply(void 0,arguments)}}return _Oe=c,_Oe}var xOe,a7t;function pYn(){if(a7t)return xOe;a7t=1;var n=fYn(),i=hYn(),s=i(n);return xOe=s,xOe}var kOe,c7t;function gYn(){if(c7t)return kOe;c7t=1;var n=Uae(),i=dYn(),s=pYn();function c(d,g){return s(i(d,g,n),d+"")}return kOe=c,kOe}var NOe,u7t;function bYn(){if(u7t)return NOe;u7t=1;function n(i,s,c,d){for(var g=i.length,b=c+(d?1:-1);d?b--:++b-1}return OOe=i,OOe}var DOe,p7t;function EYn(){if(p7t)return DOe;p7t=1;function n(i,s,c){for(var d=-1,g=i==null?0:i.length;++d=b){var $=S?null:d(E);if($)return g($);L=!1,C=c,B=new n}else B=S?[]:D;e:for(;++A1?c.setNode(d,i):c.setNode(d)}),this};ys.prototype.setNode=function(n,i){return Lo.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 Lo.has(this._nodes,n)};ys.prototype.removeNode=function(n){var i=this;if(Lo.has(this._nodes,n)){var s=function(c){i.removeEdge(i._edgeObjs[c])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],Lo.each(this.children(n),function(c){i.setParent(c)}),delete this._children[n]),Lo.each(Lo.keys(this._in[n]),s),delete this._in[n],delete this._preds[n],Lo.each(Lo.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(Lo.isUndefined(i))i=vR;else{i+="";for(var s=i;!Lo.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(Lo.isUndefined(n)&&(n=vR),this._isCompound){var i=this._children[n];if(i)return Lo.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 Lo.keys(i)};ys.prototype.successors=function(n){var i=this._sucs[n];if(i)return Lo.keys(i)};ys.prototype.neighbors=function(n){var i=this.predecessors(n);if(i)return Lo.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;Lo.each(this._nodes,function(g,b){n(b)&&i.setNode(b,g)}),Lo.each(this._edgeObjs,function(g){i.hasNode(g.v)&&i.hasNode(g.w)&&i.setEdge(g,s.edge(g))});var c={};function d(g){var b=s.parent(g);return b===void 0||i.hasNode(b)?(c[g]=b,b):b in c?c[b]:d(b)}return this._isCompound&&Lo.each(i.nodes(),function(g){i.setParent(g,d(g))}),i};ys.prototype.setDefaultEdgeLabel=function(n){return Lo.isFunction(n)||(n=Lo.constant(n)),this._defaultEdgeLabelFn=n,this};ys.prototype.edgeCount=function(){return this._edgeCount};ys.prototype.edges=function(){return Lo.values(this._edgeObjs)};ys.prototype.setPath=function(n,i){var s=this,c=arguments;return Lo.reduce(n,function(d,g){return c.length>1?s.setEdge(d,g,i):s.setEdge(d,g),g}),this};ys.prototype.setEdge=function(){var n,i,s,c,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&&(c=arguments[1],d=!0)):(n=g,i=arguments[1],s=arguments[3],arguments.length>2&&(c=arguments[2],d=!0)),n=""+n,i=""+i,Lo.isUndefined(s)||(s=""+s);var b=Fz(this._isDirected,n,i,s);if(Lo.has(this._edgeLabels,b))return d&&(this._edgeLabels[b]=c),this;if(!Lo.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?c:this._defaultEdgeLabelFn(n,i,s);var w=IYn(this._isDirected,n,i,s);return n=w.v,i=w.w,Object.freeze(w),this._edgeObjs[b]=w,T7t(this._preds[i],n),T7t(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 c=arguments.length===1?HMe(this._isDirected,arguments[0]):Fz(this._isDirected,n,i,s);return this._edgeLabels[c]};ys.prototype.hasEdge=function(n,i,s){var c=arguments.length===1?HMe(this._isDirected,arguments[0]):Fz(this._isDirected,n,i,s);return Lo.has(this._edgeLabels,c)};ys.prototype.removeEdge=function(n,i,s){var c=arguments.length===1?HMe(this._isDirected,arguments[0]):Fz(this._isDirected,n,i,s),d=this._edgeObjs[c];return d&&(n=d.v,i=d.w,delete this._edgeLabels[c],delete this._edgeObjs[c],A7t(this._preds[i],n),A7t(this._sucs[n],i),delete this._in[i][c],delete this._out[n][c],this._edgeCount--),this};ys.prototype.inEdges=function(n,i){var s=this._in[n];if(s){var c=Lo.values(s);return i?Lo.filter(c,function(d){return d.v===i}):c}};ys.prototype.outEdges=function(n,i){var s=this._out[n];if(s){var c=Lo.values(s);return i?Lo.filter(c,function(d){return d.w===i}):c}};ys.prototype.nodeEdges=function(n,i){var s=this.inEdges(n,i);if(s)return s.concat(this.outEdges(n,i))};function T7t(n,i){n[i]?n[i]++:n[i]=1}function A7t(n,i){--n[i]||delete n[i]}function Fz(n,i,s,c){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}return d+S7t+g+S7t+(Lo.isUndefined(c)?CYn:c)}function IYn(n,i,s,c){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}var w={v:d,w:g};return c&&(w.name=c),w}function HMe(n,i){return Fz(n,i.v,i.w,i.name)}var RYn="2.1.8",OYn={Graph:UMe,version:RYn},B2=Rw,DYn=UMe,LYn={write:MYn,read:FYn};function MYn(n){var i={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:PYn(n),edges:jYn(n)};return B2.isUndefined(n.graph())||(i.value=B2.clone(n.graph())),i}function PYn(n){return B2.map(n.nodes(),function(i){var s=n.node(i),c=n.parent(i),d={v:i};return B2.isUndefined(s)||(d.value=s),B2.isUndefined(c)||(d.parent=c),d})}function jYn(n){return B2.map(n.edges(),function(i){var s=n.edge(i),c={v:i.v,w:i.w};return B2.isUndefined(i.name)||(c.name=i.name),B2.isUndefined(s)||(c.value=s),c})}function FYn(n){var i=new DYn(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 Lie=Rw,$Yn=BYn;function BYn(n){var i={},s=[],c;function d(g){Lie.has(i,g)||(i[g]=!0,c.push(g),Lie.each(n.successors(g),d),Lie.each(n.predecessors(g),d))}return Lie.each(n.nodes(),function(g){c=[],d(g),c.length&&s.push(c)}),s}var CWt=Rw,IWt=Ow;function Ow(){this._arr=[],this._keyIndices={}}Ow.prototype.size=function(){return this._arr.length};Ow.prototype.keys=function(){return this._arr.map(function(n){return n.key})};Ow.prototype.has=function(n){return CWt.has(this._keyIndices,n)};Ow.prototype.priority=function(n){var i=this._keyIndices[n];if(i!==void 0)return this._arr[i].priority};Ow.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Ow.prototype.add=function(n,i){var s=this._keyIndices;if(n=String(n),!CWt.has(s,n)){var c=this._arr,d=c.length;return s[n]=d,c.push({key:n,priority:i}),this._decrease(d),!0}return!1};Ow.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};Ow.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)};Ow.prototype._heapify=function(n){var i=this._arr,s=2*n,c=s+1,d=n;s>1,!(i[c].priority0&&(b=g.removeMin(),w=d[b],w.distance!==Number.POSITIVE_INFINITY);)c(b).forEach(E);return d}var VYn=RWt,WYn=Rw,KYn=YYn;function YYn(n,i,s){return WYn.transform(n.nodes(),function(c,d){c[d]=VYn(n,d,i,s)},{})}var _7t=Rw,OWt=JYn;function JYn(n){var i=0,s=[],c={},d=[];function g(b){var w=c[b]={onStack:!0,lowlink:i,index:i++};if(s.push(b),n.successors(b).forEach(function(_){_7t.has(c,_)?c[_].onStack&&(w.lowlink=Math.min(w.lowlink,c[_].index)):(g(_),w.lowlink=Math.min(w.lowlink,c[_].lowlink))}),w.lowlink===w.index){var E=[],S;do S=s.pop(),c[S].onStack=!1,E.push(S);while(b!==S);d.push(E)}}return n.nodes().forEach(function(b){_7t.has(c,b)||g(b)}),d}var XYn=Rw,ZYn=OWt,QYn=eJn;function eJn(n){return XYn.filter(ZYn(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}var tJn=Rw,nJn=iJn,rJn=tJn.constant(1);function iJn(n,i,s){return oJn(n,i||rJn,s||function(c){return n.outEdges(c)})}function oJn(n,i,s){var c={},d=n.nodes();return d.forEach(function(g){c[g]={},c[g][g]={distance:0},d.forEach(function(b){g!==b&&(c[g][b]={distance:Number.POSITIVE_INFINITY})}),s(g).forEach(function(b){var w=b.v===g?b.w:b.v,E=i(b);c[g][w]={distance:E,predecessor:g}})}),d.forEach(function(g){var b=c[g];d.forEach(function(w){var E=c[w];d.forEach(function(S){var _=E[g],A=b[S],C=E[S],O=_.distance+A.distance;O0;){if(g=d.removeMin(),k7t.has(c,g))s.setEdge(g,c[g]);else{if(w)throw new Error("Input graph is not connected: "+n);w=!0}n.nodeEdges(g).forEach(b)}return s}var yJn={components:$Yn,dijkstra:RWt,dijkstraAll:KYn,findCycles:QYn,floydWarshall:nJn,isAcyclic:sJn,postorder:lJn,preorder:hJn,prim:mJn,tarjan:OWt,topsort:DWt},N7t=OYn,vJn={Graph:N7t.Graph,json:LYn,alg:yJn,version:N7t.version};const EJn=TR(vJn),{Graph:SJn,alg:C7t}=EJn;function jWt(n){const i=new Set,s=new Set,c=new Set,d=new Map;for(const E of n.edges){const S=d.get(E.source)||[];S.push(E),d.set(E.source,S)}const g=new Set(n.edges.map(E=>E.target)),b=n.nodes.filter(E=>!g.has(E.id)).map(E=>E.id);function w(E){if(!s.has(E)){s.add(E),c.add(E);for(const S of d.get(E)||[])c.has(S.target)?i.add(S.id):s.has(S.target)||w(S.target);c.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 TJn(n){const i=new SJn({directed:!0}),s=jWt(n),c=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 $=c.get(B.source),P=c.get(B.target);($==="condition"||P==="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=!C7t.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(P=>P.source===B.id).length===0).map(B=>B.id);let _=null;if(!w)try{_=C7t.topsort(i)}catch{_=null}const A=AJn(i,b,_),C=kJn(b),O=xJn(i,b),L=!w&&!A&&!C&&!O,D=L?"native":"state-machine";return{isTree:L,hasCycles:w,hasMultipleEntryPoints:E.length>1,hasCrossLinks:A,hasConvergingPaths:C,hasDivergentTriggerPaths:O,entryNodes:E,exitNodes:S,topologicalOrder:_,recommendedStrategy:D}}function AJn(n,i,s){if(!s||s.length===0)return!1;const c=new Map,g=i.nodes.filter(_=>{var A;return((A=n.predecessors(_.id))==null?void 0:A.length)===0}).map(_=>_.id).map(_=>({nodeId:_,level:0}));for(;g.length>0;){const{nodeId:_,level:A}=g.shift();if(c.has(_))continue;c.set(_,A);const C=n.successors(_)||[];for(const O of C)c.has(O)||g.push({nodeId:O,level:A+1})}const b=new Set,w=new Map;for(const _ of i.edges){const A=(w.get(_.source)||0)+1;w.set(_.source,A)}for(const[_,A]of w)if(A>1){const C=i.nodes.find(O=>O.id===_);(C==null?void 0:C.type)!=="condition"&&(i.edges.filter(D=>D.source===_).some(D=>D.sourceHandle==="true"||D.sourceHandle==="false")||b.add(_))}const E=new Set,S=new Map;for(const _ of i.edges){const A=(S.get(_.target)||0)+1;S.set(_.target,A)}for(const[_,A]of S)A>1&&E.add(_);for(const _ of i.edges){const A=c.get(_.source),C=c.get(_.target);if(A!==void 0&&C!==void 0){if(C>A+1)return!0;if(C0&&_Jn(i,_.source,b))continue;return!0}}}return!1}function _Jn(n,i,s){const c=new Set,d=[i];for(;d.length>0;){const g=d.shift();if(c.has(g))continue;if(c.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)c.has(w)||d.push(w)}return!1}function xJn(n,i){const s=i.nodes.filter(b=>b.type==="trigger");if(s.length<=1)return!1;const c=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(_=>_.id===E);return(S==null?void 0:S.type)==="condition"})}))return!1;const g=c[0];for(let b=1;b1){const g=n.edges.filter(w=>w.target===c),b=new Set(g.map(w=>w.source));if(b.size>1){if([...b].map(_=>n.nodes.find(A=>A.id===_)).every(_=>(_==null?void 0:_.type)==="trigger"))continue;if(!NJn(n,[...b],s,c))return!0}}return!1}function NJn(n,i,s,c){const d=n.edges.filter(D=>D.target===c),g=i.every(D=>{const B=n.nodes.find($=>$.id===D);return(B==null?void 0:B.type)==="condition"}),b=d.every(D=>D.sourceHandle==="true"),w=d.every(D=>D.sourceHandle==="false");if(g&&(b||w))return!0;const E=D=>n.edges.filter(B=>B.target===D).map(B=>B.source),S=(D,B)=>{if(B.has(D))return null;B.add(D);const $=n.nodes.find(ee=>ee.id===D);if(($==null?void 0:$.type)==="condition")return D;const P=n.edges.filter(ee=>ee.target===D);if(P.length===0||P.length>1)return null;const j=P[0].source,z=n.nodes.find(ee=>ee.id===j);return(z==null?void 0:z.type)==="condition"?j:S(j,B)},_=new Set;let A=!0;for(const D of i){const B=S(D,new Set);if(B)_.add(B);else{A=!1;break}}if(A&&_.size===1)return!0;const C=D=>{const B=n.nodes.find(j=>j.id===D);if((B==null?void 0:B.type)==="condition")return!1;const $=n.edges.filter(j=>j.source===D);return $.some(j=>j.sourceHandle==="true"||j.sourceHandle==="false")?!1:$.length>1},O=(D,B)=>{if(B.has(D))return null;B.add(D);const $=E(D);if($.length===0||$.length>1)return null;const P=$[0];return C(P)?P:O(P,B)},L=new Set;for(const D of i){const B=E(D);if(B.length===1){const P=B[0];if(C(P)){L.add(P);continue}}const $=O(D,new Set);if($)L.add($);else return!1}return L.size===1}function CJn(n){const i=[];let s;try{s=SMe.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 c=ZVt(s);if(!c.valid)for(const g of c.errors)i.push({code:"STRUCTURAL_ERROR",message:g});const d=IJn(s);return i.push(...d),{success:i.length===0,graph:i.length===0?s:void 0,errors:i}}function IJn(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"),_=E.some(A=>A.sourceHandle==="false");!S&&!_&&i.push({code:"CONDITION_NO_EDGES",message:`Condition node "${w.id}" has no outgoing edges`,path:["nodes",w.id]})}const c=n.nodes.filter(w=>w.type==="action");for(const w of c)if(w.type==="action"){const E=w.data.service,S=["variables","delay","wait","wait_template","wait_for_trigger","stop","repeat","choose","if"];typeof E=="string"&&!E.includes(".")&&!S.includes(E)&&i.push({code:"INVALID_SERVICE",message:`Action node "${w.id}" has invalid service format: "${E}". Expected "domain.service"`,path:["nodes",w.id,"data","service"]})}const d=new Set,b=[...n.nodes.filter(w=>w.type==="trigger").map(w=>w.id)];for(;b.length>0;){const w=b.shift();if(d.has(w))continue;d.add(w);const E=n.edges.filter(S=>S.source===w);for(const S of E)d.has(S.target)||b.push(S.target)}for(const w of n.nodes)!d.has(w.id)&&w.type!=="trigger"&&i.push({code:"ORPHANED_NODE",message:`Node "${w.id}" is not connected to any trigger`,path:["nodes",w.id]});return i}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function FWt(n){return typeof n>"u"||n===null}function RJn(n){return typeof n=="object"&&n!==null}function OJn(n){return Array.isArray(n)?n:FWt(n)?[]:[n]}function DJn(n,i){var s,c,d,g;if(i)for(g=Object.keys(i),s=0,c=g.length;sw&&(g=" ... ",i=c-w+g.length),s-c>w&&(b=" ...",s=c+w-b.length),{str:g+n.slice(i,s).replace(/\t/g,"→")+b,pos:c-i+g.length}}function HOe(n,i){return vf.repeat(" ",i-n.length)+n}function HJn(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,c=[0],d=[],g,b=-1;g=s.exec(n.buffer);)d.push(g.index),c.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=c.length-2);b<0&&(b=c.length-1);var w="",E,S,_=Math.min(n.line+i.linesAfter,d.length).toString().length,A=i.maxLength-(i.indent+_+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=UOe(n.buffer,c[b-E],d[b-E],n.position-(c[b]-c[b-E]),A),w=vf.repeat(" ",i.indent)+HOe((n.line-E+1).toString(),_)+" | "+S.str+` `+w;for(S=UOe(n.buffer,c[b],d[b],n.position,A),w+=vf.repeat(" ",i.indent)+HOe((n.line+1).toString(),_)+" | "+S.str+` `,w+=vf.repeat("-",i.indent+_+3+S.pos)+`^ `,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=UOe(n.buffer,c[b+E],d[b+E],n.position-(c[b]-c[b+E]),A),w+=vf.repeat(" ",i.indent)+HOe((n.line+E+1).toString(),_)+" | "+S.str+` `;return w.replace(/\n$/,"")}var zJn=HJn,GJn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qJn=["scalar","sequence","mapping"];function VJn(n){var i={};return n!==null&&Object.keys(n).forEach(function(s){n[s].forEach(function(c){i[String(c)]=s})}),i}function WJn(n,i){if(i=i||{},Object.keys(i).forEach(function(s){if(GJn.indexOf(s)===-1)throw new ob('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=VJn(i.styleAliases||null),qJn.indexOf(this.kind)===-1)throw new ob('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var $p=WJn;function I7t(n,i){var s=[];return n[i].forEach(function(c){var d=s.length;s.forEach(function(g,b){g.tag===c.tag&&g.kind===c.kind&&g.multi===c.multi&&(d=b)}),s[d]=c}),s}function KJn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,s;function c(d){d.multi?(n.multi[d.kind].push(d),n.multi.fallback.push(d)):n[d.kind][d.tag]=n.fallback[d.tag]=d}for(i=0,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"]}}),gXn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bXn(n){return!(n===null||!gXn.test(n)||n[n.length-1]==="_")}function mXn(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 wXn=/^[-+]?[0-9]+e/;function yXn(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),wXn.test(s)?s.replace("e",".e"):s}function vXn(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||vf.isNegativeZero(n))}var EXn=new $p("tag:yaml.org,2002:float",{kind:"scalar",resolve:bXn,construct:mXn,predicate:vXn,represent:yXn,defaultStyle:"lowercase"}),SXn=QJn.extend({implicit:[rXn,aXn,pXn,EXn]}),TXn=SXn,BWt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),UWt=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 AXn(n){return n===null?!1:BWt.exec(n)!==null||UWt.exec(n)!==null}function _Xn(n){var i,s,c,d,g,b,w,E=0,S=null,_,A,C;if(i=BWt.exec(n),i===null&&(i=UWt.exec(n)),i===null)throw new Error("Date resolve error");if(s=+i[1],c=+i[2]-1,d=+i[3],!i[4])return new Date(Date.UTC(s,c,d));if(g=+i[4],b=+i[5],w=+i[6],i[7]){for(E=i[7].slice(0,3);E.length<3;)E+="0";E=+E}return i[9]&&(_=+i[10],A=+(i[11]||0),S=(_*60+A)*6e4,i[9]==="-"&&(S=-S)),C=new Date(Date.UTC(s,c,d,g,b,w,E)),S&&C.setTime(C.getTime()-S),C}function xXn(n){return n.toISOString()}var kXn=new $p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:AXn,construct:_Xn,instanceOf:Date,represent:xXn});function NXn(n){return n==="<<"||n===null}var CXn=new $p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:NXn}),zMe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function IXn(n){if(n===null)return!1;var i,s,c=0,d=n.length,g=zMe;for(s=0;s64)){if(i<0)return!1;c+=6}return c%8===0}function RXn(n){var i,s,c=n.replace(/[\r\n=]/g,""),d=c.length,g=zMe,b=0,w=[];for(i=0;i>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(c.charAt(i));return 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 OXn(n){var i="",s=0,c,d,g=n.length,b=zMe;for(c=0;c>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]),s=(s<<8)+n[c];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 DXn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var LXn=new $p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:IXn,construct:RXn,predicate:DXn,represent:OXn}),MXn=Object.prototype.hasOwnProperty,PXn=Object.prototype.toString;function jXn(n){if(n===null)return!0;var i=[],s,c,d,g,b,w=n;for(s=0,c=w.length;s>10)+55296,(n-65536&1023)+56320)}function WWt(n,i,s){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):n[i]=s}var KWt=new Array(256),YWt=new Array(256);for(var E5=0;E5<256;E5++)KWt[E5]=D7t(E5)?1:0,YWt[E5]=D7t(E5);function nZn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||HWt,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 JWt(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=zJn(s),new ob(i,s)}function Ni(n,i){throw JWt(n,i)}function gse(n,i){n.onWarning&&n.onWarning.call(null,JWt(n,i))}var L7t={YAML:function(i,s,c){var d,g,b;i.version!==null&&Ni(i,"duplication of %YAML directive"),c.length!==1&&Ni(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[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=c[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&gse(i,"unsupported YAML version of the document")},TAG:function(i,s,c){var d,g;c.length!==2&&Ni(i,"TAG directive accepts exactly two arguments"),d=c[0],g=c[1],qWt.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'),VWt.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,c){var d,g,b,w;if(i1&&(n.result+=vf.repeat(` `,i-1))}function rZn(n,i,s){var c,d,g,b,w,E,S,_,A=n.kind,C=n.result,O;if(O=n.input.charCodeAt(n.position),ub(O)||W5(O)||O===35||O===38||O===42||O===33||O===124||O===62||O===39||O===34||O===37||O===64||O===96||(O===63||O===45)&&(d=n.input.charCodeAt(n.position+1),ub(d)||s&&W5(d)))return!1;for(n.kind="scalar",n.result="",g=b=n.position,w=!1;O!==0;){if(O===58){if(d=n.input.charCodeAt(n.position+1),ub(d)||s&&W5(d))break}else if(O===35){if(c=n.input.charCodeAt(n.position-1),ub(c))break}else{if(n.position===n.lineStart&&Gae(n)||s&&W5(O))break;if(U2(O))if(E=n.line,S=n.lineStart,_=n.lineIndent,$d(n,!1,-1),n.lineIndent>=i){w=!0,O=n.input.charCodeAt(n.position);continue}else{n.position=b,n.line=E,n.lineStart=S,n.lineIndent=_;break}}w&&(eN(n,g,b,!1),qMe(n,n.line-E),g=b=n.position,w=!1),rR(O)||(b=n.position+1),O=n.input.charCodeAt(++n.position)}return eN(n,g,b,!1),n.result?!0:(n.kind=A,n.result=C,!1)}function iZn(n,i){var s,c,d;if(s=n.input.charCodeAt(n.position),s!==39)return!1;for(n.kind="scalar",n.result="",n.position++,c=d=n.position;(s=n.input.charCodeAt(n.position))!==0;)if(s===39)if(eN(n,c,n.position,!0),s=n.input.charCodeAt(++n.position),s===39)c=n.position,n.position++,d=n.position;else return!0;else U2(s)?(eN(n,c,d,!0),qMe(n,$d(n,!1,i)),c=d=n.position):n.position===n.lineStart&&Gae(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 oZn(n,i){var s,c,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,s=c=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&&KWt[w])n.result+=YWt[w],n.position++;else if((b=QXn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=ZXn(w))>=0?g=(g<<4)+b:Ni(n,"expected hexadecimal character");n.result+=tZn(g),n.position++}else Ni(n,"unknown escape sequence");s=c=n.position}else U2(w)?(eN(n,s,c,!0),qMe(n,$d(n,!1,i)),s=c=n.position):n.position===n.lineStart&&Gae(n)?Ni(n,"unexpected end of the document within a double quoted scalar"):(n.position++,c=n.position)}Ni(n,"unexpected end of the stream within a double quoted scalar")}function sZn(n,i){var s=!0,c,d,g,b=n.tag,w,E=n.anchor,S,_,A,C,O,L=Object.create(null),D,B,$,P;if(P=n.input.charCodeAt(n.position),P===91)_=93,O=!1,w=[];else if(P===123)_=125,O=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),P=n.input.charCodeAt(++n.position);P!==0;){if($d(n,!0,i),P=n.input.charCodeAt(n.position),P===_)return n.position++,n.tag=b,n.anchor=E,n.kind=O?"mapping":"sequence",n.result=w,!0;s?P===44&&Ni(n,"expected the node content, but found ','"):Ni(n,"missed comma between flow collection entries"),B=D=$=null,A=C=!1,P===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(A=C=!0,n.position++,$d(n,!0,i))),c=n.line,d=n.lineStart,g=n.position,RM(n,i,hse,!1,!0),B=n.tag,D=n.result,$d(n,!0,i),P=n.input.charCodeAt(n.position),(C||n.line===c)&&P===58&&(A=!0,P=n.input.charCodeAt(++n.position),$d(n,!0,i),RM(n,i,hse,!1,!0),$=n.result),O?K5(n,w,L,B,D,$,c,d,g):A?w.push(K5(n,null,L,B,D,$,c,d,g)):w.push(D),$d(n,!0,i),P=n.input.charCodeAt(n.position),P===44?(s=!0,P=n.input.charCodeAt(++n.position)):s=!1}Ni(n,"unexpected end of the stream within a flow collection")}function aZn(n,i){var s,c,d=zOe,g=!1,b=!1,w=i,E=0,S=!1,_,A;if(A=n.input.charCodeAt(n.position),A===124)c=!1;else if(A===62)c=!0;else return!1;for(n.kind="scalar",n.result="";A!==0;)if(A=n.input.charCodeAt(++n.position),A===43||A===45)zOe===d?d=A===43?R7t:KXn:Ni(n,"repeat of a chomping mode identifier");else if((_=eZn(A))>=0)_===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+_-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(GMe(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),RM(n,i,pse,!0,d)&&(B?L=n.result:D=n.result),B||(K5(n,A,C,O,L,D,b,w,E),O=L=D=null),$d(n,!0,-1),P=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&P!==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&&L.kind!==n.kind&&Ni(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+L.kind+'", not "'+n.kind+'"'),L.resolve(n.result,n.tag)?(n.result=L.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||_}function fZn(n){var i=n.position,s,c,d,g=!1,b;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap=Object.create(null),n.anchorMap=Object.create(null);(b=n.input.charCodeAt(n.position))!==0&&($d(n,!0,-1),b=n.input.charCodeAt(n.position),!(n.lineIndent>0||b!==37));){for(g=!0,b=n.input.charCodeAt(++n.position),s=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);for(c=n.input.slice(s,n.position),d=[],c.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&&GMe(n),bN.call(L7t,c)?L7t[c](n,c,d):gse(n,'unknown document directive "'+c+'"')}if($d(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,$d(n,!0,-1)):g&&Ni(n,"directives end mark is expected"),RM(n,n.lineIndent-1,pse,!1,!0),$d(n,!0,-1),n.checkLineBreaks&&JXn.test(n.input.slice(i,n.position))&&gse(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&Gae(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,$d(n,!0,-1));return}if(n.position=55296&&s<=56319&&i+1=56320&&c<=57343)?(s-55296)*1024+c-56320+65536:s}function iKt(n){var i=/^\n* /;return i.test(n)}var oKt=1,GDe=2,sKt=3,aKt=4,k5=5;function HZn(n,i,s,c,d,g,b,w){var E,S=0,_=null,A=!1,C=!1,O=c!==-1,L=-1,D=BZn(iH(n,0))&&UZn(iH(n,n.length-1));if(i||b)for(E=0;E=65536?E+=2:E++){if(S=iH(n,E),!dz(S))return k5;D=D&&$7t(S,_,w),_=S}else{for(E=0;E=65536?E+=2:E++){if(S=iH(n,E),S===uz)A=!0,O&&(C=C||E-L-1>c&&n[L+1]!==" ",L=E);else if(!dz(S))return k5;D=D&&$7t(S,_,w),_=S}C=C||O&&E-L-1>c&&n[L+1]!==" "}return!A&&!C?D&&!b&&!d(n)?oKt:g===lz?k5:GDe:s>9&&iKt(n)?k5:b?g===lz?k5:GDe:C?aKt:sKt}function zZn(n,i,s,c,d){n.dump=function(){if(i.length===0)return n.quotingType===lz?'""':"''";if(!n.noCompatMode&&(DZn.indexOf(i)!==-1||LZn.test(i)))return n.quotingType===lz?'"'+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=c||n.flowLevel>-1&&s>=n.flowLevel;function E(S){return $Zn(n,S)}switch(HZn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!c,d)){case oKt:return i;case GDe:return"'"+i.replace(/'/g,"''")+"'";case sKt:return"|"+B7t(i,n.indent)+U7t(j7t(i,g));case aKt:return">"+B7t(i,n.indent)+U7t(j7t(GZn(i,b),g));case k5:return'"'+qZn(i)+'"';default:throw new ob("impossible error: invalid scalar style")}}()}function B7t(n,i){var s=iKt(n)?String(i):"",c=n[n.length-1]===` `,d=c&&(n[n.length-2]===` `||n===` `),g=d?"+":c?"":"-";return s+g+` `}function U7t(n){return n[n.length-1]===` `?n.slice(0,-1):n}function GZn(n,i){for(var s=/(\n+)([^\n]*)/g,c=function(){var S=n.indexOf(` `);return S=S!==-1?S:n.length,s.lastIndex=S,H7t(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]===" ",c+=w+(!d&&!g&&E!==""?` `:"")+H7t(E,i),d=g}return c}function H7t(n,i){if(n===""||n[0]===" ")return n;for(var s=/ [^ ]/g,c,d=0,g,b=0,w=0,E="";c=s.exec(n);)w=c.index,w-d>i&&(g=b>d?b:w,E+=` `+n.slice(d,g),d=g+1),b=w;return E+=` `,n.length-d>i&&b>d?E+=n.slice(d,b)+` `+n.slice(b+1):E+=n.slice(d),E.slice(1)}function qZn(n){for(var i="",s=0,c,d=0;d=65536?d+=2:d++)s=iH(n,d),c=qp[s],!c&&dz(s)?(i+=n[d],s>=65536&&(i+=n[d+1])):i+=c||PZn(s);return i}function VZn(n,i,s){var c="",d=n.tag,g,b,w;for(g=0,b=s.length;g"u"&&TA(n,i,null,!1,!1))&&(c!==""&&(c+=","+(n.condenseFlow?"":" ")),c+=n.dump);n.tag=d,n.dump="["+c+"]"}function z7t(n,i,s,c){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))&&((!c||d!=="")&&(d+=zDe(n,i)),n.dump&&uz===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function WZn(n,i,s){var c="",d=n.tag,g=Object.keys(s),b,w,E,S,_;for(b=0,w=g.length;b1024&&(_+="? "),_+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),TA(n,i,S,!1,!1)&&(_+=n.dump,c+=_));n.tag=d,n.dump="{"+c+"}"}function KZn(n,i,s,c){var d="",g=n.tag,b=Object.keys(s),w,E,S,_,A,C;if(n.sortKeys===!0)b.sort();else if(typeof n.sortKeys=="function")b.sort(n.sortKeys);else if(n.sortKeys)throw new ob("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+=zDe(n,i)),TA(n,i+1,_,!0,A)&&(n.dump&&uz===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function G7t(n,i,s){var c,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=c}return!0}return!1}function TA(n,i,s,c,d,g,b){n.tag=null,n.dump=s,G7t(n,s,!1)||G7t(n,s,!0);var w=XWt.call(n.dump),E=c,S;c&&(c=n.flowLevel<0||n.flowLevel>i);var _=w==="[object Object]"||w==="[object Array]",A,C;if(_&&(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(_&&C&&!n.usedDuplicates[A]&&(n.usedDuplicates[A]=!0),w==="[object Object]")c&&Object.keys(n.dump).length!==0?(KZn(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(WZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object Array]")c&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?z7t(n,i-1,n.dump,d):z7t(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(VZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&zZn(n,n.dump,i,g,E);else{if(w==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new ob("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 YZn(n,i){var s=[],c=[],d,g;for(qDe(n,s,c),d=0,g=c.length;d"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");GOe=crypto.getRandomValues.bind(crypto)}return GOe(tQn)}const rQn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),q7t={randomUUID:rQn};function iQn(n,i,s){var d;n=n||{};const c=n.random??((d=n.rng)==null?void 0:d.call(n))??nQn();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,eQn(c)}function oQn(n,i,s){return q7t.randomUUID&&!n?q7t.randomUUID():iQn(n)}let sQn=0;function V7t(n,i){return`${n}_${Date.now()}_${i}_${sQn++}`}function aQn(){return oQn()}function cQn(n,i){return`e-${n}-${i}-${Date.now()}`}var cKt={exports:{}};(function(n,i){(function(s){n.exports=s()})(function(){return function(){function s(c,d,g){function b(S,_){if(!d[S]){if(!c[S]){var A=typeof eH=="function"&&eH;if(!_&&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 O=d[S]={exports:{}};c[S][0].call(O.exports,function(L){var D=c[S][1][L];return b(D||L)},O,O.exports,s,c,d,g)}return d[S].exports}for(var w=typeof eH=="function"&&eH,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},D=L.defaultLayoutOptions,B=D===void 0?{}:D,$=L.algorithms,P=$===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:$,j=L.workerFactory,z=L.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof z>"u"&&typeof j>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ee=j;typeof z<"u"&&typeof j>"u"&&(ee=function(ae){return new Worker(ae)});var ne=ee(z);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:P}).then(function(Q){return O.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=D.layoutOptions,$=B===void 0?this.defaultLayoutOptions:B,P=D.logging,j=P===void 0?!1:P,z=D.measureExecutionTime,ee=z===void 0?!1:z;return L?this.worker.postMessage({cmd:"layout",graph:L,layoutOptions:$,options:{logging:j,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(O){var L=this;if(b(this,C),O===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=O,this.worker.onmessage=function(D){setTimeout(function(){L.receive(L,D)},0)}}return E(C,[{key:"postMessage",value:function(L){var D=this.id||0;this.id=D+1,L.id=D;var B=this;return new Promise(function($,P){B.resolvers[D]=function(j,z){j?(B.convertGwtStyleError(j),P(j)):$(z)},B.worker.postMessage(L)})}},{key:"receive",value:function(L,D){var B=D.data,$=L.resolvers[B.id];$&&(delete L.resolvers[B.id],B.error?$(B.error):$(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(L){if(L){var D=L.__java$exception;D&&(D.cause&&D.cause.backingJsObject&&(L.cause=D.cause.backingJsObject,this.convertGwtStyleError(L.cause)),delete L.__java$exception)}}}])}()},{}],2:[function(s,c,d){(function(g){(function(){var b;typeof window<"u"?b=window:typeof g<"u"?b=g:typeof self<"u"&&(b=self);var w;function E(){}function S(){}function _(){}function A(){}function C(){}function O(){}function L(){}function D(){}function B(){}function $(){}function P(){}function j(){}function z(){}function ee(){}function ne(){}function Q(){}function ae(){}function he(){}function pe(){}function ue(){}function fe(){}function K(){}function ge(){}function De(){}function Se(){}function Re(){}function Ae(){}function xe(){}function We(){}function ut(){}function Be(){}function bt(){}function Nt(){}function pt(){}function Kt(){}function Et(){}function Dt(){}function Yt(){}function Ln(){}function Zn(){}function Yn(){}function Er(){}function Ui(){}function Qr(){}function Hi(){}function ai(){}function ju(){}function Xs(){}function ls(){}function es(){}function Ca(){}function Ci(){}function mb(){}function Jg(){}function Wh(){}function wb(){}function Wp(){}function Lw(){}function Kh(){}function X2(){}function Xg(){}function Kp(){}function Zg(){}function CN(){}function IN(){}function GR(){}function kA(){}function yb(){}function qR(){}function VR(){}function RN(){}function ON(){}function go(){}function Fu(){}function Fl(){}function Af(){}function Z2(){}function pl(){}function sh(){}function Vm(){}function ah(){}function Yh(){}function Q2(){}function Wm(){}function r9(){}function i9(){}function iG(){}function oG(){}function sG(){}function o9(){}function s9(){}function a9(){}function aG(){}function cG(){}function uG(){}function lG(){}function WR(){}function dG(){}function c9(){}function fG(){}function hG(){}function pG(){}function gG(){}function bG(){}function mG(){}function wG(){}function u9(){}function yG(){}function l9(){}function d9(){}function vG(){}function EG(){}function SG(){}function TG(){}function AG(){}function DN(){}function _G(){}function f9(){}function xG(){}function kG(){}function KR(){}function NG(){}function CG(){}function h9(){}function c7e(){}function u7e(){}function l7e(){}function d7e(){}function f7e(){}function h7e(){}function p7e(){}function g7e(){}function b7e(){}function m7e(){}function w7e(){}function y7e(){}function v7e(){}function E7e(){}function S7e(){}function T7e(){}function A7e(){}function _7e(){}function x7e(){}function k7e(){}function N7e(){}function C7e(){}function I7e(){}function R7e(){}function O7e(){}function D7e(){}function L7e(){}function M7e(){}function P7e(){}function j7e(){}function F7e(){}function $7e(){}function B7e(){}function U7e(){}function H7e(){}function z7e(){}function G7e(){}function q7e(){}function V7e(){}function W7e(){}function K7e(){}function Y7e(){}function J7e(){}function X7e(){}function Z7e(){}function Q7e(){}function e$e(){}function t$e(){}function n$e(){}function r$e(){}function i$e(){}function o$e(){}function s$e(){}function a$e(){}function c$e(){}function u$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 D$e(){}function L$e(){}function M$e(){}function P$e(){}function j$e(){}function F$e(){}function $$e(){}function Dce(){}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 cBe(){}function uBe(){}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 DBe(){}function LBe(){}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 tUe(){}function nUe(){}function rUe(){}function iUe(){}function oUe(){}function sUe(){}function Lce(){}function aUe(){}function cUe(){}function uUe(){}function lUe(){}function dUe(){}function fUe(){}function hUe(){}function pUe(){}function gUe(){}function bUe(){}function p9(){}function g9(){}function mUe(){}function wUe(){}function Mce(){}function yUe(){}function vUe(){}function EUe(){}function SUe(){}function TUe(){}function Pce(){}function jce(){}function AUe(){}function Fce(){}function $ce(){}function _Ue(){}function xUe(){}function YR(){}function kUe(){}function NUe(){}function CUe(){}function IUe(){}function RUe(){}function OUe(){}function DUe(){}function LUe(){}function MUe(){}function PUe(){}function jUe(){}function FUe(){}function $Ue(){}function BUe(){}function UUe(){}function HUe(){}function zUe(){}function GUe(){}function qUe(){}function Bce(){}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 cHe(){}function uHe(){}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 DHe(){}function LHe(){}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 eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function EZt(){}function sze(){}function aze(){}function cze(){}function uze(){}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 Dze(){}function Lze(){}function Mze(){}function Pze(){}function jze(){}function Fze(){}function $ze(){}function Bze(){}function Uze(){}function Hze(){}function zze(){}function IG(){}function RG(){}function Gze(){}function OG(){}function qze(){}function Vze(){}function Wze(){}function Kze(){}function Yze(){}function Jze(){}function Xze(){}function Zze(){}function Qze(){}function eGe(){}function tGe(){}function nGe(){}function rGe(){}function iGe(){}function SZt(){}function oGe(){}function Uce(){}function sGe(){}function aGe(){}function cGe(){}function uGe(){}function lGe(){}function dGe(){}function fGe(){}function hGe(){}function pGe(){}function gGe(){}function vb(){}function bGe(){}function eS(){}function Hce(){}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 RGe(){}function OGe(){}function DGe(){}function LGe(){}function MGe(){}function PGe(){}function Xe(){}function jGe(){}function FGe(){}function $Ge(){}function BGe(){}function UGe(){}function HGe(){}function zGe(){}function GGe(){}function qGe(){}function VGe(){}function WGe(){}function DG(){}function KGe(){}function YGe(){}function LG(){}function JGe(){}function XGe(){}function ZGe(){}function QGe(){}function MG(){}function b9(){}function m9(){}function eqe(){}function zce(){}function tqe(){}function nqe(){}function w9(){}function rqe(){}function iqe(){}function oqe(){}function y9(){}function sqe(){}function aqe(){}function cqe(){}function uqe(){}function v9(){}function lqe(){}function Gce(){}function dqe(){}function PG(){}function qce(){}function fqe(){}function hqe(){}function pqe(){}function gqe(){}function TZt(){}function bqe(){}function mqe(){}function wqe(){}function yqe(){}function vqe(){}function Eqe(){}function Sqe(){}function Tqe(){}function Aqe(){}function _qe(){}function NA(){}function jG(){}function xqe(){}function kqe(){}function Nqe(){}function Cqe(){}function Iqe(){}function Rqe(){}function Oqe(){}function Dqe(){}function Lqe(){}function Mqe(){}function Pqe(){}function jqe(){}function Fqe(){}function $qe(){}function Bqe(){}function Uqe(){}function Hqe(){}function zqe(){}function Gqe(){}function qqe(){}function Vqe(){}function Wqe(){}function Kqe(){}function Yqe(){}function Jqe(){}function Xqe(){}function Zqe(){}function Qqe(){}function eVe(){}function tVe(){}function nVe(){}function rVe(){}function iVe(){}function oVe(){}function sVe(){}function aVe(){}function cVe(){}function uVe(){}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 DVe(){}function LVe(){}function MVe(){}function PVe(){}function jVe(){}function FVe(){}function $Ve(){}function BVe(){}function UVe(){}function HVe(){}function zVe(){}function GVe(){}function qVe(){}function VVe(){}function WVe(){}function KVe(){}function YVe(){}function JVe(){}function XVe(){}function ZVe(){}function QVe(){}function eWe(){}function tWe(){}function nWe(){}function rWe(){}function iWe(){}function oWe(){}function sWe(){}function aWe(){}function cWe(){}function uWe(){}function lWe(){}function dWe(){}function fWe(){}function hWe(){}function pWe(){}function gWe(){}function bWe(){}function mWe(){}function wWe(){}function Vce(){}function yWe(){}function vWe(){}function FG(){BN()}function EWe(){Ybe()}function SWe(){fO()}function TWe(){ed()}function AWe(){obe()}function _We(){G6()}function xWe(){$O()}function kWe(){dO()}function NWe(){ett()}function CWe(){zS()}function IWe(){Llt()}function RWe(){N_()}function OWe(){T1()}function DWe(){sge()}function LWe(){oht()}function MWe(){sht()}function PWe(){Y9()}function jWe(){ewe()}function FWe(){Tct()}function $We(){gdt()}function BWe(){oge()}function UWe(){Ect()}function HWe(){vct()}function zWe(){Sct()}function GWe(){_ct()}function qWe(){Ue()}function VWe(){aht()}function WWe(){dut()}function KWe(){cht()}function YWe(){xct()}function JWe(){US()}function XWe(){Dht()}function ZWe(){d0e()}function QWe(){A1()}function eKe(){Act()}function tKe(){fbt()}function nKe(){Uyt()}function rKe(){xme()}function iKe(){js()}function oKe(){ef()}function sKe(){S0e()}function aKe(){ygt()}function cKe(){dp()}function uKe(){Y6()}function lKe(){yJ()}function dKe(){CY()}function fKe(){A1e()}function hKe(){QS()}function pKe(){rj()}function gKe(){_F()}function Wce(){_n()}function bKe(){Fj()}function mKe(){M1e()}function Kce(){VF()}function Yce(){kK()}function bd(){not()}function wKe(){_0e()}function Jce(e){Mt(e)}function yKe(e){this.a=e}function E9(e){this.a=e}function vKe(e){this.a=e}function EKe(e){this.a=e}function SKe(e){this.a=e}function Xce(e){this.a=e}function Zce(e){this.a=e}function TKe(e){this.a=e}function $G(e){this.a=e}function AKe(e){this.a=e}function _Ke(e){this.a=e}function xKe(e){this.a=e}function kKe(e){this.a=e}function NKe(e){this.c=e}function CKe(e){this.a=e}function BG(e){this.a=e}function IKe(e){this.a=e}function RKe(e){this.a=e}function OKe(e){this.a=e}function UG(e){this.a=e}function DKe(e){this.a=e}function LKe(e){this.a=e}function HG(e){this.a=e}function MKe(e){this.a=e}function zG(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 GKe(e){this.a=e}function qKe(e){this.a=e}function VKe(e){this.a=e}function WKe(e){this.a=e}function KKe(e){this.a=e}function YKe(e){this.a=e}function Qce(e){this.a=e}function eue(e){this.a=e}function S9(e){this.a=e}function JR(e){this.a=e}function tue(e){this.b=e}function Eb(){this.a=[]}function JKe(e,t){e.a=t}function AZt(e,t){e.a=t}function _Zt(e,t){e.b=t}function xZt(e,t){e.c=t}function kZt(e,t){e.c=t}function NZt(e,t){e.d=t}function CZt(e,t){e.d=t}function Jh(e,t){e.k=t}function nue(e,t){e.j=t}function IZt(e,t){e.c=t}function rue(e,t){e.c=t}function iue(e,t){e.a=t}function RZt(e,t){e.a=t}function OZt(e,t){e.f=t}function DZt(e,t){e.a=t}function LZt(e,t){e.b=t}function GG(e,t){e.d=t}function T9(e,t){e.i=t}function oue(e,t){e.o=t}function MZt(e,t){e.r=t}function PZt(e,t){e.a=t}function jZt(e,t){e.b=t}function XKe(e,t){e.e=t}function FZt(e,t){e.f=t}function sue(e,t){e.g=t}function $Zt(e,t){e.e=t}function BZt(e,t){e.f=t}function UZt(e,t){e.f=t}function XR(e,t){e.b=t}function qG(e,t){e.b=t}function VG(e,t){e.a=t}function HZt(e,t){e.n=t}function zZt(e,t){e.a=t}function GZt(e,t){e.c=t}function qZt(e,t){e.c=t}function VZt(e,t){e.c=t}function WZt(e,t){e.a=t}function KZt(e,t){e.a=t}function YZt(e,t){e.d=t}function JZt(e,t){e.d=t}function XZt(e,t){e.e=t}function ZZt(e,t){e.e=t}function QZt(e,t){e.g=t}function eQt(e,t){e.f=t}function tQt(e,t){e.j=t}function nQt(e,t){e.a=t}function rQt(e,t){e.a=t}function iQt(e,t){e.b=t}function ZKe(e){e.b=e.a}function QKe(e){e.c=e.d.d}function aue(e){this.a=e}function Xh(e){this.a=e}function A9(e){this.a=e}function cue(e){this.a=e}function eYe(e){this.a=e}function ZR(e){this.a=e}function QR(e){this.a=e}function uue(e){this.a=e}function lue(e){this.a=e}function Mw(e){this.a=e}function WG(e){this.a=e}function Zh(e){this.a=e}function Pw(e){this.a=e}function tYe(e){this.a=e}function nYe(e){this.a=e}function due(e){this.a=e}function rYe(e){this.a=e}function Pn(e){this.a=e}function LN(e){this.d=e}function KG(e){this.b=e}function CA(e){this.b=e}function qv(e){this.b=e}function YG(e){this.c=e}function V(e){this.c=e}function iYe(e){this.c=e}function oYe(e){this.a=e}function fue(e){this.a=e}function hue(e){this.a=e}function pue(e){this.a=e}function gue(e){this.a=e}function bue(e){this.a=e}function mue(e){this.a=e}function IA(e){this.a=e}function sYe(e){this.a=e}function aYe(e){this.a=e}function RA(e){this.a=e}function cYe(e){this.a=e}function uYe(e){this.a=e}function lYe(e){this.a=e}function dYe(e){this.a=e}function fYe(e){this.a=e}function hYe(e){this.a=e}function pYe(e){this.a=e}function gYe(e){this.a=e}function bYe(e){this.a=e}function OA(e){this.a=e}function mYe(e){this.a=e}function wYe(e){this.a=e}function yYe(e){this.a=e}function vYe(e){this.a=e}function _9(e){this.a=e}function EYe(e){this.a=e}function SYe(e){this.a=e}function wue(e){this.a=e}function TYe(e){this.a=e}function AYe(e){this.a=e}function _Ye(e){this.a=e}function yue(e){this.a=e}function vue(e){this.a=e}function Eue(e){this.a=e}function MN(e){this.a=e}function x9(e){this.e=e}function DA(e){this.a=e}function xYe(e){this.a=e}function tS(e){this.a=e}function Sue(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 OYe(e){this.a=e}function DYe(e){this.a=e}function LYe(e){this.a=e}function MYe(e){this.a=e}function PYe(e){this.a=e}function jYe(e){this.a=e}function Tue(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 cJe(e){this.a=e}function uJe(e){this.a=e}function lJe(e){this.a=e}function dJe(e){this.a=e}function fJe(e){this.a=e}function hJe(e){this.a=e}function pJe(e){this.a=e}function gJe(e){this.a=e}function bJe(e){this.a=e}function mJe(e){this.a=e}function wJe(e){this.a=e}function yJe(e){this.a=e}function vJe(e){this.a=e}function EJe(e){this.a=e}function SJe(e){this.a=e}function TJe(e){this.a=e}function AJe(e){this.a=e}function _Je(e){this.a=e}function xJe(e){this.c=e}function kJe(e){this.b=e}function NJe(e){this.a=e}function CJe(e){this.a=e}function IJe(e){this.a=e}function RJe(e){this.a=e}function OJe(e){this.a=e}function DJe(e){this.a=e}function LJe(e){this.a=e}function MJe(e){this.a=e}function PJe(e){this.a=e}function jJe(e){this.a=e}function FJe(e){this.a=e}function $Je(e){this.a=e}function BJe(e){this.a=e}function UJe(e){this.a=e}function HJe(e){this.a=e}function zJe(e){this.a=e}function GJe(e){this.a=e}function qJe(e){this.a=e}function VJe(e){this.a=e}function WJe(e){this.a=e}function KJe(e){this.a=e}function YJe(e){this.a=e}function JJe(e){this.a=e}function XJe(e){this.a=e}function ZJe(e){this.a=e}function QJe(e){this.a=e}function eXe(e){this.a=e}function Qh(e){this.a=e}function Vv(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 cXe(e){this.a=e}function uXe(e){this.a=e}function lXe(e){this.a=e}function dXe(e){this.a=e}function fXe(e){this.a=e}function hXe(e){this.a=e}function pXe(e){this.a=e}function gXe(e){this.a=e}function bXe(e){this.a=e}function mXe(e){this.a=e}function wXe(e){this.a=e}function Aue(e){this.a=e}function yXe(e){this.a=e}function vXe(e){this.a=e}function EXe(e){this.a=e}function SXe(e){this.a=e}function TXe(e){this.a=e}function AXe(e){this.a=e}function _Xe(e){this.a=e}function xXe(e){this.a=e}function k9(e){this.a=e}function kXe(e){this.f=e}function NXe(e){this.a=e}function CXe(e){this.a=e}function IXe(e){this.a=e}function RXe(e){this.a=e}function OXe(e){this.a=e}function DXe(e){this.a=e}function LXe(e){this.a=e}function 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 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 JG(e){this.a=e}function _ue(e){this.a=e}function lr(e){this.b=e}function tZe(e){this.a=e}function nZe(e){this.a=e}function rZe(e){this.a=e}function iZe(e){this.a=e}function oZe(e){this.a=e}function sZe(e){this.a=e}function aZe(e){this.a=e}function cZe(e){this.a=e}function eO(e){this.a=e}function uZe(e){this.a=e}function lZe(e){this.b=e}function xue(e){this.c=e}function N9(e){this.e=e}function dZe(e){this.a=e}function C9(e){this.a=e}function I9(e){this.a=e}function XG(e){this.a=e}function fZe(e){this.d=e}function hZe(e){this.a=e}function kue(e){this.a=e}function Nue(e){this.a=e}function Km(e){this.e=e}function oQt(){this.a=0}function je(){hV(this)}function hn(){Zs(this)}function ZG(){tat(this)}function pZe(){}function Ym(){this.c=O3e}function gZe(e,t){e.b+=t}function sQt(e,t){t.Wb(e)}function aQt(e){return e.a}function cQt(e){return e.a}function uQt(e){return e.a}function lQt(e){return e.a}function dQt(e){return e.a}function Y(e){return e.e}function fQt(){return null}function hQt(){return null}function pQt(e){throw Y(e)}function nS(e){this.a=kn(e)}function bZe(){this.a=this}function Sb(){Brt.call(this)}function gQt(e){e.b.Mf(e.e)}function mZe(e){e.b=new gq}function PN(e,t){e.b=t-e.b}function jN(e,t){e.a=t-e.a}function wZe(e,t){t.gd(e.a)}function bQt(e,t){Ii(t,e)}function Rt(e,t){e.push(t)}function yZe(e,t){e.sort(t)}function mQt(e,t,r){e.Wd(r,t)}function tO(e,t){e.e=t,t.b=e}function wQt(){ale(),l3n()}function vZe(e){l_(),GQ.je(e)}function Cue(){Brt.call(this)}function Iue(){Sb.call(this)}function QG(){Sb.call(this)}function EZe(){Sb.call(this)}function nO(){Sb.call(this)}function lc(){Sb.call(this)}function rS(){Sb.call(this)}function Nn(){Sb.call(this)}function $u(){Sb.call(this)}function SZe(){Sb.call(this)}function vs(){Sb.call(this)}function TZe(){Sb.call(this)}function R9(){this.Bb|=256}function AZe(){this.b=new Pnt}function Rue(){Rue=K,new hn}function _Ze(){Iue.call(this)}function jw(e,t){e.length=t}function O9(e,t){Fe(e.a,t)}function yQt(e,t){Xbe(e.c,t)}function vQt(e,t){gi(e.b,t)}function EQt(e,t){lF(e.a,t)}function SQt(e,t){tY(e.a,t)}function LA(e,t){pr(e.e,t)}function iS(e){CF(e.c,e.b)}function TQt(e,t){e.kc().Nb(t)}function Oue(e){this.a=Vgn(e)}function pi(){this.a=new hn}function xZe(){this.a=new hn}function D9(){this.a=new je}function eq(){this.a=new je}function Due(){this.a=new je}function gl(){this.a=new Xg}function Tb(){this.a=new Olt}function tq(){this.a=new Wet}function Lue(){this.a=new hct}function Mue(){this.a=new Cit}function Pue(){this.a=new ah}function kZe(){this.a=new zct}function NZe(){this.a=new je}function CZe(){this.a=new je}function IZe(){this.a=new je}function jue(){this.a=new je}function RZe(){this.d=new je}function OZe(){this.a=new pi}function DZe(){this.a=new hn}function LZe(){this.b=new hn}function MZe(){this.b=new je}function Fue(){this.e=new je}function PZe(){this.d=new je}function jZe(){this.a=new OWe}function FZe(){zat.call(this)}function $Ze(){zat.call(this)}function BZe(){zue.call(this)}function UZe(){zue.call(this)}function HZe(){zue.call(this)}function zZe(){je.call(this)}function GZe(){jue.call(this)}function L9(){D9.call(this)}function qZe(){q8.call(this)}function FN(){pZe.call(this)}function nq(){FN.call(this)}function oS(){pZe.call(this)}function $ue(){oS.call(this)}function Lc(){Ar.call(this)}function VZe(){Gue.call(this)}function $N(){QGe.call(this)}function Bue(){QGe.call(this)}function WZe(){aQe.call(this)}function KZe(){aQe.call(this)}function YZe(){hn.call(this)}function JZe(){hn.call(this)}function XZe(){hn.call(this)}function rq(){tht.call(this)}function ZZe(){pi.call(this)}function QZe(){R9.call(this)}function iq(){kde.call(this)}function Uue(){hn.call(this)}function oq(){kde.call(this)}function sq(){hn.call(this)}function eQe(){hn.call(this)}function Hue(){v9.call(this)}function tQe(){Hue.call(this)}function nQe(){v9.call(this)}function rQe(){Vce.call(this)}function zue(){this.a=new pi}function iQe(){this.a=new hn}function Gue(){this.a=new hn}function sS(){this.a=new Ar}function oQe(){this.a=new je}function sQe(){this.j=new je}function aQe(){this.a=new sqe}function que(){this.a=new Pze}function cQe(){this.a=new iet}function BN(){BN=K,PQ=new S}function aq(){aq=K,jQ=new lQe}function cq(){cq=K,FQ=new uQe}function uQe(){HG.call(this,"")}function lQe(){HG.call(this,"")}function dQe(e){kft.call(this,e)}function fQe(e){kft.call(this,e)}function Vue(e){Xce.call(this,e)}function Wue(e){Fet.call(this,e)}function AQt(e){Fet.call(this,e)}function _Qt(e){Wue.call(this,e)}function xQt(e){Wue.call(this,e)}function kQt(e){Wue.call(this,e)}function hQe(e){qW.call(this,e)}function pQe(e){qW.call(this,e)}function gQe(e){vrt.call(this,e)}function bQe(e){hle.call(this,e)}function UN(e){q9.call(this,e)}function Kue(e){q9.call(this,e)}function mQe(e){q9.call(this,e)}function Es(e){gst.call(this,e)}function wQe(e){Es.call(this,e)}function aS(){JR.call(this,{})}function uq(e){VA(),this.a=e}function yQe(e){e.b=null,e.c=0}function NQt(e,t){e.e=t,$wt(e,t)}function CQt(e,t){e.a=t,ovn(e)}function lq(e,t,r){e.a[t.g]=r}function IQt(e,t,r){_0n(r,e,t)}function RQt(e,t){yrn(t.i,e.n)}function vQe(e,t){Ppn(e).Ad(t)}function OQt(e,t){return e*e/t}function EQe(e,t){return e.g-t.g}function DQt(e,t){e.a.ec().Kc(t)}function LQt(e){return new S9(e)}function MQt(e){return new ty(e)}function SQe(){SQe=K,WEe=new E}function Yue(){Yue=K,KEe=new ee}function M9(){M9=K,bI=new ae}function P9(){P9=K,BQ=new yrt}function TQe(){TQe=K,txt=new pe}function j9(e){Age(),this.a=e}function AQe(e){tot(),this.a=e}function Yp(e){KV(),this.f=e}function dq(e){KV(),this.f=e}function F9(e){Es.call(this,e)}function Ia(e){Es.call(this,e)}function _Qe(e){Es.call(this,e)}function fq(e){gst.call(this,e)}function MA(e){Es.call(this,e)}function jt(e){Es.call(this,e)}function ts(e){Es.call(this,e)}function xQe(e){Es.call(this,e)}function cS(e){Es.call(this,e)}function Jp(e){Es.call(this,e)}function Ls(e){Mt(e),this.a=e}function HN(e){ohe(e,e.length)}function Jue(e){return Wb(e),e}function Fw(e){return!!e&&e.b}function PQt(e){return!!e&&e.k}function jQt(e){return!!e&&e.j}function zN(e){return e.b==e.c}function Ye(e){return Mt(e),e}function ce(e){return Mt(e),e}function rO(e){return Mt(e),e}function Xue(e){return Mt(e),e}function FQt(e){return Mt(e),e}function _f(e){Es.call(this,e)}function uS(e){Es.call(this,e)}function xf(e){Es.call(this,e)}function Dn(e){Es.call(this,e)}function hq(e){Es.call(this,e)}function pq(e){Mde.call(this,e,0)}function gq(){qhe.call(this,12,3)}function bq(){this.a=In(kn(ja))}function kQe(){throw Y(new Nn)}function Zue(){throw Y(new Nn)}function NQe(){throw Y(new Nn)}function $Qt(){throw Y(new Nn)}function BQt(){throw Y(new Nn)}function UQt(){throw Y(new Nn)}function $9(){$9=K,l_()}function Xp(){ZR.call(this,"")}function GN(){ZR.call(this,"")}function Qg(){ZR.call(this,"")}function lS(){ZR.call(this,"")}function Que(e){Ia.call(this,e)}function ele(e){Ia.call(this,e)}function kf(e){jt.call(this,e)}function PA(e){CA.call(this,e)}function CQe(e){PA.call(this,e)}function mq(e){B8.call(this,e)}function HQt(e,t,r){e.c.Cf(t,r)}function zQt(e,t,r){t.Ad(e.a[r])}function GQt(e,t,r){t.Ne(e.a[r])}function qQt(e,t){return e.a-t.a}function VQt(e,t){return e.a-t.a}function WQt(e,t){return e.a-t.a}function B9(e,t){return sK(e,t)}function X(e,t){return wct(e,t)}function KQt(e,t){return t in e.a}function IQe(e){return e.a?e.b:0}function YQt(e){return e.a?e.b:0}function RQe(e,t){return e.f=t,e}function JQt(e,t){return e.b=t,e}function OQe(e,t){return e.c=t,e}function XQt(e,t){return e.g=t,e}function tle(e,t){return e.a=t,e}function nle(e,t){return e.f=t,e}function ZQt(e,t){return e.k=t,e}function rle(e,t){return e.e=t,e}function QQt(e,t){return e.e=t,e}function ile(e,t){return e.a=t,e}function een(e,t){return e.f=t,e}function ten(e,t){e.b=new To(t)}function DQe(e,t){e._d(t),t.$d(e)}function nen(e,t){hu(),t.n.a+=e}function ren(e,t){T1(),As(t,e)}function ole(e){Eat.call(this,e)}function LQe(e){Eat.call(this,e)}function MQe(){hde.call(this,"")}function PQe(){this.b=0,this.a=0}function jQe(){jQe=K,pxt=Z0n()}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 wq(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 ien(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 oen(e,t){return e.g-t.g}function sen(e,t){return e.b-t.b}function aen(e,t){return e.s-t.s}function cen(e,t){return e?0:t-1}function FQe(e,t){return e?0:t-1}function uen(e,t){return e?t-1:0}function len(e,t){return t.pg(e)}function $Qe(e,t){return e.k=t,e}function den(e,t){return e.j=t,e}function ro(){this.a=0,this.b=0}function U9(e){OV.call(this,e)}function e1(e){w0.call(this,e)}function BQe(e){SW.call(this,e)}function UQe(e){SW.call(this,e)}function HQe(e,t){e.b=0,dy(e,t)}function fen(e,t){e.c=t,e.b=!0}function hen(e,t,r){Esn(e.a,t,r)}function zQe(e,t){return e.c._b(t)}function md(e){return e.e&&e.e()}function yq(e){return e?e.d:null}function GQe(e,t){return fgt(e.b,t)}function pen(e){return e?e.g:null}function gen(e){return e?e.i:null}function qQe(e,t){return Fen(e.a,t)}function sle(e,t){for(;e.zd(t););}function VQe(){throw Y(new Nn)}function t1(){t1=K,UDt=u0n()}function WQe(){WQe=K,Bi=ywn()}function ale(){ale=K,X1=W3()}function $A(){$A=K,R3e=l0n()}function KQe(){KQe=K,_Lt=d0n()}function cle(){cle=K,Ks=nvn()}function Ab(e){return np(e),e.o}function Wv(e,t){return e.a+=t,e}function vq(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 ule(e){SEt(),T3n(this,e)}function H9(e){this.a=new dS(e)}function Qp(e){this.a=new eW(e)}function YQe(){throw Y(new Nn)}function JQe(){throw Y(new Nn)}function XQe(){throw Y(new Nn)}function ZQe(){throw Y(new Nn)}function QQe(){throw Y(new Nn)}function eet(){this.b=new X_(R_e)}function tet(){this.a=new X_(fxe)}function z9(e){this.a=0,this.b=e}function net(){this.a=new X_(Pxe)}function ret(){this.b=new X_($ne)}function iet(){this.b=new X_($ne)}function oet(){this.a=new X_(Pke)}function set(e,t){return jSn(e,t)}function ben(e,t){return wxn(t,e)}function lle(e,t){return e.d[t.p]}function oO(e){return e.b!=e.d.c}function aet(e){return e.l|e.m<<22}function BA(e){return u1(e),e.a}function cet(e){e.c?tyt(e):nyt(e)}function Kv(e,t){for(;e.Pe(t););}function dle(e,t,r){e.splice(t,r)}function uet(){throw Y(new Nn)}function det(){throw Y(new Nn)}function fet(){throw Y(new Nn)}function het(){throw Y(new Nn)}function pet(){throw Y(new Nn)}function get(){throw Y(new Nn)}function bet(){throw Y(new Nn)}function met(){throw Y(new Nn)}function wet(){throw Y(new Nn)}function yet(){throw Y(new Nn)}function men(){throw Y(new vs)}function wen(){throw Y(new vs)}function sO(e){this.a=new vet(e)}function vet(e){lhn(this,e,Eyn())}function aO(e){return!e||Zst(e)}function cO(e){return mf[e]!=-1}function yen(){u$!=0&&(u$=0),l$=-1}function Eet(){MQ==null&&(MQ=[])}function uO(e,t){aE.call(this,e,t)}function UA(e,t){uO.call(this,e,t)}function Tet(e,t){this.a=e,this.b=t}function Aet(e,t){this.a=e,this.b=t}function _et(e,t){this.a=e,this.b=t}function xet(e,t){this.a=e,this.b=t}function ket(e,t){this.a=e,this.b=t}function Net(e,t){this.a=e,this.b=t}function Cet(e,t){this.a=e,this.b=t}function HA(e,t){this.e=e,this.d=t}function fle(e,t){this.b=e,this.c=t}function Iet(e,t){this.b=e,this.a=t}function Ret(e,t){this.b=e,this.a=t}function Oet(e,t){this.b=e,this.a=t}function Det(e,t){this.b=e,this.a=t}function Let(e,t){this.a=e,this.b=t}function Met(e,t){this.a=e,this.b=t}function Eq(e,t){this.a=e,this.b=t}function Pet(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 jet(e,t){this.b=e,this.c=t}function Fet(e){Tde(e.dc()),this.c=e}function ven(e,t){this.a=e,this.b=t}function $et(e,t){this.a=e,this.b=t}function Bet(e){this.a=l(kn(e),16)}function hle(e){this.a=l(kn(e),16)}function Uet(e){this.a=l(kn(e),93)}function G9(e){this.b=l(kn(e),93)}function q9(e){this.b=l(kn(e),51)}function V9(){this.q=new b.Date}function Sq(e,t){this.a=e,this.b=t}function Het(e,t){return ma(e.b,t)}function VN(e,t){return e.b.Gc(t)}function ple(e,t){return e.b.Hc(t)}function gle(e,t){return e.b.Oc(t)}function zet(e,t){return e.b.Gc(t)}function Get(e,t){return e.c.uc(t)}function qet(e,t){return gr(e.c,t)}function bl(e,t){return e.a._b(t)}function Vet(e,t){return e>t&&t0}function kq(e,t){return Ea(e,t)<0}function att(e,t){return VV(e.a,t)}function Fen(e,t){return e.a.a.cc(t)}function Nq(e){return e.b=0}function f3(e,t){return Ea(e,t)!=0}function o1(e,t){return e.Pd().Xb(t)}function C8(e,t){return jhn(e.Jc(),t)}function Zen(e){return""+(Mt(e),e)}function rde(e,t){return e.a+=""+t,e}function h3(e,t){return e.a+=""+t,e}function Wo(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 I8(e){return T3(e==null),e}function ide(e){return at(e,0),null}function Nnt(e){return $c(e),e.d.gc()}function Qen(e){b.clearTimeout(e)}function Cnt(e,t){e.q.setTime($b(t))}function etn(e,t){_fn(new tn(e),t)}function Int(e,t){the.call(this,e,t)}function Rnt(e,t){the.call(this,e,t)}function R8(e,t){the.call(this,e,t)}function So(e,t){Wr(e,t,e.c.b,e.c)}function Qv(e,t){Wr(e,t,e.a,e.a.a)}function ttn(e,t){return e.j[t.p]==2}function Ont(e,t){return e.a=t.g+1,e}function wd(e){return e.a=0,e.b=0,e}function Dnt(){Dnt=K,okt=yn(yY())}function Lnt(){Lnt=K,hNt=yn(Iwt())}function Mnt(){Mnt=K,oRt=yn(Fht())}function Pnt(){this.b=new dS(py(12))}function jnt(){this.b=0,this.a=!1}function Fnt(){this.b=0,this.a=!1}function g3(e){this.a=e,FG.call(this)}function $nt(e){this.a=e,FG.call(this)}function ht(e,t){Pr.call(this,e,t)}function aV(e,t){Yw.call(this,e,t)}function eE(e,t){ede.call(this,e,t)}function Bnt(e,t){RO.call(this,e,t)}function cV(e,t){A_.call(this,e,t)}function er(e,t){t8(),Jn(EU,e,t)}function uV(e,t){return yl(e.a,0,t)}function Unt(e,t){return me(e)===me(t)}function ntn(e,t){return vr(e.a,t.a)}function ode(e,t){return na(e.a,t.a)}function rtn(e,t){return Dst(e.a,t.a)}function mS(e){return bo((Mt(e),e))}function itn(e){return bo((Mt(e),e))}function Hnt(e){return Ua(e.l,e.m,e.h)}function otn(e){return kn(e),new g3(e)}function Nf(e,t){return e.indexOf(t)}function gs(e){return typeof e===nwe}function O8(e){return e<10?"0"+e:""+e}function stn(e){return e==X0||e==Uy}function atn(e){return e==X0||e==By}function znt(e,t){return na(e.g,t.g)}function sde(e){return _s(e.b.b,e,0)}function Gnt(e){Zs(this),X3(this,e)}function qnt(e){this.a=Itt(),this.b=e}function Vnt(e){this.a=Itt(),this.b=e}function Wnt(e,t){return Fe(e.a,t),t}function ade(e,t){g_(e,0,e.length,t)}function ctn(e,t){return na(e.g,t.g)}function utn(e,t){return vr(t.f,e.f)}function ltn(e,t){return hu(),t.a+=e}function dtn(e,t){return hu(),t.a+=e}function ftn(e,t){return hu(),t.c+=e}function cde(e,t){return yu(e.a,t),e}function htn(e,t){return Fe(e.c,t),e}function D8(e){return yu(new ci,e)}function ep(e){return e==cs||e==fs}function tE(e){return e==il||e==ff}function Knt(e){return e==c2||e==a2}function nE(e){return e!=pf&&e!=K1}function Jc(e){return e.sh()&&e.th()}function Ynt(e){return gW(l(e,127))}function wS(){ql.call(this,0,0,0,0)}function Jnt(){cP.call(this,0,0,0,0)}function ch(){fue.call(this,new f1)}function lV(e){vnt.call(this,e,!0)}function To(e){this.a=e.a,this.b=e.b}function dV(e,t){I_(e,t),y_(e,e.D)}function fV(e,t,r){bj(e,t),gj(e,r)}function i0(e,t,r){Hb(e,t),Ub(e,r)}function Bu(e,t,r){va(e,t),gc(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 Xnt(e,t,r){zde.call(this,e,t,r)}function Znt(){o8.call(this,"Head",1)}function Qnt(){o8.call(this,"Tail",3)}function s1(e){jf(),Bhn.call(this,e)}function rE(e){return e!=null?Rr(e):0}function ert(e,t){return new A_(t,e)}function ptn(e,t){return new A_(t,e)}function gtn(e,t){return ly(t,Gd(e))}function btn(e,t){return ly(t,Gd(e))}function mtn(e,t){return e[e.length]=t}function wtn(e,t){return e[e.length]=t}function ude(e){return Mon(e.b.Jc(),e.a)}function ytn(e,t){return Ej(dW(e.f),t)}function vtn(e,t){return Ej(dW(e.n),t)}function Etn(e,t){return Ej(dW(e.p),t)}function Mi(e,t){Pr.call(this,e.b,t)}function xb(e){cP.call(this,e,e,e,e)}function hV(e){e.c=we(Ri,It,1,0,5,1)}function trt(e,t,r){ii(e.c[t.g],t.g,r)}function Stn(e,t,r){l(e.c,72).Ei(t,r)}function Ttn(e,t,r){Bu(r,r.i+e,r.j+t)}function Atn(e,t){Tn(oa(e.a),Oct(t))}function _tn(e,t){Tn(Fc(e.a),Dct(t))}function xtn(e,t){sf||(e.b=t)}function pV(e,t,r){return ii(e,t,r),r}function nrt(e){La(e.Qf(),new vYe(e))}function rrt(){rrt=K,Zte=new uC(xre)}function lde(){lde=K,Rue(),YEe=new hn}function Cn(){Cn=K,new irt,new je}function irt(){new hn,new hn,new hn}function ktn(){throw Y(new Jp($_t))}function Ntn(){throw Y(new Jp($_t))}function Ctn(){throw Y(new Jp(B_t))}function Itn(){throw Y(new Jp(B_t))}function b3(e){hr(),Km.call(this,e)}function ort(e){this.a=e,kfe.call(this,e)}function gV(e){this.a=e,G9.call(this,e)}function bV(e){this.a=e,G9.call(this,e)}function Rtn(e){return e==null?0:Rr(e)}function Ts(e){return e.a0?e:t}function na(e,t){return et?1:0}function srt(e,t){return e.a?e.b:t.Ue()}function Ua(e,t,r){return{l:e,m:t,h:r}}function Otn(e,t){e.a!=null&&ont(t,e.a)}function Dtn(e,t){kn(t),uE(e).Ic(new P)}function ki(e,t){qV(e.c,e.c.length,t)}function art(e){e.a=new pt,e.c=new pt}function L8(e){this.b=e,this.a=new je}function crt(e){this.b=new sh,this.a=e}function hde(e){ife.call(this),this.a=e}function urt(e){Lhe.call(this),this.b=e}function lrt(){o8.call(this,"Range",2)}function drt(){bbe(),this.a=new X_(q2e)}function Ud(){Ud=K,b.Math.log(2)}function Uu(){Uu=K,Lh=(itt(),WDt)}function M8(e){e.j=we(c2e,Pe,325,0,0,1)}function frt(e){e.a=new hn,e.e=new hn}function pde(e){return new Me(e.c,e.d)}function Ltn(e){return new Me(e.c,e.d)}function Ao(e){return new Me(e.a,e.b)}function Mtn(e,t){return Jn(e.a,t.a,t)}function Ptn(e,t,r){return Jn(e.g,r,t)}function jtn(e,t,r){return Jn(e.k,r,t)}function iE(e,t,r){return P1e(t,r,e.c)}function hrt(e,t){return Hkn(e.a,t,null)}function gde(e,t){return le(Ut(e.i,t))}function bde(e,t){return le(Ut(e.j,t))}function prt(e,t){vn(e),e.Fc(l(t,16))}function Ftn(e,t,r){e.c._c(t,l(r,138))}function $tn(e,t,r){e.c.Si(t,l(r,138))}function Btn(e,t,r){return Bkn(e,t,r),r}function Utn(e,t){return gu(),t.n.b+=e}function m3(e,t){return Jxn(e.c,e.b,t)}function mV(e,t){return mpn(e.Jc(),t)!=-1}function se(e,t){return e!=null&&TY(e,t)}function Htn(e,t){return new jrt(e.Jc(),t)}function P8(e){return e.Ob()?e.Pb():null}function grt(e){return Mf(e,0,e.length)}function ztn(e){mo(e,null),Yi(e,null)}function brt(e){DW(e,null),LW(e,null)}function mrt(){RO.call(this,null,null)}function wrt(){H8.call(this,null,null)}function yrt(){mn.call(this,"INSTANCE",0)}function oE(){this.a=we(Ri,It,1,8,5,1)}function mde(e){this.a=e,hn.call(this)}function vrt(e){this.a=(At(),new PA(e))}function Gtn(e){this.b=(At(),new YG(e))}function VA(){VA=K,w2e=new uq(null)}function wde(){wde=K,wde(),mxt=new Dt}function Fe(e,t){return Rt(e.c,t),!0}function Ert(e,t){e.c&&(jfe(t),ect(t))}function qtn(e,t){e.q.setHours(t),OC(e,t)}function yde(e,t){return e.a.Ac(t)!=null}function wV(e,t){return e.a.Ac(t)!=null}function Hd(e,t){return e.a[t.c.p][t.p]}function Vtn(e,t){return e.c[t.c.p][t.p]}function Wtn(e,t){return e.e[t.c.p][t.p]}function yV(e,t,r){return e.a[t.g][r.g]}function Ktn(e,t){return e.j[t.p]=E2n(t)}function yS(e,t){return e.a*t.a+e.b*t.b}function Ytn(e,t){return e.a=e}function enn(e,t,r){return r?t!=0:t!=e-1}function Srt(e,t,r){e.a=t^1502,e.b=r^kX}function tnn(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 nnn(e,t,r,o){ii(e.a[t.g],r.g,o)}function Ei(e,t,r){zO.call(this,e,t,r)}function j8(e,t,r){Ei.call(this,e,t,r)}function dc(e,t,r){Ei.call(this,e,t,r)}function Trt(e,t,r){j8.call(this,e,t,r)}function vde(e,t,r){zO.call(this,e,t,r)}function sE(e,t,r){zO.call(this,e,t,r)}function Art(e,t,r){Ede.call(this,e,t,r)}function _rt(e,t,r){vde.call(this,e,t,r)}function Ede(e,t,r){Q8.call(this,e,t,r)}function xrt(e,t,r){Q8.call(this,e,t,r)}function a1(e){this.c=e,this.a=this.c.a}function tn(e){this.i=e,this.f=this.i.j}function aE(e,t){this.a=e,G9.call(this,t)}function krt(e,t){this.a=e,pq.call(this,t)}function Nrt(e,t){this.a=e,pq.call(this,t)}function Crt(e,t){this.a=e,pq.call(this,t)}function Sde(e){this.a=e,NKe.call(this,e.d)}function Irt(e){e.b.Qb(),--e.d.f.d,fP(e.d)}function Rrt(e){e.a=l(qt(e.b.a,4),131)}function Ort(e){e.a=l(qt(e.b.a,4),131)}function rnn(e){YO(e,fAt),MF(e,jNn(e))}function Drt(e){HG.call(this,l(kn(e),34))}function Lrt(e){HG.call(this,l(kn(e),34))}function Tde(e){if(!e)throw Y(new nO)}function Ade(e){if(!e)throw Y(new lc)}function _de(e,t){return Qgn(e,new Qg,t).a}function Mrt(e,t){return new $mt(e.a,e.b,t)}function Gt(e,t){return kn(t),new Prt(e,t)}function Prt(e,t){this.a=t,q9.call(this,e)}function jrt(e,t){this.a=t,q9.call(this,e)}function xde(e,t){this.a=t,pq.call(this,e)}function Frt(e,t){this.a=t,qW.call(this,e)}function $rt(e,t){this.a=e,qW.call(this,t)}function Brt(){M8(this),kP(this),this.he()}function kde(){this.Bb|=256,this.Bb|=512}function Lt(){Lt=K,L1=!1,Bx=!0}function Urt(){Urt=K,_q(),SLt=new wKe}function inn(e){return oO(e.a)?Lct(e):null}function onn(e){return e.l+e.m*fT+e.h*nm}function snn(e){return e==null?null:e.name}function y3(e){return e==null?tc:ms(e)}function F8(e,t){return e.lastIndexOf(t)}function Nde(e,t,r){return e.indexOf(t,r)}function fc(e,t){return!!t&&e.b[t.g]==t}function vS(e){return e.a!=null?e.a:null}function Xc(e){return cn(e.a!=null),e.a}function CO(e,t,r){return RK(e,t,t,r),e}function Hrt(e,t){return Fe(t.a,e.a),e.a}function zrt(e,t){return Fe(t.b,e.a),e.a}function $8(e,t){return++e.b,Fe(e.a,t)}function Cde(e,t){return++e.b,Xa(e.a,t)}function o0(e,t){return Fe(t.a,e.a),e.a}function B8(e){CA.call(this,e),this.a=e}function Ide(e){qv.call(this,e),this.a=e}function Rde(e){PA.call(this,e),this.a=e}function Ode(e){tq.call(this),wo(this,e)}function ml(e){ZR.call(this,(Mt(e),e))}function fu(e){ZR.call(this,(Mt(e),e))}function vV(e){fue.call(this,new Ipe(e))}function Dde(e,t){q1e.call(this,e,t,null)}function ann(e,t){return vr(e.n.a,t.n.a)}function cnn(e,t){return vr(e.c.d,t.c.d)}function unn(e,t){return vr(e.c.c,t.c.c)}function Ya(e,t){return l(yr(e.b,t),16)}function lnn(e,t){return e.n.b=(Mt(t),t)}function dnn(e,t){return e.n.b=(Mt(t),t)}function fnn(e,t){return vr(e.e.b,t.e.b)}function hnn(e,t){return vr(e.e.a,t.e.a)}function pnn(e,t,r){return Mut(e,t,r,e.b)}function Lde(e,t,r){return Mut(e,t,r,e.c)}function gnn(e){return hu(),!!e&&!e.dc()}function Grt(){YN(),this.b=new nJe(this)}function qrt(e){this.a=e,KG.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 U8(e,t){KV(),this.f=t,this.d=e}function RO(e,t){QN(),this.a=e,this.b=t}function H8(e,t){tg(),this.b=e,this.c=t}function Mde(e,t){Spe(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=++sCn)}function EV(e,t){return new Yit(e,e.gc(),t)}function bnn(e,t){return ZV(e.c).Kd().Xb(t)}function WA(e,t,r){var o;o=e.dd(t),o.Rb(r)}function Pde(e,t,r){l(f6(e,t),24).Ec(r)}function mnn(e,t,r){tY(e.a,r),lF(e.a,t)}function Vrt(e,t,r,o){Qfe.call(this,e,t,r,o)}function KA(e,t,r){return Nde(e,Qa(t),r)}function wnn(e){return P9(),wn((yct(),K_t),e)}function ynn(e){return new ay(3,e)}function uh(e){return wu(e,Oy),new Da(e)}function YA(e){return cn(e.b!=0),e.a.a.c}function zl(e){return cn(e.b!=0),e.c.b.c}function vnn(e,t){return RK(e,t,t+1,""),e}function Wrt(e){if(!e)throw Y(new $u)}function Krt(e){e.d=new Xrt(e),e.e=new hn}function jde(e){if(!e)throw Y(new nO)}function Enn(e){if(!e)throw Y(new QG)}function cn(e){if(!e)throw Y(new vs)}function Gw(e){if(!e)throw Y(new lc)}function Yrt(e){return e.b=l(Che(e.a),45)}function br(e,t){return!!e.q&&ma(e.q,t)}function Snn(e,t){return e>0?t*t/e:t*t*100}function Tnn(e,t){return e>0?t/(e*e):t*100}function qw(e,t){return l(Wd(e.a,t),34)}function Ann(e){return e.f!=null?e.f:""+e.g}function SV(e){return e.f!=null?e.f:""+e.g}function Jrt(e){return l_(),parseInt(e)||-1}function _nn(e){return dp(),e.e.a+e.f.a/2}function xnn(e,t,r){return dp(),r.e.a-e*t}function knn(e,t,r){return K9(),r.Lg(e,t)}function Nnn(e,t,r){return dp(),r.e.b-e*t}function Cnn(e){return dp(),e.e.b+e.f.b/2}function Inn(e,t){return T1(),yt(e,t.e,t)}function OO(e){se(e,162)&&l(e,162).mi()}function Xrt(e){Nfe.call(this,e,null,null)}function Zrt(){mn.call(this,"GROW_TREE",0)}function Qrt(e){this.c=e,this.a=1,this.b=1}function TV(e){$w(),this.b=e,this.a=!0}function eit(e){W9(),this.b=e,this.a=!0}function tit(e){KJ(),mZe(this),this.Df(e)}function nit(e){Ar.call(this),K3(this,e)}function rit(e){this.c=e,va(e,0),gc(e,0)}function z8(e){return e.a=-e.a,e.b=-e.b,e}function Fde(e,t){return e.a=t.a,e.b=t.b,e}function Vw(e,t,r){return e.a+=t,e.b+=r,e}function iit(e,t,r){return e.a-=t,e.b-=r,e}function Rnn(e,t,r){rj(),e.nf(t)&&r.Ad(e)}function Onn(e,t,r){aC(oa(e.a),t,Oct(r))}function Dnn(e,t,r){return Fe(t,Dgt(e,r))}function Lnn(e,t){return l(Ut(e.e,t),19)}function Mnn(e,t){return l(Ut(e.e,t),19)}function Pnn(e,t){return e.c.Ec(l(t,138))}function oit(e,t){QN(),RO.call(this,e,t)}function $de(e,t){tg(),H8.call(this,e,t)}function sit(e,t){tg(),H8.call(this,e,t)}function ait(e,t){tg(),$de.call(this,e,t)}function AV(e,t){Uu(),lP.call(this,e,t)}function cit(e,t){Uu(),AV.call(this,e,t)}function Bde(e,t){Uu(),AV.call(this,e,t)}function uit(e,t){Uu(),Bde.call(this,e,t)}function Ude(e,t){Uu(),lP.call(this,e,t)}function lit(e,t){Uu(),lP.call(this,e,t)}function dit(e,t){Uu(),Ude.call(this,e,t)}function Zc(e,t,r){pc.call(this,e,t,r,2)}function jnn(e,t,r){aC(Fc(e.a),t,Dct(r))}function _V(e,t){return y1(e.e,l(t,52))}function Fnn(e,t,r){return t.xl(e.e,e.c,r)}function $nn(e,t,r){return t.yl(e.e,e.c,r)}function Hde(e,t,r){return JF(h6(e,t),r)}function fit(e,t){return Mt(e),e+RV(t)}function Bnn(e){return e==null?null:ms(e)}function Unn(e){return e==null?null:ms(e)}function Hnn(e){return e==null?null:NNn(e)}function znn(e){return e==null?null:kyn(e)}function np(e){e.o==null&&KEn(e)}function Ke(e){return T3(e==null||Hw(e)),e}function le(e){return T3(e==null||zw(e)),e}function In(e){return T3(e==null||zi(e)),e}function hit(){this.a=new b0,this.b=new b0}function Gnn(e,t){this.d=e,QKe(this),this.b=t}function DO(e,t){this.c=e,HA.call(this,e,t)}function E3(e,t){this.a=e,DO.call(this,e,t)}function zde(e,t,r){tj.call(this,e,t,r,null)}function pit(e,t,r){tj.call(this,e,t,r,null)}function Gde(){tht.call(this),this.Bb|=Io}function qde(e,t){tK.call(this,e),this.a=t}function Vde(e,t){tK.call(this,e),this.a=t}function git(e,t){sf||Fe(e.a,t)}function qnn(e,t){return RY(e,t),new lat(e,t)}function Vnn(e,t,r){return e.Le(t,r)<=0?r:t}function Wnn(e,t,r){return e.Le(t,r)<=0?t:r}function bit(e){return Mt(e),e?1231:1237}function xV(e){return l(ze(e.a,e.b),296)}function mit(e){return gu(),Knt(l(e,205))}function Knn(e,t){return l(Wd(e.b,t),144)}function Ynn(e,t){return l(Wd(e.c,t),236)}function wit(e){return new Me(e.c,e.d+e.a)}function Jnn(e,t){return zS(),new xyt(t,e)}function Xnn(e,t){return fO(),T_(t.d.i,e)}function Znn(e,t){t.a?pEn(e,t):wV(e.a,t.b)}function Wde(e,t){return l(Ut(e.b,t),280)}function Pr(e,t){lr.call(this,e),this.a=t}function Kde(e,t,r){return r=Su(e,t,3,r),r}function Yde(e,t,r){return r=Su(e,t,6,r),r}function Jde(e,t,r){return r=Su(e,t,9,r),r}function Cf(e,t){return YO(t,Ewe),e.f=t,e}function Xde(e,t){return(t&ar)%e.d.length}function yit(e,t,r){++e.j,e.oj(t,e.Xi(t,r))}function LO(e,t,r){++e.j,e.rj(),eK(e,t,r)}function vit(e,t,r){var o;o=e.dd(t),o.Rb(r)}function Eit(e,t){this.c=e,w0.call(this,t)}function Sit(e,t){this.a=e,lZe.call(this,t)}function MO(e,t){this.a=e,lZe.call(this,t)}function Zde(e){this.q=new b.Date($b(e))}function Tit(e){this.a=(wu(e,Oy),new Da(e))}function Ait(e){this.a=(wu(e,Oy),new Da(e))}function kV(e){this.a=(At(),new WG(kn(e)))}function G8(){G8=K,w$=new Pr(K2t,0)}function cE(){cE=K,d2=new lr("root")}function JA(){JA=K,u5=new WZe,new KZe}function Ww(){Ww=K,_2e=lt((su(),xm))}function Qnn(e){return On(Rb(e,32))^On(e)}function NV(e){return String.fromCharCode(e)}function ern(e){return e==null?null:e.message}function trn(e,t,r){return e.apply(t,r)}function _it(e,t,r){return M0e(e.c,e.b,t,r)}function Qde(e,t,r){return IS(e,l(t,23),r)}function kb(e,t){return Lt(),e==t?0:e?1:-1}function efe(e,t){var r;return r=t,!!e.De(r)}function tfe(e,t){var r;return r=e.e,e.e=t,r}function nrn(e,t){var r;r=e[xX],r.call(e,t)}function rrn(e,t){var r;r=e[xX],r.call(e,t)}function Kw(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function xit(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 ue),e.a}function kit(e,t,r){return e.a+=Mf(t,0,r),e}function irn(e,t,r){_b(),JKe(e,t.Te(e.a,r))}function nfe(e,t,r,o){cP.call(this,e,t,r,o)}function rfe(e,t){xue.call(this,e),this.a=t}function CV(e,t){xue.call(this,e),this.a=t}function Nit(){q8.call(this),this.a=new ro}function ife(){this.n=new ro,this.o=new ro}function Cit(){this.b=new ro,this.c=new je}function Iit(){this.a=new je,this.b=new je}function Rit(){this.a=new ah,this.b=new AZe}function ofe(){this.b=new f1,this.a=new f1}function Oit(){this.b=new pi,this.a=new pi}function Dit(){this.b=new hn,this.a=new hn}function Lit(){this.a=new je,this.d=new je}function Mit(){this.a=new PWe,this.b=new pUe}function Pit(){this.b=new eet,this.a=new _He}function q8(){this.n=new oS,this.i=new wS}function mr(e,t){return e.a+=t.a,e.b+=t.b,e}function Di(e,t){return e.a-=t.a,e.b-=t.b,e}function orn(e){return jw(e.j.c,0),e.a=-1,e}function sfe(e,t,r){return r=Su(e,t,11,r),r}function jit(e,t,r){r!=null&&Sj(t,LY(e,r))}function Fit(e,t,r){r!=null&&Tj(t,LY(e,r))}function TS(e,t,r,o){ke.call(this,e,t,r,o)}function Yw(e,t){Ia.call(this,aI+e+cm+t)}function afe(e,t,r,o){ke.call(this,e,t,r,o)}function $it(e,t,r,o){afe.call(this,e,t,r,o)}function Bit(e,t,r,o){wP.call(this,e,t,r,o)}function IV(e,t,r,o){wP.call(this,e,t,r,o)}function Uit(e,t,r,o){IV.call(this,e,t,r,o)}function cfe(e,t,r,o){wP.call(this,e,t,r,o)}function Tt(e,t,r,o){cfe.call(this,e,t,r,o)}function ufe(e,t,r,o){IV.call(this,e,t,r,o)}function Hit(e,t,r,o){ufe.call(this,e,t,r,o)}function zit(e,t,r,o){rhe.call(this,e,t,r,o)}function lfe(e,t){return e.hk().ti().oi(e,t)}function dfe(e,t){return e.hk().ti().qi(e,t)}function srn(e,t){return e.n.a=(Mt(t),t+10)}function arn(e,t){return e.n.a=(Mt(t),t+10)}function crn(e,t){return e.e=l(e.d.Kb(t),163)}function urn(e,t){return t==e||q_(LF(t),e)}function Gl(e,t){return B9(new Array(t),e)}function Git(e,t){return Mt(e),me(e)===me(t)}function wt(e,t){return Mt(e),me(e)===me(t)}function qit(e,t){return Jn(e.a,t,"")==null}function ffe(e,t,r){return e.lastIndexOf(t,r)}function lrn(e,t){return e.b.zd(new dtt(e,t))}function drn(e,t){return e.b.zd(new ftt(e,t))}function Vit(e,t){return e.b.zd(new htt(e,t))}function frn(e){return e<100?null:new e1(e)}function hrn(e,t){return Te(t,(Ue(),mL),e)}function prn(e,t,r){return vr(e[t.a],e[r.a])}function grn(e,t){return na(e.a.d.p,t.a.d.p)}function brn(e,t){return na(t.a.d.p,e.a.d.p)}function mrn(e,t){return fO(),!T_(t.d.i,e)}function wrn(e,t){sf||t&&(e.d=t)}function yrn(e,t){ep(e.f)?BEn(e,t):Iwn(e,t)}function Wit(e,t){Pon.call(this,e,e.length,t)}function Kit(e){this.c=e,R8.call(this,wD,0)}function hfe(e,t){this.c=e,sW.call(this,e,t)}function Yit(e,t,r){this.a=e,Mde.call(this,t,r)}function Jit(e,t,r){this.c=t,this.b=r,this.a=e}function FO(e){ZA(),this.d=e,this.a=new oE}function vrn(e,t){var r;return r=t.ni(e.a),r}function Ern(e,t){return vr(e.c-e.s,t.c-t.s)}function Srn(e,t){return vr(e.c.e.a,t.c.e.a)}function Trn(e,t){return vr(e.b.e.a,t.b.e.a)}function Xit(e,t){return se(t,16)&&syt(e.c,t)}function Arn(e,t,r){return l(e.c,72).Uk(t,r)}function V8(e,t,r){return l(e.c,72).Vk(t,r)}function _rn(e,t,r){return Fnn(e,l(t,345),r)}function pfe(e,t,r){return $nn(e,l(t,345),r)}function xrn(e,t,r){return Hbt(e,l(t,345),r)}function Zit(e,t,r){return Hwn(e,l(t,345),r)}function S3(e,t){return t==null?null:by(e.b,t)}function AS(e){return e==_m||e==Oh||e==fa}function Qit(e){return e.c?_s(e.c.a,e,0):-1}function RV(e){return zw(e)?(Mt(e),e):e.se()}function W8(e){return!isNaN(e)&&!isFinite(e)}function OV(e){art(this),tu(this),wo(this,e)}function Tc(e){hV(this),Pfe(this.c,0,e.Nc())}function eot(e){Mc(e.a),Npe(e.c,e.b),e.b=null}function DV(){DV=K,m2e=new Kt,gxt=new Et}function tot(){tot=K,ZDt=we(Ri,It,1,0,5,1)}function not(){not=K,bLt=we(Ri,It,1,0,5,1)}function gfe(){gfe=K,mLt=we(Ri,It,1,0,5,1)}function krn(e){return b_(),wn((Adt(),wxt),e)}function Nrn(e){return Yu(),wn((Flt(),Axt),e)}function Crn(e){return Sd(),wn(($lt(),Oxt),e)}function Irn(e){return _c(),wn((Blt(),Lxt),e)}function Rrn(e){return Za(),wn((Ult(),Pxt),e)}function Orn(e){return t7(),wn((Dnt(),okt),e)}function bfe(e,t){if(!e)throw Y(new jt(t))}function XA(e){if(!e)throw Y(new ts(rwe))}function LV(e,t){if(e!=t)throw Y(new $u)}function Hu(e,t,r){this.a=e,this.b=t,this.c=r}function rot(e,t,r){this.a=e,this.b=t,this.c=r}function iot(e,t,r){this.a=e,this.b=t,this.c=r}function mfe(e,t,r){this.b=e,this.c=t,this.a=r}function oot(e,t,r){this.d=e,this.b=r,this.a=t}function Drn(e,t,r){return _b(),e.a.Wd(t,r),t}function MV(e){var t;return t=new yb,t.e=e,t}function wfe(e){var t;return t=new RZe,t.b=e,t}function K8(e,t,r){this.e=t,this.b=e,this.d=r}function Y8(e,t,r){this.b=e,this.a=t,this.c=r}function sot(e){this.a=e,eg(),Gs(Date.now())}function aot(e,t,r){this.a=e,this.b=t,this.c=r}function PV(e){cP.call(this,e.d,e.c,e.a,e.b)}function yfe(e){cP.call(this,e.d,e.c,e.a,e.b)}function Lrn(e){return Ht(),wn((Lht(),aNt),e)}function Mrn(e){return A0(),wn((_dt(),akt),e)}function Prn(e){return x_(),wn((xdt(),Xkt),e)}function jrn(e){return lj(),wn((Kut(),bkt),e)}function Frn(e){return G3(),wn((Hlt(),Hkt),e)}function $rn(e){return Vi(),wn((uft(),Vkt),e)}function Brn(e){return YS(),wn((kdt(),rNt),e)}function Urn(e){return E_(),wn((Yut(),fNt),e)}function Hrn(e){return Xi(),wn((Lnt(),hNt),e)}function zrn(e){return Pj(),wn((Ndt(),bNt),e)}function Grn(e){return Xl(),wn((Cdt(),kNt),e)}function qrn(e){return Ey(),wn((Eft(),CNt),e)}function Vrn(e){return nj(),wn((Xut(),jNt),e)}function Wrn(e){return eT(),wn((Bft(),PNt),e)}function Krn(e){return T0(),wn((sdt(),LNt),e)}function Yrn(e){return UF(),wn((Mht(),MNt),e)}function Jrn(e){return lC(),wn((Ddt(),FNt),e)}function Xrn(e){return wj(),wn((Vlt(),$Nt),e)}function Zrn(e){return tD(),wn((Jht(),BNt),e)}function Qrn(e){return m6(),wn((Jut(),UNt),e)}function ein(e){return Vb(),wn((Wlt(),zNt),e)}function tin(e){return xF(),wn(($ft(),GNt),e)}function nin(e){return l6(),wn((Zut(),qNt),e)}function rin(e){return K6(),wn((jft(),VNt),e)}function iin(e){return W_(),wn((Fft(),WNt),e)}function oin(e){return $o(),wn((lpt(),KNt),e)}function sin(e){return __(),wn((qlt(),YNt),e)}function ain(e){return b1(),wn((zlt(),JNt),e)}function cin(e){return lp(),wn((Glt(),ZNt),e)}function uin(e){return HP(),wn((Qut(),QNt),e)}function lin(e){return iu(),wn((Tft(),t3t),e)}function din(e){return qP(),wn((elt(),n3t),e)}function fin(e){return vy(),wn((Rdt(),qIt),e)}function hin(e){return rC(),wn((edt(),GIt),e)}function pin(e){return hC(),wn((Aft(),VIt),e)}function gin(e){return x1(),wn((upt(),WIt),e)}function bin(e){return rD(),wn((Xht(),zIt),e)}function min(e){return bp(),wn((Odt(),KIt),e)}function win(e){return g6(),wn((tlt(),YIt),e)}function yin(e){return Fo(),wn((Klt(),XIt),e)}function vin(e){return Dj(),wn((Ylt(),ZIt),e)}function Ein(e){return nC(),wn((Jlt(),QIt),e)}function Sin(e){return R_(),wn((Xlt(),e4t),e)}function Tin(e){return mj(),wn((Zlt(),t4t),e)}function Ain(e){return Lj(),wn((Qlt(),n4t),e)}function _in(e){return Kb(),wn((Idt(),E4t),e)}function xin(e){return H3(),wn((nlt(),x4t),e)}function kin(e){return If(),wn((rlt(),D4t),e)}function Nin(e){return zd(),wn((ilt(),M4t),e)}function Cin(e){return vd(),wn((olt(),J4t),e)}function Iin(e,t){return Mt(e),e+(Mt(t),t)}function Rin(e){return g0(),wn((slt(),rRt),e)}function Oin(e){return JS(),wn((jdt(),iRt),e)}function Din(e){return IC(),wn((Mnt(),oRt),e)}function Lin(e){return eC(),wn((adt(),sRt),e)}function Min(e){return tC(),wn((Ldt(),CRt),e)}function Pin(e){return $P(),wn((alt(),IRt),e)}function jin(e){return xj(),wn((clt(),MRt),e)}function Fin(e){return EF(),wn((Sft(),jRt),e)}function $in(e){return ij(),wn((ult(),FRt),e)}function Bin(e){return R6(),wn((cdt(),$Rt),e)}function Uin(e){return fF(),wn((Mdt(),oOt),e)}function Hin(e){return Rj(),wn((tdt(),sOt),e)}function zin(e){return Qj(),wn((ndt(),aOt),e)}function Gin(e){return TF(),wn((Pdt(),uOt),e)}function qin(e){return Kj(),wn((udt(),fOt),e)}function ZA(){ZA=K,C_e=(He(),Wt),OB=Qt}function hu(){hu=K,TNt=new ABe,ANt=new _Be}function $O(){$O=K,A$=new U7e,_$=new H7e}function J8(){J8=K,wNt=new g$e,mNt=new b$e}function Vin(e){return!e.e&&(e.e=new je),e.e}function Win(e){return xC(),wn((_ft(),FOt),e)}function Kin(e){return J9(),wn((Sut(),BOt),e)}function Yin(e){return M6(),wn((rdt(),$Ot),e)}function Jin(e){return X9(),wn((Tut(),HOt),e)}function Xin(e){return o6(),wn((dlt(),zOt),e)}function Zin(e){return J6(),wn((xft(),GOt),e)}function Qin(e){return YP(),wn((llt(),LOt),e)}function eon(e){return oj(),wn((idt(),MOt),e)}function ton(e){return Hj(),wn((odt(),POt),e)}function non(e){return JN(),wn((Aut(),s6t),e)}function ron(e){return x6(),wn((flt(),a6t),e)}function ion(e){return GP(),wn((hlt(),c6t),e)}function oon(e){return bF(),wn((Fdt(),l6t),e)}function son(e){return Z9(),wn((_ut(),y6t),e)}function aon(e){return Q9(),wn((xut(),E6t),e)}function con(e){return e8(),wn((kut(),T6t),e)}function uon(e){return w6(),wn((plt(),_6t),e)}function lon(e){return Jd(),wn((vft(),R6t),e)}function don(e){return _1(),wn((Pht(),D6t),e)}function fon(e){return mh(),wn((zft(),L6t),e)}function hon(e){return Zb(),wn((Hft(),B6t),e)}function pon(e){return Si(),wn((cft(),fDt),e)}function gon(e){return O_(),wn(($dt(),hDt),e)}function bon(e){return Kd(),wn((ddt(),pDt),e)}function mon(e){return gp(),wn((Bdt(),gDt),e)}function won(e){return AF(),wn((Uft(),bDt),e)}function yon(e){return pp(),wn((ldt(),wDt),e)}function von(e){return vu(),wn((Udt(),vDt),e)}function Eon(e){return _y(),wn((Yht(),EDt),e)}function Son(e){return EE(),wn((yft(),SDt),e)}function Ton(e){return qi(),wn((Gft(),TDt),e)}function Aon(e){return xc(),wn((qft(),ADt),e)}function _on(e){return V3(),wn((hdt(),IDt),e)}function xon(e){return He(),wn((aft(),_Dt),e)}function kon(e){return su(),wn((zdt(),RDt),e)}function Non(e){return Uc(),wn((Kht(),ODt),e)}function Con(e){return VS(),wn((fdt(),DDt),e)}function Ion(e){return VP(),wn((Hdt(),LDt),e)}function Ron(e){return Yj(),wn((Gdt(),MDt),e)}function Oon(e){return jj(),wn((qdt(),FDt),e)}function jV(e,t){this.c=e,this.a=t,this.b=t-e}function Qc(e,t,r){this.c=e,this.a=t,this.b=r}function cot(e,t,r){this.a=e,this.c=t,this.b=r}function uot(e,t,r){this.a=e,this.c=t,this.b=r}function lot(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 Efe(e,t,r){this.a=e,this.b=t,this.c=r}function FV(e,t,r){this.a=e,this.b=t,this.c=r}function dot(e,t,r){this.a=e,this.b=t,this.c=r}function Sfe(e,t,r){this.a=e,this.b=t,this.c=r}function fot(e,t,r){this.a=e,this.b=t,this.c=r}function hot(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 pot(e,t,r){Uu(),jhe.call(this,e,t,r)}function $V(e,t,r){Uu(),whe.call(this,e,t,r)}function Tfe(e,t,r){Uu(),whe.call(this,e,t,r)}function Afe(e,t,r){Uu(),whe.call(this,e,t,r)}function got(e,t,r){Uu(),$V.call(this,e,t,r)}function _fe(e,t,r){Uu(),$V.call(this,e,t,r)}function bot(e,t,r){Uu(),_fe.call(this,e,t,r)}function mot(e,t,r){Uu(),Tfe.call(this,e,t,r)}function wot(e,t,r){Uu(),Afe.call(this,e,t,r)}function Don(e){return sT(),wn((jht(),XDt),e)}function BO(e,t){return kn(e),kn(t),new Aet(e,t)}function _S(e,t){return kn(e),kn(t),new xot(e,t)}function Lon(e,t){return kn(e),kn(t),new kot(e,t)}function Mon(e,t){return kn(e),kn(t),new Det(e,t)}function xfe(e,t){ven.call(this,e,Vj(new Ls(t)))}function yot(e,t){this.c=e,this.b=t,this.a=!1}function kfe(e){this.d=e,QKe(this),this.b=xsn(e.d)}function Nfe(e,t,r){this.c=e,n8.call(this,t,r)}function Pon(e,t,r){wst.call(this,t,r),this.a=e}function vot(){this.a=";,;",this.b="",this.c=""}function Eot(e,t,r){this.b=e,Int.call(this,t,r)}function jon(e,t){t&&(e.b=t,e.a=(u1(t),t.a))}function BV(e){return cn(e.b!=0),Vu(e,e.a.a)}function Fon(e){return cn(e.b!=0),Vu(e,e.c.b)}function $on(e){return!e.c&&(e.c=new NA),e.c}function Sot(e){var t;return t=new tq,_K(t,e),t}function UO(e){var t;return t=new Ar,_K(t,e),t}function QA(e){var t;return t=new je,fK(t,e),t}function Bon(e){var t;return t=new pi,fK(t,e),t}function l(e,t){return T3(e==null||TY(e,t)),e}function X8(e,t){return t&&TP(e,t.d)?t:null}function HO(e,t){if(!e)throw Y(new jt(t))}function Cfe(e,t){if(!e)throw Y(new _Qe(t))}function xS(e,t){if(!e)throw Y(new ts(t))}function Uon(e,t){return Y9(),na(e.d.p,t.d.p)}function Hon(e,t){return dp(),vr(e.e.b,t.e.b)}function zon(e,t){return dp(),vr(e.e.a,t.e.a)}function Gon(e,t){return na(Pot(e.d),Pot(t.d))}function qon(e,t){return t==(He(),Wt)?e.c:e.d}function Von(e){return new Me(e.c+e.b,e.d+e.a)}function Ife(e){var t,r;r=e.d,t=e.a,e.d=t,e.a=r}function Rfe(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 Ofe(e,t,r,o,a){e.d=t,e.c=r,e.a=o,e.b=a}function Tot(e,t,r,o,a){e.c=t,e.d=r,e.b=o,e.a=a}function Z8(e,t){return qfn(e),e.a*=t,e.b*=t,e}function Dfe(e,t){return t<0?e.g=-1:e.g=t,e}function zO(e,t,r){tde.call(this,e,t),this.c=r}function Lfe(e,t,r){qA.call(this,e,t),this.b=r}function Mfe(e){gfe(),v9.call(this),this._h(e)}function Q8(e,t,r){tde.call(this,e,t),this.c=r}function Aot(e,t,r){this.a=e,eE.call(this,t,r)}function _ot(e,t,r){this.a=e,eE.call(this,t,r)}function UV(e){this.b=e,this.a=Cb(this.b.a).Md()}function xot(e,t){this.b=e,this.a=t,FG.call(this)}function kot(e,t){this.a=e,this.b=t,FG.call(this)}function Not(e){Mde.call(this,e.length,0),this.a=e}function Pfe(e,t,r){Eme(r,0,e,t,r.length,!1)}function e_(e,t,r){var o;o=new ty(r),Kl(e,t,o)}function Won(e,t){var r;return r=e.c,uge(e,t),r}function Kon(e,t){return(bgt(e)<<4|bgt(t))&Ti}function Cot(e){return e!=null&&!cY(e,O4,D4)}function GO(e){return e==0||isNaN(e)?e:e<0?-1:1}function jfe(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 eP(e){var t;return t=e.slice(),sK(t,e)}function tP(e){var t;return t=e.n,e.a.b+t.d+t.a}function Iot(e){var t;return t=e.n,e.e.b+t.d+t.a}function Ffe(e){var t;return t=e.n,e.e.a+t.b+t.c}function Rot(e){return hr(),new dh(0,e)}function Oot(){Oot=K,zre=(At(),new WG(xQ))}function nP(){nP=K,new K1e((cq(),FQ),(aq(),jQ))}function Dot(){h_(),san.call(this,(r1(),Ll))}function Lot(e,t){wst.call(this,t,1040),this.a=e}function a0(e,t){return mC(e,new qA(t.a,t.b))}function Yon(e){return!fo(e)&&e.c.i.c==e.d.i.c}function Jon(e,t){return e.c=t)throw Y(new _Ze)}function Zs(e){e.f=new qnt(e),e.i=new Vnt(e),++e.g}function bP(e){this.b=new Da(11),this.a=(h0(),e)}function eW(e){this.b=null,this.a=(h0(),e||g2e)}function the(e,t){this.e=e,this.d=t&64?t|$f:t}function wst(e,t){this.c=0,this.d=e,this.b=t|64|$f}function yst(e){this.a=R1t(e.a),this.b=new Tc(e.b)}function ig(e,t,r,o){var a;a=e.i,a.i=t,a.a=r,a.b=o}function nhe(e){var t;for(t=e;t.f;)t=t.f;return t}function Osn(e){return e.e?Ape(e.e):null}function Dsn(e,t){return zS(),vr(t.a.o.a,e.a.o.a)}function vst(e,t,r){return Z_(),IK(e,t)&&IK(e,r)}function k3(e){return xc(),!e.Gc(Rp)&&!e.Gc(Y1)}function Est(e,t,r){return e2t(e,l(t,12),l(r,12))}function Sst(e){return bc(),l(e,12).g.c.length!=0}function Tst(e){return bc(),l(e,12).e.c.length!=0}function mP(e){return new Me(e.c+e.b/2,e.d+e.a/2)}function tW(e,t){return t.Sh()?y1(e.b,l(t,52)):t}function Lsn(e,t,r){t.of(r,ce(le(Ut(e.b,r)))*e.a)}function Msn(e,t){t.Tg("General 'Rotator",1),pNn(e)}function Pi(e,t,r,o,a){rK.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){Ei.call(this,e,t,r),this.b=o}function wP(e,t,r,o){zO.call(this,e,t,r),this.b=o}function Ast(e){vnt.call(this,e,!1),this.a=!1}function _st(){sV.call(this,"LOOKAHEAD_LAYOUT",1)}function xst(){sV.call(this,"LAYOUT_NEXT_LEVEL",3)}function kst(){mn.call(this,"ABSOLUTE_XPLACING",0)}function Nst(e){this.b=e,SS.call(this,e),Rrt(this)}function Cst(e){this.b=e,IO.call(this,e),Ort(this)}function Ist(e,t){this.b=e,NKe.call(this,e.b),this.a=t}function Qw(e,t,r){this.a=e,TS.call(this,t,r,5,6)}function rhe(e,t,r,o){this.b=e,Ei.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 yP(e,t){return hr(),new mhe(e,t,0)}function nW(e,t){return hr(),new mhe(6,e,t)}function Psn(e,t){return wt(e.substr(0,t.length),t)}function ma(e,t){return zi(t)?_W(e,t):!!ns(e.f,t)}function jsn(e){return Ua(~e.l&Hc,~e.m&Hc,~e.h&Ep)}function rW(e){return typeof e===pD||typeof e===XJ}function hh(e){return new Ft(new xde(e.a.length,e.a))}function iW(e){return new vt(null,qsn(e,e.length))}function Rst(e){if(!e)throw Y(new vs);return e.d}function CS(e){var t;return t=Q3(e),cn(t!=null),t}function Fsn(e){var t;return t=Ogn(e),cn(t!=null),t}function n_(e,t){var r;return r=e.a.gc(),Spe(t,r),r-t}function gi(e,t){var r;return r=e.a.yc(t,e),r==null}function qO(e,t){return e.a.yc(t,(Lt(),L1))==null}function $sn(e,t){return e>0?b.Math.log(e/t):-100}function ihe(e,t){return t?wo(e,t):!1}function IS(e,t,r){return Jl(e.a,t),Ufe(e.b,t.g,r)}function Bsn(e,t,r){t_(r,e.a.c.length),nu(e.a,r,t)}function be(e,t,r,o){$pt(t,r,e.length),Usn(e,t,r,o)}function Usn(e,t,r,o){var a;for(a=t;a0?1:0}function Vsn(e,t){return vr(e.c.c+e.c.b,t.c.c+t.c.b)}function vP(e,t){Wr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Lst(e,t){return e.c?Lst(e.c,t):Fe(e.b,t),e}function u0(e,t){ei(Oa(e.Mc(),new WBe),new hJe(t))}function r_(e,t,r,o,a){KY(e,l(yr(t.k,r),16),r,o,a)}function Mst(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 Wst(e){return se(e,104)&&(l(e,20).Bb&Ws)!=0}function l0(e){return!e.d&&(e.d=new Ei(qo,e,1)),e.d}function oan(e){return!e.a&&(e.a=new Ei(J1,e,4)),e.a}function Kst(e){this.c=e,this.a=new Ar,this.b=new Ar}function san(e){this.a=(Mt(Bn),Bn),this.b=e,new Uue}function Yst(e,t,r){this.a=e,tpe.call(this,8,t,null,r)}function bhe(e,t,r){this.a=e,xue.call(this,t),this.b=r}function mhe(e,t,r){Km.call(this,e),this.a=t,this.b=r}function whe(e,t,r){N9.call(this,t),this.a=e,this.b=r}function aan(e,t,r){l(t.b,68),La(t.a,new vfe(e,r,t))}function pW(e,t){for(Mt(t);e.c=e?new ble:dhn(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 Qst(e){var t,r;return t=e.c.i.c,r=e.d.i.c,t==r}function dan(e,t){return na(t.j.c.length,e.j.c.length)}function eat(e){_he(e.a),e.b=we(Ri,It,1,e.b.length,5,1)}function D3(e){e.c?e.c.Ye():(e.d=!0,nSn(e))}function u1(e){e.c?u1(e.c):(v1(e),e.d=!0)}function Mc(e){Gw(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function tat(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function nat(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ci(){sQe.call(this),jw(this.j.c,0),this.a=-1}function rat(){mn.call(this,"DELAUNAY_TRIANGULATION",0)}function yhe(e){for(;e.a.b!=0;)Zkn(e,l(tct(e.a),9))}function fan(e,t){Tn((!e.a&&(e.a=new MO(e,e)),e.a),t)}function vhe(e,t){e.c<0||e.b.b=0?e.hi(r):fme(e,t)}function iat(e,t){this.b=e,sW.call(this,e,t),Rrt(this)}function oat(e,t){this.b=e,hfe.call(this,e,t),Ort(this)}function sat(){zbe.call(this,_l,($A(),R3e)),lxn(this)}function Ehe(e){return!e.b&&(e.b=new C9(new sq)),e.b}function pan(e){if(e.p!=3)throw Y(new lc);return e.e}function gan(e){if(e.p!=4)throw Y(new lc);return e.e}function ban(e){if(e.p!=4)throw Y(new lc);return e.j}function man(e){if(e.p!=3)throw Y(new lc);return e.j}function wan(e){if(e.p!=6)throw Y(new lc);return e.f}function yan(e){if(e.p!=6)throw Y(new lc);return e.k}function f0(e){return e.c==-2&&VZt(e,qwn(e.g,e.b)),e.c}function o_(e,t){var r;return r=fW("",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 van(e,t){JV(l(t.b,68),e),La(t.a,new wue(e))}function aat(e,t){return nP(),new K1e(new Lrt(e),new Drt(t))}function Ean(e,t,r){return qS(),r.Kg(e,l(t.jd(),149))}function San(e){return wu(e,tX),dj(_o(_o(5,e),e/10|0))}function She(e){return At(),e?e.Me():(h0(),h0(),b2e)}function Jn(e,t,r){return zi(t)?rs(e,t,r):ec(e.f,t,r)}function Tan(e){return String.fromCharCode.apply(null,e)}function cat(e){return!e.d&&(e.d=new CA(e.c.Bc())),e.d}function s_(e){return!e.a&&(e.a=new CQe(e.c.vc())),e.a}function uat(e){return!e.b&&(e.b=new PA(e.c.ec())),e.b}function lat(e,t){Gtn.call(this,fhn(kn(e),kn(t))),this.a=t}function The(e,t,r,o){t0.call(this,e,t),this.d=r,this.a=o}function AP(e,t,r,o){t0.call(this,e,r),this.a=t,this.f=o}function L3(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function dat(){zbe.call(this,lm,(KQe(),_Lt)),tkn(this)}function fat(){Es.call(this,"There is no more element.")}function uo(e,t){return Jt(t,e.length),e.charCodeAt(t)}function hat(e,t){e.u.Gc((xc(),Rp))&&Hvn(e,t),Rdn(e,t)}function ia(e,t){return me(e)===me(t)||e!=null&&gr(e,t)}function Ko(e,t){return VV(e.a,t)?e.b[l(t,23).g]:null}function pat(e,t){var r;return r=new ra(e),Rt(t.c,r),r}function M3(e){return e.j.c.length=0,_he(e.c),orn(e.a),e}function Aan(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 Ahe(e){return!e.c&&(e.c=new ke(Gc,e,9,9)),e.c}function gW(e){return!e.n&&(e.n=new ke(Rs,e,1,7)),e.n}function rr(e,t,r,o){return Oht(e,t,r,!1),zj(e,o),e}function gat(e,t){iY(e,ce(fp(t,"x")),ce(fp(t,"y")))}function bat(e,t){iY(e,ce(fp(t,"x")),ce(fp(t,"y")))}function _an(){return Z9(),Z(X(w6t,1),Ce,557,0,[nre])}function xan(){return Q9(),Z(X(v6t,1),Ce,558,0,[rre])}function kan(){return e8(),Z(X(S6t,1),Ce,559,0,[ire])}function Nan(){return X9(),Z(X(UOt,1),Ce,550,0,[Une])}function Can(){return J9(),Z(X(lke,1),Ce,480,0,[Bne])}function Ian(){return JN(),Z(X(Rke,1),Ce,531,0,[ML])}function bW(){bW=K,J_t=new Tle(Z(X(dm,1),n7,45,0,[]))}function Ran(e,t){return new Bat(l(kn(e),50),l(kn(t),50))}function Oan(e){return e!=null&&VN(SU,e.toLowerCase())}function c_(e){return e.e==jx&&ZZt(e,X1n(e.g,e.b)),e.e}function WO(e){return e.f==jx&&eQt(e,Wmn(e.g,e.b)),e.f}function uE(e){var t;return t=e.b,!t&&(e.b=t=new TKe(e)),t}function _he(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function Dan(e,t,r){var o;o=l(e.d.Kb(r),163),o&&o.Nb(t)}function Lan(e,t){return vr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function Man(e,t){return vr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function Pan(e,t){return yle(),vr((Mt(e),e),(Mt(t),t))}function Oa(e,t){return v1(e),new vt(e,new Tpe(t,e.a))}function dr(e,t){return v1(e),new vt(e,new Ppe(t,e.a))}function ny(e,t){return v1(e),new qde(e,new klt(t,e.a))}function _P(e,t){return v1(e),new Vde(e,new Nlt(t,e.a))}function xhe(e,t){this.b=e,this.c=t,this.a=new fS(this.b)}function mW(e,t,r,o){this.a=e,this.e=t,this.d=r,this.c=o}function wW(e,t,r){this.a=uwe,this.d=e,this.b=t,this.c=r}function xP(e,t,r,o){this.a=e,this.c=t,this.b=r,this.d=o}function khe(e,t,r,o){this.c=e,this.b=t,this.a=r,this.d=o}function mat(e,t,r,o){this.c=e,this.b=t,this.d=r,this.a=o}function wat(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 yat(e,t,r,o){Tpt.call(this,e,r,o,!1),this.f=t}function vat(e,t){this.d=(Mt(e),e),this.a=16449,this.c=t}function Eat(e){this.a=new je,this.e=we(Rn,Pe,54,e,0,2)}function jan(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 yW(e){var t,r;return r=(t=new Ym,t),Vbe(r,e),r}function vW(e,t,r){var o,a;return o=J0e(e),a=t.qi(r,o),a}function EW(e){var t;return t=phn(e),t||null}function Sat(e){return!e.b&&(e.b=new ke(Ir,e,12,3)),e.b}function u_(e){if($c(e.d),e.d.d!=e.c)throw Y(new $u)}function Tat(e,t,r,o){this.a=e,this.c=t,this.d=r,this.b=o}function Aat(e,t,r,o){this.a=e,this.b=t,this.d=r,this.c=o}function _at(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function xat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function Lb(e,t,r,o){this.e=e,this.a=t,this.c=r,this.d=o}function kat(e,t,r,o){Uu(),Clt.call(this,t,r,o),this.a=e}function Nat(e,t,r,o){Uu(),Clt.call(this,t,r,o),this.a=e}function Cat(e,t){this.a=e,Gnn.call(this,e,l(e.d,16).dd(t))}function SW(e){this.f=e,this.c=this.f.e,e.f>0&&xbt(this)}function kP(e){return e.n&&(e.e!==p2t&&e.he(),e.j=null),e}function Iat(e){return T3(e==null||rW(e)&&e.Rm!==fe),e}function Fan(e,t,r){return Fe(e.a,(RY(t,r),new t0(t,r))),e}function $an(e,t,r){ixn(e.a,r),lpn(r),xEn(e.b,r),_xn(t,r)}function Ban(e,t){return vr(hc(e)*eu(e),hc(t)*eu(t))}function Uan(e,t){return vr(hc(e)*eu(e),hc(t)*eu(t))}function Han(e){hu();var t;t=l(e.g,9),t.n.a=e.d.c+t.d.b}function tu(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function Nhe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function Che(e){return cn(e.b0?Wl(e):new je}function Gan(e,t){return l(F(e,(Ie(),RT)),16).Ec(t),t}function qan(e,t){return yt(e,l(F(t,(Ue(),Xy)),15),t)}function Van(e){return R0(e)&&Ye(Ke(ve(e,(Ue(),bm))))}function DS(e){var t;return t=e.f,t||(e.f=new HA(e,e.c))}function Wan(e,t,r){return YN(),i1n(l(Ut(e.e,t),520),r)}function Kan(e,t,r){e.i=0,e.e=0,t!=r&&Apt(e,t,r)}function Yan(e,t,r){e.i=0,e.e=0,t!=r&&_pt(e,t,r)}function Rat(e,t,r,o){this.b=e,this.c=o,R8.call(this,t,r)}function Oat(e,t){this.g=e,this.d=Z(X(Nh,1),vg,9,0,[t])}function Dat(e,t){e.d&&!e.d.a&&(gZe(e.d,t),Dat(e.d,t))}function Lat(e,t){e.e&&!e.e.a&&(gZe(e.e,t),Lat(e.e,t))}function Mat(e,t){return vE(e.j,t.s,t.c)+vE(t.e,e.s,e.c)}function Jan(e){return l(e.jd(),149).Og()+":"+ms(e.kd())}function Xan(e,t){return-vr(hc(e)*eu(e),hc(t)*eu(t))}function Zan(e,t){return ru(e),ru(t),EQe(l(e,23),l(t,23))}function Mb(e,t,r){var o,a;o=RV(r),a=new S9(o),Kl(e,t,a)}function Qan(e){$9(),b.setTimeout(function(){throw e},0)}function Pat(e){this.b=new je,li(this.b,this.b),this.a=e}function jat(e){this.b=new LUe,this.a=e,b.Math.random()}function Ihe(e,t){new Ar,this.a=new Lc,this.b=e,this.c=t}function Fat(e,t,r,o){tde.call(this,t,r),this.b=e,this.a=o}function TW(e,t,r,o,a,u){a6.call(this,e,t,r,o,a,u?-2:-1)}function $at(){eJ(this,new Kce),this.wb=(c1(),Bt),$A()}function Rhe(){Rhe=K,kxt=new wb,Cxt=new Vfe,Nxt=new Wp}function At(){At=K,Ro=new Re,xh=new xe,p$=new Se}function h0(){h0=K,g2e=new ut,YQ=new ut,b2e=new Be}function Sr(e){return!e.q&&(e.q=new ke(Dl,e,11,10)),e.q}function Ne(e){return!e.s&&(e.s=new ke(ac,e,21,17)),e.s}function NP(e){return!e.a&&(e.a=new ke(En,e,10,11)),e.a}function CP(e,t){if(e==null)throw Y(new cS(t));return e}function Bat(e,t){_Qt.call(this,new eW(e)),this.a=e,this.b=t}function Ohe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function Dhe(e){return e&&e.hashCode?e.hashCode():s0(e)}function ecn(e){return new krt(e,e.e.Pd().gc()*e.c.Pd().gc())}function tcn(e){return new Nrt(e,e.e.Pd().gc()*e.c.Pd().gc())}function AW(e){return se(e,18)?new Jw(l(e,18)):Bon(e.Jc())}function IP(e){return At(),se(e,59)?new mq(e):new B8(e)}function ncn(e){return kn(e),H1t(new Ft(Gt(e.a.Jc(),new D)))}function _W(e,t){return t==null?!!ns(e.f,null):wsn(e.i,t)}function rcn(e,t){var r;return r=yde(e.a,t),r&&(t.d=null),r}function Uat(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 xW(e,t,r,o){ii(e.c[t.g],t.g,r),ii(e.b[t.g],t.g,o)}function icn(e,t,r){return ce(le(r.a))<=e&&ce(le(r.b))>=t}function Hat(){this.d=new Ar,this.b=new hn,this.c=new je}function zat(){this.b=new pi,this.d=new Ar,this.e=new L9}function Lhe(){this.c=new ro,this.d=new ro,this.e=new ro}function p0(){this.a=new Lc,this.b=(wu(3,Oy),new Da(3))}function Gat(e){this.c=e,this.b=new Qp(l(kn(new Lw),50))}function qat(e){this.c=e,this.b=new Qp(l(kn(new hG),50))}function Vat(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=Syt(t),this.c=t}function RP(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function Wat(e,t,r,o,a,u){this.a=e,wK.call(this,t,r,o,a,u)}function Kat(e,t,r,o,a,u){this.a=e,wK.call(this,t,r,o,a,u)}function l1(e,t,r,o,a,u,f){return new GW(e.e,t,r,o,a,u,f)}function ocn(e,t,r){return r>=0&&wt(e.substr(r,t.length),t)}function Yat(e,t){return se(t,149)&&wt(e.b,l(t,149).Og())}function scn(e,t){return e.a?t.Dh().Jc():l(t.Dh(),72).Gi()}function Jat(e,t){var r;return r=e.b.Oc(t),zut(r,e.b.gc()),r}function YO(e,t){if(e==null)throw Y(new cS(t));return e}function ds(e){return e.u||(Pc(e),e.u=new Sit(e,e)),e.u}function l_(){l_=K;var e,t;t=!F1n(),e=new Q,GQ=t?new ne:e}function Ja(e){var t;return t=l(qt(e,16),29),t||e.fi()}function OP(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 Xat(e,t){q8.call(this),Wpe(this),this.a=e,this.c=t}function Zat(){sV.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function acn(){return HP(),Z(X(gTe,1),Ce,425,0,[nte,pTe])}function ccn(){return qP(),Z(X(CTe,1),Ce,428,0,[fte,dte])}function ucn(){return g6(),Z(X(b_e,1),Ce,426,0,[Gte,qte])}function lcn(){return nj(),Z(X(zSe,1),Ce,427,0,[HSe,Mee])}function dcn(){return m6(),Z(X(ZSe,1),Ce,424,0,[Y$,XSe])}function fcn(){return l6(),Z(X(tTe,1),Ce,479,0,[eTe,X$])}function hcn(){return zd(),Z(X(L4t,1),Ce,512,0,[Em,cf])}function pcn(){return If(),Z(X(O4t,1),Ce,513,0,[aw,kg])}function gcn(){return vd(),Z(X(Y4t,1),Ce,519,0,[ov,H1])}function bcn(){return H3(),Z(X(_4t,1),Ce,522,0,[QI,ZI])}function mcn(){return g0(),Z(X(nRt,1),Ce,457,0,[z1,u2])}function wcn(){return $P(),Z(X(dxe,1),Ce,430,0,[hne,lxe])}function ycn(){return xj(),Z(X(fxe,1),Ce,490,0,[UB,f2])}function vcn(){return ij(),Z(X(pxe,1),Ce,431,0,[hxe,yne])}function Ecn(){return o6(),Z(X(dke,1),Ce,433,0,[Hne,ZB])}function Scn(){return YP(),Z(X(rke,1),Ce,481,0,[Pne,nke])}function Tcn(){return x6(),Z(X(Dke,1),Ce,432,0,[eU,Oke])}function Acn(){return w6(),Z(X(A6t,1),Ce,498,0,[sre,ore])}function _cn(){return GP(),Z(X(Mke,1),Ce,389,0,[Kne,Lke])}function xcn(){return lj(),Z(X(C2e,1),Ce,429,0,[aee,y$])}function kcn(){return E_(),Z(X(dNt,1),Ce,506,0,[iL,vee])}function DP(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():BV(e.b)}function Ncn(e){if(e.p!=5)throw Y(new lc);return On(e.f)}function Ccn(e){if(e.p!=5)throw Y(new lc);return On(e.k)}function Mhe(e){return me(e.a)===me((kK(),Bre))&&Yxn(e),e.a}function Icn(e){e&&OP(e,e.ge())}function Qat(e,t){PZt(this,new Me(e.a,e.b)),jZt(this,UO(t))}function g0(){g0=K,z1=new zle(hT,0),u2=new zle(pT,1)}function If(){If=K,aw=new $le(pT,0),kg=new $le(hT,1)}function Rcn(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=aP(e.c,e.b,e.a))}function Ocn(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=aP(e.c,e.b,e.a))}function ect(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function tct(e){return e.b==0?null:(cn(e.b!=0),Vu(e,e.a.a))}function wa(e,t){return t==null?Ss(ns(e.f,null)):e3(e.i,t)}function nct(e,t,r,o,a){return new nJ(e,(b_(),QQ),t,r,o,a)}function LP(e,t){return qut(t),Qfn(e,we(Rn,Qn,30,t,15,1),t)}function MP(e,t){return CP(e,"set1"),CP(t,"set2"),new $et(e,t)}function Dcn(e,t){var r=zQ[e.charCodeAt(0)];return r??e}function rct(e,t){var r,o;return r=t,o=new Yt,cEt(e,r,o),o.d}function kW(e,t,r,o){var a;a=new Nit,t.a[r.g]=a,IS(e.b,o,a)}function Lcn(e,t){var r;return r=Yfn(e.f,t),mr(z8(r),e.f.d)}function P3(e){var t;ahn(e.a),nrt(e.a),t=new _9(e.a),N1e(t)}function Mcn(e,t){dyt(e,!0),La(e.e.Pf(),new mfe(e,!0,t))}function ict(e){this.a=l(kn(e),279),this.b=(At(),new Rde(e))}function oct(e,t,r){this.i=new je,this.b=e,this.g=t,this.a=r}function PP(e,t,r){this.c=new je,this.e=e,this.f=t,this.b=r}function Phe(e,t,r){this.a=new je,this.e=e,this.f=t,this.c=r}function NW(e,t,r){hr(),Km.call(this,e),this.b=t,this.a=r}function jhe(e,t,r){Uu(),N9.call(this,t),this.a=e,this.b=r}function sct(e){q8.call(this),Wpe(this),this.a=e,this.c=!0}function b0(){xQt.call(this,new dS(py(12))),Tde(!0),this.a=2}function zd(){zd=K,Em=new Ble(DX,0),cf=new Ble("UP",1)}function ry(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 act(e){return e.Db>>16!=6?null:l(e.Cb,74)}function Pcn(e){if(e.ye())return null;var t=e.n;return c$[t]}function jcn(e){function t(){}return t.prototype=e||{},new t}function cct(e){var t;return t=new H9(py(e.length)),Bge(t,e),t}function XO(e,t){var r;r=e.q.getHours(),e.q.setDate(t),OC(e,r)}function Fhe(e,t,r){var o;o=e.Fh(t),o>=0?e.$h(o,r):Ume(e,t,r)}function lE(e,t,r){jP(),e&&Jn(jre,e,t),e&&Jn(a5,e,r)}function Fcn(e,t){return dp(),l(F(t,(js(),Jf)),15).a==e}function $cn(e,t){return J8(),Lt(),l(t.b,15).a=0?e.Th(r):cJ(e,t)}function CW(e,t,r){var o;o=vpt(e,t,r),e.b=new Cj(o.c.length)}function fct(e){this.a=e,this.b=we(S4t,Pe,2022,e.e.length,0,2)}function hct(){this.a=new ch,this.e=new pi,this.g=0,this.i=0}function pct(e,t){M8(this),this.f=t,this.g=e,kP(this),this.he()}function IW(e,t){return b.Math.abs(e)0}function $he(e){var t;return t=e.d,t=e._i(e.f),Tn(e,t),t.Ob()}function gct(e,t){var r;return r=new qfe(t),tmt(r,e),new Tc(r)}function zcn(e){if(e.p!=0)throw Y(new lc);return f3(e.f,0)}function Gcn(e){if(e.p!=0)throw Y(new lc);return f3(e.k,0)}function bct(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 Bhe(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 iy(e){return e.Db>>16!=17?null:l(e.Cb,29)}function mct(e){return e.Db>>16!=3?null:l(e.Cb,159)}function Uhe(e){var t;return v1(e),t=new pi,dr(e,new hYe(t))}function wct(e,t){var r=e.a=e.a||[];return r[t]||(r[t]=e.te(t))}function qcn(e,t){var r;r=e.q.getHours(),e.q.setMonth(t),OC(e,r)}function mo(e,t){e.c&&Xa(e.c.g,e),e.c=t,e.c&&Fe(e.c.g,e)}function Yi(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 rs(e,t,r){return t==null?ec(e.f,null,r):_0(e.i,t,r)}function j3(e,t,r,o,a,u){return new up(e.e,t,e.Jj(),r,o,a,u)}function Vcn(e){return WK(),Lt(),l(e.a,84).d.e!=0}function yct(){yct=K,K_t=yn((P9(),Z(X(W_t,1),Ce,541,0,[BQ])))}function vct(){vct=K,r4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function Ect(){Ect=K,i4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function Sct(){Sct=K,o4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function Hhe(){Hhe=K,s4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function Tct(){Tct=K,c4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function zhe(){zhe=K,u4t=Ra(new ci,(Vi(),zo),(Xi(),xT))}function Act(){Act=K,k4t=$n(new ci,(Vi(),zo),(Xi(),_I))}function gu(){gu=K,I4t=$n(new ci,(Vi(),zo),(Xi(),_I))}function _ct(){_ct=K,R4t=$n(new ci,(Vi(),zo),(Xi(),_I))}function RW(){RW=K,P4t=$n(new ci,(Vi(),zo),(Xi(),_I))}function xct(){xct=K,RRt=Ra(new ci,(JS(),t4),(IC(),D_e))}function jP(){jP=K,jre=new hn,a5=new hn,Xen(hxt,new iqe)}function kct(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tc(r))}function Nct(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tc(r))}function Cct(e,t){this.a=e,this.c=Ao(this.a),this.b=new RP(t)}function Pb(e,t,r,o){this.c=e,this.d=o,DW(this,t),LW(this,r)}function LS(e){this.c=new Ar,this.b=e.b,this.d=e.c,this.a=e.a}function OW(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function DW(e,t){e.a&&Xa(e.a.k,e),e.a=t,e.a&&Fe(e.a.k,e)}function LW(e,t){e.b&&Xa(e.b.f,e),e.b=t,e.b&&Fe(e.b.f,e)}function Ict(e,t){aan(e,e.b,e.c),l(e.b.b,68),t&&l(t.b,68).b}function Wcn(e,t){w1e(e,t),se(e.Cb,89)&&Ay(Pc(l(e.Cb,89)),2)}function MW(e,t){se(e.Cb,89)&&Ay(Pc(l(e.Cb,89)),4),Ma(e,t)}function FP(e,t){se(e.Cb,187)&&(l(e.Cb,187).tb=null),Ma(e,t)}function Rct(e,t){var r;return r=l(by(DS(e.a),t),18),r?r.gc():0}function Kcn(e,t){var r,o;r=t.c,o=r!=null,o&&RS(e,new ty(t.c))}function Oct(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function Dct(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function Lct(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function ya(e,t){return Mo(),dK(t)?new rP(t,e):new xO(t,e)}function Ycn(e,t){return vr(l(e.c,65).c.e.b,l(t.c,65).c.e.b)}function Jcn(e,t){return vr(l(e.c,65).c.e.a,l(t.c,65).c.e.a)}function Mct(e,t,r){return new nJ(e,(b_(),eee),t,r,null,!1)}function Pct(e,t,r){return new nJ(e,(b_(),ZQ),null,!1,t,r)}function ZO(e){return jf(),Ea(e,0)>=0?E1(e):I3(E1(cg(e)))}function Xcn(){return Yu(),Z(X(rc,1),Ce,132,0,[S2e,nc,T2e])}function Zcn(){return Sd(),Z(X($y,1),Ce,240,0,[Bs,$a,Us])}function Qcn(){return _c(),Z(X(Dxt,1),Ce,464,0,[Wf,M1,nd])}function eun(){return Za(),Z(X(Mxt,1),Ce,465,0,[Nd,P1,rd])}function tun(e,t){Srt(e,On(Gi(c0(t,24),s7)),On(Gi(t,s7)))}function oy(e,t){if(e<0||e>t)throw Y(new Ia(wwe+e+ywe+t))}function at(e,t){if(e<0||e>=t)throw Y(new Ia(wwe+e+ywe+t))}function Jt(e,t){if(e<0||e>=t)throw Y(new Que(wwe+e+ywe+t))}function St(e,t){this.b=(Mt(e),e),this.a=t&Dy?t:t|64|$f}function Rf(e,t,r){hgt(t,r,e.gc()),this.c=e,this.a=t,this.b=r-t}function jct(e,t,r){var o;hgt(t,r,e.c.length),o=r-t,dle(e.c,t,o)}function nun(e,t,r){var o;o=new To(r.d),mr(o,e),iY(t,o.a,o.b)}function Ghe(e){var t;return v1(e),t=(h0(),h0(),YQ),fj(e,t)}function dE(e){return YN(),se(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 run(){return G3(),Z(X(G2e,1),Ce,385,0,[dee,lee,fee])}function iun(){return b1(),Z(X(tte,1),Ce,330,0,[lL,hTe,Vy])}function oun(){return lp(),Z(X(XNt,1),Ce,316,0,[dL,QE,kT])}function sun(){return __(),Z(X(ete,1),Ce,303,0,[Zee,Qee,uL])}function aun(){return wj(),Z(X(KSe,1),Ce,351,0,[WSe,K$,Pee])}function cun(){return Vb(),Z(X(HNt,1),Ce,452,0,[Gee,Jx,XE])}function uun(){return Fo(),Z(X(JIt,1),Ce,455,0,[YI,Cc,Ba])}function lun(){return Dj(),Z(X(y_e,1),Ce,382,0,[m_e,Vte,w_e])}function dun(){return nC(),Z(X(v_e,1),Ce,349,0,[Kte,Wte,AL])}function fun(){return R_(),Z(X(S_e,1),Ce,350,0,[Yte,E_e,JI])}function hun(){return rC(),Z(X(s_e,1),Ce,353,0,[jte,o_e,xB])}function pun(){return mj(),Z(X(__e,1),Ce,352,0,[A_e,Jte,T_e])}function gun(){return Lj(),Z(X(x_e,1),Ce,383,0,[Xte,ck,iv])}function bun(){return eC(),Z(X(z_e,1),Ce,386,0,[H_e,ene,kL])}function mun(){return R6(),Z(X(mxe,1),Ce,387,0,[HB,gxe,bxe])}function wun(){return Kj(),Z(X($xe,1),Ce,388,0,[Fxe,One,jxe])}function yun(){return T0(),Z(X(xee,1),Ce,369,0,[Q0,j1,Z0])}function vun(){return Hj(),Z(X(uke,1),Ce,435,0,[ake,cke,Fne])}function Eun(){return oj(),Z(X(ske,1),Ce,434,0,[jne,oke,ike])}function Sun(){return M6(),Z(X($ne,1),Ce,440,0,[YB,JB,XB])}function Tun(){return Qj(),Z(X(Pxe,1),Ce,441,0,[s4,qB,_ne])}function Aun(){return Rj(),Z(X(Mxe,1),Ce,304,0,[Ane,Lxe,Dxe])}function _un(){return V3(),Z(X(t3e,1),Ce,301,0,[YL,Nre,e3e])}function xun(){return Kd(),Z(X(jNe,1),Ce,281,0,[yk,pv,vk])}function kun(){return VS(),Z(X(i3e,1),Ce,283,0,[r3e,bv,bU])}function Nun(){return pp(),Z(X(YNe,1),Ce,348,0,[lU,Ig,T4])}function bu(e){hr(),Km.call(this,e),this.c=!1,this.a=!1}function Fct(e,t,r){Km.call(this,25),this.b=e,this.a=t,this.c=r}function qhe(e,t){AQt.call(this,new dS(py(e))),wu(t,c2t),this.a=t}function Cun(e,t){var r;return r=(Mt(e),e).g,jde(!!r),Mt(t),r(t)}function $ct(e,t){var r,o;return o=n_(e,t),r=e.a.dd(o),new jet(e,r)}function Iun(e,t,r){var o;return o=MC(e,t,!1),o.b<=t&&o.a<=r}function Bct(e,t,r){var o;o=new sHe,o.b=t,o.a=r,++t.b,Fe(e.d,o)}function $P(){$P=K,hne=new Gle("DFS",0),lxe=new Gle("BFS",1)}function Run(e){if(e.p!=2)throw Y(new lc);return On(e.f)&Ti}function Oun(e){if(e.p!=2)throw Y(new lc);return On(e.k)&Ti}function Dun(e){return e.Db>>16!=6?null:l(dJ(e),244)}function q(e){return cn(e.ao?1:0}function Gun(e,t){var r;r=l(Ut(e.g,t),60),La(t.d,new Att(e,r))}function Hct(e,t){var r;for(r=e+"";r.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function out(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function sut(e){return cn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function aut(e,t){var r;return r=1-t,e.a[r]=_j(e.a[r],r),_j(e,t)}function cut(e,t){var r,o;return o=Gi(e,Bo),r=fh(t,32),Of(r,o)}function Jun(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Gc(r)}function uut(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Kc(r)}function lut(e,t,r){var o;o=(kn(e),new Tc(e)),Lmn(new kct(o,t,r))}function e6(e,t,r){var o;o=(kn(e),new Tc(e)),Mmn(new Nct(o,t,r))}function dut(){dut=K,N_e=aat(Oe(1),Oe(4)),k_e=aat(Oe(1),Oe(2))}function fut(e){xK.call(this,e,(b_(),XQ),null,!1,null,!1)}function hut(e,t){Ob.call(this,1,2,Z(X(Rn,1),Qn,30,15,[e,t]))}function Ji(e,t){this.a=e,LN.call(this,e),oy(t,e.gc()),this.b=t}function put(e,t){var r;e.e=new que,r=xy(t),ki(r,e.c),Qwt(e,r,0)}function Xun(e,t,r){e.a=t,e.c=r,e.b.a.$b(),tu(e.d),jw(e.e.a.c,0)}function zr(e,t,r,o){var a;a=new Hce,a.a=t,a.b=r,a.c=o,Gn(e.a,a)}function Le(e,t,r,o){var a;a=new Hce,a.a=t,a.b=r,a.c=o,Gn(e.b,a)}function gut(e,t,r,o){return e.a+=""+yl(t==null?tc:ms(t),r,o),e}function Ms(e,t,r,o,a,u){return Oht(e,t,r,u),l1e(e,o),d1e(e,a),e}function Zhe(){var e,t,r;return t=(r=(e=new Ym,e),r),Fe(U3e,t),t}function t6(e,t){if(e<0||e>=t)throw Y(new Ia(Evn(e,t)));return e}function but(e,t,r){if(e<0||tr)throw Y(new Ia(Hyn(e,t,r)))}function Zun(e){if(!("stack"in e))try{throw e}catch{}return e}function Qun(e){return uE(e).dc()?!1:(Dtn(e,new j),!0)}function $b(e){var t;return gs(e)?(t=e,t==-0?0:t):mfn(e)}function mut(e,t){return se(t,45)?DY(e.a,l(t,45)):!1}function wut(e,t){return se(t,45)?DY(e.a,l(t,45)):!1}function yut(e,t){return se(t,45)?DY(e.a,l(t,45)):!1}function eln(e,t){return US(),l(F(t,(js(),l2)),15).a>=e.gc()}function tln(e){return gu(),!fo(e)&&!(!fo(e)&&e.c.i.c==e.d.i.c)}function Df(e){return l(Yd(e,we(zx,Tx,17,e.c.length,0,1)),324)}function BP(e){return new Da((wu(e,tX),dj(_o(_o(5,e),e/10|0))))}function nln(e,t){return new FV(t,iit(Ao(t.e),e,e),(Lt(),!0))}function rln(e){return zV(e.e.Pd().gc()*e.c.Pd().gc(),273,new _Ke(e))}function vut(e){return l(Yd(e,we(cNt,sSt,12,e.c.length,0,1)),2021)}function Eut(e){this.a=we(Ri,It,1,Fge(b.Math.max(8,e))<<1,5,1)}function Qhe(e){var t;return u1(e),t=new bt,Kv(e.a,new lYe(t)),t}function UP(e){var t;return u1(e),t=new Nt,Kv(e.a,new dYe(t)),t}function iln(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function oln(e,t,r){e.d&&Xa(e.d.e,e),e.d=t,e.d&&Nb(e.d.e,r,e)}function epe(e,t,r){this.d=new AJe(this),this.e=e,this.i=t,this.f=r}function HP(){HP=K,nte=new Ple(px,0),pTe=new Ple("TOP_LEFT",1)}function Sut(){Sut=K,BOt=yn((J9(),Z(X(lke,1),Ce,480,0,[Bne])))}function Tut(){Tut=K,HOt=yn((X9(),Z(X(UOt,1),Ce,550,0,[Une])))}function Aut(){Aut=K,s6t=yn((JN(),Z(X(Rke,1),Ce,531,0,[ML])))}function _ut(){_ut=K,y6t=yn((Z9(),Z(X(w6t,1),Ce,557,0,[nre])))}function xut(){xut=K,E6t=yn((Q9(),Z(X(v6t,1),Ce,558,0,[rre])))}function kut(){kut=K,T6t=yn((e8(),Z(X(S6t,1),Ce,559,0,[ire])))}function sln(e){Igt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),new Uze)}function $3(e,t){f3n(t,e),Rfe(e.d),Rfe(l(F(e,(Ue(),yB)),216))}function BW(e,t){h3n(t,e),Ife(e.d),Ife(l(F(e,(Ue(),yB)),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=uy(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=Qbe(r)),o}function aln(e,t,r){var o;return o=B_(r),zF(e.n,o,t),zF(e.o,t,r),t}function cln(e,t,r){var o;o=ibn();try{return trn(e,t,r)}finally{cdn(o)}}function Nut(e,t,r,o){return se(r,59)?new Vrt(e,t,r,o):new Qfe(e,t,r,o)}function tpe(e,t,r,o){this.d=e,this.n=t,this.g=r,this.o=o,this.p=-1}function Cut(e,t,r,o){this.e=null,this.c=e,this.d=t,this.a=r,this.b=o}function Iut(e){var t;t=e.Dh(),this.a=se(t,72)?l(t,72).Gi():t.Jc()}function uln(e){return new St(Wfn(l(e.a.kd(),18).gc(),e.a.jd()),16)}function sy(e){return se(e,18)?l(e,18).dc():!e.Jc().Ob()}function Rut(e){if(e.e.g!=e.b)throw Y(new $u);return!!e.c&&e.d>0}function Sn(e){return cn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function npe(e,t){Mt(t),ii(e.a,e.c,t),e.c=e.c+1&e.a.length-1,obt(e)}function d1(e,t){Mt(t),e.b=e.b-1&e.a.length-1,ii(e.a,e.b,t),obt(e)}function rpe(e,t){var r;return r=l(Wd(e.b,t),66),!r&&(r=new Ar),r}function lln(e,t){var r;r=t.a,mo(r,t.c.d),Yi(r,t.d.d),fy(r.a,e.n)}function Out(e,t){return l(Xc(Zw(l(yr(e.k,t),16).Mc(),KE)),114)}function Dut(e,t){return l(Xc(NS(l(yr(e.k,t),16).Mc(),KE)),114)}function dln(){return x_(),Z(X(Jkt,1),Ce,413,0,[X0,Uy,By,VE])}function fln(){return A0(),Z(X(skt,1),Ce,414,0,[eL,QD,oee,see])}function hln(){return b_(),Z(X(g$,1),Ce,310,0,[XQ,ZQ,QQ,eee])}function pln(){return YS(),Z(X(K2e,1),Ce,384,0,[TI,W2e,mee,wee])}function gln(){return Pj(),Z(X(gNt,1),Ce,368,0,[Aee,H$,z$,oL])}function bln(){return Xl(),Z(X(xNt,1),Ce,418,0,[Gy,qx,Vx,_ee])}function mln(){return Kb(),Z(X(v4t,1),Ce,409,0,[_L,XI,RB,IB])}function wln(){return vy(),Z(X($te,1),Ce,205,0,[kB,Fte,c2,a2])}function yln(){return bp(),Z(X(g_e,1),Ce,270,0,[U1,p_e,Hte,zte])}function vln(){return lC(),Z(X(VSe,1),Ce,302,0,[kI,GSe,aL,qSe])}function Eln(){return tC(),Z(X(uxe,1),Ce,354,0,[fne,BB,dne,lne])}function Sln(){return fF(),Z(X(Oxe,1),Ce,355,0,[Tne,Ixe,Rxe,Cxe])}function Tln(){return TF(),Z(X(cOt,1),Ce,406,0,[Cne,xne,Nne,kne])}function Aln(){return JS(),Z(X(R_e,1),Ce,402,0,[MB,e4,t4,n4])}function _ln(){return bF(),Z(X(Pke,1),Ce,396,0,[Jne,Xne,Zne,Qne])}function xln(){return O_(),Z(X(PNe,1),Ce,280,0,[zL,uU,LNe,MNe])}function kln(){return gp(),Z(X(xre,1),Ce,225,0,[_re,GL,Ek,WT])}function Nln(){return vu(),Z(X(yDt,1),Ce,293,0,[VL,Ih,V1,qL])}function Cln(){return su(),Z(X(N4,1),Ce,381,0,[XL,xm,JL,gv])}function Iln(){return VP(),Z(X(e5,1),Ce,290,0,[o3e,a3e,Ire,s3e])}function Rln(){return Yj(),Z(X(d3e,1),Ce,327,0,[Rre,c3e,l3e,u3e])}function Oln(){return jj(),Z(X(jDt,1),Ce,412,0,[Ore,h3e,f3e,p3e])}function Dln(e){var t;return e.j==(He(),dn)&&(t=B0t(e),fc(t,Qt))}function Lut(e,t){var r;for(r=e.j.c.length;r0&&ca(e.g,0,t,0,e.i),t}function PS(e){return YN(),se(e.g,157)?l(e.g,157):null}function Pln(e){return jP(),ma(jre,e)?l(Ut(jre,e),343).Pg():null}function zu(e,t,r){return t<0?cJ(e,r):l(r,69).uk().zk(e,e.ei(),t)}function jln(e,t){return yS(new Me(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function jut(e,t){return me(t)===me(e)?"(this Map)":t==null?tc:ms(t)}function Fut(e,t){t8();var r;return r=l(Ut(EU,e),58),!r||r.dk(t)}function Fln(e){if(e.p!=1)throw Y(new lc);return On(e.f)<<24>>24}function $ln(e){if(e.p!=1)throw Y(new lc);return On(e.k)<<24>>24}function Bln(e){if(e.p!=7)throw Y(new lc);return On(e.k)<<16>>16}function Uln(e){if(e.p!=7)throw Y(new lc);return On(e.f)<<16>>16}function fE(e,t){return t.e==0||e.e==0?wI:(Q_(),pJ(e,t))}function Hln(e,t,r){if(r){var o=r.me();e.a[t]=o(r)}else delete e.a[t]}function $ut(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=_o(t,1);return dj(t)}function zln(e,t,r){var o;o=l(Ut(e.g,r),60),Fe(e.a.c,new Co(t,o))}function Gln(e,t,r,o,a){var u;u=d2n(a,r,o),Fe(t,hvn(a,u)),syn(e,a,t)}function But(e,t,r){e.i=0,e.e=0,t!=r&&(_pt(e,t,r),Apt(e,t,r))}function qln(e){e.a=null,e.e=null,jw(e.b.c,0),jw(e.f.c,0),e.c=null}function Vln(e,t){return l(t==null?Ss(ns(e.f,null)):e3(e.i,t),291)}function Wln(e,t,r){return QV(le(Ss(ns(e.f,t))),le(Ss(ns(e.f,r))))}function zP(e,t,r){return qF(e,t,r,se(t,104)&&(l(t,20).Bb&Io)!=0)}function Kln(e,t,r){return nx(e,t,r,se(t,104)&&(l(t,20).Bb&Io)!=0)}function Yln(e,t,r){return n2n(e,t,r,se(t,104)&&(l(t,20).Bb&Io)!=0)}function ope(e,t){return e==(Ht(),Xr)&&t==Xr?4:e==Xr||t==Xr?8:32}function Uut(e,t){Lhe.call(this),this.a=e,this.b=t,Fe(this.a.b,this)}function ay(e,t){hr(),Km.call(this,e),this.a=t,this.c=-1,this.b=-1}function spe(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(),yyn(r,t),r.vl(t)}function Hut(e,t){var r;for(r=t;r;)Vw(e,r.i,r.j),r=Br(r);return e}function zut(e,t){var r;for(r=0;r"+Whe(e.d):"e_"+s0(e)}function Vut(e){se(e,209)&&!Ye(Ke(e.mf((_n(),oU))))&&p_n(l(e,19))}function cpe(e){e.b!=e.c&&(e.a=we(Ri,It,1,8,5,1),e.b=0,e.c=0)}function Bb(e,t,r){this.e=e,this.a=Ri,this.b=Syt(t),this.c=t,this.d=r}function cy(e,t,r,o){qct.call(this,1,r,o),this.c=e,this.b=t}function zW(e,t,r,o){Vct.call(this,1,r,o),this.c=e,this.b=t}function GW(e,t,r,o,a,u,f){wK.call(this,t,o,a,u,f),this.c=e,this.a=r}function qW(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function Wut(e){this.c=e,this.a=l(Sl(e),160),this.b=this.a.hk().ti()}function Zln(e,t){return eg(),Tn(Ne(e.a),t)}function Qln(e,t){return eg(),Tn(Ne(e.a),t)}function GP(){GP=K,Kne=new Jle("STRAIGHT",0),Lke=new Jle("BEND",1)}function H3(){H3=K,QI=new Ule("UPPER",0),ZI=new Ule("LOWER",1)}function qP(){qP=K,fte=new jle(_d,0),dte=new jle("ALTERNATING",1)}function VP(){VP=K,o3e=new Uot,a3e=new _st,Ire=new Zat,s3e=new xst}function WP(e){var t;return e?new qfe(e):(t=new ch,_K(t,e),t)}function edn(e,t){var r;for(r=e.d-1;r>=0&&e.a[r]===t[r];r--);return r<0}function tdn(e,t){var r;return qut(t),r=e.slice(0,t),r.length=t,sK(r,e)}function Ac(e,t){var r;return t.b.Kb(Kdt(e,t.c.Ve(),(r=new gYe(t),r)))}function KP(e){jbe(),Srt(this,On(Gi(c0(e,24),s7)),On(Gi(e,s7)))}function Kut(){Kut=K,bkt=yn((lj(),Z(X(C2e,1),Ce,429,0,[aee,y$])))}function Yut(){Yut=K,fNt=yn((E_(),Z(X(dNt,1),Ce,506,0,[iL,vee])))}function Jut(){Jut=K,UNt=yn((m6(),Z(X(ZSe,1),Ce,424,0,[Y$,XSe])))}function Xut(){Xut=K,jNt=yn((nj(),Z(X(zSe,1),Ce,427,0,[HSe,Mee])))}function Zut(){Zut=K,qNt=yn((l6(),Z(X(tTe,1),Ce,479,0,[eTe,X$])))}function Qut(){Qut=K,QNt=yn((HP(),Z(X(gTe,1),Ce,425,0,[nte,pTe])))}function elt(){elt=K,n3t=yn((qP(),Z(X(CTe,1),Ce,428,0,[fte,dte])))}function tlt(){tlt=K,YIt=yn((g6(),Z(X(b_e,1),Ce,426,0,[Gte,qte])))}function nlt(){nlt=K,x4t=yn((H3(),Z(X(_4t,1),Ce,522,0,[QI,ZI])))}function rlt(){rlt=K,D4t=yn((If(),Z(X(O4t,1),Ce,513,0,[aw,kg])))}function ilt(){ilt=K,M4t=yn((zd(),Z(X(L4t,1),Ce,512,0,[Em,cf])))}function olt(){olt=K,J4t=yn((vd(),Z(X(Y4t,1),Ce,519,0,[ov,H1])))}function slt(){slt=K,rRt=yn((g0(),Z(X(nRt,1),Ce,457,0,[z1,u2])))}function alt(){alt=K,IRt=yn(($P(),Z(X(dxe,1),Ce,430,0,[hne,lxe])))}function clt(){clt=K,MRt=yn((xj(),Z(X(fxe,1),Ce,490,0,[UB,f2])))}function ult(){ult=K,FRt=yn((ij(),Z(X(pxe,1),Ce,431,0,[hxe,yne])))}function YP(){YP=K,Pne=new Wle(Mwe,0),nke=new Wle("TARGET_WIDTH",1)}function llt(){llt=K,LOt=yn((YP(),Z(X(rke,1),Ce,481,0,[Pne,nke])))}function dlt(){dlt=K,zOt=yn((o6(),Z(X(dke,1),Ce,433,0,[Hne,ZB])))}function flt(){flt=K,a6t=yn((x6(),Z(X(Dke,1),Ce,432,0,[eU,Oke])))}function hlt(){hlt=K,c6t=yn((GP(),Z(X(Mke,1),Ce,389,0,[Kne,Lke])))}function plt(){plt=K,_6t=yn((w6(),Z(X(A6t,1),Ce,498,0,[sre,ore])))}function ndn(){return Si(),Z(X(E4,1),Ce,87,0,[hf,fs,cs,ff,il])}function rdn(){return He(),Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt])}function idn(e){return(e.k==(Ht(),Xr)||e.k==yi)&&br(e,(Ie(),RI))}function odn(e,t,r){return l(t==null?ec(e.f,null,r):_0(e.i,t,r),291)}function upe(e,t,r){e.a.c.length=0,ekn(e,t,r),e.a.c.length==0||_An(e,t)}function Wr(e,t,r,o){var a;a=new pt,a.c=t,a.b=r,a.a=o,o.b=r.a=a,++e.b}function lpe(e,t){var r,o;for(r=t,o=0;r>0;)o+=e.a[r],r-=r&-r;return o}function glt(e,t){var r;for(r=t;r;)Vw(e,-r.i,-r.j),r=Br(r);return e}function sdn(e,t){var r,o;o=!1;do r=fpt(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 blt(e,t){var r,o;return r=t.jd(),o=e.De(r),!!o&&ia(o.e,t.kd())}function mlt(e,t){var r;return r=t.jd(),new t0(r,e.e.pc(r,l(t.kd(),18)))}function adn(e,t){var r;return r=e.a.get(t),r??we(Ri,It,1,0,5,1)}function nu(e,t,r){var o;return o=(at(t,e.c.length),e.c[t]),e.c[t]=r,o}function wlt(e,t){this.c=0,this.b=t,Rnt.call(this,e,17493),this.a=this.c}function dpe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function f1(){hn.call(this),Krt(this),this.d.b=this.d,this.d.a=this.d}function VW(e){JP(),!sf&&(this.c=e,this.e=!0,this.a=new je)}function ylt(e){YEt(),mZe(this),this.a=new Ar,Vge(this,e),Gn(this.a,e)}function vlt(){hV(this),this.b=new Me(Kr,Kr),this.a=new Me(Li,Li)}function fpe(e){jen.call(this,e==null?tc:ms(e),se(e,81)?l(e,81):null)}function cdn(e){e&&Afn((Yue(),KEe)),--u$,e&&l$!=-1&&(Qen(l$),l$=-1)}function n6(e){e.i=0,hO(e.b,null),hO(e.c,null),e.a=null,e.e=null,++e.g}function JP(){JP=K,sf=!0,vxt=!1,Ext=!1,Txt=!1,Sxt=!1}function fo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function hpe(e,t){return se(t,144)?wt(e.c,l(t,144).c):!1}function WW(e,t){var r;return r=l(Wd(e.d,t),21),r||l(Wd(e.e,t),21)}function hE(e,t){return(v1(e),BA(new vt(e,new Ppe(t,e.a)))).zd(TT)}function udn(){return Vi(),Z(X(q2e,1),Ce,364,0,[id,kh,la,da,zo])}function ldn(){return EF(),Z(X(PRt,1),Ce,365,0,[mne,pne,wne,gne,bne])}function ddn(){return Ey(),Z(X(NNt,1),Ce,372,0,[sL,V$,W$,q$,G$])}function fdn(){return xC(),Z(X(jOt,1),Ce,370,0,[h2,BT,f4,d4,LL])}function hdn(){return J6(),Z(X(gke,1),Ce,331,0,[fke,zne,pke,Gne,hke])}function pdn(){return hC(),Z(X(c_e,1),Ce,329,0,[a_e,Bte,Ute,VI,WI])}function gdn(){return iu(),Z(X(NTe,1),Ce,166,0,[gL,LI,xp,MI,gm])}function bdn(){return Jd(),Z(X(uf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])}function mdn(){return EE(),Z(X(_4,1),Ce,260,0,[W1,WL,JNe,A4,XNe])}function wdn(e){return $9(),function(){return cln(e,this,arguments)}}function Pc(e){return e.t||(e.t=new sZe(e),aC(new AQe(e),0,e.t)),e.t}function Elt(e){var t;return e.c||(t=e.r,se(t,89)&&(e.c=l(t,29))),e.c}function ydn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function KW(e){var t,r,o;return t=e&Hc,r=e>>22&Hc,o=e<0?Ep:0,Ua(t,r,o)}function Slt(e){var t;return t=e.length,wt($t.substr($t.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?Ygt(e,t):Bwt(e,-t)}function ppe(e,t){return t==0||e.e==0?e:t>0?Bwt(e,t):Ygt(e,-t)}function Tlt(e){this.b=e,tn.call(this,e),this.a=l(qt(this.b.a,4),131)}function Alt(e){this.b=e,ES.call(this,e),this.a=l(qt(this.b.a,4),131)}function Vl(e,t,r,o,a){Ilt.call(this,t,o,a),this.c=e,this.b=r}function gpe(e,t,r,o,a){qct.call(this,t,o,a),this.c=e,this.a=r}function bpe(e,t,r,o,a){Vct.call(this,t,o,a),this.c=e,this.a=r}function mpe(e,t,r,o,a){Ilt.call(this,t,o,a),this.c=e,this.a=r}function vdn(e,t,r){return vr(yS(U_(e),Ao(t.b)),yS(U_(e),Ao(r.b)))}function Edn(e,t,r){return vr(yS(U_(e),Ao(t.e)),yS(U_(e),Ao(r.e)))}function Sdn(e,t){return b.Math.min(h1(t.a,e.d.d.c),h1(t.b,e.d.d.c))}function YW(e,t,r){var o;return o=e.Fh(t),o>=0?e.Ih(o,r,!0):O0(e,t,r)}function Tdn(e,t){var r,o;r=l(agn(e.c,t),18),r&&(o=r.gc(),r.$b(),e.d-=o)}function _lt(e){var t,r;return t=e.c.i,r=e.d.i,t.k==(Ht(),yi)&&r.k==yi}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 xlt(e,t,r){var o;o=new mde(e.a),X3(o,e.a.a),ec(o.f,t,r),e.a.a=o}function wpe(e,t,r,o){var a;for(a=0;at)throw Y(new Ia(cme(e,t,"index")));return e}function _dn(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?_me(e.f,null):qht(e.i,t):_me(e.f,t)}function klt(e,t){Int.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Nlt(e,t){Rnt.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Tpe(e,t){R8.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Clt(e,t,r){N9.call(this,r),this.b=e,this.c=t,this.d=(fY(),Hre)}function Ilt(e,t,r){this.d=e,this.k=t?1:0,this.f=r?1:0,this.o=-1,this.p=0}function Rlt(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 XP(){this.e=new je,this.c=new je,this.d=new je,this.b=new je}function Olt(){this.g=new Due,this.b=new Due,this.a=new je,this.k=new je}function Dlt(){this.a=new jue,this.b=new GZe,this.d=new mG,this.e=new bG}function ZP(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;_U=($A(),t=new R9,t),xU=(e=new rq,e)}function QP(){QP=K,p4=new lr("org.eclipse.elk.labels.labelManager")}function Llt(){Llt=K,jSe=new Pr("separateLayerConnections",(Pj(),Aee))}function o6(){o6=K,Hne=new Kle("FIXED",0),ZB=new Kle("CENTER_NODE",1)}function vd(){vd=K,ov=new Hle("REGULAR",0),H1=new Hle("CRITICAL",1)}function xdn(e,t){var r;return r=bkn(e,t),e.b=new Cj(r.c.length),Lxn(e,r)}function kdn(e,t,r){var o;return++e.e,--e.f,o=l(e.d[t].ed(r),138),o.kd()}function Ndn(e){var t,r;return t=e.jd(),r=l(e.kd(),18),BO(r.Lc(),new SKe(t))}function ZW(e){var t;return t=e.b,t.b==0?null:l(sa(t,0),65).b}function Ape(e){if(e.a){if(e.e)return Ape(e.e)}else return e;return null}function Cdn(e,t){return e.pt.p?-1:0}function ej(e,t){return Mt(t),e.cr||t=0?e.Ih(r,!0,!0):O0(e,t,!0)}function efn(e,t){return vr(ce(le(F(e,(Ie(),nw)))),ce(le(F(t,nw))))}function Ppe(e,t){R8.call(this,t.xd(),t.wd()&-16449),Mt(e),this.a=e,this.c=t}function jpe(e,t,r,o,a){frt(this),this.b=e,this.d=t,this.f=r,this.g=o,this.c=a}function Da(e){hV(this),HO(e>=0,"Initial capacity must not be negative")}function BS(e){var t;return kn(e),se(e,206)?(t=l(e,206),t):new jKe(e)}function tfn(e){for(;!e.a;)if(!Vit(e.c,new fYe(e)))return!1;return!0}function nfn(e){var t;if(!e.a)throw Y(new fat);return t=e.a,e.a=Br(e.a),t}function rfn(e){if(e.b<=0)throw Y(new vs);return--e.b,e.a-=e.c.c,Oe(e.a)}function Fpe(e,t){if(e.g==null||t>=e.i)throw Y(new aV(t,e.i));return e.g[t]}function wdt(e,t,r){if(C_(e,r),r!=null&&!e.dk(r))throw Y(new QG);return r}function ifn(e,t,r){var o;return o=vpt(e,t,r),e.b=new Cj(o.c.length),Qme(e,o)}function ydt(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)ie(e,t);return ipe(e)}function ofn(e){rj(),l(e.mf((_n(),dv)),185).Ec((xc(),KL)),e.of(Sre,null)}function rj(){rj=K,N6t=new pGe,I6t=new gGe,C6t=ypn((_n(),Sre),N6t,q1,I6t)}function vdt(){vdt=K,VF(),Y3e=Kr,BLt=Li,J3e=new QR(Kr),ULt=new QR(Li)}function ij(){ij=K,hxe=new Vle("LEAF_NUMBER",0),yne=new Vle("NODE_SIZE",1)}function iK(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 sfn(e,t){e.a.Le(t.d,e.b)>0&&(Fe(e.c,new Lfe(t.c,t.d,e.d)),e.b=t.d)}function g_(e,t,r,o){var a;o=(h0(),o||g2e),a=e.slice(t,r),ume(a,e,t,r,-t,o)}function qu(e,t,r,o,a){return t<0?O0(e,r,o):l(r,69).uk().wk(e,e.ei(),t,o,a)}function Edt(e,t){var r,o;return o=t/e.c.Pd().gc()|0,r=t%e.c.Pd().gc(),$S(e,o,r)}function $pe(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[0];)r=t;return r}function Sdt(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[1];)r=t;return r}function afn(e){return se(e,183)?""+l(e,183).a:e==null?null:ms(e)}function cfn(e){return se(e,183)?""+l(e,183).a:e==null?null:ms(e)}function Tdt(e,t){if(t.a)throw Y(new Es(O2t));gi(e.a,t),t.a=e,!e.j&&(e.j=t)}function _c(){_c=K,Wf=new Rq(hT,0),M1=new Rq(px,1),nd=new Rq(pT,2)}function b_(){b_=K,XQ=new o8("All",0),ZQ=new Znt,QQ=new lrt,eee=new Qnt}function Adt(){Adt=K,wxt=yn((b_(),Z(X(g$,1),Ce,310,0,[XQ,ZQ,QQ,eee])))}function _dt(){_dt=K,akt=yn((A0(),Z(X(skt,1),Ce,414,0,[eL,QD,oee,see])))}function xdt(){xdt=K,Xkt=yn((x_(),Z(X(Jkt,1),Ce,413,0,[X0,Uy,By,VE])))}function kdt(){kdt=K,rNt=yn((YS(),Z(X(K2e,1),Ce,384,0,[TI,W2e,mee,wee])))}function Ndt(){Ndt=K,bNt=yn((Pj(),Z(X(gNt,1),Ce,368,0,[Aee,H$,z$,oL])))}function Cdt(){Cdt=K,kNt=yn((Xl(),Z(X(xNt,1),Ce,418,0,[Gy,qx,Vx,_ee])))}function Idt(){Idt=K,E4t=yn((Kb(),Z(X(v4t,1),Ce,409,0,[_L,XI,RB,IB])))}function Rdt(){Rdt=K,qIt=yn((vy(),Z(X($te,1),Ce,205,0,[kB,Fte,c2,a2])))}function Odt(){Odt=K,KIt=yn((bp(),Z(X(g_e,1),Ce,270,0,[U1,p_e,Hte,zte])))}function Ddt(){Ddt=K,FNt=yn((lC(),Z(X(VSe,1),Ce,302,0,[kI,GSe,aL,qSe])))}function Ldt(){Ldt=K,CRt=yn((tC(),Z(X(uxe,1),Ce,354,0,[fne,BB,dne,lne])))}function Mdt(){Mdt=K,oOt=yn((fF(),Z(X(Oxe,1),Ce,355,0,[Tne,Ixe,Rxe,Cxe])))}function Pdt(){Pdt=K,uOt=yn((TF(),Z(X(cOt,1),Ce,406,0,[Cne,xne,Nne,kne])))}function jdt(){jdt=K,iRt=yn((JS(),Z(X(R_e,1),Ce,402,0,[MB,e4,t4,n4])))}function Fdt(){Fdt=K,l6t=yn((bF(),Z(X(Pke,1),Ce,396,0,[Jne,Xne,Zne,Qne])))}function $dt(){$dt=K,hDt=yn((O_(),Z(X(PNe,1),Ce,280,0,[zL,uU,LNe,MNe])))}function Bdt(){Bdt=K,gDt=yn((gp(),Z(X(xre,1),Ce,225,0,[_re,GL,Ek,WT])))}function Udt(){Udt=K,vDt=yn((vu(),Z(X(yDt,1),Ce,293,0,[VL,Ih,V1,qL])))}function Hdt(){Hdt=K,LDt=yn((VP(),Z(X(e5,1),Ce,290,0,[o3e,a3e,Ire,s3e])))}function zdt(){zdt=K,RDt=yn((su(),Z(X(N4,1),Ce,381,0,[XL,xm,JL,gv])))}function Gdt(){Gdt=K,MDt=yn((Yj(),Z(X(d3e,1),Ce,327,0,[Rre,c3e,l3e,u3e])))}function qdt(){qdt=K,FDt=yn((jj(),Z(X(jDt,1),Ce,412,0,[Ore,h3e,f3e,p3e])))}function l6(){l6=K,eTe=new Mle(_d,0),X$=new Mle("IMPROVE_STRAIGHTNESS",1)}function oj(){oj=K,jne=new Qq(XSt,0),oke=new Qq(ive,1),ike=new Qq(_d,2)}function Bpe(e){var t;if(!EK(e))throw Y(new vs);return e.e=1,t=e.d,e.d=null,t}function cg(e){var t;return gs(e)&&(t=0-e,!isNaN(t))?t:g1(k_(e))}function _s(e,t,r){for(;r=0;)++t[0]}function Zdt(e,t){x2e=new Vm,ckt=t,vI=e,l(vI.b,68),Cpe(vI,x2e,null),$vt(vI)}function G3(){G3=K,dee=new Dq("XY",0),lee=new Dq("X",1),fee=new Dq("Y",2)}function Za(){Za=K,Nd=new Oq("TOP",0),P1=new Oq(px,1),rd=new Oq(Swe,2)}function lp(){lp=K,dL=new $q(_d,0),QE=new $q("TOP",1),kT=new $q(Swe,2)}function g6(){g6=K,Gte=new Fle("INPUT_ORDER",0),qte=new Fle("PORT_DEGREE",1)}function m_(){m_=K,JEe=Ua(Hc,Hc,524287),nxt=Ua(0,0,ED),XEe=KW(1),KW(2),ZEe=KW(0)}function Hpe(e){var t;return t=HS(qt(e,32)),t==null&&(Ha(e),t=HS(qt(e,32))),t}function zpe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Qdt(e){(this.q?this.q:(At(),At(),xh)).zc(e.q?e.q:(At(),At(),xh))}function eft(e,t){va(e,t==null||W8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function tft(e,t){gc(e,t==null||W8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function nft(e,t){Hb(e,t==null||W8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function rft(e,t){Ub(e,t==null||W8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function pfn(e,t){AS(l(l(e.f,19).mf((_n(),bk)),103))&&Igt(Ahe(l(e.f,19)),t)}function uK(e,t){var r;return r=Ur(e.d,t),r>=0?aF(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 lK(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 dK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==n_t,e.d=t),e.e}function fK(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 v1(e),o=new Tpe(t,e.a),r=new Kit(o),new vt(e,r)}function Wd(e,t){var r;return r=l(Ut(e.e,t),395),r?(Ert(e,r),r.e):null}function gfn(e,t){var r,o,a;a=t.c.i,r=l(Ut(e.f,a),60),o=r.d.c-r.e.c,Ege(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 fft(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&t0?ar:Ea(e,Zi)<0?Zi:On(e)}function Kl(e,t,r){var o;if(t==null)throw Y(new rS);return o=op(e,t),Hln(e,t,r),o}function bft(e,t){return Mt(t),ehe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function mft(e){this.b=new je,this.a=new je,this.c=new je,this.d=new je,this.e=e}function wft(e,t,r){q8.call(this),Wpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function kfn(){return Ht(),Z(X(yee,1),Ce,252,0,[Xr,bi,yi,_a,ta,af,rL,AI])}function yft(){yft=K,SDt=yn((EE(),Z(X(_4,1),Ce,260,0,[W1,WL,JNe,A4,XNe])))}function vft(){vft=K,R6t=yn((Jd(),Z(X(uf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])))}function Eft(){Eft=K,CNt=yn((Ey(),Z(X(NNt,1),Ce,372,0,[sL,V$,W$,q$,G$])))}function Sft(){Sft=K,jRt=yn((EF(),Z(X(PRt,1),Ce,365,0,[mne,pne,wne,gne,bne])))}function Tft(){Tft=K,t3t=yn((iu(),Z(X(NTe,1),Ce,166,0,[gL,LI,xp,MI,gm])))}function Aft(){Aft=K,VIt=yn((hC(),Z(X(c_e,1),Ce,329,0,[a_e,Bte,Ute,VI,WI])))}function _ft(){_ft=K,FOt=yn((xC(),Z(X(jOt,1),Ce,370,0,[h2,BT,f4,d4,LL])))}function xft(){xft=K,GOt=yn((J6(),Z(X(gke,1),Ce,331,0,[fke,zne,pke,Gne,hke])))}function Nfn(){return UF(),Z(X(USe,1),Ce,277,0,[Nee,Ree,kee,Lee,Iee,Cee,Dee,Oee])}function Cfn(){return _1(),Z(X(O6t,1),Ce,287,0,[Hke,xi,vo,HT,Qi,$r,UT,lf])}function Ifn(){return sT(),Z(X(s5,1),Ce,235,0,[Pre,vU,o5,i5,Mre,yU,wU,Lre])}function Rfn(e,t){return US(),-na(l(F(e,(js(),l2)),15).a,l(F(t,l2),15).a)}function Ofn(e,t,r,o){var a;e.j=-1,Sme(e,eme(e,t,r),(Mo(),a=l(t,69).tk(),a.vl(o)))}function Dfn(e,t,r){var o,a;for(a=new V(r);a.a0?t-1:t,$Qe(den(Vft(Dfe(new sS,r),e.n),e.j),e.k)}function fj(e,t){var r;return v1(e),r=new Rat(e,e.a.xd(),e.a.wd()|4,t),new vt(e,r)}function Mfn(e,t){var r,o;return r=l(by(e.d,t),18),r?(o=t,e.e.pc(o,r)):null}function kft(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(P9(),BQ)}function w0(e){if(e<0)throw Y(new jt("Illegal Capacity: "+e));this.g=this.$i(e)}function Pfn(e,t){if(0>e||e>t)throw Y(new ele("fromIndex: 0, toIndex: "+e+pwe+t))}function Nft(e,t){return!!J3(e,t,On(yo(Sh,ph(On(yo(t==null?0:Rr(t),Th)),15))))}function jfn(e,t){AS(l(F(l(e.e,9),(Ue(),Zr)),103))&&(At(),ki(l(e.e,9).j,t))}function Ffn(e){var t;return t=ce(le(F(e,(Ue(),_g)))),t<0&&(t=0,Te(e,_g,t)),t}function hj(e,t){var r,o;for(o=e.Jc();o.Ob();)r=l(o.Pb(),70),Te(r,(Ie(),OT),t)}function $fn(e,t,r){var o;o=b.Math.max(0,e.b/2-.5),bC(r,o,1),Fe(t,new ytt(r,o))}function Cft(e,t,r,o,a,u){var f;f=JW(o),mo(f,a),Yi(f,u),yt(e.a,o,new Y8(f,t,r.f))}function Ift(e,t){Vn(e,(yh(),Rne),t.f),Vn(e,dOt,t.e),Vn(e,Ine,t.d),Vn(e,lOt,t.c)}function gK(e){var t;Gw(!!e.c),t=e.c.a,Vu(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function Rft(e){return e.a>=-.01&&e.a<=nf&&(e.a=0),e.b>=-.01&&e.b<=nf&&(e.b=0),e}function pE(e){Z_();var t,r;for(r=ave,t=0;tr&&(r=e[t]);return r}function Oft(e,t){var r;if(r=iD(e.Ah(),t),!r)throw Y(new jt(O1+t+iQ));return r}function ly(e,t){var r;for(r=e;Br(r);)if(r=Br(r),r==t)return!0;return!1}function Bfn(e,t){return t&&e.b[t.g]==t?(ii(e.b,t.g,null),--e.c,!0):!1}function Vu(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 La(e,t){var r,o,a,u;for(Mt(t),o=e.c,a=0,u=o.length;a0&&(e.a/=t,e.b/=t),e}function pj(e){this.b=(kn(e),new Tc(e)),this.a=new je,this.d=new je,this.e=new ro}function Wpe(e){e.b=(_c(),M1),e.f=(Za(),P1),e.d=(wu(2,Oy),new Da(2)),e.e=new ro}function Lft(){Lft=K,m$=(Sd(),Z(X($y,1),Ce,240,0,[Bs,$a,Us])).length,ree=m$}function Sd(){Sd=K,Bs=new Iq("BEGIN",0),$a=new Iq(px,1),Us=new Iq("END",2)}function Kd(){Kd=K,yk=new nV(px,0),pv=new nV("HEAD",1),vk=new nV("TAIL",2)}function m6(){m6=K,Y$=new Lle("READING_DIRECTION",0),XSe=new Lle("ROTATION",1)}function w6(){w6=K,sre=new Xle("DIRECT_ROUTING",0),ore=new Xle("BEND_ROUTING",1)}function US(){US=K,ORt=Pf(Pf(Pf(ZN(new ci,(JS(),e4)),(IC(),Qte)),M_e),$_e)}function dp(){dp=K,LRt=Pf(Pf(Pf(ZN(new ci,(JS(),n4)),(IC(),j_e)),O_e),P_e)}function gE(e,t){return gen(Y3(e,t,On(yo(Sh,ph(On(yo(t==null?0:Rr(t),Th)),15)))))}function Kpe(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function Ype(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function mu(e){var t;return e.w?e.w:(t=Dun(e),t&&!t.Sh()&&(e.w=t),t)}function Vfn(e){var t;return e==null?null:(t=l(e,198),$wn(t,t.length))}function ie(e,t){if(e.g==null||t>=e.i)throw Y(new aV(t,e.i));return e.Ui(t,e.g[t])}function Wfn(e,t){At();var r,o;for(o=new je,r=0;r=14&&t<=16))),e}function jft(){jft=K,VNt=yn((K6(),Z(X(sTe,1),Ce,284,0,[Z$,rTe,oTe,nTe,iTe,Jee])))}function Fft(){Fft=K,WNt=yn((W_(),Z(X(fTe,1),Ce,285,0,[NI,cTe,dTe,lTe,uTe,aTe])))}function $ft(){$ft=K,GNt=yn((xF(),Z(X(QSe,1),Ce,286,0,[Vee,qee,Kee,Wee,Yee,J$])))}function Bft(){Bft=K,PNt=yn((eT(),Z(X(Yx,1),Ce,233,0,[Kx,xI,Wx,qy,JE,YE])))}function Uft(){Uft=K,bDt=yn((AF(),Z(X(zNe,1),Ce,328,0,[kre,BNe,HNe,FNe,UNe,$Ne])))}function Hft(){Hft=K,B6t=yn((Zb(),Z(X(hre,1),Ce,300,0,[fre,w4,m4,dre,g4,b4])))}function zft(){zft=K,L6t=yn((mh(),Z(X(qke,1),Ce,259,0,[ure,jL,FL,rU,tU,nU])))}function Gft(){Gft=K,TDt=yn((qi(),Z(X(ZNe,1),Ce,103,0,[K1,pf,Sk,_m,Oh,fa])))}function qft(){qft=K,ADt=yn((xc(),Z(X(dU,1),Ce,282,0,[Y1,Rp,KL,k4,x4,KT])))}function Jfn(){return _y(),Z(X(Go,1),Ce,96,0,[ad,Ip,cd,ld,Rh,Il,ku,ud,Cl])}function V3(){V3=K,YL=new iV(uEe,0),Nre=new iV("PARENT",1),e3e=new iV("ROOT",2)}function Vft(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)&&pr(e,new cy(e,3,r,e.f))}function gj(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,1,r,e.b))}function y0(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,3,r,e.b))}function v0(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,4,r,e.c))}function Hb(e,t){var r;r=e.g,e.g=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,4,r,e.g))}function va(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,5,r,e.i))}function gc(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,6,r,e.j))}function E0(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,1,r,e.j))}function S0(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,2,r,e.k))}function bj(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&pr(e,new cy(e,0,r,e.a))}function ug(e,t){var r;r=e.s,e.s=t,e.Db&4&&!(e.Db&1)&&pr(e,new zW(e,4,r,e.s))}function dy(e,t){var r;r=e.t,e.t=t,e.Db&4&&!(e.Db&1)&&pr(e,new zW(e,5,r,e.t))}function mK(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&pr(e,new zW(e,2,r,e.d))}function y_(e,t){var r;r=e.F,e.F=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,5,r,t))}function y6(e,t){var r;return r=l(Ut((t8(),EU),e),58),r?r.ek(t):we(Ri,It,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 Xfn(e,t){var r,o,a;return r=(o=(t1(),a=new zce,a),t&&Wme(o,t),o),dge(r,e),r}function Wft(e,t,r){var o;return o=B_(r),Jn(e.c,o,t),Jn(e.d,t,r),Jn(e.e,t,ry(t)),t}function fn(e,t,r,o,a,u){var f;return f=fW(e,t),Yft(r,f),f.i=a?8:0,f.f=o,f.e=a,f.g=u,f}function Jpe(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 Xpe(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 Zpe(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 Qpe(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 ege(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 Kft(e,t){var r,o,a,u;for(o=t,a=0,u=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 are||(are=new Eyt,mE(are,Z(X(qE,1),It,139,0,[new Wce]))),are}function mj(){mj=K,A_e=new qq("NO",0),Jte=new qq(Mwe,1),T_e=new qq("LOOK_BACK",2)}function wj(){wj=K,WSe=new Mq("ARD",0),K$=new Mq("MSD",1),Pee=new Mq("MANUAL",2)}function Fo(){Fo=K,YI=new Uq(qC,0),Cc=new Uq("INPUT",1),Ba=new Uq("OUTPUT",2)}function thn(){return tD(),Z(X(JSe,1),Ce,268,0,[$ee,YSe,Uee,Hee,Bee,zee,cL,Fee,jee])}function nhn(){return rD(),Z(X(i_e,1),Ce,269,0,[Pte,t_e,n_e,Lte,e_e,r_e,_B,Dte,Mte])}function rhn(){return Uc(),Z(X(n3e,1),Ce,267,0,[Tk,QL,fU,C4,hU,gU,pU,Cre,ZL])}function Yo(e,t,r){return Yb(e,t),Ma(e,r),ug(e,0),dy(e,1),pg(e,!0),hg(e,!0),e}function Xft(e,t){var r;return se(t,45)?e.c.Kc(t):(r=lY(e,t),eF(e,t),r)}function K3(e,t){var r,o,a,u;for(o=t,a=0,u=o.length;ar)throw Y(new Yw(t,r));return new hfe(e,t)}function Zft(e,t){var r,o;for(r=0,o=e.gc();r=0),z1n(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function ahn(e){var t,r;for(r=new V(nbt(e));r.a=0}function oge(){oge=K,l4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function iht(){iht=K,d4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function sge(){sge=K,f4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function oht(){oht=K,h4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function sht(){sht=K,p4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function aht(){aht=K,g4t=$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)}function cht(){cht=K,w4t=Ra($n($n(new ci,(Vi(),la),(Xi(),L$)),da,C$),zo,D$)}function uht(){uht=K,rxt=Z(X(Rn,1),Qn,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function age(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,0,r,e.b))}function cge(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,1,r,e.c))}function yK(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,4,r,e.c))}function uge(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,1,r,e.c))}function lge(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&pr(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)&&pr(e,new Pi(e,1,2,r,e.k))}function vK(e,t){var r;r=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,2,r,e.D))}function Sj(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,8,r,e.f))}function Tj(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,7,r,e.i))}function dge(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,8,r,e.a))}function fge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,0,r,e.b))}function lhn(e,t,r){var o;e.b=t,e.a=r,o=(e.a&512)==512?new rQe:new Vce,e.c=JSn(o,e.b,e.a)}function lht(e,t){return wp(e.e,t)?(Mo(),dK(t)?new rP(t,e):new xO(t,e)):new _nt(t,e)}function dhn(e){var t,r;return 0>e?new ble:(t=e+1,r=new wlt(t,e),new Vde(null,r))}function fhn(e,t){At();var r;return r=new dS(1),zi(e)?rs(r,e,t):ec(r.f,e,t),new YG(r)}function hhn(e,t){var r;r=new Vm,l(t.b,68),l(t.b,68),l(t.b,68),La(t.a,new Efe(e,r,t))}function dht(e,t){var r;return se(t,8)?(r=l(t,8),e.a==r.a&&e.b==r.b):!1}function phn(e){var t;return t=F(e,(Ie(),wr)),se(t,176)?Lgt(l(t,176)):null}function fht(e){var t;return e=b.Math.max(e,2),t=Fge(e),e>t?(t<<=1,t>0?t:BC):t}function EK(e){switch(Ade(e.e!=3),e.e){case 2:return!1;case 0:return!0}return ydn(e)}function hge(e){var t;return e.b==null?(tg(),tg(),l5):(t=e.sl()?e.rl():e.ql(),t)}function hht(e,t){var r,o;for(o=t.vc().Jc();o.Ob();)r=l(o.Pb(),45),V6(e,r.jd(),r.kd())}function pge(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,11,r,e.d))}function Aj(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,13,r,e.j))}function gge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,21,r,e.b))}function bge(e,t){e.r>0&&e.c0&&e.g!=0&&bge(e.i,t/e.r*e.i.d))}function bE(e){var t;return LV(e.f.g,e.d),cn(e.b),e.c=e.a,t=l(e.a.Pb(),45),e.b=Nge(e),t}function pht(e,t){var r;return r=t==null?-1:_s(e.b,t,0),r<0?!1:(SK(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 _j(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 SK(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 Sht(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,u,f,p,m,y,v,T,N){return Vmt(e,t,r,o,a,u,f,p,m,y,v,T,N),rY(e,!1),e}function xK(e,t,r,o,a,u){var f;this.c=e,f=new je,tbe(e,f,t,e.b,r,o,a,u),this.a=new Ji(f,0)}function Tht(){this.c=new z9(0),this.b=new z9(sve),this.d=new z9(USt),this.a=new z9(HSt)}function Aht(e){this.e=e,this.d=new H9(py(kS(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function Cj(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 Ehn(){return x1(),Z(X(h_e,1),Ce,246,0,[NB,SL,TL,l_e,d_e,u_e,f_e,CB,ak,KI])}function Shn(){return $o(),Z(X(Xee,1),Ce,262,0,[Q$,rl,CI,eB,Qx,ZE,II,Xx,Zx,tB])}function _ht(e,t){return ce(le(Xc(L6(Oa(new vt(null,new St(e.c.b,16)),new yJe(e)),t))))}function vge(e,t){return ce(le(Xc(L6(Oa(new vt(null,new St(e.c.b,16)),new wJe(e)),t))))}function xht(e,t){return Ud(),Yl(nf),b.Math.abs(0-t)<=nf||t==0||isNaN(0)&&isNaN(t)?0:e/t}function Thn(e,t){return x_(),e==X0&&t==Uy||e==Uy&&t==X0||e==VE&&t==By||e==By&&t==VE}function Ahn(e,t){return x_(),e==X0&&t==By||e==X0&&t==VE||e==Uy&&t==VE||e==Uy&&t==By}function _hn(e,t,r){var o,a,u;for(o=0,a=0;a>>31;o!=0&&(e[r]=o)}function Ege(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 xhn(e,t){var r,o;return r=l(ve(e,(A1(),zB)),15),o=l(ve(t,zB),15),na(r.a,o.a)}function khn(e,t){var r;t.Tg("General Compactor",1),r=T1n(l(ve(e,(A1(),Ene)),387)),r.Bg(e)}function Nhn(e,t,r){r.Tg("DFS Treeifying phase",1),L1n(e,t),wSn(e,t),e.a=null,e.b=null,r.Ug()}function Chn(e,t,r,o){var a;a=new aS,Mb(a,"x",yF(e,t,o.a)),Mb(a,"y",vF(e,t,o.b)),RS(r,a)}function Ihn(e,t,r,o){var a;a=new aS,Mb(a,"x",yF(e,t,o.a)),Mb(a,"y",vF(e,t,o.b)),RS(r,a)}function kK(){kK=K,L4=new ZZe,Bre=Z(X(ac,1),HE,182,0,[]),wLt=Z(X(Dl,1),REe,62,0,[])}function zS(){zS=K,Tee=new Pr("edgelabelcenterednessanalysis.includelabel",(Lt(),L1))}function bc(){bc=K,eSe=new vG,Z2e=new EG,Q2e=new SG,X2e=new TG,tSe=new AG,nSe=new DN}function Rhn(e,t){t.Tg(bSt,1),N1e(Nen(new _9((KN(),new mW(e,!1,!1,new l9))))),t.Ug()}function NK(e){var t;return t=Qhe(e),d3(t.a,0)?($w(),$w(),JQ):($w(),new TV(t.b))}function CK(e){var t;return t=Qhe(e),d3(t.a,0)?($w(),$w(),JQ):($w(),new TV(t.c))}function Ohn(e){var t;return t=UP(e),d3(t.a,0)?(W9(),W9(),bxt):(W9(),new eit(t.b))}function Dhn(e){return e.b.c.i.k==(Ht(),yi)?l(F(e.b.c.i,(Ie(),wr)),12):e.b.c}function kht(e){return e.b.d.i.k==(Ht(),yi)?l(F(e.b.d.i,(Ie(),wr)),12):e.b.d}function Nht(e){switch(e.g){case 2:return He(),Wt;case 4:return He(),Qt;default:return e}}function Cht(e){switch(e.g){case 1:return He(),dn;case 3:return He(),Vt;default:return e}}function Lhn(e,t){var r;return r=$be(e),bme(new Me(r.c,r.d),new Me(r.b,r.a),e.Kf(),t,e.$f())}function Mhn(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 Rht(e,t,r){this.g=e,this.d=t,this.e=r,this.a=new je,Ivn(this),At(),ki(this.a,null)}function Ku(e,t,r,o,a,u,f){mn.call(this,e,t),this.d=r,this.e=o,this.c=a,this.b=u,this.a=Wl(f)}function Tge(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 IK(e,t){var r,o,a,u;return a=e.c,r=e.c+e.b,u=e.d,o=e.d+e.a,t.a>a&&t.au&&t.ba?r=a:Jt(t,r+1),e.a=yl(e.a,0,t)+(""+o)+ghe(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 qhn(e,t,r){return vr(yS(U_(e),new Me(t.e.a,t.e.b)),yS(U_(e),new Me(r.e.a,r.e.b)))}function Vhn(e,t,r){return e==(Kb(),RB)?new qUe:Bc(t,1)!=0?new ole(r.length):new LQe(r.length)}function pr(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 Zhn(e){rrt();var t;return att(Zte,e)||(t=new cHe,t.a=e,Qde(Zte,e,t)),l(Ko(Zte,e),642)}function vl(e){var t,r,o,a;return a=e,o=0,a<0&&(a+=nm,o=Ep),r=bo(a/fT),t=bo(a-r*fT),Ua(t,r,o)}function qht(e,t){var r;return r=e.a.get(t),r===void 0?++e.d:(rrn(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 Gnt(r))),e}function Qhn(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,vr(o,a)):r}function _ge(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Yhe(e,t)}function epn(e){return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:EW(e)}function tpn(e,t){var r;try{t.be()}catch(o){if(o=ui(o),se(o,81))r=o,Rt(e.c,r);else throw Y(o)}}function npn(e,t){var r;t.Tg("Edge and layer constraint edge reversal",1),r=NTn(e),lNn(r),t.Ug()}function rpn(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(),Vt)?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 xge(e,t,r,o,a){Tpt.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 Vht(e,t){e.c&&(Ryt(e,t,!0),ei(new vt(null,new St(t,16)),new _Je(e))),Ryt(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 Wht(e){e.r=new pi,e.w=new pi,e.t=new je,e.i=new je,e.d=new pi,e.a=new wS,e.c=new hn}function A0(){A0=K,eL=new s8("UP",0),QD=new s8(DX,1),oee=new s8(hT,2),see=new s8(pT,3)}function Dj(){Dj=K,m_e=new Hq("EQUALLY",0),Vte=new Hq("NORTH",1),w_e=new Hq("NORTH_SOUTH",2)}function __(){__=K,Zee=new jq("ONE_SIDED",0),Qee=new jq("TWO_SIDED",1),uL=new jq("OFF",2)}function Kht(){Kht=K,ODt=yn((Uc(),Z(X(n3e,1),Ce,267,0,[Tk,QL,fU,C4,hU,gU,pU,Cre,ZL])))}function Yht(){Yht=K,EDt=yn((_y(),Z(X(Go,1),Ce,96,0,[ad,Ip,cd,ld,Rh,Il,ku,ud,Cl])))}function Jht(){Jht=K,BNt=yn((tD(),Z(X(JSe,1),Ce,268,0,[$ee,YSe,Uee,Hee,Bee,zee,cL,Fee,jee])))}function Xht(){Xht=K,zIt=yn((rD(),Z(X(i_e,1),Ce,269,0,[Pte,t_e,n_e,Lte,e_e,r_e,_B,Dte,Mte])))}function Xl(){Xl=K,Gy=new l8(px,0),qx=new l8(hT,1),Vx=new l8(pT,2),_ee=new l8("TOP",3)}function Lj(){Lj=K,Xte=new Vq("OFF",0),ck=new Vq("SINGLE_EDGE",1),iv=new Vq("MULTI_EDGE",2)}function x6(){x6=K,eU=new Yle("MINIMUM_SPANNING_TREE",0),Oke=new Yle("MAXIMUM_SPANNING_TREE",1)}function ipn(e,t,r){var o,a;a=l(F(e,(Ue(),as)),79),a&&(o=new Lc,KK(o,0,a),fy(o,r),wo(t,o))}function kge(e){var t;return t=l(F(e,(Ie(),Hs)),64),e.k==(Ht(),yi)&&(t==(He(),Wt)||t==Qt)}function opn(e){var t;if(e){if(t=e,t.dc())throw Y(new vs);return t.Xb(t.gc()-1)}return Lct(e.Jc())}function OK(e,t,r,o){return r==1?(!e.n&&(e.n=new ke(Rs,e,1,7)),xo(e.n,t,o)):Wbe(e,t,r,o)}function k6(e,t){var r,o;return o=(r=new jG,r),Ma(o,t),Tn((!e.A&&(e.A=new dc(Ka,e,7)),e.A),o),o}function spn(e,t,r){var o,a,u,f;return u=null,f=t,a=m0(f,fQ),o=new snt(e,r),u=(Nbt(o.a,o.b,a),a),u}function Mj(e,t,r){var o,a,u,f;f=ji(e),o=f.d,a=f.c,u=e.n,t&&(u.a=u.a-o.b-a.a),r&&(u.b=u.b-o.d-a.b)}function apn(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&Hc,o&Hc,a&Ep)}function Zht(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&Hc,o&Hc,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 DK(e){var t;return(!e.a||!(e.Bb&1)&&e.a.Sh())&&(t=Sl(e),se(t,160)&&(e.a=l(t,160))),e.a}function ui(e){var t;return se(e,81)?e:(t=e&&e.__java$exception,t||(t=new Gpt(e),vZe(t)),t)}function LK(e){if(se(e,196))return l(e,127);if(e)return null;throw Y(new cS(dAt))}function Qht(e){switch(e.g){case 0:return new Yze;case 1:return new Jze;case 2:default:return null}}function Nge(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new Rpe(e.f.f),e.a.Ob())}function ept(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(gr(t,Uj(e)))return!0;return!1}function tpt(e,t){return!e||!t||e==t?!1:t1t(e.d.c,t.d.c+t.d.b)&&t1t(t.d.c,e.d.c+e.d.b)}function cpn(){return JP(),sf?new VW(null):j0t(zhn(),"com.google.common.base.Strings")}function li(e,t){var r,o;return r=t.Nc(),o=r.length,o==0?!1:(Pfe(e.c,e.c.length,r),!0)}function upn(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 Lge(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Yw(t,o));return e.Qi()&&(r=gct(e,r)),e.Ci(t,r)}function Spn(e,t){var r,o;return r=l(l(Ut(e.g,t.a),49).a,68),o=l(l(Ut(e.g,t.b),49).a,68),cvt(r,o)}function k_(e){var t,r,o;return t=~e.l+1&Hc,r=~e.m+(t==0?1:0)&Hc,o=~e.h+(t==0&&r==0?1:0)&Ep,Ua(t,r,o)}function Tpn(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]=rmn(o,e);return r}function fpt(e,t){var r,o,a,u;for(r=!1,o=e.a[t].length,u=0;ue.f,r=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||r}function 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 wpt(e,t,r){var o,a;return o=new nK(t,r),a=new Yt,e.b=Gwt(e,e.b,o,a),a.b||++e.c,e.b.b=!1,a.d}function ypt(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 Fge(e){var t;if(e<0)return Zi;if(e==0)return 0;for(t=BC;!(t&e);t>>=1);return t}function Apn(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+ift(e))}function $ge(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=Sl(e),se(t,89)&&(e.c=l(t,29))),e.c}function m1(e){var t,r;for(r=new V(e.a.b);r.a1||t>=0&&e.b<3)}function Cpn(e,t,r){return!BA(dr(new vt(null,new St(e.c,16)),new RA(new Ytt(t,r)))).zd((_b(),TT))}function UK(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 HK(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 Tpt(e,t,r,o){this.b=new hn,this.g=new hn,this.d=(rC(),xB),this.c=e,this.e=t,this.d=r,this.a=o}function Apt(e,t,r){e.g=iJ(e,t,(He(),Qt),e.b),e.d=iJ(e,r,Qt,e.b),!(e.g.c==0||e.d.c==0)&&dmt(e)}function _pt(e,t,r){e.g=iJ(e,t,(He(),Wt),e.j),e.d=iJ(e,r,Wt,e.j),!(e.g.c==0||e.d.c==0)&&dmt(e)}function Ipn(e,t,r,o,a){var u;return u=Ime(e,t),r&&$K(u),a&&(e=umn(e,t),o?D1=k_(e):D1=Ua(e.l,e.m,e.h)),u}function Rpn(e,t,r,o,a){var u,f;if(f=e.length,u=r.length,t<0||o<0||a<0||t+a>f||o+a>u)throw Y(new Iue)}function xpt(e,t){HO(e>=0,"Negative initial capacity"),HO(t>=0,"Non-positive load factor"),Zs(this)}function N_(){N_=K,$Se=new C$e,BSe=new I$e,ENt=new R$e,vNt=new O$e,yNt=new D$e,FSe=(Mt(yNt),new We)}function eC(){eC=K,H_e=new Kq(_d,0),ene=new Kq("MIDDLE_TO_MIDDLE",1),kL=new Kq("AVOID_OVERLAP",2)}function zge(e,t,r){switch(t){case 0:!e.o&&(e.o=new pc((Qs(),Dh),Rg,e,0)),Ij(e.o,r);return}sJ(e,t,r)}function Opn(e,t){switch(t.g){case 0:se(e.b,638)||(e.b=new Uht);break;case 1:se(e.b,639)||(e.b=new $ot)}}function kpt(e){switch(e.g){case 0:return new sGe;default:throw Y(new jt($7+(e.f!=null?e.f:""+e.g)))}}function Npt(e){switch(e.g){case 0:return new oGe;default:throw Y(new jt($7+(e.f!=null?e.f:""+e.g)))}}function Cpt(e){switch(e.g){case 0:return new cGe;default:throw Y(new jt(IZ+(e.f!=null?e.f:""+e.g)))}}function Ipt(e){switch(e.g){case 0:return new uGe;default:throw Y(new jt(IZ+(e.f!=null?e.f:""+e.g)))}}function Rpt(e){switch(e.g){case 0:return new tGe;default:throw Y(new jt(IZ+(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 Gge(e){var t,r,o;for(t=new Lc,o=An(e,0);o.b!=o.d.c;)r=l(Sn(o),8),WA(t,0,new To(r));return t}function lg(e){var t,r;for(t=0,r=0;ro?1:0}function Opt(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 mE(e,t){var r,o,a,u,f;for(o=t,a=0,u=o.length;a=e.b.c.length||(Wge(e,2*t+1),r=2*t+2,r0&&(t.Ad(r),r.i&&gbn(r))}function Kge(e,t,r){var o;for(o=r-1;o>=0&&e[o]===t[o];o--);return o<0?0:kq(Gi(e[o],Bo),Gi(t[o],Bo))?-1:1}function Upn(e,t){var r;return!e||e==t||!br(t,(Ie(),tw))?!1:(r=l(F(t,(Ie(),tw)),9),r!=e)}function wE(e,t,r){var o,a;return a=(o=new iq,o),Yo(a,t,r),Tn((!e.q&&(e.q=new ke(Dl,e,11,10)),e.q),a),a}function qK(e,t){var r,o;return o=l(qt(e.a,4),131),r=we(Fre,EQ,420,t,0,1),o!=null&&ca(o,0,r,0,o.length),r}function VK(e){var t,r,o,a;for(a=$en(KDt,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 SZe)}function Wpn(e,t,r){if(t<0)throw Y(new Ia(bTt+t));tt)throw Y(new jt(a7+e+C2t+t));if(e<0||t>r)throw Y(new ele(a7+e+mwe+t+pwe+r))}function Bpt(e){if(!e.a||!(e.a.i&8))throw Y(new ts("Enumeration class expected for layout option "+e.f))}function Upt(e){pct.call(this,"The given string does not match the expected format for individual spacings.",e)}function Hpt(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 GV(),VEe;case 1:return new nS(r0t(new fS(e)));default:return new gQe(e)}}function zpt(e){switch(e.gc()){case 0:return GV(),VEe;case 1:return new nS(e.Jc().Pb());default:return new Ale(e)}}function Xge(e){var t;return t=(!e.a&&(e.a=new ke(Op,e,9,5)),e.a),t.i!=0?Pen(l(ie(t,0),691)):null}function Kpn(e,t){var r;return r=_o(e,t),kq(jW(e,t),0)|N8(jW(e,r),0)?r:_o(wD,jW(Rb(r,63),1))}function Zge(e,t,r){var o,a;return oy(t,e.c.length),o=r.Nc(),a=o.length,a==0?!1:(Pfe(e.c,t,o),!0)}function Ypn(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 Jpn(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 gy(e){var t;++e.j,e.i==0?e.g=null:e.ia&&(Mbt(t.q,a),o=r!=t.q.d)),o}function Jpt(e,t){var r,o,a,u,f,p,m,y;return m=t.i,y=t.j,o=e.f,a=o.i,u=o.j,f=m-a,p=y-u,r=b.Math.sqrt(f*f+p*p),r}function Xpt(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 rgn(e,t){var r,o;for(o=Bc(e.d,1)!=0,r=!0;r;)r=!1,r=t.c.kg(t.e,o),r=r|oD(e,t,o,!1),o=!o;wge(e)}function e1e(e,t){var r,o;return o=nF(e),o||(r=($J(),rwt(t)),o=new fZe(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 ign(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,Oe(t)}function ogn(e){var t,r;if(e==null)return!1;for(t=0,r=e.length;tD7?e-r>D7:r-e>D7}function Ea(e,t){var r;return gs(e)&&gs(t)&&(r=e-t,!isNaN(r))?r:gbe(gs(e)?vl(e):e,gs(t)?vl(t):t)}function cgn(e,t,r){var o;o=new k0t(e,t),yt(e.r,t.$f(),o),r&&!k3(e.u)&&(o.c=new sct(e.d),La(t.Pf(),new EYe(o)))}function XK(e){var t;return t=new hde(e.a),qs(t,e),Te(t,(Ie(),wr),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function ugn(e){var t;return t=D8(w4t),l(F(e,(Ie(),xa)),24).Gc(($o(),Qx))&&$n(t,(Vi(),la),(Xi(),j$)),t}function lgn(e){var t,r,o,a;for(a=new pi,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 dgn(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 y1(e,t){var r,o,a,u;return u=(a=e?nF(e):null,Kmt((o=t,a&&a.El(),o))),u==t&&(r=nF(e),r&&r.El()),u}function n1e(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 tgt(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 ngt(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 fgn(e,t,r,o){var a,u;for(u=e.Jc();u.Ob();)a=l(u.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 hgn(e,t,r,o,a,u,f,p){var m;for(m=r;u=o||t0&&(r=l(ze(e.a,e.a.c.length-1),572),Vge(r,t))||Fe(e.a,new ylt(t))}function cgt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ade(r,new j7e),w0t(r,t))}function ugt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ade(r,new F7e),w0t(r,t))}function Oe(e){var t,r;return e>-129&&e<128?(Fot(),t=e+128,r=r2e[t],!r&&(r=r2e[t]=new uue(e)),r):new uue(e)}function D_(e){var t,r;return e>-129&&e<128?(Vot(),t=e+128,r=a2e[t],!r&&(r=a2e[t]=new aue(e)),r):new aue(e)}function lgt(e){var t;return t=new Qg,t.a+="VerticalSegment ",ba(t,e.e),t.a+=" ",zn(t,_de(new bq,new V(e.k))),t.a}function wgn(e){hu();var t,r;t=e.d.c-e.e.c,r=l(e.g,157),La(r.b,new iJe(t)),La(r.c,new oJe(t)),lo(r.i,new sJe(t))}function ygn(e){var t;return t=l(Wd(e.c.c,""),236),t||(t=new LS(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: ",Wo(t,e.zb),t.a+=")",t.a)}function s1e(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 QK(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(),Nc))!=null?1:0;return r}function vE(e,t,r){var o,a,u;for(o=0,u=An(e,0);u.b!=u.d.c&&(a=ce(le(Sn(u))),!(a>r));)a>=t&&++o;return o}function vgn(e,t,r){var o,a;return o=new up(e.e,3,13,null,(a=t.c,a||(_t(),bf)),gg(e,t),!1),r?r.lj(o):r=o,r}function Egn(e,t,r){var o,a;return o=new up(e.e,4,13,(a=t.c,a||(_t(),bf)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function a1e(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=se(t,89)?new Ant(e,l(t,29)):new nut(e,l(t,160))),o}function D6(e,t,r){var o;e.Zi(e.i+1),o=e.Xi(t,r),t!=e.i&&ca(e.g,t,e.g,t+1,e.i-t),ii(e.g,t,o),++e.i,e.Ki(t,r),e.Li()}function Sgn(e,t){var r;e.c=t,e.a=w1n(t),e.a<54&&(e.f=(r=t.d>1?cut(t.a[0],t.a[1]):cut(t.a[0],0),$b(t.e>0?r:cg(r))))}function Tgn(e,t){var r;return t.a&&(r=t.a.a.length,e.a?zn(e.a,e.b):e.a=new fu(e.d),gut(e.a,t.a,t.d.length,r)),e}function Agn(e,t){var r,o,a,u;if(t.cj(e.a),u=l(qt(e.a,8),2014),u!=null)for(r=u,o=0,a=r.length;or)throw Y(new Ia(a7+e+mwe+t+", size: "+r));if(e>t)throw Y(new jt(a7+e+C2t+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)&&pr(e,new Vl(e,1,2,r,t))}function l1e(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,8,r,t))}function d1e(e,t){var r;r=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&pr(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)&&pr(e,new Vl(e,1,3,r,t))}function zj(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,8,r,t))}function xgn(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?Cbe(r,o):r=o),r}function pgt(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (source: ",Wo(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 ggt(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 kgn(e){t7();var t,r,o,a;for(r=yY(),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 mgt(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 f1e(e){var t,r;return t=e.k,t==(Ht(),yi)?(r=l(F(e,(Ie(),Hs)),64),r==(He(),Vt)||r==dn):!1}function wgt(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 Ngn(e,t,r){var o,a,u;return u=(a=Y_(e.b,t),a),u&&(o=l(JF(h6(e,u),""),29),o)?Pme(e,o,t,r):null}function eY(e,t,r){var o,a,u;return u=(a=Y_(e.b,t),a),u&&(o=l(JF(h6(e,u),""),29),o)?jme(e,o,t,r):null}function aC(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Yw(t,o));if(e.Qi()&&e.Gc(r))throw Y(new jt(GD));e.Ei(t,r)}function Cgn(e,t){t.Tg("Sort end labels",1),ei(dr(bs(new vt(null,new St(e.b,16)),new E7e),new S7e),new T7e),t.Ug()}function Si(){Si=K,hf=new TO(qC,0),fs=new TO(pT,1),cs=new TO(hT,2),ff=new TO(DX,3),il=new TO("UP",4)}function M6(){M6=K,YB=new tV("P1_STRUCTURE",0),JB=new tV("P2_PROCESSING_ORDER",1),XB=new tV("P3_EXECUTION",2)}function ygt(){ygt=K,DRt=Pf(Pf(ZN(Pf(Pf(ZN($n(new ci,(JS(),e4),(IC(),Qte)),t4),F_e),B_e),n4),L_e),U_e)}function Ign(e){var t,r,o;for(t=new je,o=new V(e.b);o.a=0?E1(e):I3(E1(cg(e))))}function Sgt(e,t,r,o,a,u){this.e=new je,this.f=(Fo(),YI),Fe(this.e,e),this.d=t,this.a=r,this.b=o,this.f=a,this.c=u}function Mgn(e){var t;if(!e.a)throw Y(new ts("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Dat(e,t),Lat(e,t)}function Tgt(e){var t;return t=Qhe(e),d3(t.a,0)?($w(),$w(),JQ):($w(),new TV(xq(t.a,0)?Epe(t)/$b(t.a):0))}function Pgn(e,t){var r;if(r=iD(e,t),se(r,336))return l(r,38);throw Y(new jt(O1+t+"' is not a valid attribute"))}function vr(e,t){return et?1:e==t?e==0?vr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function cC(e,t,r){var o,a;return e.Nj()?(a=e.Oj(),o=uJ(e,t,r),e.Hj(e.Gj(7,Oe(r),o,t,a)),o):uJ(e,t,r)}function tY(e,t){var r,o,a;e.d==null?(++e.e,--e.f):(a=t.jd(),r=t.yi(),o=(r&ar)%e.d.length,kdn(e,o,lwt(e,o,r,a)))}function L_(e,t){var r;r=(e.Bb&Tl)!=0,t?e.Bb|=Tl:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,10,r,t))}function M_(e,t){var r;r=(e.Bb&Dy)!=0,t?e.Bb|=Dy:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,12,r,t))}function P_(e,t){var r;r=(e.Bb&yc)!=0,t?e.Bb|=yc:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&pr(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)&&pr(e,new Vl(e,1,11,r,t))}function jgn(e,t){var r;return r=vr(e.b.c,t.b.c),r!=0||(r=vr(e.a.a,t.a.a),r!=0)?r:vr(e.a.b,t.a.b)}function qj(e){var t,r;return r=l(F(e,(Ue(),xu)),87),r==(Si(),hf)?(t=ce(le(F(e,cB))),t>=1?fs:ff):r}function Fgn(e){var t,r;for(r=iwt(mu(e)).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return Jln((ott(),sLt),t);return null}function $gn(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 Bgn(e,t,r){var o,a;for(a=se(t,104)&&l(t,20).Bb&Io?new cV(t,e):new A_(t,e),o=0;o>10)+TD&Ti,t[1]=(e&1023)+56320&Ti,Mf(t,0,t.length)}function m1e(e,t){var r;r=(e.Bb&Io)!=0,t?e.Bb|=Io:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,20,r,t))}function w1e(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&pr(e,new Vl(e,1,18,r,t))}function rY(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&pr(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)&&pr(e,new Vl(e,1,16,r,t))}function y1e(e,t,r){var o;return o=0,t&&(tE(e.a)?o+=t.f.a/2:o+=t.f.b/2),r&&(tE(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 iY(e,t,r){var o,a;return o=(t1(),a=new m9,a),bj(o,t),gj(o,r),e&&Tn((!e.a&&(e.a=new Ei(Iu,e,5)),e.a),o),o}function Ggn(e,t,r){var o;o=r,!o&&(o=Dfe(new sS,0)),o.Tg(rSt,2),D1t(e.b,t,o.dh(1)),qxn(e,t,o.dh(1)),qNn(t,o.dh(1)),o.Ug()}function ks(e,t){var r;return e.i||dme(e),r=l(Ko(e.g,t),49),r?new Rf(e.j,l(r.a,15).a,l(r.b,15).a):(At(),At(),Ro)}function _o(e,t){var r;return gs(e)&&gs(t)&&(r=e+t,SD34028234663852886e22?Kr:t<-34028234663852886e22?Li:t}function Lf(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 Kgn(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 Ygn(e){return WK(),Lt(),!!(Cgt(l(e.a,84).j,l(e.b,87))||l(e.a,84).d.e!=0&&Cgt(l(e.a,84).j,l(e.b,87)))}function sY(){jbe();var e,t,r;r=nCn+++Date.now(),e=bo(b.Math.floor(r*_D))&s7,t=bo(r-e*hwe),this.a=e^1502,this.b=t^kX}function xgt(e,t,r,o,a){frt(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 v1e(e,t){e.n.c.length==0&&Fe(e.n,new PP(e.s,e.t,e.i)),Fe(e.b,t),ebe(l(ze(e.n,e.n.c.length-1),211),t),hvt(e,t)}function Jgn(e,t,r){var o;r.Tg("Straight Line Edge Routing",1),r.bh(t,mve),o=l(ve(t,(cE(),d2)),19),kvt(e,o),r.bh(t,P7)}function lt(e){var t,r,o,a;return r=(t=l(md((o=e.Pm,a=o.f,a==bn?o:a)),10),new Hu(t,l(Gl(t,t.length),10),0)),Jl(r,e),r}function Xgn(e){var t,r;for(r=AEn(mu(iy(e))).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return Xln((stt(),aLt),t);return null}function aY(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 kgt(e){var t,r,o,a;for(t=new Ait(e.Pd().gc()),a=0,o=BS(e.Pd().Jc());o.Ob();)r=o.Pb(),Fan(t,r,Oe(a++));return Nyn(t.a)}function Zgn(e){var t,r,o;for(r=0,o=e.length;rt){sut(r);break}}vP(r,t)}function e1n(e,t){var r,o,a;o=dE(t),a=ce(le(wy(o,(Ue(),od)))),r=b.Math.max(0,a/2-.5),bC(t,r,1),Fe(e,new xtt(t,r))}function st(e,t){var r,o,a,u,f;if(r=t.f,Jb(e.c.d,r,t),t.g!=null)for(a=t.g,u=0,f=a.length;ut&&o.Le(e[u-1],e[u])>0;--u)f=e[u],ii(e,u,e[u-1]),ii(e,u-1,f)}function Xu(e,t,r,o){if(t<0)Ume(e,r,o);else{if(!r.pk())throw Y(new jt(O1+r.ve()+iI));l(r,69).uk().Ak(e,e.ei(),t,o)}}function n1n(e,t){var r;if(r=iD(e.Ah(),t),se(r,104))return l(r,20);throw Y(new jt(O1+t+"' is not a valid reference"))}function ms(e){var t;return Array.isArray(e)&&e.Rm===fe?Ab(ru(e))+"@"+(t=Rr(e)>>>0,t.toString(16)):e.toString()}function r1n(e,t){return e.h==ED&&e.m==0&&e.l==0?(t&&(D1=Ua(0,0,0)),Hnt((m_(),XEe))):(t&&(D1=Ua(e.l,e.m,e.h)),Ua(0,0,0))}function i1n(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Cgt(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function E1e(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 u1e(e,t,r,o)}function Wj(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 o1n(e){return e.e==null?e:(!e.c&&(e.c=new wJ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function s1n(e){return e.k!=(Ht(),Xr)?!1:hE(new vt(null,new ey(new Ft(Gt(Or(e).a.Jc(),new D)))),new HBe)}function $c(e){var t;if(e.b){if($c(e.b),e.b.d!=e.c)throw Y(new $u)}else e.d.dc()&&(t=l(e.f.c.xc(e.e),18),t&&(e.d=t))}function a1n(e){Ww();var t,r,o,a;for(t=e.o.b,o=l(l(yr(e.r,(He(),dn)),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a=r.e,a.b+=t}function c1n(e,t){var r,o,a;for(o=BTn(e,t),a=o[o.length-1]/2,r=0;r=a)return t.c+r;return t.c+t.b.gc()}function S1e(e,t,r,o,a){var u,f,p;for(f=a;t.b!=t.c;)u=l(CS(t),9),p=l(ks(u,o).Xb(0),12),e.d[p.p]=f++,Rt(r.c,p);return f}function uC(e){var t;this.a=(t=l(e.e&&e.e(),10),new Hu(t,l(Gl(t,t.length),10),0)),this.b=we(Ri,It,1,this.a.a.length,5,1)}function T1e(e){dY(),this.c=Wl(Z(X(ECn,1),It,837,0,[UIt])),this.b=new hn,this.a=e,Jn(this.b,AB,1),La(HIt,new TXe(this))}function iu(){iu=K,gL=new bO(_d,0),LI=new bO("FIRST",1),xp=new bO(ySt,2),MI=new bO("LAST",3),gm=new bO(vSt,4)}function lC(){lC=K,kI=new d8("LAYER_SWEEP",0),GSe=new d8("MEDIAN_LAYER_SWEEP",1),aL=new d8(zX,2),qSe=new d8(_d,3)}function Kj(){Kj=K,Fxe=new Zq("ASPECT_RATIO_DRIVEN",0),One=new Zq("MAX_SCALE_DRIVEN",1),jxe=new Zq("AREA_DRIVEN",2)}function Yj(){Yj=K,Rre=new A8(ive,0),c3e=new A8("GROUP_DEC",1),l3e=new A8("GROUP_MIXED",2),u3e=new A8("GROUP_INC",3)}function gp(){gp=K,_re=new E8(qC,0),GL=new E8("POLYLINE",1),Ek=new E8("ORTHOGONAL",2),WT=new E8("SPLINES",3)}function A1e(){A1e=K,p6t=new lr(Jve),jke=(GP(),Kne),h6t=new ht(Xve,jke),f6t=new ht(Zve,50),d6t=new ht(Qve,(Lt(),!0))}function u1n(e){var t,r,o,a,u;return u=Fbe(e),r=aO(e.c),o=!r,o&&(a=new Eb,Kl(u,"knownLayouters",a),t=new QXe(a),lo(e.c,t)),u}function _1e(e,t){var r,o,a,u,f,p;for(o=0,r=0,u=t,f=0,p=u.length;f0&&(o+=a,++r);return r>1&&(o+=e.d*(r-1)),o}function x1e(e){var t,r,o;for(o=new Xp,o.a+="[",t=0,r=e.gc();t0&&(Jt(t-1,e.length),e.charCodeAt(t-1)==58)&&!cY(e,O4,D4))}function k1e(e,t){var r;return me(e)===me(t)?!0:se(t,92)?(r=l(t,92),e.e==r.e&&e.d==r.d&&edn(e,r.a)):!1}function WS(e){switch(He(),e.g){case 4:return Vt;case 1:return Qt;case 3:return dn;case 2:return Wt;default:return Is}}function d1n(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(),E2e}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 Igt(e,t){JA();var r,o,a,u;for(o=ydt(e),a=t,g_(o,0,o.length,a),r=0;r3;)a*=10,--u;e=(e+(a>>1))/a|0}return o.i=e,!0}function w1n(e){var t,r,o;return e.e==0?0:(t=e.d<<5,r=e.a[e.d-1],e.e<0&&(o=Iht(e),o==e.d-1&&(--r,r=r|0)),t-=Q6(r),t)}function y1n(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 A1n(e,t,r){var o,a;return o=ce(e.p[t.i.p])+ce(e.d[t.i.p])+t.n.b+t.a.b,a=ce(e.p[r.i.p])+ce(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&ar)%e.d.length,r=lwt(e,a,o,t),r!=-1):!1}function Xj(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&ar)%e.d.length,r=yme(e,a,o,t),r)?r.kd():null}function Ugt(e,t){var r,o,a;return se(t,45)?(r=l(t,45),o=r.jd(),a=by(e.Pc(),o),rp(a,r.kd())&&(a!=null||e.Pc()._b(o))):!1}function Pa(e,t,r){var o,a,u;return e.Nj()?(o=e.i,u=e.Oj(),D6(e,o,t),a=e.Gj(3,null,t,o,u),r?r.lj(a):r=a):D6(e,e.i,t),r}function I1n(e,t,r){var o,a;return o=new up(e.e,4,10,(a=t.c,se(a,89)?l(a,29):(_t(),Ml)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function R1n(e,t,r){var o,a;return o=new up(e.e,3,10,null,(a=t.c,se(a,89)?l(a,29):(_t(),Ml)),gg(e,t),!1),r?r.lj(o):r=o,r}function Hgt(e){vy();var t;return(e.q?e.q:(At(),At(),xh))._b((Ue(),ow))?t=l(F(e,ow),205):t=l(F(ji(e),zI),205),t}function E1(e){jf();var t,r;return r=On(e),t=On(Rb(e,32)),t!=0?new hut(r,t):r>10||r<0?new ap(1,r):cxt[r]}function zgt(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 Ggt(e,t,r){Lft(),qZe.call(this),this.a=Xw(Rxt,[Pe,vwe],[599,219],0,[m$,ree],2),this.c=new wS,this.g=e,this.f=t,this.d=r}function qgt(e){this.e=we(Rn,Qn,30,e.length,15,1),this.c=we(cc,Ad,30,e.length,16,1),this.b=we(cc,Ad,30,e.length,16,1),this.f=0}function O1n(e){var t,r;for(e.j=we(Ki,Xo,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),Dwn(o,e.a,r,t),u=new Ob(e.e,a,o),F3(u),u}function $_(e,t,r){var o,a,u;for(a=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o>=0?u=u.a[1]:(a=u,u=u.a[0])}return a}function B6(e,t,r){var o,a,u;for(a=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o<=0?u=u.a[0]:(a=u,u=u.a[1])}return a}function Jgt(e,t,r){var o,a,u,f;for(a=l(Ut(e.b,r),172),o=0,f=new V(t.j);f.a0?(b.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function su(){su=K,XL=new T8("PORTS",0),xm=new T8("PORT_LABELS",1),JL=new T8("NODE_LABELS",2),gv=new T8("MINIMUM_SIZE",3)}function bp(){bp=K,U1=new h8(_d,0),p_e=new h8("NODES_AND_EDGES",1),Hte=new h8("PREFER_EDGES",2),zte=new h8("PREFER_NODES",3)}function $1n(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 F1e(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 t1t(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 $1e(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 B1e(e,t,r,o,a,u){this.a=e,this.c=t,this.b=r,this.f=o,this.d=a,this.e=u,this.c>0&&this.b>0&&(this.g=aP(this.c,this.b,this.a))}function B1n(e,t){var r=e.a,o;t=String(t),r.hasOwnProperty(t)&&(o=r[t]);var a=(jK(),qQ)[typeof o],u=a?a(o):i1e(typeof o);return u}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=Rmt(e),t=null;e.c==2;)fr(e),t||(t=(hr(),hr(),new b3(2)),em(t,r),r=t),r.Hm(Rmt(e));return r}function eF(e,t){var r,o,a;return e.Zj(),o=t==null?0:Rr(t),a=(o&ar)%e.d.length,r=yme(e,a,o,t),r?(Xft(e,r),r.kd()):null}function n1t(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 U1n(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 ts("Did not call before(...) or after(...) before calling add(...)."));return Pde(e,e.a,t),e}function i1t(e,t){var r,o,a;if(e.c)Ub(e.c,t);else for(r=t-eu(e),a=new V(e.a);a.a=u?(Jpn(e,t),-1):(Ypn(e,t),1)}function G1n(e,t){var r,o;for(r=(Jt(t,e.length),e.charCodeAt(t)),o=t+1;ot.e?1:e.ft.f?1:Rr(e)-Rr(t)}function s1t(e,t){var r;return me(t)===me(e)?!0:!se(t,24)||(r=l(t,24),r.gc()!=e.gc())?!1:e.Hc(r)}function tF(e,t){return Mt(e),t==null?!1:wt(e,t)?!0:e.length==t.length&&wt(e.toLowerCase(),t.toLowerCase())}function yy(e){var t,r;return Ea(e,-129)>0&&Ea(e,128)<0?(qot(),t=On(e)+128,r=i2e[t],!r&&(r=i2e[t]=new lue(e)),r):new lue(e)}function YS(){YS=K,TI=new c8(_d,0),W2e=new c8("INSIDE_PORT_SIDE_GROUPS",1),mee=new c8("GROUP_MODEL_ORDER",2),wee=new c8(FX,3)}function nF(e){var t,r,o;if(o=e.Gh(),!o)for(t=0,r=e.Mh();r;r=r.Mh()){if(++t>TX)return r.Nh();if(o=r.Gh(),o||r==e)break}return o}function W1n(e){var t;return e.b||fen(e,(t=vrn(e.e,e.a),!t||!wt(QZ,Td((!t.b&&(t.b=new Zc((_t(),Do),zs,t)),t.b),"qualified")))),e.c}function K1n(e){var t,r;for(r=new V(e.a.b);r.a2e3&&(Z_t=e,l$=b.setTimeout(yen,10))),u$++==0?(Tfn((Yue(),KEe)),!0):!1}function obn(e,t,r){var o;(vxt?(d1n(e),!0):Ext||Txt?(GA(),!0):Sxt&&(GA(),!1))&&(o=new sot(t),o.b=r,dyn(e,o))}function mY(e,t){var r;r=!e.A.Gc((su(),xm))||e.q==(qi(),fa),e.u.Gc((xc(),Rp))?r?$Nn(e,t):vEt(e,t):e.u.Gc(Y1)&&(r?aNn(e,t):MEt(e,t))}function d1t(e){var t;me(ve(e,(_n(),p2)))===me((pp(),lU))&&(Br(e)?(t=l(ve(Br(e),p2),348),Vn(e,p2,t)):Vn(e,p2,T4))}function sbn(e,t,r){var o,a;ZY(e.e,t,r,(He(),Wt)),ZY(e.i,t,r,Qt),e.a&&(a=l(F(t,(Ie(),wr)),12),o=l(F(r,wr),12),FW(e.g,a,o))}function f1t(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 abn(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 cbn(e,t,r){var o,a,u,f;return u=t.j,f=r.j,u!=f?u.g-f.g:(o=e.f[t.p],a=e.f[r.p],o==0&&a==0?0:o==0?-1:a==0?1:vr(o,a))}function h1t(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),(Ue(),xu)),87),this.e=ce(le(oF(t,nv)))}function p1t(e){this.d=new je,this.e=new f1,this.c=we(Rn,Qn,30,(He(),Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt])).length,15,1),this.b=e}function V1e(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 ubn(e,t){var r;if(r=gE(e.o,t),r==null)throw Y(new xf("Node did not exist in input."));return qme(e,t),SJ(e,t),Mme(e,t,r),null}function g1t(e,t,r){var o,a;a=l(JO(t.f),207);try{a.kf(e,r),vhe(t.f,a)}catch(u){throw u=ui(u),se(u,102)?(o=u,Y(o)):Y(u)}}function b1t(e,t,r){var o,a,u,f,p,m;return o=null,p=H0e(W3(),t),u=null,p&&(a=null,m=B0e(p,r),f=null,m!=null&&(f=e.of(p,m)),a=f,u=a),o=u,o}function wY(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 m1t(e,t){var r,o;for(o=e.a.length,t.lengtho&&ii(t,o,null),t}function lbn(e){var t;if(e==null)return null;if(t=e2n(Ta(e,!0)),t==null)throw Y(new hq("Invalid hexBinary value: '"+e+"'"));return t}function rF(e,t,r){var o;t.a.length>0&&(Fe(e.b,new yot(t.a,r)),o=t.a.length,0o&&(t.a+=grt(we(al,Bf,30,-o,15,1))))}function w1t(e,t,r){var o,a,u;if(!r[t.d])for(r[t.d]=!0,a=new V(yE(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):cJ(e,o)):r<0?cJ(e,o):l(o,69).uk().zk(e,e.ei(),r)}function S1t(e){var t,r,o;for(o=(!e.o&&(e.o=new pc((Qs(),Dh),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(se(e.a,4)){if(t=U1e(e.a),t==null)throw Y(new ts(wTt+e.b+"'. "+mTt+(np(c5),c5.k)+nEe));return t}else return e.a}function vbn(e){var t;if(e==null)return null;if(t=WNn(Ta(e,!0)),t==null)throw Y(new hq("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=ui(r),se(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function SY(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ui(r),se(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function iF(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 oF(e,t){var r,o;return o=null,br(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 Ebn(e,t){var r;return r=l(F(e,(Ue(),as)),79),mV(t,iNt)?r?tu(r):(r=new Lc,Te(e,as,r)):r&&Te(e,as,null),r}function Sbn(e,t){var r,o,a;for(a=new Da(t.gc()),o=t.Jc();o.Ob();)r=l(o.Pb(),295),r.c==r.f?K_(e,r,r.c):Byn(e,r)||Rt(a.c,r);return a}function T1t(e,t){var r,o,a;for(r=e.o,a=l(l(yr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.e.a=_mn(o,r.a),o.e.b=r.b*ce(le(o.b.mf(w$)))}function Tbn(e,t){var r,o,a,u;return a=e.k,r=ce(le(F(e,(Ie(),nw)))),u=t.k,o=ce(le(F(t,nw))),u!=(Ht(),yi)?-1:a!=yi?1:r==o?0:rr.b)return!0}return!1}function x1t(e){var t;return t=new Qg,t.a+="n",e.k!=(Ht(),Xr)&&zn(zn((t.a+="(",t),SV(e.k).toLowerCase()),")"),zn((t.a+="_",t),z6(e)),t.a}function hC(){hC=K,a_e=new mO(ive,0),Bte=new mO(zX,1),Ute=new mO("LINEAR_SEGMENTS",2),VI=new mO("BRANDES_KOEPF",3),WI=new mO(PSt,4)}function JS(){JS=K,MB=new g8("P1_TREEIFICATION",0),e4=new g8("P2_NODE_ORDERING",1),t4=new g8("P3_NODE_PLACEMENT",2),n4=new g8(GSt,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 W1e(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}O1e(e,t)}function Vn(e,t,r){return r==null?(!e.o&&(e.o=new pc((Qs(),Dh),Rg,e,0)),eF(e.o,t)):(!e.o&&(e.o=new pc((Qs(),Dh),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=ui(o),se(o,113)?Y(new Ia("Can't get element "+t)):Y(o)}}function k1t(e,t){var r;switch(r=l(Ko(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 Ibn(e){var t;t=e.a;do t=l(en(new Ft(Gt(si(t).a.Jc(),new D))),17).c.i,t.k==(Ht(),bi)&&e.b.Ec(t);while(t.k==(Ht(),bi));e.b=ou(e.b)}function N1t(e,t){var r,o,a;for(a=e,o=new Ft(Gt(si(t).a.Jc(),new D));an(o);)r=l(en(o),17),r.c.i.c&&(a=b.Math.max(a,r.c.i.c.p));return a}function Rbn(e,t){var r,o,a;for(a=0,o=l(l(yr(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 Obn(e,t){var r,o,a;for(a=0,o=l(l(yr(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 C1t(e){var t,r,o,a;if(o=0,a=xy(e),a.c.length==0)return 1;for(r=new V(a);r.a=0?e.Ih(f,r,!0):O0(e,u,r)):l(u,69).uk().wk(e,e.ei(),a,r,o)}function Mbn(e,t,r,o){var a,u;u=t.nf((_n(),b2))?l(t.mf(b2),24):e.j,a=kgn(u),a!=(t7(),iee)&&(r&&!$1e(a)||Xbe(t2n(e,a,o),t))}function TY(e,t){return zi(e)?!!q_t[t]:e.Qm?!!e.Qm[t]:zw(e)?!!G_t[t]:Hw(e)?!!z_t[t]:!1}function Pbn(e){switch(e.g){case 1:return A0(),eL;case 3:return A0(),QD;case 2:return A0(),see;case 4:return A0(),oee;default:return null}}function jbn(e,t,r){if(e.e)switch(e.b){case 1:Kan(e.c,t,r);break;case 0:Yan(e.c,t,r)}else But(e.c,t,r);e.a[t.p][r.p]=e.c.i,e.a[r.p][t.p]=e.c.e}function R1t(e){var t,r;if(e==null)return null;for(r=we(Nh,Pe,201,e.length,0,2),t=0;tu?1:0):0}function vy(){vy=K,kB=new f8(_d,0),Fte=new f8("PORT_POSITION",1),c2=new f8("NODE_SIZE_WHERE_SPACE_PERMITS",2),a2=new f8("NODE_SIZE",3)}function mh(){mh=K,ure=new s3("AUTOMATIC",0),jL=new s3(hT,1),FL=new s3(pT,2),rU=new s3("TOP",3),tU=new s3(Swe,4),nU=new s3(px,5)}function SE(e,t,r){var o,a;if(a=e.gc(),t>=a)throw Y(new Yw(t,a));if(e.Qi()&&(o=e.bd(r),o>=0&&o!=t))throw Y(new jt(GD));return e.Vi(t,r)}function gg(e,t){var r,o,a;if(a=hbt(e,t),a>=0)return a;if(e.ml()){for(o=0;o0||e==(aq(),jQ)||t==(cq(),FQ))throw Y(new jt("Invalid range: "+$ut(e,t)))}function Y1e(e,t,r,o){Q_();var a,u;for(a=0,u=0;u0),(t&-t)==t)return bo(t*Bc(e,31)*4656612873077393e-25);do r=Bc(e,31),o=r%t;while(r-o+(t-1)<0);return bo(o)}function $bn(e,t){var r,o,a;for(r=o0(new Tb,e),a=new V(t);a.a1&&(u=$bn(e,t)),u}function Gbn(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 RY(e,t){if(e==null)throw Y(new cS("null key in entry: null="+t));if(t==null)throw Y(new cS("null value in entry: "+e+"=null"))}function $1t(e,t){var r;return r=Z(X(Ki,1),Xo,30,15,[YK(e.a[0],t),YK(e.a[1],t),YK(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function B1t(e,t){var r;return r=Z(X(Ki,1),Xo,30,15,[Bj(e.a[0],t),Bj(e.a[1],t),Bj(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function Q1e(e,t,r){AS(l(F(t,(Ue(),Zr)),103))||(upe(e,t,bg(t,r)),upe(e,t,bg(t,(He(),dn))),upe(e,t,bg(t,Vt)),At(),ki(t.j,new TJe(e)))}function U1t(e){var t,r;for(e.c||Qxn(e),r=new Lc,t=new V(e.a),q(t);t.a0&&(Jt(0,t.length),t.charCodeAt(0)==43)?(Jt(1,t.length+1),t.substr(1)):t))}function amn(e){var t;return e==null?null:new s1((t=Ta(e,!0),t.length>0&&(Jt(0,t.length),t.charCodeAt(0)==43)?(Jt(1,t.length+1),t.substr(1)):t))}function tbe(e,t,r,o,a,u,f,p){var m,y;o&&(m=o.a[0],m&&tbe(e,t,r,m,a,u,f,p),BY(e,r,o.d,a,u,f,p)&&t.Ec(o),y=o.a[1],y&&tbe(e,t,r,y,a,u,f,p))}function pC(e,t){var r,o,a,u;for(u=e.gc(),t.lengthu&&ii(t,u,null),t}function cmn(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 gmn(e){var t;for(t=0;t0?e.c:0),++a;e.b=o,e.d=u}function Q1t(e,t){var r;return r=Z(X(Ki,1),Xo,30,15,[J1e(e,(Sd(),Bs),t),J1e(e,$a,t),J1e(e,Us,t)]),e.f&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function ebt(e){var t;br(e,(Ue(),iw))&&(t=l(F(e,iw),24),t.Gc((_y(),ad))?(t.Kc(ad),t.Ec(cd)):t.Gc(cd)&&(t.Kc(cd),t.Ec(ad)))}function tbt(e){var t;br(e,(Ue(),iw))&&(t=l(F(e,iw),24),t.Gc((_y(),ld))?(t.Kc(ld),t.Ec(Il)):t.Gc(Il)&&(t.Kc(Il),t.Ec(ld)))}function jY(e,t,r,o){var a,u,f,p;return e.a==null&&gyn(e,t),f=t.b.j.c.length,u=r.d.p,p=o.d.p,a=p-1,a<0&&(a=f-1),u<=a?e.a[a]-e.a[u]:e.a[f-1]-e.a[u]+e.a[a]}function mmn(e){var t;for(t=0;t0&&(a.b+=t),a}function pF(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 rbt(e,t){var r,o;if(t.length==0)return 0;for(r=hW(e.a,t[0],(He(),Wt)),r+=hW(e.a,t[t.length-1],Qt),o=0;o>16==6?e.Cb.Qh(e,5,Dd,t):(o=Po(l(kt((r=l(qt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Tmn(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 Amn(e){var t;return t=(uht(),rxt),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 obt(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=Fge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),ght(e,t,o),e.a=t,e.b=0):jw(e.a,r),e.c=o)}function _mn(e,t){var r;return r=e.b,r.nf((_n(),zc))?r.$f()==(He(),Wt)?-r.Kf().a-ce(le(r.mf(zc))):t+ce(le(r.mf(zc))):r.$f()==(He(),Wt)?-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=EW(e),t??""+(e.c?_s(e.c.a,e,0):-1))}function gF(e){var t;return e.f.c.length!=0&&l(ze(e.f,0),70).a?l(ze(e.f,0),70).a:(t=EW(e),t??""+(e.i?_s(e.i.j,e,0):-1))}function xmn(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=u,e.b=a}function kmn(e){var t,r;if(!e.b)for(e.b=BP(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 dq(t));return e.b}function Nmn(e,t){var r,o,a;if(t.dc())return JA(),JA(),u5;for(r=new Eit(e,t.gc()),a=new tn(e);a.e!=a.i.gc();)o=rn(a),t.Gc(o)&&Tn(r,o);return r}function ibe(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pc((Qs(),Dh),Rg,e,0)),e.o):(!e.o&&(e.o=new pc((Qs(),Dh),Rg,e,0)),s6(e.o)):aF(e,t,r,o)}function $Y(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&Hc,e.m=o&Hc,e.h=a&Ep,!0)}function BY(e,t,r,o,a,u,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,u),p>0||!f&&p==0))}function Omn(e,t){N_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return aY(t,BSe)-aY(e,BSe);case 4:return aY(e,$Se)-aY(t,$Se)}return 0}function Dmn(e){switch(e.g){case 0:return qee;case 1:return Vee;case 2:return Wee;case 3:return Kee;case 4:return J$;case 5:return Yee;default:return null}}function ss(e,t,r){var o,a;return o=(a=new oq,Yb(a,t),Ma(a,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),a),a),ug(o,0),dy(o,1),pg(o,!0),hg(o,!0),o}function ZS(e,t){var r,o;if(t>=e.i)throw Y(new aV(t,e.i));return++e.j,r=e.g[t],o=e.i-t-1,o>0&&ca(e.g,t+1,e.g,t,o),ii(e.g,--e.i,null),e.Oi(t,r),e.Li(),r}function sbt(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Po(l(kt((r=l(qt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Lmn(e){var t,r,o,a;for(At(),ki(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 pbt(e,t){this.c=new hn,this.a=e,this.b=t,this.d=l(F(e,(Ie(),n2)),317),me(F(e,(Ue(),MAe)))===me((l6(),X$))?this.e=new $Ze:this.e=new FZe}function UY(e,t){var r,o;r=e.dd(t);try{return o=r.Pb(),r.Qb(),o}catch(a){throw a=ui(a),se(a,113)?Y(new Ia("Can't remove element "+t)):Y(a)}}function Umn(e,t){var r,o,a;if(o=new V9,a=new Mge(o.q.getFullYear()-N1,o.q.getMonth(),o.q.getDate()),r=$_n(e,t,a),r==0||r0?t:0),++r;return new Me(o,a)}function Gmn(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 cbe(e,t,r,o){var a,u,f,p;for(Oi(t,l(o.Xb(0),26)),p=o.hd(1,o.gc()),u=l(r.Kb(t),22).Jc();u.Ob();)a=l(u.Pb(),17),f=a.c.i==t?a.d.i:a.c.i,cbe(e,f,r,p)}function bbt(e){var t;return t=new hn,br(e,(Ie(),ute))?l(F(e,ute),93):(ei(dr(new vt(null,new St(e.j,16)),new aBe),new ZYe(t)),Te(e,ute,t),t)}function qmn(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-u0t(e,o)),cmt(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 ube(e,t){var r,o;return e.Db>>16==6?e.Cb.Qh(e,6,Ir,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(Qs(),mU)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function lbe(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,1,t5,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(Qs(),b3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function dbe(e,t){var r,o;return e.Db>>16==9?e.Cb.Qh(e,9,En,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(Qs(),w3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function mbt(e,t){var r,o;return e.Db>>16==5?e.Cb.Qh(e,9,TU,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(_t(),Dg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function wbt(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,6,Dd,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(_t(),Mg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function fbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,0,r5,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(_t(),Og)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function hbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,12,En,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(Qs(),g3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Vmn(e,t,r){var o,a,u;for(r<0&&(r=0),u=e.i,a=r;aTX)return z_(e,o);if(o==e)return!0}}return!1}function Kmn(e){switch(G8(),e.q.g){case 5:c0t(e,(He(),Vt)),c0t(e,dn);break;case 4:gwt(e,(He(),Vt)),gwt(e,dn);break;default:AEt(e,(He(),Vt)),AEt(e,dn)}}function Ymn(e){switch(G8(),e.q.g){case 5:N0t(e,(He(),Qt)),N0t(e,Wt);break;case 4:T1t(e,(He(),Qt)),T1t(e,Wt);break;default:_Et(e,(He(),Qt)),_Et(e,Wt)}}function Jmn(e){var t,r;t=l(F(e,(ed(),_kt)),15),t?(r=t.a,r==0?Te(e,(p1(),S$),new sY):Te(e,(p1(),S$),new KP(r))):Te(e,(p1(),S$),new KP(1))}function Xmn(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 Zmn(e,t){switch(e.g){case 0:return t==(iu(),xp)?H$:z$;case 1:return t==(iu(),xp)?H$:oL;case 2:return t==(iu(),xp)?oL:z$;default:return oL}}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=RZ,o=new V(e.a);o.a>16==11?e.Cb.Qh(e,10,En,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(Qs(),m3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function ybt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,11,Ol,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(_t(),Lg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function vbt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,12,Dl,t):(o=Po(l(kt((r=l(qt(e,16),29),r||(_t(),Ev)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Ebt(e,t){var r,o,a,u,f;if(t)for(a=t.a.length,r=new Ib(a),f=(r.b-r.a)*r.c<0?(i1(),tb):new a1(r);f.Ob();)u=l(f.Pb(),15),o=f_(t,u.a),o&&uwt(e,o)}function o0n(){Ele();var e,t;for(L3n((c1(),Bt)),A3n(Bt),$Y(Bt),O3e=(_t(),bf),t=new V(U3e);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,u=t.l,r-u)))}function Sbt(e,t,r){var o,a,u,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 Tbt(e){var t,r,o;if(o=e.b,Vet(e.i,o.length)){for(r=o.length*2,e.b=we($Q,yD,309,r,0,1),e.c=we($Q,yD,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),Rt(e.c,t),!0}function a0n(e,t,r){var o;o=t.c.i,o.k==(Ht(),bi)?(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 c0n(e,t,r){return r.Tg(zSt,1),M3(e.b),pu(e.b,(JS(),MB),MB),pu(e.b,e4,e4),pu(e.b,t4,t4),pu(e.b,n4,n4),e.a=FC(e.b,t),Y0n(e,t,r.dh(1)),r.Ug(),t}function G_(e,t,r){Z_();var o,a,u,f,p,m;return f=t/2,u=r/2,o=b.Math.abs(e.a),a=b.Math.abs(e.b),p=1,m=1,o>f&&(p=f/o),a>u&&(m=u/a),tp(e,b.Math.min(p,m)),e}function u0n(){VF();var e,t;try{if(t=l(_be((r1(),Ll),Lx),2092),t)return t}catch(r){if(r=ui(r),se(r,102))e=r,uhe((Cn(),e));else throw Y(r)}return new eqe}function l0n(){VF();var e,t;try{if(t=l(_be((r1(),Ll),_l),2019),t)return t}catch(r){if(r=ui(r),se(r,102))e=r,uhe((Cn(),e));else throw Y(r)}return new xqe}function d0n(){vdt();var e,t;try{if(t=l(_be((r1(),Ll),lm),2101),t)return t}catch(r){if(r=ui(r),se(r,102))e=r,uhe((Cn(),e));else throw Y(r)}return new yVe}function f0n(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,DF(e,t),r):r=ox(e,e.a,r)),r}function Abt(){V9.call(this),this.e=-1,this.a=!1,this.p=Zi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Zi}function h0n(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=vr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function p0n(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=vr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function g0n(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=vr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function bbe(){bbe=K,zkt=Ra($n($n($n(new ci,(Vi(),da),(Xi(),_Se)),da,xSe),zo,kSe),zo,pSe),qkt=$n($n(new ci,da,aSe),da,gSe),Gkt=Ra(new ci,zo,mSe)}function b0n(e){var t,r,o,a,u;for(t=l(F(e,(Ie(),RI)),93),u=e.n,o=t.Bc().Jc();o.Ob();)r=l(o.Pb(),319),a=r.i,a.c+=u.a,a.d+=u.b,r.c?tyt(r):nyt(r);Te(e,RI,null)}function m0n(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 _bt(e,t){var r,o;for(o=new V(t);o.a0&&(f=(u&ar)%e.d.length,a=yme(e,f,u,t),a)?(p=a.ld(r),p):(o=e.ak(u,t,r),e.c.Ec(o),null)}function ybe(e,t){var r,o,a,u;switch(fg(e,t).Il()){case 3:case 2:{for(r=IE(t),a=0,u=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,SD0&&(e.b+=2,e.a+=o):(e.b+=1,e.a+=b.Math.min(o,a))}function Obt(e,t){var r,o;if(o=!1,zi(t)&&(o=!0,RS(e,new ty(In(t)))),o||se(t,245)&&(o=!0,RS(e,(r=RV(l(t,245)),new S9(r)))),!o)throw Y(new fq(vEe))}function L0n(e,t,r,o){var a,u,f;return a=new up(e.e,1,10,(f=t.c,se(f,89)?l(f,29):(_t(),Ml)),(u=r.c,se(u,89)?l(u,29):(_t(),Ml)),gg(e,t),!1),o?o.lj(a):o=a,o}function Sbe(e){var t,r;switch(l(F(ji(e),(Ue(),kAe)),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 To(e.n);default:return null}}function K6(){K6=K,Z$=new i3(_d,0),rTe=new i3("LEFTUP",1),oTe=new i3("RIGHTUP",2),nTe=new i3("LEFTDOWN",3),iTe=new i3("RIGHTDOWN",4),Jee=new i3("BALANCED",5)}function M0n(e,t,r){var o,a,u;if(o=vr(e.a[t.p],e.a[r.p]),o==0){if(a=l(F(t,(Ie(),RT)),16),u=l(F(r,RT),16),a.Gc(r))return-1;if(u.Gc(t))return 1}return o}function P0n(e){switch(e.g){case 1:return new kze;case 2:return new Nze;case 3:return new xze;case 0:return null;default:throw Y(new jt(FZ+(e.f!=null?e.f:""+e.g)))}}function Tbe(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}zge(e,t,r)}function Abe(e,t,r){switch(t){case 3:Ub(e,ce(le(r)));return;case 4:Hb(e,ce(le(r)));return;case 5:va(e,ce(le(r)));return;case 6:gc(e,ce(le(r)));return}Tbe(e,t,r)}function mF(e,t,r){var o,a,u;u=(o=new oq,o),a=Zd(u,t,null),a&&a.mj(),Ma(u,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),u),ug(u,0),dy(u,1),pg(u,!0),hg(u,!0)}function _be(e,t){var r,o,a;return r=e3(e.i,t),se(r,244)?(a=l(r,244),a.wi()==null,a.ti()):se(r,496)?(o=l(r,2016),a=o.b,a):null}function j0n(e,t,r,o){var a,u;return kn(t),kn(r),u=l(S3(e.d,t),15),sft(!!u,"Row %s not in %s",t,e.e),a=l(S3(e.b,r),15),sft(!!a,"Column %s not in %s",r,e.c),opt(e,u.a,a.a,o)}function F0n(e){var t,r,o,a,u,f;for(r=null,a=e,u=0,f=a.length;u1||p==-1?(u=l(m,16),a.Wb(b1n(e,u))):a.Wb(xJ(e,l(m,57)))))}function q0n(e,t,r,o){Eet();var a=MQ;function u(){for(var f=0;f0)return!1;return!0}function K0n(e){switch(l(F(e.b,(Ue(),vAe)),382).g){case 1:ei(Oa(bs(new vt(null,new St(e.d,16)),new tUe),new nUe),new rUe);break;case 2:CTn(e);break;case 0:yvn(e)}}function Y0n(e,t,r){var o,a,u;for(o=r,!o&&(o=new sS),o.Tg("Layout",e.a.c.length),u=new V(e.a);u.aLZ)return r;a>-1e-6&&++r}return r}function yF(e,t,r){if(se(t,273))return x2n(e,l(t,74),r);if(se(t,278))return Qmn(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ls(Z(X(Ri,1),It,1,5,[t,r])))))}function vF(e,t,r){if(se(t,273))return k2n(e,l(t,74),r);if(se(t,278))return e0n(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ls(Z(X(Ri,1),It,1,5,[t,r])))))}function kbe(e,t){var r;t!=e.b?(r=null,e.b&&(r=DP(e.b,e,-4,r)),t&&(r=XS(t,e,-4,r)),r=tgt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,3,t,t))}function Pbt(e,t){var r;t!=e.f?(r=null,e.f&&(r=DP(e.f,e,-1,r)),t&&(r=XS(t,e,-1,r)),r=ngt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,0,t,t))}function ewn(e,t,r,o){var a,u,f,p;return Jc(e.e)&&(a=t.Jk(),p=t.kd(),u=r.kd(),f=l1(e,1,a,p,u,a.Hk()?nx(e,a,u,se(a,104)&&(l(a,20).Bb&Io)!=0):-1,!0),o?o.lj(f):o=f),o}function jbt(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();)Wo(o,(Tr(),In(t.Pb()))),o.a+=" ";return uV(o,o.a.length-1)}function Fbt(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();)Wo(o,(Tr(),In(t.Pb()))),o.a+=" ";return uV(o,o.a.length-1)}function twn(e,t){var r,o,a,u,f;for(u=new V(t.a);u.a0&&uo(e,e.length-1)==33)try{return t=rwt(yl(e,0,e.length-1)),t.e==null}catch(r){if(r=ui(r),!se(r,33))throw Y(r)}return!1}function iwn(e,t,r){var o,a,u;switch(o=ji(t),a=qj(o),u=new aa,As(u,t),r.g){case 1:Ii(u,P6(WS(a)));break;case 2:Ii(u,WS(a))}return Te(u,(Ue(),Zy),le(F(e,Zy))),u}function Nbe(e){var t,r;return t=l(en(new Ft(Gt(si(e.a).a.Jc(),new D))),17),r=l(en(new Ft(Gt(Or(e.a).a.Jc(),new D))),17),Ye(Ke(F(t,(Ie(),Ag))))||Ye(Ke(F(r,Ag)))}function Ey(){Ey=K,sL=new gO("ONE_SIDE",0),V$=new gO("TWO_SIDES_CORNER",1),W$=new gO("TWO_SIDES_OPPOSING",2),q$=new gO("THREE_SIDES",3),G$=new gO("FOUR_SIDES",4)}function Ubt(e,t){var r,o,a,u;for(u=new je,a=0,o=t.Jc();o.Ob();){for(r=Oe(l(o.Pb(),15).a+a);r.a=e.f)break;Rt(u.c,r)}return u}function own(e){var t,r;for(r=new V(e.e.b);r.a0&&cbt(this,this.c-1,(He(),Qt)),this.c0&&e[0].length>0&&(this.c=Ye(Ke(F(ji(e[0][0]),(Ie(),ETe))))),this.a=we(b4t,Pe,2096,e.length,0,2),this.b=we(m4t,Pe,2097,e.length,0,2),this.d=new qpt}function uwn(e){return e.c.length==0?!1:(at(0,e.c.length),l(e.c[0],17)).c.i.k==(Ht(),bi)?!0:hE(Oa(new vt(null,new St(e,16)),new $Ue),new PUe)}function Gbt(e,t){var r,o,a,u,f,p,m;for(p=xy(t),u=t.f,m=t.g,f=b.Math.sqrt(u*u+m*m),a=0,o=new V(p);o.a=0?(r=W6(e,i7),o=hY(e,i7)):(t=Rb(e,1),r=W6(t,5e8),o=hY(t,5e8),o=_o(fh(o,1),Gi(e,1))),Of(fh(o,32),Gi(r,Bo))}function Swn(e,t,r,o){var a,u,f,p,m;for(a=null,u=0,p=new V(t);p.a1;t>>=1)t&1&&(o=fE(o,r)),r.d==1?r=fE(r,r):r=new l1t(zyt(r.a,r.d,we(Rn,Qn,30,r.d<<1,15,1)));return o=fE(o,r),o}function jbe(){jbe=K;var e,t,r,o;for(y2e=we(Ki,Xo,30,25,15,1),v2e=we(Ki,Xo,30,33,15,1),o=152587890625e-16,t=32;t>=0;t--)v2e[t]=o,o*=.5;for(r=1,e=24;e>=0;e--)y2e[e]=r,r*=.5}function kwn(e){var t,r;if(Ye(Ke(ve(e,(Ue(),Jy))))){for(r=new Ft(Gt(mp(e).a.Jc(),new D));an(r);)if(t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,bm))))return!0}return!1}function Kbt(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 ou(t).Fc(r),t}function Ybt(e,t){var r,o,a;gi(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 h1t(e)),Yhn(e.i,r)))}function Nwn(e){var t,r,o,a,u;return r=e.c.d,o=r.j,a=e.d.d,u=a.j,o==u?r.p=0&&wt(e.substr(t,3),"GMT")||t>=0&&wt(e.substr(t,3),"UTC"))&&(r[0]=t+3),v0e(e,r,o)}function Iwn(e,t){var r,o,a,u,f;for(u=e.g.a,f=e.g.b,o=new V(e.d);o.ar;u--)e[u]|=t[u-r-1]>>>f,e[u-1]=t[u-r-1]<0&&ca(e.g,t,e.g,t+o,p),f=r.Jc(),e.i+=o,a=0;a>4&15,u=e[o]&15,f[a++]=y3e[r],f[a++]=y3e[u];return Mf(f,0,f.length)}function Qa(e){var t,r;return e>=Io?(t=TD+(e-Io>>10&1023)&Ti,r=56320+(e-Io&1023)&Ti,String.fromCharCode(t)+(""+String.fromCharCode(r))):String.fromCharCode(e&Ti)}function Bwn(e,t){Ww();var r,o,a,u;return a=l(l(yr(e.r,t),24),85),a.gc()>=2?(o=l(a.Jc().Pb(),116),r=e.u.Gc((xc(),k4)),u=e.u.Gc(KT),!o.a&&!r&&(a.gc()==2||u)):!1}function Qbt(e,t,r,o,a){var u,f,p;for(u=Wwt(e,t,r,o,a),p=!1;!u;)IF(e,a,!0),p=!0,u=Wwt(e,t,r,o,a);p&&IF(e,a,!1),f=PK(a),f.c.length!=0&&(e.d&&e.d.Fg(f),Qbt(e,a,r,o,f))}function TF(){TF=K,Cne=new w8("NODE_SIZE_REORDERER",0),xne=new w8("INTERACTIVE_NODE_REORDERER",1),Nne=new w8("MIN_SIZE_PRE_PROCESSOR",2),kne=new w8("MIN_SIZE_POST_PROCESSOR",3)}function AF(){AF=K,kre=new c3(_d,0),BNe=new c3("DIRECTED",1),HNe=new c3("UNDIRECTED",2),FNe=new c3("ASSOCIATION",3),UNe=new c3("GENERALIZATION",4),$Ne=new c3("DEPENDENCY",5)}function Uwn(e,t){var r;if(!Gd(e))throw Y(new ts(HTt));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 Hwn(e,t,r){var o,a,u;return o=t.Jk(),u=t.kd(),a=o.Hk()?l1(e,4,o,u,null,nx(e,o,u,se(o,104)&&(l(o,20).Bb&Io)!=0),!0):l1(e,o.rk()?2:1,o,u,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 nu(e.b,r,t),!0;nu(e.b,r,ze(e.b,o))}return nu(e.b,o,t),!0}function Bbe(e,t,r,o){var a,u;if(a=0,r)a=Bj(e.a[r.g][t.g],o);else for(u=0;u=p)}function emt(e){switch(e.g){case 0:return new Gze;case 1:return new qze;default:throw Y(new jt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function Ube(e,t,r,o){var a;if(a=!1,zi(o)&&(a=!0,e_(t,r,In(o))),a||Hw(o)&&(a=!0,Ube(e,t,r,o)),a||se(o,245)&&(a=!0,Mb(t,r,l(o,245))),!a)throw Y(new fq(vEe))}function Gwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zc((_t(),Do),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mc(),z3e).length;++o)if(wt(z3e[o],a))return o}return 0}function qwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zc((_t(),Do),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mc(),G3e).length;++o)if(wt(G3e[o],a))return o}return 0}function tmt(e,t){var r,o,a,u;if(Mt(t),u=e.a.gc(),u0?1:0;u.a[a]!=r;)u=u.a[a],a=e.a.Le(r.d,u.d)>0?1:0;u.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 Kwn(e){var t,r,o,a;for(t=new je,r=we(cc,Ad,30,e.a.c.length,16,1),ohe(r,r.length),a=new V(e.a);a.a0&&Fyt((at(0,r.c.length),l(r.c[0],26)),e),r.c.length>1&&Fyt(l(ze(r,r.c.length-1),26),e),t.Ug()}function Jwn(e){xc();var t,r;return t=xr(Rp,Z(X(dU,1),Ce,282,0,[Y1])),!(T6(MP(t,e))>1||(r=xr(k4,Z(X(dU,1),Ce,282,0,[x4,KT])),T6(MP(r,e))>1))}function zbe(e,t){var r;r=wa((r1(),Ll),e),se(r,496)?rs(Ll,e,new Snt(this,t)):rs(Ll,e,this),eJ(this,t),t==($A(),R3e)?(this.wb=l(this,2017),l(t,2019)):this.wb=(c1(),Bt)}function Xwn(e){var t,r,o;if(e==null)return null;for(t=null,r=0;ru}function omt(e,t){var r,o,a;if(qbe(e,t))return!0;for(o=new V(t);o.a=a||t<0)throw Y(new Ia(gQ+t+cm+a));if(r>=a||r<0)throw Y(new Ia(bQ+r+cm+a));return t!=r?o=(u=e.Aj(r),e.oj(t,u),u):o=e.vj(r),o}function amt(e){var t,r,o;if(o=e,e)for(t=0,r=e.Bh();r;r=r.Bh()){if(++t>TX)return amt(r);if(o=r,r==e)throw Y(new ts("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(),cp(o,me(t)===me(e)?"(this Collection)":t==null?tc:ms(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function qbe(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 T1(){T1=K,RNt=Z(X(Oo,1),ea,64,0,[(He(),Vt),Qt,dn]),INt=Z(X(Oo,1),ea,64,0,[Qt,dn,Wt]),ONt=Z(X(Oo,1),ea,64,0,[dn,Wt,Vt]),DNt=Z(X(Oo,1),ea,64,0,[Wt,Vt,Qt])}function lmt(e){var t,r,o,a,u,f,p,m,y;for(this.a=R1t(e),this.b=new je,r=e,o=0,a=r.length;oxV(e.d).c?(e.i+=e.g.c,pY(e.d)):xV(e.d).c>xV(e.g).c?(e.e+=e.d.c,pY(e.g)):(e.i+=Xot(e.g),e.e+=Xot(e.d),pY(e.g),pY(e.d))}function syn(e,t,r){var o,a,u,f;for(u=t.q,f=t.r,new Pb((vd(),H1),t,u,1),new Pb(H1,u,f,1),a=new V(r);a.ap&&(m=p/o),a>u&&(y=u/a),f=b.Math.min(m,y),e.a+=f*(t.a-e.a),e.b+=f*(t.b-e.b)}function lyn(e,t,r,o,a){var u,f;for(f=!1,u=l(ze(r.b,0),19);m_n(e,t,u,o,a)&&(f=!0,J0n(r,u),r.b.c.length!=0);)u=l(ze(r.b,0),19);return r.b.c.length==0&&q6(r.j,r),f&&hF(t.q),f}function Wbe(e,t,r,o){var a,u;return r==0?(!e.o&&(e.o=new pc((Qs(),Dh),Rg,e,0)),V8(e.o,t,o)):(u=l(kt((a=l(qt(e,16),29),a||e.fi()),r),69),u.uk().yk(e,Ha(e),r-ln(e.fi()),t,o))}function eJ(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=s1e(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,4,t,t))}function pmt(e,t){var r,o,a,u;if(t)a=fp(t,"x"),r=new LXe(e),y0(r.a,(Mt(a),a)),u=fp(t,"y"),o=new MXe(e),v0(o.a,(Mt(u),u));else throw Y(new xf("All edge sections need an end point."))}function gmt(e,t){var r,o,a,u;if(t)a=fp(t,"x"),r=new RXe(e),E0(r.a,(Mt(a),a)),u=fp(t,"y"),o=new OXe(e),S0(o.a,(Mt(u),u));else throw Y(new xf("All edge sections need a start point."))}function dyn(e,t){var r,o,a,u,f,p,m;for(o=Lpt(e),u=0,p=o.length;u>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"),qst(r,e.a),e.b&&Kme(t,r,e.b,"Exception: ",!0))}function ymt(e,t){var r,o,a,u,f;for(a=t==1?gee:pee,o=a.a.ec().Jc();o.Ob();)for(r=l(o.Pb(),87),f=l(yr(e.f.c,r),24).Jc();f.Ob();)u=l(f.Pb(),49),Fe(e.b.b,l(u.b,84)),Fe(e.b.a,l(u.b,84).d)}function vmt(e,t,r,o){var a,u,f,p,m;switch(m=e.b,u=t.d,f=u.j,p=V1e(f,m.d[f.g],r),a=mr(Ao(u.n),u.a),u.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 gyn(e,t){var r,o,a,u;for(u=t.b.j,e.a=we(Rn,Qn,30,u.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:vbe(e)/(vbe(t)*vbe(e-t))}function Kbe(e,t){var r,o,a,u;for(r=new lV(e);r.g==null&&!r.c?$he(r):r.g==null||r.i!=0&&l(r.g[r.i-1],51).Ob();)if(u=l(RF(r),57),se(u,176))for(o=l(u,176),a=0;a>4],t[r*2+1]=NU[u&15];return Mf(t,0,t.length)}function Nyn(e){var t,r,o;switch(o=e.c.length,o){case 0:return bW(),J_t;case 1:return t=l(r0t(new V(e)),45),qnn(t.jd(),t.kd());default:return r=l(Yd(e,we(dm,n7,45,e.c.length,0,1)),178),new Sle(r)}}function bg(e,t){switch(t.g){case 1:return _S(e.j,(bc(),Q2e));case 2:return _S(e.j,(bc(),X2e));case 3:return _S(e.j,(bc(),tSe));case 4:return _S(e.j,(bc(),nSe));default:return At(),At(),Ro}}function Cyn(e,t){var r,o,a;r=qon(t,e.e),o=l(Ut(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 Qrt(o))}function A1(){A1=K,rOt=(_n(),GT),iOt=Od,QRt=Am,eOt=m2,tOt=q1,ZRt=b2,Txe=v4,nOt=dv,vne=(d0e(),URt),Ene=HRt,_xe=VRt,Sne=YRt,xxe=WRt,kxe=KRt,Axe=zRt,zB=GRt,GB=qRt,RL=JRt,Nxe=XRt,Sxe=BRt}function Tmt(e,t){var r,o,a,u,f;if(e.e<=t||Iun(e,e.g,t))return e.g;for(u=e.r,o=e.g,f=e.r,a=(u-o)/2+o;o+11&&(e.e.b+=e.a)):(e.e.a+=r.a,e.e.b=b.Math.max(e.e.b,r.b),e.d.c.length>1&&(e.e.a+=e.a))}function Oyn(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 Dyn(e,t,r){var o,a,u;for(a=new Ft(Gt(Lf(r).a.Jc(),new D));an(a);)o=l(en(a),17),!fo(o)&&!(!fo(o)&&o.c.i.c==o.d.i.c)&&(u=wwt(e,o,r,new zZe),u.c.length>1&&Rt(t.c,u))}function xmt(e,t,r,o,a){if(oo&&(e.a=o),e.ba&&(e.b=a),e}function Lyn(e){if(se(e,144))return oSn(l(e,144));if(se(e,236))return u1n(l(e,236));if(se(e,21))return hyn(l(e,21));throw Y(new jt(Mx+Qd(new Ls(Z(X(Ri,1),It,1,5,[e])))))}function Myn(e,t,r,o,a){var u,f,p;for(u=!0,f=0;f>>a|r[f+o+1]<>>a,++f}return u}function Zbe(e,t,r,o){var a,u,f;if(t.k==(Ht(),bi)){for(u=new Ft(Gt(si(t).a.Jc(),new D));an(u);)if(a=l(en(u),17),f=a.c.i.k,f==bi&&e.c.a[a.c.i.c.p]==o&&e.c.a[t.c.p]==r)return!0}return!1}function Pyn(e,t,r){var o;r.Tg("YPlacer",1),e.a=ce(le(ve(t,(QS(),Fke)))),e.b=ce(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),Nwt(e,o,0)),r.Ug()}function jyn(e,t){var r,o,a,u;return t&=63,r=e.h&Ep,t<22?(u=r>>>t,a=e.m>>t|r<<22-t,o=e.l>>t|e.m<<22-t):t<44?(u=0,a=r>>>t-22,o=e.m>>t-22|e.h<<44-t):(u=0,a=0,o=r>>>t-44),Ua(o&Hc,a&Hc,u&Ep)}function kmt(e,t,r,o){var a;this.b=o,this.e=e==(Kb(),XI),a=t[r],this.d=Xw(cc,[Pe,Ad],[172,30],16,[a.length,a.length],2),this.a=Xw(Rn,[Pe,Qn],[54,30],15,[a.length,a.length],2),this.c=new Dbe(t,r)}function Fyn(e){var t,r,o;for(e.k=new qhe((He(),Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt])).length,e.j.c.length),o=new V(e.j);o.a=r)return K_(e,t,o.p),!0;return!1}function xE(e,t,r,o){var a,u,f,p,m,y;for(f=r.length,u=0,a=-1,y=gft((Jt(t,e.length+1),e.substr(t)),(DV(),m2e)),p=0;pu&&Psn(y,gft(r[p],m2e))&&(a=p,u=m);return a>=0&&(o[0]=t+u),a}function Uyn(e,t,r){var o,a,u,f,p,m,y,v;u=e.d.p,p=u.e,m=u.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?cme(e,r,"start index"):t<0||t>r?cme(t,r,"end index"):CC("end index (%s) must not be less than start index (%s)",Z(X(Ri,1),It,1,5,[Oe(t),Oe(e)]))}function Omt(e,t){var r,o,a,u;for(o=0,a=e.length;o0&&Dmt(e,u,r));t.p=0}function qyn(e){var t,r,o,a;for(t=Db(zn(new fu("Predicates."),"and"),40),r=!0,a=new LN(e);a.b=0?e.hi(a):fme(e,o);else throw Y(new jt(O1+o.ve()+iI));else throw Y(new jt(QTt+t+eAt));else Ju(e,r,o)}function Qbe(e){var t,r;if(r=null,t=!1,se(e,213)&&(t=!0,r=l(e,213).a),t||se(e,266)&&(t=!0,r=""+l(e,266).a),t||se(e,482)&&(t=!0,r=""+l(e,482).a),!t)throw Y(new fq(vEe));return r}function eme(e,t,r){var o,a,u,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 Kyn(e){var t,r,o,a;for(r=new Ar,wo(r,e.o),o=new L9;r.b!=0;)t=l(r.b==0?null:(cn(r.b!=0),Vu(r,r.a.a)),504),a=REt(e,t,!0),a&&Fe(o.a,t);for(;o.a.c.length!=0;)t=l(Jge(o),504),REt(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(uf),10),new Hu(t,l(Gl(t,t.length),10),0)),this.g=e.f}function _1(){_1=K,Hke=new gS(qC,0),xi=new gS("BOOLEAN",1),vo=new gS("INT",2),HT=new gS("STRING",3),Qi=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,u,f;o=b.Math.min(e.c,t.c),u=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;)qpe(this);this.b=t,this.a=null}function Xyn(e,t){var r,o;t.a?TSn(e,t):(r=l(Aq(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(Tq(e.b,t.b),60),o&&e.a[o.f]==t.b&&o.a&&o.a!=t.b.a&&t.b.c.Ec(o),wV(e.b,t.b))}function Bmt(e,t){var r,o;if(r=l(Ko(e.b,t),129),l(l(yr(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((su(),xm))&&wyt(e,t),o=Obn(e,t),bJ(e,t)==(EE(),W1)&&(o+=2*e.w),r.a.a=o}function Umt(e,t){var r,o;if(r=l(Ko(e.b,t),129),l(l(yr(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((su(),xm))&&yyt(e,t),o=Rbn(e,t),bJ(e,t)==(EE(),W1)&&(o+=2*e.w),r.a.b=o}function Zyn(e,t){var r,o,a,u;for(u=new je,o=new V(t);o.ao&&(Jt(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))?u=(t.b-r.b)/2:o.Gc(m4)&&(u=t.b-r.b)),Hbe(e,a,u)}function Vmt(e,t,r,o,a,u,f,p,m,y,v,T,N){se(e.Cb,89)&&Ay(Pc(l(e.Cb,89)),4),Ma(e,r),e.f=f,M_(e,p),j_(e,m),L_(e,y),P_(e,v),pg(e,T),F_(e,N),hg(e,!0),ug(e,a),e.Xk(u),Yb(e,t),o!=null&&(e.i=null,Aj(e,o))}function cme(e,t,r){if(e<0)return CC(r2t,Z(X(Ri,1),It,1,5,[r,Oe(e)]));if(t<0)throw Y(new jt(i2t+t));return CC("%s (%s) must not be greater than size (%s)",Z(X(Ri,1),It,1,5,[r,Oe(e),Oe(t)]))}function ume(e,t,r,o,a,u){var f,p,m,y;if(f=o-r,f<7){t1n(t,r,o,u);return}if(m=r+a,p=o+a,y=m+(p-m>>1),ume(t,e,m,y,-a,u),ume(t,e,y,p,-a,u),u.Le(e[y-1],e[y])<=0){for(;r=0?e.$h(u,r):Ume(e,a,r);else throw Y(new jt(O1+a.ve()+iI));else throw Y(new jt(QTt+t+eAt));else Xu(e,o,a,r)}function Wmt(e){var t,r;if(e.f){for(;e.n>0;){if(t=l(e.k.Xb(e.n-1),76),r=t.Jk(),se(r,104)&&l(r,20).Bb&Ws&&(!e.e||r.nk()!=Ak||r.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Kmt(e){var t,r,o,a;if(r=l(e,52).Yh(),r)try{if(o=null,t=Y_((r1(),Ll),Hyt(o1n(r))),t&&(a=t.Zh(),a&&(o=a.Dl(FQt(r.e)))),o&&o!=e)return Kmt(o)}catch(u){if(u=ui(u),!se(u,63))throw Y(u)}return e}function pvn(e,t,r){var o,a,u;r.Tg("Remove overlaps",1),r.bh(t,mve),o=l(ve(t,(cE(),d2)),19),e.f=o,e.a=AY(l(ve(t,(A1(),RL)),304)),a=le(ve(t,(_n(),Od))),sue(e,(Mt(a),a)),u=xy(o),hEt(e,t,u,r),r.bh(t,P7)}function gvn(e){var t,r,o;if(Ye(Ke(ve(e,(_n(),UL))))){for(o=new je,r=new Ft(Gt(mp(e).a.Jc(),new D));an(r);)t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,gre)))&&Rt(o.c,t);return o}else return At(),At(),Ro}function Ymt(e){if(!e)return TQe(),txt;var t=e.valueOf?e.valueOf():e;if(t!==e){var r=qQ[typeof t];return r?r(t):i1e(typeof t)}else return e instanceof Array||e instanceof b.Array?new Qce(e):new JR(e)}function Jmt(e,t,r){var o,a,u;switch(u=e.o,o=l(Ko(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.b=b.Math.max(a.b,u.a),a.b>u.a&&!t&&(a.b=u.a),a.c=-(a.b-u.a)/2,r.g){case 1:a.d=-a.a;break;case 3:a.d=u.b}CJ(o),IJ(o)}function Xmt(e,t,r){var o,a,u;switch(u=e.o,o=l(Ko(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.a=b.Math.max(a.a,u.b),a.a>u.b&&!t&&(a.a=u.b),a.d=-(a.a-u.b)/2,r.g){case 4:a.c=-a.b;break;case 2:a.c=u.a}CJ(o),IJ(o)}function bvn(e,t){var r,o,a;return se(t.g,9)&&l(t.g,9).k==(Ht(),yi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=dE(t),r?(o=ce(le(wy(r,(Ue(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function mvn(e,t){var r,o,a;return se(t.g,9)&&l(t.g,9).k==(Ht(),yi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=dE(t),r?(o=ce(le(wy(r,(Ue(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function wvn(e,t){var r,o,a,u,f;if(!t.dc()){if(a=l(t.Xb(0),134),t.gc()==1){jwt(e,a,a,1,0,t);return}for(r=1;r0)try{a=Eu(t,Zi,ar)}catch(u){throw u=ui(u),se(u,133)?(o=u,Y(new sj(o))):Y(u)}return r=(!e.a&&(e.a=new XG(e)),e.a),a=0?l(ie(r,a),57):null}function Evn(e,t){if(e<0)return CC(r2t,Z(X(Ri,1),It,1,5,["index",Oe(e)]));if(t<0)throw Y(new jt(i2t+t));return CC("%s (%s) must be less than size (%s)",Z(X(Ri,1),It,1,5,["index",Oe(e),Oe(t)]))}function Svn(e){var t,r,o,a,u;if(e==null)return tc;for(u=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(O1+t.ve()+iI))}function hme(e){var t,r;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),r=bo(b.Math.floor(b.Math.log(e)/.6931471805599453)),(!t||e!=b.Math.pow(2,r))&&++r,r):dgt(Gs(e))}function Dvn(e){var t,r,o,a,u,f,p;for(u=new ch,r=new V(e);r.a2&&p.e.b+p.j.b<=2&&(a=p,o=f),u.a.yc(a,u),a.q=o);return u}function Lvn(e,t,r){r.Tg("Eades radial",1),r.bh(t,P7),e.d=l(ve(t,(cE(),d2)),19),e.c=ce(le(ve(t,(A1(),GB)))),e.e=AY(l(ve(t,RL),304)),e.a=S1n(l(ve(t,Nxe),431)),e.b=P0n(l(ve(t,Axe),355)),v0n(e),r.bh(t,P7)}function Mvn(e,t){if(t.Tg("Target Width Setter",1),Gu(e,(ef(),Mne)))Vn(e,(yh(),sv),le(ve(e,Mne)));else throw Y(new _f("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function i0t(e,t){var r,o,a;return o=new Xd(e),qs(o,t),Te(o,(Ie(),oB),t),Te(o,(Ue(),Zr),(qi(),fa)),Te(o,Kf,(mh(),nU)),Jh(o,(Ht(),yi)),r=new aa,As(r,o),Ii(r,(He(),Wt)),a=new aa,As(a,o),Ii(a,Qt),o}function o0t(e,t){var r,o,a,u,f;for(e.c[t.p]=!0,Fe(e.a,t),f=new V(t.j);f.a=u)f.$b();else for(a=f.Jc(),o=0;o0?Zue():f<0&&d0t(e,t,-f),!0):!1}function Bvn(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)&Ti,t[5]=t[5]+(e/60|0)%10&Ti,t[7]=t[7]+(e%60/10|0)&Ti,t[8]=t[8]+e%10&Ti,Mf(t,0,t.length)}function EC(e){var t,r,o,a,u,f,p;if(p=0,e.b==0){for(f=$1t(e,!0),t=0,o=f,a=0,u=o.length;a0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}else p=IQe(NK(ny(dr(iW(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,u,f,p;if(p=0,e.b==0)p=IQe(NK(ny(dr(iW(e.a),new Zg),new CN)));else{for(f=B1t(e,!0),t=0,o=f,a=0,u=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 Uvn(e){var t,r;if(e.c.length!=2)throw Y(new ts("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,Rt(e.c,r),Rt(e.c,t))}function f0t(e,t,r){var o;for(i0(r,t.g,t.f),Bu(r,t.i,t.j),o=0;o<(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i;o++)f0t(e,l(ie((!t.a&&(t.a=new ke(En,t,10,11)),t.a),o),19),l(ie((!r.a&&(r.a=new ke(En,r,10,11)),r.a),o),19))}function Hvn(e,t){var r,o,a,u;for(u=l(Ko(e.b,t),129),r=u.a,a=l(l(yr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.c&&(r.a=b.Math.max(r.a,Ffe(o.c)));if(r.a>0)switch(t.g){case 2:u.n.c=e.s;break;case 4:u.n.b=e.s}}function zvn(e,t){var r,o,a;return r=l(F(t,(ed(),AT)),15).a-l(F(e,AT),15).a,r==0?(o=Di(Ao(l(F(e,(p1(),tL)),8)),l(F(e,SI),8)),a=Di(Ao(l(F(t,tL),8)),l(F(t,SI),8)),vr(o.a*o.b,a.a*a.b)):r}function Gvn(e,t){var r,o,a;return r=l(F(t,(js(),$B)),15).a-l(F(e,$B),15).a,r==0?(o=Di(Ao(l(F(e,(Nr(),NL)),8)),l(F(e,uk),8)),a=Di(Ao(l(F(t,NL),8)),l(F(t,uk),8)),vr(o.a*o.b,a.a*a.b)):r}function h0t(e){var t,r;return r=new Qg,r.a+="e_",t=epn(e),t!=null&&(r.a+=""+t),e.c&&e.d&&(zn((r.a+=" ",r),gF(e.c)),zn(ba((r.a+="[",r),e.c.i),"]"),zn((r.a+=$X,r),gF(e.d)),zn(ba((r.a+="[",r),e.d.i),"]")),r.a}function p0t(e){switch(e.g){case 0:return new YWe;case 1:return new JWe;case 2:return new aKe;case 3:return new cKe;default:throw Y(new jt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function bme(e,t,r,o,a){var u;switch(u=0,a.g){case 1:u=b.Math.max(0,t.b+e.b-(r.b+o));break;case 3:u=b.Math.max(0,-e.b-o);break;case 2:u=b.Math.max(0,-e.a-o);break;case 4:u=b.Math.max(0,t.a+e.a-(r.a+o))}return u}function g0t(e,t,r){var o,a,u,f,p;if(r)for(a=r.a.length,o=new Ib(a),p=(o.b-o.a)*o.c<0?(i1(),tb):new a1(o);p.Ob();)f=l(p.Pb(),15),u=f_(r,f.a),gEe in u.a||hQ in u.a?XTn(e,u,t):E3n(e,u,t),rnn(l(Ut(e.c,B_(u)),74))}function mme(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()==n_t)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function wme(e,t){var r,o,a,u;if(fr(e),e.c!=0||e.a!=123)throw Y(new Dn(jn((Cn(),AAt))));if(u=t==112,o=e.d,r=KA(e.i,125,o),r<0)throw Y(new Dn(jn((Cn(),_At))));return a=yl(e.i,o,r),e.d=r+1,bdt(a,u,(e.e&512)==512)}function qvn(e){var t,r,o,a,u,f,p;for(p=uh(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(O1+t.ve()+iQ))}function Wvn(){Ele();var e;return vLt?l(Y_((r1(),Ll),_l),2017):(er(dm,new dVe),zkn(),e=l(se(wa((r1(),Ll),_l),552)?wa(Ll,_l):new sat,552),vLt=!0,H3n(e),K3n(e),Jn((vle(),I3e),e,new kqe),rs(Ll,_l,e),e)}function Kvn(e,t){var r,o,a,u;e.j=-1,Jc(e.e)?(r=e.i,u=e.i!=0,r6(e,t),o=new up(e.e,3,e.c,null,t,r,u),a=t.xl(e.e,e.c,null),a=Hbt(e,t,a),a?(a.lj(o),a.mj()):pr(e.e,o)):(r6(e,t),a=t.xl(e.e,e.c,null),a&&a.mj())}function NF(e,t){var r,o,a;if(a=0,o=t[0],o>=e.length)return-1;for(r=(Jt(o,e.length),e.charCodeAt(o));r>=48&&r<=57&&(a=a*10+(r-48),++o,!(o>=e.length));)r=(Jt(o,e.length),e.charCodeAt(o));return o>t[0]?t[0]=o:a=-1,a}function Yvn(e,t,r){var o,a,u,f,p;f=e.c,p=e.d,u=xs(Z(X($i,1),Pe,8,0,[f.i.n,f.n,f.a])).b,a=(u+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(Wu(Z(X(nl,1),It,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=Jo(r),!t)t=a;else if(t!=a)return!1;return!0}function uJ(e,t,r){var o;if(++e.j,t>=e.i)throw Y(new Ia(gQ+t+cm+e.i));if(r>=e.i)throw Y(new Ia(bQ+r+cm+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-Dy,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 Jvn(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))&&!hE(new vt(null,new St(a,16)),new QJe(r))&&Rt(a.c,r);return ki(a,new kHe),a}function m0t(e,t,r){var o,a,u,f;return se(t,156)&&se(r,156)?(u=l(t,156),f=l(r,156),e.a[u.a][f.a]+e.a[f.a][u.a]):se(t,254)&&se(r,254)&&(o=l(t,254),a=l(r,254),o.a==a.a)?l(F(a.a,(ed(),AT)),15).a:0}function w0t(e,t){var r,o,a,u,f,p,m,y;for(y=ce(le(F(t,(Ue(),GI)))),m=e[0].n.a+e[0].o.a+e[0].d.c+y,p=1;p=0?r:(p=O3(Di(new Me(f.c+f.b/2,f.d+f.a/2),new Me(u.c+u.b/2,u.d+u.a/2))),-(Xyt(u,f)-1)*p)}function Zvn(e,t,r){var o;ei(new vt(null,(!r.a&&(r.a=new ke(jr,r,6,6)),new St(r.a,16))),new Ztt(e,t)),ei(new vt(null,(!r.n&&(r.n=new ke(Rs,r,1,7)),new St(r.n,16))),new Qtt(e,t)),o=l(ve(r,(_n(),g2)),79),o&&Ege(o,e,t)}function O0(e,t,r){var o,a,u;if(u=RE((mc(),ao),e.Ah(),t),u)return Mo(),l(u,69).vk()||(u=MS(is(ao,u))),a=(o=e.Fh(u),l(o>=0?e.Ih(o,!0,!0):O0(e,u,!0),164)),l(a,222).Ql(t,r);throw Y(new jt(O1+t.ve()+iQ))}function yme(e,t,r,o){var a,u,f,p,m;if(a=e.d[t],a){if(u=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 jV(m.c,f),Nb(e,o++,a)),p=y+r,p<=m.a&&(u=new jV(p,m.a),oy(o,e.c.length),t3(e.c,o,u)))}function S0t(e,t,r){var o,a,u,f,p,m;if(!t.dc()){for(a=new Ar,m=t.Jc();m.Ob();)for(p=l(m.Pb(),41),Jn(e.a,Oe(p.g),Oe(r)),f=(o=An(new Qh(p).a.d,0),new Vv(o));oO(f.a);)u=l(Sn(f.a),65).c,Wr(a,u,a.c.b,a.c);S0t(e,a,r+1)}}function vme(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()?(RF(e),vme(e)):t.Ob()}function T0t(e){if(this.a=e,e.c.i.k==(Ht(),yi))this.c=e.c,this.d=l(F(e.c.i,(Ie(),Hs)),64);else if(e.d.i.k==yi)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 A0t(e,t){var r,o,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,3,a,e.b)),t?t!=e&&(Ma(e,t.zb),mK(e,t.d),r=(o=t.c,o??t.zb),yK(e,r==null||wt(r,t.zb)?null:r)):(Ma(e,null),mK(e,0),yK(e,null))}function _0t(e){!zQ&&(zQ=JNn());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 Dcn(r)});return'"'+t+'"'}function Eme(e,t,r,o,a,u){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 Yw(t,f));return a=r[t],f==1?o=null:(o=we(Fre,EQ,420,f-1,0,1),ca(r,0,o,0,t),u=f-t-1,u>0&&ca(r,t+1,o,t,u)),H_(e,o),qmt(e,t,a),a}function x0t(e){var t,r;if(e.f){for(;e.n0)for(f=e.c.d,p=e.d.d,a=tp(Di(new Me(p.a,p.b),f),1/(o+1)),u=new Me(f.a,f.b),r=new V(e.a);r.a0?u=WS(r):u=P6(WS(r))),Vn(t,rk,u)}function R0t(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)),(vu(),Ih)),aT((at(1,e.c.length),l(e.c[1],9)),V1);else for(o=new V(e);o.a0&&sD(e,r,t),u):o.a!=null?(sD(e,t,r),-1):a.a!=null?(sD(e,r,t),1):0}function O0t(e){RW();var t,r,o,a,u,f,p;for(r=new f1,a=new V(e.e.b);a.a=0;)o=r[u],f.$l(o.Jk())&&Tn(a,o);!PEt(e,a)&&Jc(e.e)&&LA(e,t.Hk()?l1(e,6,t,(At(),Ro),null,-1,!1):l1(e,t.rk()?2:1,t,null,null,-1,!1))}function cEn(e,t){var r,o,a,u,f;return e.a==(W_(),NI)?!0:(u=t.a.c,r=t.a.c+t.a.b,!(t.j&&(o=t.A,f=o.c.c.a-o.o.a/2,a=u-(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 L0t(e,t,r){var o,a,u,f,p,m;for(o=0,m=r,t||(o=r*(e.c.length-1),m*=-1),u=new V(e);u.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(l(a,52),r),o&&o.mj(),e.sh()&&e.th()&&r>-1&&pr(e,new Pi(e,9,r,u,a)),a):u}function _me(e,t){var r,o,a,u,f;for(u=e.b.Ae(t),o=(r=e.a.get(u),r??we(Ri,It,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=Iht(e),a>16)),16).bd(u),p0&&(!(ep(e.a.c)&&t.n.d)&&!(tE(e.a.c)&&t.n.b)&&(t.g.d+=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(tE(e.a.c)&&t.n.c)&&(t.g.a-=o-1))}function W0t(e,t,r){var o,a,u,f,p,m;u=l(ze(t.e,0),17).c,o=u.i,a=o.k,m=l(ze(r.g,0),17).d,f=m.i,p=f.k,a==(Ht(),bi)?Te(e,(Ie(),Cd),l(F(o,Cd),12)):Te(e,(Ie(),Cd),u),p==bi?Te(e,(Ie(),Nl),l(F(f,Nl),12)):Te(e,(Ie(),Nl),m)}function K0t(e,t){var r,o,a,u,f,p;for(u=new V(e.b);u.a>t,u=e.m>>t|r<<22-t,a=e.l>>t|e.m<<22-t):t<44?(f=o?Ep:0,u=r>>t-22,a=e.m>>t-22|r<<44-t):(f=o?Ep:0,u=o?Hc:0,a=r>>t-44),Ua(a&Hc,u&Hc,f&Ep)}function TEn(e,t){var r;switch(M3(e.a),pu(e.a,(bF(),Jne),(Z9(),nre)),pu(e.a,Xne,(Q9(),rre)),pu(e.a,Zne,(e8(),ire)),l(ve(t,(QS(),tre)),389).g){case 1:r=(w6(),ore);break;case 0:default:r=(w6(),sre)}return pu(e.a,Qne,r),FC(e.a,t)}function Y0t(e,t){var r,o,a,u,f,p,m,y,v;if(e.a.f>0&&se(t,45)&&(e.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Rr(m),f=Xde(e.a,u),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();)u=t,t=le(r.Pb()),o=b.Math.min(o,(Mt(t),t-(Mt(u),u)));return o}function OEn(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,L7)&&me(F(r.b,(js(),Jf)))!==me(F(r.c,Jf))&&!hE(new vt(null,new St(a,16)),new eXe(r))&&Rt(a.c,r);return ki(a,new RHe),a}function DEn(e,t){var r,o,a;if(me(t)===me(kn(e)))return!0;if(!se(t,16)||(o=l(t,16),a=e.gc(),a!=o.gc()))return!1;if(se(o,59)){for(r=0;r0&&(a=r),f=new V(e.f.e);f.a0?a+=t:a+=1;return a}function UEn(e,t){var r,o,a,u,f,p,m,y,v,T;y=e,m=B3(y,"individualSpacings"),m&&(o=Gu(t,(_n(),qT)),f=!o,f&&(a=new DG,Vn(t,qT,a)),p=l(ve(t,qT),380),T=m,u=null,T&&(u=(v=AK(T,we(Je,Pe,2,0,6,1)),new Sq(T,v))),u&&(r=new ynt(T,p),lo(u,r)))}function HEn(e,t){var r,o,a,u,f,p,m,y,v,T,N;return m=null,T=e,v=null,(uAt in T.a||lAt in T.a||z7 in T.a)&&(y=null,N=Rge(t),f=B3(T,uAt),r=new FXe(N),Rgt(r.a,f),p=B3(T,lAt),o=new WXe(N),Ogt(o.a,p),u=m0(T,z7),a=new JXe(N),y=(Bbt(a.a,u),u),v=y),m=v,m}function zEn(e,t){var r,o,a;if(t===e)return!0;if(se(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),Rct(e,r.a.jd())!=l(r.a.kd(),18).gc())return!1;return!0}return!1}function GEn(e,t){var r,o,a,u;for(u=new V(t.a);u.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 fJ(e){var t,r,o,a,u,f,p,m;for(a=Kr,o=Li,r=new V(e.e.b);r.a0&&a0):a<0&&-a0):!1}function VEn(e,t,r,o){var a,u,f,p,m,y,v,T;for(a=(t-e.d)/e.c.c.length,u=0,e.a+=r,e.d=t,T=new V(e.c);T.a>24;return f}function KEn(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=gY(".",[r,gY("$",o)]),e.b=gY(".",[r,gY(".",o)]),e.k=o[o.length-1]}function YEn(e,t){var r,o,a,u,f;for(f=null,u=new V(e.e.a);u.a0&&hD(t,(at(o-1,e.c.length),l(e.c[o-1],9)),a)>0;)nu(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 awt(e,t,r){var o,a,u;for(o=1;o0&&t.Le((at(a-1,e.c.length),l(e.c[a-1],9)),u)>0;)nu(e,a,(at(a-1,e.c.length),l(e.c[a-1],9))),--a;at(a,e.c.length),e.c[a]=u}r.a=new hn,r.b=new hn}function IF(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=t.Jc();u.Ob();)a=l(u.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),gc(a,N-a.f/2)}function kE(e){var t,r,o;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(r=0;r<=t;r+=2)(e.b[r]>e.b[r+2]||e.b[r]===e.b[r+2]&&e.b[r+1]>e.b[r+3])&&(o=e.b[r+2],e.b[r+2]=e.b[r],e.b[r]=o,o=e.b[r+3],e.b[r+3]=e.b[r+1],e.b[r+1]=o);e.c=!0}}function Zl(e){var t,r;return r=new fu(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 ts((np(nee),RX+nee.k+OX)));for(e.d==(Si(),hf)&&XF(e,cs),r=new V(e.a.a);r.a>24}return r}function t2n(e,t,r){var o,a,u;if(a=l(Ko(e.i,t),319),!a)if(a=new wft(e.d,t,r),IS(e.i,t,a),$1e(t))nnn(e.a,t.c,t.b,a);else switch(u=Yyn(t),o=l(Ko(e.p,u),256),u.g){case 1:case 3:a.j=!0,lq(o,t.b,a);break;case 4:case 2:a.k=!0,lq(o,t.c,a)}return a}function n2n(e,t,r,o){var a,u,f,p,m,y;if(p=new w9,m=za(e.e.Ah(),t),a=l(e.g,123),Mo(),l(t,69).vk())for(f=0;f=0)return a;for(u=1,p=new V(t.j);p.a=0)return a;for(u=1,p=new V(t.j);p.a=0?(t||(t=new GN,o>0&&Wo(t,(io(0,o,e.length),e.substr(0,o)))),t.a+="\\",i_(t,r&Ti)):t&&i_(t,r&Ti);return t?t.a:e}function i2n(e){var t,r,o;for(r=new V(e.a.a.b);r.a0&&(!(ep(e.a.c)&&t.n.d)&&!(tE(e.a.c)&&t.n.b)&&(t.g.d-=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(tE(e.a.c)&&t.n.c)&&(t.g.a+=b.Math.max(0,o-1)))}function hwt(e,t,r){var o,a;if((e.c-e.b&e.a.length-1)==2)t==(He(),Vt)||t==Qt?(hj(l(Q3(e),16),(vu(),Ih)),hj(l(Q3(e),16),V1)):(hj(l(Q3(e),16),(vu(),V1)),hj(l(Q3(e),16),Ih));else for(a=new L3(e);a.a!=a.b;)o=l(Uj(a),16),hj(o,r)}function o2n(e,t,r){var o,a,u,f,p,m,y,v,T;for(v=-1,T=0,p=t,m=0,y=p.length;m0&&++T;++v}return T}function s2n(e,t,r){var o;if(r.Tg("XPlacer",1),e.b=ce(le(ve(t,(_n(),Od)))),e.a=Ye(Ke(ve(t,(QS(),ere)))),(!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,tre),389).g){case 0:QEt(e,o);break;case 1:ZEt(e,o)}r.Ug()}function a2n(e,t){var r,o,a,u,f,p,m;for(a=QA(new _ue(e)),p=new Ji(a,a.c.length),u=QA(new _ue(t)),m=new Ji(u,u.c.length),f=null;p.b>0&&m.b>0&&(r=(cn(p.b>0),l(p.a.Xb(p.c=--p.b),19)),o=(cn(m.b>0),l(m.a.Xb(m.c=--m.b),19)),r==o);)f=r;return f}function c2n(e,t){var r,o,a,u;for(t.Tg("Self-Loop pre-processing",1),o=new V(e.a);o.aUct(e,r)?(o=ks(r,(He(),Qt)),e.d=o.dc()?0:HV(l(o.Xb(0),12)),f=ks(t,Wt),e.b=f.dc()?0:HV(l(f.Xb(0),12))):(a=ks(r,(He(),Wt)),e.d=a.dc()?0:HV(l(a.Xb(0),12)),u=ks(t,Qt),e.b=u.dc()?0:HV(l(u.Xb(0),12)))}function u2n(e){var t,r,o,a,u,f,p,m;t=!0,a=null,u=null;e:for(m=new V(e.a);m.ae.c));f++)a.a>=e.s&&(u<0&&(u=f),p=f);return m=(e.s+e.c)/2,u>=0&&(o=YTn(e,t,u,p),m=Men((at(o,t.c.length),l(t.c[o],341))),nEn(t,o,r)),m}function xn(e,t,r){var o,a,u,f,p,m,y;for(f=(u=new Gce,u),lge(f,(Mt(t),t)),y=(!f.b&&(f.b=new Zc((_t(),Do),zs,f)),f.b),m=1;m=2}function h2n(e,t,r,o,a){var u,f,p,m,y,v;for(u=e.c.d.j,f=l(sa(r,0),8),v=1;v1||(t=xr(ad,Z(X(Go,1),Ce,96,0,[Ip,cd])),T6(MP(t,e))>1)||(o=xr(ld,Z(X(Go,1),Ce,96,0,[Rh,Il])),T6(MP(o,e))>1))}function bwt(e){var t,r,o,a,u,f,p;for(t=0,o=new V(e.a);o.a0&&(o.b.n-=o.c,o.b.n<=0&&o.b.u>0&&Gn(t,o.b));for(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 g2n(e){var t,r,o,a,u,f;for(f=l(ve(e,(_n(),df)),100),r=0,o=0,u=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));u.e!=u.i.gc();)a=l(rn(u),19),t=l(ve(a,Cp),125),r1||r>1)return 2;return t+r==1?2:0}function Bc(e,t){var r,o,a,u,f,p;return u=e.a*kX+e.b*1502,p=e.b*kX+11,r=b.Math.floor(p*_D),u+=r,p-=r*hwe,u%=hwe,e.a=u,e.b=p,t<=24?b.Math.floor(e.a*y2e[t]):(a=e.a*(1<=2147483648&&(o-=4294967296),o)}function ywt(e,t,r){var o,a,u,f,p,m,y;for(u=new je,y=new Ar,f=new Ar,j_n(e,y,f,t),wkn(e,y,f,t,r),m=new V(e);m.ao.b.g&&Rt(u.c,o);return u}function S2n(e,t,r){var o,a,u,f,p,m;for(p=e.c,f=(r.q?r.q:(At(),At(),xh)).vc().Jc();f.Ob();)u=l(f.Pb(),45),o=!BA(dr(new vt(null,new St(p,16)),new RA(new Vtt(t,u)))).zd((_b(),TT)),o&&(m=u.kd(),se(m,4)&&(a=U1e(m),a!=null&&(m=a)),t.of(l(u.jd(),149),m))}function T2n(e,t){var r,o,a,u;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,u,!0),164)),l(a,222).Vl(t,r)}else throw Y(new jt(O1+t.ve()+iI))}function x2n(e,t,r){var o,a,u,f,p,m;if(m=Wde(e,l(Ut(e.e,t),19)),p=null,m)switch(m.g){case 3:o=gde(e,ry(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=gde(e,ry(t)),f=(Mt(r),r+(Mt(a),a)),u=gde(e,l(Ut(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function k2n(e,t,r){var o,a,u,f,p,m;if(m=Wde(e,l(Ut(e.e,t),19)),p=null,m)switch(m.g){case 3:o=bde(e,ry(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=bde(e,ry(t)),f=(Mt(r),r+(Mt(a),a)),u=bde(e,l(Ut(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function DF(e,t){var r,o,a,u,f;if(t){for(u=se(e.Cb,89)||se(e.Cb,104),f=!u&&se(e.Cb,336),o=new tn((!t.a&&(t.a=new A3(t,qo,t)),t.a));o.e!=o.i.gc();)if(r=l(rn(o),88),a=GF(r),u?se(a,89):f?se(a,160):a)return a;return u?(_t(),Ml):(_t(),bf)}else return null}function N2n(e,t){var r,o,a,u,f;for(r=new je,a=bs(new vt(null,new St(e,16)),new mHe),u=bs(new vt(null,new St(e,16)),new wHe),f=lfn(Idn(ny($2n(Z(X(oCn,1),It,840,0,[a,u])),new yHe))),o=1;o=2*t&&Fe(r,new jV(f[o-1]+t,f[o]-t));return r}function vwt(e,t,r){var o,a,u,f,p,m,y,v;if(r)for(u=r.a.length,o=new Ib(u),p=(o.b-o.a)*o.c<0?(i1(),tb):new a1(o);p.Ob();)f=l(p.Pb(),15),a=f_(r,f.a),a&&(m=Mln(e,(y=(t1(),v=new Bue,v),t&&Hme(y,t),y),a),v_(m,sp(a,qf)),SF(a,m),lme(a,m),BK(e,a,m))}function LF(e){var t,r,o,a,u,f;if(!e.j){if(f=new gqe,t=L4,u=t.a.yc(e,t),u==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),a=LF(r),ti(f,a),Tn(f,r);t.a.Ac(e)!=null}gy(f),e.j=new eE((l(ie(Ne((c1(),Bt).o),11),20),f.i),f.g),Pc(e).b&=-33}return e.j}function C2n(e){var t,r,o,a;if(e==null)return null;if(o=Ta(e,!0),a=JD.length,wt(o.substr(o.length-a,a),JD)){if(r=o.length,r==4){if(t=(Jt(0,o.length),o.charCodeAt(0)),t==43)return J3e;if(t==45)return ULt}else if(r==3)return J3e}return new Oue(o)}function I2n(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?rge(r):t==0&&o!=0&&r==0?rge(o)+22:t!=0&&o==0&&r==0?rge(t)+44:-1}function NE(e,t){var r,o,a,u,f;for(a=t.a&e.f,u=null,o=e.b[a];;o=o.b){if(o==t){u?u.b=t.b:e.b[a]=t.b;break}u=o}for(f=t.f&e.f,u=null,r=e.c[f];;r=r.d){if(r==t){u?u.d=t.d:e.c[f]=t.d;break}u=r}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function R2n(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(Ut(e.b,t.a),263)),263),--r.a,t.e?t.e.c=t.c:r.b=l(wl(t.c),501),t.c?t.c.e=t.e:r.c=l(wl(t.e),501)),--e.d}function hJ(e,t){var r,o,a,u;for(u=new Ji(e,0),r=(cn(u.b0),u.a.Xb(u.c=--u.b),Kw(u,a),cn(u.b3&&bh(e,0,t-3))}function D2n(e){var t,r,o,a;return me(F(e,(Ue(),Yy)))===me((pp(),Ig))?!e.e&&me(F(e,mL))!==me((__(),uL)):(o=l(F(e,wte),303),a=Ye(Ke(F(e,yte)))||me(F(e,BI))===me((lC(),aL)),t=l(F(e,pAe),15).a,r=e.a.c.length,!a&&o!=(__(),uL)&&(t==0||t>r))}function L2n(e,t){var r,o,a,u,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(),sB),(Lt(),!0)),f=t.Jc();f.Ob();)u=l(f.Pb(),9),m=new aa,As(m,u),Ii(m,Wt),Te(m,sB,!0),r=new p0,Te(r,sB,!0),mo(r,p),Yi(r,m)}function M2n(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+M0t(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=XS(t,e,6,o)),o=Yde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,6,t,t))}function MF(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+Cvt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?hbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,12,o)),o=Kde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,3,t,t))}function Hme(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=9&&t){if(z_(e,t))throw Y(new jt(oI+Tyt(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,9,o)),o=Jde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,9,t,t))}function J_(e){var t,r,o,a,u;if(o=Sl(e),u=e.j,u==null&&o)return e.Hk()?null:o.gk();if(se(o,160)){if(r=o.hk(),r&&(a=r.ti(),a!=e.i)){if(t=l(o,160),t.lk())try{e.g=a.qi(t,u)}catch(f){if(f=ui(f),se(f,81))e.g=null;else throw Y(f)}e.i=a}return e.g}return null}function _wt(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 j2n(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)),obn(cpn(),(GA(),"Exception during lenientFormat for "+o),t),"<"+o+" threw "+Ab(t.Pm)+">";throw Y(a)}}function $2n(e){var t,r,o,a,u,f,p,m,y;for(o=!1,t=336,r=0,u=new Tit(e.length),p=e,m=0,y=p.length;m1)for(t=o0((r=new Tb,++e.b,r),e.d),p=An(u,0);p.b!=p.d.c;)f=l(Sn(p),126),Ql($l(Ul(Hl(Bl(new gl,1),0),t),f))}function PF(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=11&&t){if(z_(e,t))throw Y(new jt(oI+u0e(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?pbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,10,o)),o=sfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,11,t,t))}function G2n(e,t,r){var o,a,u,f,p,m;if(u=0,f=0,e.c)for(m=new V(e.d.i.j);m.au.a?-1:a.am){for(v=e.d,e.d=we(E3e,CEe,67,2*m+4,0,1),u=0;u=9223372036854776e3?(m_(),JEe):(a=!1,e<0&&(a=!0,e=-e),o=0,e>=nm&&(o=bo(e/nm),e-=o*nm),r=0,e>=fT&&(r=bo(e/fT),e-=r*fT),t=bo(e),u=Ua(t,r,o),a&&$K(u),u)}function nSn(e){var t,r,o,a,u;if(u=new je,La(e.b,new bYe(u)),e.b.c.length=0,u.c.length!=0){for(t=(at(0,u.c.length),l(u.c[0],81)),r=1,o=u.c.length;r>16!=7&&t){if(z_(e,t))throw Y(new jt(oI+Cmt(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,1,t5,o)),o=Yfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,7,t,t))}function Cwt(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+pgt(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=l(t,52).Oh(e,0,r5,o)),o=Jfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,3,t,t))}function pJ(e,t){Q_();var r,o,a,u,f,p,m,y,v;return t.d>e.d&&(p=e,e=t,t=p),t.d<63?VSn(e,t):(f=(e.d&-2)<<4,y=ppe(e,f),v=ppe(t,f),o=LJ(e,jS(y,f)),a=LJ(t,jS(v,f)),m=pJ(y,v),r=pJ(o,a),u=pJ(LJ(y,o),LJ(a,v)),u=UJ(UJ(u,m),r),u=jS(u,f),m=jS(m,f<<1),UJ(UJ(m,u),r))}function rD(){rD=K,Pte=new Jv(PSt,0),t_e=new Jv("LONGEST_PATH",1),n_e=new Jv("LONGEST_PATH_SOURCE",2),Lte=new Jv("COFFMAN_GRAHAM",3),e_e=new Jv(zX,4),r_e=new Jv("STRETCH_WIDTH",5),_B=new Jv("MIN_WIDTH",6),Dte=new Jv("BF_MODEL_ORDER",7),Mte=new Jv("DF_MODEL_ORDER",8)}function aSn(e,t){var r,o,a,u,f,p;if(!e.tb){for(u=(!e.rb&&(e.rb=new Qw(e,Ld,e)),e.rb),p=new dS(u.i),a=new tn(u);a.e!=a.i.gc();)o=l(rn(a),146),f=o.ve(),r=l(f==null?ec(p.f,null,o):_0(p.i,f,o),146),r&&(f==null?ec(p.f,null,r):_0(p.i,f,r));e.tb=p}return l(wa(e.tb,t),146)}function iD(e,t){var r,o,a,u,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(SY(a),182),u=o.ve(),r=l(u==null?ec(f.f,null,o):_0(f.i,u,o),182),r&&(u==null?ec(f.f,null,r):_0(f.i,u,r));e.p=f}return l(wa(e.p,t),182)}function Kme(e,t,r,o,a){var u,f,p,m,y;for(Z1n(o+OP(r,r.ge()),a),qst(t,E1n(r)),u=r.f,u&&Kme(e,t,u,"Caused by: ",!1),p=(r.k==null&&(r.k=we(HQ,Pe,81,0,0,1)),r.k),m=0,y=p.length;m=0;u+=r?1:-1)f=f|t.c.jg(m,u,r,o&&!Ye(Ke(F(t.j,(Ie(),F1))))&&!Ye(Ke(F(t.j,(Ie(),t2))))),f=f|t.q.tg(m,u,r),f=f|byt(e,m[u],r,o);return gi(e.c,t),f}function FF(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(v=vut(e.j),T=0,N=v.length;T1&&(e.a=!0),vsn(l(r.b,68),mr(Ao(l(t.b,68).c),tp(Di(Ao(l(r.b,68).a),l(t.b,68).a),a))),Ict(e,t),Rwt(e,r)}function Owt(e){var t,r,o,a,u,f,p;for(u=new V(e.a.a);u.a0&&u>0?f.p=t++:o>0?f.p=r++:u>0?f.p=a++:f.p=r++}At(),ki(e.j,new v$e)}function fSn(e){var t,r;r=null,t=l(ze(e.g,0),17);do{if(r=t.d.i,br(r,(Ie(),Nl)))return l(F(r,Nl),12).i;if(r.k!=(Ht(),Xr)&&an(new Ft(Gt(Or(r).a.Jc(),new D))))t=l(en(new Ft(Gt(Or(r).a.Jc(),new D))),17);else if(r.k!=Xr)return null}while(r&&r.k!=(Ht(),Xr));return r}function hSn(e,t){var r,o,a,u,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=jY(e,f,m,v),u=1;uy&&(m=r,v=a,y=o);t.a=v,t.c=m}function D0(e,t,r,o){var a,u;if(a=me(F(r,(Ue(),FI)))===me((b1(),Vy)),u=l(F(r,hAe),16),br(e,(Ie(),Cr)))if(a){if(u.Gc(F(e,$I))&&u.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 pSn(e,t,r){var o,a,u,f,p,m,y;for(y=new Qp(new PJe(e)),f=Z(X(cNt,1),sSt,12,0,[t,r]),p=0,m=f.length;pm-e.b&&pm-e.a&&pr.p?1:0:u.Ob()?1:-1}function SSn(e,t){var r,o,a,u,f,p;t.Tg(cTt,1),a=l(ve(e,(ef(),u4)),100),u=(!e.a&&(e.a=new ke(En,e,10,11)),e.a),f=jmn(u),p=b.Math.max(f.a,ce(le(ve(e,(yh(),c4))))-(a.b+a.c)),o=b.Math.max(f.b,ce(le(ve(e,VB)))-(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 Rge(e);for(t=l(ie((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),vn((!t.a&&(t.a=new Ei(Iu,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;)ky(r,r.i-1);return t}function za(e,t){Mo();var r,o,a,u;return t?t==(Tr(),$Lt)||(t==kLt||t==km||t==xLt)&&e!=K3e?new W0e(e,t):(o=l(t,689),r=o.Yk(),r||(c_(is((mc(),ao),t)),r=o.Yk()),u=(!r.i&&(r.i=new hn),r.i),a=l(Ss(ns(u.f,e)),2020),!a&&Jn(u,e,a=new W0e(e,t)),a):TLt}function TSn(e,t){var r,o;if(o=qO(e.b,t.b),!o)throw Y(new ts("Invalid hitboxes for scanline constraint calculation."));(tpt(t.b,l(Ten(e.b,t.b),60))||tpt(t.b,l(Sen(e.b,t.b),60)))&&eg(),e.a[t.b.f]=l(Aq(e.b,t.b),60),r=l(Tq(e.b,t.b),60),r&&(e.a[r.f]=t.b)}function ASn(e,t){var r,o,a,u,f,p,m,y,v;for(m=l(F(e,(Ie(),wr)),12),y=xs(Z(X($i,1),Pe,8,0,[m.i.n,m.n,m.a])).a,v=e.i.n.b,r=Df(e.e),a=r,u=0,f=a.length;u0?u.a?(p=u.b.Kf().a,r>p&&(a=(r-p)/2,u.d.b=a,u.d.c=a)):u.d.c=e.s+r:k3(e.u)&&(o=$be(u.b),o.c<0&&(u.d.b=-o.c),o.c+o.b>u.b.Kf().a&&(u.d.c=o.c+o.b-u.b.Kf().a))}function ISn(e,t){var r,o,a,u,f;f=new je,r=t;do u=l(Ut(e.b,r),134),u.B=r.c,u.D=r.d,Rt(f.c,u),r=l(Ut(e.k,r),17);while(r);return o=(at(0,f.c.length),l(f.c[0],134)),o.j=!0,o.A=l(o.d.a.ec().Jc().Pb(),17).c.i,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 RSn(e){var t,r;r=l(F(e,(Ue(),Cs)),166),t=l(F(e,(Ie(),hm)),316),r==(iu(),xp)?(Te(e,Cs,gL),Te(e,hm,(lp(),QE))):r==gm?(Te(e,Cs,gL),Te(e,hm,(lp(),kT))):t==(lp(),QE)?(Te(e,Cs,xp),Te(e,hm,dL)):t==kT&&(Te(e,Cs,gm),Te(e,hm,dL))}function $F(){$F=K,xL=new lHe,G4t=$n(new ci,(Vi(),la),(Xi(),N$)),W4t=Ra($n(new ci,la,P$),zo,M$),K4t=Pf(Pf(ZN(Ra($n(new ci,id,B$),zo,$$),da),F$),U$),q4t=Ra($n($n($n(new ci,kh,I$),da,O$),da,Gx),zo,R$),V4t=Ra($n($n(new ci,da,Gx),da,k$),zo,x$)}function NC(){NC=K,X4t=$n(Ra(new ci,(Vi(),zo),(Xi(),bSe)),la,N$),tRt=Pf(Pf(ZN(Ra($n(new ci,id,B$),zo,$$),da),F$),U$),Z4t=Ra($n($n($n(new ci,kh,I$),da,O$),da,Gx),zo,R$),eRt=$n($n(new ci,la,P$),zo,M$),Q4t=Ra($n($n(new ci,da,Gx),da,k$),zo,x$)}function OSn(e,t,r,o,a){var u,f;(!fo(t)&&t.c.i.c==t.d.i.c||!dht(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 To(r)):Gn(t.a,new To(r)),o&&!bl(e.a,r)&&(f=l(F(t,(Ue(),as)),79),f||(f=new Lc,Te(t,as,f)),u=new To(r),Wr(f,u,f.c.b,f.c),gi(e.a,u)))}function Mwt(e,t){var r,o,a,u;for(u=On(yo(Sh,ph(On(yo(t==null?0:Rr(t),Th)),15))),r=u&e.b.length-1,a=null,o=e.b[r];o;a=o,o=o.a)if(o.d==u&&rp(o.i,t))return a?a.a=o.a:e.b[r]=o.a,DQe(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 DSn(e){var t,r;for(r=new Ft(Gt(si(e).a.Jc(),new D));an(r);)if(t=l(en(r),17),t.c.i.k!=(Ht(),ta))throw Y(new _f(HX+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 Pwt(e,t){var r,o,a,u,f,p,m,y,v,T,N;a=t?new mUe:new EUe,u=!1;do for(u=!1,y=t?ou(e.b):e.b,m=y.Jc();m.Ob();)for(p=l(m.Pb(),26),N=jb(p.a),t||ou(N),T=new V(N);T.a=0;f+=a?1:-1){for(p=t[f],m=o==(He(),Qt)?a?ks(p,o):ou(ks(p,o)):a?ou(ks(p,o)):ks(p,o),u&&(e.c[p.p]=m.gc()),T=m.Jc();T.Ob();)v=l(T.Pb(),12),e.d[v.p]=y++;li(r,m)}}function Fwt(e,t,r){var o,a,u,f,p,m,y,v;for(u=ce(le(e.b.Jc().Pb())),y=ce(le(opn(t.b))),o=tp(Ao(e.a),y-r),a=tp(Ao(t.a),r-u),v=mr(o,a),tp(v,1/(y-u)),this.a=v,this.b=new je,p=!0,f=e.b.Jc(),f.Pb();f.Ob();)m=ce(le(f.Pb())),p&&m-r>LZ&&(this.b.Ec(r),p=!1),this.b.Ec(m);p&&this.b.Ec(r)}function MSn(e){var t,r,o,a;if(ZTn(e,e.n),e.d.c.length>0){for(HN(e.c);Nme(e,l(q(new V(e.e.a)),126))>5,t&=31,o>=e.d)return e.e<0?(jf(),axt):(jf(),wI);if(u=e.d-o,a=we(Rn,Qn,30,u+1,15,1),Myn(a,u,e.a,o,t),e.e<0){for(r=0;r0&&e.a[r]<<32-t){for(r=0;r=0?!1:(r=RE((mc(),ao),a,t),r?(o=r.Gk(),(o>1||o==-1)&&f0(is(ao,r))!=3):!0)):!1}function USn(e,t,r,o){var a,u,f,p,m,y,v,T,N,R;if(m=e.c.d,y=e.d.d,m.j!=y.j)for(R=e.b,v=null,p=null,f=K1n(e),f&&R.i&&(v=e.b.i.i,p=R.i.j),a=m.j,T=null;a!=y.j;)T=t==0?Gj(a):p1e(a),u=V1e(a,R.d[a.g],r),N=V1e(T,R.d[T.g],r),f&&v&&p&&(a==v?_gt(u,v,p):T==v&&_gt(N,v,p)),Gn(o,mr(u,N)),a=T}function Xme(e,t,r){var o,a,u,f,p,m;if(o=uen(r,e.length),f=e[o],u=FQe(r,f.length),f[u].k==(Ht(),yi))for(m=t.j,a=0;a0&&(r[0]+=e.d,f-=r[0]),r[2]>0&&(r[2]+=e.d,f-=r[2]),u=b.Math.max(0,f),r[1]=b.Math.max(r[1],f),wpe(e,$a,a.c+o.b+r[0]-(r[1]-f)/2,r),t==$a&&(e.c.b=u,e.c.c=a.c+o.b+(u-f)/2)}function Vwt(){this.c=we(Ki,Xo,30,(He(),Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt])).length,15,1),this.b=we(Ki,Xo,30,Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt]).length,15,1),this.a=we(Ki,Xo,30,Z(X(Oo,1),ea,64,0,[Is,Vt,Qt,dn,Wt]).length,15,1),kle(this.c,Kr),kle(this.b,Li),kle(this.a,Li)}function WSn(e,t,r,o){var a,u,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]=u,e.c||kE(e)}}function KSn(e,t,r){var o,a,u,f,p,m,y;for(y=t.d,e.a=new Da(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(u=T.Jc();u.Ob();){for(a=l(u.Pb(),57),v=0;ve.d[f.p]&&(r+=lpe(e.b,u),d1(e.a,Oe(u)));for(;!zN(e.a);)Gpe(e.b,l(CS(e.a),15).a)}return r}function Ywt(e,t,r){var o,a,u,f;for(u=(!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||(u+=Ywt(e,o,!1));if(r)for(f=Br(t);f;)u+=(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i,f=Br(f);return u}function ky(e,t){var r,o,a,u;return e.Nj()?(o=null,a=e.Oj(),e.Rj()&&(o=e.Tj(e.Yi(t),null)),r=e.Gj(4,u=ZS(e,t),null,t,a),e.Kj()&&u!=null&&(o=e.Mj(u,o)),o?(o.lj(r),o.mj()):e.Hj(r),u):(u=ZS(e,t),e.Kj()&&u!=null&&(o=e.Mj(u,null),o&&o.mj()),u)}function tTn(e){var t,r,o,a,u,f,p,m,y,v;for(y=e.a,t=new pi,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 nTn(e,t,r){var o,a,u,f,p,m;for(f=l(F(e,(Ie(),ite)),16).Jc();f.Ob();){switch(u=l(f.Pb(),9),l(F(u,(Ue(),Cs)),166).g){case 2:Oi(u,t);break;case 4:Oi(u,r)}for(a=new Ft(Gt(Lf(u).a.Jc(),new D));an(a);)o=l(en(a),17),!(o.c&&o.d)&&(p=!o.d,m=l(F(o,_Te),12),p?Yi(o,m):mo(o,m))}}function $o(){$o=K,Q$=new Bw("COMMENTS",0),rl=new Bw("EXTERNAL_PORTS",1),CI=new Bw("HYPEREDGES",2),eB=new Bw("HYPERNODES",3),Qx=new Bw("NON_FREE_PORTS",4),ZE=new Bw("NORTH_SOUTH_PORTS",5),II=new Bw(ASt,6),Xx=new Bw("CENTER_LABELS",7),Zx=new Bw("END_LABELS",8),tB=new Bw("PARTITIONS",9)}function rTn(e,t,r,o,a){return o<0?(o=xE(e,a,Z(X(Je,1),Pe,2,6,[iX,oX,sX,aX,lT,cX,uX,lX,dX,fX,hX,pX]),t),o<0&&(o=xE(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 iTn(e,t,r,o,a){return o<0?(o=xE(e,a,Z(X(Je,1),Pe,2,6,[iX,oX,sX,aX,lT,cX,uX,lX,dX,fX,hX,pX]),t),o<0&&(o=xE(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 oTn(e,t,r,o,a,u){var f,p,m,y;if(p=32,o<0){if(t[0]>=e.length||(p=uo(e,t[0]),p!=43&&p!=45)||(++t[0],o=NF(e,t),o<0))return!1;p==45&&(o=-o)}return p==32&&t[0]-r==2&&a.b==2&&(m=new V9,y=m.q.getFullYear()-N1+N1-80,f=y%100,u.a=o==f,o+=(y/100|0)*100+(o=0?E1(e):I3(E1(cg(e)))),yI[t]=N8(fh(e,t),0)?E1(fh(e,t)):I3(E1(cg(fh(e,t)))),e=yo(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 lTn(e){var t,r,o,a,u,f,p;for(u=new Qp(l(kn(new Af),50)),p=Li,r=new V(e.d);r.anTt?ki(m,e.b):o<=nTt&&o>rTt?ki(m,e.d):o<=rTt&&o>iTt?ki(m,e.c):o<=iTt&&ki(m,e.a),u=Qwt(e,m,u);return a}function eyt(e,t,r,o){var a,u,f,p,m,y;for(a=(o.c+o.a)/2,tu(t.j),Gn(t.j,a),tu(r.e),Gn(r.e,a),y=new PQe,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 e0e(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(u=0;u<10;u++)NU[u]=48+u&Ti;for(e=10;e<=15;e++)NU[e]=65+e-10&Ti}function iyt(e,t){t.Tg("Process graph bounds",1),Te(e,(Nr(),ine),wO(CK(ny(new vt(null,new St(e.b,16)),new UHe)))),Te(e,one,wO(CK(ny(new vt(null,new St(e.b,16)),new HHe)))),Te(e,V_e,wO(NK(ny(new vt(null,new St(e.b,16)),new zHe)))),Te(e,W_e,wO(NK(ny(new vt(null,new St(e.b,16)),new GHe)))),t.Ug()}function gTn(e){var t,r,o,a,u;a=l(F(e,(Ue(),mm)),24),u=l(F(e,EB),24),r=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new To(r),a.Gc((su(),gv))&&(o=l(F(e,nk),8),u.Gc((Uc(),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,xte)))||z_n(e,r,t)}function bTn(e){var t,r,o,a,u,f,p;for(t=!1,r=0,a=new V(e.d.b);a.a>19)return"-"+oyt(k_(e));for(r=e,o="";!(r.l==0&&r.m==0&&r.h==0);){if(a=KW(i7),r=$0e(r,a,!0),t=""+aet(D1),!(r.l==0&&r.m==0&&r.h==0))for(u=9-t.length;u>0;u--)t="0"+t;o=t+o}return o}function mTn(){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 wTn(e,t,r){var o,a,u,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=Bme(e,p,a),m=nmt(t.d)):(p=nmt(t.c),m=Bme(e,m,a)),y=new U9(t.a),Wr(y,p,y.a,y.a.a),Wr(y,m,y.c.b,y.c),f=t.c==o,T=new CZe,u=0;u=e.a||!Mbe(t,r))return-1;if(sy(l(o.Kb(t),22)))return 1;for(a=0,f=l(o.Kb(t),22).Jc();f.Ob();)if(u=l(f.Pb(),17),m=u.c.i==t?u.d.i:u.c.i,p=r0e(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,KB=new Mi((_n(),gk),1.3),IOt=new Mi(lv,(Lt(),!1)),Yxe=new xb(15),u4=new Mi(df,Yxe),l4=new Mi(Od,15),xOt=$L,COt=Am,ROt=m2,OOt=q1,NOt=b2,Dne=v4,DOt=dv,Qxe=(S0e(),TOt),Zxe=SOt,Mne=_Ot,eke=AOt,Kxe=yOt,Lne=wOt,Wxe=mOt,Xxe=EOt,qxe=y4,kOt=bre,OL=pOt,Gxe=hOt,DL=gOt,Jxe=vOt,Vxe=bOt}function syt(e,t){var r,o,a,u,f,p;if(me(t)===me(e))return!0;if(!se(t,16)||(o=l(t,16),p=e.gc(),o.gc()!=p))return!1;if(f=o.Jc(),e.Wi()){for(r=0;r0){if(e.Zj(),t!=null){for(u=0;u>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw Y(new kf("Invalid hexadecimal"))}}function cyt(e,t,r,o){var a,u,f,p,m,y;for(m=zY(e,r),y=zY(t,r),a=!1;m&&y&&(o||wmn(m,y,r));)f=zY(m,r),p=zY(y,r),d6(t),d6(e),u=m.c,HJ(m,!1),HJ(y,!1),r?(S1(t,y.p,u),t.p=y.p,S1(e,m.p+1,u),e.p=m.p):(S1(e,m.p,u),e.p=m.p,S1(t,y.p+1,u),t.p=y.p),Oi(m,null),Oi(y,null),m=f,y=p,a=!0;return a}function uyt(e){switch(e.g){case 0:return new VWe;case 1:return new LWe;case 3:return new ttt;case 4:return new CUe;case 5:return new Oit;case 6:return new WWe;case 2:return new MWe;case 7:return new BWe;case 8:return new DWe;default:throw Y(new jt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function STn(e,t,r,o){var a,u,f,p,m;for(a=!1,u=!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),TK(this.e,this.c,(He(),Wt)),this.i=new FO(o),TK(this.i,this.c,Qt),this.f=new nst(this.c),this.a=!u&&a.i&&!a.s&&this.c[0].k==(Ht(),yi),this.a&&Uyn(this,e,t.length)}function dyt(e,t){var r,o,a,u,f,p;u=!e.B.Gc((Uc(),ZL)),f=e.B.Gc(Cre),e.a=new Ggt(f,u,e.c),e.n&&Nhe(e.a.n,e.n),lq(e.g,(Sd(),$a),e.a),t||(o=new fC(1,u,e.c),o.n.a=e.k,IS(e.p,(He(),Vt),o),a=new fC(1,u,e.c),a.n.d=e.k,IS(e.p,dn,a),p=new fC(0,u,e.c),p.n.c=e.k,IS(e.p,Wt,p),r=new fC(0,u,e.c),r.n.b=e.k,IS(e.p,Qt,r))}function ATn(e){var t,r,o;switch(t=l(F(e.d,(Ue(),kp)),225),t.g){case 2:r=g3n(e);break;case 3:r=(o=new je,ei(dr(Oa(bs(bs(new vt(null,new St(e.d.b,16)),new FBe),new $Be),new BBe),new TBe),new fJe(o)),o);break;default:throw Y(new ts("Compaction not supported for "+t+" edges."))}jxn(e,r),lo(new Xh(e.g),new cJe(e))}function _Tn(e,t){var r,o,a,u,f,p,m;if(t.Tg("Process directions",1),r=l(F(e,(js(),cw)),87),r!=(Si(),ff))for(a=An(e.b,0);a.b!=a.d.c;){switch(o=l(Sn(a),41),p=l(F(o,(Nr(),CL)),15).a,m=l(F(o,IL),15).a,r.g){case 4:m*=-1;break;case 1:u=p,p=m,m=u;break;case 2:f=p,p=-m,m=f}Te(o,CL,Oe(p)),Te(o,IL,Oe(m))}t.Ug()}function xTn(e){var t,r,o,a,u,f,p,m;for(m=new vlt,p=new V(e.a);p.a0&&t=0)return!1;if(t.p=r.b,Fe(r.e,t),a==(Ht(),bi)||a==_a){for(f=new V(t.j);f.ae.d[p.p]&&(r+=lpe(e.b,u),d1(e.a,Oe(u)))):++f;for(r+=e.b.d*f;!zN(e.a);)Gpe(e.b,l(CS(e.a),15).a)}return r}function Syt(e){var t,r,o,a,u,f;return u=0,t=Sl(e),t.ik()&&(u|=4),e.Bb&yc&&(u|=2),se(e,104)?(r=l(e,20),a=Po(r),r.Bb&Ws&&(u|=32),a&&(ln(iy(a)),u|=8,f=a.t,(f>1||f==-1)&&(u|=16),a.Bb&Ws&&(u|=64)),r.Bb&Io&&(u|=yp),u|=Tl):se(t,462)?u|=512:(o=t.ik(),o&&o.i&1&&(u|=256)),e.Bb&512&&(u|=128),u}function FTn(e,t){var r;return e.f==zre?(r=f0(is((mc(),ao),t)),e.e?r==4&&t!=(rT(),XT)&&t!=(rT(),JT)&&t!=(rT(),Gre)&&t!=(rT(),qre):r==2):e.d&&(e.d.Gc(t)||e.d.Gc(MS(is((mc(),ao),t)))||e.d.Gc(RE((mc(),ao),e.b,t)))?!0:e.f&&zme((mc(),e.f),WO(is(ao,t)))?(r=f0(is(ao,t)),e.e?r==4:r==2):!1}function $Tn(e,t){var r,o,a,u,f,p,m,y;for(u=new je,t.b.c.length=0,r=l(Ac(Ghe(new vt(null,new St(new Xh(e.a.b),1))),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16),a=r.Jc();a.Ob();)if(o=l(a.Pb(),15),f=rpe(e.a,o),f.b!=0)for(p=new ra(t),Rt(u.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,u)}function vJ(e){var t,r,o,a,u,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,u=b.Math.atan2(T,y),u<0&&(u+=sm),u+=t,u>sm&&(u-=sm),Ud(),Yl(1e-10),b.Math.abs(a-u)<=1e-10||a==u||isNaN(a)&&isNaN(u)?0:au?1:kb(isNaN(a),isNaN(u))}function c0e(e,t,r,o){var a,u,f;t&&(u=ce(le(F(t,(Nr(),Ng))))+o,f=r+ce(le(F(t,FB)))/2,Te(t,CL,Oe(On(Gs(b.Math.round(u))))),Te(t,IL,Oe(On(Gs(b.Math.round(f))))),t.d.b==0||c0e(e,l(P8((a=An(new Qh(t).a.d,0),new Vv(a))),41),r+ce(le(F(t,FB)))+e.b,o+ce(le(F(t,lk)))),F(t,ane)!=null&&c0e(e,l(F(t,ane),41),r,o))}function zTn(e,t){var r,o,a,u;if(u=l(ve(e,(_n(),w2)),64).g-l(ve(t,w2),64).g,u!=0)return u;if(r=l(ve(e,Ere),15),o=l(ve(t,Ere),15),r&&o&&(a=r.a-o.a,a!=0))return a;switch(l(ve(e,w2),64).g){case 1:return vr(e.i,t.i);case 2:return vr(e.j,t.j);case 3:return vr(t.i,e.i);case 4:return vr(t.j,e.j);default:throw Y(new ts(Lwe))}}function u0e(e){var t,r,o;return e.Db&64?tJ(e):(t=new fu(fEe),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(ie(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 Tyt(e){var t,r,o;return e.Db&64?tJ(e):(t=new fu(hEe),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(ie(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 GTn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M;for(R=-1,M=0,v=t,T=0,N=v.length;T0&&++M;++R}return M}function qTn(e,t){var r,o,a,u,f;for(t==(nC(),Wte)&&vC(l(yr(e.a,(Ey(),sL)),16)),a=l(yr(e.a,(Ey(),sL)),16).Jc();a.Ob();)switch(o=l(a.Pb(),108),r=l(ze(o.j,0),114).d.j,u=new Tc(o.j),ki(u,new KBe),t.g){case 2:KY(e,u,r,(T0(),j1),1);break;case 1:case 0:f=M2n(u),KY(e,new Rf(u,0,f),r,(T0(),j1),0),KY(e,new Rf(u,f,u.c.length),r,j1,1)}}function VTn(e){var t,r,o,a,u,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(u,dn),u.d&&(p=u.o.b,t=u.a.b,u.a.b=p-t)):u.j==dn&&a.p>e.p&&(Ii(u,Vt),u.d&&(p=u.o.b,t=u.a.b,u.a.b=-(p-t)));break}return a}function l0e(e,t){var r,o,a,u,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 Pw(p));o.a.Ob();)if(r=(u=l(o.a.Pb(),45),l(u.kd(),144)),f=r.c,m=t.length,wt(f.substr(f.length-m,m),t)&&(t.length==f.length||uo(f,f.length-t.length-1)==46)){if(a)return null;a=r}a&&rs(e.a,t,a)}return a}function ex(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=new Me(t,r),v=new V(e.a);v.awg&&iY(p,u,r),kyt(e,v)}function Nyt(e,t,r,o,a,u,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+u.a+f;break;case 4:e.c-=f+u.a+f+t.Kf().a;break;case 1:e.c+=a.Kf().a+f,e.d-=f+u.b+f+t.Kf().b;break;case 3:e.c+=a.Kf().a+f,e.d+=a.Kf().b+f+u.b+f}}function YTn(e,t,r,o){var a,u,f,p,m,y,v,T,N,R,M;if(u=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 x1(){x1=K,NB=new Uw(_d,0),SL=new Uw("NIKOLOV",1),TL=new Uw("NIKOLOV_PIXEL",2),l_e=new Uw("NIKOLOV_IMPROVED",3),d_e=new Uw("NIKOLOV_IMPROVED_PIXEL",4),u_e=new Uw("DUMMYNODE_PERCENTAGE",5),f_e=new Uw("NODECOUNT_PERCENTAGE",6),CB=new Uw("NO_BOUNDARY",7),ak=new Uw("MODEL_ORDER_LEFT_TO_RIGHT",8),KI=new Uw("MODEL_ORDER_RIGHT_TO_LEFT",9)}function SJ(e,t){var r,o,a,u,f,p,m,y,v,T,N,R;return v=null,N=Dme(e,t),o=null,p=l(ve(t,(_n(),Y6t)),301),p?o=p:o=(V3(),YL),R=o,R==(V3(),YL)&&(a=null,y=l(Ut(e.r,N),301),y?a=y:a=Nre,R=a),Jn(e.r,t,R),u=null,m=l(ve(t,K6t),280),m?u=m:u=(O_(),zL),T=u,T==(O_(),zL)&&(f=null,r=l(Ut(e.b,N),280),r?f=r:f=uU,T=f),v=l(Jn(e.b,t,T),280),v}function rAn(e){var t,r,o,a,u;for(o=e.length,t=new GN,u=0;u=40,f&&n_n(e),bxn(e),MSn(e),r=vgt(e),o=0;r&&o0&&Gn(e.g,u)):(e.d[f]-=y+1,e.d[f]<=0&&e.a[f]>0&&Gn(e.f,u))))}function jyt(e,t,r,o){var a,u,f,p,m,y,v;for(m=new Me(r,o),Di(m,l(F(t,(Nr(),uk)),8)),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),mr(y.e,m),Gn(e.b,y);for(p=l(Ac(Uhe(new vt(null,new St(t.a,16))),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16).Jc();p.Ob();){for(f=l(p.Pb(),65),u=An(f.a,0);u.b!=u.d.c;)a=l(Sn(u),8),a.a+=m.a,a.b+=m.b;Gn(e.a,f)}}function w0e(e,t){var r,o,a,u;if(0<(se(e,18)?l(e,18).gc():yd(e.Jc()))){if(a=t,1=0&&m1)&&t==1&&l(e.a[e.b],9).k==(Ht(),ta)?aT(l(e.a[e.b],9),(vu(),Ih)):o&&(!r||(e.c-e.b&e.a.length-1)>1)&&t==1&&l(e.a[e.c-1&e.a.length-1],9).k==(Ht(),ta)?aT(l(e.a[e.c-1&e.a.length-1],9),(vu(),V1)):(e.c-e.b&e.a.length-1)==2?(aT(l(Q3(e),9),(vu(),Ih)),aT(l(Q3(e),9),V1)):ZEn(e,a),cpe(e)}function vAn(e){var t,r,o,a,u,f,p,m;for(m=new hn,t=new eq,f=e.Jc();f.Ob();)a=l(f.Pb(),9),p=o0(lO(new Tb,a),t),ec(m.f,a,p);for(u=e.Jc();u.Ob();)for(a=l(u.Pb(),9),o=new Ft(Gt(Or(a).a.Jc(),new D));an(o);)r=l(en(o),17),!fo(r)&&Ql($l(Ul(Bl(Hl(new gl,b.Math.max(1,l(F(r,(Ue(),zAe)),15).a)),1),l(Ut(m,r.c.i),126)),l(Ut(m,r.d.i),126)));return t}function Byt(e,t,r,o){var a,u,f,p,m,y,v,T,N,R;if(Gfn(e,t,r),u=t[r],R=o?(He(),Wt):(He(),Qt),enn(t.length,r,o)){for(a=t[o?r-1:r+1],xpe(e,a,o?(Fo(),Ba):(Fo(),Cc)),m=u,v=0,N=m.length;vu*2?(v=new pj(T),y=hc(f)/eu(f),m=VJ(v,t,new oS,r,o,a,y),mr(wd(v.e),m),T.c.length=0,u=0,Rt(T.c,v),Rt(T.c,f),u=hc(v)*eu(v)+hc(f)*eu(f)):(Rt(T.c,f),u+=hc(f)*eu(f));return T}function SAn(e,t){var r,o,a,u,f,p,m;for(t.Tg("Port order processing",1),m=l(F(e,(Ue(),HAe)),426),o=new V(e.b);o.ar?t:r;y<=T;++y)y==r?p=o++:(u=a[y],v=M.$l(u.Jk()),y==t&&(m=y==T&&!v?o-1:o),v&&++o);return N=l(cC(e,t,r),76),p!=m&&LA(e,new a6(e.e,7,f,Oe(p),R.kd(),m)),N}}else return l(uJ(e,t,r),76);return l(cC(e,t,r),76)}function y0e(e,t){var r,o,a,u,f,p,m,y,v,T;for(T=0,u=new oE,d1(u,t);u.b!=u.c;)for(m=l(CS(u),221),y=0,v=l(F(t.j,(Ue(),Ch)),270),l(F(t.j,FI),330),f=ce(le(F(t.j,bL))),p=ce(le(F(t.j,pte))),v!=(bp(),U1)&&(y+=f*o2n(t.j,m.e,v),y+=p*GTn(t.j,m.e)),T+=rbt(m.d,m.e)+y,a=new V(m.b);a.a=0&&(p=Rmn(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&&$K(m),u&&(o?(D1=k_(e),a&&(D1=Zht(D1,(m_(),XEe)))):D1=Ua(e.l,e.m,e.h)),m}function _An(e,t){var r,o,a,u,f,p,m,y,v,T;for(y=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,p=new V(e.a);p.a0&&(Jt(0,e.length),e.charCodeAt(0)==45||(Jt(0,e.length),e.charCodeAt(0)==43))?1:0,o=f;or)throw Y(new kf(F0+e+'"'));return p}function xAn(e){var t,r,o,a,u,f,p;for(f=new Ar,u=new V(e.a);u.a=e.length)return r.o=0,!0;switch(uo(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return r.o=0,!0}if(++t[0],u=t[0],f=NF(e,t),f==0&&t[0]==u)return!1;if(t[0]p&&(p=a,v.c.length=0),a==p&&Fe(v,new Co(r.c.i,r)));At(),ki(v,e.c),Nb(e.b,m.p,v)}}function OAn(e,t){var r,o,a,u,f,p,m,y,v;for(f=new V(t.b);f.ap&&(p=a,v.c.length=0),a==p&&Fe(v,new Co(r.d.i,r)));At(),ki(v,e.c),Nb(e.f,m.p,v)}}function DAn(e){var t,r,o,a,u,f,p;for(u=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=Jo(l(ie((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)),!ly(p,u))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=Jo(l(ie((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83)),!ly(f,u))return!0;return!1}function LAn(e){var t,r,o,a,u;o=l(F(e,(Ie(),wr)),19),u=l(ve(o,(Ue(),mm)),185).Gc((su(),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(($o(),rl))?(Vn(o,Zr,(qi(),fa)),M0(o,t.a,t.b,!1,!0)):Ye(Ke(ve(o,xte)))||M0(o,t.a,t.b,!0,!0)),u?Vn(o,mm,lt(xm)):Vn(o,mm,(r=l(md(N4),10),new Hu(r,l(Gl(r,r.length),10),0)))}function MAn(e,t){var r,o,a,u,f,p,m,y;if(y=Ke(F(t,(js(),ARt))),y==null||(Mt(y),y)){for(aEn(e,t),a=new je,m=An(t.b,0);m.b!=m.d.c;)f=l(Sn(m),41),r=rme(e,f,null),r&&(qs(r,t),Rt(a.c,r));if(e.a=null,e.b=null,a.c.length>1)for(o=new V(a);o.a=0&&p!=r&&(u=new Pi(e,1,p,f,null),o?o.lj(u):o=u),r>=0&&(u=new Pi(e,1,r,p==r?f:null,t),o?o.lj(u):o=u)),o}function Hyt(e){var t,r,o;if(e.b==null){if(o=new Xp,e.i!=null&&(Wo(o,e.i),o.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(Oan(e.i)||(o.a+="//"),Wo(o,e.a)),e.d!=null&&(o.a+="/",Wo(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&&(c6(r,u-r.s),r.c=!0,c6(o,u-r.s),U6(o,r.s,r.t+r.d+p),o.k=!0,Tge(r.q,o),R=!0,a&&(vj(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)))),R)}function HAn(e,t){var r,o,a,u,f,p;if(t.Tg("Partition midprocessing",1),a=new b0,ei(dr(new vt(null,new St(e.a,16)),new S$e),new VYe(a)),a.d!=0){for(p=l(Ac(Ghe((u=a.i,new vt(null,(u||(a.i=new aE(a,a.c))).Lc()))),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16),o=p.Jc(),r=l(o.Pb(),15);o.Ob();)f=l(o.Pb(),15),L2n(l(yr(a,r),24),l(yr(a,f),24)),r=f;t.Ug()}}function RC(e,t){var r,o,a,u,f;if(e.Ab){if(e.Ab){if(f=e.Ab.i,f>0){if(a=l(e.Ab.g,2012),t==null){for(u=0;ur.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)),u=p,T=N;return r}function qAn(e,t,r){var o,a,u,f,p,m,y,v;for(r.Tg(qSt,1),Zs(e.b),Zs(e.a),p=null,u=An(t.b,0);!p&&u.b!=u.d.c;)y=l(Sn(u),41),Ye(Ke(F(y,(Nr(),G1))))&&(p=y);for(m=new Ar,Wr(m,p,m.c.b,m.c),xEt(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,rne,Oe(a)),o=1+(wa(e.a,f)!=null?l(wa(e.a,f),15).a:0),Te(y,q_e,Oe(o));r.Ug()}function Kyt(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 jGe))),Le(e,V0,B0,Jke),Le(e,V0,$0,15),Le(e,V0,CD,Oe(0)),Le(e,V0,rEe,Ge(Wke)),Le(e,V0,PE,Ge(P6t)),Le(e,V0,bT,Ge(j6t)),Le(e,V0,mx,yTt),Le(e,V0,wx,Ge(Kke)),Le(e,V0,mT,Ge(Yke)),Le(e,V0,iEe,Ge(lre)),Le(e,V0,I7,Ge(M6t))}function Yyt(e,t){var r,o,a,u,f,p,m,y,v;if(a=e.i,f=a.o.a,u=a.o.b,f<=0&&u<=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(),Wt;if(y+p>f)return He(),Qt;break;case 4:case 3:if(v<0)return He(),Vt;if(v+r>u)return He(),dn}return m=(y+p/2)/f,o=(v+r/2)/u,m+o<=1&&m-o<=0?(He(),Wt):m+o>=1&&m-o>=0?(He(),Qt):o<.5?(He(),Vt):(He(),dn)}function Jyt(e,t,r,o,a,u,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)&&(u=$be(p.b),u.d<0&&(p.d.d=-u.d),u.d+u.a>p.b.Kf().b&&(p.d.a=u.d+u.a-p.b.Kf().b))}function ed(){ed=K,AT=new Mi((_n(),HL),Oe(1)),E$=new Mi(Od,80),kkt=new Mi(xNe,5),mkt=new Mi(gk,bx),_kt=new Mi(Tre,Oe(1)),xkt=new Mi(Are,(Lt(),!0)),D2e=new xb(50),Tkt=new Mi(df,D2e),I2e=y4,L2e=bk,wkt=new Mi(iU,!1),O2e=v4,Ekt=lv,Skt=q1,vkt=Am,ykt=b2,Akt=dv,R2e=(Ybe(),lkt),uee=pkt,v$=ukt,cee=dkt,M2e=hkt,Ikt=wk,Rkt=aU,Ckt=hv,Nkt=mk,P2e=(VS(),bv),new Mi(VT,P2e)}function KAn(e,t){var r;switch(b6(e)){case 6:return zi(t);case 7:return zw(t);case 8:return Hw(t);case 3:return Array.isArray(t)&&(r=b6(t),!(r>=14&&r<=16));case 11:return t!=null&&typeof t===XJ;case 12:return t!=null&&(typeof t===pD||typeof t==XJ);case 0:return TY(t,e.__elementTypeId$);case 2:return rW(t)&&t.Rm!==fe;case 1:return rW(t)&&t.Rm!==fe||TY(t,e.__elementTypeId$);default:return!0}}function YAn(e){var t,r,o,a;o=e.o,Ww(),e.A.dc()||gr(e.A,_2e)?a=o.a:(e.D?a=b.Math.max(o.a,SC(e.f)):a=SC(e.f),e.A.Gc((su(),JL))&&!e.B.Gc((Uc(),C4))&&(a=b.Math.max(a,SC(l(Ko(e.p,(He(),Vt)),256))),a=b.Math.max(a,SC(l(Ko(e.p,dn),256)))),t=$ht(e),t&&(a=b.Math.max(a,t.a))),Ye(Ke(e.e.Rf().mf((_n(),lv))))?o.a=b.Math.max(o.a,a):o.a=a,r=e.f.i,r.c=0,r.b=a,CJ(e.f)}function Xyt(e,t){var r,o,a,u;return o=b.Math.min(b.Math.abs(e.c-(t.c+t.b)),b.Math.abs(e.c+e.b-t.c)),u=b.Math.min(b.Math.abs(e.d-(t.d+t.a)),b.Math.abs(e.d+e.a-t.d)),r=b.Math.abs(e.c+e.b/2-(t.c+t.b/2)),r>e.b/2+t.b/2||(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?u/a+1:a==0?o/r+1:b.Math.min(o/r,u/a)+1}function JAn(e,t){var r,o,a,u,f,p,m;for(u=0,p=0,m=0,a=new V(e.f.e);a.a0&&e.d!=(G3(),fee)&&(p+=f*(o.d.a+e.a[t.a][o.a]*(t.d.a-o.d.a)/r)),r>0&&e.d!=(G3(),lee)&&(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/u,t.d.b);case 2:return new Me(t.d.a,m/u);default:return new Me(p/u,m/u)}}function Zyt(e){var t,r,o,a,u,f;for(r=(!e.a&&(e.a=new Ei(Iu,e,5)),e.a).i+2,f=new Da(r),Fe(f,new Me(e.j,e.k)),ei(new vt(null,(!e.a&&(e.a=new Ei(Iu,e,5)),new St(e.a,16))),new _Xe(f)),Fe(f,new Me(e.b,e.c)),t=1;t0&&(I6(m,!1,(Si(),cs)),I6(m,!0,fs)),La(t.g,new _tt(e,r)),Jn(e.g,t,r)}function S0e(){S0e=K,vOt=new ht(Cve,(Lt(),!1)),Oe(-1),hOt=new ht(Ive,Oe(-1)),Oe(-1),pOt=new ht(Rve,Oe(-1)),gOt=new ht(Ove,!1),bOt=new ht(Dve,!1),zxe=(YP(),Pne),AOt=new ht(Lve,zxe),_Ot=new ht(Mve,-1),Hxe=(Kj(),One),TOt=new ht(Pve,Hxe),SOt=new ht(jve,!0),Bxe=(oj(),jne),yOt=new ht(Fve,Bxe),wOt=new ht($ve,!1),Oe(1),mOt=new ht(Bve,Oe(1)),Uxe=(Hj(),Fne),EOt=new ht(Uve,Uxe)}function tvt(){tvt=K;var e;for(o2e=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]),VQ=we(Rn,Qn,30,37,15,1),ixt=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]),s2e=we(pw,E2t,30,37,14,1),e=2;e<=36;e++)VQ[e]=bo(b.Math.pow(e,o2e[e])),s2e[e]=W6(wD,VQ[e])}function XAn(e){var t;if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(zTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));return t=new Lc,LK(l(ie((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83))&&wo(t,GEt(e,LK(l(ie((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83)),!1)),LK(l(ie((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83))&&wo(t,GEt(e,LK(l(ie((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83)),!0)),t}function nvt(e,t){var r,o,a,u,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),u=!1,o=new Ft(Gt(a.a.Jc(),new D));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]))&&(u=!0,bl(e.b,e.a.g[hmn(r,t.b).p])))return t.c=!0,t.a=r,t;return t.c=u,t.a=null,t}function T0e(e,t,r){var o,a,u,f,p,m,y;if(o=r.gc(),o==0)return!1;if(e.Nj())if(m=e.Oj(),C1e(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 e1(o),u=t+o,a=t;a0){for(f=0;f>16==-15&&e.Cb.Vh()&&oK(new rK(e.Cb,9,13,r,e.c,gg(Fc(l(e.Cb,62)),e))):se(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,se(t,89)||(t=(_t(),Ml)),se(r,89)||(r=(_t(),Ml)),oK(new rK(e.Cb,9,10,r,t,gg(oa(l(e.Cb,29)),e)))))),e.c}function ovt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M;if(t==r)return!0;if(t=kme(e,t),r=kme(e,r),o=IY(t),o){if(v=IY(r),v!=o)return v?(m=o.kk(),M=v.kk(),m==M&&m!=null):!1;if(f=(!t.d&&(t.d=new Ei(qo,t,1)),t.d),u=f.i,N=(!r.d&&(r.d=new Ei(qo,r,1)),r.d),u==N.i){for(y=0;y0,p=Wj(t,u),Cde(r?p.b:p.g,t),yE(p).c.length==1&&Wr(o,p,o.c.b,o.c),a=new Co(u,t),d1(e.o,a),Xa(e.e.a,u))}function cvt(e,t){var r,o,a,u,f,p,m;return o=b.Math.abs(mP(e.b).a-mP(t.b).a),p=b.Math.abs(mP(e.b).b-mP(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),u=b.Math.min(r,f),(1-u)*b.Math.sqrt(o*o+p*p)}function r_n(e){var t,r,o,a;for(qJ(e,e.e,e.f,(g0(),z1),!0,e.c,e.i),qJ(e,e.e,e.f,z1,!1,e.c,e.i),qJ(e,e.e,e.f,u2,!0,e.c,e.i),qJ(e,e.e,e.f,u2,!1,e.c,e.i),e_n(e,e.c,e.e,e.f,e.i),o=new Ji(e.i,0);o.b=65;r--)mf[r]=r-65<<24>>24;for(o=122;o>=97;o--)mf[o]=o-97+26<<24>>24;for(a=57;a>=48;a--)mf[a]=a-48+52<<24>>24;for(mf[43]=62,mf[47]=63,u=0;u<=25;u++)Pg[u]=65+u&Ti;for(f=26,m=0;f<=51;++f,m++)Pg[f]=97+m&Ti;for(e=52,p=0;e<=61;++e,p++)Pg[e]=48+p&Ti;Pg[62]=43,Pg[63]=47}function uvt(e,t){var r,o,a,u,f,p;return a=yge(e),p=yge(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)*S2t)+1)-(t.d>0?t.d:b.Math.floor((t.a-1)*S2t)+1),r>o+1?a:r0&&(f=fE(f,Svt(o))),n1t(u,f))):ay&&(N=0,R+=m+t,m=0),ex(f,N,R),r=b.Math.max(r,N+v.a),m=b.Math.max(m,v.b),N+=v.a+t;return new Me(r+t,R+m+t)}function k0e(e,t){var r,o,a,u,f,p,m;if(!Gd(e))throw Y(new ts(HTt));if(o=Gd(e),u=o.g,a=o.f,u<=0&&a<=0)return He(),Is;switch(p=e.i,m=e.j,t.g){case 2:case 1:if(p<0)return He(),Wt;if(p+e.g>u)return He(),Qt;break;case 4:case 3:if(m<0)return He(),Vt;if(m+e.f>a)return He(),dn}return f=(p+e.g/2)/u,r=(m+e.f/2)/a,f+r<=1&&f-r<=0?(He(),Wt):f+r>=1&&f-r>=0?(He(),Qt):r<.5?(He(),Vt):(He(),dn)}function s_n(e,t,r,o,a){var u,f;if(u=_o(Gi(t[0],Bo),Gi(o[0],Bo)),e[0]=On(u),u=c0(u,32),r>=a){for(f=1;f0&&(a.b[f++]=0,a.b[f++]=u.b[0]-1),t=1;tT?y=0:y=-1,t.a=N+o,f=0,a=y+1;a0&&(GG(m,m.d-a.d),a.c==(vd(),H1)&&DZt(m,m.a-a.d),m.d<=0&&m.i>0&&Wr(t,m,t.c.b,t.c)));for(u=new V(e.f);u.a0&&(T9(p,p.i-a.d),a.c==(vd(),H1)&&LZt(p,p.b-a.d),p.i<=0&&p.d>0&&Wr(r,p,r.c.b,r.c)))}function u_n(e,t,r,o,a){var u,f,p,m,y,v,T,N,R;for(At(),ki(e,new UGe),f=UO(e),R=new je,N=new je,p=null,m=0;f.b!=0;)u=l(f.b==0?null:(cn(f.b!=0),Vu(f,f.a.a)),168),!p||hc(p)*eu(p)/21&&(m>hc(p)*eu(p)/2||f.b==0)&&(T=new pj(N),v=hc(p)/eu(p),y=VJ(T,t,new oS,r,o,a,v),mr(wd(T.e),y),p=T,Rt(R.c,T),m=0,N.c.length=0));return li(R,N),R}function ca(e,t,r,o,a){eg();var u,f,p,m,y,v,T;if(she(e,"src"),she(r,"dest"),T=ru(e),m=ru(r),Cfe((T.i&4)!=0,"srcType is not an array"),Cfe((m.i&4)!=0,"destType is not an array"),v=T.c,f=m.c,Cfe(v.i&1?v==f:(f.i&1)==0,"Array types don't match"),Rpn(e,t,r,o,a),!(v.i&1)&&T!=m)if(y=HS(e),u=HS(r),me(e)===me(r)&&to;)ii(u,p,y[--t]);else for(p=o+a;o0),o.a.Xb(o.c=--o.b),T>N+m&&Mc(o);for(f=new V(R);f.a0),o.a.Xb(o.c=--o.b)}}function d_n(){hr();var e,t,r,o,a,u;if(Wre)return Wre;for(e=new bu(4),Iy(e,k1(DQ,!0)),$C(e,k1("M",!0)),$C(e,k1("C",!0)),u=new bu(4),o=0;o<11;o++)Sa(u,o,o);return t=new bu(4),Iy(t,k1("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(dP(u,k1("L",!0))),r.Hm(t),r=new ay(3,r),r=new che(a,r),Wre=r,Wre}function Cy(e,t){var r,o,a,u,f,p,m,y;for(r=new RegExp(t,"g"),m=we(Je,Pe,2,0,6,1),o=0,y=e,u=null;;)if(p=r.exec(y),p==null||y==""){m[o]=y;break}else f=p.index,m[o]=(io(0,f,y.length),y.substr(0,f)),y=yl(y,f+p[0].length,y.length),r.lastIndex=0,u==y&&(m[o]=(io(0,1,y.length),y.substr(0,1)),y=(Jt(1,y.length+1),y.substr(1))),u=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,u=b.Math.exp(N),a=u,f=0;f0&&(T-=o[0]+e.c,o[0]+=e.c),o[2]>0&&(T-=o[2]+e.c),o[1]=b.Math.max(o[1],T),hP(e.a[1],r.c+t.b+o[0]-(o[1]-T)/2,o[1]);for(u=e.a,p=0,y=u.length;p0?(e.n.c.length-1)*e.i:0,o=new V(e.n);o.a1)for(o=An(a,0);o.b!=o.d.c;)for(r=l(Sn(o),238),u=0,m=new V(r.e);m.a0&&(t[0]+=e.c,T-=t[0]),t[2]>0&&(T-=t[2]+e.c),t[1]=b.Math.max(t[1],T),pP(e.a[1],o.d+r.d+t[0]-(t[1]-T)/2,t[1]);else for(M=o.d+r.d,R=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&&(u=l(ze(t.n,t.n.c.length-1),211),u.f-e.f+r.f<=e.b||e.a.c.length==1))return v1e(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 PP(t.s,p.f+p.a+t.i,t.i)),ebe(l(ze(t.n,t.n.c.length-1),211),r),hvt(t,r),!0}return!1}function qF(e,t,r,o){var a,u,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,Qmt(e,a,o));p=b.Math.min(p,gvt(e,u,p,o))}return p}function C0e(e,t){var r,o,a,u,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=(cn(e.b!=0),l(e.a.a.c,8)),NO(t,a.a,a.b),m=new SS((!t.a&&(t.a=new Ei(Iu,t,5)),t.a)),f=An(e,1);f.a=0&&u!=r))throw Y(new jt(GD));for(a=0,m=0;mce(Hd(f.g,f.d[0]).a)?(cn(m.b>0),m.a.Xb(m.c=--m.b),Kw(m,f),a=!0):p.e&&p.e.gc()>0&&(u=(!p.e&&(p.e=new je),p.e).Kc(t),y=(!p.e&&(p.e=new je),p.e).Kc(r),(u||y)&&((!p.e&&(p.e=new je),p.e).Ec(f),++f.c));a||Rt(o.c,f)}function v_n(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J;return T=e.a.i+e.a.g/2,N=e.a.i+e.a.g/2,M=t.i+t.g/2,G=t.j+t.f/2,p=new Me(M,G),y=l(ve(t,(_n(),GT)),8),y.a=y.a+T,y.b=y.b+N,u=(p.b-y.b)/(p.a-y.a),o=p.b-u*p.a,U=r.i+r.g/2,J=r.j+r.f/2,m=new 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,R=(o-a)/(f-u),y.am.a?(a=y.b.c,u=y.b.a-y.a,p=v-T-(m.a-y.a)*a/u,f=b.Math.max(f,p),m=m.b,m&&(v+=m.c)):(y=y.b,T+=y.c);for(m=r,y=o,v=m.c,T=y.c;y&&m.b;)m.b.a>y.a?(a=m.b.c,u=m.b.a-m.a,p=v-T+(y.a-m.a)*a/u,f=b.Math.max(f,p),y=y.b,y&&(T+=y.c)):(m=m.b,v+=m.c);return f}function x_n(e,t,r){var o,a,u,f,p,m;for(o=0,u=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));u.e!=u.i.gc();)a=l(rn(u),19),f="",(!a.n&&(a.n=new ke(Rs,a,1,7)),a.n).i==0||(f=l(ie((!a.n&&(a.n=new ke(Rs,a,1,7)),a.n),0),158).a),p=new urt(f),qs(p,a),Te(p,(p1(),_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),ec(r.f,a,p),m=l(ve(a,(ed(),L2e)),103),m==(qi(),K1)&&(m=pf)}function yvt(e){var t,r,o;if(nE(l(F(e,(Ue(),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>=Io?(r=(t=e>>>0,"0"+t.toString(16)),o="\\v"+yl(r,r.length-6,r.length)):o=""+String.fromCharCode(e&Ti)}return o}function vvt(e,t){var r,o,a,u,f,p,m,y,v;for(u=new V(e.b);u.ar){t.Ug();return}switch(l(F(e,(Ue(),Rte)),351).g){case 2:u=new Fce;break;case 0:u=new Mce;break;default:u=new $ce}if(o=u.mg(e,a),!u.ng())switch(l(F(e,TB),352).g){case 2:o=e0t(a,o);break;case 1:o=Ubt(a,o)}Txn(e,a,o),t.Ug()}function OC(e,t){var r,o,a,u,f,p,m,y;t%=24,e.q.getHours()!=t&&(o=new b.Date(e.q.getTime()),o.setDate(o.getDate()+1),p=e.q.getTimezoneOffset()-o.getTimezoneOffset(),p>0&&(m=p/60|0,y=p%60,a=e.q.getDate(),r=e.q.getHours(),r+m>=24&&++a,u=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(u.getTime()))),f=e.q.getTime(),e.q.setTime(f+36e5),e.q.getHours()!=t&&e.q.setTime(f)}function C_n(e,t){var r,o,a,u;if(tun(e.d,e.e),e.c.a.$b(),ce(le(F(t.j,(Ue(),bL))))!=0||ce(le(F(t.j,bL)))!=0)for(r=FE,me(F(t.j,Ch))!==me((bp(),U1))&&Te(t.j,(Ie(),F1),(Lt(),!0)),u=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=G&&e.e[m.p]>M*e.b||oe>=r*G)&&(Rt(N.c,p),p=new je,wo(f,u),u.a.$b(),y-=v,R=b.Math.max(R,y*e.b+U),y+=oe,re=oe,oe=0,v=0,U=0);return new Co(R,N)}function RJ(e){var t,r,o,a,u,f,p;if(!e.d){if(p=new hqe,t=L4,u=t.a.yc(e,t),u==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),ti(p,RJ(r));t.a.Ac(e)!=null,t.a.gc()==0}for(f=p.i,a=(!e.q&&(e.q=new ke(Dl,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(Dl,e,11,10)),e.q)),gy(p),e.d=new eE((l(ie(Ne((c1(),Bt).o),9),20),p.i),p.g),e.e=l(p.g,685),e.e==null&&(e.e=wLt),Pc(e).b&=-17}return e.d}function nx(e,t,r,o){var a,u,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),u=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(u,a):u!=m&&N.Si(u,a)):N.Ei(u,a),++u):e.b&&!f&&(N.Ei(u,y),++u);else U==null?v.Wb(null):(a=Wd(e,U),a==null?e.b&&!Po(t)&&v.Wb(U):v.Wb(a))}function L_n(e,t){var r,o,a,u,f,p,m,y;for(r=new B7e,a=new Ft(Gt(si(t).a.Jc(),new D));an(a);)if(o=l(en(a),17),!fo(o)&&(p=o.c.i,Mbe(p,_$))){if(y=r0e(e,p,_$,A$),y==-1)continue;r.b=b.Math.max(r.b,y),!r.a&&(r.a=new je),Fe(r.a,p)}for(f=new Ft(Gt(Or(t).a.Jc(),new D));an(f);)if(u=l(en(f),17),!fo(u)&&(m=u.d.i,Mbe(m,A$))){if(y=r0e(e,m,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 M_n(e,t,r,o){var a,u,f,p,m,y,v;if(r.d.i!=t.i){for(a=new Xd(e),Jh(a,(Ht(),bi)),Te(a,(Ie(),wr),r),Te(a,(Ue(),Zr),(qi(),fa)),Rt(o.c,a),f=new aa,As(f,a),Ii(f,(He(),Wt)),p=new aa,As(p,a),Ii(p,Qt),v=r.d,Yi(r,f),u=new p0,qs(u,r),Te(u,as,null),mo(u,p),Yi(u,v),y=new Ji(r.b,0);y.b1e6)throw Y(new F9("power of ten too big"));if(e<=ar)return jS(eD(ST[1],t),t);for(o=eD(ST[1],ar),a=o,r=Gs(e-ar),t=bo(e%ar);Ea(r,ar)>0;)a=fE(a,o),r=El(r,ar);for(a=fE(a,eD(ST[1],t)),a=jS(a,ar),r=Gs(e-ar);Ea(r,ar)>0;)a=jS(a,ar),r=El(r,ar);return a=jS(a,t),a}function Tvt(e){var t,r,o,a,u,f,p,m,y,v;for(m=new V(e.a);m.ay&&o>y)v=p,y=ce(t.p[p.p])+ce(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 _vt(e,t){var r,o;o=l(ve(t,(_n(),Cp)),125),r=new Qc(0,t.j+t.f+o.a+e.b/2,new Qc(t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,(wh(),Sm),new Qc(-o.b-e.b/2+t.g/2,t.j-o.d-e.b/2,new Qc(-t.g/2,t.j-o.d,r))),r=new Qc(0,t.j+t.f+o.a,new Qc(-t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,av,new Qc(t.g/2+o.c+e.b/2,t.j-o.d,new Qc(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,u6t,t.j-o.d),Vn(t,Yne,t.j+o.a+t.f),Vn(t,Xf,l(ve(t,Sm),107).b.b.a)}function O0e(e,t,r,o){var a,u,f,p,m,y,v,T,N;if(u=new Xd(e),Jh(u,(Ht(),_a)),Te(u,(Ue(),Zr),(qi(),fa)),a=0,t){for(f=new aa,Te(f,(Ie(),wr),t),Te(u,wr,t.i),Ii(f,(He(),Wt)),As(f,u),N=Df(t.e),y=N,v=0,T=y.length;v0){if(a<0&&v.a&&(a=m,u=y[0],o=0),a>=0){if(p=v.b,m==a&&(p-=o++,p==0))return 0;if(!CEt(t,y,v,p,f)){m=a-1,y[0]=u;continue}}else if(a=-1,!CEt(t,y,v,0,f))return 0}else{if(a=-1,uo(v.c,0)==32){if(T=y[0],Xdt(t,y),y[0]>T)continue}else if(ocn(t,v.c,y[0])){y[0]+=v.c.length;continue}return 0}return CNn(f,r)?y[0]:0}function B_n(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(v=new bP(new TYe(r)),p=we(cc,Ad,30,e.f.e.c.length,16,1),ohe(p,p.length),r[t.a]=0,y=new V(e.f.e);y.a=p.a?u.b>=p.b?(o.a=p.a+(u.a-p.a)/2+a,o.b=p.b+(u.b-p.b)/2-a-e.e.b):(o.a=p.a+(u.a-p.a)/2+a,o.b=u.b+(p.b-u.b)/2+a):u.b>=p.b?(o.a=u.a+(p.a-u.a)/2+a,o.b=p.b+(u.b-p.b)/2+a):(o.a=u.a+(p.a-u.a)/2+a,o.b=u.b+(p.b-u.b)/2-a-e.e.b))}function LC(e){var t,r,o,a,u,f,p,m;if(!e.f){if(m=new qce,p=new qce,t=L4,f=t.a.yc(e,t),f==null){for(u=new tn(ds(e));u.e!=u.i.gc();)a=l(rn(u),29),ti(m,LC(a));t.a.Ac(e)!=null,t.a.gc()==0}for(o=(!e.s&&(e.s=new ke(ac,e,21,17)),new tn(e.s));o.e!=o.i.gc();)r=l(rn(o),182),se(r,104)&&Tn(p,l(r,20));gy(p),e.r=new _ot(e,(l(ie(Ne((c1(),Bt).o),6),20),p.i),p.g),ti(m,e.r),gy(m),e.f=new eE((l(ie(Ne(Bt.o),5),20),m.i),m.g),Pc(e).b&=-3}return e.f}function VF(){VF=K,y3e=Z(X(al,1),Bf,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),KDt=new RegExp(`[ \r\f]+`);try{R4=Z(X(xCn,1),It,2093,0,[new eO((lde(),Zj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",jO((M9(),M9(),bI))))),new eO(Zj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",jO(bI))),new eO(Zj("yyyy-MM-dd'T'HH:mm:ss",jO(bI))),new eO(Zj("yyyy-MM-dd'T'HH:mm",jO(bI))),new eO(Zj("yyyy-MM-dd",jO(bI)))])}catch(e){if(e=ui(e),!se(e,81))throw Y(e)}}function U_n(e){var t,r,o,a,u,f,p;for(r=null,p=null,o=l(F(e.b,(Ue(),vte)),349),o==(nC(),AL)&&(r=new je,p=new je),f=new V(e.d);f.ar);return u}function xvt(e,t){var r,o,a,u;if(a=Bc(e.d,1)!=0,o=kF(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),F1)))))return 0;!Ye(Ke(F(t.j,(Ie(),F1))))&&!Ye(Ke(F(t.j,t2)))||me(F(t.j,(Ue(),Ch)))===me((bp(),U1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,F1))),oD(e,t,a,!0),Ye(Ke(F(t.j,t2)))&&Te(t.j,t2,(Lt(),!1)),Ye(Ke(F(t.j,F1)))&&(Te(t.j,F1,(Lt(),!1)),Te(t.j,t2,!0)),r=kF(e,t);do{if(wge(e),r==0)return 0;a=!a,u=r,oD(e,t,a,!1),r=kF(e,t)}while(u>r);return u}function z_n(e,t,r){var o,a,u,f,p;if(o=l(F(e,(Ue(),mte)),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(($o(),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(($o(),rl))&&(r.a>t.a||r.b>t.b))for(f=new V(e.a);f.a=0&&T<=1&&N>=0&&N<=1?mr(new Me(e.a,e.b),tp(new Me(t.a,t.b),T)):null}function MC(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=0,f=e.t,a=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,Fe(e.n,new PP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a0?e.i:0)>t&&m>0&&(u=0,f+=m+e.i,a=b.Math.max(a,N),o+=m+e.i,m=0,N=0,r&&(++T,Fe(e.n,new PP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&ebe(l(ze(e.n,T),211),y),u+=y.g+(p>0?e.i:0),++p;return a=b.Math.max(a,N),o+=m,r&&(e.r=a,e.d=o,rbe(e.j)),new ql(e.s,e.t,a,o)}function WF(e){var t,r,o;return r=me(ve(e,(Ue(),jT)))===me((tD(),Hee))||me(ve(e,jT))===me(jee)||me(ve(e,jT))===me(Fee)||me(ve(e,jT))===me(Bee)||me(ve(e,jT))===me(zee)||me(ve(e,jT))===me(cL),o=me(ve(e,bB))===me((rD(),Dte))||me(ve(e,bB))===me(Mte)||me(ve(e,wL))===me((x1(),ak))||me(ve(e,wL))===me((x1(),KI)),t=me(ve(e,Ch))!==me((bp(),U1))||Ye(Ke(ve(e,tk)))||me(ve(e,jI))!==me((YS(),TI))||ce(le(ve(e,bL)))!=0||ce(le(ve(e,pte)))!=0,r||o||t}function IE(e){var t,r,o,a,u,f,p,m;if(!e.a){if(e.o=null,m=new aZe(e),t=new fqe,r=L4,p=r.a.yc(e,r),p==null){for(f=new tn(ds(e));f.e!=f.i.gc();)u=l(rn(f),29),ti(m,IE(u));r.a.Ac(e)!=null,r.a.gc()==0}for(a=(!e.s&&(e.s=new ke(ac,e,21,17)),new tn(e.s));a.e!=a.i.gc();)o=l(rn(a),182),se(o,336)&&Tn(t,l(o,38));gy(t),e.k=new Aot(e,(l(ie(Ne((c1(),Bt).o),7),20),t.i),t.g),ti(m,e.k),gy(m),e.a=new eE((l(ie(Ne(Bt.o),4),20),m.i),m.g),Pc(e).b&=-2}return e.a}function V_n(e){var t,r,o,a,u,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(u=ce(le(wy(e,(Ue(),kte)))),f=ce(le(wy(e,GAe))),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+=u*(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+=u*(t.gc()-1),p.a+=y+f}m=b.Math.max(N,r),m>e.o.a&&(v=(m-e.o.a)/2,p.b=b.Math.max(p.b,v),p.c=b.Math.max(p.c,v))}}function M0e(e,t,r,o){var a,u,f,p,m,y,v;if(v=za(e.e.Ah(),t),a=0,u=l(e.g,123),m=null,Mo(),l(t,69).vk()){for(p=0;pp?1:-1:Kge(e.a,t.a,u),a==-1)T=-m,v=f==m?XW(t.a,p,e.a,u):QW(t.a,p,e.a,u);else if(T=f,f==m){if(a==0)return jf(),wI;v=XW(e.a,u,t.a,p)}else v=QW(e.a,u,t.a,p);return y=new Ob(T,v.length,v),F3(y),y}function Y_n(e,t){var r,o,a,u;if(u=lvt(t),!t.c&&(t.c=new ke(Gc,t,9,9)),ei(new vt(null,(!t.c&&(t.c=new ke(Gc,t,9,9)),new St(t.c,16))),new kYe(u)),a=l(F(u,(Ie(),xa)),24),Vkn(t,a),a.Gc(($o(),rl)))for(o=new tn((!t.c&&(t.c=new ke(Gc,t,9,9)),t.c));o.e!=o.i.gc();)r=l(rn(o),127),mNn(e,t,u,r);return l(ve(t,(Ue(),mm)),185).gc()!=0&&Jwt(t,u),Ye(Ke(F(u,$Ae)))&&a.Ec(tB),br(u,yL)&&vQe(new T1e(ce(le(F(u,yL)))),u),me(ve(t,Yy))===me((pp(),Ig))?$3n(e,t,u):TNn(e,t,u),u}function Ta(e,t){var r,o,a,u,f,p,m;if(e==null)return null;if(u=e.length,u==0)return"";for(m=we(al,Bf,30,u,15,1),io(0,u,e.length),io(0,u,m.length),Mst(e,0,u,m,0),r=null,p=t,a=0,f=0;a0?yl(r.a,0,u-1):""):(io(0,u-1,e.length),e.substr(0,u-1)):r?r.a:e}function J_n(e,t,r){var o,a,u;if(br(t,(Ue(),Cs))&&(me(F(t,Cs))===me((iu(),xp))||me(F(t,Cs))===me(gm))||br(r,Cs)&&(me(F(r,Cs))===me((iu(),xp))||me(F(r,Cs))===me(gm)))return 0;if(o=ji(t),a=PTn(e,t,r),a!=0)return a;if(br(t,(Ie(),Cr))&&br(r,Cr)){if(u=na(D0(t,r,o,l(F(o,$1),15).a),D0(r,t,o,l(F(o,$1),15).a)),me(F(o,FI))===me((b1(),lL))&&me(F(t,$I))!==me(F(r,$I))&&(u=0),u<0)return sD(e,t,r),u;if(u>0)return sD(e,r,t),u}return sEn(e,t,r)}function kvt(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(o=new Ft(Gt(mp(t).a.Jc(),new D));an(o);)r=l(en(o),74),se(ie((!r.b&&(r.b=new Tt(pn,r,4,7)),r.b),0),196)||(m=Jo(l(ie((!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,u=new Me(N.a,N.b),G_(u,t.g,t.f),N.a-=u.a,N.b-=u.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),kvt(e,m)))}function Iy(e,t){var r,o,a,u,f;if(f=l(t,140),kE(e),kE(f),f.b!=null){if(e.c=!0,e.b==null){e.b=we(Rn,Qn,30,f.b.length,15,1),ca(f.b,0,e.b,0,f.b.length);return}for(u=we(Rn,Qn,30,e.b.length+f.b.length,15,1),r=0,o=0,a=0;r=e.b.length?(u[a++]=f.b[o++],u[a++]=f.b[o++]):o>=f.b.length?(u[a++]=e.b[r++],u[a++]=e.b[r++]):f.b[o]0?e.i:0)),++t;for(g1e(e.n,m),e.d=r,e.r=o,e.g=0,e.f=0,e.e=0,e.o=Kr,e.p=Kr,u=new V(e.b);u.a0&&(a=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(ie(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,_de(new bq,new tn(e.b))),r&&(t.a+="]"),t.a+=$X,r&&(t.a+="["),zn(t,_de(new bq,new tn(e.c))),r&&(t.a+="]"),t.a)}function Z_n(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct;for(Ee=e.c,ye=t.c,r=_s(Ee.a,e,0),o=_s(ye.a,t,0),oe=l(k0(e,(Fo(),Cc)).Jc().Pb(),12),ft=l(k0(e,Ba).Jc().Pb(),12),de=l(k0(t,Cc).Jc().Pb(),12),Ct=l(k0(t,Ba).Jc().Pb(),12),J=Df(oe.e),qe=Df(ft.g),re=Df(de.e),dt=Df(Ct.g),S1(e,o,ye),f=re,v=0,M=f.length;v0&&m[o]&&(M=iE(e.b,m[o],a)),U=b.Math.max(U,a.c.c.b+M);for(u=new V(v.e);u.av?new Pb((vd(),ov),r,t,y-v):y>0&&v>0&&(new Pb((vd(),ov),t,r,0),new Pb(ov,r,t,0))),f)}function nxn(e,t,r){var o,a,u;for(e.a=new je,u=An(t.b,0);u.b!=u.d.c;){for(a=l(Sn(u),41);l(F(a,(js(),Jf)),15).a>e.a.c.length-1;)Fe(e.a,new Co(FE,ave));o=l(F(a,Jf),15).a,r==(Si(),cs)||r==fs?(a.e.ace(le(l(ze(e.a,o),49).b))&&qG(l(ze(e.a,o),49),a.e.a+a.f.a)):(a.e.bce(le(l(ze(e.a,o),49).b))&&qG(l(ze(e.a,o),49),a.e.b+a.f.b))}}function Ivt(e,t,r,o){var a,u,f,p,m,y,v;if(u=qj(o),p=Ye(Ke(F(o,(Ue(),DAe)))),(p||Ye(Ke(F(e,gB))))&&!nE(l(F(e,Zr),103)))a=WS(u),m=E0e(e,r,r==(Fo(),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,xmt(v,0,0,e.o.a,e.o.b),Ii(m,Yyt(m,u))):(a=WS(u),Ii(m,r==(Fo(),Ba)?a:P6(a))),f=l(F(o,(Ie(),xa)),24),y=m.j,u.g){case 2:case 1:(y==(He(),Vt)||y==dn)&&f.Ec(($o(),ZE));break;case 4:case 3:(y==(He(),Qt)||y==Wt)&&f.Ec(($o(),ZE))}return m}function Rvt(e,t){var r,o,a,u,f,p;for(f=new hy(new Mw(e.f.b).a);f.b;){if(u=bE(f),a=l(u.jd(),598),t==1){if(a.yf()!=(Si(),il)&&a.yf()!=ff)continue}else if(a.yf()!=(Si(),cs)&&a.yf()!=fs)continue;switch(o=l(l(u.kd(),49).b,84),p=l(l(u.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 rxn(e,t){var r,o,a,u,f,p,m,y,v,T;for(t.Tg("Simple node placement",1),T=l(F(e,(Ie(),n2)),317),p=0,u=new V(e.b);u.a1)throw Y(new jt(YD));m||(u=gh(t,o.Jc().Pb()),f.Ec(u))}return Lge(e,eme(e,t,r),f)}function YF(e,t,r){var o,a,u,f,p,m,y,v;if(wp(e.e,t))m=(Mo(),l(t,69).vk()?new rP(t,e):new xO(t,e)),CF(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 ",PJ(e.b,t)):e.f&&(t.a+=" extends ",PJ(e.f,t)))}function lxn(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 dxn(e){var t,r,o,a;if(o=YJ((!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=yge(e)<0?1:0,r=e.e,a=(o.length+1+b.Math.abs(bo(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)Yot(a,fm);kit(a,fm,bo(r)),zn(a,(Jt(t,o.length+1),o.substr(t)))}else r=t-r,zn(a,yl(o,t,bo(r))),a.a+=".",zn(a,ghe(o,bo(r)));else{for(zn(a,(Jt(t,o.length+1),o.substr(t)));r<-fm.length;r+=fm.length)Yot(a,fm);kit(a,fm,bo(-r))}return a.a}function jJ(e){var t,r,o,a,u,f,p,m,y;return!(e.k!=(Ht(),Xr)||e.j.c.length<=1||(u=l(F(e,(Ue(),Zr)),103),u==(qi(),fa))||(a=(vy(),(e.q?e.q:(At(),At(),xh))._b(ow)?o=l(F(e,ow),205):o=l(F(ji(e),zI),205),o),a==kB)||!(a==c2||a==a2)&&(f=ce(le(wy(e,GI))),t=l(F(e,EL),125),!t&&(t=new nfe(f,f,f,f)),y=ks(e,(He(),Wt)),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 fxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;t.Tg("Orthogonal edge routing",1),y=ce(le(F(e,(Ue(),rv)))),r=ce(le(F(e,tv))),o=ce(le(F(e,B1))),N=new cW(0,r),G=0,f=new Ji(e.b,0),p=null,v=null,m=null,T=null;do v=f.b0?(R=(M-1)*r,p&&(R+=o),v&&(R+=o),R0;for(p=l(F(e.c.i,Xy),15).a,u=l(Ac(dr(t.Mc(),new KYe(p)),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16),f=new Ar,v=new pi,Gn(f,e.c.i),gi(v,e.c.i);f.b!=0;){if(r=l(f.b==0?null:(cn(f.b!=0),Vu(f,f.a.a)),9),u.Gc(r))return!0;for(a=new Ft(Gt(Or(r).a.Jc(),new D));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 Pvt(e,t,r){var o,a,u,f,p,m,y,v,T;for(T=new je,v=new Jhe(0,r),u=0,vj(v,new HK(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(),DL)))))&&(a=0,u+=v.b+r,Rt(T.c,v),v=new Jhe(u,r),o=new HK(0,v.f,v,r),vj(v,o),a=0),o.b.c.length==0||!Ye(Ke(ve(Br(m),(ef(),Lne))))&&(m.f>=o.o&&m.f<=o.f||o.a*.5<=m.f&&o.a*1.5>=m.f)?v1e(o,m):(f=new HK(o.s+o.r+r,v.f,v,r),vj(v,f),v1e(f,m)),a=m.i+m.g;return Rt(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 Tc(l(yr(e.a,u),24)),At(),ki(o,new Eue(t)),a=new Ji(u.b,0);a.b0&&o>=-6?o>=0?CO(u,r-bo(e.e),"."):(RK(u,t-1,t-1,"0."),CO(u,t+1,Mf(fm,0,-bo(o)-1))):(r-t>=1&&(CO(u,t,"."),++r),CO(u,r,"E"),o>0&&CO(u,++r,"+"),CO(u,++r,""+x3(Gs(o)))),e.g=u.a,e.g))}function Sxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe;o=ce(le(F(t,(Ue(),PAe)))),Ee=l(F(t,qI),15).a,N=4,a=3,ye=20/Ee,R=!1,m=0,f=ar;do{for(u=m!=1,T=m!=0,qe=0,G=e.a,re=0,de=G.length;reEe)?(m=2,f=ar):m==0?(m=1,f=qe):(m=0,f=qe)):(R=qe>=f||f-qe=Io?Wo(r,b1e(o)):i_(r,o&Ti),f=new NW(10,null,0),Bsn(e.a,f,p-1)):(r=(f.Km().length+u,new GN),Wo(r,f.Km())),t.e==0?(o=t.Im(),o>=Io?Wo(r,b1e(o)):i_(r,o&Ti)):Wo(r,t.Km()),l(f,521).b=r.a}}function Txn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G;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 kxn(e){var t,r,o,a;a=e.o,Ww(),e.A.dc()||gr(e.A,_2e)?t=a.b:(e.D?t=b.Math.max(a.b,EC(e.f)):t=EC(e.f),e.A.Gc((su(),JL))&&!e.B.Gc((Uc(),C4))&&(t=b.Math.max(t,EC(l(Ko(e.p,(He(),Qt)),256))),t=b.Math.max(t,EC(l(Ko(e.p,Wt),256)))),r=$ht(e),r&&(t=b.Math.max(t,r.b)),e.A.Gc(XL)&&(e.q==(qi(),Oh)||e.q==fa)&&(t=b.Math.max(t,tP(l(Ko(e.b,(He(),Qt)),129))),t=b.Math.max(t,tP(l(Ko(e.b,Wt),129))))),Ye(Ke(e.e.Rf().mf((_n(),lv))))?a.b=b.Math.max(a.b,t):a.b=t,o=e.f.i,o.d=0,o.a=t,IJ(e.f)}function Nxn(e,t,r,o,a,u,f,p){var m,y,v,T;switch(m=Wl(Z(X(vCn,1),It,241,0,[t,r,o,a])),T=null,e.b.g){case 1:T=Wl(Z(X(tke,1),It,527,0,[new OG,new IG,new RG]));break;case 0:T=Wl(Z(X(tke,1),It,527,0,[new RG,new IG,new OG]));break;case 2:T=Wl(Z(X(tke,1),It,527,0,[new IG,new OG,new RG]))}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?pxn((at(0,m.c.length),l(m.c[0],241)),(at(1,m.c.length),l(m.c[1],241)),f,u):null}function Cxn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M;a=new JR(e),u=new F0t,o=(n6(u.n),n6(u.p),Zs(u.c),n6(u.f),n6(u.o),Zs(u.q),Zs(u.d),Zs(u.g),Zs(u.k),Zs(u.e),Zs(u.i),Zs(u.j),Zs(u.r),Zs(u.b),N=a0t(u,a,null),uwt(u,a),N),t&&(m=new JR(t),f=W_n(m),Kbe(o,Z(X(Uke,1),It,528,0,[f]))),T=!1,v=!1,r&&(m=new JR(r),V7 in m.a&&(T=op(m,V7).oe().a),pAt in m.a&&(v=op(m,pAt).oe().a)),y=$Qe(Vft(new sS,T),v),Iyn(new lGe,o,y),V7 in a.a&&Kl(a,V7,null),(T||v)&&(p=new aS,ivt(y,p,T,v),Kl(a,V7,p)),R=new zXe(u),bpt(new lV(o),R),M=new GXe(u),bpt(new lV(o),M)}function Ixn(e,t,r){var o,a,u,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(),G1),(Lt(),!0)),Fe(e.a,o));switch(e.a.c.length){case 0:u=new UK(0,t,"DUMMY_ROOT"),Te(u,(Nr(),G1),(Lt(),!0)),Te(u,nne,!0),Gn(t.b,u);break;case 1:break;default:for(f=new UK(0,t,L7),m=new V(e.a);m.a=b.Math.abs(o.b)?(o.b=0,u.d+u.a>f.d&&u.df.c&&u.c0){if(t=new ede(e.i,e.g),r=e.i,u=r<100?null:new e1(r),e.Rj())for(o=0;o0){for(p=e.g,y=e.i,z3(e),u=y<100?null:new e1(y),o=0;o>13|(e.m&15)<<9,a=e.m>>4&8191,u=e.m>>17|(e.h&255)<<5,f=(e.h&1048320)>>8,p=t.l&8191,m=t.l>>13|(t.m&15)<<9,y=t.m>>4&8191,v=t.m>>17|(t.h&255)<<5,T=(t.h&1048320)>>8,dt=r*p,ft=o*p,Ct=a*p,Ot=u*p,on=f*p,m!=0&&(ft+=r*m,Ct+=o*m,Ot+=a*m,on+=u*m),y!=0&&(Ct+=r*y,Ot+=o*y,on+=a*y),v!=0&&(Ot+=r*v,on+=o*v),T!=0&&(on+=r*T),R=dt&Hc,M=(ft&511)<<13,N=R+M,G=dt>>22,J=ft>>9,re=(Ct&262143)<<4,oe=(Ot&31)<<17,U=G+J+re+oe,Ee=Ct>>18,ye=Ot>>5,qe=(on&4095)<<8,de=Ee+ye+qe,U+=N>>22,N&=Hc,de+=U>>22,U&=Hc,de&=Ep,Ua(N,U,de)}function Bvt(e){var t,r,o,a,u,f,p;if(p=l(ze(e.j,0),12),p.g.c.length!=0&&p.e.c.length!=0)throw Y(new ts("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(p.g.c.length!=0){for(u=Kr,r=new V(p.g);r.a0&&Dmt(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(u=0;ue.d[f.p]&&(r+=lpe(e.b,u)*l(m.b,15).a,d1(e.a,Oe(u)));for(;!zN(e.a);)Gpe(e.b,l(CS(e.a),15).a)}return r}function Mxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;for(t.Tg(FSt,1),R=new je,v=b.Math.max(e.a.c.length,l(F(e,(Ie(),$1)),15).a),r=v*l(F(e,fL),15).a,p=me(F(e,(Ue(),PT)))===me((b1(),Vy)),U=new V(e.a);U.a0&&(y=e.n.a/u);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!=K1&&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,u,f,p,m,y,v;if(e.Nj())if(v=e.Cj(),m=e.Oj(),v>0)if(t=new Sge(e.nj()),r=v,u=r<100?null:new e1(r),LO(e,r,t.g),a=r==1?e.Gj(4,ie(t,0),null,0,m):e.Gj(6,t,null,-1,m),e.Kj()){for(o=new tn(t);o.e!=o.i.gc();)u=e.Mj(rn(o),u);u?(u.lj(a),u.mj()):e.Hj(a)}else u?(u.lj(a),u.mj()):e.Hj(a);else LO(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(At(),Ro),null,-1,m));else if(e.Kj())if(v=e.Cj(),v>0){for(p=e.Dj(),y=v,LO(e,v,p),u=y<100?null:new e1(y),o=0;o1&&hc(f)*eu(f)/2>p[0]){for(u=0;up[u];)++u;M=new Rf(U,0,u+1),T=new pj(M),v=hc(f)/eu(f),m=VJ(T,t,new oS,r,o,a,v),mr(wd(T.e),m),xS(V_(N,T),fx),R=new Rf(U,u+1,U.c.length),abe(N,R),U.c.length=0,y=0,ist(p,p.length,0)}else G=N.b.c.length==0?null:ze(N.b,0),G!=null&&SK(N,0),y>0&&(p[y]=p[y-1]),p[y]+=hc(f)*eu(f),++y,Rt(U.c,f);return U}function zxn(e,t){var r,o,a,u;r=t.b,u=new Tc(r.j),a=0,o=r.j,o.c.length=0,u0(l(Gb(e.b,(He(),Vt),(T0(),Q0)),16),r),a=H6(u,a,new JBe,o),u0(l(Gb(e.b,Vt,j1),16),r),a=H6(u,a,new XBe,o),u0(l(Gb(e.b,Vt,Z0),16),r),u0(l(Gb(e.b,Qt,Q0),16),r),u0(l(Gb(e.b,Qt,j1),16),r),a=H6(u,a,new ZBe,o),u0(l(Gb(e.b,Qt,Z0),16),r),u0(l(Gb(e.b,dn,Q0),16),r),a=H6(u,a,new QBe,o),u0(l(Gb(e.b,dn,j1),16),r),a=H6(u,a,new eUe,o),u0(l(Gb(e.b,dn,Z0),16),r),u0(l(Gb(e.b,Wt,Q0),16),r),a=H6(u,a,new VBe,o),u0(l(Gb(e.b,Wt,j1),16),r),u0(l(Gb(e.b,Wt,Z0),16),r)}function Gxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U;for(t.Tg("Layer size calculation",1),v=Kr,y=Li,a=!1,p=new V(e.b);p.a.5?J-=f*2*(M-.5):M<.5&&(J+=u*2*(.5-M)),a=p.d.b,JG.a-U-v&&(J=G.a-U-v),p.n.a=t+J}}function Vxn(e){var t,r,o,a,u;if(o=l(F(e,(Ue(),Cs)),166),o==(iu(),xp)){for(r=new Ft(Gt(si(e).a.Jc(),new D));an(r);)if(t=l(en(r),17),!_lt(t))throw Y(new _f(HX+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(u=new Ft(Gt(Or(e).a.Jc(),new D));an(u);)if(a=l(en(u),17),!_lt(a))throw Y(new _f(HX+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,u,f,p,m,y,v,T,N,R,M;if(e.e&&e.c.c>19&&(t=k_(t),m=!m),f=I2n(t),u=!1,a=!1,o=!1,e.h==ED&&e.m==0&&e.l==0)if(a=!0,u=!0,f==-1)e=Hnt((m_(),JEe)),o=!0,m=!m;else return p=Ime(e,f),m&&$K(p),r&&(D1=Ua(0,0,0)),p;else e.h>>19&&(u=!0,e=k_(e),o=!0,m=!m);return f!=-1?Ipn(e,f,m,u,r):gbe(e,t)<0?(r&&(u?D1=k_(e):D1=Ua(e.l,e.m,e.h)),Ua(0,0,0)):AAn(o?e:Ua(e.l,e.m,e.h),t,m,u,a,r)}function UJ(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M;if(f=e.e,m=t.e,f==0)return t;if(m==0)return e;if(u=e.d,p=t.d,u+p==2)return r=Gi(e.a[0],Bo),o=Gi(t.a[0],Bo),f==m?(v=_o(r,o),M=On(v),R=On(Rb(v,32)),R==0?new ap(f,M):new Ob(f,2,Z(X(Rn,1),Qn,30,15,[M,R]))):(jf(),N8(f<0?El(o,r):El(r,o),0)?E1(f<0?El(o,r):El(r,o)):I3(E1(cg(f<0?El(o,r):El(r,o)))));if(f==m)N=f,T=u>=p?QW(e.a,u,t.a,p):QW(t.a,p,e.a,u);else{if(a=u!=p?u>p?1:-1:Kge(e.a,t.a,u),a==0)return jf(),wI;a==1?(N=f,T=XW(e.a,u,t.a,p)):(N=m,T=XW(t.a,p,e.a,u))}return y=new Ob(N,T.length,T),F3(y),y}function Kxn(e,t){var r,o,a,u,f,p,m;if(!(e.g>t.f||t.g>e.f)){for(r=0,o=0,f=e.w.a.ec().Jc();f.Ob();)a=l(f.Pb(),12),JK(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),JK(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),JK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++o;for(u=t.r.a.ec().Jc();u.Ob();)a=l(u.Pb(),12),JK(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(is(e,r))){case 2:{if(wt("",fg(e,r.ok()).ve())){if(m=WO(is(e,r)),p=c_(is(e,r)),v=Pme(e,t,m,p),v)return v;for(a=f0e(e,t),f=0,T=a.gc();f1)throw Y(new jt(YD));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&&OSn(e,m,f,u,N)}}function Qxn(e){var t,r,o,a,u,f;if(a=new Ji(e.e,0),o=new Ji(e.a,0),e.d)for(r=0;rLZ;){for(u=t,f=0;b.Math.abs(t-u)0),a.a.Xb(a.c=--a.b),l_n(e,e.b-f,u,o,a),cn(a.b0),o.a.Xb(o.c=--o.b)}if(!e.d)for(r=0;r0?(e.f[v.p]=R/(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]=R)}}function tkn(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 nkn(e,t,r){var o,a,u,f;for(r.Tg("Graph transformation ("+e.a+")",1),f=jb(t.a),u=new V(t.b);u.ace(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();)u=l(rn(f),74),o=l(ie((!u.c&&(u.c=new Tt(pn,u,5,8)),u.c),0),19),Gvt(e,o,a)}function ikn(e){q3();var t,r,o,a,u,f,p;for(p=new NZe,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 sF((x_(),X0)),e6(e,tNt,new Ls(Z(X(nL,1),It,378,0,[o]))),f=new sF(Uy),e6(e,eNt,new Ls(Z(X(nL,1),It,378,0,[f]))),a=new sF(By),e6(e,Qkt,new Ls(Z(X(nL,1),It,378,0,[a]))),u=new sF(VE),e6(e,Zkt,new Ls(Z(X(nL,1),It,378,0,[u]))),hJ(o.c,X0),hJ(a.c,By),hJ(u.c,VE),hJ(f.c,Uy),p.a.c.length=0,li(p.a,o.c),li(p.a,ou(a.c)),li(p.a,u.c),li(p.a,ou(f.c)),p}function okn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M;for(t.Tg(cTt,1),R=ce(le(ve(e,(yh(),sv)))),f=ce(le(ve(e,(ef(),l4)))),p=l(ve(e,u4),100),mge((!e.a&&(e.a=new ke(En,e,10,11)),e.a)),v=Pvt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),R,f),!e.a&&(e.a=new ke(En,e,10,11)),y=new V(v);y.a0&&(e.a=m+(R-1)*u,t.c.b+=e.a,t.f.b+=e.a)),M.a.gc()!=0&&(N=new cW(1,u),R=z0e(N,t,M,U,t.f.b+m-t.c.b),R>0&&(t.f.b+=m+(R-1)*u))}function qvt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de;for(v=ce(le(F(e,(Ue(),ym)))),o=ce(le(F(e,VAe))),N=new DG,Te(N,ym,v+o),y=t,J=y.d,U=y.c.i,re=y.d.i,G=sde(U.c),oe=sde(re.c),a=new je,T=G;T<=oe;T++)p=new Xd(e),Jh(p,(Ht(),bi)),Te(p,(Ie(),wr),y),Te(p,Zr,(qi(),fa)),Te(p,SB,N),R=l(ze(e.b,T),26),T==G?S1(p,R.a.c.length-r,R):Oi(p,R),de=ce(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(),Wt)),As(f,p),f.n.b=M,m=new aa,Ii(m,Qt),As(m,p),m.n.b=M,Yi(y,f),u=new p0,qs(u,y),Te(u,as,null),mo(u,m),Yi(u,J),a0n(p,y,u),Rt(a.c,u),y=u;return a}function akn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;if(U=t.b.c.length,!(U<3)){for(R=we(Rn,Qn,30,U,15,1),T=0,v=new V(t.b);v.af)&&gi(e.b,l(G.b,17));++p}u=f}}}function HJ(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;for(m=l(bg(e,(He(),Wt)).Jc().Pb(),12).e,R=l(bg(e,Qt).Jc().Pb(),12).g,p=m.c.length,oe=qd(l(ze(e.j,0),12));p-- >0;){for(U=(at(0,m.c.length),l(m.c[0],17)),a=(at(0,R.c.length),l(R.c[0],17)),re=a.d.e,u=_s(re,a,0),oln(U,a.d,u),mo(a,null),Yi(a,null),M=U.a,t&&Gn(M,new To(oe)),o=An(a.a,0);o.b!=o.d.c;)r=l(Sn(o),8),Gn(M,new To(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!=On(e.k)<<24>>24;case 2:return t!=null&&l(t,183).a!=(On(e.k)&Ti);case 6:return t!=null&&f3(l(t,192).a,e.k);case 5:return t!=null&&l(t,15).a!=On(e.k);case 7:return t!=null&&l(t,193).a!=On(e.k)<<16>>16;case 3:return t!=null&&ce(le(t))!=e.j;case 4:return t!=null&&l(t,165).a!=e.j;default:return t==null?e.n!=null:!gr(t,e.n)}}function dD(e,t,r){var o,a,u,f;return e.ml()&&e.ll()&&(f=tW(e,l(r,57)),me(f)!==me(r))?(e.vj(t),e.Bj(t,wdt(e,t,f)),e.$k()&&(u=(a=l(r,52),e.kl()?e.il()?a.Qh(e.b,Po(l(kt(Ja(e.b),e.Jj()),20)).n,l(kt(Ja(e.b),e.Jj()).Fk(),29).ik(),null):a.Qh(e.b,Ur(a.Ah(),Po(l(kt(Ja(e.b),e.Jj()),20))),null,null):a.Qh(e.b,-1-e.Jj(),null,null)),!l(f,52).Mh()&&(u=(o=l(f,52),e.kl()?e.il()?o.Oh(e.b,Po(l(kt(Ja(e.b),e.Jj()),20)).n,l(kt(Ja(e.b),e.Jj()).Fk(),29).ik(),u):o.Oh(e.b,Ur(o.Ah(),Po(l(kt(Ja(e.b),e.Jj()),20))),null,u):o.Oh(e.b,-1-e.Jj(),null,u))),u&&u.mj()),Jc(e.b)&&e.Hj(e.Gj(9,r,f,t,!1)),f):r}function Vvt(e){var t,r,o,a,u,f,p,m,y,v;for(o=new je,f=new V(e.e.a);f.a0&&(f=b.Math.max(f,xht(e.C.b+o.d.b,a))),v=o,T=a,N=u;e.C&&e.C.c>0&&(R=N+e.C.c,y&&(R+=v.d.c),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(T-1)<=nf||T==1||isNaN(T)&&isNaN(1)?0:R/(1-T)))),r.n.b=0,r.a.a=f}function Kvt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R;if(r=l(Ko(e.b,t),129),m=l(l(yr(e.r,t),24),85),m.dc()){r.n.d=0,r.n.a=0;return}for(y=e.u.Gc((xc(),Rp)),f=0,e.A.Gc((su(),xm))&&yyt(e,t),p=m.Jc(),v=null,N=0,T=0;p.Ob();)o=l(p.Pb(),116),u=ce(le(o.b.mf((G8(),w$)))),a=o.b.Kf().b,v?(R=T+v.d.a+e.w+o.d.d,f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-u)<=nf||N==u||isNaN(N)&&isNaN(u)?0:R/(u-N)))):e.C&&e.C.d>0&&(f=b.Math.max(f,xht(e.C.d+o.d.d,u))),v=o,N=u,T=a;e.C&&e.C.a>0&&(R=T+e.C.a,y&&(R+=v.d.a),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-1)<=nf||N==1||isNaN(N)&&isNaN(1)?0:R/(1-N)))),r.n.d=0,r.a.b=f}function Yvt(e,t,r){var o,a,u,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?bK(this,this.f/this.a):Hd(t.g,t.d[0]).a!=null&&Hd(r.g,r.d[0]).a!=null?bK(this,(ce(Hd(t.g,t.d[0]).a)+ce(Hd(r.g,r.d[0]).a))/2):Hd(t.g,t.d[0]).a!=null?bK(this,Hd(t.g,t.d[0]).a):Hd(r.g,r.d[0]).a!=null&&bK(this,Hd(r.g,r.d[0]).a)}function ukn(e,t,r,o,a,u,f,p){var m,y,v,T,N,R,M,U,G,J;if(M=!1,y=Gme(r.q,t.f+t.b-r.q.f),R=o.f>t.b&&p,J=a-(r.q.e+y-f),T=(m=MC(o,J,!1),m.a),R&&T>o.f)return!1;if(R){for(N=0,G=new V(t.d);G.a=(at(u,e.c.length),l(e.c[u],189)).e,!R&&T>t.b&&!v)?!1:((v||R||T<=t.b)&&(v&&T>t.b?(r.d=T,c6(r,Tmt(r,T))):(Mbt(r.q,y),r.c=!0),c6(o,a-(r.s+r.r)),U6(o,r.q.e+r.q.d,t.f),vj(t,o),e.c.length>u&&(q6((at(u,e.c.length),l(e.c[u],189)),o),(at(u,e.c.length),l(e.c[u],189)).a.c.length==0&&sg(e,u)),M=!0),M)}function lkn(e){var t,r,o;for(mE(X1,Z(X(qE,1),It,139,0,[new Wce])),r=new Qce(e),o=0;o0&&(Jt(0,r.length),r.charCodeAt(0)!=47)))throw Y(new jt("invalid opaquePart: "+r));if(e&&!(t!=null&&VN(SU,t.toLowerCase()))&&!(r==null||!cY(r,O4,D4)))throw Y(new jt(GAt+r));if(e&&t!=null&&VN(SU,t.toLowerCase())&&!rwn(r))throw Y(new jt(GAt+r));if(!l1n(o))throw Y(new jt("invalid device: "+o));if(!ogn(a))throw f=a==null?"invalid segments: null":"invalid segment: "+Zpn(a),Y(new jt(f));if(!(u==null||Nf(u,Qa(35))==-1))throw Y(new jt("invalid query: "+u))}function Xvt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J;if(N=new To(e.o),J=t.a/N.a,p=t.b/N.b,U=t.a-N.a,u=t.b-N.b,r)for(a=me(F(e,(Ue(),Zr)))===me((qi(),fa)),M=new V(e.j);M.a=1&&(G-f>0&&T>=0?(m.n.a+=U,m.n.b+=u*f):G-f<0&&v>=0&&(m.n.a+=U*G,m.n.b+=u));e.o.a=t.a,e.o.b=t.b,Te(e,(Ue(),mm),(su(),o=l(md(N4),10),new Hu(o,l(Gl(o,o.length),10),0)))}function gkn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J;if(r.Tg("Network simplex layering",1),e.b=t,J=l(F(t,(Ue(),qI)),15).a*4,G=e.b.a,G.c.length<1){r.Ug();return}for(u=sAn(e,G),U=null,a=An(u,0);a.b!=a.d.c;){for(o=l(Sn(a),16),p=J*bo(b.Math.sqrt(o.gc())),f=vAn(o),_J(tle(ZQt(nle(MV(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){rF(e,r,0),r.a+=String.fromCharCode(o),a=G1n(t,u),rF(e,r,a),u+=a-1;continue}o==39?u+10&&M.a<=0){m.c.length=0,Rt(m.c,M);break}R=M.i-M.d,R>=p&&(R>p&&(m.c.length=0,p=R),Rt(m.c,M))}m.c.length!=0&&(f=l(ze(m,uF(a,m.c.length)),117),oe.a.Ac(f)!=null,f.g=v++,N0e(f,t,r,o),m.c.length=0)}for(G=e.c.length+1,N=new V(e);N.aLi||t.o==Em&&v=p&&a<=m)p<=a&&u<=m?(r[v++]=a,r[v++]=u,o+=2):p<=a?(r[v++]=a,r[v++]=m,e.b[o]=m+1,f+=2):u<=m?(r[v++]=p,r[v++]=u,o+=2):(r[v++]=p,r[v++]=m,e.b[o]=m+1);else if(mwg)&&p<10);rle(e.c,new s9),Zvt(e),zsn(e.c),rkn(e.f)}function kkn(e,t){var r,o,a,u,f,p,m,y,v,T,N;switch(e.k.g){case 1:if(o=l(F(e,(Ie(),wr)),17),r=l(F(o,STe),79),r?Ye(Ke(F(o,Ag)))&&(r=Gge(r)):r=new Lc,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,(Si(),fs)),p.k==(Ht(),yi)&&tat(y),Jn(e.f,p,t)}}function eEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re;for(y=Kr,v=Kr,p=Li,m=Li,N=new V(t.i);N.a=e.j?(++e.j,Fe(e.b,Oe(1)),Fe(e.c,v)):(o=e.d[t.p][1],nu(e.b,y,Oe(l(ze(e.b,y),15).a+1-o)),nu(e.c,y,ce(le(ze(e.c,y)))+v-o*e.f)),(e.r==(x1(),SL)&&(l(ze(e.b,y),15).a>e.k||l(ze(e.b,y-1),15).a>e.k)||e.r==TL&&(ce(le(ze(e.c,y)))>e.n||ce(le(ze(e.c,y-1)))>e.n))&&(m=!1),f=new Ft(Gt(si(t).a.Jc(),new D));an(f);)u=l(en(f),17),p=u.c.i,e.g[p.p]==y&&(T=tEt(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 Co(Oe(a),(Lt(),!!m))}function Ckn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;return N=e.c[t],R=e.c[r],M=l(F(N,(Ie(),RT)),16),!!M&&M.gc()!=0&&M.Gc(R)||(U=N.k!=(Ht(),bi)&&R.k!=bi,G=l(F(N,tw),9),J=l(F(R,tw),9),re=G!=J,oe=!!G&&G!=N||!!J&&J!=R,de=OY(N,(He(),Vt)),Ee=OY(R,dn),oe=oe|(OY(N,dn)||OY(R,Vt)),ye=oe&&re||de||Ee,U&&ye)||N.k==(Ht(),_a)&&R.k==Xr||R.k==(Ht(),_a)&&N.k==Xr?!1:(v=e.c[t],u=e.c[r],a=kbt(e.e,v,u,(He(),Wt)),m=kbt(e.i,v,u,Qt),eSn(e.f,v,u),y=Fpt(e.b,v,u)+l(a.a,15).a+l(m.a,15).a+e.f.d,p=Fpt(e.b,u,v)+l(a.b,15).a+l(m.b,15).a+e.f.b,e.a&&(T=l(F(v,wr),12),f=l(F(u,wr),12),o=dbt(e.g,T,f),y+=l(o.a,15).a,p+=l(o.b,15).a),y>p)}function nEt(e,t){var r,o,a,u,f;r=ce(le(F(t,(Ue(),od)))),r<2&&Te(t,od,2),o=l(F(t,xu),87),o==(Si(),hf)&&Te(t,xu,qj(t)),a=l(F(t,MIt),15),a.a==0?Te(t,(Ie(),DT),new sY):Te(t,(Ie(),DT),new KP(a.a)),u=Ke(F(t,HI)),u==null&&Te(t,HI,(Lt(),me(F(t,kp))===me((gp(),Ek)))),ei(new vt(null,new St(t.a,16)),new yue(e)),ei(bs(new vt(null,new St(t.b,16)),new i9),new vue(e)),f=new Jvt(t),Te(t,(Ie(),n2),f),M3(e.a),pu(e.a,(Vi(),id),l(F(t,jT),173)),pu(e.a,kh,l(F(t,bB),173)),pu(e.a,la,l(F(t,BI),173)),pu(e.a,da,l(F(t,vB),173)),pu(e.a,zo,Zhn(l(F(t,kp),225))),cde(e.a,_3n(t)),Te(t,cte,FC(e.a,t))}function z0e(e,t,r,o,a){var u,f,p,m,y,v,T,N,R,M,U,G,J;for(T=new hn,f=new je,zmt(e,r,e.d.zg(),f,T),zmt(e,o,e.d.Ag(),f,T),e.b=.2*(U=J0t(bs(new vt(null,new St(f,16)),new vHe)),G=J0t(bs(new vt(null,new St(f,16)),new EHe)),b.Math.min(U,G)),u=0,p=0;p=2&&(J=ywt(f,!0,N),!e.e&&(e.e=new JJe(e)),H1n(e.e,J,f,e.b)),Vbt(f,N),Pkn(f),R=-1,v=new V(f);v.al(ve(y,PL),15).a?(Rt(t.c,y),Rt(r.c,f)):(Rt(t.c,f),Rt(r.c,y))),a=new je,v=new JGe,v.a=0,v.b=0,o=(at(0,e.c.length),l(e.c[0],19)),Rt(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,Xo,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(UY(p,0),134),r=new V(o.i);r.a-1){for(u=new V(p);u.a0)&&(oue(m,b.Math.min(m.o,a.o-1)),T9(m,m.i-1),m.i==0&&Rt(p.c,m))}}function oEt(e,t,r,o,a){var u,f,p,m;return m=Kr,f=!1,p=L0e(e,Di(new Me(t.a,t.b),e),mr(new Me(r.a,r.b),a),Di(new Me(o.a,o.b),r)),u=!!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=L0e(e,Di(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)||u?m=b.Math.min(m,O3(Di(p,r))):f=!0),p=L0e(e,Di(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)||u)&&(m=b.Math.min(m,O3(Di(p,o)))),m}function sEt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,C1),nSt),"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 r9),Ga))),Le(e,C1,wx,Ge(U2e)),Le(e,C1,ID,(Lt(),!0)),Le(e,C1,PE,Ge(Fkt)),Le(e,C1,mT,Ge($kt)),Le(e,C1,bT,Ge(Bkt)),Le(e,C1,Ex,Ge(jkt)),Le(e,C1,yx,Ge(z2e)),Le(e,C1,Sx,Ge(Ukt)),Le(e,C1,Cwe,Ge(B2e)),Le(e,C1,Rwe,Ge(F2e)),Le(e,C1,Owe,Ge($2e)),Le(e,C1,Dwe,Ge(H2e)),Le(e,C1,Iwe,Ge(T$))}function jkn(e){var t,r,o,a,u,f,p,m;for(t=null,o=new V(e);o.a0&&r.c==0&&(!t&&(t=new je),Rt(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(u=(!r.b&&(r.b=new je),new V(r.b));u.a_s(e,r,0))return new Co(a,r)}else if(ce(Hd(a.g,a.d[0]).a)>ce(Hd(r.g,r.d[0]).a))return new Co(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),oy(0,m.c.length),t3(m.c,0,r),f.c==m.c.length&&Rt(t.c,f)}return null}function $C(e,t){var r,o,a,u,f,p,m,y,v;if(t.e==5){Qvt(e,t);return}if(y=t,!(y.b==null||e.b==null)){for(kE(e),PC(e),kE(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&&u<=m?o+=2:p<=a?(e.b[o]=m+1,f+=2):u<=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));u!=o&&v.b>0;)e.a[u.p]=!0,e.a[o.p]=!0,u=(cn(v.b>0),l(v.a.Xb(v.c=--v.b),17));v.b>0&&Mc(v)}}function aEt(e,t,r){var o,a,u,f,p,m,y,v,T,N;if(r)for(o=-1,v=new Ji(t,0);v.b0?a-=864e5:a+=864e5,m=new Zde(_o(Gs(t.q.getTime()),a))),v=new lS,y=e.a.length,u=0;u=97&&o<=122||o>=65&&o<=90){for(f=u+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 fu(r.d),p3(r.a,"[...]")):(p=HS(o),y=new Jw(t),cp(r,uEt(p,y))):se(o,172)?cp(r,_vn(l(o,172))):se(o,198)?cp(r,dwn(l(o,198))):se(o,203)?cp(r,wyn(l(o,203))):se(o,2090)?cp(r,fwn(l(o,2090))):se(o,54)?cp(r,Avn(l(o,54))):se(o,591)?cp(r,jvn(l(o,591))):se(o,838)?cp(r,Tvn(l(o,838))):se(o,109)&&cp(r,Svn(l(o,109))):cp(r,o==null?tc: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,u;u=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,cT)&&!wt(a,cI)&&!wt(a,Y7)&&!wt(a,uI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)&&(a=r_t),r=F8(t,Qa(62)),r!=-1&&(a+=""+(Jt(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,cT)&&!wt(a,cI)&&!wt(a,Y7)&&!wt(a,uI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)?(a=r_t,o!=-1&&(a+=""+(Jt(o,t.length+1),t.substr(o)))):a=t),I_(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&pr(e,new Pi(e,1,5,u,t))}function Gkn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M;if(e.c=e.e,M=Ke(F(t,(Ue(),PIt))),R=M==null||(Mt(M),M),u=l(F(t,(Ie(),xa)),24).Gc(($o(),rl)),a=l(F(t,Zr),103),r=!(a==(qi(),_m)||a==Oh||a==fa),R&&(r||!u)){for(T=new V(t.a);T.a=0)return a=n1n(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))),b3n(e,v,a)}else{if(r=-1,t2e==null&&(t2e=new RegExp("\\d")),t2e.test(String.fromCharCode(p))&&(r=ffe(t,Qa(46),m-1),r>=0)){o=l(YW(e,Oft(e,(io(1,r,t.length),t.substr(1,r-1))),!1),61),y=0;try{y=Eu((Jt(r+1,t.length+1),t.substr(r+1)),Zi,ar)}catch(N){throw N=ui(N),se(N,133)?(u=N,Y(new sj(u))):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 up(e.Cb,1,13,y,t,gg(Fc(l(e.Cb,62)),e),!1),r?r.lj(m):r=m));else if(se(e.Cb,89))e.Db>>16==-23&&(se(t,89)||(t=(_t(),Ml)),se(y,89)||(y=(_t(),Ml)),e.Cb.Vh()&&(m=new up(e.Cb,1,10,y,t,gg(oa(l(e.Cb,29)),e),!1),r?r.lj(m):r=m));else if(se(e.Cb,449))for(p=l(e.Cb,842),f=(!p.b&&(p.b=new C9(new sq)),p.b),u=(o=new hy(new Mw(f.a).a),new I9(o));u.a.b;)a=l(bE(u.a).jd(),88),r=ox(a,DF(a,p),r)}return r}function Vkn(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(f=Ye(Ke(ve(e,(Ue(),Jy)))),N=l(ve(e,Qy),24),m=!1,y=!1,T=new tn((!e.c&&(e.c=new ke(Gc,e,9,9)),e.c));T.e!=T.i.gc()&&(!m||!y);){for(u=l(rn(T),127),p=0,a=hh(Wu(Z(X(nl,1),It,22,0,[(!u.d&&(u.d=new Tt(Ir,u,8,5)),u.d),(!u.e&&(u.e=new Tt(Ir,u,7,4)),u.e)])));an(a)&&(o=l(en(a),74),v=f&&R0(o)&&Ye(Ke(ve(o,bm))),r=Hvt((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),u)?e==Br(Jo(l(ie((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83))):e==Br(Jo(l(ie((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),0),83))),!((v||r)&&(++p,p>1))););(p>0||N.Gc((xc(),Rp))&&(!u.n&&(u.n=new ke(Rs,u,1,7)),u.n).i>0)&&(m=!0),p>1&&(y=!0)}m&&t.Ec(($o(),rl)),y&&t.Ec(($o(),CI))}function dEt(e){var t,r,o,a,u,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((su(),XL))){for(v=l(ve(e,bk),103),o=2,r=2,a=2,u=2,t=Br(e)?l(ve(Br(e),Tm),87):l(ve(e,Tm),87),y=new tn((!e.c&&(e.c=new ke(Gc,e,9,9)),e.c));y.e!=y.i.gc();)if(m=l(rn(y),127),T=l(ve(m,w2),64),T==(He(),Is)&&(T=k0e(m,t),Vn(m,w2,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:u=b.Math.max(u,m.j+m.f)}else switch(T.g){case 1:o+=m.g+2;break;case 2:r+=m.f+2;break;case 3:a+=m.g+2;break;case 4:u+=m.f+2}p=b.Math.max(o,a),f=b.Math.max(r,u)}return M0(e,p,f,!0,!0)}function Wkn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,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,Oe(a))}}function Kkn(e,t,r,o){var a,u,f,p,m,y,v,T,N,R;for(u=new T0t(t),T=wTn(e,t,u),R=b.Math.max(ce(le(F(t,(Ue(),_g)))),1),v=new V(T.a);v.a=0){for(m=null,p=new Ji(v.a,y+1);p.b0,y?y&&(N=J.p,f?++N:--N,T=l(ze(J.c.a,N),9),o=dpt(T),R=!(xwt(o,ye,r[0])||vst(o,ye,r[0]))):R=!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)),u)}function nNn(e){var t,r,o,a,u,f,p,m,y,v,T;for(e.j=we(Rn,Qn,30,e.g,15,1),e.o=new je,ei(bs(new vt(null,new St(e.e.b,16)),new YUe),new qJe(e)),e.a=we(cc,Ad,30,e.b,16,1),L6(new vt(null,new St(e.e.b,16)),new WJe(e)),o=(T=new je,ei(dr(bs(new vt(null,new St(e.e.b,16)),new XUe),new VJe(e)),new Ltt(e,T)),T),m=new V(o);m.a=y.c.c.length?v=ope((Ht(),Xr),bi):v=ope((Ht(),bi),bi),v*=2,u=r.a.g,r.a.g=b.Math.max(u,u+(v-u)),f=r.b.g,r.b.g=b.Math.max(f,f+(v-f)),a=t}}function XF(e,t){var r;if(e.e)throw Y(new ts((np(nee),RX+nee.k+OX)));if(!Gen(e.a,t))throw Y(new Es(L2t+t+M2t));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:w1(e),C0(e);break;case 4:AE(e),C0(e);break;case 3:AE(e),w1(e),C0(e)}break;case 2:switch(t.g){case 1:w1(e),vJ(e);break;case 4:AE(e),C0(e);break;case 3:AE(e),w1(e),C0(e)}break;case 1:switch(t.g){case 2:w1(e),vJ(e);break;case 4:w1(e),AE(e),C0(e);break;case 3:w1(e),AE(e),w1(e),C0(e)}break;case 4:switch(t.g){case 2:AE(e),C0(e);break;case 1:AE(e),w1(e),C0(e);break;case 3:w1(e),vJ(e)}break;case 3:switch(t.g){case 2:w1(e),AE(e),C0(e);break;case 1:w1(e),AE(e),w1(e),C0(e);break;case 4:w1(e),vJ(e)}}return e}function OE(e,t){var r;if(e.d)throw Y(new ts((np(bee),RX+bee.k+OX)));if(!qen(e.a,t))throw Y(new Es(L2t+t+M2t));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:m1(e),Wb(e);break;case 4:_E(e),Wb(e);break;case 3:_E(e),m1(e),Wb(e)}break;case 2:switch(t.g){case 1:m1(e),EJ(e);break;case 4:_E(e),Wb(e);break;case 3:_E(e),m1(e),Wb(e)}break;case 1:switch(t.g){case 2:m1(e),EJ(e);break;case 4:m1(e),_E(e),Wb(e);break;case 3:m1(e),_E(e),m1(e),Wb(e)}break;case 4:switch(t.g){case 2:_E(e),Wb(e);break;case 1:_E(e),m1(e),Wb(e);break;case 3:m1(e),EJ(e)}break;case 3:switch(t.g){case 2:m1(e),_E(e),Wb(e);break;case 1:m1(e),_E(e),m1(e),Wb(e);break;case 4:m1(e),EJ(e)}}return e}function rNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;for(T=e.b,v=new Ji(T,0),Kw(v,new ra(e)),re=!1,f=1;v.b0&&(t.a+=ja),ZF(l(rn(p),176),t);for(t.a+=$X,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),ZF(l(rn(m),176),t);t.a+=")"}}function iNn(e,t,r){var o,a,u,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 Ft(Gt(mp(p).a.Jc(),new D));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 uS("Graph must not contain hyperedges."));if(!AC(o)&&p!=Jo(l(ie((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)))for(y=new Iit,qs(y,o),Te(y,(p1(),_T),o),kZt(y,l(Ss(ns(r.f,p)),156)),NZt(y,l(Ut(r,Jo(l(ie((!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();)u=l(rn(f),158),v=new Uut(y,u.a),qs(v,u),Te(v,_T,u),v.e.a=b.Math.max(u.g,1),v.e.b=b.Math.max(u.f,1),D0e(v),Fe(t.d,v)}}function oNn(e,t,r){var o,a,u,f,p,m,y,v,T,N;switch(r.Tg("Node promotion heuristic",1),e.i=t,e.r=l(F(t,(Ue(),wL)),246),e.r!=(x1(),ak)&&e.r!=KI?RNn(e):eTn(e),v=l(F(e.i,RAe),15).a,u=new m$e,e.r.g){case 2:case 1:rx(e,u);break;case 3:for(e.r=CB,rx(e,u),m=0,p=new V(e.b);p.ae.k&&(e.r=SL,rx(e,u));break;case 4:for(e.r=CB,rx(e,u),y=0,a=new V(e.c);a.ae.n&&(e.r=TL,rx(e,u));break;case 6:N=bo(b.Math.ceil(e.g.length*v/100)),rx(e,new GYe(N));break;case 5:T=bo(b.Math.ceil(e.e*v/100)),rx(e,new qYe(T));break;case 8:KEt(e,!0);break;case 9:KEt(e,!1);break;default:rx(e,u)}e.r!=ak&&e.r!=KI?vSn(e,t):$Tn(e,t),r.Ug()}function sNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;for(T=new K0e(e),Mcn(T,!(t==(Si(),il)||t==ff)),v=T.a,N=new oS,a=(Sd(),Z(X($y,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 pEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M;for(N=r.d,T=r.c,u=new Me(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a),f=u.b,y=new V(e.a);y.a0&&(e.c[t.c.p][t.p].d+=Bc(e.i,24)*_D*.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 cNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;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 mEt(e,t){var r,o,a,u,f,p,m,y,v;return y="",t.length==0?e.le(uwe,nX,-1,-1):(v=Ty(t),wt(v.substr(0,3),"at ")&&(v=(Jt(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=Ty((Jt(f+1,v.length+1),v.substr(f+1))),v=Ty((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=Ty((io(0,f,v.length),v.substr(0,f)))),f=Nf(v,Qa(46)),f!=-1&&(v=(Jt(f+1,v.length+1),v.substr(f+1))),(v.length==0||wt(v,"Anonymous function"))&&(v=nX),p=F8(y,Qa(58)),a=ffe(y,Qa(58),p-1),m=-1,o=-1,u=uwe,p!=-1&&a!=-1&&(u=(io(0,a,y.length),y.substr(0,a)),m=Jrt((io(a+1,p,y.length),y.substr(a+1,p-(a+1)))),o=Jrt((Jt(p+1,y.length+1),y.substr(p+1)))),e.le(u,v,m,o))}function lNn(e){var t,r,o,a,u,f,p,m,y,v,T;for(y=new V(e);y.a0||v.j==Wt&&v.e.c.length-v.g.c.length<0)){t=!1;break}for(a=new V(v.g);a.a=y&&Ee>=G&&(N+=M.n.b+U.n.b+U.a.b-de,++p));if(r)for(f=new V(re.e);f.a=y&&Ee>=G&&(N+=M.n.b+U.n.b+U.a.b-de,++p))}p>0&&(ye+=N/p,++R)}R>0?(t.a=a*ye/R,t.g=R):(t.a=0,t.g=0)}function V0e(e,t,r,o){var a,u,f,p,m;return p=new K0e(t),rSn(p,o),a=!0,e&&e.nf((_n(),Tm))&&(u=l(e.mf((_n(),Tm)),87),a=u==(Si(),hf)||u==cs||u==fs),dyt(p,!1),La(p.e.Pf(),new mfe(p,!1,a)),kW(p,p.f,(Sd(),Bs),(He(),Vt)),kW(p,p.f,Us,dn),kW(p,p.g,Bs,Wt),kW(p,p.g,Us,Qt),k1t(p,Vt),k1t(p,dn),hat(p,Qt),hat(p,Wt),Ww(),f=p.A.Gc((su(),gv))&&p.B.Gc((Uc(),QL))?$gt(p):null,f&&ten(p.a,f),uNn(p),Emn(p),Smn(p),$kn(p),YAn(p),Kmn(p),mY(p,Vt),mY(p,dn),jTn(p),kxn(p),r&&(a1n(p),Ymn(p),mY(p,Qt),mY(p,Wt),m=p.B.Gc((Uc(),C4)),Jmt(p,m,Vt),Jmt(p,m,dn),Xmt(p,m,Qt),Xmt(p,m,Wt),ei(new vt(null,new St(new Zh(p.i),0)),new qR),ei(dr(new vt(null,lhe(p.r).a.oc()),new VR),new RN),awn(p),p.e.Nf(p.o),ei(new vt(null,lhe(p.r).a.oc()),new ON)),p.o}function fNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U;for(y=Kr,o=new V(e.a.b);o.a1)for(R=new j0e(M,oe,o),lo(oe,new jtt(e,R)),Rt(f.c,R),T=oe.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b);if(p.a.gc()>1)for(R=new j0e(M,p,o),lo(p,new Ftt(e,R)),Rt(f.c,R),T=p.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b)}}function bNn(e,t){var r,o,a,u,f,p;if(l(F(t,(Ie(),xa)),24).Gc(($o(),rl))){for(p=new V(t.a);p.a=0&&f0&&(l(Ko(e.b,t),129).a.b=r)}function TNn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J;for(R=0,o=new pi,u=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));u.e!=u.i.gc();)a=l(rn(u),19),Ye(Ke(ve(a,(Ue(),wm))))||(T=Br(a),WF(T)&&!Ye(Ke(ve(a,dB)))&&(Vn(a,(Ie(),Cr),Oe(R)),++R,Gu(a,Ky)&&gi(o,l(ve(a,Ky),15))),yEt(e,a,r));for(Te(r,(Ie(),$1),Oe(R)),Te(r,fL,Oe(o.a.gc())),R=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),WF(t)&&(Vn(m,Cr,Oe(R)),++R),G=QY(m),J=smt(m),N=Ye(Ke(ve(G,(Ue(),Jy)))),U=!Ye(Ke(ve(m,wm))),M=N&&R0(m)&&Ye(Ke(ve(m,bm))),f=Br(G)==t&&Br(G)==Br(J),p=(Br(G)==t&&J==t)^(Br(J)==t&&G==t),U&&!M&&(p||f)&&Q0e(e,m,t,r);if(Br(t))for(y=new tn(Sat(Br(t)));y.e!=y.i.gc();)m=l(rn(y),74),G=QY(m),G==t&&R0(m)&&(M=Ye(Ke(ve(G,(Ue(),Jy))))&&Ye(Ke(ve(m,bm))),M&&Q0e(e,m,t,r))}function ANn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot;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}}}},mTn()||(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[xX]=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 lr(Nwe),new Pr("DEPTH",Oe(0)),rne=new Pr("FAN",Oe(0)),q_e=new Pr(WSt,Oe(0)),G1=new Pr("ROOT",(Lt(),!1)),sne=new Pr("LEFTNEIGHBOR",null),aRt=new Pr("RIGHTNEIGHBOR",null),jB=new Pr("LEFTSIBLING",null),ane=new Pr("RIGHTSIBLING",null),nne=new Pr("DUMMY",!1),new Pr("LEVEL",Oe(0)),K_e=new Pr("REMOVABLE_EDGES",new Ar),CL=new Pr("XCOOR",Oe(0)),IL=new Pr("YCOOR",Oe(0)),FB=new Pr("LEVELHEIGHT",0),Id=new Pr("LEVELMIN",0),sd=new Pr("LEVELMAX",0),ine=new Pr("GRAPH_XMIN",0),one=new Pr("GRAPH_YMIN",0),V_e=new Pr("GRAPH_XMAX",0),W_e=new Pr("GRAPH_YMAX",0),G_e=new Pr("COMPACT_LEVEL_ASCENSION",!1),tne=new Pr("COMPACT_CONSTRAINTS",new je),r4=new Pr("ID",""),o4=new Pr("POSITION",Oe(0)),Ng=new Pr("PRELIM",0),lk=new Pr("MODIFIER",0),uk=new lr(eSt),NL=new lr(tSt)}function NNn(e){x0e();var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;if(e==null)return null;if(T=e.length*8,T==0)return"";for(p=T%24,R=T/24|0,N=p!=0?R+1:R,u=null,u=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,G=o&-128?(o>>6^252)<<24>>24:o>>6<<24>>24,u[f++]=Pg[M],u[f++]=Pg[U|y<<4],u[f++]=Pg[v<<2|G],u[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,u[f++]=Pg[M],u[f++]=Pg[y<<4],u[f++]=61,u[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,u[f++]=Pg[M],u[f++]=Pg[U|y<<4],u[f++]=Pg[v<<2],u[f++]=61),Mf(u,0,u.length)}function CNn(e,t){var r,o,a,u,f,p,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Zi&&ape(t,e.p-N1),f=t.q.getDate(),XO(t,1),e.k>=0&&qcn(t,e.k),e.c>=0?XO(t,e.c):e.k>=0?(m=new Mge(t.q.getFullYear()-N1,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),qtn(t,e.f==24&&e.g?0:e.f),e.j>=0&&_dn(t,e.j),e.n>=0&&$dn(t,e.n),e.i>=0&&Cnt(t,_o(yo(W6(Gs(t.q.getTime()),yg),yg),e.i)),e.a&&(a=new V9,ape(a,a.q.getFullYear()-N1-80),kq(Gs(t.q.getTime()),Gs(a.q.getTime()))&&ape(t,a.q.getFullYear()-N1+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>Zi&&(u=t.q.getTimezoneOffset(),Cnt(t,_o(Gs(t.q.getTime()),(e.o-u)*60*yg))),!0}function TEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de;if(a=F(t,(Ie(),wr)),!!se(a,209)){for(M=l(a,19),U=t.e,N=new To(t.c),u=t.d,N.a+=u.b,N.b+=u.d,de=l(ve(M,(Ue(),EB)),185),fc(de,(Uc(),fU))&&(R=l(ve(M,jAe),100),AZt(R,u.a),CZt(R,u.d),_Zt(R,u.b),xZt(R,u.c)),r=new je,v=new V(t.a);v.ao.c.length-1;)Fe(o,new Co(FE,ave));r=l(F(a,Jf),15).a,ep(l(F(e,cw),87))?(a.e.ace(le((at(r,o.c.length),l(o.c[r],49)).b))&&qG((at(r,o.c.length),l(o.c[r],49)),a.e.a+a.f.a)):(a.e.bce(le((at(r,o.c.length),l(o.c[r],49)).b))&&qG((at(r,o.c.length),l(o.c[r],49)),a.e.b+a.f.b))}for(u=An(e.b,0);u.b!=u.d.c;)a=l(Sn(u),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 RNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U;for(e.o=ce(le(F(e.i,(Ue(),vm)))),e.f=ce(le(F(e.i,B1))),e.j=e.i.b.c.length,p=e.j-1,N=0,e.k=0,e.n=0,e.b=Wl(we(_i,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,R=m+t,y+=t*e.f,nu(e.b,p,Oe(R)),nu(e.c,p,y),e.k=b.Math.max(e.k,R),e.n=b.Math.max(e.n,y),e.e+=t,t+=U}}function xEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;if(t.b!=0){for(R=new Ar,p=null,M=null,o=bo(b.Math.floor(b.Math.log(t.b)*b.Math.LOG10E)+1),m=0,oe=An(t,0);oe.b!=oe.d.c;)for(J=l(Sn(oe),41),me(M)!==me(F(J,(Nr(),r4)))&&(M=In(F(J,r4)),m=0),M!=null?p=M+Hct(m++,o):p=Hct(m++,o),Te(J,r4,p),G=(a=An(new Qh(J).a.d,0),new Vv(a));oO(G.a);)U=l(Sn(G.a),65).c,Wr(R,U,R.c.b,R.c),Te(U,r4,p);for(N=new hn,f=0;f0&&(oe-=R),F0e(f,oe),v=0,N=new V(f.a);N.a0),p.a.Xb(p.c=--p.b)),m=.4*o*v,!u&&p.b0&&(m=(Jt(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(T=t.lastIndexOf("%"),y=!1,T!=0&&(T==N-1||(y=(Jt(T+1,t.length),t.charCodeAt(T+1)==46))))){if(f=(io(1,T,t.length),t.substr(1,T-1)),oe=wt("%",f)?null:J0e(f),o=0,y)try{o=Eu((Jt(T+2,t.length+1),t.substr(T+2)),Zi,ar)}catch(de){throw de=ui(de),se(de,133)?(p=de,Y(new sj(p))):Y(de)}for(G=hge(e.Dh());G.Ob();)if(M=Oj(G),se(M,508)&&(a=l(M,594),re=a.d,(oe==null?re==null:wt(oe,re))&&o--==0))return a;return null}if(v=t.lastIndexOf("."),R=v==-1?t:(io(0,v,t.length),t.substr(0,v)),r=0,v!=-1)try{r=Eu((Jt(v+1,t.length+1),t.substr(v+1)),Zi,ar)}catch(de){if(de=ui(de),se(de,133))R=t;else throw Y(de)}for(R=wt("%",R)?null:J0e(R),U=hge(e.Dh());U.Ob();)if(M=Oj(U),se(M,199)&&(u=l(M,199),J=u.ve(),(R==null?J==null:wt(R,J))&&r--==0))return u;return null}return lEt(e,t)}function FNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re;for(v=new hn,m=new b0,o=new V(e.a.a.b);o.at.d.c){if(R=e.c[t.a.d],G=e.c[T.a.d],R==G)continue;Ql($l(Ul(Hl(Bl(new gl,1),100),R),G))}}}}}function $Nn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;if(N=l(l(yr(e.r,t),24),85),t==(He(),Qt)||t==Wt){vEt(e,t);return}for(u=t==Vt?(A0(),QD):(A0(),eL),de=t==Vt?(Za(),Nd):(Za(),rd),r=l(Ko(e.b,t),129),o=r.i,a=o.c+pE(Z(X(Ki,1),Xo,30,15,[r.n.b,e.C.b,e.k])),J=o.c+o.b-pE(Z(X(Ki,1),Xo,30,15,[r.n.c,e.C.c,e.k])),f=ile(wfe(u),e.t),re=t==Vt?Li:Kr,T=N.Jc();T.Ob();)y=l(T.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(G=y.b.Kf(),U=y.e,R=y.c,M=R.i,M.b=(m=R.n,R.e.a+m.b+m.c),M.a=(p=R.n,R.e.b+p.d+p.a),YO(de,Ewe),R.f=de,Ed(R,(_c(),nd)),M.c=U.a-(M.b-G.a)/2,Ee=b.Math.min(a,U.a),ye=b.Math.max(J,U.a+G.a),M.cye&&(M.c=ye-M.b),Fe(f.d,new YV(M,h1e(f,M))),re=t==Vt?b.Math.max(re,U.b+y.b.Kf().b):b.Math.min(re,U.b));for(re+=t==Vt?e.t:-e.t,oe=I1e((f.e=re,f)),oe>0&&(l(Ko(e.b,t),129).a.b=oe),v=N.Jc();v.Ob();)y=l(v.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(M=y.c.i,M.c-=y.e.a,M.d-=y.e.b)}function BNn(e,t){DJ();var r,o,a,u,f,p,m,y,v,T,N,R,M,U;if(m=Ea(e,0)<0,m&&(e=cg(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 R=new Qg,t<0?R.a+="0E+":R.a+="0E",R.a+=t==Zi?"2147483648":""+-t,R.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]=On(_o(48,El(y,yo(U,10))))&Ti;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(u=r+On(a),p=v-1;p>=u;p--)T[p+1]=T[p];return T[++u]=46,m&&(T[--r]=45),Mf(T,r,v-r+1)}for(f=2;kq(f,_o(cg(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?(Db(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 kEt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,Qu),"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 Rze),Qu))),Le(e,Qu,R7,Ge(rOt)),Le(e,Qu,$0,Ge(iOt)),Le(e,Qu,PE,Ge(QRt)),Le(e,Qu,mT,Ge(eOt)),Le(e,Qu,bT,Ge(tOt)),Le(e,Qu,Ex,Ge(ZRt)),Le(e,Qu,yx,Ge(Txe)),Le(e,Qu,Sx,Ge(nOt)),Le(e,Qu,BZ,Ge(vne)),Le(e,Qu,$Z,Ge(Ene)),Le(e,Qu,j7,Ge(_xe)),Le(e,Qu,UZ,Ge(Sne)),Le(e,Qu,HZ,Ge(xxe)),Le(e,Qu,xve,Ge(kxe)),Le(e,Qu,_ve,Ge(Axe)),Le(e,Qu,Eve,Ge(zB)),Le(e,Qu,Sve,Ge(GB)),Le(e,Qu,Tve,Ge(RL)),Le(e,Qu,Ave,Ge(Nxe)),Le(e,Qu,vve,Ge(Sxe))}function M0(e,t,r,o,a){var u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;if(G=new Me(e.g,e.f),U=ome(e),U.a=b.Math.max(U.a,t),U.b=b.Math.max(U.b,r),ye=U.a/G.a,v=U.b/G.b,de=U.a-G.a,m=U.b-G.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(Gc,e,9,9)),e.c));re.e!=re.i.gc();)switch(J=l(rn(re),127),oe=l(ve(J,w2),64),oe==(He(),Is)&&(oe=k0e(J,f),Vn(J,w2,oe)),oe.g){case 1:p||va(J,J.i*ye);break;case 2:va(J,J.i+de),p||gc(J,J.j*v);break;case 3:p||va(J,J.i*ye),gc(J,J.j+m);break;case 4:p||gc(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),R=T.i+T.g/2,M=T.j+T.f/2,Ee=R/G.a,y=M/G.b,Ee+y>=1&&(Ee-y>0&&M>=0?(va(T,T.i+de),gc(T,T.j+m*y)):Ee-y<0&&R>=0&&(va(T,T.i+de*Ee),gc(T,T.j+m)));return Vn(e,(_n(),Am),(su(),u=l(md(N4),10),new Hu(u,l(Gl(u,u.length),10),0))),new Me(ye,v)}function QF(e){var t,r,o,a,u,f,p,m,y,v,T;if(e==null)throw Y(new kf(tc));if(y=e,u=e.length,m=!1,u>0&&(t=(Jt(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Jt(1,e.length+1),e.substr(1)),--u,m=t==45)),u==0)throw Y(new kf(F0+y+'"'));for(;e.length>0&&(Jt(0,e.length),e.charCodeAt(0)==48);)e=(Jt(1,e.length+1),e.substr(1)),--u;if(u>(tvt(),ixt)[10])throw Y(new kf(F0+y+'"'));for(a=0;a0&&(T=-parseInt((io(0,o,e.length),e.substr(0,o)),10),e=(Jt(o,e.length+1),e.substr(o)),u-=o,r=!1);u>=f;){if(o=parseInt((io(0,f,e.length),e.substr(0,f)),10),e=(Jt(f,e.length+1),e.substr(f)),u-=f,r)r=!1;else{if(Ea(T,p)<0)throw Y(new kf(F0+y+'"'));T=yo(T,v)}T=El(T,o)}if(Ea(T,0)>0)throw Y(new kf(F0+y+'"'));if(!m&&(T=cg(T),Ea(T,0)<0))throw Y(new kf(F0+y+'"'));return T}function J0e(e){$J();var t,r,o,a,u,f,p,m;if(e==null)return null;if(a=Nf(e,Qa(37)),a<0)return e;for(m=new fu((io(0,a,e.length),e.substr(0,a))),t=we(Ec,UE,30,4,15,1),p=0,o=0,f=e.length;aa+2&&FK((Jt(a+1,e.length),e.charCodeAt(a+1)),_3e,x3e)&&FK((Jt(a+2,e.length),e.charCodeAt(a+2)),_3e,x3e))if(r=Kon((Jt(a+1,e.length),e.charCodeAt(a+1)),(Jt(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:{Db(m,((t[0]&31)<<6|t[1]&63)&Ti);break}case 3:{Db(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ti);break}}p=0,o=0}}else{for(u=0;u=2){if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i==0)r=(t1(),a=new b9,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);C0e(t,l(ie((!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 Ei(Iu,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();)u=l(rn(f),158),v=l(ve(u,S4),8),v&&Bu(u,v.a,v.b),T&&(p.a=b.Math.max(p.a,u.i+u.g),p.b=b.Math.max(p.b,u.j+u.f));return p}function CEt(e,t,r,o,a){var u,f,p;if(Xdt(e,t),f=t[0],u=uo(r.c,0),p=-1,Hge(r))if(o>0){if(f+o>e.length)return!1;p=NF((io(0,f+o,e.length),e.substr(0,f+o)),t)}else p=NF(e,t);switch(u){case 71:return p=xE(e,f,Z(X(Je,1),Pe,2,6,[g2t,b2t]),t),a.e=p,!0;case 77:return rTn(e,t,a,p,f);case 76:return iTn(e,t,a,p,f);case 69:return rvn(e,t,f,a);case 99:return ivn(e,t,f,a);case 97:return p=xE(e,f,Z(X(Je,1),Pe,2,6,["AM","PM"]),t),a.b=p,!0;case 121:return oTn(e,t,f,p,r,a);case 100:return p<=0?!1:(a.c=p,!0);case 83:return p<0?!1:m1n(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(fdt[m]&&(G=m),T=new V(e.a.b);T.a=p){cn(re.b>0),re.a.Xb(re.c=--re.b);break}else G.a>m&&(o?(li(o.b,G.b),o.a=b.Math.max(o.a,G.a),Mc(re)):(Fe(G.b,v),G.c=b.Math.min(G.c,m),G.a=b.Math.max(G.a,p),o=G));o||(o=new MZe,o.c=m,o.a=p,Kw(re,o),Fe(o.b,v))}for(f=e.b,y=0,J=new V(r);J.a1;){if(a=J2n(t),T=u.g,M=l(ve(t,u4),100),U=ce(le(ve(t,KB))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i>1&&ce(le(ve(t,(yh(),Rne))))!=Kr&&(u.c+(M.b+M.c))/(u.b+(M.d+M.a))1&&ce(le(ve(t,(yh(),Ine))))!=Kr&&(u.c+(M.b+M.c))/(u.b+(M.d+M.a))>U&&Vn(a,(yh(),sv),b.Math.max(ce(le(ve(t,c4))),ce(le(ve(a,sv)))-ce(le(ve(t,Ine))))),R=new Zle(o,v),m=VEt(R,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++)f0t(e,l(ie((!a.a&&(a.a=new ke(En,a,10,11)),a.a),f),19),l(ie((!t.a&&(t.a=new ke(En,t,10,11)),t.a),f),19));Ift(t,R),Rcn(u,m.c),Ocn(u,m.b)}--p}Vn(t,(yh(),dk),u.b),Vn(t,$T,u.c),r.Ug()}function qNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft;for(t.Tg("Compound graph postprocessor",1),r=Ye(Ke(F(e,(Ue(),Ite)))),p=l(F(e,(Ie(),yTe)),231),v=new pi,J=p.ec().Jc();J.Ob();){for(G=l(J.Pb(),17),f=new Tc(p.cc(G)),At(),ki(f,new Eue(e)),Ee=Dhn((at(0,f.c.length),l(f.c[0],253))),qe=kht(l(ze(f,f.c.length-1),253)),oe=Ee.i,T_(qe.i,oe)?re=oe.e:re=ji(oe),T=Ebn(G,f),tu(G.a),N=null,u=new V(f);u.aHf,ft=b.Math.abs(N.b-M.b)>Hf,(!r&&dt&&ft||r&&(dt||ft))&&Gn(G.a,de)),wo(G.a,o),o.b==0?N=de:N=(cn(o.b!=0),l(o.c.b.c,8)),ipn(R,T,U),kht(a)==qe&&(ji(qe.i)!=a.a&&(U=new ro,nme(U,ji(qe.i),re)),Te(G,lte,U)),vyn(R,G,re),v.a.yc(R,v);mo(G,Ee),Yi(G,qe)}for(y=v.a.ec().Jc();y.Ob();)m=l(y.Pb(),17),mo(m,null),Yi(m,null);t.Ug()}function VNn(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(a=l(F(e,(js(),cw)),87),v=a==(Si(),cs)||a==fs?ff:fs,r=l(Ac(dr(new vt(null,new St(e.b,16)),new jHe),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16),m=l(Ac(Oa(r.Mc(),new iXe(t)),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[nc]))),16),m.Fc(l(Ac(Oa(r.Mc(),new oXe(t)),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[nc]))),18)),m.gd(new sXe(v)),N=new Qp(new aXe(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,(Lt(),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,Fgt(N,y),y)):(new IA(N.a.Xc(y,!1)).a.gc()>0&&(u=l(new IA(N.a.Xc(y,!1)).a.Tc(),41),me(u)===me(Ss(ns(o.f,y)))&&l(F(y,(Nr(),tne)),16).Ec(u)),new IA(N.a.$c(y,!0)).a.gc()>1&&(T=Fgt(N,y),me(Ss(ns(o.f,T)))===me(y)&&l(F(T,(Nr(),tne)),16).Ec(y)),N.a.Ac(y)!=null)}function IEt(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de;if(e.gc()==1)return l(e.Xb(0),238);if(e.gc()<=0)return new XP;for(a=e.Jc();a.Ob();){for(r=l(a.Pb(),238),M=0,v=ar,T=ar,m=Zi,y=Zi,R=new V(r.e);R.ap&&(oe=0,de+=f+J,f=0),mAn(U,r,oe,de),t=b.Math.max(t,oe+G.a),f=b.Math.max(f,G.b),oe+=G.a+J;return U}function WNn(e){x0e();var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;if(e==null||(u=cj(e),M=Rgn(u),M%4!=0))return null;if(U=M/4|0,U==0)return we(Ec,UE,30,0,15,1);for(T=null,t=0,r=0,o=0,a=0,f=0,p=0,m=0,y=0,R=0,N=0,v=0,T=we(Ec,UE,30,U*3,15,1);R>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|a)<<24>>24}return!cO(f=u[v++])||!cO(p=u[v++])?null:(t=mf[f],r=mf[p],m=u[v++],y=u[v++],mf[m]==-1||mf[y]==-1?m==61&&y==61?r&15?null:(G=we(Ec,UE,30,R*3+1,15,1),ca(T,0,G,0,R*3),G[N]=(t<<2|r>>4)<<24>>24,G):m!=61&&y==61?(o=mf[m],o&3?null:(G=we(Ec,UE,30,R*3+2,15,1),ca(T,0,G,0,R*3),G[N++]=(t<<2|r>>4)<<24>>24,G[N]=((r&15)<<4|o>>2&15)<<24>>24,G)):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 KNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee;for(t.Tg(ESt,1),M=l(F(e,(Ue(),kp)),225),a=new V(e.b);a.a=2){for(U=!0,N=new V(u.j),r=l(q(N),12),R=null;N.a0)if(o=T.gc(),y=bo(b.Math.floor((o+1)/2))-1,a=bo(b.Math.ceil((o+1)/2))-1,t.o==cf)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)&&R>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]=(Lt(),!!(Ye(t.f[t.g[de.p].p])&de.k==(Ht(),bi))),R=e.b.e[M.p]));else for(v=y;v<=a;v++)t.a[de.p]==de&&(J=l(T.Xb(v),49),G=l(J.a,9),!bl(r,J.b)&&R0&&(a=l(ze(G.c.a,ye-1),9),f=e.i[a.p],dt=b.Math.ceil(iE(e.n,a,G)),u=Ee.a.e-G.d.d-(f.a.e+a.o.b+a.d.a)-dt),y=Kr,ye0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)<0,M=oe.a.e.e-oe.a.a-(oe.b.e.e-oe.b.a)<0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)>0,R=oe.a.e.e+oe.b.aqe.b.e.e+qe.a.a,de=0,!U&&!M&&(N?u+T>0?de=T:y-o>0&&(de=o):R&&(u+p>0?de=p:y-re>0&&(de=re))),Ee.a.e+=de,Ee.b&&(Ee.d.e+=de),!1))}function OEt(e,t,r){var o,a,u,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(R,(at(r,t.c.length),l(t.c[r],26))),u=0,N=!0,J=ou(jb(si(R))),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))):S1(a,o+u,(at(y,t.c.length),l(t.c[y],26))),T=gJ(T,a);r>0&&(u+=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))):S1(a,o+u,(at(y,t.c.length),l(t.c[y],26)));r>0&&(u+=1)}for(f=!1,U=new Ft(Gt(Or(R).a.Jc(),new D));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(G,(at(y,t.c.length),l(t.c[y],26))):S1(G,o+1,(at(y,t.c.length),l(t.c[y],26))));f&&(u+=1),f=!0}return u>0?u-1:0}function k1(e,t){hr();var r,o,a,u,f,p,m,y,v,T,N,R,M;if(WN(xk)==0){for(T=we(kCn,Pe,122,zLt.length,0,1),f=0;fy&&(o.a+=grt(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?u=J:(a=l(F(o,NT),16),a?J.gc()<=a.gc()?u=J:u=a:(u=new je,Te(o,NT,u))):(u=new je,Te(o,MT,u))):(a=l(F(o,(Ie(),NT)),16),a?T?u=a:(J=l(F(o,MT),16),J?a.gc()<=J.gc()?u=a:u=J:(u=new je,Te(o,MT,u))):(u=new je,Te(o,NT,u))),u.Ec(e),Te(e,(Ie(),nB),r),t.d==r?(Yi(t,null),r.e.c.length+r.g.c.length==0&&As(r,null),Dpn(r)):(mo(t,null),r.e.c.length+r.g.c.length==0&&As(r,null)),tu(t.a)}function QNn(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot,on,qn,Gr;for(r.Tg("MinWidth layering",1),R=t.b,qe=t.a,Gr=l(F(t,(Ue(),CAe)),15).a,p=l(F(t,IAe),15).a,e.b=ce(le(F(t,od))),e.d=Kr,de=new V(qe);de.aR&&(u&&(So(ye,N),So(dt,Oe(y.b-1))),qn=r.b,Gr+=N+t,N=0,v=b.Math.max(v,r.b+r.c+on)),va(p,qn),gc(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),Ot=Gr+N+r.a,Ot0?(y=0,G&&(y+=p),y+=(ft-1)*f,oe&&(y+=p),dt&&oe&&(y=b.Math.max(y,bSn(oe,f,re,qe))),y=e.a&&(o=L_n(e,re),v=b.Math.max(v,o.b),de=b.Math.max(de,o.d),Fe(p,new Co(re,o)));for(dt=new je,y=0;y0),G.a.Xb(G.c=--G.b),ft=new ra(e.b),Kw(G,ft),cn(G.b0){for(N=v<100?null:new e1(v),y=new Sge(t),M=y.g,J=we(Rn,Qn,30,v,15,1),o=0,de=new w0(v),a=0;a=0;)if(R!=null?gr(R,M[m]):me(R)===me(M[m])){J.length<=o&&(G=J,J=we(Rn,Qn,30,2*J.length,15,1),ca(G,0,J,0,o)),J[o++]=a,Tn(de,M[m]);break e}if(R=R,me(R)===me(p))break}}if(y=de,M=de.g,v=o,o>J.length&&(G=J,J=we(Rn,Qn,30,o,15,1),ca(G,0,J,0,o)),o>0){for(oe=!0,u=0;u=0;)ZS(e,J[f]);if(o!=v){for(a=v;--a>=o;)ZS(y,a);G=J,J=we(Rn,Qn,30,o,15,1),ca(G,0,J,0,o)}t=y}}}else for(t=Nmn(e,t),a=e.i;--a>=0;)t.Gc(e.g[a])&&(ZS(e,a),oe=!0);if(oe){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 e1(r),a=t.Jc();a.Ob();)R=a.Pb(),N=pfe(e,l(R,76),N);N?(N.lj(T),N.mj()):pr(e.e,T)}else{for(N=frn(t.gc()),a=t.Jc();a.Ob();)R=a.Pb(),N=pfe(e,l(R,76),N);N&&N.mj()}return!0}else return!1}function i3n(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;for(r=new I1t(t),r.a||NAn(t),y=xTn(t),m=new b0,G=new Vwt,U=new V(t.a);U.a0||r.o==cf&&a=r}function s3n(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct;for(oe=e.a,de=0,Ee=oe.length;de0?(T=l(ze(N.c.a,f-1),9),dt=iE(e.b,N,T),G=N.n.b-N.d.d-(T.n.b+T.o.b+T.d.a+dt)):G=N.n.b-N.d.d,y=b.Math.min(G,y),f1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,1),8).b-v.b)))));else for(U=new V(t.j);U.aa&&(u=N.a-a,f=ar,o.c.length=0,a=N.a),N.a>=a&&(Rt(o.c,p),p.a.b>1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,p.a.b-2),8).b-N.b)))));if(o.c.length!=0&&u>t.o.a/2&&f>t.o.b/2){for(R=new aa,As(R,t),Ii(R,(He(),Vt)),R.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?mo(p,J):mo(p,R)):(y=l(Fon(p.a),8),G=p.a.b==0?qd(p.c):l(zl(p.a),8),G.b>=y.b?Yi(p,J):Yi(p,R)),T=l(F(p,(Ue(),as)),79),T&&my(T,y,!0);t.n.a=a-t.o.a/2}}function u3n(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(p=An(e.b,0);p.b!=p.d.c;)if(f=l(Sn(p),41),!wt(f.c,L7))for(y=OEn(f,e),t==(Si(),cs)||t==fs?ki(y,new hze):ki(y,new pze),m=y.c.length,o=0;o=0?R=WS(p):R=P6(WS(p)),e.of(rk,R)),y=new ro,N=!1,e.nf(sw)?(Fde(y,l(e.mf(sw),8)),N=!0):tnn(y,f.a/2,f.b/2),R.g){case 4:Te(v,Cs,(iu(),xp)),Te(v,iB,(Vb(),XE)),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,(iu(),gm)),Te(v,iB,(Vb(),Jx)),v.o.b=f.b,U<0&&(v.o.a=-U),Ii(T,(He(),Wt)),N||(y.a=0);break;case 1:Te(v,hm,(lp(),QE)),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(),Vt)),N||(y.b=0)}if(Fde(T.n,y),Te(v,sw,y),t==_m||t==Oh||t==fa){if(M=0,t==_m&&e.nf(xg))switch(R.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(R.g){case 4:case 2:M=u.b,t==Oh&&(M/=a.b);break;case 1:case 3:M=u.a,t==Oh&&(M/=a.a)}Te(v,nw,M)}return Te(v,Hs,R),v}function l3n(){ale();function e(o){var a=this;this.dispatch=function(u){var f=u.data;switch(f.cmd){case"algorithms":var p=D1e((At(),new CA(new Zh(X1.b))));o.postMessage({id:f.id,data:p});break;case"categories":var m=D1e((At(),new CA(new Zh(X1.c))));o.postMessage({id:f.id,data:m});break;case"options":var y=D1e((At(),new CA(new Zh(X1.d))));o.postMessage({id:f.id,data:y});break;case"register":lkn(f.algorithms),o.postMessage({id:f.id});break;case"layout":Cxn(f.graph,f.layoutOptions||{},f.options||{}),o.postMessage({id:f.id,data:f.graph});break}},this.saveDispatch=function(u){try{a.dispatch(u)}catch(f){o.postMessage({id:u.data.id,error:f})}}}function t(o){var a=this;this.dispatcher=new e({postMessage:function(u){a.onmessage({data:u})}}),this.postMessage=function(u){setTimeout(function(){a.dispatcher.saveDispatch({data:u})},0)}}if(typeof document===IX&&typeof self!==IX){var r=new e(self);self.onmessage=r.saveDispatch}else typeof c!==IX&&c.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),c.exports={default:t,Worker:t})}function VJ(e,t,r,o,a,u,f){var p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot,on,qn,Gr;for(U=0,Ct=0,y=new V(e.b);y.aU&&(u&&(So(ye,R),So(dt,Oe(v.b-1)),Fe(e.d,M),p.c.length=0),qn=r.b,Gr+=R+t,R=0,T=b.Math.max(T,r.b+r.c+on)),Rt(p.c,m),A1t(m,qn,Gr),T=b.Math.max(T,qn+on+r.c),R=b.Math.max(R,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),Ot=Gr+R+r.a,Ota.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&&(u=l(Ut(e.f,f.d.i),60),t.bu.d.d+u.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))}for(p=new Ft(Gt(si(R).a.Jc(),new D));an(p);)f=l(en(p),17),f.a.b!=0&&(t=l(zl(f.a),8),f.d.j==(He(),Vt)&&(G=new DC(t,new Me(t.a,a.d.d),a,f),G.f.a=!0,G.a=f.d,Rt(U.c,G)),f.d.j==dn&&(G=new DC(t,new Me(t.a,a.d.d+a.d.a),a,f),G.f.d=!0,G.a=f.d,Rt(U.c,G)))}return U}function b3n(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(m=new je,T=t.length,f=$ge(r),y=0;y=M&&(re>M&&(R.c.length=0,M=re),Rt(R.c,f));R.c.length!=0&&(N=l(ze(R,uF(t,R.c.length)),134),Ot.a.Ac(N)!=null,N.s=U++,$me(N,ft,ye),R.c.length=0)}for(de=e.c.length+1,p=new V(e);p.aCt.s&&(Mc(r),Xa(Ct.i,o),o.c>0&&(o.a=Ct,Fe(Ct.t,o),o.b=qe,Fe(qe.i,o)))}function FEt(e,t,r,o,a){var u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot;for(U=new Da(t.b),de=new Da(t.b),N=new Da(t.b),dt=new Da(t.b),G=new Da(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?Rt(N.c,Ee):y?Rt(U.c,Ee):J&&Rt(de.c,Ee);for(M=new V(U);M.are.mh()-y.b&&(N=re.mh()-y.b),R>re.nh()-y.d&&(R=re.nh()-y.d),v0){for(oe=An(e.f,0);oe.b!=oe.d.c;)re=l(Sn(oe),9),re.p+=N-e.e;tme(e),tu(e.f),e0e(e,o,R)}else{for(Gn(e.f,R),R.p=o,e.e=b.Math.max(e.e,o),u=new Ft(Gt(si(R).a.Jc(),new D));an(u);)a=l(en(u),17),!a.c.i.c&&a.c.i.k==(Ht(),ta)&&(Gn(e.f,a.c.i),a.c.i.p=o-1);e.c=o}else tme(e),tu(e.f),o=0,an(new Ft(Gt(si(R).a.Jc(),new D)))?(N=0,N=N1t(N,R),o=N+2,e0e(e,o,R)):(Gn(e.f,R),R.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||tme(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(),kEe))))}else throw Y(new Dn(jn((Cn(),MAt))));if(r=o,t==44){if(a>=e.j)throw Y(new Dn(jn((Cn(),jAt))));if((t=uo(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(),kEe))));if(o>r)throw Y(new Dn(jn((Cn(),FAt))))}else r=-1}if(t!=125)throw Y(new Dn(jn((Cn(),PAt))));e._l(a)?(u=(hr(),hr(),new ay(9,u)),e.d=a+1):(u=(hr(),hr(),new ay(3,u)),e.d=a),u.Mm(o),u.Lm(r),fr(e)}}return u}function S3n(e){var t,r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee;for(a=1,R=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(ie((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),G=qn,qn>Ee+de?G=Ee+de:qnye+U?J=ye+U:GrEe-de&&Gye-U&&Jqn+on?dt=qn+on:EeGr+qe?ft=Gr+qe:yeqn-on&&dtGr-qe&&ftr&&(N=r-1),R=jg+Bc(t,24)*_D*T-T/2,R<0?R=1:R>o&&(R=o-1),a=(t1(),m=new m9,m),bj(a,N),gj(a,R),Tn((!f.a&&(f.a=new Ei(Iu,f,5)),f.a),a)}function YJ(e,t){DJ();var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe;if(oe=e.e,v=e.d,a=e.a,oe==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 Qg,J.a+="0E",J.a+=-t,J.a}if(U=v*10+1+7,G=we(al,Bf,30,U+1,15,1),r=U,v==1)if(u=a[0],u<0){qe=Gi(u,Bo);do T=qe,qe=W6(qe,10),G[--r]=48+On(El(T,yo(qe,10)))&Ti;while(Ea(qe,0)!=0)}else{qe=u;do T=qe,qe=qe/10|0,G[--r]=48+(T-qe*10)&Ti;while(qe!=0)}else{de=we(Rn,Qn,30,v,15,1),ye=v,ca(a,0,de,0,ye);e:for(;;){for(re=0,p=ye-1;p>=0;p--)Ee=_o(fh(re,32),Gi(de[p],Bo)),R=Ewn(Ee),de[p]=On(R),re=On(c0(R,32));M=On(re),N=r;do G[--r]=48+M%10&Ti;while((M=M/10|0)!=0&&r!=0);for(o=9-N+r,f=0;f0;f++)G[--r]=48;for(m=ye-1;de[m]==0;m--)if(m==0)break e;ye=m+1}for(;G[r]==48;)++r}return y=oe<0,y&&(G[--r]=45),Mf(G,r,U-r)}function HEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;switch(e.c=t,e.g=new hn,r=(n1(),new Yp(e.c)),o=new _9(r),N1e(o),oe=In(ve(e.c,(Y6(),yke))),m=l(ve(e.c,Vne),331),Ee=l(ve(e.c,Wne),432),f=l(ve(e.c,bke),480),de=l(ve(e.c,qne),433),e.j=ce(le(ve(e.c,WOt))),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($7+(m.f!=null?m.f:""+m.g)))}if(e.d=new oct(p,Ee,f),Te(e.d,(S_(),EI),Ke(ve(e.c,qOt))),e.d.c=Ye(Ke(ve(e.c,mke))),NP(e.c).i==0)return e.d;for(T=new tn(NP(e.c));T.e!=T.i.gc();){for(v=l(rn(T),19),R=v.g/2,N=v.f/2,ye=new Me(v.i+R,v.j+N);ma(e.g,ye);)Vw(ye,(b.Math.random()-.5)*Hf,(b.Math.random()-.5)*Hf);U=l(ve(v,(_n(),Cp)),125),G=new Cct(ye,new ql(ye.a-R-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,G),Jn(e.g,ye,new Co(G,v))}switch(de.g){case 0:if(oe==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,R=1,T=new je,e.e=l(F(t,(Ie(),DT)),237);Ru>0;){for(;e.f.b!=0;)Gr=l(BV(e.f),9),e.c[Gr.p]=M--,m0e(e,Gr),--Ru;for(;e.g.b!=0;)Oc=l(BV(e.g),9),e.c[Oc.p]=R++,m0e(e,Oc),--Ru;if(Ru>0){for(N=Zi,re=new V(oe);re.a=N&&(de>N&&(T.c.length=0,N=de),Rt(T.c,U)));v=e.qg(T),e.c[v.p]=R++,m0e(e,v),--Ru}}for(qn=oe.c.length+1,y=0;ye.c[us]&&(mg(o,!0),Te(t,CT,(Lt(),!0)));e.a=null,e.d=null,e.c=null,tu(e.g),tu(e.f),r.Ug()}function GEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;for(Ee=l(ie((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),v=new Lc,de=new hn,ye=Zyt(Ee),ec(de.f,Ee,ye),N=new hn,o=new Ar,M=hh(Wu(Z(X(nl,1),It,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(R=l(en(M),74),(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(zTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));R!=e&&(G=l(ie((!R.a&&(R.a=new ke(jr,R,6,6)),R.a),0),171),Wr(o,G,o.c.b,o.c),U=l(Ss(ns(de.f,G)),13),U||(U=Zyt(G),ec(de.f,G,U)),T=r?Di(new To(l(ze(ye,ye.c.length-1),8)),l(ze(U,U.c.length-1),8)):Di(new To((at(0,ye.c.length),l(ye.c[0],8))),(at(0,U.c.length),l(U.c[0],8))),ec(N.f,G,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),gK(a)));J=re}return v}function qEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct;for(r.Tg(YSt,1),Ct=l(Ac(dr(new vt(null,new St(t,16)),new aze),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),16),v=l(Ac(dr(new vt(null,new St(t,16)),new uXe(t)),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[nc]))),16),M=l(Ac(dr(new vt(null,new St(t,16)),new cXe(t)),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[nc]))),16),U=we(PB,M7,41,t.gc(),0,1),f=0;f=0&&ft=0&&!U[R]){U[R]=a,v.ed(p),--p;break}if(R=ft-N,R=0&&!U[R]){U[R]=a,v.ed(p),--p;break}}for(M.gd(new cze),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(),DL))))&&UAn(t,M,u,v,G,r,N,o)){U=!0;continue}if(G){if(R=M.b,T=v.f,!Ye(Ke(l(ze(v.b,0),19).mf(DL)))&&ukn(t,M,u,v,r,N,o,a)){if(U=!0,R=e.j){e.a=-1,e.c=1;return}if(t=uo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(o=10,e.d>=e.j)throw Y(new Dn(jn((Cn(),W7))));e.a=uo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||uo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw Y(new Dn(jn((Cn(),wQ))));switch(t=uo(e.i,e.d++),t){case 58:o=13;break;case 61:o=14;break;case 33:o=15;break;case 91:o=19;break;case 62:o=18;break;case 60:if(e.d>=e.j)throw Y(new Dn(jn((Cn(),wQ))));if(t=uo(e.i,e.d++),t==61)o=16;else if(t==33)o=17;else throw Y(new Dn(jn((Cn(),mAt))));break;case 35:for(;e.d=e.j)throw Y(new Dn(jn((Cn(),W7))));e.a=uo(e.i,e.d++);break;default:o=0}e.c=o}function O3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G;if(r.Tg("Process compaction",1),!!Ye(Ke(F(t,(js(),Z_e))))){for(a=l(F(t,cw),87),R=ce(le(F(t,une))),nxn(e,t,a),VNn(t,R/2/2),M=t.b,zb(M,new tXe(a)),y=An(M,0);y.b!=y.d.c;)if(m=l(Sn(y),41),!Ye(Ke(F(m,(Nr(),G1))))){if(o=kTn(m,a),U=S_n(m,t),T=0,N=0,o)switch(G=o.e,a.g){case 2:T=G.a-R-m.f.a,U.e.a-R-m.f.aT&&(T=U.e.a+U.f.a+R),N=T+m.f.a;break;case 4:T=G.b-R-m.f.b,U.e.b-R-m.f.bT&&(T=U.e.b+U.f.b+R),N=T+m.f.b}else if(U)switch(a.g){case 2:T=U.e.a-R-m.f.a,N=T+m.f.a;break;case 1:T=U.e.a+U.f.a+R,N=T+m.f.a;break;case 4:T=U.e.b-R-m.f.b,N=T+m.f.b;break;case 3:T=U.e.b+U.f.b+R,N=T+m.f.b}me(F(t,cne))===me((eC(),kL))?(u=T,f=N,p=hp(dr(new vt(null,new St(e.a,16)),new Utt(u,f))),p.a!=null?a==(Si(),cs)||a==fs?m.e.a=T:m.e.b=T:(a==(Si(),cs)||a==il?p=hp(dr(Mft(new vt(null,new St(e.a,16))),new nXe(u))):p=hp(dr(Mft(new vt(null,new St(e.a,16))),new rXe(u))),p.a!=null&&(a==cs||a==fs?m.e.a=ce(le((cn(p.a!=null),l(p.a,49)).a)):m.e.b=ce(le((cn(p.a!=null),l(p.a,49)).a)))),p.a!=null&&(v=_s(e.a,(cn(p.a!=null),p.a),0),v>0&&v!=l(F(m,Jf),15).a&&(Te(m,G_e,(Lt(),!0)),Te(m,Jf,Oe(v))))):a==(Si(),cs)||a==fs?m.e.a=T:m.e.b=T}r.Ug()}}function D3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee;if(r.Tg("Coffman-Graham Layering",1),t.a.c.length==0){r.Ug();return}for(Ee=l(F(t,(Ue(),NAe)),15).a,m=0,f=0,N=new V(t.a);N.a=Ee||!P1n(J,o))&&(o=pat(t,v)),Oi(J,o),u=new Ft(Gt(si(J).a.Jc(),new D));an(u);)a=l(en(u),17),!e.a[a.p]&&(U=a.c.i,--e.e[U.p],e.e[U.p]==0&&xS(V_(R,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 WEt(e){var t,r,o,a,u,f,p,m,y;for(e.b=1,fr(e),t=null,e.c==0&&e.a==94?(fr(e),t=(hr(),hr(),new bu(4)),Sa(t,0,Fx),p=new bu(4)):p=(hr(),hr(),new bu(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:Iy(p,tx(r)),o=!0;break;case 105:case 73:case 99:case 67:r=(Iy(p,tx(r)),-1),r<0&&(o=!0);break;case 112:case 80:if(m=wme(e,r),!m)throw Y(new Dn(jn((Cn(),yQ))));Iy(p,m),o=!0;break;default:r=n0e(e)}else if(y==24&&!a){if(t&&($C(t,p),p=t),u=WEt(e),$C(p,u),e.c!=0||e.a!=93)throw Y(new Dn(jn((Cn(),kAt))));break}if(fr(e),!o){if(y==0){if(r==91)throw Y(new Dn(jn((Cn(),_Ee))));if(r==93)throw Y(new Dn(jn((Cn(),xEe))));if(r==45&&!a&&e.a!=93)throw Y(new Dn(jn((Cn(),vQ))))}if(e.c!=0||e.a!=45||r==45&&a)Sa(p,r,r);else{if(fr(e),(y=e.c)==1)throw Y(new Dn(jn((Cn(),K7))));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(),vQ))));if(f=e.a,y==0){if(f==91)throw Y(new Dn(jn((Cn(),_Ee))));if(f==93)throw Y(new Dn(jn((Cn(),xEe))));if(f==45)throw Y(new Dn(jn((Cn(),vQ))))}else y==10&&(f=n0e(e));if(fr(e),r>f)throw Y(new Dn(jn((Cn(),IAt))));Sa(p,r,f)}}}a=!1}if(e.c==1)throw Y(new Dn(jn((Cn(),K7))));return kE(p),PC(p),e.b=0,fr(e),p}function KEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de;de=!1;do for(de=!1,u=t?new Xh(e.a.b).a.gc()-2:1;t?u>=0:ul(F(G,Cr),15).a)&&(oe=!1);if(oe){for(m=t?u+1:u-1,p=rpe(e.a,Oe(m)),f=!1,re=!0,o=!1,v=An(p,0);v.b!=v.d.c;)y=l(Sn(v),9),br(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==(Ht(),ta)&&(o=!0,t?N=l(en(new Ft(Gt(si(y).a.Jc(),new D))),17).c.i:N=l(en(new Ft(Gt(Or(y).a.Jc(),new D))),17).d.i,N==T&&(t?r=l(en(new Ft(Gt(Or(y).a.Jc(),new D))),17).d.i:r=l(en(new Ft(Gt(si(y).a.Jc(),new D))),17).c.i,(t?l(qw(e.a,r),15).a-l(qw(e.a,N),15).a:l(qw(e.a,N),15).a-l(qw(e.a,r),15).a)<=2&&(re=!1)));if(o&&re&&(t?r=l(en(new Ft(Gt(Or(T).a.Jc(),new D))),17).d.i:r=l(en(new Ft(Gt(si(T).a.Jc(),new D))),17).c.i,(t?l(qw(e.a,r),15).a-l(qw(e.a,T),15).a:l(qw(e.a,T),15).a-l(qw(e.a,r),15).a)<=2&&r.k==(Ht(),Xr)&&(re=!1)),f||re){for(U=Swt(e,T,t);U.a.gc()!=0;)M=l(U.a.ec().Jc().Pb(),9),U.a.Ac(M)!=null,wo(U,Swt(e,M,t));--R,de=!0}}}while(de)}function L3n(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",sr,"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",sr,"EByte:Object"])),xn(e.n,Bn,Z(X(Je,1),Pe,2,6,[ho,"EChar",sr,"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",sr,"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",sr,"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",sr,"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",sr,"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",sr,"EShort:Object"])),xn(e._,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#string"]))}function Ue(){Ue=K,kte=(_n(),eDt),GAe=tDt,vL=nDt,od=rDt,s2=xNe,ym=kNe,nv=NNe,ok=CNe,sk=INe,Nte=sU,vm=Od,Cte=iDt,GI=DNe,SB=qT,yL=(ewe(),qCt),tv=VCt,B1=WCt,rv=KCt,LIt=new Mi(HL,Oe(0)),ik=HCt,zAe=zCt,FT=GCt,QAe=bIt,VAe=XCt,WAe=eIt,Rte=aIt,KAe=rIt,YAe=oIt,TB=vIt,Ote=mIt,XAe=fIt,JAe=lIt,ZAe=pIt,OAe=ACt,Tte=vCt,mB=yCt,Ate=SCt,ow=PCt,zI=jCt,Ete=K3t,EAe=J3t,$It=wk,BIt=aU,FIt=hv,jIt=mk,qAe=(VS(),bv),new Mi(VT,qAe),FAe=new xb(12),jAe=new Mi(df,FAe),wAe=(gp(),Ek),kp=new Mi(rNe,wAe),Zy=new Mi(zc,0),MIt=new Mi(Tre,Oe(1)),cB=new Mi(gk,bx),wm=oU,Zr=bk,rk=w2,kIt=BL,Kf=U6t,Yy=p2,PIt=new Mi(Are,(Lt(),!0)),Jy=UL,bm=gre,mm=Am,EB=q1,xte=lv,mAe=(Si(),hf),xu=new Mi(Tm,mAe),iw=b2,yB=dNe,Qy=dv,DIt=Sre,UAe=ANe,BAe=(EE(),WL),new Mi(yNe,BAe),IIt=wre,RIt=yre,OIt=vre,CIt=mre,Ite=JCt,bB=wCt,wL=mCt,qI=YCt,Cs=lCt,jT=B3t,BI=$3t,tk=A3t,pAe=_3t,wte=C3t,mL=x3t,yte=j3t,DAe=_Ct,LAe=xCt,kAe=iCt,vB=BCt,_te=CCt,Ste=Q3t,PAe=LCt,vAe=V3t,vte=W3t,mte=$L,MAe=kCt,lB=s3t,lAe=o3t,uB=i3t,AAe=nCt,TAe=tCt,_Ae=rCt,nk=m2,as=g2,_g=q6t,Yf=pre,o2=iU,gAe=R3t,xg=Ere,PI=G6t,gB=W6t,sw=ENe,$Ae=J6t,Xy=X6t,CAe=fCt,IAe=pCt,ev=GT,hte=r3t,RAe=bCt,pB=z3t,hB=H3t,wB=Cp,NAe=aCt,HI=RCt,EL=RNe,bAe=U3t,HAe=UCt,yAe=G3t,AIt=D3t,_It=L3t,NIt=uCt,xIt=M3t,xAe=bre,UI=dCt,fB=P3t,Ch=T3t,gte=v3t,bL=c3t,pte=u3t,dB=E3t,jI=a3t,bte=S3t,Ky=y3t,$I=w3t,TIt=m3t,PT=l3t,FI=b3t,hAe=g3t,dAe=d3t,fAe=h3t,SAe=eCt}function M3n(e,t,r,o,a,u,f){var p,m,y,v,T,N,R,M;return N=l(o.a,15).a,R=l(o.b,15).a,T=e.b,M=e.c,p=0,v=0,t==(Si(),cs)||t==fs?(v=wO(Tgt(ny(Oa(new vt(null,new St(r.b,16)),new yze),new nze))),T.e.b+T.f.b/2>v?(y=++R,p=ce(le(Xc(Zw(Oa(new vt(null,new St(r.b,16)),new Gtt(a,y)),new rze))))):(m=++N,p=ce(le(Xc(NS(Oa(new vt(null,new St(r.b,16)),new qtt(a,m)),new ize)))))):(v=wO(Tgt(ny(Oa(new vt(null,new St(r.b,16)),new fze),new eze))),T.e.a+T.f.a/2>v?(y=++R,p=ce(le(Xc(Zw(Oa(new vt(null,new St(r.b,16)),new ztt(a,y)),new oze))))):(m=++N,p=ce(le(Xc(NS(Oa(new vt(null,new St(r.b,16)),new Htt(a,m)),new lze)))))),t==cs?(So(e.a,new Me(ce(le(F(T,(Nr(),Id))))-a,p)),So(e.a,new Me(M.e.a+M.f.a+a+u,p)),So(e.a,new Me(M.e.a+M.f.a+a+u,M.e.b+M.f.b/2)),So(e.a,new Me(M.e.a+M.f.a,M.e.b+M.f.b/2))):t==fs?(So(e.a,new Me(ce(le(F(T,(Nr(),sd))))+a,T.e.b+T.f.b/2)),So(e.a,new Me(T.e.a+T.f.a+a,p)),So(e.a,new Me(M.e.a-a-u,p)),So(e.a,new Me(M.e.a-a-u,M.e.b+M.f.b/2)),So(e.a,new Me(M.e.a,M.e.b+M.f.b/2))):t==il?(So(e.a,new Me(p,ce(le(F(T,(Nr(),Id))))-a)),So(e.a,new Me(p,M.e.b+M.f.b+a+u)),So(e.a,new Me(M.e.a+M.f.a/2,M.e.b+M.f.b+a+u)),So(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=ce(le(F(T,(Nr(),sd))))+a*l(f.b,15).a),So(e.a,new Me(p,ce(le(F(T,(Nr(),sd))))+a*l(f.b,15).a)),So(e.a,new Me(p,M.e.b-a*l(f.a,15).a-u))),new Co(Oe(N),Oe(R))}function P3n(e){var t,r,o,a,u,f,p,m,y,v,T,N,R;if(f=!0,T=null,o=null,a=null,t=!1,R=rLt,y=null,u=null,p=0,m=wY(e,p,k3e,N3e),m=0&&wt(e.substr(p,2),"//")?(p+=2,m=wY(e,p,O4,D4),o=(io(p,m,e.length),e.substr(p,m-p)),p=m):T!=null&&(p==e.length||(Jt(p,e.length),e.charCodeAt(p)!=47))&&(f=!1,m=Nde(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&&uo(v,v.length-1)==58&&(a=v,p=m)),pf?(au(e,t,r),1):(au(e,r,t),-1)}for(re=e.f,oe=0,de=re.length;oe0?au(e,t,r):au(e,r,t),o;if(!br(t,(Ie(),Cr))||!br(r,Cr))return u=qY(e,t),p=qY(e,r),u>p?(au(e,t,r),1):(au(e,r,t),-1)}if(!N&&!M&&(o=JEt(e,t,r),o!=0))return o>0?au(e,t,r):au(e,r,t),o}return br(t,(Ie(),Cr))&&br(r,Cr)?(u=D0(t,r,e.c,l(F(e.c,$1),15).a),p=D0(r,t,e.c,l(F(e.c,$1),15).a),u>p?(au(e,t,r),1):(au(e,r,t),-1)):(au(e,r,t),-1)}function YEt(){YEt=K,KJ(),Wn=new b0,yt(Wn,(He(),dd),gf),yt(Wn,Rl,gf),yt(Wn,Ic,gf),yt(Wn,fd,gf),yt(Wn,sc,gf),yt(Wn,Rc,gf),yt(Wn,fd,dd),yt(Wn,gf,ol),yt(Wn,dd,ol),yt(Wn,Rl,ol),yt(Wn,Ic,ol),yt(Wn,oc,ol),yt(Wn,fd,ol),yt(Wn,sc,ol),yt(Wn,Rc,ol),yt(Wn,Wa,ol),yt(Wn,gf,Nu),yt(Wn,dd,Nu),yt(Wn,ol,Nu),yt(Wn,Rl,Nu),yt(Wn,Ic,Nu),yt(Wn,oc,Nu),yt(Wn,fd,Nu),yt(Wn,Wa,Nu),yt(Wn,Cu,Nu),yt(Wn,sc,Nu),yt(Wn,vc,Nu),yt(Wn,Rc,Nu),yt(Wn,dd,Rl),yt(Wn,Ic,Rl),yt(Wn,fd,Rl),yt(Wn,Rc,Rl),yt(Wn,dd,Ic),yt(Wn,Rl,Ic),yt(Wn,fd,Ic),yt(Wn,Ic,Ic),yt(Wn,sc,Ic),yt(Wn,gf,sl),yt(Wn,dd,sl),yt(Wn,ol,sl),yt(Wn,Nu,sl),yt(Wn,Rl,sl),yt(Wn,Ic,sl),yt(Wn,oc,sl),yt(Wn,fd,sl),yt(Wn,Cu,sl),yt(Wn,Wa,sl),yt(Wn,Rc,sl),yt(Wn,sc,sl),yt(Wn,ka,sl),yt(Wn,gf,Cu),yt(Wn,dd,Cu),yt(Wn,ol,Cu),yt(Wn,Rl,Cu),yt(Wn,Ic,Cu),yt(Wn,oc,Cu),yt(Wn,fd,Cu),yt(Wn,Wa,Cu),yt(Wn,Rc,Cu),yt(Wn,vc,Cu),yt(Wn,ka,Cu),yt(Wn,dd,Wa),yt(Wn,Rl,Wa),yt(Wn,Ic,Wa),yt(Wn,fd,Wa),yt(Wn,Cu,Wa),yt(Wn,Rc,Wa),yt(Wn,sc,Wa),yt(Wn,gf,ic),yt(Wn,dd,ic),yt(Wn,ol,ic),yt(Wn,Rl,ic),yt(Wn,Ic,ic),yt(Wn,oc,ic),yt(Wn,fd,ic),yt(Wn,Wa,ic),yt(Wn,Rc,ic),yt(Wn,dd,sc),yt(Wn,ol,sc),yt(Wn,Nu,sc),yt(Wn,Ic,sc),yt(Wn,gf,vc),yt(Wn,dd,vc),yt(Wn,Nu,vc),yt(Wn,Rl,vc),yt(Wn,Ic,vc),yt(Wn,oc,vc),yt(Wn,fd,vc),yt(Wn,fd,ka),yt(Wn,Ic,ka),yt(Wn,Wa,gf),yt(Wn,Wa,Rl),yt(Wn,Wa,ol),yt(Wn,oc,gf),yt(Wn,oc,dd),yt(Wn,oc,Nu)}function j3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;switch(r.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=h_n(t),o=l(F(t,(Ue(),_te)),284),R=Ye(Ke(F(t,HI))),e.d=o==(K6(),Z$)&&!R||o==Jee,akn(e,t),Ee=null,ye=null,J=null,re=null,G=(wu(4,Oy),new Da(4)),l(F(t,_te),284).g){case 3:J=new CE(t,e.c.d,(zd(),Em),(If(),kg)),Rt(G.c,J);break;case 1:re=new CE(t,e.c.d,(zd(),cf),(If(),kg)),Rt(G.c,re);break;case 4:Ee=new CE(t,e.c.d,(zd(),Em),(If(),aw)),Rt(G.c,Ee);break;case 2:ye=new CE(t,e.c.d,(zd(),cf),(If(),aw)),Rt(G.c,ye);break;default:J=new CE(t,e.c.d,(zd(),Em),(If(),kg)),re=new CE(t,e.c.d,cf,kg),Ee=new CE(t,e.c.d,Em,aw),ye=new CE(t,e.c.d,cf,aw),Rt(G.c,Ee),Rt(G.c,ye),Rt(G.c,J),Rt(G.c,re)}for(a=new Ptt(t,e.c),p=new V(G);p.afJ(u))&&(T=u);for(!T&&(T=(at(0,G.c.length),l(G.c[0],188))),U=new V(t.b);U.a0?(au(e,r,t),1):(au(e,t,r),-1);if(v&&oe)return au(e,r,t),1;if(T&&re)return au(e,t,r),-1;if(T&&oe)return 0}else for(ft=new V(y.j);ft.aT&&(Ot=0,on+=v+qe,v=0),jyt(Ee,f,Ot,on),t=b.Math.max(t,Ot+ye.a),v=b.Math.max(v,ye.b),Ot+=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,[g2t,b2t])[p]):zn(e,Z(X(Je,1),Pe,2,6,["BC","AD"])[p]);break;case 121:pbn(e,r,o);break;case 77:bAn(e,r,o);break;case 107:m=a.q.getHours(),m==0?bh(e,24,r):bh(e,m,r);break;case 83:O2n(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,[gX,bX,mX,wX,yX,vX,EX])[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:R=a.q.getHours(),bh(e,R,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,[gX,bX,mX,wX,yX,vX,EX])[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,[iX,oX,sX,aX,lT,cX,uX,lX,dX,fX,hX,pX])[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:G=o.q.getMonth()/3|0,r<4?zn(e,Z(X(Je,1),Pe,2,6,["Q1","Q2","Q3","Q4"])[G]):zn(e,Z(X(Je,1),Pe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[G]);break;case 100:J=o.q.getDate(),bh(e,J,r);break;case 109:y=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,u.c[0]):zn(e,u.c[1]);break;case 118:zn(e,u.b);break;case 90:r<3?zn(e,Ovn(u)):r==3?zn(e,Pvn(u)):zn(e,Bvn(u.a));break;default:return!1}return!0}function Q0e(e,t,r,o){var a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot,on,qn;if(Ayt(t),m=l(ie((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83),v=l(ie((!t.c&&(t.c=new Tt(pn,t,5,8)),t.c),0),83),p=Jo(m),y=Jo(v),f=(!t.a&&(t.a=new ke(jr,t,6,6)),t.a).i==0?null:l(ie((!t.a&&(t.a=new ke(jr,t,6,6)),t.a),0),171),qe=l(Ut(e.a,p),9),Ot=l(Ut(e.a,y),9),dt=null,on=null,se(m,196)&&(ye=l(Ut(e.a,m),248),se(ye,12)?dt=l(ye,12):se(ye,9)&&(qe=l(ye,9),dt=l(ze(qe.j,0),12))),se(v,196)&&(Ct=l(Ut(e.a,v),248),se(Ct,12)?on=l(Ct,12):se(Ct,9)&&(Ot=l(Ct,9),on=l(ze(Ot.j,0),12))),!qe||!Ot)throw Y(new uS("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(),wr),t),Te(U,(Ue(),as),null),R=l(F(o,xa),24),qe==Ot&&R.Ec(($o(),II)),dt||(Ee=(Fo(),Ba),ft=null,f&&nE(l(F(qe,Zr),103))&&(ft=new Me(f.j,f.k),Hut(ft,ry(t)),glt(ft,r),ly(y,p)&&(Ee=Cc,mr(ft,qe.n))),dt=Ivt(qe,ft,Ee,o)),on||(Ee=(Fo(),Cc),qn=null,f&&nE(l(F(Ot,Zr),103))&&(qn=new Me(f.b,f.c),Hut(qn,ry(t)),glt(qn,r)),on=Ivt(Ot,qn,Ee,ji(Ot))),mo(U,dt),Yi(U,on),(dt.e.c.length>1||dt.g.c.length>1||on.e.c.length>1||on.g.c.length>1)&&R.Ec(($o(),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(G=XK(T),Fe(U.b,G),l(F(G,Yf),281).g){case 1:case 2:R.Ec(($o(),Zx));break;case 0:R.Ec(($o(),Xx)),Te(G,Yf,(Kd(),yk))}if(u=l(F(o,BI),302),J=l(F(o,vB),329),a=u==(lC(),aL)||J==(hC(),Bte),f&&(!f.a&&(f.a=new Ei(Iu,f,5)),f.a).i!=0&&a){for(re=Ryn(f),M=new Lc,de=An(re,0);de.b!=de.d.c;)oe=l(Sn(de),8),Gn(M,new To(oe));Te(U,STe,M)}return U}function U3n(e,t,r,o){var a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot,on,qn,Gr;for(ft=0,Ct=0,qe=new hn,Ee=l(Xc(Zw(Oa(new vt(null,new St(e.b,16)),new dze),new tze)),15).a+1,dt=we(Rn,Qn,30,Ee,15,1),G=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?Ao(y.b.e):l(zl(y.a),8),oe=mr(Ao(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=mr(Ao(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.b>oe.b&&y.c.e.b>oe.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?Ao(y.b.e):l(zl(y.a),8),oe=mr(Ao(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=mr(Ao(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.a>oe.a&&y.c.e.a>oe.a||M<=0&&qn.a=ce(le(F(e,(Nr(),W_e))))&&++Ct):(R.f&&R.d.e.a<=ce(le(F(e,(Nr(),ine))))&&++ft,R.g&&R.c.e.a+R.c.f.a>=ce(le(F(e,(Nr(),V_e))))&&++Ct)}else de==0?gme(y):de<0&&(++dt[on],++G[Gr],Ot=M3n(y,t,e,new Co(Oe(ft),Oe(Ct)),r,o,new Co(Oe(G[Gr]),Oe(dt[on]))),ft=l(Ot.a,15).a,Ct=l(Ot.b,15).a)}function H3n(e){e.gb||(e.gb=!0,e.b=Ps(e,0),Jr(e.b,18),Lr(e.b,19),e.a=Ps(e,1),Jr(e.a,1),Lr(e.a,2),Lr(e.a,3),Lr(e.a,4),Lr(e.a,5),e.o=Ps(e,2),Jr(e.o,8),Jr(e.o,9),Lr(e.o,10),Lr(e.o,11),Lr(e.o,12),Lr(e.o,13),Lr(e.o,14),Lr(e.o,15),Lr(e.o,16),Lr(e.o,17),Lr(e.o,18),Lr(e.o,19),Lr(e.o,20),Lr(e.o,21),Lr(e.o,22),Lr(e.o,23),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),os(e.o),e.p=Ps(e,3),Jr(e.p,2),Jr(e.p,3),Jr(e.p,4),Jr(e.p,5),Lr(e.p,6),Lr(e.p,7),os(e.p),os(e.p),e.q=Ps(e,4),Jr(e.q,8),e.v=Ps(e,5),Lr(e.v,9),os(e.v),os(e.v),os(e.v),e.w=Ps(e,6),Jr(e.w,2),Jr(e.w,3),Jr(e.w,4),Lr(e.w,5),e.B=Ps(e,7),Lr(e.B,1),os(e.B),os(e.B),os(e.B),e.Q=Ps(e,8),Lr(e.Q,0),os(e.Q),e.R=Ps(e,9),Jr(e.R,1),e.S=Ps(e,10),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),os(e.S),e.T=Ps(e,11),Lr(e.T,10),Lr(e.T,11),Lr(e.T,12),Lr(e.T,13),Lr(e.T,14),os(e.T),os(e.T),e.U=Ps(e,12),Jr(e.U,2),Jr(e.U,3),Lr(e.U,4),Lr(e.U,5),Lr(e.U,6),Lr(e.U,7),os(e.U),e.V=Ps(e,13),Lr(e.V,10),e.W=Ps(e,14),Jr(e.W,18),Jr(e.W,19),Jr(e.W,20),Lr(e.W,21),Lr(e.W,22),Lr(e.W,23),e.bb=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),Lr(e.bb,17),os(e.bb),os(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),Lr(e.eb,8),Lr(e.eb,9),e.ab=Ps(e,17),Jr(e.ab,0),Jr(e.ab,1),e.H=Ps(e,18),Lr(e.H,0),Lr(e.H,1),Lr(e.H,2),Lr(e.H,3),Lr(e.H,4),Lr(e.H,5),os(e.H),e.db=Ps(e,19),Lr(e.db,2),e.c=ir(e,20),e.d=ir(e,21),e.e=ir(e,22),e.f=ir(e,23),e.i=ir(e,24),e.g=ir(e,25),e.j=ir(e,26),e.k=ir(e,27),e.n=ir(e,28),e.r=ir(e,29),e.s=ir(e,30),e.t=ir(e,31),e.u=ir(e,32),e.fb=ir(e,33),e.A=ir(e,34),e.C=ir(e,35),e.D=ir(e,36),e.F=ir(e,37),e.G=ir(e,38),e.I=ir(e,39),e.J=ir(e,40),e.L=ir(e,41),e.M=ir(e,42),e.N=ir(e,43),e.O=ir(e,44),e.P=ir(e,45),e.X=ir(e,46),e.Y=ir(e,47),e.Z=ir(e,48),e.$=ir(e,49),e._=ir(e,50),e.cb=ir(e,51),e.K=ir(e,52))}function ZEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe;if(_vt(e,t),(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i!=0){for(p=new je,R=0;R<(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i;R++)a=l(ie(a_(l(ie((!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e),R),74)),0),19),ZEt(e,a),Rt(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=G;)(at(Ee,f.c.length),l(f.c[Ee],19)).nh()>G&&(J=Ee,G=(at(Ee,f.c.length),l(f.c[Ee],19)).nh()),Ee+=1;if(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(),ere))))){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(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,R=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-R)/(b.Math.abs(p-N)/40)>50&&(R>m?So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f-o/2)):So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f+o/2)))),So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a,v.e.b+v.f.b*f))):t==fs?(y=ce(le(F(v,(Nr(),Id)))),v.e.a-o>y?So(l(u.Xb(a),65).a,new Me(y-r,v.e.b+v.f.b*f)):l(u.Xb(a),65).a.b>0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,R=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-R)/(b.Math.abs(p-N)/40)>50&&(R>m?So(l(u.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f-o/2)):So(l(u.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f+o/2)))),So(l(u.Xb(a),65).a,new Me(v.e.a,v.e.b+v.f.b*f))):t==il?(y=ce(le(F(v,(Nr(),sd)))),v.e.b+v.f.b+o0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,R=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-R)/40)>50&&(N>p?So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b+o/5.3+v.f.b)):So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b+o/5.3+v.f.b)))),So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b+v.f.b))):(y=ce(le(F(v,(Nr(),Id)))),ppt(l(u.Xb(a),65),e)?So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,l(zl(l(u.Xb(a),65).a),8).b)):v.e.b-o>y?So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,y-r)):l(u.Xb(a),65).a.b>0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,R=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-R)/40)>50&&(N>p?So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b-o/5.3)):So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b-o/5.3)))),So(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b)))}function e2t(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye;if(f=t,N=r,ma(e.a,f)){if(bl(l(Ut(e.a,f),47),N))return 1}else Jn(e.a,f,new pi);if(ma(e.a,N)){if(bl(l(Ut(e.a,N),47),f))return-1}else Jn(e.a,N,new pi);if(ma(e.e,f)){if(bl(l(Ut(e.e,f),47),N))return-1}else Jn(e.e,f,new pi);if(ma(e.e,N)){if(bl(l(Ut(e.a,N),47),f))return 1}else Jn(e.e,N,new pi);if(f.j!=N.j)return Ee=ctn(f.j,N.j),Ee>0?Zu(e,f,N,1):Zu(e,N,f,1),Ee;if(ye=1,f.e.c.length!=0&&N.e.c.length!=0){if((f.j==(He(),Wt)&&N.j==Wt||f.j==Vt&&N.j==Vt||f.j==dn&&N.j==dn)&&(ye=-ye),v=l(ze(f.e,0),17).c,G=l(ze(N.e,0),17).c,m=v.i,M=G.i,m==M)for(oe=new V(m.j);oe.a0?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye);if(o=ogt(l(Ac(iW(e.d),jc(new es,new ls,new Ci,Z(X(rc,1),Ce,132,0,[(Yu(),nc)]))),22),m,M),o!=0)return o>0?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye);if(e.c&&(Ee=M1t(e,f,N),Ee!=0))return Ee>0?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye)}return f.g.c.length!=0&&N.g.c.length!=0?((f.j==(He(),Wt)&&N.j==Wt||f.j==dn&&N.j==dn)&&(ye=-ye),T=l(F(f,(Ie(),ste)),9),J=l(F(N,ste),9),e.f==(bp(),zte)&&T&&J&&br(T,Cr)&&br(J,Cr)?(p=D0(T,J,e.b,l(F(e.b,$1),15).a),R=D0(J,T,e.b,l(F(e.b,$1),15).a),p>R?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye)):e.c&&(Ee=M1t(e,f,N),Ee!=0)?Ee>0?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye):(y=0,U=0,br(l(ze(f.g,0),17),Cr)&&(y=D0(l(ze(f.g,0),248),l(ze(N.g,0),248),e.b,f.g.c.length+f.e.c.length)),br(l(ze(N.g,0),17),Cr)&&(U=D0(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?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye))):f.e.c.length!=0&&N.g.c.length!=0?(Zu(e,f,N,ye),1):f.g.c.length!=0&&N.e.c.length!=0?(Zu(e,N,f,ye),-1):br(f,(Ie(),Cr))&&br(N,Cr)?(u=f.i.j.c.length,p=D0(f,N,e.b,u),R=D0(N,f,e.b,u),(f.j==(He(),Wt)&&N.j==Wt||f.j==dn&&N.j==dn)&&(ye=-ye),p>R?(Zu(e,f,N,ye),ye):(Zu(e,N,f,ye),-ye)):(Zu(e,N,f,ye),-ye)}function Ie(){Ie=K;var e,t;wr=new lr(Nwe),wTe=new lr("coordinateOrigin"),cte=new lr("processors"),mTe=new Pr("compoundNode",(Lt(),!1)),hL=new Pr("insideConnections",!1),STe=new lr("originalBendpoints"),TTe=new lr("originalDummyNodePosition"),ATe=new lr("originalLabelEdge"),OI=new lr("representedLabels"),RI=new lr("endLabels"),IT=new lr("endLabel.origin"),OT=new Pr("labelSide",(vu(),VL)),e2=new Pr("maxEdgeThickness",0),Ag=new Pr("reversed",!1),DT=new lr(Q2t),Cd=new Pr("longEdgeSource",null),Nl=new Pr("longEdgeTarget",null),Wy=new Pr("longEdgeHasLabelDummies",!1),pL=new Pr("longEdgeBeforeLabelDummy",!1),iB=new Pr("edgeConstraint",(Vb(),Gee)),tw=new lr("inLayerLayoutUnit"),hm=new Pr("inLayerConstraint",(lp(),dL)),RT=new Pr("inLayerSuccessorConstraint",new je),ETe=new Pr("inLayerSuccessorConstraintBetweenNonDummies",!1),Nc=new lr("portDummy"),rB=new Pr("crossingHint",Oe(0)),xa=new Pr("graphProperties",(t=l(md(Xee),10),new Hu(t,l(Gl(t,t.length),10),0))),Hs=new Pr("externalPortSide",(He(),Is)),vTe=new Pr("externalPortSize",new ro),rte=new lr("externalPortReplacedDummies"),oB=new lr("externalPortReplacedDummy"),_p=new Pr("externalPortConnections",(e=l(md(Oo),10),new Hu(e,l(Gl(e,e.length),10),0))),nw=new Pr(K2t,0),bTe=new lr("barycenterAssociates"),MT=new lr("TopSideComments"),NT=new lr("BottomSideComments"),nB=new lr("CommentConnectionPort"),ote=new Pr("inputCollect",!1),ate=new Pr("outputCollect",!1),CT=new Pr("cyclic",!1),yTe=new lr("crossHierarchyMap"),lte=new lr("targetOffset"),new Pr("splineLabelSize",new ro),n2=new lr("spacings"),sB=new Pr("partitionConstraint",!1),ew=new lr("breakingPoint.info"),kTe=new lr("splines.survivingEdge"),pm=new lr("splines.route.start"),r2=new lr("splines.edgeChain"),xTe=new lr("originalPortConstraints"),rw=new lr("selfLoopHolder"),ek=new lr("splines.nsPortY"),Cr=new lr("modelOrder"),$1=new lr("modelOrder.maximum"),fL=new lr("modelOrderGroups.cb.number"),ste=new lr("longEdgeTargetNode"),F1=new Pr(_St,!1),t2=new Pr(_St,!1),ite=new lr("layerConstraints.hiddenNodes"),_Te=new lr("layerConstraints.opposidePort"),ute=new lr("targetNode.modelOrder"),LT=new Pr("tarjan.lowlink",Oe(ar)),DI=new Pr("tarjan.id",Oe(-1)),aB=new Pr("tarjan.onstack",!1),e3t=new Pr("partOfCycle",!1),i2=new lr("medianHeuristic.weight")}function _n(){_n=K;var e,t;zT=new lr(vTt),fv=new lr(ETt),Zke=(mh(),ure),U6t=new ht(Fye,Zke),gk=new ht(mx,null),H6t=new lr(oEe),eNe=(Zb(),xr(fre,Z(X(hre,1),Ce,300,0,[dre]))),$L=new ht(I7,eNe),BL=new ht(UD,(Lt(),!1)),tNe=(Si(),hf),Tm=new ht(xZ,tNe),iNe=(gp(),_re),rNe=new ht(BD,iNe),V6t=new ht(rEe,!1),sNe=(pp(),lU),p2=new ht(C7,sNe),mNe=new xb(12),df=new ht(B0,mNe),y4=new ht(wx,!1),bre=new ht(O7,!1),v4=new ht(yx,!1),SNe=(qi(),K1),bk=new ht(d7,SNe),GT=new lr(R7),HL=new lr(CD),Tre=new lr(l7),Are=new lr(WC),uNe=new Lc,g2=new ht(Yye,uNe),G6t=new ht(Qye,!1),W6t=new ht(eve,!1),new ht(STt,0),lNe=new FN,Cp=new ht(CZ,lNe),oU=new ht(Pye,!1),Q6t=new ht(TTt,1),uv=new lr(ATt),cv=new lr(_Tt),wk=new ht(RD,!1),new ht(xTt,!0),Oe(0),new ht(kTt,Oe(100)),new ht(NTt,!1),Oe(0),new ht(CTt,Oe(4e3)),Oe(0),new ht(ITt,Oe(400)),new ht(RTt,!1),new ht(OTt,!1),new ht(DTt,!0),new ht(LTt,!1),Qke=(Yj(),Rre),z6t=new ht(iEe,Qke),cNe=(V3(),YL),Y6t=new ht(MTt,cNe),aNe=(O_(),zL),K6t=new ht(PTt,aNe),eDt=new ht(Aye,10),tDt=new ht(_ye,10),nDt=new ht(xye,20),rDt=new ht(kye,10),xNe=new ht(jX,2),kNe=new ht(_Z,10),NNe=new ht(Nye,0),sU=new ht(Rye,5),CNe=new ht(Cye,1),INe=new ht(Iye,1),Od=new ht($0,20),iDt=new ht(Oye,10),DNe=new ht(Dye,10),qT=new lr(Lye),ONe=new Jnt,RNe=new ht(nve,ONe),X6t=new lr(NZ),wNe=!1,J6t=new ht(kZ,wNe),fNe=new xb(5),dNe=new ht(Uye,fNe),hNe=(_y(),t=l(md(Go),10),new Hu(t,l(Gl(t,t.length),10),0)),b2=new ht(Ex,hNe),vNe=(EE(),W1),yNe=new ht(Gye,vNe),wre=new lr(qye),yre=new lr(Vye),vre=new lr(Wye),mre=new lr(Kye),pNe=(e=l(md(N4),10),new Hu(e,l(Gl(e,e.length),10),0)),Am=new ht(PE,pNe),bNe=lt((Uc(),Tk)),q1=new ht(bT,bNe),gNe=new Me(0,0),m2=new ht(mT,gNe),lv=new ht(vx,!1),nNe=(Kd(),yk),pre=new ht(Xye,nNe),iU=new ht(ID,!1),Oe(1),new ht(jTt,null),ENe=new lr(tve),Ere=new lr(Zye),_Ne=(He(),Is),w2=new ht(jye,_Ne),zc=new lr(Mye),TNe=(xc(),lt(Y1)),dv=new ht(Sx,TNe),Sre=new ht(Hye,!1),ANe=new ht(zye,!0),Oe(1),uDt=new ht(eQ,Oe(3)),Oe(1),dDt=new ht(sEe,Oe(4)),aU=new ht(OD,1),cU=new ht(tQ,null),hv=new ht(DD,150),mk=new ht(LD,1.414),VT=new ht(U0,null),oDt=new ht(aEe,1),UL=new ht($ye,!1),gre=new ht(Bye,!1),q6t=new ht(Jye,1),oNe=(AF(),kre),new ht(FTt,oNe),Z6t=!0,lDt=(VP(),Ire),aDt=(VS(),bv),cDt=bv,sDt=bv}function Xi(){Xi=K,hSe=new wi("DIRECTION_PREPROCESSOR",0),lSe=new wi("COMMENT_PREPROCESSOR",1),WE=new wi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Eee=new wi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),OSe=new wi("PARTITION_PREPROCESSOR",4),I$=new wi("LABEL_DUMMY_INSERTER",5),B$=new wi("SELF_LOOP_PREPROCESSOR",6),zy=new wi("LAYER_CONSTRAINT_PREPROCESSOR",7),ISe=new wi("PARTITION_MIDPROCESSOR",8),ESe=new wi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),NSe=new wi("NODE_PROMOTION",10),Hy=new wi("LAYER_CONSTRAINT_POSTPROCESSOR",11),RSe=new wi("PARTITION_POSTPROCESSOR",12),wSe=new wi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),DSe=new wi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),iSe=new wi("BREAKING_POINT_INSERTER",15),L$=new wi("LONG_EDGE_SPLITTER",16),See=new wi("PORT_SIDE_PROCESSOR",17),N$=new wi("INVERTED_PORT_PROCESSOR",18),j$=new wi("PORT_LIST_SORTER",19),MSe=new wi("SORT_BY_INPUT_ORDER_OF_MODEL",20),P$=new wi("NORTH_SOUTH_PORT_PREPROCESSOR",21),oSe=new wi("BREAKING_POINT_PROCESSOR",22),CSe=new wi(mSt,23),PSe=new wi(wSt,24),F$=new wi("SELF_LOOP_PORT_RESTORER",25),rSe=new wi("ALTERNATING_LAYER_UNZIPPER",26),LSe=new wi("SINGLE_EDGE_GRAPH_WRAPPER",27),C$=new wi("IN_LAYER_CONSTRAINT_PROCESSOR",28),gSe=new wi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),xSe=new wi("LABEL_AND_NODE_SIZE_PROCESSOR",30),_Se=new wi("INNERMOST_NODE_MARGIN_CALCULATOR",31),U$=new wi("SELF_LOOP_ROUTER",32),cSe=new wi("COMMENT_NODE_MARGIN_CALCULATOR",33),k$=new wi("END_LABEL_PREPROCESSOR",34),O$=new wi("LABEL_DUMMY_SWITCHER",35),aSe=new wi("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),Gx=new wi("LABEL_SIDE_SELECTOR",37),TSe=new wi("HYPEREDGE_DUMMY_MERGER",38),ySe=new wi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),kSe=new wi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),_I=new wi("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),dSe=new wi("CONSTRAINTS_POSTPROCESSOR",42),uSe=new wi("COMMENT_POSTPROCESSOR",43),ASe=new wi("HYPERNODE_PROCESSOR",44),vSe=new wi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),D$=new wi("LONG_EDGE_JOINER",46),$$=new wi("SELF_LOOP_POSTPROCESSOR",47),sSe=new wi("BREAKING_POINT_REMOVER",48),M$=new wi("NORTH_SOUTH_PORT_POSTPROCESSOR",49),SSe=new wi("HORIZONTAL_COMPACTOR",50),R$=new wi("LABEL_DUMMY_REMOVER",51),bSe=new wi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),pSe=new wi("END_LABEL_SORTER",53),xT=new wi("REVERSED_EDGE_RESTORER",54),x$=new wi("END_LABEL_POSTPROCESSOR",55),mSe=new wi("HIERARCHICAL_NODE_RESIZER",56),fSe=new wi("DIRECTION_POSTPROCESSOR",57)}function G3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct,Ot,on,qn,Gr,Oc,us,Ru,A2,jg,hd,Dp,cl,QT,U4,Lp,Md,Fg,Nm,Cm,eA,Im,Rm,Mp,Av,cCe,gw,H4,Kre,tA,z4,_v,G4,Yre,e5t;for(cCe=0,qn=t,us=0,jg=qn.length;us0&&(e.a[Md.p]=cCe++)}for(z4=0,Gr=r,Ru=0,hd=Gr.length;Ru0;){for(Md=(cn(eA.b>0),l(eA.a.Xb(eA.c=--eA.b),12)),Cm=0,p=new V(Md.e);p.a0&&(Md.j==(He(),Vt)?(e.a[Md.p]=z4,++z4):(e.a[Md.p]=z4+Dp+QT,++QT))}z4+=QT}for(Nm=new hn,M=new ch,on=t,Oc=0,A2=on.length;Ocy.b&&(y.b=Im)):Md.i.c==Av&&(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+=Yre[qe+1]),qe=(qe-1)/2|0,++Yre[qe];for(ft=we(A4t,It,371,U.length*2,0,1),de=0;de0&&JO(Oc.f),ve(J,cU)!=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,cU),525),Cm=p.Sg(J),i0(J,b.Math.max(J.g,Cm.a+Dp.b+Dp.c),b.Math.max(J.f,Cm.b+Dp.d+Dp.a))):(!J.a&&(J.a=new ke(En,J,10,11)),J.a).i!=0&&(Cm=new Me(ce(le(ve(J,hv))),ce(le(ve(J,hv)))/ce(le(ve(J,mk)))),i0(J,b.Math.max(J.g,Cm.a+Dp.b+Dp.c),b.Math.max(J.f,Cm.b+Dp.d+Dp.a)));if(hd=l(ve(t,df),100),R=t.g-(hd.b+hd.c),N=t.f-(hd.d+hd.a),Rm.ah("Available Child Area: ("+R+"|"+N+")"),Vn(t,gk,R/N),g1t(t,a,o.dh(A2)),l(ve(t,VT),283)==bU&&(WJ(t),i0(t,hd.b+ce(le(ve(t,uv)))+hd.c,hd.d+ce(le(ve(t,cv)))+hd.a)),Rm.ah("Executed layout algorithm: "+In(ve(t,zT))+" on node "+t.k),l(ve(t,VT),283)==bv){if(R<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(Gu(t,uv)||Gu(t,cv)||WJ(t),U=ce(le(ve(t,uv))),M=ce(le(ve(t,cv))),Rm.ah("Desired Child Area: ("+U+"|"+M+")"),QT=R/U,U4=N/M,cl=b.Math.min(QT,b.Math.min(U4,ce(le(ve(t,oDt))))),Vn(t,aU,cl),Rm.ah(t.k+" -- Local Scale Factor (X|Y): ("+QT+"|"+U4+")"),de=l(ve(t,$L),24),u=0,f=0,cl'?":wt(mAt,e)?"'(?<' or '(? toIndex: ",mwe=", toIndex: ",wwe="Index: ",ywe=", Size: ",hx="org.eclipse.elk.alg.common",Un={50:1},I2t="org.eclipse.elk.alg.common.compaction",R2t="Scanline/EventHandler",Ah="org.eclipse.elk.alg.common.compaction.oned",O2t="CNode belongs to another CGroup.",D2t="ISpacingsHandler/1",RX="The ",OX=" instance has been finished already.",L2t="The direction ",M2t=" is not supported by the CGraph instance.",P2t="OneDimensionalCompactor",j2t="OneDimensionalCompactor/lambda$0$Type",F2t="Quadruplet",$2t="ScanlineConstraintCalculator",B2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler",U2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",H2t="ScanlineConstraintCalculator/Timestamp",z2t="ScanlineConstraintCalculator/lambda$0$Type",Uf={181:1,48:1},GC="org.eclipse.elk.alg.common.networksimplex",Ad={172:1,3:1,4:1},G2t="org.eclipse.elk.alg.common.nodespacing",rm="org.eclipse.elk.alg.common.nodespacing.cellsystem",px="CENTER",q2t={219:1,338:1},vwe={3:1,4:1,5:1,599:1},hT="LEFT",pT="RIGHT",Ewe="Vertical alignment cannot be null",Swe="BOTTOM",c7="org.eclipse.elk.alg.common.nodespacing.internal",qC="UNDEFINED",nf=.01,xD="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",V2t="LabelPlacer/lambda$0$Type",W2t="LabelPlacer/lambda$1$Type",K2t="portRatioOrPosition",gx="org.eclipse.elk.alg.common.overlaps",DX="DOWN",gT="org.eclipse.elk.alg.common.spore",Ly={3:1,4:1,5:1,200:1},Y2t={3:1,6:1,4:1,5:1,91:1,111:1},LX="org.eclipse.elk.alg.force",Twe="ComponentsProcessor",J2t="ComponentsProcessor/1",Awe="ElkGraphImporter/lambda$0$Type",im={207:1},ME="org.eclipse.elk.core",kD="org.eclipse.elk.graph.properties",X2t="IPropertyHolder",ND="org.eclipse.elk.alg.force.graph",Z2t="Component Layout",_we="org.eclipse.elk.alg.force.model",Ns="org.eclipse.elk.core.data",u7="org.eclipse.elk.force.model",xwe="org.eclipse.elk.force.iterations",kwe="org.eclipse.elk.force.repulsivePower",MX="org.eclipse.elk.force.temperature",Hf=.001,PX="org.eclipse.elk.force.repulsion",td={139:1},VC="org.eclipse.elk.alg.force.options",bx=1.600000023841858,Ga="org.eclipse.elk.force",CD="org.eclipse.elk.priority",$0="org.eclipse.elk.spacing.nodeNode",jX="org.eclipse.elk.spacing.edgeLabel",mx="org.eclipse.elk.aspectRatio",l7="org.eclipse.elk.randomSeed",WC="org.eclipse.elk.separateConnectedComponents",B0="org.eclipse.elk.padding",wx="org.eclipse.elk.interactive",d7="org.eclipse.elk.portConstraints",ID="org.eclipse.elk.edgeLabels.inline",yx="org.eclipse.elk.omitNodeMicroLayout",vx="org.eclipse.elk.nodeSize.fixedGraphSize",bT="org.eclipse.elk.nodeSize.options",PE="org.eclipse.elk.nodeSize.constraints",Ex="org.eclipse.elk.nodeLabels.placement",Sx="org.eclipse.elk.portLabels.placement",RD="org.eclipse.elk.topdownLayout",OD="org.eclipse.elk.topdown.scaleFactor",DD="org.eclipse.elk.topdown.hierarchicalNodeWidth",LD="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",U0="org.eclipse.elk.topdown.nodeType",Nwe="origin",Q2t="random",eSt="boundingBox.upLeft",tSt="boundingBox.lowRight",Cwe="org.eclipse.elk.stress.fixed",Iwe="org.eclipse.elk.stress.desiredEdgeLength",Rwe="org.eclipse.elk.stress.dimension",Owe="org.eclipse.elk.stress.epsilon",Dwe="org.eclipse.elk.stress.iterationLimit",C1="org.eclipse.elk.stress",nSt="ELK Stress",mT="org.eclipse.elk.nodeSize.minimum",f7="org.eclipse.elk.alg.force.stress",rSt="Layered layout",wT="org.eclipse.elk.alg.layered",MD="org.eclipse.elk.alg.layered.compaction.components",KC="org.eclipse.elk.alg.layered.compaction.oned",h7="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",FX="MODEL_ORDER",ea={3:1,6:1,4:1,10:1,5:1,128:1},iSt={3:1,6:1,4:1,5:1,137:1,91:1,111:1},p7="org.eclipse.elk.alg.layered.compound",kr={43:1},ua="org.eclipse.elk.alg.layered.graph",$X=" -> ",oSt="Not supported by LGraph",Lwe="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},sSt={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},aSt=`([{"' \r `,cSt=`)]}"' \r `,uSt="The given string contains parts that cannot be parsed as numbers.",PD="org.eclipse.elk.core.math",lSt={3:1,4:1,125:1,216:1,419:1},dSt={3:1,4:1,100:1,216:1,419:1},Eg="org.eclipse.elk.alg.layered.graph.transform",fSt="ElkGraphImporter",hSt="ElkGraphImporter/lambda$1$Type",pSt="ElkGraphImporter/lambda$2$Type",gSt="ElkGraphImporter/lambda$4$Type",Xt="org.eclipse.elk.alg.layered.intermediate",bSt="Node margin calculation",mSt="ONE_SIDED_GREEDY_SWITCH",wSt="TWO_SIDED_GREEDY_SWITCH",BX="No implementation is available for the layout processor ",UX="IntermediateProcessorStrategy",HX="Node '",ySt="FIRST_SEPARATE",vSt="LAST_SEPARATE",ESt="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",Au="org.eclipse.elk.alg.layered.intermediate.loops.ordering",I1="org.eclipse.elk.alg.layered.intermediate.loops.routing",g7="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",$s="org.eclipse.elk.alg.layered.options",zX="INTERACTIVE",Mwe="GREEDY",SSt="DEPTH_FIRST",TSt="EDGE_LENGTH",ASt="SELF_LOOPS",_St="firstTryWithInitialOrder",Pwe="org.eclipse.elk.layered.directionCongruency",jwe="org.eclipse.elk.layered.feedbackEdges",b7="org.eclipse.elk.layered.interactiveReferencePoint",Fwe="org.eclipse.elk.layered.mergeEdges",$we="org.eclipse.elk.layered.mergeHierarchyEdges",Bwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Uwe="org.eclipse.elk.layered.portSortingStrategy",Hwe="org.eclipse.elk.layered.thoroughness",zwe="org.eclipse.elk.layered.unnecessaryBendpoints",Gwe="org.eclipse.elk.layered.generatePositionAndLayerIds",jD="org.eclipse.elk.layered.cycleBreaking.strategy",FD="org.eclipse.elk.layered.layering.strategy",qwe="org.eclipse.elk.layered.layering.layerConstraint",Vwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",Wwe="org.eclipse.elk.layered.layering.layerId",GX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",qX="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",VX="org.eclipse.elk.layered.layering.nodePromotion.strategy",WX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",KX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",XC="org.eclipse.elk.layered.crossingMinimization.strategy",Kwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",YX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",JX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Ywe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Jwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Xwe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Zwe="org.eclipse.elk.layered.crossingMinimization.positionId",Qwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",XX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",m7="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",jE="org.eclipse.elk.layered.nodePlacement.strategy",w7="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",ZX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",QX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",eZ="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",tZ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",nZ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",eye="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",tye="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",y7="org.eclipse.elk.layered.edgeRouting.splines.mode",v7="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",rZ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",nye="org.eclipse.elk.layered.spacing.baseValue",rye="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",iye="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",oye="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",sye="org.eclipse.elk.layered.priority.direction",aye="org.eclipse.elk.layered.priority.shortness",cye="org.eclipse.elk.layered.priority.straightness",iZ="org.eclipse.elk.layered.compaction.connectedComponents",uye="org.eclipse.elk.layered.compaction.postCompaction.strategy",lye="org.eclipse.elk.layered.compaction.postCompaction.constraints",E7="org.eclipse.elk.layered.highDegreeNodes.treatment",oZ="org.eclipse.elk.layered.highDegreeNodes.threshold",sZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Sp="org.eclipse.elk.layered.wrapping.strategy",S7="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",T7="org.eclipse.elk.layered.wrapping.correctionFactor",ZC="org.eclipse.elk.layered.wrapping.cutting.strategy",aZ="org.eclipse.elk.layered.wrapping.cutting.cuts",cZ="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",A7="org.eclipse.elk.layered.wrapping.validify.strategy",_7="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",x7="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",k7="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",uZ="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",lZ="org.eclipse.elk.layered.layerUnzipping.strategy",dZ="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",fZ="org.eclipse.elk.layered.layerUnzipping.layerSplit",hZ="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",dye="org.eclipse.elk.layered.edgeLabels.sideSelection",fye="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",N7="org.eclipse.elk.layered.considerModelOrder.strategy",hye="org.eclipse.elk.layered.considerModelOrder.portModelOrder",$D="org.eclipse.elk.layered.considerModelOrder.noModelOrder",pZ="org.eclipse.elk.layered.considerModelOrder.components",pye="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",gZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",bZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",mZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",wZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",yZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",gye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",vZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",EZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",bye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",mye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",SZ="layering",xSt="layering.minWidth",kSt="layering.nodePromotion",Ax="crossingMinimization",C7="org.eclipse.elk.hierarchyHandling",NSt="crossingMinimization.greedySwitch",CSt="nodePlacement",ISt="nodePlacement.bk",RSt="edgeRouting",BD="org.eclipse.elk.edgeRouting",of="spacing",wye="priority",yye="compaction",OSt="compaction.postCompaction",DSt="Specifies whether and how post-process compaction is applied.",vye="highDegreeNodes",Eye="wrapping",LSt="wrapping.cutting",MSt="wrapping.validify",Sye="wrapping.multiEdge",TZ="layerUnzipping",AZ="edgeLabels",QC="considerModelOrder",_x="considerModelOrder.groupModelOrder",Tye="Group ID of the Node Type",Aye="org.eclipse.elk.spacing.commentComment",_ye="org.eclipse.elk.spacing.commentNode",xye="org.eclipse.elk.spacing.componentComponent",kye="org.eclipse.elk.spacing.edgeEdge",_Z="org.eclipse.elk.spacing.edgeNode",Nye="org.eclipse.elk.spacing.labelLabel",Cye="org.eclipse.elk.spacing.labelPortHorizontal",Iye="org.eclipse.elk.spacing.labelPortVertical",Rye="org.eclipse.elk.spacing.labelNode",Oye="org.eclipse.elk.spacing.nodeSelfLoop",Dye="org.eclipse.elk.spacing.portPort",Lye="org.eclipse.elk.spacing.individual",Mye="org.eclipse.elk.port.borderOffset",Pye="org.eclipse.elk.noLayout",jye="org.eclipse.elk.port.side",UD="org.eclipse.elk.debugMode",Fye="org.eclipse.elk.alignment",$ye="org.eclipse.elk.insideSelfLoops.activate",Bye="org.eclipse.elk.insideSelfLoops.yo",xZ="org.eclipse.elk.direction",Uye="org.eclipse.elk.nodeLabels.padding",Hye="org.eclipse.elk.portLabels.nextToPortIfPossible",zye="org.eclipse.elk.portLabels.treatAsGroup",Gye="org.eclipse.elk.portAlignment.default",qye="org.eclipse.elk.portAlignment.north",Vye="org.eclipse.elk.portAlignment.south",Wye="org.eclipse.elk.portAlignment.west",Kye="org.eclipse.elk.portAlignment.east",I7="org.eclipse.elk.contentAlignment",Yye="org.eclipse.elk.junctionPoints",Jye="org.eclipse.elk.edge.thickness",Xye="org.eclipse.elk.edgeLabels.placement",Zye="org.eclipse.elk.port.index",Qye="org.eclipse.elk.commentBox",eve="org.eclipse.elk.hypernode",tve="org.eclipse.elk.port.anchor",kZ="org.eclipse.elk.partitioning.activate",NZ="org.eclipse.elk.partitioning.partition",R7="org.eclipse.elk.position",CZ="org.eclipse.elk.margins",nve="org.eclipse.elk.spacing.portsSurrounding",O7="org.eclipse.elk.interactiveLayout",Vs="org.eclipse.elk.core.util",rve={3:1,4:1,5:1,597:1},PSt="NETWORK_SIMPLEX",ive="SIMPLE",IZ="No implementation is available for the node placer ",Fi={86:1,43:1},H0="org.eclipse.elk.alg.layered.p1cycles",jSt="Depth-first cycle removal",FSt="Model order cycle breaking",Tp="org.eclipse.elk.alg.layered.p2layers",ove={411:1,223:1},$St={838:1,3:1,4:1},qa="org.eclipse.elk.alg.layered.p3order",FE=17976931348623157e292,RZ=5e-324,Ho="org.eclipse.elk.alg.layered.p4nodes",BSt={3:1,4:1,5:1,846:1},Gf=1e-5,R1="org.eclipse.elk.alg.layered.p4nodes.bk",OZ="org.eclipse.elk.alg.layered.p5edges",xd="org.eclipse.elk.alg.layered.p5edges.orthogonal",DZ="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",LZ=1e-6,My="org.eclipse.elk.alg.layered.p5edges.splines",MZ=.09999999999999998,D7=1e-8,USt=4.71238898038469,HSt=1.5707963267948966,sve=3.141592653589793,Ap="org.eclipse.elk.alg.mrtree",zSt="Tree layout",GSt="P4_EDGE_ROUTING",PZ=.10000000149011612,L7="SUPER_ROOT",eI="org.eclipse.elk.alg.mrtree.graph",ave=-17976931348623157e292,Aa="org.eclipse.elk.alg.mrtree.intermediate",qSt="Processor compute fanout",M7={3:1,6:1,4:1,5:1,526:1,91:1,111:1},VSt="Set neighbors in level",HD="org.eclipse.elk.alg.mrtree.options",WSt="DESCENDANTS",cve="org.eclipse.elk.mrtree.compaction",uve="org.eclipse.elk.mrtree.edgeEndTextureLength",lve="org.eclipse.elk.mrtree.treeLevel",dve="org.eclipse.elk.mrtree.positionConstraint",fve="org.eclipse.elk.mrtree.weighting",hve="org.eclipse.elk.mrtree.edgeRoutingMode",pve="org.eclipse.elk.mrtree.searchOrder",KSt="Position Constraint",Va="org.eclipse.elk.mrtree",gve="org.eclipse.elk.tree",YSt="Processor arrange level",xx="org.eclipse.elk.alg.mrtree.p2order",cu="org.eclipse.elk.alg.mrtree.p4route",bve="org.eclipse.elk.alg.radial",JSt="The given graph is not a tree!",sm=6.283185307179586,mve="Before",P7="After",wve="org.eclipse.elk.alg.radial.intermediate",XSt="COMPACTION",jZ="org.eclipse.elk.alg.radial.intermediate.compaction",ZSt={3:1,4:1,5:1,91:1},yve="org.eclipse.elk.alg.radial.intermediate.optimization",FZ="No implementation is available for the layout option ",tI="org.eclipse.elk.alg.radial.options",QSt="CompactionStrategy",vve="org.eclipse.elk.radial.centerOnRoot",Eve="org.eclipse.elk.radial.orderId",Sve="org.eclipse.elk.radial.radius",j7="org.eclipse.elk.radial.rotate",$Z="org.eclipse.elk.radial.compactor",BZ="org.eclipse.elk.radial.compactionStepSize",Tve="org.eclipse.elk.radial.sorter",Ave="org.eclipse.elk.radial.wedgeCriteria",_ve="org.eclipse.elk.radial.optimizationCriteria",UZ="org.eclipse.elk.radial.rotation.targetAngle",HZ="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",xve="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",eTt="Compaction",kve="rotation",Qu="org.eclipse.elk.radial",tTt="org.eclipse.elk.alg.radial.p1position.wedge",Nve="org.eclipse.elk.alg.radial.sorting",nTt=5.497787143782138,rTt=3.9269908169872414,iTt=2.356194490192345,oTt="org.eclipse.elk.alg.rectpacking",nI="org.eclipse.elk.alg.rectpacking.intermediate",zZ="org.eclipse.elk.alg.rectpacking.options",Cve="org.eclipse.elk.rectpacking.trybox",Ive="org.eclipse.elk.rectpacking.currentPosition",Rve="org.eclipse.elk.rectpacking.desiredPosition",Ove="org.eclipse.elk.rectpacking.inNewRow",Dve="org.eclipse.elk.rectpacking.orderBySize",Lve="org.eclipse.elk.rectpacking.widthApproximation.strategy",Mve="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Pve="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",jve="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Fve="org.eclipse.elk.rectpacking.packing.strategy",$ve="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",Bve="org.eclipse.elk.rectpacking.packing.compaction.iterations",Uve="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",GZ="widthApproximation",sTt="Compaction Strategy",aTt="packing.compaction",kc="org.eclipse.elk.rectpacking",kx="org.eclipse.elk.alg.rectpacking.p1widthapproximation",F7="org.eclipse.elk.alg.rectpacking.p2packing",cTt="No Compaction",Hve="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zD="org.eclipse.elk.alg.rectpacking.util",$7="No implementation available for ",Py="org.eclipse.elk.alg.spore",jy="org.eclipse.elk.alg.spore.options",z0="org.eclipse.elk.sporeCompaction",qZ="org.eclipse.elk.underlyingLayoutAlgorithm",zve="org.eclipse.elk.processingOrder.treeConstruction",Gve="org.eclipse.elk.processingOrder.spanningTreeCostFunction",VZ="org.eclipse.elk.processingOrder.preferredRoot",WZ="org.eclipse.elk.processingOrder.rootSelection",KZ="org.eclipse.elk.structure.structureExtractionStrategy",qve="org.eclipse.elk.compaction.compactionStrategy",Vve="org.eclipse.elk.compaction.orthogonal",Wve="org.eclipse.elk.overlapRemoval.maxIterations",Kve="org.eclipse.elk.overlapRemoval.runScanline",YZ="processingOrder",uTt="overlapRemoval",Nx="org.eclipse.elk.sporeOverlap",lTt="org.eclipse.elk.alg.spore.p1structure",JZ="org.eclipse.elk.alg.spore.p2processingorder",XZ="org.eclipse.elk.alg.spore.p3execution",Yve="org.eclipse.elk.alg.vertiflex",Jve="org.eclipse.elk.vertiflex.verticalConstraint",Xve="org.eclipse.elk.vertiflex.layoutStrategy",Zve="org.eclipse.elk.vertiflex.layerDistance",Qve="org.eclipse.elk.vertiflex.considerNodeModelOrder",eEe="org.eclipse.elk.alg.vertiflex.options",G0="org.eclipse.elk.vertiflex",dTt="org.eclipse.elk.alg.vertiflex.p1yplacement",ZZ="org.eclipse.elk.alg.vertiflex.p2relative",fTt="org.eclipse.elk.alg.vertiflex.p3absolute",hTt="BendEdgeRouter",tEe="org.eclipse.elk.alg.vertiflex.p4edgerouting",pTt="StraightEdgeRouter",gTt="Topdown Layout",bTt="Invalid index: ",Cx="org.eclipse.elk.core.alg",$E={343:1},Fy={297:1},mTt="Make sure its type is registered with the ",nEe=" utility class.",Ix="true",QZ="false",wTt="Couldn't clone property '",q0=.05,Fa="org.eclipse.elk.core.options",yTt=1.2999999523162842,V0="org.eclipse.elk.box",rEe="org.eclipse.elk.expandNodes",iEe="org.eclipse.elk.box.packingMode",vTt="org.eclipse.elk.algorithm",ETt="org.eclipse.elk.resolvedAlgorithm",oEe="org.eclipse.elk.bendPoints",Y3n="org.eclipse.elk.labelManager",STt="org.eclipse.elk.softwrappingFuzziness",TTt="org.eclipse.elk.scaleFactor",ATt="org.eclipse.elk.childAreaWidth",_Tt="org.eclipse.elk.childAreaHeight",xTt="org.eclipse.elk.animate",kTt="org.eclipse.elk.animTimeFactor",NTt="org.eclipse.elk.layoutAncestors",CTt="org.eclipse.elk.maxAnimTime",ITt="org.eclipse.elk.minAnimTime",RTt="org.eclipse.elk.progressBar",OTt="org.eclipse.elk.validateGraph",DTt="org.eclipse.elk.validateOptions",LTt="org.eclipse.elk.zoomToFit",MTt="org.eclipse.elk.json.shapeCoords",PTt="org.eclipse.elk.json.edgeCoords",J3n="org.eclipse.elk.font.name",jTt="org.eclipse.elk.font.size",eQ="org.eclipse.elk.topdown.sizeCategories",sEe="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",tQ="org.eclipse.elk.topdown.sizeApproximator",aEe="org.eclipse.elk.topdown.scaleCap",FTt="org.eclipse.elk.edge.type",$Tt="partitioning",BTt="nodeLabels",B7="portAlignment",nQ="nodeSize",rQ="port",cEe="portLabels",Rx="topdown",UTt="insideSelfLoops",uEe="INHERIT",Ox="org.eclipse.elk.fixed",U7="org.eclipse.elk.random",H7={3:1,34:1,23:1,525:1,290:1},HTt="port must have a parent node to calculate the port side",zTt="The edge needs to have exactly one edge section. Found: ",rI="org.eclipse.elk.core.util.adapters",el="org.eclipse.emf.ecore",BE="org.eclipse.elk.graph",GTt="EMapPropertyHolder",qTt="ElkBendPoint",VTt="ElkGraphElement",WTt="ElkConnectableShape",lEe="ElkEdge",KTt="ElkEdgeSection",YTt="EModelElement",JTt="ENamedElement",dEe="ElkLabel",fEe="ElkNode",hEe="ElkPort",XTt={95:1,94:1},vT="org.eclipse.emf.common.notify.impl",O1="The feature '",iI="' is not a valid changeable feature",ZTt="Expecting null",iQ="' is not a valid feature",QTt="The feature ID",eAt=" is not a valid feature ID",Ws=32768,tAt={110:1,95:1,94:1,57:1,52:1,101:1},zt="org.eclipse.emf.ecore.impl",am="org.eclipse.elk.graph.impl",oI="Recursive containment not allowed for ",Dx="The datatype '",W0="' is not a valid classifier",oQ="The value '",UE={198:1,3:1,4:1},sQ="The class '",Lx="http://www.eclipse.org/elk/ElkGraph",pEe="property",sI="value",aQ="source",nAt="properties",rAt="identifier",cQ="height",uQ="width",lQ="parent",dQ="text",fQ="children",iAt="hierarchical",gEe="sources",hQ="targets",pQ="sections",z7="bendPoints",bEe="outgoingShape",mEe="incomingShape",wEe="outgoingSections",yEe="incomingSections",ko="org.eclipse.emf.common.util",vEe="Severe implementation error in the Json to ElkGraph importer.",qf="id",oo="org.eclipse.elk.graph.json",Mx="Unhandled parameter types: ",oAt="startPoint",sAt="An edge must have at least one source and one target (edge id: '",Px="').",aAt="Referenced edge section does not exist: ",cAt=" (edge id: '",EEe="target",uAt="sourcePoint",lAt="targetPoint",G7="group",sr="name",dAt="connectableShape cannot be null",fAt="edge cannot be null",hAt="Passed edge is not 'simple'.",q7="org.eclipse.elk.graph.util",GD="The 'no duplicates' constraint is violated",gQ="targetIndex=",cm=", size=",bQ="sourceIndex=",Vf={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},mQ={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},V7="logging",pAt="measureExecutionTime",gAt="parser.parse.1",bAt="parser.parse.2",W7="parser.next.1",wQ="parser.next.2",mAt="parser.next.3",wAt="parser.next.4",um="parser.factor.1",SEe="parser.factor.2",yAt="parser.factor.3",vAt="parser.factor.4",EAt="parser.factor.5",SAt="parser.factor.6",TAt="parser.atom.1",AAt="parser.atom.2",_At="parser.atom.3",TEe="parser.atom.4",yQ="parser.atom.5",AEe="parser.cc.1",K7="parser.cc.2",xAt="parser.cc.3",kAt="parser.cc.5",_Ee="parser.cc.6",xEe="parser.cc.7",vQ="parser.cc.8",NAt="parser.ope.1",CAt="parser.ope.2",IAt="parser.ope.3",Sg="parser.descape.1",RAt="parser.descape.2",OAt="parser.descape.3",DAt="parser.descape.4",LAt="parser.descape.5",tl="parser.process.1",MAt="parser.quantifier.1",PAt="parser.quantifier.2",jAt="parser.quantifier.3",FAt="parser.quantifier.4",kEe="parser.quantifier.5",$At="org.eclipse.emf.common.notify",NEe={420:1,683:1},BAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},qD={374:1,152:1},aI="index=",EQ={3:1,4:1,5:1,131:1},UAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},CEe={3:1,6:1,4:1,5:1,200:1},HAt={3:1,4:1,5:1,178:1,375:1},zAt=";/?:@&=+$,",GAt="invalid authority: ",qAt="EAnnotation",VAt="ETypedElement",WAt="EStructuralFeature",KAt="EAttribute",YAt="EClassifier",JAt="EEnumLiteral",XAt="EGenericType",ZAt="EOperation",QAt="EParameter",e_t="EReference",t_t="ETypeParameter",Fr="org.eclipse.emf.ecore.util",SQ={78:1},IEe={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},n_t="org.eclipse.emf.ecore.util.FeatureMap$Entry",yc=8192,cI="byte",Y7="char",uI="double",lI="float",dI="int",fI="long",hI="short",r_t="java.lang.Object",HE={3:1,4:1,5:1,258:1},REe={3:1,4:1,5:1,685:1},i_t={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},VD="mixed",Bn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Al="kind",o_t={3:1,4:1,5:1,686:1},OEe={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},J7={22:1,32:1,56:1,18:1,16:1,61:1,72:1},X7={51:1,130:1,289:1},Z7={76:1,345:1},Q7="The value of type '",e$="' must be of type '",zE=1318,_l="http://www.eclipse.org/emf/2002/Ecore",t$=-32768,K0="constraints",ho="baseType",s_t="getEStructuralFeature",a_t="getFeatureID",pI="feature",c_t="getOperationID",DEe="operation",u_t="defaultValue",l_t="eTypeParameters",d_t="isInstance",f_t="getEEnumLiteral",h_t="eContainingClass",tr={58:1},p_t={3:1,4:1,5:1,123:1},g_t="org.eclipse.emf.ecore.resource",b_t={95:1,94:1,595:1,2013:1},TQ="org.eclipse.emf.ecore.resource.impl",LEe="unspecified",WD="simple",n$="attribute",m_t="attributeWildcard",r$="element",AQ="elementWildcard",kd="collapse",_Q="itemType",i$="namespace",KD="##targetNamespace",xl="whiteSpace",MEe="wildcards",lm="http://www.eclipse.org/emf/2003/XMLType",xQ="##any",jx="uninitialized",YD="The multiplicity constraint is violated",o$="org.eclipse.emf.ecore.xml.type",w_t="ProcessingInstruction",y_t="SimpleAnyType",v_t="XMLTypeDocumentRoot",Ai="org.eclipse.emf.ecore.xml.type.impl",JD="INF",E_t="processing",S_t="ENTITIES_._base",PEe="minLength",jEe="ENTITY",s$="NCName",T_t="IDREFS_._base",FEe="integer",kQ="token",NQ="pattern",A_t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",$Ee="\\i\\c*",__t="[\\i-[:]][\\c-[:]]*",x_t="nonPositiveInteger",XD="maxInclusive",BEe="NMTOKEN",k_t="NMTOKENS_._base",UEe="nonNegativeInteger",ZD="minInclusive",N_t="normalizedString",C_t="unsignedByte",I_t="unsignedInt",R_t="18446744073709551615",O_t="unsignedShort",D_t="processingInstruction",Tg="org.eclipse.emf.ecore.xml.type.internal",Fx=1114111,L_t="Internal Error: shorthands: \\u",gI="xml:isDigit",CQ="xml:isWord",IQ="xml:isSpace",RQ="xml:isNameChar",OQ="xml:isInitialNameChar",M_t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",P_t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",j_t="Private Use",DQ="ASSIGNED",LQ="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",HEe="UNASSIGNED",$x={3:1,122:1},F_t="org.eclipse.emf.ecore.xml.type.util",a$={3:1,4:1,5:1,377:1},zEe="org.eclipse.xtext.xbase.lib",$_t="Cannot add elements to a Range",B_t="Cannot set elements in a Range",U_t="Cannot remove elements from a Range",H_t="user.agent",h,c$,MQ;b.goog=b.goog||{},b.goog.global=b.goog.global||b,c$={},x(1,null,{},E),h.Fb=function(t){return Unt(this,t)},h.Gb=function(){return this.Pm},h.Hb=function(){return s0(this)},h.Ib=function(){var t;return Ab(ru(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 z_t,G_t,q_t;x(299,1,{299:1,2103:1},Pge),h.te=function(t){var r;return r=new Pge,r.i=4,t>1?r.c=wct(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 Vpe(this)},h.i=0;var Ri=k(Fs,"Object",1),GEe=k(Fs,"Class",299);x(2075,1,gD),k(bD,"Optional",2075),x(1172,2075,gD,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(),PQ};var PQ;k(bD,"Absent",1172),x(634,1,{},bq),k(bD,"Joiner",634);var X3n=Hr(bD,"Predicate");x(584,1,{181:1,584:1,3:1,48:1},yKe),h.Mb=function(t){return Ept(this,t)},h.Lb=function(t){return Ept(this,t)},h.Fb=function(t){var r;return se(t,584)?(r=l(t,584),Ome(this.a,r.a)):!1},h.Hb=function(){return Uge(this.a)+306654252},h.Ib=function(){return qyn(this.a)},k(bD,"Predicates/AndPredicate",584),x(416,2075,{416:1,3:1},E9),h.Fb=function(t){var r;return se(t,416)?(r=l(t,416),gr(this.a,r.a)):!1},h.Hb=function(){return 1502476572+Rr(this.a)},h.Ib=function(){return o2t+this.a+")"},h.Jb=function(t){return new E9(CP(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},k(bD,"Present",416),x(206,1,sx),h.Nb=function(t){so(this,t)},h.Qb=function(){kQe()},k(mt,"UnmodifiableIterator",206),x(2055,206,ax),h.Qb=function(){kQe()},h.Rb=function(t){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(mt,"UnmodifiableListIterator",2055),x(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),x(709,206,sx),h.Ob=function(){return EK(this)},h.Pb=function(){return Bpe(this)},h.e=1,k(mt,"AbstractIterator",709),x(2063,1,{231:1}),h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.Fb=function(t){return zK(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),x(737,2063,tm),h.$b=function(){yj(this)},h._b=function(t){return zQe(this,t)},h.ac=function(){return new HA(this,this.c)},h.ic=function(t){return this.hc()},h.bc=function(){return new aE(this,this.c)},h.jc=function(){return this.mc(this.hc())},h.kc=function(){return new fQe(this)},h.lc=function(){return XY(this.c.vc().Lc(),new C,64,this.d)},h.cc=function(t){return yr(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 dQe(this)},h.oc=function(){return XY(this.c.Bc().Lc(),new _,64,this.d)},h.pc=function(t,r){return new tj(this,t,r,null)},h.d=0,k(mt,"AbstractMapBasedMultimap",737),x(1678,737,tm),h.hc=function(){return new Da(this.a)},h.jc=function(){return At(),At(),Ro},h.cc=function(t){return l(yr(this,t),16)},h.fc=function(t){return l(O6(this,t),16)},h.Zb=function(){return DS(this)},h.Fb=function(t){return zK(this,t)},h.qc=function(t){return l(yr(this,t),16)},h.rc=function(t){return l(O6(this,t),16)},h.mc=function(t){return IP(l(t,16))},h.pc=function(t,r){return Nut(this,t,l(r,16),null)},k(mt,"AbstractListMultimap",1678),x(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),x(1110,743,Wi,dQe),h.sc=function(t,r){return r},k(mt,"AbstractMapBasedMultimap/1",1110),x(1111,1,{},_),h.Kb=function(t){return l(t,18).Lc()},k(mt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),x(1112,743,Wi,fQe),h.sc=function(t,r){return new t0(t,r)},k(mt,"AbstractMapBasedMultimap/2",1112);var qEe=Hr(gn,"Map");x(2044,1,j0),h.wc=function(t){S6(this,t)},h.$b=function(){this.vc().$b()},h.tc=function(t){return DY(this,t)},h._b=function(t){return!!Ibe(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&&gr(t,a))return!0;return!1},h.Fb=function(t){var r,o,a;if(t===this)return!0;if(!se(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(Ibe(this,t,!1))},h.Hb=function(){return Dge(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(Ibe(this,t,!0))},h.gc=function(){return this.vc().gc()},h.Ib=function(){return qbt(this)},h.Bc=function(){return new Zh(this)},k(gn,"AbstractMap",2044),x(2064,2044,j0),h.bc=function(){return new G9(this)},h.vc=function(){return hst(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 Uet(this))},k(mt,"Maps/ViewCachingAbstractMap",2064),x(398,2064,j0,HA),h.xc=function(t){return Mfn(this,t)},h.Ac=function(t){return Vpn(this,t)},h.$b=function(){this.d==this.e.c?this.e.$b():oP(new Bfe(this))},h._b=function(t){return fgt(this.d,t)},h.Dc=function(){return new vKe(this)},h.Cc=function(){return this.Dc()},h.Fb=function(t){return this===t||gr(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");x(32,1,Ry),h.Ic=function(t){lo(this,t)},h.Lc=function(){return new St(this,0)},h.Mc=function(){return new vt(null,this.Lc())},h.Ec=function(t){throw Y(new Jp("Add not supported on this collection"))},h.Fc=function(t){return wo(this,t)},h.$b=function(){_he(this)},h.Gc=function(t){return my(this,t,!1)},h.Hc=function(t){return N6(this,t)},h.dc=function(){return this.gc()==0},h.Kc=function(t){return my(this,t,!0)},h.Nc=function(){return Zfe(this)},h.Oc=function(t){return pC(this,t)},h.Ib=function(){return Qd(this)},k(gn,"AbstractCollection",32);var kl=Hr(gn,"Set");x(tf,32,wc),h.Lc=function(){return new St(this,1)},h.Fb=function(t){return s1t(this,t)},h.Hb=function(){return Dge(this)},k(gn,"AbstractSet",tf),x(2047,tf,wc),k(mt,"Sets/ImprovedAbstractSet",2047),x(yp,2047,wc),h.$b=function(){this.Pc().$b()},h.Gc=function(t){return Ugt(this,t)},h.dc=function(){return this.Pc().dc()},h.Kc=function(t){var r;return this.Gc(t)&&se(t,45)?(r=l(t,45),this.Pc().ec().Kc(r.jd())):!1},h.gc=function(){return this.Pc().gc()},k(mt,"Maps/EntrySet",yp),x(1108,yp,wc,vKe),h.Gc=function(t){return c1e(this.a.d.vc(),t)},h.Jc=function(){return new Bfe(this.a)},h.Pc=function(){return this.a},h.Kc=function(t){var r;return c1e(this.a.d.vc(),t)?(r=l(wl(l(t,45)),45),Tdn(this.a.e,r.jd()),!0):!1},h.Lc=function(){return BO(this.a.d.vc().Lc(),new EKe(this.a))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),x(1109,1,{},EKe),h.Kb=function(t){return mlt(this.a,l(t,45))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),x(741,1,Wi,Bfe),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),mlt(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),x(534,2047,wc,G9),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 $Ke(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),x(333,534,wc,aE),h.$b=function(){var t;oP((t=this.b.vc().Jc(),new fle(this,t)))},h.Hc=function(t){return this.b.ec().Hc(t)},h.Fb=function(t){return this===t||gr(this.b.ec(),t)},h.Hb=function(){return Rr(this.b.ec())},h.Jc=function(){var t;return t=this.b.vc().Jc(),new fle(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),x(742,1,Wi,fle),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),x(492,398,{93:1,136:1},DO),h.bc=function(){return this.Qc()},h.ec=function(){return this.Sc()},h.Qc=function(){return new uO(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),x(442,492,iwe,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),x(491,333,s2t,uO),h.Lc=function(){return this.b.ec().Lc()},k(mt,"AbstractMapBasedMultimap/SortedKeySet",491),x(397,491,owe,UA),k(mt,"AbstractMapBasedMultimap/NavigableKeySet",397),x(543,32,Ry,tj),h.Ec=function(t){var r,o;return $c(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=($c(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=($c(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,fP(this))},h.Gc=function(t){return $c(this),this.d.Gc(t)},h.Hc=function(t){return $c(this),this.d.Hc(t)},h.Fb=function(t){return t===this?!0:($c(this),gr(this.d,t))},h.Hb=function(){return $c(this),Rr(this.d)},h.Jc=function(){return $c(this),new kfe(this)},h.Kc=function(t){var r;return $c(this),r=this.d.Kc(t),r&&(--this.f.d,fP(this)),r},h.gc=function(){return Nnt(this)},h.Lc=function(){return $c(this),this.d.Lc()},h.Ib=function(){return $c(this),ms(this.d)},k(mt,"AbstractMapBasedMultimap/WrappedCollection",543);var _u=Hr(gn,"List");x(739,543,{22:1,32:1,18:1,16:1},Qfe),h.gd=function(t){zb(this,t)},h.Lc=function(){return $c(this),this.d.Lc()},h._c=function(t,r){var o;$c(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,u;return r.dc()?!1:(u=($c(this),this.d.gc()),o=l(this.d,16).ad(t,r),o&&(a=this.d.gc(),this.a.d+=a-u,u==0&&PO(this)),o)},h.Xb=function(t){return $c(this),l(this.d,16).Xb(t)},h.bd=function(t){return $c(this),l(this.d,16).bd(t)},h.cd=function(){return $c(this),new ort(this)},h.dd=function(t){return $c(this),new Cat(this,t)},h.ed=function(t){var r;return $c(this),r=l(this.d,16).ed(t),--this.a.d,fP(this),r},h.fd=function(t,r){return $c(this),l(this.d,16).fd(t,r)},h.hd=function(t,r){return $c(this),Nut(this.a,this.e,l(this.d,16).hd(t,r),this.b?this.b:this)},k(mt,"AbstractMapBasedMultimap/WrappedList",739),x(1107,739,{22:1,32:1,18:1,16:1,59:1},Vrt),k(mt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),x(626,1,Wi,kfe),h.Nb=function(t){so(this,t)},h.Ob=function(){return u_(this),this.b.Ob()},h.Pb=function(){return u_(this),this.b.Pb()},h.Qb=function(){Irt(this)},k(mt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),x(740,626,vh,ort,Cat),h.Qb=function(){Irt(this)},h.Rb=function(t){var r;r=Nnt(this.a)==0,(u_(this),l(this.b,130)).Rb(t),++this.a.a.d,r&&PO(this.a)},h.Sb=function(){return(u_(this),l(this.b,130)).Sb()},h.Tb=function(){return(u_(this),l(this.b,130)).Tb()},h.Ub=function(){return(u_(this),l(this.b,130)).Ub()},h.Vb=function(){return(u_(this),l(this.b,130)).Vb()},h.Wb=function(t){(u_(this),l(this.b,130)).Wb(t)},k(mt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),x(738,543,s2t,zde),h.Lc=function(){return $c(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSortedSet",738),x(1106,738,owe,Xnt),k(mt,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),x(1105,543,wc,pit),h.Lc=function(){return $c(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSet",1105),x(1114,1,{},C),h.Kb=function(t){return Ndn(l(t,45))},k(mt,"AbstractMapBasedMultimap/lambda$1$Type",1114),x(1113,1,{},SKe),h.Kb=function(t){return new t0(this.a,t)},k(mt,"AbstractMapBasedMultimap/lambda$2$Type",1113);var dm=Hr(gn,"Map/Entry");x(359,1,ZJ),h.Fb=function(t){var r;return se(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,a2t,359),x(2065,32,Ry),h.$b=function(){this.md().$b()},h.Gc=function(t){var r;return se(t,45)?(r=l(t,45),Jun(this.md(),r.jd(),r.kd())):!1},h.Kc=function(t){var r;return se(t,45)?(r=l(t,45),uut(this.md(),r.jd(),r.kd())):!1},h.gc=function(){return this.md().d},k(mt,"Multimaps/Entries",2065),x(744,2065,Ry,Xce),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),x(745,744,wc,Vue),h.Lc=function(){return this.a.lc()},h.Fb=function(t){return Jbe(this,t)},h.Hb=function(){return vht(this)},k(mt,"AbstractMultimap/EntrySet",745),x(746,32,Ry,Zce),h.$b=function(){this.a.$b()},h.Gc=function(t){return Hpn(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),x(2066,32,{841:1,22:1,32:1,18:1}),h.Ic=function(t){kn(t),uE(this).Ic(new WKe(t))},h.Lc=function(){var t;return t=uE(this).Lc(),XY(t,new z,64|t.wd()&1296,this.a.d)},h.Ec=function(t){return Zue(),!0},h.Fc=function(t){return kn(this),kn(t),se(t,544)?Qun(l(t,841)):!t.dc()&&fK(this,t.Jc())},h.Gc=function(t){var r;return r=l(by(DS(this.a),t),18),(r?r.gc():0)>0},h.Fb=function(t){return zEn(this,t)},h.Hb=function(){return Rr(uE(this))},h.dc=function(){return uE(this).dc()},h.Kc=function(t){return d0t(this,t,1)>0},h.Ib=function(){return ms(uE(this))},k(mt,"AbstractMultiset",2066),x(2068,2047,wc),h.$b=function(){yj(this.a.a)},h.Gc=function(t){var r,o;return se(t,493)?(o=l(t,421),l(o.a.kd(),18).gc()<=0?!1:(r=Rct(this.a,o.a.jd()),r==l(o.a.kd(),18).gc())):!1},h.Kc=function(t){var r,o,a,u;return se(t,493)&&(o=l(t,421),r=o.a.jd(),a=l(o.a.kd(),18).gc(),a!=0)?(u=this.a,$vn(u,r,a)):!1},k(mt,"Multisets/EntrySet",2068),x(1120,2068,wc,TKe),h.Jc=function(){return new mQe(hst(DS(this.a.a)).Jc())},h.gc=function(){return DS(this.a.a).gc()},k(mt,"AbstractMultiset/EntrySet",1120),x(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(),p$},h.Fb=function(t){return zK(this,t)},h.pd=function(t){return l(yr(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 pit(this,t,l(r,24))},k(mt,"AbstractSetMultimap",625),x(1706,625,tm),h.hc=function(){return new Qp(this.b)},h.nd=function(){return new Qp(this.b)},h.jc=function(){return dhe(new Qp(this.b))},h.od=function(){return dhe(new Qp(this.b))},h.cc=function(t){return l(l(yr(this,t),24),85)},h.pd=function(t){return l(l(yr(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 se(t,279)?dhe(l(t,279)):(At(),new Rde(l(t,85)))},h.Zb=function(){var t;return t=this.f,t||(this.f=se(this.c,141)?new E3(this,l(this.c,141)):se(this.c,136)?new DO(this,l(this.c,136)):new HA(this,this.c))},h.pc=function(t,r){return se(r,279)?new Xnt(this,t,l(r,279)):new zde(this,t,l(r,85))},k(mt,"AbstractSortedSetMultimap",1706),x(1707,1706,tm),h.Zb=function(){var t;return t=this.f,l(l(t||(this.f=se(this.c,141)?new E3(this,l(this.c,141)):se(this.c,136)?new DO(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=se(this.c,141)?new UA(this,l(this.c,141)):se(this.c,136)?new uO(this,l(this.c,136)):new aE(this,this.c)),85),279)},h.bc=function(){return se(this.c,141)?new UA(this,l(this.c,141)):se(this.c,136)?new uO(this,l(this.c,136)):new aE(this,this.c)},k(mt,"AbstractSortedKeySortedSetMultimap",1707),x(2088,1,{2025:1}),h.Fb=function(t){return I0n(this,t)},h.Hb=function(){var t;return Dge((t=this.g,t||(this.g=new $G(this))))},h.Ib=function(){var t;return qbt((t=this.f,t||(this.f=new Sde(this))))},k(mt,"AbstractTable",2088),x(676,tf,wc,$G),h.$b=function(){NQe()},h.Gc=function(t){var r,o;return se(t,471)?(r=l(t,694),o=l(by(Bst(this.a),o1(r.c.e,r.b)),93),!!o&&c1e(o.vc(),new t0(o1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.Jc=function(){return ecn(this.a)},h.Kc=function(t){var r,o;return se(t,471)?(r=l(t,694),o=l(by(Bst(this.a),o1(r.c.e,r.b)),93),!!o&&_gn(o.vc(),new t0(o1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.gc=function(){return Hot(this.a)},h.Lc=function(){return rln(this.a)},k(mt,"AbstractTable/CellSet",676),x(2004,32,Ry,AKe),h.$b=function(){NQe()},h.Gc=function(t){return vwn(this.a,t)},h.Jc=function(){return tcn(this.a)},h.gc=function(){return Hot(this.a)},h.Lc=function(){return iut(this.a)},k(mt,"AbstractTable/Values",2004),x(1679,1678,tm),k(mt,"ArrayListMultimapGwtSerializationDependencies",1679),x(510,1679,tm,gq,qhe),h.hc=function(){return new Da(this.a)},h.a=0,k(mt,"ArrayListMultimap",510),x(675,2088,{675:1,2025:1,3:1},l0t),k(mt,"ArrayTable",675),x(2e3,394,ax,krt),h.Xb=function(t){return new Ige(this.a,t)},k(mt,"ArrayTable/1",2e3),x(2001,1,{},_Ke),h.rd=function(t){return new Ige(this.a,t)},k(mt,"ArrayTable/1methodref$getCell$Type",2001),x(2089,1,{694:1}),h.Fb=function(t){var r;return t===this?!0:se(t,471)?(r=l(t,694),rp(o1(this.c.e,this.b),o1(r.c.e,r.b))&&rp(o1(this.c.c,this.a),o1(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 $j(Z(X(Ri,1),It,1,5,[o1(this.c.e,this.b),o1(this.c.c,this.a),$S(this.c,this.b,this.a)]))},h.Ib=function(){return"("+o1(this.c.e,this.b)+","+o1(this.c.c,this.a)+")="+$S(this.c,this.b,this.a)},k(mt,"Tables/AbstractCell",2089),x(471,2089,{471:1,694:1},Ige),h.a=0,h.b=0,h.d=0,k(mt,"ArrayTable/2",471),x(2003,1,{},xKe),h.rd=function(t){return Edt(this.a,t)},k(mt,"ArrayTable/2methodref$getValue$Type",2003),x(2002,394,ax,Nrt),h.Xb=function(t){return Edt(this.a,t)},k(mt,"ArrayTable/3",2002),x(2056,2044,j0),h.$b=function(){oP(this.kc())},h.vc=function(){return new HKe(this)},h.lc=function(){return new vat(this.kc(),this.gc())},k(mt,"Maps/IteratorBasedAbstractMap",2056),x(834,2056,j0),h.$b=function(){throw Y(new Nn)},h._b=function(t){return GQe(this.c,t)},h.kc=function(){return new Crt(this,this.c.b.c.gc())},h.lc=function(){return zV(this.c.b.c.gc(),16,new kKe(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 ZV(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 "+ZV(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),x(1999,1,{},kKe),h.rd=function(t){return Ust(this.a,t)},k(mt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),x(1997,359,ZJ,Tet),h.jd=function(){return bnn(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),x(1998,394,ax,Crt),h.Xb=function(t){return Ust(this.a,t)},k(mt,"ArrayTable/ArrayMap/2",1998),x(1996,834,j0,Ist),h.sd=function(){return"Column"},h.td=function(t){return $S(this.b,this.a,t)},h.ud=function(t,r){return opt(this.b,this.a,t,r)},h.a=0,k(mt,"ArrayTable/Row",1996),x(835,834,j0,Sde),h.td=function(t){return new Ist(this.a,t)},h.yc=function(t,r){return l(r,93),$Qt()},h.ud=function(t,r){return l(r,93),BQt()},h.sd=function(){return"Row"},k(mt,"ArrayTable/RowMap",835),x(1138,1,Tu,Aet),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 xet(t,this.b))},h.zd=function(t){return this.a.zd(new _et(t,this.b))},k(mt,"CollectSpliterators/1",1138),x(1139,1,nn,_et),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$0$Type",1139),x(1140,1,nn,xet),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$1$Type",1140),x(1135,1,Tu,Jit),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 Net(t,this.c))},h.zd=function(t){return this.a.Pe(new ket(t,this.c))},h.b=0,k(mt,"CollectSpliterators/1WithCharacteristics",1135),x(1136,1,mD,ket),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),x(1137,1,mD,Net),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),x(1131,1,Tu),h.yd=function(t){return(this.a&t)!=0},h.wd=function(){return this.a},h.xd=function(){return this.e&&(this.b=fde(this.b,this.e.xd())),fde(this.b,0)},h.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Cet(this,t)),this.b=0},h.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return f3(this.b,wD)&&(this.b=El(this.b,1)),!0;if(this.e=null,!this.c.zd(new LKe(this)))return!1}},h.a=0,h.b=0,k(mt,"CollectSpliterators/FlatMapSpliterator",1131),x(1133,1,nn,LKe),h.Ad=function(t){crn(this.a,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),x(1134,1,nn,Cet),h.Ad=function(t){Dan(this.a,this.b,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),x(1132,1131,Tu,Cut),k(mt,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),x(257,1,QJ),h.Dd=function(t){return this.Cd(l(t,257))},h.Cd=function(t){var r;return t==(cq(),FQ)?1:t==(aq(),jQ)?-1:(r=(nP(),E6(this.a,t.a)),r!=0?r:(Lt(),se(this,517)==se(t,517)?0:se(this,517)?1:-1))},h.Gd=function(){return this.a},h.Fb=function(t){return nbe(this,t)},k(mt,"Cut",257),x(1810,257,QJ,lQe),h.Cd=function(t){return t==this?0:1},h.Ed=function(t){throw Y(new Cue)},h.Fd=function(t){t.a+="+∞)"},h.Gd=function(){throw Y(new ts(u2t))},h.Hb=function(){return eg(),z1e(this)},h.Hd=function(t){return!1},h.Ib=function(){return"+∞"};var jQ;k(mt,"Cut/AboveAll",1810),x(517,257,{257:1,517:1,3:1,34:1},Drt),h.Ed=function(t){ba((t.a+="(",t),this.a)},h.Fd=function(t){Db(ba(t,this.a),93)},h.Hb=function(){return~Rr(this.a)},h.Hd=function(t){return nP(),E6(this.a,t)<0},h.Ib=function(){return"/"+this.a+"\\"},k(mt,"Cut/AboveValue",517),x(1809,257,QJ,uQe),h.Cd=function(t){return t==this?0:-1},h.Ed=function(t){t.a+="(-∞"},h.Fd=function(t){throw Y(new Cue)},h.Gd=function(){throw Y(new ts(u2t))},h.Hb=function(){return eg(),z1e(this)},h.Hd=function(t){return!0},h.Ib=function(){return"-∞"};var FQ;k(mt,"Cut/BelowAll",1809),x(1811,257,QJ,Lrt),h.Ed=function(t){ba((t.a+="[",t),this.a)},h.Fd=function(t){Db(ba(t,this.a),41)},h.Hb=function(){return Rr(this.a)},h.Hd=function(t){return nP(),E6(this.a,t)<=0},h.Ib=function(){return"\\"+this.a+"/"},k(mt,"Cut/BelowValue",1811),x(539,1,Eh),h.Ic=function(t){lo(this,t)},h.Ib=function(){return zgn(l(CP(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},k(mt,"FluentIterable",539),x(438,539,Eh,g3),h.Jc=function(){return new Ft(Gt(this.a.Jc(),new D))},k(mt,"FluentIterable/2",438),x(36,1,{},D),h.Kb=function(t){return l(t,22).Jc()},h.Fb=function(t){return this===t},k(mt,"FluentIterable/2/0methodref$iterator$Type",36),x(1051,539,Eh,$nt),h.Jc=function(){return hh(this)},k(mt,"FluentIterable/3",1051),x(721,394,ax,xde),h.Xb=function(t){return this.a[t].Jc()},k(mt,"FluentIterable/3/1",721),x(2049,1,{}),h.Ib=function(){return ms(this.Id().b)},k(mt,"ForwardingObject",2049),x(2050,2049,l2t),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 vt(null,this.Lc())},h.Ec=function(t){return this.Jd(),YQe()},h.Fc=function(t){return this.Jd(),JQe()},h.$b=function(){this.Jd(),XQe()},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(),ZQe()},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),x(2057,32,swe),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&&my(this,t,!1)},h.Ld=function(){switch(this.gc()){case 0:return sP(),UQ;case 1:return new kV(kn(this.Md().Pb()));default:return new xfe(this,this.Nc())}},h.Kc=function(t){throw Y(new Nn)},k(mt,"ImmutableCollection",2057),x(1271,2057,swe,MKe),h.Jc=function(){return BS(new qv(this.a.b.Jc()))},h.Gc=function(t){return t!=null&&VN(this.a,t)},h.Hc=function(t){return ple(this.a,t)},h.dc=function(){return this.a.b.dc()},h.Md=function(){return BS(new qv(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 gle(this.a,t)},h.Ib=function(){return ms(this.a.b)},k(mt,"ForwardingImmutableCollection",1271),x(312,2057,cx),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 DEn(this,t)},h.Hb=function(){return Xhn(this)},h.bd=function(t){return t==null?-1:cmn(this,t)},h.Md=function(){return this.Nd(0)},h.Nd=function(t){return EV(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 Vj((o=new Bet(this),new Rf(o,t,r)))},k(mt,"ImmutableList",312),x(2084,312,cx),h.Jc=function(){return BS(this.Pd().Jc())},h.hd=function(t,r){return Vj(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 gr(this.Pd(),t)},h.Xb=function(t){return o1(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 Vj(this.Pd().hd(t,r))},h.Nc=function(){return this.Pd().Oc(we(Ri,It,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),x(724,1,ux),h.vc=function(){return Cb(this)},h.wc=function(t){S6(this,t)},h.ec=function(){return ZV(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 IKe(this)},h.Sd=function(){return new RKe(this)},h.Fb=function(t){return zpn(this,t)},h.Hb=function(){return Cb(this).Hb()},h.dc=function(){return this.gc()==0},h.yc=function(t,r){return UQt()},h.Ac=function(t){throw Y(new Nn)},h.Ib=function(){return pyn(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),x(725,724,ux),h._b=function(t){return GQe(this,t)},h.uc=function(t){return Get(this.b,t)},h.Qd=function(){return zpt(new DKe(this))},h.Rd=function(){return zpt(uat(this.b))},h.Sd=function(){return new MKe(cat(this.b))},h.Fb=function(t){return qet(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),x(2051,2050,eX),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),x(1066,2051,eX,DKe),h.Id=function(){return s_(this.a.b)},h.Jd=function(){return s_(this.a.b)},h.Gc=function(t){if(se(t,45)&&l(t,45).jd()==null)return!1;try{return zet(s_(this.a.b),t)}catch(r){if(r=ui(r),se(r,214))return!1;throw Y(r)}},h.Ud=function(){return s_(this.a.b)},h.Oc=function(t){var r,o;return r=Jat(s_(this.a.b),t),s_(this.a.b).b.gc()=0?"+":"")+(o/60|0),r=O8(b.Math.abs(o)%60),(imt(),dxt)[this.q.getDay()]+" "+fxt[this.q.getMonth()]+" "+O8(this.q.getDate())+" "+O8(this.q.getHours())+":"+O8(this.q.getMinutes())+":"+O8(this.q.getSeconds())+" GMT"+t+r+" "+this.q.getFullYear()};var d$=k(gn,"Date",208);x(1994,208,y2t,Abt),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),x(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),x(142,2043,{142:1},Eb,Qce),h.Fb=function(t){return se(t,142)?Khe(this.a,l(t,142).a):!1},h.me=function(){return aQt},h.Hb=function(){return Dhe(this.a)},h.ne=function(){return this},h.Ib=function(){var t,r,o;for(o=new fu("["),r=0,t=this.a.length;r0&&(o.a+=","),ba(o,uy(this,r));return o.a+="]",o.a},k(dT,"JSONArray",142),x(482,2043,{482:1},eue),h.me=function(){return cQt},h.oe=function(){return this},h.Ib=function(){return Lt(),""+this.a},h.a=!1;var Q_t,ext;k(dT,"JSONBoolean",482),x(990,63,vp,wQe),k(dT,"JSONException",990),x(1028,2043,{},pe),h.me=function(){return fQt},h.Ib=function(){return tc};var txt;k(dT,"JSONNull",1028),x(266,2043,{266:1},S9),h.Fb=function(t){return se(t,266)?this.a==l(t,266).a:!1},h.me=function(){return uQt},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),x(150,2043,{150:1},aS,JR),h.Fb=function(t){return se(t,150)?Khe(this.a,l(t,150).a):!1},h.me=function(){return lQt},h.Hb=function(){return Dhe(this.a)},h.qe=function(){return this},h.Ib=function(){var t,r,o,a,u,f,p;for(p=new fu("{"),t=!0,f=AK(this,we(Je,Pe,2,0,6,1)),o=f,a=0,u=o.length;a=0?":"+this.c:"")+")"},h.c=0;var c2e=k(Fs,"StackTraceElement",325);q_t={3:1,475:1,34:1,2:1};var Je=k(Fs,awe,2);x(112,423,{475:1},Xp,GN,ml),k(Fs,"StringBuffer",112),x(106,423,{475:1},Qg,lS,fu),k(Fs,"StringBuilder",106),x(698,99,o7,Que),k(Fs,"StringIndexOutOfBoundsException",698),x(2124,1,{});var oxt;x(46,63,{3:1,102:1,63:1,81:1,46:1},Nn,Jp),k(Fs,"UnsupportedOperationException",46),x(249,245,{3:1,34:1,245:1,249:1},j6,ule),h.Dd=function(t){return uvt(this,l(t,249))},h.se=function(){return Sy(Fvt(this))},h.Fb=function(t){var r;return this===t?!0:se(t,249)?(r=l(t,249),this.e==r.e&&uvt(this,r)==0):!1},h.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gs(this.f),this.b=On(Gi(t,-1)),this.b=33*this.b+On(Gi(c0(t,32),-1)),this.b=17*this.b+bo(this.e),this.b):(this.b=17*Qpt(this.c)+bo(this.e),this.b)},h.Ib=function(){return Fvt(this)},h.a=0,h.b=0,h.d=0,h.e=0,h.f=0;var sxt,fm,u2e,l2e,d2e,f2e,h2e,p2e,WQ=k("java.math","BigDecimal",249);x(92,245,{3:1,34:1,245:1,92:1},ap,hut,Ob,l1t,s1),h.Dd=function(t){return n1t(this,l(t,92))},h.se=function(){return Sy(YJ(this,0))},h.Fb=function(t){return k1e(this,t)},h.Hb=function(){return Qpt(this)},h.Ib=function(){return YJ(this,0)},h.b=-2,h.c=0,h.d=0,h.e=0;var axt,f$,cxt,KQ,h$,wI,GE=k("java.math","BigInteger",92),uxt,lxt,ST,yI;x(487,2044,j0),h.$b=function(){Zs(this)},h._b=function(t){return ma(this,t)},h.uc=function(t){return jpt(this,t,this.i)||jpt(this,t,this.f)},h.vc=function(){return new Mw(this)},h.xc=function(t){return Ut(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),x(307,tf,wc,Mw),h.$b=function(){this.a.$b()},h.Gc=function(t){return mut(this,t)},h.Jc=function(){return new hy(this.a)},h.Kc=function(t){var r;return mut(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),x(308,1,Wi,hy),h.Nb=function(t){so(this,t)},h.Pb=function(){return bE(this)},h.Ob=function(){return this.b},h.Qb=function(){Wdt(this)},h.b=!1,h.d=0,k(gn,"AbstractHashMap/EntrySetIterator",308),x(422,1,Wi,LN),h.Nb=function(t){so(this,t)},h.Ob=function(){return Nq(this)},h.Pb=function(){return Che(this)},h.Qb=function(){Mc(this)},h.b=0,h.c=-1,k(gn,"AbstractList/IteratorImpl",422),x(97,422,vh,Ji),h.Qb=function(){Mc(this)},h.Rb=function(t){Kw(this,t)},h.Sb=function(){return this.b>0},h.Tb=function(){return this.b},h.Ub=function(){return cn(this.b>0),this.a.Xb(this.c=--this.b)},h.Vb=function(){return this.b-1},h.Wb=function(t){Gw(this.c!=-1),this.a.fd(this.c,t)},k(gn,"AbstractList/ListIteratorImpl",97),x(217,56,lx,Rf),h._c=function(t,r){oy(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),x(234,tf,wc,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 A9(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),x(533,1,Wi,A9),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),x(232,32,Ry,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 Pw(t)},h.gc=function(){return this.a.gc()},k(gn,"AbstractMap/2",232),x(305,1,Wi,Pw),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),x(483,1,{483:1,45:1}),h.Fb=function(t){var r;return se(t,45)?(r=l(t,45),ia(this.d,r.jd())&&ia(this.e,r.kd())):!1},h.jd=function(){return this.d},h.kd=function(){return this.e},h.Hb=function(){return rE(this.d)^rE(this.e)},h.ld=function(t){return tfe(this,t)},h.Ib=function(){return this.d+"="+this.e},k(gn,"AbstractMap/AbstractEntry",483),x(392,483,{483:1,392:1,45:1},n8),k(gn,"AbstractMap/SimpleEntry",392),x(2061,1,AX),h.Fb=function(t){var r;return se(t,45)?(r=l(t,45),ia(this.jd(),r.jd())&&ia(this.kd(),r.kd())):!1},h.Hb=function(){return rE(this.jd())^rE(this.kd())},h.Ib=function(){return this.jd()+"="+this.kd()},k(gn,a2t,2061),x(2069,2044,iwe),h.Vc=function(t){return yq(this.Ce(t))},h.tc=function(t){return blt(this,t)},h._b=function(t){return efe(this,t)},h.vc=function(){return new KG(this)},h.Rc=function(){return Rst(this.Ee())},h.Wc=function(t){return yq(this.Fe(t))},h.xc=function(t){var r;return r=t,Ss(this.De(r))},h.Yc=function(t){return yq(this.Ge(t))},h.ec=function(){return new tYe(this)},h.Tc=function(){return Rst(this.He())},h.Zc=function(t){return yq(this.Ie(t))},k(gn,"AbstractNavigableMap",2069),x(627,tf,wc,KG),h.Gc=function(t){return se(t,45)&&blt(this.b,l(t,45))},h.Jc=function(){return this.b.Be()},h.Kc=function(t){var r;return se(t,45)?(r=l(t,45),this.b.Je(r)):!1},h.gc=function(){return this.b.gc()},k(gn,"AbstractNavigableMap/EntrySet",627),x(1127,tf,owe,tYe),h.Lc=function(){return new i8(this)},h.$b=function(){this.a.$b()},h.Gc=function(t){return efe(this.a,t)},h.Jc=function(){var t;return t=this.a.vc().b.Be(),new nYe(t)},h.Kc=function(t){return efe(this.a,t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractNavigableMap/NavigableKeySet",1127),x(1128,1,Wi,nYe),h.Nb=function(t){so(this,t)},h.Ob=function(){return Nq(this.a.a)},h.Pb=function(){var t;return t=Yrt(this.a),t.jd()},h.Qb=function(){eot(this.a)},k(gn,"AbstractNavigableMap/NavigableKeySet/1",1128),x(2082,32,Ry),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"),wo(this,t)},h.$b=function(){for(;hK(this)!=null;);},k(gn,"AbstractQueue",2082),x(315,32,{4:1,22:1,32:1,18:1},oE,Eut),h.Ec=function(t){return npe(this,t),!0},h.$b=function(){cpe(this)},h.Gc=function(t){return ept(new L3(this),t)},h.dc=function(){return zN(this)},h.Jc=function(){return new L3(this)},h.Kc=function(t){return Ucn(new L3(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),x(451,1,Wi,L3),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.a!=this.b},h.Pb=function(){return Uj(this)},h.Qb=function(){Qft(this)},h.a=0,h.b=0,h.c=-1,k(gn,"ArrayDeque/IteratorImpl",451),x(13,56,T2t,je,Da,Tc),h._c=function(t,r){Nb(this,t,r)},h.Ec=function(t){return Fe(this,t)},h.ad=function(t,r){return Zge(this,t,r)},h.Fc=function(t){return li(this,t)},h.$b=function(){jw(this.c,0)},h.Gc=function(t){return _s(this,t,0)!=-1},h.Ic=function(t){La(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){jct(this,t,r)},h.fd=function(t,r){return nu(this,t,r)},h.gc=function(){return this.c.length},h.gd=function(t){ki(this,t)},h.Nc=function(){return eP(this.c)},h.Oc=function(t){return Yd(this,t)};var Z3n=k(gn,"ArrayList",13);x(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),x(2091,b.Function,{},De),h.Ke=function(t,r){return vr(t,r)},x(124,56,A2t,Ls),h.Gc=function(t){return Zft(this,t)!=-1},h.Ic=function(t){var r,o,a,u;for(Mt(t),o=this.a,a=0,u=o.length;a0)throw Y(new jt(gwe+t+" greater than "+this.e));return this.f.Re()?nct(this.c,this.b,this.a,t,r):Pct(this.c,t,r)},h.yc=function(t,r){if(!BY(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 wpt(this.c,t,r)},h.Ac=function(t){var r;return r=t,BY(this.c,this.f,r,this.b,this.a,this.e,this.d)?rct(this.c,r):null},h.Je=function(t){return TP(this,t.jd())&&Npe(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=$pe(this.c),!(r&&TP(this,r.d)&&r))return 0;for(t=0,o=new xK(this.c,this.f,this.b,this.a,this.e,this.d);Nq(o.a);o.b=l(Che(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(gwe+t+k2t+this.b));return this.f.Se()?nct(this.c,t,r,this.e,this.d):Mct(this.c,t,r)},h.a=!1,h.d=!1,k(gn,"TreeMap/SubMap",629),x(310,23,NX,o8),h.Re=function(){return!1},h.Se=function(){return!1};var XQ,ZQ,QQ,eee,g$=fn(gn,"TreeMap/SubMapType",310,bn,hln,krn);x(1124,310,NX,Znt),h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/1",1124,g$,null,null),x(1125,310,NX,lrt),h.Re=function(){return!0},h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/2",1125,g$,null,null),x(1126,310,NX,Qnt),h.Re=function(){return!0},fn(gn,"TreeMap/SubMapType/3",1126,g$,null,null);var wxt;x(143,tf,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},tq,Ode,Qp,IA),h.Lc=function(){return new i8(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 wV(this,t)},h.gc=function(){return this.a.gc()};var iCn=k(gn,"TreeSet",143);x(1063,1,{},sYe),h.Te=function(t,r){return Vnn(this.a,t,r)},k(CX,"BinaryOperator/lambda$0$Type",1063),x(1064,1,{},aYe),h.Te=function(t,r){return Wnn(this.a,t,r)},k(CX,"BinaryOperator/lambda$1$Type",1064),x(944,1,{},Zn),h.Kb=function(t){return t},k(CX,"Function/lambda$0$Type",944),x(390,1,Mn,RA),h.Mb=function(t){return!this.a.Mb(t)},k(CX,"Predicate/lambda$2$Type",390),x(574,1,{574:1});var yxt=k(zC,"Handler",574);x(2086,1,gD),h.ve=function(){return"DUMMY"},h.Ib=function(){return this.ve()};var E2e;k(zC,"Level",2086),x(1689,2086,gD,Yn),h.ve=function(){return"INFO"},k(zC,"Level/LevelInfo",1689),x(1841,1,{},xZe);var tee;k(zC,"LogManager",1841),x(1883,1,gD,sot),h.b=null,k(zC,"LogRecord",1883),x(515,1,{515:1},VW),h.e=!1;var vxt=!1,Ext=!1,sf=!1,Sxt=!1,Txt=!1;k(zC,"Logger",515),x(827,574,{574:1},Er),k(zC,"SimpleConsoleLogHandler",827),x(132,23,{3:1,34:1,23:1,132:1},Cq);var S2e,nc,T2e,rc=fn(Uo,"Collector/Characteristics",132,bn,Xcn,Nrn),Axt;x(753,1,{},ahe),k(Uo,"CollectorImpl",753),x(1061,1,{},Ln),h.Te=function(t,r){return Tgn(l(t,215),l(r,215))},k(Uo,"Collectors/10methodref$merge$Type",1061),x(1062,1,{},Xs),h.Kb=function(t){return out(l(t,215))},k(Uo,"Collectors/11methodref$toString$Type",1062),x(153,1,{},ls),h.Wd=function(t,r){l(t,18).Ec(r)},k(Uo,"Collectors/20methodref$add$Type",153),x(155,1,{},es),h.Ve=function(){return new je},k(Uo,"Collectors/21methodref$ctor$Type",155),x(1060,1,{},Ca),h.Wd=function(t,r){cp(l(t,215),l(r,475))},k(Uo,"Collectors/9methodref$add$Type",1060),x(1059,1,{},vot),h.Ve=function(){return new qb(this.a,this.b,this.c)},k(Uo,"Collectors/lambda$15$Type",1059),x(154,1,{},Ci),h.Te=function(t,r){return Aen(l(t,18),l(r,18))},k(Uo,"Collectors/lambda$45$Type",154),x(542,1,{}),h.Ye=function(){D3(this)},h.d=!1,k(Uo,"TerminatableStream",542),x(775,542,bwe,qde),h.Ye=function(){D3(this)},k(Uo,"DoubleStreamImpl",775),x(1309,731,Tu,Eot),h.Pe=function(t){return emn(this,l(t,191))},h.a=null,k(Uo,"DoubleStreamImpl/2",1309),x(1310,1,AD,cYe),h.Ne=function(t){wtn(this.a,t)},k(Uo,"DoubleStreamImpl/2/lambda$0$Type",1310),x(1307,1,AD,uYe),h.Ne=function(t){mtn(this.a,t)},k(Uo,"DoubleStreamImpl/lambda$0$Type",1307),x(1308,1,AD,lYe),h.Ne=function(t){Vgt(this.a,t)},k(Uo,"DoubleStreamImpl/lambda$2$Type",1308),x(1363,730,Tu,wlt),h.Pe=function(t){return iln(this,l(t,204))},h.a=0,h.b=0,h.c=0,k(Uo,"IntStream/5",1363),x(800,542,bwe,Vde),h.Ye=function(){D3(this)},h.Ze=function(){return u1(this),this.a},k(Uo,"IntStreamImpl",800),x(801,542,bwe,ble),h.Ye=function(){D3(this)},h.Ze=function(){return u1(this),wde(),mxt},k(Uo,"IntStreamImpl/Empty",801),x(1668,1,mD,dYe),h.Bd=function(t){Hht(this.a,t)},k(Uo,"IntStreamImpl/lambda$4$Type",1668);var oCn=Hr(Uo,"Stream");x(28,542,{524:1,684:1,840:1},vt),h.Ye=function(){D3(this)};var TT;k(Uo,"StreamImpl",28),x(1083,489,Tu,Kit),h.zd=function(t){for(;tfn(this);){if(this.a.zd(t))return!0;D3(this.b),this.b=null,this.a=null}return!1},k(Uo,"StreamImpl/1",1083),x(1084,1,nn,fYe),h.Ad=function(t){jon(this.a,l(t,840))},k(Uo,"StreamImpl/1/lambda$0$Type",1084),x(1085,1,Mn,hYe),h.Mb=function(t){return gi(this.a,t)},k(Uo,"StreamImpl/1methodref$add$Type",1085),x(1086,489,Tu,Rat),h.zd=function(t){var r;return this.a||(r=new je,this.b.a.Nb(new pYe(r)),At(),ki(r,this.c),this.a=new St(r,16)),bft(this.a,t)},h.a=null,k(Uo,"StreamImpl/5",1086),x(1087,1,nn,pYe),h.Ad=function(t){Fe(this.a,t)},k(Uo,"StreamImpl/5/2methodref$add$Type",1087),x(732,489,Tu,Ppe),h.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new ltt(this,t)););return this.b},h.b=!1,k(Uo,"StreamImpl/FilterSpliterator",732),x(1077,1,nn,ltt),h.Ad=function(t){Rsn(this.a,this.b,t)},k(Uo,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),x(1072,731,Tu,klt),h.Pe=function(t){return lrn(this,l(t,191))},k(Uo,"StreamImpl/MapToDoubleSpliterator",1072),x(1076,1,nn,dtt),h.Ad=function(t){Ben(this.a,this.b,t)},k(Uo,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),x(1071,730,Tu,Nlt),h.Pe=function(t){return drn(this,l(t,204))},k(Uo,"StreamImpl/MapToIntSpliterator",1071),x(1075,1,nn,ftt),h.Ad=function(t){Uen(this.a,this.b,t)},k(Uo,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),x(729,489,Tu,Tpe),h.zd=function(t){return Vit(this,t)},k(Uo,"StreamImpl/MapToObjSpliterator",729),x(1074,1,nn,htt),h.Ad=function(t){Hen(this.a,this.b,t)},k(Uo,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),x(1073,489,Tu,rht),h.zd=function(t){for(;xq(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(Uo,"StreamImpl/SkipSpliterator",1073),x(1078,1,nn,Qr),h.Ad=function(t){},k(Uo,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),x(624,1,nn,Hi),h.Ad=function(t){JKe(this,t)},k(Uo,"StreamImpl/ValueConsumer",624),x(1079,1,nn,ai),h.Ad=function(t){_b()},k(Uo,"StreamImpl/lambda$0$Type",1079),x(1080,1,nn,ju),h.Ad=function(t){_b()},k(Uo,"StreamImpl/lambda$1$Type",1080),x(1081,1,{},gYe),h.Te=function(t,r){return Drn(this.a,t,r)},k(Uo,"StreamImpl/lambda$4$Type",1081),x(1082,1,nn,ptt),h.Ad=function(t){irn(this.b,this.a,t)},k(Uo,"StreamImpl/lambda$5$Type",1082),x(1088,1,nn,bYe),h.Ad=function(t){tpn(this.a,l(t,376))},k(Uo,"TerminatableStream/lambda$0$Type",1088),x(2121,1,{}),x(1993,1,{},Ui),k("javaemul.internal","ConsoleLogger",1993);var sCn=0;x(2113,1,{}),x(1817,1,nn,mb),h.Ad=function(t){l(t,322)},k(hx,"BowyerWatsonTriangulation/lambda$0$Type",1817),x(1818,1,nn,mYe),h.Ad=function(t){wo(this.a,l(t,322).e)},k(hx,"BowyerWatsonTriangulation/lambda$1$Type",1818),x(1819,1,nn,Jg),h.Ad=function(t){l(t,180)},k(hx,"BowyerWatsonTriangulation/lambda$2$Type",1819),x(1814,1,Un,wYe),h.Le=function(t,r){return Wln(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),x(401,1,{},OA),k(hx,"NodeMicroLayout",401),x(180,1,{180:1},hS),h.Fb=function(t){var r;return se(t,180)?(r=l(t,180),ia(this.a,r.a)&&ia(this.b,r.b)||ia(this.a,r.b)&&ia(this.b,r.a)):!1},h.Hb=function(){return rE(this.a)+rE(this.b)};var aCn=k(hx,"TEdge",180);x(322,1,{322:1},I0e),h.Fb=function(t){var r;return se(t,322)?(r=l(t,322),aj(this,r.a)&&aj(this,r.b)&&aj(this,r.c)):!1},h.Hb=function(){return rE(this.a)+rE(this.b)+rE(this.c)},k(hx,"TTriangle",322),x(227,1,{227:1},L8),k(hx,"Tree",227),x(1195,1,{},kct),k(I2t,"Scanline",1195);var _xt=Hr(I2t,R2t);x(1745,1,{},mft),k(Ah,"CGraph",1745),x(321,1,{321:1},hct),h.b=0,h.c=0,h.d=0,h.g=0,h.i=0,h.k=Li,k(Ah,"CGroup",321),x(821,1,{},Lue),k(Ah,"CGroup/CGroupBuilder",821),x(60,1,{60:1},Cit),h.Ib=function(){var t;return this.j?In(this.j.Kb(this)):(np(b$),b$.o+"@"+(t=s0(this)>>>0,t.toString(16)))},h.f=0,h.i=Li;var b$=k(Ah,"CNode",60);x(820,1,{},Mue),k(Ah,"CNode/CNodeBuilder",820);var xxt;x(1568,1,{},Wh),h.df=function(t,r){return 0},h.ef=function(t,r){return 0},k(Ah,D2t,1568),x(1847,1,{},wb),h.af=function(t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G;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,u;if(u=0,this.e)this.b?u=this.b.a:this.a[1][1]&&(u=this.a[1][1].gf());else if(this.g)u=_1e(this,HY(this,null,!0));else for(r=(Sd(),Z(X($y,1),Ce,240,0,[Bs,$a,Us])),o=0,a=r.length;o0?u+this.n.b+this.n.c:0},h.hf=function(){var t,r,o,a,u;if(this.g)for(t=HY(this,null,!1),o=(Sd(),Z(X($y,1),Ce,240,0,[Bs,$a,Us])),a=0,u=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),ype(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 ree=0,m$=0;k(rm,"GridContainerCell",1516),x(464,23,{3:1,34:1,23:1,464:1},Rq);var M1,Wf,nd,Dxt=fn(rm,"HorizontalLabelAlignment",464,bn,Qcn,Irn),Lxt;x(319,219,{219:1,319:1},sct,wft,Xat),h.ff=function(){return Iot(this)},h.gf=function(){return Ffe(this)},h.a=0,h.c=!1;var cCn=k(rm,"LabelCell",319);x(256,338,{219:1,338:1,256:1},fC),h.ff=function(){return EC(this)},h.gf=function(){return SC(this)},h.hf=function(){CJ(this)},h.jf=function(){IJ(this)},h.b=0,h.c=0,h.d=!1,k(rm,"StripContainerCell",256),x(1672,1,Mn,Zg),h.Mb=function(t){return PQt(l(t,219))},k(rm,"StripContainerCell/lambda$0$Type",1672),x(1673,1,{},CN),h.We=function(t){return l(t,219).gf()},k(rm,"StripContainerCell/lambda$1$Type",1673),x(1674,1,Mn,IN),h.Mb=function(t){return jQt(l(t,219))},k(rm,"StripContainerCell/lambda$2$Type",1674),x(1675,1,{},Kp),h.We=function(t){return l(t,219).ff()},k(rm,"StripContainerCell/lambda$3$Type",1675),x(465,23,{3:1,34:1,23:1,465:1},Oq);var rd,P1,Nd,Mxt=fn(rm,"VerticalLabelAlignment",465,bn,eun,Rrn),Pxt;x(794,1,{},K0e),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(c7,"NodeContext",794),x(1514,1,Un,GR),h.Le=function(t,r){return znt(l(t,64),l(r,64))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(c7,"NodeContext/0methodref$comparePortSides$Type",1514),x(1515,1,Un,kA),h.Le=function(t,r){return jwn(l(t,116),l(r,116))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(c7,"NodeContext/1methodref$comparePortContexts$Type",1515),x(169,23,{3:1,34:1,23:1,169:1},Ku);var jxt,Fxt,$xt,Bxt,Uxt,Hxt,zxt,Gxt,qxt,Vxt,Wxt,Kxt,Yxt,Jxt,Xxt,Zxt,Qxt,ekt,tkt,nkt,rkt,iee,ikt=fn(c7,"NodeLabelLocation",169,bn,yY,Orn),okt;x(116,1,{116:1},k0t),h.a=!1,k(c7,"PortContext",116),x(1519,1,nn,qR),h.Ad=function(t){cet(l(t,319))},k(xD,V2t,1519),x(1520,1,Mn,VR),h.Mb=function(t){return!!l(t,116).c},k(xD,W2t,1520),x(1521,1,nn,RN),h.Ad=function(t){cet(l(t,116).c)},k(xD,"LabelPlacer/lambda$2$Type",1521);var _2e;x(1518,1,nn,ON),h.Ad=function(t){Ww(),gQt(l(t,116))},k(xD,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),x(795,1,nn,mfe),h.Ad=function(t){Cen(this.b,this.c,this.a,l(t,190))},h.a=!1,h.c=!1,k(xD,"NodeLabelCellCreator/lambda$0$Type",795),x(1517,1,nn,EYe),h.Ad=function(t){yQt(this.a,l(t,190))},k(xD,"PortContextCreator/lambda$0$Type",1517);var w$;x(1889,1,{},go),k(gx,"GreedyRectangleStripOverlapRemover",1889),x(1890,1,Un,Fu),h.Le=function(t,r){return cnn(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),x(1843,1,{},RZe),h.a=5,h.e=0,k(gx,"RectangleStripOverlapRemover",1843),x(1844,1,Un,Fl),h.Le=function(t,r){return unn(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),x(1846,1,Un,Af),h.Le=function(t,r){return Vsn(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),x(414,23,{3:1,34:1,23:1,414:1},s8);var QD,oee,see,eL,skt=fn(gx,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,bn,fln,Mrn),akt;x(228,1,{228:1},YV),k(gx,"RectangleStripOverlapRemover/RectangleNode",228),x(1845,1,nn,SYe),h.Ad=function(t){dmn(this.a,l(t,228))},k(gx,"RectangleStripOverlapRemover/lambda$1$Type",1845);var ckt=!1,vI,x2e;x(1815,1,nn,Z2),h.Ad=function(t){$vt(l(t,227))},k(gT,"DepthFirstCompaction/0methodref$compactTree$Type",1815),x(817,1,nn,wue),h.Ad=function(t){van(this.a,l(t,227))},k(gT,"DepthFirstCompaction/lambda$1$Type",817),x(1816,1,nn,iot),h.Ad=function(t){Q1n(this.a,this.b,this.c,l(t,227))},k(gT,"DepthFirstCompaction/lambda$2$Type",1816);var EI,k2e;x(68,1,{68:1},Cct),k(gT,"Node",68),x(1191,1,{},crt),k(gT,"ScanlineOverlapCheck",1191),x(1192,1,{690:1},Vat),h._e=function(t){Znn(this,l(t,445))},k(gT,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),x(1193,1,Un,pl),h.Le=function(t,r){return jgn(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),x(445,1,{445:1},Ile),h.a=!1,k(gT,"ScanlineOverlapCheck/Timestamp",445),x(1194,1,Un,sh),h.Le=function(t,r){return p0n(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),x(549,1,{},Vm),k("org.eclipse.elk.alg.common.utils","SVGImage",549),x(755,1,{},ah),k(LX,Twe,755),x(1176,1,Un,Yh),h.Le=function(t,r){return zvn(l(t,238),l(r,238))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(LX,J2t,1176),x(1177,1,nn,gtt),h.Ad=function(t){nun(this.b,this.a,l(t,254))},k(LX,Awe,1177),x(207,1,im),k(ME,"AbstractLayoutProvider",207),x(733,207,im,Pue),h.kf=function(t,r){mwt(this,t,r)},k(LX,"ForceLayoutProvider",733);var uCn=Hr(kD,X2t);x(151,1,{3:1,105:1,151:1},Q2),h.of=function(t,r){return C6(this,t,r)},h.lf=function(){return Jot(this)},h.mf=function(t){return F(this,t)},h.nf=function(t){return br(this,t)},k(kD,"MapPropertyHolder",151),x(314,151,{3:1,314:1,105:1,151:1}),k(ND,"FParticle",314),x(254,314,{3:1,254:1,314:1,105:1,151:1},jst),h.Ib=function(){var t;return this.a?(t=_s(this.a.a,this,0),t>=0?"b"+t+"["+HW(this.a)+"]":"b["+HW(this.a)+"]"):"b_"+s0(this)},k(ND,"FBendpoint",254),x(292,151,{3:1,292:1,105:1,151:1},Iit),h.Ib=function(){return HW(this)},k(ND,"FEdge",292),x(238,151,{3:1,238:1,105:1,151:1},XP);var lCn=k(ND,"FGraph",238);x(448,314,{3:1,448:1,314:1,105:1,151:1},Uut),h.Ib=function(){return this.b==null||this.b.length==0?"l["+HW(this.a)+"]":"l_"+this.b},k(ND,"FLabel",448),x(156,314,{3:1,156:1,314:1,105:1,151:1},urt),h.Ib=function(){return Whe(this)},h.a=0,k(ND,"FNode",156),x(2079,1,{}),h.qf=function(t){A0e(this,t)},h.rf=function(){X1t(this)},h.d=0,k(_we,"AbstractForceModel",2079),x(638,2079,{638:1},Uht),h.pf=function(t,r){var o,a,u,f,p;return zvt(this.f,t,r),u=Di(Ao(r.d),t.d),p=b.Math.sqrt(u.a*u.a+u.b*u.b),a=b.Math.max(0,p-O3(t.e)/2-O3(r.e)/2),o=m0t(this.e,t,r),o>0?f=-$sn(a,this.c)*o:f=Tnn(a,this.b)*l(F(t,(ed(),AT)),15).a,tp(u,f/p),u},h.qf=function(t){A0e(this,t),this.a=l(F(t,(ed(),v$)),15).a,this.c=ce(le(F(t,E$))),this.b=ce(le(F(t,cee)))},h.sf=function(t){return t0&&(f-=OQt(a,this.a)*o),tp(u,f*this.b/p),u},h.qf=function(t){var r,o,a,u,f,p,m;for(A0e(this,t),this.b=ce(le(F(t,(ed(),uee)))),this.c=this.b/l(F(t,v$),15).a,a=t.e.c.length,f=0,u=0,m=new V(t.e);m.a0},h.a=0,h.b=0,h.c=0,k(_we,"FruchtermanReingoldModel",639);var qE=Hr(Ns,"ILayoutMetaDataProvider");x(852,1,td,EWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,u7),""),"Force Model"),"Determines the model for force calculation."),N2e),(_1(),$r)),C2e),lt((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xwe),""),"Iterations"),"The number of iterations on the force model."),Oe(300)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kwe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Oe(0)),vo),_i),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,MX),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Hf),Qi),fi),lt(xt)))),zr(t,MX,u7,gkt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,PX),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),fi),lt(xt)))),zr(t,PX,u7,fkt),DEt((new TWe,t))};var ukt,lkt,N2e,dkt,fkt,hkt,pkt,gkt;k(VC,"ForceMetaDataProvider",852),x(429,23,{3:1,34:1,23:1,429:1},Nle);var aee,y$,C2e=fn(VC,"ForceModelStrategy",429,bn,xcn,jrn),bkt;x(993,1,td,TWe),h.tf=function(t){DEt(t)};var mkt,wkt,I2e,v$,R2e,ykt,vkt,Ekt,Skt,O2e,Tkt,D2e,L2e,Akt,AT,_kt,cee,M2e,xkt,kkt,E$,uee,Nkt,Ckt,Ikt,P2e,Rkt;k(VC,"ForceOptions",993),x(994,1,{},Wm),h.uf=function(){var t;return t=new Pue,t},h.vf=function(t){},k(VC,"ForceOptions/ForceFactory",994);var tL,SI,_T,S$;x(853,1,td,AWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cwe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Lt(),!1)),(_1(),xi)),Yr),lt((Jd(),ri))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iwe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),fi),xr(xt,Z(X(uf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rwe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),j2e),$r),G2e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Owe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Hf),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Dwe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Oe(ar)),vo),_i),lt(xt)))),sEt((new _We,t))};var Okt,Dkt,j2e,Lkt,Mkt,Pkt;k(VC,"StressMetaDataProvider",853),x(997,1,td,_We),h.tf=function(t){sEt(t)};var T$,F2e,$2e,B2e,U2e,H2e,jkt,Fkt,$kt,Bkt,z2e,Ukt;k(VC,"StressOptions",997),x(998,1,{},r9),h.uf=function(){var t;return t=new Rit,t},h.vf=function(t){},k(VC,"StressOptions/StressFactory",998),x(1091,207,im,Rit),h.kf=function(t,r){var o,a,u,f,p;for(r.Tg(nSt,1),Ye(Ke(ve(t,(G6(),U2e))))?Ye(Ke(ve(t,z2e)))||P3((o=new OA((n1(),new Yp(t))),o)):mwt(new Pue,t,r.dh(1)),u=hpt(t),a=pvt(this.a,u),p=a.Jc();p.Ob();)f=l(p.Pb(),238),!(f.e.c.length<=1)&&(mxn(this.b,f),$En(this.b),La(f.d,new iG));u=IEt(a),$Et(u),r.Ug()},k(f7,"StressLayoutProvider",1091),x(1092,1,nn,iG),h.Ad=function(t){D0e(l(t,448))},k(f7,"StressLayoutProvider/lambda$0$Type",1092),x(995,1,{},AZe),h.c=0,h.e=0,h.g=0,k(f7,"StressMajorization",995),x(385,23,{3:1,34:1,23:1,385:1},Dq);var lee,dee,fee,G2e=fn(f7,"StressMajorization/Dimension",385,bn,run,Frn),Hkt;x(996,1,Un,TYe),h.Le=function(t,r){return prn(this.a,l(t,156),l(r,156))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(f7,"StressMajorization/lambda$0$Type",996),x(1173,1,{},zct),k(wT,"ElkLayered",1173),x(1174,1,nn,AYe),h.Ad=function(t){xvn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$0$Type",1174),x(1175,1,nn,_Ye),h.Ad=function(t){hrn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$1$Type",1175),x(1258,1,{},drt);var zkt,Gkt,qkt;k(wT,"GraphConfigurator",1258),x(764,1,nn,yue),h.Ad=function(t){bmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$0$Type",764),x(765,1,{},i9),h.Kb=function(t){return bbe(),new vt(null,new St(l(t,26).a,16))},k(wT,"GraphConfigurator/lambda$1$Type",765),x(766,1,nn,vue),h.Ad=function(t){bmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$2$Type",766),x(1090,207,im,kZe),h.kf=function(t,r){var o;o=Y_n(new DZe,t),me(ve(t,(Ue(),Yy)))===me((pp(),Ig))?Ggn(this.a,o,r):MEn(this.a,o,r),r.Zg()||TEt(new SWe,o)},k(wT,"LayeredLayoutProvider",1090),x(364,23,{3:1,34:1,23:1,364:1},pO);var id,kh,la,da,zo,q2e=fn(wT,"LayeredPhases",364,bn,udn,$rn),Vkt;x(1700,1,{},nht),h.i=0;var Wkt;k(MD,"ComponentsToCGraphTransformer",1700);var Kkt;x(1701,1,{},oG),h.wf=function(t,r){return b.Math.min(t.a!=null?ce(t.a):t.c.i,r.a!=null?ce(r.a):r.c.i)},h.xf=function(t,r){return b.Math.min(t.a!=null?ce(t.a):t.c.i,r.a!=null?ce(r.a):r.c.i)},k(MD,"ComponentsToCGraphTransformer/1",1701),x(84,1,{84:1}),h.i=0,h.k=!0,h.o=Li;var hee=k(KC,"CNode",84);x(463,84,{463:1,84:1},Dde,q1e),h.Ib=function(){return""},k(MD,"ComponentsToCGraphTransformer/CRectNode",463),x(1669,1,{},sG);var pee,gee;k(MD,"OneDimensionalComponentsCompaction",1669),x(1670,1,{},o9),h.Kb=function(t){return Vcn(l(t,49))},h.Fb=function(t){return this===t},k(MD,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),x(1671,1,{},s9),h.Kb=function(t){return Ygn(l(t,49))},h.Fb=function(t){return this===t},k(MD,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),x(1703,1,{},zst),k(KC,"CGraph",1703),x(197,1,{197:1},bY),h.b=0,h.c=0,h.e=0,h.g=!0,h.i=Li,k(KC,"CGroup",197),x(1702,1,{},c9),h.wf=function(t,r){return b.Math.max(t.a!=null?ce(t.a):t.c.i,r.a!=null?ce(r.a):r.c.i)},h.xf=function(t,r){return b.Math.max(t.a!=null?ce(t.a):t.c.i,r.a!=null?ce(r.a):r.c.i)},k(KC,D2t,1702),x(1704,1,{},y0t),h.d=!1;var Ykt,bee=k(KC,P2t,1704);x(1705,1,{},fG),h.Kb=function(t){return mle(),Lt(),l(l(t,49).a,84).d.e!=0},h.Fb=function(t){return this===t},k(KC,j2t,1705),x(825,1,{},Gfe),h.a=!1,h.b=!1,h.c=!1,h.d=!1,k(KC,F2t,825),x(1885,1,{},ast),k(h7,$2t,1885);var nL=Hr(om,R2t);x(1886,1,{378:1},qat),h._e=function(t){GSn(this,l(t,468))},k(h7,B2t,1886),x(1887,1,Un,hG),h.Le=function(t,r){return Man(l(t,84),l(r,84))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(h7,U2t,1887),x(468,1,{468:1},Rle),h.a=!1,k(h7,H2t,468),x(1888,1,Un,pG),h.Le=function(t,r){return g0n(l(t,468),l(r,468))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(h7,z2t,1888),x(148,1,{148:1},qA,Lfe),h.Fb=function(t){var r;return t==null||dCn!=ru(t)?!1:(r=l(t,148),ia(this.c,r.c)&&ia(this.d,r.d))},h.Hb=function(){return $j(Z(X(Ri,1),It,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 dCn=k(om,"Point",148);x(413,23,{3:1,34:1,23:1,413:1},a8);var X0,By,VE,Uy,Jkt=fn(om,"Point/Quadrant",413,bn,dln,Prn),Xkt;x(1691,1,{},NZe),h.b=null,h.c=null,h.d=null,h.e=null,h.f=null;var Zkt,Qkt,eNt,tNt,nNt;k(om,"RectilinearConvexHull",1691),x(576,1,{378:1},sF),h._e=function(t){sfn(this,l(t,148))},h.b=0;var V2e;k(om,"RectilinearConvexHull/MaximalElementsEventHandler",576),x(1693,1,Un,aG),h.Le=function(t,r){return Pan(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),x(1692,1,{378:1},lft),h._e=function(t){sSn(this,l(t,148))},h.a=0,h.b=null,h.c=null,h.d=null,h.e=null,k(om,"RectilinearConvexHull/RectangleEventHandler",1692),x(1694,1,Un,cG),h.Le=function(t,r){return Fun(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),x(1695,1,Un,a9),h.Le=function(t,r){return $un(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),x(1696,1,Un,uG),h.Le=function(t,r){return Uun(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),x(1697,1,Un,lG),h.Le=function(t,r){return Bun(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),x(1698,1,Un,dG),h.Le=function(t,r){return Zwn(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),x(1699,1,{},Nct),k(om,"Scanline",1699),x(2083,1,{}),k(rf,"AbstractGraphPlacer",2083),x(337,1,{337:1},tit),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,u;for(r=l(F(t,(Ie(),_p)),24),u=l(yr(_r,r),24),a=u.Jc();a.Ob();)if(o=l(a.Pb(),24),!l(yr(this.b,o),16).dc())return!1;return!0};var _r;k(rf,"ComponentGroup",337),x(773,2083,{},jue),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),u=b.Math.max(u,T+v.a),m=b.Math.max(m,v.b),T+=v.a+a;r.f.a=u,r.f.b=N+m},h.Hf=function(t,r){var o,a,u,f,p;if(me(F(r,(Ue(),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(),Vt))||y&&l(F(y,(Ie(),_p)),24).Gc((He(),Qt))||l(F(f,(Ie(),_p)),24).Gc((He(),Wt)))&&(R=N,M+=m+a,m=0),v=f.c,l(F(f,(Ie(),_p)),24).Gc((He(),Vt))&&(R=u+a),ex(f,R+v.a,M+v.b),u=b.Math.max(u,R+T.a),l(F(f,_p),24).Gc(dn)&&(N=b.Math.max(N,R+T.a+a)),wd(v),m=b.Math.max(m,T.b),R+=T.a+a,y=f;r.f.a=u,r.f.b=M+m},h.Hf=function(t,r){},k(rf,"ModelOrderRowGraphPlacer",1289),x(1287,1,Un,wG),h.Le=function(t,r){return Qhn(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 iNt;x(1257,1,Uf,u9),h.Lb=function(t){var r;return r=l(F(l(t,253).b,(Ue(),as)),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,(Ue(),as)),79),!!r&&r.b!=0},k(p7,"CompoundGraphPostprocessor/1",1257),x(1256,1,kr,LZe),h.If=function(t,r){D1t(this,l(t,37),r)},k(p7,"CompoundGraphPreprocessor",1256),x(447,1,{447:1},Sgt),h.c=!1,k(p7,"CompoundGraphPreprocessor/ExternalPort",447),x(253,1,{253:1},Y8),h.Ib=function(){return SV(this.c)+":"+h0t(this.b)},k(p7,"CrossHierarchyEdge",253),x(771,1,Un,Eue),h.Le=function(t,r){return Bmn(this,l(t,253),l(r,253))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(p7,"CrossHierarchyEdgeComparator",771),x(248,151,{3:1,248:1,105:1,151:1}),h.p=0,k(ua,"LGraphElement",248),x(17,248,{3:1,17:1,248:1,105:1,151:1},p0),h.Ib=function(){return h0t(this)};var zx=k(ua,"LEdge",17);x(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},ige),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 oNt=k(ua,"LGraph",37),sNt;x(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 br(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(ua,"LGraphAdapters/AbstractLShapeAdapter",662),x(467,1,{845:1},MN),h.Pf=function(){var t,r;if(!this.b)for(this.b=uh(this.a.b.c.length),r=new V(this.a.b);r.a0&&Kpt((Jt(r-1,t.length),t.charCodeAt(r-1)),cSt);)--r;if(f> ",t),gF(o)),zn(ba((t.a+="[",t),o.i),"]")),t.a},h.c=!0,h.d=!1;var X2e,Z2e,Q2e,eSe,tSe,nSe,cNt=k(ua,"LPort",12);x(404,1,Eh,DA),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.e),new xYe(t)},k(ua,"LPort/1",404),x(1285,1,Wi,xYe),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(ua,"LPort/1/1",1285),x(366,1,Eh,tS),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.g),new Sue(t)},k(ua,"LPort/2",366),x(770,1,Wi,Sue),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(ua,"LPort/2/1",770),x(1278,1,Eh,mtt),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new Vd(this)},k(ua,"LPort/CombineIter",1278),x(210,1,Wi,Vd),h.Nb=function(t){so(this,t)},h.Qb=function(){VQe()},h.Ob=function(){return v3(this)},h.Pb=function(){return Ts(this.a)?q(this.a):q(this.b)},k(ua,"LPort/CombineIter/1",210),x(1279,1,Uf,vG),h.Lb=function(t){return Sst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).g.c.length!=0},k(ua,"LPort/lambda$0$Type",1279),x(1280,1,Uf,EG),h.Lb=function(t){return Tst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).e.c.length!=0},k(ua,"LPort/lambda$1$Type",1280),x(1281,1,Uf,SG),h.Lb=function(t){return bc(),l(t,12).j==(He(),Vt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).j==(He(),Vt)},k(ua,"LPort/lambda$2$Type",1281),x(1282,1,Uf,TG),h.Lb=function(t){return bc(),l(t,12).j==(He(),Qt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).j==(He(),Qt)},k(ua,"LPort/lambda$3$Type",1282),x(1283,1,Uf,AG),h.Lb=function(t){return bc(),l(t,12).j==(He(),dn)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).j==(He(),dn)},k(ua,"LPort/lambda$4$Type",1283),x(1284,1,Uf,DN),h.Lb=function(t){return bc(),l(t,12).j==(He(),Wt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bc(),l(t,12).j==(He(),Wt)},k(ua,"LPort/lambda$5$Type",1284),x(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(ua,"Layer",26),x(1676,1,{},pdt),h.b=0,k(ua,"Tarjan",1676),x(1294,1,{},DZe),k(Eg,fSt,1294),x(1298,1,{},_G),h.Kb=function(t){return Jo(l(t,83))},k(Eg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),x(1301,1,{},f9),h.Kb=function(t){return Jo(l(t,83))},k(Eg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),x(1295,1,nn,kYe),h.Ad=function(t){I0t(this.a,l(t,127))},k(Eg,Awe,1295),x(1296,1,nn,NYe),h.Ad=function(t){I0t(this.a,l(t,127))},k(Eg,hSt,1296),x(1297,1,{},xG),h.Kb=function(t){return new vt(null,new St(a_(l(t,74)),16))},k(Eg,pSt,1297),x(1299,1,Mn,CYe),h.Mb=function(t){return gtn(this.a,l(t,19))},k(Eg,gSt,1299),x(1300,1,{},kG),h.Kb=function(t){return new vt(null,new St(Aan(l(t,74)),16))},k(Eg,"ElkGraphImporter/lambda$5$Type",1300),x(1302,1,Mn,IYe),h.Mb=function(t){return btn(this.a,l(t,19))},k(Eg,"ElkGraphImporter/lambda$7$Type",1302),x(1303,1,Mn,KR),h.Mb=function(t){return Van(l(t,74))},k(Eg,"ElkGraphImporter/lambda$8$Type",1303),x(1273,1,{},SWe);var uNt;k(Eg,"ElkGraphLayoutTransferrer",1273),x(1274,1,Mn,RYe),h.Mb=function(t){return mrn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),x(1275,1,nn,OYe),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),x(1276,1,Mn,DYe),h.Mb=function(t){return Xnn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),x(1277,1,nn,LYe),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),x(813,1,{},ofe),k(Xt,"BiLinkedHashMultiMap",813),x(1528,1,kr,NG),h.If=function(t,r){vhn(l(t,37),r)},k(Xt,"CommentNodeMarginCalculator",1528),x(1529,1,{},CG),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"CommentNodeMarginCalculator/lambda$0$Type",1529),x(1530,1,nn,h9),h.Ad=function(t){V_n(l(t,9))},k(Xt,"CommentNodeMarginCalculator/lambda$1$Type",1530),x(1531,1,kr,c7e),h.If=function(t,r){XSn(l(t,37),r)},k(Xt,"CommentPostprocessor",1531),x(1532,1,kr,u7e),h.If=function(t,r){vNn(l(t,37),r)},k(Xt,"CommentPreprocessor",1532),x(1533,1,kr,l7e),h.If=function(t,r){lSn(l(t,37),r)},k(Xt,"ConstraintsPostprocessor",1533),x(1534,1,kr,d7e),h.If=function(t,r){npn(l(t,37),r)},k(Xt,"EdgeAndLayerConstraintEdgeReverser",1534),x(1535,1,kr,f7e),h.If=function(t,r){v1n(l(t,37),r)},k(Xt,"EndLabelPostprocessor",1535),x(1536,1,{},h7e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"EndLabelPostprocessor/lambda$0$Type",1536),x(1537,1,Mn,p7e),h.Mb=function(t){return idn(l(t,9))},k(Xt,"EndLabelPostprocessor/lambda$1$Type",1537),x(1538,1,nn,g7e),h.Ad=function(t){b0n(l(t,9))},k(Xt,"EndLabelPostprocessor/lambda$2$Type",1538),x(1539,1,kr,b7e),h.If=function(t,r){Qyn(l(t,37),r)},k(Xt,"EndLabelPreprocessor",1539),x(1540,1,{},m7e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"EndLabelPreprocessor/lambda$0$Type",1540),x(1541,1,nn,aot),h.Ad=function(t){Ien(this.a,this.b,this.c,l(t,9))},h.a=0,h.b=0,h.c=!1,k(Xt,"EndLabelPreprocessor/lambda$1$Type",1541),x(1542,1,Mn,w7e),h.Mb=function(t){return me(F(l(t,70),(Ue(),Yf)))===me((Kd(),vk))},k(Xt,"EndLabelPreprocessor/lambda$2$Type",1542),x(1543,1,nn,MYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Xt,"EndLabelPreprocessor/lambda$3$Type",1543),x(1544,1,Mn,y7e),h.Mb=function(t){return me(F(l(t,70),(Ue(),Yf)))===me((Kd(),pv))},k(Xt,"EndLabelPreprocessor/lambda$4$Type",1544),x(1545,1,nn,PYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Xt,"EndLabelPreprocessor/lambda$5$Type",1545),x(1593,1,kr,kWe),h.If=function(t,r){Cgn(l(t,37),r)};var lNt;k(Xt,"EndLabelSorter",1593),x(1594,1,Un,v7e),h.Le=function(t,r){return abn(l(t,458),l(r,458))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"EndLabelSorter/1",1594),x(458,1,{458:1},Pat),k(Xt,"EndLabelSorter/LabelGroup",458),x(1595,1,{},E7e),h.Kb=function(t){return dO(),new vt(null,new St(l(t,26).a,16))},k(Xt,"EndLabelSorter/lambda$0$Type",1595),x(1596,1,Mn,S7e),h.Mb=function(t){return dO(),l(t,9).k==(Ht(),Xr)},k(Xt,"EndLabelSorter/lambda$1$Type",1596),x(1597,1,nn,T7e),h.Ad=function(t){fyn(l(t,9))},k(Xt,"EndLabelSorter/lambda$2$Type",1597),x(1598,1,Mn,A7e),h.Mb=function(t){return dO(),me(F(l(t,70),(Ue(),Yf)))===me((Kd(),pv))},k(Xt,"EndLabelSorter/lambda$3$Type",1598),x(1599,1,Mn,_7e),h.Mb=function(t){return dO(),me(F(l(t,70),(Ue(),Yf)))===me((Kd(),vk))},k(Xt,"EndLabelSorter/lambda$4$Type",1599),x(1546,1,kr,x7e),h.If=function(t,r){uxn(this,l(t,37))},h.b=0,h.c=0,k(Xt,"FinalSplineBendpointsCalculator",1546),x(1547,1,{},k7e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),x(1548,1,{},N7e),h.Kb=function(t){return new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(Xt,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),x(1549,1,Mn,C7e),h.Mb=function(t){return!fo(l(t,17))},k(Xt,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),x(1550,1,Mn,I7e),h.Mb=function(t){return br(l(t,17),(Ie(),pm))},k(Xt,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),x(1551,1,nn,jYe),h.Ad=function(t){gAn(this.a,l(t,134))},k(Xt,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),x(1552,1,nn,R7e),h.Ad=function(t){vC(l(t,17).a)},k(Xt,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),x(797,1,kr,Tue),h.If=function(t,r){nkn(this,l(t,37),r)},k(Xt,"GraphTransformer",797),x(506,23,{3:1,34:1,23:1,506:1},Ole);var vee,iL,dNt=fn(Xt,"GraphTransformer/Mode",506,bn,kcn,Urn),fNt;x(1553,1,kr,O7e),h.If=function(t,r){T2n(l(t,37),r)},k(Xt,"HierarchicalNodeResizingProcessor",1553),x(1554,1,kr,D7e),h.If=function(t,r){shn(l(t,37),r)},k(Xt,"HierarchicalPortConstraintProcessor",1554),x(1555,1,Un,L7e),h.Le=function(t,r){return Tbn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"HierarchicalPortConstraintProcessor/NodeComparator",1555),x(1556,1,kr,M7e),h.If=function(t,r){c_n(l(t,37),r)},k(Xt,"HierarchicalPortDummySizeProcessor",1556),x(1557,1,kr,P7e),h.If=function(t,r){ETn(this,l(t,37),r)},h.a=0,k(Xt,"HierarchicalPortOrthogonalEdgeRouter",1557),x(1558,1,Un,j7e),h.Le=function(t,r){return ann(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"HierarchicalPortOrthogonalEdgeRouter/1",1558),x(1559,1,Un,F7e),h.Le=function(t,r){return efn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"HierarchicalPortOrthogonalEdgeRouter/2",1559),x(1560,1,kr,$7e),h.If=function(t,r){Ywn(l(t,37),r)},k(Xt,"HierarchicalPortPositionProcessor",1560),x(1561,1,kr,xWe),h.If=function(t,r){r3n(this,l(t,37))},h.a=0,h.c=0;var A$,_$;k(Xt,"HighDegreeNodeLayeringProcessor",1561),x(573,1,{573:1},B7e),h.b=-1,h.d=-1,k(Xt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),x(1562,1,{},U7e),h.Kb=function(t){return $O(),si(l(t,9))},h.Fb=function(t){return this===t},k(Xt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),x(1563,1,{},H7e),h.Kb=function(t){return $O(),Or(l(t,9))},h.Fb=function(t){return this===t},k(Xt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),x(1569,1,kr,z7e),h.If=function(t,r){QAn(this,l(t,37),r)},k(Xt,"HyperedgeDummyMerger",1569),x(798,1,{},Sfe),h.a=!1,h.b=!1,h.c=!1,k(Xt,"HyperedgeDummyMerger/MergeState",798),x(1570,1,{},G7e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"HyperedgeDummyMerger/lambda$0$Type",1570),x(1571,1,{},q7e),h.Kb=function(t){return new vt(null,new St(l(t,9).j,16))},k(Xt,"HyperedgeDummyMerger/lambda$1$Type",1571),x(1572,1,nn,V7e),h.Ad=function(t){l(t,12).p=-1},k(Xt,"HyperedgeDummyMerger/lambda$2$Type",1572),x(1573,1,kr,W7e),h.If=function(t,r){ZAn(l(t,37),r)},k(Xt,"HypernodesProcessor",1573),x(1574,1,kr,K7e),h.If=function(t,r){a_n(l(t,37),r)},k(Xt,"InLayerConstraintProcessor",1574),x(1575,1,kr,Y7e),h.If=function(t,r){Rhn(l(t,37),r)},k(Xt,"InnermostNodeMarginCalculator",1575),x(1576,1,kr,J7e),h.If=function(t,r){bNn(this,l(t,37))},h.a=Li,h.b=Li,h.c=Kr,h.d=Kr;var fCn=k(Xt,"InteractiveExternalPortPositioner",1576);x(1577,1,{},X7e),h.Kb=function(t){return l(t,17).d.i},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$0$Type",1577),x(1578,1,{},FYe),h.Kb=function(t){return lnn(this.a,le(t))},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$1$Type",1578),x(1579,1,{},Z7e),h.Kb=function(t){return l(t,17).c.i},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$2$Type",1579),x(1580,1,{},$Ye),h.Kb=function(t){return dnn(this.a,le(t))},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$3$Type",1580),x(1581,1,{},BYe),h.Kb=function(t){return srn(this.a,le(t))},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$4$Type",1581),x(1582,1,{},UYe),h.Kb=function(t){return arn(this.a,le(t))},h.Fb=function(t){return this===t},k(Xt,"InteractiveExternalPortPositioner/lambda$5$Type",1582),x(80,23,{3:1,34:1,23:1,80:1,177:1},wi),h.bg=function(){switch(this.g){case 15:return new yUe;case 22:return new vUe;case 48:return new SUe;case 29:case 36:return new u$e;case 33:return new NG;case 43:return new c7e;case 1:return new u7e;case 42:return new l7e;case 57:return new Tue((E_(),iL));case 0:return new Tue((E_(),vee));case 2:return new d7e;case 55:return new f7e;case 34:return new b7e;case 52:return new x7e;case 56:return new O7e;case 13:return new D7e;case 39:return new M7e;case 45:return new P7e;case 41:return new $7e;case 9:return new xWe;case 50:return new Grt;case 38:return new z7e;case 44:return new W7e;case 28:return new K7e;case 31:return new Y7e;case 3:return new J7e;case 18:return new Q7e;case 30:return new e$e;case 5:return new NWe;case 51:return new i$e;case 35:return new CWe;case 37:return new l$e;case 53:return new kWe;case 11:return new d$e;case 7:return new IWe;case 40:return new f$e;case 46:return new h$e;case 16:return new p$e;case 10:return new Rtt;case 49:return new w$e;case 21:return new y$e;case 23:return new j9((Kb(),XI));case 8:return new E$e;case 12:return new T$e;case 4:return new A$e;case 19:return new RWe;case 17:return new L$e;case 54:return new M$e;case 6:return new W$e;case 25:return new jZe;case 26:return new wUe;case 47:return new B$e;case 32:return new Mit;case 14:return new tBe;case 27:return new _Ue;case 20:return new sBe;case 24:return new j9((Kb(),RB));default:throw Y(new jt(BX+(this.f!=null?this.f:""+this.g)))}};var rSe,iSe,oSe,sSe,aSe,cSe,uSe,lSe,dSe,fSe,hSe,WE,x$,k$,pSe,gSe,bSe,mSe,wSe,ySe,vSe,_I,ESe,SSe,TSe,ASe,_Se,Eee,N$,C$,xSe,I$,R$,O$,Gx,Hy,zy,kSe,D$,L$,NSe,M$,P$,CSe,ISe,RSe,OSe,j$,See,xT,F$,$$,B$,U$,DSe,LSe,MSe,PSe,hCn=fn(Xt,UX,80,bn,Iwt,Hrn),hNt;x(1583,1,kr,Q7e),h.If=function(t,r){hNn(l(t,37),r)},k(Xt,"InvertedPortProcessor",1583),x(1584,1,kr,e$e),h.If=function(t,r){uAn(l(t,37),r)},k(Xt,"LabelAndNodeSizeProcessor",1584),x(1585,1,Mn,t$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},k(Xt,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),x(1586,1,Mn,n$e),h.Mb=function(t){return l(t,9).k==(Ht(),yi)},k(Xt,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),x(1587,1,nn,hot),h.Ad=function(t){Ren(this.b,this.a,this.c,l(t,9))},h.a=!1,h.c=!1,k(Xt,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),x(1588,1,kr,NWe),h.If=function(t,r){qkn(l(t,37),r)};var pNt;k(Xt,"LabelDummyInserter",1588),x(1589,1,Uf,r$e),h.Lb=function(t){return me(F(l(t,70),(Ue(),Yf)))===me((Kd(),yk))},h.Fb=function(t){return this===t},h.Mb=function(t){return me(F(l(t,70),(Ue(),Yf)))===me((Kd(),yk))},k(Xt,"LabelDummyInserter/1",1589),x(1590,1,kr,i$e),h.If=function(t,r){Rkn(l(t,37),r)},k(Xt,"LabelDummyRemover",1590),x(1591,1,Mn,o$e),h.Mb=function(t){return Ye(Ke(F(l(t,70),(Ue(),o2))))},k(Xt,"LabelDummyRemover/lambda$0$Type",1591),x(1344,1,kr,CWe),h.If=function(t,r){_kn(this,l(t,37),r)},h.a=null;var Tee;k(Xt,"LabelDummySwitcher",1344),x(295,1,{295:1},xyt),h.c=0,h.d=null,h.f=0,k(Xt,"LabelDummySwitcher/LabelDummyInfo",295),x(1345,1,{},s$e),h.Kb=function(t){return zS(),new vt(null,new St(l(t,26).a,16))},k(Xt,"LabelDummySwitcher/lambda$0$Type",1345),x(1346,1,Mn,a$e),h.Mb=function(t){return zS(),l(t,9).k==(Ht(),ta)},k(Xt,"LabelDummySwitcher/lambda$1$Type",1346),x(1347,1,{},HYe),h.Kb=function(t){return Jnn(this.a,l(t,9))},k(Xt,"LabelDummySwitcher/lambda$2$Type",1347),x(1348,1,nn,zYe),h.Ad=function(t){ran(this.a,l(t,295))},k(Xt,"LabelDummySwitcher/lambda$3$Type",1348),x(1349,1,Un,c$e),h.Le=function(t,r){return Dsn(l(t,295),l(r,295))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"LabelDummySwitcher/lambda$4$Type",1349),x(796,1,kr,u$e),h.If=function(t,r){Odn(l(t,37),r)},k(Xt,"LabelManagementProcessor",796),x(1592,1,kr,l$e),h.If=function(t,r){BSn(l(t,37),r)},k(Xt,"LabelSideSelector",1592),x(1600,1,kr,d$e),h.If=function(t,r){k_n(l(t,37),r)},k(Xt,"LayerConstraintPostprocessor",1600),x(1601,1,kr,IWe),h.If=function(t,r){vEn(l(t,37),r)};var jSe;k(Xt,"LayerConstraintPreprocessor",1601),x(368,23,{3:1,34:1,23:1,368:1},u8);var oL,H$,z$,Aee,gNt=fn(Xt,"LayerConstraintPreprocessor/HiddenNodeConnections",368,bn,gln,zrn),bNt;x(1602,1,kr,f$e),h.If=function(t,r){Gxn(l(t,37),r)},k(Xt,"LayerSizeAndGraphHeightCalculator",1602),x(1603,1,kr,h$e),h.If=function(t,r){A2n(l(t,37),r)},k(Xt,"LongEdgeJoiner",1603),x(1604,1,kr,p$e),h.If=function(t,r){Exn(l(t,37),r)},k(Xt,"LongEdgeSplitter",1604),x(1605,1,kr,Rtt),h.If=function(t,r){oNn(this,l(t,37),r)},h.e=0,h.f=0,h.j=0,h.k=0,h.n=0,h.o=0;var mNt,wNt;k(Xt,"NodePromotion",1605),x(1606,1,Un,g$e),h.Le=function(t,r){return $pn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"NodePromotion/1",1606),x(1607,1,Un,b$e),h.Le=function(t,r){return Fpn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"NodePromotion/2",1607),x(1608,1,{},m$e),h.Kb=function(t){return l(t,49),J8(),Lt(),!0},h.Fb=function(t){return this===t},k(Xt,"NodePromotion/lambda$0$Type",1608),x(1609,1,{},GYe),h.Kb=function(t){return $cn(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Xt,"NodePromotion/lambda$1$Type",1609),x(1610,1,{},qYe),h.Kb=function(t){return Bcn(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Xt,"NodePromotion/lambda$2$Type",1610),x(1611,1,kr,w$e),h.If=function(t,r){KNn(l(t,37),r)},k(Xt,"NorthSouthPortPostprocessor",1611),x(1612,1,kr,y$e),h.If=function(t,r){e3n(l(t,37),r)},k(Xt,"NorthSouthPortPreprocessor",1612),x(1613,1,Un,v$e),h.Le=function(t,r){return rpn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"NorthSouthPortPreprocessor/lambda$0$Type",1613),x(1614,1,kr,E$e),h.If=function(t,r){HAn(l(t,37),r)},k(Xt,"PartitionMidprocessor",1614),x(1615,1,Mn,S$e),h.Mb=function(t){return br(l(t,9),(Ue(),Xy))},k(Xt,"PartitionMidprocessor/lambda$0$Type",1615),x(1616,1,nn,VYe),h.Ad=function(t){qan(this.a,l(t,9))},k(Xt,"PartitionMidprocessor/lambda$1$Type",1616),x(1617,1,kr,T$e),h.If=function(t,r){q2n(l(t,37),r)},k(Xt,"PartitionPostprocessor",1617),x(1618,1,kr,A$e),h.If=function(t,r){KTn(l(t,37),r)},k(Xt,"PartitionPreprocessor",1618),x(1619,1,Mn,_$e),h.Mb=function(t){return br(l(t,9),(Ue(),Xy))},k(Xt,"PartitionPreprocessor/lambda$0$Type",1619),x(1620,1,Mn,x$e),h.Mb=function(t){return br(l(t,9),(Ue(),Xy))},k(Xt,"PartitionPreprocessor/lambda$1$Type",1620),x(1621,1,{},k$e),h.Kb=function(t){return new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(Xt,"PartitionPreprocessor/lambda$2$Type",1621),x(1622,1,Mn,WYe),h.Mb=function(t){return ben(this.a,l(t,17))},k(Xt,"PartitionPreprocessor/lambda$3$Type",1622),x(1623,1,nn,N$e),h.Ad=function(t){gpn(l(t,17))},k(Xt,"PartitionPreprocessor/lambda$4$Type",1623),x(1624,1,Mn,KYe),h.Mb=function(t){return nan(this.a,l(t,9))},h.a=0,k(Xt,"PartitionPreprocessor/lambda$5$Type",1624),x(1625,1,kr,RWe),h.If=function(t,r){SAn(l(t,37),r)};var FSe,yNt,vNt,ENt,$Se,BSe;k(Xt,"PortListSorter",1625),x(1626,1,{},C$e),h.Kb=function(t){return N_(),l(t,12).e},k(Xt,"PortListSorter/lambda$0$Type",1626),x(1627,1,{},I$e),h.Kb=function(t){return N_(),l(t,12).g},k(Xt,"PortListSorter/lambda$1$Type",1627),x(1628,1,Un,R$e),h.Le=function(t,r){return Gut(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"PortListSorter/lambda$2$Type",1628),x(1629,1,Un,O$e),h.Le=function(t,r){return Omn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"PortListSorter/lambda$3$Type",1629),x(1630,1,Un,D$e),h.Le=function(t,r){return Qyt(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"PortListSorter/lambda$4$Type",1630),x(1631,1,kr,L$e),h.If=function(t,r){NEn(l(t,37),r)},k(Xt,"PortSideProcessor",1631),x(1632,1,kr,M$e),h.If=function(t,r){LTn(l(t,37),r)},k(Xt,"ReversedEdgeRestorer",1632),x(1637,1,kr,jZe),h.If=function(t,r){pmn(this,l(t,37),r)},k(Xt,"SelfLoopPortRestorer",1637),x(1638,1,{},P$e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"SelfLoopPortRestorer/lambda$0$Type",1638),x(1639,1,Mn,j$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},k(Xt,"SelfLoopPortRestorer/lambda$1$Type",1639),x(1640,1,Mn,F$e),h.Mb=function(t){return br(l(t,9),(Ie(),rw))},k(Xt,"SelfLoopPortRestorer/lambda$2$Type",1640),x(1641,1,{},$$e),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Xt,"SelfLoopPortRestorer/lambda$3$Type",1641),x(1642,1,nn,YYe),h.Ad=function(t){xyn(this.a,l(t,339))},k(Xt,"SelfLoopPortRestorer/lambda$4$Type",1642),x(799,1,nn,Dce),h.Ad=function(t){Fyn(l(t,108))},k(Xt,"SelfLoopPortRestorer/lambda$5$Type",799),x(1644,1,kr,B$e),h.If=function(t,r){xbn(l(t,37),r)},k(Xt,"SelfLoopPostProcessor",1644),x(1645,1,{},U$e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"SelfLoopPostProcessor/lambda$0$Type",1645),x(1646,1,Mn,H$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},k(Xt,"SelfLoopPostProcessor/lambda$1$Type",1646),x(1647,1,Mn,z$e),h.Mb=function(t){return br(l(t,9),(Ie(),rw))},k(Xt,"SelfLoopPostProcessor/lambda$2$Type",1647),x(1648,1,nn,G$e),h.Ad=function(t){D0n(l(t,9))},k(Xt,"SelfLoopPostProcessor/lambda$3$Type",1648),x(1649,1,{},q$e),h.Kb=function(t){return new vt(null,new St(l(t,108).f,1))},k(Xt,"SelfLoopPostProcessor/lambda$4$Type",1649),x(1650,1,nn,JYe),h.Ad=function(t){lln(this.a,l(t,342))},k(Xt,"SelfLoopPostProcessor/lambda$5$Type",1650),x(1651,1,Mn,V$e),h.Mb=function(t){return!!l(t,108).i},k(Xt,"SelfLoopPostProcessor/lambda$6$Type",1651),x(1652,1,nn,XYe),h.Ad=function(t){RQt(this.a,l(t,108))},k(Xt,"SelfLoopPostProcessor/lambda$7$Type",1652),x(1633,1,kr,W$e),h.If=function(t,r){c2n(l(t,37),r)},k(Xt,"SelfLoopPreProcessor",1633),x(1634,1,{},K$e),h.Kb=function(t){return new vt(null,new St(l(t,108).f,1))},k(Xt,"SelfLoopPreProcessor/lambda$0$Type",1634),x(1635,1,{},Y$e),h.Kb=function(t){return l(t,342).a},k(Xt,"SelfLoopPreProcessor/lambda$1$Type",1635),x(1636,1,nn,J$e),h.Ad=function(t){ztn(l(t,17))},k(Xt,"SelfLoopPreProcessor/lambda$2$Type",1636),x(1653,1,kr,Mit),h.If=function(t,r){uyn(this,l(t,37),r)},k(Xt,"SelfLoopRouter",1653),x(1654,1,{},X$e),h.Kb=function(t){return new vt(null,new St(l(t,26).a,16))},k(Xt,"SelfLoopRouter/lambda$0$Type",1654),x(1655,1,Mn,Z$e),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},k(Xt,"SelfLoopRouter/lambda$1$Type",1655),x(1656,1,Mn,Q$e),h.Mb=function(t){return br(l(t,9),(Ie(),rw))},k(Xt,"SelfLoopRouter/lambda$2$Type",1656),x(1657,1,{},eBe),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Xt,"SelfLoopRouter/lambda$3$Type",1657),x(1658,1,nn,wtt),h.Ad=function(t){$an(this.a,this.b,l(t,339))},k(Xt,"SelfLoopRouter/lambda$4$Type",1658),x(1659,1,kr,tBe),h.If=function(t,r){kSn(l(t,37),r)},k(Xt,"SemiInteractiveCrossMinProcessor",1659),x(1660,1,Mn,nBe),h.Mb=function(t){return l(t,9).k==(Ht(),Xr)},k(Xt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),x(1661,1,Mn,rBe),h.Mb=function(t){return Jot(l(t,9))._b((Ue(),ev))},k(Xt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),x(1662,1,Un,iBe),h.Le=function(t,r){return whn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Xt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),x(1663,1,{},oBe),h.Te=function(t,r){return Gan(l(t,9),l(r,9))},k(Xt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),x(1665,1,kr,sBe),h.If=function(t,r){ckn(l(t,37),r)},k(Xt,"SortByInputModelProcessor",1665),x(1666,1,Mn,aBe),h.Mb=function(t){return l(t,12).g.c.length!=0},k(Xt,"SortByInputModelProcessor/lambda$0$Type",1666),x(1667,1,nn,ZYe),h.Ad=function(t){zyn(this.a,l(t,12))},k(Xt,"SortByInputModelProcessor/lambda$1$Type",1667),x(1746,811,{},mht),h.bf=function(t){var r,o,a,u;switch(this.c=t,this.a.g){case 2:r=new je,ei(dr(new vt(null,new St(this.c.a.b,16)),new EBe),new Ttt(this,r)),X6(this,new uBe),La(r,new lBe),r.c.length=0,ei(dr(new vt(null,new St(this.c.a.b,16)),new dBe),new eJe(r)),X6(this,new fBe),La(r,new hBe),r.c.length=0,o=srt(CK(ny(new vt(null,new St(this.c.a.b,16)),new tJe(this))),new pBe),ei(new vt(null,new St(this.c.a.a,16)),new vtt(o,r)),X6(this,new bBe),La(r,new mBe),r.c.length=0;break;case 3:a=new je,X6(this,new cBe),u=srt(CK(ny(new vt(null,new St(this.c.a.b,16)),new QYe(this))),new gBe),ei(dr(new vt(null,new St(this.c.a.b,16)),new wBe),new Stt(u,a)),X6(this,new yBe),La(a,new vBe),a.c.length=0;break;default:throw Y(new TZe)}},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation",1746),x(1747,1,Uf,cBe),h.Lb=function(t){return se(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),x(1748,1,{},QYe),h.We=function(t){return bvn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),x(1756,1,r7,ytt),h.be=function(){bC(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),x(1758,1,Uf,uBe),h.Lb=function(t){return se(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),x(1759,1,nn,lBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),x(1760,1,Mn,dBe),h.Mb=function(t){return se(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),x(1762,1,nn,eJe),h.Ad=function(t){e1n(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),x(1761,1,r7,xtt),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),x(1763,1,Uf,fBe),h.Lb=function(t){return se(l(t,60).g,9)},h.Fb=function(t){return this===t},h.Mb=function(t){return se(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),x(1764,1,nn,hBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),x(1765,1,{},tJe),h.We=function(t){return mvn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),x(1766,1,{},pBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),x(1749,1,{},gBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),x(1768,1,nn,vtt),h.Ad=function(t){Tsn(this.a,this.b,l(t,321))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),x(1767,1,r7,Ett),h.be=function(){Z0t(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),x(1769,1,Uf,bBe),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),x(1770,1,nn,mBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),x(1750,1,Mn,wBe),h.Mb=function(t){return se(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),x(1752,1,nn,Stt),h.Ad=function(t){Asn(this.a,this.b,l(t,60))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),x(1751,1,r7,ktt),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),x(1753,1,Uf,yBe),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),x(1754,1,nn,vBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),x(1755,1,Mn,EBe),h.Mb=function(t){return se(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),x(1757,1,nn,Ttt),h.Ad=function(t){$fn(this.a,this.b,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),x(1564,1,kr,Grt),h.If=function(t,r){Axn(this,l(t,37),r)};var SNt;k(di,"HorizontalGraphCompactor",1564),x(1565,1,{},nJe),h.df=function(t,r){var o,a,u;return Upe(t,r)||(o=dE(t),a=dE(r),o&&o.k==(Ht(),yi)||a&&a.k==(Ht(),yi))?0:(u=l(F(this.a.a,(Ie(),n2)),317),pnn(u,o?o.k:(Ht(),bi),a?a.k:(Ht(),bi)))},h.ef=function(t,r){var o,a,u;return Upe(t,r)?1:(o=dE(t),a=dE(r),u=l(F(this.a.a,(Ie(),n2)),317),Lde(u,o?o.k:(Ht(),bi),a?a.k:(Ht(),bi)))},k(di,"HorizontalGraphCompactor/1",1565),x(1566,1,{},SBe),h.cf=function(t,r){return YN(),t.a.i==0},k(di,"HorizontalGraphCompactor/lambda$0$Type",1566),x(1567,1,{},rJe),h.cf=function(t,r){return Wan(this.a,t,r)},k(di,"HorizontalGraphCompactor/lambda$1$Type",1567),x(1713,1,{},Ydt);var TNt,ANt;k(di,"LGraphToCGraphTransformer",1713),x(1721,1,Mn,TBe),h.Mb=function(t){return t!=null},k(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),x(1714,1,{},ABe),h.Kb=function(t){return hu(),ms(F(l(l(t,60).g,9),(Ie(),wr)))},k(di,"LGraphToCGraphTransformer/lambda$0$Type",1714),x(1715,1,{},_Be),h.Kb=function(t){return hu(),lgt(l(l(t,60).g,157))},k(di,"LGraphToCGraphTransformer/lambda$1$Type",1715),x(1724,1,Mn,xBe),h.Mb=function(t){return hu(),se(l(t,60).g,9)},k(di,"LGraphToCGraphTransformer/lambda$10$Type",1724),x(1725,1,nn,kBe),h.Ad=function(t){Han(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$11$Type",1725),x(1726,1,Mn,NBe),h.Mb=function(t){return hu(),se(l(t,60).g,157)},k(di,"LGraphToCGraphTransformer/lambda$12$Type",1726),x(1730,1,nn,CBe),h.Ad=function(t){wgn(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$13$Type",1730),x(1727,1,nn,iJe),h.Ad=function(t){ltn(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$14$Type",1727),x(1728,1,nn,oJe),h.Ad=function(t){ftn(this.a,l(t,120))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$15$Type",1728),x(1729,1,nn,sJe),h.Ad=function(t){dtn(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$16$Type",1729),x(1731,1,{},IBe),h.Kb=function(t){return hu(),new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$17$Type",1731),x(1732,1,Mn,RBe),h.Mb=function(t){return hu(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$18$Type",1732),x(1733,1,nn,aJe),h.Ad=function(t){gfn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$19$Type",1733),x(1717,1,nn,cJe),h.Ad=function(t){Gun(this.a,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$2$Type",1717),x(1734,1,{},OBe),h.Kb=function(t){return hu(),new vt(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$20$Type",1734),x(1735,1,{},DBe),h.Kb=function(t){return hu(),new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$21$Type",1735),x(1736,1,{},LBe),h.Kb=function(t){return hu(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$22$Type",1736),x(1737,1,Mn,MBe),h.Mb=function(t){return gnn(l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$23$Type",1737),x(1738,1,nn,uJe),h.Ad=function(t){wvn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$24$Type",1738),x(1739,1,{},PBe),h.Kb=function(t){return hu(),new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$25$Type",1739),x(1740,1,Mn,jBe),h.Mb=function(t){return hu(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$26$Type",1740),x(1742,1,nn,lJe),h.Ad=function(t){chn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$27$Type",1742),x(1741,1,nn,dJe),h.Ad=function(t){nen(this.a,l(t,70))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$28$Type",1741),x(1716,1,nn,Att),h.Ad=function(t){zln(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$3$Type",1716),x(1718,1,{},FBe),h.Kb=function(t){return hu(),new vt(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$4$Type",1718),x(1719,1,{},$Be),h.Kb=function(t){return hu(),new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$5$Type",1719),x(1720,1,{},BBe),h.Kb=function(t){return hu(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$6$Type",1720),x(1722,1,nn,fJe),h.Ad=function(t){Cvn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$8$Type",1722),x(1723,1,nn,_tt),h.Ad=function(t){Ptn(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$9$Type",1723),x(1712,1,{},UBe),h.af=function(t){var r,o,a,u,f;for(this.a=t,this.d=new eq,this.c=we(A2e,It,126,this.a.a.a.c.length,0,1),this.b=0,o=new V(this.a.a.a);o.a=G&&(Fe(f,Oe(T)),oe=b.Math.max(oe,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/oe,1/r.b/m),M>a&&(a=M,o=f)}return o},h.ng=function(){return!1},k(zf,"MSDCutIndexHeuristic",810),x(1664,1,kr,_Ue),h.If=function(t,r){N_n(l(t,37),r)},k(zf,"SingleEdgeGraphWrapper",1664),x(233,23,{3:1,34:1,23:1,233:1},n3);var YE,Wx,Kx,qy,xI,JE,Yx=fn($s,"CenterEdgeLabelPlacementStrategy",233,bn,Gdn,Wrn),PNt;x(427,23,{3:1,34:1,23:1,427:1},Dle);var HSe,Mee,zSe=fn($s,"ConstraintCalculationStrategy",427,bn,lcn,Vrn),jNt;x(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},d8),h.bg=function(){return cwt(this)},h.og=function(){return cwt(this)};var aL,kI,GSe,qSe,VSe=fn($s,"CrossingMinimizationStrategy",302,bn,vln,Jrn),FNt;x(351,23,{3:1,34:1,23:1,351:1},Mq);var WSe,Pee,K$,KSe=fn($s,"CuttingStrategy",351,bn,aun,Xrn),$Nt;x(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Yv),h.bg=function(){return hyt(this)},h.og=function(){return hyt(this)};var jee,YSe,Fee,$ee,Bee,Uee,Hee,zee,cL,JSe=fn($s,"CycleBreakingStrategy",268,bn,thn,Zrn),BNt;x(424,23,{3:1,34:1,23:1,424:1},Lle);var Y$,XSe,ZSe=fn($s,"DirectionCongruency",424,bn,dcn,Qrn),UNt;x(452,23,{3:1,34:1,23:1,452:1},Pq);var Jx,Gee,XE,HNt=fn($s,"EdgeConstraint",452,bn,cun,ein),zNt;x(286,23,{3:1,34:1,23:1,286:1},r3);var qee,Vee,Wee,Kee,J$,Yee,QSe=fn($s,"EdgeLabelSideSelection",286,bn,Udn,tin),GNt;x(479,23,{3:1,34:1,23:1,479:1},Mle);var X$,eTe,tTe=fn($s,"EdgeStraighteningStrategy",479,bn,fcn,nin),qNt;x(284,23,{3:1,34:1,23:1,284:1},i3);var Jee,nTe,rTe,Z$,iTe,oTe,sTe=fn($s,"FixedAlignment",284,bn,Hdn,rin),VNt;x(285,23,{3:1,34:1,23:1,285:1},o3);var aTe,cTe,uTe,lTe,NI,dTe,fTe=fn($s,"GraphCompactionStrategy",285,bn,zdn,iin),WNt;x(262,23,{3:1,34:1,23:1,262:1},Bw);var Xx,Q$,Zx,rl,CI,eB,Qx,ZE,tB,II,Xee=fn($s,"GraphProperties",262,bn,Shn,oin),KNt;x(303,23,{3:1,34:1,23:1,303:1},jq);var uL,Zee,Qee,ete=fn($s,"GreedySwitchType",303,bn,sun,sin),YNt;x(330,23,{3:1,34:1,23:1,330:1},Fq);var Vy,hTe,lL,tte=fn($s,"GroupOrderStrategy",330,bn,iun,ain),JNt;x(316,23,{3:1,34:1,23:1,316:1},$q);var kT,dL,QE,XNt=fn($s,"InLayerConstraint",316,bn,oun,cin),ZNt;x(425,23,{3:1,34:1,23:1,425:1},Ple);var nte,pTe,gTe=fn($s,"InteractiveReferencePoint",425,bn,acn,uin),QNt,bTe,NT,ew,fL,nB,mTe,wTe,rB,yTe,CT,iB,RI,IT,_p,rte,oB,Hs,vTe,F1,xa,ite,ote,hL,hm,tw,RT,ETe,e3t,OT,pL,Wy,Cd,Nl,ste,e2,$1,Cr,wr,STe,TTe,ATe,_Te,xTe,ate,sB,Nc,nw,cte,DT,OI,Ag,t2,rw,n2,r2,ek,pm,kTe,ute,lte,DI,LT,aB,MT,i2;x(166,23,{3:1,34:1,23:1,166:1},bO);var LI,xp,MI,gm,gL,NTe=fn($s,"LayerConstraint",166,bn,gdn,lin),t3t;x(428,23,{3:1,34:1,23:1,428:1},jle);var dte,fte,CTe=fn($s,"LayerUnzippingStrategy",428,bn,ccn,din),n3t;x(851,1,td,jWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pwe),""),"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."),HTe),(_1(),$r)),ZSe),lt((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jwe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Lt(),!1)),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,b7),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),KTe),$r),gTe),lt(xt)))),zr(t,b7,jD,sCt),zr(t,b7,XC,oCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Fwe),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$we),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(ien(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bwe),""),"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),xi),Yr),lt(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,Uwe),""),"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."),oAe),$r),b_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Hwe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Oe(7)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zwe),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Gwe),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jD),"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)."),UTe),$r),JSe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,FD),SZ),"Node Layering Strategy"),"Strategy for node layering."),XTe),$r),i_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qwe),SZ),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),YTe),$r),NTe),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Vwe),SZ),"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),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Wwe),SZ),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Oe(-1)),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,GX),xSt),"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."),Oe(4)),vo),_i),lt(xt)))),zr(t,GX,FD,hCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qX),xSt),"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."),Oe(2)),vo),_i),lt(xt)))),zr(t,qX,FD,gCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,VX),kSt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),JTe),$r),h_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,WX),kSt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Oe(0)),vo),_i),lt(xt)))),zr(t,WX,VX,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,KX),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Oe(ar)),vo),_i),lt(xt)))),zr(t,KX,FD,cCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XC),Ax),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),BTe),$r),VSe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Kwe),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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,YX),Ax),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),fi),lt(xt)))),zr(t,YX,C7,O3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,JX),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),xi),Yr),lt(xt)))),zr(t,JX,XC,F3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ywe),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),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Jwe),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),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xwe),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),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Zwe),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."),Oe(-1)),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Qwe),NSt),"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."),Oe(40)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XX),NSt),"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."),$Te),$r),ete),lt(xt)))),zr(t,XX,XC,I3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,m7),"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."),FTe),$r),ete),lt(xt)))),zr(t,m7,XC,k3t),zr(t,m7,C7,N3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jE),CSt),"Node Placement Strategy"),"Strategy for node placement."),iAe),$r),c_e),lt(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,w7),CSt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),xi),Yr),lt(xt)))),zr(t,w7,jE,OCt),zr(t,w7,jE,DCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZX),ISt),"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."),tAe),$r),tTe),lt(xt)))),zr(t,ZX,jE,NCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,QX),ISt),"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."),nAe),$r),sTe),lt(xt)))),zr(t,QX,jE,ICt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eZ),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),fi),lt(xt)))),zr(t,eZ,jE,MCt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,tZ),"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),$te),lt(ri)))),zr(t,tZ,jE,$Ct),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nZ),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),rAe),$r),$te),lt(xt)))),zr(t,nZ,jE,FCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eye),RSt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),qTe),$r),y_e),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tye),RSt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),VTe),$r),v_e),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,y7),"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."),WTe),$r),S_e),lt(xt)))),zr(t,y7,BD,Y3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,v7),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),fi),lt(xt)))),zr(t,v7,BD,X3t),zr(t,v7,y7,Z3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rZ),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),fi),lt(xt)))),zr(t,rZ,BD,q3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,nye),of),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rye),of),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iye),of),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oye),of),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sye),wye),"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."),Oe(0)),vo),_i),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aye),wye),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Oe(0)),vo),_i),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cye),wye),"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."),Oe(0)),vo),_i),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iZ),yye),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),xi),Yr),lt(xt)))),zr(t,iZ,WC,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uye),OSt),"Post Compaction Strategy"),DSt),RTe),$r),fTe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lye),OSt),"Post Compaction Constraint Calculation"),DSt),ITe),$r),zSe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,E7),vye),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oZ),vye),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Oe(16)),vo),_i),lt(xt)))),zr(t,oZ,E7,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sZ),vye),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Oe(5)),vo),_i),lt(xt)))),zr(t,sZ,E7,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sp),Eye),"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'."),cAe),$r),x_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,S7),Eye),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),fi),lt(xt)))),zr(t,S7,Sp,ZCt),zr(t,S7,Sp,QCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,T7),Eye),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),fi),lt(xt)))),zr(t,T7,Sp,tIt),zr(t,T7,Sp,nIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZC),LSt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),aAe),$r),KSe),lt(xt)))),zr(t,ZC,Sp,cIt),zr(t,ZC,Sp,uIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,aZ),LSt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),lf),_u),lt(xt)))),zr(t,aZ,ZC,iIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cZ),"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."),sAe),vo),_i),lt(xt)))),zr(t,cZ,ZC,sIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,A7),MSt),"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."),uAe),$r),__e),lt(xt)))),zr(t,A7,Sp,EIt),zr(t,A7,Sp,SIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,_7),MSt),"Valid Indices for Wrapping"),null),lf),_u),lt(xt)))),zr(t,_7,Sp,wIt),zr(t,_7,Sp,yIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,x7),Sye),"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),xi),Yr),lt(xt)))),zr(t,x7,Sp,hIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,k7),Sye),"Distance Penalty When Improving Cuts"),null),2),Qi),fi),lt(xt)))),zr(t,k7,Sp,dIt),zr(t,k7,x7,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uZ),Sye),"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),xi),Yr),lt(xt)))),zr(t,uZ,Sp,gIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lZ),TZ),"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'."),eAe),$r),CTe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dZ),TZ),"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),xi),Yr),lt(ri)))),zr(t,dZ,fZ,ECt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fZ),TZ),"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."),ZTe),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hZ),TZ),"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."),QTe),xi),Yr),lt(ri)))),zr(t,hZ,lZ,TCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dye),AZ),"Edge Label Side Selection"),"Method to decide on edge label sides."),GTe),$r),QSe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fye),AZ),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),zTe),$r),Yx),xr(xt,Z(X(uf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,N7),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."),jTe),$r),g_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hye),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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$D),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),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pZ),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."),OTe),$r),K2e),lt(xt)))),zr(t,pZ,WC,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pye),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."),PTe),$r),s_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gZ),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),Qi),fi),lt(xt)))),zr(t,gZ,N7,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bZ),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),Qi),fi),lt(xt)))),zr(t,bZ,N7,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mZ),_x),Tye),"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."),Oe(0)),vo),_i),lt(ri)))),zr(t,mZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wZ),_x),Tye),"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."),Oe(0)),vo),_i),xr(ri,Z(X(uf,1),Ce,161,0,[Rd,Cg]))))),zr(t,wZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yZ),_x),Tye),"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."),Oe(0)),vo),_i),xr(ri,Z(X(uf,1),Ce,161,0,[Rd,Cg]))))),zr(t,yZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gye),_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."),DTe),$r),tte),lt(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,vZ),_x),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),vo),_i),lt(xt)))),zr(t,vZ,jD,f3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,EZ),_x),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),vo),_i),lt(xt)))),zr(t,EZ,jD,p3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bye),_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."),MTe),$r),tte),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mye),_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."),LTe),lf),_u),lt(xt)))),t2t((new qWe,t))};var r3t,i3t,o3t,ITe,s3t,RTe,a3t,OTe,c3t,u3t,l3t,DTe,d3t,f3t,h3t,p3t,g3t,LTe,b3t,MTe,m3t,w3t,y3t,v3t,PTe,E3t,S3t,T3t,jTe,A3t,_3t,x3t,FTe,k3t,N3t,C3t,$Te,I3t,R3t,O3t,D3t,L3t,M3t,P3t,j3t,F3t,$3t,BTe,B3t,UTe,U3t,HTe,H3t,zTe,z3t,GTe,G3t,q3t,V3t,qTe,W3t,VTe,K3t,WTe,Y3t,J3t,X3t,Z3t,Q3t,eCt,tCt,nCt,rCt,iCt,KTe,oCt,sCt,aCt,cCt,uCt,lCt,YTe,dCt,fCt,hCt,pCt,gCt,bCt,mCt,JTe,wCt,XTe,yCt,ZTe,vCt,ECt,SCt,QTe,TCt,ACt,eAe,_Ct,xCt,kCt,tAe,NCt,CCt,nAe,ICt,RCt,OCt,DCt,LCt,MCt,PCt,jCt,rAe,FCt,$Ct,BCt,iAe,UCt,oAe,HCt,zCt,GCt,qCt,VCt,WCt,KCt,YCt,JCt,XCt,ZCt,QCt,eIt,tIt,nIt,rIt,iIt,oIt,sAe,sIt,aIt,aAe,cIt,uIt,lIt,dIt,fIt,hIt,pIt,gIt,bIt,cAe,mIt,wIt,yIt,vIt,uAe,EIt,SIt;k($s,"LayeredMetaDataProvider",851),x(991,1,td,qWe),h.tf=function(t){t2t(t)};var Kf,hte,cB,PI,uB,lAe,lB,jI,bL,pte,PT,dAe,fAe,hAe,FI,TIt,$I,Ky,gte,dB,bte,Ch,mte,tk,pAe,mL,wte,gAe,AIt,_It,xIt,fB,yte,BI,jT,kIt,xu,bAe,mAe,hB,o2,Yf,pB,kp,wAe,yAe,vAe,vte,Ete,EAe,_g,Ste,SAe,Yy,TAe,AAe,_Ae,gB,Jy,bm,xAe,kAe,as,NAe,NIt,Cs,UI,CAe,IAe,RAe,wL,bB,mB,Tte,Ate,OAe,wB,DAe,LAe,yB,iw,MAe,_te,HI,PAe,ow,zI,vB,mm,xte,nk,EB,wm,jAe,FAe,$Ae,Xy,BAe,CIt,IIt,RIt,OIt,sw,Zy,Zr,xg,DIt,Qy,UAe,rk,HAe,ev,LIt,ik,zAe,FT,MIt,PIt,yL,kte,GAe,vL,od,tv,s2,ym,B1,SB,nv,Nte,ok,sk,vm,rv,Cte,EL,GI,qI,jIt,FIt,$It,qAe,BIt,Ite,VAe,WAe,KAe,YAe,Rte,JAe,XAe,ZAe,QAe,Ote,TB;k($s,"LayeredOptions",991),x(992,1,{},xUe),h.uf=function(){var t;return t=new kZe,t},h.vf=function(t){},k($s,"LayeredOptions/LayeredFactory",992),x(1357,1,{}),h.a=0;var UIt;k(Vs,"ElkSpacings/AbstractSpacingsBuilder",1357),x(785,1357,{},T1e);var AB,HIt;k($s,"LayeredSpacings/LayeredSpacingsBuilder",785),x(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},Jv),h.bg=function(){return uyt(this)},h.og=function(){return uyt(this)};var Dte,Lte,Mte,e_e,t_e,n_e,_B,Pte,r_e,i_e=fn($s,"LayeringStrategy",269,bn,nhn,bin),zIt;x(353,23,{3:1,34:1,23:1,353:1},Bq);var jte,o_e,xB,s_e=fn($s,"LongEdgeOrderingStrategy",353,bn,hun,hin),GIt;x(205,23,{3:1,34:1,23:1,205:1},f8);var a2,c2,kB,Fte,$te=fn($s,"NodeFlexibility",205,bn,wln,fin),qIt;x(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},mO),h.bg=function(){return Emt(this)},h.og=function(){return Emt(this)};var VI,Bte,Ute,WI,a_e,c_e=fn($s,"NodePlacementStrategy",329,bn,pdn,pin),VIt;x(246,23,{3:1,34:1,23:1,246:1},Uw);var u_e,ak,KI,SL,l_e,d_e,TL,f_e,NB,CB,h_e=fn($s,"NodePromotionStrategy",246,bn,Ehn,gin),WIt;x(270,23,{3:1,34:1,23:1,270:1},h8);var p_e,U1,Hte,zte,g_e=fn($s,"OrderingStrategy",270,bn,yln,min),KIt;x(426,23,{3:1,34:1,23:1,426:1},Fle);var Gte,qte,b_e=fn($s,"PortSortingStrategy",426,bn,ucn,win),YIt;x(455,23,{3:1,34:1,23:1,455:1},Uq);var Cc,Ba,YI,JIt=fn($s,"PortType",455,bn,uun,yin),XIt;x(382,23,{3:1,34:1,23:1,382:1},Hq);var m_e,Vte,w_e,y_e=fn($s,"SelfLoopDistributionStrategy",382,bn,lun,vin),ZIt;x(349,23,{3:1,34:1,23:1,349:1},zq);var Wte,AL,Kte,v_e=fn($s,"SelfLoopOrderingStrategy",349,bn,dun,Ein),QIt;x(317,1,{317:1},Jvt),k($s,"Spacings",317),x(350,23,{3:1,34:1,23:1,350:1},Gq);var Yte,E_e,JI,S_e=fn($s,"SplineRoutingMode",350,bn,fun,Sin),e4t;x(352,23,{3:1,34:1,23:1,352:1},qq);var Jte,T_e,A_e,__e=fn($s,"ValidifyStrategy",352,bn,pun,Tin),t4t;x(383,23,{3:1,34:1,23:1,383:1},Vq);var iv,Xte,ck,x_e=fn($s,"WrappingStrategy",383,bn,gun,Ain),n4t;x(1373,1,Fi,HWe),h.pg=function(t){return l(t,37),r4t},h.If=function(t,r){fkn(this,l(t,37),r)};var r4t;k(H0,"BFSNodeOrderCycleBreaker",1373),x(1371,1,Fi,UWe),h.pg=function(t){return l(t,37),i4t},h.If=function(t,r){axn(this,l(t,37),r)};var i4t;k(H0,"DFSNodeOrderCycleBreaker",1371),x(1372,1,nn,cot),h.Ad=function(t){aAn(this.a,this.c,this.b,l(t,17))},h.b=!1,k(H0,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),x(1365,1,Fi,zWe),h.pg=function(t){return l(t,37),o4t},h.If=function(t,r){sxn(this,l(t,37),r)};var o4t;k(H0,"DepthFirstCycleBreaker",1365),x(786,1,Fi,Wfe),h.pg=function(t){return l(t,37),s4t},h.If=function(t,r){N3n(this,l(t,37),r)},h.qg=function(t){return l(ze(t,uF(this.e,t.c.length)),9)};var s4t;k(H0,"GreedyCycleBreaker",786),x(1368,786,Fi,nnt),h.qg=function(t){var r,o,a,u,f,p,m,y,v;for(v=null,a=ar,y=b.Math.max(this.b.a.c.length,l(F(this.b,(Ie(),$1)),15).a),r=y*l(F(this.b,fL),15).a,u=new YR,o=me(F(this.b,(Ue(),PT)))===me((b1(),Vy)),m=new V(t);m.af&&(a=f,v=p));return v||l(ze(t,uF(this.e,t.c.length)),9)},k(H0,"GreedyModelOrderCycleBreaker",1368),x(509,1,{},YR),h.a=0,h.b=0,k(H0,"GroupModelOrderCalculator",509),x(1366,1,Fi,$We),h.pg=function(t){return l(t,37),a4t},h.If=function(t,r){Dxn(this,l(t,37),r)};var a4t;k(H0,"InteractiveCycleBreaker",1366),x(1367,1,Fi,FWe),h.pg=function(t){return l(t,37),c4t},h.If=function(t,r){Mxn(l(t,37),r)};var c4t;k(H0,"ModelOrderCycleBreaker",1367),x(787,1,Fi),h.pg=function(t){return l(t,37),u4t},h.If=function(t,r){E_n(this,l(t,37),r)},h.rg=function(t,r){var o,a,u,f,p,m,y,v,T,N;for(p=0;pv&&(y=R,N=v),Tyd(new Ft(Gt(Or(m).a.Jc(),new D))))for(u=new Ft(Gt(si(y).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(u=new Ft(Gt(Or(m).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCCNodeTypeCycleBreaker",1370),x(1369,787,Fi,int),h.rg=function(t,r){var o,a,u,f,p,m,y,v,T,N,R,M;for(p=0;pv&&(y=R,N=v),Tyd(new Ft(Gt(Or(m).a.Jc(),new D))))for(u=new Ft(Gt(si(y).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(u=new Ft(Gt(Or(m).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCConnectivity",1369),x(1385,1,Fi,BWe),h.pg=function(t){return l(t,37),l4t},h.If=function(t,r){ONn(this,l(t,37),r)};var l4t;k(Tp,"BreadthFirstModelOrderLayerer",1385),x(1386,1,Un,kUe),h.Le=function(t,r){return dvn(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),x(1376,1,Fi,ttt),h.pg=function(t){return l(t,37),d4t},h.If=function(t,r){D3n(this,l(t,37),r)};var d4t;k(Tp,"CoffmanGrahamLayerer",1376),x(1377,1,Un,vJe),h.Le=function(t,r){return ESn(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),x(1378,1,Un,EJe),h.Le=function(t,r){return Ssn(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),x(1387,1,Fi,DWe),h.pg=function(t){return l(t,37),f4t},h.If=function(t,r){y3n(this,l(t,37),r)},h.c=0,h.e=0;var f4t;k(Tp,"DepthFirstModelOrderLayerer",1387),x(1388,1,Un,NUe),h.Le=function(t,r){return fvn(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),x(1379,1,Fi,CUe),h.pg=function(t){return l(t,37),$n($n($n(new ci,(Vi(),id),(Xi(),Eee)),kh,zy),la,Hy)},h.If=function(t,r){zNn(l(t,37),r)},k(Tp,"InteractiveLayerer",1379),x(571,1,{571:1},MZe),h.a=0,h.c=0,k(Tp,"InteractiveLayerer/LayerSpan",571),x(1375,1,Fi,LWe),h.pg=function(t){return l(t,37),h4t},h.If=function(t,r){gSn(this,l(t,37),r)};var h4t;k(Tp,"LongestPathLayerer",1375),x(1384,1,Fi,MWe),h.pg=function(t){return l(t,37),p4t},h.If=function(t,r){PSn(this,l(t,37),r)};var p4t;k(Tp,"LongestPathSourceLayerer",1384),x(1382,1,Fi,WWe),h.pg=function(t){return l(t,37),$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)},h.If=function(t,r){QNn(this,l(t,37),r)},h.a=0,h.b=0,h.d=0;var k_e,N_e;k(Tp,"MinWidthLayerer",1382),x(1383,1,Un,SJe),h.Le=function(t,r){return Whn(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),x(1374,1,Fi,VWe),h.pg=function(t){return l(t,37),g4t},h.If=function(t,r){gkn(this,l(t,37),r)};var g4t;k(Tp,"NetworkSimplexLayerer",1374),x(1380,1,Fi,Oit),h.pg=function(t){return l(t,37),$n($n($n(new ci,(Vi(),id),(Xi(),WE)),kh,zy),la,Hy)},h.If=function(t,r){tNn(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),x(1381,1,Un,MUe),h.Le=function(t,r){return Cdn(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),x(411,1,ove),h.eg=function(t,r,o,a,u,f){},h.tg=function(t,r,o){return Byt(this,t,r,o)},h.dg=function(){this.g=we(Tv,$St,30,this.d,15,1),this.f=we(Tv,$St,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),x(1680,1,Un,TJe),h.Le=function(t,r){return cbn(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),x(823,1,JC,epe),h.eg=function(t,r,o,a,u,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?_bt(this,t):(Rbt(this,t,a),aEt(this,t,r)),t.c.length>1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Ue(),tk))))?awt(t,this.d,l(this,667)):(At(),ki(t,this.d)),Vht(this.e,t))},h.jg=function(t,r,o,a){var u,f,p,m,y,v,T;for(r!=Zot(o,t.length)&&(f=t[r-(o?1:-1)],xpe(this.f,f,o?(Fo(),Ba):(Fo(),Cc))),u=t[r][0],T=!a||u.k==(Ht(),yi),v=Wl(t[r]),this.ug(v,T,!1,o),p=0,y=new V(v);y.a"),t0?CW(this.a,t[r-1],t[r]):!o&&r1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Ue(),tk))))?awt(t,this.d,this):(At(),ki(t,this.d)),Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),tk)))||Vht(this.e,t))},k(qa,"ModelOrderBarycenterHeuristic",667),x(1860,1,Un,OJe),h.Le=function(t,r){return J_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),x(1395,1,Fi,XWe),h.pg=function(t){var r;return l(t,37),r=D8(T4t),$n(r,(Vi(),la),(Xi(),j$)),r},h.If=function(t,r){jan((l(t,37),r))};var T4t;k(qa,"NoCrossingMinimizer",1395),x(803,411,ove,ole),h.sg=function(t,r,o){var a,u,f,p,m,y,v,T,N,R,M;switch(N=this.g,o.g){case 1:{for(u=0,f=0,T=new V(t.j);T.a1&&(u.j==(He(),Qt)?this.b[t]=!0:u.j==Wt&&t>0&&(this.b[t-1]=!0))},h.f=0,k(_h,"AllCrossingsCounter",1855),x(590,1,{},Cj),h.b=0,h.d=0,k(_h,"BinaryIndexedTree",590),x(523,1,{},FO);var C_e,OB;k(_h,"CrossingsCounter",523),x(1929,1,Un,DJe),h.Le=function(t,r){return lsn(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),x(1930,1,Un,LJe),h.Le=function(t,r){return dsn(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),x(1931,1,Un,MJe),h.Le=function(t,r){return fsn(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),x(1932,1,Un,PJe),h.Le=function(t,r){return hsn(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),x(1933,1,nn,jJe),h.Ad=function(t){ffn(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$4$Type",1933),x(1934,1,Mn,FJe),h.Mb=function(t){return Wen(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$5$Type",1934),x(1935,1,nn,$Je),h.Ad=function(t){ont(this,t)},k(_h,"CrossingsCounter/lambda$6$Type",1935),x(1936,1,nn,Mtt),h.Ad=function(t){var r;ZA(),d1(this.b,(r=this.a,l(t,12),r))},k(_h,"CrossingsCounter/lambda$7$Type",1936),x(831,1,Uf,Bce),h.Lb=function(t){return ZA(),br(l(t,12),(Ie(),Nc))},h.Fb=function(t){return this===t},h.Mb=function(t){return ZA(),br(l(t,12),(Ie(),Nc))},k(_h,"CrossingsCounter/lambda$8$Type",831),x(1928,1,{},BJe),k(_h,"HyperedgeCrossingsCounter",1928),x(470,1,{34:1,470:1},Lit),h.Dd=function(t){return V1n(this,l(t,470))},h.b=0,h.c=0,h.e=0,h.f=0;var pCn=k(_h,"HyperedgeCrossingsCounter/Hyperedge",470);x(371,1,{34:1,371:1},xP),h.Dd=function(t){return qEn(this,l(t,371))},h.b=0,h.c=0;var A4t=k(_h,"HyperedgeCrossingsCounter/HyperedgeCorner",371);x(522,23,{3:1,34:1,23:1,522:1},Ule);var ZI,QI,_4t=fn(_h,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,bn,bcn,xin),x4t;x(1397,1,Fi,eKe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc(($o(),rl))?k4t:null},h.If=function(t,r){y0n(this,l(t,37),r)};var k4t;k(Ho,"InteractiveNodePlacer",1397),x(1398,1,Fi,tKe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc(($o(),rl))?N4t:null},h.If=function(t,r){nmn(this,l(t,37),r)};var N4t,DB,LB;k(Ho,"LinearSegmentsNodePlacer",1398),x(264,1,{34:1,264:1},Fue),h.Dd=function(t){return sen(this,l(t,264))},h.Fb=function(t){var r;return se(t,264)?(r=l(t,264),this.b==r.b):!1},h.Hb=function(){return this.b},h.Ib=function(){return"ls"+Qd(this.e)},h.a=0,h.b=0,h.c=-1,h.d=-1,h.g=0;var C4t=k(Ho,"LinearSegmentsNodePlacer/LinearSegment",264);x(1400,1,Fi,bst),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc(($o(),rl))?I4t:null},h.If=function(t,r){v3n(this,l(t,37),r)},h.b=0,h.g=0;var I4t;k(Ho,"NetworkSimplexPlacer",1400),x(1419,1,Un,jUe),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(Ho,"NetworkSimplexPlacer/0methodref$compare$Type",1419),x(1421,1,Un,FUe),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(Ho,"NetworkSimplexPlacer/1methodref$compare$Type",1421),x(651,1,{651:1},Ott);var gCn=k(Ho,"NetworkSimplexPlacer/EdgeRep",651);x(410,1,{410:1},khe),h.b=!1;var bCn=k(Ho,"NetworkSimplexPlacer/NodeRep",410);x(504,13,{3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1,504:1},zZe),k(Ho,"NetworkSimplexPlacer/Path",504),x(1401,1,{},$Ue),h.Kb=function(t){return l(t,17).d.i.k},k(Ho,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),x(1402,1,Mn,PUe),h.Mb=function(t){return l(t,252)==(Ht(),bi)},k(Ho,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),x(1403,1,{},BUe),h.Kb=function(t){return l(t,17).d.i},k(Ho,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),x(1404,1,Mn,UJe),h.Mb=function(t){return mit(Hgt(l(t,9)))},k(Ho,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),x(1405,1,Mn,UUe),h.Mb=function(t){return Xon(l(t,12))},k(Ho,"NetworkSimplexPlacer/lambda$0$Type",1405),x(1406,1,nn,Dtt),h.Ad=function(t){jtn(this.a,this.b,l(t,12))},k(Ho,"NetworkSimplexPlacer/lambda$1$Type",1406),x(1415,1,nn,HJe),h.Ad=function(t){Rvn(this.a,l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$10$Type",1415),x(1416,1,{},HUe),h.Kb=function(t){return gu(),new vt(null,new St(l(t,26).a,16))},k(Ho,"NetworkSimplexPlacer/lambda$11$Type",1416),x(1417,1,nn,zJe),h.Ad=function(t){pTn(this.a,l(t,9))},k(Ho,"NetworkSimplexPlacer/lambda$12$Type",1417),x(1418,1,{},zUe),h.Kb=function(t){return gu(),Oe(l(t,126).e)},k(Ho,"NetworkSimplexPlacer/lambda$13$Type",1418),x(1420,1,{},GUe),h.Kb=function(t){return gu(),Oe(l(t,126).e)},k(Ho,"NetworkSimplexPlacer/lambda$15$Type",1420),x(1422,1,Mn,VUe),h.Mb=function(t){return gu(),l(t,410).c.k==(Ht(),Xr)},k(Ho,"NetworkSimplexPlacer/lambda$17$Type",1422),x(1423,1,Mn,WUe),h.Mb=function(t){return gu(),l(t,410).c.j.c.length>1},k(Ho,"NetworkSimplexPlacer/lambda$18$Type",1423),x(1424,1,nn,mat),h.Ad=function(t){g1n(this.c,this.b,this.d,this.a,l(t,410))},h.c=0,h.d=0,k(Ho,"NetworkSimplexPlacer/lambda$19$Type",1424),x(1407,1,{},KUe),h.Kb=function(t){return gu(),new vt(null,new St(l(t,26).a,16))},k(Ho,"NetworkSimplexPlacer/lambda$2$Type",1407),x(1425,1,nn,GJe),h.Ad=function(t){Utn(this.a,l(t,12))},h.a=0,k(Ho,"NetworkSimplexPlacer/lambda$20$Type",1425),x(1426,1,{},YUe),h.Kb=function(t){return gu(),new vt(null,new St(l(t,26).a,16))},k(Ho,"NetworkSimplexPlacer/lambda$21$Type",1426),x(1427,1,nn,qJe),h.Ad=function(t){Ktn(this.a,l(t,9))},k(Ho,"NetworkSimplexPlacer/lambda$22$Type",1427),x(1428,1,Mn,JUe),h.Mb=function(t){return mit(t)},k(Ho,"NetworkSimplexPlacer/lambda$23$Type",1428),x(1429,1,{},XUe),h.Kb=function(t){return gu(),new vt(null,new St(l(t,26).a,16))},k(Ho,"NetworkSimplexPlacer/lambda$24$Type",1429),x(1430,1,Mn,VJe),h.Mb=function(t){return ttn(this.a,l(t,9))},k(Ho,"NetworkSimplexPlacer/lambda$25$Type",1430),x(1431,1,nn,Ltt),h.Ad=function(t){Dyn(this.a,this.b,l(t,9))},k(Ho,"NetworkSimplexPlacer/lambda$26$Type",1431),x(1432,1,Mn,ZUe),h.Mb=function(t){return gu(),!fo(l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$27$Type",1432),x(1433,1,Mn,QUe),h.Mb=function(t){return gu(),!fo(l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$28$Type",1433),x(1434,1,{},WJe),h.Te=function(t,r){return Btn(this.a,l(t,26),l(r,26))},k(Ho,"NetworkSimplexPlacer/lambda$29$Type",1434),x(1408,1,{},eHe),h.Kb=function(t){return gu(),new vt(null,new ey(new Ft(Gt(Or(l(t,9)).a.Jc(),new D))))},k(Ho,"NetworkSimplexPlacer/lambda$3$Type",1408),x(1409,1,Mn,tHe),h.Mb=function(t){return gu(),tln(l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$4$Type",1409),x(1410,1,nn,KJe),h.Ad=function(t){A_n(this.a,l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$5$Type",1410),x(1411,1,{},nHe),h.Kb=function(t){return gu(),new vt(null,new St(l(t,26).a,16))},k(Ho,"NetworkSimplexPlacer/lambda$6$Type",1411),x(1412,1,Mn,rHe),h.Mb=function(t){return gu(),l(t,9).k==(Ht(),Xr)},k(Ho,"NetworkSimplexPlacer/lambda$7$Type",1412),x(1413,1,{},iHe),h.Kb=function(t){return gu(),new vt(null,new ey(new Ft(Gt(Lf(l(t,9)).a.Jc(),new D))))},k(Ho,"NetworkSimplexPlacer/lambda$8$Type",1413),x(1414,1,Mn,oHe),h.Mb=function(t){return gu(),Yon(l(t,17))},k(Ho,"NetworkSimplexPlacer/lambda$9$Type",1414),x(1396,1,Fi,GWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc(($o(),rl))?R4t:null},h.If=function(t,r){rxn(l(t,37),r)};var R4t;k(Ho,"SimpleNodePlacer",1396),x(188,1,{188:1},CE),h.Ib=function(){var t;return t="",this.c==(If(),aw)?t+=pT:this.c==kg&&(t+=hT),this.o==(zd(),Em)?t+=DX:this.o==cf?t+="UP":t+="BALANCED",t},k(R1,"BKAlignedLayout",188),x(513,23,{3:1,34:1,23:1,513:1},$le);var kg,aw,O4t=fn(R1,"BKAlignedLayout/HDirection",513,bn,pcn,kin),D4t;x(512,23,{3:1,34:1,23:1,512:1},Ble);var Em,cf,L4t=fn(R1,"BKAlignedLayout/VDirection",512,bn,hcn,Nin),M4t;x(1681,1,{},Ptt),k(R1,"BKAligner",1681),x(1684,1,{},pbt),k(R1,"BKCompactor",1684),x(659,1,{659:1},sHe),h.a=0,k(R1,"BKCompactor/ClassEdge",659),x(459,1,{459:1},PZe),h.a=null,h.b=0,k(R1,"BKCompactor/ClassNode",459),x(1399,1,Fi,tnt),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc(($o(),rl))?P4t:null},h.If=function(t,r){j3n(this,l(t,37),r)},h.d=!1;var P4t;k(R1,"BKNodePlacer",1399),x(1682,1,{},aHe),h.d=0,k(R1,"NeighborhoodInformation",1682),x(1683,1,Un,YJe),h.Le=function(t,r){return xfn(this,l(t,49),l(r,49))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(R1,"NeighborhoodInformation/NeighborComparator",1683),x(816,1,{}),k(R1,"ThresholdStrategy",816),x(1812,816,{},FZe),h.vg=function(t,r,o){return this.a.o==(zd(),cf)?Kr:Li},h.wg=function(){},k(R1,"ThresholdStrategy/NullThresholdStrategy",1812),x(583,1,{583:1},Btt),h.c=!1,h.d=!1,k(R1,"ThresholdStrategy/Postprocessable",583),x(1813,816,{},$Ze),h.vg=function(t,r,o){var a,u,f;return u=r==o,a=this.a.a[o.p]==r,u||a?(f=t,this.a.c==(If(),aw)?(u&&(f=MJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=MJ(this,o,!1))):(u&&(f=MJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=MJ(this,o,!1))),f):t},h.wg=function(){for(var t,r,o,a,u;this.d.b!=0;)u=l(tct(this.d),583),a=nvt(this,u),a.a&&(t=a.a,o=Ye(this.a.f[this.a.g[u.b.p].p]),!(!o&&!fo(t)&&t.c.i.c==t.d.i.c)&&(r=twt(this,u),r||Wnt(this.e,u)));for(;this.e.a.c.length!=0;)twt(this,l(Jge(this.e),583))},k(R1,"ThresholdStrategy/SimpleThresholdStrategy",1813),x(642,1,{642:1,173:1,177:1},cHe),h.bg=function(){return zht(this)},h.og=function(){return zht(this)};var Zte;k(OZ,"EdgeRouterFactory",642),x(1462,1,Fi,nKe),h.pg=function(t){return qSn(l(t,37))},h.If=function(t,r){fxn(l(t,37),r)};var j4t,F4t,$4t,B4t,U4t,I_e,H4t,z4t;k(OZ,"OrthogonalEdgeRouter",1462),x(1455,1,Fi,ent),h.pg=function(t){return N0n(l(t,37))},h.If=function(t,r){PNn(this,l(t,37),r)};var G4t,q4t,V4t,W4t,xL,K4t;k(OZ,"PolylineEdgeRouter",1455),x(1456,1,Uf,lHe),h.Lb=function(t){return kge(l(t,9))},h.Fb=function(t){return this===t},h.Mb=function(t){return kge(l(t,9))},k(OZ,"PolylineEdgeRouter/1",1456),x(1868,1,Mn,dHe),h.Mb=function(t){return l(t,135).c==(vd(),H1)},k(xd,"HyperEdgeCycleDetector/lambda$0$Type",1868),x(1869,1,{},fHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$1$Type",1869),x(1870,1,Mn,hHe),h.Mb=function(t){return l(t,135).c==(vd(),H1)},k(xd,"HyperEdgeCycleDetector/lambda$2$Type",1870),x(1871,1,{},pHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$3$Type",1871),x(1872,1,{},gHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$4$Type",1872),x(1873,1,{},uHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$5$Type",1873),x(117,1,{34:1,117:1},_6),h.Dd=function(t){return oen(this,l(t,117))},h.Fb=function(t){var r;return se(t,117)?(r=l(t,117),this.g==r.g):!1},h.Hb=function(){return this.g},h.Ib=function(){var t,r,o,a;for(t=new fu("{"),a=new V(this.n);a.a"+this.b+" ("+Ann(this.c)+")"},h.d=0,k(xd,"HyperEdgeSegmentDependency",135),x(519,23,{3:1,34:1,23:1,519:1},Hle);var H1,ov,Y4t=fn(xd,"HyperEdgeSegmentDependency/DependencyType",519,bn,gcn,Cin),J4t;x(1874,1,{},JJe),k(xd,"HyperEdgeSegmentSplitter",1874),x(1875,1,{},PQe),h.a=0,h.b=0,k(xd,"HyperEdgeSegmentSplitter/AreaRating",1875),x(341,1,{341:1},jV),h.a=0,h.b=0,h.c=0,k(xd,"HyperEdgeSegmentSplitter/FreeArea",341),x(1876,1,Un,bHe),h.Le=function(t,r){return Ern(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),x(1877,1,nn,wat),h.Ad=function(t){Gln(this.a,this.d,this.c,this.b,l(t,117))},h.b=0,k(xd,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),x(1878,1,{},mHe),h.Kb=function(t){return new vt(null,new St(l(t,117).e,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),x(1879,1,{},wHe),h.Kb=function(t){return new vt(null,new St(l(t,117).j,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),x(1880,1,{},yHe),h.We=function(t){return ce(le(t))},k(xd,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),x(660,1,{},cW),h.a=0,h.b=0,h.c=0,k(xd,"OrthogonalRoutingGenerator",660),x(1685,1,{},vHe),h.Kb=function(t){return new vt(null,new St(l(t,117).e,16))},k(xd,"OrthogonalRoutingGenerator/lambda$0$Type",1685),x(1686,1,{},EHe),h.Kb=function(t){return new vt(null,new St(l(t,117).j,16))},k(xd,"OrthogonalRoutingGenerator/lambda$1$Type",1686),x(668,1,{}),k(DZ,"BaseRoutingDirectionStrategy",668),x(1866,668,{},BZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,R,M,U,G;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(N,f),Gn(p.a,a),L0(this,p,u,a,!1),R=t.r,R&&(M=ce(le(sa(R.e,0))),a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1),f=r+R.o*o,u=R,a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1)),a=new Me(G,f),Gn(p.a,a),L0(this,p,u,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(),Vt},k(DZ,"NorthToSouthRoutingStrategy",1866),x(1867,668,{},UZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,R,M,U,G;if(!(t.r&&!t.q))for(T=r-t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(N,f),Gn(p.a,a),L0(this,p,u,a,!1),R=t.r,R&&(M=ce(le(sa(R.e,0))),a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1),f=r-R.o*o,u=R,a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1)),a=new Me(G,f),Gn(p.a,a),L0(this,p,u,a,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return He(),Vt},h.Ag=function(){return He(),dn},k(DZ,"SouthToNorthRoutingStrategy",1867),x(1865,668,{},HZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,R,M,U,G;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(f,N),Gn(p.a,a),L0(this,p,u,a,!0),R=t.r,R&&(M=ce(le(sa(R.e,0))),a=new Me(f,M),Gn(p.a,a),L0(this,p,u,a,!0),f=r+R.o*o,u=R,a=new Me(f,M),Gn(p.a,a),L0(this,p,u,a,!0)),a=new Me(f,G),Gn(p.a,a),L0(this,p,u,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(),Wt},k(DZ,"WestToEastRoutingStrategy",1865),x(819,1,{},R0e),h.Ib=function(){return Qd(this.a)},h.b=0,h.c=!1,h.d=!1,h.f=0,k(My,"NubSpline",819),x(415,1,{415:1},Fwt,Qat),k(My,"NubSpline/PolarCP",415),x(1457,1,Fi,ibt),h.pg=function(t){return pwn(l(t,37))},h.If=function(t,r){n3n(this,l(t,37),r)};var X4t,Z4t,Q4t,eRt,tRt;k(My,"SplineEdgeRouter",1457),x(275,1,{275:1},ZP),h.Ib=function(){return this.a+" ->("+this.c+") "+this.b},h.c=0,k(My,"SplineEdgeRouter/Dependency",275),x(457,23,{3:1,34:1,23:1,457:1},zle);var z1,u2,nRt=fn(My,"SplineEdgeRouter/SideToProcess",457,bn,mcn,Rin),rRt;x(1458,1,Mn,SHe),h.Mb=function(t){return NC(),!l(t,134).o},k(My,"SplineEdgeRouter/lambda$0$Type",1458),x(1459,1,{},THe),h.Xe=function(t){return NC(),l(t,134).v+1},k(My,"SplineEdgeRouter/lambda$1$Type",1459),x(1460,1,nn,jtt),h.Ad=function(t){esn(this.a,this.b,l(t,49))},k(My,"SplineEdgeRouter/lambda$2$Type",1460),x(1461,1,nn,Ftt),h.Ad=function(t){tsn(this.a,this.b,l(t,49))},k(My,"SplineEdgeRouter/lambda$3$Type",1461),x(134,1,{34:1,134:1},Gmt,j0e),h.Dd=function(t){return aen(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(My,"SplineSegment",134),x(460,1,{460:1},AHe),h.a=0,h.b=!1,h.c=!1,h.d=!1,h.e=!1,h.f=0,k(My,"SplineSegment/EdgeInformation",460),x(1179,1,{},_He),k(Ap,Twe,1179),x(1180,1,Un,xHe),h.Le=function(t,r){return Gvn(l(t,121),l(r,121))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Ap,J2t,1180),x(1178,1,{},eet),k(Ap,"MrTree",1178),x(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},g8),h.bg=function(){return p0t(this)},h.og=function(){return p0t(this)};var MB,e4,t4,n4,R_e=fn(Ap,"TreeLayoutPhases",402,bn,Aln,Oin),iRt;x(1093,207,im,Pit),h.kf=function(t,r){var o,a,u,f,p,m,y,v;for(Ye(Ke(ve(t,(js(),nxe))))||P3((o=new OA((n1(),new Yp(t))),o)),p=r.dh(PZ),p.Tg("build tGraph",1),m=(y=new i6,qs(y,t),Te(y,(Nr(),i4),t),v=new hn,CAn(t,y,v),VAn(t,y,v),y),p.Ug(),p=r.dh(PZ),p.Tg("Split graph",1),f=MAn(this.a,m),p.Ug(),u=new V(f);u.a"+Fb(this.c):"e_"+Rr(this)},k(eI,"TEdge",65),x(121,151,{3:1,121:1,105:1,151:1},i6),h.Ib=function(){var t,r,o,a,u;for(u=null,a=An(this.b,0);a.b!=a.d.c;)o=l(Sn(a),41),u+=(o.c==null||o.c.length==0?"n_"+o.g:"n_"+o.c)+` `;for(r=An(this.a,0);r.b!=r.d.c;)t=l(Sn(r),65),u+=(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t))+` `;return u};var mCn=k(eI,"TGraph",121);x(640,497,{3:1,497:1,640:1,105:1,151:1}),k(eI,"TShape",640),x(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},UK),h.Ib=function(){return Fb(this)};var PB=k(eI,"TNode",41);x(239,1,Eh,Qh),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new Vv(t)},k(eI,"TNode/2",239),x(335,1,Wi,Vv),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(){gK(this.a)},k(eI,"TNode/2/1",335),x(1910,1,kr,DHe),h.If=function(t,r){O3n(this,l(t,121),r)},k(Aa,"CompactionProcessor",1910),x(1911,1,Un,tXe),h.Le=function(t,r){return qhn(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),x(1912,1,Mn,Utt),h.Mb=function(t){return icn(this.b,this.a,l(t,49))},h.a=0,h.b=0,k(Aa,"CompactionProcessor/lambda$1$Type",1912),x(1921,1,Un,LHe),h.Le=function(t,r){return Wsn(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),x(1922,1,Un,MHe),h.Le=function(t,r){return fnn(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),x(1923,1,Un,PHe),h.Le=function(t,r){return Ksn(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),x(1913,1,Mn,nXe),h.Mb=function(t){return Ztn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$2$Type",1913),x(1914,1,Mn,rXe),h.Mb=function(t){return Qtn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$3$Type",1914),x(1915,1,Mn,jHe),h.Mb=function(t){return l(t,41).c.indexOf(L7)==-1},k(Aa,"CompactionProcessor/lambda$4$Type",1915),x(1916,1,{},iXe),h.Kb=function(t){return nln(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$5$Type",1916),x(1917,1,{},oXe),h.Kb=function(t){return dfn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$6$Type",1917),x(1918,1,Un,sXe),h.Le=function(t,r){return vdn(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),x(1919,1,Un,aXe),h.Le=function(t,r){return Edn(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),x(1920,1,Un,FHe),h.Le=function(t,r){return hnn(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),x(1908,1,kr,$He),h.If=function(t,r){_Tn(l(t,121),r)},k(Aa,"DirectionProcessor",1908),x(N1,1,kr,Dit),h.If=function(t,r){qAn(this,l(t,121),r)},k(Aa,"FanProcessor",N1),x(1263,1,kr,BHe),h.If=function(t,r){iyt(l(t,121),r)},k(Aa,"GraphBoundsProcessor",1263),x(1264,1,{},UHe),h.We=function(t){return l(t,41).e.a},k(Aa,"GraphBoundsProcessor/lambda$0$Type",1264),x(1265,1,{},HHe),h.We=function(t){return l(t,41).e.b},k(Aa,"GraphBoundsProcessor/lambda$1$Type",1265),x(1266,1,{},zHe),h.We=function(t){return Den(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$2$Type",1266),x(1267,1,{},GHe),h.We=function(t){return Len(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$3$Type",1267),x(265,23,{3:1,34:1,23:1,265:1,177:1},r0),h.bg=function(){switch(this.g){case 0:return new oQe;case 1:return new Dit;case 2:return new iQe;case 3:return new YHe;case 4:return new VHe;case 8:return new qHe;case 5:return new $He;case 6:return new XHe;case 7:return new DHe;case 9:return new BHe;case 10:return new ZHe;default:throw Y(new jt(BX+(this.f!=null?this.f:""+this.g)))}};var O_e,D_e,L_e,M_e,P_e,j_e,F_e,$_e,B_e,U_e,Qte,wCn=fn(Aa,UX,265,bn,Fht,Din),oRt;x(1907,1,kr,qHe),h.If=function(t,r){INn(l(t,121),r)},k(Aa,"LevelCoordinatesProcessor",1907),x(1905,1,kr,VHe),h.If=function(t,r){Y2n(this,l(t,121),r)},h.a=0,k(Aa,"LevelHeightProcessor",1905),x(1906,1,Eh,WHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"LevelHeightProcessor/1",1906),x(1901,1,kr,iQe),h.If=function(t,r){cTn(this,l(t,121),r)},k(Aa,"LevelProcessor",1901),x(1902,1,Mn,KHe),h.Mb=function(t){return Ye(Ke(F(l(t,41),(Nr(),G1))))},k(Aa,"LevelProcessor/lambda$0$Type",1902),x(1903,1,kr,YHe),h.If=function(t,r){evn(this,l(t,121),r)},h.a=0,k(Aa,"NeighborsProcessor",1903),x(1904,1,Eh,JHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"NeighborsProcessor/1",1904),x(1909,1,kr,XHe),h.If=function(t,r){zAn(this,l(t,121),r)},h.a=0,k(Aa,"NodePositionProcessor",1909),x(1899,1,kr,oQe),h.If=function(t,r){Ixn(this,l(t,121),r)},k(Aa,"RootProcessor",1899),x(1924,1,kr,ZHe),h.If=function(t,r){Fbn(l(t,121),r)},k(Aa,"Untreeifyer",1924),x(386,23,{3:1,34:1,23:1,386:1},Kq);var kL,ene,H_e,z_e=fn(HD,"EdgeRoutingMode",386,bn,bun,Lin),sRt,NL,uk,tne,G_e,q_e,nne,rne,V_e,ine,W_e,one,r4,sne,jB,FB,sd,Id,lk,i4,o4,Ng,K_e,aRt,ane,G1,CL,IL;x(854,1,td,rKe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cve),""),KSt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Lt(),!1)),(_1(),xi)),Yr),lt((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uve),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lve),""),"Tree Level"),"The index for the tree level the node is in"),Oe(0)),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dve),""),KSt),"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"),Oe(-1)),vo),_i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fve),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),X_e),$r),uxe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hve),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),Y_e),$r),z_e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pve),""),"Search Order"),"Which search order to use when computing a spanning tree."),J_e),$r),dxe),lt(xt)))),LEt((new iKe,t))};var cRt,uRt,lRt,Y_e,dRt,fRt,J_e,hRt,pRt,X_e;k(HD,"MrTreeMetaDataProvider",854),x(999,1,td,iKe),h.tf=function(t){LEt(t)};var gRt,Z_e,Q_e,cw,exe,txe,cne,bRt,mRt,wRt,yRt,vRt,ERt,SRt,nxe,rxe,ixe,TRt,l2,$B,oxe,ARt,sxe,une,_Rt,xRt,kRt,axe,NRt,Jf,cxe;k(HD,"MrTreeOptions",999),x(yg,1,{},QHe),h.uf=function(){var t;return t=new Pit,t},h.vf=function(t){},k(HD,"MrTreeOptions/MrtreeFactory",yg),x(354,23,{3:1,34:1,23:1,354:1},b8);var lne,BB,dne,fne,uxe=fn(HD,"OrderWeighting",354,bn,Eln,Min),CRt;x(430,23,{3:1,34:1,23:1,430:1},Gle);var lxe,hne,dxe=fn(HD,"TreeifyingOrder",430,bn,wcn,Pin),IRt;x(1463,1,Fi,YWe),h.pg=function(t){return l(t,121),RRt},h.If=function(t,r){Nhn(this,l(t,121),r)};var RRt;k("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),x(1464,1,Fi,JWe),h.pg=function(t){return l(t,121),ORt},h.If=function(t,r){fTn(this,l(t,121),r)};var ORt;k(xx,"NodeOrderer",1464),x(1471,1,{},EZt),h.rd=function(t){return jot(t)},k(xx,"NodeOrderer/0methodref$lambda$6$Type",1471),x(1465,1,Mn,sze),h.Mb=function(t){return US(),Ye(Ke(F(l(t,41),(Nr(),G1))))},k(xx,"NodeOrderer/lambda$0$Type",1465),x(1466,1,Mn,aze),h.Mb=function(t){return US(),l(F(l(t,41),(js(),l2)),15).a<0},k(xx,"NodeOrderer/lambda$1$Type",1466),x(1467,1,Mn,uXe),h.Mb=function(t){return uhn(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$2$Type",1467),x(1468,1,Mn,cXe),h.Mb=function(t){return eln(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$3$Type",1468),x(1469,1,Un,cze),h.Le=function(t,r){return Rfn(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),x(1470,1,Mn,uze),h.Mb=function(t){return US(),l(F(l(t,41),(Nr(),rne)),15).a!=0},k(xx,"NodeOrderer/lambda$5$Type",1470),x(1472,1,Fi,aKe),h.pg=function(t){return l(t,121),DRt},h.If=function(t,r){wAn(this,l(t,121),r)},h.b=0;var DRt;k("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),x(1473,1,Fi,cKe),h.pg=function(t){return l(t,121),LRt},h.If=function(t,r){QTn(l(t,121),r)};var LRt,yCn=k(cu,"EdgeRouter",1473);x(1475,1,Un,tze),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(cu,"EdgeRouter/0methodref$compare$Type",1475),x(1480,1,{},nze),h.We=function(t){return ce(le(t))},k(cu,"EdgeRouter/1methodref$doubleValue$Type",1480),x(1482,1,Un,rze),h.Le=function(t,r){return vr(ce(le(t)),ce(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/2methodref$compare$Type",1482),x(1484,1,Un,ize),h.Le=function(t,r){return vr(ce(le(t)),ce(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/3methodref$compare$Type",1484),x(1486,1,{},eze),h.We=function(t){return ce(le(t))},k(cu,"EdgeRouter/4methodref$doubleValue$Type",1486),x(1488,1,Un,oze),h.Le=function(t,r){return vr(ce(le(t)),ce(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/5methodref$compare$Type",1488),x(1490,1,Un,lze),h.Le=function(t,r){return vr(ce(le(t)),ce(le(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/6methodref$compare$Type",1490),x(1474,1,{},dze),h.Kb=function(t){return dp(),l(F(l(t,41),(js(),Jf)),15)},k(cu,"EdgeRouter/lambda$0$Type",1474),x(1485,1,{},fze),h.Kb=function(t){return _nn(l(t,41))},k(cu,"EdgeRouter/lambda$11$Type",1485),x(1487,1,{},ztt),h.Kb=function(t){return Zon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(cu,"EdgeRouter/lambda$13$Type",1487),x(1489,1,{},Htt),h.Kb=function(t){return xnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(cu,"EdgeRouter/lambda$15$Type",1489),x(1491,1,Un,hze),h.Le=function(t,r){return bbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$17$Type",1491),x(1492,1,Un,pze),h.Le=function(t,r){return mbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$18$Type",1492),x(1493,1,Un,gze),h.Le=function(t,r){return ybn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$19$Type",1493),x(1476,1,Mn,lXe),h.Mb=function(t){return Fcn(this.a,l(t,41))},h.a=0,k(cu,"EdgeRouter/lambda$2$Type",1476),x(1494,1,Un,bze),h.Le=function(t,r){return wbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$20$Type",1494),x(1477,1,Un,mze),h.Le=function(t,r){return Hon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$3$Type",1477),x(1478,1,Un,wze),h.Le=function(t,r){return zon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"EdgeRouter/lambda$4$Type",1478),x(1479,1,{},yze),h.Kb=function(t){return Cnn(l(t,41))},k(cu,"EdgeRouter/lambda$5$Type",1479),x(1481,1,{},Gtt),h.Kb=function(t){return Qon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(cu,"EdgeRouter/lambda$7$Type",1481),x(1483,1,{},qtt),h.Kb=function(t){return Nnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(cu,"EdgeRouter/lambda$9$Type",1483),x(669,1,{669:1},W1t),h.e=0,h.f=!1,h.g=!1,k(cu,"MultiLevelEdgeNodeNodeGap",669),x(1881,1,Un,vze),h.Le=function(t,r){return Ycn(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),x(1882,1,Un,Eze),h.Le=function(t,r){return Jcn(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(cu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var d2;x(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},qle),h.bg=function(){return Mgt(this)},h.og=function(){return Mgt(this)};var UB,f2,fxe=fn(bve,"RadialLayoutPhases",490,bn,ycn,jin),MRt;x(1094,207,im,tet),h.kf=function(t,r){var o,a,u,f,p,m;if(o=Lwt(this,t),r.Tg("Radial layout",o.c.length),Ye(Ke(ve(t,(A1(),Txe))))||P3((a=new OA((n1(),new Yp(t))),a)),m=mwn(t),Vn(t,(cE(),d2),m),!m)throw Y(new jt(JSt));for(u=ce(le(ve(t,GB))),u==0&&(u=s0t(t)),Vn(t,GB,u),p=new V(Lwt(this,t));p.a=3)for(ye=l(ie(de,0),19),qe=l(ie(de,1),19),f=0;f+2=ye.f+qe.f+T||qe.f>=Ee.f+ye.f+T){dt=!0;break}else++f;else dt=!0;if(!dt){for(R=de.i,m=new tn(de);m.e!=m.i.gc();)p=l(rn(m),19),Vn(p,(_n(),HL),Oe(R)),--R;fvt(t,new sS),r.Ug();return}for(o=(M3(this.a),pu(this.a,(Qj(),s4),l(ve(t,eke),173)),pu(this.a,qB,l(ve(t,Kxe),173)),pu(this.a,_ne,l(ve(t,Xxe),173)),cde(this.a,(Ct=new ci,$n(Ct,s4,(TF(),Nne)),$n(Ct,qB,kne),Ye(Ke(ve(t,Vxe)))&&$n(Ct,s4,Cne),Ye(Ke(ve(t,qxe)))&&$n(Ct,s4,xne),Ct)),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(u,0),gc(u,0)}for(Gvt(this,R,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,PL,Oe(p)),p+=1;for(N=new V(o);N.a0&&Zpt((Jt(r-1,t.length),t.charCodeAt(r-1)),cSt);)--r;if(a>=r)throw Y(new jt("The given string does not contain any numbers."));if(u=Cy((io(a,r,t.length),t.substr(a,r-a)),`,|;|\r| `),u.length!=2)throw Y(new jt("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=Sy(Ty(u[0])),this.b=Sy(Ty(u[1]))}catch(f){throw f=ui(f),se(f,133)?(o=f,Y(new jt(uSt+o))):Y(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=k(PD,"KVector",8);x(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Lc,U9,nit),h.Nc=function(){return Gpn(this)},h.ag=function(t){var r,o,a,u,f,p;a=Cy(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | `),tu(this);try{for(o=0,f=0,u=0,p=0;o0&&(f%2==0?u=Sy(a[o]):p=Sy(a[o]),f>0&&f%2!=0&&Gn(this,new Me(u,p)),++f),++o}catch(m){throw m=ui(m),se(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 fu("("),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 Gke=k(PD,"KVectorChain",79);x(259,23,{3:1,34:1,23:1,259:1},s3);var ure,tU,nU,jL,FL,rU,qke=fn(Fa,"Alignment",259,bn,Wdn,fon),L6t;x(984,1,td,gKe),h.tf=function(t){Kyt(t)};var Vke,lre,M6t,Wke,Kke,P6t,Yke,j6t,F6t,Jke,Xke,$6t;k(Fa,"BoxLayouterOptions",984),x(985,1,{},jGe),h.uf=function(){var t;return t=new BGe,t},h.vf=function(t){},k(Fa,"BoxLayouterOptions/BoxFactory",985),x(300,23,{3:1,34:1,23:1,300:1},a3);var g4,dre,b4,m4,w4,fre,hre=fn(Fa,"ContentAlignment",300,bn,Vdn,hon),B6t;x(696,1,td,Wce),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,vTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(_1(),HT)),Je),lt((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,ETt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),SCn),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Fye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Zke),$r),qke),lt(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."),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,oEe),""),"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),Gke),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,I7),""),"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."),eNe),UT),hre),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UD),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Lt(),!1)),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),tNe),$r),E4),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,BD),""),"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."),iNe),$r),xre),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rEe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,C7),""),"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`."),sNe),$r),YNe),xr(xt,Z(X(uf,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."),mNe),lf),J2e),xr(xt,Z(X(uf,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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,O7),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),xi),Yr),lt(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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,d7),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),SNe),$r),ZNe),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,R7),""),"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(uf,1),Ce,161,0,[Cg,Np]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,CD),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),vo),_i),xr(ri,Z(X(uf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,l7),""),"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)."),vo),_i),lt(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."),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Yye),""),"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."),uNe),lf),Gke),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Qye),""),"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),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eve),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Y3n),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),lf),NCn),xr(xt,Z(X(uf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,STt),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),Qi),fi),lt(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CZ),""),"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."),lNe),lf),Y2e),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pye),""),"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),xi),Yr),xr(ri,Z(X(uf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TTt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),fi),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,ATt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,_Tt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RD),""),gTt),"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),xi),Yr),lt(xt)))),zr(t,RD,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xTt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kTt),""),"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'."),Oe(100)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,NTt),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CTt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Oe(4e3)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ITt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Oe(400)),vo),_i),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RTt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OTt),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DTt),""),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LTt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iEe),"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."),Qke),$r),d3e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,MTt),"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."),cNe),$r),t3e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,PTt),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),aNe),$r),PNe),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Aye),of),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_ye),of),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xye),of),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kye),of),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jX),of),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_Z),of),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Nye),of),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rye),of),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cye),of),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iye),of),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),fi),lt(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),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Oye),of),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),fi),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Dye),of),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),fi),xr(xt,Z(X(uf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Lye),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),PDt),xr(ri,Z(X(uf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nve),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."),ONe),lf),Y2e),lt(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,NZ),$Tt),"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)."),vo),_i),xr(xt,Z(X(uf,1),Ce,161,0,[ri]))))),zr(t,NZ,kZ,Z6t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kZ),$Tt),"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."),wNe),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Uye),BTt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),fNe),lf),J2e),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ex),BTt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),hNe),UT),Go),xr(ri,Z(X(uf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Gye),B7),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),vNe),$r),_4),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,qye),B7),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),$r),_4),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Vye),B7),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),$r),_4),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Wye),B7),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),$r),_4),lt(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Kye),B7),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),$r),_4),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,PE),nQ),"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."),pNe),UT),N4),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bT),nQ),"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."),bNe),UT),n3e),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mT),nQ),"Node Size Minimum"),"The minimal size to which a node can be reduced."),gNe),lf),$i),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vx),nQ),"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),xi),Yr),lt(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xye),AZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),nNe),$r),jNe),lt(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ID),AZ),"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),xi),Yr),lt(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,J3n),"font"),"Font Name"),"Font name used for a label."),HT),Je),lt(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,jTt),"font"),"Font Size"),"Font size used for a label."),vo),_i),lt(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,tve),rQ),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),lf),$i),lt(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Zye),rQ),"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."),vo),_i),lt(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jye),rQ),"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."),_Ne),$r),Oo),lt(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Mye),rQ),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),fi),lt(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sx),cEe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),TNe),UT),dU),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Hye),cEe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zye),cEe),"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),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eQ),Rx),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Oe(3)),vo),_i),lt(xt)))),zr(t,eQ,tQ,lDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sEe),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."),Oe(4)),vo),_i),lt(xt)))),zr(t,sEe,eQ,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OD),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),Qi),fi),lt(xt)))),zr(t,OD,U0,aDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tQ),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),TCn),lt(ri)))),zr(t,tQ,U0,cDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DD),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),Qi),fi),xr(xt,Z(X(uf,1),Ce,161,0,[ri]))))),zr(t,DD,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LD),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),Qi),fi),xr(xt,Z(X(uf,1),Ce,161,0,[ri]))))),zr(t,LD,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),i3e),lt(ri)))),zr(t,U0,vx,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aEe),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),Qi),fi),lt(xt)))),zr(t,aEe,U0,sDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$ye),UTt),"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),xi),Yr),lt(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bye),UTt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),xi),Yr),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Jye),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),fi),lt(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,FTt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),oNe),$r),zNe),lt(Rd)))),XN(t,new LS(qN(FA(jA(new eS,$t),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),XN(t,new LS(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 LS(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 LS(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 LS(qN(FA(jA(new eS,gve),"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 LS(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 LS(qN(FA(jA(new eS,Qu),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Oyt((new bKe,t)),Kyt((new gKe,t)),ryt((new mKe,t))};var zT,U6t,Zke,gk,H6t,z6t,Qke,cv,uv,G6t,$L,eNe,BL,Tm,tNe,iU,pre,nNe,rNe,iNe,q6t,oNe,V6t,p2,sNe,W6t,UL,gre,y4,bre,K6t,aNe,Y6t,cNe,g2,uNe,Cp,lNe,dNe,fNe,b2,hNe,Am,pNe,lv,m2,gNe,q1,bNe,oU,v4,df,mNe,J6t,wNe,X6t,Z6t,yNe,vNe,mre,wre,yre,vre,ENe,zc,bk,SNe,Ere,Sre,dv,TNe,ANe,w2,_Ne,GT,HL,Tre,fv,Q6t,Are,eDt,tDt,nDt,rDt,xNe,kNe,qT,NNe,sU,CNe,INe,Od,iDt,RNe,ONe,DNe,mk,hv,wk,VT,oDt,sDt,aU,aDt,cU,cDt,uDt,lDt,dDt;k(Fa,"CoreOptions",696),x(87,23,{3:1,34:1,23:1,87:1},TO);var ff,cs,fs,hf,il,E4=fn(Fa,"Direction",87,bn,ndn,pon),fDt;x(280,23,{3:1,34:1,23:1,280:1},v8);var uU,zL,LNe,MNe,PNe=fn(Fa,"EdgeCoords",280,bn,xln,gon),hDt;x(281,23,{3:1,34:1,23:1,281:1},nV);var yk,pv,vk,jNe=fn(Fa,"EdgeLabelPlacement",281,bn,xun,bon),pDt;x(225,23,{3:1,34:1,23:1,225:1},E8);var Ek,GL,WT,_re,xre=fn(Fa,"EdgeRouting",225,bn,kln,mon),gDt;x(328,23,{3:1,34:1,23:1,328:1},c3);var FNe,$Ne,BNe,UNe,kre,HNe,zNe=fn(Fa,"EdgeType",328,bn,qdn,won),bDt;x(982,1,td,bKe),h.tf=function(t){Oyt(t)};var GNe,qNe,VNe,WNe,mDt,KNe,S4;k(Fa,"FixedLayouterOptions",982),x(983,1,{},FGe),h.uf=function(){var t;return t=new WGe,t},h.vf=function(t){},k(Fa,"FixedLayouterOptions/FixedFactory",983),x(348,23,{3:1,34:1,23:1,348:1},rV);var Ig,lU,T4,YNe=fn(Fa,"HierarchyHandling",348,bn,Nun,yon),wDt,TCn=Hr(Fa,"ITopdownSizeApproximator");x(293,23,{3:1,34:1,23:1,293:1},S8);var Ih,V1,qL,VL,yDt=fn(Fa,"LabelSide",293,bn,Nln,von),vDt;x(96,23,{3:1,34:1,23:1,96:1},Xv);var Ip,ad,Cl,cd,ku,ud,Il,Rh,ld,Go=fn(Fa,"NodeLabelPlacement",96,bn,Jfn,Eon),EDt;x(260,23,{3:1,34:1,23:1,260:1},AO);var JNe,A4,W1,XNe,WL,_4=fn(Fa,"PortAlignment",260,bn,mdn,Son),SDt;x(103,23,{3:1,34:1,23:1,103:1},u3);var _m,fa,Oh,Sk,pf,K1,ZNe=fn(Fa,"PortConstraints",103,bn,Kdn,Ton),TDt;x(282,23,{3:1,34:1,23:1,282:1},l3);var x4,k4,Rp,KL,Y1,KT,dU=fn(Fa,"PortLabelPlacement",282,bn,Ydn,Aon),ADt;x(64,23,{3:1,34:1,23:1,64:1},_O);var Qt,Vt,ol,sl,ic,Wa,gf,dd,Ic,vc,ka,Rc,oc,sc,fd,Nu,Cu,Rl,dn,Is,Wt,Oo=fn(Fa,"PortSide",64,bn,rdn,xon),_Dt;x(986,1,td,mKe),h.tf=function(t){ryt(t)};var xDt,kDt,QNe,NDt,CDt;k(Fa,"RandomLayouterOptions",986),x(987,1,{},$Ge),h.uf=function(){var t;return t=new XGe,t},h.vf=function(t){},k(Fa,"RandomLayouterOptions/RandomFactory",987),x(301,23,{3:1,34:1,23:1,301:1},iV);var YL,Nre,e3e,t3e=fn(Fa,"ShapeCoords",301,bn,_un,_on),IDt;x(381,23,{3:1,34:1,23:1,381:1},T8);var gv,JL,XL,xm,N4=fn(Fa,"SizeConstraint",381,bn,Cln,kon),RDt;x(267,23,{3:1,34:1,23:1,267:1},Zv);var ZL,fU,Tk,Cre,QL,C4,hU,pU,gU,n3e=fn(Fa,"SizeOptions",267,bn,rhn,Non),ODt;x(283,23,{3:1,34:1,23:1,283:1},oV);var bv,r3e,bU,i3e=fn(Fa,"TopdownNodeTypes",283,bn,kun,Con),DDt;x(290,23,H7);var o3e,Ire,s3e,a3e,e5=fn(Fa,"TopdownSizeApproximator",290,bn,Iln,Ion);x(978,290,H7,Uot),h.Sg=function(t){return P1t(t)},fn(Fa,"TopdownSizeApproximator/1",978,e5,null,null),x(979,290,H7,_st),h.Sg=function(t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft,Ct;for(r=l(ve(t,(_n(),fv)),144),qe=(t1(),M=new $N,M),nD(qe,t),dt=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),oe=(R=new $N,R),PF(oe,qe),nD(oe,a),Ct=P1t(a),i0(oe,b.Math.max(a.g,Ct.a),b.Math.max(a.f,Ct.b)),ec(dt.f,a,oe);for(u=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));u.e!=u.i.gc();)for(a=l(rn(u),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(ns(dt.f,a)),19),ye=l(Ut(dt,ie((!v.c&&(v.c=new Tt(pn,v,5,8)),v.c),0)),19),de=(N=new MG,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),MF(de,Br(Ee)),nD(de,v);G=l(JO(r.f),207);try{G.kf(qe,new LG),vhe(r.f,G)}catch(Ot){throw Ot=ui(Ot),se(Ot,102)?(U=Ot,Y(U)):Y(Ot)}return Gu(qe,uv)||Gu(qe,cv)||WJ(qe),y=ce(le(ve(qe,uv))),m=ce(le(ve(qe,cv))),p=y/m,o=ce(le(ve(qe,hv)))*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),x(980,290,H7,Zat),h.Sg=function(t){var r,o,a,u,f,p;return o=ce(le(ve(t,(_n(),hv)))),r=o/ce(le(ve(t,mk))),a=f_n(t),f=l(ve(t,df),100),u=ce(le(Ge(Od))),Br(t)&&(u=ce(le(ve(Br(t),Od)))),p=tp(new Me(o,r),a),mr(p,new Me(-(f.b+f.c)-u,-(f.d+f.a)-u))},fn(Fa,"TopdownSizeApproximator/3",980,e5,null,null),x(981,290,H7,xst),h.Sg=function(t){var r,o,a,u,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(),cU))!=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,cU),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,ce(le(ve(f,hv))),ce(le(ve(f,hv)))/ce(le(ve(f,mk))));r=l(ve(t,(_n(),fv)),144),y=l(JO(r.f),207);try{y.kf(t,new LG),vhe(r.f,y)}catch(N){throw N=ui(N),se(N,102)?(m=N,Y(m)):Y(N)}return Vn(t,zT,Ox),Vut(t),WJ(t),u=ce(le(ve(t,uv))),a=ce(le(ve(t,cv))),new Me(u,a)},fn(Fa,"TopdownSizeApproximator/4",981,e5,null,null);var LDt;x(346,1,{861:1},sS),h.Tg=function(t,r){return Jbt(this,t,r)},h.Ug=function(){Amt(this)},h.Vg=function(){return this.q},h.Wg=function(){return this.f?IP(this.f):null},h.Xg=function(){return IP(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&&Vun(this,(o=new Gst,a=xJ(o,t),eNn(o),a),(jj(),Ore))},h.dh=function(t){var r;return this.b?null:(r=Lfn(this,this.g),Gn(this.a,r),r.i=this,this.d=t,r)},h.eh=function(t){t>0&&!this.b&&bge(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),x(713,207,im,BGe),h.kf=function(t,r){fvt(t,r)},k(Vs,"BoxLayoutProvider",713),x(974,1,Un,SXe),h.Le=function(t,r){return X2n(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),x(168,1,{168:1},pj,rit),h.Ib=function(){return this.c?u0e(this.c):Qd(this.b)},k(Vs,"BoxLayoutProvider/Group",168),x(327,23,{3:1,34:1,23:1,327:1},A8);var c3e,u3e,l3e,Rre,d3e=fn(Vs,"BoxLayoutProvider/PackingMode",327,bn,Rln,Ron),MDt;x(975,1,Un,UGe),h.Le=function(t,r){return Xan(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),x(976,1,Un,HGe),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$1$Type",976),x(977,1,Un,zGe),h.Le=function(t,r){return Uan(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),x(1350,1,{837:1},GGe),h.Lg=function(t,r){return K9(),!se(r,176)||set((qS(),l(t,176)),r)},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),x(1351,1,nn,TXe),h.Ad=function(t){qpn(this.a,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),x(1352,1,nn,qGe),h.Ad=function(t){l(t,105),K9()},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),x(1356,1,nn,AXe),h.Ad=function(t){mhn(this.a,l(t,105))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),x(1354,1,Mn,Ktt),h.Mb=function(t){return Cpn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),x(1353,1,Mn,Ytt),h.Mb=function(t){return knn(this.a,this.b,l(t,837))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),x(1355,1,nn,Jtt),h.Ad=function(t){Lsn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),x(939,1,{},VGe),h.Kb=function(t){return Ynt(t)},h.Fb=function(t){return this===t},k(Vs,"ElkUtil/lambda$0$Type",939),x(940,1,nn,Xtt),h.Ad=function(t){Zvn(this.a,this.b,l(t,74))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$1$Type",940),x(941,1,nn,Ztt),h.Ad=function(t){IQt(this.a,this.b,l(t,171))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$2$Type",941),x(942,1,nn,Qtt),h.Ad=function(t){Ttn(this.a,this.b,l(t,158))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$3$Type",942),x(943,1,nn,_Xe),h.Ad=function(t){nsn(this.a,l(t,373))},k(Vs,"ElkUtil/lambda$4$Type",943),x(332,1,{34:1,332:1},oQt),h.Dd=function(t){return Ytn(this,l(t,245))},h.Fb=function(t){var r;return se(t,332)?(r=l(t,332),this.a==r.a):!1},h.Hb=function(){return bo(this.a)},h.Ib=function(){return this.a+" (exclusive)"},h.a=0,k(Vs,"ExclusiveBounds/ExclusiveLowerBound",332),x(1100,207,im,WGe),h.kf=function(t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re,oe,de,Ee,ye,qe,dt,ft;for(r.Tg("Fixed Layout",1),f=l(ve(t,(_n(),rNe)),225),N=0,R=0,oe=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));oe.e!=oe.i.gc();){for(J=l(rn(oe),19),ft=l(ve(J,(Fj(),S4)),8),ft&&(Bu(J,ft.a,ft.b),l(ve(J,qNe),185).Gc((su(),gv))&&(M=l(ve(J,WNe),8),M.a>0&&M.b>0&&M0(J,M.a,M.b,!0,!0))),N=b.Math.max(N,J.i+J.g),R=b.Math.max(R,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&&Bu(m,ft.a,ft.b),N=b.Math.max(N,J.i+m.i+m.g),R=b.Math.max(R,J.j+m.j+m.f);for(ye=new tn((!J.c&&(J.c=new ke(Gc,J,9,9)),J.c));ye.e!=ye.i.gc();)for(Ee=l(rn(ye),127),ft=l(ve(Ee,S4),8),ft&&Bu(Ee,ft.a,ft.b),qe=J.i+Ee.i,dt=J.j+Ee.j,N=b.Math.max(N,qe+Ee.g),R=b.Math.max(R,dt+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&&Bu(m,ft.a,ft.b),N=b.Math.max(N,qe+m.i+m.g),R=b.Math.max(R,dt+m.j+m.f);for(u=new Ft(Gt(mp(J).a.Jc(),new D));an(u);)o=l(en(u),74),T=NEt(o),N=b.Math.max(N,T.a),R=b.Math.max(R,T.b);for(a=new Ft(Gt(OF(J).a.Jc(),new D));an(a);)o=l(en(a),74),Br(QY(o))!=t&&(T=NEt(o),N=b.Math.max(N,T.a),R=b.Math.max(R,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 Ft(Gt(mp(J).a.Jc(),new D));an(a);)o=l(en(a),74),p=XAn(o),p.b==0?Vn(o,g2,null):Vn(o,g2,p);Ye(Ke(ve(t,(Fj(),VNe))))||(de=l(ve(t,mDt),100),G=N+de.b+de.c,U=R+de.d+de.a,M0(t,G,U,!0,!0)),r.Ug()},k(Vs,"FixedLayoutProvider",1100),x(380,151,{3:1,419:1,380:1,105:1,151:1},DG,Qdt),h.ag=function(t){var r,o,a,u,f,p,m,y,v;if(t)try{for(y=Cy(t,";,;"),f=y,p=0,m=f.length;p>16&Ti|r^a<<16},h.Jc=function(){return new xXe(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),x(988,1,Wi,xXe),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 lc)},h.b=!1,h.c=!1,k(Vs,"Pair/1",988),x(1089,207,im,XGe),h.kf=function(t,r){var o,a,u,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,(M1e(),NDt)),15),f&&f.a!=0?u=new KP(f.a):u=new sY,o=rO(le(ve(t,xDt))),p=rO(le(ve(t,CDt))),a=l(ve(t,kDt),100),ENn(t,u,o,p,a),r.Ug()},k(Vs,"RandomLayoutProvider",1089),x(243,1,{243:1},FV),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 $j(Z(X(Ri,1),It,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 $Dt;x(554,1,{}),h.Jf=function(){return new Me(this.f.i,this.f.j)},h.mf=function(t){return Yat(t,(_n(),zc))?ve(this.f,BDt):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 Gu(this.f,t)},h.Mf=function(t){va(this.f,t.a),gc(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 BDt;k(rI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),x(556,1,{845:1},k9),h.Pf=function(){var t,r;if(!this.b)for(this.b=BP(gW(this.a).i),r=new tn(gW(this.a));r.e!=r.i.gc();)t=l(rn(r),158),Fe(this.b,new dq(t));return this.b},h.b=null,k(rI,"ElkGraphAdapters/ElkEdgeAdapter",556),x(250,554,{},Yp),h.Qf=function(){return nbt(this)},h.a=null,k(rI,"ElkGraphAdapters/ElkGraphAdapter",250),x(637,554,{190:1},dq),k(rI,"ElkGraphAdapters/ElkLabelAdapter",637),x(555,554,{692:1},U8),h.Pf=function(){return ymn(this)},h.Tf=function(){var t;return t=l(ve(this.f,(_n(),Cp)),125),!t&&(t=new FN),t},h.Vf=function(){return vmn(this)},h.Xf=function(t){var r;r=new PV(t),Vn(this.f,(_n(),Cp),r)},h.Yf=function(t){Vn(this.f,(_n(),df),new yfe(t))},h.Rf=function(){return this.d},h.Sf=function(){var t,r;if(!this.a)for(this.a=new je,r=new Ft(Gt(OF(l(this.f,19)).a.Jc(),new D));an(r);)t=l(en(r),74),Fe(this.a,new k9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=new je,r=new Ft(Gt(mp(l(this.f,19)).a.Jc(),new D));an(r);)t=l(en(r),74),Fe(this.c,new k9(t));return this.c},h.Wf=function(){return NP(l(this.f,19)).i!=0||Ye(Ke(l(this.f,19).mf((_n(),UL))))},h.Zf=function(){pfn(this,(n1(),$Dt))},h.a=null,h.b=null,h.c=null,h.d=null,h.e=null,k(rI,"ElkGraphAdapters/ElkNodeAdapter",555),x(1261,554,{844:1},kXe),h.Pf=function(){return kmn(this)},h.Sf=function(){var t,r;if(!this.a)for(this.a=uh(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 k9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=uh(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 k9(t));return this.c},h.$f=function(){return l(l(this.f,127).mf((_n(),w2)),64)},h._f=function(){var t,r,o,a,u,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),ly(Jo(p),a))return!0;if(Jo(p)==a&&Ye(Ke(ve(t,(_n(),gre)))))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(u=l(rn(f),83),ly(Jo(u),a))return!0;return!1},h.a=null,h.b=null,h.c=null,k(rI,"ElkGraphAdapters/ElkPortAdapter",1261),x(1262,1,Un,ZGe),h.Le=function(t,r){return zTn(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 J1=Hr(el,"EObject"),Ak=Hr(BE,GTt),Iu=Hr(BE,qTt),t5=Hr(BE,VTt),n5=Hr(BE,"ElkShape"),pn=Hr(BE,WTt),Ir=Hr(BE,lEe),jr=Hr(BE,KTt),r5=Hr(el,YTt),I4=Hr(el,"EFactory"),UDt,Dre=Hr(el,JTt),Dd=Hr(el,"EPackage"),Bi,HDt,zDt,g3e,mU,GDt,b3e,m3e,w3e,Dh,qDt,VDt,Rs=Hr(BE,dEe),En=Hr(BE,fEe),Gc=Hr(BE,hEe);x(94,1,XTt),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){pr(this,t)},k(vT,"BasicNotifierImpl",94),x(101,94,tAt),h.Vh=function(){return Jc(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(kt(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 Su(this,t,r,o)},h.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},h.Bh=function(){return dJ(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=Mhe(Ff(this.Ah())),t==null?Ure: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 aF(this,t,r,o)},h.Jh=function(t){return p_(this,t)},h.Kh=function(t,r){return YW(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 nF(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(kt(this.Ah(),r),69),a.uk().xk(this,this.ei(),r-this.gi(),t,o)},h.Qh=function(t,r,o,a){return DP(this,t,r,a)},h.Rh=function(t,r,o){var a;return a=l(kt(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 EY(this,t)},h.Uh=function(t){return dct(this,t)},h.Wh=function(t){return lEt(this,t)},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return this.wh()?this.wh().Nk():null},h.Zh=function(){return nF(this)},h.$h=function(t,r){sJ(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,u,f;return f=this.Gh(),f&&t&&(r=xo(f.Cl(),this,r),f.Gl(this)),a=this.Mh(),a&&(TJ(this,this.Mh(),this.Ch()).Bb&Io?(u=a.Nh(),u&&(t?!f&&u.Gl(this):u.Fl(this))):(r=(o=this.Ch(),o>=0?this.xh(r):this.Mh().Qh(this,-1-o,null,r)),r=this.zh(null,-1,r))),this.ai(t),r},h.di=function(t){var r,o,a,u,f,p,m,y;if(o=this.Ah(),f=Ur(o,t),r=this.gi(),f>=r)return l(t,69).uk().Bk(this,this.ei(),f-r);if(f<=-1)if(p=RE((mc(),ao),o,t),p){if(Mo(),l(p,69).vk()||(p=MS(is(ao,p))),u=(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(u,222).Ql(t,!1),78)}else throw Y(new jt(O1+t.ve()+iQ));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 Ent(this,t),m},h.ei=function(){return zpe(this)},h.fi=function(){return(c1(),Bt).S},h.gi=function(){return ln(this.fi())},h.hi=function(t){rJ(this,t)},h.Ib=function(){return Zl(this)},k(zt,"BasicEObjectImpl",101);var WDt;x(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=Hpe(this),r[t]},h.ji=function(t,r){var o;o=Hpe(this),ii(o,t,r)},h.ki=function(t){var r;r=Hpe(this),ii(r,t,null)},h.qh=function(){return l(qt(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=Mhe(Ff((t=l(qt(this,16),29),t||this.fi()))),r==null?Ure:new RO(this,r)},h.th=function(){return(this.Db&1)==0},h.Gh=function(){return l(qt(this,128),2013)},h.Hh=function(){return l(qt(this,16),29)},h.Lh=function(){return(this.Db&32)!=0},h.Mh=function(){return l(qt(this,2),52)},h.Sh=function(){return(this.Db&64)!=0},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return l(qt(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(zt,"MinimalEObjectImpl",118),x(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(zt,"MinimalEObjectImpl/Container",119),x(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 ibe(this,t,r,o)},h.Rh=function(t,r,o){return Wbe(this,t,r,o)},h.Th=function(t){return Yhe(this,t)},h.$h=function(t,r){zge(this,t,r)},h.fi=function(){return Qs(),VDt},h.hi=function(t){Oge(this,t)},h.lf=function(){return S1t(this)},h.fh=function(){return!this.o&&(this.o=new pc((Qs(),Dh),Rg,this,0)),this.o},h.mf=function(t){return ve(this,t)},h.nf=function(t){return Gu(this,t)},h.of=function(t,r){return Vn(this,t,r)},k(am,"EMapPropertyHolderImpl",2062),x(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},m9),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return aF(this,t,r,o)},h.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return EY(this,t)},h.$h=function(t,r){switch(t){case 0:bj(this,ce(le(r)));return;case 1:gj(this,ce(le(r)));return}sJ(this,t,r)},h.fi=function(){return Qs(),HDt},h.hi=function(t){switch(t){case 0:bj(this,0);return;case 1:gj(this,0);return}rJ(this,t)},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new ml(Zl(this)),t.a+=" (x: ",Wv(t,this.a),t.a+=", y: ",Wv(t,this.b),t.a+=")",t.a)},h.a=0,h.b=0,k(am,"ElkBendPointImpl",566),x(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 u1e(this,t,r,o)},h.Ph=function(t,r,o){return YY(this,t,r,o)},h.Rh=function(t,r,o){return OK(this,t,r,o)},h.Th=function(t){return _ge(this,t)},h.$h=function(t,r){Tbe(this,t,r)},h.fi=function(){return Qs(),GDt},h.hi=function(t){o1e(this,t)},h.ih=function(){return this.k},h.jh=function(){return gW(this)},h.Ib=function(){return oY(this)},h.k=null,k(am,"ElkGraphElementImpl",734),x(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 E1e(this,t,r,o)},h.Th=function(t){return R1e(this,t)},h.$h=function(t,r){Abe(this,t,r)},h.fi=function(){return Qs(),qDt},h.hi=function(t){O1e(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){Bu(this,t,r)},h.Ib=function(){return tJ(this)},h.f=0,h.g=0,h.i=0,h.j=0,k(am,"ElkShapeImpl",735),x(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 Z1e(this,t,r,o)},h.Ph=function(t,r,o){return mbe(this,t,r,o)},h.Rh=function(t,r,o){return wbe(this,t,r,o)},h.Th=function(t){return jge(this,t)},h.$h=function(t,r){Rme(this,t,r)},h.fi=function(){return Qs(),zDt},h.hi=function(t){W1e(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),x(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},MG),h.xh=function(t){return hbe(this,t)},h.Ih=function(t,r,o){switch(t){case 3:return ry(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 Lt(),!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 Lt(),!!AC(this);case 9:return Lt(),!!R0(this);case 10:return Lt(),!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 u1e(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?hbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Kde(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 YY(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 3:return Kde(this,null,o);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),xo(this.b,t,o);case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),xo(this.c,t,o);case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),xo(this.a,t,o)}return OK(this,t,r,o)},h.Th=function(t){switch(t){case 3:return!!ry(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 _ge(this,t)},h.$h=function(t,r){switch(t){case 3:MF(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}Tbe(this,t,r)},h.fi=function(){return Qs(),g3e},h.hi=function(t){switch(t){case 3:MF(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}o1e(this,t)},h.Ib=function(){return Cvt(this)},k(am,"ElkEdgeImpl",273),x(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},b9),h.xh=function(t){return ube(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 Ei(Iu,this,5)),this.a;case 6:return act(this);case 7:return r?xY(this):this.i;case 8:return r?_Y(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 ibe(this,t,r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?ube(this,o):this.Cb.Qh(this,-1-u,null,o))),Yde(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(kt((a=l(qt(this,16),29),a||(Qs(),mU)),r),69),f.uk().xk(this,Ha(this),r-ln((Qs(),mU)),t,o)},h.Rh=function(t,r,o){switch(r){case 5:return!this.a&&(this.a=new Ei(Iu,this,5)),xo(this.a,t,o);case 6:return Yde(this,null,o);case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),xo(this.g,t,o);case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),xo(this.e,t,o)}return Wbe(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!!act(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 Yhe(this,t)},h.$h=function(t,r){switch(t){case 1:E0(this,ce(le(r)));return;case 2:S0(this,ce(le(r)));return;case 3:y0(this,ce(le(r)));return;case 4:v0(this,ce(le(r)));return;case 5:!this.a&&(this.a=new Ei(Iu,this,5)),vn(this.a),!this.a&&(this.a=new Ei(Iu,this,5)),ti(this.a,l(r,18));return;case 6:Awt(this,l(r,74));return;case 7:Tj(this,l(r,83));return;case 8:Sj(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:pge(this,In(r));return}zge(this,t,r)},h.fi=function(){return Qs(),mU},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 Ei(Iu,this,5)),vn(this.a);return;case 6:Awt(this,null);return;case 7:Tj(this,null);return;case 8:Sj(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:pge(this,null);return}Oge(this,t)},h.Ib=function(){return M0t(this)},h.b=0,h.c=0,h.d=null,h.j=0,h.k=0,k(am,"ElkEdgeSectionImpl",446),x(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):qu(this,t-ln(this.fi()),kt((a=l(qt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o)):(u=l(kt((a=l(qt(this,16),29),a||this.fi()),r),69),u.uk().xk(this,Ha(this),r-ln(this.fi()),t,o))},h.Rh=function(t,r,o){var a,u;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o)):(u=l(kt((a=l(qt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o))},h.Th=function(t){var r;return t==0?!!this.Ab&&this.Ab.i!=0:zu(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.Wh=function(t){return Y0e(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}Xu(this,t-ln(this.fi()),kt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.ai=function(t){KS(this,128,t)},h.fi=function(){return _t(),dLt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return}Ju(this,t-ln(this.fi()),kt((r=l(qt(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(zt,"EModelElementImpl",162),x(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},Kce),h.oi=function(t,r){return rEt(this,t,r)},h.pi=function(t){var r,o,a,u,f;if(this.a!=mu(t)||t.Bb&256)throw Y(new jt(sQ+t.zb+W0));for(a=ds(t);oa(a.a).i!=0;){if(o=l(dD(a,0,(r=l(ie(oa(a.a),0),88),f=r.c,se(f,89)?l(f,29):(_t(),Ml))),29),I0(o))return u=mu(o).ti().pi(o),l(u,52)._h(t),u;a=ds(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Bot(t):new Mfe(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 qu(this,t-ln((_t(),eb)),kt((a=l(qt(this,16),29),a||eb),t),r,o)},h.Ph=function(t,r,o){var a,u;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,Dd,o)),n1e(this,l(t,244),o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),eb)),r),69),u.uk().xk(this,Ha(this),r-ln((_t(),eb)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 1:return n1e(this,null,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),eb)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),eb)),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 zu(this,t-ln((_t(),eb)),kt((r=l(qt(this,16),29),r||eb),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:umt(this,l(r,244));return}Xu(this,t-ln((_t(),eb)),kt((o=l(qt(this,16),29),o||eb),t),r)},h.fi=function(){return _t(),eb},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:umt(this,null);return}Ju(this,t-ln((_t(),eb)),kt((r=l(qt(this,16),29),r||eb),t))};var R4,y3e,KDt;k(zt,"EFactoryImpl",717),x(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},eqe),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(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f,p,m,y;switch(t.G==-1&&(t.G=(r=mu(t),r?gg(r.si(),t):-1)),t.G){case 4:return f=new zce,f;case 6:return p=new $N,p;case 7:return m=new Bue,m;case 8:return a=new MG,a;case 9:return o=new m9,o;case 10:return u=new b9,u;case 11:return y=new tqe,y;default:throw Y(new jt(sQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 13:case 12:return null;default:throw Y(new jt(Dx+t.ve()+W0))}},k(am,"ElkGraphFactoryImpl",1029),x(444,162,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),h.Dh=function(){var t,r;return r=(t=l(qt(this,16),29),Mhe(Ff(t||this.fi()))),r==null?(QN(),QN(),Ure):new oit(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 qu(this,t-ln(this.fi()),kt((a=l(qt(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 zu(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new 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}Xu(this,t-ln(this.fi()),kt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),fLt},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}Ju(this,t-ln(this.fi()),kt((r=l(qt(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(zt,"ENamedElementImpl",444),x(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},$at),h.xh=function(t){return wbt(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 Qw(this,Ld,this)),this.rb;case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),this.vb;case 7:return r?this.Db>>16==7?l(this.Cb,244):null:bct(this)}return qu(this,t-ln((_t(),Mg)),kt((a=l(qt(this,16),29),a||Mg),t),r,o)},h.Ph=function(t,r,o){var a,u,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)),s1e(this,l(t,472),o);case 5:return!this.rb&&(this.rb=new Qw(this,Ld,this)),Pa(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),Pa(this.vb,t,o);case 7:return this.Cb&&(o=(u=this.Db>>16,u>=0?wbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,7,o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 4:return s1e(this,null,o);case 5:return!this.rb&&(this.rb=new Qw(this,Ld,this)),xo(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),xo(this.vb,t,o);case 7:return Su(this,null,7,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Mg)),r),69),u.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!!bct(this)}return zu(this,t-ln((_t(),Mg)),kt((r=l(qt(this,16),29),r||Mg),t))},h.Wh=function(t){var r;return r=aSn(this,t),r||Y0e(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:Nj(this,In(r));return;case 3:kj(this,In(r));return;case 4:eJ(this,l(r,472));return;case 5:!this.rb&&(this.rb=new Qw(this,Ld,this)),vn(this.rb),!this.rb&&(this.rb=new Qw(this,Ld,this)),ti(this.rb,l(r,18));return;case 6:!this.vb&&(this.vb=new TS(Dd,this,6,7)),vn(this.vb),!this.vb&&(this.vb=new TS(Dd,this,6,7)),ti(this.vb,l(r,18));return}Xu(this,t-ln((_t(),Mg)),kt((o=l(qt(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),se(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:Nj(this,null);return;case 3:kj(this,null);return;case 4:eJ(this,null);return;case 5:!this.rb&&(this.rb=new Qw(this,Ld,this)),vn(this.rb);return;case 6:!this.vb&&(this.vb=new TS(Dd,this,6,7)),vn(this.vb);return}Ju(this,t-ln((_t(),Mg)),kt((r=l(qt(this,16),29),r||Mg),t))},h.mi=function(){$Y(this)},h.si=function(){return!this.rb&&(this.rb=new Qw(this,Ld,this)),this.rb},h.ti=function(){return this.sb},h.ui=function(){return this.ub},h.vi=function(){return this.xb},h.wi=function(){return this.yb},h.xi=function(t){this.ub=t},h.Ib=function(){var t;return this.Db&64?iC(this):(t=new ml(iC(this)),t.a+=" (nsURI: ",Wo(t,this.yb),t.a+=", nsPrefix: ",Wo(t,this.xb),t.a+=")",t.a)},h.xb=null,h.yb=null,k(zt,"EPackageImpl",187),x(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},z0t),h.q=!1,h.r=!1;var YDt=!1;k(am,"ElkGraphPackageImpl",563),x(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},zce),h.xh=function(t){return lbe(this,t)},h.Ih=function(t,r,o){switch(t){case 7:return Bhe(this);case 8:return this.a}return E1e(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?lbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Yfe(this,l(t,176),o)}return YY(this,t,r,o)},h.Rh=function(t,r,o){return r==7?Yfe(this,null,o):OK(this,t,r,o)},h.Th=function(t){switch(t){case 7:return!!Bhe(this);case 8:return!wt("",this.a)}return R1e(this,t)},h.$h=function(t,r){switch(t){case 7:Wme(this,l(r,176));return;case 8:dge(this,In(r));return}Abe(this,t,r)},h.fi=function(){return Qs(),b3e},h.hi=function(t){switch(t){case 7:Wme(this,null);return;case 8:dge(this,"");return}O1e(this,t)},h.Ib=function(){return Cmt(this)},h.a="",k(am,"ElkLabelImpl",363),x(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 pbe(this,t)},h.Ih=function(t,r,o){switch(t){case 9:return!this.c&&(this.c=new ke(Gc,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 Lt(),!this.a&&(this.a=new ke(En,this,10,11)),this.a.i>0}return Z1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 9:return!this.c&&(this.c=new ke(Gc,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?pbe(this,o):this.Cb.Qh(this,-1-a,null,o))),sfe(this,l(t,19),o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),Pa(this.b,t,o)}return mbe(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 9:return!this.c&&(this.c=new ke(Gc,this,9,9)),xo(this.c,t,o);case 10:return!this.a&&(this.a=new ke(En,this,10,11)),xo(this.a,t,o);case 11:return sfe(this,null,o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),xo(this.b,t,o)}return wbe(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 jge(this,t)},h.$h=function(t,r){switch(t){case 9:!this.c&&(this.c=new ke(Gc,this,9,9)),vn(this.c),!this.c&&(this.c=new ke(Gc,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:PF(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}Rme(this,t,r)},h.fi=function(){return Qs(),m3e},h.hi=function(t){switch(t){case 9:!this.c&&(this.c=new ke(Gc,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:PF(this,null);return;case 12:!this.b&&(this.b=new ke(Ir,this,12,3)),vn(this.b);return}W1e(this,t)},h.Ib=function(){return u0e(this)},k(am,"ElkNodeImpl",209),x(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},Bue),h.xh=function(t){return dbe(this,t)},h.Ih=function(t,r,o){return t==9?Gd(this):Z1e(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?dbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Jde(this,l(t,19),o)}return mbe(this,t,r,o)},h.Rh=function(t,r,o){return r==9?Jde(this,null,o):wbe(this,t,r,o)},h.Th=function(t){return t==9?!!Gd(this):jge(this,t)},h.$h=function(t,r){switch(t){case 9:Hme(this,l(r,19));return}Rme(this,t,r)},h.fi=function(){return Qs(),w3e},h.hi=function(t){switch(t){case 9:Hme(this,null);return}W1e(this,t)},h.Ib=function(){return Tyt(this)},k(am,"ElkPortImpl",196);var JDt=Hr(ko,"BasicEMap/Entry");x(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},tqe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.Hb=function(){return s0(this)},h.Ai=function(t){age(this,l(t,149))},h.Ih=function(t,r,o){switch(t){case 0:return this.b;case 1:return this.c}return aF(this,t,r,o)},h.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return EY(this,t)},h.$h=function(t,r){switch(t){case 0:age(this,l(r,149));return;case 1:cge(this,r);return}sJ(this,t,r)},h.fi=function(){return Qs(),Dh},h.hi=function(t){switch(t){case 0:age(this,null);return;case 1:cge(this,null);return}rJ(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,cge(this,t),r},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new Qg,zn(zn(zn(t,this.b?this.b.Og():tc),$X),y3(this.c)),t.a)},h.a=-1,h.c=null;var Rg=k(am,"ElkPropertyToValueMapEntryImpl",1103);x(989,1,{},nqe),k(oo,"JsonAdapter",989),x(218,63,vp,xf),k(oo,"JsonImportException",218),x(859,1,{},F0t),k(oo,"JsonImporter",859),x(893,1,{},snt),h.Bi=function(t){Nbt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$0$Type",893),x(894,1,{},ant),h.Bi=function(t){g0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$1$Type",894),x(902,1,{},NXe),h.Bi=function(t){gat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$10$Type",902),x(904,1,{},cnt),h.Bi=function(t){t0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$11$Type",904),x(905,1,{},unt),h.Bi=function(t){n0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$12$Type",905),x(911,1,{},_at),h.Bi=function(t){_mt(this.a,this.b,this.c,this.d,l(t,142))},k(oo,"JsonImporter/lambda$13$Type",911),x(910,1,{},xat),h.Bi=function(t){qyt(this.a,this.b,this.c,this.d,l(t,150))},k(oo,"JsonImporter/lambda$14$Type",910),x(906,1,{},lnt),h.Bi=function(t){jit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$15$Type",906),x(907,1,{},dnt),h.Bi=function(t){Fit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$16$Type",907),x(908,1,{},bnt),h.Bi=function(t){ubt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$17$Type",908),x(909,1,{},mnt),h.Bi=function(t){lbt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$18$Type",909),x(914,1,{},CXe),h.Bi=function(t){gmt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$19$Type",914),x(895,1,{},IXe),h.Bi=function(t){Ebt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$2$Type",895),x(912,1,{},RXe),h.Bi=function(t){E0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$20$Type",912),x(913,1,{},OXe),h.Bi=function(t){S0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$21$Type",913),x(917,1,{},DXe),h.Bi=function(t){pmt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$22$Type",917),x(915,1,{},LXe),h.Bi=function(t){y0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$23$Type",915),x(916,1,{},MXe),h.Bi=function(t){v0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$24$Type",916),x(919,1,{},PXe),h.Bi=function(t){$bt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$25$Type",919),x(918,1,{},jXe),h.Bi=function(t){bat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$26$Type",918),x(920,1,nn,wnt),h.Ad=function(t){Xdn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$27$Type",920),x(921,1,nn,ynt),h.Ad=function(t){Zdn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$28$Type",921),x(922,1,{},fnt),h.Bi=function(t){X0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$29$Type",922),x(898,1,{},FXe),h.Bi=function(t){Rgt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$3$Type",898),x(923,1,{},hnt),h.Bi=function(t){vwt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$30$Type",923),x(924,1,{},$Xe),h.Bi=function(t){eft(this.a,le(t))},k(oo,"JsonImporter/lambda$31$Type",924),x(925,1,{},BXe),h.Bi=function(t){tft(this.a,le(t))},k(oo,"JsonImporter/lambda$32$Type",925),x(926,1,{},UXe),h.Bi=function(t){nft(this.a,le(t))},k(oo,"JsonImporter/lambda$33$Type",926),x(927,1,{},HXe),h.Bi=function(t){rft(this.a,le(t))},k(oo,"JsonImporter/lambda$34$Type",927),x(928,1,{},zXe),h.Bi=function(t){eyn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$35$Type",928),x(929,1,{},GXe),h.Bi=function(t){tyn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$36$Type",929),x(933,1,{},Aat),k(oo,"JsonImporter/lambda$37$Type",933),x(930,1,nn,uot),h.Ad=function(t){Chn(this.a,this.c,this.b,l(t,373))},k(oo,"JsonImporter/lambda$38$Type",930),x(931,1,nn,pnt),h.Ad=function(t){Ken(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$39$Type",931),x(896,1,{},qXe),h.Bi=function(t){E0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$4$Type",896),x(932,1,nn,gnt),h.Ad=function(t){Yen(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$40$Type",932),x(934,1,nn,lot),h.Ad=function(t){Ihn(this.a,this.b,this.c,l(t,8))},k(oo,"JsonImporter/lambda$41$Type",934),x(897,1,{},VXe),h.Bi=function(t){S0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$5$Type",897),x(901,1,{},WXe),h.Bi=function(t){Ogt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$6$Type",901),x(899,1,{},KXe),h.Bi=function(t){y0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$7$Type",899),x(900,1,{},YXe),h.Bi=function(t){v0(this.a,ce(le(t)))},k(oo,"JsonImporter/lambda$8$Type",900),x(903,1,{},JXe),h.Bi=function(t){Bbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$9$Type",903),x(953,1,nn,XXe),h.Ad=function(t){RS(this.a,new ty(In(t)))},k(oo,"JsonMetaDataConverter/lambda$0$Type",953),x(954,1,nn,ZXe),h.Ad=function(t){Ysn(this.a,l(t,235))},k(oo,"JsonMetaDataConverter/lambda$1$Type",954),x(955,1,nn,QXe),h.Ad=function(t){Kcn(this.a,l(t,144))},k(oo,"JsonMetaDataConverter/lambda$2$Type",955),x(956,1,nn,eZe),h.Ad=function(t){Jsn(this.a,l(t,161))},k(oo,"JsonMetaDataConverter/lambda$3$Type",956),x(235,23,{3:1,34:1,23:1,235:1},bS);var wU,yU,Lre,i5,vU,o5,Mre,Pre,s5=fn(kD,"GraphFeature",235,bn,Ifn,Don),XDt;x(11,1,{34:1,149:1},lr,Pr,ht,Mi),h.Dd=function(t){return Jtn(this,l(t,149))},h.Fb=function(t){return Yat(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(kD,"Property",11),x(664,1,Un,JG),h.Le=function(t,r){return Hgn(this,l(t,105),l(r,105))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(kD,"PropertyHolderComparator",664),x(705,1,Wi,_ue),h.Nb=function(t){so(this,t)},h.Pb=function(){return nfn(this)},h.Qb=function(){VQe()},h.Ob=function(){return!!this.a},k(q7,"ElkGraphUtil/AncestorIterator",705);var v3e=Hr(ko,"EList");x(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 Lge(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){eK(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 syt(this,t)},h.Hb=function(){return Cge(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 Yw(t,r));return new sW(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 SE(this,t,r)},h.Ib=function(){return x1e(this)},h.Wi=function(){return!0},h.Xi=function(t,r){return C_(this,r)},k(ko,"AbstractEList",71),x(67,71,Vf,w9,w0,Sge),h.Ci=function(t,r){return JY(this,t,r)},h.Di=function(t){return G1t(this,t)},h.Ei=function(t,r){D6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Fpe(this,t)},h.$b=function(){z3(this)},h.Gc=function(t){return q_(this,t)},h.Xb=function(t){return ie(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(ko,"DelegatingEList",2072),x(2073,2072,BAt),h.Ci=function(t,r){return T0e(this,t,r)},h.Di=function(t){return this.Ci(this.Cj(),t)},h.Ei=function(t,r){G0t(this,t,r)},h.Fi=function(t){D0t(this,t)},h.Ji=function(){return!this.Kj()},h.$b=function(){jC(this)},h.Gj=function(t,r,o,a,u){return new Wat(this,t,r,o,a,u)},h.Hj=function(t){pr(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=Gbe(this,t,r),this.Hj(this.Gj(7,Oe(r),o,t,a)),o):Gbe(this,t,r)},h.ed=function(t){var r,o,a,u;return this.Nj()?(o=null,a=this.Oj(),r=this.Gj(4,u=iP(this,t),null,t,a),this.Kj()&&u?(o=this.Mj(u,o),o?(o.lj(r),o.mj()):this.Hj(r)):o?(o.lj(r),o.mj()):this.Hj(r),u):(u=iP(this,t),this.Kj()&&u&&(o=this.Mj(u,null),o&&o.mj()),u)},h.Vi=function(t,r){return rvt(this,t,r)},k(vT,"DelegatingNotifyingListImpl",2073),x(152,1,qD),h.lj=function(t){return Cbe(this,t)},h.mj=function(){oK(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 Uwt(this)},h.hj=function(){return null},h.ij=function(){return Zme(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,u,f,p,m,y,v,T,N;switch(this.d){case 1:case 2:switch(u=t.ej(),u){case 1:case 2:if(f=t.hj(),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(u=t.ej(),u){case 4:{if(f=t.hj(),me(f)===me(this.hj())&&this.fj(null)==t.fj(null))return v=U0e(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(u=t.ej(),u){case 4:{if(f=t.hj(),me(f)===me(this.hj())&&this.fj(null)==t.fj(null)){for(v=U0e(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:{vq(a,this.d);break}}if(Iyt(this)&&(a.a+=", touch: true"),a.a+=", position: ",vq(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,Zme(this)),a.a+=", newValue: ",this.d==6&&se(this.g,54)){for(o=l(this.g,54),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new Jw(this),this.a=this.j),bl(this.b,t)):q_(this,t)},h.Wi=function(){return!0},h.a=0,k(ko,"AbstractEList/1",958),x(306,99,o7,Yw),k(ko,"AbstractEList/BasicIndexOutOfBoundsException",306),x(39,1,Wi,tn),h.Nb=function(t){so(this,t)},h.Vj=function(){if(this.i.j!=this.f)throw Y(new $u)},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(ko,"AbstractEList/EIterator",39),x(288,39,vh,SS,sW),h.Qb=function(){wC(this)},h.Rb=function(t){Wgt(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=ui(r),se(r,99)?(this.Vj(),Y(new vs)):Y(r)}},h.Yj=function(t){q1t(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(ko,"AbstractEList/EListIterator",288),x(356,39,Wi,ES),h.Wj=function(){return SY(this)},h.Qb=function(){throw Y(new Nn)},k(ko,"AbstractEList/NonResolvingEIterator",356),x(393,288,vh,IO,hfe),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=ui(r),se(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=ui(r),se(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(ko,"AbstractEList/NonResolvingEListIterator",393),x(2059,71,UAt),h.Ci=function(t,r){var o,a,u,f,p,m,y,v,T,N,R;if(u=r.gc(),u!=0){for(v=l(qt(this.a,4),131),T=v==null?0:v.length,R=T+u,a=qK(this,R),N=T-t,N>0&&ca(v,t,a,t+u,N),y=r.Jc(),p=0;po)throw Y(new Yw(t,o));return new oat(this,t)},h.$b=function(){var t,r;++this.j,t=l(qt(this.a,4),131),r=t==null?0:t.length,H_(this,null),eK(this,r,t)},h.Gc=function(t){var r,o,a,u,f;if(r=l(qt(this.a,4),131),r!=null){if(t!=null){for(a=r,u=0,f=a.length;u=o)throw Y(new Yw(t,o));return r[t]},h.bd=function(t){var r,o,a;if(r=l(qt(this.a,4),131),r!=null){if(t!=null){for(o=0,a=r.length;oo)throw Y(new Yw(t,o));return new iat(this,t)},h.Ri=function(t,r){var o,a,u;if(o=e1t(this),u=o==null?0:o.length,t>=u)throw Y(new Ia(gQ+t+cm+u));if(r>=u)throw Y(new Ia(bQ+r+cm+u));return a=o[r],t!=r&&(t0&&ca(t,0,r,0,o),r},h.Oc=function(t){var r,o,a;return r=l(qt(this.a,4),131),a=r==null?0:r.length,a>0&&(t.lengtha&&ii(t,a,null),t};var ZDt;k(ko,"ArrayDelegatingEList",2059),x(1043,39,Wi,Tlt),h.Vj=function(){if(this.b.j!=this.f||me(l(qt(this.b.a,4),131))!==me(this.a))throw Y(new $u)},h.Qb=function(){wC(this),this.a=l(qt(this.b.a,4),131)},k(ko,"ArrayDelegatingEList/EIterator",1043),x(719,288,vh,Nst,iat),h.Vj=function(){if(this.b.j!=this.f||me(l(qt(this.b.a,4),131))!==me(this.a))throw Y(new $u)},h.Yj=function(t){q1t(this,t),this.a=l(qt(this.b.a,4),131)},h.Qb=function(){wC(this),this.a=l(qt(this.b.a,4),131)},k(ko,"ArrayDelegatingEList/EListIterator",719),x(1044,356,Wi,Alt),h.Vj=function(){if(this.b.j!=this.f||me(l(qt(this.b.a,4),131))!==me(this.a))throw Y(new $u)},k(ko,"ArrayDelegatingEList/NonResolvingEIterator",1044),x(720,393,vh,Cst,oat),h.Vj=function(){if(this.b.j!=this.f||me(l(qt(this.b.a,4),131))!==me(this.a))throw Y(new $u)},k(ko,"ArrayDelegatingEList/NonResolvingEListIterator",720),x(612,306,o7,aV),k(ko,"BasicEList/BasicIndexOutOfBoundsException",612),x(706,67,Vf,ede),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(ko,"BasicEList/UnmodifiableEList",706),x(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),h._c=function(t,r){Ftn(this,t,l(r,45))},h.Ec=function(t){return Pnn(this,l(t,45))},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return l(ie(this.c,t),138)},h.Ri=function(t,r){return l(this.c.Ri(t,r),45)},h.Si=function(t,r){$tn(this,t,l(r,45))},h.ed=function(t){return l(this.c.ed(t),45)},h.fd=function(t,r){return Xsn(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 vt(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(E3e,CEe,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),lF(this,t);this.e=o}},h.Fb=function(t){return Xit(this,t)},h.Hb=function(){return Cge(this.c)},h.bd=function(t){return this.c.bd(t)},h.$j=function(){this.c=new tZe(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 dot(t,r,o)},h.bk=function(){return new aqe},h.Kc=function(t){return Xft(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 x1e(this.c)},h.e=0,h.f=0,k(ko,"BasicEMap",718),x(1038,67,Vf,tZe),h.Ki=function(t,r){EQt(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){SQt(this,l(r,138))},h.Pi=function(t,r,o){mnn(this,l(r,138),l(o,138))},h.Mi=function(t,r){Ght(this.a)},k(ko,"BasicEMap/1",1038),x(1039,67,Vf,aqe),h.$i=function(t){return we(_Cn,HAt,618,t,0,1)},k(ko,"BasicEMap/2",1039),x(1040,tf,wc,nZe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return lY(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),u5.a):new BQe(this.a)},h.Kc=function(t){var r;return r=this.a.f,eF(this.a,t),this.a.f!=r},h.gc=function(){return this.a.f},k(ko,"BasicEMap/3",1040),x(1041,32,Ry,rZe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return ayt(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),u5.a):new UQe(this.a)},h.gc=function(){return this.a.f},k(ko,"BasicEMap/4",1041),x(1042,tf,wc,iZe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){var r,o,a,u,f,p,m,y,v;if(this.a.f>0&&se(t,45)&&(this.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Rr(m),f=Xde(this.a,u),r=this.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p"+this.c},h.a=0;var _Cn=k(ko,"BasicEMap/EntryImpl",618);x(538,1,{},y9),k(ko,"BasicEMap/View",538);var u5;x(776,1,{}),h.Fb=function(t){return Ome((At(),Ro),t)},h.Hb=function(){return Uge((At(),Ro))},h.Ib=function(){return Qd((At(),Ro))},k(ko,"ECollections/BasicEmptyUnmodifiableEList",776),x(1314,1,vh,sqe),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(ko,"ECollections/BasicEmptyUnmodifiableEList/1",1314),x(1312,776,{22:1,18:1,16:1,61:1},WZe),h._c=function(t,r){uet()},h.Ec=function(t){return det()},h.ad=function(t,r){return fet()},h.Fc=function(t){return het()},h.$b=function(){pet()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return ide((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 get()},h.Si=function(t,r){bet()},h.ed=function(t){return met()},h.Kc=function(t){return wet()},h.fd=function(t,r){return yet()},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 vt(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Ro,t,r)},h.Nc=function(){return Zfe((At(),Ro))},h.Oc=function(t){return At(),pC(Ro,t)},k(ko,"ECollections/EmptyUnmodifiableEList",1312),x(1313,776,{22:1,18:1,16:1,61:1,593:1},KZe),h._c=function(t,r){uet()},h.Ec=function(t){return det()},h.ad=function(t,r){return fet()},h.Fc=function(t){return het()},h.$b=function(){pet()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return ide((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 get()},h.Si=function(t,r){bet()},h.ed=function(t){return met()},h.Kc=function(t){return wet()},h.fd=function(t,r){return yet()},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 vt(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Ro,t,r)},h.Nc=function(){return Zfe((At(),Ro))},h.Oc=function(t){return At(),pC(Ro,t)},h._j=function(){return At(),At(),xh},k(ko,"ECollections/EmptyUnmodifiableEMap",1313);var T3e=Hr(ko,"Enumerator"),EU;x(291,1,{291:1},wJ),h.Fb=function(t){var r;return this===t?!0:se(t,291)?(r=l(t,291),this.f==r.f&&ysn(this.i,r.i)&&WV(this.a,this.f&256?r.f&256?r.a:null:r.f&256?null:r.a)&&WV(this.d,r.d)&&WV(this.g,r.g)&&WV(this.e,r.e)&&Nbn(this,r)):!1},h.Hb=function(){return this.f},h.Ib=function(){return Hyt(this)},h.f=0;var QDt=0,eLt=0,tLt=0,nLt=0,A3e=0,_3e=0,x3e=0,k3e=0,N3e=0,rLt,O4=0,D4=0,iLt=0,oLt=0,SU,C3e;k(ko,"URI",291),x(1102,44,LE,YZe),h.yc=function(t,r){return l(rs(this,In(t),l(r,291)),291)},k(ko,"URI/URICache",1102),x(495,67,Vf,cqe,uP),h.Qi=function(){return!0},k(ko,"UniqueEList",495),x(585,63,vp,sj),k(ko,"WrappedException",585);var Kn=Hr(el,qAt),mv=Hr(el,VAt),ac=Hr(el,WAt),wv=Hr(el,KAt),Ld=Hr(el,YAt),Ol=Hr(el,"EClass"),$re=Hr(el,"EDataType"),sLt;x(1210,44,LE,JZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ns(this.f,t))},k(el,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var TU=Hr(el,"EEnum"),Op=Hr(el,JAt),qo=Hr(el,XAt),Dl=Hr(el,ZAt),Ll,lw=Hr(el,QAt),yv=Hr(el,e_t);x(1034,1,{},uqe),h.Ib=function(){return"NIL"},k(el,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var aLt;x(1033,44,LE,XZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ns(this.f,t))},k(el,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var Ka=Hr(el,t_t),YT=Hr(el,"EValidator/PatternMatcher"),I3e,R3e,Bt,Og,vv,Z1,cLt,uLt,lLt,Q1,Dg,eb,dw,bf,dLt,fLt,Ml,Lg,hLt,Mg,Ev,y2,Do,pLt,gLt,fw,AU=Hr(Fr,"FeatureMap/Entry");x(537,1,{76:1},x8),h.Jk=function(){return this.a},h.kd=function(){return this.b},k(zt,"BasicEObjectImpl/1",537),x(1032,1,SQ,Ent),h.Dk=function(t){return YW(this.a,this.b,t)},h.Oj=function(){return dct(this.a,this.b)},h.Wb=function(t){Fhe(this.a,this.b,t)},h.Ek=function(){han(this.a,this.b)},k(zt,"BasicEObjectImpl/4",1032),x(2060,1,{115:1}),h.Kk=function(t){this.e=t==0?bLt:we(Ri,It,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 bLt;k(zt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),x(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(zt,"BasicEObjectImpl/EPropertiesHolderImpl",195),x(505,101,tAt,v9),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(c1(),Bt).S},h.i=0,h.j=1,k(zt,"EObjectImpl",505),x(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},Mfe),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 lqe),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?mLt:we(Ri,It,1,t,5,1)),this},h.gi=function(){return 0};var mLt;k(zt,"DynamicEObjectImpl",792),x(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},Bot),h.Fb=function(t){return this===t},h.Hb=function(){return s0(this)},h._h=function(t){this.d=t,this.b=iD(t,"key"),this.c=iD(t,sI)},h.yi=function(){var t;return this.a==-1&&(t=uK(this,this.b),this.a=t==null?0:Rr(t)),this.a},h.jd=function(){return uK(this,this.b)},h.kd=function(){return uK(this,this.c)},h.zi=function(t){this.a=t},h.Ai=function(t){Fhe(this,this.b,t)},h.ld=function(t){var r;return r=uK(this,this.c),Fhe(this,this.c,t),r},h.a=0,k(zt,"DynamicEObjectImpl/BasicEMapEntry",1500),x(1501,1,{115:1},lqe),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(zt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501),x(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},Gce),h.xh=function(t){return fbe(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 Zc((_t(),Do),zs,this)),this.b):(!this.b&&(this.b=new Zc((_t(),Do),zs,this)),s6(this.b));case 3:return mct(this);case 4:return!this.a&&(this.a=new Ei(J1,this,4)),this.a;case 5:return!this.c&&(this.c=new sE(J1,this,5)),this.c}return qu(this,t-ln((_t(),Og)),kt((a=l(qt(this,16),29),a||Og),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?fbe(this,o):this.Cb.Qh(this,-1-u,null,o))),Jfe(this,l(t,159),o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 2:return!this.b&&(this.b=new Zc((_t(),Do),zs,this)),V8(this.b,t,o);case 3:return Jfe(this,null,o);case 4:return!this.a&&(this.a=new Ei(J1,this,4)),xo(this.a,t,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Og)),r),69),u.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!!mct(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zu(this,t-ln((_t(),Og)),kt((r=l(qt(this,16),29),r||Og),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new 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:rsn(this,In(r));return;case 2:!this.b&&(this.b=new Zc((_t(),Do),zs,this)),Ij(this.b,r);return;case 3:Cwt(this,l(r,159));return;case 4:!this.a&&(this.a=new Ei(J1,this,4)),vn(this.a),!this.a&&(this.a=new Ei(J1,this,4)),ti(this.a,l(r,18));return;case 5:!this.c&&(this.c=new sE(J1,this,5)),vn(this.c),!this.c&&(this.c=new sE(J1,this,5)),ti(this.c,l(r,18));return}Xu(this,t-ln((_t(),Og)),kt((o=l(qt(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:lge(this,null);return;case 2:!this.b&&(this.b=new Zc((_t(),Do),zs,this)),this.b.c.$b();return;case 3:Cwt(this,null);return;case 4:!this.a&&(this.a=new Ei(J1,this,4)),vn(this.a);return;case 5:!this.c&&(this.c=new sE(J1,this,5)),vn(this.c);return}Ju(this,t-ln((_t(),Og)),kt((r=l(qt(this,16),29),r||Og),t))},h.Ib=function(){return pgt(this)},h.d=null,k(zt,"EAnnotationImpl",508),x(145,718,IEe,pc),h.Ei=function(t,r){Stn(this,t,l(r,45))},h.Uk=function(t,r){return Arn(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 V8(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(mu(this.b).ti().pi(this.b),138),a.zi(t),a.Ai(r),a.ld(o),a},h.bk=function(){return new kue(this)},h.Wb=function(t){Ij(this,t)},h.Ek=function(){l(this.c,78).Ek()},k(Fr,"EcoreEMap",145),x(170,145,IEe,Zc),h.Zj=function(){var t,r,o,a,u,f;if(this.d==null){for(f=we(E3e,CEe,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)r=l(o.Wj(),138),a=r.yi(),u=(a&ar)%f.length,t=f[u],!t&&(t=f[u]=new kue(this)),t.Ec(r);this.d=f}},k(zt,"EAnnotationImpl/1",170),x(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,u;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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q}return qu(this,t-ln(this.fi()),kt((a=l(qt(this,16),29),a||this.fi()),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 9:return uW(this,o)}return u=l(kt((a=l(qt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0)}return zu(this,t-ln(this.fi()),kt((r=l(qt(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:ug(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}Xu(this,t-ln(this.fi()),kt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),gLt},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:ug(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}Ju(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.mi=function(){Sl(this),this.Bb|=1},h.Fk=function(){return Sl(this)},h.Gk=function(){return this.t},h.Hk=function(){var t;return t=this.t,t>1||t==-1},h.Qi=function(){return(this.Bb&512)!=0},h.Wk=function(t,r){return a1e(this,t,r)},h.Xk=function(t){dy(this,t)},h.Ib=function(){return Tme(this)},h.s=0,h.t=1,k(zt,"ETypedElementImpl",294),x(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 sbt(this,t)},h.Ih=function(t,r,o){var a,u;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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Dy);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yc);case 16:return Lt(),!!(this.Bb&$f);case 17:return iy(this)}return qu(this,t-ln(this.fi()),kt((a=l(qt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?sbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,17,o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 9:return uW(this,o);case 17:return Su(this,null,17,o)}return u=l(kt((a=l(qt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&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&Dy)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!iy(this)}return zu(this,t-ln(this.fi()),kt((r=l(qt(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:MW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:ug(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:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:nde(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return}Xu(this,t-ln(this.fi()),kt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),pLt},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:se(this.Cb,89)&&Ay(Pc(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:ug(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:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Aj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return}Ju(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.mi=function(){c_(is((mc(),ao),this)),Sl(this),this.Bb|=1},h.nk=function(){return this.f},h.gk=function(){return J_(this)},h.ok=function(){return iy(this)},h.sk=function(){return null},h.Yk=function(){return this.k},h.Jj=function(){return this.n},h.tk=function(){return wF(this)},h.uk=function(){var t,r,o,a,u,f,p,m,y;return this.p||(o=iy(this),(o.i==null&&Ff(o),o.i).length,a=this.sk(),a&&ln(iy(a)),u=Sl(this),p=u.ik(),t=p?p.i&1?p==cc?Yr:p==Rn?_i:p==Tv?Ux:p==Ki?fi:p==pw?Y0:p==T2?J0:p==Ec?ET:mI:p:null,r=J_(this),m=u.gk(),Xgn(this),this.Bb&$f&&((f=ybe((mc(),ao),o))&&f!=this||(f=MS(is(ao,this))))?this.p=new Tnt(this,f):this.Hk()?this.$k()?a?this.Bb&yc?t?this._k()?this.p=new Lb(47,t,this,a):this.p=new Lb(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 Lb(49,t,this,a):this.p=new Lb(7,t,this,a):this._k()?this.p=new Bb(48,this,a):this.p=new Bb(6,this,a):this.Bb&yc?t?t==dm?this.p=new rg(50,JDt,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,JDt,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):se(u,160)?t==AU?this.p=new og(40,this):this.Bb&512?this.Bb&yc?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&yc?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&yc?t?this.p=new Lb(25,t,this,a):this.p=new Bb(24,this,a):t?this.p=new Lb(27,t,this,a):this.p=new Bb(26,this,a):this.Bb&yc?t?this.p=new Lb(29,t,this,a):this.p=new Bb(28,this,a):t?this.p=new Lb(31,t,this,a):this.p=new Bb(30,this,a):this._k()?this.Bb&yc?t?this.p=new Lb(33,t,this,a):this.p=new Bb(32,this,a):t?this.p=new Lb(35,t,this,a):this.p=new Bb(34,this,a):this.Bb&yc?t?this.p=new Lb(37,t,this,a):this.p=new Bb(36,this,a):t?this.p=new Lb(39,t,this,a):this.p=new Bb(38,this,a)):this._k()?this.Bb&yc?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&yc?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 pot(l(u,29),this,a):this.p=new jhe(l(u,29),this,a):se(u,160)?t==AU?this.p=new og(40,this):this.Bb&yc?t?this.p=new dst(r,m,this,(fY(),p==Rn?F3e:p==cc?D3e:p==pw?$3e:p==Tv?j3e:p==Ki?P3e:p==T2?B3e:p==Ec?L3e:p==al?M3e:Hre)):this.p=new Nat(l(u,160),r,m,this):t?this.p=new lst(r,m,this,(fY(),p==Rn?F3e:p==cc?D3e:p==pw?$3e:p==Tv?j3e:p==Ki?P3e:p==T2?B3e:p==Ec?L3e:p==al?M3e:Hre)):this.p=new kat(l(u,160),r,m,this):this.$k()?a?this.Bb&yc?this._k()?this.p=new bot(l(u,29),this,a):this.p=new _fe(l(u,29),this,a):this._k()?this.p=new got(l(u,29),this,a):this.p=new $V(l(u,29),this,a):this.Bb&yc?this._k()?this.p=new uit(l(u,29),this):this.p=new Bde(l(u,29),this):this._k()?this.p=new cit(l(u,29),this):this.p=new AV(l(u,29),this):this._k()?a?this.Bb&yc?this.p=new mot(l(u,29),this,a):this.p=new Tfe(l(u,29),this,a):this.Bb&yc?this.p=new dit(l(u,29),this):this.p=new Ude(l(u,29),this):a?this.Bb&yc?this.p=new wot(l(u,29),this,a):this.p=new Afe(l(u,29),this,a):this.Bb&yc?this.p=new lit(l(u,29),this):this.p=new lP(l(u,29),this)),this.p},h.pk=function(){return(this.Bb&Tl)!=0},h.Zk=function(){return!1},h.$k=function(){return!1},h.qk=function(){return(this.Bb&$f)!=0},h.vk=function(){return dK(this)},h._k=function(){return!1},h.rk=function(){return(this.Bb&yc)!=0},h.al=function(t){this.k=t},h.ri=function(t){MW(this,t)},h.Ib=function(){return HF(this)},h.e=!1,h.n=0,k(zt,"EStructuralFeatureImpl",454),x(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},rq),h.Ih=function(t,r,o){var a,u;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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),!!mme(this);case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Dy);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yc);case 16:return Lt(),!!(this.Bb&$f);case 17:return iy(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return r?DK(this):Plt(this)}return qu(this,t-ln((_t(),vv)),kt((a=l(qt(this,16),29),a||vv),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 mme(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&Dy)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!iy(this);case 18:return(this.Bb&Ws)!=0;case 19:return!!Plt(this)}return zu(this,t-ln((_t(),vv)),kt((r=l(qt(this,16),29),r||vv),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:MW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:ug(this,l(r,15).a);return;case 5:HQe(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:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:nde(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:rY(this,Ye(Ke(r)));return}Xu(this,t-ln((_t(),vv)),kt((o=l(qt(this,16),29),o||vv),t),r)},h.fi=function(){return _t(),vv},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:se(this.Cb,89)&&Ay(Pc(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:ug(this,0);return;case 5:this.b=0,dy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Aj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:rY(this,!1);return}Ju(this,t-ln((_t(),vv)),kt((r=l(qt(this,16),29),r||vv),t))},h.mi=function(){DK(this),c_(is((mc(),ao),this)),Sl(this),this.Bb|=1},h.Hk=function(){return mme(this)},h.Wk=function(t,r){return this.b=0,this.a=null,a1e(this,t,r)},h.Xk=function(t){HQe(this,t)},h.Ib=function(){var t;return this.Db&64?HF(this):(t=new ml(HF(this)),t.a+=" (iD: ",Zp(t,(this.Bb&Ws)!=0),t.a+=")",t.a)},h.b=0,k(zt,"EAttributeImpl",336),x(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 FY(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?mu(this):d_(this);case 7:return!this.A&&(this.A=new dc(Ka,this,7)),this.A}return qu(this,t-ln(this.fi()),kt((a=l(qt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?FY(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,6,o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 6:return Su(this,null,6,o);case 7:return!this.A&&(this.A=new dc(Ka,this,7)),xo(this.A,t,o)}return u=l(kt((a=l(qt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!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 zu(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new 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:FP(this,In(r));return;case 2:dV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new dc(Ka,this,7)),vn(this.A),!this.A&&(this.A=new dc(Ka,this,7)),ti(this.A,l(r,18));return}Xu(this,t-ln(this.fi()),kt((o=l(qt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),cLt},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:se(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 dc(Ka,this,7)),vn(this.A);return}Ju(this,t-ln(this.fi()),kt((r=l(qt(this,16),29),r||this.fi()),t))},h.fk=function(){var t;return this.G==-1&&(this.G=(t=mu(this),t?gg(t.si(),this):-1)),this.G},h.gk=function(){return null},h.hk=function(){return mu(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 kJ(this,t)},h.dl=function(t){this.v=t},h.el=function(t){Sht(this,t)},h.fl=function(t){this.C=t},h.ri=function(t){FP(this,t)},h.Ib=function(){return Jj(this)},h.C=null,h.D=null,h.G=-1,k(zt,"EClassifierImpl",361),x(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},Yce),h.bl=function(t){return urn(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?mu(this):d_(this);case 7:return!this.A&&(this.A=new dc(Ka,this,7)),this.A;case 8:return Lt(),!!(this.Bb&256);case 9:return Lt(),!!(this.Bb&512);case 10:return ds(this);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),this.q;case 12:return IE(this);case 13:return LC(this);case 14:return LC(this),this.r;case 15:return IE(this),this.k;case 16:return sme(this);case 17:return RJ(this);case 18:return Ff(this);case 19:return LF(this);case 20:return IE(this),this.o;case 21:return!this.s&&(this.s=new ke(ac,this,21,17)),this.s;case 22:return oa(this);case 23:return mJ(this)}return qu(this,t-ln((_t(),Z1)),kt((a=l(qt(this,16),29),a||Z1),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?FY(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,6,o);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),Pa(this.q,t,o);case 21:return!this.s&&(this.s=new ke(ac,this,21,17)),Pa(this.s,t,o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 6:return Su(this,null,6,o);case 7:return!this.A&&(this.A=new dc(Ka,this,7)),xo(this.A,t,o);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),xo(this.q,t,o);case 21:return!this.s&&(this.s=new ke(ac,this,21,17)),xo(this.s,t,o);case 22:return xo(oa(this),t,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Z1)),r),69),u.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!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&&kY(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return IE(this).i!=0;case 13:return LC(this).i!=0;case 14:return LC(this),this.r.i!=0;case 15:return IE(this),this.k.i!=0;case 16:return sme(this).i!=0;case 17:return RJ(this).i!=0;case 18:return Ff(this).i!=0;case 19:return LF(this).i!=0;case 20:return IE(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&kY(this.n);case 23:return mJ(this).i!=0}return zu(this,t-ln((_t(),Z1)),kt((r=l(qt(this,16),29),r||Z1),t))},h.Wh=function(t){var r;return r=this.i==null||this.q&&this.q.i!=0?null:iD(this,t),r||Y0e(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:FP(this,In(r));return;case 2:dV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new dc(Ka,this,7)),vn(this.A),!this.A&&(this.A=new dc(Ka,this,7)),ti(this.A,l(r,18));return;case 8:l1e(this,Ye(Ke(r)));return;case 9:d1e(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(Dl,this,11,10)),vn(this.q),!this.q&&(this.q=new ke(Dl,this,11,10)),ti(this.q,l(r,18));return;case 21:!this.s&&(this.s=new ke(ac,this,21,17)),vn(this.s),!this.s&&(this.s=new ke(ac,this,21,17)),ti(this.s,l(r,18));return;case 22:vn(oa(this)),ti(oa(this),l(r,18));return}Xu(this,t-ln((_t(),Z1)),kt((o=l(qt(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:se(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 dc(Ka,this,7)),vn(this.A);return;case 8:l1e(this,!1);return;case 9:d1e(this,!1);return;case 10:this.u&&jC(this.u);return;case 11:!this.q&&(this.q=new ke(Dl,this,11,10)),vn(this.q);return;case 21:!this.s&&(this.s=new ke(ac,this,21,17)),vn(this.s);return;case 22:this.n&&vn(this.n);return}Ju(this,t-ln((_t(),Z1)),kt((r=l(qt(this,16),29),r||Z1),t))},h.mi=function(){var t,r;if(IE(this),LC(this),sme(this),RJ(this),Ff(this),LF(this),mJ(this),z3($on(Pc(this))),this.s)for(t=0,r=this.s.i;t=0;--r)ie(this,r);return L1e(this,t)},h.Ek=function(){vn(this)},h.Xi=function(t,r){return Jft(this,t,r)},k(Fr,"EcoreEList",630),x(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),x(82,494,ws,Ei),h.Kj=function(){return!0},h.kl=function(){return!1},h.$k=function(){return!0},k(Fr,"EObjectContainmentEList",82),x(547,82,ws,j8),h.Li=function(){this.b=!0},h.Oj=function(){return this.b},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.b,this.b=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.b=!1},h.b=!1,k(Fr,"EObjectContainmentEList/Unsettable",547),x(1142,547,ws,cst),h.Ri=function(t,r){var o,a;return o=l(cC(this,t,r),88),Jc(this.e)&&LA(this,new a6(this.a,7,(_t(),uLt),Oe(r),(a=o.c,se(a,89)?l(a,29):Ml),t)),o},h.Sj=function(t,r){return R1n(this,l(t,88),r)},h.Tj=function(t,r){return I1n(this,l(t,88),r)},h.Uj=function(t,r,o){return L0n(this,l(t,88),l(r,88),o)},h.Gj=function(t,r,o,a,u){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 up(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return kY(this)},h.Ek=function(){vn(this)},k(zt,"EClassImpl/1",1142),x(1156,1155,NEe),h.bj=function(t){var r,o,a,u,f,p,m;if(o=t.ej(),o!=8){if(a=fbn(t),a==0)switch(o){case 1:case 9:{m=t.ij(),m!=null&&(r=Pc(l(m,474)),!r.c&&(r.c=new NA),uj(r.c,t.hj())),p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Pc(u),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29))));break}case 3:{p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Pc(u),!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();)u=l(f.Pb(),474),u.Bb&1||(r=Pc(u),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29)));break}case 4:{m=t.ij(),m!=null&&(u=l(m,474),u.Bb&1||(r=Pc(u),!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();)u=l(f.Pb(),474),u.Bb&1||(r=Pc(u),!r.c&&(r.c=new NA),uj(r.c,t.hj()));break}}this.ol(a)}},h.ol=function(t){gyt(this,t)},h.b=63,k(zt,"ESuperAdapter",1156),x(1157,1156,NEe,sZe),h.ol=function(t){Ay(this,t)},k(zt,"EClassImpl/10",1157),x(1146,706,ws),h.Ci=function(t,r){return JY(this,t,r)},h.Di=function(t){return G1t(this,t)},h.Ei=function(t,r){D6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Fpe(this,t)},h.Vi=function(t,r){return lK(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),x(334,1146,ws,eE),h.Wi=function(){return!1},k(Fr,"EcoreEList/UnmodifiableEList/FastCompare",334),x(1149,334,ws,gpt),h.bd=function(t){var r,o,a;if(se(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(kt(Ja(this.b),this.Jj()).Fk(),29).ik())==Po(l(kt(Ja(this.b),this.Jj()),20)).n:-1-a.Ch()==this.Jj()),this.ll()&&!m&&!o&&a.Gh()){for(u=0;u1||a==-1)):!1},h.kl=function(){var t,r,o;return r=kt(Ja(this.b),this.Jj()),se(r,104)?(t=l(r,20),o=Po(t),!!o):!1},h.ll=function(){var t,r;return r=kt(Ja(this.b),this.Jj()),se(r,104)?(t=l(r,20),(t.Bb&Io)!=0):!1},h.bd=function(t){var r,o,a,u;if(a=this.xj(t),a>=0)return a;if(this.ml()){for(o=0,u=this.Cj();o=0;--t)dD(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)dD(this,r,this.vj(r));return this.Ej(t)},h.Ek=function(){jC(this)},h.Xi=function(t,r){return wdt(this,t,r)},k(Fr,"DelegatingEcoreEList",751),x(1152,751,OEe,Sit),h.oj=function(t,r){Onn(this,t,l(r,29))},h.pj=function(t){Atn(this,l(t,29))},h.vj=function(t){var r,o;return r=l(ie(oa(this.a),t),88),o=r.c,se(o,89)?l(o,29):(_t(),Ml)},h.Aj=function(t){var r,o;return r=l(ky(oa(this.a),t),88),o=r.c,se(o,89)?l(o,29):(_t(),Ml)},h.Bj=function(t,r){return omn(this,t,l(r,29))},h.Ji=function(){return!1},h.Gj=function(t,r,o,a,u){return null},h.qj=function(){return new cZe(this)},h.rj=function(){vn(oa(this.a))},h.sj=function(t){return ggt(this,t)},h.tj=function(t){var r,o;for(o=t.Jc();o.Ob();)if(r=o.Pb(),!ggt(this,r))return!1;return!0},h.uj=function(t){var r,o,a;if(se(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,u;for(o=1,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),a=(u=t.c,se(u,89)?l(u,29):(_t(),Ml)),o=31*o+(a?s0(a):0);return o},h.xj=function(t){var r,o,a,u;for(a=0,o=new tn(oa(this.a));o.e!=o.i.gc();){if(r=l(rn(o),88),me(t)===me((u=r.c,se(u,89)?l(u,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,u,f;for(f=oa(this.a).i,u=we(Ri,It,1,f,5,1),o=0,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),u[o++]=(a=t.c,se(a,89)?l(a,29):(_t(),Ml));return u},h.Ej=function(t){var r,o,a,u,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,se(p,89)?l(p,29):(_t(),Ml)),ii(t,a++,f);return t},h.Fj=function(){var t,r,o,a,u;for(u=new Xp,u.a+="[",t=oa(this.a),r=0,a=oa(this.a).i;r>16,u>=0?FY(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(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(kt((a=l(qt(this,16),29),a||(_t(),Q1)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Q1)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 6:return Su(this,null,6,o);case 7:return!this.A&&(this.A=new dc(Ka,this,7)),xo(this.A,t,o);case 9:return!this.a&&(this.a=new ke(Op,this,9,5)),xo(this.a,t,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Q1)),r),69),u.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.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!I0(this);case 4:return!!Xge(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 zu(this,t-ln((_t(),Q1)),kt((r=l(qt(this,16),29),r||Q1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new 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:FP(this,In(r));return;case 2:dV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new dc(Ka,this,7)),vn(this.A),!this.A&&(this.A=new dc(Ka,this,7)),ti(this.A,l(r,18));return;case 8:zj(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}Xu(this,t-ln((_t(),Q1)),kt((o=l(qt(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:se(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 dc(Ka,this,7)),vn(this.A);return;case 8:zj(this,!0);return;case 9:!this.a&&(this.a=new ke(Op,this,9,5)),vn(this.a);return}Ju(this,t-ln((_t(),Q1)),kt((r=l(qt(this,16),29),r||Q1),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 qu(this,t-ln((_t(),Dg)),kt((a=l(qt(this,16),29),a||Dg),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?mbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,5,o)}return f=l(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 5:return Su(this,null,5,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Dg)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Dg)),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 zu(this,t-ln((_t(),Dg)),kt((r=l(qt(this,16),29),r||Dg),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:mK(this,l(r,15).a);return;case 3:A0t(this,l(r,2018));return;case 4:yK(this,In(r));return}Xu(this,t-ln((_t(),Dg)),kt((o=l(qt(this,16),29),o||Dg),t),r)},h.fi=function(){return _t(),Dg},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:mK(this,0);return;case 3:A0t(this,null);return;case 4:yK(this,null);return}Ju(this,t-ln((_t(),Dg)),kt((r=l(qt(this,16),29),r||Dg),t))},h.Ib=function(){var t;return t=this.c,t??this.zb},h.b=null,h.c=null,h.d=0,k(zt,"EEnumLiteralImpl",575);var xCn=Hr(zt,"EFactoryImpl/InternalEDateTimeFormat");x(488,1,{2093:1},eO),k(zt,"EFactoryImpl/1ClientInternalEDateTimeFormat",488),x(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=Su(this,t,r,o),this.e&&se(t,182)&&(a=DF(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 Ei(qo,this,1)),this.d;case 2:return r?GF(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return r?IY(this):this.a}return qu(this,t-ln((_t(),dw)),kt((a=l(qt(this,16),29),a||dw),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return ngt(this,null,o);case 1:return!this.d&&(this.d=new Ei(qo,this,1)),xo(this.d,t,o);case 3:return tgt(this,null,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),dw)),r),69),u.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 zu(this,t-ln((_t(),dw)),kt((r=l(qt(this,16),29),r||dw),t))},h.$h=function(t,r){var o;switch(t){case 0:Pbt(this,l(r,88));return;case 1:!this.d&&(this.d=new Ei(qo,this,1)),vn(this.d),!this.d&&(this.d=new Ei(qo,this,1)),ti(this.d,l(r,18));return;case 3:kbe(this,l(r,88));return;case 4:Vbe(this,l(r,842));return;case 5:w_(this,l(r,146));return}Xu(this,t-ln((_t(),dw)),kt((o=l(qt(this,16),29),o||dw),t),r)},h.fi=function(){return _t(),dw},h.hi=function(t){var r;switch(t){case 0:Pbt(this,null);return;case 1:!this.d&&(this.d=new Ei(qo,this,1)),vn(this.d);return;case 3:kbe(this,null);return;case 4:Vbe(this,null);return;case 5:w_(this,null);return}Ju(this,t-ln((_t(),dw)),kt((r=l(qt(this,16),29),r||dw),t))},h.Ib=function(){var t;return t=new fu(Zl(this)),t.a+=" (expression: ",PJ(this,t),t.a+=")",t.a};var O3e;k(zt,"EGenericTypeImpl",251),x(2046,2041,J7),h.Ei=function(t,r){vit(this,t,r)},h.Uk=function(t,r){return vit(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 hZe(this)},h.Hi=function(){return this.Ii(0)},h.Ii=function(t){return this.nj().dd(t)},h.Vk=function(t,r){return my(this,t,!0),r},h.Ri=function(t,r){var o,a;return a=UY(this,r),o=this.dd(t),o.Rb(a),a},h.Si=function(t,r){var o;my(this,r,!0),o=this.dd(t),o.Rb(r)},k(Fr,"AbstractSequentialInternalEList",2046),x(485,2046,J7,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 Bnt(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),se(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?jmt(this,this.p):Wmt(this))return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}else if(f!=null)return this.k=null,this.p=null,o=f,this.i=o,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}},h.Pb=function(){return Oj(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),x(707,289,X7,$de),h.sl=function(){return!0},k(Fr,"EContentsEList/ResolvingFeatureIteratorImpl",707),x(1159,707,X7,ait),h.tl=function(){return!1},k(zt,"ENamedElementImpl/1/1",1159),x(1160,289,X7,sit),h.tl=function(){return!1},k(zt,"ENamedElementImpl/1/2",1160),x(40,152,qD,cy,zW,Pi,rK,up,Vl,Jpe,Wct,Xpe,Kct,gpe,Yct,ege,Jct,bpe,Xct,Zpe,Zct,N3,a6,TW,Qpe,Qct,mpe,eut),h.Ij=function(){return Ope(this)},h.Pj=function(){var t;return t=Ope(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=Ope(this),t?t.rk():!1},h.b=-1,k(zt,"ENotificationImpl",40),x(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},iq),h.xh=function(t){return ybt(this,t)},h.Ih=function(t,r,o){var a,u,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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,29):null;case 11:return!this.d&&(this.d=new dc(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 Fc(this)}return qu(this,t-ln((_t(),Lg)),kt((a=l(qt(this,16),29),a||Lg),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?ybt(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(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(kt((a=l(qt(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,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 9:return uW(this,o);case 10:return Su(this,null,10,o);case 11:return!this.d&&(this.d=new dc(Ka,this,11)),xo(this.d,t,o);case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),xo(this.c,t,o);case 14:return xo(Fc(this),t,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Lg)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Lg)),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&&Fc(this.a.a).i!=0&&!(this.b&&NY(this.b));case 14:return!!this.b&&NY(this.b)}return zu(this,t-ln((_t(),Lg)),kt((r=l(qt(this,16),29),r||Lg),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:ug(this,l(r,15).a);return;case 5:dy(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 dc(Ka,this,11)),vn(this.d),!this.d&&(this.d=new dc(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(Fc(this)),ti(Fc(this),l(r,18));return}Xu(this,t-ln((_t(),Lg)),kt((o=l(qt(this,16),29),o||Lg),t),r)},h.fi=function(){return _t(),Lg},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:ug(this,0);return;case 5:dy(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 dc(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}Ju(this,t-ln((_t(),Lg)),kt((r=l(qt(this,16),29),r||Lg),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(Fc(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,u;for(u=new Xp,u.a+="[",t=Fc(this.a),r=0,a=Fc(this.a).i;r1);case 5:return j3(this,t,r,o,a,this.i-l(o,16).gc()>0);default:return new up(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return NY(this)},h.Ek=function(){vn(this)},k(zt,"EOperationImpl/2",1343),x(496,1,{2016:1,496:1},Snt),k(zt,"EPackageImpl/1",496),x(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),x(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),x(313,362,ws,Qw),h.Li=function(){this.a.tb=null},k(zt,"EPackageImpl/2",313),x(1255,1,{},TZt),k(zt,"EPackageImpl/3",1255),x(728,44,LE,Uue),h._b=function(t){return zi(t)?_W(this,t):!!ns(this.f,t)},k(zt,"EPackageRegistryImpl",728),x(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},oq),h.xh=function(t){return vbt(this,t)},h.Ih=function(t,r,o){var a,u,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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,62):null}return qu(this,t-ln((_t(),Ev)),kt((a=l(qt(this,16),29),a||Ev),t),r,o)},h.Ph=function(t,r,o){var a,u,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=(u=this.Db>>16,u>=0?vbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Su(this,t,10,o)}return f=l(kt((a=l(qt(this,16),29),a||(_t(),Ev)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Ev)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 9:return uW(this,o);case 10:return Su(this,null,10,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),Ev)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Ev)),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 zu(this,t-ln((_t(),Ev)),kt((r=l(qt(this,16),29),r||Ev),t))},h.fi=function(){return _t(),Ev},k(zt,"EParameterImpl",507),x(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},Gde),h.Ih=function(t,r,o){var a,u,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 Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Oe(this.s);case 5:return Oe(this.t);case 6:return Lt(),p=this.t,p>1||p==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Dy);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yc);case 16:return Lt(),!!(this.Bb&$f);case 17:return iy(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return Lt(),f=Po(this),!!(f&&f.Bb&Ws);case 20:return Lt(),!!(this.Bb&Io);case 21:return r?Po(this):this.b;case 22:return r?$ge(this):Elt(this);case 23:return!this.a&&(this.a=new sE(wv,this,23)),this.a}return qu(this,t-ln((_t(),y2)),kt((a=l(qt(this,16),29),a||y2),t),r,o)},h.Th=function(t){var r,o,a,u;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return u=this.t,u>1||u==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&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&Dy)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!iy(this);case 18:return(this.Bb&Ws)!=0;case 19:return a=Po(this),!!a&&(a.Bb&Ws)!=0;case 20:return(this.Bb&Io)==0;case 21:return!!this.b;case 22:return!!Elt(this);case 23:return!!this.a&&this.a.i!=0}return zu(this,t-ln((_t(),y2)),kt((r=l(qt(this,16),29),r||y2),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:MW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:ug(this,l(r,15).a);return;case 5:dy(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:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:nde(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:Wcn(this,Ye(Ke(r)));return;case 20:m1e(this,Ye(Ke(r)));return;case 21:gge(this,l(r,20));return;case 23:!this.a&&(this.a=new sE(wv,this,23)),vn(this.a),!this.a&&(this.a=new sE(wv,this,23)),ti(this.a,l(r,18));return}Xu(this,t-ln((_t(),y2)),kt((o=l(qt(this,16),29),o||y2),t),r)},h.fi=function(){return _t(),y2},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:se(this.Cb,89)&&Ay(Pc(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:ug(this,0);return;case 5:dy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Aj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:w1e(this,!1),se(this.Cb,89)&&Ay(Pc(l(this.Cb,89)),2);return;case 20:m1e(this,!0);return;case 21:gge(this,null);return;case 23:!this.a&&(this.a=new sE(wv,this,23)),vn(this.a);return}Ju(this,t-ln((_t(),y2)),kt((r=l(qt(this,16),29),r||y2),t))},h.mi=function(){$ge(this),c_(is((mc(),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&Io)!=0},h.Wk=function(t,r){return this.c=null,a1e(this,t,r)},h.Ib=function(){var t;return this.Db&64?HF(this):(t=new ml(HF(this)),t.a+=" (containment: ",Zp(t,(this.Bb&Ws)!=0),t.a+=", resolveProxies: ",Zp(t,(this.Bb&Io)!=0),t.a+=")",t.a)},k(zt,"EReferenceImpl",104),x(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},bqe),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){isn(this,In(t))},h.ld=function(t){return Won(this,In(t))},h.Ih=function(t,r,o){var a;switch(t){case 0:return this.b;case 1:return this.c}return qu(this,t-ln((_t(),Do)),kt((a=l(qt(this,16),29),a||Do),t),r,o)},h.Th=function(t){var r;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zu(this,t-ln((_t(),Do)),kt((r=l(qt(this,16),29),r||Do),t))},h.$h=function(t,r){var o;switch(t){case 0:osn(this,In(r));return;case 1:uge(this,In(r));return}Xu(this,t-ln((_t(),Do)),kt((o=l(qt(this,16),29),o||Do),t),r)},h.fi=function(){return _t(),Do},h.hi=function(t){var r;switch(t){case 0:fge(this,null);return;case 1:uge(this,null);return}Ju(this,t-ln((_t(),Do)),kt((r=l(qt(this,16),29),r||Do),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: ",Wo(t,this.b),t.a+=", value: ",Wo(t,this.c),t.a+=")",t.a)},h.a=-1,h.b=null,h.c=null;var zs=k(zt,"EStringToStringMapEntryImpl",553),yLt=Hr(Fr,"FeatureMap/Entry/Internal");x(569,1,Z7),h.vl=function(t){return this.wl(l(t,52))},h.wl=function(t){return this.vl(t)},h.Fb=function(t){var r,o;return this===t?!0:se(t,76)?(r=l(t,76),r.Jk()==this.c?(o=this.kd(),o==null?r.kd()==null:gr(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=mu(t.ok()).vi(),t.ve(),(r!=null&&r.length!=0?r+":"+t.ve():t.ve())+"="+this.kd()},k(zt,"EStructuralFeatureImpl/BasicFeatureMapEntry",569),x(784,569,Z7,rfe),h.wl=function(t){return new rfe(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return Fhn(this,t,this.a,r,o)},h.yl=function(t,r,o){return $hn(this,t,this.a,r,o)},k(zt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),x(1316,1,{},Tnt),h.wk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Wl(this.a).Dk(a)},h.xk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Nl(this.a,a,u)},h.yk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Ol(this.a,a,u)},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 u;u=l(p_(t,this.b),222),u.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(zt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),x(90,1,{},rg,Lb,og,Bb),h.wk=function(t,r,o,a,u){var f;if(f=r.ii(o),f==null&&r.ji(o,f=e7(this,t)),!u)switch(this.e){case 50:case 41:return l(f,593)._j();case 40:return l(f,222).Tl()}return f},h.xk=function(t,r,o,a,u){var f,p;return p=r.ii(o),p==null&&r.ji(o,p=e7(this,t)),f=l(p,72).Uk(a,u),f},h.yk=function(t,r,o,a,u){var f;return f=r.ii(o),f!=null&&(u=l(f,72).Vk(a,u)),u},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 u;u=l(r.ii(o),78),!u&&r.ji(o,u=e7(this,t)),u.Wb(a)},h.Bk=function(t,r,o){var a,u;return u=r.ii(o),u==null&&r.ji(o,u=e7(this,t)),se(u,78)?l(u,78):(a=l(r.ii(o),16),new dZe(a))},h.Ck=function(t,r,o){var a;a=l(r.ii(o),78),!a&&r.ji(o,a=e7(this,t)),a.Ek()},h.b=0,h.e=0,k(zt,"EStructuralFeatureImpl/InternalSettingDelegateMany",90),x(502,1,{}),h.xk=function(t,r,o,a,u){throw Y(new Nn)},h.yk=function(t,r,o,a,u){throw Y(new Nn)},h.Bk=function(t,r,o){return new Tat(this,t,r,o)};var Lh;k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),x(1333,1,SQ,Tat),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(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333),x(777,502,{},jhe),h.wk=function(t,r,o,a,u){return TJ(t,t.Mh(),t.Ch())==this.b?this._k()&&a?dJ(t):t.Mh():null},h.xk=function(t,r,o,a,u){var f,p;return t.Mh()&&(u=(f=t.Ch(),f>=0?t.xh(u):t.Mh().Qh(t,-1-f,null,u))),p=Ur(t.Ah(),this.e),t.zh(a,p,u)},h.yk=function(t,r,o,a,u){var f;return f=Ur(t.Ah(),this.e),t.zh(null,f,u)},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 u,f,p,m,y;if(a!=null&&!kJ(this.a,a))throw Y(new MA(Q7+(se(a,57)?xbe(l(a,57).Ah()):Vpe(ru(a)))+e$+this.a+"'"));if(u=t.Mh(),p=Ur(t.Ah(),this.e),me(a)!==me(u)||t.Ch()!=p&&a!=null){if(z_(t,l(a,57)))throw Y(new jt(oI+t.Ib()));y=null,u&&(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()&&pr(t,new Pi(t,1,p,a,a))},h.Ck=function(t,r,o){var a,u,f,p;a=t.Mh(),a?(p=(u=t.Ch(),u>=0?t.xh(null):t.Mh().Qh(t,-1-u,null,null)),f=Ur(t.Ah(),this.e),p=t.zh(null,f,p),p&&p.mj()):t.sh()&&t.th()&&pr(t,new N3(t,1,this.e,null,null))},h._k=function(){return!1},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),x(1317,777,{},pot),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317),x(567,502,{}),h.wk=function(t,r,o,a,u){var f;return f=r.ii(o),f==null?this.b:me(f)===me(Lh)?null:f},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null&&(me(a)===me(Lh)||!gr(a,this.b))},h.Ak=function(t,r,o,a){var u,f;t.sh()&&t.th()?(u=(f=r.ii(o),f==null?this.b:me(f)===me(Lh)?null:f),a==null?this.c!=null?(r.ji(o,null),a=this.b):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(a),r.ji(o,a)),pr(t,this.d.Al(t,1,this.e,u,a))):a==null?this.c!=null?r.ji(o,null):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,u;t.sh()&&t.th()?(a=(u=r.ii(o),u==null?this.b:me(u)===me(Lh)?null:u),r.ki(o),pr(t,this.d.Al(t,1,this.e,a,this.b))):r.ki(o)},h.zl=function(t){throw Y(new EZe)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),x(zE,1,{},mqe),h.Al=function(t,r,o,a,u){return new N3(t,r,o,a,u)},h.Bl=function(t,r,o,a,u,f){return new TW(t,r,o,a,u,f)};var D3e,L3e,M3e,P3e,j3e,F3e,$3e,Hre,B3e;k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",zE),x(1334,zE,{},wqe),h.Al=function(t,r,o,a,u){return new mpe(t,r,o,Ye(Ke(a)),Ye(Ke(u)))},h.Bl=function(t,r,o,a,u,f){return new eut(t,r,o,Ye(Ke(a)),Ye(Ke(u)),f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),x(1335,zE,{},yqe),h.Al=function(t,r,o,a,u){return new Jpe(t,r,o,l(a,224).a,l(u,224).a)},h.Bl=function(t,r,o,a,u,f){return new Wct(t,r,o,l(a,224).a,l(u,224).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),x(1336,zE,{},vqe),h.Al=function(t,r,o,a,u){return new Xpe(t,r,o,l(a,183).a,l(u,183).a)},h.Bl=function(t,r,o,a,u,f){return new Kct(t,r,o,l(a,183).a,l(u,183).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),x(1337,zE,{},Eqe),h.Al=function(t,r,o,a,u){return new gpe(t,r,o,ce(le(a)),ce(le(u)))},h.Bl=function(t,r,o,a,u,f){return new Yct(t,r,o,ce(le(a)),ce(le(u)),f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),x(1338,zE,{},Sqe),h.Al=function(t,r,o,a,u){return new ege(t,r,o,l(a,165).a,l(u,165).a)},h.Bl=function(t,r,o,a,u,f){return new Jct(t,r,o,l(a,165).a,l(u,165).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),x(1339,zE,{},Tqe),h.Al=function(t,r,o,a,u){return new bpe(t,r,o,l(a,15).a,l(u,15).a)},h.Bl=function(t,r,o,a,u,f){return new Xct(t,r,o,l(a,15).a,l(u,15).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),x(1340,zE,{},Aqe),h.Al=function(t,r,o,a,u){return new Zpe(t,r,o,l(a,192).a,l(u,192).a)},h.Bl=function(t,r,o,a,u,f){return new Zct(t,r,o,l(a,192).a,l(u,192).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),x(1341,zE,{},_qe),h.Al=function(t,r,o,a,u){return new Qpe(t,r,o,l(a,193).a,l(u,193).a)},h.Bl=function(t,r,o,a,u,f){return new Qct(t,r,o,l(a,193).a,l(u,193).a,f)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),x(1319,567,{},kat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(Q7+ru(t)+e$+this.a+"'"))},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),x(1320,567,{},lst),h.zl=function(t){},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320),x(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 u,f;t.sh()&&t.th()?(u=!0,f=r.ii(o),f==null?(u=!1,f=this.b):me(f)===me(Lh)&&(f=null),a==null?this.c!=null?(r.ji(o,null),a=this.b):r.ji(o,Lh):(this.zl(a),r.ji(o,a)),pr(t,this.d.Bl(t,1,this.e,f,a,!u))):a==null?this.c!=null?r.ji(o,null):r.ji(o,Lh):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,u;t.sh()&&t.th()?(a=!0,u=r.ii(o),u==null?(a=!1,u=this.b):me(u)===me(Lh)&&(u=null),r.ki(o),pr(t,this.d.Bl(t,2,this.e,u,this.b,a))):r.ki(o)},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778),x(1321,778,{},Nat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(Q7+ru(t)+e$+this.a+"'"))},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),x(1322,778,{},dst),h.zl=function(t){},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),x(407,502,{},lP),h.wk=function(t,r,o,a,u){var f,p,m,y,v;if(v=r.ii(o),this.rk()&&me(v)===me(Lh))return null;if(this._k()&&a&&v!=null){if(m=l(v,52),m.Sh()&&(y=y1(t,m),m!=y)){if(!kJ(this.a,y))throw Y(new MA(Q7+ru(y)+e$+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()&&pr(t,new N3(t,9,this.e,m,y))}return v}else return v},h.xk=function(t,r,o,a,u){var f,p;return p=r.ii(o),me(p)===me(Lh)&&(p=null),r.ji(o,a),this.Kj()?me(p)!==me(a)&&p!=null&&(f=l(p,52),u=f.Qh(t,Ur(f.Ah(),this.b),null,u)):this.$k()&&p!=null&&(u=l(p,52).Qh(t,-1-Ur(t.Ah(),this.e),null,u)),t.sh()&&t.th()&&(!u&&(u=new e1(4)),u.lj(new N3(t,1,this.e,p,a))),u},h.yk=function(t,r,o,a,u){var f;return f=r.ii(o),me(f)===me(Lh)&&(f=null),r.ki(o),t.sh()&&t.th()&&(!u&&(u=new e1(4)),this.rk()?u.lj(new N3(t,2,this.e,f,null)):u.lj(new N3(t,1,this.e,f,null))),u},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null},h.Ak=function(t,r,o,a){var u,f,p,m,y;if(a!=null&&!kJ(this.a,a))throw Y(new MA(Q7+(se(a,57)?xbe(l(a,57).Ah()):Vpe(ru(a)))+e$+this.a+"'"));y=r.ii(o),m=y!=null,this.rk()&&me(y)===me(Lh)&&(y=null),p=null,this.Kj()?me(y)!==me(a)&&(y!=null&&(u=l(y,52),p=u.Qh(t,Ur(u.Ah(),this.b),null,p)),a!=null&&(u=l(a,52),p=u.Oh(t,Ur(u.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,Lh):r.ji(o,a),t.sh()&&t.th()?(f=new TW(t,1,this.e,y,a,this.rk()&&!m),p?(p.lj(f),p.mj()):pr(t,f)):p&&p.mj()},h.Ck=function(t,r,o){var a,u,f,p,m;m=r.ii(o),p=m!=null,this.rk()&&me(m)===me(Lh)&&(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()?(u=new TW(t,this.rk()?2:1,this.e,m,null,p),f?(f.lj(u),f.mj()):pr(t,u)):f&&f.mj()},h.Kj=function(){return!1},h.$k=function(){return!1},h._k=function(){return!1},h.rk=function(){return!1},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407),x(568,407,{},AV),h.$k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),x(1325,568,{},cit),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),x(780,568,{},Bde),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),x(1327,780,{},uit),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),x(645,568,{},$V),h.Kj=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),x(1326,645,{},got),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),x(781,645,{},_fe),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),x(1328,781,{},bot),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),x(646,407,{},Ude),h._k=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),x(1329,646,{},dit),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),x(782,646,{},Tfe),h.Kj=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),x(1330,782,{},mot),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),x(1323,407,{},lit),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),x(779,407,{},Afe),h.Kj=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),x(1324,779,{},wot),h.rk=function(){return!0},k(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),x(783,569,Z7,bhe),h.wl=function(t){return new bhe(this.a,this.c,t)},h.kd=function(){return this.b},h.xl=function(t,r,o){return Pdn(this,t,this.b,o)},h.yl=function(t,r,o){return jdn(this,t,this.b,o)},k(zt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),x(1331,1,SQ,dZe),h.Dk=function(t){return this.a},h.Oj=function(){return se(this.a,98)?l(this.a,98).Oj():!this.a.dc()},h.Wb=function(t){this.a.$b(),this.a.Fc(l(t,16))},h.Ek=function(){se(this.a,98)?l(this.a,98).Ek():this.a.$b()},k(zt,"EStructuralFeatureImpl/SettingMany",1331),x(1332,569,Z7,Wut),h.vl=function(t){return new CV((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(zt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332),x(647,569,Z7,CV),h.vl=function(t){return new CV(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(zt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647),x(399,495,Vf,NA),h.$i=function(t){return we(Ol,It,29,t,0,1)},h.Wi=function(){return!1},k(zt,"ESuperAdapter/1",399),x(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},jG),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,qo,this)),this.a}return qu(this,t-ln((_t(),fw)),kt((a=l(qt(this,16),29),a||fw),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),xo(this.Ab,t,o);case 2:return!this.a&&(this.a=new A3(this,qo,this)),xo(this.a,t,o)}return u=l(kt((a=l(qt(this,16),29),a||(_t(),fw)),r),69),u.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 zu(this,t-ln((_t(),fw)),kt((r=l(qt(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,qo,this)),vn(this.a),!this.a&&(this.a=new A3(this,qo,this)),ti(this.a,l(r,18));return}Xu(this,t-ln((_t(),fw)),kt((o=l(qt(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,qo,this)),vn(this.a);return}Ju(this,t-ln((_t(),fw)),kt((r=l(qt(this,16),29),r||fw),t))},k(zt,"ETypeParameterImpl",449),x(450,82,ws,A3),h.Lj=function(t,r){return Rwn(this,l(t,88),r)},h.Mj=function(t,r){return Own(this,l(t,88),r)},k(zt,"ETypeParameterImpl/1",450),x(644,44,LE,sq),h.ec=function(){return new C9(this)},k(zt,"ETypeParameterImpl/2",644),x(564,tf,wc,C9),h.Ec=function(t){return qit(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 hy(new Mw(this.a).a),new I9(t)},h.Kc=function(t){return Mlt(this,t)},h.gc=function(){return WN(this.a)},k(zt,"ETypeParameterImpl/2/1",564),x(565,1,Wi,I9),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(bE(this.a).jd(),88)},h.Ob=function(){return this.a.b},h.Qb=function(){Wdt(this.a)},k(zt,"ETypeParameterImpl/2/1/1",565),x(1293,44,LE,eQe),h._b=function(t){return zi(t)?_W(this,t):!!ns(this.f,t)},h.xc=function(t){var r,o;return r=zi(t)?wa(this,t):Ss(ns(this.f,t)),se(r,843)?(o=l(r,843),r=o.Ik(),Jn(this,l(t,244),r),r):r??(t==null?(_q(),ELt):null)},k(zt,"EValidatorRegistryImpl",1293),x(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},xqe),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 Vfn(r);case 27:return afn(r);case 28:return cfn(r);case 29:return r==null?null:hrt(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(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f,p,m,y,v,T,N,R,M,U,G,J;switch(t.G==-1&&(t.G=(R=mu(t),R?gg(R.si(),t):-1)),t.G){case 0:return o=new rq,o;case 1:return r=new Gce,r;case 2:return a=new Yce,a;case 4:return u=new R9,u;case 5:return f=new QZe,f;case 6:return p=new bZe,p;case 7:return m=new Kce,m;case 10:return v=new v9,v;case 11:return T=new iq,T;case 12:return N=new $at,N;case 13:return M=new oq,M;case 14:return U=new Gde,U;case 17:return G=new bqe,G;case 18:return y=new Ym,y;case 19:return J=new jG,J;default:throw Y(new jt(sQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 20:return r==null?null:new ule(r);case 21:return r==null?null:new s1(r);case 23:case 22:return r==null?null:q1n(r);case 26:case 24:return r==null?null:p6(Eu(r,-128,127)<<24>>24);case 25:return WEn(r);case 27:return Cmn(r);case 28:return Imn(r);case 29:return Xwn(r);case 32:case 31:return r==null?null:Sy(r);case 38:case 37:return r==null?null:new Oue(r);case 40:case 39:return r==null?null:Oe(Eu(r,Zi,ar));case 41:return null;case 42:return r==null,null;case 44:case 43:return r==null?null:yy(QF(r));case 49:case 48:return r==null?null:D_(Eu(r,t$,32767)<<16>>16);case 50:return r;default:throw Y(new jt(Dx+t.ve()+W0))}},k(zt,"EcoreFactoryImpl",1315),x(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},sat),h.gb=!1,h.hb=!1;var U3e,vLt=!1;k(zt,"EcorePackageImpl",552),x(1211,1,{843:1},kqe),h.Ik=function(){return Urt(),SLt},k(zt,"EcorePackageImpl/1",1211),x(1220,1,tr,Nqe),h.dk=function(t){return se(t,159)},h.ek=function(t){return we(r5,It,159,t,0,1)},k(zt,"EcorePackageImpl/10",1220),x(1221,1,tr,Cqe),h.dk=function(t){return se(t,199)},h.ek=function(t){return we(Dre,It,199,t,0,1)},k(zt,"EcorePackageImpl/11",1221),x(1222,1,tr,Iqe),h.dk=function(t){return se(t,57)},h.ek=function(t){return we(J1,It,57,t,0,1)},k(zt,"EcorePackageImpl/12",1222),x(1223,1,tr,Rqe),h.dk=function(t){return se(t,408)},h.ek=function(t){return we(Dl,REe,62,t,0,1)},k(zt,"EcorePackageImpl/13",1223),x(1224,1,tr,Oqe),h.dk=function(t){return se(t,244)},h.ek=function(t){return we(Dd,It,244,t,0,1)},k(zt,"EcorePackageImpl/14",1224),x(1225,1,tr,Dqe),h.dk=function(t){return se(t,507)},h.ek=function(t){return we(lw,It,2095,t,0,1)},k(zt,"EcorePackageImpl/15",1225),x(1226,1,tr,Lqe),h.dk=function(t){return se(t,104)},h.ek=function(t){return we(yv,HE,20,t,0,1)},k(zt,"EcorePackageImpl/16",1226),x(1227,1,tr,Mqe),h.dk=function(t){return se(t,182)},h.ek=function(t){return we(ac,HE,182,t,0,1)},k(zt,"EcorePackageImpl/17",1227),x(1228,1,tr,Pqe),h.dk=function(t){return se(t,473)},h.ek=function(t){return we(mv,It,473,t,0,1)},k(zt,"EcorePackageImpl/18",1228),x(1229,1,tr,jqe),h.dk=function(t){return se(t,553)},h.ek=function(t){return we(zs,HAt,553,t,0,1)},k(zt,"EcorePackageImpl/19",1229),x(1212,1,tr,Fqe),h.dk=function(t){return se(t,336)},h.ek=function(t){return we(wv,HE,38,t,0,1)},k(zt,"EcorePackageImpl/2",1212),x(1230,1,tr,$qe),h.dk=function(t){return se(t,251)},h.ek=function(t){return we(qo,o_t,88,t,0,1)},k(zt,"EcorePackageImpl/20",1230),x(1231,1,tr,Bqe),h.dk=function(t){return se(t,449)},h.ek=function(t){return we(Ka,It,842,t,0,1)},k(zt,"EcorePackageImpl/21",1231),x(1232,1,tr,Uqe),h.dk=function(t){return Hw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(zt,"EcorePackageImpl/22",1232),x(1233,1,tr,Hqe),h.dk=function(t){return se(t,198)},h.ek=function(t){return we(Ec,Pe,198,t,0,2)},k(zt,"EcorePackageImpl/23",1233),x(1234,1,tr,zqe),h.dk=function(t){return se(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(zt,"EcorePackageImpl/24",1234),x(1235,1,tr,Gqe),h.dk=function(t){return se(t,183)},h.ek=function(t){return we(mI,Pe,183,t,0,1)},k(zt,"EcorePackageImpl/25",1235),x(1236,1,tr,qqe),h.dk=function(t){return se(t,208)},h.ek=function(t){return we(d$,Pe,208,t,0,1)},k(zt,"EcorePackageImpl/26",1236),x(1237,1,tr,Vqe),h.dk=function(t){return!1},h.ek=function(t){return we(oCe,It,2191,t,0,1)},k(zt,"EcorePackageImpl/27",1237),x(1238,1,tr,Wqe),h.dk=function(t){return zw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(zt,"EcorePackageImpl/28",1238),x(1239,1,tr,Kqe),h.dk=function(t){return se(t,61)},h.ek=function(t){return we(v3e,Ly,61,t,0,1)},k(zt,"EcorePackageImpl/29",1239),x(1213,1,tr,Yqe),h.dk=function(t){return se(t,508)},h.ek=function(t){return we(Kn,{3:1,4:1,5:1,2012:1},594,t,0,1)},k(zt,"EcorePackageImpl/3",1213),x(1240,1,tr,Jqe),h.dk=function(t){return se(t,575)},h.ek=function(t){return we(T3e,It,2018,t,0,1)},k(zt,"EcorePackageImpl/30",1240),x(1241,1,tr,Xqe),h.dk=function(t){return se(t,164)},h.ek=function(t){return we(V3e,Ly,164,t,0,1)},k(zt,"EcorePackageImpl/31",1241),x(1242,1,tr,Zqe),h.dk=function(t){return se(t,76)},h.ek=function(t){return we(AU,p_t,76,t,0,1)},k(zt,"EcorePackageImpl/32",1242),x(1243,1,tr,Qqe),h.dk=function(t){return se(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(zt,"EcorePackageImpl/33",1243),x(1244,1,tr,eVe),h.dk=function(t){return se(t,15)},h.ek=function(t){return we(_i,Pe,15,t,0,1)},k(zt,"EcorePackageImpl/34",1244),x(1245,1,tr,tVe),h.dk=function(t){return se(t,299)},h.ek=function(t){return we(GEe,It,299,t,0,1)},k(zt,"EcorePackageImpl/35",1245),x(1246,1,tr,nVe),h.dk=function(t){return se(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(zt,"EcorePackageImpl/36",1246),x(1247,1,tr,rVe),h.dk=function(t){return se(t,93)},h.ek=function(t){return we(qEe,It,93,t,0,1)},k(zt,"EcorePackageImpl/37",1247),x(1248,1,tr,iVe),h.dk=function(t){return se(t,595)},h.ek=function(t){return we(H3e,It,595,t,0,1)},k(zt,"EcorePackageImpl/38",1248),x(1249,1,tr,oVe),h.dk=function(t){return!1},h.ek=function(t){return we(sCe,It,2192,t,0,1)},k(zt,"EcorePackageImpl/39",1249),x(1214,1,tr,sVe),h.dk=function(t){return se(t,89)},h.ek=function(t){return we(Ol,It,29,t,0,1)},k(zt,"EcorePackageImpl/4",1214),x(1250,1,tr,aVe),h.dk=function(t){return se(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(zt,"EcorePackageImpl/40",1250),x(1251,1,tr,cVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(zt,"EcorePackageImpl/41",1251),x(1252,1,tr,uVe),h.dk=function(t){return se(t,592)},h.ek=function(t){return we(S3e,It,592,t,0,1)},k(zt,"EcorePackageImpl/42",1252),x(1253,1,tr,lVe),h.dk=function(t){return!1},h.ek=function(t){return we(aCe,Pe,2193,t,0,1)},k(zt,"EcorePackageImpl/43",1253),x(1254,1,tr,dVe),h.dk=function(t){return se(t,45)},h.ek=function(t){return we(dm,n7,45,t,0,1)},k(zt,"EcorePackageImpl/44",1254),x(1215,1,tr,fVe),h.dk=function(t){return se(t,146)},h.ek=function(t){return we(Ld,It,146,t,0,1)},k(zt,"EcorePackageImpl/5",1215),x(1216,1,tr,hVe),h.dk=function(t){return se(t,160)},h.ek=function(t){return we($re,It,160,t,0,1)},k(zt,"EcorePackageImpl/6",1216),x(1217,1,tr,pVe),h.dk=function(t){return se(t,462)},h.ek=function(t){return we(TU,It,682,t,0,1)},k(zt,"EcorePackageImpl/7",1217),x(1218,1,tr,gVe),h.dk=function(t){return se(t,575)},h.ek=function(t){return we(Op,It,691,t,0,1)},k(zt,"EcorePackageImpl/8",1218),x(1219,1,tr,bVe),h.dk=function(t){return se(t,472)},h.ek=function(t){return we(I4,It,472,t,0,1)},k(zt,"EcorePackageImpl/9",1219),x(1030,2059,UAt,AQe),h.Ki=function(t,r){Agn(this,l(r,420))},h.Oi=function(t,r){qmt(this,t,l(r,420))},k(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),x(1031,152,qD,Yst),h.hj=function(){return this.a.a},k(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),x(1058,1057,{},irt),k("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var H3e=Hr(g_t,"Resource");x(793,1502,b_t),h.Fl=function(t){},h.Gl=function(t){},h.Cl=function(){return!this.a&&(this.a=new XG(this)),this.a},h.Dl=function(t){var r,o,a,u,f;if(a=t.length,a>0)if(Jt(0,t.length),t.charCodeAt(0)==47){for(f=new Da(4),u=1,r=1;r0&&(t=(io(0,o,t.length),t.substr(0,o))));return Fvn(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(TQ,"ResourceImpl",793),x(1503,793,b_t,fZe),k(TQ,"BinaryResourceImpl",1503),x(1171,704,mQ),h._i=function(t){return se(t,57)?scn(this,l(t,57)):se(t,595)?new tn(l(t,595).Cl()):me(t)===me(this.f)?l(t,18).Jc():(JA(),u5.a)},h.Ob=function(){return vme(this)},h.a=!1,k(Fr,"EcoreUtil/ContentTreeIterator",1171),x(1504,1171,mQ,Ast),h._i=function(t){return me(t)===me(this.f)?l(t,16).Jc():new Iut(l(t,57))},k(TQ,"ResourceImpl/5",1504),x(654,2071,i_t,XG),h.Gc=function(t){return this.i<=4?q_(this,t):se(t,52)&&l(t,52).Gh()==this.a},h.Ki=function(t,r){t==this.i-1&&(this.a.b||(this.a.b=!0))},h.Mi=function(t,r){t==0?this.a.b||(this.a.b=!0):eK(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(J1,It,57,t,0,1)},h.Wi=function(){return!1},k(TQ,"ResourceImpl/ContentsEList",654),x(962,2041,lx,hZe),h.dd=function(t){return this.a.Ii(t)},h.gc=function(){return this.a.gc()},k(Fr,"AbstractSequentialInternalEList/1",962);var z3e,G3e,ao,q3e;x(632,1,{},Dot);var _U,xU;k(Fr,"BasicExtendedMetaData",632),x(1162,1,{},Ant),h.Hl=function(){return null},h.Il=function(){return this.a==-2&&zZt(this,Gwn(this.d,this.b)),this.a},h.Jl=function(){return null},h.Kl=function(){return At(),At(),Ro},h.ve=function(){return this.c==jx&&GZt(this,u1t(this.d,this.b)),this.c},h.Ll=function(){return 0},h.a=-2,h.c=jx,k(Fr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),x(1163,1,{},nut),h.Hl=function(){return this.a==(h_(),_U)&&WZt(this,OTn(this.f,this.b)),this.a},h.Il=function(){return 0},h.Jl=function(){return this.c==(h_(),_U)&&qZt(this,DTn(this.f,this.b)),this.c},h.Kl=function(){return!this.d&&YZt(this,b_n(this.f,this.b)),this.d},h.ve=function(){return this.e==jx&&XZt(this,u1t(this.f,this.b)),this.e},h.Ll=function(){return this.g==-2&&QZt(this,lwn(this.f,this.b)),this.g},h.e=jx,h.g=-2,k(Fr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),x(1161,1,{},xnt),h.b=!1,h.c=!1,k(Fr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),x(1164,1,{},rut),h.c=-2,h.e=jx,h.f=jx,k(Fr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),x(588,630,ws,Q8),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 V3e=Hr(Fr,"FeatureMap");x(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){Q2n(this,t,l(r,76))},h.Ec=function(t){return b2n(this,l(t,76))},h.Fi=function(t){can(this,l(t,76))},h.Lj=function(t,r){return _rn(this,l(t,76),r)},h.Mj=function(t,r){return pfe(this,l(t,76),r)},h.Ri=function(t,r){return TAn(this,t,r)},h.Ui=function(t,r){return hkn(this,t,l(r,76))},h.fd=function(t,r){return FSn(this,t,l(r,76))},h.Sj=function(t,r){return xrn(this,l(t,76),r)},h.Tj=function(t,r){return Zit(this,l(t,76),r)},h.Uj=function(t,r,o){return ewn(this,l(t,76),l(r,76),o)},h.Xi=function(t,r){return WY(this,t,l(r,76))},h.Ml=function(t,r){return p0e(this,t,r)},h.ad=function(t,r){var o,a,u,f,p,m,y,v,T;for(v=new w0(r.gc()),u=r.Jc();u.Ob();)if(a=l(u.Pb(),76),f=a.Jk(),wp(this.e,f))(!f.Qi()||!zP(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),x(673,417,vh,cV),h.sl=function(){return!0},k(Fr,"BasicFeatureMap/ResolvingFeatureEIterator",673),x(960,485,J7,mrt),h.nj=function(){return this},k(Fr,"EContentsEList/1",960),x(961,485,J7,Bnt),h.sl=function(){return!1},k(Fr,"EContentsEList/2",961),x(959,289,X7,wrt),h.ul=function(t){},h.Ob=function(){return!1},h.Sb=function(){return!1},k(Fr,"EContentsEList/FeatureIteratorImpl/1",959),x(832,588,ws,Ede),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.a,this.a=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EDataTypeEList/Unsettable",832),x(1937,588,ws,xrt),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList",1937),x(1938,832,ws,Art),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList/Unsettable",1938),x(147,82,ws,dc),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Resolving",147),x(1165,547,ws,Trt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Unsettable/Resolving",1165),x(760,14,ws,afe),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.a,this.a=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectContainmentWithInverseEList/Unsettable",760),x(1199,760,ws,$it),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),x(752,494,ws,vde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.a,this.a=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectEList/Unsettable",752),x(340,494,ws,sE),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList",340),x(1842,752,ws,_rt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList/Unsettable",1842),x(1505,1,{},mVe);var ELt;k(Fr,"EObjectValidator",1505),x(551,494,ws,wP),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),x(1202,551,ws,Bit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/ManyInverse",1202),x(633,551,ws,IV),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.a,this.a=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectWithInverseEList/Unsettable",633),x(1201,633,ws,Uit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),x(761,551,ws,cfe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList",761),x(31,761,ws,Tt),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/ManyInverse",31),x(762,633,ws,ufe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList/Unsettable",762),x(1200,762,ws,Hit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),x(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?Fut(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&&(Jc(this.e)?(t=(this.b&1)!=0,this.b&=-2,LA(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),x(1167,1166,ws,Fat),h.Jk=function(){return this.a},k(Fr,"EcoreEList/Dynamic",1167),x(759,67,Vf,kue),h.$i=function(t){return y6(this.a.a,t)},k(Fr,"EcoreEMap/1",759),x(758,82,ws,rhe),h.Ki=function(t,r){lF(this.b,l(r,138))},h.Mi=function(t,r){Ght(this.b)},h.Ni=function(t,r,o){var a;++(a=this.b,l(r,138),a).e},h.Oi=function(t,r){tY(this.b,l(r,138))},h.Pi=function(t,r,o){tY(this.b,l(o,138)),me(o)===me(r)&&l(o,138).zi(Rtn(l(r,138).jd())),lF(this.b,l(r,138))},k(Fr,"EcoreEMap/DelegateEObjectContainmentEList",758),x(1197,145,IEe,eht),k(Fr,"EcoreEMap/Unsettable",1197),x(1198,758,ws,zit),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Jc(this.e)?(t=this.a,this.a=!1,pr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),x(1170,226,LE,Gst),h.a=!1,h.b=!1,k(Fr,"EcoreUtil/Copier",1170),x(754,1,Wi,Iut),h.Nb=function(t){so(this,t)},h.Ob=function(){return zgt(this)},h.Pb=function(){var t;return zgt(this),t=this.b,this.b=null,t},h.Qb=function(){this.a.Qb()},k(Fr,"EcoreUtil/ProperContentIterator",754),x(1506,1505,{},wKe);var SLt;k(Fr,"EcoreValidator",1506);var TLt;Hr(Fr,"FeatureMapUtil/Validator"),x(1270,1,{2020:1},wVe),h.$l=function(t){return!0},k(Fr,"FeatureMapUtil/1",1270),x(767,1,{2020:1},W0e),h.$l=function(t){var r;return this.c==t?!0:(r=Ke(Ut(this.a,t)),r==null?FTn(this,t)?(xlt(this.a,t,(Lt(),Bx)),!0):(xlt(this.a,t,(Lt(),L1)),!1):r==(Lt(),Bx))},h.e=!1;var zre;k(Fr,"FeatureMapUtil/BasicValidator",767),x(768,44,LE,mde),k(Fr,"FeatureMapUtil/BasicValidator/Cache",768),x(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){Hwt(this.c,this.b,t,r)},h.Ec=function(t){return p0e(this.c,this.b,t)},h.ad=function(t,r){return oxn(this.c,this.b,t,r)},h.Fc=function(t){return m3(this,t)},h.Ei=function(t,r){Ofn(this.c,this.b,t,r)},h.Uk=function(t,r){return s0e(this.c,this.b,t,r)},h.Yi=function(t){return KF(this.c,this.b,t,!1)},h.Gi=function(){return ert(this.c,this.b)},h.Hi=function(){return ptn(this.c,this.b)},h.Ii=function(t){return Fdn(this.c,this.b,t)},h.Vk=function(t,r){return _it(this,t,r)},h.$b=function(){iS(this)},h.Gc=function(t){return zP(this.c,this.b,t)},h.Hc=function(t){return Phn(this.c,this.b,t)},h.Xb=function(t){return KF(this.c,this.b,t,!0)},h.Dk=function(t){return this},h.bd=function(t){return Kln(this.c,this.b,t)},h.dc=function(){return k8(this)},h.Oj=function(){return!F6(this.c,this.b)},h.Jc=function(){return wfn(this.c,this.b)},h.cd=function(){return yfn(this.c,this.b)},h.dd=function(t){return Bgn(this.c,this.b,t)},h.Ri=function(t,r){return svt(this.c,this.b,t,r)},h.Si=function(t,r){Bdn(this.c,this.b,t,r)},h.ed=function(t){return Imt(this.c,this.b,t)},h.Kc=function(t){return cAn(this.c,this.b,t)},h.fd=function(t,r){return bvt(this.c,this.b,t,r)},h.Wb=function(t){CF(this.c,this.b),m3(this,l(t,16))},h.gc=function(){return Ugn(this.c,this.b)},h.Nc=function(){return Wun(this.c,this.b)},h.Oc=function(t){return Yln(this.c,this.b,t)},h.Ib=function(){var t,r;for(r=new Xp,r.a+="[",t=ert(this.c,this.b);GK(t);)Wo(r,y3(cF(t))),GK(t)&&(r.a+=ja);return r.a+="]",r.a},h.Ek=function(){CF(this.c,this.b)},k(Fr,"FeatureMapUtil/FeatureEList",499),x(641,40,qD,GW),h.fj=function(t){return sC(this,t)},h.kj=function(t){var r,o,a,u,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(u=t.ej(),u){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(u=t.ej(),u){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(u=t.ej(),u){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(u=t.ej(),u){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),ca(p,0,a,0,p.length),a[p.length]=t.jj(),this.g=a,!0;break}}break}}return!1},k(Fr,"FeatureMapUtil/FeatureENotificationImpl",641),x(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},rP),h.Ml=function(t,r){return p0e(this.c,t,r)},h.Nl=function(t,r,o){return s0e(this.c,t,r,o)},h.Ol=function(t,r,o){return M0e(this.c,t,r,o)},h.Pl=function(){return this},h.Ql=function(t,r){return lD(this.c,t,r)},h.Rl=function(t){return l(KF(this.c,this.b,t,!1),76).Jk()},h.Sl=function(t){return l(KF(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){YF(this.c,t,r)},h.Wl=function(t){return lht(this.c,t)},h.Xl=function(t){K1t(this.c,t)},k(Fr,"FeatureMapUtil/FeatureFeatureMap",560),x(1269,1,SQ,_nt),h.Dk=function(t){return KF(this.b,this.a,-1,t)},h.Oj=function(){return!F6(this.b,this.a)},h.Wb=function(t){YF(this.b,this.a,t)},h.Ek=function(){CF(this.b,this.a)},k(Fr,"FeatureMapUtil/FeatureValue",1269);var JT,Gre,qre,XT,ALt,d5=Hr(o$,"AnyType");x(677,63,vp,hq),k(o$,"InvalidDatatypeValueException",677);var kU=Hr(o$,w_t),f5=Hr(o$,y_t),W3e=Hr(o$,v_t),_Lt,Ks,K3e,km,xLt,kLt,NLt,CLt,ILt,RLt,OLt,DLt,LLt,MLt,PLt,v2,jLt,E2,M4,FLt,hw,h5,p5,$Lt,P4,j4;x(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Hue),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 qu(this,t-ln(this.fi()),kt(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)),aD(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)),aD(this.b,t,o)}return a=l(kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),r),69),a.uk().yk(this,zpe(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 zu(this,t-ln(this.fi()),kt(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}Xu(this,t-ln(this.fi()),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t),r)},h.fi=function(){return Tr(),K3e},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}Ju(this,t-ln(this.fi()),kt(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(Ai,"AnyTypeImpl",836),x(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},IVe),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return qu(this,t-ln((Tr(),v2)),kt(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.a!=null;case 1:return this.b!=null}return zu(this,t-ln((Tr(),v2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},h.$h=function(t,r){switch(t){case 0:nQt(this,In(r));return;case 1:iQt(this,In(r));return}Xu(this,t-ln((Tr(),v2)),kt(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.a=null;return;case 1:this.b=null;return}Ju(this,t-ln((Tr(),v2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (data: ",Wo(t,this.a),t.a+=", target: ",Wo(t,this.b),t.a+=")",t.a)},h.a=null,h.b=null,k(Ai,"ProcessingInstructionImpl",678),x(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},tQe),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(lD(this.c,(Tr(),M4),!0));case 4:return dfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0))));case 5:return this.a}return qu(this,t-ln((Tr(),E2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():E2,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(lD(this.c,(Tr(),M4),!0))!=null;case 4:return dfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0))))!=null;case 5:return!!this.a}return zu(this,t-ln((Tr(),E2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():E2,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:Xhe(this,In(r));return;case 4:Xhe(this,lfe(this.a,r));return;case 5:rQt(this,l(r,160));return}Xu(this,t-ln((Tr(),E2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():E2,t),r)},h.fi=function(){return Tr(),E2},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)),YF(this.c,(Tr(),M4),null);return;case 4:Xhe(this,lfe(this.a,null));return;case 5:this.a=null;return}Ju(this,t-ln((Tr(),E2)),kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():E2,t))},k(Ai,"SimpleAnyTypeImpl",679),x(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},nQe),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 pc((_t(),Do),zs,this,1)),this.b):(!this.b&&(this.b=new pc((_t(),Do),zs,this,1)),s6(this.b));case 2:return o?(!this.c&&(this.c=new pc((_t(),Do),zs,this,2)),this.c):(!this.c&&(this.c=new pc((_t(),Do),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 qu(this,t-ln((Tr(),hw)),kt(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)),aD(this.a,t,o);case 1:return!this.b&&(this.b=new pc((_t(),Do),zs,this,1)),V8(this.b,t,o);case 2:return!this.c&&(this.c=new pc((_t(),Do),zs,this,2)),V8(this.c,t,o);case 5:return!this.a&&(this.a=new ni(this,0)),_it(ya(this.a,(Tr(),P4)),t,o)}return a=l(kt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():(Tr(),hw),r),69),a.uk().yk(this,zpe(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)),!k8(ya(this.a,(Tr(),h5)));case 4:return!this.a&&(this.a=new ni(this,0)),!k8(ya(this.a,(Tr(),p5)));case 5:return!this.a&&(this.a=new ni(this,0)),!k8(ya(this.a,(Tr(),P4)));case 6:return!this.a&&(this.a=new ni(this,0)),!k8(ya(this.a,(Tr(),j4)))}return zu(this,t-ln((Tr(),hw)),kt(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 pc((_t(),Do),zs,this,1)),Ij(this.b,r);return;case 2:!this.c&&(this.c=new pc((_t(),Do),zs,this,2)),Ij(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}Xu(this,t-ln((Tr(),hw)),kt(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 pc((_t(),Do),zs,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pc((_t(),Do),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}Ju(this,t-ln((Tr(),hw)),kt(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(Ai,"XMLTypeDocumentRootImpl",680),x(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},yVe),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 Hnn(l(r,198));case 12:case 47:case 49:case 11:return rEt(this,t,r);case 13:return r==null?null:dxn(l(r,249));case 15:case 14:return r==null?null:Qsn(ce(le(r)));case 17:return jbt((Tr(),r));case 18:return jbt(r);case 21:case 20:return r==null?null:ean(l(r,165).a);case 27:return znn(l(r,198));case 30:return Y1t((Tr(),l(r,16)));case 31:return Y1t(l(r,16));case 40:return Unn((Tr(),r));case 42:return Fbt((Tr(),r));case 43:return Fbt(r);case 59:case 48:return Bnn((Tr(),r));default:throw Y(new jt(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f;switch(t.G==-1&&(t.G=(o=mu(t),o?gg(o.si(),t):-1)),t.G){case 0:return r=new Hue,r;case 1:return a=new IVe,a;case 2:return u=new tQe,u;case 3:return f=new nQe,f;default:throw Y(new jt(sQ+t.zb+W0))}},h.qi=function(t,r){var o,a,u,f,p,m,y,v,T,N,R,M,U,G,J,re;switch(t.fk()){case 5:case 52:case 4:return r;case 6:return vbn(r);case 8:case 7:return r==null?null:swn(r);case 9:return r==null?null:p6(Eu((a=Ta(r,!0),a.length>0&&(Jt(0,a.length),a.charCodeAt(0)==43)?(Jt(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return r==null?null:p6(Eu((u=Ta(r,!0),u.length>0&&(Jt(0,u.length),u.charCodeAt(0)==43)?(Jt(1,u.length+1),u.substr(1)):u),-128,127)<<24>>24);case 11:return In(P0(this,(Tr(),NLt),r));case 12:return In(P0(this,(Tr(),CLt),r));case 13:return r==null?null:new ule(Ta(r,!0));case 15:case 14:return y2n(r);case 16:return In(P0(this,(Tr(),ILt),r));case 17:return Xgt((Tr(),r));case 18:return Xgt(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 C2n(r);case 22:return In(P0(this,(Tr(),RLt),r));case 23:return In(P0(this,(Tr(),OLt),r));case 24:return In(P0(this,(Tr(),DLt),r));case 25:return In(P0(this,(Tr(),LLt),r));case 26:return In(P0(this,(Tr(),MLt),r));case 27:return lbn(r);case 30:return Zgt((Tr(),r));case 31:return Zgt(r);case 32:return r==null?null:Oe(Eu((T=Ta(r,!0),T.length>0&&(Jt(0,T.length),T.charCodeAt(0)==43)?(Jt(1,T.length+1),T.substr(1)):T),Zi,ar));case 33:return r==null?null:new s1((N=Ta(r,!0),N.length>0&&(Jt(0,N.length),N.charCodeAt(0)==43)?(Jt(1,N.length+1),N.substr(1)):N));case 34:return r==null?null:Oe(Eu((R=Ta(r,!0),R.length>0&&(Jt(0,R.length),R.charCodeAt(0)==43)?(Jt(1,R.length+1),R.substr(1)):R),Zi,ar));case 36:return r==null?null:yy(QF((M=Ta(r,!0),M.length>0&&(Jt(0,M.length),M.charCodeAt(0)==43)?(Jt(1,M.length+1),M.substr(1)):M)));case 37:return r==null?null:yy(QF((U=Ta(r,!0),U.length>0&&(Jt(0,U.length),U.charCodeAt(0)==43)?(Jt(1,U.length+1),U.substr(1)):U)));case 40:return amn((Tr(),r));case 42:return Qgt((Tr(),r));case 43:return Qgt(r);case 44:return r==null?null:new s1((G=Ta(r,!0),G.length>0&&(Jt(0,G.length),G.charCodeAt(0)==43)?(Jt(1,G.length+1),G.substr(1)):G));case 45:return r==null?null:new s1((J=Ta(r,!0),J.length>0&&(Jt(0,J.length),J.charCodeAt(0)==43)?(Jt(1,J.length+1),J.substr(1)):J));case 46:return Ta(r,!1);case 47:return In(P0(this,(Tr(),PLt),r));case 59:case 48:return smn((Tr(),r));case 49:return In(P0(this,(Tr(),jLt),r));case 50:return r==null?null:D_(Eu((re=Ta(r,!0),re.length>0&&(Jt(0,re.length),re.charCodeAt(0)==43)?(Jt(1,re.length+1),re.substr(1)):re),t$,32767)<<16>>16);case 51:return r==null?null:D_(Eu((f=Ta(r,!0),f.length>0&&(Jt(0,f.length),f.charCodeAt(0)==43)?(Jt(1,f.length+1),f.substr(1)):f),t$,32767)<<16>>16);case 53:return In(P0(this,(Tr(),FLt),r));case 55:return r==null?null:D_(Eu((p=Ta(r,!0),p.length>0&&(Jt(0,p.length),p.charCodeAt(0)==43)?(Jt(1,p.length+1),p.substr(1)):p),t$,32767)<<16>>16);case 56:return r==null?null:D_(Eu((m=Ta(r,!0),m.length>0&&(Jt(0,m.length),m.charCodeAt(0)==43)?(Jt(1,m.length+1),m.substr(1)):m),t$,32767)<<16>>16);case 57:return r==null?null:yy(QF((y=Ta(r,!0),y.length>0&&(Jt(0,y.length),y.charCodeAt(0)==43)?(Jt(1,y.length+1),y.substr(1)):y)));case 58:return r==null?null:yy(QF((v=Ta(r,!0),v.length>0&&(Jt(0,v.length),v.charCodeAt(0)==43)?(Jt(1,v.length+1),v.substr(1)):v)));case 60:return r==null?null:Oe(Eu((o=Ta(r,!0),o.length>0&&(Jt(0,o.length),o.charCodeAt(0)==43)?(Jt(1,o.length+1),o.substr(1)):o),Zi,ar));case 61:return r==null?null:Oe(Eu(Ta(r,!0),Zi,ar));default:throw Y(new jt(Dx+t.ve()+W0))}};var BLt,Y3e,ULt,J3e;k(Ai,"XMLTypeFactoryImpl",2007),x(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},dat),h.N=!1,h.O=!1;var HLt=!1;k(Ai,"XMLTypePackageImpl",589),x(1940,1,{843:1},vVe),h.Ik=function(){return _0e(),XLt},k(Ai,"XMLTypePackageImpl/1",1940),x(1949,1,tr,EVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/10",1949),x(1950,1,tr,SVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/11",1950),x(1951,1,tr,TVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/12",1951),x(1952,1,tr,AVe),h.dk=function(t){return zw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(Ai,"XMLTypePackageImpl/13",1952),x(1953,1,tr,_Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/14",1953),x(1954,1,tr,xVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/15",1954),x(1955,1,tr,kVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/16",1955),x(1956,1,tr,NVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/17",1956),x(1957,1,tr,CVe),h.dk=function(t){return se(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(Ai,"XMLTypePackageImpl/18",1957),x(1958,1,tr,RVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/19",1958),x(1941,1,tr,OVe),h.dk=function(t){return se(t,849)},h.ek=function(t){return we(d5,It,849,t,0,1)},k(Ai,"XMLTypePackageImpl/2",1941),x(1959,1,tr,DVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/20",1959),x(1960,1,tr,LVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/21",1960),x(1961,1,tr,MVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/22",1961),x(1962,1,tr,PVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/23",1962),x(1963,1,tr,jVe),h.dk=function(t){return se(t,198)},h.ek=function(t){return we(Ec,Pe,198,t,0,2)},k(Ai,"XMLTypePackageImpl/24",1963),x(1964,1,tr,FVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/25",1964),x(1965,1,tr,$Ve),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/26",1965),x(1966,1,tr,BVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/27",1966),x(1967,1,tr,UVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/28",1967),x(1968,1,tr,HVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/29",1968),x(1942,1,tr,zVe),h.dk=function(t){return se(t,678)},h.ek=function(t){return we(kU,It,2098,t,0,1)},k(Ai,"XMLTypePackageImpl/3",1942),x(1969,1,tr,GVe),h.dk=function(t){return se(t,15)},h.ek=function(t){return we(_i,Pe,15,t,0,1)},k(Ai,"XMLTypePackageImpl/30",1969),x(1970,1,tr,qVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/31",1970),x(1971,1,tr,VVe),h.dk=function(t){return se(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Ai,"XMLTypePackageImpl/32",1971),x(1972,1,tr,WVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/33",1972),x(1973,1,tr,KVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/34",1973),x(1974,1,tr,YVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/35",1974),x(1975,1,tr,JVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/36",1975),x(1976,1,tr,XVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/37",1976),x(1977,1,tr,ZVe),h.dk=function(t){return se(t,16)},h.ek=function(t){return we(_u,Ly,16,t,0,1)},k(Ai,"XMLTypePackageImpl/38",1977),x(1978,1,tr,QVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/39",1978),x(1943,1,tr,eWe),h.dk=function(t){return se(t,679)},h.ek=function(t){return we(f5,It,2099,t,0,1)},k(Ai,"XMLTypePackageImpl/4",1943),x(1979,1,tr,tWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/40",1979),x(1980,1,tr,nWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/41",1980),x(1981,1,tr,rWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/42",1981),x(1982,1,tr,iWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/43",1982),x(1983,1,tr,oWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/44",1983),x(1984,1,tr,sWe),h.dk=function(t){return se(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Ai,"XMLTypePackageImpl/45",1984),x(1985,1,tr,aWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/46",1985),x(1986,1,tr,cWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/47",1986),x(1987,1,tr,uWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/48",1987),x(1988,1,tr,lWe),h.dk=function(t){return se(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Ai,"XMLTypePackageImpl/49",1988),x(1944,1,tr,dWe),h.dk=function(t){return se(t,680)},h.ek=function(t){return we(W3e,It,2100,t,0,1)},k(Ai,"XMLTypePackageImpl/5",1944),x(1989,1,tr,fWe),h.dk=function(t){return se(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Ai,"XMLTypePackageImpl/50",1989),x(1990,1,tr,hWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/51",1990),x(1991,1,tr,pWe),h.dk=function(t){return se(t,15)},h.ek=function(t){return we(_i,Pe,15,t,0,1)},k(Ai,"XMLTypePackageImpl/52",1991),x(1945,1,tr,gWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Ai,"XMLTypePackageImpl/6",1945),x(1946,1,tr,bWe),h.dk=function(t){return se(t,198)},h.ek=function(t){return we(Ec,Pe,198,t,0,2)},k(Ai,"XMLTypePackageImpl/7",1946),x(1947,1,tr,mWe),h.dk=function(t){return Hw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(Ai,"XMLTypePackageImpl/8",1947),x(1948,1,tr,wWe),h.dk=function(t){return se(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(Ai,"XMLTypePackageImpl/9",1948);var mf,Pg,F4,NU,te;x(53,63,vp,Dn),k(Tg,"RegEx/ParseException",53),x(828,1,{},Vce),h._l=function(t){return to*16)throw Y(new Dn(jn((Cn(),RAt))));o=o*16+u}while(!0);if(this.a!=125)throw Y(new Dn(jn((Cn(),OAt))));if(o>Fx)throw Y(new Dn(jn((Cn(),DAt))));t=o}else{if(u=0,this.c!=0||(u=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(o=u,fr(this),this.c!=0||(u=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));o=o*16+u,t=o}break;case 117:if(a=0,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(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(fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Dn(jn((Cn(),Sg))));if(r=r*16+a,fr(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(),LAt))))}return t},h.bm=function(t){var r,o;switch(t){case 100:o=(this.e&32)==32?k1("Nd",!0):(hr(),CU);break;case 68:o=(this.e&32)==32?k1("Nd",!1):(hr(),nCe);break;case 119:o=(this.e&32)==32?k1("IsWord",!0):(hr(),kk);break;case 87:o=(this.e&32)==32?k1("IsWord",!1):(hr(),iCe);break;case 115:o=(this.e&32)==32?k1("IsSpace",!0):(hr(),ZT);break;case 83:o=(this.e&32)==32?k1("IsSpace",!1):(hr(),rCe);break;default:throw Y(new Es((r=t,L_t+r.toString(16))))}return o},h.cm=function(t){var r,o,a,u,f,p,m,y,v,T,N,R;for(this.b=1,fr(this),r=null,this.c==0&&this.a==94?(fr(this),t?T=(hr(),hr(),new bu(5)):(r=(hr(),hr(),new bu(4)),Sa(r,0,Fx),T=new bu(4))):T=(hr(),hr(),new bu(4)),u=!0;(R=this.c)!=1&&!(R==0&&this.a==93&&!u);){if(u=!1,o=this.a,a=!1,R==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:Iy(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=wme(this,o),!N)throw Y(new Dn(jn((Cn(),yQ))));Iy(T,N),a=!0;break;default:o=this.am()}else if(R==20){if(p=KA(this.i,58,this.d),p<0)throw Y(new Dn(jn((Cn(),AEe))));if(m=!0,uo(this.i,this.d)==94&&(++this.d,m=!1),f=yl(this.i,this.d,p),y=bdt(f,m,(this.e&512)==512),!y)throw Y(new Dn(jn((Cn(),xAt))));if(Iy(T,y),a=!0,p+1>=this.j||uo(this.i,p+1)!=93)throw Y(new Dn(jn((Cn(),AEe))));this.d=p+2}if(fr(this),!a)if(this.c!=0||this.a!=45)Sa(T,o,o);else{if(fr(this),(R=this.c)==1)throw Y(new Dn(jn((Cn(),K7))));R==0&&this.a==93?(Sa(T,o,o),Sa(T,45,45)):(v=this.a,R==10&&(v=this.am()),fr(this),Sa(T,o,v))}(this.e&Tl)==Tl&&this.c==0&&this.a==44&&fr(this)}if(this.c==1)throw Y(new Dn(jn((Cn(),K7))));return r&&($C(r,T),T=r),kE(T),PC(T),this.b=0,fr(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(fr(this),this.c!=9)throw Y(new Dn(jn((Cn(),NAt))));if(r=this.cm(!1),a==4)Iy(o,r);else if(t==45)$C(o,r);else if(t==38)Qvt(o,r);else throw Y(new Es("ASSERT"))}else throw Y(new Dn(jn((Cn(),CAt))));return fr(this),o},h.em=function(){var t,r;return t=this.a-48,r=(hr(),hr(),new NW(12,null,t)),!this.g&&(this.g=new D9),O9(this.g,new Nue(t)),fr(this),r},h.fm=function(){return fr(this),hr(),qLt},h.gm=function(){return fr(this),hr(),GLt},h.hm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.im=function(){throw Y(new Dn(jn((Cn(),tl))))},h.jm=function(){return fr(this),Mpn()},h.km=function(){return fr(this),hr(),WLt},h.lm=function(){return fr(this),hr(),YLt},h.mm=function(){var t;if(this.d>=this.j||((t=uo(this.i,this.d++))&65504)!=64)throw Y(new Dn(jn((Cn(),TAt))));return fr(this),hr(),hr(),new dh(0,t-64)},h.nm=function(){return fr(this),d_n()},h.om=function(){return fr(this),hr(),JLt},h.pm=function(){var t;return t=(hr(),hr(),new dh(0,105)),fr(this),t},h.qm=function(){return fr(this),hr(),KLt},h.rm=function(){return fr(this),hr(),VLt},h.sm=function(t,r){return this.am()},h.tm=function(){return fr(this),hr(),eCe},h.um=function(){var t,r,o,a,u;if(this.d+1>=this.j)throw Y(new Dn(jn((Cn(),vAt))));if(a=-1,r=null,t=uo(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new D9),O9(this.g,new Nue(a)),++this.d,uo(this.i,this.d)!=41)throw Y(new Dn(jn((Cn(),um))));++this.d}else switch(t==63&&--this.d,fr(this),r=X0e(this),r.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Y(new Dn(jn((Cn(),um))));break;default:throw Y(new Dn(jn((Cn(),EAt))))}if(fr(this),u=N0(this),o=null,u.e==2){if(u.Nm()!=2)throw Y(new Dn(jn((Cn(),SAt))));o=u.Jm(1),u=u.Jm(0)}if(this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),hr(),hr(),new dft(a,r,u,o)},h.vm=function(){return fr(this),hr(),tCe},h.wm=function(){var t;if(fr(this),t=yP(24,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.xm=function(){var t;if(fr(this),t=yP(20,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.ym=function(){var t;if(fr(this),t=yP(22,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.zm=function(){var t,r,o,a,u;for(t=0,o=0,r=-1;this.d=this.j)throw Y(new Dn(jn((Cn(),SEe))));if(r==45){for(++this.d;this.d=this.j)throw Y(new Dn(jn((Cn(),SEe))))}if(r==58){if(++this.d,fr(this),a=Fst(N0(this),t,o),this.c!=7)throw Y(new Dn(jn((Cn(),um))));fr(this)}else if(r==41)++this.d,fr(this),a=Fst(N0(this),t,o);else throw Y(new Dn(jn((Cn(),yAt))));return a},h.Am=function(){var t;if(fr(this),t=yP(21,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.Bm=function(){var t;if(fr(this),t=yP(23,N0(this)),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.Cm=function(){var t,r;if(fr(this),t=this.f++,r=nW(N0(this),t),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),r},h.Dm=function(){var t;if(fr(this),t=nW(N0(this),0),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.Em=function(t){return fr(this),this.c==5?(fr(this),dP(t,(hr(),hr(),new ay(9,t)))):dP(t,(hr(),hr(),new ay(3,t)))},h.Fm=function(t){var r;return fr(this),r=(hr(),hr(),new b3(2)),this.c==5?(fr(this),em(r,B4),em(r,t)):(em(r,t),em(r,B4)),r},h.Gm=function(t){return fr(this),this.c==5?(fr(this),hr(),hr(),new ay(9,t)):(hr(),hr(),new ay(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),x(1927,828,{},rQe),h._l=function(t){return!1},h.am=function(){return n0e(this)},h.bm=function(t){return tx(t)},h.cm=function(t){return WEt(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 fr(this),tx(67)},h.im=function(){return fr(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 fr(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 fr(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 Iy(t,tx(r)),-1},h.tm=function(){return fr(this),hr(),hr(),new dh(0,94)},h.um=function(){throw Y(new Dn(jn((Cn(),tl))))},h.vm=function(){return fr(this),hr(),hr(),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(fr(this),t=nW(N0(this),0),this.c!=7)throw Y(new Dn(jn((Cn(),um))));return fr(this),t},h.Dm=function(){throw Y(new Dn(jn((Cn(),tl))))},h.Em=function(t){return fr(this),dP(t,(hr(),hr(),new ay(3,t)))},h.Fm=function(t){var r;return fr(this),r=(hr(),hr(),new b3(2)),em(r,t),em(r,B4),r},h.Gm=function(t){return fr(this),hr(),hr(),new ay(3,t)};var S2=null,_k=null;k(Tg,"RegEx/ParserForXMLSchema",1927),x(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 X3e,xk,$4,zLt,Z3e,Sv=null,CU,Vre=null,Q3e,B4,Wre=null,eCe,tCe,nCe,rCe,iCe,GLt,ZT,qLt,VLt,WLt,KLt,kk,YLt,JLt,kCn=k(Tg,"RegEx/Token",122);x(140,122,{3:1,140:1,122:1},bu),h.Om=function(t){var r,o,a;if(this.e==4)if(this==Q3e)o=".";else if(this==CU)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]?Wo(a,uD(this.b[r])):(Wo(a,uD(this.b[r])),a.a+="-",Wo(a,uD(this.b[r+1])));a.a+="]",o=a.a}else if(this==nCe)o="\\D";else if(this==iCe)o="\\W";else if(this==rCe)o="\\S";else{for(a=new Xp,a.a+="[^",r=0;r0&&(a.a+=","),this.b[r]===this.b[r+1]?Wo(a,uD(this.b[r])):(Wo(a,uD(this.b[r])),a.a+="-",Wo(a,uD(this.b[r+1])));a.a+="]",o=a.a}return o},h.a=!1,h.c=!1,k(Tg,"RegEx/RangeToken",140),x(587,1,{587:1},Nue),h.a=0,k(Tg,"RegEx/RegexParser/ReferencePosition",587),x(586,1,{3:1,586:1},vet),h.Fb=function(t){var r;return t==null||!se(t,586)?!1:(r=l(t,586),wt(this.b,r.b)&&this.a==r.a)},h.Hb=function(){return lg(this.b+"/"+Yme(this.a))},h.Ib=function(){return this.c.Om(this.a)},h.a=0,k(Tg,"RegEx/RegularExpression",586),x(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="\\"+NV(this.a&Ti);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>=Io?(o=(r=this.a>>>0,"0"+r.toString(16)),a="\\v"+yl(o,o.length-6,o.length)):a=""+NV(this.a&Ti)}break;case 8:this==eCe||this==tCe?a=""+NV(this.a&Ti):a="\\"+NV(this.a&Ti);break;default:a=null}return a},h.a=0,k(Tg,"RegEx/Token/CharToken",230),x(323,122,$x,ay),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),x(829,122,$x,che),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),x(1925,122,$x,dft),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),x(1926,122,$x,Fct),h.Jm=function(t){return this.b},h.Nm=function(){return 1},h.Om=function(t){return"(?"+(this.a==0?"":Yme(this.a))+(this.c==0?"":Yme(this.c))+":"+this.b.Om(t)+")"},h.a=0,h.c=0,k(Tg,"RegEx/Token/ModifierToken",1926),x(830,122,$x,mhe),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),x(521,122,{3:1,122:1,521:1},NW),h.Km=function(){return this.b},h.Om=function(t){return this.e==12?"\\"+this.a:r2n(this.b)},h.a=0,k(Tg,"RegEx/Token/StringToken",521),x(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,u,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?u=r.Om(t)+"+":o.e==9&&o.Jm(0)==r?u=r.Om(t)+"+?":u=r.Om(t)+(""+o.Om(t));else{for(f=new 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(U_t))},h.a=0,h.b=0,k(zEe,"ExclusiveRange/RangeIterator",261);var al=o_(Y7,"C"),Rn=o_(dI,"I"),cc=o_(cT,"Z"),pw=o_(fI,"J"),Ec=o_(cI,"B"),Ki=o_(uI,"D"),Tv=o_(lI,"F"),T2=o_(hI,"S"),NCn=Hr("org.eclipse.elk.core.labels","ILabelManager"),oCe=Hr(ko,"DiagnosticChain"),sCe=Hr(g_t,"ResourceSet"),aCe=k(ko,"InvocationTargetException",null),ZLt=($9(),wdn),QLt=QLt=q0n;ihn(wQt),bhn("permProps",[[["locale","default"],[H_t,"gecko1_8"]],[["locale","default"],[H_t,"safari"]]]),QLt(null,"elk",null)}).call(this)}).call(this,typeof I5<"u"?I5:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(s,c,d){function g($){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},g($)}function b($,P,j){return Object.defineProperty($,"prototype",{writable:!1}),$}function w($,P){if(!($ instanceof P))throw new TypeError("Cannot call a class as a function")}function E($,P,j){return P=C(P),S($,A()?Reflect.construct(P,j||[],C($).constructor):P.apply($,j))}function S($,P){if(P&&(g(P)=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _($)}function _($){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(P){return P.__proto__||Object.getPrototypeOf(P)},C($)}function O($,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(P&&P.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),P&&L($,P)}function L($,P){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,z){return j.__proto__=z,j},L($,P)}var D=s("./elk-api.js").default,B=function($){function P(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w(this,P);var z=Object.assign({},j),ee=!1;try{s.resolve("web-worker"),ee=!0}catch{}if(j.workerUrl)if(ee){var ne=s("web-worker");z.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(!z.workerFactory){var Q=s("./elk-worker.min.js"),ae=Q.Worker;z.workerFactory=function(he){return new ae(he)}}return E(this,P,[z])}return O(P,$),b(P)}(D);Object.defineProperty(c.exports,"__esModule",{value:!0}),c.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,c,d){var g=typeof Worker<"u"?Worker:void 0;c.exports=g},{}]},{},[3])(3)})})(cKt);var uQn=cKt.exports;const lQn=TR(uQn),dQn=new lQn;async function fQn(n,i){try{const s=n.map(b=>({id:b.id,width:pQn(b.type),height:gQn(b.type)})),c=i.map(b=>({id:b.id,sources:[b.source],targets:[b.target]})),d={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"100","elk.spacing.edgeNode":"40","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s,edges:c},g=await dQn.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 hQn(n)}}function hQn(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 pQn(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 gQn(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 bQn(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 uKt={hours:60*60*1e3,minutes:60*1e3,seconds:1e3,milliseconds:1};function VDe(n){return typeof n=="number"&&Number.isFinite(n)}function mQn(n){const i=n.trim(),s=/^\{\{\s*([\s\S]*?)\s*\}\}$/.exec(i);return s?s[1].trim():i}function wQn(n){if(VDe(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):`(${mQn(i)})`}function yQn(n){const i=Object.entries(uKt).flatMap(([w,E])=>{const S=wQn(n[w]);return S?E===1?[S]:[`(${S}) * ${E}`]:[]}),s=i.length>0?i.join(" + "):"0",c=`(${s}) // 3600000`,d=`((${s}) % 3600000) // 60000`,g=`((${s}) % 60000) // 1000`,b=`(${s}) % 1000`;return Object.hasOwn(n,"milliseconds")?`{{ '%02d:%02d:%02d.%03d' | format(${c}, ${d}, ${g}, ${b}) }}`:`{{ '%02d:%02d:%02d' | format(${c}, ${d}, ${g}) }}`}function vQn(n){if(typeof n=="string")return n;if(VDe(n))return String(n);if(typeof n!="object"||n===null)return"";const i=n,s={};let c=!1;for(const d of Object.keys(uKt)){const g=i[d];if(g!==void 0){if(VDe(g)){s[d]=g;continue}if(typeof g=="string"&&g.trim()!==""){const b=Number(g.trim());Number.isFinite(b)?s[d]=b:c=!0;continue}c=!0}}return c?yQn(i):s}function EQn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function SQn(n){return typeof n=="object"&&n!==null&&"choose"in n}function TQn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function AQn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function _Qn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function xQn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function kQn(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 NQn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function CQn(n){return typeof n=="object"&&n!==null&&"stop"in n}function IQn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function RQn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const N5=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function WDe(n){return n.map(i=>OQn(i))}function OQn(n){const{condition:i,conditions:s,...c}=n,d=i||"template",g=N5.includes(d)?d:"template",b=Array.isArray(s)?WDe(s):void 0;return{...c,condition:g,conditions:b}}class DQn{async parse(i){const s=[];try{let c=QZn(i);if(Array.isArray(c)){if(c.length===0)return{success:!1,errors:["Empty automation array"],warnings:s,hadMetadata:!1};c=c[0]}if(!c||typeof c!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:s,hadMetadata:!1};const d=this.extractMetadata(c),g=d!==null,b=this.extractUserVariables(c),w=c;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:s,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:_,edges:A}=S?this.parseStateMachineStructure(w,s,E):this.parseAutomationStructure(w,s,E);let C;g&&d?C=this.applyMetadataPositions(_,d):C=await fQn(_,A);const O={mode:w.mode,max:w.max,max_exceeded:w.max_exceeded,initial_state:w.initial_state,hide_entity:w.hide_entity,trace:w.trace},L=U8t.safeParse(O),D=L.success?L.data:U8t.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)||aQn(),name:typeof w.alias=="string"?w.alias:"Imported Automation",description:typeof w.description=="string"?w.description:"",nodes:C,edges:A,metadata:D,version:1,userVariables:Object.keys(b).length>0?b:void 0,userTriggerVariables:B&&Object.keys(B).length>0?B:void 0},P=SMe.safeParse($);if(!P.success){const z=P.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],ae=$.nodes[Q];ne=`Node index ${Q} (id: ${ae==null?void 0:ae.id}, type: ${ae==null?void 0:ae.type}) Data: ${JSON.stringify(ae==null?void 0:ae.data,null,2)}`}return`Schema path: ${ee.path.join(".")} Message: ${ee.message}${ne?` ${ne}`:""}`});return console.error("Zod validation error details:",z),{success:!1,errors:z,warnings:s,hadMetadata:g}}const j=ZVt(P.data);return j.valid?{success:!0,graph:P.data,warnings:s,hadMetadata:g}:{success:!1,errors:j.errors,warnings:s,hadMetadata:g}}catch(c){return console.error("YAML parsing error:",c),console.error("YAML string:",i),{success:!1,errors:[c instanceof Error?c.message:"Unknown parsing error"],warnings: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 c=s._cafe_metadata,d=XVt.safeParse(c);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const s={};if(typeof i.variables=="object"&&i.variables!==null){const c=i.variables;for(const[d,g]of Object.entries(c))d!=="_cafe_metadata"&&(s[d]=g)}return s}detectStateMachineFormat(i){const s=i.actions||i.action;if(!Array.isArray(s))return!1;let c=!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&&(c=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const _=S;if(Array.isArray(_.choose)){d=!0;break}}}}return c&&d}parseStateMachineStructure(i,s,c){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 z of b){const ee=z;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 ae of Q){const he=ae;if(Array.isArray(he.choose))for(const pe of he.choose){const ue=this.parseStateMachineChooseBlock(pe);ue&&E.set(ue.nodeId,ue)}}}}const S=/^__parallel_(trigger_\d+|cond_.+__(?:true|false))$/,_=new Map;for(const[z,ee]of E){if(!S.test(z))continue;const ne=this.parseInlineParallelBranches(ee.parallelItems??[],E);ne.length>0&&_.set(z,ne),E.delete(z)}const A=this.resolveParallelFanOuts(E),C=new Set(E.keys()),O=c.filter(z=>!C.has(z));let L=0,D=0;const B=z=>L0)for(let ee=0;ee{for(const S of c.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,c=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(c);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,c=new Set;let d=!0;for(;d;){d=!1;for(const[g,b]of[...i]){if(!b.parallelItems||b.parallelItems.length===0||c.has(g))continue;c.add(g),d=!0;const w=this.parseInlineParallelBranches(b.parallelItems,i);w.length>0&&s.set(g,w)}}return s}parseInlineParallelBranches(i,s){const c=[];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];c.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 O=C.match(/^Node:\s*(.+)$/);O&&c.push(O[1])}}}return c}parseInlineActionList(i,s,c,d){let g=null;for(let b=0;b0){const{nodeId:O}=this.extractCafeNodeId(A[0].alias),L=O??d(this.inferInlineNodeType(A[0]));S=L,this.parseInlineActionList(A,L,c,d)}const C=i.else;if(C&&C.length>0){const{nodeId:O}=this.extractCafeNodeId(C[0].alias),L=O??d(this.inferInlineNodeType(C[0]));_=L,this.parseInlineActionList(C,L,c,d)}c.set(s,{nodeId:s,nodeType:"condition",data:E,trueTarget:S,falseTarget:_})}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),c.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),c.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),c.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),c.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 _=null,A=null,C;for(const O of w){const L=O;if(L.variables){const D=L.variables;if(!("current_node"in D&&Object.keys(D).every(P=>P==="current_node"||P==="flow_context"))){E="set_variables",S.variables=D,L.alias&&(S.alias=L.alias),L.id&&(S.id=L.id);continue}const $=D.current_node;if(typeof $=="string")if($.includes("{%")&&$.includes("%}")){E="condition";const P=$.match(/{%\s*if[^%]*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/),j=$.match(/{%\s*else\s*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/);_=P?P[1]:null,A=j?j[1]:null;const z=$.match(/{%\s*if\s+(.+?)\s*%}/);if(z){const ee=z[1];Object.assign(S,this.parseJinjaCondition(ee))}}else _=$==="END"?null:$}else if(Array.isArray(L.if)){E="condition";const{cleanAlias:D}=this.extractCafeNodeId(typeof L.alias=="string"?L.alias:void 0);Object.assign(S,this.conditionDataFromIfBlock(L,D)),_=this.parseTransitionTarget(L.then),A=this.parseTransitionTarget(L.else)}else L.delay!==void 0?(E="delay",S.delay=L.delay,L.alias&&(S.alias=L.alias)):L.wait_template!==void 0?(E="wait",S.wait_template=L.wait_template,L.timeout&&(S.timeout=L.timeout),L.continue_on_timeout!==void 0&&(S.continue_on_timeout=L.continue_on_timeout),L.alias&&(S.alias=L.alias)):Array.isArray(L.parallel)?C=L.parallel:(L.service||L.action)&&(E="action",S.service=L.service||L.action,L.target&&(S.target=L.target),L.data&&(S.data=L.data),L.alias&&(S.alias=L.alias))}return{nodeId:b,nodeType:E,data:S,trueTarget:_,falseTarget:A,parallelItems:C}}conditionDataFromIfBlock(i,s){const d={...(Array.isArray(i.if)?i.if:[])[0]??{}};return s&&(d.alias=s),d}parseTransitionTarget(i){if(!Array.isArray(i))return null;for(const s of i){const c=s==null?void 0:s.variables,d=c==null?void 0:c.current_node;if(typeof d=="string")return d==="END"?null:d}return null}parseJinjaCondition(i){const s=this.stripOuterParens(i.trim()),c=this.splitTopLevelJinja(s," or ");if(c.length>1)return{condition:"or",conditions:c.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(_=>this.parseJinjaCondition(_))};const b=s.match(/^is_state\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)$/);if(b){const S=b[1],_=b[2];if(S==="sun.sun"){if(_==="above_horizon")return{condition:"sun",after:"sunrise",before:"sunset"};if(_==="below_horizon")return{condition:"sun",after:"sunset",before:"sunrise"}}return{condition:"state",entity_id:S,state:_}}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],_=E[2],A=parseFloat(E[3]),C={condition:"numeric_state",entity_id:S};return _.includes(">")&&(C.above=A),_.includes("<")&&(C.below=A),C}return{condition:"template",value_template:`{{ ${s} }}`}}stripOuterParens(i){let s=i.trim();for(;s.startsWith("(")&&s.endsWith(")");){let c=0,d=!0;for(let g=0;ghe.startsWith(`${ue}_`));pe&&(E.has(pe)||E.set(pe,[]),E.get(pe).push(he))}const _=new Map;let A=0,C=c.length;const O=he=>{const pe=E.get(he),ue=_.get(he)??0;if(pe&&ue0){const he=this.parseConditions(z,s,O);d.push(...he.nodes),g.push(...he.edges);for(const ue of he.nodes)b.add(ue.id);const pe=he.nodes;if(pe.length===1){for(const ue of B)g.push(this.createEdge(ue.id,pe[0].id));P=[pe[0].id]}else{for(const ue of B)g.push(this.createEdge(ue.id,pe[0].id));for(let ue=0;uehe.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:P,getNextNodeId:O,conditionNodeIds:b,triggerNodeMap:$});return d.push(...Q.nodes),g.push(...Q.edges),{nodes:d,edges:g}}parseTriggers(i,s,c){return i.filter(d=>typeof d=="object"&&d!==null).map((d,g)=>{const b=c("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 c=typeof s=="object"&&s!==null?s:{};let d,g={};if(typeof c.trigger=="string"){d=c.trigger;const{platform:b,trigger:w,...E}=c;g=E}else if(typeof c.platform=="string"){d=c.platform;const{platform:b,...w}=c;g=w}else{const b=Object.keys(c).find(w=>!["alias","id","enabled","variables"].includes(w));b&&typeof c[b]=="object"&&c[b]!==null?(d=b,g=c[b]):d="state"}return{id:i,type:"trigger",position:{x:0,y:0},data:{trigger:d,...g}}}parseConditions(i,s,c){const d=[],g=[],b=[];return i.filter(GVn).forEach((w,E)=>{const S=c("condition");try{const _=Ug.safeParse(w);if(!_.success){s.push(`Condition ${E} failed schema validation: ${JSON.stringify(_.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:_.data};d.push(A),b.push(S)}catch(_){s.push(`Failed to parse condition ${E}: ${_}`),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:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,triggerNodeMap:w,inheritedEnabled:E}=s,S=[],_=[];let A=d;const C=new Set(b),O=new Set,L=B=>E===!1?!1:B,D=B=>{for(const $ of A){let P;O.has($)?P="false":C.has($)&&(P="true"),_.push(this.createEdge($,B,P))}};return i.forEach((B,$)=>{if(!B||typeof B!="object"){c.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const P=g("unknown");S.push({id:P,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D(P),A=[P];return}if(xQn(B)){const P=g("condition"),j=B,z=j.condition||"template",ee=N5.includes(z)?z:"template";let ne;try{ne=Ug.parse(j)}catch(ae){c.push(`Inline condition at index ${$} failed schema validation: ${ae instanceof Error?ae.message:JSON.stringify(ae)}`),ne={condition:ee,alias:typeof j.alias=="string"?j.alias:void 0,value_template:JSON.stringify(j)}}ne.enabled=L(ne.enabled);const Q={id:P,type:"condition",position:{x:0,y:0},data:uIe(ne)};S.push(Q),D(P),C.add(P),A=[P]}else if(kQn(B)){const P=g("set_variables"),j=B,z={id:P,type:"set_variables",position:{x:0,y:0},data:{alias:typeof j.alias=="string"?j.alias:void 0,variables:j.variables||{},enabled:L(typeof j.enabled=="boolean"?j.enabled:void 0)}};S.push(z),D(P),A=[P]}else if(bQn(B)){const P=g("delay"),j=B,{alias:z,delay:ee,enabled:ne,...Q}=j,ae={id:P,type:"delay",position:{x:0,y:0},data:{...Q,alias:typeof z=="string"?z:void 0,delay:vQn(ee),enabled:L(typeof ne=="boolean"?ne:void 0)}};S.push(ae),D(P),A=[P]}else if(EQn(B)){const P=g("wait"),j=B,{alias:z,wait_template:ee,wait_for_trigger:ne,timeout:Q,continue_on_timeout:ae,enabled:he,...pe}=j;let ue;(typeof Q=="string"||typeof Q=="object"&&Q!==null)&&(ue=Q);const fe={...pe,alias:typeof z=="string"?z:void 0,timeout:ue,continue_on_timeout:typeof ae=="boolean"?ae:void 0,enabled:L(typeof he=="boolean"?he:void 0)};if(typeof ee=="string")fe.wait_template=ee;else if(Array.isArray(ne)){const ge=[];for(const De of ne){const Se=gN.safeParse(De);Se.success?ge.push(Se.data):c.push(`Failed to parse a trigger inside wait_for_trigger: ${Se.error.message}`)}fe.wait_for_trigger=ge}const K={id:P,type:"wait",position:{x:0,y:0},data:fe};S.push(K),D(P),A=[P]}else if(SQn(B)){const P=this.parseChooseBlock(B,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:O,inheritedEnabled:E});S.push(...P.nodes),_.push(...P.edges);for(const j of P.outputNodeIds){const z=P.nodes.find(ee=>ee.id===j);(z==null?void 0:z.type)==="condition"&&(P.falsePathOutputIds.includes(j)?O.add(j):C.add(j))}A=P.outputNodeIds}else if(AQn(B)){const P=B,j=Array.isArray(P.if)?P.if:[],z=Array.isArray(P.then)?P.then:[],ee=Array.isArray(P.else)?P.else:void 0,ne={if:j,then:z,else:ee,alias:typeof P.alias=="string"?P.alias:void 0,enabled:P.enabled},Q=this.parseIfBlock(ne,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:O,triggerNodeMap:w,inheritedEnabled:E});S.push(...Q.nodes),_.push(...Q.edges);for(const ae of Q.outputNodeIds){const he=Q.nodes.find(pe=>pe.id===ae);(he==null?void 0:he.type)==="condition"&&(Q.falsePathOutputIds.includes(ae)?O.add(ae):C.add(ae))}Q.unconsumedPreviousIds.length>0?A=Q.unconsumedPreviousIds:A=Q.outputNodeIds}else if(EMe(B)){const P=g("action"),j=B,z=["type","device_id","domain","entity_id","subtype","alias","enabled"],ee={};for(const[Q,ae]of Object.entries(j))!z.includes(Q)&&ae!==void 0&&(ee[Q]=ae);const ne={id:P,type:"action",position:{x:0,y:0},data:{alias:typeof j.alias=="string"?j.alias:void 0,service:`${j.domain}.${j.type}`,target:{device_id:j.device_id},data:{type:j.type,device_id:j.device_id,domain:j.domain,entity_id:j.entity_id,subtype:j.subtype,...ee},enabled:L(typeof j.enabled=="boolean"?j.enabled:void 0)}};S.push(ne),D(P),A=[P]}else if(TQn(B)){const j=B.parallel,z=[...A],ee=[];for(const ne of j)if(Array.isArray(ne)){const Q=this.parseActions(ne,{warnings:c,previousNodeIds:z,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(Q.nodes.length>0){S.push(...Q.nodes),_.push(...Q.edges);const ae=new Set(Q.edges.map(pe=>pe.source)),he=Q.nodes.filter(pe=>!ae.has(pe.id));ee.push(...he.map(pe=>pe.id))}}else if(typeof ne=="object"&&ne!==null){const Q=ne;if("sequence"in Q&&Array.isArray(Q.sequence)){const ae=this.parseActions(Q.sequence,{warnings:c,previousNodeIds:z,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ae.nodes.length>0){S.push(...ae.nodes),_.push(...ae.edges);const he=new Set(ae.edges.map(ue=>ue.source)),pe=ae.nodes.filter(ue=>!he.has(ue.id));ee.push(...pe.map(ue=>ue.id))}}else{const ae=this.parseActions([ne],{warnings:c,previousNodeIds:z,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ae.nodes.length>0){S.push(...ae.nodes),_.push(...ae.edges);const he=ae.nodes[ae.nodes.length-1];ee.push(he.id)}}}A=ee.length>0?ee:z}else if(RQn(B)){const P=g("action"),j=B,z={id:P,type:"action",position:{x:0,y:0},data:{alias:typeof j.alias=="string"?j.alias:void 0,event:typeof j.event=="string"?j.event:void 0,event_data:typeof j.event_data=="object"&&j.event_data!==null?j.event_data:void 0,enabled:L(typeof j.enabled=="boolean"?j.enabled:void 0)}};S.push(z),D(P),A=[P]}else if(IQn(B)){const P=B,j=P.repeat,z=Array.isArray(j.sequence)?j.sequence:[],ee=typeof P.alias=="string"?P.alias:void 0,ne=L(typeof P.enabled=="boolean"?P.enabled:void 0);if(Array.isArray(j.while)&&j.while.length>0){const Q=j.while,ae=[];for(let De=0;De0){const De=pe.nodes[0].id,Se=_.find(Re=>Re.source===he&&Re.target===De);Se&&(Se.sourceHandle="true")}const ue=new Set(pe.nodes.map(De=>De.id)),fe=new Set(pe.edges.map(De=>De.source)),K=pe.nodes.filter(De=>!fe.has(De.id)||![...pe.edges].some(Se=>Se.source===De.id&&ue.has(Se.target))),ge=K.length>0?K[K.length-1].id:pe.nodes.length>0?pe.nodes[pe.nodes.length-1].id:he;if(pe.nodes.length>0){const De=this.createEdge(ge,ae[0].id);_.push(De)}A=[ae[0].id],O.add(ae[0].id)}else if(Array.isArray(j.until)&&j.until.length>0||typeof j.until=="string"){const Q=this.parseActions(z,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:ne});S.push(...Q.nodes),_.push(...Q.edges);const ae=Q.nodes.length>0?Q.nodes[0].id:null,he=new Set(Q.nodes.map(Se=>Se.id)),pe=new Set(Q.edges.filter(Se=>he.has(Se.target)).map(Se=>Se.source)),ue=Q.nodes.filter(Se=>!pe.has(Se.id)||!Q.edges.some(Re=>Re.source===Se.id&&he.has(Re.target))),fe=ue.length>0?ue[ue.length-1].id:Q.nodes.length>0?Q.nodes[Q.nodes.length-1].id:null,K=typeof j.until=="string"?[{condition:"template",value_template:j.until}]:j.until,ge=[];for(let Se=0;SeAe.id===fe)&&C.has(fe)?"true":void 0;_.push(this.createEdge(fe,ge[0].id,Re))}else D(ge[0].id);for(let Se=0;SeBe.id)),K=new Set(ue.edges.filter(Be=>fe.has(Be.target)).map(Be=>Be.source)),ge=ue.nodes.filter(Be=>!K.has(Be.id)||!ue.edges.some(bt=>bt.source===Be.id&&fe.has(bt.target))),De=ge.length>0?ge[ge.length-1].id:ue.nodes.length>0?ue.nodes[ue.nodes.length-1].id:ae,Se=g("set_variables"),Re={id:Se,type:"set_variables",position:{x:0,y:0},data:{variables:{[he]:`{{ ${he} + 1 }}`},enabled:ne}};if(S.push(Re),ue.nodes.length>0){const bt=ue.nodes.find(Nt=>Nt.id===De)&&C.has(De)?"true":void 0;_.push(this.createEdge(De,Se,bt))}else _.push(this.createEdge(ae,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),_.push(this.createEdge(Se,Ae));const We=ue.nodes.length>0?ue.nodes[0].id:Se,ut=this.createEdge(Ae,We,"true");_.push(ut),A=[Ae],O.add(Ae)}else{const Q=g("action"),ae={id:Q,type:"action",position:{x:0,y:0},data:{alias:ee,repeat:j,enabled:ne}};S.push(ae),D(Q),A=[Q]}}else if(_Qn(B)){const P=g("action");try{const j=B,{alias:z,service:ee,action:ne,target:Q,data:ae,data_template:he,response_variable:pe,continue_on_error:ue,enabled:fe,...K}=j,ge={id:P,type:"action",position:{x:0,y:0},data:{...K,alias:typeof z=="string"?z:void 0,service:typeof ee=="string"?ee:typeof ne=="string"?ne:void 0,target:typeof Q=="object"&&Q!==null?Q:void 0,data:typeof ae=="object"&&ae!==null?ae:void 0,data_template:typeof he=="object"&&he!==null?he:void 0,response_variable:typeof pe=="string"?pe:void 0,continue_on_error:typeof ue=="boolean"?ue:void 0,enabled:L(typeof fe=="boolean"?fe:void 0)}};S.push(ge),D(P),A=[P]}catch(j){c.push(`Failed to parse action ${$}: ${j}`),S.push(this.createUnknownNode(P,B))}}else if(NQn(B)){const P=g("action"),j=B,z={id:P,type:"action",position:{x:0,y:0},data:{alias:typeof j.alias=="string"?j.alias:void 0,set_conversation_response:typeof j.set_conversation_response=="string"?j.set_conversation_response:void 0,enabled:L(typeof j.enabled=="boolean"?j.enabled:void 0)}};S.push(z),D(P),A=[P]}else if(CQn(B)){const P=g("action"),j=B,z={id:P,type:"action",position:{x:0,y:0},data:{alias:typeof j.alias=="string"?j.alias:void 0,stop:typeof j.stop=="string"?j.stop:"",...j.error===!0?{error:!0}:{},enabled:L(typeof j.enabled=="boolean"?j.enabled:void 0)}};S.push(z),D(P),A=[P]}else{c.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const P=g("unknown");S.push({id:P,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D(P),A=[P]}}),{nodes:S,edges:_,terminalNodeIds:A}}parseChooseBlock(i,s){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,inheritedEnabled:E}=s,S=[],_=[],A=[],C=[],O=new Set(b),L=i.enabled,D=E===!1||L===!1?!1:void 0,B=()=>D,P=(Array.isArray(i.choose)?i.choose:[i.choose]).filter(z=>{if(typeof z!="object"||z===null)return!1;const ee=z.conditions;return Array.isArray(ee)?ee.length>0:!!ee});let j=[...d];if(P.forEach((z,ee)=>{const ne=Array.isArray(z.conditions)?z.conditions:[z.conditions],Q=[];for(let pe=0;pe0&&O.has(pe)&&!b.has(pe)||w.has(pe)?ue="false":b.has(pe)&&(ue="true"),_.push(this.createEdge(pe,ae,ue))}for(let pe=0;pe0){const fe=ue.nodes[0].id,K=_.find(De=>De.source===he&&De.target===fe);K&&(K.sourceHandle="true");const ge=ue.nodes[ue.nodes.length-1].id;A.push(ge)}else A.push(he)}else A.push(he);j=[ae]}),i.default){const z=Array.isArray(i.default)?i.default:[i.default],ee=this.parseActions(z,{warnings:c,previousNodeIds:j,getNextNodeId:g,conditionNodeIds:O,inheritedEnabled:D});if(S.push(...ee.nodes),_.push(...ee.edges),j.length>0&&ee.nodes.length>0){const ne=j[0],Q=ee.nodes[0].id,ae=_.find(pe=>pe.source===ne&&pe.target===Q);ae&&O.has(ne)&&(ae.sourceHandle="false");const he=ee.nodes[ee.nodes.length-1].id;A.push(he)}}else if(P.length>0){const z=j[0];A.push(z),C.push(z)}return{nodes:S,edges:_,outputNodeIds:A,falsePathOutputIds:C}}parseIfBlock(i,s){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,triggerNodeMap:E,inheritedEnabled:S}=s,_=[],A=[],C=[],O=[],L=new Set(b),D=S===!1||i.enabled===!1?!1:void 0,B=()=>D,$=Array.isArray(i.if)?i.if:[i.if],P=[];for(let Q=0;Q<$.length;Q++){const ae=$[Q],he=g("condition");let pe;if(ae&&Array.isArray(ae.conditions)){const ue=ae.condition||"and",fe=N5.includes(ue)?ue:"template";pe={id:he,type:"condition",position:{x:0,y:0},data:uIe({alias:Q===0?i.alias:void 0,condition:fe,conditions:WDe(ae.conditions),enabled:B()})}}else{const ue=(ae==null?void 0:ae.condition)||"numeric_state",fe=N5.includes(ue)?ue:"template",K={...ae,alias:Q===0?i.alias??(ae==null?void 0:ae.alias):ae==null?void 0:ae.alias,condition:fe,enabled:B()};let ge;try{ge=Ug.parse(K)}catch{ge={alias:Q===0?i.alias:void 0,condition:"template",value_template:JSON.stringify(ae),enabled:B()}}pe={id:he,type:"condition",position:{x:0,y:0},data:uIe(ge)}}P.push(pe),_.push(pe),L.add(he)}const j=P[0].id,z=(()=>{if(i.else||$.length!==1)return null;const Q=$[0];if((Q==null?void 0:Q.condition)!=="trigger")return null;const ae=Q==null?void 0:Q.id;return typeof ae=="string"?[ae]:Array.isArray(ae)&&ae.length>0&&ae.every(he=>typeof he=="string")?ae:null})();for(const Q of d){if(z!==null&&E){const he=E.get(Q);if(he!==void 0&&!z.includes(he))continue}let ae;w.has(Q)?ae="false":L.has(Q)&&(ae="true"),A.push(this.createEdge(Q,j,ae))}for(let Q=0;Q0){const he=ae.nodes[0].id,pe=A.find(ue=>ue.source===ee&&ue.target===he);pe&&(pe.sourceHandle="true")}C.push(...ae.terminalNodeIds)}if(i.else){const Q=Array.isArray(i.else)?i.else:[i.else],ae=this.parseActions(Q,{warnings:c,previousNodeIds:[j],getNextNodeId:g,conditionNodeIds:new Set,inheritedEnabled:D});if(_.push(...ae.nodes),ae.nodes.length>0){const he=ae.nodes[0].id,pe=ae.edges.findIndex(ue=>ue.source===j&&ue.target===he);pe>=0&&ae.edges.splice(pe,1),A.push(this.createEdge(j,he,"false"))}A.push(...ae.edges),C.push(...ae.terminalNodeIds)}else if(z===null)for(const Q of P)C.push(Q.id),O.push(Q.id);C.length===0&&z===null&&(C.push(ee),O.push(ee));const ne=z!==null&&E?d.filter(Q=>{const ae=E.get(Q);return ae===void 0||!z.includes(ae)}):[];return{nodes:_,edges:A,outputNodeIds:C,falsePathOutputIds:O,unconsumedPreviousIds:ne}}createUnknownNode(i,s){const c=s;return{id:i,type:"action",position:{x:0,y:0},data:{alias:`Unknown: ${(c==null?void 0:c.service)||(c==null?void 0:c.trigger)||"Node"}`,service:(c==null?void 0:c.service)||"unknown.unknown",data:c}}}applyMetadataPositions(i,s){return i.map(c=>({...c,position:s.nodes[c.id]||c.position}))}createEdge(i,s,c){return{id:cQn(i,s),source:i,target:s,sourceHandle:c||void 0}}}class lKt{findEntryNodes(i){const s=new Set(i.edges.map(c=>c.target));return i.nodes.filter(c=>!s.has(c.id)).map(c=>c.id)}getOutgoingEdges(i,s){return i.edges.filter(c=>c.source===s)}getIncomingEdges(i,s){return i.edges.filter(c=>c.target===s)}getNode(i,s){return i.nodes.find(c=>c.id===s)}buildTrigger(i){const s={...i.data};return(s.trigger==="device"||s.platform==="device")&&Array.isArray(s.entity_id)&&s.entity_id.length===1&&(s.entity_id=s.entity_id[0]),Object.fromEntries(Object.entries(s).filter(([,d])=>d!==void 0&&d!==""&&d!==null))}}class LQn extends lKt{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,c){var L,D,B,$,P;const d=[];this.backEdgeIds=jWt(s),this.repeatPatterns=this.detectRepeatPatterns(s),this.repeatInternalNodeIds=new Set;for(const j of this.repeatPatterns.values()){for(const z of j.bodyNodeIds)this.repeatInternalNodeIds.add(z);for(const z of j.conditionNodeIds)this.repeatInternalNodeIds.add(z);j.initNodeId&&this.repeatInternalNodeIds.add(j.initNodeId),j.incrementNodeId&&this.repeatInternalNodeIds.add(j.incrementNodeId)}const g=this.extractTriggers(s),w=c.entryNodes.flatMap(j=>this.getOutgoingEdges(s,j).map(ee=>ee.target)),E=[...new Set(w)];let S=null,_=[],A=null;if(E.length===1){const j=this.extractLeadingConditions(s,E[0]);j.conditions.length>0&&(S=j.conditions,_=j.nextNodeIds,A=j.visitedIds)}let C;if(S)_.length>0?C=_.flatMap(j=>this.buildSequenceFromNode(s,j,new Set(A))):C=[];else if(E.length===1)C=this.buildSequenceFromNode(s,E[0],new Set);else if(E.length>1){const j=this.detectOrPattern(s,E);if(j){const z=j.conditions.map(Q=>this.buildCondition(Q)),ee=new Set(j.conditions.map(Q=>Q.id)),ne=this.buildSequenceFromNode(s,j.convergenceNode,ee);C=[{if:[{condition:"or",conditions:z}],then:ne,else:j.isFromFalsePaths?[]:[]}]}else E.every(ee=>{var Q;const ne=s.nodes.find(ae=>ae.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 O={alias:s.name,description:s.description||"",triggers:g};return S&&S.length>0&&(O.conditions=S),O.actions=C,O.mode=((L=s.metadata)==null?void 0:L.mode)??"single",(D=s.metadata)!=null&&D.max&&(O.max=s.metadata.max),(B=s.metadata)!=null&&B.max_exceeded&&(O.max_exceeded=s.metadata.max_exceeded),(($=s.metadata)==null?void 0:$.initial_state)===!1&&(O.initial_state=!1),(P=s.metadata)!=null&&P.trace&&(O.trace=s.metadata.trace),s.userTriggerVariables&&Object.keys(s.userTriggerVariables).length>0&&(O.trigger_variables=s.userTriggerVariables),{automation:O,warnings:d,strategy:this.name}}detectRepeatPatterns(s){const c=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 _=w;for(;_;){const L=this.getNode(s,_);if((L==null?void 0:L.type)!=="condition")break;S.push(_);const D=s.edges.find($=>$.source===_&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!D)break;const B=this.getNode(s,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)_=D.target;else break}const A=S[S.length-1],C=this.collectBodyNodes(s,A,"true",new Set(S),E),O=s.edges.find(L=>L.source===w&&L.sourceHandle==="false"&&!this.backEdgeIds.has(L.id));c.set(w,{type:"while",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:C,backEdgeSourceId:E,exitNodeId:(O==null?void 0:O.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="false"){const w=d.target,E=d.source,S=[];let _=E;for(;_;){const L=this.getNode(s,_);if((L==null?void 0:L.type)!=="condition")break;S.push(_);const D=s.edges.find($=>$.source===_&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!D)break;const B=this.getNode(s,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)_=D.target;else break}const A=this.collectNodesUntil(s,w,new Set(S)),C=S[S.length-1],O=s.edges.find(L=>L.source===C&&L.sourceHandle==="true"&&!this.backEdgeIds.has(L.id));c.set(w,{type:"until",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:A,backEdgeSourceId:E,exitNodeId:(O==null?void 0:O.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="true"){const w=d.target,E=d.source,S=[E],_=s.edges.filter(z=>z.target===E&&!this.backEdgeIds.has(z.id)),A=_.length>0?_[0].source:void 0,C=new Set([E]);A&&C.add(A);const O=this.collectNodesUntil(s,w,C),D=s.edges.filter(z=>z.target===w&&!this.backEdgeIds.has(z.id)).map(z=>z.source).find(z=>{const ee=this.getNode(s,z);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 z=B.data.value_template;if(typeof z=="string"){const ee=z.match(/<\s*(\d+)\s*\}\}/);ee&&($=Number.parseInt(ee[1],10))}}const P=s.edges.find(z=>z.source===E&&z.sourceHandle==="false"&&!this.backEdgeIds.has(z.id)),j=D??w;c.set(j,{type:"count",entryNodeId:j,conditionNodeIds:S,bodyNodeIds:O,backEdgeSourceId:E,initNodeId:D,incrementNodeId:A,count:$,exitNodeId:(P==null?void 0:P.target)??null})}}}return c}collectBodyNodes(s,c,d,g,b){const w=s.edges.find(A=>A.source===c&&A.sourceHandle===d&&!this.backEdgeIds.has(A.id));if(!w)return[];const E=[],S=[w.target],_=new Set;for(;S.length>0;){const A=S.shift();if(_.has(A)||g.has(A)||(_.add(A),E.push(A),A===b))continue;const C=s.edges.filter(O=>O.source===A&&!this.backEdgeIds.has(O.id));for(const O of C)!_.has(O.target)&&!g.has(O.target)&&S.push(O.target)}return E}collectNodesUntil(s,c,d){const g=[],b=[c],w=new Set;for(;b.length>0;){const E=b.shift();if(w.has(E)||d.has(E))continue;w.add(E),g.push(E);const S=s.edges.filter(_=>_.source===E&&!this.backEdgeIds.has(_.id));for(const _ of S)!w.has(_.target)&&!d.has(_.target)&&b.push(_.target)}return g}buildRepeatBlock(s,c,d){for(const w of c.conditionNodeIds)d.add(w);for(const w of c.bodyNodeIds)d.add(w);c.initNodeId&&d.add(c.initNodeId),c.incrementNodeId&&d.add(c.incrementNodeId),d.add(c.entryNodeId);const g=[];for(const w of c.bodyNodeIds){const E=this.getNode(s,w);if(E)if(E.type==="condition"){const S=s.edges.filter(C=>C.source===w&&!this.backEdgeIds.has(C.id)),_=S.find(C=>C.sourceHandle==="true"),A=S.find(C=>C.sourceHandle==="false");if(_||A){const C={if:[this.buildCondition(E)],then:[],else:[]};_&&c.bodyNodeIds.includes(_.target)&&(C.then=this.buildBodySubsequence(s,_.target,c,d)),A&&c.bodyNodeIds.includes(A.target)&&(C.else=this.buildBodySubsequence(s,A.target,c,d)),g.push(C)}else g.push(this.buildCondition(E))}else{const S=this.buildNodeAction(E);S&&g.push(S)}}let b;if(c.type==="while"){const E={repeat:{while:c.conditionNodeIds.map(S=>{var A;const _=this.getNode(s,S);return!b&&((A=_==null?void 0:_.data)!=null&&A.alias)&&(b=_.data.alias),this.buildCondition(_)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="until"){const E={repeat:{until:c.conditionNodeIds.map(S=>{const _=this.getNode(s,S);return this.buildCondition(_)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="count"){if(c.initNodeId){const E=this.getNode(s,c.initNodeId);E!=null&&E.data&&"alias"in E.data&&(b=E.data.alias)}const w={repeat:{count:c.count,sequence:g}};return b&&(w.alias=b),w}return null}buildBodySubsequence(s,c,d,g){const b=[];let w=c;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 _=s.edges.filter(A=>A.source===w&&!this.backEdgeIds.has(A.id));w=_.length===1?_[0].target:null}return b}extractTriggers(s){return s.nodes.filter(c=>c.type==="trigger").map(c=>this.buildTrigger(c))}detectOrPattern(s,c){const d=c.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===c.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===c.length){const w=[...b][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!0}}return null}extractLeadingConditions(s,c){const d=[],g=new Set;let b=c;for(;b;){const w=this.getNode(s,b);if(!w||w.type!=="condition"||this.repeatPatterns.has(b)||this.repeatInternalNodeIds.has(b)||qUn(w.data))break;const S=this.getOutgoingEdges(s,b).filter(O=>!this.backEdgeIds.has(O.id)),_=S.filter(O=>O.sourceHandle==="true"),A=S.filter(O=>O.sourceHandle==="false");if(_.length>0&&A.length>0||_.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(O=>O.target),visitedIds:g};b=A[0].target}else{if(d.push(C),g.add(b),_.length>1)return{conditions:d,nextNodeIds:_.map(O=>O.target),visitedIds:g};b=_[0].target}}return{conditions:d,nextNodeIds:b?[b]:[],visitedIds:g}}findOrConditionSources(s,c,d,g){const b=s.edges.filter(w=>w.target===c&&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,c,d){if(d.has(c))return[];const g=this.getNode(s,c);if(!g)return[];const b=[],w=this.findOrConditionSources(s,c,"true",d),E=this.findOrConditionSources(s,c,"false",d);if(w.length>1){const A=w.map(L=>this.buildCondition(L));for(const L of w)d.add(L.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(s,c,new Set):this.buildSequenceFromNode(s,c,new Set(d));let O;if(g.type!=="condition"){const L=this.buildNodeAction(g);O=L?[L,...C]:C}else O=C;return b.push({if:[{condition:"or",conditions:A}],then:O,else:[]}),b}if(E.length>1){const A=E.map(L=>this.buildCondition(L));for(const L of E)d.add(L.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(s,c,new Set):this.buildSequenceFromNode(s,c,new Set(d));let O;if(g.type!=="condition"){const L=this.buildNodeAction(g);O=L?[L,...C]:C}else O=C;return b.push({if:[{condition:"or",conditions:A}],then:[],else:O}),b}const S=this.repeatPatterns.get(c);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(c);const _=this.getOutgoingEdges(s,c).filter(A=>!this.backEdgeIds.has(A.id));if(g.type==="condition"){const A=[];let C=g,O=[],L=[];for(L=this.getOutgoingEdges(s,g.id).filter(j=>j.sourceHandle==="false"&&!this.backEdgeIds.has(j.id)).map(j=>j.target);(C==null?void 0:C.type)==="condition";){A.push(this.buildCondition(C));const j=this.getOutgoingEdges(s,C.id).filter(ne=>ne.sourceHandle==="true"&&!this.backEdgeIds.has(ne.id));if(j.length===0)break;if(j.length>1){O=j.map(ne=>ne.target);break}const z=j[0],ee=this.getNode(s,z.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(ae=>ae.sourceHandle==="false"&&!this.backEdgeIds.has(ae.id));if(ne.length===0||ne.length===1&&L.includes(ne[0].target))C=ee,d.add(C.id);else{O=[z.target];break}}else{O=[z.target];break}}const B={alias:g.data.alias,if:A,then:[],else:[]},$=[...O,...L],P=O.length>0&&L.length>0?this.findConvergencePoint(s,$):null;if(P){if(O.length>0){const z=O.flatMap(ee=>this.buildSequenceUntilNode(s,ee,P,new Set(d)));B.then=z}if(L.length>0){const z=L.flatMap(ee=>this.buildSequenceUntilNode(s,ee,P,new Set(d)));B.else=z}b.push(B);const j=this.buildSequenceFromNode(s,P,new Set(d));b.push(...j)}else{if(O.length>0){const j=O.flatMap(z=>this.buildSequenceFromNode(s,z,new Set(d)));B.then=j}if(L.length>0){const j=L.flatMap(z=>this.buildSequenceFromNode(s,z,new Set(d)));B.else=j}b.push(B)}}else{const A=this.buildNodeAction(g);if(A&&b.push(A),_.length===1){const C=this.buildSequenceFromNode(s,_[0].target,new Set(d));b.push(...C)}else if(_.length>1){const C=this.findConvergencePoint(s,_.map(O=>O.target));if(C){const L=_.map(B=>this.buildSequenceUntilNode(s,B.target,C,new Set(d))).filter(B=>B.length>0);if(L.length>0){const B=L.map($=>$.length===1?$[0]:$);b.push({parallel:B})}const D=this.buildSequenceFromNode(s,C,new Set(d));b.push(...D)}else{const L=_.map(D=>this.buildSequenceFromNode(s,D.target,new Set(d))).filter(D=>D.length>0);if(L.length>0){const D=L.map(B=>B.length===1?B[0]:B);b.push({parallel:D})}}}}return b}findConvergencePoint(s,c){if(c.length<2)return null;const d=c.map(S=>{const _=new Set,A=[S];for(;A.length>0;){const C=A.shift();if(_.has(C))continue;_.add(C);const O=this.getOutgoingEdges(s,C);for(const L of O)A.push(L.target)}return _}),b=[...d[0]].filter(S=>d.every(_=>_.has(S)));if(b.length===0)return null;let w=null,E=Number.POSITIVE_INFINITY;for(const S of b){const _=c.map(C=>this.getShortestDistance(s,C,S)),A=Math.max(..._);A0;){const{nodeId:w,distance:E}=b.shift();if(g.has(w))continue;g.add(w);const S=this.getOutgoingEdges(s,w);for(const _ of S){if(_.target===d)return E+1;g.has(_.target)||b.push({nodeId:_.target,distance:E+1})}}return Number.POSITIVE_INFINITY}buildSequenceUntilNode(s,c,d,g){if(c===d)return[];if(g.has(c))return[];g.add(c);const b=this.getNode(s,c);if(!b)return[];const w=[],E=this.buildNodeAction(b);E&&w.push(E);const S=this.getOutgoingEdges(s,c).filter(_=>!this.backEdgeIds.has(_.id));if(b.type==="condition"){const _=E,A=S.filter(O=>O.sourceHandle==="true"),C=S.filter(O=>O.sourceHandle==="false");if(A.length>0){const O=A.flatMap(L=>this.buildSequenceUntilNode(s,L.target,d,new Set(g)));_.then=O}if(C.length>0){const O=C.flatMap(L=>this.buildSequenceUntilNode(s,L.target,d,new Set(g)));_.else=O}}else if(S.length===1){if(S[0].target!==d){const _=this.buildSequenceUntilNode(s,S[0].target,d,new Set(g));w.push(..._)}}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(O=>O.length===1?O[0]:O);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 c=this.buildCondition(s);return{alias:s.data.alias,if:[c],then:[],else:[]}}mapSingleCondition(s){const{condition:c,conditions:d,alias:g,template:b,...w}=m8t(s),E={condition:c,...w};return c==="template"&&!w.value_template&&b&&(E.value_template=b),Array.isArray(d)&&d.length>0&&(E.conditions=d.map(S=>this.mapSingleCondition(S)).filter(S=>S&&(!Array.isArray(S.conditions)||S.conditions.length>0))),Object.fromEntries(Object.entries(E).filter(([,S])=>S!==void 0&&S!==""))}buildCondition(s){function c(d){if(!d||typeof d!="object")return d;const{condition:g,conditions:b,alias:w,template:E,...S}=m8t(d),_={condition:g,...S};return g==="template"&&!S.value_template&&E&&(_.value_template=E),Array.isArray(b)&&b.length>0&&(_.conditions=b.map(c).filter(A=>A&&(!Array.isArray(A.conditions)||A.conditions.length>0))),Object.fromEntries(Object.entries(_).filter(([,A])=>A!==void 0&&A!==""))}return c(s.data)}buildActionCall(s){if(EMe(s.data.data)){const D=s.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};s.data.alias&&(B.alias=s.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[P,j]of Object.entries(D))!$.includes(P)&&j!==void 0&&(B[P]=j);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const D=s.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return 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 D={event:s.data.event};return s.data.alias&&(D.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(D.event_data=s.data.event_data),s.data.enabled===!1&&(D.enabled=!1),D}if("stop"in s.data){const D={stop:s.data.stop??""};return s.data.alias&&(D.alias=s.data.alias),s.data.error===!0&&(D.error=!0),s.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:_,enabled:A,repeat:C,...O}=s.data,L={...O,alias:c,service:d};return b&&(L.target=b),w&&(L.data=w),E&&(L.data_template=E),S&&(L.response_variable=S),_&&(L.continue_on_error=_),A===!1&&(L.enabled=!1),L}buildDelay(s){const{alias:c,delay:d,id:g,...b}=s.data;return{...b,alias:c,delay:d}}buildWait(s){const{alias:c,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,_={...S,alias:c};return g?_.wait_template=g:b&&(_.wait_for_trigger=b.map(A=>{const C={...A};return Object.fromEntries(Object.entries(C).filter(([,O])=>O!==void 0&&O!==""&&O!==null))})),w&&(_.timeout=w),E!==void 0&&(_.continue_on_timeout=E),_}buildSetVariables(s){const{alias:c,id:d,variables:g,...b}=s.data,w={...b,variables:g};return c&&(w.alias=c),w}}class W7t extends lKt{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,c){var P,j,z,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:((P=s.metadata)==null?void 0:P.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:s.name,description:s.description||"",sequence:[],mode:((j=s.metadata)==null?void 0:j.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,ae]of g){const he=(z=b[Q])==null?void 0:z.id;if(!he)continue;const pe=[...new Set(ae)].filter(fe=>fe!=="END");if(pe.length<=1)continue;const ue=this.planFanOut(s,this.getOutgoingEdges(s,he));if(!ue.ok){d.push(this.describeFanOutRejection(`Trigger ${Q+1}`,pe,ue));continue}E.set(Q,pe);for(const fe of ue.owned)w.add(fe)}const S=this.generateParallelEntryBlocks(s,E),_=new Map;for(const Q of this.orderNodesFromEntry(s)){if(Q.type==="trigger"||Q.type==="condition"||w.has(Q.id))continue;const ae=this.getFanOutTargets(s,Q.id);if(ae.length<=1)continue;const he=this.planFanOut(s,this.getFanOutEdges(s,Q.id));if(!he.ok){d.push(this.describeFanOutRejection(`Node "${Q.id}"`,ae,he));continue}_.set(Q.id,ae);for(const pe of he.owned)w.add(pe);for(const pe of he.reachable){const ue=this.getFanOutTargets(s,pe);if(ue.length<=1)continue;const fe=this.planFanOut(s,this.getFanOutEdges(s,pe));fe.ok||d.push(this.describeFanOutRejection(`Node "${pe}"`,ue,fe,!0))}}const A=[],C=new Map;for(const Q of this.orderNodesFromEntry(s))if(!(Q.type!=="condition"||w.has(Q.id)))for(const ae of["true","false"]){const he=this.getConditionHandleTargets(s,Q.id,ae);if(he.length<=1)continue;const pe=this.getOutgoingEdges(s,Q.id).filter(K=>K.sourceHandle===ae),ue=this.planFanOut(s,pe);if(!ue.ok){d.push(this.describeFanOutRejection(`The "${ae}" branch of condition "${Q.id}"`,he,ue));continue}const fe=`__parallel_cond_${Q.id}__${ae}`;C.set(`${Q.id}:${ae}`,fe),A.push(this.buildParallelEntryBlock(s,fe,he));for(const K of ue.owned)w.add(K)}const O=s.nodes.filter(Q=>Q.type!=="trigger"&&!w.has(Q.id)).map(Q=>this.generateNodeBlock(s,Q,_,C)),L=[...S,...A,...O];if(c.hasCycles){const Q=this.detectPotentialInfiniteLoop(s,c);Q&&d.push(Q)}const D=this.extractTriggers(s),$=[{variables:{current_node:this.generateEntryNodeExpression(g,E),flow_context:{}}},{alias:"State Machine Loop",repeat:{until:'{{ current_node == "END" }}',sequence:[{choose:L,default:[{service:"system_log.write",data:{message:'C.A.F.E.: Unknown state "{{ current_node }}", ending flow',level:"warning"}},{variables:{current_node:"END"}}]}]}}];return D.length>0?{automation:{alias:s.name,description:s.description||"",triggers:D,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 c=new Map;return s.nodes.filter(g=>g.type==="trigger").forEach((g,b)=>{const w=this.getOutgoingEdges(s,g.id);w.length>0&&c.set(b,w.map(E=>E.target))}),c}getEffectiveEntryPoint(s,c,d){return c.length===1||!d.has(s)?c[0]:`__parallel_trigger_${s}`}generateEntryNodeExpression(s,c){const d=new Map;for(const[E,S]of s)d.set(E,this.getEffectiveEntryPoint(E,S,c));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],_)=>{_===0?w.push(`{% if trigger.idx == "${E}" %}${S}`):_===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,c){const d=[];for(const[g,b]of c)b.length<=1||d.push(this.buildParallelEntryBlock(s,`__parallel_trigger_${g}`,[...new Set(b)]));return d}buildParallelEntryBlock(s,c,d){return{conditions:[{condition:"template",value_template:`{{ current_node == "${c}" }}`}],sequence:[{parallel:this.buildParallelBranches(s,d)},{variables:{current_node:"END"}}]}}getFanOutEdges(s,c){return this.getOutgoingEdges(s,c).filter(d=>d.sourceHandle!=="true"&&d.sourceHandle!=="false")}orderNodesFromEntry(s){const c=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=c.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,c,d){const g=this.getOutgoingEdges(s,c).filter(b=>b.sourceHandle===d).map(b=>b.target);return[...new Set(g)].filter(b=>b!=="END")}getFanOutTargets(s,c){return[...new Set(this.getFanOutEdges(s,c).map(d=>d.target))].filter(d=>d!=="END"&&d!==c)}planFanOut(s,c){var C;const d=(C=c[0])==null?void 0:C.source;if(!d)return{ok:!1,reason:"cycle",nodes:[]};const g=[...new Set(c.map(O=>O.target))],b=new Set;for(const O of g)this.collectSubgraphNodeIds(s,O,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(O=>this.hasMultiTargetHandle(s,O));if(E)return{ok:!1,reason:"nested-condition",nodes:[E]};const S=new Set(c.map(O=>O.id)),_=new Set(b);let A=!0;for(;A;){A=!1;for(const O of[..._])s.edges.some(D=>D.target===O&&!S.has(D.id)&&!_.has(D.source))&&(_.delete(O),A=!0)}return{ok:!0,owned:_,reachable:b}}hasMultiTargetHandle(s,c){const d=s.nodes.find(g=>g.id===c);return(d==null?void 0:d.type)!=="condition"?!1:this.getConditionHandleTargets(s,c,"true").length>1||this.getConditionHandleTargets(s,c,"false").length>1}describeFanOutRejection(s,c,d,g=!1){return d.reason==="nested-condition"?`${s} branches to [${c.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 [${c.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 [${c.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 [${c.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 [${c.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,c){const d=new Set,g=new Set;for(const b of c){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,c,d=new Set){return c.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,c,d,g){var w;const b=g.get(c);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,c,d){if(c==="END"||d.has(c))return;const g=s.nodes.find(w=>w.id===c);if(!g||g.type==="trigger")return;d.add(c);const b=this.getOutgoingEdges(s,g.id);for(const w of b)this.collectSubgraphNodeIds(s,w.target,d)}encodeNodeIdInAlias(s,c){const d=s.alias;s.alias=d?`cafe_node:${c}:${d}`:`cafe_node:${c}`}continueInlineBranch(s,c,d,g){var w;const b=this.getFanOutTargets(s,c);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,c,d){if(c==="END"||d.has(c))return[];const g=s.nodes.find(w=>w.id===c);if(!g)return[];d.add(c);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(D=>D.sourceHandle==="true"),E=b.find(D=>D.sourceHandle==="false"),S=(w==null?void 0:w.target)??"END",_=(E==null?void 0:E.target)??"END",A=this.buildNativeCondition(g),C=this.generateInlineBranch(s,S,new Set(d)),O=this.generateInlineBranch(s,_,new Set(d)),L={alias:g.data.alias,if:[A],then:C};return this.encodeNodeIdInAlias(L,g.id),O.length>0&&(L.else=O),[L]}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(c=>c.type==="trigger").map(c=>this.buildTrigger(c))}generateNodeBlock(s,c,d,g){const b=this.getOutgoingEdges(s,c.id);switch(c.type){case"condition":return this.generateConditionBlock(c,b,g);case"action":return this.generateActionBlock(s,c,b,d);case"delay":return this.generateDelayBlock(s,c,b,d);case"wait":return this.generateWaitBlock(s,c,b,d);case"set_variables":return this.generateSetVariablesBlock(s,c,b,d);default:return this.generatePassthroughBlock(s,c,b,d)}}generateActionBlock(s,c,d,g){const b=c.id,w=this.buildActionCall(c);return{conditions:[{condition:"template",value_template:`{{ current_node == "${b}" }}`}],sequence:[w,...this.buildTransitionTail(s,c.id,d,g)]}}buildActionCall(s){if(EMe(s.data.data)){const D=s.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};s.data.alias&&(B.alias=s.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[P,j]of Object.entries(D))!$.includes(P)&&j!==void 0&&(B[P]=j);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const D=s.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return 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 D={event:s.data.event};return s.data.alias&&(D.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(D.event_data=s.data.event_data),s.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:_,enabled:A,repeat:C,...O}=s.data,L={...O,alias:c,service:d};return g&&(L.id=g),b&&(L.target=b),w&&(L.data=w),E&&(L.data_template=E),S&&(L.response_variable=S),_&&(L.continue_on_error=_),A===!1&&(L.enabled=!1),L}generateConditionBlock(s,c,d){const g=c.find(L=>L.sourceHandle==="true"),b=c.find(L=>L.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,_=E==="END"?"END":E,A=s.id;if(this.needsNativeConditionCheck(s)){const L=this.buildNativeCondition(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${A}" }}`}],sequence:[{alias:s.data.alias,if:[L],then:[{variables:{current_node:S}}],else:[{variables:{current_node:_}}]}]}}const O=this.buildConditionTemplate(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${A}" }}`}],sequence:[{alias:s.data.alias,variables:{current_node:`{% if ${O} %}${S}{% else %}${_}{% endif %}`}}]}}needsNativeConditionCheck(s){const c=s.data;return c.condition==="template"&&(c.value_template||"").includes("{%")?!0:(c.condition==="and"||c.condition==="or"||c.condition==="not")&&c.conditions?c.conditions.some(d=>d.condition==="template"?(d.value_template||"").includes("{%"):!1):!1}buildNativeCondition(s){const c=s.data,d={condition:c.condition};return c.entity_id&&(d.entity_id=c.entity_id),c.state!==void 0&&(d.state=c.state),c.above!=null&&c.above!==""&&(d.above=c.above),c.below!=null&&c.below!==""&&(d.below=c.below),c.attribute&&(d.attribute=c.attribute),c.value_template&&(d.value_template=c.value_template),c.after&&(d.after=c.after),c.before&&(d.before=c.before),c.after_offset&&(d.after_offset=c.after_offset),c.before_offset&&(d.before_offset=c.before_offset),c.zone&&(d.zone=c.zone),c.weekday&&(d.weekday=c.weekday),c.id&&(d.id=c.id),c.conditions&&c.conditions.length>0&&(d.conditions=c.conditions.map(g=>{const b={condition:g.condition};return g.entity_id&&(b.entity_id=g.entity_id),g.state!==void 0&&(b.state=g.state),g.above!==void 0&&(b.above=g.above),g.below!==void 0&&(b.below=g.below),g.attribute&&(b.attribute=g.attribute),g.value_template&&(b.value_template=g.value_template),g.template&&(b.value_template=g.template),g.after&&(b.after=g.after),g.before&&(b.before=g.before),g.after_offset&&(b.after_offset=g.after_offset),g.before_offset&&(b.before_offset=g.before_offset),g.zone&&(b.zone=g.zone),g.weekday&&(b.weekday=g.weekday),g.id&&(b.id=g.id),Object.fromEntries(Object.entries(b).filter(([,w])=>w!==void 0))})),Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0))}buildDelayAction(s){const{alias:c,delay:d,id:g,...b}=s.data,w={...b,alias:c,delay:d};return g&&(w.id=g),w}generateDelayBlock(s,c,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${c.id}" }}`}],sequence:[this.buildDelayAction(c),...this.buildTransitionTail(s,c.id,d,g)]}}buildWaitAction(s){const{alias:c,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,_={...S,alias:c};return d&&(_.id=d),g?_.wait_template=g:b&&(_.wait_for_trigger=b.map(A=>{const{alias:C,...O}=A,L={...O};return Object.fromEntries(Object.entries(L).filter(([,D])=>D!==void 0&&D!==""&&D!==null))})),w&&(_.timeout=w),E!==void 0&&(_.continue_on_timeout=E),_}generateWaitBlock(s,c,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${c.id}" }}`}],sequence:[this.buildWaitAction(c),...this.buildTransitionTail(s,c.id,d,g)]}}buildSetVariablesAction(s){const{alias:c,id:d,variables:g,...b}=s.data,w={...b,variables:g};return c&&(w.alias=c),d&&(w.id=d),w}generateSetVariablesBlock(s,c,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${c.id}" }}`}],sequence:[this.buildSetVariablesAction(c),...this.buildTransitionTail(s,c.id,d,g)]}}generatePassthroughBlock(s,c,d,g){return{conditions:[{condition:"template",value_template:`{{ current_node == "${c.id}" }}`}],sequence:this.buildTransitionTail(s,c.id,d,g)}}buildConditionTemplate(s){const c=s.data;switch(c.condition){case"state":if(c.attribute){if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`state_attr('${c.entity_id}', '${c.attribute}') in [${d}]`}return`state_attr('${c.entity_id}', '${c.attribute}') == '${c.state}'`}else{if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`states('${c.entity_id}') in [${d}]`}return`is_state('${c.entity_id}', '${c.state}')`}case"numeric_state":return this.buildNumericCondition(c);case"template":{let d=c.value_template||"true";return d.startsWith("{{")&&d.endsWith("}}")&&(d=d.slice(2,-2).trim()),d}case"time":return this.buildTimeCondition(c);case"sun":return this.buildSunCondition(c);case"zone":return`is_state('${c.entity_id}', '${c.zone}')`;case"and":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";case"or":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" or ")})`:"false";case"not":return c.conditions&&c.conditions.length>0?`not (${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";default:return"true"}}buildNumericCondition(s){const c=[],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!==""&&c.push(`${d} > ${s.above}`),s.below!=null&&s.below!==""&&c.push(`${d} < ${s.below}`),c.length>0?c.join(" and "):"true"}buildTimeCondition(s){const c=[];if(s.after&&c.push(`now().strftime('%H:%M:%S') >= '${s.after}'`),s.before&&c.push(`now().strftime('%H:%M:%S') < '${s.before}'`),s.weekday&&s.weekday.length>0){const d=s.weekday.map(g=>`'${g}'`).join(", ");c.push(`now().strftime('%a').lower()[:3] in [${d}]`)}return c.length>0?c.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 c={id:"nested",type:"condition",position:{x:0,y:0},data:s};return this.buildConditionTemplate(c)}detectPotentialInfiniteLoop(s,c){return c.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 K7t(n){return n==="true"?0:n==="false"?2:1}function MQn(n){const i=[],s=new Set,c=n.nodes.filter(w=>w.type==="trigger");for(const w of c)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,_)=>K7t(S.sourceHandle)-K7t(_.sourceHandle));for(const S of E)b(S.target)};for(const w of c)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 OM{constructor(){Zf(this,"strategies",[new LQn,new W7t])}validate(i){return CJn(i)}analyzeTopology(i){return TJn(i)}transpile(i,s={}){const c=[],d=this.validate(i);if(!d.success||!d.graph)return{success:!1,errors:d.errors.map(A=>A.message),warnings:c};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:c};w=A,w.canHandle(b)||c.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 W7t}const E=w.generate(g,b);c.push(...E.warnings);const S=E.automation??E.script;let _;if(S&&typeof S=="object"){const A=this.generateCafeMetadata(g,w),C={...S,variables:{...g.userVariables||{},...S.variables||{},_cafe_metadata:A}};_=wse(C,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1})}else _=wse(S,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1});return{success:!0,yaml:_,output:E,analysis:b,warnings:c}}toYaml(i,s={}){var d;const c=this.transpile(i,s);if(!c.success)throw new Error(`Transpilation failed: ${(d=c.errors)==null?void 0:d.join(", ")}`);return c.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 DQn().parse(i)}getStrategies(){return this.strategies.map(i=>({name:i.name,description:i.description}))}addStrategy(i){this.strategies.unshift(i)}generateCafeMetadata(i,s){const c={},d=new Map(i.nodes.map(g=>[g.id,g]));for(const g of MQn(i)){const b=d.get(g);b&&(c[b.id]={x:b.position.x,y:b.position.y})}return{version:1,nodes:c,graph_id:i.id,graph_version:i.version,strategy:s.name}}}const KDe=new OM,Y7t=n=>{let i;const s=new Set,c=(S,_)=>{const A=typeof S=="function"?S(i):S;if(!Object.is(A,i)){const C=i;i=_??(typeof A!="object"||A===null)?A:Object.assign({},i,A),s.forEach(O=>O(i,C))}},d=()=>i,w={setState:c,getState:d,getInitialState:()=>E,subscribe:S=>(s.add(S),()=>s.delete(S))},E=i=n(c,d,w);return w},dKt=n=>n?Y7t(n):Y7t,PQn=n=>n;function fKt(n,i=PQn){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 jQn=n=>{const i=dKt(n),s=c=>fKt(i,c);return Object.assign(s,i),s},FQn=n=>jQn;var J7t=(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(),_=g().pastStates.splice(-b,b),A=_.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,_.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(),_=g().futureStates.splice(-b,b),A=_.shift();n(A),d({pastStates:g().pastStates.concat(((E=s==null?void 0:s.diff)==null?void 0:E.call(s,S,A))||S,_.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 _,A;s!=null&&s.limit&&g().pastStates.length>=(s==null?void 0:s.limit)&&g().pastStates.shift(),(A=(_=g())._onSave)==null||A.call(_,b,E),d({pastStates:g().pastStates.concat(S||b),futureStates:[]})}}),$Qn=(n,i)=>(c,d,g)=>{var S,_;g.temporal=dKt(((S=i==null?void 0:i.wrapTemporal)==null?void 0:S.call(i,J7t(c,d,i)))||J7t(c,d,i));const b=((_=i==null?void 0:i.handleSet)==null?void 0:_.call(i,g.temporal.getState()._handleSet))||g.temporal.getState()._handleSet,w=A=>{var L,D,B;if(!g.temporal.getState().isTracking)return;const C=((L=i==null?void 0:i.partialize)==null?void 0:L.call(i,d()))||d(),O=(D=i==null?void 0:i.diff)==null?void 0:D.call(i,A,C);O===null||(B=i==null?void 0:i.equality)!=null&&B.call(i,A,C)||b(A,void 0,C,O)},E=g.setState;return g.setState=(...A)=>{var O;const C=((O=i==null?void 0:i.partialize)==null?void 0:O.call(i,d()))||d();E(...A),w(C)},n((...A)=>{var O;const C=((O=i==null?void 0:i.partialize)==null?void 0:O.call(i,d()))||d();c(...A),w(C)},d,g)};function BQn(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 YDe=n=>i=>{try{const s=n(i);return s instanceof Promise?s:{then(c){return YDe(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return YDe(c)(s)}}}},UQn=(n,i)=>(s,c,d)=>{let g={storage:BQn(()=>localStorage),partialize:D=>D,version:0,merge:(D,B)=>({...B,...D}),...i},b=!1;const w=new Set,E=new Set;let S=g.storage;if(!S)return n((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${g.name}', the given storage is currently unavailable.`),s(...D)},c,d);const _=()=>{const D=g.partialize({...c()});return S.setItem(g.name,{state:D,version:g.version})},A=d.setState;d.setState=(D,B)=>(A(D,B),_());const C=n((...D)=>(s(...D),_()),c,d);d.getInitialState=()=>C;let O;const L=()=>{var D,B;if(!S)return;b=!1,w.forEach(P=>{var j;return P((j=c())!=null?j:C)});const $=((B=g.onRehydrateStorage)==null?void 0:B.call(g,(D=c())!=null?D:C))||void 0;return YDe(S.getItem.bind(S))(g.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==g.version){if(g.migrate){const j=g.migrate(P.state,P.version);return j instanceof Promise?j.then(z=>[!0,z]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var j;const[z,ee]=P;if(O=g.merge(ee,(j=c())!=null?j:C),s(O,!0),z)return _()}).then(()=>{$==null||$(O,void 0),O=c(),b=!0,E.forEach(P=>P(O))}).catch(P=>{$==null||$(void 0,P)})};return d.persist={setOptions:D=>{g={...g,...D},D.storage&&(S=D.storage)},clearStorage:()=>{S==null||S.removeItem(g.name)},getOptions:()=>g,rehydrate:()=>L(),hasHydrated:()=>b,onHydrate:D=>(w.add(D),()=>{w.delete(D)}),onFinishHydration:D=>(E.add(D),()=>{E.delete(D)})},g.skipHydration||L(),O||C},HQn=UQn,X7t=n=>Symbol.iterator in n,Z7t=n=>"entries"in n,Q7t=(n,i)=>{const s=n instanceof Map?n:new Map(n.entries()),c=i instanceof Map?i:new Map(i.entries());if(s.size!==c.size)return!1;for(const[d,g]of s)if(!c.has(d)||!Object.is(g,c.get(d)))return!1;return!0},zQn=(n,i)=>{const s=n[Symbol.iterator](),c=i[Symbol.iterator]();let d=s.next(),g=c.next();for(;!d.done&&!g.done;){if(!Object.is(d.value,g.value))return!1;d=s.next(),g=c.next()}return!!d.done&&!!g.done};function hKt(n,i){return Object.is(n,i)?!0:typeof n!="object"||n===null||typeof i!="object"||i===null||Object.getPrototypeOf(n)!==Object.getPrototypeOf(i)?!1:X7t(n)&&X7t(i)?Z7t(n)&&Z7t(i)?Q7t(n,i):zQn(n,i):Q7t({entries:()=>Object.entries(n)},{entries:()=>Object.entries(i)})}function pKt(n){const i=Hn.useRef(void 0);return s=>{const c=n(s);return hKt(i.current,c)?i.current:i.current=c}}function Mie(n){var i;if(n instanceof Error&&n.message)return n.message;if(typeof n=="string"&&n.trim()!=="")return n;if(n&&typeof n=="object"){const s=n;if(typeof s.message=="string"&&s.message.trim()!=="")return s.message;if(typeof((i=s.body)==null?void 0:i.message)=="string"&&s.body.message.trim()!=="")return s.body.message;if(typeof s.error=="string"&&s.error.trim()!=="")return s.error}return"Unknown error"}class GQn{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,c,d){var g,b;if((g=this.hass)!=null&&g.callService)return await this.hass.callService(i,s,c,d);if((b=this.hass)!=null&&b.connection)return await this.sendMessage({type:"call_service",domain:i,service:s,service_data:c,target:d});throw new Error("No service calling method available")}async executeAction(i){if(!i.service)throw new Error("Action must have a service property");const[s,c]=i.service.split(".");if(!s||!c)throw new Error(`Invalid service format: ${i.service}`);return await this.callService(s,c,i.data,i.target)}async callAPI(i,s,c){var d;if((d=this.hass)!=null&&d.callApi)return await this.hass.callApi(i,s,c);throw new Error("REST API calls not supported in standalone mode")}async fetchRestAPI(i,s="GET",c){var b;if((b=this.hass)!=null&&b.callApi)return await this.hass.callApi(s,i,c);if(!this.baseUrl||!this.token)throw console.error("C.A.F.E.: No authentication configured",{baseUrl:this.baseUrl,hasToken:!!this.token}),new Error("No authentication configured for REST API");const d=`${this.baseUrl}/api/${i}`,g=await fetch(d,{method:s,headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:c?JSON.stringify(c):void 0});if(!g.ok){const w=await g.text();console.error("C.A.F.E.: REST API error response:",w);let E=w.trim();try{const _=JSON.parse(w);_&&typeof _=="object"&&"message"in _&&(E=String(_.message))}catch{}const S=`${g.status} ${g.statusText}`;throw new Error(E?`REST API error: ${S} (${E})`:`REST API error: ${S}`)}return await g.json()}async getAutomationConfigs(){var i;try{if((i=this.hass)!=null&&i.connection)try{const c=await this.sendMessage({type:"config/automation/list"});if(Array.isArray(c))return c}catch(c){console.warn("WebSocket automation list failed, trying alternative:",c)}return this.getAutomations().map(c=>({id:c.entity_id.replace("automation.",""),alias:typeof c.attributes.friendly_name=="string"?c.attributes.friendly_name:c.entity_id,description:typeof c.attributes.description=="string"?c.attributes.description:""}))}catch(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(c){return console.error("C.A.F.E.: Failed to get automation config:",c),null}}async getAutomationConfigFromTrace(i){try{const s=await this.getAutomationTraces(i);if(!s||s.length===0)return null;const c=await this.getAutomationTraceDetails(i,s[0].run_id);return(c==null?void 0:c.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 c=await this.getAutomationConfig(i);return c||(await this.getAutomationConfigFromTrace(i)??null)}catch(c){return console.error("C.A.F.E.: Failed to get automation config with fallback:",c),null}}async createAutomation(i){var s,c;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(_){throw console.error("C.A.F.E.: Failed to save automation config:",_),new Error(Mie(_))}if((s=this.hass)!=null&&s.callService)return await this.hass.callService("automation","reload",{}),d;if((c=this.hass)!=null&&c.connection)return await this.sendMessage({type:"call_service",domain:"automation",service:"reload"}),d;throw new Error("No working Home Assistant connection method found")}catch(d){throw console.error("C.A.F.E.: Failed to create automation:",d),new Error(`Failed to create automation: ${Mie(d)}`)}}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:c,condition:d,action:g,...b}=s,w={...b,id:i,alias:s.alias||`C.A.F.E. Automation ${i}`,description:s.description||"",triggers:c||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(c){throw console.error("C.A.F.E.: Failed to update automation:",c),new Error(`Failed to update automation: ${Mie(c)}`)}}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: ${Mie(s)}`)}}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,c=1;for(;await this.automationExistsByAlias(s);)s=`${i} (${c})`,c++;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 c=s?"turn_on":"turn_off";await this.callService("automation",c,{entity_id:i})}async getAreas(){try{return await this.sendMessage({type:"config/area_registry/list"})}catch(i){return console.error("Failed to get areas:",i),[]}}async getDevices(){try{return await this.sendMessage({type:"config/device_registry/list"})}catch(i){return console.error("Failed to get devices:",i),[]}}async getEntities(){try{return await this.sendMessage({type:"config/entity_registry/list"})}catch(i){return console.error("Failed to get entities:",i),[]}}async getZones(){try{const i=this.getStates();return i?Object.values(i).filter(s=>s.entity_id.startsWith("zone.")).map(s=>{const c=s.entity_id.replace("zone.","");return{entity_id:s.entity_id,zone_id:c,name:typeof s.attributes.friendly_name=="string"?s.attributes.friendly_name:c,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:[],c=new Map;for(const d of s)d.entity_id&&d.area_id&&c.set(d.entity_id,d.area_id);return this.getAutomations().map(d=>{const g=typeof d.attributes.friendly_name=="string"?d.attributes.friendly_name:d.entity_id,b=typeof d.attributes.id=="string"||typeof d.attributes.id=="number"?String(d.attributes.id):d.entity_id.replace("automation.","");return{entity_id:d.entity_id,automation_id:b,friendly_name:g,enabled:d.state==="on",last_triggered:typeof d.attributes.last_triggered=="string"?d.attributes.last_triggered:void 0,description:typeof d.attributes.description=="string"?d.attributes.description:"",mode:typeof d.attributes.mode=="string"?d.attributes.mode:void 0,area_id:c.get(d.entity_id),tags:this.normalizeTags(d.attributes.tags)}})}catch(i){return console.error("Failed to build automation catalog:",i),[]}}async getAutomationConfigsBatch(i,s=4){const c=Array.from(new Set(i.filter(Boolean))),d={};if(c.length===0)return d;const g=[...c],b=Math.max(1,Math.min(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(c){return console.error("Failed to get automation trace details:",c),null}}}let S5=null;function Tw(n,i){return S5?n&&(!S5.hass||!S5.isConnected()||n.states&&Object.keys(n.states).length>0)&&S5.updateHass(n??null,i):S5=new GQn(n,i),S5}class WMe{constructor(i,s,c=1){Zf(this,"dbName");Zf(this,"storeName");Zf(this,"dbVersion");Zf(this,"dbPromise",null);this.dbName=i,this.storeName=s,this.dbVersion=c}async initDB(){return this.dbPromise?this.dbPromise:(this.dbPromise=new Promise((i,s)=>{const c=indexedDB.open(this.dbName,this.dbVersion);c.onerror=d=>{console.error("IndexedDB error:",d),s(new Error("Failed to open IndexedDB database"))},c.onsuccess=d=>{const g=d.target.result;i(g)},c.onupgradeneeded=d=>{const g=d.target.result;g.objectStoreNames.contains(this.storeName)||g.createObjectStore(this.storeName)}}),this.dbPromise)}async getItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readonly").objectStore(this.storeName).get(i);return new Promise((b,w)=>{g.onsuccess=()=>{const E=g.result;b(E??null)},g.onerror=()=>{w(new Error("Failed to get item from IndexedDB"))}})}catch(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(c){throw console.error("IndexedDB setItem error:",c),c}}async removeItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).delete(i);return new Promise((b,w)=>{g.onsuccess=()=>b(),g.onerror=()=>w(new Error("Failed to remove item from IndexedDB"))})}catch(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 c=new WMe(i,s);return{getItem:async d=>{const g=await c.getItem(d);return g?JSON.parse(g):null},setItem:async(d,g)=>{await c.setItem(d,JSON.stringify(g))},removeItem:async d=>{await c.removeItem(d)}}}}const qQn=WMe.createJSONStorage("cafe-flow-storage","flow-store");function VQn(n){if("platform"in n&&!("trigger"in n)){const{platform:i,...s}=n;return{...s,trigger:i}}return n}function qOe(n,i){return n==="trigger"?VQn(i):i}function e$t(n,i){if(n.size===0)return n;const s=new Set(i.map(g=>g.id)),c=[...n.keys()].filter(g=>!s.has(g));if(c.length===0)return n;const d=new Map(n);for(const g of c)d.delete(g);return d}function WQn(n){const i=n.data,c=[i.alias,i.service,i.event,i.trigger,i.condition].find(d=>typeof d=="string"&&d.trim()!=="");return c?`${c} (${n.id})`:n.id}function t$t(n,i,s){if(i.size===0)return;const c=n.filter(S=>i.has(S.id)),d=c[0];d&&s(d.id);const g=c.map(WQn),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 c of n){const d=c.data.id;typeof d!="string"||d.trim()===""||i.set(d,[...i.get(d)??[],c.id])}const s=new Map;for(const[,c]of i)if(!(c.length<2))for(const d of c)s.set(d,{path:["id"],message:"errors:validation.node.duplicateId"});return s}const JDe={mode:"single",initial_state:!0},n$t={flowId:Z5e(),flowName:"Untitled Automation",flowDescription:"",flowMetadata:JDe,userVariables:void 0,userTriggerVariables:void 0,nodes:[],edges:[],selectedNodeId:null,rightPanelExpanded:!1,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},YQn=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}),JQn=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 VOe(){Uk&&(clearTimeout(Uk.timeoutId),Uk=void 0)}const po=FQn()(HQn($Qn((n,i)=>({...n$t,setNodes:s=>n({nodes:s}),setEdges:s=>n({edges:s}),onNodesChange:s=>n(c=>{const d=Gzt(s,c.nodes);return{nodes:d,nodeErrors:e$t(c.nodeErrors,d),hasUnsavedChanges:!0}}),onEdgesChange:s=>n(c=>({edges:qzt(s,c.edges),hasUnsavedChanges:!0})),onConnect:s=>n(c=>({edges:Tzt({...s,id:`e-${s.source}-${s.target}-${Date.now()}`,animated:!1},c.edges),hasUnsavedChanges:!0})),addNode:s=>{const c=s.type?{...s,data:qOe(s.type,s.data)}:s;n(d=>({nodes:[...d.nodes,c],hasUnsavedChanges:!0})),i().validateNode(s.id)},updateNodeData:(s,c)=>{n(d=>({nodes:d.nodes.map(g=>g.id===s?{...g,data:{...g.data,...c}}:g),hasUnsavedChanges:!0})),"id"in c?i().validateAllNodes():i().validateNode(s)},removeNode:s=>n(c=>{const d=c.nodes.filter(g=>g.id!==s);return{nodes:d,edges:c.edges.filter(g=>g.source!==s&&g.target!==s),selectedNodeId:c.selectedNodeId===s?null:c.selectedNodeId,nodeErrors:e$t(c.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=tz("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(_=>_.id===s?{..._,data:{..._.data,continue_on_timeout:!0}}:_),E],edges:[...S.edges.map(_=>_.source===s?{..._,source:b,sourceHandle:"true"}:_),{id:`e-${s}-${b}-${Date.now()}`,source:s,target:b,animated:!1}],hasUnsavedChanges:!0})),i().validateNode(b)},selectNode:s=>n({selectedNodeId:s}),clearCanvasSelection:()=>n(s=>s.selectedNodeId!==null||s.nodes.some(d=>d.selected)||s.edges.some(d=>d.selected)?{selectedNodeId:null,nodes:s.nodes.map(d=>({...d,selected:!1})),edges:s.edges.map(d=>({...d,selected:!1}))}:s),setRightPanelExpanded:s=>n({rightPanelExpanded:s}),toggleRightPanelExpanded:()=>n(s=>({rightPanelExpanded:!s.rightPanelExpanded})),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(c=>({flowMetadata:{...c.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 c=i(),d=Tw(s);n({isSaving:!0});try{i().validateAllNodes();const b=i();t$t(b.nodes,b.nodeErrors,D=>n({selectedNodeId:D}));const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(D=>D.type==="trigger"),S=w.nodes.filter(D=>D.type==="action");if(E.length===0)throw new Error("Automation must have at least one trigger node. Please add a trigger from the node palette.");if(S.length===0)throw new Error("Automation must have at least one action node. Please add an action from the node palette.");const _=new OM,A=_.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(D=>D.message).join(", ")}`);const C=_.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const O={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((D,B)=>(D[B.id]={x:B.position.x,y:B.position.y},D),{}),graph_id:w.id,graph_version:1}}},L=await d.createAutomation(O);return n({automationId:L,isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1}),L}catch(b){throw n({isSaving:!1}),b}},updateAutomation:async s=>{var g;const c=i(),d=Tw(s);if(!c.automationId)throw new Error("No automation ID set. Use saveAutomation() for new automations.");console.log("C.A.F.E.: Updating automation with ID from store:",c.automationId),n({isSaving:!0});try{i().validateAllNodes();const b=i();t$t(b.nodes,b.nodeErrors,L=>n({selectedNodeId:L}));const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(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 _=new OM,A=_.validate(w);if(A.errors.length>0)throw new Error(`Validation failed: ${A.errors.map(L=>L.message).join(", ")}`);const C=_.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const O={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((L,D)=>(L[D.id]={x:D.position.x,y:D.position.y},L),{}),graph_id:w.id,graph_version:1}}};await d.updateAutomation(c.automationId,O),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(c=>({executionPath:[...c.executionPath,s]})),clearExecutionPath:()=>n({executionPath:[]}),showTrace:s=>{const c=[],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,_)=>S.position.y-_.position.y);const w=Object.entries(s.trace).flatMap(([E,S])=>Array.isArray(S)?S.map(_=>({..._,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("/"),_=S[0],A=parseInt(S[1],10),C=b[_]||[];if(C[A]){const O=C[A].id;c.includes(O)||(c.push(O),d[O]=E.timestamp)}}}n({isShowingTrace:!0,traceData:s,traceExecutionPath:c,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 c=i();if(c.isSimulating&&c.executionPath.length>0){const d=c.executionPath.indexOf(s);return d>=0?d+1:null}if(c.isShowingTrace&&c.traceExecutionPath.length>0){const d=c.traceExecutionPath.indexOf(s);return d>=0?d+1:null}return null},canDeleteEdge:()=>!0,toFlowGraph:()=>{const s=i(),c=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=>c.has(d.source)&&c.has(d.target)).map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle,label:typeof d.label=="string"?d.label:void 0})),metadata:s.flowMetadata,version:1,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables}},fromFlowGraph:s=>{const c=s.nodes.map(w=>({id:w.id,type:w.type,position:w.position,data:qOe(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={...JDe,...s.metadata},b=JSON.stringify({flowName:s.name,flowDescription:s.description||"",flowMetadata:g,nodes:c.map(w=>({id:w.id,type:w.type,position:w.position,data:w.data})),edges:d.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle}))});n({flowId:s.id,flowName:s.name,flowDescription:s.description||"",flowMetadata:g,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables,nodes:c,edges:d,selectedNodeId:null,automationId:null,hasUnsavedChanges:!1,lastSaved:null,originalSnapshot:b,nodeErrors:new Map}),i().validateAllNodes(),VOe(),po.temporal.getState().clear()},reset:()=>{n({...n$t,flowId:Z5e(),flowMetadata:{...JDe},originalSnapshot:null,nodeErrors:new Map}),VOe(),po.temporal.getState().clear()},validateNode:s=>{const d=i().nodes.find(b=>b.id===s);if(!d||!d.type)return;const g=z8t(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(),c=new Map;for(const g of s.nodes){if(!g.type)continue;const b=z8t(g.type,g.data);b.length>0&&c.set(g.id,b)}const d=KQn(s.nodes);for(const[g,b]of d)c.set(g,[...c.get(g)??[],b]);n({nodeErrors:c})},clearNodeErrors:s=>{n(c=>{const d=new Map(c.nodeErrors);return d.delete(s),{nodeErrors:d}})},hasValidationErrors:()=>i().nodeErrors.size>0}),{partialize:JQn,limit:100,equality:hKt,handleSet:n=>i=>{const s=i,c=(Uk==null?void 0:Uk.burstStart)??s;VOe(),Uk={timeoutId:setTimeout(()=>{Uk=void 0,n(c)},300),burstStart:c}}}),{name:"cafe-flow-storage",storage:qQn,partialize:YQn,version:1,onRehydrateStorage:()=>n=>{if(n){const i=n.nodes.map(c=>({...c,data:c.type?qOe(c.type,c.data):c.data}));i.some((c,d)=>JSON.stringify(c.data)!==JSON.stringify(n.nodes[d].data))&&(n.nodes=i),n.validateAllNodes()}}})),XDe=[{type:"trigger",labelKey:"nodes:types.trigger",icon:RGt,color:"bg-amber-100 border-amber-400 text-amber-700 hover:bg-amber-200",defaultData:{trigger:"state",entity_id:""}},{type:"condition",labelKey:"nodes:types.condition",icon:G5e,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:Cz,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:H5e,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:AGt,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:CGt,color:"bg-cyan-100 border-cyan-400 text-cyan-700 hover:bg-cyan-200",defaultData:{variables:{}}}];function XQn({iconOnly:n=!1}){const{t:i}=jo(["common","nodes"]),s=po(b=>b.addNode),c=po(b=>b.nodes),d=H.useCallback(b=>{const w=c.length*250+250;s({id:tz(b.type),type:b.type,position:{x:w,y:150},data:{...b.defaultData}})},[s,c.length]),g=H.useCallback((b,w)=>{b.dataTransfer.setData("application/reactflow",JSON.stringify({type:w.type,defaultData:w.defaultData})),b.dataTransfer.effectAllowed="move"},[]);return I.jsx("div",{className:nr("space-y-2 p-4",n&&"p-2"),children:I.jsx("div",{className:nr("space-y-2",n&&"flex flex-col items-center"),children:XDe.map(b=>I.jsxs(mi,{variant:"outline",onClick:()=>d(b),onDragStart:w=>g(w,b),draggable:!0,className:nr(n?"h-12 w-12 justify-center p-0":"h-auto w-full justify-start gap-3 py-3","cursor-grab transition-colors active:cursor-grabbing",b.color),children:[I.jsx(b.icon,{className:"h-4 w-4"}),!n&&I.jsx("span",{className:"font-medium text-sm",children:i(b.labelKey)})]},b.type))})})}function ZQn(n){return n==="forward"?XDe.filter(i=>i.type!=="trigger"):[...XDe]}function QQn(n,i,s,c){return n==="forward"?{source:i,sourceHandle:s,target:c,targetHandle:null}:{source:c,sourceHandle:null,target:i,targetHandle:s}}function eer({position:n,direction:i,onSelect:s,onClose:c}){const{t:d}=jo(["common","nodes"]),g=H.useMemo(()=>n?ZQn(i).map(S=>({config:S,label:d(S.labelKey)})):[],[n,i,d]),{query:b,setQuery:w,filteredItems:E}=gVt(g,{keys:["label"],threshold:.4,ignoreLocation:!0});return I.jsx(dMe,{open:n!==null,onOpenChange:S=>{S||c()},children:n&&I.jsxs(I.Fragment,{children:[I.jsx(rUn,{asChild:!0,children:I.jsx("div",{style:{position:"fixed",left:n.screenX,top:n.screenY,width:0,height:0}})}),I.jsx(_ae,{className:"w-64 p-0",children:I.jsxs(pae,{shouldFilter:!1,children:[I.jsx(gae,{autoFocus:!0,placeholder:d("nodes:quickAdd.searchPlaceholder"),value:b,onValueChange:w}),I.jsxs(bae,{children:[I.jsx(mae,{children:d("combobox.noOptions")}),I.jsx(nz,{children:E.map(S=>I.jsxs(rz,{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 ter=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 ner{constructor(i=ter){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 ner;typeof window<"u"&&(window.cafeLogger=Ef);const rer=1,yse=2,WOe=3,ier=4,oer=5;function ser(n){return{type:"auth",access_token:n}}function aer(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function cer(){return{type:"get_states"}}function uer(){return{type:"get_services"}}function ler(n){const i={type:"subscribe_events"};return n&&(i.event_type=n),i}function r$t(n){return{type:"unsubscribe_events",subscription:n}}function der(){return{type:"ping"}}function fer(n,i){return{type:"result",success:!1,error:{code:n,message:i}}}const her=(n,i,s=!1)=>{let c;return function(...d){const g=this,b=()=>{c=void 0,s||n.apply(g,d)},w=s&&!c;clearTimeout(c),c=setTimeout(b,i),w&&n.apply(g,d)}},gKt=(n,i,s,c)=>{const[d,g,b]=n.split(".",3);return Number(d)>i||Number(d)===i&&(c===void 0?Number(g)>=s:Number(g)>s)||c!==void 0&&Number(d)===i&&Number(g)===s&&Number(b)>=c},per="auth_invalid",ger="auth_ok";function ber(n){if(!n.auth)throw ier;const i=n.auth;let s=i.expired?i.refreshAccessToken().then(()=>{s=void 0},()=>{s=void 0}):void 0;const c=i.wsUrl;function d(g,b,w){const E=new WebSocket(c);let S=!1;const _=()=>{if(E.removeEventListener("close",_),S){w(yse);return}if(g===0){w(rer);return}const O=g===-1?-1:g-1;setTimeout(()=>d(O,b,w),1e3)},A=async O=>{try{i.expired&&await(s||i.refreshAccessToken()),E.send(JSON.stringify(ser(i.accessToken)))}catch(L){S=L===yse,E.close()}},C=async O=>{const L=JSON.parse(O.data);switch(L.type){case per:S=!0,E.close();break;case ger:E.removeEventListener("open",A),E.removeEventListener("message",C),E.removeEventListener("close",_),E.removeEventListener("error",_),E.haVersion=L.ha_version,gKt(E.haVersion,2022,9)&&E.send(JSON.stringify(aer())),b(E);break}};E.addEventListener("open",A),E.addEventListener("message",C),E.addEventListener("close",_),E.addEventListener("error",_)}return new Promise((g,b)=>d(n.setupRetry,g,b))}class mer{constructor(i,s){this._handleMessage=c=>{let d=JSON.parse(c.data);Array.isArray(d)||(d=[d]),d.forEach(g=>{const b=this.commands.get(g.id);switch(g.type){case"event":b?b.callback(g.event):(console.warn(`Received event for unknown subscription ${g.id}. Unsubscribing.`),this.sendMessagePromise(r$t(g.id)).catch(w=>{}));break;case"result":b&&(g.success?(b.resolve(g.result),"subscribe"in b||this.commands.delete(g.id)):(b.reject(g.error),this.commands.delete(g.id)));break;case"pong":b?(b.resolve(),this.commands.delete(g.id)):console.warn(`Received unknown pong response ${g.id}`);break}})},this._handleClose=async()=>{const c=this.commands;if(this.commandId=1,this.oldSubscriptions=this.commands,this.commands=new Map,this.socket=void 0,c.forEach(b=>{"subscribe"in b||b.reject(fer(WOe,"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(WOe)}w===yse?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 c=this._queuedMessages;if(c){this._queuedMessages=void 0;for(const d of c)d.resolve()}this.fireEvent("ready")}addEventListener(i,s){let c=this.eventListeners.get(i);c||(c=[],this.eventListeners.set(i,c)),c.push(s)}removeEventListener(i,s){const c=this.eventListeners.get(i);if(!c)return;const d=c.indexOf(s);d!==-1&&c.splice(d,1)}fireEvent(i,s){(this.eventListeners.get(i)||[]).forEach(c=>c(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,ler(s))}ping(){return this.sendMessagePromise(der())}sendMessage(i,s){if(!this.connected)throw WOe;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,c)=>{if(this._queuedMessages){this._queuedMessages.push({reject:c,resolve:async()=>{try{s(await this.sendMessagePromise(i))}catch(g){c(g)}}});return}const d=this._genCmdId();this.commands.set(d,{resolve:s,reject:c}),this.sendMessage(i,d)})}async subscribeMessage(i,s,c){if(this._queuedMessages&&await new Promise((g,b)=>{this._queuedMessages.push({resolve:g,reject:b})}),c!=null&&c.preCheck&&!await c.preCheck())throw new Error("Pre-check failed");let d;return await new Promise((g,b)=>{const w=this._genCmdId();d={resolve:g,reject:b,callback:i,subscribe:(c==null?void 0:c.resubscribe)!==!1?()=>this.subscribeMessage(i,s,c):void 0,unsubscribe:async()=>{this.connected&&await this.sendMessagePromise(r$t(w)),this.commands.delete(w)}},this.commands.set(w,d);try{this.sendMessage(s,w)}catch{}}),()=>d.unsubscribe()}_genCmdId(){return++this.commandId}}const wer=n=>n*1e3+Date.now();async function yer(n,i,s){const c=typeof location<"u"&&location;if(c&&c.protocol==="https:"){const w=document.createElement("a");if(w.href=n,w.protocol==="http:"&&w.hostname!=="localhost")throw oer}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?yse:new Error("Unable to fetch tokens");const b=await g.json();return b.hassUrl=n,b.clientId=i,b.expires=wer(b.expires_in),b}class ver{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 yer(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 ver({hassUrl:n,clientId:null,expires:Date.now()+1e11,refresh_token:"",access_token:i,expires_in:1e11})}const Ser=n=>{let i=[];function s(d){let g=[];for(let b=0;b{s(d)}}}},Ter=5e3,ZDe=(n,i,s,c,d={unsubGrace:!0})=>{if(n[i])return n[i];let g=0,b,w,E=Ser();const S=()=>{if(!s)throw new Error("Collection does not support refresh");return s(n).then(D=>E.setState(D,!0))},_=()=>S().catch(D=>{if(n.connected)throw D}),A=()=>{if(w!==void 0){clearTimeout(w),w=void 0;return}c&&(b=c(n,E)),s&&(n.addEventListener("ready",_),_()),n.addEventListener("disconnected",L)},C=()=>{w=void 0,b&&b.then(D=>{D()}),E.clearState(),n.removeEventListener("ready",S),n.removeEventListener("disconnected",L)},O=()=>{w=setTimeout(C,Ter)},L=()=>{w&&(clearTimeout(w),C())};return n[i]={get state(){return E.state},refresh:S,subscribe(D){g++,g===1&&A();const B=E.subscribe(D);return E.state!==void 0&&setTimeout(()=>D(E.state),0),()=>{B(),g--,g||(d.unsubGrace?O():C())}}},n[i]},Aer=n=>n.sendMessagePromise(cer()),_er=n=>n.sendMessagePromise(uer());function xer(n,i,s){var c;const d=i.state;if(d===void 0)return;const{domain:g,service:b}=s.data;if(!(!((c=d.domain)===null||c===void 0)&&c.service)){const w=Object.assign(Object.assign({},d[g]),{[b]:{description:"",fields:{}}});i.setState({[g]:w})}Ner(n,i)}function ker(n,i){if(n===void 0)return null;const{domain:s,service:c}=i.data,d=n[s];if(!d||!(c in d))return null;const g={};return Object.keys(d).forEach(b=>{b!==c&&(g[b]=d[b])}),{[s]:g}}const Ner=her((n,i)=>bKt(n).then(s=>i.setState(s,!0)),5e3),bKt=n=>_er(n),Cer=(n,i)=>Promise.all([n.subscribeEvents(s=>xer(n,i,s),"service_registered"),n.subscribeEvents(i.action(ker),"service_removed")]).then(s=>()=>s.forEach(c=>c())),Ier=n=>ZDe(n,"_srv",bKt,Cer),Rer=(n,i)=>Ier(n).subscribe(i);function Oer(n,i){const s=Object.assign({},n.state);if(i.a)for(const c in i.a){const d=i.a[c];let g=new Date(d.lc*1e3).toISOString();s[c]={entity_id:c,state:d.s,attributes:d.a,context:typeof d.c=="string"?{id:d.c,parent_id:null,user_id:null}:d.c,last_changed:g,last_updated:d.lu?new Date(d.lu*1e3).toISOString():g}}if(i.r)for(const c of i.r)delete s[c];if(i.c)for(const c in i.c){let d=s[c];if(!d){console.warn("Received state update for unknown entity",c);continue}d=Object.assign({},d);const{"+":g,"-":b}=i.c[c],w=(g==null?void 0:g.a)||(b==null?void 0:b.a),E=w?Object.assign({},d.attributes):d.attributes;if(g&&(g.s!==void 0&&(d.state=g.s),g.c&&(typeof g.c=="string"?d.context=Object.assign(Object.assign({},d.context),{id:g.c}):d.context=Object.assign(Object.assign({},d.context),g.c)),g.lc?d.last_updated=d.last_changed=new Date(g.lc*1e3).toISOString():g.lu&&(d.last_updated=new Date(g.lu*1e3).toISOString()),g.a&&Object.assign(E,g.a)),b!=null&&b.a)for(const S of b.a)delete E[S];w&&(d.attributes=E),s[c]=d}n.setState(s,!0)}const Der=(n,i)=>n.subscribeMessage(s=>Oer(i,s),{type:"subscribe_entities"});function Ler(n,i){const s=n.state;if(s===void 0)return;const{entity_id:c,new_state:d}=i.data;if(d)n.setState({[d.entity_id]:d});else{const g=Object.assign({},s);delete g[c],n.setState(g,!0)}}async function Mer(n){const i=await Aer(n),s={};for(let c=0;cn.subscribeEvents(s=>Ler(i,s),"state_changed"),jer=n=>gKt(n.haVersion,2022,4,0)?ZDe(n,"_ent",void 0,Der):ZDe(n,"_ent",Mer,Per),Fer=(n,i)=>jer(n).subscribe(i);async function $er(n){const i=Object.assign({setupRetry:0,createSocket:ber},n),s=await i.createSocket(i);return new mer(s,i)}const mKt="cafe_hass_config";function Ber(){try{const n=localStorage.getItem(mKt);if(n)return JSON.parse(n)}catch{}return{url:"",token:""}}function Uer(n){try{localStorage.setItem(mKt,JSON.stringify(n))}catch{}}const wKt=H.createContext(void 0),i$t=({children:n,forceMode:i,externalHass:s})=>{const[c,d]=H.useState(i?Ber():{url:"",token:""}),[g,b]=H.useState([]),[w,E]=H.useState({}),[S,_]=H.useState(new Map),[A,C]=H.useState(new Map),[O,L]=H.useState(new Map),[D,B]=H.useState(!1),[$,P]=H.useState(null),[j,z]=H.useState(null),ee=!!(c.url&&c.token),ne=i==="remote",Q=H.useCallback(We=>{d(We),Uer(We),b([]),E({}),_(new Map),C(new Map),L(new Map),P(null)},[]);H.useEffect(()=>{if(!ne)return;const ut=(async()=>{B(!0),P(null);try{const Be=Eer(c.url,c.token),bt=await $er({auth:Be});z(bt),bt.addEventListener("ready",()=>{P(null),B(!1)}),bt.addEventListener("disconnected",()=>{P("Connection lost")}),bt.addEventListener("reconnect-error",Et=>{console.error("C.A.F.E.: WebSocket reconnection failed:",Et),P("Reconnection failed")});const Nt=Fer(bt,Et=>{const Dt=Object.values(Et).map(Yt=>({entity_id:Yt.entity_id,state:Yt.state,attributes:Yt.attributes||{},last_changed:Yt.last_changed||"",last_updated:Yt.last_updated||"",context:Yt.context}));b(Dt),B(!1)}),pt=Rer(bt,Et=>{E(Et)});return(async()=>{try{const Et=await bt.sendMessagePromise({type:"config/area_registry/list"}),Dt=new Map;for(const Er of Et)Dt.set(Er.area_id,Er);_(Dt);const Yt=await bt.sendMessagePromise({type:"config/device_registry/list"}),Ln=new Map;for(const Er of Yt)Ln.set(Er.id,Er);C(Ln);const Zn=await bt.sendMessagePromise({type:"config/entity_registry/list"}),Yn=new Map;for(const Er of Zn)Yn.set(Er.entity_id,Er);L(Yn)}catch(Et){console.error("C.A.F.E.: Failed to fetch registries:",Et)}})(),()=>{Nt(),pt(),bt.close(),z(null)}}catch(Be){console.error("C.A.F.E.: Failed to establish WebSocket connection:",Be);const bt=Be instanceof Error?Be.message:"Connection failed";P(bt),B(!1)}})();return()=>{ut instanceof Promise&&ut.then(Be=>Be==null?void 0:Be())}},[ne,c.url,c.token]),H.useEffect(()=>{if(!(s!=null&&s.connection))return;(async()=>{try{const ut=await s.connection.sendMessagePromise({type:"config/area_registry/list"}),Be=new Map;for(const Et of ut)Be.set(Et.area_id,Et);_(Be);const bt=await s.connection.sendMessagePromise({type:"config/device_registry/list"}),Nt=new Map;for(const Et of bt)Nt.set(Et.id,Et);C(Nt);const pt=await s.connection.sendMessagePromise({type:"config/entity_registry/list"}),Kt=new Map;for(const Et of pt)Kt.set(Et.entity_id,Et);L(Kt)}catch(ut){console.error("C.A.F.E.: Failed to fetch registries from externalHass:",ut)}})()},[s==null?void 0:s.connection]);const ae=H.useRef({}),he=H.useRef({}),pe=H.useRef({});ae.current=H.useMemo(()=>Object.fromEntries(g.map(We=>[We.entity_id,We])),[g]),he.current=w,pe.current=H.useMemo(()=>Object.fromEntries(A),[A]);const ue=H.useMemo(()=>{if(s)return s;if(j&&ne)return{auth:null,get connected(){return j.connected},config:{},themes:{darkMode:!1},panels:{},selectedTheme:null,panelUrl:"",language:"en",locale:{},selectedLanguage:null,resources:{},get devices(){return pe.current},localize:()=>"",translationMetadata:{fragments:[],translations:{}},dockedSidebar:!1,moreInfoEntityId:"",user:null,fetchWithAuth:async()=>new Response,sendWS:async(...We)=>{j.sendMessage(...We)},callWS:We=>j.sendMessagePromise(We),get states(){return ae.current},get services(){return he.current},connection:j,callApi:async(We,ut,Be)=>{if(!c.url||!c.token)throw new Error("No authentication configured");const bt=`${c.url}/api/${ut}`,Nt=await fetch(bt,{method:We,headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"application/json"},body:Be?JSON.stringify(Be):void 0});if(!Nt.ok){const pt=await Nt.json();throw new Error(`API error: ${pt.message}`)}return await Nt.json()},callService:async(We,ut,Be,bt)=>{if(!j)throw new Error("WebSocket connection not available");return j.sendMessagePromise({type:"call_service",domain:We,service:ut,service_data:Be||{},...bt&&{target:bt}})}}},[s,ne,j,c.url,c.token]),fe=H.useMemo(()=>ne?g:Object.values((ue==null?void 0:ue.states)??{}),[ne,g,ue==null?void 0:ue.states]),K=H.useMemo(()=>ne?w:(ue==null?void 0:ue.services)??{},[ne,w,ue==null?void 0:ue.services]),ge=H.useCallback(We=>fe.filter(ut=>ut.entity_id.startsWith(`${We}.`)),[fe]),De=H.useCallback(()=>{const We=[];for(const[ut,Be]of Object.entries(K))for(const[bt,Nt]of Object.entries(Be))We.push({domain:ut,service:bt,definition:Nt});return We},[K]),Se=H.useCallback(We=>{var bt;if(!We||!We.includes("."))return null;const[ut,Be]=We.split(".");return((bt=K[ut])==null?void 0:bt[Be])||null},[K]),Re=H.useCallback(We=>{const ut=O.get(We);if(!(ut!=null&&ut.device_id))return null;const Be=A.get(ut.device_id);return Be&&(Be.name_by_user||Be.name)||null},[O,A]),Ae=H.useCallback(We=>{var bt,Nt;const ut=O.get(We),Be=(ut==null?void 0:ut.area_id)??(ut!=null&&ut.device_id?(bt=A.get(ut.device_id))==null?void 0:bt.area_id:null);return Be?((Nt=S.get(Be))==null?void 0:Nt.name)??null:null},[O,A,S]),xe={hass:ue,isRemote:ne,isLoading:ne&&ee?D:!1,connectionError:ne?$:null,entities:fe,services:K,config:c,setConfig:Q,getEntitiesByDomain:ge,getAllServices:De,getServiceDefinition:Se,getDeviceNameForEntity:Re,getAreaNameForEntity:Ae};return I.jsx(wKt.Provider,{value:xe,children:n})};function Wg(){const n=H.useContext(wKt);if(n===void 0)throw new Error("useHass must be used within a HassProvider");return n}function qae(){var c;const{hass:n}=Wg(),[i,s]=H.useState(((c=n==null?void 0:n.themes)==null?void 0:c.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 Her({id:n,sourceX:i,sourceY:s,targetX:c,targetY:d,sourcePosition:g,targetPosition:b,style:w,markerEnd:E,selected:S}){const{t:_}=jo(["common"]),{setEdges:A}=kR(),C=po(K=>K.setUnsavedChanges),O=po(K=>K.canDeleteEdge),L=qae(),D=c{K.stopPropagation(),ae&&(A(ge=>ge.filter(De=>De.id!==n)),C(!0))},ue=S?{...w,stroke:"#3b82f6",strokeWidth:3}:w??{},fe=ue&&typeof ue=="object"&&"stroke"in ue&&typeof ue.stroke=="string"?ue.stroke:L?"#94a3b8":"#64748b";return I.jsxs(I.Fragment,{children:[I.jsx(Nz,{id:n,path:P,style:ue,markerEnd:E}),D&&ee!==0&&I.jsx(N9t,{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:_("shortcuts.arrowLeft")}),I.jsx("polygon",{points:"15,5 6,10 15,15",fill:fe})]})})}),S&&ae&&I.jsx(N9t,{children:I.jsx("div",{className:"nodrag nopan pointer-events-auto absolute",style:{transform:`translate(-50%, -50%) translate(${j}px, ${z}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:_("buttons.deleteConnection"),"aria-label":_("buttons.deleteConnection"),type:"button",children:I.jsx(aae,{className:"h-3.5 w-3.5"})})})})]})}function gb(n){const i=po(c=>c.nodeErrors.get(n));return H.useMemo(()=>{const c=i??[],d=b=>{const w=c.find(E=>E.path.includes(b));return w==null?void 0:w.message},g=()=>{const b=c.find(w=>w.path.includes("_root")||w.path.length===0);return b==null?void 0:b.message};return{hasErrors:c.length>0,errors:c,errorMessages:c.map(b=>b.message),getFieldError:d,getRootError:g}},[i])}const zer=H.memo(function({id:i,data:s,selected:c}){var z;const{t:d}=jo(["nodes"]),g=po(ee=>ee.activeNodeId),b=po(ee=>ee.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,_=b(i),A=s.enabled===!1,C=typeof s.stop=="string",O=C?s.stop:void 0,L=C&&s.error===!0;let D,B;!C&&typeof s.service=="string"&&s.service.includes(".")&&([D,B]=s.service.split("."));const $=!C&&typeof s.event=="string"&&s.event.trim()!=="",P=(z=s.target)==null?void 0:z.entity_id,j=C||!s.target?null:Array.isArray(P)?`${P.length} entities selected`:P;return C?I.jsxs("div",{className:nr("relative min-w-[180px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-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(kw,{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(gPn,{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")}),_&&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:_})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[I.jsx("div",{className:"font-medium opacity-70",children:d(L?"nodes:actions.stopError":"nodes:actions.stopExecution")}),O&&I.jsx("div",{className:"truncate opacity-75 italic",children:O})]})]}):I.jsxs("div",{className:nr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",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(kw,{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(Cz,{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"}),_&&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:_})]}),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:[D,"."]}),B]})}),j&&I.jsx("div",{className:"truncate opacity-75",children:j})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),Ger=H.memo(function({id:i,data:s,selected:c}){const d=po(C=>C.activeNodeId),g=po(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),_=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:nr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",_&&"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(kw,{className:"h-3 w-3"})}),_&&!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(G5e,{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:eoe("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:eoe("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:eoe("nodes:conditions.no")})]})});function yKt(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 qer=H.memo(function({id:i,data:s,selected:c}){const d=po(C=>C.activeNodeId),g=po(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),_=s.enabled===!1,A=yKt(s.delay);return I.jsxs("div",{className:nr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",_&&"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(kw,{className:"h-3 w-3"})}),_&&!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(H5e,{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"})]})}),Ver=H.memo(function({id:i,data:s,selected:c}){const d=po(C=>C.activeNodeId),g=po(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),_=s.enabled===!1,A=Object.keys(s.variables||{}).length;return I.jsxs("div",{className:nr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",_&&"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(kw,{className:"h-3 w-3"})}),_&&!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(CGt,{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:eoe("nodes:variables.variableCount",{count:A})})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),Wer=H.memo(function({id:i,data:s,selected:c}){const d=po(L=>L.activeNodeId),g=po(L=>L.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),_=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"},O=(()=>{const L=s.trigger;switch(L){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[L],detail:s.event_type||null};case"time":return{title:s.alias||"Time",subtitle:A[L],detail:s.at||null};case"sun":return{title:s.alias||"Sun",subtitle:A[L],detail:s.event?`${s.event}${s.offset?` ${s.offset}`:""}`:null};case"mqtt":return{title:s.alias||"MQTT",subtitle:A[L],detail:s.topic||null};case"webhook":return{title:s.alias||"Webhook",subtitle:A[L],detail:s.webhook_id||null};case"zone":return{title:s.alias||"Zone",subtitle:A[L],detail:s.zone||(Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id)||null};default:return{title:s.alias||A[L]||"Trigger",subtitle:A[L]||L,detail:null}}})();return I.jsxs("div",{className:nr("relative min-w-[180px] max-w-[300px] rounded-lg border-2 border-amber-400 bg-amber-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",_&&"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(kw,{className:"h-3 w-3"})}),_&&!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(RGt,{className:"h-4 w-4 text-amber-700"})}),I.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:O.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:O.subtitle}),O.detail&&I.jsx("div",{className:"truncate opacity-75",children:String(O.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:c}){const{t:d}=jo(["common","nodes"]),g=po(O=>O.activeNodeId),b=po(O=>O.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,_=b(i),A=s.enabled===!1,C=yKt(s.timeout);return I.jsxs("div",{className:nr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",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(kw,{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(AGt,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||"Wait for"}),_&&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:_})]}),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 Yer=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jer=Yer.reduce((n,i)=>{const s=fae(`Primitive.${i}`),c=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 c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),Xer="Separator",o$t="horizontal",Zer=["horizontal","vertical"],vKt=H.forwardRef((n,i)=>{const{decorative:s,orientation:c=o$t,...d}=n,g=Qer(c)?c:o$t,w=s?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return I.jsx(Jer.div,{"data-orientation":g,...w,...d,ref:i})});vKt.displayName=Xer;function Qer(n){return Zer.includes(n)}var EKt=vKt;const $z=H.forwardRef(({className:n,orientation:i="horizontal",decorative:s=!0,...c},d)=>I.jsx(EKt,{ref:d,decorative:s,orientation:i,className:nr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...c}));$z.displayName=EKt.displayName;function etr(){const{undo:n,redo:i,canUndo:s,canRedo:c}=fKt(po.temporal,pKt(b=>({undo:b.undo,redo:b.redo,canUndo:b.pastStates.length>0,canRedo:b.futureStates.length>0}))),d=H.useCallback(()=>{n(),po.getState().validateAllNodes()},[n]),g=H.useCallback(()=>{i(),po.getState().validateAllNodes()},[i]);return{undo:d,redo:g,canUndo:s,canRedo:c}}function KMe(){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 ttr(n){return{name:"align-bottom",icon:c8n,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))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s-(g.height||0)}}:g);i.setNodes(d)}}}function ntr(n){return{name:"align-left",icon:p8n,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)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s}}:g);i.setNodes(d)}}}function rtr(n){return{name:"align-right",icon:l8n,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))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s-(g.width||0)}}:g);i.setNodes(d)}}}function itr(n){return{name:"align-top",icon:f8n,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)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s}}:g);i.setNodes(d)}}}function SKt(n){const i=n.selectedNodes.map(c=>c.id),s=n.edges.filter(c=>i.includes(c.source)&&i.includes(c.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:s})),n.setPasteCount(0)}function TKt(n,i,s){const c=(s.pasteCount||0)+1;s.setPasteCount(c);const d=50*c,g=new Map,b=s.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=tz(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 otr(n){return{name:"copy",icon:z5e,tooltip:n("toolbar.copy"),shortcut:"ctrl+c",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{SKt(i),bw.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} copied`)}}}function str(n){return{name:"cut",icon:RPn,tooltip:n("toolbar.cut"),shortcut:"ctrl+x",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const s=i.selectedNodes.length;SKt(i),i.selectedNodes.forEach(c=>{i.removeNode(c.id)}),bw.success(`${s} node${s!==1?"s":""} cut`)}}}function atr(n){return{name:"delete",icon:jM,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 ctr(n){return{name:"disconnect",icon:HPn,tooltip:n("toolbar.disconnect"),shortcut:"ctrl+shift+d",group:"edit",isEnabled:i=>{if(i.selectedNodes.length===0)return!1;const s=i.selectedNodes.map(c=>c.id);return i.edges.some(c=>s.includes(c.source)||s.includes(c.target))},execute:i=>{const s=i.selectedNodes.map(d=>d.id),c=i.edges.filter(d=>!s.includes(d.source)&&!s.includes(d.target));i.setEdges(c)}}}function utr(n){return{name:"duplicate",icon:z8n,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),c=i.edges.filter(d=>s.includes(d.source)&&s.includes(d.target));TKt(i.selectedNodes,c,i),bw.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} duplicated`)}}}function ltr(n){return{name:"paste",icon:B8n,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),c=s.nodes||[],d=s.edges||[];if(!Array.isArray(c)||c.length===0)return;TKt(c,d,i)}catch(s){console.warn("Invalid clipboard data, cannot paste.",s)}}}}function dtr(n){return{name:"redo",icon:kPn,tooltip:n("toolbar.redo"),shortcut:["ctrl+shift+z","ctrl+y"],group:"history",isEnabled:i=>i.canRedo,execute:i=>i.redo()}}function ftr(n){return{name:"run",icon:Cz,tooltip:n("toolbar.runAction"),group:"node-specific",shortcut:"ctrl+enter",isEnabled:i=>i.selectedNodes.length>0&&i.selectedNodes.every(s=>s.type==="action"),execute:async i=>{for(const s of i.selectedNodes){if(s.type!=="action")continue;const c=s.data;if(!c.service){console.warn(`Action node ${s.id} has no service defined`);continue}try{await Tw(i.hass,i.hassConfig).executeAction({service:c.service,data:c.data,target:c.target}),bw.success(n("toolbar.runActionSuccess",{service:c.service}))}catch(d){bw.error(n("toolbar.runActionFailed",{service:c.service,message:d instanceof Error?d.message:String(d)}))}}}}}function htr(n){return{name:"selectAll",icon:hPn,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 c=i.edges.map(d=>({...d,selected:!0}));i.setEdges(c)}}}function ptr(n){return{name:"toggle-enabled",icon:R9t,getIcon:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return s?P8n:c?iN:R9t},tooltip:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return n(s?"toolbar.enable":c?"toolbar.disable":"toolbar.toggleEnabled")},shortcut:"ctrl+e",group:"edit",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(s=>{const c=s.data.enabled!==!1;i.updateNodeData(s.id,{enabled:!c})})}}}function gtr(n){return{name:"undo",icon:BPn,tooltip:n("toolbar.undo"),shortcut:"ctrl+z",group:"history",isEnabled:i=>i.canUndo,execute:i=>i.undo()}}function btr(n,i){const s=KMe();return n.split("+").map(c=>c==="ctrl"?i(s?"shortcuts.cmd":"shortcuts.ctrl"):c==="shift"?i("shortcuts.shift"):c==="alt"?i("shortcuts.alt"):c==="arrowup"?i("shortcuts.arrowUp"):c==="arrowdown"?i("shortcuts.arrowDown"):c==="arrowleft"?i("shortcuts.arrowLeft"):c==="arrowright"?i("shortcuts.arrowRight"):c.charAt(0).toUpperCase()+c.slice(1)).join("+")}const KOe=["history","node-specific","selection","clipboard","edit","align","delete"];function mtr(){var ae;const{t:n}=jo(),{hass:i,config:s}=Wg(),{nodes:c,edges:d,clipboard:g,pasteCount:b,addNode:w,removeNode:E,updateNodeData:S,setNodes:_,setEdges:A,setClipboard:C,setPasteCount:O}=po(pKt(he=>({nodes:he.nodes,edges:he.edges,clipboard:he.clipboard,pasteCount:he.pasteCount,addNode:he.addNode,removeNode:he.removeNode,updateNodeData:he.updateNodeData,setNodes:he.setNodes,setEdges:he.setEdges,setClipboard:he.setClipboard,setPasteCount:he.setPasteCount}))),{undo:L,redo:D,canUndo:B,canRedo:$}=etr(),P=H.useMemo(()=>({selectedNodes:c.filter(he=>he.selected),nodes:c,edges:d,clipboard:g,pasteCount:b,hass:i,hassConfig:s,addNode:w,removeNode:E,updateNodeData:S,setNodes:_,setEdges:A,setClipboard:C,setPasteCount:O,undo:L,redo:D,canUndo:B,canRedo:$}),[c,d,g,b,i,s,w,E,S,_,A,C,O,L,D,B,$]),j=H.useMemo(()=>[gtr(n),dtr(n),ftr(n),utr(n),otr(n),str(n),ltr(n),ntr(n),rtr(n),itr(n),ttr(n),ctr(n),htr(n),ptr(n),atr(n)],[n]),z=j.length>0;H.useEffect(()=>{if(!z)return;const he=pe=>{const ue=pe.target;if(ue.tagName==="INPUT"||ue.tagName==="TEXTAREA"||ue.isContentEditable)return;const K=KMe()?pe.metaKey:pe.ctrlKey;let ge="";K&&(ge+="ctrl+"),pe.shiftKey&&(ge+="shift+"),pe.altKey&&(ge+="alt+"),ge+=pe.key.toLowerCase();const De=j.find(Se=>!Se.shortcut||!(Array.isArray(Se.shortcut)?Se.shortcut:[Se.shortcut]).includes(ge)?!1:Se.isEnabled?Se.isEnabled(P):!0);De&&(pe.preventDefault(),De.execute(P))};return window.addEventListener("keydown",he),()=>window.removeEventListener("keydown",he)},[z,j,P]);const ee=H.useMemo(()=>{const he={};for(const pe of j){const ue=pe.group||"node-specific";he[ue]||(he[ue]=[]),he[ue].push(pe)}return he},[j]);if(!z)return null;let ne=0;try{g&&(ne=((ae=JSON.parse(g).nodes)==null?void 0:ae.length)||0)}catch{}const Q=he=>!he||he.length===0?null:he.map(pe=>{const ue=pe.getIcon?pe.getIcon(P):pe.icon,fe=typeof pe.tooltip=="function"?pe.tooltip(P):pe.tooltip,K=pe.isEnabled?pe.isEnabled(P):!0,ge=pe.name==="paste";return I.jsxs(mi,{variant:"ghost",size:"icon",disabled:!K,className:nr("relative h-8 w-8 shrink-0","sm:h-9 sm:w-9",pe.variant==="destructive"&&"text-destructive hover:bg-destructive/10 hover:text-destructive"),title:pe.shortcut?`${fe} (${btr(Array.isArray(pe.shortcut)?pe.shortcut[0]:pe.shortcut,n)})`:fe,onClick:()=>pe.execute(P),children:[I.jsx(ue,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),ge&&ne>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:ne})]},pe.name)});return I.jsx(gR,{position:"top-center",className:"!m-0 !p-0 max-w-[calc(100%-0.5rem)] sm:max-w-[calc(100%-2rem)]",children:I.jsx("div",{className:nr("ml-6 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:ml-4 sm:gap-1 sm:px-2 sm:py-1.5 lg:ml-0","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:KOe.map((he,pe)=>{var fe;const ue=ee[he];return!ue||ue.length===0?null:I.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[Q(ue),pe0&&I.jsx($z,{orientation:"vertical",className:"mx-0.5 h-6 sm:mx-1"})]},he)})})})})}const wtr={trigger:Wer,condition:Ger,action:zer,delay:qer,wait:Ker,set_variables:Ver},ytr={deletable:Her};function vtr(){const{t:n}=jo(["common","debug"]),i=qae(),{nodes:s,edges:c,onNodesChange:d,onEdgesChange:g,onConnect:b,selectNode:w,addNode:E,selectedNodeId:S,isSimulating:_,executionPath:A,isShowingTrace:C,traceExecutionPath:O,canDeleteEdge:L}=po(),D=H.useRef(null),{screenToFlowPosition:B,setViewport:$}=kR(),[P,j]=H.useState(null),z=H.useCallback((fe,K)=>{var Re;if(K.toNode||!K.fromHandle||!K.fromNode)return;const ge=fe.target;if(!((Re=ge==null?void 0:ge.closest)!=null&&Re.call(ge,".react-flow__pane")))return;const De="changedTouches"in fe?fe.changedTouches[0]:fe;if(!De)return;const Se=B({x:De.clientX,y:De.clientY});j({screenPosition:{screenX:De.clientX,screenY:De.clientY},flowPosition:Se,fromNodeId:K.fromHandle.nodeId,fromHandleId:K.fromHandle.id??null,direction:K.fromHandle.type==="source"?"forward":"backward"})},[B]),ee=H.useCallback(()=>j(null),[]),ne=H.useCallback(fe=>{if(!P)return;const De={id:tz(fe.type),type:fe.type,position:{x:P.flowPosition.x-180/2,y:P.flowPosition.y-80/2},data:{...fe.defaultData}};E(De),b(QQn(P.direction,P.fromNodeId,P.fromHandleId,De.id)),j(null)},[P,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]),ae=H.useCallback(fe=>{fe.preventDefault(),fe.dataTransfer.dropEffect="move"},[]),he=H.useCallback(async({nodes:fe,edges:K})=>{const ge=K.filter(De=>L(De.id));return{nodes:fe,edges:ge}},[L]),pe=H.useCallback(fe=>{fe.preventDefault();const K=fe.dataTransfer.getData("application/reactflow");if(K)try{const{type:ge,defaultData:De}=JSON.parse(K),Se=B({x:fe.clientX,y:fe.clientY}),xe={x:Se.x-180/2,y:Se.y-80/2},We={id:tz(ge),type:ge,position:xe,data:{...De}};E(We)}catch(ge){console.error("Failed to parse dropped node data:",ge)}},[B,E]),ue=H.useMemo(()=>c.map(fe=>{const K=A.indexOf(fe.source),ge=A.indexOf(fe.target),De=_&&A.length>=2&&K!==-1&&ge!==-1&&ge===K+1,Se=O.indexOf(fe.source),Re=O.indexOf(fe.target),Ae=C&&O.length>=2&&Se!==-1&&Re!==-1&&Re===Se+1,xe=S&&(fe.source===S||fe.target===S);let We={strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},ut={type:sA.ArrowClosed,color:i?"#94a3b8":"#64748b"};return De?(We={stroke:"#22c55e",strokeWidth:3},ut={type:sA.ArrowClosed,color:"#22c55e"}):Ae?(We={stroke:"#f59e0b",strokeWidth:3},ut={type:sA.ArrowClosed,color:"#f59e0b"}):xe&&(We={stroke:"#3b82f6",strokeWidth:3},ut={type:sA.ArrowClosed,color:"#3b82f6"}),{...fe,type:"deletable",animated:De||Ae,style:We,markerEnd:ut}}),[c,_,A,C,O,S,i]);return I.jsxs("div",{className:"h-full w-full",ref:D,children:[I.jsxs(x9n,{colorMode:i?"dark":"light",nodes:s,edges:ue,onNodesChange:d,onEdgesChange:g,onConnect:b,onConnectEnd:z,onBeforeDelete:he,onSelectionChange:Q,onDragOver:ae,onDrop:pe,panOnScroll:KMe(),nodeTypes:wtr,edgeTypes:ytr,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(O9n,{variant:pA.Dots,gap:20,size:1,color:i?"#475569":"#cbd5e1"}),I.jsx($9n,{}),I.jsx(Z9n,{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(mtr,{}),_&&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&&!_&&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:O.length})]})})]}),I.jsx(eer,{position:(P==null?void 0:P.screenPosition)??null,direction:(P==null?void 0:P.direction)??"forward",onSelect:ne,onClose:ee})]})}const Etr=xae("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 YMe({className:n,variant:i,...s}){return I.jsx("div",{className:nr(Etr({variant:i}),n),...s})}function Vae(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 Wae="Checkbox",[Str]=Nw(Wae),[Ttr,JMe]=Str(Wae);function Atr(n){const{__scopeCheckbox:i,checked:s,children:c,defaultChecked:d,disabled:g,form:b,name:w,onCheckedChange:E,required:S,value:_="on",internal_do_not_use_render:A}=n,[C,O]=G2({prop:s,defaultProp:d??!1,onChange:E,caller:Wae}),[L,D]=H.useState(null),[B,$]=H.useState(null),P=H.useRef(!1),j=L?!!b||!!L.closest("form"):!0,z={checked:C,disabled:g,setChecked:O,control:L,setControl:D,name:w,form:b,value:_,hasConsumerStoppedPropagationRef:P,required:S,defaultChecked:tN(d)?!1:d,isFormControl:j,bubbleInput:B,setBubbleInput:$};return I.jsx(Ttr,{scope:i,...z,children:_tr(A)?A(z):c})}var AKt="CheckboxTrigger",_Kt=H.forwardRef(({__scopeCheckbox:n,onKeyDown:i,onClick:s,...c},d)=>{const{control:g,value:b,disabled:w,checked:E,required:S,setControl:_,setChecked:A,hasConsumerStoppedPropagationRef:C,isFormControl:O,bubbleInput:L}=JMe(AKt,n),D=ps(d,_),B=H.useRef(E);return H.useEffect(()=>{const $=g==null?void 0:g.form;if($){const P=()=>A(B.current);return $.addEventListener("reset",P),()=>$.removeEventListener("reset",P)}},[g,A]),I.jsx(no.button,{type:"button",role:"checkbox","aria-checked":tN(E)?"mixed":E,"aria-required":S,"data-state":IKt(E),"data-disabled":w?"":void 0,disabled:w,value:b,...c,ref:D,onKeyDown:Dr(i,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:Dr(s,$=>{A(P=>tN(P)?!0:!P),L&&O&&(C.current=$.isPropagationStopped(),C.current||$.stopPropagation())})})});_Kt.displayName=AKt;var XMe=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E,onCheckedChange:S,form:_,...A}=n;return I.jsx(Atr,{__scopeCheckbox:s,checked:d,defaultChecked:g,disabled:w,required:b,onCheckedChange:S,name:c,form:_,value:E,internal_do_not_use_render:({isFormControl:C})=>I.jsxs(I.Fragment,{children:[I.jsx(_Kt,{...A,ref:i,__scopeCheckbox:s}),C&&I.jsx(CKt,{__scopeCheckbox:s})]})})});XMe.displayName=Wae;var xKt="CheckboxIndicator",kKt=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,forceMount:c,...d}=n,g=JMe(xKt,s);return I.jsx(Cw,{present:c||tN(g.checked)||g.checked===!0,children:I.jsx(no.span,{"data-state":IKt(g.checked),"data-disabled":g.disabled?"":void 0,...d,ref:i,style:{pointerEvents:"none",...n.style}})})});kKt.displayName=xKt;var NKt="CheckboxBubbleInput",CKt=H.forwardRef(({__scopeCheckbox:n,...i},s)=>{const{control:c,hasConsumerStoppedPropagationRef:d,checked:g,defaultChecked:b,required:w,disabled:E,name:S,value:_,form:A,bubbleInput:C,setBubbleInput:O}=JMe(NKt,n),L=ps(s,O),D=Vae(g),B=Sae(c);H.useEffect(()=>{const P=C;if(!P)return;const j=window.HTMLInputElement.prototype,ee=Object.getOwnPropertyDescriptor(j,"checked").set,ne=!d.current;if(D!==g&&ee){const Q=new Event("click",{bubbles:ne});P.indeterminate=tN(g),ee.call(P,tN(g)?!1:g),P.dispatchEvent(Q)}},[C,D,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:_,form:A,...i,tabIndex:-1,ref:L,style:{...i.style,...B,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});CKt.displayName=NKt;function _tr(n){return typeof n=="function"}function tN(n){return n==="indeterminate"}function IKt(n){return tN(n)?"indeterminate":n?"checked":"unchecked"}const QDe=H.forwardRef(({className:n,...i},s)=>I.jsx(XMe,{ref:s,className:nr("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(kKt,{className:nr("grid place-content-center text-current"),children:I.jsx(oN,{className:"h-4 w-4"})})}));QDe.displayName=XMe.displayName;const Na=H.forwardRef(({className:n,type:i,...s},c)=>I.jsx("input",{type:i,autoComplete:"off",className:nr("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:c,...s}));Na.displayName="Input";var Kae="Switch",[xtr]=Nw(Kae),[ktr,Ntr]=xtr(Kae),RKt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E="on",onCheckedChange:S,form:_,...A}=n,[C,O]=H.useState(null),L=ps(i,j=>O(j)),D=H.useRef(!1),B=C?_||!!C.closest("form"):!0,[$,P]=G2({prop:d,defaultProp:g??!1,onChange:S,caller:Kae});return I.jsxs(ktr,{scope:s,checked:$,disabled:w,children:[I.jsx(no.button,{type:"button",role:"switch","aria-checked":$,"aria-required":b,"data-state":MKt($),"data-disabled":w?"":void 0,disabled:w,value:E,...A,ref:L,onClick:Dr(n.onClick,j=>{P(z=>!z),B&&(D.current=j.isPropagationStopped(),D.current||j.stopPropagation())})}),B&&I.jsx(LKt,{control:C,bubbles:!D.current,name:c,value:E,checked:$,required:b,disabled:w,form:_,style:{transform:"translateX(-100%)"}})]})});RKt.displayName=Kae;var OKt="SwitchThumb",DKt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,...c}=n,d=Ntr(OKt,s);return I.jsx(no.span,{"data-state":MKt(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:i})});DKt.displayName=OKt;var Ctr="SwitchBubbleInput",LKt=H.forwardRef(({__scopeSwitch:n,control:i,checked:s,bubbles:c=!0,...d},g)=>{const b=H.useRef(null),w=ps(b,g),E=Vae(s),S=Sae(i);return H.useEffect(()=>{const _=b.current;if(!_)return;const A=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(A,"checked").set;if(E!==s&&O){const L=new Event("click",{bubbles:c});O.call(_,s),_.dispatchEvent(L)}},[E,s,c]),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}})});LKt.displayName=Ctr;function MKt(n){return n?"checked":"unchecked"}var PKt=RKt,Itr=DKt;const J2=H.forwardRef(({className:n,...i},s)=>I.jsx(PKt,{className:nr("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(Itr,{className:nr("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=PKt.displayName;function Rtr(n){return Array.isArray(n)?n.filter(i=>typeof i=="string"):typeof n=="string"&&n.trim()?[n]:[]}function Otr(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,c=typeof n.attributes.id=="string"||typeof n.attributes.id=="number"?String(n.attributes.id):n.entity_id.replace("automation.","");return{entity_id:n.entity_id,automation_id:c,friendly_name: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:Rtr(n.attributes.tags)}}function Dtr(n){return[n.entity_id,n.friendly_name,n.description,n.mode||"",n.tags.join(" ")].filter(Boolean).join(" ")}function Ltr(n,i,s){return i?[...n].sort((c,d)=>{let g=0;switch(i){case"name":{g=c.friendly_name.toLowerCase().localeCompare(d.friendly_name.toLowerCase());break}case"lastTriggered":{const b=c.last_triggered?new Date(c.last_triggered).getTime():0,w=d.last_triggered?new Date(d.last_triggered).getTime():0;g=b-w;break}case"enabled":{g=Number(c.enabled)-Number(d.enabled);break}}return s==="asc"?g:-g}):[...n]}function Mtr(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 c={};for(const d of n){const g=d.area_id?i[d.area_id]||s.otherArea:s.noArea;c[g]||(c[g]=[]),c[g].push(d)}return c}function jtr({isOpen:n,hass:i,hassConfig:s,entities:c,searchTerm:d,sortColumn:g,sortDirection:b,labels:w}){const[E,S]=H.useState([]),[_,A]=H.useState([]);H.useEffect(()=>{if(!n||!i)return;const P=Tw(i,s);let j=!1;return(async()=>{try{const[z,ee]=await Promise.all([P.getAreas(),P.getEntities()]);j||(S(Array.isArray(z)?z:[]),A(Array.isArray(ee)?ee:[]))}catch{j||(S([]),A([]))}})(),()=>{j=!0}},[n,i,s]);const C=H.useMemo(()=>{const P={};for(const j of _)j.entity_id&&j.area_id&&(P[j.entity_id]=j.area_id);return P},[_]),O=H.useMemo(()=>{const P={};for(const j of E)j.area_id&&j.name&&(P[j.area_id]=j.name);return P},[E]),L=H.useMemo(()=>c.map(P=>Otr(P,C[P.entity_id])).filter(P=>P!==null),[c,C]),D=H.useMemo(()=>Mtr(L,d),[L,d]),B=H.useMemo(()=>Ltr(D,g,b),[D,g,b]),$=H.useMemo(()=>Ptr(B,O,w),[B,O,w]);return{areas:E,entityRegistry:_,areaIdToName:O,catalogItems:L,filteredCatalogItems:D,sortedCatalogItems:B,catalogByArea:$}}function Ftr(n){if(n.length===0)return{minX:0,minY:0,width:0,height:0};let i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=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),c=Math.max(c,g.position.x),d=Math.max(d,g.position.y);return{minX:i,minY:s,width:Math.max(0,c-i),height:Math.max(0,d-s)}}function $tr(n,i){return`${n.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||`source_${i+1}`}_${i+1}`}function Btr(n){const i={};for(const s of n)if(s.variables)for(const[c,d]of Object.entries(s.variables)){if(!(c in i)){i[c]=d;continue}JSON.stringify(i[c])!==JSON.stringify(d)&&(i[`${s.prefix}__${c}`]=d)}return Object.keys(i).length>0?i:void 0}function Utr(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(O=>Ftr(O.graph.nodes)),c=Math.max(...s.map(O=>O.width),0),d=Math.max(...s.map(O=>O.height),0),g=c+260,b=d+220,w=[],E=[],S=[],_=[];n.forEach((O,L)=>{const D=$tr(O.alias||O.automationId||O.entityId,L),B=s[L],$=L%i,P=Math.floor(L/i),j=$*g,z=P*b,ee=new Map;for(const ne of O.graph.nodes){const Q=`${D}__${ne.id}`;ee.set(ne.id,Q),w.push({...ne,id:Q,position:{x:ne.position.x-B.minX+j,y:ne.position.y-B.minY+z}})}for(const ne of O.graph.edges){const Q=ee.get(ne.source),ae=ee.get(ne.target);!Q||!ae||E.push({...ne,id:`${D}__${ne.id}`,source:Q,target:ae})}S.push({automation_id:O.automationId,entity_id:O.entityId,alias:O.alias,node_prefix:D,imported_at:O.importedAt??new Date().toISOString()}),_.push({prefix:D,variables:O.graph.userVariables})});const A={mode:"single",initial_state:!0,...((C=n[0])==null?void 0:C.graph.metadata)||{}};return{id:Z5e(),name:"Merged Automation",description:`Merged from ${n.length} automations`,nodes:w,edges:E,metadata:A,version:1,workspace:{mode:"merged",sources:S},userVariables:Btr(_)}}function Htr({isOpen:n,onClose:i}){const{t:s}=jo(["common","dialogs","errors"]),[c,d]=H.useState(""),[g,b]=H.useState(null),[w,E]=H.useState("asc"),[S,_]=H.useState(new Set),[A,C]=H.useState(!1),[O,L]=H.useState(null),{hass:D,config:B,entities:$}=Wg(),{setFlowName:P,setAutomationId:j,reset:z,fromFlowGraph:ee,hasRealChanges:ne}=po(),{fitView:Q}=kR(),{catalogByArea:ae,sortedCatalogItems:he}=jtr({isOpen:n,hass:D,hassConfig:B,entities:$,searchTerm:c,sortColumn:g,sortDirection:w,labels:{noArea:s("dialogs:import.noArea"),otherArea:s("dialogs:import.otherArea")}});H.useEffect(()=>{n||(_(new Set),d(""))},[n]);const pe=H.useMemo(()=>he.filter(pt=>S.has(pt.entity_id)),[he,S]),ue=H.useMemo(()=>he.length===0?!1:he.every(pt=>S.has(pt.entity_id)),[he,S]),fe=he.length>0,K=pt=>{if(ne()){L(()=>pt),C(!0);return}pt()},ge=()=>{O&&O(),C(!1),L(null)},De=()=>{C(!1),L(null)},Se=pt=>{g===pt?E(w==="asc"?"desc":"asc"):(b(pt),E("asc"))},Re=pt=>g!==pt?I.jsx(v8n,{className:"ml-1 inline h-3 w-3 opacity-50"}):w==="asc"?I.jsx(S8n,{className:"ml-1 inline h-3 w-3"}):I.jsx(b8n,{className:"ml-1 inline h-3 w-3"}),Ae=pt=>{_(Kt=>{const Et=new Set(Kt);return Et.has(pt)?Et.delete(pt):Et.add(pt),Et})},xe=()=>{_(pt=>{const Kt=new Set(pt);if(ue)for(const Et of he)Kt.delete(Et.entity_id);else for(const Et of he)Kt.add(Et.entity_id);return Kt})},We=async pt=>{var Kt;try{const Et=Tw(D,B);if(!Et.isConnected())throw new Error(s("errors:connection.noConnection"));const Dt=await Et.getAutomationConfigWithFallback(pt.automation_id,pt.friendly_name);if(z(),Dt){const Yt=wse(Dt,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Ln=await KDe.fromYaml(Yt);if(!Ln.success||!Ln.graph)throw new Error(((Kt=Ln.errors)==null?void 0:Kt.join(` `))||s("errors:import.parseFailed"));ee(Ln.graph),setTimeout(()=>{Q({padding:.2,duration:300})},50),P(pt.friendly_name||pt.automation_id),j(pt.automation_id),bw.success(s("dialogs:import.importSuccess",{name:pt.friendly_name||pt.automation_id}))}else P(pt.friendly_name||pt.automation_id),j(pt.automation_id),bw.warning(s("dialogs:import.openedWarning",{name:pt.friendly_name||pt.automation_id}),{description:s("dialogs:import.openedWarningDescription")});i()}catch(Et){console.error("C.A.F.E.: Failed to open automation:",Et),bw.error(s("dialogs:import.importFailed",{message:Et.message}))}},ut=()=>{pe.length===1&&K(()=>{We(pe[0])})},Be=pt=>{const Kt=pt.map(Et=>Et.friendly_name).filter(Boolean);return Kt.length===0?s("dialogs:import.defaultMergedName"):Kt.length<=2?Kt.join(" + "):`${Kt[0]} + ${Kt.length-1} more`},bt=async()=>{if(!(pe.length<2))try{const pt=Tw(D,B);if(!pt.isConnected())throw new Error(s("errors:connection.noConnection"));const Kt=await pt.getAutomationConfigsBatch(pe.map(Yt=>Yt.automation_id)),Et=[];for(const Yt of pe){let Ln=Kt[Yt.automation_id];if(Ln||(Ln=await pt.getAutomationConfigWithFallback(Yt.automation_id,Yt.friendly_name)),!Ln)throw new Error(s("dialogs:import.mergeFailedMissingConfig",{name:Yt.friendly_name}));const Zn=wse(Ln,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Yn=await KDe.fromYaml(Zn);if(!Yn.success||!Yn.graph)throw new Error(s("dialogs:import.mergeFailedInvalidYaml",{name:Yt.friendly_name}));Et.push({graph:Yn.graph,automationId:Yt.automation_id,entityId:Yt.entity_id,alias:Yt.friendly_name||Yt.automation_id})}const Dt=Utr(Et);ee(Dt),P(Be(pe)),j(null),_(new Set),setTimeout(()=>{Q({padding:.2,duration:300})},50),bw.success(s("dialogs:import.mergeSuccess",{count:pe.length})),i()}catch(pt){console.error("C.A.F.E.: Failed to merge automations:",pt),bw.error(s("dialogs:import.mergeFailed",{message:pt.message}))}},Nt=pt=>{if(!pt)return s("dialogs:import.never");const Kt=new Date(pt),Dt=new Date().getTime()-Kt.getTime(),Yt=Math.floor(Dt/(1e3*60)),Ln=Math.floor(Yt/60),Zn=Math.floor(Ln/24);return Yt<1?s("dialogs:import.justNow"):Yt<60?s("dialogs:import.minutesAgo",{count:Yt}):Ln<24?s("dialogs:import.hoursAgo",{count:Ln}):Zn<7?s("dialogs:import.daysAgo",{count:Zn}):Kt.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(cN,{className:"space-y-3",children:I.jsxs("div",{className:"flex items-center justify-between pr-8",children:[I.jsxs("div",{children:[I.jsx(uN,{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(mi,{variant:"outline",onClick:pe.length===1?ut:()=>K(()=>void bt()),disabled:pe.length===0,children:[pe.length>1?I.jsx(cPn,{className:"mr-2 h-4 w-4"}):I.jsx(I9t,{className:"mr-2 h-4 w-4"}),pe.length>1?s("dialogs:import.openTogether"):s("dialogs:import.openSingle")]}),I.jsxs(mi,{onClick:()=>{K(()=>{z(),P(s("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[I.jsx(TGt,{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(kGt,{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:c,onChange:pt=>d(pt.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(QDe,{checked:ue,onCheckedChange:xe,title:s(ue?"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"),Re("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"),Re("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"),Re("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(ae).flatMap(([pt,Kt])=>{if(Kt.length===0)return[];const Et=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:pt})},pt),Dt=Kt.map(Yt=>{const Ln=S.has(Yt.entity_id);return I.jsxs("div",{className:`flex border-b last:border-0 ${Ln?"bg-accent/40":""}`,children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center px-2 py-2",children:I.jsx(QDe,{checked:Ln,onCheckedChange:()=>Ae(Yt.entity_id),title:s(Ln?"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:Yt.friendly_name}),Yt.description&&I.jsx("div",{className:"mt-1 max-w-[180px] truncate text-muted-foreground text-xs",children:Yt.description}),Yt.tags.length>0&&I.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Yt.tags.map(Zn=>I.jsx(YMe,{variant:"secondary",className:"text-xs",children:Zn},`${Yt.entity_id}-${Zn}`))}),I.jsx("div",{className:"mt-1 truncate text-muted-foreground text-xs",children:s("dialogs:import.ID",{id:Yt.automation_id})}),Yt.mode&&I.jsx("div",{className:"text-muted-foreground text-xs",children:s("dialogs:import.mode",{mode:Yt.mode})})]}),I.jsx("div",{className:"w-[120px] max-w-[120px] px-3 py-2 align-top",children:Yt.last_triggered?I.jsx("span",{className:"whitespace-nowrap text-xs",children:Nt(Yt.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:Yt.enabled,onCheckedChange:async Zn=>{try{await Tw(D,B).setAutomationState(Yt.entity_id,Zn),bw.success(s(Zn?"dialogs:import.automationEnabled":"dialogs:import.automationDisabled"))}catch{bw.error(s("dialogs:import.updateStateFailed"))}},"aria-label":Yt.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(mi,{size:"icon",variant:"ghost",onClick:()=>K(()=>void We(Yt)),title:s("dialogs:import.importAutomation"),children:I.jsx(I9t,{className:"h-4 w-4"})})})]},Yt.entity_id)});return[I.jsxs(Hn.Fragment,{children:[Et,Dt]},pt)]}),!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(mi,{onClick:i,variant:"ghost",children:s("buttons.cancel")})]})})]}),I.jsx(wR,{open:A,onOpenChange:De,children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(cN,{children:[I.jsx(uN,{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(mi,{variant:"outline",onClick:De,children:s("buttons.cancel")}),I.jsx(mi,{variant:"destructive",onClick:ge,children:s("dialogs:import.confirmDiscard")})]})]})})]}):null}const ztr=xae("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},c)=>I.jsx("div",{ref:c,role:"alert",className:nr(ztr({variant:i}),n),...s}));dA.displayName="Alert";const jKt=H.forwardRef(({className:n,...i},s)=>I.jsx("h5",{ref:s,className:nr("mb-1 font-medium leading-none tracking-tight",n),...i}));jKt.displayName="AlertTitle";const fA=H.forwardRef(({className:n,...i},s)=>I.jsx("div",{ref:s,className:nr("text-sm [&_p]:leading-relaxed",n),...i}));fA.displayName="AlertDescription";var Gtr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qtr=Gtr.reduce((n,i)=>{const s=fae(`Primitive.${i}`),c=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 c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),Vtr="Label",FKt=H.forwardRef((n,i)=>I.jsx(qtr.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())}}));FKt.displayName=Vtr;var $Kt=FKt;const Wtr=xae("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ll=H.forwardRef(({className:n,...i},s)=>I.jsx($Kt,{ref:s,className:nr(Wtr(),n),...i}));ll.displayName=$Kt.displayName;const Bv=H.forwardRef(({className:n,...i},s)=>I.jsx("textarea",{className:nr("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}));Bv.displayName="Textarea";function Ktr({isOpen:n,onClose:i,onSaved:s}){const{t:c}=jo(["common","dialogs","errors"]),{flowName:d,flowDescription:g,automationId:b,isSaving:w,setFlowName:E,setFlowDescription:S,setAutomationId:_,saveAutomation:A,updateAutomation:C}=po(),{hass:O}=Wg(),[L,D]=H.useState(g),[B,$]=H.useState(null),[P,j]=H.useState(null),z=!!b;H.useEffect(()=>{n&&(D(g),$(null),j(null))},[n,g]);const ee=async ue=>{if(!ue.trim()){j(null);return}try{if(await Tw(O).automationExistsByAlias(ue)&&!z){const K=await Tw(O).getUniqueAutomationAlias(ue);j(K)}else j(null)}catch(fe){console.warn("Failed to check name conflict:",fe),j(null)}},ne=async()=>{if(!O){$(c("errors:connection.notConnected"));return}if(!d.trim()){$(c("errors:form.nameRequired"));return}$(null);try{S(L.trim());let ue;z?(await C(O),ue=b||""):ue=await A(O),s==null||s(ue),i()}catch(ue){const fe=ue instanceof Error?ue.message:c("errors:api.unknownError");$(fe)}},Q=()=>{$(null),j(null),i()},ae=ue=>{E(ue),ee(ue)},he=()=>{P&&(E(P),j(null))},pe=async()=>{if(!O){$(c("errors:connection.notConnected"));return}$(null);try{const ue=await Tw(O).getUniqueAutomationAlias(d);E(ue),S(L.trim()),_(null);const fe=await A(O);s==null||s(fe),i()}catch(ue){const fe=ue instanceof Error?ue.message:c("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(cN,{children:[I.jsxs(uN,{className:"flex items-center gap-2",children:[I.jsx(xGt,{className:"h-5 w-5"}),c(z?"dialogs:save.titleUpdate":"dialogs:save.title")]}),I.jsx(lN,{children:c(z?"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:c("dialogs:save.nameLabel")}),I.jsx(Na,{id:"automation-name",value:d,onChange:ue=>ae(ue.target.value),placeholder:c("placeholders.enterAutomationName"),disabled:w})]}),P&&I.jsxs(dA,{children:[I.jsx(O9t,{className:"h-4 w-4"}),I.jsxs(fA,{className:"flex items-center justify-between",children:[I.jsx("span",{children:c("dialogs:save.nameConflict",{suggestedName:P})}),I.jsx(mi,{variant:"outline",size:"sm",onClick:he,disabled:w,children:c("buttons.use")})]})]}),I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"automation-description",children:c("dialogs:save.descriptionLabel")}),I.jsx(Bv,{id:"automation-description",value:L,onChange:ue=>D(ue.target.value),placeholder:c("placeholders.describeAutomation"),rows:3,disabled:w})]}),B&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(O9t,{className:"h-4 w-4"}),I.jsx(fA,{children:B})]}),I.jsxs("div",{className:"flex justify-end gap-2",children:[I.jsx(mi,{variant:"outline",onClick:Q,disabled:w,children:c("buttons.cancel")}),z&&I.jsxs(mi,{variant:"outline",onClick:pe,disabled:w||!d.trim(),children:[w?I.jsx(ez,{className:"mr-2 h-4 w-4 animate-spin"}):I.jsx(z5e,{className:"mr-2 h-4 w-4"}),c("buttons.saveAsCopy")]}),I.jsx(mi,{onClick:ne,disabled:w||!d.trim(),children:w?I.jsxs(I.Fragment,{children:[I.jsx(ez,{className:"mr-2 h-4 w-4 animate-spin"}),c(z?"status.updating":"status.saving")]}):I.jsxs(I.Fragment,{children:[I.jsx(oN,{className:"mr-2 h-4 w-4"}),c(z?"buttons.update":"buttons.save")]})})]})]})]})})}function Ytr({isOpen:n,onClose:i,config:s,onSave:c}){const{t:d}=jo(["common","dialogs"]),[g,b]=H.useState(s.url),[w,E]=H.useState(s.token),[S,_]=H.useState("idle"),[A,C]=H.useState("");H.useEffect(()=>{n&&(b(s.url),E(s.token),_("idle"),C(""))},[n,s]);const O=async()=>{if(!g||!w){_("error"),C(d("dialogs:settings.errors.missingFields"));return}_("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."?_("success"):(_("error"),C(d("dialogs:settings.errors.unexpectedResponse"))):$.status===401?(_("error"),C(d("dialogs:settings.errors.invalidToken"))):(_("error"),C(d("dialogs:settings.errors.httpError",{status:$.status,statusText:$.statusText})))}catch(B){_("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"))}},L=()=>{c({url:g.replace(/\/$/,""),token:w}),i()},D=()=>{b(""),E(""),c({url:"",token:""}),i()};return I.jsx(wR,{open:n,onOpenChange:()=>i(),children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(cN,{children:[I.jsx(uN,{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(mi,{variant:"outline",onClick:O,disabled:S==="testing",children:S==="testing"?I.jsxs(I.Fragment,{children:[I.jsx(ez,{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(SGt,{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(kw,{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(mi,{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(K8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),I.jsxs("div",{className:"flex items-center justify-between pt-4",children:[I.jsx(mi,{variant:"destructive",onClick:D,size:"sm",children:d("dialogs:settings.disconnect")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(mi,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),I.jsx(mi,{onClick:L,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function Jtr({isOpen:n,onClose:i,onImportSuccess:s}){const{t:c}=jo(["common","dialogs"]),[d,g]=H.useState(""),[b,w]=H.useState(!1),[E,S]=H.useState(null),[_,A]=H.useState([]),{fromFlowGraph:C}=po(),{fitView:O}=kR();if(!n)return null;const L=async()=>{var B;w(!0),S(null),A([]);try{const $=await KDe.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(()=>{O({padding:.2,duration:300})},50),setTimeout(()=>{s==null||s(),D()},1e3))}catch($){S($ instanceof Error?$.message:"Unknown error occurred")}finally{w(!1)}},D=()=>{g(""),S(null),A([]),i()};return I.jsx(wR,{open:n,onOpenChange:()=>D(),children:I.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[I.jsxs(cN,{children:[I.jsx(uN,{children:c("dialogs:importYaml.title")}),I.jsx(lN,{children:c("dialogs:importYaml.description")})]}),I.jsxs("div",{className:"flex-1 space-y-4",children:[I.jsx(Bv,{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(kw,{className:"h-4 w-4"}),I.jsxs(fA,{className:"font-medium",children:[c("dialogs:importYaml.importFailed"),I.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),_.length>0&&I.jsxs(dA,{children:[I.jsx(kw,{className:"h-4 w-4"}),I.jsxs(fA,{children:[I.jsx("p",{className:"mb-1 font-medium",children:c("dialogs:importYaml.warnings")}),I.jsx("ul",{className:"space-y-1 text-xs",children:_.map((B,$)=>I.jsxs("li",{children:["•"," ",B]},`warning-${$}-${B.slice(0,20)}`))})]})]}),b&&!E&&I.jsxs(dA,{children:[I.jsx(SGt,{className:"h-4 w-4"}),I.jsx(fA,{children:c("dialogs:importYaml.successLoading")})]}),I.jsx(dA,{children:I.jsxs(fA,{className:"text-xs",children:[I.jsx("strong",{children:c("dialogs:importYaml.tipLabel")})," ",c("dialogs:importYaml.tipText")]})})]}),I.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[I.jsx(mi,{variant:"outline",onClick:D,disabled:b,children:c("buttons.cancel")}),I.jsxs(mi,{onClick:L,disabled:!d.trim()||b,children:[I.jsx(GPn,{className:"mr-2 h-4 w-4"}),c(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}const s$t="0.10.0",BKt="4rem";function Xtr({expanded:n,isRemote:i=!1,configUrl:s,connectionError:c}){const{t:d}=jo(["common","errors","dialogs"]);return n?I.jsxs("div",{className:"flex flex-col gap-2 border-t p-4",children:[I.jsxs("div",{className:"flex items-center gap-4",children:[i&&s&&I.jsx("span",{className:"text-green-600 text-xs",children:d("status.connectedTo",{hostname:new URL(s).hostname})}),c&&I.jsx("span",{className:"text-red-600 text-xs",children:c})]}),I.jsx("div",{className:"text-muted-foreground text-xs",children:I.jsxs("span",{children:[d("titles.appName")," ",`v${s$t}`]})})]}):I.jsxs("div",{className:"flex flex-col items-center gap-2 border-t px-2 py-3",children:[i&&s&&I.jsx("span",{role:"img",title:d("status.connectedTo",{hostname:new URL(s).hostname}),"aria-label":d("status.connectedTo",{hostname:new URL(s).hostname}),children:I.jsx(IGt,{className:"h-4 w-4 text-green-600"})}),I.jsx("span",{className:"font-medium text-[10px] text-muted-foreground",children:`v${s$t}`})]})}function Ztr({expanded:n,onToggle:i,layout:s="desktop",className:c,isRemote:d=!1,configUrl:g,connectionError:b}){const{t:w}=jo(["common","errors","dialogs"]),E=s==="compact"&&!n?{width:BKt}:void 0,S=s==="compact"?nr("absolute top-0 bottom-0 left-0 z-40 flex min-h-0 flex-col border-border border-r transition-[width] duration-300",n?"w-full bg-card":"bg-card"):nr("flex h-full min-h-0 flex-col border-border border-r bg-card transition-[width] duration-300",n?"w-72":"w-20");return I.jsxs("aside",{className:nr(S,c),style:E,children:[I.jsx("div",{className:"flex h-14 items-center justify-between border-b px-4",children:n?I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"shrink-0 whitespace-nowrap font-semibold text-sm",children:w("labels.addNode")}),I.jsx(mi,{variant:"ghost",size:"icon",onClick:i,"aria-label":w("buttons.collapseMenu"),title:w("buttons.collapseMenu"),children:I.jsx(mPn,{className:"h-4 w-4"})})]}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"w-0"}),I.jsx(mi,{variant:"ghost",size:"icon",onClick:i,"aria-label":w("buttons.expandMenu"),title:w("buttons.expandMenu"),children:I.jsx(yPn,{className:"h-4 w-4"})})]})}),I.jsxs("div",{className:nr("min-h-0 flex-1",n?"overflow-auto":"overflow-hidden"),children:[I.jsx(XQn,{iconOnly:!n}),n&&I.jsxs("div",{className:"border-t p-4",children:[I.jsx("h4",{className:"mb-2 font-medium text-muted-foreground text-xs",children:w("labels.quickHelp")}),I.jsxs("ul",{className:"space-y-1 text-muted-foreground text-xs",children:[I.jsx("li",{children:w("help.clickNodesToAdd")}),I.jsx("li",{children:w("help.dragToConnect")}),I.jsx("li",{children:w("help.deleteToRemove")}),I.jsx("li",{children:w("help.backspaceDeleteKey")})]})]})]}),I.jsx(Xtr,{expanded:n,isRemote:d,configUrl:g,connectionError:b})]})}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(kw,{className:"h-3 w-3 flex-shrink-0"}),I.jsx("span",{children:n})]}):null}function No({label:n,required:i,description:s,children:c}){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:"*"})]}),c,s&&I.jsx("p",{className:"text-muted-foreground text-xs",children:s})]})}const a$t={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 c$t(n,i=[]){const s=[...a$t.common,...a$t[n]||[]];return new Set([...s,...i])}function vse(n,[i,s]){return Math.min(s,Math.max(i,n))}function u$t(n){const i=Qtr(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(tnr);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Qtr(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=rnr(d),w=nnr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var enr=Symbol("radix.slottable");function tnr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===enr}function nnr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function rnr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 Yae(n){const i=n+"CollectionProvider",[s,c]=Nw(i),[d,g]=s(i,{collectionRef:{current:null},itemMap:new Map}),b=D=>{const{scope:B,children:$}=D,P=Hn.useRef(null),j=Hn.useRef(new Map).current;return I.jsx(d,{scope:B,itemMap:j,collectionRef:P,children:$})};b.displayName=i;const w=n+"CollectionSlot",E=u$t(w),S=Hn.forwardRef((D,B)=>{const{scope:$,children:P}=D,j=g(w,$),z=ps(B,j.collectionRef);return I.jsx(E,{ref:z,children:P})});S.displayName=w;const _=n+"CollectionItemSlot",A="data-radix-collection-item",C=u$t(_),O=Hn.forwardRef((D,B)=>{const{scope:$,children:P,...j}=D,z=Hn.useRef(null),ee=ps(B,z),ne=g(_,$);return Hn.useEffect(()=>(ne.itemMap.set(z,{ref:z,...j}),()=>void ne.itemMap.delete(z))),I.jsx(C,{[A]:"",ref:ee,children:P})});O.displayName=_;function L(D){const B=g(n+"CollectionConsumer",D);return Hn.useCallback(()=>{const P=B.collectionRef.current;if(!P)return[];const j=Array.from(P.querySelectorAll(`[${A}]`));return Array.from(B.itemMap.values()).sort((ne,Q)=>j.indexOf(ne.ref.current)-j.indexOf(Q.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:b,Slot:S,ItemSlot:O},L,c]}var inr=H.createContext(void 0);function Bz(n){const i=H.useContext(inr);return n||i||"ltr"}function onr(n){const i=snr(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(cnr);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function snr(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=lnr(d),w=unr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var anr=Symbol("radix.slottable");function cnr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===anr}function unr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function lnr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 UKt=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"}),dnr="VisuallyHidden",fnr=H.forwardRef((n,i)=>I.jsx(no.span,{...n,ref:i,style:{...UKt,...n.style}}));fnr.displayName=dnr;var hnr=[" ","Enter","ArrowUp","ArrowDown"],pnr=[" ","Enter"],ER="Select",[Jae,Xae,gnr]=Yae(ER),[WM]=Nw(ER,[gnr,UM]),Zae=UM(),[bnr,xN]=WM(ER),[mnr,wnr]=WM(ER),HKt=n=>{const{__scopeSelect:i,children:s,open:c,defaultOpen:d,onOpenChange:g,value:b,defaultValue:w,onValueChange:E,dir:S,name:_,autoComplete:A,disabled:C,required:O,form:L}=n,D=Zae(i),[B,$]=H.useState(null),[P,j]=H.useState(null),[z,ee]=H.useState(!1),ne=Bz(S),[Q,ae]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:ER}),[he,pe]=G2({prop:b,defaultProp:w,onChange:E,caller:ER}),ue=H.useRef(null),fe=B?L||!!B.closest("form"):!0,[K,ge]=H.useState(new Set),De=Array.from(K).map(Se=>Se.props.value).join(";");return I.jsx(aMe,{...D,children:I.jsxs(bnr,{required:O,scope:i,trigger:B,onTriggerChange:$,valueNode:P,onValueNodeChange:j,valueNodeHasChildren:z,onValueNodeHasChildrenChange:ee,contentId:Bh(),value:he,onValueChange:pe,open:Q,onOpenChange:ae,dir:ne,triggerPointerDownPosRef:ue,disabled:C,children:[I.jsx(Jae.Provider,{scope:i,children:I.jsx(mnr,{scope:n.__scopeSelect,onNativeOptionAdd:H.useCallback(Se=>{ge(Re=>new Set(Re).add(Se))},[]),onNativeOptionRemove:H.useCallback(Se=>{ge(Re=>{const Ae=new Set(Re);return Ae.delete(Se),Ae})},[]),children:s})}),fe?I.jsxs(fYt,{"aria-hidden":!0,required:O,tabIndex:-1,name:_,autoComplete:A,value:he,onChange:Se=>pe(Se.target.value),disabled:C,form:L,children:[he===void 0?I.jsx("option",{value:""}):null,Array.from(K)]},De):null]})})};HKt.displayName=ER;var zKt="SelectTrigger",GKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,disabled:c=!1,...d}=n,g=Zae(s),b=xN(zKt,s),w=b.disabled||c,E=ps(i,b.onTriggerChange),S=Xae(s),_=H.useRef("touch"),[A,C,O]=pYt(D=>{const B=S().filter(j=>!j.disabled),$=B.find(j=>j.value===b.value),P=gYt(B,D,$);P!==void 0&&b.onValueChange(P.value)}),L=D=>{w||(b.onOpenChange(!0),O()),D&&(b.triggerPointerDownPosRef.current={x:Math.round(D.pageX),y:Math.round(D.pageY)})};return I.jsx(Tae,{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":hYt(b.value)?"":void 0,...d,ref:E,onClick:Dr(d.onClick,D=>{D.currentTarget.focus(),_.current!=="mouse"&&L(D)}),onPointerDown:Dr(d.onPointerDown,D=>{_.current=D.pointerType;const B=D.target;B.hasPointerCapture(D.pointerId)&&B.releasePointerCapture(D.pointerId),D.button===0&&D.ctrlKey===!1&&D.pointerType==="mouse"&&(L(D),D.preventDefault())}),onKeyDown:Dr(d.onKeyDown,D=>{const B=A.current!=="";!(D.ctrlKey||D.altKey||D.metaKey)&&D.key.length===1&&C(D.key),!(B&&D.key===" ")&&hnr.includes(D.key)&&(L(),D.preventDefault())})})})});GKt.displayName=zKt;var qKt="SelectValue",VKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:c,style:d,children:g,placeholder:b="",...w}=n,E=xN(qKt,s),{onValueNodeHasChildrenChange:S}=E,_=g!==void 0,A=ps(i,E.onValueNodeChange);return Up(()=>{S(_)},[S,_]),I.jsx(no.span,{...w,ref:A,style:{pointerEvents:"none"},children:hYt(E.value)?I.jsx(I.Fragment,{children:b}):g})});VKt.displayName=qKt;var ynr="SelectIcon",WKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,children:c,...d}=n;return I.jsx(no.span,{"aria-hidden":!0,...d,ref:i,children:c||"▼"})});WKt.displayName=ynr;var vnr="SelectPortal",KKt=n=>I.jsx(Oz,{asChild:!0,...n});KKt.displayName=vnr;var SR="SelectContent",YKt=H.forwardRef((n,i)=>{const s=xN(SR,n.__scopeSelect),[c,d]=H.useState();if(Up(()=>{d(new DocumentFragment)},[]),!s.open){const g=c;return g?xR.createPortal(I.jsx(JKt,{scope:n.__scopeSelect,children:I.jsx(Jae.Slot,{scope:n.__scopeSelect,children:I.jsx("div",{children:n.children})})}),g):null}return I.jsx(XKt,{...n,ref:i})});YKt.displayName=SR;var kv=10,[JKt,kN]=WM(SR),Enr="SelectContentImpl",Snr=onr("SelectContent.RemoveScroll"),XKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,position:c="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:g,onPointerDownOutside:b,side:w,sideOffset:E,align:S,alignOffset:_,arrowPadding:A,collisionBoundary:C,collisionPadding:O,sticky:L,hideWhenDetached:D,avoidCollisions:B,...$}=n,P=xN(SR,s),[j,z]=H.useState(null),[ee,ne]=H.useState(null),Q=ps(i,Et=>z(Et)),[ae,he]=H.useState(null),[pe,ue]=H.useState(null),fe=Xae(s),[K,ge]=H.useState(!1),De=H.useRef(!1);H.useEffect(()=>{if(j)return lae(j)},[j]),cae();const Se=H.useCallback(Et=>{const[Dt,...Yt]=fe().map(Yn=>Yn.ref.current),[Ln]=Yt.slice(-1),Zn=document.activeElement;for(const Yn of Et)if(Yn===Zn||(Yn==null||Yn.scrollIntoView({block:"nearest"}),Yn===Dt&&ee&&(ee.scrollTop=0),Yn===Ln&&ee&&(ee.scrollTop=ee.scrollHeight),Yn==null||Yn.focus(),document.activeElement!==Zn))return},[fe,ee]),Re=H.useCallback(()=>Se([ae,j]),[Se,ae,j]);H.useEffect(()=>{K&&Re()},[K,Re]);const{onOpenChange:Ae,triggerPointerDownPosRef:xe}=P;H.useEffect(()=>{if(j){let Et={x:0,y:0};const Dt=Ln=>{var Zn,Yn;Et={x:Math.abs(Math.round(Ln.pageX)-(((Zn=xe.current)==null?void 0:Zn.x)??0)),y:Math.abs(Math.round(Ln.pageY)-(((Yn=xe.current)==null?void 0:Yn.y)??0))}},Yt=Ln=>{Et.x<=10&&Et.y<=10?Ln.preventDefault():j.contains(Ln.target)||Ae(!1),document.removeEventListener("pointermove",Dt),xe.current=null};return xe.current!==null&&(document.addEventListener("pointermove",Dt),document.addEventListener("pointerup",Yt,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Dt),document.removeEventListener("pointerup",Yt,{capture:!0})}}},[j,Ae,xe]),H.useEffect(()=>{const Et=()=>Ae(!1);return window.addEventListener("blur",Et),window.addEventListener("resize",Et),()=>{window.removeEventListener("blur",Et),window.removeEventListener("resize",Et)}},[Ae]);const[We,ut]=pYt(Et=>{const Dt=fe().filter(Zn=>!Zn.disabled),Yt=Dt.find(Zn=>Zn.ref.current===document.activeElement),Ln=gYt(Dt,Et,Yt);Ln&&setTimeout(()=>Ln.ref.current.focus())}),Be=H.useCallback((Et,Dt,Yt)=>{const Ln=!De.current&&!Yt;(P.value!==void 0&&P.value===Dt||Ln)&&(he(Et),Ln&&(De.current=!0))},[P.value]),bt=H.useCallback(()=>j==null?void 0:j.focus(),[j]),Nt=H.useCallback((Et,Dt,Yt)=>{const Ln=!De.current&&!Yt;(P.value!==void 0&&P.value===Dt||Ln)&&ue(Et)},[P.value]),pt=c==="popper"?eLe:ZKt,Kt=pt===eLe?{side:w,sideOffset:E,align:S,alignOffset:_,arrowPadding:A,collisionBoundary:C,collisionPadding:O,sticky:L,hideWhenDetached:D,avoidCollisions:B}:{};return I.jsx(JKt,{scope:s,content:j,viewport:ee,onViewportChange:ne,itemRefCallback:Be,selectedItem:ae,onItemLeave:bt,itemTextRefCallback:Nt,focusSelectedItem:Re,selectedItemText:pe,position:c,isPositioned:K,searchRef:We,children:I.jsx(Dz,{as:Snr,allowPinchZoom:!0,children:I.jsx(Rz,{asChild:!0,trapped:P.open,onMountAutoFocus:Et=>{Et.preventDefault()},onUnmountAutoFocus:Dr(d,Et=>{var Dt;(Dt=P.trigger)==null||Dt.focus({preventScroll:!0}),Et.preventDefault()}),children:I.jsx(Iz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:Et=>Et.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:I.jsx(pt,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:Et=>Et.preventDefault(),...$,...Kt,onPlaced:()=>ge(!0),ref:Q,style:{display:"flex",flexDirection:"column",outline:"none",...$.style},onKeyDown:Dr($.onKeyDown,Et=>{const Dt=Et.ctrlKey||Et.altKey||Et.metaKey;if(Et.key==="Tab"&&Et.preventDefault(),!Dt&&Et.key.length===1&&ut(Et.key),["ArrowUp","ArrowDown","Home","End"].includes(Et.key)){let Ln=fe().filter(Zn=>!Zn.disabled).map(Zn=>Zn.ref.current);if(["ArrowUp","End"].includes(Et.key)&&(Ln=Ln.slice().reverse()),["ArrowUp","ArrowDown"].includes(Et.key)){const Zn=Et.target,Yn=Ln.indexOf(Zn);Ln=Ln.slice(Yn+1)}setTimeout(()=>Se(Ln)),Et.preventDefault()}})})})})})})});XKt.displayName=Enr;var Tnr="SelectItemAlignedPosition",ZKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onPlaced:c,...d}=n,g=xN(SR,s),b=kN(SR,s),[w,E]=H.useState(null),[S,_]=H.useState(null),A=ps(i,Q=>_(Q)),C=Xae(s),O=H.useRef(!1),L=H.useRef(!0),{viewport:D,selectedItem:B,selectedItemText:$,focusSelectedItem:P}=b,j=H.useCallback(()=>{if(g.trigger&&g.valueNode&&w&&S&&D&&B&&$){const Q=g.trigger.getBoundingClientRect(),ae=S.getBoundingClientRect(),he=g.valueNode.getBoundingClientRect(),pe=$.getBoundingClientRect();if(g.dir!=="rtl"){const Zn=pe.left-ae.left,Yn=he.left-Zn,Er=Q.left-Yn,Ui=Q.width+Er,Qr=Math.max(Ui,ae.width),Hi=window.innerWidth-kv,ai=vse(Yn,[kv,Math.max(kv,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.left=ai+"px"}else{const Zn=ae.right-pe.right,Yn=window.innerWidth-he.right-Zn,Er=window.innerWidth-Q.right-Yn,Ui=Q.width+Er,Qr=Math.max(Ui,ae.width),Hi=window.innerWidth-kv,ai=vse(Yn,[kv,Math.max(kv,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.right=ai+"px"}const ue=C(),fe=window.innerHeight-kv*2,K=D.scrollHeight,ge=window.getComputedStyle(S),De=parseInt(ge.borderTopWidth,10),Se=parseInt(ge.paddingTop,10),Re=parseInt(ge.borderBottomWidth,10),Ae=parseInt(ge.paddingBottom,10),xe=De+Se+K+Ae+Re,We=Math.min(B.offsetHeight*5,xe),ut=window.getComputedStyle(D),Be=parseInt(ut.paddingTop,10),bt=parseInt(ut.paddingBottom,10),Nt=Q.top+Q.height/2-kv,pt=fe-Nt,Kt=B.offsetHeight/2,Et=B.offsetTop+Kt,Dt=De+Se+Et,Yt=xe-Dt;if(Dt<=Nt){const Zn=ue.length>0&&B===ue[ue.length-1].ref.current;w.style.bottom="0px";const Yn=S.clientHeight-D.offsetTop-D.offsetHeight,Er=Math.max(pt,Kt+(Zn?bt:0)+Yn+Re),Ui=Dt+Er;w.style.height=Ui+"px"}else{const Zn=ue.length>0&&B===ue[0].ref.current;w.style.top="0px";const Er=Math.max(Nt,De+D.offsetTop+(Zn?Be:0)+Kt)+Yt;w.style.height=Er+"px",D.scrollTop=Dt-Nt+D.offsetTop}w.style.margin=`${kv}px 0`,w.style.minHeight=We+"px",w.style.maxHeight=fe+"px",c==null||c(),requestAnimationFrame(()=>O.current=!0)}},[C,g.trigger,g.valueNode,w,S,D,B,$,g.dir,c]);Up(()=>j(),[j]);const[z,ee]=H.useState();Up(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);const ne=H.useCallback(Q=>{Q&&L.current===!0&&(j(),P==null||P(),L.current=!1)},[j,P]);return I.jsx(_nr,{scope:s,contentWrapper:w,shouldExpandOnScrollRef:O,onScrollButtonChange:ne,children:I.jsx("div",{ref:E,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:I.jsx(no.div,{...d,ref:A,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});ZKt.displayName=Tnr;var Anr="SelectPopperPosition",eLe=H.forwardRef((n,i)=>{const{__scopeSelect:s,align:c="start",collisionPadding:d=kv,...g}=n,b=Zae(s);return I.jsx(cMe,{...b,...g,ref:i,align:c,collisionPadding:d,style:{boxSizing:"border-box",...g.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eLe.displayName=Anr;var[_nr,ZMe]=WM(SR,{}),tLe="SelectViewport",QKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,nonce:c,...d}=n,g=kN(tLe,s),b=ZMe(tLe,s),w=ps(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:c}),I.jsx(Jae.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:Dr(d.onScroll,S=>{const _=S.currentTarget,{contentWrapper:A,shouldExpandOnScrollRef:C}=b;if(C!=null&&C.current&&A){const O=Math.abs(E.current-_.scrollTop);if(O>0){const L=window.innerHeight-kv*2,D=parseFloat(A.style.minHeight),B=parseFloat(A.style.height),$=Math.max(D,B);if($0?z:0,A.style.justifyContent="flex-end")}}}E.current=_.scrollTop})})})]})});QKt.displayName=tLe;var eYt="SelectGroup",[xnr,knr]=WM(eYt),Nnr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=Bh();return I.jsx(xnr,{scope:s,id:d,children:I.jsx(no.div,{role:"group","aria-labelledby":d,...c,ref:i})})});Nnr.displayName=eYt;var tYt="SelectLabel",nYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=knr(tYt,s);return I.jsx(no.div,{id:d.id,...c,ref:i})});nYt.displayName=tYt;var Ese="SelectItem",[Cnr,rYt]=WM(Ese),iYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,value:c,disabled:d=!1,textValue:g,...b}=n,w=xN(Ese,s),E=kN(Ese,s),S=w.value===c,[_,A]=H.useState(g??""),[C,O]=H.useState(!1),L=ps(i,P=>{var j;return(j=E.itemRefCallback)==null?void 0:j.call(E,P,c,d)}),D=Bh(),B=H.useRef("touch"),$=()=>{d||(w.onValueChange(c),w.onOpenChange(!1))};if(c==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return I.jsx(Cnr,{scope:s,value:c,disabled:d,textId:D,isSelected:S,onItemTextChange:H.useCallback(P=>{A(j=>j||((P==null?void 0:P.textContent)??"").trim())},[]),children:I.jsx(Jae.ItemSlot,{scope:s,value:c,disabled:d,textValue:_,children:I.jsx(no.div,{role:"option","aria-labelledby":D,"data-highlighted":C?"":void 0,"aria-selected":S&&C,"data-state":S?"checked":"unchecked","aria-disabled":d||void 0,"data-disabled":d?"":void 0,tabIndex:d?void 0:-1,...b,ref:L,onFocus:Dr(b.onFocus,()=>O(!0)),onBlur:Dr(b.onBlur,()=>O(!1)),onClick:Dr(b.onClick,()=>{B.current!=="mouse"&&$()}),onPointerUp:Dr(b.onPointerUp,()=>{B.current==="mouse"&&$()}),onPointerDown:Dr(b.onPointerDown,P=>{B.current=P.pointerType}),onPointerMove:Dr(b.onPointerMove,P=>{var j;B.current=P.pointerType,d?(j=E.onItemLeave)==null||j.call(E):B.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dr(b.onPointerLeave,P=>{var j;P.currentTarget===document.activeElement&&((j=E.onItemLeave)==null||j.call(E))}),onKeyDown:Dr(b.onKeyDown,P=>{var z;((z=E.searchRef)==null?void 0:z.current)!==""&&P.key===" "||(pnr.includes(P.key)&&$(),P.key===" "&&P.preventDefault())})})})})});iYt.displayName=Ese;var oH="SelectItemText",oYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:c,style:d,...g}=n,b=xN(oH,s),w=kN(oH,s),E=rYt(oH,s),S=wnr(oH,s),[_,A]=H.useState(null),C=ps(i,$=>A($),E.onItemTextChange,$=>{var P;return(P=w.itemTextRefCallback)==null?void 0:P.call(w,$,E.value,E.disabled)}),O=_==null?void 0:_.textContent,L=H.useMemo(()=>I.jsx("option",{value:E.value,disabled:E.disabled,children:O},E.value),[E.disabled,E.value,O]),{onNativeOptionAdd:D,onNativeOptionRemove:B}=S;return Up(()=>(D(L),()=>B(L)),[D,B,L]),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]})});oYt.displayName=oH;var sYt="SelectItemIndicator",aYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n;return rYt(sYt,s).isSelected?I.jsx(no.span,{"aria-hidden":!0,...c,ref:i}):null});aYt.displayName=sYt;var nLe="SelectScrollUpButton",cYt=H.forwardRef((n,i)=>{const s=kN(nLe,n.__scopeSelect),c=ZMe(nLe,n.__scopeSelect),[d,g]=H.useState(!1),b=ps(i,c.onScrollButtonChange);return Up(()=>{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(lYt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop-E.offsetHeight)}}):null});cYt.displayName=nLe;var rLe="SelectScrollDownButton",uYt=H.forwardRef((n,i)=>{const s=kN(rLe,n.__scopeSelect),c=ZMe(rLe,n.__scopeSelect),[d,g]=H.useState(!1),b=ps(i,c.onScrollButtonChange);return Up(()=>{if(s.viewport&&s.isPositioned){let w=function(){const S=E.scrollHeight-E.clientHeight,_=Math.ceil(E.scrollTop)E.removeEventListener("scroll",w)}},[s.viewport,s.isPositioned]),d?I.jsx(lYt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop+E.offsetHeight)}}):null});uYt.displayName=rLe;var lYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onAutoScroll:c,...d}=n,g=kN("SelectScrollButton",s),b=H.useRef(null),w=Xae(s),E=H.useCallback(()=>{b.current!==null&&(window.clearInterval(b.current),b.current=null)},[]);return H.useEffect(()=>()=>E(),[E]),Up(()=>{var _;const S=w().find(A=>A.ref.current===document.activeElement);(_=S==null?void 0:S.ref.current)==null||_.scrollIntoView({block:"nearest"})},[w]),I.jsx(no.div,{"aria-hidden":!0,...d,ref:i,style:{flexShrink:0,...d.style},onPointerDown:Dr(d.onPointerDown,()=>{b.current===null&&(b.current=window.setInterval(c,50))}),onPointerMove:Dr(d.onPointerMove,()=>{var S;(S=g.onItemLeave)==null||S.call(g),b.current===null&&(b.current=window.setInterval(c,50))}),onPointerLeave:Dr(d.onPointerLeave,()=>{E()})})}),Inr="SelectSeparator",dYt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n;return I.jsx(no.div,{"aria-hidden":!0,...c,ref:i})});dYt.displayName=Inr;var iLe="SelectArrow",Rnr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=Zae(s),g=xN(iLe,s),b=kN(iLe,s);return g.open&&b.position==="popper"?I.jsx(uMe,{...d,...c,ref:i}):null});Rnr.displayName=iLe;var Onr="SelectBubbleInput",fYt=H.forwardRef(({__scopeSelect:n,value:i,...s},c)=>{const d=H.useRef(null),g=ps(c,d),b=Vae(i);return H.useEffect(()=>{const w=d.current;if(!w)return;const E=window.HTMLSelectElement.prototype,_=Object.getOwnPropertyDescriptor(E,"value").set;if(b!==i&&_){const A=new Event("change",{bubbles:!0});_.call(w,i),w.dispatchEvent(A)}},[b,i]),I.jsx(no.select,{...s,style:{...UKt,...s.style},ref:g,defaultValue:i})});fYt.displayName=Onr;function hYt(n){return n===""||n===void 0}function pYt(n){const i=q2(n),s=H.useRef(""),c=H.useRef(0),d=H.useCallback(b=>{const w=s.current+b;i(w),function E(S){s.current=S,window.clearTimeout(c.current),S!==""&&(c.current=window.setTimeout(()=>E(""),1e3))}(w)},[i]),g=H.useCallback(()=>{s.current="",window.clearTimeout(c.current)},[]);return H.useEffect(()=>()=>window.clearTimeout(c.current),[]),[s,d,g]}function gYt(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=Dnr(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 Dnr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}var Lnr=HKt,bYt=GKt,Mnr=VKt,Pnr=WKt,jnr=KKt,mYt=YKt,Fnr=QKt,wYt=nYt,yYt=iYt,$nr=oYt,Bnr=aYt,vYt=cYt,EYt=uYt,SYt=dYt;const zp=Lnr,Gp=Mnr,zh=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(bYt,{ref:c,className:nr("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(Pnr,{asChild:!0,children:I.jsx(oae,{className:"h-4 w-4 opacity-50"})})]}));zh.displayName=bYt.displayName;const TYt=H.forwardRef(({className:n,...i},s)=>I.jsx(vYt,{ref:s,className:nr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(R8n,{className:"h-4 w-4"})}));TYt.displayName=vYt.displayName;const AYt=H.forwardRef(({className:n,...i},s)=>I.jsx(EYt,{ref:s,className:nr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(oae,{className:"h-4 w-4"})}));AYt.displayName=EYt.displayName;const Gh=H.forwardRef(({className:n,children:i,position:s="popper",container:c,...d},g)=>I.jsx(jnr,{container:c,children:I.jsxs(mYt,{ref:g,className:nr("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(TYt,{}),I.jsx(Fnr,{className:nr("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),I.jsx(AYt,{})]})}));Gh.displayName=mYt.displayName;const Unr=H.forwardRef(({className:n,...i},s)=>I.jsx(wYt,{ref:s,className:nr("px-2 py-1.5 font-semibold text-sm",n),...i}));Unr.displayName=wYt.displayName;const eo=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(yYt,{ref:c,className:nr("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($nr,{children:i})]}));eo.displayName=yYt.displayName;const Hnr=H.forwardRef(({className:n,...i},s)=>I.jsx(SYt,{ref:s,className:nr("-mx-1 my-1 h-px bg-muted",n),...i}));Hnr.displayName=SYt.displayName;const znr=["single","restart","queued","parallel"],Gnr=["silent","warning","critical"],l$t=new Set(["queued","parallel"]);function qnr(){const{t:n}=jo("common"),i=po(C=>C.flowName),s=po(C=>C.flowDescription),c=po(C=>C.setFlowName),d=po(C=>C.setFlowDescription),g=po(C=>C.flowMetadata),b=po(C=>C.setFlowMetadata),w=g.mode??"single",E=l$t.has(w),S=C=>{const O=C,L={mode:O};l$t.has(O)||(L.max=void 0,L.max_exceeded=void 0),b(L)},_=C=>{const O=Number.parseInt(C,10);C===""||Number.isNaN(O)?b({max:void 0}):O>0&&b({max:O})},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(No,{label:n("labels.automationName"),children:I.jsx(Na,{type:"text",value:i,onChange:C=>c(C.target.value),placeholder:n("placeholders.enterAutomationName")})}),I.jsx(No,{label:n("automationSettings.description"),children:I.jsx(Bv,{value:s,onChange:C=>d(C.target.value),placeholder:n("placeholders.describeAutomation"),rows:3})}),I.jsx($z,{}),I.jsxs(No,{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:znr.map(C=>I.jsx(eo,{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(No,{label:n("automationSettings.max"),description:n("automationSettings.maxDescription"),children:I.jsx(Na,{type:"number",min:1,value:g.max??"",onChange:C=>_(C.target.value),placeholder:"10"})}),g.max!=null&&I.jsx(No,{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(eo,{value:"none",children:n("placeholders.none")}),Gnr.map(C=>I.jsx(eo,{value:C,children:n(`automationSettings.maxExceededOptions.${C}`)},C))]})]})})]})]})}function _Yt({options:n,value:i,onChange:s,placeholder:c,className:d,buttonClassName:g,disabled:b=!1,renderOption:w,renderValue:E,searchKeys:S=["label","value"],fuzzyOptions:_={}}){const{t:A}=jo(["common"]),[C,O]=H.useState(!1),{query:L,setQuery:D,filteredItems:B}=gVt(n,{keys:S,threshold:.4,includeScore:!0,ignoreLocation:!0,includeMatches:!0,minMatchCharLength:1,..._}),$=n.find(j=>j.value===i),P=j=>{D(j)};return I.jsxs(dMe,{open:C,onOpenChange:O,children:[I.jsx(oVt,{asChild:!0,children:I.jsxs(mi,{variant:"outline",role:"combobox","aria-expanded":C,className:nr("flex w-full justify-between",g),disabled:b,children:[$?E?E($):$.label:c||A("combobox.select"),I.jsx(EGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(_ae,{className:nr("w-[286px] p-0",d),children:I.jsxs(pae,{shouldFilter:!1,children:[I.jsx(gae,{placeholder:c||A("combobox.select"),className:"h-9",value:L,onValueChange:P}),I.jsxs(bae,{children:[I.jsx(mae,{children:A("combobox.noOptions")}),I.jsx(nz,{children:B.map(j=>I.jsxs(rz,{value:j.value,onSelect:z=>{s(z===i?"":z),O(!1),D("")},children:[w?w(j):j.label,I.jsx(oN,{className:nr("ml-auto h-4 w-4",i===j.value?"opacity-100":"opacity-0")})]},j.value))})]})]})})]})}function oLe({values:n,onChange:i,placeholder:s="Add ID...",className:c}){const[d,g]=H.useState(""),b=()=>{const S=d.trim();S&&!n.includes(S)&&(i([...n,S]),g(""))},w=S=>{i(n.filter(_=>_!==S))},E=S=>{S.key==="Enter"&&(S.preventDefault(),b())};return I.jsxs("div",{className:nr("space-y-1",c),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(mi,{type:"button",size:"icon",variant:"outline",onClick:b,disabled:!d.trim(),children:I.jsx(sae,{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(aae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>w(S)})]},S))})]})}const Vnr={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 Wnr(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 Vnr[i]||{label:i,color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"}}function Knr(n){return n.attributes.friendly_name||n.entity_id}function Sse({value:n,onChange:i,entities:s,placeholder:c="Select entity...",className:d,domainFilter:g}){const{entities:b,getDeviceNameForEntity:w,getAreaNameForEntity:E}=Wg(),S=s??b,_=H.useMemo(()=>{if(!g)return S;const B=Array.isArray(g)?g:[g];return S.filter($=>{const P=$.entity_id.split(".")[0];return B.includes(P)})},[S,g]),A=H.useMemo(()=>_.map(B=>{const $=Wnr(B.entity_id);return{value:B.entity_id,label:Knr(B),domainLabel:$.label,domainColor:$.color,deviceLabel:w(B.entity_id)??void 0,areaLabel:E(B.entity_id)??void 0}}),[_,w,E]),C=Array.isArray(n)?n[0]:n,O=_.find(B=>B.entity_id===C),L=C&&!O,D=B=>{i(B)};return I.jsxs("div",{className:nr("relative",d),children:[I.jsx(_Yt,{options:A,value:C||"",onChange:D,placeholder:c,buttonClassName:nr(!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:nr("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:nr("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}),L&&I.jsx("div",{className:"mt-1 truncate font-mono text-red-600",children:C})]})}function Qae({value:n,onChange:i,entities:s,placeholder:c="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:nr("space-y-1",d),children:[I.jsx(Sse,{value:"",onChange:g,entities:s,placeholder:c,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(aae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>b(w)})]},w))})]})}function QMe(n,i,s){const d=n.data[i];return d??s}function jh(n,i,s=""){const c=QMe(n,i,s);if(typeof c=="string")return c;if(typeof c=="object"&&c!==null&&!Array.isArray(c)){const d=c;if(typeof d.value=="string")return d.value}return s}function C5(n,i,s={}){const c=QMe(n,i,s);return typeof c=="object"&&c!==null&&!Array.isArray(c)?c:s}function Ynr({response:n,responseVariable:i,showResponseVariable:s,setShowResponseVariable:c,onChange:d,handleResponseVariableChange:g}){const{t:b}=jo(["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&&eWt(i)&&I.jsxs(dA,{variant:"destructive",className:"mt-2 border-0 px-0",children:[I.jsx(jKt,{children:b("labels.warning")}),I.jsx(fA,{children:b("nodes:responseVariableField.currentNodeWarning")})]})]});return n.optional?I.jsxs(No,{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=>{c(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(No,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.requiredDescription"),children:w})}function Jnr(n){const i=n.trim();if(i==="")return;const s=Number(i);return Number.isNaN(s)?n:s}function Xnr(n){return n==null?"":typeof n=="number"||typeof n=="string"?String(n):""}function xYt({value:n,placeholder:i,required:s,onChange:c}){return I.jsx(Na,{type:"text",inputMode:"decimal",value:Xnr(n),placeholder:i,required:s,onChange:d=>c(Jnr(d.target.value))})}function kYt(n){if(!Array.isArray(n))return[];const i=[];for(const s of n){if(typeof s=="string"||typeof s=="number"){i.push({value:String(s),label:String(s)});continue}if(Array.isArray(s)){const[c,d]=s;if(c==null)continue;i.push({value:String(c),label:String(d??c)});continue}if(s&&typeof s=="object"&&"value"in s){const{value:c,label:d}=s;if(c==null)continue;i.push({value:String(c),label:String(d??c)})}}return i}const Znr="255, 255, 255";function Qnr(n){return Array.isArray(n)?n.join(", "):n==null?"":String(n)}function err(n){const i=n.split(",").map(c=>c.trim()).filter(c=>c!=="");if(i.length===0)return"";const s=i.map(Number);return s.some(Number.isNaN)?n:s}function trr({value:n,example:i,onChange:s}){const[c,d]=H.useState(null),g=i===void 0?Znr:String(i).replace(/[[\]]/g,"");return I.jsx(Na,{type:"text",inputMode:"numeric",value:c??Qnr(n),placeholder:g,onChange:b=>{d(b.target.value),s(err(b.target.value))},onBlur:()=>d(null)})}function nrr({serviceFields:n,currentData:i,onChange:s}){const{t:c}=jo(["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:c("nodes:serviceDataFields.heading")}),Object.entries(n).map(([d,g])=>{const b=g.selector||{},w=Object.keys(b)[0],E=b[w]||{},S=i[d],_=g.name||d.replace(/_/g," ").replace(/\b\w/g,A=>A.toUpperCase());if(w==="number"){const A=E;return I.jsx(No,{label:`${_}${A.unit_of_measurement?` (${A.unit_of_measurement})`:""}`,required:g.required,description:g.description,children:I.jsx(xYt,{value:i[d],required:g.required,placeholder:g.example!==void 0?String(g.example):"",onChange:C=>s(d,C??"")})},d)}if(w==="select"){const A=kYt(E.options);return I.jsx(No,{label:_,required:g.required,description:g.description,children:I.jsxs(zp,{value:String(S===""?"__NONE__":S??"__NONE__"),onValueChange:C=>s(d,C==="__NONE__"?"":C),children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:c("placeholders.none")})}),I.jsxs(Gh,{children:[I.jsx(eo,{value:"__NONE__",children:c("placeholders.none")}),A.map(C=>I.jsx(eo,{value:C.value,children:C.label},C.value))]})]})},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:A=>s(d,A.target.checked),className:"rounded"}),I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[_,g.required&&I.jsx("span",{className:"ml-0.5 text-destructive",children:c("labels.requiredAsterisk")})]})]},d);if(w==="entity"){if(E.multiple===!0){const O=Array.isArray(S)?S:S?[String(S)]:[];return I.jsx(No,{label:_,required:g.required,description:g.description,children:I.jsx(Qae,{value:O,onChange:L=>s(d,L),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return I.jsx(No,{label:_,required:g.required,description:g.description,children:I.jsx(Sse,{value:String(S??""),onChange:O=>s(d,O),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return w==="color_rgb"||d==="rgb_color"?I.jsx(No,{label:_,required:g.required,description:g.description,children:I.jsx(trr,{value:i[d],example:g.example,onChange:A=>s(d,A)})},d):I.jsx(No,{label:_,required:g.required,description:g.description,children:I.jsx(Na,{type:"text",value:S??"",onChange:A=>s(d,A.target.value),placeholder:g.example!==void 0?String(g.example):""})},d)})]})}const rrr=new Set(["homeassistant","group"]);function irr(n,i){if(!n||!n.includes("."))return i;const s=n.split(".")[0];if(rrr.has(s))return i;const c=i.filter(d=>d.entity_id.startsWith(`${s}.`));return c.length>0?c:i}function orr({node:n,onChange:i,entities:s}){const{t:c}=jo(["nodes"]),{getAllServices:d,getServiceDefinition:g}=Wg(),{getFieldError:b}=gb(n.id),w=jh(n,"service"),E=jh(n,"event"),S=n.data,_=typeof S.stop=="string"?S.stop:void 0,A=S.error===!0,C=g(w),O=(C==null?void 0:C.fields)||{},L=C5(n,"data",{}),D=jh(n,"response_variable"),[B,$]=H.useState(!!D),P=_!==void 0?"stop":E?"event":"service";H.useEffect(()=>{$(!!D)},[D]);const j=Re=>{Re==="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)):Re==="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))},z=Re=>{i("service",Re),i("data",void 0)},ee=Re=>{const xe={...C5(n,"target",{}),entity_id:Re.length>0?Re:void 0};xe.entity_id||delete xe.entity_id,i("target",Object.keys(xe).length>0?xe:void 0)},ne=Re=>{const xe={...C5(n,"target",{}),device_id:Re.length>0?Re:void 0};xe.device_id||delete xe.device_id,i("target",Object.keys(xe).length>0?xe:void 0)},Q=Re=>{const xe={...C5(n,"target",{}),area_id:Re.length>0?Re:void 0};xe.area_id||delete xe.area_id,i("target",Object.keys(xe).length>0?xe:void 0)},ae=(Re,Ae)=>{const xe={...L,[Re]:Ae===""?void 0:Ae},We=Object.fromEntries(Object.entries(xe).filter(([,ut])=>ut!==void 0&&ut!==""));i("data",Object.keys(We).length>0?We:void 0)},he=Re=>{i("response_variable",Re.target.value===""?void 0:Re.target.value)},pe=C5(n,"target",{}),ue=Re=>Re?Array.isArray(Re)?Re:[Re]:[],fe=ue(pe.entity_id),K=ue(pe.device_id),ge=ue(pe.area_id),De=K.length>0,Se=ge.length>0;return I.jsxs(I.Fragment,{children:[I.jsx(No,{label:c("nodes:actions.actionTypeLabel"),required:!0,children:I.jsxs(zp,{value:P,onValueChange:j,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(eo,{value:"service",children:c("nodes:actions.actionTypes.service")}),I.jsx(eo,{value:"event",children:c("nodes:actions.actionTypes.event")}),I.jsx(eo,{value:"stop",children:c("nodes:actions.actionTypes.stop")})]})]})}),P==="stop"?I.jsxs(I.Fragment,{children:[I.jsx(No,{label:c("nodes:actions.stopMessageLabel"),children:I.jsx(Na,{type:"text",value:_??"",onChange:Re=>i("stop",Re.target.value),placeholder:c("nodes:actions.stopMessagePlaceholder")})}),I.jsx(No,{label:c("nodes:actions.markAsError"),children:I.jsx(J2,{checked:A,onCheckedChange:Re=>i("error",Re||void 0)})})]}):P==="event"?I.jsx(I.Fragment,{children:I.jsxs(No,{label:c("nodes:actions.eventNameLabel"),required:!0,children:[I.jsx(Na,{type:"text",value:E,onChange:Re=>i("event",Re.target.value||void 0),placeholder:c("nodes:actions.eventNamePlaceholder")}),I.jsx(H2,{message:b("event")})]})}):I.jsxs(I.Fragment,{children:[I.jsxs(No,{label:c("nodes:actions.actionLabel"),required:!0,children:[I.jsx(_Yt,{options:d().map(({domain:Re,service:Ae})=>({value:`${Re}.${Ae}`,label:`${Re}.${Ae}`})),value:w,onChange:z,placeholder:c("nodes:actions.selectAction")}),I.jsx(H2,{message:b("service")})]}),((C==null?void 0:C.target)||fe.length>0)&&I.jsx(No,{label:c("nodes:actions.targetEntities"),children:I.jsx(Qae,{value:fe,onChange:ee,entities:irr(w,s),placeholder:c("nodes:actions.selectTargetEntities")})}),(De||(C==null?void 0:C.target))&&I.jsx(No,{label:c("nodes:actions.targetDevices"),description:c("nodes:actions.targetDevicesDescription"),children:I.jsx(oLe,{values:K,onChange:ne,placeholder:c("nodes:actions.addDeviceId")})}),(Se||(C==null?void 0:C.target))&&I.jsx(No,{label:c("nodes:actions.targetAreas"),description:c("nodes:actions.targetAreasDescription"),children:I.jsx(oLe,{values:ge,onChange:Q,placeholder:c("nodes:actions.addAreaId")})}),I.jsx(nrr,{serviceFields:O,currentData:L,onChange:ae}),(C==null?void 0:C.response)&&I.jsx(Ynr,{response:C.response,responseVariable:D,showResponseVariable:B,setShowResponseVariable:$,onChange:i,handleResponseVariableChange:he})]})]})}function NYt({value:n,onChange:i}){const{t:s}=jo(["common","nodes"]),c=typeof n=="string",d=!c&&typeof n=="object"&&n!==null?n:{},[g,b]=H.useState(c),w=S=>{if(b(S),S){const _=d.hours??0,A=d.minutes??0,C=d.seconds??0,O=d.milliseconds??0,L=[_,A,C].map(B=>B.toString().padStart(2,"0")).join(":"),D=O?`${L}.${O}`:L;i(D)}else if(c){const _=/^([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(?:\.(\d{1,3}))?$/.exec(n);if(_){const[,A,C,O,L]=_;i({hours:Number(A),minutes:Number(C),seconds:Number(O),...L?{milliseconds:Number(L)}:{}})}else i({})}},E=(S,_)=>{const A=_===""?void 0:Number(_),C={...d,[S]:Number.isNaN(A)?void 0:A};Object.keys(C).forEach(O=>{const L=C[O];L==null&&delete C[O]}),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:c?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 CYt({label:n,description:i,value:s,onChange:c}){const{t:d}=jo(["common","nodes"]);return I.jsx(No,{label:n??d("nodes:durationField.label"),description:i||d("nodes:durationField.description"),children:I.jsx(NYt,{value:s,onChange:c})})}var YOe="rovingFocusGroup.onEntryFocus",srr={bubbles:!1,cancelable:!0},Uz="RovingFocusGroup",[sLe,IYt,arr]=Yae(Uz),[crr,ece]=Nw(Uz,[arr]),[urr,lrr]=crr(Uz),RYt=H.forwardRef((n,i)=>I.jsx(sLe.Provider,{scope:n.__scopeRovingFocusGroup,children:I.jsx(sLe.Slot,{scope:n.__scopeRovingFocusGroup,children:I.jsx(drr,{...n,ref:i})})}));RYt.displayName=Uz;var drr=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,orientation:c,loop:d=!1,dir:g,currentTabStopId:b,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:E,onEntryFocus:S,preventScrollOnEntryFocus:_=!1,...A}=n,C=H.useRef(null),O=ps(i,C),L=Bz(g),[D,B]=G2({prop:b,defaultProp:w??null,onChange:E,caller:Uz}),[$,P]=H.useState(!1),j=q2(S),z=IYt(s),ee=H.useRef(!1),[ne,Q]=H.useState(0);return H.useEffect(()=>{const ae=C.current;if(ae)return ae.addEventListener(YOe,j),()=>ae.removeEventListener(YOe,j)},[j]),I.jsx(urr,{scope:s,orientation:c,dir:L,loop:d,currentTabStopId:D,onItemFocus:H.useCallback(ae=>B(ae),[B]),onItemShiftTab:H.useCallback(()=>P(!0),[]),onFocusableItemAdd:H.useCallback(()=>Q(ae=>ae+1),[]),onFocusableItemRemove:H.useCallback(()=>Q(ae=>ae-1),[]),children:I.jsx(no.div,{tabIndex:$||ne===0?-1:0,"data-orientation":c,...A,ref:O,style:{outline:"none",...n.style},onMouseDown:Dr(n.onMouseDown,()=>{ee.current=!0}),onFocus:Dr(n.onFocus,ae=>{const he=!ee.current;if(ae.target===ae.currentTarget&&he&&!$){const pe=new CustomEvent(YOe,srr);if(ae.currentTarget.dispatchEvent(pe),!pe.defaultPrevented){const ue=z().filter(Se=>Se.focusable),fe=ue.find(Se=>Se.active),K=ue.find(Se=>Se.id===D),De=[fe,K,...ue].filter(Boolean).map(Se=>Se.ref.current);LYt(De,_)}}ee.current=!1}),onBlur:Dr(n.onBlur,()=>P(!1))})})}),OYt="RovingFocusGroupItem",DYt=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,focusable:c=!0,active:d=!1,tabStopId:g,children:b,...w}=n,E=Bh(),S=g||E,_=lrr(OYt,s),A=_.currentTabStopId===S,C=IYt(s),{onFocusableItemAdd:O,onFocusableItemRemove:L,currentTabStopId:D}=_;return H.useEffect(()=>{if(c)return O(),()=>L()},[c,O,L]),I.jsx(sLe.ItemSlot,{scope:s,id:S,focusable:c,active:d,children:I.jsx(no.span,{tabIndex:A?0:-1,"data-orientation":_.orientation,...w,ref:i,onMouseDown:Dr(n.onMouseDown,B=>{c?_.onItemFocus(S):B.preventDefault()}),onFocus:Dr(n.onFocus,()=>_.onItemFocus(S)),onKeyDown:Dr(n.onKeyDown,B=>{if(B.key==="Tab"&&B.shiftKey){_.onItemShiftTab();return}if(B.target!==B.currentTarget)return;const $=prr(B,_.orientation,_.dir);if($!==void 0){if(B.metaKey||B.ctrlKey||B.altKey||B.shiftKey)return;B.preventDefault();let j=C().filter(z=>z.focusable).map(z=>z.ref.current);if($==="last")j.reverse();else if($==="prev"||$==="next"){$==="prev"&&j.reverse();const z=j.indexOf(B.currentTarget);j=_.loop?grr(j,z+1):j.slice(z+1)}setTimeout(()=>LYt(j))}}),children:typeof b=="function"?b({isCurrentTabStop:A,hasTabStop:D!=null}):b})})});DYt.displayName=OYt;var frr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hrr(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function prr(n,i,s){const c=hrr(n.key,s);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(c))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(c)))return frr[c]}function LYt(n,i=!1){const s=document.activeElement;for(const c of n)if(c===s||(c.focus({preventScroll:i}),document.activeElement!==s))return}function grr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}var MYt=RYt,PYt=DYt;function brr(n){const i=mrr(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(yrr);if(E){const S=E.props.children,_=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,_):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function mrr(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Err(d),w=vrr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var wrr=Symbol("radix.slottable");function yrr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===wrr}function vrr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Err(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.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 aLe=["Enter"," "],Srr=["ArrowDown","PageUp","Home"],jYt=["ArrowUp","PageDown","End"],Trr=[...Srr,...jYt],Arr={ltr:[...aLe,"ArrowRight"],rtl:[...aLe,"ArrowLeft"]},_rr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hz="Menu",[fz,xrr,krr]=Yae(Hz),[LR,FYt]=Nw(Hz,[krr,UM,ece]),tce=UM(),$Yt=ece(),[Nrr,MR]=LR(Hz),[Crr,zz]=LR(Hz),BYt=n=>{const{__scopeMenu:i,open:s=!1,children:c,dir:d,onOpenChange:g,modal:b=!0}=n,w=tce(i),[E,S]=H.useState(null),_=H.useRef(!1),A=q2(g),C=Bz(d);return H.useEffect(()=>{const O=()=>{_.current=!0,document.addEventListener("pointerdown",L,{capture:!0,once:!0}),document.addEventListener("pointermove",L,{capture:!0,once:!0})},L=()=>_.current=!1;return document.addEventListener("keydown",O,{capture:!0}),()=>{document.removeEventListener("keydown",O,{capture:!0}),document.removeEventListener("pointerdown",L,{capture:!0}),document.removeEventListener("pointermove",L,{capture:!0})}},[]),I.jsx(aMe,{...w,children:I.jsx(Nrr,{scope:i,open:s,onOpenChange:A,content:E,onContentChange:S,children:I.jsx(Crr,{scope:i,onClose:H.useCallback(()=>A(!1),[A]),isUsingKeyboardRef:_,dir:C,modal:b,children:c})})})};BYt.displayName=Hz;var Irr="MenuAnchor",e9e=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n,d=tce(s);return I.jsx(Tae,{...d,...c,ref:i})});e9e.displayName=Irr;var t9e="MenuPortal",[Rrr,UYt]=LR(t9e,{forceMount:void 0}),HYt=n=>{const{__scopeMenu:i,forceMount:s,children:c,container:d}=n,g=MR(t9e,i);return I.jsx(Rrr,{scope:i,forceMount:s,children:I.jsx(Cw,{present:s||g.open,children:I.jsx(Oz,{asChild:!0,container:d,children:c})})})};HYt.displayName=t9e;var Aw="MenuContent",[Orr,n9e]=LR(Aw),zYt=H.forwardRef((n,i)=>{const s=UYt(Aw,n.__scopeMenu),{forceMount:c=s.forceMount,...d}=n,g=MR(Aw,n.__scopeMenu),b=zz(Aw,n.__scopeMenu);return I.jsx(fz.Provider,{scope:n.__scopeMenu,children:I.jsx(Cw,{present:c||g.open,children:I.jsx(fz.Slot,{scope:n.__scopeMenu,children:b.modal?I.jsx(Drr,{...d,ref:i}):I.jsx(Lrr,{...d,ref:i})})})})}),Drr=H.forwardRef((n,i)=>{const s=MR(Aw,n.__scopeMenu),c=H.useRef(null),d=ps(i,c);return H.useEffect(()=>{const g=c.current;if(g)return lae(g)},[]),I.jsx(r9e,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:Dr(n.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),Lrr=H.forwardRef((n,i)=>{const s=MR(Aw,n.__scopeMenu);return I.jsx(r9e,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),Mrr=brr("MenuContent.ScrollLock"),r9e=H.forwardRef((n,i)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:g,onCloseAutoFocus:b,disableOutsidePointerEvents:w,onEntryFocus:E,onEscapeKeyDown:S,onPointerDownOutside:_,onFocusOutside:A,onInteractOutside:C,onDismiss:O,disableOutsideScroll:L,...D}=n,B=MR(Aw,s),$=zz(Aw,s),P=tce(s),j=$Yt(s),z=xrr(s),[ee,ne]=H.useState(null),Q=H.useRef(null),ae=ps(i,Q,B.onContentChange),he=H.useRef(0),pe=H.useRef(""),ue=H.useRef(0),fe=H.useRef(null),K=H.useRef("right"),ge=H.useRef(0),De=L?Dz:H.Fragment,Se=L?{as:Mrr,allowPinchZoom:!0}:void 0,Re=xe=>{var Et,Dt;const We=pe.current+xe,ut=z().filter(Yt=>!Yt.disabled),Be=document.activeElement,bt=(Et=ut.find(Yt=>Yt.ref.current===Be))==null?void 0:Et.textValue,Nt=ut.map(Yt=>Yt.textValue),pt=Wrr(Nt,We,bt),Kt=(Dt=ut.find(Yt=>Yt.textValue===pt))==null?void 0:Dt.ref.current;(function Yt(Ln){pe.current=Ln,window.clearTimeout(he.current),Ln!==""&&(he.current=window.setTimeout(()=>Yt(""),1e3))})(We),Kt&&setTimeout(()=>Kt.focus())};H.useEffect(()=>()=>window.clearTimeout(he.current),[]),cae();const Ae=H.useCallback(xe=>{var ut,Be;return K.current===((ut=fe.current)==null?void 0:ut.side)&&Yrr(xe,(Be=fe.current)==null?void 0:Be.area)},[]);return I.jsx(Orr,{scope:s,searchRef:pe,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:ue,onPointerGraceIntentChange:H.useCallback(xe=>{fe.current=xe},[]),children:I.jsx(De,{...Se,children:I.jsx(Rz,{asChild:!0,trapped:d,onMountAutoFocus:Dr(g,xe=>{var We;xe.preventDefault(),(We=Q.current)==null||We.focus({preventScroll:!0})}),onUnmountAutoFocus:b,children:I.jsx(Iz,{asChild:!0,disableOutsidePointerEvents:w,onEscapeKeyDown:S,onPointerDownOutside:_,onFocusOutside:A,onInteractOutside:C,onDismiss:O,children:I.jsx(MYt,{asChild:!0,...j,dir:$.dir,orientation:"vertical",loop:c,currentTabStopId:ee,onCurrentTabStopIdChange:ne,onEntryFocus:Dr(E,xe=>{$.isUsingKeyboardRef.current||xe.preventDefault()}),preventScrollOnEntryFocus:!0,children:I.jsx(cMe,{role:"menu","aria-orientation":"vertical","data-state":oJt(B.open),"data-radix-menu-content":"",dir:$.dir,...P,...D,ref:ae,style:{outline:"none",...D.style},onKeyDown:Dr(D.onKeyDown,xe=>{const ut=xe.target.closest("[data-radix-menu-content]")===xe.currentTarget,Be=xe.ctrlKey||xe.altKey||xe.metaKey,bt=xe.key.length===1;ut&&(xe.key==="Tab"&&xe.preventDefault(),!Be&&bt&&Re(xe.key));const Nt=Q.current;if(xe.target!==Nt||!Trr.includes(xe.key))return;xe.preventDefault();const Kt=z().filter(Et=>!Et.disabled).map(Et=>Et.ref.current);jYt.includes(xe.key)&&Kt.reverse(),qrr(Kt)}),onBlur:Dr(n.onBlur,xe=>{xe.currentTarget.contains(xe.target)||(window.clearTimeout(he.current),pe.current="")}),onPointerMove:Dr(n.onPointerMove,hz(xe=>{const We=xe.target,ut=ge.current!==xe.clientX;if(xe.currentTarget.contains(We)&&ut){const Be=xe.clientX>ge.current?"right":"left";K.current=Be,ge.current=xe.clientX}}))})})})})})})});zYt.displayName=Aw;var Prr="MenuGroup",i9e=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{role:"group",...c,ref:i})});i9e.displayName=Prr;var jrr="MenuLabel",GYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{...c,ref:i})});GYt.displayName=jrr;var Tse="MenuItem",d$t="menu.itemSelect",nce=H.forwardRef((n,i)=>{const{disabled:s=!1,onSelect:c,...d}=n,g=H.useRef(null),b=zz(Tse,n.__scopeMenu),w=n9e(Tse,n.__scopeMenu),E=ps(i,g),S=H.useRef(!1),_=()=>{const A=g.current;if(!s&&A){const C=new CustomEvent(d$t,{bubbles:!0,cancelable:!0});A.addEventListener(d$t,O=>c==null?void 0:c(O),{once:!0}),DGt(A,C),C.defaultPrevented?S.current=!1:b.onClose()}};return I.jsx(qYt,{...d,ref:E,disabled:s,onClick:Dr(n.onClick,_),onPointerDown:A=>{var C;(C=n.onPointerDown)==null||C.call(n,A),S.current=!0},onPointerUp:Dr(n.onPointerUp,A=>{var C;S.current||(C=A.currentTarget)==null||C.click()}),onKeyDown:Dr(n.onKeyDown,A=>{const C=w.searchRef.current!=="";s||C&&A.key===" "||aLe.includes(A.key)&&(A.currentTarget.click(),A.preventDefault())})})});nce.displayName=Tse;var qYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,disabled:c=!1,textValue:d,...g}=n,b=n9e(Tse,s),w=$Yt(s),E=H.useRef(null),S=ps(i,E),[_,A]=H.useState(!1),[C,O]=H.useState("");return H.useEffect(()=>{const L=E.current;L&&O((L.textContent??"").trim())},[g.children]),I.jsx(fz.ItemSlot,{scope:s,disabled:c,textValue:d??C,children:I.jsx(PYt,{asChild:!0,...w,focusable:!c,children:I.jsx(no.div,{role:"menuitem","data-highlighted":_?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...g,ref:S,onPointerMove:Dr(n.onPointerMove,hz(L=>{c?b.onItemLeave(L):(b.onItemEnter(L),L.defaultPrevented||L.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Dr(n.onPointerLeave,hz(L=>b.onItemLeave(L))),onFocus:Dr(n.onFocus,()=>A(!0)),onBlur:Dr(n.onBlur,()=>A(!1))})})})}),Frr="MenuCheckboxItem",VYt=H.forwardRef((n,i)=>{const{checked:s=!1,onCheckedChange:c,...d}=n;return I.jsx(XYt,{scope:n.__scopeMenu,checked:s,children:I.jsx(nce,{role:"menuitemcheckbox","aria-checked":Ase(s)?"mixed":s,...d,ref:i,"data-state":s9e(s),onSelect:Dr(d.onSelect,()=>c==null?void 0:c(Ase(s)?!0:!s),{checkForDefaultPrevented:!1})})})});VYt.displayName=Frr;var WYt="MenuRadioGroup",[$rr,Brr]=LR(WYt,{value:void 0,onValueChange:()=>{}}),KYt=H.forwardRef((n,i)=>{const{value:s,onValueChange:c,...d}=n,g=q2(c);return I.jsx($rr,{scope:n.__scopeMenu,value:s,onValueChange:g,children:I.jsx(i9e,{...d,ref:i})})});KYt.displayName=WYt;var YYt="MenuRadioItem",JYt=H.forwardRef((n,i)=>{const{value:s,...c}=n,d=Brr(YYt,n.__scopeMenu),g=s===d.value;return I.jsx(XYt,{scope:n.__scopeMenu,checked:g,children:I.jsx(nce,{role:"menuitemradio","aria-checked":g,...c,ref:i,"data-state":s9e(g),onSelect:Dr(c.onSelect,()=>{var b;return(b=d.onValueChange)==null?void 0:b.call(d,s)},{checkForDefaultPrevented:!1})})})});JYt.displayName=YYt;var o9e="MenuItemIndicator",[XYt,Urr]=LR(o9e,{checked:!1}),ZYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,forceMount:c,...d}=n,g=Urr(o9e,s);return I.jsx(Cw,{present:c||Ase(g.checked)||g.checked===!0,children:I.jsx(no.span,{...d,ref:i,"data-state":s9e(g.checked)})})});ZYt.displayName=o9e;var Hrr="MenuSeparator",QYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{role:"separator","aria-orientation":"horizontal",...c,ref:i})});QYt.displayName=Hrr;var zrr="MenuArrow",eJt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n,d=tce(s);return I.jsx(uMe,{...d,...c,ref:i})});eJt.displayName=zrr;var Grr="MenuSub",[D1r,tJt]=LR(Grr),sH="MenuSubTrigger",nJt=H.forwardRef((n,i)=>{const s=MR(sH,n.__scopeMenu),c=zz(sH,n.__scopeMenu),d=tJt(sH,n.__scopeMenu),g=n9e(sH,n.__scopeMenu),b=H.useRef(null),{pointerGraceTimerRef:w,onPointerGraceIntentChange:E}=g,S={__scopeMenu:n.__scopeMenu},_=H.useCallback(()=>{b.current&&window.clearTimeout(b.current),b.current=null},[]);return H.useEffect(()=>_,[_]),H.useEffect(()=>{const A=w.current;return()=>{window.clearTimeout(A),E(null)}},[w,E]),I.jsx(e9e,{asChild:!0,...S,children:I.jsx(qYt,{id:d.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":d.contentId,"data-state":oJt(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:Dr(n.onPointerMove,hz(A=>{g.onItemEnter(A),!A.defaultPrevented&&!n.disabled&&!s.open&&!b.current&&(g.onPointerGraceIntentChange(null),b.current=window.setTimeout(()=>{s.onOpenChange(!0),_()},100))})),onPointerLeave:Dr(n.onPointerLeave,hz(A=>{var O,L;_();const C=(O=s.content)==null?void 0:O.getBoundingClientRect();if(C){const D=(L=s.content)==null?void 0:L.dataset.side,B=D==="right",$=B?-5:5,P=C[B?"left":"right"],j=C[B?"right":"left"];g.onPointerGraceIntentChange({area:[{x:A.clientX+$,y:A.clientY},{x:P,y:C.top},{x:j,y:C.top},{x:j,y:C.bottom},{x:P,y:C.bottom}],side:D}),window.clearTimeout(w.current),w.current=window.setTimeout(()=>g.onPointerGraceIntentChange(null),300)}else{if(g.onTriggerLeave(A),A.defaultPrevented)return;g.onPointerGraceIntentChange(null)}})),onKeyDown:Dr(n.onKeyDown,A=>{var O;const C=g.searchRef.current!=="";n.disabled||C&&A.key===" "||Arr[c.dir].includes(A.key)&&(s.onOpenChange(!0),(O=s.content)==null||O.focus(),A.preventDefault())})})})});nJt.displayName=sH;var rJt="MenuSubContent",iJt=H.forwardRef((n,i)=>{const s=UYt(Aw,n.__scopeMenu),{forceMount:c=s.forceMount,...d}=n,g=MR(Aw,n.__scopeMenu),b=zz(Aw,n.__scopeMenu),w=tJt(rJt,n.__scopeMenu),E=H.useRef(null),S=ps(i,E);return I.jsx(fz.Provider,{scope:n.__scopeMenu,children:I.jsx(Cw,{present:c||g.open,children:I.jsx(fz.Slot,{scope:n.__scopeMenu,children:I.jsx(r9e,{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:_=>{var A;b.isUsingKeyboardRef.current&&((A=E.current)==null||A.focus()),_.preventDefault()},onCloseAutoFocus:_=>_.preventDefault(),onFocusOutside:Dr(n.onFocusOutside,_=>{_.target!==w.trigger&&g.onOpenChange(!1)}),onEscapeKeyDown:Dr(n.onEscapeKeyDown,_=>{b.onClose(),_.preventDefault()}),onKeyDown:Dr(n.onKeyDown,_=>{var O;const A=_.currentTarget.contains(_.target),C=_rr[b.dir].includes(_.key);A&&C&&(g.onOpenChange(!1),(O=w.trigger)==null||O.focus(),_.preventDefault())})})})})})});iJt.displayName=rJt;function oJt(n){return n?"open":"closed"}function Ase(n){return n==="indeterminate"}function s9e(n){return Ase(n)?"indeterminate":n?"checked":"unchecked"}function qrr(n){const i=document.activeElement;for(const s of n)if(s===i||(s.focus(),document.activeElement!==i))return}function Vrr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}function Wrr(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=Vrr(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 Krr(n,i){const{x:s,y:c}=n;let d=!1;for(let g=0,b=i.length-1;gc!=C>c&&s<(A-S)*(c-_)/(C-_)+S&&(d=!d)}return d}function Yrr(n,i){if(!i)return!1;const s={x:n.clientX,y:n.clientY};return Krr(s,i)}function hz(n){return i=>i.pointerType==="mouse"?n(i):void 0}var Jrr=BYt,Xrr=e9e,Zrr=HYt,Qrr=zYt,eir=i9e,tir=GYt,nir=nce,rir=VYt,iir=KYt,oir=JYt,sir=ZYt,air=QYt,cir=eJt,uir=nJt,lir=iJt,rce="DropdownMenu",[dir]=Nw(rce,[FYt]),Kg=FYt(),[fir,sJt]=dir(rce),aJt=n=>{const{__scopeDropdownMenu:i,children:s,dir:c,open:d,defaultOpen:g,onOpenChange:b,modal:w=!0}=n,E=Kg(i),S=H.useRef(null),[_,A]=G2({prop:d,defaultProp:g??!1,onChange:b,caller:rce});return I.jsx(fir,{scope:i,triggerId:Bh(),triggerRef:S,contentId:Bh(),open:_,onOpenChange:A,onOpenToggle:H.useCallback(()=>A(C=>!C),[A]),modal:w,children:I.jsx(Jrr,{...E,open:_,onOpenChange:A,dir:c,modal:w,children:s})})};aJt.displayName=rce;var cJt="DropdownMenuTrigger",uJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,disabled:c=!1,...d}=n,g=sJt(cJt,s),b=Kg(s);return I.jsx(Xrr,{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":c?"":void 0,disabled:c,...d,ref:zg(i,g.triggerRef),onPointerDown:Dr(n.onPointerDown,w=>{!c&&w.button===0&&w.ctrlKey===!1&&(g.onOpenToggle(),g.open||w.preventDefault())}),onKeyDown:Dr(n.onKeyDown,w=>{c||(["Enter"," "].includes(w.key)&&g.onOpenToggle(),w.key==="ArrowDown"&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(w.key)&&w.preventDefault())})})})});uJt.displayName=cJt;var hir="DropdownMenuPortal",lJt=n=>{const{__scopeDropdownMenu:i,...s}=n,c=Kg(i);return I.jsx(Zrr,{...c,...s})};lJt.displayName=hir;var dJt="DropdownMenuContent",fJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=sJt(dJt,s),g=Kg(s),b=H.useRef(!1);return I.jsx(Qrr,{id:d.contentId,"aria-labelledby":d.triggerId,...g,...c,ref:i,onCloseAutoFocus:Dr(n.onCloseAutoFocus,w=>{var E;b.current||(E=d.triggerRef.current)==null||E.focus(),b.current=!1,w.preventDefault()}),onInteractOutside:Dr(n.onInteractOutside,w=>{const E=w.detail.originalEvent,S=E.button===0&&E.ctrlKey===!0,_=E.button===2||S;(!d.modal||_)&&(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)"}})});fJt.displayName=dJt;var pir="DropdownMenuGroup",gir=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(eir,{...d,...c,ref:i})});gir.displayName=pir;var bir="DropdownMenuLabel",hJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(tir,{...d,...c,ref:i})});hJt.displayName=bir;var mir="DropdownMenuItem",pJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(nir,{...d,...c,ref:i})});pJt.displayName=mir;var wir="DropdownMenuCheckboxItem",gJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(rir,{...d,...c,ref:i})});gJt.displayName=wir;var yir="DropdownMenuRadioGroup",vir=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(iir,{...d,...c,ref:i})});vir.displayName=yir;var Eir="DropdownMenuRadioItem",bJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(oir,{...d,...c,ref:i})});bJt.displayName=Eir;var Sir="DropdownMenuItemIndicator",mJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(sir,{...d,...c,ref:i})});mJt.displayName=Sir;var Tir="DropdownMenuSeparator",wJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(air,{...d,...c,ref:i})});wJt.displayName=Tir;var Air="DropdownMenuArrow",_ir=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(cir,{...d,...c,ref:i})});_ir.displayName=Air;var xir="DropdownMenuSubTrigger",yJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(uir,{...d,...c,ref:i})});yJt.displayName=xir;var kir="DropdownMenuSubContent",vJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Kg(s);return I.jsx(lir,{...d,...c,ref:i,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vJt.displayName=kir;var Nir=aJt,Cir=uJt,Iir=lJt,EJt=fJt,SJt=hJt,TJt=pJt,AJt=gJt,_Jt=bJt,xJt=mJt,kJt=wJt,NJt=yJt,CJt=vJt;const IJt=Nir,RJt=Cir,Rir=H.forwardRef(({className:n,inset:i,children:s,...c},d)=>I.jsxs(NJt,{ref:d,className:nr("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",i&&"pl-8",n),...c,children:[s,I.jsx(C8n,{className:"ml-auto"})]}));Rir.displayName=NJt.displayName;const Oir=H.forwardRef(({className:n,...i},s)=>I.jsx(CJt,{ref:s,className:nr("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}));Oir.displayName=CJt.displayName;const a9e=H.forwardRef(({className:n,sideOffset:i=4,container:s,...c},d)=>I.jsx(Iir,{container:s,children:I.jsx(EJt,{ref:d,sideOffset:i,className:nr("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] data-[state=closed]:animate-out data-[state=open]:animate-in",n),...c})}));a9e.displayName=EJt.displayName;const cLe=H.forwardRef(({className:n,inset:i,...s},c)=>I.jsx(TJt,{ref:c,className:nr("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}));cLe.displayName=TJt.displayName;const OJt=H.forwardRef(({className:n,children:i,checked:s,...c},d)=>I.jsxs(AJt,{ref:d,className:nr("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,...c,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(xJt,{children:I.jsx(oN,{className:"h-4 w-4"})})}),i]}));OJt.displayName=AJt.displayName;const Dir=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(_Jt,{ref:c,className:nr("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(xJt,{children:I.jsx(F8n,{className:"h-2 w-2 fill-current"})})}),i]}));Dir.displayName=_Jt.displayName;const Lir=H.forwardRef(({className:n,inset:i,...s},c)=>I.jsx(SJt,{ref:c,className:nr("px-2 py-1.5 font-semibold text-sm",i&&"pl-8",n),...s}));Lir.displayName=SJt.displayName;const Mir=H.forwardRef(({className:n,...i},s)=>I.jsx(kJt,{ref:s,className:nr("-mx-1 my-1 h-px bg-muted",n),...i}));Mir.displayName=kJt.displayName;function KM({field:n,value:i,onChange:s,entities:c,domain:d,translations:g={},error:b}){const{t:w}=jo(["common"]),E=n.name,S=n.required??!1;let _=E,A="",C="";if("label"in n)_=n.label,A=n.description||"",C=n.placeholder||"";else if(d){const P=`component.${d}.device_automation.extra_fields.${E}`,j=`component.${d}.device_automation.extra_fields_descriptions.${E}`;_=g[P]||E.split("_").map(z=>z.charAt(0).toUpperCase()+z.slice(1)).join(" "),A=g[j]||"",console.log(`Field "${E}" in domain "${d}":`),console.log(` Label key: ${P} = ${g[P]||"(not found)"}`),console.log(` Desc key: ${j} = ${g[j]||"(not found)"}`),console.log(` Final label: ${_}`),console.log(` Final description: ${A}`)}else _=E.split("_").map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join(" "),console.log(`Field "${E}" with no domain - using formatted name: ${_}`);let O=null,L={};if("type"in n&&n.type)O=n.type;else if("selector"in n&&n.selector){const P=Object.keys(n.selector);P.length>0&&(O=P[0],L=n.selector[O]||{})}const D=typeof i=="string"?i:String(i??""),B=typeof i=="boolean"?i:!!i,$=()=>{switch(O){case"text":{if("multiple"in n&&n.multiple){const j=Array.isArray(i)?i:typeof i=="string"&&i?[i]:[];return I.jsx(oLe,{values:j,onChange:s,placeholder:C||"Add value..."})}return I.jsx(Na,{type:"text",value:D,onChange:j=>s(j.target.value),placeholder:C,required:S})}case"number":return I.jsx(xYt,{value:i,placeholder:C,required:S,onChange:s});case"boolean":return I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:B,onCheckedChange:s}),I.jsx("span",{className:"text-muted-foreground text-sm",children:w(B?"dynamicField.enabled":"dynamicField.disabled")})]});case"select":{const P=kYt("options"in n&&n.options?n.options:L.options);if("multiple"in n&&n.multiple||L.multiple===!0){const z=Array.isArray(i)?i:i?[i]:[],ee=()=>{var ne;return z.length===0?C||w("dynamicField.selectItems"):z.length===1?((ne=P.find(Q=>Q.value===z[0]))==null?void 0:ne.label)||z[0]:w("dynamicField.itemsSelected",{count:z.length})};return I.jsxs(IJt,{children:[I.jsx(RJt,{asChild:!0,children:I.jsxs(mi,{variant:"outline",className:"w-full justify-between font-normal",children:[I.jsx("span",{className:z.length===0?"text-muted-foreground":"",children:ee()}),I.jsx(oae,{className:"ml-2 h-4 w-4 opacity-50"})]})}),I.jsx(a9e,{className:"w-[var(--radix-dropdown-menu-trigger-width)]",children:P.map(ne=>{const Q=z.includes(ne.value);return I.jsx(OJt,{checked:Q,onCheckedChange:ae=>{s(ae?[...z,ne.value]:z.filter(he=>he!==ne.value))},children:ne.label},ne.value)})})]})}return I.jsxs(zp,{value:D,onValueChange:s,children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:C||"Select..."})}),I.jsx(Gh,{children:P.map(z=>I.jsx(eo,{value:z.value,children:z.label},z.value))})]})}case"entity":{if("multiple"in n&&n.multiple||L.multiple===!0){const j=Array.isArray(i)?i:typeof i=="string"&&i?i.split(",").map(z=>z.trim()):[];return I.jsx(Qae,{value:j,onChange:s,entities:c,placeholder:C||w("dynamicField.selectEntities")})}return I.jsx(Sse,{value:D,onChange:s,entities:c,placeholder:C||w("dynamicField.selectEntity")})}case"zone":return I.jsx(Sse,{value:D,onChange:s,entities:c,domainFilter:"zone",placeholder:C||w("dynamicField.selectZone")});case"template":return I.jsx(Bv,{value:D,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(NYt,{value:i??"",onChange:s});case"object":return I.jsx(Bv,{value:typeof i=="object"?JSON.stringify(i,null,2):D,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:D,onChange:P=>s(P.target.value),required:S});case"date":return I.jsx(Na,{type:"date",value:D,onChange:P=>s(P.target.value),required:S});default:return I.jsx(Na,{type:"text",value:D,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:[_,S&&I.jsx("span",{className:"ml-1 text-destructive",children:w("labels.requiredAsterisk")})]}),$(),I.jsx(H2,{message:b}),A&&I.jsx("p",{className:"text-muted-foreground text-xs",children:A})]})}const Pir={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 c9e(n){return Pir[n]||[]}function DJt(n){const i=c9e(n),s={condition:n};for(const c of i)c.default!==void 0&&(s[c.name]=c.default);return u9e(n)&&(s.conditions=[]),s}function u9e(n){return n==="and"||n==="or"||n==="not"}const jir=[{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 Fir({cond:n,onUpdate:i,entities:s}){const c=n.condition||"state",d=c9e(c);return d.length===0?null:I.jsx("div",{className:"space-y-2",children:d.map(g=>I.jsx(KM,{field:g,value:n[g.name],onChange:b=>i({...n,[g.name]:b}),entities:s},g.name))})}function $ir({cond:n,onUpdate:i,onRemove:s,entities:c,depth:d}){const g=n.condition||"state",b=u9e(g),{t:w}=jo(["common","nodes","panels"]),E=S=>{i(DJt(S))};return I.jsxs("div",{className:nr("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:jir.map(S=>I.jsx(eo,{value:S.value,children:w(S.labelKey)},S.value))})]}),I.jsx(mi,{size:"icon",variant:"ghost",onClick:s,className:"h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive",children:I.jsx(jM,{className:"h-4 w-4"})})]}),b?I.jsx(LJt,{conditions:n.conditions||[],onChange:S=>i({...n,conditions:S}),parentType:n.condition,depth:d+1}):I.jsx(Fir,{cond:n,onUpdate:i,entities:c})]})}const LJt=H.memo(function({conditions:i,onChange:s,depth:c=0}){const{hass:d}=Wg(),g=d?Object.values(d.states):[],{t:b}=jo(["common","nodes","panels"]),w=()=>{s([...i,{condition:"state",entity_id:"",state:""}])},E=_=>{s(i.filter((A,C)=>C!==_))},S=(_,A)=>{s(i.map((C,O)=>O===_?A:C))};return I.jsxs("div",{className:nr("space-y-2",c>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((_,A)=>I.jsx($ir,{cond:_,onUpdate:C=>S(A,C),onRemove:()=>E(A),entities:g,depth:c},A)),I.jsxs(mi,{size:"sm",variant:"outline",onClick:w,className:"w-full",children:[I.jsx(sae,{className:"mr-1 h-4 w-4"}),b("panels:conditionGroupEditor.addCondition")]})]})});function MJt({value:n,onChange:i,label:s="",required:c=!1,placeholder:d=""}){const{t:g}=jo(["common"]),{hass:b}=Wg(),[w,E]=H.useState(n);H.useEffect(()=>{E(n)},[n]);const S=(b==null?void 0:b.devices)??{},_=Object.keys(S).length>0,A=n&&_&&!S[n],C=()=>{if(!n)return;const O=S[n];return O?O.name_by_user||O.name||O.id:n};return I.jsx(No,{label:s||g("labels.device"),required:c,children:_?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(O=>I.jsx(eo,{value:O.id,children:O.name_by_user||O.name||O.id},O.id))})]}):I.jsxs(I.Fragment,{children:[I.jsx(Na,{type:"text",value:w,onChange:O=>{E(O.target.value),i(O.target.value)},placeholder:g("deviceSelector.enterId")}),I.jsx("p",{className:"text-muted-foreground text-xs",children:g("deviceSelector.noDevices")})]})})}function Bir({node:n,onChange:i}){const s=jh(n,"device_id"),c=jh(n,"domain"),d=jh(n,"type");return I.jsxs(I.Fragment,{children:[I.jsx(MJt,{value:s,onChange:g=>i("device_id",g),label:"Device",required:!0,placeholder:"Select device..."}),I.jsx(No,{label:"Domain",required:!0,description:"Device integration domain",children:I.jsx(Na,{type:"text",value:c,onChange:g=>i("domain",g.target.value),placeholder:"e.g., binary_sensor, sensor"})}),I.jsx(No,{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 Uir({node:n,onChange:i,entities:s}){const{t:c}=jo(["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=u9e(g),S=A=>{const C=DJt(A);for(const[O,L]of Object.entries(C))i(O,L)},_=()=>g==="device"?I.jsx(Bir,{node:n,onChange:i}):E?null:c9e(g).map(C=>I.jsx(KM,{field:C,value:b[C.name],onChange:O=>i(C.name,O),entities:s,error:d(C.name)},C.name));return I.jsxs(I.Fragment,{children:[I.jsx(No,{label:c("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(eo,{value:"state",children:c("nodes:conditions.types.state")}),I.jsx(eo,{value:"numeric_state",children:c("nodes:conditions.types.numeric_state")}),I.jsx(eo,{value:"template",children:c("nodes:conditions.types.template")}),I.jsx(eo,{value:"time",children:c("nodes:conditions.types.time")}),I.jsx(eo,{value:"sun",children:c("nodes:conditions.types.sun")}),I.jsx(eo,{value:"zone",children:c("nodes:conditions.types.zone")}),I.jsx(eo,{value:"device",children:c("nodes:conditions.types.device")}),I.jsx(eo,{value:"trigger",children:c("nodes:conditions.types.trigger")}),I.jsx(eo,{value:"and",children:c("nodes:conditions.types.and")}),I.jsx(eo,{value:"or",children:c("nodes:conditions.types.or")}),I.jsx(eo,{value:"not",children:c("nodes:conditions.types.not")})]})]})}),_(),(E||w)&&I.jsx(No,{label:c("nodes:conditions.nestedConditions"),children:I.jsx(LJt,{conditions:b.conditions||[],onChange:A=>i("conditions",A),parentType:E?g:"and"})})]})}function Hir({node:n,onChange:i}){const{getFieldError:s}=gb(n.id);return I.jsxs(I.Fragment,{children:[I.jsx(CYt,{label:"Delay",value:n.data.delay,onChange:c=>i("delay",c)}),I.jsx(H2,{message:s("delay")})]})}function zir({node:n,onChange:i}){const{t:s}=jo(["nodes"]),{getFieldError:c}=gb(n.id),d=C5(n,"variables",{}),g=Object.entries(d),b=()=>{const _=Object.keys(d);let A="variable",C=1;for(;_.includes(A);)A=`variable_${C}`,C++;i("variables",{...d,[A]:""})},w=(_,A)=>{if(_===A)return;const C={};for(const[O,L]of Object.entries(d))O===_?C[A]=L:C[O]=L;i("variables",C)},E=(_,A)=>{i("variables",{...d,[_]:A})},S=_=>{const A={...d};delete A[_],i("variables",A)};return I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:c("variables")}),g.length===0?I.jsx("p",{className:"text-muted-foreground text-sm",children:s("nodes:setVariablesFields.empty")}):g.map(([_,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(mi,{variant:"ghost",size:"sm",onClick:()=>S(_),className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(jM,{className:"h-3.5 w-3.5"})})]}),I.jsxs("div",{className:"space-y-3",children:[I.jsx(No,{label:s("nodes:setVariablesFields.name"),children:I.jsx(Na,{value:_,onChange:O=>w(_,O.target.value),placeholder:s("nodes:setVariablesFields.namePlaceholder"),className:"font-mono text-sm"})}),I.jsx(No,{label:s("nodes:setVariablesFields.value"),description:s("nodes:setVariablesFields.valueDescription"),children:I.jsx(Bv,{value:String(A??""),onChange:O=>E(_,O.target.value),placeholder:s("nodes:setVariablesFields.valuePlaceholder"),className:"font-mono text-sm"})})]})]},`${_}-${C}`)),I.jsxs(mi,{variant:"outline",onClick:b,className:"w-full gap-2",size:"sm",children:[I.jsx(sae,{className:"h-4 w-4"}),s("nodes:setVariablesFields.addVariable")]})]})}const PJt={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 ice(n){return PJt[n]||[]}function Gir(n){const i=ice(n),s={trigger:n};for(const c of i)c.default!==void 0&&(s[c.name]=c.default);return s}function qir(){const{hass:n}=Wg(),i=H.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),[];try{return await n.callWS({type:"device_automation/trigger/list",device_id:c})||[]}catch(d){throw console.error("Failed to fetch device triggers:",d),d}},[n]),s=H.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),{extra_fields:[]};try{return await n.callWS({type:"device_automation/trigger/capabilities",trigger:c})||{extra_fields:[]}}catch(d){throw console.error("Failed to fetch trigger capabilities:",d),d}},[n]);return{getDeviceTriggers:i,getTriggerCapabilities:s}}const Vir=Sc({resources:yf(Zt(),Dc()).transform(n=>{const i={};for(const[s,c]of Object.entries(n))typeof c=="string"&&(i[s]=c);return i})});function Wir(){const{hass:n}=Wg(),[i,s]=H.useState({}),[c,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 _ of Object.values(w))typeof _=="object"&&_!==null&&Object.assign(S,_);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=Vir.safeParse(E);S.success&&s(S.data.resources)}catch{}finally{d(!1)}})()},[n]),{translations:H.useMemo(()=>({...g,...i}),[g,i]),isLoading:c}}function JOe(n){const i=[n.type];return n.subtype&&i.push(n.subtype),n.entity_id&&i.push(n.entity_id),i.join("::")}function Kir(n,i){const s=`component.${n.domain}.device_automation.trigger_type.${n.type}`,c=i[s]??n.type;if(n.subtype){const d=`component.${n.domain}.device_automation.trigger_subtype.${n.subtype}`,g=i[d]??n.subtype;return`${c}: ${g}`}return c}function Yir({node:n,onChange:i,entities:s}){const{t:c}=jo(["common","nodes","errors"]),{getDeviceTriggers:d,getTriggerCapabilities:g}=qir(),{translations:b}=Wir(),[w,E]=H.useState([]),[S,_]=H.useState([]),[A,C]=H.useState(!1),O=jh(n,"device_id"),L=jh(n,"type"),D=jh(n,"domain"),B=jh(n,"entity_id"),$=jh(n,"subtype"),P=(()=>{const j=[L].filter(Boolean);return $&&j.push($),B&&j.push(B),j.join("::")})();return H.useEffect(()=>{if(!O){E([]);return}C(!0),d(O).then(j=>{E(j)}).catch(j=>{console.error(c("errors:api.loadDeviceTriggersFailed"),j),E([])}).finally(()=>{C(!1)})},[O,d,c]),H.useEffect(()=>{if(!O||!L){_([]);return}const j=w.find(z=>z.type===L&&z.domain===D&&(z.subtype??"")===($??"")&&(z.entity_id??"")===(B??""));if(!j){_([]);return}g(j).then(z=>{_(z.extra_fields||[])}).catch(z=>{console.error(c("errors:api.loadTriggerCapabilitiesFailed"),z),_([])})},[O,L,$,B,D,w,g,c]),I.jsxs(I.Fragment,{children:[I.jsx(MJt,{value:O,onChange:j=>i("device_id",j),label:c("labels.device"),required:!0,placeholder:c("placeholders.selectDevice")}),O&&w.length>0?I.jsx(No,{label:c("labels.triggerType"),required:!0,children:I.jsxs(zp,{value:P,onValueChange:j=>{const z=w.find(ee=>JOe(ee)===j);z&&(i("type",z.type),i("domain",z.domain),i("subtype",z.subtype??void 0),i("entity_id",z.entity_id??void 0))},children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:c("placeholders.selectTriggerType")})}),I.jsx(Gh,{children:w.map(j=>I.jsx(eo,{value:JOe(j),children:Kir(j,b)},JOe(j)))})]})}):O&&L&&I.jsx(No,{label:"Trigger Type",children:I.jsxs("div",{className:"truncate rounded-md border bg-muted px-3 py-2 font-mono text-sm",children:[L,$&&I.jsxs("span",{className:"text-muted-foreground",children:[" · ",$]}),D&&I.jsxs("span",{className:"text-muted-foreground",children:[" ",`(${D})`]})]})}),A&&I.jsx("div",{className:"text-muted-foreground text-sm",children:c("status.loadingTriggers")}),S.map(j=>I.jsx(KM,{field:j,value:n.data[j.name],onChange:z=>i(j.name,z),entities:s,domain:D,translations:b},j.name))]})}const Jir={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"]},jJt=["on","off","unavailable","unknown"];function Xir(n,i){const s=i.find(b=>b.entity_id===n),c=n.split(".")[0],d=Jir[c]??jJt,g=new Set(d);return s!=null&&s.state?[s.state,...d.filter(b=>b!==s.state)]:Array.from(g)}function f$t({value:n,onChange:i,suggestions:s,placeholder:c}){const{t:d}=jo(["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]),_=w&&!s.includes(w),A=C=>{i(C===n?"":C),b(!1),E("")};return I.jsxs(dMe,{open:g,onOpenChange:b,children:[I.jsx(oVt,{asChild:!0,children:I.jsxs(mi,{variant:"outline",role:"combobox","aria-expanded":g,className:nr("flex w-full justify-between",!n&&"text-muted-foreground"),children:[I.jsx("span",{className:"truncate",children:n||c}),I.jsx(EGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(_ae,{className:"w-[286px] p-0",children:I.jsxs(pae,{shouldFilter:!1,children:[I.jsx(gae,{placeholder:c,value:w,onValueChange:E}),I.jsxs(bae,{children:[S.length===0&&!_&&I.jsx(mae,{children:d("combobox.noOptions")}),_&&I.jsx(nz,{children:I.jsxs(rz,{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:nr("ml-auto h-4 w-4",n===w?"opacity-100":"opacity-0")})]})}),S.length>0&&I.jsx(nz,{children:S.map(C=>I.jsxs(rz,{value:C,onSelect:A,children:[I.jsx("span",{className:"font-mono",children:C}),I.jsx(oN,{className:nr("ml-auto h-4 w-4",n===C?"opacity-100":"opacity-0")})]},C))})]})]})})]})}function Zir({node:n,onChange:i,entities:s}){const{t:c}=jo(["nodes","common"]),{getFieldError:d}=gb(n.id),{entities:g}=Wg(),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"),_=jh(n,"from"),A=H.useMemo(()=>{if(E.length===0)return jJt;const O=new Set;for(const L of E)for(const D of Xir(L,b))O.add(D);return Array.from(O)},[E,b]),C=ice("state").find(O=>O.name==="for");return I.jsxs(I.Fragment,{children:[I.jsxs(No,{label:c("nodes:triggers.fields.entityId"),required:!0,children:[I.jsx(Qae,{value:E,onChange:O=>i("entity_id",O),entities:b,placeholder:c("common:placeholders.selectEntity")}),I.jsx(H2,{message:d("entity_id")})]}),I.jsx(No,{label:c("nodes:triggers.fields.toState"),children:I.jsx(f$t,{value:S,onChange:O=>i("to",O||void 0),suggestions:A,placeholder:c("nodes:triggers.fields.toStatePlaceholder")})}),I.jsx(No,{label:c("nodes:triggers.fields.fromState"),children:I.jsx(f$t,{value:_,onChange:O=>i("from",O||void 0),suggestions:A,placeholder:c("nodes:triggers.fields.fromStatePlaceholder")})}),C&&I.jsx(KM,{field:C,value:n.data[C.name],onChange:O=>i(C.name,O),entities:b,error:d(C.name)})]})}function Qir({node:n,onChange:i,entities:s}){const{t:c}=jo(["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 _=Gir(S);for(const[A,C]of Object.entries(_))i(A,C);S!=="device"&&b&&i("device_id",void 0)};return I.jsxs(I.Fragment,{children:[I.jsx(No,{label:c("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(eo,{value:"state",children:c("nodes:triggers.platforms.state")}),I.jsx(eo,{value:"numeric_state",children:c("nodes:triggers.platforms.numeric_state")}),I.jsx(eo,{value:"time",children:c("nodes:triggers.platforms.time")}),I.jsx(eo,{value:"time_pattern",children:c("nodes:triggers.platforms.time_pattern")}),I.jsx(eo,{value:"sun",children:c("nodes:triggers.platforms.sun")}),I.jsx(eo,{value:"event",children:c("nodes:triggers.platforms.event")}),I.jsx(eo,{value:"mqtt",children:c("nodes:triggers.platforms.mqtt")}),I.jsx(eo,{value:"webhook",children:c("nodes:triggers.platforms.webhook")}),I.jsx(eo,{value:"zone",children:c("nodes:triggers.platforms.zone")}),I.jsx(eo,{value:"template",children:c("nodes:triggers.platforms.template")}),I.jsx(eo,{value:"homeassistant",children:c("nodes:triggers.platforms.homeassistant")}),I.jsx(eo,{value:"device",children:c("nodes:triggers.platforms.device")})]})]})}),I.jsx(eor,{effectiveTriggerType:w,deviceId:b,node:n,onChange:i,entities:s,getFieldError:d})]})}function eor({effectiveTriggerType:n,deviceId:i,node:s,onChange:c,entities:d,getFieldError:g}){return n==="device"||i?I.jsx(Yir,{node:s,onChange:c,entities:d}):n==="state"?I.jsx(Zir,{node:s,onChange:c,entities:d}):ice(n).map(w=>I.jsx(KM,{field:w,value:s.data[w.name],onChange:E=>c(w.name,E),entities:d,error:g(w.name)},w.name))}function tor({node:n,onChange:i}){const{t:s}=jo(["nodes"]),{getFieldError:c,getRootError:d}=gb(n.id),g=po(L=>L.addWaitTimeoutBranch),b=jh(n,"wait_template"),w=QMe(n,"wait_for_trigger"),E=w!==void 0?"trigger":"template",S=d(),_=L=>{L==="template"?(i("wait_for_trigger",void 0),i("wait_template","")):(i("wait_template",void 0),i("wait_for_trigger",[{trigger:"state"}]))},A=(L,D,B)=>{if(!w)return;const $=[...w];$[L]={...$[L],[D]:B},i("wait_for_trigger",$)},C=()=>{const L=[...w||[],{trigger:"state"}];i("wait_for_trigger",L)},O=L=>{if(!w)return;const D=w.filter((B,$)=>$!==L);i("wait_for_trigger",D)};return I.jsxs(I.Fragment,{children:[I.jsx(H2,{message:S}),I.jsx(No,{label:s("nodes:wait.waitType"),description:s("nodes:wait.waitTypeDescription"),children:I.jsxs(zp,{value:E,onValueChange:_,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(eo,{value:"template",children:s("nodes:wait.types.template")}),I.jsx(eo,{value:"trigger",children:s("nodes:wait.types.triggers")})]})]})}),E==="template"&&I.jsxs(No,{label:s("nodes:wait.waitTemplate"),required:!0,description:s("nodes:wait.waitTemplateDescription"),children:[I.jsx(Bv,{value:b||"",onChange:L=>i("wait_template",L.target.value),className:"font-mono",rows:3,placeholder:s("nodes:placeholders.waitTemplate")}),I.jsx(H2,{message:c("wait_template")})]}),E==="trigger"&&I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:c("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((L,D)=>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:D+1,platform:L.trigger})}),I.jsx(mi,{variant:"ghost",size:"sm",onClick:()=>O(D),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(jM,{})})]}),I.jsx(No,{label:s("nodes:wait.triggerPlatformLabel","Platform"),children:I.jsxs(zp,{value:L.trigger,onValueChange:B=>A(D,"trigger",B),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsx(Gh,{children:Object.keys(PJt).map(B=>I.jsx(eo,{value:B,children:B},B))})]})}),ice(L.trigger).map(B=>I.jsx(KM,{field:B,value:L[B.name],onChange:$=>A(D,B.name,$)},B.name))]},D))]}),I.jsx(mi,{onClick:C,variant:"outline",size:"sm",children:s("nodes:wait.addTrigger")})]}),I.jsx(CYt,{label:s("nodes:wait.timeoutLabel"),description:s("nodes:wait.timeoutDescription"),value:n.data.timeout??"",onChange:L=>i("timeout",L||void 0)}),n.data.timeout&&I.jsxs(I.Fragment,{children:[I.jsx(No,{label:s("nodes:wait.continueOnTimeout"),description:s("nodes:wait.continueOnTimeoutDescription"),children:I.jsx(J2,{checked:n.data.continue_on_timeout??!0,onCheckedChange:L=>i("continue_on_timeout",L)})}),I.jsx(No,{label:s("nodes:wait.branchOnTimeout"),description:s("nodes:wait.branchOnTimeoutDescription"),children:I.jsxs(mi,{variant:"outline",size:"sm",onClick:()=>g(n.id),className:"gap-2",children:[I.jsx(G5e,{className:"h-4 w-4"}),s("nodes:wait.addTimeoutBranch")]})})]})]})}function nor({node:n,onChange:i,entities:s}){switch(n.type){case"trigger":return I.jsx(Qir,{node:n,onChange:i,entities:s});case"condition":return I.jsx(Uir,{node:n,onChange:i,entities:s});case"action":return I.jsx(orr,{node:n,onChange:i,entities:s});case"delay":return I.jsx(Hir,{node:n,onChange:i});case"wait":return I.jsx(tor,{node:n,onChange:i});case"set_variables":return I.jsx(zir,{node:n,onChange:i});default:return null}}const uLe={key:"",value:"",type:"string",isAdding:!1};function ror(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{...uLe};case"reset":return{...uLe};default:return n}}function ior(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 oor(n){const[i,s]=H.useReducer(ror,uLe);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=ior(i.value,i.type);n(i.key,d),s({type:"reset"})}}}function sor({node:n,handledProperties:i,onChange:s,onDelete:c}){const{t:d}=jo(["common","nodes","errors"]),b=oor((_,A)=>{s(_,A)}),w=n.data,E=Object.entries(w).filter(([_,A])=>!i.has(_)&&!jDe(_)&&A!==void 0&&A!==null&&A!=="");if(E.length===0&&!b.state.isAdding)return null;const S=()=>{try{b.handleAdd()}catch(_){alert(_ instanceof Error?_.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(mi,{variant:"ghost",size:"sm",onClick:b.startAdding,className:"h-6 px-2 text-xs",children:[I.jsx(sae,{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(No,{label:d("nodes:panel.propertyName"),required:!0,children:I.jsx(Na,{type:"text",value:b.state.key,onChange:_=>b.setKey(_.target.value),placeholder:d("nodes:placeholders.customProperty")})}),I.jsx(No,{label:d("nodes:panel.type"),children:I.jsxs(zp,{value:b.state.type,onValueChange:_=>b.setType(_),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(eo,{value:"string",children:d("nodes:triggers.dataTypes.string")}),I.jsx(eo,{value:"number",children:d("nodes:triggers.dataTypes.number")}),I.jsx(eo,{value:"boolean",children:d("nodes:triggers.dataTypes.boolean")}),I.jsx(eo,{value:"array",children:d("nodes:triggers.dataTypes.json")})]})]})}),I.jsx(No,{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:_=>b.setValue(_?"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(Bv,{value:b.state.value,onChange:_=>b.setValue(_.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:_=>b.setValue(_.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(mi,{variant:"ghost",size:"sm",onClick:b.cancelAdding,children:d("buttons.cancel")}),I.jsx(mi,{size:"sm",onClick:S,children:d("nodes:panel.addProperty")})]})]}),E.map(([_,A])=>I.jsx(aor,{name:_,value:A,onChange:C=>s(_,C),onDelete:()=>c(_)},_))]})}function aor({name:n,value:i,onChange:s,onDelete:c}){const{t:d}=jo(["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(mi,{variant:"ghost",size:"sm",onClick:c,className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10",children:I.jsx(jM,{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(Bv,{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(Bv,{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 cor(){const{t:n}=jo(["common","nodes"]),i=po(O=>O.selectedNodeId),s=po(O=>O.nodes),c=po(O=>O.updateNodeData),d=po(O=>O.removeNode),{hass:g,entities:b}=Wg(),w=H.useMemo(()=>g!=null&&g.states&&Object.keys(g.states).length>0?Object.values(g.states).map(O=>({entity_id:O.entity_id,state:O.state,attributes:O.attributes||{},last_changed:O.last_changed||"",last_updated:O.last_updated||"",context:O.context})):b,[g,b]),E=H.useMemo(()=>s.find(O=>O.id===i),[s,i]),S=H.useMemo(()=>{if(!E)return c$t("trigger",[]);const O=c$t(E.type||"trigger",[]),L=E.data,D=typeof L.trigger=="string"?L.trigger:"",B=typeof L.device_id=="string"?L.device_id:"";if((D==="device"||B)&&(E.type==="trigger"||E.type==="condition")){const P=Object.keys(L);return new Set([...O,...P])}return O},[E]),{getFieldError:_}=gb((E==null?void 0:E.id)??"");if(!E)return I.jsx(qnr,{});const A=(O,L)=>{c(E.id,{[O]:L})},C=O=>{c(E.id,{[O]: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(mi,{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(jM,{className:"h-4 w-4"})})]}),I.jsx(No,{label:n("labels.alias"),children:I.jsx(Na,{type:"text",value:typeof E.data.alias=="string"?E.data.alias:"",onChange:O=>A("alias",O.target.value),placeholder:n("placeholders.optionalDisplayName")})}),E.type==="trigger"&&I.jsxs(No,{label:n("labels.id"),children:[I.jsx(Na,{type:"text",value:typeof E.data.id=="string"?E.data.id:"",onChange:O=>A("id",O.target.value||void 0),placeholder:n("placeholders.optionalUniqueId"),className:"font-mono"}),I.jsx(H2,{message:_("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:O=>A("enabled",O?void 0:!1)})]}),I.jsx($z,{}),I.jsx(nor,{node:E,onChange:A,entities:w}),I.jsx(sor,{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 uor(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 lor(n){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n):uor(n)}function Hk(){return Hk=Object.assign?Object.assign.bind():function(n){for(var i=1;i4&&s.slice(0,4)==="data"&&bor.test(i)){if(i.charAt(4)==="-"){const g=i.slice(5).replace(p$t,wor);c="data"+g.charAt(0).toUpperCase()+g.slice(1)}else{const g=i.slice(4);if(!p$t.test(g)){let b=g.replace(gor,mor);b.charAt(0)!=="-"&&(b="-"+b),i="data"+b}}d=l9e}return new d(c,i)}function mor(n){return"-"+n.toLowerCase()}function wor(n){return n.charAt(1).toUpperCase()}const oce=$Jt([BJt,hor,zJt,GJt,qJt],"html"),qz=$Jt([BJt,por,zJt,GJt,qJt],"svg");function _se(n){const i=[],s=String(n||"");let c=s.indexOf(","),d=0,g=!1;for(;!g;){c===-1&&(c=s.length,g=!0);const b=s.slice(d,c).trim();(b||!g)&&i.push(b),d=c+1,c=s.indexOf(",",d)}return i}function yor(n,i){const s=i||{};return(n[n.length-1]===""?[...n,""]:n).join((s.padRight?" ":"")+","+(s.padLeft===!1?"":" ")).trim()}const g$t=/[#.]/g;function vor(n,i){const s=n||"",c={};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=m$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 Por(n){return n>=56320&&n<=57343}function jor(n,i){return(n-55296)*1024+9216+i}function JJt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function XJt(n){return n>=64976&&n<=65007||Mor.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 For=65536;class $or{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=For,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:c,col:d,offset:g}=this,b=d+s,w=g+s;return{code:i,startLine:c,endLine:c,startCol:b,endCol:b,startOffset:w,endOffset:w}}_err(i){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(i,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(i){if(this.pos!==this.html.length-1){const s=this.html.charCodeAt(this.pos+1);if(Por(s))return this.pos++,this._addGap(),jor(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 c=0;c=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;const c=this.html.charCodeAt(s);return c===$e.CARRIAGE_RETURN?$e.LINE_FEED:c}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$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,YJt(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){JJt(i)?this._err(sn.controlCharacterInInputStream):XJt(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 Bor=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))),Uor=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 Hor(n){var i;return n>=55296&&n<=57343||n>1114111?65533:(i=Uor.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 zor=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 hLe(n){return n>=nh.ZERO&&n<=nh.NINE}function Gor(n){return n>=nh.UPPER_A&&n<=nh.UPPER_F||n>=nh.LOWER_A&&n<=nh.LOWER_F}function qor(n){return n>=nh.UPPER_A&&n<=nh.UPPER_Z||n>=nh.LOWER_A&&n<=nh.LOWER_Z||hLe(n)}function Vor(n){return n===nh.EQUALS||qor(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 Wor{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,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)|zor)===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,c,d){if(s!==c){const g=c-s;this.result=this.result*Math.pow(d,g)+Number.parseInt(i.substr(s,g),d),this.consumed+=g}}stateNumericHex(i,s){const c=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:c}=this,d=(c[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,c){const{decodeTree:d}=this;return this.emitCodePoint(s===1?d[i]&~qk.VALUE_LENGTH:d[i+1],c),s===3&&this.emitCodePoint(d[i+2],c),c}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 Kor(n,i,s,c){const d=(i&qk.BRANCH_LENGTH)>>7,g=i&qk.JUMP_TABLE;if(d===0)return g!==0&&c===g?s:-1;if(g){const E=c-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(Sc)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 yw;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(yw||(yw={}));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 sce(n){var i;return(i=Yor.get(n))!==null&&i!==void 0?i:W.UNKNOWN}const Xn=W,Jor={[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},pLe=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 sb={DATA:Ve.DATA,RCDATA:Ve.RCDATA,RAWTEXT:Ve.RAWTEXT,SCRIPT_DATA:Ve.SCRIPT_DATA,PLAINTEXT:Ve.PLAINTEXT,CDATA_SECTION:Ve.CDATA_SECTION};function Xor(n){return n>=$e.DIGIT_0&&n<=$e.DIGIT_9}function aH(n){return n>=$e.LATIN_CAPITAL_A&&n<=$e.LATIN_CAPITAL_Z}function Zor(n){return n>=$e.LATIN_SMALL_A&&n<=$e.LATIN_SMALL_Z}function Lk(n){return Zor(n)||aH(n)}function y$t(n){return Lk(n)||Xor(n)}function Pie(n){return n+32}function QJt(n){return n===$e.SPACE||n===$e.LINE_FEED||n===$e.TABULATION||n===$e.FORM_FEED}function v$t(n){return QJt(n)||n===$e.SOLIDUS||n===$e.GREATER_THAN_SIGN}function Qor(n){return n===$e.NULL?sn.nullCharacterReference:n>1114111?sn.characterReferenceOutsideUnicodeRange:YJt(n)?sn.surrogateCharacterReference:XJt(n)?sn.noncharacterCharacterReference:JJt(n)||n===$e.CARRIAGE_RETURN?sn.controlCharacterReference:null}class esr{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 $or(s),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Wor(Bor,(c,d)=>{this.preprocessor.pos=this.entityStartPos+d-1,this._flushCodePointConsumedAsCharacterReference(c)},s.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:c=>{this._err(sn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+c)},validateNumericCharacterReference:c=>{const d=Qor(c);d&&this._err(d,1)}}:void 0)}_err(i,s=0){var c,d;(d=(c=this.handler).onParseError)===null||d===void 0||d.call(c,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,c){this.active=!0,this.preprocessor.write(i,s),this._runParsingLoop(),this.paused||c==null||c()}insertHtmlAtCurrentPos(i){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(i),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(i){this.consumedAfterSnapshot+=i;for(let 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=QJt(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(Ou);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(Ou);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(Ou);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_statePlaintext(i){switch(i){case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Ou);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateTagOpen(i){if(Lk(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(Lk(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(Ou);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:Lk(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){Lk(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(Ou);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(nb.SCRIPT,!1)&&v$t(this.preprocessor.peek(nb.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 c=this._indexOf(i);this.items[c]=s,c===this.stackTop&&(this.current=s)}insertAfter(i,s,c){const d=this._indexOf(i)+1;this.items.splice(d,0,s),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(i){let 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;c--)if(i.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===s)return c;return-1}clearBackTo(i,s){const c=this._indexOfTagNames(i,s);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(osr,Fn.HTML)}clearBackToTableBodyContext(){this.clearBackTo(isr,Fn.HTML)}clearBackToTableRowContext(){this.clearBackTo(rsr,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 c=this.stackTop;c>=0;c--){const d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case Fn.HTML:{if(d===i)return!0;if(s.has(d))return!1;break}case Fn.SVG:{if(T$t.has(d))return!1;break}case Fn.MATHML:{if(S$t.has(d))return!1;break}}}return!0}hasInScope(i){return this.hasInDynamicScope(i,kse)}hasInListItemScope(i){return this.hasInDynamicScope(i,tsr)}hasInButtonScope(i){return this.hasInDynamicScope(i,nsr)}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(pLe.has(s))return!0;if(kse.has(s))return!1;break}case Fn.SVG:{if(T$t.has(s))return!1;break}case Fn.MATHML:{if(S$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&&eXt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&E$t.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;this.currentTagId!==void 0&&this.currentTagId!==i&&E$t.has(this.currentTagId);)this.pop()}}const ZOe=3;var I2;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})(I2||(I2={}));const A$t={type:I2.Marker};class csr{constructor(i){this.treeAdapter=i,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(i,s){const c=[],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>=ZOe&&this.entries.splice(w.idx,1))}}insertMarker(){this.entries.unshift(A$t)}pushElement(i,s){this._ensureNoahArkCondition(i),this.entries.unshift({type:I2.Element,element:i,token:s})}insertElementAfterBookmark(i,s){const c=this.entries.indexOf(this.bookmark);this.entries.splice(c,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(A$t);i===-1?this.entries.length=0:this.entries.splice(0,i+1)}getElementEntryInScopeWithTagName(i){const s=this.entries.find(c=>c.type===I2.Marker||this.treeAdapter.getTagName(c.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:yw.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 c=n.childNodes.indexOf(s);n.childNodes.splice(c,0,i),i.parentNode=n},setTemplateContent(n,i){n.content=i},getTemplateContent(n){return n.content},setDocumentType(n,i,s,c){const d=n.childNodes.find(g=>g.nodeName==="#documentType");if(d)d.name=i,d.publicId=s,d.systemId=c;else{const g={nodeName:"#documentType",name:i,publicId:s,systemId:c,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 c=n.childNodes[n.childNodes.indexOf(s)-1];c&&Mk.isTextNode(c)?c.value+=i:Mk.insertBefore(n,Mk.createTextNode(i),s)},adoptAttributes(n,i){const s=new Set(n.attrs.map(c=>c.name));for(let c=0;cn.startsWith(s))}function psr(n){return n.name===tXt&&n.publicId===null&&(n.systemId===null||n.systemId===usr)}function gsr(n){if(n.name!==tXt)return yw.QUIRKS;const{systemId:i}=n;if(i&&i.toLowerCase()===lsr)return yw.QUIRKS;let{publicId:s}=n;if(s!==null){if(s=s.toLowerCase(),fsr.has(s))return yw.QUIRKS;let c=i===null?dsr:nXt;if(_$t(s,c))return yw.QUIRKS;if(c=i===null?rXt:hsr,_$t(s,c))return yw.LIMITED_QUIRKS}return yw.NO_QUIRKS}const x$t={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bsr="definitionurl",msr="definitionURL",wsr=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])),ysr=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}]]),vsr=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])),Esr=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 Ssr(n){const i=n.tagID;return i===W.FONT&&n.attrs.some(({name:c})=>c===iR.COLOR||c===iR.SIZE||c===iR.FACE)||Esr.has(i)}function iXt(n){for(let i=0;i0&&this._setContextModes(i,s)}onItemPop(i,s){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(i,this.currentToken),(d=(c=this.treeAdapter).onItemPop)===null||d===void 0||d.call(c,i,this.openElements.current),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 c=i===this.document||i&&this.treeAdapter.getNamespaceURI(i)===Fn.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&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=ct.TEXT}switchToPlaintextParsing(){this.insertionMode=ct.TEXT,this.originalInsertionMode=ct.IN_BODY,this.tokenizer.state=sb.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=sb.RCDATA;break}case W.STYLE:case W.XMP:case W.IFRAME:case W.NOEMBED:case W.NOFRAMES:case W.NOSCRIPT:{this.tokenizer.state=sb.RAWTEXT;break}case W.SCRIPT:{this.tokenizer.state=sb.SCRIPT_DATA;break}case W.PLAINTEXT:{this.tokenizer.state=sb.PLAINTEXT;break}}}_setDocumentType(i){const s=i.name||"",c=i.publicId||"",d=i.systemId||"";if(this.treeAdapter.setDocumentType(this.document,s,c,d),i.location){const b=this.treeAdapter.getChildNodes(this.document).find(w=>this.treeAdapter.isDocumentTypeNode(w));b&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}}_attachElementToTree(i,s){if(this.options.sourceCodeLocationInfo){const c=s&&{...s,startTag:s};this.treeAdapter.setNodeSourceCodeLocation(i,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(i);else{const c=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(c??this.document,i)}}_appendElement(i,s){const c=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(c,i.location)}_insertElement(i,s){const c=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(c,i.location),this.openElements.push(c,i.tagID)}_insertFakeElement(i,s){const c=this.treeAdapter.createElement(i,Fn.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,s)}_insertTemplate(i){const s=this.treeAdapter.createElement(i.tagName,Fn.HTML,i.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(s,c),this._attachElementToTree(s,i.location),this.openElements.push(s,i.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,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 c=this.treeAdapter.createCommentNode(i.data);this.treeAdapter.appendChild(s,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,i.location)}_insertCharacters(i){let s,c;if(this._shouldFosterParentOnInsertion()?({parent:s,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(s,i.chars,c):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=c?d.lastIndexOf(c):d.length,b=d[g-1];if(this.treeAdapter.getNodeSourceCodeLocation(b)){const{endLine:E,endCol:S,endOffset:_}=i.location;this.treeAdapter.updateNodeSourceCodeLocation(b,{endLine:E,endCol:S,endOffset:_})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}_adoptNodes(i,s){for(let c=this.treeAdapter.getFirstChild(i);c;c=this.treeAdapter.getFirstChild(i))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(s,c)}_setEndLocation(i,s){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&s.location){const c=s.location,d=this.treeAdapter.getTagName(i),g=s.type===ha.END_TAG&&d===s.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(i,g)}}shouldProcessStartTagTokenInForeignContent(i){if(!this.currentNotInHTML)return!1;let s,c;return this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=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)&&c!==void 0&&!this._isIntegrationPoint(c,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,c){const d=this.treeAdapter.getNamespaceURI(s),g=this.treeAdapter.getAttrList(s);return xsr(i,d,g,c)}_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)),c=s===-1?i-1:s-1;for(let d=c;d>=0;d--){const g=this.activeFormattingElements.entries[d];this._insertElement(g.token,this.treeAdapter.getNamespaceURI(g.element)),g.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ct.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=ct.IN_ROW;return}case W.TBODY:case W.THEAD:case W.TFOOT:{this.insertionMode=ct.IN_TABLE_BODY;return}case W.CAPTION:{this.insertionMode=ct.IN_CAPTION;return}case W.COLGROUP:{this.insertionMode=ct.IN_COLUMN_GROUP;return}case W.TABLE:{this.insertionMode=ct.IN_TABLE;return}case W.BODY:{this.insertionMode=ct.IN_BODY;return}case W.FRAMESET:{this.insertionMode=ct.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?ct.AFTER_HEAD:ct.BEFORE_HEAD;return}case W.TD:case W.TH:{if(i>0){this.insertionMode=ct.IN_CELL;return}break}case W.HEAD:{if(i>0){this.insertionMode=ct.IN_HEAD;return}break}}this.insertionMode=ct.IN_BODY}_resetInsertionModeForSelect(i){if(i>0)for(let s=i-1;s>0;s--){const c=this.openElements.tagIDs[s];if(c===W.TEMPLATE)break;if(c===W.TABLE){this.insertionMode=ct.IN_SELECT_IN_TABLE;return}}this.insertionMode=ct.IN_SELECT}_isElementCausesFosterParenting(i){return sXt.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 c=this.treeAdapter.getParentNode(s);return c?{parent:c,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 c=this.treeAdapter.getNamespaceURI(i);return Jor[c].has(s)}onCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){acr(this,i);return}switch(this.insertionMode){case ct.INITIAL:{qU(this,i);break}case ct.BEFORE_HTML:{EH(this,i);break}case ct.BEFORE_HEAD:{SH(this,i);break}case ct.IN_HEAD:{TH(this,i);break}case ct.IN_HEAD_NO_SCRIPT:{AH(this,i);break}case ct.AFTER_HEAD:{_H(this,i);break}case ct.IN_BODY:case ct.IN_CAPTION:case ct.IN_CELL:case ct.IN_TEMPLATE:{uXt(this,i);break}case ct.TEXT:case ct.IN_SELECT:case ct.IN_SELECT_IN_TABLE:{this._insertCharacters(i);break}case ct.IN_TABLE:case ct.IN_TABLE_BODY:case ct.IN_ROW:{QOe(this,i);break}case ct.IN_TABLE_TEXT:{gXt(this,i);break}case ct.IN_COLUMN_GROUP:{Nse(this,i);break}case ct.AFTER_BODY:{Cse(this,i);break}case ct.AFTER_AFTER_BODY:{loe(this,i);break}}}onNullCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){scr(this,i);return}switch(this.insertionMode){case ct.INITIAL:{qU(this,i);break}case ct.BEFORE_HTML:{EH(this,i);break}case ct.BEFORE_HEAD:{SH(this,i);break}case ct.IN_HEAD:{TH(this,i);break}case ct.IN_HEAD_NO_SCRIPT:{AH(this,i);break}case ct.AFTER_HEAD:{_H(this,i);break}case ct.TEXT:{this._insertCharacters(i);break}case ct.IN_TABLE:case ct.IN_TABLE_BODY:case ct.IN_ROW:{QOe(this,i);break}case ct.IN_COLUMN_GROUP:{Nse(this,i);break}case ct.AFTER_BODY:{Cse(this,i);break}case ct.AFTER_AFTER_BODY:{loe(this,i);break}}}onComment(i){if(this.skipNextNewLine=!1,this.currentNotInHTML){gLe(this,i);return}switch(this.insertionMode){case ct.INITIAL:case ct.BEFORE_HTML:case ct.BEFORE_HEAD:case ct.IN_HEAD:case ct.IN_HEAD_NO_SCRIPT:case ct.AFTER_HEAD:case ct.IN_BODY:case ct.IN_TABLE:case ct.IN_CAPTION:case ct.IN_COLUMN_GROUP:case ct.IN_TABLE_BODY:case ct.IN_ROW:case ct.IN_CELL:case ct.IN_SELECT:case ct.IN_SELECT_IN_TABLE:case ct.IN_TEMPLATE:case ct.IN_FRAMESET:case ct.AFTER_FRAMESET:{gLe(this,i);break}case ct.IN_TABLE_TEXT:{VU(this,i);break}case ct.AFTER_BODY:{jsr(this,i);break}case ct.AFTER_AFTER_BODY:case ct.AFTER_AFTER_FRAMESET:{Fsr(this,i);break}}}onDoctype(i){switch(this.skipNextNewLine=!1,this.insertionMode){case ct.INITIAL:{$sr(this,i);break}case ct.BEFORE_HEAD:case ct.IN_HEAD:case ct.IN_HEAD_NO_SCRIPT:case ct.AFTER_HEAD:{this._err(i,sn.misplacedDoctype);break}case ct.IN_TABLE_TEXT:{VU(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)?ccr(this,i):this._startTagOutsideForeignContent(i)}_startTagOutsideForeignContent(i){switch(this.insertionMode){case ct.INITIAL:{qU(this,i);break}case ct.BEFORE_HTML:{Bsr(this,i);break}case ct.BEFORE_HEAD:{Hsr(this,i);break}case ct.IN_HEAD:{zv(this,i);break}case ct.IN_HEAD_NO_SCRIPT:{qsr(this,i);break}case ct.AFTER_HEAD:{Wsr(this,i);break}case ct.IN_BODY:{Vp(this,i);break}case ct.IN_TABLE:{DM(this,i);break}case ct.IN_TABLE_TEXT:{VU(this,i);break}case ct.IN_CAPTION:{Gar(this,i);break}case ct.IN_COLUMN_GROUP:{b9e(this,i);break}case ct.IN_TABLE_BODY:{uce(this,i);break}case ct.IN_ROW:{lce(this,i);break}case ct.IN_CELL:{War(this,i);break}case ct.IN_SELECT:{wXt(this,i);break}case ct.IN_SELECT_IN_TABLE:{Yar(this,i);break}case ct.IN_TEMPLATE:{Xar(this,i);break}case ct.AFTER_BODY:{Qar(this,i);break}case ct.IN_FRAMESET:{ecr(this,i);break}case ct.AFTER_FRAMESET:{ncr(this,i);break}case ct.AFTER_AFTER_BODY:{icr(this,i);break}case ct.AFTER_AFTER_FRAMESET:{ocr(this,i);break}}}onEndTag(i){this.skipNextNewLine=!1,this.currentToken=i,this.currentNotInHTML?ucr(this,i):this._endTagOutsideForeignContent(i)}_endTagOutsideForeignContent(i){switch(this.insertionMode){case ct.INITIAL:{qU(this,i);break}case ct.BEFORE_HTML:{Usr(this,i);break}case ct.BEFORE_HEAD:{zsr(this,i);break}case ct.IN_HEAD:{Gsr(this,i);break}case ct.IN_HEAD_NO_SCRIPT:{Vsr(this,i);break}case ct.AFTER_HEAD:{Ksr(this,i);break}case ct.IN_BODY:{cce(this,i);break}case ct.TEXT:{Lar(this,i);break}case ct.IN_TABLE:{gz(this,i);break}case ct.IN_TABLE_TEXT:{VU(this,i);break}case ct.IN_CAPTION:{qar(this,i);break}case ct.IN_COLUMN_GROUP:{Var(this,i);break}case ct.IN_TABLE_BODY:{bLe(this,i);break}case ct.IN_ROW:{mXt(this,i);break}case ct.IN_CELL:{Kar(this,i);break}case ct.IN_SELECT:{yXt(this,i);break}case ct.IN_SELECT_IN_TABLE:{Jar(this,i);break}case ct.IN_TEMPLATE:{Zar(this,i);break}case ct.AFTER_BODY:{EXt(this,i);break}case ct.IN_FRAMESET:{tcr(this,i);break}case ct.AFTER_FRAMESET:{rcr(this,i);break}case ct.AFTER_AFTER_BODY:{loe(this,i);break}}}onEof(i){switch(this.insertionMode){case ct.INITIAL:{qU(this,i);break}case ct.BEFORE_HTML:{EH(this,i);break}case ct.BEFORE_HEAD:{SH(this,i);break}case ct.IN_HEAD:{TH(this,i);break}case ct.IN_HEAD_NO_SCRIPT:{AH(this,i);break}case ct.AFTER_HEAD:{_H(this,i);break}case ct.IN_BODY:case ct.IN_TABLE:case ct.IN_CAPTION:case ct.IN_COLUMN_GROUP:case ct.IN_TABLE_BODY:case ct.IN_ROW:case ct.IN_CELL:case ct.IN_SELECT:case ct.IN_SELECT_IN_TABLE:{hXt(this,i);break}case ct.TEXT:{Mar(this,i);break}case ct.IN_TABLE_TEXT:{VU(this,i);break}case ct.IN_TEMPLATE:{vXt(this,i);break}case ct.AFTER_BODY:case ct.IN_FRAMESET:case ct.AFTER_FRAMESET:case ct.AFTER_AFTER_BODY:case ct.AFTER_AFTER_FRAMESET:{g9e(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 ct.IN_HEAD:case ct.IN_HEAD_NO_SCRIPT:case ct.AFTER_HEAD:case ct.TEXT:case ct.IN_COLUMN_GROUP:case ct.IN_SELECT:case ct.IN_SELECT_IN_TABLE:case ct.IN_FRAMESET:case ct.AFTER_FRAMESET:{this._insertCharacters(i);break}case ct.IN_BODY:case ct.IN_CAPTION:case ct.IN_CELL:case ct.IN_TEMPLATE:case ct.AFTER_BODY:case ct.AFTER_AFTER_BODY:case ct.AFTER_AFTER_FRAMESET:{cXt(this,i);break}case ct.IN_TABLE:case ct.IN_TABLE_BODY:case ct.IN_ROW:{QOe(this,i);break}case ct.IN_TABLE_TEXT:{pXt(this,i);break}}}}function Rsr(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):fXt(n,i),s}function Osr(n,i){let s=null,c=n.openElements.stackTop;for(;c>=0;c--){const d=n.openElements.items[c];if(d===i.element)break;n._isSpecialElement(d,n.openElements.tagIDs[c])&&(s=d)}return s||(n.openElements.shortenToLength(Math.max(c,0)),n.activeFormattingElements.removeEntry(i)),s}function Dsr(n,i,s){let c=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>=Csr;!w||E?(E&&n.activeFormattingElements.removeEntry(w),n.openElements.remove(b)):(b=Lsr(n,w),c===i&&(n.activeFormattingElements.bookmark=w),n.treeAdapter.detachNode(c),n.treeAdapter.appendChild(b,c),c=b)}return c}function Lsr(n,i){const s=n.treeAdapter.getNamespaceURI(i.element),c=n.treeAdapter.createElement(i.token.tagName,s,i.token.attrs);return n.openElements.replace(i.element,c),i.element=c,c}function Msr(n,i,s){const c=n.treeAdapter.getTagName(i),d=sce(c);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 Psr(n,i,s){const c=n.treeAdapter.getNamespaceURI(s.element),{token:d}=s,g=n.treeAdapter.createElement(d.tagName,c,d.attrs);n._adoptNodes(i,g),n.treeAdapter.appendChild(i,g),n.activeFormattingElements.insertElementAfterBookmark(g,d),n.activeFormattingElements.removeEntry(s),n.openElements.remove(s.element),n.openElements.insertAfter(i,g,d.tagID)}function p9e(n,i){for(let s=0;s=s;c--)n._setEndLocation(n.openElements.items[c],i);if(!n.fragmentContext&&n.openElements.stackTop>=0){const c=n.openElements.items[0],d=n.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(n._setEndLocation(c,i),n.openElements.stackTop>=1)){const g=n.openElements.items[1],b=n.treeAdapter.getNodeSourceCodeLocation(g);b&&!b.endTag&&n._setEndLocation(g,i)}}}}function $sr(n,i){n._setDocumentType(i);const s=i.forceQuirks?yw.QUIRKS:gsr(i);psr(i)||n._err(i,sn.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,s),n.insertionMode=ct.BEFORE_HTML}function qU(n,i){n._err(i,sn.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,yw.QUIRKS),n.insertionMode=ct.BEFORE_HTML,n._processToken(i)}function Bsr(n,i){i.tagID===W.HTML?(n._insertElement(i,Fn.HTML),n.insertionMode=ct.BEFORE_HEAD):EH(n,i)}function Usr(n,i){const s=i.tagID;(s===W.HTML||s===W.HEAD||s===W.BODY||s===W.BR)&&EH(n,i)}function EH(n,i){n._insertFakeRootElement(),n.insertionMode=ct.BEFORE_HEAD,n._processToken(i)}function Hsr(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=ct.IN_HEAD;break}default:SH(n,i)}}function zsr(n,i){const s=i.tagID;s===W.HEAD||s===W.BODY||s===W.HTML||s===W.BR?SH(n,i):n._err(i,sn.endTagWithoutMatchingOpenElement)}function SH(n,i){n._insertFakeElement(Pt.HEAD,W.HEAD),n.headElement=n.openElements.current,n.insertionMode=ct.IN_HEAD,n._processToken(i)}function zv(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,sb.RCDATA);break}case W.NOSCRIPT:{n.options.scriptingEnabled?n._switchToTextParsing(i,sb.RAWTEXT):(n._insertElement(i,Fn.HTML),n.insertionMode=ct.IN_HEAD_NO_SCRIPT);break}case W.NOFRAMES:case W.STYLE:{n._switchToTextParsing(i,sb.RAWTEXT);break}case W.SCRIPT:{n._switchToTextParsing(i,sb.SCRIPT_DATA);break}case W.TEMPLATE:{n._insertTemplate(i),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=ct.IN_TEMPLATE,n.tmplInsertionModeStack.unshift(ct.IN_TEMPLATE);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:TH(n,i)}}function Gsr(n,i){switch(i.tagID){case W.HEAD:{n.openElements.pop(),n.insertionMode=ct.AFTER_HEAD;break}case W.BODY:case W.BR:case W.HTML:{TH(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 TH(n,i){n.openElements.pop(),n.insertionMode=ct.AFTER_HEAD,n._processToken(i)}function qsr(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:{zv(n,i);break}case W.NOSCRIPT:{n._err(i,sn.nestedNoscriptInHead);break}default:AH(n,i)}}function Vsr(n,i){switch(i.tagID){case W.NOSCRIPT:{n.openElements.pop(),n.insertionMode=ct.IN_HEAD;break}case W.BR:{AH(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function AH(n,i){const s=i.type===ha.EOF?sn.openElementsLeftAfterEof:sn.disallowedContentInNoscriptInHead;n._err(i,s),n.openElements.pop(),n.insertionMode=ct.IN_HEAD,n._processToken(i)}function Wsr(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=ct.IN_BODY;break}case W.FRAMESET:{n._insertElement(i,Fn.HTML),n.insertionMode=ct.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),zv(n,i),n.openElements.remove(n.headElement);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:_H(n,i)}}function Ksr(n,i){switch(i.tagID){case W.BODY:case W.HTML:case W.BR:{_H(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function _H(n,i){n._insertFakeElement(Pt.BODY,W.BODY),n.insertionMode=ct.IN_BODY,ace(n,i)}function ace(n,i){switch(i.type){case ha.CHARACTER:{uXt(n,i);break}case ha.WHITESPACE_CHARACTER:{cXt(n,i);break}case ha.COMMENT:{gLe(n,i);break}case ha.START_TAG:{Vp(n,i);break}case ha.END_TAG:{cce(n,i);break}case ha.EOF:{hXt(n,i);break}}}function cXt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i)}function uXt(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 Jsr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(s,i.attrs))}function Xsr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&s&&(n.treeAdapter.detachNode(s),n.openElements.popAllUpToHtmlElement(),n._insertElement(i,Fn.HTML),n.insertionMode=ct.IN_FRAMESET)}function Zsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function Qsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&pLe.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(i,Fn.HTML)}function ear(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function tar(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 nar(n,i){n.framesetOk=!1;const s=i.tagID;for(let c=n.openElements.stackTop;c>=0;c--){const d=n.openElements.tagIDs[c];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[c],d))break}n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function rar(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.tokenizer.state=sb.PLAINTEXT}function iar(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 oar(n,i){const s=n.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);s&&(p9e(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 sar(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function aar(n,i){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(W.NOBR)&&(p9e(n,i),n._reconstructActiveFormattingElements()),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function car(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function uar(n,i){n.treeAdapter.getDocumentMode(n.document)!==yw.QUIRKS&&n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=ct.IN_TABLE}function lXt(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function dXt(n){const i=ZJt(n,iR.TYPE);return i!=null&&i.toLowerCase()===ksr}function lar(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),dXt(i)||(n.framesetOk=!1),i.ackSelfClosing=!0}function dar(n,i){n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0}function far(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function har(n,i){i.tagName=Pt.IMG,i.tagID=W.IMG,lXt(n,i)}function par(n,i){n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.tokenizer.state=sb.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=ct.TEXT}function gar(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(i,sb.RAWTEXT)}function bar(n,i){n.framesetOk=!1,n._switchToTextParsing(i,sb.RAWTEXT)}function N$t(n,i){n._switchToTextParsing(i,sb.RAWTEXT)}function mar(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===ct.IN_TABLE||n.insertionMode===ct.IN_CAPTION||n.insertionMode===ct.IN_TABLE_BODY||n.insertionMode===ct.IN_ROW||n.insertionMode===ct.IN_CELL?ct.IN_SELECT_IN_TABLE:ct.IN_SELECT}function war(n,i){n.openElements.currentTagId===W.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML)}function yar(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(i,Fn.HTML)}function Ear(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(W.RTC),n._insertElement(i,Fn.HTML)}function Sar(n,i){n._reconstructActiveFormattingElements(),iXt(i),h9e(i),i.selfClosing?n._appendElement(i,Fn.MATHML):n._insertElement(i,Fn.MATHML),i.ackSelfClosing=!0}function Tar(n,i){n._reconstructActiveFormattingElements(),oXt(i),h9e(i),i.selfClosing?n._appendElement(i,Fn.SVG):n._insertElement(i,Fn.SVG),i.ackSelfClosing=!0}function C$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:{sar(n,i);break}case W.A:{oar(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{Qsr(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:{Zsr(n,i);break}case W.LI:case W.DD:case W.DT:{nar(n,i);break}case W.BR:case W.IMG:case W.WBR:case W.AREA:case W.EMBED:case W.KEYGEN:{lXt(n,i);break}case W.HR:{far(n,i);break}case W.RB:case W.RTC:{yar(n,i);break}case W.RT:case W.RP:{Ear(n,i);break}case W.PRE:case W.LISTING:{ear(n,i);break}case W.XMP:{gar(n,i);break}case W.SVG:{Tar(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:{zv(n,i);break}case W.BODY:{Jsr(n,i);break}case W.FORM:{tar(n,i);break}case W.NOBR:{aar(n,i);break}case W.MATH:{Sar(n,i);break}case W.TABLE:{uar(n,i);break}case W.INPUT:{lar(n,i);break}case W.PARAM:case W.TRACK:case W.SOURCE:{dar(n,i);break}case W.IMAGE:{har(n,i);break}case W.BUTTON:{iar(n,i);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{car(n,i);break}case W.IFRAME:{bar(n,i);break}case W.SELECT:{mar(n,i);break}case W.OPTION:case W.OPTGROUP:{war(n,i);break}case W.NOEMBED:case W.NOFRAMES:{N$t(n,i);break}case W.FRAMESET:{Xsr(n,i);break}case W.TEXTAREA:{par(n,i);break}case W.NOSCRIPT:{n.options.scriptingEnabled?N$t(n,i):C$t(n,i);break}case W.PLAINTEXT:{rar(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:C$t(n,i)}}function Aar(n,i){if(n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ct.AFTER_BODY,n.options.sourceCodeLocationInfo)){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n._setEndLocation(s,i)}}function _ar(n,i){n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ct.AFTER_BODY,EXt(n,i))}function xar(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s))}function kar(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 Nar(n){n.openElements.hasInButtonScope(W.P)||n._insertFakeElement(Pt.P,W.P),n._closePElement()}function Car(n){n.openElements.hasInListItemScope(W.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(W.LI),n.openElements.popUntilTagNamePopped(W.LI))}function Iar(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTagsWithExclusion(s),n.openElements.popUntilTagNamePopped(s))}function Rar(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function Oar(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s),n.activeFormattingElements.clearToLastMarker())}function Dar(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(Pt.BR,W.BR),n.openElements.pop(),n.framesetOk=!1}function fXt(n,i){const s=i.tagName,c=i.tagID;for(let d=n.openElements.stackTop;d>0;d--){const g=n.openElements.items[d],b=n.openElements.tagIDs[d];if(c===b&&(c!==W.UNKNOWN||n.treeAdapter.getTagName(g)===s)){n.openElements.generateImpliedEndTagsWithExclusion(c),n.openElements.stackTop>=d&&n.openElements.shortenToLength(d);break}if(n._isSpecialElement(g,b))break}}function cce(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:{p9e(n,i);break}case W.P:{Nar(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:{xar(n,i);break}case W.LI:{Car(n);break}case W.DD:case W.DT:{Iar(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{Rar(n);break}case W.BR:{Dar(n);break}case W.BODY:{Aar(n,i);break}case W.HTML:{_ar(n,i);break}case W.FORM:{kar(n);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{Oar(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:fXt(n,i)}}function hXt(n,i){n.tmplInsertionModeStack.length>0?vXt(n,i):g9e(n,i)}function Lar(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 Mar(n,i){n._err(i,sn.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(i)}function QOe(n,i){if(n.openElements.currentTagId!==void 0&&sXt.has(n.openElements.currentTagId))switch(n.pendingCharacterTokens.length=0,n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=ct.IN_TABLE_TEXT,i.type){case ha.CHARACTER:{gXt(n,i);break}case ha.WHITESPACE_CHARACTER:{pXt(n,i);break}}else Vz(n,i)}function Par(n,i){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(i,Fn.HTML),n.insertionMode=ct.IN_CAPTION}function jar(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ct.IN_COLUMN_GROUP}function Far(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.COLGROUP,W.COLGROUP),n.insertionMode=ct.IN_COLUMN_GROUP,b9e(n,i)}function $ar(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ct.IN_TABLE_BODY}function Bar(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.TBODY,W.TBODY),n.insertionMode=ct.IN_TABLE_BODY,uce(n,i)}function Uar(n,i){n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode(),n._processStartTag(i))}function Har(n,i){dXt(i)?n._appendElement(i,Fn.HTML):Vz(n,i),i.ackSelfClosing=!0}function zar(n,i){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(i,Fn.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function DM(n,i){switch(i.tagID){case W.TD:case W.TH:case W.TR:{Bar(n,i);break}case W.STYLE:case W.SCRIPT:case W.TEMPLATE:{zv(n,i);break}case W.COL:{Far(n,i);break}case W.FORM:{zar(n,i);break}case W.TABLE:{Uar(n,i);break}case W.TBODY:case W.TFOOT:case W.THEAD:{$ar(n,i);break}case W.INPUT:{Har(n,i);break}case W.CAPTION:{Par(n,i);break}case W.COLGROUP:{jar(n,i);break}default:Vz(n,i)}}function gz(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:Vz(n,i)}}function Vz(n,i){const s=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,ace(n,i),n.fosterParentingEnabled=s}function pXt(n,i){n.pendingCharacterTokens.push(i)}function gXt(n,i){n.pendingCharacterTokens.push(i),n.hasNonWhitespacePendingCharacterToken=!0}function VU(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 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.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n._processStartTag(i)):wXt(n,i)}function Jar(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)):yXt(n,i)}function Xar(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:{zv(n,i);break}case W.CAPTION:case W.COLGROUP:case W.TBODY:case W.TFOOT:case W.THEAD:{n.tmplInsertionModeStack[0]=ct.IN_TABLE,n.insertionMode=ct.IN_TABLE,DM(n,i);break}case W.COL:{n.tmplInsertionModeStack[0]=ct.IN_COLUMN_GROUP,n.insertionMode=ct.IN_COLUMN_GROUP,b9e(n,i);break}case W.TR:{n.tmplInsertionModeStack[0]=ct.IN_TABLE_BODY,n.insertionMode=ct.IN_TABLE_BODY,uce(n,i);break}case W.TD:case W.TH:{n.tmplInsertionModeStack[0]=ct.IN_ROW,n.insertionMode=ct.IN_ROW,lce(n,i);break}default:n.tmplInsertionModeStack[0]=ct.IN_BODY,n.insertionMode=ct.IN_BODY,Vp(n,i)}}function Zar(n,i){i.tagID===W.TEMPLATE&&jR(n,i)}function vXt(n,i){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(i)):g9e(n,i)}function Qar(n,i){i.tagID===W.HTML?Vp(n,i):Cse(n,i)}function EXt(n,i){var s;if(i.tagID===W.HTML){if(n.fragmentContext||(n.insertionMode=ct.AFTER_AFTER_BODY),n.options.sourceCodeLocationInfo&&n.openElements.tagIDs[0]===W.HTML){n._setEndLocation(n.openElements.items[0],i);const c=n.openElements.items[1];c&&!(!((s=n.treeAdapter.getNodeSourceCodeLocation(c))===null||s===void 0)&&s.endTag)&&n._setEndLocation(c,i)}}else Cse(n,i)}function Cse(n,i){n.insertionMode=ct.IN_BODY,ace(n,i)}function ecr(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:{zv(n,i);break}}}function tcr(n,i){i.tagID===W.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagId!==W.FRAMESET&&(n.insertionMode=ct.AFTER_FRAMESET))}function ncr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{zv(n,i);break}}}function rcr(n,i){i.tagID===W.HTML&&(n.insertionMode=ct.AFTER_AFTER_FRAMESET)}function icr(n,i){i.tagID===W.HTML?Vp(n,i):loe(n,i)}function loe(n,i){n.insertionMode=ct.IN_BODY,ace(n,i)}function ocr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{zv(n,i);break}}}function scr(n,i){i.chars=Ou,n._insertCharacters(i)}function acr(n,i){n._insertCharacters(i),n.framesetOk=!1}function SXt(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 ccr(n,i){if(Ssr(i))SXt(n),n._startTagOutsideForeignContent(i);else{const s=n._getAdjustedCurrentElement(),c=n.treeAdapter.getNamespaceURI(s);c===Fn.MATHML?iXt(i):c===Fn.SVG&&(Tsr(i),oXt(i)),h9e(i),i.selfClosing?n._appendElement(i,c):n._insertElement(i,c),i.ackSelfClosing=!0}}function ucr(n,i){if(i.tagID===W.P||i.tagID===W.BR){SXt(n),n._endTagOutsideForeignContent(i);return}for(let s=n.openElements.stackTop;s>0;s--){const c=n.openElements.items[s];if(n.treeAdapter.getNamespaceURI(c)===Fn.HTML){n._endTagOutsideForeignContent(i);break}const d=n.treeAdapter.getTagName(c);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 lcr(n,i){return aXt.parse(n,i)}function dcr(n,i,s){typeof n=="string"&&(s=i,i=n,n=null);const c=aXt.getFragmentParser(n,s);return c.tokenizer.write(i,!0),c.getFragment()}function fcr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?I$t(n.position):"start"in n||"end"in n?I$t(n):"line"in n||"column"in n?mLe(n):""}function mLe(n){return R$t(n&&n.line)+":"+R$t(n&&n.column)}function I$t(n){return mLe(n&&n.start)+"-"+mLe(n&&n.end)}function R$t(n){return n&&typeof n=="number"?n:1}class Yg extends Error{constructor(i,s,c){super(),typeof s=="string"&&(c=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 c=="string"){const E=c.indexOf(":");E===-1?g.ruleId=c:(g.source=c.slice(0,E),g.ruleId=c.slice(E+1))}if(!g.place&&g.ancestors&&g.ancestors){const E=g.ancestors[g.ancestors.length-1];E&&(g.place=E.position)}const w=g.place&&"start"in g.place?g.place.start:g.place;this.ancestors=g.ancestors||void 0,this.cause=g.cause||void 0,this.column=w?w.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=w?w.line:void 0,this.name=fcr(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}}Yg.prototype.file="";Yg.prototype.name="";Yg.prototype.reason="";Yg.prototype.message="";Yg.prototype.stack="";Yg.prototype.column=void 0;Yg.prototype.line=void 0;Yg.prototype.ancestors=void 0;Yg.prototype.cause=void 0;Yg.prototype.fatal=void 0;Yg.prototype.place=void 0;Yg.prototype.ruleId=void 0;Yg.prototype.source=void 0;const N2={basename:hcr,dirname:pcr,extname:gcr,join:bcr,sep:"/"};function hcr(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Wz(n);let s=0,c=-1,d=n.length,g;if(i===void 0||i.length===0||i.length>n.length){for(;d--;)if(n.codePointAt(d)===47){if(g){s=d+1;break}}else c<0&&(g=!0,c=d+1);return c<0?"":n.slice(s,c)}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&&(c=d):(w=-1,c=b));return s===c?c=b:c<0&&(c=n.length),n.slice(s,c)}function pcr(n){if(Wz(n),n.length===0)return".";let i=-1,s=n.length,c;for(;--s;)if(n.codePointAt(s)===47){if(c){i=s;break}}else c||(c=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function gcr(n){Wz(n);let i=n.length,s=-1,c=0,d=-1,g=0,b;for(;i--;){const w=n.codePointAt(i);if(w===47){if(b){c=i+1;break}continue}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===c+1?"":n.slice(d,s)}function bcr(...n){let i=-1,s;for(;++i0&&n.codePointAt(n.length-1)===47&&(s+="/"),i?"/"+s:s}function wcr(n,i){let s="",c=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="",c=0):(s=s.slice(0,E),c=s.length-1-s.lastIndexOf("/")),d=b,g=0;continue}}else if(s.length>0){s="",c=0,d=b,g=0;continue}}i&&(s=s.length>0?s+"/..":"..",c=2)}else s.length>0?s+="/"+n.slice(d+1,b):s=n.slice(d+1,b),c=b-d-1;d=b,g=0}else w===46&&g>-1?g++:g=-1}return s}function Wz(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const ycr={cwd:vcr};function vcr(){return"/"}function wLe(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Ecr(n){if(typeof n=="string")n=new URL(n);else if(!wLe(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 Scr(n)}function Scr(n){if(n.hostname!==""){const c=new TypeError('File URL host must be "localhost" or empty on darwin');throw c.code="ERR_INVALID_FILE_URL_HOST",c}const i=n.pathname;let 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 `